From 02b81e263e4bc0ecc7738f30028ea7d47113c8b0 Mon Sep 17 00:00:00 2001 From: Leonardo de Moura Date: Wed, 12 Aug 2020 20:24:19 -0700 Subject: [PATCH] chore: update stage0 --- stage0/src/Lean/Elab/App.lean | 214 +- stage0/src/Lean/Elab/Binders.lean | 82 +- stage0/src/Lean/Elab/BuiltinNotation.lean | 89 +- stage0/src/Lean/Elab/CollectFVars.lean | 16 +- stage0/src/Lean/Elab/Command.lean | 30 +- stage0/src/Lean/Elab/Declaration.lean | 10 +- stage0/src/Lean/Elab/Definition.lean | 56 +- stage0/src/Lean/Elab/DoNotation.lean | 67 +- stage0/src/Lean/Elab/Inductive.lean | 184 +- stage0/src/Lean/Elab/Match.lean | 210 +- stage0/src/Lean/Elab/Quotation.lean | 26 +- stage0/src/Lean/Elab/StructInst.lean | 131 +- stage0/src/Lean/Elab/Structure.lean | 175 +- stage0/src/Lean/Elab/Syntax.lean | 22 +- stage0/src/Lean/Elab/SyntheticMVars.lean | 79 +- stage0/src/Lean/Elab/Tactic/Basic.lean | 132 +- stage0/src/Lean/Elab/Tactic/ElabTerm.lean | 29 +- stage0/src/Lean/Elab/Tactic/Generalize.lean | 16 +- stage0/src/Lean/Elab/Tactic/Induction.lean | 129 +- stage0/src/Lean/Elab/Tactic/Injection.lean | 2 +- stage0/src/Lean/Elab/Term.lean | 424 +- stage0/src/Lean/Meta/EqnCompiler/DepElim.lean | 63 +- stage0/stdlib/Lean/Elab/App.c | 26147 ++++++++------- stage0/stdlib/Lean/Elab/Binders.c | 10465 +++--- stage0/stdlib/Lean/Elab/BuiltinNotation.c | 2419 +- stage0/stdlib/Lean/Elab/CollectFVars.c | 1564 +- stage0/stdlib/Lean/Elab/Command.c | 2650 +- stage0/stdlib/Lean/Elab/Declaration.c | 27 +- stage0/stdlib/Lean/Elab/Definition.c | 2355 +- stage0/stdlib/Lean/Elab/DoNotation.c | 3525 +- stage0/stdlib/Lean/Elab/Inductive.c | 10345 +++--- stage0/stdlib/Lean/Elab/Match.c | 24482 +++++++------- stage0/stdlib/Lean/Elab/Quotation.c | 27184 ++++++++------- stage0/stdlib/Lean/Elab/StructInst.c | 22540 +++++++------ stage0/stdlib/Lean/Elab/Structure.c | 10782 +++--- stage0/stdlib/Lean/Elab/Syntax.c | 2473 +- stage0/stdlib/Lean/Elab/SyntheticMVars.c | 8073 +++-- stage0/stdlib/Lean/Elab/Tactic/Basic.c | 7928 +++-- stage0/stdlib/Lean/Elab/Tactic/ElabTerm.c | 1405 +- stage0/stdlib/Lean/Elab/Tactic/Generalize.c | 402 +- stage0/stdlib/Lean/Elab/Tactic/Induction.c | 13816 ++++---- stage0/stdlib/Lean/Elab/Tactic/Injection.c | 31 +- stage0/stdlib/Lean/Elab/Term.c | 27576 ++++++++-------- stage0/stdlib/Lean/Meta/EqnCompiler.c | 4 +- stage0/stdlib/Lean/Meta/EqnCompiler/DepElim.c | 2912 +- stage0/stdlib/Lean/Parser/Term.c | 6 +- 46 files changed, 112838 insertions(+), 98459 deletions(-) diff --git a/stage0/src/Lean/Elab/App.lean b/stage0/src/Lean/Elab/App.lean index 69677d1a25..411eec30f6 100644 --- a/stage0/src/Lean/Elab/App.lean +++ b/stage0/src/Lean/Elab/App.lean @@ -36,26 +36,26 @@ instance NamedArg.inhabited : Inhabited NamedArg := ⟨{ name := arbitrary _, va /-- Add a new named argument to `namedArgs`, and throw an error if it already contains a named argument with the same name. -/ -def addNamedArg (ref : Syntax) (namedArgs : Array NamedArg) (namedArg : NamedArg) : TermElabM (Array NamedArg) := do +def addNamedArg (namedArgs : Array NamedArg) (namedArg : NamedArg) : TermElabM (Array NamedArg) := do when (namedArgs.any $ fun namedArg' => namedArg.name == namedArg'.name) $ - throwError ref ("argument '" ++ toString namedArg.name ++ "' was already set"); + throwError ("argument '" ++ toString namedArg.name ++ "' was already set"); pure $ namedArgs.push namedArg -def synthesizeAppInstMVars (ref : Syntax) (instMVars : Array MVarId) : TermElabM Unit := +def synthesizeAppInstMVars (instMVars : Array MVarId) : TermElabM Unit := instMVars.forM $ fun mvarId => - unlessM (synthesizeInstMVarCore ref mvarId) $ - registerSyntheticMVar ref mvarId SyntheticMVarKind.typeClass + unlessM (synthesizeInstMVarCore mvarId) $ + registerSyntheticMVar mvarId SyntheticMVarKind.typeClass -private def ensureArgType (ref : Syntax) (f : Expr) (arg : Expr) (expectedType : Expr) : TermElabM Expr := do -argType ← inferType ref arg; -ensureHasTypeAux ref expectedType argType arg f +private def ensureArgType (f : Expr) (arg : Expr) (expectedType : Expr) : TermElabM Expr := do +argType ← inferType arg; +ensureHasTypeAux expectedType argType arg f -private def elabArg (ref : Syntax) (f : Expr) (arg : Arg) (expectedType : Expr) : TermElabM Expr := +private def elabArg (f : Expr) (arg : Arg) (expectedType : Expr) : TermElabM Expr := match arg with -| Arg.expr val => ensureArgType ref f val expectedType +| Arg.expr val => ensureArgType f val expectedType | Arg.stx val => do val ← elabTerm val expectedType; - ensureArgType ref f val expectedType + ensureArgType f val expectedType private def mkArrow (d b : Expr) : TermElabM Expr := do n ← mkFreshAnonymousName; @@ -67,24 +67,24 @@ pure $ Lean.mkForall n BinderInfo.default d b class CoeFun (α : Sort u) (γ : α → outParam (Sort v)) abbrev coeFun {α : Sort u} {γ : α → Sort v} (a : α) [CoeFun α γ] : γ a ``` -/ -private def tryCoeFun (ref : Syntax) (α : Expr) (a : Expr) : TermElabM Expr := do -v ← mkFreshLevelMVar ref; +private def tryCoeFun (α : Expr) (a : Expr) : TermElabM Expr := do +v ← mkFreshLevelMVar; type ← mkArrow α (mkSort v); -γ ← mkFreshExprMVar ref type; -u ← getLevel ref α; +γ ← mkFreshExprMVar type; +u ← getLevel α; let coeFunInstType := mkAppN (Lean.mkConst `CoeFun [u, v]) #[α, γ]; -mvar ← mkFreshExprMVar ref coeFunInstType MetavarKind.synthetic; +mvar ← mkFreshExprMVar coeFunInstType MetavarKind.synthetic; let mvarId := mvar.mvarId!; synthesized ← - catch (withoutMacroStackAtErr $ synthesizeInstMVarCore ref mvarId) + catch (withoutMacroStackAtErr $ synthesizeInstMVarCore mvarId) (fun ex => match ex with - | Exception.ex (Elab.Exception.error errMsg) => throwError ref ("function expected" ++ Format.line ++ errMsg.data) - | _ => throwError ref "function expected"); + | Exception.ex (Elab.Exception.error errMsg) => throwError ("function expected" ++ Format.line ++ errMsg.data) + | _ => throwError "function expected"); if synthesized then pure $ mkAppN (Lean.mkConst `coeFun [u, v]) #[α, γ, a, mvar] else - throwError ref "function expected" + throwError "function expected" /-- Auxiliary structure used to elaborate function application arguments. -/ structure ElabAppArgsCtx := @@ -169,6 +169,7 @@ private def hasOnlyTypeMVar (ctx : ElabAppArgsCtx) (type : Expr) : Bool := `bv 64` is **not** definitionally equal to `bv 32`. -/ private def propagateExpectedType (ctx : ElabAppArgsCtx) (eType : Expr) : TermElabM Unit := +withRef ctx.ref $ unless (ctx.explicit || ctx.foundExplicit || ctx.typeMVars.isEmpty) $ do match ctx.expectedType? with | none => pure () @@ -179,7 +180,7 @@ unless (ctx.explicit || ctx.foundExplicit || ctx.typeMVars.isEmpty) $ do | some eTypeBody => unless eTypeBody.hasLooseBVars $ when (hasTypeMVar ctx eTypeBody && hasOnlyTypeMVar ctx eTypeBody) $ do - _ ← isDefEq ctx.ref expectedType eTypeBody; + _ ← isDefEq expectedType eTypeBody; pure () private def nextArgIsHole (ctx : ElabAppArgsCtx) : Bool := @@ -192,28 +193,28 @@ else /- Elaborate function application arguments. -/ private partial def elabAppArgsAux : ElabAppArgsCtx → Expr → Expr → TermElabM Expr -| ctx, e, eType => do +| ctx, e, eType => withRef ctx.ref do let finalize : Unit → TermElabM Expr := fun _ => do { -- all user explicit arguments have been consumed - trace `Elab.app.finalize ctx.ref $ fun _ => e; + trace `Elab.app.finalize $ fun _ => e; match ctx.expectedType? with | none => pure () | some expectedType => do { -- Try to propagate expected type. Ignore if types are not definitionally equal, caller must handle it. - _ ← isDefEq ctx.ref expectedType eType; + _ ← isDefEq expectedType eType; pure () }; - synthesizeAppInstMVars ctx.ref ctx.instMVars; + synthesizeAppInstMVars ctx.instMVars; pure e }; - eType ← whnfForall ctx.ref eType; + eType ← whnfForall eType; match eType with | Expr.forallE n d b c => match ctx.namedArgs.findIdx? (fun namedArg => namedArg.name == n) with | some idx => do let arg := ctx.namedArgs.get! idx; let namedArgs := ctx.namedArgs.eraseIdx idx; - argElab ← elabArg ctx.ref e arg.val d; + argElab ← elabArg e arg.val d; propagateExpectedType ctx eType; elabAppArgsAux { ctx with foundExplicit := true, namedArgs := namedArgs } (mkApp e argElab) (b.instantiate1 argElab) | none => @@ -221,14 +222,14 @@ private partial def elabAppArgsAux : ElabAppArgsCtx → Expr → Expr → TermEl propagateExpectedType ctx eType; let ctx := { ctx with foundExplicit := true }; if h : ctx.argIdx < ctx.args.size then do - argElab ← elabArg ctx.ref e (ctx.args.get ⟨ctx.argIdx, h⟩) d; + argElab ← elabArg e (ctx.args.get ⟨ctx.argIdx, h⟩) d; elabAppArgsAux { ctx with argIdx := ctx.argIdx + 1 } (mkApp e argElab) (b.instantiate1 argElab) else match ctx.explicit, d.getOptParamDefault?, d.getAutoParamTactic? with | false, some defVal, _ => elabAppArgsAux ctx (mkApp e defVal) (b.instantiate1 defVal) | false, _, some (Expr.const tacticDecl _ _) => do env ← getEnv; match evalSyntaxConstant env tacticDecl with - | Except.error err => throwError ctx.ref err + | Except.error err => throwError err | Except.ok tacticSyntax => do tacticBlock ← `(begin $(tacticSyntax.getArgs)* end); -- tacticBlock does not have any position information @@ -237,35 +238,35 @@ private partial def elabAppArgsAux : ElabAppArgsCtx → Expr → Expr → TermEl | some info => tacticBlock.replaceInfo info | _ => tacticBlock; let d := d.getArg! 0; -- `autoParam type := by tactic` ==> `type` - argElab ← elabArg ctx.ref e (Arg.stx tacticBlock) d; + argElab ← elabArg e (Arg.stx tacticBlock) d; elabAppArgsAux ctx (mkApp e argElab) (b.instantiate1 argElab) | false, _, some _ => - throwError ctx.ref "invalid autoParam, argument must be a constant" + throwError "invalid autoParam, argument must be a constant" | _, _, _ => if ctx.namedArgs.isEmpty then finalize () else - throwError ctx.ref ("explicit parameter '" ++ n ++ "' is missing, unused named arguments " ++ toString (ctx.namedArgs.map $ fun narg => narg.name)) + throwError ("explicit parameter '" ++ n ++ "' is missing, unused named arguments " ++ toString (ctx.namedArgs.map $ fun narg => narg.name)) }; match c.binderInfo with | BinderInfo.implicit => if ctx.explicit then processExplictArg () else do - a ← mkFreshExprMVar ctx.ref d; - typeMVars ← condM (isTypeFormer ctx.ref a) (pure $ ctx.typeMVars.push a.mvarId!) (pure ctx.typeMVars); + a ← mkFreshExprMVar d; + typeMVars ← condM (isTypeFormer a) (pure $ ctx.typeMVars.push a.mvarId!) (pure ctx.typeMVars); elabAppArgsAux { ctx with typeMVars := typeMVars } (mkApp e a) (b.instantiate1 a) | BinderInfo.instImplicit => if ctx.explicit && nextArgIsHole ctx then do /- Recall that if '@' has been used, and the argument is '_', then we still use type class resolution -/ - a ← mkFreshExprMVar ctx.ref d MetavarKind.synthetic; + a ← mkFreshExprMVar d MetavarKind.synthetic; elabAppArgsAux { ctx with argIdx := ctx.argIdx + 1, instMVars := ctx.instMVars.push a.mvarId! } (mkApp e a) (b.instantiate1 a) else if ctx.explicit then processExplictArg () else do - a ← mkFreshExprMVar ctx.ref d MetavarKind.synthetic; + a ← mkFreshExprMVar d MetavarKind.synthetic; elabAppArgsAux { ctx with instMVars := ctx.instMVars.push a.mvarId! } (mkApp e a) (b.instantiate1 a) | _ => processExplictArg () @@ -273,17 +274,18 @@ private partial def elabAppArgsAux : ElabAppArgsCtx → Expr → Expr → TermEl if ctx.namedArgs.isEmpty && ctx.argIdx == ctx.args.size then finalize () else do - e ← tryCoeFun ctx.ref eType e; - eType ← inferType ctx.ref e; + e ← tryCoeFun eType e; + eType ← inferType e; elabAppArgsAux ctx e eType -private def elabAppArgs (ref : Syntax) (f : Expr) (namedArgs : Array NamedArg) (args : Array Arg) +private def elabAppArgs (f : Expr) (namedArgs : Array NamedArg) (args : Array Arg) (expectedType? : Option Expr) (explicit : Bool) : TermElabM Expr := do -fType ← inferType ref f; -fType ← instantiateMVars ref fType; -trace `Elab.app.args ref $ fun _ => "explicit: " ++ toString explicit ++ ", " ++ f ++ " : " ++ fType; +fType ← inferType f; +fType ← instantiateMVars fType; +trace `Elab.app.args $ fun _ => "explicit: " ++ toString explicit ++ ", " ++ f ++ " : " ++ fType; unless (namedArgs.isEmpty && args.isEmpty) $ tryPostponeIfMVar fType; +ref ← getCurrRef; elabAppArgsAux {ref := ref, args := args, expectedType? := expectedType?, explicit := explicit, namedArgs := namedArgs } f fType /-- Auxiliary inductive datatype that represents the resolution of an `LVal`. -/ @@ -294,17 +296,17 @@ inductive LValResolution | localRec (baseName : Name) (fullName : Name) (fvar : Expr) | getOp (fullName : Name) (idx : Syntax) -private def throwLValError {α} (ref : Syntax) (e : Expr) (eType : Expr) (msg : MessageData) : TermElabM α := -throwError ref $ msg ++ indentExpr e ++ Format.line ++ "has type" ++ indentExpr eType +private def throwLValError {α} (e : Expr) (eType : Expr) (msg : MessageData) : TermElabM α := +throwError $ msg ++ indentExpr e ++ Format.line ++ "has type" ++ indentExpr eType -private def resolveLValAux (ref : Syntax) (e : Expr) (eType : Expr) (lval : LVal) : TermElabM LValResolution := +private def resolveLValAux (e : Expr) (eType : Expr) (lval : LVal) : TermElabM LValResolution := match eType.getAppFn, lval with | Expr.const structName _ _, LVal.fieldIdx idx => do when (idx == 0) $ - throwError ref "invalid projection, index must be greater than 0"; + throwError "invalid projection, index must be greater than 0"; env ← getEnv; unless (isStructureLike env structName) $ - throwLValError ref e eType "invalid projection, structure expected"; + throwLValError e eType "invalid projection, structure expected"; let fieldNames := getStructureFields env structName; if h : idx - 1 < fieldNames.size then if isStructure env structName then @@ -314,7 +316,7 @@ match eType.getAppFn, lval with So, we don't projection functions for it. Thus, we use `Expr.proj` -/ pure $ LValResolution.projIdx structName (idx - 1) else - throwLValError ref e eType ("invalid projection, structure has only " ++ toString fieldNames.size ++ " field(s)") + throwLValError e eType ("invalid projection, structure has only " ++ toString fieldNames.size ++ " field(s)") | Expr.const structName _ _, LVal.fieldName fieldName => do env ← getEnv; let searchEnv (fullName : Name) : TermElabM LValResolution := do { @@ -325,7 +327,7 @@ match eType.getAppFn, lval with match env.find? fullNamePrv with | some _ => pure $ LValResolution.const structName fullNamePrv | none => - throwLValError ref e eType $ + throwLValError e eType $ "invalid field notation, '" ++ fieldName ++ "' is not a valid \"field\" because environment does not contain '" ++ fullName ++ "'" }; -- search local context first, then environment @@ -354,23 +356,23 @@ match eType.getAppFn, lval with let fullName := mkNameStr structName "getOp"; match env.find? fullName with | some _ => pure $ LValResolution.getOp fullName idx - | none => throwLValError ref e eType $ "invalid [..] notation because environment does not contain '" ++ fullName ++ "'" + | none => throwLValError e eType $ "invalid [..] notation because environment does not contain '" ++ fullName ++ "'" | _, LVal.getOp idx => - throwLValError ref e eType "invalid [..] notation, type is not of the form (C ...) where C is a constant" + throwLValError e eType "invalid [..] notation, type is not of the form (C ...) where C is a constant" | _, _ => - throwLValError ref e eType "invalid field notation, type is not of the form (C ...) where C is a constant" + throwLValError e eType "invalid field notation, type is not of the form (C ...) where C is a constant" -private partial def resolveLValLoop (ref : Syntax) (e : Expr) (lval : LVal) : Expr → Array Message → TermElabM LValResolution +private partial def resolveLValLoop (e : Expr) (lval : LVal) : Expr → Array Message → TermElabM LValResolution | eType, previousExceptions => do - eType ← whnfCore ref eType; + eType ← whnfCore eType; tryPostponeIfMVar eType; - catch (resolveLValAux ref e eType lval) + catch (resolveLValAux e eType lval) (fun ex => match ex with | Exception.postpone => throw ex | Exception.ex Elab.Exception.unsupportedSyntax => throw ex | Exception.ex (Elab.Exception.error errMsg) => do - eType? ← unfoldDefinition? ref eType; + eType? ← unfoldDefinition? eType; match eType? with | some eType => resolveLValLoop eType (previousExceptions.push errMsg) | none => do @@ -378,25 +380,25 @@ private partial def resolveLValLoop (ref : Syntax) (e : Expr) (lval : LVal) : Ex logMessage errMsg; throw (Exception.ex (Elab.Exception.error errMsg))) -private def resolveLVal (ref : Syntax) (e : Expr) (lval : LVal) : TermElabM LValResolution := do -eType ← inferType ref e; -resolveLValLoop ref e lval eType #[] +private def resolveLVal (e : Expr) (lval : LVal) : TermElabM LValResolution := do +eType ← inferType e; +resolveLValLoop e lval eType #[] -private partial def mkBaseProjections (ref : Syntax) (baseStructName : Name) (structName : Name) (e : Expr) : TermElabM Expr := do +private partial def mkBaseProjections (baseStructName : Name) (structName : Name) (e : Expr) : TermElabM Expr := do env ← getEnv; match getPathToBaseStructure? env baseStructName structName with -| none => throwError ref "failed to access field in parent structure" +| none => throwError "failed to access field in parent structure" | some path => path.foldlM (fun e projFunName => do - projFn ← mkConst ref projFunName; - elabAppArgs ref projFn #[{ name := `self, val := Arg.expr e }] #[] none false) + projFn ← mkConst projFunName; + elabAppArgs projFn #[{ name := `self, val := Arg.expr e }] #[] none false) e /- Auxiliary method for field notation. It tries to add `e` to `args` as the first explicit parameter which takes an element of type `(C ...)` where `C` is `baseName`. `fullName` is the name of the resolved "field" access function. It is used for reporting errors -/ -private def addLValArg (ref : Syntax) (baseName : Name) (fullName : Name) (e : Expr) (args : Array Arg) : Nat → Array NamedArg → Expr → TermElabM (Array Arg) +private def addLValArg (baseName : Name) (fullName : Name) (e : Expr) (args : Array Arg) : Nat → Array NamedArg → Expr → TermElabM (Array Arg) | i, namedArgs, Expr.forallE n d b c => if !c.binderInfo.isExplicit then addLValArg i namedArgs b @@ -412,60 +414,60 @@ private def addLValArg (ref : Syntax) (baseName : Name) (fullName : Name) (e : E else if i < args.size then addLValArg (i+1) namedArgs b else - throwError ref $ "invalid field notation, insufficient number of arguments for '" ++ fullName ++ "'" + throwError $ "invalid field notation, insufficient number of arguments for '" ++ fullName ++ "'" | _, _, fType => - throwError ref $ + throwError $ "invalid field notation, function '" ++ fullName ++ "' does not have explicit argument with type (" ++ baseName ++ " ...)" -private def elabAppLValsAux (ref : Syntax) (namedArgs : Array NamedArg) (args : Array Arg) (expectedType? : Option Expr) (explicit : Bool) +private def elabAppLValsAux (namedArgs : Array NamedArg) (args : Array Arg) (expectedType? : Option Expr) (explicit : Bool) : Expr → List LVal → TermElabM Expr -| f, [] => elabAppArgs ref f namedArgs args expectedType? explicit +| f, [] => elabAppArgs f namedArgs args expectedType? explicit | f, lval::lvals => do - lvalRes ← resolveLVal ref f lval; + lvalRes ← resolveLVal f lval; match lvalRes with | LValResolution.projIdx structName idx => let f := mkProj structName idx f; elabAppLValsAux f lvals | LValResolution.projFn baseStructName structName fieldName => do - f ← mkBaseProjections ref baseStructName structName f; - projFn ← mkConst ref (baseStructName ++ fieldName); + f ← mkBaseProjections baseStructName structName f; + projFn ← mkConst (baseStructName ++ fieldName); if lvals.isEmpty then do - namedArgs ← addNamedArg ref namedArgs { name := `self, val := Arg.expr f }; - elabAppArgs ref projFn namedArgs args expectedType? explicit + namedArgs ← addNamedArg namedArgs { name := `self, val := Arg.expr f }; + elabAppArgs projFn namedArgs args expectedType? explicit else do - f ← elabAppArgs ref projFn #[{ name := `self, val := Arg.expr f }] #[] none false; + f ← elabAppArgs projFn #[{ name := `self, val := Arg.expr f }] #[] none false; elabAppLValsAux f lvals | LValResolution.const baseName constName => do - projFn ← mkConst ref constName; + projFn ← mkConst constName; if lvals.isEmpty then do - projFnType ← inferType ref projFn; - args ← addLValArg ref baseName constName f args 0 namedArgs projFnType; - elabAppArgs ref projFn namedArgs args expectedType? explicit + projFnType ← inferType projFn; + args ← addLValArg baseName constName f args 0 namedArgs projFnType; + elabAppArgs projFn namedArgs args expectedType? explicit else do - f ← elabAppArgs ref projFn #[] #[Arg.expr f] none false; + f ← elabAppArgs projFn #[] #[Arg.expr f] none false; elabAppLValsAux f lvals | LValResolution.localRec baseName fullName fvar => if lvals.isEmpty then do - fvarType ← inferType ref fvar; - args ← addLValArg ref baseName fullName f args 0 namedArgs fvarType; - elabAppArgs ref fvar namedArgs args expectedType? explicit + fvarType ← inferType fvar; + args ← addLValArg baseName fullName f args 0 namedArgs fvarType; + elabAppArgs fvar namedArgs args expectedType? explicit else do - f ← elabAppArgs ref fvar #[] #[Arg.expr f] none false; + f ← elabAppArgs fvar #[] #[Arg.expr f] none false; elabAppLValsAux f lvals | LValResolution.getOp fullName idx => do - getOpFn ← mkConst ref fullName; + getOpFn ← mkConst fullName; if lvals.isEmpty then do - namedArgs ← addNamedArg ref namedArgs { name := `self, val := Arg.expr f }; - namedArgs ← addNamedArg ref namedArgs { name := `idx, val := Arg.stx idx }; - elabAppArgs ref getOpFn namedArgs args expectedType? explicit + namedArgs ← addNamedArg namedArgs { name := `self, val := Arg.expr f }; + namedArgs ← addNamedArg namedArgs { name := `idx, val := Arg.stx idx }; + elabAppArgs getOpFn namedArgs args expectedType? explicit else do - f ← elabAppArgs ref getOpFn #[{ name := `self, val := Arg.expr f }, { name := `idx, val := Arg.stx idx }] #[] none false; + f ← elabAppArgs getOpFn #[{ name := `self, val := Arg.expr f }, { name := `idx, val := Arg.stx idx }] #[] none false; elabAppLValsAux f lvals -private def elabAppLVals (ref : Syntax) (f : Expr) (lvals : List LVal) (namedArgs : Array NamedArg) (args : Array Arg) +private def elabAppLVals (f : Expr) (lvals : List LVal) (namedArgs : Array NamedArg) (args : Array Arg) (expectedType? : Option Expr) (explicit : Bool) : TermElabM Expr := do -when (!lvals.isEmpty && explicit) $ throwError ref "invalid use of field notation with `@` modifier"; -elabAppLValsAux ref namedArgs args expectedType? explicit f lvals +when (!lvals.isEmpty && explicit) $ throwError "invalid use of field notation with `@` modifier"; +elabAppLValsAux namedArgs args expectedType? explicit f lvals def elabExplicitUniv (stx : Syntax) : TermElabM (List Level) := do let lvls := stx.getArg 1; @@ -496,28 +498,28 @@ false, no elaboration function executed by `x` will reset it to `true`. -/ -private partial def elabAppFnId (ref : Syntax) (fIdent : Syntax) (fExplicitUnivs : List Level) (lvals : List LVal) +private partial def elabAppFnId (fIdent : Syntax) (fExplicitUnivs : List Level) (lvals : List LVal) (namedArgs : Array NamedArg) (args : Array Arg) (expectedType? : Option Expr) (explicit : Bool) (acc : Array TermElabResult) : TermElabM (Array TermElabResult) := match fIdent with | Syntax.ident _ _ n preresolved => do - funLVals ← resolveName fIdent n preresolved fExplicitUnivs; + funLVals ← withRef fIdent $ resolveName n preresolved fExplicitUnivs; -- Set `errToSorry` to `false` if `funLVals` > 1. See comment above about the interaction between `errToSorry` and `observing`. adaptReader (fun (ctx : Context) => { ctx with errToSorry := funLVals.length == 1 && ctx.errToSorry }) $ funLVals.foldlM (fun acc ⟨f, fields⟩ => do let lvals' := fields.map LVal.fieldName; - s ← observing $ elabAppLVals ref f (lvals' ++ lvals) namedArgs args expectedType? explicit; + s ← observing $ elabAppLVals f (lvals' ++ lvals) namedArgs args expectedType? explicit; pure $ acc.push s) acc | _ => throwUnsupportedSyntax -private partial def elabAppFn (ref : Syntax) : Syntax → List LVal → Array NamedArg → Array Arg → Option Expr → Bool → Array TermElabResult → TermElabM (Array TermElabResult) +private partial def elabAppFn : Syntax → List LVal → Array NamedArg → Array Arg → Option Expr → Bool → Array TermElabResult → TermElabM (Array TermElabResult) | f, lvals, namedArgs, args, expectedType?, explicit, acc => if f.isIdent then -- A raw identifier is not a valid Term. Recall that `Term.id` is defined as `parser! ident >> optional (explicitUniv <|> namedPattern)` -- We handle it here to make macro development more comfortable. - elabAppFnId ref f [] lvals namedArgs args expectedType? explicit acc + elabAppFnId f [] lvals namedArgs args expectedType? explicit acc else if f.getKind == choiceKind then -- Set `errToSorry` to `false` when processing choice nodes. See comment above about the interaction between `errToSorry` and `observing`. adaptReader (fun (ctx : Context) => { ctx with errToSorry := false }) $ @@ -532,18 +534,18 @@ private partial def elabAppFn (ref : Syntax) : Syntax → List LVal → Array Na | `($e[$idx]) => elabAppFn e (LVal.getOp idx :: lvals) namedArgs args expectedType? explicit acc | `($id:ident@$t:term) => - throwError ref "unexpected occurrence of named pattern" + throwError "unexpected occurrence of named pattern" | `($id:ident$us:explicitUniv*) => do -- Remark: `id.` should already have been expanded us ← if us.isEmpty then pure [] else elabExplicitUniv (us.get! 0); - elabAppFnId ref id us lvals namedArgs args expectedType? explicit acc + elabAppFnId id us lvals namedArgs args expectedType? explicit acc | `(@$id:id) => elabAppFn id lvals namedArgs args expectedType? true acc | `(@$t) => throwUnsupportedSyntax -- invalid occurrence of `@` | _ => do s ← observing $ do { f ← elabTerm f none; - elabAppLVals ref f lvals namedArgs args expectedType? explicit + elabAppLVals f lvals namedArgs args expectedType? explicit }; pure $ acc.push s @@ -565,15 +567,15 @@ msgs ← failures.mapM $ fun failure => match failure with | EStateM.Result.ok _ _ => unreachable! | EStateM.Result.error errMsg s => toMessageData errMsg stx; -throwError stx ("overloaded, errors " ++ MessageData.ofArray msgs) +throwErrorAt stx ("overloaded, errors " ++ MessageData.ofArray msgs) -private def elabAppAux (ref : Syntax) (f : Syntax) (namedArgs : Array NamedArg) (args : Array Arg) (expectedType? : Option Expr) : TermElabM Expr := do +private def elabAppAux (f : Syntax) (namedArgs : Array NamedArg) (args : Array Arg) (expectedType? : Option Expr) : TermElabM Expr := do /- TODO: if `f` contains `choice` or overloaded symbols, `mayPostpone == true`, and `expectedType? == some ?m` where `?m` is not assigned, then we should postpone until `?m` is assigned. Another (more expensive) option is: execute, and if successes > 1, `mayPostpone == true`, and `expectedType? == some ?m` where `?m` is not assigned, then we postpone `elabAppAux`. It is more expensive because we would have to re-elaborate the whole thing after we assign `?m`. We **can't** continue from `TermElabResult` since they contain a snapshot of the state, and state has changed. -/ -candidates ← elabAppFn ref f [] namedArgs args expectedType? false #[]; +candidates ← elabAppFn f [] namedArgs args expectedType? false #[]; if candidates.size == 1 then applyResult $ candidates.get! 0 else @@ -586,7 +588,7 @@ else let msgs : Array MessageData := successes.map $ fun success => match success with | EStateM.Result.ok e s => MessageData.withContext { env := s.env, mctx := s.mctx, lctx := lctx, opts := opts } e | _ => unreachable!; - throwError f ("ambiguous, possible interpretations " ++ MessageData.ofArray msgs) + throwErrorAt f ("ambiguous, possible interpretations " ++ MessageData.ofArray msgs) else mergeFailures candidates f @@ -599,7 +601,7 @@ let f := stx.getArg 0; -- tparser! try ("(" >> ident >> " := ") >> termParser >> ")" let name := (stx.getArg 1).getId.eraseMacroScopes; let val := stx.getArg 3; - namedArgs ← addNamedArg stx namedArgs { name := name, val := Arg.stx val }; + namedArgs ← addNamedArg namedArgs { name := name, val := Arg.stx val }; pure (namedArgs, args) else pure (namedArgs, args.push $ Arg.stx stx)) @@ -609,10 +611,10 @@ pure (f, namedArgs, args) @[builtinTermElab app] def elabApp : TermElab := fun stx expectedType? => do (f, namedArgs, args) ← expandApp stx; - elabAppAux stx f namedArgs args expectedType? + elabAppAux f namedArgs args expectedType? def elabAtom : TermElab := -fun stx expectedType? => elabAppAux stx stx #[] #[] expectedType? +fun stx expectedType? => elabAppAux stx #[] #[] expectedType? @[builtinTermElab «id»] def elabId : TermElab := elabAtom diff --git a/stage0/src/Lean/Elab/Binders.lean b/stage0/src/Lean/Elab/Binders.lean index 357aa72b67..b1b1b2d8c0 100644 --- a/stage0/src/Lean/Elab/Binders.lean +++ b/stage0/src/Lean/Elab/Binders.lean @@ -38,15 +38,15 @@ structure BinderView := (id : Syntax) (type : Syntax) (bi : BinderInfo) partial def quoteAutoTactic : Syntax → TermElabM Syntax -| stx@(Syntax.ident _ _ _ _) => throwError stx "invalic auto tactic, identifier is not allowed" +| stx@(Syntax.ident _ _ _ _) => throwErrorAt stx "invalic auto tactic, identifier is not allowed" | stx@(Syntax.node k args) => if Quotation.isAntiquot stx then - throwError stx "invalic auto tactic, antiquotation is not allowed" + throwErrorAt stx "invalic auto tactic, antiquotation is not allowed" else do empty ← `(Array.empty); args ← args.foldlM (fun args arg => if k == nullKind && Quotation.isAntiquotSplice arg then - throwError arg "invalic auto tactic, antiquotation is not allowed" + throwErrorAt arg "invalic auto tactic, antiquotation is not allowed" else do arg ← quoteAutoTactic arg; `(Array.push $args $arg)) empty; @@ -60,11 +60,11 @@ withFreshMacroScope $ do let type := Lean.mkConst `Lean.Syntax; tactic ← quoteAutoTactic tactic; val ← elabTerm tactic type; - val ← instantiateMVars tactic val; - trace `Elab.autoParam tactic $ fun _ => val; + val ← instantiateMVars val; + trace `Elab.autoParam $ fun _ => val; let decl := Declaration.defnDecl { name := name, lparams := [], type := type, value := val, hints := ReducibilityHints.opaque, isUnsafe := false }; - addDecl tactic decl; - compileDecl tactic decl; + addDecl decl; + compileDecl decl; pure name /- @@ -96,7 +96,7 @@ ids.getArgs.mapM $ fun id => -- The parser never generates this case, but it is convenient when writting macros. pure (id.getArg 0) else - throwError id "identifier or `_` expected" + throwErrorAt id "identifier or `_` expected" private def matchBinder (stx : Syntax) : TermElabM (Array BinderView) := match stx with @@ -132,14 +132,14 @@ private partial def elabBinderViews (binderViews : Array BinderView) | i, fvars, lctx, localInsts => if h : i < binderViews.size then let binderView := binderViews.get ⟨i, h⟩; - withLCtx lctx localInsts $ do + withRef binderView.type $ withLCtx lctx localInsts $ do type ← elabType binderView.type; fvarId ← mkFreshFVarId; let fvar := mkFVar fvarId; let fvars := fvars.push fvar; -- dbgTrace (toString binderView.id.getId ++ " : " ++ toString type); let lctx := lctx.mkLocalDecl fvarId binderView.id.getId type binderView.bi; - className? ← isClass binderView.type type; + className? ← isClass type; match className? with | none => elabBinderViews (i+1) fvars lctx localInsts | some className => do @@ -180,7 +180,7 @@ fun stx _ => match_syntax stx with | `(forall $binders*, $term) => elabBinders binders $ fun xs => do e ← elabType term; - mkForall stx xs e + mkForall xs e | _ => throwUnsupportedSyntax @[builtinTermElab arrow] def elabArrow : TermElab := @@ -195,7 +195,7 @@ fun stx _ => let term := stx.getArg 2; elabBinders #[binder] $ fun xs => do e ← elabType term; - mkForall stx xs e + mkForall xs e /-- Main loop `getFunBinderIds?` -/ private partial def getFunBinderIdsAux? : Bool → Syntax → Array Syntax → TermElabM (Option (Array Syntax)) @@ -257,7 +257,7 @@ private partial def expandFunBindersAux (binders : Array Syntax) : Syntax → Na | binder => match binder.isTermId? true with | some (ident, extra) => do - unless extra.isNone $ throwError binder "invalid binder, simple identifier expected"; + unless extra.isNone $ throwErrorAt binder "invalid binder, simple identifier expected"; let type := mkHole binder; expandFunBindersAux body (i+1) (newBinders.push $ mkExplicitBinder ident type) | none => processAsPattern () @@ -290,22 +290,22 @@ structure State := (localInsts : LocalInstances) (expectedType? : Option Expr := none) -private def checkNoOptAutoParam (ref : Syntax) (type : Expr) : TermElabM Unit := do -type ← instantiateMVars ref type; +private def checkNoOptAutoParam (type : Expr) : TermElabM Unit := do +type ← instantiateMVars type; when type.isOptParam $ - throwError ref "optParam is not allowed at 'fun/λ' binders"; + throwError "optParam is not allowed at 'fun/λ' binders"; when type.isAutoParam $ - throwError ref "autoParam is not allowed at 'fun/λ' binders" + throwError "autoParam is not allowed at 'fun/λ' binders" -private def propagateExpectedType (ref : Syntax) (fvar : Expr) (fvarType : Expr) (s : State) : TermElabM State := do +private def propagateExpectedType (fvar : Expr) (fvarType : Expr) (s : State) : TermElabM State := do match s.expectedType? with | none => pure s | some expectedType => do - expectedType ← whnfForall ref expectedType; + expectedType ← whnfForall expectedType; match expectedType with | Expr.forallE _ d b _ => do - _ ← isDefEq ref fvarType d; - checkNoOptAutoParam ref fvarType; + _ ← isDefEq fvarType d; + checkNoOptAutoParam fvarType; let b := b.instantiate1 fvar; pure { s with expectedType? := some b } | _ => pure { s with expectedType? := none } @@ -314,9 +314,9 @@ private partial def elabFunBinderViews (binderViews : Array BinderView) : Nat | i, s => if h : i < binderViews.size then let binderView := binderViews.get ⟨i, h⟩; - withLCtx s.lctx s.localInsts $ do + withRef binderView.type $ withLCtx s.lctx s.localInsts $ do type ← elabType binderView.type; - checkNoOptAutoParam binderView.type type; + checkNoOptAutoParam type; fvarId ← mkFreshFVarId; let fvar := mkFVar fvarId; let s := { s with fvars := s.fvars.push fvar }; @@ -327,9 +327,9 @@ private partial def elabFunBinderViews (binderViews : Array BinderView) : Nat We do not believe this is an useful feature, and it would complicate the logic here. -/ let lctx := s.lctx.mkLocalDecl fvarId binderView.id.getId type binderView.bi; - s ← propagateExpectedType binderView.id fvar type s; + s ← withRef binderView.id $ propagateExpectedType fvar type s; let s := { s with lctx := lctx }; - className? ← isClass binderView.type type; + className? ← isClass type; match className? with | none => elabFunBinderViews (i+1) s | some className => do @@ -367,7 +367,7 @@ let body := stx.getArg 3; (binders, body) ← expandFunBinders binders body; elabFunBinders binders expectedType? $ fun xs expectedType? => do { e ← elabTerm body expectedType?; - mkLambda stx xs e + mkLambda xs e } /- @@ -384,36 +384,36 @@ else /- If `useLetExpr` is true, then a kernel let-expression `let x : type := val; body` is created. Otherwise, we create a term of the form `(fun (x : type) => body) val` -/ -def elabLetDeclAux (ref : Syntax) (n : Name) (binders : Array Syntax) (typeStx : Syntax) (valStx : Syntax) (body : Syntax) +def elabLetDeclAux (n : Name) (binders : Array Syntax) (typeStx : Syntax) (valStx : Syntax) (body : Syntax) (expectedType? : Option Expr) (useLetExpr : Bool) : TermElabM Expr := do (type, val) ← elabBinders binders $ fun xs => do { type ← elabType typeStx; val ← elabTerm valStx type; - val ← ensureHasType valStx type val; - type ← mkForall ref xs type; - val ← mkLambda ref xs val; + val ← withRef valStx $ ensureHasType type val; + type ← mkForall xs type; + val ← mkLambda xs val; pure (type, val) }; -trace `Elab.let.decl ref $ fun _ => n ++ " : " ++ type ++ " := " ++ val; +trace `Elab.let.decl $ fun _ => n ++ " : " ++ type ++ " := " ++ val; if useLetExpr then - withLetDecl ref n type val $ fun x => do + withLetDecl n type val $ fun x => do body ← elabTerm body expectedType?; - body ← instantiateMVars ref body; - mkLet ref x body + body ← instantiateMVars body; + mkLet x body else do - f ← withLocalDecl ref n BinderInfo.default type $ fun x => do { + f ← withLocalDecl n BinderInfo.default type $ fun x => do { body ← elabTerm body expectedType?; - body ← instantiateMVars ref body; - mkLambda ref #[x] body + body ← instantiateMVars body; + mkLambda #[x] body }; pure $ mkApp f val @[builtinTermElab «let»] def elabLetDecl : TermElab := fun stx expectedType? => match_syntax stx with | `(let $id:ident $args* := $val; $body) => - elabLetDeclAux stx id.getId args (mkHole stx) val body expectedType? true + elabLetDeclAux id.getId args (mkHole stx) val body expectedType? true | `(let $id:ident $args* : $type := $val; $body) => - elabLetDeclAux stx id.getId args type val body expectedType? true + elabLetDeclAux id.getId args type val body expectedType? true | `(let $pat:term := $val; $body) => do stxNew ← `(let x := $val; match x with $pat => $body); withMacroExpansion stx stxNew $ elabTerm stxNew expectedType? @@ -425,9 +425,9 @@ fun stx expectedType? => match_syntax stx with @[builtinTermElab «let!»] def elabLetBangDecl : TermElab := fun stx expectedType? => match_syntax stx with | `(let! $id:ident $args* := $val; $body) => - elabLetDeclAux stx id.getId args (mkHole stx) val body expectedType? false + elabLetDeclAux id.getId args (mkHole stx) val body expectedType? false | `(let! $id:ident $args* : $type := $val; $body) => - elabLetDeclAux stx id.getId args type val body expectedType? false + elabLetDeclAux id.getId args type val body expectedType? false | `(let! $pat:term := $val; $body) => do stxNew ← `(let! x := $val; match x with $pat => $body); withMacroExpansion stx stxNew $ elabTerm stxNew expectedType? diff --git a/stage0/src/Lean/Elab/BuiltinNotation.lean b/stage0/src/Lean/Elab/BuiltinNotation.lean index 0a5a3cb105..6aad291695 100644 --- a/stage0/src/Lean/Elab/BuiltinNotation.lean +++ b/stage0/src/Lean/Elab/BuiltinNotation.lean @@ -37,11 +37,10 @@ fun stx => match_syntax stx with @[builtinTermElab anonymousCtor] def elabAnonymousCtor : TermElab := fun stx expectedType? => match_syntax stx with | `(⟨$args*⟩) => do - let ref := stx; tryPostponeIfNoneOrMVar expectedType?; match expectedType? with | some expectedType => do - expectedType ← instantiateMVars ref expectedType; + expectedType ← instantiateMVars expectedType; let expectedType := expectedType.consumeMData; match expectedType.getAppFn with | Expr.const constName _ _ => do @@ -50,12 +49,12 @@ fun stx expectedType? => match_syntax stx with | some (ConstantInfo.inductInfo val) => match val.ctors with | [ctor] => do - stx ← `($(mkCTermIdFrom ref ctor) $(args.getSepElems)*); - withMacroExpansion ref stx $ elabTerm stx expectedType? - | _ => throwError ref ("invalid constructor ⟨...⟩, '" ++ constName ++ "' must have only one constructor") - | _ => throwError ref ("invalid constructor ⟨...⟩, '" ++ constName ++ "' is not an inductive type") - | _ => throwError ref ("invalid constructor ⟨...⟩, expected type is not an inductive type " ++ indentExpr expectedType) - | none => throwError ref "invalid constructor ⟨...⟩, expected type must be known" + newStx ← `($(mkCTermIdFrom stx ctor) $(args.getSepElems)*); + withMacroExpansion stx newStx $ elabTerm newStx expectedType? + | _ => throwError ("invalid constructor ⟨...⟩, '" ++ constName ++ "' must have only one constructor") + | _ => throwError ("invalid constructor ⟨...⟩, '" ++ constName ++ "' is not an inductive type") + | _ => throwError ("invalid constructor ⟨...⟩, expected type is not an inductive type " ++ indentExpr expectedType) + | none => throwError "invalid constructor ⟨...⟩, expected type must be known" | _ => throwUnsupportedSyntax @[builtinMacro Lean.Parser.Term.show] def expandShow : Macro := @@ -80,9 +79,9 @@ fun stx => match_syntax stx with body | _ => Macro.throwUnsupported -private def elabParserMacroAux (ref : Syntax) (prec : Syntax) (e : Syntax) : TermElabM Syntax := do +private def elabParserMacroAux (prec : Syntax) (e : Syntax) : TermElabM Syntax := do some declName ← getDeclName? - | throwError ref "invalid `parser!` macro, it must be used in definitions"; + | throwError "invalid `parser!` macro, it must be used in definitions"; match extractMacroScopes declName with | { name := Name.str _ s _, scopes := scps, .. } => do let kind := quote declName; @@ -94,76 +93,76 @@ match extractMacroScopes declName with else -- if the parser decl is hidden by hygiene, it doesn't make sense to provide an antiquotation kind `(HasOrelse.orelse (Lean.Parser.mkAntiquot $s none) $p) -| _ => throwError ref "invalid `parser!` macro, unexpected declaration name" +| _ => throwError "invalid `parser!` macro, unexpected declaration name" @[builtinTermElab «parser!»] def elabParserMacro : TermElab := adaptExpander $ fun stx => match_syntax stx with -| `(parser! $e) => elabParserMacroAux stx (quote Parser.maxPrec) e -| `(parser! : $prec $e) => elabParserMacroAux stx prec e +| `(parser! $e) => elabParserMacroAux (quote Parser.maxPrec) e +| `(parser! : $prec $e) => elabParserMacroAux prec e | _ => throwUnsupportedSyntax -private def elabTParserMacroAux (ref : Syntax) (prec : Syntax) (e : Syntax) : TermElabM Syntax := do +private def elabTParserMacroAux (prec : Syntax) (e : Syntax) : TermElabM Syntax := do declName? ← getDeclName?; match declName? with | some declName => let kind := quote declName; `(Lean.Parser.trailingNode $kind $prec $e) -| none => throwError ref "invalid `tparser!` macro, it must be used in definitions" +| none => throwError "invalid `tparser!` macro, it must be used in definitions" @[builtinTermElab «tparser!»] def elabTParserMacro : TermElab := adaptExpander $ fun stx => match_syntax stx with -| `(tparser! $e) => elabTParserMacroAux stx (quote Parser.maxPrec) e -| `(tparser! : $prec $e) => elabTParserMacroAux stx prec e +| `(tparser! $e) => elabTParserMacroAux (quote Parser.maxPrec) e +| `(tparser! : $prec $e) => elabTParserMacroAux prec e | _ => throwUnsupportedSyntax -private def mkNativeReflAuxDecl (ref : Syntax) (type val : Expr) : TermElabM Name := do -auxName ← mkAuxName ref `_nativeRefl; +private def mkNativeReflAuxDecl (type val : Expr) : TermElabM Name := do +auxName ← mkAuxName `_nativeRefl; let decl := Declaration.defnDecl { name := auxName, lparams := [], type := type, value := val, hints := ReducibilityHints.abbrev, isUnsafe := false }; -addDecl ref decl; -compileDecl ref decl; +addDecl decl; +compileDecl decl; pure auxName private def elabClosedTerm (stx : Syntax) (expectedType? : Option Expr) : TermElabM Expr := do e ← elabTermAndSynthesize stx expectedType?; when e.hasMVar $ - throwError stx ("invalid macro application, term contains metavariables" ++ indentExpr e); + throwError ("invalid macro application, term contains metavariables" ++ indentExpr e); when e.hasFVar $ - throwError stx ("invalid macro application, term contains free variables" ++ indentExpr e); + throwError ("invalid macro application, term contains free variables" ++ indentExpr e); pure e @[builtinTermElab «nativeRefl»] def elabNativeRefl : TermElab := fun stx _ => do let arg := stx.getArg 1; e ← elabClosedTerm arg none; - type ← inferType stx e; - type ← whnf stx type; + type ← inferType e; + type ← whnf type; unless (type.isConstOf `Bool || type.isConstOf `Nat) $ - throwError stx ("invalid `nativeRefl!` macro application, term must have type `Nat` or `Bool`" ++ indentExpr type); - auxDeclName ← mkNativeReflAuxDecl stx type e; + throwError ("invalid `nativeRefl!` macro application, term must have type `Nat` or `Bool`" ++ indentExpr type); + auxDeclName ← mkNativeReflAuxDecl type e; let isBool := type.isConstOf `Bool; let reduceValFn := if isBool then `Lean.reduceBool else `Lean.reduceNat; let reduceThm := if isBool then `Lean.ofReduceBool else `Lean.ofReduceNat; let aux := Lean.mkConst auxDeclName; let reduceVal := mkApp (Lean.mkConst reduceValFn) aux; - val? ← liftMetaM stx $ Meta.reduceNative? reduceVal; + val? ← liftMetaM $ Meta.reduceNative? reduceVal; match val? with - | none => throwError stx ("failed to reduce term at `nativeRefl!` macro application" ++ indentExpr e) + | none => throwError ("failed to reduce term at `nativeRefl!` macro application" ++ indentExpr e) | some val => do - rflPrf ← liftMetaM stx $ Meta.mkEqRefl val; + rflPrf ← liftMetaM $ Meta.mkEqRefl val; let r := mkApp3 (Lean.mkConst reduceThm) aux val rflPrf; - eq ← liftMetaM stx $ Meta.mkEq e val; - mkExpectedTypeHint stx r eq + eq ← liftMetaM $ Meta.mkEq e val; + mkExpectedTypeHint r eq -private def getPropToDecide (ref : Syntax) (arg : Syntax) (expectedType? : Option Expr) : TermElabM Expr := +private def getPropToDecide (arg : Syntax) (expectedType? : Option Expr) : TermElabM Expr := if arg.isOfKind `Lean.Parser.Term.hole then do tryPostponeIfNoneOrMVar expectedType?; match expectedType? with - | none => throwError ref "invalid macro, expected type is not available" + | none => throwError "invalid macro, expected type is not available" | some expectedType => do - expectedType ← instantiateMVars ref expectedType; + expectedType ← instantiateMVars expectedType; when (expectedType.hasFVar || expectedType.hasMVar) $ - throwError ref ("expected type must not contain free or meta variables" ++ indentExpr expectedType); + throwError ("expected type must not contain free or meta variables" ++ indentExpr expectedType); pure expectedType else let prop := mkSort levelZero; @@ -172,21 +171,21 @@ else @[builtinTermElab «nativeDecide»] def elabNativeDecide : TermElab := fun stx expectedType? => do let arg := stx.getArg 1; - p ← getPropToDecide stx arg expectedType?; - d ← mkAppM stx `Decidable.decide #[p]; - auxDeclName ← mkNativeReflAuxDecl stx (Lean.mkConst `Bool) d; - rflPrf ← liftMetaM stx $ Meta.mkEqRefl (toExpr true); + p ← getPropToDecide arg expectedType?; + d ← mkAppM `Decidable.decide #[p]; + auxDeclName ← mkNativeReflAuxDecl (Lean.mkConst `Bool) d; + rflPrf ← liftMetaM $ Meta.mkEqRefl (toExpr true); let r := mkApp3 (Lean.mkConst `Lean.ofReduceBool) (Lean.mkConst auxDeclName) (toExpr true) rflPrf; - mkExpectedTypeHint stx r p + mkExpectedTypeHint r p @[builtinTermElab Lean.Parser.Term.decide] def elabDecide : TermElab := fun stx expectedType? => do let arg := stx.getArg 1; - p ← getPropToDecide stx arg expectedType?; - d ← mkAppM stx `Decidable.decide #[p]; - d ← instantiateMVars stx d; + p ← getPropToDecide arg expectedType?; + d ← mkAppM `Decidable.decide #[p]; + d ← instantiateMVars d; let s := d.appArg!; -- get instance from `d` - rflPrf ← liftMetaM stx $ Meta.mkEqRefl (toExpr true); + rflPrf ← liftMetaM $ Meta.mkEqRefl (toExpr true); pure $ mkApp3 (Lean.mkConst `ofDecideEqTrue) p s rflPrf def elabInfix (f : Syntax) : Macro := diff --git a/stage0/src/Lean/Elab/CollectFVars.lean b/stage0/src/Lean/Elab/CollectFVars.lean index 2f725631ad..6607de7260 100644 --- a/stage0/src/Lean/Elab/CollectFVars.lean +++ b/stage0/src/Lean/Elab/CollectFVars.lean @@ -10,26 +10,26 @@ namespace Lean namespace Elab namespace Term -def collectUsedFVars (ref : Syntax) (used : CollectFVars.State) (e : Expr) : TermElabM CollectFVars.State := do -e ← Term.instantiateMVars ref e; +def collectUsedFVars (used : CollectFVars.State) (e : Expr) : TermElabM CollectFVars.State := do +e ← Term.instantiateMVars e; pure $ collectFVars used e -def collectUsedFVarsAtFVars (ref : Syntax) (used : CollectFVars.State) (fvars : Array Expr) : TermElabM CollectFVars.State := +def collectUsedFVarsAtFVars (used : CollectFVars.State) (fvars : Array Expr) : TermElabM CollectFVars.State := fvars.foldlM (fun used fvar => do - fvarType ← Term.inferType ref fvar; - collectUsedFVars ref used fvarType) + fvarType ← Term.inferType fvar; + collectUsedFVars used fvarType) used -def removeUnused (ref : Syntax) (vars : Array Expr) (used : CollectFVars.State) : TermElabM (LocalContext × LocalInstances × Array Expr) := do +def removeUnused (vars : Array Expr) (used : CollectFVars.State) : TermElabM (LocalContext × LocalInstances × Array Expr) := do localInsts ← Term.getLocalInsts; lctx ← Term.getLCtx; (lctx, localInsts, newVars, _) ← vars.foldrM (fun var (result : LocalContext × LocalInstances × Array Expr × CollectFVars.State) => let (lctx, localInsts, newVars, used) := result; if used.fvarSet.contains var.fvarId! then do - varType ← Term.inferType ref var; - used ← Term.collectUsedFVars ref used varType; + varType ← Term.inferType var; + used ← Term.collectUsedFVars used varType; pure (lctx, localInsts, newVars.push var, used) else pure (lctx.erase var.fvarId!, localInsts.erase var.fvarId!, newVars, used)) diff --git a/stage0/src/Lean/Elab/Command.lean b/stage0/src/Lean/Elab/Command.lean index fc9cb503e9..eff251ed8c 100644 --- a/stage0/src/Lean/Elab/Command.lean +++ b/stage0/src/Lean/Elab/Command.lean @@ -500,7 +500,7 @@ fun stx => do withoutModifyingEnv $ runTermElabM (some `_check) $ fun _ => do e ← Term.elabTerm term none; Term.synthesizeSyntheticMVars false; - type ← Term.inferType stx e; + type ← Term.inferType e; logInfo stx (e ++ " : " ++ type); pure () @@ -531,8 +531,8 @@ when succeeded $ @[builtinCommandElab «check_failure»] def elabCheckFailure : CommandElab := fun stx => failIfSucceeds stx $ elabCheck stx -def addDecl (ref : Syntax) (decl : Declaration) : CommandElabM Unit := liftTermElabM none $ Term.addDecl ref decl -def compileDecl (ref : Syntax) (decl : Declaration) : CommandElabM Unit := liftTermElabM none $ Term.compileDecl ref decl +def addDecl (decl : Declaration) : CommandElabM Unit := liftTermElabM none $ Term.addDecl decl +def compileDecl (decl : Declaration) : CommandElabM Unit := liftTermElabM none $ Term.compileDecl decl def addInstance (ref : Syntax) (declName : Name) : CommandElabM Unit := do env ← getEnv; @@ -547,26 +547,26 @@ fun stx => withoutModifyingEnv do ctx ← read; env ← getEnv; let addAndCompile (value : Expr) : TermElabM Unit := do { - type ← Term.inferType ref value; + type ← Term.inferType value; let decl := Declaration.defnDecl { name := n, lparams := [], type := type, value := value, hints := ReducibilityHints.opaque, isUnsafe := true }; - Term.addDecl ref decl; - Term.compileDecl ref decl + Term.addDecl decl; + Term.compileDecl decl }; let elabMetaEval : CommandElabM Unit := do { act : IO Environment ← runTermElabM (some n) fun _ => do { e ← Term.elabTerm term none; Term.synthesizeSyntheticMVars false; - e ← Term.withLocalDecl ref `env BinderInfo.default (mkConst `Lean.Environment) fun env => - Term.withLocalDecl ref `opts BinderInfo.default (mkConst `Lean.Options) fun opts => do { - e ← Term.mkAppM ref `Lean.MetaHasEval.eval #[env, opts, e, toExpr false]; - Term.mkLambda ref #[env, opts] e + e ← Term.withLocalDecl `env BinderInfo.default (mkConst `Lean.Environment) fun env => + Term.withLocalDecl `opts BinderInfo.default (mkConst `Lean.Options) fun opts => do { + e ← Term.mkAppM `Lean.MetaHasEval.eval #[env, opts, e, toExpr false]; + Term.mkLambda #[env, opts] e }; addAndCompile e; env ← Term.getEnv; opts ← Term.getOptions; match env.evalConst (Environment → Options → IO Environment) n with - | Except.error e => Term.throwError ref e + | Except.error e => Term.throwError e | Except.ok act => pure $ act env opts }; (out, res) ← liftIO ref $ IO.Prim.withIsolatedStreams act; @@ -581,11 +581,11 @@ fun stx => withoutModifyingEnv do act : IO Unit ← runTermElabM (some n) fun _ => do { e ← Term.elabTerm term none; Term.synthesizeSyntheticMVars false; - e ← Term.mkAppM ref `Lean.HasEval.eval #[e, toExpr false]; + e ← Term.mkAppM `Lean.HasEval.eval #[e, toExpr false]; addAndCompile e; env ← Term.getEnv; match env.evalConst (IO Unit) n with - | Except.error e => Term.throwError ref e + | Except.error e => Term.throwError e | Except.ok act => pure act }; (out, res) ← liftIO ref $ IO.Prim.withIsolatedStreams act; @@ -609,8 +609,8 @@ fun stx => do withoutModifyingEnv $ runTermElabM `_synth_cmd $ fun _ => do inst ← Term.elabTerm term none; Term.synthesizeSyntheticMVars false; - inst ← Term.instantiateMVars ref inst; - val ← Term.liftMetaM ref $ Meta.synthInstance inst; + inst ← Term.instantiateMVars inst; + val ← Term.liftMetaM $ Meta.synthInstance inst; logInfo stx val; pure () diff --git a/stage0/src/Lean/Elab/Declaration.lean b/stage0/src/Lean/Elab/Declaration.lean index 1576fa3f9d..406226f5ca 100644 --- a/stage0/src/Lean/Elab/Declaration.lean +++ b/stage0/src/Lean/Elab/Declaration.lean @@ -87,13 +87,13 @@ withDeclId declId $ fun name => do decl ← runTermElabM declName $ fun vars => Term.elabBinders binders.getArgs $ fun xs => do { type ← Term.elabType typeStx; Term.synthesizeSyntheticMVars false; - type ← Term.instantiateMVars typeStx type; - type ← Term.mkForall typeStx xs type; - (type, _) ← Term.mkForallUsedOnly typeStx vars type; + type ← Term.instantiateMVars type; + type ← Term.mkForall xs type; + (type, _) ← Term.mkForallUsedOnly vars type; (type, _) ← Term.levelMVarToParam type; let usedParams := (collectLevelParams {} type).params; match sortDeclLevelParams scopeLevelNames allUserLevelNames usedParams with - | Except.error msg => Term.throwError stx msg + | Except.error msg => Term.throwErrorAt stx msg | Except.ok levelParams => pure $ Declaration.axiomDecl { name := declName, @@ -102,7 +102,7 @@ withDeclId declId $ fun name => do isUnsafe := modifiers.isUnsafe } }; - addDecl stx decl; + addDecl decl; applyAttributes stx declName modifiers.attrs AttributeApplicationTime.afterTypeChecking; applyAttributes stx declName modifiers.attrs AttributeApplicationTime.afterCompilation diff --git a/stage0/src/Lean/Elab/Definition.lean b/stage0/src/Lean/Elab/Definition.lean index c17d4f96d5..56bf88c8b1 100644 --- a/stage0/src/Lean/Elab/Definition.lean +++ b/stage0/src/Lean/Elab/Definition.lean @@ -40,55 +40,55 @@ structure DefView := (type? : Option Syntax) (val : Syntax) -private def removeUnused (ref : Syntax) (vars : Array Expr) (xs : Array Expr) (e : Expr) (eType : Expr) +private def removeUnused (vars : Array Expr) (xs : Array Expr) (e : Expr) (eType : Expr) : TermElabM (LocalContext × LocalInstances × Array Expr) := do let used : CollectFVars.State := {}; -used ← Term.collectUsedFVars ref used eType; -used ← Term.collectUsedFVars ref used e; -used ← Term.collectUsedFVarsAtFVars ref used xs; -Term.removeUnused ref vars used +used ← Term.collectUsedFVars used eType; +used ← Term.collectUsedFVars used e; +used ← Term.collectUsedFVarsAtFVars used xs; +Term.removeUnused vars used -private def withUsedWhen {α} (ref : Syntax) (vars : Array Expr) (xs : Array Expr) (e : Expr) (eType : Expr) (cond : Bool) (k : Array Expr → TermElabM α) : TermElabM α := +private def withUsedWhen {α} (vars : Array Expr) (xs : Array Expr) (e : Expr) (eType : Expr) (cond : Bool) (k : Array Expr → TermElabM α) : TermElabM α := if cond then do - (lctx, localInsts, vars) ← removeUnused ref vars xs e eType; + (lctx, localInsts, vars) ← removeUnused vars xs e eType; Term.withLCtx lctx localInsts $ k vars else k vars -private def withUsedWhen' {α} (ref : Syntax) (vars : Array Expr) (xs : Array Expr) (e : Expr) (cond : Bool) (k : Array Expr → TermElabM α) : TermElabM α := +private def withUsedWhen' {α} (vars : Array Expr) (xs : Array Expr) (e : Expr) (cond : Bool) (k : Array Expr → TermElabM α) : TermElabM α := let dummyExpr := mkSort levelOne; -withUsedWhen ref vars xs e dummyExpr cond k +withUsedWhen vars xs e dummyExpr cond k def mkDef (view : DefView) (declName : Name) (scopeLevelNames allUserLevelNames : List Name) (vars : Array Expr) (xs : Array Expr) (type : Expr) (val : Expr) : TermElabM (Option Declaration) := do -let ref := view.ref; +Term.withRef view.ref do Term.synthesizeSyntheticMVars; -val ← Term.ensureHasType view.val type val; +val ← Term.withRef view.val $ Term.ensureHasType type val; Term.synthesizeSyntheticMVars false; -type ← Term.instantiateMVars ref type; -val ← Term.instantiateMVars view.val val; +type ← Term.instantiateMVars type; +val ← Term.instantiateMVars val; if view.kind.isExample then pure none -else withUsedWhen ref vars xs val type view.kind.isDefOrAbbrevOrOpaque $ fun vars => do - type ← Term.mkForall ref xs type; - type ← Term.mkForall ref vars type; - val ← Term.mkLambda ref xs val; - val ← Term.mkLambda ref vars val; +else withUsedWhen vars xs val type view.kind.isDefOrAbbrevOrOpaque $ fun vars => do + type ← Term.mkForall xs type; + type ← Term.mkForall vars type; + val ← Term.mkLambda xs val; + val ← Term.mkLambda vars val; (type, nextParamIdx) ← Term.levelMVarToParam type; (val, _) ← Term.levelMVarToParam val nextParamIdx; - type ← Term.instantiateMVars ref type; - val ← Term.instantiateMVars view.val val; + type ← Term.instantiateMVars type; + val ← Term.instantiateMVars val; let shareCommonTypeVal : Std.ShareCommonM (Expr × Expr) := do { type ← Std.withShareCommon type; val ← Std.withShareCommon val; pure (type, val) }; let (type, val) := shareCommonTypeVal.run; - Term.trace `Elab.definition.body ref $ fun _ => declName ++ " : " ++ type ++ " :=" ++ Format.line ++ val; + Term.trace `Elab.definition.body fun _ => declName ++ " : " ++ type ++ " :=" ++ Format.line ++ val; let usedParams : CollectLevelParams.State := {}; let usedParams := collectLevelParams usedParams type; let usedParams := collectLevelParams usedParams val; match sortDeclLevelParams scopeLevelNames allUserLevelNames usedParams.params with - | Except.error msg => Term.throwError ref msg + | Except.error msg => Term.throwError msg | Except.ok levelParams => match view.kind with | DefKind.theorem => @@ -115,7 +115,7 @@ if kind == `Lean.Parser.Command.declValSimple then -- parser! " := " >> termParser Term.elabTerm (defVal.getArg 1) expectedType else if kind == `Lean.Parser.Command.declValEqns then - Term.throwError defVal "equations have not been implemented yet" + Term.throwErrorAt defVal "equations have not been implemented yet" else Term.throwUnsupportedSyntax @@ -131,21 +131,21 @@ withDeclId view.declId $ fun name => do | some typeStx => do type ← Term.elabType typeStx; Term.synthesizeSyntheticMVars false; - type ← Term.instantiateMVars typeStx type; - withUsedWhen' ref vars xs type view.kind.isTheorem $ fun vars => do + type ← Term.instantiateMVars type; + withUsedWhen' vars xs type view.kind.isTheorem $ fun vars => do val ← elabDefVal view.val type; mkDef view declName scopeLevelNames allUserLevelNames vars xs type val | none => do { - type ← Term.mkFreshTypeMVar view.binders; + type ← Term.withRef view.binders $ Term.mkFreshTypeMVar; val ← elabDefVal view.val type; mkDef view declName scopeLevelNames allUserLevelNames vars xs type val }; match decl? with | none => pure () | some decl => do - addDecl ref decl; + addDecl decl; applyAttributes ref declName view.modifiers.attrs AttributeApplicationTime.afterTypeChecking; - compileDecl ref decl; + compileDecl decl; applyAttributes ref declName view.modifiers.attrs AttributeApplicationTime.afterCompilation @[init] private def regTraceClasses : IO Unit := do diff --git a/stage0/src/Lean/Elab/DoNotation.lean b/stage0/src/Lean/Elab/DoNotation.lean index 4e6df3d86b..275229744e 100644 --- a/stage0/src/Lean/Elab/DoNotation.lean +++ b/stage0/src/Lean/Elab/DoNotation.lean @@ -16,27 +16,27 @@ structure ExtractMonadResult := (α : Expr) (hasBindInst : Expr) -private def mkIdBindFor (ref : Syntax) (type : Expr) : TermElabM ExtractMonadResult := do -u ← getLevel ref type; +private def mkIdBindFor (type : Expr) : TermElabM ExtractMonadResult := do +u ← getLevel type; let id := Lean.mkConst `Id [u]; let idBindVal := Lean.mkConst `Id.hasBind [u]; pure { m := id, hasBindInst := idBindVal, α := type } -private def extractBind (ref : Syntax) (expectedType? : Option Expr) : TermElabM ExtractMonadResult := do +private def extractBind (expectedType? : Option Expr) : TermElabM ExtractMonadResult := do match expectedType? with -| none => throwError ref "invalid do notation, expected type is not available" +| none => throwError "invalid do notation, expected type is not available" | some expectedType => do - type ← withReducible $ whnf ref expectedType; - when type.getAppFn.isMVar $ throwError ref "invalid do notation, expected type is not available"; + type ← withReducible $ whnf expectedType; + when type.getAppFn.isMVar $ throwError "invalid do notation, expected type is not available"; match type with | Expr.app m α _ => catch (do - bindInstType ← mkAppM ref `HasBind #[m]; - bindInstVal ← synthesizeInst ref bindInstType; + bindInstType ← mkAppM `HasBind #[m]; + bindInstVal ← synthesizeInst bindInstType; pure { m := m, hasBindInst := bindInstVal, α := α }) - (fun ex => mkIdBindFor ref type) - | _ => mkIdBindFor ref type + (fun ex => mkIdBindFor type) + | _ => mkIdBindFor type private def getDoElems (stx : Syntax) : Array Syntax := --parser! "do " >> (bracketedDoSeq <|> doSeq) @@ -147,34 +147,34 @@ structure ProcessedDoElem := instance ProcessedDoElem.inhabited : Inhabited ProcessedDoElem := ⟨⟨arbitrary _, arbitrary _⟩⟩ -private def extractTypeFormerAppArg (ref : Syntax) (type : Expr) : TermElabM Expr := do -type ← withReducible $ whnf ref type; +private def extractTypeFormerAppArg (type : Expr) : TermElabM Expr := do +type ← withReducible $ whnf type; match type with | Expr.app _ a _ => pure a -| _ => throwError ref ("type former application expected" ++ indentExpr type) +| _ => throwError ("type former application expected" ++ indentExpr type) /- HasBind.bind : ∀ {m : Type u_1 → Type u_2} [self : HasBind m] {α β : Type u_1}, m α → (α → m β) → m β -/ -private def mkBind (ref : Syntax) (m bindInstVal : Expr) (elems : Array ProcessedDoElem) (body : Expr) : TermElabM Expr := +private def mkBind (m bindInstVal : Expr) (elems : Array ProcessedDoElem) (body : Expr) : TermElabM Expr := if elems.isEmpty then pure body else do let x := elems.back.var; -- any variable would work since they must be in the same universe - xType ← inferType ref x; - u_1 ← getDecLevel ref xType; - bodyType ← inferType ref body; - u_2 ← getDecLevel ref bodyType; + xType ← inferType x; + u_1 ← getDecLevel xType; + bodyType ← inferType body; + u_2 ← getDecLevel bodyType; let bindAndInst := mkApp2 (Lean.mkConst `HasBind.bind [u_1, u_2]) m bindInstVal; elems.foldrM (fun elem body => do -- dbgTrace (">>> " ++ toString body); let var := elem.var; let action := elem.action; - α ← inferType ref var; - mβ ← inferType ref body; - β ← extractTypeFormerAppArg ref mβ; - f ← mkLambda ref #[var] body; + α ← inferType var; + mβ ← inferType body; + β ← extractTypeFormerAppArg mβ; + f ← mkLambda #[var] body; -- dbgTrace (">>> f: " ++ toString f); let body := mkAppN bindAndInst #[α, β, action, f]; pure body) @@ -184,45 +184,44 @@ private partial def processDoElemsAux (doElems : Array Syntax) (m bindInstVal : | i, elems => let doElem := doElems.get! i; let k := doElem.getKind; - let ref := doElem; + withRef doElem $ if k == `Lean.Parser.Term.doId then do when (i == doElems.size - 1) $ - throwError ref "the last statement in a 'do' block must be an expression"; + throwError "the last statement in a 'do' block must be an expression"; -- try (ident >> optType >> leftArrow) >> termParser let id := doElem.getIdAt 0; - let typeStx := expandOptType ref (doElem.getArg 1); + let typeStx := expandOptType doElem (doElem.getArg 1); let actionStx := doElem.getArg 3; type ← elabType typeStx; let actionExpectedType := mkApp m type; action ← elabTerm actionStx actionExpectedType; - action ← ensureHasType actionStx actionExpectedType action; - withLocalDecl ref id BinderInfo.default type $ fun x => + action ← withRef actionStx $ ensureHasType actionExpectedType action; + withLocalDecl id BinderInfo.default type $ fun x => processDoElemsAux (i+1) (elems.push { action := action, var := x }) else if doElem.getKind == `Lean.Parser.Term.doExpr then do when (i != doElems.size - 1) $ - throwError ref ("unexpected 'do' expression element" ++ Format.line ++ doElem); + throwError ("unexpected 'do' expression element" ++ Format.line ++ doElem); let bodyStx := doElem.getArg 0; body ← elabTerm bodyStx expectedType; - body ← ensureHasType ref expectedType body; - mkBind ref m bindInstVal elems body + body ← ensureHasType expectedType body; + mkBind m bindInstVal elems body else - throwError ref ("unexpected 'do' expression element" ++ Format.line ++ doElem) + throwError ("unexpected 'do' expression element" ++ Format.line ++ doElem) private def processDoElems (doElems : Array Syntax) (m bindInstVal : Expr) (expectedType : Expr) : TermElabM Expr := processDoElemsAux doElems m bindInstVal expectedType 0 #[] @[builtinTermElab «do»] def elabDo : TermElab := fun stx expectedType? => do - let ref := stx; tryPostponeIfNoneOrMVar expectedType?; let doElems := getDoElems stx; stxNew? ← liftMacroM $ expandDoElems doElems; match stxNew? with | some stxNew => withMacroExpansion stx stxNew $ elabTerm stxNew expectedType? | none => do - trace `Elab.do ref $ fun _ => stx; + trace `Elab.do $ fun _ => stx; let doElems := doElems.getSepElems; - { m := m, hasBindInst := bindInstVal, .. } ← extractBind ref expectedType?; + { m := m, hasBindInst := bindInstVal, .. } ← extractBind expectedType?; result ← processDoElems doElems m bindInstVal expectedType?.get!; -- dbgTrace ("result: " ++ toString result); pure result diff --git a/stage0/src/Lean/Elab/Inductive.lean b/stage0/src/Lean/Elab/Inductive.lean index 02a33044b8..06a61271e7 100644 --- a/stage0/src/Lean/Elab/Inductive.lean +++ b/stage0/src/Lean/Elab/Inductive.lean @@ -81,13 +81,13 @@ private partial def elabHeaderAux (views : Array InductiveView) localInsts ← Term.getLocalInsts; match view.type? with | none => do - u ← Term.mkFreshLevelMVar view.ref; + u ← Term.mkFreshLevelMVar; let type := mkSort (mkLevelSucc u); elabHeaderAux (i+1) (acc.push { lctx := lctx, localInsts := localInsts, params := params, type := type, view := view }) | some typeStx => do type ← Term.elabTerm typeStx none; - unlessM (Term.isTypeFormerType view.ref type) $ - Term.throwError typeStx "invalid inductive type, resultant type is not a sort"; + unlessM (Term.isTypeFormerType type) $ + Term.throwErrorAt typeStx "invalid inductive type, resultant type is not a sort"; elabHeaderAux (i+1) (acc.push { lctx := lctx, localInsts := localInsts, params := params, type := type, view := view }) else pure acc @@ -95,71 +95,71 @@ private partial def elabHeaderAux (views : Array InductiveView) private def checkNumParams (rs : Array ElabHeaderResult) : TermElabM Nat := do let numParams := (rs.get! 0).params.size; rs.forM fun r => unless (r.params.size == numParams) $ - Term.throwError r.view.ref "invalid inductive type, number of parameters mismatch in mutually inductive datatypes"; + Term.throwErrorAt r.view.ref "invalid inductive type, number of parameters mismatch in mutually inductive datatypes"; pure numParams private def checkUnsafe (rs : Array ElabHeaderResult) : TermElabM Unit := let isUnsafe := (rs.get! 0).view.modifiers.isUnsafe; rs.forM fun r => unless (r.view.modifiers.isUnsafe == isUnsafe) $ - Term.throwError r.view.ref "invalid inductive type, cannot mix unsafe and safe declarations in a mutually inductive datatypes" + Term.throwErrorAt r.view.ref "invalid inductive type, cannot mix unsafe and safe declarations in a mutually inductive datatypes" private def checkLevelNames (views : Array InductiveView) : TermElabM Unit := when (views.size > 1) do let levelNames := (views.get! 0).levelNames; views.forM fun view => unless (view.levelNames == levelNames) $ - Term.throwError view.ref "invalid inductive type, universe parameters mismatch in mutually inductive datatypes" + Term.throwErrorAt view.ref "invalid inductive type, universe parameters mismatch in mutually inductive datatypes" private def mkTypeFor (r : ElabHeaderResult) : TermElabM Expr := do Term.withLocalContext r.lctx r.localInsts do - Term.mkForall r.view.ref r.params r.type + Term.mkForall r.params r.type -private def throwUnexpectedInductiveType {α} (ref : Syntax) : TermElabM α := -Term.throwError ref "unexpected inductive resulting type" +private def throwUnexpectedInductiveType {α} : TermElabM α := +Term.throwError "unexpected inductive resulting type" -- Given `e` of the form `forall As, B`, return `B`. -private def getResultingType (ref : Syntax) (e : Expr) : TermElabM Expr := -Term.liftMetaM ref $ Meta.forallTelescopeReducing e fun _ r => pure r +private def getResultingType (e : Expr) : TermElabM Expr := +Term.liftMetaM $ Meta.forallTelescopeReducing e fun _ r => pure r private def eqvFirstTypeResult (firstType type : Expr) : MetaM Bool := Meta.forallTelescopeReducing firstType fun _ firstTypeResult => Meta.isDefEq firstTypeResult type -- Auxiliary function for checking whether the types in mutually inductive declaration are compatible. -private partial def checkParamsAndResultType (ref : Syntax) (numParams : Nat) : Nat → Expr → Expr → TermElabM Unit +private partial def checkParamsAndResultType (numParams : Nat) : Nat → Expr → Expr → TermElabM Unit | i, type, firstType => do - type ← Term.whnf ref type; + type ← Term.whnf type; if i < numParams then do - firstType ← Term.whnf ref firstType; + firstType ← Term.whnf firstType; match type, firstType with | Expr.forallE n₁ d₁ b₁ c₁, Expr.forallE n₂ d₂ b₂ c₂ => do unless (n₁ == n₂) $ let msg : MessageData := "invalid mutually inductive types, parameter name mismatch '" ++ n₁ ++ "', expected '" ++ n₂ ++ "'"; - Term.throwError ref msg; - unlessM (Term.isDefEq ref d₁ d₂) $ + Term.throwError msg; + unlessM (Term.isDefEq d₁ d₂) $ let msg : MessageData := "invalid mutually inductive types, type mismatch at parameter '" ++ n₁ ++ "'" ++ indentExpr d₁ ++ Format.line ++ "expected type" ++ indentExpr d₂; - Term.throwError ref msg; + Term.throwError msg; unless (c₁.binderInfo == c₂.binderInfo) $ -- TODO: improve this error message? - Term.throwError ref ("invalid mutually inductive types, binder annotation mismatch at parameter '" ++ n₁ ++ "'"); - Term.withLocalDecl ref n₁ c₁.binderInfo d₁ fun x => + Term.throwError ("invalid mutually inductive types, binder annotation mismatch at parameter '" ++ n₁ ++ "'"); + Term.withLocalDecl n₁ c₁.binderInfo d₁ fun x => let type := b₁.instantiate1 x; let firstType := b₂.instantiate1 x; checkParamsAndResultType (i+1) type firstType - | _, _ => throwUnexpectedInductiveType ref + | _, _ => throwUnexpectedInductiveType else match type with | Expr.forallE n d b c => - Term.withLocalDecl ref n c.binderInfo d fun x => + Term.withLocalDecl n c.binderInfo d fun x => let type := b.instantiate1 x; checkParamsAndResultType (i+1) type firstType | Expr.sort _ _ => - unlessM (Term.liftMetaM ref $ eqvFirstTypeResult firstType type) $ + unlessM (Term.liftMetaM $ eqvFirstTypeResult firstType type) $ let msg : MessageData := "invalid mutually inductive types, resulting universe mismatch, given " ++ indentExpr type ++ Format.line ++ "expected type" ++ indentExpr firstType; - Term.throwError ref msg - | _ => throwUnexpectedInductiveType ref + Term.throwError msg + | _ => throwUnexpectedInductiveType -- Auxiliary function for checking whether the types in mutually inductive declaration are compatible. private def checkHeader (r : ElabHeaderResult) (numParams : Nat) (firstType? : Option Expr) : TermElabM Expr := do @@ -167,7 +167,7 @@ type ← mkTypeFor r; match firstType? with | none => pure type | some firstType => do - checkParamsAndResultType r.view.ref numParams 0 type firstType; + Term.withRef r.view.ref $ checkParamsAndResultType numParams 0 type firstType; pure firstType -- Auxiliary function for checking whether the types in mutually inductive declaration are compatible. @@ -185,13 +185,13 @@ when (rs.size > 1) do { }; pure rs -private partial def withInductiveLocalDeclsAux {α} (ref : Syntax) (namesAndTypes : Array (Name × Expr)) (params : Array Expr) +private partial def withInductiveLocalDeclsAux {α} (namesAndTypes : Array (Name × Expr)) (params : Array Expr) (x : Array Expr → Array Expr → TermElabM α) : Nat → Array Expr → TermElabM α | i, indFVars => if h : i < namesAndTypes.size then do let (id, type) := namesAndTypes.get ⟨i, h⟩; - type ← Term.liftMetaM ref (Meta.instantiateForall type params); - Term.withLocalDecl ref id BinderInfo.default type fun indFVar => withInductiveLocalDeclsAux (i+1) (indFVars.push indFVar) + type ← Term.liftMetaM (Meta.instantiateForall type params); + Term.withLocalDecl id BinderInfo.default type fun indFVar => withInductiveLocalDeclsAux (i+1) (indFVars.push indFVar) else x params indFVars @@ -207,12 +207,12 @@ namesAndTypes ← rs.mapM fun r => do { }; let r0 := rs.get! 0; let params := r0.params; -Term.withLocalContext r0.lctx r0.localInsts $ - withInductiveLocalDeclsAux r0.view.ref namesAndTypes params x 0 #[] +Term.withLocalContext r0.lctx r0.localInsts $ Term.withRef r0.view.ref $ + withInductiveLocalDeclsAux namesAndTypes params x 0 #[] -private def isInductiveFamily (ref : Syntax) (indFVar : Expr) : TermElabM Bool := do -indFVarType ← Term.inferType ref indFVar; -indFVarType ← Term.whnf ref indFVarType; +private def isInductiveFamily (indFVar : Expr) : TermElabM Bool := do +indFVarType ← Term.inferType indFVar; +indFVarType ← Term.whnf indFVarType; pure !indFVarType.isSort /- @@ -222,33 +222,33 @@ pure !indFVarType.isSort we do not check for: - Positivity (it is a rare failure, and the kernel already checks for it). - Universe constraints (the kernel checks for it). -/ -private def elabCtors (indFVar : Expr) (params : Array Expr) (r : ElabHeaderResult) : TermElabM (List Constructor) := do -let ref := r.view.ref; -indFamily ← isInductiveFamily ref indFVar; -r.view.ctors.toList.mapM fun ctorView => Term.elabBinders ctorView.binders.getArgs fun ctorParams => do - let ref := ctorView.ref; +private def elabCtors (indFVar : Expr) (params : Array Expr) (r : ElabHeaderResult) : TermElabM (List Constructor) := +Term.withRef r.view.ref do +indFamily ← isInductiveFamily indFVar; +r.view.ctors.toList.mapM fun ctorView => Term.elabBinders ctorView.binders.getArgs fun ctorParams => + Term.withRef ctorView.ref $ do type ← match ctorView.type? with | none => do when indFamily $ - Term.throwError ref "constructor resulting type must be specified in inductive family declaration"; + Term.throwError "constructor resulting type must be specified in inductive family declaration"; pure indFVar | some ctorType => do { type ← Term.elabTerm ctorType none; - resultingType ← getResultingType ref type; + resultingType ← getResultingType type; unless (resultingType.getAppFn == indFVar) $ - Term.throwError ref ("unexpected constructor resulting type" ++ indentExpr resultingType); - unlessM (Term.isType ref resultingType) $ - Term.throwError ref ("unexpected constructor resulting type, type expected" ++ indentExpr resultingType); + Term.throwError ("unexpected constructor resulting type" ++ indentExpr resultingType); + unlessM (Term.isType resultingType) $ + Term.throwError ("unexpected constructor resulting type, type expected" ++ indentExpr resultingType); pure type }; - type ← Term.mkForall ref ctorParams type; - type ← Term.mkForall ref params type; + type ← Term.mkForall ctorParams type; + type ← Term.mkForall params type; pure { name := ctorView.declName, type := type } /- Convert universe metavariables occurring in the `indTypes` into new parameters. Remark: if the resulting inductive datatype has universe metavariables, we will fix it later using `inferResultingUniverse`. -/ -private def levelMVarToParamAux (ref : Syntax) (indTypes : List InductiveType) : StateT Nat TermElabM (List InductiveType) := +private def levelMVarToParamAux (indTypes : List InductiveType) : StateT Nat TermElabM (List InductiveType) := indTypes.mapM fun indType => do type ← Term.levelMVarToParam' indType.type; ctors ← indType.ctors.mapM fun ctor => do { @@ -257,16 +257,16 @@ indTypes.mapM fun indType => do }; pure { indType with ctors := ctors, type := type } -private def levelMVarToParam (ref : Syntax) (indTypes : List InductiveType) : TermElabM (List InductiveType) := -(levelMVarToParamAux ref indTypes).run' 1 +private def levelMVarToParam (indTypes : List InductiveType) : TermElabM (List InductiveType) := +(levelMVarToParamAux indTypes).run' 1 -private def getResultingUniverse (ref : Syntax) : List InductiveType → TermElabM Level -| [] => Term.throwError ref "unexpected empty inductive declaration" +private def getResultingUniverse : List InductiveType → TermElabM Level +| [] => Term.throwError "unexpected empty inductive declaration" | indType :: _ => do - r ← getResultingType ref indType.type; + r ← getResultingType indType.type; match r with | Expr.sort u _ => pure u - | _ => Term.throwError ref "unexpected inductive type resulting type" + | _ => Term.throwError "unexpected inductive type resulting type" def tmpIndParam := mkLevelParam `_tmp_ind_univ_param @@ -274,15 +274,15 @@ def tmpIndParam := mkLevelParam `_tmp_ind_univ_param Return true if `u` is of the form `?m + k`. Return false if `u` does not contain universe metavariables. Throw exception otherwise. -/ -def shouldInferResultUniverse (ref : Syntax) (u : Level) : TermElabM Bool := do -u ← Term.instantiateLevelMVars ref u; +def shouldInferResultUniverse (u : Level) : TermElabM Bool := do +u ← Term.instantiateLevelMVars u; if u.hasMVar then match u.getLevelOffset with | Level.mvar mvarId _ => do Term.assignLevelMVar mvarId tmpIndParam; pure true | _ => - Term.throwError ref $ + Term.throwError $ "cannot infer resulting universe level of inductive datatype, given level contains metavariables " ++ mkSort u ++ ", provide universe explicitly" else pure false @@ -305,41 +305,41 @@ def accLevelAtCtor : Level → Level → Nat → Array Level → Except String ( else pure (us.push u) /- Auxiliary function for `updateResultingUniverse` -/ -private partial def collectUniversesFromCtorTypeAux (ref : Syntax) (r : Level) (rOffset : Nat) : Nat → Expr → Array Level → TermElabM (Array Level) +private partial def collectUniversesFromCtorTypeAux (r : Level) (rOffset : Nat) : Nat → Expr → Array Level → TermElabM (Array Level) | 0, Expr.forallE n d b c, us => do - u ← Term.getLevel ref d; - u ← Term.instantiateLevelMVars ref u; + u ← Term.getLevel d; + u ← Term.instantiateLevelMVars u; match accLevelAtCtor u r rOffset us with - | Except.error msg => Term.throwError ref msg - | Except.ok us => Term.withLocalDecl ref n c.binderInfo d $ fun x => + | Except.error msg => Term.throwError msg + | Except.ok us => Term.withLocalDecl n c.binderInfo d $ fun x => let e := b.instantiate1 x; collectUniversesFromCtorTypeAux 0 e us | i+1, Expr.forallE n d b c, us => do - Term.withLocalDecl ref n c.binderInfo d $ fun x => + Term.withLocalDecl n c.binderInfo d $ fun x => let e := b.instantiate1 x; collectUniversesFromCtorTypeAux i e us | _, _, us => pure us /- Auxiliary function for `updateResultingUniverse` -/ private partial def collectUniversesFromCtorType - (ref : Syntax) (r : Level) (rOffset : Nat) (ctorType : Expr) (numParams : Nat) (us : Array Level) : TermElabM (Array Level) := -collectUniversesFromCtorTypeAux ref r rOffset numParams ctorType us + (r : Level) (rOffset : Nat) (ctorType : Expr) (numParams : Nat) (us : Array Level) : TermElabM (Array Level) := +collectUniversesFromCtorTypeAux r rOffset numParams ctorType us /- Auxiliary function for `updateResultingUniverse` -/ -private partial def collectUniverses (ref : Syntax) (r : Level) (rOffset : Nat) (numParams : Nat) (indTypes : List InductiveType) : TermElabM (Array Level) := +private partial def collectUniverses (r : Level) (rOffset : Nat) (numParams : Nat) (indTypes : List InductiveType) : TermElabM (Array Level) := indTypes.foldlM (fun us indType => indType.ctors.foldlM - (fun us ctor => collectUniversesFromCtorType ref r rOffset ctor.type numParams us) + (fun us ctor => collectUniversesFromCtorType r rOffset ctor.type numParams us) us) #[] -private def updateResultingUniverse (ref : Syntax) (numParams : Nat) (indTypes : List InductiveType) : TermElabM (List InductiveType) := do -r ← getResultingUniverse ref indTypes; +private def updateResultingUniverse (numParams : Nat) (indTypes : List InductiveType) : TermElabM (List InductiveType) := do +r ← getResultingUniverse indTypes; let rOffset : Nat := r.getOffset; let r : Level := r.getLevelOffset; unless (r.isParam) $ - Term.throwError ref "failed to compute resulting universe level of inductive datatype, provide universe explicitly"; -us ← collectUniverses ref r rOffset numParams indTypes; + Term.throwError "failed to compute resulting universe level of inductive datatype, provide universe explicitly"; +us ← collectUniverses r rOffset numParams indTypes; let rNew := Level.mkNaryMax us.toList; pure $ indTypes.map fun indType => let type := indType.type.replaceLevel fun u => if u == tmpIndParam then some rNew else none; @@ -349,23 +349,23 @@ private def traceIndTypes (indTypes : List InductiveType) : TermElabM Unit := indTypes.forM fun indType => indType.ctors.forM fun ctor => _root_.dbgTrace (" >> " ++ toString ctor.name ++ " : " ++ toString ctor.type) fun _ => pure () -private def removeUnused (ref : Syntax) (vars : Array Expr) (indTypes : List InductiveType) : TermElabM (LocalContext × LocalInstances × Array Expr) := do +private def removeUnused (vars : Array Expr) (indTypes : List InductiveType) : TermElabM (LocalContext × LocalInstances × Array Expr) := do used ← indTypes.foldlM (fun (used : CollectFVars.State) indType => do - used ← Term.collectUsedFVars ref used indType.type; - indType.ctors.foldlM (fun (used : CollectFVars.State) ctor => Term.collectUsedFVars ref used ctor.type) used) + used ← Term.collectUsedFVars used indType.type; + indType.ctors.foldlM (fun (used : CollectFVars.State) ctor => Term.collectUsedFVars used ctor.type) used) {}; -Term.removeUnused ref vars used +Term.removeUnused vars used -private def withUsed {α} (ref : Syntax) (vars : Array Expr) (indTypes : List InductiveType) (k : Array Expr → TermElabM α) : TermElabM α := do -(lctx, localInsts, vars) ← removeUnused ref vars indTypes; +private def withUsed {α} (vars : Array Expr) (indTypes : List InductiveType) (k : Array Expr → TermElabM α) : TermElabM α := do +(lctx, localInsts, vars) ← removeUnused vars indTypes; Term.withLCtx lctx localInsts $ k vars -private def updateParams (ref : Syntax) (vars : Array Expr) (indTypes : List InductiveType) : TermElabM (List InductiveType) := +private def updateParams (vars : Array Expr) (indTypes : List InductiveType) : TermElabM (List InductiveType) := indTypes.mapM fun indType => do - type ← Term.mkForall ref vars indType.type; + type ← Term.mkForall vars indType.type; ctors ← indType.ctors.mapM fun ctor => do { - ctorType ← Term.mkForall ref vars ctor.type; + ctorType ← Term.mkForall vars ctor.type; pure { ctor with type := ctorType } }; pure { indType with type := type, ctors := ctors } @@ -391,11 +391,11 @@ views.size.fold private def replaceIndFVarsWithConsts (views : Array InductiveView) (indFVars : Array Expr) (levelNames : List Name) (numParams : Nat) (indTypes : List InductiveType) : TermElabM (List InductiveType) := -let ref := (views.get! 0).ref; +Term.withRef (views.get! 0).ref $ let indFVar2Const := mkIndFVar2Const views indFVars levelNames; indTypes.mapM fun indType => do ctors ← indType.ctors.mapM fun ctor => do { - type ← Term.liftMetaM ref $ Meta.forallBoundedTelescope ctor.type numParams fun params type => do { + type ← Term.liftMetaM $ Meta.forallBoundedTelescope ctor.type numParams fun params type => do { let type := type.replace fun e => if !e.isFVar then none else match indFVar2Const.find? e with | some c => some $ mkAppN c params @@ -430,7 +430,7 @@ scopeLevelNames ← Term.getLevelNames; checkLevelNames views; let allUserLevelNames := view0.levelNames; let isUnsafe := view0.modifiers.isUnsafe; -let ref := view0.ref; +Term.withRef view0.ref $ adaptReader (fun (ctx : Term.Context) => { ctx with levelNames := allUserLevelNames }) do rs ← elabHeader views; withInductiveLocalDecls rs fun params indFVars => do @@ -439,23 +439,23 @@ adaptReader (fun (ctx : Term.Context) => { ctx with levelNames := allUserLevelNa (fun i (indTypes : List InductiveType) => do let indFVar := indFVars.get! i; let r := rs.get! i; - type ← Term.mkForall ref params r.type; + type ← Term.mkForall params r.type; ctors ← elabCtors indFVar params r; let indType := { name := r.view.declName, type := type, ctors := ctors : InductiveType }; pure (indType :: indTypes)) []; let indTypes := indTypes.reverse; Term.synthesizeSyntheticMVars false; -- resolve pending - u ← getResultingUniverse ref indTypes; - inferLevel ← shouldInferResultUniverse ref u; - withUsed ref vars indTypes $ fun vars => do + u ← getResultingUniverse indTypes; + inferLevel ← shouldInferResultUniverse u; + withUsed vars indTypes $ fun vars => do let numParams := vars.size + numExplicitParams; - indTypes ← updateParams ref vars indTypes; - indTypes ← levelMVarToParam ref indTypes; - indTypes ← if inferLevel then updateResultingUniverse ref numParams indTypes else pure indTypes; + indTypes ← updateParams vars indTypes; + indTypes ← levelMVarToParam indTypes; + indTypes ← if inferLevel then updateResultingUniverse numParams indTypes else pure indTypes; let usedLevelNames := collectLevelParamsInInductive indTypes; match sortDeclLevelParams scopeLevelNames allUserLevelNames usedLevelNames with - | Except.error msg => Term.throwError ref msg + | Except.error msg => Term.throwError msg | Except.ok levelParams => do indTypes ← replaceIndFVarsWithConsts views indFVars levelParams numParams indTypes; let indTypes := applyInferMod views numParams indTypes; @@ -485,9 +485,9 @@ views.forM fun view => do { def elabInductiveViews (views : Array InductiveView) : CommandElabM Unit := do let view0 := views.get! 0; -let ref := view0.ref; -decl ← runTermElabM view0.declName $ fun vars => mkInductiveDecl vars views; -addDecl ref decl; +let ref := view0.ref; +decl ← runTermElabM view0.declName $ fun vars => Term.withRef ref $ mkInductiveDecl vars views; +addDecl decl; mkAuxConstructions views; -- We need to invoke `applyAttributes` because `class` is implemented as an attribute. views.forM fun view => applyAttributes ref view.declName view.modifiers.attrs AttributeApplicationTime.afterTypeChecking; diff --git a/stage0/src/Lean/Elab/Match.lean b/stage0/src/Lean/Elab/Match.lean index 4bd0236430..aa0c17b617 100644 --- a/stage0/src/Lean/Elab/Match.lean +++ b/stage0/src/Lean/Elab/Match.lean @@ -3,9 +3,9 @@ Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ -import Lean.Elab.Term import Lean.Meta.EqnCompiler.MatchPattern import Lean.Meta.EqnCompiler.DepElim +import Lean.Elab.SyntheticMVars namespace Lean namespace Elab @@ -59,24 +59,24 @@ private def elabMatchOptType (matchStx : Syntax) (numDiscrs : Nat) : TermElabM E typeStx ← liftMacroM $ expandMatchOptType matchStx (matchStx.getArg 2) numDiscrs; elabType typeStx -private partial def elabDiscrsAux (ref : Syntax) (discrStxs : Array Syntax) (expectedType : Expr) : Nat → Expr → Array Expr → TermElabM (Array Expr) +private partial def elabDiscrsAux (discrStxs : Array Syntax) (expectedType : Expr) : Nat → Expr → Array Expr → TermElabM (Array Expr) | i, matchType, discrs => if h : i < discrStxs.size then do let discrStx := discrStxs.get ⟨i, h⟩; - matchType ← whnf ref matchType; + matchType ← whnf matchType; match matchType with | Expr.forallE _ d b _ => do discr ← elabTerm discrStx d; - discr ← ensureHasType discrStx d discr; + discr ← ensureHasType d discr; elabDiscrsAux (i+1) (b.instantiate1 discr) (discrs.push discr) - | _ => throwError ref ("invalid type provided to match-expression, function type with arity #" ++ toString discrStxs ++ " expected") + | _ => throwError ("invalid type provided to match-expression, function type with arity #" ++ toString discrStxs ++ " expected") else do - unlessM (isDefEq ref matchType expectedType) $ - throwError ref ("invalid result type provided to match-expression" ++ indentExpr matchType ++ Format.line ++ "expected type" ++ indentExpr expectedType); + unlessM (isDefEq matchType expectedType) $ + throwError ("invalid result type provided to match-expression" ++ indentExpr matchType ++ Format.line ++ "expected type" ++ indentExpr expectedType); pure discrs -private def elabDiscrs (ref : Syntax) (discrStxs : Array Syntax) (matchType : Expr) (expectedType : Expr) : TermElabM (Array Expr) := -elabDiscrsAux ref discrStxs expectedType 0 matchType #[] +private def elabDiscrs (discrStxs : Array Syntax) (matchType : Expr) (expectedType : Expr) : TermElabM (Array Expr) := +elabDiscrsAux discrStxs expectedType 0 matchType #[] /- nodeWithAntiquot "matchAlt" `Lean.Parser.Term.matchAlt $ sepBy1 termParser ", " >> darrow >> termParser @@ -92,6 +92,15 @@ private def getMatchAlts (stx : Syntax) : Array MatchAltView := let alts : Array Syntax := (stx.getArg 5).getArgs.filter fun alt => alt.getKind == `Lean.Parser.Term.matchAlt; alts.map mkMatchAltView +/-- + Auxiliary annotation used to mark terms marked with the "inaccessible" annotation `.(t)` and + `_` in patterns. -/ +def mkInaccessible (e : Expr) : Expr := +mkAnnotation `_inaccessible e + +def isInaccessible? (e : Expr) : Option Expr := +isAnnotation? `_inaccessible e + inductive PatternVar | localVar (userName : Name) -- anonymous variables (`_`) are encoded using metavariables @@ -105,6 +114,29 @@ instance PatternVar.hasToString : HasToString PatternVar := @[init] private def registerAuxiliaryNodeKind : IO Unit := Parser.registerBuiltinNodeKind `MVarWithIdKind +/-- + Create an auxiliary Syntax node wrapping a fresh metavariable id. + We use this kind of Syntax for representing `_` occurring in patterns. + The metavariables are created before we elaborate the patterns into `Expr`s. -/ +private def mkMVarSyntax : TermElabM Syntax := do +mvarId ← mkFreshId; +pure $ Syntax.node `MVarWithIdKind #[Syntax.node mvarId #[]] + +/-- Given a syntax node constructed using `mkMVarSyntax`, return its MVarId -/ +private def getMVarSyntaxMVarId (stx : Syntax) : MVarId := +(stx.getArg 0).getKind + +/-- + The elaboration function for `Syntax` created using `mkMVarSyntax`. + It just converts the metavariable id wrapped by the Syntax into an `Expr`. -/ +@[builtinTermElab MVarWithIdKind] def elabMVarWithIdKind : TermElab := +fun stx expectedType? => pure $ mkInaccessible $ mkMVar (getMVarSyntaxMVarId stx) + +@[builtinTermElab inaccessible] def elabInaccessible : TermElab := +fun stx expectedType? => do + e ← elabTerm (stx.getArg 1) expectedType?; + pure $ mkInaccessible e + /- Patterns define new local variables. This module collect them and preprocess `_` occurring in patterns. @@ -134,55 +166,59 @@ structure State := abbrev M := StateT State TermElabM -private def throwCtorExpected {α} (stx : Syntax) : M α := -liftM $ throwError stx "invalid pattern, constructor or constant marked with '[matchPattern]' expected" +private def throwCtorExpected {α} : M α := +liftM $ throwError "invalid pattern, constructor or constant marked with '[matchPattern]' expected" -private def getNumExplicitCtorParams (ref : Syntax) (ctorVal : ConstructorVal) : TermElabM Nat := -liftMetaM ref $ Meta.forallBoundedTelescope ctorVal.type ctorVal.nparams fun ps _ => +def withRef {α} (ref : Syntax) (x : M α) : M α := +adaptReader (fun (ctx : Context) => { ctx with ref := ref }) x + +private def getNumExplicitCtorParams (ctorVal : ConstructorVal) : TermElabM Nat := +liftMetaM $ Meta.forallBoundedTelescope ctorVal.type ctorVal.nparams fun ps _ => ps.foldlM (fun acc p => do localDecl ← Meta.getLocalDecl p.fvarId!; if localDecl.binderInfo.isExplicit then pure $ acc+1 else pure acc) 0 -private def throwAmbiguous {α} (ref : Syntax) (fs : List Expr) : M α := -liftM $ throwError ref ("ambiguous pattern, use fully qualified name, possible interpretations " ++ fs) +private def throwAmbiguous {α} (fs : List Expr) : M α := +liftM $ throwError ("ambiguous pattern, use fully qualified name, possible interpretations " ++ fs) -private def processVar (ref : Syntax) (id : Name) (mustBeCtor : Bool := false) : M Unit := do -when mustBeCtor $ throwCtorExpected ref; -unless id.eraseMacroScopes.isAtomic $ liftM $ throwError ref "invalid pattern variable, must be atomic"; +private def processVar (id : Name) (mustBeCtor : Bool := false) : M Unit := do +when mustBeCtor $ throwCtorExpected; +unless id.eraseMacroScopes.isAtomic $ liftM $ throwError "invalid pattern variable, must be atomic"; s ← get; -when (s.found.contains id) $ liftM $ throwError ref ("invalid pattern, variable '" ++ id ++ "' occurred more than once"); +when (s.found.contains id) $ liftM $ throwError ("invalid pattern, variable '" ++ id ++ "' occurred more than once"); modify fun s => { s with vars := s.vars.push (PatternVar.localVar id), found := s.found.insert id } /- Check whether `stx` is a pattern variable or constructor-like (i.e., constructor or constant tagged with `[matchPattern]` attribute) If `mustBeCtor == true`, then `stx` cannot be a pattern variable. If `stx` is a constructor, then return the number of explicit arguments that are inductive type parameters. -/ -private def processIdAux (stx : Syntax) (mustBeCtor : Bool) : M Nat := do +private def processIdAux (stx : Syntax) (mustBeCtor : Bool) : M Nat := +withRef stx do env ← liftM $ getEnv; match stx.isTermId? true with -| none => throwCtorExpected stx +| none => throwCtorExpected | some (id, opt) => do when ((opt.getArg 0).isOfKind `Lean.Parser.Term.namedPattern) $ - liftM $ throwError stx "invalid occurrence of named pattern"; + liftM $ throwError "invalid occurrence of named pattern"; match id with | Syntax.ident _ _ val preresolved => do - rs ← liftM $ catch (resolveName stx val preresolved []) (fun _ => pure []); + rs ← liftM $ catch (resolveName val preresolved []) (fun _ => pure []); let rs := rs.filter fun ⟨f, projs⟩ => projs.isEmpty; let fs := rs.map fun ⟨f, _⟩ => f; match fs with - | [] => do processVar stx id.getId mustBeCtor; pure 0 + | [] => do processVar id.getId mustBeCtor; pure 0 | [f] => match f with | Expr.const fName _ _ => match env.find? fName with - | some $ ConstantInfo.ctorInfo val => liftM $ getNumExplicitCtorParams stx val + | some $ ConstantInfo.ctorInfo val => liftM $ getNumExplicitCtorParams val | some $ info => if EqnCompiler.hasMatchPatternAttribute env fName then pure 0 - else do processVar stx id.getId mustBeCtor; pure 0 - | none => throwCtorExpected stx - | _ => do processVar stx id.getId mustBeCtor; pure 0 - | _ => throwAmbiguous stx fs + else do processVar id.getId mustBeCtor; pure 0 + | none => throwCtorExpected + | _ => do processVar id.getId mustBeCtor; pure 0 + | _ => throwAmbiguous fs | _ => unreachable! private def processCtor (stx : Syntax) : M Nat := @@ -191,17 +227,17 @@ processIdAux stx true private def processId (stx : Syntax) : M Unit := do _ ← processIdAux stx false; pure () -private def throwInvalidPattern {α} (stx : Syntax) : M α := -liftM $ throwError stx "invalid pattern" +private def throwInvalidPattern {α} : M α := +liftM $ throwError "invalid pattern" private partial def collect : Syntax → M Syntax -| stx@(Syntax.node k args) => withFreshMacroScope $ +| stx@(Syntax.node k args) => withRef stx $ withFreshMacroScope $ if k == `Lean.Parser.Term.app then do let appFn := args.get! 0; let appArgs := (args.get! 1).getArgs; appArgs.forM fun appArg => when (appArg.isOfKind `Lean.Parser.Term.namedPattern) $ - liftM $ throwError appArg "named parameters are not allowed in patterns"; + liftM $ throwErrorAt appArg "named parameters are not allowed in patterns"; /- We must skip explict inducitve datatype parameters since they are by defaul inaccessible. Example: `A` is inaccessible term at `Sum.inl A b` -/ numArgsToSkip ← processCtor appFn; @@ -214,7 +250,7 @@ private partial def collect : Syntax → M Syntax /- { " >> optional (try (termParser >> " with ")) >> sepBy structInstField ", " true >> optional ".." >> optional (" : " >> termParser) >> " }" -/ let withMod := args.get! 1; unless withMod.isNone $ - liftM $ throwError withMod "invalid struct instance pattern, 'with' is not allowed in patterns"; + liftM $ throwErrorAt withMod "invalid struct instance pattern, 'with' is not allowed in patterns"; let fields := (args.get! 2).getArgs; fields ← fields.mapSepElemsM fun field => do { -- parser! structInstLVal >> " := " >> termParser @@ -223,8 +259,8 @@ private partial def collect : Syntax → M Syntax }; pure $ Syntax.node k $ args.set! 2 $ mkNullNode fields else if k == `Lean.Parser.Term.hole then do - r ← `(?x); - modify fun s => { s with vars := s.vars.push $ PatternVar.anonymousVar $ (r.getArg 1).getId }; + r ← liftM mkMVarSyntax; + modify fun s => { s with vars := s.vars.push $ PatternVar.anonymousVar $ getMVarSyntaxMVarId r }; pure r else if k == `Lean.Parser.Term.paren then let arg := args.get! 1; @@ -262,12 +298,12 @@ private partial def collect : Syntax → M Syntax def namedPattern := checkNoWsBefore "no space before '@'" >> parser! "@" >> termParser maxPrec def id := parser! ident >> optional (explicitUniv <|> namedPattern) -/ let id := stx.getIdOfTermId; - processVar stx id; + processVar id; let pat := (extra.getArg 0).getArg 1; pat ← collect pat; `(namedPattern $(mkTermIdFrom stx id) $pat) else - throwInvalidPattern stx + throwInvalidPattern else if k == `Lean.Parser.Term.inaccessible then pure stx else if k == `Lean.Parser.Term.str then @@ -277,18 +313,18 @@ private partial def collect : Syntax → M Syntax else if k == `Lean.Parser.Term.char then pure stx else if k == choiceKind then - liftM $ throwError stx "invalid pattern, notation is ambiguous" + liftM $ throwError "invalid pattern, notation is ambiguous" else - throwInvalidPattern stx + throwInvalidPattern | stx@(Syntax.ident _ _ _ _) => do processId stx; pure stx | stx => - throwInvalidPattern stx + throwInvalidPattern def main (alt : MatchAltView) : M MatchAltView := do patterns ← alt.patterns.mapM fun p => do { - liftM $ trace `Elab.match p fun _ => "collecting variables at pattern: " ++ p; + liftM $ trace `Elab.match fun _ => "collecting variables at pattern: " ++ p; collect p }; pure { alt with patterns := patterns } @@ -299,42 +335,84 @@ private def collectPatternVars (alt : MatchAltView) : TermElabM (Array PatternVa (alt, s) ← (CollectPatternVars.main alt).run {}; pure (s.vars, alt) -private partial def withPatternVarsAux {α} (ref : Syntax) (pVars : Array PatternVar) (k : TermElabM α) : Nat → TermElabM α -| i => +/- We convert the collected `PatternVar`s intro `PatternVarDecl` -/ +inductive PatternVarDecl +/- For `anonymousVar`, we create both a metavariable and a free variable. The free variable is used as an assignment for the metavariable + when it is not assigned during pattern elaboration. -/ +| anonymousVar (mvarId : MVarId) (fvarId : FVarId) +| localVar (fvarId : FVarId) + +private partial def withPatternVarsAux {α} (pVars : Array PatternVar) (k : Array PatternVarDecl → TermElabM α) + : Nat → Array PatternVarDecl → TermElabM α +| i, decls => if h : i < pVars.size then match pVars.get ⟨i, h⟩ with - | PatternVar.anonymousVar _ => withPatternVarsAux (i+1) - | PatternVar.localVar userName => do - type ← mkFreshTypeMVar ref; - withLocalDecl ref userName BinderInfo.default type fun _ => withPatternVarsAux (i+1) - else - k + | PatternVar.anonymousVar mvarId => do + type ← mkFreshTypeMVar; + withLocalDecl ((`_x).appendIndexAfter i) BinderInfo.default type fun x => + withPatternVarsAux (i+1) (decls.push (PatternVarDecl.anonymousVar mvarId x.fvarId!)) + | PatternVar.localVar userName => do + type ← mkFreshTypeMVar; + withLocalDecl userName BinderInfo.default type fun x => + withPatternVarsAux (i+1) (decls.push (PatternVarDecl.localVar x.fvarId!)) + else do + /- We must create the metavariables for `PatternVar.anonymousVar` AFTER we create the new local decls using `withLocalDecl`. + Reason: their scope must include the new local decls since some of them will be assigned by typing constraints. -/ + decls.forM fun decl => match decl with + | PatternVarDecl.anonymousVar mvarId fvarId => do + type ← inferType (mkFVar fvarId); + _ ← mkFreshExprMVarWithId mvarId type; + pure () + | _ => pure (); + k decls -private def withPatternVars {α} (ref : Syntax) (pVars : Array PatternVar) (k : TermElabM α) : TermElabM α := -withPatternVarsAux ref pVars k 0 +private def withPatternVars {α} (pVars : Array PatternVar) (k : Array PatternVarDecl → TermElabM α) : TermElabM α := +withPatternVarsAux pVars k 0 #[] -private partial def elabPatternsAux (ref : Syntax) (patternStxs : Array Syntax) : Nat → Expr → Array Expr → TermElabM (Array Expr) +private partial def elabPatternsAux (patternStxs : Array Syntax) : Nat → Expr → Array Expr → TermElabM (Array Expr) | i, matchType, patterns => if h : i < patternStxs.size then do - matchType ← whnf ref matchType; + matchType ← whnf matchType; match matchType with | Expr.forallE _ d b _ => do - pattern ← elabTerm (patternStxs.get ⟨i, h⟩) d; + let patternStx := patternStxs.get ⟨i, h⟩; + pattern ← elabTerm patternStx d; + pattern ← withRef patternStx $ ensureHasType d pattern; elabPatternsAux (i+1) (b.instantiate1 pattern) (patterns.push pattern) - | _ => throwError ref "unexpected match type" + | _ => throwError "unexpected match type" else pure patterns -private def elabPatterns (ref : Syntax) (patternStxs : Array Syntax) (matchType : Expr) : TermElabM (Array Expr) := do -patterns ← elabPatternsAux ref patternStxs 0 matchType #[]; -trace `Elab.match ref fun _ => "patterns: " ++ patterns; +def finalizePatternDecls (patternVarDecls : Array PatternVarDecl) : TermElabM (Array LocalDecl) := +patternVarDecls.foldlM + (fun (decls : Array LocalDecl) pdecl => + match pdecl with + | PatternVarDecl.localVar fvarId => do + decl ← getLocalDecl fvarId; + pure $ decls.push decl + | PatternVarDecl.anonymousVar mvarId fvarId => do + condM (isExprMVarAssigned mvarId) + (pure decls) -- skip + (do /- metavariable was not assigned while elaborating the patterns, + so we assign to the auxiliary free variable we created at `withPatternVars` -/ + assignExprMVar mvarId (mkFVar fvarId); + decl ← getLocalDecl fvarId; + pure $ decls.push decl)) + #[] + +private def elabPatterns (patternVarDecls : Array PatternVarDecl) (patternStxs : Array Syntax) (matchType : Expr) : TermElabM (Array Expr) := do +patterns ← withSynthesize $ elabPatternsAux patternStxs 0 matchType #[]; +patterns ← patterns.mapM instantiateMVars; +decls ← finalizePatternDecls patternVarDecls; +trace `Elab.match fun _ => MessageData.ofArray $ decls.map fun (d : LocalDecl) => (d.userName ++ " : " ++ d.type : MessageData); +trace `Elab.match fun _ => "patterns: " ++ patterns; pure patterns def elabMatchAltView (alt : MatchAltView) (matchType : Expr) : TermElabM (Meta.DepElim.AltLHS × Expr) := do (patternVars, alt) ← collectPatternVars alt; -trace `Elab.match alt.ref fun _ => "patternVars: " ++ toString patternVars; -withPatternVars alt.ref patternVars do - ps ← elabPatterns alt.ref alt.patterns matchType; +withRef alt.ref $ trace `Elab.match fun _ => "patternVars: " ++ toString patternVars; +withPatternVars patternVars fun patternVarDecls => do + ps ← withRef alt.ref $ elabPatterns patternVarDecls alt.patterns matchType; -- TODO pure (⟨[], []⟩, arbitrary _) @@ -348,13 +426,13 @@ private def elabMatchCore (stx : Syntax) (expectedType? : Option Expr) : TermEla tryPostponeIfNoneOrMVar expectedType?; expectedType ← match expectedType? with | some expectedType => pure expectedType - | none => mkFreshTypeMVar stx; + | none => mkFreshTypeMVar; let discrStxs := (stx.getArg 1).getArgs.getSepElems.map fun d => d.getArg 1; matchType ← elabMatchOptType stx discrStxs.size; matchAlts ← expandMacrosInPatterns $ getMatchAlts stx; -discrs ← elabDiscrs stx discrStxs matchType expectedType; +discrs ← elabDiscrs discrStxs matchType expectedType; alts ← matchAlts.mapM $ fun alt => elabMatchAltView alt matchType; -throwError stx ("WIP type: " ++ matchType ++ "\n" ++ discrs ++ "\n" ++ toString (matchAlts.map fun alt => toString alt.patterns)) +throwError ("WIP type: " ++ matchType ++ "\n" ++ discrs ++ "\n" ++ toString (matchAlts.map fun alt => toString alt.patterns)) /- Auxiliary method for `expandMatchDiscr?` -/ private partial def mkMatchType (discrs : Array Syntax) : Nat → MacroM Syntax @@ -367,7 +445,7 @@ private partial def mkMatchType (discrs : Array Syntax) : Nat → MacroM Syntax `(_ → $type) else let t := discr.getArg 1; - `((x : _) → x = $t → $type) + `((x : _) → $t = x → $type) else mkMatchType (i+1) else diff --git a/stage0/src/Lean/Elab/Quotation.lean b/stage0/src/Lean/Elab/Quotation.lean index c0657aeb40..a4603431c4 100644 --- a/stage0/src/Lean/Elab/Quotation.lean +++ b/stage0/src/Lean/Elab/Quotation.lean @@ -89,7 +89,7 @@ private partial def quoteSyntax : Syntax → TermElabM Syntax | stx@(Syntax.node k _) => if isAntiquot stx && !isEscapedAntiquot stx then -- splices must occur in a `many` node - if isAntiquotSplice stx then throwError stx "unexpected antiquotation splice" + if isAntiquotSplice stx then throwErrorAt stx "unexpected antiquotation splice" else pure $ getAntiquotTerm stx else do empty ← `(Array.empty); @@ -195,9 +195,9 @@ else if pat.isOfKind `Lean.Parser.Term.stxQuot then let kind := if k == Name.anonymous then none else k; let anti := getAntiquotTerm quoted; -- Splices should only appear inside a nullKind node, see next case - if isAntiquotSplice quoted then unconditional $ fun _ => throwError quoted "unexpected antiquotation splice" + if isAntiquotSplice quoted then unconditional $ fun _ => throwErrorAt quoted "unexpected antiquotation splice" else if anti.isOfKind `Lean.Parser.Term.id then { kind := kind, rhsFn := fun rhs => `(let $anti := discr; $rhs) } - else unconditional $ fun _ => throwError anti ("match_syntax: antiquotation must be variable " ++ toString anti) + else unconditional $ fun _ => throwErrorAt anti ("match_syntax: antiquotation must be variable " ++ toString anti) else if isAntiquotSplicePat quoted && quoted.getArgs.size == 1 then -- quotation is a single antiquotation splice => bind args array let anti := getAntiquotTerm (quoted.getArg 0); @@ -209,7 +209,7 @@ else if pat.isOfKind `Lean.Parser.Term.stxQuot then let argPats := quoted.getArgs.map $ fun arg => Syntax.node `Lean.Parser.Term.stxQuot #[mkAtom "`(", arg, mkAtom ")"]; { kind := quoted.getKind, argPats := argPats } else - unconditional $ fun _ => throwError pat ("match_syntax: unexpected pattern kind " ++ toString pat) + unconditional $ fun _ => throwErrorAt pat ("match_syntax: unexpected pattern kind " ++ toString pat) -- Assuming that the first pattern of the alternative is taken, replace it with patterns (if any) for its -- child nodes. @@ -224,9 +224,9 @@ private def explodeHeadPat (numArgs : Nat) : HeadInfo × Alt → TermElabM Alt pure (newPats ++ pats, rhs) | _ => unreachable! -private partial def compileStxMatch (ref : Syntax) : List Syntax → List Alt → TermElabM Syntax +private partial def compileStxMatch : List Syntax → List Alt → TermElabM Syntax | [], ([], rhs)::_ => pure rhs -- nothing left to match -| _, [] => throwError ref "non-exhaustive 'match_syntax'" +| _, [] => throwError "non-exhaustive 'match_syntax'" | discr::discrs, alts => do let alts := (alts.map getHeadInfo).zip alts; -- Choose a most specific pattern, ie. a minimal element according to `generalizes`. @@ -299,16 +299,16 @@ let alts := stx.getArg 4; alts ← alts.getArgs.getSepElems.mapM $ fun alt => do { let pats := alt.getArg 0; pat ← if pats.getArgs.size == 1 then pure $ pats.getArg 0 - else throwError stx "match_syntax: expected exactly one pattern per alternative"; + else throwError "match_syntax: expected exactly one pattern per alternative"; let pat := if pat.isOfKind `Lean.Parser.Term.stxQuot then pat.setArg 1 $ elimAntiquotChoices $ pat.getArg 1 else pat; match pat.find? $ fun stx => stx.getKind == choiceKind with - | some choiceStx => throwError choiceStx "invalid pattern, nested syntax has multiple interpretations" + | some choiceStx => throwErrorAt choiceStx "invalid pattern, nested syntax has multiple interpretations" | none => let rhs := alt.getArg 2; pure ([pat], rhs) }; -- letBindRhss (compileStxMatch stx [discr]) alts.toList [] -compileStxMatch stx [discr] alts.toList +compileStxMatch [discr] alts.toList @[builtinTermElab «match_syntax»] def elabMatchSyntax : TermElab := adaptExpander match_syntax.expand @@ -317,13 +317,13 @@ adaptExpander match_syntax.expand private def exprPlaceholder := mkMVar Name.anonymous private unsafe partial def toPreterm : Syntax → TermElabM Expr -| stx => +| stx => withRef stx $ let args := stx.getArgs; match stx.getKind with | `Lean.Parser.Term.id => match args.get! 0 with | Syntax.ident _ _ val preresolved => do - resolved ← resolveName stx val preresolved []; + resolved ← resolveName val preresolved []; match resolved with | (pre,projs)::_ => let pre := match pre with @@ -390,7 +390,7 @@ private unsafe partial def toPreterm : Syntax → TermElabM Expr | `Lean.Parser.Term.str => pure $ mkStrLit $ (stx.getArg 0).isStrLit?.getD "" | `Lean.Parser.Term.num => pure $ mkNatLit $ (stx.getArg 0).isNatLit?.getD 0 | `expr => pure $ unsafeCast $ stx.getArg 0 -- HACK: see below - | k => throwError stx $ "stxQuot: unimplemented kind " ++ toString k + | k => throwError $ "stxQuot: unimplemented kind " ++ toString k @[export lean_parse_expr] def oldParseExpr (env : Environment) (input : String) (pos : String.Pos) : Except String (Syntax × String.Pos) := do @@ -437,7 +437,7 @@ let alts := alts.map $ fun alt => let pats := alt.1.map elimAntiquotChoices; (pats, Syntax.node `expr #[alt.2]); -- letBindRhss (compileStxMatch Syntax.missing [discr]) alts [] -stx ← compileStxMatch Syntax.missing [discr] alts; +stx ← compileStxMatch [discr] alts; toPreterm stx end Quotation diff --git a/stage0/src/Lean/Elab/StructInst.lean b/stage0/src/Lean/Elab/StructInst.lean index 4e0c12c056..f88e3d900a 100644 --- a/stage0/src/Lean/Elab/StructInst.lean +++ b/stage0/src/Lean/Elab/StructInst.lean @@ -51,6 +51,7 @@ def setStructSourceSyntax (structStx : Syntax) : Source → Syntax | Source.explicit stx _ => (structStx.setArg 1 stx).setArg 3 mkNullNode private def getStructSource (stx : Syntax) : TermElabM Source := +withRef stx $ let explicitSource := stx.getArg 1; let implicitSource := stx.getArg 3; if explicitSource.isNone && implicitSource.isNone then @@ -63,7 +64,7 @@ else if implicitSource.isNone then do | none => unreachable! -- expandNonAtomicExplicitSource must have been used when we get here | some src => pure $ Source.explicit explicitSource src else - throwError stx "invalid structure instance `with` and `..` cannot be used together" + throwError "invalid structure instance `with` and `..` cannot be used together" /- We say a `{ ... }` notation is a `modifyOp` if it contains only one @@ -86,15 +87,15 @@ s? ← args.foldSepByM | none => pure (some arg) | some s => if s.getKind == `Lean.Parser.Term.structInstArrayRef then - throwError arg "invalid {...} notation, at most one `[..]` at a given level" + throwErrorAt arg "invalid {...} notation, at most one `[..]` at a given level" else - throwError arg "invalid {...} notation, can't mix field and `[..]` at a given level" + throwErrorAt arg "invalid {...} notation, can't mix field and `[..]` at a given level" else match s? with | none => pure (some arg) | some s => if s.getKind == `Lean.Parser.Term.structInstArrayRef then - throwError arg "invalid {...} notation, can't mix field and `[..]` at a given level" + throwErrorAt arg "invalid {...} notation, can't mix field and `[..]` at a given level" else pure s?) none; @@ -108,10 +109,10 @@ let continue (val : Syntax) : TermElabM Expr := do { let idx := lval.getArg 1; let self := source.getArg 0; stxNew ← `($(self).modifyOp (idx := $idx) (fun s => $val)); - trace `Elab.struct.modifyOp stx $ fun _ => stx ++ "\n===>\n" ++ stxNew; + trace `Elab.struct.modifyOp fun _ => stx ++ "\n===>\n" ++ stxNew; withMacroExpansion stx stxNew $ elabTerm stxNew expectedType? }; do -trace `Elab.struct.modifyOp stx $ fun _ => modifyOp ++ "\nSource: " ++ source; +trace `Elab.struct.modifyOp fun _ => modifyOp ++ "\nSource: " ++ source; let rest := modifyOp.getArg 1; if rest.isNone then do continue (modifyOp.getArg 3) @@ -126,27 +127,26 @@ else do let valSource := source.modifyArg 0 $ fun _ => s; let val := stx.setArg 1 valSource; let val := val.setArg 2 $ mkNullNode #[valField]; - trace `Elab.struct.modifyOp stx $ fun _ => stx ++ "\nval: " ++ val; + trace `Elab.struct.modifyOp fun _ => stx ++ "\nval: " ++ val; continue val /- Get structure name and elaborate explicit source (if available) -/ private def getStructName (stx : Syntax) (expectedType? : Option Expr) (sourceView : Source) : TermElabM Name := do -let ref := stx; tryPostponeIfNoneOrMVar expectedType?; let useSource : Unit → TermElabM Name := fun _ => match sourceView with | Source.explicit _ src => do - srcType ← inferType stx src; - srcType ← whnf stx srcType; + srcType ← inferType src; + srcType ← whnf srcType; tryPostponeIfMVar srcType; match srcType.getAppFn with | Expr.const constName _ _ => pure constName - | _ => throwError stx ("invalid {...} notation, source type is not of the form (C ...)" ++ indentExpr srcType) - | _ => throwError ref ("invalid {...} notation, expected type is not of the form (C ...)" ++ indentExpr expectedType?.get!); + | _ => throwError ("invalid {...} notation, source type is not of the form (C ...)" ++ indentExpr srcType) + | _ => throwError ("invalid {...} notation, expected type is not of the form (C ...)" ++ indentExpr expectedType?.get!); match expectedType? with | none => useSource () | some expectedType => do - expectedType ← whnf ref expectedType; + expectedType ← whnf expectedType; match expectedType.getAppFn with | Expr.const constName _ _ => pure constName | _ => useSource () @@ -292,8 +292,8 @@ s.modifyFieldsM $ fun fields => do let fieldNames := getStructureFields env s.structName; fields.mapM $ fun field => match field with | { lhs := FieldLHS.fieldIndex ref idx :: rest, .. } => - if idx == 0 then throwError ref "invalid field index, index must be greater than 0" - else if idx > fieldNames.size then throwError ref ("invalid field index, structure has only #" ++ toString fieldNames.size ++ " fields") + if idx == 0 then throwErrorAt ref "invalid field index, index must be greater than 0" + else if idx > fieldNames.size then throwErrorAt ref ("invalid field index, structure has only #" ++ toString fieldNames.size ++ " fields") else pure { field with lhs := FieldLHS.fieldName ref (fieldNames.get! $ idx - 1) :: rest } | _ => pure field @@ -317,7 +317,7 @@ env ← getEnv; s.modifyFieldsM $ fun fields => fields.mapM $ fun field => match field with | { lhs := FieldLHS.fieldName ref fieldName :: rest, .. } => match findField? env s.structName fieldName with - | none => throwError ref ("'" ++ fieldName ++ "' is not a field of structure '" ++ s.structName ++ "'") + | none => throwErrorAt ref ("'" ++ fieldName ++ "' is not a field of structure '" ++ s.structName ++ "'") | some baseStructName => if baseStructName == s.structName then pure field else match getPathToBaseStructure? env baseStructName s.structName with @@ -326,7 +326,7 @@ s.modifyFieldsM $ fun fields => fields.mapM $ fun field => match field with | Name.str _ s _ => FieldLHS.fieldName ref (mkNameSimple s) | _ => unreachable!; pure { field with lhs := path ++ field.lhs } - | _ => throwError ref ("failed to access field '" ++ fieldName ++ "' in parent structure") + | _ => throwErrorAt ref ("failed to access field '" ++ fieldName ++ "' in parent structure") | _ => pure field private abbrev FieldMap := HashMap Name Fields @@ -339,7 +339,7 @@ fields.foldlM match fieldMap.find? fieldName with | some (prevField::restFields) => if field.isSimple || prevField.isSimple then - throwError field.ref ("field '" ++ fieldName ++ "' has already beed specified") + throwErrorAt field.ref ("field '" ++ fieldName ++ "' has already beed specified") else pure $ fieldMap.insert fieldName (field::prevField::restFields) | _ => pure $ fieldMap.insert fieldName [field] @@ -350,18 +350,18 @@ private def isSimpleField? : Fields → Option (Field Struct) | [field] => if field.isSimple then some field else none | _ => none -private def getFieldIdx (ref : Syntax) (structName : Name) (fieldNames : Array Name) (fieldName : Name) : TermElabM Nat := do +private def getFieldIdx (structName : Name) (fieldNames : Array Name) (fieldName : Name) : TermElabM Nat := do match fieldNames.findIdx? $ fun n => n == fieldName with | some idx => pure idx -| none => throwError ref ("field '" ++ fieldName ++ "' is not a valid field of '" ++ structName ++ "'") +| none => throwError ("field '" ++ fieldName ++ "' is not a valid field of '" ++ structName ++ "'") private def mkProjStx (s : Syntax) (fieldName : Name) : Syntax := Syntax.node `Lean.Parser.Term.proj #[s, mkAtomFrom s ".", mkIdentFrom s fieldName] -private def mkSubstructSource (ref : Syntax) (structName : Name) (fieldNames : Array Name) (fieldName : Name) (src : Source) : TermElabM Source := +private def mkSubstructSource (structName : Name) (fieldNames : Array Name) (fieldName : Name) (src : Source) : TermElabM Source := match src with | Source.explicit stx src => do - idx ← getFieldIdx ref structName fieldNames fieldName; + idx ← getFieldIdx structName fieldNames fieldName; let stx := stx.modifyArg 0 $ fun stx => mkProjStx stx fieldName; pure $ Source.explicit stx (mkProj structName idx src) | s => pure s @@ -369,6 +369,7 @@ match src with @[specialize] private def groupFields (expandStruct : Struct → TermElabM Struct) (s : Struct) : TermElabM Struct := do env ← getEnv; let fieldNames := getStructureFields env s.structName; +withRef s.ref $ s.modifyFieldsM $ fun fields => do fieldMap ← mkFieldMap fields; fieldMap.toList.mapM $ fun ⟨fieldName, fields⟩ => @@ -376,7 +377,7 @@ s.modifyFieldsM $ fun fields => do | some field => pure field | none => do let substructFields := fields.map $ fun field => { field with lhs := field.lhs.tail! }; - substructSource ← mkSubstructSource s.ref s.structName fieldNames fieldName s.source; + substructSource ← mkSubstructSource s.structName fieldNames fieldName s.source; let field := fields.head!; match Lean.isSubobjectField? env s.structName fieldName with | some substructName => do @@ -402,6 +403,7 @@ fields.find? $ fun field => env ← getEnv; let fieldNames := getStructureFields env s.structName; let ref := s.ref; +withRef ref do fields ← fieldNames.foldlM (fun fields fieldName => do match findField? s.fields fieldName with @@ -412,7 +414,7 @@ fields ← fieldNames.foldlM }; match Lean.isSubobjectField? env s.structName fieldName with | some substructName => do - substructSource ← mkSubstructSource s.ref s.structName fieldNames fieldName s.source; + substructSource ← mkSubstructSource s.structName fieldNames fieldName s.source; let substruct := Struct.mk s.ref substructName [] substructSource; substruct ← expandStruct substruct; addField (FieldVal.nested substruct) @@ -441,27 +443,27 @@ structure CtorHeaderResult := (ctorFnType : Expr) (instMVars : Array MVarId := #[]) -private def mkCtorHeaderAux (ref : Syntax) : Nat → Expr → Expr → Array MVarId → TermElabM CtorHeaderResult +private def mkCtorHeaderAux : Nat → Expr → Expr → Array MVarId → TermElabM CtorHeaderResult | 0, type, ctorFn, instMVars => pure { ctorFn := ctorFn, ctorFnType := type, instMVars := instMVars } | n+1, type, ctorFn, instMVars => do - type ← whnfForall ref type; + type ← whnfForall type; match type with | Expr.forallE _ d b c => match c.binderInfo with | BinderInfo.instImplicit => do - a ← mkFreshExprMVar ref d MetavarKind.synthetic; + a ← mkFreshExprMVar d MetavarKind.synthetic; mkCtorHeaderAux n (b.instantiate1 a) (mkApp ctorFn a) (instMVars.push a.mvarId!) | _ => do - a ← mkFreshExprMVar ref d; + a ← mkFreshExprMVar d; mkCtorHeaderAux n (b.instantiate1 a) (mkApp ctorFn a) instMVars - | _ => throwError ref "unexpected constructor type" + | _ => throwError "unexpected constructor type" private partial def getForallBody : Nat → Expr → Option Expr | i+1, Expr.forallE _ _ b _ => getForallBody i b | i+1, _ => none | 0, type => type -private def propagateExpectedType (ref : Syntax) (type : Expr) (numFields : Nat) (expectedType? : Option Expr) : TermElabM Unit := +private def propagateExpectedType (type : Expr) (numFields : Nat) (expectedType? : Option Expr) : TermElabM Unit := match expectedType? with | none => pure () | some expectedType => @@ -469,16 +471,16 @@ match expectedType? with | none => pure () | some typeBody => unless typeBody.hasLooseBVars $ do - _ ← isDefEq ref expectedType typeBody; + _ ← isDefEq expectedType typeBody; pure () -private def mkCtorHeader (ref : Syntax) (ctorVal : ConstructorVal) (expectedType? : Option Expr) : TermElabM CtorHeaderResult := do -lvls ← ctorVal.lparams.mapM $ fun _ => mkFreshLevelMVar ref; +private def mkCtorHeader (ctorVal : ConstructorVal) (expectedType? : Option Expr) : TermElabM CtorHeaderResult := do +lvls ← ctorVal.lparams.mapM $ fun _ => mkFreshLevelMVar; let val := Lean.mkConst ctorVal.name lvls; let type := (ConstantInfo.ctorInfo ctorVal).instantiateTypeLevelParams lvls; -r ← mkCtorHeaderAux ref ctorVal.nparams type val #[]; -propagateExpectedType ref r.ctorFnType ctorVal.nfields expectedType?; -synthesizeAppInstMVars ref r.instMVars; +r ← mkCtorHeaderAux ctorVal.nparams type val #[]; +propagateExpectedType r.ctorFnType ctorVal.nfields expectedType?; +synthesizeAppInstMVars r.instMVars; pure r def markDefaultMissing (e : Expr) : Expr := @@ -487,20 +489,20 @@ mkAnnotation `structInstDefault e def isDefaultMissing? (e : Expr) : Option Expr := isAnnotation? `structInstDefault e -def throwFailedToElabField {α} (ref : Syntax) (fieldName : Name) (structName : Name) (msgData : MessageData) : TermElabM α := -throwError ref ("failed to elaborate field '" ++ fieldName ++ "' of '" ++ structName ++ ", " ++ msgData) +def throwFailedToElabField {α} (fieldName : Name) (structName : Name) (msgData : MessageData) : TermElabM α := +throwError ("failed to elaborate field '" ++ fieldName ++ "' of '" ++ structName ++ ", " ++ msgData) private partial def elabStruct : Struct → Option Expr → TermElabM (Expr × Struct) -| s, expectedType? => do +| s, expectedType? => withRef s.ref do env ← getEnv; let ctorVal := getStructureCtor env s.structName; - { ctorFn := ctorFn, ctorFnType := ctorFnType, .. } ← mkCtorHeader s.ref ctorVal expectedType?; + { ctorFn := ctorFn, ctorFnType := ctorFnType, .. } ← mkCtorHeader ctorVal expectedType?; (e, _, fields) ← s.fields.foldlM (fun (acc : Expr × Expr × Fields) field => let (e, type, fields) := acc; match field.lhs with | [FieldLHS.fieldName ref fieldName] => do - type ← whnfForall field.ref type; + type ← whnfForall type; match type with | Expr.forallE _ d b c => let continue (val : Expr) (field : Field Struct) : TermElabM (Expr × Expr × Fields) := do { @@ -510,11 +512,11 @@ private partial def elabStruct : Struct → Option Expr → TermElabM (Expr × S pure (e, type, field::fields) }; match field.val with - | FieldVal.term stx => do val ← elabTerm stx (some d); val ← ensureHasType stx d val; continue val field - | FieldVal.nested s => do (val, sNew) ← elabStruct s (some d); val ← ensureHasType s.ref d val; continue val { field with val := FieldVal.nested sNew } - | FieldVal.default => do val ← mkFreshExprMVar field.ref (some d); continue (markDefaultMissing val) field - | _ => throwFailedToElabField field.ref fieldName s.structName ("unexpected constructor type" ++ indentExpr type) - | _ => throwError field.ref "unexpected unexpanded structure field") + | FieldVal.term stx => do val ← elabTerm stx (some d); val ← withRef stx $ ensureHasType d val; continue val field + | FieldVal.nested s => do (val, sNew) ← elabStruct s (some d); val ← ensureHasType d val; continue val { field with val := FieldVal.nested sNew } + | FieldVal.default => do val ← withRef field.ref $ mkFreshExprMVar (some d); continue (markDefaultMissing val) field + | _ => withRef field.ref $ throwFailedToElabField fieldName s.structName ("unexpected constructor type" ++ indentExpr type) + | _ => throwErrorAt field.ref "unexpected unexpanded structure field") (ctorFn, ctorFnType, []); pure (e, s.setFields fields.reverse) @@ -603,19 +605,18 @@ struct.fields.findSome? $ fun field => none partial def mkDefaultValueAux? (struct : Struct) : Expr → TermElabM (Option Expr) -| Expr.lam n d b c => - let ref := struct.ref; +| Expr.lam n d b c => withRef struct.ref $ if c.binderInfo.isExplicit then let fieldName := n; match getFieldValue? struct fieldName with | none => pure none | some val => do - valType ← inferType ref val; - condM (isDefEq ref valType d) + valType ← inferType val; + condM (isDefEq valType d) (mkDefaultValueAux? (b.instantiate1 val)) (pure none) else do - arg ← mkFreshExprMVar ref d; + arg ← mkFreshExprMVar d; mkDefaultValueAux? (b.instantiate1 arg) | e => if e.isAppOfArity `id 2 then @@ -623,9 +624,9 @@ partial def mkDefaultValueAux? (struct : Struct) : Expr → TermElabM (Option Ex else pure (some e) -def mkDefaultValue? (struct : Struct) (cinfo : ConstantInfo) : TermElabM (Option Expr) := do -let ref := struct.ref; -us ← cinfo.lparams.mapM $ fun _ => mkFreshLevelMVar ref; +def mkDefaultValue? (struct : Struct) (cinfo : ConstantInfo) : TermElabM (Option Expr) := +withRef struct.ref do +us ← cinfo.lparams.mapM $ fun _ => mkFreshLevelMVar; mkDefaultValueAux? struct (cinfo.instantiateValueLevelParams us) /-- If `e` is a projection function of one of the given structures, then reduce it -/ @@ -679,7 +680,7 @@ partial def reduce (structNames : Array Name) : Expr → MetaM Expr | none => pure e | e => pure e -partial def tryToSynthesizeDefaultAux (ref : Syntax) (structs : Array Struct) (allStructNames : Array Name) (maxDistance : Nat) +partial def tryToSynthesizeDefaultAux (structs : Array Struct) (allStructNames : Array Name) (maxDistance : Nat) (fieldName : Name) (mvarId : MVarId) : Nat → Nat → TermElabM Bool | i, dist => if dist > maxDistance then pure false @@ -694,21 +695,21 @@ partial def tryToSynthesizeDefaultAux (ref : Syntax) (structs : Array Struct) (a match val? with | none => do setMCtx mctx; tryToSynthesizeDefaultAux (i+1) (dist+1) | some val => do - val ← liftMetaM struct.ref $ reduce allStructNames val; + val ← liftMetaM $ reduce allStructNames val; match val.find? $ fun e => (isDefaultMissing? e).isSome with | some _ => do setMCtx mctx; tryToSynthesizeDefaultAux (i+1) (dist+1) | none => do mvarDecl ← getMVarDecl mvarId; - val ← ensureHasType ref mvarDecl.type val; + val ← ensureHasType mvarDecl.type val; assignExprMVar mvarId val; pure true | _ => tryToSynthesizeDefaultAux (i+1) dist else pure false -def tryToSynthesizeDefault (ref : Syntax) (structs : Array Struct) (allStructNames : Array Name) +def tryToSynthesizeDefault (structs : Array Struct) (allStructNames : Array Name) (maxDistance : Nat) (fieldName : Name) (mvarId : MVarId) : TermElabM Bool := -tryToSynthesizeDefaultAux ref structs allStructNames maxDistance fieldName mvarId 0 0 +tryToSynthesizeDefaultAux structs allStructNames maxDistance fieldName mvarId 0 0 partial def step : Struct → M Unit | struct => unlessM isRoundDone $ adaptReader (fun (ctx : Context) => { ctx with structs := ctx.structs.push struct }) $ do @@ -721,7 +722,7 @@ partial def step : Struct → M Unit | some (Expr.mvar mvarId _) => unlessM (liftM $ isExprMVarAssigned mvarId) $ do ctx ← read; - whenM (liftM $ tryToSynthesizeDefault field.ref ctx.structs ctx.allStructNames ctx.maxDistance (getFieldName field) mvarId) $ do + whenM (liftM $ withRef field.ref $ tryToSynthesizeDefault ctx.structs ctx.allStructNames ctx.maxDistance (getFieldName field) mvarId) $ do modify $ fun s => { s with progress := true } | _ => pure () @@ -732,7 +733,7 @@ partial def propagateLoop (hierarchyDepth : Nat) : Nat → Struct → M Unit | none => pure () -- Done | some field => if d > hierarchyDepth then - liftM $ throwError field.ref ("field '" ++ getFieldName field ++ "' is missing") + liftM $ throwErrorAt field.ref ("field '" ++ getFieldName field ++ "' is missing") else adaptReader (fun (ctx : Context) => { ctx with maxDistance := d }) $ do modify $ fun (s : State) => { s with progress := false }; step struct; @@ -753,12 +754,12 @@ private def elabStructInstAux (stx : Syntax) (expectedType? : Option Expr) (sour structName ← getStructName stx expectedType? source; env ← getEnv; unless (isStructureLike env structName) $ - throwError stx ("invalid {...} notation, '" ++ structName ++ "' is not a structure"); + throwError ("invalid {...} notation, '" ++ structName ++ "' is not a structure"); match mkStructView stx structName source with -| Except.error ex => throwError stx ex +| Except.error ex => throwError ex | Except.ok struct => do struct ← expandStruct struct; - trace `Elab.struct stx $ fun _ => toString struct; + trace `Elab.struct fun _ => toString struct; (r, struct) ← elabStruct struct expectedType?; DefaultFields.propagate struct; pure r @@ -785,7 +786,7 @@ fun stx expectedType? => do modifyOp? ← isModifyOp? stx; match modifyOp?, sourceView with | some modifyOp, Source.explicit source _ => elabModifyOp stx modifyOp source expectedType? - | some _, _ => throwError stx ("invalid {...} notation, explicit source is required when using '[] := '") + | some _, _ => throwError ("invalid {...} notation, explicit source is required when using '[] := '") | _, _ => elabStructInstAux stx expectedType? sourceView @[init] private def regTraceClasses : IO Unit := do diff --git a/stage0/src/Lean/Elab/Structure.lean b/stage0/src/Lean/Elab/Structure.lean index d81c28c2e4..e2dd93d811 100644 --- a/stage0/src/Lean/Elab/Structure.lean +++ b/stage0/src/Lean/Elab/Structure.lean @@ -192,14 +192,14 @@ match type with | Expr.sort (Level.succ _ _) _ => true | _ => false -private def checkParentIsStructure (ref : Syntax) (parent : Expr) : TermElabM Name := +private def checkParentIsStructure (parent : Expr) : TermElabM Name := match parent.getAppFn with | Expr.const c _ _ => do env ← Term.getEnv; unless (isStructure env c) $ - Term.throwError ref $ "'" ++ toString c ++ "' is not a structure"; + Term.throwError $ "'" ++ toString c ++ "' is not a structure"; pure c -| _ => Term.throwError ref $ "expected structure" +| _ => Term.throwError $ "expected structure" private def findFieldInfo? (infos : Array StructFieldInfo) (fieldName : Name) : Option StructFieldInfo := infos.find? fun info => info.name == fieldName @@ -207,17 +207,17 @@ infos.find? fun info => info.name == fieldName private def containsFieldName (infos : Array StructFieldInfo) (fieldName : Name) : Bool := (findFieldInfo? infos fieldName).isSome -private partial def processSubfields {α} (ref : Syntax) (structDeclName : Name) (parentFVar : Expr) (parentStructName : Name) (subfieldNames : Array Name) +private partial def processSubfields {α} (structDeclName : Name) (parentFVar : Expr) (parentStructName : Name) (subfieldNames : Array Name) : Nat → Array StructFieldInfo → (Array StructFieldInfo → TermElabM α) → TermElabM α | i, infos, k => if h : i < subfieldNames.size then do let subfieldName := subfieldNames.get ⟨i, h⟩; env ← Term.getEnv; when (containsFieldName infos subfieldName) $ - Term.throwError ref ("field '" ++ subfieldName ++ "' from '" ++ parentStructName ++ "' has already been declared"); - val ← Term.liftMetaM ref $ Meta.mkProjection parentFVar subfieldName; - type ← Term.inferType ref val; - Term.withLetDecl ref subfieldName type val fun subfieldFVar => + Term.throwError ("field '" ++ subfieldName ++ "' from '" ++ parentStructName ++ "' has already been declared"); + val ← Term.liftMetaM $ Meta.mkProjection parentFVar subfieldName; + type ← Term.inferType val; + Term.withLetDecl subfieldName type val fun subfieldFVar => /- The following `declName` is only used for creating the `_default` auxiliary declaration name when its default value is overwritten in the structure. -/ let declName := structDeclName ++ subfieldName; @@ -228,19 +228,20 @@ private partial def processSubfields {α} (ref : Syntax) (structDeclName : Name) private partial def withParents {α} (view : StructView) : Nat → Array StructFieldInfo → (Array StructFieldInfo → TermElabM α) → TermElabM α | i, infos, k => - if h : i < view.parents.size then do + if h : i < view.parents.size then let parentStx := view.parents.get ⟨i, h⟩; + Term.withRef parentStx do parent ← Term.elabType parentStx; - parentName ← checkParentIsStructure parentStx parent; + parentName ← checkParentIsStructure parent; let toParentName := mkNameSimple $ "to" ++ parentName.eraseMacroScopes.getString!; -- erase macro scopes? when (containsFieldName infos toParentName) $ - Term.throwError parentStx ("field '" ++ toParentName ++ "' has already been declared"); + Term.throwErrorAt parentStx ("field '" ++ toParentName ++ "' has already been declared"); env ← Term.getEnv; let binfo := if view.isClass && isClass env parentName then BinderInfo.instImplicit else BinderInfo.default; - Term.withLocalDecl parentStx toParentName binfo parent $ fun parentFVar => + Term.withLocalDecl toParentName binfo parent $ fun parentFVar => let infos := infos.push { name := toParentName, declName := view.declName ++ toParentName, fvar := parentFVar, kind := StructFieldKind.subobject }; let subfieldNames := getStructureFieldsFlattened env parentName; - processSubfields parentStx view.declName parentFVar parentName subfieldNames 0 infos fun infos => withParents (i+1) infos k + processSubfields view.declName parentFVar parentName subfieldNames 0 infos fun infos => withParents (i+1) infos k else k infos @@ -248,141 +249,142 @@ private partial def withFields {α} (views : Array StructFieldView) : Nat → Ar | i, infos, k => if h : i < views.size then do let view := views.get ⟨i, h⟩; + Term.withRef view.ref $ match findFieldInfo? infos view.name with | none => do (type?, value?) ← Term.elabBinders view.binders.getArgs $ fun params => do { type? ← match view.type? with | none => pure none - | some typeStx => do { type ← Term.elabType typeStx; type ← Term.mkForall typeStx params type; pure $ some type }; + | some typeStx => do { type ← Term.elabType typeStx; type ← Term.mkForall params type; pure $ some type }; value? ← match view.value? with | none => pure none | some valStx => do { value ← Term.elabTerm valStx type?; - value ← Term.mkLambda valStx params value; - value ← Term.ensureHasType valStx type? value; + value ← Term.mkLambda params value; + value ← Term.withRef valStx $ Term.ensureHasType type? value; pure $ some value }; pure (type?, value?) }; match type?, value? with - | none, none => Term.throwError view.ref "invalid field, type expected" + | none, none => Term.throwError "invalid field, type expected" | some type, _ => - Term.withLocalDecl view.ref view.name view.binderInfo type $ fun fieldFVar => + Term.withLocalDecl view.name view.binderInfo type $ fun fieldFVar => let infos := infos.push { name := view.name, declName := view.declName, fvar := fieldFVar, value? := value?, kind := StructFieldKind.newField, inferMod := view.inferMod }; withFields (i+1) infos k | none, some value => do - type ← Term.inferType view.ref value; - Term.withLocalDecl view.ref view.name view.binderInfo type $ fun fieldFVar => + type ← Term.inferType value; + Term.withLocalDecl view.name view.binderInfo type $ fun fieldFVar => let infos := infos.push { name := view.name, declName := view.declName, fvar := fieldFVar, kind := StructFieldKind.newField, inferMod := view.inferMod }; withFields (i+1) infos k | some info => match info.kind with - | StructFieldKind.newField => Term.throwError view.ref ("field '" ++ view.name ++ "' has already been declared") + | StructFieldKind.newField => Term.throwError ("field '" ++ view.name ++ "' has already been declared") | StructFieldKind.fromParent => match view.value? with - | none => Term.throwError view.ref ("field '" ++ view.name ++ "' has been declared in parent structure") + | none => Term.throwError ("field '" ++ view.name ++ "' has been declared in parent structure") | some valStx => do when (!view.binders.getArgs.isEmpty || view.type?.isSome) $ - Term.throwError view.type?.get! ("omit field '" ++ view.name ++ "' type to set default value"); - fvarType ← Term.inferType view.ref info.fvar; + Term.throwErrorAt view.type?.get! ("omit field '" ++ view.name ++ "' type to set default value"); + fvarType ← Term.inferType info.fvar; value ← Term.elabTerm valStx fvarType; - value ← Term.ensureHasType valStx fvarType value; + value ← Term.withRef valStx $ Term.ensureHasType fvarType value; let infos := infos.push { info with value? := value }; withFields (i+1) infos k | StructFieldKind.subobject => unreachable! else k infos -private def getResultUniverse (ref : Syntax) (type : Expr) : TermElabM Level := do -type ← Term.whnf ref type; +private def getResultUniverse (type : Expr) : TermElabM Level := do +type ← Term.whnf type; match type with | Expr.sort u _ => pure u -| _ => Term.throwError ref "unexpected structure resulting type" +| _ => Term.throwError "unexpected structure resulting type" -private def removeUnused (ref : Syntax) (scopeVars : Array Expr) (params : Array Expr) (fieldInfos : Array StructFieldInfo) +private def removeUnused (scopeVars : Array Expr) (params : Array Expr) (fieldInfos : Array StructFieldInfo) : TermElabM (LocalContext × LocalInstances × Array Expr) := do used ← params.foldlM (fun (used : CollectFVars.State) p => do - type ← Term.inferType ref p; - Term.collectUsedFVars ref used type) + type ← Term.inferType p; + Term.collectUsedFVars used type) {}; used ← fieldInfos.foldlM (fun (used : CollectFVars.State) info => do - fvarType ← Term.inferType ref info.fvar; - used ← Term.collectUsedFVars ref used fvarType; + fvarType ← Term.inferType info.fvar; + used ← Term.collectUsedFVars used fvarType; match info.value? with | none => pure used - | some value => Term.collectUsedFVars ref used value) + | some value => Term.collectUsedFVars used value) used; -Term.removeUnused ref scopeVars used +Term.removeUnused scopeVars used -private def withUsed {α} (ref : Syntax) (scopeVars : Array Expr) (params : Array Expr) (fieldInfos : Array StructFieldInfo) (k : Array Expr → TermElabM α) +private def withUsed {α} (scopeVars : Array Expr) (params : Array Expr) (fieldInfos : Array StructFieldInfo) (k : Array Expr → TermElabM α) : TermElabM α := do -(lctx, localInsts, vars) ← removeUnused ref scopeVars params fieldInfos; +(lctx, localInsts, vars) ← removeUnused scopeVars params fieldInfos; Term.withLCtx lctx localInsts $ k vars -private def levelMVarToParamFVar (ref : Syntax) (fvar : Expr) : StateT Nat TermElabM Unit := do -type ← liftM $ Term.inferType ref fvar; +private def levelMVarToParamFVar (fvar : Expr) : StateT Nat TermElabM Unit := do +type ← liftM $ Term.inferType fvar; _ ← Term.levelMVarToParam' type; pure () -private def levelMVarToParamFVars (ref : Syntax) (fvars : Array Expr) : StateT Nat TermElabM Unit := -fvars.forM (levelMVarToParamFVar ref) +private def levelMVarToParamFVars (fvars : Array Expr) : StateT Nat TermElabM Unit := +fvars.forM levelMVarToParamFVar -private def levelMVarToParamAux (ref : Syntax) (scopeVars : Array Expr) (params : Array Expr) (fieldInfos : Array StructFieldInfo) +private def levelMVarToParamAux (scopeVars : Array Expr) (params : Array Expr) (fieldInfos : Array StructFieldInfo) : StateT Nat TermElabM (Array StructFieldInfo) := do -levelMVarToParamFVars ref scopeVars; -levelMVarToParamFVars ref params; +levelMVarToParamFVars scopeVars; +levelMVarToParamFVars params; fieldInfos.mapM fun info => do - levelMVarToParamFVar ref info.fvar; + levelMVarToParamFVar info.fvar; match info.value? with | none => pure info | some value => do value ← Term.levelMVarToParam' value; pure { info with value? := value } -private def levelMVarToParam (ref : Syntax) (scopeVars : Array Expr) (params : Array Expr) (fieldInfos : Array StructFieldInfo) : TermElabM (Array StructFieldInfo) := -(levelMVarToParamAux ref scopeVars params fieldInfos).run' 1 +private def levelMVarToParam (scopeVars : Array Expr) (params : Array Expr) (fieldInfos : Array StructFieldInfo) : TermElabM (Array StructFieldInfo) := +(levelMVarToParamAux scopeVars params fieldInfos).run' 1 -private partial def collectUniversesFromFields (ref : Syntax) (r : Level) (rOffset : Nat) (fieldInfos : Array StructFieldInfo) : TermElabM (Array Level) := do +private partial def collectUniversesFromFields (r : Level) (rOffset : Nat) (fieldInfos : Array StructFieldInfo) : TermElabM (Array Level) := do fieldInfos.foldlM (fun (us : Array Level) (info : StructFieldInfo) => do - type ← Term.inferType ref info.fvar; - u ← Term.getLevel ref type; - u ← Term.instantiateLevelMVars ref u; + type ← Term.inferType info.fvar; + u ← Term.getLevel type; + u ← Term.instantiateLevelMVars u; match accLevelAtCtor u r rOffset us with - | Except.error msg => Term.throwError ref msg + | Except.error msg => Term.throwError msg | Except.ok us => pure us) #[] -private def updateResultingUniverse (ref : Syntax) (fieldInfos : Array StructFieldInfo) (type : Expr) : TermElabM Expr := do -r ← getResultUniverse ref type; +private def updateResultingUniverse (fieldInfos : Array StructFieldInfo) (type : Expr) : TermElabM Expr := do +r ← getResultUniverse type; let rOffset : Nat := r.getOffset; let r : Level := r.getLevelOffset; match r with | Level.mvar mvarId _ => do - us ← collectUniversesFromFields ref r rOffset fieldInfos; + us ← collectUniversesFromFields r rOffset fieldInfos; let rNew := Level.mkNaryMax us.toList; Term.assignLevelMVar mvarId rNew; - Term.instantiateMVars ref type -| _ => Term.throwError ref "failed to compute resulting universe level of structure, provide universe explicitly" + Term.instantiateMVars type +| _ => Term.throwError "failed to compute resulting universe level of structure, provide universe explicitly" -private def collectLevelParamsInFVar (ref : Syntax) (s : CollectLevelParams.State) (fvar : Expr) : TermElabM CollectLevelParams.State := do -type ← Term.inferType ref fvar; -type ← Term.instantiateMVars ref type; +private def collectLevelParamsInFVar (s : CollectLevelParams.State) (fvar : Expr) : TermElabM CollectLevelParams.State := do +type ← Term.inferType fvar; +type ← Term.instantiateMVars type; pure $ collectLevelParams s type -private def collectLevelParamsInFVars (ref : Syntax) (fvars : Array Expr) (s : CollectLevelParams.State) : TermElabM CollectLevelParams.State := -fvars.foldlM (collectLevelParamsInFVar ref) s +private def collectLevelParamsInFVars (fvars : Array Expr) (s : CollectLevelParams.State) : TermElabM CollectLevelParams.State := +fvars.foldlM collectLevelParamsInFVar s -private def collectLevelParamsInStructure (ref : Syntax) (scopeVars : Array Expr) (params : Array Expr) (fieldInfos : Array StructFieldInfo) : TermElabM (Array Name) := do -s ← collectLevelParamsInFVars ref scopeVars {}; -s ← collectLevelParamsInFVars ref params s; -s ← fieldInfos.foldlM (fun (s : CollectLevelParams.State) info => collectLevelParamsInFVar ref s info.fvar) s; +private def collectLevelParamsInStructure (scopeVars : Array Expr) (params : Array Expr) (fieldInfos : Array StructFieldInfo) : TermElabM (Array Name) := do +s ← collectLevelParamsInFVars scopeVars {}; +s ← collectLevelParamsInFVars params s; +s ← fieldInfos.foldlM (fun (s : CollectLevelParams.State) info => collectLevelParamsInFVar s info.fvar) s; pure s.params -private def addCtorFields (ref : Syntax) (fieldInfos : Array StructFieldInfo) : Nat → Expr → TermElabM Expr +private def addCtorFields (fieldInfos : Array StructFieldInfo) : Nat → Expr → TermElabM Expr | 0, type => pure type | i+1, type => do let info := fieldInfos.get! i; @@ -398,36 +400,37 @@ private def addCtorFields (ref : Syntax) (fieldInfos : Array StructFieldInfo) : | StructFieldKind.newField => addCtorFields i (mkForall decl.userName decl.binderInfo decl.type type) -private def mkCtor (view : StructView) (levelParams : List Name) (params : Array Expr) (fieldInfos : Array StructFieldInfo) : TermElabM Constructor := do +private def mkCtor (view : StructView) (levelParams : List Name) (params : Array Expr) (fieldInfos : Array StructFieldInfo) : TermElabM Constructor := +Term.withRef view.ref do let type := mkAppN (mkConst view.declName (levelParams.map mkLevelParam)) params; -type ← addCtorFields view.ref fieldInfos fieldInfos.size type; -type ← Term.mkForall view.ref params type; -type ← Term.instantiateMVars view.ref type; +type ← addCtorFields fieldInfos fieldInfos.size type; +type ← Term.mkForall params type; +type ← Term.instantiateMVars type; let type := type.inferImplicit params.size !view.ctor.inferMod; pure { name := view.ctor.declName, type := type } private def elabStructureView (view : StructView) : TermElabM ElabStructResult := do let numExplicitParams := view.params.size; type ← Term.elabType view.type; -unless (validStructType type) $ Term.throwError view.type "expected Type"; -let ref := view.ref; +unless (validStructType type) $ Term.throwErrorAt view.type "expected Type"; +Term.withRef view.ref do withParents view 0 #[] fun fieldInfos => withFields view.fields 0 fieldInfos fun fieldInfos => do Term.synthesizeSyntheticMVars false; -- resolve pending - u ← getResultUniverse ref type; - inferLevel ← shouldInferResultUniverse ref u; - withUsed ref view.scopeVars view.params fieldInfos $ fun scopeVars => do + u ← getResultUniverse type; + inferLevel ← shouldInferResultUniverse u; + withUsed view.scopeVars view.params fieldInfos $ fun scopeVars => do let numParams := scopeVars.size + numExplicitParams; - fieldInfos ← levelMVarToParam ref scopeVars view.params fieldInfos; - type ← if inferLevel then updateResultingUniverse ref fieldInfos type else pure type; - usedLevelNames ← collectLevelParamsInStructure ref scopeVars view.params fieldInfos; + fieldInfos ← levelMVarToParam scopeVars view.params fieldInfos; + type ← if inferLevel then updateResultingUniverse fieldInfos type else pure type; + usedLevelNames ← collectLevelParamsInStructure scopeVars view.params fieldInfos; match sortDeclLevelParams view.scopeLevelNames view.allUserLevelNames usedLevelNames with - | Except.error msg => Term.throwError ref msg + | Except.error msg => Term.throwError msg | Except.ok levelParams => do let params := scopeVars ++ view.params; ctor ← mkCtor view levelParams params fieldInfos; - type ← Term.mkForall ref params type; - type ← Term.instantiateMVars ref type; + type ← Term.mkForall params type; + type ← Term.instantiateMVars type; let indType := { name := view.declName, type := type, ctors := [ctor] : InductiveType }; let decl := Declaration.inductDecl levelParams params.size [indType] view.modifiers.isUnsafe; let projInfos := (fieldInfos.filter fun (info : StructFieldInfo) => !info.isFromParent).toList.map fun (info : StructFieldInfo) => @@ -442,7 +445,7 @@ withFields view.fields 0 fieldInfos fun fieldInfos => do localInsts ← Term.getLocalInsts; let fieldsWithDefault := fieldInfos.filter fun info => info.value?.isSome; defaultAuxDecls ← fieldsWithDefault.mapM fun info => do { - type ← Term.inferType ref info.fvar; + type ← Term.inferType info.fvar; pure (info.declName ++ `_default, type, info.value?.get!) }; /- The `mctx`, `lctx`, `localInsts` and `defaultAuxDecls` are used to create the auxiliary `_default` declarations *after* the structure has been declarated. @@ -483,9 +486,9 @@ liftTermElabM none $ Term.withLocalContext lctx localInsts do Term.setMCtx mctx; defaultAuxDecls.forM fun ⟨declName, type, value⟩ => do /- The identity function is used as "marker". -/ - value ← Term.liftMetaM ref $ Meta.mkId value; + value ← Term.liftMetaM $ Meta.mkId value; let zeta := true; -- expand `let-declarations` - _ ← Term.mkAuxDefinition ref declName type value zeta; + _ ← Term.mkAuxDefinition declName type value zeta; Term.modifyEnv fun env => setReducibilityStatus env declName ReducibilityStatus.reducible; pure () @@ -532,7 +535,7 @@ withDeclId declId $ fun name => do fields := fields }; let ref := declId; - addDecl ref r.decl; + addDecl r.decl; addProjections ref declName r.projInfos isClass; mkAuxConstructions declName; applyAttributes ref declName modifiers.attrs AttributeApplicationTime.afterTypeChecking; diff --git a/stage0/src/Lean/Elab/Syntax.lean b/stage0/src/Lean/Elab/Syntax.lean index d4c812262a..e8d551b1e5 100644 --- a/stage0/src/Lean/Elab/Syntax.lean +++ b/stage0/src/Lean/Elab/Syntax.lean @@ -54,9 +54,9 @@ if ctx.first && stx.getKind == `Lean.Parser.Syntax.cat then do let cat := (stx.getIdAt 0).eraseMacroScopes; if cat == ctx.catName then do let prec? : Option Nat := expandOptPrecedence (stx.getArg 1); - unless prec?.isNone $ liftM $ throwError (stx.getArg 1) ("invalid occurrence of ':' modifier in head"); + unless prec?.isNone $ liftM $ throwErrorAt (stx.getArg 1) ("invalid occurrence of ':' modifier in head"); unless ctx.leftRec $ liftM $ - throwError (stx.getArg 3) ("invalid occurrence of '" ++ cat ++ "', parser algorithm does not allow this form of left recursion"); + throwErrorAt (stx.getArg 3) ("invalid occurrence of '" ++ cat ++ "', parser algorithm does not allow this form of left recursion"); markAsTrailingParser; -- mark as trailing par pure true else @@ -71,7 +71,7 @@ partial def toParserDescrAux : Syntax → ToParserDescrM Syntax let args := stx.getArgs; condM (checkLeftRec (stx.getArg 0)) (do - when (args.size == 1) $ liftM $ throwError stx "invalid atomic left recursive syntax"; + when (args.size == 1) $ liftM $ throwErrorAt stx "invalid atomic left recursive syntax"; let args := args.eraseIdx 0; args ← args.mapIdxM $ fun i arg => withNotFirst $ toParserDescrAux arg; liftM $ mkParserSeq args) @@ -86,7 +86,7 @@ partial def toParserDescrAux : Syntax → ToParserDescrM Syntax let cat := (stx.getIdAt 0).eraseMacroScopes; ctx ← read; if ctx.first && cat == ctx.catName then - liftM $ throwError stx "invalid atomic left recursive syntax" + liftM $ throwErrorAt stx "invalid atomic left recursive syntax" else do let prec? : Option Nat := expandOptPrecedence (stx.getArg 1); env ← liftM getEnv; @@ -109,11 +109,11 @@ partial def toParserDescrAux : Syntax → ToParserDescrM Syntax | _ => false; let candidates := candidates.map fun ⟨c, _⟩ => c; match candidates with - | [] => liftM $ throwError (stx.getArg 3) ("unknown category '" ++ cat ++ "' or parser declaration") + | [] => liftM $ throwErrorAt (stx.getArg 3) ("unknown category '" ++ cat ++ "' or parser declaration") | [c] => do - unless prec?.isNone $ liftM $ throwError (stx.getArg 3) "unexpected precedence"; + unless prec?.isNone $ liftM $ throwErrorAt (stx.getArg 3) "unexpected precedence"; `(ParserDescr.parser $(quote c)) - | cs => liftM $ throwError (stx.getArg 3) ("ambiguous parser declaration " ++ toString cs) + | cs => liftM $ throwErrorAt (stx.getArg 3) ("ambiguous parser declaration " ++ toString cs) else if kind == `Lean.Parser.Syntax.atom then do match (stx.getArg 0).isStrLit? with | some atom => do @@ -159,7 +159,7 @@ partial def toParserDescrAux : Syntax → ToParserDescrM Syntax d₂ ← withoutLeftRec $ toParserDescrAux (stx.getArg 2); `(ParserDescr.orelse $d₁ $d₂) else - liftM $ throwError stx $ "unexpected syntax kind of category `syntax`: " ++ kind + liftM $ throwErrorAt stx $ "unexpected syntax kind of category `syntax`: " ++ kind /-- Given a `stx` of category `syntax`, return a pair `(newStx, trailingParser)`, @@ -429,10 +429,10 @@ fun stx => do registerTraceClass `Elab.syntax; pure () -@[inline] def withExpectedType (ref : Syntax) (expectedType? : Option Expr) (x : Expr → TermElabM Expr) : TermElabM Expr := do +@[inline] def withExpectedType (expectedType? : Option Expr) (x : Expr → TermElabM Expr) : TermElabM Expr := do Term.tryPostponeIfNoneOrMVar expectedType?; some expectedType ← pure expectedType? - | Term.throwError ref "expected type must be known"; + | Term.throwError "expected type must be known"; x expectedType /- @@ -462,7 +462,7 @@ fun stx => do if expectedTypeSpec.hasArgs then if catName == `term then let expId := expectedTypeSpec.getArg 1; - `(syntax $prec* [$kindId] $stxParts* : $cat @[termElab $kindId:ident] def elabFn : Lean.Elab.Term.TermElab := fun stx expectedType? => match_syntax stx with | `($pat) => Lean.Elab.Command.withExpectedType stx expectedType? fun $expId => $rhs | _ => Lean.Elab.Term.throwUnsupportedSyntax) + `(syntax $prec* [$kindId] $stxParts* : $cat @[termElab $kindId:ident] def elabFn : Lean.Elab.Term.TermElab := fun stx expectedType? => match_syntax stx with | `($pat) => Lean.Elab.Command.withExpectedType expectedType? fun $expId => $rhs | _ => Lean.Elab.Term.throwUnsupportedSyntax) else Macro.throwError expectedTypeSpec ("syntax category '" ++ toString catName ++ "' does not support expected type specification") else if catName == `term then diff --git a/stage0/src/Lean/Elab/SyntheticMVars.lean b/stage0/src/Lean/Elab/SyntheticMVars.lean index ce1e427066..852dff5a88 100644 --- a/stage0/src/Lean/Elab/SyntheticMVars.lean +++ b/stage0/src/Lean/Elab/SyntheticMVars.lean @@ -12,23 +12,25 @@ namespace Term open Tactic (TacticM evalTactic getUnsolvedGoals) -def liftTacticElabM {α} (ref : Syntax) (mvarId : MVarId) (x : TacticM α) : TermElabM α := +def liftTacticElabM {α} (mvarId : MVarId) (x : TacticM α) : TermElabM α := withMVarContext mvarId $ fun ctx s => let savedSyntheticMVars := s.syntheticMVars; - match x { ctx with ref := ref, main := mvarId } { s with goals := [mvarId], syntheticMVars := [] } with + match x { ctx with main := mvarId } { s with goals := [mvarId], syntheticMVars := [] } with | EStateM.Result.error ex newS => EStateM.Result.error (Term.Exception.ex ex) { newS.toTermState with syntheticMVars := savedSyntheticMVars } | EStateM.Result.ok a newS => EStateM.Result.ok a { newS.toTermState with syntheticMVars := savedSyntheticMVars } -def ensureAssignmentHasNoMVars (ref : Syntax) (mvarId : MVarId) : TermElabM Unit := do -val ← instantiateMVars ref (mkMVar mvarId); -when val.hasExprMVar $ throwError ref ("tactic failed, result still contain metavariables" ++ indentExpr val) +def ensureAssignmentHasNoMVars (mvarId : MVarId) : TermElabM Unit := do +val ← instantiateMVars (mkMVar mvarId); +when val.hasExprMVar $ throwError ("tactic failed, result still contain metavariables" ++ indentExpr val) -def runTactic (ref : Syntax) (mvarId : MVarId) (tacticCode : Syntax) : TermElabM Unit := do +def runTactic (mvarId : MVarId) (tacticCode : Syntax) : TermElabM Unit := do modify $ fun s => { s with mctx := s.mctx.instantiateMVarDeclMVars mvarId }; -remainingGoals ← liftTacticElabM ref mvarId $ do { evalTactic tacticCode; getUnsolvedGoals }; +remainingGoals ← liftTacticElabM mvarId $ do { evalTactic tacticCode; getUnsolvedGoals }; +ref ← getCurrRef; let tailRef := ref.getTailWithPos.getD ref; -unless remainingGoals.isEmpty (reportUnsolvedGoals tailRef remainingGoals); -ensureAssignmentHasNoMVars tailRef mvarId +withRef tailRef do +unless remainingGoals.isEmpty (reportUnsolvedGoals remainingGoals); +ensureAssignmentHasNoMVars mvarId /-- Auxiliary function used to implement `synthesizeSyntheticMVars`. -/ private def resumeElabTerm (stx : Syntax) (expectedType? : Option Expr) (errToSorry := true) : TermElabM Expr := @@ -41,16 +43,16 @@ adaptReader (fun (ctx : Context) => { ctx with errToSorry := ctx.errToSorry && e It returns `true` if it succeeded, and `false` otherwise. It is used to implement `synthesizeSyntheticMVars`. -/ private def resumePostponed (macroStack : MacroStack) (stx : Syntax) (mvarId : MVarId) (postponeOnError : Bool) : TermElabM Bool := do -withMVarContext mvarId $ do +withRef stx $ withMVarContext mvarId $ do s ← get; catch (adaptReader (fun (ctx : Context) => { ctx with macroStack := macroStack }) $ do mvarDecl ← getMVarDecl mvarId; - expectedType ← instantiateMVars stx mvarDecl.type; + expectedType ← instantiateMVars mvarDecl.type; result ← resumeElabTerm stx expectedType (!postponeOnError); /- We must ensure `result` has the expected type because it is the one expected by the method that postponed stx. That is, the method does not have an opportunity to check whether `result` has the expected type or not. -/ - result ← ensureHasType stx expectedType result; + result ← ensureHasType expectedType result; assignExprMVar mvarId result; pure true) (fun ex => match ex with @@ -65,40 +67,41 @@ withMVarContext mvarId $ do /-- Similar to `synthesizeInstMVarCore`, but makes sure that `instMVar` local context and instances are used. It also logs any error message produced. -/ -private def synthesizePendingInstMVar (ref : Syntax) (instMVar : MVarId) : TermElabM Bool := do +private def synthesizePendingInstMVar (instMVar : MVarId) : TermElabM Bool := do withMVarContext instMVar $ catch - (synthesizeInstMVarCore ref instMVar) + (synthesizeInstMVarCore instMVar) (fun ex => match ex with | Exception.ex (Elab.Exception.error errMsg) => do logMessage errMsg; pure true | _ => unreachable!) /-- Similar to `synthesizePendingInstMVar`, but generates type mismatch error message. -/ -private def synthesizePendingCoeInstMVar (ref : Syntax) (instMVar : MVarId) (expectedType : Expr) (eType : Expr) (e : Expr) (f? : Option Expr) : TermElabM Bool := do +private def synthesizePendingCoeInstMVar (instMVar : MVarId) (expectedType : Expr) (eType : Expr) (e : Expr) (f? : Option Expr) : TermElabM Bool := do withMVarContext instMVar $ catch - (synthesizeInstMVarCore ref instMVar) + (synthesizeInstMVarCore instMVar) (fun ex => match ex with - | Exception.ex (Elab.Exception.error errMsg) => throwTypeMismatchError ref expectedType eType e f? errMsg.data + | Exception.ex (Elab.Exception.error errMsg) => throwTypeMismatchError expectedType eType e f? errMsg.data | _ => unreachable!) /-- Return `true` iff `mvarId` is assigned to a term whose the head is not a metavariable. We use this method to process `SyntheticMVarKind.withDefault`. -/ -private def checkWithDefault (ref : Syntax) (mvarId : MVarId) : TermElabM Bool := do -val ← instantiateMVars ref (mkMVar mvarId); +private def checkWithDefault (mvarId : MVarId) : TermElabM Bool := do +val ← instantiateMVars (mkMVar mvarId); pure $ !val.getAppFn.isMVar /-- Try to synthesize the given pending synthetic metavariable. -/ private def synthesizeSyntheticMVar (mvarSyntheticDecl : SyntheticMVarDecl) (postponeOnError : Bool) (runTactics : Bool) : TermElabM Bool := +withRef mvarSyntheticDecl.ref $ match mvarSyntheticDecl.kind with -| SyntheticMVarKind.typeClass => synthesizePendingInstMVar mvarSyntheticDecl.ref mvarSyntheticDecl.mvarId -| SyntheticMVarKind.coe expectedType eType e f? => synthesizePendingCoeInstMVar mvarSyntheticDecl.ref mvarSyntheticDecl.mvarId expectedType eType e f? +| SyntheticMVarKind.typeClass => synthesizePendingInstMVar mvarSyntheticDecl.mvarId +| SyntheticMVarKind.coe expectedType eType e f? => synthesizePendingCoeInstMVar mvarSyntheticDecl.mvarId expectedType eType e f? -- NOTE: actual processing at `synthesizeSyntheticMVarsAux` -| SyntheticMVarKind.withDefault _ => checkWithDefault mvarSyntheticDecl.ref mvarSyntheticDecl.mvarId +| SyntheticMVarKind.withDefault _ => checkWithDefault mvarSyntheticDecl.mvarId | SyntheticMVarKind.postponed macroStack => resumePostponed macroStack mvarSyntheticDecl.ref mvarSyntheticDecl.mvarId postponeOnError | SyntheticMVarKind.tactic tacticCode => if runTactics then do - runTactic mvarSyntheticDecl.ref mvarSyntheticDecl.mvarId tacticCode; + runTactic mvarSyntheticDecl.mvarId tacticCode; pure true else pure false @@ -119,9 +122,9 @@ modify $ fun s => { s with syntheticMVars := [] }; -- We use `filterRevM` instead of `filterM` to make sure we process the synthetic metavariables using the order they were created. -- It would not be incorrect to use `filterM`. remainingSyntheticMVars ← syntheticMVars.filterRevM $ fun mvarDecl => do { - trace `Elab.postpone mvarDecl.ref $ fun _ => "resuming ?" ++ mvarDecl.mvarId; + trace `Elab.postpone $ fun _ => "resuming ?" ++ mvarDecl.mvarId; succeeded ← synthesizeSyntheticMVar mvarDecl postponeOnError runTactics; - trace `Elab.postpone mvarDecl.ref $ fun _ => if succeeded then fmt "succeeded" else fmt "not ready yet"; + trace `Elab.postpone $ fun _ => if succeeded then fmt "succeeded" else fmt "not ready yet"; pure $ !succeeded }; -- Merge new synthetic metavariables with `remainingSyntheticMVars`, i.e., metavariables that still couldn't be synthesized @@ -133,12 +136,13 @@ private def synthesizeUsingDefault : TermElabM Bool := do s ← get; let len := s.syntheticMVars.length; newSyntheticMVars ← s.syntheticMVars.filterM $ fun mvarDecl => + withRef mvarDecl.ref $ match mvarDecl.kind with | SyntheticMVarKind.withDefault defaultVal => withMVarContext mvarDecl.mvarId $ do - val ← instantiateMVars mvarDecl.ref (mkMVar mvarDecl.mvarId); + val ← instantiateMVars (mkMVar mvarDecl.mvarId); when val.getAppFn.isMVar $ - unlessM (isDefEq mvarDecl.ref val defaultVal) $ - throwError mvarDecl.ref "failed to assign default value to metavariable"; -- TODO: better error message + unlessM (isDefEq val defaultVal) $ + throwError "failed to assign default value to metavariable"; -- TODO: better error message pure false | _ => pure true; modify $ fun s => { s with syntheticMVars := newSyntheticMVars }; @@ -148,6 +152,7 @@ pure $ newSyntheticMVars.length != len private def reportStuckSyntheticMVars : TermElabM Unit := do s ← get; s.syntheticMVars.forM $ fun mvarSyntheticDecl => + withRef mvarSyntheticDecl.ref $ match mvarSyntheticDecl.kind with | SyntheticMVarKind.typeClass => withMVarContext mvarSyntheticDecl.mvarId $ do @@ -157,7 +162,7 @@ s.syntheticMVars.forM $ fun mvarSyntheticDecl => | SyntheticMVarKind.coe expectedType eType e f? => withMVarContext mvarSyntheticDecl.mvarId $ do mvarDecl ← getMVarDecl mvarSyntheticDecl.mvarId; - throwTypeMismatchError mvarSyntheticDecl.ref expectedType eType e f? (some ("failed to create type class instance for " ++ indentExpr mvarDecl.type)) + throwTypeMismatchError expectedType eType e f? (some ("failed to create type class instance for " ++ indentExpr mvarDecl.type)) | _ => unreachable! -- TODO handle other cases. private def getSomeSynthethicMVarsRef : TermElabM Syntax := do @@ -177,7 +182,7 @@ private partial def synthesizeSyntheticMVarsAux (mayPostpone := true) : Unit → | _ => do let try (x : TermElabM Bool) (k : TermElabM Unit) : TermElabM Unit := condM x (synthesizeSyntheticMVarsAux ()) k; ref ← getSomeSynthethicMVarsRef; - withIncRecDepth ref $ do + withRef ref $ withIncRecDepth $ do s ← get; unless s.syntheticMVars.isEmpty $ do try (synthesizeSyntheticMVarsStep false false) $ @@ -210,18 +215,24 @@ private partial def synthesizeSyntheticMVarsAux (mayPostpone := true) : Unit → def synthesizeSyntheticMVars (mayPostpone := true) : TermElabM Unit := synthesizeSyntheticMVarsAux mayPostpone () -/-- Elaborate `stx`, and make sure all pending synthetic metavariables created while elaborating `stx` are solved. -/ -def elabTermAndSynthesize (stx : Syntax) (expectedType? : Option Expr) : TermElabM Expr := do +/-- Execute `k`, and make sure all pending synthetic metavariables created while executing `k` are solved. -/ +def withSynthesize {α} (k : TermElabM α) : TermElabM α := do s ← get; let syntheticMVars := s.syntheticMVars; modify $ fun s => { s with syntheticMVars := [] }; finally (do - v ← elabTerm stx expectedType?; + a ← k; synthesizeSyntheticMVars false; - instantiateMVars stx v) + pure a) (modify $ fun s => { s with syntheticMVars := s.syntheticMVars ++ syntheticMVars }) +/-- Elaborate `stx`, and make sure all pending synthetic metavariables created while elaborating `stx` are solved. -/ +def elabTermAndSynthesize (stx : Syntax) (expectedType? : Option Expr) : TermElabM Expr := +withRef stx do + v ← withSynthesize $ elabTerm stx expectedType?; + instantiateMVars v + end Term end Elab end Lean diff --git a/stage0/src/Lean/Elab/Tactic/Basic.lean b/stage0/src/Lean/Elab/Tactic/Basic.lean index 6942342aab..ff440430a3 100644 --- a/stage0/src/Lean/Elab/Tactic/Basic.lean +++ b/stage0/src/Lean/Elab/Tactic/Basic.lean @@ -18,15 +18,15 @@ namespace Elab def goalsToMessageData (goals : List MVarId) : MessageData := MessageData.joinSep (goals.map $ MessageData.ofGoal) (Format.line ++ Format.line) -def Term.reportUnsolvedGoals (ref : Syntax) (goals : List MVarId) : TermElabM Unit := +def Term.reportUnsolvedGoals (goals : List MVarId) : TermElabM Unit := do +ref ← Term.getCurrRef; let tailRef := ref.getTailWithPos.getD ref; -Term.throwError tailRef $ "unsolved goals" ++ Format.line ++ goalsToMessageData goals +Term.throwErrorAt tailRef $ "unsolved goals" ++ Format.line ++ goalsToMessageData goals namespace Tactic structure Context extends toTermCtx : Term.Context := (main : MVarId) -(ref : Syntax) structure State extends toTermState : Term.State := (goals : List MVarId) @@ -60,7 +60,10 @@ fun ctx s => match x ctx.toTermCtx s.toTermState with | EStateM.Result.error (Term.Exception.ex ex) newS => EStateM.Result.error ex { s with toTermState := newS } | EStateM.Result.error Term.Exception.postpone _ => unreachable! -def liftMetaM {α} (ref : Syntax) (x : MetaM α) : TacticM α := liftTermElabM $ Term.liftMetaM ref x +def liftMetaM {α} (x : MetaM α) : TacticM α := liftTermElabM $ Term.liftMetaM x + +@[inline] def withRef {α} (ref : Syntax) (x : TacticM α) : TacticM α := do +adaptReader (fun (ctx : Context) => { ctx with ref := ref }) x def getEnv : TacticM Environment := do s ← get; pure s.env def getMCtx : TacticM MetavarContext := do s ← get; pure s.mctx @@ -69,21 +72,21 @@ def getLCtx : TacticM LocalContext := do ctx ← read; pure ctx.lctx def getLocalInsts : TacticM LocalInstances := do ctx ← read; pure ctx.localInstances def getOptions : TacticM Options := do ctx ← read; pure ctx.config.opts def getMVarDecl (mvarId : MVarId) : TacticM MetavarDecl := do mctx ← getMCtx; pure $ mctx.getDecl mvarId -def instantiateMVars (ref : Syntax) (e : Expr) : TacticM Expr := liftTermElabM $ Term.instantiateMVars ref e +def instantiateMVars (e : Expr) : TacticM Expr := liftTermElabM $ Term.instantiateMVars e def addContext (msg : MessageData) : TacticM MessageData := liftTermElabM $ Term.addContext msg def isExprMVarAssigned (mvarId : MVarId) : TacticM Bool := liftTermElabM $ Term.isExprMVarAssigned mvarId def assignExprMVar (mvarId : MVarId) (val : Expr) : TacticM Unit := liftTermElabM $ Term.assignExprMVar mvarId val -def ensureHasType (ref : Syntax) (expectedType? : Option Expr) (e : Expr) : TacticM Expr := liftTermElabM $ Term.ensureHasType ref expectedType? e -def reportUnsolvedGoals (ref : Syntax) (goals : List MVarId) : TacticM Unit := liftTermElabM $ Term.reportUnsolvedGoals ref goals -def inferType (ref : Syntax) (e : Expr) : TacticM Expr := liftTermElabM $ Term.inferType ref e -def whnf (ref : Syntax) (e : Expr) : TacticM Expr := liftTermElabM $ Term.whnf ref e -def whnfCore (ref : Syntax) (e : Expr) : TacticM Expr := liftTermElabM $ Term.whnfCore ref e -def unfoldDefinition? (ref : Syntax) (e : Expr) : TacticM (Option Expr) := liftTermElabM $ Term.unfoldDefinition? ref e +def ensureHasType (expectedType? : Option Expr) (e : Expr) : TacticM Expr := liftTermElabM $ Term.ensureHasType expectedType? e +def reportUnsolvedGoals (goals : List MVarId) : TacticM Unit := liftTermElabM $ Term.reportUnsolvedGoals goals +def inferType (e : Expr) : TacticM Expr := liftTermElabM $ Term.inferType e +def whnf (e : Expr) : TacticM Expr := liftTermElabM $ Term.whnf e +def whnfCore (e : Expr) : TacticM Expr := liftTermElabM $ Term.whnfCore e +def unfoldDefinition? (e : Expr) : TacticM (Option Expr) := liftTermElabM $ Term.unfoldDefinition? e def resolveGlobalName (n : Name) : TacticM (List (Name × List String)) := liftTermElabM $ Term.resolveGlobalName n /-- Collect unassigned metavariables -/ -def collectMVars (ref : Syntax) (e : Expr) : TacticM (List MVarId) := do -e ← instantiateMVars ref e; +def collectMVars (e : Expr) : TacticM (List MVarId) := do +e ← instantiateMVars e; let s := Lean.collectMVars {} e; pure s.result.toList @@ -94,15 +97,17 @@ instance monadLog : MonadLog TacticM := addContext := addContext, logMessage := fun msg => modify $ fun s => { s with messages := s.messages.add msg } } -def throwError {α} (ref : Syntax) (msgData : MessageData) : TacticM α := do -ref ← if ref.getPos.isNone then do ctx ← read; pure ctx.ref else pure ref; -liftTermElabM $ Term.throwError ref msgData +def throwErrorAt {α} (ref : Syntax) (msgData : MessageData) : TacticM α := do +liftTermElabM $ Term.throwErrorAt ref msgData + +def throwError {α} (msgData : MessageData) : TacticM α := do +liftTermElabM $ Term.throwError msgData def throwUnsupportedSyntax {α} : TacticM α := liftTermElabM $ Term.throwUnsupportedSyntax -@[inline] def withIncRecDepth {α} (ref : Syntax) (x : TacticM α) : TacticM α := do +@[inline] def withIncRecDepth {α} (x : TacticM α) : TacticM α := do ctx ← read; -when (ctx.currRecDepth == ctx.maxRecDepth) $ throwError ref maxRecDepthErrorMessage; +when (ctx.currRecDepth == ctx.maxRecDepth) $ throwError maxRecDepthErrorMessage; adaptReader (fun (ctx : Context) => { ctx with currRecDepth := ctx.currRecDepth + 1 }) x protected def getCurrMacroScope : TacticM MacroScope := do ctx ← read; pure ctx.currMacroScope @@ -123,14 +128,14 @@ mkElabAttribute Tactic `Lean.Elab.Tactic.tacticElabAttribute `builtinTactic `tac @[init mkTacticAttribute] constant tacticElabAttribute : KeyedDeclsAttribute Tactic := arbitrary _ def logTrace (cls : Name) (ref : Syntax) (msg : MessageData) : TacticM Unit := liftTermElabM $ Term.logTrace cls ref msg -@[inline] def trace (cls : Name) (ref : Syntax) (msg : Unit → MessageData) : TacticM Unit := liftTermElabM $ Term.trace cls ref msg +@[inline] def trace (cls : Name) (msg : Unit → MessageData) : TacticM Unit := liftTermElabM $ Term.trace cls msg @[inline] def traceAtCmdPos (cls : Name) (msg : Unit → MessageData) : TacticM Unit := liftTermElabM $ Term.traceAtCmdPos cls msg def dbgTrace {α} [HasToString α] (a : α) : TacticM Unit :=_root_.dbgTrace (toString a) $ fun _ => pure () private def evalTacticUsing (s : State) (stx : Syntax) : List Tactic → TacticM Unit | [] => do let refFmt := stx.prettyPrint; - throwError stx ("unexpected syntax" ++ MessageData.nest 2 (Format.line ++ refFmt)) + throwErrorAt stx ("unexpected syntax" ++ MessageData.nest 2 (Format.line ++ refFmt)) | (evalFn::evalFns) => catch (evalFn stx) (fun ex => match ex with | Exception.error _ => @@ -150,11 +155,11 @@ instance : MonadMacroAdapter TacticM := setNextMacroScope := fun next => modify $ fun s => { s with nextMacroScope := next }, getCurrRecDepth := do ctx ← read; pure ctx.currRecDepth, getMaxRecDepth := do ctx ← read; pure ctx.maxRecDepth, - throwError := @throwError, + throwError := @throwErrorAt, throwUnsupportedSyntax := @throwUnsupportedSyntax } @[specialize] private def expandTacticMacroFns (evalTactic : Syntax → TacticM Unit) (stx : Syntax) : List Macro → TacticM Unit -| [] => throwError stx ("tactic '" ++ toString stx.getKind ++ "' has not been implemented") +| [] => throwErrorAt stx ("tactic '" ++ toString stx.getKind ++ "' has not been implemented") | m::ms => do scp ← getCurrMacroScope; catch @@ -171,21 +176,21 @@ let macroFns := (table.find? k).getD []; expandTacticMacroFns evalTactic stx macroFns partial def evalTactic : Syntax → TacticM Unit -| stx => withIncRecDepth stx $ withFreshMacroScope $ match stx with +| stx => withRef stx $ withIncRecDepth $ withFreshMacroScope $ match stx with | Syntax.node k args => if k == nullKind then -- list of tactics separated by `;` => evaluate in order -- Syntax quotations can return multiple ones stx.forSepArgsM evalTactic else do - trace `Elab.step stx $ fun _ => stx; + trace `Elab.step fun _ => stx; s ← get; let table := (tacticElabAttribute.ext.getState s.env).table; let k := stx.getKind; match table.find? k with | some evalFns => evalTacticUsing s stx evalFns | none => expandTacticMacro evalTactic stx - | _ => throwError stx "unexpected command" + | _ => throwError "unexpected command" /-- Adapt a syntax transformation to a regular tactic evaluator. -/ def adaptExpander (exp : Syntax → TacticM Syntax) : Tactic := @@ -221,43 +226,43 @@ gs ← getGoals; gs ← gs.filterM $ fun g => not <$> isExprMVarAssigned g; setGoals gs def getUnsolvedGoals : TacticM (List MVarId) := do pruneSolvedGoals; getGoals -def getMainGoal (ref : Syntax) : TacticM (MVarId × List MVarId) := do (g::gs) ← getUnsolvedGoals | throwError ref "no goals to be solved"; pure (g, gs) -def ensureHasNoMVars (ref : Syntax) (e : Expr) : TacticM Unit := do -e ← instantiateMVars ref e; -when e.hasMVar $ throwError ref ("tactic failed, resulting expression contains metavariables" ++ indentExpr e) +def getMainGoal : TacticM (MVarId × List MVarId) := do (g::gs) ← getUnsolvedGoals | throwError "no goals to be solved"; pure (g, gs) +def ensureHasNoMVars (e : Expr) : TacticM Unit := do +e ← instantiateMVars e; +when e.hasMVar $ throwError ("tactic failed, resulting expression contains metavariables" ++ indentExpr e) -def withMainMVarContext {α} (ref : Syntax) (x : TacticM α) : TacticM α := do -(mvarId, _) ← getMainGoal ref; +def withMainMVarContext {α} (x : TacticM α) : TacticM α := do +(mvarId, _) ← getMainGoal; withMVarContext mvarId x -@[inline] def liftMetaMAtMain {α} (ref : Syntax) (x : MVarId → MetaM α) : TacticM α := do -(g, _) ← getMainGoal ref; -withMVarContext g $ liftMetaM ref $ x g +@[inline] def liftMetaMAtMain {α} (x : MVarId → MetaM α) : TacticM α := do +(g, _) ← getMainGoal; +withMVarContext g $ liftMetaM $ x g -@[inline] def liftMetaTacticAux {α} (ref : Syntax) (tactic : MVarId → MetaM (α × List MVarId)) : TacticM α := do -(g, gs) ← getMainGoal ref; +@[inline] def liftMetaTacticAux {α} (tactic : MVarId → MetaM (α × List MVarId)) : TacticM α := do +(g, gs) ← getMainGoal; withMVarContext g $ do - (a, gs') ← liftMetaM ref $ tactic g; + (a, gs') ← liftMetaM $ tactic g; setGoals (gs' ++ gs); pure a -@[inline] def liftMetaTactic (ref : Syntax) (tactic : MVarId → MetaM (List MVarId)) : TacticM Unit := -liftMetaTacticAux ref (fun mvarId => do gs ← tactic mvarId; pure ((), gs)) +@[inline] def liftMetaTactic (tactic : MVarId → MetaM (List MVarId)) : TacticM Unit := +liftMetaTacticAux (fun mvarId => do gs ← tactic mvarId; pure ((), gs)) -def done (ref : Syntax) : TacticM Unit := do +def done : TacticM Unit := do gs ← getUnsolvedGoals; -unless gs.isEmpty $ reportUnsolvedGoals ref gs +unless gs.isEmpty $ reportUnsolvedGoals gs -def focusAux {α} (ref : Syntax) (tactic : TacticM α) : TacticM α := do -(g, gs) ← getMainGoal ref; +def focusAux {α} (tactic : TacticM α) : TacticM α := do +(g, gs) ← getMainGoal; setGoals [g]; a ← tactic; gs' ← getGoals; setGoals (gs' ++ gs); pure a -def focus {α} (ref : Syntax) (tactic : TacticM α) : TacticM α := -focusAux ref (do a ← tactic; done ref; pure a) +def focus {α} (tactic : TacticM α) : TacticM α := +focusAux (do a ← tactic; done; pure a) /-- Use `parentTag` to tag untagged goals at `newGoals`. @@ -306,7 +311,7 @@ fun stx => (catch (do evalTactic tactic; pure true) (fun _ => pure false)) - (throwError stx ("tactic succeeded")) + (throwError ("tactic succeeded")) @[builtinTactic traceState] def evalTraceState : Tactic := fun stx => do @@ -314,12 +319,12 @@ fun stx => do logInfo stx (goalsToMessageData gs) @[builtinTactic «assumption»] def evalAssumption : Tactic := -fun stx => liftMetaTactic stx $ fun mvarId => do Meta.assumption mvarId; pure [] +fun stx => liftMetaTactic $ fun mvarId => do Meta.assumption mvarId; pure [] @[builtinTactic «intro»] def evalIntro : Tactic := fun stx => match_syntax stx with - | `(tactic| intro) => liftMetaTactic stx $ fun mvarId => do (_, mvarId) ← Meta.intro1 mvarId; pure [mvarId] - | `(tactic| intro $h) => liftMetaTactic stx $ fun mvarId => do (_, mvarId) ← Meta.intro mvarId h.getId; pure [mvarId] + | `(tactic| intro) => liftMetaTactic $ fun mvarId => do (_, mvarId) ← Meta.intro1 mvarId; pure [mvarId] + | `(tactic| intro $h) => liftMetaTactic $ fun mvarId => do (_, mvarId) ← Meta.intro mvarId h.getId; pure [mvarId] | _ => throwUnsupportedSyntax private def getIntrosSize : Expr → Nat @@ -329,22 +334,23 @@ private def getIntrosSize : Expr → Nat @[builtinTactic «intros»] def evalIntros : Tactic := fun stx => match_syntax stx with - | `(tactic| intros) => liftMetaTactic stx $ fun mvarId => do + | `(tactic| intros) => liftMetaTactic $ fun mvarId => do type ← Meta.getMVarType mvarId; type ← Meta.instantiateMVars type; let n := getIntrosSize type; (_, mvarId) ← Meta.introN mvarId n; pure [mvarId] - | `(tactic| intros $ids*) => liftMetaTactic stx $ fun mvarId => do + | `(tactic| intros $ids*) => liftMetaTactic $ fun mvarId => do (_, mvarId) ← Meta.introN mvarId ids.size (ids.map Syntax.getId).toList; pure [mvarId] | _ => throwUnsupportedSyntax -def getFVarId (id : Syntax) : TacticM FVarId := do +def getFVarId (id : Syntax) : TacticM FVarId := +withRef id do fvar? ← liftTermElabM $ Term.isLocalTermId? id true; match fvar? with | some fvar => pure fvar.fvarId! -| none => throwError id ("unknown variable '" ++ toString id.getId ++ "'") +| none => throwError ("unknown variable '" ++ toString id.getId ++ "'") def getFVarIds (ids : Array Syntax) : TacticM (Array FVarId) := ids.mapM getFVarId @@ -352,36 +358,36 @@ ids.mapM getFVarId @[builtinTactic «revert»] def evalRevert : Tactic := fun stx => match_syntax stx with | `(tactic| revert $hs*) => do - (g, gs) ← getMainGoal stx; + (g, gs) ← getMainGoal; withMVarContext g $ do fvarIds ← getFVarIds hs; - (_, g) ← liftMetaM stx $ Meta.revert g fvarIds; + (_, g) ← liftMetaM $ Meta.revert g fvarIds; setGoals (g :: gs) | _ => throwUnsupportedSyntax -def forEachVar (ref : Syntax) (hs : Array Syntax) (tac : MVarId → FVarId → MetaM MVarId) : TacticM Unit := +def forEachVar (hs : Array Syntax) (tac : MVarId → FVarId → MetaM MVarId) : TacticM Unit := hs.forM $ fun h => do - (g, gs) ← getMainGoal ref; + (g, gs) ← getMainGoal; withMVarContext g $ do fvarId ← getFVarId h; - g ← liftMetaM ref $ tac g fvarId; + g ← liftMetaM $ tac g fvarId; setGoals (g :: gs) @[builtinTactic «clear»] def evalClear : Tactic := fun stx => match_syntax stx with - | `(tactic| clear $hs*) => forEachVar stx hs Meta.clear + | `(tactic| clear $hs*) => forEachVar hs Meta.clear | _ => throwUnsupportedSyntax @[builtinTactic «subst»] def evalSubst : Tactic := fun stx => match_syntax stx with - | `(tactic| subst $hs*) => forEachVar stx hs Meta.subst + | `(tactic| subst $hs*) => forEachVar hs Meta.subst | _ => throwUnsupportedSyntax @[builtinTactic paren] def evalParen : Tactic := fun stx => evalTactic (stx.getArg 1) @[builtinTactic nestedTacticBlock] def evalNestedTacticBlock : Tactic := -fun stx => focus stx (evalTactic (stx.getArg 1)) +fun stx => focus (evalTactic (stx.getArg 1)) @[builtinTactic nestedTacticBlockCurly] def evalNestedTacticBlockCurly : Tactic := evalNestedTacticBlock @@ -391,11 +397,11 @@ fun stx => match_syntax stx with | `(tactic| case $tag $tac) => do let tag := tag.getId; gs ← getUnsolvedGoals; - some g ← gs.findM? (fun g => do mvarDecl ← getMVarDecl g; pure $ tag.isSuffixOf mvarDecl.userName) | throwError stx "tag not found"; + some g ← gs.findM? (fun g => do mvarDecl ← getMVarDecl g; pure $ tag.isSuffixOf mvarDecl.userName) | throwError "tag not found"; let gs := gs.erase g; setGoals [g]; evalTactic tac; - done stx; + done; setGoals gs | _ => throwUnsupportedSyntax diff --git a/stage0/src/Lean/Elab/Tactic/ElabTerm.lean b/stage0/src/Lean/Elab/Tactic/ElabTerm.lean index 67f9b5a2b3..da9b272562 100644 --- a/stage0/src/Lean/Elab/Tactic/ElabTerm.lean +++ b/stage0/src/Lean/Elab/Tactic/ElabTerm.lean @@ -15,21 +15,20 @@ namespace Tactic /- `elabTerm` for Tactics and basic tactics that use it. -/ def elabTerm (stx : Syntax) (expectedType? : Option Expr) (mayPostpone := false) : TacticM Expr := -liftTermElabM $ adaptReader (fun (ctx : Term.Context) => { ctx with errToSorry := false }) $ do +withRef stx $ liftTermElabM $ adaptReader (fun (ctx : Term.Context) => { ctx with errToSorry := false }) $ do e ← Term.elabTerm stx expectedType?; Term.synthesizeSyntheticMVars mayPostpone; - Term.instantiateMVars stx e + Term.instantiateMVars e @[builtinTactic «exact»] def evalExact : Tactic := fun stx => match_syntax stx with | `(tactic| exact $e) => do - let ref := stx; - (g, gs) ← getMainGoal stx; + (g, gs) ← getMainGoal; withMVarContext g $ do { decl ← getMVarDecl g; val ← elabTerm e decl.type; - val ← ensureHasType ref decl.type val; - ensureHasNoMVars ref val; + val ← ensureHasType decl.type val; + ensureHasNoMVars val; assignExprMVar g val }; setGoals gs @@ -38,14 +37,13 @@ fun stx => match_syntax stx with @[builtinTactic «refine»] def evalRefine : Tactic := fun stx => match_syntax stx with | `(tactic| refine $e) => do - let ref := stx; - (g, gs) ← getMainGoal stx; + (g, gs) ← getMainGoal; gs' ← withMVarContext g $ do { decl ← getMVarDecl g; val ← elabTerm e decl.type; - val ← ensureHasType ref decl.type val; + val ← ensureHasType decl.type val; assignExprMVar g val; - gs' ← collectMVars ref val; + gs' ← collectMVars val; tagUntaggedGoals decl.userName `refine gs'; pure gs' }; @@ -55,12 +53,11 @@ fun stx => match_syntax stx with @[builtinTactic «apply»] def evalApply : Tactic := fun stx => match_syntax stx with | `(tactic| apply $e) => do - let ref := stx; - (g, gs) ← getMainGoal stx; + (g, gs) ← getMainGoal; gs' ← withMVarContext g $ do { decl ← getMVarDecl g; val ← elabTerm e none true; - gs' ← liftMetaM ref $ Meta.apply g val; + gs' ← liftMetaM $ Meta.apply g val; liftTermElabM $ Term.synthesizeSyntheticMVars false; pure gs' }; @@ -72,15 +69,15 @@ fun stx => match_syntax stx with Elaborate `stx`. If it a free variable, return it. Otherwise, assert it, and return the free variable. Note that, the main goal is updated when `Meta.assert` is used in the second case. -/ def elabAsFVar (stx : Syntax) (userName? : Option Name := none) : TacticM FVarId := do -(mvarId, others) ← getMainGoal stx; +(mvarId, others) ← getMainGoal; withMVarContext mvarId $ do e ← elabTerm stx none; match e with | Expr.fvar fvarId _ => pure fvarId | _ => do - type ← inferType stx e; + type ← inferType e; let intro (userName : Name) (useUnusedNames : Bool) : TacticM FVarId := do { - (fvarId, mvarId) ← liftMetaM stx $ do { + (fvarId, mvarId) ← liftMetaM $ do { mvarId ← Meta.assert mvarId userName type e; Meta.intro1 mvarId useUnusedNames }; diff --git a/stage0/src/Lean/Elab/Tactic/Generalize.lean b/stage0/src/Lean/Elab/Tactic/Generalize.lean index c56e8f9c16..41c82eb2de 100644 --- a/stage0/src/Lean/Elab/Tactic/Generalize.lean +++ b/stage0/src/Lean/Elab/Tactic/Generalize.lean @@ -31,8 +31,8 @@ let mvarId' := mvar'.mvarId!; (_, mvarId') ← Meta.introN mvarId' 2 [] false; pure [mvarId'] -private def evalGeneralizeWithEq (ref : Syntax) (h : Name) (e : Expr) (x : Name) : TacticM Unit := -liftMetaTactic ref $ fun mvarId => do +private def evalGeneralizeWithEq (h : Name) (e : Expr) (x : Name) : TacticM Unit := +liftMetaTactic $ fun mvarId => do mvarId ← Meta.generalize mvarId e x; mvarDecl ← Meta.getMVarDecl mvarId; match mvarDecl.type with @@ -46,8 +46,8 @@ liftMetaTactic ref $ fun mvarId => do | _ => throw $ Meta.Exception.other Syntax.missing "unexpected type after generalize" -- If generalizing fails, fall back to not replacing anything -private def evalGeneralizeFallback (ref : Syntax) (h : Name) (e : Expr) (x : Name) : TacticM Unit := -liftMetaTactic ref $ fun mvarId => do +private def evalGeneralizeFallback (h : Name) (e : Expr) (x : Name) : TacticM Unit := +liftMetaTactic $ fun mvarId => do eType ← Meta.inferType e; u ← Meta.getLevel eType; mvarType ← Meta.getMVarType mvarId; @@ -55,21 +55,21 @@ liftMetaTactic ref $ fun mvarId => do let target := Lean.mkForall x BinderInfo.default eType $ Lean.mkForall h BinderInfo.default eq mvarType; evalGeneralizeFinalize mvarId e target -def evalGeneralizeAux (ref : Syntax) (h? : Option Name) (e : Expr) (x : Name) : TacticM Unit := +def evalGeneralizeAux (h? : Option Name) (e : Expr) (x : Name) : TacticM Unit := match h? with -| none => liftMetaTactic ref $ fun mvarId => do +| none => liftMetaTactic $ fun mvarId => do mvarId ← Meta.generalize mvarId e x; (_, mvarId) ← Meta.intro1 mvarId false; pure [mvarId] | some h => - evalGeneralizeWithEq ref h e x <|> evalGeneralizeFallback ref h e x + evalGeneralizeWithEq h e x <|> evalGeneralizeFallback h e x @[builtinTactic «generalize»] def evalGeneralize : Tactic := fun stx => do let h? := getAuxHypothesisName stx; let x := getVarName stx; e ← elabTerm (stx.getArg 2) none; - evalGeneralizeAux stx h? e x + evalGeneralizeAux h? e x end Tactic end Elab diff --git a/stage0/src/Lean/Elab/Tactic/Induction.lean b/stage0/src/Lean/Elab/Tactic/Induction.lean index c67e0b0c67..c51062d171 100644 --- a/stage0/src/Lean/Elab/Tactic/Induction.lean +++ b/stage0/src/Lean/Elab/Tactic/Induction.lean @@ -23,25 +23,25 @@ else some (((stx.getArg 1).getArg 0).getIdAt 0) private def getMajor (stx : Syntax) : Syntax := (stx.getArg 1).getArg 1 -private def elabMajor (ref : Syntax) (h? : Option Name) (major : Syntax) : TacticM Expr := do +private def elabMajor (h? : Option Name) (major : Syntax) : TacticM Expr := do match h? with -| none => withMainMVarContext ref $ elabTerm major none -| some h => withMainMVarContext ref $ do +| none => withMainMVarContext $ elabTerm major none +| some h => withMainMVarContext do lctx ← getLCtx; let x := lctx.getUnusedName `x; major ← elabTerm major none; - evalGeneralizeAux ref h? major x; - withMainMVarContext ref $ do + evalGeneralizeAux h? major x; + withMainMVarContext do lctx ← getLCtx; match lctx.findFromUserName? x with | some decl => pure decl.toExpr - | none => throwError ref "failed to generalize" + | none => throwError "failed to generalize" -private def generalizeMajor (ref : Syntax) (major : Expr) : TacticM Expr := do +private def generalizeMajor (major : Expr) : TacticM Expr := do match major with | Expr.fvar _ _ => pure major | _ => do - liftMetaTacticAux ref $ fun mvarId => do + liftMetaTacticAux fun mvarId => do mvarId ← Meta.generalize mvarId major `x; (fvarId, mvarId) ← Meta.intro1 mvarId; pure (mkFVar fvarId, [mvarId]) @@ -54,17 +54,18 @@ match major with ``` `stx` is syntax for `induction`. -/ private def getGeneralizingFVarIds (stx : Syntax) : TacticM (Array FVarId) := +withRef stx $ let generalizingStx := stx.getArg 3; if generalizingStx.isNone then pure #[] -else withMainMVarContext stx $ do - trace `Elab.induction stx $ fun _ => generalizingStx; +else withMainMVarContext do + trace `Elab.induction fun _ => generalizingStx; let vars := (generalizingStx.getArg 1).getArgs; getFVarIds vars -- process `generalizingVars` subterm of induction Syntax `stx`. private def generalizeVars (stx : Syntax) (major : Expr) : TacticM Nat := do fvarIds ← getGeneralizingFVarIds stx; -liftMetaTacticAux stx $ fun mvarId => do +liftMetaTacticAux fun mvarId => do (fvarIds, mvarId') ← Meta.revert mvarId fvarIds; when (fvarIds.contains major.fvarId!) $ Meta.throwTacticEx `induction mvarId "major premise depends on variable being generalized"; @@ -92,17 +93,17 @@ private def getAltRHS (alt : Syntax) : Syntax := alt.getArg 3 private def checkAltCtorNames (alts : Array Syntax) (ctorNames : List Name) : TacticM Unit := alts.forM $ fun alt => do let n := getAltName alt; - trace `Elab.checkAlt alt $ fun _ => n ++ ", " ++ alt; + withRef alt $ trace `Elab.checkAlt $ fun _ => n ++ ", " ++ alt; unless (n == `_ || ctorNames.any (fun ctorName => n.isSuffixOf ctorName)) $ - throwError (alt.getArg 0) ("invalid constructor name '" ++ toString n ++ "'") + throwErrorAt (alt.getArg 0) ("invalid constructor name '" ++ toString n ++ "'") structure RecInfo := (recName : Name) (altVars : Array (List Name) := #[]) -- new variable names for each minor premise (altRHSs : Array Syntax := #[]) -- RHS for each minor premise -def getInductiveValFromMajor (ref : Syntax) (major : Expr) : TacticM InductiveVal := -liftMetaMAtMain ref $ fun mvarId => do +def getInductiveValFromMajor (major : Expr) : TacticM InductiveVal := +liftMetaMAtMain $ fun mvarId => do majorType ← Meta.inferType major; majorType ← Meta.whnf majorType; match majorType.getAppFn with @@ -113,15 +114,15 @@ liftMetaMAtMain ref $ fun mvarId => do | _ => Meta.throwTacticEx `induction mvarId ("major premise type is not an inductive type " ++ indentExpr majorType) | _ => Meta.throwTacticEx `induction mvarId ("major premise type is not an inductive type " ++ indentExpr majorType) -private partial def getRecFromUsingLoop (ref : Syntax) (baseRecName : Name) : Expr → TacticM (Option Meta.RecursorInfo) +private partial def getRecFromUsingLoop (baseRecName : Name) : Expr → TacticM (Option Meta.RecursorInfo) | majorType => do let continue (majorType : Expr) : TacticM (Option Meta.RecursorInfo) := do { - majorType? ← unfoldDefinition? ref majorType; + majorType? ← unfoldDefinition? majorType; match majorType? with - | some majorType => withIncRecDepth ref $ getRecFromUsingLoop majorType + | some majorType => withIncRecDepth $ getRecFromUsingLoop majorType | none => pure none }; - majorType ← whnfCore ref majorType; + majorType ← whnfCore majorType; match majorType.getAppFn with | Expr.const name _ _ => do let candidate := name ++ baseRecName; @@ -129,29 +130,29 @@ private partial def getRecFromUsingLoop (ref : Syntax) (baseRecName : Name) : Ex match env.find? candidate with | some _ => catch - (liftMetaMAtMain ref $ fun _ => do info ← Meta.mkRecursorInfo candidate; pure (some info)) + (liftMetaMAtMain fun _ => do info ← Meta.mkRecursorInfo candidate; pure (some info)) (fun _ => continue majorType) | none => continue majorType | _ => continue majorType -def getRecFromUsing (ref : Syntax) (major : Expr) (baseRecName : Name) : TacticM Meta.RecursorInfo := do -majorType ← inferType ref major; -recInfo? ← getRecFromUsingLoop ref baseRecName majorType; +def getRecFromUsing (major : Expr) (baseRecName : Name) : TacticM Meta.RecursorInfo := do +majorType ← inferType major; +recInfo? ← getRecFromUsingLoop baseRecName majorType; match recInfo? with | some recInfo => pure recInfo | none => do result ← resolveGlobalName baseRecName; match result with - | _::_::_ => throwError ref ("ambiguous recursor name '" ++ baseRecName ++ "', " ++ toString (result.map Prod.fst)) + | _::_::_ => throwError ("ambiguous recursor name '" ++ baseRecName ++ "', " ++ toString (result.map Prod.fst)) | [(recName, [])] => do catch - (liftMetaMAtMain ref $ fun _ => Meta.mkRecursorInfo recName) - (fun _ => throwError ref ("invalid recursor name '" ++ baseRecName ++ "'")) - | _ => throwError ref ("invalid recursor name '" ++ baseRecName ++ "'") + (liftMetaMAtMain fun _ => Meta.mkRecursorInfo recName) + (fun _ => throwError ("invalid recursor name '" ++ baseRecName ++ "'")) + | _ => throwError ("invalid recursor name '" ++ baseRecName ++ "'") /- Create `RecInfo` assuming builtin recursor -/ -private def getRecInfoDefault (ref : Syntax) (major : Expr) (withAlts : Syntax) (allowMissingAlts : Bool) : TacticM (RecInfo × Array Name) := do -indVal ← getInductiveValFromMajor ref major; +private def getRecInfoDefault (major : Expr) (withAlts : Syntax) (allowMissingAlts : Bool) : TacticM (RecInfo × Array Name) := do +indVal ← getInductiveValFromMajor major; let recName := mkRecFor indVal.name; if withAlts.isNone then pure ({ recName := recName }, #[]) else do @@ -176,10 +177,10 @@ else do if allowMissingAlts then pure (altVars.push [], altRHSs.push Syntax.missing, remainingAlts, prevAnonymousAlt?) else - throwError ref ("alternative for constructor '" ++ toString ctorName ++ "' is missing")) + throwError ("alternative for constructor '" ++ toString ctorName ++ "' is missing")) (#[], #[], alts, none); unless remainingAlts.isEmpty $ - throwError (remainingAlts.get! 0) "unused alternative"; + throwErrorAt (remainingAlts.get! 0) "unused alternative"; pure ({ recName := recName, altVars := altVars, altRHSs := altRHSs }, ctorNames.toArray) /- @@ -192,20 +193,20 @@ else do usingRec : Parser := optional (" using " >> ident) ``` -/ private def getRecInfo (stx : Syntax) (major : Expr) : TacticM RecInfo := -let ref := stx; +withRef stx $ let usingRecStx := stx.getArg 2; let withAlts := stx.getArg 4; if usingRecStx.isNone then do - (rinfo, _) ← getRecInfoDefault ref major withAlts false; + (rinfo, _) ← getRecInfoDefault major withAlts false; pure rinfo else do let baseRecName := (usingRecStx.getIdAt 1).eraseMacroScopes; - recInfo ← getRecFromUsing ref major baseRecName; + recInfo ← getRecFromUsing major baseRecName; let recName := recInfo.recursorName; if withAlts.isNone then pure { recName := recName } else do let alts := getAlts withAlts; - paramNames ← liftMetaMAtMain ref $ fun _ => Meta.getParamNames recInfo.recursorName; + paramNames ← liftMetaMAtMain $ fun _ => Meta.getParamNames recInfo.recursorName; (altVars, altRHSs, remainingAlts, _) ← paramNames.size.foldM (fun (i : Nat) (result : Array (List Name) × Array Syntax × Array Syntax × Option Syntax) => if recInfo.isMinor i then @@ -222,59 +223,59 @@ else do | none => match prevAnonymousAlt? with | some alt => pure (altVars.push (getAltVarNames alt).toList, altRHSs.push (getAltRHS alt), remainingAlts, prevAnonymousAlt?) - | none => throwError ref ("alternative for minor premise '" ++ toString paramName ++ "' is missing") + | none => throwError ("alternative for minor premise '" ++ toString paramName ++ "' is missing") else pure result) (#[], #[], alts, none); unless remainingAlts.isEmpty $ - throwError (remainingAlts.get! 0) "unused alternative"; + throwErrorAt (remainingAlts.get! 0) "unused alternative"; pure { recName := recName, altVars := altVars, altRHSs := altRHSs } -- Return true if `stx` is a term occurring in the RHS of the induction/cases tactic private def isTermRHS (rhs : Syntax) : Bool := rhs.isOfKind `Lean.Parser.Term.namedHole || rhs.isOfKind `Lean.Parser.Term.hole -private def processResult (ref : Syntax) (altRHSs : Array Syntax) (result : Array Meta.InductionSubgoal) : TacticM Unit := do +private def processResult (altRHSs : Array Syntax) (result : Array Meta.InductionSubgoal) : TacticM Unit := do if altRHSs.isEmpty then setGoals $ result.toList.map $ fun s => s.mvarId else do unless (altRHSs.size == result.size) $ - throwError ref ("mistmatch on the number of subgoals produced (" ++ toString result.size ++ ") and " ++ - "alternatives provided (" ++ toString altRHSs.size ++ ")"); + throwError ("mistmatch on the number of subgoals produced (" ++ toString result.size ++ ") and " ++ + "alternatives provided (" ++ toString altRHSs.size ++ ")"); gs ← result.size.foldM (fun i gs => do let subgoal := result.get! i; let rhs := altRHSs.get! i; let ref := rhs; let mvarId := subgoal.mvarId; - if isTermRHS rhs then withMVarContext mvarId $ do + if isTermRHS rhs then withMVarContext mvarId $ withRef rhs do mvarDecl ← getMVarDecl mvarId; val ← elabTerm rhs mvarDecl.type; - val ← ensureHasType rhs mvarDecl.type val; + val ← ensureHasType mvarDecl.type val; assignExprMVar mvarId val; - gs' ← collectMVars rhs val; + gs' ← collectMVars val; tagUntaggedGoals mvarDecl.userName `induction gs'; pure (gs ++ gs') else do setGoals [mvarId]; evalTactic rhs; - done ref; + done; pure gs) []; setGoals gs @[builtinTactic «induction»] def evalInduction : Tactic := -fun stx => focusAux stx $ do +fun stx => focusAux $ do let h? := getAuxHypothesisName stx; - major ← elabMajor stx h? (getMajor stx); - major ← generalizeMajor stx major; + major ← elabMajor h? (getMajor stx); + major ← generalizeMajor major; n ← generalizeVars stx major; recInfo ← getRecInfo stx major; - (mvarId, _) ← getMainGoal stx; - result ← liftMetaM stx $ Meta.induction mvarId major.fvarId! recInfo.recName recInfo.altVars; - processResult stx recInfo.altRHSs result + (mvarId, _) ← getMainGoal; + result ← liftMetaM $ Meta.induction mvarId major.fvarId! recInfo.recName recInfo.altVars; + processResult recInfo.altRHSs result -private partial def checkCasesResultAux (ref : Syntax) (casesResult : Array Meta.CasesSubgoal) (ctorNames : Array Name) (altRHSs : Array Syntax) +private partial def checkCasesResultAux (casesResult : Array Meta.CasesSubgoal) (ctorNames : Array Name) (altRHSs : Array Syntax) : Nat → Nat → TacticM Unit | i, j => if h : j < altRHSs.size then do @@ -288,32 +289,32 @@ private partial def checkCasesResultAux (ref : Syntax) (casesResult : Array Meta if ctorName == subgoal.ctorName then checkCasesResultAux (i+1) (j+1) else - throwError ref ("alternative for '" ++ subgoal.ctorName ++ "' has not been provided") + throwError ("alternative for '" ++ subgoal.ctorName ++ "' has not been provided") else - throwError ref ("alternative for '" ++ ctorName ++ "' is not needed") + throwError ("alternative for '" ++ ctorName ++ "' is not needed") else if h : i < casesResult.size then let subgoal := casesResult.get ⟨i, h⟩; - throwError ref ("alternative for '" ++ subgoal.ctorName ++ "' has not been provided") + throwError ("alternative for '" ++ subgoal.ctorName ++ "' has not been provided") else pure () -private def checkCasesResult (ref : Syntax) (casesResult : Array Meta.CasesSubgoal) (ctorNames : Array Name) (altRHSs : Array Syntax) : TacticM Unit := -unless altRHSs.isEmpty $ checkCasesResultAux ref casesResult ctorNames altRHSs 0 0 +private def checkCasesResult (casesResult : Array Meta.CasesSubgoal) (ctorNames : Array Name) (altRHSs : Array Syntax) : TacticM Unit := +unless altRHSs.isEmpty $ checkCasesResultAux casesResult ctorNames altRHSs 0 0 @[builtinTactic «cases»] def evalCases : Tactic := -fun stx => focusAux stx $ do +fun stx => focusAux $ do -- parser! nonReservedSymbol "cases " >> majorPremise >> withAlts let h? := getAuxHypothesisName stx; - major ← elabMajor stx h? (getMajor stx); - major ← generalizeMajor stx major; - (mvarId, _) ← getMainGoal stx; + major ← elabMajor h? (getMajor stx); + major ← generalizeMajor major; + (mvarId, _) ← getMainGoal; let withAlts := stx.getArg 2; - (recInfo, ctorNames) ← getRecInfoDefault stx major withAlts true; - result ← liftMetaM stx $ Meta.cases mvarId major.fvarId! recInfo.altVars; - checkCasesResult stx result ctorNames recInfo.altRHSs; + (recInfo, ctorNames) ← getRecInfoDefault major withAlts true; + result ← liftMetaM $ Meta.cases mvarId major.fvarId! recInfo.altVars; + checkCasesResult result ctorNames recInfo.altRHSs; let result := result.map (fun s => s.toInductionSubgoal); let altRHSs := recInfo.altRHSs.filter $ fun stx => !stx.isMissing; - processResult stx altRHSs result + processResult altRHSs result end Tactic end Elab diff --git a/stage0/src/Lean/Elab/Tactic/Injection.lean b/stage0/src/Lean/Elab/Tactic/Injection.lean index 4fa21ef4d9..1ac6f0e232 100644 --- a/stage0/src/Lean/Elab/Tactic/Injection.lean +++ b/stage0/src/Lean/Elab/Tactic/Injection.lean @@ -24,7 +24,7 @@ fun stx => do -- parser! nonReservedSymbol "injection " >> termParser >> withIds fvarId ← elabAsFVar (stx.getArg 1); let ids := getInjectionNewIds (stx.getArg 2); - liftMetaTactic stx $ fun mvarId => do + liftMetaTactic $ fun mvarId => do r ← Meta.injection mvarId fvarId ids (!ids.isEmpty); match r with | Meta.InjectionResult.solved => do checkUnusedIds mvarId ids; pure [] diff --git a/stage0/src/Lean/Elab/Term.lean b/stage0/src/Lean/Elab/Term.lean index e34a378799..2cfce62bfe 100644 --- a/stage0/src/Lean/Elab/Term.lean +++ b/stage0/src/Lean/Elab/Term.lean @@ -44,6 +44,7 @@ structure Context extends Meta.Context := (errToSorry : Bool := true) /- If `macroStackAtErr == true`, we include it in error messages. -/ (macroStackAtErr : Bool := true) +(ref : Syntax := Syntax.missing) /-- We use synthetic metavariables as placeholders for pending elaboration steps. -/ inductive SyntheticMVarKind @@ -145,22 +146,33 @@ instance monadLog : MonadLog TermElabM := addContext := addContext, logMessage := fun msg => modify $ fun s => { s with messages := s.messages.add msg } } +/- Execute `x` using using `ref` as the default Syntax for providing position information to error messages. -/ +@[inline] def withRef {α} (ref : Syntax) (x : TermElabM α) : TermElabM α := do +adaptReader (fun (ctx : Context) => { ctx with ref := ref }) x + +def getCurrRef : TermElabM Syntax := do +ctx ← read; pure ctx.ref + /-- Throws an error with the given `msgData` and extracting position information from `ref`. If `ref` does not contain position information, then use `cmdPos` -/ -def throwError {α} (ref : Syntax) (msgData : MessageData) : TermElabM α := do +def throwErrorAt {α} (ref : Syntax) (msgData : MessageData) : TermElabM α := do ctx ← read; let ref := getBetterRef ref ctx.macroStack; let msgData := if ctx.macroStackAtErr then addMacroStack msgData ctx.macroStack else msgData; msg ← mkMessage msgData MessageSeverity.error ref; throw (Exception.ex (Elab.Exception.error msg)) +def throwError {α} (msgData : MessageData) : TermElabM α := do +ref ← getCurrRef; +throwErrorAt ref msgData + def throwUnsupportedSyntax {α} : TermElabM α := throw (Exception.ex Elab.Exception.unsupportedSyntax) -@[inline] def withIncRecDepth {α} (ref : Syntax) (x : TermElabM α) : TermElabM α := do +@[inline] def withIncRecDepth {α} (x : TermElabM α) : TermElabM α := do ctx ← read; -when (ctx.currRecDepth == ctx.maxRecDepth) $ throwError ref maxRecDepthErrorMessage; +when (ctx.currRecDepth == ctx.maxRecDepth) $ throwError maxRecDepthErrorMessage; adaptReader (fun (ctx : Context) => { ctx with currRecDepth := ctx.currRecDepth + 1 }) x protected def getCurrMacroScope : TermElabM MacroScope := do ctx ← read; pure ctx.currMacroScope @@ -211,101 +223,104 @@ logInfo ref $ MessageData.withContext { env := s.env, mctx := s.mctx, lctx := ctx.lctx, opts := ctx.config.opts } $ MessageData.tagged cls msg -@[inline] def trace (cls : Name) (ref : Syntax) (msg : Unit → MessageData) : TermElabM Unit := do +@[inline] def trace (cls : Name) (msg : Unit → MessageData) : TermElabM Unit := do opts ← getOptions; +ref ← getCurrRef; when (checkTraceOption opts cls) $ logTrace cls ref (msg ()) def logDbgTrace (msg : MessageData) : TermElabM Unit := do -trace `Elab.debug Syntax.missing $ fun _ => msg +trace `Elab.debug $ fun _ => msg /-- For testing `TermElabM` methods. The #eval command will sign the error. -/ def throwErrorIfErrors : TermElabM Unit := do s ← get; when s.messages.hasErrors $ - throwError Syntax.missing "Error(s)" + throwError "Error(s)" @[inline] def traceAtCmdPos (cls : Name) (msg : Unit → MessageData) : TermElabM Unit := -trace cls Syntax.missing msg +withRef Syntax.missing $ trace cls msg def dbgTrace {α} [HasToString α] (a : α) : TermElabM Unit := _root_.dbgTrace (toString a) $ fun _ => pure () /-- Auxiliary function for `liftMetaM` -/ -private def mkMessageAux (ctx : Context) (ref : Syntax) (msgData : MessageData) (severity : MessageSeverity) : Message := -mkMessageCore ctx.fileName ctx.fileMap msgData severity (ref.getPos.getD ctx.cmdPos) +private def mkMessageAux (ctx : Context) (msgData : MessageData) (severity : MessageSeverity) : Message := +mkMessageCore ctx.fileName ctx.fileMap msgData severity (ctx.ref.getPos.getD ctx.cmdPos) /-- Auxiliary function for `liftMetaM` -/ -private def fromMetaException (ctx : Context) (ref : Syntax) (ex : Meta.Exception) : Exception := +private def fromMetaException (ctx : Context) (ex : Meta.Exception) : Exception := -- We use `ref` stored in `ex` if it contains position information let ref := match ex.getRef.getPos with | some _ => ex.getRef - | none => ref; -Exception.ex $ Elab.Exception.error $ mkMessageAux ctx ref ex.toMessageData MessageSeverity.error + | none => ctx.ref; +Exception.ex $ Elab.Exception.error $ mkMessageAux ctx ex.toMessageData MessageSeverity.error /-- Auxiliary function for `liftMetaM` -/ -private def fromMetaState (ref : Syntax) (ctx : Context) (s : State) (newS : Meta.State) (oldTraceState : TraceState) : State := +private def fromMetaState (ctx : Context) (s : State) (newS : Meta.State) (oldTraceState : TraceState) : State := let traces := newS.traceState.traces; -let messages := traces.foldl (fun (messages : MessageLog) trace => messages.add (mkMessageAux ctx ref trace MessageSeverity.information)) s.messages; +let messages := traces.foldl (fun (messages : MessageLog) trace => messages.add (mkMessageAux ctx trace MessageSeverity.information)) s.messages; { s with toState := { newS with traceState := oldTraceState }, messages := messages } -@[inline] def liftMetaM {α} (ref : Syntax) (x : MetaM α) : TermElabM α := +@[inline] def liftMetaM {α} (x : MetaM α) : TermElabM α := fun ctx s => let oldTraceState := s.traceState; match x ctx.toContext { s.toState with traceState := {} } with - | EStateM.Result.ok a newS => EStateM.Result.ok a (fromMetaState ref ctx s newS oldTraceState) - | EStateM.Result.error ex newS => EStateM.Result.error (fromMetaException ctx ref ex) (fromMetaState ref ctx s newS oldTraceState) + | EStateM.Result.ok a newS => EStateM.Result.ok a (fromMetaState ctx s newS oldTraceState) + | EStateM.Result.error ex newS => EStateM.Result.error (fromMetaException ctx ex) (fromMetaState ctx s newS oldTraceState) -def ppGoal (ref : Syntax) (mvarId : MVarId) : TermElabM Format := liftMetaM ref $ Meta.ppGoal mvarId -def isType (ref : Syntax) (e : Expr) : TermElabM Bool := liftMetaM ref $ Meta.isType e -def isTypeFormer (ref : Syntax) (e : Expr) : TermElabM Bool := liftMetaM ref $ Meta.isTypeFormer e -def isTypeFormerType (ref : Syntax) (e : Expr) : TermElabM Bool := liftMetaM ref $ Meta.isTypeFormerType e -def isDefEqNoConstantApprox (ref : Syntax) (t s : Expr) : TermElabM Bool := liftMetaM ref $ Meta.approxDefEq $ Meta.isDefEq t s -def isDefEq (ref : Syntax) (t s : Expr) : TermElabM Bool := liftMetaM ref $ Meta.fullApproxDefEq $ Meta.isDefEq t s -def isLevelDefEq (ref : Syntax) (u v : Level) : TermElabM Bool := liftMetaM ref $ Meta.isLevelDefEq u v -def inferType (ref : Syntax) (e : Expr) : TermElabM Expr := liftMetaM ref $ Meta.inferType e -def whnf (ref : Syntax) (e : Expr) : TermElabM Expr := liftMetaM ref $ Meta.whnf e -def whnfForall (ref : Syntax) (e : Expr) : TermElabM Expr := liftMetaM ref $ Meta.whnfForall e -def whnfCore (ref : Syntax) (e : Expr) : TermElabM Expr := liftMetaM ref $ Meta.whnfCore e -def unfoldDefinition? (ref : Syntax) (e : Expr) : TermElabM (Option Expr) := liftMetaM ref $ Meta.unfoldDefinition? e -def instantiateMVars (ref : Syntax) (e : Expr) : TermElabM Expr := liftMetaM ref $ Meta.instantiateMVars e -def instantiateLevelMVars (ref : Syntax) (u : Level) : TermElabM Level := liftMetaM ref $ Meta.instantiateLevelMVars u -def isClass (ref : Syntax) (t : Expr) : TermElabM (Option Name) := liftMetaM ref $ Meta.isClass t -def mkFreshId : TermElabM Name := liftMetaM Syntax.missing Meta.mkFreshId -def mkFreshLevelMVar (ref : Syntax) : TermElabM Level := liftMetaM ref $ Meta.mkFreshLevelMVar -def mkFreshExprMVar (ref : Syntax) (type? : Option Expr := none) (kind : MetavarKind := MetavarKind.natural) (userName? : Name := Name.anonymous) : TermElabM Expr := +def ppGoal (mvarId : MVarId) : TermElabM Format := liftMetaM $ Meta.ppGoal mvarId +def isType (e : Expr) : TermElabM Bool := liftMetaM $ Meta.isType e +def isTypeFormer (e : Expr) : TermElabM Bool := liftMetaM $ Meta.isTypeFormer e +def isTypeFormerType (e : Expr) : TermElabM Bool := liftMetaM $ Meta.isTypeFormerType e +def isDefEqNoConstantApprox (t s : Expr) : TermElabM Bool := liftMetaM $ Meta.approxDefEq $ Meta.isDefEq t s +def isDefEq (t s : Expr) : TermElabM Bool := liftMetaM $ Meta.fullApproxDefEq $ Meta.isDefEq t s +def isLevelDefEq (u v : Level) : TermElabM Bool := liftMetaM $ Meta.isLevelDefEq u v +def inferType (e : Expr) : TermElabM Expr := liftMetaM $ Meta.inferType e +def whnf (e : Expr) : TermElabM Expr := liftMetaM $ Meta.whnf e +def whnfForall (e : Expr) : TermElabM Expr := liftMetaM $ Meta.whnfForall e +def whnfCore (e : Expr) : TermElabM Expr := liftMetaM $ Meta.whnfCore e +def unfoldDefinition? (e : Expr) : TermElabM (Option Expr) := liftMetaM $ Meta.unfoldDefinition? e +def instantiateMVars (e : Expr) : TermElabM Expr := liftMetaM $ Meta.instantiateMVars e +def instantiateLevelMVars (u : Level) : TermElabM Level := liftMetaM $ Meta.instantiateLevelMVars u +def isClass (t : Expr) : TermElabM (Option Name) := liftMetaM $ Meta.isClass t +def mkFreshId : TermElabM Name := liftMetaM Meta.mkFreshId +def mkFreshLevelMVar : TermElabM Level := liftMetaM $ Meta.mkFreshLevelMVar +def mkFreshExprMVar (type? : Option Expr := none) (kind : MetavarKind := MetavarKind.natural) (userName? : Name := Name.anonymous) : TermElabM Expr := match type? with -| some type => liftMetaM ref $ Meta.mkFreshExprMVar type userName? kind -| none => liftMetaM ref $ do u ← Meta.mkFreshLevelMVar; type ← Meta.mkFreshExprMVar (mkSort u); Meta.mkFreshExprMVar type userName? kind -def mkFreshExprMVarWithId (ref : Syntax) (mvarId : MVarId) (type? : Option Expr := none) (kind : MetavarKind := MetavarKind.natural) (userName? : Name := Name.anonymous) : TermElabM Expr := +| some type => liftMetaM $ Meta.mkFreshExprMVar type userName? kind +| none => liftMetaM $ do u ← Meta.mkFreshLevelMVar; type ← Meta.mkFreshExprMVar (mkSort u); Meta.mkFreshExprMVar type userName? kind +def mkFreshExprMVarWithId (mvarId : MVarId) (type? : Option Expr := none) (kind : MetavarKind := MetavarKind.natural) (userName? : Name := Name.anonymous) + : TermElabM Expr := match type? with -| some type => liftMetaM ref $ Meta.mkFreshExprMVarWithId mvarId type userName? kind -| none => liftMetaM ref $ do u ← Meta.mkFreshLevelMVar; type ← Meta.mkFreshExprMVar (mkSort u); Meta.mkFreshExprMVarWithId mvarId type userName? kind -def mkFreshTypeMVar (ref : Syntax) (kind : MetavarKind := MetavarKind.natural) (userName? : Name := Name.anonymous) : TermElabM Expr := -liftMetaM ref $ do u ← Meta.mkFreshLevelMVar; Meta.mkFreshExprMVar (mkSort u) userName? kind -def getLevel (ref : Syntax) (type : Expr) : TermElabM Level := liftMetaM ref $ Meta.getLevel type -def mkForall (ref : Syntax) (xs : Array Expr) (e : Expr) : TermElabM Expr := liftMetaM ref $ Meta.mkForall xs e -def mkForallUsedOnly (ref : Syntax) (xs : Array Expr) (e : Expr) : TermElabM (Expr × Nat) := liftMetaM ref $ Meta.mkForallUsedOnly xs e -def mkLambda (ref : Syntax) (xs : Array Expr) (e : Expr) : TermElabM Expr := liftMetaM ref $ Meta.mkLambda xs e -def mkLet (ref : Syntax) (x : Expr) (e : Expr) : TermElabM Expr := mkLambda ref #[x] e -def trySynthInstance (ref : Syntax) (type : Expr) : TermElabM (LOption Expr) := liftMetaM ref $ Meta.trySynthInstance type -def mkAppM (ref : Syntax) (constName : Name) (args : Array Expr) : TermElabM Expr := liftMetaM ref $ Meta.mkAppM constName args -def mkExpectedTypeHint (ref : Syntax) (e : Expr) (expectedType : Expr) : TermElabM Expr := liftMetaM ref $ Meta.mkExpectedTypeHint e expectedType -def decLevel? (ref : Syntax) (u : Level) : TermElabM (Option Level) := liftMetaM ref $ Meta.decLevel? u +| some type => liftMetaM $ Meta.mkFreshExprMVarWithId mvarId type userName? kind +| none => liftMetaM $ do u ← Meta.mkFreshLevelMVar; type ← Meta.mkFreshExprMVar (mkSort u); Meta.mkFreshExprMVarWithId mvarId type userName? kind +def mkFreshTypeMVar (kind : MetavarKind := MetavarKind.natural) (userName? : Name := Name.anonymous) : TermElabM Expr := +liftMetaM $ do u ← Meta.mkFreshLevelMVar; Meta.mkFreshExprMVar (mkSort u) userName? kind +def getLevel (type : Expr) : TermElabM Level := liftMetaM $ Meta.getLevel type +def getLocalDecl (fvarId : FVarId) : TermElabM LocalDecl := liftMetaM $ Meta.getLocalDecl fvarId +def mkForall (xs : Array Expr) (e : Expr) : TermElabM Expr := liftMetaM $ Meta.mkForall xs e +def mkForallUsedOnly (xs : Array Expr) (e : Expr) : TermElabM (Expr × Nat) := liftMetaM $ Meta.mkForallUsedOnly xs e +def mkLambda (xs : Array Expr) (e : Expr) : TermElabM Expr := liftMetaM $ Meta.mkLambda xs e +def mkLet (x : Expr) (e : Expr) : TermElabM Expr := mkLambda #[x] e +def trySynthInstance (type : Expr) : TermElabM (LOption Expr) := liftMetaM $ Meta.trySynthInstance type +def mkAppM (constName : Name) (args : Array Expr) : TermElabM Expr := liftMetaM $ Meta.mkAppM constName args +def mkExpectedTypeHint (e : Expr) (expectedType : Expr) : TermElabM Expr := liftMetaM $ Meta.mkExpectedTypeHint e expectedType +def decLevel? (u : Level) : TermElabM (Option Level) := liftMetaM $ Meta.decLevel? u -def decLevel (ref : Syntax) (u : Level) : TermElabM Level := do -u? ← decLevel? ref u; +def decLevel (u : Level) : TermElabM Level := do +u? ← decLevel? u; match u? with | some u => pure u -| none => throwError ref ("invalid universe level, " ++ u ++ " is not greater than 0") +| none => throwError ("invalid universe level, " ++ u ++ " is not greater than 0") /- This function is useful for inferring universe level parameters for function that take arguments such as `{α : Type u}`. Recall that `Type u` is `Sort (u+1)` in Lean. Thus, given `α`, we must infer its universe level, and then decrement 1 to obtain `u`. -/ -def getDecLevel (ref : Syntax) (type : Expr) : TermElabM Level := do -u ← getLevel ref type; -decLevel ref u +def getDecLevel (type : Expr) : TermElabM Level := do +u ← getLevel type; +decLevel u @[inline] def savingMCtx {α} (x : TermElabM α) : TermElabM α := do mctx ← getMCtx; @@ -337,7 +352,8 @@ adaptReader (fun (ctx : Context) => { ctx with macroStack := { before := beforeS /- Add the given metavariable to the list of pending synthetic metavariables. The method `synthesizeSyntheticMVars` is used to process the metavariables on this list. -/ -def registerSyntheticMVar (ref : Syntax) (mvarId : MVarId) (kind : SyntheticMVarKind) : TermElabM Unit := +def registerSyntheticMVar (mvarId : MVarId) (kind : SyntheticMVarKind) : TermElabM Unit := do +ref ← getCurrRef; modify $ fun s => { s with syntheticMVars := { mvarId := mvarId, ref := ref, kind := kind } :: s.syntheticMVars } /- @@ -439,29 +455,29 @@ let id := s.ngen.curr; modify $ fun s => { s with ngen := s.ngen.next }; pure id -def withLocalDecl {α} (ref : Syntax) (n : Name) (binderInfo : BinderInfo) (type : Expr) (k : Expr → TermElabM α) : TermElabM α := do +def withLocalDecl {α} (n : Name) (binderInfo : BinderInfo) (type : Expr) (k : Expr → TermElabM α) : TermElabM α := do fvarId ← mkFreshFVarId; ctx ← read; let lctx := ctx.lctx.mkLocalDecl fvarId n type binderInfo; let localInsts := ctx.localInstances; let fvar := mkFVar fvarId; -c? ← isClass ref type; +c? ← isClass type; match c? with | some c => adaptReader (fun (ctx : Context) => { ctx with lctx := lctx, localInstances := localInsts.push { className := c, fvar := fvar } }) $ k fvar | none => adaptReader (fun (ctx : Context) => { ctx with lctx := lctx }) $ k fvar -def withLetDecl {α} (ref : Syntax) (n : Name) (type : Expr) (val : Expr) (k : Expr → TermElabM α) : TermElabM α := do +def withLetDecl {α} (n : Name) (type : Expr) (val : Expr) (k : Expr → TermElabM α) : TermElabM α := do fvarId ← mkFreshFVarId; ctx ← read; let lctx := ctx.lctx.mkLetDecl fvarId n type val; let localInsts := ctx.localInstances; let fvar := mkFVar fvarId; -c? ← isClass ref type; +c? ← isClass type; match c? with | some c => adaptReader (fun (ctx : Context) => { ctx with lctx := lctx, localInstances := localInsts.push { className := c, fvar := fvar } }) $ k fvar | none => adaptReader (fun (ctx : Context) => { ctx with lctx := lctx }) $ k fvar -def throwTypeMismatchError {α} (ref : Syntax) (expectedType : Expr) (eType : Expr) (e : Expr) +def throwTypeMismatchError {α} (expectedType : Expr) (eType : Expr) (e : Expr) (f? : Option Expr := none) (extraMsg? : Option MessageData := none) : TermElabM α := let extraMsg : MessageData := match extraMsg? with | none => Format.nil @@ -473,10 +489,10 @@ match f? with ++ Format.line ++ "has type" ++ indentExpr eType ++ Format.line ++ "but it is expected to have type" ++ indentExpr expectedType ++ extraMsg; - throwError ref msg + throwError msg | some f => do env ← getEnv; mctx ← getMCtx; lctx ← getLCtx; opts ← getOptions; - throwError ref $ Meta.Exception.mkAppTypeMismatchMessage f e { env := env, mctx := mctx, lctx := lctx, opts := opts } ++ extraMsg + throwError $ Meta.Exception.mkAppTypeMismatchMessage f e { env := env, mctx := mctx, lctx := lctx, opts := opts } ++ extraMsg @[inline] def withoutMacroStackAtErr {α} (x : TermElabM α) : TermElabM α := adaptReader (fun (ctx : Context) => { ctx with macroStackAtErr := false }) x @@ -487,24 +503,24 @@ adaptReader (fun (ctx : Context) => { ctx with macroStackAtErr := false }) x Return `true` if the instance was synthesized successfully, and `false` if the instance contains unassigned metavariables that are blocking the type class resolution procedure. Throw an exception if resolution or assignment irrevocably fails. -/ -def synthesizeInstMVarCore (ref : Syntax) (instMVar : MVarId) : TermElabM Bool := do +def synthesizeInstMVarCore (instMVar : MVarId) : TermElabM Bool := do instMVarDecl ← getMVarDecl instMVar; let type := instMVarDecl.type; -type ← instantiateMVars ref type; -result ← trySynthInstance ref type; +type ← instantiateMVars type; +result ← trySynthInstance type; match result with | LOption.some val => do condM (isExprMVarAssigned instMVar) - (do oldVal ← instantiateMVars ref (mkMVar instMVar); - unlessM (isDefEq ref oldVal val) $ - throwError ref $ + (do oldVal ← instantiateMVars (mkMVar instMVar); + unlessM (isDefEq oldVal val) $ + throwError $ "synthesized type class instance is not definitionally equal to expression " ++ "inferred by typing rules, synthesized" ++ indentExpr val ++ Format.line ++ "inferred" ++ indentExpr oldVal) (assignExprMVar instMVar val); pure true | LOption.undef => pure false -- we will try later -| LOption.none => throwError ref ("failed to synthesize instance" ++ indentExpr type) +| LOption.none => throwError ("failed to synthesize instance" ++ indentExpr type) /-- Try to apply coercion to make sure `e` has type `expectedType`. @@ -513,26 +529,26 @@ match result with class CoeT (α : Sort u) (a : α) (β : Sort v) abbrev coe {α : Sort u} {β : Sort v} (a : α) [CoeT α a β] : β ``` -/ -def tryCoe (ref : Syntax) (expectedType : Expr) (eType : Expr) (e : Expr) (f? : Option Expr) : TermElabM Expr := -condM (isDefEq ref expectedType eType) (pure e) $ do -u ← getLevel ref eType; -v ← getLevel ref expectedType; +def tryCoe (expectedType : Expr) (eType : Expr) (e : Expr) (f? : Option Expr) : TermElabM Expr := +condM (isDefEq expectedType eType) (pure e) $ do +u ← getLevel eType; +v ← getLevel expectedType; let coeTInstType := mkAppN (mkConst `CoeT [u, v]) #[eType, e, expectedType]; -mvar ← mkFreshExprMVar ref coeTInstType MetavarKind.synthetic; +mvar ← mkFreshExprMVar coeTInstType MetavarKind.synthetic; let eNew := mkAppN (mkConst `coe [u, v]) #[eType, expectedType, e, mvar]; let mvarId := mvar.mvarId!; catch (withoutMacroStackAtErr $ do - unlessM (synthesizeInstMVarCore ref mvarId) $ - registerSyntheticMVar ref mvarId (SyntheticMVarKind.coe expectedType eType e f?); + unlessM (synthesizeInstMVarCore mvarId) $ + registerSyntheticMVar mvarId (SyntheticMVarKind.coe expectedType eType e f?); pure eNew) (fun ex => match ex with - | Exception.ex (Elab.Exception.error errMsg) => throwTypeMismatchError ref expectedType eType e f? errMsg.data - | _ => throwTypeMismatchError ref expectedType eType e f?) + | Exception.ex (Elab.Exception.error errMsg) => throwTypeMismatchError expectedType eType e f? errMsg.data + | _ => throwTypeMismatchError expectedType eType e f?) -private def isTypeApp? (ref : Syntax) (type : Expr) : TermElabM (Option (Expr × Expr)) := do -type ← withReducible $ whnf ref type; +private def isTypeApp? (type : Expr) : TermElabM (Option (Expr × Expr)) := do +type ← withReducible $ whnf type; match type with | Expr.app m α _ => pure (some (m, α)) | _ => pure none @@ -542,37 +558,37 @@ structure IsMonadResult := (α : Expr) (inst : Expr) -private def isMonad? (ref : Syntax) (type : Expr) : TermElabM (Option IsMonadResult) := do -type ← withReducible $ whnf ref type; +private def isMonad? (type : Expr) : TermElabM (Option IsMonadResult) := do +type ← withReducible $ whnf type; match type with | Expr.app m α _ => catch (do - monadType ← mkAppM ref `Monad #[m]; - result ← trySynthInstance ref monadType; + monadType ← mkAppM `Monad #[m]; + result ← trySynthInstance monadType; match result with | LOption.some inst => pure (some { m := m, α := α, inst := inst }) | _ => pure none) (fun _ => pure none) | _ => pure none -def synthesizeInst (ref : Syntax) (type : Expr) : TermElabM Expr := do -type ← instantiateMVars ref type; -result ← trySynthInstance ref type; +def synthesizeInst (type : Expr) : TermElabM Expr := do +type ← instantiateMVars type; +result ← trySynthInstance type; match result with | LOption.some val => pure val -| LOption.undef => throwError ref ("failed to synthesize instance" ++ indentExpr type) -| LOption.none => throwError ref ("failed to synthesize instance" ++ indentExpr type) +| LOption.undef => throwError ("failed to synthesize instance" ++ indentExpr type) +| LOption.none => throwError ("failed to synthesize instance" ++ indentExpr type) /-- Try to coerce `a : α` into `m β` by first coercing `a : α` into ‵β`, and then using `pure`. The method is only applied if the head of `α` nor ‵β` is not a metavariable. -/ -private def tryPureCoe? (ref : Syntax) (m β α a : Expr) : TermElabM (Option Expr) := +private def tryPureCoe? (m β α a : Expr) : TermElabM (Option Expr) := if β.getAppFn.isMVar || α.getAppFn.isMVar then pure none else catch (do - aNew ← tryCoe ref β α a none; - aNew ← liftMetaM ref $ Meta.mkPure m aNew; + aNew ← tryCoe β α a none; + aNew ← liftMetaM $ Meta.mkPure m aNew; pure $ some aNew) (fun _ => pure none) @@ -633,46 +649,46 @@ On the other hand, TC can easily solve `[HasLiftT IO (StateT Nat IO)]` since this goal does not contain any metavariables. And then, we convert `g x` into `liftM $ g x`. -/ -def tryLiftAndCoe (ref : Syntax) (expectedType : Expr) (eType : Expr) (e : Expr) (f? : Option Expr) : TermElabM Expr := do -eType ← instantiateMVars ref eType; -some ⟨n, β, monadInst⟩ ← isMonad? ref expectedType | tryCoe ref expectedType eType e f?; -β ← instantiateMVars ref β; -eNew? ← tryPureCoe? ref n β eType e; +def tryLiftAndCoe (expectedType : Expr) (eType : Expr) (e : Expr) (f? : Option Expr) : TermElabM Expr := do +eType ← instantiateMVars eType; +some ⟨n, β, monadInst⟩ ← isMonad? expectedType | tryCoe expectedType eType e f?; +β ← instantiateMVars β; +eNew? ← tryPureCoe? n β eType e; match eNew? with | some eNew => pure eNew | none => do -some (m, α) ← isTypeApp? ref eType | tryCoe ref expectedType eType e f?; -condM (isDefEq ref m n) (tryCoe ref expectedType eType e f?) $ +some (m, α) ← isTypeApp? eType | tryCoe expectedType eType e f?; +condM (isDefEq m n) (tryCoe expectedType eType e f?) $ catch (do -- Construct lift from `m` to `n` - hasMonadLiftType ← mkAppM ref `HasMonadLiftT #[m, n]; - hasMonadLiftVal ← synthesizeInst ref hasMonadLiftType; - u_1 ← getDecLevel ref α; - u_2 ← getDecLevel ref eType; - u_3 ← getDecLevel ref expectedType; + hasMonadLiftType ← mkAppM `HasMonadLiftT #[m, n]; + hasMonadLiftVal ← synthesizeInst hasMonadLiftType; + u_1 ← getDecLevel α; + u_2 ← getDecLevel eType; + u_3 ← getDecLevel expectedType; let eNew := mkAppN (Lean.mkConst `liftM [u_1, u_2, u_3]) #[m, n, hasMonadLiftVal, α, e]; - eNewType ← inferType ref eNew; - condM (isDefEq ref expectedType eNewType) + eNewType ← inferType eNew; + condM (isDefEq expectedType eNewType) (pure eNew) -- approach 2 worked (do - u ← getLevel ref α; - v ← getLevel ref β; + u ← getLevel α; + v ← getLevel β; let coeTInstType := Lean.mkForall `a BinderInfo.default α $ mkAppN (mkConst `CoeT [u, v]) #[α, mkBVar 0, β]; - coeTInstVal ← synthesizeInst ref coeTInstType; + coeTInstVal ← synthesizeInst coeTInstType; let eNew := mkAppN (Lean.mkConst `liftCoeM [u_1, u_2, u_3]) #[m, n, α, β, hasMonadLiftVal, coeTInstVal, monadInst, e]; - eNewType ← inferType ref eNew; - condM (isDefEq ref expectedType eNewType) + eNewType ← inferType eNew; + condM (isDefEq expectedType eNewType) (pure eNew) -- approach 3 worked - (throwTypeMismatchError ref expectedType eType e f?))) - (fun _ => throwTypeMismatchError ref expectedType eType e f?) + (throwTypeMismatchError expectedType eType e f?))) + (fun _ => throwTypeMismatchError expectedType eType e f?) /-- If `expectedType?` is `some t`, then ensure `t` and `eType` are definitionally equal. If they are not, then try coercions. Argument `f?` is used only for generating error messages. -/ -def ensureHasTypeAux (ref : Syntax) (expectedType? : Option Expr) (eType : Expr) (e : Expr) (f? : Option Expr := none) : TermElabM Expr := +def ensureHasTypeAux (expectedType? : Option Expr) (eType : Expr) (e : Expr) (f? : Option Expr := none) : TermElabM Expr := match expectedType? with | none => pure e | some expectedType => @@ -712,23 +728,23 @@ match expectedType? with The `isDefEqNoConstantApprox` fails to unify the expected and inferred types. Then, `tryLiftAndCoe` first tries the monadic extensions, and then falls back to `isDefEq` which enables all approximations. -/ - condM (isDefEqNoConstantApprox ref eType expectedType) + condM (isDefEqNoConstantApprox eType expectedType) (pure e) - (tryLiftAndCoe ref expectedType eType e f?) + (tryLiftAndCoe expectedType eType e f?) /-- If `expectedType?` is `some t`, then ensure `t` and type of `e` are definitionally equal. If they are not, then try coercions. -/ -def ensureHasType (ref : Syntax) (expectedType? : Option Expr) (e : Expr) : TermElabM Expr := +def ensureHasType (expectedType? : Option Expr) (e : Expr) : TermElabM Expr := match expectedType? with | none => pure e -| _ => do eType ← inferType ref e; ensureHasTypeAux ref expectedType? eType e +| _ => do eType ← inferType e; ensureHasTypeAux expectedType? eType e -private def exceptionToSorry (ref : Syntax) (errMsg : Message) (expectedType? : Option Expr) : TermElabM Expr := do +private def exceptionToSorry (errMsg : Message) (expectedType? : Option Expr) : TermElabM Expr := do expectedType : Expr ← match expectedType? with - | none => mkFreshTypeMVar ref + | none => mkFreshTypeMVar | some expectedType => pure expectedType; -u ← getLevel ref expectedType; +u ← getLevel expectedType; -- TODO: should be `(sorryAx.{$u} $expectedType true) when we support antiquotations at that place let syntheticSorry := mkApp2 (mkConst `sorryAx [u]) expectedType (mkConst `Bool.true); unless errMsg.data.hasSyntheticSorry $ logMessage errMsg; @@ -749,10 +765,10 @@ match e? with | none => tryPostpone private def postponeElabTerm (stx : Syntax) (expectedType? : Option Expr) : TermElabM Expr := do -trace `Elab.postpone stx $ fun _ => stx ++ " : " ++ expectedType?; -mvar ← mkFreshExprMVar stx expectedType? MetavarKind.syntheticOpaque; +trace `Elab.postpone $ fun _ => stx ++ " : " ++ expectedType?; +mvar ← mkFreshExprMVar expectedType? MetavarKind.syntheticOpaque; ctx ← read; -registerSyntheticMVar stx mvar.mvarId! (SyntheticMVarKind.postponed ctx.macroStack); +withRef stx $ registerSyntheticMVar mvar.mvarId! (SyntheticMVarKind.postponed ctx.macroStack); pure mvar /- @@ -762,10 +778,10 @@ private def elabUsingElabFnsAux (s : State) (stx : Syntax) (expectedType? : Opti : List TermElab → TermElabM Expr | [] => do let refFmt := stx.prettyPrint; - throwError stx ("unexpected syntax" ++ MessageData.nest 2 (Format.line ++ refFmt)) + throwError ("unexpected syntax" ++ MessageData.nest 2 (Format.line ++ refFmt)) | (elabFn::elabFns) => catch (elabFn stx expectedType?) (fun ex => match ex with - | Exception.ex (Elab.Exception.error errMsg) => do ctx ← read; if ctx.errToSorry then exceptionToSorry stx errMsg expectedType? else throw ex + | Exception.ex (Elab.Exception.error errMsg) => do ctx ← read; if ctx.errToSorry then exceptionToSorry errMsg expectedType? else throw ex | Exception.ex Elab.Exception.unsupportedSyntax => do set s; elabUsingElabFnsAux elabFns | Exception.postpone => if catchExPostpone then do @@ -794,7 +810,7 @@ let table := (termElabAttribute.ext.getState s.env).table; let k := stx.getKind; match table.find? k with | some elabFns => elabUsingElabFnsAux s stx expectedType? catchExPostpone elabFns -| none => throwError stx ("elaboration function for '" ++ toString k ++ "' has not been implemented") +| none => throwError ("elaboration function for '" ++ toString k ++ "' has not been implemented") instance : MonadMacroAdapter TermElabM := { getEnv := getEnv, @@ -803,7 +819,7 @@ instance : MonadMacroAdapter TermElabM := setNextMacroScope := fun next => modify $ fun s => { s with nextMacroScope := next }, getCurrRecDepth := do ctx ← read; pure ctx.currRecDepth, getMaxRecDepth := do ctx ← read; pure ctx.maxRecDepth, - throwError := @throwError, + throwError := @throwErrorAt, throwUnsupportedSyntax := @throwUnsupportedSyntax} private def isExplicit (stx : Syntax) : Bool := @@ -839,7 +855,7 @@ def useImplicitLambda? (stx : Syntax) (expectedType? : Option Expr) : TermElabM if blockImplicitLambda stx then pure none else match expectedType? with | some expectedType => do - expectedType ← whnfForall stx expectedType; + expectedType ← whnfForall expectedType; match expectedType with | Expr.forallE _ _ _ c => pure $ if c.binderInfo.isExplicit then none else some expectedType | _ => pure $ none @@ -848,8 +864,8 @@ else match expectedType? with def elabImplicitLambdaAux (stx : Syntax) (catchExPostpone : Bool) (expectedType : Expr) (fvars : Array Expr) : TermElabM Expr := do body ← elabUsingElabFns stx expectedType catchExPostpone; -- body ← ensureHasType stx expectedType body; -r ← mkLambda stx fvars body; -trace `Elab.implicitForall stx $ fun _ => r; +r ← mkLambda fvars body; +trace `Elab.implicitForall $ fun _ => r; pure r partial def elabImplicitLambda (stx : Syntax) (catchExPostpone : Bool) : Expr → Array Expr → TermElabM Expr @@ -858,16 +874,16 @@ partial def elabImplicitLambda (stx : Syntax) (catchExPostpone : Bool) : Expr elabImplicitLambdaAux stx catchExPostpone type fvars else withFreshMacroScope $ do n ← MonadQuotation.addMacroScope n; - withLocalDecl stx n c.binderInfo d $ fun fvar => do - type ← whnfForall stx (b.instantiate1 fvar); + withLocalDecl n c.binderInfo d $ fun fvar => do + type ← whnfForall (b.instantiate1 fvar); elabImplicitLambda type (fvars.push fvar) | type, fvars => elabImplicitLambdaAux stx catchExPostpone type fvars /- Main loop for `elabTerm` -/ partial def elabTermAux (expectedType? : Option Expr) (catchExPostpone : Bool) (implicitLambda : Bool) : Syntax → TermElabM Expr -| stx => withFreshMacroScope $ withIncRecDepth stx $ do - trace `Elab.step stx $ fun _ => expectedType? ++ " " ++ stx; +| stx => withFreshMacroScope $ withIncRecDepth do + trace `Elab.step $ fun _ => expectedType? ++ " " ++ stx; s ← get; stxNew? ← catch (do newStx ← adaptMacro (getMacros s.env) stx; pure (some newStx)) @@ -896,7 +912,7 @@ partial def elabTermAux (expectedType? : Option Expr) (catchExPostpone : Bool) ( The option `catchExPostpone == false` is used to implement `resumeElabTerm` to prevent the creation of another synthetic metavariable when resuming the elaboration. -/ def elabTerm (stx : Syntax) (expectedType? : Option Expr) (catchExPostpone := true) : TermElabM Expr := -elabTermAux expectedType? catchExPostpone true stx +withRef stx $ elabTermAux expectedType? catchExPostpone true stx def elabTermWithoutImplicitLambdas (stx : Syntax) (expectedType? : Option Expr) (catchExPostpone := true) : TermElabM Expr := do elabTermAux expectedType? catchExPostpone false stx @@ -940,11 +956,11 @@ ctx ← read; let needReset := ctx.localInstances == mvarDecl.localInstances; withLCtx mvarDecl.lctx mvarDecl.localInstances $ resettingSynthInstanceCacheWhen needReset x -def mkInstMVar (ref : Syntax) (type : Expr) : TermElabM Expr := do -mvar ← mkFreshExprMVar ref type MetavarKind.synthetic; +def mkInstMVar (type : Expr) : TermElabM Expr := do +mvar ← mkFreshExprMVar type MetavarKind.synthetic; let mvarId := mvar.mvarId!; -unlessM (synthesizeInstMVarCore ref mvarId) $ - registerSyntheticMVar ref mvarId SyntheticMVarKind.typeClass; +unlessM (synthesizeInstMVarCore mvarId) $ + registerSyntheticMVar mvarId SyntheticMVarKind.typeClass; pure mvar /- @@ -953,61 +969,61 @@ pure mvar class CoeSort (α : Sort u) (β : outParam (Sort v)) abbrev coeSort {α : Sort u} {β : Sort v} (a : α) [CoeSort α β] : β ``` -/ -private def tryCoeSort (ref : Syntax) (α : Expr) (a : Expr) : TermElabM Expr := do -β ← mkFreshTypeMVar ref; -u ← getLevel ref α; -v ← getLevel ref β; +private def tryCoeSort (α : Expr) (a : Expr) : TermElabM Expr := do +β ← mkFreshTypeMVar; +u ← getLevel α; +v ← getLevel β; let coeSortInstType := mkAppN (Lean.mkConst `CoeSort [u, v]) #[α, β]; -mvar ← mkFreshExprMVar ref coeSortInstType MetavarKind.synthetic; +mvar ← mkFreshExprMVar coeSortInstType MetavarKind.synthetic; let mvarId := mvar.mvarId!; catch - (withoutMacroStackAtErr $ condM (synthesizeInstMVarCore ref mvarId) + (withoutMacroStackAtErr $ condM (synthesizeInstMVarCore mvarId) (pure $ mkAppN (Lean.mkConst `coeSort [u, v]) #[α, β, a, mvar]) - (throwError ref "type expected")) + (throwError "type expected")) (fun ex => match ex with - | Exception.ex (Elab.Exception.error errMsg) => throwError ref ("type expected" ++ Format.line ++ errMsg.data) - | _ => throwError ref "type expected") + | Exception.ex (Elab.Exception.error errMsg) => throwError ("type expected" ++ Format.line ++ errMsg.data) + | _ => throwError "type expected") /-- Make sure `e` is a type by inferring its type and making sure it is a `Expr.sort` or is unifiable with `Expr.sort`, or can be coerced into one. -/ -def ensureType (ref : Syntax) (e : Expr) : TermElabM Expr := -condM (isType ref e) +def ensureType (e : Expr) : TermElabM Expr := +condM (isType e) (pure e) (do - eType ← inferType ref e; - u ← mkFreshLevelMVar ref; - condM (isDefEq ref eType (mkSort u)) + eType ← inferType e; + u ← mkFreshLevelMVar; + condM (isDefEq eType (mkSort u)) (pure e) - (tryCoeSort ref eType e)) + (tryCoeSort eType e)) /-- Elaborate `stx` and ensure result is a type. -/ def elabType (stx : Syntax) : TermElabM Expr := do -u ← mkFreshLevelMVar stx; +u ← mkFreshLevelMVar; type ← elabTerm stx (mkSort u); -ensureType stx type +withRef stx $ ensureType type -def addDecl (ref : Syntax) (decl : Declaration) : TermElabM Unit := do +def addDecl (decl : Declaration) : TermElabM Unit := do env ← getEnv; match env.addDecl decl with | Except.ok env => setEnv env -| Except.error kex => do opts ← getOptions; throwError ref (kex.toMessageData opts) +| Except.error kex => do opts ← getOptions; throwError (kex.toMessageData opts) -def compileDecl (ref : Syntax) (decl : Declaration) : TermElabM Unit := do +def compileDecl (decl : Declaration) : TermElabM Unit := do env ← getEnv; opts ← getOptions; match env.compileDecl opts decl with | Except.ok env => setEnv env -| Except.error kex => throwError ref (kex.toMessageData opts) +| Except.error kex => throwError (kex.toMessageData opts) -def mkAuxDefinition (ref : Syntax) (declName : Name) (type : Expr) (value : Expr) (zeta : Bool := false) : TermElabM Expr := do +def mkAuxDefinition (declName : Name) (type : Expr) (value : Expr) (zeta : Bool := false) : TermElabM Expr := do env ← getEnv; opts ← getOptions; mctx ← getMCtx; lctx ← getLCtx; match Lean.mkAuxDefinition env opts mctx lctx declName type value zeta with -| Except.error ex => throwError ref (ex.toMessageData opts) +| Except.error ex => throwError (ex.toMessageData opts) | Except.ok (r, env, mctx) => do setEnv env; setMCtx mctx; @@ -1021,11 +1037,11 @@ private partial def mkAuxNameAux (env : Environment) (base : Name) : Nat → Nam else candidate -def mkAuxName (ref : Syntax) (suffix : Name) : TermElabM Name := do +def mkAuxName (suffix : Name) : TermElabM Name := do env ← getEnv; ctx ← read; match ctx.declName? with -| none => throwError ref "auxiliary declaration cannot be created when declaration name is not available" +| none => throwError "auxiliary declaration cannot be created when declaration name is not available" | some declName => pure $ mkAuxNameAux env (declName ++ suffix) 1 /- ======================================= @@ -1052,30 +1068,30 @@ fun stx _ => do pure $ mkSort (mkLevelSucc u) @[builtinTermElab «hole»] def elabHole : TermElab := -fun stx expectedType? => mkFreshExprMVar stx expectedType? +fun stx expectedType? => mkFreshExprMVar expectedType? @[builtinTermElab «namedHole»] def elabNamedHole : TermElab := fun stx expectedType? => let name := stx.getIdAt 1; - mkFreshExprMVar stx expectedType? MetavarKind.syntheticOpaque name + mkFreshExprMVar expectedType? MetavarKind.syntheticOpaque name -def mkTacticMVar (ref : Syntax) (type : Expr) (tacticCode : Syntax) : TermElabM Expr := do -mvar ← mkFreshExprMVar ref type MetavarKind.syntheticOpaque `main; +def mkTacticMVar (type : Expr) (tacticCode : Syntax) : TermElabM Expr := do +mvar ← mkFreshExprMVar type MetavarKind.syntheticOpaque `main; let mvarId := mvar.mvarId!; -registerSyntheticMVar ref mvarId $ SyntheticMVarKind.tactic tacticCode; +registerSyntheticMVar mvarId $ SyntheticMVarKind.tactic tacticCode; pure mvar @[builtinTermElab tacticBlock] def elabTacticBlock : TermElab := fun stx expectedType? => match expectedType? with - | some expectedType => mkTacticMVar stx expectedType (stx.getArg 1) - | none => throwError stx ("invalid tactic block, expected type has not been provided") + | some expectedType => mkTacticMVar expectedType (stx.getArg 1) + | none => throwError ("invalid tactic block, expected type has not been provided") @[builtinTermElab byTactic] def elabByTactic : TermElab := fun stx expectedType? => match expectedType? with - | some expectedType => mkTacticMVar stx expectedType (stx.getArg 1) - | none => throwError stx ("invalid 'by' tactic, expected type has not been provided") + | some expectedType => mkTacticMVar expectedType (stx.getArg 1) + | none => throwError ("invalid 'by' tactic, expected type has not been provided") /-- Main loop for `mkPairs`. -/ private partial def mkPairsAux (elems : Array Syntax) : Nat → Syntax → MacroM Syntax @@ -1109,18 +1125,17 @@ match stx? with @[builtinTermElab paren] def elabParen : TermElab := fun stx expectedType? => - let ref := stx; - match_syntax ref with + match_syntax stx with | `(()) => pure $ Lean.mkConst `Unit.unit | `(($e : $type)) => do type ← elabType type; e ← elabCDot e type; - ensureHasType ref type e + ensureHasType type e | `(($e)) => elabCDot e expectedType? | `(($e, $es*)) => do pairs ← liftMacroM $ mkPairs (#[e] ++ es.getEvenElems); withMacroExpansion stx pairs (elabTerm pairs expectedType?) - | _ => throwError stx "unexpected parentheses notation" + | _ => throwError "unexpected parentheses notation" @[builtinMacro Lean.Parser.Term.listLit] def expandListLit : Macro := fun stx => @@ -1159,31 +1174,31 @@ match stx.isTermId? relaxed with | _ => pure none | _ => pure none -private def mkFreshLevelMVars (ref : Syntax) (num : Nat) : TermElabM (List Level) := -num.foldM (fun _ us => do u ← mkFreshLevelMVar ref; pure $ u::us) [] +private def mkFreshLevelMVars (num : Nat) : TermElabM (List Level) := +num.foldM (fun _ us => do u ← mkFreshLevelMVar; pure $ u::us) [] /-- Create an `Expr.const` using the given name and explicit levels. Remark: fresh universe metavariables are created if the constant has more universe parameters than `explicitLevels`. -/ -def mkConst (ref : Syntax) (constName : Name) (explicitLevels : List Level := []) : TermElabM Expr := do +def mkConst (constName : Name) (explicitLevels : List Level := []) : TermElabM Expr := do env ← getEnv; match env.find? constName with -| none => throwError ref ("unknown constant '" ++ constName ++ "'") +| none => throwError ("unknown constant '" ++ constName ++ "'") | some cinfo => if explicitLevels.length > cinfo.lparams.length then - throwError ref ("too many explicit universe levels") + throwError ("too many explicit universe levels") else do let numMissingLevels := cinfo.lparams.length - explicitLevels.length; - us ← mkFreshLevelMVars ref numMissingLevels; + us ← mkFreshLevelMVars numMissingLevels; pure $ Lean.mkConst constName (explicitLevels ++ us) -private def mkConsts (ref : Syntax) (candidates : List (Name × List String)) (explicitLevels : List Level) : TermElabM (List (Expr × List String)) := do +private def mkConsts (candidates : List (Name × List String)) (explicitLevels : List Level) : TermElabM (List (Expr × List String)) := do env ← getEnv; candidates.foldlM (fun result ⟨constName, projs⟩ => do -- TODO: better suppor for `mkConst` failure. We may want to cache the failures, and report them if all candidates fail. - const ← mkConst ref constName explicitLevels; + const ← mkConst constName explicitLevels; pure $ (const, projs) :: result) [] @@ -1193,21 +1208,21 @@ currNamespace ← getCurrNamespace; openDecls ← getOpenDecls; pure (Lean.Elab.resolveGlobalName env currNamespace openDecls n) -def resolveName (ref : Syntax) (n : Name) (preresolved : List (Name × List String)) (explicitLevels : List Level) : TermElabM (List (Expr × List String)) := do +def resolveName (n : Name) (preresolved : List (Name × List String)) (explicitLevels : List Level) : TermElabM (List (Expr × List String)) := do result? ← resolveLocalName n; match result? with | some (e, projs) => do unless explicitLevels.isEmpty $ - throwError ref ("invalid use of explicit universe parameters, '" ++ e ++ "' is a local"); + throwError ("invalid use of explicit universe parameters, '" ++ e ++ "' is a local"); pure [(e, projs)] | none => let process (candidates : List (Name × List String)) : TermElabM (List (Expr × List String)) := do { when candidates.isEmpty $ do { mainModule ← getMainModule; let view := extractMacroScopes n; - throwError ref ("unknown identifier '" ++ view.format mainModule ++ "'") + throwError ("unknown identifier '" ++ view.format mainModule ++ "'") }; - mkConsts ref candidates explicitLevels + mkConsts candidates explicitLevels }; if preresolved.isEmpty then do r ← resolveGlobalName n; @@ -1216,7 +1231,7 @@ match result? with process preresolved @[builtinTermElab cdot] def elabBadCDot : TermElab := -fun stx _ => throwError stx "invalid occurrence of `·` notation, it must be surrounded by parentheses (e.g. `(· + 1)`)" +fun stx _ => throwError "invalid occurrence of `·` notation, it must be surrounded by parentheses (e.g. `(· + 1)`)" /- A raw literal is not a valid term, but it is nice to have a handler for them because it allows `macros` to insert them into terms. @@ -1226,7 +1241,7 @@ fun stx _ => throwError stx "invalid occurrence of `·` notation, it must be sur fun stx _ => do match stx.isStrLit? with | some val => pure $ mkStrLit val - | none => throwError stx "ill-formed syntax" + | none => throwError "ill-formed syntax" @[builtinTermElab str] def elabStr : TermElab := fun stx expectedType? => elabRawStrLit (stx.getArg 0) expectedType? @@ -1234,18 +1249,17 @@ fun stx expectedType? => elabRawStrLit (stx.getArg 0) expectedType? /- See `elabRawStrLit` -/ @[builtinTermElab numLit] def elabRawNumLit : TermElab := fun stx expectedType? => do - let ref := stx; val ← match stx.isNatLit? with | some val => pure (mkNatLit val) - | none => throwError stx "ill-formed syntax"; - typeMVar ← mkFreshTypeMVar ref MetavarKind.synthetic; - registerSyntheticMVar ref typeMVar.mvarId! (SyntheticMVarKind.withDefault (Lean.mkConst `Nat)); + | none => throwError "ill-formed syntax"; + typeMVar ← mkFreshTypeMVar MetavarKind.synthetic; + registerSyntheticMVar typeMVar.mvarId! (SyntheticMVarKind.withDefault (Lean.mkConst `Nat)); match expectedType? with - | some expectedType => do _ ← isDefEq ref expectedType typeMVar; pure () + | some expectedType => do _ ← isDefEq expectedType typeMVar; pure () | _ => pure (); - u ← getLevel ref typeMVar; - u ← decLevel ref u; - mvar ← mkInstMVar ref (mkApp (Lean.mkConst `HasOfNat [u]) typeMVar); + u ← getLevel typeMVar; + u ← decLevel u; + mvar ← mkInstMVar (mkApp (Lean.mkConst `HasOfNat [u]) typeMVar); pure $ mkApp3 (Lean.mkConst `HasOfNat.ofNat [u]) typeMVar mvar val @[builtinTermElab num] def elabNum : TermElab := @@ -1256,7 +1270,7 @@ fun stx expectedType? => elabRawNumLit (stx.getArg 0) expectedType? fun stx _ => do match stx.isCharLit? with | some val => pure $ mkApp (Lean.mkConst `Char.ofNat) (mkNatLit val.toNat) - | none => throwError stx "ill-formed syntax" + | none => throwError "ill-formed syntax" @[builtinTermElab char] def elabChar : TermElab := fun stx expectedType? => elabRawCharLit (stx.getArg 0) expectedType? @@ -1265,7 +1279,7 @@ fun stx expectedType? => elabRawCharLit (stx.getArg 0) expectedType? fun stx _ => match (stx.getArg 0).isNameLit? with | some val => pure $ toExpr val - | none => throwError stx "ill-formed syntax" + | none => throwError "ill-formed syntax" instance MetaHasEval {α} [MetaHasEval α] : MetaHasEval (TermElabM α) := ⟨fun env opts x _ => do diff --git a/stage0/src/Lean/Meta/EqnCompiler/DepElim.lean b/stage0/src/Lean/Meta/EqnCompiler/DepElim.lean index f15a14f27a..a163c5c58b 100644 --- a/stage0/src/Lean/Meta/EqnCompiler/DepElim.lean +++ b/stage0/src/Lean/Meta/EqnCompiler/DepElim.lean @@ -276,19 +276,11 @@ structure ElimResult := (unusedAltIdxs : List Nat) /- The number of patterns in each AltLHS must be equal to majors.length -/ -private def checkNumPatterns (majors : List Expr) (lhss : List AltLHS) : MetaM Unit := -let num := majors.length; +private def checkNumPatterns (majors : Array Expr) (lhss : List AltLHS) : MetaM Unit := +let num := majors.size; when (lhss.any (fun lhs => lhs.patterns.length != num)) $ throwOther "incorrect number of patterns" -/- - Given major premises `(x_1 : A_1) (x_2 : A_2[x_1]) ... (x_n : A_n[x_1, x_2, ...])`, return - `forall (x_1 : A_1) (x_2 : A_2[x_1]) ... (x_n : A_n[x_1, x_2, ...]), sortv` -/ -private def withMotive {α} (majors : Array Expr) (sortv : Expr) (k : Expr → MetaM α) : MetaM α := do -type ← mkForall majors sortv; -trace! `Meta.EqnCompiler.matchDebug ("motive: " ++ type); -withLocalDecl `motive type BinderInfo.default k - private def localDeclsToMVarsAux : List LocalDecl → List MVarId → FVarSubst → MetaM (List MVarId × FVarSubst) | [], mvars, s => pure (mvars.reverse, s) | d::ds, mvars, s => do @@ -710,6 +702,30 @@ s ← majors.foldlM s; pure s.getUnusedLevelParam +def mkElim (elimName : Name) (motiveType : Expr) (lhss : List AltLHS) : MetaM ElimResult := +withLocalDecl `motive motiveType BinderInfo.default fun motive => do +forallTelescopeReducing motiveType fun majors _ => do +checkNumPatterns majors lhss; +let mvarType := mkAppN motive majors; +trace! `Meta.EqnCompiler.matchDebug ("target: " ++ mvarType); +withAlts motive lhss fun alts minors => do + mvar ← mkFreshExprMVar mvarType; + let examples := majors.toList.map fun major => Example.var major.fvarId!; + s ← process { mvarId := mvar.mvarId!, vars := majors.toList, alts := alts, examples := examples } {}; + let args := #[motive] ++ majors ++ minors; + type ← mkForall args mvarType; + val ← mkLambda args mvar; + trace! `Meta.EqnCompiler.matchDebug ("eliminator value: " ++ val ++ "\ntype: " ++ type); + elim ← mkAuxDefinition elimName type val; + setInlineAttribute elimName; + trace! `Meta.EqnCompiler.matchDebug ("eliminator: " ++ elim); + let unusedAltIdxs : List Nat := lhss.length.fold + (fun i r => if s.used.contains i then r else i::r) + []; + pure { elim := elim, counterExamples := s.counterExamples, unusedAltIdxs := unusedAltIdxs.reverse } + +/- Helper methods for testins mkElim -/ + /- Return `Prop` if `inProf == true` and `Sort u` otherwise, where `u` is a fresh universe level parameter. -/ private def mkElimSort (majors : List Expr) (lhss : List AltLHS) (inProp : Bool) : MetaM Expr := if inProp then @@ -718,32 +734,11 @@ else do v ← getUnusedLevelParam majors lhss; pure $ mkSort $ v -def mkElimCore (elimName : Name) (motive : Expr) (majors : List Expr) (lhss : List AltLHS) (inProp : Bool := false) : MetaM ElimResult := do -checkNumPatterns majors lhss; -generalizeTelescope majors.toArray `_d fun majors => do - let mvarType := mkAppN motive majors; - trace! `Meta.EqnCompiler.matchDebug ("target: " ++ mvarType); - withAlts motive lhss fun alts minors => do - mvar ← mkFreshExprMVar mvarType; - let examples := majors.toList.map fun major => Example.var major.fvarId!; - s ← process { mvarId := mvar.mvarId!, vars := majors.toList, alts := alts, examples := examples } {}; - let args := #[motive] ++ majors ++ minors; - type ← mkForall args mvarType; - val ← mkLambda args mvar; - trace! `Meta.EqnCompiler.matchDebug ("eliminator value: " ++ val ++ "\ntype: " ++ type); - elim ← mkAuxDefinition elimName type val; - setInlineAttribute elimName; - trace! `Meta.EqnCompiler.matchDebug ("eliminator: " ++ elim); - let unusedAltIdxs : List Nat := lhss.length.fold - (fun i r => if s.used.contains i then r else i::r) - []; - pure { elim := elim, counterExamples := s.counterExamples, unusedAltIdxs := unusedAltIdxs.reverse } - -def mkElim (elimName : Name) (majors : List Expr) (lhss : List AltLHS) (inProp : Bool := false) : MetaM ElimResult := do +def mkElimTester (elimName : Name) (majors : List Expr) (lhss : List AltLHS) (inProp : Bool := false) : MetaM ElimResult := do sortv ← mkElimSort majors lhss inProp; generalizeTelescope majors.toArray `_d fun majors => do - withMotive majors sortv fun motive => - mkElimCore elimName motive majors.toList lhss inProp + motiveType ← mkForall majors sortv; + mkElim elimName motiveType lhss @[init] private def regTraceClasses : IO Unit := do registerTraceClass `Meta.EqnCompiler.match; diff --git a/stage0/stdlib/Lean/Elab/App.c b/stage0/stdlib/Lean/Elab/App.c index b2dc239653..c706d2dd5f 100644 --- a/stage0/stdlib/Lean/Elab/App.c +++ b/stage0/stdlib/Lean/Elab/App.c @@ -18,6 +18,7 @@ lean_object* l_Lean_Elab_Term_getEnv___rarg(lean_object*); extern lean_object* l_Lean_Name_toString___closed__1; lean_object* l___private_Lean_Elab_App_7__hasOnlyTypeMVar___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_18__elabAppLValsAux___main___closed__2; +lean_object* l_Lean_Elab_Term_throwErrorAt___rarg(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_fieldIdxKind; extern lean_object* l_Lean_Parser_Term_namedPattern___elambda__1___closed__2; lean_object* l_Lean_Expr_mvarId_x21(lean_object*); @@ -30,14 +31,14 @@ extern lean_object* l___private_Lean_Meta_ExprDefEq_8__checkTypesAndAssign___clo extern lean_object* l_Lean_Parser_Term_explicit___elambda__1___closed__2; lean_object* l_Lean_mkSort(lean_object*); lean_object* l_Array_forMAux___main___at___private_Lean_Elab_App_14__resolveLValLoop___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_18__elabAppLValsAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldlM___main___at___private_Lean_Elab_App_16__mkBaseProjections___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_mkFreshExprMVar(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_instantiateMVars(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_18__elabAppLValsAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldlM___main___at___private_Lean_Elab_App_16__mkBaseProjections___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkFreshExprMVar(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_19__elabAppLVals___closed__3; lean_object* l___private_Lean_Elab_App_9__nextArgIsHole___boxed(lean_object*); lean_object* l_unreachable_x21___rarg(lean_object*); -lean_object* l___private_Lean_Elab_App_14__resolveLValLoop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_14__resolveLValLoop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_23__toMessageData___closed__1; lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_Elab_Term_elabExplicitUniv___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_fieldIdxKind___closed__2; @@ -45,7 +46,7 @@ lean_object* l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__15; extern lean_object* l_Lean_MessageData_ofList___closed__3; lean_object* l_Array_eraseIdx___rarg(lean_object*, lean_object*); lean_object* l_Array_forMAux___main___at___private_Lean_Elab_App_14__resolveLValLoop___main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_inferType(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_inferType(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_13__resolveLValAux___closed__21; uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_App_6__hasTypeMVar___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_24__mergeFailures___rarg___closed__3; @@ -53,8 +54,8 @@ lean_object* l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_7__hasOnly lean_object* l_Lean_Format_pretty(lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); extern lean_object* l_Option_get_x21___rarg___closed__3; -lean_object* l___private_Lean_Elab_App_21__elabAppFn___boxed(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_16__mkBaseProjections(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_21__elabAppFn___boxed(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_16__mkBaseProjections(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; lean_object* l_Lean_Elab_getPosition___at___private_Lean_Elab_App_23__toMessageData___spec__1(lean_object*, lean_object*, lean_object*); lean_object* lean_array_fswap(lean_object*, lean_object*, lean_object*); @@ -68,13 +69,12 @@ extern lean_object* l_Array_empty___closed__1; lean_object* lean_environment_find(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_17__addLValArg___main___closed__7; lean_object* l___private_Lean_Elab_App_5__getForallBody(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_14__resolveLValLoop___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabApp___closed__1; uint8_t l___private_Lean_Elab_App_9__nextArgIsHole(lean_object*); lean_object* l_List_append___rarg(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_12__throwLValError___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_unfoldDefinition_x3f(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_12__throwLValError___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_unfoldDefinition_x3f(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Util_1__evalSyntaxConstantUnsafe(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_13__resolveLValAux___closed__17; lean_object* l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__10; @@ -89,7 +89,7 @@ lean_object* lean_expr_instantiate1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_NamedArg_hasToString(lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); -lean_object* l_List_foldlM___main___at___private_Lean_Elab_App_20__elabAppFnId___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldlM___main___at___private_Lean_Elab_App_20__elabAppFnId___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_13__resolveLValAux___closed__9; extern lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; @@ -99,16 +99,16 @@ lean_object* l___private_Lean_Elab_App_23__toMessageData___boxed(lean_object*, l lean_object* l___private_Lean_Elab_App_13__resolveLValAux___closed__27; lean_object* l___private_Lean_Elab_App_26__expandApp___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_3__mkArrow___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_isTypeFormer(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_isTypeFormer(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_13__resolveLValAux___closed__4; -lean_object* l___private_Lean_Elab_App_17__addLValArg___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_Elab_Term_synthesizeAppInstMVars(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_17__addLValArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_synthesizeAppInstMVars(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_18__elabAppLValsAux___main___closed__1; lean_object* l___regBuiltin_Lean_Elab_Term_elabId(lean_object*); lean_object* l_Lean_Elab_Term_addNamedArg___closed__6; lean_object* l___private_Lean_Elab_App_13__resolveLValAux___closed__2; lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_21__elabAppFn___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_21__elabAppFn___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getMainModule___rarg(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabArrayRef(lean_object*); lean_object* l___private_Lean_Elab_App_17__addLValArg___main___closed__5; @@ -121,11 +121,10 @@ lean_object* l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_6__hasType lean_object* l___private_Lean_Elab_App_11__elabAppArgs___closed__5; lean_object* l___private_Lean_Elab_App_13__resolveLValAux___closed__1; lean_object* l_Array_foldlStepMAux___main___at_Lean_Syntax_foldSepRevArgsM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_20__elabAppFnId(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_13__resolveLValAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_20__elabAppFnId(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabRawIdent(lean_object*); extern lean_object* l_Lean_PrettyPrinter_Parenthesizer_tacticParser_parenthesizer___lambda__1___closed__4; -lean_object* l_List_foldlM___main___at___private_Lean_Elab_App_20__elabAppFnId___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* l_List_foldlM___main___at___private_Lean_Elab_App_20__elabAppFnId___spec__3___boxed(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_17__addLValArg___main___closed__2; lean_object* l___private_Lean_Elab_App_13__resolveLValAux___closed__3; lean_object* l_Lean_Elab_Term_getOptions(lean_object*, lean_object*); @@ -135,11 +134,11 @@ lean_object* l_List_foldlM___main___at___private_Lean_Elab_App_16__mkBaseProject extern lean_object* l_Lean_Format_repr___main___closed__13; extern lean_object* l_Lean_Parser_Term_proj___elambda__1___closed__2; lean_object* l___private_Lean_Elab_App_17__addLValArg___main___closed__3; -lean_object* l___private_Lean_Elab_App_21__elabAppFn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_21__elabAppFn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppNumArgsAux___main(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_17__addLValArg___main___closed__8; lean_object* l___private_Lean_Elab_App_17__addLValArg___main___closed__1; -lean_object* l___private_Lean_Elab_App_17__addLValArg___main___boxed(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_17__addLValArg___main___boxed(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_11__elabAppArgs___closed__3; lean_object* l___private_Lean_Elab_App_13__resolveLValAux___closed__14; extern lean_object* l_Array_HasRepr___rarg___closed__1; @@ -157,30 +156,30 @@ lean_object* l___private_Lean_Elab_App_6__hasTypeMVar___boxed(lean_object*, lean lean_object* l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__13; uint8_t l___private_Lean_Elab_App_7__hasOnlyTypeMVar(lean_object*, lean_object*); lean_object* l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(lean_object*); -lean_object* l___private_Lean_Elab_App_25__elabAppAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_25__elabAppAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_17__addLValArg___main___closed__4; -lean_object* l_Lean_Elab_Term_getLevel(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_getLevel(lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_App_21__elabAppFn___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_App_21__elabAppFn___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabExplicit(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getCurrNamespace(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(lean_object*); lean_object* l___private_Lean_Elab_App_13__resolveLValAux___closed__7; extern lean_object* l_Lean_choiceKind___closed__2; -lean_object* l___private_Lean_Elab_App_4__tryCoeFun(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_4__tryCoeFun(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_MessageData_Inhabited; extern lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1___closed__7; lean_object* l___private_Lean_Elab_App_17__addLValArg___main___closed__9; lean_object* l_Lean_Elab_Term_elabId(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Syntax_6__formatInfo___closed__1; -lean_object* l___private_Lean_Elab_App_14__resolveLValLoop___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_4__tryCoeFun___closed__6; lean_object* l_Lean_Name_append___main(lean_object*, lean_object*); -lean_object* l_List_foldlM___main___at___private_Lean_Elab_App_20__elabAppFnId___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldlM___main___at___private_Lean_Elab_App_20__elabAppFnId___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_shrink___main___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_5__getForallBody___main(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_17__addLValArg___main___closed__6; lean_object* l___private_Lean_Elab_App_4__tryCoeFun___closed__5; +lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__14; lean_object* l_Lean_Elab_Term_addNamedArg___closed__3; lean_object* l___private_Lean_Elab_App_13__resolveLValAux___closed__25; @@ -207,25 +206,24 @@ lean_object* l___regBuiltin_Lean_Elab_Term_elabExplicit(lean_object*); lean_object* l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__4; lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getId(lean_object*); -lean_object* l___private_Lean_Elab_App_18__elabAppLValsAux___boxed(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_18__elabAppLValsAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_13__resolveLValAux___closed__22; lean_object* lean_name_mk_string(lean_object*, lean_object*); extern lean_object* l_Lean_choiceKind; -lean_object* l_Lean_Elab_Term_throwError___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_15__resolveLVal___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_throwError___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabAtom(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_App_5__getForallBody___main___spec__1(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_resolveName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_resolveName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getStructureFields(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabChoice(lean_object*); lean_object* l_Lean_Elab_Term_getCurrMacroScope(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_App_21__elabAppFn___main___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_App_21__elabAppFn___main___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_App_26__expandApp___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_App_26__expandApp___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_7__hasOnlyTypeMVar___spec__1___boxed(lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Elab_App_6__hasTypeMVar(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_addNamedArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_addNamedArg(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; lean_object* l___private_Lean_Elab_App_11__elabAppArgs___closed__10; extern lean_object* l_Lean_Meta_Exception_toTraceMessageData___closed__4; @@ -235,19 +233,19 @@ lean_object* lean_expr_dbg_to_string(lean_object*); lean_object* l___private_Lean_Elab_App_17__addLValArg___main___closed__11; lean_object* l_Lean_Elab_Term_elabApp(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getPathToBaseStructure_x3f(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_synthesizeAppInstMVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_synthesizeAppInstMVars___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_4__tryCoeFun___closed__3; lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); uint8_t l_Array_isEmpty___rarg(lean_object*); lean_object* l_Lean_LocalDecl_toExpr(lean_object*); lean_object* l_Lean_Elab_Term_elabChoice(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_2__elabArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_2__elabArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_4__tryCoeFun___closed__1; extern lean_object* l___private_Lean_Elab_Util_4__regTraceClasses___closed__1; extern lean_object* l_Lean_importModules___closed__1; lean_object* l___private_Lean_Elab_App_21__elabAppFn___main___closed__1; extern lean_object* l_Lean_formatEntry___closed__1; -lean_object* l___private_Lean_Elab_App_15__resolveLVal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_15__resolveLVal(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_TermElabResult_inhabited; lean_object* l_List_map___main___at___private_Lean_Elab_App_20__elabAppFnId___spec__1(lean_object*); @@ -255,20 +253,19 @@ lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_App_24__mergeFailu uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); extern lean_object* l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; lean_object* l___regBuiltin_Lean_Elab_Term_elabProj___closed__1; -lean_object* l___private_Lean_Elab_App_4__tryCoeFun___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isAutoParam(lean_object*); extern lean_object* l_Lean_Parser_Term_arrayRef___elambda__1___closed__2; lean_object* l_Lean_Name_replacePrefix___main(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_1__ensureArgType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_1__ensureArgType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_17__addLValArg___main___closed__12; -lean_object* l_Lean_Elab_Term_mkConst(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkConst(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_27__regTraceClasses(lean_object*); extern lean_object* l_Lean_nullKind___closed__2; lean_object* l_Lean_Elab_Term_elabProj(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofArray(lean_object*); extern lean_object* l_Lean_Elab_Term_termElabAttribute; -lean_object* l___private_Lean_Elab_App_18__elabAppLValsAux___main(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_isDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_18__elabAppLValsAux___main(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_isDefEq(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getHeadInfo___main(lean_object*); extern lean_object* l_Lean_mkAppStx___closed__3; extern lean_object* l_Option_HasRepr___rarg___closed__3; @@ -278,13 +275,14 @@ uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_addNamedArg___spec__1(le extern lean_object* l_Lean_Syntax_inhabited; lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); extern lean_object* l_Lean_mkAppStx___closed__5; +lean_object* l_Lean_Elab_Term_elabApp___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_BinderInfo_beq(uint8_t, uint8_t); lean_object* l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__1; lean_object* l___private_Lean_Elab_App_13__resolveLValAux___closed__16; lean_object* l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__2; lean_object* l_Lean_Elab_Term_getLCtx(lean_object*, lean_object*); lean_object* l_Lean_Expr_getRevArg_x21___main(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_20__elabAppFnId___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_Elab_App_20__elabAppFnId___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_mkApp(lean_object*, lean_object*); extern lean_object* l_Lean_SourceInfo_inhabited___closed__1; lean_object* l_Lean_mkPrivateName(lean_object*, lean_object*); @@ -292,29 +290,28 @@ lean_object* l___private_Lean_Elab_App_13__resolveLValAux___closed__24; uint8_t l_Lean_Expr_hasMVar(lean_object*); lean_object* l_Lean_Syntax_getArgs(lean_object*); uint8_t l_Lean_BinderInfo_isExplicit(uint8_t); -lean_object* l_Lean_Elab_Term_registerSyntheticMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_registerSyntheticMVar(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getKind(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabProj(lean_object*); -lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_21__elabAppFn___main___closed__2; -lean_object* l_List_foldlM___main___at___private_Lean_Elab_App_20__elabAppFnId___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldlM___main___at___private_Lean_Elab_App_20__elabAppFnId___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_panic_fn(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_21__elabAppFn___main___boxed(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_21__elabAppFn___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabExplicit___closed__1; -lean_object* l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_25__elabAppAux___closed__2; extern lean_object* l_Std_PersistentHashMap_mkCollisionNode___rarg___closed__1; -lean_object* l_Lean_Elab_getPos___at_Lean_Elab_Term_throwError___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__12; lean_object* l___regBuiltin_Lean_Elab_Term_elabId___closed__1; lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_App_5__getForallBody___main___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_13__resolveLValAux___closed__10; -lean_object* l_Lean_Elab_Term_whnfCore(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_whnfCore(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_25__elabAppAux___closed__1; lean_object* l___private_Lean_Elab_App_13__resolveLValAux___closed__20; +lean_object* l_Lean_Elab_Term_getCurrRef(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_4__tryCoeFun___closed__2; -lean_object* l___private_Lean_Elab_App_12__throwLValError___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_13__resolveLValAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_13__resolveLValAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_22__getSuccess(lean_object*); extern lean_object* l_Lean_mkHole___closed__1; lean_object* l_Lean_Elab_Term_elabExplicitUniv(lean_object*, lean_object*, lean_object*); @@ -322,10 +319,10 @@ lean_object* l___private_Lean_Elab_App_24__mergeFailures___rarg(lean_object*, le lean_object* l_Lean_Elab_Term_tryPostponeIfMVar(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_17__addLValArg___main___closed__10; lean_object* l___regBuiltin_Lean_Elab_Term_elabChoice___closed__1; -lean_object* l___private_Lean_Elab_App_14__resolveLValLoop___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_14__resolveLValLoop___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkForall(lean_object*, uint8_t, lean_object*, lean_object*); extern lean_object* l_Lean_mkAppStx___closed__9; -lean_object* l_Lean_Elab_Term_whnfForall(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_whnfForall(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__2; lean_object* l___private_Lean_Elab_App_26__expandApp(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_11__elabAppArgs___closed__11; @@ -333,14 +330,13 @@ lean_object* l___private_Lean_Elab_App_13__resolveLValAux___closed__19; lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_addNamedArg___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_consumeMData___main(lean_object*); uint8_t l_Lean_Expr_hasLooseBVars(lean_object*); -lean_object* l___private_Lean_Elab_App_16__mkBaseProjections___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_16__mkBaseProjections___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_addNamedArg___closed__1; lean_object* l___private_Lean_Elab_App_16__mkBaseProjections___closed__1; lean_object* l___private_Lean_Elab_App_11__elabAppArgs___closed__1; extern lean_object* l_Lean_KernelException_toMessageData___closed__12; lean_object* l_Array_toList___rarg(lean_object*); lean_object* l___private_Lean_Elab_App_10__elabAppArgsAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_addNamedArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at___private_Lean_Elab_App_21__elabAppFn___main___spec__1(lean_object*); lean_object* l___private_Lean_Elab_App_3__mkArrow(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_13__resolveLValAux___closed__11; @@ -352,9 +348,9 @@ uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); uint8_t l_Lean_Expr_isOptParam(lean_object*); lean_object* l___private_Lean_Elab_App_24__mergeFailures___rarg___closed__1; lean_object* l_Lean_Elab_Term_Arg_inhabited___closed__1; -lean_object* l_Lean_Elab_Term_mkFreshLevelMVar(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkFreshLevelMVar(lean_object*, lean_object*); extern lean_object* l_Lean_MessageData_arrayExpr_toMessageData___main___closed__2; -lean_object* l___private_Lean_Elab_App_17__addLValArg___main(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_17__addLValArg___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabRawIdent___closed__1; lean_object* l_Lean_Elab_Term_addNamedArg___closed__2; extern lean_object* l_Lean_Meta_Exception_toStr___closed__6; @@ -382,11 +378,12 @@ lean_object* l___private_Lean_Elab_App_11__elabAppArgs___closed__8; lean_object* l___private_Lean_Elab_App_24__mergeFailures(lean_object*); uint8_t l_Lean_isStructureLike(lean_object*, lean_object*); uint8_t l_Array_contains___at___private_Lean_Elab_App_6__hasTypeMVar___spec__1(lean_object*, lean_object*); +lean_object* l_Lean_Elab_getPos___at_Lean_Elab_Term_throwErrorAt___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_indentExpr(lean_object*); extern lean_object* l_Lean_Format_repr___main___closed__16; lean_object* l_Lean_mkConst(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_ensureHasTypeAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_11__elabAppArgs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_ensureHasTypeAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_11__elabAppArgs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_insertAt___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_findField_x3f___main(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_13__resolveLValAux___closed__12; @@ -394,22 +391,22 @@ lean_object* l_Lean_Name_components(lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_App_25__elabAppAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkAppStx___closed__1; lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_Elab_Term_elabExplicitUniv___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_17__addLValArg(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_19__elabAppLVals(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_17__addLValArg(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_19__elabAppLVals(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__16; -lean_object* l___private_Lean_Elab_App_19__elabAppLVals___boxed(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_19__elabAppLVals___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_addNamedArg___closed__4; lean_object* l___private_Lean_Elab_App_19__elabAppLVals___closed__1; lean_object* l_Array_filterAux___main___at___private_Lean_Elab_App_22__getSuccess___spec__1(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_App_18__elabAppLValsAux(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_18__elabAppLValsAux(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_isStructure(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_11__elabAppArgs___closed__2; -lean_object* l___private_Lean_Elab_App_11__elabAppArgs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_11__elabAppArgs(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__7; lean_object* l___private_Lean_Elab_App_21__elabAppFn___main___closed__3; uint8_t lean_string_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Arg_inhabited; -lean_object* l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); uint8_t l_Lean_Syntax_isIdent(lean_object*); lean_object* _init_l_Lean_Elab_Term_Arg_inhabited___closed__1() { @@ -624,65 +621,65 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Lean_Elab_Term_addNamedArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_Elab_Term_addNamedArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; -x_6 = lean_array_get_size(x_2); -x_7 = lean_unsigned_to_nat(0u); -x_8 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_addNamedArg___spec__1(x_2, x_3, x_2, x_6, x_7); -lean_dec(x_6); -lean_inc(x_3); -x_9 = lean_array_push(x_2, x_3); -if (x_8 == 0) +lean_object* x_5; lean_object* x_6; uint8_t x_7; lean_object* x_8; +x_5 = lean_array_get_size(x_1); +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_addNamedArg___spec__1(x_1, x_2, x_1, x_5, x_6); +lean_dec(x_5); +lean_inc(x_2); +x_8 = lean_array_push(x_1, x_2); +if (x_7 == 0) { -lean_object* x_10; -lean_dec(x_4); +lean_object* x_9; lean_dec(x_3); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_9); -lean_ctor_set(x_10, 1, x_5); -return x_10; +lean_dec(x_2); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_4); +return x_9; } else { -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; uint8_t x_21; -lean_dec(x_9); -x_11 = lean_ctor_get(x_3, 0); -lean_inc(x_11); -lean_dec(x_3); -x_12 = l_Lean_Name_toString___closed__1; -x_13 = l_Lean_Name_toStringWithSep___main(x_12, x_11); -x_14 = lean_alloc_ctor(2, 1, 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; lean_object* x_18; lean_object* x_19; uint8_t x_20; +lean_dec(x_8); +x_10 = lean_ctor_get(x_2, 0); +lean_inc(x_10); +lean_dec(x_2); +x_11 = l_Lean_Name_toString___closed__1; +x_12 = l_Lean_Name_toStringWithSep___main(x_11, x_10); +x_13 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_13, 0, x_12); +x_14 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_14, 0, x_13); -x_15 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_15, 0, x_14); -x_16 = l_Lean_Elab_Term_addNamedArg___closed__3; -x_17 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_15); -x_18 = l_Lean_Elab_Term_addNamedArg___closed__6; -x_19 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_19, 0, x_17); -lean_ctor_set(x_19, 1, x_18); -x_20 = l_Lean_Elab_Term_throwError___rarg(x_1, x_19, x_4, x_5); -x_21 = !lean_is_exclusive(x_20); -if (x_21 == 0) +x_15 = l_Lean_Elab_Term_addNamedArg___closed__3; +x_16 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_14); +x_17 = l_Lean_Elab_Term_addNamedArg___closed__6; +x_18 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +x_19 = l_Lean_Elab_Term_throwError___rarg(x_18, x_3, x_4); +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) { -return x_20; +return x_19; } else { -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_20, 0); -x_23 = lean_ctor_get(x_20, 1); -lean_inc(x_23); +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_dec(x_20); -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -return x_24; +lean_inc(x_21); +lean_dec(x_19); +x_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +return x_23; } } } @@ -700,178 +697,218 @@ x_7 = lean_box(x_6); return x_7; } } -lean_object* l_Lean_Elab_Term_addNamedArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_6; -x_6 = l_Lean_Elab_Term_addNamedArg(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_1); -return x_6; -} -} -lean_object* l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: +lean_object* x_5; uint8_t x_6; +x_5 = lean_array_get_size(x_1); +x_6 = lean_nat_dec_lt(x_2, x_5); +lean_dec(x_5); +if (x_6 == 0) { -lean_object* x_6; uint8_t x_7; -x_6 = lean_array_get_size(x_2); -x_7 = lean_nat_dec_lt(x_3, x_6); -lean_dec(x_6); -if (x_7 == 0) -{ -lean_object* x_8; lean_object* x_9; -lean_dec(x_4); +lean_object* x_7; lean_object* x_8; lean_dec(x_3); -lean_dec(x_1); -x_8 = lean_box(0); -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_8); -lean_ctor_set(x_9, 1, x_5); -return x_9; +lean_dec(x_2); +x_7 = lean_box(0); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_7); +lean_ctor_set(x_8, 1, x_4); +return x_8; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_10 = lean_array_fget(x_2, x_3); -x_11 = lean_unsigned_to_nat(1u); -x_12 = lean_nat_add(x_3, x_11); -lean_dec(x_3); -lean_inc(x_4); -lean_inc(x_10); -x_13 = l_Lean_Elab_Term_synthesizeInstMVarCore(x_1, x_10, x_4, x_5); -if (lean_obj_tag(x_13) == 0) +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_9 = lean_array_fget(x_1, x_2); +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_add(x_2, x_10); +lean_dec(x_2); +lean_inc(x_3); +lean_inc(x_9); +x_12 = l_Lean_Elab_Term_synthesizeInstMVarCore(x_9, x_3, x_4); +if (lean_obj_tag(x_12) == 0) { -lean_object* x_14; uint8_t x_15; -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -x_15 = lean_unbox(x_14); -lean_dec(x_14); -if (x_15 == 0) -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_16 = lean_ctor_get(x_13, 1); -lean_inc(x_16); +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); -x_17 = lean_box(0); -lean_inc(x_1); -x_18 = l_Lean_Elab_Term_registerSyntheticMVar(x_1, x_10, x_17, x_4, x_16); -x_19 = lean_ctor_get(x_18, 1); -lean_inc(x_19); -lean_dec(x_18); -x_3 = x_12; -x_5 = x_19; -goto _start; -} -else +if (x_14 == 0) { -lean_object* x_21; -lean_dec(x_10); -x_21 = lean_ctor_get(x_13, 1); -lean_inc(x_21); -lean_dec(x_13); -x_3 = x_12; -x_5 = x_21; -goto _start; -} -} -else -{ -uint8_t x_23; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_15 = lean_ctor_get(x_12, 1); +lean_inc(x_15); lean_dec(x_12); -lean_dec(x_10); -lean_dec(x_4); -lean_dec(x_1); -x_23 = !lean_is_exclusive(x_13); -if (x_23 == 0) -{ -return x_13; +x_16 = lean_box(0); +x_17 = l_Lean_Elab_Term_registerSyntheticMVar(x_9, x_16, x_3, x_15); +x_18 = lean_ctor_get(x_17, 1); +lean_inc(x_18); +lean_dec(x_17); +x_2 = x_11; +x_4 = x_18; +goto _start; } else { -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_13, 0); -x_25 = lean_ctor_get(x_13, 1); -lean_inc(x_25); +lean_object* x_20; +lean_dec(x_9); +x_20 = lean_ctor_get(x_12, 1); +lean_inc(x_20); +lean_dec(x_12); +x_2 = x_11; +x_4 = x_20; +goto _start; +} +} +else +{ +uint8_t x_22; +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_3); +x_22 = !lean_is_exclusive(x_12); +if (x_22 == 0) +{ +return x_12; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_12, 0); +x_24 = lean_ctor_get(x_12, 1); lean_inc(x_24); -lean_dec(x_13); -x_26 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_26, 0, x_24); -lean_ctor_set(x_26, 1, x_25); -return x_26; +lean_inc(x_23); +lean_dec(x_12); +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +return x_25; } } } } } -lean_object* l_Lean_Elab_Term_synthesizeAppInstMVars(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Term_synthesizeAppInstMVars(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; lean_object* x_6; -x_5 = lean_unsigned_to_nat(0u); -x_6 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_1, x_2, x_5, x_3, x_4); -return x_6; -} -} -lean_object* l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_2); -return x_6; -} -} -lean_object* l_Lean_Elab_Term_synthesizeAppInstMVars___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_Elab_Term_synthesizeAppInstMVars(x_1, x_2, x_3, x_4); -lean_dec(x_2); +lean_object* x_4; lean_object* x_5; +x_4 = lean_unsigned_to_nat(0u); +x_5 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_1, x_4, x_2, x_3); return x_5; } } -lean_object* l___private_Lean_Elab_App_1__ensureArgType(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* l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_7; -lean_inc(x_5); -lean_inc(x_3); -x_7 = l_Lean_Elab_Term_inferType(x_1, x_3, x_5, x_6); -if (lean_obj_tag(x_7) == 0) +lean_object* x_5; +x_5 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} +lean_object* l_Lean_Elab_Term_synthesizeAppInstMVars___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: { -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_8 = lean_ctor_get(x_7, 0); +lean_object* x_4; +x_4 = l_Lean_Elab_Term_synthesizeAppInstMVars(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l___private_Lean_Elab_App_1__ensureArgType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +lean_inc(x_4); +lean_inc(x_2); +x_6 = l_Lean_Elab_Term_inferType(x_2, x_4, x_5); +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); lean_inc(x_8); -x_9 = lean_ctor_get(x_7, 1); -lean_inc(x_9); -lean_dec(x_7); +lean_dec(x_6); +x_9 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_9, 0, x_3); x_10 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_10, 0, x_4); -x_11 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_11, 0, x_2); -x_12 = l_Lean_Elab_Term_ensureHasTypeAux(x_1, x_10, x_8, x_3, x_11, x_5, x_9); +lean_ctor_set(x_10, 0, x_1); +x_11 = l_Lean_Elab_Term_ensureHasTypeAux(x_9, x_7, x_2, x_10, x_4, x_8); +return x_11; +} +else +{ +uint8_t x_12; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_12 = !lean_is_exclusive(x_6); +if (x_12 == 0) +{ +return x_6; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_6, 0); +x_14 = lean_ctor_get(x_6, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_6); +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_13); +lean_ctor_set(x_15, 1, x_14); +return x_15; +} +} +} +} +lean_object* l___private_Lean_Elab_App_2__elabArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; +x_6 = lean_ctor_get(x_2, 0); +lean_inc(x_6); +lean_dec(x_2); +lean_inc(x_3); +x_7 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_7, 0, x_3); +x_8 = 1; +lean_inc(x_4); +x_9 = l_Lean_Elab_Term_elabTerm(x_6, x_7, x_8, x_4, x_5); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec(x_9); +x_12 = l___private_Lean_Elab_App_1__ensureArgType(x_1, x_10, x_3, x_4, x_11); return x_12; } else { uint8_t x_13; -lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_2); lean_dec(x_1); -x_13 = !lean_is_exclusive(x_7); +x_13 = !lean_is_exclusive(x_9); if (x_13 == 0) { -return x_7; +return x_9; } else { lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_7, 0); -x_15 = lean_ctor_get(x_7, 1); +x_14 = lean_ctor_get(x_9, 0); +x_15 = lean_ctor_get(x_9, 1); lean_inc(x_15); lean_inc(x_14); -lean_dec(x_7); +lean_dec(x_9); x_16 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_16, 0, x_14); lean_ctor_set(x_16, 1, x_15); @@ -879,68 +916,14 @@ return x_16; } } } -} -lean_object* l___private_Lean_Elab_App_2__elabArg(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: -{ -if (lean_obj_tag(x_3) == 0) -{ -lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_10; -x_7 = lean_ctor_get(x_3, 0); -lean_inc(x_7); -lean_dec(x_3); -lean_inc(x_4); -x_8 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_8, 0, x_4); -x_9 = 1; -lean_inc(x_5); -x_10 = l_Lean_Elab_Term_elabTermAux___main(x_8, x_9, x_9, x_7, x_5, x_6); -if (lean_obj_tag(x_10) == 0) -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; -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___private_Lean_Elab_App_1__ensureArgType(x_1, x_2, x_11, x_4, x_5, x_12); -return x_13; -} else { -uint8_t x_14; -lean_dec(x_5); -lean_dec(x_4); +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_2, 0); +lean_inc(x_17); lean_dec(x_2); -lean_dec(x_1); -x_14 = !lean_is_exclusive(x_10); -if (x_14 == 0) -{ -return x_10; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_10, 0); -x_16 = lean_ctor_get(x_10, 1); -lean_inc(x_16); -lean_inc(x_15); -lean_dec(x_10); -x_17 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_17, 0, x_15); -lean_ctor_set(x_17, 1, x_16); -return x_17; -} -} -} -else -{ -lean_object* x_18; lean_object* x_19; -x_18 = lean_ctor_get(x_3, 0); -lean_inc(x_18); -lean_dec(x_3); -x_19 = l___private_Lean_Elab_App_1__ensureArgType(x_1, x_2, x_18, x_4, x_5, x_6); -return x_19; +x_18 = l___private_Lean_Elab_App_1__ensureArgType(x_1, x_17, x_3, x_4, x_5); +return x_18; } } } @@ -1055,122 +1038,125 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* l___private_Lean_Elab_App_4__tryCoeFun(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_App_4__tryCoeFun(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -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; uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -lean_inc(x_4); -x_6 = l_Lean_Elab_Term_mkFreshLevelMVar(x_1, x_4, x_5); -x_7 = lean_ctor_get(x_6, 0); +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; uint8_t x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +lean_inc(x_3); +x_5 = l_Lean_Elab_Term_mkFreshLevelMVar(x_3, x_4); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); lean_inc(x_7); -x_8 = lean_ctor_get(x_6, 1); -lean_inc(x_8); -lean_dec(x_6); -lean_inc(x_7); -x_9 = l_Lean_mkSort(x_7); -lean_inc(x_2); -x_10 = l___private_Lean_Elab_App_3__mkArrow(x_2, x_9, x_4, x_8); -x_11 = lean_ctor_get(x_10, 0); +lean_dec(x_5); +lean_inc(x_6); +x_8 = l_Lean_mkSort(x_6); +lean_inc(x_1); +x_9 = l___private_Lean_Elab_App_3__mkArrow(x_1, x_8, x_3, x_7); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); lean_inc(x_11); -x_12 = lean_ctor_get(x_10, 1); -lean_inc(x_12); -lean_dec(x_10); -x_13 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_13, 0, x_11); -x_14 = 0; -x_15 = lean_box(0); -lean_inc(x_4); -x_16 = l_Lean_Elab_Term_mkFreshExprMVar(x_1, x_13, x_14, x_15, x_4, x_12); -x_17 = lean_ctor_get(x_16, 0); +lean_dec(x_9); +x_12 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_12, 0, x_10); +x_13 = 0; +x_14 = lean_box(0); +lean_inc(x_3); +x_15 = l_Lean_Elab_Term_mkFreshExprMVar(x_12, x_13, x_14, x_3, x_11); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); lean_inc(x_17); -x_18 = lean_ctor_get(x_16, 1); -lean_inc(x_18); -lean_dec(x_16); -lean_inc(x_4); -lean_inc(x_2); -x_19 = l_Lean_Elab_Term_getLevel(x_1, x_2, x_4, x_18); -if (lean_obj_tag(x_19) == 0) +lean_dec(x_15); +lean_inc(x_3); +lean_inc(x_1); +x_18 = l_Lean_Elab_Term_getLevel(x_1, x_3, x_17); +if (lean_obj_tag(x_18) == 0) { -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; uint8_t x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; uint8_t x_64; uint8_t x_65; lean_object* x_66; lean_object* x_67; -x_20 = lean_ctor_get(x_19, 0); +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; uint8_t x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; lean_object* x_38; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; uint8_t x_63; lean_object* x_64; uint8_t x_65; lean_object* x_66; lean_object* x_67; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); lean_inc(x_20); -x_21 = lean_ctor_get(x_19, 1); -lean_inc(x_21); -lean_dec(x_19); -x_22 = lean_box(0); +lean_dec(x_18); +x_21 = lean_box(0); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_6); +lean_ctor_set(x_22, 1, x_21); x_23 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_23, 0, x_7); +lean_ctor_set(x_23, 0, x_19); lean_ctor_set(x_23, 1, x_22); -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_20); -lean_ctor_set(x_24, 1, x_23); -x_25 = l___private_Lean_Elab_App_4__tryCoeFun___closed__2; -lean_inc(x_24); -x_26 = l_Lean_mkConst(x_25, x_24); -x_27 = l_Lean_mkAppStx___closed__9; -lean_inc(x_2); -x_28 = lean_array_push(x_27, x_2); -lean_inc(x_17); -x_29 = lean_array_push(x_28, x_17); -x_30 = lean_unsigned_to_nat(0u); -x_31 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_29, x_29, x_30, x_26); -lean_dec(x_29); -x_32 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_32, 0, x_31); -x_33 = 1; -lean_inc(x_4); -x_34 = l_Lean_Elab_Term_mkFreshExprMVar(x_1, x_32, x_33, x_15, x_4, x_21); -x_35 = lean_ctor_get(x_34, 0); +x_24 = l___private_Lean_Elab_App_4__tryCoeFun___closed__2; +lean_inc(x_23); +x_25 = l_Lean_mkConst(x_24, x_23); +x_26 = l_Lean_mkAppStx___closed__9; +lean_inc(x_1); +x_27 = lean_array_push(x_26, x_1); +lean_inc(x_16); +x_28 = lean_array_push(x_27, x_16); +x_29 = lean_unsigned_to_nat(0u); +x_30 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_28, x_28, x_29, x_25); +lean_dec(x_28); +x_31 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_31, 0, x_30); +x_32 = 1; +lean_inc(x_3); +x_33 = l_Lean_Elab_Term_mkFreshExprMVar(x_31, x_32, x_14, x_3, x_20); +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_33, 1); lean_inc(x_35); -x_36 = lean_ctor_get(x_34, 1); -lean_inc(x_36); -if (lean_is_exclusive(x_34)) { - lean_ctor_release(x_34, 0); - lean_ctor_release(x_34, 1); - x_37 = x_34; +if (lean_is_exclusive(x_33)) { + lean_ctor_release(x_33, 0); + lean_ctor_release(x_33, 1); + x_36 = x_33; } else { - lean_dec_ref(x_34); - x_37 = lean_box(0); + lean_dec_ref(x_33); + x_36 = lean_box(0); } -x_52 = l_Lean_Expr_mvarId_x21(x_35); -x_53 = lean_ctor_get(x_4, 0); +x_51 = l_Lean_Expr_mvarId_x21(x_34); +x_52 = lean_ctor_get(x_3, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_3, 1); lean_inc(x_53); -x_54 = lean_ctor_get(x_4, 1); +x_54 = lean_ctor_get(x_3, 2); lean_inc(x_54); -x_55 = lean_ctor_get(x_4, 2); +x_55 = lean_ctor_get(x_3, 3); lean_inc(x_55); -x_56 = lean_ctor_get(x_4, 3); +x_56 = lean_ctor_get(x_3, 4); lean_inc(x_56); -x_57 = lean_ctor_get(x_4, 4); +x_57 = lean_ctor_get(x_3, 5); lean_inc(x_57); -x_58 = lean_ctor_get(x_4, 5); +x_58 = lean_ctor_get(x_3, 6); lean_inc(x_58); -x_59 = lean_ctor_get(x_4, 6); +x_59 = lean_ctor_get(x_3, 7); lean_inc(x_59); -x_60 = lean_ctor_get(x_4, 7); +x_60 = lean_ctor_get(x_3, 8); lean_inc(x_60); -x_61 = lean_ctor_get(x_4, 8); +x_61 = lean_ctor_get(x_3, 9); lean_inc(x_61); -x_62 = lean_ctor_get(x_4, 9); -lean_inc(x_62); -x_63 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); -x_64 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); +x_62 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_63 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_64 = lean_ctor_get(x_3, 10); +lean_inc(x_64); x_65 = 0; -x_66 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_66, 0, x_53); -lean_ctor_set(x_66, 1, x_54); -lean_ctor_set(x_66, 2, x_55); -lean_ctor_set(x_66, 3, x_56); -lean_ctor_set(x_66, 4, x_57); -lean_ctor_set(x_66, 5, x_58); -lean_ctor_set(x_66, 6, x_59); -lean_ctor_set(x_66, 7, x_60); -lean_ctor_set(x_66, 8, x_61); -lean_ctor_set(x_66, 9, x_62); -lean_ctor_set_uint8(x_66, sizeof(void*)*10, x_63); -lean_ctor_set_uint8(x_66, sizeof(void*)*10 + 1, x_64); -lean_ctor_set_uint8(x_66, sizeof(void*)*10 + 2, x_65); -x_67 = l_Lean_Elab_Term_synthesizeInstMVarCore(x_1, x_52, x_66, x_36); +x_66 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_66, 0, x_52); +lean_ctor_set(x_66, 1, x_53); +lean_ctor_set(x_66, 2, x_54); +lean_ctor_set(x_66, 3, x_55); +lean_ctor_set(x_66, 4, x_56); +lean_ctor_set(x_66, 5, x_57); +lean_ctor_set(x_66, 6, x_58); +lean_ctor_set(x_66, 7, x_59); +lean_ctor_set(x_66, 8, x_60); +lean_ctor_set(x_66, 9, x_61); +lean_ctor_set(x_66, 10, x_64); +lean_ctor_set_uint8(x_66, sizeof(void*)*11, x_62); +lean_ctor_set_uint8(x_66, sizeof(void*)*11 + 1, x_63); +lean_ctor_set_uint8(x_66, sizeof(void*)*11 + 2, x_65); +x_67 = l_Lean_Elab_Term_synthesizeInstMVarCore(x_51, x_66, x_35); if (lean_obj_tag(x_67) == 0) { lean_object* x_68; lean_object* x_69; uint8_t x_70; @@ -1181,19 +1167,19 @@ lean_inc(x_69); lean_dec(x_67); x_70 = lean_unbox(x_68); lean_dec(x_68); -x_38 = x_70; -x_39 = x_69; -goto block_51; +x_37 = x_70; +x_38 = x_69; +goto block_50; } else { lean_object* x_71; lean_object* x_72; lean_object* x_73; -lean_dec(x_37); -lean_dec(x_35); -lean_dec(x_24); -lean_dec(x_17); -lean_dec(x_3); +lean_dec(x_36); +lean_dec(x_34); +lean_dec(x_23); +lean_dec(x_16); lean_dec(x_2); +lean_dec(x_1); x_71 = lean_ctor_get(x_67, 0); lean_inc(x_71); x_72 = lean_ctor_get(x_67, 1); @@ -1218,7 +1204,7 @@ x_84 = l___private_Lean_Elab_App_4__tryCoeFun___closed__7; x_85 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_85, 0, x_84); lean_ctor_set(x_85, 1, x_83); -x_86 = l_Lean_Elab_Term_throwError___rarg(x_1, x_85, x_4, x_72); +x_86 = l_Lean_Elab_Term_throwError___rarg(x_85, x_3, x_72); x_87 = !lean_is_exclusive(x_86); if (x_87 == 0) { @@ -1258,7 +1244,7 @@ block_80: lean_object* x_74; lean_object* x_75; uint8_t x_76; lean_dec(x_73); x_74 = l___private_Lean_Elab_App_4__tryCoeFun___closed__4; -x_75 = l_Lean_Elab_Term_throwError___rarg(x_1, x_74, x_4, x_72); +x_75 = l_Lean_Elab_Term_throwError___rarg(x_74, x_3, x_72); x_76 = !lean_is_exclusive(x_75); if (x_76 == 0) { @@ -1279,66 +1265,66 @@ return x_79; } } } -block_51: +block_50: { -if (x_38 == 0) +if (x_37 == 0) { -lean_object* x_40; lean_object* x_41; -lean_dec(x_37); -lean_dec(x_35); -lean_dec(x_24); -lean_dec(x_17); -lean_dec(x_3); +lean_object* x_39; lean_object* x_40; +lean_dec(x_36); +lean_dec(x_34); +lean_dec(x_23); +lean_dec(x_16); lean_dec(x_2); -x_40 = l___private_Lean_Elab_App_4__tryCoeFun___closed__4; -x_41 = l_Lean_Elab_Term_throwError___rarg(x_1, x_40, x_4, x_39); -return x_41; +lean_dec(x_1); +x_39 = l___private_Lean_Elab_App_4__tryCoeFun___closed__4; +x_40 = l_Lean_Elab_Term_throwError___rarg(x_39, x_3, x_38); +return x_40; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; -lean_dec(x_4); -x_42 = l___private_Lean_Elab_App_4__tryCoeFun___closed__6; -x_43 = l_Lean_mkConst(x_42, x_24); -x_44 = l_Std_PersistentHashMap_mkCollisionNode___rarg___closed__1; -x_45 = lean_array_push(x_44, x_2); -x_46 = lean_array_push(x_45, x_17); -x_47 = lean_array_push(x_46, x_3); -x_48 = lean_array_push(x_47, x_35); -x_49 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_48, x_48, x_30, x_43); -lean_dec(x_48); -if (lean_is_scalar(x_37)) { - x_50 = lean_alloc_ctor(0, 2, 0); +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +lean_dec(x_3); +x_41 = l___private_Lean_Elab_App_4__tryCoeFun___closed__6; +x_42 = l_Lean_mkConst(x_41, x_23); +x_43 = l_Std_PersistentHashMap_mkCollisionNode___rarg___closed__1; +x_44 = lean_array_push(x_43, x_1); +x_45 = lean_array_push(x_44, x_16); +x_46 = lean_array_push(x_45, x_2); +x_47 = lean_array_push(x_46, x_34); +x_48 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_47, x_47, x_29, x_42); +lean_dec(x_47); +if (lean_is_scalar(x_36)) { + x_49 = lean_alloc_ctor(0, 2, 0); } else { - x_50 = x_37; + x_49 = x_36; } -lean_ctor_set(x_50, 0, x_49); -lean_ctor_set(x_50, 1, x_39); -return x_50; +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_38); +return x_49; } } } else { uint8_t x_93; -lean_dec(x_17); -lean_dec(x_7); -lean_dec(x_4); +lean_dec(x_16); +lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); -x_93 = !lean_is_exclusive(x_19); +lean_dec(x_1); +x_93 = !lean_is_exclusive(x_18); if (x_93 == 0) { -return x_19; +return x_18; } else { lean_object* x_94; lean_object* x_95; lean_object* x_96; -x_94 = lean_ctor_get(x_19, 0); -x_95 = lean_ctor_get(x_19, 1); +x_94 = lean_ctor_get(x_18, 0); +x_95 = lean_ctor_get(x_18, 1); lean_inc(x_95); lean_inc(x_94); -lean_dec(x_19); +lean_dec(x_18); x_96 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_96, 0, x_94); lean_ctor_set(x_96, 1, x_95); @@ -1347,15 +1333,6 @@ return x_96; } } } -lean_object* l___private_Lean_Elab_App_4__tryCoeFun___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l___private_Lean_Elab_App_4__tryCoeFun(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_1); -return x_6; -} -} lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_App_5__getForallBody___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -2359,92 +2336,85 @@ uint8_t x_6; x_6 = lean_ctor_get_uint8(x_1, sizeof(void*)*7 + 1); if (x_6 == 0) { -lean_object* x_7; uint8_t x_8; -x_7 = lean_ctor_get(x_1, 6); +lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_7 = lean_ctor_get(x_1, 0); lean_inc(x_7); -x_8 = l_Array_isEmpty___rarg(x_7); +x_8 = lean_ctor_get(x_1, 6); +lean_inc(x_8); +x_9 = l_Array_isEmpty___rarg(x_8); +lean_dec(x_8); +if (x_9 == 0) +{ +lean_object* x_10; +x_10 = lean_ctor_get(x_1, 2); +lean_inc(x_10); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_dec(x_7); -if (x_8 == 0) -{ -lean_object* x_9; -x_9 = lean_ctor_get(x_1, 2); -lean_inc(x_9); -if (lean_obj_tag(x_9) == 0) -{ -lean_object* x_10; lean_object* x_11; lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -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_4); -return x_11; +x_11 = lean_box(0); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_4); +return x_12; } else { -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_12 = lean_ctor_get(x_9, 0); -lean_inc(x_12); -lean_dec(x_9); -x_13 = lean_ctor_get(x_1, 1); +lean_object* x_13; uint8_t x_14; +x_13 = lean_ctor_get(x_10, 0); lean_inc(x_13); -x_14 = lean_array_get_size(x_13); -lean_dec(x_13); -x_15 = lean_ctor_get(x_1, 3); -lean_inc(x_15); -x_16 = lean_nat_sub(x_14, x_15); +lean_dec(x_10); +x_14 = !lean_is_exclusive(x_3); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_15 = lean_ctor_get(x_3, 10); lean_dec(x_15); -lean_dec(x_14); -x_17 = lean_ctor_get(x_1, 4); -lean_inc(x_17); -x_18 = l___private_Lean_Elab_App_5__getForallBody___main(x_16, x_17, x_2); -if (lean_obj_tag(x_18) == 0) -{ -lean_object* x_19; lean_object* x_20; -lean_dec(x_12); -lean_dec(x_3); -lean_dec(x_1); -x_19 = lean_box(0); -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_4); -return x_20; -} -else -{ -lean_object* x_21; uint8_t x_22; -x_21 = lean_ctor_get(x_18, 0); -lean_inc(x_21); +lean_ctor_set(x_3, 10, x_7); +x_16 = lean_ctor_get(x_1, 1); +lean_inc(x_16); +x_17 = lean_array_get_size(x_16); +lean_dec(x_16); +x_18 = lean_ctor_get(x_1, 3); +lean_inc(x_18); +x_19 = lean_nat_sub(x_17, x_18); lean_dec(x_18); -x_22 = l_Lean_Expr_hasLooseBVars(x_21); -if (x_22 == 0) +lean_dec(x_17); +x_20 = lean_ctor_get(x_1, 4); +lean_inc(x_20); +x_21 = l___private_Lean_Elab_App_5__getForallBody___main(x_19, x_20, x_2); +if (lean_obj_tag(x_21) == 0) { -uint8_t x_23; -x_23 = l___private_Lean_Elab_App_6__hasTypeMVar(x_1, x_21); -if (x_23 == 0) -{ -lean_object* x_24; lean_object* x_25; -lean_dec(x_21); -lean_dec(x_12); +lean_object* x_22; lean_object* x_23; lean_dec(x_3); +lean_dec(x_13); lean_dec(x_1); -x_24 = lean_box(0); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, x_4); -return x_25; +x_22 = lean_box(0); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_4); +return x_23; } else { +lean_object* x_24; uint8_t x_25; +x_24 = lean_ctor_get(x_21, 0); +lean_inc(x_24); +lean_dec(x_21); +x_25 = l_Lean_Expr_hasLooseBVars(x_24); +if (x_25 == 0) +{ uint8_t x_26; -x_26 = l___private_Lean_Elab_App_7__hasOnlyTypeMVar(x_1, x_21); +x_26 = l___private_Lean_Elab_App_6__hasTypeMVar(x_1, x_24); if (x_26 == 0) { lean_object* x_27; lean_object* x_28; -lean_dec(x_21); -lean_dec(x_12); +lean_dec(x_24); lean_dec(x_3); +lean_dec(x_13); lean_dec(x_1); x_27 = lean_box(0); x_28 = lean_alloc_ctor(0, 2, 0); @@ -2454,84 +2424,82 @@ return x_28; } else { -lean_object* x_29; lean_object* x_30; -x_29 = lean_ctor_get(x_1, 0); -lean_inc(x_29); +uint8_t x_29; +x_29 = l___private_Lean_Elab_App_7__hasOnlyTypeMVar(x_1, x_24); lean_dec(x_1); -x_30 = l_Lean_Elab_Term_isDefEq(x_29, x_12, x_21, x_3, x_4); -lean_dec(x_29); -if (lean_obj_tag(x_30) == 0) +if (x_29 == 0) { -uint8_t x_31; -x_31 = !lean_is_exclusive(x_30); -if (x_31 == 0) -{ -lean_object* x_32; lean_object* x_33; -x_32 = lean_ctor_get(x_30, 0); -lean_dec(x_32); -x_33 = lean_box(0); -lean_ctor_set(x_30, 0, x_33); -return x_30; -} -else -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_30, 1); -lean_inc(x_34); -lean_dec(x_30); -x_35 = lean_box(0); -x_36 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_34); -return x_36; -} -} -else -{ -uint8_t x_37; -x_37 = !lean_is_exclusive(x_30); -if (x_37 == 0) -{ -return x_30; -} -else -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_30, 0); -x_39 = lean_ctor_get(x_30, 1); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_30); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -return x_40; -} -} -} -} -} -else -{ -lean_object* x_41; lean_object* x_42; -lean_dec(x_21); -lean_dec(x_12); +lean_object* x_30; lean_object* x_31; +lean_dec(x_24); lean_dec(x_3); -lean_dec(x_1); -x_41 = lean_box(0); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_4); +lean_dec(x_13); +x_30 = lean_box(0); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_4); +return x_31; +} +else +{ +lean_object* x_32; +x_32 = l_Lean_Elab_Term_isDefEq(x_13, x_24, x_3, x_4); +if (lean_obj_tag(x_32) == 0) +{ +uint8_t x_33; +x_33 = !lean_is_exclusive(x_32); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; +x_34 = lean_ctor_get(x_32, 0); +lean_dec(x_34); +x_35 = lean_box(0); +lean_ctor_set(x_32, 0, x_35); +return x_32; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_32, 1); +lean_inc(x_36); +lean_dec(x_32); +x_37 = lean_box(0); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_36); +return x_38; +} +} +else +{ +uint8_t x_39; +x_39 = !lean_is_exclusive(x_32); +if (x_39 == 0) +{ +return x_32; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_32, 0); +x_41 = lean_ctor_get(x_32, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_32); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); return x_42; } } } } +} else { lean_object* x_43; lean_object* x_44; +lean_dec(x_24); lean_dec(x_3); -lean_dec(x_2); +lean_dec(x_13); lean_dec(x_1); x_43 = lean_box(0); x_44 = lean_alloc_ctor(0, 2, 0); @@ -2540,30 +2508,223 @@ lean_ctor_set(x_44, 1, x_4); return x_44; } } +} else { -lean_object* x_45; lean_object* x_46; +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; lean_object* x_54; uint8_t x_55; uint8_t x_56; uint8_t x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_45 = lean_ctor_get(x_3, 0); +x_46 = lean_ctor_get(x_3, 1); +x_47 = lean_ctor_get(x_3, 2); +x_48 = lean_ctor_get(x_3, 3); +x_49 = lean_ctor_get(x_3, 4); +x_50 = lean_ctor_get(x_3, 5); +x_51 = lean_ctor_get(x_3, 6); +x_52 = lean_ctor_get(x_3, 7); +x_53 = lean_ctor_get(x_3, 8); +x_54 = lean_ctor_get(x_3, 9); +x_55 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_56 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_57 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +lean_inc(x_54); +lean_inc(x_53); +lean_inc(x_52); +lean_inc(x_51); +lean_inc(x_50); +lean_inc(x_49); +lean_inc(x_48); +lean_inc(x_47); +lean_inc(x_46); +lean_inc(x_45); lean_dec(x_3); -lean_dec(x_2); +x_58 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_58, 0, x_45); +lean_ctor_set(x_58, 1, x_46); +lean_ctor_set(x_58, 2, x_47); +lean_ctor_set(x_58, 3, x_48); +lean_ctor_set(x_58, 4, x_49); +lean_ctor_set(x_58, 5, x_50); +lean_ctor_set(x_58, 6, x_51); +lean_ctor_set(x_58, 7, x_52); +lean_ctor_set(x_58, 8, x_53); +lean_ctor_set(x_58, 9, x_54); +lean_ctor_set(x_58, 10, x_7); +lean_ctor_set_uint8(x_58, sizeof(void*)*11, x_55); +lean_ctor_set_uint8(x_58, sizeof(void*)*11 + 1, x_56); +lean_ctor_set_uint8(x_58, sizeof(void*)*11 + 2, x_57); +x_59 = lean_ctor_get(x_1, 1); +lean_inc(x_59); +x_60 = lean_array_get_size(x_59); +lean_dec(x_59); +x_61 = lean_ctor_get(x_1, 3); +lean_inc(x_61); +x_62 = lean_nat_sub(x_60, x_61); +lean_dec(x_61); +lean_dec(x_60); +x_63 = lean_ctor_get(x_1, 4); +lean_inc(x_63); +x_64 = l___private_Lean_Elab_App_5__getForallBody___main(x_62, x_63, x_2); +if (lean_obj_tag(x_64) == 0) +{ +lean_object* x_65; lean_object* x_66; +lean_dec(x_58); +lean_dec(x_13); lean_dec(x_1); -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_4); -return x_46; +x_65 = lean_box(0); +x_66 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_4); +return x_66; +} +else +{ +lean_object* x_67; uint8_t x_68; +x_67 = lean_ctor_get(x_64, 0); +lean_inc(x_67); +lean_dec(x_64); +x_68 = l_Lean_Expr_hasLooseBVars(x_67); +if (x_68 == 0) +{ +uint8_t x_69; +x_69 = l___private_Lean_Elab_App_6__hasTypeMVar(x_1, x_67); +if (x_69 == 0) +{ +lean_object* x_70; lean_object* x_71; +lean_dec(x_67); +lean_dec(x_58); +lean_dec(x_13); +lean_dec(x_1); +x_70 = lean_box(0); +x_71 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_71, 0, x_70); +lean_ctor_set(x_71, 1, x_4); +return x_71; +} +else +{ +uint8_t x_72; +x_72 = l___private_Lean_Elab_App_7__hasOnlyTypeMVar(x_1, x_67); +lean_dec(x_1); +if (x_72 == 0) +{ +lean_object* x_73; lean_object* x_74; +lean_dec(x_67); +lean_dec(x_58); +lean_dec(x_13); +x_73 = lean_box(0); +x_74 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_74, 0, x_73); +lean_ctor_set(x_74, 1, x_4); +return x_74; +} +else +{ +lean_object* x_75; +x_75 = l_Lean_Elab_Term_isDefEq(x_13, x_67, x_58, x_4); +if (lean_obj_tag(x_75) == 0) +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_76 = lean_ctor_get(x_75, 1); +lean_inc(x_76); +if (lean_is_exclusive(x_75)) { + lean_ctor_release(x_75, 0); + lean_ctor_release(x_75, 1); + x_77 = x_75; +} else { + lean_dec_ref(x_75); + x_77 = lean_box(0); +} +x_78 = lean_box(0); +if (lean_is_scalar(x_77)) { + x_79 = lean_alloc_ctor(0, 2, 0); +} else { + x_79 = x_77; +} +lean_ctor_set(x_79, 0, x_78); +lean_ctor_set(x_79, 1, x_76); +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_75, 0); +lean_inc(x_80); +x_81 = lean_ctor_get(x_75, 1); +lean_inc(x_81); +if (lean_is_exclusive(x_75)) { + lean_ctor_release(x_75, 0); + lean_ctor_release(x_75, 1); + x_82 = x_75; +} else { + lean_dec_ref(x_75); + 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; +} +} } } else { -lean_object* x_47; lean_object* x_48; +lean_object* x_84; lean_object* x_85; +lean_dec(x_67); +lean_dec(x_58); +lean_dec(x_13); +lean_dec(x_1); +x_84 = lean_box(0); +x_85 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_4); +return x_85; +} +} +} +} +} +else +{ +lean_object* x_86; lean_object* x_87; +lean_dec(x_7); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_47 = lean_box(0); -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_4); -return x_48; +x_86 = lean_box(0); +x_87 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_87, 0, x_86); +lean_ctor_set(x_87, 1, x_4); +return x_87; +} +} +else +{ +lean_object* x_88; lean_object* x_89; +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_88 = lean_box(0); +x_89 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_89, 0, x_88); +lean_ctor_set(x_89, 1, x_4); +return x_89; +} +} +else +{ +lean_object* x_90; lean_object* x_91; +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_90 = lean_box(0); +x_91 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_91, 0, x_90); +lean_ctor_set(x_91, 1, x_4); +return x_91; } } } @@ -2995,7 +3156,7 @@ return x_3; lean_object* l___private_Lean_Elab_App_10__elabAppArgsAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; +lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; x_6 = lean_ctor_get(x_1, 0); lean_inc(x_6); x_7 = lean_ctor_get(x_1, 1); @@ -3011,39 +3172,47 @@ x_12 = lean_ctor_get(x_1, 5); lean_inc(x_12); x_13 = lean_ctor_get(x_1, 6); lean_inc(x_13); -x_14 = lean_ctor_get_uint8(x_1, sizeof(void*)*7 + 1); +x_14 = !lean_is_exclusive(x_4); +if (x_14 == 0) +{ +uint8_t x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get_uint8(x_1, sizeof(void*)*7 + 1); +x_16 = lean_ctor_get(x_4, 10); +lean_dec(x_16); +lean_inc(x_6); +lean_ctor_set(x_4, 10, x_6); lean_inc(x_4); lean_inc(x_3); -x_15 = l_Lean_Elab_Term_whnfForall(x_6, x_3, x_4, x_5); -if (lean_obj_tag(x_15) == 0) +x_17 = l_Lean_Elab_Term_whnfForall(x_3, x_4, x_5); +if (lean_obj_tag(x_17) == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); -lean_inc(x_17); -lean_dec(x_15); -if (lean_obj_tag(x_16) == 7) +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +if (lean_obj_tag(x_18) == 7) { -lean_object* x_90; lean_object* x_91; lean_object* x_92; uint64_t x_93; lean_object* x_94; lean_object* x_95; -x_90 = lean_ctor_get(x_16, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_16, 1); -lean_inc(x_91); -x_92 = lean_ctor_get(x_16, 2); -lean_inc(x_92); -x_93 = lean_ctor_get_uint64(x_16, sizeof(void*)*3); -x_94 = lean_unsigned_to_nat(0u); -x_95 = l_Array_findIdxAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__1(x_90, x_11, x_94); -if (lean_obj_tag(x_95) == 0) +lean_object* x_95; lean_object* x_96; lean_object* x_97; uint64_t x_98; lean_object* x_99; lean_object* x_100; +x_95 = lean_ctor_get(x_18, 0); +lean_inc(x_95); +x_96 = lean_ctor_get(x_18, 1); +lean_inc(x_96); +x_97 = lean_ctor_get(x_18, 2); +lean_inc(x_97); +x_98 = lean_ctor_get_uint64(x_18, sizeof(void*)*3); +x_99 = lean_unsigned_to_nat(0u); +x_100 = l_Array_findIdxAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__1(x_95, x_11, x_99); +if (lean_obj_tag(x_100) == 0) { -uint8_t x_96; -x_96 = (uint8_t)((x_93 << 24) >> 61); -switch (x_96) { +uint8_t x_101; +x_101 = (uint8_t)((x_98 << 24) >> 61); +switch (x_101) { case 0: { -uint8_t x_97; lean_object* x_98; lean_object* x_99; uint8_t x_100; lean_object* x_101; uint8_t x_102; -x_97 = 1; +uint8_t x_102; lean_object* x_103; lean_object* x_104; uint8_t x_105; lean_object* x_106; uint8_t x_107; +x_102 = 1; lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); @@ -3051,47 +3220,47 @@ lean_inc(x_10); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_98 = lean_alloc_ctor(0, 7, 2); -lean_ctor_set(x_98, 0, x_6); -lean_ctor_set(x_98, 1, x_7); -lean_ctor_set(x_98, 2, x_8); -lean_ctor_set(x_98, 3, x_10); -lean_ctor_set(x_98, 4, x_11); -lean_ctor_set(x_98, 5, x_12); -lean_ctor_set(x_98, 6, x_13); -lean_ctor_set_uint8(x_98, sizeof(void*)*7, x_9); -lean_ctor_set_uint8(x_98, sizeof(void*)*7 + 1, x_97); -x_99 = lean_array_get_size(x_7); -x_100 = lean_nat_dec_lt(x_10, x_99); -lean_dec(x_99); +x_103 = lean_alloc_ctor(0, 7, 2); +lean_ctor_set(x_103, 0, x_6); +lean_ctor_set(x_103, 1, x_7); +lean_ctor_set(x_103, 2, x_8); +lean_ctor_set(x_103, 3, x_10); +lean_ctor_set(x_103, 4, x_11); +lean_ctor_set(x_103, 5, x_12); +lean_ctor_set(x_103, 6, x_13); +lean_ctor_set_uint8(x_103, sizeof(void*)*7, x_9); +lean_ctor_set_uint8(x_103, sizeof(void*)*7 + 1, x_102); +x_104 = lean_array_get_size(x_7); +x_105 = lean_nat_dec_lt(x_10, x_104); +lean_dec(x_104); lean_inc(x_4); lean_inc(x_1); -x_101 = l___private_Lean_Elab_App_8__propagateExpectedType(x_1, x_16, x_4, x_17); -x_102 = !lean_is_exclusive(x_1); -if (x_102 == 0) +x_106 = l___private_Lean_Elab_App_8__propagateExpectedType(x_1, x_18, x_4, x_19); +x_107 = !lean_is_exclusive(x_1); +if (x_107 == 0) { -lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_103 = lean_ctor_get(x_1, 6); -lean_dec(x_103); -x_104 = lean_ctor_get(x_1, 5); -lean_dec(x_104); -x_105 = lean_ctor_get(x_1, 4); -lean_dec(x_105); -x_106 = lean_ctor_get(x_1, 3); -lean_dec(x_106); -x_107 = lean_ctor_get(x_1, 2); -lean_dec(x_107); -x_108 = lean_ctor_get(x_1, 1); +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_108 = lean_ctor_get(x_1, 6); lean_dec(x_108); -x_109 = lean_ctor_get(x_1, 0); +x_109 = lean_ctor_get(x_1, 5); lean_dec(x_109); -if (lean_obj_tag(x_101) == 0) +x_110 = lean_ctor_get(x_1, 4); +lean_dec(x_110); +x_111 = lean_ctor_get(x_1, 3); +lean_dec(x_111); +x_112 = lean_ctor_get(x_1, 2); +lean_dec(x_112); +x_113 = lean_ctor_get(x_1, 1); +lean_dec(x_113); +x_114 = lean_ctor_get(x_1, 0); +lean_dec(x_114); +if (lean_obj_tag(x_106) == 0) { -lean_object* x_110; lean_object* x_111; -x_110 = lean_ctor_get(x_101, 1); -lean_inc(x_110); -lean_dec(x_101); -if (x_100 == 0) +lean_object* x_115; lean_object* x_116; +x_115 = lean_ctor_get(x_106, 1); +lean_inc(x_115); +lean_dec(x_106); +if (x_105 == 0) { lean_free_object(x_1); lean_dec(x_13); @@ -3099,313 +3268,316 @@ lean_dec(x_10); lean_dec(x_7); if (x_9 == 0) { -lean_object* x_165; -x_165 = l_Lean_Expr_getOptParamDefault_x3f(x_91); -if (lean_obj_tag(x_165) == 0) -{ -lean_object* x_166; -x_166 = l_Lean_Expr_getAutoParamTactic_x3f(x_91); -if (lean_obj_tag(x_166) == 0) -{ -lean_object* x_167; -lean_dec(x_98); -lean_dec(x_92); -lean_dec(x_91); -x_167 = lean_box(0); -x_111 = x_167; -goto block_164; -} -else -{ -lean_object* x_168; -lean_dec(x_90); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_8); -lean_dec(x_3); -x_168 = lean_ctor_get(x_166, 0); -lean_inc(x_168); -lean_dec(x_166); -if (lean_obj_tag(x_168) == 4) -{ -lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; -x_169 = lean_ctor_get(x_168, 0); -lean_inc(x_169); -lean_dec(x_168); -x_170 = l_Lean_Elab_Term_getEnv___rarg(x_110); -x_171 = lean_ctor_get(x_170, 0); -lean_inc(x_171); -x_172 = lean_ctor_get(x_170, 1); -lean_inc(x_172); -lean_dec(x_170); -x_173 = l___private_Lean_Elab_Util_1__evalSyntaxConstantUnsafe(x_171, x_169); +lean_object* x_173; +x_173 = l_Lean_Expr_getOptParamDefault_x3f(x_96); if (lean_obj_tag(x_173) == 0) { -lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; -lean_dec(x_98); -lean_dec(x_92); -lean_dec(x_91); -lean_dec(x_2); -x_174 = lean_ctor_get(x_173, 0); -lean_inc(x_174); -lean_dec(x_173); -x_175 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_175, 0, x_174); -x_176 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_176, 0, x_175); -x_177 = l_Lean_Elab_Term_throwError___rarg(x_6, x_176, x_4, x_172); +lean_object* x_174; +x_174 = l_Lean_Expr_getAutoParamTactic_x3f(x_96); +if (lean_obj_tag(x_174) == 0) +{ +lean_object* x_175; +lean_dec(x_103); +lean_dec(x_97); +lean_dec(x_96); lean_dec(x_6); -return x_177; +x_175 = lean_box(0); +x_116 = x_175; +goto block_172; } else { -lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; -x_178 = lean_ctor_get(x_173, 0); -lean_inc(x_178); -lean_dec(x_173); -x_179 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_172); -x_180 = lean_ctor_get(x_179, 1); +lean_object* x_176; +lean_dec(x_95); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_8); +lean_dec(x_3); +x_176 = lean_ctor_get(x_174, 0); +lean_inc(x_176); +lean_dec(x_174); +if (lean_obj_tag(x_176) == 4) +{ +lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; +x_177 = lean_ctor_get(x_176, 0); +lean_inc(x_177); +lean_dec(x_176); +x_178 = l_Lean_Elab_Term_getEnv___rarg(x_115); +x_179 = lean_ctor_get(x_178, 0); +lean_inc(x_179); +x_180 = lean_ctor_get(x_178, 1); lean_inc(x_180); -lean_dec(x_179); -x_181 = l_Lean_Elab_Term_getMainModule___rarg(x_180); -x_182 = lean_ctor_get(x_181, 1); +lean_dec(x_178); +x_181 = l___private_Lean_Elab_Util_1__evalSyntaxConstantUnsafe(x_179, x_177); +if (lean_obj_tag(x_181) == 0) +{ +lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; +lean_dec(x_103); +lean_dec(x_97); +lean_dec(x_96); +lean_dec(x_6); +lean_dec(x_2); +x_182 = lean_ctor_get(x_181, 0); lean_inc(x_182); lean_dec(x_181); -x_183 = l_Lean_Syntax_getArgs(x_178); -lean_dec(x_178); -x_184 = l_Array_empty___closed__1; -x_185 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_183, x_183, x_94, x_184); -lean_dec(x_183); -x_186 = l_Lean_nullKind___closed__2; -x_187 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_187, 0, x_186); -lean_ctor_set(x_187, 1, x_185); -x_188 = lean_array_push(x_184, x_187); -x_189 = l_Lean_PrettyPrinter_Parenthesizer_tacticParser_parenthesizer___lambda__1___closed__4; -x_190 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_190, 0, x_189); -lean_ctor_set(x_190, 1, x_188); -x_191 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__15; -x_192 = lean_array_push(x_191, x_190); -x_193 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__16; -x_194 = lean_array_push(x_192, x_193); -x_195 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; -x_196 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_196, 0, x_195); -lean_ctor_set(x_196, 1, x_194); -x_197 = l_Lean_Syntax_getHeadInfo___main(x_6); -x_198 = l_Lean_Expr_getAppNumArgsAux___main(x_91, x_94); -x_199 = lean_nat_sub(x_198, x_94); -lean_dec(x_198); -x_200 = lean_unsigned_to_nat(1u); -x_201 = lean_nat_sub(x_199, x_200); -lean_dec(x_199); -x_202 = l_Lean_Expr_getRevArg_x21___main(x_91, x_201); -lean_dec(x_91); -if (lean_obj_tag(x_197) == 0) -{ -lean_object* x_203; lean_object* x_204; -x_203 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_203, 0, x_196); -lean_inc(x_4); -lean_inc(x_2); -x_204 = l___private_Lean_Elab_App_2__elabArg(x_6, x_2, x_203, x_202, x_4, x_182); -if (lean_obj_tag(x_204) == 0) -{ -lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; -x_205 = lean_ctor_get(x_204, 0); -lean_inc(x_205); -x_206 = lean_ctor_get(x_204, 1); -lean_inc(x_206); -lean_dec(x_204); -lean_inc(x_205); -x_207 = l_Lean_mkApp(x_2, x_205); -x_208 = lean_expr_instantiate1(x_92, x_205); -lean_dec(x_205); -lean_dec(x_92); -x_1 = x_98; -x_2 = x_207; -x_3 = x_208; -x_5 = x_206; -goto _start; +x_183 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_183, 0, x_182); +x_184 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_184, 0, x_183); +x_185 = l_Lean_Elab_Term_throwError___rarg(x_184, x_4, x_180); +return x_185; } else { -uint8_t x_210; -lean_dec(x_98); -lean_dec(x_92); -lean_dec(x_4); -lean_dec(x_2); -x_210 = !lean_is_exclusive(x_204); -if (x_210 == 0) -{ -return x_204; -} -else -{ -lean_object* x_211; lean_object* x_212; lean_object* x_213; -x_211 = lean_ctor_get(x_204, 0); -x_212 = lean_ctor_get(x_204, 1); -lean_inc(x_212); -lean_inc(x_211); -lean_dec(x_204); -x_213 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_213, 0, x_211); -lean_ctor_set(x_213, 1, x_212); -return x_213; -} -} -} -else -{ -lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; -x_214 = lean_ctor_get(x_197, 0); -lean_inc(x_214); -lean_dec(x_197); -x_215 = l_Lean_Syntax_replaceInfo___main(x_214, x_196); -x_216 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_216, 0, x_215); -lean_inc(x_4); -lean_inc(x_2); -x_217 = l___private_Lean_Elab_App_2__elabArg(x_6, x_2, x_216, x_202, x_4, x_182); -if (lean_obj_tag(x_217) == 0) -{ -lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; -x_218 = lean_ctor_get(x_217, 0); -lean_inc(x_218); -x_219 = lean_ctor_get(x_217, 1); -lean_inc(x_219); -lean_dec(x_217); -lean_inc(x_218); -x_220 = l_Lean_mkApp(x_2, x_218); -x_221 = lean_expr_instantiate1(x_92, x_218); -lean_dec(x_218); -lean_dec(x_92); -x_1 = x_98; -x_2 = x_220; -x_3 = x_221; -x_5 = x_219; -goto _start; -} -else -{ -uint8_t x_223; -lean_dec(x_98); -lean_dec(x_92); -lean_dec(x_4); -lean_dec(x_2); -x_223 = !lean_is_exclusive(x_217); -if (x_223 == 0) -{ -return x_217; -} -else -{ -lean_object* x_224; lean_object* x_225; lean_object* x_226; -x_224 = lean_ctor_get(x_217, 0); -x_225 = lean_ctor_get(x_217, 1); -lean_inc(x_225); -lean_inc(x_224); -lean_dec(x_217); -x_226 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_226, 0, x_224); -lean_ctor_set(x_226, 1, x_225); -return x_226; -} -} -} -} -} -else -{ -lean_object* x_227; lean_object* x_228; -lean_dec(x_168); -lean_dec(x_98); -lean_dec(x_92); -lean_dec(x_91); -lean_dec(x_2); -x_227 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__12; -x_228 = l_Lean_Elab_Term_throwError___rarg(x_6, x_227, x_4, x_110); +lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; +x_186 = lean_ctor_get(x_181, 0); +lean_inc(x_186); +lean_dec(x_181); +x_187 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_180); +x_188 = lean_ctor_get(x_187, 1); +lean_inc(x_188); +lean_dec(x_187); +x_189 = l_Lean_Elab_Term_getMainModule___rarg(x_188); +x_190 = lean_ctor_get(x_189, 1); +lean_inc(x_190); +lean_dec(x_189); +x_191 = l_Lean_Syntax_getArgs(x_186); +lean_dec(x_186); +x_192 = l_Array_empty___closed__1; +x_193 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_191, x_191, x_99, x_192); +lean_dec(x_191); +x_194 = l_Lean_nullKind___closed__2; +x_195 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_195, 0, x_194); +lean_ctor_set(x_195, 1, x_193); +x_196 = lean_array_push(x_192, x_195); +x_197 = l_Lean_PrettyPrinter_Parenthesizer_tacticParser_parenthesizer___lambda__1___closed__4; +x_198 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_198, 0, x_197); +lean_ctor_set(x_198, 1, x_196); +x_199 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__15; +x_200 = lean_array_push(x_199, x_198); +x_201 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__16; +x_202 = lean_array_push(x_200, x_201); +x_203 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; +x_204 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_204, 0, x_203); +lean_ctor_set(x_204, 1, x_202); +x_205 = l_Lean_Syntax_getHeadInfo___main(x_6); lean_dec(x_6); -return x_228; +x_206 = l_Lean_Expr_getAppNumArgsAux___main(x_96, x_99); +x_207 = lean_nat_sub(x_206, x_99); +lean_dec(x_206); +x_208 = lean_unsigned_to_nat(1u); +x_209 = lean_nat_sub(x_207, x_208); +lean_dec(x_207); +x_210 = l_Lean_Expr_getRevArg_x21___main(x_96, x_209); +lean_dec(x_96); +if (lean_obj_tag(x_205) == 0) +{ +lean_object* x_211; lean_object* x_212; +x_211 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_211, 0, x_204); +lean_inc(x_4); +lean_inc(x_2); +x_212 = l___private_Lean_Elab_App_2__elabArg(x_2, x_211, x_210, x_4, x_190); +if (lean_obj_tag(x_212) == 0) +{ +lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; +x_213 = lean_ctor_get(x_212, 0); +lean_inc(x_213); +x_214 = lean_ctor_get(x_212, 1); +lean_inc(x_214); +lean_dec(x_212); +lean_inc(x_213); +x_215 = l_Lean_mkApp(x_2, x_213); +x_216 = lean_expr_instantiate1(x_97, x_213); +lean_dec(x_213); +lean_dec(x_97); +x_1 = x_103; +x_2 = x_215; +x_3 = x_216; +x_5 = x_214; +goto _start; +} +else +{ +uint8_t x_218; +lean_dec(x_103); +lean_dec(x_97); +lean_dec(x_4); +lean_dec(x_2); +x_218 = !lean_is_exclusive(x_212); +if (x_218 == 0) +{ +return x_212; +} +else +{ +lean_object* x_219; lean_object* x_220; lean_object* x_221; +x_219 = lean_ctor_get(x_212, 0); +x_220 = lean_ctor_get(x_212, 1); +lean_inc(x_220); +lean_inc(x_219); +lean_dec(x_212); +x_221 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_221, 0, x_219); +lean_ctor_set(x_221, 1, x_220); +return x_221; } } } else { -lean_object* x_229; lean_object* x_230; lean_object* x_231; -lean_dec(x_91); -lean_dec(x_90); +lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; +x_222 = lean_ctor_get(x_205, 0); +lean_inc(x_222); +lean_dec(x_205); +x_223 = l_Lean_Syntax_replaceInfo___main(x_222, x_204); +x_224 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_224, 0, x_223); +lean_inc(x_4); +lean_inc(x_2); +x_225 = l___private_Lean_Elab_App_2__elabArg(x_2, x_224, x_210, x_4, x_190); +if (lean_obj_tag(x_225) == 0) +{ +lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; +x_226 = lean_ctor_get(x_225, 0); +lean_inc(x_226); +x_227 = lean_ctor_get(x_225, 1); +lean_inc(x_227); +lean_dec(x_225); +lean_inc(x_226); +x_228 = l_Lean_mkApp(x_2, x_226); +x_229 = lean_expr_instantiate1(x_97, x_226); +lean_dec(x_226); +lean_dec(x_97); +x_1 = x_103; +x_2 = x_228; +x_3 = x_229; +x_5 = x_227; +goto _start; +} +else +{ +uint8_t x_231; +lean_dec(x_103); +lean_dec(x_97); +lean_dec(x_4); +lean_dec(x_2); +x_231 = !lean_is_exclusive(x_225); +if (x_231 == 0) +{ +return x_225; +} +else +{ +lean_object* x_232; lean_object* x_233; lean_object* x_234; +x_232 = lean_ctor_get(x_225, 0); +x_233 = lean_ctor_get(x_225, 1); +lean_inc(x_233); +lean_inc(x_232); +lean_dec(x_225); +x_234 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_234, 0, x_232); +lean_ctor_set(x_234, 1, x_233); +return x_234; +} +} +} +} +} +else +{ +lean_object* x_235; lean_object* x_236; +lean_dec(x_176); +lean_dec(x_103); +lean_dec(x_97); +lean_dec(x_96); +lean_dec(x_6); +lean_dec(x_2); +x_235 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__12; +x_236 = l_Lean_Elab_Term_throwError___rarg(x_235, x_4, x_115); +return x_236; +} +} +} +else +{ +lean_object* x_237; lean_object* x_238; lean_object* x_239; +lean_dec(x_96); +lean_dec(x_95); lean_dec(x_12); lean_dec(x_11); lean_dec(x_8); lean_dec(x_6); lean_dec(x_3); -x_229 = lean_ctor_get(x_165, 0); -lean_inc(x_229); -lean_dec(x_165); -lean_inc(x_229); -x_230 = l_Lean_mkApp(x_2, x_229); -x_231 = lean_expr_instantiate1(x_92, x_229); -lean_dec(x_229); -lean_dec(x_92); -x_1 = x_98; -x_2 = x_230; -x_3 = x_231; -x_5 = x_110; +x_237 = lean_ctor_get(x_173, 0); +lean_inc(x_237); +lean_dec(x_173); +lean_inc(x_237); +x_238 = l_Lean_mkApp(x_2, x_237); +x_239 = lean_expr_instantiate1(x_97, x_237); +lean_dec(x_237); +lean_dec(x_97); +x_1 = x_103; +x_2 = x_238; +x_3 = x_239; +x_5 = x_115; goto _start; } } else { -lean_object* x_233; -lean_dec(x_98); -lean_dec(x_92); -lean_dec(x_91); -x_233 = lean_box(0); -x_111 = x_233; -goto block_164; +lean_object* x_241; +lean_dec(x_103); +lean_dec(x_97); +lean_dec(x_96); +lean_dec(x_6); +x_241 = lean_box(0); +x_116 = x_241; +goto block_172; } } else { -lean_object* x_234; lean_object* x_235; -lean_dec(x_98); -lean_dec(x_90); +lean_object* x_242; lean_object* x_243; +lean_dec(x_103); +lean_dec(x_95); lean_dec(x_3); -x_234 = lean_array_fget(x_7, x_10); +x_242 = lean_array_fget(x_7, x_10); lean_inc(x_4); lean_inc(x_2); -lean_inc(x_6); -x_235 = l___private_Lean_Elab_App_2__elabArg(x_6, x_2, x_234, x_91, x_4, x_110); -if (lean_obj_tag(x_235) == 0) +x_243 = l___private_Lean_Elab_App_2__elabArg(x_2, x_242, x_96, x_4, x_115); +if (lean_obj_tag(x_243) == 0) { -lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; -x_236 = lean_ctor_get(x_235, 0); -lean_inc(x_236); -x_237 = lean_ctor_get(x_235, 1); -lean_inc(x_237); -lean_dec(x_235); -x_238 = lean_unsigned_to_nat(1u); -x_239 = lean_nat_add(x_10, x_238); +lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; +x_244 = lean_ctor_get(x_243, 0); +lean_inc(x_244); +x_245 = lean_ctor_get(x_243, 1); +lean_inc(x_245); +lean_dec(x_243); +x_246 = lean_unsigned_to_nat(1u); +x_247 = lean_nat_add(x_10, x_246); lean_dec(x_10); -lean_ctor_set(x_1, 3, x_239); -lean_ctor_set_uint8(x_1, sizeof(void*)*7 + 1, x_97); -lean_inc(x_236); -x_240 = l_Lean_mkApp(x_2, x_236); -x_241 = lean_expr_instantiate1(x_92, x_236); -lean_dec(x_236); -lean_dec(x_92); -x_2 = x_240; -x_3 = x_241; -x_5 = x_237; +lean_ctor_set(x_1, 3, x_247); +lean_ctor_set_uint8(x_1, sizeof(void*)*7 + 1, x_102); +lean_inc(x_244); +x_248 = l_Lean_mkApp(x_2, x_244); +x_249 = lean_expr_instantiate1(x_97, x_244); +lean_dec(x_244); +lean_dec(x_97); +x_2 = x_248; +x_3 = x_249; +x_5 = x_245; goto _start; } else { -uint8_t x_243; +uint8_t x_251; lean_free_object(x_1); -lean_dec(x_92); +lean_dec(x_97); +lean_dec(x_4); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -3413,247 +3585,252 @@ lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_4); lean_dec(x_2); -x_243 = !lean_is_exclusive(x_235); -if (x_243 == 0) +x_251 = !lean_is_exclusive(x_243); +if (x_251 == 0) { -return x_235; +return x_243; } else { -lean_object* x_244; lean_object* x_245; lean_object* x_246; -x_244 = lean_ctor_get(x_235, 0); -x_245 = lean_ctor_get(x_235, 1); -lean_inc(x_245); -lean_inc(x_244); -lean_dec(x_235); -x_246 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_246, 0, x_244); -lean_ctor_set(x_246, 1, x_245); -return x_246; +lean_object* x_252; lean_object* x_253; lean_object* x_254; +x_252 = lean_ctor_get(x_243, 0); +x_253 = lean_ctor_get(x_243, 1); +lean_inc(x_253); +lean_inc(x_252); +lean_dec(x_243); +x_254 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_254, 0, x_252); +lean_ctor_set(x_254, 1, x_253); +return x_254; } } } -block_164: +block_172: { -uint8_t x_112; -lean_dec(x_111); -x_112 = l_Array_isEmpty___rarg(x_11); -if (x_112 == 0) +uint8_t x_117; +lean_dec(x_116); +x_117 = l_Array_isEmpty___rarg(x_11); +if (x_117 == 0) { -lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; +lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_dec(x_12); lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); -x_113 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_113, 0, x_90); -x_114 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; -x_115 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_115, 0, x_114); -lean_ctor_set(x_115, 1, x_113); -x_116 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; -x_117 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_117, 0, x_115); -lean_ctor_set(x_117, 1, x_116); -x_118 = x_11; -x_119 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(x_94, x_118); -x_120 = x_119; -x_121 = l_Array_toList___rarg(x_120); -lean_dec(x_120); -x_122 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_121); -x_123 = l_Array_HasRepr___rarg___closed__1; -x_124 = lean_string_append(x_123, x_122); -lean_dec(x_122); -x_125 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_125, 0, x_124); -x_126 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_126, 0, x_125); -x_127 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_127, 0, x_117); -lean_ctor_set(x_127, 1, x_126); -x_128 = l_Lean_Elab_Term_throwError___rarg(x_6, x_127, x_4, x_110); -lean_dec(x_6); -return x_128; +x_118 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_118, 0, x_95); +x_119 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_120 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_120, 0, x_119); +lean_ctor_set(x_120, 1, x_118); +x_121 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_122 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_122, 0, x_120); +lean_ctor_set(x_122, 1, x_121); +x_123 = x_11; +x_124 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(x_99, x_123); +x_125 = x_124; +x_126 = l_Array_toList___rarg(x_125); +lean_dec(x_125); +x_127 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_126); +x_128 = l_Array_HasRepr___rarg___closed__1; +x_129 = lean_string_append(x_128, x_127); +lean_dec(x_127); +x_130 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_130, 0, x_129); +x_131 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_131, 0, x_130); +x_132 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_132, 0, x_122); +lean_ctor_set(x_132, 1, x_131); +x_133 = l_Lean_Elab_Term_throwError___rarg(x_132, x_4, x_115); +return x_133; } else { -lean_object* x_129; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; uint8_t x_160; -lean_dec(x_90); +lean_object* x_134; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; uint8_t x_168; +lean_dec(x_95); lean_dec(x_11); -x_156 = l_Lean_Elab_Term_getOptions(x_4, x_110); -x_157 = lean_ctor_get(x_156, 0); -lean_inc(x_157); -x_158 = lean_ctor_get(x_156, 1); -lean_inc(x_158); -lean_dec(x_156); -x_159 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; -x_160 = l_Lean_checkTraceOption(x_157, x_159); -lean_dec(x_157); -if (x_160 == 0) +x_161 = l_Lean_Elab_Term_getOptions(x_4, x_115); +x_162 = lean_ctor_get(x_161, 0); +lean_inc(x_162); +x_163 = lean_ctor_get(x_161, 1); +lean_inc(x_163); +lean_dec(x_161); +x_164 = l_Lean_Elab_Term_getCurrRef(x_4, x_163); +x_165 = lean_ctor_get(x_164, 0); +lean_inc(x_165); +x_166 = lean_ctor_get(x_164, 1); +lean_inc(x_166); +lean_dec(x_164); +x_167 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_168 = l_Lean_checkTraceOption(x_162, x_167); +lean_dec(x_162); +if (x_168 == 0) { -x_129 = x_158; -goto block_155; +lean_dec(x_165); +x_134 = x_166; +goto block_160; } else { -lean_object* x_161; lean_object* x_162; lean_object* x_163; +lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_inc(x_2); -x_161 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_161, 0, x_2); +x_169 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_169, 0, x_2); lean_inc(x_4); -x_162 = l_Lean_Elab_Term_logTrace(x_159, x_6, x_161, x_4, x_158); -x_163 = lean_ctor_get(x_162, 1); -lean_inc(x_163); -lean_dec(x_162); -x_129 = x_163; -goto block_155; +x_170 = l_Lean_Elab_Term_logTrace(x_167, x_165, x_169, x_4, x_166); +lean_dec(x_165); +x_171 = lean_ctor_get(x_170, 1); +lean_inc(x_171); +lean_dec(x_170); +x_134 = x_171; +goto block_160; } -block_155: +block_160: { if (lean_obj_tag(x_8) == 0) { -lean_object* x_130; +lean_object* x_135; lean_dec(x_3); -x_130 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_129); +x_135 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_12, x_99, x_4, x_134); lean_dec(x_12); -if (lean_obj_tag(x_130) == 0) +if (lean_obj_tag(x_135) == 0) { -uint8_t x_131; -x_131 = !lean_is_exclusive(x_130); -if (x_131 == 0) +uint8_t x_136; +x_136 = !lean_is_exclusive(x_135); +if (x_136 == 0) { -lean_object* x_132; -x_132 = lean_ctor_get(x_130, 0); -lean_dec(x_132); -lean_ctor_set(x_130, 0, x_2); -return x_130; +lean_object* x_137; +x_137 = lean_ctor_get(x_135, 0); +lean_dec(x_137); +lean_ctor_set(x_135, 0, x_2); +return x_135; } else { -lean_object* x_133; lean_object* x_134; -x_133 = lean_ctor_get(x_130, 1); -lean_inc(x_133); -lean_dec(x_130); -x_134 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_134, 0, x_2); -lean_ctor_set(x_134, 1, x_133); -return x_134; +lean_object* x_138; lean_object* x_139; +x_138 = lean_ctor_get(x_135, 1); +lean_inc(x_138); +lean_dec(x_135); +x_139 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_139, 0, x_2); +lean_ctor_set(x_139, 1, x_138); +return x_139; } } else { -uint8_t x_135; +uint8_t x_140; lean_dec(x_2); -x_135 = !lean_is_exclusive(x_130); -if (x_135 == 0) +x_140 = !lean_is_exclusive(x_135); +if (x_140 == 0) { -return x_130; +return x_135; } else { -lean_object* x_136; lean_object* x_137; lean_object* x_138; -x_136 = lean_ctor_get(x_130, 0); -x_137 = lean_ctor_get(x_130, 1); -lean_inc(x_137); -lean_inc(x_136); -lean_dec(x_130); -x_138 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_138, 0, x_136); -lean_ctor_set(x_138, 1, x_137); -return x_138; +lean_object* x_141; lean_object* x_142; lean_object* x_143; +x_141 = lean_ctor_get(x_135, 0); +x_142 = lean_ctor_get(x_135, 1); +lean_inc(x_142); +lean_inc(x_141); +lean_dec(x_135); +x_143 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_143, 0, x_141); +lean_ctor_set(x_143, 1, x_142); +return x_143; } } } else { -lean_object* x_139; lean_object* x_140; -x_139 = lean_ctor_get(x_8, 0); -lean_inc(x_139); +lean_object* x_144; lean_object* x_145; +x_144 = lean_ctor_get(x_8, 0); +lean_inc(x_144); lean_dec(x_8); lean_inc(x_4); -x_140 = l_Lean_Elab_Term_isDefEq(x_6, x_139, x_3, x_4, x_129); -if (lean_obj_tag(x_140) == 0) +x_145 = l_Lean_Elab_Term_isDefEq(x_144, x_3, x_4, x_134); +if (lean_obj_tag(x_145) == 0) { -lean_object* x_141; lean_object* x_142; -x_141 = lean_ctor_get(x_140, 1); -lean_inc(x_141); -lean_dec(x_140); -x_142 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_141); +lean_object* x_146; lean_object* x_147; +x_146 = lean_ctor_get(x_145, 1); +lean_inc(x_146); +lean_dec(x_145); +x_147 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_12, x_99, x_4, x_146); lean_dec(x_12); -if (lean_obj_tag(x_142) == 0) +if (lean_obj_tag(x_147) == 0) { -uint8_t x_143; -x_143 = !lean_is_exclusive(x_142); -if (x_143 == 0) +uint8_t x_148; +x_148 = !lean_is_exclusive(x_147); +if (x_148 == 0) { -lean_object* x_144; -x_144 = lean_ctor_get(x_142, 0); -lean_dec(x_144); -lean_ctor_set(x_142, 0, x_2); -return x_142; +lean_object* x_149; +x_149 = lean_ctor_get(x_147, 0); +lean_dec(x_149); +lean_ctor_set(x_147, 0, x_2); +return x_147; } else { -lean_object* x_145; lean_object* x_146; -x_145 = lean_ctor_get(x_142, 1); -lean_inc(x_145); -lean_dec(x_142); -x_146 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_146, 0, x_2); -lean_ctor_set(x_146, 1, x_145); -return x_146; +lean_object* x_150; lean_object* x_151; +x_150 = lean_ctor_get(x_147, 1); +lean_inc(x_150); +lean_dec(x_147); +x_151 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_151, 0, x_2); +lean_ctor_set(x_151, 1, x_150); +return x_151; } } else { -uint8_t x_147; +uint8_t x_152; lean_dec(x_2); -x_147 = !lean_is_exclusive(x_142); -if (x_147 == 0) +x_152 = !lean_is_exclusive(x_147); +if (x_152 == 0) { -return x_142; +return x_147; } else { -lean_object* x_148; lean_object* x_149; lean_object* x_150; -x_148 = lean_ctor_get(x_142, 0); -x_149 = lean_ctor_get(x_142, 1); -lean_inc(x_149); -lean_inc(x_148); -lean_dec(x_142); -x_150 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_150, 0, x_148); -lean_ctor_set(x_150, 1, x_149); -return x_150; -} -} -} -else -{ -uint8_t x_151; -lean_dec(x_12); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -x_151 = !lean_is_exclusive(x_140); -if (x_151 == 0) -{ -return x_140; -} -else -{ -lean_object* x_152; lean_object* x_153; lean_object* x_154; -x_152 = lean_ctor_get(x_140, 0); -x_153 = lean_ctor_get(x_140, 1); +lean_object* x_153; lean_object* x_154; lean_object* x_155; +x_153 = lean_ctor_get(x_147, 0); +x_154 = lean_ctor_get(x_147, 1); +lean_inc(x_154); lean_inc(x_153); -lean_inc(x_152); -lean_dec(x_140); -x_154 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_154, 0, x_152); -lean_ctor_set(x_154, 1, x_153); -return x_154; +lean_dec(x_147); +x_155 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_155, 0, x_153); +lean_ctor_set(x_155, 1, x_154); +return x_155; +} +} +} +else +{ +uint8_t x_156; +lean_dec(x_4); +lean_dec(x_12); +lean_dec(x_2); +x_156 = !lean_is_exclusive(x_145); +if (x_156 == 0) +{ +return x_145; +} +else +{ +lean_object* x_157; lean_object* x_158; lean_object* x_159; +x_157 = lean_ctor_get(x_145, 0); +x_158 = lean_ctor_get(x_145, 1); +lean_inc(x_158); +lean_inc(x_157); +lean_dec(x_145); +x_159 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_159, 0, x_157); +lean_ctor_set(x_159, 1, x_158); +return x_159; } } } @@ -3663,12 +3840,13 @@ return x_154; } else { -uint8_t x_247; +uint8_t x_255; lean_free_object(x_1); -lean_dec(x_98); -lean_dec(x_92); -lean_dec(x_91); -lean_dec(x_90); +lean_dec(x_103); +lean_dec(x_97); +lean_dec(x_96); +lean_dec(x_95); +lean_dec(x_4); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -3676,364 +3854,366 @@ lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_247 = !lean_is_exclusive(x_101); -if (x_247 == 0) +x_255 = !lean_is_exclusive(x_106); +if (x_255 == 0) { -return x_101; +return x_106; } else { -lean_object* x_248; lean_object* x_249; lean_object* x_250; -x_248 = lean_ctor_get(x_101, 0); -x_249 = lean_ctor_get(x_101, 1); -lean_inc(x_249); -lean_inc(x_248); -lean_dec(x_101); -x_250 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_250, 0, x_248); -lean_ctor_set(x_250, 1, x_249); -return x_250; +lean_object* x_256; lean_object* x_257; lean_object* x_258; +x_256 = lean_ctor_get(x_106, 0); +x_257 = lean_ctor_get(x_106, 1); +lean_inc(x_257); +lean_inc(x_256); +lean_dec(x_106); +x_258 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_258, 0, x_256); +lean_ctor_set(x_258, 1, x_257); +return x_258; } } } else { lean_dec(x_1); -if (lean_obj_tag(x_101) == 0) +if (lean_obj_tag(x_106) == 0) { -lean_object* x_251; lean_object* x_252; -x_251 = lean_ctor_get(x_101, 1); -lean_inc(x_251); -lean_dec(x_101); -if (x_100 == 0) +lean_object* x_259; lean_object* x_260; +x_259 = lean_ctor_get(x_106, 1); +lean_inc(x_259); +lean_dec(x_106); +if (x_105 == 0) { lean_dec(x_13); lean_dec(x_10); lean_dec(x_7); if (x_9 == 0) { -lean_object* x_304; -x_304 = l_Lean_Expr_getOptParamDefault_x3f(x_91); -if (lean_obj_tag(x_304) == 0) +lean_object* x_315; +x_315 = l_Lean_Expr_getOptParamDefault_x3f(x_96); +if (lean_obj_tag(x_315) == 0) { -lean_object* x_305; -x_305 = l_Lean_Expr_getAutoParamTactic_x3f(x_91); -if (lean_obj_tag(x_305) == 0) +lean_object* x_316; +x_316 = l_Lean_Expr_getAutoParamTactic_x3f(x_96); +if (lean_obj_tag(x_316) == 0) { -lean_object* x_306; -lean_dec(x_98); -lean_dec(x_92); -lean_dec(x_91); -x_306 = lean_box(0); -x_252 = x_306; -goto block_303; +lean_object* x_317; +lean_dec(x_103); +lean_dec(x_97); +lean_dec(x_96); +lean_dec(x_6); +x_317 = lean_box(0); +x_260 = x_317; +goto block_314; } else { -lean_object* x_307; -lean_dec(x_90); +lean_object* x_318; +lean_dec(x_95); lean_dec(x_12); lean_dec(x_11); lean_dec(x_8); lean_dec(x_3); -x_307 = lean_ctor_get(x_305, 0); -lean_inc(x_307); -lean_dec(x_305); -if (lean_obj_tag(x_307) == 4) +x_318 = lean_ctor_get(x_316, 0); +lean_inc(x_318); +lean_dec(x_316); +if (lean_obj_tag(x_318) == 4) { -lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; -x_308 = lean_ctor_get(x_307, 0); -lean_inc(x_308); -lean_dec(x_307); -x_309 = l_Lean_Elab_Term_getEnv___rarg(x_251); -x_310 = lean_ctor_get(x_309, 0); -lean_inc(x_310); -x_311 = lean_ctor_get(x_309, 1); -lean_inc(x_311); -lean_dec(x_309); -x_312 = l___private_Lean_Elab_Util_1__evalSyntaxConstantUnsafe(x_310, x_308); -if (lean_obj_tag(x_312) == 0) -{ -lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; -lean_dec(x_98); -lean_dec(x_92); -lean_dec(x_91); -lean_dec(x_2); -x_313 = lean_ctor_get(x_312, 0); -lean_inc(x_313); -lean_dec(x_312); -x_314 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_314, 0, x_313); -x_315 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_315, 0, x_314); -x_316 = l_Lean_Elab_Term_throwError___rarg(x_6, x_315, x_4, x_311); -lean_dec(x_6); -return x_316; -} -else -{ -lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; -x_317 = lean_ctor_get(x_312, 0); -lean_inc(x_317); -lean_dec(x_312); -x_318 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_311); -x_319 = lean_ctor_get(x_318, 1); +lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; +x_319 = lean_ctor_get(x_318, 0); lean_inc(x_319); lean_dec(x_318); -x_320 = l_Lean_Elab_Term_getMainModule___rarg(x_319); -x_321 = lean_ctor_get(x_320, 1); +x_320 = l_Lean_Elab_Term_getEnv___rarg(x_259); +x_321 = lean_ctor_get(x_320, 0); lean_inc(x_321); +x_322 = lean_ctor_get(x_320, 1); +lean_inc(x_322); lean_dec(x_320); -x_322 = l_Lean_Syntax_getArgs(x_317); -lean_dec(x_317); -x_323 = l_Array_empty___closed__1; -x_324 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_322, x_322, x_94, x_323); -lean_dec(x_322); -x_325 = l_Lean_nullKind___closed__2; -x_326 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_326, 0, x_325); -lean_ctor_set(x_326, 1, x_324); -x_327 = lean_array_push(x_323, x_326); -x_328 = l_Lean_PrettyPrinter_Parenthesizer_tacticParser_parenthesizer___lambda__1___closed__4; -x_329 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_329, 0, x_328); -lean_ctor_set(x_329, 1, x_327); -x_330 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__15; -x_331 = lean_array_push(x_330, x_329); -x_332 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__16; -x_333 = lean_array_push(x_331, x_332); -x_334 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; -x_335 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_335, 0, x_334); -lean_ctor_set(x_335, 1, x_333); -x_336 = l_Lean_Syntax_getHeadInfo___main(x_6); -x_337 = l_Lean_Expr_getAppNumArgsAux___main(x_91, x_94); -x_338 = lean_nat_sub(x_337, x_94); -lean_dec(x_337); -x_339 = lean_unsigned_to_nat(1u); -x_340 = lean_nat_sub(x_338, x_339); -lean_dec(x_338); -x_341 = l_Lean_Expr_getRevArg_x21___main(x_91, x_340); -lean_dec(x_91); -if (lean_obj_tag(x_336) == 0) +x_323 = l___private_Lean_Elab_Util_1__evalSyntaxConstantUnsafe(x_321, x_319); +if (lean_obj_tag(x_323) == 0) { -lean_object* x_342; lean_object* x_343; -x_342 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_342, 0, x_335); -lean_inc(x_4); -lean_inc(x_2); -x_343 = l___private_Lean_Elab_App_2__elabArg(x_6, x_2, x_342, x_341, x_4, x_321); -if (lean_obj_tag(x_343) == 0) -{ -lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; -x_344 = lean_ctor_get(x_343, 0); -lean_inc(x_344); -x_345 = lean_ctor_get(x_343, 1); -lean_inc(x_345); -lean_dec(x_343); -lean_inc(x_344); -x_346 = l_Lean_mkApp(x_2, x_344); -x_347 = lean_expr_instantiate1(x_92, x_344); -lean_dec(x_344); -lean_dec(x_92); -x_1 = x_98; -x_2 = x_346; -x_3 = x_347; -x_5 = x_345; -goto _start; -} -else -{ -lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; -lean_dec(x_98); -lean_dec(x_92); -lean_dec(x_4); -lean_dec(x_2); -x_349 = lean_ctor_get(x_343, 0); -lean_inc(x_349); -x_350 = lean_ctor_get(x_343, 1); -lean_inc(x_350); -if (lean_is_exclusive(x_343)) { - lean_ctor_release(x_343, 0); - lean_ctor_release(x_343, 1); - x_351 = x_343; -} else { - lean_dec_ref(x_343); - x_351 = lean_box(0); -} -if (lean_is_scalar(x_351)) { - x_352 = lean_alloc_ctor(1, 2, 0); -} else { - x_352 = x_351; -} -lean_ctor_set(x_352, 0, x_349); -lean_ctor_set(x_352, 1, x_350); -return x_352; -} -} -else -{ -lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; -x_353 = lean_ctor_get(x_336, 0); -lean_inc(x_353); -lean_dec(x_336); -x_354 = l_Lean_Syntax_replaceInfo___main(x_353, x_335); -x_355 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_355, 0, x_354); -lean_inc(x_4); -lean_inc(x_2); -x_356 = l___private_Lean_Elab_App_2__elabArg(x_6, x_2, x_355, x_341, x_4, x_321); -if (lean_obj_tag(x_356) == 0) -{ -lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; -x_357 = lean_ctor_get(x_356, 0); -lean_inc(x_357); -x_358 = lean_ctor_get(x_356, 1); -lean_inc(x_358); -lean_dec(x_356); -lean_inc(x_357); -x_359 = l_Lean_mkApp(x_2, x_357); -x_360 = lean_expr_instantiate1(x_92, x_357); -lean_dec(x_357); -lean_dec(x_92); -x_1 = x_98; -x_2 = x_359; -x_3 = x_360; -x_5 = x_358; -goto _start; -} -else -{ -lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; -lean_dec(x_98); -lean_dec(x_92); -lean_dec(x_4); -lean_dec(x_2); -x_362 = lean_ctor_get(x_356, 0); -lean_inc(x_362); -x_363 = lean_ctor_get(x_356, 1); -lean_inc(x_363); -if (lean_is_exclusive(x_356)) { - lean_ctor_release(x_356, 0); - lean_ctor_release(x_356, 1); - x_364 = x_356; -} else { - lean_dec_ref(x_356); - x_364 = lean_box(0); -} -if (lean_is_scalar(x_364)) { - x_365 = lean_alloc_ctor(1, 2, 0); -} else { - x_365 = x_364; -} -lean_ctor_set(x_365, 0, x_362); -lean_ctor_set(x_365, 1, x_363); -return x_365; -} -} -} -} -else -{ -lean_object* x_366; lean_object* x_367; -lean_dec(x_307); -lean_dec(x_98); -lean_dec(x_92); -lean_dec(x_91); -lean_dec(x_2); -x_366 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__12; -x_367 = l_Lean_Elab_Term_throwError___rarg(x_6, x_366, x_4, x_251); +lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; +lean_dec(x_103); +lean_dec(x_97); +lean_dec(x_96); lean_dec(x_6); -return x_367; +lean_dec(x_2); +x_324 = lean_ctor_get(x_323, 0); +lean_inc(x_324); +lean_dec(x_323); +x_325 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_325, 0, x_324); +x_326 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_326, 0, x_325); +x_327 = l_Lean_Elab_Term_throwError___rarg(x_326, x_4, x_322); +return x_327; +} +else +{ +lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; +x_328 = lean_ctor_get(x_323, 0); +lean_inc(x_328); +lean_dec(x_323); +x_329 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_322); +x_330 = lean_ctor_get(x_329, 1); +lean_inc(x_330); +lean_dec(x_329); +x_331 = l_Lean_Elab_Term_getMainModule___rarg(x_330); +x_332 = lean_ctor_get(x_331, 1); +lean_inc(x_332); +lean_dec(x_331); +x_333 = l_Lean_Syntax_getArgs(x_328); +lean_dec(x_328); +x_334 = l_Array_empty___closed__1; +x_335 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_333, x_333, x_99, x_334); +lean_dec(x_333); +x_336 = l_Lean_nullKind___closed__2; +x_337 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_337, 0, x_336); +lean_ctor_set(x_337, 1, x_335); +x_338 = lean_array_push(x_334, x_337); +x_339 = l_Lean_PrettyPrinter_Parenthesizer_tacticParser_parenthesizer___lambda__1___closed__4; +x_340 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_340, 0, x_339); +lean_ctor_set(x_340, 1, x_338); +x_341 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__15; +x_342 = lean_array_push(x_341, x_340); +x_343 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__16; +x_344 = lean_array_push(x_342, x_343); +x_345 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; +x_346 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_346, 0, x_345); +lean_ctor_set(x_346, 1, x_344); +x_347 = l_Lean_Syntax_getHeadInfo___main(x_6); +lean_dec(x_6); +x_348 = l_Lean_Expr_getAppNumArgsAux___main(x_96, x_99); +x_349 = lean_nat_sub(x_348, x_99); +lean_dec(x_348); +x_350 = lean_unsigned_to_nat(1u); +x_351 = lean_nat_sub(x_349, x_350); +lean_dec(x_349); +x_352 = l_Lean_Expr_getRevArg_x21___main(x_96, x_351); +lean_dec(x_96); +if (lean_obj_tag(x_347) == 0) +{ +lean_object* x_353; lean_object* x_354; +x_353 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_353, 0, x_346); +lean_inc(x_4); +lean_inc(x_2); +x_354 = l___private_Lean_Elab_App_2__elabArg(x_2, x_353, x_352, x_4, x_332); +if (lean_obj_tag(x_354) == 0) +{ +lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; +x_355 = lean_ctor_get(x_354, 0); +lean_inc(x_355); +x_356 = lean_ctor_get(x_354, 1); +lean_inc(x_356); +lean_dec(x_354); +lean_inc(x_355); +x_357 = l_Lean_mkApp(x_2, x_355); +x_358 = lean_expr_instantiate1(x_97, x_355); +lean_dec(x_355); +lean_dec(x_97); +x_1 = x_103; +x_2 = x_357; +x_3 = x_358; +x_5 = x_356; +goto _start; +} +else +{ +lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; +lean_dec(x_103); +lean_dec(x_97); +lean_dec(x_4); +lean_dec(x_2); +x_360 = lean_ctor_get(x_354, 0); +lean_inc(x_360); +x_361 = lean_ctor_get(x_354, 1); +lean_inc(x_361); +if (lean_is_exclusive(x_354)) { + lean_ctor_release(x_354, 0); + lean_ctor_release(x_354, 1); + x_362 = x_354; +} else { + lean_dec_ref(x_354); + x_362 = lean_box(0); +} +if (lean_is_scalar(x_362)) { + x_363 = lean_alloc_ctor(1, 2, 0); +} else { + x_363 = x_362; +} +lean_ctor_set(x_363, 0, x_360); +lean_ctor_set(x_363, 1, x_361); +return x_363; +} +} +else +{ +lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; +x_364 = lean_ctor_get(x_347, 0); +lean_inc(x_364); +lean_dec(x_347); +x_365 = l_Lean_Syntax_replaceInfo___main(x_364, x_346); +x_366 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_366, 0, x_365); +lean_inc(x_4); +lean_inc(x_2); +x_367 = l___private_Lean_Elab_App_2__elabArg(x_2, x_366, x_352, x_4, x_332); +if (lean_obj_tag(x_367) == 0) +{ +lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; +x_368 = lean_ctor_get(x_367, 0); +lean_inc(x_368); +x_369 = lean_ctor_get(x_367, 1); +lean_inc(x_369); +lean_dec(x_367); +lean_inc(x_368); +x_370 = l_Lean_mkApp(x_2, x_368); +x_371 = lean_expr_instantiate1(x_97, x_368); +lean_dec(x_368); +lean_dec(x_97); +x_1 = x_103; +x_2 = x_370; +x_3 = x_371; +x_5 = x_369; +goto _start; +} +else +{ +lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; +lean_dec(x_103); +lean_dec(x_97); +lean_dec(x_4); +lean_dec(x_2); +x_373 = lean_ctor_get(x_367, 0); +lean_inc(x_373); +x_374 = lean_ctor_get(x_367, 1); +lean_inc(x_374); +if (lean_is_exclusive(x_367)) { + lean_ctor_release(x_367, 0); + lean_ctor_release(x_367, 1); + x_375 = x_367; +} else { + lean_dec_ref(x_367); + x_375 = lean_box(0); +} +if (lean_is_scalar(x_375)) { + x_376 = lean_alloc_ctor(1, 2, 0); +} else { + x_376 = x_375; +} +lean_ctor_set(x_376, 0, x_373); +lean_ctor_set(x_376, 1, x_374); +return x_376; +} } } } else { -lean_object* x_368; lean_object* x_369; lean_object* x_370; -lean_dec(x_91); -lean_dec(x_90); +lean_object* x_377; lean_object* x_378; +lean_dec(x_318); +lean_dec(x_103); +lean_dec(x_97); +lean_dec(x_96); +lean_dec(x_6); +lean_dec(x_2); +x_377 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__12; +x_378 = l_Lean_Elab_Term_throwError___rarg(x_377, x_4, x_259); +return x_378; +} +} +} +else +{ +lean_object* x_379; lean_object* x_380; lean_object* x_381; +lean_dec(x_96); +lean_dec(x_95); lean_dec(x_12); lean_dec(x_11); lean_dec(x_8); lean_dec(x_6); lean_dec(x_3); -x_368 = lean_ctor_get(x_304, 0); -lean_inc(x_368); -lean_dec(x_304); -lean_inc(x_368); -x_369 = l_Lean_mkApp(x_2, x_368); -x_370 = lean_expr_instantiate1(x_92, x_368); -lean_dec(x_368); -lean_dec(x_92); -x_1 = x_98; -x_2 = x_369; -x_3 = x_370; -x_5 = x_251; -goto _start; -} -} -else -{ -lean_object* x_372; -lean_dec(x_98); -lean_dec(x_92); -lean_dec(x_91); -x_372 = lean_box(0); -x_252 = x_372; -goto block_303; -} -} -else -{ -lean_object* x_373; lean_object* x_374; -lean_dec(x_98); -lean_dec(x_90); -lean_dec(x_3); -x_373 = lean_array_fget(x_7, x_10); -lean_inc(x_4); -lean_inc(x_2); -lean_inc(x_6); -x_374 = l___private_Lean_Elab_App_2__elabArg(x_6, x_2, x_373, x_91, x_4, x_251); -if (lean_obj_tag(x_374) == 0) -{ -lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; -x_375 = lean_ctor_get(x_374, 0); -lean_inc(x_375); -x_376 = lean_ctor_get(x_374, 1); -lean_inc(x_376); -lean_dec(x_374); -x_377 = lean_unsigned_to_nat(1u); -x_378 = lean_nat_add(x_10, x_377); -lean_dec(x_10); -x_379 = lean_alloc_ctor(0, 7, 2); -lean_ctor_set(x_379, 0, x_6); -lean_ctor_set(x_379, 1, x_7); -lean_ctor_set(x_379, 2, x_8); -lean_ctor_set(x_379, 3, x_378); -lean_ctor_set(x_379, 4, x_11); -lean_ctor_set(x_379, 5, x_12); -lean_ctor_set(x_379, 6, x_13); -lean_ctor_set_uint8(x_379, sizeof(void*)*7, x_9); -lean_ctor_set_uint8(x_379, sizeof(void*)*7 + 1, x_97); -lean_inc(x_375); -x_380 = l_Lean_mkApp(x_2, x_375); -x_381 = lean_expr_instantiate1(x_92, x_375); -lean_dec(x_375); -lean_dec(x_92); -x_1 = x_379; +x_379 = lean_ctor_get(x_315, 0); +lean_inc(x_379); +lean_dec(x_315); +lean_inc(x_379); +x_380 = l_Lean_mkApp(x_2, x_379); +x_381 = lean_expr_instantiate1(x_97, x_379); +lean_dec(x_379); +lean_dec(x_97); +x_1 = x_103; x_2 = x_380; x_3 = x_381; -x_5 = x_376; +x_5 = x_259; +goto _start; +} +} +else +{ +lean_object* x_383; +lean_dec(x_103); +lean_dec(x_97); +lean_dec(x_96); +lean_dec(x_6); +x_383 = lean_box(0); +x_260 = x_383; +goto block_314; +} +} +else +{ +lean_object* x_384; lean_object* x_385; +lean_dec(x_103); +lean_dec(x_95); +lean_dec(x_3); +x_384 = lean_array_fget(x_7, x_10); +lean_inc(x_4); +lean_inc(x_2); +x_385 = l___private_Lean_Elab_App_2__elabArg(x_2, x_384, x_96, x_4, x_259); +if (lean_obj_tag(x_385) == 0) +{ +lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; +x_386 = lean_ctor_get(x_385, 0); +lean_inc(x_386); +x_387 = lean_ctor_get(x_385, 1); +lean_inc(x_387); +lean_dec(x_385); +x_388 = lean_unsigned_to_nat(1u); +x_389 = lean_nat_add(x_10, x_388); +lean_dec(x_10); +x_390 = lean_alloc_ctor(0, 7, 2); +lean_ctor_set(x_390, 0, x_6); +lean_ctor_set(x_390, 1, x_7); +lean_ctor_set(x_390, 2, x_8); +lean_ctor_set(x_390, 3, x_389); +lean_ctor_set(x_390, 4, x_11); +lean_ctor_set(x_390, 5, x_12); +lean_ctor_set(x_390, 6, x_13); +lean_ctor_set_uint8(x_390, sizeof(void*)*7, x_9); +lean_ctor_set_uint8(x_390, sizeof(void*)*7 + 1, x_102); +lean_inc(x_386); +x_391 = l_Lean_mkApp(x_2, x_386); +x_392 = lean_expr_instantiate1(x_97, x_386); +lean_dec(x_386); +lean_dec(x_97); +x_1 = x_390; +x_2 = x_391; +x_3 = x_392; +x_5 = x_387; goto _start; } else { -lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; -lean_dec(x_92); +lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; +lean_dec(x_97); +lean_dec(x_4); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -4041,253 +4221,258 @@ lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_4); lean_dec(x_2); -x_383 = lean_ctor_get(x_374, 0); -lean_inc(x_383); -x_384 = lean_ctor_get(x_374, 1); -lean_inc(x_384); -if (lean_is_exclusive(x_374)) { - lean_ctor_release(x_374, 0); - lean_ctor_release(x_374, 1); - x_385 = x_374; +x_394 = lean_ctor_get(x_385, 0); +lean_inc(x_394); +x_395 = lean_ctor_get(x_385, 1); +lean_inc(x_395); +if (lean_is_exclusive(x_385)) { + lean_ctor_release(x_385, 0); + lean_ctor_release(x_385, 1); + x_396 = x_385; } else { - lean_dec_ref(x_374); - x_385 = lean_box(0); + lean_dec_ref(x_385); + x_396 = lean_box(0); } -if (lean_is_scalar(x_385)) { - x_386 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_396)) { + x_397 = lean_alloc_ctor(1, 2, 0); } else { - x_386 = x_385; + x_397 = x_396; } -lean_ctor_set(x_386, 0, x_383); -lean_ctor_set(x_386, 1, x_384); -return x_386; +lean_ctor_set(x_397, 0, x_394); +lean_ctor_set(x_397, 1, x_395); +return x_397; } } -block_303: +block_314: { -uint8_t x_253; -lean_dec(x_252); -x_253 = l_Array_isEmpty___rarg(x_11); -if (x_253 == 0) +uint8_t x_261; +lean_dec(x_260); +x_261 = l_Array_isEmpty___rarg(x_11); +if (x_261 == 0) { -lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; +lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_dec(x_12); lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); -x_254 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_254, 0, x_90); -x_255 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; -x_256 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_256, 0, x_255); -lean_ctor_set(x_256, 1, x_254); -x_257 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; -x_258 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_258, 0, x_256); -lean_ctor_set(x_258, 1, x_257); -x_259 = x_11; -x_260 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(x_94, x_259); -x_261 = x_260; -x_262 = l_Array_toList___rarg(x_261); -lean_dec(x_261); -x_263 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_262); -x_264 = l_Array_HasRepr___rarg___closed__1; -x_265 = lean_string_append(x_264, x_263); -lean_dec(x_263); -x_266 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_266, 0, x_265); -x_267 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_267, 0, x_266); -x_268 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_268, 0, x_258); -lean_ctor_set(x_268, 1, x_267); -x_269 = l_Lean_Elab_Term_throwError___rarg(x_6, x_268, x_4, x_251); -lean_dec(x_6); -return x_269; +x_262 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_262, 0, x_95); +x_263 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_264 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_264, 0, x_263); +lean_ctor_set(x_264, 1, x_262); +x_265 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_266 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_266, 0, x_264); +lean_ctor_set(x_266, 1, x_265); +x_267 = x_11; +x_268 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(x_99, x_267); +x_269 = x_268; +x_270 = l_Array_toList___rarg(x_269); +lean_dec(x_269); +x_271 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_270); +x_272 = l_Array_HasRepr___rarg___closed__1; +x_273 = lean_string_append(x_272, x_271); +lean_dec(x_271); +x_274 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_274, 0, x_273); +x_275 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_275, 0, x_274); +x_276 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_276, 0, x_266); +lean_ctor_set(x_276, 1, x_275); +x_277 = l_Lean_Elab_Term_throwError___rarg(x_276, x_4, x_259); +return x_277; } else { -lean_object* x_270; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; uint8_t x_299; -lean_dec(x_90); +lean_object* x_278; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; uint8_t x_310; +lean_dec(x_95); lean_dec(x_11); -x_295 = l_Lean_Elab_Term_getOptions(x_4, x_251); -x_296 = lean_ctor_get(x_295, 0); -lean_inc(x_296); -x_297 = lean_ctor_get(x_295, 1); -lean_inc(x_297); -lean_dec(x_295); -x_298 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; -x_299 = l_Lean_checkTraceOption(x_296, x_298); -lean_dec(x_296); -if (x_299 == 0) +x_303 = l_Lean_Elab_Term_getOptions(x_4, x_259); +x_304 = lean_ctor_get(x_303, 0); +lean_inc(x_304); +x_305 = lean_ctor_get(x_303, 1); +lean_inc(x_305); +lean_dec(x_303); +x_306 = l_Lean_Elab_Term_getCurrRef(x_4, x_305); +x_307 = lean_ctor_get(x_306, 0); +lean_inc(x_307); +x_308 = lean_ctor_get(x_306, 1); +lean_inc(x_308); +lean_dec(x_306); +x_309 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_310 = l_Lean_checkTraceOption(x_304, x_309); +lean_dec(x_304); +if (x_310 == 0) { -x_270 = x_297; -goto block_294; +lean_dec(x_307); +x_278 = x_308; +goto block_302; } else { -lean_object* x_300; lean_object* x_301; lean_object* x_302; +lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_inc(x_2); -x_300 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_300, 0, x_2); +x_311 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_311, 0, x_2); lean_inc(x_4); -x_301 = l_Lean_Elab_Term_logTrace(x_298, x_6, x_300, x_4, x_297); -x_302 = lean_ctor_get(x_301, 1); -lean_inc(x_302); -lean_dec(x_301); -x_270 = x_302; -goto block_294; +x_312 = l_Lean_Elab_Term_logTrace(x_309, x_307, x_311, x_4, x_308); +lean_dec(x_307); +x_313 = lean_ctor_get(x_312, 1); +lean_inc(x_313); +lean_dec(x_312); +x_278 = x_313; +goto block_302; } -block_294: +block_302: { if (lean_obj_tag(x_8) == 0) { -lean_object* x_271; +lean_object* x_279; lean_dec(x_3); -x_271 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_270); +x_279 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_12, x_99, x_4, x_278); lean_dec(x_12); -if (lean_obj_tag(x_271) == 0) +if (lean_obj_tag(x_279) == 0) { -lean_object* x_272; lean_object* x_273; lean_object* x_274; -x_272 = lean_ctor_get(x_271, 1); -lean_inc(x_272); -if (lean_is_exclusive(x_271)) { - lean_ctor_release(x_271, 0); - lean_ctor_release(x_271, 1); - x_273 = x_271; +lean_object* x_280; lean_object* x_281; lean_object* x_282; +x_280 = lean_ctor_get(x_279, 1); +lean_inc(x_280); +if (lean_is_exclusive(x_279)) { + lean_ctor_release(x_279, 0); + lean_ctor_release(x_279, 1); + x_281 = x_279; } else { - lean_dec_ref(x_271); - x_273 = lean_box(0); + lean_dec_ref(x_279); + x_281 = lean_box(0); } -if (lean_is_scalar(x_273)) { - x_274 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_281)) { + x_282 = lean_alloc_ctor(0, 2, 0); } else { - x_274 = x_273; + x_282 = x_281; } -lean_ctor_set(x_274, 0, x_2); -lean_ctor_set(x_274, 1, x_272); -return x_274; +lean_ctor_set(x_282, 0, x_2); +lean_ctor_set(x_282, 1, x_280); +return x_282; } else { -lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; +lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_dec(x_2); -x_275 = lean_ctor_get(x_271, 0); -lean_inc(x_275); -x_276 = lean_ctor_get(x_271, 1); -lean_inc(x_276); -if (lean_is_exclusive(x_271)) { - lean_ctor_release(x_271, 0); - lean_ctor_release(x_271, 1); - x_277 = x_271; +x_283 = lean_ctor_get(x_279, 0); +lean_inc(x_283); +x_284 = lean_ctor_get(x_279, 1); +lean_inc(x_284); +if (lean_is_exclusive(x_279)) { + lean_ctor_release(x_279, 0); + lean_ctor_release(x_279, 1); + x_285 = x_279; } else { - lean_dec_ref(x_271); - x_277 = lean_box(0); + lean_dec_ref(x_279); + x_285 = lean_box(0); } -if (lean_is_scalar(x_277)) { - x_278 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_285)) { + x_286 = lean_alloc_ctor(1, 2, 0); } else { - x_278 = x_277; + x_286 = x_285; } -lean_ctor_set(x_278, 0, x_275); -lean_ctor_set(x_278, 1, x_276); -return x_278; +lean_ctor_set(x_286, 0, x_283); +lean_ctor_set(x_286, 1, x_284); +return x_286; } } else { -lean_object* x_279; lean_object* x_280; -x_279 = lean_ctor_get(x_8, 0); -lean_inc(x_279); +lean_object* x_287; lean_object* x_288; +x_287 = lean_ctor_get(x_8, 0); +lean_inc(x_287); lean_dec(x_8); lean_inc(x_4); -x_280 = l_Lean_Elab_Term_isDefEq(x_6, x_279, x_3, x_4, x_270); -if (lean_obj_tag(x_280) == 0) +x_288 = l_Lean_Elab_Term_isDefEq(x_287, x_3, x_4, x_278); +if (lean_obj_tag(x_288) == 0) { -lean_object* x_281; lean_object* x_282; -x_281 = lean_ctor_get(x_280, 1); -lean_inc(x_281); -lean_dec(x_280); -x_282 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_281); +lean_object* x_289; lean_object* x_290; +x_289 = lean_ctor_get(x_288, 1); +lean_inc(x_289); +lean_dec(x_288); +x_290 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_12, x_99, x_4, x_289); lean_dec(x_12); -if (lean_obj_tag(x_282) == 0) +if (lean_obj_tag(x_290) == 0) { -lean_object* x_283; lean_object* x_284; lean_object* x_285; -x_283 = lean_ctor_get(x_282, 1); -lean_inc(x_283); -if (lean_is_exclusive(x_282)) { - lean_ctor_release(x_282, 0); - lean_ctor_release(x_282, 1); - x_284 = x_282; -} else { - lean_dec_ref(x_282); - x_284 = lean_box(0); -} -if (lean_is_scalar(x_284)) { - x_285 = lean_alloc_ctor(0, 2, 0); -} else { - x_285 = x_284; -} -lean_ctor_set(x_285, 0, x_2); -lean_ctor_set(x_285, 1, x_283); -return x_285; -} -else -{ -lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; -lean_dec(x_2); -x_286 = lean_ctor_get(x_282, 0); -lean_inc(x_286); -x_287 = lean_ctor_get(x_282, 1); -lean_inc(x_287); -if (lean_is_exclusive(x_282)) { - lean_ctor_release(x_282, 0); - lean_ctor_release(x_282, 1); - x_288 = x_282; -} else { - lean_dec_ref(x_282); - x_288 = lean_box(0); -} -if (lean_is_scalar(x_288)) { - x_289 = lean_alloc_ctor(1, 2, 0); -} else { - x_289 = x_288; -} -lean_ctor_set(x_289, 0, x_286); -lean_ctor_set(x_289, 1, x_287); -return x_289; -} -} -else -{ -lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; -lean_dec(x_12); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -x_290 = lean_ctor_get(x_280, 0); -lean_inc(x_290); -x_291 = lean_ctor_get(x_280, 1); +lean_object* x_291; lean_object* x_292; lean_object* x_293; +x_291 = lean_ctor_get(x_290, 1); lean_inc(x_291); -if (lean_is_exclusive(x_280)) { - lean_ctor_release(x_280, 0); - lean_ctor_release(x_280, 1); - x_292 = x_280; +if (lean_is_exclusive(x_290)) { + lean_ctor_release(x_290, 0); + lean_ctor_release(x_290, 1); + x_292 = x_290; } else { - lean_dec_ref(x_280); + lean_dec_ref(x_290); x_292 = lean_box(0); } if (lean_is_scalar(x_292)) { - x_293 = lean_alloc_ctor(1, 2, 0); + x_293 = lean_alloc_ctor(0, 2, 0); } else { x_293 = x_292; } -lean_ctor_set(x_293, 0, x_290); +lean_ctor_set(x_293, 0, x_2); lean_ctor_set(x_293, 1, x_291); return x_293; } +else +{ +lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; +lean_dec(x_2); +x_294 = lean_ctor_get(x_290, 0); +lean_inc(x_294); +x_295 = lean_ctor_get(x_290, 1); +lean_inc(x_295); +if (lean_is_exclusive(x_290)) { + lean_ctor_release(x_290, 0); + lean_ctor_release(x_290, 1); + x_296 = x_290; +} else { + lean_dec_ref(x_290); + x_296 = lean_box(0); +} +if (lean_is_scalar(x_296)) { + x_297 = lean_alloc_ctor(1, 2, 0); +} else { + x_297 = x_296; +} +lean_ctor_set(x_297, 0, x_294); +lean_ctor_set(x_297, 1, x_295); +return x_297; +} +} +else +{ +lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; +lean_dec(x_4); +lean_dec(x_12); +lean_dec(x_2); +x_298 = lean_ctor_get(x_288, 0); +lean_inc(x_298); +x_299 = lean_ctor_get(x_288, 1); +lean_inc(x_299); +if (lean_is_exclusive(x_288)) { + lean_ctor_release(x_288, 0); + lean_ctor_release(x_288, 1); + x_300 = x_288; +} else { + lean_dec_ref(x_288); + x_300 = lean_box(0); +} +if (lean_is_scalar(x_300)) { + x_301 = lean_alloc_ctor(1, 2, 0); +} else { + x_301 = x_300; +} +lean_ctor_set(x_301, 0, x_298); +lean_ctor_set(x_301, 1, x_299); +return x_301; +} } } } @@ -4295,11 +4480,12 @@ return x_293; } else { -lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; -lean_dec(x_98); -lean_dec(x_92); -lean_dec(x_91); -lean_dec(x_90); +lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; +lean_dec(x_103); +lean_dec(x_97); +lean_dec(x_96); +lean_dec(x_95); +lean_dec(x_4); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -4307,29 +4493,28 @@ lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_387 = lean_ctor_get(x_101, 0); -lean_inc(x_387); -x_388 = lean_ctor_get(x_101, 1); -lean_inc(x_388); -if (lean_is_exclusive(x_101)) { - lean_ctor_release(x_101, 0); - lean_ctor_release(x_101, 1); - x_389 = x_101; +x_398 = lean_ctor_get(x_106, 0); +lean_inc(x_398); +x_399 = lean_ctor_get(x_106, 1); +lean_inc(x_399); +if (lean_is_exclusive(x_106)) { + lean_ctor_release(x_106, 0); + lean_ctor_release(x_106, 1); + x_400 = x_106; } else { - lean_dec_ref(x_101); - x_389 = lean_box(0); + lean_dec_ref(x_106); + x_400 = lean_box(0); } -if (lean_is_scalar(x_389)) { - x_390 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_400)) { + x_401 = lean_alloc_ctor(1, 2, 0); } else { - x_390 = x_389; + x_401 = x_400; } -lean_ctor_set(x_390, 0, x_387); -lean_ctor_set(x_390, 1, x_388); -return x_390; +lean_ctor_set(x_401, 0, x_398); +lean_ctor_set(x_401, 1, x_399); +return x_401; } } } @@ -4337,207 +4522,92 @@ case 1: { if (x_9 == 0) { -uint8_t x_391; -lean_dec(x_90); -lean_dec(x_16); +uint8_t x_402; +lean_dec(x_95); +lean_dec(x_18); lean_dec(x_3); -x_391 = !lean_is_exclusive(x_1); -if (x_391 == 0) +x_402 = !lean_is_exclusive(x_1); +if (x_402 == 0) { -lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; uint8_t x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; -x_392 = lean_ctor_get(x_1, 6); -lean_dec(x_392); -x_393 = lean_ctor_get(x_1, 5); -lean_dec(x_393); -x_394 = lean_ctor_get(x_1, 4); -lean_dec(x_394); -x_395 = lean_ctor_get(x_1, 3); -lean_dec(x_395); -x_396 = lean_ctor_get(x_1, 2); -lean_dec(x_396); -x_397 = lean_ctor_get(x_1, 1); -lean_dec(x_397); -x_398 = lean_ctor_get(x_1, 0); -lean_dec(x_398); -x_399 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_399, 0, x_91); -x_400 = 0; -x_401 = lean_box(0); -lean_inc(x_4); -x_402 = l_Lean_Elab_Term_mkFreshExprMVar(x_6, x_399, x_400, x_401, x_4, x_17); -x_403 = lean_ctor_get(x_402, 0); -lean_inc(x_403); -x_404 = lean_ctor_get(x_402, 1); -lean_inc(x_404); -lean_dec(x_402); -lean_inc(x_4); -lean_inc(x_403); -x_405 = l_Lean_Elab_Term_isTypeFormer(x_6, x_403, x_4, x_404); -if (lean_obj_tag(x_405) == 0) -{ -lean_object* x_406; uint8_t x_407; -x_406 = lean_ctor_get(x_405, 0); -lean_inc(x_406); -x_407 = lean_unbox(x_406); +lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; uint8_t x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; +x_403 = lean_ctor_get(x_1, 6); +lean_dec(x_403); +x_404 = lean_ctor_get(x_1, 5); +lean_dec(x_404); +x_405 = lean_ctor_get(x_1, 4); +lean_dec(x_405); +x_406 = lean_ctor_get(x_1, 3); lean_dec(x_406); -if (x_407 == 0) +x_407 = lean_ctor_get(x_1, 2); +lean_dec(x_407); +x_408 = lean_ctor_get(x_1, 1); +lean_dec(x_408); +x_409 = lean_ctor_get(x_1, 0); +lean_dec(x_409); +x_410 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_410, 0, x_96); +x_411 = 0; +x_412 = lean_box(0); +lean_inc(x_4); +x_413 = l_Lean_Elab_Term_mkFreshExprMVar(x_410, x_411, x_412, x_4, x_19); +x_414 = lean_ctor_get(x_413, 0); +lean_inc(x_414); +x_415 = lean_ctor_get(x_413, 1); +lean_inc(x_415); +lean_dec(x_413); +lean_inc(x_4); +lean_inc(x_414); +x_416 = l_Lean_Elab_Term_isTypeFormer(x_414, x_4, x_415); +if (lean_obj_tag(x_416) == 0) { -lean_object* x_408; lean_object* x_409; lean_object* x_410; -x_408 = lean_ctor_get(x_405, 1); -lean_inc(x_408); -lean_dec(x_405); -lean_inc(x_403); -x_409 = l_Lean_mkApp(x_2, x_403); -x_410 = lean_expr_instantiate1(x_92, x_403); -lean_dec(x_403); -lean_dec(x_92); -x_2 = x_409; -x_3 = x_410; -x_5 = x_408; -goto _start; -} -else -{ -lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; -x_412 = lean_ctor_get(x_405, 1); -lean_inc(x_412); -lean_dec(x_405); -x_413 = l_Lean_Expr_mvarId_x21(x_403); -x_414 = lean_array_push(x_13, x_413); -lean_ctor_set(x_1, 6, x_414); -lean_inc(x_403); -x_415 = l_Lean_mkApp(x_2, x_403); -x_416 = lean_expr_instantiate1(x_92, x_403); -lean_dec(x_403); -lean_dec(x_92); -x_2 = x_415; -x_3 = x_416; -x_5 = x_412; -goto _start; -} -} -else -{ -uint8_t x_418; -lean_dec(x_403); -lean_free_object(x_1); -lean_dec(x_92); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -x_418 = !lean_is_exclusive(x_405); +lean_object* x_417; uint8_t x_418; +x_417 = lean_ctor_get(x_416, 0); +lean_inc(x_417); +x_418 = lean_unbox(x_417); +lean_dec(x_417); if (x_418 == 0) { -return x_405; -} -else -{ lean_object* x_419; lean_object* x_420; lean_object* x_421; -x_419 = lean_ctor_get(x_405, 0); -x_420 = lean_ctor_get(x_405, 1); -lean_inc(x_420); +x_419 = lean_ctor_get(x_416, 1); lean_inc(x_419); -lean_dec(x_405); -x_421 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_421, 0, x_419); -lean_ctor_set(x_421, 1, x_420); -return x_421; -} -} -} -else -{ -lean_object* x_422; uint8_t x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; -lean_dec(x_1); -x_422 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_422, 0, x_91); -x_423 = 0; -x_424 = lean_box(0); -lean_inc(x_4); -x_425 = l_Lean_Elab_Term_mkFreshExprMVar(x_6, x_422, x_423, x_424, x_4, x_17); -x_426 = lean_ctor_get(x_425, 0); -lean_inc(x_426); -x_427 = lean_ctor_get(x_425, 1); -lean_inc(x_427); -lean_dec(x_425); -lean_inc(x_4); -lean_inc(x_426); -x_428 = l_Lean_Elab_Term_isTypeFormer(x_6, x_426, x_4, x_427); -if (lean_obj_tag(x_428) == 0) -{ -lean_object* x_429; uint8_t x_430; -x_429 = lean_ctor_get(x_428, 0); -lean_inc(x_429); -x_430 = lean_unbox(x_429); -lean_dec(x_429); -if (x_430 == 0) -{ -lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; -x_431 = lean_ctor_get(x_428, 1); -lean_inc(x_431); -lean_dec(x_428); -x_432 = lean_alloc_ctor(0, 7, 2); -lean_ctor_set(x_432, 0, x_6); -lean_ctor_set(x_432, 1, x_7); -lean_ctor_set(x_432, 2, x_8); -lean_ctor_set(x_432, 3, x_10); -lean_ctor_set(x_432, 4, x_11); -lean_ctor_set(x_432, 5, x_12); -lean_ctor_set(x_432, 6, x_13); -lean_ctor_set_uint8(x_432, sizeof(void*)*7, x_9); -lean_ctor_set_uint8(x_432, sizeof(void*)*7 + 1, x_14); -lean_inc(x_426); -x_433 = l_Lean_mkApp(x_2, x_426); -x_434 = lean_expr_instantiate1(x_92, x_426); -lean_dec(x_426); -lean_dec(x_92); -x_1 = x_432; -x_2 = x_433; -x_3 = x_434; -x_5 = x_431; +lean_dec(x_416); +lean_inc(x_414); +x_420 = l_Lean_mkApp(x_2, x_414); +x_421 = lean_expr_instantiate1(x_97, x_414); +lean_dec(x_414); +lean_dec(x_97); +x_2 = x_420; +x_3 = x_421; +x_5 = x_419; goto _start; } else { -lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; -x_436 = lean_ctor_get(x_428, 1); -lean_inc(x_436); -lean_dec(x_428); -x_437 = l_Lean_Expr_mvarId_x21(x_426); -x_438 = lean_array_push(x_13, x_437); -x_439 = lean_alloc_ctor(0, 7, 2); -lean_ctor_set(x_439, 0, x_6); -lean_ctor_set(x_439, 1, x_7); -lean_ctor_set(x_439, 2, x_8); -lean_ctor_set(x_439, 3, x_10); -lean_ctor_set(x_439, 4, x_11); -lean_ctor_set(x_439, 5, x_12); -lean_ctor_set(x_439, 6, x_438); -lean_ctor_set_uint8(x_439, sizeof(void*)*7, x_9); -lean_ctor_set_uint8(x_439, sizeof(void*)*7 + 1, x_14); -lean_inc(x_426); -x_440 = l_Lean_mkApp(x_2, x_426); -x_441 = lean_expr_instantiate1(x_92, x_426); -lean_dec(x_426); -lean_dec(x_92); -x_1 = x_439; -x_2 = x_440; -x_3 = x_441; -x_5 = x_436; +lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; +x_423 = lean_ctor_get(x_416, 1); +lean_inc(x_423); +lean_dec(x_416); +x_424 = l_Lean_Expr_mvarId_x21(x_414); +x_425 = lean_array_push(x_13, x_424); +lean_ctor_set(x_1, 6, x_425); +lean_inc(x_414); +x_426 = l_Lean_mkApp(x_2, x_414); +x_427 = lean_expr_instantiate1(x_97, x_414); +lean_dec(x_414); +lean_dec(x_97); +x_2 = x_426; +x_3 = x_427; +x_5 = x_423; goto _start; } } else { -lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; -lean_dec(x_426); -lean_dec(x_92); +uint8_t x_429; +lean_dec(x_414); +lean_free_object(x_1); +lean_dec(x_97); +lean_dec(x_4); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -4545,287 +4615,409 @@ lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_4); lean_dec(x_2); -x_443 = lean_ctor_get(x_428, 0); -lean_inc(x_443); -x_444 = lean_ctor_get(x_428, 1); -lean_inc(x_444); -if (lean_is_exclusive(x_428)) { - lean_ctor_release(x_428, 0); - lean_ctor_release(x_428, 1); - x_445 = x_428; -} else { - lean_dec_ref(x_428); - x_445 = lean_box(0); +x_429 = !lean_is_exclusive(x_416); +if (x_429 == 0) +{ +return x_416; } -if (lean_is_scalar(x_445)) { - x_446 = lean_alloc_ctor(1, 2, 0); -} else { - x_446 = x_445; -} -lean_ctor_set(x_446, 0, x_443); -lean_ctor_set(x_446, 1, x_444); -return x_446; +else +{ +lean_object* x_430; lean_object* x_431; lean_object* x_432; +x_430 = lean_ctor_get(x_416, 0); +x_431 = lean_ctor_get(x_416, 1); +lean_inc(x_431); +lean_inc(x_430); +lean_dec(x_416); +x_432 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_432, 0, x_430); +lean_ctor_set(x_432, 1, x_431); +return x_432; } } } else { -lean_object* x_447; uint8_t x_448; lean_object* x_449; uint8_t x_450; -x_447 = lean_array_get_size(x_7); -x_448 = lean_nat_dec_lt(x_10, x_447); -lean_dec(x_447); +lean_object* x_433; uint8_t x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; +lean_dec(x_1); +x_433 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_433, 0, x_96); +x_434 = 0; +x_435 = lean_box(0); +lean_inc(x_4); +x_436 = l_Lean_Elab_Term_mkFreshExprMVar(x_433, x_434, x_435, x_4, x_19); +x_437 = lean_ctor_get(x_436, 0); +lean_inc(x_437); +x_438 = lean_ctor_get(x_436, 1); +lean_inc(x_438); +lean_dec(x_436); +lean_inc(x_4); +lean_inc(x_437); +x_439 = l_Lean_Elab_Term_isTypeFormer(x_437, x_4, x_438); +if (lean_obj_tag(x_439) == 0) +{ +lean_object* x_440; uint8_t x_441; +x_440 = lean_ctor_get(x_439, 0); +lean_inc(x_440); +x_441 = lean_unbox(x_440); +lean_dec(x_440); +if (x_441 == 0) +{ +lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; +x_442 = lean_ctor_get(x_439, 1); +lean_inc(x_442); +lean_dec(x_439); +x_443 = lean_alloc_ctor(0, 7, 2); +lean_ctor_set(x_443, 0, x_6); +lean_ctor_set(x_443, 1, x_7); +lean_ctor_set(x_443, 2, x_8); +lean_ctor_set(x_443, 3, x_10); +lean_ctor_set(x_443, 4, x_11); +lean_ctor_set(x_443, 5, x_12); +lean_ctor_set(x_443, 6, x_13); +lean_ctor_set_uint8(x_443, sizeof(void*)*7, x_9); +lean_ctor_set_uint8(x_443, sizeof(void*)*7 + 1, x_15); +lean_inc(x_437); +x_444 = l_Lean_mkApp(x_2, x_437); +x_445 = lean_expr_instantiate1(x_97, x_437); +lean_dec(x_437); +lean_dec(x_97); +x_1 = x_443; +x_2 = x_444; +x_3 = x_445; +x_5 = x_442; +goto _start; +} +else +{ +lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; +x_447 = lean_ctor_get(x_439, 1); +lean_inc(x_447); +lean_dec(x_439); +x_448 = l_Lean_Expr_mvarId_x21(x_437); +x_449 = lean_array_push(x_13, x_448); +x_450 = lean_alloc_ctor(0, 7, 2); +lean_ctor_set(x_450, 0, x_6); +lean_ctor_set(x_450, 1, x_7); +lean_ctor_set(x_450, 2, x_8); +lean_ctor_set(x_450, 3, x_10); +lean_ctor_set(x_450, 4, x_11); +lean_ctor_set(x_450, 5, x_12); +lean_ctor_set(x_450, 6, x_449); +lean_ctor_set_uint8(x_450, sizeof(void*)*7, x_9); +lean_ctor_set_uint8(x_450, sizeof(void*)*7 + 1, x_15); +lean_inc(x_437); +x_451 = l_Lean_mkApp(x_2, x_437); +x_452 = lean_expr_instantiate1(x_97, x_437); +lean_dec(x_437); +lean_dec(x_97); +x_1 = x_450; +x_2 = x_451; +x_3 = x_452; +x_5 = x_447; +goto _start; +} +} +else +{ +lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; +lean_dec(x_437); +lean_dec(x_97); +lean_dec(x_4); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +x_454 = lean_ctor_get(x_439, 0); +lean_inc(x_454); +x_455 = lean_ctor_get(x_439, 1); +lean_inc(x_455); +if (lean_is_exclusive(x_439)) { + lean_ctor_release(x_439, 0); + lean_ctor_release(x_439, 1); + x_456 = x_439; +} else { + lean_dec_ref(x_439); + x_456 = lean_box(0); +} +if (lean_is_scalar(x_456)) { + x_457 = lean_alloc_ctor(1, 2, 0); +} else { + x_457 = x_456; +} +lean_ctor_set(x_457, 0, x_454); +lean_ctor_set(x_457, 1, x_455); +return x_457; +} +} +} +else +{ +lean_object* x_458; uint8_t x_459; lean_object* x_460; uint8_t x_461; +x_458 = lean_array_get_size(x_7); +x_459 = lean_nat_dec_lt(x_10, x_458); +lean_dec(x_458); lean_inc(x_4); lean_inc(x_1); -x_449 = l___private_Lean_Elab_App_8__propagateExpectedType(x_1, x_16, x_4, x_17); -x_450 = !lean_is_exclusive(x_1); -if (x_450 == 0) +x_460 = l___private_Lean_Elab_App_8__propagateExpectedType(x_1, x_18, x_4, x_19); +x_461 = !lean_is_exclusive(x_1); +if (x_461 == 0) { -lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; -x_451 = lean_ctor_get(x_1, 6); -lean_dec(x_451); -x_452 = lean_ctor_get(x_1, 5); -lean_dec(x_452); -x_453 = lean_ctor_get(x_1, 4); -lean_dec(x_453); -x_454 = lean_ctor_get(x_1, 3); -lean_dec(x_454); -x_455 = lean_ctor_get(x_1, 2); -lean_dec(x_455); -x_456 = lean_ctor_get(x_1, 1); -lean_dec(x_456); -x_457 = lean_ctor_get(x_1, 0); -lean_dec(x_457); -if (lean_obj_tag(x_449) == 0) +lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; +x_462 = lean_ctor_get(x_1, 6); +lean_dec(x_462); +x_463 = lean_ctor_get(x_1, 5); +lean_dec(x_463); +x_464 = lean_ctor_get(x_1, 4); +lean_dec(x_464); +x_465 = lean_ctor_get(x_1, 3); +lean_dec(x_465); +x_466 = lean_ctor_get(x_1, 2); +lean_dec(x_466); +x_467 = lean_ctor_get(x_1, 1); +lean_dec(x_467); +x_468 = lean_ctor_get(x_1, 0); +lean_dec(x_468); +if (lean_obj_tag(x_460) == 0) { -if (x_448 == 0) +if (x_459 == 0) { -lean_object* x_458; uint8_t x_459; +lean_object* x_469; uint8_t x_470; lean_free_object(x_1); -lean_dec(x_92); -lean_dec(x_91); +lean_dec(x_97); +lean_dec(x_96); lean_dec(x_13); lean_dec(x_10); lean_dec(x_7); -x_458 = lean_ctor_get(x_449, 1); -lean_inc(x_458); -lean_dec(x_449); -x_459 = l_Array_isEmpty___rarg(x_11); -if (x_459 == 0) +lean_dec(x_6); +x_469 = lean_ctor_get(x_460, 1); +lean_inc(x_469); +lean_dec(x_460); +x_470 = l_Array_isEmpty___rarg(x_11); +if (x_470 == 0) { -lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; +lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_dec(x_12); lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); -x_460 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_460, 0, x_90); -x_461 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; -x_462 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_462, 0, x_461); -lean_ctor_set(x_462, 1, x_460); -x_463 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; -x_464 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_464, 0, x_462); -lean_ctor_set(x_464, 1, x_463); -x_465 = x_11; -x_466 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(x_94, x_465); -x_467 = x_466; -x_468 = l_Array_toList___rarg(x_467); -lean_dec(x_467); -x_469 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_468); -x_470 = l_Array_HasRepr___rarg___closed__1; -x_471 = lean_string_append(x_470, x_469); -lean_dec(x_469); -x_472 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_472, 0, x_471); -x_473 = lean_alloc_ctor(0, 1, 0); +x_471 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_471, 0, x_95); +x_472 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_473 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_473, 0, x_472); -x_474 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_474, 0, x_464); -lean_ctor_set(x_474, 1, x_473); -x_475 = l_Lean_Elab_Term_throwError___rarg(x_6, x_474, x_4, x_458); -lean_dec(x_6); -return x_475; +lean_ctor_set(x_473, 1, x_471); +x_474 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_475 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_475, 0, x_473); +lean_ctor_set(x_475, 1, x_474); +x_476 = x_11; +x_477 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(x_99, x_476); +x_478 = x_477; +x_479 = l_Array_toList___rarg(x_478); +lean_dec(x_478); +x_480 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_479); +x_481 = l_Array_HasRepr___rarg___closed__1; +x_482 = lean_string_append(x_481, x_480); +lean_dec(x_480); +x_483 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_483, 0, x_482); +x_484 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_484, 0, x_483); +x_485 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_485, 0, x_475); +lean_ctor_set(x_485, 1, x_484); +x_486 = l_Lean_Elab_Term_throwError___rarg(x_485, x_4, x_469); +return x_486; } else { -lean_object* x_476; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; uint8_t x_507; -lean_dec(x_90); +lean_object* x_487; lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; uint8_t x_521; +lean_dec(x_95); lean_dec(x_11); -x_503 = l_Lean_Elab_Term_getOptions(x_4, x_458); -x_504 = lean_ctor_get(x_503, 0); -lean_inc(x_504); -x_505 = lean_ctor_get(x_503, 1); -lean_inc(x_505); -lean_dec(x_503); -x_506 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; -x_507 = l_Lean_checkTraceOption(x_504, x_506); -lean_dec(x_504); -if (x_507 == 0) +x_514 = l_Lean_Elab_Term_getOptions(x_4, x_469); +x_515 = lean_ctor_get(x_514, 0); +lean_inc(x_515); +x_516 = lean_ctor_get(x_514, 1); +lean_inc(x_516); +lean_dec(x_514); +x_517 = l_Lean_Elab_Term_getCurrRef(x_4, x_516); +x_518 = lean_ctor_get(x_517, 0); +lean_inc(x_518); +x_519 = lean_ctor_get(x_517, 1); +lean_inc(x_519); +lean_dec(x_517); +x_520 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_521 = l_Lean_checkTraceOption(x_515, x_520); +lean_dec(x_515); +if (x_521 == 0) { -x_476 = x_505; -goto block_502; +lean_dec(x_518); +x_487 = x_519; +goto block_513; } else { -lean_object* x_508; lean_object* x_509; lean_object* x_510; +lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_inc(x_2); -x_508 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_508, 0, x_2); +x_522 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_522, 0, x_2); lean_inc(x_4); -x_509 = l_Lean_Elab_Term_logTrace(x_506, x_6, x_508, x_4, x_505); -x_510 = lean_ctor_get(x_509, 1); -lean_inc(x_510); -lean_dec(x_509); -x_476 = x_510; -goto block_502; +x_523 = l_Lean_Elab_Term_logTrace(x_520, x_518, x_522, x_4, x_519); +lean_dec(x_518); +x_524 = lean_ctor_get(x_523, 1); +lean_inc(x_524); +lean_dec(x_523); +x_487 = x_524; +goto block_513; } -block_502: +block_513: { if (lean_obj_tag(x_8) == 0) { -lean_object* x_477; +lean_object* x_488; lean_dec(x_3); -x_477 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_476); +x_488 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_12, x_99, x_4, x_487); lean_dec(x_12); -if (lean_obj_tag(x_477) == 0) +if (lean_obj_tag(x_488) == 0) { -uint8_t x_478; -x_478 = !lean_is_exclusive(x_477); -if (x_478 == 0) +uint8_t x_489; +x_489 = !lean_is_exclusive(x_488); +if (x_489 == 0) { -lean_object* x_479; -x_479 = lean_ctor_get(x_477, 0); -lean_dec(x_479); -lean_ctor_set(x_477, 0, x_2); -return x_477; +lean_object* x_490; +x_490 = lean_ctor_get(x_488, 0); +lean_dec(x_490); +lean_ctor_set(x_488, 0, x_2); +return x_488; } else { -lean_object* x_480; lean_object* x_481; -x_480 = lean_ctor_get(x_477, 1); -lean_inc(x_480); -lean_dec(x_477); -x_481 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_481, 0, x_2); -lean_ctor_set(x_481, 1, x_480); -return x_481; +lean_object* x_491; lean_object* x_492; +x_491 = lean_ctor_get(x_488, 1); +lean_inc(x_491); +lean_dec(x_488); +x_492 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_492, 0, x_2); +lean_ctor_set(x_492, 1, x_491); +return x_492; } } else { -uint8_t x_482; +uint8_t x_493; lean_dec(x_2); -x_482 = !lean_is_exclusive(x_477); -if (x_482 == 0) +x_493 = !lean_is_exclusive(x_488); +if (x_493 == 0) { -return x_477; +return x_488; } else { -lean_object* x_483; lean_object* x_484; lean_object* x_485; -x_483 = lean_ctor_get(x_477, 0); -x_484 = lean_ctor_get(x_477, 1); -lean_inc(x_484); -lean_inc(x_483); -lean_dec(x_477); -x_485 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_485, 0, x_483); -lean_ctor_set(x_485, 1, x_484); -return x_485; +lean_object* x_494; lean_object* x_495; lean_object* x_496; +x_494 = lean_ctor_get(x_488, 0); +x_495 = lean_ctor_get(x_488, 1); +lean_inc(x_495); +lean_inc(x_494); +lean_dec(x_488); +x_496 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_496, 0, x_494); +lean_ctor_set(x_496, 1, x_495); +return x_496; } } } else { -lean_object* x_486; lean_object* x_487; -x_486 = lean_ctor_get(x_8, 0); -lean_inc(x_486); +lean_object* x_497; lean_object* x_498; +x_497 = lean_ctor_get(x_8, 0); +lean_inc(x_497); lean_dec(x_8); lean_inc(x_4); -x_487 = l_Lean_Elab_Term_isDefEq(x_6, x_486, x_3, x_4, x_476); -if (lean_obj_tag(x_487) == 0) +x_498 = l_Lean_Elab_Term_isDefEq(x_497, x_3, x_4, x_487); +if (lean_obj_tag(x_498) == 0) { -lean_object* x_488; lean_object* x_489; -x_488 = lean_ctor_get(x_487, 1); -lean_inc(x_488); -lean_dec(x_487); -x_489 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_488); -lean_dec(x_12); -if (lean_obj_tag(x_489) == 0) -{ -uint8_t x_490; -x_490 = !lean_is_exclusive(x_489); -if (x_490 == 0) -{ -lean_object* x_491; -x_491 = lean_ctor_get(x_489, 0); -lean_dec(x_491); -lean_ctor_set(x_489, 0, x_2); -return x_489; -} -else -{ -lean_object* x_492; lean_object* x_493; -x_492 = lean_ctor_get(x_489, 1); -lean_inc(x_492); -lean_dec(x_489); -x_493 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_493, 0, x_2); -lean_ctor_set(x_493, 1, x_492); -return x_493; -} -} -else -{ -uint8_t x_494; -lean_dec(x_2); -x_494 = !lean_is_exclusive(x_489); -if (x_494 == 0) -{ -return x_489; -} -else -{ -lean_object* x_495; lean_object* x_496; lean_object* x_497; -x_495 = lean_ctor_get(x_489, 0); -x_496 = lean_ctor_get(x_489, 1); -lean_inc(x_496); -lean_inc(x_495); -lean_dec(x_489); -x_497 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_497, 0, x_495); -lean_ctor_set(x_497, 1, x_496); -return x_497; -} -} -} -else -{ -uint8_t x_498; -lean_dec(x_12); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -x_498 = !lean_is_exclusive(x_487); -if (x_498 == 0) -{ -return x_487; -} -else -{ -lean_object* x_499; lean_object* x_500; lean_object* x_501; -x_499 = lean_ctor_get(x_487, 0); -x_500 = lean_ctor_get(x_487, 1); -lean_inc(x_500); +lean_object* x_499; lean_object* x_500; +x_499 = lean_ctor_get(x_498, 1); lean_inc(x_499); -lean_dec(x_487); -x_501 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_501, 0, x_499); -lean_ctor_set(x_501, 1, x_500); -return x_501; +lean_dec(x_498); +x_500 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_12, x_99, x_4, x_499); +lean_dec(x_12); +if (lean_obj_tag(x_500) == 0) +{ +uint8_t x_501; +x_501 = !lean_is_exclusive(x_500); +if (x_501 == 0) +{ +lean_object* x_502; +x_502 = lean_ctor_get(x_500, 0); +lean_dec(x_502); +lean_ctor_set(x_500, 0, x_2); +return x_500; +} +else +{ +lean_object* x_503; lean_object* x_504; +x_503 = lean_ctor_get(x_500, 1); +lean_inc(x_503); +lean_dec(x_500); +x_504 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_504, 0, x_2); +lean_ctor_set(x_504, 1, x_503); +return x_504; +} +} +else +{ +uint8_t x_505; +lean_dec(x_2); +x_505 = !lean_is_exclusive(x_500); +if (x_505 == 0) +{ +return x_500; +} +else +{ +lean_object* x_506; lean_object* x_507; lean_object* x_508; +x_506 = lean_ctor_get(x_500, 0); +x_507 = lean_ctor_get(x_500, 1); +lean_inc(x_507); +lean_inc(x_506); +lean_dec(x_500); +x_508 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_508, 0, x_506); +lean_ctor_set(x_508, 1, x_507); +return x_508; +} +} +} +else +{ +uint8_t x_509; +lean_dec(x_4); +lean_dec(x_12); +lean_dec(x_2); +x_509 = !lean_is_exclusive(x_498); +if (x_509 == 0) +{ +return x_498; +} +else +{ +lean_object* x_510; lean_object* x_511; lean_object* x_512; +x_510 = lean_ctor_get(x_498, 0); +x_511 = lean_ctor_get(x_498, 1); +lean_inc(x_511); +lean_inc(x_510); +lean_dec(x_498); +x_512 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_512, 0, x_510); +lean_ctor_set(x_512, 1, x_511); +return x_512; } } } @@ -4834,46 +5026,46 @@ return x_501; } else { -lean_object* x_511; lean_object* x_512; lean_object* x_513; -lean_dec(x_90); +lean_object* x_525; lean_object* x_526; lean_object* x_527; +lean_dec(x_95); lean_dec(x_3); -x_511 = lean_ctor_get(x_449, 1); -lean_inc(x_511); -lean_dec(x_449); -x_512 = lean_array_fget(x_7, x_10); +x_525 = lean_ctor_get(x_460, 1); +lean_inc(x_525); +lean_dec(x_460); +x_526 = lean_array_fget(x_7, x_10); lean_inc(x_4); lean_inc(x_2); -lean_inc(x_6); -x_513 = l___private_Lean_Elab_App_2__elabArg(x_6, x_2, x_512, x_91, x_4, x_511); -if (lean_obj_tag(x_513) == 0) +x_527 = l___private_Lean_Elab_App_2__elabArg(x_2, x_526, x_96, x_4, x_525); +if (lean_obj_tag(x_527) == 0) { -lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; uint8_t x_518; lean_object* x_519; lean_object* x_520; -x_514 = lean_ctor_get(x_513, 0); -lean_inc(x_514); -x_515 = lean_ctor_get(x_513, 1); -lean_inc(x_515); -lean_dec(x_513); -x_516 = lean_unsigned_to_nat(1u); -x_517 = lean_nat_add(x_10, x_516); +lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; uint8_t x_532; lean_object* x_533; lean_object* x_534; +x_528 = lean_ctor_get(x_527, 0); +lean_inc(x_528); +x_529 = lean_ctor_get(x_527, 1); +lean_inc(x_529); +lean_dec(x_527); +x_530 = lean_unsigned_to_nat(1u); +x_531 = lean_nat_add(x_10, x_530); lean_dec(x_10); -x_518 = 1; -lean_ctor_set(x_1, 3, x_517); -lean_ctor_set_uint8(x_1, sizeof(void*)*7 + 1, x_518); -lean_inc(x_514); -x_519 = l_Lean_mkApp(x_2, x_514); -x_520 = lean_expr_instantiate1(x_92, x_514); -lean_dec(x_514); -lean_dec(x_92); -x_2 = x_519; -x_3 = x_520; -x_5 = x_515; +x_532 = 1; +lean_ctor_set(x_1, 3, x_531); +lean_ctor_set_uint8(x_1, sizeof(void*)*7 + 1, x_532); +lean_inc(x_528); +x_533 = l_Lean_mkApp(x_2, x_528); +x_534 = lean_expr_instantiate1(x_97, x_528); +lean_dec(x_528); +lean_dec(x_97); +x_2 = x_533; +x_3 = x_534; +x_5 = x_529; goto _start; } else { -uint8_t x_522; +uint8_t x_536; lean_free_object(x_1); -lean_dec(x_92); +lean_dec(x_97); +lean_dec(x_4); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -4881,36 +5073,36 @@ lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_4); lean_dec(x_2); -x_522 = !lean_is_exclusive(x_513); -if (x_522 == 0) +x_536 = !lean_is_exclusive(x_527); +if (x_536 == 0) { -return x_513; +return x_527; } else { -lean_object* x_523; lean_object* x_524; lean_object* x_525; -x_523 = lean_ctor_get(x_513, 0); -x_524 = lean_ctor_get(x_513, 1); -lean_inc(x_524); -lean_inc(x_523); -lean_dec(x_513); -x_525 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_525, 0, x_523); -lean_ctor_set(x_525, 1, x_524); -return x_525; +lean_object* x_537; lean_object* x_538; lean_object* x_539; +x_537 = lean_ctor_get(x_527, 0); +x_538 = lean_ctor_get(x_527, 1); +lean_inc(x_538); +lean_inc(x_537); +lean_dec(x_527); +x_539 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_539, 0, x_537); +lean_ctor_set(x_539, 1, x_538); +return x_539; } } } } else { -uint8_t x_526; +uint8_t x_540; lean_free_object(x_1); -lean_dec(x_92); -lean_dec(x_91); -lean_dec(x_90); +lean_dec(x_97); +lean_dec(x_96); +lean_dec(x_95); +lean_dec(x_4); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -4918,263 +5110,269 @@ lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_526 = !lean_is_exclusive(x_449); -if (x_526 == 0) +x_540 = !lean_is_exclusive(x_460); +if (x_540 == 0) { -return x_449; +return x_460; } else { -lean_object* x_527; lean_object* x_528; lean_object* x_529; -x_527 = lean_ctor_get(x_449, 0); -x_528 = lean_ctor_get(x_449, 1); -lean_inc(x_528); -lean_inc(x_527); -lean_dec(x_449); -x_529 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_529, 0, x_527); -lean_ctor_set(x_529, 1, x_528); -return x_529; +lean_object* x_541; lean_object* x_542; lean_object* x_543; +x_541 = lean_ctor_get(x_460, 0); +x_542 = lean_ctor_get(x_460, 1); +lean_inc(x_542); +lean_inc(x_541); +lean_dec(x_460); +x_543 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_543, 0, x_541); +lean_ctor_set(x_543, 1, x_542); +return x_543; } } } else { lean_dec(x_1); -if (lean_obj_tag(x_449) == 0) +if (lean_obj_tag(x_460) == 0) { -if (x_448 == 0) +if (x_459 == 0) { -lean_object* x_530; uint8_t x_531; -lean_dec(x_92); -lean_dec(x_91); +lean_object* x_544; uint8_t x_545; +lean_dec(x_97); +lean_dec(x_96); lean_dec(x_13); lean_dec(x_10); lean_dec(x_7); -x_530 = lean_ctor_get(x_449, 1); -lean_inc(x_530); -lean_dec(x_449); -x_531 = l_Array_isEmpty___rarg(x_11); -if (x_531 == 0) +lean_dec(x_6); +x_544 = lean_ctor_get(x_460, 1); +lean_inc(x_544); +lean_dec(x_460); +x_545 = l_Array_isEmpty___rarg(x_11); +if (x_545 == 0) { -lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; +lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_dec(x_12); lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); -x_532 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_532, 0, x_90); -x_533 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; -x_534 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_534, 0, x_533); -lean_ctor_set(x_534, 1, x_532); -x_535 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; -x_536 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_536, 0, x_534); -lean_ctor_set(x_536, 1, x_535); -x_537 = x_11; -x_538 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(x_94, x_537); -x_539 = x_538; -x_540 = l_Array_toList___rarg(x_539); -lean_dec(x_539); -x_541 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_540); -x_542 = l_Array_HasRepr___rarg___closed__1; -x_543 = lean_string_append(x_542, x_541); -lean_dec(x_541); -x_544 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_544, 0, x_543); -x_545 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_545, 0, x_544); -x_546 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_546, 0, x_536); -lean_ctor_set(x_546, 1, x_545); -x_547 = l_Lean_Elab_Term_throwError___rarg(x_6, x_546, x_4, x_530); -lean_dec(x_6); -return x_547; +x_546 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_546, 0, x_95); +x_547 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_548 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_548, 0, x_547); +lean_ctor_set(x_548, 1, x_546); +x_549 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_550 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_550, 0, x_548); +lean_ctor_set(x_550, 1, x_549); +x_551 = x_11; +x_552 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(x_99, x_551); +x_553 = x_552; +x_554 = l_Array_toList___rarg(x_553); +lean_dec(x_553); +x_555 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_554); +x_556 = l_Array_HasRepr___rarg___closed__1; +x_557 = lean_string_append(x_556, x_555); +lean_dec(x_555); +x_558 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_558, 0, x_557); +x_559 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_559, 0, x_558); +x_560 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_560, 0, x_550); +lean_ctor_set(x_560, 1, x_559); +x_561 = l_Lean_Elab_Term_throwError___rarg(x_560, x_4, x_544); +return x_561; } else { -lean_object* x_548; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; uint8_t x_577; -lean_dec(x_90); +lean_object* x_562; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; uint8_t x_594; +lean_dec(x_95); lean_dec(x_11); -x_573 = l_Lean_Elab_Term_getOptions(x_4, x_530); -x_574 = lean_ctor_get(x_573, 0); -lean_inc(x_574); -x_575 = lean_ctor_get(x_573, 1); -lean_inc(x_575); -lean_dec(x_573); -x_576 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; -x_577 = l_Lean_checkTraceOption(x_574, x_576); -lean_dec(x_574); -if (x_577 == 0) +x_587 = l_Lean_Elab_Term_getOptions(x_4, x_544); +x_588 = lean_ctor_get(x_587, 0); +lean_inc(x_588); +x_589 = lean_ctor_get(x_587, 1); +lean_inc(x_589); +lean_dec(x_587); +x_590 = l_Lean_Elab_Term_getCurrRef(x_4, x_589); +x_591 = lean_ctor_get(x_590, 0); +lean_inc(x_591); +x_592 = lean_ctor_get(x_590, 1); +lean_inc(x_592); +lean_dec(x_590); +x_593 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_594 = l_Lean_checkTraceOption(x_588, x_593); +lean_dec(x_588); +if (x_594 == 0) { -x_548 = x_575; -goto block_572; +lean_dec(x_591); +x_562 = x_592; +goto block_586; } else { -lean_object* x_578; lean_object* x_579; lean_object* x_580; +lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_inc(x_2); -x_578 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_578, 0, x_2); +x_595 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_595, 0, x_2); lean_inc(x_4); -x_579 = l_Lean_Elab_Term_logTrace(x_576, x_6, x_578, x_4, x_575); -x_580 = lean_ctor_get(x_579, 1); -lean_inc(x_580); -lean_dec(x_579); -x_548 = x_580; -goto block_572; +x_596 = l_Lean_Elab_Term_logTrace(x_593, x_591, x_595, x_4, x_592); +lean_dec(x_591); +x_597 = lean_ctor_get(x_596, 1); +lean_inc(x_597); +lean_dec(x_596); +x_562 = x_597; +goto block_586; } -block_572: +block_586: { if (lean_obj_tag(x_8) == 0) { -lean_object* x_549; +lean_object* x_563; lean_dec(x_3); -x_549 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_548); +x_563 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_12, x_99, x_4, x_562); lean_dec(x_12); -if (lean_obj_tag(x_549) == 0) +if (lean_obj_tag(x_563) == 0) { -lean_object* x_550; lean_object* x_551; lean_object* x_552; -x_550 = lean_ctor_get(x_549, 1); -lean_inc(x_550); -if (lean_is_exclusive(x_549)) { - lean_ctor_release(x_549, 0); - lean_ctor_release(x_549, 1); - x_551 = x_549; +lean_object* x_564; lean_object* x_565; lean_object* x_566; +x_564 = lean_ctor_get(x_563, 1); +lean_inc(x_564); +if (lean_is_exclusive(x_563)) { + lean_ctor_release(x_563, 0); + lean_ctor_release(x_563, 1); + x_565 = x_563; } else { - lean_dec_ref(x_549); - x_551 = lean_box(0); + lean_dec_ref(x_563); + x_565 = lean_box(0); } -if (lean_is_scalar(x_551)) { - x_552 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_565)) { + x_566 = lean_alloc_ctor(0, 2, 0); } else { - x_552 = x_551; + x_566 = x_565; } -lean_ctor_set(x_552, 0, x_2); -lean_ctor_set(x_552, 1, x_550); -return x_552; +lean_ctor_set(x_566, 0, x_2); +lean_ctor_set(x_566, 1, x_564); +return x_566; } else { -lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; +lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_dec(x_2); -x_553 = lean_ctor_get(x_549, 0); -lean_inc(x_553); -x_554 = lean_ctor_get(x_549, 1); -lean_inc(x_554); -if (lean_is_exclusive(x_549)) { - lean_ctor_release(x_549, 0); - lean_ctor_release(x_549, 1); - x_555 = x_549; +x_567 = lean_ctor_get(x_563, 0); +lean_inc(x_567); +x_568 = lean_ctor_get(x_563, 1); +lean_inc(x_568); +if (lean_is_exclusive(x_563)) { + lean_ctor_release(x_563, 0); + lean_ctor_release(x_563, 1); + x_569 = x_563; } else { - lean_dec_ref(x_549); - x_555 = lean_box(0); + lean_dec_ref(x_563); + x_569 = lean_box(0); } -if (lean_is_scalar(x_555)) { - x_556 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_569)) { + x_570 = lean_alloc_ctor(1, 2, 0); } else { - x_556 = x_555; + x_570 = x_569; } -lean_ctor_set(x_556, 0, x_553); -lean_ctor_set(x_556, 1, x_554); -return x_556; +lean_ctor_set(x_570, 0, x_567); +lean_ctor_set(x_570, 1, x_568); +return x_570; } } else { -lean_object* x_557; lean_object* x_558; -x_557 = lean_ctor_get(x_8, 0); -lean_inc(x_557); +lean_object* x_571; lean_object* x_572; +x_571 = lean_ctor_get(x_8, 0); +lean_inc(x_571); lean_dec(x_8); lean_inc(x_4); -x_558 = l_Lean_Elab_Term_isDefEq(x_6, x_557, x_3, x_4, x_548); -if (lean_obj_tag(x_558) == 0) +x_572 = l_Lean_Elab_Term_isDefEq(x_571, x_3, x_4, x_562); +if (lean_obj_tag(x_572) == 0) { -lean_object* x_559; lean_object* x_560; -x_559 = lean_ctor_get(x_558, 1); -lean_inc(x_559); -lean_dec(x_558); -x_560 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_559); +lean_object* x_573; lean_object* x_574; +x_573 = lean_ctor_get(x_572, 1); +lean_inc(x_573); +lean_dec(x_572); +x_574 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_12, x_99, x_4, x_573); lean_dec(x_12); -if (lean_obj_tag(x_560) == 0) +if (lean_obj_tag(x_574) == 0) { -lean_object* x_561; lean_object* x_562; lean_object* x_563; -x_561 = lean_ctor_get(x_560, 1); -lean_inc(x_561); -if (lean_is_exclusive(x_560)) { - lean_ctor_release(x_560, 0); - lean_ctor_release(x_560, 1); - x_562 = x_560; +lean_object* x_575; lean_object* x_576; lean_object* x_577; +x_575 = lean_ctor_get(x_574, 1); +lean_inc(x_575); +if (lean_is_exclusive(x_574)) { + lean_ctor_release(x_574, 0); + lean_ctor_release(x_574, 1); + x_576 = x_574; } else { - lean_dec_ref(x_560); - x_562 = lean_box(0); + lean_dec_ref(x_574); + x_576 = lean_box(0); } -if (lean_is_scalar(x_562)) { - x_563 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_576)) { + x_577 = lean_alloc_ctor(0, 2, 0); } else { - x_563 = x_562; + x_577 = x_576; } -lean_ctor_set(x_563, 0, x_2); -lean_ctor_set(x_563, 1, x_561); -return x_563; +lean_ctor_set(x_577, 0, x_2); +lean_ctor_set(x_577, 1, x_575); +return x_577; } else { -lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; +lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_dec(x_2); -x_564 = lean_ctor_get(x_560, 0); -lean_inc(x_564); -x_565 = lean_ctor_get(x_560, 1); -lean_inc(x_565); -if (lean_is_exclusive(x_560)) { - lean_ctor_release(x_560, 0); - lean_ctor_release(x_560, 1); - x_566 = x_560; +x_578 = lean_ctor_get(x_574, 0); +lean_inc(x_578); +x_579 = lean_ctor_get(x_574, 1); +lean_inc(x_579); +if (lean_is_exclusive(x_574)) { + lean_ctor_release(x_574, 0); + lean_ctor_release(x_574, 1); + x_580 = x_574; } else { - lean_dec_ref(x_560); - x_566 = lean_box(0); + lean_dec_ref(x_574); + x_580 = lean_box(0); } -if (lean_is_scalar(x_566)) { - x_567 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_580)) { + x_581 = lean_alloc_ctor(1, 2, 0); } else { - x_567 = x_566; + x_581 = x_580; } -lean_ctor_set(x_567, 0, x_564); -lean_ctor_set(x_567, 1, x_565); -return x_567; +lean_ctor_set(x_581, 0, x_578); +lean_ctor_set(x_581, 1, x_579); +return x_581; } } else { -lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; -lean_dec(x_12); -lean_dec(x_6); +lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_dec(x_4); +lean_dec(x_12); lean_dec(x_2); -x_568 = lean_ctor_get(x_558, 0); -lean_inc(x_568); -x_569 = lean_ctor_get(x_558, 1); -lean_inc(x_569); -if (lean_is_exclusive(x_558)) { - lean_ctor_release(x_558, 0); - lean_ctor_release(x_558, 1); - x_570 = x_558; +x_582 = lean_ctor_get(x_572, 0); +lean_inc(x_582); +x_583 = lean_ctor_get(x_572, 1); +lean_inc(x_583); +if (lean_is_exclusive(x_572)) { + lean_ctor_release(x_572, 0); + lean_ctor_release(x_572, 1); + x_584 = x_572; } else { - lean_dec_ref(x_558); - x_570 = lean_box(0); + lean_dec_ref(x_572); + x_584 = lean_box(0); } -if (lean_is_scalar(x_570)) { - x_571 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_584)) { + x_585 = lean_alloc_ctor(1, 2, 0); } else { - x_571 = x_570; + x_585 = x_584; } -lean_ctor_set(x_571, 0, x_568); -lean_ctor_set(x_571, 1, x_569); -return x_571; +lean_ctor_set(x_585, 0, x_582); +lean_ctor_set(x_585, 1, x_583); +return x_585; } } } @@ -5182,54 +5380,54 @@ return x_571; } else { -lean_object* x_581; lean_object* x_582; lean_object* x_583; -lean_dec(x_90); +lean_object* x_598; lean_object* x_599; lean_object* x_600; +lean_dec(x_95); lean_dec(x_3); -x_581 = lean_ctor_get(x_449, 1); -lean_inc(x_581); -lean_dec(x_449); -x_582 = lean_array_fget(x_7, x_10); +x_598 = lean_ctor_get(x_460, 1); +lean_inc(x_598); +lean_dec(x_460); +x_599 = lean_array_fget(x_7, x_10); lean_inc(x_4); lean_inc(x_2); -lean_inc(x_6); -x_583 = l___private_Lean_Elab_App_2__elabArg(x_6, x_2, x_582, x_91, x_4, x_581); -if (lean_obj_tag(x_583) == 0) +x_600 = l___private_Lean_Elab_App_2__elabArg(x_2, x_599, x_96, x_4, x_598); +if (lean_obj_tag(x_600) == 0) { -lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; uint8_t x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; -x_584 = lean_ctor_get(x_583, 0); -lean_inc(x_584); -x_585 = lean_ctor_get(x_583, 1); -lean_inc(x_585); -lean_dec(x_583); -x_586 = lean_unsigned_to_nat(1u); -x_587 = lean_nat_add(x_10, x_586); +lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; uint8_t x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; +x_601 = lean_ctor_get(x_600, 0); +lean_inc(x_601); +x_602 = lean_ctor_get(x_600, 1); +lean_inc(x_602); +lean_dec(x_600); +x_603 = lean_unsigned_to_nat(1u); +x_604 = lean_nat_add(x_10, x_603); lean_dec(x_10); -x_588 = 1; -x_589 = lean_alloc_ctor(0, 7, 2); -lean_ctor_set(x_589, 0, x_6); -lean_ctor_set(x_589, 1, x_7); -lean_ctor_set(x_589, 2, x_8); -lean_ctor_set(x_589, 3, x_587); -lean_ctor_set(x_589, 4, x_11); -lean_ctor_set(x_589, 5, x_12); -lean_ctor_set(x_589, 6, x_13); -lean_ctor_set_uint8(x_589, sizeof(void*)*7, x_9); -lean_ctor_set_uint8(x_589, sizeof(void*)*7 + 1, x_588); -lean_inc(x_584); -x_590 = l_Lean_mkApp(x_2, x_584); -x_591 = lean_expr_instantiate1(x_92, x_584); -lean_dec(x_584); -lean_dec(x_92); -x_1 = x_589; -x_2 = x_590; -x_3 = x_591; -x_5 = x_585; +x_605 = 1; +x_606 = lean_alloc_ctor(0, 7, 2); +lean_ctor_set(x_606, 0, x_6); +lean_ctor_set(x_606, 1, x_7); +lean_ctor_set(x_606, 2, x_8); +lean_ctor_set(x_606, 3, x_604); +lean_ctor_set(x_606, 4, x_11); +lean_ctor_set(x_606, 5, x_12); +lean_ctor_set(x_606, 6, x_13); +lean_ctor_set_uint8(x_606, sizeof(void*)*7, x_9); +lean_ctor_set_uint8(x_606, sizeof(void*)*7 + 1, x_605); +lean_inc(x_601); +x_607 = l_Lean_mkApp(x_2, x_601); +x_608 = lean_expr_instantiate1(x_97, x_601); +lean_dec(x_601); +lean_dec(x_97); +x_1 = x_606; +x_2 = x_607; +x_3 = x_608; +x_5 = x_602; goto _start; } else { -lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; -lean_dec(x_92); +lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; +lean_dec(x_97); +lean_dec(x_4); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -5237,37 +5435,37 @@ lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_4); lean_dec(x_2); -x_593 = lean_ctor_get(x_583, 0); -lean_inc(x_593); -x_594 = lean_ctor_get(x_583, 1); -lean_inc(x_594); -if (lean_is_exclusive(x_583)) { - lean_ctor_release(x_583, 0); - lean_ctor_release(x_583, 1); - x_595 = x_583; +x_610 = lean_ctor_get(x_600, 0); +lean_inc(x_610); +x_611 = lean_ctor_get(x_600, 1); +lean_inc(x_611); +if (lean_is_exclusive(x_600)) { + lean_ctor_release(x_600, 0); + lean_ctor_release(x_600, 1); + x_612 = x_600; } else { - lean_dec_ref(x_583); - x_595 = lean_box(0); + lean_dec_ref(x_600); + x_612 = lean_box(0); } -if (lean_is_scalar(x_595)) { - x_596 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_612)) { + x_613 = lean_alloc_ctor(1, 2, 0); } else { - x_596 = x_595; + x_613 = x_612; } -lean_ctor_set(x_596, 0, x_593); -lean_ctor_set(x_596, 1, x_594); -return x_596; +lean_ctor_set(x_613, 0, x_610); +lean_ctor_set(x_613, 1, x_611); +return x_613; } } } else { -lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; -lean_dec(x_92); -lean_dec(x_91); -lean_dec(x_90); +lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; +lean_dec(x_97); +lean_dec(x_96); +lean_dec(x_95); +lean_dec(x_4); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -5275,37 +5473,36 @@ lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_597 = lean_ctor_get(x_449, 0); -lean_inc(x_597); -x_598 = lean_ctor_get(x_449, 1); -lean_inc(x_598); -if (lean_is_exclusive(x_449)) { - lean_ctor_release(x_449, 0); - lean_ctor_release(x_449, 1); - x_599 = x_449; +x_614 = lean_ctor_get(x_460, 0); +lean_inc(x_614); +x_615 = lean_ctor_get(x_460, 1); +lean_inc(x_615); +if (lean_is_exclusive(x_460)) { + lean_ctor_release(x_460, 0); + lean_ctor_release(x_460, 1); + x_616 = x_460; } else { - lean_dec_ref(x_449); - x_599 = lean_box(0); + lean_dec_ref(x_460); + x_616 = lean_box(0); } -if (lean_is_scalar(x_599)) { - x_600 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_616)) { + x_617 = lean_alloc_ctor(1, 2, 0); } else { - x_600 = x_599; + x_617 = x_616; } -lean_ctor_set(x_600, 0, x_597); -lean_ctor_set(x_600, 1, x_598); -return x_600; +lean_ctor_set(x_617, 0, x_614); +lean_ctor_set(x_617, 1, x_615); +return x_617; } } } } case 2: { -uint8_t x_601; lean_object* x_602; lean_object* x_603; uint8_t x_604; lean_object* x_605; uint8_t x_606; -x_601 = 1; +uint8_t x_618; lean_object* x_619; lean_object* x_620; uint8_t x_621; lean_object* x_622; uint8_t x_623; +x_618 = 1; lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); @@ -5313,47 +5510,47 @@ lean_inc(x_10); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_602 = lean_alloc_ctor(0, 7, 2); -lean_ctor_set(x_602, 0, x_6); -lean_ctor_set(x_602, 1, x_7); -lean_ctor_set(x_602, 2, x_8); -lean_ctor_set(x_602, 3, x_10); -lean_ctor_set(x_602, 4, x_11); -lean_ctor_set(x_602, 5, x_12); -lean_ctor_set(x_602, 6, x_13); -lean_ctor_set_uint8(x_602, sizeof(void*)*7, x_9); -lean_ctor_set_uint8(x_602, sizeof(void*)*7 + 1, x_601); -x_603 = lean_array_get_size(x_7); -x_604 = lean_nat_dec_lt(x_10, x_603); -lean_dec(x_603); +x_619 = lean_alloc_ctor(0, 7, 2); +lean_ctor_set(x_619, 0, x_6); +lean_ctor_set(x_619, 1, x_7); +lean_ctor_set(x_619, 2, x_8); +lean_ctor_set(x_619, 3, x_10); +lean_ctor_set(x_619, 4, x_11); +lean_ctor_set(x_619, 5, x_12); +lean_ctor_set(x_619, 6, x_13); +lean_ctor_set_uint8(x_619, sizeof(void*)*7, x_9); +lean_ctor_set_uint8(x_619, sizeof(void*)*7 + 1, x_618); +x_620 = lean_array_get_size(x_7); +x_621 = lean_nat_dec_lt(x_10, x_620); +lean_dec(x_620); lean_inc(x_4); lean_inc(x_1); -x_605 = l___private_Lean_Elab_App_8__propagateExpectedType(x_1, x_16, x_4, x_17); -x_606 = !lean_is_exclusive(x_1); -if (x_606 == 0) +x_622 = l___private_Lean_Elab_App_8__propagateExpectedType(x_1, x_18, x_4, x_19); +x_623 = !lean_is_exclusive(x_1); +if (x_623 == 0) { -lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; -x_607 = lean_ctor_get(x_1, 6); -lean_dec(x_607); -x_608 = lean_ctor_get(x_1, 5); -lean_dec(x_608); -x_609 = lean_ctor_get(x_1, 4); -lean_dec(x_609); -x_610 = lean_ctor_get(x_1, 3); -lean_dec(x_610); -x_611 = lean_ctor_get(x_1, 2); -lean_dec(x_611); -x_612 = lean_ctor_get(x_1, 1); -lean_dec(x_612); -x_613 = lean_ctor_get(x_1, 0); -lean_dec(x_613); -if (lean_obj_tag(x_605) == 0) +lean_object* x_624; lean_object* x_625; lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; +x_624 = lean_ctor_get(x_1, 6); +lean_dec(x_624); +x_625 = lean_ctor_get(x_1, 5); +lean_dec(x_625); +x_626 = lean_ctor_get(x_1, 4); +lean_dec(x_626); +x_627 = lean_ctor_get(x_1, 3); +lean_dec(x_627); +x_628 = lean_ctor_get(x_1, 2); +lean_dec(x_628); +x_629 = lean_ctor_get(x_1, 1); +lean_dec(x_629); +x_630 = lean_ctor_get(x_1, 0); +lean_dec(x_630); +if (lean_obj_tag(x_622) == 0) { -lean_object* x_614; lean_object* x_615; -x_614 = lean_ctor_get(x_605, 1); -lean_inc(x_614); -lean_dec(x_605); -if (x_604 == 0) +lean_object* x_631; lean_object* x_632; +x_631 = lean_ctor_get(x_622, 1); +lean_inc(x_631); +lean_dec(x_622); +if (x_621 == 0) { lean_free_object(x_1); lean_dec(x_13); @@ -5361,335 +5558,216 @@ lean_dec(x_10); lean_dec(x_7); if (x_9 == 0) { -lean_object* x_669; -x_669 = l_Lean_Expr_getOptParamDefault_x3f(x_91); -if (lean_obj_tag(x_669) == 0) +lean_object* x_689; +x_689 = l_Lean_Expr_getOptParamDefault_x3f(x_96); +if (lean_obj_tag(x_689) == 0) { -lean_object* x_670; -x_670 = l_Lean_Expr_getAutoParamTactic_x3f(x_91); -if (lean_obj_tag(x_670) == 0) +lean_object* x_690; +x_690 = l_Lean_Expr_getAutoParamTactic_x3f(x_96); +if (lean_obj_tag(x_690) == 0) { -lean_object* x_671; -lean_dec(x_602); -lean_dec(x_92); -lean_dec(x_91); -x_671 = lean_box(0); -x_615 = x_671; -goto block_668; +lean_object* x_691; +lean_dec(x_619); +lean_dec(x_97); +lean_dec(x_96); +lean_dec(x_6); +x_691 = lean_box(0); +x_632 = x_691; +goto block_688; } else { -lean_object* x_672; -lean_dec(x_90); +lean_object* x_692; +lean_dec(x_95); lean_dec(x_12); lean_dec(x_11); lean_dec(x_8); lean_dec(x_3); -x_672 = lean_ctor_get(x_670, 0); -lean_inc(x_672); -lean_dec(x_670); -if (lean_obj_tag(x_672) == 4) +x_692 = lean_ctor_get(x_690, 0); +lean_inc(x_692); +lean_dec(x_690); +if (lean_obj_tag(x_692) == 4) { -lean_object* x_673; lean_object* x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; -x_673 = lean_ctor_get(x_672, 0); -lean_inc(x_673); -lean_dec(x_672); -x_674 = l_Lean_Elab_Term_getEnv___rarg(x_614); -x_675 = lean_ctor_get(x_674, 0); -lean_inc(x_675); -x_676 = lean_ctor_get(x_674, 1); -lean_inc(x_676); -lean_dec(x_674); -x_677 = l___private_Lean_Elab_Util_1__evalSyntaxConstantUnsafe(x_675, x_673); -if (lean_obj_tag(x_677) == 0) +lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; +x_693 = lean_ctor_get(x_692, 0); +lean_inc(x_693); +lean_dec(x_692); +x_694 = l_Lean_Elab_Term_getEnv___rarg(x_631); +x_695 = lean_ctor_get(x_694, 0); +lean_inc(x_695); +x_696 = lean_ctor_get(x_694, 1); +lean_inc(x_696); +lean_dec(x_694); +x_697 = l___private_Lean_Elab_Util_1__evalSyntaxConstantUnsafe(x_695, x_693); +if (lean_obj_tag(x_697) == 0) { -lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; -lean_dec(x_602); -lean_dec(x_92); -lean_dec(x_91); -lean_dec(x_2); -x_678 = lean_ctor_get(x_677, 0); -lean_inc(x_678); -lean_dec(x_677); -x_679 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_679, 0, x_678); -x_680 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_680, 0, x_679); -x_681 = l_Lean_Elab_Term_throwError___rarg(x_6, x_680, x_4, x_676); +lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; +lean_dec(x_619); +lean_dec(x_97); +lean_dec(x_96); lean_dec(x_6); -return x_681; -} -else -{ -lean_object* x_682; lean_object* x_683; lean_object* x_684; lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; -x_682 = lean_ctor_get(x_677, 0); -lean_inc(x_682); -lean_dec(x_677); -x_683 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_676); -x_684 = lean_ctor_get(x_683, 1); -lean_inc(x_684); -lean_dec(x_683); -x_685 = l_Lean_Elab_Term_getMainModule___rarg(x_684); -x_686 = lean_ctor_get(x_685, 1); -lean_inc(x_686); -lean_dec(x_685); -x_687 = l_Lean_Syntax_getArgs(x_682); -lean_dec(x_682); -x_688 = l_Array_empty___closed__1; -x_689 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_687, x_687, x_94, x_688); -lean_dec(x_687); -x_690 = l_Lean_nullKind___closed__2; -x_691 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_691, 0, x_690); -lean_ctor_set(x_691, 1, x_689); -x_692 = lean_array_push(x_688, x_691); -x_693 = l_Lean_PrettyPrinter_Parenthesizer_tacticParser_parenthesizer___lambda__1___closed__4; -x_694 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_694, 0, x_693); -lean_ctor_set(x_694, 1, x_692); -x_695 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__15; -x_696 = lean_array_push(x_695, x_694); -x_697 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__16; -x_698 = lean_array_push(x_696, x_697); -x_699 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; -x_700 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_700, 0, x_699); -lean_ctor_set(x_700, 1, x_698); -x_701 = l_Lean_Syntax_getHeadInfo___main(x_6); -x_702 = l_Lean_Expr_getAppNumArgsAux___main(x_91, x_94); -x_703 = lean_nat_sub(x_702, x_94); -lean_dec(x_702); -x_704 = lean_unsigned_to_nat(1u); -x_705 = lean_nat_sub(x_703, x_704); -lean_dec(x_703); -x_706 = l_Lean_Expr_getRevArg_x21___main(x_91, x_705); -lean_dec(x_91); -if (lean_obj_tag(x_701) == 0) -{ -lean_object* x_707; lean_object* x_708; -x_707 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_707, 0, x_700); -lean_inc(x_4); -lean_inc(x_2); -x_708 = l___private_Lean_Elab_App_2__elabArg(x_6, x_2, x_707, x_706, x_4, x_686); -if (lean_obj_tag(x_708) == 0) -{ -lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; -x_709 = lean_ctor_get(x_708, 0); -lean_inc(x_709); -x_710 = lean_ctor_get(x_708, 1); -lean_inc(x_710); -lean_dec(x_708); -lean_inc(x_709); -x_711 = l_Lean_mkApp(x_2, x_709); -x_712 = lean_expr_instantiate1(x_92, x_709); -lean_dec(x_709); -lean_dec(x_92); -x_1 = x_602; -x_2 = x_711; -x_3 = x_712; -x_5 = x_710; -goto _start; -} -else -{ -uint8_t x_714; -lean_dec(x_602); -lean_dec(x_92); -lean_dec(x_4); lean_dec(x_2); -x_714 = !lean_is_exclusive(x_708); -if (x_714 == 0) -{ -return x_708; +x_698 = lean_ctor_get(x_697, 0); +lean_inc(x_698); +lean_dec(x_697); +x_699 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_699, 0, x_698); +x_700 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_700, 0, x_699); +x_701 = l_Lean_Elab_Term_throwError___rarg(x_700, x_4, x_696); +return x_701; } else { -lean_object* x_715; lean_object* x_716; lean_object* x_717; -x_715 = lean_ctor_get(x_708, 0); -x_716 = lean_ctor_get(x_708, 1); -lean_inc(x_716); -lean_inc(x_715); -lean_dec(x_708); -x_717 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_717, 0, x_715); -lean_ctor_set(x_717, 1, x_716); -return x_717; -} -} -} -else -{ -lean_object* x_718; lean_object* x_719; lean_object* x_720; lean_object* x_721; -x_718 = lean_ctor_get(x_701, 0); -lean_inc(x_718); -lean_dec(x_701); -x_719 = l_Lean_Syntax_replaceInfo___main(x_718, x_700); -x_720 = lean_alloc_ctor(0, 1, 0); +lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; lean_object* x_719; lean_object* x_720; lean_object* x_721; lean_object* x_722; lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_726; +x_702 = lean_ctor_get(x_697, 0); +lean_inc(x_702); +lean_dec(x_697); +x_703 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_696); +x_704 = lean_ctor_get(x_703, 1); +lean_inc(x_704); +lean_dec(x_703); +x_705 = l_Lean_Elab_Term_getMainModule___rarg(x_704); +x_706 = lean_ctor_get(x_705, 1); +lean_inc(x_706); +lean_dec(x_705); +x_707 = l_Lean_Syntax_getArgs(x_702); +lean_dec(x_702); +x_708 = l_Array_empty___closed__1; +x_709 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_707, x_707, x_99, x_708); +lean_dec(x_707); +x_710 = l_Lean_nullKind___closed__2; +x_711 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_711, 0, x_710); +lean_ctor_set(x_711, 1, x_709); +x_712 = lean_array_push(x_708, x_711); +x_713 = l_Lean_PrettyPrinter_Parenthesizer_tacticParser_parenthesizer___lambda__1___closed__4; +x_714 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_714, 0, x_713); +lean_ctor_set(x_714, 1, x_712); +x_715 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__15; +x_716 = lean_array_push(x_715, x_714); +x_717 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__16; +x_718 = lean_array_push(x_716, x_717); +x_719 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; +x_720 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_720, 0, x_719); -lean_inc(x_4); -lean_inc(x_2); -x_721 = l___private_Lean_Elab_App_2__elabArg(x_6, x_2, x_720, x_706, x_4, x_686); +lean_ctor_set(x_720, 1, x_718); +x_721 = l_Lean_Syntax_getHeadInfo___main(x_6); +lean_dec(x_6); +x_722 = l_Lean_Expr_getAppNumArgsAux___main(x_96, x_99); +x_723 = lean_nat_sub(x_722, x_99); +lean_dec(x_722); +x_724 = lean_unsigned_to_nat(1u); +x_725 = lean_nat_sub(x_723, x_724); +lean_dec(x_723); +x_726 = l_Lean_Expr_getRevArg_x21___main(x_96, x_725); +lean_dec(x_96); if (lean_obj_tag(x_721) == 0) { -lean_object* x_722; lean_object* x_723; lean_object* x_724; lean_object* x_725; -x_722 = lean_ctor_get(x_721, 0); -lean_inc(x_722); -x_723 = lean_ctor_get(x_721, 1); -lean_inc(x_723); -lean_dec(x_721); -lean_inc(x_722); -x_724 = l_Lean_mkApp(x_2, x_722); -x_725 = lean_expr_instantiate1(x_92, x_722); -lean_dec(x_722); -lean_dec(x_92); -x_1 = x_602; -x_2 = x_724; -x_3 = x_725; -x_5 = x_723; -goto _start; -} -else -{ -uint8_t x_727; -lean_dec(x_602); -lean_dec(x_92); -lean_dec(x_4); -lean_dec(x_2); -x_727 = !lean_is_exclusive(x_721); -if (x_727 == 0) -{ -return x_721; -} -else -{ -lean_object* x_728; lean_object* x_729; lean_object* x_730; -x_728 = lean_ctor_get(x_721, 0); -x_729 = lean_ctor_get(x_721, 1); -lean_inc(x_729); -lean_inc(x_728); -lean_dec(x_721); -x_730 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_730, 0, x_728); -lean_ctor_set(x_730, 1, x_729); -return x_730; -} -} -} -} -} -else -{ -lean_object* x_731; lean_object* x_732; -lean_dec(x_672); -lean_dec(x_602); -lean_dec(x_92); -lean_dec(x_91); -lean_dec(x_2); -x_731 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__12; -x_732 = l_Lean_Elab_Term_throwError___rarg(x_6, x_731, x_4, x_614); -lean_dec(x_6); -return x_732; -} -} -} -else -{ -lean_object* x_733; lean_object* x_734; lean_object* x_735; -lean_dec(x_91); -lean_dec(x_90); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_3); -x_733 = lean_ctor_get(x_669, 0); -lean_inc(x_733); -lean_dec(x_669); -lean_inc(x_733); -x_734 = l_Lean_mkApp(x_2, x_733); -x_735 = lean_expr_instantiate1(x_92, x_733); -lean_dec(x_733); -lean_dec(x_92); -x_1 = x_602; -x_2 = x_734; -x_3 = x_735; -x_5 = x_614; -goto _start; -} -} -else -{ -lean_object* x_737; -lean_dec(x_602); -lean_dec(x_92); -lean_dec(x_91); -x_737 = lean_box(0); -x_615 = x_737; -goto block_668; -} -} -else -{ -lean_object* x_738; lean_object* x_739; -lean_dec(x_602); -lean_dec(x_90); -lean_dec(x_3); -x_738 = lean_array_fget(x_7, x_10); +lean_object* x_727; lean_object* x_728; +x_727 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_727, 0, x_720); lean_inc(x_4); lean_inc(x_2); -lean_inc(x_6); -x_739 = l___private_Lean_Elab_App_2__elabArg(x_6, x_2, x_738, x_91, x_4, x_614); -if (lean_obj_tag(x_739) == 0) +x_728 = l___private_Lean_Elab_App_2__elabArg(x_2, x_727, x_726, x_4, x_706); +if (lean_obj_tag(x_728) == 0) { -lean_object* x_740; lean_object* x_741; lean_object* x_742; lean_object* x_743; lean_object* x_744; lean_object* x_745; -x_740 = lean_ctor_get(x_739, 0); -lean_inc(x_740); -x_741 = lean_ctor_get(x_739, 1); -lean_inc(x_741); -lean_dec(x_739); -x_742 = lean_unsigned_to_nat(1u); -x_743 = lean_nat_add(x_10, x_742); -lean_dec(x_10); -lean_ctor_set(x_1, 3, x_743); -lean_ctor_set_uint8(x_1, sizeof(void*)*7 + 1, x_601); -lean_inc(x_740); -x_744 = l_Lean_mkApp(x_2, x_740); -x_745 = lean_expr_instantiate1(x_92, x_740); -lean_dec(x_740); -lean_dec(x_92); +lean_object* x_729; lean_object* x_730; lean_object* x_731; lean_object* x_732; +x_729 = lean_ctor_get(x_728, 0); +lean_inc(x_729); +x_730 = lean_ctor_get(x_728, 1); +lean_inc(x_730); +lean_dec(x_728); +lean_inc(x_729); +x_731 = l_Lean_mkApp(x_2, x_729); +x_732 = lean_expr_instantiate1(x_97, x_729); +lean_dec(x_729); +lean_dec(x_97); +x_1 = x_619; +x_2 = x_731; +x_3 = x_732; +x_5 = x_730; +goto _start; +} +else +{ +uint8_t x_734; +lean_dec(x_619); +lean_dec(x_97); +lean_dec(x_4); +lean_dec(x_2); +x_734 = !lean_is_exclusive(x_728); +if (x_734 == 0) +{ +return x_728; +} +else +{ +lean_object* x_735; lean_object* x_736; lean_object* x_737; +x_735 = lean_ctor_get(x_728, 0); +x_736 = lean_ctor_get(x_728, 1); +lean_inc(x_736); +lean_inc(x_735); +lean_dec(x_728); +x_737 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_737, 0, x_735); +lean_ctor_set(x_737, 1, x_736); +return x_737; +} +} +} +else +{ +lean_object* x_738; lean_object* x_739; lean_object* x_740; lean_object* x_741; +x_738 = lean_ctor_get(x_721, 0); +lean_inc(x_738); +lean_dec(x_721); +x_739 = l_Lean_Syntax_replaceInfo___main(x_738, x_720); +x_740 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_740, 0, x_739); +lean_inc(x_4); +lean_inc(x_2); +x_741 = l___private_Lean_Elab_App_2__elabArg(x_2, x_740, x_726, x_4, x_706); +if (lean_obj_tag(x_741) == 0) +{ +lean_object* x_742; lean_object* x_743; lean_object* x_744; lean_object* x_745; +x_742 = lean_ctor_get(x_741, 0); +lean_inc(x_742); +x_743 = lean_ctor_get(x_741, 1); +lean_inc(x_743); +lean_dec(x_741); +lean_inc(x_742); +x_744 = l_Lean_mkApp(x_2, x_742); +x_745 = lean_expr_instantiate1(x_97, x_742); +lean_dec(x_742); +lean_dec(x_97); +x_1 = x_619; x_2 = x_744; x_3 = x_745; -x_5 = x_741; +x_5 = x_743; goto _start; } else { uint8_t x_747; -lean_free_object(x_1); -lean_dec(x_92); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); +lean_dec(x_619); +lean_dec(x_97); lean_dec(x_4); lean_dec(x_2); -x_747 = !lean_is_exclusive(x_739); +x_747 = !lean_is_exclusive(x_741); if (x_747 == 0) { -return x_739; +return x_741; } else { lean_object* x_748; lean_object* x_749; lean_object* x_750; -x_748 = lean_ctor_get(x_739, 0); -x_749 = lean_ctor_get(x_739, 1); +x_748 = lean_ctor_get(x_741, 0); +x_749 = lean_ctor_get(x_741, 1); lean_inc(x_749); lean_inc(x_748); -lean_dec(x_739); +lean_dec(x_741); x_750 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_750, 0, x_748); lean_ctor_set(x_750, 1, x_749); @@ -5697,240 +5775,99 @@ return x_750; } } } -block_668: -{ -uint8_t x_616; -lean_dec(x_615); -x_616 = l_Array_isEmpty___rarg(x_11); -if (x_616 == 0) -{ -lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_3); -lean_dec(x_2); -x_617 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_617, 0, x_90); -x_618 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; -x_619 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_619, 0, x_618); -lean_ctor_set(x_619, 1, x_617); -x_620 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; -x_621 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_621, 0, x_619); -lean_ctor_set(x_621, 1, x_620); -x_622 = x_11; -x_623 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(x_94, x_622); -x_624 = x_623; -x_625 = l_Array_toList___rarg(x_624); -lean_dec(x_624); -x_626 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_625); -x_627 = l_Array_HasRepr___rarg___closed__1; -x_628 = lean_string_append(x_627, x_626); -lean_dec(x_626); -x_629 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_629, 0, x_628); -x_630 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_630, 0, x_629); -x_631 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_631, 0, x_621); -lean_ctor_set(x_631, 1, x_630); -x_632 = l_Lean_Elab_Term_throwError___rarg(x_6, x_631, x_4, x_614); -lean_dec(x_6); -return x_632; +} } else { -lean_object* x_633; lean_object* x_660; lean_object* x_661; lean_object* x_662; lean_object* x_663; uint8_t x_664; -lean_dec(x_90); +lean_object* x_751; lean_object* x_752; +lean_dec(x_692); +lean_dec(x_619); +lean_dec(x_97); +lean_dec(x_96); +lean_dec(x_6); +lean_dec(x_2); +x_751 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__12; +x_752 = l_Lean_Elab_Term_throwError___rarg(x_751, x_4, x_631); +return x_752; +} +} +} +else +{ +lean_object* x_753; lean_object* x_754; lean_object* x_755; +lean_dec(x_96); +lean_dec(x_95); +lean_dec(x_12); lean_dec(x_11); -x_660 = l_Lean_Elab_Term_getOptions(x_4, x_614); -x_661 = lean_ctor_get(x_660, 0); -lean_inc(x_661); -x_662 = lean_ctor_get(x_660, 1); -lean_inc(x_662); -lean_dec(x_660); -x_663 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; -x_664 = l_Lean_checkTraceOption(x_661, x_663); -lean_dec(x_661); -if (x_664 == 0) -{ -x_633 = x_662; -goto block_659; -} -else -{ -lean_object* x_665; lean_object* x_666; lean_object* x_667; -lean_inc(x_2); -x_665 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_665, 0, x_2); -lean_inc(x_4); -x_666 = l_Lean_Elab_Term_logTrace(x_663, x_6, x_665, x_4, x_662); -x_667 = lean_ctor_get(x_666, 1); -lean_inc(x_667); -lean_dec(x_666); -x_633 = x_667; -goto block_659; -} -block_659: -{ -if (lean_obj_tag(x_8) == 0) -{ -lean_object* x_634; -lean_dec(x_3); -x_634 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_633); -lean_dec(x_12); -if (lean_obj_tag(x_634) == 0) -{ -uint8_t x_635; -x_635 = !lean_is_exclusive(x_634); -if (x_635 == 0) -{ -lean_object* x_636; -x_636 = lean_ctor_get(x_634, 0); -lean_dec(x_636); -lean_ctor_set(x_634, 0, x_2); -return x_634; -} -else -{ -lean_object* x_637; lean_object* x_638; -x_637 = lean_ctor_get(x_634, 1); -lean_inc(x_637); -lean_dec(x_634); -x_638 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_638, 0, x_2); -lean_ctor_set(x_638, 1, x_637); -return x_638; -} -} -else -{ -uint8_t x_639; -lean_dec(x_2); -x_639 = !lean_is_exclusive(x_634); -if (x_639 == 0) -{ -return x_634; -} -else -{ -lean_object* x_640; lean_object* x_641; lean_object* x_642; -x_640 = lean_ctor_get(x_634, 0); -x_641 = lean_ctor_get(x_634, 1); -lean_inc(x_641); -lean_inc(x_640); -lean_dec(x_634); -x_642 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_642, 0, x_640); -lean_ctor_set(x_642, 1, x_641); -return x_642; -} -} -} -else -{ -lean_object* x_643; lean_object* x_644; -x_643 = lean_ctor_get(x_8, 0); -lean_inc(x_643); lean_dec(x_8); -lean_inc(x_4); -x_644 = l_Lean_Elab_Term_isDefEq(x_6, x_643, x_3, x_4, x_633); -if (lean_obj_tag(x_644) == 0) -{ -lean_object* x_645; lean_object* x_646; -x_645 = lean_ctor_get(x_644, 1); -lean_inc(x_645); -lean_dec(x_644); -x_646 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_645); -lean_dec(x_12); -if (lean_obj_tag(x_646) == 0) -{ -uint8_t x_647; -x_647 = !lean_is_exclusive(x_646); -if (x_647 == 0) -{ -lean_object* x_648; -x_648 = lean_ctor_get(x_646, 0); -lean_dec(x_648); -lean_ctor_set(x_646, 0, x_2); -return x_646; -} -else -{ -lean_object* x_649; lean_object* x_650; -x_649 = lean_ctor_get(x_646, 1); -lean_inc(x_649); -lean_dec(x_646); -x_650 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_650, 0, x_2); -lean_ctor_set(x_650, 1, x_649); -return x_650; -} -} -else -{ -uint8_t x_651; -lean_dec(x_2); -x_651 = !lean_is_exclusive(x_646); -if (x_651 == 0) -{ -return x_646; -} -else -{ -lean_object* x_652; lean_object* x_653; lean_object* x_654; -x_652 = lean_ctor_get(x_646, 0); -x_653 = lean_ctor_get(x_646, 1); -lean_inc(x_653); -lean_inc(x_652); -lean_dec(x_646); -x_654 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_654, 0, x_652); -lean_ctor_set(x_654, 1, x_653); -return x_654; -} -} -} -else -{ -uint8_t x_655; -lean_dec(x_12); lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -x_655 = !lean_is_exclusive(x_644); -if (x_655 == 0) -{ -return x_644; -} -else -{ -lean_object* x_656; lean_object* x_657; lean_object* x_658; -x_656 = lean_ctor_get(x_644, 0); -x_657 = lean_ctor_get(x_644, 1); -lean_inc(x_657); -lean_inc(x_656); -lean_dec(x_644); -x_658 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_658, 0, x_656); -lean_ctor_set(x_658, 1, x_657); -return x_658; -} -} -} -} -} +lean_dec(x_3); +x_753 = lean_ctor_get(x_689, 0); +lean_inc(x_753); +lean_dec(x_689); +lean_inc(x_753); +x_754 = l_Lean_mkApp(x_2, x_753); +x_755 = lean_expr_instantiate1(x_97, x_753); +lean_dec(x_753); +lean_dec(x_97); +x_1 = x_619; +x_2 = x_754; +x_3 = x_755; +x_5 = x_631; +goto _start; } } else { -uint8_t x_751; +lean_object* x_757; +lean_dec(x_619); +lean_dec(x_97); +lean_dec(x_96); +lean_dec(x_6); +x_757 = lean_box(0); +x_632 = x_757; +goto block_688; +} +} +else +{ +lean_object* x_758; lean_object* x_759; +lean_dec(x_619); +lean_dec(x_95); +lean_dec(x_3); +x_758 = lean_array_fget(x_7, x_10); +lean_inc(x_4); +lean_inc(x_2); +x_759 = l___private_Lean_Elab_App_2__elabArg(x_2, x_758, x_96, x_4, x_631); +if (lean_obj_tag(x_759) == 0) +{ +lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; lean_object* x_764; lean_object* x_765; +x_760 = lean_ctor_get(x_759, 0); +lean_inc(x_760); +x_761 = lean_ctor_get(x_759, 1); +lean_inc(x_761); +lean_dec(x_759); +x_762 = lean_unsigned_to_nat(1u); +x_763 = lean_nat_add(x_10, x_762); +lean_dec(x_10); +lean_ctor_set(x_1, 3, x_763); +lean_ctor_set_uint8(x_1, sizeof(void*)*7 + 1, x_618); +lean_inc(x_760); +x_764 = l_Lean_mkApp(x_2, x_760); +x_765 = lean_expr_instantiate1(x_97, x_760); +lean_dec(x_760); +lean_dec(x_97); +x_2 = x_764; +x_3 = x_765; +x_5 = x_761; +goto _start; +} +else +{ +uint8_t x_767; lean_free_object(x_1); -lean_dec(x_602); -lean_dec(x_92); -lean_dec(x_91); -lean_dec(x_90); +lean_dec(x_97); +lean_dec(x_4); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -5938,364 +5875,635 @@ lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_3); lean_dec(x_2); -x_751 = !lean_is_exclusive(x_605); -if (x_751 == 0) +x_767 = !lean_is_exclusive(x_759); +if (x_767 == 0) { -return x_605; +return x_759; } else { -lean_object* x_752; lean_object* x_753; lean_object* x_754; -x_752 = lean_ctor_get(x_605, 0); -x_753 = lean_ctor_get(x_605, 1); -lean_inc(x_753); -lean_inc(x_752); -lean_dec(x_605); -x_754 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_754, 0, x_752); -lean_ctor_set(x_754, 1, x_753); -return x_754; +lean_object* x_768; lean_object* x_769; lean_object* x_770; +x_768 = lean_ctor_get(x_759, 0); +x_769 = lean_ctor_get(x_759, 1); +lean_inc(x_769); +lean_inc(x_768); +lean_dec(x_759); +x_770 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_770, 0, x_768); +lean_ctor_set(x_770, 1, x_769); +return x_770; +} +} +} +block_688: +{ +uint8_t x_633; +lean_dec(x_632); +x_633 = l_Array_isEmpty___rarg(x_11); +if (x_633 == 0) +{ +lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +x_634 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_634, 0, x_95); +x_635 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_636 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_636, 0, x_635); +lean_ctor_set(x_636, 1, x_634); +x_637 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_638 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_638, 0, x_636); +lean_ctor_set(x_638, 1, x_637); +x_639 = x_11; +x_640 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(x_99, x_639); +x_641 = x_640; +x_642 = l_Array_toList___rarg(x_641); +lean_dec(x_641); +x_643 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_642); +x_644 = l_Array_HasRepr___rarg___closed__1; +x_645 = lean_string_append(x_644, x_643); +lean_dec(x_643); +x_646 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_646, 0, x_645); +x_647 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_647, 0, x_646); +x_648 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_648, 0, x_638); +lean_ctor_set(x_648, 1, x_647); +x_649 = l_Lean_Elab_Term_throwError___rarg(x_648, x_4, x_631); +return x_649; +} +else +{ +lean_object* x_650; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; uint8_t x_684; +lean_dec(x_95); +lean_dec(x_11); +x_677 = l_Lean_Elab_Term_getOptions(x_4, x_631); +x_678 = lean_ctor_get(x_677, 0); +lean_inc(x_678); +x_679 = lean_ctor_get(x_677, 1); +lean_inc(x_679); +lean_dec(x_677); +x_680 = l_Lean_Elab_Term_getCurrRef(x_4, x_679); +x_681 = lean_ctor_get(x_680, 0); +lean_inc(x_681); +x_682 = lean_ctor_get(x_680, 1); +lean_inc(x_682); +lean_dec(x_680); +x_683 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_684 = l_Lean_checkTraceOption(x_678, x_683); +lean_dec(x_678); +if (x_684 == 0) +{ +lean_dec(x_681); +x_650 = x_682; +goto block_676; +} +else +{ +lean_object* x_685; lean_object* x_686; lean_object* x_687; +lean_inc(x_2); +x_685 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_685, 0, x_2); +lean_inc(x_4); +x_686 = l_Lean_Elab_Term_logTrace(x_683, x_681, x_685, x_4, x_682); +lean_dec(x_681); +x_687 = lean_ctor_get(x_686, 1); +lean_inc(x_687); +lean_dec(x_686); +x_650 = x_687; +goto block_676; +} +block_676: +{ +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_651; +lean_dec(x_3); +x_651 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_12, x_99, x_4, x_650); +lean_dec(x_12); +if (lean_obj_tag(x_651) == 0) +{ +uint8_t x_652; +x_652 = !lean_is_exclusive(x_651); +if (x_652 == 0) +{ +lean_object* x_653; +x_653 = lean_ctor_get(x_651, 0); +lean_dec(x_653); +lean_ctor_set(x_651, 0, x_2); +return x_651; +} +else +{ +lean_object* x_654; lean_object* x_655; +x_654 = lean_ctor_get(x_651, 1); +lean_inc(x_654); +lean_dec(x_651); +x_655 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_655, 0, x_2); +lean_ctor_set(x_655, 1, x_654); +return x_655; +} +} +else +{ +uint8_t x_656; +lean_dec(x_2); +x_656 = !lean_is_exclusive(x_651); +if (x_656 == 0) +{ +return x_651; +} +else +{ +lean_object* x_657; lean_object* x_658; lean_object* x_659; +x_657 = lean_ctor_get(x_651, 0); +x_658 = lean_ctor_get(x_651, 1); +lean_inc(x_658); +lean_inc(x_657); +lean_dec(x_651); +x_659 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_659, 0, x_657); +lean_ctor_set(x_659, 1, x_658); +return x_659; +} +} +} +else +{ +lean_object* x_660; lean_object* x_661; +x_660 = lean_ctor_get(x_8, 0); +lean_inc(x_660); +lean_dec(x_8); +lean_inc(x_4); +x_661 = l_Lean_Elab_Term_isDefEq(x_660, x_3, x_4, x_650); +if (lean_obj_tag(x_661) == 0) +{ +lean_object* x_662; lean_object* x_663; +x_662 = lean_ctor_get(x_661, 1); +lean_inc(x_662); +lean_dec(x_661); +x_663 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_12, x_99, x_4, x_662); +lean_dec(x_12); +if (lean_obj_tag(x_663) == 0) +{ +uint8_t x_664; +x_664 = !lean_is_exclusive(x_663); +if (x_664 == 0) +{ +lean_object* x_665; +x_665 = lean_ctor_get(x_663, 0); +lean_dec(x_665); +lean_ctor_set(x_663, 0, x_2); +return x_663; +} +else +{ +lean_object* x_666; lean_object* x_667; +x_666 = lean_ctor_get(x_663, 1); +lean_inc(x_666); +lean_dec(x_663); +x_667 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_667, 0, x_2); +lean_ctor_set(x_667, 1, x_666); +return x_667; +} +} +else +{ +uint8_t x_668; +lean_dec(x_2); +x_668 = !lean_is_exclusive(x_663); +if (x_668 == 0) +{ +return x_663; +} +else +{ +lean_object* x_669; lean_object* x_670; lean_object* x_671; +x_669 = lean_ctor_get(x_663, 0); +x_670 = lean_ctor_get(x_663, 1); +lean_inc(x_670); +lean_inc(x_669); +lean_dec(x_663); +x_671 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_671, 0, x_669); +lean_ctor_set(x_671, 1, x_670); +return x_671; +} +} +} +else +{ +uint8_t x_672; +lean_dec(x_4); +lean_dec(x_12); +lean_dec(x_2); +x_672 = !lean_is_exclusive(x_661); +if (x_672 == 0) +{ +return x_661; +} +else +{ +lean_object* x_673; lean_object* x_674; lean_object* x_675; +x_673 = lean_ctor_get(x_661, 0); +x_674 = lean_ctor_get(x_661, 1); +lean_inc(x_674); +lean_inc(x_673); +lean_dec(x_661); +x_675 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_675, 0, x_673); +lean_ctor_set(x_675, 1, x_674); +return x_675; +} +} +} +} +} +} +} +else +{ +uint8_t x_771; +lean_free_object(x_1); +lean_dec(x_619); +lean_dec(x_97); +lean_dec(x_96); +lean_dec(x_95); +lean_dec(x_4); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +x_771 = !lean_is_exclusive(x_622); +if (x_771 == 0) +{ +return x_622; +} +else +{ +lean_object* x_772; lean_object* x_773; lean_object* x_774; +x_772 = lean_ctor_get(x_622, 0); +x_773 = lean_ctor_get(x_622, 1); +lean_inc(x_773); +lean_inc(x_772); +lean_dec(x_622); +x_774 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_774, 0, x_772); +lean_ctor_set(x_774, 1, x_773); +return x_774; } } } else { lean_dec(x_1); -if (lean_obj_tag(x_605) == 0) +if (lean_obj_tag(x_622) == 0) { -lean_object* x_755; lean_object* x_756; -x_755 = lean_ctor_get(x_605, 1); -lean_inc(x_755); -lean_dec(x_605); -if (x_604 == 0) +lean_object* x_775; lean_object* x_776; +x_775 = lean_ctor_get(x_622, 1); +lean_inc(x_775); +lean_dec(x_622); +if (x_621 == 0) { lean_dec(x_13); lean_dec(x_10); lean_dec(x_7); if (x_9 == 0) { -lean_object* x_808; -x_808 = l_Lean_Expr_getOptParamDefault_x3f(x_91); -if (lean_obj_tag(x_808) == 0) +lean_object* x_831; +x_831 = l_Lean_Expr_getOptParamDefault_x3f(x_96); +if (lean_obj_tag(x_831) == 0) { -lean_object* x_809; -x_809 = l_Lean_Expr_getAutoParamTactic_x3f(x_91); -if (lean_obj_tag(x_809) == 0) +lean_object* x_832; +x_832 = l_Lean_Expr_getAutoParamTactic_x3f(x_96); +if (lean_obj_tag(x_832) == 0) { -lean_object* x_810; -lean_dec(x_602); -lean_dec(x_92); -lean_dec(x_91); -x_810 = lean_box(0); -x_756 = x_810; -goto block_807; +lean_object* x_833; +lean_dec(x_619); +lean_dec(x_97); +lean_dec(x_96); +lean_dec(x_6); +x_833 = lean_box(0); +x_776 = x_833; +goto block_830; } else { -lean_object* x_811; -lean_dec(x_90); +lean_object* x_834; +lean_dec(x_95); lean_dec(x_12); lean_dec(x_11); lean_dec(x_8); lean_dec(x_3); -x_811 = lean_ctor_get(x_809, 0); -lean_inc(x_811); -lean_dec(x_809); -if (lean_obj_tag(x_811) == 4) +x_834 = lean_ctor_get(x_832, 0); +lean_inc(x_834); +lean_dec(x_832); +if (lean_obj_tag(x_834) == 4) { -lean_object* x_812; lean_object* x_813; lean_object* x_814; lean_object* x_815; lean_object* x_816; -x_812 = lean_ctor_get(x_811, 0); -lean_inc(x_812); -lean_dec(x_811); -x_813 = l_Lean_Elab_Term_getEnv___rarg(x_755); -x_814 = lean_ctor_get(x_813, 0); -lean_inc(x_814); -x_815 = lean_ctor_get(x_813, 1); -lean_inc(x_815); -lean_dec(x_813); -x_816 = l___private_Lean_Elab_Util_1__evalSyntaxConstantUnsafe(x_814, x_812); -if (lean_obj_tag(x_816) == 0) +lean_object* x_835; lean_object* x_836; lean_object* x_837; lean_object* x_838; lean_object* x_839; +x_835 = lean_ctor_get(x_834, 0); +lean_inc(x_835); +lean_dec(x_834); +x_836 = l_Lean_Elab_Term_getEnv___rarg(x_775); +x_837 = lean_ctor_get(x_836, 0); +lean_inc(x_837); +x_838 = lean_ctor_get(x_836, 1); +lean_inc(x_838); +lean_dec(x_836); +x_839 = l___private_Lean_Elab_Util_1__evalSyntaxConstantUnsafe(x_837, x_835); +if (lean_obj_tag(x_839) == 0) { -lean_object* x_817; lean_object* x_818; lean_object* x_819; lean_object* x_820; -lean_dec(x_602); -lean_dec(x_92); -lean_dec(x_91); -lean_dec(x_2); -x_817 = lean_ctor_get(x_816, 0); -lean_inc(x_817); -lean_dec(x_816); -x_818 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_818, 0, x_817); -x_819 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_819, 0, x_818); -x_820 = l_Lean_Elab_Term_throwError___rarg(x_6, x_819, x_4, x_815); +lean_object* x_840; lean_object* x_841; lean_object* x_842; lean_object* x_843; +lean_dec(x_619); +lean_dec(x_97); +lean_dec(x_96); lean_dec(x_6); -return x_820; +lean_dec(x_2); +x_840 = lean_ctor_get(x_839, 0); +lean_inc(x_840); +lean_dec(x_839); +x_841 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_841, 0, x_840); +x_842 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_842, 0, x_841); +x_843 = l_Lean_Elab_Term_throwError___rarg(x_842, x_4, x_838); +return x_843; } else { -lean_object* x_821; lean_object* x_822; lean_object* x_823; lean_object* x_824; lean_object* x_825; lean_object* x_826; lean_object* x_827; lean_object* x_828; lean_object* x_829; lean_object* x_830; lean_object* x_831; lean_object* x_832; lean_object* x_833; lean_object* x_834; lean_object* x_835; lean_object* x_836; lean_object* x_837; lean_object* x_838; lean_object* x_839; lean_object* x_840; lean_object* x_841; lean_object* x_842; lean_object* x_843; lean_object* x_844; lean_object* x_845; -x_821 = lean_ctor_get(x_816, 0); -lean_inc(x_821); -lean_dec(x_816); -x_822 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_815); -x_823 = lean_ctor_get(x_822, 1); -lean_inc(x_823); -lean_dec(x_822); -x_824 = l_Lean_Elab_Term_getMainModule___rarg(x_823); -x_825 = lean_ctor_get(x_824, 1); -lean_inc(x_825); -lean_dec(x_824); -x_826 = l_Lean_Syntax_getArgs(x_821); -lean_dec(x_821); -x_827 = l_Array_empty___closed__1; -x_828 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_826, x_826, x_94, x_827); -lean_dec(x_826); -x_829 = l_Lean_nullKind___closed__2; -x_830 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_830, 0, x_829); -lean_ctor_set(x_830, 1, x_828); -x_831 = lean_array_push(x_827, x_830); -x_832 = l_Lean_PrettyPrinter_Parenthesizer_tacticParser_parenthesizer___lambda__1___closed__4; -x_833 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_833, 0, x_832); -lean_ctor_set(x_833, 1, x_831); -x_834 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__15; -x_835 = lean_array_push(x_834, x_833); -x_836 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__16; -x_837 = lean_array_push(x_835, x_836); -x_838 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; -x_839 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_839, 0, x_838); -lean_ctor_set(x_839, 1, x_837); -x_840 = l_Lean_Syntax_getHeadInfo___main(x_6); -x_841 = l_Lean_Expr_getAppNumArgsAux___main(x_91, x_94); -x_842 = lean_nat_sub(x_841, x_94); -lean_dec(x_841); -x_843 = lean_unsigned_to_nat(1u); -x_844 = lean_nat_sub(x_842, x_843); -lean_dec(x_842); -x_845 = l_Lean_Expr_getRevArg_x21___main(x_91, x_844); -lean_dec(x_91); -if (lean_obj_tag(x_840) == 0) -{ -lean_object* x_846; lean_object* x_847; -x_846 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_846, 0, x_839); -lean_inc(x_4); -lean_inc(x_2); -x_847 = l___private_Lean_Elab_App_2__elabArg(x_6, x_2, x_846, x_845, x_4, x_825); -if (lean_obj_tag(x_847) == 0) -{ -lean_object* x_848; lean_object* x_849; lean_object* x_850; lean_object* x_851; -x_848 = lean_ctor_get(x_847, 0); +lean_object* x_844; lean_object* x_845; lean_object* x_846; lean_object* x_847; lean_object* x_848; lean_object* x_849; lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; lean_object* x_854; lean_object* x_855; lean_object* x_856; lean_object* x_857; lean_object* x_858; lean_object* x_859; lean_object* x_860; lean_object* x_861; lean_object* x_862; lean_object* x_863; lean_object* x_864; lean_object* x_865; lean_object* x_866; lean_object* x_867; lean_object* x_868; +x_844 = lean_ctor_get(x_839, 0); +lean_inc(x_844); +lean_dec(x_839); +x_845 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_838); +x_846 = lean_ctor_get(x_845, 1); +lean_inc(x_846); +lean_dec(x_845); +x_847 = l_Lean_Elab_Term_getMainModule___rarg(x_846); +x_848 = lean_ctor_get(x_847, 1); lean_inc(x_848); -x_849 = lean_ctor_get(x_847, 1); -lean_inc(x_849); lean_dec(x_847); -lean_inc(x_848); -x_850 = l_Lean_mkApp(x_2, x_848); -x_851 = lean_expr_instantiate1(x_92, x_848); -lean_dec(x_848); -lean_dec(x_92); -x_1 = x_602; -x_2 = x_850; -x_3 = x_851; -x_5 = x_849; -goto _start; -} -else -{ -lean_object* x_853; lean_object* x_854; lean_object* x_855; lean_object* x_856; -lean_dec(x_602); -lean_dec(x_92); -lean_dec(x_4); -lean_dec(x_2); -x_853 = lean_ctor_get(x_847, 0); -lean_inc(x_853); -x_854 = lean_ctor_get(x_847, 1); -lean_inc(x_854); -if (lean_is_exclusive(x_847)) { - lean_ctor_release(x_847, 0); - lean_ctor_release(x_847, 1); - x_855 = x_847; -} else { - lean_dec_ref(x_847); - x_855 = lean_box(0); -} -if (lean_is_scalar(x_855)) { - x_856 = lean_alloc_ctor(1, 2, 0); -} else { - x_856 = x_855; -} -lean_ctor_set(x_856, 0, x_853); +x_849 = l_Lean_Syntax_getArgs(x_844); +lean_dec(x_844); +x_850 = l_Array_empty___closed__1; +x_851 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_849, x_849, x_99, x_850); +lean_dec(x_849); +x_852 = l_Lean_nullKind___closed__2; +x_853 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_853, 0, x_852); +lean_ctor_set(x_853, 1, x_851); +x_854 = lean_array_push(x_850, x_853); +x_855 = l_Lean_PrettyPrinter_Parenthesizer_tacticParser_parenthesizer___lambda__1___closed__4; +x_856 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_856, 0, x_855); lean_ctor_set(x_856, 1, x_854); -return x_856; -} -} -else +x_857 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__15; +x_858 = lean_array_push(x_857, x_856); +x_859 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__16; +x_860 = lean_array_push(x_858, x_859); +x_861 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; +x_862 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_862, 0, x_861); +lean_ctor_set(x_862, 1, x_860); +x_863 = l_Lean_Syntax_getHeadInfo___main(x_6); +lean_dec(x_6); +x_864 = l_Lean_Expr_getAppNumArgsAux___main(x_96, x_99); +x_865 = lean_nat_sub(x_864, x_99); +lean_dec(x_864); +x_866 = lean_unsigned_to_nat(1u); +x_867 = lean_nat_sub(x_865, x_866); +lean_dec(x_865); +x_868 = l_Lean_Expr_getRevArg_x21___main(x_96, x_867); +lean_dec(x_96); +if (lean_obj_tag(x_863) == 0) { -lean_object* x_857; lean_object* x_858; lean_object* x_859; lean_object* x_860; -x_857 = lean_ctor_get(x_840, 0); -lean_inc(x_857); -lean_dec(x_840); -x_858 = l_Lean_Syntax_replaceInfo___main(x_857, x_839); -x_859 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_859, 0, x_858); +lean_object* x_869; lean_object* x_870; +x_869 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_869, 0, x_862); lean_inc(x_4); lean_inc(x_2); -x_860 = l___private_Lean_Elab_App_2__elabArg(x_6, x_2, x_859, x_845, x_4, x_825); -if (lean_obj_tag(x_860) == 0) +x_870 = l___private_Lean_Elab_App_2__elabArg(x_2, x_869, x_868, x_4, x_848); +if (lean_obj_tag(x_870) == 0) { -lean_object* x_861; lean_object* x_862; lean_object* x_863; lean_object* x_864; -x_861 = lean_ctor_get(x_860, 0); -lean_inc(x_861); -x_862 = lean_ctor_get(x_860, 1); -lean_inc(x_862); -lean_dec(x_860); -lean_inc(x_861); -x_863 = l_Lean_mkApp(x_2, x_861); -x_864 = lean_expr_instantiate1(x_92, x_861); -lean_dec(x_861); -lean_dec(x_92); -x_1 = x_602; -x_2 = x_863; -x_3 = x_864; -x_5 = x_862; -goto _start; -} -else -{ -lean_object* x_866; lean_object* x_867; lean_object* x_868; lean_object* x_869; -lean_dec(x_602); -lean_dec(x_92); -lean_dec(x_4); -lean_dec(x_2); -x_866 = lean_ctor_get(x_860, 0); -lean_inc(x_866); -x_867 = lean_ctor_get(x_860, 1); -lean_inc(x_867); -if (lean_is_exclusive(x_860)) { - lean_ctor_release(x_860, 0); - lean_ctor_release(x_860, 1); - x_868 = x_860; -} else { - lean_dec_ref(x_860); - x_868 = lean_box(0); -} -if (lean_is_scalar(x_868)) { - x_869 = lean_alloc_ctor(1, 2, 0); -} else { - x_869 = x_868; -} -lean_ctor_set(x_869, 0, x_866); -lean_ctor_set(x_869, 1, x_867); -return x_869; -} -} -} -} -else -{ -lean_object* x_870; lean_object* x_871; -lean_dec(x_811); -lean_dec(x_602); -lean_dec(x_92); -lean_dec(x_91); -lean_dec(x_2); -x_870 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__12; -x_871 = l_Lean_Elab_Term_throwError___rarg(x_6, x_870, x_4, x_755); -lean_dec(x_6); -return x_871; -} -} -} -else -{ -lean_object* x_872; lean_object* x_873; lean_object* x_874; -lean_dec(x_91); -lean_dec(x_90); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_3); -x_872 = lean_ctor_get(x_808, 0); +lean_object* x_871; lean_object* x_872; lean_object* x_873; lean_object* x_874; +x_871 = lean_ctor_get(x_870, 0); +lean_inc(x_871); +x_872 = lean_ctor_get(x_870, 1); lean_inc(x_872); -lean_dec(x_808); -lean_inc(x_872); -x_873 = l_Lean_mkApp(x_2, x_872); -x_874 = lean_expr_instantiate1(x_92, x_872); -lean_dec(x_872); -lean_dec(x_92); -x_1 = x_602; +lean_dec(x_870); +lean_inc(x_871); +x_873 = l_Lean_mkApp(x_2, x_871); +x_874 = lean_expr_instantiate1(x_97, x_871); +lean_dec(x_871); +lean_dec(x_97); +x_1 = x_619; x_2 = x_873; x_3 = x_874; -x_5 = x_755; +x_5 = x_872; goto _start; } -} else { -lean_object* x_876; -lean_dec(x_602); -lean_dec(x_92); -lean_dec(x_91); -x_876 = lean_box(0); -x_756 = x_876; -goto block_807; +lean_object* x_876; lean_object* x_877; lean_object* x_878; lean_object* x_879; +lean_dec(x_619); +lean_dec(x_97); +lean_dec(x_4); +lean_dec(x_2); +x_876 = lean_ctor_get(x_870, 0); +lean_inc(x_876); +x_877 = lean_ctor_get(x_870, 1); +lean_inc(x_877); +if (lean_is_exclusive(x_870)) { + lean_ctor_release(x_870, 0); + lean_ctor_release(x_870, 1); + x_878 = x_870; +} else { + lean_dec_ref(x_870); + x_878 = lean_box(0); +} +if (lean_is_scalar(x_878)) { + x_879 = lean_alloc_ctor(1, 2, 0); +} else { + x_879 = x_878; +} +lean_ctor_set(x_879, 0, x_876); +lean_ctor_set(x_879, 1, x_877); +return x_879; } } else { -lean_object* x_877; lean_object* x_878; -lean_dec(x_602); -lean_dec(x_90); -lean_dec(x_3); -x_877 = lean_array_fget(x_7, x_10); +lean_object* x_880; lean_object* x_881; lean_object* x_882; lean_object* x_883; +x_880 = lean_ctor_get(x_863, 0); +lean_inc(x_880); +lean_dec(x_863); +x_881 = l_Lean_Syntax_replaceInfo___main(x_880, x_862); +x_882 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_882, 0, x_881); lean_inc(x_4); lean_inc(x_2); -lean_inc(x_6); -x_878 = l___private_Lean_Elab_App_2__elabArg(x_6, x_2, x_877, x_91, x_4, x_755); -if (lean_obj_tag(x_878) == 0) +x_883 = l___private_Lean_Elab_App_2__elabArg(x_2, x_882, x_868, x_4, x_848); +if (lean_obj_tag(x_883) == 0) { -lean_object* x_879; lean_object* x_880; lean_object* x_881; lean_object* x_882; lean_object* x_883; lean_object* x_884; lean_object* x_885; -x_879 = lean_ctor_get(x_878, 0); -lean_inc(x_879); -x_880 = lean_ctor_get(x_878, 1); -lean_inc(x_880); -lean_dec(x_878); -x_881 = lean_unsigned_to_nat(1u); -x_882 = lean_nat_add(x_10, x_881); -lean_dec(x_10); -x_883 = lean_alloc_ctor(0, 7, 2); -lean_ctor_set(x_883, 0, x_6); -lean_ctor_set(x_883, 1, x_7); -lean_ctor_set(x_883, 2, x_8); -lean_ctor_set(x_883, 3, x_882); -lean_ctor_set(x_883, 4, x_11); -lean_ctor_set(x_883, 5, x_12); -lean_ctor_set(x_883, 6, x_13); -lean_ctor_set_uint8(x_883, sizeof(void*)*7, x_9); -lean_ctor_set_uint8(x_883, sizeof(void*)*7 + 1, x_601); -lean_inc(x_879); -x_884 = l_Lean_mkApp(x_2, x_879); -x_885 = lean_expr_instantiate1(x_92, x_879); -lean_dec(x_879); -lean_dec(x_92); -x_1 = x_883; -x_2 = x_884; -x_3 = x_885; -x_5 = x_880; +lean_object* x_884; lean_object* x_885; lean_object* x_886; lean_object* x_887; +x_884 = lean_ctor_get(x_883, 0); +lean_inc(x_884); +x_885 = lean_ctor_get(x_883, 1); +lean_inc(x_885); +lean_dec(x_883); +lean_inc(x_884); +x_886 = l_Lean_mkApp(x_2, x_884); +x_887 = lean_expr_instantiate1(x_97, x_884); +lean_dec(x_884); +lean_dec(x_97); +x_1 = x_619; +x_2 = x_886; +x_3 = x_887; +x_5 = x_885; goto _start; } else { -lean_object* x_887; lean_object* x_888; lean_object* x_889; lean_object* x_890; -lean_dec(x_92); +lean_object* x_889; lean_object* x_890; lean_object* x_891; lean_object* x_892; +lean_dec(x_619); +lean_dec(x_97); +lean_dec(x_4); +lean_dec(x_2); +x_889 = lean_ctor_get(x_883, 0); +lean_inc(x_889); +x_890 = lean_ctor_get(x_883, 1); +lean_inc(x_890); +if (lean_is_exclusive(x_883)) { + lean_ctor_release(x_883, 0); + lean_ctor_release(x_883, 1); + x_891 = x_883; +} else { + lean_dec_ref(x_883); + x_891 = lean_box(0); +} +if (lean_is_scalar(x_891)) { + x_892 = lean_alloc_ctor(1, 2, 0); +} else { + x_892 = x_891; +} +lean_ctor_set(x_892, 0, x_889); +lean_ctor_set(x_892, 1, x_890); +return x_892; +} +} +} +} +else +{ +lean_object* x_893; lean_object* x_894; +lean_dec(x_834); +lean_dec(x_619); +lean_dec(x_97); +lean_dec(x_96); +lean_dec(x_6); +lean_dec(x_2); +x_893 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__12; +x_894 = l_Lean_Elab_Term_throwError___rarg(x_893, x_4, x_775); +return x_894; +} +} +} +else +{ +lean_object* x_895; lean_object* x_896; lean_object* x_897; +lean_dec(x_96); +lean_dec(x_95); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_3); +x_895 = lean_ctor_get(x_831, 0); +lean_inc(x_895); +lean_dec(x_831); +lean_inc(x_895); +x_896 = l_Lean_mkApp(x_2, x_895); +x_897 = lean_expr_instantiate1(x_97, x_895); +lean_dec(x_895); +lean_dec(x_97); +x_1 = x_619; +x_2 = x_896; +x_3 = x_897; +x_5 = x_775; +goto _start; +} +} +else +{ +lean_object* x_899; +lean_dec(x_619); +lean_dec(x_97); +lean_dec(x_96); +lean_dec(x_6); +x_899 = lean_box(0); +x_776 = x_899; +goto block_830; +} +} +else +{ +lean_object* x_900; lean_object* x_901; +lean_dec(x_619); +lean_dec(x_95); +lean_dec(x_3); +x_900 = lean_array_fget(x_7, x_10); +lean_inc(x_4); +lean_inc(x_2); +x_901 = l___private_Lean_Elab_App_2__elabArg(x_2, x_900, x_96, x_4, x_775); +if (lean_obj_tag(x_901) == 0) +{ +lean_object* x_902; lean_object* x_903; lean_object* x_904; lean_object* x_905; lean_object* x_906; lean_object* x_907; lean_object* x_908; +x_902 = lean_ctor_get(x_901, 0); +lean_inc(x_902); +x_903 = lean_ctor_get(x_901, 1); +lean_inc(x_903); +lean_dec(x_901); +x_904 = lean_unsigned_to_nat(1u); +x_905 = lean_nat_add(x_10, x_904); +lean_dec(x_10); +x_906 = lean_alloc_ctor(0, 7, 2); +lean_ctor_set(x_906, 0, x_6); +lean_ctor_set(x_906, 1, x_7); +lean_ctor_set(x_906, 2, x_8); +lean_ctor_set(x_906, 3, x_905); +lean_ctor_set(x_906, 4, x_11); +lean_ctor_set(x_906, 5, x_12); +lean_ctor_set(x_906, 6, x_13); +lean_ctor_set_uint8(x_906, sizeof(void*)*7, x_9); +lean_ctor_set_uint8(x_906, sizeof(void*)*7 + 1, x_618); +lean_inc(x_902); +x_907 = l_Lean_mkApp(x_2, x_902); +x_908 = lean_expr_instantiate1(x_97, x_902); +lean_dec(x_902); +lean_dec(x_97); +x_1 = x_906; +x_2 = x_907; +x_3 = x_908; +x_5 = x_903; +goto _start; +} +else +{ +lean_object* x_910; lean_object* x_911; lean_object* x_912; lean_object* x_913; +lean_dec(x_97); +lean_dec(x_4); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -6303,252 +6511,257 @@ lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_4); lean_dec(x_2); -x_887 = lean_ctor_get(x_878, 0); -lean_inc(x_887); -x_888 = lean_ctor_get(x_878, 1); -lean_inc(x_888); -if (lean_is_exclusive(x_878)) { - lean_ctor_release(x_878, 0); - lean_ctor_release(x_878, 1); - x_889 = x_878; +x_910 = lean_ctor_get(x_901, 0); +lean_inc(x_910); +x_911 = lean_ctor_get(x_901, 1); +lean_inc(x_911); +if (lean_is_exclusive(x_901)) { + lean_ctor_release(x_901, 0); + lean_ctor_release(x_901, 1); + x_912 = x_901; } else { - lean_dec_ref(x_878); - x_889 = lean_box(0); + lean_dec_ref(x_901); + x_912 = lean_box(0); } -if (lean_is_scalar(x_889)) { - x_890 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_912)) { + x_913 = lean_alloc_ctor(1, 2, 0); } else { - x_890 = x_889; + x_913 = x_912; } -lean_ctor_set(x_890, 0, x_887); -lean_ctor_set(x_890, 1, x_888); -return x_890; +lean_ctor_set(x_913, 0, x_910); +lean_ctor_set(x_913, 1, x_911); +return x_913; } } -block_807: +block_830: { -uint8_t x_757; -lean_dec(x_756); -x_757 = l_Array_isEmpty___rarg(x_11); -if (x_757 == 0) +uint8_t x_777; +lean_dec(x_776); +x_777 = l_Array_isEmpty___rarg(x_11); +if (x_777 == 0) { -lean_object* x_758; lean_object* x_759; lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; lean_object* x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; lean_object* x_768; lean_object* x_769; lean_object* x_770; lean_object* x_771; lean_object* x_772; lean_object* x_773; +lean_object* x_778; lean_object* x_779; lean_object* x_780; lean_object* x_781; lean_object* x_782; lean_object* x_783; lean_object* x_784; lean_object* x_785; lean_object* x_786; lean_object* x_787; lean_object* x_788; lean_object* x_789; lean_object* x_790; lean_object* x_791; lean_object* x_792; lean_object* x_793; lean_dec(x_12); lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); -x_758 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_758, 0, x_90); -x_759 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; -x_760 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_760, 0, x_759); -lean_ctor_set(x_760, 1, x_758); -x_761 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; -x_762 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_762, 0, x_760); -lean_ctor_set(x_762, 1, x_761); -x_763 = x_11; -x_764 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(x_94, x_763); -x_765 = x_764; -x_766 = l_Array_toList___rarg(x_765); -lean_dec(x_765); -x_767 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_766); -x_768 = l_Array_HasRepr___rarg___closed__1; -x_769 = lean_string_append(x_768, x_767); -lean_dec(x_767); -x_770 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_770, 0, x_769); -x_771 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_771, 0, x_770); -x_772 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_772, 0, x_762); -lean_ctor_set(x_772, 1, x_771); -x_773 = l_Lean_Elab_Term_throwError___rarg(x_6, x_772, x_4, x_755); -lean_dec(x_6); -return x_773; +x_778 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_778, 0, x_95); +x_779 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_780 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_780, 0, x_779); +lean_ctor_set(x_780, 1, x_778); +x_781 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_782 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_782, 0, x_780); +lean_ctor_set(x_782, 1, x_781); +x_783 = x_11; +x_784 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(x_99, x_783); +x_785 = x_784; +x_786 = l_Array_toList___rarg(x_785); +lean_dec(x_785); +x_787 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_786); +x_788 = l_Array_HasRepr___rarg___closed__1; +x_789 = lean_string_append(x_788, x_787); +lean_dec(x_787); +x_790 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_790, 0, x_789); +x_791 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_791, 0, x_790); +x_792 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_792, 0, x_782); +lean_ctor_set(x_792, 1, x_791); +x_793 = l_Lean_Elab_Term_throwError___rarg(x_792, x_4, x_775); +return x_793; } else { -lean_object* x_774; lean_object* x_799; lean_object* x_800; lean_object* x_801; lean_object* x_802; uint8_t x_803; -lean_dec(x_90); +lean_object* x_794; lean_object* x_819; lean_object* x_820; lean_object* x_821; lean_object* x_822; lean_object* x_823; lean_object* x_824; lean_object* x_825; uint8_t x_826; +lean_dec(x_95); lean_dec(x_11); -x_799 = l_Lean_Elab_Term_getOptions(x_4, x_755); -x_800 = lean_ctor_get(x_799, 0); -lean_inc(x_800); -x_801 = lean_ctor_get(x_799, 1); -lean_inc(x_801); -lean_dec(x_799); -x_802 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; -x_803 = l_Lean_checkTraceOption(x_800, x_802); -lean_dec(x_800); -if (x_803 == 0) +x_819 = l_Lean_Elab_Term_getOptions(x_4, x_775); +x_820 = lean_ctor_get(x_819, 0); +lean_inc(x_820); +x_821 = lean_ctor_get(x_819, 1); +lean_inc(x_821); +lean_dec(x_819); +x_822 = l_Lean_Elab_Term_getCurrRef(x_4, x_821); +x_823 = lean_ctor_get(x_822, 0); +lean_inc(x_823); +x_824 = lean_ctor_get(x_822, 1); +lean_inc(x_824); +lean_dec(x_822); +x_825 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_826 = l_Lean_checkTraceOption(x_820, x_825); +lean_dec(x_820); +if (x_826 == 0) { -x_774 = x_801; -goto block_798; +lean_dec(x_823); +x_794 = x_824; +goto block_818; } else { -lean_object* x_804; lean_object* x_805; lean_object* x_806; +lean_object* x_827; lean_object* x_828; lean_object* x_829; lean_inc(x_2); -x_804 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_804, 0, x_2); +x_827 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_827, 0, x_2); lean_inc(x_4); -x_805 = l_Lean_Elab_Term_logTrace(x_802, x_6, x_804, x_4, x_801); -x_806 = lean_ctor_get(x_805, 1); -lean_inc(x_806); -lean_dec(x_805); -x_774 = x_806; -goto block_798; +x_828 = l_Lean_Elab_Term_logTrace(x_825, x_823, x_827, x_4, x_824); +lean_dec(x_823); +x_829 = lean_ctor_get(x_828, 1); +lean_inc(x_829); +lean_dec(x_828); +x_794 = x_829; +goto block_818; } -block_798: +block_818: { if (lean_obj_tag(x_8) == 0) { -lean_object* x_775; +lean_object* x_795; lean_dec(x_3); -x_775 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_774); +x_795 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_12, x_99, x_4, x_794); lean_dec(x_12); -if (lean_obj_tag(x_775) == 0) +if (lean_obj_tag(x_795) == 0) { -lean_object* x_776; lean_object* x_777; lean_object* x_778; -x_776 = lean_ctor_get(x_775, 1); -lean_inc(x_776); -if (lean_is_exclusive(x_775)) { - lean_ctor_release(x_775, 0); - lean_ctor_release(x_775, 1); - x_777 = x_775; +lean_object* x_796; lean_object* x_797; lean_object* x_798; +x_796 = lean_ctor_get(x_795, 1); +lean_inc(x_796); +if (lean_is_exclusive(x_795)) { + lean_ctor_release(x_795, 0); + lean_ctor_release(x_795, 1); + x_797 = x_795; } else { - lean_dec_ref(x_775); - x_777 = lean_box(0); + lean_dec_ref(x_795); + x_797 = lean_box(0); } -if (lean_is_scalar(x_777)) { - x_778 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_797)) { + x_798 = lean_alloc_ctor(0, 2, 0); } else { - x_778 = x_777; + x_798 = x_797; } -lean_ctor_set(x_778, 0, x_2); -lean_ctor_set(x_778, 1, x_776); -return x_778; +lean_ctor_set(x_798, 0, x_2); +lean_ctor_set(x_798, 1, x_796); +return x_798; } else { -lean_object* x_779; lean_object* x_780; lean_object* x_781; lean_object* x_782; +lean_object* x_799; lean_object* x_800; lean_object* x_801; lean_object* x_802; lean_dec(x_2); -x_779 = lean_ctor_get(x_775, 0); -lean_inc(x_779); -x_780 = lean_ctor_get(x_775, 1); -lean_inc(x_780); -if (lean_is_exclusive(x_775)) { - lean_ctor_release(x_775, 0); - lean_ctor_release(x_775, 1); - x_781 = x_775; +x_799 = lean_ctor_get(x_795, 0); +lean_inc(x_799); +x_800 = lean_ctor_get(x_795, 1); +lean_inc(x_800); +if (lean_is_exclusive(x_795)) { + lean_ctor_release(x_795, 0); + lean_ctor_release(x_795, 1); + x_801 = x_795; } else { - lean_dec_ref(x_775); - x_781 = lean_box(0); + lean_dec_ref(x_795); + x_801 = lean_box(0); } -if (lean_is_scalar(x_781)) { - x_782 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_801)) { + x_802 = lean_alloc_ctor(1, 2, 0); } else { - x_782 = x_781; + x_802 = x_801; } -lean_ctor_set(x_782, 0, x_779); -lean_ctor_set(x_782, 1, x_780); -return x_782; +lean_ctor_set(x_802, 0, x_799); +lean_ctor_set(x_802, 1, x_800); +return x_802; } } else { -lean_object* x_783; lean_object* x_784; -x_783 = lean_ctor_get(x_8, 0); -lean_inc(x_783); +lean_object* x_803; lean_object* x_804; +x_803 = lean_ctor_get(x_8, 0); +lean_inc(x_803); lean_dec(x_8); lean_inc(x_4); -x_784 = l_Lean_Elab_Term_isDefEq(x_6, x_783, x_3, x_4, x_774); -if (lean_obj_tag(x_784) == 0) +x_804 = l_Lean_Elab_Term_isDefEq(x_803, x_3, x_4, x_794); +if (lean_obj_tag(x_804) == 0) { -lean_object* x_785; lean_object* x_786; -x_785 = lean_ctor_get(x_784, 1); -lean_inc(x_785); -lean_dec(x_784); -x_786 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_785); +lean_object* x_805; lean_object* x_806; +x_805 = lean_ctor_get(x_804, 1); +lean_inc(x_805); +lean_dec(x_804); +x_806 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_12, x_99, x_4, x_805); lean_dec(x_12); -if (lean_obj_tag(x_786) == 0) +if (lean_obj_tag(x_806) == 0) { -lean_object* x_787; lean_object* x_788; lean_object* x_789; -x_787 = lean_ctor_get(x_786, 1); -lean_inc(x_787); -if (lean_is_exclusive(x_786)) { - lean_ctor_release(x_786, 0); - lean_ctor_release(x_786, 1); - x_788 = x_786; +lean_object* x_807; lean_object* x_808; lean_object* x_809; +x_807 = lean_ctor_get(x_806, 1); +lean_inc(x_807); +if (lean_is_exclusive(x_806)) { + lean_ctor_release(x_806, 0); + lean_ctor_release(x_806, 1); + x_808 = x_806; } else { - lean_dec_ref(x_786); - x_788 = lean_box(0); + lean_dec_ref(x_806); + x_808 = lean_box(0); } -if (lean_is_scalar(x_788)) { - x_789 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_808)) { + x_809 = lean_alloc_ctor(0, 2, 0); } else { - x_789 = x_788; + x_809 = x_808; } -lean_ctor_set(x_789, 0, x_2); -lean_ctor_set(x_789, 1, x_787); -return x_789; +lean_ctor_set(x_809, 0, x_2); +lean_ctor_set(x_809, 1, x_807); +return x_809; } else { -lean_object* x_790; lean_object* x_791; lean_object* x_792; lean_object* x_793; +lean_object* x_810; lean_object* x_811; lean_object* x_812; lean_object* x_813; lean_dec(x_2); -x_790 = lean_ctor_get(x_786, 0); -lean_inc(x_790); -x_791 = lean_ctor_get(x_786, 1); -lean_inc(x_791); -if (lean_is_exclusive(x_786)) { - lean_ctor_release(x_786, 0); - lean_ctor_release(x_786, 1); - x_792 = x_786; +x_810 = lean_ctor_get(x_806, 0); +lean_inc(x_810); +x_811 = lean_ctor_get(x_806, 1); +lean_inc(x_811); +if (lean_is_exclusive(x_806)) { + lean_ctor_release(x_806, 0); + lean_ctor_release(x_806, 1); + x_812 = x_806; } else { - lean_dec_ref(x_786); - x_792 = lean_box(0); + lean_dec_ref(x_806); + x_812 = lean_box(0); } -if (lean_is_scalar(x_792)) { - x_793 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_812)) { + x_813 = lean_alloc_ctor(1, 2, 0); } else { - x_793 = x_792; + x_813 = x_812; } -lean_ctor_set(x_793, 0, x_790); -lean_ctor_set(x_793, 1, x_791); -return x_793; +lean_ctor_set(x_813, 0, x_810); +lean_ctor_set(x_813, 1, x_811); +return x_813; } } else { -lean_object* x_794; lean_object* x_795; lean_object* x_796; lean_object* x_797; -lean_dec(x_12); -lean_dec(x_6); +lean_object* x_814; lean_object* x_815; lean_object* x_816; lean_object* x_817; lean_dec(x_4); +lean_dec(x_12); lean_dec(x_2); -x_794 = lean_ctor_get(x_784, 0); -lean_inc(x_794); -x_795 = lean_ctor_get(x_784, 1); -lean_inc(x_795); -if (lean_is_exclusive(x_784)) { - lean_ctor_release(x_784, 0); - lean_ctor_release(x_784, 1); - x_796 = x_784; +x_814 = lean_ctor_get(x_804, 0); +lean_inc(x_814); +x_815 = lean_ctor_get(x_804, 1); +lean_inc(x_815); +if (lean_is_exclusive(x_804)) { + lean_ctor_release(x_804, 0); + lean_ctor_release(x_804, 1); + x_816 = x_804; } else { - lean_dec_ref(x_784); - x_796 = lean_box(0); + lean_dec_ref(x_804); + x_816 = lean_box(0); } -if (lean_is_scalar(x_796)) { - x_797 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_816)) { + x_817 = lean_alloc_ctor(1, 2, 0); } else { - x_797 = x_796; + x_817 = x_816; } -lean_ctor_set(x_797, 0, x_794); -lean_ctor_set(x_797, 1, x_795); -return x_797; +lean_ctor_set(x_817, 0, x_814); +lean_ctor_set(x_817, 1, x_815); +return x_817; } } } @@ -6557,11 +6770,12 @@ return x_797; } else { -lean_object* x_891; lean_object* x_892; lean_object* x_893; lean_object* x_894; -lean_dec(x_602); -lean_dec(x_92); -lean_dec(x_91); -lean_dec(x_90); +lean_object* x_914; lean_object* x_915; lean_object* x_916; lean_object* x_917; +lean_dec(x_619); +lean_dec(x_97); +lean_dec(x_96); +lean_dec(x_95); +lean_dec(x_4); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -6569,29 +6783,28 @@ lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_891 = lean_ctor_get(x_605, 0); -lean_inc(x_891); -x_892 = lean_ctor_get(x_605, 1); -lean_inc(x_892); -if (lean_is_exclusive(x_605)) { - lean_ctor_release(x_605, 0); - lean_ctor_release(x_605, 1); - x_893 = x_605; +x_914 = lean_ctor_get(x_622, 0); +lean_inc(x_914); +x_915 = lean_ctor_get(x_622, 1); +lean_inc(x_915); +if (lean_is_exclusive(x_622)) { + lean_ctor_release(x_622, 0); + lean_ctor_release(x_622, 1); + x_916 = x_622; } else { - lean_dec_ref(x_605); - x_893 = lean_box(0); + lean_dec_ref(x_622); + x_916 = lean_box(0); } -if (lean_is_scalar(x_893)) { - x_894 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_916)) { + x_917 = lean_alloc_ctor(1, 2, 0); } else { - x_894 = x_893; + x_917 = x_916; } -lean_ctor_set(x_894, 0, x_891); -lean_ctor_set(x_894, 1, x_892); -return x_894; +lean_ctor_set(x_917, 0, x_914); +lean_ctor_set(x_917, 1, x_915); +return x_917; } } } @@ -6599,399 +6812,406 @@ case 3: { if (x_9 == 0) { -uint8_t x_895; -lean_dec(x_90); -lean_dec(x_16); +uint8_t x_918; +lean_dec(x_95); +lean_dec(x_18); lean_dec(x_3); -x_895 = !lean_is_exclusive(x_1); -if (x_895 == 0) +x_918 = !lean_is_exclusive(x_1); +if (x_918 == 0) { -lean_object* x_896; lean_object* x_897; lean_object* x_898; lean_object* x_899; lean_object* x_900; lean_object* x_901; lean_object* x_902; lean_object* x_903; uint8_t x_904; lean_object* x_905; lean_object* x_906; lean_object* x_907; lean_object* x_908; lean_object* x_909; lean_object* x_910; lean_object* x_911; lean_object* x_912; -x_896 = lean_ctor_get(x_1, 6); -lean_dec(x_896); -x_897 = lean_ctor_get(x_1, 5); -lean_dec(x_897); -x_898 = lean_ctor_get(x_1, 4); -lean_dec(x_898); -x_899 = lean_ctor_get(x_1, 3); -lean_dec(x_899); -x_900 = lean_ctor_get(x_1, 2); -lean_dec(x_900); -x_901 = lean_ctor_get(x_1, 1); -lean_dec(x_901); -x_902 = lean_ctor_get(x_1, 0); -lean_dec(x_902); -x_903 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_903, 0, x_91); -x_904 = 1; -x_905 = lean_box(0); +lean_object* x_919; lean_object* x_920; lean_object* x_921; lean_object* x_922; lean_object* x_923; lean_object* x_924; lean_object* x_925; lean_object* x_926; uint8_t x_927; lean_object* x_928; lean_object* x_929; lean_object* x_930; lean_object* x_931; lean_object* x_932; lean_object* x_933; lean_object* x_934; lean_object* x_935; +x_919 = lean_ctor_get(x_1, 6); +lean_dec(x_919); +x_920 = lean_ctor_get(x_1, 5); +lean_dec(x_920); +x_921 = lean_ctor_get(x_1, 4); +lean_dec(x_921); +x_922 = lean_ctor_get(x_1, 3); +lean_dec(x_922); +x_923 = lean_ctor_get(x_1, 2); +lean_dec(x_923); +x_924 = lean_ctor_get(x_1, 1); +lean_dec(x_924); +x_925 = lean_ctor_get(x_1, 0); +lean_dec(x_925); +x_926 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_926, 0, x_96); +x_927 = 1; +x_928 = lean_box(0); lean_inc(x_4); -x_906 = l_Lean_Elab_Term_mkFreshExprMVar(x_6, x_903, x_904, x_905, x_4, x_17); -x_907 = lean_ctor_get(x_906, 0); -lean_inc(x_907); -x_908 = lean_ctor_get(x_906, 1); -lean_inc(x_908); -lean_dec(x_906); -x_909 = l_Lean_Expr_mvarId_x21(x_907); -x_910 = lean_array_push(x_12, x_909); -lean_ctor_set(x_1, 5, x_910); -lean_inc(x_907); -x_911 = l_Lean_mkApp(x_2, x_907); -x_912 = lean_expr_instantiate1(x_92, x_907); -lean_dec(x_907); -lean_dec(x_92); -x_2 = x_911; -x_3 = x_912; -x_5 = x_908; +x_929 = l_Lean_Elab_Term_mkFreshExprMVar(x_926, x_927, x_928, x_4, x_19); +x_930 = lean_ctor_get(x_929, 0); +lean_inc(x_930); +x_931 = lean_ctor_get(x_929, 1); +lean_inc(x_931); +lean_dec(x_929); +x_932 = l_Lean_Expr_mvarId_x21(x_930); +x_933 = lean_array_push(x_12, x_932); +lean_ctor_set(x_1, 5, x_933); +lean_inc(x_930); +x_934 = l_Lean_mkApp(x_2, x_930); +x_935 = lean_expr_instantiate1(x_97, x_930); +lean_dec(x_930); +lean_dec(x_97); +x_2 = x_934; +x_3 = x_935; +x_5 = x_931; goto _start; } else { -lean_object* x_914; uint8_t x_915; lean_object* x_916; lean_object* x_917; lean_object* x_918; lean_object* x_919; lean_object* x_920; lean_object* x_921; lean_object* x_922; lean_object* x_923; lean_object* x_924; +lean_object* x_937; uint8_t x_938; lean_object* x_939; lean_object* x_940; lean_object* x_941; lean_object* x_942; lean_object* x_943; lean_object* x_944; lean_object* x_945; lean_object* x_946; lean_object* x_947; lean_dec(x_1); -x_914 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_914, 0, x_91); -x_915 = 1; -x_916 = lean_box(0); +x_937 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_937, 0, x_96); +x_938 = 1; +x_939 = lean_box(0); lean_inc(x_4); -x_917 = l_Lean_Elab_Term_mkFreshExprMVar(x_6, x_914, x_915, x_916, x_4, x_17); -x_918 = lean_ctor_get(x_917, 0); -lean_inc(x_918); -x_919 = lean_ctor_get(x_917, 1); -lean_inc(x_919); -lean_dec(x_917); -x_920 = l_Lean_Expr_mvarId_x21(x_918); -x_921 = lean_array_push(x_12, x_920); -x_922 = lean_alloc_ctor(0, 7, 2); -lean_ctor_set(x_922, 0, x_6); -lean_ctor_set(x_922, 1, x_7); -lean_ctor_set(x_922, 2, x_8); -lean_ctor_set(x_922, 3, x_10); -lean_ctor_set(x_922, 4, x_11); -lean_ctor_set(x_922, 5, x_921); -lean_ctor_set(x_922, 6, x_13); -lean_ctor_set_uint8(x_922, sizeof(void*)*7, x_9); -lean_ctor_set_uint8(x_922, sizeof(void*)*7 + 1, x_14); -lean_inc(x_918); -x_923 = l_Lean_mkApp(x_2, x_918); -x_924 = lean_expr_instantiate1(x_92, x_918); -lean_dec(x_918); -lean_dec(x_92); -x_1 = x_922; -x_2 = x_923; -x_3 = x_924; -x_5 = x_919; +x_940 = l_Lean_Elab_Term_mkFreshExprMVar(x_937, x_938, x_939, x_4, x_19); +x_941 = lean_ctor_get(x_940, 0); +lean_inc(x_941); +x_942 = lean_ctor_get(x_940, 1); +lean_inc(x_942); +lean_dec(x_940); +x_943 = l_Lean_Expr_mvarId_x21(x_941); +x_944 = lean_array_push(x_12, x_943); +x_945 = lean_alloc_ctor(0, 7, 2); +lean_ctor_set(x_945, 0, x_6); +lean_ctor_set(x_945, 1, x_7); +lean_ctor_set(x_945, 2, x_8); +lean_ctor_set(x_945, 3, x_10); +lean_ctor_set(x_945, 4, x_11); +lean_ctor_set(x_945, 5, x_944); +lean_ctor_set(x_945, 6, x_13); +lean_ctor_set_uint8(x_945, sizeof(void*)*7, x_9); +lean_ctor_set_uint8(x_945, sizeof(void*)*7 + 1, x_15); +lean_inc(x_941); +x_946 = l_Lean_mkApp(x_2, x_941); +x_947 = lean_expr_instantiate1(x_97, x_941); +lean_dec(x_941); +lean_dec(x_97); +x_1 = x_945; +x_2 = x_946; +x_3 = x_947; +x_5 = x_942; goto _start; } } else { -uint8_t x_926; -x_926 = l___private_Lean_Elab_App_9__nextArgIsHole(x_1); -if (x_926 == 0) +uint8_t x_949; +x_949 = l___private_Lean_Elab_App_9__nextArgIsHole(x_1); +if (x_949 == 0) { -lean_object* x_927; uint8_t x_928; lean_object* x_929; uint8_t x_930; -x_927 = lean_array_get_size(x_7); -x_928 = lean_nat_dec_lt(x_10, x_927); -lean_dec(x_927); +lean_object* x_950; uint8_t x_951; lean_object* x_952; uint8_t x_953; +x_950 = lean_array_get_size(x_7); +x_951 = lean_nat_dec_lt(x_10, x_950); +lean_dec(x_950); lean_inc(x_4); lean_inc(x_1); -x_929 = l___private_Lean_Elab_App_8__propagateExpectedType(x_1, x_16, x_4, x_17); -x_930 = !lean_is_exclusive(x_1); -if (x_930 == 0) +x_952 = l___private_Lean_Elab_App_8__propagateExpectedType(x_1, x_18, x_4, x_19); +x_953 = !lean_is_exclusive(x_1); +if (x_953 == 0) { -lean_object* x_931; lean_object* x_932; lean_object* x_933; lean_object* x_934; lean_object* x_935; lean_object* x_936; lean_object* x_937; -x_931 = lean_ctor_get(x_1, 6); -lean_dec(x_931); -x_932 = lean_ctor_get(x_1, 5); -lean_dec(x_932); -x_933 = lean_ctor_get(x_1, 4); -lean_dec(x_933); -x_934 = lean_ctor_get(x_1, 3); -lean_dec(x_934); -x_935 = lean_ctor_get(x_1, 2); -lean_dec(x_935); -x_936 = lean_ctor_get(x_1, 1); -lean_dec(x_936); -x_937 = lean_ctor_get(x_1, 0); -lean_dec(x_937); -if (lean_obj_tag(x_929) == 0) +lean_object* x_954; lean_object* x_955; lean_object* x_956; lean_object* x_957; lean_object* x_958; lean_object* x_959; lean_object* x_960; +x_954 = lean_ctor_get(x_1, 6); +lean_dec(x_954); +x_955 = lean_ctor_get(x_1, 5); +lean_dec(x_955); +x_956 = lean_ctor_get(x_1, 4); +lean_dec(x_956); +x_957 = lean_ctor_get(x_1, 3); +lean_dec(x_957); +x_958 = lean_ctor_get(x_1, 2); +lean_dec(x_958); +x_959 = lean_ctor_get(x_1, 1); +lean_dec(x_959); +x_960 = lean_ctor_get(x_1, 0); +lean_dec(x_960); +if (lean_obj_tag(x_952) == 0) { -if (x_928 == 0) +if (x_951 == 0) { -lean_object* x_938; uint8_t x_939; +lean_object* x_961; uint8_t x_962; lean_free_object(x_1); -lean_dec(x_92); -lean_dec(x_91); +lean_dec(x_97); +lean_dec(x_96); lean_dec(x_13); lean_dec(x_10); lean_dec(x_7); -x_938 = lean_ctor_get(x_929, 1); -lean_inc(x_938); -lean_dec(x_929); -x_939 = l_Array_isEmpty___rarg(x_11); -if (x_939 == 0) +lean_dec(x_6); +x_961 = lean_ctor_get(x_952, 1); +lean_inc(x_961); +lean_dec(x_952); +x_962 = l_Array_isEmpty___rarg(x_11); +if (x_962 == 0) { -lean_object* x_940; lean_object* x_941; lean_object* x_942; lean_object* x_943; lean_object* x_944; lean_object* x_945; lean_object* x_946; lean_object* x_947; lean_object* x_948; lean_object* x_949; lean_object* x_950; lean_object* x_951; lean_object* x_952; lean_object* x_953; lean_object* x_954; lean_object* x_955; +lean_object* x_963; lean_object* x_964; lean_object* x_965; lean_object* x_966; lean_object* x_967; lean_object* x_968; lean_object* x_969; lean_object* x_970; lean_object* x_971; lean_object* x_972; lean_object* x_973; lean_object* x_974; lean_object* x_975; lean_object* x_976; lean_object* x_977; lean_object* x_978; lean_dec(x_12); lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); -x_940 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_940, 0, x_90); -x_941 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; -x_942 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_942, 0, x_941); -lean_ctor_set(x_942, 1, x_940); -x_943 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; -x_944 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_944, 0, x_942); -lean_ctor_set(x_944, 1, x_943); -x_945 = x_11; -x_946 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(x_94, x_945); -x_947 = x_946; -x_948 = l_Array_toList___rarg(x_947); -lean_dec(x_947); -x_949 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_948); -x_950 = l_Array_HasRepr___rarg___closed__1; -x_951 = lean_string_append(x_950, x_949); -lean_dec(x_949); -x_952 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_952, 0, x_951); -x_953 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_953, 0, x_952); -x_954 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_954, 0, x_944); -lean_ctor_set(x_954, 1, x_953); -x_955 = l_Lean_Elab_Term_throwError___rarg(x_6, x_954, x_4, x_938); -lean_dec(x_6); -return x_955; +x_963 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_963, 0, x_95); +x_964 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_965 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_965, 0, x_964); +lean_ctor_set(x_965, 1, x_963); +x_966 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_967 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_967, 0, x_965); +lean_ctor_set(x_967, 1, x_966); +x_968 = x_11; +x_969 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(x_99, x_968); +x_970 = x_969; +x_971 = l_Array_toList___rarg(x_970); +lean_dec(x_970); +x_972 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_971); +x_973 = l_Array_HasRepr___rarg___closed__1; +x_974 = lean_string_append(x_973, x_972); +lean_dec(x_972); +x_975 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_975, 0, x_974); +x_976 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_976, 0, x_975); +x_977 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_977, 0, x_967); +lean_ctor_set(x_977, 1, x_976); +x_978 = l_Lean_Elab_Term_throwError___rarg(x_977, x_4, x_961); +return x_978; } else { -lean_object* x_956; lean_object* x_983; lean_object* x_984; lean_object* x_985; lean_object* x_986; uint8_t x_987; -lean_dec(x_90); +lean_object* x_979; lean_object* x_1006; lean_object* x_1007; lean_object* x_1008; lean_object* x_1009; lean_object* x_1010; lean_object* x_1011; lean_object* x_1012; uint8_t x_1013; +lean_dec(x_95); lean_dec(x_11); -x_983 = l_Lean_Elab_Term_getOptions(x_4, x_938); -x_984 = lean_ctor_get(x_983, 0); -lean_inc(x_984); -x_985 = lean_ctor_get(x_983, 1); -lean_inc(x_985); -lean_dec(x_983); -x_986 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; -x_987 = l_Lean_checkTraceOption(x_984, x_986); -lean_dec(x_984); -if (x_987 == 0) +x_1006 = l_Lean_Elab_Term_getOptions(x_4, x_961); +x_1007 = lean_ctor_get(x_1006, 0); +lean_inc(x_1007); +x_1008 = lean_ctor_get(x_1006, 1); +lean_inc(x_1008); +lean_dec(x_1006); +x_1009 = l_Lean_Elab_Term_getCurrRef(x_4, x_1008); +x_1010 = lean_ctor_get(x_1009, 0); +lean_inc(x_1010); +x_1011 = lean_ctor_get(x_1009, 1); +lean_inc(x_1011); +lean_dec(x_1009); +x_1012 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_1013 = l_Lean_checkTraceOption(x_1007, x_1012); +lean_dec(x_1007); +if (x_1013 == 0) { -x_956 = x_985; -goto block_982; +lean_dec(x_1010); +x_979 = x_1011; +goto block_1005; } else { -lean_object* x_988; lean_object* x_989; lean_object* x_990; +lean_object* x_1014; lean_object* x_1015; lean_object* x_1016; lean_inc(x_2); -x_988 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_988, 0, x_2); +x_1014 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1014, 0, x_2); lean_inc(x_4); -x_989 = l_Lean_Elab_Term_logTrace(x_986, x_6, x_988, x_4, x_985); -x_990 = lean_ctor_get(x_989, 1); -lean_inc(x_990); -lean_dec(x_989); -x_956 = x_990; -goto block_982; +x_1015 = l_Lean_Elab_Term_logTrace(x_1012, x_1010, x_1014, x_4, x_1011); +lean_dec(x_1010); +x_1016 = lean_ctor_get(x_1015, 1); +lean_inc(x_1016); +lean_dec(x_1015); +x_979 = x_1016; +goto block_1005; } -block_982: +block_1005: { if (lean_obj_tag(x_8) == 0) { -lean_object* x_957; +lean_object* x_980; lean_dec(x_3); -x_957 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_956); +x_980 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_12, x_99, x_4, x_979); lean_dec(x_12); -if (lean_obj_tag(x_957) == 0) +if (lean_obj_tag(x_980) == 0) { -uint8_t x_958; -x_958 = !lean_is_exclusive(x_957); -if (x_958 == 0) +uint8_t x_981; +x_981 = !lean_is_exclusive(x_980); +if (x_981 == 0) { -lean_object* x_959; -x_959 = lean_ctor_get(x_957, 0); -lean_dec(x_959); -lean_ctor_set(x_957, 0, x_2); -return x_957; +lean_object* x_982; +x_982 = lean_ctor_get(x_980, 0); +lean_dec(x_982); +lean_ctor_set(x_980, 0, x_2); +return x_980; } else { -lean_object* x_960; lean_object* x_961; -x_960 = lean_ctor_get(x_957, 1); -lean_inc(x_960); -lean_dec(x_957); -x_961 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_961, 0, x_2); -lean_ctor_set(x_961, 1, x_960); -return x_961; +lean_object* x_983; lean_object* x_984; +x_983 = lean_ctor_get(x_980, 1); +lean_inc(x_983); +lean_dec(x_980); +x_984 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_984, 0, x_2); +lean_ctor_set(x_984, 1, x_983); +return x_984; } } else { -uint8_t x_962; +uint8_t x_985; lean_dec(x_2); -x_962 = !lean_is_exclusive(x_957); -if (x_962 == 0) +x_985 = !lean_is_exclusive(x_980); +if (x_985 == 0) { -return x_957; +return x_980; } else { -lean_object* x_963; lean_object* x_964; lean_object* x_965; -x_963 = lean_ctor_get(x_957, 0); -x_964 = lean_ctor_get(x_957, 1); -lean_inc(x_964); -lean_inc(x_963); -lean_dec(x_957); -x_965 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_965, 0, x_963); -lean_ctor_set(x_965, 1, x_964); -return x_965; +lean_object* x_986; lean_object* x_987; lean_object* x_988; +x_986 = lean_ctor_get(x_980, 0); +x_987 = lean_ctor_get(x_980, 1); +lean_inc(x_987); +lean_inc(x_986); +lean_dec(x_980); +x_988 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_988, 0, x_986); +lean_ctor_set(x_988, 1, x_987); +return x_988; } } } else { -lean_object* x_966; lean_object* x_967; -x_966 = lean_ctor_get(x_8, 0); -lean_inc(x_966); +lean_object* x_989; lean_object* x_990; +x_989 = lean_ctor_get(x_8, 0); +lean_inc(x_989); lean_dec(x_8); lean_inc(x_4); -x_967 = l_Lean_Elab_Term_isDefEq(x_6, x_966, x_3, x_4, x_956); -if (lean_obj_tag(x_967) == 0) +x_990 = l_Lean_Elab_Term_isDefEq(x_989, x_3, x_4, x_979); +if (lean_obj_tag(x_990) == 0) { -lean_object* x_968; lean_object* x_969; -x_968 = lean_ctor_get(x_967, 1); -lean_inc(x_968); -lean_dec(x_967); -x_969 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_968); -lean_dec(x_12); -if (lean_obj_tag(x_969) == 0) -{ -uint8_t x_970; -x_970 = !lean_is_exclusive(x_969); -if (x_970 == 0) -{ -lean_object* x_971; -x_971 = lean_ctor_get(x_969, 0); -lean_dec(x_971); -lean_ctor_set(x_969, 0, x_2); -return x_969; -} -else -{ -lean_object* x_972; lean_object* x_973; -x_972 = lean_ctor_get(x_969, 1); -lean_inc(x_972); -lean_dec(x_969); -x_973 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_973, 0, x_2); -lean_ctor_set(x_973, 1, x_972); -return x_973; -} -} -else -{ -uint8_t x_974; -lean_dec(x_2); -x_974 = !lean_is_exclusive(x_969); -if (x_974 == 0) -{ -return x_969; -} -else -{ -lean_object* x_975; lean_object* x_976; lean_object* x_977; -x_975 = lean_ctor_get(x_969, 0); -x_976 = lean_ctor_get(x_969, 1); -lean_inc(x_976); -lean_inc(x_975); -lean_dec(x_969); -x_977 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_977, 0, x_975); -lean_ctor_set(x_977, 1, x_976); -return x_977; -} -} -} -else -{ -uint8_t x_978; -lean_dec(x_12); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -x_978 = !lean_is_exclusive(x_967); -if (x_978 == 0) -{ -return x_967; -} -else -{ -lean_object* x_979; lean_object* x_980; lean_object* x_981; -x_979 = lean_ctor_get(x_967, 0); -x_980 = lean_ctor_get(x_967, 1); -lean_inc(x_980); -lean_inc(x_979); -lean_dec(x_967); -x_981 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_981, 0, x_979); -lean_ctor_set(x_981, 1, x_980); -return x_981; -} -} -} -} -} -} -else -{ -lean_object* x_991; lean_object* x_992; lean_object* x_993; -lean_dec(x_90); -lean_dec(x_3); -x_991 = lean_ctor_get(x_929, 1); +lean_object* x_991; lean_object* x_992; +x_991 = lean_ctor_get(x_990, 1); lean_inc(x_991); -lean_dec(x_929); -x_992 = lean_array_fget(x_7, x_10); +lean_dec(x_990); +x_992 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_12, x_99, x_4, x_991); +lean_dec(x_12); +if (lean_obj_tag(x_992) == 0) +{ +uint8_t x_993; +x_993 = !lean_is_exclusive(x_992); +if (x_993 == 0) +{ +lean_object* x_994; +x_994 = lean_ctor_get(x_992, 0); +lean_dec(x_994); +lean_ctor_set(x_992, 0, x_2); +return x_992; +} +else +{ +lean_object* x_995; lean_object* x_996; +x_995 = lean_ctor_get(x_992, 1); +lean_inc(x_995); +lean_dec(x_992); +x_996 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_996, 0, x_2); +lean_ctor_set(x_996, 1, x_995); +return x_996; +} +} +else +{ +uint8_t x_997; +lean_dec(x_2); +x_997 = !lean_is_exclusive(x_992); +if (x_997 == 0) +{ +return x_992; +} +else +{ +lean_object* x_998; lean_object* x_999; lean_object* x_1000; +x_998 = lean_ctor_get(x_992, 0); +x_999 = lean_ctor_get(x_992, 1); +lean_inc(x_999); +lean_inc(x_998); +lean_dec(x_992); +x_1000 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1000, 0, x_998); +lean_ctor_set(x_1000, 1, x_999); +return x_1000; +} +} +} +else +{ +uint8_t x_1001; +lean_dec(x_4); +lean_dec(x_12); +lean_dec(x_2); +x_1001 = !lean_is_exclusive(x_990); +if (x_1001 == 0) +{ +return x_990; +} +else +{ +lean_object* x_1002; lean_object* x_1003; lean_object* x_1004; +x_1002 = lean_ctor_get(x_990, 0); +x_1003 = lean_ctor_get(x_990, 1); +lean_inc(x_1003); +lean_inc(x_1002); +lean_dec(x_990); +x_1004 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1004, 0, x_1002); +lean_ctor_set(x_1004, 1, x_1003); +return x_1004; +} +} +} +} +} +} +else +{ +lean_object* x_1017; lean_object* x_1018; lean_object* x_1019; +lean_dec(x_95); +lean_dec(x_3); +x_1017 = lean_ctor_get(x_952, 1); +lean_inc(x_1017); +lean_dec(x_952); +x_1018 = lean_array_fget(x_7, x_10); lean_inc(x_4); lean_inc(x_2); -lean_inc(x_6); -x_993 = l___private_Lean_Elab_App_2__elabArg(x_6, x_2, x_992, x_91, x_4, x_991); -if (lean_obj_tag(x_993) == 0) +x_1019 = l___private_Lean_Elab_App_2__elabArg(x_2, x_1018, x_96, x_4, x_1017); +if (lean_obj_tag(x_1019) == 0) { -lean_object* x_994; lean_object* x_995; lean_object* x_996; lean_object* x_997; uint8_t x_998; lean_object* x_999; lean_object* x_1000; -x_994 = lean_ctor_get(x_993, 0); -lean_inc(x_994); -x_995 = lean_ctor_get(x_993, 1); -lean_inc(x_995); -lean_dec(x_993); -x_996 = lean_unsigned_to_nat(1u); -x_997 = lean_nat_add(x_10, x_996); +lean_object* x_1020; lean_object* x_1021; lean_object* x_1022; lean_object* x_1023; uint8_t x_1024; lean_object* x_1025; lean_object* x_1026; +x_1020 = lean_ctor_get(x_1019, 0); +lean_inc(x_1020); +x_1021 = lean_ctor_get(x_1019, 1); +lean_inc(x_1021); +lean_dec(x_1019); +x_1022 = lean_unsigned_to_nat(1u); +x_1023 = lean_nat_add(x_10, x_1022); lean_dec(x_10); -x_998 = 1; -lean_ctor_set(x_1, 3, x_997); -lean_ctor_set_uint8(x_1, sizeof(void*)*7 + 1, x_998); -lean_inc(x_994); -x_999 = l_Lean_mkApp(x_2, x_994); -x_1000 = lean_expr_instantiate1(x_92, x_994); -lean_dec(x_994); -lean_dec(x_92); -x_2 = x_999; -x_3 = x_1000; -x_5 = x_995; +x_1024 = 1; +lean_ctor_set(x_1, 3, x_1023); +lean_ctor_set_uint8(x_1, sizeof(void*)*7 + 1, x_1024); +lean_inc(x_1020); +x_1025 = l_Lean_mkApp(x_2, x_1020); +x_1026 = lean_expr_instantiate1(x_97, x_1020); +lean_dec(x_1020); +lean_dec(x_97); +x_2 = x_1025; +x_3 = x_1026; +x_5 = x_1021; goto _start; } else { -uint8_t x_1002; +uint8_t x_1028; lean_free_object(x_1); -lean_dec(x_92); +lean_dec(x_97); +lean_dec(x_4); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -6999,36 +7219,36 @@ lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_4); lean_dec(x_2); -x_1002 = !lean_is_exclusive(x_993); -if (x_1002 == 0) +x_1028 = !lean_is_exclusive(x_1019); +if (x_1028 == 0) { -return x_993; +return x_1019; } else { -lean_object* x_1003; lean_object* x_1004; lean_object* x_1005; -x_1003 = lean_ctor_get(x_993, 0); -x_1004 = lean_ctor_get(x_993, 1); -lean_inc(x_1004); -lean_inc(x_1003); -lean_dec(x_993); -x_1005 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1005, 0, x_1003); -lean_ctor_set(x_1005, 1, x_1004); -return x_1005; +lean_object* x_1029; lean_object* x_1030; lean_object* x_1031; +x_1029 = lean_ctor_get(x_1019, 0); +x_1030 = lean_ctor_get(x_1019, 1); +lean_inc(x_1030); +lean_inc(x_1029); +lean_dec(x_1019); +x_1031 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1031, 0, x_1029); +lean_ctor_set(x_1031, 1, x_1030); +return x_1031; } } } } else { -uint8_t x_1006; +uint8_t x_1032; lean_free_object(x_1); -lean_dec(x_92); -lean_dec(x_91); -lean_dec(x_90); +lean_dec(x_97); +lean_dec(x_96); +lean_dec(x_95); +lean_dec(x_4); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -7036,263 +7256,269 @@ lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_1006 = !lean_is_exclusive(x_929); -if (x_1006 == 0) +x_1032 = !lean_is_exclusive(x_952); +if (x_1032 == 0) { -return x_929; +return x_952; } else { -lean_object* x_1007; lean_object* x_1008; lean_object* x_1009; -x_1007 = lean_ctor_get(x_929, 0); -x_1008 = lean_ctor_get(x_929, 1); -lean_inc(x_1008); -lean_inc(x_1007); -lean_dec(x_929); -x_1009 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1009, 0, x_1007); -lean_ctor_set(x_1009, 1, x_1008); -return x_1009; +lean_object* x_1033; lean_object* x_1034; lean_object* x_1035; +x_1033 = lean_ctor_get(x_952, 0); +x_1034 = lean_ctor_get(x_952, 1); +lean_inc(x_1034); +lean_inc(x_1033); +lean_dec(x_952); +x_1035 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1035, 0, x_1033); +lean_ctor_set(x_1035, 1, x_1034); +return x_1035; } } } else { lean_dec(x_1); -if (lean_obj_tag(x_929) == 0) +if (lean_obj_tag(x_952) == 0) { -if (x_928 == 0) +if (x_951 == 0) { -lean_object* x_1010; uint8_t x_1011; -lean_dec(x_92); -lean_dec(x_91); +lean_object* x_1036; uint8_t x_1037; +lean_dec(x_97); +lean_dec(x_96); lean_dec(x_13); lean_dec(x_10); lean_dec(x_7); -x_1010 = lean_ctor_get(x_929, 1); -lean_inc(x_1010); -lean_dec(x_929); -x_1011 = l_Array_isEmpty___rarg(x_11); -if (x_1011 == 0) +lean_dec(x_6); +x_1036 = lean_ctor_get(x_952, 1); +lean_inc(x_1036); +lean_dec(x_952); +x_1037 = l_Array_isEmpty___rarg(x_11); +if (x_1037 == 0) { -lean_object* x_1012; lean_object* x_1013; lean_object* x_1014; lean_object* x_1015; lean_object* x_1016; lean_object* x_1017; lean_object* x_1018; lean_object* x_1019; lean_object* x_1020; lean_object* x_1021; lean_object* x_1022; lean_object* x_1023; lean_object* x_1024; lean_object* x_1025; lean_object* x_1026; lean_object* x_1027; +lean_object* x_1038; lean_object* x_1039; lean_object* x_1040; lean_object* x_1041; lean_object* x_1042; lean_object* x_1043; lean_object* x_1044; lean_object* x_1045; lean_object* x_1046; lean_object* x_1047; lean_object* x_1048; lean_object* x_1049; lean_object* x_1050; lean_object* x_1051; lean_object* x_1052; lean_object* x_1053; lean_dec(x_12); lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); -x_1012 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_1012, 0, x_90); -x_1013 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; -x_1014 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1014, 0, x_1013); -lean_ctor_set(x_1014, 1, x_1012); -x_1015 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; -x_1016 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1016, 0, x_1014); -lean_ctor_set(x_1016, 1, x_1015); -x_1017 = x_11; -x_1018 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(x_94, x_1017); -x_1019 = x_1018; -x_1020 = l_Array_toList___rarg(x_1019); -lean_dec(x_1019); -x_1021 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_1020); -x_1022 = l_Array_HasRepr___rarg___closed__1; -x_1023 = lean_string_append(x_1022, x_1021); -lean_dec(x_1021); -x_1024 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1024, 0, x_1023); -x_1025 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1025, 0, x_1024); -x_1026 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1026, 0, x_1016); -lean_ctor_set(x_1026, 1, x_1025); -x_1027 = l_Lean_Elab_Term_throwError___rarg(x_6, x_1026, x_4, x_1010); -lean_dec(x_6); -return x_1027; +x_1038 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_1038, 0, x_95); +x_1039 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_1040 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1040, 0, x_1039); +lean_ctor_set(x_1040, 1, x_1038); +x_1041 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_1042 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1042, 0, x_1040); +lean_ctor_set(x_1042, 1, x_1041); +x_1043 = x_11; +x_1044 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(x_99, x_1043); +x_1045 = x_1044; +x_1046 = l_Array_toList___rarg(x_1045); +lean_dec(x_1045); +x_1047 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_1046); +x_1048 = l_Array_HasRepr___rarg___closed__1; +x_1049 = lean_string_append(x_1048, x_1047); +lean_dec(x_1047); +x_1050 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1050, 0, x_1049); +x_1051 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1051, 0, x_1050); +x_1052 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1052, 0, x_1042); +lean_ctor_set(x_1052, 1, x_1051); +x_1053 = l_Lean_Elab_Term_throwError___rarg(x_1052, x_4, x_1036); +return x_1053; } else { -lean_object* x_1028; lean_object* x_1053; lean_object* x_1054; lean_object* x_1055; lean_object* x_1056; uint8_t x_1057; -lean_dec(x_90); +lean_object* x_1054; lean_object* x_1079; lean_object* x_1080; lean_object* x_1081; lean_object* x_1082; lean_object* x_1083; lean_object* x_1084; lean_object* x_1085; uint8_t x_1086; +lean_dec(x_95); lean_dec(x_11); -x_1053 = l_Lean_Elab_Term_getOptions(x_4, x_1010); -x_1054 = lean_ctor_get(x_1053, 0); -lean_inc(x_1054); -x_1055 = lean_ctor_get(x_1053, 1); -lean_inc(x_1055); -lean_dec(x_1053); -x_1056 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; -x_1057 = l_Lean_checkTraceOption(x_1054, x_1056); -lean_dec(x_1054); -if (x_1057 == 0) +x_1079 = l_Lean_Elab_Term_getOptions(x_4, x_1036); +x_1080 = lean_ctor_get(x_1079, 0); +lean_inc(x_1080); +x_1081 = lean_ctor_get(x_1079, 1); +lean_inc(x_1081); +lean_dec(x_1079); +x_1082 = l_Lean_Elab_Term_getCurrRef(x_4, x_1081); +x_1083 = lean_ctor_get(x_1082, 0); +lean_inc(x_1083); +x_1084 = lean_ctor_get(x_1082, 1); +lean_inc(x_1084); +lean_dec(x_1082); +x_1085 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_1086 = l_Lean_checkTraceOption(x_1080, x_1085); +lean_dec(x_1080); +if (x_1086 == 0) { -x_1028 = x_1055; -goto block_1052; +lean_dec(x_1083); +x_1054 = x_1084; +goto block_1078; } else { -lean_object* x_1058; lean_object* x_1059; lean_object* x_1060; +lean_object* x_1087; lean_object* x_1088; lean_object* x_1089; lean_inc(x_2); -x_1058 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1058, 0, x_2); +x_1087 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1087, 0, x_2); lean_inc(x_4); -x_1059 = l_Lean_Elab_Term_logTrace(x_1056, x_6, x_1058, x_4, x_1055); -x_1060 = lean_ctor_get(x_1059, 1); -lean_inc(x_1060); -lean_dec(x_1059); -x_1028 = x_1060; -goto block_1052; +x_1088 = l_Lean_Elab_Term_logTrace(x_1085, x_1083, x_1087, x_4, x_1084); +lean_dec(x_1083); +x_1089 = lean_ctor_get(x_1088, 1); +lean_inc(x_1089); +lean_dec(x_1088); +x_1054 = x_1089; +goto block_1078; } -block_1052: +block_1078: { if (lean_obj_tag(x_8) == 0) { -lean_object* x_1029; +lean_object* x_1055; lean_dec(x_3); -x_1029 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_1028); +x_1055 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_12, x_99, x_4, x_1054); lean_dec(x_12); -if (lean_obj_tag(x_1029) == 0) +if (lean_obj_tag(x_1055) == 0) { -lean_object* x_1030; lean_object* x_1031; lean_object* x_1032; -x_1030 = lean_ctor_get(x_1029, 1); -lean_inc(x_1030); -if (lean_is_exclusive(x_1029)) { - lean_ctor_release(x_1029, 0); - lean_ctor_release(x_1029, 1); - x_1031 = x_1029; +lean_object* x_1056; lean_object* x_1057; lean_object* x_1058; +x_1056 = lean_ctor_get(x_1055, 1); +lean_inc(x_1056); +if (lean_is_exclusive(x_1055)) { + lean_ctor_release(x_1055, 0); + lean_ctor_release(x_1055, 1); + x_1057 = x_1055; } else { - lean_dec_ref(x_1029); - x_1031 = lean_box(0); + lean_dec_ref(x_1055); + x_1057 = lean_box(0); } -if (lean_is_scalar(x_1031)) { - x_1032 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_1057)) { + x_1058 = lean_alloc_ctor(0, 2, 0); } else { - x_1032 = x_1031; + x_1058 = x_1057; } -lean_ctor_set(x_1032, 0, x_2); -lean_ctor_set(x_1032, 1, x_1030); -return x_1032; +lean_ctor_set(x_1058, 0, x_2); +lean_ctor_set(x_1058, 1, x_1056); +return x_1058; } else { -lean_object* x_1033; lean_object* x_1034; lean_object* x_1035; lean_object* x_1036; +lean_object* x_1059; lean_object* x_1060; lean_object* x_1061; lean_object* x_1062; lean_dec(x_2); -x_1033 = lean_ctor_get(x_1029, 0); -lean_inc(x_1033); -x_1034 = lean_ctor_get(x_1029, 1); -lean_inc(x_1034); -if (lean_is_exclusive(x_1029)) { - lean_ctor_release(x_1029, 0); - lean_ctor_release(x_1029, 1); - x_1035 = x_1029; +x_1059 = lean_ctor_get(x_1055, 0); +lean_inc(x_1059); +x_1060 = lean_ctor_get(x_1055, 1); +lean_inc(x_1060); +if (lean_is_exclusive(x_1055)) { + lean_ctor_release(x_1055, 0); + lean_ctor_release(x_1055, 1); + x_1061 = x_1055; } else { - lean_dec_ref(x_1029); - x_1035 = lean_box(0); + lean_dec_ref(x_1055); + x_1061 = lean_box(0); } -if (lean_is_scalar(x_1035)) { - x_1036 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1061)) { + x_1062 = lean_alloc_ctor(1, 2, 0); } else { - x_1036 = x_1035; + x_1062 = x_1061; } -lean_ctor_set(x_1036, 0, x_1033); -lean_ctor_set(x_1036, 1, x_1034); -return x_1036; +lean_ctor_set(x_1062, 0, x_1059); +lean_ctor_set(x_1062, 1, x_1060); +return x_1062; } } else { -lean_object* x_1037; lean_object* x_1038; -x_1037 = lean_ctor_get(x_8, 0); -lean_inc(x_1037); +lean_object* x_1063; lean_object* x_1064; +x_1063 = lean_ctor_get(x_8, 0); +lean_inc(x_1063); lean_dec(x_8); lean_inc(x_4); -x_1038 = l_Lean_Elab_Term_isDefEq(x_6, x_1037, x_3, x_4, x_1028); -if (lean_obj_tag(x_1038) == 0) +x_1064 = l_Lean_Elab_Term_isDefEq(x_1063, x_3, x_4, x_1054); +if (lean_obj_tag(x_1064) == 0) { -lean_object* x_1039; lean_object* x_1040; -x_1039 = lean_ctor_get(x_1038, 1); -lean_inc(x_1039); -lean_dec(x_1038); -x_1040 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_1039); +lean_object* x_1065; lean_object* x_1066; +x_1065 = lean_ctor_get(x_1064, 1); +lean_inc(x_1065); +lean_dec(x_1064); +x_1066 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_12, x_99, x_4, x_1065); lean_dec(x_12); -if (lean_obj_tag(x_1040) == 0) +if (lean_obj_tag(x_1066) == 0) { -lean_object* x_1041; lean_object* x_1042; lean_object* x_1043; -x_1041 = lean_ctor_get(x_1040, 1); -lean_inc(x_1041); -if (lean_is_exclusive(x_1040)) { - lean_ctor_release(x_1040, 0); - lean_ctor_release(x_1040, 1); - x_1042 = x_1040; +lean_object* x_1067; lean_object* x_1068; lean_object* x_1069; +x_1067 = lean_ctor_get(x_1066, 1); +lean_inc(x_1067); +if (lean_is_exclusive(x_1066)) { + lean_ctor_release(x_1066, 0); + lean_ctor_release(x_1066, 1); + x_1068 = x_1066; } else { - lean_dec_ref(x_1040); - x_1042 = lean_box(0); + lean_dec_ref(x_1066); + x_1068 = lean_box(0); } -if (lean_is_scalar(x_1042)) { - x_1043 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_1068)) { + x_1069 = lean_alloc_ctor(0, 2, 0); } else { - x_1043 = x_1042; + x_1069 = x_1068; } -lean_ctor_set(x_1043, 0, x_2); -lean_ctor_set(x_1043, 1, x_1041); -return x_1043; +lean_ctor_set(x_1069, 0, x_2); +lean_ctor_set(x_1069, 1, x_1067); +return x_1069; } else { -lean_object* x_1044; lean_object* x_1045; lean_object* x_1046; lean_object* x_1047; +lean_object* x_1070; lean_object* x_1071; lean_object* x_1072; lean_object* x_1073; lean_dec(x_2); -x_1044 = lean_ctor_get(x_1040, 0); -lean_inc(x_1044); -x_1045 = lean_ctor_get(x_1040, 1); -lean_inc(x_1045); -if (lean_is_exclusive(x_1040)) { - lean_ctor_release(x_1040, 0); - lean_ctor_release(x_1040, 1); - x_1046 = x_1040; +x_1070 = lean_ctor_get(x_1066, 0); +lean_inc(x_1070); +x_1071 = lean_ctor_get(x_1066, 1); +lean_inc(x_1071); +if (lean_is_exclusive(x_1066)) { + lean_ctor_release(x_1066, 0); + lean_ctor_release(x_1066, 1); + x_1072 = x_1066; } else { - lean_dec_ref(x_1040); - x_1046 = lean_box(0); + lean_dec_ref(x_1066); + x_1072 = lean_box(0); } -if (lean_is_scalar(x_1046)) { - x_1047 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1072)) { + x_1073 = lean_alloc_ctor(1, 2, 0); } else { - x_1047 = x_1046; + x_1073 = x_1072; } -lean_ctor_set(x_1047, 0, x_1044); -lean_ctor_set(x_1047, 1, x_1045); -return x_1047; +lean_ctor_set(x_1073, 0, x_1070); +lean_ctor_set(x_1073, 1, x_1071); +return x_1073; } } else { -lean_object* x_1048; lean_object* x_1049; lean_object* x_1050; lean_object* x_1051; -lean_dec(x_12); -lean_dec(x_6); +lean_object* x_1074; lean_object* x_1075; lean_object* x_1076; lean_object* x_1077; lean_dec(x_4); +lean_dec(x_12); lean_dec(x_2); -x_1048 = lean_ctor_get(x_1038, 0); -lean_inc(x_1048); -x_1049 = lean_ctor_get(x_1038, 1); -lean_inc(x_1049); -if (lean_is_exclusive(x_1038)) { - lean_ctor_release(x_1038, 0); - lean_ctor_release(x_1038, 1); - x_1050 = x_1038; +x_1074 = lean_ctor_get(x_1064, 0); +lean_inc(x_1074); +x_1075 = lean_ctor_get(x_1064, 1); +lean_inc(x_1075); +if (lean_is_exclusive(x_1064)) { + lean_ctor_release(x_1064, 0); + lean_ctor_release(x_1064, 1); + x_1076 = x_1064; } else { - lean_dec_ref(x_1038); - x_1050 = lean_box(0); + lean_dec_ref(x_1064); + x_1076 = lean_box(0); } -if (lean_is_scalar(x_1050)) { - x_1051 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1076)) { + x_1077 = lean_alloc_ctor(1, 2, 0); } else { - x_1051 = x_1050; + x_1077 = x_1076; } -lean_ctor_set(x_1051, 0, x_1048); -lean_ctor_set(x_1051, 1, x_1049); -return x_1051; +lean_ctor_set(x_1077, 0, x_1074); +lean_ctor_set(x_1077, 1, x_1075); +return x_1077; } } } @@ -7300,155 +7526,19 @@ return x_1051; } else { -lean_object* x_1061; lean_object* x_1062; lean_object* x_1063; -lean_dec(x_90); +lean_object* x_1090; lean_object* x_1091; lean_object* x_1092; +lean_dec(x_95); lean_dec(x_3); -x_1061 = lean_ctor_get(x_929, 1); -lean_inc(x_1061); -lean_dec(x_929); -x_1062 = lean_array_fget(x_7, x_10); +x_1090 = lean_ctor_get(x_952, 1); +lean_inc(x_1090); +lean_dec(x_952); +x_1091 = lean_array_fget(x_7, x_10); lean_inc(x_4); lean_inc(x_2); -lean_inc(x_6); -x_1063 = l___private_Lean_Elab_App_2__elabArg(x_6, x_2, x_1062, x_91, x_4, x_1061); -if (lean_obj_tag(x_1063) == 0) +x_1092 = l___private_Lean_Elab_App_2__elabArg(x_2, x_1091, x_96, x_4, x_1090); +if (lean_obj_tag(x_1092) == 0) { -lean_object* x_1064; lean_object* x_1065; lean_object* x_1066; lean_object* x_1067; uint8_t x_1068; lean_object* x_1069; lean_object* x_1070; lean_object* x_1071; -x_1064 = lean_ctor_get(x_1063, 0); -lean_inc(x_1064); -x_1065 = lean_ctor_get(x_1063, 1); -lean_inc(x_1065); -lean_dec(x_1063); -x_1066 = lean_unsigned_to_nat(1u); -x_1067 = lean_nat_add(x_10, x_1066); -lean_dec(x_10); -x_1068 = 1; -x_1069 = lean_alloc_ctor(0, 7, 2); -lean_ctor_set(x_1069, 0, x_6); -lean_ctor_set(x_1069, 1, x_7); -lean_ctor_set(x_1069, 2, x_8); -lean_ctor_set(x_1069, 3, x_1067); -lean_ctor_set(x_1069, 4, x_11); -lean_ctor_set(x_1069, 5, x_12); -lean_ctor_set(x_1069, 6, x_13); -lean_ctor_set_uint8(x_1069, sizeof(void*)*7, x_9); -lean_ctor_set_uint8(x_1069, sizeof(void*)*7 + 1, x_1068); -lean_inc(x_1064); -x_1070 = l_Lean_mkApp(x_2, x_1064); -x_1071 = lean_expr_instantiate1(x_92, x_1064); -lean_dec(x_1064); -lean_dec(x_92); -x_1 = x_1069; -x_2 = x_1070; -x_3 = x_1071; -x_5 = x_1065; -goto _start; -} -else -{ -lean_object* x_1073; lean_object* x_1074; lean_object* x_1075; lean_object* x_1076; -lean_dec(x_92); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -x_1073 = lean_ctor_get(x_1063, 0); -lean_inc(x_1073); -x_1074 = lean_ctor_get(x_1063, 1); -lean_inc(x_1074); -if (lean_is_exclusive(x_1063)) { - lean_ctor_release(x_1063, 0); - lean_ctor_release(x_1063, 1); - x_1075 = x_1063; -} else { - lean_dec_ref(x_1063); - x_1075 = lean_box(0); -} -if (lean_is_scalar(x_1075)) { - x_1076 = lean_alloc_ctor(1, 2, 0); -} else { - x_1076 = x_1075; -} -lean_ctor_set(x_1076, 0, x_1073); -lean_ctor_set(x_1076, 1, x_1074); -return x_1076; -} -} -} -else -{ -lean_object* x_1077; lean_object* x_1078; lean_object* x_1079; lean_object* x_1080; -lean_dec(x_92); -lean_dec(x_91); -lean_dec(x_90); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_1077 = lean_ctor_get(x_929, 0); -lean_inc(x_1077); -x_1078 = lean_ctor_get(x_929, 1); -lean_inc(x_1078); -if (lean_is_exclusive(x_929)) { - lean_ctor_release(x_929, 0); - lean_ctor_release(x_929, 1); - x_1079 = x_929; -} else { - lean_dec_ref(x_929); - x_1079 = lean_box(0); -} -if (lean_is_scalar(x_1079)) { - x_1080 = lean_alloc_ctor(1, 2, 0); -} else { - x_1080 = x_1079; -} -lean_ctor_set(x_1080, 0, x_1077); -lean_ctor_set(x_1080, 1, x_1078); -return x_1080; -} -} -} -else -{ -uint8_t x_1081; -lean_dec(x_90); -lean_dec(x_16); -lean_dec(x_3); -x_1081 = !lean_is_exclusive(x_1); -if (x_1081 == 0) -{ -lean_object* x_1082; lean_object* x_1083; lean_object* x_1084; lean_object* x_1085; lean_object* x_1086; lean_object* x_1087; lean_object* x_1088; lean_object* x_1089; uint8_t x_1090; lean_object* x_1091; lean_object* x_1092; lean_object* x_1093; lean_object* x_1094; lean_object* x_1095; lean_object* x_1096; lean_object* x_1097; lean_object* x_1098; lean_object* x_1099; lean_object* x_1100; -x_1082 = lean_ctor_get(x_1, 6); -lean_dec(x_1082); -x_1083 = lean_ctor_get(x_1, 5); -lean_dec(x_1083); -x_1084 = lean_ctor_get(x_1, 4); -lean_dec(x_1084); -x_1085 = lean_ctor_get(x_1, 3); -lean_dec(x_1085); -x_1086 = lean_ctor_get(x_1, 2); -lean_dec(x_1086); -x_1087 = lean_ctor_get(x_1, 1); -lean_dec(x_1087); -x_1088 = lean_ctor_get(x_1, 0); -lean_dec(x_1088); -x_1089 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1089, 0, x_91); -x_1090 = 1; -x_1091 = lean_box(0); -lean_inc(x_4); -x_1092 = l_Lean_Elab_Term_mkFreshExprMVar(x_6, x_1089, x_1090, x_1091, x_4, x_17); +lean_object* x_1093; lean_object* x_1094; lean_object* x_1095; lean_object* x_1096; uint8_t x_1097; lean_object* x_1098; lean_object* x_1099; lean_object* x_1100; x_1093 = lean_ctor_get(x_1092, 0); lean_inc(x_1093); x_1094 = lean_ctor_get(x_1092, 1); @@ -7457,15 +7547,23 @@ lean_dec(x_1092); x_1095 = lean_unsigned_to_nat(1u); x_1096 = lean_nat_add(x_10, x_1095); lean_dec(x_10); -x_1097 = l_Lean_Expr_mvarId_x21(x_1093); -x_1098 = lean_array_push(x_12, x_1097); -lean_ctor_set(x_1, 5, x_1098); -lean_ctor_set(x_1, 3, x_1096); +x_1097 = 1; +x_1098 = lean_alloc_ctor(0, 7, 2); +lean_ctor_set(x_1098, 0, x_6); +lean_ctor_set(x_1098, 1, x_7); +lean_ctor_set(x_1098, 2, x_8); +lean_ctor_set(x_1098, 3, x_1096); +lean_ctor_set(x_1098, 4, x_11); +lean_ctor_set(x_1098, 5, x_12); +lean_ctor_set(x_1098, 6, x_13); +lean_ctor_set_uint8(x_1098, sizeof(void*)*7, x_9); +lean_ctor_set_uint8(x_1098, sizeof(void*)*7 + 1, x_1097); lean_inc(x_1093); x_1099 = l_Lean_mkApp(x_2, x_1093); -x_1100 = lean_expr_instantiate1(x_92, x_1093); +x_1100 = lean_expr_instantiate1(x_97, x_1093); lean_dec(x_1093); -lean_dec(x_92); +lean_dec(x_97); +x_1 = x_1098; x_2 = x_1099; x_3 = x_1100; x_5 = x_1094; @@ -7473,43 +7571,170 @@ goto _start; } else { -lean_object* x_1102; uint8_t x_1103; lean_object* x_1104; lean_object* x_1105; lean_object* x_1106; lean_object* x_1107; lean_object* x_1108; lean_object* x_1109; lean_object* x_1110; lean_object* x_1111; lean_object* x_1112; lean_object* x_1113; lean_object* x_1114; -lean_dec(x_1); -x_1102 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1102, 0, x_91); -x_1103 = 1; -x_1104 = lean_box(0); -lean_inc(x_4); -x_1105 = l_Lean_Elab_Term_mkFreshExprMVar(x_6, x_1102, x_1103, x_1104, x_4, x_17); -x_1106 = lean_ctor_get(x_1105, 0); -lean_inc(x_1106); -x_1107 = lean_ctor_get(x_1105, 1); -lean_inc(x_1107); -lean_dec(x_1105); -x_1108 = lean_unsigned_to_nat(1u); -x_1109 = lean_nat_add(x_10, x_1108); +lean_object* x_1102; lean_object* x_1103; lean_object* x_1104; lean_object* x_1105; +lean_dec(x_97); +lean_dec(x_4); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); lean_dec(x_10); -x_1110 = l_Lean_Expr_mvarId_x21(x_1106); -x_1111 = lean_array_push(x_12, x_1110); -x_1112 = lean_alloc_ctor(0, 7, 2); -lean_ctor_set(x_1112, 0, x_6); -lean_ctor_set(x_1112, 1, x_7); -lean_ctor_set(x_1112, 2, x_8); -lean_ctor_set(x_1112, 3, x_1109); -lean_ctor_set(x_1112, 4, x_11); -lean_ctor_set(x_1112, 5, x_1111); -lean_ctor_set(x_1112, 6, x_13); -lean_ctor_set_uint8(x_1112, sizeof(void*)*7, x_9); -lean_ctor_set_uint8(x_1112, sizeof(void*)*7 + 1, x_14); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +x_1102 = lean_ctor_get(x_1092, 0); +lean_inc(x_1102); +x_1103 = lean_ctor_get(x_1092, 1); +lean_inc(x_1103); +if (lean_is_exclusive(x_1092)) { + lean_ctor_release(x_1092, 0); + lean_ctor_release(x_1092, 1); + x_1104 = x_1092; +} else { + lean_dec_ref(x_1092); + x_1104 = lean_box(0); +} +if (lean_is_scalar(x_1104)) { + x_1105 = lean_alloc_ctor(1, 2, 0); +} else { + x_1105 = x_1104; +} +lean_ctor_set(x_1105, 0, x_1102); +lean_ctor_set(x_1105, 1, x_1103); +return x_1105; +} +} +} +else +{ +lean_object* x_1106; lean_object* x_1107; lean_object* x_1108; lean_object* x_1109; +lean_dec(x_97); +lean_dec(x_96); +lean_dec(x_95); +lean_dec(x_4); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +x_1106 = lean_ctor_get(x_952, 0); lean_inc(x_1106); -x_1113 = l_Lean_mkApp(x_2, x_1106); -x_1114 = lean_expr_instantiate1(x_92, x_1106); -lean_dec(x_1106); -lean_dec(x_92); -x_1 = x_1112; -x_2 = x_1113; -x_3 = x_1114; -x_5 = x_1107; +x_1107 = lean_ctor_get(x_952, 1); +lean_inc(x_1107); +if (lean_is_exclusive(x_952)) { + lean_ctor_release(x_952, 0); + lean_ctor_release(x_952, 1); + x_1108 = x_952; +} else { + lean_dec_ref(x_952); + x_1108 = lean_box(0); +} +if (lean_is_scalar(x_1108)) { + x_1109 = lean_alloc_ctor(1, 2, 0); +} else { + x_1109 = x_1108; +} +lean_ctor_set(x_1109, 0, x_1106); +lean_ctor_set(x_1109, 1, x_1107); +return x_1109; +} +} +} +else +{ +uint8_t x_1110; +lean_dec(x_95); +lean_dec(x_18); +lean_dec(x_3); +x_1110 = !lean_is_exclusive(x_1); +if (x_1110 == 0) +{ +lean_object* x_1111; lean_object* x_1112; lean_object* x_1113; lean_object* x_1114; lean_object* x_1115; lean_object* x_1116; lean_object* x_1117; lean_object* x_1118; uint8_t x_1119; lean_object* x_1120; lean_object* x_1121; lean_object* x_1122; lean_object* x_1123; lean_object* x_1124; lean_object* x_1125; lean_object* x_1126; lean_object* x_1127; lean_object* x_1128; lean_object* x_1129; +x_1111 = lean_ctor_get(x_1, 6); +lean_dec(x_1111); +x_1112 = lean_ctor_get(x_1, 5); +lean_dec(x_1112); +x_1113 = lean_ctor_get(x_1, 4); +lean_dec(x_1113); +x_1114 = lean_ctor_get(x_1, 3); +lean_dec(x_1114); +x_1115 = lean_ctor_get(x_1, 2); +lean_dec(x_1115); +x_1116 = lean_ctor_get(x_1, 1); +lean_dec(x_1116); +x_1117 = lean_ctor_get(x_1, 0); +lean_dec(x_1117); +x_1118 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1118, 0, x_96); +x_1119 = 1; +x_1120 = lean_box(0); +lean_inc(x_4); +x_1121 = l_Lean_Elab_Term_mkFreshExprMVar(x_1118, x_1119, x_1120, x_4, x_19); +x_1122 = lean_ctor_get(x_1121, 0); +lean_inc(x_1122); +x_1123 = lean_ctor_get(x_1121, 1); +lean_inc(x_1123); +lean_dec(x_1121); +x_1124 = lean_unsigned_to_nat(1u); +x_1125 = lean_nat_add(x_10, x_1124); +lean_dec(x_10); +x_1126 = l_Lean_Expr_mvarId_x21(x_1122); +x_1127 = lean_array_push(x_12, x_1126); +lean_ctor_set(x_1, 5, x_1127); +lean_ctor_set(x_1, 3, x_1125); +lean_inc(x_1122); +x_1128 = l_Lean_mkApp(x_2, x_1122); +x_1129 = lean_expr_instantiate1(x_97, x_1122); +lean_dec(x_1122); +lean_dec(x_97); +x_2 = x_1128; +x_3 = x_1129; +x_5 = x_1123; +goto _start; +} +else +{ +lean_object* x_1131; uint8_t x_1132; lean_object* x_1133; lean_object* x_1134; lean_object* x_1135; lean_object* x_1136; lean_object* x_1137; lean_object* x_1138; lean_object* x_1139; lean_object* x_1140; lean_object* x_1141; lean_object* x_1142; lean_object* x_1143; +lean_dec(x_1); +x_1131 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1131, 0, x_96); +x_1132 = 1; +x_1133 = lean_box(0); +lean_inc(x_4); +x_1134 = l_Lean_Elab_Term_mkFreshExprMVar(x_1131, x_1132, x_1133, x_4, x_19); +x_1135 = lean_ctor_get(x_1134, 0); +lean_inc(x_1135); +x_1136 = lean_ctor_get(x_1134, 1); +lean_inc(x_1136); +lean_dec(x_1134); +x_1137 = lean_unsigned_to_nat(1u); +x_1138 = lean_nat_add(x_10, x_1137); +lean_dec(x_10); +x_1139 = l_Lean_Expr_mvarId_x21(x_1135); +x_1140 = lean_array_push(x_12, x_1139); +x_1141 = lean_alloc_ctor(0, 7, 2); +lean_ctor_set(x_1141, 0, x_6); +lean_ctor_set(x_1141, 1, x_7); +lean_ctor_set(x_1141, 2, x_8); +lean_ctor_set(x_1141, 3, x_1138); +lean_ctor_set(x_1141, 4, x_11); +lean_ctor_set(x_1141, 5, x_1140); +lean_ctor_set(x_1141, 6, x_13); +lean_ctor_set_uint8(x_1141, sizeof(void*)*7, x_9); +lean_ctor_set_uint8(x_1141, sizeof(void*)*7 + 1, x_15); +lean_inc(x_1135); +x_1142 = l_Lean_mkApp(x_2, x_1135); +x_1143 = lean_expr_instantiate1(x_97, x_1135); +lean_dec(x_1135); +lean_dec(x_97); +x_1 = x_1141; +x_2 = x_1142; +x_3 = x_1143; +x_5 = x_1136; goto _start; } } @@ -7517,8 +7742,8 @@ goto _start; } default: { -uint8_t x_1116; lean_object* x_1117; lean_object* x_1118; uint8_t x_1119; lean_object* x_1120; uint8_t x_1121; -x_1116 = 1; +uint8_t x_1145; lean_object* x_1146; lean_object* x_1147; uint8_t x_1148; lean_object* x_1149; uint8_t x_1150; +x_1145 = 1; lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); @@ -7526,989 +7751,364 @@ lean_inc(x_10); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_1117 = lean_alloc_ctor(0, 7, 2); -lean_ctor_set(x_1117, 0, x_6); -lean_ctor_set(x_1117, 1, x_7); -lean_ctor_set(x_1117, 2, x_8); -lean_ctor_set(x_1117, 3, x_10); -lean_ctor_set(x_1117, 4, x_11); -lean_ctor_set(x_1117, 5, x_12); -lean_ctor_set(x_1117, 6, x_13); -lean_ctor_set_uint8(x_1117, sizeof(void*)*7, x_9); -lean_ctor_set_uint8(x_1117, sizeof(void*)*7 + 1, x_1116); -x_1118 = lean_array_get_size(x_7); -x_1119 = lean_nat_dec_lt(x_10, x_1118); -lean_dec(x_1118); +x_1146 = lean_alloc_ctor(0, 7, 2); +lean_ctor_set(x_1146, 0, x_6); +lean_ctor_set(x_1146, 1, x_7); +lean_ctor_set(x_1146, 2, x_8); +lean_ctor_set(x_1146, 3, x_10); +lean_ctor_set(x_1146, 4, x_11); +lean_ctor_set(x_1146, 5, x_12); +lean_ctor_set(x_1146, 6, x_13); +lean_ctor_set_uint8(x_1146, sizeof(void*)*7, x_9); +lean_ctor_set_uint8(x_1146, sizeof(void*)*7 + 1, x_1145); +x_1147 = lean_array_get_size(x_7); +x_1148 = lean_nat_dec_lt(x_10, x_1147); +lean_dec(x_1147); lean_inc(x_4); lean_inc(x_1); -x_1120 = l___private_Lean_Elab_App_8__propagateExpectedType(x_1, x_16, x_4, x_17); -x_1121 = !lean_is_exclusive(x_1); -if (x_1121 == 0) -{ -lean_object* x_1122; lean_object* x_1123; lean_object* x_1124; lean_object* x_1125; lean_object* x_1126; lean_object* x_1127; lean_object* x_1128; -x_1122 = lean_ctor_get(x_1, 6); -lean_dec(x_1122); -x_1123 = lean_ctor_get(x_1, 5); -lean_dec(x_1123); -x_1124 = lean_ctor_get(x_1, 4); -lean_dec(x_1124); -x_1125 = lean_ctor_get(x_1, 3); -lean_dec(x_1125); -x_1126 = lean_ctor_get(x_1, 2); -lean_dec(x_1126); -x_1127 = lean_ctor_get(x_1, 1); -lean_dec(x_1127); -x_1128 = lean_ctor_get(x_1, 0); -lean_dec(x_1128); -if (lean_obj_tag(x_1120) == 0) -{ -lean_object* x_1129; lean_object* x_1130; -x_1129 = lean_ctor_get(x_1120, 1); -lean_inc(x_1129); -lean_dec(x_1120); -if (x_1119 == 0) -{ -lean_free_object(x_1); -lean_dec(x_13); -lean_dec(x_10); -lean_dec(x_7); -if (x_9 == 0) -{ -lean_object* x_1184; -x_1184 = l_Lean_Expr_getOptParamDefault_x3f(x_91); -if (lean_obj_tag(x_1184) == 0) -{ -lean_object* x_1185; -x_1185 = l_Lean_Expr_getAutoParamTactic_x3f(x_91); -if (lean_obj_tag(x_1185) == 0) -{ -lean_object* x_1186; -lean_dec(x_1117); -lean_dec(x_92); -lean_dec(x_91); -x_1186 = lean_box(0); -x_1130 = x_1186; -goto block_1183; -} -else -{ -lean_object* x_1187; -lean_dec(x_90); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_8); -lean_dec(x_3); -x_1187 = lean_ctor_get(x_1185, 0); -lean_inc(x_1187); -lean_dec(x_1185); -if (lean_obj_tag(x_1187) == 4) -{ -lean_object* x_1188; lean_object* x_1189; lean_object* x_1190; lean_object* x_1191; lean_object* x_1192; -x_1188 = lean_ctor_get(x_1187, 0); -lean_inc(x_1188); -lean_dec(x_1187); -x_1189 = l_Lean_Elab_Term_getEnv___rarg(x_1129); -x_1190 = lean_ctor_get(x_1189, 0); -lean_inc(x_1190); -x_1191 = lean_ctor_get(x_1189, 1); -lean_inc(x_1191); -lean_dec(x_1189); -x_1192 = l___private_Lean_Elab_Util_1__evalSyntaxConstantUnsafe(x_1190, x_1188); -if (lean_obj_tag(x_1192) == 0) -{ -lean_object* x_1193; lean_object* x_1194; lean_object* x_1195; lean_object* x_1196; -lean_dec(x_1117); -lean_dec(x_92); -lean_dec(x_91); -lean_dec(x_2); -x_1193 = lean_ctor_get(x_1192, 0); -lean_inc(x_1193); -lean_dec(x_1192); -x_1194 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1194, 0, x_1193); -x_1195 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1195, 0, x_1194); -x_1196 = l_Lean_Elab_Term_throwError___rarg(x_6, x_1195, x_4, x_1191); -lean_dec(x_6); -return x_1196; -} -else -{ -lean_object* x_1197; lean_object* x_1198; lean_object* x_1199; lean_object* x_1200; lean_object* x_1201; lean_object* x_1202; lean_object* x_1203; lean_object* x_1204; lean_object* x_1205; lean_object* x_1206; lean_object* x_1207; lean_object* x_1208; lean_object* x_1209; lean_object* x_1210; lean_object* x_1211; lean_object* x_1212; lean_object* x_1213; lean_object* x_1214; lean_object* x_1215; lean_object* x_1216; lean_object* x_1217; lean_object* x_1218; lean_object* x_1219; lean_object* x_1220; lean_object* x_1221; -x_1197 = lean_ctor_get(x_1192, 0); -lean_inc(x_1197); -lean_dec(x_1192); -x_1198 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_1191); -x_1199 = lean_ctor_get(x_1198, 1); -lean_inc(x_1199); -lean_dec(x_1198); -x_1200 = l_Lean_Elab_Term_getMainModule___rarg(x_1199); -x_1201 = lean_ctor_get(x_1200, 1); -lean_inc(x_1201); -lean_dec(x_1200); -x_1202 = l_Lean_Syntax_getArgs(x_1197); -lean_dec(x_1197); -x_1203 = l_Array_empty___closed__1; -x_1204 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1202, x_1202, x_94, x_1203); -lean_dec(x_1202); -x_1205 = l_Lean_nullKind___closed__2; -x_1206 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1206, 0, x_1205); -lean_ctor_set(x_1206, 1, x_1204); -x_1207 = lean_array_push(x_1203, x_1206); -x_1208 = l_Lean_PrettyPrinter_Parenthesizer_tacticParser_parenthesizer___lambda__1___closed__4; -x_1209 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1209, 0, x_1208); -lean_ctor_set(x_1209, 1, x_1207); -x_1210 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__15; -x_1211 = lean_array_push(x_1210, x_1209); -x_1212 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__16; -x_1213 = lean_array_push(x_1211, x_1212); -x_1214 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; -x_1215 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1215, 0, x_1214); -lean_ctor_set(x_1215, 1, x_1213); -x_1216 = l_Lean_Syntax_getHeadInfo___main(x_6); -x_1217 = l_Lean_Expr_getAppNumArgsAux___main(x_91, x_94); -x_1218 = lean_nat_sub(x_1217, x_94); -lean_dec(x_1217); -x_1219 = lean_unsigned_to_nat(1u); -x_1220 = lean_nat_sub(x_1218, x_1219); -lean_dec(x_1218); -x_1221 = l_Lean_Expr_getRevArg_x21___main(x_91, x_1220); -lean_dec(x_91); -if (lean_obj_tag(x_1216) == 0) -{ -lean_object* x_1222; lean_object* x_1223; -x_1222 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1222, 0, x_1215); -lean_inc(x_4); -lean_inc(x_2); -x_1223 = l___private_Lean_Elab_App_2__elabArg(x_6, x_2, x_1222, x_1221, x_4, x_1201); -if (lean_obj_tag(x_1223) == 0) -{ -lean_object* x_1224; lean_object* x_1225; lean_object* x_1226; lean_object* x_1227; -x_1224 = lean_ctor_get(x_1223, 0); -lean_inc(x_1224); -x_1225 = lean_ctor_get(x_1223, 1); -lean_inc(x_1225); -lean_dec(x_1223); -lean_inc(x_1224); -x_1226 = l_Lean_mkApp(x_2, x_1224); -x_1227 = lean_expr_instantiate1(x_92, x_1224); -lean_dec(x_1224); -lean_dec(x_92); -x_1 = x_1117; -x_2 = x_1226; -x_3 = x_1227; -x_5 = x_1225; -goto _start; -} -else -{ -uint8_t x_1229; -lean_dec(x_1117); -lean_dec(x_92); -lean_dec(x_4); -lean_dec(x_2); -x_1229 = !lean_is_exclusive(x_1223); -if (x_1229 == 0) -{ -return x_1223; -} -else -{ -lean_object* x_1230; lean_object* x_1231; lean_object* x_1232; -x_1230 = lean_ctor_get(x_1223, 0); -x_1231 = lean_ctor_get(x_1223, 1); -lean_inc(x_1231); -lean_inc(x_1230); -lean_dec(x_1223); -x_1232 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1232, 0, x_1230); -lean_ctor_set(x_1232, 1, x_1231); -return x_1232; -} -} -} -else -{ -lean_object* x_1233; lean_object* x_1234; lean_object* x_1235; lean_object* x_1236; -x_1233 = lean_ctor_get(x_1216, 0); -lean_inc(x_1233); -lean_dec(x_1216); -x_1234 = l_Lean_Syntax_replaceInfo___main(x_1233, x_1215); -x_1235 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1235, 0, x_1234); -lean_inc(x_4); -lean_inc(x_2); -x_1236 = l___private_Lean_Elab_App_2__elabArg(x_6, x_2, x_1235, x_1221, x_4, x_1201); -if (lean_obj_tag(x_1236) == 0) -{ -lean_object* x_1237; lean_object* x_1238; lean_object* x_1239; lean_object* x_1240; -x_1237 = lean_ctor_get(x_1236, 0); -lean_inc(x_1237); -x_1238 = lean_ctor_get(x_1236, 1); -lean_inc(x_1238); -lean_dec(x_1236); -lean_inc(x_1237); -x_1239 = l_Lean_mkApp(x_2, x_1237); -x_1240 = lean_expr_instantiate1(x_92, x_1237); -lean_dec(x_1237); -lean_dec(x_92); -x_1 = x_1117; -x_2 = x_1239; -x_3 = x_1240; -x_5 = x_1238; -goto _start; -} -else -{ -uint8_t x_1242; -lean_dec(x_1117); -lean_dec(x_92); -lean_dec(x_4); -lean_dec(x_2); -x_1242 = !lean_is_exclusive(x_1236); -if (x_1242 == 0) -{ -return x_1236; -} -else -{ -lean_object* x_1243; lean_object* x_1244; lean_object* x_1245; -x_1243 = lean_ctor_get(x_1236, 0); -x_1244 = lean_ctor_get(x_1236, 1); -lean_inc(x_1244); -lean_inc(x_1243); -lean_dec(x_1236); -x_1245 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1245, 0, x_1243); -lean_ctor_set(x_1245, 1, x_1244); -return x_1245; -} -} -} -} -} -else -{ -lean_object* x_1246; lean_object* x_1247; -lean_dec(x_1187); -lean_dec(x_1117); -lean_dec(x_92); -lean_dec(x_91); -lean_dec(x_2); -x_1246 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__12; -x_1247 = l_Lean_Elab_Term_throwError___rarg(x_6, x_1246, x_4, x_1129); -lean_dec(x_6); -return x_1247; -} -} -} -else -{ -lean_object* x_1248; lean_object* x_1249; lean_object* x_1250; -lean_dec(x_91); -lean_dec(x_90); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_3); -x_1248 = lean_ctor_get(x_1184, 0); -lean_inc(x_1248); -lean_dec(x_1184); -lean_inc(x_1248); -x_1249 = l_Lean_mkApp(x_2, x_1248); -x_1250 = lean_expr_instantiate1(x_92, x_1248); -lean_dec(x_1248); -lean_dec(x_92); -x_1 = x_1117; -x_2 = x_1249; -x_3 = x_1250; -x_5 = x_1129; -goto _start; -} -} -else -{ -lean_object* x_1252; -lean_dec(x_1117); -lean_dec(x_92); -lean_dec(x_91); -x_1252 = lean_box(0); -x_1130 = x_1252; -goto block_1183; -} -} -else -{ -lean_object* x_1253; lean_object* x_1254; -lean_dec(x_1117); -lean_dec(x_90); -lean_dec(x_3); -x_1253 = lean_array_fget(x_7, x_10); -lean_inc(x_4); -lean_inc(x_2); -lean_inc(x_6); -x_1254 = l___private_Lean_Elab_App_2__elabArg(x_6, x_2, x_1253, x_91, x_4, x_1129); -if (lean_obj_tag(x_1254) == 0) -{ -lean_object* x_1255; lean_object* x_1256; lean_object* x_1257; lean_object* x_1258; lean_object* x_1259; lean_object* x_1260; -x_1255 = lean_ctor_get(x_1254, 0); -lean_inc(x_1255); -x_1256 = lean_ctor_get(x_1254, 1); -lean_inc(x_1256); -lean_dec(x_1254); -x_1257 = lean_unsigned_to_nat(1u); -x_1258 = lean_nat_add(x_10, x_1257); -lean_dec(x_10); -lean_ctor_set(x_1, 3, x_1258); -lean_ctor_set_uint8(x_1, sizeof(void*)*7 + 1, x_1116); -lean_inc(x_1255); -x_1259 = l_Lean_mkApp(x_2, x_1255); -x_1260 = lean_expr_instantiate1(x_92, x_1255); -lean_dec(x_1255); -lean_dec(x_92); -x_2 = x_1259; -x_3 = x_1260; -x_5 = x_1256; -goto _start; -} -else -{ -uint8_t x_1262; -lean_free_object(x_1); -lean_dec(x_92); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -x_1262 = !lean_is_exclusive(x_1254); -if (x_1262 == 0) -{ -return x_1254; -} -else -{ -lean_object* x_1263; lean_object* x_1264; lean_object* x_1265; -x_1263 = lean_ctor_get(x_1254, 0); -x_1264 = lean_ctor_get(x_1254, 1); -lean_inc(x_1264); -lean_inc(x_1263); -lean_dec(x_1254); -x_1265 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1265, 0, x_1263); -lean_ctor_set(x_1265, 1, x_1264); -return x_1265; -} -} -} -block_1183: -{ -uint8_t x_1131; -lean_dec(x_1130); -x_1131 = l_Array_isEmpty___rarg(x_11); -if (x_1131 == 0) -{ -lean_object* x_1132; lean_object* x_1133; lean_object* x_1134; lean_object* x_1135; lean_object* x_1136; lean_object* x_1137; lean_object* x_1138; lean_object* x_1139; lean_object* x_1140; lean_object* x_1141; lean_object* x_1142; lean_object* x_1143; lean_object* x_1144; lean_object* x_1145; lean_object* x_1146; lean_object* x_1147; -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_3); -lean_dec(x_2); -x_1132 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_1132, 0, x_90); -x_1133 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; -x_1134 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1134, 0, x_1133); -lean_ctor_set(x_1134, 1, x_1132); -x_1135 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; -x_1136 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1136, 0, x_1134); -lean_ctor_set(x_1136, 1, x_1135); -x_1137 = x_11; -x_1138 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(x_94, x_1137); -x_1139 = x_1138; -x_1140 = l_Array_toList___rarg(x_1139); -lean_dec(x_1139); -x_1141 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_1140); -x_1142 = l_Array_HasRepr___rarg___closed__1; -x_1143 = lean_string_append(x_1142, x_1141); -lean_dec(x_1141); -x_1144 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1144, 0, x_1143); -x_1145 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1145, 0, x_1144); -x_1146 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1146, 0, x_1136); -lean_ctor_set(x_1146, 1, x_1145); -x_1147 = l_Lean_Elab_Term_throwError___rarg(x_6, x_1146, x_4, x_1129); -lean_dec(x_6); -return x_1147; -} -else -{ -lean_object* x_1148; lean_object* x_1175; lean_object* x_1176; lean_object* x_1177; lean_object* x_1178; uint8_t x_1179; -lean_dec(x_90); -lean_dec(x_11); -x_1175 = l_Lean_Elab_Term_getOptions(x_4, x_1129); -x_1176 = lean_ctor_get(x_1175, 0); -lean_inc(x_1176); -x_1177 = lean_ctor_get(x_1175, 1); -lean_inc(x_1177); -lean_dec(x_1175); -x_1178 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; -x_1179 = l_Lean_checkTraceOption(x_1176, x_1178); -lean_dec(x_1176); -if (x_1179 == 0) -{ -x_1148 = x_1177; -goto block_1174; -} -else -{ -lean_object* x_1180; lean_object* x_1181; lean_object* x_1182; -lean_inc(x_2); -x_1180 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1180, 0, x_2); -lean_inc(x_4); -x_1181 = l_Lean_Elab_Term_logTrace(x_1178, x_6, x_1180, x_4, x_1177); -x_1182 = lean_ctor_get(x_1181, 1); -lean_inc(x_1182); -lean_dec(x_1181); -x_1148 = x_1182; -goto block_1174; -} -block_1174: -{ -if (lean_obj_tag(x_8) == 0) -{ -lean_object* x_1149; -lean_dec(x_3); -x_1149 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_1148); -lean_dec(x_12); -if (lean_obj_tag(x_1149) == 0) -{ -uint8_t x_1150; -x_1150 = !lean_is_exclusive(x_1149); +x_1149 = l___private_Lean_Elab_App_8__propagateExpectedType(x_1, x_18, x_4, x_19); +x_1150 = !lean_is_exclusive(x_1); if (x_1150 == 0) { -lean_object* x_1151; -x_1151 = lean_ctor_get(x_1149, 0); +lean_object* x_1151; lean_object* x_1152; lean_object* x_1153; lean_object* x_1154; lean_object* x_1155; lean_object* x_1156; lean_object* x_1157; +x_1151 = lean_ctor_get(x_1, 6); lean_dec(x_1151); -lean_ctor_set(x_1149, 0, x_2); -return x_1149; -} -else -{ -lean_object* x_1152; lean_object* x_1153; -x_1152 = lean_ctor_get(x_1149, 1); -lean_inc(x_1152); -lean_dec(x_1149); -x_1153 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1153, 0, x_2); -lean_ctor_set(x_1153, 1, x_1152); -return x_1153; -} -} -else -{ -uint8_t x_1154; -lean_dec(x_2); -x_1154 = !lean_is_exclusive(x_1149); -if (x_1154 == 0) -{ -return x_1149; -} -else -{ -lean_object* x_1155; lean_object* x_1156; lean_object* x_1157; -x_1155 = lean_ctor_get(x_1149, 0); -x_1156 = lean_ctor_get(x_1149, 1); -lean_inc(x_1156); -lean_inc(x_1155); -lean_dec(x_1149); -x_1157 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1157, 0, x_1155); -lean_ctor_set(x_1157, 1, x_1156); -return x_1157; -} -} -} -else +x_1152 = lean_ctor_get(x_1, 5); +lean_dec(x_1152); +x_1153 = lean_ctor_get(x_1, 4); +lean_dec(x_1153); +x_1154 = lean_ctor_get(x_1, 3); +lean_dec(x_1154); +x_1155 = lean_ctor_get(x_1, 2); +lean_dec(x_1155); +x_1156 = lean_ctor_get(x_1, 1); +lean_dec(x_1156); +x_1157 = lean_ctor_get(x_1, 0); +lean_dec(x_1157); +if (lean_obj_tag(x_1149) == 0) { lean_object* x_1158; lean_object* x_1159; -x_1158 = lean_ctor_get(x_8, 0); +x_1158 = lean_ctor_get(x_1149, 1); lean_inc(x_1158); -lean_dec(x_8); -lean_inc(x_4); -x_1159 = l_Lean_Elab_Term_isDefEq(x_6, x_1158, x_3, x_4, x_1148); -if (lean_obj_tag(x_1159) == 0) +lean_dec(x_1149); +if (x_1148 == 0) { -lean_object* x_1160; lean_object* x_1161; -x_1160 = lean_ctor_get(x_1159, 1); -lean_inc(x_1160); -lean_dec(x_1159); -x_1161 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_1160); -lean_dec(x_12); -if (lean_obj_tag(x_1161) == 0) -{ -uint8_t x_1162; -x_1162 = !lean_is_exclusive(x_1161); -if (x_1162 == 0) -{ -lean_object* x_1163; -x_1163 = lean_ctor_get(x_1161, 0); -lean_dec(x_1163); -lean_ctor_set(x_1161, 0, x_2); -return x_1161; -} -else -{ -lean_object* x_1164; lean_object* x_1165; -x_1164 = lean_ctor_get(x_1161, 1); -lean_inc(x_1164); -lean_dec(x_1161); -x_1165 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1165, 0, x_2); -lean_ctor_set(x_1165, 1, x_1164); -return x_1165; -} -} -else -{ -uint8_t x_1166; -lean_dec(x_2); -x_1166 = !lean_is_exclusive(x_1161); -if (x_1166 == 0) -{ -return x_1161; -} -else -{ -lean_object* x_1167; lean_object* x_1168; lean_object* x_1169; -x_1167 = lean_ctor_get(x_1161, 0); -x_1168 = lean_ctor_get(x_1161, 1); -lean_inc(x_1168); -lean_inc(x_1167); -lean_dec(x_1161); -x_1169 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1169, 0, x_1167); -lean_ctor_set(x_1169, 1, x_1168); -return x_1169; -} -} -} -else -{ -uint8_t x_1170; -lean_dec(x_12); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -x_1170 = !lean_is_exclusive(x_1159); -if (x_1170 == 0) -{ -return x_1159; -} -else -{ -lean_object* x_1171; lean_object* x_1172; lean_object* x_1173; -x_1171 = lean_ctor_get(x_1159, 0); -x_1172 = lean_ctor_get(x_1159, 1); -lean_inc(x_1172); -lean_inc(x_1171); -lean_dec(x_1159); -x_1173 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1173, 0, x_1171); -lean_ctor_set(x_1173, 1, x_1172); -return x_1173; -} -} -} -} -} -} -} -else -{ -uint8_t x_1266; lean_free_object(x_1); -lean_dec(x_1117); -lean_dec(x_92); -lean_dec(x_91); -lean_dec(x_90); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_1266 = !lean_is_exclusive(x_1120); -if (x_1266 == 0) -{ -return x_1120; -} -else -{ -lean_object* x_1267; lean_object* x_1268; lean_object* x_1269; -x_1267 = lean_ctor_get(x_1120, 0); -x_1268 = lean_ctor_get(x_1120, 1); -lean_inc(x_1268); -lean_inc(x_1267); -lean_dec(x_1120); -x_1269 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1269, 0, x_1267); -lean_ctor_set(x_1269, 1, x_1268); -return x_1269; -} -} -} -else -{ -lean_dec(x_1); -if (lean_obj_tag(x_1120) == 0) -{ -lean_object* x_1270; lean_object* x_1271; -x_1270 = lean_ctor_get(x_1120, 1); -lean_inc(x_1270); -lean_dec(x_1120); -if (x_1119 == 0) -{ lean_dec(x_13); lean_dec(x_10); lean_dec(x_7); if (x_9 == 0) { -lean_object* x_1323; -x_1323 = l_Lean_Expr_getOptParamDefault_x3f(x_91); -if (lean_obj_tag(x_1323) == 0) +lean_object* x_1216; +x_1216 = l_Lean_Expr_getOptParamDefault_x3f(x_96); +if (lean_obj_tag(x_1216) == 0) { -lean_object* x_1324; -x_1324 = l_Lean_Expr_getAutoParamTactic_x3f(x_91); -if (lean_obj_tag(x_1324) == 0) +lean_object* x_1217; +x_1217 = l_Lean_Expr_getAutoParamTactic_x3f(x_96); +if (lean_obj_tag(x_1217) == 0) { -lean_object* x_1325; -lean_dec(x_1117); -lean_dec(x_92); -lean_dec(x_91); -x_1325 = lean_box(0); -x_1271 = x_1325; -goto block_1322; +lean_object* x_1218; +lean_dec(x_1146); +lean_dec(x_97); +lean_dec(x_96); +lean_dec(x_6); +x_1218 = lean_box(0); +x_1159 = x_1218; +goto block_1215; } else { -lean_object* x_1326; -lean_dec(x_90); +lean_object* x_1219; +lean_dec(x_95); lean_dec(x_12); lean_dec(x_11); lean_dec(x_8); lean_dec(x_3); -x_1326 = lean_ctor_get(x_1324, 0); -lean_inc(x_1326); -lean_dec(x_1324); -if (lean_obj_tag(x_1326) == 4) +x_1219 = lean_ctor_get(x_1217, 0); +lean_inc(x_1219); +lean_dec(x_1217); +if (lean_obj_tag(x_1219) == 4) { -lean_object* x_1327; lean_object* x_1328; lean_object* x_1329; lean_object* x_1330; lean_object* x_1331; -x_1327 = lean_ctor_get(x_1326, 0); -lean_inc(x_1327); -lean_dec(x_1326); -x_1328 = l_Lean_Elab_Term_getEnv___rarg(x_1270); -x_1329 = lean_ctor_get(x_1328, 0); -lean_inc(x_1329); -x_1330 = lean_ctor_get(x_1328, 1); -lean_inc(x_1330); -lean_dec(x_1328); -x_1331 = l___private_Lean_Elab_Util_1__evalSyntaxConstantUnsafe(x_1329, x_1327); -if (lean_obj_tag(x_1331) == 0) +lean_object* x_1220; lean_object* x_1221; lean_object* x_1222; lean_object* x_1223; lean_object* x_1224; +x_1220 = lean_ctor_get(x_1219, 0); +lean_inc(x_1220); +lean_dec(x_1219); +x_1221 = l_Lean_Elab_Term_getEnv___rarg(x_1158); +x_1222 = lean_ctor_get(x_1221, 0); +lean_inc(x_1222); +x_1223 = lean_ctor_get(x_1221, 1); +lean_inc(x_1223); +lean_dec(x_1221); +x_1224 = l___private_Lean_Elab_Util_1__evalSyntaxConstantUnsafe(x_1222, x_1220); +if (lean_obj_tag(x_1224) == 0) { -lean_object* x_1332; lean_object* x_1333; lean_object* x_1334; lean_object* x_1335; -lean_dec(x_1117); -lean_dec(x_92); -lean_dec(x_91); -lean_dec(x_2); -x_1332 = lean_ctor_get(x_1331, 0); -lean_inc(x_1332); -lean_dec(x_1331); -x_1333 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1333, 0, x_1332); -x_1334 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1334, 0, x_1333); -x_1335 = l_Lean_Elab_Term_throwError___rarg(x_6, x_1334, x_4, x_1330); +lean_object* x_1225; lean_object* x_1226; lean_object* x_1227; lean_object* x_1228; +lean_dec(x_1146); +lean_dec(x_97); +lean_dec(x_96); lean_dec(x_6); -return x_1335; +lean_dec(x_2); +x_1225 = lean_ctor_get(x_1224, 0); +lean_inc(x_1225); +lean_dec(x_1224); +x_1226 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1226, 0, x_1225); +x_1227 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1227, 0, x_1226); +x_1228 = l_Lean_Elab_Term_throwError___rarg(x_1227, x_4, x_1223); +return x_1228; } else { -lean_object* x_1336; lean_object* x_1337; lean_object* x_1338; lean_object* x_1339; lean_object* x_1340; lean_object* x_1341; lean_object* x_1342; lean_object* x_1343; lean_object* x_1344; lean_object* x_1345; lean_object* x_1346; lean_object* x_1347; lean_object* x_1348; lean_object* x_1349; lean_object* x_1350; lean_object* x_1351; lean_object* x_1352; lean_object* x_1353; lean_object* x_1354; lean_object* x_1355; lean_object* x_1356; lean_object* x_1357; lean_object* x_1358; lean_object* x_1359; lean_object* x_1360; -x_1336 = lean_ctor_get(x_1331, 0); -lean_inc(x_1336); -lean_dec(x_1331); -x_1337 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_1330); -x_1338 = lean_ctor_get(x_1337, 1); -lean_inc(x_1338); -lean_dec(x_1337); -x_1339 = l_Lean_Elab_Term_getMainModule___rarg(x_1338); -x_1340 = lean_ctor_get(x_1339, 1); -lean_inc(x_1340); -lean_dec(x_1339); -x_1341 = l_Lean_Syntax_getArgs(x_1336); -lean_dec(x_1336); -x_1342 = l_Array_empty___closed__1; -x_1343 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1341, x_1341, x_94, x_1342); -lean_dec(x_1341); -x_1344 = l_Lean_nullKind___closed__2; -x_1345 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1345, 0, x_1344); -lean_ctor_set(x_1345, 1, x_1343); -x_1346 = lean_array_push(x_1342, x_1345); -x_1347 = l_Lean_PrettyPrinter_Parenthesizer_tacticParser_parenthesizer___lambda__1___closed__4; -x_1348 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1348, 0, x_1347); -lean_ctor_set(x_1348, 1, x_1346); -x_1349 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__15; -x_1350 = lean_array_push(x_1349, x_1348); -x_1351 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__16; -x_1352 = lean_array_push(x_1350, x_1351); -x_1353 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; -x_1354 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1354, 0, x_1353); -lean_ctor_set(x_1354, 1, x_1352); -x_1355 = l_Lean_Syntax_getHeadInfo___main(x_6); -x_1356 = l_Lean_Expr_getAppNumArgsAux___main(x_91, x_94); -x_1357 = lean_nat_sub(x_1356, x_94); -lean_dec(x_1356); -x_1358 = lean_unsigned_to_nat(1u); -x_1359 = lean_nat_sub(x_1357, x_1358); -lean_dec(x_1357); -x_1360 = l_Lean_Expr_getRevArg_x21___main(x_91, x_1359); -lean_dec(x_91); -if (lean_obj_tag(x_1355) == 0) +lean_object* x_1229; lean_object* x_1230; lean_object* x_1231; lean_object* x_1232; lean_object* x_1233; lean_object* x_1234; lean_object* x_1235; lean_object* x_1236; lean_object* x_1237; lean_object* x_1238; lean_object* x_1239; lean_object* x_1240; lean_object* x_1241; lean_object* x_1242; lean_object* x_1243; lean_object* x_1244; lean_object* x_1245; lean_object* x_1246; lean_object* x_1247; lean_object* x_1248; lean_object* x_1249; lean_object* x_1250; lean_object* x_1251; lean_object* x_1252; lean_object* x_1253; +x_1229 = lean_ctor_get(x_1224, 0); +lean_inc(x_1229); +lean_dec(x_1224); +x_1230 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_1223); +x_1231 = lean_ctor_get(x_1230, 1); +lean_inc(x_1231); +lean_dec(x_1230); +x_1232 = l_Lean_Elab_Term_getMainModule___rarg(x_1231); +x_1233 = lean_ctor_get(x_1232, 1); +lean_inc(x_1233); +lean_dec(x_1232); +x_1234 = l_Lean_Syntax_getArgs(x_1229); +lean_dec(x_1229); +x_1235 = l_Array_empty___closed__1; +x_1236 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1234, x_1234, x_99, x_1235); +lean_dec(x_1234); +x_1237 = l_Lean_nullKind___closed__2; +x_1238 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1238, 0, x_1237); +lean_ctor_set(x_1238, 1, x_1236); +x_1239 = lean_array_push(x_1235, x_1238); +x_1240 = l_Lean_PrettyPrinter_Parenthesizer_tacticParser_parenthesizer___lambda__1___closed__4; +x_1241 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1241, 0, x_1240); +lean_ctor_set(x_1241, 1, x_1239); +x_1242 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__15; +x_1243 = lean_array_push(x_1242, x_1241); +x_1244 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__16; +x_1245 = lean_array_push(x_1243, x_1244); +x_1246 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; +x_1247 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1247, 0, x_1246); +lean_ctor_set(x_1247, 1, x_1245); +x_1248 = l_Lean_Syntax_getHeadInfo___main(x_6); +lean_dec(x_6); +x_1249 = l_Lean_Expr_getAppNumArgsAux___main(x_96, x_99); +x_1250 = lean_nat_sub(x_1249, x_99); +lean_dec(x_1249); +x_1251 = lean_unsigned_to_nat(1u); +x_1252 = lean_nat_sub(x_1250, x_1251); +lean_dec(x_1250); +x_1253 = l_Lean_Expr_getRevArg_x21___main(x_96, x_1252); +lean_dec(x_96); +if (lean_obj_tag(x_1248) == 0) { -lean_object* x_1361; lean_object* x_1362; -x_1361 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1361, 0, x_1354); +lean_object* x_1254; lean_object* x_1255; +x_1254 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1254, 0, x_1247); lean_inc(x_4); lean_inc(x_2); -x_1362 = l___private_Lean_Elab_App_2__elabArg(x_6, x_2, x_1361, x_1360, x_4, x_1340); -if (lean_obj_tag(x_1362) == 0) +x_1255 = l___private_Lean_Elab_App_2__elabArg(x_2, x_1254, x_1253, x_4, x_1233); +if (lean_obj_tag(x_1255) == 0) { -lean_object* x_1363; lean_object* x_1364; lean_object* x_1365; lean_object* x_1366; -x_1363 = lean_ctor_get(x_1362, 0); -lean_inc(x_1363); -x_1364 = lean_ctor_get(x_1362, 1); -lean_inc(x_1364); -lean_dec(x_1362); -lean_inc(x_1363); -x_1365 = l_Lean_mkApp(x_2, x_1363); -x_1366 = lean_expr_instantiate1(x_92, x_1363); -lean_dec(x_1363); -lean_dec(x_92); -x_1 = x_1117; -x_2 = x_1365; -x_3 = x_1366; -x_5 = x_1364; +lean_object* x_1256; lean_object* x_1257; lean_object* x_1258; lean_object* x_1259; +x_1256 = lean_ctor_get(x_1255, 0); +lean_inc(x_1256); +x_1257 = lean_ctor_get(x_1255, 1); +lean_inc(x_1257); +lean_dec(x_1255); +lean_inc(x_1256); +x_1258 = l_Lean_mkApp(x_2, x_1256); +x_1259 = lean_expr_instantiate1(x_97, x_1256); +lean_dec(x_1256); +lean_dec(x_97); +x_1 = x_1146; +x_2 = x_1258; +x_3 = x_1259; +x_5 = x_1257; goto _start; } else { -lean_object* x_1368; lean_object* x_1369; lean_object* x_1370; lean_object* x_1371; -lean_dec(x_1117); -lean_dec(x_92); +uint8_t x_1261; +lean_dec(x_1146); +lean_dec(x_97); lean_dec(x_4); lean_dec(x_2); -x_1368 = lean_ctor_get(x_1362, 0); -lean_inc(x_1368); -x_1369 = lean_ctor_get(x_1362, 1); -lean_inc(x_1369); -if (lean_is_exclusive(x_1362)) { - lean_ctor_release(x_1362, 0); - lean_ctor_release(x_1362, 1); - x_1370 = x_1362; -} else { - lean_dec_ref(x_1362); - x_1370 = lean_box(0); +x_1261 = !lean_is_exclusive(x_1255); +if (x_1261 == 0) +{ +return x_1255; } -if (lean_is_scalar(x_1370)) { - x_1371 = lean_alloc_ctor(1, 2, 0); -} else { - x_1371 = x_1370; +else +{ +lean_object* x_1262; lean_object* x_1263; lean_object* x_1264; +x_1262 = lean_ctor_get(x_1255, 0); +x_1263 = lean_ctor_get(x_1255, 1); +lean_inc(x_1263); +lean_inc(x_1262); +lean_dec(x_1255); +x_1264 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1264, 0, x_1262); +lean_ctor_set(x_1264, 1, x_1263); +return x_1264; } -lean_ctor_set(x_1371, 0, x_1368); -lean_ctor_set(x_1371, 1, x_1369); -return x_1371; } } else { -lean_object* x_1372; lean_object* x_1373; lean_object* x_1374; lean_object* x_1375; -x_1372 = lean_ctor_get(x_1355, 0); -lean_inc(x_1372); -lean_dec(x_1355); -x_1373 = l_Lean_Syntax_replaceInfo___main(x_1372, x_1354); -x_1374 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1374, 0, x_1373); +lean_object* x_1265; lean_object* x_1266; lean_object* x_1267; lean_object* x_1268; +x_1265 = lean_ctor_get(x_1248, 0); +lean_inc(x_1265); +lean_dec(x_1248); +x_1266 = l_Lean_Syntax_replaceInfo___main(x_1265, x_1247); +x_1267 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1267, 0, x_1266); lean_inc(x_4); lean_inc(x_2); -x_1375 = l___private_Lean_Elab_App_2__elabArg(x_6, x_2, x_1374, x_1360, x_4, x_1340); -if (lean_obj_tag(x_1375) == 0) +x_1268 = l___private_Lean_Elab_App_2__elabArg(x_2, x_1267, x_1253, x_4, x_1233); +if (lean_obj_tag(x_1268) == 0) { -lean_object* x_1376; lean_object* x_1377; lean_object* x_1378; lean_object* x_1379; -x_1376 = lean_ctor_get(x_1375, 0); -lean_inc(x_1376); -x_1377 = lean_ctor_get(x_1375, 1); -lean_inc(x_1377); -lean_dec(x_1375); -lean_inc(x_1376); -x_1378 = l_Lean_mkApp(x_2, x_1376); -x_1379 = lean_expr_instantiate1(x_92, x_1376); -lean_dec(x_1376); -lean_dec(x_92); -x_1 = x_1117; -x_2 = x_1378; -x_3 = x_1379; -x_5 = x_1377; -goto _start; -} -else -{ -lean_object* x_1381; lean_object* x_1382; lean_object* x_1383; lean_object* x_1384; -lean_dec(x_1117); -lean_dec(x_92); -lean_dec(x_4); -lean_dec(x_2); -x_1381 = lean_ctor_get(x_1375, 0); -lean_inc(x_1381); -x_1382 = lean_ctor_get(x_1375, 1); -lean_inc(x_1382); -if (lean_is_exclusive(x_1375)) { - lean_ctor_release(x_1375, 0); - lean_ctor_release(x_1375, 1); - x_1383 = x_1375; -} else { - lean_dec_ref(x_1375); - x_1383 = lean_box(0); -} -if (lean_is_scalar(x_1383)) { - x_1384 = lean_alloc_ctor(1, 2, 0); -} else { - x_1384 = x_1383; -} -lean_ctor_set(x_1384, 0, x_1381); -lean_ctor_set(x_1384, 1, x_1382); -return x_1384; -} -} -} -} -else -{ -lean_object* x_1385; lean_object* x_1386; -lean_dec(x_1326); -lean_dec(x_1117); -lean_dec(x_92); -lean_dec(x_91); -lean_dec(x_2); -x_1385 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__12; -x_1386 = l_Lean_Elab_Term_throwError___rarg(x_6, x_1385, x_4, x_1270); -lean_dec(x_6); -return x_1386; -} -} -} -else -{ -lean_object* x_1387; lean_object* x_1388; lean_object* x_1389; -lean_dec(x_91); -lean_dec(x_90); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_3); -x_1387 = lean_ctor_get(x_1323, 0); -lean_inc(x_1387); -lean_dec(x_1323); -lean_inc(x_1387); -x_1388 = l_Lean_mkApp(x_2, x_1387); -x_1389 = lean_expr_instantiate1(x_92, x_1387); -lean_dec(x_1387); -lean_dec(x_92); -x_1 = x_1117; -x_2 = x_1388; -x_3 = x_1389; +lean_object* x_1269; lean_object* x_1270; lean_object* x_1271; lean_object* x_1272; +x_1269 = lean_ctor_get(x_1268, 0); +lean_inc(x_1269); +x_1270 = lean_ctor_get(x_1268, 1); +lean_inc(x_1270); +lean_dec(x_1268); +lean_inc(x_1269); +x_1271 = l_Lean_mkApp(x_2, x_1269); +x_1272 = lean_expr_instantiate1(x_97, x_1269); +lean_dec(x_1269); +lean_dec(x_97); +x_1 = x_1146; +x_2 = x_1271; +x_3 = x_1272; x_5 = x_1270; goto _start; } +else +{ +uint8_t x_1274; +lean_dec(x_1146); +lean_dec(x_97); +lean_dec(x_4); +lean_dec(x_2); +x_1274 = !lean_is_exclusive(x_1268); +if (x_1274 == 0) +{ +return x_1268; } else { -lean_object* x_1391; -lean_dec(x_1117); -lean_dec(x_92); -lean_dec(x_91); -x_1391 = lean_box(0); -x_1271 = x_1391; -goto block_1322; +lean_object* x_1275; lean_object* x_1276; lean_object* x_1277; +x_1275 = lean_ctor_get(x_1268, 0); +x_1276 = lean_ctor_get(x_1268, 1); +lean_inc(x_1276); +lean_inc(x_1275); +lean_dec(x_1268); +x_1277 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1277, 0, x_1275); +lean_ctor_set(x_1277, 1, x_1276); +return x_1277; +} +} +} } } else { -lean_object* x_1392; lean_object* x_1393; -lean_dec(x_1117); -lean_dec(x_90); +lean_object* x_1278; lean_object* x_1279; +lean_dec(x_1219); +lean_dec(x_1146); +lean_dec(x_97); +lean_dec(x_96); +lean_dec(x_6); +lean_dec(x_2); +x_1278 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__12; +x_1279 = l_Lean_Elab_Term_throwError___rarg(x_1278, x_4, x_1158); +return x_1279; +} +} +} +else +{ +lean_object* x_1280; lean_object* x_1281; lean_object* x_1282; +lean_dec(x_96); +lean_dec(x_95); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_8); +lean_dec(x_6); lean_dec(x_3); -x_1392 = lean_array_fget(x_7, x_10); +x_1280 = lean_ctor_get(x_1216, 0); +lean_inc(x_1280); +lean_dec(x_1216); +lean_inc(x_1280); +x_1281 = l_Lean_mkApp(x_2, x_1280); +x_1282 = lean_expr_instantiate1(x_97, x_1280); +lean_dec(x_1280); +lean_dec(x_97); +x_1 = x_1146; +x_2 = x_1281; +x_3 = x_1282; +x_5 = x_1158; +goto _start; +} +} +else +{ +lean_object* x_1284; +lean_dec(x_1146); +lean_dec(x_97); +lean_dec(x_96); +lean_dec(x_6); +x_1284 = lean_box(0); +x_1159 = x_1284; +goto block_1215; +} +} +else +{ +lean_object* x_1285; lean_object* x_1286; +lean_dec(x_1146); +lean_dec(x_95); +lean_dec(x_3); +x_1285 = lean_array_fget(x_7, x_10); lean_inc(x_4); lean_inc(x_2); -lean_inc(x_6); -x_1393 = l___private_Lean_Elab_App_2__elabArg(x_6, x_2, x_1392, x_91, x_4, x_1270); -if (lean_obj_tag(x_1393) == 0) +x_1286 = l___private_Lean_Elab_App_2__elabArg(x_2, x_1285, x_96, x_4, x_1158); +if (lean_obj_tag(x_1286) == 0) { -lean_object* x_1394; lean_object* x_1395; lean_object* x_1396; lean_object* x_1397; lean_object* x_1398; lean_object* x_1399; lean_object* x_1400; -x_1394 = lean_ctor_get(x_1393, 0); -lean_inc(x_1394); -x_1395 = lean_ctor_get(x_1393, 1); -lean_inc(x_1395); -lean_dec(x_1393); -x_1396 = lean_unsigned_to_nat(1u); -x_1397 = lean_nat_add(x_10, x_1396); +lean_object* x_1287; lean_object* x_1288; lean_object* x_1289; lean_object* x_1290; lean_object* x_1291; lean_object* x_1292; +x_1287 = lean_ctor_get(x_1286, 0); +lean_inc(x_1287); +x_1288 = lean_ctor_get(x_1286, 1); +lean_inc(x_1288); +lean_dec(x_1286); +x_1289 = lean_unsigned_to_nat(1u); +x_1290 = lean_nat_add(x_10, x_1289); lean_dec(x_10); -x_1398 = lean_alloc_ctor(0, 7, 2); -lean_ctor_set(x_1398, 0, x_6); -lean_ctor_set(x_1398, 1, x_7); -lean_ctor_set(x_1398, 2, x_8); -lean_ctor_set(x_1398, 3, x_1397); -lean_ctor_set(x_1398, 4, x_11); -lean_ctor_set(x_1398, 5, x_12); -lean_ctor_set(x_1398, 6, x_13); -lean_ctor_set_uint8(x_1398, sizeof(void*)*7, x_9); -lean_ctor_set_uint8(x_1398, sizeof(void*)*7 + 1, x_1116); -lean_inc(x_1394); -x_1399 = l_Lean_mkApp(x_2, x_1394); -x_1400 = lean_expr_instantiate1(x_92, x_1394); -lean_dec(x_1394); -lean_dec(x_92); -x_1 = x_1398; -x_2 = x_1399; -x_3 = x_1400; -x_5 = x_1395; +lean_ctor_set(x_1, 3, x_1290); +lean_ctor_set_uint8(x_1, sizeof(void*)*7 + 1, x_1145); +lean_inc(x_1287); +x_1291 = l_Lean_mkApp(x_2, x_1287); +x_1292 = lean_expr_instantiate1(x_97, x_1287); +lean_dec(x_1287); +lean_dec(x_97); +x_2 = x_1291; +x_3 = x_1292; +x_5 = x_1288; goto _start; } else { -lean_object* x_1402; lean_object* x_1403; lean_object* x_1404; lean_object* x_1405; -lean_dec(x_92); +uint8_t x_1294; +lean_free_object(x_1); +lean_dec(x_97); +lean_dec(x_4); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -8516,794 +8116,252 @@ lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_4); lean_dec(x_2); -x_1402 = lean_ctor_get(x_1393, 0); -lean_inc(x_1402); -x_1403 = lean_ctor_get(x_1393, 1); -lean_inc(x_1403); -if (lean_is_exclusive(x_1393)) { - lean_ctor_release(x_1393, 0); - lean_ctor_release(x_1393, 1); - x_1404 = x_1393; -} else { - lean_dec_ref(x_1393); - x_1404 = lean_box(0); -} -if (lean_is_scalar(x_1404)) { - x_1405 = lean_alloc_ctor(1, 2, 0); -} else { - x_1405 = x_1404; -} -lean_ctor_set(x_1405, 0, x_1402); -lean_ctor_set(x_1405, 1, x_1403); -return x_1405; -} -} -block_1322: +x_1294 = !lean_is_exclusive(x_1286); +if (x_1294 == 0) { -uint8_t x_1272; -lean_dec(x_1271); -x_1272 = l_Array_isEmpty___rarg(x_11); -if (x_1272 == 0) -{ -lean_object* x_1273; lean_object* x_1274; lean_object* x_1275; lean_object* x_1276; lean_object* x_1277; lean_object* x_1278; lean_object* x_1279; lean_object* x_1280; lean_object* x_1281; lean_object* x_1282; lean_object* x_1283; lean_object* x_1284; lean_object* x_1285; lean_object* x_1286; lean_object* x_1287; lean_object* x_1288; -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_3); -lean_dec(x_2); -x_1273 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_1273, 0, x_90); -x_1274 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; -x_1275 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1275, 0, x_1274); -lean_ctor_set(x_1275, 1, x_1273); -x_1276 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; -x_1277 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1277, 0, x_1275); -lean_ctor_set(x_1277, 1, x_1276); -x_1278 = x_11; -x_1279 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(x_94, x_1278); -x_1280 = x_1279; -x_1281 = l_Array_toList___rarg(x_1280); -lean_dec(x_1280); -x_1282 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_1281); -x_1283 = l_Array_HasRepr___rarg___closed__1; -x_1284 = lean_string_append(x_1283, x_1282); -lean_dec(x_1282); -x_1285 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1285, 0, x_1284); -x_1286 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1286, 0, x_1285); -x_1287 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1287, 0, x_1277); -lean_ctor_set(x_1287, 1, x_1286); -x_1288 = l_Lean_Elab_Term_throwError___rarg(x_6, x_1287, x_4, x_1270); -lean_dec(x_6); -return x_1288; +return x_1286; } else { -lean_object* x_1289; lean_object* x_1314; lean_object* x_1315; lean_object* x_1316; lean_object* x_1317; uint8_t x_1318; -lean_dec(x_90); -lean_dec(x_11); -x_1314 = l_Lean_Elab_Term_getOptions(x_4, x_1270); -x_1315 = lean_ctor_get(x_1314, 0); -lean_inc(x_1315); -x_1316 = lean_ctor_get(x_1314, 1); -lean_inc(x_1316); -lean_dec(x_1314); -x_1317 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; -x_1318 = l_Lean_checkTraceOption(x_1315, x_1317); -lean_dec(x_1315); -if (x_1318 == 0) -{ -x_1289 = x_1316; -goto block_1313; -} -else -{ -lean_object* x_1319; lean_object* x_1320; lean_object* x_1321; -lean_inc(x_2); -x_1319 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1319, 0, x_2); -lean_inc(x_4); -x_1320 = l_Lean_Elab_Term_logTrace(x_1317, x_6, x_1319, x_4, x_1316); -x_1321 = lean_ctor_get(x_1320, 1); -lean_inc(x_1321); -lean_dec(x_1320); -x_1289 = x_1321; -goto block_1313; -} -block_1313: -{ -if (lean_obj_tag(x_8) == 0) -{ -lean_object* x_1290; -lean_dec(x_3); -x_1290 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_1289); -lean_dec(x_12); -if (lean_obj_tag(x_1290) == 0) -{ -lean_object* x_1291; lean_object* x_1292; lean_object* x_1293; -x_1291 = lean_ctor_get(x_1290, 1); -lean_inc(x_1291); -if (lean_is_exclusive(x_1290)) { - lean_ctor_release(x_1290, 0); - lean_ctor_release(x_1290, 1); - x_1292 = x_1290; -} else { - lean_dec_ref(x_1290); - x_1292 = lean_box(0); -} -if (lean_is_scalar(x_1292)) { - x_1293 = lean_alloc_ctor(0, 2, 0); -} else { - x_1293 = x_1292; -} -lean_ctor_set(x_1293, 0, x_2); -lean_ctor_set(x_1293, 1, x_1291); -return x_1293; -} -else -{ -lean_object* x_1294; lean_object* x_1295; lean_object* x_1296; lean_object* x_1297; -lean_dec(x_2); -x_1294 = lean_ctor_get(x_1290, 0); -lean_inc(x_1294); -x_1295 = lean_ctor_get(x_1290, 1); +lean_object* x_1295; lean_object* x_1296; lean_object* x_1297; +x_1295 = lean_ctor_get(x_1286, 0); +x_1296 = lean_ctor_get(x_1286, 1); +lean_inc(x_1296); lean_inc(x_1295); -if (lean_is_exclusive(x_1290)) { - lean_ctor_release(x_1290, 0); - lean_ctor_release(x_1290, 1); - x_1296 = x_1290; -} else { - lean_dec_ref(x_1290); - x_1296 = lean_box(0); -} -if (lean_is_scalar(x_1296)) { - x_1297 = lean_alloc_ctor(1, 2, 0); -} else { - x_1297 = x_1296; -} -lean_ctor_set(x_1297, 0, x_1294); -lean_ctor_set(x_1297, 1, x_1295); +lean_dec(x_1286); +x_1297 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1297, 0, x_1295); +lean_ctor_set(x_1297, 1, x_1296); return x_1297; } } -else +} +block_1215: { -lean_object* x_1298; lean_object* x_1299; -x_1298 = lean_ctor_get(x_8, 0); -lean_inc(x_1298); +uint8_t x_1160; +lean_dec(x_1159); +x_1160 = l_Array_isEmpty___rarg(x_11); +if (x_1160 == 0) +{ +lean_object* x_1161; lean_object* x_1162; lean_object* x_1163; lean_object* x_1164; lean_object* x_1165; lean_object* x_1166; lean_object* x_1167; lean_object* x_1168; lean_object* x_1169; lean_object* x_1170; lean_object* x_1171; lean_object* x_1172; lean_object* x_1173; lean_object* x_1174; lean_object* x_1175; lean_object* x_1176; +lean_dec(x_12); lean_dec(x_8); -lean_inc(x_4); -x_1299 = l_Lean_Elab_Term_isDefEq(x_6, x_1298, x_3, x_4, x_1289); -if (lean_obj_tag(x_1299) == 0) -{ -lean_object* x_1300; lean_object* x_1301; -x_1300 = lean_ctor_get(x_1299, 1); -lean_inc(x_1300); -lean_dec(x_1299); -x_1301 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_94, x_4, x_1300); -lean_dec(x_12); -if (lean_obj_tag(x_1301) == 0) -{ -lean_object* x_1302; lean_object* x_1303; lean_object* x_1304; -x_1302 = lean_ctor_get(x_1301, 1); -lean_inc(x_1302); -if (lean_is_exclusive(x_1301)) { - lean_ctor_release(x_1301, 0); - lean_ctor_release(x_1301, 1); - x_1303 = x_1301; -} else { - lean_dec_ref(x_1301); - x_1303 = lean_box(0); -} -if (lean_is_scalar(x_1303)) { - x_1304 = lean_alloc_ctor(0, 2, 0); -} else { - x_1304 = x_1303; -} -lean_ctor_set(x_1304, 0, x_2); -lean_ctor_set(x_1304, 1, x_1302); -return x_1304; -} -else -{ -lean_object* x_1305; lean_object* x_1306; lean_object* x_1307; lean_object* x_1308; -lean_dec(x_2); -x_1305 = lean_ctor_get(x_1301, 0); -lean_inc(x_1305); -x_1306 = lean_ctor_get(x_1301, 1); -lean_inc(x_1306); -if (lean_is_exclusive(x_1301)) { - lean_ctor_release(x_1301, 0); - lean_ctor_release(x_1301, 1); - x_1307 = x_1301; -} else { - lean_dec_ref(x_1301); - x_1307 = lean_box(0); -} -if (lean_is_scalar(x_1307)) { - x_1308 = lean_alloc_ctor(1, 2, 0); -} else { - x_1308 = x_1307; -} -lean_ctor_set(x_1308, 0, x_1305); -lean_ctor_set(x_1308, 1, x_1306); -return x_1308; -} -} -else -{ -lean_object* x_1309; lean_object* x_1310; lean_object* x_1311; lean_object* x_1312; -lean_dec(x_12); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -x_1309 = lean_ctor_get(x_1299, 0); -lean_inc(x_1309); -x_1310 = lean_ctor_get(x_1299, 1); -lean_inc(x_1310); -if (lean_is_exclusive(x_1299)) { - lean_ctor_release(x_1299, 0); - lean_ctor_release(x_1299, 1); - x_1311 = x_1299; -} else { - lean_dec_ref(x_1299); - x_1311 = lean_box(0); -} -if (lean_is_scalar(x_1311)) { - x_1312 = lean_alloc_ctor(1, 2, 0); -} else { - x_1312 = x_1311; -} -lean_ctor_set(x_1312, 0, x_1309); -lean_ctor_set(x_1312, 1, x_1310); -return x_1312; -} -} -} -} -} -} -else -{ -lean_object* x_1406; lean_object* x_1407; lean_object* x_1408; lean_object* x_1409; -lean_dec(x_1117); -lean_dec(x_92); -lean_dec(x_91); -lean_dec(x_90); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_1406 = lean_ctor_get(x_1120, 0); -lean_inc(x_1406); -x_1407 = lean_ctor_get(x_1120, 1); -lean_inc(x_1407); -if (lean_is_exclusive(x_1120)) { - lean_ctor_release(x_1120, 0); - lean_ctor_release(x_1120, 1); - x_1408 = x_1120; -} else { - lean_dec_ref(x_1120); - x_1408 = lean_box(0); -} -if (lean_is_scalar(x_1408)) { - x_1409 = lean_alloc_ctor(1, 2, 0); -} else { - x_1409 = x_1408; -} -lean_ctor_set(x_1409, 0, x_1406); -lean_ctor_set(x_1409, 1, x_1407); -return x_1409; -} -} -} -} +x_1161 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_1161, 0, x_95); +x_1162 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_1163 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1163, 0, x_1162); +lean_ctor_set(x_1163, 1, x_1161); +x_1164 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_1165 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1165, 0, x_1163); +lean_ctor_set(x_1165, 1, x_1164); +x_1166 = x_11; +x_1167 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(x_99, x_1166); +x_1168 = x_1167; +x_1169 = l_Array_toList___rarg(x_1168); +lean_dec(x_1168); +x_1170 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_1169); +x_1171 = l_Array_HasRepr___rarg___closed__1; +x_1172 = lean_string_append(x_1171, x_1170); +lean_dec(x_1170); +x_1173 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1173, 0, x_1172); +x_1174 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1174, 0, x_1173); +x_1175 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1175, 0, x_1165); +lean_ctor_set(x_1175, 1, x_1174); +x_1176 = l_Lean_Elab_Term_throwError___rarg(x_1175, x_4, x_1158); +return x_1176; } else { -lean_object* x_1410; lean_object* x_1411; lean_object* x_1412; lean_object* x_1413; lean_object* x_1414; lean_object* x_1415; -lean_dec(x_90); -lean_dec(x_3); -x_1410 = lean_ctor_get(x_95, 0); -lean_inc(x_1410); +lean_object* x_1177; lean_object* x_1204; lean_object* x_1205; lean_object* x_1206; lean_object* x_1207; lean_object* x_1208; lean_object* x_1209; lean_object* x_1210; uint8_t x_1211; lean_dec(x_95); -x_1411 = l_Lean_Elab_Term_NamedArg_inhabited; -x_1412 = lean_array_get(x_1411, x_11, x_1410); -x_1413 = l_Array_eraseIdx___rarg(x_11, x_1410); -lean_dec(x_1410); -x_1414 = lean_ctor_get(x_1412, 1); -lean_inc(x_1414); -lean_dec(x_1412); -lean_inc(x_4); -lean_inc(x_2); -lean_inc(x_6); -x_1415 = l___private_Lean_Elab_App_2__elabArg(x_6, x_2, x_1414, x_91, x_4, x_17); -if (lean_obj_tag(x_1415) == 0) -{ -lean_object* x_1416; lean_object* x_1417; uint8_t x_1418; lean_object* x_1419; lean_object* x_1420; lean_object* x_1421; lean_object* x_1422; -x_1416 = lean_ctor_get(x_1415, 0); -lean_inc(x_1416); -x_1417 = lean_ctor_get(x_1415, 1); -lean_inc(x_1417); -lean_dec(x_1415); -x_1418 = 1; -x_1419 = lean_alloc_ctor(0, 7, 2); -lean_ctor_set(x_1419, 0, x_6); -lean_ctor_set(x_1419, 1, x_7); -lean_ctor_set(x_1419, 2, x_8); -lean_ctor_set(x_1419, 3, x_10); -lean_ctor_set(x_1419, 4, x_1413); -lean_ctor_set(x_1419, 5, x_12); -lean_ctor_set(x_1419, 6, x_13); -lean_ctor_set_uint8(x_1419, sizeof(void*)*7, x_9); -lean_ctor_set_uint8(x_1419, sizeof(void*)*7 + 1, x_1418); -lean_inc(x_1416); -x_1420 = l_Lean_mkApp(x_2, x_1416); -x_1421 = lean_expr_instantiate1(x_92, x_1416); -lean_dec(x_1416); -lean_dec(x_92); -lean_inc(x_4); -x_1422 = l___private_Lean_Elab_App_8__propagateExpectedType(x_1, x_16, x_4, x_1417); -if (lean_obj_tag(x_1422) == 0) -{ -lean_object* x_1423; -x_1423 = lean_ctor_get(x_1422, 1); -lean_inc(x_1423); -lean_dec(x_1422); -x_1 = x_1419; -x_2 = x_1420; -x_3 = x_1421; -x_5 = x_1423; -goto _start; -} -else -{ -uint8_t x_1425; -lean_dec(x_1421); -lean_dec(x_1420); -lean_dec(x_1419); -lean_dec(x_4); -x_1425 = !lean_is_exclusive(x_1422); -if (x_1425 == 0) -{ -return x_1422; -} -else -{ -lean_object* x_1426; lean_object* x_1427; lean_object* x_1428; -x_1426 = lean_ctor_get(x_1422, 0); -x_1427 = lean_ctor_get(x_1422, 1); -lean_inc(x_1427); -lean_inc(x_1426); -lean_dec(x_1422); -x_1428 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1428, 0, x_1426); -lean_ctor_set(x_1428, 1, x_1427); -return x_1428; -} -} -} -else -{ -uint8_t x_1429; -lean_dec(x_1413); -lean_dec(x_92); -lean_dec(x_16); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_1429 = !lean_is_exclusive(x_1415); -if (x_1429 == 0) -{ -return x_1415; -} -else -{ -lean_object* x_1430; lean_object* x_1431; lean_object* x_1432; -x_1430 = lean_ctor_get(x_1415, 0); -x_1431 = lean_ctor_get(x_1415, 1); -lean_inc(x_1431); -lean_inc(x_1430); -lean_dec(x_1415); -x_1432 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1432, 0, x_1430); -lean_ctor_set(x_1432, 1, x_1431); -return x_1432; -} -} -} -} -else -{ -lean_object* x_1433; -lean_dec(x_13); -x_1433 = lean_box(0); -x_18 = x_1433; -goto block_89; -} -block_89: -{ -uint8_t x_19; -lean_dec(x_18); -x_19 = l_Array_isEmpty___rarg(x_11); lean_dec(x_11); -if (x_19 == 0) +x_1204 = l_Lean_Elab_Term_getOptions(x_4, x_1158); +x_1205 = lean_ctor_get(x_1204, 0); +lean_inc(x_1205); +x_1206 = lean_ctor_get(x_1204, 1); +lean_inc(x_1206); +lean_dec(x_1204); +x_1207 = l_Lean_Elab_Term_getCurrRef(x_4, x_1206); +x_1208 = lean_ctor_get(x_1207, 0); +lean_inc(x_1208); +x_1209 = lean_ctor_get(x_1207, 1); +lean_inc(x_1209); +lean_dec(x_1207); +x_1210 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_1211 = l_Lean_checkTraceOption(x_1205, x_1210); +lean_dec(x_1205); +if (x_1211 == 0) { -lean_object* x_20; -lean_dec(x_12); -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_3); -lean_inc(x_4); -x_20 = l___private_Lean_Elab_App_4__tryCoeFun(x_6, x_16, x_2, x_4, x_17); -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_20, 0); -lean_inc(x_21); -x_22 = lean_ctor_get(x_20, 1); -lean_inc(x_22); -lean_dec(x_20); -lean_inc(x_4); -lean_inc(x_21); -x_23 = l_Lean_Elab_Term_inferType(x_6, x_21, x_4, x_22); -lean_dec(x_6); -if (lean_obj_tag(x_23) == 0) -{ -lean_object* x_24; lean_object* x_25; -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_2 = x_21; -x_3 = x_24; -x_5 = x_25; -goto _start; +lean_dec(x_1208); +x_1177 = x_1209; +goto block_1203; } else { -uint8_t x_27; -lean_dec(x_21); -lean_dec(x_4); -lean_dec(x_1); -x_27 = !lean_is_exclusive(x_23); -if (x_27 == 0) -{ -return x_23; -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_23, 0); -x_29 = lean_ctor_get(x_23, 1); -lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_23); -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; -} -} -} -else -{ -uint8_t x_31; -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_1); -x_31 = !lean_is_exclusive(x_20); -if (x_31 == 0) -{ -return x_20; -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_20, 0); -x_33 = lean_ctor_get(x_20, 1); -lean_inc(x_33); -lean_inc(x_32); -lean_dec(x_20); -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; -} -} -} -else -{ -lean_object* x_35; uint8_t x_36; -x_35 = lean_array_get_size(x_7); -lean_dec(x_7); -x_36 = lean_nat_dec_eq(x_10, x_35); -lean_dec(x_35); -lean_dec(x_10); -if (x_36 == 0) -{ -lean_object* x_37; -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_3); -lean_inc(x_4); -x_37 = l___private_Lean_Elab_App_4__tryCoeFun(x_6, x_16, x_2, x_4, x_17); -if (lean_obj_tag(x_37) == 0) -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; -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_4); -lean_inc(x_38); -x_40 = l_Lean_Elab_Term_inferType(x_6, x_38, x_4, x_39); -lean_dec(x_6); -if (lean_obj_tag(x_40) == 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_2 = x_38; -x_3 = x_41; -x_5 = x_42; -goto _start; -} -else -{ -uint8_t x_44; -lean_dec(x_38); -lean_dec(x_4); -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; -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_1); -x_48 = !lean_is_exclusive(x_37); -if (x_48 == 0) -{ -return x_37; -} -else -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_37, 0); -x_50 = lean_ctor_get(x_37, 1); -lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_37); -x_51 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_51, 0, x_49); -lean_ctor_set(x_51, 1, x_50); -return x_51; -} -} -} -else -{ -lean_object* x_52; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; -lean_dec(x_16); -lean_dec(x_1); -x_81 = l_Lean_Elab_Term_getOptions(x_4, x_17); -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 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; -x_85 = l_Lean_checkTraceOption(x_82, x_84); -lean_dec(x_82); -if (x_85 == 0) -{ -x_52 = x_83; -goto block_80; -} -else -{ -lean_object* x_86; lean_object* x_87; lean_object* x_88; +lean_object* x_1212; lean_object* x_1213; lean_object* x_1214; lean_inc(x_2); -x_86 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_86, 0, x_2); +x_1212 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1212, 0, x_2); lean_inc(x_4); -x_87 = l_Lean_Elab_Term_logTrace(x_84, x_6, x_86, x_4, x_83); -x_88 = lean_ctor_get(x_87, 1); -lean_inc(x_88); -lean_dec(x_87); -x_52 = x_88; -goto block_80; +x_1213 = l_Lean_Elab_Term_logTrace(x_1210, x_1208, x_1212, x_4, x_1209); +lean_dec(x_1208); +x_1214 = lean_ctor_get(x_1213, 1); +lean_inc(x_1214); +lean_dec(x_1213); +x_1177 = x_1214; +goto block_1203; } -block_80: +block_1203: { if (lean_obj_tag(x_8) == 0) { -lean_object* x_53; lean_object* x_54; +lean_object* x_1178; lean_dec(x_3); -x_53 = lean_unsigned_to_nat(0u); -x_54 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_53, x_4, x_52); +x_1178 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_12, x_99, x_4, x_1177); lean_dec(x_12); -if (lean_obj_tag(x_54) == 0) +if (lean_obj_tag(x_1178) == 0) { -uint8_t x_55; -x_55 = !lean_is_exclusive(x_54); -if (x_55 == 0) +uint8_t x_1179; +x_1179 = !lean_is_exclusive(x_1178); +if (x_1179 == 0) { -lean_object* x_56; -x_56 = lean_ctor_get(x_54, 0); -lean_dec(x_56); -lean_ctor_set(x_54, 0, x_2); -return x_54; +lean_object* x_1180; +x_1180 = lean_ctor_get(x_1178, 0); +lean_dec(x_1180); +lean_ctor_set(x_1178, 0, x_2); +return x_1178; } else { -lean_object* x_57; lean_object* x_58; -x_57 = lean_ctor_get(x_54, 1); -lean_inc(x_57); -lean_dec(x_54); -x_58 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_58, 0, x_2); -lean_ctor_set(x_58, 1, x_57); -return x_58; +lean_object* x_1181; lean_object* x_1182; +x_1181 = lean_ctor_get(x_1178, 1); +lean_inc(x_1181); +lean_dec(x_1178); +x_1182 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1182, 0, x_2); +lean_ctor_set(x_1182, 1, x_1181); +return x_1182; } } else { -uint8_t x_59; +uint8_t x_1183; lean_dec(x_2); -x_59 = !lean_is_exclusive(x_54); -if (x_59 == 0) +x_1183 = !lean_is_exclusive(x_1178); +if (x_1183 == 0) { -return x_54; +return x_1178; } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_54, 0); -x_61 = lean_ctor_get(x_54, 1); -lean_inc(x_61); -lean_inc(x_60); -lean_dec(x_54); -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; +lean_object* x_1184; lean_object* x_1185; lean_object* x_1186; +x_1184 = lean_ctor_get(x_1178, 0); +x_1185 = lean_ctor_get(x_1178, 1); +lean_inc(x_1185); +lean_inc(x_1184); +lean_dec(x_1178); +x_1186 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1186, 0, x_1184); +lean_ctor_set(x_1186, 1, x_1185); +return x_1186; } } } else { -lean_object* x_63; lean_object* x_64; -x_63 = lean_ctor_get(x_8, 0); -lean_inc(x_63); +lean_object* x_1187; lean_object* x_1188; +x_1187 = lean_ctor_get(x_8, 0); +lean_inc(x_1187); lean_dec(x_8); lean_inc(x_4); -x_64 = l_Lean_Elab_Term_isDefEq(x_6, x_63, x_3, x_4, x_52); -if (lean_obj_tag(x_64) == 0) +x_1188 = l_Lean_Elab_Term_isDefEq(x_1187, x_3, x_4, x_1177); +if (lean_obj_tag(x_1188) == 0) { -lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_65 = lean_ctor_get(x_64, 1); -lean_inc(x_65); -lean_dec(x_64); -x_66 = lean_unsigned_to_nat(0u); -x_67 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_6, x_12, x_66, x_4, x_65); +lean_object* x_1189; lean_object* x_1190; +x_1189 = lean_ctor_get(x_1188, 1); +lean_inc(x_1189); +lean_dec(x_1188); +x_1190 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_12, x_99, x_4, x_1189); lean_dec(x_12); -if (lean_obj_tag(x_67) == 0) +if (lean_obj_tag(x_1190) == 0) { -uint8_t x_68; -x_68 = !lean_is_exclusive(x_67); -if (x_68 == 0) +uint8_t x_1191; +x_1191 = !lean_is_exclusive(x_1190); +if (x_1191 == 0) { -lean_object* x_69; -x_69 = lean_ctor_get(x_67, 0); -lean_dec(x_69); -lean_ctor_set(x_67, 0, x_2); -return x_67; +lean_object* x_1192; +x_1192 = lean_ctor_get(x_1190, 0); +lean_dec(x_1192); +lean_ctor_set(x_1190, 0, x_2); +return x_1190; } else { -lean_object* x_70; lean_object* x_71; -x_70 = lean_ctor_get(x_67, 1); -lean_inc(x_70); -lean_dec(x_67); -x_71 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_71, 0, x_2); -lean_ctor_set(x_71, 1, x_70); -return x_71; +lean_object* x_1193; lean_object* x_1194; +x_1193 = lean_ctor_get(x_1190, 1); +lean_inc(x_1193); +lean_dec(x_1190); +x_1194 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1194, 0, x_2); +lean_ctor_set(x_1194, 1, x_1193); +return x_1194; } } else { -uint8_t x_72; +uint8_t x_1195; lean_dec(x_2); -x_72 = !lean_is_exclusive(x_67); -if (x_72 == 0) +x_1195 = !lean_is_exclusive(x_1190); +if (x_1195 == 0) { -return x_67; +return x_1190; } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_67, 0); -x_74 = lean_ctor_get(x_67, 1); -lean_inc(x_74); -lean_inc(x_73); -lean_dec(x_67); -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; +lean_object* x_1196; lean_object* x_1197; lean_object* x_1198; +x_1196 = lean_ctor_get(x_1190, 0); +x_1197 = lean_ctor_get(x_1190, 1); +lean_inc(x_1197); +lean_inc(x_1196); +lean_dec(x_1190); +x_1198 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1198, 0, x_1196); +lean_ctor_set(x_1198, 1, x_1197); +return x_1198; } } } else { -uint8_t x_76; -lean_dec(x_12); -lean_dec(x_6); +uint8_t x_1199; lean_dec(x_4); +lean_dec(x_12); lean_dec(x_2); -x_76 = !lean_is_exclusive(x_64); -if (x_76 == 0) +x_1199 = !lean_is_exclusive(x_1188); +if (x_1199 == 0) { -return x_64; +return x_1188; } else { -lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_77 = lean_ctor_get(x_64, 0); -x_78 = lean_ctor_get(x_64, 1); -lean_inc(x_78); -lean_inc(x_77); -lean_dec(x_64); -x_79 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_79, 0, x_77); -lean_ctor_set(x_79, 1, x_78); -return x_79; -} +lean_object* x_1200; lean_object* x_1201; lean_object* x_1202; +x_1200 = lean_ctor_get(x_1188, 0); +x_1201 = lean_ctor_get(x_1188, 1); +lean_inc(x_1201); +lean_inc(x_1200); +lean_dec(x_1188); +x_1202 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1202, 0, x_1200); +lean_ctor_set(x_1202, 1, x_1201); +return x_1202; } } } @@ -9313,7 +8371,13 @@ return x_79; } else { -uint8_t x_1434; +uint8_t x_1298; +lean_free_object(x_1); +lean_dec(x_1146); +lean_dec(x_97); +lean_dec(x_96); +lean_dec(x_95); +lean_dec(x_4); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -9321,27 +8385,4964 @@ lean_dec(x_10); 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_1434 = !lean_is_exclusive(x_15); -if (x_1434 == 0) +x_1298 = !lean_is_exclusive(x_1149); +if (x_1298 == 0) { -return x_15; +return x_1149; } else { -lean_object* x_1435; lean_object* x_1436; lean_object* x_1437; -x_1435 = lean_ctor_get(x_15, 0); -x_1436 = lean_ctor_get(x_15, 1); -lean_inc(x_1436); -lean_inc(x_1435); -lean_dec(x_15); -x_1437 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1437, 0, x_1435); -lean_ctor_set(x_1437, 1, x_1436); -return x_1437; +lean_object* x_1299; lean_object* x_1300; lean_object* x_1301; +x_1299 = lean_ctor_get(x_1149, 0); +x_1300 = lean_ctor_get(x_1149, 1); +lean_inc(x_1300); +lean_inc(x_1299); +lean_dec(x_1149); +x_1301 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1301, 0, x_1299); +lean_ctor_set(x_1301, 1, x_1300); +return x_1301; +} +} +} +else +{ +lean_dec(x_1); +if (lean_obj_tag(x_1149) == 0) +{ +lean_object* x_1302; lean_object* x_1303; +x_1302 = lean_ctor_get(x_1149, 1); +lean_inc(x_1302); +lean_dec(x_1149); +if (x_1148 == 0) +{ +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_7); +if (x_9 == 0) +{ +lean_object* x_1358; +x_1358 = l_Lean_Expr_getOptParamDefault_x3f(x_96); +if (lean_obj_tag(x_1358) == 0) +{ +lean_object* x_1359; +x_1359 = l_Lean_Expr_getAutoParamTactic_x3f(x_96); +if (lean_obj_tag(x_1359) == 0) +{ +lean_object* x_1360; +lean_dec(x_1146); +lean_dec(x_97); +lean_dec(x_96); +lean_dec(x_6); +x_1360 = lean_box(0); +x_1303 = x_1360; +goto block_1357; +} +else +{ +lean_object* x_1361; +lean_dec(x_95); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_8); +lean_dec(x_3); +x_1361 = lean_ctor_get(x_1359, 0); +lean_inc(x_1361); +lean_dec(x_1359); +if (lean_obj_tag(x_1361) == 4) +{ +lean_object* x_1362; lean_object* x_1363; lean_object* x_1364; lean_object* x_1365; lean_object* x_1366; +x_1362 = lean_ctor_get(x_1361, 0); +lean_inc(x_1362); +lean_dec(x_1361); +x_1363 = l_Lean_Elab_Term_getEnv___rarg(x_1302); +x_1364 = lean_ctor_get(x_1363, 0); +lean_inc(x_1364); +x_1365 = lean_ctor_get(x_1363, 1); +lean_inc(x_1365); +lean_dec(x_1363); +x_1366 = l___private_Lean_Elab_Util_1__evalSyntaxConstantUnsafe(x_1364, x_1362); +if (lean_obj_tag(x_1366) == 0) +{ +lean_object* x_1367; lean_object* x_1368; lean_object* x_1369; lean_object* x_1370; +lean_dec(x_1146); +lean_dec(x_97); +lean_dec(x_96); +lean_dec(x_6); +lean_dec(x_2); +x_1367 = lean_ctor_get(x_1366, 0); +lean_inc(x_1367); +lean_dec(x_1366); +x_1368 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1368, 0, x_1367); +x_1369 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1369, 0, x_1368); +x_1370 = l_Lean_Elab_Term_throwError___rarg(x_1369, x_4, x_1365); +return x_1370; +} +else +{ +lean_object* x_1371; lean_object* x_1372; lean_object* x_1373; lean_object* x_1374; lean_object* x_1375; lean_object* x_1376; lean_object* x_1377; lean_object* x_1378; lean_object* x_1379; lean_object* x_1380; lean_object* x_1381; lean_object* x_1382; lean_object* x_1383; lean_object* x_1384; lean_object* x_1385; lean_object* x_1386; lean_object* x_1387; lean_object* x_1388; lean_object* x_1389; lean_object* x_1390; lean_object* x_1391; lean_object* x_1392; lean_object* x_1393; lean_object* x_1394; lean_object* x_1395; +x_1371 = lean_ctor_get(x_1366, 0); +lean_inc(x_1371); +lean_dec(x_1366); +x_1372 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_1365); +x_1373 = lean_ctor_get(x_1372, 1); +lean_inc(x_1373); +lean_dec(x_1372); +x_1374 = l_Lean_Elab_Term_getMainModule___rarg(x_1373); +x_1375 = lean_ctor_get(x_1374, 1); +lean_inc(x_1375); +lean_dec(x_1374); +x_1376 = l_Lean_Syntax_getArgs(x_1371); +lean_dec(x_1371); +x_1377 = l_Array_empty___closed__1; +x_1378 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1376, x_1376, x_99, x_1377); +lean_dec(x_1376); +x_1379 = l_Lean_nullKind___closed__2; +x_1380 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1380, 0, x_1379); +lean_ctor_set(x_1380, 1, x_1378); +x_1381 = lean_array_push(x_1377, x_1380); +x_1382 = l_Lean_PrettyPrinter_Parenthesizer_tacticParser_parenthesizer___lambda__1___closed__4; +x_1383 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1383, 0, x_1382); +lean_ctor_set(x_1383, 1, x_1381); +x_1384 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__15; +x_1385 = lean_array_push(x_1384, x_1383); +x_1386 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__16; +x_1387 = lean_array_push(x_1385, x_1386); +x_1388 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; +x_1389 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1389, 0, x_1388); +lean_ctor_set(x_1389, 1, x_1387); +x_1390 = l_Lean_Syntax_getHeadInfo___main(x_6); +lean_dec(x_6); +x_1391 = l_Lean_Expr_getAppNumArgsAux___main(x_96, x_99); +x_1392 = lean_nat_sub(x_1391, x_99); +lean_dec(x_1391); +x_1393 = lean_unsigned_to_nat(1u); +x_1394 = lean_nat_sub(x_1392, x_1393); +lean_dec(x_1392); +x_1395 = l_Lean_Expr_getRevArg_x21___main(x_96, x_1394); +lean_dec(x_96); +if (lean_obj_tag(x_1390) == 0) +{ +lean_object* x_1396; lean_object* x_1397; +x_1396 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1396, 0, x_1389); +lean_inc(x_4); +lean_inc(x_2); +x_1397 = l___private_Lean_Elab_App_2__elabArg(x_2, x_1396, x_1395, x_4, x_1375); +if (lean_obj_tag(x_1397) == 0) +{ +lean_object* x_1398; lean_object* x_1399; lean_object* x_1400; lean_object* x_1401; +x_1398 = lean_ctor_get(x_1397, 0); +lean_inc(x_1398); +x_1399 = lean_ctor_get(x_1397, 1); +lean_inc(x_1399); +lean_dec(x_1397); +lean_inc(x_1398); +x_1400 = l_Lean_mkApp(x_2, x_1398); +x_1401 = lean_expr_instantiate1(x_97, x_1398); +lean_dec(x_1398); +lean_dec(x_97); +x_1 = x_1146; +x_2 = x_1400; +x_3 = x_1401; +x_5 = x_1399; +goto _start; +} +else +{ +lean_object* x_1403; lean_object* x_1404; lean_object* x_1405; lean_object* x_1406; +lean_dec(x_1146); +lean_dec(x_97); +lean_dec(x_4); +lean_dec(x_2); +x_1403 = lean_ctor_get(x_1397, 0); +lean_inc(x_1403); +x_1404 = lean_ctor_get(x_1397, 1); +lean_inc(x_1404); +if (lean_is_exclusive(x_1397)) { + lean_ctor_release(x_1397, 0); + lean_ctor_release(x_1397, 1); + x_1405 = x_1397; +} else { + lean_dec_ref(x_1397); + x_1405 = lean_box(0); +} +if (lean_is_scalar(x_1405)) { + x_1406 = lean_alloc_ctor(1, 2, 0); +} else { + x_1406 = x_1405; +} +lean_ctor_set(x_1406, 0, x_1403); +lean_ctor_set(x_1406, 1, x_1404); +return x_1406; +} +} +else +{ +lean_object* x_1407; lean_object* x_1408; lean_object* x_1409; lean_object* x_1410; +x_1407 = lean_ctor_get(x_1390, 0); +lean_inc(x_1407); +lean_dec(x_1390); +x_1408 = l_Lean_Syntax_replaceInfo___main(x_1407, x_1389); +x_1409 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1409, 0, x_1408); +lean_inc(x_4); +lean_inc(x_2); +x_1410 = l___private_Lean_Elab_App_2__elabArg(x_2, x_1409, x_1395, x_4, x_1375); +if (lean_obj_tag(x_1410) == 0) +{ +lean_object* x_1411; lean_object* x_1412; lean_object* x_1413; lean_object* x_1414; +x_1411 = lean_ctor_get(x_1410, 0); +lean_inc(x_1411); +x_1412 = lean_ctor_get(x_1410, 1); +lean_inc(x_1412); +lean_dec(x_1410); +lean_inc(x_1411); +x_1413 = l_Lean_mkApp(x_2, x_1411); +x_1414 = lean_expr_instantiate1(x_97, x_1411); +lean_dec(x_1411); +lean_dec(x_97); +x_1 = x_1146; +x_2 = x_1413; +x_3 = x_1414; +x_5 = x_1412; +goto _start; +} +else +{ +lean_object* x_1416; lean_object* x_1417; lean_object* x_1418; lean_object* x_1419; +lean_dec(x_1146); +lean_dec(x_97); +lean_dec(x_4); +lean_dec(x_2); +x_1416 = lean_ctor_get(x_1410, 0); +lean_inc(x_1416); +x_1417 = lean_ctor_get(x_1410, 1); +lean_inc(x_1417); +if (lean_is_exclusive(x_1410)) { + lean_ctor_release(x_1410, 0); + lean_ctor_release(x_1410, 1); + x_1418 = x_1410; +} else { + lean_dec_ref(x_1410); + x_1418 = lean_box(0); +} +if (lean_is_scalar(x_1418)) { + x_1419 = lean_alloc_ctor(1, 2, 0); +} else { + x_1419 = x_1418; +} +lean_ctor_set(x_1419, 0, x_1416); +lean_ctor_set(x_1419, 1, x_1417); +return x_1419; +} +} +} +} +else +{ +lean_object* x_1420; lean_object* x_1421; +lean_dec(x_1361); +lean_dec(x_1146); +lean_dec(x_97); +lean_dec(x_96); +lean_dec(x_6); +lean_dec(x_2); +x_1420 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__12; +x_1421 = l_Lean_Elab_Term_throwError___rarg(x_1420, x_4, x_1302); +return x_1421; +} +} +} +else +{ +lean_object* x_1422; lean_object* x_1423; lean_object* x_1424; +lean_dec(x_96); +lean_dec(x_95); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_3); +x_1422 = lean_ctor_get(x_1358, 0); +lean_inc(x_1422); +lean_dec(x_1358); +lean_inc(x_1422); +x_1423 = l_Lean_mkApp(x_2, x_1422); +x_1424 = lean_expr_instantiate1(x_97, x_1422); +lean_dec(x_1422); +lean_dec(x_97); +x_1 = x_1146; +x_2 = x_1423; +x_3 = x_1424; +x_5 = x_1302; +goto _start; +} +} +else +{ +lean_object* x_1426; +lean_dec(x_1146); +lean_dec(x_97); +lean_dec(x_96); +lean_dec(x_6); +x_1426 = lean_box(0); +x_1303 = x_1426; +goto block_1357; +} +} +else +{ +lean_object* x_1427; lean_object* x_1428; +lean_dec(x_1146); +lean_dec(x_95); +lean_dec(x_3); +x_1427 = lean_array_fget(x_7, x_10); +lean_inc(x_4); +lean_inc(x_2); +x_1428 = l___private_Lean_Elab_App_2__elabArg(x_2, x_1427, x_96, x_4, x_1302); +if (lean_obj_tag(x_1428) == 0) +{ +lean_object* x_1429; lean_object* x_1430; lean_object* x_1431; lean_object* x_1432; lean_object* x_1433; lean_object* x_1434; lean_object* x_1435; +x_1429 = lean_ctor_get(x_1428, 0); +lean_inc(x_1429); +x_1430 = lean_ctor_get(x_1428, 1); +lean_inc(x_1430); +lean_dec(x_1428); +x_1431 = lean_unsigned_to_nat(1u); +x_1432 = lean_nat_add(x_10, x_1431); +lean_dec(x_10); +x_1433 = lean_alloc_ctor(0, 7, 2); +lean_ctor_set(x_1433, 0, x_6); +lean_ctor_set(x_1433, 1, x_7); +lean_ctor_set(x_1433, 2, x_8); +lean_ctor_set(x_1433, 3, x_1432); +lean_ctor_set(x_1433, 4, x_11); +lean_ctor_set(x_1433, 5, x_12); +lean_ctor_set(x_1433, 6, x_13); +lean_ctor_set_uint8(x_1433, sizeof(void*)*7, x_9); +lean_ctor_set_uint8(x_1433, sizeof(void*)*7 + 1, x_1145); +lean_inc(x_1429); +x_1434 = l_Lean_mkApp(x_2, x_1429); +x_1435 = lean_expr_instantiate1(x_97, x_1429); +lean_dec(x_1429); +lean_dec(x_97); +x_1 = x_1433; +x_2 = x_1434; +x_3 = x_1435; +x_5 = x_1430; +goto _start; +} +else +{ +lean_object* x_1437; lean_object* x_1438; lean_object* x_1439; lean_object* x_1440; +lean_dec(x_97); +lean_dec(x_4); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +x_1437 = lean_ctor_get(x_1428, 0); +lean_inc(x_1437); +x_1438 = lean_ctor_get(x_1428, 1); +lean_inc(x_1438); +if (lean_is_exclusive(x_1428)) { + lean_ctor_release(x_1428, 0); + lean_ctor_release(x_1428, 1); + x_1439 = x_1428; +} else { + lean_dec_ref(x_1428); + x_1439 = lean_box(0); +} +if (lean_is_scalar(x_1439)) { + x_1440 = lean_alloc_ctor(1, 2, 0); +} else { + x_1440 = x_1439; +} +lean_ctor_set(x_1440, 0, x_1437); +lean_ctor_set(x_1440, 1, x_1438); +return x_1440; +} +} +block_1357: +{ +uint8_t x_1304; +lean_dec(x_1303); +x_1304 = l_Array_isEmpty___rarg(x_11); +if (x_1304 == 0) +{ +lean_object* x_1305; lean_object* x_1306; lean_object* x_1307; lean_object* x_1308; lean_object* x_1309; lean_object* x_1310; lean_object* x_1311; lean_object* x_1312; lean_object* x_1313; lean_object* x_1314; lean_object* x_1315; lean_object* x_1316; lean_object* x_1317; lean_object* x_1318; lean_object* x_1319; lean_object* x_1320; +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +x_1305 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_1305, 0, x_95); +x_1306 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_1307 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1307, 0, x_1306); +lean_ctor_set(x_1307, 1, x_1305); +x_1308 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_1309 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1309, 0, x_1307); +lean_ctor_set(x_1309, 1, x_1308); +x_1310 = x_11; +x_1311 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(x_99, x_1310); +x_1312 = x_1311; +x_1313 = l_Array_toList___rarg(x_1312); +lean_dec(x_1312); +x_1314 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_1313); +x_1315 = l_Array_HasRepr___rarg___closed__1; +x_1316 = lean_string_append(x_1315, x_1314); +lean_dec(x_1314); +x_1317 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1317, 0, x_1316); +x_1318 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1318, 0, x_1317); +x_1319 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1319, 0, x_1309); +lean_ctor_set(x_1319, 1, x_1318); +x_1320 = l_Lean_Elab_Term_throwError___rarg(x_1319, x_4, x_1302); +return x_1320; +} +else +{ +lean_object* x_1321; lean_object* x_1346; lean_object* x_1347; lean_object* x_1348; lean_object* x_1349; lean_object* x_1350; lean_object* x_1351; lean_object* x_1352; uint8_t x_1353; +lean_dec(x_95); +lean_dec(x_11); +x_1346 = l_Lean_Elab_Term_getOptions(x_4, x_1302); +x_1347 = lean_ctor_get(x_1346, 0); +lean_inc(x_1347); +x_1348 = lean_ctor_get(x_1346, 1); +lean_inc(x_1348); +lean_dec(x_1346); +x_1349 = l_Lean_Elab_Term_getCurrRef(x_4, x_1348); +x_1350 = lean_ctor_get(x_1349, 0); +lean_inc(x_1350); +x_1351 = lean_ctor_get(x_1349, 1); +lean_inc(x_1351); +lean_dec(x_1349); +x_1352 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_1353 = l_Lean_checkTraceOption(x_1347, x_1352); +lean_dec(x_1347); +if (x_1353 == 0) +{ +lean_dec(x_1350); +x_1321 = x_1351; +goto block_1345; +} +else +{ +lean_object* x_1354; lean_object* x_1355; lean_object* x_1356; +lean_inc(x_2); +x_1354 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1354, 0, x_2); +lean_inc(x_4); +x_1355 = l_Lean_Elab_Term_logTrace(x_1352, x_1350, x_1354, x_4, x_1351); +lean_dec(x_1350); +x_1356 = lean_ctor_get(x_1355, 1); +lean_inc(x_1356); +lean_dec(x_1355); +x_1321 = x_1356; +goto block_1345; +} +block_1345: +{ +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_1322; +lean_dec(x_3); +x_1322 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_12, x_99, x_4, x_1321); +lean_dec(x_12); +if (lean_obj_tag(x_1322) == 0) +{ +lean_object* x_1323; lean_object* x_1324; lean_object* x_1325; +x_1323 = lean_ctor_get(x_1322, 1); +lean_inc(x_1323); +if (lean_is_exclusive(x_1322)) { + lean_ctor_release(x_1322, 0); + lean_ctor_release(x_1322, 1); + x_1324 = x_1322; +} else { + lean_dec_ref(x_1322); + x_1324 = lean_box(0); +} +if (lean_is_scalar(x_1324)) { + x_1325 = lean_alloc_ctor(0, 2, 0); +} else { + x_1325 = x_1324; +} +lean_ctor_set(x_1325, 0, x_2); +lean_ctor_set(x_1325, 1, x_1323); +return x_1325; +} +else +{ +lean_object* x_1326; lean_object* x_1327; lean_object* x_1328; lean_object* x_1329; +lean_dec(x_2); +x_1326 = lean_ctor_get(x_1322, 0); +lean_inc(x_1326); +x_1327 = lean_ctor_get(x_1322, 1); +lean_inc(x_1327); +if (lean_is_exclusive(x_1322)) { + lean_ctor_release(x_1322, 0); + lean_ctor_release(x_1322, 1); + x_1328 = x_1322; +} else { + lean_dec_ref(x_1322); + x_1328 = lean_box(0); +} +if (lean_is_scalar(x_1328)) { + x_1329 = lean_alloc_ctor(1, 2, 0); +} else { + x_1329 = x_1328; +} +lean_ctor_set(x_1329, 0, x_1326); +lean_ctor_set(x_1329, 1, x_1327); +return x_1329; +} +} +else +{ +lean_object* x_1330; lean_object* x_1331; +x_1330 = lean_ctor_get(x_8, 0); +lean_inc(x_1330); +lean_dec(x_8); +lean_inc(x_4); +x_1331 = l_Lean_Elab_Term_isDefEq(x_1330, x_3, x_4, x_1321); +if (lean_obj_tag(x_1331) == 0) +{ +lean_object* x_1332; lean_object* x_1333; +x_1332 = lean_ctor_get(x_1331, 1); +lean_inc(x_1332); +lean_dec(x_1331); +x_1333 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_12, x_99, x_4, x_1332); +lean_dec(x_12); +if (lean_obj_tag(x_1333) == 0) +{ +lean_object* x_1334; lean_object* x_1335; lean_object* x_1336; +x_1334 = lean_ctor_get(x_1333, 1); +lean_inc(x_1334); +if (lean_is_exclusive(x_1333)) { + lean_ctor_release(x_1333, 0); + lean_ctor_release(x_1333, 1); + x_1335 = x_1333; +} else { + lean_dec_ref(x_1333); + x_1335 = lean_box(0); +} +if (lean_is_scalar(x_1335)) { + x_1336 = lean_alloc_ctor(0, 2, 0); +} else { + x_1336 = x_1335; +} +lean_ctor_set(x_1336, 0, x_2); +lean_ctor_set(x_1336, 1, x_1334); +return x_1336; +} +else +{ +lean_object* x_1337; lean_object* x_1338; lean_object* x_1339; lean_object* x_1340; +lean_dec(x_2); +x_1337 = lean_ctor_get(x_1333, 0); +lean_inc(x_1337); +x_1338 = lean_ctor_get(x_1333, 1); +lean_inc(x_1338); +if (lean_is_exclusive(x_1333)) { + lean_ctor_release(x_1333, 0); + lean_ctor_release(x_1333, 1); + x_1339 = x_1333; +} else { + lean_dec_ref(x_1333); + x_1339 = lean_box(0); +} +if (lean_is_scalar(x_1339)) { + x_1340 = lean_alloc_ctor(1, 2, 0); +} else { + x_1340 = x_1339; +} +lean_ctor_set(x_1340, 0, x_1337); +lean_ctor_set(x_1340, 1, x_1338); +return x_1340; +} +} +else +{ +lean_object* x_1341; lean_object* x_1342; lean_object* x_1343; lean_object* x_1344; +lean_dec(x_4); +lean_dec(x_12); +lean_dec(x_2); +x_1341 = lean_ctor_get(x_1331, 0); +lean_inc(x_1341); +x_1342 = lean_ctor_get(x_1331, 1); +lean_inc(x_1342); +if (lean_is_exclusive(x_1331)) { + lean_ctor_release(x_1331, 0); + lean_ctor_release(x_1331, 1); + x_1343 = x_1331; +} else { + lean_dec_ref(x_1331); + x_1343 = lean_box(0); +} +if (lean_is_scalar(x_1343)) { + x_1344 = lean_alloc_ctor(1, 2, 0); +} else { + x_1344 = x_1343; +} +lean_ctor_set(x_1344, 0, x_1341); +lean_ctor_set(x_1344, 1, x_1342); +return x_1344; +} +} +} +} +} +} +else +{ +lean_object* x_1441; lean_object* x_1442; lean_object* x_1443; lean_object* x_1444; +lean_dec(x_1146); +lean_dec(x_97); +lean_dec(x_96); +lean_dec(x_95); +lean_dec(x_4); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +x_1441 = lean_ctor_get(x_1149, 0); +lean_inc(x_1441); +x_1442 = lean_ctor_get(x_1149, 1); +lean_inc(x_1442); +if (lean_is_exclusive(x_1149)) { + lean_ctor_release(x_1149, 0); + lean_ctor_release(x_1149, 1); + x_1443 = x_1149; +} else { + lean_dec_ref(x_1149); + x_1443 = lean_box(0); +} +if (lean_is_scalar(x_1443)) { + x_1444 = lean_alloc_ctor(1, 2, 0); +} else { + x_1444 = x_1443; +} +lean_ctor_set(x_1444, 0, x_1441); +lean_ctor_set(x_1444, 1, x_1442); +return x_1444; +} +} +} +} +} +else +{ +lean_object* x_1445; lean_object* x_1446; lean_object* x_1447; lean_object* x_1448; lean_object* x_1449; lean_object* x_1450; +lean_dec(x_95); +lean_dec(x_3); +x_1445 = lean_ctor_get(x_100, 0); +lean_inc(x_1445); +lean_dec(x_100); +x_1446 = l_Lean_Elab_Term_NamedArg_inhabited; +x_1447 = lean_array_get(x_1446, x_11, x_1445); +x_1448 = l_Array_eraseIdx___rarg(x_11, x_1445); +lean_dec(x_1445); +x_1449 = lean_ctor_get(x_1447, 1); +lean_inc(x_1449); +lean_dec(x_1447); +lean_inc(x_4); +lean_inc(x_2); +x_1450 = l___private_Lean_Elab_App_2__elabArg(x_2, x_1449, x_96, x_4, x_19); +if (lean_obj_tag(x_1450) == 0) +{ +lean_object* x_1451; lean_object* x_1452; uint8_t x_1453; lean_object* x_1454; lean_object* x_1455; lean_object* x_1456; lean_object* x_1457; +x_1451 = lean_ctor_get(x_1450, 0); +lean_inc(x_1451); +x_1452 = lean_ctor_get(x_1450, 1); +lean_inc(x_1452); +lean_dec(x_1450); +x_1453 = 1; +x_1454 = lean_alloc_ctor(0, 7, 2); +lean_ctor_set(x_1454, 0, x_6); +lean_ctor_set(x_1454, 1, x_7); +lean_ctor_set(x_1454, 2, x_8); +lean_ctor_set(x_1454, 3, x_10); +lean_ctor_set(x_1454, 4, x_1448); +lean_ctor_set(x_1454, 5, x_12); +lean_ctor_set(x_1454, 6, x_13); +lean_ctor_set_uint8(x_1454, sizeof(void*)*7, x_9); +lean_ctor_set_uint8(x_1454, sizeof(void*)*7 + 1, x_1453); +lean_inc(x_1451); +x_1455 = l_Lean_mkApp(x_2, x_1451); +x_1456 = lean_expr_instantiate1(x_97, x_1451); +lean_dec(x_1451); +lean_dec(x_97); +lean_inc(x_4); +x_1457 = l___private_Lean_Elab_App_8__propagateExpectedType(x_1, x_18, x_4, x_1452); +if (lean_obj_tag(x_1457) == 0) +{ +lean_object* x_1458; +x_1458 = lean_ctor_get(x_1457, 1); +lean_inc(x_1458); +lean_dec(x_1457); +x_1 = x_1454; +x_2 = x_1455; +x_3 = x_1456; +x_5 = x_1458; +goto _start; +} +else +{ +uint8_t x_1460; +lean_dec(x_1456); +lean_dec(x_1455); +lean_dec(x_1454); +lean_dec(x_4); +x_1460 = !lean_is_exclusive(x_1457); +if (x_1460 == 0) +{ +return x_1457; +} +else +{ +lean_object* x_1461; lean_object* x_1462; lean_object* x_1463; +x_1461 = lean_ctor_get(x_1457, 0); +x_1462 = lean_ctor_get(x_1457, 1); +lean_inc(x_1462); +lean_inc(x_1461); +lean_dec(x_1457); +x_1463 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1463, 0, x_1461); +lean_ctor_set(x_1463, 1, x_1462); +return x_1463; +} +} +} +else +{ +uint8_t x_1464; +lean_dec(x_1448); +lean_dec(x_97); +lean_dec(x_18); +lean_dec(x_4); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_1464 = !lean_is_exclusive(x_1450); +if (x_1464 == 0) +{ +return x_1450; +} +else +{ +lean_object* x_1465; lean_object* x_1466; lean_object* x_1467; +x_1465 = lean_ctor_get(x_1450, 0); +x_1466 = lean_ctor_get(x_1450, 1); +lean_inc(x_1466); +lean_inc(x_1465); +lean_dec(x_1450); +x_1467 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1467, 0, x_1465); +lean_ctor_set(x_1467, 1, x_1466); +return x_1467; +} +} +} +} +else +{ +lean_object* x_1468; +lean_dec(x_13); +lean_dec(x_6); +x_1468 = lean_box(0); +x_20 = x_1468; +goto block_94; +} +block_94: +{ +uint8_t x_21; +lean_dec(x_20); +x_21 = l_Array_isEmpty___rarg(x_11); +lean_dec(x_11); +if (x_21 == 0) +{ +lean_object* x_22; +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_3); +lean_inc(x_4); +x_22 = l___private_Lean_Elab_App_4__tryCoeFun(x_18, x_2, x_4, x_19); +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +lean_inc(x_4); +lean_inc(x_23); +x_25 = l_Lean_Elab_Term_inferType(x_23, x_4, x_24); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; +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); +x_2 = x_23; +x_3 = x_26; +x_5 = x_27; +goto _start; +} +else +{ +uint8_t x_29; +lean_dec(x_23); +lean_dec(x_4); +lean_dec(x_1); +x_29 = !lean_is_exclusive(x_25); +if (x_29 == 0) +{ +return x_25; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_25, 0); +x_31 = lean_ctor_get(x_25, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_25); +x_32 = lean_alloc_ctor(1, 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_4); +lean_dec(x_1); +x_33 = !lean_is_exclusive(x_22); +if (x_33 == 0) +{ +return x_22; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_22, 0); +x_35 = lean_ctor_get(x_22, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_22); +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; +} +} +} +else +{ +lean_object* x_37; uint8_t x_38; +x_37 = lean_array_get_size(x_7); +lean_dec(x_7); +x_38 = lean_nat_dec_eq(x_10, x_37); +lean_dec(x_37); +lean_dec(x_10); +if (x_38 == 0) +{ +lean_object* x_39; +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_3); +lean_inc(x_4); +x_39 = l___private_Lean_Elab_App_4__tryCoeFun(x_18, x_2, x_4, x_19); +if (lean_obj_tag(x_39) == 0) +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_39, 1); +lean_inc(x_41); +lean_dec(x_39); +lean_inc(x_4); +lean_inc(x_40); +x_42 = l_Lean_Elab_Term_inferType(x_40, x_4, x_41); +if (lean_obj_tag(x_42) == 0) +{ +lean_object* x_43; lean_object* x_44; +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_42, 1); +lean_inc(x_44); +lean_dec(x_42); +x_2 = x_40; +x_3 = x_43; +x_5 = x_44; +goto _start; +} +else +{ +uint8_t x_46; +lean_dec(x_40); +lean_dec(x_4); +lean_dec(x_1); +x_46 = !lean_is_exclusive(x_42); +if (x_46 == 0) +{ +return x_42; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_42, 0); +x_48 = lean_ctor_get(x_42, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_42); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +return x_49; +} +} +} +else +{ +uint8_t x_50; +lean_dec(x_4); +lean_dec(x_1); +x_50 = !lean_is_exclusive(x_39); +if (x_50 == 0) +{ +return x_39; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_39, 0); +x_52 = lean_ctor_get(x_39, 1); +lean_inc(x_52); +lean_inc(x_51); +lean_dec(x_39); +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +return x_53; +} +} +} +else +{ +lean_object* x_54; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; +lean_dec(x_18); +lean_dec(x_1); +x_83 = l_Lean_Elab_Term_getOptions(x_4, x_19); +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_getCurrRef(x_4, x_85); +x_87 = lean_ctor_get(x_86, 0); +lean_inc(x_87); +x_88 = lean_ctor_get(x_86, 1); +lean_inc(x_88); +lean_dec(x_86); +x_89 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_90 = l_Lean_checkTraceOption(x_84, x_89); +lean_dec(x_84); +if (x_90 == 0) +{ +lean_dec(x_87); +x_54 = x_88; +goto block_82; +} +else +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; +lean_inc(x_2); +x_91 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_91, 0, x_2); +lean_inc(x_4); +x_92 = l_Lean_Elab_Term_logTrace(x_89, x_87, x_91, x_4, x_88); +lean_dec(x_87); +x_93 = lean_ctor_get(x_92, 1); +lean_inc(x_93); +lean_dec(x_92); +x_54 = x_93; +goto block_82; +} +block_82: +{ +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_55; lean_object* x_56; +lean_dec(x_3); +x_55 = lean_unsigned_to_nat(0u); +x_56 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_12, x_55, x_4, x_54); +lean_dec(x_12); +if (lean_obj_tag(x_56) == 0) +{ +uint8_t x_57; +x_57 = !lean_is_exclusive(x_56); +if (x_57 == 0) +{ +lean_object* x_58; +x_58 = lean_ctor_get(x_56, 0); +lean_dec(x_58); +lean_ctor_set(x_56, 0, x_2); +return x_56; +} +else +{ +lean_object* x_59; lean_object* x_60; +x_59 = lean_ctor_get(x_56, 1); +lean_inc(x_59); +lean_dec(x_56); +x_60 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_60, 0, x_2); +lean_ctor_set(x_60, 1, x_59); +return x_60; +} +} +else +{ +uint8_t x_61; +lean_dec(x_2); +x_61 = !lean_is_exclusive(x_56); +if (x_61 == 0) +{ +return x_56; +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_56, 0); +x_63 = lean_ctor_get(x_56, 1); +lean_inc(x_63); +lean_inc(x_62); +lean_dec(x_56); +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; +x_65 = lean_ctor_get(x_8, 0); +lean_inc(x_65); +lean_dec(x_8); +lean_inc(x_4); +x_66 = l_Lean_Elab_Term_isDefEq(x_65, x_3, x_4, x_54); +if (lean_obj_tag(x_66) == 0) +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_66, 1); +lean_inc(x_67); +lean_dec(x_66); +x_68 = lean_unsigned_to_nat(0u); +x_69 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_12, x_68, x_4, x_67); +lean_dec(x_12); +if (lean_obj_tag(x_69) == 0) +{ +uint8_t x_70; +x_70 = !lean_is_exclusive(x_69); +if (x_70 == 0) +{ +lean_object* x_71; +x_71 = lean_ctor_get(x_69, 0); +lean_dec(x_71); +lean_ctor_set(x_69, 0, x_2); +return x_69; +} +else +{ +lean_object* x_72; lean_object* x_73; +x_72 = lean_ctor_get(x_69, 1); +lean_inc(x_72); +lean_dec(x_69); +x_73 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_73, 0, x_2); +lean_ctor_set(x_73, 1, x_72); +return x_73; +} +} +else +{ +uint8_t x_74; +lean_dec(x_2); +x_74 = !lean_is_exclusive(x_69); +if (x_74 == 0) +{ +return x_69; +} +else +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_75 = lean_ctor_get(x_69, 0); +x_76 = lean_ctor_get(x_69, 1); +lean_inc(x_76); +lean_inc(x_75); +lean_dec(x_69); +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; +} +} +} +else +{ +uint8_t x_78; +lean_dec(x_4); +lean_dec(x_12); +lean_dec(x_2); +x_78 = !lean_is_exclusive(x_66); +if (x_78 == 0) +{ +return x_66; +} +else +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_79 = lean_ctor_get(x_66, 0); +x_80 = lean_ctor_get(x_66, 1); +lean_inc(x_80); +lean_inc(x_79); +lean_dec(x_66); +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; +} +} +} +} +} +} +} +} +else +{ +uint8_t x_1469; +lean_dec(x_4); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_1469 = !lean_is_exclusive(x_17); +if (x_1469 == 0) +{ +return x_17; +} +else +{ +lean_object* x_1470; lean_object* x_1471; lean_object* x_1472; +x_1470 = lean_ctor_get(x_17, 0); +x_1471 = lean_ctor_get(x_17, 1); +lean_inc(x_1471); +lean_inc(x_1470); +lean_dec(x_17); +x_1472 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1472, 0, x_1470); +lean_ctor_set(x_1472, 1, x_1471); +return x_1472; +} +} +} +else +{ +uint8_t x_1473; lean_object* x_1474; lean_object* x_1475; lean_object* x_1476; lean_object* x_1477; lean_object* x_1478; lean_object* x_1479; lean_object* x_1480; lean_object* x_1481; lean_object* x_1482; lean_object* x_1483; uint8_t x_1484; uint8_t x_1485; uint8_t x_1486; lean_object* x_1487; lean_object* x_1488; +x_1473 = lean_ctor_get_uint8(x_1, sizeof(void*)*7 + 1); +x_1474 = lean_ctor_get(x_4, 0); +x_1475 = lean_ctor_get(x_4, 1); +x_1476 = lean_ctor_get(x_4, 2); +x_1477 = lean_ctor_get(x_4, 3); +x_1478 = lean_ctor_get(x_4, 4); +x_1479 = lean_ctor_get(x_4, 5); +x_1480 = lean_ctor_get(x_4, 6); +x_1481 = lean_ctor_get(x_4, 7); +x_1482 = lean_ctor_get(x_4, 8); +x_1483 = lean_ctor_get(x_4, 9); +x_1484 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_1485 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_1486 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +lean_inc(x_1483); +lean_inc(x_1482); +lean_inc(x_1481); +lean_inc(x_1480); +lean_inc(x_1479); +lean_inc(x_1478); +lean_inc(x_1477); +lean_inc(x_1476); +lean_inc(x_1475); +lean_inc(x_1474); +lean_dec(x_4); +lean_inc(x_6); +x_1487 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_1487, 0, x_1474); +lean_ctor_set(x_1487, 1, x_1475); +lean_ctor_set(x_1487, 2, x_1476); +lean_ctor_set(x_1487, 3, x_1477); +lean_ctor_set(x_1487, 4, x_1478); +lean_ctor_set(x_1487, 5, x_1479); +lean_ctor_set(x_1487, 6, x_1480); +lean_ctor_set(x_1487, 7, x_1481); +lean_ctor_set(x_1487, 8, x_1482); +lean_ctor_set(x_1487, 9, x_1483); +lean_ctor_set(x_1487, 10, x_6); +lean_ctor_set_uint8(x_1487, sizeof(void*)*11, x_1484); +lean_ctor_set_uint8(x_1487, sizeof(void*)*11 + 1, x_1485); +lean_ctor_set_uint8(x_1487, sizeof(void*)*11 + 2, x_1486); +lean_inc(x_1487); +lean_inc(x_3); +x_1488 = l_Lean_Elab_Term_whnfForall(x_3, x_1487, x_5); +if (lean_obj_tag(x_1488) == 0) +{ +lean_object* x_1489; lean_object* x_1490; lean_object* x_1491; +x_1489 = lean_ctor_get(x_1488, 0); +lean_inc(x_1489); +x_1490 = lean_ctor_get(x_1488, 1); +lean_inc(x_1490); +lean_dec(x_1488); +if (lean_obj_tag(x_1489) == 7) +{ +lean_object* x_1564; lean_object* x_1565; lean_object* x_1566; uint64_t x_1567; lean_object* x_1568; lean_object* x_1569; +x_1564 = lean_ctor_get(x_1489, 0); +lean_inc(x_1564); +x_1565 = lean_ctor_get(x_1489, 1); +lean_inc(x_1565); +x_1566 = lean_ctor_get(x_1489, 2); +lean_inc(x_1566); +x_1567 = lean_ctor_get_uint64(x_1489, sizeof(void*)*3); +x_1568 = lean_unsigned_to_nat(0u); +x_1569 = l_Array_findIdxAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__1(x_1564, x_11, x_1568); +if (lean_obj_tag(x_1569) == 0) +{ +uint8_t x_1570; +x_1570 = (uint8_t)((x_1567 << 24) >> 61); +switch (x_1570) { +case 0: +{ +uint8_t x_1571; lean_object* x_1572; lean_object* x_1573; uint8_t x_1574; lean_object* x_1575; lean_object* x_1576; +x_1571 = 1; +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_1572 = lean_alloc_ctor(0, 7, 2); +lean_ctor_set(x_1572, 0, x_6); +lean_ctor_set(x_1572, 1, x_7); +lean_ctor_set(x_1572, 2, x_8); +lean_ctor_set(x_1572, 3, x_10); +lean_ctor_set(x_1572, 4, x_11); +lean_ctor_set(x_1572, 5, x_12); +lean_ctor_set(x_1572, 6, x_13); +lean_ctor_set_uint8(x_1572, sizeof(void*)*7, x_9); +lean_ctor_set_uint8(x_1572, sizeof(void*)*7 + 1, x_1571); +x_1573 = lean_array_get_size(x_7); +x_1574 = lean_nat_dec_lt(x_10, x_1573); +lean_dec(x_1573); +lean_inc(x_1487); +lean_inc(x_1); +x_1575 = l___private_Lean_Elab_App_8__propagateExpectedType(x_1, x_1489, x_1487, x_1490); +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + lean_ctor_release(x_1, 2); + lean_ctor_release(x_1, 3); + lean_ctor_release(x_1, 4); + lean_ctor_release(x_1, 5); + lean_ctor_release(x_1, 6); + x_1576 = x_1; +} else { + lean_dec_ref(x_1); + x_1576 = lean_box(0); +} +if (lean_obj_tag(x_1575) == 0) +{ +lean_object* x_1577; lean_object* x_1578; +x_1577 = lean_ctor_get(x_1575, 1); +lean_inc(x_1577); +lean_dec(x_1575); +if (x_1574 == 0) +{ +lean_dec(x_1576); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_7); +if (x_9 == 0) +{ +lean_object* x_1633; +x_1633 = l_Lean_Expr_getOptParamDefault_x3f(x_1565); +if (lean_obj_tag(x_1633) == 0) +{ +lean_object* x_1634; +x_1634 = l_Lean_Expr_getAutoParamTactic_x3f(x_1565); +if (lean_obj_tag(x_1634) == 0) +{ +lean_object* x_1635; +lean_dec(x_1572); +lean_dec(x_1566); +lean_dec(x_1565); +lean_dec(x_6); +x_1635 = lean_box(0); +x_1578 = x_1635; +goto block_1632; +} +else +{ +lean_object* x_1636; +lean_dec(x_1564); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_8); +lean_dec(x_3); +x_1636 = lean_ctor_get(x_1634, 0); +lean_inc(x_1636); +lean_dec(x_1634); +if (lean_obj_tag(x_1636) == 4) +{ +lean_object* x_1637; lean_object* x_1638; lean_object* x_1639; lean_object* x_1640; lean_object* x_1641; +x_1637 = lean_ctor_get(x_1636, 0); +lean_inc(x_1637); +lean_dec(x_1636); +x_1638 = l_Lean_Elab_Term_getEnv___rarg(x_1577); +x_1639 = lean_ctor_get(x_1638, 0); +lean_inc(x_1639); +x_1640 = lean_ctor_get(x_1638, 1); +lean_inc(x_1640); +lean_dec(x_1638); +x_1641 = l___private_Lean_Elab_Util_1__evalSyntaxConstantUnsafe(x_1639, x_1637); +if (lean_obj_tag(x_1641) == 0) +{ +lean_object* x_1642; lean_object* x_1643; lean_object* x_1644; lean_object* x_1645; +lean_dec(x_1572); +lean_dec(x_1566); +lean_dec(x_1565); +lean_dec(x_6); +lean_dec(x_2); +x_1642 = lean_ctor_get(x_1641, 0); +lean_inc(x_1642); +lean_dec(x_1641); +x_1643 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1643, 0, x_1642); +x_1644 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1644, 0, x_1643); +x_1645 = l_Lean_Elab_Term_throwError___rarg(x_1644, x_1487, x_1640); +return x_1645; +} +else +{ +lean_object* x_1646; lean_object* x_1647; lean_object* x_1648; lean_object* x_1649; lean_object* x_1650; lean_object* x_1651; lean_object* x_1652; lean_object* x_1653; lean_object* x_1654; lean_object* x_1655; lean_object* x_1656; lean_object* x_1657; lean_object* x_1658; lean_object* x_1659; lean_object* x_1660; lean_object* x_1661; lean_object* x_1662; lean_object* x_1663; lean_object* x_1664; lean_object* x_1665; lean_object* x_1666; lean_object* x_1667; lean_object* x_1668; lean_object* x_1669; lean_object* x_1670; +x_1646 = lean_ctor_get(x_1641, 0); +lean_inc(x_1646); +lean_dec(x_1641); +x_1647 = l_Lean_Elab_Term_getCurrMacroScope(x_1487, x_1640); +x_1648 = lean_ctor_get(x_1647, 1); +lean_inc(x_1648); +lean_dec(x_1647); +x_1649 = l_Lean_Elab_Term_getMainModule___rarg(x_1648); +x_1650 = lean_ctor_get(x_1649, 1); +lean_inc(x_1650); +lean_dec(x_1649); +x_1651 = l_Lean_Syntax_getArgs(x_1646); +lean_dec(x_1646); +x_1652 = l_Array_empty___closed__1; +x_1653 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1651, x_1651, x_1568, x_1652); +lean_dec(x_1651); +x_1654 = l_Lean_nullKind___closed__2; +x_1655 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1655, 0, x_1654); +lean_ctor_set(x_1655, 1, x_1653); +x_1656 = lean_array_push(x_1652, x_1655); +x_1657 = l_Lean_PrettyPrinter_Parenthesizer_tacticParser_parenthesizer___lambda__1___closed__4; +x_1658 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1658, 0, x_1657); +lean_ctor_set(x_1658, 1, x_1656); +x_1659 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__15; +x_1660 = lean_array_push(x_1659, x_1658); +x_1661 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__16; +x_1662 = lean_array_push(x_1660, x_1661); +x_1663 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; +x_1664 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1664, 0, x_1663); +lean_ctor_set(x_1664, 1, x_1662); +x_1665 = l_Lean_Syntax_getHeadInfo___main(x_6); +lean_dec(x_6); +x_1666 = l_Lean_Expr_getAppNumArgsAux___main(x_1565, x_1568); +x_1667 = lean_nat_sub(x_1666, x_1568); +lean_dec(x_1666); +x_1668 = lean_unsigned_to_nat(1u); +x_1669 = lean_nat_sub(x_1667, x_1668); +lean_dec(x_1667); +x_1670 = l_Lean_Expr_getRevArg_x21___main(x_1565, x_1669); +lean_dec(x_1565); +if (lean_obj_tag(x_1665) == 0) +{ +lean_object* x_1671; lean_object* x_1672; +x_1671 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1671, 0, x_1664); +lean_inc(x_1487); +lean_inc(x_2); +x_1672 = l___private_Lean_Elab_App_2__elabArg(x_2, x_1671, x_1670, x_1487, x_1650); +if (lean_obj_tag(x_1672) == 0) +{ +lean_object* x_1673; lean_object* x_1674; lean_object* x_1675; lean_object* x_1676; +x_1673 = lean_ctor_get(x_1672, 0); +lean_inc(x_1673); +x_1674 = lean_ctor_get(x_1672, 1); +lean_inc(x_1674); +lean_dec(x_1672); +lean_inc(x_1673); +x_1675 = l_Lean_mkApp(x_2, x_1673); +x_1676 = lean_expr_instantiate1(x_1566, x_1673); +lean_dec(x_1673); +lean_dec(x_1566); +x_1 = x_1572; +x_2 = x_1675; +x_3 = x_1676; +x_4 = x_1487; +x_5 = x_1674; +goto _start; +} +else +{ +lean_object* x_1678; lean_object* x_1679; lean_object* x_1680; lean_object* x_1681; +lean_dec(x_1572); +lean_dec(x_1566); +lean_dec(x_1487); +lean_dec(x_2); +x_1678 = lean_ctor_get(x_1672, 0); +lean_inc(x_1678); +x_1679 = lean_ctor_get(x_1672, 1); +lean_inc(x_1679); +if (lean_is_exclusive(x_1672)) { + lean_ctor_release(x_1672, 0); + lean_ctor_release(x_1672, 1); + x_1680 = x_1672; +} else { + lean_dec_ref(x_1672); + x_1680 = lean_box(0); +} +if (lean_is_scalar(x_1680)) { + x_1681 = lean_alloc_ctor(1, 2, 0); +} else { + x_1681 = x_1680; +} +lean_ctor_set(x_1681, 0, x_1678); +lean_ctor_set(x_1681, 1, x_1679); +return x_1681; +} +} +else +{ +lean_object* x_1682; lean_object* x_1683; lean_object* x_1684; lean_object* x_1685; +x_1682 = lean_ctor_get(x_1665, 0); +lean_inc(x_1682); +lean_dec(x_1665); +x_1683 = l_Lean_Syntax_replaceInfo___main(x_1682, x_1664); +x_1684 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1684, 0, x_1683); +lean_inc(x_1487); +lean_inc(x_2); +x_1685 = l___private_Lean_Elab_App_2__elabArg(x_2, x_1684, x_1670, x_1487, x_1650); +if (lean_obj_tag(x_1685) == 0) +{ +lean_object* x_1686; lean_object* x_1687; lean_object* x_1688; lean_object* x_1689; +x_1686 = lean_ctor_get(x_1685, 0); +lean_inc(x_1686); +x_1687 = lean_ctor_get(x_1685, 1); +lean_inc(x_1687); +lean_dec(x_1685); +lean_inc(x_1686); +x_1688 = l_Lean_mkApp(x_2, x_1686); +x_1689 = lean_expr_instantiate1(x_1566, x_1686); +lean_dec(x_1686); +lean_dec(x_1566); +x_1 = x_1572; +x_2 = x_1688; +x_3 = x_1689; +x_4 = x_1487; +x_5 = x_1687; +goto _start; +} +else +{ +lean_object* x_1691; lean_object* x_1692; lean_object* x_1693; lean_object* x_1694; +lean_dec(x_1572); +lean_dec(x_1566); +lean_dec(x_1487); +lean_dec(x_2); +x_1691 = lean_ctor_get(x_1685, 0); +lean_inc(x_1691); +x_1692 = lean_ctor_get(x_1685, 1); +lean_inc(x_1692); +if (lean_is_exclusive(x_1685)) { + lean_ctor_release(x_1685, 0); + lean_ctor_release(x_1685, 1); + x_1693 = x_1685; +} else { + lean_dec_ref(x_1685); + x_1693 = lean_box(0); +} +if (lean_is_scalar(x_1693)) { + x_1694 = lean_alloc_ctor(1, 2, 0); +} else { + x_1694 = x_1693; +} +lean_ctor_set(x_1694, 0, x_1691); +lean_ctor_set(x_1694, 1, x_1692); +return x_1694; +} +} +} +} +else +{ +lean_object* x_1695; lean_object* x_1696; +lean_dec(x_1636); +lean_dec(x_1572); +lean_dec(x_1566); +lean_dec(x_1565); +lean_dec(x_6); +lean_dec(x_2); +x_1695 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__12; +x_1696 = l_Lean_Elab_Term_throwError___rarg(x_1695, x_1487, x_1577); +return x_1696; +} +} +} +else +{ +lean_object* x_1697; lean_object* x_1698; lean_object* x_1699; +lean_dec(x_1565); +lean_dec(x_1564); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_3); +x_1697 = lean_ctor_get(x_1633, 0); +lean_inc(x_1697); +lean_dec(x_1633); +lean_inc(x_1697); +x_1698 = l_Lean_mkApp(x_2, x_1697); +x_1699 = lean_expr_instantiate1(x_1566, x_1697); +lean_dec(x_1697); +lean_dec(x_1566); +x_1 = x_1572; +x_2 = x_1698; +x_3 = x_1699; +x_4 = x_1487; +x_5 = x_1577; +goto _start; +} +} +else +{ +lean_object* x_1701; +lean_dec(x_1572); +lean_dec(x_1566); +lean_dec(x_1565); +lean_dec(x_6); +x_1701 = lean_box(0); +x_1578 = x_1701; +goto block_1632; +} +} +else +{ +lean_object* x_1702; lean_object* x_1703; +lean_dec(x_1572); +lean_dec(x_1564); +lean_dec(x_3); +x_1702 = lean_array_fget(x_7, x_10); +lean_inc(x_1487); +lean_inc(x_2); +x_1703 = l___private_Lean_Elab_App_2__elabArg(x_2, x_1702, x_1565, x_1487, x_1577); +if (lean_obj_tag(x_1703) == 0) +{ +lean_object* x_1704; lean_object* x_1705; lean_object* x_1706; lean_object* x_1707; lean_object* x_1708; lean_object* x_1709; lean_object* x_1710; +x_1704 = lean_ctor_get(x_1703, 0); +lean_inc(x_1704); +x_1705 = lean_ctor_get(x_1703, 1); +lean_inc(x_1705); +lean_dec(x_1703); +x_1706 = lean_unsigned_to_nat(1u); +x_1707 = lean_nat_add(x_10, x_1706); +lean_dec(x_10); +if (lean_is_scalar(x_1576)) { + x_1708 = lean_alloc_ctor(0, 7, 2); +} else { + x_1708 = x_1576; +} +lean_ctor_set(x_1708, 0, x_6); +lean_ctor_set(x_1708, 1, x_7); +lean_ctor_set(x_1708, 2, x_8); +lean_ctor_set(x_1708, 3, x_1707); +lean_ctor_set(x_1708, 4, x_11); +lean_ctor_set(x_1708, 5, x_12); +lean_ctor_set(x_1708, 6, x_13); +lean_ctor_set_uint8(x_1708, sizeof(void*)*7, x_9); +lean_ctor_set_uint8(x_1708, sizeof(void*)*7 + 1, x_1571); +lean_inc(x_1704); +x_1709 = l_Lean_mkApp(x_2, x_1704); +x_1710 = lean_expr_instantiate1(x_1566, x_1704); +lean_dec(x_1704); +lean_dec(x_1566); +x_1 = x_1708; +x_2 = x_1709; +x_3 = x_1710; +x_4 = x_1487; +x_5 = x_1705; +goto _start; +} +else +{ +lean_object* x_1712; lean_object* x_1713; lean_object* x_1714; lean_object* x_1715; +lean_dec(x_1576); +lean_dec(x_1566); +lean_dec(x_1487); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +x_1712 = lean_ctor_get(x_1703, 0); +lean_inc(x_1712); +x_1713 = lean_ctor_get(x_1703, 1); +lean_inc(x_1713); +if (lean_is_exclusive(x_1703)) { + lean_ctor_release(x_1703, 0); + lean_ctor_release(x_1703, 1); + x_1714 = x_1703; +} else { + lean_dec_ref(x_1703); + x_1714 = lean_box(0); +} +if (lean_is_scalar(x_1714)) { + x_1715 = lean_alloc_ctor(1, 2, 0); +} else { + x_1715 = x_1714; +} +lean_ctor_set(x_1715, 0, x_1712); +lean_ctor_set(x_1715, 1, x_1713); +return x_1715; +} +} +block_1632: +{ +uint8_t x_1579; +lean_dec(x_1578); +x_1579 = l_Array_isEmpty___rarg(x_11); +if (x_1579 == 0) +{ +lean_object* x_1580; lean_object* x_1581; lean_object* x_1582; lean_object* x_1583; lean_object* x_1584; lean_object* x_1585; lean_object* x_1586; lean_object* x_1587; lean_object* x_1588; lean_object* x_1589; lean_object* x_1590; lean_object* x_1591; lean_object* x_1592; lean_object* x_1593; lean_object* x_1594; lean_object* x_1595; +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +x_1580 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_1580, 0, x_1564); +x_1581 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_1582 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1582, 0, x_1581); +lean_ctor_set(x_1582, 1, x_1580); +x_1583 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_1584 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1584, 0, x_1582); +lean_ctor_set(x_1584, 1, x_1583); +x_1585 = x_11; +x_1586 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(x_1568, x_1585); +x_1587 = x_1586; +x_1588 = l_Array_toList___rarg(x_1587); +lean_dec(x_1587); +x_1589 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_1588); +x_1590 = l_Array_HasRepr___rarg___closed__1; +x_1591 = lean_string_append(x_1590, x_1589); +lean_dec(x_1589); +x_1592 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1592, 0, x_1591); +x_1593 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1593, 0, x_1592); +x_1594 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1594, 0, x_1584); +lean_ctor_set(x_1594, 1, x_1593); +x_1595 = l_Lean_Elab_Term_throwError___rarg(x_1594, x_1487, x_1577); +return x_1595; +} +else +{ +lean_object* x_1596; lean_object* x_1621; lean_object* x_1622; lean_object* x_1623; lean_object* x_1624; lean_object* x_1625; lean_object* x_1626; lean_object* x_1627; uint8_t x_1628; +lean_dec(x_1564); +lean_dec(x_11); +x_1621 = l_Lean_Elab_Term_getOptions(x_1487, x_1577); +x_1622 = lean_ctor_get(x_1621, 0); +lean_inc(x_1622); +x_1623 = lean_ctor_get(x_1621, 1); +lean_inc(x_1623); +lean_dec(x_1621); +x_1624 = l_Lean_Elab_Term_getCurrRef(x_1487, x_1623); +x_1625 = lean_ctor_get(x_1624, 0); +lean_inc(x_1625); +x_1626 = lean_ctor_get(x_1624, 1); +lean_inc(x_1626); +lean_dec(x_1624); +x_1627 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_1628 = l_Lean_checkTraceOption(x_1622, x_1627); +lean_dec(x_1622); +if (x_1628 == 0) +{ +lean_dec(x_1625); +x_1596 = x_1626; +goto block_1620; +} +else +{ +lean_object* x_1629; lean_object* x_1630; lean_object* x_1631; +lean_inc(x_2); +x_1629 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1629, 0, x_2); +lean_inc(x_1487); +x_1630 = l_Lean_Elab_Term_logTrace(x_1627, x_1625, x_1629, x_1487, x_1626); +lean_dec(x_1625); +x_1631 = lean_ctor_get(x_1630, 1); +lean_inc(x_1631); +lean_dec(x_1630); +x_1596 = x_1631; +goto block_1620; +} +block_1620: +{ +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_1597; +lean_dec(x_3); +x_1597 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_12, x_1568, x_1487, x_1596); +lean_dec(x_12); +if (lean_obj_tag(x_1597) == 0) +{ +lean_object* x_1598; lean_object* x_1599; lean_object* x_1600; +x_1598 = lean_ctor_get(x_1597, 1); +lean_inc(x_1598); +if (lean_is_exclusive(x_1597)) { + lean_ctor_release(x_1597, 0); + lean_ctor_release(x_1597, 1); + x_1599 = x_1597; +} else { + lean_dec_ref(x_1597); + x_1599 = lean_box(0); +} +if (lean_is_scalar(x_1599)) { + x_1600 = lean_alloc_ctor(0, 2, 0); +} else { + x_1600 = x_1599; +} +lean_ctor_set(x_1600, 0, x_2); +lean_ctor_set(x_1600, 1, x_1598); +return x_1600; +} +else +{ +lean_object* x_1601; lean_object* x_1602; lean_object* x_1603; lean_object* x_1604; +lean_dec(x_2); +x_1601 = lean_ctor_get(x_1597, 0); +lean_inc(x_1601); +x_1602 = lean_ctor_get(x_1597, 1); +lean_inc(x_1602); +if (lean_is_exclusive(x_1597)) { + lean_ctor_release(x_1597, 0); + lean_ctor_release(x_1597, 1); + x_1603 = x_1597; +} else { + lean_dec_ref(x_1597); + x_1603 = lean_box(0); +} +if (lean_is_scalar(x_1603)) { + x_1604 = lean_alloc_ctor(1, 2, 0); +} else { + x_1604 = x_1603; +} +lean_ctor_set(x_1604, 0, x_1601); +lean_ctor_set(x_1604, 1, x_1602); +return x_1604; +} +} +else +{ +lean_object* x_1605; lean_object* x_1606; +x_1605 = lean_ctor_get(x_8, 0); +lean_inc(x_1605); +lean_dec(x_8); +lean_inc(x_1487); +x_1606 = l_Lean_Elab_Term_isDefEq(x_1605, x_3, x_1487, x_1596); +if (lean_obj_tag(x_1606) == 0) +{ +lean_object* x_1607; lean_object* x_1608; +x_1607 = lean_ctor_get(x_1606, 1); +lean_inc(x_1607); +lean_dec(x_1606); +x_1608 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_12, x_1568, x_1487, x_1607); +lean_dec(x_12); +if (lean_obj_tag(x_1608) == 0) +{ +lean_object* x_1609; lean_object* x_1610; lean_object* x_1611; +x_1609 = lean_ctor_get(x_1608, 1); +lean_inc(x_1609); +if (lean_is_exclusive(x_1608)) { + lean_ctor_release(x_1608, 0); + lean_ctor_release(x_1608, 1); + x_1610 = x_1608; +} else { + lean_dec_ref(x_1608); + x_1610 = lean_box(0); +} +if (lean_is_scalar(x_1610)) { + x_1611 = lean_alloc_ctor(0, 2, 0); +} else { + x_1611 = x_1610; +} +lean_ctor_set(x_1611, 0, x_2); +lean_ctor_set(x_1611, 1, x_1609); +return x_1611; +} +else +{ +lean_object* x_1612; lean_object* x_1613; lean_object* x_1614; lean_object* x_1615; +lean_dec(x_2); +x_1612 = lean_ctor_get(x_1608, 0); +lean_inc(x_1612); +x_1613 = lean_ctor_get(x_1608, 1); +lean_inc(x_1613); +if (lean_is_exclusive(x_1608)) { + lean_ctor_release(x_1608, 0); + lean_ctor_release(x_1608, 1); + x_1614 = x_1608; +} else { + lean_dec_ref(x_1608); + x_1614 = lean_box(0); +} +if (lean_is_scalar(x_1614)) { + x_1615 = lean_alloc_ctor(1, 2, 0); +} else { + x_1615 = x_1614; +} +lean_ctor_set(x_1615, 0, x_1612); +lean_ctor_set(x_1615, 1, x_1613); +return x_1615; +} +} +else +{ +lean_object* x_1616; lean_object* x_1617; lean_object* x_1618; lean_object* x_1619; +lean_dec(x_1487); +lean_dec(x_12); +lean_dec(x_2); +x_1616 = lean_ctor_get(x_1606, 0); +lean_inc(x_1616); +x_1617 = lean_ctor_get(x_1606, 1); +lean_inc(x_1617); +if (lean_is_exclusive(x_1606)) { + lean_ctor_release(x_1606, 0); + lean_ctor_release(x_1606, 1); + x_1618 = x_1606; +} else { + lean_dec_ref(x_1606); + x_1618 = lean_box(0); +} +if (lean_is_scalar(x_1618)) { + x_1619 = lean_alloc_ctor(1, 2, 0); +} else { + x_1619 = x_1618; +} +lean_ctor_set(x_1619, 0, x_1616); +lean_ctor_set(x_1619, 1, x_1617); +return x_1619; +} +} +} +} +} +} +else +{ +lean_object* x_1716; lean_object* x_1717; lean_object* x_1718; lean_object* x_1719; +lean_dec(x_1576); +lean_dec(x_1572); +lean_dec(x_1566); +lean_dec(x_1565); +lean_dec(x_1564); +lean_dec(x_1487); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +x_1716 = lean_ctor_get(x_1575, 0); +lean_inc(x_1716); +x_1717 = lean_ctor_get(x_1575, 1); +lean_inc(x_1717); +if (lean_is_exclusive(x_1575)) { + lean_ctor_release(x_1575, 0); + lean_ctor_release(x_1575, 1); + x_1718 = x_1575; +} else { + lean_dec_ref(x_1575); + x_1718 = lean_box(0); +} +if (lean_is_scalar(x_1718)) { + x_1719 = lean_alloc_ctor(1, 2, 0); +} else { + x_1719 = x_1718; +} +lean_ctor_set(x_1719, 0, x_1716); +lean_ctor_set(x_1719, 1, x_1717); +return x_1719; +} +} +case 1: +{ +if (x_9 == 0) +{ +lean_object* x_1720; lean_object* x_1721; uint8_t x_1722; lean_object* x_1723; lean_object* x_1724; lean_object* x_1725; lean_object* x_1726; lean_object* x_1727; +lean_dec(x_1564); +lean_dec(x_1489); +lean_dec(x_3); +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + lean_ctor_release(x_1, 2); + lean_ctor_release(x_1, 3); + lean_ctor_release(x_1, 4); + lean_ctor_release(x_1, 5); + lean_ctor_release(x_1, 6); + x_1720 = x_1; +} else { + lean_dec_ref(x_1); + x_1720 = lean_box(0); +} +x_1721 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1721, 0, x_1565); +x_1722 = 0; +x_1723 = lean_box(0); +lean_inc(x_1487); +x_1724 = l_Lean_Elab_Term_mkFreshExprMVar(x_1721, x_1722, x_1723, x_1487, x_1490); +x_1725 = lean_ctor_get(x_1724, 0); +lean_inc(x_1725); +x_1726 = lean_ctor_get(x_1724, 1); +lean_inc(x_1726); +lean_dec(x_1724); +lean_inc(x_1487); +lean_inc(x_1725); +x_1727 = l_Lean_Elab_Term_isTypeFormer(x_1725, x_1487, x_1726); +if (lean_obj_tag(x_1727) == 0) +{ +lean_object* x_1728; uint8_t x_1729; +x_1728 = lean_ctor_get(x_1727, 0); +lean_inc(x_1728); +x_1729 = lean_unbox(x_1728); +lean_dec(x_1728); +if (x_1729 == 0) +{ +lean_object* x_1730; lean_object* x_1731; lean_object* x_1732; lean_object* x_1733; +x_1730 = lean_ctor_get(x_1727, 1); +lean_inc(x_1730); +lean_dec(x_1727); +if (lean_is_scalar(x_1720)) { + x_1731 = lean_alloc_ctor(0, 7, 2); +} else { + x_1731 = x_1720; +} +lean_ctor_set(x_1731, 0, x_6); +lean_ctor_set(x_1731, 1, x_7); +lean_ctor_set(x_1731, 2, x_8); +lean_ctor_set(x_1731, 3, x_10); +lean_ctor_set(x_1731, 4, x_11); +lean_ctor_set(x_1731, 5, x_12); +lean_ctor_set(x_1731, 6, x_13); +lean_ctor_set_uint8(x_1731, sizeof(void*)*7, x_9); +lean_ctor_set_uint8(x_1731, sizeof(void*)*7 + 1, x_1473); +lean_inc(x_1725); +x_1732 = l_Lean_mkApp(x_2, x_1725); +x_1733 = lean_expr_instantiate1(x_1566, x_1725); +lean_dec(x_1725); +lean_dec(x_1566); +x_1 = x_1731; +x_2 = x_1732; +x_3 = x_1733; +x_4 = x_1487; +x_5 = x_1730; +goto _start; +} +else +{ +lean_object* x_1735; lean_object* x_1736; lean_object* x_1737; lean_object* x_1738; lean_object* x_1739; lean_object* x_1740; +x_1735 = lean_ctor_get(x_1727, 1); +lean_inc(x_1735); +lean_dec(x_1727); +x_1736 = l_Lean_Expr_mvarId_x21(x_1725); +x_1737 = lean_array_push(x_13, x_1736); +if (lean_is_scalar(x_1720)) { + x_1738 = lean_alloc_ctor(0, 7, 2); +} else { + x_1738 = x_1720; +} +lean_ctor_set(x_1738, 0, x_6); +lean_ctor_set(x_1738, 1, x_7); +lean_ctor_set(x_1738, 2, x_8); +lean_ctor_set(x_1738, 3, x_10); +lean_ctor_set(x_1738, 4, x_11); +lean_ctor_set(x_1738, 5, x_12); +lean_ctor_set(x_1738, 6, x_1737); +lean_ctor_set_uint8(x_1738, sizeof(void*)*7, x_9); +lean_ctor_set_uint8(x_1738, sizeof(void*)*7 + 1, x_1473); +lean_inc(x_1725); +x_1739 = l_Lean_mkApp(x_2, x_1725); +x_1740 = lean_expr_instantiate1(x_1566, x_1725); +lean_dec(x_1725); +lean_dec(x_1566); +x_1 = x_1738; +x_2 = x_1739; +x_3 = x_1740; +x_4 = x_1487; +x_5 = x_1735; +goto _start; +} +} +else +{ +lean_object* x_1742; lean_object* x_1743; lean_object* x_1744; lean_object* x_1745; +lean_dec(x_1725); +lean_dec(x_1720); +lean_dec(x_1566); +lean_dec(x_1487); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +x_1742 = lean_ctor_get(x_1727, 0); +lean_inc(x_1742); +x_1743 = lean_ctor_get(x_1727, 1); +lean_inc(x_1743); +if (lean_is_exclusive(x_1727)) { + lean_ctor_release(x_1727, 0); + lean_ctor_release(x_1727, 1); + x_1744 = x_1727; +} else { + lean_dec_ref(x_1727); + x_1744 = lean_box(0); +} +if (lean_is_scalar(x_1744)) { + x_1745 = lean_alloc_ctor(1, 2, 0); +} else { + x_1745 = x_1744; +} +lean_ctor_set(x_1745, 0, x_1742); +lean_ctor_set(x_1745, 1, x_1743); +return x_1745; +} +} +else +{ +lean_object* x_1746; uint8_t x_1747; lean_object* x_1748; lean_object* x_1749; +x_1746 = lean_array_get_size(x_7); +x_1747 = lean_nat_dec_lt(x_10, x_1746); +lean_dec(x_1746); +lean_inc(x_1487); +lean_inc(x_1); +x_1748 = l___private_Lean_Elab_App_8__propagateExpectedType(x_1, x_1489, x_1487, x_1490); +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + lean_ctor_release(x_1, 2); + lean_ctor_release(x_1, 3); + lean_ctor_release(x_1, 4); + lean_ctor_release(x_1, 5); + lean_ctor_release(x_1, 6); + x_1749 = x_1; +} else { + lean_dec_ref(x_1); + x_1749 = lean_box(0); +} +if (lean_obj_tag(x_1748) == 0) +{ +if (x_1747 == 0) +{ +lean_object* x_1750; uint8_t x_1751; +lean_dec(x_1749); +lean_dec(x_1566); +lean_dec(x_1565); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +x_1750 = lean_ctor_get(x_1748, 1); +lean_inc(x_1750); +lean_dec(x_1748); +x_1751 = l_Array_isEmpty___rarg(x_11); +if (x_1751 == 0) +{ +lean_object* x_1752; lean_object* x_1753; lean_object* x_1754; lean_object* x_1755; lean_object* x_1756; lean_object* x_1757; lean_object* x_1758; lean_object* x_1759; lean_object* x_1760; lean_object* x_1761; lean_object* x_1762; lean_object* x_1763; lean_object* x_1764; lean_object* x_1765; lean_object* x_1766; lean_object* x_1767; +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +x_1752 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_1752, 0, x_1564); +x_1753 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_1754 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1754, 0, x_1753); +lean_ctor_set(x_1754, 1, x_1752); +x_1755 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_1756 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1756, 0, x_1754); +lean_ctor_set(x_1756, 1, x_1755); +x_1757 = x_11; +x_1758 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(x_1568, x_1757); +x_1759 = x_1758; +x_1760 = l_Array_toList___rarg(x_1759); +lean_dec(x_1759); +x_1761 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_1760); +x_1762 = l_Array_HasRepr___rarg___closed__1; +x_1763 = lean_string_append(x_1762, x_1761); +lean_dec(x_1761); +x_1764 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1764, 0, x_1763); +x_1765 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1765, 0, x_1764); +x_1766 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1766, 0, x_1756); +lean_ctor_set(x_1766, 1, x_1765); +x_1767 = l_Lean_Elab_Term_throwError___rarg(x_1766, x_1487, x_1750); +return x_1767; +} +else +{ +lean_object* x_1768; lean_object* x_1793; lean_object* x_1794; lean_object* x_1795; lean_object* x_1796; lean_object* x_1797; lean_object* x_1798; lean_object* x_1799; uint8_t x_1800; +lean_dec(x_1564); +lean_dec(x_11); +x_1793 = l_Lean_Elab_Term_getOptions(x_1487, x_1750); +x_1794 = lean_ctor_get(x_1793, 0); +lean_inc(x_1794); +x_1795 = lean_ctor_get(x_1793, 1); +lean_inc(x_1795); +lean_dec(x_1793); +x_1796 = l_Lean_Elab_Term_getCurrRef(x_1487, x_1795); +x_1797 = lean_ctor_get(x_1796, 0); +lean_inc(x_1797); +x_1798 = lean_ctor_get(x_1796, 1); +lean_inc(x_1798); +lean_dec(x_1796); +x_1799 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_1800 = l_Lean_checkTraceOption(x_1794, x_1799); +lean_dec(x_1794); +if (x_1800 == 0) +{ +lean_dec(x_1797); +x_1768 = x_1798; +goto block_1792; +} +else +{ +lean_object* x_1801; lean_object* x_1802; lean_object* x_1803; +lean_inc(x_2); +x_1801 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1801, 0, x_2); +lean_inc(x_1487); +x_1802 = l_Lean_Elab_Term_logTrace(x_1799, x_1797, x_1801, x_1487, x_1798); +lean_dec(x_1797); +x_1803 = lean_ctor_get(x_1802, 1); +lean_inc(x_1803); +lean_dec(x_1802); +x_1768 = x_1803; +goto block_1792; +} +block_1792: +{ +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_1769; +lean_dec(x_3); +x_1769 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_12, x_1568, x_1487, x_1768); +lean_dec(x_12); +if (lean_obj_tag(x_1769) == 0) +{ +lean_object* x_1770; lean_object* x_1771; lean_object* x_1772; +x_1770 = lean_ctor_get(x_1769, 1); +lean_inc(x_1770); +if (lean_is_exclusive(x_1769)) { + lean_ctor_release(x_1769, 0); + lean_ctor_release(x_1769, 1); + x_1771 = x_1769; +} else { + lean_dec_ref(x_1769); + x_1771 = lean_box(0); +} +if (lean_is_scalar(x_1771)) { + x_1772 = lean_alloc_ctor(0, 2, 0); +} else { + x_1772 = x_1771; +} +lean_ctor_set(x_1772, 0, x_2); +lean_ctor_set(x_1772, 1, x_1770); +return x_1772; +} +else +{ +lean_object* x_1773; lean_object* x_1774; lean_object* x_1775; lean_object* x_1776; +lean_dec(x_2); +x_1773 = lean_ctor_get(x_1769, 0); +lean_inc(x_1773); +x_1774 = lean_ctor_get(x_1769, 1); +lean_inc(x_1774); +if (lean_is_exclusive(x_1769)) { + lean_ctor_release(x_1769, 0); + lean_ctor_release(x_1769, 1); + x_1775 = x_1769; +} else { + lean_dec_ref(x_1769); + x_1775 = lean_box(0); +} +if (lean_is_scalar(x_1775)) { + x_1776 = lean_alloc_ctor(1, 2, 0); +} else { + x_1776 = x_1775; +} +lean_ctor_set(x_1776, 0, x_1773); +lean_ctor_set(x_1776, 1, x_1774); +return x_1776; +} +} +else +{ +lean_object* x_1777; lean_object* x_1778; +x_1777 = lean_ctor_get(x_8, 0); +lean_inc(x_1777); +lean_dec(x_8); +lean_inc(x_1487); +x_1778 = l_Lean_Elab_Term_isDefEq(x_1777, x_3, x_1487, x_1768); +if (lean_obj_tag(x_1778) == 0) +{ +lean_object* x_1779; lean_object* x_1780; +x_1779 = lean_ctor_get(x_1778, 1); +lean_inc(x_1779); +lean_dec(x_1778); +x_1780 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_12, x_1568, x_1487, x_1779); +lean_dec(x_12); +if (lean_obj_tag(x_1780) == 0) +{ +lean_object* x_1781; lean_object* x_1782; lean_object* x_1783; +x_1781 = lean_ctor_get(x_1780, 1); +lean_inc(x_1781); +if (lean_is_exclusive(x_1780)) { + lean_ctor_release(x_1780, 0); + lean_ctor_release(x_1780, 1); + x_1782 = x_1780; +} else { + lean_dec_ref(x_1780); + x_1782 = lean_box(0); +} +if (lean_is_scalar(x_1782)) { + x_1783 = lean_alloc_ctor(0, 2, 0); +} else { + x_1783 = x_1782; +} +lean_ctor_set(x_1783, 0, x_2); +lean_ctor_set(x_1783, 1, x_1781); +return x_1783; +} +else +{ +lean_object* x_1784; lean_object* x_1785; lean_object* x_1786; lean_object* x_1787; +lean_dec(x_2); +x_1784 = lean_ctor_get(x_1780, 0); +lean_inc(x_1784); +x_1785 = lean_ctor_get(x_1780, 1); +lean_inc(x_1785); +if (lean_is_exclusive(x_1780)) { + lean_ctor_release(x_1780, 0); + lean_ctor_release(x_1780, 1); + x_1786 = x_1780; +} else { + lean_dec_ref(x_1780); + x_1786 = lean_box(0); +} +if (lean_is_scalar(x_1786)) { + x_1787 = lean_alloc_ctor(1, 2, 0); +} else { + x_1787 = x_1786; +} +lean_ctor_set(x_1787, 0, x_1784); +lean_ctor_set(x_1787, 1, x_1785); +return x_1787; +} +} +else +{ +lean_object* x_1788; lean_object* x_1789; lean_object* x_1790; lean_object* x_1791; +lean_dec(x_1487); +lean_dec(x_12); +lean_dec(x_2); +x_1788 = lean_ctor_get(x_1778, 0); +lean_inc(x_1788); +x_1789 = lean_ctor_get(x_1778, 1); +lean_inc(x_1789); +if (lean_is_exclusive(x_1778)) { + lean_ctor_release(x_1778, 0); + lean_ctor_release(x_1778, 1); + x_1790 = x_1778; +} else { + lean_dec_ref(x_1778); + x_1790 = lean_box(0); +} +if (lean_is_scalar(x_1790)) { + x_1791 = lean_alloc_ctor(1, 2, 0); +} else { + x_1791 = x_1790; +} +lean_ctor_set(x_1791, 0, x_1788); +lean_ctor_set(x_1791, 1, x_1789); +return x_1791; +} +} +} +} +} +else +{ +lean_object* x_1804; lean_object* x_1805; lean_object* x_1806; +lean_dec(x_1564); +lean_dec(x_3); +x_1804 = lean_ctor_get(x_1748, 1); +lean_inc(x_1804); +lean_dec(x_1748); +x_1805 = lean_array_fget(x_7, x_10); +lean_inc(x_1487); +lean_inc(x_2); +x_1806 = l___private_Lean_Elab_App_2__elabArg(x_2, x_1805, x_1565, x_1487, x_1804); +if (lean_obj_tag(x_1806) == 0) +{ +lean_object* x_1807; lean_object* x_1808; lean_object* x_1809; lean_object* x_1810; uint8_t x_1811; lean_object* x_1812; lean_object* x_1813; lean_object* x_1814; +x_1807 = lean_ctor_get(x_1806, 0); +lean_inc(x_1807); +x_1808 = lean_ctor_get(x_1806, 1); +lean_inc(x_1808); +lean_dec(x_1806); +x_1809 = lean_unsigned_to_nat(1u); +x_1810 = lean_nat_add(x_10, x_1809); +lean_dec(x_10); +x_1811 = 1; +if (lean_is_scalar(x_1749)) { + x_1812 = lean_alloc_ctor(0, 7, 2); +} else { + x_1812 = x_1749; +} +lean_ctor_set(x_1812, 0, x_6); +lean_ctor_set(x_1812, 1, x_7); +lean_ctor_set(x_1812, 2, x_8); +lean_ctor_set(x_1812, 3, x_1810); +lean_ctor_set(x_1812, 4, x_11); +lean_ctor_set(x_1812, 5, x_12); +lean_ctor_set(x_1812, 6, x_13); +lean_ctor_set_uint8(x_1812, sizeof(void*)*7, x_9); +lean_ctor_set_uint8(x_1812, sizeof(void*)*7 + 1, x_1811); +lean_inc(x_1807); +x_1813 = l_Lean_mkApp(x_2, x_1807); +x_1814 = lean_expr_instantiate1(x_1566, x_1807); +lean_dec(x_1807); +lean_dec(x_1566); +x_1 = x_1812; +x_2 = x_1813; +x_3 = x_1814; +x_4 = x_1487; +x_5 = x_1808; +goto _start; +} +else +{ +lean_object* x_1816; lean_object* x_1817; lean_object* x_1818; lean_object* x_1819; +lean_dec(x_1749); +lean_dec(x_1566); +lean_dec(x_1487); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +x_1816 = lean_ctor_get(x_1806, 0); +lean_inc(x_1816); +x_1817 = lean_ctor_get(x_1806, 1); +lean_inc(x_1817); +if (lean_is_exclusive(x_1806)) { + lean_ctor_release(x_1806, 0); + lean_ctor_release(x_1806, 1); + x_1818 = x_1806; +} else { + lean_dec_ref(x_1806); + x_1818 = lean_box(0); +} +if (lean_is_scalar(x_1818)) { + x_1819 = lean_alloc_ctor(1, 2, 0); +} else { + x_1819 = x_1818; +} +lean_ctor_set(x_1819, 0, x_1816); +lean_ctor_set(x_1819, 1, x_1817); +return x_1819; +} +} +} +else +{ +lean_object* x_1820; lean_object* x_1821; lean_object* x_1822; lean_object* x_1823; +lean_dec(x_1749); +lean_dec(x_1566); +lean_dec(x_1565); +lean_dec(x_1564); +lean_dec(x_1487); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +x_1820 = lean_ctor_get(x_1748, 0); +lean_inc(x_1820); +x_1821 = lean_ctor_get(x_1748, 1); +lean_inc(x_1821); +if (lean_is_exclusive(x_1748)) { + lean_ctor_release(x_1748, 0); + lean_ctor_release(x_1748, 1); + x_1822 = x_1748; +} else { + lean_dec_ref(x_1748); + x_1822 = lean_box(0); +} +if (lean_is_scalar(x_1822)) { + x_1823 = lean_alloc_ctor(1, 2, 0); +} else { + x_1823 = x_1822; +} +lean_ctor_set(x_1823, 0, x_1820); +lean_ctor_set(x_1823, 1, x_1821); +return x_1823; +} +} +} +case 2: +{ +uint8_t x_1824; lean_object* x_1825; lean_object* x_1826; uint8_t x_1827; lean_object* x_1828; lean_object* x_1829; +x_1824 = 1; +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_1825 = lean_alloc_ctor(0, 7, 2); +lean_ctor_set(x_1825, 0, x_6); +lean_ctor_set(x_1825, 1, x_7); +lean_ctor_set(x_1825, 2, x_8); +lean_ctor_set(x_1825, 3, x_10); +lean_ctor_set(x_1825, 4, x_11); +lean_ctor_set(x_1825, 5, x_12); +lean_ctor_set(x_1825, 6, x_13); +lean_ctor_set_uint8(x_1825, sizeof(void*)*7, x_9); +lean_ctor_set_uint8(x_1825, sizeof(void*)*7 + 1, x_1824); +x_1826 = lean_array_get_size(x_7); +x_1827 = lean_nat_dec_lt(x_10, x_1826); +lean_dec(x_1826); +lean_inc(x_1487); +lean_inc(x_1); +x_1828 = l___private_Lean_Elab_App_8__propagateExpectedType(x_1, x_1489, x_1487, x_1490); +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + lean_ctor_release(x_1, 2); + lean_ctor_release(x_1, 3); + lean_ctor_release(x_1, 4); + lean_ctor_release(x_1, 5); + lean_ctor_release(x_1, 6); + x_1829 = x_1; +} else { + lean_dec_ref(x_1); + x_1829 = lean_box(0); +} +if (lean_obj_tag(x_1828) == 0) +{ +lean_object* x_1830; lean_object* x_1831; +x_1830 = lean_ctor_get(x_1828, 1); +lean_inc(x_1830); +lean_dec(x_1828); +if (x_1827 == 0) +{ +lean_dec(x_1829); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_7); +if (x_9 == 0) +{ +lean_object* x_1886; +x_1886 = l_Lean_Expr_getOptParamDefault_x3f(x_1565); +if (lean_obj_tag(x_1886) == 0) +{ +lean_object* x_1887; +x_1887 = l_Lean_Expr_getAutoParamTactic_x3f(x_1565); +if (lean_obj_tag(x_1887) == 0) +{ +lean_object* x_1888; +lean_dec(x_1825); +lean_dec(x_1566); +lean_dec(x_1565); +lean_dec(x_6); +x_1888 = lean_box(0); +x_1831 = x_1888; +goto block_1885; +} +else +{ +lean_object* x_1889; +lean_dec(x_1564); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_8); +lean_dec(x_3); +x_1889 = lean_ctor_get(x_1887, 0); +lean_inc(x_1889); +lean_dec(x_1887); +if (lean_obj_tag(x_1889) == 4) +{ +lean_object* x_1890; lean_object* x_1891; lean_object* x_1892; lean_object* x_1893; lean_object* x_1894; +x_1890 = lean_ctor_get(x_1889, 0); +lean_inc(x_1890); +lean_dec(x_1889); +x_1891 = l_Lean_Elab_Term_getEnv___rarg(x_1830); +x_1892 = lean_ctor_get(x_1891, 0); +lean_inc(x_1892); +x_1893 = lean_ctor_get(x_1891, 1); +lean_inc(x_1893); +lean_dec(x_1891); +x_1894 = l___private_Lean_Elab_Util_1__evalSyntaxConstantUnsafe(x_1892, x_1890); +if (lean_obj_tag(x_1894) == 0) +{ +lean_object* x_1895; lean_object* x_1896; lean_object* x_1897; lean_object* x_1898; +lean_dec(x_1825); +lean_dec(x_1566); +lean_dec(x_1565); +lean_dec(x_6); +lean_dec(x_2); +x_1895 = lean_ctor_get(x_1894, 0); +lean_inc(x_1895); +lean_dec(x_1894); +x_1896 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1896, 0, x_1895); +x_1897 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1897, 0, x_1896); +x_1898 = l_Lean_Elab_Term_throwError___rarg(x_1897, x_1487, x_1893); +return x_1898; +} +else +{ +lean_object* x_1899; lean_object* x_1900; lean_object* x_1901; lean_object* x_1902; lean_object* x_1903; lean_object* x_1904; lean_object* x_1905; lean_object* x_1906; lean_object* x_1907; lean_object* x_1908; lean_object* x_1909; lean_object* x_1910; lean_object* x_1911; lean_object* x_1912; lean_object* x_1913; lean_object* x_1914; lean_object* x_1915; lean_object* x_1916; lean_object* x_1917; lean_object* x_1918; lean_object* x_1919; lean_object* x_1920; lean_object* x_1921; lean_object* x_1922; lean_object* x_1923; +x_1899 = lean_ctor_get(x_1894, 0); +lean_inc(x_1899); +lean_dec(x_1894); +x_1900 = l_Lean_Elab_Term_getCurrMacroScope(x_1487, x_1893); +x_1901 = lean_ctor_get(x_1900, 1); +lean_inc(x_1901); +lean_dec(x_1900); +x_1902 = l_Lean_Elab_Term_getMainModule___rarg(x_1901); +x_1903 = lean_ctor_get(x_1902, 1); +lean_inc(x_1903); +lean_dec(x_1902); +x_1904 = l_Lean_Syntax_getArgs(x_1899); +lean_dec(x_1899); +x_1905 = l_Array_empty___closed__1; +x_1906 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1904, x_1904, x_1568, x_1905); +lean_dec(x_1904); +x_1907 = l_Lean_nullKind___closed__2; +x_1908 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1908, 0, x_1907); +lean_ctor_set(x_1908, 1, x_1906); +x_1909 = lean_array_push(x_1905, x_1908); +x_1910 = l_Lean_PrettyPrinter_Parenthesizer_tacticParser_parenthesizer___lambda__1___closed__4; +x_1911 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1911, 0, x_1910); +lean_ctor_set(x_1911, 1, x_1909); +x_1912 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__15; +x_1913 = lean_array_push(x_1912, x_1911); +x_1914 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__16; +x_1915 = lean_array_push(x_1913, x_1914); +x_1916 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; +x_1917 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1917, 0, x_1916); +lean_ctor_set(x_1917, 1, x_1915); +x_1918 = l_Lean_Syntax_getHeadInfo___main(x_6); +lean_dec(x_6); +x_1919 = l_Lean_Expr_getAppNumArgsAux___main(x_1565, x_1568); +x_1920 = lean_nat_sub(x_1919, x_1568); +lean_dec(x_1919); +x_1921 = lean_unsigned_to_nat(1u); +x_1922 = lean_nat_sub(x_1920, x_1921); +lean_dec(x_1920); +x_1923 = l_Lean_Expr_getRevArg_x21___main(x_1565, x_1922); +lean_dec(x_1565); +if (lean_obj_tag(x_1918) == 0) +{ +lean_object* x_1924; lean_object* x_1925; +x_1924 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1924, 0, x_1917); +lean_inc(x_1487); +lean_inc(x_2); +x_1925 = l___private_Lean_Elab_App_2__elabArg(x_2, x_1924, x_1923, x_1487, x_1903); +if (lean_obj_tag(x_1925) == 0) +{ +lean_object* x_1926; lean_object* x_1927; lean_object* x_1928; lean_object* x_1929; +x_1926 = lean_ctor_get(x_1925, 0); +lean_inc(x_1926); +x_1927 = lean_ctor_get(x_1925, 1); +lean_inc(x_1927); +lean_dec(x_1925); +lean_inc(x_1926); +x_1928 = l_Lean_mkApp(x_2, x_1926); +x_1929 = lean_expr_instantiate1(x_1566, x_1926); +lean_dec(x_1926); +lean_dec(x_1566); +x_1 = x_1825; +x_2 = x_1928; +x_3 = x_1929; +x_4 = x_1487; +x_5 = x_1927; +goto _start; +} +else +{ +lean_object* x_1931; lean_object* x_1932; lean_object* x_1933; lean_object* x_1934; +lean_dec(x_1825); +lean_dec(x_1566); +lean_dec(x_1487); +lean_dec(x_2); +x_1931 = lean_ctor_get(x_1925, 0); +lean_inc(x_1931); +x_1932 = lean_ctor_get(x_1925, 1); +lean_inc(x_1932); +if (lean_is_exclusive(x_1925)) { + lean_ctor_release(x_1925, 0); + lean_ctor_release(x_1925, 1); + x_1933 = x_1925; +} else { + lean_dec_ref(x_1925); + x_1933 = lean_box(0); +} +if (lean_is_scalar(x_1933)) { + x_1934 = lean_alloc_ctor(1, 2, 0); +} else { + x_1934 = x_1933; +} +lean_ctor_set(x_1934, 0, x_1931); +lean_ctor_set(x_1934, 1, x_1932); +return x_1934; +} +} +else +{ +lean_object* x_1935; lean_object* x_1936; lean_object* x_1937; lean_object* x_1938; +x_1935 = lean_ctor_get(x_1918, 0); +lean_inc(x_1935); +lean_dec(x_1918); +x_1936 = l_Lean_Syntax_replaceInfo___main(x_1935, x_1917); +x_1937 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1937, 0, x_1936); +lean_inc(x_1487); +lean_inc(x_2); +x_1938 = l___private_Lean_Elab_App_2__elabArg(x_2, x_1937, x_1923, x_1487, x_1903); +if (lean_obj_tag(x_1938) == 0) +{ +lean_object* x_1939; lean_object* x_1940; lean_object* x_1941; lean_object* x_1942; +x_1939 = lean_ctor_get(x_1938, 0); +lean_inc(x_1939); +x_1940 = lean_ctor_get(x_1938, 1); +lean_inc(x_1940); +lean_dec(x_1938); +lean_inc(x_1939); +x_1941 = l_Lean_mkApp(x_2, x_1939); +x_1942 = lean_expr_instantiate1(x_1566, x_1939); +lean_dec(x_1939); +lean_dec(x_1566); +x_1 = x_1825; +x_2 = x_1941; +x_3 = x_1942; +x_4 = x_1487; +x_5 = x_1940; +goto _start; +} +else +{ +lean_object* x_1944; lean_object* x_1945; lean_object* x_1946; lean_object* x_1947; +lean_dec(x_1825); +lean_dec(x_1566); +lean_dec(x_1487); +lean_dec(x_2); +x_1944 = lean_ctor_get(x_1938, 0); +lean_inc(x_1944); +x_1945 = lean_ctor_get(x_1938, 1); +lean_inc(x_1945); +if (lean_is_exclusive(x_1938)) { + lean_ctor_release(x_1938, 0); + lean_ctor_release(x_1938, 1); + x_1946 = x_1938; +} else { + lean_dec_ref(x_1938); + x_1946 = lean_box(0); +} +if (lean_is_scalar(x_1946)) { + x_1947 = lean_alloc_ctor(1, 2, 0); +} else { + x_1947 = x_1946; +} +lean_ctor_set(x_1947, 0, x_1944); +lean_ctor_set(x_1947, 1, x_1945); +return x_1947; +} +} +} +} +else +{ +lean_object* x_1948; lean_object* x_1949; +lean_dec(x_1889); +lean_dec(x_1825); +lean_dec(x_1566); +lean_dec(x_1565); +lean_dec(x_6); +lean_dec(x_2); +x_1948 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__12; +x_1949 = l_Lean_Elab_Term_throwError___rarg(x_1948, x_1487, x_1830); +return x_1949; +} +} +} +else +{ +lean_object* x_1950; lean_object* x_1951; lean_object* x_1952; +lean_dec(x_1565); +lean_dec(x_1564); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_3); +x_1950 = lean_ctor_get(x_1886, 0); +lean_inc(x_1950); +lean_dec(x_1886); +lean_inc(x_1950); +x_1951 = l_Lean_mkApp(x_2, x_1950); +x_1952 = lean_expr_instantiate1(x_1566, x_1950); +lean_dec(x_1950); +lean_dec(x_1566); +x_1 = x_1825; +x_2 = x_1951; +x_3 = x_1952; +x_4 = x_1487; +x_5 = x_1830; +goto _start; +} +} +else +{ +lean_object* x_1954; +lean_dec(x_1825); +lean_dec(x_1566); +lean_dec(x_1565); +lean_dec(x_6); +x_1954 = lean_box(0); +x_1831 = x_1954; +goto block_1885; +} +} +else +{ +lean_object* x_1955; lean_object* x_1956; +lean_dec(x_1825); +lean_dec(x_1564); +lean_dec(x_3); +x_1955 = lean_array_fget(x_7, x_10); +lean_inc(x_1487); +lean_inc(x_2); +x_1956 = l___private_Lean_Elab_App_2__elabArg(x_2, x_1955, x_1565, x_1487, x_1830); +if (lean_obj_tag(x_1956) == 0) +{ +lean_object* x_1957; lean_object* x_1958; lean_object* x_1959; lean_object* x_1960; lean_object* x_1961; lean_object* x_1962; lean_object* x_1963; +x_1957 = lean_ctor_get(x_1956, 0); +lean_inc(x_1957); +x_1958 = lean_ctor_get(x_1956, 1); +lean_inc(x_1958); +lean_dec(x_1956); +x_1959 = lean_unsigned_to_nat(1u); +x_1960 = lean_nat_add(x_10, x_1959); +lean_dec(x_10); +if (lean_is_scalar(x_1829)) { + x_1961 = lean_alloc_ctor(0, 7, 2); +} else { + x_1961 = x_1829; +} +lean_ctor_set(x_1961, 0, x_6); +lean_ctor_set(x_1961, 1, x_7); +lean_ctor_set(x_1961, 2, x_8); +lean_ctor_set(x_1961, 3, x_1960); +lean_ctor_set(x_1961, 4, x_11); +lean_ctor_set(x_1961, 5, x_12); +lean_ctor_set(x_1961, 6, x_13); +lean_ctor_set_uint8(x_1961, sizeof(void*)*7, x_9); +lean_ctor_set_uint8(x_1961, sizeof(void*)*7 + 1, x_1824); +lean_inc(x_1957); +x_1962 = l_Lean_mkApp(x_2, x_1957); +x_1963 = lean_expr_instantiate1(x_1566, x_1957); +lean_dec(x_1957); +lean_dec(x_1566); +x_1 = x_1961; +x_2 = x_1962; +x_3 = x_1963; +x_4 = x_1487; +x_5 = x_1958; +goto _start; +} +else +{ +lean_object* x_1965; lean_object* x_1966; lean_object* x_1967; lean_object* x_1968; +lean_dec(x_1829); +lean_dec(x_1566); +lean_dec(x_1487); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +x_1965 = lean_ctor_get(x_1956, 0); +lean_inc(x_1965); +x_1966 = lean_ctor_get(x_1956, 1); +lean_inc(x_1966); +if (lean_is_exclusive(x_1956)) { + lean_ctor_release(x_1956, 0); + lean_ctor_release(x_1956, 1); + x_1967 = x_1956; +} else { + lean_dec_ref(x_1956); + x_1967 = lean_box(0); +} +if (lean_is_scalar(x_1967)) { + x_1968 = lean_alloc_ctor(1, 2, 0); +} else { + x_1968 = x_1967; +} +lean_ctor_set(x_1968, 0, x_1965); +lean_ctor_set(x_1968, 1, x_1966); +return x_1968; +} +} +block_1885: +{ +uint8_t x_1832; +lean_dec(x_1831); +x_1832 = l_Array_isEmpty___rarg(x_11); +if (x_1832 == 0) +{ +lean_object* x_1833; lean_object* x_1834; lean_object* x_1835; lean_object* x_1836; lean_object* x_1837; lean_object* x_1838; lean_object* x_1839; lean_object* x_1840; lean_object* x_1841; lean_object* x_1842; lean_object* x_1843; lean_object* x_1844; lean_object* x_1845; lean_object* x_1846; lean_object* x_1847; lean_object* x_1848; +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +x_1833 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_1833, 0, x_1564); +x_1834 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_1835 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1835, 0, x_1834); +lean_ctor_set(x_1835, 1, x_1833); +x_1836 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_1837 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1837, 0, x_1835); +lean_ctor_set(x_1837, 1, x_1836); +x_1838 = x_11; +x_1839 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(x_1568, x_1838); +x_1840 = x_1839; +x_1841 = l_Array_toList___rarg(x_1840); +lean_dec(x_1840); +x_1842 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_1841); +x_1843 = l_Array_HasRepr___rarg___closed__1; +x_1844 = lean_string_append(x_1843, x_1842); +lean_dec(x_1842); +x_1845 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1845, 0, x_1844); +x_1846 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1846, 0, x_1845); +x_1847 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1847, 0, x_1837); +lean_ctor_set(x_1847, 1, x_1846); +x_1848 = l_Lean_Elab_Term_throwError___rarg(x_1847, x_1487, x_1830); +return x_1848; +} +else +{ +lean_object* x_1849; lean_object* x_1874; lean_object* x_1875; lean_object* x_1876; lean_object* x_1877; lean_object* x_1878; lean_object* x_1879; lean_object* x_1880; uint8_t x_1881; +lean_dec(x_1564); +lean_dec(x_11); +x_1874 = l_Lean_Elab_Term_getOptions(x_1487, x_1830); +x_1875 = lean_ctor_get(x_1874, 0); +lean_inc(x_1875); +x_1876 = lean_ctor_get(x_1874, 1); +lean_inc(x_1876); +lean_dec(x_1874); +x_1877 = l_Lean_Elab_Term_getCurrRef(x_1487, x_1876); +x_1878 = lean_ctor_get(x_1877, 0); +lean_inc(x_1878); +x_1879 = lean_ctor_get(x_1877, 1); +lean_inc(x_1879); +lean_dec(x_1877); +x_1880 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_1881 = l_Lean_checkTraceOption(x_1875, x_1880); +lean_dec(x_1875); +if (x_1881 == 0) +{ +lean_dec(x_1878); +x_1849 = x_1879; +goto block_1873; +} +else +{ +lean_object* x_1882; lean_object* x_1883; lean_object* x_1884; +lean_inc(x_2); +x_1882 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1882, 0, x_2); +lean_inc(x_1487); +x_1883 = l_Lean_Elab_Term_logTrace(x_1880, x_1878, x_1882, x_1487, x_1879); +lean_dec(x_1878); +x_1884 = lean_ctor_get(x_1883, 1); +lean_inc(x_1884); +lean_dec(x_1883); +x_1849 = x_1884; +goto block_1873; +} +block_1873: +{ +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_1850; +lean_dec(x_3); +x_1850 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_12, x_1568, x_1487, x_1849); +lean_dec(x_12); +if (lean_obj_tag(x_1850) == 0) +{ +lean_object* x_1851; lean_object* x_1852; lean_object* x_1853; +x_1851 = lean_ctor_get(x_1850, 1); +lean_inc(x_1851); +if (lean_is_exclusive(x_1850)) { + lean_ctor_release(x_1850, 0); + lean_ctor_release(x_1850, 1); + x_1852 = x_1850; +} else { + lean_dec_ref(x_1850); + x_1852 = lean_box(0); +} +if (lean_is_scalar(x_1852)) { + x_1853 = lean_alloc_ctor(0, 2, 0); +} else { + x_1853 = x_1852; +} +lean_ctor_set(x_1853, 0, x_2); +lean_ctor_set(x_1853, 1, x_1851); +return x_1853; +} +else +{ +lean_object* x_1854; lean_object* x_1855; lean_object* x_1856; lean_object* x_1857; +lean_dec(x_2); +x_1854 = lean_ctor_get(x_1850, 0); +lean_inc(x_1854); +x_1855 = lean_ctor_get(x_1850, 1); +lean_inc(x_1855); +if (lean_is_exclusive(x_1850)) { + lean_ctor_release(x_1850, 0); + lean_ctor_release(x_1850, 1); + x_1856 = x_1850; +} else { + lean_dec_ref(x_1850); + x_1856 = lean_box(0); +} +if (lean_is_scalar(x_1856)) { + x_1857 = lean_alloc_ctor(1, 2, 0); +} else { + x_1857 = x_1856; +} +lean_ctor_set(x_1857, 0, x_1854); +lean_ctor_set(x_1857, 1, x_1855); +return x_1857; +} +} +else +{ +lean_object* x_1858; lean_object* x_1859; +x_1858 = lean_ctor_get(x_8, 0); +lean_inc(x_1858); +lean_dec(x_8); +lean_inc(x_1487); +x_1859 = l_Lean_Elab_Term_isDefEq(x_1858, x_3, x_1487, x_1849); +if (lean_obj_tag(x_1859) == 0) +{ +lean_object* x_1860; lean_object* x_1861; +x_1860 = lean_ctor_get(x_1859, 1); +lean_inc(x_1860); +lean_dec(x_1859); +x_1861 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_12, x_1568, x_1487, x_1860); +lean_dec(x_12); +if (lean_obj_tag(x_1861) == 0) +{ +lean_object* x_1862; lean_object* x_1863; lean_object* x_1864; +x_1862 = lean_ctor_get(x_1861, 1); +lean_inc(x_1862); +if (lean_is_exclusive(x_1861)) { + lean_ctor_release(x_1861, 0); + lean_ctor_release(x_1861, 1); + x_1863 = x_1861; +} else { + lean_dec_ref(x_1861); + x_1863 = lean_box(0); +} +if (lean_is_scalar(x_1863)) { + x_1864 = lean_alloc_ctor(0, 2, 0); +} else { + x_1864 = x_1863; +} +lean_ctor_set(x_1864, 0, x_2); +lean_ctor_set(x_1864, 1, x_1862); +return x_1864; +} +else +{ +lean_object* x_1865; lean_object* x_1866; lean_object* x_1867; lean_object* x_1868; +lean_dec(x_2); +x_1865 = lean_ctor_get(x_1861, 0); +lean_inc(x_1865); +x_1866 = lean_ctor_get(x_1861, 1); +lean_inc(x_1866); +if (lean_is_exclusive(x_1861)) { + lean_ctor_release(x_1861, 0); + lean_ctor_release(x_1861, 1); + x_1867 = x_1861; +} else { + lean_dec_ref(x_1861); + x_1867 = lean_box(0); +} +if (lean_is_scalar(x_1867)) { + x_1868 = lean_alloc_ctor(1, 2, 0); +} else { + x_1868 = x_1867; +} +lean_ctor_set(x_1868, 0, x_1865); +lean_ctor_set(x_1868, 1, x_1866); +return x_1868; +} +} +else +{ +lean_object* x_1869; lean_object* x_1870; lean_object* x_1871; lean_object* x_1872; +lean_dec(x_1487); +lean_dec(x_12); +lean_dec(x_2); +x_1869 = lean_ctor_get(x_1859, 0); +lean_inc(x_1869); +x_1870 = lean_ctor_get(x_1859, 1); +lean_inc(x_1870); +if (lean_is_exclusive(x_1859)) { + lean_ctor_release(x_1859, 0); + lean_ctor_release(x_1859, 1); + x_1871 = x_1859; +} else { + lean_dec_ref(x_1859); + x_1871 = lean_box(0); +} +if (lean_is_scalar(x_1871)) { + x_1872 = lean_alloc_ctor(1, 2, 0); +} else { + x_1872 = x_1871; +} +lean_ctor_set(x_1872, 0, x_1869); +lean_ctor_set(x_1872, 1, x_1870); +return x_1872; +} +} +} +} +} +} +else +{ +lean_object* x_1969; lean_object* x_1970; lean_object* x_1971; lean_object* x_1972; +lean_dec(x_1829); +lean_dec(x_1825); +lean_dec(x_1566); +lean_dec(x_1565); +lean_dec(x_1564); +lean_dec(x_1487); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +x_1969 = lean_ctor_get(x_1828, 0); +lean_inc(x_1969); +x_1970 = lean_ctor_get(x_1828, 1); +lean_inc(x_1970); +if (lean_is_exclusive(x_1828)) { + lean_ctor_release(x_1828, 0); + lean_ctor_release(x_1828, 1); + x_1971 = x_1828; +} else { + lean_dec_ref(x_1828); + x_1971 = lean_box(0); +} +if (lean_is_scalar(x_1971)) { + x_1972 = lean_alloc_ctor(1, 2, 0); +} else { + x_1972 = x_1971; +} +lean_ctor_set(x_1972, 0, x_1969); +lean_ctor_set(x_1972, 1, x_1970); +return x_1972; +} +} +case 3: +{ +if (x_9 == 0) +{ +lean_object* x_1973; lean_object* x_1974; uint8_t x_1975; lean_object* x_1976; lean_object* x_1977; lean_object* x_1978; lean_object* x_1979; lean_object* x_1980; lean_object* x_1981; lean_object* x_1982; lean_object* x_1983; lean_object* x_1984; +lean_dec(x_1564); +lean_dec(x_1489); +lean_dec(x_3); +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + lean_ctor_release(x_1, 2); + lean_ctor_release(x_1, 3); + lean_ctor_release(x_1, 4); + lean_ctor_release(x_1, 5); + lean_ctor_release(x_1, 6); + x_1973 = x_1; +} else { + lean_dec_ref(x_1); + x_1973 = lean_box(0); +} +x_1974 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1974, 0, x_1565); +x_1975 = 1; +x_1976 = lean_box(0); +lean_inc(x_1487); +x_1977 = l_Lean_Elab_Term_mkFreshExprMVar(x_1974, x_1975, x_1976, x_1487, x_1490); +x_1978 = lean_ctor_get(x_1977, 0); +lean_inc(x_1978); +x_1979 = lean_ctor_get(x_1977, 1); +lean_inc(x_1979); +lean_dec(x_1977); +x_1980 = l_Lean_Expr_mvarId_x21(x_1978); +x_1981 = lean_array_push(x_12, x_1980); +if (lean_is_scalar(x_1973)) { + x_1982 = lean_alloc_ctor(0, 7, 2); +} else { + x_1982 = x_1973; +} +lean_ctor_set(x_1982, 0, x_6); +lean_ctor_set(x_1982, 1, x_7); +lean_ctor_set(x_1982, 2, x_8); +lean_ctor_set(x_1982, 3, x_10); +lean_ctor_set(x_1982, 4, x_11); +lean_ctor_set(x_1982, 5, x_1981); +lean_ctor_set(x_1982, 6, x_13); +lean_ctor_set_uint8(x_1982, sizeof(void*)*7, x_9); +lean_ctor_set_uint8(x_1982, sizeof(void*)*7 + 1, x_1473); +lean_inc(x_1978); +x_1983 = l_Lean_mkApp(x_2, x_1978); +x_1984 = lean_expr_instantiate1(x_1566, x_1978); +lean_dec(x_1978); +lean_dec(x_1566); +x_1 = x_1982; +x_2 = x_1983; +x_3 = x_1984; +x_4 = x_1487; +x_5 = x_1979; +goto _start; +} +else +{ +uint8_t x_1986; +x_1986 = l___private_Lean_Elab_App_9__nextArgIsHole(x_1); +if (x_1986 == 0) +{ +lean_object* x_1987; uint8_t x_1988; lean_object* x_1989; lean_object* x_1990; +x_1987 = lean_array_get_size(x_7); +x_1988 = lean_nat_dec_lt(x_10, x_1987); +lean_dec(x_1987); +lean_inc(x_1487); +lean_inc(x_1); +x_1989 = l___private_Lean_Elab_App_8__propagateExpectedType(x_1, x_1489, x_1487, x_1490); +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + lean_ctor_release(x_1, 2); + lean_ctor_release(x_1, 3); + lean_ctor_release(x_1, 4); + lean_ctor_release(x_1, 5); + lean_ctor_release(x_1, 6); + x_1990 = x_1; +} else { + lean_dec_ref(x_1); + x_1990 = lean_box(0); +} +if (lean_obj_tag(x_1989) == 0) +{ +if (x_1988 == 0) +{ +lean_object* x_1991; uint8_t x_1992; +lean_dec(x_1990); +lean_dec(x_1566); +lean_dec(x_1565); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +x_1991 = lean_ctor_get(x_1989, 1); +lean_inc(x_1991); +lean_dec(x_1989); +x_1992 = l_Array_isEmpty___rarg(x_11); +if (x_1992 == 0) +{ +lean_object* x_1993; lean_object* x_1994; lean_object* x_1995; lean_object* x_1996; lean_object* x_1997; lean_object* x_1998; lean_object* x_1999; lean_object* x_2000; lean_object* x_2001; lean_object* x_2002; lean_object* x_2003; lean_object* x_2004; lean_object* x_2005; lean_object* x_2006; lean_object* x_2007; lean_object* x_2008; +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +x_1993 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_1993, 0, x_1564); +x_1994 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_1995 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1995, 0, x_1994); +lean_ctor_set(x_1995, 1, x_1993); +x_1996 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_1997 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1997, 0, x_1995); +lean_ctor_set(x_1997, 1, x_1996); +x_1998 = x_11; +x_1999 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(x_1568, x_1998); +x_2000 = x_1999; +x_2001 = l_Array_toList___rarg(x_2000); +lean_dec(x_2000); +x_2002 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_2001); +x_2003 = l_Array_HasRepr___rarg___closed__1; +x_2004 = lean_string_append(x_2003, x_2002); +lean_dec(x_2002); +x_2005 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2005, 0, x_2004); +x_2006 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2006, 0, x_2005); +x_2007 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_2007, 0, x_1997); +lean_ctor_set(x_2007, 1, x_2006); +x_2008 = l_Lean_Elab_Term_throwError___rarg(x_2007, x_1487, x_1991); +return x_2008; +} +else +{ +lean_object* x_2009; lean_object* x_2034; lean_object* x_2035; lean_object* x_2036; lean_object* x_2037; lean_object* x_2038; lean_object* x_2039; lean_object* x_2040; uint8_t x_2041; +lean_dec(x_1564); +lean_dec(x_11); +x_2034 = l_Lean_Elab_Term_getOptions(x_1487, x_1991); +x_2035 = lean_ctor_get(x_2034, 0); +lean_inc(x_2035); +x_2036 = lean_ctor_get(x_2034, 1); +lean_inc(x_2036); +lean_dec(x_2034); +x_2037 = l_Lean_Elab_Term_getCurrRef(x_1487, x_2036); +x_2038 = lean_ctor_get(x_2037, 0); +lean_inc(x_2038); +x_2039 = lean_ctor_get(x_2037, 1); +lean_inc(x_2039); +lean_dec(x_2037); +x_2040 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_2041 = l_Lean_checkTraceOption(x_2035, x_2040); +lean_dec(x_2035); +if (x_2041 == 0) +{ +lean_dec(x_2038); +x_2009 = x_2039; +goto block_2033; +} +else +{ +lean_object* x_2042; lean_object* x_2043; lean_object* x_2044; +lean_inc(x_2); +x_2042 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2042, 0, x_2); +lean_inc(x_1487); +x_2043 = l_Lean_Elab_Term_logTrace(x_2040, x_2038, x_2042, x_1487, x_2039); +lean_dec(x_2038); +x_2044 = lean_ctor_get(x_2043, 1); +lean_inc(x_2044); +lean_dec(x_2043); +x_2009 = x_2044; +goto block_2033; +} +block_2033: +{ +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_2010; +lean_dec(x_3); +x_2010 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_12, x_1568, x_1487, x_2009); +lean_dec(x_12); +if (lean_obj_tag(x_2010) == 0) +{ +lean_object* x_2011; lean_object* x_2012; lean_object* x_2013; +x_2011 = lean_ctor_get(x_2010, 1); +lean_inc(x_2011); +if (lean_is_exclusive(x_2010)) { + lean_ctor_release(x_2010, 0); + lean_ctor_release(x_2010, 1); + x_2012 = x_2010; +} else { + lean_dec_ref(x_2010); + x_2012 = lean_box(0); +} +if (lean_is_scalar(x_2012)) { + x_2013 = lean_alloc_ctor(0, 2, 0); +} else { + x_2013 = x_2012; +} +lean_ctor_set(x_2013, 0, x_2); +lean_ctor_set(x_2013, 1, x_2011); +return x_2013; +} +else +{ +lean_object* x_2014; lean_object* x_2015; lean_object* x_2016; lean_object* x_2017; +lean_dec(x_2); +x_2014 = lean_ctor_get(x_2010, 0); +lean_inc(x_2014); +x_2015 = lean_ctor_get(x_2010, 1); +lean_inc(x_2015); +if (lean_is_exclusive(x_2010)) { + lean_ctor_release(x_2010, 0); + lean_ctor_release(x_2010, 1); + x_2016 = x_2010; +} else { + lean_dec_ref(x_2010); + x_2016 = lean_box(0); +} +if (lean_is_scalar(x_2016)) { + x_2017 = lean_alloc_ctor(1, 2, 0); +} else { + x_2017 = x_2016; +} +lean_ctor_set(x_2017, 0, x_2014); +lean_ctor_set(x_2017, 1, x_2015); +return x_2017; +} +} +else +{ +lean_object* x_2018; lean_object* x_2019; +x_2018 = lean_ctor_get(x_8, 0); +lean_inc(x_2018); +lean_dec(x_8); +lean_inc(x_1487); +x_2019 = l_Lean_Elab_Term_isDefEq(x_2018, x_3, x_1487, x_2009); +if (lean_obj_tag(x_2019) == 0) +{ +lean_object* x_2020; lean_object* x_2021; +x_2020 = lean_ctor_get(x_2019, 1); +lean_inc(x_2020); +lean_dec(x_2019); +x_2021 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_12, x_1568, x_1487, x_2020); +lean_dec(x_12); +if (lean_obj_tag(x_2021) == 0) +{ +lean_object* x_2022; lean_object* x_2023; lean_object* x_2024; +x_2022 = lean_ctor_get(x_2021, 1); +lean_inc(x_2022); +if (lean_is_exclusive(x_2021)) { + lean_ctor_release(x_2021, 0); + lean_ctor_release(x_2021, 1); + x_2023 = x_2021; +} else { + lean_dec_ref(x_2021); + x_2023 = lean_box(0); +} +if (lean_is_scalar(x_2023)) { + x_2024 = lean_alloc_ctor(0, 2, 0); +} else { + x_2024 = x_2023; +} +lean_ctor_set(x_2024, 0, x_2); +lean_ctor_set(x_2024, 1, x_2022); +return x_2024; +} +else +{ +lean_object* x_2025; lean_object* x_2026; lean_object* x_2027; lean_object* x_2028; +lean_dec(x_2); +x_2025 = lean_ctor_get(x_2021, 0); +lean_inc(x_2025); +x_2026 = lean_ctor_get(x_2021, 1); +lean_inc(x_2026); +if (lean_is_exclusive(x_2021)) { + lean_ctor_release(x_2021, 0); + lean_ctor_release(x_2021, 1); + x_2027 = x_2021; +} else { + lean_dec_ref(x_2021); + x_2027 = lean_box(0); +} +if (lean_is_scalar(x_2027)) { + x_2028 = lean_alloc_ctor(1, 2, 0); +} else { + x_2028 = x_2027; +} +lean_ctor_set(x_2028, 0, x_2025); +lean_ctor_set(x_2028, 1, x_2026); +return x_2028; +} +} +else +{ +lean_object* x_2029; lean_object* x_2030; lean_object* x_2031; lean_object* x_2032; +lean_dec(x_1487); +lean_dec(x_12); +lean_dec(x_2); +x_2029 = lean_ctor_get(x_2019, 0); +lean_inc(x_2029); +x_2030 = lean_ctor_get(x_2019, 1); +lean_inc(x_2030); +if (lean_is_exclusive(x_2019)) { + lean_ctor_release(x_2019, 0); + lean_ctor_release(x_2019, 1); + x_2031 = x_2019; +} else { + lean_dec_ref(x_2019); + x_2031 = lean_box(0); +} +if (lean_is_scalar(x_2031)) { + x_2032 = lean_alloc_ctor(1, 2, 0); +} else { + x_2032 = x_2031; +} +lean_ctor_set(x_2032, 0, x_2029); +lean_ctor_set(x_2032, 1, x_2030); +return x_2032; +} +} +} +} +} +else +{ +lean_object* x_2045; lean_object* x_2046; lean_object* x_2047; +lean_dec(x_1564); +lean_dec(x_3); +x_2045 = lean_ctor_get(x_1989, 1); +lean_inc(x_2045); +lean_dec(x_1989); +x_2046 = lean_array_fget(x_7, x_10); +lean_inc(x_1487); +lean_inc(x_2); +x_2047 = l___private_Lean_Elab_App_2__elabArg(x_2, x_2046, x_1565, x_1487, x_2045); +if (lean_obj_tag(x_2047) == 0) +{ +lean_object* x_2048; lean_object* x_2049; lean_object* x_2050; lean_object* x_2051; uint8_t x_2052; lean_object* x_2053; lean_object* x_2054; lean_object* x_2055; +x_2048 = lean_ctor_get(x_2047, 0); +lean_inc(x_2048); +x_2049 = lean_ctor_get(x_2047, 1); +lean_inc(x_2049); +lean_dec(x_2047); +x_2050 = lean_unsigned_to_nat(1u); +x_2051 = lean_nat_add(x_10, x_2050); +lean_dec(x_10); +x_2052 = 1; +if (lean_is_scalar(x_1990)) { + x_2053 = lean_alloc_ctor(0, 7, 2); +} else { + x_2053 = x_1990; +} +lean_ctor_set(x_2053, 0, x_6); +lean_ctor_set(x_2053, 1, x_7); +lean_ctor_set(x_2053, 2, x_8); +lean_ctor_set(x_2053, 3, x_2051); +lean_ctor_set(x_2053, 4, x_11); +lean_ctor_set(x_2053, 5, x_12); +lean_ctor_set(x_2053, 6, x_13); +lean_ctor_set_uint8(x_2053, sizeof(void*)*7, x_9); +lean_ctor_set_uint8(x_2053, sizeof(void*)*7 + 1, x_2052); +lean_inc(x_2048); +x_2054 = l_Lean_mkApp(x_2, x_2048); +x_2055 = lean_expr_instantiate1(x_1566, x_2048); +lean_dec(x_2048); +lean_dec(x_1566); +x_1 = x_2053; +x_2 = x_2054; +x_3 = x_2055; +x_4 = x_1487; +x_5 = x_2049; +goto _start; +} +else +{ +lean_object* x_2057; lean_object* x_2058; lean_object* x_2059; lean_object* x_2060; +lean_dec(x_1990); +lean_dec(x_1566); +lean_dec(x_1487); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +x_2057 = lean_ctor_get(x_2047, 0); +lean_inc(x_2057); +x_2058 = lean_ctor_get(x_2047, 1); +lean_inc(x_2058); +if (lean_is_exclusive(x_2047)) { + lean_ctor_release(x_2047, 0); + lean_ctor_release(x_2047, 1); + x_2059 = x_2047; +} else { + lean_dec_ref(x_2047); + x_2059 = lean_box(0); +} +if (lean_is_scalar(x_2059)) { + x_2060 = lean_alloc_ctor(1, 2, 0); +} else { + x_2060 = x_2059; +} +lean_ctor_set(x_2060, 0, x_2057); +lean_ctor_set(x_2060, 1, x_2058); +return x_2060; +} +} +} +else +{ +lean_object* x_2061; lean_object* x_2062; lean_object* x_2063; lean_object* x_2064; +lean_dec(x_1990); +lean_dec(x_1566); +lean_dec(x_1565); +lean_dec(x_1564); +lean_dec(x_1487); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +x_2061 = lean_ctor_get(x_1989, 0); +lean_inc(x_2061); +x_2062 = lean_ctor_get(x_1989, 1); +lean_inc(x_2062); +if (lean_is_exclusive(x_1989)) { + lean_ctor_release(x_1989, 0); + lean_ctor_release(x_1989, 1); + x_2063 = x_1989; +} else { + lean_dec_ref(x_1989); + x_2063 = lean_box(0); +} +if (lean_is_scalar(x_2063)) { + x_2064 = lean_alloc_ctor(1, 2, 0); +} else { + x_2064 = x_2063; +} +lean_ctor_set(x_2064, 0, x_2061); +lean_ctor_set(x_2064, 1, x_2062); +return x_2064; +} +} +else +{ +lean_object* x_2065; lean_object* x_2066; uint8_t x_2067; lean_object* x_2068; lean_object* x_2069; lean_object* x_2070; lean_object* x_2071; lean_object* x_2072; lean_object* x_2073; lean_object* x_2074; lean_object* x_2075; lean_object* x_2076; lean_object* x_2077; lean_object* x_2078; +lean_dec(x_1564); +lean_dec(x_1489); +lean_dec(x_3); +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + lean_ctor_release(x_1, 2); + lean_ctor_release(x_1, 3); + lean_ctor_release(x_1, 4); + lean_ctor_release(x_1, 5); + lean_ctor_release(x_1, 6); + x_2065 = x_1; +} else { + lean_dec_ref(x_1); + x_2065 = lean_box(0); +} +x_2066 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2066, 0, x_1565); +x_2067 = 1; +x_2068 = lean_box(0); +lean_inc(x_1487); +x_2069 = l_Lean_Elab_Term_mkFreshExprMVar(x_2066, x_2067, x_2068, x_1487, x_1490); +x_2070 = lean_ctor_get(x_2069, 0); +lean_inc(x_2070); +x_2071 = lean_ctor_get(x_2069, 1); +lean_inc(x_2071); +lean_dec(x_2069); +x_2072 = lean_unsigned_to_nat(1u); +x_2073 = lean_nat_add(x_10, x_2072); +lean_dec(x_10); +x_2074 = l_Lean_Expr_mvarId_x21(x_2070); +x_2075 = lean_array_push(x_12, x_2074); +if (lean_is_scalar(x_2065)) { + x_2076 = lean_alloc_ctor(0, 7, 2); +} else { + x_2076 = x_2065; +} +lean_ctor_set(x_2076, 0, x_6); +lean_ctor_set(x_2076, 1, x_7); +lean_ctor_set(x_2076, 2, x_8); +lean_ctor_set(x_2076, 3, x_2073); +lean_ctor_set(x_2076, 4, x_11); +lean_ctor_set(x_2076, 5, x_2075); +lean_ctor_set(x_2076, 6, x_13); +lean_ctor_set_uint8(x_2076, sizeof(void*)*7, x_9); +lean_ctor_set_uint8(x_2076, sizeof(void*)*7 + 1, x_1473); +lean_inc(x_2070); +x_2077 = l_Lean_mkApp(x_2, x_2070); +x_2078 = lean_expr_instantiate1(x_1566, x_2070); +lean_dec(x_2070); +lean_dec(x_1566); +x_1 = x_2076; +x_2 = x_2077; +x_3 = x_2078; +x_4 = x_1487; +x_5 = x_2071; +goto _start; +} +} +} +default: +{ +uint8_t x_2080; lean_object* x_2081; lean_object* x_2082; uint8_t x_2083; lean_object* x_2084; lean_object* x_2085; +x_2080 = 1; +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_2081 = lean_alloc_ctor(0, 7, 2); +lean_ctor_set(x_2081, 0, x_6); +lean_ctor_set(x_2081, 1, x_7); +lean_ctor_set(x_2081, 2, x_8); +lean_ctor_set(x_2081, 3, x_10); +lean_ctor_set(x_2081, 4, x_11); +lean_ctor_set(x_2081, 5, x_12); +lean_ctor_set(x_2081, 6, x_13); +lean_ctor_set_uint8(x_2081, sizeof(void*)*7, x_9); +lean_ctor_set_uint8(x_2081, sizeof(void*)*7 + 1, x_2080); +x_2082 = lean_array_get_size(x_7); +x_2083 = lean_nat_dec_lt(x_10, x_2082); +lean_dec(x_2082); +lean_inc(x_1487); +lean_inc(x_1); +x_2084 = l___private_Lean_Elab_App_8__propagateExpectedType(x_1, x_1489, x_1487, x_1490); +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + lean_ctor_release(x_1, 2); + lean_ctor_release(x_1, 3); + lean_ctor_release(x_1, 4); + lean_ctor_release(x_1, 5); + lean_ctor_release(x_1, 6); + x_2085 = x_1; +} else { + lean_dec_ref(x_1); + x_2085 = lean_box(0); +} +if (lean_obj_tag(x_2084) == 0) +{ +lean_object* x_2086; lean_object* x_2087; +x_2086 = lean_ctor_get(x_2084, 1); +lean_inc(x_2086); +lean_dec(x_2084); +if (x_2083 == 0) +{ +lean_dec(x_2085); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_7); +if (x_9 == 0) +{ +lean_object* x_2142; +x_2142 = l_Lean_Expr_getOptParamDefault_x3f(x_1565); +if (lean_obj_tag(x_2142) == 0) +{ +lean_object* x_2143; +x_2143 = l_Lean_Expr_getAutoParamTactic_x3f(x_1565); +if (lean_obj_tag(x_2143) == 0) +{ +lean_object* x_2144; +lean_dec(x_2081); +lean_dec(x_1566); +lean_dec(x_1565); +lean_dec(x_6); +x_2144 = lean_box(0); +x_2087 = x_2144; +goto block_2141; +} +else +{ +lean_object* x_2145; +lean_dec(x_1564); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_8); +lean_dec(x_3); +x_2145 = lean_ctor_get(x_2143, 0); +lean_inc(x_2145); +lean_dec(x_2143); +if (lean_obj_tag(x_2145) == 4) +{ +lean_object* x_2146; lean_object* x_2147; lean_object* x_2148; lean_object* x_2149; lean_object* x_2150; +x_2146 = lean_ctor_get(x_2145, 0); +lean_inc(x_2146); +lean_dec(x_2145); +x_2147 = l_Lean_Elab_Term_getEnv___rarg(x_2086); +x_2148 = lean_ctor_get(x_2147, 0); +lean_inc(x_2148); +x_2149 = lean_ctor_get(x_2147, 1); +lean_inc(x_2149); +lean_dec(x_2147); +x_2150 = l___private_Lean_Elab_Util_1__evalSyntaxConstantUnsafe(x_2148, x_2146); +if (lean_obj_tag(x_2150) == 0) +{ +lean_object* x_2151; lean_object* x_2152; lean_object* x_2153; lean_object* x_2154; +lean_dec(x_2081); +lean_dec(x_1566); +lean_dec(x_1565); +lean_dec(x_6); +lean_dec(x_2); +x_2151 = lean_ctor_get(x_2150, 0); +lean_inc(x_2151); +lean_dec(x_2150); +x_2152 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2152, 0, x_2151); +x_2153 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2153, 0, x_2152); +x_2154 = l_Lean_Elab_Term_throwError___rarg(x_2153, x_1487, x_2149); +return x_2154; +} +else +{ +lean_object* x_2155; lean_object* x_2156; lean_object* x_2157; lean_object* x_2158; lean_object* x_2159; lean_object* x_2160; lean_object* x_2161; lean_object* x_2162; lean_object* x_2163; lean_object* x_2164; lean_object* x_2165; lean_object* x_2166; lean_object* x_2167; lean_object* x_2168; lean_object* x_2169; lean_object* x_2170; lean_object* x_2171; lean_object* x_2172; lean_object* x_2173; lean_object* x_2174; lean_object* x_2175; lean_object* x_2176; lean_object* x_2177; lean_object* x_2178; lean_object* x_2179; +x_2155 = lean_ctor_get(x_2150, 0); +lean_inc(x_2155); +lean_dec(x_2150); +x_2156 = l_Lean_Elab_Term_getCurrMacroScope(x_1487, x_2149); +x_2157 = lean_ctor_get(x_2156, 1); +lean_inc(x_2157); +lean_dec(x_2156); +x_2158 = l_Lean_Elab_Term_getMainModule___rarg(x_2157); +x_2159 = lean_ctor_get(x_2158, 1); +lean_inc(x_2159); +lean_dec(x_2158); +x_2160 = l_Lean_Syntax_getArgs(x_2155); +lean_dec(x_2155); +x_2161 = l_Array_empty___closed__1; +x_2162 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_2160, x_2160, x_1568, x_2161); +lean_dec(x_2160); +x_2163 = l_Lean_nullKind___closed__2; +x_2164 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2164, 0, x_2163); +lean_ctor_set(x_2164, 1, x_2162); +x_2165 = lean_array_push(x_2161, x_2164); +x_2166 = l_Lean_PrettyPrinter_Parenthesizer_tacticParser_parenthesizer___lambda__1___closed__4; +x_2167 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2167, 0, x_2166); +lean_ctor_set(x_2167, 1, x_2165); +x_2168 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__15; +x_2169 = lean_array_push(x_2168, x_2167); +x_2170 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__16; +x_2171 = lean_array_push(x_2169, x_2170); +x_2172 = l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; +x_2173 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2173, 0, x_2172); +lean_ctor_set(x_2173, 1, x_2171); +x_2174 = l_Lean_Syntax_getHeadInfo___main(x_6); +lean_dec(x_6); +x_2175 = l_Lean_Expr_getAppNumArgsAux___main(x_1565, x_1568); +x_2176 = lean_nat_sub(x_2175, x_1568); +lean_dec(x_2175); +x_2177 = lean_unsigned_to_nat(1u); +x_2178 = lean_nat_sub(x_2176, x_2177); +lean_dec(x_2176); +x_2179 = l_Lean_Expr_getRevArg_x21___main(x_1565, x_2178); +lean_dec(x_1565); +if (lean_obj_tag(x_2174) == 0) +{ +lean_object* x_2180; lean_object* x_2181; +x_2180 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2180, 0, x_2173); +lean_inc(x_1487); +lean_inc(x_2); +x_2181 = l___private_Lean_Elab_App_2__elabArg(x_2, x_2180, x_2179, x_1487, x_2159); +if (lean_obj_tag(x_2181) == 0) +{ +lean_object* x_2182; lean_object* x_2183; lean_object* x_2184; lean_object* x_2185; +x_2182 = lean_ctor_get(x_2181, 0); +lean_inc(x_2182); +x_2183 = lean_ctor_get(x_2181, 1); +lean_inc(x_2183); +lean_dec(x_2181); +lean_inc(x_2182); +x_2184 = l_Lean_mkApp(x_2, x_2182); +x_2185 = lean_expr_instantiate1(x_1566, x_2182); +lean_dec(x_2182); +lean_dec(x_1566); +x_1 = x_2081; +x_2 = x_2184; +x_3 = x_2185; +x_4 = x_1487; +x_5 = x_2183; +goto _start; +} +else +{ +lean_object* x_2187; lean_object* x_2188; lean_object* x_2189; lean_object* x_2190; +lean_dec(x_2081); +lean_dec(x_1566); +lean_dec(x_1487); +lean_dec(x_2); +x_2187 = lean_ctor_get(x_2181, 0); +lean_inc(x_2187); +x_2188 = lean_ctor_get(x_2181, 1); +lean_inc(x_2188); +if (lean_is_exclusive(x_2181)) { + lean_ctor_release(x_2181, 0); + lean_ctor_release(x_2181, 1); + x_2189 = x_2181; +} else { + lean_dec_ref(x_2181); + x_2189 = lean_box(0); +} +if (lean_is_scalar(x_2189)) { + x_2190 = lean_alloc_ctor(1, 2, 0); +} else { + x_2190 = x_2189; +} +lean_ctor_set(x_2190, 0, x_2187); +lean_ctor_set(x_2190, 1, x_2188); +return x_2190; +} +} +else +{ +lean_object* x_2191; lean_object* x_2192; lean_object* x_2193; lean_object* x_2194; +x_2191 = lean_ctor_get(x_2174, 0); +lean_inc(x_2191); +lean_dec(x_2174); +x_2192 = l_Lean_Syntax_replaceInfo___main(x_2191, x_2173); +x_2193 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2193, 0, x_2192); +lean_inc(x_1487); +lean_inc(x_2); +x_2194 = l___private_Lean_Elab_App_2__elabArg(x_2, x_2193, x_2179, x_1487, x_2159); +if (lean_obj_tag(x_2194) == 0) +{ +lean_object* x_2195; lean_object* x_2196; lean_object* x_2197; lean_object* x_2198; +x_2195 = lean_ctor_get(x_2194, 0); +lean_inc(x_2195); +x_2196 = lean_ctor_get(x_2194, 1); +lean_inc(x_2196); +lean_dec(x_2194); +lean_inc(x_2195); +x_2197 = l_Lean_mkApp(x_2, x_2195); +x_2198 = lean_expr_instantiate1(x_1566, x_2195); +lean_dec(x_2195); +lean_dec(x_1566); +x_1 = x_2081; +x_2 = x_2197; +x_3 = x_2198; +x_4 = x_1487; +x_5 = x_2196; +goto _start; +} +else +{ +lean_object* x_2200; lean_object* x_2201; lean_object* x_2202; lean_object* x_2203; +lean_dec(x_2081); +lean_dec(x_1566); +lean_dec(x_1487); +lean_dec(x_2); +x_2200 = lean_ctor_get(x_2194, 0); +lean_inc(x_2200); +x_2201 = lean_ctor_get(x_2194, 1); +lean_inc(x_2201); +if (lean_is_exclusive(x_2194)) { + lean_ctor_release(x_2194, 0); + lean_ctor_release(x_2194, 1); + x_2202 = x_2194; +} else { + lean_dec_ref(x_2194); + x_2202 = lean_box(0); +} +if (lean_is_scalar(x_2202)) { + x_2203 = lean_alloc_ctor(1, 2, 0); +} else { + x_2203 = x_2202; +} +lean_ctor_set(x_2203, 0, x_2200); +lean_ctor_set(x_2203, 1, x_2201); +return x_2203; +} +} +} +} +else +{ +lean_object* x_2204; lean_object* x_2205; +lean_dec(x_2145); +lean_dec(x_2081); +lean_dec(x_1566); +lean_dec(x_1565); +lean_dec(x_6); +lean_dec(x_2); +x_2204 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__12; +x_2205 = l_Lean_Elab_Term_throwError___rarg(x_2204, x_1487, x_2086); +return x_2205; +} +} +} +else +{ +lean_object* x_2206; lean_object* x_2207; lean_object* x_2208; +lean_dec(x_1565); +lean_dec(x_1564); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_3); +x_2206 = lean_ctor_get(x_2142, 0); +lean_inc(x_2206); +lean_dec(x_2142); +lean_inc(x_2206); +x_2207 = l_Lean_mkApp(x_2, x_2206); +x_2208 = lean_expr_instantiate1(x_1566, x_2206); +lean_dec(x_2206); +lean_dec(x_1566); +x_1 = x_2081; +x_2 = x_2207; +x_3 = x_2208; +x_4 = x_1487; +x_5 = x_2086; +goto _start; +} +} +else +{ +lean_object* x_2210; +lean_dec(x_2081); +lean_dec(x_1566); +lean_dec(x_1565); +lean_dec(x_6); +x_2210 = lean_box(0); +x_2087 = x_2210; +goto block_2141; +} +} +else +{ +lean_object* x_2211; lean_object* x_2212; +lean_dec(x_2081); +lean_dec(x_1564); +lean_dec(x_3); +x_2211 = lean_array_fget(x_7, x_10); +lean_inc(x_1487); +lean_inc(x_2); +x_2212 = l___private_Lean_Elab_App_2__elabArg(x_2, x_2211, x_1565, x_1487, x_2086); +if (lean_obj_tag(x_2212) == 0) +{ +lean_object* x_2213; lean_object* x_2214; lean_object* x_2215; lean_object* x_2216; lean_object* x_2217; lean_object* x_2218; lean_object* x_2219; +x_2213 = lean_ctor_get(x_2212, 0); +lean_inc(x_2213); +x_2214 = lean_ctor_get(x_2212, 1); +lean_inc(x_2214); +lean_dec(x_2212); +x_2215 = lean_unsigned_to_nat(1u); +x_2216 = lean_nat_add(x_10, x_2215); +lean_dec(x_10); +if (lean_is_scalar(x_2085)) { + x_2217 = lean_alloc_ctor(0, 7, 2); +} else { + x_2217 = x_2085; +} +lean_ctor_set(x_2217, 0, x_6); +lean_ctor_set(x_2217, 1, x_7); +lean_ctor_set(x_2217, 2, x_8); +lean_ctor_set(x_2217, 3, x_2216); +lean_ctor_set(x_2217, 4, x_11); +lean_ctor_set(x_2217, 5, x_12); +lean_ctor_set(x_2217, 6, x_13); +lean_ctor_set_uint8(x_2217, sizeof(void*)*7, x_9); +lean_ctor_set_uint8(x_2217, sizeof(void*)*7 + 1, x_2080); +lean_inc(x_2213); +x_2218 = l_Lean_mkApp(x_2, x_2213); +x_2219 = lean_expr_instantiate1(x_1566, x_2213); +lean_dec(x_2213); +lean_dec(x_1566); +x_1 = x_2217; +x_2 = x_2218; +x_3 = x_2219; +x_4 = x_1487; +x_5 = x_2214; +goto _start; +} +else +{ +lean_object* x_2221; lean_object* x_2222; lean_object* x_2223; lean_object* x_2224; +lean_dec(x_2085); +lean_dec(x_1566); +lean_dec(x_1487); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +x_2221 = lean_ctor_get(x_2212, 0); +lean_inc(x_2221); +x_2222 = lean_ctor_get(x_2212, 1); +lean_inc(x_2222); +if (lean_is_exclusive(x_2212)) { + lean_ctor_release(x_2212, 0); + lean_ctor_release(x_2212, 1); + x_2223 = x_2212; +} else { + lean_dec_ref(x_2212); + x_2223 = lean_box(0); +} +if (lean_is_scalar(x_2223)) { + x_2224 = lean_alloc_ctor(1, 2, 0); +} else { + x_2224 = x_2223; +} +lean_ctor_set(x_2224, 0, x_2221); +lean_ctor_set(x_2224, 1, x_2222); +return x_2224; +} +} +block_2141: +{ +uint8_t x_2088; +lean_dec(x_2087); +x_2088 = l_Array_isEmpty___rarg(x_11); +if (x_2088 == 0) +{ +lean_object* x_2089; lean_object* x_2090; lean_object* x_2091; lean_object* x_2092; lean_object* x_2093; lean_object* x_2094; lean_object* x_2095; lean_object* x_2096; lean_object* x_2097; lean_object* x_2098; lean_object* x_2099; lean_object* x_2100; lean_object* x_2101; lean_object* x_2102; lean_object* x_2103; lean_object* x_2104; +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +x_2089 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_2089, 0, x_1564); +x_2090 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__6; +x_2091 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_2091, 0, x_2090); +lean_ctor_set(x_2091, 1, x_2089); +x_2092 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__9; +x_2093 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_2093, 0, x_2091); +lean_ctor_set(x_2093, 1, x_2092); +x_2094 = x_11; +x_2095 = l_Array_umapMAux___main___at___private_Lean_Elab_App_10__elabAppArgsAux___main___spec__2(x_1568, x_2094); +x_2096 = x_2095; +x_2097 = l_Array_toList___rarg(x_2096); +lean_dec(x_2096); +x_2098 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_2097); +x_2099 = l_Array_HasRepr___rarg___closed__1; +x_2100 = lean_string_append(x_2099, x_2098); +lean_dec(x_2098); +x_2101 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2101, 0, x_2100); +x_2102 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2102, 0, x_2101); +x_2103 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_2103, 0, x_2093); +lean_ctor_set(x_2103, 1, x_2102); +x_2104 = l_Lean_Elab_Term_throwError___rarg(x_2103, x_1487, x_2086); +return x_2104; +} +else +{ +lean_object* x_2105; lean_object* x_2130; lean_object* x_2131; lean_object* x_2132; lean_object* x_2133; lean_object* x_2134; lean_object* x_2135; lean_object* x_2136; uint8_t x_2137; +lean_dec(x_1564); +lean_dec(x_11); +x_2130 = l_Lean_Elab_Term_getOptions(x_1487, x_2086); +x_2131 = lean_ctor_get(x_2130, 0); +lean_inc(x_2131); +x_2132 = lean_ctor_get(x_2130, 1); +lean_inc(x_2132); +lean_dec(x_2130); +x_2133 = l_Lean_Elab_Term_getCurrRef(x_1487, x_2132); +x_2134 = lean_ctor_get(x_2133, 0); +lean_inc(x_2134); +x_2135 = lean_ctor_get(x_2133, 1); +lean_inc(x_2135); +lean_dec(x_2133); +x_2136 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_2137 = l_Lean_checkTraceOption(x_2131, x_2136); +lean_dec(x_2131); +if (x_2137 == 0) +{ +lean_dec(x_2134); +x_2105 = x_2135; +goto block_2129; +} +else +{ +lean_object* x_2138; lean_object* x_2139; lean_object* x_2140; +lean_inc(x_2); +x_2138 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2138, 0, x_2); +lean_inc(x_1487); +x_2139 = l_Lean_Elab_Term_logTrace(x_2136, x_2134, x_2138, x_1487, x_2135); +lean_dec(x_2134); +x_2140 = lean_ctor_get(x_2139, 1); +lean_inc(x_2140); +lean_dec(x_2139); +x_2105 = x_2140; +goto block_2129; +} +block_2129: +{ +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_2106; +lean_dec(x_3); +x_2106 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_12, x_1568, x_1487, x_2105); +lean_dec(x_12); +if (lean_obj_tag(x_2106) == 0) +{ +lean_object* x_2107; lean_object* x_2108; lean_object* x_2109; +x_2107 = lean_ctor_get(x_2106, 1); +lean_inc(x_2107); +if (lean_is_exclusive(x_2106)) { + lean_ctor_release(x_2106, 0); + lean_ctor_release(x_2106, 1); + x_2108 = x_2106; +} else { + lean_dec_ref(x_2106); + x_2108 = lean_box(0); +} +if (lean_is_scalar(x_2108)) { + x_2109 = lean_alloc_ctor(0, 2, 0); +} else { + x_2109 = x_2108; +} +lean_ctor_set(x_2109, 0, x_2); +lean_ctor_set(x_2109, 1, x_2107); +return x_2109; +} +else +{ +lean_object* x_2110; lean_object* x_2111; lean_object* x_2112; lean_object* x_2113; +lean_dec(x_2); +x_2110 = lean_ctor_get(x_2106, 0); +lean_inc(x_2110); +x_2111 = lean_ctor_get(x_2106, 1); +lean_inc(x_2111); +if (lean_is_exclusive(x_2106)) { + lean_ctor_release(x_2106, 0); + lean_ctor_release(x_2106, 1); + x_2112 = x_2106; +} else { + lean_dec_ref(x_2106); + x_2112 = lean_box(0); +} +if (lean_is_scalar(x_2112)) { + x_2113 = lean_alloc_ctor(1, 2, 0); +} else { + x_2113 = x_2112; +} +lean_ctor_set(x_2113, 0, x_2110); +lean_ctor_set(x_2113, 1, x_2111); +return x_2113; +} +} +else +{ +lean_object* x_2114; lean_object* x_2115; +x_2114 = lean_ctor_get(x_8, 0); +lean_inc(x_2114); +lean_dec(x_8); +lean_inc(x_1487); +x_2115 = l_Lean_Elab_Term_isDefEq(x_2114, x_3, x_1487, x_2105); +if (lean_obj_tag(x_2115) == 0) +{ +lean_object* x_2116; lean_object* x_2117; +x_2116 = lean_ctor_get(x_2115, 1); +lean_inc(x_2116); +lean_dec(x_2115); +x_2117 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_12, x_1568, x_1487, x_2116); +lean_dec(x_12); +if (lean_obj_tag(x_2117) == 0) +{ +lean_object* x_2118; lean_object* x_2119; lean_object* x_2120; +x_2118 = lean_ctor_get(x_2117, 1); +lean_inc(x_2118); +if (lean_is_exclusive(x_2117)) { + lean_ctor_release(x_2117, 0); + lean_ctor_release(x_2117, 1); + x_2119 = x_2117; +} else { + lean_dec_ref(x_2117); + x_2119 = lean_box(0); +} +if (lean_is_scalar(x_2119)) { + x_2120 = lean_alloc_ctor(0, 2, 0); +} else { + x_2120 = x_2119; +} +lean_ctor_set(x_2120, 0, x_2); +lean_ctor_set(x_2120, 1, x_2118); +return x_2120; +} +else +{ +lean_object* x_2121; lean_object* x_2122; lean_object* x_2123; lean_object* x_2124; +lean_dec(x_2); +x_2121 = lean_ctor_get(x_2117, 0); +lean_inc(x_2121); +x_2122 = lean_ctor_get(x_2117, 1); +lean_inc(x_2122); +if (lean_is_exclusive(x_2117)) { + lean_ctor_release(x_2117, 0); + lean_ctor_release(x_2117, 1); + x_2123 = x_2117; +} else { + lean_dec_ref(x_2117); + x_2123 = lean_box(0); +} +if (lean_is_scalar(x_2123)) { + x_2124 = lean_alloc_ctor(1, 2, 0); +} else { + x_2124 = x_2123; +} +lean_ctor_set(x_2124, 0, x_2121); +lean_ctor_set(x_2124, 1, x_2122); +return x_2124; +} +} +else +{ +lean_object* x_2125; lean_object* x_2126; lean_object* x_2127; lean_object* x_2128; +lean_dec(x_1487); +lean_dec(x_12); +lean_dec(x_2); +x_2125 = lean_ctor_get(x_2115, 0); +lean_inc(x_2125); +x_2126 = lean_ctor_get(x_2115, 1); +lean_inc(x_2126); +if (lean_is_exclusive(x_2115)) { + lean_ctor_release(x_2115, 0); + lean_ctor_release(x_2115, 1); + x_2127 = x_2115; +} else { + lean_dec_ref(x_2115); + x_2127 = lean_box(0); +} +if (lean_is_scalar(x_2127)) { + x_2128 = lean_alloc_ctor(1, 2, 0); +} else { + x_2128 = x_2127; +} +lean_ctor_set(x_2128, 0, x_2125); +lean_ctor_set(x_2128, 1, x_2126); +return x_2128; +} +} +} +} +} +} +else +{ +lean_object* x_2225; lean_object* x_2226; lean_object* x_2227; lean_object* x_2228; +lean_dec(x_2085); +lean_dec(x_2081); +lean_dec(x_1566); +lean_dec(x_1565); +lean_dec(x_1564); +lean_dec(x_1487); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +x_2225 = lean_ctor_get(x_2084, 0); +lean_inc(x_2225); +x_2226 = lean_ctor_get(x_2084, 1); +lean_inc(x_2226); +if (lean_is_exclusive(x_2084)) { + lean_ctor_release(x_2084, 0); + lean_ctor_release(x_2084, 1); + x_2227 = x_2084; +} else { + lean_dec_ref(x_2084); + x_2227 = lean_box(0); +} +if (lean_is_scalar(x_2227)) { + x_2228 = lean_alloc_ctor(1, 2, 0); +} else { + x_2228 = x_2227; +} +lean_ctor_set(x_2228, 0, x_2225); +lean_ctor_set(x_2228, 1, x_2226); +return x_2228; +} +} +} +} +else +{ +lean_object* x_2229; lean_object* x_2230; lean_object* x_2231; lean_object* x_2232; lean_object* x_2233; lean_object* x_2234; +lean_dec(x_1564); +lean_dec(x_3); +x_2229 = lean_ctor_get(x_1569, 0); +lean_inc(x_2229); +lean_dec(x_1569); +x_2230 = l_Lean_Elab_Term_NamedArg_inhabited; +x_2231 = lean_array_get(x_2230, x_11, x_2229); +x_2232 = l_Array_eraseIdx___rarg(x_11, x_2229); +lean_dec(x_2229); +x_2233 = lean_ctor_get(x_2231, 1); +lean_inc(x_2233); +lean_dec(x_2231); +lean_inc(x_1487); +lean_inc(x_2); +x_2234 = l___private_Lean_Elab_App_2__elabArg(x_2, x_2233, x_1565, x_1487, x_1490); +if (lean_obj_tag(x_2234) == 0) +{ +lean_object* x_2235; lean_object* x_2236; uint8_t x_2237; lean_object* x_2238; lean_object* x_2239; lean_object* x_2240; lean_object* x_2241; +x_2235 = lean_ctor_get(x_2234, 0); +lean_inc(x_2235); +x_2236 = lean_ctor_get(x_2234, 1); +lean_inc(x_2236); +lean_dec(x_2234); +x_2237 = 1; +x_2238 = lean_alloc_ctor(0, 7, 2); +lean_ctor_set(x_2238, 0, x_6); +lean_ctor_set(x_2238, 1, x_7); +lean_ctor_set(x_2238, 2, x_8); +lean_ctor_set(x_2238, 3, x_10); +lean_ctor_set(x_2238, 4, x_2232); +lean_ctor_set(x_2238, 5, x_12); +lean_ctor_set(x_2238, 6, x_13); +lean_ctor_set_uint8(x_2238, sizeof(void*)*7, x_9); +lean_ctor_set_uint8(x_2238, sizeof(void*)*7 + 1, x_2237); +lean_inc(x_2235); +x_2239 = l_Lean_mkApp(x_2, x_2235); +x_2240 = lean_expr_instantiate1(x_1566, x_2235); +lean_dec(x_2235); +lean_dec(x_1566); +lean_inc(x_1487); +x_2241 = l___private_Lean_Elab_App_8__propagateExpectedType(x_1, x_1489, x_1487, x_2236); +if (lean_obj_tag(x_2241) == 0) +{ +lean_object* x_2242; +x_2242 = lean_ctor_get(x_2241, 1); +lean_inc(x_2242); +lean_dec(x_2241); +x_1 = x_2238; +x_2 = x_2239; +x_3 = x_2240; +x_4 = x_1487; +x_5 = x_2242; +goto _start; +} +else +{ +lean_object* x_2244; lean_object* x_2245; lean_object* x_2246; lean_object* x_2247; +lean_dec(x_2240); +lean_dec(x_2239); +lean_dec(x_2238); +lean_dec(x_1487); +x_2244 = lean_ctor_get(x_2241, 0); +lean_inc(x_2244); +x_2245 = lean_ctor_get(x_2241, 1); +lean_inc(x_2245); +if (lean_is_exclusive(x_2241)) { + lean_ctor_release(x_2241, 0); + lean_ctor_release(x_2241, 1); + x_2246 = x_2241; +} else { + lean_dec_ref(x_2241); + x_2246 = lean_box(0); +} +if (lean_is_scalar(x_2246)) { + x_2247 = lean_alloc_ctor(1, 2, 0); +} else { + x_2247 = x_2246; +} +lean_ctor_set(x_2247, 0, x_2244); +lean_ctor_set(x_2247, 1, x_2245); +return x_2247; +} +} +else +{ +lean_object* x_2248; lean_object* x_2249; lean_object* x_2250; lean_object* x_2251; +lean_dec(x_2232); +lean_dec(x_1566); +lean_dec(x_1489); +lean_dec(x_1487); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_2248 = lean_ctor_get(x_2234, 0); +lean_inc(x_2248); +x_2249 = lean_ctor_get(x_2234, 1); +lean_inc(x_2249); +if (lean_is_exclusive(x_2234)) { + lean_ctor_release(x_2234, 0); + lean_ctor_release(x_2234, 1); + x_2250 = x_2234; +} else { + lean_dec_ref(x_2234); + x_2250 = lean_box(0); +} +if (lean_is_scalar(x_2250)) { + x_2251 = lean_alloc_ctor(1, 2, 0); +} else { + x_2251 = x_2250; +} +lean_ctor_set(x_2251, 0, x_2248); +lean_ctor_set(x_2251, 1, x_2249); +return x_2251; +} +} +} +else +{ +lean_object* x_2252; +lean_dec(x_13); +lean_dec(x_6); +x_2252 = lean_box(0); +x_1491 = x_2252; +goto block_1563; +} +block_1563: +{ +uint8_t x_1492; +lean_dec(x_1491); +x_1492 = l_Array_isEmpty___rarg(x_11); +lean_dec(x_11); +if (x_1492 == 0) +{ +lean_object* x_1493; +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_3); +lean_inc(x_1487); +x_1493 = l___private_Lean_Elab_App_4__tryCoeFun(x_1489, x_2, x_1487, x_1490); +if (lean_obj_tag(x_1493) == 0) +{ +lean_object* x_1494; lean_object* x_1495; lean_object* x_1496; +x_1494 = lean_ctor_get(x_1493, 0); +lean_inc(x_1494); +x_1495 = lean_ctor_get(x_1493, 1); +lean_inc(x_1495); +lean_dec(x_1493); +lean_inc(x_1487); +lean_inc(x_1494); +x_1496 = l_Lean_Elab_Term_inferType(x_1494, x_1487, x_1495); +if (lean_obj_tag(x_1496) == 0) +{ +lean_object* x_1497; lean_object* x_1498; +x_1497 = lean_ctor_get(x_1496, 0); +lean_inc(x_1497); +x_1498 = lean_ctor_get(x_1496, 1); +lean_inc(x_1498); +lean_dec(x_1496); +x_2 = x_1494; +x_3 = x_1497; +x_4 = x_1487; +x_5 = x_1498; +goto _start; +} +else +{ +lean_object* x_1500; lean_object* x_1501; lean_object* x_1502; lean_object* x_1503; +lean_dec(x_1494); +lean_dec(x_1487); +lean_dec(x_1); +x_1500 = lean_ctor_get(x_1496, 0); +lean_inc(x_1500); +x_1501 = lean_ctor_get(x_1496, 1); +lean_inc(x_1501); +if (lean_is_exclusive(x_1496)) { + lean_ctor_release(x_1496, 0); + lean_ctor_release(x_1496, 1); + x_1502 = x_1496; +} else { + lean_dec_ref(x_1496); + x_1502 = lean_box(0); +} +if (lean_is_scalar(x_1502)) { + x_1503 = lean_alloc_ctor(1, 2, 0); +} else { + x_1503 = x_1502; +} +lean_ctor_set(x_1503, 0, x_1500); +lean_ctor_set(x_1503, 1, x_1501); +return x_1503; +} +} +else +{ +lean_object* x_1504; lean_object* x_1505; lean_object* x_1506; lean_object* x_1507; +lean_dec(x_1487); +lean_dec(x_1); +x_1504 = lean_ctor_get(x_1493, 0); +lean_inc(x_1504); +x_1505 = lean_ctor_get(x_1493, 1); +lean_inc(x_1505); +if (lean_is_exclusive(x_1493)) { + lean_ctor_release(x_1493, 0); + lean_ctor_release(x_1493, 1); + x_1506 = x_1493; +} else { + lean_dec_ref(x_1493); + x_1506 = lean_box(0); +} +if (lean_is_scalar(x_1506)) { + x_1507 = lean_alloc_ctor(1, 2, 0); +} else { + x_1507 = x_1506; +} +lean_ctor_set(x_1507, 0, x_1504); +lean_ctor_set(x_1507, 1, x_1505); +return x_1507; +} +} +else +{ +lean_object* x_1508; uint8_t x_1509; +x_1508 = lean_array_get_size(x_7); +lean_dec(x_7); +x_1509 = lean_nat_dec_eq(x_10, x_1508); +lean_dec(x_1508); +lean_dec(x_10); +if (x_1509 == 0) +{ +lean_object* x_1510; +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_3); +lean_inc(x_1487); +x_1510 = l___private_Lean_Elab_App_4__tryCoeFun(x_1489, x_2, x_1487, x_1490); +if (lean_obj_tag(x_1510) == 0) +{ +lean_object* x_1511; lean_object* x_1512; lean_object* x_1513; +x_1511 = lean_ctor_get(x_1510, 0); +lean_inc(x_1511); +x_1512 = lean_ctor_get(x_1510, 1); +lean_inc(x_1512); +lean_dec(x_1510); +lean_inc(x_1487); +lean_inc(x_1511); +x_1513 = l_Lean_Elab_Term_inferType(x_1511, x_1487, x_1512); +if (lean_obj_tag(x_1513) == 0) +{ +lean_object* x_1514; lean_object* x_1515; +x_1514 = lean_ctor_get(x_1513, 0); +lean_inc(x_1514); +x_1515 = lean_ctor_get(x_1513, 1); +lean_inc(x_1515); +lean_dec(x_1513); +x_2 = x_1511; +x_3 = x_1514; +x_4 = x_1487; +x_5 = x_1515; +goto _start; +} +else +{ +lean_object* x_1517; lean_object* x_1518; lean_object* x_1519; lean_object* x_1520; +lean_dec(x_1511); +lean_dec(x_1487); +lean_dec(x_1); +x_1517 = lean_ctor_get(x_1513, 0); +lean_inc(x_1517); +x_1518 = lean_ctor_get(x_1513, 1); +lean_inc(x_1518); +if (lean_is_exclusive(x_1513)) { + lean_ctor_release(x_1513, 0); + lean_ctor_release(x_1513, 1); + x_1519 = x_1513; +} else { + lean_dec_ref(x_1513); + x_1519 = lean_box(0); +} +if (lean_is_scalar(x_1519)) { + x_1520 = lean_alloc_ctor(1, 2, 0); +} else { + x_1520 = x_1519; +} +lean_ctor_set(x_1520, 0, x_1517); +lean_ctor_set(x_1520, 1, x_1518); +return x_1520; +} +} +else +{ +lean_object* x_1521; lean_object* x_1522; lean_object* x_1523; lean_object* x_1524; +lean_dec(x_1487); +lean_dec(x_1); +x_1521 = lean_ctor_get(x_1510, 0); +lean_inc(x_1521); +x_1522 = lean_ctor_get(x_1510, 1); +lean_inc(x_1522); +if (lean_is_exclusive(x_1510)) { + lean_ctor_release(x_1510, 0); + lean_ctor_release(x_1510, 1); + x_1523 = x_1510; +} else { + lean_dec_ref(x_1510); + x_1523 = lean_box(0); +} +if (lean_is_scalar(x_1523)) { + x_1524 = lean_alloc_ctor(1, 2, 0); +} else { + x_1524 = x_1523; +} +lean_ctor_set(x_1524, 0, x_1521); +lean_ctor_set(x_1524, 1, x_1522); +return x_1524; +} +} +else +{ +lean_object* x_1525; lean_object* x_1552; lean_object* x_1553; lean_object* x_1554; lean_object* x_1555; lean_object* x_1556; lean_object* x_1557; lean_object* x_1558; uint8_t x_1559; +lean_dec(x_1489); +lean_dec(x_1); +x_1552 = l_Lean_Elab_Term_getOptions(x_1487, x_1490); +x_1553 = lean_ctor_get(x_1552, 0); +lean_inc(x_1553); +x_1554 = lean_ctor_get(x_1552, 1); +lean_inc(x_1554); +lean_dec(x_1552); +x_1555 = l_Lean_Elab_Term_getCurrRef(x_1487, x_1554); +x_1556 = lean_ctor_get(x_1555, 0); +lean_inc(x_1556); +x_1557 = lean_ctor_get(x_1555, 1); +lean_inc(x_1557); +lean_dec(x_1555); +x_1558 = l___private_Lean_Elab_App_10__elabAppArgsAux___main___closed__3; +x_1559 = l_Lean_checkTraceOption(x_1553, x_1558); +lean_dec(x_1553); +if (x_1559 == 0) +{ +lean_dec(x_1556); +x_1525 = x_1557; +goto block_1551; +} +else +{ +lean_object* x_1560; lean_object* x_1561; lean_object* x_1562; +lean_inc(x_2); +x_1560 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1560, 0, x_2); +lean_inc(x_1487); +x_1561 = l_Lean_Elab_Term_logTrace(x_1558, x_1556, x_1560, x_1487, x_1557); +lean_dec(x_1556); +x_1562 = lean_ctor_get(x_1561, 1); +lean_inc(x_1562); +lean_dec(x_1561); +x_1525 = x_1562; +goto block_1551; +} +block_1551: +{ +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_1526; lean_object* x_1527; +lean_dec(x_3); +x_1526 = lean_unsigned_to_nat(0u); +x_1527 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_12, x_1526, x_1487, x_1525); +lean_dec(x_12); +if (lean_obj_tag(x_1527) == 0) +{ +lean_object* x_1528; lean_object* x_1529; lean_object* x_1530; +x_1528 = lean_ctor_get(x_1527, 1); +lean_inc(x_1528); +if (lean_is_exclusive(x_1527)) { + lean_ctor_release(x_1527, 0); + lean_ctor_release(x_1527, 1); + x_1529 = x_1527; +} else { + lean_dec_ref(x_1527); + x_1529 = lean_box(0); +} +if (lean_is_scalar(x_1529)) { + x_1530 = lean_alloc_ctor(0, 2, 0); +} else { + x_1530 = x_1529; +} +lean_ctor_set(x_1530, 0, x_2); +lean_ctor_set(x_1530, 1, x_1528); +return x_1530; +} +else +{ +lean_object* x_1531; lean_object* x_1532; lean_object* x_1533; lean_object* x_1534; +lean_dec(x_2); +x_1531 = lean_ctor_get(x_1527, 0); +lean_inc(x_1531); +x_1532 = lean_ctor_get(x_1527, 1); +lean_inc(x_1532); +if (lean_is_exclusive(x_1527)) { + lean_ctor_release(x_1527, 0); + lean_ctor_release(x_1527, 1); + x_1533 = x_1527; +} else { + lean_dec_ref(x_1527); + x_1533 = lean_box(0); +} +if (lean_is_scalar(x_1533)) { + x_1534 = lean_alloc_ctor(1, 2, 0); +} else { + x_1534 = x_1533; +} +lean_ctor_set(x_1534, 0, x_1531); +lean_ctor_set(x_1534, 1, x_1532); +return x_1534; +} +} +else +{ +lean_object* x_1535; lean_object* x_1536; +x_1535 = lean_ctor_get(x_8, 0); +lean_inc(x_1535); +lean_dec(x_8); +lean_inc(x_1487); +x_1536 = l_Lean_Elab_Term_isDefEq(x_1535, x_3, x_1487, x_1525); +if (lean_obj_tag(x_1536) == 0) +{ +lean_object* x_1537; lean_object* x_1538; lean_object* x_1539; +x_1537 = lean_ctor_get(x_1536, 1); +lean_inc(x_1537); +lean_dec(x_1536); +x_1538 = lean_unsigned_to_nat(0u); +x_1539 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_12, x_1538, x_1487, x_1537); +lean_dec(x_12); +if (lean_obj_tag(x_1539) == 0) +{ +lean_object* x_1540; lean_object* x_1541; lean_object* x_1542; +x_1540 = lean_ctor_get(x_1539, 1); +lean_inc(x_1540); +if (lean_is_exclusive(x_1539)) { + lean_ctor_release(x_1539, 0); + lean_ctor_release(x_1539, 1); + x_1541 = x_1539; +} else { + lean_dec_ref(x_1539); + x_1541 = lean_box(0); +} +if (lean_is_scalar(x_1541)) { + x_1542 = lean_alloc_ctor(0, 2, 0); +} else { + x_1542 = x_1541; +} +lean_ctor_set(x_1542, 0, x_2); +lean_ctor_set(x_1542, 1, x_1540); +return x_1542; +} +else +{ +lean_object* x_1543; lean_object* x_1544; lean_object* x_1545; lean_object* x_1546; +lean_dec(x_2); +x_1543 = lean_ctor_get(x_1539, 0); +lean_inc(x_1543); +x_1544 = lean_ctor_get(x_1539, 1); +lean_inc(x_1544); +if (lean_is_exclusive(x_1539)) { + lean_ctor_release(x_1539, 0); + lean_ctor_release(x_1539, 1); + x_1545 = x_1539; +} else { + lean_dec_ref(x_1539); + x_1545 = lean_box(0); +} +if (lean_is_scalar(x_1545)) { + x_1546 = lean_alloc_ctor(1, 2, 0); +} else { + x_1546 = x_1545; +} +lean_ctor_set(x_1546, 0, x_1543); +lean_ctor_set(x_1546, 1, x_1544); +return x_1546; +} +} +else +{ +lean_object* x_1547; lean_object* x_1548; lean_object* x_1549; lean_object* x_1550; +lean_dec(x_1487); +lean_dec(x_12); +lean_dec(x_2); +x_1547 = lean_ctor_get(x_1536, 0); +lean_inc(x_1547); +x_1548 = lean_ctor_get(x_1536, 1); +lean_inc(x_1548); +if (lean_is_exclusive(x_1536)) { + lean_ctor_release(x_1536, 0); + lean_ctor_release(x_1536, 1); + x_1549 = x_1536; +} else { + lean_dec_ref(x_1536); + x_1549 = lean_box(0); +} +if (lean_is_scalar(x_1549)) { + x_1550 = lean_alloc_ctor(1, 2, 0); +} else { + x_1550 = x_1549; +} +lean_ctor_set(x_1550, 0, x_1547); +lean_ctor_set(x_1550, 1, x_1548); +return x_1550; +} +} +} +} +} +} +} +else +{ +lean_object* x_2253; lean_object* x_2254; lean_object* x_2255; lean_object* x_2256; +lean_dec(x_1487); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_2253 = lean_ctor_get(x_1488, 0); +lean_inc(x_2253); +x_2254 = lean_ctor_get(x_1488, 1); +lean_inc(x_2254); +if (lean_is_exclusive(x_1488)) { + lean_ctor_release(x_1488, 0); + lean_ctor_release(x_1488, 1); + x_2255 = x_1488; +} else { + lean_dec_ref(x_1488); + x_2255 = lean_box(0); +} +if (lean_is_scalar(x_2255)) { + x_2256 = lean_alloc_ctor(1, 2, 0); +} else { + x_2256 = x_2255; +} +lean_ctor_set(x_2256, 0, x_2253); +lean_ctor_set(x_2256, 1, x_2254); +return x_2256; } } } @@ -9478,383 +13479,307 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* l___private_Lean_Elab_App_11__elabAppArgs(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_App_11__elabAppArgs(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7) { _start: { -lean_object* x_9; -lean_inc(x_7); -lean_inc(x_2); -x_9 = l_Lean_Elab_Term_inferType(x_1, x_2, 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; uint8_t x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_9, 1); -lean_inc(x_11); -lean_dec(x_9); -lean_inc(x_7); -x_12 = l_Lean_Elab_Term_instantiateMVars(x_1, x_10, x_7, x_11); -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); -lean_inc(x_14); -lean_dec(x_12); -x_15 = l_Array_isEmpty___rarg(x_3); -x_16 = lean_unsigned_to_nat(0u); -x_17 = l_Array_empty___closed__1; -x_18 = 0; -lean_inc(x_4); +lean_object* x_8; +lean_inc(x_6); lean_inc(x_1); -x_19 = lean_alloc_ctor(0, 7, 2); -lean_ctor_set(x_19, 0, x_1); -lean_ctor_set(x_19, 1, x_4); -lean_ctor_set(x_19, 2, x_5); -lean_ctor_set(x_19, 3, x_16); -lean_ctor_set(x_19, 4, x_3); -lean_ctor_set(x_19, 5, x_17); -lean_ctor_set(x_19, 6, x_17); -lean_ctor_set_uint8(x_19, sizeof(void*)*7, x_6); -lean_ctor_set_uint8(x_19, sizeof(void*)*7 + 1, x_18); -x_20 = l_Lean_Elab_Term_getOptions(x_7, x_14); -if (x_15 == 0) +x_8 = l_Lean_Elab_Term_inferType(x_1, x_6, x_7); +if (lean_obj_tag(x_8) == 0) { -lean_dec(x_4); -x_21 = x_18; -goto block_75; -} -else -{ -uint8_t x_76; -x_76 = l_Array_isEmpty___rarg(x_4); -lean_dec(x_4); -x_21 = x_76; -goto block_75; -} -block_75: -{ -uint8_t x_22; lean_object* x_23; lean_object* x_24; -if (x_21 == 0) -{ -lean_object* x_70; lean_object* x_71; -x_70 = lean_ctor_get(x_20, 0); -lean_inc(x_70); -x_71 = lean_ctor_get(x_20, 1); -lean_inc(x_71); -lean_dec(x_20); -x_22 = x_18; -x_23 = x_70; -x_24 = x_71; -goto block_69; -} -else -{ -lean_object* x_72; lean_object* x_73; uint8_t x_74; -x_72 = lean_ctor_get(x_20, 0); -lean_inc(x_72); -x_73 = lean_ctor_get(x_20, 1); -lean_inc(x_73); -lean_dec(x_20); -x_74 = 1; -x_22 = x_74; -x_23 = x_72; -x_24 = x_73; -goto block_69; -} -block_69: -{ -lean_object* x_25; uint8_t x_26; -x_25 = l___private_Lean_Elab_App_11__elabAppArgs___closed__2; -x_26 = l_Lean_checkTraceOption(x_23, x_25); -lean_dec(x_23); -if (x_26 == 0) -{ -lean_dec(x_1); -if (x_22 == 0) -{ -lean_object* x_27; -x_27 = l_Lean_Elab_Term_tryPostponeIfMVar(x_13, x_7, x_24); -if (lean_obj_tag(x_27) == 0) -{ -lean_object* x_28; lean_object* x_29; -x_28 = lean_ctor_get(x_27, 1); -lean_inc(x_28); -lean_dec(x_27); -x_29 = l___private_Lean_Elab_App_10__elabAppArgsAux___main(x_19, x_2, x_13, x_7, x_28); -return x_29; -} -else -{ -uint8_t x_30; -lean_dec(x_19); -lean_dec(x_13); -lean_dec(x_7); -lean_dec(x_2); -x_30 = !lean_is_exclusive(x_27); -if (x_30 == 0) -{ -return x_27; -} -else -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_27, 0); -x_32 = lean_ctor_get(x_27, 1); -lean_inc(x_32); -lean_inc(x_31); -lean_dec(x_27); -x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_31); -lean_ctor_set(x_33, 1, x_32); -return x_33; -} -} -} -else -{ -lean_object* x_34; -x_34 = l___private_Lean_Elab_App_10__elabAppArgsAux___main(x_19, x_2, x_13, x_7, x_24); -return x_34; -} -} -else -{ -lean_object* x_35; lean_object* x_36; -lean_inc(x_2); -x_35 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_35, 0, x_2); +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; uint8_t x_16; +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); +lean_inc(x_6); +x_11 = l_Lean_Elab_Term_instantiateMVars(x_9, x_6, x_10); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); lean_inc(x_13); -x_36 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_36, 0, x_13); -if (x_6 == 0) +lean_dec(x_11); +x_14 = l_Array_isEmpty___rarg(x_2); +x_15 = l_Lean_Elab_Term_getOptions(x_6, x_13); +if (x_14 == 0) { -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_37 = l___private_Lean_Elab_App_11__elabAppArgs___closed__8; -x_38 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_35); -x_39 = l___private_Lean_Meta_ExprDefEq_8__checkTypesAndAssign___closed__7; -x_40 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -x_41 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_36); -lean_inc(x_7); -x_42 = l_Lean_Elab_Term_logTrace(x_25, x_1, x_41, x_7, x_24); -lean_dec(x_1); -if (x_22 == 0) +uint8_t x_69; +x_69 = 0; +x_16 = x_69; +goto block_68; +} +else { -lean_object* x_43; lean_object* x_44; -x_43 = lean_ctor_get(x_42, 1); +uint8_t x_70; +x_70 = l_Array_isEmpty___rarg(x_3); +x_16 = x_70; +goto block_68; +} +block_68: +{ +uint8_t x_17; +if (x_16 == 0) +{ +uint8_t x_66; +x_66 = 0; +x_17 = x_66; +goto block_65; +} +else +{ +uint8_t x_67; +x_67 = 1; +x_17 = x_67; +goto block_65; +} +block_65: +{ +lean_object* x_18; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; +x_42 = lean_ctor_get(x_15, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_15, 1); lean_inc(x_43); -lean_dec(x_42); -x_44 = l_Lean_Elab_Term_tryPostponeIfMVar(x_13, x_7, x_43); -if (lean_obj_tag(x_44) == 0) -{ -lean_object* x_45; lean_object* x_46; -x_45 = lean_ctor_get(x_44, 1); +lean_dec(x_15); +x_44 = l_Lean_Elab_Term_getCurrRef(x_6, x_43); +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_46 = l___private_Lean_Elab_App_10__elabAppArgsAux___main(x_19, x_2, x_13, x_7, x_45); -return x_46; -} -else -{ -uint8_t x_47; -lean_dec(x_19); -lean_dec(x_13); -lean_dec(x_7); -lean_dec(x_2); -x_47 = !lean_is_exclusive(x_44); -if (x_47 == 0) -{ -return x_44; -} -else -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_48 = lean_ctor_get(x_44, 0); -x_49 = lean_ctor_get(x_44, 1); -lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_44); -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; -x_51 = lean_ctor_get(x_42, 1); -lean_inc(x_51); +x_47 = l___private_Lean_Elab_App_11__elabAppArgs___closed__2; +x_48 = l_Lean_checkTraceOption(x_42, x_47); lean_dec(x_42); -x_52 = l___private_Lean_Elab_App_10__elabAppArgsAux___main(x_19, x_2, x_13, x_7, x_51); -return x_52; -} +if (x_48 == 0) +{ +lean_dec(x_45); +x_18 = x_46; +goto block_41; } else { -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_53 = l___private_Lean_Elab_App_11__elabAppArgs___closed__11; +lean_object* x_49; lean_object* x_50; +lean_inc(x_1); +x_49 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_49, 0, x_1); +lean_inc(x_12); +x_50 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_50, 0, x_12); +if (x_5 == 0) +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_51 = l___private_Lean_Elab_App_11__elabAppArgs___closed__8; +x_52 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_49); +x_53 = l___private_Lean_Meta_ExprDefEq_8__checkTypesAndAssign___closed__7; x_54 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_54, 1, x_35); -x_55 = l___private_Lean_Meta_ExprDefEq_8__checkTypesAndAssign___closed__7; -x_56 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_56, 0, x_54); -lean_ctor_set(x_56, 1, x_55); -x_57 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_57, 0, x_56); -lean_ctor_set(x_57, 1, x_36); -lean_inc(x_7); -x_58 = l_Lean_Elab_Term_logTrace(x_25, x_1, x_57, x_7, x_24); -lean_dec(x_1); -if (x_22 == 0) -{ -lean_object* x_59; lean_object* x_60; -x_59 = lean_ctor_get(x_58, 1); -lean_inc(x_59); -lean_dec(x_58); -x_60 = l_Lean_Elab_Term_tryPostponeIfMVar(x_13, x_7, x_59); -if (lean_obj_tag(x_60) == 0) -{ -lean_object* x_61; lean_object* x_62; -x_61 = lean_ctor_get(x_60, 1); -lean_inc(x_61); -lean_dec(x_60); -x_62 = l___private_Lean_Elab_App_10__elabAppArgsAux___main(x_19, x_2, x_13, x_7, x_61); -return x_62; +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +x_55 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_55, 0, x_54); +lean_ctor_set(x_55, 1, x_50); +lean_inc(x_6); +x_56 = l_Lean_Elab_Term_logTrace(x_47, x_45, x_55, x_6, x_46); +lean_dec(x_45); +x_57 = lean_ctor_get(x_56, 1); +lean_inc(x_57); +lean_dec(x_56); +x_18 = x_57; +goto block_41; } else { -uint8_t x_63; -lean_dec(x_19); -lean_dec(x_13); -lean_dec(x_7); -lean_dec(x_2); -x_63 = !lean_is_exclusive(x_60); -if (x_63 == 0) -{ -return x_60; -} -else -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_60, 0); -x_65 = lean_ctor_get(x_60, 1); -lean_inc(x_65); +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_58 = l___private_Lean_Elab_App_11__elabAppArgs___closed__11; +x_59 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_49); +x_60 = l___private_Lean_Meta_ExprDefEq_8__checkTypesAndAssign___closed__7; +x_61 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_60); +x_62 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_50); +lean_inc(x_6); +x_63 = l_Lean_Elab_Term_logTrace(x_47, x_45, x_62, x_6, x_46); +lean_dec(x_45); +x_64 = lean_ctor_get(x_63, 1); lean_inc(x_64); -lean_dec(x_60); -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; +lean_dec(x_63); +x_18 = x_64; +goto block_41; } } +block_41: +{ +if (x_17 == 0) +{ +lean_object* x_19; +x_19 = l_Lean_Elab_Term_tryPostponeIfMVar(x_12, x_6, x_18); +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_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; +x_20 = lean_ctor_get(x_19, 1); +lean_inc(x_20); +lean_dec(x_19); +x_21 = l_Lean_Elab_Term_getCurrRef(x_6, x_20); +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_unsigned_to_nat(0u); +x_25 = l_Array_empty___closed__1; +x_26 = 0; +x_27 = lean_alloc_ctor(0, 7, 2); +lean_ctor_set(x_27, 0, x_22); +lean_ctor_set(x_27, 1, x_3); +lean_ctor_set(x_27, 2, x_4); +lean_ctor_set(x_27, 3, x_24); +lean_ctor_set(x_27, 4, x_2); +lean_ctor_set(x_27, 5, x_25); +lean_ctor_set(x_27, 6, x_25); +lean_ctor_set_uint8(x_27, sizeof(void*)*7, x_5); +lean_ctor_set_uint8(x_27, sizeof(void*)*7 + 1, x_26); +x_28 = l___private_Lean_Elab_App_10__elabAppArgsAux___main(x_27, x_1, x_12, x_6, x_23); +return x_28; } else { -lean_object* x_67; lean_object* x_68; -x_67 = lean_ctor_get(x_58, 1); -lean_inc(x_67); -lean_dec(x_58); -x_68 = l___private_Lean_Elab_App_10__elabAppArgsAux___main(x_19, x_2, x_13, x_7, x_67); -return x_68; -} -} -} -} -} -} -else -{ -uint8_t x_77; -lean_dec(x_7); -lean_dec(x_5); +uint8_t x_29; +lean_dec(x_12); +lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_77 = !lean_is_exclusive(x_9); -if (x_77 == 0) +x_29 = !lean_is_exclusive(x_19); +if (x_29 == 0) { -return x_9; +return x_19; } else { -lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_78 = lean_ctor_get(x_9, 0); -x_79 = lean_ctor_get(x_9, 1); -lean_inc(x_79); -lean_inc(x_78); -lean_dec(x_9); -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_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_19, 0); +x_31 = lean_ctor_get(x_19, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_19); +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; } } } -} -lean_object* l___private_Lean_Elab_App_11__elabAppArgs___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: +else { -uint8_t x_9; lean_object* x_10; -x_9 = lean_unbox(x_6); +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; lean_object* x_40; +x_33 = l_Lean_Elab_Term_getCurrRef(x_6, x_18); +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_unsigned_to_nat(0u); +x_37 = l_Array_empty___closed__1; +x_38 = 0; +x_39 = lean_alloc_ctor(0, 7, 2); +lean_ctor_set(x_39, 0, x_34); +lean_ctor_set(x_39, 1, x_3); +lean_ctor_set(x_39, 2, x_4); +lean_ctor_set(x_39, 3, x_36); +lean_ctor_set(x_39, 4, x_2); +lean_ctor_set(x_39, 5, x_37); +lean_ctor_set(x_39, 6, x_37); +lean_ctor_set_uint8(x_39, sizeof(void*)*7, x_5); +lean_ctor_set_uint8(x_39, sizeof(void*)*7 + 1, x_38); +x_40 = l___private_Lean_Elab_App_10__elabAppArgsAux___main(x_39, x_1, x_12, x_6, x_35); +return x_40; +} +} +} +} +} +else +{ +uint8_t x_71; lean_dec(x_6); -x_10 = l___private_Lean_Elab_App_11__elabAppArgs(x_1, x_2, x_3, x_4, x_5, x_9, x_7, x_8); -return x_10; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_71 = !lean_is_exclusive(x_8); +if (x_71 == 0) +{ +return x_8; +} +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_72 = lean_ctor_get(x_8, 0); +x_73 = lean_ctor_get(x_8, 1); +lean_inc(x_73); +lean_inc(x_72); +lean_dec(x_8); +x_74 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_74, 0, x_72); +lean_ctor_set(x_74, 1, x_73); +return x_74; } } -lean_object* l___private_Lean_Elab_App_12__throwLValError___rarg(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* l___private_Lean_Elab_App_11__elabAppArgs___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_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; -x_7 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_7, 0, x_2); -x_8 = l_Lean_indentExpr(x_7); -x_9 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_9, 0, x_4); -lean_ctor_set(x_9, 1, x_8); -x_10 = l_Lean_MessageData_ofList___closed__3; -x_11 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_11, 0, x_9); -lean_ctor_set(x_11, 1, x_10); -x_12 = l_Lean_KernelException_toMessageData___closed__12; -x_13 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_13, 0, x_11); -lean_ctor_set(x_13, 1, x_12); -x_14 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_14, 0, x_3); -x_15 = l_Lean_indentExpr(x_14); -x_16 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_16, 0, x_13); -lean_ctor_set(x_16, 1, x_15); -x_17 = l_Lean_Elab_Term_throwError___rarg(x_1, x_16, x_5, x_6); -return x_17; +uint8_t x_8; lean_object* x_9; +x_8 = lean_unbox(x_5); +lean_dec(x_5); +x_9 = l___private_Lean_Elab_App_11__elabAppArgs(x_1, x_2, x_3, x_4, x_8, x_6, x_7); +return x_9; +} +} +lean_object* l___private_Lean_Elab_App_12__throwLValError___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_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; +x_6 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_6, 0, x_1); +x_7 = l_Lean_indentExpr(x_6); +x_8 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_8, 0, x_3); +lean_ctor_set(x_8, 1, x_7); +x_9 = l_Lean_MessageData_ofList___closed__3; +x_10 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_10, 0, x_8); +lean_ctor_set(x_10, 1, x_9); +x_11 = l_Lean_KernelException_toMessageData___closed__12; +x_12 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_11); +x_13 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_13, 0, x_2); +x_14 = l_Lean_indentExpr(x_13); +x_15 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_15, 0, x_12); +lean_ctor_set(x_15, 1, x_14); +x_16 = l_Lean_Elab_Term_throwError___rarg(x_15, x_4, x_5); +return x_16; } } lean_object* l___private_Lean_Elab_App_12__throwLValError(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_12__throwLValError___rarg___boxed), 6, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_App_12__throwLValError___rarg), 5, 0); return x_2; } } -lean_object* l___private_Lean_Elab_App_12__throwLValError___rarg___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___private_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_1); -return x_7; -} -} lean_object* _init_l___private_Lean_Elab_App_13__resolveLValAux___closed__1() { _start: { @@ -10115,299 +14040,299 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_App_13__resolveLValAux(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* l___private_Lean_Elab_App_13__resolveLValAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_7; lean_object* x_13; -x_13 = l_Lean_Expr_getAppFn___main(x_3); -if (lean_obj_tag(x_13) == 4) +lean_object* x_6; lean_object* x_12; +x_12 = l_Lean_Expr_getAppFn___main(x_2); +if (lean_obj_tag(x_12) == 4) { -switch (lean_obj_tag(x_4)) { +switch (lean_obj_tag(x_3)) { case 0: { -lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; uint8_t x_18; -x_14 = lean_ctor_get(x_13, 0); +lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; uint8_t x_17; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_ctor_get(x_3, 0); lean_inc(x_14); -lean_dec(x_13); -x_15 = lean_ctor_get(x_4, 0); -lean_inc(x_15); -lean_dec(x_4); -x_16 = lean_unsigned_to_nat(0u); -x_17 = lean_nat_dec_eq(x_15, x_16); -if (x_17 == 0) +lean_dec(x_3); +x_15 = lean_unsigned_to_nat(0u); +x_16 = lean_nat_dec_eq(x_14, x_15); +if (x_16 == 0) +{ +uint8_t x_83; +x_83 = 0; +x_17 = x_83; +goto block_82; +} +else { uint8_t x_84; -x_84 = 0; -x_18 = x_84; -goto block_83; +x_84 = 1; +x_17 = x_84; +goto block_82; +} +block_82: +{ +lean_object* x_18; +if (x_17 == 0) +{ +x_18 = x_5; +goto block_75; } else { -uint8_t x_85; -x_85 = 1; -x_18 = x_85; -goto block_83; -} -block_83: -{ -lean_object* x_19; -if (x_18 == 0) -{ -x_19 = x_6; -goto block_76; -} -else -{ -lean_object* x_77; lean_object* x_78; uint8_t x_79; -lean_dec(x_15); +lean_object* x_76; lean_object* x_77; uint8_t x_78; lean_dec(x_14); -lean_dec(x_3); +lean_dec(x_13); lean_dec(x_2); -x_77 = l___private_Lean_Elab_App_13__resolveLValAux___closed__18; -x_78 = l_Lean_Elab_Term_throwError___rarg(x_1, x_77, x_5, x_6); -x_79 = !lean_is_exclusive(x_78); -if (x_79 == 0) +lean_dec(x_1); +x_76 = l___private_Lean_Elab_App_13__resolveLValAux___closed__18; +x_77 = l_Lean_Elab_Term_throwError___rarg(x_76, x_4, x_5); +x_78 = !lean_is_exclusive(x_77); +if (x_78 == 0) { -return x_78; +return x_77; } else { -lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_80 = lean_ctor_get(x_78, 0); -x_81 = lean_ctor_get(x_78, 1); -lean_inc(x_81); +lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_79 = lean_ctor_get(x_77, 0); +x_80 = lean_ctor_get(x_77, 1); lean_inc(x_80); -lean_dec(x_78); -x_82 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_82, 0, x_80); -lean_ctor_set(x_82, 1, x_81); -return x_82; +lean_inc(x_79); +lean_dec(x_77); +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; } } -block_76: +block_75: { -lean_object* x_20; uint8_t x_21; -x_20 = l_Lean_Elab_Term_getEnv___rarg(x_19); -x_21 = !lean_is_exclusive(x_20); -if (x_21 == 0) +lean_object* x_19; uint8_t x_20; +x_19 = l_Lean_Elab_Term_getEnv___rarg(x_18); +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) { -lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; -x_22 = lean_ctor_get(x_20, 0); -x_23 = lean_ctor_get(x_20, 1); -lean_inc(x_14); -lean_inc(x_22); -x_24 = l_Lean_isStructureLike(x_22, x_14); -lean_inc(x_14); -lean_inc(x_22); -x_25 = l_Lean_getStructureFields(x_22, x_14); -x_26 = lean_unsigned_to_nat(1u); -x_27 = lean_nat_sub(x_15, x_26); -lean_dec(x_15); -x_28 = lean_array_get_size(x_25); -x_29 = lean_nat_dec_lt(x_27, x_28); -if (x_24 == 0) -{ -lean_object* x_30; lean_object* x_31; uint8_t x_32; -lean_dec(x_28); -lean_dec(x_27); -lean_dec(x_25); -lean_free_object(x_20); -lean_dec(x_22); +lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_21 = lean_ctor_get(x_19, 0); +x_22 = lean_ctor_get(x_19, 1); +lean_inc(x_13); +lean_inc(x_21); +x_23 = l_Lean_isStructureLike(x_21, x_13); +lean_inc(x_13); +lean_inc(x_21); +x_24 = l_Lean_getStructureFields(x_21, x_13); +x_25 = lean_unsigned_to_nat(1u); +x_26 = lean_nat_sub(x_14, x_25); lean_dec(x_14); -x_30 = l___private_Lean_Elab_App_13__resolveLValAux___closed__9; -x_31 = l___private_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_3, x_30, x_5, x_23); -x_32 = !lean_is_exclusive(x_31); -if (x_32 == 0) +x_27 = lean_array_get_size(x_24); +x_28 = lean_nat_dec_lt(x_26, x_27); +if (x_23 == 0) { -return x_31; +lean_object* x_29; lean_object* x_30; uint8_t x_31; +lean_dec(x_27); +lean_dec(x_26); +lean_dec(x_24); +lean_free_object(x_19); +lean_dec(x_21); +lean_dec(x_13); +x_29 = l___private_Lean_Elab_App_13__resolveLValAux___closed__9; +x_30 = l___private_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_29, x_4, x_22); +x_31 = !lean_is_exclusive(x_30); +if (x_31 == 0) +{ +return x_30; } else { -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_31, 0); -x_34 = lean_ctor_get(x_31, 1); -lean_inc(x_34); +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_30, 0); +x_33 = lean_ctor_get(x_30, 1); lean_inc(x_33); -lean_dec(x_31); -x_35 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_35, 0, x_33); -lean_ctor_set(x_35, 1, x_34); -return x_35; +lean_inc(x_32); +lean_dec(x_30); +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; } } else { -if (x_29 == 0) +if (x_28 == 0) { -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -lean_dec(x_27); -lean_dec(x_25); -lean_free_object(x_20); -lean_dec(x_22); -lean_dec(x_14); -x_36 = l_Nat_repr(x_28); -x_37 = lean_alloc_ctor(2, 1, 0); +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_dec(x_26); +lean_dec(x_24); +lean_free_object(x_19); +lean_dec(x_21); +lean_dec(x_13); +x_35 = l_Nat_repr(x_27); +x_36 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_36, 0, x_35); +x_37 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_37, 0, x_36); -x_38 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_38, 0, x_37); -x_39 = l___private_Lean_Elab_App_13__resolveLValAux___closed__12; -x_40 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_38); -x_41 = l___private_Lean_Elab_App_13__resolveLValAux___closed__15; -x_42 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -x_43 = l___private_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_3, x_42, x_5, x_23); -return x_43; +x_38 = l___private_Lean_Elab_App_13__resolveLValAux___closed__12; +x_39 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_37); +x_40 = l___private_Lean_Elab_App_13__resolveLValAux___closed__15; +x_41 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +x_42 = l___private_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_41, x_4, x_22); +return x_42; } else { -uint8_t x_44; -lean_dec(x_28); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_inc(x_14); -x_44 = l_Lean_isStructure(x_22, x_14); -if (x_44 == 0) -{ -lean_object* x_45; -lean_dec(x_25); -x_45 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_45, 0, x_14); -lean_ctor_set(x_45, 1, x_27); -lean_ctor_set(x_20, 0, x_45); -return x_20; -} -else -{ -lean_object* x_46; lean_object* x_47; -x_46 = lean_array_fget(x_25, x_27); +uint8_t x_43; lean_dec(x_27); -lean_dec(x_25); -lean_inc(x_14); -x_47 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_47, 0, x_14); -lean_ctor_set(x_47, 1, x_14); -lean_ctor_set(x_47, 2, x_46); -lean_ctor_set(x_20, 0, x_47); -return x_20; -} -} -} -} -else -{ -lean_object* x_48; lean_object* x_49; uint8_t x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; -x_48 = lean_ctor_get(x_20, 0); -x_49 = lean_ctor_get(x_20, 1); -lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_20); -lean_inc(x_14); -lean_inc(x_48); -x_50 = l_Lean_isStructureLike(x_48, x_14); -lean_inc(x_14); -lean_inc(x_48); -x_51 = l_Lean_getStructureFields(x_48, x_14); -x_52 = lean_unsigned_to_nat(1u); -x_53 = lean_nat_sub(x_15, x_52); -lean_dec(x_15); -x_54 = lean_array_get_size(x_51); -x_55 = lean_nat_dec_lt(x_53, x_54); -if (x_50 == 0) -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; -lean_dec(x_54); -lean_dec(x_53); -lean_dec(x_51); -lean_dec(x_48); -lean_dec(x_14); -x_56 = l___private_Lean_Elab_App_13__resolveLValAux___closed__9; -x_57 = l___private_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_3, x_56, x_5, x_49); -x_58 = lean_ctor_get(x_57, 0); -lean_inc(x_58); -x_59 = lean_ctor_get(x_57, 1); -lean_inc(x_59); -if (lean_is_exclusive(x_57)) { - lean_ctor_release(x_57, 0); - lean_ctor_release(x_57, 1); - x_60 = x_57; -} else { - lean_dec_ref(x_57); - x_60 = lean_box(0); -} -if (lean_is_scalar(x_60)) { - x_61 = lean_alloc_ctor(1, 2, 0); -} else { - x_61 = x_60; -} -lean_ctor_set(x_61, 0, x_58); -lean_ctor_set(x_61, 1, x_59); -return x_61; -} -else -{ -if (x_55 == 0) -{ -lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; -lean_dec(x_53); -lean_dec(x_51); -lean_dec(x_48); -lean_dec(x_14); -x_62 = l_Nat_repr(x_54); -x_63 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_63, 0, x_62); -x_64 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_64, 0, x_63); -x_65 = l___private_Lean_Elab_App_13__resolveLValAux___closed__12; -x_66 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_66, 0, x_65); -lean_ctor_set(x_66, 1, x_64); -x_67 = l___private_Lean_Elab_App_13__resolveLValAux___closed__15; -x_68 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_68, 0, x_66); -lean_ctor_set(x_68, 1, x_67); -x_69 = l___private_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_3, x_68, x_5, x_49); -return x_69; -} -else -{ -uint8_t x_70; -lean_dec(x_54); -lean_dec(x_5); -lean_dec(x_3); +lean_dec(x_4); lean_dec(x_2); -lean_inc(x_14); -x_70 = l_Lean_isStructure(x_48, x_14); -if (x_70 == 0) +lean_dec(x_1); +lean_inc(x_13); +x_43 = l_Lean_isStructure(x_21, x_13); +if (x_43 == 0) { -lean_object* x_71; lean_object* x_72; -lean_dec(x_51); -x_71 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_71, 0, x_14); -lean_ctor_set(x_71, 1, x_53); -x_72 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_72, 0, x_71); -lean_ctor_set(x_72, 1, x_49); -return x_72; +lean_object* x_44; +lean_dec(x_24); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_13); +lean_ctor_set(x_44, 1, x_26); +lean_ctor_set(x_19, 0, x_44); +return x_19; } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_array_fget(x_51, x_53); +lean_object* x_45; lean_object* x_46; +x_45 = lean_array_fget(x_24, x_26); +lean_dec(x_26); +lean_dec(x_24); +lean_inc(x_13); +x_46 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_46, 0, x_13); +lean_ctor_set(x_46, 1, x_13); +lean_ctor_set(x_46, 2, x_45); +lean_ctor_set(x_19, 0, x_46); +return x_19; +} +} +} +} +else +{ +lean_object* x_47; lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; +x_47 = lean_ctor_get(x_19, 0); +x_48 = lean_ctor_get(x_19, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_19); +lean_inc(x_13); +lean_inc(x_47); +x_49 = l_Lean_isStructureLike(x_47, x_13); +lean_inc(x_13); +lean_inc(x_47); +x_50 = l_Lean_getStructureFields(x_47, x_13); +x_51 = lean_unsigned_to_nat(1u); +x_52 = lean_nat_sub(x_14, x_51); +lean_dec(x_14); +x_53 = lean_array_get_size(x_50); +x_54 = lean_nat_dec_lt(x_52, x_53); +if (x_49 == 0) +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_dec(x_53); -lean_dec(x_51); -lean_inc(x_14); -x_74 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_74, 0, x_14); -lean_ctor_set(x_74, 1, x_14); -lean_ctor_set(x_74, 2, x_73); -x_75 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_75, 0, x_74); -lean_ctor_set(x_75, 1, x_49); -return x_75; +lean_dec(x_52); +lean_dec(x_50); +lean_dec(x_47); +lean_dec(x_13); +x_55 = l___private_Lean_Elab_App_13__resolveLValAux___closed__9; +x_56 = l___private_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_55, x_4, x_48); +x_57 = lean_ctor_get(x_56, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_56, 1); +lean_inc(x_58); +if (lean_is_exclusive(x_56)) { + lean_ctor_release(x_56, 0); + lean_ctor_release(x_56, 1); + x_59 = x_56; +} else { + lean_dec_ref(x_56); + x_59 = lean_box(0); +} +if (lean_is_scalar(x_59)) { + x_60 = lean_alloc_ctor(1, 2, 0); +} else { + x_60 = x_59; +} +lean_ctor_set(x_60, 0, x_57); +lean_ctor_set(x_60, 1, x_58); +return x_60; +} +else +{ +if (x_54 == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +lean_dec(x_52); +lean_dec(x_50); +lean_dec(x_47); +lean_dec(x_13); +x_61 = l_Nat_repr(x_53); +x_62 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_62, 0, x_61); +x_63 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_63, 0, x_62); +x_64 = l___private_Lean_Elab_App_13__resolveLValAux___closed__12; +x_65 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_63); +x_66 = l___private_Lean_Elab_App_13__resolveLValAux___closed__15; +x_67 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_67, 0, x_65); +lean_ctor_set(x_67, 1, x_66); +x_68 = l___private_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_67, x_4, x_48); +return x_68; +} +else +{ +uint8_t x_69; +lean_dec(x_53); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +lean_inc(x_13); +x_69 = l_Lean_isStructure(x_47, x_13); +if (x_69 == 0) +{ +lean_object* x_70; lean_object* x_71; +lean_dec(x_50); +x_70 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_70, 0, x_13); +lean_ctor_set(x_70, 1, x_52); +x_71 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_71, 0, x_70); +lean_ctor_set(x_71, 1, x_48); +return x_71; +} +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_72 = lean_array_fget(x_50, x_52); +lean_dec(x_52); +lean_dec(x_50); +lean_inc(x_13); +x_73 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_73, 0, x_13); +lean_ctor_set(x_73, 1, x_13); +lean_ctor_set(x_73, 2, x_72); +x_74 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_74, 0, x_73); +lean_ctor_set(x_74, 1, x_48); +return x_74; } } } @@ -10417,1518 +14342,1509 @@ return x_75; } case 1: { -lean_object* x_86; lean_object* x_87; lean_object* x_88; uint8_t x_89; -x_86 = lean_ctor_get(x_13, 0); +lean_object* x_85; lean_object* x_86; lean_object* x_87; uint8_t x_88; +x_85 = lean_ctor_get(x_12, 0); +lean_inc(x_85); +lean_dec(x_12); +x_86 = lean_ctor_get(x_3, 0); lean_inc(x_86); -lean_dec(x_13); -x_87 = lean_ctor_get(x_4, 0); -lean_inc(x_87); -lean_dec(x_4); -x_88 = l_Lean_Elab_Term_getEnv___rarg(x_6); -x_89 = !lean_is_exclusive(x_88); -if (x_89 == 0) +lean_dec(x_3); +x_87 = l_Lean_Elab_Term_getEnv___rarg(x_5); +x_88 = !lean_is_exclusive(x_87); +if (x_88 == 0) { -lean_object* x_90; lean_object* x_91; uint8_t x_92; -x_90 = lean_ctor_get(x_88, 0); -x_91 = lean_ctor_get(x_88, 1); +lean_object* x_89; lean_object* x_90; uint8_t x_91; +x_89 = lean_ctor_get(x_87, 0); +x_90 = lean_ctor_get(x_87, 1); +lean_inc(x_85); +lean_inc(x_89); +x_91 = l_Lean_isStructure(x_89, x_85); +if (x_91 == 0) +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; uint8_t x_100; +lean_free_object(x_87); +x_92 = lean_box(0); lean_inc(x_86); -lean_inc(x_90); -x_92 = l_Lean_isStructure(x_90, x_86); -if (x_92 == 0) -{ -lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; -lean_free_object(x_88); -x_93 = lean_box(0); -lean_inc(x_87); -x_94 = lean_name_mk_string(x_93, x_87); -x_95 = l_Lean_Name_append___main(x_86, x_94); -x_96 = l_Lean_Elab_Term_getCurrNamespace(x_5, x_91); -x_97 = lean_ctor_get(x_96, 0); +x_93 = lean_name_mk_string(x_92, x_86); +x_94 = l_Lean_Name_append___main(x_85, x_93); +x_95 = l_Lean_Elab_Term_getCurrNamespace(x_4, x_90); +x_96 = lean_ctor_get(x_95, 0); +lean_inc(x_96); +x_97 = lean_ctor_get(x_95, 1); lean_inc(x_97); -x_98 = lean_ctor_get(x_96, 1); -lean_inc(x_98); +lean_dec(x_95); +lean_inc(x_94); +x_98 = l_Lean_Name_replacePrefix___main(x_94, x_96, x_92); lean_dec(x_96); -lean_inc(x_95); -x_99 = l_Lean_Name_replacePrefix___main(x_95, x_97, x_93); -lean_dec(x_97); -x_100 = l_Lean_Elab_Term_getLCtx(x_5, x_98); -x_101 = !lean_is_exclusive(x_100); -if (x_101 == 0) +x_99 = l_Lean_Elab_Term_getLCtx(x_4, x_97); +x_100 = !lean_is_exclusive(x_99); +if (x_100 == 0) { -lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_102 = lean_ctor_get(x_100, 0); -x_103 = lean_ctor_get(x_100, 1); -x_104 = lean_local_ctx_find_from_user_name(x_102, x_99); +lean_object* x_101; lean_object* x_102; lean_object* x_103; +x_101 = lean_ctor_get(x_99, 0); +x_102 = lean_ctor_get(x_99, 1); +x_103 = lean_local_ctx_find_from_user_name(x_101, x_98); +if (lean_obj_tag(x_103) == 0) +{ +lean_object* x_104; +lean_inc(x_94); +lean_inc(x_89); +x_104 = lean_environment_find(x_89, x_94); if (lean_obj_tag(x_104) == 0) { -lean_object* x_105; -lean_inc(x_95); -lean_inc(x_90); -x_105 = lean_environment_find(x_90, x_95); -if (lean_obj_tag(x_105) == 0) +lean_object* x_105; lean_object* x_106; +lean_inc(x_94); +lean_inc(x_89); +x_105 = l_Lean_mkPrivateName(x_89, x_94); +lean_inc(x_105); +x_106 = lean_environment_find(x_89, x_105); +if (lean_obj_tag(x_106) == 0) { -lean_object* x_106; lean_object* x_107; -lean_inc(x_95); -lean_inc(x_90); -x_106 = l_Lean_mkPrivateName(x_90, x_95); -lean_inc(x_106); -x_107 = lean_environment_find(x_90, x_106); -if (lean_obj_tag(x_107) == 0) +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +lean_dec(x_105); +lean_free_object(x_99); +lean_dec(x_85); +x_107 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_107, 0, x_86); +x_108 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_108, 0, x_107); +x_109 = l___private_Lean_Elab_App_13__resolveLValAux___closed__21; +x_110 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_110, 0, x_109); +lean_ctor_set(x_110, 1, x_108); +x_111 = l___private_Lean_Elab_App_13__resolveLValAux___closed__24; +x_112 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_112, 0, x_110); +lean_ctor_set(x_112, 1, x_111); +x_113 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_113, 0, x_94); +x_114 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_114, 0, x_112); +lean_ctor_set(x_114, 1, x_113); +x_115 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; +x_116 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_116, 0, x_114); +lean_ctor_set(x_116, 1, x_115); +x_117 = l___private_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_116, x_4, x_102); +return x_117; +} +else { -lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; +lean_object* x_118; lean_dec(x_106); -lean_free_object(x_100); +lean_dec(x_94); lean_dec(x_86); -x_108 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_108, 0, x_87); -x_109 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_109, 0, x_108); -x_110 = l___private_Lean_Elab_App_13__resolveLValAux___closed__21; -x_111 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_111, 0, x_110); -lean_ctor_set(x_111, 1, x_109); -x_112 = l___private_Lean_Elab_App_13__resolveLValAux___closed__24; -x_113 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_113, 0, x_111); -lean_ctor_set(x_113, 1, x_112); -x_114 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_114, 0, x_95); -x_115 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_115, 0, x_113); -lean_ctor_set(x_115, 1, x_114); -x_116 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; -x_117 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_117, 0, x_115); -lean_ctor_set(x_117, 1, x_116); -x_118 = l___private_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_3, x_117, x_5, x_103); -return x_118; +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_118 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_118, 0, x_85); +lean_ctor_set(x_118, 1, x_105); +lean_ctor_set(x_99, 0, x_118); +return x_99; +} } else { lean_object* x_119; -lean_dec(x_107); -lean_dec(x_95); -lean_dec(x_87); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_119 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_119, 0, x_86); -lean_ctor_set(x_119, 1, x_106); -lean_ctor_set(x_100, 0, x_119); -return x_100; -} -} -else -{ -lean_object* x_120; -lean_dec(x_105); -lean_dec(x_90); -lean_dec(x_87); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_120 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_120, 0, x_86); -lean_ctor_set(x_120, 1, x_95); -lean_ctor_set(x_100, 0, x_120); -return x_100; -} -} -else -{ -lean_object* x_121; uint8_t x_122; uint8_t x_123; uint8_t x_124; -x_121 = lean_ctor_get(x_104, 0); -lean_inc(x_121); lean_dec(x_104); -x_122 = l_Lean_LocalDecl_binderInfo(x_121); -x_123 = 4; -x_124 = l_Lean_BinderInfo_beq(x_122, x_123); -if (x_124 == 0) -{ -lean_object* x_125; -lean_dec(x_121); -lean_inc(x_95); -lean_inc(x_90); -x_125 = lean_environment_find(x_90, x_95); -if (lean_obj_tag(x_125) == 0) -{ -lean_object* x_126; lean_object* x_127; -lean_inc(x_95); -lean_inc(x_90); -x_126 = l_Lean_mkPrivateName(x_90, x_95); -lean_inc(x_126); -x_127 = lean_environment_find(x_90, x_126); -if (lean_obj_tag(x_127) == 0) -{ -lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; -lean_dec(x_126); -lean_free_object(x_100); +lean_dec(x_89); lean_dec(x_86); -x_128 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_128, 0, x_87); -x_129 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_129, 0, x_128); -x_130 = l___private_Lean_Elab_App_13__resolveLValAux___closed__21; -x_131 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_131, 0, x_130); -lean_ctor_set(x_131, 1, x_129); -x_132 = l___private_Lean_Elab_App_13__resolveLValAux___closed__24; -x_133 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_133, 0, x_131); -lean_ctor_set(x_133, 1, x_132); -x_134 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_134, 0, x_95); -x_135 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_135, 0, x_133); -lean_ctor_set(x_135, 1, x_134); -x_136 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; -x_137 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_137, 0, x_135); -lean_ctor_set(x_137, 1, x_136); -x_138 = l___private_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_3, x_137, x_5, x_103); -return x_138; +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_119 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_119, 0, x_85); +lean_ctor_set(x_119, 1, x_94); +lean_ctor_set(x_99, 0, x_119); +return x_99; +} +} +else +{ +lean_object* x_120; uint8_t x_121; uint8_t x_122; uint8_t x_123; +x_120 = lean_ctor_get(x_103, 0); +lean_inc(x_120); +lean_dec(x_103); +x_121 = l_Lean_LocalDecl_binderInfo(x_120); +x_122 = 4; +x_123 = l_Lean_BinderInfo_beq(x_121, x_122); +if (x_123 == 0) +{ +lean_object* x_124; +lean_dec(x_120); +lean_inc(x_94); +lean_inc(x_89); +x_124 = lean_environment_find(x_89, x_94); +if (lean_obj_tag(x_124) == 0) +{ +lean_object* x_125; lean_object* x_126; +lean_inc(x_94); +lean_inc(x_89); +x_125 = l_Lean_mkPrivateName(x_89, x_94); +lean_inc(x_125); +x_126 = lean_environment_find(x_89, x_125); +if (lean_obj_tag(x_126) == 0) +{ +lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; +lean_dec(x_125); +lean_free_object(x_99); +lean_dec(x_85); +x_127 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_127, 0, x_86); +x_128 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_128, 0, x_127); +x_129 = l___private_Lean_Elab_App_13__resolveLValAux___closed__21; +x_130 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_130, 0, x_129); +lean_ctor_set(x_130, 1, x_128); +x_131 = l___private_Lean_Elab_App_13__resolveLValAux___closed__24; +x_132 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_132, 0, x_130); +lean_ctor_set(x_132, 1, x_131); +x_133 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_133, 0, x_94); +x_134 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_134, 0, x_132); +lean_ctor_set(x_134, 1, x_133); +x_135 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; +x_136 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_136, 0, x_134); +lean_ctor_set(x_136, 1, x_135); +x_137 = l___private_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_136, x_4, x_102); +return x_137; +} +else +{ +lean_object* x_138; +lean_dec(x_126); +lean_dec(x_94); +lean_dec(x_86); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_138 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_138, 0, x_85); +lean_ctor_set(x_138, 1, x_125); +lean_ctor_set(x_99, 0, x_138); +return x_99; +} } else { lean_object* x_139; -lean_dec(x_127); -lean_dec(x_95); -lean_dec(x_87); -lean_dec(x_5); -lean_dec(x_3); +lean_dec(x_124); +lean_dec(x_89); +lean_dec(x_86); +lean_dec(x_4); lean_dec(x_2); +lean_dec(x_1); x_139 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_139, 0, x_86); -lean_ctor_set(x_139, 1, x_126); -lean_ctor_set(x_100, 0, x_139); -return x_100; +lean_ctor_set(x_139, 0, x_85); +lean_ctor_set(x_139, 1, x_94); +lean_ctor_set(x_99, 0, x_139); +return x_99; } } else { -lean_object* x_140; -lean_dec(x_125); -lean_dec(x_90); -lean_dec(x_87); -lean_dec(x_5); -lean_dec(x_3); +lean_object* x_140; lean_object* x_141; +lean_dec(x_89); +lean_dec(x_86); +lean_dec(x_4); lean_dec(x_2); -x_140 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_140, 0, x_86); -lean_ctor_set(x_140, 1, x_95); -lean_ctor_set(x_100, 0, x_140); -return x_100; -} -} -else -{ -lean_object* x_141; lean_object* x_142; -lean_dec(x_90); -lean_dec(x_87); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_141 = l_Lean_LocalDecl_toExpr(x_121); -lean_dec(x_121); -x_142 = lean_alloc_ctor(3, 3, 0); -lean_ctor_set(x_142, 0, x_86); -lean_ctor_set(x_142, 1, x_95); -lean_ctor_set(x_142, 2, x_141); -lean_ctor_set(x_100, 0, x_142); -return x_100; +lean_dec(x_1); +x_140 = l_Lean_LocalDecl_toExpr(x_120); +lean_dec(x_120); +x_141 = lean_alloc_ctor(3, 3, 0); +lean_ctor_set(x_141, 0, x_85); +lean_ctor_set(x_141, 1, x_94); +lean_ctor_set(x_141, 2, x_140); +lean_ctor_set(x_99, 0, x_141); +return x_99; } } } else { -lean_object* x_143; lean_object* x_144; lean_object* x_145; -x_143 = lean_ctor_get(x_100, 0); -x_144 = lean_ctor_get(x_100, 1); -lean_inc(x_144); +lean_object* x_142; lean_object* x_143; lean_object* x_144; +x_142 = lean_ctor_get(x_99, 0); +x_143 = lean_ctor_get(x_99, 1); lean_inc(x_143); -lean_dec(x_100); -x_145 = lean_local_ctx_find_from_user_name(x_143, x_99); +lean_inc(x_142); +lean_dec(x_99); +x_144 = lean_local_ctx_find_from_user_name(x_142, x_98); +if (lean_obj_tag(x_144) == 0) +{ +lean_object* x_145; +lean_inc(x_94); +lean_inc(x_89); +x_145 = lean_environment_find(x_89, x_94); if (lean_obj_tag(x_145) == 0) { -lean_object* x_146; -lean_inc(x_95); -lean_inc(x_90); -x_146 = lean_environment_find(x_90, x_95); -if (lean_obj_tag(x_146) == 0) +lean_object* x_146; lean_object* x_147; +lean_inc(x_94); +lean_inc(x_89); +x_146 = l_Lean_mkPrivateName(x_89, x_94); +lean_inc(x_146); +x_147 = lean_environment_find(x_89, x_146); +if (lean_obj_tag(x_147) == 0) { -lean_object* x_147; lean_object* x_148; -lean_inc(x_95); -lean_inc(x_90); -x_147 = l_Lean_mkPrivateName(x_90, x_95); -lean_inc(x_147); -x_148 = lean_environment_find(x_90, x_147); -if (lean_obj_tag(x_148) == 0) -{ -lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; -lean_dec(x_147); -lean_dec(x_86); -x_149 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_149, 0, x_87); -x_150 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_150, 0, x_149); -x_151 = l___private_Lean_Elab_App_13__resolveLValAux___closed__21; -x_152 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_152, 0, x_151); -lean_ctor_set(x_152, 1, x_150); -x_153 = l___private_Lean_Elab_App_13__resolveLValAux___closed__24; -x_154 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_154, 0, x_152); -lean_ctor_set(x_154, 1, x_153); -x_155 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_155, 0, x_95); -x_156 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_156, 0, x_154); -lean_ctor_set(x_156, 1, x_155); -x_157 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; -x_158 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_158, 0, x_156); -lean_ctor_set(x_158, 1, x_157); -x_159 = l___private_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_3, x_158, x_5, x_144); -return x_159; -} -else -{ -lean_object* x_160; lean_object* x_161; -lean_dec(x_148); -lean_dec(x_95); -lean_dec(x_87); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_160 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_160, 0, x_86); -lean_ctor_set(x_160, 1, x_147); -x_161 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_161, 0, x_160); -lean_ctor_set(x_161, 1, x_144); -return x_161; -} -} -else -{ -lean_object* x_162; lean_object* x_163; +lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_dec(x_146); -lean_dec(x_90); -lean_dec(x_87); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_162 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_162, 0, x_86); -lean_ctor_set(x_162, 1, x_95); -x_163 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_163, 0, x_162); -lean_ctor_set(x_163, 1, x_144); -return x_163; -} +lean_dec(x_85); +x_148 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_148, 0, x_86); +x_149 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_149, 0, x_148); +x_150 = l___private_Lean_Elab_App_13__resolveLValAux___closed__21; +x_151 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_151, 0, x_150); +lean_ctor_set(x_151, 1, x_149); +x_152 = l___private_Lean_Elab_App_13__resolveLValAux___closed__24; +x_153 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_153, 0, x_151); +lean_ctor_set(x_153, 1, x_152); +x_154 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_154, 0, x_94); +x_155 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_155, 0, x_153); +lean_ctor_set(x_155, 1, x_154); +x_156 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; +x_157 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_157, 0, x_155); +lean_ctor_set(x_157, 1, x_156); +x_158 = l___private_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_157, x_4, x_143); +return x_158; } else { -lean_object* x_164; uint8_t x_165; uint8_t x_166; uint8_t x_167; -x_164 = lean_ctor_get(x_145, 0); -lean_inc(x_164); -lean_dec(x_145); -x_165 = l_Lean_LocalDecl_binderInfo(x_164); -x_166 = 4; -x_167 = l_Lean_BinderInfo_beq(x_165, x_166); -if (x_167 == 0) -{ -lean_object* x_168; -lean_dec(x_164); -lean_inc(x_95); -lean_inc(x_90); -x_168 = lean_environment_find(x_90, x_95); -if (lean_obj_tag(x_168) == 0) -{ -lean_object* x_169; lean_object* x_170; -lean_inc(x_95); -lean_inc(x_90); -x_169 = l_Lean_mkPrivateName(x_90, x_95); -lean_inc(x_169); -x_170 = lean_environment_find(x_90, x_169); -if (lean_obj_tag(x_170) == 0) -{ -lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; -lean_dec(x_169); +lean_object* x_159; lean_object* x_160; +lean_dec(x_147); +lean_dec(x_94); lean_dec(x_86); -x_171 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_171, 0, x_87); -x_172 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_172, 0, x_171); -x_173 = l___private_Lean_Elab_App_13__resolveLValAux___closed__21; -x_174 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_174, 0, x_173); -lean_ctor_set(x_174, 1, x_172); -x_175 = l___private_Lean_Elab_App_13__resolveLValAux___closed__24; -x_176 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_176, 0, x_174); -lean_ctor_set(x_176, 1, x_175); -x_177 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_177, 0, x_95); -x_178 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_178, 0, x_176); -lean_ctor_set(x_178, 1, x_177); -x_179 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; -x_180 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_180, 0, x_178); -lean_ctor_set(x_180, 1, x_179); -x_181 = l___private_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_3, x_180, x_5, x_144); -return x_181; -} -else -{ -lean_object* x_182; lean_object* x_183; -lean_dec(x_170); -lean_dec(x_95); -lean_dec(x_87); -lean_dec(x_5); -lean_dec(x_3); +lean_dec(x_4); lean_dec(x_2); -x_182 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_182, 0, x_86); -lean_ctor_set(x_182, 1, x_169); -x_183 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_183, 0, x_182); -lean_ctor_set(x_183, 1, x_144); -return x_183; +lean_dec(x_1); +x_159 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_159, 0, x_85); +lean_ctor_set(x_159, 1, x_146); +x_160 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_160, 0, x_159); +lean_ctor_set(x_160, 1, x_143); +return x_160; } } else { -lean_object* x_184; lean_object* x_185; +lean_object* x_161; lean_object* x_162; +lean_dec(x_145); +lean_dec(x_89); +lean_dec(x_86); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_161 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_161, 0, x_85); +lean_ctor_set(x_161, 1, x_94); +x_162 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_162, 0, x_161); +lean_ctor_set(x_162, 1, x_143); +return x_162; +} +} +else +{ +lean_object* x_163; uint8_t x_164; uint8_t x_165; uint8_t x_166; +x_163 = lean_ctor_get(x_144, 0); +lean_inc(x_163); +lean_dec(x_144); +x_164 = l_Lean_LocalDecl_binderInfo(x_163); +x_165 = 4; +x_166 = l_Lean_BinderInfo_beq(x_164, x_165); +if (x_166 == 0) +{ +lean_object* x_167; +lean_dec(x_163); +lean_inc(x_94); +lean_inc(x_89); +x_167 = lean_environment_find(x_89, x_94); +if (lean_obj_tag(x_167) == 0) +{ +lean_object* x_168; lean_object* x_169; +lean_inc(x_94); +lean_inc(x_89); +x_168 = l_Lean_mkPrivateName(x_89, x_94); +lean_inc(x_168); +x_169 = lean_environment_find(x_89, x_168); +if (lean_obj_tag(x_169) == 0) +{ +lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_dec(x_168); -lean_dec(x_90); -lean_dec(x_87); -lean_dec(x_5); -lean_dec(x_3); +lean_dec(x_85); +x_170 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_170, 0, x_86); +x_171 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_171, 0, x_170); +x_172 = l___private_Lean_Elab_App_13__resolveLValAux___closed__21; +x_173 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_173, 0, x_172); +lean_ctor_set(x_173, 1, x_171); +x_174 = l___private_Lean_Elab_App_13__resolveLValAux___closed__24; +x_175 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_175, 0, x_173); +lean_ctor_set(x_175, 1, x_174); +x_176 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_176, 0, x_94); +x_177 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_177, 0, x_175); +lean_ctor_set(x_177, 1, x_176); +x_178 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; +x_179 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_179, 0, x_177); +lean_ctor_set(x_179, 1, x_178); +x_180 = l___private_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_179, x_4, x_143); +return x_180; +} +else +{ +lean_object* x_181; lean_object* x_182; +lean_dec(x_169); +lean_dec(x_94); +lean_dec(x_86); +lean_dec(x_4); lean_dec(x_2); -x_184 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_184, 0, x_86); -lean_ctor_set(x_184, 1, x_95); -x_185 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_185, 0, x_184); -lean_ctor_set(x_185, 1, x_144); -return x_185; +lean_dec(x_1); +x_181 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_181, 0, x_85); +lean_ctor_set(x_181, 1, x_168); +x_182 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_182, 0, x_181); +lean_ctor_set(x_182, 1, x_143); +return x_182; } } else { -lean_object* x_186; lean_object* x_187; lean_object* x_188; -lean_dec(x_90); -lean_dec(x_87); -lean_dec(x_5); -lean_dec(x_3); +lean_object* x_183; lean_object* x_184; +lean_dec(x_167); +lean_dec(x_89); +lean_dec(x_86); +lean_dec(x_4); lean_dec(x_2); -x_186 = l_Lean_LocalDecl_toExpr(x_164); -lean_dec(x_164); -x_187 = lean_alloc_ctor(3, 3, 0); -lean_ctor_set(x_187, 0, x_86); -lean_ctor_set(x_187, 1, x_95); -lean_ctor_set(x_187, 2, x_186); -x_188 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_188, 0, x_187); -lean_ctor_set(x_188, 1, x_144); -return x_188; +lean_dec(x_1); +x_183 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_183, 0, x_85); +lean_ctor_set(x_183, 1, x_94); +x_184 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_184, 0, x_183); +lean_ctor_set(x_184, 1, x_143); +return x_184; +} +} +else +{ +lean_object* x_185; lean_object* x_186; lean_object* x_187; +lean_dec(x_89); +lean_dec(x_86); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_185 = l_Lean_LocalDecl_toExpr(x_163); +lean_dec(x_163); +x_186 = lean_alloc_ctor(3, 3, 0); +lean_ctor_set(x_186, 0, x_85); +lean_ctor_set(x_186, 1, x_94); +lean_ctor_set(x_186, 2, x_185); +x_187 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_187, 0, x_186); +lean_ctor_set(x_187, 1, x_143); +return x_187; } } } } else { -lean_object* x_189; lean_object* x_190; lean_object* x_191; -x_189 = lean_box(0); -lean_inc(x_87); -x_190 = lean_name_mk_string(x_189, x_87); +lean_object* x_188; lean_object* x_189; lean_object* x_190; +x_188 = lean_box(0); lean_inc(x_86); -lean_inc(x_90); -x_191 = l_Lean_findField_x3f___main(x_90, x_86, x_190); -if (lean_obj_tag(x_191) == 0) +x_189 = lean_name_mk_string(x_188, x_86); +lean_inc(x_85); +lean_inc(x_89); +x_190 = l_Lean_findField_x3f___main(x_89, x_85, x_189); +if (lean_obj_tag(x_190) == 0) { -lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; uint8_t x_198; -lean_free_object(x_88); -x_192 = l_Lean_Name_append___main(x_86, x_190); -x_193 = l_Lean_Elab_Term_getCurrNamespace(x_5, x_91); -x_194 = lean_ctor_get(x_193, 0); +lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; uint8_t x_197; +lean_free_object(x_87); +x_191 = l_Lean_Name_append___main(x_85, x_189); +x_192 = l_Lean_Elab_Term_getCurrNamespace(x_4, x_90); +x_193 = lean_ctor_get(x_192, 0); +lean_inc(x_193); +x_194 = lean_ctor_get(x_192, 1); lean_inc(x_194); -x_195 = lean_ctor_get(x_193, 1); -lean_inc(x_195); +lean_dec(x_192); +lean_inc(x_191); +x_195 = l_Lean_Name_replacePrefix___main(x_191, x_193, x_188); lean_dec(x_193); -lean_inc(x_192); -x_196 = l_Lean_Name_replacePrefix___main(x_192, x_194, x_189); -lean_dec(x_194); -x_197 = l_Lean_Elab_Term_getLCtx(x_5, x_195); -x_198 = !lean_is_exclusive(x_197); -if (x_198 == 0) +x_196 = l_Lean_Elab_Term_getLCtx(x_4, x_194); +x_197 = !lean_is_exclusive(x_196); +if (x_197 == 0) { -lean_object* x_199; lean_object* x_200; lean_object* x_201; -x_199 = lean_ctor_get(x_197, 0); -x_200 = lean_ctor_get(x_197, 1); -x_201 = lean_local_ctx_find_from_user_name(x_199, x_196); +lean_object* x_198; lean_object* x_199; lean_object* x_200; +x_198 = lean_ctor_get(x_196, 0); +x_199 = lean_ctor_get(x_196, 1); +x_200 = lean_local_ctx_find_from_user_name(x_198, x_195); +if (lean_obj_tag(x_200) == 0) +{ +lean_object* x_201; +lean_inc(x_191); +lean_inc(x_89); +x_201 = lean_environment_find(x_89, x_191); if (lean_obj_tag(x_201) == 0) { -lean_object* x_202; -lean_inc(x_192); -lean_inc(x_90); -x_202 = lean_environment_find(x_90, x_192); -if (lean_obj_tag(x_202) == 0) +lean_object* x_202; lean_object* x_203; +lean_inc(x_191); +lean_inc(x_89); +x_202 = l_Lean_mkPrivateName(x_89, x_191); +lean_inc(x_202); +x_203 = lean_environment_find(x_89, x_202); +if (lean_obj_tag(x_203) == 0) { -lean_object* x_203; lean_object* x_204; -lean_inc(x_192); -lean_inc(x_90); -x_203 = l_Lean_mkPrivateName(x_90, x_192); -lean_inc(x_203); -x_204 = lean_environment_find(x_90, x_203); -if (lean_obj_tag(x_204) == 0) +lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; +lean_dec(x_202); +lean_free_object(x_196); +lean_dec(x_85); +x_204 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_204, 0, x_86); +x_205 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_205, 0, x_204); +x_206 = l___private_Lean_Elab_App_13__resolveLValAux___closed__21; +x_207 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_207, 0, x_206); +lean_ctor_set(x_207, 1, x_205); +x_208 = l___private_Lean_Elab_App_13__resolveLValAux___closed__24; +x_209 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_209, 0, x_207); +lean_ctor_set(x_209, 1, x_208); +x_210 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_210, 0, x_191); +x_211 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_211, 0, x_209); +lean_ctor_set(x_211, 1, x_210); +x_212 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; +x_213 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_213, 0, x_211); +lean_ctor_set(x_213, 1, x_212); +x_214 = l___private_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_213, x_4, x_199); +return x_214; +} +else { -lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; +lean_object* x_215; lean_dec(x_203); -lean_free_object(x_197); +lean_dec(x_191); lean_dec(x_86); -x_205 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_205, 0, x_87); -x_206 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_206, 0, x_205); -x_207 = l___private_Lean_Elab_App_13__resolveLValAux___closed__21; -x_208 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_208, 0, x_207); -lean_ctor_set(x_208, 1, x_206); -x_209 = l___private_Lean_Elab_App_13__resolveLValAux___closed__24; -x_210 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_210, 0, x_208); -lean_ctor_set(x_210, 1, x_209); -x_211 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_211, 0, x_192); -x_212 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_212, 0, x_210); -lean_ctor_set(x_212, 1, x_211); -x_213 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; -x_214 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_214, 0, x_212); -lean_ctor_set(x_214, 1, x_213); -x_215 = l___private_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_3, x_214, x_5, x_200); -return x_215; +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_215 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_215, 0, x_85); +lean_ctor_set(x_215, 1, x_202); +lean_ctor_set(x_196, 0, x_215); +return x_196; +} } else { lean_object* x_216; -lean_dec(x_204); -lean_dec(x_192); -lean_dec(x_87); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_216 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_216, 0, x_86); -lean_ctor_set(x_216, 1, x_203); -lean_ctor_set(x_197, 0, x_216); -return x_197; -} -} -else -{ -lean_object* x_217; -lean_dec(x_202); -lean_dec(x_90); -lean_dec(x_87); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_217 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_217, 0, x_86); -lean_ctor_set(x_217, 1, x_192); -lean_ctor_set(x_197, 0, x_217); -return x_197; -} -} -else -{ -lean_object* x_218; uint8_t x_219; uint8_t x_220; uint8_t x_221; -x_218 = lean_ctor_get(x_201, 0); -lean_inc(x_218); lean_dec(x_201); -x_219 = l_Lean_LocalDecl_binderInfo(x_218); -x_220 = 4; -x_221 = l_Lean_BinderInfo_beq(x_219, x_220); -if (x_221 == 0) -{ -lean_object* x_222; -lean_dec(x_218); -lean_inc(x_192); -lean_inc(x_90); -x_222 = lean_environment_find(x_90, x_192); -if (lean_obj_tag(x_222) == 0) -{ -lean_object* x_223; lean_object* x_224; -lean_inc(x_192); -lean_inc(x_90); -x_223 = l_Lean_mkPrivateName(x_90, x_192); -lean_inc(x_223); -x_224 = lean_environment_find(x_90, x_223); -if (lean_obj_tag(x_224) == 0) -{ -lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; -lean_dec(x_223); -lean_free_object(x_197); +lean_dec(x_89); lean_dec(x_86); -x_225 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_225, 0, x_87); -x_226 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_226, 0, x_225); -x_227 = l___private_Lean_Elab_App_13__resolveLValAux___closed__21; -x_228 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_228, 0, x_227); -lean_ctor_set(x_228, 1, x_226); -x_229 = l___private_Lean_Elab_App_13__resolveLValAux___closed__24; -x_230 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_230, 0, x_228); -lean_ctor_set(x_230, 1, x_229); -x_231 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_231, 0, x_192); -x_232 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_232, 0, x_230); -lean_ctor_set(x_232, 1, x_231); -x_233 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; -x_234 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_234, 0, x_232); -lean_ctor_set(x_234, 1, x_233); -x_235 = l___private_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_3, x_234, x_5, x_200); -return x_235; +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_216 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_216, 0, x_85); +lean_ctor_set(x_216, 1, x_191); +lean_ctor_set(x_196, 0, x_216); +return x_196; +} +} +else +{ +lean_object* x_217; uint8_t x_218; uint8_t x_219; uint8_t x_220; +x_217 = lean_ctor_get(x_200, 0); +lean_inc(x_217); +lean_dec(x_200); +x_218 = l_Lean_LocalDecl_binderInfo(x_217); +x_219 = 4; +x_220 = l_Lean_BinderInfo_beq(x_218, x_219); +if (x_220 == 0) +{ +lean_object* x_221; +lean_dec(x_217); +lean_inc(x_191); +lean_inc(x_89); +x_221 = lean_environment_find(x_89, x_191); +if (lean_obj_tag(x_221) == 0) +{ +lean_object* x_222; lean_object* x_223; +lean_inc(x_191); +lean_inc(x_89); +x_222 = l_Lean_mkPrivateName(x_89, x_191); +lean_inc(x_222); +x_223 = lean_environment_find(x_89, x_222); +if (lean_obj_tag(x_223) == 0) +{ +lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; +lean_dec(x_222); +lean_free_object(x_196); +lean_dec(x_85); +x_224 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_224, 0, x_86); +x_225 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_225, 0, x_224); +x_226 = l___private_Lean_Elab_App_13__resolveLValAux___closed__21; +x_227 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_227, 0, x_226); +lean_ctor_set(x_227, 1, x_225); +x_228 = l___private_Lean_Elab_App_13__resolveLValAux___closed__24; +x_229 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_229, 0, x_227); +lean_ctor_set(x_229, 1, x_228); +x_230 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_230, 0, x_191); +x_231 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_231, 0, x_229); +lean_ctor_set(x_231, 1, x_230); +x_232 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; +x_233 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_233, 0, x_231); +lean_ctor_set(x_233, 1, x_232); +x_234 = l___private_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_233, x_4, x_199); +return x_234; +} +else +{ +lean_object* x_235; +lean_dec(x_223); +lean_dec(x_191); +lean_dec(x_86); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_235 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_235, 0, x_85); +lean_ctor_set(x_235, 1, x_222); +lean_ctor_set(x_196, 0, x_235); +return x_196; +} } else { lean_object* x_236; -lean_dec(x_224); -lean_dec(x_192); -lean_dec(x_87); -lean_dec(x_5); -lean_dec(x_3); +lean_dec(x_221); +lean_dec(x_89); +lean_dec(x_86); +lean_dec(x_4); lean_dec(x_2); +lean_dec(x_1); x_236 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_236, 0, x_86); -lean_ctor_set(x_236, 1, x_223); -lean_ctor_set(x_197, 0, x_236); -return x_197; +lean_ctor_set(x_236, 0, x_85); +lean_ctor_set(x_236, 1, x_191); +lean_ctor_set(x_196, 0, x_236); +return x_196; } } else { -lean_object* x_237; -lean_dec(x_222); -lean_dec(x_90); -lean_dec(x_87); -lean_dec(x_5); -lean_dec(x_3); +lean_object* x_237; lean_object* x_238; +lean_dec(x_89); +lean_dec(x_86); +lean_dec(x_4); lean_dec(x_2); -x_237 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_237, 0, x_86); -lean_ctor_set(x_237, 1, x_192); -lean_ctor_set(x_197, 0, x_237); -return x_197; -} -} -else -{ -lean_object* x_238; lean_object* x_239; -lean_dec(x_90); -lean_dec(x_87); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_238 = l_Lean_LocalDecl_toExpr(x_218); -lean_dec(x_218); -x_239 = lean_alloc_ctor(3, 3, 0); -lean_ctor_set(x_239, 0, x_86); -lean_ctor_set(x_239, 1, x_192); -lean_ctor_set(x_239, 2, x_238); -lean_ctor_set(x_197, 0, x_239); -return x_197; +lean_dec(x_1); +x_237 = l_Lean_LocalDecl_toExpr(x_217); +lean_dec(x_217); +x_238 = lean_alloc_ctor(3, 3, 0); +lean_ctor_set(x_238, 0, x_85); +lean_ctor_set(x_238, 1, x_191); +lean_ctor_set(x_238, 2, x_237); +lean_ctor_set(x_196, 0, x_238); +return x_196; } } } else { -lean_object* x_240; lean_object* x_241; lean_object* x_242; -x_240 = lean_ctor_get(x_197, 0); -x_241 = lean_ctor_get(x_197, 1); -lean_inc(x_241); +lean_object* x_239; lean_object* x_240; lean_object* x_241; +x_239 = lean_ctor_get(x_196, 0); +x_240 = lean_ctor_get(x_196, 1); lean_inc(x_240); -lean_dec(x_197); -x_242 = lean_local_ctx_find_from_user_name(x_240, x_196); +lean_inc(x_239); +lean_dec(x_196); +x_241 = lean_local_ctx_find_from_user_name(x_239, x_195); +if (lean_obj_tag(x_241) == 0) +{ +lean_object* x_242; +lean_inc(x_191); +lean_inc(x_89); +x_242 = lean_environment_find(x_89, x_191); if (lean_obj_tag(x_242) == 0) { -lean_object* x_243; -lean_inc(x_192); -lean_inc(x_90); -x_243 = lean_environment_find(x_90, x_192); -if (lean_obj_tag(x_243) == 0) +lean_object* x_243; lean_object* x_244; +lean_inc(x_191); +lean_inc(x_89); +x_243 = l_Lean_mkPrivateName(x_89, x_191); +lean_inc(x_243); +x_244 = lean_environment_find(x_89, x_243); +if (lean_obj_tag(x_244) == 0) { -lean_object* x_244; lean_object* x_245; -lean_inc(x_192); -lean_inc(x_90); -x_244 = l_Lean_mkPrivateName(x_90, x_192); -lean_inc(x_244); -x_245 = lean_environment_find(x_90, x_244); -if (lean_obj_tag(x_245) == 0) -{ -lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; -lean_dec(x_244); -lean_dec(x_86); -x_246 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_246, 0, x_87); -x_247 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_247, 0, x_246); -x_248 = l___private_Lean_Elab_App_13__resolveLValAux___closed__21; -x_249 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_249, 0, x_248); -lean_ctor_set(x_249, 1, x_247); -x_250 = l___private_Lean_Elab_App_13__resolveLValAux___closed__24; -x_251 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_251, 0, x_249); -lean_ctor_set(x_251, 1, x_250); -x_252 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_252, 0, x_192); -x_253 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_253, 0, x_251); -lean_ctor_set(x_253, 1, x_252); -x_254 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; -x_255 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_255, 0, x_253); -lean_ctor_set(x_255, 1, x_254); -x_256 = l___private_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_3, x_255, x_5, x_241); -return x_256; -} -else -{ -lean_object* x_257; lean_object* x_258; -lean_dec(x_245); -lean_dec(x_192); -lean_dec(x_87); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_257 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_257, 0, x_86); -lean_ctor_set(x_257, 1, x_244); -x_258 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_258, 0, x_257); -lean_ctor_set(x_258, 1, x_241); -return x_258; -} -} -else -{ -lean_object* x_259; lean_object* x_260; +lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_dec(x_243); -lean_dec(x_90); -lean_dec(x_87); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_259 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_259, 0, x_86); -lean_ctor_set(x_259, 1, x_192); -x_260 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_260, 0, x_259); -lean_ctor_set(x_260, 1, x_241); -return x_260; -} +lean_dec(x_85); +x_245 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_245, 0, x_86); +x_246 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_246, 0, x_245); +x_247 = l___private_Lean_Elab_App_13__resolveLValAux___closed__21; +x_248 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_248, 0, x_247); +lean_ctor_set(x_248, 1, x_246); +x_249 = l___private_Lean_Elab_App_13__resolveLValAux___closed__24; +x_250 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_250, 0, x_248); +lean_ctor_set(x_250, 1, x_249); +x_251 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_251, 0, x_191); +x_252 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_252, 0, x_250); +lean_ctor_set(x_252, 1, x_251); +x_253 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; +x_254 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_254, 0, x_252); +lean_ctor_set(x_254, 1, x_253); +x_255 = l___private_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_254, x_4, x_240); +return x_255; } else { -lean_object* x_261; uint8_t x_262; uint8_t x_263; uint8_t x_264; -x_261 = lean_ctor_get(x_242, 0); -lean_inc(x_261); -lean_dec(x_242); -x_262 = l_Lean_LocalDecl_binderInfo(x_261); -x_263 = 4; -x_264 = l_Lean_BinderInfo_beq(x_262, x_263); -if (x_264 == 0) -{ -lean_object* x_265; -lean_dec(x_261); -lean_inc(x_192); -lean_inc(x_90); -x_265 = lean_environment_find(x_90, x_192); -if (lean_obj_tag(x_265) == 0) -{ -lean_object* x_266; lean_object* x_267; -lean_inc(x_192); -lean_inc(x_90); -x_266 = l_Lean_mkPrivateName(x_90, x_192); -lean_inc(x_266); -x_267 = lean_environment_find(x_90, x_266); -if (lean_obj_tag(x_267) == 0) -{ -lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; -lean_dec(x_266); -lean_dec(x_86); -x_268 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_268, 0, x_87); -x_269 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_269, 0, x_268); -x_270 = l___private_Lean_Elab_App_13__resolveLValAux___closed__21; -x_271 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_271, 0, x_270); -lean_ctor_set(x_271, 1, x_269); -x_272 = l___private_Lean_Elab_App_13__resolveLValAux___closed__24; -x_273 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_273, 0, x_271); -lean_ctor_set(x_273, 1, x_272); -x_274 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_274, 0, x_192); -x_275 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_275, 0, x_273); -lean_ctor_set(x_275, 1, x_274); -x_276 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; -x_277 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_277, 0, x_275); -lean_ctor_set(x_277, 1, x_276); -x_278 = l___private_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_3, x_277, x_5, x_241); -return x_278; -} -else -{ -lean_object* x_279; lean_object* x_280; -lean_dec(x_267); -lean_dec(x_192); -lean_dec(x_87); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_279 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_279, 0, x_86); -lean_ctor_set(x_279, 1, x_266); -x_280 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_280, 0, x_279); -lean_ctor_set(x_280, 1, x_241); -return x_280; -} -} -else -{ -lean_object* x_281; lean_object* x_282; -lean_dec(x_265); -lean_dec(x_90); -lean_dec(x_87); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_281 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_281, 0, x_86); -lean_ctor_set(x_281, 1, x_192); -x_282 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_282, 0, x_281); -lean_ctor_set(x_282, 1, x_241); -return x_282; -} -} -else -{ -lean_object* x_283; lean_object* x_284; lean_object* x_285; -lean_dec(x_90); -lean_dec(x_87); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_283 = l_Lean_LocalDecl_toExpr(x_261); -lean_dec(x_261); -x_284 = lean_alloc_ctor(3, 3, 0); -lean_ctor_set(x_284, 0, x_86); -lean_ctor_set(x_284, 1, x_192); -lean_ctor_set(x_284, 2, x_283); -x_285 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_285, 0, x_284); -lean_ctor_set(x_285, 1, x_241); -return x_285; -} -} -} -} -else -{ -lean_object* x_286; lean_object* x_287; -lean_dec(x_90); -lean_dec(x_87); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_286 = lean_ctor_get(x_191, 0); -lean_inc(x_286); +lean_object* x_256; lean_object* x_257; +lean_dec(x_244); lean_dec(x_191); -x_287 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_287, 0, x_286); -lean_ctor_set(x_287, 1, x_86); -lean_ctor_set(x_287, 2, x_190); -lean_ctor_set(x_88, 0, x_287); -return x_88; +lean_dec(x_86); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_256 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_256, 0, x_85); +lean_ctor_set(x_256, 1, x_243); +x_257 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_257, 0, x_256); +lean_ctor_set(x_257, 1, x_240); +return x_257; +} +} +else +{ +lean_object* x_258; lean_object* x_259; +lean_dec(x_242); +lean_dec(x_89); +lean_dec(x_86); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_258 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_258, 0, x_85); +lean_ctor_set(x_258, 1, x_191); +x_259 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_259, 0, x_258); +lean_ctor_set(x_259, 1, x_240); +return x_259; +} +} +else +{ +lean_object* x_260; uint8_t x_261; uint8_t x_262; uint8_t x_263; +x_260 = lean_ctor_get(x_241, 0); +lean_inc(x_260); +lean_dec(x_241); +x_261 = l_Lean_LocalDecl_binderInfo(x_260); +x_262 = 4; +x_263 = l_Lean_BinderInfo_beq(x_261, x_262); +if (x_263 == 0) +{ +lean_object* x_264; +lean_dec(x_260); +lean_inc(x_191); +lean_inc(x_89); +x_264 = lean_environment_find(x_89, x_191); +if (lean_obj_tag(x_264) == 0) +{ +lean_object* x_265; lean_object* x_266; +lean_inc(x_191); +lean_inc(x_89); +x_265 = l_Lean_mkPrivateName(x_89, x_191); +lean_inc(x_265); +x_266 = lean_environment_find(x_89, x_265); +if (lean_obj_tag(x_266) == 0) +{ +lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; +lean_dec(x_265); +lean_dec(x_85); +x_267 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_267, 0, x_86); +x_268 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_268, 0, x_267); +x_269 = l___private_Lean_Elab_App_13__resolveLValAux___closed__21; +x_270 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_270, 0, x_269); +lean_ctor_set(x_270, 1, x_268); +x_271 = l___private_Lean_Elab_App_13__resolveLValAux___closed__24; +x_272 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_272, 0, x_270); +lean_ctor_set(x_272, 1, x_271); +x_273 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_273, 0, x_191); +x_274 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_274, 0, x_272); +lean_ctor_set(x_274, 1, x_273); +x_275 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; +x_276 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_276, 0, x_274); +lean_ctor_set(x_276, 1, x_275); +x_277 = l___private_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_276, x_4, x_240); +return x_277; +} +else +{ +lean_object* x_278; lean_object* x_279; +lean_dec(x_266); +lean_dec(x_191); +lean_dec(x_86); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_278 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_278, 0, x_85); +lean_ctor_set(x_278, 1, x_265); +x_279 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_279, 0, x_278); +lean_ctor_set(x_279, 1, x_240); +return x_279; +} +} +else +{ +lean_object* x_280; lean_object* x_281; +lean_dec(x_264); +lean_dec(x_89); +lean_dec(x_86); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_280 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_280, 0, x_85); +lean_ctor_set(x_280, 1, x_191); +x_281 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_281, 0, x_280); +lean_ctor_set(x_281, 1, x_240); +return x_281; +} +} +else +{ +lean_object* x_282; lean_object* x_283; lean_object* x_284; +lean_dec(x_89); +lean_dec(x_86); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_282 = l_Lean_LocalDecl_toExpr(x_260); +lean_dec(x_260); +x_283 = lean_alloc_ctor(3, 3, 0); +lean_ctor_set(x_283, 0, x_85); +lean_ctor_set(x_283, 1, x_191); +lean_ctor_set(x_283, 2, x_282); +x_284 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_284, 0, x_283); +lean_ctor_set(x_284, 1, x_240); +return x_284; +} } } } else { -lean_object* x_288; lean_object* x_289; uint8_t x_290; -x_288 = lean_ctor_get(x_88, 0); -x_289 = lean_ctor_get(x_88, 1); -lean_inc(x_289); -lean_inc(x_288); -lean_dec(x_88); -lean_inc(x_86); -lean_inc(x_288); -x_290 = l_Lean_isStructure(x_288, x_86); -if (x_290 == 0) -{ -lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; -x_291 = lean_box(0); -lean_inc(x_87); -x_292 = lean_name_mk_string(x_291, x_87); -x_293 = l_Lean_Name_append___main(x_86, x_292); -x_294 = l_Lean_Elab_Term_getCurrNamespace(x_5, x_289); -x_295 = lean_ctor_get(x_294, 0); -lean_inc(x_295); -x_296 = lean_ctor_get(x_294, 1); -lean_inc(x_296); -lean_dec(x_294); -lean_inc(x_293); -x_297 = l_Lean_Name_replacePrefix___main(x_293, x_295, x_291); -lean_dec(x_295); -x_298 = l_Lean_Elab_Term_getLCtx(x_5, x_296); -x_299 = lean_ctor_get(x_298, 0); -lean_inc(x_299); -x_300 = lean_ctor_get(x_298, 1); -lean_inc(x_300); -if (lean_is_exclusive(x_298)) { - lean_ctor_release(x_298, 0); - lean_ctor_release(x_298, 1); - x_301 = x_298; -} else { - lean_dec_ref(x_298); - x_301 = lean_box(0); +lean_object* x_285; lean_object* x_286; +lean_dec(x_89); +lean_dec(x_86); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_285 = lean_ctor_get(x_190, 0); +lean_inc(x_285); +lean_dec(x_190); +x_286 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_286, 0, x_285); +lean_ctor_set(x_286, 1, x_85); +lean_ctor_set(x_286, 2, x_189); +lean_ctor_set(x_87, 0, x_286); +return x_87; } -x_302 = lean_local_ctx_find_from_user_name(x_299, x_297); +} +} +else +{ +lean_object* x_287; lean_object* x_288; uint8_t x_289; +x_287 = lean_ctor_get(x_87, 0); +x_288 = lean_ctor_get(x_87, 1); +lean_inc(x_288); +lean_inc(x_287); +lean_dec(x_87); +lean_inc(x_85); +lean_inc(x_287); +x_289 = l_Lean_isStructure(x_287, x_85); +if (x_289 == 0) +{ +lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; +x_290 = lean_box(0); +lean_inc(x_86); +x_291 = lean_name_mk_string(x_290, x_86); +x_292 = l_Lean_Name_append___main(x_85, x_291); +x_293 = l_Lean_Elab_Term_getCurrNamespace(x_4, x_288); +x_294 = lean_ctor_get(x_293, 0); +lean_inc(x_294); +x_295 = lean_ctor_get(x_293, 1); +lean_inc(x_295); +lean_dec(x_293); +lean_inc(x_292); +x_296 = l_Lean_Name_replacePrefix___main(x_292, x_294, x_290); +lean_dec(x_294); +x_297 = l_Lean_Elab_Term_getLCtx(x_4, x_295); +x_298 = lean_ctor_get(x_297, 0); +lean_inc(x_298); +x_299 = lean_ctor_get(x_297, 1); +lean_inc(x_299); +if (lean_is_exclusive(x_297)) { + lean_ctor_release(x_297, 0); + lean_ctor_release(x_297, 1); + x_300 = x_297; +} else { + lean_dec_ref(x_297); + x_300 = lean_box(0); +} +x_301 = lean_local_ctx_find_from_user_name(x_298, x_296); +if (lean_obj_tag(x_301) == 0) +{ +lean_object* x_302; +lean_inc(x_292); +lean_inc(x_287); +x_302 = lean_environment_find(x_287, x_292); if (lean_obj_tag(x_302) == 0) { -lean_object* x_303; -lean_inc(x_293); -lean_inc(x_288); -x_303 = lean_environment_find(x_288, x_293); -if (lean_obj_tag(x_303) == 0) +lean_object* x_303; lean_object* x_304; +lean_inc(x_292); +lean_inc(x_287); +x_303 = l_Lean_mkPrivateName(x_287, x_292); +lean_inc(x_303); +x_304 = lean_environment_find(x_287, x_303); +if (lean_obj_tag(x_304) == 0) { -lean_object* x_304; lean_object* x_305; -lean_inc(x_293); -lean_inc(x_288); -x_304 = l_Lean_mkPrivateName(x_288, x_293); -lean_inc(x_304); -x_305 = lean_environment_find(x_288, x_304); -if (lean_obj_tag(x_305) == 0) -{ -lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; -lean_dec(x_304); -lean_dec(x_301); -lean_dec(x_86); -x_306 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_306, 0, x_87); -x_307 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_307, 0, x_306); -x_308 = l___private_Lean_Elab_App_13__resolveLValAux___closed__21; -x_309 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_309, 0, x_308); -lean_ctor_set(x_309, 1, x_307); -x_310 = l___private_Lean_Elab_App_13__resolveLValAux___closed__24; -x_311 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_311, 0, x_309); -lean_ctor_set(x_311, 1, x_310); -x_312 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_312, 0, x_293); -x_313 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_313, 0, x_311); -lean_ctor_set(x_313, 1, x_312); -x_314 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; -x_315 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_315, 0, x_313); -lean_ctor_set(x_315, 1, x_314); -x_316 = l___private_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_3, x_315, x_5, x_300); -return x_316; -} -else -{ -lean_object* x_317; lean_object* x_318; -lean_dec(x_305); -lean_dec(x_293); -lean_dec(x_87); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_317 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_317, 0, x_86); -lean_ctor_set(x_317, 1, x_304); -if (lean_is_scalar(x_301)) { - x_318 = lean_alloc_ctor(0, 2, 0); -} else { - x_318 = x_301; -} -lean_ctor_set(x_318, 0, x_317); -lean_ctor_set(x_318, 1, x_300); -return x_318; -} -} -else -{ -lean_object* x_319; lean_object* x_320; +lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_dec(x_303); -lean_dec(x_288); -lean_dec(x_87); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_319 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_319, 0, x_86); -lean_ctor_set(x_319, 1, x_293); -if (lean_is_scalar(x_301)) { - x_320 = lean_alloc_ctor(0, 2, 0); -} else { - x_320 = x_301; -} -lean_ctor_set(x_320, 0, x_319); -lean_ctor_set(x_320, 1, x_300); -return x_320; -} +lean_dec(x_300); +lean_dec(x_85); +x_305 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_305, 0, x_86); +x_306 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_306, 0, x_305); +x_307 = l___private_Lean_Elab_App_13__resolveLValAux___closed__21; +x_308 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_308, 0, x_307); +lean_ctor_set(x_308, 1, x_306); +x_309 = l___private_Lean_Elab_App_13__resolveLValAux___closed__24; +x_310 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_310, 0, x_308); +lean_ctor_set(x_310, 1, x_309); +x_311 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_311, 0, x_292); +x_312 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_312, 0, x_310); +lean_ctor_set(x_312, 1, x_311); +x_313 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; +x_314 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_314, 0, x_312); +lean_ctor_set(x_314, 1, x_313); +x_315 = l___private_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_314, x_4, x_299); +return x_315; } else { -lean_object* x_321; uint8_t x_322; uint8_t x_323; uint8_t x_324; -x_321 = lean_ctor_get(x_302, 0); -lean_inc(x_321); -lean_dec(x_302); -x_322 = l_Lean_LocalDecl_binderInfo(x_321); -x_323 = 4; -x_324 = l_Lean_BinderInfo_beq(x_322, x_323); -if (x_324 == 0) -{ -lean_object* x_325; -lean_dec(x_321); -lean_inc(x_293); -lean_inc(x_288); -x_325 = lean_environment_find(x_288, x_293); -if (lean_obj_tag(x_325) == 0) -{ -lean_object* x_326; lean_object* x_327; -lean_inc(x_293); -lean_inc(x_288); -x_326 = l_Lean_mkPrivateName(x_288, x_293); -lean_inc(x_326); -x_327 = lean_environment_find(x_288, x_326); -if (lean_obj_tag(x_327) == 0) -{ -lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; -lean_dec(x_326); -lean_dec(x_301); +lean_object* x_316; lean_object* x_317; +lean_dec(x_304); +lean_dec(x_292); lean_dec(x_86); -x_328 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_328, 0, x_87); -x_329 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_329, 0, x_328); -x_330 = l___private_Lean_Elab_App_13__resolveLValAux___closed__21; -x_331 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_331, 0, x_330); -lean_ctor_set(x_331, 1, x_329); -x_332 = l___private_Lean_Elab_App_13__resolveLValAux___closed__24; -x_333 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_333, 0, x_331); -lean_ctor_set(x_333, 1, x_332); -x_334 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_334, 0, x_293); -x_335 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_335, 0, x_333); -lean_ctor_set(x_335, 1, x_334); -x_336 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; -x_337 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_337, 0, x_335); -lean_ctor_set(x_337, 1, x_336); -x_338 = l___private_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_3, x_337, x_5, x_300); -return x_338; -} -else -{ -lean_object* x_339; lean_object* x_340; -lean_dec(x_327); -lean_dec(x_293); -lean_dec(x_87); -lean_dec(x_5); -lean_dec(x_3); +lean_dec(x_4); lean_dec(x_2); -x_339 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_339, 0, x_86); -lean_ctor_set(x_339, 1, x_326); -if (lean_is_scalar(x_301)) { - x_340 = lean_alloc_ctor(0, 2, 0); +lean_dec(x_1); +x_316 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_316, 0, x_85); +lean_ctor_set(x_316, 1, x_303); +if (lean_is_scalar(x_300)) { + x_317 = lean_alloc_ctor(0, 2, 0); } else { - x_340 = x_301; + x_317 = x_300; } -lean_ctor_set(x_340, 0, x_339); -lean_ctor_set(x_340, 1, x_300); -return x_340; +lean_ctor_set(x_317, 0, x_316); +lean_ctor_set(x_317, 1, x_299); +return x_317; } } else { -lean_object* x_341; lean_object* x_342; +lean_object* x_318; lean_object* x_319; +lean_dec(x_302); +lean_dec(x_287); +lean_dec(x_86); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_318 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_318, 0, x_85); +lean_ctor_set(x_318, 1, x_292); +if (lean_is_scalar(x_300)) { + x_319 = lean_alloc_ctor(0, 2, 0); +} else { + x_319 = x_300; +} +lean_ctor_set(x_319, 0, x_318); +lean_ctor_set(x_319, 1, x_299); +return x_319; +} +} +else +{ +lean_object* x_320; uint8_t x_321; uint8_t x_322; uint8_t x_323; +x_320 = lean_ctor_get(x_301, 0); +lean_inc(x_320); +lean_dec(x_301); +x_321 = l_Lean_LocalDecl_binderInfo(x_320); +x_322 = 4; +x_323 = l_Lean_BinderInfo_beq(x_321, x_322); +if (x_323 == 0) +{ +lean_object* x_324; +lean_dec(x_320); +lean_inc(x_292); +lean_inc(x_287); +x_324 = lean_environment_find(x_287, x_292); +if (lean_obj_tag(x_324) == 0) +{ +lean_object* x_325; lean_object* x_326; +lean_inc(x_292); +lean_inc(x_287); +x_325 = l_Lean_mkPrivateName(x_287, x_292); +lean_inc(x_325); +x_326 = lean_environment_find(x_287, x_325); +if (lean_obj_tag(x_326) == 0) +{ +lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_dec(x_325); -lean_dec(x_288); -lean_dec(x_87); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_341 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_341, 0, x_86); -lean_ctor_set(x_341, 1, x_293); -if (lean_is_scalar(x_301)) { - x_342 = lean_alloc_ctor(0, 2, 0); -} else { - x_342 = x_301; +lean_dec(x_300); +lean_dec(x_85); +x_327 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_327, 0, x_86); +x_328 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_328, 0, x_327); +x_329 = l___private_Lean_Elab_App_13__resolveLValAux___closed__21; +x_330 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_330, 0, x_329); +lean_ctor_set(x_330, 1, x_328); +x_331 = l___private_Lean_Elab_App_13__resolveLValAux___closed__24; +x_332 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_332, 0, x_330); +lean_ctor_set(x_332, 1, x_331); +x_333 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_333, 0, x_292); +x_334 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_334, 0, x_332); +lean_ctor_set(x_334, 1, x_333); +x_335 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; +x_336 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_336, 0, x_334); +lean_ctor_set(x_336, 1, x_335); +x_337 = l___private_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_336, x_4, x_299); +return x_337; } -lean_ctor_set(x_342, 0, x_341); -lean_ctor_set(x_342, 1, x_300); -return x_342; +else +{ +lean_object* x_338; lean_object* x_339; +lean_dec(x_326); +lean_dec(x_292); +lean_dec(x_86); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_338 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_338, 0, x_85); +lean_ctor_set(x_338, 1, x_325); +if (lean_is_scalar(x_300)) { + x_339 = lean_alloc_ctor(0, 2, 0); +} else { + x_339 = x_300; +} +lean_ctor_set(x_339, 0, x_338); +lean_ctor_set(x_339, 1, x_299); +return x_339; } } else { -lean_object* x_343; lean_object* x_344; lean_object* x_345; -lean_dec(x_288); -lean_dec(x_87); -lean_dec(x_5); -lean_dec(x_3); +lean_object* x_340; lean_object* x_341; +lean_dec(x_324); +lean_dec(x_287); +lean_dec(x_86); +lean_dec(x_4); lean_dec(x_2); -x_343 = l_Lean_LocalDecl_toExpr(x_321); -lean_dec(x_321); -x_344 = lean_alloc_ctor(3, 3, 0); -lean_ctor_set(x_344, 0, x_86); -lean_ctor_set(x_344, 1, x_293); -lean_ctor_set(x_344, 2, x_343); -if (lean_is_scalar(x_301)) { - x_345 = lean_alloc_ctor(0, 2, 0); +lean_dec(x_1); +x_340 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_340, 0, x_85); +lean_ctor_set(x_340, 1, x_292); +if (lean_is_scalar(x_300)) { + x_341 = lean_alloc_ctor(0, 2, 0); } else { - x_345 = x_301; + x_341 = x_300; } -lean_ctor_set(x_345, 0, x_344); -lean_ctor_set(x_345, 1, x_300); -return x_345; +lean_ctor_set(x_341, 0, x_340); +lean_ctor_set(x_341, 1, x_299); +return x_341; +} +} +else +{ +lean_object* x_342; lean_object* x_343; lean_object* x_344; +lean_dec(x_287); +lean_dec(x_86); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_342 = l_Lean_LocalDecl_toExpr(x_320); +lean_dec(x_320); +x_343 = lean_alloc_ctor(3, 3, 0); +lean_ctor_set(x_343, 0, x_85); +lean_ctor_set(x_343, 1, x_292); +lean_ctor_set(x_343, 2, x_342); +if (lean_is_scalar(x_300)) { + x_344 = lean_alloc_ctor(0, 2, 0); +} else { + x_344 = x_300; +} +lean_ctor_set(x_344, 0, x_343); +lean_ctor_set(x_344, 1, x_299); +return x_344; } } } else { -lean_object* x_346; lean_object* x_347; lean_object* x_348; -x_346 = lean_box(0); -lean_inc(x_87); -x_347 = lean_name_mk_string(x_346, x_87); +lean_object* x_345; lean_object* x_346; lean_object* x_347; +x_345 = lean_box(0); lean_inc(x_86); -lean_inc(x_288); -x_348 = l_Lean_findField_x3f___main(x_288, x_86, x_347); -if (lean_obj_tag(x_348) == 0) +x_346 = lean_name_mk_string(x_345, x_86); +lean_inc(x_85); +lean_inc(x_287); +x_347 = l_Lean_findField_x3f___main(x_287, x_85, x_346); +if (lean_obj_tag(x_347) == 0) { -lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; -x_349 = l_Lean_Name_append___main(x_86, x_347); -x_350 = l_Lean_Elab_Term_getCurrNamespace(x_5, x_289); -x_351 = lean_ctor_get(x_350, 0); +lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; +x_348 = l_Lean_Name_append___main(x_85, x_346); +x_349 = l_Lean_Elab_Term_getCurrNamespace(x_4, x_288); +x_350 = lean_ctor_get(x_349, 0); +lean_inc(x_350); +x_351 = lean_ctor_get(x_349, 1); lean_inc(x_351); -x_352 = lean_ctor_get(x_350, 1); -lean_inc(x_352); +lean_dec(x_349); +lean_inc(x_348); +x_352 = l_Lean_Name_replacePrefix___main(x_348, x_350, x_345); lean_dec(x_350); -lean_inc(x_349); -x_353 = l_Lean_Name_replacePrefix___main(x_349, x_351, x_346); -lean_dec(x_351); -x_354 = l_Lean_Elab_Term_getLCtx(x_5, x_352); -x_355 = lean_ctor_get(x_354, 0); +x_353 = l_Lean_Elab_Term_getLCtx(x_4, x_351); +x_354 = lean_ctor_get(x_353, 0); +lean_inc(x_354); +x_355 = lean_ctor_get(x_353, 1); lean_inc(x_355); -x_356 = lean_ctor_get(x_354, 1); -lean_inc(x_356); -if (lean_is_exclusive(x_354)) { - lean_ctor_release(x_354, 0); - lean_ctor_release(x_354, 1); - x_357 = x_354; +if (lean_is_exclusive(x_353)) { + lean_ctor_release(x_353, 0); + lean_ctor_release(x_353, 1); + x_356 = x_353; } else { - lean_dec_ref(x_354); - x_357 = lean_box(0); + lean_dec_ref(x_353); + x_356 = lean_box(0); } -x_358 = lean_local_ctx_find_from_user_name(x_355, x_353); +x_357 = lean_local_ctx_find_from_user_name(x_354, x_352); +if (lean_obj_tag(x_357) == 0) +{ +lean_object* x_358; +lean_inc(x_348); +lean_inc(x_287); +x_358 = lean_environment_find(x_287, x_348); if (lean_obj_tag(x_358) == 0) { -lean_object* x_359; -lean_inc(x_349); -lean_inc(x_288); -x_359 = lean_environment_find(x_288, x_349); -if (lean_obj_tag(x_359) == 0) +lean_object* x_359; lean_object* x_360; +lean_inc(x_348); +lean_inc(x_287); +x_359 = l_Lean_mkPrivateName(x_287, x_348); +lean_inc(x_359); +x_360 = lean_environment_find(x_287, x_359); +if (lean_obj_tag(x_360) == 0) { -lean_object* x_360; lean_object* x_361; -lean_inc(x_349); -lean_inc(x_288); -x_360 = l_Lean_mkPrivateName(x_288, x_349); -lean_inc(x_360); -x_361 = lean_environment_find(x_288, x_360); -if (lean_obj_tag(x_361) == 0) -{ -lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; -lean_dec(x_360); -lean_dec(x_357); -lean_dec(x_86); -x_362 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_362, 0, x_87); -x_363 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_363, 0, x_362); -x_364 = l___private_Lean_Elab_App_13__resolveLValAux___closed__21; -x_365 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_365, 0, x_364); -lean_ctor_set(x_365, 1, x_363); -x_366 = l___private_Lean_Elab_App_13__resolveLValAux___closed__24; -x_367 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_367, 0, x_365); -lean_ctor_set(x_367, 1, x_366); -x_368 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_368, 0, x_349); -x_369 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_369, 0, x_367); -lean_ctor_set(x_369, 1, x_368); -x_370 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; -x_371 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_371, 0, x_369); -lean_ctor_set(x_371, 1, x_370); -x_372 = l___private_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_3, x_371, x_5, x_356); -return x_372; -} -else -{ -lean_object* x_373; lean_object* x_374; -lean_dec(x_361); -lean_dec(x_349); -lean_dec(x_87); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_373 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_373, 0, x_86); -lean_ctor_set(x_373, 1, x_360); -if (lean_is_scalar(x_357)) { - x_374 = lean_alloc_ctor(0, 2, 0); -} else { - x_374 = x_357; -} -lean_ctor_set(x_374, 0, x_373); -lean_ctor_set(x_374, 1, x_356); -return x_374; -} -} -else -{ -lean_object* x_375; lean_object* x_376; +lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_dec(x_359); -lean_dec(x_288); -lean_dec(x_87); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_375 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_375, 0, x_86); -lean_ctor_set(x_375, 1, x_349); -if (lean_is_scalar(x_357)) { - x_376 = lean_alloc_ctor(0, 2, 0); -} else { - x_376 = x_357; -} -lean_ctor_set(x_376, 0, x_375); -lean_ctor_set(x_376, 1, x_356); -return x_376; -} +lean_dec(x_356); +lean_dec(x_85); +x_361 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_361, 0, x_86); +x_362 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_362, 0, x_361); +x_363 = l___private_Lean_Elab_App_13__resolveLValAux___closed__21; +x_364 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_364, 0, x_363); +lean_ctor_set(x_364, 1, x_362); +x_365 = l___private_Lean_Elab_App_13__resolveLValAux___closed__24; +x_366 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_366, 0, x_364); +lean_ctor_set(x_366, 1, x_365); +x_367 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_367, 0, x_348); +x_368 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_368, 0, x_366); +lean_ctor_set(x_368, 1, x_367); +x_369 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; +x_370 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_370, 0, x_368); +lean_ctor_set(x_370, 1, x_369); +x_371 = l___private_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_370, x_4, x_355); +return x_371; } else { -lean_object* x_377; uint8_t x_378; uint8_t x_379; uint8_t x_380; -x_377 = lean_ctor_get(x_358, 0); -lean_inc(x_377); -lean_dec(x_358); -x_378 = l_Lean_LocalDecl_binderInfo(x_377); -x_379 = 4; -x_380 = l_Lean_BinderInfo_beq(x_378, x_379); -if (x_380 == 0) -{ -lean_object* x_381; -lean_dec(x_377); -lean_inc(x_349); -lean_inc(x_288); -x_381 = lean_environment_find(x_288, x_349); -if (lean_obj_tag(x_381) == 0) -{ -lean_object* x_382; lean_object* x_383; -lean_inc(x_349); -lean_inc(x_288); -x_382 = l_Lean_mkPrivateName(x_288, x_349); -lean_inc(x_382); -x_383 = lean_environment_find(x_288, x_382); -if (lean_obj_tag(x_383) == 0) -{ -lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; -lean_dec(x_382); -lean_dec(x_357); -lean_dec(x_86); -x_384 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_384, 0, x_87); -x_385 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_385, 0, x_384); -x_386 = l___private_Lean_Elab_App_13__resolveLValAux___closed__21; -x_387 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_387, 0, x_386); -lean_ctor_set(x_387, 1, x_385); -x_388 = l___private_Lean_Elab_App_13__resolveLValAux___closed__24; -x_389 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_389, 0, x_387); -lean_ctor_set(x_389, 1, x_388); -x_390 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_390, 0, x_349); -x_391 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_391, 0, x_389); -lean_ctor_set(x_391, 1, x_390); -x_392 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; -x_393 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_393, 0, x_391); -lean_ctor_set(x_393, 1, x_392); -x_394 = l___private_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_3, x_393, x_5, x_356); -return x_394; -} -else -{ -lean_object* x_395; lean_object* x_396; -lean_dec(x_383); -lean_dec(x_349); -lean_dec(x_87); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_395 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_395, 0, x_86); -lean_ctor_set(x_395, 1, x_382); -if (lean_is_scalar(x_357)) { - x_396 = lean_alloc_ctor(0, 2, 0); -} else { - x_396 = x_357; -} -lean_ctor_set(x_396, 0, x_395); -lean_ctor_set(x_396, 1, x_356); -return x_396; -} -} -else -{ -lean_object* x_397; lean_object* x_398; -lean_dec(x_381); -lean_dec(x_288); -lean_dec(x_87); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_397 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_397, 0, x_86); -lean_ctor_set(x_397, 1, x_349); -if (lean_is_scalar(x_357)) { - x_398 = lean_alloc_ctor(0, 2, 0); -} else { - x_398 = x_357; -} -lean_ctor_set(x_398, 0, x_397); -lean_ctor_set(x_398, 1, x_356); -return x_398; -} -} -else -{ -lean_object* x_399; lean_object* x_400; lean_object* x_401; -lean_dec(x_288); -lean_dec(x_87); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_399 = l_Lean_LocalDecl_toExpr(x_377); -lean_dec(x_377); -x_400 = lean_alloc_ctor(3, 3, 0); -lean_ctor_set(x_400, 0, x_86); -lean_ctor_set(x_400, 1, x_349); -lean_ctor_set(x_400, 2, x_399); -if (lean_is_scalar(x_357)) { - x_401 = lean_alloc_ctor(0, 2, 0); -} else { - x_401 = x_357; -} -lean_ctor_set(x_401, 0, x_400); -lean_ctor_set(x_401, 1, x_356); -return x_401; -} -} -} -else -{ -lean_object* x_402; lean_object* x_403; lean_object* x_404; -lean_dec(x_288); -lean_dec(x_87); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_402 = lean_ctor_get(x_348, 0); -lean_inc(x_402); +lean_object* x_372; lean_object* x_373; +lean_dec(x_360); lean_dec(x_348); -x_403 = lean_alloc_ctor(0, 3, 0); +lean_dec(x_86); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_372 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_372, 0, x_85); +lean_ctor_set(x_372, 1, x_359); +if (lean_is_scalar(x_356)) { + x_373 = lean_alloc_ctor(0, 2, 0); +} else { + x_373 = x_356; +} +lean_ctor_set(x_373, 0, x_372); +lean_ctor_set(x_373, 1, x_355); +return x_373; +} +} +else +{ +lean_object* x_374; lean_object* x_375; +lean_dec(x_358); +lean_dec(x_287); +lean_dec(x_86); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_374 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_374, 0, x_85); +lean_ctor_set(x_374, 1, x_348); +if (lean_is_scalar(x_356)) { + x_375 = lean_alloc_ctor(0, 2, 0); +} else { + x_375 = x_356; +} +lean_ctor_set(x_375, 0, x_374); +lean_ctor_set(x_375, 1, x_355); +return x_375; +} +} +else +{ +lean_object* x_376; uint8_t x_377; uint8_t x_378; uint8_t x_379; +x_376 = lean_ctor_get(x_357, 0); +lean_inc(x_376); +lean_dec(x_357); +x_377 = l_Lean_LocalDecl_binderInfo(x_376); +x_378 = 4; +x_379 = l_Lean_BinderInfo_beq(x_377, x_378); +if (x_379 == 0) +{ +lean_object* x_380; +lean_dec(x_376); +lean_inc(x_348); +lean_inc(x_287); +x_380 = lean_environment_find(x_287, x_348); +if (lean_obj_tag(x_380) == 0) +{ +lean_object* x_381; lean_object* x_382; +lean_inc(x_348); +lean_inc(x_287); +x_381 = l_Lean_mkPrivateName(x_287, x_348); +lean_inc(x_381); +x_382 = lean_environment_find(x_287, x_381); +if (lean_obj_tag(x_382) == 0) +{ +lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; +lean_dec(x_381); +lean_dec(x_356); +lean_dec(x_85); +x_383 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_383, 0, x_86); +x_384 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_384, 0, x_383); +x_385 = l___private_Lean_Elab_App_13__resolveLValAux___closed__21; +x_386 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_386, 0, x_385); +lean_ctor_set(x_386, 1, x_384); +x_387 = l___private_Lean_Elab_App_13__resolveLValAux___closed__24; +x_388 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_388, 0, x_386); +lean_ctor_set(x_388, 1, x_387); +x_389 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_389, 0, x_348); +x_390 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_390, 0, x_388); +lean_ctor_set(x_390, 1, x_389); +x_391 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; +x_392 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_392, 0, x_390); +lean_ctor_set(x_392, 1, x_391); +x_393 = l___private_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_392, x_4, x_355); +return x_393; +} +else +{ +lean_object* x_394; lean_object* x_395; +lean_dec(x_382); +lean_dec(x_348); +lean_dec(x_86); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_394 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_394, 0, x_85); +lean_ctor_set(x_394, 1, x_381); +if (lean_is_scalar(x_356)) { + x_395 = lean_alloc_ctor(0, 2, 0); +} else { + x_395 = x_356; +} +lean_ctor_set(x_395, 0, x_394); +lean_ctor_set(x_395, 1, x_355); +return x_395; +} +} +else +{ +lean_object* x_396; lean_object* x_397; +lean_dec(x_380); +lean_dec(x_287); +lean_dec(x_86); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_396 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_396, 0, x_85); +lean_ctor_set(x_396, 1, x_348); +if (lean_is_scalar(x_356)) { + x_397 = lean_alloc_ctor(0, 2, 0); +} else { + x_397 = x_356; +} +lean_ctor_set(x_397, 0, x_396); +lean_ctor_set(x_397, 1, x_355); +return x_397; +} +} +else +{ +lean_object* x_398; lean_object* x_399; lean_object* x_400; +lean_dec(x_287); +lean_dec(x_86); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_398 = l_Lean_LocalDecl_toExpr(x_376); +lean_dec(x_376); +x_399 = lean_alloc_ctor(3, 3, 0); +lean_ctor_set(x_399, 0, x_85); +lean_ctor_set(x_399, 1, x_348); +lean_ctor_set(x_399, 2, x_398); +if (lean_is_scalar(x_356)) { + x_400 = lean_alloc_ctor(0, 2, 0); +} else { + x_400 = x_356; +} +lean_ctor_set(x_400, 0, x_399); +lean_ctor_set(x_400, 1, x_355); +return x_400; +} +} +} +else +{ +lean_object* x_401; lean_object* x_402; lean_object* x_403; +lean_dec(x_287); +lean_dec(x_86); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_401 = lean_ctor_get(x_347, 0); +lean_inc(x_401); +lean_dec(x_347); +x_402 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_402, 0, x_401); +lean_ctor_set(x_402, 1, x_85); +lean_ctor_set(x_402, 2, x_346); +x_403 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_403, 0, x_402); -lean_ctor_set(x_403, 1, x_86); -lean_ctor_set(x_403, 2, x_347); -x_404 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_404, 0, x_403); -lean_ctor_set(x_404, 1, x_289); -return x_404; +lean_ctor_set(x_403, 1, x_288); +return x_403; } } } } default: { -lean_object* x_405; lean_object* x_406; lean_object* x_407; uint8_t x_408; -x_405 = lean_ctor_get(x_13, 0); +lean_object* x_404; lean_object* x_405; lean_object* x_406; uint8_t x_407; +x_404 = lean_ctor_get(x_12, 0); +lean_inc(x_404); +lean_dec(x_12); +x_405 = lean_ctor_get(x_3, 0); lean_inc(x_405); -lean_dec(x_13); -x_406 = lean_ctor_get(x_4, 0); -lean_inc(x_406); -lean_dec(x_4); -x_407 = l_Lean_Elab_Term_getEnv___rarg(x_6); -x_408 = !lean_is_exclusive(x_407); -if (x_408 == 0) -{ -lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; -x_409 = lean_ctor_get(x_407, 0); -x_410 = lean_ctor_get(x_407, 1); -x_411 = l___private_Lean_Elab_App_13__resolveLValAux___closed__25; -x_412 = lean_name_mk_string(x_405, x_411); -lean_inc(x_412); -x_413 = lean_environment_find(x_409, x_412); -if (lean_obj_tag(x_413) == 0) -{ -lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; -lean_free_object(x_407); -lean_dec(x_406); -x_414 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_414, 0, x_412); -x_415 = l___private_Lean_Elab_App_13__resolveLValAux___closed__28; -x_416 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_416, 0, x_415); -lean_ctor_set(x_416, 1, x_414); -x_417 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; -x_418 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_418, 0, x_416); -lean_ctor_set(x_418, 1, x_417); -x_419 = l___private_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_3, x_418, x_5, x_410); -return x_419; -} -else -{ -lean_object* x_420; -lean_dec(x_413); -lean_dec(x_5); lean_dec(x_3); -lean_dec(x_2); -x_420 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_420, 0, x_412); -lean_ctor_set(x_420, 1, x_406); -lean_ctor_set(x_407, 0, x_420); -return x_407; -} +x_406 = l_Lean_Elab_Term_getEnv___rarg(x_5); +x_407 = !lean_is_exclusive(x_406); +if (x_407 == 0) +{ +lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; +x_408 = lean_ctor_get(x_406, 0); +x_409 = lean_ctor_get(x_406, 1); +x_410 = l___private_Lean_Elab_App_13__resolveLValAux___closed__25; +x_411 = lean_name_mk_string(x_404, x_410); +lean_inc(x_411); +x_412 = lean_environment_find(x_408, x_411); +if (lean_obj_tag(x_412) == 0) +{ +lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; +lean_free_object(x_406); +lean_dec(x_405); +x_413 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_413, 0, x_411); +x_414 = l___private_Lean_Elab_App_13__resolveLValAux___closed__28; +x_415 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_415, 0, x_414); +lean_ctor_set(x_415, 1, x_413); +x_416 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; +x_417 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_417, 0, x_415); +lean_ctor_set(x_417, 1, x_416); +x_418 = l___private_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_417, x_4, x_409); +return x_418; } else { -lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; -x_421 = lean_ctor_get(x_407, 0); -x_422 = lean_ctor_get(x_407, 1); -lean_inc(x_422); -lean_inc(x_421); -lean_dec(x_407); -x_423 = l___private_Lean_Elab_App_13__resolveLValAux___closed__25; -x_424 = lean_name_mk_string(x_405, x_423); -lean_inc(x_424); -x_425 = lean_environment_find(x_421, x_424); -if (lean_obj_tag(x_425) == 0) -{ -lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; -lean_dec(x_406); -x_426 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_426, 0, x_424); -x_427 = l___private_Lean_Elab_App_13__resolveLValAux___closed__28; -x_428 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_428, 0, x_427); -lean_ctor_set(x_428, 1, x_426); -x_429 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; -x_430 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_430, 0, x_428); -lean_ctor_set(x_430, 1, x_429); -x_431 = l___private_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_3, x_430, x_5, x_422); -return x_431; -} -else -{ -lean_object* x_432; lean_object* x_433; -lean_dec(x_425); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_432 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_432, 0, x_424); -lean_ctor_set(x_432, 1, x_406); -x_433 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_433, 0, x_432); -lean_ctor_set(x_433, 1, x_422); -return x_433; -} -} -} -} -} -else -{ -lean_object* x_434; -lean_dec(x_13); -x_434 = lean_box(0); -x_7 = x_434; -goto block_12; -} -block_12: -{ -lean_dec(x_7); -if (lean_obj_tag(x_4) == 2) -{ -lean_object* x_8; lean_object* x_9; +lean_object* x_419; +lean_dec(x_412); lean_dec(x_4); -x_8 = l___private_Lean_Elab_App_13__resolveLValAux___closed__6; -x_9 = l___private_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_3, x_8, x_5, x_6); -return x_9; -} -else -{ -lean_object* x_10; lean_object* x_11; -lean_dec(x_4); -x_10 = l___private_Lean_Elab_App_13__resolveLValAux___closed__3; -x_11 = l___private_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_3, x_10, x_5, x_6); -return x_11; -} -} -} -} -lean_object* l___private_Lean_Elab_App_13__resolveLValAux___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___private_Lean_Elab_App_13__resolveLValAux(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_2); lean_dec(x_1); -return x_7; +x_419 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_419, 0, x_411); +lean_ctor_set(x_419, 1, x_405); +lean_ctor_set(x_406, 0, x_419); +return x_406; +} +} +else +{ +lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; +x_420 = lean_ctor_get(x_406, 0); +x_421 = lean_ctor_get(x_406, 1); +lean_inc(x_421); +lean_inc(x_420); +lean_dec(x_406); +x_422 = l___private_Lean_Elab_App_13__resolveLValAux___closed__25; +x_423 = lean_name_mk_string(x_404, x_422); +lean_inc(x_423); +x_424 = lean_environment_find(x_420, x_423); +if (lean_obj_tag(x_424) == 0) +{ +lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; +lean_dec(x_405); +x_425 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_425, 0, x_423); +x_426 = l___private_Lean_Elab_App_13__resolveLValAux___closed__28; +x_427 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_427, 0, x_426); +lean_ctor_set(x_427, 1, x_425); +x_428 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; +x_429 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_429, 0, x_427); +lean_ctor_set(x_429, 1, x_428); +x_430 = l___private_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_429, x_4, x_421); +return x_430; +} +else +{ +lean_object* x_431; lean_object* x_432; +lean_dec(x_424); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_431 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_431, 0, x_423); +lean_ctor_set(x_431, 1, x_405); +x_432 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_432, 0, x_431); +lean_ctor_set(x_432, 1, x_421); +return x_432; +} +} +} +} +} +else +{ +lean_object* x_433; +lean_dec(x_12); +x_433 = lean_box(0); +x_6 = x_433; +goto block_11; +} +block_11: +{ +lean_dec(x_6); +if (lean_obj_tag(x_3) == 2) +{ +lean_object* x_7; lean_object* x_8; +lean_dec(x_3); +x_7 = l___private_Lean_Elab_App_13__resolveLValAux___closed__6; +x_8 = l___private_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_7, x_4, x_5); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; +lean_dec(x_3); +x_9 = l___private_Lean_Elab_App_13__resolveLValAux___closed__3; +x_10 = l___private_Lean_Elab_App_12__throwLValError___rarg(x_1, x_2, x_9, x_4, x_5); +return x_10; +} +} } } lean_object* l_Array_forMAux___main___at___private_Lean_Elab_App_14__resolveLValLoop___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { @@ -11998,226 +15914,226 @@ goto _start; } } } -lean_object* l___private_Lean_Elab_App_14__resolveLValLoop___main(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* l___private_Lean_Elab_App_14__resolveLValLoop___main(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_8; -lean_inc(x_6); -x_8 = l_Lean_Elab_Term_whnfCore(x_1, x_4, x_6, x_7); -if (lean_obj_tag(x_8) == 0) +lean_object* x_7; +lean_inc(x_5); +x_7 = l_Lean_Elab_Term_whnfCore(x_3, x_5, x_6); +if (lean_obj_tag(x_7) == 0) { -lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_9 = lean_ctor_get(x_8, 0); +lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_7, 1); lean_inc(x_9); -x_10 = lean_ctor_get(x_8, 1); -lean_inc(x_10); -lean_dec(x_8); -x_11 = l_Lean_Elab_Term_tryPostponeIfMVar(x_9, x_6, x_10); -if (lean_obj_tag(x_11) == 0) +lean_dec(x_7); +x_10 = l_Lean_Elab_Term_tryPostponeIfMVar(x_8, x_5, x_9); +if (lean_obj_tag(x_10) == 0) { -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_11, 1); -lean_inc(x_12); -lean_dec(x_11); -lean_inc(x_6); -lean_inc(x_3); -lean_inc(x_9); +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_10, 1); +lean_inc(x_11); +lean_dec(x_10); +lean_inc(x_5); lean_inc(x_2); -x_13 = l___private_Lean_Elab_App_13__resolveLValAux(x_1, x_2, x_9, x_3, x_6, x_12); -if (lean_obj_tag(x_13) == 0) +lean_inc(x_8); +lean_inc(x_1); +x_12 = l___private_Lean_Elab_App_13__resolveLValAux(x_1, x_8, x_2, x_5, x_11); +if (lean_obj_tag(x_12) == 0) { -lean_dec(x_9); -lean_dec(x_6); +lean_dec(x_8); lean_dec(x_5); -lean_dec(x_3); +lean_dec(x_4); lean_dec(x_2); -return x_13; +lean_dec(x_1); +return x_12; } else { -lean_object* x_14; lean_object* x_15; +lean_object* x_13; lean_object* x_14; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -if (lean_obj_tag(x_15) == 0) +if (lean_obj_tag(x_14) == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = lean_ctor_get(x_13, 1); +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_12, 1); +lean_inc(x_15); +lean_dec(x_12); +x_16 = lean_ctor_get(x_14, 0); lean_inc(x_16); -lean_dec(x_13); -x_17 = lean_ctor_get(x_15, 0); -lean_inc(x_17); -lean_dec(x_15); -lean_inc(x_6); -x_18 = l_Lean_Elab_Term_unfoldDefinition_x3f(x_1, x_9, x_6, x_16); +lean_dec(x_14); +lean_inc(x_5); +x_17 = l_Lean_Elab_Term_unfoldDefinition_x3f(x_8, x_5, x_15); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); 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; uint8_t x_23; -lean_dec(x_3); +lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_dec(x_2); -x_20 = lean_ctor_get(x_18, 1); -lean_inc(x_20); -lean_dec(x_18); -x_21 = lean_unsigned_to_nat(0u); -x_22 = l_Array_forMAux___main___at___private_Lean_Elab_App_14__resolveLValLoop___main___spec__1(x_17, x_5, x_21, x_6, x_20); -lean_dec(x_6); +lean_dec(x_1); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = lean_unsigned_to_nat(0u); +x_21 = l_Array_forMAux___main___at___private_Lean_Elab_App_14__resolveLValLoop___main___spec__1(x_16, x_4, x_20, x_5, x_19); lean_dec(x_5); -x_23 = !lean_is_exclusive(x_22); -if (x_23 == 0) +lean_dec(x_4); +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) { -lean_object* x_24; -x_24 = lean_ctor_get(x_22, 0); -lean_dec(x_24); -lean_ctor_set_tag(x_22, 1); -lean_ctor_set(x_22, 0, x_14); -return x_22; +lean_object* x_23; +x_23 = lean_ctor_get(x_21, 0); +lean_dec(x_23); +lean_ctor_set_tag(x_21, 1); +lean_ctor_set(x_21, 0, x_13); +return x_21; } else { -lean_object* x_25; lean_object* x_26; -x_25 = lean_ctor_get(x_22, 1); -lean_inc(x_25); -lean_dec(x_22); -x_26 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_26, 0, x_14); -lean_ctor_set(x_26, 1, x_25); -return x_26; +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_21, 1); +lean_inc(x_24); +lean_dec(x_21); +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_13); +lean_ctor_set(x_25, 1, x_24); +return x_25; } } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -lean_dec(x_14); -x_27 = lean_ctor_get(x_18, 1); +lean_object* x_26; lean_object* x_27; lean_object* x_28; +lean_dec(x_13); +x_26 = lean_ctor_get(x_17, 1); +lean_inc(x_26); +lean_dec(x_17); +x_27 = lean_ctor_get(x_18, 0); lean_inc(x_27); lean_dec(x_18); -x_28 = lean_ctor_get(x_19, 0); -lean_inc(x_28); -lean_dec(x_19); -x_29 = lean_array_push(x_5, x_17); +x_28 = lean_array_push(x_4, x_16); +x_3 = x_27; x_4 = x_28; -x_5 = x_29; -x_7 = x_27; +x_6 = x_26; goto _start; } } else { -uint8_t x_31; -lean_dec(x_17); -lean_dec(x_14); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -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; -} -} -} -else -{ -uint8_t x_35; -lean_dec(x_9); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_35 = !lean_is_exclusive(x_13); -if (x_35 == 0) -{ -lean_object* x_36; -x_36 = lean_ctor_get(x_13, 0); -lean_dec(x_36); -return x_13; -} -else -{ -lean_object* x_37; lean_object* x_38; -x_37 = lean_ctor_get(x_13, 1); -lean_inc(x_37); +uint8_t x_30; +lean_dec(x_16); lean_dec(x_13); -x_38 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_38, 0, x_14); -lean_ctor_set(x_38, 1, x_37); -return x_38; -} -} -} -} -else -{ -uint8_t x_39; -lean_dec(x_9); -lean_dec(x_6); lean_dec(x_5); -lean_dec(x_3); +lean_dec(x_4); lean_dec(x_2); -x_39 = !lean_is_exclusive(x_11); -if (x_39 == 0) +lean_dec(x_1); +x_30 = !lean_is_exclusive(x_17); +if (x_30 == 0) { -return x_11; +return x_17; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_11, 0); -x_41 = lean_ctor_get(x_11, 1); -lean_inc(x_41); -lean_inc(x_40); -lean_dec(x_11); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -return x_42; +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_17, 0); +x_32 = lean_ctor_get(x_17, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_17); +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_43; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_43 = !lean_is_exclusive(x_8); -if (x_43 == 0) -{ -return x_8; -} -else -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_8, 0); -x_45 = lean_ctor_get(x_8, 1); -lean_inc(x_45); -lean_inc(x_44); +uint8_t x_34; lean_dec(x_8); -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; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_34 = !lean_is_exclusive(x_12); +if (x_34 == 0) +{ +lean_object* x_35; +x_35 = lean_ctor_get(x_12, 0); +lean_dec(x_35); +return x_12; +} +else +{ +lean_object* x_36; lean_object* x_37; +x_36 = lean_ctor_get(x_12, 1); +lean_inc(x_36); +lean_dec(x_12); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_13); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +} +} +else +{ +uint8_t x_38; +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_38 = !lean_is_exclusive(x_10); +if (x_38 == 0) +{ +return x_10; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_10, 0); +x_40 = lean_ctor_get(x_10, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_10); +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_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_42 = !lean_is_exclusive(x_7); +if (x_42 == 0) +{ +return x_7; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_7, 0); +x_44 = lean_ctor_get(x_7, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_7); +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; } } } @@ -12232,87 +16148,60 @@ lean_dec(x_2); return x_6; } } -lean_object* l___private_Lean_Elab_App_14__resolveLValLoop___main___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* l___private_Lean_Elab_App_14__resolveLValLoop(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_8; -x_8 = l___private_Lean_Elab_App_14__resolveLValLoop___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_1); -return x_8; +lean_object* x_7; +x_7 = l___private_Lean_Elab_App_14__resolveLValLoop___main(x_1, x_2, x_3, x_4, x_5, x_6); +return x_7; } } -lean_object* l___private_Lean_Elab_App_14__resolveLValLoop(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* l___private_Lean_Elab_App_15__resolveLVal(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_8; -x_8 = l___private_Lean_Elab_App_14__resolveLValLoop___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -return x_8; -} -} -lean_object* l___private_Lean_Elab_App_14__resolveLValLoop___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_5; +lean_inc(x_3); +lean_inc(x_1); +x_5 = l_Lean_Elab_Term_inferType(x_1, x_3, x_4); +if (lean_obj_tag(x_5) == 0) { -lean_object* x_8; -x_8 = l___private_Lean_Elab_App_14__resolveLValLoop(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_1); -return x_8; -} -} -lean_object* l___private_Lean_Elab_App_15__resolveLVal(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -lean_inc(x_4); -lean_inc(x_2); -x_6 = l_Lean_Elab_Term_inferType(x_1, x_2, x_4, x_5); -if (lean_obj_tag(x_6) == 0) -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_7 = lean_ctor_get(x_6, 0); +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); lean_inc(x_7); -x_8 = lean_ctor_get(x_6, 1); -lean_inc(x_8); -lean_dec(x_6); -x_9 = l_Array_empty___closed__1; -x_10 = l___private_Lean_Elab_App_14__resolveLValLoop___main(x_1, x_2, x_3, x_7, x_9, x_4, x_8); -return x_10; +lean_dec(x_5); +x_8 = l_Array_empty___closed__1; +x_9 = l___private_Lean_Elab_App_14__resolveLValLoop___main(x_1, x_2, x_6, x_8, x_3, x_7); +return x_9; } else { -uint8_t x_11; -lean_dec(x_4); +uint8_t x_10; lean_dec(x_3); lean_dec(x_2); -x_11 = !lean_is_exclusive(x_6); -if (x_11 == 0) +lean_dec(x_1); +x_10 = !lean_is_exclusive(x_5); +if (x_10 == 0) { -return x_6; +return x_5; } else { -lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_12 = lean_ctor_get(x_6, 0); -x_13 = lean_ctor_get(x_6, 1); -lean_inc(x_13); +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_5, 0); +x_12 = lean_ctor_get(x_5, 1); lean_inc(x_12); -lean_dec(x_6); -x_14 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_14, 0, x_12); -lean_ctor_set(x_14, 1, x_13); -return x_14; +lean_inc(x_11); +lean_dec(x_5); +x_13 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_13, 0, x_11); +lean_ctor_set(x_13, 1, x_12); +return x_13; } } } } -lean_object* l___private_Lean_Elab_App_15__resolveLVal___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l___private_Lean_Elab_App_15__resolveLVal(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_1); -return x_6; -} -} lean_object* _init_l_List_foldlM___main___at___private_Lean_Elab_App_16__mkBaseProjections___spec__1___closed__1() { _start: { @@ -12331,115 +16220,111 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_List_foldlM___main___at___private_Lean_Elab_App_16__mkBaseProjections___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_List_foldlM___main___at___private_Lean_Elab_App_16__mkBaseProjections___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -if (lean_obj_tag(x_3) == 0) +if (lean_obj_tag(x_2) == 0) { -lean_object* x_6; -lean_dec(x_4); -lean_dec(x_1); -x_6 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_6, 0, x_2); -lean_ctor_set(x_6, 1, x_5); -return x_6; +lean_object* x_5; +lean_dec(x_3); +x_5 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_5, 0, x_1); +lean_ctor_set(x_5, 1, x_4); +return x_5; } else { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_7 = lean_ctor_get(x_3, 0); +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = lean_ctor_get(x_2, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_2, 1); lean_inc(x_7); -x_8 = lean_ctor_get(x_3, 1); -lean_inc(x_8); -lean_dec(x_3); -x_9 = lean_box(0); -lean_inc(x_4); -x_10 = l_Lean_Elab_Term_mkConst(x_1, x_7, x_9, x_4, x_5); -if (lean_obj_tag(x_10) == 0) +lean_dec(x_2); +x_8 = lean_box(0); +lean_inc(x_3); +x_9 = l_Lean_Elab_Term_mkConst(x_6, x_8, x_3, x_4); +if (lean_obj_tag(x_9) == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; -x_11 = lean_ctor_get(x_10, 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; lean_object* x_18; uint8_t x_19; lean_object* x_20; +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); lean_inc(x_11); -x_12 = lean_ctor_get(x_10, 1); -lean_inc(x_12); -lean_dec(x_10); -x_13 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_13, 0, x_2); -x_14 = l_List_foldlM___main___at___private_Lean_Elab_App_16__mkBaseProjections___spec__1___closed__2; -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_13); -x_16 = l_Lean_mkOptionalNode___closed__2; -x_17 = lean_array_push(x_16, x_15); -x_18 = lean_box(0); -x_19 = l_Array_empty___closed__1; -x_20 = 0; -lean_inc(x_4); -lean_inc(x_1); -x_21 = l___private_Lean_Elab_App_11__elabAppArgs(x_1, x_11, x_17, x_19, x_18, x_20, x_4, x_12); -if (lean_obj_tag(x_21) == 0) +lean_dec(x_9); +x_12 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_12, 0, x_1); +x_13 = l_List_foldlM___main___at___private_Lean_Elab_App_16__mkBaseProjections___spec__1___closed__2; +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_12); +x_15 = l_Lean_mkOptionalNode___closed__2; +x_16 = lean_array_push(x_15, x_14); +x_17 = lean_box(0); +x_18 = l_Array_empty___closed__1; +x_19 = 0; +lean_inc(x_3); +x_20 = l___private_Lean_Elab_App_11__elabAppArgs(x_10, x_16, x_18, x_17, x_19, x_3, x_11); +if (lean_obj_tag(x_20) == 0) { -lean_object* x_22; lean_object* x_23; -x_22 = lean_ctor_get(x_21, 0); +lean_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_20, 1); lean_inc(x_22); -x_23 = lean_ctor_get(x_21, 1); -lean_inc(x_23); -lean_dec(x_21); -x_2 = x_22; -x_3 = x_8; -x_5 = x_23; +lean_dec(x_20); +x_1 = x_21; +x_2 = x_7; +x_4 = x_22; goto _start; } else { -uint8_t x_25; -lean_dec(x_8); -lean_dec(x_4); -lean_dec(x_1); -x_25 = !lean_is_exclusive(x_21); -if (x_25 == 0) +uint8_t x_24; +lean_dec(x_7); +lean_dec(x_3); +x_24 = !lean_is_exclusive(x_20); +if (x_24 == 0) { -return x_21; +return x_20; } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_21, 0); -x_27 = lean_ctor_get(x_21, 1); -lean_inc(x_27); +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_20, 0); +x_26 = lean_ctor_get(x_20, 1); lean_inc(x_26); -lean_dec(x_21); -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; +lean_inc(x_25); +lean_dec(x_20); +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_29; -lean_dec(x_8); -lean_dec(x_4); -lean_dec(x_2); +uint8_t x_28; +lean_dec(x_7); +lean_dec(x_3); lean_dec(x_1); -x_29 = !lean_is_exclusive(x_10); -if (x_29 == 0) +x_28 = !lean_is_exclusive(x_9); +if (x_28 == 0) { -return x_10; +return x_9; } else { -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_10, 0); -x_31 = lean_ctor_get(x_10, 1); -lean_inc(x_31); +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_9, 0); +x_30 = lean_ctor_get(x_9, 1); lean_inc(x_30); -lean_dec(x_10); -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; +lean_inc(x_29); +lean_dec(x_9); +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; } } } @@ -12473,44 +16358,43 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_App_16__mkBaseProjections(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* l___private_Lean_Elab_App_16__mkBaseProjections(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_7 = l_Lean_Elab_Term_getEnv___rarg(x_6); -x_8 = lean_ctor_get(x_7, 0); +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = l_Lean_Elab_Term_getEnv___rarg(x_5); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); lean_inc(x_8); -x_9 = lean_ctor_get(x_7, 1); -lean_inc(x_9); -lean_dec(x_7); -x_10 = l_Lean_getPathToBaseStructure_x3f(x_8, x_2, x_3); -if (lean_obj_tag(x_10) == 0) +lean_dec(x_6); +x_9 = l_Lean_getPathToBaseStructure_x3f(x_7, x_1, x_2); +if (lean_obj_tag(x_9) == 0) { -lean_object* x_11; lean_object* x_12; -lean_dec(x_4); -x_11 = l___private_Lean_Elab_App_16__mkBaseProjections___closed__3; -x_12 = l_Lean_Elab_Term_throwError___rarg(x_1, x_11, x_5, x_9); -lean_dec(x_1); -return x_12; +lean_object* x_10; lean_object* x_11; +lean_dec(x_3); +x_10 = l___private_Lean_Elab_App_16__mkBaseProjections___closed__3; +x_11 = l_Lean_Elab_Term_throwError___rarg(x_10, x_4, x_8); +return x_11; } else { -lean_object* x_13; lean_object* x_14; -x_13 = lean_ctor_get(x_10, 0); -lean_inc(x_13); -lean_dec(x_10); -x_14 = l_List_foldlM___main___at___private_Lean_Elab_App_16__mkBaseProjections___spec__1(x_1, x_4, x_13, x_5, x_9); -return x_14; +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_9, 0); +lean_inc(x_12); +lean_dec(x_9); +x_13 = l_List_foldlM___main___at___private_Lean_Elab_App_16__mkBaseProjections___spec__1(x_3, x_12, x_4, x_8); +return x_13; } } } -lean_object* l___private_Lean_Elab_App_16__mkBaseProjections___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* l___private_Lean_Elab_App_16__mkBaseProjections___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_7; -x_7 = l___private_Lean_Elab_App_16__mkBaseProjections(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_2); -return x_7; +lean_object* x_6; +x_6 = l___private_Lean_Elab_App_16__mkBaseProjections(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_1); +return x_6; } } lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_App_17__addLValArg___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { @@ -12667,140 +16551,140 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_App_17__addLValArg___main(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___private_Lean_Elab_App_17__addLValArg___main(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_11; -if (lean_obj_tag(x_8) == 7) +lean_object* x_10; +if (lean_obj_tag(x_7) == 7) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; uint64_t x_26; uint8_t x_27; uint8_t x_28; -x_23 = lean_ctor_get(x_8, 0); -x_24 = lean_ctor_get(x_8, 1); -x_25 = lean_ctor_get(x_8, 2); -x_26 = lean_ctor_get_uint64(x_8, sizeof(void*)*3); -x_27 = (uint8_t)((x_26 << 24) >> 61); -x_28 = l_Lean_BinderInfo_isExplicit(x_27); -if (x_28 == 0) +lean_object* x_22; lean_object* x_23; lean_object* x_24; uint64_t x_25; uint8_t x_26; uint8_t x_27; +x_22 = lean_ctor_get(x_7, 0); +x_23 = lean_ctor_get(x_7, 1); +x_24 = lean_ctor_get(x_7, 2); +x_25 = lean_ctor_get_uint64(x_7, sizeof(void*)*3); +x_26 = (uint8_t)((x_25 << 24) >> 61); +x_27 = l_Lean_BinderInfo_isExplicit(x_26); +if (x_27 == 0) { -x_8 = x_25; +x_7 = x_24; goto _start; } else { -lean_object* x_30; lean_object* x_31; -x_30 = lean_unsigned_to_nat(0u); -x_31 = l_Array_findIdxAux___main___at___private_Lean_Elab_App_17__addLValArg___main___spec__1(x_23, x_7, x_30); -if (lean_obj_tag(x_31) == 0) +lean_object* x_29; lean_object* x_30; +x_29 = lean_unsigned_to_nat(0u); +x_30 = l_Array_findIdxAux___main___at___private_Lean_Elab_App_17__addLValArg___main___spec__1(x_22, x_6, x_29); +if (lean_obj_tag(x_30) == 0) { -lean_object* x_32; uint8_t x_33; -x_32 = l_Lean_Expr_consumeMData___main(x_24); -x_33 = l_Lean_Expr_isAppOf(x_32, x_2); -lean_dec(x_32); -if (x_33 == 0) -{ -lean_object* x_34; uint8_t x_35; -x_34 = lean_array_get_size(x_5); -x_35 = lean_nat_dec_lt(x_6, 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; lean_object* x_41; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_36 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_36, 0, x_3); -x_37 = l___private_Lean_Elab_App_17__addLValArg___main___closed__12; -x_38 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_36); -x_39 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; -x_40 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -x_41 = l_Lean_Elab_Term_throwError___rarg(x_1, x_40, x_9, x_10); -return x_41; -} -else -{ -lean_object* x_42; lean_object* x_43; -x_42 = lean_unsigned_to_nat(1u); -x_43 = lean_nat_add(x_6, x_42); -lean_dec(x_6); -x_6 = x_43; -x_8 = x_25; -goto _start; -} -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_3); -lean_dec(x_2); -x_45 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_45, 0, x_4); -x_46 = l_Array_insertAt___rarg(x_5, x_6, x_45); -lean_dec(x_6); -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_10); -return x_47; -} -} -else -{ -lean_object* x_48; lean_object* x_49; -x_48 = lean_ctor_get(x_31, 0); -lean_inc(x_48); +lean_object* x_31; uint8_t x_32; +x_31 = l_Lean_Expr_consumeMData___main(x_23); +x_32 = l_Lean_Expr_isAppOf(x_31, x_1); lean_dec(x_31); -x_49 = l_Array_eraseIdx___rarg(x_7, x_48); -lean_dec(x_48); -x_7 = x_49; -x_8 = x_25; +if (x_32 == 0) +{ +lean_object* x_33; uint8_t x_34; +x_33 = lean_array_get_size(x_4); +x_34 = lean_nat_dec_lt(x_5, x_33); +lean_dec(x_33); +if (x_34 == 0) +{ +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_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_35 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_35, 0, x_2); +x_36 = l___private_Lean_Elab_App_17__addLValArg___main___closed__12; +x_37 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_35); +x_38 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; +x_39 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_39, 0, x_37); +lean_ctor_set(x_39, 1, x_38); +x_40 = l_Lean_Elab_Term_throwError___rarg(x_39, x_8, x_9); +return x_40; +} +else +{ +lean_object* x_41; lean_object* x_42; +x_41 = lean_unsigned_to_nat(1u); +x_42 = lean_nat_add(x_5, x_41); +lean_dec(x_5); +x_5 = x_42; +x_7 = x_24; +goto _start; +} +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_44 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_44, 0, x_3); +x_45 = l_Array_insertAt___rarg(x_4, x_5, x_44); +lean_dec(x_5); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_9); +return x_46; +} +} +else +{ +lean_object* x_47; lean_object* x_48; +x_47 = lean_ctor_get(x_30, 0); +lean_inc(x_47); +lean_dec(x_30); +x_48 = l_Array_eraseIdx___rarg(x_6, x_47); +lean_dec(x_47); +x_6 = x_48; +x_7 = x_24; goto _start; } } } else { -lean_object* x_51; -lean_dec(x_7); +lean_object* x_50; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_51 = lean_box(0); -x_11 = x_51; -goto block_22; +lean_dec(x_3); +x_50 = lean_box(0); +x_10 = x_50; +goto block_21; } -block_22: +block_21: { -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_dec(x_11); -x_12 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_12, 0, x_3); -x_13 = l___private_Lean_Elab_App_17__addLValArg___main___closed__3; -x_14 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_14, 0, x_13); -lean_ctor_set(x_14, 1, x_12); -x_15 = l___private_Lean_Elab_App_17__addLValArg___main___closed__6; -x_16 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_16, 0, x_14); -lean_ctor_set(x_16, 1, x_15); -x_17 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_17, 0, x_2); -x_18 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_18, 0, x_16); -lean_ctor_set(x_18, 1, x_17); -x_19 = l___private_Lean_Elab_App_17__addLValArg___main___closed__9; -x_20 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_20, 0, x_18); -lean_ctor_set(x_20, 1, x_19); -x_21 = l_Lean_Elab_Term_throwError___rarg(x_1, x_20, x_9, x_10); -return x_21; +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_dec(x_10); +x_11 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_11, 0, x_2); +x_12 = l___private_Lean_Elab_App_17__addLValArg___main___closed__3; +x_13 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_11); +x_14 = l___private_Lean_Elab_App_17__addLValArg___main___closed__6; +x_15 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_15, 0, x_13); +lean_ctor_set(x_15, 1, x_14); +x_16 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_16, 0, x_1); +x_17 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +x_18 = l___private_Lean_Elab_App_17__addLValArg___main___closed__9; +x_19 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +x_20 = l_Lean_Elab_Term_throwError___rarg(x_19, x_8, x_9); +return x_20; } } } @@ -12814,32 +16698,30 @@ lean_dec(x_1); return x_4; } } -lean_object* l___private_Lean_Elab_App_17__addLValArg___main___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___private_Lean_Elab_App_17__addLValArg___main___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_11; -x_11 = l___private_Lean_Elab_App_17__addLValArg___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_8); -lean_dec(x_1); -return x_11; +lean_object* x_10; +x_10 = l___private_Lean_Elab_App_17__addLValArg___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_7); +return x_10; } } -lean_object* l___private_Lean_Elab_App_17__addLValArg(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___private_Lean_Elab_App_17__addLValArg(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_11; -x_11 = l___private_Lean_Elab_App_17__addLValArg___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_11; +lean_object* x_10; +x_10 = l___private_Lean_Elab_App_17__addLValArg___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_10; } } -lean_object* l___private_Lean_Elab_App_17__addLValArg___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___private_Lean_Elab_App_17__addLValArg___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_11; -x_11 = l___private_Lean_Elab_App_17__addLValArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_8); -lean_dec(x_1); -return x_11; +lean_object* x_10; +x_10 = l___private_Lean_Elab_App_17__addLValArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_7); +return x_10; } } lean_object* _init_l___private_Lean_Elab_App_18__elabAppLValsAux___main___closed__1() { @@ -12860,904 +16742,883 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l___private_Lean_Elab_App_18__elabAppLValsAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_App_18__elabAppLValsAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { -if (lean_obj_tag(x_7) == 0) +if (lean_obj_tag(x_6) == 0) { -lean_object* x_10; -x_10 = l___private_Lean_Elab_App_11__elabAppArgs(x_1, x_6, x_2, x_3, x_4, x_5, x_8, x_9); -return x_10; +lean_object* x_9; +x_9 = l___private_Lean_Elab_App_11__elabAppArgs(x_5, x_1, x_2, x_3, x_4, x_7, x_8); +return x_9; } else { -lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_11 = lean_ctor_get(x_7, 0); +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_6, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_6, 1); lean_inc(x_11); -x_12 = lean_ctor_get(x_7, 1); -lean_inc(x_12); -lean_dec(x_7); -lean_inc(x_8); -lean_inc(x_6); -x_13 = l___private_Lean_Elab_App_15__resolveLVal(x_1, x_6, x_11, x_8, x_9); -if (lean_obj_tag(x_13) == 0) +lean_dec(x_6); +lean_inc(x_7); +lean_inc(x_5); +x_12 = l___private_Lean_Elab_App_15__resolveLVal(x_5, x_10, x_7, x_8); +if (lean_obj_tag(x_12) == 0) { -lean_object* x_14; -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -switch (lean_obj_tag(x_14)) { +lean_object* x_13; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +switch (lean_obj_tag(x_13)) { case 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_13, 1); +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = lean_ctor_get(x_13, 0); lean_inc(x_15); -lean_dec(x_13); -x_16 = lean_ctor_get(x_14, 0); +x_16 = lean_ctor_get(x_13, 1); lean_inc(x_16); -x_17 = lean_ctor_get(x_14, 1); +x_17 = lean_ctor_get(x_13, 2); lean_inc(x_17); -x_18 = lean_ctor_get(x_14, 2); -lean_inc(x_18); -lean_dec(x_14); -lean_inc(x_8); -lean_inc(x_1); -x_19 = l___private_Lean_Elab_App_16__mkBaseProjections(x_1, x_16, x_17, x_6, x_8, x_15); -if (lean_obj_tag(x_19) == 0) +lean_dec(x_13); +lean_inc(x_7); +x_18 = l___private_Lean_Elab_App_16__mkBaseProjections(x_15, x_16, x_5, x_7, x_14); +if (lean_obj_tag(x_18) == 0) { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_20 = lean_ctor_get(x_19, 0); +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); lean_inc(x_20); -x_21 = lean_ctor_get(x_19, 1); -lean_inc(x_21); -lean_dec(x_19); -x_22 = l_Lean_Name_append___main(x_16, x_18); -lean_dec(x_16); -x_23 = lean_box(0); -lean_inc(x_8); -x_24 = l_Lean_Elab_Term_mkConst(x_1, x_22, x_23, x_8, x_21); -if (lean_obj_tag(x_24) == 0) +lean_dec(x_18); +x_21 = l_Lean_Name_append___main(x_15, x_17); +lean_dec(x_15); +x_22 = lean_box(0); +lean_inc(x_7); +x_23 = l_Lean_Elab_Term_mkConst(x_21, x_22, x_7, x_20); +if (lean_obj_tag(x_23) == 0) { -lean_object* x_25; lean_object* x_26; uint8_t x_27; -x_25 = lean_ctor_get(x_24, 0); +lean_object* x_24; lean_object* x_25; uint8_t 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); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); -lean_dec(x_24); -x_27 = l_List_isEmpty___rarg(x_12); -if (x_27 == 0) +lean_dec(x_23); +x_26 = l_List_isEmpty___rarg(x_11); +if (x_26 == 0) { -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; lean_object* x_36; -x_28 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_28, 0, x_20); -x_29 = l_List_foldlM___main___at___private_Lean_Elab_App_16__mkBaseProjections___spec__1___closed__2; -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_28); -x_31 = l_Lean_mkOptionalNode___closed__2; -x_32 = lean_array_push(x_31, x_30); -x_33 = lean_box(0); -x_34 = l_Array_empty___closed__1; -x_35 = 0; -lean_inc(x_8); -lean_inc(x_1); -x_36 = l___private_Lean_Elab_App_11__elabAppArgs(x_1, x_25, x_32, x_34, x_33, x_35, x_8, x_26); -if (lean_obj_tag(x_36) == 0) +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; lean_object* x_35; +x_27 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_27, 0, x_19); +x_28 = l_List_foldlM___main___at___private_Lean_Elab_App_16__mkBaseProjections___spec__1___closed__2; +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_27); +x_30 = l_Lean_mkOptionalNode___closed__2; +x_31 = lean_array_push(x_30, x_29); +x_32 = lean_box(0); +x_33 = l_Array_empty___closed__1; +x_34 = 0; +lean_inc(x_7); +x_35 = l___private_Lean_Elab_App_11__elabAppArgs(x_24, x_31, x_33, x_32, x_34, x_7, x_25); +if (lean_obj_tag(x_35) == 0) { -lean_object* x_37; lean_object* x_38; -x_37 = lean_ctor_get(x_36, 0); +lean_object* x_36; lean_object* x_37; +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_35, 1); lean_inc(x_37); -x_38 = lean_ctor_get(x_36, 1); -lean_inc(x_38); -lean_dec(x_36); -x_6 = x_37; -x_7 = x_12; -x_9 = x_38; +lean_dec(x_35); +x_5 = x_36; +x_6 = x_11; +x_8 = x_37; goto _start; } else { -uint8_t x_40; -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_4); +uint8_t x_39; +lean_dec(x_11); +lean_dec(x_7); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_40 = !lean_is_exclusive(x_36); -if (x_40 == 0) +x_39 = !lean_is_exclusive(x_35); +if (x_39 == 0) { -return x_36; +return x_35; } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_36, 0); -x_42 = lean_ctor_get(x_36, 1); -lean_inc(x_42); +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_35, 0); +x_41 = lean_ctor_get(x_35, 1); lean_inc(x_41); -lean_dec(x_36); -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; +lean_inc(x_40); +lean_dec(x_35); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; } } } else { -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; -lean_dec(x_12); -x_44 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_44, 0, x_20); -x_45 = l_List_foldlM___main___at___private_Lean_Elab_App_16__mkBaseProjections___spec__1___closed__2; -x_46 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_46, 0, x_45); -lean_ctor_set(x_46, 1, x_44); -lean_inc(x_8); -x_47 = l_Lean_Elab_Term_addNamedArg(x_1, x_2, x_46, x_8, x_26); -if (lean_obj_tag(x_47) == 0) +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +lean_dec(x_11); +x_43 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_43, 0, x_19); +x_44 = l_List_foldlM___main___at___private_Lean_Elab_App_16__mkBaseProjections___spec__1___closed__2; +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_44); +lean_ctor_set(x_45, 1, x_43); +lean_inc(x_7); +x_46 = l_Lean_Elab_Term_addNamedArg(x_1, x_45, x_7, x_25); +if (lean_obj_tag(x_46) == 0) { -lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_48 = lean_ctor_get(x_47, 0); +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_46, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_46, 1); lean_inc(x_48); -x_49 = lean_ctor_get(x_47, 1); -lean_inc(x_49); -lean_dec(x_47); -x_50 = l___private_Lean_Elab_App_11__elabAppArgs(x_1, x_25, x_48, x_3, x_4, x_5, x_8, x_49); -return x_50; +lean_dec(x_46); +x_49 = l___private_Lean_Elab_App_11__elabAppArgs(x_24, x_47, x_2, x_3, x_4, x_7, x_48); +return x_49; } else { -uint8_t x_51; -lean_dec(x_25); -lean_dec(x_8); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_51 = !lean_is_exclusive(x_47); -if (x_51 == 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_20); -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_55 = !lean_is_exclusive(x_24); -if (x_55 == 0) -{ -return x_24; -} -else -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_24, 0); -x_57 = lean_ctor_get(x_24, 1); -lean_inc(x_57); -lean_inc(x_56); +uint8_t x_50; lean_dec(x_24); -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; +lean_dec(x_7); +lean_dec(x_3); +lean_dec(x_2); +x_50 = !lean_is_exclusive(x_46); +if (x_50 == 0) +{ +return x_46; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_46, 0); +x_52 = lean_ctor_get(x_46, 1); +lean_inc(x_52); +lean_inc(x_51); +lean_dec(x_46); +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +return x_53; +} } } } else { -uint8_t x_59; -lean_dec(x_18); -lean_dec(x_16); -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_4); +uint8_t x_54; +lean_dec(x_19); +lean_dec(x_11); +lean_dec(x_7); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_59 = !lean_is_exclusive(x_19); -if (x_59 == 0) +x_54 = !lean_is_exclusive(x_23); +if (x_54 == 0) { -return x_19; +return x_23; } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_19, 0); -x_61 = lean_ctor_get(x_19, 1); -lean_inc(x_61); +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_23, 0); +x_56 = lean_ctor_get(x_23, 1); +lean_inc(x_56); +lean_inc(x_55); +lean_dec(x_23); +x_57 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_56); +return x_57; +} +} +} +else +{ +uint8_t x_58; +lean_dec(x_17); +lean_dec(x_15); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_58 = !lean_is_exclusive(x_18); +if (x_58 == 0) +{ +return x_18; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_18, 0); +x_60 = lean_ctor_get(x_18, 1); lean_inc(x_60); -lean_dec(x_19); -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; +lean_inc(x_59); +lean_dec(x_18); +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_60); +return x_61; } } } case 1: { -lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_63 = lean_ctor_get(x_13, 1); +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_62 = lean_ctor_get(x_12, 1); +lean_inc(x_62); +lean_dec(x_12); +x_63 = lean_ctor_get(x_13, 0); lean_inc(x_63); -lean_dec(x_13); -x_64 = lean_ctor_get(x_14, 0); +x_64 = lean_ctor_get(x_13, 1); lean_inc(x_64); -x_65 = lean_ctor_get(x_14, 1); -lean_inc(x_65); -lean_dec(x_14); -x_66 = l_Lean_mkProj(x_64, x_65, x_6); -x_6 = x_66; -x_7 = x_12; -x_9 = x_63; +lean_dec(x_13); +x_65 = l_Lean_mkProj(x_63, x_64, x_5); +x_5 = x_65; +x_6 = x_11; +x_8 = x_62; goto _start; } case 2: { -lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_68 = lean_ctor_get(x_13, 1); +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_67 = lean_ctor_get(x_12, 1); +lean_inc(x_67); +lean_dec(x_12); +x_68 = lean_ctor_get(x_13, 0); lean_inc(x_68); -lean_dec(x_13); -x_69 = lean_ctor_get(x_14, 0); +x_69 = lean_ctor_get(x_13, 1); lean_inc(x_69); -x_70 = lean_ctor_get(x_14, 1); -lean_inc(x_70); -lean_dec(x_14); -x_71 = lean_box(0); -lean_inc(x_8); -lean_inc(x_70); -x_72 = l_Lean_Elab_Term_mkConst(x_1, x_70, x_71, x_8, x_68); -if (lean_obj_tag(x_72) == 0) +lean_dec(x_13); +x_70 = lean_box(0); +lean_inc(x_7); +lean_inc(x_69); +x_71 = l_Lean_Elab_Term_mkConst(x_69, x_70, x_7, x_67); +if (lean_obj_tag(x_71) == 0) { -lean_object* x_73; lean_object* x_74; uint8_t x_75; -x_73 = lean_ctor_get(x_72, 0); +lean_object* x_72; lean_object* x_73; uint8_t x_74; +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_71, 1); lean_inc(x_73); -x_74 = lean_ctor_get(x_72, 1); -lean_inc(x_74); -lean_dec(x_72); -x_75 = l_List_isEmpty___rarg(x_12); -if (x_75 == 0) +lean_dec(x_71); +x_74 = l_List_isEmpty___rarg(x_11); +if (x_74 == 0) { -lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; lean_object* x_82; -lean_dec(x_70); +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; uint8_t x_80; lean_object* x_81; lean_dec(x_69); -x_76 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_76, 0, x_6); -x_77 = l_Lean_mkOptionalNode___closed__2; -x_78 = lean_array_push(x_77, x_76); -x_79 = lean_box(0); -x_80 = l_Array_empty___closed__1; -x_81 = 0; -lean_inc(x_8); -lean_inc(x_1); -x_82 = l___private_Lean_Elab_App_11__elabAppArgs(x_1, x_73, x_80, x_78, x_79, x_81, x_8, x_74); -if (lean_obj_tag(x_82) == 0) +lean_dec(x_68); +x_75 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_75, 0, x_5); +x_76 = l_Lean_mkOptionalNode___closed__2; +x_77 = lean_array_push(x_76, x_75); +x_78 = lean_box(0); +x_79 = l_Array_empty___closed__1; +x_80 = 0; +lean_inc(x_7); +x_81 = l___private_Lean_Elab_App_11__elabAppArgs(x_72, x_79, x_77, x_78, x_80, x_7, x_73); +if (lean_obj_tag(x_81) == 0) { -lean_object* x_83; lean_object* x_84; -x_83 = lean_ctor_get(x_82, 0); +lean_object* x_82; lean_object* x_83; +x_82 = lean_ctor_get(x_81, 0); +lean_inc(x_82); +x_83 = lean_ctor_get(x_81, 1); lean_inc(x_83); -x_84 = lean_ctor_get(x_82, 1); -lean_inc(x_84); -lean_dec(x_82); -x_6 = x_83; -x_7 = x_12; -x_9 = x_84; +lean_dec(x_81); +x_5 = x_82; +x_6 = x_11; +x_8 = x_83; goto _start; } else { -uint8_t x_86; -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_4); +uint8_t x_85; +lean_dec(x_11); +lean_dec(x_7); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_86 = !lean_is_exclusive(x_82); -if (x_86 == 0) +x_85 = !lean_is_exclusive(x_81); +if (x_85 == 0) { -return x_82; +return x_81; } else { -lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_87 = lean_ctor_get(x_82, 0); -x_88 = lean_ctor_get(x_82, 1); -lean_inc(x_88); +lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_86 = lean_ctor_get(x_81, 0); +x_87 = lean_ctor_get(x_81, 1); lean_inc(x_87); -lean_dec(x_82); -x_89 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_89, 0, x_87); -lean_ctor_set(x_89, 1, x_88); +lean_inc(x_86); +lean_dec(x_81); +x_88 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_88, 0, x_86); +lean_ctor_set(x_88, 1, x_87); +return x_88; +} +} +} +else +{ +lean_object* x_89; +lean_dec(x_11); +lean_inc(x_7); +lean_inc(x_72); +x_89 = l_Lean_Elab_Term_inferType(x_72, x_7, x_73); +if (lean_obj_tag(x_89) == 0) +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_90 = lean_ctor_get(x_89, 0); +lean_inc(x_90); +x_91 = lean_ctor_get(x_89, 1); +lean_inc(x_91); +lean_dec(x_89); +x_92 = lean_unsigned_to_nat(0u); +lean_inc(x_7); +lean_inc(x_1); +x_93 = l___private_Lean_Elab_App_17__addLValArg___main(x_68, x_69, x_5, x_2, x_92, x_1, x_90, x_7, x_91); +lean_dec(x_90); +if (lean_obj_tag(x_93) == 0) +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_94 = lean_ctor_get(x_93, 0); +lean_inc(x_94); +x_95 = lean_ctor_get(x_93, 1); +lean_inc(x_95); +lean_dec(x_93); +x_96 = l___private_Lean_Elab_App_11__elabAppArgs(x_72, x_1, x_94, x_3, x_4, x_7, x_95); +return x_96; +} +else +{ +uint8_t x_97; +lean_dec(x_72); +lean_dec(x_7); +lean_dec(x_3); +lean_dec(x_1); +x_97 = !lean_is_exclusive(x_93); +if (x_97 == 0) +{ +return x_93; +} +else +{ +lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_98 = lean_ctor_get(x_93, 0); +x_99 = lean_ctor_get(x_93, 1); +lean_inc(x_99); +lean_inc(x_98); +lean_dec(x_93); +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 +{ +uint8_t x_101; +lean_dec(x_72); +lean_dec(x_69); +lean_dec(x_68); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_101 = !lean_is_exclusive(x_89); +if (x_101 == 0) +{ return x_89; } -} -} else { -lean_object* x_90; -lean_dec(x_12); -lean_inc(x_8); -lean_inc(x_73); -x_90 = l_Lean_Elab_Term_inferType(x_1, x_73, x_8, x_74); -if (lean_obj_tag(x_90) == 0) -{ -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_91 = lean_ctor_get(x_90, 0); -lean_inc(x_91); -x_92 = lean_ctor_get(x_90, 1); -lean_inc(x_92); -lean_dec(x_90); -x_93 = lean_unsigned_to_nat(0u); -lean_inc(x_8); -lean_inc(x_2); -x_94 = l___private_Lean_Elab_App_17__addLValArg___main(x_1, x_69, x_70, x_6, x_3, x_93, x_2, x_91, x_8, x_92); -lean_dec(x_91); -if (lean_obj_tag(x_94) == 0) -{ -lean_object* x_95; lean_object* x_96; lean_object* x_97; -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 = l___private_Lean_Elab_App_11__elabAppArgs(x_1, x_73, x_2, x_95, x_4, x_5, x_8, x_96); -return x_97; -} -else -{ -uint8_t x_98; -lean_dec(x_73); -lean_dec(x_8); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_98 = !lean_is_exclusive(x_94); -if (x_98 == 0) -{ -return x_94; -} -else -{ -lean_object* x_99; lean_object* x_100; lean_object* x_101; -x_99 = lean_ctor_get(x_94, 0); -x_100 = lean_ctor_get(x_94, 1); -lean_inc(x_100); -lean_inc(x_99); -lean_dec(x_94); -x_101 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_101, 0, x_99); -lean_ctor_set(x_101, 1, x_100); -return x_101; -} -} -} -else -{ -uint8_t x_102; -lean_dec(x_73); -lean_dec(x_70); -lean_dec(x_69); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_102 = !lean_is_exclusive(x_90); -if (x_102 == 0) -{ -return x_90; -} -else -{ -lean_object* x_103; lean_object* x_104; lean_object* x_105; -x_103 = lean_ctor_get(x_90, 0); -x_104 = lean_ctor_get(x_90, 1); -lean_inc(x_104); +lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_102 = lean_ctor_get(x_89, 0); +x_103 = lean_ctor_get(x_89, 1); lean_inc(x_103); -lean_dec(x_90); -x_105 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_105, 0, x_103); -lean_ctor_set(x_105, 1, x_104); -return x_105; +lean_inc(x_102); +lean_dec(x_89); +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 { -uint8_t x_106; -lean_dec(x_70); +uint8_t x_105; lean_dec(x_69); -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_4); +lean_dec(x_68); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_106 = !lean_is_exclusive(x_72); -if (x_106 == 0) +x_105 = !lean_is_exclusive(x_71); +if (x_105 == 0) { -return x_72; +return x_71; } else { -lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_107 = lean_ctor_get(x_72, 0); -x_108 = lean_ctor_get(x_72, 1); -lean_inc(x_108); +lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_106 = lean_ctor_get(x_71, 0); +x_107 = lean_ctor_get(x_71, 1); lean_inc(x_107); -lean_dec(x_72); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_107); -lean_ctor_set(x_109, 1, x_108); -return x_109; +lean_inc(x_106); +lean_dec(x_71); +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; } } } case 3: { -lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; uint8_t x_114; -x_110 = lean_ctor_get(x_13, 1); +lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; +x_109 = lean_ctor_get(x_12, 1); +lean_inc(x_109); +lean_dec(x_12); +x_110 = lean_ctor_get(x_13, 0); lean_inc(x_110); -lean_dec(x_13); -x_111 = lean_ctor_get(x_14, 0); +x_111 = lean_ctor_get(x_13, 1); lean_inc(x_111); -x_112 = lean_ctor_get(x_14, 1); +x_112 = lean_ctor_get(x_13, 2); lean_inc(x_112); -x_113 = lean_ctor_get(x_14, 2); -lean_inc(x_113); -lean_dec(x_14); -x_114 = l_List_isEmpty___rarg(x_12); -if (x_114 == 0) +lean_dec(x_13); +x_113 = l_List_isEmpty___rarg(x_11); +if (x_113 == 0) { -lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; uint8_t x_120; lean_object* x_121; -lean_dec(x_112); +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; lean_object* x_120; lean_dec(x_111); -x_115 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_115, 0, x_6); -x_116 = l_Lean_mkOptionalNode___closed__2; -x_117 = lean_array_push(x_116, x_115); -x_118 = lean_box(0); -x_119 = l_Array_empty___closed__1; -x_120 = 0; -lean_inc(x_8); -lean_inc(x_1); -x_121 = l___private_Lean_Elab_App_11__elabAppArgs(x_1, x_113, x_119, x_117, x_118, x_120, x_8, x_110); -if (lean_obj_tag(x_121) == 0) +lean_dec(x_110); +x_114 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_114, 0, x_5); +x_115 = l_Lean_mkOptionalNode___closed__2; +x_116 = lean_array_push(x_115, x_114); +x_117 = lean_box(0); +x_118 = l_Array_empty___closed__1; +x_119 = 0; +lean_inc(x_7); +x_120 = l___private_Lean_Elab_App_11__elabAppArgs(x_112, x_118, x_116, x_117, x_119, x_7, x_109); +if (lean_obj_tag(x_120) == 0) { -lean_object* x_122; lean_object* x_123; -x_122 = lean_ctor_get(x_121, 0); +lean_object* x_121; lean_object* x_122; +x_121 = lean_ctor_get(x_120, 0); +lean_inc(x_121); +x_122 = lean_ctor_get(x_120, 1); lean_inc(x_122); -x_123 = lean_ctor_get(x_121, 1); -lean_inc(x_123); -lean_dec(x_121); -x_6 = x_122; -x_7 = x_12; -x_9 = x_123; +lean_dec(x_120); +x_5 = x_121; +x_6 = x_11; +x_8 = x_122; goto _start; } else { -uint8_t x_125; -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_4); +uint8_t x_124; +lean_dec(x_11); +lean_dec(x_7); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_125 = !lean_is_exclusive(x_121); -if (x_125 == 0) +x_124 = !lean_is_exclusive(x_120); +if (x_124 == 0) { -return x_121; +return x_120; } else { -lean_object* x_126; lean_object* x_127; lean_object* x_128; -x_126 = lean_ctor_get(x_121, 0); -x_127 = lean_ctor_get(x_121, 1); -lean_inc(x_127); +lean_object* x_125; lean_object* x_126; lean_object* x_127; +x_125 = lean_ctor_get(x_120, 0); +x_126 = lean_ctor_get(x_120, 1); lean_inc(x_126); -lean_dec(x_121); -x_128 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_128, 0, x_126); -lean_ctor_set(x_128, 1, x_127); -return x_128; +lean_inc(x_125); +lean_dec(x_120); +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_129; -lean_dec(x_12); -lean_inc(x_8); -lean_inc(x_113); -x_129 = l_Lean_Elab_Term_inferType(x_1, x_113, x_8, x_110); -if (lean_obj_tag(x_129) == 0) +lean_object* x_128; +lean_dec(x_11); +lean_inc(x_7); +lean_inc(x_112); +x_128 = l_Lean_Elab_Term_inferType(x_112, x_7, x_109); +if (lean_obj_tag(x_128) == 0) { -lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; -x_130 = lean_ctor_get(x_129, 0); +lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; +x_129 = lean_ctor_get(x_128, 0); +lean_inc(x_129); +x_130 = lean_ctor_get(x_128, 1); lean_inc(x_130); -x_131 = lean_ctor_get(x_129, 1); -lean_inc(x_131); +lean_dec(x_128); +x_131 = lean_unsigned_to_nat(0u); +lean_inc(x_7); +lean_inc(x_1); +x_132 = l___private_Lean_Elab_App_17__addLValArg___main(x_110, x_111, x_5, x_2, x_131, x_1, x_129, x_7, x_130); lean_dec(x_129); -x_132 = lean_unsigned_to_nat(0u); -lean_inc(x_8); -lean_inc(x_2); -x_133 = l___private_Lean_Elab_App_17__addLValArg___main(x_1, x_111, x_112, x_6, x_3, x_132, x_2, x_130, x_8, x_131); -lean_dec(x_130); -if (lean_obj_tag(x_133) == 0) +if (lean_obj_tag(x_132) == 0) { -lean_object* x_134; lean_object* x_135; lean_object* x_136; -x_134 = lean_ctor_get(x_133, 0); +lean_object* x_133; lean_object* x_134; lean_object* x_135; +x_133 = lean_ctor_get(x_132, 0); +lean_inc(x_133); +x_134 = lean_ctor_get(x_132, 1); lean_inc(x_134); -x_135 = lean_ctor_get(x_133, 1); -lean_inc(x_135); -lean_dec(x_133); -x_136 = l___private_Lean_Elab_App_11__elabAppArgs(x_1, x_113, x_2, x_134, x_4, x_5, x_8, x_135); -return x_136; +lean_dec(x_132); +x_135 = l___private_Lean_Elab_App_11__elabAppArgs(x_112, x_1, x_133, x_3, x_4, x_7, x_134); +return x_135; } else { -uint8_t x_137; -lean_dec(x_113); -lean_dec(x_8); -lean_dec(x_4); -lean_dec(x_2); +uint8_t x_136; +lean_dec(x_112); +lean_dec(x_7); +lean_dec(x_3); lean_dec(x_1); -x_137 = !lean_is_exclusive(x_133); -if (x_137 == 0) +x_136 = !lean_is_exclusive(x_132); +if (x_136 == 0) { -return x_133; +return x_132; } else { -lean_object* x_138; lean_object* x_139; lean_object* x_140; -x_138 = lean_ctor_get(x_133, 0); -x_139 = lean_ctor_get(x_133, 1); -lean_inc(x_139); +lean_object* x_137; lean_object* x_138; lean_object* x_139; +x_137 = lean_ctor_get(x_132, 0); +x_138 = lean_ctor_get(x_132, 1); lean_inc(x_138); -lean_dec(x_133); -x_140 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_140, 0, x_138); -lean_ctor_set(x_140, 1, x_139); -return x_140; +lean_inc(x_137); +lean_dec(x_132); +x_139 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_139, 0, x_137); +lean_ctor_set(x_139, 1, x_138); +return x_139; } } } else { -uint8_t x_141; -lean_dec(x_113); +uint8_t x_140; lean_dec(x_112); lean_dec(x_111); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_4); +lean_dec(x_110); +lean_dec(x_7); +lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_141 = !lean_is_exclusive(x_129); -if (x_141 == 0) +x_140 = !lean_is_exclusive(x_128); +if (x_140 == 0) { -return x_129; +return x_128; } else { -lean_object* x_142; lean_object* x_143; lean_object* x_144; -x_142 = lean_ctor_get(x_129, 0); -x_143 = lean_ctor_get(x_129, 1); -lean_inc(x_143); +lean_object* x_141; lean_object* x_142; lean_object* x_143; +x_141 = lean_ctor_get(x_128, 0); +x_142 = lean_ctor_get(x_128, 1); lean_inc(x_142); -lean_dec(x_129); -x_144 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_144, 0, x_142); -lean_ctor_set(x_144, 1, x_143); -return x_144; +lean_inc(x_141); +lean_dec(x_128); +x_143 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_143, 0, x_141); +lean_ctor_set(x_143, 1, x_142); +return x_143; } } } } default: { -lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; -x_145 = lean_ctor_get(x_13, 1); +lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; +x_144 = lean_ctor_get(x_12, 1); +lean_inc(x_144); +lean_dec(x_12); +x_145 = lean_ctor_get(x_13, 0); lean_inc(x_145); -lean_dec(x_13); -x_146 = lean_ctor_get(x_14, 0); +x_146 = lean_ctor_get(x_13, 1); lean_inc(x_146); -x_147 = lean_ctor_get(x_14, 1); -lean_inc(x_147); -lean_dec(x_14); -x_148 = lean_box(0); -lean_inc(x_8); -x_149 = l_Lean_Elab_Term_mkConst(x_1, x_146, x_148, x_8, x_145); -if (lean_obj_tag(x_149) == 0) +lean_dec(x_13); +x_147 = lean_box(0); +lean_inc(x_7); +x_148 = l_Lean_Elab_Term_mkConst(x_145, x_147, x_7, x_144); +if (lean_obj_tag(x_148) == 0) { -lean_object* x_150; lean_object* x_151; uint8_t x_152; -x_150 = lean_ctor_get(x_149, 0); +lean_object* x_149; lean_object* x_150; uint8_t x_151; +x_149 = lean_ctor_get(x_148, 0); +lean_inc(x_149); +x_150 = lean_ctor_get(x_148, 1); lean_inc(x_150); -x_151 = lean_ctor_get(x_149, 1); -lean_inc(x_151); -lean_dec(x_149); -x_152 = l_List_isEmpty___rarg(x_12); -if (x_152 == 0) +lean_dec(x_148); +x_151 = l_List_isEmpty___rarg(x_11); +if (x_151 == 0) { -lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; uint8_t x_164; lean_object* x_165; -x_153 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_153, 0, x_6); -x_154 = l_List_foldlM___main___at___private_Lean_Elab_App_16__mkBaseProjections___spec__1___closed__2; -x_155 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_155, 0, x_154); -lean_ctor_set(x_155, 1, x_153); -x_156 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_156, 0, x_147); -x_157 = l___private_Lean_Elab_App_18__elabAppLValsAux___main___closed__2; -x_158 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_158, 0, x_157); -lean_ctor_set(x_158, 1, x_156); -x_159 = l_Lean_mkAppStx___closed__9; -x_160 = lean_array_push(x_159, x_155); -x_161 = lean_array_push(x_160, x_158); -x_162 = lean_box(0); -x_163 = l_Array_empty___closed__1; -x_164 = 0; -lean_inc(x_8); -lean_inc(x_1); -x_165 = l___private_Lean_Elab_App_11__elabAppArgs(x_1, x_150, x_161, x_163, x_162, x_164, x_8, x_151); -if (lean_obj_tag(x_165) == 0) +lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; uint8_t x_163; lean_object* x_164; +x_152 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_152, 0, x_5); +x_153 = l_List_foldlM___main___at___private_Lean_Elab_App_16__mkBaseProjections___spec__1___closed__2; +x_154 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_154, 0, x_153); +lean_ctor_set(x_154, 1, x_152); +x_155 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_155, 0, x_146); +x_156 = l___private_Lean_Elab_App_18__elabAppLValsAux___main___closed__2; +x_157 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_157, 0, x_156); +lean_ctor_set(x_157, 1, x_155); +x_158 = l_Lean_mkAppStx___closed__9; +x_159 = lean_array_push(x_158, x_154); +x_160 = lean_array_push(x_159, x_157); +x_161 = lean_box(0); +x_162 = l_Array_empty___closed__1; +x_163 = 0; +lean_inc(x_7); +x_164 = l___private_Lean_Elab_App_11__elabAppArgs(x_149, x_160, x_162, x_161, x_163, x_7, x_150); +if (lean_obj_tag(x_164) == 0) { -lean_object* x_166; lean_object* x_167; -x_166 = lean_ctor_get(x_165, 0); +lean_object* x_165; lean_object* x_166; +x_165 = lean_ctor_get(x_164, 0); +lean_inc(x_165); +x_166 = lean_ctor_get(x_164, 1); lean_inc(x_166); -x_167 = lean_ctor_get(x_165, 1); -lean_inc(x_167); -lean_dec(x_165); -x_6 = x_166; -x_7 = x_12; -x_9 = x_167; +lean_dec(x_164); +x_5 = x_165; +x_6 = x_11; +x_8 = x_166; goto _start; } else { -uint8_t x_169; -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_4); +uint8_t x_168; +lean_dec(x_11); +lean_dec(x_7); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_169 = !lean_is_exclusive(x_165); -if (x_169 == 0) +x_168 = !lean_is_exclusive(x_164); +if (x_168 == 0) { -return x_165; +return x_164; } else { -lean_object* x_170; lean_object* x_171; lean_object* x_172; -x_170 = lean_ctor_get(x_165, 0); -x_171 = lean_ctor_get(x_165, 1); -lean_inc(x_171); +lean_object* x_169; lean_object* x_170; lean_object* x_171; +x_169 = lean_ctor_get(x_164, 0); +x_170 = lean_ctor_get(x_164, 1); lean_inc(x_170); -lean_dec(x_165); -x_172 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_172, 0, x_170); -lean_ctor_set(x_172, 1, x_171); -return x_172; +lean_inc(x_169); +lean_dec(x_164); +x_171 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_171, 0, x_169); +lean_ctor_set(x_171, 1, x_170); +return x_171; } } } else { -lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; -lean_dec(x_12); -x_173 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_173, 0, x_6); -x_174 = l_List_foldlM___main___at___private_Lean_Elab_App_16__mkBaseProjections___spec__1___closed__2; -x_175 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_175, 0, x_174); -lean_ctor_set(x_175, 1, x_173); -lean_inc(x_8); -x_176 = l_Lean_Elab_Term_addNamedArg(x_1, x_2, x_175, x_8, x_151); -if (lean_obj_tag(x_176) == 0) +lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; +lean_dec(x_11); +x_172 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_172, 0, x_5); +x_173 = l_List_foldlM___main___at___private_Lean_Elab_App_16__mkBaseProjections___spec__1___closed__2; +x_174 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_174, 0, x_173); +lean_ctor_set(x_174, 1, x_172); +lean_inc(x_7); +x_175 = l_Lean_Elab_Term_addNamedArg(x_1, x_174, x_7, x_150); +if (lean_obj_tag(x_175) == 0) { -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_177 = lean_ctor_get(x_176, 0); +lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; +x_176 = lean_ctor_get(x_175, 0); +lean_inc(x_176); +x_177 = lean_ctor_get(x_175, 1); lean_inc(x_177); -x_178 = lean_ctor_get(x_176, 1); -lean_inc(x_178); -lean_dec(x_176); -x_179 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_179, 0, x_147); -x_180 = l___private_Lean_Elab_App_18__elabAppLValsAux___main___closed__2; -x_181 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_181, 0, x_180); -lean_ctor_set(x_181, 1, x_179); -lean_inc(x_8); -x_182 = l_Lean_Elab_Term_addNamedArg(x_1, x_177, x_181, x_8, x_178); -if (lean_obj_tag(x_182) == 0) +lean_dec(x_175); +x_178 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_178, 0, x_146); +x_179 = l___private_Lean_Elab_App_18__elabAppLValsAux___main___closed__2; +x_180 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_180, 0, x_179); +lean_ctor_set(x_180, 1, x_178); +lean_inc(x_7); +x_181 = l_Lean_Elab_Term_addNamedArg(x_176, x_180, x_7, x_177); +if (lean_obj_tag(x_181) == 0) { -lean_object* x_183; lean_object* x_184; lean_object* x_185; -x_183 = lean_ctor_get(x_182, 0); +lean_object* x_182; lean_object* x_183; lean_object* x_184; +x_182 = lean_ctor_get(x_181, 0); +lean_inc(x_182); +x_183 = lean_ctor_get(x_181, 1); lean_inc(x_183); -x_184 = lean_ctor_get(x_182, 1); -lean_inc(x_184); -lean_dec(x_182); -x_185 = l___private_Lean_Elab_App_11__elabAppArgs(x_1, x_150, x_183, x_3, x_4, x_5, x_8, x_184); -return x_185; +lean_dec(x_181); +x_184 = l___private_Lean_Elab_App_11__elabAppArgs(x_149, x_182, x_2, x_3, x_4, x_7, x_183); +return x_184; } else { -uint8_t x_186; -lean_dec(x_150); -lean_dec(x_8); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_186 = !lean_is_exclusive(x_182); -if (x_186 == 0) -{ -return x_182; -} -else -{ -lean_object* x_187; lean_object* x_188; lean_object* x_189; -x_187 = lean_ctor_get(x_182, 0); -x_188 = lean_ctor_get(x_182, 1); -lean_inc(x_188); -lean_inc(x_187); -lean_dec(x_182); -x_189 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_189, 0, x_187); -lean_ctor_set(x_189, 1, x_188); -return x_189; -} -} -} -else -{ -uint8_t x_190; -lean_dec(x_150); -lean_dec(x_147); -lean_dec(x_8); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_190 = !lean_is_exclusive(x_176); -if (x_190 == 0) -{ -return x_176; -} -else -{ -lean_object* x_191; lean_object* x_192; lean_object* x_193; -x_191 = lean_ctor_get(x_176, 0); -x_192 = lean_ctor_get(x_176, 1); -lean_inc(x_192); -lean_inc(x_191); -lean_dec(x_176); -x_193 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_193, 0, x_191); -lean_ctor_set(x_193, 1, x_192); -return x_193; -} -} -} -} -else -{ -uint8_t x_194; -lean_dec(x_147); -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_194 = !lean_is_exclusive(x_149); -if (x_194 == 0) -{ -return x_149; -} -else -{ -lean_object* x_195; lean_object* x_196; lean_object* x_197; -x_195 = lean_ctor_get(x_149, 0); -x_196 = lean_ctor_get(x_149, 1); -lean_inc(x_196); -lean_inc(x_195); +uint8_t x_185; lean_dec(x_149); -x_197 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_197, 0, x_195); -lean_ctor_set(x_197, 1, x_196); -return x_197; +lean_dec(x_7); +lean_dec(x_3); +lean_dec(x_2); +x_185 = !lean_is_exclusive(x_181); +if (x_185 == 0) +{ +return x_181; } +else +{ +lean_object* x_186; lean_object* x_187; lean_object* x_188; +x_186 = lean_ctor_get(x_181, 0); +x_187 = lean_ctor_get(x_181, 1); +lean_inc(x_187); +lean_inc(x_186); +lean_dec(x_181); +x_188 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_188, 0, x_186); +lean_ctor_set(x_188, 1, x_187); +return x_188; +} +} +} +else +{ +uint8_t x_189; +lean_dec(x_149); +lean_dec(x_146); +lean_dec(x_7); +lean_dec(x_3); +lean_dec(x_2); +x_189 = !lean_is_exclusive(x_175); +if (x_189 == 0) +{ +return x_175; +} +else +{ +lean_object* x_190; lean_object* x_191; lean_object* x_192; +x_190 = lean_ctor_get(x_175, 0); +x_191 = lean_ctor_get(x_175, 1); +lean_inc(x_191); +lean_inc(x_190); +lean_dec(x_175); +x_192 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_192, 0, x_190); +lean_ctor_set(x_192, 1, x_191); +return x_192; } } } } else { -uint8_t x_198; -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_4); +uint8_t x_193; +lean_dec(x_146); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_198 = !lean_is_exclusive(x_13); -if (x_198 == 0) +x_193 = !lean_is_exclusive(x_148); +if (x_193 == 0) { -return x_13; +return x_148; } else { -lean_object* x_199; lean_object* x_200; lean_object* x_201; -x_199 = lean_ctor_get(x_13, 0); -x_200 = lean_ctor_get(x_13, 1); -lean_inc(x_200); -lean_inc(x_199); -lean_dec(x_13); -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; +lean_object* x_194; lean_object* x_195; lean_object* x_196; +x_194 = lean_ctor_get(x_148, 0); +x_195 = lean_ctor_get(x_148, 1); +lean_inc(x_195); +lean_inc(x_194); +lean_dec(x_148); +x_196 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_196, 0, x_194); +lean_ctor_set(x_196, 1, x_195); +return x_196; } } } } } -lean_object* l___private_Lean_Elab_App_18__elabAppLValsAux___main___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: +else { -uint8_t x_10; lean_object* x_11; -x_10 = lean_unbox(x_5); +uint8_t x_197; +lean_dec(x_11); +lean_dec(x_7); lean_dec(x_5); -x_11 = l___private_Lean_Elab_App_18__elabAppLValsAux___main(x_1, x_2, x_3, x_4, x_10, x_6, x_7, x_8, x_9); -return x_11; +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_197 = !lean_is_exclusive(x_12); +if (x_197 == 0) +{ +return x_12; +} +else +{ +lean_object* x_198; lean_object* x_199; lean_object* x_200; +x_198 = lean_ctor_get(x_12, 0); +x_199 = lean_ctor_get(x_12, 1); +lean_inc(x_199); +lean_inc(x_198); +lean_dec(x_12); +x_200 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_200, 0, x_198); +lean_ctor_set(x_200, 1, x_199); +return x_200; } } -lean_object* l___private_Lean_Elab_App_18__elabAppLValsAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +} +} +} +lean_object* l___private_Lean_Elab_App_18__elabAppLValsAux___main___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_10; -x_10 = l___private_Lean_Elab_App_18__elabAppLValsAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +uint8_t x_9; lean_object* x_10; +x_9 = lean_unbox(x_4); +lean_dec(x_4); +x_10 = l___private_Lean_Elab_App_18__elabAppLValsAux___main(x_1, x_2, x_3, x_9, x_5, x_6, x_7, x_8); return x_10; } } -lean_object* l___private_Lean_Elab_App_18__elabAppLValsAux___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___private_Lean_Elab_App_18__elabAppLValsAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { -uint8_t x_10; lean_object* x_11; -x_10 = lean_unbox(x_5); -lean_dec(x_5); -x_11 = l___private_Lean_Elab_App_18__elabAppLValsAux(x_1, x_2, x_3, x_4, x_10, x_6, x_7, x_8, x_9); -return x_11; +lean_object* x_9; +x_9 = l___private_Lean_Elab_App_18__elabAppLValsAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +return x_9; +} +} +lean_object* l___private_Lean_Elab_App_18__elabAppLValsAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +uint8_t x_9; lean_object* x_10; +x_9 = lean_unbox(x_4); +lean_dec(x_4); +x_10 = l___private_Lean_Elab_App_18__elabAppLValsAux(x_1, x_2, x_3, x_9, x_5, x_6, x_7, x_8); +return x_10; } } lean_object* _init_l___private_Lean_Elab_App_19__elabAppLVals___closed__1() { @@ -13788,66 +17649,65 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_App_19__elabAppLVals(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_App_19__elabAppLVals(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8) { _start: { -uint8_t x_10; -x_10 = l_List_isEmpty___rarg(x_3); -if (x_10 == 0) +uint8_t x_9; +x_9 = l_List_isEmpty___rarg(x_2); +if (x_9 == 0) { -if (x_7 == 0) +if (x_6 == 0) { -lean_object* x_11; -x_11 = l___private_Lean_Elab_App_18__elabAppLValsAux___main(x_1, x_4, x_5, x_6, x_7, x_2, x_3, x_8, x_9); -return x_11; +lean_object* x_10; +x_10 = l___private_Lean_Elab_App_18__elabAppLValsAux___main(x_3, x_4, x_5, x_6, x_1, x_2, x_7, x_8); +return x_10; } else { -lean_object* x_12; lean_object* x_13; uint8_t x_14; -lean_dec(x_6); +lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_12 = l___private_Lean_Elab_App_19__elabAppLVals___closed__3; -x_13 = l_Lean_Elab_Term_throwError___rarg(x_1, x_12, x_8, x_9); lean_dec(x_1); -x_14 = !lean_is_exclusive(x_13); -if (x_14 == 0) +x_11 = l___private_Lean_Elab_App_19__elabAppLVals___closed__3; +x_12 = l_Lean_Elab_Term_throwError___rarg(x_11, x_7, x_8); +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) { -return x_13; +return x_12; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_13, 0); -x_16 = lean_ctor_get(x_13, 1); -lean_inc(x_16); +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_ctor_get(x_12, 1); lean_inc(x_15); -lean_dec(x_13); -x_17 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_17, 0, x_15); -lean_ctor_set(x_17, 1, x_16); +lean_inc(x_14); +lean_dec(x_12); +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* x_17; +x_17 = l___private_Lean_Elab_App_18__elabAppLValsAux___main(x_3, x_4, x_5, x_6, x_1, x_2, x_7, x_8); return x_17; } } } -else -{ -lean_object* x_18; -x_18 = l___private_Lean_Elab_App_18__elabAppLValsAux___main(x_1, x_4, x_5, x_6, x_7, x_2, x_3, x_8, x_9); -return x_18; -} -} -} -lean_object* l___private_Lean_Elab_App_19__elabAppLVals___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___private_Lean_Elab_App_19__elabAppLVals___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { -uint8_t x_10; lean_object* x_11; -x_10 = lean_unbox(x_7); -lean_dec(x_7); -x_11 = l___private_Lean_Elab_App_19__elabAppLVals(x_1, x_2, x_3, x_4, x_5, x_6, x_10, x_8, x_9); -return x_11; +uint8_t x_9; lean_object* x_10; +x_9 = lean_unbox(x_6); +lean_dec(x_6); +x_10 = l___private_Lean_Elab_App_19__elabAppLVals(x_1, x_2, x_3, x_4, x_5, x_9, x_7, x_8); +return x_10; } } lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_Elab_Term_elabExplicitUniv___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) { @@ -14002,573 +17862,704 @@ return x_12; } } } -lean_object* l_List_foldlM___main___at___private_Lean_Elab_App_20__elabAppFnId___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_List_foldlM___main___at___private_Lean_Elab_App_20__elabAppFnId___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -if (lean_obj_tag(x_8) == 0) +if (lean_obj_tag(x_7) == 0) { -lean_object* x_11; -lean_dec(x_9); -lean_dec(x_5); +lean_object* x_10; +lean_dec(x_8); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_7); -lean_ctor_set(x_11, 1, x_10); -return x_11; +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_6); +lean_ctor_set(x_10, 1, x_9); +return x_10; } else { -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_12 = lean_ctor_get(x_8, 0); +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_7, 1); lean_inc(x_12); -x_13 = lean_ctor_get(x_8, 1); +lean_dec(x_7); +x_13 = lean_ctor_get(x_11, 0); lean_inc(x_13); -lean_dec(x_8); -x_14 = lean_ctor_get(x_12, 0); +x_14 = lean_ctor_get(x_11, 1); lean_inc(x_14); -x_15 = lean_ctor_get(x_12, 1); -lean_inc(x_15); -lean_dec(x_12); -x_16 = l_List_map___main___at___private_Lean_Elab_App_20__elabAppFnId___spec__1(x_15); -lean_inc(x_2); -x_17 = l_List_append___rarg(x_16, x_2); -lean_inc(x_10); +lean_dec(x_11); +x_15 = l_List_map___main___at___private_Lean_Elab_App_20__elabAppFnId___spec__1(x_14); +lean_inc(x_1); +x_16 = l_List_append___rarg(x_15, x_1); lean_inc(x_9); -lean_inc(x_5); +lean_inc(x_8); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_1); -x_18 = l___private_Lean_Elab_App_19__elabAppLVals(x_1, x_14, x_17, x_3, x_4, x_5, x_6, x_9, x_10); -if (lean_obj_tag(x_18) == 0) -{ -uint8_t x_19; -x_19 = !lean_is_exclusive(x_18); -if (x_19 == 0) -{ -lean_object* x_20; -x_20 = lean_array_push(x_7, x_18); -x_7 = x_20; -x_8 = x_13; -goto _start; -} -else -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_22 = lean_ctor_get(x_18, 0); -x_23 = lean_ctor_get(x_18, 1); -lean_inc(x_23); -lean_inc(x_22); -lean_dec(x_18); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -x_25 = lean_array_push(x_7, x_24); -x_7 = x_25; -x_8 = x_13; -goto _start; -} -} -else -{ -lean_object* x_27; -x_27 = lean_ctor_get(x_18, 0); -lean_inc(x_27); -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) -{ -uint8_t x_29; -lean_dec(x_27); -x_29 = !lean_is_exclusive(x_18); -if (x_29 == 0) -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_18, 0); -lean_dec(x_30); -x_31 = lean_ctor_get(x_28, 0); -lean_inc(x_31); -lean_dec(x_28); -lean_ctor_set(x_18, 0, x_31); -x_32 = lean_array_push(x_7, x_18); -x_7 = x_32; -x_8 = x_13; -goto _start; -} -else -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_34 = lean_ctor_get(x_18, 1); -lean_inc(x_34); -lean_dec(x_18); -x_35 = lean_ctor_get(x_28, 0); -lean_inc(x_35); -lean_dec(x_28); -x_36 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_34); -x_37 = lean_array_push(x_7, x_36); -x_7 = x_37; -x_8 = x_13; -goto _start; -} -} -else -{ -uint8_t x_39; -lean_dec(x_13); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_39 = !lean_is_exclusive(x_18); -if (x_39 == 0) -{ -lean_object* x_40; -x_40 = lean_ctor_get(x_18, 0); -lean_dec(x_40); -return x_18; -} -else -{ -lean_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_18, 1); -lean_inc(x_41); -lean_dec(x_18); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_27); -lean_ctor_set(x_42, 1, x_41); -return x_42; -} -} -} -else -{ -uint8_t x_43; -lean_dec(x_13); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_43 = !lean_is_exclusive(x_18); -if (x_43 == 0) -{ -lean_object* x_44; lean_object* x_45; -x_44 = lean_ctor_get(x_18, 1); -lean_dec(x_44); -x_45 = lean_ctor_get(x_18, 0); -lean_dec(x_45); -lean_ctor_set(x_18, 1, x_10); -return x_18; -} -else -{ -lean_object* x_46; -lean_dec(x_18); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_27); -lean_ctor_set(x_46, 1, x_10); -return x_46; -} -} -} -} -} -} -lean_object* l_List_foldlM___main___at___private_Lean_Elab_App_20__elabAppFnId___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -if (lean_obj_tag(x_8) == 0) -{ -lean_object* x_11; -lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_7); -lean_ctor_set(x_11, 1, x_10); -return x_11; -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_12 = lean_ctor_get(x_8, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_8, 1); -lean_inc(x_13); -lean_dec(x_8); -x_14 = lean_ctor_get(x_12, 0); -lean_inc(x_14); -x_15 = lean_ctor_get(x_12, 1); -lean_inc(x_15); -lean_dec(x_12); -x_16 = l_List_map___main___at___private_Lean_Elab_App_20__elabAppFnId___spec__1(x_15); lean_inc(x_2); -x_17 = l_List_append___rarg(x_16, x_2); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_1); -x_18 = l___private_Lean_Elab_App_19__elabAppLVals(x_1, x_14, x_17, x_3, x_4, x_5, x_6, x_9, x_10); -if (lean_obj_tag(x_18) == 0) +x_17 = l___private_Lean_Elab_App_19__elabAppLVals(x_13, x_16, x_2, x_3, x_4, x_5, x_8, x_9); +if (lean_obj_tag(x_17) == 0) { -uint8_t x_19; -x_19 = !lean_is_exclusive(x_18); -if (x_19 == 0) +uint8_t x_18; +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) { -lean_object* x_20; -x_20 = lean_array_push(x_7, x_18); -x_7 = x_20; -x_8 = x_13; +lean_object* x_19; +x_19 = lean_array_push(x_6, x_17); +x_6 = x_19; +x_7 = x_12; goto _start; } else { -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_22 = lean_ctor_get(x_18, 0); -x_23 = lean_ctor_get(x_18, 1); -lean_inc(x_23); +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_17, 0); +x_22 = lean_ctor_get(x_17, 1); lean_inc(x_22); -lean_dec(x_18); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -x_25 = lean_array_push(x_7, x_24); -x_7 = x_25; -x_8 = x_13; +lean_inc(x_21); +lean_dec(x_17); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +x_24 = lean_array_push(x_6, x_23); +x_6 = x_24; +x_7 = x_12; goto _start; } } else { -lean_object* x_27; -x_27 = lean_ctor_get(x_18, 0); -lean_inc(x_27); -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) -{ -uint8_t x_29; -lean_dec(x_27); -x_29 = !lean_is_exclusive(x_18); -if (x_29 == 0) -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_18, 0); -lean_dec(x_30); -x_31 = lean_ctor_get(x_28, 0); -lean_inc(x_31); -lean_dec(x_28); -lean_ctor_set(x_18, 0, x_31); -x_32 = lean_array_push(x_7, x_18); -x_7 = x_32; -x_8 = x_13; -goto _start; -} -else -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_34 = lean_ctor_get(x_18, 1); -lean_inc(x_34); -lean_dec(x_18); -x_35 = lean_ctor_get(x_28, 0); -lean_inc(x_35); -lean_dec(x_28); -x_36 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_34); -x_37 = lean_array_push(x_7, x_36); -x_7 = x_37; -x_8 = x_13; -goto _start; -} -} -else -{ -uint8_t x_39; -lean_dec(x_13); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_39 = !lean_is_exclusive(x_18); -if (x_39 == 0) -{ -lean_object* x_40; -x_40 = lean_ctor_get(x_18, 0); -lean_dec(x_40); -return x_18; -} -else -{ -lean_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_18, 1); -lean_inc(x_41); -lean_dec(x_18); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_27); -lean_ctor_set(x_42, 1, x_41); -return x_42; -} -} -} -else -{ -uint8_t x_43; -lean_dec(x_13); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_43 = !lean_is_exclusive(x_18); -if (x_43 == 0) -{ -lean_object* x_44; lean_object* x_45; -x_44 = lean_ctor_get(x_18, 1); -lean_dec(x_44); -x_45 = lean_ctor_get(x_18, 0); -lean_dec(x_45); -lean_ctor_set(x_18, 1, x_10); -return x_18; -} -else -{ -lean_object* x_46; -lean_dec(x_18); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_27); -lean_ctor_set(x_46, 1, x_10); -return x_46; -} -} -} -} -} -} -lean_object* l___private_Lean_Elab_App_20__elabAppFnId(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, uint8_t x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -if (lean_obj_tag(x_2) == 3) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_12 = lean_ctor_get(x_2, 2); -lean_inc(x_12); -x_13 = lean_ctor_get(x_2, 3); -lean_inc(x_13); -lean_inc(x_10); -x_14 = l_Lean_Elab_Term_resolveName(x_2, x_12, x_13, x_3, x_10, x_11); -lean_dec(x_2); -if (lean_obj_tag(x_14) == 0) -{ -lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -x_16 = lean_ctor_get(x_14, 1); -lean_inc(x_16); -lean_dec(x_14); -x_17 = !lean_is_exclusive(x_10); -if (x_17 == 0) -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_18 = lean_unsigned_to_nat(0u); -x_19 = l_List_lengthAux___main___rarg(x_15, x_18); -x_20 = lean_unsigned_to_nat(1u); -x_21 = lean_nat_dec_eq(x_19, x_20); -lean_dec(x_19); -if (x_21 == 0) -{ -uint8_t x_22; lean_object* x_23; -x_22 = 0; -lean_ctor_set_uint8(x_10, sizeof(void*)*10 + 1, x_22); -x_23 = l_List_foldlM___main___at___private_Lean_Elab_App_20__elabAppFnId___spec__2(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_15, x_10, x_16); -return x_23; -} -else -{ -lean_object* x_24; -x_24 = l_List_foldlM___main___at___private_Lean_Elab_App_20__elabAppFnId___spec__3(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_15, x_10, x_16); -return x_24; -} -} -else -{ -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_34; uint8_t x_35; uint8_t x_36; uint8_t x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; -x_25 = lean_ctor_get(x_10, 0); -x_26 = lean_ctor_get(x_10, 1); -x_27 = lean_ctor_get(x_10, 2); -x_28 = lean_ctor_get(x_10, 3); -x_29 = lean_ctor_get(x_10, 4); -x_30 = lean_ctor_get(x_10, 5); -x_31 = lean_ctor_get(x_10, 6); -x_32 = lean_ctor_get(x_10, 7); -x_33 = lean_ctor_get(x_10, 8); -x_34 = lean_ctor_get(x_10, 9); -x_35 = lean_ctor_get_uint8(x_10, sizeof(void*)*10); -x_36 = lean_ctor_get_uint8(x_10, sizeof(void*)*10 + 1); -x_37 = lean_ctor_get_uint8(x_10, sizeof(void*)*10 + 2); -lean_inc(x_34); -lean_inc(x_33); -lean_inc(x_32); -lean_inc(x_31); -lean_inc(x_30); -lean_inc(x_29); -lean_inc(x_28); -lean_inc(x_27); +lean_object* x_26; +x_26 = lean_ctor_get(x_17, 0); lean_inc(x_26); -lean_inc(x_25); -lean_dec(x_10); -x_38 = lean_unsigned_to_nat(0u); -x_39 = l_List_lengthAux___main___rarg(x_15, x_38); -x_40 = lean_unsigned_to_nat(1u); -x_41 = lean_nat_dec_eq(x_39, x_40); -lean_dec(x_39); -if (x_41 == 0) +if (lean_obj_tag(x_26) == 0) { -uint8_t x_42; lean_object* x_43; lean_object* x_44; -x_42 = 0; -x_43 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_43, 0, x_25); -lean_ctor_set(x_43, 1, x_26); -lean_ctor_set(x_43, 2, x_27); -lean_ctor_set(x_43, 3, x_28); -lean_ctor_set(x_43, 4, x_29); -lean_ctor_set(x_43, 5, x_30); -lean_ctor_set(x_43, 6, x_31); -lean_ctor_set(x_43, 7, x_32); -lean_ctor_set(x_43, 8, x_33); -lean_ctor_set(x_43, 9, x_34); -lean_ctor_set_uint8(x_43, sizeof(void*)*10, x_35); -lean_ctor_set_uint8(x_43, sizeof(void*)*10 + 1, x_42); -lean_ctor_set_uint8(x_43, sizeof(void*)*10 + 2, x_37); -x_44 = l_List_foldlM___main___at___private_Lean_Elab_App_20__elabAppFnId___spec__2(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_15, x_43, x_16); -return x_44; +lean_object* x_27; +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +if (lean_obj_tag(x_27) == 0) +{ +uint8_t x_28; +lean_dec(x_26); +x_28 = !lean_is_exclusive(x_17); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_17, 0); +lean_dec(x_29); +x_30 = lean_ctor_get(x_27, 0); +lean_inc(x_30); +lean_dec(x_27); +lean_ctor_set(x_17, 0, x_30); +x_31 = lean_array_push(x_6, x_17); +x_6 = x_31; +x_7 = x_12; +goto _start; } else { -lean_object* x_45; lean_object* x_46; -x_45 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_45, 0, x_25); -lean_ctor_set(x_45, 1, x_26); -lean_ctor_set(x_45, 2, x_27); -lean_ctor_set(x_45, 3, x_28); -lean_ctor_set(x_45, 4, x_29); -lean_ctor_set(x_45, 5, x_30); -lean_ctor_set(x_45, 6, x_31); -lean_ctor_set(x_45, 7, x_32); -lean_ctor_set(x_45, 8, x_33); -lean_ctor_set(x_45, 9, x_34); -lean_ctor_set_uint8(x_45, sizeof(void*)*10, x_35); -lean_ctor_set_uint8(x_45, sizeof(void*)*10 + 1, x_36); -lean_ctor_set_uint8(x_45, sizeof(void*)*10 + 2, x_37); -x_46 = l_List_foldlM___main___at___private_Lean_Elab_App_20__elabAppFnId___spec__3(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_15, x_45, x_16); -return x_46; -} +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_33 = lean_ctor_get(x_17, 1); +lean_inc(x_33); +lean_dec(x_17); +x_34 = lean_ctor_get(x_27, 0); +lean_inc(x_34); +lean_dec(x_27); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_33); +x_36 = lean_array_push(x_6, x_35); +x_6 = x_36; +x_7 = x_12; +goto _start; } } else { -uint8_t x_47; -lean_dec(x_10); +uint8_t x_38; +lean_dec(x_12); lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_38 = !lean_is_exclusive(x_17); +if (x_38 == 0) +{ +lean_object* x_39; +x_39 = lean_ctor_get(x_17, 0); +lean_dec(x_39); +return x_17; +} +else +{ +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_17, 1); +lean_inc(x_40); +lean_dec(x_17); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_26); +lean_ctor_set(x_41, 1, x_40); +return x_41; +} +} +} +else +{ +uint8_t x_42; +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_42 = !lean_is_exclusive(x_17); +if (x_42 == 0) +{ +lean_object* x_43; lean_object* x_44; +x_43 = lean_ctor_get(x_17, 1); +lean_dec(x_43); +x_44 = lean_ctor_get(x_17, 0); +lean_dec(x_44); +lean_ctor_set(x_17, 1, x_9); +return x_17; +} +else +{ +lean_object* x_45; +lean_dec(x_17); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_26); +lean_ctor_set(x_45, 1, x_9); +return x_45; +} +} +} +} +} +} +lean_object* l_List_foldlM___main___at___private_Lean_Elab_App_20__elabAppFnId___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_10; +lean_dec(x_8); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_6); +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_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_7, 1); +lean_inc(x_12); lean_dec(x_7); +x_13 = lean_ctor_get(x_11, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_11, 1); +lean_inc(x_14); +lean_dec(x_11); +x_15 = l_List_map___main___at___private_Lean_Elab_App_20__elabAppFnId___spec__1(x_14); +lean_inc(x_1); +x_16 = l_List_append___rarg(x_15, x_1); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_17 = l___private_Lean_Elab_App_19__elabAppLVals(x_13, x_16, x_2, x_3, x_4, x_5, x_8, x_9); +if (lean_obj_tag(x_17) == 0) +{ +uint8_t x_18; +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) +{ +lean_object* x_19; +x_19 = lean_array_push(x_6, x_17); +x_6 = x_19; +x_7 = x_12; +goto _start; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_17, 0); +x_22 = lean_ctor_get(x_17, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_17); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +x_24 = lean_array_push(x_6, x_23); +x_6 = x_24; +x_7 = x_12; +goto _start; +} +} +else +{ +lean_object* x_26; +x_26 = lean_ctor_get(x_17, 0); +lean_inc(x_26); +if (lean_obj_tag(x_26) == 0) +{ +lean_object* x_27; +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +if (lean_obj_tag(x_27) == 0) +{ +uint8_t x_28; +lean_dec(x_26); +x_28 = !lean_is_exclusive(x_17); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_17, 0); +lean_dec(x_29); +x_30 = lean_ctor_get(x_27, 0); +lean_inc(x_30); +lean_dec(x_27); +lean_ctor_set(x_17, 0, x_30); +x_31 = lean_array_push(x_6, x_17); +x_6 = x_31; +x_7 = x_12; +goto _start; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_33 = lean_ctor_get(x_17, 1); +lean_inc(x_33); +lean_dec(x_17); +x_34 = lean_ctor_get(x_27, 0); +lean_inc(x_34); +lean_dec(x_27); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_33); +x_36 = lean_array_push(x_6, x_35); +x_6 = x_36; +x_7 = x_12; +goto _start; +} +} +else +{ +uint8_t x_38; +lean_dec(x_12); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_38 = !lean_is_exclusive(x_17); +if (x_38 == 0) +{ +lean_object* x_39; +x_39 = lean_ctor_get(x_17, 0); +lean_dec(x_39); +return x_17; +} +else +{ +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_17, 1); +lean_inc(x_40); +lean_dec(x_17); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_26); +lean_ctor_set(x_41, 1, x_40); +return x_41; +} +} +} +else +{ +uint8_t x_42; +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_42 = !lean_is_exclusive(x_17); +if (x_42 == 0) +{ +lean_object* x_43; lean_object* x_44; +x_43 = lean_ctor_get(x_17, 1); +lean_dec(x_43); +x_44 = lean_ctor_get(x_17, 0); +lean_dec(x_44); +lean_ctor_set(x_17, 1, x_9); +return x_17; +} +else +{ +lean_object* x_45; +lean_dec(x_17); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_26); +lean_ctor_set(x_45, 1, x_9); +return x_45; +} +} +} +} +} +} +lean_object* l___private_Lean_Elab_App_20__elabAppFnId(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +if (lean_obj_tag(x_1) == 3) +{ +lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_11 = lean_ctor_get(x_1, 2); +lean_inc(x_11); +x_12 = lean_ctor_get(x_1, 3); +lean_inc(x_12); +x_13 = !lean_is_exclusive(x_9); +if (x_13 == 0) +{ +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; lean_object* x_23; uint8_t x_24; uint8_t x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; +x_14 = lean_ctor_get(x_9, 0); +x_15 = lean_ctor_get(x_9, 1); +x_16 = lean_ctor_get(x_9, 2); +x_17 = lean_ctor_get(x_9, 3); +x_18 = lean_ctor_get(x_9, 4); +x_19 = lean_ctor_get(x_9, 5); +x_20 = lean_ctor_get(x_9, 6); +x_21 = lean_ctor_get(x_9, 7); +x_22 = lean_ctor_get(x_9, 8); +x_23 = lean_ctor_get(x_9, 9); +x_24 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_9, sizeof(void*)*11 + 1); +x_26 = lean_ctor_get_uint8(x_9, sizeof(void*)*11 + 2); +x_27 = lean_ctor_get(x_9, 10); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_ctor_set(x_9, 10, x_1); +x_28 = l_Lean_Elab_Term_resolveName(x_11, x_12, x_2, x_9, x_10); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; +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_31 = lean_unsigned_to_nat(0u); +x_32 = l_List_lengthAux___main___rarg(x_29, x_31); +x_33 = lean_unsigned_to_nat(1u); +x_34 = lean_nat_dec_eq(x_32, x_33); +lean_dec(x_32); +if (x_34 == 0) +{ +uint8_t x_35; lean_object* x_36; lean_object* x_37; +x_35 = 0; +x_36 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_36, 0, x_14); +lean_ctor_set(x_36, 1, x_15); +lean_ctor_set(x_36, 2, x_16); +lean_ctor_set(x_36, 3, x_17); +lean_ctor_set(x_36, 4, x_18); +lean_ctor_set(x_36, 5, x_19); +lean_ctor_set(x_36, 6, x_20); +lean_ctor_set(x_36, 7, x_21); +lean_ctor_set(x_36, 8, x_22); +lean_ctor_set(x_36, 9, x_23); +lean_ctor_set(x_36, 10, x_27); +lean_ctor_set_uint8(x_36, sizeof(void*)*11, x_24); +lean_ctor_set_uint8(x_36, sizeof(void*)*11 + 1, x_35); +lean_ctor_set_uint8(x_36, sizeof(void*)*11 + 2, x_26); +x_37 = l_List_foldlM___main___at___private_Lean_Elab_App_20__elabAppFnId___spec__2(x_3, x_4, x_5, x_6, x_7, x_8, x_29, x_36, x_30); +return x_37; +} +else +{ +lean_object* x_38; lean_object* x_39; +x_38 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_38, 0, x_14); +lean_ctor_set(x_38, 1, x_15); +lean_ctor_set(x_38, 2, x_16); +lean_ctor_set(x_38, 3, x_17); +lean_ctor_set(x_38, 4, x_18); +lean_ctor_set(x_38, 5, x_19); +lean_ctor_set(x_38, 6, x_20); +lean_ctor_set(x_38, 7, x_21); +lean_ctor_set(x_38, 8, x_22); +lean_ctor_set(x_38, 9, x_23); +lean_ctor_set(x_38, 10, x_27); +lean_ctor_set_uint8(x_38, sizeof(void*)*11, x_24); +lean_ctor_set_uint8(x_38, sizeof(void*)*11 + 1, x_25); +lean_ctor_set_uint8(x_38, sizeof(void*)*11 + 2, x_26); +x_39 = l_List_foldlM___main___at___private_Lean_Elab_App_20__elabAppFnId___spec__3(x_3, x_4, x_5, x_6, x_7, x_8, x_29, x_38, x_30); +return x_39; +} +} +else +{ +uint8_t x_40; +lean_dec(x_27); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_1); -x_47 = !lean_is_exclusive(x_14); -if (x_47 == 0) +lean_dec(x_3); +x_40 = !lean_is_exclusive(x_28); +if (x_40 == 0) { -return x_14; +return x_28; } else { -lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_48 = lean_ctor_get(x_14, 0); -x_49 = lean_ctor_get(x_14, 1); +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_28, 0); +x_42 = lean_ctor_get(x_28, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_28); +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 +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; uint8_t x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_44 = lean_ctor_get(x_9, 0); +x_45 = lean_ctor_get(x_9, 1); +x_46 = lean_ctor_get(x_9, 2); +x_47 = lean_ctor_get(x_9, 3); +x_48 = lean_ctor_get(x_9, 4); +x_49 = lean_ctor_get(x_9, 5); +x_50 = lean_ctor_get(x_9, 6); +x_51 = lean_ctor_get(x_9, 7); +x_52 = lean_ctor_get(x_9, 8); +x_53 = lean_ctor_get(x_9, 9); +x_54 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); +x_55 = lean_ctor_get_uint8(x_9, sizeof(void*)*11 + 1); +x_56 = lean_ctor_get_uint8(x_9, sizeof(void*)*11 + 2); +x_57 = lean_ctor_get(x_9, 10); +lean_inc(x_57); +lean_inc(x_53); +lean_inc(x_52); +lean_inc(x_51); +lean_inc(x_50); lean_inc(x_49); lean_inc(x_48); -lean_dec(x_14); -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; +lean_inc(x_47); +lean_inc(x_46); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_9); +lean_inc(x_53); +lean_inc(x_52); +lean_inc(x_51); +lean_inc(x_50); +lean_inc(x_49); +lean_inc(x_48); +lean_inc(x_47); +lean_inc(x_46); +lean_inc(x_45); +lean_inc(x_44); +x_58 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_58, 0, x_44); +lean_ctor_set(x_58, 1, x_45); +lean_ctor_set(x_58, 2, x_46); +lean_ctor_set(x_58, 3, x_47); +lean_ctor_set(x_58, 4, x_48); +lean_ctor_set(x_58, 5, x_49); +lean_ctor_set(x_58, 6, x_50); +lean_ctor_set(x_58, 7, x_51); +lean_ctor_set(x_58, 8, x_52); +lean_ctor_set(x_58, 9, x_53); +lean_ctor_set(x_58, 10, x_1); +lean_ctor_set_uint8(x_58, sizeof(void*)*11, x_54); +lean_ctor_set_uint8(x_58, sizeof(void*)*11 + 1, x_55); +lean_ctor_set_uint8(x_58, sizeof(void*)*11 + 2, x_56); +x_59 = l_Lean_Elab_Term_resolveName(x_11, x_12, x_2, x_58, x_10); +if (lean_obj_tag(x_59) == 0) +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_59, 1); +lean_inc(x_61); +lean_dec(x_59); +x_62 = lean_unsigned_to_nat(0u); +x_63 = l_List_lengthAux___main___rarg(x_60, x_62); +x_64 = lean_unsigned_to_nat(1u); +x_65 = lean_nat_dec_eq(x_63, x_64); +lean_dec(x_63); +if (x_65 == 0) +{ +uint8_t x_66; lean_object* x_67; lean_object* x_68; +x_66 = 0; +x_67 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_67, 0, x_44); +lean_ctor_set(x_67, 1, x_45); +lean_ctor_set(x_67, 2, x_46); +lean_ctor_set(x_67, 3, x_47); +lean_ctor_set(x_67, 4, x_48); +lean_ctor_set(x_67, 5, x_49); +lean_ctor_set(x_67, 6, x_50); +lean_ctor_set(x_67, 7, x_51); +lean_ctor_set(x_67, 8, x_52); +lean_ctor_set(x_67, 9, x_53); +lean_ctor_set(x_67, 10, x_57); +lean_ctor_set_uint8(x_67, sizeof(void*)*11, x_54); +lean_ctor_set_uint8(x_67, sizeof(void*)*11 + 1, x_66); +lean_ctor_set_uint8(x_67, sizeof(void*)*11 + 2, x_56); +x_68 = l_List_foldlM___main___at___private_Lean_Elab_App_20__elabAppFnId___spec__2(x_3, x_4, x_5, x_6, x_7, x_8, x_60, x_67, x_61); +return x_68; +} +else +{ +lean_object* x_69; lean_object* x_70; +x_69 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_69, 0, x_44); +lean_ctor_set(x_69, 1, x_45); +lean_ctor_set(x_69, 2, x_46); +lean_ctor_set(x_69, 3, x_47); +lean_ctor_set(x_69, 4, x_48); +lean_ctor_set(x_69, 5, x_49); +lean_ctor_set(x_69, 6, x_50); +lean_ctor_set(x_69, 7, x_51); +lean_ctor_set(x_69, 8, x_52); +lean_ctor_set(x_69, 9, x_53); +lean_ctor_set(x_69, 10, x_57); +lean_ctor_set_uint8(x_69, sizeof(void*)*11, x_54); +lean_ctor_set_uint8(x_69, sizeof(void*)*11 + 1, x_55); +lean_ctor_set_uint8(x_69, sizeof(void*)*11 + 2, x_56); +x_70 = l_List_foldlM___main___at___private_Lean_Elab_App_20__elabAppFnId___spec__3(x_3, x_4, x_5, x_6, x_7, x_8, x_60, x_69, x_61); +return x_70; +} +} +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; +lean_dec(x_57); +lean_dec(x_53); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_50); +lean_dec(x_49); +lean_dec(x_48); +lean_dec(x_47); +lean_dec(x_46); +lean_dec(x_45); +lean_dec(x_44); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_71 = lean_ctor_get(x_59, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_59, 1); +lean_inc(x_72); +if (lean_is_exclusive(x_59)) { + lean_ctor_release(x_59, 0); + lean_ctor_release(x_59, 1); + x_73 = x_59; +} else { + lean_dec_ref(x_59); + x_73 = lean_box(0); +} +if (lean_is_scalar(x_73)) { + x_74 = lean_alloc_ctor(1, 2, 0); +} else { + x_74 = x_73; +} +lean_ctor_set(x_74, 0, x_71); +lean_ctor_set(x_74, 1, x_72); +return x_74; } } } else { -lean_object* x_51; -lean_dec(x_10); +lean_object* x_75; lean_dec(x_9); -lean_dec(x_7); +lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_51 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_11); -return x_51; +x_75 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_10); +return x_75; } } } -lean_object* l_List_foldlM___main___at___private_Lean_Elab_App_20__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* l_List_foldlM___main___at___private_Lean_Elab_App_20__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) { +_start: +{ +uint8_t x_10; lean_object* x_11; +x_10 = lean_unbox(x_5); +lean_dec(x_5); +x_11 = l_List_foldlM___main___at___private_Lean_Elab_App_20__elabAppFnId___spec__2(x_1, x_2, x_3, x_4, x_10, x_6, x_7, x_8, x_9); +return x_11; +} +} +lean_object* l_List_foldlM___main___at___private_Lean_Elab_App_20__elabAppFnId___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) { +_start: +{ +uint8_t x_10; lean_object* x_11; +x_10 = lean_unbox(x_5); +lean_dec(x_5); +x_11 = l_List_foldlM___main___at___private_Lean_Elab_App_20__elabAppFnId___spec__3(x_1, x_2, x_3, x_4, x_10, x_6, x_7, x_8, x_9); +return x_11; +} +} +lean_object* l___private_Lean_Elab_App_20__elabAppFnId___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { uint8_t x_11; lean_object* x_12; -x_11 = lean_unbox(x_6); -lean_dec(x_6); -x_12 = l_List_foldlM___main___at___private_Lean_Elab_App_20__elabAppFnId___spec__2(x_1, x_2, x_3, x_4, x_5, x_11, x_7, x_8, x_9, x_10); +x_11 = lean_unbox(x_7); +lean_dec(x_7); +x_12 = l___private_Lean_Elab_App_20__elabAppFnId(x_1, x_2, x_3, x_4, x_5, x_6, x_11, x_8, x_9, x_10); return x_12; } } -lean_object* l_List_foldlM___main___at___private_Lean_Elab_App_20__elabAppFnId___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) { -_start: -{ -uint8_t x_11; lean_object* x_12; -x_11 = lean_unbox(x_6); -lean_dec(x_6); -x_12 = l_List_foldlM___main___at___private_Lean_Elab_App_20__elabAppFnId___spec__3(x_1, x_2, x_3, x_4, x_5, x_11, x_7, x_8, x_9, x_10); -return x_12; -} -} -lean_object* l___private_Lean_Elab_App_20__elabAppFnId___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: -{ -uint8_t x_12; lean_object* x_13; -x_12 = lean_unbox(x_8); -lean_dec(x_8); -x_13 = l___private_Lean_Elab_App_20__elabAppFnId(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_12, x_9, x_10, x_11); -return x_13; -} -} lean_object* l_List_map___main___at___private_Lean_Elab_App_21__elabAppFn___main___spec__1(lean_object* x_1) { _start: { @@ -14617,82 +18608,79 @@ return x_16; } } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_App_21__elabAppFn___main___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, 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* l_Array_iterateMAux___main___at___private_Lean_Elab_App_21__elabAppFn___main___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { -lean_object* x_13; uint8_t x_14; -x_13 = lean_array_get_size(x_8); -x_14 = lean_nat_dec_lt(x_9, x_13); -lean_dec(x_13); -if (x_14 == 0) +lean_object* x_12; uint8_t x_13; +x_12 = lean_array_get_size(x_7); +x_13 = lean_nat_dec_lt(x_8, x_12); +lean_dec(x_12); +if (x_13 == 0) { -lean_object* x_15; -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_6); +lean_object* x_14; +lean_dec(x_10); +lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_10); -lean_ctor_set(x_15, 1, x_12); -return x_15; +lean_dec(x_2); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_9); +lean_ctor_set(x_14, 1, x_11); +return x_14; } else { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_16 = lean_array_fget(x_8, x_9); -x_17 = lean_unsigned_to_nat(1u); -x_18 = lean_nat_add(x_9, x_17); -lean_dec(x_9); -lean_inc(x_11); -lean_inc(x_6); +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_15 = lean_array_fget(x_7, x_8); +x_16 = lean_unsigned_to_nat(1u); +x_17 = lean_nat_add(x_8, x_16); +lean_dec(x_8); +lean_inc(x_10); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_1); -x_19 = l___private_Lean_Elab_App_21__elabAppFn___main(x_1, x_16, x_3, x_4, x_5, x_6, x_7, x_10, x_11, x_12); -if (lean_obj_tag(x_19) == 0) +lean_inc(x_2); +x_18 = l___private_Lean_Elab_App_21__elabAppFn___main(x_15, x_2, x_3, x_4, x_5, x_6, x_9, x_10, x_11); +if (lean_obj_tag(x_18) == 0) { -lean_object* x_20; lean_object* x_21; -x_20 = lean_ctor_get(x_19, 0); +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); lean_inc(x_20); -x_21 = lean_ctor_get(x_19, 1); -lean_inc(x_21); -lean_dec(x_19); -x_9 = x_18; -x_10 = x_20; -x_12 = x_21; +lean_dec(x_18); +x_8 = x_17; +x_9 = x_19; +x_11 = x_20; goto _start; } else { -uint8_t x_23; -lean_dec(x_18); -lean_dec(x_11); -lean_dec(x_6); +uint8_t x_22; +lean_dec(x_17); +lean_dec(x_10); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_23 = !lean_is_exclusive(x_19); -if (x_23 == 0) +lean_dec(x_2); +x_22 = !lean_is_exclusive(x_18); +if (x_22 == 0) { -return x_19; +return x_18; } else { -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_19, 0); -x_25 = lean_ctor_get(x_19, 1); -lean_inc(x_25); +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_18, 0); +x_24 = lean_ctor_get(x_18, 1); lean_inc(x_24); -lean_dec(x_19); -x_26 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_26, 0, x_24); -lean_ctor_set(x_26, 1, x_25); -return x_26; +lean_inc(x_23); +lean_dec(x_18); +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +return x_25; } } } @@ -14726,883 +18714,880 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_App_21__elabAppFn___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l___private_Lean_Elab_App_21__elabAppFn___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -uint8_t x_11; -x_11 = l_Lean_Syntax_isIdent(x_2); -if (x_11 == 0) +uint8_t x_10; +x_10 = l_Lean_Syntax_isIdent(x_1); +if (x_10 == 0) { -lean_object* x_12; lean_object* x_13; uint8_t x_14; -lean_inc(x_2); -x_12 = l_Lean_Syntax_getKind(x_2); -x_13 = l_Lean_choiceKind; -x_14 = lean_name_eq(x_12, x_13); -lean_dec(x_12); -if (x_14 == 0) +lean_object* x_11; lean_object* x_12; uint8_t x_13; +lean_inc(x_1); +x_11 = l_Lean_Syntax_getKind(x_1); +x_12 = l_Lean_choiceKind; +x_13 = lean_name_eq(x_11, x_12); +lean_dec(x_11); +if (x_13 == 0) { -uint8_t x_15; uint8_t x_330; lean_object* x_438; uint8_t x_439; -x_438 = l_Lean_Parser_Term_proj___elambda__1___closed__2; -lean_inc(x_2); -x_439 = l_Lean_Syntax_isOfKind(x_2, x_438); -if (x_439 == 0) +uint8_t x_14; uint8_t x_329; lean_object* x_437; uint8_t x_438; +x_437 = l_Lean_Parser_Term_proj___elambda__1___closed__2; +lean_inc(x_1); +x_438 = l_Lean_Syntax_isOfKind(x_1, x_437); +if (x_438 == 0) { -uint8_t x_440; -x_440 = 0; -x_330 = x_440; -goto block_437; +uint8_t x_439; +x_439 = 0; +x_329 = x_439; +goto block_436; } else { -lean_object* x_441; lean_object* x_442; lean_object* x_443; uint8_t x_444; -x_441 = l_Lean_Syntax_getArgs(x_2); -x_442 = lean_array_get_size(x_441); +lean_object* x_440; lean_object* x_441; lean_object* x_442; uint8_t x_443; +x_440 = l_Lean_Syntax_getArgs(x_1); +x_441 = lean_array_get_size(x_440); +lean_dec(x_440); +x_442 = lean_unsigned_to_nat(3u); +x_443 = lean_nat_dec_eq(x_441, x_442); lean_dec(x_441); -x_443 = lean_unsigned_to_nat(3u); -x_444 = lean_nat_dec_eq(x_442, x_443); -lean_dec(x_442); -x_330 = x_444; -goto block_437; +x_329 = x_443; +goto block_436; } -block_329: +block_328: +{ +if (x_14 == 0) +{ +uint8_t x_15; lean_object* x_314; uint8_t x_315; +x_314 = l_Lean_mkTermIdFromIdent___closed__2; +lean_inc(x_1); +x_315 = l_Lean_Syntax_isOfKind(x_1, x_314); +if (x_315 == 0) +{ +uint8_t x_316; +x_316 = 0; +x_15 = x_316; +goto block_313; +} +else +{ +lean_object* x_317; lean_object* x_318; lean_object* x_319; uint8_t x_320; +x_317 = l_Lean_Syntax_getArgs(x_1); +x_318 = lean_array_get_size(x_317); +lean_dec(x_317); +x_319 = lean_unsigned_to_nat(2u); +x_320 = lean_nat_dec_eq(x_318, x_319); +lean_dec(x_318); +x_15 = x_320; +goto block_313; +} +block_313: { if (x_15 == 0) { -uint8_t x_16; lean_object* x_315; uint8_t x_316; -x_315 = l_Lean_mkTermIdFromIdent___closed__2; -lean_inc(x_2); -x_316 = l_Lean_Syntax_isOfKind(x_2, x_315); -if (x_316 == 0) +lean_object* x_16; uint8_t x_17; +x_16 = l_Lean_Parser_Term_explicit___elambda__1___closed__2; +lean_inc(x_1); +x_17 = l_Lean_Syntax_isOfKind(x_1, x_16); +if (x_17 == 0) { -uint8_t x_317; -x_317 = 0; -x_16 = x_317; -goto block_314; -} -else -{ -lean_object* x_318; lean_object* x_319; lean_object* x_320; uint8_t x_321; -x_318 = l_Lean_Syntax_getArgs(x_2); -x_319 = lean_array_get_size(x_318); -lean_dec(x_318); -x_320 = lean_unsigned_to_nat(2u); -x_321 = lean_nat_dec_eq(x_319, x_320); -lean_dec(x_319); -x_16 = x_321; -goto block_314; -} -block_314: -{ -if (x_16 == 0) -{ -lean_object* x_17; uint8_t x_18; -x_17 = l_Lean_Parser_Term_explicit___elambda__1___closed__2; -lean_inc(x_2); -x_18 = l_Lean_Syntax_isOfKind(x_2, x_17); -if (x_18 == 0) -{ -lean_object* x_19; uint8_t x_20; lean_object* x_21; -x_19 = lean_box(0); -x_20 = 1; -lean_inc(x_10); +lean_object* x_18; uint8_t x_19; lean_object* x_20; +x_18 = lean_box(0); +x_19 = 1; lean_inc(x_9); -x_21 = l_Lean_Elab_Term_elabTermAux___main(x_19, x_20, x_20, x_2, x_9, x_10); -if (lean_obj_tag(x_21) == 0) +lean_inc(x_8); +x_20 = l_Lean_Elab_Term_elabTerm(x_1, x_18, x_19, x_8, x_9); +if (lean_obj_tag(x_20) == 0) { -uint8_t x_22; -x_22 = !lean_is_exclusive(x_21); -if (x_22 == 0) +uint8_t x_21; +x_21 = !lean_is_exclusive(x_20); +if (x_21 == 0) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_21, 0); -x_24 = lean_ctor_get(x_21, 1); -x_25 = l___private_Lean_Elab_App_19__elabAppLVals(x_1, x_23, x_3, x_4, x_5, x_6, x_7, x_9, x_24); -if (lean_obj_tag(x_25) == 0) +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_20, 0); +x_23 = lean_ctor_get(x_20, 1); +x_24 = l___private_Lean_Elab_App_19__elabAppLVals(x_22, x_2, x_3, x_4, x_5, x_6, x_8, x_23); +if (lean_obj_tag(x_24) == 0) { -uint8_t x_26; -x_26 = !lean_is_exclusive(x_25); -if (x_26 == 0) +uint8_t x_25; +x_25 = !lean_is_exclusive(x_24); +if (x_25 == 0) { -lean_object* x_27; -x_27 = lean_array_push(x_8, x_25); -lean_ctor_set(x_21, 1, x_10); -lean_ctor_set(x_21, 0, x_27); -return x_21; +lean_object* x_26; +x_26 = lean_array_push(x_7, x_24); +lean_ctor_set(x_20, 1, x_9); +lean_ctor_set(x_20, 0, x_26); +return x_20; } else { -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_28 = lean_ctor_get(x_25, 0); -x_29 = lean_ctor_get(x_25, 1); -lean_inc(x_29); +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_27 = lean_ctor_get(x_24, 0); +x_28 = lean_ctor_get(x_24, 1); lean_inc(x_28); -lean_dec(x_25); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_28); -lean_ctor_set(x_30, 1, x_29); -x_31 = lean_array_push(x_8, x_30); -lean_ctor_set(x_21, 1, x_10); -lean_ctor_set(x_21, 0, x_31); -return x_21; +lean_inc(x_27); +lean_dec(x_24); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +x_30 = lean_array_push(x_7, x_29); +lean_ctor_set(x_20, 1, x_9); +lean_ctor_set(x_20, 0, x_30); +return x_20; } } else { +lean_object* x_31; +x_31 = lean_ctor_get(x_24, 0); +lean_inc(x_31); +if (lean_obj_tag(x_31) == 0) +{ lean_object* x_32; -x_32 = lean_ctor_get(x_25, 0); +x_32 = lean_ctor_get(x_31, 0); lean_inc(x_32); if (lean_obj_tag(x_32) == 0) { -lean_object* x_33; -x_33 = lean_ctor_get(x_32, 0); -lean_inc(x_33); -if (lean_obj_tag(x_33) == 0) +uint8_t x_33; +lean_dec(x_31); +x_33 = !lean_is_exclusive(x_24); +if (x_33 == 0) { -uint8_t x_34; +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_24, 0); +lean_dec(x_34); +x_35 = lean_ctor_get(x_32, 0); +lean_inc(x_35); lean_dec(x_32); -x_34 = !lean_is_exclusive(x_25); -if (x_34 == 0) -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_25, 0); -lean_dec(x_35); -x_36 = lean_ctor_get(x_33, 0); -lean_inc(x_36); -lean_dec(x_33); -lean_ctor_set(x_25, 0, x_36); -x_37 = lean_array_push(x_8, x_25); -lean_ctor_set(x_21, 1, x_10); -lean_ctor_set(x_21, 0, x_37); -return x_21; +lean_ctor_set(x_24, 0, x_35); +x_36 = lean_array_push(x_7, x_24); +lean_ctor_set(x_20, 1, x_9); +lean_ctor_set(x_20, 0, x_36); +return x_20; } else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_38 = lean_ctor_get(x_25, 1); +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_37 = lean_ctor_get(x_24, 1); +lean_inc(x_37); +lean_dec(x_24); +x_38 = lean_ctor_get(x_32, 0); lean_inc(x_38); -lean_dec(x_25); -x_39 = lean_ctor_get(x_33, 0); -lean_inc(x_39); -lean_dec(x_33); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_38); -x_41 = lean_array_push(x_8, x_40); -lean_ctor_set(x_21, 1, x_10); -lean_ctor_set(x_21, 0, x_41); -return x_21; +lean_dec(x_32); +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_37); +x_40 = lean_array_push(x_7, x_39); +lean_ctor_set(x_20, 1, x_9); +lean_ctor_set(x_20, 0, x_40); +return x_20; } } else { -uint8_t x_42; -lean_free_object(x_21); -lean_dec(x_10); -lean_dec(x_8); -x_42 = !lean_is_exclusive(x_25); -if (x_42 == 0) +uint8_t x_41; +lean_free_object(x_20); +lean_dec(x_9); +lean_dec(x_7); +x_41 = !lean_is_exclusive(x_24); +if (x_41 == 0) { -lean_object* x_43; -x_43 = lean_ctor_get(x_25, 0); -lean_dec(x_43); -return x_25; +lean_object* x_42; +x_42 = lean_ctor_get(x_24, 0); +lean_dec(x_42); +return x_24; } else { -lean_object* x_44; lean_object* x_45; -x_44 = lean_ctor_get(x_25, 1); -lean_inc(x_44); -lean_dec(x_25); -x_45 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_45, 0, x_32); -lean_ctor_set(x_45, 1, x_44); -return x_45; +lean_object* x_43; lean_object* x_44; +x_43 = lean_ctor_get(x_24, 1); +lean_inc(x_43); +lean_dec(x_24); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_31); +lean_ctor_set(x_44, 1, x_43); +return x_44; } } } else { -uint8_t x_46; -lean_free_object(x_21); -lean_dec(x_8); -x_46 = !lean_is_exclusive(x_25); -if (x_46 == 0) +uint8_t x_45; +lean_free_object(x_20); +lean_dec(x_7); +x_45 = !lean_is_exclusive(x_24); +if (x_45 == 0) { -lean_object* x_47; lean_object* x_48; -x_47 = lean_ctor_get(x_25, 1); +lean_object* x_46; lean_object* x_47; +x_46 = lean_ctor_get(x_24, 1); +lean_dec(x_46); +x_47 = lean_ctor_get(x_24, 0); lean_dec(x_47); -x_48 = lean_ctor_get(x_25, 0); -lean_dec(x_48); -lean_ctor_set(x_25, 1, x_10); -return x_25; +lean_ctor_set(x_24, 1, x_9); +return x_24; } else { -lean_object* x_49; -lean_dec(x_25); -x_49 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_49, 0, x_32); -lean_ctor_set(x_49, 1, x_10); -return x_49; +lean_object* x_48; +lean_dec(x_24); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_31); +lean_ctor_set(x_48, 1, x_9); +return x_48; } } } } else { -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_21, 0); -x_51 = lean_ctor_get(x_21, 1); -lean_inc(x_51); +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_20, 0); +x_50 = lean_ctor_get(x_20, 1); lean_inc(x_50); -lean_dec(x_21); -x_52 = l___private_Lean_Elab_App_19__elabAppLVals(x_1, x_50, x_3, x_4, x_5, x_6, x_7, x_9, x_51); -if (lean_obj_tag(x_52) == 0) +lean_inc(x_49); +lean_dec(x_20); +x_51 = l___private_Lean_Elab_App_19__elabAppLVals(x_49, x_2, x_3, x_4, x_5, x_6, x_8, x_50); +if (lean_obj_tag(x_51) == 0) { -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_53 = lean_ctor_get(x_52, 0); +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_52 = lean_ctor_get(x_51, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_51, 1); lean_inc(x_53); -x_54 = lean_ctor_get(x_52, 1); -lean_inc(x_54); -if (lean_is_exclusive(x_52)) { - lean_ctor_release(x_52, 0); - lean_ctor_release(x_52, 1); - x_55 = x_52; +if (lean_is_exclusive(x_51)) { + lean_ctor_release(x_51, 0); + lean_ctor_release(x_51, 1); + x_54 = x_51; } else { - lean_dec_ref(x_52); - x_55 = lean_box(0); + lean_dec_ref(x_51); + x_54 = lean_box(0); } -if (lean_is_scalar(x_55)) { - x_56 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_54)) { + x_55 = lean_alloc_ctor(0, 2, 0); } else { - x_56 = x_55; + x_55 = x_54; } -lean_ctor_set(x_56, 0, x_53); -lean_ctor_set(x_56, 1, x_54); -x_57 = lean_array_push(x_8, x_56); -x_58 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_58, 0, x_57); -lean_ctor_set(x_58, 1, x_10); -return x_58; +lean_ctor_set(x_55, 0, x_52); +lean_ctor_set(x_55, 1, x_53); +x_56 = lean_array_push(x_7, x_55); +x_57 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_57, 0, x_56); +lean_ctor_set(x_57, 1, x_9); +return x_57; } else { +lean_object* x_58; +x_58 = lean_ctor_get(x_51, 0); +lean_inc(x_58); +if (lean_obj_tag(x_58) == 0) +{ lean_object* x_59; -x_59 = lean_ctor_get(x_52, 0); +x_59 = lean_ctor_get(x_58, 0); lean_inc(x_59); if (lean_obj_tag(x_59) == 0) { -lean_object* x_60; -x_60 = lean_ctor_get(x_59, 0); +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; +lean_dec(x_58); +x_60 = lean_ctor_get(x_51, 1); lean_inc(x_60); -if (lean_obj_tag(x_60) == 0) -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +if (lean_is_exclusive(x_51)) { + lean_ctor_release(x_51, 0); + lean_ctor_release(x_51, 1); + x_61 = x_51; +} else { + lean_dec_ref(x_51); + x_61 = lean_box(0); +} +x_62 = lean_ctor_get(x_59, 0); +lean_inc(x_62); lean_dec(x_59); -x_61 = lean_ctor_get(x_52, 1); -lean_inc(x_61); -if (lean_is_exclusive(x_52)) { - lean_ctor_release(x_52, 0); - lean_ctor_release(x_52, 1); - x_62 = x_52; +if (lean_is_scalar(x_61)) { + x_63 = lean_alloc_ctor(1, 2, 0); } else { - lean_dec_ref(x_52); - x_62 = lean_box(0); + x_63 = x_61; } -x_63 = lean_ctor_get(x_60, 0); -lean_inc(x_63); -lean_dec(x_60); -if (lean_is_scalar(x_62)) { - x_64 = lean_alloc_ctor(1, 2, 0); -} else { - x_64 = x_62; -} -lean_ctor_set(x_64, 0, x_63); -lean_ctor_set(x_64, 1, x_61); -x_65 = lean_array_push(x_8, x_64); -x_66 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_66, 0, x_65); -lean_ctor_set(x_66, 1, x_10); -return x_66; +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_60); +x_64 = lean_array_push(x_7, x_63); +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_9); +return x_65; } else { -lean_object* x_67; lean_object* x_68; lean_object* x_69; -lean_dec(x_10); -lean_dec(x_8); -x_67 = lean_ctor_get(x_52, 1); -lean_inc(x_67); -if (lean_is_exclusive(x_52)) { - lean_ctor_release(x_52, 0); - lean_ctor_release(x_52, 1); - x_68 = x_52; -} else { - lean_dec_ref(x_52); - x_68 = lean_box(0); -} -if (lean_is_scalar(x_68)) { - x_69 = lean_alloc_ctor(1, 2, 0); -} else { - x_69 = x_68; -} -lean_ctor_set(x_69, 0, x_59); -lean_ctor_set(x_69, 1, x_67); -return x_69; -} -} -else -{ -lean_object* x_70; lean_object* x_71; -lean_dec(x_8); -if (lean_is_exclusive(x_52)) { - lean_ctor_release(x_52, 0); - lean_ctor_release(x_52, 1); - x_70 = x_52; -} else { - lean_dec_ref(x_52); - x_70 = lean_box(0); -} -if (lean_is_scalar(x_70)) { - x_71 = lean_alloc_ctor(1, 2, 0); -} else { - x_71 = x_70; -} -lean_ctor_set(x_71, 0, x_59); -lean_ctor_set(x_71, 1, x_10); -return x_71; -} -} -} -} -else -{ -lean_object* x_72; +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_dec(x_9); -lean_dec(x_6); +lean_dec(x_7); +x_66 = lean_ctor_get(x_51, 1); +lean_inc(x_66); +if (lean_is_exclusive(x_51)) { + lean_ctor_release(x_51, 0); + lean_ctor_release(x_51, 1); + x_67 = x_51; +} else { + lean_dec_ref(x_51); + x_67 = lean_box(0); +} +if (lean_is_scalar(x_67)) { + x_68 = lean_alloc_ctor(1, 2, 0); +} else { + x_68 = x_67; +} +lean_ctor_set(x_68, 0, x_58); +lean_ctor_set(x_68, 1, x_66); +return x_68; +} +} +else +{ +lean_object* x_69; lean_object* x_70; +lean_dec(x_7); +if (lean_is_exclusive(x_51)) { + lean_ctor_release(x_51, 0); + lean_ctor_release(x_51, 1); + x_69 = x_51; +} else { + lean_dec_ref(x_51); + x_69 = lean_box(0); +} +if (lean_is_scalar(x_69)) { + x_70 = lean_alloc_ctor(1, 2, 0); +} else { + x_70 = x_69; +} +lean_ctor_set(x_70, 0, x_58); +lean_ctor_set(x_70, 1, x_9); +return x_70; +} +} +} +} +else +{ +lean_object* x_71; +lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_72 = lean_ctor_get(x_21, 0); +lean_dec(x_2); +x_71 = lean_ctor_get(x_20, 0); +lean_inc(x_71); +if (lean_obj_tag(x_71) == 0) +{ +lean_object* x_72; +x_72 = lean_ctor_get(x_71, 0); lean_inc(x_72); if (lean_obj_tag(x_72) == 0) { -lean_object* x_73; -x_73 = lean_ctor_get(x_72, 0); -lean_inc(x_73); -if (lean_obj_tag(x_73) == 0) +uint8_t x_73; +lean_dec(x_71); +x_73 = !lean_is_exclusive(x_20); +if (x_73 == 0) { -uint8_t x_74; +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_74 = lean_ctor_get(x_20, 0); +lean_dec(x_74); +x_75 = lean_ctor_get(x_72, 0); +lean_inc(x_75); lean_dec(x_72); -x_74 = !lean_is_exclusive(x_21); -if (x_74 == 0) -{ -lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_75 = lean_ctor_get(x_21, 0); -lean_dec(x_75); -x_76 = lean_ctor_get(x_73, 0); -lean_inc(x_76); -lean_dec(x_73); -lean_ctor_set(x_21, 0, x_76); -x_77 = lean_array_push(x_8, x_21); -x_78 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_78, 0, x_77); -lean_ctor_set(x_78, 1, x_10); -return x_78; +lean_ctor_set(x_20, 0, x_75); +x_76 = lean_array_push(x_7, x_20); +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_9); +return x_77; } else { -lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_79 = lean_ctor_get(x_21, 1); +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_78 = lean_ctor_get(x_20, 1); +lean_inc(x_78); +lean_dec(x_20); +x_79 = lean_ctor_get(x_72, 0); lean_inc(x_79); -lean_dec(x_21); -x_80 = lean_ctor_get(x_73, 0); -lean_inc(x_80); -lean_dec(x_73); -x_81 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_81, 0, x_80); -lean_ctor_set(x_81, 1, x_79); -x_82 = lean_array_push(x_8, x_81); -x_83 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_83, 0, x_82); -lean_ctor_set(x_83, 1, x_10); -return x_83; +lean_dec(x_72); +x_80 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_80, 0, x_79); +lean_ctor_set(x_80, 1, x_78); +x_81 = lean_array_push(x_7, x_80); +x_82 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_82, 0, x_81); +lean_ctor_set(x_82, 1, x_9); +return x_82; } } else { -uint8_t x_84; -lean_dec(x_10); -lean_dec(x_8); -x_84 = !lean_is_exclusive(x_21); -if (x_84 == 0) +uint8_t x_83; +lean_dec(x_9); +lean_dec(x_7); +x_83 = !lean_is_exclusive(x_20); +if (x_83 == 0) { -lean_object* x_85; -x_85 = lean_ctor_get(x_21, 0); -lean_dec(x_85); -return x_21; +lean_object* x_84; +x_84 = lean_ctor_get(x_20, 0); +lean_dec(x_84); +return x_20; } else { -lean_object* x_86; lean_object* x_87; -x_86 = lean_ctor_get(x_21, 1); -lean_inc(x_86); -lean_dec(x_21); -x_87 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_87, 0, x_72); -lean_ctor_set(x_87, 1, x_86); -return x_87; +lean_object* x_85; lean_object* x_86; +x_85 = lean_ctor_get(x_20, 1); +lean_inc(x_85); +lean_dec(x_20); +x_86 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_86, 0, x_71); +lean_ctor_set(x_86, 1, x_85); +return x_86; } } } else { -uint8_t x_88; -lean_dec(x_8); -x_88 = !lean_is_exclusive(x_21); -if (x_88 == 0) +uint8_t x_87; +lean_dec(x_7); +x_87 = !lean_is_exclusive(x_20); +if (x_87 == 0) { -lean_object* x_89; lean_object* x_90; -x_89 = lean_ctor_get(x_21, 1); +lean_object* x_88; lean_object* x_89; +x_88 = lean_ctor_get(x_20, 1); +lean_dec(x_88); +x_89 = lean_ctor_get(x_20, 0); lean_dec(x_89); -x_90 = lean_ctor_get(x_21, 0); -lean_dec(x_90); -lean_ctor_set(x_21, 1, x_10); -return x_21; +lean_ctor_set(x_20, 1, x_9); +return x_20; } else { -lean_object* x_91; -lean_dec(x_21); -x_91 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_91, 0, x_72); -lean_ctor_set(x_91, 1, x_10); -return x_91; +lean_object* x_90; +lean_dec(x_20); +x_90 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_90, 0, x_71); +lean_ctor_set(x_90, 1, x_9); +return x_90; } } } } else { -lean_object* x_92; lean_object* x_93; lean_object* x_94; uint8_t x_95; -x_92 = l_Lean_Syntax_getArgs(x_2); -x_93 = lean_array_get_size(x_92); +lean_object* x_91; lean_object* x_92; lean_object* x_93; uint8_t x_94; +x_91 = l_Lean_Syntax_getArgs(x_1); +x_92 = lean_array_get_size(x_91); +lean_dec(x_91); +x_93 = lean_unsigned_to_nat(2u); +x_94 = lean_nat_dec_eq(x_92, x_93); lean_dec(x_92); -x_94 = lean_unsigned_to_nat(2u); -x_95 = lean_nat_dec_eq(x_93, x_94); -lean_dec(x_93); -if (x_95 == 0) +if (x_94 == 0) { -lean_object* x_96; uint8_t x_97; lean_object* x_98; -x_96 = lean_box(0); -x_97 = 1; -lean_inc(x_10); +lean_object* x_95; uint8_t x_96; lean_object* x_97; +x_95 = lean_box(0); +x_96 = 1; lean_inc(x_9); -x_98 = l_Lean_Elab_Term_elabTermAux___main(x_96, x_97, x_97, x_2, x_9, x_10); -if (lean_obj_tag(x_98) == 0) +lean_inc(x_8); +x_97 = l_Lean_Elab_Term_elabTerm(x_1, x_95, x_96, x_8, x_9); +if (lean_obj_tag(x_97) == 0) { -uint8_t x_99; -x_99 = !lean_is_exclusive(x_98); -if (x_99 == 0) +uint8_t x_98; +x_98 = !lean_is_exclusive(x_97); +if (x_98 == 0) { -lean_object* x_100; lean_object* x_101; lean_object* x_102; -x_100 = lean_ctor_get(x_98, 0); -x_101 = lean_ctor_get(x_98, 1); -x_102 = l___private_Lean_Elab_App_19__elabAppLVals(x_1, x_100, x_3, x_4, x_5, x_6, x_7, x_9, x_101); -if (lean_obj_tag(x_102) == 0) +lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_99 = lean_ctor_get(x_97, 0); +x_100 = lean_ctor_get(x_97, 1); +x_101 = l___private_Lean_Elab_App_19__elabAppLVals(x_99, x_2, x_3, x_4, x_5, x_6, x_8, x_100); +if (lean_obj_tag(x_101) == 0) { -uint8_t x_103; -x_103 = !lean_is_exclusive(x_102); -if (x_103 == 0) +uint8_t x_102; +x_102 = !lean_is_exclusive(x_101); +if (x_102 == 0) { -lean_object* x_104; -x_104 = lean_array_push(x_8, x_102); -lean_ctor_set(x_98, 1, x_10); -lean_ctor_set(x_98, 0, x_104); -return x_98; +lean_object* x_103; +x_103 = lean_array_push(x_7, x_101); +lean_ctor_set(x_97, 1, x_9); +lean_ctor_set(x_97, 0, x_103); +return x_97; } else { -lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_105 = lean_ctor_get(x_102, 0); -x_106 = lean_ctor_get(x_102, 1); -lean_inc(x_106); +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; +x_104 = lean_ctor_get(x_101, 0); +x_105 = lean_ctor_get(x_101, 1); lean_inc(x_105); -lean_dec(x_102); -x_107 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_107, 0, x_105); -lean_ctor_set(x_107, 1, x_106); -x_108 = lean_array_push(x_8, x_107); -lean_ctor_set(x_98, 1, x_10); -lean_ctor_set(x_98, 0, x_108); -return x_98; +lean_inc(x_104); +lean_dec(x_101); +x_106 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_106, 0, x_104); +lean_ctor_set(x_106, 1, x_105); +x_107 = lean_array_push(x_7, x_106); +lean_ctor_set(x_97, 1, x_9); +lean_ctor_set(x_97, 0, x_107); +return x_97; } } else { +lean_object* x_108; +x_108 = lean_ctor_get(x_101, 0); +lean_inc(x_108); +if (lean_obj_tag(x_108) == 0) +{ lean_object* x_109; -x_109 = lean_ctor_get(x_102, 0); +x_109 = lean_ctor_get(x_108, 0); lean_inc(x_109); if (lean_obj_tag(x_109) == 0) { -lean_object* x_110; -x_110 = lean_ctor_get(x_109, 0); -lean_inc(x_110); -if (lean_obj_tag(x_110) == 0) +uint8_t x_110; +lean_dec(x_108); +x_110 = !lean_is_exclusive(x_101); +if (x_110 == 0) { -uint8_t x_111; +lean_object* x_111; lean_object* x_112; lean_object* x_113; +x_111 = lean_ctor_get(x_101, 0); +lean_dec(x_111); +x_112 = lean_ctor_get(x_109, 0); +lean_inc(x_112); lean_dec(x_109); -x_111 = !lean_is_exclusive(x_102); -if (x_111 == 0) -{ -lean_object* x_112; lean_object* x_113; lean_object* x_114; -x_112 = lean_ctor_get(x_102, 0); -lean_dec(x_112); -x_113 = lean_ctor_get(x_110, 0); -lean_inc(x_113); -lean_dec(x_110); -lean_ctor_set(x_102, 0, x_113); -x_114 = lean_array_push(x_8, x_102); -lean_ctor_set(x_98, 1, x_10); -lean_ctor_set(x_98, 0, x_114); -return x_98; +lean_ctor_set(x_101, 0, x_112); +x_113 = lean_array_push(x_7, x_101); +lean_ctor_set(x_97, 1, x_9); +lean_ctor_set(x_97, 0, x_113); +return x_97; } else { -lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; -x_115 = lean_ctor_get(x_102, 1); +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_114 = lean_ctor_get(x_101, 1); +lean_inc(x_114); +lean_dec(x_101); +x_115 = lean_ctor_get(x_109, 0); lean_inc(x_115); -lean_dec(x_102); -x_116 = lean_ctor_get(x_110, 0); -lean_inc(x_116); -lean_dec(x_110); -x_117 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_117, 0, x_116); -lean_ctor_set(x_117, 1, x_115); -x_118 = lean_array_push(x_8, x_117); -lean_ctor_set(x_98, 1, x_10); -lean_ctor_set(x_98, 0, x_118); -return x_98; +lean_dec(x_109); +x_116 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_116, 0, x_115); +lean_ctor_set(x_116, 1, x_114); +x_117 = lean_array_push(x_7, x_116); +lean_ctor_set(x_97, 1, x_9); +lean_ctor_set(x_97, 0, x_117); +return x_97; } } else { -uint8_t x_119; -lean_free_object(x_98); -lean_dec(x_10); -lean_dec(x_8); -x_119 = !lean_is_exclusive(x_102); -if (x_119 == 0) +uint8_t x_118; +lean_free_object(x_97); +lean_dec(x_9); +lean_dec(x_7); +x_118 = !lean_is_exclusive(x_101); +if (x_118 == 0) { -lean_object* x_120; -x_120 = lean_ctor_get(x_102, 0); -lean_dec(x_120); -return x_102; +lean_object* x_119; +x_119 = lean_ctor_get(x_101, 0); +lean_dec(x_119); +return x_101; } else { -lean_object* x_121; lean_object* x_122; -x_121 = lean_ctor_get(x_102, 1); -lean_inc(x_121); -lean_dec(x_102); -x_122 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_122, 0, x_109); -lean_ctor_set(x_122, 1, x_121); -return x_122; +lean_object* x_120; lean_object* x_121; +x_120 = lean_ctor_get(x_101, 1); +lean_inc(x_120); +lean_dec(x_101); +x_121 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_121, 0, x_108); +lean_ctor_set(x_121, 1, x_120); +return x_121; } } } else { -uint8_t x_123; -lean_free_object(x_98); -lean_dec(x_8); -x_123 = !lean_is_exclusive(x_102); -if (x_123 == 0) +uint8_t x_122; +lean_free_object(x_97); +lean_dec(x_7); +x_122 = !lean_is_exclusive(x_101); +if (x_122 == 0) { -lean_object* x_124; lean_object* x_125; -x_124 = lean_ctor_get(x_102, 1); +lean_object* x_123; lean_object* x_124; +x_123 = lean_ctor_get(x_101, 1); +lean_dec(x_123); +x_124 = lean_ctor_get(x_101, 0); lean_dec(x_124); -x_125 = lean_ctor_get(x_102, 0); -lean_dec(x_125); -lean_ctor_set(x_102, 1, x_10); -return x_102; +lean_ctor_set(x_101, 1, x_9); +return x_101; } else { -lean_object* x_126; -lean_dec(x_102); -x_126 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_126, 0, x_109); -lean_ctor_set(x_126, 1, x_10); -return x_126; +lean_object* x_125; +lean_dec(x_101); +x_125 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_125, 0, x_108); +lean_ctor_set(x_125, 1, x_9); +return x_125; } } } } else { -lean_object* x_127; lean_object* x_128; lean_object* x_129; -x_127 = lean_ctor_get(x_98, 0); -x_128 = lean_ctor_get(x_98, 1); -lean_inc(x_128); +lean_object* x_126; lean_object* x_127; lean_object* x_128; +x_126 = lean_ctor_get(x_97, 0); +x_127 = lean_ctor_get(x_97, 1); lean_inc(x_127); -lean_dec(x_98); -x_129 = l___private_Lean_Elab_App_19__elabAppLVals(x_1, x_127, x_3, x_4, x_5, x_6, x_7, x_9, x_128); -if (lean_obj_tag(x_129) == 0) +lean_inc(x_126); +lean_dec(x_97); +x_128 = l___private_Lean_Elab_App_19__elabAppLVals(x_126, x_2, x_3, x_4, x_5, x_6, x_8, x_127); +if (lean_obj_tag(x_128) == 0) { -lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; -x_130 = lean_ctor_get(x_129, 0); +lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_129 = lean_ctor_get(x_128, 0); +lean_inc(x_129); +x_130 = lean_ctor_get(x_128, 1); lean_inc(x_130); -x_131 = lean_ctor_get(x_129, 1); -lean_inc(x_131); -if (lean_is_exclusive(x_129)) { - lean_ctor_release(x_129, 0); - lean_ctor_release(x_129, 1); - x_132 = x_129; +if (lean_is_exclusive(x_128)) { + lean_ctor_release(x_128, 0); + lean_ctor_release(x_128, 1); + x_131 = x_128; } else { - lean_dec_ref(x_129); - x_132 = lean_box(0); + lean_dec_ref(x_128); + x_131 = lean_box(0); } -if (lean_is_scalar(x_132)) { - x_133 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_131)) { + x_132 = lean_alloc_ctor(0, 2, 0); } else { - x_133 = x_132; + x_132 = x_131; } -lean_ctor_set(x_133, 0, x_130); -lean_ctor_set(x_133, 1, x_131); -x_134 = lean_array_push(x_8, x_133); -x_135 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_135, 0, x_134); -lean_ctor_set(x_135, 1, x_10); -return x_135; +lean_ctor_set(x_132, 0, x_129); +lean_ctor_set(x_132, 1, x_130); +x_133 = lean_array_push(x_7, x_132); +x_134 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 1, x_9); +return x_134; } else { +lean_object* x_135; +x_135 = lean_ctor_get(x_128, 0); +lean_inc(x_135); +if (lean_obj_tag(x_135) == 0) +{ lean_object* x_136; -x_136 = lean_ctor_get(x_129, 0); +x_136 = lean_ctor_get(x_135, 0); lean_inc(x_136); if (lean_obj_tag(x_136) == 0) { -lean_object* x_137; -x_137 = lean_ctor_get(x_136, 0); +lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; +lean_dec(x_135); +x_137 = lean_ctor_get(x_128, 1); lean_inc(x_137); -if (lean_obj_tag(x_137) == 0) -{ -lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; +if (lean_is_exclusive(x_128)) { + lean_ctor_release(x_128, 0); + lean_ctor_release(x_128, 1); + x_138 = x_128; +} else { + lean_dec_ref(x_128); + x_138 = lean_box(0); +} +x_139 = lean_ctor_get(x_136, 0); +lean_inc(x_139); lean_dec(x_136); -x_138 = lean_ctor_get(x_129, 1); -lean_inc(x_138); -if (lean_is_exclusive(x_129)) { - lean_ctor_release(x_129, 0); - lean_ctor_release(x_129, 1); - x_139 = x_129; +if (lean_is_scalar(x_138)) { + x_140 = lean_alloc_ctor(1, 2, 0); } else { - lean_dec_ref(x_129); - x_139 = lean_box(0); + x_140 = x_138; } -x_140 = lean_ctor_get(x_137, 0); -lean_inc(x_140); -lean_dec(x_137); -if (lean_is_scalar(x_139)) { - x_141 = lean_alloc_ctor(1, 2, 0); -} else { - x_141 = x_139; -} -lean_ctor_set(x_141, 0, x_140); -lean_ctor_set(x_141, 1, x_138); -x_142 = lean_array_push(x_8, x_141); -x_143 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_143, 0, x_142); -lean_ctor_set(x_143, 1, x_10); -return x_143; +lean_ctor_set(x_140, 0, x_139); +lean_ctor_set(x_140, 1, x_137); +x_141 = lean_array_push(x_7, x_140); +x_142 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_142, 0, x_141); +lean_ctor_set(x_142, 1, x_9); +return x_142; } else { -lean_object* x_144; lean_object* x_145; lean_object* x_146; -lean_dec(x_10); -lean_dec(x_8); -x_144 = lean_ctor_get(x_129, 1); -lean_inc(x_144); -if (lean_is_exclusive(x_129)) { - lean_ctor_release(x_129, 0); - lean_ctor_release(x_129, 1); - x_145 = x_129; -} else { - lean_dec_ref(x_129); - x_145 = lean_box(0); -} -if (lean_is_scalar(x_145)) { - x_146 = lean_alloc_ctor(1, 2, 0); -} else { - x_146 = x_145; -} -lean_ctor_set(x_146, 0, x_136); -lean_ctor_set(x_146, 1, x_144); -return x_146; -} -} -else -{ -lean_object* x_147; lean_object* x_148; -lean_dec(x_8); -if (lean_is_exclusive(x_129)) { - lean_ctor_release(x_129, 0); - lean_ctor_release(x_129, 1); - x_147 = x_129; -} else { - lean_dec_ref(x_129); - x_147 = lean_box(0); -} -if (lean_is_scalar(x_147)) { - x_148 = lean_alloc_ctor(1, 2, 0); -} else { - x_148 = x_147; -} -lean_ctor_set(x_148, 0, x_136); -lean_ctor_set(x_148, 1, x_10); -return x_148; -} -} -} -} -else -{ -lean_object* x_149; +lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_dec(x_9); -lean_dec(x_6); +lean_dec(x_7); +x_143 = lean_ctor_get(x_128, 1); +lean_inc(x_143); +if (lean_is_exclusive(x_128)) { + lean_ctor_release(x_128, 0); + lean_ctor_release(x_128, 1); + x_144 = x_128; +} else { + lean_dec_ref(x_128); + x_144 = lean_box(0); +} +if (lean_is_scalar(x_144)) { + x_145 = lean_alloc_ctor(1, 2, 0); +} else { + x_145 = x_144; +} +lean_ctor_set(x_145, 0, x_135); +lean_ctor_set(x_145, 1, x_143); +return x_145; +} +} +else +{ +lean_object* x_146; lean_object* x_147; +lean_dec(x_7); +if (lean_is_exclusive(x_128)) { + lean_ctor_release(x_128, 0); + lean_ctor_release(x_128, 1); + x_146 = x_128; +} else { + lean_dec_ref(x_128); + x_146 = lean_box(0); +} +if (lean_is_scalar(x_146)) { + x_147 = lean_alloc_ctor(1, 2, 0); +} else { + x_147 = x_146; +} +lean_ctor_set(x_147, 0, x_135); +lean_ctor_set(x_147, 1, x_9); +return x_147; +} +} +} +} +else +{ +lean_object* x_148; +lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_149 = lean_ctor_get(x_98, 0); +lean_dec(x_2); +x_148 = lean_ctor_get(x_97, 0); +lean_inc(x_148); +if (lean_obj_tag(x_148) == 0) +{ +lean_object* x_149; +x_149 = lean_ctor_get(x_148, 0); lean_inc(x_149); 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) +uint8_t x_150; +lean_dec(x_148); +x_150 = !lean_is_exclusive(x_97); +if (x_150 == 0) { -uint8_t x_151; +lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; +x_151 = lean_ctor_get(x_97, 0); +lean_dec(x_151); +x_152 = lean_ctor_get(x_149, 0); +lean_inc(x_152); lean_dec(x_149); -x_151 = !lean_is_exclusive(x_98); -if (x_151 == 0) -{ -lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; -x_152 = lean_ctor_get(x_98, 0); -lean_dec(x_152); -x_153 = lean_ctor_get(x_150, 0); -lean_inc(x_153); -lean_dec(x_150); -lean_ctor_set(x_98, 0, x_153); -x_154 = lean_array_push(x_8, x_98); -x_155 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_155, 0, x_154); -lean_ctor_set(x_155, 1, x_10); -return x_155; +lean_ctor_set(x_97, 0, x_152); +x_153 = lean_array_push(x_7, x_97); +x_154 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_154, 0, x_153); +lean_ctor_set(x_154, 1, x_9); +return x_154; } else { -lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; -x_156 = lean_ctor_get(x_98, 1); +lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; +x_155 = lean_ctor_get(x_97, 1); +lean_inc(x_155); +lean_dec(x_97); +x_156 = lean_ctor_get(x_149, 0); lean_inc(x_156); -lean_dec(x_98); -x_157 = lean_ctor_get(x_150, 0); -lean_inc(x_157); -lean_dec(x_150); -x_158 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_158, 0, x_157); -lean_ctor_set(x_158, 1, x_156); -x_159 = lean_array_push(x_8, x_158); -x_160 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_160, 0, x_159); -lean_ctor_set(x_160, 1, x_10); -return x_160; +lean_dec(x_149); +x_157 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_157, 0, x_156); +lean_ctor_set(x_157, 1, x_155); +x_158 = lean_array_push(x_7, x_157); +x_159 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_159, 0, x_158); +lean_ctor_set(x_159, 1, x_9); +return x_159; } } else { -uint8_t x_161; -lean_dec(x_10); -lean_dec(x_8); -x_161 = !lean_is_exclusive(x_98); -if (x_161 == 0) -{ -lean_object* x_162; -x_162 = lean_ctor_get(x_98, 0); -lean_dec(x_162); -return x_98; -} -else -{ -lean_object* x_163; lean_object* x_164; -x_163 = lean_ctor_get(x_98, 1); -lean_inc(x_163); -lean_dec(x_98); -x_164 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_164, 0, x_149); -lean_ctor_set(x_164, 1, x_163); -return x_164; -} -} -} -else -{ -uint8_t x_165; -lean_dec(x_8); -x_165 = !lean_is_exclusive(x_98); -if (x_165 == 0) -{ -lean_object* x_166; lean_object* x_167; -x_166 = lean_ctor_get(x_98, 1); -lean_dec(x_166); -x_167 = lean_ctor_get(x_98, 0); -lean_dec(x_167); -lean_ctor_set(x_98, 1, x_10); -return x_98; -} -else -{ -lean_object* x_168; -lean_dec(x_98); -x_168 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_168, 0, x_149); -lean_ctor_set(x_168, 1, x_10); -return x_168; -} -} -} -} -else -{ -lean_object* x_169; lean_object* x_170; lean_object* x_171; uint8_t x_172; -x_169 = lean_unsigned_to_nat(1u); -x_170 = l_Lean_Syntax_getArg(x_2, x_169); -lean_dec(x_2); -x_171 = l_Lean_mkTermIdFromIdent___closed__2; -lean_inc(x_170); -x_172 = l_Lean_Syntax_isOfKind(x_170, x_171); -if (x_172 == 0) -{ -lean_object* x_173; -lean_dec(x_170); +uint8_t x_160; lean_dec(x_9); +lean_dec(x_7); +x_160 = !lean_is_exclusive(x_97); +if (x_160 == 0) +{ +lean_object* x_161; +x_161 = lean_ctor_get(x_97, 0); +lean_dec(x_161); +return x_97; +} +else +{ +lean_object* x_162; lean_object* x_163; +x_162 = lean_ctor_get(x_97, 1); +lean_inc(x_162); +lean_dec(x_97); +x_163 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_163, 0, x_148); +lean_ctor_set(x_163, 1, x_162); +return x_163; +} +} +} +else +{ +uint8_t x_164; +lean_dec(x_7); +x_164 = !lean_is_exclusive(x_97); +if (x_164 == 0) +{ +lean_object* x_165; lean_object* x_166; +x_165 = lean_ctor_get(x_97, 1); +lean_dec(x_165); +x_166 = lean_ctor_get(x_97, 0); +lean_dec(x_166); +lean_ctor_set(x_97, 1, x_9); +return x_97; +} +else +{ +lean_object* x_167; +lean_dec(x_97); +x_167 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_167, 0, x_148); +lean_ctor_set(x_167, 1, x_9); +return x_167; +} +} +} +} +else +{ +lean_object* x_168; lean_object* x_169; lean_object* x_170; uint8_t x_171; +x_168 = lean_unsigned_to_nat(1u); +x_169 = l_Lean_Syntax_getArg(x_1, x_168); +lean_dec(x_1); +x_170 = l_Lean_mkTermIdFromIdent___closed__2; +lean_inc(x_169); +x_171 = l_Lean_Syntax_isOfKind(x_169, x_170); +if (x_171 == 0) +{ +lean_object* x_172; +lean_dec(x_169); lean_dec(x_8); -lean_dec(x_6); +lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_173 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_10); -return x_173; +lean_dec(x_2); +x_172 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_9); +return x_172; } else { -uint8_t x_174; -x_174 = 1; -x_2 = x_170; -x_7 = x_174; +uint8_t x_173; +x_173 = 1; +x_1 = x_169; +x_6 = x_173; goto _start; } } @@ -15610,1158 +19595,1152 @@ goto _start; } else { -lean_object* x_176; lean_object* x_177; lean_object* x_178; uint8_t x_179; -x_176 = lean_unsigned_to_nat(0u); -x_177 = l_Lean_Syntax_getArg(x_2, x_176); -x_178 = l_Lean_identKind___closed__2; -lean_inc(x_177); -x_179 = l_Lean_Syntax_isOfKind(x_177, x_178); -if (x_179 == 0) +lean_object* x_175; lean_object* x_176; lean_object* x_177; uint8_t x_178; +x_175 = lean_unsigned_to_nat(0u); +x_176 = l_Lean_Syntax_getArg(x_1, x_175); +x_177 = l_Lean_identKind___closed__2; +lean_inc(x_176); +x_178 = l_Lean_Syntax_isOfKind(x_176, x_177); +if (x_178 == 0) { -lean_object* x_180; uint8_t x_181; lean_object* x_182; -lean_dec(x_177); -x_180 = lean_box(0); -x_181 = 1; -lean_inc(x_10); +lean_object* x_179; uint8_t x_180; lean_object* x_181; +lean_dec(x_176); +x_179 = lean_box(0); +x_180 = 1; lean_inc(x_9); -x_182 = l_Lean_Elab_Term_elabTermAux___main(x_180, x_181, x_181, x_2, x_9, x_10); -if (lean_obj_tag(x_182) == 0) +lean_inc(x_8); +x_181 = l_Lean_Elab_Term_elabTerm(x_1, x_179, x_180, x_8, x_9); +if (lean_obj_tag(x_181) == 0) { -uint8_t x_183; -x_183 = !lean_is_exclusive(x_182); -if (x_183 == 0) +uint8_t x_182; +x_182 = !lean_is_exclusive(x_181); +if (x_182 == 0) { -lean_object* x_184; lean_object* x_185; lean_object* x_186; -x_184 = lean_ctor_get(x_182, 0); -x_185 = lean_ctor_get(x_182, 1); -x_186 = l___private_Lean_Elab_App_19__elabAppLVals(x_1, x_184, x_3, x_4, x_5, x_6, x_7, x_9, x_185); -if (lean_obj_tag(x_186) == 0) +lean_object* x_183; lean_object* x_184; lean_object* x_185; +x_183 = lean_ctor_get(x_181, 0); +x_184 = lean_ctor_get(x_181, 1); +x_185 = l___private_Lean_Elab_App_19__elabAppLVals(x_183, x_2, x_3, x_4, x_5, x_6, x_8, x_184); +if (lean_obj_tag(x_185) == 0) { -uint8_t x_187; -x_187 = !lean_is_exclusive(x_186); -if (x_187 == 0) +uint8_t x_186; +x_186 = !lean_is_exclusive(x_185); +if (x_186 == 0) { -lean_object* x_188; -x_188 = lean_array_push(x_8, x_186); -lean_ctor_set(x_182, 1, x_10); -lean_ctor_set(x_182, 0, x_188); -return x_182; +lean_object* x_187; +x_187 = lean_array_push(x_7, x_185); +lean_ctor_set(x_181, 1, x_9); +lean_ctor_set(x_181, 0, x_187); +return x_181; } else { -lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; -x_189 = lean_ctor_get(x_186, 0); -x_190 = lean_ctor_get(x_186, 1); -lean_inc(x_190); +lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; +x_188 = lean_ctor_get(x_185, 0); +x_189 = lean_ctor_get(x_185, 1); lean_inc(x_189); -lean_dec(x_186); -x_191 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_191, 0, x_189); -lean_ctor_set(x_191, 1, x_190); -x_192 = lean_array_push(x_8, x_191); -lean_ctor_set(x_182, 1, x_10); -lean_ctor_set(x_182, 0, x_192); -return x_182; +lean_inc(x_188); +lean_dec(x_185); +x_190 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_190, 0, x_188); +lean_ctor_set(x_190, 1, x_189); +x_191 = lean_array_push(x_7, x_190); +lean_ctor_set(x_181, 1, x_9); +lean_ctor_set(x_181, 0, x_191); +return x_181; } } else { +lean_object* x_192; +x_192 = lean_ctor_get(x_185, 0); +lean_inc(x_192); +if (lean_obj_tag(x_192) == 0) +{ lean_object* x_193; -x_193 = lean_ctor_get(x_186, 0); +x_193 = lean_ctor_get(x_192, 0); lean_inc(x_193); if (lean_obj_tag(x_193) == 0) { -lean_object* x_194; -x_194 = lean_ctor_get(x_193, 0); -lean_inc(x_194); -if (lean_obj_tag(x_194) == 0) +uint8_t x_194; +lean_dec(x_192); +x_194 = !lean_is_exclusive(x_185); +if (x_194 == 0) { -uint8_t x_195; +lean_object* x_195; lean_object* x_196; lean_object* x_197; +x_195 = lean_ctor_get(x_185, 0); +lean_dec(x_195); +x_196 = lean_ctor_get(x_193, 0); +lean_inc(x_196); lean_dec(x_193); -x_195 = !lean_is_exclusive(x_186); -if (x_195 == 0) -{ -lean_object* x_196; lean_object* x_197; lean_object* x_198; -x_196 = lean_ctor_get(x_186, 0); -lean_dec(x_196); -x_197 = lean_ctor_get(x_194, 0); -lean_inc(x_197); -lean_dec(x_194); -lean_ctor_set(x_186, 0, x_197); -x_198 = lean_array_push(x_8, x_186); -lean_ctor_set(x_182, 1, x_10); -lean_ctor_set(x_182, 0, x_198); -return x_182; +lean_ctor_set(x_185, 0, x_196); +x_197 = lean_array_push(x_7, x_185); +lean_ctor_set(x_181, 1, x_9); +lean_ctor_set(x_181, 0, x_197); +return x_181; } else { -lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; -x_199 = lean_ctor_get(x_186, 1); +lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; +x_198 = lean_ctor_get(x_185, 1); +lean_inc(x_198); +lean_dec(x_185); +x_199 = lean_ctor_get(x_193, 0); lean_inc(x_199); -lean_dec(x_186); -x_200 = lean_ctor_get(x_194, 0); -lean_inc(x_200); -lean_dec(x_194); -x_201 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_201, 0, x_200); -lean_ctor_set(x_201, 1, x_199); -x_202 = lean_array_push(x_8, x_201); -lean_ctor_set(x_182, 1, x_10); -lean_ctor_set(x_182, 0, x_202); -return x_182; +lean_dec(x_193); +x_200 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_200, 0, x_199); +lean_ctor_set(x_200, 1, x_198); +x_201 = lean_array_push(x_7, x_200); +lean_ctor_set(x_181, 1, x_9); +lean_ctor_set(x_181, 0, x_201); +return x_181; } } else { -uint8_t x_203; -lean_free_object(x_182); -lean_dec(x_10); -lean_dec(x_8); -x_203 = !lean_is_exclusive(x_186); -if (x_203 == 0) +uint8_t x_202; +lean_free_object(x_181); +lean_dec(x_9); +lean_dec(x_7); +x_202 = !lean_is_exclusive(x_185); +if (x_202 == 0) { -lean_object* x_204; -x_204 = lean_ctor_get(x_186, 0); -lean_dec(x_204); -return x_186; +lean_object* x_203; +x_203 = lean_ctor_get(x_185, 0); +lean_dec(x_203); +return x_185; } else { -lean_object* x_205; lean_object* x_206; -x_205 = lean_ctor_get(x_186, 1); -lean_inc(x_205); -lean_dec(x_186); -x_206 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_206, 0, x_193); -lean_ctor_set(x_206, 1, x_205); -return x_206; +lean_object* x_204; lean_object* x_205; +x_204 = lean_ctor_get(x_185, 1); +lean_inc(x_204); +lean_dec(x_185); +x_205 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_205, 0, x_192); +lean_ctor_set(x_205, 1, x_204); +return x_205; } } } else { -uint8_t x_207; -lean_free_object(x_182); -lean_dec(x_8); -x_207 = !lean_is_exclusive(x_186); -if (x_207 == 0) +uint8_t x_206; +lean_free_object(x_181); +lean_dec(x_7); +x_206 = !lean_is_exclusive(x_185); +if (x_206 == 0) { -lean_object* x_208; lean_object* x_209; -x_208 = lean_ctor_get(x_186, 1); +lean_object* x_207; lean_object* x_208; +x_207 = lean_ctor_get(x_185, 1); +lean_dec(x_207); +x_208 = lean_ctor_get(x_185, 0); lean_dec(x_208); -x_209 = lean_ctor_get(x_186, 0); -lean_dec(x_209); -lean_ctor_set(x_186, 1, x_10); -return x_186; +lean_ctor_set(x_185, 1, x_9); +return x_185; } else { -lean_object* x_210; -lean_dec(x_186); -x_210 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_210, 0, x_193); -lean_ctor_set(x_210, 1, x_10); -return x_210; +lean_object* x_209; +lean_dec(x_185); +x_209 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_209, 0, x_192); +lean_ctor_set(x_209, 1, x_9); +return x_209; } } } } else { -lean_object* x_211; lean_object* x_212; lean_object* x_213; -x_211 = lean_ctor_get(x_182, 0); -x_212 = lean_ctor_get(x_182, 1); -lean_inc(x_212); +lean_object* x_210; lean_object* x_211; lean_object* x_212; +x_210 = lean_ctor_get(x_181, 0); +x_211 = lean_ctor_get(x_181, 1); lean_inc(x_211); -lean_dec(x_182); -x_213 = l___private_Lean_Elab_App_19__elabAppLVals(x_1, x_211, x_3, x_4, x_5, x_6, x_7, x_9, x_212); -if (lean_obj_tag(x_213) == 0) +lean_inc(x_210); +lean_dec(x_181); +x_212 = l___private_Lean_Elab_App_19__elabAppLVals(x_210, x_2, x_3, x_4, x_5, x_6, x_8, x_211); +if (lean_obj_tag(x_212) == 0) { -lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; -x_214 = lean_ctor_get(x_213, 0); +lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; +x_213 = lean_ctor_get(x_212, 0); +lean_inc(x_213); +x_214 = lean_ctor_get(x_212, 1); lean_inc(x_214); -x_215 = lean_ctor_get(x_213, 1); -lean_inc(x_215); -if (lean_is_exclusive(x_213)) { - lean_ctor_release(x_213, 0); - lean_ctor_release(x_213, 1); - x_216 = x_213; +if (lean_is_exclusive(x_212)) { + lean_ctor_release(x_212, 0); + lean_ctor_release(x_212, 1); + x_215 = x_212; } else { - lean_dec_ref(x_213); - x_216 = lean_box(0); + lean_dec_ref(x_212); + x_215 = lean_box(0); } -if (lean_is_scalar(x_216)) { - x_217 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_215)) { + x_216 = lean_alloc_ctor(0, 2, 0); } else { - x_217 = x_216; + x_216 = x_215; } -lean_ctor_set(x_217, 0, x_214); -lean_ctor_set(x_217, 1, x_215); -x_218 = lean_array_push(x_8, x_217); -x_219 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_219, 0, x_218); -lean_ctor_set(x_219, 1, x_10); -return x_219; +lean_ctor_set(x_216, 0, x_213); +lean_ctor_set(x_216, 1, x_214); +x_217 = lean_array_push(x_7, x_216); +x_218 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_218, 0, x_217); +lean_ctor_set(x_218, 1, x_9); +return x_218; } else { +lean_object* x_219; +x_219 = lean_ctor_get(x_212, 0); +lean_inc(x_219); +if (lean_obj_tag(x_219) == 0) +{ lean_object* x_220; -x_220 = lean_ctor_get(x_213, 0); +x_220 = lean_ctor_get(x_219, 0); lean_inc(x_220); if (lean_obj_tag(x_220) == 0) { -lean_object* x_221; -x_221 = lean_ctor_get(x_220, 0); +lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; +lean_dec(x_219); +x_221 = lean_ctor_get(x_212, 1); lean_inc(x_221); -if (lean_obj_tag(x_221) == 0) -{ -lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; +if (lean_is_exclusive(x_212)) { + lean_ctor_release(x_212, 0); + lean_ctor_release(x_212, 1); + x_222 = x_212; +} else { + lean_dec_ref(x_212); + x_222 = lean_box(0); +} +x_223 = lean_ctor_get(x_220, 0); +lean_inc(x_223); lean_dec(x_220); -x_222 = lean_ctor_get(x_213, 1); -lean_inc(x_222); -if (lean_is_exclusive(x_213)) { - lean_ctor_release(x_213, 0); - lean_ctor_release(x_213, 1); - x_223 = x_213; +if (lean_is_scalar(x_222)) { + x_224 = lean_alloc_ctor(1, 2, 0); } else { - lean_dec_ref(x_213); - x_223 = lean_box(0); + x_224 = x_222; } -x_224 = lean_ctor_get(x_221, 0); -lean_inc(x_224); -lean_dec(x_221); -if (lean_is_scalar(x_223)) { - x_225 = lean_alloc_ctor(1, 2, 0); -} else { - x_225 = x_223; -} -lean_ctor_set(x_225, 0, x_224); -lean_ctor_set(x_225, 1, x_222); -x_226 = lean_array_push(x_8, x_225); -x_227 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_227, 0, x_226); -lean_ctor_set(x_227, 1, x_10); -return x_227; +lean_ctor_set(x_224, 0, x_223); +lean_ctor_set(x_224, 1, x_221); +x_225 = lean_array_push(x_7, x_224); +x_226 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_226, 0, x_225); +lean_ctor_set(x_226, 1, x_9); +return x_226; } else { -lean_object* x_228; lean_object* x_229; lean_object* x_230; -lean_dec(x_10); -lean_dec(x_8); -x_228 = lean_ctor_get(x_213, 1); -lean_inc(x_228); -if (lean_is_exclusive(x_213)) { - lean_ctor_release(x_213, 0); - lean_ctor_release(x_213, 1); - x_229 = x_213; -} else { - lean_dec_ref(x_213); - x_229 = lean_box(0); -} -if (lean_is_scalar(x_229)) { - x_230 = lean_alloc_ctor(1, 2, 0); -} else { - x_230 = x_229; -} -lean_ctor_set(x_230, 0, x_220); -lean_ctor_set(x_230, 1, x_228); -return x_230; -} -} -else -{ -lean_object* x_231; lean_object* x_232; -lean_dec(x_8); -if (lean_is_exclusive(x_213)) { - lean_ctor_release(x_213, 0); - lean_ctor_release(x_213, 1); - x_231 = x_213; -} else { - lean_dec_ref(x_213); - 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_220); -lean_ctor_set(x_232, 1, x_10); -return x_232; -} -} -} -} -else -{ -lean_object* x_233; +lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_dec(x_9); -lean_dec(x_6); +lean_dec(x_7); +x_227 = lean_ctor_get(x_212, 1); +lean_inc(x_227); +if (lean_is_exclusive(x_212)) { + lean_ctor_release(x_212, 0); + lean_ctor_release(x_212, 1); + x_228 = x_212; +} else { + lean_dec_ref(x_212); + x_228 = lean_box(0); +} +if (lean_is_scalar(x_228)) { + x_229 = lean_alloc_ctor(1, 2, 0); +} else { + x_229 = x_228; +} +lean_ctor_set(x_229, 0, x_219); +lean_ctor_set(x_229, 1, x_227); +return x_229; +} +} +else +{ +lean_object* x_230; lean_object* x_231; +lean_dec(x_7); +if (lean_is_exclusive(x_212)) { + lean_ctor_release(x_212, 0); + lean_ctor_release(x_212, 1); + x_230 = x_212; +} else { + lean_dec_ref(x_212); + x_230 = lean_box(0); +} +if (lean_is_scalar(x_230)) { + x_231 = lean_alloc_ctor(1, 2, 0); +} else { + x_231 = x_230; +} +lean_ctor_set(x_231, 0, x_219); +lean_ctor_set(x_231, 1, x_9); +return x_231; +} +} +} +} +else +{ +lean_object* x_232; +lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_233 = lean_ctor_get(x_182, 0); +lean_dec(x_2); +x_232 = lean_ctor_get(x_181, 0); +lean_inc(x_232); +if (lean_obj_tag(x_232) == 0) +{ +lean_object* x_233; +x_233 = lean_ctor_get(x_232, 0); lean_inc(x_233); if (lean_obj_tag(x_233) == 0) { -lean_object* x_234; -x_234 = lean_ctor_get(x_233, 0); -lean_inc(x_234); -if (lean_obj_tag(x_234) == 0) +uint8_t x_234; +lean_dec(x_232); +x_234 = !lean_is_exclusive(x_181); +if (x_234 == 0) { -uint8_t x_235; +lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; +x_235 = lean_ctor_get(x_181, 0); +lean_dec(x_235); +x_236 = lean_ctor_get(x_233, 0); +lean_inc(x_236); lean_dec(x_233); -x_235 = !lean_is_exclusive(x_182); -if (x_235 == 0) -{ -lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; -x_236 = lean_ctor_get(x_182, 0); -lean_dec(x_236); -x_237 = lean_ctor_get(x_234, 0); -lean_inc(x_237); -lean_dec(x_234); -lean_ctor_set(x_182, 0, x_237); -x_238 = lean_array_push(x_8, x_182); -x_239 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_239, 0, x_238); -lean_ctor_set(x_239, 1, x_10); -return x_239; +lean_ctor_set(x_181, 0, x_236); +x_237 = lean_array_push(x_7, x_181); +x_238 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_238, 0, x_237); +lean_ctor_set(x_238, 1, x_9); +return x_238; } else { -lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; -x_240 = lean_ctor_get(x_182, 1); +lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; +x_239 = lean_ctor_get(x_181, 1); +lean_inc(x_239); +lean_dec(x_181); +x_240 = lean_ctor_get(x_233, 0); lean_inc(x_240); -lean_dec(x_182); -x_241 = lean_ctor_get(x_234, 0); -lean_inc(x_241); -lean_dec(x_234); -x_242 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_242, 0, x_241); -lean_ctor_set(x_242, 1, x_240); -x_243 = lean_array_push(x_8, x_242); -x_244 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_244, 0, x_243); -lean_ctor_set(x_244, 1, x_10); -return x_244; +lean_dec(x_233); +x_241 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_241, 0, x_240); +lean_ctor_set(x_241, 1, x_239); +x_242 = lean_array_push(x_7, x_241); +x_243 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_243, 0, x_242); +lean_ctor_set(x_243, 1, x_9); +return x_243; } } else { -uint8_t x_245; -lean_dec(x_10); -lean_dec(x_8); -x_245 = !lean_is_exclusive(x_182); -if (x_245 == 0) +uint8_t x_244; +lean_dec(x_9); +lean_dec(x_7); +x_244 = !lean_is_exclusive(x_181); +if (x_244 == 0) { -lean_object* x_246; -x_246 = lean_ctor_get(x_182, 0); -lean_dec(x_246); -return x_182; +lean_object* x_245; +x_245 = lean_ctor_get(x_181, 0); +lean_dec(x_245); +return x_181; } else { -lean_object* x_247; lean_object* x_248; -x_247 = lean_ctor_get(x_182, 1); -lean_inc(x_247); -lean_dec(x_182); -x_248 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_248, 0, x_233); -lean_ctor_set(x_248, 1, x_247); -return x_248; +lean_object* x_246; lean_object* x_247; +x_246 = lean_ctor_get(x_181, 1); +lean_inc(x_246); +lean_dec(x_181); +x_247 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_247, 0, x_232); +lean_ctor_set(x_247, 1, x_246); +return x_247; } } } else { -uint8_t x_249; -lean_dec(x_8); -x_249 = !lean_is_exclusive(x_182); -if (x_249 == 0) +uint8_t x_248; +lean_dec(x_7); +x_248 = !lean_is_exclusive(x_181); +if (x_248 == 0) { -lean_object* x_250; lean_object* x_251; -x_250 = lean_ctor_get(x_182, 1); +lean_object* x_249; lean_object* x_250; +x_249 = lean_ctor_get(x_181, 1); +lean_dec(x_249); +x_250 = lean_ctor_get(x_181, 0); lean_dec(x_250); -x_251 = lean_ctor_get(x_182, 0); -lean_dec(x_251); -lean_ctor_set(x_182, 1, x_10); -return x_182; +lean_ctor_set(x_181, 1, x_9); +return x_181; } else { -lean_object* x_252; -lean_dec(x_182); -x_252 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_252, 0, x_233); -lean_ctor_set(x_252, 1, x_10); -return x_252; +lean_object* x_251; +lean_dec(x_181); +x_251 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_251, 0, x_232); +lean_ctor_set(x_251, 1, x_9); +return x_251; } } } } else { -lean_object* x_253; lean_object* x_254; uint8_t x_255; lean_object* x_308; uint8_t x_309; -x_253 = lean_unsigned_to_nat(1u); -x_254 = l_Lean_Syntax_getArg(x_2, x_253); -lean_dec(x_2); -x_308 = l_Lean_nullKind___closed__2; -lean_inc(x_254); -x_309 = l_Lean_Syntax_isOfKind(x_254, x_308); -if (x_309 == 0) +lean_object* x_252; lean_object* x_253; uint8_t x_254; lean_object* x_307; uint8_t x_308; +x_252 = lean_unsigned_to_nat(1u); +x_253 = l_Lean_Syntax_getArg(x_1, x_252); +lean_dec(x_1); +x_307 = l_Lean_nullKind___closed__2; +lean_inc(x_253); +x_308 = l_Lean_Syntax_isOfKind(x_253, x_307); +if (x_308 == 0) { -uint8_t x_310; -x_310 = 0; -x_255 = x_310; -goto block_307; +uint8_t x_309; +x_309 = 0; +x_254 = x_309; +goto block_306; } else { -lean_object* x_311; lean_object* x_312; uint8_t x_313; -x_311 = l_Lean_Syntax_getArgs(x_254); -x_312 = lean_array_get_size(x_311); +lean_object* x_310; lean_object* x_311; uint8_t x_312; +x_310 = l_Lean_Syntax_getArgs(x_253); +x_311 = lean_array_get_size(x_310); +lean_dec(x_310); +x_312 = lean_nat_dec_eq(x_311, x_252); lean_dec(x_311); -x_313 = lean_nat_dec_eq(x_312, x_253); -lean_dec(x_312); -x_255 = x_313; -goto block_307; +x_254 = x_312; +goto block_306; } -block_307: +block_306: { -if (x_255 == 0) +if (x_254 == 0) { -lean_object* x_256; uint8_t x_257; -x_256 = l_Lean_Syntax_getArgs(x_254); -lean_dec(x_254); -x_257 = l_Array_isEmpty___rarg(x_256); -if (x_257 == 0) +lean_object* x_255; uint8_t x_256; +x_255 = l_Lean_Syntax_getArgs(x_253); +lean_dec(x_253); +x_256 = l_Array_isEmpty___rarg(x_255); +if (x_256 == 0) { -lean_object* x_258; lean_object* x_259; lean_object* x_260; -x_258 = l_Lean_Syntax_inhabited; -x_259 = lean_array_get(x_258, x_256, x_176); -lean_dec(x_256); -x_260 = l_Lean_Elab_Term_elabExplicitUniv(x_259, x_9, x_10); -lean_dec(x_259); -if (lean_obj_tag(x_260) == 0) +lean_object* x_257; lean_object* x_258; lean_object* x_259; +x_257 = l_Lean_Syntax_inhabited; +x_258 = lean_array_get(x_257, x_255, x_175); +lean_dec(x_255); +x_259 = l_Lean_Elab_Term_elabExplicitUniv(x_258, x_8, x_9); +lean_dec(x_258); +if (lean_obj_tag(x_259) == 0) { -lean_object* x_261; lean_object* x_262; lean_object* x_263; -x_261 = lean_ctor_get(x_260, 0); +lean_object* x_260; lean_object* x_261; lean_object* x_262; +x_260 = lean_ctor_get(x_259, 0); +lean_inc(x_260); +x_261 = lean_ctor_get(x_259, 1); lean_inc(x_261); -x_262 = lean_ctor_get(x_260, 1); -lean_inc(x_262); -lean_dec(x_260); -x_263 = l___private_Lean_Elab_App_20__elabAppFnId(x_1, x_177, x_261, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_262); -return x_263; +lean_dec(x_259); +x_262 = l___private_Lean_Elab_App_20__elabAppFnId(x_176, x_260, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_261); +return x_262; } else { -uint8_t x_264; -lean_dec(x_177); -lean_dec(x_9); +uint8_t x_263; +lean_dec(x_176); lean_dec(x_8); -lean_dec(x_6); +lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_264 = !lean_is_exclusive(x_260); -if (x_264 == 0) -{ -return x_260; -} -else -{ -lean_object* x_265; lean_object* x_266; lean_object* x_267; -x_265 = lean_ctor_get(x_260, 0); -x_266 = lean_ctor_get(x_260, 1); -lean_inc(x_266); -lean_inc(x_265); -lean_dec(x_260); -x_267 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_267, 0, x_265); -lean_ctor_set(x_267, 1, x_266); -return x_267; -} -} -} -else -{ -lean_object* x_268; lean_object* x_269; -lean_dec(x_256); -x_268 = lean_box(0); -x_269 = l___private_Lean_Elab_App_20__elabAppFnId(x_1, x_177, x_268, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_269; -} -} -else -{ -lean_object* x_270; lean_object* x_271; uint8_t x_272; -x_270 = l_Lean_Syntax_getArg(x_254, x_176); -x_271 = l_Lean_Parser_Term_namedPattern___elambda__1___closed__2; -lean_inc(x_270); -x_272 = l_Lean_Syntax_isOfKind(x_270, x_271); -if (x_272 == 0) -{ -lean_object* x_273; uint8_t x_274; -lean_dec(x_270); -x_273 = l_Lean_Syntax_getArgs(x_254); -lean_dec(x_254); -x_274 = l_Array_isEmpty___rarg(x_273); -if (x_274 == 0) -{ -lean_object* x_275; lean_object* x_276; lean_object* x_277; -x_275 = l_Lean_Syntax_inhabited; -x_276 = lean_array_get(x_275, x_273, x_176); -lean_dec(x_273); -x_277 = l_Lean_Elab_Term_elabExplicitUniv(x_276, x_9, x_10); -lean_dec(x_276); -if (lean_obj_tag(x_277) == 0) -{ -lean_object* x_278; lean_object* x_279; lean_object* x_280; -x_278 = lean_ctor_get(x_277, 0); -lean_inc(x_278); -x_279 = lean_ctor_get(x_277, 1); -lean_inc(x_279); -lean_dec(x_277); -x_280 = l___private_Lean_Elab_App_20__elabAppFnId(x_1, x_177, x_278, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_279); -return x_280; -} -else -{ -uint8_t x_281; -lean_dec(x_177); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_281 = !lean_is_exclusive(x_277); -if (x_281 == 0) -{ -return x_277; -} -else -{ -lean_object* x_282; lean_object* x_283; lean_object* x_284; -x_282 = lean_ctor_get(x_277, 0); -x_283 = lean_ctor_get(x_277, 1); -lean_inc(x_283); -lean_inc(x_282); -lean_dec(x_277); -x_284 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_284, 0, x_282); -lean_ctor_set(x_284, 1, x_283); -return x_284; -} -} -} -else -{ -lean_object* x_285; lean_object* x_286; -lean_dec(x_273); -x_285 = lean_box(0); -x_286 = l___private_Lean_Elab_App_20__elabAppFnId(x_1, x_177, x_285, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_286; -} -} -else -{ -lean_object* x_287; lean_object* x_288; lean_object* x_289; uint8_t x_290; -x_287 = l_Lean_Syntax_getArgs(x_270); -lean_dec(x_270); -x_288 = lean_array_get_size(x_287); -lean_dec(x_287); -x_289 = lean_unsigned_to_nat(2u); -x_290 = lean_nat_dec_eq(x_288, x_289); -lean_dec(x_288); -if (x_290 == 0) -{ -lean_object* x_291; uint8_t x_292; -x_291 = l_Lean_Syntax_getArgs(x_254); -lean_dec(x_254); -x_292 = l_Array_isEmpty___rarg(x_291); -if (x_292 == 0) -{ -lean_object* x_293; lean_object* x_294; lean_object* x_295; -x_293 = l_Lean_Syntax_inhabited; -x_294 = lean_array_get(x_293, x_291, x_176); -lean_dec(x_291); -x_295 = l_Lean_Elab_Term_elabExplicitUniv(x_294, x_9, x_10); -lean_dec(x_294); -if (lean_obj_tag(x_295) == 0) -{ -lean_object* x_296; lean_object* x_297; lean_object* x_298; -x_296 = lean_ctor_get(x_295, 0); -lean_inc(x_296); -x_297 = lean_ctor_get(x_295, 1); -lean_inc(x_297); -lean_dec(x_295); -x_298 = l___private_Lean_Elab_App_20__elabAppFnId(x_1, x_177, x_296, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_297); -return x_298; -} -else -{ -uint8_t x_299; -lean_dec(x_177); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_299 = !lean_is_exclusive(x_295); -if (x_299 == 0) -{ -return x_295; -} -else -{ -lean_object* x_300; lean_object* x_301; lean_object* x_302; -x_300 = lean_ctor_get(x_295, 0); -x_301 = lean_ctor_get(x_295, 1); -lean_inc(x_301); -lean_inc(x_300); -lean_dec(x_295); -x_302 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_302, 0, x_300); -lean_ctor_set(x_302, 1, x_301); -return x_302; -} -} -} -else -{ -lean_object* x_303; lean_object* x_304; -lean_dec(x_291); -x_303 = lean_box(0); -x_304 = l___private_Lean_Elab_App_20__elabAppFnId(x_1, x_177, x_303, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_304; -} -} -else -{ -lean_object* x_305; lean_object* x_306; -lean_dec(x_254); -lean_dec(x_177); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_305 = l___private_Lean_Elab_App_21__elabAppFn___main___closed__3; -x_306 = l_Lean_Elab_Term_throwError___rarg(x_1, x_305, x_9, x_10); -lean_dec(x_1); -return x_306; -} -} -} -} -} -} -} -} -else -{ -lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; -x_322 = lean_unsigned_to_nat(0u); -x_323 = l_Lean_Syntax_getArg(x_2, x_322); -x_324 = lean_unsigned_to_nat(2u); -x_325 = l_Lean_Syntax_getArg(x_2, x_324); lean_dec(x_2); -x_326 = lean_alloc_ctor(2, 1, 0); +x_263 = !lean_is_exclusive(x_259); +if (x_263 == 0) +{ +return x_259; +} +else +{ +lean_object* x_264; lean_object* x_265; lean_object* x_266; +x_264 = lean_ctor_get(x_259, 0); +x_265 = lean_ctor_get(x_259, 1); +lean_inc(x_265); +lean_inc(x_264); +lean_dec(x_259); +x_266 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_266, 0, x_264); +lean_ctor_set(x_266, 1, x_265); +return x_266; +} +} +} +else +{ +lean_object* x_267; lean_object* x_268; +lean_dec(x_255); +x_267 = lean_box(0); +x_268 = l___private_Lean_Elab_App_20__elabAppFnId(x_176, x_267, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_268; +} +} +else +{ +lean_object* x_269; lean_object* x_270; uint8_t x_271; +x_269 = l_Lean_Syntax_getArg(x_253, x_175); +x_270 = l_Lean_Parser_Term_namedPattern___elambda__1___closed__2; +lean_inc(x_269); +x_271 = l_Lean_Syntax_isOfKind(x_269, x_270); +if (x_271 == 0) +{ +lean_object* x_272; uint8_t x_273; +lean_dec(x_269); +x_272 = l_Lean_Syntax_getArgs(x_253); +lean_dec(x_253); +x_273 = l_Array_isEmpty___rarg(x_272); +if (x_273 == 0) +{ +lean_object* x_274; lean_object* x_275; lean_object* x_276; +x_274 = l_Lean_Syntax_inhabited; +x_275 = lean_array_get(x_274, x_272, x_175); +lean_dec(x_272); +x_276 = l_Lean_Elab_Term_elabExplicitUniv(x_275, x_8, x_9); +lean_dec(x_275); +if (lean_obj_tag(x_276) == 0) +{ +lean_object* x_277; lean_object* x_278; lean_object* x_279; +x_277 = lean_ctor_get(x_276, 0); +lean_inc(x_277); +x_278 = lean_ctor_get(x_276, 1); +lean_inc(x_278); +lean_dec(x_276); +x_279 = l___private_Lean_Elab_App_20__elabAppFnId(x_176, x_277, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_278); +return x_279; +} +else +{ +uint8_t x_280; +lean_dec(x_176); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_280 = !lean_is_exclusive(x_276); +if (x_280 == 0) +{ +return x_276; +} +else +{ +lean_object* x_281; lean_object* x_282; lean_object* x_283; +x_281 = lean_ctor_get(x_276, 0); +x_282 = lean_ctor_get(x_276, 1); +lean_inc(x_282); +lean_inc(x_281); +lean_dec(x_276); +x_283 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_283, 0, x_281); +lean_ctor_set(x_283, 1, x_282); +return x_283; +} +} +} +else +{ +lean_object* x_284; lean_object* x_285; +lean_dec(x_272); +x_284 = lean_box(0); +x_285 = l___private_Lean_Elab_App_20__elabAppFnId(x_176, x_284, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_285; +} +} +else +{ +lean_object* x_286; lean_object* x_287; lean_object* x_288; uint8_t x_289; +x_286 = l_Lean_Syntax_getArgs(x_269); +lean_dec(x_269); +x_287 = lean_array_get_size(x_286); +lean_dec(x_286); +x_288 = lean_unsigned_to_nat(2u); +x_289 = lean_nat_dec_eq(x_287, x_288); +lean_dec(x_287); +if (x_289 == 0) +{ +lean_object* x_290; uint8_t x_291; +x_290 = l_Lean_Syntax_getArgs(x_253); +lean_dec(x_253); +x_291 = l_Array_isEmpty___rarg(x_290); +if (x_291 == 0) +{ +lean_object* x_292; lean_object* x_293; lean_object* x_294; +x_292 = l_Lean_Syntax_inhabited; +x_293 = lean_array_get(x_292, x_290, x_175); +lean_dec(x_290); +x_294 = l_Lean_Elab_Term_elabExplicitUniv(x_293, x_8, x_9); +lean_dec(x_293); +if (lean_obj_tag(x_294) == 0) +{ +lean_object* x_295; lean_object* x_296; lean_object* x_297; +x_295 = lean_ctor_get(x_294, 0); +lean_inc(x_295); +x_296 = lean_ctor_get(x_294, 1); +lean_inc(x_296); +lean_dec(x_294); +x_297 = l___private_Lean_Elab_App_20__elabAppFnId(x_176, x_295, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_296); +return x_297; +} +else +{ +uint8_t x_298; +lean_dec(x_176); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_298 = !lean_is_exclusive(x_294); +if (x_298 == 0) +{ +return x_294; +} +else +{ +lean_object* x_299; lean_object* x_300; lean_object* x_301; +x_299 = lean_ctor_get(x_294, 0); +x_300 = lean_ctor_get(x_294, 1); +lean_inc(x_300); +lean_inc(x_299); +lean_dec(x_294); +x_301 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_301, 0, x_299); +lean_ctor_set(x_301, 1, x_300); +return x_301; +} +} +} +else +{ +lean_object* x_302; lean_object* x_303; +lean_dec(x_290); +x_302 = lean_box(0); +x_303 = l___private_Lean_Elab_App_20__elabAppFnId(x_176, x_302, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_303; +} +} +else +{ +lean_object* x_304; lean_object* x_305; +lean_dec(x_253); +lean_dec(x_176); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_304 = l___private_Lean_Elab_App_21__elabAppFn___main___closed__3; +x_305 = l_Lean_Elab_Term_throwError___rarg(x_304, x_8, x_9); +return x_305; +} +} +} +} +} +} +} +} +else +{ +lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; +x_321 = lean_unsigned_to_nat(0u); +x_322 = l_Lean_Syntax_getArg(x_1, x_321); +x_323 = lean_unsigned_to_nat(2u); +x_324 = l_Lean_Syntax_getArg(x_1, x_323); +lean_dec(x_1); +x_325 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_325, 0, x_324); +x_326 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_326, 0, x_325); -x_327 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_327, 0, x_326); -lean_ctor_set(x_327, 1, x_3); -x_2 = x_323; -x_3 = x_327; +lean_ctor_set(x_326, 1, x_2); +x_1 = x_322; +x_2 = x_326; goto _start; } } -block_437: +block_436: { -if (x_330 == 0) +if (x_329 == 0) { -lean_object* x_331; uint8_t x_332; -x_331 = l_Lean_Parser_Term_arrayRef___elambda__1___closed__2; -lean_inc(x_2); -x_332 = l_Lean_Syntax_isOfKind(x_2, x_331); -if (x_332 == 0) +lean_object* x_330; uint8_t x_331; +x_330 = l_Lean_Parser_Term_arrayRef___elambda__1___closed__2; +lean_inc(x_1); +x_331 = l_Lean_Syntax_isOfKind(x_1, x_330); +if (x_331 == 0) { -uint8_t x_333; -x_333 = 0; -x_15 = x_333; -goto block_329; +uint8_t x_332; +x_332 = 0; +x_14 = x_332; +goto block_328; } else { -lean_object* x_334; lean_object* x_335; lean_object* x_336; uint8_t x_337; -x_334 = l_Lean_Syntax_getArgs(x_2); -x_335 = lean_array_get_size(x_334); +lean_object* x_333; lean_object* x_334; lean_object* x_335; uint8_t x_336; +x_333 = l_Lean_Syntax_getArgs(x_1); +x_334 = lean_array_get_size(x_333); +lean_dec(x_333); +x_335 = lean_unsigned_to_nat(4u); +x_336 = lean_nat_dec_eq(x_334, x_335); lean_dec(x_334); -x_336 = lean_unsigned_to_nat(4u); -x_337 = lean_nat_dec_eq(x_335, x_336); -lean_dec(x_335); -x_15 = x_337; -goto block_329; +x_14 = x_336; +goto block_328; } } else { -lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; uint8_t x_343; -x_338 = lean_unsigned_to_nat(0u); -x_339 = l_Lean_Syntax_getArg(x_2, x_338); -x_340 = lean_unsigned_to_nat(2u); -x_341 = l_Lean_Syntax_getArg(x_2, x_340); -x_342 = l_Lean_fieldIdxKind___closed__2; -lean_inc(x_341); -x_343 = l_Lean_Syntax_isOfKind(x_341, x_342); -if (x_343 == 0) +lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; uint8_t x_342; +x_337 = lean_unsigned_to_nat(0u); +x_338 = l_Lean_Syntax_getArg(x_1, x_337); +x_339 = lean_unsigned_to_nat(2u); +x_340 = l_Lean_Syntax_getArg(x_1, x_339); +x_341 = l_Lean_fieldIdxKind___closed__2; +lean_inc(x_340); +x_342 = l_Lean_Syntax_isOfKind(x_340, x_341); +if (x_342 == 0) { -lean_object* x_344; uint8_t x_345; -x_344 = l_Lean_identKind___closed__2; -lean_inc(x_341); -x_345 = l_Lean_Syntax_isOfKind(x_341, x_344); -if (x_345 == 0) +lean_object* x_343; uint8_t x_344; +x_343 = l_Lean_identKind___closed__2; +lean_inc(x_340); +x_344 = l_Lean_Syntax_isOfKind(x_340, x_343); +if (x_344 == 0) { -lean_object* x_346; uint8_t x_347; lean_object* x_348; -lean_dec(x_341); -lean_dec(x_339); -x_346 = lean_box(0); -x_347 = 1; -lean_inc(x_10); +lean_object* x_345; uint8_t x_346; lean_object* x_347; +lean_dec(x_340); +lean_dec(x_338); +x_345 = lean_box(0); +x_346 = 1; lean_inc(x_9); -x_348 = l_Lean_Elab_Term_elabTermAux___main(x_346, x_347, x_347, x_2, x_9, x_10); -if (lean_obj_tag(x_348) == 0) +lean_inc(x_8); +x_347 = l_Lean_Elab_Term_elabTerm(x_1, x_345, x_346, x_8, x_9); +if (lean_obj_tag(x_347) == 0) { -uint8_t x_349; -x_349 = !lean_is_exclusive(x_348); -if (x_349 == 0) +uint8_t x_348; +x_348 = !lean_is_exclusive(x_347); +if (x_348 == 0) { -lean_object* x_350; lean_object* x_351; lean_object* x_352; -x_350 = lean_ctor_get(x_348, 0); -x_351 = lean_ctor_get(x_348, 1); -x_352 = l___private_Lean_Elab_App_19__elabAppLVals(x_1, x_350, x_3, x_4, x_5, x_6, x_7, x_9, x_351); -if (lean_obj_tag(x_352) == 0) +lean_object* x_349; lean_object* x_350; lean_object* x_351; +x_349 = lean_ctor_get(x_347, 0); +x_350 = lean_ctor_get(x_347, 1); +x_351 = l___private_Lean_Elab_App_19__elabAppLVals(x_349, x_2, x_3, x_4, x_5, x_6, x_8, x_350); +if (lean_obj_tag(x_351) == 0) { -uint8_t x_353; -x_353 = !lean_is_exclusive(x_352); -if (x_353 == 0) +uint8_t x_352; +x_352 = !lean_is_exclusive(x_351); +if (x_352 == 0) { -lean_object* x_354; -x_354 = lean_array_push(x_8, x_352); -lean_ctor_set(x_348, 1, x_10); -lean_ctor_set(x_348, 0, x_354); -return x_348; +lean_object* x_353; +x_353 = lean_array_push(x_7, x_351); +lean_ctor_set(x_347, 1, x_9); +lean_ctor_set(x_347, 0, x_353); +return x_347; } else { -lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; -x_355 = lean_ctor_get(x_352, 0); -x_356 = lean_ctor_get(x_352, 1); -lean_inc(x_356); +lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; +x_354 = lean_ctor_get(x_351, 0); +x_355 = lean_ctor_get(x_351, 1); lean_inc(x_355); -lean_dec(x_352); -x_357 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_357, 0, x_355); -lean_ctor_set(x_357, 1, x_356); -x_358 = lean_array_push(x_8, x_357); -lean_ctor_set(x_348, 1, x_10); -lean_ctor_set(x_348, 0, x_358); -return x_348; +lean_inc(x_354); +lean_dec(x_351); +x_356 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_356, 0, x_354); +lean_ctor_set(x_356, 1, x_355); +x_357 = lean_array_push(x_7, x_356); +lean_ctor_set(x_347, 1, x_9); +lean_ctor_set(x_347, 0, x_357); +return x_347; } } else { +lean_object* x_358; +x_358 = lean_ctor_get(x_351, 0); +lean_inc(x_358); +if (lean_obj_tag(x_358) == 0) +{ lean_object* x_359; -x_359 = lean_ctor_get(x_352, 0); +x_359 = lean_ctor_get(x_358, 0); lean_inc(x_359); if (lean_obj_tag(x_359) == 0) { -lean_object* x_360; -x_360 = lean_ctor_get(x_359, 0); -lean_inc(x_360); -if (lean_obj_tag(x_360) == 0) +uint8_t x_360; +lean_dec(x_358); +x_360 = !lean_is_exclusive(x_351); +if (x_360 == 0) { -uint8_t x_361; +lean_object* x_361; lean_object* x_362; lean_object* x_363; +x_361 = lean_ctor_get(x_351, 0); +lean_dec(x_361); +x_362 = lean_ctor_get(x_359, 0); +lean_inc(x_362); lean_dec(x_359); -x_361 = !lean_is_exclusive(x_352); -if (x_361 == 0) -{ -lean_object* x_362; lean_object* x_363; lean_object* x_364; -x_362 = lean_ctor_get(x_352, 0); -lean_dec(x_362); -x_363 = lean_ctor_get(x_360, 0); -lean_inc(x_363); -lean_dec(x_360); -lean_ctor_set(x_352, 0, x_363); -x_364 = lean_array_push(x_8, x_352); -lean_ctor_set(x_348, 1, x_10); -lean_ctor_set(x_348, 0, x_364); -return x_348; +lean_ctor_set(x_351, 0, x_362); +x_363 = lean_array_push(x_7, x_351); +lean_ctor_set(x_347, 1, x_9); +lean_ctor_set(x_347, 0, x_363); +return x_347; } else { -lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; -x_365 = lean_ctor_get(x_352, 1); +lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; +x_364 = lean_ctor_get(x_351, 1); +lean_inc(x_364); +lean_dec(x_351); +x_365 = lean_ctor_get(x_359, 0); lean_inc(x_365); -lean_dec(x_352); -x_366 = lean_ctor_get(x_360, 0); -lean_inc(x_366); -lean_dec(x_360); -x_367 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_367, 0, x_366); -lean_ctor_set(x_367, 1, x_365); -x_368 = lean_array_push(x_8, x_367); -lean_ctor_set(x_348, 1, x_10); -lean_ctor_set(x_348, 0, x_368); -return x_348; +lean_dec(x_359); +x_366 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_366, 0, x_365); +lean_ctor_set(x_366, 1, x_364); +x_367 = lean_array_push(x_7, x_366); +lean_ctor_set(x_347, 1, x_9); +lean_ctor_set(x_347, 0, x_367); +return x_347; } } else { -uint8_t x_369; -lean_free_object(x_348); -lean_dec(x_10); -lean_dec(x_8); -x_369 = !lean_is_exclusive(x_352); -if (x_369 == 0) +uint8_t x_368; +lean_free_object(x_347); +lean_dec(x_9); +lean_dec(x_7); +x_368 = !lean_is_exclusive(x_351); +if (x_368 == 0) { -lean_object* x_370; -x_370 = lean_ctor_get(x_352, 0); -lean_dec(x_370); -return x_352; +lean_object* x_369; +x_369 = lean_ctor_get(x_351, 0); +lean_dec(x_369); +return x_351; } else { -lean_object* x_371; lean_object* x_372; -x_371 = lean_ctor_get(x_352, 1); -lean_inc(x_371); -lean_dec(x_352); -x_372 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_372, 0, x_359); -lean_ctor_set(x_372, 1, x_371); -return x_372; +lean_object* x_370; lean_object* x_371; +x_370 = lean_ctor_get(x_351, 1); +lean_inc(x_370); +lean_dec(x_351); +x_371 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_371, 0, x_358); +lean_ctor_set(x_371, 1, x_370); +return x_371; } } } else { -uint8_t x_373; -lean_free_object(x_348); -lean_dec(x_8); -x_373 = !lean_is_exclusive(x_352); -if (x_373 == 0) +uint8_t x_372; +lean_free_object(x_347); +lean_dec(x_7); +x_372 = !lean_is_exclusive(x_351); +if (x_372 == 0) { -lean_object* x_374; lean_object* x_375; -x_374 = lean_ctor_get(x_352, 1); +lean_object* x_373; lean_object* x_374; +x_373 = lean_ctor_get(x_351, 1); +lean_dec(x_373); +x_374 = lean_ctor_get(x_351, 0); lean_dec(x_374); -x_375 = lean_ctor_get(x_352, 0); -lean_dec(x_375); -lean_ctor_set(x_352, 1, x_10); -return x_352; +lean_ctor_set(x_351, 1, x_9); +return x_351; } else { -lean_object* x_376; -lean_dec(x_352); -x_376 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_376, 0, x_359); -lean_ctor_set(x_376, 1, x_10); -return x_376; +lean_object* x_375; +lean_dec(x_351); +x_375 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_375, 0, x_358); +lean_ctor_set(x_375, 1, x_9); +return x_375; } } } } else { -lean_object* x_377; lean_object* x_378; lean_object* x_379; -x_377 = lean_ctor_get(x_348, 0); -x_378 = lean_ctor_get(x_348, 1); -lean_inc(x_378); +lean_object* x_376; lean_object* x_377; lean_object* x_378; +x_376 = lean_ctor_get(x_347, 0); +x_377 = lean_ctor_get(x_347, 1); lean_inc(x_377); -lean_dec(x_348); -x_379 = l___private_Lean_Elab_App_19__elabAppLVals(x_1, x_377, x_3, x_4, x_5, x_6, x_7, x_9, x_378); -if (lean_obj_tag(x_379) == 0) +lean_inc(x_376); +lean_dec(x_347); +x_378 = l___private_Lean_Elab_App_19__elabAppLVals(x_376, x_2, x_3, x_4, x_5, x_6, x_8, x_377); +if (lean_obj_tag(x_378) == 0) { -lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; -x_380 = lean_ctor_get(x_379, 0); +lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; +x_379 = lean_ctor_get(x_378, 0); +lean_inc(x_379); +x_380 = lean_ctor_get(x_378, 1); lean_inc(x_380); -x_381 = lean_ctor_get(x_379, 1); -lean_inc(x_381); -if (lean_is_exclusive(x_379)) { - lean_ctor_release(x_379, 0); - lean_ctor_release(x_379, 1); - x_382 = x_379; +if (lean_is_exclusive(x_378)) { + lean_ctor_release(x_378, 0); + lean_ctor_release(x_378, 1); + x_381 = x_378; } else { - lean_dec_ref(x_379); - x_382 = lean_box(0); + lean_dec_ref(x_378); + x_381 = lean_box(0); } -if (lean_is_scalar(x_382)) { - x_383 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_381)) { + x_382 = lean_alloc_ctor(0, 2, 0); } else { - x_383 = x_382; + x_382 = x_381; } -lean_ctor_set(x_383, 0, x_380); -lean_ctor_set(x_383, 1, x_381); -x_384 = lean_array_push(x_8, x_383); -x_385 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_385, 0, x_384); -lean_ctor_set(x_385, 1, x_10); -return x_385; +lean_ctor_set(x_382, 0, x_379); +lean_ctor_set(x_382, 1, x_380); +x_383 = lean_array_push(x_7, x_382); +x_384 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_384, 0, x_383); +lean_ctor_set(x_384, 1, x_9); +return x_384; } else { +lean_object* x_385; +x_385 = lean_ctor_get(x_378, 0); +lean_inc(x_385); +if (lean_obj_tag(x_385) == 0) +{ lean_object* x_386; -x_386 = lean_ctor_get(x_379, 0); +x_386 = lean_ctor_get(x_385, 0); lean_inc(x_386); if (lean_obj_tag(x_386) == 0) { -lean_object* x_387; -x_387 = lean_ctor_get(x_386, 0); +lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; +lean_dec(x_385); +x_387 = lean_ctor_get(x_378, 1); lean_inc(x_387); -if (lean_obj_tag(x_387) == 0) -{ -lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; +if (lean_is_exclusive(x_378)) { + lean_ctor_release(x_378, 0); + lean_ctor_release(x_378, 1); + x_388 = x_378; +} else { + lean_dec_ref(x_378); + x_388 = lean_box(0); +} +x_389 = lean_ctor_get(x_386, 0); +lean_inc(x_389); lean_dec(x_386); -x_388 = lean_ctor_get(x_379, 1); -lean_inc(x_388); -if (lean_is_exclusive(x_379)) { - lean_ctor_release(x_379, 0); - lean_ctor_release(x_379, 1); - x_389 = x_379; +if (lean_is_scalar(x_388)) { + x_390 = lean_alloc_ctor(1, 2, 0); } else { - lean_dec_ref(x_379); - x_389 = lean_box(0); + x_390 = x_388; } -x_390 = lean_ctor_get(x_387, 0); -lean_inc(x_390); -lean_dec(x_387); -if (lean_is_scalar(x_389)) { - x_391 = lean_alloc_ctor(1, 2, 0); -} else { - x_391 = x_389; -} -lean_ctor_set(x_391, 0, x_390); -lean_ctor_set(x_391, 1, x_388); -x_392 = lean_array_push(x_8, x_391); -x_393 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_393, 0, x_392); -lean_ctor_set(x_393, 1, x_10); -return x_393; +lean_ctor_set(x_390, 0, x_389); +lean_ctor_set(x_390, 1, x_387); +x_391 = lean_array_push(x_7, x_390); +x_392 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_392, 0, x_391); +lean_ctor_set(x_392, 1, x_9); +return x_392; } else { -lean_object* x_394; lean_object* x_395; lean_object* x_396; -lean_dec(x_10); -lean_dec(x_8); -x_394 = lean_ctor_get(x_379, 1); -lean_inc(x_394); -if (lean_is_exclusive(x_379)) { - lean_ctor_release(x_379, 0); - lean_ctor_release(x_379, 1); - x_395 = x_379; -} else { - lean_dec_ref(x_379); - x_395 = lean_box(0); -} -if (lean_is_scalar(x_395)) { - x_396 = lean_alloc_ctor(1, 2, 0); -} else { - x_396 = x_395; -} -lean_ctor_set(x_396, 0, x_386); -lean_ctor_set(x_396, 1, x_394); -return x_396; -} -} -else -{ -lean_object* x_397; lean_object* x_398; -lean_dec(x_8); -if (lean_is_exclusive(x_379)) { - lean_ctor_release(x_379, 0); - lean_ctor_release(x_379, 1); - x_397 = x_379; -} else { - lean_dec_ref(x_379); - x_397 = lean_box(0); -} -if (lean_is_scalar(x_397)) { - x_398 = lean_alloc_ctor(1, 2, 0); -} else { - x_398 = x_397; -} -lean_ctor_set(x_398, 0, x_386); -lean_ctor_set(x_398, 1, x_10); -return x_398; -} -} -} -} -else -{ -lean_object* x_399; +lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_dec(x_9); -lean_dec(x_6); +lean_dec(x_7); +x_393 = lean_ctor_get(x_378, 1); +lean_inc(x_393); +if (lean_is_exclusive(x_378)) { + lean_ctor_release(x_378, 0); + lean_ctor_release(x_378, 1); + x_394 = x_378; +} else { + lean_dec_ref(x_378); + x_394 = lean_box(0); +} +if (lean_is_scalar(x_394)) { + x_395 = lean_alloc_ctor(1, 2, 0); +} else { + x_395 = x_394; +} +lean_ctor_set(x_395, 0, x_385); +lean_ctor_set(x_395, 1, x_393); +return x_395; +} +} +else +{ +lean_object* x_396; lean_object* x_397; +lean_dec(x_7); +if (lean_is_exclusive(x_378)) { + lean_ctor_release(x_378, 0); + lean_ctor_release(x_378, 1); + x_396 = x_378; +} else { + lean_dec_ref(x_378); + x_396 = lean_box(0); +} +if (lean_is_scalar(x_396)) { + x_397 = lean_alloc_ctor(1, 2, 0); +} else { + x_397 = x_396; +} +lean_ctor_set(x_397, 0, x_385); +lean_ctor_set(x_397, 1, x_9); +return x_397; +} +} +} +} +else +{ +lean_object* x_398; +lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_399 = lean_ctor_get(x_348, 0); +lean_dec(x_2); +x_398 = lean_ctor_get(x_347, 0); +lean_inc(x_398); +if (lean_obj_tag(x_398) == 0) +{ +lean_object* x_399; +x_399 = lean_ctor_get(x_398, 0); lean_inc(x_399); if (lean_obj_tag(x_399) == 0) { -lean_object* x_400; -x_400 = lean_ctor_get(x_399, 0); -lean_inc(x_400); -if (lean_obj_tag(x_400) == 0) +uint8_t x_400; +lean_dec(x_398); +x_400 = !lean_is_exclusive(x_347); +if (x_400 == 0) { -uint8_t x_401; +lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; +x_401 = lean_ctor_get(x_347, 0); +lean_dec(x_401); +x_402 = lean_ctor_get(x_399, 0); +lean_inc(x_402); lean_dec(x_399); -x_401 = !lean_is_exclusive(x_348); -if (x_401 == 0) -{ -lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; -x_402 = lean_ctor_get(x_348, 0); -lean_dec(x_402); -x_403 = lean_ctor_get(x_400, 0); -lean_inc(x_403); -lean_dec(x_400); -lean_ctor_set(x_348, 0, x_403); -x_404 = lean_array_push(x_8, x_348); -x_405 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_405, 0, x_404); -lean_ctor_set(x_405, 1, x_10); -return x_405; +lean_ctor_set(x_347, 0, x_402); +x_403 = lean_array_push(x_7, x_347); +x_404 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_404, 0, x_403); +lean_ctor_set(x_404, 1, x_9); +return x_404; } else { -lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; -x_406 = lean_ctor_get(x_348, 1); +lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; +x_405 = lean_ctor_get(x_347, 1); +lean_inc(x_405); +lean_dec(x_347); +x_406 = lean_ctor_get(x_399, 0); lean_inc(x_406); -lean_dec(x_348); -x_407 = lean_ctor_get(x_400, 0); -lean_inc(x_407); -lean_dec(x_400); -x_408 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_408, 0, x_407); -lean_ctor_set(x_408, 1, x_406); -x_409 = lean_array_push(x_8, x_408); -x_410 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_410, 0, x_409); -lean_ctor_set(x_410, 1, x_10); -return x_410; +lean_dec(x_399); +x_407 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_407, 0, x_406); +lean_ctor_set(x_407, 1, x_405); +x_408 = lean_array_push(x_7, x_407); +x_409 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_409, 0, x_408); +lean_ctor_set(x_409, 1, x_9); +return x_409; } } else { -uint8_t x_411; -lean_dec(x_10); -lean_dec(x_8); -x_411 = !lean_is_exclusive(x_348); -if (x_411 == 0) +uint8_t x_410; +lean_dec(x_9); +lean_dec(x_7); +x_410 = !lean_is_exclusive(x_347); +if (x_410 == 0) { -lean_object* x_412; -x_412 = lean_ctor_get(x_348, 0); -lean_dec(x_412); -return x_348; +lean_object* x_411; +x_411 = lean_ctor_get(x_347, 0); +lean_dec(x_411); +return x_347; } else { -lean_object* x_413; lean_object* x_414; -x_413 = lean_ctor_get(x_348, 1); -lean_inc(x_413); -lean_dec(x_348); -x_414 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_414, 0, x_399); -lean_ctor_set(x_414, 1, x_413); -return x_414; +lean_object* x_412; lean_object* x_413; +x_412 = lean_ctor_get(x_347, 1); +lean_inc(x_412); +lean_dec(x_347); +x_413 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_413, 0, x_398); +lean_ctor_set(x_413, 1, x_412); +return x_413; } } } else { -uint8_t x_415; -lean_dec(x_8); -x_415 = !lean_is_exclusive(x_348); -if (x_415 == 0) +uint8_t x_414; +lean_dec(x_7); +x_414 = !lean_is_exclusive(x_347); +if (x_414 == 0) { -lean_object* x_416; lean_object* x_417; -x_416 = lean_ctor_get(x_348, 1); +lean_object* x_415; lean_object* x_416; +x_415 = lean_ctor_get(x_347, 1); +lean_dec(x_415); +x_416 = lean_ctor_get(x_347, 0); lean_dec(x_416); -x_417 = lean_ctor_get(x_348, 0); -lean_dec(x_417); -lean_ctor_set(x_348, 1, x_10); -return x_348; +lean_ctor_set(x_347, 1, x_9); +return x_347; } else { -lean_object* x_418; -lean_dec(x_348); -x_418 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_418, 0, x_399); -lean_ctor_set(x_418, 1, x_10); -return x_418; +lean_object* x_417; +lean_dec(x_347); +x_417 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_417, 0, x_398); +lean_ctor_set(x_417, 1, x_9); +return x_417; } } } } else { -lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; -lean_dec(x_2); -x_419 = l_Lean_Syntax_getId(x_341); -lean_dec(x_341); -x_420 = l_Lean_Name_eraseMacroScopes(x_419); -lean_dec(x_419); -x_421 = l_Lean_Name_components(x_420); -x_422 = l_List_map___main___at___private_Lean_Elab_App_21__elabAppFn___main___spec__1(x_421); -x_423 = l_List_append___rarg(x_422, x_3); -x_2 = x_339; -x_3 = x_423; +lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; +lean_dec(x_1); +x_418 = l_Lean_Syntax_getId(x_340); +lean_dec(x_340); +x_419 = l_Lean_Name_eraseMacroScopes(x_418); +lean_dec(x_418); +x_420 = l_Lean_Name_components(x_419); +x_421 = l_List_map___main___at___private_Lean_Elab_App_21__elabAppFn___main___spec__1(x_420); +x_422 = l_List_append___rarg(x_421, x_2); +x_1 = x_338; +x_2 = x_422; goto _start; } } else { -lean_object* x_425; lean_object* x_426; -lean_dec(x_2); -x_425 = l_Lean_fieldIdxKind; -x_426 = l_Lean_Syntax_isNatLitAux(x_425, x_341); -lean_dec(x_341); -if (lean_obj_tag(x_426) == 0) +lean_object* x_424; lean_object* x_425; +lean_dec(x_1); +x_424 = l_Lean_fieldIdxKind; +x_425 = l_Lean_Syntax_isNatLitAux(x_424, x_340); +lean_dec(x_340); +if (lean_obj_tag(x_425) == 0) { -lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; -x_427 = l_Nat_Inhabited; -x_428 = l_Option_get_x21___rarg___closed__3; -x_429 = lean_panic_fn(x_427, x_428); -x_430 = lean_alloc_ctor(0, 1, 0); +lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; +x_426 = l_Nat_Inhabited; +x_427 = l_Option_get_x21___rarg___closed__3; +x_428 = lean_panic_fn(x_426, x_427); +x_429 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_429, 0, x_428); +x_430 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_430, 0, x_429); -x_431 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_431, 0, x_430); -lean_ctor_set(x_431, 1, x_3); -x_2 = x_339; -x_3 = x_431; +lean_ctor_set(x_430, 1, x_2); +x_1 = x_338; +x_2 = x_430; goto _start; } else { -lean_object* x_433; lean_object* x_434; lean_object* x_435; -x_433 = lean_ctor_get(x_426, 0); -lean_inc(x_433); -lean_dec(x_426); -x_434 = lean_alloc_ctor(0, 1, 0); +lean_object* x_432; lean_object* x_433; lean_object* x_434; +x_432 = lean_ctor_get(x_425, 0); +lean_inc(x_432); +lean_dec(x_425); +x_433 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_433, 0, x_432); +x_434 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_434, 0, x_433); -x_435 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_435, 0, x_434); -lean_ctor_set(x_435, 1, x_3); -x_2 = x_339; -x_3 = x_435; +lean_ctor_set(x_434, 1, x_2); +x_1 = x_338; +x_2 = x_434; goto _start; } } @@ -16770,36 +20749,37 @@ goto _start; } else { -lean_object* x_445; uint8_t x_446; -x_445 = l_Lean_Syntax_getArgs(x_2); -x_446 = !lean_is_exclusive(x_9); -if (x_446 == 0) +lean_object* x_444; uint8_t x_445; +x_444 = l_Lean_Syntax_getArgs(x_1); +x_445 = !lean_is_exclusive(x_8); +if (x_445 == 0) { -uint8_t x_447; lean_object* x_448; lean_object* x_449; -x_447 = 0; -lean_ctor_set_uint8(x_9, sizeof(void*)*10 + 1, x_447); -x_448 = lean_unsigned_to_nat(0u); -x_449 = l_Array_iterateMAux___main___at___private_Lean_Elab_App_21__elabAppFn___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_445, x_448, x_8, x_9, x_10); -lean_dec(x_445); -lean_dec(x_2); -return x_449; +uint8_t x_446; lean_object* x_447; lean_object* x_448; +x_446 = 0; +lean_ctor_set_uint8(x_8, sizeof(void*)*11 + 1, x_446); +x_447 = lean_unsigned_to_nat(0u); +x_448 = l_Array_iterateMAux___main___at___private_Lean_Elab_App_21__elabAppFn___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_444, x_447, x_7, x_8, x_9); +lean_dec(x_444); +lean_dec(x_1); +return x_448; } else { -lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; uint8_t x_460; uint8_t x_461; uint8_t x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; -x_450 = lean_ctor_get(x_9, 0); -x_451 = lean_ctor_get(x_9, 1); -x_452 = lean_ctor_get(x_9, 2); -x_453 = lean_ctor_get(x_9, 3); -x_454 = lean_ctor_get(x_9, 4); -x_455 = lean_ctor_get(x_9, 5); -x_456 = lean_ctor_get(x_9, 6); -x_457 = lean_ctor_get(x_9, 7); -x_458 = lean_ctor_get(x_9, 8); -x_459 = lean_ctor_get(x_9, 9); -x_460 = lean_ctor_get_uint8(x_9, sizeof(void*)*10); -x_461 = lean_ctor_get_uint8(x_9, sizeof(void*)*10 + 2); -lean_inc(x_459); +lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; uint8_t x_459; uint8_t x_460; lean_object* x_461; uint8_t x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; +x_449 = lean_ctor_get(x_8, 0); +x_450 = lean_ctor_get(x_8, 1); +x_451 = lean_ctor_get(x_8, 2); +x_452 = lean_ctor_get(x_8, 3); +x_453 = lean_ctor_get(x_8, 4); +x_454 = lean_ctor_get(x_8, 5); +x_455 = lean_ctor_get(x_8, 6); +x_456 = lean_ctor_get(x_8, 7); +x_457 = lean_ctor_get(x_8, 8); +x_458 = lean_ctor_get(x_8, 9); +x_459 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); +x_460 = lean_ctor_get_uint8(x_8, sizeof(void*)*11 + 2); +x_461 = lean_ctor_get(x_8, 10); +lean_inc(x_461); lean_inc(x_458); lean_inc(x_457); lean_inc(x_456); @@ -16809,26 +20789,28 @@ lean_inc(x_453); lean_inc(x_452); lean_inc(x_451); lean_inc(x_450); -lean_dec(x_9); +lean_inc(x_449); +lean_dec(x_8); x_462 = 0; -x_463 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_463, 0, x_450); -lean_ctor_set(x_463, 1, x_451); -lean_ctor_set(x_463, 2, x_452); -lean_ctor_set(x_463, 3, x_453); -lean_ctor_set(x_463, 4, x_454); -lean_ctor_set(x_463, 5, x_455); -lean_ctor_set(x_463, 6, x_456); -lean_ctor_set(x_463, 7, x_457); -lean_ctor_set(x_463, 8, x_458); -lean_ctor_set(x_463, 9, x_459); -lean_ctor_set_uint8(x_463, sizeof(void*)*10, x_460); -lean_ctor_set_uint8(x_463, sizeof(void*)*10 + 1, x_462); -lean_ctor_set_uint8(x_463, sizeof(void*)*10 + 2, x_461); +x_463 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_463, 0, x_449); +lean_ctor_set(x_463, 1, x_450); +lean_ctor_set(x_463, 2, x_451); +lean_ctor_set(x_463, 3, x_452); +lean_ctor_set(x_463, 4, x_453); +lean_ctor_set(x_463, 5, x_454); +lean_ctor_set(x_463, 6, x_455); +lean_ctor_set(x_463, 7, x_456); +lean_ctor_set(x_463, 8, x_457); +lean_ctor_set(x_463, 9, x_458); +lean_ctor_set(x_463, 10, x_461); +lean_ctor_set_uint8(x_463, sizeof(void*)*11, x_459); +lean_ctor_set_uint8(x_463, sizeof(void*)*11 + 1, x_462); +lean_ctor_set_uint8(x_463, sizeof(void*)*11 + 2, x_460); x_464 = lean_unsigned_to_nat(0u); -x_465 = l_Array_iterateMAux___main___at___private_Lean_Elab_App_21__elabAppFn___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_445, x_464, x_8, x_463, x_10); -lean_dec(x_445); -lean_dec(x_2); +x_465 = l_Array_iterateMAux___main___at___private_Lean_Elab_App_21__elabAppFn___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_444, x_464, x_7, x_463, x_9); +lean_dec(x_444); +lean_dec(x_1); return x_465; } } @@ -16837,49 +20819,49 @@ else { lean_object* x_466; lean_object* x_467; x_466 = lean_box(0); -x_467 = l___private_Lean_Elab_App_20__elabAppFnId(x_1, x_2, x_466, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_467 = l___private_Lean_Elab_App_20__elabAppFnId(x_1, x_466, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_467; } } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_App_21__elabAppFn___main___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* l_Array_iterateMAux___main___at___private_Lean_Elab_App_21__elabAppFn___main___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) { _start: { -uint8_t x_13; lean_object* x_14; -x_13 = lean_unbox(x_7); +uint8_t x_12; lean_object* x_13; +x_12 = lean_unbox(x_6); +lean_dec(x_6); +x_13 = l_Array_iterateMAux___main___at___private_Lean_Elab_App_21__elabAppFn___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_12, x_7, x_8, x_9, x_10, x_11); lean_dec(x_7); -x_14 = l_Array_iterateMAux___main___at___private_Lean_Elab_App_21__elabAppFn___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_13, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_8); -lean_dec(x_2); -return x_14; +lean_dec(x_1); +return x_13; } } -lean_object* l___private_Lean_Elab_App_21__elabAppFn___main___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___private_Lean_Elab_App_21__elabAppFn___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -uint8_t x_11; lean_object* x_12; -x_11 = lean_unbox(x_7); -lean_dec(x_7); -x_12 = l___private_Lean_Elab_App_21__elabAppFn___main(x_1, x_2, x_3, x_4, x_5, x_6, x_11, x_8, x_9, x_10); -return x_12; -} -} -lean_object* l___private_Lean_Elab_App_21__elabAppFn(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = l___private_Lean_Elab_App_21__elabAppFn___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +uint8_t x_10; lean_object* x_11; +x_10 = lean_unbox(x_6); +lean_dec(x_6); +x_11 = l___private_Lean_Elab_App_21__elabAppFn___main(x_1, x_2, x_3, x_4, x_5, x_10, x_7, x_8, x_9); return x_11; } } -lean_object* l___private_Lean_Elab_App_21__elabAppFn___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___private_Lean_Elab_App_21__elabAppFn(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -uint8_t x_11; lean_object* x_12; -x_11 = lean_unbox(x_7); -lean_dec(x_7); -x_12 = l___private_Lean_Elab_App_21__elabAppFn(x_1, x_2, x_3, x_4, x_5, x_6, x_11, x_8, x_9, x_10); -return x_12; +lean_object* x_10; +x_10 = l___private_Lean_Elab_App_21__elabAppFn___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_10; +} +} +lean_object* l___private_Lean_Elab_App_21__elabAppFn___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +uint8_t x_10; lean_object* x_11; +x_10 = lean_unbox(x_6); +lean_dec(x_6); +x_11 = l___private_Lean_Elab_App_21__elabAppFn(x_1, x_2, x_3, x_4, x_5, x_10, x_7, x_8, x_9); +return x_11; } } lean_object* l_Array_filterAux___main___at___private_Lean_Elab_App_22__getSuccess___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { @@ -17005,7 +20987,7 @@ lean_object* l___private_Lean_Elab_App_23__toMessageData(lean_object* x_1, lean_ _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; -x_5 = l_Lean_Elab_getPos___at_Lean_Elab_Term_throwError___spec__2(x_2, x_3, x_4); +x_5 = l_Lean_Elab_getPos___at_Lean_Elab_Term_throwErrorAt___spec__2(x_2, x_3, x_4); x_6 = lean_ctor_get(x_5, 0); lean_inc(x_6); x_7 = lean_ctor_get(x_5, 1); @@ -17307,7 +21289,7 @@ x_13 = l___private_Lean_Elab_App_24__mergeFailures___rarg___closed__3; x_14 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_14, 0, x_13); lean_ctor_set(x_14, 1, x_12); -x_15 = l_Lean_Elab_Term_throwError___rarg(x_2, x_14, x_3, x_11); +x_15 = l_Lean_Elab_Term_throwErrorAt___rarg(x_2, x_14, x_3, x_11); lean_dec(x_2); return x_15; } @@ -17458,129 +21440,129 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_App_25__elabAppAux(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* l___private_Lean_Elab_App_25__elabAppAux(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_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; -x_8 = lean_box(0); -x_9 = 0; -x_10 = l_Array_empty___closed__1; -lean_inc(x_6); -lean_inc(x_2); -x_11 = l___private_Lean_Elab_App_21__elabAppFn___main(x_1, x_2, x_8, x_3, x_4, x_5, x_9, x_10, x_6, x_7); -if (lean_obj_tag(x_11) == 0) +lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; +x_7 = lean_box(0); +x_8 = 0; +x_9 = l_Array_empty___closed__1; +lean_inc(x_5); +lean_inc(x_1); +x_10 = l___private_Lean_Elab_App_21__elabAppFn___main(x_1, x_7, x_2, x_3, x_4, x_8, x_9, x_5, x_6); +if (lean_obj_tag(x_10) == 0) { -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_12 = lean_ctor_get(x_11, 0); +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); lean_inc(x_12); -x_13 = lean_ctor_get(x_11, 1); -lean_inc(x_13); -lean_dec(x_11); -x_14 = lean_array_get_size(x_12); -x_15 = lean_unsigned_to_nat(1u); -x_16 = lean_nat_dec_eq(x_14, x_15); -lean_dec(x_14); -if (x_16 == 0) +lean_dec(x_10); +x_13 = lean_array_get_size(x_11); +x_14 = lean_unsigned_to_nat(1u); +x_15 = lean_nat_dec_eq(x_13, x_14); +lean_dec(x_13); +if (x_15 == 0) { -lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; -x_17 = lean_unsigned_to_nat(0u); -lean_inc(x_12); -x_18 = l_Array_filterAux___main___at___private_Lean_Elab_App_22__getSuccess___spec__1(x_12, x_17, x_17); -x_19 = lean_array_get_size(x_18); -x_20 = lean_nat_dec_eq(x_19, x_15); +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_16 = lean_unsigned_to_nat(0u); +lean_inc(x_11); +x_17 = l_Array_filterAux___main___at___private_Lean_Elab_App_22__getSuccess___spec__1(x_11, x_16, x_16); +x_18 = lean_array_get_size(x_17); +x_19 = lean_nat_dec_eq(x_18, x_14); +if (x_19 == 0) +{ +uint8_t x_20; +x_20 = lean_nat_dec_lt(x_14, x_18); +lean_dec(x_18); if (x_20 == 0) { -uint8_t x_21; -x_21 = lean_nat_dec_lt(x_15, x_19); -lean_dec(x_19); -if (x_21 == 0) -{ -lean_object* x_22; -lean_dec(x_18); -x_22 = l___private_Lean_Elab_App_24__mergeFailures___rarg(x_12, x_2, x_6, x_13); -return x_22; +lean_object* x_21; +lean_dec(x_17); +x_21 = l___private_Lean_Elab_App_24__mergeFailures___rarg(x_11, x_1, x_5, x_12); +return x_21; } else { -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_34; lean_object* x_35; -lean_dec(x_12); -x_23 = l_Lean_Elab_Term_getLCtx(x_6, x_13); -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_Lean_Elab_Term_getOptions(x_6, x_25); -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 = x_18; -x_30 = l_Array_umapMAux___main___at___private_Lean_Elab_App_25__elabAppAux___spec__1(x_24, x_27, x_17, x_29); -x_31 = x_30; -x_32 = l_Lean_MessageData_ofArray(x_31); -lean_dec(x_31); -x_33 = l___private_Lean_Elab_App_25__elabAppAux___closed__3; -x_34 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_32); -x_35 = l_Lean_Elab_Term_throwError___rarg(x_2, x_34, x_6, x_28); -lean_dec(x_2); -return x_35; -} -} -else -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; -lean_dec(x_19); -lean_dec(x_12); -lean_dec(x_2); -x_36 = l_Lean_Elab_Term_TermElabResult_inhabited; -x_37 = lean_array_get(x_36, x_18, x_17); -lean_dec(x_18); -x_38 = l_Lean_Elab_Term_applyResult(x_37, x_6, x_13); -lean_dec(x_13); -lean_dec(x_6); -return x_38; -} -} -else -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -lean_dec(x_2); -x_39 = l_Lean_Elab_Term_TermElabResult_inhabited; -x_40 = lean_unsigned_to_nat(0u); -x_41 = lean_array_get(x_39, x_12, x_40); -lean_dec(x_12); -x_42 = l_Lean_Elab_Term_applyResult(x_41, x_6, x_13); -lean_dec(x_13); -lean_dec(x_6); -return x_42; -} -} -else -{ -uint8_t x_43; -lean_dec(x_6); -lean_dec(x_2); -x_43 = !lean_is_exclusive(x_11); -if (x_43 == 0) -{ -return x_11; -} -else -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_11, 0); -x_45 = lean_ctor_get(x_11, 1); -lean_inc(x_45); -lean_inc(x_44); +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_34; lean_dec(x_11); -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; +x_22 = l_Lean_Elab_Term_getLCtx(x_5, x_12); +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +x_25 = l_Lean_Elab_Term_getOptions(x_5, x_24); +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); +x_28 = x_17; +x_29 = l_Array_umapMAux___main___at___private_Lean_Elab_App_25__elabAppAux___spec__1(x_23, x_26, x_16, x_28); +x_30 = x_29; +x_31 = l_Lean_MessageData_ofArray(x_30); +lean_dec(x_30); +x_32 = l___private_Lean_Elab_App_25__elabAppAux___closed__3; +x_33 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_31); +x_34 = l_Lean_Elab_Term_throwErrorAt___rarg(x_1, x_33, x_5, x_27); +lean_dec(x_1); +return x_34; +} +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +lean_dec(x_18); +lean_dec(x_11); +lean_dec(x_1); +x_35 = l_Lean_Elab_Term_TermElabResult_inhabited; +x_36 = lean_array_get(x_35, x_17, x_16); +lean_dec(x_17); +x_37 = l_Lean_Elab_Term_applyResult(x_36, x_5, x_12); +lean_dec(x_12); +lean_dec(x_5); +return x_37; +} +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +lean_dec(x_1); +x_38 = l_Lean_Elab_Term_TermElabResult_inhabited; +x_39 = lean_unsigned_to_nat(0u); +x_40 = lean_array_get(x_38, x_11, x_39); +lean_dec(x_11); +x_41 = l_Lean_Elab_Term_applyResult(x_40, x_5, x_12); +lean_dec(x_12); +lean_dec(x_5); +return x_41; +} +} +else +{ +uint8_t x_42; +lean_dec(x_5); +lean_dec(x_1); +x_42 = !lean_is_exclusive(x_10); +if (x_42 == 0) +{ +return x_10; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_10, 0); +x_44 = lean_ctor_get(x_10, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_10); +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; } } } @@ -17640,14 +21622,14 @@ x_24 = l_Lean_Name_eraseMacroScopes(x_23); lean_dec(x_23); x_25 = lean_unsigned_to_nat(3u); x_26 = l_Lean_Syntax_getArg(x_10, x_25); +lean_dec(x_10); x_27 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_27, 0, x_26); x_28 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_28, 0, x_24); lean_ctor_set(x_28, 1, x_27); lean_inc(x_5); -x_29 = l_Lean_Elab_Term_addNamedArg(x_10, x_14, x_28, x_5, x_6); -lean_dec(x_10); +x_29 = l_Lean_Elab_Term_addNamedArg(x_14, x_28, x_5, x_6); if (lean_obj_tag(x_29) == 0) { lean_object* x_30; lean_object* x_31; @@ -17725,14 +21707,14 @@ x_48 = l_Lean_Name_eraseMacroScopes(x_47); lean_dec(x_47); x_49 = lean_unsigned_to_nat(3u); x_50 = l_Lean_Syntax_getArg(x_10, x_49); +lean_dec(x_10); x_51 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_51, 0, x_50); x_52 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_52, 0, x_48); lean_ctor_set(x_52, 1, x_51); lean_inc(x_5); -x_53 = l_Lean_Elab_Term_addNamedArg(x_10, x_37, x_52, x_5, x_6); -lean_dec(x_10); +x_53 = l_Lean_Elab_Term_addNamedArg(x_37, x_52, x_5, x_6); if (lean_obj_tag(x_53) == 0) { lean_object* x_54; lean_object* x_55; lean_object* x_56; @@ -17893,7 +21875,7 @@ lean_inc(x_10); x_11 = lean_ctor_get(x_7, 1); lean_inc(x_11); lean_dec(x_7); -x_12 = l___private_Lean_Elab_App_25__elabAppAux(x_1, x_9, x_10, x_11, x_2, x_3, x_8); +x_12 = l___private_Lean_Elab_App_25__elabAppAux(x_9, x_10, x_11, x_2, x_3, x_8); return x_12; } else @@ -17901,7 +21883,6 @@ else uint8_t x_13; lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); x_13 = !lean_is_exclusive(x_5); if (x_13 == 0) { @@ -17923,11 +21904,20 @@ return x_16; } } } +lean_object* l_Lean_Elab_Term_elabApp___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_Elab_Term_elabApp(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabApp___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabApp), 4, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabApp___boxed), 4, 0); return x_1; } } @@ -17947,8 +21937,7 @@ _start: { lean_object* x_5; lean_object* x_6; x_5 = l_Array_empty___closed__1; -lean_inc(x_1); -x_6 = l___private_Lean_Elab_App_25__elabAppAux(x_1, x_1, x_5, x_5, x_2, x_3, x_4); +x_6 = l___private_Lean_Elab_App_25__elabAppAux(x_1, x_5, x_5, x_2, x_3, x_4); return x_6; } } diff --git a/stage0/stdlib/Lean/Elab/Binders.c b/stage0/stdlib/Lean/Elab/Binders.c index 603871792f..ac7bbab3e6 100644 --- a/stage0/stdlib/Lean/Elab/Binders.c +++ b/stage0/stdlib/Lean/Elab/Binders.c @@ -16,10 +16,11 @@ extern "C" { lean_object* l___private_Lean_Elab_Binders_4__expandBinderModifier(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabBinder___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabBinders(lean_object*); -lean_object* l_Lean_Elab_Term_mkForall(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkForall(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_quoteAutoTactic___main___closed__12; lean_object* l___private_Lean_Elab_Binders_14__elabFunBinderViews___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Binders_2__expandBinderIdent(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_throwErrorAt___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_quoteAutoTactic___main___closed__13; lean_object* l_Lean_Elab_Term_elabLetDecl(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Binders_4__expandBinderModifier___closed__3; @@ -27,7 +28,7 @@ lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__12; extern lean_object* l___private_Lean_Meta_ExprDefEq_8__checkTypesAndAssign___closed__7; lean_object* l_Lean_Elab_Term_elabDepArrow___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_instantiateMVars(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabForall___closed__1; extern lean_object* l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__10; lean_object* l_unreachable_x21___rarg(lean_object*); @@ -41,19 +42,18 @@ lean_object* l___private_Lean_Elab_Binders_15__regTraceClasses(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabDepArrow___closed__1; extern lean_object* l_Lean_List_format___rarg___closed__2; uint8_t lean_name_eq(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_elabLetDeclAux___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabLetDeclAux___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabBinder___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabFun(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_forall___elambda__1___closed__2; extern lean_object* l_Lean_identKind___closed__2; -lean_object* l_Lean_Elab_Term_elabForall___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_typeAscription___elambda__1___closed__1; extern lean_object* l_Lean_Parser_Term_match___elambda__1___closed__1; lean_object* l_Lean_Elab_Term_expandFunBinders___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; lean_object* l_Lean_Elab_Term_FunBinders_elabFunBindersAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_declareTacticSyntax___closed__1; -lean_object* l_Lean_Elab_Term_elabLetDeclAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabLetDeclAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Binders_5__getBinderIds___spec__1___closed__1; extern lean_object* l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; @@ -64,9 +64,10 @@ extern lean_object* l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3_ lean_object* l_Lean_Elab_Term_elabFunBinders___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_declareTacticSyntax___closed__2; lean_object* l_Lean_mkIdentFrom(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_compileDecl(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_compileDecl(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__6; -lean_object* l_Lean_Elab_Term_mkLambda(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__1; +lean_object* l_Lean_Elab_Term_mkLambda(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; lean_object* lean_expr_instantiate1(lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); @@ -78,7 +79,7 @@ lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Binders_11__expand lean_object* l_Lean_Elab_Term_declareTacticSyntax___closed__3; lean_object* lean_string_utf8_byte_size(lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_withLetDecl___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_withLetDecl___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getMainModule___rarg(lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Binders_5__getBinderIds___spec__1___closed__2; lean_object* l_Lean_Elab_Term_quoteAutoTactic___main___closed__10; @@ -89,16 +90,16 @@ extern lean_object* l_Lean_mkAppStx___closed__7; lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Binders_9__getFunBinderIdsAux_x3f___main(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_matchDiscr___elambda__1___closed__2; -lean_object* l_Lean_Elab_Term_ensureHasType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_ensureHasType(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_quoteAutoTactic___main___spec__1___closed__2; lean_object* l___private_Lean_Elab_Binders_3__expandOptIdent___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkFreshAnonymousIdent(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_binderTactic___elambda__1___closed__2; lean_object* l___regBuiltin_Lean_Elab_Term_elabArrow(lean_object*); -lean_object* l_Lean_Elab_Term_mkLet(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkLet(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Binders_6__matchBinder___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getOptions(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_addDecl(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_addDecl(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkTermIdFromIdent___closed__2; lean_object* l_Lean_Syntax_isSimpleTermId_x3f(lean_object*, uint8_t); extern lean_object* l___private_Lean_Meta_Tactic_Apply_3__throwApplyError___rarg___closed__6; @@ -111,7 +112,6 @@ lean_object* l___private_Lean_Elab_Binders_4__expandBinderModifier___boxed(lean_ uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabLetDeclAux___closed__2; lean_object* l_Lean_Elab_Term_quoteAutoTactic___main___closed__1; -lean_object* l_Lean_Elab_Term_elabLetDeclAux___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkFreshFVarId___rarg(lean_object*); lean_object* l___private_Lean_Elab_Binders_4__expandBinderModifier___closed__2; lean_object* l_Lean_Elab_Term_declareTacticSyntax(lean_object*, lean_object*, lean_object*); @@ -125,31 +125,31 @@ lean_object* l_Lean_Elab_Term_elabLetDeclAux___closed__1; lean_object* l___private_Lean_Elab_Binders_4__expandBinderModifier___closed__8; extern lean_object* l_Lean_Parser_Term_instBinder___elambda__1___closed__2; lean_object* l___regBuiltin_Lean_Elab_Term_elabFun___closed__1; -lean_object* l_Lean_Elab_Term_elabLetDeclAux___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabLetDeclAux___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Binders_7__elabBinderViews___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__3; extern lean_object* l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__6; lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_quoteAutoTactic___main___spec__1___closed__1; +lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Binders_7__elabBinderViews___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabForall___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_quoteAutoTactic___main___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*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_elabLetDeclAux___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_Elab_Term_elabLetDeclAux___boxed(lean_object*, lean_object*, lean_object*, 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_Elab_Binders_11__expandFunBindersAux___main___closed__5; lean_object* l_Lean_Elab_Term_quoteAutoTactic___main___closed__11; lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Binders_8__elabBindersAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_elabFun___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Term_5__expandCDot___main___closed__2; lean_object* l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__7; lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_quoteAutoTactic___main___spec__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* l___regBuiltin_Lean_Elab_Term_elabLetBangDecl(lean_object*); -lean_object* l_Lean_Elab_Term_elabTermAux___main(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabFun___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__10; lean_object* l_Lean_Elab_Term_logTrace(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabArrow___lambda__1___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_explicitBinder___elambda__1___closed__2; -lean_object* l_Lean_Elab_Term_elabForall___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabForall___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getId(lean_object*); lean_object* l_Lean_Elab_Term_elabFunBinders(lean_object*); extern lean_object* l_Lean_Parser_Term_instBinder___elambda__1___closed__1; @@ -157,7 +157,7 @@ lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Binders_6__matchBinder___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__21; extern lean_object* l___private_Lean_Meta_ExprDefEq_8__checkTypesAndAssign___closed__8; -lean_object* l_Lean_Elab_Term_throwError___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_throwError___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_fun___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_elabArrow___lambda__1___closed__1; lean_object* l_Lean_Elab_Term_elabBinder___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); @@ -165,11 +165,11 @@ lean_object* l_Lean_Elab_Term_getCurrMacroScope(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Binders_2__expandBinderIdent___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabArrow___lambda__1___closed__2; lean_object* l___private_Lean_Elab_Binders_10__getFunBinderIds_x3f(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Binders_13__propagateExpectedType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Binders_13__propagateExpectedType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Binders_14__elabFunBinderViews___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandOptType(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_withLocalDecl___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Binders_12__checkNoOptAutoParam(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_withLocalDecl___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Binders_12__checkNoOptAutoParam(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabForall(lean_object*); extern lean_object* l_Lean_mkAppStx___closed__6; lean_object* l_Lean_Elab_Term_quoteAutoTactic___main___closed__6; @@ -188,7 +188,7 @@ extern lean_object* l___private_Lean_Parser_Parser_2__sepByFnAux___main___at_Lea lean_object* l_Lean_Elab_Term_getLocalInsts(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Binders_12__checkNoOptAutoParam___closed__2; lean_object* l_Lean_Elab_Term_mkFreshInstanceName___rarg(lean_object*); -lean_object* l_Lean_Elab_Term_isClass(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_isClass(lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Elab_Term_Quotation_isAntiquot(lean_object*); lean_object* l_Lean_Elab_Term_elabLetBangDecl___closed__1; @@ -200,7 +200,6 @@ lean_object* l_Lean_Elab_Term_elabLetBangDecl___closed__2; uint8_t l_Lean_Expr_isAutoParam(lean_object*); extern lean_object* l_Lean_Expr_getAutoParamTactic_x3f___closed__2; extern lean_object* l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; -lean_object* l_Lean_Elab_Term_elabLetDeclAux___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Binders_3__expandOptIdent(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabBinders___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -211,7 +210,7 @@ extern lean_object* l___private_Lean_Elab_Quotation_2__quoteSyntax___main___clos lean_object* l_Lean_Elab_Term_FunBinders_elabFunBindersAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_termElabAttribute; lean_object* l___regBuiltin_Lean_Elab_Term_elabLetBangDecl___closed__1; -lean_object* l_Lean_Elab_Term_isDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_isDefEq(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkAppStx___closed__3; lean_object* lean_local_ctx_mk_local_decl(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); extern lean_object* l_Lean_identKind; @@ -222,7 +221,7 @@ extern lean_object* l___private_Lean_Elab_Quotation_8__letBindRhss___main___clos lean_object* l_Lean_Elab_Term_elabArrow(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabArrow___lambda__1___closed__5; extern lean_object* l_Lean_mkAppStx___closed__5; -lean_object* l_Lean_Elab_Term_elabFun___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabFun___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getNumArgs(lean_object*); lean_object* l_Lean_mkHole(lean_object*); lean_object* l_Lean_Elab_Term_getLCtx(lean_object*, lean_object*); @@ -247,12 +246,12 @@ lean_object* l_Lean_Elab_Term_quoteAutoTactic___main___closed__2; lean_object* l___private_Lean_Elab_Binders_4__expandBinderModifier___closed__6; extern lean_object* l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__5; lean_object* l___private_Lean_Elab_Binders_12__checkNoOptAutoParam___closed__5; -lean_object* l_Lean_Elab_Term_elabLetDeclAux___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabLetDeclAux___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Binders_14__elabFunBinderViews(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__1; extern lean_object* l___private_Init_Util_1__mkPanicMessage___closed__2; lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Binders_6__matchBinder___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__15; +lean_object* l_Lean_Elab_Term_getCurrRef(lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__3; extern lean_object* l_Lean_mkHole___closed__1; lean_object* l_Lean_Elab_Term_mkExplicitBinder(lean_object*, lean_object*); @@ -270,7 +269,7 @@ extern lean_object* l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer_ lean_object* l_Lean_Elab_Term_expandFunBinders(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabLetBangDecl(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__4; -lean_object* l_Lean_Elab_Term_whnfForall(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_whnfForall(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isNone(lean_object*); lean_object* l_Lean_Elab_Term_resetSynthInstanceCache___rarg(lean_object*); lean_object* l___private_Lean_Elab_Binders_8__elabBindersAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -292,13 +291,11 @@ extern lean_object* l___private_Lean_Elab_Util_1__evalSyntaxConstantUnsafe___clo extern lean_object* l_Lean_mkHole___closed__2; lean_object* l_Lean_Elab_Term_elabBinders___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__9; -lean_object* l_Lean_Elab_Term_elabLetDeclAux___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); extern lean_object* l_Lean_mkOptionalNode___closed__2; lean_object* l_Lean_Elab_Term_declareTacticSyntax___closed__4; lean_object* l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__8; extern lean_object* l_Lean_Parser_Term_typeSpec___elambda__1___closed__2; -lean_object* l___private_Lean_Elab_Binders_12__checkNoOptAutoParam___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Binders_12__checkNoOptAutoParam___closed__1; lean_object* l___regBuiltin_Lean_Elab_Term_elabLetDecl(lean_object*); lean_object* l_Lean_Elab_Term_elabArrow___lambda__1(lean_object*, lean_object*, lean_object*); @@ -326,7 +323,7 @@ lean_object* l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___boxe lean_object* l___regBuiltin_Lean_Elab_Term_elabLetDecl___closed__1; lean_object* l___private_Lean_Elab_Binders_5__getBinderIds___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_addParenHeuristic___closed__1; -lean_object* l___private_Lean_Elab_Binders_13__propagateExpectedType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Binders_13__propagateExpectedType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__1; lean_object* l_Lean_Elab_Term_elabLetDecl___closed__3; lean_object* l___regBuiltin_Lean_Elab_Term_elabDepArrow(lean_object*); @@ -571,7 +568,7 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); x_62 = l_Array_iterateMAux___main___at_Lean_Elab_Term_quoteAutoTactic___main___spec__1___closed__3; -x_63 = l_Lean_Elab_Term_throwError___rarg(x_20, x_62, x_15, x_16); +x_63 = l_Lean_Elab_Term_throwErrorAt___rarg(x_20, x_62, x_15, x_16); lean_dec(x_20); x_64 = !lean_is_exclusive(x_63); if (x_64 == 0) @@ -1162,7 +1159,7 @@ lean_object* x_137; lean_object* x_138; lean_dec(x_8); lean_dec(x_7); x_137 = l_Array_iterateMAux___main___at_Lean_Elab_Term_quoteAutoTactic___main___spec__1___closed__3; -x_138 = l_Lean_Elab_Term_throwError___rarg(x_1, x_137, x_2, x_3); +x_138 = l_Lean_Elab_Term_throwErrorAt___rarg(x_1, x_137, x_2, x_3); lean_dec(x_1); return x_138; } @@ -1358,7 +1355,7 @@ default: { lean_object* x_233; lean_object* x_234; x_233 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__13; -x_234 = l_Lean_Elab_Term_throwError___rarg(x_1, x_233, x_2, x_3); +x_234 = l_Lean_Elab_Term_throwErrorAt___rarg(x_1, x_233, x_2, x_3); lean_dec(x_1); return x_234; } @@ -1479,18 +1476,17 @@ lean_dec(x_19); x_22 = l_Lean_Elab_Term_declareTacticSyntax___closed__4; x_23 = 1; lean_inc(x_2); -lean_inc(x_20); -x_24 = l_Lean_Elab_Term_elabTermAux___main(x_22, x_23, x_23, x_20, x_2, x_21); +x_24 = l_Lean_Elab_Term_elabTerm(x_20, x_22, x_23, x_2, x_21); if (lean_obj_tag(x_24) == 0) { -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; uint8_t x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; +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; uint8_t x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; x_25 = lean_ctor_get(x_24, 0); lean_inc(x_25); x_26 = lean_ctor_get(x_24, 1); lean_inc(x_26); lean_dec(x_24); lean_inc(x_2); -x_27 = l_Lean_Elab_Term_instantiateMVars(x_20, x_25, x_2, x_26); +x_27 = l_Lean_Elab_Term_instantiateMVars(x_25, x_2, x_26); x_28 = lean_ctor_get(x_27, 0); lean_inc(x_28); x_29 = lean_ctor_get(x_27, 1); @@ -1512,71 +1508,122 @@ lean_ctor_set(x_34, 2, x_32); lean_ctor_set_uint8(x_34, sizeof(void*)*3, x_33); x_35 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_35, 0, x_34); -x_36 = l_Lean_Elab_Term_getOptions(x_2, x_29); -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -x_38 = lean_ctor_get(x_36, 1); -lean_inc(x_38); -lean_dec(x_36); -x_39 = l_Lean_Elab_Term_declareTacticSyntax___closed__5; -x_40 = l_Lean_checkTraceOption(x_37, x_39); -lean_dec(x_37); -if (x_40 == 0) +x_53 = l_Lean_Elab_Term_getOptions(x_2, x_29); +x_54 = lean_ctor_get(x_53, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_53, 1); +lean_inc(x_55); +lean_dec(x_53); +x_56 = l_Lean_Elab_Term_getCurrRef(x_2, x_55); +x_57 = lean_ctor_get(x_56, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_56, 1); +lean_inc(x_58); +lean_dec(x_56); +x_59 = l_Lean_Elab_Term_declareTacticSyntax___closed__5; +x_60 = l_Lean_checkTraceOption(x_54, x_59); +lean_dec(x_54); +if (x_60 == 0) { -lean_object* x_41; +lean_dec(x_57); lean_dec(x_28); -lean_inc(x_2); -x_41 = l_Lean_Elab_Term_addDecl(x_20, x_35, x_2, x_38); -if (lean_obj_tag(x_41) == 0) -{ -lean_object* x_42; lean_object* x_43; -x_42 = lean_ctor_get(x_41, 1); -lean_inc(x_42); -lean_dec(x_41); -x_43 = l_Lean_Elab_Term_compileDecl(x_20, x_35, x_2, x_42); -lean_dec(x_35); -lean_dec(x_20); -if (lean_obj_tag(x_43) == 0) -{ -uint8_t x_44; -x_44 = !lean_is_exclusive(x_43); -if (x_44 == 0) -{ -lean_object* x_45; -x_45 = lean_ctor_get(x_43, 0); -lean_dec(x_45); -lean_ctor_set(x_43, 0, x_17); -return x_43; +x_36 = x_58; +goto block_52; } else { -lean_object* x_46; lean_object* x_47; -x_46 = lean_ctor_get(x_43, 1); +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_61, 0, x_28); +lean_inc(x_2); +x_62 = l_Lean_Elab_Term_logTrace(x_59, x_57, x_61, x_2, x_58); +lean_dec(x_57); +x_63 = lean_ctor_get(x_62, 1); +lean_inc(x_63); +lean_dec(x_62); +x_36 = x_63; +goto block_52; +} +block_52: +{ +lean_object* x_37; +lean_inc(x_2); +x_37 = l_Lean_Elab_Term_addDecl(x_35, x_2, x_36); +if (lean_obj_tag(x_37) == 0) +{ +lean_object* x_38; lean_object* x_39; +x_38 = lean_ctor_get(x_37, 1); +lean_inc(x_38); +lean_dec(x_37); +x_39 = l_Lean_Elab_Term_compileDecl(x_35, x_2, x_38); +lean_dec(x_35); +if (lean_obj_tag(x_39) == 0) +{ +uint8_t x_40; +x_40 = !lean_is_exclusive(x_39); +if (x_40 == 0) +{ +lean_object* x_41; +x_41 = lean_ctor_get(x_39, 0); +lean_dec(x_41); +lean_ctor_set(x_39, 0, x_17); +return x_39; +} +else +{ +lean_object* x_42; lean_object* x_43; +x_42 = lean_ctor_get(x_39, 1); +lean_inc(x_42); +lean_dec(x_39); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_17); +lean_ctor_set(x_43, 1, x_42); +return x_43; +} +} +else +{ +uint8_t x_44; +lean_dec(x_17); +x_44 = !lean_is_exclusive(x_39); +if (x_44 == 0) +{ +return x_39; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_39, 0); +x_46 = lean_ctor_get(x_39, 1); lean_inc(x_46); -lean_dec(x_43); -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_17); +lean_inc(x_45); +lean_dec(x_39); +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_35); lean_dec(x_17); -x_48 = !lean_is_exclusive(x_43); +lean_dec(x_2); +x_48 = !lean_is_exclusive(x_37); if (x_48 == 0) { -return x_43; +return x_37; } else { lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_43, 0); -x_50 = lean_ctor_get(x_43, 1); +x_49 = lean_ctor_get(x_37, 0); +x_50 = lean_ctor_get(x_37, 1); lean_inc(x_50); lean_inc(x_49); -lean_dec(x_43); +lean_dec(x_37); x_51 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_51, 0, x_49); lean_ctor_set(x_51, 1, x_50); @@ -1584,583 +1631,388 @@ return x_51; } } } +} else { -uint8_t x_52; -lean_dec(x_35); -lean_dec(x_20); +uint8_t x_64; lean_dec(x_17); lean_dec(x_2); -x_52 = !lean_is_exclusive(x_41); -if (x_52 == 0) -{ -return x_41; -} -else -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_41, 0); -x_54 = lean_ctor_get(x_41, 1); -lean_inc(x_54); -lean_inc(x_53); -lean_dec(x_41); -x_55 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_55, 0, x_53); -lean_ctor_set(x_55, 1, x_54); -return x_55; -} -} -} -else -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_56 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_56, 0, x_28); -lean_inc(x_2); -x_57 = l_Lean_Elab_Term_logTrace(x_39, x_20, x_56, x_2, x_38); -x_58 = lean_ctor_get(x_57, 1); -lean_inc(x_58); -lean_dec(x_57); -lean_inc(x_2); -x_59 = l_Lean_Elab_Term_addDecl(x_20, x_35, x_2, x_58); -if (lean_obj_tag(x_59) == 0) -{ -lean_object* x_60; lean_object* x_61; -x_60 = lean_ctor_get(x_59, 1); -lean_inc(x_60); -lean_dec(x_59); -x_61 = l_Lean_Elab_Term_compileDecl(x_20, x_35, x_2, x_60); -lean_dec(x_35); -lean_dec(x_20); -if (lean_obj_tag(x_61) == 0) -{ -uint8_t x_62; -x_62 = !lean_is_exclusive(x_61); -if (x_62 == 0) -{ -lean_object* x_63; -x_63 = lean_ctor_get(x_61, 0); -lean_dec(x_63); -lean_ctor_set(x_61, 0, x_17); -return x_61; -} -else -{ -lean_object* x_64; lean_object* x_65; -x_64 = lean_ctor_get(x_61, 1); -lean_inc(x_64); -lean_dec(x_61); -x_65 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_65, 0, x_17); -lean_ctor_set(x_65, 1, x_64); -return x_65; -} -} -else -{ -uint8_t x_66; -lean_dec(x_17); -x_66 = !lean_is_exclusive(x_61); -if (x_66 == 0) -{ -return x_61; -} -else -{ -lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_67 = lean_ctor_get(x_61, 0); -x_68 = lean_ctor_get(x_61, 1); -lean_inc(x_68); -lean_inc(x_67); -lean_dec(x_61); -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_35); -lean_dec(x_20); -lean_dec(x_17); -lean_dec(x_2); -x_70 = !lean_is_exclusive(x_59); -if (x_70 == 0) -{ -return x_59; -} -else -{ -lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_71 = lean_ctor_get(x_59, 0); -x_72 = lean_ctor_get(x_59, 1); -lean_inc(x_72); -lean_inc(x_71); -lean_dec(x_59); -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; -lean_dec(x_20); -lean_dec(x_17); -lean_dec(x_2); -x_74 = !lean_is_exclusive(x_24); -if (x_74 == 0) +x_64 = !lean_is_exclusive(x_24); +if (x_64 == 0) { return x_24; } else { -lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_75 = lean_ctor_get(x_24, 0); -x_76 = lean_ctor_get(x_24, 1); -lean_inc(x_76); -lean_inc(x_75); +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_24, 0); +x_66 = lean_ctor_get(x_24, 1); +lean_inc(x_66); +lean_inc(x_65); lean_dec(x_24); -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; +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_78; +uint8_t x_68; lean_dec(x_17); lean_dec(x_2); -x_78 = !lean_is_exclusive(x_19); -if (x_78 == 0) +x_68 = !lean_is_exclusive(x_19); +if (x_68 == 0) { return x_19; } else { -lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_79 = lean_ctor_get(x_19, 0); -x_80 = lean_ctor_get(x_19, 1); -lean_inc(x_80); -lean_inc(x_79); +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_19, 0); +x_70 = lean_ctor_get(x_19, 1); +lean_inc(x_70); +lean_inc(x_69); lean_dec(x_19); -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_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_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; uint8_t x_91; uint8_t x_92; uint8_t x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_82 = lean_ctor_get(x_2, 0); -x_83 = lean_ctor_get(x_2, 1); -x_84 = lean_ctor_get(x_2, 2); -x_85 = lean_ctor_get(x_2, 3); -x_86 = lean_ctor_get(x_2, 4); -x_87 = lean_ctor_get(x_2, 5); -x_88 = lean_ctor_get(x_2, 6); -x_89 = lean_ctor_get(x_2, 7); -x_90 = lean_ctor_get(x_2, 8); -x_91 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_92 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); -x_93 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 2); -lean_inc(x_90); -lean_inc(x_89); -lean_inc(x_88); -lean_inc(x_87); -lean_inc(x_86); -lean_inc(x_85); +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; uint8_t x_82; uint8_t x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_72 = lean_ctor_get(x_2, 0); +x_73 = lean_ctor_get(x_2, 1); +x_74 = lean_ctor_get(x_2, 2); +x_75 = lean_ctor_get(x_2, 3); +x_76 = lean_ctor_get(x_2, 4); +x_77 = lean_ctor_get(x_2, 5); +x_78 = lean_ctor_get(x_2, 6); +x_79 = lean_ctor_get(x_2, 7); +x_80 = lean_ctor_get(x_2, 8); +x_81 = lean_ctor_get_uint8(x_2, sizeof(void*)*11); +x_82 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 1); +x_83 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 2); +x_84 = lean_ctor_get(x_2, 10); lean_inc(x_84); -lean_inc(x_83); -lean_inc(x_82); +lean_inc(x_80); +lean_inc(x_79); +lean_inc(x_78); +lean_inc(x_77); +lean_inc(x_76); +lean_inc(x_75); +lean_inc(x_74); +lean_inc(x_73); +lean_inc(x_72); lean_dec(x_2); -x_94 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_94, 0, x_82); -lean_ctor_set(x_94, 1, x_83); -lean_ctor_set(x_94, 2, x_84); -lean_ctor_set(x_94, 3, x_85); -lean_ctor_set(x_94, 4, x_86); -lean_ctor_set(x_94, 5, x_87); -lean_ctor_set(x_94, 6, x_88); -lean_ctor_set(x_94, 7, x_89); -lean_ctor_set(x_94, 8, x_90); -lean_ctor_set(x_94, 9, x_5); -lean_ctor_set_uint8(x_94, sizeof(void*)*10, x_91); -lean_ctor_set_uint8(x_94, sizeof(void*)*10 + 1, x_92); -lean_ctor_set_uint8(x_94, sizeof(void*)*10 + 2, x_93); -x_95 = l_Lean_Elab_Term_getMainModule___rarg(x_3); +x_85 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_85, 0, x_72); +lean_ctor_set(x_85, 1, x_73); +lean_ctor_set(x_85, 2, x_74); +lean_ctor_set(x_85, 3, x_75); +lean_ctor_set(x_85, 4, x_76); +lean_ctor_set(x_85, 5, x_77); +lean_ctor_set(x_85, 6, x_78); +lean_ctor_set(x_85, 7, x_79); +lean_ctor_set(x_85, 8, x_80); +lean_ctor_set(x_85, 9, x_5); +lean_ctor_set(x_85, 10, x_84); +lean_ctor_set_uint8(x_85, sizeof(void*)*11, x_81); +lean_ctor_set_uint8(x_85, sizeof(void*)*11 + 1, x_82); +lean_ctor_set_uint8(x_85, sizeof(void*)*11 + 2, x_83); +x_86 = l_Lean_Elab_Term_getMainModule___rarg(x_3); +x_87 = lean_ctor_get(x_86, 0); +lean_inc(x_87); +x_88 = lean_ctor_get(x_86, 1); +lean_inc(x_88); +lean_dec(x_86); +x_89 = l_Lean_Elab_Term_getCurrMacroScope(x_85, x_88); +x_90 = lean_ctor_get(x_89, 0); +lean_inc(x_90); +x_91 = lean_ctor_get(x_89, 1); +lean_inc(x_91); +lean_dec(x_89); +x_92 = l_Lean_Elab_Term_declareTacticSyntax___closed__2; +x_93 = l_Lean_addMacroScope(x_87, x_92, x_90); +x_94 = lean_box(0); +lean_inc(x_85); +x_95 = l_Lean_Elab_Term_quoteAutoTactic___main(x_1, x_85, x_91); +if (lean_obj_tag(x_95) == 0) +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; uint8_t x_99; lean_object* x_100; x_96 = lean_ctor_get(x_95, 0); lean_inc(x_96); x_97 = lean_ctor_get(x_95, 1); lean_inc(x_97); lean_dec(x_95); -x_98 = l_Lean_Elab_Term_getCurrMacroScope(x_94, x_97); -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_101 = l_Lean_Elab_Term_declareTacticSyntax___closed__2; -x_102 = l_Lean_addMacroScope(x_96, x_101, x_99); -x_103 = lean_box(0); -lean_inc(x_94); -x_104 = l_Lean_Elab_Term_quoteAutoTactic___main(x_1, x_94, x_100); -if (lean_obj_tag(x_104) == 0) +x_98 = l_Lean_Elab_Term_declareTacticSyntax___closed__4; +x_99 = 1; +lean_inc(x_85); +x_100 = l_Lean_Elab_Term_elabTerm(x_96, x_98, x_99, x_85, x_97); +if (lean_obj_tag(x_100) == 0) { -lean_object* x_105; lean_object* x_106; lean_object* x_107; uint8_t x_108; lean_object* x_109; -x_105 = lean_ctor_get(x_104, 0); -lean_inc(x_105); -x_106 = lean_ctor_get(x_104, 1); -lean_inc(x_106); -lean_dec(x_104); -x_107 = l_Lean_Elab_Term_declareTacticSyntax___closed__4; -x_108 = 1; -lean_inc(x_94); -lean_inc(x_105); -x_109 = l_Lean_Elab_Term_elabTermAux___main(x_107, x_108, x_108, x_105, x_94, x_106); -if (lean_obj_tag(x_109) == 0) -{ -lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; uint8_t x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; uint8_t x_125; -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); -lean_inc(x_94); -x_112 = l_Lean_Elab_Term_instantiateMVars(x_105, x_110, x_94, x_111); -x_113 = lean_ctor_get(x_112, 0); -lean_inc(x_113); -x_114 = lean_ctor_get(x_112, 1); -lean_inc(x_114); -lean_dec(x_112); -x_115 = l_Lean_Elab_Term_declareTacticSyntax___closed__3; +lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; uint8_t x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; uint8_t x_135; +x_101 = lean_ctor_get(x_100, 0); +lean_inc(x_101); +x_102 = lean_ctor_get(x_100, 1); lean_inc(x_102); -x_116 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_116, 0, x_102); -lean_ctor_set(x_116, 1, x_103); -lean_ctor_set(x_116, 2, x_115); -x_117 = lean_box(0); -x_118 = 0; -lean_inc(x_113); -x_119 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_119, 0, x_116); -lean_ctor_set(x_119, 1, x_113); -lean_ctor_set(x_119, 2, x_117); -lean_ctor_set_uint8(x_119, sizeof(void*)*3, x_118); -x_120 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_120, 0, x_119); -x_121 = l_Lean_Elab_Term_getOptions(x_94, x_114); -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_124 = l_Lean_Elab_Term_declareTacticSyntax___closed__5; -x_125 = l_Lean_checkTraceOption(x_122, x_124); -lean_dec(x_122); -if (x_125 == 0) -{ -lean_object* x_126; -lean_dec(x_113); -lean_inc(x_94); -x_126 = l_Lean_Elab_Term_addDecl(x_105, x_120, x_94, x_123); -if (lean_obj_tag(x_126) == 0) -{ -lean_object* x_127; lean_object* x_128; -x_127 = lean_ctor_get(x_126, 1); -lean_inc(x_127); -lean_dec(x_126); -x_128 = l_Lean_Elab_Term_compileDecl(x_105, x_120, x_94, x_127); -lean_dec(x_120); -lean_dec(x_105); -if (lean_obj_tag(x_128) == 0) -{ -lean_object* x_129; lean_object* x_130; lean_object* x_131; -x_129 = lean_ctor_get(x_128, 1); +lean_dec(x_100); +lean_inc(x_85); +x_103 = l_Lean_Elab_Term_instantiateMVars(x_101, x_85, x_102); +x_104 = lean_ctor_get(x_103, 0); +lean_inc(x_104); +x_105 = lean_ctor_get(x_103, 1); +lean_inc(x_105); +lean_dec(x_103); +x_106 = l_Lean_Elab_Term_declareTacticSyntax___closed__3; +lean_inc(x_93); +x_107 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_107, 0, x_93); +lean_ctor_set(x_107, 1, x_94); +lean_ctor_set(x_107, 2, x_106); +x_108 = lean_box(0); +x_109 = 0; +lean_inc(x_104); +x_110 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_110, 0, x_107); +lean_ctor_set(x_110, 1, x_104); +lean_ctor_set(x_110, 2, x_108); +lean_ctor_set_uint8(x_110, sizeof(void*)*3, x_109); +x_111 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_111, 0, x_110); +x_128 = l_Lean_Elab_Term_getOptions(x_85, x_105); +x_129 = lean_ctor_get(x_128, 0); lean_inc(x_129); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_130 = x_128; -} else { - lean_dec_ref(x_128); - x_130 = lean_box(0); -} -if (lean_is_scalar(x_130)) { - x_131 = lean_alloc_ctor(0, 2, 0); -} else { - x_131 = x_130; -} -lean_ctor_set(x_131, 0, x_102); -lean_ctor_set(x_131, 1, x_129); -return x_131; -} -else -{ -lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; -lean_dec(x_102); -x_132 = lean_ctor_get(x_128, 0); +x_130 = lean_ctor_get(x_128, 1); +lean_inc(x_130); +lean_dec(x_128); +x_131 = l_Lean_Elab_Term_getCurrRef(x_85, x_130); +x_132 = lean_ctor_get(x_131, 0); lean_inc(x_132); -x_133 = lean_ctor_get(x_128, 1); +x_133 = lean_ctor_get(x_131, 1); lean_inc(x_133); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_134 = x_128; -} else { - lean_dec_ref(x_128); - x_134 = lean_box(0); +lean_dec(x_131); +x_134 = l_Lean_Elab_Term_declareTacticSyntax___closed__5; +x_135 = l_Lean_checkTraceOption(x_129, x_134); +lean_dec(x_129); +if (x_135 == 0) +{ +lean_dec(x_132); +lean_dec(x_104); +x_112 = x_133; +goto block_127; } -if (lean_is_scalar(x_134)) { - x_135 = lean_alloc_ctor(1, 2, 0); -} else { - x_135 = x_134; +else +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; +x_136 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_136, 0, x_104); +lean_inc(x_85); +x_137 = l_Lean_Elab_Term_logTrace(x_134, x_132, x_136, x_85, x_133); +lean_dec(x_132); +x_138 = lean_ctor_get(x_137, 1); +lean_inc(x_138); +lean_dec(x_137); +x_112 = x_138; +goto block_127; } -lean_ctor_set(x_135, 0, x_132); -lean_ctor_set(x_135, 1, x_133); -return x_135; +block_127: +{ +lean_object* x_113; +lean_inc(x_85); +x_113 = l_Lean_Elab_Term_addDecl(x_111, x_85, x_112); +if (lean_obj_tag(x_113) == 0) +{ +lean_object* x_114; lean_object* x_115; +x_114 = lean_ctor_get(x_113, 1); +lean_inc(x_114); +lean_dec(x_113); +x_115 = l_Lean_Elab_Term_compileDecl(x_111, x_85, x_114); +lean_dec(x_111); +if (lean_obj_tag(x_115) == 0) +{ +lean_object* x_116; lean_object* x_117; lean_object* x_118; +x_116 = lean_ctor_get(x_115, 1); +lean_inc(x_116); +if (lean_is_exclusive(x_115)) { + lean_ctor_release(x_115, 0); + lean_ctor_release(x_115, 1); + x_117 = x_115; +} else { + lean_dec_ref(x_115); + x_117 = lean_box(0); +} +if (lean_is_scalar(x_117)) { + x_118 = lean_alloc_ctor(0, 2, 0); +} else { + x_118 = x_117; +} +lean_ctor_set(x_118, 0, x_93); +lean_ctor_set(x_118, 1, x_116); +return x_118; +} +else +{ +lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; +lean_dec(x_93); +x_119 = lean_ctor_get(x_115, 0); +lean_inc(x_119); +x_120 = lean_ctor_get(x_115, 1); +lean_inc(x_120); +if (lean_is_exclusive(x_115)) { + lean_ctor_release(x_115, 0); + lean_ctor_release(x_115, 1); + x_121 = x_115; +} else { + lean_dec_ref(x_115); + x_121 = lean_box(0); +} +if (lean_is_scalar(x_121)) { + x_122 = lean_alloc_ctor(1, 2, 0); +} else { + x_122 = x_121; +} +lean_ctor_set(x_122, 0, x_119); +lean_ctor_set(x_122, 1, x_120); +return x_122; } } else { -lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; -lean_dec(x_120); -lean_dec(x_105); -lean_dec(x_102); -lean_dec(x_94); -x_136 = lean_ctor_get(x_126, 0); -lean_inc(x_136); -x_137 = lean_ctor_get(x_126, 1); -lean_inc(x_137); -if (lean_is_exclusive(x_126)) { - lean_ctor_release(x_126, 0); - lean_ctor_release(x_126, 1); - x_138 = x_126; +lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; +lean_dec(x_111); +lean_dec(x_93); +lean_dec(x_85); +x_123 = lean_ctor_get(x_113, 0); +lean_inc(x_123); +x_124 = lean_ctor_get(x_113, 1); +lean_inc(x_124); +if (lean_is_exclusive(x_113)) { + lean_ctor_release(x_113, 0); + lean_ctor_release(x_113, 1); + x_125 = x_113; } else { - lean_dec_ref(x_126); - x_138 = lean_box(0); + lean_dec_ref(x_113); + x_125 = lean_box(0); } -if (lean_is_scalar(x_138)) { - x_139 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_125)) { + x_126 = lean_alloc_ctor(1, 2, 0); } else { - x_139 = x_138; + x_126 = x_125; +} +lean_ctor_set(x_126, 0, x_123); +lean_ctor_set(x_126, 1, x_124); +return x_126; } -lean_ctor_set(x_139, 0, x_136); -lean_ctor_set(x_139, 1, x_137); -return x_139; } } else { -lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; -x_140 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_140, 0, x_113); -lean_inc(x_94); -x_141 = l_Lean_Elab_Term_logTrace(x_124, x_105, x_140, x_94, x_123); -x_142 = lean_ctor_get(x_141, 1); -lean_inc(x_142); -lean_dec(x_141); -lean_inc(x_94); -x_143 = l_Lean_Elab_Term_addDecl(x_105, x_120, x_94, x_142); -if (lean_obj_tag(x_143) == 0) +lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; +lean_dec(x_93); +lean_dec(x_85); +x_139 = lean_ctor_get(x_100, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_100, 1); +lean_inc(x_140); +if (lean_is_exclusive(x_100)) { + lean_ctor_release(x_100, 0); + lean_ctor_release(x_100, 1); + x_141 = x_100; +} else { + lean_dec_ref(x_100); + x_141 = lean_box(0); +} +if (lean_is_scalar(x_141)) { + x_142 = lean_alloc_ctor(1, 2, 0); +} else { + x_142 = x_141; +} +lean_ctor_set(x_142, 0, x_139); +lean_ctor_set(x_142, 1, x_140); +return x_142; +} +} +else { -lean_object* x_144; lean_object* x_145; -x_144 = lean_ctor_get(x_143, 1); +lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; +lean_dec(x_93); +lean_dec(x_85); +x_143 = lean_ctor_get(x_95, 0); +lean_inc(x_143); +x_144 = lean_ctor_get(x_95, 1); lean_inc(x_144); -lean_dec(x_143); -x_145 = l_Lean_Elab_Term_compileDecl(x_105, x_120, x_94, x_144); -lean_dec(x_120); -lean_dec(x_105); -if (lean_obj_tag(x_145) == 0) -{ -lean_object* x_146; lean_object* x_147; lean_object* x_148; -x_146 = lean_ctor_get(x_145, 1); -lean_inc(x_146); -if (lean_is_exclusive(x_145)) { - lean_ctor_release(x_145, 0); - lean_ctor_release(x_145, 1); - x_147 = x_145; +if (lean_is_exclusive(x_95)) { + lean_ctor_release(x_95, 0); + lean_ctor_release(x_95, 1); + x_145 = x_95; } else { - lean_dec_ref(x_145); - x_147 = lean_box(0); + lean_dec_ref(x_95); + x_145 = lean_box(0); } -if (lean_is_scalar(x_147)) { - x_148 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_145)) { + x_146 = lean_alloc_ctor(1, 2, 0); } else { - x_148 = x_147; + x_146 = x_145; +} +lean_ctor_set(x_146, 0, x_143); +lean_ctor_set(x_146, 1, x_144); +return x_146; +} } -lean_ctor_set(x_148, 0, x_102); -lean_ctor_set(x_148, 1, x_146); -return x_148; } else { -lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; -lean_dec(x_102); -x_149 = lean_ctor_get(x_145, 0); -lean_inc(x_149); -x_150 = lean_ctor_get(x_145, 1); +lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; uint8_t x_165; uint8_t x_166; uint8_t x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; +x_147 = lean_ctor_get(x_3, 0); +x_148 = lean_ctor_get(x_3, 1); +x_149 = lean_ctor_get(x_3, 2); +x_150 = lean_ctor_get(x_3, 3); +x_151 = lean_ctor_get(x_3, 4); +x_152 = lean_ctor_get(x_3, 5); +lean_inc(x_152); +lean_inc(x_151); lean_inc(x_150); -if (lean_is_exclusive(x_145)) { - lean_ctor_release(x_145, 0); - lean_ctor_release(x_145, 1); - x_151 = x_145; -} else { - lean_dec_ref(x_145); - x_151 = lean_box(0); -} -if (lean_is_scalar(x_151)) { - x_152 = lean_alloc_ctor(1, 2, 0); -} else { - x_152 = x_151; -} -lean_ctor_set(x_152, 0, x_149); -lean_ctor_set(x_152, 1, x_150); -return x_152; -} -} -else -{ -lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; -lean_dec(x_120); -lean_dec(x_105); -lean_dec(x_102); -lean_dec(x_94); -x_153 = lean_ctor_get(x_143, 0); -lean_inc(x_153); -x_154 = lean_ctor_get(x_143, 1); -lean_inc(x_154); -if (lean_is_exclusive(x_143)) { - lean_ctor_release(x_143, 0); - lean_ctor_release(x_143, 1); - x_155 = x_143; -} else { - lean_dec_ref(x_143); - x_155 = lean_box(0); -} -if (lean_is_scalar(x_155)) { - x_156 = lean_alloc_ctor(1, 2, 0); -} else { - x_156 = x_155; -} -lean_ctor_set(x_156, 0, x_153); -lean_ctor_set(x_156, 1, x_154); -return x_156; -} -} -} -else -{ -lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; -lean_dec(x_105); -lean_dec(x_102); -lean_dec(x_94); -x_157 = lean_ctor_get(x_109, 0); -lean_inc(x_157); -x_158 = lean_ctor_get(x_109, 1); -lean_inc(x_158); -if (lean_is_exclusive(x_109)) { - lean_ctor_release(x_109, 0); - lean_ctor_release(x_109, 1); - x_159 = x_109; -} else { - lean_dec_ref(x_109); - 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_dec(x_102); -lean_dec(x_94); -x_161 = lean_ctor_get(x_104, 0); -lean_inc(x_161); -x_162 = lean_ctor_get(x_104, 1); -lean_inc(x_162); -if (lean_is_exclusive(x_104)) { - lean_ctor_release(x_104, 0); - lean_ctor_release(x_104, 1); - x_163 = x_104; -} else { - lean_dec_ref(x_104); - x_163 = lean_box(0); -} -if (lean_is_scalar(x_163)) { - x_164 = lean_alloc_ctor(1, 2, 0); -} else { - x_164 = x_163; -} -lean_ctor_set(x_164, 0, x_161); -lean_ctor_set(x_164, 1, x_162); -return x_164; -} -} -} -else -{ -lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; uint8_t x_183; uint8_t x_184; uint8_t x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; -x_165 = lean_ctor_get(x_3, 0); -x_166 = lean_ctor_get(x_3, 1); -x_167 = lean_ctor_get(x_3, 2); -x_168 = lean_ctor_get(x_3, 3); -x_169 = lean_ctor_get(x_3, 4); -x_170 = lean_ctor_get(x_3, 5); -lean_inc(x_170); -lean_inc(x_169); -lean_inc(x_168); -lean_inc(x_167); -lean_inc(x_166); -lean_inc(x_165); +lean_inc(x_149); +lean_inc(x_148); +lean_inc(x_147); lean_dec(x_3); -x_171 = lean_unsigned_to_nat(1u); -x_172 = lean_nat_add(x_170, x_171); -x_173 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_173, 0, x_165); -lean_ctor_set(x_173, 1, x_166); -lean_ctor_set(x_173, 2, x_167); -lean_ctor_set(x_173, 3, x_168); -lean_ctor_set(x_173, 4, x_169); -lean_ctor_set(x_173, 5, x_172); -x_174 = lean_ctor_get(x_2, 0); -lean_inc(x_174); -x_175 = lean_ctor_get(x_2, 1); -lean_inc(x_175); -x_176 = lean_ctor_get(x_2, 2); -lean_inc(x_176); -x_177 = lean_ctor_get(x_2, 3); -lean_inc(x_177); -x_178 = lean_ctor_get(x_2, 4); -lean_inc(x_178); -x_179 = lean_ctor_get(x_2, 5); -lean_inc(x_179); -x_180 = lean_ctor_get(x_2, 6); -lean_inc(x_180); -x_181 = lean_ctor_get(x_2, 7); -lean_inc(x_181); -x_182 = lean_ctor_get(x_2, 8); -lean_inc(x_182); -x_183 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_184 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); -x_185 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 2); +x_153 = lean_unsigned_to_nat(1u); +x_154 = lean_nat_add(x_152, x_153); +x_155 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_155, 0, x_147); +lean_ctor_set(x_155, 1, x_148); +lean_ctor_set(x_155, 2, x_149); +lean_ctor_set(x_155, 3, x_150); +lean_ctor_set(x_155, 4, x_151); +lean_ctor_set(x_155, 5, x_154); +x_156 = lean_ctor_get(x_2, 0); +lean_inc(x_156); +x_157 = lean_ctor_get(x_2, 1); +lean_inc(x_157); +x_158 = lean_ctor_get(x_2, 2); +lean_inc(x_158); +x_159 = lean_ctor_get(x_2, 3); +lean_inc(x_159); +x_160 = lean_ctor_get(x_2, 4); +lean_inc(x_160); +x_161 = lean_ctor_get(x_2, 5); +lean_inc(x_161); +x_162 = lean_ctor_get(x_2, 6); +lean_inc(x_162); +x_163 = lean_ctor_get(x_2, 7); +lean_inc(x_163); +x_164 = lean_ctor_get(x_2, 8); +lean_inc(x_164); +x_165 = lean_ctor_get_uint8(x_2, sizeof(void*)*11); +x_166 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 1); +x_167 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 2); +x_168 = lean_ctor_get(x_2, 10); +lean_inc(x_168); if (lean_is_exclusive(x_2)) { lean_ctor_release(x_2, 0); lean_ctor_release(x_2, 1); @@ -2172,343 +2024,269 @@ if (lean_is_exclusive(x_2)) { lean_ctor_release(x_2, 7); lean_ctor_release(x_2, 8); lean_ctor_release(x_2, 9); - x_186 = x_2; + lean_ctor_release(x_2, 10); + x_169 = x_2; } else { lean_dec_ref(x_2); - x_186 = lean_box(0); + x_169 = lean_box(0); } -if (lean_is_scalar(x_186)) { - x_187 = lean_alloc_ctor(0, 10, 3); +if (lean_is_scalar(x_169)) { + x_170 = lean_alloc_ctor(0, 11, 3); } else { - x_187 = x_186; + x_170 = x_169; } -lean_ctor_set(x_187, 0, x_174); -lean_ctor_set(x_187, 1, x_175); -lean_ctor_set(x_187, 2, x_176); -lean_ctor_set(x_187, 3, x_177); -lean_ctor_set(x_187, 4, x_178); -lean_ctor_set(x_187, 5, x_179); -lean_ctor_set(x_187, 6, x_180); -lean_ctor_set(x_187, 7, x_181); -lean_ctor_set(x_187, 8, x_182); -lean_ctor_set(x_187, 9, x_170); -lean_ctor_set_uint8(x_187, sizeof(void*)*10, x_183); -lean_ctor_set_uint8(x_187, sizeof(void*)*10 + 1, x_184); -lean_ctor_set_uint8(x_187, sizeof(void*)*10 + 2, x_185); -x_188 = l_Lean_Elab_Term_getMainModule___rarg(x_173); +lean_ctor_set(x_170, 0, x_156); +lean_ctor_set(x_170, 1, x_157); +lean_ctor_set(x_170, 2, x_158); +lean_ctor_set(x_170, 3, x_159); +lean_ctor_set(x_170, 4, x_160); +lean_ctor_set(x_170, 5, x_161); +lean_ctor_set(x_170, 6, x_162); +lean_ctor_set(x_170, 7, x_163); +lean_ctor_set(x_170, 8, x_164); +lean_ctor_set(x_170, 9, x_152); +lean_ctor_set(x_170, 10, x_168); +lean_ctor_set_uint8(x_170, sizeof(void*)*11, x_165); +lean_ctor_set_uint8(x_170, sizeof(void*)*11 + 1, x_166); +lean_ctor_set_uint8(x_170, sizeof(void*)*11 + 2, x_167); +x_171 = l_Lean_Elab_Term_getMainModule___rarg(x_155); +x_172 = lean_ctor_get(x_171, 0); +lean_inc(x_172); +x_173 = lean_ctor_get(x_171, 1); +lean_inc(x_173); +lean_dec(x_171); +x_174 = l_Lean_Elab_Term_getCurrMacroScope(x_170, x_173); +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_177 = l_Lean_Elab_Term_declareTacticSyntax___closed__2; +x_178 = l_Lean_addMacroScope(x_172, x_177, x_175); +x_179 = lean_box(0); +lean_inc(x_170); +x_180 = l_Lean_Elab_Term_quoteAutoTactic___main(x_1, x_170, x_176); +if (lean_obj_tag(x_180) == 0) +{ +lean_object* x_181; lean_object* x_182; lean_object* x_183; uint8_t x_184; lean_object* x_185; +x_181 = lean_ctor_get(x_180, 0); +lean_inc(x_181); +x_182 = lean_ctor_get(x_180, 1); +lean_inc(x_182); +lean_dec(x_180); +x_183 = l_Lean_Elab_Term_declareTacticSyntax___closed__4; +x_184 = 1; +lean_inc(x_170); +x_185 = l_Lean_Elab_Term_elabTerm(x_181, x_183, x_184, x_170, x_182); +if (lean_obj_tag(x_185) == 0) +{ +lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; uint8_t x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; uint8_t x_220; +x_186 = lean_ctor_get(x_185, 0); +lean_inc(x_186); +x_187 = lean_ctor_get(x_185, 1); +lean_inc(x_187); +lean_dec(x_185); +lean_inc(x_170); +x_188 = l_Lean_Elab_Term_instantiateMVars(x_186, x_170, x_187); x_189 = lean_ctor_get(x_188, 0); lean_inc(x_189); x_190 = lean_ctor_get(x_188, 1); lean_inc(x_190); lean_dec(x_188); -x_191 = l_Lean_Elab_Term_getCurrMacroScope(x_187, x_190); -x_192 = lean_ctor_get(x_191, 0); -lean_inc(x_192); -x_193 = lean_ctor_get(x_191, 1); -lean_inc(x_193); -lean_dec(x_191); -x_194 = l_Lean_Elab_Term_declareTacticSyntax___closed__2; -x_195 = l_Lean_addMacroScope(x_189, x_194, x_192); -x_196 = lean_box(0); -lean_inc(x_187); -x_197 = l_Lean_Elab_Term_quoteAutoTactic___main(x_1, x_187, x_193); -if (lean_obj_tag(x_197) == 0) -{ -lean_object* x_198; lean_object* x_199; lean_object* x_200; uint8_t x_201; lean_object* x_202; -x_198 = lean_ctor_get(x_197, 0); -lean_inc(x_198); -x_199 = lean_ctor_get(x_197, 1); -lean_inc(x_199); -lean_dec(x_197); -x_200 = l_Lean_Elab_Term_declareTacticSyntax___closed__4; -x_201 = 1; -lean_inc(x_187); -lean_inc(x_198); -x_202 = l_Lean_Elab_Term_elabTermAux___main(x_200, x_201, x_201, x_198, x_187, x_199); -if (lean_obj_tag(x_202) == 0) -{ -lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; uint8_t x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; uint8_t x_218; -x_203 = lean_ctor_get(x_202, 0); -lean_inc(x_203); -x_204 = lean_ctor_get(x_202, 1); -lean_inc(x_204); -lean_dec(x_202); -lean_inc(x_187); -x_205 = l_Lean_Elab_Term_instantiateMVars(x_198, x_203, x_187, x_204); -x_206 = lean_ctor_get(x_205, 0); -lean_inc(x_206); -x_207 = lean_ctor_get(x_205, 1); -lean_inc(x_207); -lean_dec(x_205); -x_208 = l_Lean_Elab_Term_declareTacticSyntax___closed__3; -lean_inc(x_195); -x_209 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_209, 0, x_195); -lean_ctor_set(x_209, 1, x_196); -lean_ctor_set(x_209, 2, x_208); -x_210 = lean_box(0); -x_211 = 0; -lean_inc(x_206); -x_212 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_212, 0, x_209); -lean_ctor_set(x_212, 1, x_206); -lean_ctor_set(x_212, 2, x_210); -lean_ctor_set_uint8(x_212, sizeof(void*)*3, x_211); -x_213 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_213, 0, x_212); -x_214 = l_Lean_Elab_Term_getOptions(x_187, x_207); -x_215 = lean_ctor_get(x_214, 0); +x_191 = l_Lean_Elab_Term_declareTacticSyntax___closed__3; +lean_inc(x_178); +x_192 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_192, 0, x_178); +lean_ctor_set(x_192, 1, x_179); +lean_ctor_set(x_192, 2, x_191); +x_193 = lean_box(0); +x_194 = 0; +lean_inc(x_189); +x_195 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_195, 0, x_192); +lean_ctor_set(x_195, 1, x_189); +lean_ctor_set(x_195, 2, x_193); +lean_ctor_set_uint8(x_195, sizeof(void*)*3, x_194); +x_196 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_196, 0, x_195); +x_213 = l_Lean_Elab_Term_getOptions(x_170, x_190); +x_214 = lean_ctor_get(x_213, 0); +lean_inc(x_214); +x_215 = lean_ctor_get(x_213, 1); lean_inc(x_215); -x_216 = lean_ctor_get(x_214, 1); -lean_inc(x_216); +lean_dec(x_213); +x_216 = l_Lean_Elab_Term_getCurrRef(x_170, x_215); +x_217 = lean_ctor_get(x_216, 0); +lean_inc(x_217); +x_218 = lean_ctor_get(x_216, 1); +lean_inc(x_218); +lean_dec(x_216); +x_219 = l_Lean_Elab_Term_declareTacticSyntax___closed__5; +x_220 = l_Lean_checkTraceOption(x_214, x_219); lean_dec(x_214); -x_217 = l_Lean_Elab_Term_declareTacticSyntax___closed__5; -x_218 = l_Lean_checkTraceOption(x_215, x_217); -lean_dec(x_215); -if (x_218 == 0) +if (x_220 == 0) { -lean_object* x_219; -lean_dec(x_206); -lean_inc(x_187); -x_219 = l_Lean_Elab_Term_addDecl(x_198, x_213, x_187, x_216); -if (lean_obj_tag(x_219) == 0) -{ -lean_object* x_220; lean_object* x_221; -x_220 = lean_ctor_get(x_219, 1); -lean_inc(x_220); -lean_dec(x_219); -x_221 = l_Lean_Elab_Term_compileDecl(x_198, x_213, x_187, x_220); -lean_dec(x_213); -lean_dec(x_198); -if (lean_obj_tag(x_221) == 0) -{ -lean_object* x_222; lean_object* x_223; lean_object* x_224; -x_222 = lean_ctor_get(x_221, 1); -lean_inc(x_222); -if (lean_is_exclusive(x_221)) { - lean_ctor_release(x_221, 0); - lean_ctor_release(x_221, 1); - x_223 = x_221; -} else { - lean_dec_ref(x_221); - x_223 = lean_box(0); -} -if (lean_is_scalar(x_223)) { - x_224 = lean_alloc_ctor(0, 2, 0); -} else { - x_224 = x_223; -} -lean_ctor_set(x_224, 0, x_195); -lean_ctor_set(x_224, 1, x_222); -return x_224; +lean_dec(x_217); +lean_dec(x_189); +x_197 = x_218; +goto block_212; } else { -lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; -lean_dec(x_195); -x_225 = lean_ctor_get(x_221, 0); +lean_object* x_221; lean_object* x_222; lean_object* x_223; +x_221 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_221, 0, x_189); +lean_inc(x_170); +x_222 = l_Lean_Elab_Term_logTrace(x_219, x_217, x_221, x_170, x_218); +lean_dec(x_217); +x_223 = lean_ctor_get(x_222, 1); +lean_inc(x_223); +lean_dec(x_222); +x_197 = x_223; +goto block_212; +} +block_212: +{ +lean_object* x_198; +lean_inc(x_170); +x_198 = l_Lean_Elab_Term_addDecl(x_196, x_170, x_197); +if (lean_obj_tag(x_198) == 0) +{ +lean_object* x_199; lean_object* x_200; +x_199 = lean_ctor_get(x_198, 1); +lean_inc(x_199); +lean_dec(x_198); +x_200 = l_Lean_Elab_Term_compileDecl(x_196, x_170, x_199); +lean_dec(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, 1); +lean_inc(x_201); +if (lean_is_exclusive(x_200)) { + lean_ctor_release(x_200, 0); + lean_ctor_release(x_200, 1); + x_202 = x_200; +} else { + lean_dec_ref(x_200); + x_202 = lean_box(0); +} +if (lean_is_scalar(x_202)) { + x_203 = lean_alloc_ctor(0, 2, 0); +} else { + x_203 = x_202; +} +lean_ctor_set(x_203, 0, x_178); +lean_ctor_set(x_203, 1, x_201); +return x_203; +} +else +{ +lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; +lean_dec(x_178); +x_204 = lean_ctor_get(x_200, 0); +lean_inc(x_204); +x_205 = lean_ctor_get(x_200, 1); +lean_inc(x_205); +if (lean_is_exclusive(x_200)) { + lean_ctor_release(x_200, 0); + lean_ctor_release(x_200, 1); + x_206 = x_200; +} else { + lean_dec_ref(x_200); + x_206 = lean_box(0); +} +if (lean_is_scalar(x_206)) { + x_207 = lean_alloc_ctor(1, 2, 0); +} else { + x_207 = x_206; +} +lean_ctor_set(x_207, 0, x_204); +lean_ctor_set(x_207, 1, x_205); +return x_207; +} +} +else +{ +lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; +lean_dec(x_196); +lean_dec(x_178); +lean_dec(x_170); +x_208 = lean_ctor_get(x_198, 0); +lean_inc(x_208); +x_209 = lean_ctor_get(x_198, 1); +lean_inc(x_209); +if (lean_is_exclusive(x_198)) { + lean_ctor_release(x_198, 0); + lean_ctor_release(x_198, 1); + x_210 = x_198; +} else { + lean_dec_ref(x_198); + 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_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; +lean_dec(x_178); +lean_dec(x_170); +x_224 = lean_ctor_get(x_185, 0); +lean_inc(x_224); +x_225 = lean_ctor_get(x_185, 1); lean_inc(x_225); -x_226 = lean_ctor_get(x_221, 1); -lean_inc(x_226); -if (lean_is_exclusive(x_221)) { - lean_ctor_release(x_221, 0); - lean_ctor_release(x_221, 1); - x_227 = x_221; +if (lean_is_exclusive(x_185)) { + lean_ctor_release(x_185, 0); + lean_ctor_release(x_185, 1); + x_226 = x_185; } else { - lean_dec_ref(x_221); - x_227 = lean_box(0); + lean_dec_ref(x_185); + x_226 = lean_box(0); } -if (lean_is_scalar(x_227)) { - x_228 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_226)) { + x_227 = lean_alloc_ctor(1, 2, 0); } else { - x_228 = x_227; + x_227 = x_226; } -lean_ctor_set(x_228, 0, x_225); -lean_ctor_set(x_228, 1, x_226); -return x_228; +lean_ctor_set(x_227, 0, x_224); +lean_ctor_set(x_227, 1, x_225); +return x_227; } } else { -lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; -lean_dec(x_213); -lean_dec(x_198); -lean_dec(x_195); -lean_dec(x_187); -x_229 = lean_ctor_get(x_219, 0); +lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; +lean_dec(x_178); +lean_dec(x_170); +x_228 = lean_ctor_get(x_180, 0); +lean_inc(x_228); +x_229 = lean_ctor_get(x_180, 1); lean_inc(x_229); -x_230 = lean_ctor_get(x_219, 1); -lean_inc(x_230); -if (lean_is_exclusive(x_219)) { - lean_ctor_release(x_219, 0); - lean_ctor_release(x_219, 1); - x_231 = x_219; +if (lean_is_exclusive(x_180)) { + lean_ctor_release(x_180, 0); + lean_ctor_release(x_180, 1); + x_230 = x_180; } else { - lean_dec_ref(x_219); - x_231 = lean_box(0); + lean_dec_ref(x_180); + x_230 = lean_box(0); } -if (lean_is_scalar(x_231)) { - x_232 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_230)) { + x_231 = lean_alloc_ctor(1, 2, 0); } else { - x_232 = x_231; + x_231 = x_230; } -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_object* x_235; lean_object* x_236; -x_233 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_233, 0, x_206); -lean_inc(x_187); -x_234 = l_Lean_Elab_Term_logTrace(x_217, x_198, x_233, x_187, x_216); -x_235 = lean_ctor_get(x_234, 1); -lean_inc(x_235); -lean_dec(x_234); -lean_inc(x_187); -x_236 = l_Lean_Elab_Term_addDecl(x_198, x_213, x_187, x_235); -if (lean_obj_tag(x_236) == 0) -{ -lean_object* x_237; lean_object* x_238; -x_237 = lean_ctor_get(x_236, 1); -lean_inc(x_237); -lean_dec(x_236); -x_238 = l_Lean_Elab_Term_compileDecl(x_198, x_213, x_187, x_237); -lean_dec(x_213); -lean_dec(x_198); -if (lean_obj_tag(x_238) == 0) -{ -lean_object* x_239; lean_object* x_240; lean_object* x_241; -x_239 = lean_ctor_get(x_238, 1); -lean_inc(x_239); -if (lean_is_exclusive(x_238)) { - lean_ctor_release(x_238, 0); - lean_ctor_release(x_238, 1); - x_240 = x_238; -} else { - lean_dec_ref(x_238); - x_240 = lean_box(0); -} -if (lean_is_scalar(x_240)) { - x_241 = lean_alloc_ctor(0, 2, 0); -} else { - x_241 = x_240; -} -lean_ctor_set(x_241, 0, x_195); -lean_ctor_set(x_241, 1, x_239); -return x_241; -} -else -{ -lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; -lean_dec(x_195); -x_242 = lean_ctor_get(x_238, 0); -lean_inc(x_242); -x_243 = lean_ctor_get(x_238, 1); -lean_inc(x_243); -if (lean_is_exclusive(x_238)) { - lean_ctor_release(x_238, 0); - lean_ctor_release(x_238, 1); - x_244 = x_238; -} else { - lean_dec_ref(x_238); - x_244 = lean_box(0); -} -if (lean_is_scalar(x_244)) { - x_245 = lean_alloc_ctor(1, 2, 0); -} else { - x_245 = x_244; -} -lean_ctor_set(x_245, 0, x_242); -lean_ctor_set(x_245, 1, x_243); -return x_245; -} -} -else -{ -lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; -lean_dec(x_213); -lean_dec(x_198); -lean_dec(x_195); -lean_dec(x_187); -x_246 = lean_ctor_get(x_236, 0); -lean_inc(x_246); -x_247 = lean_ctor_get(x_236, 1); -lean_inc(x_247); -if (lean_is_exclusive(x_236)) { - lean_ctor_release(x_236, 0); - lean_ctor_release(x_236, 1); - x_248 = x_236; -} else { - lean_dec_ref(x_236); - 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; -} -} -} -else -{ -lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; -lean_dec(x_198); -lean_dec(x_195); -lean_dec(x_187); -x_250 = lean_ctor_get(x_202, 0); -lean_inc(x_250); -x_251 = lean_ctor_get(x_202, 1); -lean_inc(x_251); -if (lean_is_exclusive(x_202)) { - lean_ctor_release(x_202, 0); - lean_ctor_release(x_202, 1); - x_252 = x_202; -} else { - lean_dec_ref(x_202); - x_252 = lean_box(0); -} -if (lean_is_scalar(x_252)) { - x_253 = lean_alloc_ctor(1, 2, 0); -} else { - x_253 = x_252; -} -lean_ctor_set(x_253, 0, x_250); -lean_ctor_set(x_253, 1, x_251); -return x_253; -} -} -else -{ -lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; -lean_dec(x_195); -lean_dec(x_187); -x_254 = lean_ctor_get(x_197, 0); -lean_inc(x_254); -x_255 = lean_ctor_get(x_197, 1); -lean_inc(x_255); -if (lean_is_exclusive(x_197)) { - lean_ctor_release(x_197, 0); - lean_ctor_release(x_197, 1); - x_256 = x_197; -} else { - lean_dec_ref(x_197); - x_256 = lean_box(0); -} -if (lean_is_scalar(x_256)) { - x_257 = lean_alloc_ctor(1, 2, 0); -} else { - x_257 = x_256; -} -lean_ctor_set(x_257, 0, x_254); -lean_ctor_set(x_257, 1, x_255); -return x_257; +lean_ctor_set(x_231, 0, x_228); +lean_ctor_set(x_231, 1, x_229); +return x_231; } } } @@ -2966,7 +2744,7 @@ lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_dec(x_11); lean_dec(x_1); x_20 = l_Array_umapMAux___main___at___private_Lean_Elab_Binders_5__getBinderIds___spec__1___closed__3; -x_21 = l_Lean_Elab_Term_throwError___rarg(x_12, x_20, x_3, x_4); +x_21 = l_Lean_Elab_Term_throwErrorAt___rarg(x_12, x_20, x_3, x_4); lean_dec(x_12); x_22 = !lean_is_exclusive(x_21); if (x_22 == 0) @@ -3002,7 +2780,7 @@ lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_dec(x_11); lean_dec(x_1); x_30 = l_Array_umapMAux___main___at___private_Lean_Elab_Binders_5__getBinderIds___spec__1___closed__3; -x_31 = l_Lean_Elab_Term_throwError___rarg(x_12, x_30, x_3, x_4); +x_31 = l_Lean_Elab_Term_throwErrorAt___rarg(x_12, x_30, x_3, x_4); lean_dec(x_12); x_32 = !lean_is_exclusive(x_31); if (x_32 == 0) @@ -3036,7 +2814,7 @@ lean_object* x_39; lean_object* x_40; uint8_t x_41; lean_dec(x_11); lean_dec(x_1); x_39 = l_Array_umapMAux___main___at___private_Lean_Elab_Binders_5__getBinderIds___spec__1___closed__3; -x_40 = l_Lean_Elab_Term_throwError___rarg(x_12, x_39, x_3, x_4); +x_40 = l_Lean_Elab_Term_throwErrorAt___rarg(x_12, x_39, x_3, x_4); lean_dec(x_12); x_41 = !lean_is_exclusive(x_40); if (x_41 == 0) @@ -3637,340 +3415,341 @@ lean_inc(x_15); x_16 = !lean_is_exclusive(x_6); if (x_16 == 0) { -lean_object* x_17; uint8_t x_18; -x_17 = lean_ctor_get(x_6, 0); +lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_17 = lean_ctor_get(x_6, 10); lean_dec(x_17); -x_18 = !lean_is_exclusive(x_14); -if (x_18 == 0) +x_18 = lean_ctor_get(x_6, 0); +lean_dec(x_18); +x_19 = !lean_is_exclusive(x_14); +if (x_19 == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_14, 2); -lean_dec(x_19); -x_20 = lean_ctor_get(x_14, 1); +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_14, 2); lean_dec(x_20); +x_21 = lean_ctor_get(x_14, 1); +lean_dec(x_21); lean_inc(x_5); lean_inc(x_4); lean_ctor_set(x_14, 2, x_5); lean_ctor_set(x_14, 1, x_4); -lean_inc(x_6); lean_inc(x_15); -x_21 = l_Lean_Elab_Term_elabType(x_15, x_6, x_7); -if (lean_obj_tag(x_21) == 0) -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33; -x_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 = l_Lean_Elab_Term_mkFreshFVarId___rarg(x_23); -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); -lean_dec(x_24); -lean_inc(x_25); -x_27 = l_Lean_mkFVar(x_25); -lean_inc(x_27); -x_28 = lean_array_push(x_3, x_27); -x_29 = lean_ctor_get(x_13, 0); -lean_inc(x_29); -x_30 = l_Lean_Syntax_getId(x_29); -lean_dec(x_29); -x_31 = lean_ctor_get_uint8(x_13, sizeof(void*)*2); -lean_dec(x_13); -lean_inc(x_22); -x_32 = lean_local_ctx_mk_local_decl(x_4, x_25, x_30, x_22, x_31); +lean_ctor_set(x_6, 10, x_15); lean_inc(x_6); -x_33 = l_Lean_Elab_Term_isClass(x_15, x_22, x_6, x_26); -lean_dec(x_15); -if (lean_obj_tag(x_33) == 0) +x_22 = l_Lean_Elab_Term_elabType(x_15, x_6, x_7); +if (lean_obj_tag(x_22) == 0) { -lean_object* x_34; -x_34 = lean_ctor_get(x_33, 0); -lean_inc(x_34); +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; uint8_t x_32; lean_object* x_33; lean_object* x_34; +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +x_25 = l_Lean_Elab_Term_mkFreshFVarId___rarg(x_24); +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_26); +x_28 = l_Lean_mkFVar(x_26); +lean_inc(x_28); +x_29 = lean_array_push(x_3, x_28); +x_30 = lean_ctor_get(x_13, 0); +lean_inc(x_30); +x_31 = l_Lean_Syntax_getId(x_30); +lean_dec(x_30); +x_32 = lean_ctor_get_uint8(x_13, sizeof(void*)*2); +lean_dec(x_13); +lean_inc(x_23); +x_33 = lean_local_ctx_mk_local_decl(x_4, x_26, x_31, x_23, x_32); +lean_inc(x_6); +x_34 = l_Lean_Elab_Term_isClass(x_23, x_6, x_27); if (lean_obj_tag(x_34) == 0) { -lean_object* x_35; lean_object* x_36; lean_object* x_37; -lean_dec(x_27); -x_35 = lean_ctor_get(x_33, 1); +lean_object* x_35; +x_35 = lean_ctor_get(x_34, 0); lean_inc(x_35); -lean_dec(x_33); -x_36 = lean_unsigned_to_nat(1u); -x_37 = lean_nat_add(x_2, x_36); +if (lean_obj_tag(x_35) == 0) +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +lean_dec(x_28); +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +lean_dec(x_34); +x_37 = lean_unsigned_to_nat(1u); +x_38 = lean_nat_add(x_2, x_37); lean_dec(x_2); -x_2 = x_37; -x_3 = x_28; -x_4 = x_32; -x_7 = x_35; +x_2 = x_38; +x_3 = x_29; +x_4 = x_33; +x_7 = x_36; goto _start; } 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_33, 1); -lean_inc(x_39); -lean_dec(x_33); -x_40 = lean_ctor_get(x_34, 0); +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_40 = lean_ctor_get(x_34, 1); lean_inc(x_40); lean_dec(x_34); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_27); -x_42 = lean_array_push(x_5, x_41); -x_43 = lean_unsigned_to_nat(1u); -x_44 = lean_nat_add(x_2, x_43); +x_41 = lean_ctor_get(x_35, 0); +lean_inc(x_41); +lean_dec(x_35); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_28); +x_43 = lean_array_push(x_5, x_42); +x_44 = lean_unsigned_to_nat(1u); +x_45 = lean_nat_add(x_2, x_44); lean_dec(x_2); -x_45 = l_Lean_Elab_Term_resetSynthInstanceCache___rarg(x_39); -x_46 = lean_ctor_get(x_45, 1); -lean_inc(x_46); -lean_dec(x_45); -x_2 = x_44; -x_3 = x_28; -x_4 = x_32; -x_5 = x_42; -x_7 = x_46; +x_46 = l_Lean_Elab_Term_resetSynthInstanceCache___rarg(x_40); +x_47 = lean_ctor_get(x_46, 1); +lean_inc(x_47); +lean_dec(x_46); +x_2 = x_45; +x_3 = x_29; +x_4 = x_33; +x_5 = x_43; +x_7 = x_47; goto _start; } } else { -uint8_t x_48; -lean_dec(x_32); +uint8_t x_49; +lean_dec(x_33); +lean_dec(x_29); lean_dec(x_28); -lean_dec(x_27); lean_dec(x_6); lean_dec(x_5); lean_dec(x_2); -x_48 = !lean_is_exclusive(x_33); -if (x_48 == 0) +x_49 = !lean_is_exclusive(x_34); +if (x_49 == 0) { -return x_33; +return x_34; } else { -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_33, 0); -x_50 = lean_ctor_get(x_33, 1); +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_34, 0); +x_51 = lean_ctor_get(x_34, 1); +lean_inc(x_51); lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_33); -x_51 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_51, 0, x_49); -lean_ctor_set(x_51, 1, x_50); -return x_51; +lean_dec(x_34); +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +return x_52; } } } else { -uint8_t x_52; +uint8_t x_53; lean_dec(x_6); -lean_dec(x_15); lean_dec(x_13); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_52 = !lean_is_exclusive(x_21); -if (x_52 == 0) +x_53 = !lean_is_exclusive(x_22); +if (x_53 == 0) { -return x_21; +return x_22; } else { -lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_21, 0); -x_54 = lean_ctor_get(x_21, 1); +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_22, 0); +x_55 = lean_ctor_get(x_22, 1); +lean_inc(x_55); lean_inc(x_54); -lean_inc(x_53); -lean_dec(x_21); -x_55 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_55, 0, x_53); -lean_ctor_set(x_55, 1, x_54); -return x_55; +lean_dec(x_22); +x_56 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_56, 0, x_54); +lean_ctor_set(x_56, 1, x_55); +return x_56; } } } else { -lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_56 = lean_ctor_get(x_14, 0); -x_57 = lean_ctor_get(x_14, 3); -x_58 = lean_ctor_get(x_14, 4); +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_57 = lean_ctor_get(x_14, 0); +x_58 = lean_ctor_get(x_14, 3); +x_59 = lean_ctor_get(x_14, 4); +lean_inc(x_59); lean_inc(x_58); lean_inc(x_57); -lean_inc(x_56); lean_dec(x_14); lean_inc(x_5); lean_inc(x_4); -x_59 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_59, 0, x_56); -lean_ctor_set(x_59, 1, x_4); -lean_ctor_set(x_59, 2, x_5); -lean_ctor_set(x_59, 3, x_57); -lean_ctor_set(x_59, 4, x_58); -lean_ctor_set(x_6, 0, x_59); -lean_inc(x_6); +x_60 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_60, 0, x_57); +lean_ctor_set(x_60, 1, x_4); +lean_ctor_set(x_60, 2, x_5); +lean_ctor_set(x_60, 3, x_58); +lean_ctor_set(x_60, 4, x_59); lean_inc(x_15); -x_60 = l_Lean_Elab_Term_elabType(x_15, x_6, x_7); -if (lean_obj_tag(x_60) == 0) -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; lean_object* x_71; lean_object* x_72; -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); -x_63 = l_Lean_Elab_Term_mkFreshFVarId___rarg(x_62); -x_64 = lean_ctor_get(x_63, 0); -lean_inc(x_64); -x_65 = lean_ctor_get(x_63, 1); -lean_inc(x_65); -lean_dec(x_63); -lean_inc(x_64); -x_66 = l_Lean_mkFVar(x_64); -lean_inc(x_66); -x_67 = lean_array_push(x_3, x_66); -x_68 = lean_ctor_get(x_13, 0); -lean_inc(x_68); -x_69 = l_Lean_Syntax_getId(x_68); -lean_dec(x_68); -x_70 = lean_ctor_get_uint8(x_13, sizeof(void*)*2); -lean_dec(x_13); -lean_inc(x_61); -x_71 = lean_local_ctx_mk_local_decl(x_4, x_64, x_69, x_61, x_70); +lean_ctor_set(x_6, 10, x_15); +lean_ctor_set(x_6, 0, x_60); lean_inc(x_6); -x_72 = l_Lean_Elab_Term_isClass(x_15, x_61, x_6, x_65); -lean_dec(x_15); -if (lean_obj_tag(x_72) == 0) +x_61 = l_Lean_Elab_Term_elabType(x_15, x_6, x_7); +if (lean_obj_tag(x_61) == 0) { -lean_object* x_73; -x_73 = lean_ctor_get(x_72, 0); -lean_inc(x_73); +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; lean_object* x_72; lean_object* x_73; +x_62 = lean_ctor_get(x_61, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_61, 1); +lean_inc(x_63); +lean_dec(x_61); +x_64 = l_Lean_Elab_Term_mkFreshFVarId___rarg(x_63); +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); +lean_inc(x_65); +x_67 = l_Lean_mkFVar(x_65); +lean_inc(x_67); +x_68 = lean_array_push(x_3, x_67); +x_69 = lean_ctor_get(x_13, 0); +lean_inc(x_69); +x_70 = l_Lean_Syntax_getId(x_69); +lean_dec(x_69); +x_71 = lean_ctor_get_uint8(x_13, sizeof(void*)*2); +lean_dec(x_13); +lean_inc(x_62); +x_72 = lean_local_ctx_mk_local_decl(x_4, x_65, x_70, x_62, x_71); +lean_inc(x_6); +x_73 = l_Lean_Elab_Term_isClass(x_62, x_6, x_66); if (lean_obj_tag(x_73) == 0) { -lean_object* x_74; lean_object* x_75; lean_object* x_76; -lean_dec(x_66); -x_74 = lean_ctor_get(x_72, 1); +lean_object* x_74; +x_74 = lean_ctor_get(x_73, 0); lean_inc(x_74); -lean_dec(x_72); -x_75 = lean_unsigned_to_nat(1u); -x_76 = lean_nat_add(x_2, x_75); +if (lean_obj_tag(x_74) == 0) +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; +lean_dec(x_67); +x_75 = lean_ctor_get(x_73, 1); +lean_inc(x_75); +lean_dec(x_73); +x_76 = lean_unsigned_to_nat(1u); +x_77 = lean_nat_add(x_2, x_76); lean_dec(x_2); -x_2 = x_76; -x_3 = x_67; -x_4 = x_71; -x_7 = x_74; +x_2 = x_77; +x_3 = x_68; +x_4 = x_72; +x_7 = x_75; goto _start; } else { -lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; -x_78 = lean_ctor_get(x_72, 1); -lean_inc(x_78); -lean_dec(x_72); -x_79 = lean_ctor_get(x_73, 0); +lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_79 = lean_ctor_get(x_73, 1); lean_inc(x_79); lean_dec(x_73); -x_80 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_80, 0, x_79); -lean_ctor_set(x_80, 1, x_66); -x_81 = lean_array_push(x_5, x_80); -x_82 = lean_unsigned_to_nat(1u); -x_83 = lean_nat_add(x_2, x_82); +x_80 = lean_ctor_get(x_74, 0); +lean_inc(x_80); +lean_dec(x_74); +x_81 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_81, 0, x_80); +lean_ctor_set(x_81, 1, x_67); +x_82 = lean_array_push(x_5, x_81); +x_83 = lean_unsigned_to_nat(1u); +x_84 = lean_nat_add(x_2, x_83); lean_dec(x_2); -x_84 = l_Lean_Elab_Term_resetSynthInstanceCache___rarg(x_78); -x_85 = lean_ctor_get(x_84, 1); -lean_inc(x_85); -lean_dec(x_84); -x_2 = x_83; -x_3 = x_67; -x_4 = x_71; -x_5 = x_81; -x_7 = x_85; +x_85 = l_Lean_Elab_Term_resetSynthInstanceCache___rarg(x_79); +x_86 = lean_ctor_get(x_85, 1); +lean_inc(x_86); +lean_dec(x_85); +x_2 = x_84; +x_3 = x_68; +x_4 = x_72; +x_5 = x_82; +x_7 = x_86; goto _start; } } else { -lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; -lean_dec(x_71); +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; +lean_dec(x_72); +lean_dec(x_68); lean_dec(x_67); -lean_dec(x_66); lean_dec(x_6); lean_dec(x_5); lean_dec(x_2); -x_87 = lean_ctor_get(x_72, 0); -lean_inc(x_87); -x_88 = lean_ctor_get(x_72, 1); +x_88 = lean_ctor_get(x_73, 0); lean_inc(x_88); -if (lean_is_exclusive(x_72)) { - lean_ctor_release(x_72, 0); - lean_ctor_release(x_72, 1); - x_89 = x_72; +x_89 = lean_ctor_get(x_73, 1); +lean_inc(x_89); +if (lean_is_exclusive(x_73)) { + lean_ctor_release(x_73, 0); + lean_ctor_release(x_73, 1); + x_90 = x_73; } else { - lean_dec_ref(x_72); - x_89 = lean_box(0); + lean_dec_ref(x_73); + x_90 = lean_box(0); } -if (lean_is_scalar(x_89)) { - x_90 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_90)) { + x_91 = lean_alloc_ctor(1, 2, 0); } else { - x_90 = x_89; + x_91 = x_90; } -lean_ctor_set(x_90, 0, x_87); -lean_ctor_set(x_90, 1, x_88); -return x_90; +lean_ctor_set(x_91, 0, x_88); +lean_ctor_set(x_91, 1, x_89); +return x_91; } } else { -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_dec(x_6); -lean_dec(x_15); lean_dec(x_13); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_91 = lean_ctor_get(x_60, 0); -lean_inc(x_91); -x_92 = lean_ctor_get(x_60, 1); +x_92 = lean_ctor_get(x_61, 0); lean_inc(x_92); -if (lean_is_exclusive(x_60)) { - lean_ctor_release(x_60, 0); - lean_ctor_release(x_60, 1); - x_93 = x_60; +x_93 = lean_ctor_get(x_61, 1); +lean_inc(x_93); +if (lean_is_exclusive(x_61)) { + lean_ctor_release(x_61, 0); + lean_ctor_release(x_61, 1); + x_94 = x_61; } else { - lean_dec_ref(x_60); - x_93 = lean_box(0); + lean_dec_ref(x_61); + x_94 = lean_box(0); } -if (lean_is_scalar(x_93)) { - x_94 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_94)) { + x_95 = lean_alloc_ctor(1, 2, 0); } else { - x_94 = x_93; + x_95 = x_94; } -lean_ctor_set(x_94, 0, x_91); -lean_ctor_set(x_94, 1, x_92); -return x_94; +lean_ctor_set(x_95, 0, x_92); +lean_ctor_set(x_95, 1, x_93); +return x_95; } } } else { -lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; uint8_t x_104; uint8_t x_105; uint8_t x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; -x_95 = lean_ctor_get(x_6, 1); -x_96 = lean_ctor_get(x_6, 2); -x_97 = lean_ctor_get(x_6, 3); -x_98 = lean_ctor_get(x_6, 4); -x_99 = lean_ctor_get(x_6, 5); -x_100 = lean_ctor_get(x_6, 6); -x_101 = lean_ctor_get(x_6, 7); -x_102 = lean_ctor_get(x_6, 8); -x_103 = lean_ctor_get(x_6, 9); -x_104 = lean_ctor_get_uint8(x_6, sizeof(void*)*10); -x_105 = lean_ctor_get_uint8(x_6, sizeof(void*)*10 + 1); -x_106 = lean_ctor_get_uint8(x_6, sizeof(void*)*10 + 2); +lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; uint8_t x_105; uint8_t x_106; uint8_t x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_96 = lean_ctor_get(x_6, 1); +x_97 = lean_ctor_get(x_6, 2); +x_98 = lean_ctor_get(x_6, 3); +x_99 = lean_ctor_get(x_6, 4); +x_100 = lean_ctor_get(x_6, 5); +x_101 = lean_ctor_get(x_6, 6); +x_102 = lean_ctor_get(x_6, 7); +x_103 = lean_ctor_get(x_6, 8); +x_104 = lean_ctor_get(x_6, 9); +x_105 = lean_ctor_get_uint8(x_6, sizeof(void*)*11); +x_106 = lean_ctor_get_uint8(x_6, sizeof(void*)*11 + 1); +x_107 = lean_ctor_get_uint8(x_6, sizeof(void*)*11 + 2); +lean_inc(x_104); lean_inc(x_103); lean_inc(x_102); lean_inc(x_101); @@ -3979,195 +3758,193 @@ lean_inc(x_99); lean_inc(x_98); lean_inc(x_97); lean_inc(x_96); -lean_inc(x_95); lean_dec(x_6); -x_107 = lean_ctor_get(x_14, 0); -lean_inc(x_107); -x_108 = lean_ctor_get(x_14, 3); +x_108 = lean_ctor_get(x_14, 0); lean_inc(x_108); -x_109 = lean_ctor_get(x_14, 4); +x_109 = lean_ctor_get(x_14, 3); lean_inc(x_109); +x_110 = lean_ctor_get(x_14, 4); +lean_inc(x_110); if (lean_is_exclusive(x_14)) { lean_ctor_release(x_14, 0); lean_ctor_release(x_14, 1); lean_ctor_release(x_14, 2); lean_ctor_release(x_14, 3); lean_ctor_release(x_14, 4); - x_110 = x_14; + x_111 = x_14; } else { lean_dec_ref(x_14); - x_110 = lean_box(0); + x_111 = lean_box(0); } lean_inc(x_5); lean_inc(x_4); -if (lean_is_scalar(x_110)) { - x_111 = lean_alloc_ctor(0, 5, 0); +if (lean_is_scalar(x_111)) { + x_112 = lean_alloc_ctor(0, 5, 0); } else { - x_111 = x_110; + x_112 = x_111; } -lean_ctor_set(x_111, 0, x_107); -lean_ctor_set(x_111, 1, x_4); -lean_ctor_set(x_111, 2, x_5); -lean_ctor_set(x_111, 3, x_108); -lean_ctor_set(x_111, 4, x_109); -x_112 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_112, 0, x_111); -lean_ctor_set(x_112, 1, x_95); -lean_ctor_set(x_112, 2, x_96); -lean_ctor_set(x_112, 3, x_97); -lean_ctor_set(x_112, 4, x_98); -lean_ctor_set(x_112, 5, x_99); -lean_ctor_set(x_112, 6, x_100); -lean_ctor_set(x_112, 7, x_101); -lean_ctor_set(x_112, 8, x_102); -lean_ctor_set(x_112, 9, x_103); -lean_ctor_set_uint8(x_112, sizeof(void*)*10, x_104); -lean_ctor_set_uint8(x_112, sizeof(void*)*10 + 1, x_105); -lean_ctor_set_uint8(x_112, sizeof(void*)*10 + 2, x_106); -lean_inc(x_112); +lean_ctor_set(x_112, 0, x_108); +lean_ctor_set(x_112, 1, x_4); +lean_ctor_set(x_112, 2, x_5); +lean_ctor_set(x_112, 3, x_109); +lean_ctor_set(x_112, 4, x_110); lean_inc(x_15); -x_113 = l_Lean_Elab_Term_elabType(x_15, x_112, x_7); -if (lean_obj_tag(x_113) == 0) +x_113 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_113, 0, x_112); +lean_ctor_set(x_113, 1, x_96); +lean_ctor_set(x_113, 2, x_97); +lean_ctor_set(x_113, 3, x_98); +lean_ctor_set(x_113, 4, x_99); +lean_ctor_set(x_113, 5, x_100); +lean_ctor_set(x_113, 6, x_101); +lean_ctor_set(x_113, 7, x_102); +lean_ctor_set(x_113, 8, x_103); +lean_ctor_set(x_113, 9, x_104); +lean_ctor_set(x_113, 10, x_15); +lean_ctor_set_uint8(x_113, sizeof(void*)*11, x_105); +lean_ctor_set_uint8(x_113, sizeof(void*)*11 + 1, x_106); +lean_ctor_set_uint8(x_113, sizeof(void*)*11 + 2, x_107); +lean_inc(x_113); +x_114 = l_Lean_Elab_Term_elabType(x_15, x_113, x_7); +if (lean_obj_tag(x_114) == 0) { -lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; uint8_t x_123; lean_object* x_124; lean_object* x_125; -x_114 = lean_ctor_get(x_113, 0); -lean_inc(x_114); -x_115 = lean_ctor_get(x_113, 1); +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; uint8_t x_124; lean_object* x_125; lean_object* x_126; +x_115 = lean_ctor_get(x_114, 0); lean_inc(x_115); -lean_dec(x_113); -x_116 = l_Lean_Elab_Term_mkFreshFVarId___rarg(x_115); -x_117 = lean_ctor_get(x_116, 0); -lean_inc(x_117); -x_118 = lean_ctor_get(x_116, 1); +x_116 = lean_ctor_get(x_114, 1); +lean_inc(x_116); +lean_dec(x_114); +x_117 = l_Lean_Elab_Term_mkFreshFVarId___rarg(x_116); +x_118 = lean_ctor_get(x_117, 0); lean_inc(x_118); -lean_dec(x_116); -lean_inc(x_117); -x_119 = l_Lean_mkFVar(x_117); +x_119 = lean_ctor_get(x_117, 1); lean_inc(x_119); -x_120 = lean_array_push(x_3, x_119); -x_121 = lean_ctor_get(x_13, 0); -lean_inc(x_121); -x_122 = l_Lean_Syntax_getId(x_121); -lean_dec(x_121); -x_123 = lean_ctor_get_uint8(x_13, sizeof(void*)*2); +lean_dec(x_117); +lean_inc(x_118); +x_120 = l_Lean_mkFVar(x_118); +lean_inc(x_120); +x_121 = lean_array_push(x_3, x_120); +x_122 = lean_ctor_get(x_13, 0); +lean_inc(x_122); +x_123 = l_Lean_Syntax_getId(x_122); +lean_dec(x_122); +x_124 = lean_ctor_get_uint8(x_13, sizeof(void*)*2); lean_dec(x_13); -lean_inc(x_114); -x_124 = lean_local_ctx_mk_local_decl(x_4, x_117, x_122, x_114, x_123); -lean_inc(x_112); -x_125 = l_Lean_Elab_Term_isClass(x_15, x_114, x_112, x_118); -lean_dec(x_15); -if (lean_obj_tag(x_125) == 0) -{ -lean_object* x_126; -x_126 = lean_ctor_get(x_125, 0); -lean_inc(x_126); +lean_inc(x_115); +x_125 = lean_local_ctx_mk_local_decl(x_4, x_118, x_123, x_115, x_124); +lean_inc(x_113); +x_126 = l_Lean_Elab_Term_isClass(x_115, x_113, x_119); if (lean_obj_tag(x_126) == 0) { -lean_object* x_127; lean_object* x_128; lean_object* x_129; -lean_dec(x_119); -x_127 = lean_ctor_get(x_125, 1); +lean_object* x_127; +x_127 = lean_ctor_get(x_126, 0); lean_inc(x_127); -lean_dec(x_125); -x_128 = lean_unsigned_to_nat(1u); -x_129 = lean_nat_add(x_2, x_128); +if (lean_obj_tag(x_127) == 0) +{ +lean_object* x_128; lean_object* x_129; lean_object* x_130; +lean_dec(x_120); +x_128 = lean_ctor_get(x_126, 1); +lean_inc(x_128); +lean_dec(x_126); +x_129 = lean_unsigned_to_nat(1u); +x_130 = lean_nat_add(x_2, x_129); lean_dec(x_2); -x_2 = x_129; -x_3 = x_120; -x_4 = x_124; -x_6 = x_112; -x_7 = x_127; +x_2 = x_130; +x_3 = x_121; +x_4 = x_125; +x_6 = x_113; +x_7 = x_128; goto _start; } else { -lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; -x_131 = lean_ctor_get(x_125, 1); -lean_inc(x_131); -lean_dec(x_125); -x_132 = lean_ctor_get(x_126, 0); +lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; +x_132 = lean_ctor_get(x_126, 1); lean_inc(x_132); lean_dec(x_126); -x_133 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_133, 0, x_132); -lean_ctor_set(x_133, 1, x_119); -x_134 = lean_array_push(x_5, x_133); -x_135 = lean_unsigned_to_nat(1u); -x_136 = lean_nat_add(x_2, x_135); +x_133 = lean_ctor_get(x_127, 0); +lean_inc(x_133); +lean_dec(x_127); +x_134 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 1, x_120); +x_135 = lean_array_push(x_5, x_134); +x_136 = lean_unsigned_to_nat(1u); +x_137 = lean_nat_add(x_2, x_136); lean_dec(x_2); -x_137 = l_Lean_Elab_Term_resetSynthInstanceCache___rarg(x_131); -x_138 = lean_ctor_get(x_137, 1); -lean_inc(x_138); -lean_dec(x_137); -x_2 = x_136; -x_3 = x_120; -x_4 = x_124; -x_5 = x_134; -x_6 = x_112; -x_7 = x_138; +x_138 = l_Lean_Elab_Term_resetSynthInstanceCache___rarg(x_132); +x_139 = lean_ctor_get(x_138, 1); +lean_inc(x_139); +lean_dec(x_138); +x_2 = x_137; +x_3 = x_121; +x_4 = x_125; +x_5 = x_135; +x_6 = x_113; +x_7 = x_139; goto _start; } } else { -lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; -lean_dec(x_124); +lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; +lean_dec(x_125); +lean_dec(x_121); lean_dec(x_120); -lean_dec(x_119); -lean_dec(x_112); +lean_dec(x_113); lean_dec(x_5); lean_dec(x_2); -x_140 = lean_ctor_get(x_125, 0); -lean_inc(x_140); -x_141 = lean_ctor_get(x_125, 1); +x_141 = lean_ctor_get(x_126, 0); lean_inc(x_141); -if (lean_is_exclusive(x_125)) { - lean_ctor_release(x_125, 0); - lean_ctor_release(x_125, 1); - x_142 = x_125; +x_142 = lean_ctor_get(x_126, 1); +lean_inc(x_142); +if (lean_is_exclusive(x_126)) { + lean_ctor_release(x_126, 0); + lean_ctor_release(x_126, 1); + x_143 = x_126; } else { - lean_dec_ref(x_125); - x_142 = lean_box(0); + lean_dec_ref(x_126); + x_143 = lean_box(0); } -if (lean_is_scalar(x_142)) { - x_143 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_143)) { + x_144 = lean_alloc_ctor(1, 2, 0); } else { - x_143 = x_142; + x_144 = x_143; } -lean_ctor_set(x_143, 0, x_140); -lean_ctor_set(x_143, 1, x_141); -return x_143; +lean_ctor_set(x_144, 0, x_141); +lean_ctor_set(x_144, 1, x_142); +return x_144; } } else { -lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; -lean_dec(x_112); -lean_dec(x_15); +lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; +lean_dec(x_113); lean_dec(x_13); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_144 = lean_ctor_get(x_113, 0); -lean_inc(x_144); -x_145 = lean_ctor_get(x_113, 1); +x_145 = lean_ctor_get(x_114, 0); lean_inc(x_145); -if (lean_is_exclusive(x_113)) { - lean_ctor_release(x_113, 0); - lean_ctor_release(x_113, 1); - x_146 = x_113; +x_146 = lean_ctor_get(x_114, 1); +lean_inc(x_146); +if (lean_is_exclusive(x_114)) { + lean_ctor_release(x_114, 0); + lean_ctor_release(x_114, 1); + x_147 = x_114; } else { - lean_dec_ref(x_113); - x_146 = lean_box(0); + lean_dec_ref(x_114); + x_147 = lean_box(0); } -if (lean_is_scalar(x_146)) { - x_147 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_147)) { + x_148 = lean_alloc_ctor(1, 2, 0); } else { - x_147 = x_146; + x_148 = x_147; } -lean_ctor_set(x_147, 0, x_144); -lean_ctor_set(x_147, 1, x_145); -return x_147; +lean_ctor_set(x_148, 0, x_145); +lean_ctor_set(x_148, 1, x_146); +return x_148; } } } @@ -4451,7 +4228,7 @@ return x_35; } else { -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; uint8_t x_47; uint8_t x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; uint8_t x_47; uint8_t x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; x_36 = lean_ctor_get(x_3, 0); x_37 = lean_ctor_get(x_3, 1); x_38 = lean_ctor_get(x_3, 2); @@ -4462,9 +4239,11 @@ x_42 = lean_ctor_get(x_3, 6); x_43 = lean_ctor_get(x_3, 7); x_44 = lean_ctor_get(x_3, 8); x_45 = lean_ctor_get(x_3, 9); -x_46 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); -x_47 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); -x_48 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); +x_46 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_47 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_48 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +x_49 = lean_ctor_get(x_3, 10); +lean_inc(x_49); lean_inc(x_45); lean_inc(x_44); lean_inc(x_43); @@ -4476,177 +4255,181 @@ lean_inc(x_38); lean_inc(x_37); lean_inc(x_36); lean_dec(x_3); -x_49 = lean_ctor_get(x_36, 0); -lean_inc(x_49); -x_50 = lean_ctor_get(x_36, 3); +x_50 = lean_ctor_get(x_36, 0); lean_inc(x_50); -x_51 = lean_ctor_get(x_36, 4); +x_51 = lean_ctor_get(x_36, 3); lean_inc(x_51); +x_52 = lean_ctor_get(x_36, 4); +lean_inc(x_52); if (lean_is_exclusive(x_36)) { lean_ctor_release(x_36, 0); lean_ctor_release(x_36, 1); lean_ctor_release(x_36, 2); lean_ctor_release(x_36, 3); lean_ctor_release(x_36, 4); - x_52 = x_36; + x_53 = x_36; } else { lean_dec_ref(x_36); - x_52 = lean_box(0); + x_53 = lean_box(0); } -if (lean_is_scalar(x_52)) { - x_53 = lean_alloc_ctor(0, 5, 0); +if (lean_is_scalar(x_53)) { + x_54 = lean_alloc_ctor(0, 5, 0); } else { - x_53 = x_52; + x_54 = x_53; } -lean_ctor_set(x_53, 0, x_49); -lean_ctor_set(x_53, 1, x_20); -lean_ctor_set(x_53, 2, x_21); -lean_ctor_set(x_53, 3, x_50); -lean_ctor_set(x_53, 4, x_51); -x_54 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_54, 1, x_37); -lean_ctor_set(x_54, 2, x_38); -lean_ctor_set(x_54, 3, x_39); -lean_ctor_set(x_54, 4, x_40); -lean_ctor_set(x_54, 5, x_41); -lean_ctor_set(x_54, 6, x_42); -lean_ctor_set(x_54, 7, x_43); -lean_ctor_set(x_54, 8, x_44); -lean_ctor_set(x_54, 9, x_45); -lean_ctor_set_uint8(x_54, sizeof(void*)*10, x_46); -lean_ctor_set_uint8(x_54, sizeof(void*)*10 + 1, x_47); -lean_ctor_set_uint8(x_54, sizeof(void*)*10 + 2, x_48); -x_55 = lean_apply_3(x_2, x_19, x_54, x_17); -return x_55; +lean_ctor_set(x_54, 0, x_50); +lean_ctor_set(x_54, 1, x_20); +lean_ctor_set(x_54, 2, x_21); +lean_ctor_set(x_54, 3, x_51); +lean_ctor_set(x_54, 4, x_52); +x_55 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_55, 0, x_54); +lean_ctor_set(x_55, 1, x_37); +lean_ctor_set(x_55, 2, x_38); +lean_ctor_set(x_55, 3, x_39); +lean_ctor_set(x_55, 4, x_40); +lean_ctor_set(x_55, 5, x_41); +lean_ctor_set(x_55, 6, x_42); +lean_ctor_set(x_55, 7, x_43); +lean_ctor_set(x_55, 8, x_44); +lean_ctor_set(x_55, 9, x_45); +lean_ctor_set(x_55, 10, x_49); +lean_ctor_set_uint8(x_55, sizeof(void*)*11, x_46); +lean_ctor_set_uint8(x_55, sizeof(void*)*11 + 1, x_47); +lean_ctor_set_uint8(x_55, sizeof(void*)*11 + 2, x_48); +x_56 = lean_apply_3(x_2, x_19, x_55, x_17); +return x_56; } } else { -lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_160; lean_object* x_161; lean_object* x_162; uint8_t x_163; -x_56 = lean_ctor_get(x_17, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_56, 2); +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_161; lean_object* x_162; lean_object* x_163; uint8_t x_164; +x_57 = lean_ctor_get(x_17, 0); lean_inc(x_57); -lean_dec(x_56); x_58 = lean_ctor_get(x_57, 2); lean_inc(x_58); lean_dec(x_57); -x_160 = l_Lean_Elab_Term_resetSynthInstanceCache___rarg(x_17); -x_161 = lean_ctor_get(x_3, 0); -lean_inc(x_161); -x_162 = lean_ctor_get(x_160, 1); +x_59 = lean_ctor_get(x_58, 2); +lean_inc(x_59); +lean_dec(x_58); +x_161 = l_Lean_Elab_Term_resetSynthInstanceCache___rarg(x_17); +x_162 = lean_ctor_get(x_3, 0); lean_inc(x_162); -lean_dec(x_160); -x_163 = !lean_is_exclusive(x_3); -if (x_163 == 0) +x_163 = lean_ctor_get(x_161, 1); +lean_inc(x_163); +lean_dec(x_161); +x_164 = !lean_is_exclusive(x_3); +if (x_164 == 0) { -lean_object* x_164; uint8_t x_165; -x_164 = lean_ctor_get(x_3, 0); -lean_dec(x_164); -x_165 = !lean_is_exclusive(x_161); -if (x_165 == 0) +lean_object* x_165; uint8_t x_166; +x_165 = lean_ctor_get(x_3, 0); +lean_dec(x_165); +x_166 = !lean_is_exclusive(x_162); +if (x_166 == 0) { -lean_object* x_166; lean_object* x_167; lean_object* x_168; -x_166 = lean_ctor_get(x_161, 2); -lean_dec(x_166); -x_167 = lean_ctor_get(x_161, 1); +lean_object* x_167; lean_object* x_168; lean_object* x_169; +x_167 = lean_ctor_get(x_162, 2); lean_dec(x_167); -lean_ctor_set(x_161, 2, x_21); -lean_ctor_set(x_161, 1, x_20); -x_168 = lean_apply_3(x_2, x_19, x_3, x_162); -if (lean_obj_tag(x_168) == 0) +x_168 = lean_ctor_get(x_162, 1); +lean_dec(x_168); +lean_ctor_set(x_162, 2, x_21); +lean_ctor_set(x_162, 1, x_20); +x_169 = lean_apply_3(x_2, x_19, x_3, x_163); +if (lean_obj_tag(x_169) == 0) { -lean_object* x_169; lean_object* x_170; lean_object* x_171; -x_169 = lean_ctor_get(x_168, 0); -lean_inc(x_169); -x_170 = lean_ctor_get(x_168, 1); +lean_object* x_170; lean_object* x_171; lean_object* x_172; +x_170 = lean_ctor_get(x_169, 0); lean_inc(x_170); -lean_dec(x_168); -x_171 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_171, 0, x_169); -x_59 = x_171; -x_60 = x_170; -goto block_159; +x_171 = lean_ctor_get(x_169, 1); +lean_inc(x_171); +lean_dec(x_169); +x_172 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_172, 0, x_170); +x_60 = x_172; +x_61 = x_171; +goto block_160; } else { -lean_object* x_172; lean_object* x_173; lean_object* x_174; -x_172 = lean_ctor_get(x_168, 0); -lean_inc(x_172); -x_173 = lean_ctor_get(x_168, 1); +lean_object* x_173; lean_object* x_174; lean_object* x_175; +x_173 = lean_ctor_get(x_169, 0); lean_inc(x_173); -lean_dec(x_168); -x_174 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_174, 0, x_172); -x_59 = x_174; -x_60 = x_173; -goto block_159; +x_174 = lean_ctor_get(x_169, 1); +lean_inc(x_174); +lean_dec(x_169); +x_175 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_175, 0, x_173); +x_60 = x_175; +x_61 = x_174; +goto block_160; } } else { -lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; -x_175 = lean_ctor_get(x_161, 0); -x_176 = lean_ctor_get(x_161, 3); -x_177 = lean_ctor_get(x_161, 4); +lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; +x_176 = lean_ctor_get(x_162, 0); +x_177 = lean_ctor_get(x_162, 3); +x_178 = lean_ctor_get(x_162, 4); +lean_inc(x_178); lean_inc(x_177); lean_inc(x_176); -lean_inc(x_175); -lean_dec(x_161); -x_178 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_178, 0, x_175); -lean_ctor_set(x_178, 1, x_20); -lean_ctor_set(x_178, 2, x_21); -lean_ctor_set(x_178, 3, x_176); -lean_ctor_set(x_178, 4, x_177); -lean_ctor_set(x_3, 0, x_178); -x_179 = lean_apply_3(x_2, x_19, x_3, x_162); -if (lean_obj_tag(x_179) == 0) +lean_dec(x_162); +x_179 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_179, 0, x_176); +lean_ctor_set(x_179, 1, x_20); +lean_ctor_set(x_179, 2, x_21); +lean_ctor_set(x_179, 3, x_177); +lean_ctor_set(x_179, 4, x_178); +lean_ctor_set(x_3, 0, x_179); +x_180 = lean_apply_3(x_2, x_19, x_3, x_163); +if (lean_obj_tag(x_180) == 0) { -lean_object* x_180; lean_object* x_181; lean_object* x_182; -x_180 = lean_ctor_get(x_179, 0); -lean_inc(x_180); -x_181 = lean_ctor_get(x_179, 1); +lean_object* x_181; lean_object* x_182; lean_object* x_183; +x_181 = lean_ctor_get(x_180, 0); lean_inc(x_181); -lean_dec(x_179); -x_182 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_182, 0, x_180); -x_59 = x_182; -x_60 = x_181; -goto block_159; +x_182 = lean_ctor_get(x_180, 1); +lean_inc(x_182); +lean_dec(x_180); +x_183 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_183, 0, x_181); +x_60 = x_183; +x_61 = x_182; +goto block_160; } else { -lean_object* x_183; lean_object* x_184; lean_object* x_185; -x_183 = lean_ctor_get(x_179, 0); -lean_inc(x_183); -x_184 = lean_ctor_get(x_179, 1); +lean_object* x_184; lean_object* x_185; lean_object* x_186; +x_184 = lean_ctor_get(x_180, 0); lean_inc(x_184); -lean_dec(x_179); -x_185 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_185, 0, x_183); -x_59 = x_185; -x_60 = x_184; -goto block_159; +x_185 = lean_ctor_get(x_180, 1); +lean_inc(x_185); +lean_dec(x_180); +x_186 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_186, 0, x_184); +x_60 = x_186; +x_61 = x_185; +goto block_160; } } } else { -lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; uint8_t x_195; uint8_t x_196; uint8_t x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; -x_186 = lean_ctor_get(x_3, 1); -x_187 = lean_ctor_get(x_3, 2); -x_188 = lean_ctor_get(x_3, 3); -x_189 = lean_ctor_get(x_3, 4); -x_190 = lean_ctor_get(x_3, 5); -x_191 = lean_ctor_get(x_3, 6); -x_192 = lean_ctor_get(x_3, 7); -x_193 = lean_ctor_get(x_3, 8); -x_194 = lean_ctor_get(x_3, 9); -x_195 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); -x_196 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); -x_197 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); +lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; uint8_t x_196; uint8_t x_197; uint8_t x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; +x_187 = lean_ctor_get(x_3, 1); +x_188 = lean_ctor_get(x_3, 2); +x_189 = lean_ctor_get(x_3, 3); +x_190 = lean_ctor_get(x_3, 4); +x_191 = lean_ctor_get(x_3, 5); +x_192 = lean_ctor_get(x_3, 6); +x_193 = lean_ctor_get(x_3, 7); +x_194 = lean_ctor_get(x_3, 8); +x_195 = lean_ctor_get(x_3, 9); +x_196 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_197 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_198 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +x_199 = lean_ctor_get(x_3, 10); +lean_inc(x_199); +lean_inc(x_195); lean_inc(x_194); lean_inc(x_193); lean_inc(x_192); @@ -4655,525 +4438,525 @@ lean_inc(x_190); lean_inc(x_189); lean_inc(x_188); lean_inc(x_187); -lean_inc(x_186); lean_dec(x_3); -x_198 = lean_ctor_get(x_161, 0); -lean_inc(x_198); -x_199 = lean_ctor_get(x_161, 3); -lean_inc(x_199); -x_200 = lean_ctor_get(x_161, 4); +x_200 = lean_ctor_get(x_162, 0); lean_inc(x_200); -if (lean_is_exclusive(x_161)) { - lean_ctor_release(x_161, 0); - lean_ctor_release(x_161, 1); - lean_ctor_release(x_161, 2); - lean_ctor_release(x_161, 3); - lean_ctor_release(x_161, 4); - x_201 = x_161; +x_201 = lean_ctor_get(x_162, 3); +lean_inc(x_201); +x_202 = lean_ctor_get(x_162, 4); +lean_inc(x_202); +if (lean_is_exclusive(x_162)) { + lean_ctor_release(x_162, 0); + lean_ctor_release(x_162, 1); + lean_ctor_release(x_162, 2); + lean_ctor_release(x_162, 3); + lean_ctor_release(x_162, 4); + x_203 = x_162; } else { - lean_dec_ref(x_161); - x_201 = lean_box(0); + lean_dec_ref(x_162); + x_203 = lean_box(0); } -if (lean_is_scalar(x_201)) { - x_202 = lean_alloc_ctor(0, 5, 0); +if (lean_is_scalar(x_203)) { + x_204 = lean_alloc_ctor(0, 5, 0); } else { - x_202 = x_201; + x_204 = x_203; } -lean_ctor_set(x_202, 0, x_198); -lean_ctor_set(x_202, 1, x_20); -lean_ctor_set(x_202, 2, x_21); -lean_ctor_set(x_202, 3, x_199); -lean_ctor_set(x_202, 4, x_200); -x_203 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_203, 0, x_202); -lean_ctor_set(x_203, 1, x_186); -lean_ctor_set(x_203, 2, x_187); -lean_ctor_set(x_203, 3, x_188); -lean_ctor_set(x_203, 4, x_189); -lean_ctor_set(x_203, 5, x_190); -lean_ctor_set(x_203, 6, x_191); -lean_ctor_set(x_203, 7, x_192); -lean_ctor_set(x_203, 8, x_193); -lean_ctor_set(x_203, 9, x_194); -lean_ctor_set_uint8(x_203, sizeof(void*)*10, x_195); -lean_ctor_set_uint8(x_203, sizeof(void*)*10 + 1, x_196); -lean_ctor_set_uint8(x_203, sizeof(void*)*10 + 2, x_197); -x_204 = lean_apply_3(x_2, x_19, x_203, x_162); -if (lean_obj_tag(x_204) == 0) +lean_ctor_set(x_204, 0, x_200); +lean_ctor_set(x_204, 1, x_20); +lean_ctor_set(x_204, 2, x_21); +lean_ctor_set(x_204, 3, x_201); +lean_ctor_set(x_204, 4, x_202); +x_205 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_205, 0, x_204); +lean_ctor_set(x_205, 1, x_187); +lean_ctor_set(x_205, 2, x_188); +lean_ctor_set(x_205, 3, x_189); +lean_ctor_set(x_205, 4, x_190); +lean_ctor_set(x_205, 5, x_191); +lean_ctor_set(x_205, 6, x_192); +lean_ctor_set(x_205, 7, x_193); +lean_ctor_set(x_205, 8, x_194); +lean_ctor_set(x_205, 9, x_195); +lean_ctor_set(x_205, 10, x_199); +lean_ctor_set_uint8(x_205, sizeof(void*)*11, x_196); +lean_ctor_set_uint8(x_205, sizeof(void*)*11 + 1, x_197); +lean_ctor_set_uint8(x_205, sizeof(void*)*11 + 2, x_198); +x_206 = lean_apply_3(x_2, x_19, x_205, x_163); +if (lean_obj_tag(x_206) == 0) { -lean_object* x_205; lean_object* x_206; lean_object* x_207; -x_205 = lean_ctor_get(x_204, 0); -lean_inc(x_205); -x_206 = lean_ctor_get(x_204, 1); -lean_inc(x_206); -lean_dec(x_204); -x_207 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_207, 0, x_205); -x_59 = x_207; -x_60 = x_206; -goto block_159; -} -else -{ -lean_object* x_208; lean_object* x_209; lean_object* x_210; -x_208 = lean_ctor_get(x_204, 0); +lean_object* x_207; lean_object* x_208; lean_object* x_209; +x_207 = lean_ctor_get(x_206, 0); +lean_inc(x_207); +x_208 = lean_ctor_get(x_206, 1); lean_inc(x_208); -x_209 = lean_ctor_get(x_204, 1); -lean_inc(x_209); -lean_dec(x_204); -x_210 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_210, 0, x_208); -x_59 = x_210; +lean_dec(x_206); +x_209 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_209, 0, x_207); x_60 = x_209; -goto block_159; -} -} -block_159: -{ -if (lean_obj_tag(x_59) == 0) -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; -x_61 = lean_ctor_get(x_60, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_61, 2); -lean_inc(x_62); -x_63 = lean_ctor_get(x_59, 0); -lean_inc(x_63); -lean_dec(x_59); -x_64 = !lean_is_exclusive(x_60); -if (x_64 == 0) -{ -lean_object* x_65; uint8_t x_66; -x_65 = lean_ctor_get(x_60, 0); -lean_dec(x_65); -x_66 = !lean_is_exclusive(x_61); -if (x_66 == 0) -{ -lean_object* x_67; uint8_t x_68; -x_67 = lean_ctor_get(x_61, 2); -lean_dec(x_67); -x_68 = !lean_is_exclusive(x_62); -if (x_68 == 0) -{ -lean_object* x_69; lean_object* x_70; -x_69 = lean_ctor_get(x_62, 2); -lean_dec(x_69); -lean_ctor_set(x_62, 2, x_58); -if (lean_is_scalar(x_18)) { - x_70 = lean_alloc_ctor(1, 2, 0); -} else { - x_70 = x_18; - lean_ctor_set_tag(x_70, 1); -} -lean_ctor_set(x_70, 0, x_63); -lean_ctor_set(x_70, 1, x_60); -return x_70; +x_61 = x_208; +goto block_160; } else { -lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_71 = lean_ctor_get(x_62, 0); -x_72 = lean_ctor_get(x_62, 1); -x_73 = lean_ctor_get(x_62, 3); -x_74 = lean_ctor_get(x_62, 4); +lean_object* x_210; lean_object* x_211; lean_object* x_212; +x_210 = lean_ctor_get(x_206, 0); +lean_inc(x_210); +x_211 = lean_ctor_get(x_206, 1); +lean_inc(x_211); +lean_dec(x_206); +x_212 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_212, 0, x_210); +x_60 = x_212; +x_61 = x_211; +goto block_160; +} +} +block_160: +{ +if (lean_obj_tag(x_60) == 0) +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; +x_62 = lean_ctor_get(x_61, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_62, 2); +lean_inc(x_63); +x_64 = lean_ctor_get(x_60, 0); +lean_inc(x_64); +lean_dec(x_60); +x_65 = !lean_is_exclusive(x_61); +if (x_65 == 0) +{ +lean_object* x_66; uint8_t x_67; +x_66 = lean_ctor_get(x_61, 0); +lean_dec(x_66); +x_67 = !lean_is_exclusive(x_62); +if (x_67 == 0) +{ +lean_object* x_68; uint8_t x_69; +x_68 = lean_ctor_get(x_62, 2); +lean_dec(x_68); +x_69 = !lean_is_exclusive(x_63); +if (x_69 == 0) +{ +lean_object* x_70; lean_object* x_71; +x_70 = lean_ctor_get(x_63, 2); +lean_dec(x_70); +lean_ctor_set(x_63, 2, x_59); +if (lean_is_scalar(x_18)) { + x_71 = lean_alloc_ctor(1, 2, 0); +} else { + x_71 = x_18; + lean_ctor_set_tag(x_71, 1); +} +lean_ctor_set(x_71, 0, x_64); +lean_ctor_set(x_71, 1, x_61); +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_object* x_77; +x_72 = lean_ctor_get(x_63, 0); +x_73 = lean_ctor_get(x_63, 1); +x_74 = lean_ctor_get(x_63, 3); +x_75 = lean_ctor_get(x_63, 4); +lean_inc(x_75); lean_inc(x_74); lean_inc(x_73); lean_inc(x_72); -lean_inc(x_71); -lean_dec(x_62); -x_75 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_75, 0, x_71); -lean_ctor_set(x_75, 1, x_72); -lean_ctor_set(x_75, 2, x_58); -lean_ctor_set(x_75, 3, x_73); -lean_ctor_set(x_75, 4, x_74); -lean_ctor_set(x_61, 2, x_75); +lean_dec(x_63); +x_76 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_76, 0, x_72); +lean_ctor_set(x_76, 1, x_73); +lean_ctor_set(x_76, 2, x_59); +lean_ctor_set(x_76, 3, x_74); +lean_ctor_set(x_76, 4, x_75); +lean_ctor_set(x_62, 2, x_76); if (lean_is_scalar(x_18)) { - x_76 = lean_alloc_ctor(1, 2, 0); + x_77 = lean_alloc_ctor(1, 2, 0); } else { - x_76 = x_18; - lean_ctor_set_tag(x_76, 1); + x_77 = x_18; + lean_ctor_set_tag(x_77, 1); } -lean_ctor_set(x_76, 0, x_63); -lean_ctor_set(x_76, 1, x_60); -return x_76; +lean_ctor_set(x_77, 0, x_64); +lean_ctor_set(x_77, 1, x_61); +return x_77; } } else { -lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_77 = lean_ctor_get(x_61, 0); -x_78 = lean_ctor_get(x_61, 1); -x_79 = lean_ctor_get(x_61, 3); -x_80 = lean_ctor_get(x_61, 4); -x_81 = lean_ctor_get(x_61, 5); +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_78 = lean_ctor_get(x_62, 0); +x_79 = lean_ctor_get(x_62, 1); +x_80 = lean_ctor_get(x_62, 3); +x_81 = lean_ctor_get(x_62, 4); +x_82 = lean_ctor_get(x_62, 5); +lean_inc(x_82); lean_inc(x_81); lean_inc(x_80); lean_inc(x_79); lean_inc(x_78); -lean_inc(x_77); -lean_dec(x_61); -x_82 = lean_ctor_get(x_62, 0); -lean_inc(x_82); -x_83 = lean_ctor_get(x_62, 1); +lean_dec(x_62); +x_83 = lean_ctor_get(x_63, 0); lean_inc(x_83); -x_84 = lean_ctor_get(x_62, 3); +x_84 = lean_ctor_get(x_63, 1); lean_inc(x_84); -x_85 = lean_ctor_get(x_62, 4); +x_85 = lean_ctor_get(x_63, 3); lean_inc(x_85); -if (lean_is_exclusive(x_62)) { - lean_ctor_release(x_62, 0); - lean_ctor_release(x_62, 1); - lean_ctor_release(x_62, 2); - lean_ctor_release(x_62, 3); - lean_ctor_release(x_62, 4); - x_86 = x_62; +x_86 = lean_ctor_get(x_63, 4); +lean_inc(x_86); +if (lean_is_exclusive(x_63)) { + lean_ctor_release(x_63, 0); + lean_ctor_release(x_63, 1); + lean_ctor_release(x_63, 2); + lean_ctor_release(x_63, 3); + lean_ctor_release(x_63, 4); + x_87 = x_63; } else { - lean_dec_ref(x_62); - x_86 = lean_box(0); + lean_dec_ref(x_63); + x_87 = lean_box(0); } -if (lean_is_scalar(x_86)) { - x_87 = lean_alloc_ctor(0, 5, 0); +if (lean_is_scalar(x_87)) { + x_88 = lean_alloc_ctor(0, 5, 0); } else { - x_87 = x_86; + x_88 = x_87; } -lean_ctor_set(x_87, 0, x_82); -lean_ctor_set(x_87, 1, x_83); -lean_ctor_set(x_87, 2, x_58); -lean_ctor_set(x_87, 3, x_84); -lean_ctor_set(x_87, 4, x_85); -x_88 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_88, 0, x_77); -lean_ctor_set(x_88, 1, x_78); -lean_ctor_set(x_88, 2, x_87); -lean_ctor_set(x_88, 3, x_79); -lean_ctor_set(x_88, 4, x_80); -lean_ctor_set(x_88, 5, x_81); -lean_ctor_set(x_60, 0, x_88); +lean_ctor_set(x_88, 0, x_83); +lean_ctor_set(x_88, 1, x_84); +lean_ctor_set(x_88, 2, x_59); +lean_ctor_set(x_88, 3, x_85); +lean_ctor_set(x_88, 4, x_86); +x_89 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_89, 0, x_78); +lean_ctor_set(x_89, 1, x_79); +lean_ctor_set(x_89, 2, x_88); +lean_ctor_set(x_89, 3, x_80); +lean_ctor_set(x_89, 4, x_81); +lean_ctor_set(x_89, 5, x_82); +lean_ctor_set(x_61, 0, x_89); if (lean_is_scalar(x_18)) { - x_89 = lean_alloc_ctor(1, 2, 0); + x_90 = lean_alloc_ctor(1, 2, 0); } else { - x_89 = x_18; - lean_ctor_set_tag(x_89, 1); + x_90 = x_18; + lean_ctor_set_tag(x_90, 1); } -lean_ctor_set(x_89, 0, x_63); -lean_ctor_set(x_89, 1, x_60); -return x_89; +lean_ctor_set(x_90, 0, x_64); +lean_ctor_set(x_90, 1, x_61); +return x_90; } } 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; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_90 = lean_ctor_get(x_60, 1); -x_91 = lean_ctor_get(x_60, 2); -x_92 = lean_ctor_get(x_60, 3); -x_93 = lean_ctor_get(x_60, 4); -x_94 = lean_ctor_get(x_60, 5); +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; +x_91 = lean_ctor_get(x_61, 1); +x_92 = lean_ctor_get(x_61, 2); +x_93 = lean_ctor_get(x_61, 3); +x_94 = lean_ctor_get(x_61, 4); +x_95 = lean_ctor_get(x_61, 5); +lean_inc(x_95); lean_inc(x_94); lean_inc(x_93); lean_inc(x_92); lean_inc(x_91); -lean_inc(x_90); -lean_dec(x_60); -x_95 = lean_ctor_get(x_61, 0); -lean_inc(x_95); -x_96 = lean_ctor_get(x_61, 1); +lean_dec(x_61); +x_96 = lean_ctor_get(x_62, 0); lean_inc(x_96); -x_97 = lean_ctor_get(x_61, 3); +x_97 = lean_ctor_get(x_62, 1); lean_inc(x_97); -x_98 = lean_ctor_get(x_61, 4); +x_98 = lean_ctor_get(x_62, 3); lean_inc(x_98); -x_99 = lean_ctor_get(x_61, 5); +x_99 = lean_ctor_get(x_62, 4); lean_inc(x_99); -if (lean_is_exclusive(x_61)) { - lean_ctor_release(x_61, 0); - lean_ctor_release(x_61, 1); - lean_ctor_release(x_61, 2); - lean_ctor_release(x_61, 3); - lean_ctor_release(x_61, 4); - lean_ctor_release(x_61, 5); - x_100 = x_61; -} else { - lean_dec_ref(x_61); - x_100 = lean_box(0); -} -x_101 = lean_ctor_get(x_62, 0); -lean_inc(x_101); -x_102 = lean_ctor_get(x_62, 1); -lean_inc(x_102); -x_103 = lean_ctor_get(x_62, 3); -lean_inc(x_103); -x_104 = lean_ctor_get(x_62, 4); -lean_inc(x_104); +x_100 = lean_ctor_get(x_62, 5); +lean_inc(x_100); if (lean_is_exclusive(x_62)) { lean_ctor_release(x_62, 0); lean_ctor_release(x_62, 1); lean_ctor_release(x_62, 2); lean_ctor_release(x_62, 3); lean_ctor_release(x_62, 4); - x_105 = x_62; + lean_ctor_release(x_62, 5); + x_101 = x_62; } else { lean_dec_ref(x_62); - x_105 = lean_box(0); + x_101 = lean_box(0); } -if (lean_is_scalar(x_105)) { - x_106 = lean_alloc_ctor(0, 5, 0); +x_102 = lean_ctor_get(x_63, 0); +lean_inc(x_102); +x_103 = lean_ctor_get(x_63, 1); +lean_inc(x_103); +x_104 = lean_ctor_get(x_63, 3); +lean_inc(x_104); +x_105 = lean_ctor_get(x_63, 4); +lean_inc(x_105); +if (lean_is_exclusive(x_63)) { + lean_ctor_release(x_63, 0); + lean_ctor_release(x_63, 1); + lean_ctor_release(x_63, 2); + lean_ctor_release(x_63, 3); + lean_ctor_release(x_63, 4); + x_106 = x_63; } else { - x_106 = x_105; + lean_dec_ref(x_63); + x_106 = lean_box(0); } -lean_ctor_set(x_106, 0, x_101); -lean_ctor_set(x_106, 1, x_102); -lean_ctor_set(x_106, 2, x_58); -lean_ctor_set(x_106, 3, x_103); -lean_ctor_set(x_106, 4, x_104); -if (lean_is_scalar(x_100)) { - x_107 = lean_alloc_ctor(0, 6, 0); +if (lean_is_scalar(x_106)) { + x_107 = lean_alloc_ctor(0, 5, 0); } else { - x_107 = x_100; + x_107 = x_106; } -lean_ctor_set(x_107, 0, x_95); -lean_ctor_set(x_107, 1, x_96); -lean_ctor_set(x_107, 2, x_106); -lean_ctor_set(x_107, 3, x_97); -lean_ctor_set(x_107, 4, x_98); -lean_ctor_set(x_107, 5, x_99); -x_108 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_108, 0, x_107); -lean_ctor_set(x_108, 1, x_90); -lean_ctor_set(x_108, 2, x_91); -lean_ctor_set(x_108, 3, x_92); -lean_ctor_set(x_108, 4, x_93); -lean_ctor_set(x_108, 5, x_94); +lean_ctor_set(x_107, 0, x_102); +lean_ctor_set(x_107, 1, x_103); +lean_ctor_set(x_107, 2, x_59); +lean_ctor_set(x_107, 3, x_104); +lean_ctor_set(x_107, 4, x_105); +if (lean_is_scalar(x_101)) { + x_108 = lean_alloc_ctor(0, 6, 0); +} else { + x_108 = x_101; +} +lean_ctor_set(x_108, 0, x_96); +lean_ctor_set(x_108, 1, x_97); +lean_ctor_set(x_108, 2, x_107); +lean_ctor_set(x_108, 3, x_98); +lean_ctor_set(x_108, 4, x_99); +lean_ctor_set(x_108, 5, x_100); +x_109 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 1, x_91); +lean_ctor_set(x_109, 2, x_92); +lean_ctor_set(x_109, 3, x_93); +lean_ctor_set(x_109, 4, x_94); +lean_ctor_set(x_109, 5, x_95); if (lean_is_scalar(x_18)) { - x_109 = lean_alloc_ctor(1, 2, 0); + x_110 = lean_alloc_ctor(1, 2, 0); } else { - x_109 = x_18; - lean_ctor_set_tag(x_109, 1); + x_110 = x_18; + lean_ctor_set_tag(x_110, 1); } -lean_ctor_set(x_109, 0, x_63); -lean_ctor_set(x_109, 1, x_108); -return x_109; +lean_ctor_set(x_110, 0, x_64); +lean_ctor_set(x_110, 1, x_109); +return x_110; } } else { -lean_object* x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; -x_110 = lean_ctor_get(x_60, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_110, 2); +lean_object* x_111; lean_object* x_112; lean_object* x_113; uint8_t x_114; +x_111 = lean_ctor_get(x_61, 0); lean_inc(x_111); -x_112 = lean_ctor_get(x_59, 0); +x_112 = lean_ctor_get(x_111, 2); lean_inc(x_112); -lean_dec(x_59); -x_113 = !lean_is_exclusive(x_60); -if (x_113 == 0) +x_113 = lean_ctor_get(x_60, 0); +lean_inc(x_113); +lean_dec(x_60); +x_114 = !lean_is_exclusive(x_61); +if (x_114 == 0) { -lean_object* x_114; uint8_t x_115; -x_114 = lean_ctor_get(x_60, 0); -lean_dec(x_114); -x_115 = !lean_is_exclusive(x_110); -if (x_115 == 0) +lean_object* x_115; uint8_t x_116; +x_115 = lean_ctor_get(x_61, 0); +lean_dec(x_115); +x_116 = !lean_is_exclusive(x_111); +if (x_116 == 0) { -lean_object* x_116; uint8_t x_117; -x_116 = lean_ctor_get(x_110, 2); -lean_dec(x_116); -x_117 = !lean_is_exclusive(x_111); -if (x_117 == 0) +lean_object* x_117; uint8_t x_118; +x_117 = lean_ctor_get(x_111, 2); +lean_dec(x_117); +x_118 = !lean_is_exclusive(x_112); +if (x_118 == 0) { -lean_object* x_118; lean_object* x_119; -x_118 = lean_ctor_get(x_111, 2); -lean_dec(x_118); -lean_ctor_set(x_111, 2, x_58); +lean_object* x_119; lean_object* x_120; +x_119 = lean_ctor_get(x_112, 2); +lean_dec(x_119); +lean_ctor_set(x_112, 2, x_59); if (lean_is_scalar(x_18)) { - x_119 = lean_alloc_ctor(0, 2, 0); + x_120 = lean_alloc_ctor(0, 2, 0); } else { - x_119 = x_18; + x_120 = x_18; } -lean_ctor_set(x_119, 0, x_112); -lean_ctor_set(x_119, 1, x_60); -return x_119; +lean_ctor_set(x_120, 0, x_113); +lean_ctor_set(x_120, 1, x_61); +return x_120; } else { -lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; -x_120 = lean_ctor_get(x_111, 0); -x_121 = lean_ctor_get(x_111, 1); -x_122 = lean_ctor_get(x_111, 3); -x_123 = lean_ctor_get(x_111, 4); +lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_121 = lean_ctor_get(x_112, 0); +x_122 = lean_ctor_get(x_112, 1); +x_123 = lean_ctor_get(x_112, 3); +x_124 = lean_ctor_get(x_112, 4); +lean_inc(x_124); lean_inc(x_123); lean_inc(x_122); lean_inc(x_121); -lean_inc(x_120); -lean_dec(x_111); -x_124 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_124, 0, x_120); -lean_ctor_set(x_124, 1, x_121); -lean_ctor_set(x_124, 2, x_58); -lean_ctor_set(x_124, 3, x_122); -lean_ctor_set(x_124, 4, x_123); -lean_ctor_set(x_110, 2, x_124); +lean_dec(x_112); +x_125 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_125, 0, x_121); +lean_ctor_set(x_125, 1, x_122); +lean_ctor_set(x_125, 2, x_59); +lean_ctor_set(x_125, 3, x_123); +lean_ctor_set(x_125, 4, x_124); +lean_ctor_set(x_111, 2, x_125); if (lean_is_scalar(x_18)) { - x_125 = lean_alloc_ctor(0, 2, 0); + x_126 = lean_alloc_ctor(0, 2, 0); } else { - x_125 = x_18; + x_126 = x_18; } -lean_ctor_set(x_125, 0, x_112); -lean_ctor_set(x_125, 1, x_60); -return x_125; +lean_ctor_set(x_126, 0, x_113); +lean_ctor_set(x_126, 1, x_61); +return x_126; } } else { -lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; -x_126 = lean_ctor_get(x_110, 0); -x_127 = lean_ctor_get(x_110, 1); -x_128 = lean_ctor_get(x_110, 3); -x_129 = lean_ctor_get(x_110, 4); -x_130 = lean_ctor_get(x_110, 5); +lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; +x_127 = lean_ctor_get(x_111, 0); +x_128 = lean_ctor_get(x_111, 1); +x_129 = lean_ctor_get(x_111, 3); +x_130 = lean_ctor_get(x_111, 4); +x_131 = lean_ctor_get(x_111, 5); +lean_inc(x_131); lean_inc(x_130); lean_inc(x_129); lean_inc(x_128); lean_inc(x_127); -lean_inc(x_126); -lean_dec(x_110); -x_131 = lean_ctor_get(x_111, 0); -lean_inc(x_131); -x_132 = lean_ctor_get(x_111, 1); +lean_dec(x_111); +x_132 = lean_ctor_get(x_112, 0); lean_inc(x_132); -x_133 = lean_ctor_get(x_111, 3); +x_133 = lean_ctor_get(x_112, 1); lean_inc(x_133); -x_134 = lean_ctor_get(x_111, 4); +x_134 = lean_ctor_get(x_112, 3); lean_inc(x_134); -if (lean_is_exclusive(x_111)) { - lean_ctor_release(x_111, 0); - lean_ctor_release(x_111, 1); - lean_ctor_release(x_111, 2); - lean_ctor_release(x_111, 3); - lean_ctor_release(x_111, 4); - x_135 = x_111; +x_135 = lean_ctor_get(x_112, 4); +lean_inc(x_135); +if (lean_is_exclusive(x_112)) { + lean_ctor_release(x_112, 0); + lean_ctor_release(x_112, 1); + lean_ctor_release(x_112, 2); + lean_ctor_release(x_112, 3); + lean_ctor_release(x_112, 4); + x_136 = x_112; } else { - lean_dec_ref(x_111); - x_135 = lean_box(0); + lean_dec_ref(x_112); + x_136 = lean_box(0); } -if (lean_is_scalar(x_135)) { - x_136 = lean_alloc_ctor(0, 5, 0); +if (lean_is_scalar(x_136)) { + x_137 = lean_alloc_ctor(0, 5, 0); } else { - x_136 = x_135; + x_137 = x_136; } -lean_ctor_set(x_136, 0, x_131); -lean_ctor_set(x_136, 1, x_132); -lean_ctor_set(x_136, 2, x_58); -lean_ctor_set(x_136, 3, x_133); -lean_ctor_set(x_136, 4, x_134); -x_137 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_137, 0, x_126); -lean_ctor_set(x_137, 1, x_127); -lean_ctor_set(x_137, 2, x_136); -lean_ctor_set(x_137, 3, x_128); -lean_ctor_set(x_137, 4, x_129); -lean_ctor_set(x_137, 5, x_130); -lean_ctor_set(x_60, 0, x_137); +lean_ctor_set(x_137, 0, x_132); +lean_ctor_set(x_137, 1, x_133); +lean_ctor_set(x_137, 2, x_59); +lean_ctor_set(x_137, 3, x_134); +lean_ctor_set(x_137, 4, x_135); +x_138 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_138, 0, x_127); +lean_ctor_set(x_138, 1, x_128); +lean_ctor_set(x_138, 2, x_137); +lean_ctor_set(x_138, 3, x_129); +lean_ctor_set(x_138, 4, x_130); +lean_ctor_set(x_138, 5, x_131); +lean_ctor_set(x_61, 0, x_138); if (lean_is_scalar(x_18)) { - x_138 = lean_alloc_ctor(0, 2, 0); + x_139 = lean_alloc_ctor(0, 2, 0); } else { - x_138 = x_18; + x_139 = x_18; } -lean_ctor_set(x_138, 0, x_112); -lean_ctor_set(x_138, 1, x_60); -return x_138; +lean_ctor_set(x_139, 0, x_113); +lean_ctor_set(x_139, 1, x_61); +return x_139; } } else { -lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; -x_139 = lean_ctor_get(x_60, 1); -x_140 = lean_ctor_get(x_60, 2); -x_141 = lean_ctor_get(x_60, 3); -x_142 = lean_ctor_get(x_60, 4); -x_143 = lean_ctor_get(x_60, 5); +lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; +x_140 = lean_ctor_get(x_61, 1); +x_141 = lean_ctor_get(x_61, 2); +x_142 = lean_ctor_get(x_61, 3); +x_143 = lean_ctor_get(x_61, 4); +x_144 = lean_ctor_get(x_61, 5); +lean_inc(x_144); lean_inc(x_143); lean_inc(x_142); lean_inc(x_141); lean_inc(x_140); -lean_inc(x_139); -lean_dec(x_60); -x_144 = lean_ctor_get(x_110, 0); -lean_inc(x_144); -x_145 = lean_ctor_get(x_110, 1); +lean_dec(x_61); +x_145 = lean_ctor_get(x_111, 0); lean_inc(x_145); -x_146 = lean_ctor_get(x_110, 3); +x_146 = lean_ctor_get(x_111, 1); lean_inc(x_146); -x_147 = lean_ctor_get(x_110, 4); +x_147 = lean_ctor_get(x_111, 3); lean_inc(x_147); -x_148 = lean_ctor_get(x_110, 5); +x_148 = lean_ctor_get(x_111, 4); lean_inc(x_148); -if (lean_is_exclusive(x_110)) { - lean_ctor_release(x_110, 0); - lean_ctor_release(x_110, 1); - lean_ctor_release(x_110, 2); - lean_ctor_release(x_110, 3); - lean_ctor_release(x_110, 4); - lean_ctor_release(x_110, 5); - x_149 = x_110; -} else { - lean_dec_ref(x_110); - x_149 = lean_box(0); -} -x_150 = lean_ctor_get(x_111, 0); -lean_inc(x_150); -x_151 = lean_ctor_get(x_111, 1); -lean_inc(x_151); -x_152 = lean_ctor_get(x_111, 3); -lean_inc(x_152); -x_153 = lean_ctor_get(x_111, 4); -lean_inc(x_153); +x_149 = lean_ctor_get(x_111, 5); +lean_inc(x_149); if (lean_is_exclusive(x_111)) { lean_ctor_release(x_111, 0); lean_ctor_release(x_111, 1); lean_ctor_release(x_111, 2); lean_ctor_release(x_111, 3); lean_ctor_release(x_111, 4); - x_154 = x_111; + lean_ctor_release(x_111, 5); + x_150 = x_111; } else { lean_dec_ref(x_111); - x_154 = lean_box(0); + x_150 = lean_box(0); } -if (lean_is_scalar(x_154)) { - x_155 = lean_alloc_ctor(0, 5, 0); +x_151 = lean_ctor_get(x_112, 0); +lean_inc(x_151); +x_152 = lean_ctor_get(x_112, 1); +lean_inc(x_152); +x_153 = lean_ctor_get(x_112, 3); +lean_inc(x_153); +x_154 = lean_ctor_get(x_112, 4); +lean_inc(x_154); +if (lean_is_exclusive(x_112)) { + lean_ctor_release(x_112, 0); + lean_ctor_release(x_112, 1); + lean_ctor_release(x_112, 2); + lean_ctor_release(x_112, 3); + lean_ctor_release(x_112, 4); + x_155 = x_112; } else { - x_155 = x_154; + lean_dec_ref(x_112); + x_155 = lean_box(0); } -lean_ctor_set(x_155, 0, x_150); -lean_ctor_set(x_155, 1, x_151); -lean_ctor_set(x_155, 2, x_58); -lean_ctor_set(x_155, 3, x_152); -lean_ctor_set(x_155, 4, x_153); -if (lean_is_scalar(x_149)) { - x_156 = lean_alloc_ctor(0, 6, 0); +if (lean_is_scalar(x_155)) { + x_156 = lean_alloc_ctor(0, 5, 0); } else { - x_156 = x_149; + x_156 = x_155; } -lean_ctor_set(x_156, 0, x_144); -lean_ctor_set(x_156, 1, x_145); -lean_ctor_set(x_156, 2, x_155); -lean_ctor_set(x_156, 3, x_146); -lean_ctor_set(x_156, 4, x_147); -lean_ctor_set(x_156, 5, x_148); -x_157 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_157, 0, x_156); -lean_ctor_set(x_157, 1, x_139); -lean_ctor_set(x_157, 2, x_140); -lean_ctor_set(x_157, 3, x_141); -lean_ctor_set(x_157, 4, x_142); -lean_ctor_set(x_157, 5, x_143); +lean_ctor_set(x_156, 0, x_151); +lean_ctor_set(x_156, 1, x_152); +lean_ctor_set(x_156, 2, x_59); +lean_ctor_set(x_156, 3, x_153); +lean_ctor_set(x_156, 4, x_154); +if (lean_is_scalar(x_150)) { + x_157 = lean_alloc_ctor(0, 6, 0); +} else { + x_157 = x_150; +} +lean_ctor_set(x_157, 0, x_145); +lean_ctor_set(x_157, 1, x_146); +lean_ctor_set(x_157, 2, x_156); +lean_ctor_set(x_157, 3, x_147); +lean_ctor_set(x_157, 4, x_148); +lean_ctor_set(x_157, 5, x_149); +x_158 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_158, 0, x_157); +lean_ctor_set(x_158, 1, x_140); +lean_ctor_set(x_158, 2, x_141); +lean_ctor_set(x_158, 3, x_142); +lean_ctor_set(x_158, 4, x_143); +lean_ctor_set(x_158, 5, x_144); if (lean_is_scalar(x_18)) { - x_158 = lean_alloc_ctor(0, 2, 0); + x_159 = lean_alloc_ctor(0, 2, 0); } else { - x_158 = x_18; + x_159 = x_18; } -lean_ctor_set(x_158, 0, x_112); -lean_ctor_set(x_158, 1, x_157); -return x_158; +lean_ctor_set(x_159, 0, x_113); +lean_ctor_set(x_159, 1, x_158); +return x_159; } } } @@ -5181,36 +4964,36 @@ return x_158; } else { -uint8_t x_211; +uint8_t x_213; lean_dec(x_10); lean_dec(x_3); lean_dec(x_2); -x_211 = !lean_is_exclusive(x_14); -if (x_211 == 0) +x_213 = !lean_is_exclusive(x_14); +if (x_213 == 0) { return x_14; } else { -lean_object* x_212; lean_object* x_213; lean_object* x_214; -x_212 = lean_ctor_get(x_14, 0); -x_213 = lean_ctor_get(x_14, 1); -lean_inc(x_213); -lean_inc(x_212); +lean_object* x_214; lean_object* x_215; lean_object* x_216; +x_214 = lean_ctor_get(x_14, 0); +x_215 = lean_ctor_get(x_14, 1); +lean_inc(x_215); +lean_inc(x_214); lean_dec(x_14); -x_214 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_214, 0, x_212); -lean_ctor_set(x_214, 1, x_213); -return x_214; +x_216 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_216, 0, x_214); +lean_ctor_set(x_216, 1, x_215); +return x_216; } } } else { -lean_object* x_215; lean_object* x_216; -x_215 = l_Array_empty___closed__1; -x_216 = lean_apply_3(x_2, x_215, x_3, x_4); -return x_216; +lean_object* x_217; lean_object* x_218; +x_217 = l_Array_empty___closed__1; +x_218 = lean_apply_3(x_2, x_217, x_3, x_4); +return x_218; } } } @@ -5272,45 +5055,45 @@ lean_dec(x_2); return x_5; } } -lean_object* l_Lean_Elab_Term_elabForall___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_Elab_Term_elabForall___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_6; -lean_inc(x_4); -x_6 = l_Lean_Elab_Term_elabType(x_1, x_4, x_5); -if (lean_obj_tag(x_6) == 0) +lean_object* x_5; +lean_inc(x_3); +x_5 = l_Lean_Elab_Term_elabType(x_1, x_3, x_4); +if (lean_obj_tag(x_5) == 0) { -lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_7 = lean_ctor_get(x_6, 0); +lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); lean_inc(x_7); -x_8 = lean_ctor_get(x_6, 1); -lean_inc(x_8); -lean_dec(x_6); -x_9 = l_Lean_Elab_Term_mkForall(x_2, x_3, x_7, x_4, x_8); -return x_9; +lean_dec(x_5); +x_8 = l_Lean_Elab_Term_mkForall(x_2, x_6, x_3, x_7); +return x_8; } else { -uint8_t x_10; -lean_dec(x_4); +uint8_t x_9; lean_dec(x_3); -x_10 = !lean_is_exclusive(x_6); -if (x_10 == 0) +lean_dec(x_2); +x_9 = !lean_is_exclusive(x_5); +if (x_9 == 0) { -return x_6; +return x_5; } else { -lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_11 = lean_ctor_get(x_6, 0); -x_12 = lean_ctor_get(x_6, 1); -lean_inc(x_12); +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_5, 0); +x_11 = lean_ctor_get(x_5, 1); lean_inc(x_11); -lean_dec(x_6); -x_13 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_13, 0, x_11); -lean_ctor_set(x_13, 1, x_12); -return x_13; +lean_inc(x_10); +lean_dec(x_5); +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; } } } @@ -5354,11 +5137,11 @@ x_13 = lean_unsigned_to_nat(1u); x_14 = l_Lean_Syntax_getArg(x_1, x_13); x_15 = lean_unsigned_to_nat(3u); x_16 = l_Lean_Syntax_getArg(x_1, x_15); +lean_dec(x_1); x_17 = l_Lean_Syntax_getArgs(x_14); lean_dec(x_14); -x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabForall___lambda__1___boxed), 5, 2); +x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabForall___lambda__1), 4, 1); lean_closure_set(x_18, 0, x_16); -lean_closure_set(x_18, 1, x_1); x_19 = l_Lean_Elab_Term_elabBinders___rarg(x_17, x_18, x_3, x_4); lean_dec(x_17); return x_19; @@ -5366,15 +5149,6 @@ return x_19; } } } -lean_object* l_Lean_Elab_Term_elabForall___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_Lean_Elab_Term_elabForall___lambda__1(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_2); -return x_6; -} -} lean_object* l_Lean_Elab_Term_elabForall___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -5679,9 +5453,8 @@ x_7 = lean_unsigned_to_nat(2u); x_8 = l_Lean_Syntax_getArg(x_1, x_7); x_9 = l_Lean_mkOptionalNode___closed__2; x_10 = lean_array_push(x_9, x_6); -x_11 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabForall___lambda__1___boxed), 5, 2); +x_11 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabForall___lambda__1), 4, 1); lean_closure_set(x_11, 0, x_8); -lean_closure_set(x_11, 1, x_1); x_12 = l_Lean_Elab_Term_elabBinders___rarg(x_10, x_11, x_3, x_4); lean_dec(x_10); return x_12; @@ -5693,6 +5466,7 @@ _start: lean_object* x_5; x_5 = l_Lean_Elab_Term_elabDepArrow(x_1, x_2, x_3, x_4); lean_dec(x_2); +lean_dec(x_1); return x_5; } } @@ -6159,7 +5933,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_SourceInfo_inhabited___closed__1; -x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__1; +x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__1; x_3 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -6713,7 +6487,7 @@ lean_dec(x_190); lean_dec(x_188); lean_dec(x_2); x_191 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__10; -x_192 = l_Lean_Elab_Term_throwError___rarg(x_11, x_191, x_5, x_6); +x_192 = l_Lean_Elab_Term_throwErrorAt___rarg(x_11, x_191, x_5, x_6); lean_dec(x_11); x_193 = !lean_is_exclusive(x_192); if (x_193 == 0) @@ -7113,7 +6887,7 @@ lean_dec(x_359); lean_dec(x_357); lean_dec(x_2); x_360 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__10; -x_361 = l_Lean_Elab_Term_throwError___rarg(x_200, x_360, x_5, x_6); +x_361 = l_Lean_Elab_Term_throwErrorAt___rarg(x_200, x_360, x_5, x_6); lean_dec(x_200); x_362 = !lean_is_exclusive(x_361); if (x_362 == 0) @@ -7515,7 +7289,7 @@ lean_dec(x_528); lean_dec(x_526); lean_dec(x_2); x_529 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__10; -x_530 = l_Lean_Elab_Term_throwError___rarg(x_369, x_529, x_5, x_6); +x_530 = l_Lean_Elab_Term_throwErrorAt___rarg(x_369, x_529, x_5, x_6); lean_dec(x_369); x_531 = !lean_is_exclusive(x_530); if (x_531 == 0) @@ -7933,7 +7707,7 @@ lean_dec(x_703); lean_dec(x_701); lean_dec(x_2); x_704 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__10; -x_705 = l_Lean_Elab_Term_throwError___rarg(x_544, x_704, x_5, x_6); +x_705 = l_Lean_Elab_Term_throwErrorAt___rarg(x_544, x_704, x_5, x_6); lean_dec(x_544); x_706 = !lean_is_exclusive(x_705); if (x_706 == 0) @@ -9618,7 +9392,7 @@ lean_dec(x_1415); lean_dec(x_1413); lean_dec(x_2); x_1416 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__10; -x_1417 = l_Lean_Elab_Term_throwError___rarg(x_11, x_1416, x_5, x_6); +x_1417 = l_Lean_Elab_Term_throwErrorAt___rarg(x_11, x_1416, x_5, x_6); lean_dec(x_11); x_1418 = lean_ctor_get(x_1417, 0); lean_inc(x_1418); @@ -9855,7 +9629,7 @@ lean_dec(x_1496); lean_dec(x_1494); lean_dec(x_2); x_1497 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__10; -x_1498 = l_Lean_Elab_Term_throwError___rarg(x_1426, x_1497, x_5, x_6); +x_1498 = l_Lean_Elab_Term_throwErrorAt___rarg(x_1426, x_1497, x_5, x_6); lean_dec(x_1426); x_1499 = lean_ctor_get(x_1498, 0); lean_inc(x_1499); @@ -10094,7 +9868,7 @@ lean_dec(x_1577); lean_dec(x_1575); lean_dec(x_2); x_1578 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__10; -x_1579 = l_Lean_Elab_Term_throwError___rarg(x_1507, x_1578, x_5, x_6); +x_1579 = l_Lean_Elab_Term_throwErrorAt___rarg(x_1507, x_1578, x_5, x_6); lean_dec(x_1507); x_1580 = lean_ctor_get(x_1579, 0); lean_inc(x_1580); @@ -10349,7 +10123,7 @@ lean_dec(x_1664); lean_dec(x_1662); lean_dec(x_2); x_1665 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__10; -x_1666 = l_Lean_Elab_Term_throwError___rarg(x_1594, x_1665, x_5, x_6); +x_1666 = l_Lean_Elab_Term_throwErrorAt___rarg(x_1594, x_1665, x_5, x_6); lean_dec(x_1594); x_1667 = lean_ctor_get(x_1666, 0); lean_inc(x_1667); @@ -11368,7 +11142,7 @@ lean_dec(x_2023); lean_dec(x_2021); lean_dec(x_2); x_2024 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__10; -x_2025 = l_Lean_Elab_Term_throwError___rarg(x_11, x_2024, x_5, x_6); +x_2025 = l_Lean_Elab_Term_throwErrorAt___rarg(x_11, x_2024, x_5, x_6); lean_dec(x_11); x_2026 = lean_ctor_get(x_2025, 0); lean_inc(x_2026); @@ -11613,7 +11387,7 @@ lean_dec(x_2105); lean_dec(x_2103); lean_dec(x_2); x_2106 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__10; -x_2107 = l_Lean_Elab_Term_throwError___rarg(x_2035, x_2106, x_5, x_6); +x_2107 = l_Lean_Elab_Term_throwErrorAt___rarg(x_2035, x_2106, x_5, x_6); lean_dec(x_2035); x_2108 = lean_ctor_get(x_2107, 0); lean_inc(x_2108); @@ -11859,7 +11633,7 @@ lean_dec(x_2187); lean_dec(x_2185); lean_dec(x_2); x_2188 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__10; -x_2189 = l_Lean_Elab_Term_throwError___rarg(x_2117, x_2188, x_5, x_6); +x_2189 = l_Lean_Elab_Term_throwErrorAt___rarg(x_2117, x_2188, x_5, x_6); lean_dec(x_2117); x_2190 = lean_ctor_get(x_2189, 0); lean_inc(x_2190); @@ -12121,7 +11895,7 @@ lean_dec(x_2275); lean_dec(x_2273); lean_dec(x_2); x_2276 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__10; -x_2277 = l_Lean_Elab_Term_throwError___rarg(x_2205, x_2276, x_5, x_6); +x_2277 = l_Lean_Elab_Term_throwErrorAt___rarg(x_2205, x_2276, x_5, x_6); lean_dec(x_2205); x_2278 = lean_ctor_get(x_2277, 0); lean_inc(x_2278); @@ -13151,7 +12925,7 @@ lean_dec(x_2637); lean_dec(x_2635); lean_dec(x_2); x_2638 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__10; -x_2639 = l_Lean_Elab_Term_throwError___rarg(x_11, x_2638, x_5, x_6); +x_2639 = l_Lean_Elab_Term_throwErrorAt___rarg(x_11, x_2638, x_5, x_6); lean_dec(x_11); x_2640 = lean_ctor_get(x_2639, 0); lean_inc(x_2640); @@ -13404,7 +13178,7 @@ lean_dec(x_2720); lean_dec(x_2718); lean_dec(x_2); x_2721 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__10; -x_2722 = l_Lean_Elab_Term_throwError___rarg(x_2650, x_2721, x_5, x_6); +x_2722 = l_Lean_Elab_Term_throwErrorAt___rarg(x_2650, x_2721, x_5, x_6); lean_dec(x_2650); x_2723 = lean_ctor_get(x_2722, 0); lean_inc(x_2723); @@ -13658,7 +13432,7 @@ lean_dec(x_2803); lean_dec(x_2801); lean_dec(x_2); x_2804 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__10; -x_2805 = l_Lean_Elab_Term_throwError___rarg(x_2733, x_2804, x_5, x_6); +x_2805 = l_Lean_Elab_Term_throwErrorAt___rarg(x_2733, x_2804, x_5, x_6); lean_dec(x_2733); x_2806 = lean_ctor_get(x_2805, 0); lean_inc(x_2806); @@ -13927,7 +13701,7 @@ lean_dec(x_2892); lean_dec(x_2890); lean_dec(x_2); x_2893 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__10; -x_2894 = l_Lean_Elab_Term_throwError___rarg(x_2822, x_2893, x_5, x_6); +x_2894 = l_Lean_Elab_Term_throwErrorAt___rarg(x_2822, x_2893, x_5, x_6); lean_dec(x_2822); x_2895 = lean_ctor_get(x_2894, 0); lean_inc(x_2895); @@ -14968,7 +14742,7 @@ lean_dec(x_3257); lean_dec(x_3255); lean_dec(x_2); x_3258 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__10; -x_3259 = l_Lean_Elab_Term_throwError___rarg(x_11, x_3258, x_5, x_6); +x_3259 = l_Lean_Elab_Term_throwErrorAt___rarg(x_11, x_3258, x_5, x_6); lean_dec(x_11); x_3260 = lean_ctor_get(x_3259, 0); lean_inc(x_3260); @@ -15228,7 +15002,7 @@ lean_dec(x_3341); lean_dec(x_3339); lean_dec(x_2); x_3342 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__10; -x_3343 = l_Lean_Elab_Term_throwError___rarg(x_3271, x_3342, x_5, x_6); +x_3343 = l_Lean_Elab_Term_throwErrorAt___rarg(x_3271, x_3342, x_5, x_6); lean_dec(x_3271); x_3344 = lean_ctor_get(x_3343, 0); lean_inc(x_3344); @@ -15489,7 +15263,7 @@ lean_dec(x_3425); lean_dec(x_3423); lean_dec(x_2); x_3426 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__10; -x_3427 = l_Lean_Elab_Term_throwError___rarg(x_3355, x_3426, x_5, x_6); +x_3427 = l_Lean_Elab_Term_throwErrorAt___rarg(x_3355, x_3426, x_5, x_6); lean_dec(x_3355); x_3428 = lean_ctor_get(x_3427, 0); lean_inc(x_3428); @@ -15765,7 +15539,7 @@ lean_dec(x_3515); lean_dec(x_3513); lean_dec(x_2); x_3516 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__10; -x_3517 = l_Lean_Elab_Term_throwError___rarg(x_3445, x_3516, x_5, x_6); +x_3517 = l_Lean_Elab_Term_throwErrorAt___rarg(x_3445, x_3516, x_5, x_6); lean_dec(x_3445); x_3518 = lean_ctor_get(x_3517, 0); lean_inc(x_3518); @@ -16930,7 +16704,7 @@ lean_dec(x_3956); lean_dec(x_3954); lean_dec(x_2); x_3957 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__10; -x_3958 = l_Lean_Elab_Term_throwError___rarg(x_11, x_3957, x_5, x_6); +x_3958 = l_Lean_Elab_Term_throwErrorAt___rarg(x_11, x_3957, x_5, x_6); lean_dec(x_11); x_3959 = !lean_is_exclusive(x_3958); if (x_3959 == 0) @@ -17324,7 +17098,7 @@ lean_dec(x_4122); lean_dec(x_4120); lean_dec(x_2); x_4123 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__10; -x_4124 = l_Lean_Elab_Term_throwError___rarg(x_11, x_4123, x_5, x_6); +x_4124 = l_Lean_Elab_Term_throwErrorAt___rarg(x_11, x_4123, x_5, x_6); lean_dec(x_11); x_4125 = !lean_is_exclusive(x_4124); if (x_4125 == 0) @@ -17717,7 +17491,7 @@ lean_dec(x_4288); lean_dec(x_4286); lean_dec(x_2); x_4289 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__10; -x_4290 = l_Lean_Elab_Term_throwError___rarg(x_11, x_4289, x_5, x_6); +x_4290 = l_Lean_Elab_Term_throwErrorAt___rarg(x_11, x_4289, x_5, x_6); lean_dec(x_11); x_4291 = !lean_is_exclusive(x_4290); if (x_4291 == 0) @@ -18109,7 +17883,7 @@ lean_dec(x_4454); lean_dec(x_4452); lean_dec(x_2); x_4455 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__10; -x_4456 = l_Lean_Elab_Term_throwError___rarg(x_11, x_4455, x_5, x_6); +x_4456 = l_Lean_Elab_Term_throwErrorAt___rarg(x_11, x_4455, x_5, x_6); lean_dec(x_11); x_4457 = !lean_is_exclusive(x_4456); if (x_4457 == 0) @@ -18500,7 +18274,7 @@ lean_dec(x_4620); lean_dec(x_4618); lean_dec(x_2); x_4621 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__10; -x_4622 = l_Lean_Elab_Term_throwError___rarg(x_11, x_4621, x_5, x_6); +x_4622 = l_Lean_Elab_Term_throwErrorAt___rarg(x_11, x_4621, x_5, x_6); lean_dec(x_11); x_4623 = !lean_is_exclusive(x_4622); if (x_4623 == 0) @@ -18893,7 +18667,7 @@ lean_dec(x_4786); lean_dec(x_4784); lean_dec(x_2); x_4787 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__10; -x_4788 = l_Lean_Elab_Term_throwError___rarg(x_11, x_4787, x_5, x_6); +x_4788 = l_Lean_Elab_Term_throwErrorAt___rarg(x_11, x_4787, x_5, x_6); lean_dec(x_11); x_4789 = !lean_is_exclusive(x_4788); if (x_4789 == 0) @@ -19219,7 +18993,7 @@ lean_dec(x_4936); lean_dec(x_4934); lean_dec(x_2); x_4937 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__10; -x_4938 = l_Lean_Elab_Term_throwError___rarg(x_11, x_4937, x_5, x_6); +x_4938 = l_Lean_Elab_Term_throwErrorAt___rarg(x_11, x_4937, x_5, x_6); lean_dec(x_11); x_4939 = !lean_is_exclusive(x_4938); if (x_4939 == 0) @@ -19354,570 +19128,560 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Binders_12__checkNoOptAutoParam(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Binders_12__checkNoOptAutoParam(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; uint8_t x_6; -lean_inc(x_3); -x_5 = l_Lean_Elab_Term_instantiateMVars(x_1, x_2, x_3, x_4); -x_6 = !lean_is_exclusive(x_5); -if (x_6 == 0) +lean_object* x_4; uint8_t x_5; +lean_inc(x_2); +x_4 = l_Lean_Elab_Term_instantiateMVars(x_1, x_2, x_3); +x_5 = !lean_is_exclusive(x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; uint8_t x_9; +x_6 = lean_ctor_get(x_4, 0); +x_7 = lean_ctor_get(x_4, 1); +x_8 = l_Lean_Expr_isOptParam(x_6); +x_9 = l_Lean_Expr_isAutoParam(x_6); +lean_dec(x_6); +if (x_8 == 0) { -lean_object* x_7; lean_object* x_8; uint8_t x_9; uint8_t x_10; -x_7 = lean_ctor_get(x_5, 0); -x_8 = lean_ctor_get(x_5, 1); -x_9 = l_Lean_Expr_isOptParam(x_7); -x_10 = l_Lean_Expr_isAutoParam(x_7); -lean_dec(x_7); if (x_9 == 0) { -if (x_10 == 0) -{ -lean_object* x_11; -lean_dec(x_3); -x_11 = lean_box(0); -lean_ctor_set(x_5, 0, x_11); -return x_5; +lean_object* x_10; +lean_dec(x_2); +x_10 = lean_box(0); +lean_ctor_set(x_4, 0, x_10); +return x_4; } else { -lean_object* x_12; lean_object* x_13; -lean_free_object(x_5); -x_12 = l___private_Lean_Elab_Binders_12__checkNoOptAutoParam___closed__3; -x_13 = l_Lean_Elab_Term_throwError___rarg(x_1, x_12, x_3, x_8); -return x_13; +lean_object* x_11; lean_object* x_12; +lean_free_object(x_4); +x_11 = l___private_Lean_Elab_Binders_12__checkNoOptAutoParam___closed__3; +x_12 = l_Lean_Elab_Term_throwError___rarg(x_11, x_2, x_7); +return x_12; } } else { -lean_object* x_14; lean_object* x_15; uint8_t x_16; -lean_free_object(x_5); -x_14 = l___private_Lean_Elab_Binders_12__checkNoOptAutoParam___closed__6; -x_15 = l_Lean_Elab_Term_throwError___rarg(x_1, x_14, x_3, x_8); -x_16 = !lean_is_exclusive(x_15); -if (x_16 == 0) +lean_object* x_13; lean_object* x_14; uint8_t x_15; +lean_free_object(x_4); +x_13 = l___private_Lean_Elab_Binders_12__checkNoOptAutoParam___closed__6; +x_14 = l_Lean_Elab_Term_throwError___rarg(x_13, x_2, x_7); +x_15 = !lean_is_exclusive(x_14); +if (x_15 == 0) { -return x_15; +return x_14; } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_15, 0); -x_18 = lean_ctor_get(x_15, 1); -lean_inc(x_18); +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_14, 0); +x_17 = lean_ctor_get(x_14, 1); lean_inc(x_17); -lean_dec(x_15); -x_19 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_19, 0, x_17); -lean_ctor_set(x_19, 1, x_18); -return x_19; +lean_inc(x_16); +lean_dec(x_14); +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +return x_18; } } } else { -lean_object* x_20; lean_object* x_21; uint8_t x_22; uint8_t x_23; -x_20 = lean_ctor_get(x_5, 0); -x_21 = lean_ctor_get(x_5, 1); -lean_inc(x_21); +lean_object* x_19; lean_object* x_20; uint8_t x_21; uint8_t x_22; +x_19 = lean_ctor_get(x_4, 0); +x_20 = lean_ctor_get(x_4, 1); lean_inc(x_20); -lean_dec(x_5); -x_22 = l_Lean_Expr_isOptParam(x_20); -x_23 = l_Lean_Expr_isAutoParam(x_20); -lean_dec(x_20); +lean_inc(x_19); +lean_dec(x_4); +x_21 = l_Lean_Expr_isOptParam(x_19); +x_22 = l_Lean_Expr_isAutoParam(x_19); +lean_dec(x_19); +if (x_21 == 0) +{ if (x_22 == 0) { -if (x_23 == 0) +lean_object* x_23; lean_object* x_24; +lean_dec(x_2); +x_23 = lean_box(0); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_20); +return x_24; +} +else +{ +lean_object* x_25; lean_object* x_26; +x_25 = l___private_Lean_Elab_Binders_12__checkNoOptAutoParam___closed__3; +x_26 = l_Lean_Elab_Term_throwError___rarg(x_25, x_2, x_20); +return x_26; +} +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_27 = l___private_Lean_Elab_Binders_12__checkNoOptAutoParam___closed__6; +x_28 = l_Lean_Elab_Term_throwError___rarg(x_27, x_2, x_20); +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_28, 1); +lean_inc(x_30); +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); +} +if (lean_is_scalar(x_31)) { + x_32 = lean_alloc_ctor(1, 2, 0); +} else { + x_32 = x_31; +} +lean_ctor_set(x_32, 0, x_29); +lean_ctor_set(x_32, 1, x_30); +return x_32; +} +} +} +} +lean_object* l___private_Lean_Elab_Binders_13__propagateExpectedType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = lean_ctor_get(x_3, 3); +lean_inc(x_6); +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_7; +lean_dec(x_4); +lean_dec(x_2); +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_3); +lean_ctor_set(x_7, 1, x_5); +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_8 = lean_ctor_get(x_3, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_3, 1); +lean_inc(x_9); +x_10 = lean_ctor_get(x_3, 2); +lean_inc(x_10); +if (lean_is_exclusive(x_3)) { + lean_ctor_release(x_3, 0); + lean_ctor_release(x_3, 1); + lean_ctor_release(x_3, 2); + lean_ctor_release(x_3, 3); + x_11 = x_3; +} else { + lean_dec_ref(x_3); + x_11 = lean_box(0); +} +x_12 = !lean_is_exclusive(x_6); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_ctor_get(x_6, 0); +lean_inc(x_4); +x_14 = l_Lean_Elab_Term_whnfForall(x_13, x_4, x_5); +if (lean_obj_tag(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_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +if (lean_is_exclusive(x_14)) { + lean_ctor_release(x_14, 0); + lean_ctor_release(x_14, 1); + x_17 = x_14; +} else { + lean_dec_ref(x_14); + x_17 = lean_box(0); +} +if (lean_obj_tag(x_15) == 7) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_dec(x_17); +lean_dec(x_11); +x_23 = lean_ctor_get(x_15, 1); +lean_inc(x_23); +x_24 = lean_ctor_get(x_15, 2); +lean_inc(x_24); +lean_dec(x_15); +lean_inc(x_4); +lean_inc(x_2); +x_25 = l_Lean_Elab_Term_isDefEq(x_2, x_23, x_4, x_16); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_26 = lean_ctor_get(x_25, 1); +lean_inc(x_26); +lean_dec(x_25); +x_27 = lean_expr_instantiate1(x_24, x_1); +lean_dec(x_24); +lean_ctor_set(x_6, 0, x_27); +x_28 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_28, 0, x_8); +lean_ctor_set(x_28, 1, x_9); +lean_ctor_set(x_28, 2, x_10); +lean_ctor_set(x_28, 3, x_6); +x_29 = l___private_Lean_Elab_Binders_12__checkNoOptAutoParam(x_2, x_4, x_26); +if (lean_obj_tag(x_29) == 0) +{ +uint8_t x_30; +x_30 = !lean_is_exclusive(x_29); +if (x_30 == 0) +{ +lean_object* x_31; +x_31 = lean_ctor_get(x_29, 0); +lean_dec(x_31); +lean_ctor_set(x_29, 0, x_28); +return x_29; +} +else +{ +lean_object* x_32; lean_object* x_33; +x_32 = lean_ctor_get(x_29, 1); +lean_inc(x_32); +lean_dec(x_29); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_28); +lean_ctor_set(x_33, 1, x_32); +return x_33; +} +} +else +{ +uint8_t x_34; +lean_dec(x_28); +x_34 = !lean_is_exclusive(x_29); +if (x_34 == 0) +{ +return x_29; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_29, 0); +x_36 = lean_ctor_get(x_29, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_29); +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; +} +} +} +else +{ +uint8_t x_38; +lean_dec(x_24); +lean_free_object(x_6); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_4); +lean_dec(x_2); +x_38 = !lean_is_exclusive(x_25); +if (x_38 == 0) { -lean_object* x_24; lean_object* x_25; -lean_dec(x_3); -x_24 = lean_box(0); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, x_21); return x_25; } else { -lean_object* x_26; lean_object* x_27; -x_26 = l___private_Lean_Elab_Binders_12__checkNoOptAutoParam___closed__3; -x_27 = l_Lean_Elab_Term_throwError___rarg(x_1, x_26, x_3, x_21); -return x_27; -} -} -else -{ -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_28 = l___private_Lean_Elab_Binders_12__checkNoOptAutoParam___closed__6; -x_29 = l_Lean_Elab_Term_throwError___rarg(x_1, x_28, x_3, x_21); -x_30 = lean_ctor_get(x_29, 0); -lean_inc(x_30); -x_31 = lean_ctor_get(x_29, 1); -lean_inc(x_31); -if (lean_is_exclusive(x_29)) { - lean_ctor_release(x_29, 0); - lean_ctor_release(x_29, 1); - x_32 = x_29; -} else { - lean_dec_ref(x_29); - x_32 = lean_box(0); -} -if (lean_is_scalar(x_32)) { - x_33 = lean_alloc_ctor(1, 2, 0); -} else { - x_33 = x_32; -} -lean_ctor_set(x_33, 0, x_30); -lean_ctor_set(x_33, 1, x_31); -return x_33; -} -} -} -} -lean_object* l___private_Lean_Elab_Binders_12__checkNoOptAutoParam___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l___private_Lean_Elab_Binders_12__checkNoOptAutoParam(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} -lean_object* l___private_Lean_Elab_Binders_13__propagateExpectedType(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 = lean_ctor_get(x_4, 3); -lean_inc(x_7); -if (lean_obj_tag(x_7) == 0) -{ -lean_object* x_8; -lean_dec(x_5); -lean_dec(x_3); -x_8 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_8, 0, x_4); -lean_ctor_set(x_8, 1, x_6); -return x_8; -} -else -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_9 = lean_ctor_get(x_4, 0); -lean_inc(x_9); -x_10 = lean_ctor_get(x_4, 1); -lean_inc(x_10); -x_11 = lean_ctor_get(x_4, 2); -lean_inc(x_11); -if (lean_is_exclusive(x_4)) { - lean_ctor_release(x_4, 0); - lean_ctor_release(x_4, 1); - lean_ctor_release(x_4, 2); - lean_ctor_release(x_4, 3); - x_12 = x_4; -} else { - lean_dec_ref(x_4); - x_12 = lean_box(0); -} -x_13 = !lean_is_exclusive(x_7); -if (x_13 == 0) -{ -lean_object* x_14; lean_object* x_15; -x_14 = lean_ctor_get(x_7, 0); -lean_inc(x_5); -x_15 = l_Lean_Elab_Term_whnfForall(x_1, x_14, x_5, x_6); -if (lean_obj_tag(x_15) == 0) -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); -lean_inc(x_17); -if (lean_is_exclusive(x_15)) { - lean_ctor_release(x_15, 0); - lean_ctor_release(x_15, 1); - x_18 = x_15; -} else { - lean_dec_ref(x_15); - x_18 = lean_box(0); -} -if (lean_obj_tag(x_16) == 7) -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; -lean_dec(x_18); -lean_dec(x_12); -x_24 = lean_ctor_get(x_16, 1); -lean_inc(x_24); -x_25 = lean_ctor_get(x_16, 2); -lean_inc(x_25); -lean_dec(x_16); -lean_inc(x_5); -lean_inc(x_3); -x_26 = l_Lean_Elab_Term_isDefEq(x_1, x_3, x_24, x_5, x_17); -if (lean_obj_tag(x_26) == 0) -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_27 = lean_ctor_get(x_26, 1); -lean_inc(x_27); -lean_dec(x_26); -x_28 = lean_expr_instantiate1(x_25, x_2); -lean_dec(x_25); -lean_ctor_set(x_7, 0, x_28); -x_29 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_29, 0, x_9); -lean_ctor_set(x_29, 1, x_10); -lean_ctor_set(x_29, 2, x_11); -lean_ctor_set(x_29, 3, x_7); -x_30 = l___private_Lean_Elab_Binders_12__checkNoOptAutoParam(x_1, x_3, x_5, x_27); -if (lean_obj_tag(x_30) == 0) -{ -uint8_t x_31; -x_31 = !lean_is_exclusive(x_30); -if (x_31 == 0) -{ -lean_object* x_32; -x_32 = lean_ctor_get(x_30, 0); -lean_dec(x_32); -lean_ctor_set(x_30, 0, x_29); -return x_30; -} -else -{ -lean_object* x_33; lean_object* x_34; -x_33 = lean_ctor_get(x_30, 1); -lean_inc(x_33); -lean_dec(x_30); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_29); -lean_ctor_set(x_34, 1, x_33); -return x_34; -} -} -else -{ -uint8_t x_35; -lean_dec(x_29); -x_35 = !lean_is_exclusive(x_30); -if (x_35 == 0) -{ -return x_30; -} -else -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_30, 0); -x_37 = lean_ctor_get(x_30, 1); -lean_inc(x_37); -lean_inc(x_36); -lean_dec(x_30); -x_38 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_38, 0, x_36); -lean_ctor_set(x_38, 1, x_37); -return x_38; -} -} -} -else -{ -uint8_t x_39; -lean_dec(x_25); -lean_free_object(x_7); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_3); -x_39 = !lean_is_exclusive(x_26); -if (x_39 == 0) -{ -return x_26; -} -else -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_26, 0); -x_41 = lean_ctor_get(x_26, 1); -lean_inc(x_41); +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_25, 0); +x_40 = lean_ctor_get(x_25, 1); lean_inc(x_40); -lean_dec(x_26); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -return x_42; +lean_inc(x_39); +lean_dec(x_25); +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 { -lean_object* x_43; -lean_dec(x_16); -lean_free_object(x_7); -lean_dec(x_5); -lean_dec(x_3); -x_43 = lean_box(0); -x_19 = x_43; -goto block_23; -} -block_23: -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; -lean_dec(x_19); -x_20 = lean_box(0); -if (lean_is_scalar(x_12)) { - x_21 = lean_alloc_ctor(0, 4, 0); -} else { - x_21 = x_12; -} -lean_ctor_set(x_21, 0, x_9); -lean_ctor_set(x_21, 1, x_10); -lean_ctor_set(x_21, 2, x_11); -lean_ctor_set(x_21, 3, x_20); -if (lean_is_scalar(x_18)) { - x_22 = lean_alloc_ctor(0, 2, 0); -} else { - x_22 = x_18; -} -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_17); -return x_22; -} -} -else -{ -uint8_t x_44; -lean_free_object(x_7); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_3); -x_44 = !lean_is_exclusive(x_15); -if (x_44 == 0) -{ -return x_15; -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_15, 0); -x_46 = lean_ctor_get(x_15, 1); -lean_inc(x_46); -lean_inc(x_45); +lean_object* x_42; lean_dec(x_15); -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; +lean_free_object(x_6); +lean_dec(x_4); +lean_dec(x_2); +x_42 = lean_box(0); +x_18 = x_42; +goto block_22; +} +block_22: +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +lean_dec(x_18); +x_19 = lean_box(0); +if (lean_is_scalar(x_11)) { + x_20 = lean_alloc_ctor(0, 4, 0); +} else { + x_20 = x_11; +} +lean_ctor_set(x_20, 0, x_8); +lean_ctor_set(x_20, 1, x_9); +lean_ctor_set(x_20, 2, x_10); +lean_ctor_set(x_20, 3, x_19); +if (lean_is_scalar(x_17)) { + x_21 = lean_alloc_ctor(0, 2, 0); +} else { + x_21 = x_17; +} +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_16); +return x_21; +} +} +else +{ +uint8_t x_43; +lean_free_object(x_6); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_4); +lean_dec(x_2); +x_43 = !lean_is_exclusive(x_14); +if (x_43 == 0) +{ +return x_14; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_14, 0); +x_45 = lean_ctor_get(x_14, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_14); +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 { -lean_object* x_48; lean_object* x_49; -x_48 = lean_ctor_get(x_7, 0); -lean_inc(x_48); -lean_dec(x_7); -lean_inc(x_5); -x_49 = l_Lean_Elab_Term_whnfForall(x_1, x_48, x_5, x_6); -if (lean_obj_tag(x_49) == 0) +lean_object* x_47; lean_object* x_48; +x_47 = lean_ctor_get(x_6, 0); +lean_inc(x_47); +lean_dec(x_6); +lean_inc(x_4); +x_48 = l_Lean_Elab_Term_whnfForall(x_47, x_4, x_5); +if (lean_obj_tag(x_48) == 0) { -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_50 = lean_ctor_get(x_49, 0); +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_49 = lean_ctor_get(x_48, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_48, 1); lean_inc(x_50); -x_51 = lean_ctor_get(x_49, 1); -lean_inc(x_51); -if (lean_is_exclusive(x_49)) { - lean_ctor_release(x_49, 0); - lean_ctor_release(x_49, 1); - x_52 = x_49; +if (lean_is_exclusive(x_48)) { + lean_ctor_release(x_48, 0); + lean_ctor_release(x_48, 1); + x_51 = x_48; } else { - lean_dec_ref(x_49); - x_52 = lean_box(0); + lean_dec_ref(x_48); + x_51 = lean_box(0); } -if (lean_obj_tag(x_50) == 7) +if (lean_obj_tag(x_49) == 7) { -lean_object* x_58; lean_object* x_59; lean_object* x_60; -lean_dec(x_52); -lean_dec(x_12); -x_58 = lean_ctor_get(x_50, 1); +lean_object* x_57; lean_object* x_58; lean_object* x_59; +lean_dec(x_51); +lean_dec(x_11); +x_57 = lean_ctor_get(x_49, 1); +lean_inc(x_57); +x_58 = lean_ctor_get(x_49, 2); lean_inc(x_58); -x_59 = lean_ctor_get(x_50, 2); -lean_inc(x_59); -lean_dec(x_50); -lean_inc(x_5); -lean_inc(x_3); -x_60 = l_Lean_Elab_Term_isDefEq(x_1, x_3, x_58, x_5, x_51); -if (lean_obj_tag(x_60) == 0) +lean_dec(x_49); +lean_inc(x_4); +lean_inc(x_2); +x_59 = l_Lean_Elab_Term_isDefEq(x_2, x_57, x_4, x_50); +if (lean_obj_tag(x_59) == 0) { -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_61 = lean_ctor_get(x_60, 1); -lean_inc(x_61); -lean_dec(x_60); -x_62 = lean_expr_instantiate1(x_59, x_2); +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_59, 1); +lean_inc(x_60); lean_dec(x_59); -x_63 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_63, 0, x_62); -x_64 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_64, 0, x_9); -lean_ctor_set(x_64, 1, x_10); -lean_ctor_set(x_64, 2, x_11); -lean_ctor_set(x_64, 3, x_63); -x_65 = l___private_Lean_Elab_Binders_12__checkNoOptAutoParam(x_1, x_3, x_5, x_61); -if (lean_obj_tag(x_65) == 0) +x_61 = lean_expr_instantiate1(x_58, x_1); +lean_dec(x_58); +x_62 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_62, 0, x_61); +x_63 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_63, 0, x_8); +lean_ctor_set(x_63, 1, x_9); +lean_ctor_set(x_63, 2, x_10); +lean_ctor_set(x_63, 3, x_62); +x_64 = l___private_Lean_Elab_Binders_12__checkNoOptAutoParam(x_2, x_4, x_60); +if (lean_obj_tag(x_64) == 0) { -lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_66 = lean_ctor_get(x_65, 1); -lean_inc(x_66); -if (lean_is_exclusive(x_65)) { - lean_ctor_release(x_65, 0); - lean_ctor_release(x_65, 1); - x_67 = x_65; +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_64, 1); +lean_inc(x_65); +if (lean_is_exclusive(x_64)) { + lean_ctor_release(x_64, 0); + lean_ctor_release(x_64, 1); + x_66 = x_64; } else { - lean_dec_ref(x_65); - x_67 = lean_box(0); + lean_dec_ref(x_64); + x_66 = lean_box(0); } -if (lean_is_scalar(x_67)) { - x_68 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_66)) { + x_67 = lean_alloc_ctor(0, 2, 0); } else { - x_68 = x_67; + x_67 = x_66; } -lean_ctor_set(x_68, 0, x_64); -lean_ctor_set(x_68, 1, x_66); -return x_68; +lean_ctor_set(x_67, 0, x_63); +lean_ctor_set(x_67, 1, x_65); +return x_67; } else { -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; -lean_dec(x_64); -x_69 = lean_ctor_get(x_65, 0); +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +lean_dec(x_63); +x_68 = lean_ctor_get(x_64, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_64, 1); lean_inc(x_69); -x_70 = lean_ctor_get(x_65, 1); -lean_inc(x_70); -if (lean_is_exclusive(x_65)) { - lean_ctor_release(x_65, 0); - lean_ctor_release(x_65, 1); - x_71 = x_65; +if (lean_is_exclusive(x_64)) { + lean_ctor_release(x_64, 0); + lean_ctor_release(x_64, 1); + x_70 = x_64; } else { - lean_dec_ref(x_65); - x_71 = lean_box(0); + lean_dec_ref(x_64); + x_70 = lean_box(0); } -if (lean_is_scalar(x_71)) { - x_72 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_70)) { + x_71 = lean_alloc_ctor(1, 2, 0); } else { - x_72 = x_71; + x_71 = x_70; } -lean_ctor_set(x_72, 0, x_69); -lean_ctor_set(x_72, 1, x_70); -return x_72; +lean_ctor_set(x_71, 0, x_68); +lean_ctor_set(x_71, 1, x_69); +return x_71; } } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; -lean_dec(x_59); -lean_dec(x_11); +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; +lean_dec(x_58); lean_dec(x_10); lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_3); -x_73 = lean_ctor_get(x_60, 0); +lean_dec(x_8); +lean_dec(x_4); +lean_dec(x_2); +x_72 = lean_ctor_get(x_59, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_59, 1); lean_inc(x_73); -x_74 = lean_ctor_get(x_60, 1); -lean_inc(x_74); -if (lean_is_exclusive(x_60)) { - lean_ctor_release(x_60, 0); - lean_ctor_release(x_60, 1); - x_75 = x_60; +if (lean_is_exclusive(x_59)) { + lean_ctor_release(x_59, 0); + lean_ctor_release(x_59, 1); + x_74 = x_59; } else { - lean_dec_ref(x_60); - x_75 = lean_box(0); + lean_dec_ref(x_59); + x_74 = lean_box(0); } -if (lean_is_scalar(x_75)) { - x_76 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_74)) { + x_75 = lean_alloc_ctor(1, 2, 0); } else { - x_76 = x_75; + x_75 = x_74; } -lean_ctor_set(x_76, 0, x_73); -lean_ctor_set(x_76, 1, x_74); -return x_76; +lean_ctor_set(x_75, 0, x_72); +lean_ctor_set(x_75, 1, x_73); +return x_75; } } else { -lean_object* x_77; -lean_dec(x_50); -lean_dec(x_5); -lean_dec(x_3); -x_77 = lean_box(0); -x_53 = x_77; -goto block_57; +lean_object* x_76; +lean_dec(x_49); +lean_dec(x_4); +lean_dec(x_2); +x_76 = lean_box(0); +x_52 = x_76; +goto block_56; } -block_57: +block_56: { -lean_object* x_54; lean_object* x_55; lean_object* x_56; -lean_dec(x_53); -x_54 = lean_box(0); -if (lean_is_scalar(x_12)) { - x_55 = lean_alloc_ctor(0, 4, 0); +lean_object* x_53; lean_object* x_54; lean_object* x_55; +lean_dec(x_52); +x_53 = lean_box(0); +if (lean_is_scalar(x_11)) { + x_54 = lean_alloc_ctor(0, 4, 0); } else { - x_55 = x_12; + x_54 = x_11; } -lean_ctor_set(x_55, 0, x_9); -lean_ctor_set(x_55, 1, x_10); -lean_ctor_set(x_55, 2, x_11); -lean_ctor_set(x_55, 3, x_54); -if (lean_is_scalar(x_52)) { - x_56 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_54, 0, x_8); +lean_ctor_set(x_54, 1, x_9); +lean_ctor_set(x_54, 2, x_10); +lean_ctor_set(x_54, 3, x_53); +if (lean_is_scalar(x_51)) { + x_55 = lean_alloc_ctor(0, 2, 0); } else { - x_56 = x_52; + x_55 = x_51; } -lean_ctor_set(x_56, 0, x_55); -lean_ctor_set(x_56, 1, x_51); -return x_56; +lean_ctor_set(x_55, 0, x_54); +lean_ctor_set(x_55, 1, x_50); +return x_55; } } else { -lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; -lean_dec(x_12); +lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_3); -x_78 = lean_ctor_get(x_49, 0); +lean_dec(x_8); +lean_dec(x_4); +lean_dec(x_2); +x_77 = lean_ctor_get(x_48, 0); +lean_inc(x_77); +x_78 = lean_ctor_get(x_48, 1); lean_inc(x_78); -x_79 = lean_ctor_get(x_49, 1); -lean_inc(x_79); -if (lean_is_exclusive(x_49)) { - lean_ctor_release(x_49, 0); - lean_ctor_release(x_49, 1); - x_80 = x_49; +if (lean_is_exclusive(x_48)) { + lean_ctor_release(x_48, 0); + lean_ctor_release(x_48, 1); + x_79 = x_48; } else { - lean_dec_ref(x_49); - x_80 = lean_box(0); + lean_dec_ref(x_48); + x_79 = lean_box(0); } -if (lean_is_scalar(x_80)) { - x_81 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_79)) { + x_80 = lean_alloc_ctor(1, 2, 0); } else { - x_81 = x_80; + x_80 = x_79; } -lean_ctor_set(x_81, 0, x_78); -lean_ctor_set(x_81, 1, x_79); -return x_81; +lean_ctor_set(x_80, 0, x_77); +lean_ctor_set(x_80, 1, x_78); +return x_80; } } } } } -lean_object* l___private_Lean_Elab_Binders_13__propagateExpectedType___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* l___private_Lean_Elab_Binders_13__propagateExpectedType___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_7; -x_7 = l___private_Lean_Elab_Binders_13__propagateExpectedType(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_2); +lean_object* x_6; +x_6 = l___private_Lean_Elab_Binders_13__propagateExpectedType(x_1, x_2, x_3, x_4, x_5); lean_dec(x_1); -return x_7; +return x_6; } } lean_object* l___private_Lean_Elab_Binders_14__elabFunBinderViews___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { @@ -19939,1069 +19703,1204 @@ return x_8; } else { -lean_object* x_9; lean_object* x_10; uint8_t x_11; +lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; x_9 = lean_array_fget(x_1, x_2); x_10 = lean_ctor_get(x_4, 0); lean_inc(x_10); -x_11 = !lean_is_exclusive(x_3); -if (x_11 == 0) +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +x_12 = !lean_is_exclusive(x_3); +if (x_12 == 0) { -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_12 = lean_ctor_get(x_3, 0); -x_13 = lean_ctor_get(x_3, 1); -x_14 = lean_ctor_get(x_3, 2); -x_15 = lean_ctor_get(x_3, 3); -x_16 = lean_ctor_get(x_9, 1); +uint8_t x_13; +x_13 = !lean_is_exclusive(x_4); +if (x_13 == 0) +{ +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; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; uint8_t x_28; uint8_t x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; +x_14 = lean_ctor_get(x_3, 0); +x_15 = lean_ctor_get(x_3, 1); +x_16 = lean_ctor_get(x_3, 2); +x_17 = lean_ctor_get(x_3, 3); +x_18 = lean_ctor_get(x_4, 1); +x_19 = lean_ctor_get(x_4, 2); +x_20 = lean_ctor_get(x_4, 3); +x_21 = lean_ctor_get(x_4, 4); +x_22 = lean_ctor_get(x_4, 5); +x_23 = lean_ctor_get(x_4, 6); +x_24 = lean_ctor_get(x_4, 7); +x_25 = lean_ctor_get(x_4, 8); +x_26 = lean_ctor_get(x_4, 9); +x_27 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_28 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_29 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +x_30 = lean_ctor_get(x_4, 10); +lean_dec(x_30); +x_31 = lean_ctor_get(x_4, 0); +lean_dec(x_31); +x_32 = !lean_is_exclusive(x_10); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_10, 2); +lean_dec(x_33); +x_34 = lean_ctor_get(x_10, 1); +lean_dec(x_34); lean_inc(x_16); -x_17 = !lean_is_exclusive(x_4); -if (x_17 == 0) -{ -lean_object* x_18; uint8_t x_19; -x_18 = lean_ctor_get(x_4, 0); -lean_dec(x_18); -x_19 = !lean_is_exclusive(x_10); -if (x_19 == 0) -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_10, 2); -lean_dec(x_20); -x_21 = lean_ctor_get(x_10, 1); -lean_dec(x_21); -lean_inc(x_14); -lean_inc(x_13); -lean_ctor_set(x_10, 2, x_14); -lean_ctor_set(x_10, 1, x_13); -lean_inc(x_4); -lean_inc(x_16); -x_22 = l_Lean_Elab_Term_elabType(x_16, x_4, x_5); -if (lean_obj_tag(x_22) == 0) -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -x_24 = lean_ctor_get(x_22, 1); -lean_inc(x_24); -lean_dec(x_22); -lean_inc(x_4); -lean_inc(x_23); -x_25 = l___private_Lean_Elab_Binders_12__checkNoOptAutoParam(x_16, x_23, x_4, x_24); -if (lean_obj_tag(x_25) == 0) -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; lean_object* x_35; lean_object* x_36; -x_26 = lean_ctor_get(x_25, 1); +lean_inc(x_15); +lean_ctor_set(x_10, 2, x_16); +lean_ctor_set(x_10, 1, x_15); +lean_inc(x_11); lean_inc(x_26); -lean_dec(x_25); -x_27 = l_Lean_Elab_Term_mkFreshFVarId___rarg(x_26); -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); -x_29 = lean_ctor_get(x_27, 1); -lean_inc(x_29); -lean_dec(x_27); -lean_inc(x_28); -x_30 = l_Lean_mkFVar(x_28); -lean_inc(x_30); -x_31 = lean_array_push(x_12, x_30); -lean_inc(x_13); -lean_ctor_set(x_3, 0, x_31); -x_32 = lean_ctor_get(x_9, 0); -lean_inc(x_32); -x_33 = l_Lean_Syntax_getId(x_32); -x_34 = lean_ctor_get_uint8(x_9, sizeof(void*)*2); -lean_dec(x_9); +lean_inc(x_25); +lean_inc(x_24); lean_inc(x_23); -x_35 = lean_local_ctx_mk_local_decl(x_13, x_28, x_33, x_23, x_34); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_10); +lean_ctor_set(x_4, 10, x_11); lean_inc(x_4); -lean_inc(x_23); -x_36 = l___private_Lean_Elab_Binders_13__propagateExpectedType(x_32, x_30, x_23, x_3, x_4, x_29); -lean_dec(x_32); -if (lean_obj_tag(x_36) == 0) +x_35 = l_Lean_Elab_Term_elabType(x_11, x_4, x_5); +if (lean_obj_tag(x_35) == 0) { -lean_object* x_37; lean_object* x_38; uint8_t x_39; -x_37 = lean_ctor_get(x_36, 0); +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_35, 1); lean_inc(x_37); -x_38 = lean_ctor_get(x_36, 1); -lean_inc(x_38); -lean_dec(x_36); -x_39 = !lean_is_exclusive(x_37); -if (x_39 == 0) +lean_dec(x_35); +lean_inc(x_4); +lean_inc(x_36); +x_38 = l___private_Lean_Elab_Binders_12__checkNoOptAutoParam(x_36, x_4, x_37); +if (lean_obj_tag(x_38) == 0) { -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_40 = lean_ctor_get(x_37, 0); -x_41 = lean_ctor_get(x_37, 2); -x_42 = lean_ctor_get(x_37, 3); -x_43 = lean_ctor_get(x_37, 1); -lean_dec(x_43); -lean_inc(x_42); +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; uint8_t x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_39 = lean_ctor_get(x_38, 1); +lean_inc(x_39); +lean_dec(x_38); +x_40 = l_Lean_Elab_Term_mkFreshFVarId___rarg(x_39); +x_41 = lean_ctor_get(x_40, 0); lean_inc(x_41); -lean_inc(x_35); -lean_inc(x_40); -lean_ctor_set(x_37, 1, x_35); -lean_inc(x_4); -x_44 = l_Lean_Elab_Term_isClass(x_16, x_23, x_4, x_38); -lean_dec(x_16); -if (lean_obj_tag(x_44) == 0) -{ -lean_object* x_45; -x_45 = lean_ctor_get(x_44, 0); +x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); +lean_dec(x_40); +lean_inc(x_41); +x_43 = l_Lean_mkFVar(x_41); +lean_inc(x_43); +x_44 = lean_array_push(x_14, x_43); +lean_inc(x_15); +lean_ctor_set(x_3, 0, x_44); +x_45 = lean_ctor_get(x_9, 0); lean_inc(x_45); -if (lean_obj_tag(x_45) == 0) +x_46 = l_Lean_Syntax_getId(x_45); +x_47 = lean_ctor_get_uint8(x_9, sizeof(void*)*2); +lean_dec(x_9); +lean_inc(x_36); +x_48 = lean_local_ctx_mk_local_decl(x_15, x_41, x_46, x_36, x_47); +x_49 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_49, 0, x_10); +lean_ctor_set(x_49, 1, x_18); +lean_ctor_set(x_49, 2, x_19); +lean_ctor_set(x_49, 3, x_20); +lean_ctor_set(x_49, 4, x_21); +lean_ctor_set(x_49, 5, x_22); +lean_ctor_set(x_49, 6, x_23); +lean_ctor_set(x_49, 7, x_24); +lean_ctor_set(x_49, 8, x_25); +lean_ctor_set(x_49, 9, x_26); +lean_ctor_set(x_49, 10, x_45); +lean_ctor_set_uint8(x_49, sizeof(void*)*11, x_27); +lean_ctor_set_uint8(x_49, sizeof(void*)*11 + 1, x_28); +lean_ctor_set_uint8(x_49, sizeof(void*)*11 + 2, x_29); +lean_inc(x_36); +x_50 = l___private_Lean_Elab_Binders_13__propagateExpectedType(x_43, x_36, x_3, x_49, x_42); +if (lean_obj_tag(x_50) == 0) { -lean_object* x_46; lean_object* x_47; lean_object* x_48; -lean_dec(x_42); -lean_dec(x_41); -lean_dec(x_40); -lean_dec(x_35); -lean_dec(x_30); -x_46 = lean_ctor_get(x_44, 1); -lean_inc(x_46); -lean_dec(x_44); -x_47 = lean_unsigned_to_nat(1u); -x_48 = lean_nat_add(x_2, x_47); -lean_dec(x_2); -x_2 = x_48; -x_3 = x_37; -x_5 = x_46; -goto _start; -} -else -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; -lean_dec(x_37); -x_50 = lean_ctor_get(x_44, 1); -lean_inc(x_50); -lean_dec(x_44); -x_51 = lean_ctor_get(x_45, 0); +lean_object* x_51; lean_object* x_52; uint8_t x_53; +x_51 = lean_ctor_get(x_50, 0); lean_inc(x_51); -lean_dec(x_45); -x_52 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_52, 1, x_30); -x_53 = lean_array_push(x_41, x_52); -x_54 = lean_unsigned_to_nat(1u); -x_55 = lean_nat_add(x_2, x_54); -lean_dec(x_2); -x_56 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_56, 0, x_40); -lean_ctor_set(x_56, 1, x_35); -lean_ctor_set(x_56, 2, x_53); -lean_ctor_set(x_56, 3, x_42); -x_57 = l_Lean_Elab_Term_resetSynthInstanceCache___rarg(x_50); -x_58 = lean_ctor_get(x_57, 1); -lean_inc(x_58); +x_52 = lean_ctor_get(x_50, 1); +lean_inc(x_52); +lean_dec(x_50); +x_53 = !lean_is_exclusive(x_51); +if (x_53 == 0) +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_54 = lean_ctor_get(x_51, 0); +x_55 = lean_ctor_get(x_51, 2); +x_56 = lean_ctor_get(x_51, 3); +x_57 = lean_ctor_get(x_51, 1); lean_dec(x_57); -x_2 = x_55; -x_3 = x_56; -x_5 = x_58; +lean_inc(x_56); +lean_inc(x_55); +lean_inc(x_48); +lean_inc(x_54); +lean_ctor_set(x_51, 1, x_48); +lean_inc(x_4); +x_58 = l_Lean_Elab_Term_isClass(x_36, x_4, x_52); +if (lean_obj_tag(x_58) == 0) +{ +lean_object* x_59; +x_59 = lean_ctor_get(x_58, 0); +lean_inc(x_59); +if (lean_obj_tag(x_59) == 0) +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; +lean_dec(x_56); +lean_dec(x_55); +lean_dec(x_54); +lean_dec(x_48); +lean_dec(x_43); +x_60 = lean_ctor_get(x_58, 1); +lean_inc(x_60); +lean_dec(x_58); +x_61 = lean_unsigned_to_nat(1u); +x_62 = lean_nat_add(x_2, x_61); +lean_dec(x_2); +x_2 = x_62; +x_3 = x_51; +x_5 = x_60; +goto _start; +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +lean_dec(x_51); +x_64 = lean_ctor_get(x_58, 1); +lean_inc(x_64); +lean_dec(x_58); +x_65 = lean_ctor_get(x_59, 0); +lean_inc(x_65); +lean_dec(x_59); +x_66 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_43); +x_67 = lean_array_push(x_55, x_66); +x_68 = lean_unsigned_to_nat(1u); +x_69 = lean_nat_add(x_2, x_68); +lean_dec(x_2); +x_70 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_70, 0, x_54); +lean_ctor_set(x_70, 1, x_48); +lean_ctor_set(x_70, 2, x_67); +lean_ctor_set(x_70, 3, x_56); +x_71 = l_Lean_Elab_Term_resetSynthInstanceCache___rarg(x_64); +x_72 = lean_ctor_get(x_71, 1); +lean_inc(x_72); +lean_dec(x_71); +x_2 = x_69; +x_3 = x_70; +x_5 = x_72; goto _start; } } else { -uint8_t x_60; -lean_dec(x_37); -lean_dec(x_42); -lean_dec(x_41); -lean_dec(x_40); -lean_dec(x_35); -lean_dec(x_30); +uint8_t x_74; +lean_dec(x_51); +lean_dec(x_56); +lean_dec(x_55); +lean_dec(x_54); +lean_dec(x_48); +lean_dec(x_43); lean_dec(x_4); lean_dec(x_2); -x_60 = !lean_is_exclusive(x_44); -if (x_60 == 0) +x_74 = !lean_is_exclusive(x_58); +if (x_74 == 0) { -return x_44; +return x_58; } else { -lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_61 = lean_ctor_get(x_44, 0); -x_62 = lean_ctor_get(x_44, 1); -lean_inc(x_62); -lean_inc(x_61); -lean_dec(x_44); -x_63 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_63, 0, x_61); -lean_ctor_set(x_63, 1, x_62); -return x_63; -} -} -} -else -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_64 = lean_ctor_get(x_37, 0); -x_65 = lean_ctor_get(x_37, 2); -x_66 = lean_ctor_get(x_37, 3); -lean_inc(x_66); -lean_inc(x_65); -lean_inc(x_64); -lean_dec(x_37); -lean_inc(x_66); -lean_inc(x_65); -lean_inc(x_35); -lean_inc(x_64); -x_67 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_67, 0, x_64); -lean_ctor_set(x_67, 1, x_35); -lean_ctor_set(x_67, 2, x_65); -lean_ctor_set(x_67, 3, x_66); -lean_inc(x_4); -x_68 = l_Lean_Elab_Term_isClass(x_16, x_23, x_4, x_38); -lean_dec(x_16); -if (lean_obj_tag(x_68) == 0) -{ -lean_object* x_69; -x_69 = lean_ctor_get(x_68, 0); -lean_inc(x_69); -if (lean_obj_tag(x_69) == 0) -{ -lean_object* x_70; lean_object* x_71; lean_object* x_72; -lean_dec(x_66); -lean_dec(x_65); -lean_dec(x_64); -lean_dec(x_35); -lean_dec(x_30); -x_70 = lean_ctor_get(x_68, 1); -lean_inc(x_70); -lean_dec(x_68); -x_71 = lean_unsigned_to_nat(1u); -x_72 = lean_nat_add(x_2, x_71); -lean_dec(x_2); -x_2 = x_72; -x_3 = x_67; -x_5 = x_70; -goto _start; -} -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_81; lean_object* x_82; -lean_dec(x_67); -x_74 = lean_ctor_get(x_68, 1); -lean_inc(x_74); -lean_dec(x_68); -x_75 = lean_ctor_get(x_69, 0); +lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_75 = lean_ctor_get(x_58, 0); +x_76 = lean_ctor_get(x_58, 1); +lean_inc(x_76); lean_inc(x_75); -lean_dec(x_69); -x_76 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_76, 0, x_75); -lean_ctor_set(x_76, 1, x_30); -x_77 = lean_array_push(x_65, x_76); -x_78 = lean_unsigned_to_nat(1u); -x_79 = lean_nat_add(x_2, x_78); +lean_dec(x_58); +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; +} +} +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_78 = lean_ctor_get(x_51, 0); +x_79 = lean_ctor_get(x_51, 2); +x_80 = lean_ctor_get(x_51, 3); +lean_inc(x_80); +lean_inc(x_79); +lean_inc(x_78); +lean_dec(x_51); +lean_inc(x_80); +lean_inc(x_79); +lean_inc(x_48); +lean_inc(x_78); +x_81 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_81, 0, x_78); +lean_ctor_set(x_81, 1, x_48); +lean_ctor_set(x_81, 2, x_79); +lean_ctor_set(x_81, 3, x_80); +lean_inc(x_4); +x_82 = l_Lean_Elab_Term_isClass(x_36, x_4, x_52); +if (lean_obj_tag(x_82) == 0) +{ +lean_object* x_83; +x_83 = lean_ctor_get(x_82, 0); +lean_inc(x_83); +if (lean_obj_tag(x_83) == 0) +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; +lean_dec(x_80); +lean_dec(x_79); +lean_dec(x_78); +lean_dec(x_48); +lean_dec(x_43); +x_84 = lean_ctor_get(x_82, 1); +lean_inc(x_84); +lean_dec(x_82); +x_85 = lean_unsigned_to_nat(1u); +x_86 = lean_nat_add(x_2, x_85); lean_dec(x_2); -x_80 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_80, 0, x_64); -lean_ctor_set(x_80, 1, x_35); -lean_ctor_set(x_80, 2, x_77); -lean_ctor_set(x_80, 3, x_66); -x_81 = l_Lean_Elab_Term_resetSynthInstanceCache___rarg(x_74); -x_82 = lean_ctor_get(x_81, 1); -lean_inc(x_82); +x_2 = x_86; +x_3 = x_81; +x_5 = x_84; +goto _start; +} +else +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_dec(x_81); -x_2 = x_79; -x_3 = x_80; -x_5 = x_82; +x_88 = lean_ctor_get(x_82, 1); +lean_inc(x_88); +lean_dec(x_82); +x_89 = lean_ctor_get(x_83, 0); +lean_inc(x_89); +lean_dec(x_83); +x_90 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_90, 1, x_43); +x_91 = lean_array_push(x_79, x_90); +x_92 = lean_unsigned_to_nat(1u); +x_93 = lean_nat_add(x_2, x_92); +lean_dec(x_2); +x_94 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_94, 0, x_78); +lean_ctor_set(x_94, 1, x_48); +lean_ctor_set(x_94, 2, x_91); +lean_ctor_set(x_94, 3, x_80); +x_95 = l_Lean_Elab_Term_resetSynthInstanceCache___rarg(x_88); +x_96 = lean_ctor_get(x_95, 1); +lean_inc(x_96); +lean_dec(x_95); +x_2 = x_93; +x_3 = x_94; +x_5 = x_96; goto _start; } } else { -lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; -lean_dec(x_67); -lean_dec(x_66); -lean_dec(x_65); -lean_dec(x_64); -lean_dec(x_35); -lean_dec(x_30); +lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; +lean_dec(x_81); +lean_dec(x_80); +lean_dec(x_79); +lean_dec(x_78); +lean_dec(x_48); +lean_dec(x_43); lean_dec(x_4); lean_dec(x_2); -x_84 = lean_ctor_get(x_68, 0); -lean_inc(x_84); -x_85 = lean_ctor_get(x_68, 1); -lean_inc(x_85); -if (lean_is_exclusive(x_68)) { - lean_ctor_release(x_68, 0); - lean_ctor_release(x_68, 1); - x_86 = x_68; -} else { - lean_dec_ref(x_68); - x_86 = lean_box(0); -} -if (lean_is_scalar(x_86)) { - x_87 = lean_alloc_ctor(1, 2, 0); -} else { - x_87 = x_86; -} -lean_ctor_set(x_87, 0, x_84); -lean_ctor_set(x_87, 1, x_85); -return x_87; -} -} -} -else -{ -uint8_t x_88; -lean_dec(x_35); -lean_dec(x_30); -lean_dec(x_23); -lean_dec(x_4); -lean_dec(x_16); -lean_dec(x_2); -x_88 = !lean_is_exclusive(x_36); -if (x_88 == 0) -{ -return x_36; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_36, 0); -x_90 = lean_ctor_get(x_36, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_36); -x_91 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_90); -return x_91; -} -} -} -else -{ -uint8_t x_92; -lean_dec(x_23); -lean_dec(x_4); -lean_dec(x_16); -lean_free_object(x_3); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_9); -lean_dec(x_2); -x_92 = !lean_is_exclusive(x_25); -if (x_92 == 0) -{ -return x_25; -} -else -{ -lean_object* x_93; lean_object* x_94; lean_object* x_95; -x_93 = lean_ctor_get(x_25, 0); -x_94 = lean_ctor_get(x_25, 1); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_25); -x_95 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_95, 0, x_93); -lean_ctor_set(x_95, 1, x_94); -return x_95; -} -} -} -else -{ -uint8_t x_96; -lean_dec(x_4); -lean_dec(x_16); -lean_free_object(x_3); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_9); -lean_dec(x_2); -x_96 = !lean_is_exclusive(x_22); -if (x_96 == 0) -{ -return x_22; -} -else -{ -lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_97 = lean_ctor_get(x_22, 0); -x_98 = lean_ctor_get(x_22, 1); +x_98 = lean_ctor_get(x_82, 0); lean_inc(x_98); -lean_inc(x_97); -lean_dec(x_22); -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; +x_99 = lean_ctor_get(x_82, 1); +lean_inc(x_99); +if (lean_is_exclusive(x_82)) { + lean_ctor_release(x_82, 0); + lean_ctor_release(x_82, 1); + x_100 = x_82; +} else { + lean_dec_ref(x_82); + x_100 = lean_box(0); +} +if (lean_is_scalar(x_100)) { + x_101 = lean_alloc_ctor(1, 2, 0); +} else { + x_101 = x_100; +} +lean_ctor_set(x_101, 0, x_98); +lean_ctor_set(x_101, 1, x_99); +return x_101; } } } else { -lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_100 = lean_ctor_get(x_10, 0); -x_101 = lean_ctor_get(x_10, 3); -x_102 = lean_ctor_get(x_10, 4); -lean_inc(x_102); -lean_inc(x_101); -lean_inc(x_100); +uint8_t x_102; +lean_dec(x_48); +lean_dec(x_43); +lean_dec(x_36); +lean_dec(x_4); +lean_dec(x_2); +x_102 = !lean_is_exclusive(x_50); +if (x_102 == 0) +{ +return x_50; +} +else +{ +lean_object* x_103; lean_object* x_104; lean_object* x_105; +x_103 = lean_ctor_get(x_50, 0); +x_104 = lean_ctor_get(x_50, 1); +lean_inc(x_104); +lean_inc(x_103); +lean_dec(x_50); +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 +{ +uint8_t x_106; +lean_dec(x_36); +lean_dec(x_4); lean_dec(x_10); -lean_inc(x_14); -lean_inc(x_13); -x_103 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_103, 0, x_100); -lean_ctor_set(x_103, 1, x_13); -lean_ctor_set(x_103, 2, x_14); -lean_ctor_set(x_103, 3, x_101); -lean_ctor_set(x_103, 4, x_102); -lean_ctor_set(x_4, 0, x_103); -lean_inc(x_4); -lean_inc(x_16); -x_104 = l_Lean_Elab_Term_elabType(x_16, x_4, x_5); -if (lean_obj_tag(x_104) == 0) -{ -lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_105 = lean_ctor_get(x_104, 0); -lean_inc(x_105); -x_106 = lean_ctor_get(x_104, 1); -lean_inc(x_106); -lean_dec(x_104); -lean_inc(x_4); -lean_inc(x_105); -x_107 = l___private_Lean_Elab_Binders_12__checkNoOptAutoParam(x_16, x_105, x_4, x_106); -if (lean_obj_tag(x_107) == 0) -{ -lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; uint8_t x_116; lean_object* x_117; lean_object* x_118; -x_108 = lean_ctor_get(x_107, 1); -lean_inc(x_108); -lean_dec(x_107); -x_109 = l_Lean_Elab_Term_mkFreshFVarId___rarg(x_108); -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); -lean_inc(x_110); -x_112 = l_Lean_mkFVar(x_110); -lean_inc(x_112); -x_113 = lean_array_push(x_12, x_112); -lean_inc(x_13); -lean_ctor_set(x_3, 0, x_113); -x_114 = lean_ctor_get(x_9, 0); -lean_inc(x_114); -x_115 = l_Lean_Syntax_getId(x_114); -x_116 = lean_ctor_get_uint8(x_9, sizeof(void*)*2); +lean_dec(x_26); +lean_dec(x_25); +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_free_object(x_3); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); lean_dec(x_9); -lean_inc(x_105); -x_117 = lean_local_ctx_mk_local_decl(x_13, x_110, x_115, x_105, x_116); +lean_dec(x_2); +x_106 = !lean_is_exclusive(x_38); +if (x_106 == 0) +{ +return x_38; +} +else +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_107 = lean_ctor_get(x_38, 0); +x_108 = lean_ctor_get(x_38, 1); +lean_inc(x_108); +lean_inc(x_107); +lean_dec(x_38); +x_109 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_109, 0, x_107); +lean_ctor_set(x_109, 1, x_108); +return x_109; +} +} +} +else +{ +uint8_t x_110; +lean_dec(x_4); +lean_dec(x_10); +lean_dec(x_26); +lean_dec(x_25); +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_free_object(x_3); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_9); +lean_dec(x_2); +x_110 = !lean_is_exclusive(x_35); +if (x_110 == 0) +{ +return x_35; +} +else +{ +lean_object* x_111; lean_object* x_112; lean_object* x_113; +x_111 = lean_ctor_get(x_35, 0); +x_112 = lean_ctor_get(x_35, 1); +lean_inc(x_112); +lean_inc(x_111); +lean_dec(x_35); +x_113 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_113, 0, x_111); +lean_ctor_set(x_113, 1, x_112); +return x_113; +} +} +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; +x_114 = lean_ctor_get(x_10, 0); +x_115 = lean_ctor_get(x_10, 3); +x_116 = lean_ctor_get(x_10, 4); +lean_inc(x_116); +lean_inc(x_115); +lean_inc(x_114); +lean_dec(x_10); +lean_inc(x_16); +lean_inc(x_15); +x_117 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_117, 0, x_114); +lean_ctor_set(x_117, 1, x_15); +lean_ctor_set(x_117, 2, x_16); +lean_ctor_set(x_117, 3, x_115); +lean_ctor_set(x_117, 4, x_116); +lean_inc(x_11); +lean_inc(x_26); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_117); +lean_ctor_set(x_4, 10, x_11); +lean_ctor_set(x_4, 0, x_117); lean_inc(x_4); -lean_inc(x_105); -x_118 = l___private_Lean_Elab_Binders_13__propagateExpectedType(x_114, x_112, x_105, x_3, x_4, x_111); -lean_dec(x_114); +x_118 = l_Lean_Elab_Term_elabType(x_11, x_4, x_5); if (lean_obj_tag(x_118) == 0) { -lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; +lean_object* x_119; lean_object* x_120; lean_object* x_121; x_119 = lean_ctor_get(x_118, 0); lean_inc(x_119); x_120 = lean_ctor_get(x_118, 1); lean_inc(x_120); lean_dec(x_118); -x_121 = lean_ctor_get(x_119, 0); -lean_inc(x_121); -x_122 = lean_ctor_get(x_119, 2); -lean_inc(x_122); -x_123 = lean_ctor_get(x_119, 3); -lean_inc(x_123); -if (lean_is_exclusive(x_119)) { - lean_ctor_release(x_119, 0); - lean_ctor_release(x_119, 1); - lean_ctor_release(x_119, 2); - lean_ctor_release(x_119, 3); - x_124 = x_119; -} else { - lean_dec_ref(x_119); - x_124 = lean_box(0); -} -lean_inc(x_123); -lean_inc(x_122); -lean_inc(x_117); -lean_inc(x_121); -if (lean_is_scalar(x_124)) { - x_125 = lean_alloc_ctor(0, 4, 0); -} else { - x_125 = x_124; -} -lean_ctor_set(x_125, 0, x_121); -lean_ctor_set(x_125, 1, x_117); -lean_ctor_set(x_125, 2, x_122); -lean_ctor_set(x_125, 3, x_123); lean_inc(x_4); -x_126 = l_Lean_Elab_Term_isClass(x_16, x_105, x_4, x_120); -lean_dec(x_16); -if (lean_obj_tag(x_126) == 0) +lean_inc(x_119); +x_121 = l___private_Lean_Elab_Binders_12__checkNoOptAutoParam(x_119, x_4, x_120); +if (lean_obj_tag(x_121) == 0) { -lean_object* x_127; -x_127 = lean_ctor_get(x_126, 0); -lean_inc(x_127); -if (lean_obj_tag(x_127) == 0) -{ -lean_object* x_128; lean_object* x_129; lean_object* x_130; -lean_dec(x_123); -lean_dec(x_122); +lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; uint8_t x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; +x_122 = lean_ctor_get(x_121, 1); +lean_inc(x_122); lean_dec(x_121); -lean_dec(x_117); -lean_dec(x_112); -x_128 = lean_ctor_get(x_126, 1); +x_123 = l_Lean_Elab_Term_mkFreshFVarId___rarg(x_122); +x_124 = lean_ctor_get(x_123, 0); +lean_inc(x_124); +x_125 = lean_ctor_get(x_123, 1); +lean_inc(x_125); +lean_dec(x_123); +lean_inc(x_124); +x_126 = l_Lean_mkFVar(x_124); +lean_inc(x_126); +x_127 = lean_array_push(x_14, x_126); +lean_inc(x_15); +lean_ctor_set(x_3, 0, x_127); +x_128 = lean_ctor_get(x_9, 0); lean_inc(x_128); -lean_dec(x_126); -x_129 = lean_unsigned_to_nat(1u); -x_130 = lean_nat_add(x_2, x_129); -lean_dec(x_2); -x_2 = x_130; -x_3 = x_125; -x_5 = x_128; -goto _start; -} -else +x_129 = l_Lean_Syntax_getId(x_128); +x_130 = lean_ctor_get_uint8(x_9, sizeof(void*)*2); +lean_dec(x_9); +lean_inc(x_119); +x_131 = lean_local_ctx_mk_local_decl(x_15, x_124, x_129, x_119, x_130); +x_132 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_132, 0, x_117); +lean_ctor_set(x_132, 1, x_18); +lean_ctor_set(x_132, 2, x_19); +lean_ctor_set(x_132, 3, x_20); +lean_ctor_set(x_132, 4, x_21); +lean_ctor_set(x_132, 5, x_22); +lean_ctor_set(x_132, 6, x_23); +lean_ctor_set(x_132, 7, x_24); +lean_ctor_set(x_132, 8, x_25); +lean_ctor_set(x_132, 9, x_26); +lean_ctor_set(x_132, 10, x_128); +lean_ctor_set_uint8(x_132, sizeof(void*)*11, x_27); +lean_ctor_set_uint8(x_132, sizeof(void*)*11 + 1, x_28); +lean_ctor_set_uint8(x_132, sizeof(void*)*11 + 2, x_29); +lean_inc(x_119); +x_133 = l___private_Lean_Elab_Binders_13__propagateExpectedType(x_126, x_119, x_3, x_132, x_125); +if (lean_obj_tag(x_133) == 0) { -lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; -lean_dec(x_125); -x_132 = lean_ctor_get(x_126, 1); -lean_inc(x_132); -lean_dec(x_126); -x_133 = lean_ctor_get(x_127, 0); -lean_inc(x_133); -lean_dec(x_127); -x_134 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_134, 0, x_133); -lean_ctor_set(x_134, 1, x_112); -x_135 = lean_array_push(x_122, x_134); -x_136 = lean_unsigned_to_nat(1u); -x_137 = lean_nat_add(x_2, x_136); -lean_dec(x_2); -x_138 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_138, 0, x_121); -lean_ctor_set(x_138, 1, x_117); -lean_ctor_set(x_138, 2, x_135); -lean_ctor_set(x_138, 3, x_123); -x_139 = l_Lean_Elab_Term_resetSynthInstanceCache___rarg(x_132); -x_140 = lean_ctor_get(x_139, 1); -lean_inc(x_140); -lean_dec(x_139); -x_2 = x_137; -x_3 = x_138; -x_5 = x_140; -goto _start; +lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; +x_134 = lean_ctor_get(x_133, 0); +lean_inc(x_134); +x_135 = lean_ctor_get(x_133, 1); +lean_inc(x_135); +lean_dec(x_133); +x_136 = lean_ctor_get(x_134, 0); +lean_inc(x_136); +x_137 = lean_ctor_get(x_134, 2); +lean_inc(x_137); +x_138 = lean_ctor_get(x_134, 3); +lean_inc(x_138); +if (lean_is_exclusive(x_134)) { + lean_ctor_release(x_134, 0); + lean_ctor_release(x_134, 1); + lean_ctor_release(x_134, 2); + lean_ctor_release(x_134, 3); + x_139 = x_134; +} else { + lean_dec_ref(x_134); + x_139 = lean_box(0); } +lean_inc(x_138); +lean_inc(x_137); +lean_inc(x_131); +lean_inc(x_136); +if (lean_is_scalar(x_139)) { + x_140 = lean_alloc_ctor(0, 4, 0); +} else { + x_140 = x_139; } -else +lean_ctor_set(x_140, 0, x_136); +lean_ctor_set(x_140, 1, x_131); +lean_ctor_set(x_140, 2, x_137); +lean_ctor_set(x_140, 3, x_138); +lean_inc(x_4); +x_141 = l_Lean_Elab_Term_isClass(x_119, x_4, x_135); +if (lean_obj_tag(x_141) == 0) { -lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; -lean_dec(x_125); -lean_dec(x_123); -lean_dec(x_122); -lean_dec(x_121); -lean_dec(x_117); -lean_dec(x_112); -lean_dec(x_4); -lean_dec(x_2); -x_142 = lean_ctor_get(x_126, 0); +lean_object* x_142; +x_142 = lean_ctor_get(x_141, 0); lean_inc(x_142); -x_143 = lean_ctor_get(x_126, 1); +if (lean_obj_tag(x_142) == 0) +{ +lean_object* x_143; lean_object* x_144; lean_object* x_145; +lean_dec(x_138); +lean_dec(x_137); +lean_dec(x_136); +lean_dec(x_131); +lean_dec(x_126); +x_143 = lean_ctor_get(x_141, 1); lean_inc(x_143); -if (lean_is_exclusive(x_126)) { - lean_ctor_release(x_126, 0); - lean_ctor_release(x_126, 1); - x_144 = x_126; -} else { - lean_dec_ref(x_126); - x_144 = lean_box(0); +lean_dec(x_141); +x_144 = lean_unsigned_to_nat(1u); +x_145 = lean_nat_add(x_2, x_144); +lean_dec(x_2); +x_2 = x_145; +x_3 = x_140; +x_5 = x_143; +goto _start; } -if (lean_is_scalar(x_144)) { - x_145 = lean_alloc_ctor(1, 2, 0); -} else { - x_145 = x_144; -} -lean_ctor_set(x_145, 0, x_142); -lean_ctor_set(x_145, 1, x_143); -return x_145; +else +{ +lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; +lean_dec(x_140); +x_147 = lean_ctor_get(x_141, 1); +lean_inc(x_147); +lean_dec(x_141); +x_148 = lean_ctor_get(x_142, 0); +lean_inc(x_148); +lean_dec(x_142); +x_149 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_149, 0, x_148); +lean_ctor_set(x_149, 1, x_126); +x_150 = lean_array_push(x_137, x_149); +x_151 = lean_unsigned_to_nat(1u); +x_152 = lean_nat_add(x_2, x_151); +lean_dec(x_2); +x_153 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_153, 0, x_136); +lean_ctor_set(x_153, 1, x_131); +lean_ctor_set(x_153, 2, x_150); +lean_ctor_set(x_153, 3, x_138); +x_154 = l_Lean_Elab_Term_resetSynthInstanceCache___rarg(x_147); +x_155 = lean_ctor_get(x_154, 1); +lean_inc(x_155); +lean_dec(x_154); +x_2 = x_152; +x_3 = x_153; +x_5 = x_155; +goto _start; } } else { -lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; -lean_dec(x_117); -lean_dec(x_112); -lean_dec(x_105); +lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; +lean_dec(x_140); +lean_dec(x_138); +lean_dec(x_137); +lean_dec(x_136); +lean_dec(x_131); +lean_dec(x_126); lean_dec(x_4); -lean_dec(x_16); lean_dec(x_2); -x_146 = lean_ctor_get(x_118, 0); -lean_inc(x_146); -x_147 = lean_ctor_get(x_118, 1); -lean_inc(x_147); +x_157 = lean_ctor_get(x_141, 0); +lean_inc(x_157); +x_158 = lean_ctor_get(x_141, 1); +lean_inc(x_158); +if (lean_is_exclusive(x_141)) { + lean_ctor_release(x_141, 0); + lean_ctor_release(x_141, 1); + x_159 = x_141; +} else { + lean_dec_ref(x_141); + 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_dec(x_131); +lean_dec(x_126); +lean_dec(x_119); +lean_dec(x_4); +lean_dec(x_2); +x_161 = lean_ctor_get(x_133, 0); +lean_inc(x_161); +x_162 = lean_ctor_get(x_133, 1); +lean_inc(x_162); +if (lean_is_exclusive(x_133)) { + lean_ctor_release(x_133, 0); + lean_ctor_release(x_133, 1); + x_163 = x_133; +} else { + lean_dec_ref(x_133); + x_163 = lean_box(0); +} +if (lean_is_scalar(x_163)) { + x_164 = lean_alloc_ctor(1, 2, 0); +} else { + x_164 = x_163; +} +lean_ctor_set(x_164, 0, x_161); +lean_ctor_set(x_164, 1, x_162); +return x_164; +} +} +else +{ +lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; +lean_dec(x_119); +lean_dec(x_4); +lean_dec(x_117); +lean_dec(x_26); +lean_dec(x_25); +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_free_object(x_3); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_9); +lean_dec(x_2); +x_165 = lean_ctor_get(x_121, 0); +lean_inc(x_165); +x_166 = lean_ctor_get(x_121, 1); +lean_inc(x_166); +if (lean_is_exclusive(x_121)) { + lean_ctor_release(x_121, 0); + lean_ctor_release(x_121, 1); + x_167 = x_121; +} else { + lean_dec_ref(x_121); + x_167 = lean_box(0); +} +if (lean_is_scalar(x_167)) { + x_168 = lean_alloc_ctor(1, 2, 0); +} else { + x_168 = x_167; +} +lean_ctor_set(x_168, 0, x_165); +lean_ctor_set(x_168, 1, x_166); +return x_168; +} +} +else +{ +lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; +lean_dec(x_4); +lean_dec(x_117); +lean_dec(x_26); +lean_dec(x_25); +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_free_object(x_3); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_9); +lean_dec(x_2); +x_169 = lean_ctor_get(x_118, 0); +lean_inc(x_169); +x_170 = lean_ctor_get(x_118, 1); +lean_inc(x_170); if (lean_is_exclusive(x_118)) { lean_ctor_release(x_118, 0); lean_ctor_release(x_118, 1); - x_148 = x_118; + x_171 = x_118; } else { lean_dec_ref(x_118); - x_148 = lean_box(0); + x_171 = lean_box(0); } -if (lean_is_scalar(x_148)) { - x_149 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_171)) { + x_172 = lean_alloc_ctor(1, 2, 0); } else { - x_149 = x_148; + x_172 = x_171; } -lean_ctor_set(x_149, 0, x_146); -lean_ctor_set(x_149, 1, x_147); -return x_149; -} -} -else -{ -lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; -lean_dec(x_105); -lean_dec(x_4); -lean_dec(x_16); -lean_free_object(x_3); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_9); -lean_dec(x_2); -x_150 = lean_ctor_get(x_107, 0); -lean_inc(x_150); -x_151 = lean_ctor_get(x_107, 1); -lean_inc(x_151); -if (lean_is_exclusive(x_107)) { - lean_ctor_release(x_107, 0); - lean_ctor_release(x_107, 1); - x_152 = x_107; -} else { - lean_dec_ref(x_107); - x_152 = lean_box(0); -} -if (lean_is_scalar(x_152)) { - x_153 = lean_alloc_ctor(1, 2, 0); -} else { - x_153 = x_152; -} -lean_ctor_set(x_153, 0, x_150); -lean_ctor_set(x_153, 1, x_151); -return x_153; -} -} -else -{ -lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; -lean_dec(x_4); -lean_dec(x_16); -lean_free_object(x_3); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_9); -lean_dec(x_2); -x_154 = lean_ctor_get(x_104, 0); -lean_inc(x_154); -x_155 = lean_ctor_get(x_104, 1); -lean_inc(x_155); -if (lean_is_exclusive(x_104)) { - lean_ctor_release(x_104, 0); - lean_ctor_release(x_104, 1); - x_156 = x_104; -} else { - lean_dec_ref(x_104); - x_156 = lean_box(0); -} -if (lean_is_scalar(x_156)) { - x_157 = lean_alloc_ctor(1, 2, 0); -} else { - x_157 = x_156; -} -lean_ctor_set(x_157, 0, x_154); -lean_ctor_set(x_157, 1, x_155); -return x_157; +lean_ctor_set(x_172, 0, x_169); +lean_ctor_set(x_172, 1, x_170); +return x_172; } } } else { -lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; uint8_t x_167; uint8_t x_168; uint8_t x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; -x_158 = lean_ctor_get(x_4, 1); -x_159 = lean_ctor_get(x_4, 2); -x_160 = lean_ctor_get(x_4, 3); -x_161 = lean_ctor_get(x_4, 4); -x_162 = lean_ctor_get(x_4, 5); -x_163 = lean_ctor_get(x_4, 6); -x_164 = lean_ctor_get(x_4, 7); -x_165 = lean_ctor_get(x_4, 8); -x_166 = lean_ctor_get(x_4, 9); -x_167 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); -x_168 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); -x_169 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 2); -lean_inc(x_166); -lean_inc(x_165); -lean_inc(x_164); -lean_inc(x_163); -lean_inc(x_162); -lean_inc(x_161); -lean_inc(x_160); -lean_inc(x_159); -lean_inc(x_158); +lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; uint8_t x_186; uint8_t x_187; uint8_t x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; +x_173 = lean_ctor_get(x_3, 0); +x_174 = lean_ctor_get(x_3, 1); +x_175 = lean_ctor_get(x_3, 2); +x_176 = lean_ctor_get(x_3, 3); +x_177 = lean_ctor_get(x_4, 1); +x_178 = lean_ctor_get(x_4, 2); +x_179 = lean_ctor_get(x_4, 3); +x_180 = lean_ctor_get(x_4, 4); +x_181 = lean_ctor_get(x_4, 5); +x_182 = lean_ctor_get(x_4, 6); +x_183 = lean_ctor_get(x_4, 7); +x_184 = lean_ctor_get(x_4, 8); +x_185 = lean_ctor_get(x_4, 9); +x_186 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_187 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_188 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +lean_inc(x_185); +lean_inc(x_184); +lean_inc(x_183); +lean_inc(x_182); +lean_inc(x_181); +lean_inc(x_180); +lean_inc(x_179); +lean_inc(x_178); +lean_inc(x_177); lean_dec(x_4); -x_170 = lean_ctor_get(x_10, 0); -lean_inc(x_170); -x_171 = lean_ctor_get(x_10, 3); -lean_inc(x_171); -x_172 = lean_ctor_get(x_10, 4); -lean_inc(x_172); +x_189 = lean_ctor_get(x_10, 0); +lean_inc(x_189); +x_190 = lean_ctor_get(x_10, 3); +lean_inc(x_190); +x_191 = lean_ctor_get(x_10, 4); +lean_inc(x_191); if (lean_is_exclusive(x_10)) { lean_ctor_release(x_10, 0); lean_ctor_release(x_10, 1); lean_ctor_release(x_10, 2); lean_ctor_release(x_10, 3); lean_ctor_release(x_10, 4); - x_173 = x_10; + x_192 = x_10; } else { lean_dec_ref(x_10); - x_173 = lean_box(0); + x_192 = lean_box(0); } -lean_inc(x_14); -lean_inc(x_13); -if (lean_is_scalar(x_173)) { - x_174 = lean_alloc_ctor(0, 5, 0); +lean_inc(x_175); +lean_inc(x_174); +if (lean_is_scalar(x_192)) { + x_193 = lean_alloc_ctor(0, 5, 0); } else { - x_174 = x_173; + x_193 = x_192; } -lean_ctor_set(x_174, 0, x_170); -lean_ctor_set(x_174, 1, x_13); -lean_ctor_set(x_174, 2, x_14); -lean_ctor_set(x_174, 3, x_171); -lean_ctor_set(x_174, 4, x_172); -x_175 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_175, 0, x_174); -lean_ctor_set(x_175, 1, x_158); -lean_ctor_set(x_175, 2, x_159); -lean_ctor_set(x_175, 3, x_160); -lean_ctor_set(x_175, 4, x_161); -lean_ctor_set(x_175, 5, x_162); -lean_ctor_set(x_175, 6, x_163); -lean_ctor_set(x_175, 7, x_164); -lean_ctor_set(x_175, 8, x_165); -lean_ctor_set(x_175, 9, x_166); -lean_ctor_set_uint8(x_175, sizeof(void*)*10, x_167); -lean_ctor_set_uint8(x_175, sizeof(void*)*10 + 1, x_168); -lean_ctor_set_uint8(x_175, sizeof(void*)*10 + 2, x_169); -lean_inc(x_175); -lean_inc(x_16); -x_176 = l_Lean_Elab_Term_elabType(x_16, x_175, x_5); -if (lean_obj_tag(x_176) == 0) -{ -lean_object* x_177; lean_object* x_178; lean_object* x_179; -x_177 = lean_ctor_get(x_176, 0); -lean_inc(x_177); -x_178 = lean_ctor_get(x_176, 1); -lean_inc(x_178); -lean_dec(x_176); -lean_inc(x_175); -lean_inc(x_177); -x_179 = l___private_Lean_Elab_Binders_12__checkNoOptAutoParam(x_16, x_177, x_175, x_178); -if (lean_obj_tag(x_179) == 0) -{ -lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; uint8_t x_188; lean_object* x_189; lean_object* x_190; -x_180 = lean_ctor_get(x_179, 1); -lean_inc(x_180); -lean_dec(x_179); -x_181 = l_Lean_Elab_Term_mkFreshFVarId___rarg(x_180); -x_182 = lean_ctor_get(x_181, 0); -lean_inc(x_182); -x_183 = lean_ctor_get(x_181, 1); -lean_inc(x_183); -lean_dec(x_181); -lean_inc(x_182); -x_184 = l_Lean_mkFVar(x_182); +lean_ctor_set(x_193, 0, x_189); +lean_ctor_set(x_193, 1, x_174); +lean_ctor_set(x_193, 2, x_175); +lean_ctor_set(x_193, 3, x_190); +lean_ctor_set(x_193, 4, x_191); +lean_inc(x_11); +lean_inc(x_185); lean_inc(x_184); -x_185 = lean_array_push(x_12, x_184); -lean_inc(x_13); -lean_ctor_set(x_3, 0, x_185); -x_186 = lean_ctor_get(x_9, 0); -lean_inc(x_186); -x_187 = l_Lean_Syntax_getId(x_186); -x_188 = lean_ctor_get_uint8(x_9, sizeof(void*)*2); -lean_dec(x_9); +lean_inc(x_183); +lean_inc(x_182); +lean_inc(x_181); +lean_inc(x_180); +lean_inc(x_179); +lean_inc(x_178); lean_inc(x_177); -x_189 = lean_local_ctx_mk_local_decl(x_13, x_182, x_187, x_177, x_188); -lean_inc(x_175); -lean_inc(x_177); -x_190 = l___private_Lean_Elab_Binders_13__propagateExpectedType(x_186, x_184, x_177, x_3, x_175, x_183); -lean_dec(x_186); -if (lean_obj_tag(x_190) == 0) +lean_inc(x_193); +x_194 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_194, 0, x_193); +lean_ctor_set(x_194, 1, x_177); +lean_ctor_set(x_194, 2, x_178); +lean_ctor_set(x_194, 3, x_179); +lean_ctor_set(x_194, 4, x_180); +lean_ctor_set(x_194, 5, x_181); +lean_ctor_set(x_194, 6, x_182); +lean_ctor_set(x_194, 7, x_183); +lean_ctor_set(x_194, 8, x_184); +lean_ctor_set(x_194, 9, x_185); +lean_ctor_set(x_194, 10, x_11); +lean_ctor_set_uint8(x_194, sizeof(void*)*11, x_186); +lean_ctor_set_uint8(x_194, sizeof(void*)*11 + 1, x_187); +lean_ctor_set_uint8(x_194, sizeof(void*)*11 + 2, x_188); +lean_inc(x_194); +x_195 = l_Lean_Elab_Term_elabType(x_11, x_194, x_5); +if (lean_obj_tag(x_195) == 0) { -lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; -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 = lean_ctor_get(x_191, 0); -lean_inc(x_193); -x_194 = lean_ctor_get(x_191, 2); +lean_object* x_196; lean_object* x_197; lean_object* x_198; +x_196 = lean_ctor_get(x_195, 0); +lean_inc(x_196); +x_197 = lean_ctor_get(x_195, 1); +lean_inc(x_197); +lean_dec(x_195); lean_inc(x_194); -x_195 = lean_ctor_get(x_191, 3); -lean_inc(x_195); -if (lean_is_exclusive(x_191)) { - lean_ctor_release(x_191, 0); - lean_ctor_release(x_191, 1); - lean_ctor_release(x_191, 2); - lean_ctor_release(x_191, 3); - x_196 = x_191; -} else { - lean_dec_ref(x_191); - x_196 = lean_box(0); -} -lean_inc(x_195); -lean_inc(x_194); -lean_inc(x_189); -lean_inc(x_193); -if (lean_is_scalar(x_196)) { - x_197 = lean_alloc_ctor(0, 4, 0); -} else { - x_197 = x_196; -} -lean_ctor_set(x_197, 0, x_193); -lean_ctor_set(x_197, 1, x_189); -lean_ctor_set(x_197, 2, x_194); -lean_ctor_set(x_197, 3, x_195); -lean_inc(x_175); -x_198 = l_Lean_Elab_Term_isClass(x_16, x_177, x_175, x_192); -lean_dec(x_16); +lean_inc(x_196); +x_198 = l___private_Lean_Elab_Binders_12__checkNoOptAutoParam(x_196, x_194, x_197); if (lean_obj_tag(x_198) == 0) { -lean_object* x_199; -x_199 = lean_ctor_get(x_198, 0); +lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; uint8_t x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; +x_199 = lean_ctor_get(x_198, 1); lean_inc(x_199); -if (lean_obj_tag(x_199) == 0) -{ -lean_object* x_200; lean_object* x_201; lean_object* x_202; -lean_dec(x_195); -lean_dec(x_194); -lean_dec(x_193); -lean_dec(x_189); -lean_dec(x_184); -x_200 = lean_ctor_get(x_198, 1); -lean_inc(x_200); lean_dec(x_198); -x_201 = lean_unsigned_to_nat(1u); -x_202 = lean_nat_add(x_2, x_201); -lean_dec(x_2); -x_2 = x_202; -x_3 = x_197; -x_4 = x_175; -x_5 = x_200; -goto _start; -} -else -{ -lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; -lean_dec(x_197); -x_204 = lean_ctor_get(x_198, 1); -lean_inc(x_204); -lean_dec(x_198); -x_205 = lean_ctor_get(x_199, 0); +x_200 = l_Lean_Elab_Term_mkFreshFVarId___rarg(x_199); +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_201); +x_203 = l_Lean_mkFVar(x_201); +lean_inc(x_203); +x_204 = lean_array_push(x_173, x_203); +lean_inc(x_174); +lean_ctor_set(x_3, 0, x_204); +x_205 = lean_ctor_get(x_9, 0); lean_inc(x_205); -lean_dec(x_199); -x_206 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_206, 0, x_205); -lean_ctor_set(x_206, 1, x_184); -x_207 = lean_array_push(x_194, x_206); -x_208 = lean_unsigned_to_nat(1u); -x_209 = lean_nat_add(x_2, x_208); -lean_dec(x_2); -x_210 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_210, 0, x_193); -lean_ctor_set(x_210, 1, x_189); -lean_ctor_set(x_210, 2, x_207); -lean_ctor_set(x_210, 3, x_195); -x_211 = l_Lean_Elab_Term_resetSynthInstanceCache___rarg(x_204); -x_212 = lean_ctor_get(x_211, 1); -lean_inc(x_212); -lean_dec(x_211); -x_2 = x_209; -x_3 = x_210; -x_4 = x_175; -x_5 = x_212; -goto _start; -} -} -else +x_206 = l_Lean_Syntax_getId(x_205); +x_207 = lean_ctor_get_uint8(x_9, sizeof(void*)*2); +lean_dec(x_9); +lean_inc(x_196); +x_208 = lean_local_ctx_mk_local_decl(x_174, x_201, x_206, x_196, x_207); +x_209 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_209, 0, x_193); +lean_ctor_set(x_209, 1, x_177); +lean_ctor_set(x_209, 2, x_178); +lean_ctor_set(x_209, 3, x_179); +lean_ctor_set(x_209, 4, x_180); +lean_ctor_set(x_209, 5, x_181); +lean_ctor_set(x_209, 6, x_182); +lean_ctor_set(x_209, 7, x_183); +lean_ctor_set(x_209, 8, x_184); +lean_ctor_set(x_209, 9, x_185); +lean_ctor_set(x_209, 10, x_205); +lean_ctor_set_uint8(x_209, sizeof(void*)*11, x_186); +lean_ctor_set_uint8(x_209, sizeof(void*)*11 + 1, x_187); +lean_ctor_set_uint8(x_209, sizeof(void*)*11 + 2, x_188); +lean_inc(x_196); +x_210 = l___private_Lean_Elab_Binders_13__propagateExpectedType(x_203, x_196, x_3, x_209, x_202); +if (lean_obj_tag(x_210) == 0) { -lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; -lean_dec(x_197); -lean_dec(x_195); -lean_dec(x_194); -lean_dec(x_193); -lean_dec(x_189); -lean_dec(x_184); -lean_dec(x_175); -lean_dec(x_2); -x_214 = lean_ctor_get(x_198, 0); +lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; +x_211 = lean_ctor_get(x_210, 0); +lean_inc(x_211); +x_212 = lean_ctor_get(x_210, 1); +lean_inc(x_212); +lean_dec(x_210); +x_213 = lean_ctor_get(x_211, 0); +lean_inc(x_213); +x_214 = lean_ctor_get(x_211, 2); lean_inc(x_214); -x_215 = lean_ctor_get(x_198, 1); +x_215 = lean_ctor_get(x_211, 3); lean_inc(x_215); -if (lean_is_exclusive(x_198)) { - lean_ctor_release(x_198, 0); - lean_ctor_release(x_198, 1); - x_216 = x_198; +if (lean_is_exclusive(x_211)) { + lean_ctor_release(x_211, 0); + lean_ctor_release(x_211, 1); + lean_ctor_release(x_211, 2); + lean_ctor_release(x_211, 3); + x_216 = x_211; } else { - lean_dec_ref(x_198); + lean_dec_ref(x_211); x_216 = lean_box(0); } +lean_inc(x_215); +lean_inc(x_214); +lean_inc(x_208); +lean_inc(x_213); if (lean_is_scalar(x_216)) { - x_217 = lean_alloc_ctor(1, 2, 0); + x_217 = lean_alloc_ctor(0, 4, 0); } else { x_217 = x_216; } -lean_ctor_set(x_217, 0, x_214); -lean_ctor_set(x_217, 1, x_215); -return x_217; -} -} -else +lean_ctor_set(x_217, 0, x_213); +lean_ctor_set(x_217, 1, x_208); +lean_ctor_set(x_217, 2, x_214); +lean_ctor_set(x_217, 3, x_215); +lean_inc(x_194); +x_218 = l_Lean_Elab_Term_isClass(x_196, x_194, x_212); +if (lean_obj_tag(x_218) == 0) { -lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; -lean_dec(x_189); -lean_dec(x_184); -lean_dec(x_177); -lean_dec(x_175); -lean_dec(x_16); -lean_dec(x_2); -x_218 = lean_ctor_get(x_190, 0); -lean_inc(x_218); -x_219 = lean_ctor_get(x_190, 1); +lean_object* x_219; +x_219 = lean_ctor_get(x_218, 0); lean_inc(x_219); -if (lean_is_exclusive(x_190)) { - lean_ctor_release(x_190, 0); - lean_ctor_release(x_190, 1); - x_220 = x_190; -} else { - lean_dec_ref(x_190); - x_220 = lean_box(0); -} -if (lean_is_scalar(x_220)) { - x_221 = lean_alloc_ctor(1, 2, 0); -} else { - x_221 = x_220; -} -lean_ctor_set(x_221, 0, x_218); -lean_ctor_set(x_221, 1, x_219); -return x_221; -} -} -else +if (lean_obj_tag(x_219) == 0) { -lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; -lean_dec(x_177); -lean_dec(x_175); -lean_dec(x_16); -lean_free_object(x_3); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_9); +lean_object* x_220; lean_object* x_221; lean_object* x_222; +lean_dec(x_215); +lean_dec(x_214); +lean_dec(x_213); +lean_dec(x_208); +lean_dec(x_203); +x_220 = lean_ctor_get(x_218, 1); +lean_inc(x_220); +lean_dec(x_218); +x_221 = lean_unsigned_to_nat(1u); +x_222 = lean_nat_add(x_2, x_221); lean_dec(x_2); -x_222 = lean_ctor_get(x_179, 0); -lean_inc(x_222); -x_223 = lean_ctor_get(x_179, 1); -lean_inc(x_223); -if (lean_is_exclusive(x_179)) { - lean_ctor_release(x_179, 0); - lean_ctor_release(x_179, 1); - x_224 = x_179; -} else { - lean_dec_ref(x_179); - x_224 = lean_box(0); -} -if (lean_is_scalar(x_224)) { - x_225 = lean_alloc_ctor(1, 2, 0); -} else { - x_225 = x_224; -} -lean_ctor_set(x_225, 0, x_222); -lean_ctor_set(x_225, 1, x_223); -return x_225; -} +x_2 = x_222; +x_3 = x_217; +x_4 = x_194; +x_5 = x_220; +goto _start; } else { -lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; -lean_dec(x_175); -lean_dec(x_16); -lean_free_object(x_3); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_9); +lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; +lean_dec(x_217); +x_224 = lean_ctor_get(x_218, 1); +lean_inc(x_224); +lean_dec(x_218); +x_225 = lean_ctor_get(x_219, 0); +lean_inc(x_225); +lean_dec(x_219); +x_226 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_226, 0, x_225); +lean_ctor_set(x_226, 1, x_203); +x_227 = lean_array_push(x_214, x_226); +x_228 = lean_unsigned_to_nat(1u); +x_229 = lean_nat_add(x_2, x_228); lean_dec(x_2); -x_226 = lean_ctor_get(x_176, 0); -lean_inc(x_226); -x_227 = lean_ctor_get(x_176, 1); -lean_inc(x_227); -if (lean_is_exclusive(x_176)) { - lean_ctor_release(x_176, 0); - lean_ctor_release(x_176, 1); - x_228 = x_176; -} else { - lean_dec_ref(x_176); - x_228 = lean_box(0); -} -if (lean_is_scalar(x_228)) { - x_229 = lean_alloc_ctor(1, 2, 0); -} else { - x_229 = x_228; -} -lean_ctor_set(x_229, 0, x_226); -lean_ctor_set(x_229, 1, x_227); -return x_229; -} -} -} -else -{ -lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; uint8_t x_244; uint8_t x_245; uint8_t x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; -x_230 = lean_ctor_get(x_3, 0); -x_231 = lean_ctor_get(x_3, 1); -x_232 = lean_ctor_get(x_3, 2); -x_233 = lean_ctor_get(x_3, 3); -lean_inc(x_233); +x_230 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_230, 0, x_213); +lean_ctor_set(x_230, 1, x_208); +lean_ctor_set(x_230, 2, x_227); +lean_ctor_set(x_230, 3, x_215); +x_231 = l_Lean_Elab_Term_resetSynthInstanceCache___rarg(x_224); +x_232 = lean_ctor_get(x_231, 1); lean_inc(x_232); -lean_inc(x_231); -lean_inc(x_230); -lean_dec(x_3); -x_234 = lean_ctor_get(x_9, 1); +lean_dec(x_231); +x_2 = x_229; +x_3 = x_230; +x_4 = x_194; +x_5 = x_232; +goto _start; +} +} +else +{ +lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; +lean_dec(x_217); +lean_dec(x_215); +lean_dec(x_214); +lean_dec(x_213); +lean_dec(x_208); +lean_dec(x_203); +lean_dec(x_194); +lean_dec(x_2); +x_234 = lean_ctor_get(x_218, 0); lean_inc(x_234); -x_235 = lean_ctor_get(x_4, 1); +x_235 = lean_ctor_get(x_218, 1); lean_inc(x_235); -x_236 = lean_ctor_get(x_4, 2); -lean_inc(x_236); -x_237 = lean_ctor_get(x_4, 3); -lean_inc(x_237); -x_238 = lean_ctor_get(x_4, 4); +if (lean_is_exclusive(x_218)) { + lean_ctor_release(x_218, 0); + lean_ctor_release(x_218, 1); + x_236 = x_218; +} else { + lean_dec_ref(x_218); + x_236 = lean_box(0); +} +if (lean_is_scalar(x_236)) { + x_237 = lean_alloc_ctor(1, 2, 0); +} else { + x_237 = x_236; +} +lean_ctor_set(x_237, 0, x_234); +lean_ctor_set(x_237, 1, x_235); +return x_237; +} +} +else +{ +lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; +lean_dec(x_208); +lean_dec(x_203); +lean_dec(x_196); +lean_dec(x_194); +lean_dec(x_2); +x_238 = lean_ctor_get(x_210, 0); lean_inc(x_238); -x_239 = lean_ctor_get(x_4, 5); +x_239 = lean_ctor_get(x_210, 1); lean_inc(x_239); -x_240 = lean_ctor_get(x_4, 6); -lean_inc(x_240); -x_241 = lean_ctor_get(x_4, 7); -lean_inc(x_241); -x_242 = lean_ctor_get(x_4, 8); +if (lean_is_exclusive(x_210)) { + lean_ctor_release(x_210, 0); + lean_ctor_release(x_210, 1); + x_240 = x_210; +} else { + lean_dec_ref(x_210); + x_240 = lean_box(0); +} +if (lean_is_scalar(x_240)) { + x_241 = lean_alloc_ctor(1, 2, 0); +} else { + x_241 = x_240; +} +lean_ctor_set(x_241, 0, x_238); +lean_ctor_set(x_241, 1, x_239); +return x_241; +} +} +else +{ +lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; +lean_dec(x_196); +lean_dec(x_194); +lean_dec(x_193); +lean_dec(x_185); +lean_dec(x_184); +lean_dec(x_183); +lean_dec(x_182); +lean_dec(x_181); +lean_dec(x_180); +lean_dec(x_179); +lean_dec(x_178); +lean_dec(x_177); +lean_free_object(x_3); +lean_dec(x_176); +lean_dec(x_175); +lean_dec(x_174); +lean_dec(x_173); +lean_dec(x_9); +lean_dec(x_2); +x_242 = lean_ctor_get(x_198, 0); lean_inc(x_242); -x_243 = lean_ctor_get(x_4, 9); +x_243 = lean_ctor_get(x_198, 1); lean_inc(x_243); -x_244 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); -x_245 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); -x_246 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 2); +if (lean_is_exclusive(x_198)) { + lean_ctor_release(x_198, 0); + lean_ctor_release(x_198, 1); + x_244 = x_198; +} else { + lean_dec_ref(x_198); + x_244 = lean_box(0); +} +if (lean_is_scalar(x_244)) { + x_245 = lean_alloc_ctor(1, 2, 0); +} else { + x_245 = x_244; +} +lean_ctor_set(x_245, 0, x_242); +lean_ctor_set(x_245, 1, x_243); +return x_245; +} +} +else +{ +lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; +lean_dec(x_194); +lean_dec(x_193); +lean_dec(x_185); +lean_dec(x_184); +lean_dec(x_183); +lean_dec(x_182); +lean_dec(x_181); +lean_dec(x_180); +lean_dec(x_179); +lean_dec(x_178); +lean_dec(x_177); +lean_free_object(x_3); +lean_dec(x_176); +lean_dec(x_175); +lean_dec(x_174); +lean_dec(x_173); +lean_dec(x_9); +lean_dec(x_2); +x_246 = lean_ctor_get(x_195, 0); +lean_inc(x_246); +x_247 = lean_ctor_get(x_195, 1); +lean_inc(x_247); +if (lean_is_exclusive(x_195)) { + lean_ctor_release(x_195, 0); + lean_ctor_release(x_195, 1); + x_248 = x_195; +} else { + lean_dec_ref(x_195); + 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; +} +} +} +else +{ +lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; uint8_t x_263; uint8_t x_264; uint8_t x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; +x_250 = lean_ctor_get(x_3, 0); +x_251 = lean_ctor_get(x_3, 1); +x_252 = lean_ctor_get(x_3, 2); +x_253 = lean_ctor_get(x_3, 3); +lean_inc(x_253); +lean_inc(x_252); +lean_inc(x_251); +lean_inc(x_250); +lean_dec(x_3); +x_254 = lean_ctor_get(x_4, 1); +lean_inc(x_254); +x_255 = lean_ctor_get(x_4, 2); +lean_inc(x_255); +x_256 = lean_ctor_get(x_4, 3); +lean_inc(x_256); +x_257 = lean_ctor_get(x_4, 4); +lean_inc(x_257); +x_258 = lean_ctor_get(x_4, 5); +lean_inc(x_258); +x_259 = lean_ctor_get(x_4, 6); +lean_inc(x_259); +x_260 = lean_ctor_get(x_4, 7); +lean_inc(x_260); +x_261 = lean_ctor_get(x_4, 8); +lean_inc(x_261); +x_262 = lean_ctor_get(x_4, 9); +lean_inc(x_262); +x_263 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_264 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_265 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); if (lean_is_exclusive(x_4)) { lean_ctor_release(x_4, 0); lean_ctor_release(x_4, 1); @@ -21013,332 +20912,373 @@ if (lean_is_exclusive(x_4)) { lean_ctor_release(x_4, 7); lean_ctor_release(x_4, 8); lean_ctor_release(x_4, 9); - x_247 = x_4; + lean_ctor_release(x_4, 10); + x_266 = x_4; } else { lean_dec_ref(x_4); - x_247 = lean_box(0); + x_266 = lean_box(0); } -x_248 = lean_ctor_get(x_10, 0); -lean_inc(x_248); -x_249 = lean_ctor_get(x_10, 3); -lean_inc(x_249); -x_250 = lean_ctor_get(x_10, 4); -lean_inc(x_250); +x_267 = lean_ctor_get(x_10, 0); +lean_inc(x_267); +x_268 = lean_ctor_get(x_10, 3); +lean_inc(x_268); +x_269 = lean_ctor_get(x_10, 4); +lean_inc(x_269); if (lean_is_exclusive(x_10)) { lean_ctor_release(x_10, 0); lean_ctor_release(x_10, 1); lean_ctor_release(x_10, 2); lean_ctor_release(x_10, 3); lean_ctor_release(x_10, 4); - x_251 = x_10; + x_270 = x_10; } else { lean_dec_ref(x_10); - x_251 = lean_box(0); + x_270 = lean_box(0); } -lean_inc(x_232); -lean_inc(x_231); -if (lean_is_scalar(x_251)) { - x_252 = lean_alloc_ctor(0, 5, 0); +lean_inc(x_252); +lean_inc(x_251); +if (lean_is_scalar(x_270)) { + x_271 = lean_alloc_ctor(0, 5, 0); } else { - x_252 = x_251; + x_271 = x_270; } -lean_ctor_set(x_252, 0, x_248); -lean_ctor_set(x_252, 1, x_231); -lean_ctor_set(x_252, 2, x_232); -lean_ctor_set(x_252, 3, x_249); -lean_ctor_set(x_252, 4, x_250); -if (lean_is_scalar(x_247)) { - x_253 = lean_alloc_ctor(0, 10, 3); -} else { - x_253 = x_247; -} -lean_ctor_set(x_253, 0, x_252); -lean_ctor_set(x_253, 1, x_235); -lean_ctor_set(x_253, 2, x_236); -lean_ctor_set(x_253, 3, x_237); -lean_ctor_set(x_253, 4, x_238); -lean_ctor_set(x_253, 5, x_239); -lean_ctor_set(x_253, 6, x_240); -lean_ctor_set(x_253, 7, x_241); -lean_ctor_set(x_253, 8, x_242); -lean_ctor_set(x_253, 9, x_243); -lean_ctor_set_uint8(x_253, sizeof(void*)*10, x_244); -lean_ctor_set_uint8(x_253, sizeof(void*)*10 + 1, x_245); -lean_ctor_set_uint8(x_253, sizeof(void*)*10 + 2, x_246); -lean_inc(x_253); -lean_inc(x_234); -x_254 = l_Lean_Elab_Term_elabType(x_234, x_253, x_5); -if (lean_obj_tag(x_254) == 0) -{ -lean_object* x_255; lean_object* x_256; lean_object* x_257; -x_255 = lean_ctor_get(x_254, 0); -lean_inc(x_255); -x_256 = lean_ctor_get(x_254, 1); -lean_inc(x_256); -lean_dec(x_254); -lean_inc(x_253); -lean_inc(x_255); -x_257 = l___private_Lean_Elab_Binders_12__checkNoOptAutoParam(x_234, x_255, x_253, x_256); -if (lean_obj_tag(x_257) == 0) -{ -lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; uint8_t x_267; lean_object* x_268; lean_object* x_269; -x_258 = lean_ctor_get(x_257, 1); -lean_inc(x_258); -lean_dec(x_257); -x_259 = l_Lean_Elab_Term_mkFreshFVarId___rarg(x_258); -x_260 = lean_ctor_get(x_259, 0); -lean_inc(x_260); -x_261 = lean_ctor_get(x_259, 1); -lean_inc(x_261); -lean_dec(x_259); -lean_inc(x_260); -x_262 = l_Lean_mkFVar(x_260); +lean_ctor_set(x_271, 0, x_267); +lean_ctor_set(x_271, 1, x_251); +lean_ctor_set(x_271, 2, x_252); +lean_ctor_set(x_271, 3, x_268); +lean_ctor_set(x_271, 4, x_269); +lean_inc(x_11); lean_inc(x_262); -x_263 = lean_array_push(x_230, x_262); -lean_inc(x_231); -x_264 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_264, 0, x_263); -lean_ctor_set(x_264, 1, x_231); -lean_ctor_set(x_264, 2, x_232); -lean_ctor_set(x_264, 3, x_233); -x_265 = lean_ctor_get(x_9, 0); -lean_inc(x_265); -x_266 = l_Lean_Syntax_getId(x_265); -x_267 = lean_ctor_get_uint8(x_9, sizeof(void*)*2); -lean_dec(x_9); +lean_inc(x_261); +lean_inc(x_260); +lean_inc(x_259); +lean_inc(x_258); +lean_inc(x_257); +lean_inc(x_256); lean_inc(x_255); -x_268 = lean_local_ctx_mk_local_decl(x_231, x_260, x_266, x_255, x_267); -lean_inc(x_253); -lean_inc(x_255); -x_269 = l___private_Lean_Elab_Binders_13__propagateExpectedType(x_265, x_262, x_255, x_264, x_253, x_261); -lean_dec(x_265); -if (lean_obj_tag(x_269) == 0) -{ -lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; -x_270 = lean_ctor_get(x_269, 0); -lean_inc(x_270); -x_271 = lean_ctor_get(x_269, 1); +lean_inc(x_254); lean_inc(x_271); -lean_dec(x_269); -x_272 = lean_ctor_get(x_270, 0); -lean_inc(x_272); -x_273 = lean_ctor_get(x_270, 2); -lean_inc(x_273); -x_274 = lean_ctor_get(x_270, 3); -lean_inc(x_274); -if (lean_is_exclusive(x_270)) { - lean_ctor_release(x_270, 0); - lean_ctor_release(x_270, 1); - lean_ctor_release(x_270, 2); - lean_ctor_release(x_270, 3); - x_275 = x_270; +if (lean_is_scalar(x_266)) { + x_272 = lean_alloc_ctor(0, 11, 3); } else { - lean_dec_ref(x_270); - x_275 = lean_box(0); + x_272 = x_266; } -lean_inc(x_274); -lean_inc(x_273); -lean_inc(x_268); +lean_ctor_set(x_272, 0, x_271); +lean_ctor_set(x_272, 1, x_254); +lean_ctor_set(x_272, 2, x_255); +lean_ctor_set(x_272, 3, x_256); +lean_ctor_set(x_272, 4, x_257); +lean_ctor_set(x_272, 5, x_258); +lean_ctor_set(x_272, 6, x_259); +lean_ctor_set(x_272, 7, x_260); +lean_ctor_set(x_272, 8, x_261); +lean_ctor_set(x_272, 9, x_262); +lean_ctor_set(x_272, 10, x_11); +lean_ctor_set_uint8(x_272, sizeof(void*)*11, x_263); +lean_ctor_set_uint8(x_272, sizeof(void*)*11 + 1, x_264); +lean_ctor_set_uint8(x_272, sizeof(void*)*11 + 2, x_265); lean_inc(x_272); -if (lean_is_scalar(x_275)) { - x_276 = lean_alloc_ctor(0, 4, 0); -} else { - x_276 = x_275; -} -lean_ctor_set(x_276, 0, x_272); -lean_ctor_set(x_276, 1, x_268); -lean_ctor_set(x_276, 2, x_273); -lean_ctor_set(x_276, 3, x_274); -lean_inc(x_253); -x_277 = l_Lean_Elab_Term_isClass(x_234, x_255, x_253, x_271); -lean_dec(x_234); -if (lean_obj_tag(x_277) == 0) +x_273 = l_Lean_Elab_Term_elabType(x_11, x_272, x_5); +if (lean_obj_tag(x_273) == 0) { -lean_object* x_278; -x_278 = lean_ctor_get(x_277, 0); -lean_inc(x_278); -if (lean_obj_tag(x_278) == 0) -{ -lean_object* x_279; lean_object* x_280; lean_object* x_281; -lean_dec(x_274); +lean_object* x_274; lean_object* x_275; lean_object* x_276; +x_274 = lean_ctor_get(x_273, 0); +lean_inc(x_274); +x_275 = lean_ctor_get(x_273, 1); +lean_inc(x_275); lean_dec(x_273); -lean_dec(x_272); -lean_dec(x_268); -lean_dec(x_262); -x_279 = lean_ctor_get(x_277, 1); +lean_inc(x_272); +lean_inc(x_274); +x_276 = l___private_Lean_Elab_Binders_12__checkNoOptAutoParam(x_274, x_272, x_275); +if (lean_obj_tag(x_276) == 0) +{ +lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; uint8_t x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; +x_277 = lean_ctor_get(x_276, 1); +lean_inc(x_277); +lean_dec(x_276); +x_278 = l_Lean_Elab_Term_mkFreshFVarId___rarg(x_277); +x_279 = lean_ctor_get(x_278, 0); lean_inc(x_279); -lean_dec(x_277); -x_280 = lean_unsigned_to_nat(1u); -x_281 = lean_nat_add(x_2, x_280); -lean_dec(x_2); -x_2 = x_281; -x_3 = x_276; -x_4 = x_253; -x_5 = x_279; -goto _start; -} -else -{ -lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; -lean_dec(x_276); -x_283 = lean_ctor_get(x_277, 1); -lean_inc(x_283); -lean_dec(x_277); -x_284 = lean_ctor_get(x_278, 0); -lean_inc(x_284); +x_280 = lean_ctor_get(x_278, 1); +lean_inc(x_280); lean_dec(x_278); -x_285 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_285, 0, x_284); -lean_ctor_set(x_285, 1, x_262); -x_286 = lean_array_push(x_273, x_285); -x_287 = lean_unsigned_to_nat(1u); -x_288 = lean_nat_add(x_2, x_287); -lean_dec(x_2); -x_289 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_289, 0, x_272); -lean_ctor_set(x_289, 1, x_268); -lean_ctor_set(x_289, 2, x_286); -lean_ctor_set(x_289, 3, x_274); -x_290 = l_Lean_Elab_Term_resetSynthInstanceCache___rarg(x_283); -x_291 = lean_ctor_get(x_290, 1); -lean_inc(x_291); -lean_dec(x_290); -x_2 = x_288; -x_3 = x_289; -x_4 = x_253; -x_5 = x_291; -goto _start; -} -} -else +lean_inc(x_279); +x_281 = l_Lean_mkFVar(x_279); +lean_inc(x_281); +x_282 = lean_array_push(x_250, x_281); +lean_inc(x_251); +x_283 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_283, 0, x_282); +lean_ctor_set(x_283, 1, x_251); +lean_ctor_set(x_283, 2, x_252); +lean_ctor_set(x_283, 3, x_253); +x_284 = lean_ctor_get(x_9, 0); +lean_inc(x_284); +x_285 = l_Lean_Syntax_getId(x_284); +x_286 = lean_ctor_get_uint8(x_9, sizeof(void*)*2); +lean_dec(x_9); +lean_inc(x_274); +x_287 = lean_local_ctx_mk_local_decl(x_251, x_279, x_285, x_274, x_286); +x_288 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_288, 0, x_271); +lean_ctor_set(x_288, 1, x_254); +lean_ctor_set(x_288, 2, x_255); +lean_ctor_set(x_288, 3, x_256); +lean_ctor_set(x_288, 4, x_257); +lean_ctor_set(x_288, 5, x_258); +lean_ctor_set(x_288, 6, x_259); +lean_ctor_set(x_288, 7, x_260); +lean_ctor_set(x_288, 8, x_261); +lean_ctor_set(x_288, 9, x_262); +lean_ctor_set(x_288, 10, x_284); +lean_ctor_set_uint8(x_288, sizeof(void*)*11, x_263); +lean_ctor_set_uint8(x_288, sizeof(void*)*11 + 1, x_264); +lean_ctor_set_uint8(x_288, sizeof(void*)*11 + 2, x_265); +lean_inc(x_274); +x_289 = l___private_Lean_Elab_Binders_13__propagateExpectedType(x_281, x_274, x_283, x_288, x_280); +if (lean_obj_tag(x_289) == 0) { -lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; -lean_dec(x_276); -lean_dec(x_274); -lean_dec(x_273); -lean_dec(x_272); -lean_dec(x_268); -lean_dec(x_262); -lean_dec(x_253); -lean_dec(x_2); -x_293 = lean_ctor_get(x_277, 0); +lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; +x_290 = lean_ctor_get(x_289, 0); +lean_inc(x_290); +x_291 = lean_ctor_get(x_289, 1); +lean_inc(x_291); +lean_dec(x_289); +x_292 = lean_ctor_get(x_290, 0); +lean_inc(x_292); +x_293 = lean_ctor_get(x_290, 2); lean_inc(x_293); -x_294 = lean_ctor_get(x_277, 1); +x_294 = lean_ctor_get(x_290, 3); lean_inc(x_294); -if (lean_is_exclusive(x_277)) { - lean_ctor_release(x_277, 0); - lean_ctor_release(x_277, 1); - x_295 = x_277; +if (lean_is_exclusive(x_290)) { + lean_ctor_release(x_290, 0); + lean_ctor_release(x_290, 1); + lean_ctor_release(x_290, 2); + lean_ctor_release(x_290, 3); + x_295 = x_290; } else { - lean_dec_ref(x_277); + lean_dec_ref(x_290); x_295 = lean_box(0); } +lean_inc(x_294); +lean_inc(x_293); +lean_inc(x_287); +lean_inc(x_292); if (lean_is_scalar(x_295)) { - x_296 = lean_alloc_ctor(1, 2, 0); + x_296 = lean_alloc_ctor(0, 4, 0); } else { x_296 = x_295; } -lean_ctor_set(x_296, 0, x_293); -lean_ctor_set(x_296, 1, x_294); -return x_296; -} -} -else +lean_ctor_set(x_296, 0, x_292); +lean_ctor_set(x_296, 1, x_287); +lean_ctor_set(x_296, 2, x_293); +lean_ctor_set(x_296, 3, x_294); +lean_inc(x_272); +x_297 = l_Lean_Elab_Term_isClass(x_274, x_272, x_291); +if (lean_obj_tag(x_297) == 0) { -lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; -lean_dec(x_268); -lean_dec(x_262); -lean_dec(x_255); -lean_dec(x_253); -lean_dec(x_234); -lean_dec(x_2); -x_297 = lean_ctor_get(x_269, 0); -lean_inc(x_297); -x_298 = lean_ctor_get(x_269, 1); +lean_object* x_298; +x_298 = lean_ctor_get(x_297, 0); lean_inc(x_298); -if (lean_is_exclusive(x_269)) { - lean_ctor_release(x_269, 0); - lean_ctor_release(x_269, 1); - x_299 = x_269; -} else { - lean_dec_ref(x_269); - x_299 = lean_box(0); +if (lean_obj_tag(x_298) == 0) +{ +lean_object* x_299; lean_object* x_300; lean_object* x_301; +lean_dec(x_294); +lean_dec(x_293); +lean_dec(x_292); +lean_dec(x_287); +lean_dec(x_281); +x_299 = lean_ctor_get(x_297, 1); +lean_inc(x_299); +lean_dec(x_297); +x_300 = lean_unsigned_to_nat(1u); +x_301 = lean_nat_add(x_2, x_300); +lean_dec(x_2); +x_2 = x_301; +x_3 = x_296; +x_4 = x_272; +x_5 = x_299; +goto _start; } -if (lean_is_scalar(x_299)) { - x_300 = lean_alloc_ctor(1, 2, 0); -} else { - x_300 = x_299; -} -lean_ctor_set(x_300, 0, x_297); -lean_ctor_set(x_300, 1, x_298); -return x_300; +else +{ +lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; +lean_dec(x_296); +x_303 = lean_ctor_get(x_297, 1); +lean_inc(x_303); +lean_dec(x_297); +x_304 = lean_ctor_get(x_298, 0); +lean_inc(x_304); +lean_dec(x_298); +x_305 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_305, 0, x_304); +lean_ctor_set(x_305, 1, x_281); +x_306 = lean_array_push(x_293, x_305); +x_307 = lean_unsigned_to_nat(1u); +x_308 = lean_nat_add(x_2, x_307); +lean_dec(x_2); +x_309 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_309, 0, x_292); +lean_ctor_set(x_309, 1, x_287); +lean_ctor_set(x_309, 2, x_306); +lean_ctor_set(x_309, 3, x_294); +x_310 = l_Lean_Elab_Term_resetSynthInstanceCache___rarg(x_303); +x_311 = lean_ctor_get(x_310, 1); +lean_inc(x_311); +lean_dec(x_310); +x_2 = x_308; +x_3 = x_309; +x_4 = x_272; +x_5 = x_311; +goto _start; } } else { -lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; +lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; +lean_dec(x_296); +lean_dec(x_294); +lean_dec(x_293); +lean_dec(x_292); +lean_dec(x_287); +lean_dec(x_281); +lean_dec(x_272); +lean_dec(x_2); +x_313 = lean_ctor_get(x_297, 0); +lean_inc(x_313); +x_314 = lean_ctor_get(x_297, 1); +lean_inc(x_314); +if (lean_is_exclusive(x_297)) { + lean_ctor_release(x_297, 0); + lean_ctor_release(x_297, 1); + x_315 = x_297; +} else { + lean_dec_ref(x_297); + x_315 = lean_box(0); +} +if (lean_is_scalar(x_315)) { + x_316 = lean_alloc_ctor(1, 2, 0); +} else { + x_316 = x_315; +} +lean_ctor_set(x_316, 0, x_313); +lean_ctor_set(x_316, 1, x_314); +return x_316; +} +} +else +{ +lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; +lean_dec(x_287); +lean_dec(x_281); +lean_dec(x_274); +lean_dec(x_272); +lean_dec(x_2); +x_317 = lean_ctor_get(x_289, 0); +lean_inc(x_317); +x_318 = lean_ctor_get(x_289, 1); +lean_inc(x_318); +if (lean_is_exclusive(x_289)) { + lean_ctor_release(x_289, 0); + lean_ctor_release(x_289, 1); + x_319 = x_289; +} else { + lean_dec_ref(x_289); + x_319 = lean_box(0); +} +if (lean_is_scalar(x_319)) { + x_320 = lean_alloc_ctor(1, 2, 0); +} else { + x_320 = x_319; +} +lean_ctor_set(x_320, 0, x_317); +lean_ctor_set(x_320, 1, x_318); +return x_320; +} +} +else +{ +lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; +lean_dec(x_274); +lean_dec(x_272); +lean_dec(x_271); +lean_dec(x_262); +lean_dec(x_261); +lean_dec(x_260); +lean_dec(x_259); +lean_dec(x_258); +lean_dec(x_257); +lean_dec(x_256); lean_dec(x_255); +lean_dec(x_254); lean_dec(x_253); -lean_dec(x_234); -lean_dec(x_233); -lean_dec(x_232); -lean_dec(x_231); -lean_dec(x_230); +lean_dec(x_252); +lean_dec(x_251); +lean_dec(x_250); lean_dec(x_9); lean_dec(x_2); -x_301 = lean_ctor_get(x_257, 0); -lean_inc(x_301); -x_302 = lean_ctor_get(x_257, 1); -lean_inc(x_302); -if (lean_is_exclusive(x_257)) { - lean_ctor_release(x_257, 0); - lean_ctor_release(x_257, 1); - x_303 = x_257; +x_321 = lean_ctor_get(x_276, 0); +lean_inc(x_321); +x_322 = lean_ctor_get(x_276, 1); +lean_inc(x_322); +if (lean_is_exclusive(x_276)) { + lean_ctor_release(x_276, 0); + lean_ctor_release(x_276, 1); + x_323 = x_276; } else { - lean_dec_ref(x_257); - x_303 = lean_box(0); + lean_dec_ref(x_276); + x_323 = lean_box(0); } -if (lean_is_scalar(x_303)) { - x_304 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_323)) { + x_324 = lean_alloc_ctor(1, 2, 0); } else { - x_304 = x_303; + x_324 = x_323; } -lean_ctor_set(x_304, 0, x_301); -lean_ctor_set(x_304, 1, x_302); -return x_304; +lean_ctor_set(x_324, 0, x_321); +lean_ctor_set(x_324, 1, x_322); +return x_324; } } else { -lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; +lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; +lean_dec(x_272); +lean_dec(x_271); +lean_dec(x_262); +lean_dec(x_261); +lean_dec(x_260); +lean_dec(x_259); +lean_dec(x_258); +lean_dec(x_257); +lean_dec(x_256); +lean_dec(x_255); +lean_dec(x_254); lean_dec(x_253); -lean_dec(x_234); -lean_dec(x_233); -lean_dec(x_232); -lean_dec(x_231); -lean_dec(x_230); +lean_dec(x_252); +lean_dec(x_251); +lean_dec(x_250); lean_dec(x_9); lean_dec(x_2); -x_305 = lean_ctor_get(x_254, 0); -lean_inc(x_305); -x_306 = lean_ctor_get(x_254, 1); -lean_inc(x_306); -if (lean_is_exclusive(x_254)) { - lean_ctor_release(x_254, 0); - lean_ctor_release(x_254, 1); - x_307 = x_254; +x_325 = lean_ctor_get(x_273, 0); +lean_inc(x_325); +x_326 = lean_ctor_get(x_273, 1); +lean_inc(x_326); +if (lean_is_exclusive(x_273)) { + lean_ctor_release(x_273, 0); + lean_ctor_release(x_273, 1); + x_327 = x_273; } else { - lean_dec_ref(x_254); - x_307 = lean_box(0); + lean_dec_ref(x_273); + x_327 = lean_box(0); } -if (lean_is_scalar(x_307)) { - x_308 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_327)) { + x_328 = lean_alloc_ctor(1, 2, 0); } else { - x_308 = x_307; + x_328 = x_327; } -lean_ctor_set(x_308, 0, x_305); -lean_ctor_set(x_308, 1, x_306); -return x_308; +lean_ctor_set(x_328, 0, x_325); +lean_ctor_set(x_328, 1, x_326); +return x_328; } } } @@ -21606,7 +21546,7 @@ return x_37; } else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; uint8_t x_49; uint8_t x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; uint8_t x_49; uint8_t x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; x_38 = lean_ctor_get(x_4, 0); x_39 = lean_ctor_get(x_4, 1); x_40 = lean_ctor_get(x_4, 2); @@ -21617,9 +21557,11 @@ x_44 = lean_ctor_get(x_4, 6); x_45 = lean_ctor_get(x_4, 7); x_46 = lean_ctor_get(x_4, 8); x_47 = lean_ctor_get(x_4, 9); -x_48 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); -x_49 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); -x_50 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 2); +x_48 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_49 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_50 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +x_51 = lean_ctor_get(x_4, 10); +lean_inc(x_51); lean_inc(x_47); lean_inc(x_46); lean_inc(x_45); @@ -21631,177 +21573,181 @@ lean_inc(x_40); lean_inc(x_39); lean_inc(x_38); lean_dec(x_4); -x_51 = lean_ctor_get(x_38, 0); -lean_inc(x_51); -x_52 = lean_ctor_get(x_38, 3); +x_52 = lean_ctor_get(x_38, 0); lean_inc(x_52); -x_53 = lean_ctor_get(x_38, 4); +x_53 = lean_ctor_get(x_38, 3); lean_inc(x_53); +x_54 = lean_ctor_get(x_38, 4); +lean_inc(x_54); if (lean_is_exclusive(x_38)) { lean_ctor_release(x_38, 0); lean_ctor_release(x_38, 1); lean_ctor_release(x_38, 2); lean_ctor_release(x_38, 3); lean_ctor_release(x_38, 4); - x_54 = x_38; + x_55 = x_38; } else { lean_dec_ref(x_38); - x_54 = lean_box(0); + x_55 = lean_box(0); } -if (lean_is_scalar(x_54)) { - x_55 = lean_alloc_ctor(0, 5, 0); +if (lean_is_scalar(x_55)) { + x_56 = lean_alloc_ctor(0, 5, 0); } else { - x_55 = x_54; + x_56 = x_55; } -lean_ctor_set(x_55, 0, x_51); -lean_ctor_set(x_55, 1, x_22); -lean_ctor_set(x_55, 2, x_23); -lean_ctor_set(x_55, 3, x_52); -lean_ctor_set(x_55, 4, x_53); -x_56 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_56, 0, x_55); -lean_ctor_set(x_56, 1, x_39); -lean_ctor_set(x_56, 2, x_40); -lean_ctor_set(x_56, 3, x_41); -lean_ctor_set(x_56, 4, x_42); -lean_ctor_set(x_56, 5, x_43); -lean_ctor_set(x_56, 6, x_44); -lean_ctor_set(x_56, 7, x_45); -lean_ctor_set(x_56, 8, x_46); -lean_ctor_set(x_56, 9, x_47); -lean_ctor_set_uint8(x_56, sizeof(void*)*10, x_48); -lean_ctor_set_uint8(x_56, sizeof(void*)*10 + 1, x_49); -lean_ctor_set_uint8(x_56, sizeof(void*)*10 + 2, x_50); -x_57 = lean_apply_4(x_3, x_21, x_24, x_56, x_18); -return x_57; +lean_ctor_set(x_56, 0, x_52); +lean_ctor_set(x_56, 1, x_22); +lean_ctor_set(x_56, 2, x_23); +lean_ctor_set(x_56, 3, x_53); +lean_ctor_set(x_56, 4, x_54); +x_57 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_57, 0, x_56); +lean_ctor_set(x_57, 1, x_39); +lean_ctor_set(x_57, 2, x_40); +lean_ctor_set(x_57, 3, x_41); +lean_ctor_set(x_57, 4, x_42); +lean_ctor_set(x_57, 5, x_43); +lean_ctor_set(x_57, 6, x_44); +lean_ctor_set(x_57, 7, x_45); +lean_ctor_set(x_57, 8, x_46); +lean_ctor_set(x_57, 9, x_47); +lean_ctor_set(x_57, 10, x_51); +lean_ctor_set_uint8(x_57, sizeof(void*)*11, x_48); +lean_ctor_set_uint8(x_57, sizeof(void*)*11 + 1, x_49); +lean_ctor_set_uint8(x_57, sizeof(void*)*11 + 2, x_50); +x_58 = lean_apply_4(x_3, x_21, x_24, x_57, x_18); +return x_58; } } else { -lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_162; lean_object* x_163; lean_object* x_164; uint8_t x_165; -x_58 = lean_ctor_get(x_18, 0); -lean_inc(x_58); -x_59 = lean_ctor_get(x_58, 2); +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_163; lean_object* x_164; lean_object* x_165; uint8_t x_166; +x_59 = lean_ctor_get(x_18, 0); lean_inc(x_59); -lean_dec(x_58); x_60 = lean_ctor_get(x_59, 2); lean_inc(x_60); lean_dec(x_59); -x_162 = l_Lean_Elab_Term_resetSynthInstanceCache___rarg(x_18); -x_163 = lean_ctor_get(x_4, 0); -lean_inc(x_163); -x_164 = lean_ctor_get(x_162, 1); +x_61 = lean_ctor_get(x_60, 2); +lean_inc(x_61); +lean_dec(x_60); +x_163 = l_Lean_Elab_Term_resetSynthInstanceCache___rarg(x_18); +x_164 = lean_ctor_get(x_4, 0); lean_inc(x_164); -lean_dec(x_162); -x_165 = !lean_is_exclusive(x_4); -if (x_165 == 0) +x_165 = lean_ctor_get(x_163, 1); +lean_inc(x_165); +lean_dec(x_163); +x_166 = !lean_is_exclusive(x_4); +if (x_166 == 0) { -lean_object* x_166; uint8_t x_167; -x_166 = lean_ctor_get(x_4, 0); -lean_dec(x_166); -x_167 = !lean_is_exclusive(x_163); -if (x_167 == 0) +lean_object* x_167; uint8_t x_168; +x_167 = lean_ctor_get(x_4, 0); +lean_dec(x_167); +x_168 = !lean_is_exclusive(x_164); +if (x_168 == 0) { -lean_object* x_168; lean_object* x_169; lean_object* x_170; -x_168 = lean_ctor_get(x_163, 2); -lean_dec(x_168); -x_169 = lean_ctor_get(x_163, 1); +lean_object* x_169; lean_object* x_170; lean_object* x_171; +x_169 = lean_ctor_get(x_164, 2); lean_dec(x_169); -lean_ctor_set(x_163, 2, x_23); -lean_ctor_set(x_163, 1, x_22); -x_170 = lean_apply_4(x_3, x_21, x_24, x_4, x_164); -if (lean_obj_tag(x_170) == 0) +x_170 = lean_ctor_get(x_164, 1); +lean_dec(x_170); +lean_ctor_set(x_164, 2, x_23); +lean_ctor_set(x_164, 1, x_22); +x_171 = lean_apply_4(x_3, x_21, x_24, x_4, x_165); +if (lean_obj_tag(x_171) == 0) { -lean_object* x_171; lean_object* x_172; lean_object* x_173; -x_171 = lean_ctor_get(x_170, 0); -lean_inc(x_171); -x_172 = lean_ctor_get(x_170, 1); +lean_object* x_172; lean_object* x_173; lean_object* x_174; +x_172 = lean_ctor_get(x_171, 0); lean_inc(x_172); -lean_dec(x_170); -x_173 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_173, 0, x_171); -x_61 = x_173; -x_62 = x_172; -goto block_161; +x_173 = lean_ctor_get(x_171, 1); +lean_inc(x_173); +lean_dec(x_171); +x_174 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_174, 0, x_172); +x_62 = x_174; +x_63 = x_173; +goto block_162; } else { -lean_object* x_174; lean_object* x_175; lean_object* x_176; -x_174 = lean_ctor_get(x_170, 0); -lean_inc(x_174); -x_175 = lean_ctor_get(x_170, 1); +lean_object* x_175; lean_object* x_176; lean_object* x_177; +x_175 = lean_ctor_get(x_171, 0); lean_inc(x_175); -lean_dec(x_170); -x_176 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_176, 0, x_174); -x_61 = x_176; -x_62 = x_175; -goto block_161; +x_176 = lean_ctor_get(x_171, 1); +lean_inc(x_176); +lean_dec(x_171); +x_177 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_177, 0, x_175); +x_62 = x_177; +x_63 = x_176; +goto block_162; } } else { -lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; -x_177 = lean_ctor_get(x_163, 0); -x_178 = lean_ctor_get(x_163, 3); -x_179 = lean_ctor_get(x_163, 4); +lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; +x_178 = lean_ctor_get(x_164, 0); +x_179 = lean_ctor_get(x_164, 3); +x_180 = lean_ctor_get(x_164, 4); +lean_inc(x_180); lean_inc(x_179); lean_inc(x_178); -lean_inc(x_177); -lean_dec(x_163); -x_180 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_180, 0, x_177); -lean_ctor_set(x_180, 1, x_22); -lean_ctor_set(x_180, 2, x_23); -lean_ctor_set(x_180, 3, x_178); -lean_ctor_set(x_180, 4, x_179); -lean_ctor_set(x_4, 0, x_180); -x_181 = lean_apply_4(x_3, x_21, x_24, x_4, x_164); -if (lean_obj_tag(x_181) == 0) +lean_dec(x_164); +x_181 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_181, 0, x_178); +lean_ctor_set(x_181, 1, x_22); +lean_ctor_set(x_181, 2, x_23); +lean_ctor_set(x_181, 3, x_179); +lean_ctor_set(x_181, 4, x_180); +lean_ctor_set(x_4, 0, x_181); +x_182 = lean_apply_4(x_3, x_21, x_24, x_4, x_165); +if (lean_obj_tag(x_182) == 0) { -lean_object* x_182; lean_object* x_183; lean_object* x_184; -x_182 = lean_ctor_get(x_181, 0); -lean_inc(x_182); -x_183 = lean_ctor_get(x_181, 1); +lean_object* x_183; lean_object* x_184; lean_object* x_185; +x_183 = lean_ctor_get(x_182, 0); lean_inc(x_183); -lean_dec(x_181); -x_184 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_184, 0, x_182); -x_61 = x_184; -x_62 = x_183; -goto block_161; +x_184 = lean_ctor_get(x_182, 1); +lean_inc(x_184); +lean_dec(x_182); +x_185 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_185, 0, x_183); +x_62 = x_185; +x_63 = x_184; +goto block_162; } else { -lean_object* x_185; lean_object* x_186; lean_object* x_187; -x_185 = lean_ctor_get(x_181, 0); -lean_inc(x_185); -x_186 = lean_ctor_get(x_181, 1); +lean_object* x_186; lean_object* x_187; lean_object* x_188; +x_186 = lean_ctor_get(x_182, 0); lean_inc(x_186); -lean_dec(x_181); -x_187 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_187, 0, x_185); -x_61 = x_187; -x_62 = x_186; -goto block_161; +x_187 = lean_ctor_get(x_182, 1); +lean_inc(x_187); +lean_dec(x_182); +x_188 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_188, 0, x_186); +x_62 = x_188; +x_63 = x_187; +goto block_162; } } } else { -lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; uint8_t x_197; uint8_t x_198; uint8_t x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; -x_188 = lean_ctor_get(x_4, 1); -x_189 = lean_ctor_get(x_4, 2); -x_190 = lean_ctor_get(x_4, 3); -x_191 = lean_ctor_get(x_4, 4); -x_192 = lean_ctor_get(x_4, 5); -x_193 = lean_ctor_get(x_4, 6); -x_194 = lean_ctor_get(x_4, 7); -x_195 = lean_ctor_get(x_4, 8); -x_196 = lean_ctor_get(x_4, 9); -x_197 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); -x_198 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); -x_199 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 2); +lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; uint8_t x_198; uint8_t x_199; uint8_t x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; +x_189 = lean_ctor_get(x_4, 1); +x_190 = lean_ctor_get(x_4, 2); +x_191 = lean_ctor_get(x_4, 3); +x_192 = lean_ctor_get(x_4, 4); +x_193 = lean_ctor_get(x_4, 5); +x_194 = lean_ctor_get(x_4, 6); +x_195 = lean_ctor_get(x_4, 7); +x_196 = lean_ctor_get(x_4, 8); +x_197 = lean_ctor_get(x_4, 9); +x_198 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_199 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_200 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +x_201 = lean_ctor_get(x_4, 10); +lean_inc(x_201); +lean_inc(x_197); lean_inc(x_196); lean_inc(x_195); lean_inc(x_194); @@ -21810,525 +21756,525 @@ lean_inc(x_192); lean_inc(x_191); lean_inc(x_190); lean_inc(x_189); -lean_inc(x_188); lean_dec(x_4); -x_200 = lean_ctor_get(x_163, 0); -lean_inc(x_200); -x_201 = lean_ctor_get(x_163, 3); -lean_inc(x_201); -x_202 = lean_ctor_get(x_163, 4); +x_202 = lean_ctor_get(x_164, 0); lean_inc(x_202); -if (lean_is_exclusive(x_163)) { - lean_ctor_release(x_163, 0); - lean_ctor_release(x_163, 1); - lean_ctor_release(x_163, 2); - lean_ctor_release(x_163, 3); - lean_ctor_release(x_163, 4); - x_203 = x_163; +x_203 = lean_ctor_get(x_164, 3); +lean_inc(x_203); +x_204 = lean_ctor_get(x_164, 4); +lean_inc(x_204); +if (lean_is_exclusive(x_164)) { + lean_ctor_release(x_164, 0); + lean_ctor_release(x_164, 1); + lean_ctor_release(x_164, 2); + lean_ctor_release(x_164, 3); + lean_ctor_release(x_164, 4); + x_205 = x_164; } else { - lean_dec_ref(x_163); - x_203 = lean_box(0); + lean_dec_ref(x_164); + x_205 = lean_box(0); } -if (lean_is_scalar(x_203)) { - x_204 = lean_alloc_ctor(0, 5, 0); +if (lean_is_scalar(x_205)) { + x_206 = lean_alloc_ctor(0, 5, 0); } else { - x_204 = x_203; + x_206 = x_205; } -lean_ctor_set(x_204, 0, x_200); -lean_ctor_set(x_204, 1, x_22); -lean_ctor_set(x_204, 2, x_23); -lean_ctor_set(x_204, 3, x_201); -lean_ctor_set(x_204, 4, x_202); -x_205 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_205, 0, x_204); -lean_ctor_set(x_205, 1, x_188); -lean_ctor_set(x_205, 2, x_189); -lean_ctor_set(x_205, 3, x_190); -lean_ctor_set(x_205, 4, x_191); -lean_ctor_set(x_205, 5, x_192); -lean_ctor_set(x_205, 6, x_193); -lean_ctor_set(x_205, 7, x_194); -lean_ctor_set(x_205, 8, x_195); -lean_ctor_set(x_205, 9, x_196); -lean_ctor_set_uint8(x_205, sizeof(void*)*10, x_197); -lean_ctor_set_uint8(x_205, sizeof(void*)*10 + 1, x_198); -lean_ctor_set_uint8(x_205, sizeof(void*)*10 + 2, x_199); -x_206 = lean_apply_4(x_3, x_21, x_24, x_205, x_164); -if (lean_obj_tag(x_206) == 0) +lean_ctor_set(x_206, 0, x_202); +lean_ctor_set(x_206, 1, x_22); +lean_ctor_set(x_206, 2, x_23); +lean_ctor_set(x_206, 3, x_203); +lean_ctor_set(x_206, 4, x_204); +x_207 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_207, 0, x_206); +lean_ctor_set(x_207, 1, x_189); +lean_ctor_set(x_207, 2, x_190); +lean_ctor_set(x_207, 3, x_191); +lean_ctor_set(x_207, 4, x_192); +lean_ctor_set(x_207, 5, x_193); +lean_ctor_set(x_207, 6, x_194); +lean_ctor_set(x_207, 7, x_195); +lean_ctor_set(x_207, 8, x_196); +lean_ctor_set(x_207, 9, x_197); +lean_ctor_set(x_207, 10, x_201); +lean_ctor_set_uint8(x_207, sizeof(void*)*11, x_198); +lean_ctor_set_uint8(x_207, sizeof(void*)*11 + 1, x_199); +lean_ctor_set_uint8(x_207, sizeof(void*)*11 + 2, x_200); +x_208 = lean_apply_4(x_3, x_21, x_24, x_207, x_165); +if (lean_obj_tag(x_208) == 0) { -lean_object* x_207; lean_object* x_208; lean_object* x_209; -x_207 = lean_ctor_get(x_206, 0); -lean_inc(x_207); -x_208 = lean_ctor_get(x_206, 1); -lean_inc(x_208); -lean_dec(x_206); -x_209 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_209, 0, x_207); -x_61 = x_209; -x_62 = x_208; -goto block_161; -} -else -{ -lean_object* x_210; lean_object* x_211; lean_object* x_212; -x_210 = lean_ctor_get(x_206, 0); +lean_object* x_209; lean_object* x_210; lean_object* x_211; +x_209 = lean_ctor_get(x_208, 0); +lean_inc(x_209); +x_210 = lean_ctor_get(x_208, 1); lean_inc(x_210); -x_211 = lean_ctor_get(x_206, 1); -lean_inc(x_211); -lean_dec(x_206); -x_212 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_212, 0, x_210); -x_61 = x_212; +lean_dec(x_208); +x_211 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_211, 0, x_209); x_62 = x_211; -goto block_161; -} -} -block_161: -{ -if (lean_obj_tag(x_61) == 0) -{ -lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t x_66; -x_63 = lean_ctor_get(x_62, 0); -lean_inc(x_63); -x_64 = lean_ctor_get(x_63, 2); -lean_inc(x_64); -x_65 = lean_ctor_get(x_61, 0); -lean_inc(x_65); -lean_dec(x_61); -x_66 = !lean_is_exclusive(x_62); -if (x_66 == 0) -{ -lean_object* x_67; uint8_t x_68; -x_67 = lean_ctor_get(x_62, 0); -lean_dec(x_67); -x_68 = !lean_is_exclusive(x_63); -if (x_68 == 0) -{ -lean_object* x_69; uint8_t x_70; -x_69 = lean_ctor_get(x_63, 2); -lean_dec(x_69); -x_70 = !lean_is_exclusive(x_64); -if (x_70 == 0) -{ -lean_object* x_71; lean_object* x_72; -x_71 = lean_ctor_get(x_64, 2); -lean_dec(x_71); -lean_ctor_set(x_64, 2, x_60); -if (lean_is_scalar(x_19)) { - x_72 = lean_alloc_ctor(1, 2, 0); -} else { - x_72 = x_19; - lean_ctor_set_tag(x_72, 1); -} -lean_ctor_set(x_72, 0, x_65); -lean_ctor_set(x_72, 1, x_62); -return x_72; +x_63 = x_210; +goto block_162; } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_73 = lean_ctor_get(x_64, 0); -x_74 = lean_ctor_get(x_64, 1); -x_75 = lean_ctor_get(x_64, 3); -x_76 = lean_ctor_get(x_64, 4); +lean_object* x_212; lean_object* x_213; lean_object* x_214; +x_212 = lean_ctor_get(x_208, 0); +lean_inc(x_212); +x_213 = lean_ctor_get(x_208, 1); +lean_inc(x_213); +lean_dec(x_208); +x_214 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_214, 0, x_212); +x_62 = x_214; +x_63 = x_213; +goto block_162; +} +} +block_162: +{ +if (lean_obj_tag(x_62) == 0) +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; +x_64 = lean_ctor_get(x_63, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_64, 2); +lean_inc(x_65); +x_66 = lean_ctor_get(x_62, 0); +lean_inc(x_66); +lean_dec(x_62); +x_67 = !lean_is_exclusive(x_63); +if (x_67 == 0) +{ +lean_object* x_68; uint8_t x_69; +x_68 = lean_ctor_get(x_63, 0); +lean_dec(x_68); +x_69 = !lean_is_exclusive(x_64); +if (x_69 == 0) +{ +lean_object* x_70; uint8_t x_71; +x_70 = lean_ctor_get(x_64, 2); +lean_dec(x_70); +x_71 = !lean_is_exclusive(x_65); +if (x_71 == 0) +{ +lean_object* x_72; lean_object* x_73; +x_72 = lean_ctor_get(x_65, 2); +lean_dec(x_72); +lean_ctor_set(x_65, 2, x_61); +if (lean_is_scalar(x_19)) { + x_73 = lean_alloc_ctor(1, 2, 0); +} else { + x_73 = x_19; + lean_ctor_set_tag(x_73, 1); +} +lean_ctor_set(x_73, 0, x_66); +lean_ctor_set(x_73, 1, x_63); +return x_73; +} +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; +x_74 = lean_ctor_get(x_65, 0); +x_75 = lean_ctor_get(x_65, 1); +x_76 = lean_ctor_get(x_65, 3); +x_77 = lean_ctor_get(x_65, 4); +lean_inc(x_77); lean_inc(x_76); lean_inc(x_75); lean_inc(x_74); -lean_inc(x_73); -lean_dec(x_64); -x_77 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_77, 0, x_73); -lean_ctor_set(x_77, 1, x_74); -lean_ctor_set(x_77, 2, x_60); -lean_ctor_set(x_77, 3, x_75); -lean_ctor_set(x_77, 4, x_76); -lean_ctor_set(x_63, 2, x_77); +lean_dec(x_65); +x_78 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_78, 0, x_74); +lean_ctor_set(x_78, 1, x_75); +lean_ctor_set(x_78, 2, x_61); +lean_ctor_set(x_78, 3, x_76); +lean_ctor_set(x_78, 4, x_77); +lean_ctor_set(x_64, 2, x_78); if (lean_is_scalar(x_19)) { - x_78 = lean_alloc_ctor(1, 2, 0); + x_79 = lean_alloc_ctor(1, 2, 0); } else { - x_78 = x_19; - lean_ctor_set_tag(x_78, 1); + x_79 = x_19; + lean_ctor_set_tag(x_79, 1); } -lean_ctor_set(x_78, 0, x_65); -lean_ctor_set(x_78, 1, x_62); -return x_78; +lean_ctor_set(x_79, 0, x_66); +lean_ctor_set(x_79, 1, x_63); +return x_79; } } else { -lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_79 = lean_ctor_get(x_63, 0); -x_80 = lean_ctor_get(x_63, 1); -x_81 = lean_ctor_get(x_63, 3); -x_82 = lean_ctor_get(x_63, 4); -x_83 = lean_ctor_get(x_63, 5); +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; +x_80 = lean_ctor_get(x_64, 0); +x_81 = lean_ctor_get(x_64, 1); +x_82 = lean_ctor_get(x_64, 3); +x_83 = lean_ctor_get(x_64, 4); +x_84 = lean_ctor_get(x_64, 5); +lean_inc(x_84); lean_inc(x_83); lean_inc(x_82); lean_inc(x_81); lean_inc(x_80); -lean_inc(x_79); -lean_dec(x_63); -x_84 = lean_ctor_get(x_64, 0); -lean_inc(x_84); -x_85 = lean_ctor_get(x_64, 1); +lean_dec(x_64); +x_85 = lean_ctor_get(x_65, 0); lean_inc(x_85); -x_86 = lean_ctor_get(x_64, 3); +x_86 = lean_ctor_get(x_65, 1); lean_inc(x_86); -x_87 = lean_ctor_get(x_64, 4); +x_87 = lean_ctor_get(x_65, 3); lean_inc(x_87); -if (lean_is_exclusive(x_64)) { - lean_ctor_release(x_64, 0); - lean_ctor_release(x_64, 1); - lean_ctor_release(x_64, 2); - lean_ctor_release(x_64, 3); - lean_ctor_release(x_64, 4); - x_88 = x_64; +x_88 = lean_ctor_get(x_65, 4); +lean_inc(x_88); +if (lean_is_exclusive(x_65)) { + lean_ctor_release(x_65, 0); + lean_ctor_release(x_65, 1); + lean_ctor_release(x_65, 2); + lean_ctor_release(x_65, 3); + lean_ctor_release(x_65, 4); + x_89 = x_65; } else { - lean_dec_ref(x_64); - x_88 = lean_box(0); + lean_dec_ref(x_65); + x_89 = lean_box(0); } -if (lean_is_scalar(x_88)) { - x_89 = lean_alloc_ctor(0, 5, 0); +if (lean_is_scalar(x_89)) { + x_90 = lean_alloc_ctor(0, 5, 0); } else { - x_89 = x_88; + x_90 = x_89; } -lean_ctor_set(x_89, 0, x_84); -lean_ctor_set(x_89, 1, x_85); -lean_ctor_set(x_89, 2, x_60); -lean_ctor_set(x_89, 3, x_86); -lean_ctor_set(x_89, 4, x_87); -x_90 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_90, 0, x_79); -lean_ctor_set(x_90, 1, x_80); -lean_ctor_set(x_90, 2, x_89); -lean_ctor_set(x_90, 3, x_81); -lean_ctor_set(x_90, 4, x_82); -lean_ctor_set(x_90, 5, x_83); -lean_ctor_set(x_62, 0, x_90); +lean_ctor_set(x_90, 0, x_85); +lean_ctor_set(x_90, 1, x_86); +lean_ctor_set(x_90, 2, x_61); +lean_ctor_set(x_90, 3, x_87); +lean_ctor_set(x_90, 4, x_88); +x_91 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_91, 0, x_80); +lean_ctor_set(x_91, 1, x_81); +lean_ctor_set(x_91, 2, x_90); +lean_ctor_set(x_91, 3, x_82); +lean_ctor_set(x_91, 4, x_83); +lean_ctor_set(x_91, 5, x_84); +lean_ctor_set(x_63, 0, x_91); if (lean_is_scalar(x_19)) { - x_91 = lean_alloc_ctor(1, 2, 0); + x_92 = lean_alloc_ctor(1, 2, 0); } else { - x_91 = x_19; - lean_ctor_set_tag(x_91, 1); + x_92 = x_19; + lean_ctor_set_tag(x_92, 1); } -lean_ctor_set(x_91, 0, x_65); -lean_ctor_set(x_91, 1, x_62); -return x_91; +lean_ctor_set(x_92, 0, x_66); +lean_ctor_set(x_92, 1, x_63); +return x_92; } } else { -lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; -x_92 = lean_ctor_get(x_62, 1); -x_93 = lean_ctor_get(x_62, 2); -x_94 = lean_ctor_get(x_62, 3); -x_95 = lean_ctor_get(x_62, 4); -x_96 = lean_ctor_get(x_62, 5); +lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; +x_93 = lean_ctor_get(x_63, 1); +x_94 = lean_ctor_get(x_63, 2); +x_95 = lean_ctor_get(x_63, 3); +x_96 = lean_ctor_get(x_63, 4); +x_97 = lean_ctor_get(x_63, 5); +lean_inc(x_97); lean_inc(x_96); lean_inc(x_95); lean_inc(x_94); lean_inc(x_93); -lean_inc(x_92); -lean_dec(x_62); -x_97 = lean_ctor_get(x_63, 0); -lean_inc(x_97); -x_98 = lean_ctor_get(x_63, 1); +lean_dec(x_63); +x_98 = lean_ctor_get(x_64, 0); lean_inc(x_98); -x_99 = lean_ctor_get(x_63, 3); +x_99 = lean_ctor_get(x_64, 1); lean_inc(x_99); -x_100 = lean_ctor_get(x_63, 4); +x_100 = lean_ctor_get(x_64, 3); lean_inc(x_100); -x_101 = lean_ctor_get(x_63, 5); +x_101 = lean_ctor_get(x_64, 4); lean_inc(x_101); -if (lean_is_exclusive(x_63)) { - lean_ctor_release(x_63, 0); - lean_ctor_release(x_63, 1); - lean_ctor_release(x_63, 2); - lean_ctor_release(x_63, 3); - lean_ctor_release(x_63, 4); - lean_ctor_release(x_63, 5); - x_102 = x_63; -} else { - lean_dec_ref(x_63); - x_102 = lean_box(0); -} -x_103 = lean_ctor_get(x_64, 0); -lean_inc(x_103); -x_104 = lean_ctor_get(x_64, 1); -lean_inc(x_104); -x_105 = lean_ctor_get(x_64, 3); -lean_inc(x_105); -x_106 = lean_ctor_get(x_64, 4); -lean_inc(x_106); +x_102 = lean_ctor_get(x_64, 5); +lean_inc(x_102); if (lean_is_exclusive(x_64)) { lean_ctor_release(x_64, 0); lean_ctor_release(x_64, 1); lean_ctor_release(x_64, 2); lean_ctor_release(x_64, 3); lean_ctor_release(x_64, 4); - x_107 = x_64; + lean_ctor_release(x_64, 5); + x_103 = x_64; } else { lean_dec_ref(x_64); - x_107 = lean_box(0); + x_103 = lean_box(0); } -if (lean_is_scalar(x_107)) { - x_108 = lean_alloc_ctor(0, 5, 0); +x_104 = lean_ctor_get(x_65, 0); +lean_inc(x_104); +x_105 = lean_ctor_get(x_65, 1); +lean_inc(x_105); +x_106 = lean_ctor_get(x_65, 3); +lean_inc(x_106); +x_107 = lean_ctor_get(x_65, 4); +lean_inc(x_107); +if (lean_is_exclusive(x_65)) { + lean_ctor_release(x_65, 0); + lean_ctor_release(x_65, 1); + lean_ctor_release(x_65, 2); + lean_ctor_release(x_65, 3); + lean_ctor_release(x_65, 4); + x_108 = x_65; } else { - x_108 = x_107; + lean_dec_ref(x_65); + x_108 = lean_box(0); } -lean_ctor_set(x_108, 0, x_103); -lean_ctor_set(x_108, 1, x_104); -lean_ctor_set(x_108, 2, x_60); -lean_ctor_set(x_108, 3, x_105); -lean_ctor_set(x_108, 4, x_106); -if (lean_is_scalar(x_102)) { - x_109 = lean_alloc_ctor(0, 6, 0); +if (lean_is_scalar(x_108)) { + x_109 = lean_alloc_ctor(0, 5, 0); } else { - x_109 = x_102; + x_109 = x_108; } -lean_ctor_set(x_109, 0, x_97); -lean_ctor_set(x_109, 1, x_98); -lean_ctor_set(x_109, 2, x_108); -lean_ctor_set(x_109, 3, x_99); -lean_ctor_set(x_109, 4, x_100); -lean_ctor_set(x_109, 5, x_101); -x_110 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_110, 0, x_109); -lean_ctor_set(x_110, 1, x_92); -lean_ctor_set(x_110, 2, x_93); -lean_ctor_set(x_110, 3, x_94); -lean_ctor_set(x_110, 4, x_95); -lean_ctor_set(x_110, 5, x_96); +lean_ctor_set(x_109, 0, x_104); +lean_ctor_set(x_109, 1, x_105); +lean_ctor_set(x_109, 2, x_61); +lean_ctor_set(x_109, 3, x_106); +lean_ctor_set(x_109, 4, x_107); +if (lean_is_scalar(x_103)) { + x_110 = lean_alloc_ctor(0, 6, 0); +} else { + x_110 = x_103; +} +lean_ctor_set(x_110, 0, x_98); +lean_ctor_set(x_110, 1, x_99); +lean_ctor_set(x_110, 2, x_109); +lean_ctor_set(x_110, 3, x_100); +lean_ctor_set(x_110, 4, x_101); +lean_ctor_set(x_110, 5, x_102); +x_111 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_93); +lean_ctor_set(x_111, 2, x_94); +lean_ctor_set(x_111, 3, x_95); +lean_ctor_set(x_111, 4, x_96); +lean_ctor_set(x_111, 5, x_97); if (lean_is_scalar(x_19)) { - x_111 = lean_alloc_ctor(1, 2, 0); + x_112 = lean_alloc_ctor(1, 2, 0); } else { - x_111 = x_19; - lean_ctor_set_tag(x_111, 1); + x_112 = x_19; + lean_ctor_set_tag(x_112, 1); } -lean_ctor_set(x_111, 0, x_65); -lean_ctor_set(x_111, 1, x_110); -return x_111; +lean_ctor_set(x_112, 0, x_66); +lean_ctor_set(x_112, 1, x_111); +return x_112; } } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; -x_112 = lean_ctor_get(x_62, 0); -lean_inc(x_112); -x_113 = lean_ctor_get(x_112, 2); +lean_object* x_113; lean_object* x_114; lean_object* x_115; uint8_t x_116; +x_113 = lean_ctor_get(x_63, 0); lean_inc(x_113); -x_114 = lean_ctor_get(x_61, 0); +x_114 = lean_ctor_get(x_113, 2); lean_inc(x_114); -lean_dec(x_61); -x_115 = !lean_is_exclusive(x_62); -if (x_115 == 0) +x_115 = lean_ctor_get(x_62, 0); +lean_inc(x_115); +lean_dec(x_62); +x_116 = !lean_is_exclusive(x_63); +if (x_116 == 0) { -lean_object* x_116; uint8_t x_117; -x_116 = lean_ctor_get(x_62, 0); -lean_dec(x_116); -x_117 = !lean_is_exclusive(x_112); -if (x_117 == 0) +lean_object* x_117; uint8_t x_118; +x_117 = lean_ctor_get(x_63, 0); +lean_dec(x_117); +x_118 = !lean_is_exclusive(x_113); +if (x_118 == 0) { -lean_object* x_118; uint8_t x_119; -x_118 = lean_ctor_get(x_112, 2); -lean_dec(x_118); -x_119 = !lean_is_exclusive(x_113); -if (x_119 == 0) +lean_object* x_119; uint8_t x_120; +x_119 = lean_ctor_get(x_113, 2); +lean_dec(x_119); +x_120 = !lean_is_exclusive(x_114); +if (x_120 == 0) { -lean_object* x_120; lean_object* x_121; -x_120 = lean_ctor_get(x_113, 2); -lean_dec(x_120); -lean_ctor_set(x_113, 2, x_60); +lean_object* x_121; lean_object* x_122; +x_121 = lean_ctor_get(x_114, 2); +lean_dec(x_121); +lean_ctor_set(x_114, 2, x_61); if (lean_is_scalar(x_19)) { - x_121 = lean_alloc_ctor(0, 2, 0); + x_122 = lean_alloc_ctor(0, 2, 0); } else { - x_121 = x_19; + x_122 = x_19; } -lean_ctor_set(x_121, 0, x_114); -lean_ctor_set(x_121, 1, x_62); -return x_121; +lean_ctor_set(x_122, 0, x_115); +lean_ctor_set(x_122, 1, x_63); +return x_122; } else { -lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; -x_122 = lean_ctor_get(x_113, 0); -x_123 = lean_ctor_get(x_113, 1); -x_124 = lean_ctor_get(x_113, 3); -x_125 = lean_ctor_get(x_113, 4); +lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; +x_123 = lean_ctor_get(x_114, 0); +x_124 = lean_ctor_get(x_114, 1); +x_125 = lean_ctor_get(x_114, 3); +x_126 = lean_ctor_get(x_114, 4); +lean_inc(x_126); lean_inc(x_125); lean_inc(x_124); lean_inc(x_123); -lean_inc(x_122); -lean_dec(x_113); -x_126 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_126, 0, x_122); -lean_ctor_set(x_126, 1, x_123); -lean_ctor_set(x_126, 2, x_60); -lean_ctor_set(x_126, 3, x_124); -lean_ctor_set(x_126, 4, x_125); -lean_ctor_set(x_112, 2, x_126); +lean_dec(x_114); +x_127 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_127, 0, x_123); +lean_ctor_set(x_127, 1, x_124); +lean_ctor_set(x_127, 2, x_61); +lean_ctor_set(x_127, 3, x_125); +lean_ctor_set(x_127, 4, x_126); +lean_ctor_set(x_113, 2, x_127); if (lean_is_scalar(x_19)) { - x_127 = lean_alloc_ctor(0, 2, 0); + x_128 = lean_alloc_ctor(0, 2, 0); } else { - x_127 = x_19; + x_128 = x_19; } -lean_ctor_set(x_127, 0, x_114); -lean_ctor_set(x_127, 1, x_62); -return x_127; +lean_ctor_set(x_128, 0, x_115); +lean_ctor_set(x_128, 1, x_63); +return x_128; } } else { -lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; -x_128 = lean_ctor_get(x_112, 0); -x_129 = lean_ctor_get(x_112, 1); -x_130 = lean_ctor_get(x_112, 3); -x_131 = lean_ctor_get(x_112, 4); -x_132 = lean_ctor_get(x_112, 5); +lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; +x_129 = lean_ctor_get(x_113, 0); +x_130 = lean_ctor_get(x_113, 1); +x_131 = lean_ctor_get(x_113, 3); +x_132 = lean_ctor_get(x_113, 4); +x_133 = lean_ctor_get(x_113, 5); +lean_inc(x_133); lean_inc(x_132); lean_inc(x_131); lean_inc(x_130); lean_inc(x_129); -lean_inc(x_128); -lean_dec(x_112); -x_133 = lean_ctor_get(x_113, 0); -lean_inc(x_133); -x_134 = lean_ctor_get(x_113, 1); +lean_dec(x_113); +x_134 = lean_ctor_get(x_114, 0); lean_inc(x_134); -x_135 = lean_ctor_get(x_113, 3); +x_135 = lean_ctor_get(x_114, 1); lean_inc(x_135); -x_136 = lean_ctor_get(x_113, 4); +x_136 = lean_ctor_get(x_114, 3); lean_inc(x_136); -if (lean_is_exclusive(x_113)) { - lean_ctor_release(x_113, 0); - lean_ctor_release(x_113, 1); - lean_ctor_release(x_113, 2); - lean_ctor_release(x_113, 3); - lean_ctor_release(x_113, 4); - x_137 = x_113; +x_137 = lean_ctor_get(x_114, 4); +lean_inc(x_137); +if (lean_is_exclusive(x_114)) { + lean_ctor_release(x_114, 0); + lean_ctor_release(x_114, 1); + lean_ctor_release(x_114, 2); + lean_ctor_release(x_114, 3); + lean_ctor_release(x_114, 4); + x_138 = x_114; } else { - lean_dec_ref(x_113); - x_137 = lean_box(0); + lean_dec_ref(x_114); + x_138 = lean_box(0); } -if (lean_is_scalar(x_137)) { - x_138 = lean_alloc_ctor(0, 5, 0); +if (lean_is_scalar(x_138)) { + x_139 = lean_alloc_ctor(0, 5, 0); } else { - x_138 = x_137; + x_139 = x_138; } -lean_ctor_set(x_138, 0, x_133); -lean_ctor_set(x_138, 1, x_134); -lean_ctor_set(x_138, 2, x_60); -lean_ctor_set(x_138, 3, x_135); -lean_ctor_set(x_138, 4, x_136); -x_139 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_139, 0, x_128); -lean_ctor_set(x_139, 1, x_129); -lean_ctor_set(x_139, 2, x_138); -lean_ctor_set(x_139, 3, x_130); -lean_ctor_set(x_139, 4, x_131); -lean_ctor_set(x_139, 5, x_132); -lean_ctor_set(x_62, 0, x_139); +lean_ctor_set(x_139, 0, x_134); +lean_ctor_set(x_139, 1, x_135); +lean_ctor_set(x_139, 2, x_61); +lean_ctor_set(x_139, 3, x_136); +lean_ctor_set(x_139, 4, x_137); +x_140 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_140, 0, x_129); +lean_ctor_set(x_140, 1, x_130); +lean_ctor_set(x_140, 2, x_139); +lean_ctor_set(x_140, 3, x_131); +lean_ctor_set(x_140, 4, x_132); +lean_ctor_set(x_140, 5, x_133); +lean_ctor_set(x_63, 0, x_140); if (lean_is_scalar(x_19)) { - x_140 = lean_alloc_ctor(0, 2, 0); + x_141 = lean_alloc_ctor(0, 2, 0); } else { - x_140 = x_19; + x_141 = x_19; } -lean_ctor_set(x_140, 0, x_114); -lean_ctor_set(x_140, 1, x_62); -return x_140; +lean_ctor_set(x_141, 0, x_115); +lean_ctor_set(x_141, 1, x_63); +return x_141; } } else { -lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; -x_141 = lean_ctor_get(x_62, 1); -x_142 = lean_ctor_get(x_62, 2); -x_143 = lean_ctor_get(x_62, 3); -x_144 = lean_ctor_get(x_62, 4); -x_145 = lean_ctor_get(x_62, 5); +lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; +x_142 = lean_ctor_get(x_63, 1); +x_143 = lean_ctor_get(x_63, 2); +x_144 = lean_ctor_get(x_63, 3); +x_145 = lean_ctor_get(x_63, 4); +x_146 = lean_ctor_get(x_63, 5); +lean_inc(x_146); lean_inc(x_145); lean_inc(x_144); lean_inc(x_143); lean_inc(x_142); -lean_inc(x_141); -lean_dec(x_62); -x_146 = lean_ctor_get(x_112, 0); -lean_inc(x_146); -x_147 = lean_ctor_get(x_112, 1); +lean_dec(x_63); +x_147 = lean_ctor_get(x_113, 0); lean_inc(x_147); -x_148 = lean_ctor_get(x_112, 3); +x_148 = lean_ctor_get(x_113, 1); lean_inc(x_148); -x_149 = lean_ctor_get(x_112, 4); +x_149 = lean_ctor_get(x_113, 3); lean_inc(x_149); -x_150 = lean_ctor_get(x_112, 5); +x_150 = lean_ctor_get(x_113, 4); lean_inc(x_150); -if (lean_is_exclusive(x_112)) { - lean_ctor_release(x_112, 0); - lean_ctor_release(x_112, 1); - lean_ctor_release(x_112, 2); - lean_ctor_release(x_112, 3); - lean_ctor_release(x_112, 4); - lean_ctor_release(x_112, 5); - x_151 = x_112; -} else { - lean_dec_ref(x_112); - x_151 = lean_box(0); -} -x_152 = lean_ctor_get(x_113, 0); -lean_inc(x_152); -x_153 = lean_ctor_get(x_113, 1); -lean_inc(x_153); -x_154 = lean_ctor_get(x_113, 3); -lean_inc(x_154); -x_155 = lean_ctor_get(x_113, 4); -lean_inc(x_155); +x_151 = lean_ctor_get(x_113, 5); +lean_inc(x_151); if (lean_is_exclusive(x_113)) { lean_ctor_release(x_113, 0); lean_ctor_release(x_113, 1); lean_ctor_release(x_113, 2); lean_ctor_release(x_113, 3); lean_ctor_release(x_113, 4); - x_156 = x_113; + lean_ctor_release(x_113, 5); + x_152 = x_113; } else { lean_dec_ref(x_113); - x_156 = lean_box(0); + x_152 = lean_box(0); } -if (lean_is_scalar(x_156)) { - x_157 = lean_alloc_ctor(0, 5, 0); +x_153 = lean_ctor_get(x_114, 0); +lean_inc(x_153); +x_154 = lean_ctor_get(x_114, 1); +lean_inc(x_154); +x_155 = lean_ctor_get(x_114, 3); +lean_inc(x_155); +x_156 = lean_ctor_get(x_114, 4); +lean_inc(x_156); +if (lean_is_exclusive(x_114)) { + lean_ctor_release(x_114, 0); + lean_ctor_release(x_114, 1); + lean_ctor_release(x_114, 2); + lean_ctor_release(x_114, 3); + lean_ctor_release(x_114, 4); + x_157 = x_114; } else { - x_157 = x_156; + lean_dec_ref(x_114); + x_157 = lean_box(0); } -lean_ctor_set(x_157, 0, x_152); -lean_ctor_set(x_157, 1, x_153); -lean_ctor_set(x_157, 2, x_60); -lean_ctor_set(x_157, 3, x_154); -lean_ctor_set(x_157, 4, x_155); -if (lean_is_scalar(x_151)) { - x_158 = lean_alloc_ctor(0, 6, 0); +if (lean_is_scalar(x_157)) { + x_158 = lean_alloc_ctor(0, 5, 0); } else { - x_158 = x_151; + x_158 = x_157; } -lean_ctor_set(x_158, 0, x_146); -lean_ctor_set(x_158, 1, x_147); -lean_ctor_set(x_158, 2, x_157); -lean_ctor_set(x_158, 3, x_148); -lean_ctor_set(x_158, 4, x_149); -lean_ctor_set(x_158, 5, x_150); -x_159 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_159, 0, x_158); -lean_ctor_set(x_159, 1, x_141); -lean_ctor_set(x_159, 2, x_142); -lean_ctor_set(x_159, 3, x_143); -lean_ctor_set(x_159, 4, x_144); -lean_ctor_set(x_159, 5, x_145); +lean_ctor_set(x_158, 0, x_153); +lean_ctor_set(x_158, 1, x_154); +lean_ctor_set(x_158, 2, x_61); +lean_ctor_set(x_158, 3, x_155); +lean_ctor_set(x_158, 4, x_156); +if (lean_is_scalar(x_152)) { + x_159 = lean_alloc_ctor(0, 6, 0); +} else { + x_159 = x_152; +} +lean_ctor_set(x_159, 0, x_147); +lean_ctor_set(x_159, 1, x_148); +lean_ctor_set(x_159, 2, x_158); +lean_ctor_set(x_159, 3, x_149); +lean_ctor_set(x_159, 4, x_150); +lean_ctor_set(x_159, 5, x_151); +x_160 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_160, 0, x_159); +lean_ctor_set(x_160, 1, x_142); +lean_ctor_set(x_160, 2, x_143); +lean_ctor_set(x_160, 3, x_144); +lean_ctor_set(x_160, 4, x_145); +lean_ctor_set(x_160, 5, x_146); if (lean_is_scalar(x_19)) { - x_160 = lean_alloc_ctor(0, 2, 0); + x_161 = lean_alloc_ctor(0, 2, 0); } else { - x_160 = x_19; + x_161 = x_19; } -lean_ctor_set(x_160, 0, x_114); -lean_ctor_set(x_160, 1, x_159); -return x_160; +lean_ctor_set(x_161, 0, x_115); +lean_ctor_set(x_161, 1, x_160); +return x_161; } } } @@ -22336,36 +22282,36 @@ return x_160; } else { -uint8_t x_213; +uint8_t x_215; lean_dec(x_11); lean_dec(x_4); lean_dec(x_3); -x_213 = !lean_is_exclusive(x_16); -if (x_213 == 0) +x_215 = !lean_is_exclusive(x_16); +if (x_215 == 0) { return x_16; } else { -lean_object* x_214; lean_object* x_215; lean_object* x_216; -x_214 = lean_ctor_get(x_16, 0); -x_215 = lean_ctor_get(x_16, 1); -lean_inc(x_215); -lean_inc(x_214); +lean_object* x_216; lean_object* x_217; lean_object* x_218; +x_216 = lean_ctor_get(x_16, 0); +x_217 = lean_ctor_get(x_16, 1); +lean_inc(x_217); +lean_inc(x_216); lean_dec(x_16); -x_216 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_216, 0, x_214); -lean_ctor_set(x_216, 1, x_215); -return x_216; +x_218 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_218, 0, x_216); +lean_ctor_set(x_218, 1, x_217); +return x_218; } } } else { -lean_object* x_217; lean_object* x_218; -x_217 = l_Array_empty___closed__1; -x_218 = lean_apply_4(x_3, x_217, x_2, x_4, x_5); -return x_218; +lean_object* x_219; lean_object* x_220; +x_219 = l_Array_empty___closed__1; +x_220 = lean_apply_4(x_3, x_219, x_2, x_4, x_5); +return x_220; } } } @@ -22386,46 +22332,46 @@ lean_dec(x_1); return x_6; } } -lean_object* l_Lean_Elab_Term_elabFun___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* l_Lean_Elab_Term_elabFun___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -uint8_t x_7; lean_object* x_8; -x_7 = 1; -lean_inc(x_5); -x_8 = l_Lean_Elab_Term_elabTermAux___main(x_4, x_7, x_7, x_1, x_5, x_6); -if (lean_obj_tag(x_8) == 0) +uint8_t x_6; lean_object* x_7; +x_6 = 1; +lean_inc(x_4); +x_7 = l_Lean_Elab_Term_elabTerm(x_1, x_3, x_6, x_4, x_5); +if (lean_obj_tag(x_7) == 0) { -lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_9 = lean_ctor_get(x_8, 0); +lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_7, 1); lean_inc(x_9); -x_10 = lean_ctor_get(x_8, 1); -lean_inc(x_10); -lean_dec(x_8); -x_11 = l_Lean_Elab_Term_mkLambda(x_2, x_3, x_9, x_5, x_10); -return x_11; +lean_dec(x_7); +x_10 = l_Lean_Elab_Term_mkLambda(x_2, x_8, x_4, x_9); +return x_10; } else { -uint8_t x_12; -lean_dec(x_5); -lean_dec(x_3); -x_12 = !lean_is_exclusive(x_8); -if (x_12 == 0) +uint8_t x_11; +lean_dec(x_4); +lean_dec(x_2); +x_11 = !lean_is_exclusive(x_7); +if (x_11 == 0) { -return x_8; +return x_7; } else { -lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_13 = lean_ctor_get(x_8, 0); -x_14 = lean_ctor_get(x_8, 1); -lean_inc(x_14); +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_7, 0); +x_13 = lean_ctor_get(x_7, 1); lean_inc(x_13); -lean_dec(x_8); -x_15 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_15, 0, x_13); -lean_ctor_set(x_15, 1, x_14); -return x_15; +lean_inc(x_12); +lean_dec(x_7); +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_13); +return x_14; } } } @@ -22456,9 +22402,8 @@ lean_inc(x_13); x_14 = lean_ctor_get(x_11, 1); lean_inc(x_14); lean_dec(x_11); -x_15 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabFun___lambda__1___boxed), 6, 2); +x_15 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabFun___lambda__1), 5, 1); lean_closure_set(x_15, 0, x_14); -lean_closure_set(x_15, 1, x_1); x_16 = l_Lean_Elab_Term_elabFunBinders___rarg(x_13, x_2, x_15, x_3, x_12); lean_dec(x_13); return x_16; @@ -22468,7 +22413,6 @@ else uint8_t x_17; lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); x_17 = !lean_is_exclusive(x_10); if (x_17 == 0) { @@ -22490,20 +22434,20 @@ return x_20; } } } -lean_object* l_Lean_Elab_Term_elabFun___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* l_Lean_Elab_Term_elabFun___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_7; -x_7 = l_Lean_Elab_Term_elabFun___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_2); -return x_7; +lean_object* x_5; +x_5 = l_Lean_Elab_Term_elabFun(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; } } lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabFun___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabFun), 4, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabFun___boxed), 4, 0); return x_1; } } @@ -22551,320 +22495,357 @@ lean_dec(x_1); return x_3; } } -lean_object* l_Lean_Elab_Term_elabLetDeclAux___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* l_Lean_Elab_Term_elabLetDeclAux___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_7; -lean_inc(x_5); -x_7 = l_Lean_Elab_Term_elabType(x_1, x_5, x_6); +lean_object* x_6; +lean_inc(x_4); +x_6 = l_Lean_Elab_Term_elabType(x_1, x_4, x_5); +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +lean_inc(x_7); +x_9 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_9, 0, x_7); +x_10 = 1; +lean_inc(x_4); +lean_inc(x_9); +lean_inc(x_2); +x_11 = l_Lean_Elab_Term_elabTerm(x_2, x_9, x_10, x_4, x_8); +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; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; uint8_t x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; +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_ctor_get(x_4, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_4, 1); +lean_inc(x_15); +x_16 = lean_ctor_get(x_4, 2); +lean_inc(x_16); +x_17 = lean_ctor_get(x_4, 3); +lean_inc(x_17); +x_18 = lean_ctor_get(x_4, 4); +lean_inc(x_18); +x_19 = lean_ctor_get(x_4, 5); +lean_inc(x_19); +x_20 = lean_ctor_get(x_4, 6); +lean_inc(x_20); +x_21 = lean_ctor_get(x_4, 7); +lean_inc(x_21); +x_22 = lean_ctor_get(x_4, 8); +lean_inc(x_22); +x_23 = lean_ctor_get(x_4, 9); +lean_inc(x_23); +x_24 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_26 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +x_27 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_27, 0, x_14); +lean_ctor_set(x_27, 1, x_15); +lean_ctor_set(x_27, 2, x_16); +lean_ctor_set(x_27, 3, x_17); +lean_ctor_set(x_27, 4, x_18); +lean_ctor_set(x_27, 5, x_19); +lean_ctor_set(x_27, 6, x_20); +lean_ctor_set(x_27, 7, x_21); +lean_ctor_set(x_27, 8, x_22); +lean_ctor_set(x_27, 9, x_23); +lean_ctor_set(x_27, 10, x_2); +lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_24); +lean_ctor_set_uint8(x_27, sizeof(void*)*11 + 1, x_25); +lean_ctor_set_uint8(x_27, sizeof(void*)*11 + 2, x_26); +x_28 = l_Lean_Elab_Term_ensureHasType(x_9, x_12, x_27, x_13); +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_4); +lean_inc(x_3); +x_31 = l_Lean_Elab_Term_mkForall(x_3, x_7, x_4, x_30); +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); +x_34 = l_Lean_Elab_Term_mkLambda(x_3, x_29, x_4, x_33); +if (lean_obj_tag(x_34) == 0) +{ +uint8_t x_35; +x_35 = !lean_is_exclusive(x_34); +if (x_35 == 0) +{ +lean_object* x_36; lean_object* x_37; +x_36 = lean_ctor_get(x_34, 0); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_32); +lean_ctor_set(x_37, 1, x_36); +lean_ctor_set(x_34, 0, x_37); +return x_34; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_38 = lean_ctor_get(x_34, 0); +x_39 = lean_ctor_get(x_34, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_34); +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_32); +lean_ctor_set(x_40, 1, x_38); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_39); +return x_41; +} +} +else +{ +uint8_t x_42; +lean_dec(x_32); +x_42 = !lean_is_exclusive(x_34); +if (x_42 == 0) +{ +return x_34; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_34, 0); +x_44 = lean_ctor_get(x_34, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_34); +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 +{ +uint8_t x_46; +lean_dec(x_29); +lean_dec(x_4); +lean_dec(x_3); +x_46 = !lean_is_exclusive(x_31); +if (x_46 == 0) +{ +return x_31; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_31, 0); +x_48 = lean_ctor_get(x_31, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_31); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +return x_49; +} +} +} +else +{ +uint8_t x_50; +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +x_50 = !lean_is_exclusive(x_28); +if (x_50 == 0) +{ +return x_28; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_28, 0); +x_52 = lean_ctor_get(x_28, 1); +lean_inc(x_52); +lean_inc(x_51); +lean_dec(x_28); +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +return x_53; +} +} +} +else +{ +uint8_t x_54; +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_54 = !lean_is_exclusive(x_11); +if (x_54 == 0) +{ +return x_11; +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_11, 0); +x_56 = lean_ctor_get(x_11, 1); +lean_inc(x_56); +lean_inc(x_55); +lean_dec(x_11); +x_57 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_56); +return x_57; +} +} +} +else +{ +uint8_t x_58; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_58 = !lean_is_exclusive(x_6); +if (x_58 == 0) +{ +return x_6; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_6, 0); +x_60 = lean_ctor_get(x_6, 1); +lean_inc(x_60); +lean_inc(x_59); +lean_dec(x_6); +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_60); +return x_61; +} +} +} +} +lean_object* l_Lean_Elab_Term_elabLetDeclAux___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; lean_object* x_7; +x_6 = 1; +lean_inc(x_4); +x_7 = l_Lean_Elab_Term_elabTerm(x_1, x_2, x_6, x_4, x_5); if (lean_obj_tag(x_7) == 0) { -lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; x_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); -lean_inc(x_8); -x_10 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_10, 0, x_8); -x_11 = 1; -lean_inc(x_5); -lean_inc(x_2); -lean_inc(x_10); -x_12 = l_Lean_Elab_Term_elabTermAux___main(x_10, x_11, x_11, x_2, x_5, x_9); -if (lean_obj_tag(x_12) == 0) -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); -lean_inc(x_14); -lean_dec(x_12); -lean_inc(x_5); -x_15 = l_Lean_Elab_Term_ensureHasType(x_2, x_10, x_13, x_5, x_14); -if (lean_obj_tag(x_15) == 0) -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); -lean_inc(x_17); -lean_dec(x_15); -lean_inc(x_5); lean_inc(x_4); -x_18 = l_Lean_Elab_Term_mkForall(x_3, x_4, x_8, x_5, x_17); -if (lean_obj_tag(x_18) == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); -lean_inc(x_20); -lean_dec(x_18); -x_21 = l_Lean_Elab_Term_mkLambda(x_3, x_4, x_16, x_5, x_20); -if (lean_obj_tag(x_21) == 0) -{ -uint8_t x_22; -x_22 = !lean_is_exclusive(x_21); -if (x_22 == 0) -{ -lean_object* x_23; lean_object* x_24; -x_23 = lean_ctor_get(x_21, 0); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_19); -lean_ctor_set(x_24, 1, x_23); -lean_ctor_set(x_21, 0, x_24); -return x_21; -} -else -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_25 = lean_ctor_get(x_21, 0); -x_26 = lean_ctor_get(x_21, 1); -lean_inc(x_26); -lean_inc(x_25); -lean_dec(x_21); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_19); -lean_ctor_set(x_27, 1, x_25); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_26); -return x_28; -} -} -else -{ -uint8_t x_29; -lean_dec(x_19); -x_29 = !lean_is_exclusive(x_21); -if (x_29 == 0) -{ -return x_21; -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_21, 0); -x_31 = lean_ctor_get(x_21, 1); -lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_21); -x_32 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_32, 0, x_30); -lean_ctor_set(x_32, 1, x_31); -return x_32; -} -} -} -else -{ -uint8_t x_33; -lean_dec(x_16); -lean_dec(x_5); -lean_dec(x_4); -x_33 = !lean_is_exclusive(x_18); -if (x_33 == 0) -{ -return x_18; -} -else -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_18, 0); -x_35 = lean_ctor_get(x_18, 1); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_18); -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; -} -} -} -else -{ -uint8_t x_37; -lean_dec(x_8); -lean_dec(x_5); -lean_dec(x_4); -x_37 = !lean_is_exclusive(x_15); -if (x_37 == 0) -{ +x_10 = l_Lean_Elab_Term_instantiateMVars(x_8, x_4, x_9); +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_mkOptionalNode___closed__2; +x_14 = lean_array_push(x_13, x_3); +x_15 = l_Lean_Elab_Term_mkLambda(x_14, x_11, x_4, x_12); return x_15; } else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_15, 0); -x_39 = lean_ctor_get(x_15, 1); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_15); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -return x_40; -} -} -} -else -{ -uint8_t x_41; -lean_dec(x_10); -lean_dec(x_8); -lean_dec(x_5); +uint8_t x_16; lean_dec(x_4); -lean_dec(x_2); -x_41 = !lean_is_exclusive(x_12); -if (x_41 == 0) -{ -return x_12; -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_12, 0); -x_43 = lean_ctor_get(x_12, 1); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_12); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -return x_44; -} -} -} -else -{ -uint8_t x_45; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_45 = !lean_is_exclusive(x_7); -if (x_45 == 0) +lean_dec(x_3); +x_16 = !lean_is_exclusive(x_7); +if (x_16 == 0) { return x_7; } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_7, 0); -x_47 = lean_ctor_get(x_7, 1); -lean_inc(x_47); -lean_inc(x_46); -lean_dec(x_7); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; -} -} -} -} -lean_object* l_Lean_Elab_Term_elabLetDeclAux___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) { -_start: -{ -uint8_t x_7; lean_object* x_8; -x_7 = 1; -lean_inc(x_5); -x_8 = l_Lean_Elab_Term_elabTermAux___main(x_1, x_7, x_7, x_2, x_5, x_6); -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; -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); -lean_inc(x_5); -x_11 = l_Lean_Elab_Term_instantiateMVars(x_3, x_9, x_5, x_10); -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 = l_Lean_mkOptionalNode___closed__2; -x_15 = lean_array_push(x_14, x_4); -x_16 = l_Lean_Elab_Term_mkLambda(x_3, x_15, x_12, x_5, x_13); -return x_16; -} -else -{ -uint8_t x_17; -lean_dec(x_5); -lean_dec(x_4); -x_17 = !lean_is_exclusive(x_8); -if (x_17 == 0) -{ -return x_8; -} -else -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_18 = lean_ctor_get(x_8, 0); -x_19 = lean_ctor_get(x_8, 1); -lean_inc(x_19); +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_7, 0); +x_18 = lean_ctor_get(x_7, 1); lean_inc(x_18); -lean_dec(x_8); -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_inc(x_17); +lean_dec(x_7); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +return x_19; } } } } -lean_object* l_Lean_Elab_Term_elabLetDeclAux___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* l_Lean_Elab_Term_elabLetDeclAux___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -uint8_t x_7; lean_object* x_8; -x_7 = 1; -lean_inc(x_5); -x_8 = l_Lean_Elab_Term_elabTermAux___main(x_1, x_7, x_7, x_2, x_5, x_6); -if (lean_obj_tag(x_8) == 0) +uint8_t x_6; lean_object* x_7; +x_6 = 1; +lean_inc(x_4); +x_7 = l_Lean_Elab_Term_elabTerm(x_1, x_2, x_6, x_4, x_5); +if (lean_obj_tag(x_7) == 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; -x_9 = lean_ctor_get(x_8, 0); +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_7, 1); lean_inc(x_9); -x_10 = lean_ctor_get(x_8, 1); -lean_inc(x_10); -lean_dec(x_8); -lean_inc(x_5); -x_11 = l_Lean_Elab_Term_instantiateMVars(x_3, x_9, x_5, x_10); -x_12 = lean_ctor_get(x_11, 0); +lean_dec(x_7); +lean_inc(x_4); +x_10 = l_Lean_Elab_Term_instantiateMVars(x_8, x_4, x_9); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); lean_inc(x_12); -x_13 = lean_ctor_get(x_11, 1); -lean_inc(x_13); -lean_dec(x_11); -x_14 = l_Lean_Elab_Term_mkLet(x_3, x_4, x_12, x_5, x_13); -return x_14; +lean_dec(x_10); +x_13 = l_Lean_Elab_Term_mkLet(x_3, x_11, x_4, x_12); +return x_13; } else { -uint8_t x_15; -lean_dec(x_5); +uint8_t x_14; lean_dec(x_4); -x_15 = !lean_is_exclusive(x_8); -if (x_15 == 0) +lean_dec(x_3); +x_14 = !lean_is_exclusive(x_7); +if (x_14 == 0) { -return x_8; +return x_7; } else { -lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = lean_ctor_get(x_8, 0); -x_17 = lean_ctor_get(x_8, 1); -lean_inc(x_17); +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_7, 0); +x_16 = lean_ctor_get(x_7, 1); lean_inc(x_16); -lean_dec(x_8); -x_18 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_18, 0, x_16); -lean_ctor_set(x_18, 1, x_17); -return x_18; +lean_inc(x_15); +lean_dec(x_7); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +return x_17; } } } @@ -22897,239 +22878,211 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_Lean_Elab_Term_elabLetDeclAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, uint8_t x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Lean_Elab_Term_elabLetDeclAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9) { _start: { -lean_object* x_11; lean_object* x_12; -lean_inc(x_1); -x_11 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabLetDeclAux___lambda__1___boxed), 6, 3); -lean_closure_set(x_11, 0, x_4); -lean_closure_set(x_11, 1, x_5); -lean_closure_set(x_11, 2, x_1); -lean_inc(x_9); -x_12 = l_Lean_Elab_Term_elabBinders___rarg(x_3, x_11, x_9, x_10); -if (lean_obj_tag(x_12) == 0) +lean_object* x_10; lean_object* x_11; +x_10 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabLetDeclAux___lambda__1), 5, 2); +lean_closure_set(x_10, 0, x_3); +lean_closure_set(x_10, 1, x_4); +lean_inc(x_8); +x_11 = l_Lean_Elab_Term_elabBinders___rarg(x_2, x_10, x_8, x_9); +if (lean_obj_tag(x_11) == 0) { -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_13 = lean_ctor_get(x_12, 0); +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); +lean_dec(x_11); +x_14 = lean_ctor_get(x_12, 0); lean_inc(x_14); +x_15 = lean_ctor_get(x_12, 1); +lean_inc(x_15); lean_dec(x_12); -x_15 = lean_ctor_get(x_13, 0); -lean_inc(x_15); -x_16 = lean_ctor_get(x_13, 1); -lean_inc(x_16); -lean_dec(x_13); -if (x_8 == 0) +if (x_7 == 0) { -uint8_t x_53; -x_53 = 0; -x_17 = x_53; -goto block_52; +uint8_t x_55; +x_55 = 0; +x_16 = x_55; +goto block_54; } else { -uint8_t x_54; -x_54 = 1; -x_17 = x_54; -goto block_52; +uint8_t x_56; +x_56 = 1; +x_16 = x_56; +goto block_54; } -block_52: +block_54: { -lean_object* x_18; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; -x_36 = l_Lean_Elab_Term_getOptions(x_9, x_14); -x_37 = lean_ctor_get(x_36, 0); +lean_object* x_17; 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; uint8_t x_42; +x_35 = l_Lean_Elab_Term_getOptions(x_8, x_13); +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_35, 1); lean_inc(x_37); -x_38 = lean_ctor_get(x_36, 1); -lean_inc(x_38); +lean_dec(x_35); +x_38 = l_Lean_Elab_Term_getCurrRef(x_8, x_37); +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +lean_dec(x_38); +x_41 = l_Lean_Elab_Term_elabLetDeclAux___closed__3; +x_42 = l_Lean_checkTraceOption(x_36, x_41); lean_dec(x_36); -x_39 = l_Lean_Elab_Term_elabLetDeclAux___closed__3; -x_40 = l_Lean_checkTraceOption(x_37, x_39); -lean_dec(x_37); -if (x_40 == 0) +if (x_42 == 0) { -x_18 = x_38; -goto block_35; +lean_dec(x_39); +x_17 = x_40; +goto block_34; } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; -lean_inc(x_2); -x_41 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_41, 0, x_2); -x_42 = l___private_Lean_Meta_ExprDefEq_8__checkTypesAndAssign___closed__7; -x_43 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_43, 0, x_41); -lean_ctor_set(x_43, 1, x_42); -lean_inc(x_15); -x_44 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_44, 0, x_15); +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +lean_inc(x_1); +x_43 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_43, 0, x_1); +x_44 = l___private_Lean_Meta_ExprDefEq_8__checkTypesAndAssign___closed__7; x_45 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_45, 0, x_43); lean_ctor_set(x_45, 1, x_44); -x_46 = l___private_Lean_Meta_ExprDefEq_8__checkTypesAndAssign___closed__8; +lean_inc(x_14); +x_46 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_46, 0, x_14); x_47 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_47, 0, x_45); lean_ctor_set(x_47, 1, x_46); -lean_inc(x_16); -x_48 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_48, 0, x_16); +x_48 = l___private_Lean_Meta_ExprDefEq_8__checkTypesAndAssign___closed__8; x_49 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_49, 0, x_47); lean_ctor_set(x_49, 1, x_48); -lean_inc(x_9); -x_50 = l_Lean_Elab_Term_logTrace(x_39, x_1, x_49, x_9, x_38); -x_51 = lean_ctor_get(x_50, 1); -lean_inc(x_51); -lean_dec(x_50); -x_18 = x_51; -goto block_35; +lean_inc(x_15); +x_50 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_50, 0, x_15); +x_51 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +lean_inc(x_8); +x_52 = l_Lean_Elab_Term_logTrace(x_41, x_39, x_51, x_8, x_40); +lean_dec(x_39); +x_53 = lean_ctor_get(x_52, 1); +lean_inc(x_53); +lean_dec(x_52); +x_17 = x_53; +goto block_34; } -block_35: +block_34: { -if (x_17 == 0) +if (x_16 == 0) { -lean_object* x_19; uint8_t x_20; lean_object* x_21; -lean_inc(x_1); -x_19 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabLetDeclAux___lambda__2___boxed), 6, 3); -lean_closure_set(x_19, 0, x_7); -lean_closure_set(x_19, 1, x_6); -lean_closure_set(x_19, 2, x_1); -x_20 = 0; -x_21 = l_Lean_Elab_Term_withLocalDecl___rarg(x_1, x_2, x_20, x_15, x_19, x_9, x_18); -lean_dec(x_1); -if (lean_obj_tag(x_21) == 0) +lean_object* x_18; uint8_t x_19; lean_object* x_20; +x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabLetDeclAux___lambda__2), 5, 2); +lean_closure_set(x_18, 0, x_5); +lean_closure_set(x_18, 1, x_6); +x_19 = 0; +x_20 = l_Lean_Elab_Term_withLocalDecl___rarg(x_1, x_19, x_14, x_18, x_8, x_17); +if (lean_obj_tag(x_20) == 0) { -uint8_t x_22; -x_22 = !lean_is_exclusive(x_21); -if (x_22 == 0) +uint8_t x_21; +x_21 = !lean_is_exclusive(x_20); +if (x_21 == 0) { -lean_object* x_23; lean_object* x_24; -x_23 = lean_ctor_get(x_21, 0); -x_24 = l_Lean_mkApp(x_23, x_16); -lean_ctor_set(x_21, 0, x_24); -return x_21; +lean_object* x_22; lean_object* x_23; +x_22 = lean_ctor_get(x_20, 0); +x_23 = l_Lean_mkApp(x_22, x_15); +lean_ctor_set(x_20, 0, x_23); +return x_20; } else { -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_25 = lean_ctor_get(x_21, 0); -x_26 = lean_ctor_get(x_21, 1); -lean_inc(x_26); +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_24 = lean_ctor_get(x_20, 0); +x_25 = lean_ctor_get(x_20, 1); lean_inc(x_25); -lean_dec(x_21); -x_27 = l_Lean_mkApp(x_25, x_16); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_26); -return x_28; +lean_inc(x_24); +lean_dec(x_20); +x_26 = l_Lean_mkApp(x_24, x_15); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_25); +return x_27; } } else { -uint8_t x_29; -lean_dec(x_16); -x_29 = !lean_is_exclusive(x_21); -if (x_29 == 0) +uint8_t x_28; +lean_dec(x_15); +x_28 = !lean_is_exclusive(x_20); +if (x_28 == 0) { -return x_21; +return x_20; } else { -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_21, 0); -x_31 = lean_ctor_get(x_21, 1); -lean_inc(x_31); +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_20, 0); +x_30 = lean_ctor_get(x_20, 1); lean_inc(x_30); -lean_dec(x_21); -x_32 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_32, 0, x_30); -lean_ctor_set(x_32, 1, x_31); -return x_32; +lean_inc(x_29); +lean_dec(x_20); +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; } } } else { -lean_object* x_33; lean_object* x_34; -lean_inc(x_1); -x_33 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabLetDeclAux___lambda__3___boxed), 6, 3); -lean_closure_set(x_33, 0, x_7); -lean_closure_set(x_33, 1, x_6); -lean_closure_set(x_33, 2, x_1); -x_34 = l_Lean_Elab_Term_withLetDecl___rarg(x_1, x_2, x_15, x_16, x_33, x_9, x_18); -lean_dec(x_1); -return x_34; +lean_object* x_32; lean_object* x_33; +x_32 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabLetDeclAux___lambda__3), 5, 2); +lean_closure_set(x_32, 0, x_5); +lean_closure_set(x_32, 1, x_6); +x_33 = l_Lean_Elab_Term_withLetDecl___rarg(x_1, x_14, x_15, x_32, x_8, x_17); +return x_33; } } } } else { -uint8_t x_55; -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_2); -lean_dec(x_1); -x_55 = !lean_is_exclusive(x_12); -if (x_55 == 0) -{ -return x_12; -} -else -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_12, 0); -x_57 = lean_ctor_get(x_12, 1); -lean_inc(x_57); -lean_inc(x_56); -lean_dec(x_12); -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; -} -} -} -} -lean_object* l_Lean_Elab_Term_elabLetDeclAux___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) { -_start: -{ -lean_object* x_7; -x_7 = l_Lean_Elab_Term_elabLetDeclAux___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_3); -return x_7; -} -} -lean_object* l_Lean_Elab_Term_elabLetDeclAux___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) { -_start: -{ -lean_object* x_7; -x_7 = l_Lean_Elab_Term_elabLetDeclAux___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_3); -return x_7; -} -} -lean_object* l_Lean_Elab_Term_elabLetDeclAux___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) { -_start: -{ -lean_object* x_7; -x_7 = l_Lean_Elab_Term_elabLetDeclAux___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_3); -return x_7; -} -} -lean_object* l_Lean_Elab_Term_elabLetDeclAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -uint8_t x_11; lean_object* x_12; -x_11 = lean_unbox(x_8); +uint8_t x_57; lean_dec(x_8); -x_12 = l_Lean_Elab_Term_elabLetDeclAux(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_11, x_9, x_10); -lean_dec(x_3); -return x_12; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_57 = !lean_is_exclusive(x_11); +if (x_57 == 0) +{ +return x_11; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_11, 0); +x_59 = lean_ctor_get(x_11, 1); +lean_inc(x_59); +lean_inc(x_58); +lean_dec(x_11); +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; +} +} +} +} +lean_object* l_Lean_Elab_Term_elabLetDeclAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +uint8_t x_10; lean_object* x_11; +x_10 = lean_unbox(x_7); +lean_dec(x_7); +x_11 = l_Lean_Elab_Term_elabLetDeclAux(x_1, x_2, x_3, x_4, x_5, x_6, x_10, x_8, x_9); +lean_dec(x_2); +return x_11; } } lean_object* _init_l_Lean_Elab_Term_elabLetDecl___closed__1() { @@ -23168,30 +23121,30 @@ return x_3; lean_object* l_Lean_Elab_Term_elabLetDecl(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -uint8_t x_5; lean_object* x_276; uint8_t x_277; -x_276 = l_Lean_Parser_Term_let___elambda__1___closed__2; +uint8_t x_5; lean_object* x_278; uint8_t x_279; +x_278 = l_Lean_Parser_Term_let___elambda__1___closed__2; lean_inc(x_1); -x_277 = l_Lean_Syntax_isOfKind(x_1, x_276); -if (x_277 == 0) +x_279 = l_Lean_Syntax_isOfKind(x_1, x_278); +if (x_279 == 0) { -uint8_t x_278; -x_278 = 0; -x_5 = x_278; -goto block_275; +uint8_t x_280; +x_280 = 0; +x_5 = x_280; +goto block_277; } else { -lean_object* x_279; lean_object* x_280; lean_object* x_281; uint8_t x_282; -x_279 = l_Lean_Syntax_getArgs(x_1); -x_280 = lean_array_get_size(x_279); -lean_dec(x_279); -x_281 = lean_unsigned_to_nat(4u); -x_282 = lean_nat_dec_eq(x_280, x_281); -lean_dec(x_280); -x_5 = x_282; -goto block_275; +lean_object* x_281; lean_object* x_282; lean_object* x_283; uint8_t x_284; +x_281 = l_Lean_Syntax_getArgs(x_1); +x_282 = lean_array_get_size(x_281); +lean_dec(x_281); +x_283 = lean_unsigned_to_nat(4u); +x_284 = lean_nat_dec_eq(x_282, x_283); +lean_dec(x_282); +x_5 = x_284; +goto block_277; } -block_275: +block_277: { if (x_5 == 0) { @@ -23204,32 +23157,32 @@ return x_6; } else { -lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_268; uint8_t x_269; +lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_270; uint8_t x_271; x_7 = lean_unsigned_to_nat(1u); x_8 = l_Lean_Syntax_getArg(x_1, x_7); -x_268 = l_Lean_Parser_Term_letIdDecl___closed__2; +x_270 = l_Lean_Parser_Term_letIdDecl___closed__2; lean_inc(x_8); -x_269 = l_Lean_Syntax_isOfKind(x_8, x_268); -if (x_269 == 0) +x_271 = l_Lean_Syntax_isOfKind(x_8, x_270); +if (x_271 == 0) { -uint8_t x_270; -x_270 = 0; -x_9 = x_270; -goto block_267; +uint8_t x_272; +x_272 = 0; +x_9 = x_272; +goto block_269; } else { -lean_object* x_271; lean_object* x_272; lean_object* x_273; uint8_t x_274; -x_271 = l_Lean_Syntax_getArgs(x_8); -x_272 = lean_array_get_size(x_271); -lean_dec(x_271); -x_273 = lean_unsigned_to_nat(5u); -x_274 = lean_nat_dec_eq(x_272, x_273); -lean_dec(x_272); -x_9 = x_274; -goto block_267; +lean_object* x_273; lean_object* x_274; lean_object* x_275; uint8_t x_276; +x_273 = l_Lean_Syntax_getArgs(x_8); +x_274 = lean_array_get_size(x_273); +lean_dec(x_273); +x_275 = lean_unsigned_to_nat(5u); +x_276 = lean_nat_dec_eq(x_274, x_275); +lean_dec(x_274); +x_9 = x_276; +goto block_269; } -block_267: +block_269: { if (x_9 == 0) { @@ -23251,32 +23204,32 @@ lean_inc(x_12); x_14 = l_Lean_Syntax_isOfKind(x_12, x_13); if (x_14 == 0) { -lean_object* x_15; uint8_t x_16; lean_object* x_222; uint8_t x_223; +lean_object* x_15; uint8_t x_16; lean_object* x_224; uint8_t x_225; x_15 = l_Lean_Syntax_getArg(x_8, x_7); -x_222 = l_Lean_nullKind___closed__2; +x_224 = l_Lean_nullKind___closed__2; lean_inc(x_15); -x_223 = l_Lean_Syntax_isOfKind(x_15, x_222); -if (x_223 == 0) +x_225 = l_Lean_Syntax_isOfKind(x_15, x_224); +if (x_225 == 0) { -uint8_t x_224; +uint8_t x_226; lean_dec(x_15); -x_224 = 0; -x_16 = x_224; -goto block_221; +x_226 = 0; +x_16 = x_226; +goto block_223; } else { -lean_object* x_225; lean_object* x_226; uint8_t x_227; -x_225 = l_Lean_Syntax_getArgs(x_15); +lean_object* x_227; lean_object* x_228; uint8_t x_229; +x_227 = l_Lean_Syntax_getArgs(x_15); lean_dec(x_15); -x_226 = lean_array_get_size(x_225); -lean_dec(x_225); -x_227 = lean_nat_dec_eq(x_226, x_11); -lean_dec(x_226); -x_16 = x_227; -goto block_221; +x_228 = lean_array_get_size(x_227); +lean_dec(x_227); +x_229 = lean_nat_dec_eq(x_228, x_11); +lean_dec(x_228); +x_16 = x_229; +goto block_223; } -block_221: +block_223: { if (x_16 == 0) { @@ -23291,31 +23244,31 @@ return x_17; } else { -lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_125; uint8_t x_126; uint8_t x_127; +lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_126; uint8_t x_127; uint8_t x_128; x_18 = lean_unsigned_to_nat(2u); x_19 = l_Lean_Syntax_getArg(x_8, x_18); -x_125 = l_Lean_nullKind___closed__2; +x_126 = l_Lean_nullKind___closed__2; lean_inc(x_19); -x_126 = l_Lean_Syntax_isOfKind(x_19, x_125); -if (x_126 == 0) +x_127 = l_Lean_Syntax_isOfKind(x_19, x_126); +if (x_127 == 0) { -uint8_t x_217; -x_217 = 0; -x_127 = x_217; -goto block_216; +uint8_t x_219; +x_219 = 0; +x_128 = x_219; +goto block_218; } else { -lean_object* x_218; lean_object* x_219; uint8_t x_220; -x_218 = l_Lean_Syntax_getArgs(x_19); -x_219 = lean_array_get_size(x_218); -lean_dec(x_218); -x_220 = lean_nat_dec_eq(x_219, x_11); -lean_dec(x_219); -x_127 = x_220; -goto block_216; +lean_object* x_220; lean_object* x_221; uint8_t x_222; +x_220 = l_Lean_Syntax_getArgs(x_19); +x_221 = lean_array_get_size(x_220); +lean_dec(x_220); +x_222 = lean_nat_dec_eq(x_221, x_11); +lean_dec(x_221); +x_128 = x_222; +goto block_218; } -block_124: +block_125: { if (x_20 == 0) { @@ -23331,31 +23284,31 @@ return x_21; } else { -lean_object* x_22; uint8_t x_23; lean_object* x_118; uint8_t x_119; +lean_object* x_22; uint8_t x_23; lean_object* x_119; uint8_t x_120; x_22 = l_Lean_Syntax_getArg(x_19, x_11); lean_dec(x_19); -x_118 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__2; +x_119 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__2; lean_inc(x_22); -x_119 = l_Lean_Syntax_isOfKind(x_22, x_118); -if (x_119 == 0) +x_120 = l_Lean_Syntax_isOfKind(x_22, x_119); +if (x_120 == 0) { -uint8_t x_120; -x_120 = 0; -x_23 = x_120; -goto block_117; +uint8_t x_121; +x_121 = 0; +x_23 = x_121; +goto block_118; } else { -lean_object* x_121; lean_object* x_122; uint8_t x_123; -x_121 = l_Lean_Syntax_getArgs(x_22); -x_122 = lean_array_get_size(x_121); -lean_dec(x_121); -x_123 = lean_nat_dec_eq(x_122, x_18); +lean_object* x_122; lean_object* x_123; uint8_t x_124; +x_122 = l_Lean_Syntax_getArgs(x_22); +x_123 = lean_array_get_size(x_122); lean_dec(x_122); -x_23 = x_123; -goto block_117; +x_124 = lean_nat_dec_eq(x_123, x_18); +lean_dec(x_123); +x_23 = x_124; +goto block_118; } -block_117: +block_118: { if (x_23 == 0) { @@ -23489,12 +23442,12 @@ lean_ctor_set(x_96, 0, x_95); lean_ctor_set(x_96, 1, x_94); lean_ctor_set(x_3, 8, x_96); x_97 = 1; -x_98 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_97, x_97, x_92, x_3, x_35); +x_98 = l_Lean_Elab_Term_elabTerm(x_92, x_2, x_97, x_3, x_35); return x_98; } else { -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; lean_object* x_106; lean_object* x_107; lean_object* x_108; uint8_t x_109; uint8_t x_110; uint8_t x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; lean_object* x_116; +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; lean_object* x_106; lean_object* x_107; lean_object* x_108; uint8_t x_109; uint8_t x_110; uint8_t x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; uint8_t x_116; lean_object* x_117; x_99 = lean_ctor_get(x_3, 0); x_100 = lean_ctor_get(x_3, 1); x_101 = lean_ctor_get(x_3, 2); @@ -23505,9 +23458,11 @@ x_105 = lean_ctor_get(x_3, 6); x_106 = lean_ctor_get(x_3, 7); x_107 = lean_ctor_get(x_3, 8); x_108 = lean_ctor_get(x_3, 9); -x_109 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); -x_110 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); -x_111 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); +x_109 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_110 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_111 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +x_112 = lean_ctor_get(x_3, 10); +lean_inc(x_112); lean_inc(x_108); lean_inc(x_107); lean_inc(x_106); @@ -23520,184 +23475,188 @@ lean_inc(x_100); lean_inc(x_99); lean_dec(x_3); lean_inc(x_92); -x_112 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_112, 0, x_1); -lean_ctor_set(x_112, 1, x_92); -x_113 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_113, 0, x_112); -lean_ctor_set(x_113, 1, x_107); -x_114 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_114, 0, x_99); -lean_ctor_set(x_114, 1, x_100); -lean_ctor_set(x_114, 2, x_101); -lean_ctor_set(x_114, 3, x_102); -lean_ctor_set(x_114, 4, x_103); -lean_ctor_set(x_114, 5, x_104); -lean_ctor_set(x_114, 6, x_105); -lean_ctor_set(x_114, 7, x_106); -lean_ctor_set(x_114, 8, x_113); -lean_ctor_set(x_114, 9, x_108); -lean_ctor_set_uint8(x_114, sizeof(void*)*10, x_109); -lean_ctor_set_uint8(x_114, sizeof(void*)*10 + 1, x_110); -lean_ctor_set_uint8(x_114, sizeof(void*)*10 + 2, x_111); -x_115 = 1; -x_116 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_115, x_115, x_92, x_114, x_35); -return x_116; +x_113 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_113, 0, x_1); +lean_ctor_set(x_113, 1, x_92); +x_114 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_114, 0, x_113); +lean_ctor_set(x_114, 1, x_107); +x_115 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_115, 0, x_99); +lean_ctor_set(x_115, 1, x_100); +lean_ctor_set(x_115, 2, x_101); +lean_ctor_set(x_115, 3, x_102); +lean_ctor_set(x_115, 4, x_103); +lean_ctor_set(x_115, 5, x_104); +lean_ctor_set(x_115, 6, x_105); +lean_ctor_set(x_115, 7, x_106); +lean_ctor_set(x_115, 8, x_114); +lean_ctor_set(x_115, 9, x_108); +lean_ctor_set(x_115, 10, x_112); +lean_ctor_set_uint8(x_115, sizeof(void*)*11, x_109); +lean_ctor_set_uint8(x_115, sizeof(void*)*11 + 1, x_110); +lean_ctor_set_uint8(x_115, sizeof(void*)*11 + 2, x_111); +x_116 = 1; +x_117 = l_Lean_Elab_Term_elabTerm(x_92, x_2, x_116, x_115, x_35); +return x_117; } } } } } -block_216: +block_218: +{ +if (x_128 == 0) { if (x_127 == 0) { -if (x_126 == 0) -{ -uint8_t x_128; -x_128 = 0; -x_20 = x_128; -goto block_124; +uint8_t x_129; +x_129 = 0; +x_20 = x_129; +goto block_125; } else { -lean_object* x_129; lean_object* x_130; uint8_t x_131; -x_129 = l_Lean_Syntax_getArgs(x_19); -x_130 = lean_array_get_size(x_129); -lean_dec(x_129); -x_131 = lean_nat_dec_eq(x_130, x_7); +lean_object* x_130; lean_object* x_131; uint8_t x_132; +x_130 = l_Lean_Syntax_getArgs(x_19); +x_131 = lean_array_get_size(x_130); lean_dec(x_130); -x_20 = x_131; -goto block_124; +x_132 = lean_nat_dec_eq(x_131, x_7); +lean_dec(x_131); +x_20 = x_132; +goto block_125; } } else { -lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; 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; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; uint8_t x_192; +lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; 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; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; uint8_t x_193; lean_dec(x_19); -x_132 = lean_unsigned_to_nat(4u); -x_133 = l_Lean_Syntax_getArg(x_8, x_132); +x_133 = lean_unsigned_to_nat(4u); +x_134 = l_Lean_Syntax_getArg(x_8, x_133); lean_dec(x_8); -x_134 = lean_unsigned_to_nat(3u); -x_135 = l_Lean_Syntax_getArg(x_1, x_134); -x_136 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); -x_137 = lean_ctor_get(x_136, 0); -lean_inc(x_137); -x_138 = lean_ctor_get(x_136, 1); +x_135 = lean_unsigned_to_nat(3u); +x_136 = l_Lean_Syntax_getArg(x_1, x_135); +x_137 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); +x_138 = lean_ctor_get(x_137, 0); lean_inc(x_138); -lean_dec(x_136); -x_139 = l_Lean_Elab_Term_getMainModule___rarg(x_138); -x_140 = lean_ctor_get(x_139, 0); -lean_inc(x_140); -x_141 = lean_ctor_get(x_139, 1); +x_139 = lean_ctor_get(x_137, 1); +lean_inc(x_139); +lean_dec(x_137); +x_140 = l_Lean_Elab_Term_getMainModule___rarg(x_139); +x_141 = lean_ctor_get(x_140, 0); lean_inc(x_141); -lean_dec(x_139); -x_142 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; -x_143 = l_Lean_addMacroScope(x_140, x_142, x_137); -x_144 = lean_box(0); -x_145 = l_Lean_SourceInfo_inhabited___closed__1; -x_146 = l_Lean_Elab_Term_elabLetDecl___closed__2; -x_147 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_147, 0, x_145); -lean_ctor_set(x_147, 1, x_146); -lean_ctor_set(x_147, 2, x_143); -lean_ctor_set(x_147, 3, x_144); -x_148 = l_Array_empty___closed__1; -x_149 = lean_array_push(x_148, x_147); -x_150 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__17; -x_151 = lean_array_push(x_149, x_150); -lean_inc(x_151); -x_152 = lean_array_push(x_151, x_150); -x_153 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; -x_154 = lean_array_push(x_152, x_153); -x_155 = lean_array_push(x_154, x_133); -x_156 = l_Lean_Parser_Term_letIdDecl___closed__2; -x_157 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_157, 0, x_156); -lean_ctor_set(x_157, 1, x_155); -x_158 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; -x_159 = lean_array_push(x_158, x_157); -x_160 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; -x_161 = lean_array_push(x_159, x_160); -x_162 = l_Lean_mkTermIdFromIdent___closed__2; -x_163 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_163, 0, x_162); -lean_ctor_set(x_163, 1, x_151); -x_164 = l_Lean_Elab_Term_elabLetDecl___closed__3; -x_165 = lean_array_push(x_164, x_163); -x_166 = l_Lean_Parser_Term_matchDiscr___elambda__1___closed__2; -x_167 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_167, 0, x_166); -lean_ctor_set(x_167, 1, x_165); -x_168 = lean_array_push(x_148, x_167); -x_169 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_169, 0, x_125); -lean_ctor_set(x_169, 1, x_168); -x_170 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__2; -x_171 = lean_array_push(x_170, x_169); -x_172 = lean_array_push(x_171, x_150); -x_173 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__4; -x_174 = lean_array_push(x_172, x_173); -x_175 = lean_array_push(x_174, x_150); -x_176 = lean_array_push(x_148, x_12); -x_177 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_177, 0, x_125); -lean_ctor_set(x_177, 1, x_176); -x_178 = lean_array_push(x_148, x_177); -x_179 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; -x_180 = lean_array_push(x_178, x_179); -x_181 = lean_array_push(x_180, x_135); -x_182 = l_Lean_Parser_Term_matchAlt___closed__2; -x_183 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_183, 0, x_182); -lean_ctor_set(x_183, 1, x_181); -x_184 = lean_array_push(x_148, x_183); -x_185 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_185, 0, x_125); -lean_ctor_set(x_185, 1, x_184); -x_186 = lean_array_push(x_175, x_185); -x_187 = l_Lean_Parser_Term_match___elambda__1___closed__1; -x_188 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_188, 0, x_187); -lean_ctor_set(x_188, 1, x_186); -x_189 = lean_array_push(x_161, x_188); -x_190 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_191 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_191, 0, x_190); -lean_ctor_set(x_191, 1, x_189); -x_192 = !lean_is_exclusive(x_3); -if (x_192 == 0) +x_142 = lean_ctor_get(x_140, 1); +lean_inc(x_142); +lean_dec(x_140); +x_143 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; +x_144 = l_Lean_addMacroScope(x_141, x_143, x_138); +x_145 = lean_box(0); +x_146 = l_Lean_SourceInfo_inhabited___closed__1; +x_147 = l_Lean_Elab_Term_elabLetDecl___closed__2; +x_148 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_148, 0, x_146); +lean_ctor_set(x_148, 1, x_147); +lean_ctor_set(x_148, 2, x_144); +lean_ctor_set(x_148, 3, x_145); +x_149 = l_Array_empty___closed__1; +x_150 = lean_array_push(x_149, x_148); +x_151 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__17; +x_152 = lean_array_push(x_150, x_151); +lean_inc(x_152); +x_153 = lean_array_push(x_152, x_151); +x_154 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; +x_155 = lean_array_push(x_153, x_154); +x_156 = lean_array_push(x_155, x_134); +x_157 = l_Lean_Parser_Term_letIdDecl___closed__2; +x_158 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_158, 0, x_157); +lean_ctor_set(x_158, 1, x_156); +x_159 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; +x_160 = lean_array_push(x_159, x_158); +x_161 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; +x_162 = lean_array_push(x_160, x_161); +x_163 = l_Lean_mkTermIdFromIdent___closed__2; +x_164 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_164, 0, x_163); +lean_ctor_set(x_164, 1, x_152); +x_165 = l_Lean_Elab_Term_elabLetDecl___closed__3; +x_166 = lean_array_push(x_165, x_164); +x_167 = l_Lean_Parser_Term_matchDiscr___elambda__1___closed__2; +x_168 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_168, 0, x_167); +lean_ctor_set(x_168, 1, x_166); +x_169 = lean_array_push(x_149, x_168); +x_170 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_170, 0, x_126); +lean_ctor_set(x_170, 1, x_169); +x_171 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__2; +x_172 = lean_array_push(x_171, x_170); +x_173 = lean_array_push(x_172, x_151); +x_174 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__4; +x_175 = lean_array_push(x_173, x_174); +x_176 = lean_array_push(x_175, x_151); +x_177 = lean_array_push(x_149, x_12); +x_178 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_178, 0, x_126); +lean_ctor_set(x_178, 1, x_177); +x_179 = lean_array_push(x_149, x_178); +x_180 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; +x_181 = lean_array_push(x_179, x_180); +x_182 = lean_array_push(x_181, x_136); +x_183 = l_Lean_Parser_Term_matchAlt___closed__2; +x_184 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_184, 0, x_183); +lean_ctor_set(x_184, 1, x_182); +x_185 = lean_array_push(x_149, x_184); +x_186 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_186, 0, x_126); +lean_ctor_set(x_186, 1, x_185); +x_187 = lean_array_push(x_176, x_186); +x_188 = l_Lean_Parser_Term_match___elambda__1___closed__1; +x_189 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_189, 0, x_188); +lean_ctor_set(x_189, 1, x_187); +x_190 = lean_array_push(x_162, x_189); +x_191 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_192 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_192, 0, x_191); +lean_ctor_set(x_192, 1, x_190); +x_193 = !lean_is_exclusive(x_3); +if (x_193 == 0) { -lean_object* x_193; lean_object* x_194; lean_object* x_195; uint8_t x_196; lean_object* x_197; -x_193 = lean_ctor_get(x_3, 8); -lean_inc(x_191); -x_194 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_194, 0, x_1); -lean_ctor_set(x_194, 1, x_191); -x_195 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_195, 0, x_194); -lean_ctor_set(x_195, 1, x_193); -lean_ctor_set(x_3, 8, x_195); -x_196 = 1; -x_197 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_196, x_196, x_191, x_3, x_141); -return x_197; +lean_object* x_194; lean_object* x_195; lean_object* x_196; uint8_t x_197; lean_object* x_198; +x_194 = lean_ctor_get(x_3, 8); +lean_inc(x_192); +x_195 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_195, 0, x_1); +lean_ctor_set(x_195, 1, x_192); +x_196 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_196, 0, x_195); +lean_ctor_set(x_196, 1, x_194); +lean_ctor_set(x_3, 8, x_196); +x_197 = 1; +x_198 = l_Lean_Elab_Term_elabTerm(x_192, x_2, x_197, x_3, x_142); +return x_198; } else { -lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; uint8_t x_208; uint8_t x_209; uint8_t x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; uint8_t x_214; lean_object* x_215; -x_198 = lean_ctor_get(x_3, 0); -x_199 = lean_ctor_get(x_3, 1); -x_200 = lean_ctor_get(x_3, 2); -x_201 = lean_ctor_get(x_3, 3); -x_202 = lean_ctor_get(x_3, 4); -x_203 = lean_ctor_get(x_3, 5); -x_204 = lean_ctor_get(x_3, 6); -x_205 = lean_ctor_get(x_3, 7); -x_206 = lean_ctor_get(x_3, 8); -x_207 = lean_ctor_get(x_3, 9); -x_208 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); -x_209 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); -x_210 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); +lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; uint8_t x_209; uint8_t x_210; uint8_t x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; uint8_t x_216; lean_object* x_217; +x_199 = lean_ctor_get(x_3, 0); +x_200 = lean_ctor_get(x_3, 1); +x_201 = lean_ctor_get(x_3, 2); +x_202 = lean_ctor_get(x_3, 3); +x_203 = lean_ctor_get(x_3, 4); +x_204 = lean_ctor_get(x_3, 5); +x_205 = lean_ctor_get(x_3, 6); +x_206 = lean_ctor_get(x_3, 7); +x_207 = lean_ctor_get(x_3, 8); +x_208 = lean_ctor_get(x_3, 9); +x_209 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_210 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_211 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +x_212 = lean_ctor_get(x_3, 10); +lean_inc(x_212); +lean_inc(x_208); lean_inc(x_207); lean_inc(x_206); lean_inc(x_205); @@ -23707,32 +23666,32 @@ lean_inc(x_202); lean_inc(x_201); lean_inc(x_200); lean_inc(x_199); -lean_inc(x_198); lean_dec(x_3); -lean_inc(x_191); -x_211 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_211, 0, x_1); -lean_ctor_set(x_211, 1, x_191); -x_212 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_212, 0, x_211); -lean_ctor_set(x_212, 1, x_206); -x_213 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_213, 0, x_198); -lean_ctor_set(x_213, 1, x_199); -lean_ctor_set(x_213, 2, x_200); -lean_ctor_set(x_213, 3, x_201); -lean_ctor_set(x_213, 4, x_202); -lean_ctor_set(x_213, 5, x_203); -lean_ctor_set(x_213, 6, x_204); -lean_ctor_set(x_213, 7, x_205); -lean_ctor_set(x_213, 8, x_212); -lean_ctor_set(x_213, 9, x_207); -lean_ctor_set_uint8(x_213, sizeof(void*)*10, x_208); -lean_ctor_set_uint8(x_213, sizeof(void*)*10 + 1, x_209); -lean_ctor_set_uint8(x_213, sizeof(void*)*10 + 2, x_210); -x_214 = 1; -x_215 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_214, x_214, x_191, x_213, x_141); -return x_215; +lean_inc(x_192); +x_213 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_213, 0, x_1); +lean_ctor_set(x_213, 1, x_192); +x_214 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_214, 0, x_213); +lean_ctor_set(x_214, 1, x_207); +x_215 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_215, 0, x_199); +lean_ctor_set(x_215, 1, x_200); +lean_ctor_set(x_215, 2, x_201); +lean_ctor_set(x_215, 3, x_202); +lean_ctor_set(x_215, 4, x_203); +lean_ctor_set(x_215, 5, x_204); +lean_ctor_set(x_215, 6, x_205); +lean_ctor_set(x_215, 7, x_206); +lean_ctor_set(x_215, 8, x_214); +lean_ctor_set(x_215, 9, x_208); +lean_ctor_set(x_215, 10, x_212); +lean_ctor_set_uint8(x_215, sizeof(void*)*11, x_209); +lean_ctor_set_uint8(x_215, sizeof(void*)*11 + 1, x_210); +lean_ctor_set_uint8(x_215, sizeof(void*)*11 + 2, x_211); +x_216 = 1; +x_217 = l_Lean_Elab_Term_elabTerm(x_192, x_2, x_216, x_215, x_142); +return x_217; } } } @@ -23741,131 +23700,133 @@ return x_215; } else { -lean_object* x_228; lean_object* x_229; lean_object* x_230; uint8_t x_231; lean_object* x_251; uint8_t x_252; -x_228 = l_Lean_Syntax_getArg(x_8, x_7); -x_229 = lean_unsigned_to_nat(2u); -x_230 = l_Lean_Syntax_getArg(x_8, x_229); -x_251 = l_Lean_nullKind___closed__2; -lean_inc(x_230); -x_252 = l_Lean_Syntax_isOfKind(x_230, x_251); -if (x_252 == 0) +lean_object* x_230; lean_object* x_231; lean_object* x_232; uint8_t x_233; lean_object* x_253; uint8_t x_254; +x_230 = l_Lean_Syntax_getArg(x_8, x_7); +x_231 = lean_unsigned_to_nat(2u); +x_232 = l_Lean_Syntax_getArg(x_8, x_231); +x_253 = l_Lean_nullKind___closed__2; +lean_inc(x_232); +x_254 = l_Lean_Syntax_isOfKind(x_232, x_253); +if (x_254 == 0) { -uint8_t x_253; -x_253 = 0; -x_231 = x_253; -goto block_250; +uint8_t x_255; +x_255 = 0; +x_233 = x_255; +goto block_252; } else { -lean_object* x_254; lean_object* x_255; uint8_t x_256; -x_254 = l_Lean_Syntax_getArgs(x_230); -x_255 = lean_array_get_size(x_254); -lean_dec(x_254); -x_256 = lean_nat_dec_eq(x_255, x_11); -if (x_256 == 0) +lean_object* x_256; lean_object* x_257; uint8_t x_258; +x_256 = l_Lean_Syntax_getArgs(x_232); +x_257 = lean_array_get_size(x_256); +lean_dec(x_256); +x_258 = lean_nat_dec_eq(x_257, x_11); +if (x_258 == 0) { -uint8_t x_257; -x_257 = lean_nat_dec_eq(x_255, x_7); -lean_dec(x_255); -x_231 = x_257; -goto block_250; +uint8_t x_259; +x_259 = lean_nat_dec_eq(x_257, x_7); +lean_dec(x_257); +x_233 = x_259; +goto block_252; } else { -lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; uint8_t x_265; lean_object* x_266; -lean_dec(x_255); -lean_dec(x_230); -x_258 = lean_unsigned_to_nat(4u); -x_259 = l_Lean_Syntax_getArg(x_8, x_258); +lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; uint8_t x_267; lean_object* x_268; +lean_dec(x_257); +lean_dec(x_232); +x_260 = lean_unsigned_to_nat(4u); +x_261 = l_Lean_Syntax_getArg(x_8, x_260); lean_dec(x_8); -x_260 = lean_unsigned_to_nat(3u); -x_261 = l_Lean_Syntax_getArg(x_1, x_260); -x_262 = l_Lean_Syntax_getArgs(x_228); -lean_dec(x_228); -x_263 = l_Lean_Syntax_getId(x_12); -lean_dec(x_12); -x_264 = l_Lean_mkHole(x_1); -x_265 = 1; -x_266 = l_Lean_Elab_Term_elabLetDeclAux(x_1, x_263, x_262, x_264, x_259, x_261, x_2, x_265, x_3, x_4); -lean_dec(x_262); -return x_266; -} -} -block_250: -{ -if (x_231 == 0) -{ -lean_object* x_232; +x_262 = lean_unsigned_to_nat(3u); +x_263 = l_Lean_Syntax_getArg(x_1, x_262); +x_264 = l_Lean_Syntax_getArgs(x_230); +lean_dec(x_230); +x_265 = l_Lean_Syntax_getId(x_12); +lean_dec(x_12); +x_266 = l_Lean_mkHole(x_1); +lean_dec(x_1); +x_267 = 1; +x_268 = l_Lean_Elab_Term_elabLetDeclAux(x_265, x_264, x_266, x_261, x_263, x_2, x_267, x_3, x_4); +lean_dec(x_264); +return x_268; +} +} +block_252: +{ +if (x_233 == 0) +{ +lean_object* x_234; +lean_dec(x_232); lean_dec(x_230); -lean_dec(x_228); lean_dec(x_12); lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_232 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_4); -return x_232; +x_234 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_4); +return x_234; } else { -lean_object* x_233; lean_object* x_234; uint8_t x_235; -x_233 = l_Lean_Syntax_getArg(x_230, x_11); +lean_object* x_235; lean_object* x_236; uint8_t x_237; +x_235 = l_Lean_Syntax_getArg(x_232, x_11); +lean_dec(x_232); +x_236 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__2; +lean_inc(x_235); +x_237 = l_Lean_Syntax_isOfKind(x_235, x_236); +if (x_237 == 0) +{ +lean_object* x_238; +lean_dec(x_235); lean_dec(x_230); -x_234 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__2; -lean_inc(x_233); -x_235 = l_Lean_Syntax_isOfKind(x_233, x_234); -if (x_235 == 0) -{ -lean_object* x_236; -lean_dec(x_233); -lean_dec(x_228); lean_dec(x_12); lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_236 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_4); -return x_236; +x_238 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_4); +return x_238; } else { -lean_object* x_237; lean_object* x_238; uint8_t x_239; -x_237 = l_Lean_Syntax_getArgs(x_233); -x_238 = lean_array_get_size(x_237); -lean_dec(x_237); -x_239 = lean_nat_dec_eq(x_238, x_229); -lean_dec(x_238); -if (x_239 == 0) +lean_object* x_239; lean_object* x_240; uint8_t x_241; +x_239 = l_Lean_Syntax_getArgs(x_235); +x_240 = lean_array_get_size(x_239); +lean_dec(x_239); +x_241 = lean_nat_dec_eq(x_240, x_231); +lean_dec(x_240); +if (x_241 == 0) { -lean_object* x_240; -lean_dec(x_233); -lean_dec(x_228); +lean_object* x_242; +lean_dec(x_235); +lean_dec(x_230); lean_dec(x_12); lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_240 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_4); -return x_240; +x_242 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_4); +return x_242; } else { -lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; uint8_t x_248; lean_object* x_249; -x_241 = l_Lean_Syntax_getArg(x_233, x_7); -lean_dec(x_233); -x_242 = lean_unsigned_to_nat(4u); -x_243 = l_Lean_Syntax_getArg(x_8, x_242); +lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; uint8_t x_250; lean_object* x_251; +x_243 = l_Lean_Syntax_getArg(x_235, x_7); +lean_dec(x_235); +x_244 = lean_unsigned_to_nat(4u); +x_245 = l_Lean_Syntax_getArg(x_8, x_244); lean_dec(x_8); -x_244 = lean_unsigned_to_nat(3u); -x_245 = l_Lean_Syntax_getArg(x_1, x_244); -x_246 = l_Lean_Syntax_getArgs(x_228); -lean_dec(x_228); -x_247 = l_Lean_Syntax_getId(x_12); +x_246 = lean_unsigned_to_nat(3u); +x_247 = l_Lean_Syntax_getArg(x_1, x_246); +lean_dec(x_1); +x_248 = l_Lean_Syntax_getArgs(x_230); +lean_dec(x_230); +x_249 = l_Lean_Syntax_getId(x_12); lean_dec(x_12); -x_248 = 1; -x_249 = l_Lean_Elab_Term_elabLetDeclAux(x_1, x_247, x_246, x_241, x_243, x_245, x_2, x_248, x_3, x_4); -lean_dec(x_246); -return x_249; +x_250 = 1; +x_251 = l_Lean_Elab_Term_elabLetDeclAux(x_249, x_248, x_243, x_245, x_247, x_2, x_250, x_3, x_4); +lean_dec(x_248); +return x_251; } } } @@ -23921,30 +23882,30 @@ return x_3; lean_object* l_Lean_Elab_Term_elabLetBangDecl(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -uint8_t x_5; lean_object* x_276; uint8_t x_277; -x_276 = l_Lean_Parser_Term_let_x21___elambda__1___closed__2; +uint8_t x_5; lean_object* x_278; uint8_t x_279; +x_278 = l_Lean_Parser_Term_let_x21___elambda__1___closed__2; lean_inc(x_1); -x_277 = l_Lean_Syntax_isOfKind(x_1, x_276); -if (x_277 == 0) +x_279 = l_Lean_Syntax_isOfKind(x_1, x_278); +if (x_279 == 0) { -uint8_t x_278; -x_278 = 0; -x_5 = x_278; -goto block_275; +uint8_t x_280; +x_280 = 0; +x_5 = x_280; +goto block_277; } else { -lean_object* x_279; lean_object* x_280; lean_object* x_281; uint8_t x_282; -x_279 = l_Lean_Syntax_getArgs(x_1); -x_280 = lean_array_get_size(x_279); -lean_dec(x_279); -x_281 = lean_unsigned_to_nat(4u); -x_282 = lean_nat_dec_eq(x_280, x_281); -lean_dec(x_280); -x_5 = x_282; -goto block_275; +lean_object* x_281; lean_object* x_282; lean_object* x_283; uint8_t x_284; +x_281 = l_Lean_Syntax_getArgs(x_1); +x_282 = lean_array_get_size(x_281); +lean_dec(x_281); +x_283 = lean_unsigned_to_nat(4u); +x_284 = lean_nat_dec_eq(x_282, x_283); +lean_dec(x_282); +x_5 = x_284; +goto block_277; } -block_275: +block_277: { if (x_5 == 0) { @@ -23957,32 +23918,32 @@ return x_6; } else { -lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_268; uint8_t x_269; +lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_270; uint8_t x_271; x_7 = lean_unsigned_to_nat(1u); x_8 = l_Lean_Syntax_getArg(x_1, x_7); -x_268 = l_Lean_Parser_Term_letIdDecl___closed__2; +x_270 = l_Lean_Parser_Term_letIdDecl___closed__2; lean_inc(x_8); -x_269 = l_Lean_Syntax_isOfKind(x_8, x_268); -if (x_269 == 0) +x_271 = l_Lean_Syntax_isOfKind(x_8, x_270); +if (x_271 == 0) { -uint8_t x_270; -x_270 = 0; -x_9 = x_270; -goto block_267; +uint8_t x_272; +x_272 = 0; +x_9 = x_272; +goto block_269; } else { -lean_object* x_271; lean_object* x_272; lean_object* x_273; uint8_t x_274; -x_271 = l_Lean_Syntax_getArgs(x_8); -x_272 = lean_array_get_size(x_271); -lean_dec(x_271); -x_273 = lean_unsigned_to_nat(5u); -x_274 = lean_nat_dec_eq(x_272, x_273); -lean_dec(x_272); -x_9 = x_274; -goto block_267; +lean_object* x_273; lean_object* x_274; lean_object* x_275; uint8_t x_276; +x_273 = l_Lean_Syntax_getArgs(x_8); +x_274 = lean_array_get_size(x_273); +lean_dec(x_273); +x_275 = lean_unsigned_to_nat(5u); +x_276 = lean_nat_dec_eq(x_274, x_275); +lean_dec(x_274); +x_9 = x_276; +goto block_269; } -block_267: +block_269: { if (x_9 == 0) { @@ -24004,32 +23965,32 @@ lean_inc(x_12); x_14 = l_Lean_Syntax_isOfKind(x_12, x_13); if (x_14 == 0) { -lean_object* x_15; uint8_t x_16; lean_object* x_222; uint8_t x_223; +lean_object* x_15; uint8_t x_16; lean_object* x_224; uint8_t x_225; x_15 = l_Lean_Syntax_getArg(x_8, x_7); -x_222 = l_Lean_nullKind___closed__2; +x_224 = l_Lean_nullKind___closed__2; lean_inc(x_15); -x_223 = l_Lean_Syntax_isOfKind(x_15, x_222); -if (x_223 == 0) +x_225 = l_Lean_Syntax_isOfKind(x_15, x_224); +if (x_225 == 0) { -uint8_t x_224; +uint8_t x_226; lean_dec(x_15); -x_224 = 0; -x_16 = x_224; -goto block_221; +x_226 = 0; +x_16 = x_226; +goto block_223; } else { -lean_object* x_225; lean_object* x_226; uint8_t x_227; -x_225 = l_Lean_Syntax_getArgs(x_15); +lean_object* x_227; lean_object* x_228; uint8_t x_229; +x_227 = l_Lean_Syntax_getArgs(x_15); lean_dec(x_15); -x_226 = lean_array_get_size(x_225); -lean_dec(x_225); -x_227 = lean_nat_dec_eq(x_226, x_11); -lean_dec(x_226); -x_16 = x_227; -goto block_221; +x_228 = lean_array_get_size(x_227); +lean_dec(x_227); +x_229 = lean_nat_dec_eq(x_228, x_11); +lean_dec(x_228); +x_16 = x_229; +goto block_223; } -block_221: +block_223: { if (x_16 == 0) { @@ -24044,31 +24005,31 @@ return x_17; } else { -lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_125; uint8_t x_126; uint8_t x_127; +lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_126; uint8_t x_127; uint8_t x_128; x_18 = lean_unsigned_to_nat(2u); x_19 = l_Lean_Syntax_getArg(x_8, x_18); -x_125 = l_Lean_nullKind___closed__2; +x_126 = l_Lean_nullKind___closed__2; lean_inc(x_19); -x_126 = l_Lean_Syntax_isOfKind(x_19, x_125); -if (x_126 == 0) +x_127 = l_Lean_Syntax_isOfKind(x_19, x_126); +if (x_127 == 0) { -uint8_t x_217; -x_217 = 0; -x_127 = x_217; -goto block_216; +uint8_t x_219; +x_219 = 0; +x_128 = x_219; +goto block_218; } else { -lean_object* x_218; lean_object* x_219; uint8_t x_220; -x_218 = l_Lean_Syntax_getArgs(x_19); -x_219 = lean_array_get_size(x_218); -lean_dec(x_218); -x_220 = lean_nat_dec_eq(x_219, x_11); -lean_dec(x_219); -x_127 = x_220; -goto block_216; +lean_object* x_220; lean_object* x_221; uint8_t x_222; +x_220 = l_Lean_Syntax_getArgs(x_19); +x_221 = lean_array_get_size(x_220); +lean_dec(x_220); +x_222 = lean_nat_dec_eq(x_221, x_11); +lean_dec(x_221); +x_128 = x_222; +goto block_218; } -block_124: +block_125: { if (x_20 == 0) { @@ -24084,31 +24045,31 @@ return x_21; } else { -lean_object* x_22; uint8_t x_23; lean_object* x_118; uint8_t x_119; +lean_object* x_22; uint8_t x_23; lean_object* x_119; uint8_t x_120; x_22 = l_Lean_Syntax_getArg(x_19, x_11); lean_dec(x_19); -x_118 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__2; +x_119 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__2; lean_inc(x_22); -x_119 = l_Lean_Syntax_isOfKind(x_22, x_118); -if (x_119 == 0) +x_120 = l_Lean_Syntax_isOfKind(x_22, x_119); +if (x_120 == 0) { -uint8_t x_120; -x_120 = 0; -x_23 = x_120; -goto block_117; +uint8_t x_121; +x_121 = 0; +x_23 = x_121; +goto block_118; } else { -lean_object* x_121; lean_object* x_122; uint8_t x_123; -x_121 = l_Lean_Syntax_getArgs(x_22); -x_122 = lean_array_get_size(x_121); -lean_dec(x_121); -x_123 = lean_nat_dec_eq(x_122, x_18); +lean_object* x_122; lean_object* x_123; uint8_t x_124; +x_122 = l_Lean_Syntax_getArgs(x_22); +x_123 = lean_array_get_size(x_122); lean_dec(x_122); -x_23 = x_123; -goto block_117; +x_124 = lean_nat_dec_eq(x_123, x_18); +lean_dec(x_123); +x_23 = x_124; +goto block_118; } -block_117: +block_118: { if (x_23 == 0) { @@ -24242,12 +24203,12 @@ lean_ctor_set(x_96, 0, x_95); lean_ctor_set(x_96, 1, x_94); lean_ctor_set(x_3, 8, x_96); x_97 = 1; -x_98 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_97, x_97, x_92, x_3, x_35); +x_98 = l_Lean_Elab_Term_elabTerm(x_92, x_2, x_97, x_3, x_35); return x_98; } else { -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; lean_object* x_106; lean_object* x_107; lean_object* x_108; uint8_t x_109; uint8_t x_110; uint8_t x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; lean_object* x_116; +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; lean_object* x_106; lean_object* x_107; lean_object* x_108; uint8_t x_109; uint8_t x_110; uint8_t x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; uint8_t x_116; lean_object* x_117; x_99 = lean_ctor_get(x_3, 0); x_100 = lean_ctor_get(x_3, 1); x_101 = lean_ctor_get(x_3, 2); @@ -24258,9 +24219,11 @@ x_105 = lean_ctor_get(x_3, 6); x_106 = lean_ctor_get(x_3, 7); x_107 = lean_ctor_get(x_3, 8); x_108 = lean_ctor_get(x_3, 9); -x_109 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); -x_110 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); -x_111 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); +x_109 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_110 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_111 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +x_112 = lean_ctor_get(x_3, 10); +lean_inc(x_112); lean_inc(x_108); lean_inc(x_107); lean_inc(x_106); @@ -24273,184 +24236,188 @@ lean_inc(x_100); lean_inc(x_99); lean_dec(x_3); lean_inc(x_92); -x_112 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_112, 0, x_1); -lean_ctor_set(x_112, 1, x_92); -x_113 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_113, 0, x_112); -lean_ctor_set(x_113, 1, x_107); -x_114 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_114, 0, x_99); -lean_ctor_set(x_114, 1, x_100); -lean_ctor_set(x_114, 2, x_101); -lean_ctor_set(x_114, 3, x_102); -lean_ctor_set(x_114, 4, x_103); -lean_ctor_set(x_114, 5, x_104); -lean_ctor_set(x_114, 6, x_105); -lean_ctor_set(x_114, 7, x_106); -lean_ctor_set(x_114, 8, x_113); -lean_ctor_set(x_114, 9, x_108); -lean_ctor_set_uint8(x_114, sizeof(void*)*10, x_109); -lean_ctor_set_uint8(x_114, sizeof(void*)*10 + 1, x_110); -lean_ctor_set_uint8(x_114, sizeof(void*)*10 + 2, x_111); -x_115 = 1; -x_116 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_115, x_115, x_92, x_114, x_35); -return x_116; +x_113 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_113, 0, x_1); +lean_ctor_set(x_113, 1, x_92); +x_114 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_114, 0, x_113); +lean_ctor_set(x_114, 1, x_107); +x_115 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_115, 0, x_99); +lean_ctor_set(x_115, 1, x_100); +lean_ctor_set(x_115, 2, x_101); +lean_ctor_set(x_115, 3, x_102); +lean_ctor_set(x_115, 4, x_103); +lean_ctor_set(x_115, 5, x_104); +lean_ctor_set(x_115, 6, x_105); +lean_ctor_set(x_115, 7, x_106); +lean_ctor_set(x_115, 8, x_114); +lean_ctor_set(x_115, 9, x_108); +lean_ctor_set(x_115, 10, x_112); +lean_ctor_set_uint8(x_115, sizeof(void*)*11, x_109); +lean_ctor_set_uint8(x_115, sizeof(void*)*11 + 1, x_110); +lean_ctor_set_uint8(x_115, sizeof(void*)*11 + 2, x_111); +x_116 = 1; +x_117 = l_Lean_Elab_Term_elabTerm(x_92, x_2, x_116, x_115, x_35); +return x_117; } } } } } -block_216: +block_218: +{ +if (x_128 == 0) { if (x_127 == 0) { -if (x_126 == 0) -{ -uint8_t x_128; -x_128 = 0; -x_20 = x_128; -goto block_124; +uint8_t x_129; +x_129 = 0; +x_20 = x_129; +goto block_125; } else { -lean_object* x_129; lean_object* x_130; uint8_t x_131; -x_129 = l_Lean_Syntax_getArgs(x_19); -x_130 = lean_array_get_size(x_129); -lean_dec(x_129); -x_131 = lean_nat_dec_eq(x_130, x_7); +lean_object* x_130; lean_object* x_131; uint8_t x_132; +x_130 = l_Lean_Syntax_getArgs(x_19); +x_131 = lean_array_get_size(x_130); lean_dec(x_130); -x_20 = x_131; -goto block_124; +x_132 = lean_nat_dec_eq(x_131, x_7); +lean_dec(x_131); +x_20 = x_132; +goto block_125; } } else { -lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; 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; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; uint8_t x_192; +lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; 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; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; uint8_t x_193; lean_dec(x_19); -x_132 = lean_unsigned_to_nat(4u); -x_133 = l_Lean_Syntax_getArg(x_8, x_132); +x_133 = lean_unsigned_to_nat(4u); +x_134 = l_Lean_Syntax_getArg(x_8, x_133); lean_dec(x_8); -x_134 = lean_unsigned_to_nat(3u); -x_135 = l_Lean_Syntax_getArg(x_1, x_134); -x_136 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); -x_137 = lean_ctor_get(x_136, 0); -lean_inc(x_137); -x_138 = lean_ctor_get(x_136, 1); +x_135 = lean_unsigned_to_nat(3u); +x_136 = l_Lean_Syntax_getArg(x_1, x_135); +x_137 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); +x_138 = lean_ctor_get(x_137, 0); lean_inc(x_138); -lean_dec(x_136); -x_139 = l_Lean_Elab_Term_getMainModule___rarg(x_138); -x_140 = lean_ctor_get(x_139, 0); -lean_inc(x_140); -x_141 = lean_ctor_get(x_139, 1); +x_139 = lean_ctor_get(x_137, 1); +lean_inc(x_139); +lean_dec(x_137); +x_140 = l_Lean_Elab_Term_getMainModule___rarg(x_139); +x_141 = lean_ctor_get(x_140, 0); lean_inc(x_141); -lean_dec(x_139); -x_142 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; -x_143 = l_Lean_addMacroScope(x_140, x_142, x_137); -x_144 = lean_box(0); -x_145 = l_Lean_SourceInfo_inhabited___closed__1; -x_146 = l_Lean_Elab_Term_elabLetDecl___closed__2; -x_147 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_147, 0, x_145); -lean_ctor_set(x_147, 1, x_146); -lean_ctor_set(x_147, 2, x_143); -lean_ctor_set(x_147, 3, x_144); -x_148 = l_Array_empty___closed__1; -x_149 = lean_array_push(x_148, x_147); -x_150 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__17; -x_151 = lean_array_push(x_149, x_150); -lean_inc(x_151); -x_152 = lean_array_push(x_151, x_150); -x_153 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; -x_154 = lean_array_push(x_152, x_153); -x_155 = lean_array_push(x_154, x_133); -x_156 = l_Lean_Parser_Term_letIdDecl___closed__2; -x_157 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_157, 0, x_156); -lean_ctor_set(x_157, 1, x_155); -x_158 = l_Lean_Elab_Term_elabLetBangDecl___closed__2; -x_159 = lean_array_push(x_158, x_157); -x_160 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; -x_161 = lean_array_push(x_159, x_160); -x_162 = l_Lean_mkTermIdFromIdent___closed__2; -x_163 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_163, 0, x_162); -lean_ctor_set(x_163, 1, x_151); -x_164 = l_Lean_Elab_Term_elabLetDecl___closed__3; -x_165 = lean_array_push(x_164, x_163); -x_166 = l_Lean_Parser_Term_matchDiscr___elambda__1___closed__2; -x_167 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_167, 0, x_166); -lean_ctor_set(x_167, 1, x_165); -x_168 = lean_array_push(x_148, x_167); -x_169 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_169, 0, x_125); -lean_ctor_set(x_169, 1, x_168); -x_170 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__2; -x_171 = lean_array_push(x_170, x_169); -x_172 = lean_array_push(x_171, x_150); -x_173 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__4; -x_174 = lean_array_push(x_172, x_173); -x_175 = lean_array_push(x_174, x_150); -x_176 = lean_array_push(x_148, x_12); -x_177 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_177, 0, x_125); -lean_ctor_set(x_177, 1, x_176); -x_178 = lean_array_push(x_148, x_177); -x_179 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; -x_180 = lean_array_push(x_178, x_179); -x_181 = lean_array_push(x_180, x_135); -x_182 = l_Lean_Parser_Term_matchAlt___closed__2; -x_183 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_183, 0, x_182); -lean_ctor_set(x_183, 1, x_181); -x_184 = lean_array_push(x_148, x_183); -x_185 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_185, 0, x_125); -lean_ctor_set(x_185, 1, x_184); -x_186 = lean_array_push(x_175, x_185); -x_187 = l_Lean_Parser_Term_match___elambda__1___closed__1; -x_188 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_188, 0, x_187); -lean_ctor_set(x_188, 1, x_186); -x_189 = lean_array_push(x_161, x_188); -x_190 = l_Lean_Parser_Term_let_x21___elambda__1___closed__2; -x_191 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_191, 0, x_190); -lean_ctor_set(x_191, 1, x_189); -x_192 = !lean_is_exclusive(x_3); -if (x_192 == 0) +x_142 = lean_ctor_get(x_140, 1); +lean_inc(x_142); +lean_dec(x_140); +x_143 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; +x_144 = l_Lean_addMacroScope(x_141, x_143, x_138); +x_145 = lean_box(0); +x_146 = l_Lean_SourceInfo_inhabited___closed__1; +x_147 = l_Lean_Elab_Term_elabLetDecl___closed__2; +x_148 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_148, 0, x_146); +lean_ctor_set(x_148, 1, x_147); +lean_ctor_set(x_148, 2, x_144); +lean_ctor_set(x_148, 3, x_145); +x_149 = l_Array_empty___closed__1; +x_150 = lean_array_push(x_149, x_148); +x_151 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__17; +x_152 = lean_array_push(x_150, x_151); +lean_inc(x_152); +x_153 = lean_array_push(x_152, x_151); +x_154 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; +x_155 = lean_array_push(x_153, x_154); +x_156 = lean_array_push(x_155, x_134); +x_157 = l_Lean_Parser_Term_letIdDecl___closed__2; +x_158 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_158, 0, x_157); +lean_ctor_set(x_158, 1, x_156); +x_159 = l_Lean_Elab_Term_elabLetBangDecl___closed__2; +x_160 = lean_array_push(x_159, x_158); +x_161 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; +x_162 = lean_array_push(x_160, x_161); +x_163 = l_Lean_mkTermIdFromIdent___closed__2; +x_164 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_164, 0, x_163); +lean_ctor_set(x_164, 1, x_152); +x_165 = l_Lean_Elab_Term_elabLetDecl___closed__3; +x_166 = lean_array_push(x_165, x_164); +x_167 = l_Lean_Parser_Term_matchDiscr___elambda__1___closed__2; +x_168 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_168, 0, x_167); +lean_ctor_set(x_168, 1, x_166); +x_169 = lean_array_push(x_149, x_168); +x_170 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_170, 0, x_126); +lean_ctor_set(x_170, 1, x_169); +x_171 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__2; +x_172 = lean_array_push(x_171, x_170); +x_173 = lean_array_push(x_172, x_151); +x_174 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__4; +x_175 = lean_array_push(x_173, x_174); +x_176 = lean_array_push(x_175, x_151); +x_177 = lean_array_push(x_149, x_12); +x_178 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_178, 0, x_126); +lean_ctor_set(x_178, 1, x_177); +x_179 = lean_array_push(x_149, x_178); +x_180 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; +x_181 = lean_array_push(x_179, x_180); +x_182 = lean_array_push(x_181, x_136); +x_183 = l_Lean_Parser_Term_matchAlt___closed__2; +x_184 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_184, 0, x_183); +lean_ctor_set(x_184, 1, x_182); +x_185 = lean_array_push(x_149, x_184); +x_186 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_186, 0, x_126); +lean_ctor_set(x_186, 1, x_185); +x_187 = lean_array_push(x_176, x_186); +x_188 = l_Lean_Parser_Term_match___elambda__1___closed__1; +x_189 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_189, 0, x_188); +lean_ctor_set(x_189, 1, x_187); +x_190 = lean_array_push(x_162, x_189); +x_191 = l_Lean_Parser_Term_let_x21___elambda__1___closed__2; +x_192 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_192, 0, x_191); +lean_ctor_set(x_192, 1, x_190); +x_193 = !lean_is_exclusive(x_3); +if (x_193 == 0) { -lean_object* x_193; lean_object* x_194; lean_object* x_195; uint8_t x_196; lean_object* x_197; -x_193 = lean_ctor_get(x_3, 8); -lean_inc(x_191); -x_194 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_194, 0, x_1); -lean_ctor_set(x_194, 1, x_191); -x_195 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_195, 0, x_194); -lean_ctor_set(x_195, 1, x_193); -lean_ctor_set(x_3, 8, x_195); -x_196 = 1; -x_197 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_196, x_196, x_191, x_3, x_141); -return x_197; +lean_object* x_194; lean_object* x_195; lean_object* x_196; uint8_t x_197; lean_object* x_198; +x_194 = lean_ctor_get(x_3, 8); +lean_inc(x_192); +x_195 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_195, 0, x_1); +lean_ctor_set(x_195, 1, x_192); +x_196 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_196, 0, x_195); +lean_ctor_set(x_196, 1, x_194); +lean_ctor_set(x_3, 8, x_196); +x_197 = 1; +x_198 = l_Lean_Elab_Term_elabTerm(x_192, x_2, x_197, x_3, x_142); +return x_198; } else { -lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; uint8_t x_208; uint8_t x_209; uint8_t x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; uint8_t x_214; lean_object* x_215; -x_198 = lean_ctor_get(x_3, 0); -x_199 = lean_ctor_get(x_3, 1); -x_200 = lean_ctor_get(x_3, 2); -x_201 = lean_ctor_get(x_3, 3); -x_202 = lean_ctor_get(x_3, 4); -x_203 = lean_ctor_get(x_3, 5); -x_204 = lean_ctor_get(x_3, 6); -x_205 = lean_ctor_get(x_3, 7); -x_206 = lean_ctor_get(x_3, 8); -x_207 = lean_ctor_get(x_3, 9); -x_208 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); -x_209 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); -x_210 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); +lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; uint8_t x_209; uint8_t x_210; uint8_t x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; uint8_t x_216; lean_object* x_217; +x_199 = lean_ctor_get(x_3, 0); +x_200 = lean_ctor_get(x_3, 1); +x_201 = lean_ctor_get(x_3, 2); +x_202 = lean_ctor_get(x_3, 3); +x_203 = lean_ctor_get(x_3, 4); +x_204 = lean_ctor_get(x_3, 5); +x_205 = lean_ctor_get(x_3, 6); +x_206 = lean_ctor_get(x_3, 7); +x_207 = lean_ctor_get(x_3, 8); +x_208 = lean_ctor_get(x_3, 9); +x_209 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_210 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_211 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +x_212 = lean_ctor_get(x_3, 10); +lean_inc(x_212); +lean_inc(x_208); lean_inc(x_207); lean_inc(x_206); lean_inc(x_205); @@ -24460,32 +24427,32 @@ lean_inc(x_202); lean_inc(x_201); lean_inc(x_200); lean_inc(x_199); -lean_inc(x_198); lean_dec(x_3); -lean_inc(x_191); -x_211 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_211, 0, x_1); -lean_ctor_set(x_211, 1, x_191); -x_212 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_212, 0, x_211); -lean_ctor_set(x_212, 1, x_206); -x_213 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_213, 0, x_198); -lean_ctor_set(x_213, 1, x_199); -lean_ctor_set(x_213, 2, x_200); -lean_ctor_set(x_213, 3, x_201); -lean_ctor_set(x_213, 4, x_202); -lean_ctor_set(x_213, 5, x_203); -lean_ctor_set(x_213, 6, x_204); -lean_ctor_set(x_213, 7, x_205); -lean_ctor_set(x_213, 8, x_212); -lean_ctor_set(x_213, 9, x_207); -lean_ctor_set_uint8(x_213, sizeof(void*)*10, x_208); -lean_ctor_set_uint8(x_213, sizeof(void*)*10 + 1, x_209); -lean_ctor_set_uint8(x_213, sizeof(void*)*10 + 2, x_210); -x_214 = 1; -x_215 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_214, x_214, x_191, x_213, x_141); -return x_215; +lean_inc(x_192); +x_213 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_213, 0, x_1); +lean_ctor_set(x_213, 1, x_192); +x_214 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_214, 0, x_213); +lean_ctor_set(x_214, 1, x_207); +x_215 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_215, 0, x_199); +lean_ctor_set(x_215, 1, x_200); +lean_ctor_set(x_215, 2, x_201); +lean_ctor_set(x_215, 3, x_202); +lean_ctor_set(x_215, 4, x_203); +lean_ctor_set(x_215, 5, x_204); +lean_ctor_set(x_215, 6, x_205); +lean_ctor_set(x_215, 7, x_206); +lean_ctor_set(x_215, 8, x_214); +lean_ctor_set(x_215, 9, x_208); +lean_ctor_set(x_215, 10, x_212); +lean_ctor_set_uint8(x_215, sizeof(void*)*11, x_209); +lean_ctor_set_uint8(x_215, sizeof(void*)*11 + 1, x_210); +lean_ctor_set_uint8(x_215, sizeof(void*)*11 + 2, x_211); +x_216 = 1; +x_217 = l_Lean_Elab_Term_elabTerm(x_192, x_2, x_216, x_215, x_142); +return x_217; } } } @@ -24494,131 +24461,133 @@ return x_215; } else { -lean_object* x_228; lean_object* x_229; lean_object* x_230; uint8_t x_231; lean_object* x_251; uint8_t x_252; -x_228 = l_Lean_Syntax_getArg(x_8, x_7); -x_229 = lean_unsigned_to_nat(2u); -x_230 = l_Lean_Syntax_getArg(x_8, x_229); -x_251 = l_Lean_nullKind___closed__2; -lean_inc(x_230); -x_252 = l_Lean_Syntax_isOfKind(x_230, x_251); -if (x_252 == 0) +lean_object* x_230; lean_object* x_231; lean_object* x_232; uint8_t x_233; lean_object* x_253; uint8_t x_254; +x_230 = l_Lean_Syntax_getArg(x_8, x_7); +x_231 = lean_unsigned_to_nat(2u); +x_232 = l_Lean_Syntax_getArg(x_8, x_231); +x_253 = l_Lean_nullKind___closed__2; +lean_inc(x_232); +x_254 = l_Lean_Syntax_isOfKind(x_232, x_253); +if (x_254 == 0) { -uint8_t x_253; -x_253 = 0; -x_231 = x_253; -goto block_250; +uint8_t x_255; +x_255 = 0; +x_233 = x_255; +goto block_252; } else { -lean_object* x_254; lean_object* x_255; uint8_t x_256; -x_254 = l_Lean_Syntax_getArgs(x_230); -x_255 = lean_array_get_size(x_254); -lean_dec(x_254); -x_256 = lean_nat_dec_eq(x_255, x_11); -if (x_256 == 0) +lean_object* x_256; lean_object* x_257; uint8_t x_258; +x_256 = l_Lean_Syntax_getArgs(x_232); +x_257 = lean_array_get_size(x_256); +lean_dec(x_256); +x_258 = lean_nat_dec_eq(x_257, x_11); +if (x_258 == 0) { -uint8_t x_257; -x_257 = lean_nat_dec_eq(x_255, x_7); -lean_dec(x_255); -x_231 = x_257; -goto block_250; +uint8_t x_259; +x_259 = lean_nat_dec_eq(x_257, x_7); +lean_dec(x_257); +x_233 = x_259; +goto block_252; } else { -lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; uint8_t x_265; lean_object* x_266; -lean_dec(x_255); -lean_dec(x_230); -x_258 = lean_unsigned_to_nat(4u); -x_259 = l_Lean_Syntax_getArg(x_8, x_258); +lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; uint8_t x_267; lean_object* x_268; +lean_dec(x_257); +lean_dec(x_232); +x_260 = lean_unsigned_to_nat(4u); +x_261 = l_Lean_Syntax_getArg(x_8, x_260); lean_dec(x_8); -x_260 = lean_unsigned_to_nat(3u); -x_261 = l_Lean_Syntax_getArg(x_1, x_260); -x_262 = l_Lean_Syntax_getArgs(x_228); -lean_dec(x_228); -x_263 = l_Lean_Syntax_getId(x_12); -lean_dec(x_12); -x_264 = l_Lean_mkHole(x_1); -x_265 = 0; -x_266 = l_Lean_Elab_Term_elabLetDeclAux(x_1, x_263, x_262, x_264, x_259, x_261, x_2, x_265, x_3, x_4); -lean_dec(x_262); -return x_266; -} -} -block_250: -{ -if (x_231 == 0) -{ -lean_object* x_232; +x_262 = lean_unsigned_to_nat(3u); +x_263 = l_Lean_Syntax_getArg(x_1, x_262); +x_264 = l_Lean_Syntax_getArgs(x_230); +lean_dec(x_230); +x_265 = l_Lean_Syntax_getId(x_12); +lean_dec(x_12); +x_266 = l_Lean_mkHole(x_1); +lean_dec(x_1); +x_267 = 0; +x_268 = l_Lean_Elab_Term_elabLetDeclAux(x_265, x_264, x_266, x_261, x_263, x_2, x_267, x_3, x_4); +lean_dec(x_264); +return x_268; +} +} +block_252: +{ +if (x_233 == 0) +{ +lean_object* x_234; +lean_dec(x_232); lean_dec(x_230); -lean_dec(x_228); lean_dec(x_12); lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_232 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_4); -return x_232; +x_234 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_4); +return x_234; } else { -lean_object* x_233; lean_object* x_234; uint8_t x_235; -x_233 = l_Lean_Syntax_getArg(x_230, x_11); +lean_object* x_235; lean_object* x_236; uint8_t x_237; +x_235 = l_Lean_Syntax_getArg(x_232, x_11); +lean_dec(x_232); +x_236 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__2; +lean_inc(x_235); +x_237 = l_Lean_Syntax_isOfKind(x_235, x_236); +if (x_237 == 0) +{ +lean_object* x_238; +lean_dec(x_235); lean_dec(x_230); -x_234 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__2; -lean_inc(x_233); -x_235 = l_Lean_Syntax_isOfKind(x_233, x_234); -if (x_235 == 0) -{ -lean_object* x_236; -lean_dec(x_233); -lean_dec(x_228); lean_dec(x_12); lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_236 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_4); -return x_236; +x_238 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_4); +return x_238; } else { -lean_object* x_237; lean_object* x_238; uint8_t x_239; -x_237 = l_Lean_Syntax_getArgs(x_233); -x_238 = lean_array_get_size(x_237); -lean_dec(x_237); -x_239 = lean_nat_dec_eq(x_238, x_229); -lean_dec(x_238); -if (x_239 == 0) +lean_object* x_239; lean_object* x_240; uint8_t x_241; +x_239 = l_Lean_Syntax_getArgs(x_235); +x_240 = lean_array_get_size(x_239); +lean_dec(x_239); +x_241 = lean_nat_dec_eq(x_240, x_231); +lean_dec(x_240); +if (x_241 == 0) { -lean_object* x_240; -lean_dec(x_233); -lean_dec(x_228); +lean_object* x_242; +lean_dec(x_235); +lean_dec(x_230); lean_dec(x_12); lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_240 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_4); -return x_240; +x_242 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_4); +return x_242; } else { -lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; uint8_t x_248; lean_object* x_249; -x_241 = l_Lean_Syntax_getArg(x_233, x_7); -lean_dec(x_233); -x_242 = lean_unsigned_to_nat(4u); -x_243 = l_Lean_Syntax_getArg(x_8, x_242); +lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; uint8_t x_250; lean_object* x_251; +x_243 = l_Lean_Syntax_getArg(x_235, x_7); +lean_dec(x_235); +x_244 = lean_unsigned_to_nat(4u); +x_245 = l_Lean_Syntax_getArg(x_8, x_244); lean_dec(x_8); -x_244 = lean_unsigned_to_nat(3u); -x_245 = l_Lean_Syntax_getArg(x_1, x_244); -x_246 = l_Lean_Syntax_getArgs(x_228); -lean_dec(x_228); -x_247 = l_Lean_Syntax_getId(x_12); +x_246 = lean_unsigned_to_nat(3u); +x_247 = l_Lean_Syntax_getArg(x_1, x_246); +lean_dec(x_1); +x_248 = l_Lean_Syntax_getArgs(x_230); +lean_dec(x_230); +x_249 = l_Lean_Syntax_getId(x_12); lean_dec(x_12); -x_248 = 0; -x_249 = l_Lean_Elab_Term_elabLetDeclAux(x_1, x_247, x_246, x_241, x_243, x_245, x_2, x_248, x_3, x_4); -lean_dec(x_246); -return x_249; +x_250 = 0; +x_251 = l_Lean_Elab_Term_elabLetDeclAux(x_249, x_248, x_243, x_245, x_247, x_2, x_250, x_3, x_4); +lean_dec(x_248); +return x_251; } } } diff --git a/stage0/stdlib/Lean/Elab/BuiltinNotation.c b/stage0/stdlib/Lean/Elab/BuiltinNotation.c index cd1236f83b..3a9f38dea8 100644 --- a/stage0/stdlib/Lean/Elab/BuiltinNotation.c +++ b/stage0/stdlib/Lean/Elab/BuiltinNotation.c @@ -15,7 +15,7 @@ extern "C" { #endif lean_object* l_Lean_Elab_Term_elabModN___closed__2; lean_object* l_Lean_Elab_Term_elabBAnd___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_mkAppM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkAppM(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabNativeRefl___closed__5; lean_object* l_Lean_Elab_Term_elabseqLeft___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabNe___closed__1; @@ -41,7 +41,7 @@ lean_object* l_Lean_Elab_Term_elabBAnd___closed__1; extern lean_object* l_Lean_Meta_mkLt___closed__4; extern lean_object* l_Lean_Expr_eq_x3f___closed__2; lean_object* l___regBuiltin_Lean_Elab_Term_elabBAnd___closed__1; -lean_object* l_Lean_Elab_Term_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_instantiateMVars(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__29; extern lean_object* l_Lean_Nat_HasQuote___closed__2; lean_object* l_Lean_Elab_Term_expandIf___closed__5; @@ -57,7 +57,7 @@ lean_object* l_Lean_Elab_Term_elabBOr___boxed(lean_object*, lean_object*, lean_o lean_object* l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__19; lean_object* l_Lean_Elab_Term_elabInfix(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandSubtype___closed__9; -lean_object* l_Lean_Elab_Term_inferType(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_inferType(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_eq___elambda__1___closed__2; lean_object* l___regBuiltin_Lean_Elab_Term_elabBAnd(lean_object*); lean_object* l_Lean_Elab_Term_elabInfixOp(lean_object*, lean_object*, lean_object*, lean_object*); @@ -70,7 +70,7 @@ extern lean_object* l_Lean_Parser_Term_seqLeft___elambda__1___closed__1; lean_object* l___regBuiltin_Lean_Elab_Term_elabEquiv(lean_object*); extern lean_object* l_Lean_Meta_mkDecideProof___closed__2; lean_object* l_Lean_Elab_Term_elabseqLeft___closed__3; -lean_object* l___private_Lean_Elab_BuiltinNotation_2__elabTParserMacroAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_BuiltinNotation_2__elabTParserMacroAux(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_where___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_elabAnonymousCtor___closed__11; lean_object* l___regBuiltin_Lean_Elab_Term_elabBNe(lean_object*); @@ -108,7 +108,7 @@ extern lean_object* l_Lean_Parser_Term_pow___elambda__1___closed__1; lean_object* l_Lean_Elab_Term_expandSubtype(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_parser_x21___elambda__1___closed__2; extern lean_object* l_Lean_Meta_evalNat___main___closed__10; -lean_object* l_Lean_Elab_Term_compileDecl(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_compileDecl(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabMul___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandIf___closed__7; lean_object* l_Lean_Elab_Term_elabModN___closed__4; @@ -127,10 +127,10 @@ extern lean_object* l_Lean_Parser_Term_gt___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_elabEquiv(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn___main(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabAppend___closed__1; -lean_object* l___private_Lean_Elab_BuiltinNotation_5__getPropToDecide(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_BuiltinNotation_5__getPropToDecide(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_getAppArgs___closed__1; extern lean_object* l___private_Lean_Meta_DiscrTree_6__shouldAddAsStar___closed__9; -lean_object* l_Lean_Elab_Term_mkAuxName(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkAuxName(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabAnd(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__33; lean_object* l_Lean_Elab_Term_expandSubtype___closed__11; @@ -167,11 +167,11 @@ lean_object* l___regBuiltin_Lean_Elab_Term_expandDollar___closed__1; lean_object* l___regBuiltin_Lean_Elab_Term_elabGT___closed__1; extern lean_object* l_Lean_mkAppStx___closed__8; lean_object* l_Lean_Elab_Term_expandSubtype___closed__1; -lean_object* l_Lean_Elab_Term_mkExpectedTypeHint(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkExpectedTypeHint(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabMap(lean_object*); extern lean_object* l_Lean_Elab_Term_expandCDot_x3f___closed__4; lean_object* l___regBuiltin_Lean_Elab_Term_expandShow___closed__1; -lean_object* l___private_Lean_Elab_Term_3__fromMetaState(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Term_3__fromMetaState(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabBNe___closed__1; lean_object* l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__32; lean_object* l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__10; @@ -181,13 +181,13 @@ extern lean_object* l_Lean_Parser_Term_prod___elambda__1___closed__2; lean_object* l_Lean_Meta_mkEqRefl(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabLT___closed__1; lean_object* l_Lean_Elab_Term_expandDollarProj(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_whnf(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_whnf(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__16; extern lean_object* l_Lean_Parser_Term_or___elambda__1___closed__2; lean_object* l___regBuiltin_Lean_Elab_Term_elabCons___closed__1; lean_object* l___regBuiltin_Lean_Elab_Term_elabAndThen(lean_object*); lean_object* l_Lean_Elab_Term_elabseq___closed__1; -lean_object* l_Lean_Elab_Term_addDecl(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_addDecl(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkTermIdFromIdent___closed__2; lean_object* l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabTParserMacro(lean_object*); @@ -248,6 +248,7 @@ lean_object* l___private_Lean_Elab_BuiltinNotation_2__elabTParserMacroAux___clos extern lean_object* l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__6; extern lean_object* l_Lean_Expr_heq_x3f___closed__2; lean_object* l_Lean_Elab_Term_elabDiv___closed__2; +lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabseqLeft___closed__1; lean_object* l_Lean_Elab_Term_expandIf___closed__4; lean_object* l___private_Lean_Elab_BuiltinNotation_2__elabTParserMacroAux___closed__2; @@ -287,14 +288,12 @@ lean_object* l_Lean_Elab_Term_elabAnonymousCtor___closed__8; extern lean_object* l_Lean_Meta_mkDecideProof___closed__4; lean_object* l_Lean_Elab_Term_elabProd___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor(lean_object*); -lean_object* l_Lean_Elab_Term_elabTermAux___main(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_repr(lean_object*); extern lean_object* l_Lean_Parser_Term_mod___elambda__1___closed__1; lean_object* l_Lean_Elab_Term_elabMapRev___closed__1; lean_object* l___regBuiltin_Lean_Elab_Term_elabEq___closed__1; extern lean_object* l_Lean_boolToExpr___closed__1; lean_object* l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__23; -lean_object* l___private_Lean_Elab_BuiltinNotation_2__elabTParserMacroAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabNativeDecide(lean_object*); lean_object* l_Lean_Elab_Term_elabSub(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_fcomp___elambda__1___closed__2; @@ -304,13 +303,13 @@ lean_object* l___regBuiltin_Lean_Elab_Term_elabAnd___closed__1; lean_object* l_Lean_Elab_Term_elabseqRight___closed__1; lean_object* lean_name_mk_string(lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__38; -lean_object* l_Lean_Elab_Term_throwError___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_throwError___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabBOr(lean_object*); extern lean_object* l_Lean_Parser_maxPrec; lean_object* l_Lean_Elab_Term_expandSubtype___closed__8; lean_object* l_Lean_Elab_Term_elabHEq(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_fun___elambda__1___closed__2; -lean_object* l___private_Lean_Elab_BuiltinNotation_3__mkNativeReflAuxDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_BuiltinNotation_3__mkNativeReflAuxDecl(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabLT(lean_object*); lean_object* l_Lean_Elab_Term_expandDollar___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabseqRight___closed__2; @@ -423,14 +422,12 @@ lean_object* l___regBuiltin_Lean_Elab_Term_elabDiv(lean_object*); lean_object* l_Lean_mkApp(lean_object*, lean_object*); extern lean_object* l_Lean_SourceInfo_inhabited___closed__1; uint8_t l_Lean_Expr_hasMVar(lean_object*); -lean_object* l___private_Lean_Elab_BuiltinNotation_5__getPropToDecide___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__26; extern lean_object* l_Lean_Parser_Term_let___elambda__1___closed__1; lean_object* l___regBuiltin_Lean_Elab_Term_elabAndM(lean_object*); lean_object* l_Lean_Syntax_getArgs(lean_object*); lean_object* l_Lean_Elab_Term_expandIf___closed__1; lean_object* l_Lean_Elab_Term_elabOrM___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_BuiltinNotation_3__mkNativeReflAuxDecl___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__3; lean_object* l___private_Lean_Elab_BuiltinNotation_5__getPropToDecide___closed__2; lean_object* l___private_Lean_Elab_BuiltinNotation_3__mkNativeReflAuxDecl___closed__1; @@ -554,7 +551,7 @@ extern lean_object* l_Lean_Parser_Term_bne___elambda__1___closed__1; extern lean_object* l_Lean_Parser_Term_map___elambda__1___closed__1; lean_object* l_Lean_Elab_Term_elabAndThen(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabTParserMacro___closed__1; -lean_object* l___private_Lean_Elab_Term_2__fromMetaException(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Term_2__fromMetaException(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabNativeRefl___closed__3; extern lean_object* l_Lean_Parser_Term_bindOp___elambda__1___closed__2; extern lean_object* l_Lean_Meta_caseValueAux___lambda__2___closed__7; @@ -569,7 +566,6 @@ lean_object* l_Lean_Elab_Term_elabNe(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_orelse___elambda__1___closed__1; lean_object* l_Lean_Elab_Term_ElabFComp___closed__2; lean_object* l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor___closed__1; -lean_object* l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabProd(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabSub___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabOrM___closed__1; @@ -585,7 +581,7 @@ lean_object* l_Lean_Elab_Term_elabNe___boxed(lean_object*, lean_object*, lean_ob lean_object* l_Lean_mkApp3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabSub___closed__3; lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_Elab_Term_expandWhere___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_Elab_BuiltinNotation_1__elabParserMacroAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabMapRev___closed__1; lean_object* l___regBuiltin_Lean_Elab_Term_elabIff(lean_object*); lean_object* l_Lean_Elab_Term_expandWhere(lean_object*, lean_object*, lean_object*); @@ -1846,30 +1842,30 @@ return x_2; lean_object* l_Lean_Elab_Term_elabAnonymousCtor(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -uint8_t x_5; lean_object* x_140; uint8_t x_141; -x_140 = l_Lean_Parser_Term_anonymousCtor___elambda__1___closed__2; +uint8_t x_5; lean_object* x_142; uint8_t x_143; +x_142 = l_Lean_Parser_Term_anonymousCtor___elambda__1___closed__2; lean_inc(x_1); -x_141 = l_Lean_Syntax_isOfKind(x_1, x_140); -if (x_141 == 0) +x_143 = l_Lean_Syntax_isOfKind(x_1, x_142); +if (x_143 == 0) { -uint8_t x_142; -x_142 = 0; -x_5 = x_142; -goto block_139; +uint8_t x_144; +x_144 = 0; +x_5 = x_144; +goto block_141; } else { -lean_object* x_143; lean_object* x_144; lean_object* x_145; uint8_t x_146; -x_143 = l_Lean_Syntax_getArgs(x_1); -x_144 = lean_array_get_size(x_143); -lean_dec(x_143); -x_145 = lean_unsigned_to_nat(3u); -x_146 = lean_nat_dec_eq(x_144, x_145); -lean_dec(x_144); -x_5 = x_146; -goto block_139; +lean_object* x_145; lean_object* x_146; lean_object* x_147; uint8_t x_148; +x_145 = l_Lean_Syntax_getArgs(x_1); +x_146 = lean_array_get_size(x_145); +lean_dec(x_145); +x_147 = lean_unsigned_to_nat(3u); +x_148 = lean_nat_dec_eq(x_146, x_147); +lean_dec(x_146); +x_5 = x_148; +goto block_141; } -block_139: +block_141: { if (x_5 == 0) { @@ -1894,12 +1890,12 @@ if (lean_obj_tag(x_2) == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_dec(x_9); +lean_dec(x_1); x_11 = lean_ctor_get(x_10, 1); lean_inc(x_11); lean_dec(x_10); x_12 = l_Lean_Elab_Term_elabAnonymousCtor___closed__3; -x_13 = l_Lean_Elab_Term_throwError___rarg(x_1, x_12, x_3, x_11); -lean_dec(x_1); +x_13 = l_Lean_Elab_Term_throwError___rarg(x_12, x_3, x_11); return x_13; } else @@ -1911,7 +1907,7 @@ lean_dec(x_10); x_15 = lean_ctor_get(x_2, 0); lean_inc(x_15); lean_inc(x_3); -x_16 = l_Lean_Elab_Term_instantiateMVars(x_1, x_15, x_3, x_14); +x_16 = l_Lean_Elab_Term_instantiateMVars(x_15, x_3, x_14); x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); x_18 = lean_ctor_get(x_16, 1); @@ -1940,6 +1936,7 @@ if (lean_obj_tag(x_48) == 0) lean_object* x_49; lean_dec(x_9); lean_dec(x_2); +lean_dec(x_1); x_49 = lean_box(0); x_32 = x_49; goto block_39; @@ -1964,6 +1961,7 @@ if (lean_obj_tag(x_52) == 0) lean_object* x_53; lean_dec(x_9); lean_dec(x_2); +lean_dec(x_1); x_53 = lean_box(0); x_40 = x_53; goto block_47; @@ -2023,12 +2021,12 @@ lean_ctor_set(x_52, 1, x_75); lean_ctor_set(x_52, 0, x_76); lean_ctor_set(x_3, 8, x_52); x_77 = 1; -x_78 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_77, x_77, x_73, x_3, x_61); +x_78 = l_Lean_Elab_Term_elabTerm(x_73, x_2, x_77, x_3, x_61); return x_78; } else { -lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; uint8_t x_89; uint8_t x_90; uint8_t x_91; lean_object* x_92; lean_object* x_93; uint8_t x_94; lean_object* x_95; +lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; uint8_t x_89; uint8_t x_90; uint8_t x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; uint8_t x_95; lean_object* x_96; x_79 = lean_ctor_get(x_3, 0); x_80 = lean_ctor_get(x_3, 1); x_81 = lean_ctor_get(x_3, 2); @@ -2039,9 +2037,11 @@ x_85 = lean_ctor_get(x_3, 6); x_86 = lean_ctor_get(x_3, 7); x_87 = lean_ctor_get(x_3, 8); x_88 = lean_ctor_get(x_3, 9); -x_89 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); -x_90 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); -x_91 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); +x_89 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_90 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_91 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +x_92 = lean_ctor_get(x_3, 10); +lean_inc(x_92); lean_inc(x_88); lean_inc(x_87); lean_inc(x_86); @@ -2054,85 +2054,88 @@ lean_inc(x_80); lean_inc(x_79); lean_dec(x_3); lean_inc(x_73); -x_92 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_92, 0, x_1); -lean_ctor_set(x_92, 1, x_73); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_1); +lean_ctor_set(x_93, 1, x_73); lean_ctor_set(x_52, 1, x_87); -lean_ctor_set(x_52, 0, x_92); -x_93 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_93, 0, x_79); -lean_ctor_set(x_93, 1, x_80); -lean_ctor_set(x_93, 2, x_81); -lean_ctor_set(x_93, 3, x_82); -lean_ctor_set(x_93, 4, x_83); -lean_ctor_set(x_93, 5, x_84); -lean_ctor_set(x_93, 6, x_85); -lean_ctor_set(x_93, 7, x_86); -lean_ctor_set(x_93, 8, x_52); -lean_ctor_set(x_93, 9, x_88); -lean_ctor_set_uint8(x_93, sizeof(void*)*10, x_89); -lean_ctor_set_uint8(x_93, sizeof(void*)*10 + 1, x_90); -lean_ctor_set_uint8(x_93, sizeof(void*)*10 + 2, x_91); -x_94 = 1; -x_95 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_94, x_94, x_73, x_93, x_61); -return x_95; +lean_ctor_set(x_52, 0, x_93); +x_94 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_94, 0, x_79); +lean_ctor_set(x_94, 1, x_80); +lean_ctor_set(x_94, 2, x_81); +lean_ctor_set(x_94, 3, x_82); +lean_ctor_set(x_94, 4, x_83); +lean_ctor_set(x_94, 5, x_84); +lean_ctor_set(x_94, 6, x_85); +lean_ctor_set(x_94, 7, x_86); +lean_ctor_set(x_94, 8, x_52); +lean_ctor_set(x_94, 9, x_88); +lean_ctor_set(x_94, 10, x_92); +lean_ctor_set_uint8(x_94, sizeof(void*)*11, x_89); +lean_ctor_set_uint8(x_94, sizeof(void*)*11 + 1, x_90); +lean_ctor_set_uint8(x_94, sizeof(void*)*11 + 2, x_91); +x_95 = 1; +x_96 = l_Lean_Elab_Term_elabTerm(x_73, x_2, x_95, x_94, x_61); +return x_96; } } else { -lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; uint8_t x_123; uint8_t x_124; uint8_t x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; uint8_t x_130; lean_object* x_131; -x_96 = lean_ctor_get(x_52, 0); -lean_inc(x_96); +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; uint8_t x_124; uint8_t x_125; uint8_t x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; uint8_t x_132; lean_object* x_133; +x_97 = lean_ctor_get(x_52, 0); +lean_inc(x_97); lean_dec(x_52); -x_97 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_31); -x_98 = lean_ctor_get(x_97, 1); -lean_inc(x_98); -lean_dec(x_97); -x_99 = l_Lean_Elab_Term_getMainModule___rarg(x_98); -x_100 = lean_ctor_get(x_99, 1); -lean_inc(x_100); -lean_dec(x_99); -x_101 = l_Lean_mkCTermIdFrom(x_1, x_96); -x_102 = l_Array_empty___closed__1; -x_103 = lean_array_push(x_102, x_101); -x_104 = lean_unsigned_to_nat(2u); -x_105 = lean_unsigned_to_nat(0u); -x_106 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_104, x_9, x_105, x_102); +x_98 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_31); +x_99 = lean_ctor_get(x_98, 1); +lean_inc(x_99); +lean_dec(x_98); +x_100 = l_Lean_Elab_Term_getMainModule___rarg(x_99); +x_101 = lean_ctor_get(x_100, 1); +lean_inc(x_101); +lean_dec(x_100); +x_102 = l_Lean_mkCTermIdFrom(x_1, x_97); +x_103 = l_Array_empty___closed__1; +x_104 = lean_array_push(x_103, x_102); +x_105 = lean_unsigned_to_nat(2u); +x_106 = lean_unsigned_to_nat(0u); +x_107 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_105, x_9, x_106, x_103); lean_dec(x_9); -x_107 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_106, x_106, x_105, x_102); -lean_dec(x_106); -x_108 = l_Lean_nullKind___closed__2; -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_108); -lean_ctor_set(x_109, 1, x_107); -x_110 = lean_array_push(x_103, x_109); -x_111 = l_Lean_mkAppStx___closed__8; -x_112 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_112, 0, x_111); -lean_ctor_set(x_112, 1, x_110); -x_113 = lean_ctor_get(x_3, 0); -lean_inc(x_113); -x_114 = lean_ctor_get(x_3, 1); +x_108 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_107, x_107, x_106, x_103); +lean_dec(x_107); +x_109 = l_Lean_nullKind___closed__2; +x_110 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_110, 0, x_109); +lean_ctor_set(x_110, 1, x_108); +x_111 = lean_array_push(x_104, x_110); +x_112 = l_Lean_mkAppStx___closed__8; +x_113 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_113, 0, x_112); +lean_ctor_set(x_113, 1, x_111); +x_114 = lean_ctor_get(x_3, 0); lean_inc(x_114); -x_115 = lean_ctor_get(x_3, 2); +x_115 = lean_ctor_get(x_3, 1); lean_inc(x_115); -x_116 = lean_ctor_get(x_3, 3); +x_116 = lean_ctor_get(x_3, 2); lean_inc(x_116); -x_117 = lean_ctor_get(x_3, 4); +x_117 = lean_ctor_get(x_3, 3); lean_inc(x_117); -x_118 = lean_ctor_get(x_3, 5); +x_118 = lean_ctor_get(x_3, 4); lean_inc(x_118); -x_119 = lean_ctor_get(x_3, 6); +x_119 = lean_ctor_get(x_3, 5); lean_inc(x_119); -x_120 = lean_ctor_get(x_3, 7); +x_120 = lean_ctor_get(x_3, 6); lean_inc(x_120); -x_121 = lean_ctor_get(x_3, 8); +x_121 = lean_ctor_get(x_3, 7); lean_inc(x_121); -x_122 = lean_ctor_get(x_3, 9); +x_122 = lean_ctor_get(x_3, 8); lean_inc(x_122); -x_123 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); -x_124 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); -x_125 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); +x_123 = lean_ctor_get(x_3, 9); +lean_inc(x_123); +x_124 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_125 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_126 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +x_127 = lean_ctor_get(x_3, 10); +lean_inc(x_127); if (lean_is_exclusive(x_3)) { lean_ctor_release(x_3, 0); lean_ctor_release(x_3, 1); @@ -2144,62 +2147,66 @@ if (lean_is_exclusive(x_3)) { lean_ctor_release(x_3, 7); lean_ctor_release(x_3, 8); lean_ctor_release(x_3, 9); - x_126 = x_3; + lean_ctor_release(x_3, 10); + x_128 = x_3; } else { lean_dec_ref(x_3); - x_126 = lean_box(0); + x_128 = lean_box(0); } -lean_inc(x_112); -x_127 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_127, 0, x_1); -lean_ctor_set(x_127, 1, x_112); -x_128 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_128, 0, x_127); -lean_ctor_set(x_128, 1, x_121); -if (lean_is_scalar(x_126)) { - x_129 = lean_alloc_ctor(0, 10, 3); +lean_inc(x_113); +x_129 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_129, 0, x_1); +lean_ctor_set(x_129, 1, x_113); +x_130 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_130, 0, x_129); +lean_ctor_set(x_130, 1, x_122); +if (lean_is_scalar(x_128)) { + x_131 = lean_alloc_ctor(0, 11, 3); } else { - x_129 = x_126; + x_131 = x_128; } -lean_ctor_set(x_129, 0, x_113); -lean_ctor_set(x_129, 1, x_114); -lean_ctor_set(x_129, 2, x_115); -lean_ctor_set(x_129, 3, x_116); -lean_ctor_set(x_129, 4, x_117); -lean_ctor_set(x_129, 5, x_118); -lean_ctor_set(x_129, 6, x_119); -lean_ctor_set(x_129, 7, x_120); -lean_ctor_set(x_129, 8, x_128); -lean_ctor_set(x_129, 9, x_122); -lean_ctor_set_uint8(x_129, sizeof(void*)*10, x_123); -lean_ctor_set_uint8(x_129, sizeof(void*)*10 + 1, x_124); -lean_ctor_set_uint8(x_129, sizeof(void*)*10 + 2, x_125); -x_130 = 1; -x_131 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_130, x_130, x_112, x_129, x_100); -return x_131; +lean_ctor_set(x_131, 0, x_114); +lean_ctor_set(x_131, 1, x_115); +lean_ctor_set(x_131, 2, x_116); +lean_ctor_set(x_131, 3, x_117); +lean_ctor_set(x_131, 4, x_118); +lean_ctor_set(x_131, 5, x_119); +lean_ctor_set(x_131, 6, x_120); +lean_ctor_set(x_131, 7, x_121); +lean_ctor_set(x_131, 8, x_130); +lean_ctor_set(x_131, 9, x_123); +lean_ctor_set(x_131, 10, x_127); +lean_ctor_set_uint8(x_131, sizeof(void*)*11, x_124); +lean_ctor_set_uint8(x_131, sizeof(void*)*11 + 1, x_125); +lean_ctor_set_uint8(x_131, sizeof(void*)*11 + 2, x_126); +x_132 = 1; +x_133 = l_Lean_Elab_Term_elabTerm(x_113, x_2, x_132, x_131, x_101); +return x_133; } } else { -lean_object* x_132; +lean_object* x_134; lean_dec(x_54); lean_dec(x_52); lean_dec(x_9); lean_dec(x_2); -x_132 = lean_box(0); -x_40 = x_132; +lean_dec(x_1); +x_134 = lean_box(0); +x_40 = x_134; goto block_47; } } } else { -lean_object* x_133; +lean_object* x_135; lean_dec(x_50); lean_dec(x_9); lean_dec(x_2); -x_133 = lean_box(0); -x_32 = x_133; +lean_dec(x_1); +x_135 = lean_box(0); +x_32 = x_135; goto block_39; } } @@ -2217,8 +2224,7 @@ x_36 = l_Lean_Elab_Term_elabAnonymousCtor___closed__12; x_37 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_37, 0, x_35); lean_ctor_set(x_37, 1, x_36); -x_38 = l_Lean_Elab_Term_throwError___rarg(x_1, x_37, x_3, x_31); -lean_dec(x_1); +x_38 = l_Lean_Elab_Term_throwError___rarg(x_37, x_3, x_31); return x_38; } block_47: @@ -2235,19 +2241,19 @@ x_44 = l_Lean_Elab_Term_elabAnonymousCtor___closed__15; x_45 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_45, 0, x_43); lean_ctor_set(x_45, 1, x_44); -x_46 = l_Lean_Elab_Term_throwError___rarg(x_1, x_45, x_3, x_31); -lean_dec(x_1); +x_46 = l_Lean_Elab_Term_throwError___rarg(x_45, x_3, x_31); return x_46; } } else { -lean_object* x_134; +lean_object* x_136; lean_dec(x_27); lean_dec(x_9); lean_dec(x_2); -x_134 = lean_box(0); -x_20 = x_134; +lean_dec(x_1); +x_136 = lean_box(0); +x_20 = x_136; goto block_26; } block_26: @@ -2261,36 +2267,35 @@ x_23 = l_Lean_Elab_Term_elabAnonymousCtor___closed__6; x_24 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_24, 0, x_23); lean_ctor_set(x_24, 1, x_22); -x_25 = l_Lean_Elab_Term_throwError___rarg(x_1, x_24, x_3, x_18); -lean_dec(x_1); +x_25 = l_Lean_Elab_Term_throwError___rarg(x_24, x_3, x_18); return x_25; } } } else { -uint8_t x_135; +uint8_t x_137; lean_dec(x_9); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_135 = !lean_is_exclusive(x_10); -if (x_135 == 0) +x_137 = !lean_is_exclusive(x_10); +if (x_137 == 0) { return x_10; } else { -lean_object* x_136; lean_object* x_137; lean_object* x_138; -x_136 = lean_ctor_get(x_10, 0); -x_137 = lean_ctor_get(x_10, 1); -lean_inc(x_137); -lean_inc(x_136); +lean_object* x_138; lean_object* x_139; lean_object* x_140; +x_138 = lean_ctor_get(x_10, 0); +x_139 = lean_ctor_get(x_10, 1); +lean_inc(x_139); +lean_inc(x_138); lean_dec(x_10); -x_138 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_138, 0, x_136); -lean_ctor_set(x_138, 1, x_137); -return x_138; +x_140 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_140, 0, x_138); +lean_ctor_set(x_140, 1, x_139); +return x_140; } } } @@ -3527,533 +3532,533 @@ lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_6; lean_object* x_7; -x_6 = l_Lean_Elab_Term_getDeclName_x3f(x_4, x_5); -x_7 = lean_ctor_get(x_6, 0); -lean_inc(x_7); -if (lean_obj_tag(x_7) == 0) +lean_object* x_5; lean_object* x_6; +x_5 = l_Lean_Elab_Term_getDeclName_x3f(x_3, x_4); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +if (lean_obj_tag(x_6) == 0) { -lean_object* x_8; lean_object* x_9; lean_object* x_10; -lean_dec(x_3); +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_dec(x_2); -x_8 = lean_ctor_get(x_6, 1); -lean_inc(x_8); -lean_dec(x_6); -x_9 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__6; -x_10 = l_Lean_Elab_Term_throwError___rarg(x_1, x_9, x_4, x_8); -return x_10; +lean_dec(x_1); +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); +lean_dec(x_5); +x_8 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__6; +x_9 = l_Lean_Elab_Term_throwError___rarg(x_8, x_3, x_7); +return x_9; } else { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_11 = lean_ctor_get(x_6, 1); +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_10 = lean_ctor_get(x_5, 1); +lean_inc(x_10); +lean_dec(x_5); +x_11 = lean_ctor_get(x_6, 0); lean_inc(x_11); lean_dec(x_6); -x_12 = lean_ctor_get(x_7, 0); -lean_inc(x_12); -lean_dec(x_7); -lean_inc(x_12); -x_13 = l_Lean_extractMacroScopes(x_12); -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -if (lean_obj_tag(x_14) == 1) +lean_inc(x_11); +x_12 = l_Lean_extractMacroScopes(x_11); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +if (lean_obj_tag(x_13) == 1) { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; -x_15 = lean_ctor_get(x_13, 3); +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; 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_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; +x_14 = lean_ctor_get(x_12, 3); +lean_inc(x_14); +lean_dec(x_12); +x_15 = lean_ctor_get(x_13, 1); lean_inc(x_15); lean_dec(x_13); -x_16 = lean_ctor_get(x_14, 1); -lean_inc(x_16); -lean_dec(x_14); -x_17 = l___private_Lean_Syntax_7__quoteName___main(x_12); -x_18 = l_Lean_SourceInfo_inhabited___closed__1; -x_19 = l_Lean_mkStxStrLit(x_16, x_18); -x_20 = l_Lean_mkOptionalNode___closed__2; -x_21 = lean_array_push(x_20, x_19); -x_22 = l_Lean_String_HasQuote___closed__2; -x_23 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_21); -x_24 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_11); -x_25 = lean_ctor_get(x_24, 0); +x_16 = l___private_Lean_Syntax_7__quoteName___main(x_11); +x_17 = l_Lean_SourceInfo_inhabited___closed__1; +x_18 = l_Lean_mkStxStrLit(x_15, x_17); +x_19 = l_Lean_mkOptionalNode___closed__2; +x_20 = lean_array_push(x_19, x_18); +x_21 = l_Lean_String_HasQuote___closed__2; +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_20); +x_23 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_10); +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); -lean_dec(x_24); -x_27 = l_Lean_Elab_Term_getMainModule___rarg(x_26); -x_28 = lean_ctor_get(x_27, 0); +lean_dec(x_23); +x_26 = l_Lean_Elab_Term_getMainModule___rarg(x_25); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_26, 1); lean_inc(x_28); -x_29 = lean_ctor_get(x_27, 1); -lean_inc(x_29); -lean_dec(x_27); -x_30 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__11; -x_31 = l_Lean_addMacroScope(x_28, x_30, x_25); -x_32 = lean_box(0); -x_33 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__9; -x_34 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__13; -x_35 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_35, 0, x_18); -lean_ctor_set(x_35, 1, x_33); -lean_ctor_set(x_35, 2, x_31); -lean_ctor_set(x_35, 3, x_34); -x_36 = l_Array_empty___closed__1; -x_37 = lean_array_push(x_36, x_35); -x_38 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; -x_39 = lean_array_push(x_37, x_38); -x_40 = l_Lean_mkTermIdFromIdent___closed__2; -x_41 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_39); -x_42 = lean_array_push(x_36, x_41); -x_43 = lean_array_push(x_36, x_17); -lean_inc(x_43); +lean_dec(x_26); +x_29 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__11; +x_30 = l_Lean_addMacroScope(x_27, x_29, x_24); +x_31 = lean_box(0); +x_32 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__9; +x_33 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__13; +x_34 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_34, 0, x_17); +lean_ctor_set(x_34, 1, x_32); +lean_ctor_set(x_34, 2, x_30); +lean_ctor_set(x_34, 3, x_33); +x_35 = l_Array_empty___closed__1; +x_36 = lean_array_push(x_35, x_34); +x_37 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; +x_38 = lean_array_push(x_36, x_37); +x_39 = l_Lean_mkTermIdFromIdent___closed__2; +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_38); +x_41 = lean_array_push(x_35, x_40); +x_42 = lean_array_push(x_35, x_16); +lean_inc(x_42); +x_43 = lean_array_push(x_42, x_1); x_44 = lean_array_push(x_43, x_2); -x_45 = lean_array_push(x_44, x_3); -x_46 = l_Lean_nullKind___closed__2; -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -x_48 = lean_array_push(x_42, x_47); -x_49 = l_Lean_mkAppStx___closed__8; -x_50 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_50, 0, x_49); -lean_ctor_set(x_50, 1, x_48); -x_51 = l_List_beq___main___at___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___spec__1(x_15, x_32); -lean_dec(x_15); -if (x_51 == 0) -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; -lean_dec(x_43); -x_52 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_29); -lean_dec(x_4); -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_55 = l_Lean_Elab_Term_getMainModule___rarg(x_54); -x_56 = !lean_is_exclusive(x_55); -if (x_56 == 0) -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; -x_57 = lean_ctor_get(x_55, 0); -x_58 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__19; -lean_inc(x_53); -lean_inc(x_57); -x_59 = l_Lean_addMacroScope(x_57, x_58, x_53); -x_60 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__16; -x_61 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__21; -x_62 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_62, 0, x_18); -lean_ctor_set(x_62, 1, x_60); -lean_ctor_set(x_62, 2, x_59); -lean_ctor_set(x_62, 3, x_61); -x_63 = lean_array_push(x_36, x_62); -x_64 = lean_array_push(x_63, x_38); -x_65 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_65, 0, x_40); -lean_ctor_set(x_65, 1, x_64); -x_66 = lean_array_push(x_36, x_65); -x_67 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__26; -lean_inc(x_53); -lean_inc(x_57); -x_68 = l_Lean_addMacroScope(x_57, x_67, x_53); -x_69 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__24; -x_70 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__28; -x_71 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_71, 0, x_18); -lean_ctor_set(x_71, 1, x_69); -lean_ctor_set(x_71, 2, x_68); -lean_ctor_set(x_71, 3, x_70); -x_72 = lean_array_push(x_36, x_71); -x_73 = lean_array_push(x_72, x_38); -x_74 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_74, 0, x_40); -lean_ctor_set(x_74, 1, x_73); -x_75 = lean_array_push(x_36, x_74); -x_76 = lean_array_push(x_36, x_23); -x_77 = l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__38; -x_78 = l_Lean_addMacroScope(x_57, x_77, x_53); -x_79 = l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__37; -x_80 = l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__40; -x_81 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_81, 0, x_18); -lean_ctor_set(x_81, 1, x_79); -lean_ctor_set(x_81, 2, x_78); -lean_ctor_set(x_81, 3, x_80); -x_82 = lean_array_push(x_36, x_81); -x_83 = lean_array_push(x_82, x_38); -x_84 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_84, 0, x_40); -lean_ctor_set(x_84, 1, x_83); -x_85 = lean_array_push(x_76, x_84); -x_86 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_86, 0, x_46); -lean_ctor_set(x_86, 1, x_85); -x_87 = lean_array_push(x_75, x_86); -x_88 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_88, 0, x_49); -lean_ctor_set(x_88, 1, x_87); -x_89 = lean_array_push(x_36, x_88); -x_90 = lean_array_push(x_89, x_38); -x_91 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_91, 0, x_46); -lean_ctor_set(x_91, 1, x_90); -x_92 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__4; -x_93 = lean_array_push(x_92, x_91); -x_94 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__6; -x_95 = lean_array_push(x_93, x_94); -x_96 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__2; -x_97 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_97, 0, x_96); -lean_ctor_set(x_97, 1, x_95); -x_98 = lean_array_push(x_36, x_97); -x_99 = lean_array_push(x_98, x_50); -x_100 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_100, 0, x_46); -lean_ctor_set(x_100, 1, x_99); -x_101 = lean_array_push(x_66, x_100); -x_102 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_102, 0, x_49); -lean_ctor_set(x_102, 1, x_101); -lean_ctor_set(x_55, 0, x_102); -return x_55; -} -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; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; -x_103 = lean_ctor_get(x_55, 0); -x_104 = lean_ctor_get(x_55, 1); -lean_inc(x_104); -lean_inc(x_103); -lean_dec(x_55); -x_105 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__19; -lean_inc(x_53); -lean_inc(x_103); -x_106 = l_Lean_addMacroScope(x_103, x_105, x_53); -x_107 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__16; -x_108 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__21; -x_109 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_109, 0, x_18); -lean_ctor_set(x_109, 1, x_107); -lean_ctor_set(x_109, 2, x_106); -lean_ctor_set(x_109, 3, x_108); -x_110 = lean_array_push(x_36, x_109); -x_111 = lean_array_push(x_110, x_38); -x_112 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_112, 0, x_40); -lean_ctor_set(x_112, 1, x_111); -x_113 = lean_array_push(x_36, x_112); -x_114 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__26; -lean_inc(x_53); -lean_inc(x_103); -x_115 = l_Lean_addMacroScope(x_103, x_114, x_53); -x_116 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__24; -x_117 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__28; -x_118 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_118, 0, x_18); -lean_ctor_set(x_118, 1, x_116); -lean_ctor_set(x_118, 2, x_115); -lean_ctor_set(x_118, 3, x_117); -x_119 = lean_array_push(x_36, x_118); -x_120 = lean_array_push(x_119, x_38); -x_121 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_121, 0, x_40); -lean_ctor_set(x_121, 1, x_120); -x_122 = lean_array_push(x_36, x_121); -x_123 = lean_array_push(x_36, x_23); -x_124 = l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__38; -x_125 = l_Lean_addMacroScope(x_103, x_124, x_53); -x_126 = l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__37; -x_127 = l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__40; -x_128 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_128, 0, x_18); -lean_ctor_set(x_128, 1, x_126); -lean_ctor_set(x_128, 2, x_125); -lean_ctor_set(x_128, 3, x_127); -x_129 = lean_array_push(x_36, x_128); -x_130 = lean_array_push(x_129, x_38); -x_131 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_131, 0, x_40); -lean_ctor_set(x_131, 1, x_130); -x_132 = lean_array_push(x_123, x_131); -x_133 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_133, 0, x_46); -lean_ctor_set(x_133, 1, x_132); -x_134 = lean_array_push(x_122, x_133); -x_135 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_135, 0, x_49); -lean_ctor_set(x_135, 1, x_134); -x_136 = lean_array_push(x_36, x_135); -x_137 = lean_array_push(x_136, x_38); -x_138 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_138, 0, x_46); -lean_ctor_set(x_138, 1, x_137); -x_139 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__4; -x_140 = lean_array_push(x_139, x_138); -x_141 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__6; -x_142 = lean_array_push(x_140, x_141); -x_143 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__2; -x_144 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_144, 0, x_143); -lean_ctor_set(x_144, 1, x_142); -x_145 = lean_array_push(x_36, x_144); -x_146 = lean_array_push(x_145, x_50); -x_147 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_147, 0, x_46); -lean_ctor_set(x_147, 1, x_146); -x_148 = lean_array_push(x_113, x_147); -x_149 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_149, 0, x_49); -lean_ctor_set(x_149, 1, x_148); -x_150 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_150, 0, x_149); -lean_ctor_set(x_150, 1, x_104); -return x_150; -} -} -else -{ -lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; uint8_t x_155; -x_151 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_29); -lean_dec(x_4); -x_152 = lean_ctor_get(x_151, 0); -lean_inc(x_152); -x_153 = lean_ctor_get(x_151, 1); -lean_inc(x_153); -lean_dec(x_151); -x_154 = l_Lean_Elab_Term_getMainModule___rarg(x_153); -x_155 = !lean_is_exclusive(x_154); -if (x_155 == 0) -{ -lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; -x_156 = lean_ctor_get(x_154, 0); -x_157 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__19; -lean_inc(x_152); -lean_inc(x_156); -x_158 = l_Lean_addMacroScope(x_156, x_157, x_152); -x_159 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__16; -x_160 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__21; -x_161 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_161, 0, x_18); -lean_ctor_set(x_161, 1, x_159); -lean_ctor_set(x_161, 2, x_158); -lean_ctor_set(x_161, 3, x_160); -x_162 = lean_array_push(x_36, x_161); -x_163 = lean_array_push(x_162, x_38); -x_164 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_164, 0, x_40); -lean_ctor_set(x_164, 1, x_163); -x_165 = lean_array_push(x_36, x_164); -x_166 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__26; -lean_inc(x_152); -lean_inc(x_156); -x_167 = l_Lean_addMacroScope(x_156, x_166, x_152); -x_168 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__24; -x_169 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__28; -x_170 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_170, 0, x_18); -lean_ctor_set(x_170, 1, x_168); -lean_ctor_set(x_170, 2, x_167); -lean_ctor_set(x_170, 3, x_169); -x_171 = lean_array_push(x_36, x_170); -x_172 = lean_array_push(x_171, x_38); -x_173 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_173, 0, x_40); -lean_ctor_set(x_173, 1, x_172); -x_174 = lean_array_push(x_36, x_173); -x_175 = lean_array_push(x_36, x_23); -x_176 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__31; -x_177 = l_Lean_addMacroScope(x_156, x_176, x_152); -x_178 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__30; -x_179 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__34; -x_180 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_180, 0, x_18); -lean_ctor_set(x_180, 1, x_178); -lean_ctor_set(x_180, 2, x_177); -lean_ctor_set(x_180, 3, x_179); -x_181 = lean_array_push(x_36, x_180); -x_182 = lean_array_push(x_181, x_38); -x_183 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_183, 0, x_40); -lean_ctor_set(x_183, 1, x_182); -x_184 = lean_array_push(x_36, x_183); -x_185 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_185, 0, x_46); -lean_ctor_set(x_185, 1, x_43); -x_186 = lean_array_push(x_184, x_185); -x_187 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_187, 0, x_49); -lean_ctor_set(x_187, 1, x_186); -x_188 = lean_array_push(x_36, x_187); -x_189 = lean_array_push(x_188, x_38); -x_190 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_190, 0, x_46); -lean_ctor_set(x_190, 1, x_189); -x_191 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__4; -x_192 = lean_array_push(x_191, x_190); -x_193 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__6; -x_194 = lean_array_push(x_192, x_193); -x_195 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__2; -x_196 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_196, 0, x_195); -lean_ctor_set(x_196, 1, x_194); -x_197 = lean_array_push(x_175, x_196); -x_198 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_198, 0, x_46); -lean_ctor_set(x_198, 1, x_197); -x_199 = lean_array_push(x_174, x_198); -x_200 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_200, 0, x_49); -lean_ctor_set(x_200, 1, x_199); -x_201 = lean_array_push(x_36, x_200); -x_202 = lean_array_push(x_201, x_38); -x_203 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_203, 0, x_46); -lean_ctor_set(x_203, 1, x_202); -x_204 = lean_array_push(x_191, x_203); -x_205 = lean_array_push(x_204, x_193); -x_206 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_206, 0, x_195); -lean_ctor_set(x_206, 1, x_205); -x_207 = lean_array_push(x_36, x_206); -x_208 = lean_array_push(x_207, x_50); -x_209 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_209, 0, x_46); -lean_ctor_set(x_209, 1, x_208); -x_210 = lean_array_push(x_165, x_209); -x_211 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_211, 0, x_49); -lean_ctor_set(x_211, 1, x_210); -lean_ctor_set(x_154, 0, x_211); -return x_154; -} -else -{ -lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; -x_212 = lean_ctor_get(x_154, 0); -x_213 = lean_ctor_get(x_154, 1); -lean_inc(x_213); -lean_inc(x_212); -lean_dec(x_154); -x_214 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__19; -lean_inc(x_152); -lean_inc(x_212); -x_215 = l_Lean_addMacroScope(x_212, x_214, x_152); -x_216 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__16; -x_217 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__21; -x_218 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_218, 0, x_18); -lean_ctor_set(x_218, 1, x_216); -lean_ctor_set(x_218, 2, x_215); -lean_ctor_set(x_218, 3, x_217); -x_219 = lean_array_push(x_36, x_218); -x_220 = lean_array_push(x_219, x_38); -x_221 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_221, 0, x_40); -lean_ctor_set(x_221, 1, x_220); -x_222 = lean_array_push(x_36, x_221); -x_223 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__26; -lean_inc(x_152); -lean_inc(x_212); -x_224 = l_Lean_addMacroScope(x_212, x_223, x_152); -x_225 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__24; -x_226 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__28; -x_227 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_227, 0, x_18); -lean_ctor_set(x_227, 1, x_225); -lean_ctor_set(x_227, 2, x_224); -lean_ctor_set(x_227, 3, x_226); -x_228 = lean_array_push(x_36, x_227); -x_229 = lean_array_push(x_228, x_38); -x_230 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_230, 0, x_40); -lean_ctor_set(x_230, 1, x_229); -x_231 = lean_array_push(x_36, x_230); -x_232 = lean_array_push(x_36, x_23); -x_233 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__31; -x_234 = l_Lean_addMacroScope(x_212, x_233, x_152); -x_235 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__30; -x_236 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__34; -x_237 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_237, 0, x_18); -lean_ctor_set(x_237, 1, x_235); -lean_ctor_set(x_237, 2, x_234); -lean_ctor_set(x_237, 3, x_236); -x_238 = lean_array_push(x_36, x_237); -x_239 = lean_array_push(x_238, x_38); -x_240 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_240, 0, x_40); -lean_ctor_set(x_240, 1, x_239); -x_241 = lean_array_push(x_36, x_240); -x_242 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_242, 0, x_46); -lean_ctor_set(x_242, 1, x_43); -x_243 = lean_array_push(x_241, x_242); -x_244 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_244, 0, x_49); -lean_ctor_set(x_244, 1, x_243); -x_245 = lean_array_push(x_36, x_244); -x_246 = lean_array_push(x_245, x_38); -x_247 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_247, 0, x_46); -lean_ctor_set(x_247, 1, x_246); -x_248 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__4; -x_249 = lean_array_push(x_248, x_247); -x_250 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__6; -x_251 = lean_array_push(x_249, x_250); -x_252 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__2; -x_253 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_253, 0, x_252); -lean_ctor_set(x_253, 1, x_251); -x_254 = lean_array_push(x_232, x_253); -x_255 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_255, 0, x_46); -lean_ctor_set(x_255, 1, x_254); -x_256 = lean_array_push(x_231, x_255); -x_257 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_257, 0, x_49); -lean_ctor_set(x_257, 1, x_256); -x_258 = lean_array_push(x_36, x_257); -x_259 = lean_array_push(x_258, x_38); -x_260 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_260, 0, x_46); -lean_ctor_set(x_260, 1, x_259); -x_261 = lean_array_push(x_248, x_260); -x_262 = lean_array_push(x_261, x_250); -x_263 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_263, 0, x_252); -lean_ctor_set(x_263, 1, x_262); -x_264 = lean_array_push(x_36, x_263); -x_265 = lean_array_push(x_264, x_50); -x_266 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_266, 0, x_46); -lean_ctor_set(x_266, 1, x_265); -x_267 = lean_array_push(x_222, x_266); -x_268 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_268, 0, x_49); -lean_ctor_set(x_268, 1, x_267); -x_269 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_269, 0, x_268); -lean_ctor_set(x_269, 1, x_213); -return x_269; -} -} -} -else -{ -lean_object* x_270; lean_object* x_271; +x_45 = l_Lean_nullKind___closed__2; +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_44); +x_47 = lean_array_push(x_41, x_46); +x_48 = l_Lean_mkAppStx___closed__8; +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_47); +x_50 = l_List_beq___main___at___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___spec__1(x_14, x_31); lean_dec(x_14); +if (x_50 == 0) +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; +lean_dec(x_42); +x_51 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_28); +lean_dec(x_3); +x_52 = lean_ctor_get(x_51, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_51, 1); +lean_inc(x_53); +lean_dec(x_51); +x_54 = l_Lean_Elab_Term_getMainModule___rarg(x_53); +x_55 = !lean_is_exclusive(x_54); +if (x_55 == 0) +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_56 = lean_ctor_get(x_54, 0); +x_57 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__19; +lean_inc(x_52); +lean_inc(x_56); +x_58 = l_Lean_addMacroScope(x_56, x_57, x_52); +x_59 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__16; +x_60 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__21; +x_61 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_61, 0, x_17); +lean_ctor_set(x_61, 1, x_59); +lean_ctor_set(x_61, 2, x_58); +lean_ctor_set(x_61, 3, x_60); +x_62 = lean_array_push(x_35, x_61); +x_63 = lean_array_push(x_62, x_37); +x_64 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_64, 0, x_39); +lean_ctor_set(x_64, 1, x_63); +x_65 = lean_array_push(x_35, x_64); +x_66 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__26; +lean_inc(x_52); +lean_inc(x_56); +x_67 = l_Lean_addMacroScope(x_56, x_66, x_52); +x_68 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__24; +x_69 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__28; +x_70 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_70, 0, x_17); +lean_ctor_set(x_70, 1, x_68); +lean_ctor_set(x_70, 2, x_67); +lean_ctor_set(x_70, 3, x_69); +x_71 = lean_array_push(x_35, x_70); +x_72 = lean_array_push(x_71, x_37); +x_73 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_73, 0, x_39); +lean_ctor_set(x_73, 1, x_72); +x_74 = lean_array_push(x_35, x_73); +x_75 = lean_array_push(x_35, x_22); +x_76 = l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__38; +x_77 = l_Lean_addMacroScope(x_56, x_76, x_52); +x_78 = l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__37; +x_79 = l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__40; +x_80 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_80, 0, x_17); +lean_ctor_set(x_80, 1, x_78); +lean_ctor_set(x_80, 2, x_77); +lean_ctor_set(x_80, 3, x_79); +x_81 = lean_array_push(x_35, x_80); +x_82 = lean_array_push(x_81, x_37); +x_83 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_83, 0, x_39); +lean_ctor_set(x_83, 1, x_82); +x_84 = lean_array_push(x_75, x_83); +x_85 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_85, 0, x_45); +lean_ctor_set(x_85, 1, x_84); +x_86 = lean_array_push(x_74, x_85); +x_87 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_87, 0, x_48); +lean_ctor_set(x_87, 1, x_86); +x_88 = lean_array_push(x_35, x_87); +x_89 = lean_array_push(x_88, x_37); +x_90 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_90, 0, x_45); +lean_ctor_set(x_90, 1, x_89); +x_91 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__4; +x_92 = lean_array_push(x_91, x_90); +x_93 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__6; +x_94 = lean_array_push(x_92, x_93); +x_95 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__2; +x_96 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_96, 0, x_95); +lean_ctor_set(x_96, 1, x_94); +x_97 = lean_array_push(x_35, x_96); +x_98 = lean_array_push(x_97, x_49); +x_99 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_99, 0, x_45); +lean_ctor_set(x_99, 1, x_98); +x_100 = lean_array_push(x_65, x_99); +x_101 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_101, 0, x_48); +lean_ctor_set(x_101, 1, x_100); +lean_ctor_set(x_54, 0, x_101); +return x_54; +} +else +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; +x_102 = lean_ctor_get(x_54, 0); +x_103 = lean_ctor_get(x_54, 1); +lean_inc(x_103); +lean_inc(x_102); +lean_dec(x_54); +x_104 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__19; +lean_inc(x_52); +lean_inc(x_102); +x_105 = l_Lean_addMacroScope(x_102, x_104, x_52); +x_106 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__16; +x_107 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__21; +x_108 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_108, 0, x_17); +lean_ctor_set(x_108, 1, x_106); +lean_ctor_set(x_108, 2, x_105); +lean_ctor_set(x_108, 3, x_107); +x_109 = lean_array_push(x_35, x_108); +x_110 = lean_array_push(x_109, x_37); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_39); +lean_ctor_set(x_111, 1, x_110); +x_112 = lean_array_push(x_35, x_111); +x_113 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__26; +lean_inc(x_52); +lean_inc(x_102); +x_114 = l_Lean_addMacroScope(x_102, x_113, x_52); +x_115 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__24; +x_116 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__28; +x_117 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_117, 0, x_17); +lean_ctor_set(x_117, 1, x_115); +lean_ctor_set(x_117, 2, x_114); +lean_ctor_set(x_117, 3, x_116); +x_118 = lean_array_push(x_35, x_117); +x_119 = lean_array_push(x_118, x_37); +x_120 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_120, 0, x_39); +lean_ctor_set(x_120, 1, x_119); +x_121 = lean_array_push(x_35, x_120); +x_122 = lean_array_push(x_35, x_22); +x_123 = l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__38; +x_124 = l_Lean_addMacroScope(x_102, x_123, x_52); +x_125 = l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__37; +x_126 = l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__40; +x_127 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_127, 0, x_17); +lean_ctor_set(x_127, 1, x_125); +lean_ctor_set(x_127, 2, x_124); +lean_ctor_set(x_127, 3, x_126); +x_128 = lean_array_push(x_35, x_127); +x_129 = lean_array_push(x_128, x_37); +x_130 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_130, 0, x_39); +lean_ctor_set(x_130, 1, x_129); +x_131 = lean_array_push(x_122, x_130); +x_132 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_132, 0, x_45); +lean_ctor_set(x_132, 1, x_131); +x_133 = lean_array_push(x_121, x_132); +x_134 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_134, 0, x_48); +lean_ctor_set(x_134, 1, x_133); +x_135 = lean_array_push(x_35, x_134); +x_136 = lean_array_push(x_135, x_37); +x_137 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_137, 0, x_45); +lean_ctor_set(x_137, 1, x_136); +x_138 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__4; +x_139 = lean_array_push(x_138, x_137); +x_140 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__6; +x_141 = lean_array_push(x_139, x_140); +x_142 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__2; +x_143 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_143, 0, x_142); +lean_ctor_set(x_143, 1, x_141); +x_144 = lean_array_push(x_35, x_143); +x_145 = lean_array_push(x_144, x_49); +x_146 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_146, 0, x_45); +lean_ctor_set(x_146, 1, x_145); +x_147 = lean_array_push(x_112, x_146); +x_148 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_148, 0, x_48); +lean_ctor_set(x_148, 1, x_147); +x_149 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_149, 0, x_148); +lean_ctor_set(x_149, 1, x_103); +return x_149; +} +} +else +{ +lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; uint8_t x_154; +x_150 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_28); +lean_dec(x_3); +x_151 = lean_ctor_get(x_150, 0); +lean_inc(x_151); +x_152 = lean_ctor_get(x_150, 1); +lean_inc(x_152); +lean_dec(x_150); +x_153 = l_Lean_Elab_Term_getMainModule___rarg(x_152); +x_154 = !lean_is_exclusive(x_153); +if (x_154 == 0) +{ +lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; +x_155 = lean_ctor_get(x_153, 0); +x_156 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__19; +lean_inc(x_151); +lean_inc(x_155); +x_157 = l_Lean_addMacroScope(x_155, x_156, x_151); +x_158 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__16; +x_159 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__21; +x_160 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_160, 0, x_17); +lean_ctor_set(x_160, 1, x_158); +lean_ctor_set(x_160, 2, x_157); +lean_ctor_set(x_160, 3, x_159); +x_161 = lean_array_push(x_35, x_160); +x_162 = lean_array_push(x_161, x_37); +x_163 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_163, 0, x_39); +lean_ctor_set(x_163, 1, x_162); +x_164 = lean_array_push(x_35, x_163); +x_165 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__26; +lean_inc(x_151); +lean_inc(x_155); +x_166 = l_Lean_addMacroScope(x_155, x_165, x_151); +x_167 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__24; +x_168 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__28; +x_169 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_169, 0, x_17); +lean_ctor_set(x_169, 1, x_167); +lean_ctor_set(x_169, 2, x_166); +lean_ctor_set(x_169, 3, x_168); +x_170 = lean_array_push(x_35, x_169); +x_171 = lean_array_push(x_170, x_37); +x_172 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_172, 0, x_39); +lean_ctor_set(x_172, 1, x_171); +x_173 = lean_array_push(x_35, x_172); +x_174 = lean_array_push(x_35, x_22); +x_175 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__31; +x_176 = l_Lean_addMacroScope(x_155, x_175, x_151); +x_177 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__30; +x_178 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__34; +x_179 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_179, 0, x_17); +lean_ctor_set(x_179, 1, x_177); +lean_ctor_set(x_179, 2, x_176); +lean_ctor_set(x_179, 3, x_178); +x_180 = lean_array_push(x_35, x_179); +x_181 = lean_array_push(x_180, x_37); +x_182 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_182, 0, x_39); +lean_ctor_set(x_182, 1, x_181); +x_183 = lean_array_push(x_35, x_182); +x_184 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_184, 0, x_45); +lean_ctor_set(x_184, 1, x_42); +x_185 = lean_array_push(x_183, x_184); +x_186 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_186, 0, x_48); +lean_ctor_set(x_186, 1, x_185); +x_187 = lean_array_push(x_35, x_186); +x_188 = lean_array_push(x_187, x_37); +x_189 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_189, 0, x_45); +lean_ctor_set(x_189, 1, x_188); +x_190 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__4; +x_191 = lean_array_push(x_190, x_189); +x_192 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__6; +x_193 = lean_array_push(x_191, x_192); +x_194 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__2; +x_195 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_195, 0, x_194); +lean_ctor_set(x_195, 1, x_193); +x_196 = lean_array_push(x_174, x_195); +x_197 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_197, 0, x_45); +lean_ctor_set(x_197, 1, x_196); +x_198 = lean_array_push(x_173, x_197); +x_199 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_199, 0, x_48); +lean_ctor_set(x_199, 1, x_198); +x_200 = lean_array_push(x_35, x_199); +x_201 = lean_array_push(x_200, x_37); +x_202 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_202, 0, x_45); +lean_ctor_set(x_202, 1, x_201); +x_203 = lean_array_push(x_190, x_202); +x_204 = lean_array_push(x_203, x_192); +x_205 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_205, 0, x_194); +lean_ctor_set(x_205, 1, x_204); +x_206 = lean_array_push(x_35, x_205); +x_207 = lean_array_push(x_206, x_49); +x_208 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_208, 0, x_45); +lean_ctor_set(x_208, 1, x_207); +x_209 = lean_array_push(x_164, x_208); +x_210 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_210, 0, x_48); +lean_ctor_set(x_210, 1, x_209); +lean_ctor_set(x_153, 0, x_210); +return x_153; +} +else +{ +lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; +x_211 = lean_ctor_get(x_153, 0); +x_212 = lean_ctor_get(x_153, 1); +lean_inc(x_212); +lean_inc(x_211); +lean_dec(x_153); +x_213 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__19; +lean_inc(x_151); +lean_inc(x_211); +x_214 = l_Lean_addMacroScope(x_211, x_213, x_151); +x_215 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__16; +x_216 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__21; +x_217 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_217, 0, x_17); +lean_ctor_set(x_217, 1, x_215); +lean_ctor_set(x_217, 2, x_214); +lean_ctor_set(x_217, 3, x_216); +x_218 = lean_array_push(x_35, x_217); +x_219 = lean_array_push(x_218, x_37); +x_220 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_220, 0, x_39); +lean_ctor_set(x_220, 1, x_219); +x_221 = lean_array_push(x_35, x_220); +x_222 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__26; +lean_inc(x_151); +lean_inc(x_211); +x_223 = l_Lean_addMacroScope(x_211, x_222, x_151); +x_224 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__24; +x_225 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__28; +x_226 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_226, 0, x_17); +lean_ctor_set(x_226, 1, x_224); +lean_ctor_set(x_226, 2, x_223); +lean_ctor_set(x_226, 3, x_225); +x_227 = lean_array_push(x_35, x_226); +x_228 = lean_array_push(x_227, x_37); +x_229 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_229, 0, x_39); +lean_ctor_set(x_229, 1, x_228); +x_230 = lean_array_push(x_35, x_229); +x_231 = lean_array_push(x_35, x_22); +x_232 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__31; +x_233 = l_Lean_addMacroScope(x_211, x_232, x_151); +x_234 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__30; +x_235 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__34; +x_236 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_236, 0, x_17); +lean_ctor_set(x_236, 1, x_234); +lean_ctor_set(x_236, 2, x_233); +lean_ctor_set(x_236, 3, x_235); +x_237 = lean_array_push(x_35, x_236); +x_238 = lean_array_push(x_237, x_37); +x_239 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_239, 0, x_39); +lean_ctor_set(x_239, 1, x_238); +x_240 = lean_array_push(x_35, x_239); +x_241 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_241, 0, x_45); +lean_ctor_set(x_241, 1, x_42); +x_242 = lean_array_push(x_240, x_241); +x_243 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_243, 0, x_48); +lean_ctor_set(x_243, 1, x_242); +x_244 = lean_array_push(x_35, x_243); +x_245 = lean_array_push(x_244, x_37); +x_246 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_246, 0, x_45); +lean_ctor_set(x_246, 1, x_245); +x_247 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__4; +x_248 = lean_array_push(x_247, x_246); +x_249 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__6; +x_250 = lean_array_push(x_248, x_249); +x_251 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__2; +x_252 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_252, 0, x_251); +lean_ctor_set(x_252, 1, x_250); +x_253 = lean_array_push(x_231, x_252); +x_254 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_254, 0, x_45); +lean_ctor_set(x_254, 1, x_253); +x_255 = lean_array_push(x_230, x_254); +x_256 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_256, 0, x_48); +lean_ctor_set(x_256, 1, x_255); +x_257 = lean_array_push(x_35, x_256); +x_258 = lean_array_push(x_257, x_37); +x_259 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_259, 0, x_45); +lean_ctor_set(x_259, 1, x_258); +x_260 = lean_array_push(x_247, x_259); +x_261 = lean_array_push(x_260, x_249); +x_262 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_262, 0, x_251); +lean_ctor_set(x_262, 1, x_261); +x_263 = lean_array_push(x_35, x_262); +x_264 = lean_array_push(x_263, x_49); +x_265 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_265, 0, x_45); +lean_ctor_set(x_265, 1, x_264); +x_266 = lean_array_push(x_221, x_265); +x_267 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_267, 0, x_48); +lean_ctor_set(x_267, 1, x_266); +x_268 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_268, 0, x_267); +lean_ctor_set(x_268, 1, x_212); +return x_268; +} +} +} +else +{ +lean_object* x_269; lean_object* x_270; lean_dec(x_13); lean_dec(x_12); -lean_dec(x_3); +lean_dec(x_11); lean_dec(x_2); -x_270 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__3; -x_271 = l_Lean_Elab_Term_throwError___rarg(x_1, x_270, x_4, x_11); -return x_271; +lean_dec(x_1); +x_269 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__3; +x_270 = l_Lean_Elab_Term_throwError___rarg(x_269, x_3, x_10); +return x_270; } } } @@ -4069,15 +4074,6 @@ x_4 = lean_box(x_3); return x_4; } } -lean_object* l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_1); -return x_6; -} -} lean_object* _init_l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__1() { _start: { @@ -4220,8 +4216,8 @@ lean_object* x_17; lean_object* x_18; lean_object* x_19; x_17 = l_Lean_Syntax_getArg(x_7, x_6); lean_dec(x_7); x_18 = l_Lean_Syntax_getArg(x_1, x_14); -x_19 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux(x_1, x_17, x_18, x_2, x_3); lean_dec(x_1); +x_19 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux(x_17, x_18, x_2, x_3); return x_19; } } @@ -4232,9 +4228,9 @@ lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_dec(x_7); x_20 = lean_unsigned_to_nat(2u); x_21 = l_Lean_Syntax_getArg(x_1, x_20); -x_22 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__4; -x_23 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux(x_1, x_22, x_21, x_2, x_3); lean_dec(x_1); +x_22 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__4; +x_23 = l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux(x_22, x_21, x_2, x_3); return x_23; } } @@ -4379,138 +4375,129 @@ lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* l___private_Lean_Elab_BuiltinNotation_2__elabTParserMacroAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_BuiltinNotation_2__elabTParserMacroAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_6; lean_object* x_7; -x_6 = l_Lean_Elab_Term_getDeclName_x3f(x_4, x_5); -x_7 = lean_ctor_get(x_6, 0); -lean_inc(x_7); -if (lean_obj_tag(x_7) == 0) +lean_object* x_5; lean_object* x_6; +x_5 = l_Lean_Elab_Term_getDeclName_x3f(x_3, x_4); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +if (lean_obj_tag(x_6) == 0) { -lean_object* x_8; lean_object* x_9; lean_object* x_10; -lean_dec(x_3); +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_dec(x_2); -x_8 = lean_ctor_get(x_6, 1); -lean_inc(x_8); -lean_dec(x_6); -x_9 = l___private_Lean_Elab_BuiltinNotation_2__elabTParserMacroAux___closed__3; -x_10 = l_Lean_Elab_Term_throwError___rarg(x_1, x_9, x_4, x_8); -return x_10; +lean_dec(x_1); +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); +lean_dec(x_5); +x_8 = l___private_Lean_Elab_BuiltinNotation_2__elabTParserMacroAux___closed__3; +x_9 = l_Lean_Elab_Term_throwError___rarg(x_8, x_3, x_7); +return x_9; } else { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; -x_11 = lean_ctor_get(x_6, 1); +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_10 = lean_ctor_get(x_5, 1); +lean_inc(x_10); +lean_dec(x_5); +x_11 = lean_ctor_get(x_6, 0); lean_inc(x_11); lean_dec(x_6); -x_12 = lean_ctor_get(x_7, 0); -lean_inc(x_12); -lean_dec(x_7); -x_13 = l___private_Lean_Syntax_7__quoteName___main(x_12); -x_14 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_11); -lean_dec(x_4); -x_15 = lean_ctor_get(x_14, 0); +x_12 = l___private_Lean_Syntax_7__quoteName___main(x_11); +x_13 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_10); +lean_dec(x_3); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); lean_inc(x_15); -x_16 = lean_ctor_get(x_14, 1); -lean_inc(x_16); -lean_dec(x_14); -x_17 = l_Lean_Elab_Term_getMainModule___rarg(x_16); -x_18 = !lean_is_exclusive(x_17); -if (x_18 == 0) +lean_dec(x_13); +x_16 = l_Lean_Elab_Term_getMainModule___rarg(x_15); +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) { -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_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_19 = lean_ctor_get(x_17, 0); -x_20 = l___private_Lean_Elab_BuiltinNotation_2__elabTParserMacroAux___closed__8; -x_21 = l_Lean_addMacroScope(x_19, x_20, x_15); -x_22 = l_Lean_SourceInfo_inhabited___closed__1; -x_23 = l___private_Lean_Elab_BuiltinNotation_2__elabTParserMacroAux___closed__6; -x_24 = l___private_Lean_Elab_BuiltinNotation_2__elabTParserMacroAux___closed__10; -x_25 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_25, 0, x_22); -lean_ctor_set(x_25, 1, x_23); -lean_ctor_set(x_25, 2, x_21); -lean_ctor_set(x_25, 3, x_24); -x_26 = l_Array_empty___closed__1; -x_27 = lean_array_push(x_26, x_25); -x_28 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; -x_29 = lean_array_push(x_27, x_28); -x_30 = l_Lean_mkTermIdFromIdent___closed__2; -x_31 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_29); -x_32 = lean_array_push(x_26, x_31); -x_33 = lean_array_push(x_26, x_13); +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_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_18 = lean_ctor_get(x_16, 0); +x_19 = l___private_Lean_Elab_BuiltinNotation_2__elabTParserMacroAux___closed__8; +x_20 = l_Lean_addMacroScope(x_18, x_19, x_14); +x_21 = l_Lean_SourceInfo_inhabited___closed__1; +x_22 = l___private_Lean_Elab_BuiltinNotation_2__elabTParserMacroAux___closed__6; +x_23 = l___private_Lean_Elab_BuiltinNotation_2__elabTParserMacroAux___closed__10; +x_24 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_24, 0, x_21); +lean_ctor_set(x_24, 1, x_22); +lean_ctor_set(x_24, 2, x_20); +lean_ctor_set(x_24, 3, x_23); +x_25 = l_Array_empty___closed__1; +x_26 = lean_array_push(x_25, x_24); +x_27 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; +x_28 = lean_array_push(x_26, x_27); +x_29 = l_Lean_mkTermIdFromIdent___closed__2; +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_28); +x_31 = lean_array_push(x_25, x_30); +x_32 = lean_array_push(x_25, x_12); +x_33 = lean_array_push(x_32, x_1); x_34 = lean_array_push(x_33, x_2); -x_35 = lean_array_push(x_34, x_3); -x_36 = l_Lean_nullKind___closed__2; -x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_35); -x_38 = lean_array_push(x_32, x_37); -x_39 = l_Lean_mkAppStx___closed__8; -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_38); -lean_ctor_set(x_17, 0, x_40); -return x_17; +x_35 = l_Lean_nullKind___closed__2; +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_34); +x_37 = lean_array_push(x_31, x_36); +x_38 = l_Lean_mkAppStx___closed__8; +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_37); +lean_ctor_set(x_16, 0, x_39); +return x_16; } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_41 = lean_ctor_get(x_17, 0); -x_42 = lean_ctor_get(x_17, 1); -lean_inc(x_42); +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_40 = lean_ctor_get(x_16, 0); +x_41 = lean_ctor_get(x_16, 1); lean_inc(x_41); -lean_dec(x_17); -x_43 = l___private_Lean_Elab_BuiltinNotation_2__elabTParserMacroAux___closed__8; -x_44 = l_Lean_addMacroScope(x_41, x_43, x_15); -x_45 = l_Lean_SourceInfo_inhabited___closed__1; -x_46 = l___private_Lean_Elab_BuiltinNotation_2__elabTParserMacroAux___closed__6; -x_47 = l___private_Lean_Elab_BuiltinNotation_2__elabTParserMacroAux___closed__10; -x_48 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_48, 0, x_45); -lean_ctor_set(x_48, 1, x_46); -lean_ctor_set(x_48, 2, x_44); -lean_ctor_set(x_48, 3, x_47); -x_49 = l_Array_empty___closed__1; -x_50 = lean_array_push(x_49, x_48); -x_51 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; -x_52 = lean_array_push(x_50, x_51); -x_53 = l_Lean_mkTermIdFromIdent___closed__2; -x_54 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_54, 1, x_52); -x_55 = lean_array_push(x_49, x_54); -x_56 = lean_array_push(x_49, x_13); +lean_inc(x_40); +lean_dec(x_16); +x_42 = l___private_Lean_Elab_BuiltinNotation_2__elabTParserMacroAux___closed__8; +x_43 = l_Lean_addMacroScope(x_40, x_42, x_14); +x_44 = l_Lean_SourceInfo_inhabited___closed__1; +x_45 = l___private_Lean_Elab_BuiltinNotation_2__elabTParserMacroAux___closed__6; +x_46 = l___private_Lean_Elab_BuiltinNotation_2__elabTParserMacroAux___closed__10; +x_47 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_47, 0, x_44); +lean_ctor_set(x_47, 1, x_45); +lean_ctor_set(x_47, 2, x_43); +lean_ctor_set(x_47, 3, x_46); +x_48 = l_Array_empty___closed__1; +x_49 = lean_array_push(x_48, x_47); +x_50 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; +x_51 = lean_array_push(x_49, x_50); +x_52 = l_Lean_mkTermIdFromIdent___closed__2; +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_51); +x_54 = lean_array_push(x_48, x_53); +x_55 = lean_array_push(x_48, x_12); +x_56 = lean_array_push(x_55, x_1); x_57 = lean_array_push(x_56, x_2); -x_58 = lean_array_push(x_57, x_3); -x_59 = l_Lean_nullKind___closed__2; -x_60 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_60, 0, x_59); -lean_ctor_set(x_60, 1, x_58); -x_61 = lean_array_push(x_55, x_60); -x_62 = l_Lean_mkAppStx___closed__8; -x_63 = lean_alloc_ctor(1, 2, 0); +x_58 = l_Lean_nullKind___closed__2; +x_59 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_57); +x_60 = lean_array_push(x_54, x_59); +x_61 = l_Lean_mkAppStx___closed__8; +x_62 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_60); +x_63 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_63, 0, x_62); -lean_ctor_set(x_63, 1, x_61); -x_64 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_64, 0, x_63); -lean_ctor_set(x_64, 1, x_42); -return x_64; +lean_ctor_set(x_63, 1, x_41); +return x_63; } } } } -lean_object* l___private_Lean_Elab_BuiltinNotation_2__elabTParserMacroAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l___private_Lean_Elab_BuiltinNotation_2__elabTParserMacroAux(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_1); -return x_6; -} -} lean_object* l_Lean_Elab_Term_elabTParserMacro___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -4611,8 +4598,8 @@ lean_object* x_17; lean_object* x_18; lean_object* x_19; x_17 = l_Lean_Syntax_getArg(x_7, x_6); lean_dec(x_7); x_18 = l_Lean_Syntax_getArg(x_1, x_14); -x_19 = l___private_Lean_Elab_BuiltinNotation_2__elabTParserMacroAux(x_1, x_17, x_18, x_2, x_3); lean_dec(x_1); +x_19 = l___private_Lean_Elab_BuiltinNotation_2__elabTParserMacroAux(x_17, x_18, x_2, x_3); return x_19; } } @@ -4623,9 +4610,9 @@ lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_dec(x_7); x_20 = lean_unsigned_to_nat(2u); x_21 = l_Lean_Syntax_getArg(x_1, x_20); -x_22 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__4; -x_23 = l___private_Lean_Elab_BuiltinNotation_2__elabTParserMacroAux(x_1, x_22, x_21, x_2, x_3); lean_dec(x_1); +x_22 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__4; +x_23 = l___private_Lean_Elab_BuiltinNotation_2__elabTParserMacroAux(x_22, x_21, x_2, x_3); return x_23; } } @@ -4687,156 +4674,147 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l___private_Lean_Elab_BuiltinNotation_3__mkNativeReflAuxDecl(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_BuiltinNotation_3__mkNativeReflAuxDecl(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_6; lean_object* x_7; -x_6 = l___private_Lean_Elab_BuiltinNotation_3__mkNativeReflAuxDecl___closed__2; -lean_inc(x_4); -x_7 = l_Lean_Elab_Term_mkAuxName(x_1, x_6, x_4, x_5); -if (lean_obj_tag(x_7) == 0) +lean_object* x_5; lean_object* x_6; +x_5 = l___private_Lean_Elab_BuiltinNotation_3__mkNativeReflAuxDecl___closed__2; +lean_inc(x_3); +x_6 = l_Lean_Elab_Term_mkAuxName(x_5, x_3, x_4); +if (lean_obj_tag(x_6) == 0) { -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_8 = lean_ctor_get(x_7, 0); +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); lean_inc(x_8); -x_9 = lean_ctor_get(x_7, 1); -lean_inc(x_9); +lean_dec(x_6); +x_9 = lean_box(0); +lean_inc(x_7); +x_10 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_10, 0, x_7); +lean_ctor_set(x_10, 1, x_9); +lean_ctor_set(x_10, 2, x_1); +x_11 = lean_box(1); +x_12 = 0; +x_13 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_13, 0, x_10); +lean_ctor_set(x_13, 1, x_2); +lean_ctor_set(x_13, 2, x_11); +lean_ctor_set_uint8(x_13, sizeof(void*)*3, x_12); +x_14 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_14, 0, x_13); +lean_inc(x_3); +x_15 = l_Lean_Elab_Term_addDecl(x_14, x_3, x_8); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +lean_dec(x_15); +x_17 = l_Lean_Elab_Term_compileDecl(x_14, x_3, x_16); +lean_dec(x_14); +if (lean_obj_tag(x_17) == 0) +{ +uint8_t x_18; +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) +{ +lean_object* x_19; +x_19 = lean_ctor_get(x_17, 0); +lean_dec(x_19); +lean_ctor_set(x_17, 0, x_7); +return x_17; +} +else +{ +lean_object* x_20; lean_object* x_21; +x_20 = lean_ctor_get(x_17, 1); +lean_inc(x_20); +lean_dec(x_17); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_7); +lean_ctor_set(x_21, 1, x_20); +return x_21; +} +} +else +{ +uint8_t x_22; lean_dec(x_7); -x_10 = lean_box(0); -lean_inc(x_8); -x_11 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_11, 0, x_8); -lean_ctor_set(x_11, 1, x_10); -lean_ctor_set(x_11, 2, x_2); -x_12 = lean_box(1); -x_13 = 0; -x_14 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_14, 0, x_11); -lean_ctor_set(x_14, 1, x_3); -lean_ctor_set(x_14, 2, x_12); -lean_ctor_set_uint8(x_14, sizeof(void*)*3, x_13); -x_15 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_15, 0, x_14); -lean_inc(x_4); -x_16 = l_Lean_Elab_Term_addDecl(x_1, x_15, x_4, x_9); -if (lean_obj_tag(x_16) == 0) +x_22 = !lean_is_exclusive(x_17); +if (x_22 == 0) { -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_16, 1); -lean_inc(x_17); -lean_dec(x_16); -x_18 = l_Lean_Elab_Term_compileDecl(x_1, x_15, x_4, x_17); -lean_dec(x_15); -if (lean_obj_tag(x_18) == 0) -{ -uint8_t x_19; -x_19 = !lean_is_exclusive(x_18); -if (x_19 == 0) -{ -lean_object* x_20; -x_20 = lean_ctor_get(x_18, 0); -lean_dec(x_20); -lean_ctor_set(x_18, 0, x_8); -return x_18; +return x_17; } else { -lean_object* x_21; lean_object* x_22; -x_21 = lean_ctor_get(x_18, 1); -lean_inc(x_21); -lean_dec(x_18); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_8); -lean_ctor_set(x_22, 1, x_21); -return x_22; -} -} -else -{ -uint8_t x_23; -lean_dec(x_8); -x_23 = !lean_is_exclusive(x_18); -if (x_23 == 0) -{ -return x_18; -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_18, 0); -x_25 = lean_ctor_get(x_18, 1); -lean_inc(x_25); +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_17, 0); +x_24 = lean_ctor_get(x_17, 1); lean_inc(x_24); -lean_dec(x_18); -x_26 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_26, 0, x_24); -lean_ctor_set(x_26, 1, x_25); -return x_26; +lean_inc(x_23); +lean_dec(x_17); +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +return x_25; } } } else { -uint8_t x_27; -lean_dec(x_15); -lean_dec(x_8); -lean_dec(x_4); -x_27 = !lean_is_exclusive(x_16); -if (x_27 == 0) +uint8_t x_26; +lean_dec(x_14); +lean_dec(x_7); +lean_dec(x_3); +x_26 = !lean_is_exclusive(x_15); +if (x_26 == 0) { -return x_16; +return x_15; } else { -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_16, 0); -x_29 = lean_ctor_get(x_16, 1); -lean_inc(x_29); +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_15, 0); +x_28 = lean_ctor_get(x_15, 1); lean_inc(x_28); -lean_dec(x_16); -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_inc(x_27); +lean_dec(x_15); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +return x_29; } } } else { -uint8_t x_31; -lean_dec(x_4); +uint8_t x_30; lean_dec(x_3); lean_dec(x_2); -x_31 = !lean_is_exclusive(x_7); -if (x_31 == 0) +lean_dec(x_1); +x_30 = !lean_is_exclusive(x_6); +if (x_30 == 0) { -return x_7; +return x_6; } else { -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_7, 0); -x_33 = lean_ctor_get(x_7, 1); -lean_inc(x_33); +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_6, 0); +x_32 = lean_ctor_get(x_6, 1); lean_inc(x_32); -lean_dec(x_7); -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_inc(x_31); +lean_dec(x_6); +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___private_Lean_Elab_BuiltinNotation_3__mkNativeReflAuxDecl___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l___private_Lean_Elab_BuiltinNotation_3__mkNativeReflAuxDecl(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_1); -return x_6; -} -} lean_object* _init_l___private_Lean_Elab_BuiltinNotation_4__elabClosedTerm___closed__1() { _start: { @@ -4898,7 +4876,6 @@ _start: { lean_object* x_5; lean_inc(x_3); -lean_inc(x_1); x_5 = l_Lean_Elab_Term_elabTermAndSynthesize(x_1, x_2, x_3, x_4); if (lean_obj_tag(x_5) == 0) { @@ -4916,7 +4893,6 @@ if (x_9 == 0) if (x_30 == 0) { lean_dec(x_3); -lean_dec(x_1); return x_5; } else @@ -4941,8 +4917,7 @@ x_34 = l___private_Lean_Elab_BuiltinNotation_4__elabClosedTerm___closed__6; x_35 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_35, 0, x_34); lean_ctor_set(x_35, 1, x_33); -x_36 = l_Lean_Elab_Term_throwError___rarg(x_1, x_35, x_3, x_8); -lean_dec(x_1); +x_36 = l_Lean_Elab_Term_throwError___rarg(x_35, x_3, x_8); x_37 = !lean_is_exclusive(x_36); if (x_37 == 0) { @@ -4982,8 +4957,7 @@ x_13 = l___private_Lean_Elab_BuiltinNotation_4__elabClosedTerm___closed__3; x_14 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_14, 0, x_13); lean_ctor_set(x_14, 1, x_12); -x_15 = l_Lean_Elab_Term_throwError___rarg(x_1, x_14, x_3, x_8); -lean_dec(x_1); +x_15 = l_Lean_Elab_Term_throwError___rarg(x_14, x_3, x_8); x_16 = !lean_is_exclusive(x_15); if (x_16 == 0) { @@ -5013,8 +4987,7 @@ x_22 = l___private_Lean_Elab_BuiltinNotation_4__elabClosedTerm___closed__6; x_23 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_23, 0, x_22); lean_ctor_set(x_23, 1, x_21); -x_24 = l_Lean_Elab_Term_throwError___rarg(x_1, x_23, x_3, x_8); -lean_dec(x_1); +x_24 = l_Lean_Elab_Term_throwError___rarg(x_23, x_3, x_8); x_25 = !lean_is_exclusive(x_24); if (x_25 == 0) { @@ -5052,7 +5025,6 @@ if (x_65 == 0) { lean_object* x_66; lean_dec(x_3); -lean_dec(x_1); x_66 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_66, 0, x_42); lean_ctor_set(x_66, 1, x_43); @@ -5078,8 +5050,7 @@ x_70 = l___private_Lean_Elab_BuiltinNotation_4__elabClosedTerm___closed__6; x_71 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_71, 0, x_70); lean_ctor_set(x_71, 1, x_69); -x_72 = l_Lean_Elab_Term_throwError___rarg(x_1, x_71, x_3, x_43); -lean_dec(x_1); +x_72 = l_Lean_Elab_Term_throwError___rarg(x_71, x_3, x_43); x_73 = lean_ctor_get(x_72, 0); lean_inc(x_73); x_74 = lean_ctor_get(x_72, 1); @@ -5121,8 +5092,7 @@ x_48 = l___private_Lean_Elab_BuiltinNotation_4__elabClosedTerm___closed__3; x_49 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_49, 0, x_48); lean_ctor_set(x_49, 1, x_47); -x_50 = l_Lean_Elab_Term_throwError___rarg(x_1, x_49, x_3, x_43); -lean_dec(x_1); +x_50 = l_Lean_Elab_Term_throwError___rarg(x_49, x_3, x_43); x_51 = lean_ctor_get(x_50, 0); lean_inc(x_51); x_52 = lean_ctor_get(x_50, 1); @@ -5154,8 +5124,7 @@ x_57 = l___private_Lean_Elab_BuiltinNotation_4__elabClosedTerm___closed__6; x_58 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_58, 0, x_57); lean_ctor_set(x_58, 1, x_56); -x_59 = l_Lean_Elab_Term_throwError___rarg(x_1, x_58, x_3, x_43); -lean_dec(x_1); +x_59 = l_Lean_Elab_Term_throwError___rarg(x_58, x_3, x_43); x_60 = lean_ctor_get(x_59, 0); lean_inc(x_60); x_61 = lean_ctor_get(x_59, 1); @@ -5184,7 +5153,6 @@ else { uint8_t x_78; lean_dec(x_3); -lean_dec(x_1); x_78 = !lean_is_exclusive(x_5); if (x_78 == 0) { @@ -5317,7 +5285,7 @@ lean_inc(x_10); lean_dec(x_8); lean_inc(x_3); lean_inc(x_9); -x_11 = l_Lean_Elab_Term_inferType(x_1, x_9, x_3, x_10); +x_11 = l_Lean_Elab_Term_inferType(x_9, x_3, x_10); if (lean_obj_tag(x_11) == 0) { lean_object* x_12; lean_object* x_13; lean_object* x_14; @@ -5327,7 +5295,7 @@ x_13 = lean_ctor_get(x_11, 1); lean_inc(x_13); lean_dec(x_11); lean_inc(x_3); -x_14 = l_Lean_Elab_Term_whnf(x_1, x_12, x_3, x_13); +x_14 = l_Lean_Elab_Term_whnf(x_12, x_3, x_13); if (lean_obj_tag(x_14) == 0) { lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; @@ -5354,7 +5322,7 @@ x_247 = l_Lean_Elab_Term_elabNativeRefl___closed__10; x_248 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_248, 0, x_247); lean_ctor_set(x_248, 1, x_246); -x_249 = l_Lean_Elab_Term_throwError___rarg(x_1, x_248, x_3, x_16); +x_249 = l_Lean_Elab_Term_throwError___rarg(x_248, x_3, x_16); x_250 = !lean_is_exclusive(x_249); if (x_250 == 0) { @@ -5390,7 +5358,7 @@ block_242: lean_object* x_20; lean_inc(x_3); lean_inc(x_9); -x_20 = l___private_Lean_Elab_BuiltinNotation_3__mkNativeReflAuxDecl(x_1, x_15, x_9, x_3, x_19); +x_20 = l___private_Lean_Elab_BuiltinNotation_3__mkNativeReflAuxDecl(x_15, x_9, x_3, x_19); if (lean_obj_tag(x_20) == 0) { lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; @@ -5475,7 +5443,7 @@ x_37 = lean_ctor_get(x_34, 1); lean_inc(x_37); lean_dec(x_34); lean_inc(x_3); -x_38 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_22, x_37, x_27); +x_38 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_22, x_37, x_27); if (lean_obj_tag(x_36) == 0) { lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; @@ -5489,7 +5457,7 @@ x_41 = l_Lean_Elab_Term_elabNativeRefl___closed__3; x_42 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_42, 0, x_41); lean_ctor_set(x_42, 1, x_40); -x_43 = l_Lean_Elab_Term_throwError___rarg(x_1, x_42, x_3, x_38); +x_43 = l_Lean_Elab_Term_throwError___rarg(x_42, x_3, x_38); return x_43; } else @@ -5518,7 +5486,7 @@ x_50 = lean_ctor_get(x_48, 1); lean_inc(x_50); lean_dec(x_48); lean_inc(x_3); -x_51 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_38, x_50, x_47); +x_51 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_38, x_50, x_47); x_52 = l_Lean_mkConst(x_35, x_23); lean_inc(x_45); x_53 = l_Lean_mkApp3(x_52, x_24, x_45, x_49); @@ -5540,8 +5508,8 @@ x_59 = lean_ctor_get(x_57, 1); lean_inc(x_59); lean_dec(x_57); lean_inc(x_3); -x_60 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_51, x_59, x_56); -x_61 = l_Lean_Elab_Term_mkExpectedTypeHint(x_1, x_53, x_58, x_3, x_60); +x_60 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_51, x_59, x_56); +x_61 = l_Lean_Elab_Term_mkExpectedTypeHint(x_53, x_58, x_3, x_60); return x_61; } else @@ -5555,8 +5523,8 @@ lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; x_63 = lean_ctor_get(x_57, 0); x_64 = lean_ctor_get(x_57, 1); lean_inc(x_3); -x_65 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_63); -x_66 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_51, x_64, x_56); +x_65 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_63); +x_66 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_51, x_64, x_56); lean_ctor_set(x_57, 1, x_66); lean_ctor_set(x_57, 0, x_65); return x_57; @@ -5570,8 +5538,8 @@ lean_inc(x_68); lean_inc(x_67); lean_dec(x_57); lean_inc(x_3); -x_69 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_67); -x_70 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_51, x_68, x_56); +x_69 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_67); +x_70 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_51, x_68, x_56); x_71 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_71, 0, x_69); lean_ctor_set(x_71, 1, x_70); @@ -5612,8 +5580,8 @@ x_81 = lean_ctor_get(x_79, 1); lean_inc(x_81); lean_dec(x_79); lean_inc(x_3); -x_82 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_51, x_81, x_76); -x_83 = l_Lean_Elab_Term_mkExpectedTypeHint(x_1, x_53, x_80, x_3, x_82); +x_82 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_51, x_81, x_76); +x_83 = l_Lean_Elab_Term_mkExpectedTypeHint(x_53, x_80, x_3, x_82); return x_83; } else @@ -5633,8 +5601,8 @@ if (lean_is_exclusive(x_79)) { x_86 = lean_box(0); } lean_inc(x_3); -x_87 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_84); -x_88 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_51, x_85, x_76); +x_87 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_84); +x_88 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_51, x_85, x_76); if (lean_is_scalar(x_86)) { x_89 = lean_alloc_ctor(1, 2, 0); } else { @@ -5661,8 +5629,8 @@ lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; x_91 = lean_ctor_get(x_48, 0); x_92 = lean_ctor_get(x_48, 1); lean_inc(x_3); -x_93 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_91); -x_94 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_38, x_92, x_47); +x_93 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_91); +x_94 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_38, x_92, x_47); lean_ctor_set(x_48, 1, x_94); lean_ctor_set(x_48, 0, x_93); return x_48; @@ -5676,8 +5644,8 @@ lean_inc(x_96); lean_inc(x_95); lean_dec(x_48); lean_inc(x_3); -x_97 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_95); -x_98 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_38, x_96, x_47); +x_97 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_95); +x_98 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_38, x_96, x_47); x_99 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_99, 0, x_97); lean_ctor_set(x_99, 1, x_98); @@ -5720,7 +5688,7 @@ x_109 = lean_ctor_get(x_107, 1); lean_inc(x_109); lean_dec(x_107); lean_inc(x_3); -x_110 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_38, x_109, x_104); +x_110 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_38, x_109, x_104); x_111 = l_Lean_mkConst(x_35, x_23); lean_inc(x_45); x_112 = l_Lean_mkApp3(x_111, x_24, x_45, x_108); @@ -5771,8 +5739,8 @@ x_124 = lean_ctor_get(x_122, 1); lean_inc(x_124); lean_dec(x_122); lean_inc(x_3); -x_125 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_110, x_124, x_118); -x_126 = l_Lean_Elab_Term_mkExpectedTypeHint(x_1, x_112, x_123, x_3, x_125); +x_125 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_110, x_124, x_118); +x_126 = l_Lean_Elab_Term_mkExpectedTypeHint(x_112, x_123, x_3, x_125); return x_126; } else @@ -5792,8 +5760,8 @@ if (lean_is_exclusive(x_122)) { x_129 = lean_box(0); } lean_inc(x_3); -x_130 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_127); -x_131 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_110, x_128, x_118); +x_130 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_127); +x_131 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_110, x_128, x_118); if (lean_is_scalar(x_129)) { x_132 = lean_alloc_ctor(1, 2, 0); } else { @@ -5825,8 +5793,8 @@ if (lean_is_exclusive(x_107)) { x_135 = lean_box(0); } lean_inc(x_3); -x_136 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_133); -x_137 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_38, x_134, x_104); +x_136 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_133); +x_137 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_38, x_134, x_104); if (lean_is_scalar(x_135)) { x_138 = lean_alloc_ctor(1, 2, 0); } else { @@ -5853,8 +5821,8 @@ lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; x_140 = lean_ctor_get(x_34, 0); x_141 = lean_ctor_get(x_34, 1); lean_inc(x_3); -x_142 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_140); -x_143 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_22, x_141, x_27); +x_142 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_140); +x_143 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_22, x_141, x_27); lean_ctor_set(x_34, 1, x_143); lean_ctor_set(x_34, 0, x_142); return x_34; @@ -5868,8 +5836,8 @@ lean_inc(x_145); lean_inc(x_144); lean_dec(x_34); lean_inc(x_3); -x_146 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_144); -x_147 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_22, x_145, x_27); +x_146 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_144); +x_147 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_22, x_145, x_27); x_148 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_148, 0, x_146); lean_ctor_set(x_148, 1, x_147); @@ -5969,7 +5937,7 @@ x_174 = lean_ctor_get(x_171, 1); lean_inc(x_174); lean_dec(x_171); lean_inc(x_3); -x_175 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_22, x_174, x_162); +x_175 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_22, x_174, x_162); if (lean_obj_tag(x_173) == 0) { lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; @@ -5983,7 +5951,7 @@ x_178 = l_Lean_Elab_Term_elabNativeRefl___closed__3; x_179 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_179, 0, x_178); lean_ctor_set(x_179, 1, x_177); -x_180 = l_Lean_Elab_Term_throwError___rarg(x_1, x_179, x_3, x_175); +x_180 = l_Lean_Elab_Term_throwError___rarg(x_179, x_3, x_175); return x_180; } else @@ -6041,7 +6009,7 @@ x_193 = lean_ctor_get(x_191, 1); lean_inc(x_193); lean_dec(x_191); lean_inc(x_3); -x_194 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_175, x_193, x_187); +x_194 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_175, x_193, x_187); x_195 = l_Lean_mkConst(x_172, x_23); lean_inc(x_182); x_196 = l_Lean_mkApp3(x_195, x_24, x_182, x_192); @@ -6092,8 +6060,8 @@ x_208 = lean_ctor_get(x_206, 1); lean_inc(x_208); lean_dec(x_206); lean_inc(x_3); -x_209 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_194, x_208, x_202); -x_210 = l_Lean_Elab_Term_mkExpectedTypeHint(x_1, x_196, x_207, x_3, x_209); +x_209 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_194, x_208, x_202); +x_210 = l_Lean_Elab_Term_mkExpectedTypeHint(x_196, x_207, x_3, x_209); return x_210; } else @@ -6113,8 +6081,8 @@ if (lean_is_exclusive(x_206)) { x_213 = lean_box(0); } lean_inc(x_3); -x_214 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_211); -x_215 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_194, x_212, x_202); +x_214 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_211); +x_215 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_194, x_212, x_202); if (lean_is_scalar(x_213)) { x_216 = lean_alloc_ctor(1, 2, 0); } else { @@ -6146,8 +6114,8 @@ if (lean_is_exclusive(x_191)) { x_219 = lean_box(0); } lean_inc(x_3); -x_220 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_217); -x_221 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_175, x_218, x_187); +x_220 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_217); +x_221 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_175, x_218, x_187); if (lean_is_scalar(x_219)) { x_222 = lean_alloc_ctor(1, 2, 0); } else { @@ -6179,8 +6147,8 @@ if (lean_is_exclusive(x_171)) { x_225 = lean_box(0); } lean_inc(x_3); -x_226 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_223); -x_227 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_22, x_224, x_162); +x_226 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_223); +x_227 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_22, x_224, x_162); if (lean_is_scalar(x_225)) { x_228 = lean_alloc_ctor(1, 2, 0); } else { @@ -6391,255 +6359,246 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_BuiltinNotation_5__getPropToDecide(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_BuiltinNotation_5__getPropToDecide(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_6; uint8_t x_7; -x_6 = l_Lean_mkHole___closed__2; -lean_inc(x_2); -x_7 = l_Lean_Syntax_isOfKind(x_2, x_6); -if (x_7 == 0) +lean_object* x_5; uint8_t x_6; +x_5 = l_Lean_mkHole___closed__2; +lean_inc(x_1); +x_6 = l_Lean_Syntax_isOfKind(x_1, x_5); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; +lean_dec(x_2); +x_7 = l___private_Lean_Elab_BuiltinNotation_5__getPropToDecide___closed__1; +x_8 = l___private_Lean_Elab_BuiltinNotation_4__elabClosedTerm(x_1, x_7, x_3, x_4); +return x_8; +} +else +{ +lean_object* x_9; +lean_dec(x_1); +x_9 = l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(x_2, x_3, x_4); +if (lean_obj_tag(x_9) == 0) +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_9, 1); +lean_inc(x_10); +lean_dec(x_9); +x_11 = l___private_Lean_Elab_BuiltinNotation_5__getPropToDecide___closed__4; +x_12 = l_Lean_Elab_Term_throwError___rarg(x_11, x_3, x_10); +return x_12; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_13 = lean_ctor_get(x_9, 1); +lean_inc(x_13); +lean_dec(x_9); +x_14 = lean_ctor_get(x_2, 0); +lean_inc(x_14); +lean_dec(x_2); +lean_inc(x_3); +x_15 = l_Lean_Elab_Term_instantiateMVars(x_14, x_3, x_13); +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_17 = lean_ctor_get(x_15, 0); +x_18 = lean_ctor_get(x_15, 1); +x_19 = l_Lean_Expr_hasFVar(x_17); +if (x_19 == 0) +{ +uint8_t x_20; +x_20 = l_Lean_Expr_hasMVar(x_17); +if (x_20 == 0) { -lean_object* x_8; lean_object* x_9; lean_dec(x_3); -x_8 = l___private_Lean_Elab_BuiltinNotation_5__getPropToDecide___closed__1; -x_9 = l___private_Lean_Elab_BuiltinNotation_4__elabClosedTerm(x_2, x_8, x_4, x_5); +return x_15; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +lean_free_object(x_15); +x_21 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_21, 0, x_17); +x_22 = l_Lean_indentExpr(x_21); +x_23 = l___private_Lean_Elab_BuiltinNotation_5__getPropToDecide___closed__7; +x_24 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_22); +x_25 = l_Lean_Elab_Term_throwError___rarg(x_24, x_3, x_18); +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 0) +{ +return x_25; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_25, 0); +x_28 = lean_ctor_get(x_25, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_25); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +return x_29; +} +} +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; +lean_free_object(x_15); +x_30 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_30, 0, x_17); +x_31 = l_Lean_indentExpr(x_30); +x_32 = l___private_Lean_Elab_BuiltinNotation_5__getPropToDecide___closed__7; +x_33 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_31); +x_34 = l_Lean_Elab_Term_throwError___rarg(x_33, x_3, x_18); +x_35 = !lean_is_exclusive(x_34); +if (x_35 == 0) +{ +return x_34; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_34, 0); +x_37 = lean_ctor_get(x_34, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_34); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +return x_38; +} +} +} +else +{ +lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_39 = lean_ctor_get(x_15, 0); +x_40 = lean_ctor_get(x_15, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_15); +x_41 = l_Lean_Expr_hasFVar(x_39); +if (x_41 == 0) +{ +uint8_t x_42; +x_42 = l_Lean_Expr_hasMVar(x_39); +if (x_42 == 0) +{ +lean_object* x_43; +lean_dec(x_3); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_39); +lean_ctor_set(x_43, 1, x_40); +return x_43; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_44 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_44, 0, x_39); +x_45 = l_Lean_indentExpr(x_44); +x_46 = l___private_Lean_Elab_BuiltinNotation_5__getPropToDecide___closed__7; +x_47 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_45); +x_48 = l_Lean_Elab_Term_throwError___rarg(x_47, x_3, x_40); +x_49 = lean_ctor_get(x_48, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_48, 1); +lean_inc(x_50); +if (lean_is_exclusive(x_48)) { + lean_ctor_release(x_48, 0); + lean_ctor_release(x_48, 1); + x_51 = x_48; +} else { + lean_dec_ref(x_48); + x_51 = lean_box(0); +} +if (lean_is_scalar(x_51)) { + x_52 = lean_alloc_ctor(1, 2, 0); +} else { + x_52 = x_51; +} +lean_ctor_set(x_52, 0, x_49); +lean_ctor_set(x_52, 1, x_50); +return x_52; +} +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_53 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_53, 0, x_39); +x_54 = l_Lean_indentExpr(x_53); +x_55 = l___private_Lean_Elab_BuiltinNotation_5__getPropToDecide___closed__7; +x_56 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_54); +x_57 = l_Lean_Elab_Term_throwError___rarg(x_56, x_3, x_40); +x_58 = lean_ctor_get(x_57, 0); +lean_inc(x_58); +x_59 = lean_ctor_get(x_57, 1); +lean_inc(x_59); +if (lean_is_exclusive(x_57)) { + lean_ctor_release(x_57, 0); + lean_ctor_release(x_57, 1); + x_60 = x_57; +} else { + lean_dec_ref(x_57); + x_60 = lean_box(0); +} +if (lean_is_scalar(x_60)) { + x_61 = lean_alloc_ctor(1, 2, 0); +} else { + x_61 = x_60; +} +lean_ctor_set(x_61, 0, x_58); +lean_ctor_set(x_61, 1, x_59); +return x_61; +} +} +} +} +else +{ +uint8_t x_62; +lean_dec(x_3); +lean_dec(x_2); +x_62 = !lean_is_exclusive(x_9); +if (x_62 == 0) +{ return x_9; } else { -lean_object* x_10; -lean_dec(x_2); -x_10 = l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(x_3, x_4, x_5); -if (lean_obj_tag(x_10) == 0) -{ -if (lean_obj_tag(x_3) == 0) -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_11 = lean_ctor_get(x_10, 1); -lean_inc(x_11); -lean_dec(x_10); -x_12 = l___private_Lean_Elab_BuiltinNotation_5__getPropToDecide___closed__4; -x_13 = l_Lean_Elab_Term_throwError___rarg(x_1, x_12, x_4, x_11); -return x_13; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_14 = lean_ctor_get(x_10, 1); -lean_inc(x_14); -lean_dec(x_10); -x_15 = lean_ctor_get(x_3, 0); -lean_inc(x_15); -lean_dec(x_3); -lean_inc(x_4); -x_16 = l_Lean_Elab_Term_instantiateMVars(x_1, x_15, x_4, x_14); -x_17 = !lean_is_exclusive(x_16); -if (x_17 == 0) -{ -lean_object* x_18; lean_object* x_19; uint8_t x_20; -x_18 = lean_ctor_get(x_16, 0); -x_19 = lean_ctor_get(x_16, 1); -x_20 = l_Lean_Expr_hasFVar(x_18); -if (x_20 == 0) -{ -uint8_t x_21; -x_21 = l_Lean_Expr_hasMVar(x_18); -if (x_21 == 0) -{ -lean_dec(x_4); -return x_16; -} -else -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; -lean_free_object(x_16); -x_22 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_22, 0, x_18); -x_23 = l_Lean_indentExpr(x_22); -x_24 = l___private_Lean_Elab_BuiltinNotation_5__getPropToDecide___closed__7; -x_25 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, x_23); -x_26 = l_Lean_Elab_Term_throwError___rarg(x_1, x_25, x_4, x_19); -x_27 = !lean_is_exclusive(x_26); -if (x_27 == 0) -{ -return x_26; -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_26, 0); -x_29 = lean_ctor_get(x_26, 1); -lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_26); -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; -} -} -} -else -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; -lean_free_object(x_16); -x_31 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_31, 0, x_18); -x_32 = l_Lean_indentExpr(x_31); -x_33 = l___private_Lean_Elab_BuiltinNotation_5__getPropToDecide___closed__7; -x_34 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_32); -x_35 = l_Lean_Elab_Term_throwError___rarg(x_1, x_34, x_4, x_19); -x_36 = !lean_is_exclusive(x_35); -if (x_36 == 0) -{ -return x_35; -} -else -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_35, 0); -x_38 = lean_ctor_get(x_35, 1); -lean_inc(x_38); -lean_inc(x_37); -lean_dec(x_35); -x_39 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_39, 0, x_37); -lean_ctor_set(x_39, 1, x_38); -return x_39; -} -} -} -else -{ -lean_object* x_40; lean_object* x_41; uint8_t x_42; -x_40 = lean_ctor_get(x_16, 0); -x_41 = lean_ctor_get(x_16, 1); -lean_inc(x_41); -lean_inc(x_40); -lean_dec(x_16); -x_42 = l_Lean_Expr_hasFVar(x_40); -if (x_42 == 0) -{ -uint8_t x_43; -x_43 = l_Lean_Expr_hasMVar(x_40); -if (x_43 == 0) -{ -lean_object* x_44; -lean_dec(x_4); -x_44 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_44, 0, x_40); -lean_ctor_set(x_44, 1, x_41); -return x_44; -} -else -{ -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_alloc_ctor(2, 1, 0); -lean_ctor_set(x_45, 0, x_40); -x_46 = l_Lean_indentExpr(x_45); -x_47 = l___private_Lean_Elab_BuiltinNotation_5__getPropToDecide___closed__7; -x_48 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_46); -x_49 = l_Lean_Elab_Term_throwError___rarg(x_1, x_48, x_4, x_41); -x_50 = lean_ctor_get(x_49, 0); -lean_inc(x_50); -x_51 = lean_ctor_get(x_49, 1); -lean_inc(x_51); -if (lean_is_exclusive(x_49)) { - lean_ctor_release(x_49, 0); - lean_ctor_release(x_49, 1); - x_52 = x_49; -} else { - lean_dec_ref(x_49); - x_52 = lean_box(0); -} -if (lean_is_scalar(x_52)) { - x_53 = lean_alloc_ctor(1, 2, 0); -} else { - x_53 = x_52; -} -lean_ctor_set(x_53, 0, x_50); -lean_ctor_set(x_53, 1, x_51); -return x_53; -} -} -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; lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_54 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_54, 0, x_40); -x_55 = l_Lean_indentExpr(x_54); -x_56 = l___private_Lean_Elab_BuiltinNotation_5__getPropToDecide___closed__7; -x_57 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_57, 0, x_56); -lean_ctor_set(x_57, 1, x_55); -x_58 = l_Lean_Elab_Term_throwError___rarg(x_1, x_57, x_4, x_41); -x_59 = lean_ctor_get(x_58, 0); -lean_inc(x_59); -x_60 = lean_ctor_get(x_58, 1); -lean_inc(x_60); -if (lean_is_exclusive(x_58)) { - lean_ctor_release(x_58, 0); - lean_ctor_release(x_58, 1); - x_61 = x_58; -} else { - lean_dec_ref(x_58); - x_61 = lean_box(0); -} -if (lean_is_scalar(x_61)) { - x_62 = lean_alloc_ctor(1, 2, 0); -} else { - x_62 = x_61; -} -lean_ctor_set(x_62, 0, x_59); -lean_ctor_set(x_62, 1, x_60); -return x_62; -} -} -} -} -else -{ -uint8_t x_63; -lean_dec(x_4); -lean_dec(x_3); -x_63 = !lean_is_exclusive(x_10); -if (x_63 == 0) -{ -return x_10; -} -else -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_10, 0); -x_65 = lean_ctor_get(x_10, 1); -lean_inc(x_65); +lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_9, 0); +x_64 = lean_ctor_get(x_9, 1); lean_inc(x_64); -lean_dec(x_10); -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; +lean_inc(x_63); +lean_dec(x_9); +x_65 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_65, 0, x_63); +lean_ctor_set(x_65, 1, x_64); +return x_65; } } } } } -lean_object* l___private_Lean_Elab_BuiltinNotation_5__getPropToDecide___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l___private_Lean_Elab_BuiltinNotation_5__getPropToDecide(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_1); -return x_6; -} -} lean_object* _init_l_Lean_Elab_Term_elabNativeDecide___closed__1() { _start: { @@ -6657,7 +6616,7 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_unsigned_to_nat(1u); x_6 = l_Lean_Syntax_getArg(x_1, x_5); lean_inc(x_3); -x_7 = l___private_Lean_Elab_BuiltinNotation_5__getPropToDecide(x_1, x_6, x_2, x_3, x_4); +x_7 = l___private_Lean_Elab_BuiltinNotation_5__getPropToDecide(x_6, x_2, x_3, x_4); if (lean_obj_tag(x_7) == 0) { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; @@ -6671,7 +6630,7 @@ lean_inc(x_8); x_11 = lean_array_push(x_10, x_8); x_12 = l_Lean_Meta_mkDecideProof___closed__2; lean_inc(x_3); -x_13 = l_Lean_Elab_Term_mkAppM(x_1, x_12, x_11, x_3, x_9); +x_13 = l_Lean_Elab_Term_mkAppM(x_12, x_11, x_3, x_9); lean_dec(x_11); if (lean_obj_tag(x_13) == 0) { @@ -6684,7 +6643,7 @@ lean_dec(x_13); x_16 = lean_box(0); x_17 = l_Lean_boolToExpr___closed__1; lean_inc(x_3); -x_18 = l___private_Lean_Elab_BuiltinNotation_3__mkNativeReflAuxDecl(x_1, x_17, x_14, x_3, x_15); +x_18 = l___private_Lean_Elab_BuiltinNotation_3__mkNativeReflAuxDecl(x_17, x_14, x_3, x_15); if (lean_obj_tag(x_18) == 0) { lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; @@ -6715,11 +6674,11 @@ x_29 = lean_ctor_get(x_27, 1); lean_inc(x_29); lean_dec(x_27); lean_inc(x_3); -x_30 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_19, x_29, x_23); +x_30 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_19, x_29, x_23); x_31 = l_Lean_mkConst(x_21, x_16); x_32 = l_Lean_Elab_Term_elabNativeDecide___closed__1; x_33 = l_Lean_mkApp3(x_32, x_31, x_26, x_28); -x_34 = l_Lean_Elab_Term_mkExpectedTypeHint(x_1, x_33, x_8, x_3, x_30); +x_34 = l_Lean_Elab_Term_mkExpectedTypeHint(x_33, x_8, x_3, x_30); return x_34; } else @@ -6734,8 +6693,8 @@ lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; x_36 = lean_ctor_get(x_27, 0); x_37 = lean_ctor_get(x_27, 1); lean_inc(x_3); -x_38 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_36); -x_39 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_19, x_37, x_23); +x_38 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_36); +x_39 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_19, x_37, x_23); lean_ctor_set(x_27, 1, x_39); lean_ctor_set(x_27, 0, x_38); return x_27; @@ -6749,8 +6708,8 @@ lean_inc(x_41); lean_inc(x_40); lean_dec(x_27); lean_inc(x_3); -x_42 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_40); -x_43 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_19, x_41, x_23); +x_42 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_40); +x_43 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_19, x_41, x_23); x_44 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_44, 0, x_42); lean_ctor_set(x_44, 1, x_43); @@ -6795,11 +6754,11 @@ x_57 = lean_ctor_get(x_55, 1); lean_inc(x_57); lean_dec(x_55); lean_inc(x_3); -x_58 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_19, x_57, x_49); +x_58 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_19, x_57, x_49); x_59 = l_Lean_mkConst(x_21, x_16); x_60 = l_Lean_Elab_Term_elabNativeDecide___closed__1; x_61 = l_Lean_mkApp3(x_60, x_59, x_54, x_56); -x_62 = l_Lean_Elab_Term_mkExpectedTypeHint(x_1, x_61, x_8, x_3, x_58); +x_62 = l_Lean_Elab_Term_mkExpectedTypeHint(x_61, x_8, x_3, x_58); return x_62; } else @@ -6820,8 +6779,8 @@ if (lean_is_exclusive(x_55)) { x_65 = lean_box(0); } lean_inc(x_3); -x_66 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_63); -x_67 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_19, x_64, x_49); +x_66 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_63); +x_67 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_19, x_64, x_49); if (lean_is_scalar(x_65)) { x_68 = lean_alloc_ctor(1, 2, 0); } else { @@ -6953,7 +6912,7 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_unsigned_to_nat(1u); x_6 = l_Lean_Syntax_getArg(x_1, x_5); lean_inc(x_3); -x_7 = l___private_Lean_Elab_BuiltinNotation_5__getPropToDecide(x_1, x_6, x_2, x_3, x_4); +x_7 = l___private_Lean_Elab_BuiltinNotation_5__getPropToDecide(x_6, x_2, x_3, x_4); if (lean_obj_tag(x_7) == 0) { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; @@ -6967,7 +6926,7 @@ lean_inc(x_8); x_11 = lean_array_push(x_10, x_8); x_12 = l_Lean_Meta_mkDecideProof___closed__2; lean_inc(x_3); -x_13 = l_Lean_Elab_Term_mkAppM(x_1, x_12, x_11, x_3, x_9); +x_13 = l_Lean_Elab_Term_mkAppM(x_12, x_11, x_3, x_9); lean_dec(x_11); if (lean_obj_tag(x_13) == 0) { @@ -6978,7 +6937,7 @@ x_15 = lean_ctor_get(x_13, 1); lean_inc(x_15); lean_dec(x_13); lean_inc(x_3); -x_16 = l_Lean_Elab_Term_instantiateMVars(x_1, x_14, x_3, x_15); +x_16 = l_Lean_Elab_Term_instantiateMVars(x_14, x_3, x_15); x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); x_18 = lean_ctor_get(x_16, 1); @@ -7008,7 +6967,7 @@ if (x_27 == 0) lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; x_28 = lean_ctor_get(x_26, 0); x_29 = lean_ctor_get(x_26, 1); -x_30 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_18, x_29, x_22); +x_30 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_18, x_29, x_22); x_31 = l_Lean_Elab_Term_elabDecide___closed__1; x_32 = l_Lean_mkApp3(x_31, x_8, x_19, x_28); lean_ctor_set(x_26, 1, x_30); @@ -7023,7 +6982,7 @@ x_34 = lean_ctor_get(x_26, 1); lean_inc(x_34); lean_inc(x_33); lean_dec(x_26); -x_35 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_18, x_34, x_22); +x_35 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_18, x_34, x_22); x_36 = l_Lean_Elab_Term_elabDecide___closed__1; x_37 = l_Lean_mkApp3(x_36, x_8, x_19, x_33); x_38 = lean_alloc_ctor(0, 2, 0); @@ -7044,8 +7003,8 @@ lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; x_40 = lean_ctor_get(x_26, 0); x_41 = lean_ctor_get(x_26, 1); lean_inc(x_3); -x_42 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_40); -x_43 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_18, x_41, x_22); +x_42 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_40); +x_43 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_18, x_41, x_22); lean_ctor_set(x_26, 1, x_43); lean_ctor_set(x_26, 0, x_42); return x_26; @@ -7059,8 +7018,8 @@ lean_inc(x_45); lean_inc(x_44); lean_dec(x_26); lean_inc(x_3); -x_46 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_44); -x_47 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_18, x_45, x_22); +x_46 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_44); +x_47 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_18, x_45, x_22); x_48 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_48, 0, x_46); lean_ctor_set(x_48, 1, x_47); @@ -7111,7 +7070,7 @@ if (lean_is_exclusive(x_59)) { lean_dec_ref(x_59); x_62 = lean_box(0); } -x_63 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_18, x_61, x_53); +x_63 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_18, x_61, x_53); x_64 = l_Lean_Elab_Term_elabDecide___closed__1; x_65 = l_Lean_mkApp3(x_64, x_8, x_19, x_60); if (lean_is_scalar(x_62)) { @@ -7141,8 +7100,8 @@ if (lean_is_exclusive(x_59)) { x_69 = lean_box(0); } lean_inc(x_3); -x_70 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_67); -x_71 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_18, x_68, x_53); +x_70 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_67); +x_71 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_18, x_68, x_53); if (lean_is_scalar(x_69)) { x_72 = lean_alloc_ctor(1, 2, 0); } else { diff --git a/stage0/stdlib/Lean/Elab/CollectFVars.c b/stage0/stdlib/Lean/Elab/CollectFVars.c index 9bc01bf24c..2e3981c76c 100644 --- a/stage0/stdlib/Lean/Elab/CollectFVars.c +++ b/stage0/stdlib/Lean/Elab/CollectFVars.c @@ -13,14 +13,14 @@ #ifdef __cplusplus extern "C" { #endif -lean_object* l_Lean_Elab_Term_removeUnused(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_inferType(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_collectUsedFVarsAtFVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_removeUnused(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_instantiateMVars(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_inferType(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_collectUsedFVarsAtFVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_local_ctx_erase(lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; lean_object* l_Array_reverseAux___main___rarg(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_removeUnused___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_removeUnused___boxed(lean_object*, 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* lean_nat_add(lean_object*, lean_object*); @@ -28,837 +28,823 @@ lean_object* lean_array_fget(lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_Expr_fvarId_x21(lean_object*); -lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_Elab_Term_removeUnused___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_collectUsedFVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_collectUsedFVarsAtFVars___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_Elab_Term_removeUnused___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_collectUsedFVarsAtFVars___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalInstances_erase(lean_object*, lean_object*); lean_object* l_Lean_CollectFVars_main___main(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_collectUsedFVarsAtFVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_collectUsedFVarsAtFVars(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getLocalInsts(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_collectUsedFVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_collectUsedFVarsAtFVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_collectUsedFVars(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_collectUsedFVarsAtFVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getLCtx(lean_object*, lean_object*); -lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_Elab_Term_removeUnused___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_Elab_Term_removeUnused___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_NameSet_contains(lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_collectUsedFVars(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_Elab_Term_collectUsedFVars(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_6; uint8_t x_7; -x_6 = l_Lean_Elab_Term_instantiateMVars(x_1, x_3, x_4, x_5); -x_7 = !lean_is_exclusive(x_6); -if (x_7 == 0) +lean_object* x_5; uint8_t x_6; +x_5 = l_Lean_Elab_Term_instantiateMVars(x_2, x_3, x_4); +x_6 = !lean_is_exclusive(x_5); +if (x_6 == 0) { -lean_object* x_8; lean_object* x_9; -x_8 = lean_ctor_get(x_6, 0); -x_9 = l_Lean_CollectFVars_main___main(x_8, x_2); -lean_ctor_set(x_6, 0, x_9); -return x_6; +lean_object* x_7; lean_object* x_8; +x_7 = lean_ctor_get(x_5, 0); +x_8 = l_Lean_CollectFVars_main___main(x_7, x_1); +lean_ctor_set(x_5, 0, x_8); +return x_5; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_9 = lean_ctor_get(x_5, 0); +x_10 = lean_ctor_get(x_5, 1); +lean_inc(x_10); +lean_inc(x_9); +lean_dec(x_5); +x_11 = l_Lean_CollectFVars_main___main(x_9, x_1); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_10); +return x_12; +} +} +} +lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_collectUsedFVarsAtFVars___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; uint8_t x_8; +x_7 = lean_array_get_size(x_2); +x_8 = lean_nat_dec_lt(x_3, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +lean_object* x_9; +lean_dec(x_5); +lean_dec(x_3); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_4); +lean_ctor_set(x_9, 1, x_6); +return x_9; } else { lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_10 = lean_ctor_get(x_6, 0); -x_11 = lean_ctor_get(x_6, 1); -lean_inc(x_11); -lean_inc(x_10); -lean_dec(x_6); -x_12 = l_Lean_CollectFVars_main___main(x_10, x_2); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_11); -return x_13; -} -} -} -lean_object* l_Lean_Elab_Term_collectUsedFVars___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: +x_10 = lean_array_fget(x_2, x_3); +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_add(x_3, x_11); +lean_dec(x_3); +lean_inc(x_5); +x_13 = l_Lean_Elab_Term_inferType(x_10, x_5, x_6); +if (lean_obj_tag(x_13) == 0) { -lean_object* x_6; -x_6 = l_Lean_Elab_Term_collectUsedFVars(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_1); -return x_6; -} -} -lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_collectUsedFVarsAtFVars___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) { -_start: -{ -lean_object* x_8; uint8_t x_9; -x_8 = lean_array_get_size(x_3); -x_9 = lean_nat_dec_lt(x_4, x_8); -lean_dec(x_8); -if (x_9 == 0) -{ -lean_object* x_10; -lean_dec(x_6); -lean_dec(x_4); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_5); -lean_ctor_set(x_10, 1, x_7); -return x_10; -} -else -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_11 = lean_array_fget(x_3, x_4); -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_add(x_4, x_12); -lean_dec(x_4); -lean_inc(x_6); -x_14 = l_Lean_Elab_Term_inferType(x_1, x_11, x_6, x_7); -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_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); lean_inc(x_15); -x_16 = lean_ctor_get(x_14, 1); -lean_inc(x_16); -lean_dec(x_14); -lean_inc(x_6); -x_17 = l_Lean_Elab_Term_collectUsedFVars(x_1, x_5, x_15, x_6, x_16); -x_18 = lean_ctor_get(x_17, 0); +lean_dec(x_13); +lean_inc(x_5); +x_16 = l_Lean_Elab_Term_collectUsedFVars(x_4, x_14, x_5, x_15); +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_16, 1); lean_inc(x_18); -x_19 = lean_ctor_get(x_17, 1); -lean_inc(x_19); -lean_dec(x_17); -x_4 = x_13; -x_5 = x_18; -x_7 = x_19; +lean_dec(x_16); +x_3 = x_12; +x_4 = x_17; +x_6 = x_18; goto _start; } else { -uint8_t x_21; -lean_dec(x_13); -lean_dec(x_6); +uint8_t x_20; +lean_dec(x_12); lean_dec(x_5); -x_21 = !lean_is_exclusive(x_14); -if (x_21 == 0) +lean_dec(x_4); +x_20 = !lean_is_exclusive(x_13); +if (x_20 == 0) { -return x_14; +return x_13; } else { -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_14, 0); -x_23 = lean_ctor_get(x_14, 1); -lean_inc(x_23); +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_13, 0); +x_22 = lean_ctor_get(x_13, 1); lean_inc(x_22); -lean_dec(x_14); -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -return x_24; +lean_inc(x_21); +lean_dec(x_13); +x_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +return x_23; } } } } } -lean_object* l_Lean_Elab_Term_collectUsedFVarsAtFVars(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_Elab_Term_collectUsedFVarsAtFVars(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_6; lean_object* x_7; -x_6 = lean_unsigned_to_nat(0u); -x_7 = l_Array_iterateMAux___main___at_Lean_Elab_Term_collectUsedFVarsAtFVars___spec__1(x_1, x_3, x_3, x_6, x_2, x_4, x_5); +lean_object* x_5; lean_object* x_6; +x_5 = lean_unsigned_to_nat(0u); +x_6 = l_Array_iterateMAux___main___at_Lean_Elab_Term_collectUsedFVarsAtFVars___spec__1(x_2, x_2, x_5, x_1, x_3, x_4); +return x_6; +} +} +lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_collectUsedFVarsAtFVars___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_Array_iterateMAux___main___at_Lean_Elab_Term_collectUsedFVarsAtFVars___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_2); +lean_dec(x_1); return x_7; } } -lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_collectUsedFVarsAtFVars___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* l_Lean_Elab_Term_collectUsedFVarsAtFVars___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_Elab_Term_collectUsedFVarsAtFVars(x_1, x_2, x_3, x_4); +lean_dec(x_2); +return x_5; +} +} +lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_Elab_Term_removeUnused___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) { +_start: +{ +lean_object* x_8; uint8_t x_9; +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_nat_dec_eq(x_3, x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_sub(x_3, x_10); +lean_dec(x_3); +x_12 = lean_array_fget(x_2, x_11); +x_13 = lean_ctor_get(x_5, 1); +lean_inc(x_13); +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +x_15 = !lean_is_exclusive(x_5); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_16 = lean_ctor_get(x_5, 0); +x_17 = lean_ctor_get(x_5, 1); +lean_dec(x_17); +x_18 = !lean_is_exclusive(x_13); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_19 = lean_ctor_get(x_13, 0); +x_20 = lean_ctor_get(x_13, 1); +lean_dec(x_20); +x_21 = lean_ctor_get(x_14, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_14, 1); +lean_inc(x_22); +x_23 = lean_ctor_get(x_22, 1); +lean_inc(x_23); +x_24 = l_Lean_Expr_fvarId_x21(x_12); +x_25 = l_Lean_NameSet_contains(x_23, x_24); +lean_dec(x_23); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_12); +lean_inc(x_24); +x_26 = lean_local_ctx_erase(x_16, x_24); +x_27 = l_Lean_LocalInstances_erase(x_19, x_24); +lean_dec(x_24); +lean_ctor_set(x_13, 0, x_27); +lean_ctor_set(x_5, 0, x_26); +x_3 = x_11; +x_4 = lean_box(0); +goto _start; +} +else +{ +uint8_t x_29; +lean_dec(x_24); +x_29 = !lean_is_exclusive(x_14); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_14, 1); +lean_dec(x_30); +x_31 = lean_ctor_get(x_14, 0); +lean_dec(x_31); +lean_inc(x_6); +lean_inc(x_12); +x_32 = l_Lean_Elab_Term_inferType(x_12, x_6, x_7); +if (lean_obj_tag(x_32) == 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; +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_32, 1); +lean_inc(x_34); +lean_dec(x_32); +lean_inc(x_6); +x_35 = l_Lean_Elab_Term_collectUsedFVars(x_22, x_33, x_6, x_34); +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_35, 1); +lean_inc(x_37); +lean_dec(x_35); +x_38 = lean_array_push(x_21, x_12); +lean_ctor_set(x_14, 1, x_36); +lean_ctor_set(x_14, 0, x_38); +x_3 = x_11; +x_4 = lean_box(0); +x_7 = x_37; +goto _start; +} +else +{ +uint8_t x_40; +lean_free_object(x_14); +lean_dec(x_22); +lean_dec(x_21); +lean_free_object(x_13); +lean_dec(x_19); +lean_free_object(x_5); +lean_dec(x_16); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_6); +x_40 = !lean_is_exclusive(x_32); +if (x_40 == 0) +{ +return x_32; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_32, 0); +x_42 = lean_ctor_get(x_32, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_32); +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 +{ +lean_object* x_44; +lean_dec(x_14); +lean_inc(x_6); +lean_inc(x_12); +x_44 = l_Lean_Elab_Term_inferType(x_12, x_6, x_7); +if (lean_obj_tag(x_44) == 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; +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); +lean_inc(x_6); +x_47 = l_Lean_Elab_Term_collectUsedFVars(x_22, x_45, x_6, x_46); +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); +x_50 = lean_array_push(x_21, x_12); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_48); +lean_ctor_set(x_13, 1, x_51); +x_3 = x_11; +x_4 = lean_box(0); +x_7 = x_49; +goto _start; +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +lean_dec(x_22); +lean_dec(x_21); +lean_free_object(x_13); +lean_dec(x_19); +lean_free_object(x_5); +lean_dec(x_16); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_6); +x_53 = lean_ctor_get(x_44, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_44, 1); +lean_inc(x_54); +if (lean_is_exclusive(x_44)) { + lean_ctor_release(x_44, 0); + lean_ctor_release(x_44, 1); + x_55 = x_44; +} else { + lean_dec_ref(x_44); + x_55 = lean_box(0); +} +if (lean_is_scalar(x_55)) { + x_56 = lean_alloc_ctor(1, 2, 0); +} else { + x_56 = x_55; +} +lean_ctor_set(x_56, 0, x_53); +lean_ctor_set(x_56, 1, x_54); +return x_56; +} +} +} +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; +x_57 = lean_ctor_get(x_13, 0); +lean_inc(x_57); +lean_dec(x_13); +x_58 = lean_ctor_get(x_14, 0); +lean_inc(x_58); +x_59 = lean_ctor_get(x_14, 1); +lean_inc(x_59); +x_60 = lean_ctor_get(x_59, 1); +lean_inc(x_60); +x_61 = l_Lean_Expr_fvarId_x21(x_12); +x_62 = l_Lean_NameSet_contains(x_60, x_61); +lean_dec(x_60); +if (x_62 == 0) +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; +lean_dec(x_59); +lean_dec(x_58); +lean_dec(x_12); +lean_inc(x_61); +x_63 = lean_local_ctx_erase(x_16, x_61); +x_64 = l_Lean_LocalInstances_erase(x_57, x_61); +lean_dec(x_61); +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_14); +lean_ctor_set(x_5, 1, x_65); +lean_ctor_set(x_5, 0, x_63); +x_3 = x_11; +x_4 = lean_box(0); +goto _start; +} +else +{ +lean_object* x_67; lean_object* x_68; +lean_dec(x_61); +if (lean_is_exclusive(x_14)) { + lean_ctor_release(x_14, 0); + lean_ctor_release(x_14, 1); + x_67 = x_14; +} else { + lean_dec_ref(x_14); + x_67 = lean_box(0); +} +lean_inc(x_6); +lean_inc(x_12); +x_68 = l_Lean_Elab_Term_inferType(x_12, x_6, x_7); +if (lean_obj_tag(x_68) == 0) +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_69 = lean_ctor_get(x_68, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_68, 1); +lean_inc(x_70); +lean_dec(x_68); +lean_inc(x_6); +x_71 = l_Lean_Elab_Term_collectUsedFVars(x_59, x_69, x_6, x_70); +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_71, 1); +lean_inc(x_73); +lean_dec(x_71); +x_74 = lean_array_push(x_58, x_12); +if (lean_is_scalar(x_67)) { + x_75 = lean_alloc_ctor(0, 2, 0); +} else { + x_75 = x_67; +} +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_75, 1, x_72); +x_76 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_76, 0, x_57); +lean_ctor_set(x_76, 1, x_75); +lean_ctor_set(x_5, 1, x_76); +x_3 = x_11; +x_4 = lean_box(0); +x_7 = x_73; +goto _start; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +lean_dec(x_67); +lean_dec(x_59); +lean_dec(x_58); +lean_dec(x_57); +lean_free_object(x_5); +lean_dec(x_16); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_6); +x_78 = lean_ctor_get(x_68, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_68, 1); +lean_inc(x_79); +if (lean_is_exclusive(x_68)) { + lean_ctor_release(x_68, 0); + lean_ctor_release(x_68, 1); + x_80 = x_68; +} else { + lean_dec_ref(x_68); + x_80 = lean_box(0); +} +if (lean_is_scalar(x_80)) { + x_81 = lean_alloc_ctor(1, 2, 0); +} else { + x_81 = x_80; +} +lean_ctor_set(x_81, 0, x_78); +lean_ctor_set(x_81, 1, x_79); +return x_81; +} +} +} +} +else +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; uint8_t x_89; +x_82 = lean_ctor_get(x_5, 0); +lean_inc(x_82); +lean_dec(x_5); +x_83 = lean_ctor_get(x_13, 0); +lean_inc(x_83); +if (lean_is_exclusive(x_13)) { + lean_ctor_release(x_13, 0); + lean_ctor_release(x_13, 1); + x_84 = x_13; +} else { + lean_dec_ref(x_13); + x_84 = lean_box(0); +} +x_85 = lean_ctor_get(x_14, 0); +lean_inc(x_85); +x_86 = lean_ctor_get(x_14, 1); +lean_inc(x_86); +x_87 = lean_ctor_get(x_86, 1); +lean_inc(x_87); +x_88 = l_Lean_Expr_fvarId_x21(x_12); +x_89 = l_Lean_NameSet_contains(x_87, x_88); +lean_dec(x_87); +if (x_89 == 0) +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; +lean_dec(x_86); +lean_dec(x_85); +lean_dec(x_12); +lean_inc(x_88); +x_90 = lean_local_ctx_erase(x_82, x_88); +x_91 = l_Lean_LocalInstances_erase(x_83, x_88); +lean_dec(x_88); +if (lean_is_scalar(x_84)) { + x_92 = lean_alloc_ctor(0, 2, 0); +} else { + x_92 = x_84; +} +lean_ctor_set(x_92, 0, x_91); +lean_ctor_set(x_92, 1, x_14); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_90); +lean_ctor_set(x_93, 1, x_92); +x_3 = x_11; +x_4 = lean_box(0); +x_5 = x_93; +goto _start; +} +else +{ +lean_object* x_95; lean_object* x_96; +lean_dec(x_88); +if (lean_is_exclusive(x_14)) { + lean_ctor_release(x_14, 0); + lean_ctor_release(x_14, 1); + x_95 = x_14; +} else { + lean_dec_ref(x_14); + x_95 = lean_box(0); +} +lean_inc(x_6); +lean_inc(x_12); +x_96 = l_Lean_Elab_Term_inferType(x_12, x_6, x_7); +if (lean_obj_tag(x_96) == 0) +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +x_97 = lean_ctor_get(x_96, 0); +lean_inc(x_97); +x_98 = lean_ctor_get(x_96, 1); +lean_inc(x_98); +lean_dec(x_96); +lean_inc(x_6); +x_99 = l_Lean_Elab_Term_collectUsedFVars(x_86, x_97, x_6, x_98); +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_102 = lean_array_push(x_85, x_12); +if (lean_is_scalar(x_95)) { + x_103 = lean_alloc_ctor(0, 2, 0); +} else { + x_103 = x_95; +} +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_100); +if (lean_is_scalar(x_84)) { + x_104 = lean_alloc_ctor(0, 2, 0); +} else { + x_104 = x_84; +} +lean_ctor_set(x_104, 0, x_83); +lean_ctor_set(x_104, 1, x_103); +x_105 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_105, 0, x_82); +lean_ctor_set(x_105, 1, x_104); +x_3 = x_11; +x_4 = lean_box(0); +x_5 = x_105; +x_7 = x_101; +goto _start; +} +else +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; +lean_dec(x_95); +lean_dec(x_86); +lean_dec(x_85); +lean_dec(x_84); +lean_dec(x_83); +lean_dec(x_82); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_6); +x_107 = lean_ctor_get(x_96, 0); +lean_inc(x_107); +x_108 = lean_ctor_get(x_96, 1); +lean_inc(x_108); +if (lean_is_exclusive(x_96)) { + lean_ctor_release(x_96, 0); + lean_ctor_release(x_96, 1); + x_109 = x_96; +} else { + lean_dec_ref(x_96); + x_109 = lean_box(0); +} +if (lean_is_scalar(x_109)) { + x_110 = lean_alloc_ctor(1, 2, 0); +} else { + x_110 = x_109; +} +lean_ctor_set(x_110, 0, x_107); +lean_ctor_set(x_110, 1, x_108); +return x_110; +} +} +} +} +else +{ +lean_object* x_111; +lean_dec(x_6); +lean_dec(x_3); +x_111 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_111, 0, x_5); +lean_ctor_set(x_111, 1, x_7); +return x_111; +} +} +} +lean_object* l_Lean_Elab_Term_removeUnused(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_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; +x_5 = l_Lean_Elab_Term_getLocalInsts(x_3, x_4); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); +lean_dec(x_5); +x_8 = l_Lean_Elab_Term_getLCtx(x_3, x_7); +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 = l_Array_empty___closed__1; +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_2); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_6); +lean_ctor_set(x_13, 1, x_12); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_9); +lean_ctor_set(x_14, 1, x_13); +x_15 = lean_array_get_size(x_1); +x_16 = l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_Elab_Term_removeUnused___spec__1(x_1, x_1, x_15, lean_box(0), x_14, x_3, x_10); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_17, 1); +lean_inc(x_18); +x_19 = lean_ctor_get(x_18, 1); +lean_inc(x_19); +x_20 = !lean_is_exclusive(x_16); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_21 = lean_ctor_get(x_16, 0); +lean_dec(x_21); +x_22 = lean_ctor_get(x_17, 0); +lean_inc(x_22); +lean_dec(x_17); +x_23 = !lean_is_exclusive(x_18); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_24 = lean_ctor_get(x_18, 0); +x_25 = lean_ctor_get(x_18, 1); +lean_dec(x_25); +x_26 = !lean_is_exclusive(x_19); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_27 = lean_ctor_get(x_19, 0); +x_28 = lean_ctor_get(x_19, 1); +lean_dec(x_28); +x_29 = lean_unsigned_to_nat(0u); +x_30 = l_Array_reverseAux___main___rarg(x_27, x_29); +lean_ctor_set(x_19, 1, x_30); +lean_ctor_set(x_19, 0, x_24); +lean_ctor_set(x_18, 0, x_22); +lean_ctor_set(x_16, 0, x_18); +return x_16; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_31 = lean_ctor_get(x_19, 0); +lean_inc(x_31); +lean_dec(x_19); +x_32 = lean_unsigned_to_nat(0u); +x_33 = l_Array_reverseAux___main___rarg(x_31, x_32); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_24); +lean_ctor_set(x_34, 1, x_33); +lean_ctor_set(x_18, 1, x_34); +lean_ctor_set(x_18, 0, x_22); +lean_ctor_set(x_16, 0, x_18); +return x_16; +} +} +else +{ +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; +x_35 = lean_ctor_get(x_18, 0); +lean_inc(x_35); +lean_dec(x_18); +x_36 = lean_ctor_get(x_19, 0); +lean_inc(x_36); +if (lean_is_exclusive(x_19)) { + lean_ctor_release(x_19, 0); + lean_ctor_release(x_19, 1); + x_37 = x_19; +} else { + lean_dec_ref(x_19); + x_37 = lean_box(0); +} +x_38 = lean_unsigned_to_nat(0u); +x_39 = l_Array_reverseAux___main___rarg(x_36, x_38); +if (lean_is_scalar(x_37)) { + x_40 = lean_alloc_ctor(0, 2, 0); +} else { + x_40 = x_37; +} +lean_ctor_set(x_40, 0, x_35); +lean_ctor_set(x_40, 1, x_39); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_22); +lean_ctor_set(x_41, 1, x_40); +lean_ctor_set(x_16, 0, x_41); +return x_16; +} +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_42 = lean_ctor_get(x_16, 1); +lean_inc(x_42); +lean_dec(x_16); +x_43 = lean_ctor_get(x_17, 0); +lean_inc(x_43); +lean_dec(x_17); +x_44 = lean_ctor_get(x_18, 0); +lean_inc(x_44); +if (lean_is_exclusive(x_18)) { + lean_ctor_release(x_18, 0); + lean_ctor_release(x_18, 1); + x_45 = x_18; +} else { + lean_dec_ref(x_18); + x_45 = lean_box(0); +} +x_46 = lean_ctor_get(x_19, 0); +lean_inc(x_46); +if (lean_is_exclusive(x_19)) { + lean_ctor_release(x_19, 0); + lean_ctor_release(x_19, 1); + x_47 = x_19; +} else { + lean_dec_ref(x_19); + x_47 = lean_box(0); +} +x_48 = lean_unsigned_to_nat(0u); +x_49 = l_Array_reverseAux___main___rarg(x_46, x_48); +if (lean_is_scalar(x_47)) { + x_50 = lean_alloc_ctor(0, 2, 0); +} else { + x_50 = x_47; +} +lean_ctor_set(x_50, 0, x_44); +lean_ctor_set(x_50, 1, x_49); +if (lean_is_scalar(x_45)) { + x_51 = lean_alloc_ctor(0, 2, 0); +} else { + x_51 = x_45; +} +lean_ctor_set(x_51, 0, x_43); +lean_ctor_set(x_51, 1, x_50); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_42); +return x_52; +} +} +else +{ +uint8_t x_53; +x_53 = !lean_is_exclusive(x_16); +if (x_53 == 0) +{ +return x_16; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_16, 0); +x_55 = lean_ctor_get(x_16, 1); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_16); +x_56 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_56, 0, x_54); +lean_ctor_set(x_56, 1, x_55); +return x_56; +} +} +} +} +lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_Elab_Term_removeUnused___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; -x_8 = l_Array_iterateMAux___main___at_Lean_Elab_Term_collectUsedFVarsAtFVars___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_3); +x_8 = l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_Elab_Term_removeUnused___spec__1(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; } } -lean_object* l_Lean_Elab_Term_collectUsedFVarsAtFVars___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_Elab_Term_removeUnused___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_6; -x_6 = l_Lean_Elab_Term_collectUsedFVarsAtFVars(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_3); +lean_object* x_5; +x_5 = l_Lean_Elab_Term_removeUnused(x_1, x_2, x_3, x_4); lean_dec(x_1); -return x_6; -} -} -lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_Elab_Term_removeUnused___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) { -_start: -{ -lean_object* x_9; uint8_t x_10; -x_9 = lean_unsigned_to_nat(0u); -x_10 = lean_nat_dec_eq(x_4, x_9); -if (x_10 == 0) -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_11 = lean_unsigned_to_nat(1u); -x_12 = lean_nat_sub(x_4, x_11); -lean_dec(x_4); -x_13 = lean_array_fget(x_3, x_12); -x_14 = lean_ctor_get(x_6, 1); -lean_inc(x_14); -x_15 = lean_ctor_get(x_14, 1); -lean_inc(x_15); -x_16 = !lean_is_exclusive(x_6); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; uint8_t x_19; -x_17 = lean_ctor_get(x_6, 0); -x_18 = lean_ctor_get(x_6, 1); -lean_dec(x_18); -x_19 = !lean_is_exclusive(x_14); -if (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_25; uint8_t x_26; -x_20 = lean_ctor_get(x_14, 0); -x_21 = lean_ctor_get(x_14, 1); -lean_dec(x_21); -x_22 = lean_ctor_get(x_15, 0); -lean_inc(x_22); -x_23 = lean_ctor_get(x_15, 1); -lean_inc(x_23); -x_24 = lean_ctor_get(x_23, 1); -lean_inc(x_24); -x_25 = l_Lean_Expr_fvarId_x21(x_13); -x_26 = l_Lean_NameSet_contains(x_24, x_25); -lean_dec(x_24); -if (x_26 == 0) -{ -lean_object* x_27; lean_object* x_28; -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_13); -lean_inc(x_25); -x_27 = lean_local_ctx_erase(x_17, x_25); -x_28 = l_Lean_LocalInstances_erase(x_20, x_25); -lean_dec(x_25); -lean_ctor_set(x_14, 0, x_28); -lean_ctor_set(x_6, 0, x_27); -x_4 = x_12; -x_5 = lean_box(0); -goto _start; -} -else -{ -uint8_t x_30; -lean_dec(x_25); -x_30 = !lean_is_exclusive(x_15); -if (x_30 == 0) -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_15, 1); -lean_dec(x_31); -x_32 = lean_ctor_get(x_15, 0); -lean_dec(x_32); -lean_inc(x_7); -lean_inc(x_13); -x_33 = l_Lean_Elab_Term_inferType(x_1, x_13, x_7, x_8); -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; -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); -lean_inc(x_7); -x_36 = l_Lean_Elab_Term_collectUsedFVars(x_1, x_23, x_34, x_7, x_35); -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -x_38 = lean_ctor_get(x_36, 1); -lean_inc(x_38); -lean_dec(x_36); -x_39 = lean_array_push(x_22, x_13); -lean_ctor_set(x_15, 1, x_37); -lean_ctor_set(x_15, 0, x_39); -x_4 = x_12; -x_5 = lean_box(0); -x_8 = x_38; -goto _start; -} -else -{ -uint8_t x_41; -lean_free_object(x_15); -lean_dec(x_23); -lean_dec(x_22); -lean_free_object(x_14); -lean_dec(x_20); -lean_free_object(x_6); -lean_dec(x_17); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_7); -x_41 = !lean_is_exclusive(x_33); -if (x_41 == 0) -{ -return x_33; -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_33, 0); -x_43 = lean_ctor_get(x_33, 1); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_33); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -return x_44; -} -} -} -else -{ -lean_object* x_45; -lean_dec(x_15); -lean_inc(x_7); -lean_inc(x_13); -x_45 = l_Lean_Elab_Term_inferType(x_1, x_13, x_7, x_8); -if (lean_obj_tag(x_45) == 0) -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_46 = lean_ctor_get(x_45, 0); -lean_inc(x_46); -x_47 = lean_ctor_get(x_45, 1); -lean_inc(x_47); -lean_dec(x_45); -lean_inc(x_7); -x_48 = l_Lean_Elab_Term_collectUsedFVars(x_1, x_23, x_46, x_7, x_47); -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_array_push(x_22, x_13); -x_52 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_52, 1, x_49); -lean_ctor_set(x_14, 1, x_52); -x_4 = x_12; -x_5 = lean_box(0); -x_8 = x_50; -goto _start; -} -else -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; -lean_dec(x_23); -lean_dec(x_22); -lean_free_object(x_14); -lean_dec(x_20); -lean_free_object(x_6); -lean_dec(x_17); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_7); -x_54 = lean_ctor_get(x_45, 0); -lean_inc(x_54); -x_55 = lean_ctor_get(x_45, 1); -lean_inc(x_55); -if (lean_is_exclusive(x_45)) { - lean_ctor_release(x_45, 0); - lean_ctor_release(x_45, 1); - x_56 = x_45; -} else { - lean_dec_ref(x_45); - x_56 = lean_box(0); -} -if (lean_is_scalar(x_56)) { - x_57 = lean_alloc_ctor(1, 2, 0); -} else { - x_57 = x_56; -} -lean_ctor_set(x_57, 0, x_54); -lean_ctor_set(x_57, 1, x_55); -return x_57; -} -} -} -} -else -{ -lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; -x_58 = lean_ctor_get(x_14, 0); -lean_inc(x_58); -lean_dec(x_14); -x_59 = lean_ctor_get(x_15, 0); -lean_inc(x_59); -x_60 = lean_ctor_get(x_15, 1); -lean_inc(x_60); -x_61 = lean_ctor_get(x_60, 1); -lean_inc(x_61); -x_62 = l_Lean_Expr_fvarId_x21(x_13); -x_63 = l_Lean_NameSet_contains(x_61, x_62); -lean_dec(x_61); -if (x_63 == 0) -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; -lean_dec(x_60); -lean_dec(x_59); -lean_dec(x_13); -lean_inc(x_62); -x_64 = lean_local_ctx_erase(x_17, x_62); -x_65 = l_Lean_LocalInstances_erase(x_58, x_62); -lean_dec(x_62); -x_66 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_66, 0, x_65); -lean_ctor_set(x_66, 1, x_15); -lean_ctor_set(x_6, 1, x_66); -lean_ctor_set(x_6, 0, x_64); -x_4 = x_12; -x_5 = lean_box(0); -goto _start; -} -else -{ -lean_object* x_68; lean_object* x_69; -lean_dec(x_62); -if (lean_is_exclusive(x_15)) { - lean_ctor_release(x_15, 0); - lean_ctor_release(x_15, 1); - x_68 = x_15; -} else { - lean_dec_ref(x_15); - x_68 = lean_box(0); -} -lean_inc(x_7); -lean_inc(x_13); -x_69 = l_Lean_Elab_Term_inferType(x_1, x_13, x_7, x_8); -if (lean_obj_tag(x_69) == 0) -{ -lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_70 = lean_ctor_get(x_69, 0); -lean_inc(x_70); -x_71 = lean_ctor_get(x_69, 1); -lean_inc(x_71); -lean_dec(x_69); -lean_inc(x_7); -x_72 = l_Lean_Elab_Term_collectUsedFVars(x_1, x_60, x_70, x_7, x_71); -x_73 = lean_ctor_get(x_72, 0); -lean_inc(x_73); -x_74 = lean_ctor_get(x_72, 1); -lean_inc(x_74); -lean_dec(x_72); -x_75 = lean_array_push(x_59, x_13); -if (lean_is_scalar(x_68)) { - x_76 = lean_alloc_ctor(0, 2, 0); -} else { - x_76 = x_68; -} -lean_ctor_set(x_76, 0, x_75); -lean_ctor_set(x_76, 1, x_73); -x_77 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_77, 0, x_58); -lean_ctor_set(x_77, 1, x_76); -lean_ctor_set(x_6, 1, x_77); -x_4 = x_12; -x_5 = lean_box(0); -x_8 = x_74; -goto _start; -} -else -{ -lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; -lean_dec(x_68); -lean_dec(x_60); -lean_dec(x_59); -lean_dec(x_58); -lean_free_object(x_6); -lean_dec(x_17); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_7); -x_79 = lean_ctor_get(x_69, 0); -lean_inc(x_79); -x_80 = lean_ctor_get(x_69, 1); -lean_inc(x_80); -if (lean_is_exclusive(x_69)) { - lean_ctor_release(x_69, 0); - lean_ctor_release(x_69, 1); - x_81 = x_69; -} else { - lean_dec_ref(x_69); - x_81 = lean_box(0); -} -if (lean_is_scalar(x_81)) { - x_82 = lean_alloc_ctor(1, 2, 0); -} else { - x_82 = x_81; -} -lean_ctor_set(x_82, 0, x_79); -lean_ctor_set(x_82, 1, x_80); -return x_82; -} -} -} -} -else -{ -lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; -x_83 = lean_ctor_get(x_6, 0); -lean_inc(x_83); -lean_dec(x_6); -x_84 = lean_ctor_get(x_14, 0); -lean_inc(x_84); -if (lean_is_exclusive(x_14)) { - lean_ctor_release(x_14, 0); - lean_ctor_release(x_14, 1); - x_85 = x_14; -} else { - lean_dec_ref(x_14); - x_85 = lean_box(0); -} -x_86 = lean_ctor_get(x_15, 0); -lean_inc(x_86); -x_87 = lean_ctor_get(x_15, 1); -lean_inc(x_87); -x_88 = lean_ctor_get(x_87, 1); -lean_inc(x_88); -x_89 = l_Lean_Expr_fvarId_x21(x_13); -x_90 = l_Lean_NameSet_contains(x_88, x_89); -lean_dec(x_88); -if (x_90 == 0) -{ -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; -lean_dec(x_87); -lean_dec(x_86); -lean_dec(x_13); -lean_inc(x_89); -x_91 = lean_local_ctx_erase(x_83, x_89); -x_92 = l_Lean_LocalInstances_erase(x_84, x_89); -lean_dec(x_89); -if (lean_is_scalar(x_85)) { - x_93 = lean_alloc_ctor(0, 2, 0); -} else { - x_93 = x_85; -} -lean_ctor_set(x_93, 0, x_92); -lean_ctor_set(x_93, 1, x_15); -x_94 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_94, 0, x_91); -lean_ctor_set(x_94, 1, x_93); -x_4 = x_12; -x_5 = lean_box(0); -x_6 = x_94; -goto _start; -} -else -{ -lean_object* x_96; lean_object* x_97; -lean_dec(x_89); -if (lean_is_exclusive(x_15)) { - lean_ctor_release(x_15, 0); - lean_ctor_release(x_15, 1); - x_96 = x_15; -} else { - lean_dec_ref(x_15); - x_96 = lean_box(0); -} -lean_inc(x_7); -lean_inc(x_13); -x_97 = l_Lean_Elab_Term_inferType(x_1, x_13, x_7, x_8); -if (lean_obj_tag(x_97) == 0) -{ -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; lean_object* x_106; -x_98 = lean_ctor_get(x_97, 0); -lean_inc(x_98); -x_99 = lean_ctor_get(x_97, 1); -lean_inc(x_99); -lean_dec(x_97); -lean_inc(x_7); -x_100 = l_Lean_Elab_Term_collectUsedFVars(x_1, x_87, x_98, x_7, x_99); -x_101 = lean_ctor_get(x_100, 0); -lean_inc(x_101); -x_102 = lean_ctor_get(x_100, 1); -lean_inc(x_102); -lean_dec(x_100); -x_103 = lean_array_push(x_86, x_13); -if (lean_is_scalar(x_96)) { - x_104 = lean_alloc_ctor(0, 2, 0); -} else { - x_104 = x_96; -} -lean_ctor_set(x_104, 0, x_103); -lean_ctor_set(x_104, 1, x_101); -if (lean_is_scalar(x_85)) { - x_105 = lean_alloc_ctor(0, 2, 0); -} else { - x_105 = x_85; -} -lean_ctor_set(x_105, 0, x_84); -lean_ctor_set(x_105, 1, x_104); -x_106 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_106, 0, x_83); -lean_ctor_set(x_106, 1, x_105); -x_4 = x_12; -x_5 = lean_box(0); -x_6 = x_106; -x_8 = x_102; -goto _start; -} -else -{ -lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; -lean_dec(x_96); -lean_dec(x_87); -lean_dec(x_86); -lean_dec(x_85); -lean_dec(x_84); -lean_dec(x_83); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_7); -x_108 = lean_ctor_get(x_97, 0); -lean_inc(x_108); -x_109 = lean_ctor_get(x_97, 1); -lean_inc(x_109); -if (lean_is_exclusive(x_97)) { - lean_ctor_release(x_97, 0); - lean_ctor_release(x_97, 1); - x_110 = x_97; -} else { - lean_dec_ref(x_97); - x_110 = lean_box(0); -} -if (lean_is_scalar(x_110)) { - x_111 = lean_alloc_ctor(1, 2, 0); -} else { - x_111 = x_110; -} -lean_ctor_set(x_111, 0, x_108); -lean_ctor_set(x_111, 1, x_109); -return x_111; -} -} -} -} -else -{ -lean_object* x_112; -lean_dec(x_7); -lean_dec(x_4); -x_112 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_112, 0, x_6); -lean_ctor_set(x_112, 1, x_8); -return x_112; -} -} -} -lean_object* l_Lean_Elab_Term_removeUnused(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; lean_object* x_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; -x_6 = l_Lean_Elab_Term_getLocalInsts(x_4, x_5); -x_7 = lean_ctor_get(x_6, 0); -lean_inc(x_7); -x_8 = lean_ctor_get(x_6, 1); -lean_inc(x_8); -lean_dec(x_6); -x_9 = l_Lean_Elab_Term_getLCtx(x_4, x_8); -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_9, 1); -lean_inc(x_11); -lean_dec(x_9); -x_12 = l_Array_empty___closed__1; -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_3); -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_7); -lean_ctor_set(x_14, 1, x_13); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_10); -lean_ctor_set(x_15, 1, x_14); -x_16 = lean_array_get_size(x_2); -x_17 = l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_Elab_Term_removeUnused___spec__1(x_1, x_2, x_2, x_16, lean_box(0), x_15, x_4, x_11); -if (lean_obj_tag(x_17) == 0) -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); -x_19 = lean_ctor_get(x_18, 1); -lean_inc(x_19); -x_20 = lean_ctor_get(x_19, 1); -lean_inc(x_20); -x_21 = !lean_is_exclusive(x_17); -if (x_21 == 0) -{ -lean_object* x_22; lean_object* x_23; uint8_t x_24; -x_22 = lean_ctor_get(x_17, 0); -lean_dec(x_22); -x_23 = lean_ctor_get(x_18, 0); -lean_inc(x_23); -lean_dec(x_18); -x_24 = !lean_is_exclusive(x_19); -if (x_24 == 0) -{ -lean_object* x_25; lean_object* x_26; uint8_t x_27; -x_25 = lean_ctor_get(x_19, 0); -x_26 = lean_ctor_get(x_19, 1); -lean_dec(x_26); -x_27 = !lean_is_exclusive(x_20); -if (x_27 == 0) -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_28 = lean_ctor_get(x_20, 0); -x_29 = lean_ctor_get(x_20, 1); -lean_dec(x_29); -x_30 = lean_unsigned_to_nat(0u); -x_31 = l_Array_reverseAux___main___rarg(x_28, x_30); -lean_ctor_set(x_20, 1, x_31); -lean_ctor_set(x_20, 0, x_25); -lean_ctor_set(x_19, 0, x_23); -lean_ctor_set(x_17, 0, x_19); -return x_17; -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_32 = lean_ctor_get(x_20, 0); -lean_inc(x_32); -lean_dec(x_20); -x_33 = lean_unsigned_to_nat(0u); -x_34 = l_Array_reverseAux___main___rarg(x_32, x_33); -x_35 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_35, 0, x_25); -lean_ctor_set(x_35, 1, x_34); -lean_ctor_set(x_19, 1, x_35); -lean_ctor_set(x_19, 0, x_23); -lean_ctor_set(x_17, 0, x_19); -return x_17; -} -} -else -{ -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_36 = lean_ctor_get(x_19, 0); -lean_inc(x_36); -lean_dec(x_19); -x_37 = lean_ctor_get(x_20, 0); -lean_inc(x_37); -if (lean_is_exclusive(x_20)) { - lean_ctor_release(x_20, 0); - lean_ctor_release(x_20, 1); - x_38 = x_20; -} else { - lean_dec_ref(x_20); - x_38 = lean_box(0); -} -x_39 = lean_unsigned_to_nat(0u); -x_40 = l_Array_reverseAux___main___rarg(x_37, x_39); -if (lean_is_scalar(x_38)) { - x_41 = lean_alloc_ctor(0, 2, 0); -} else { - x_41 = x_38; -} -lean_ctor_set(x_41, 0, x_36); -lean_ctor_set(x_41, 1, x_40); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_23); -lean_ctor_set(x_42, 1, x_41); -lean_ctor_set(x_17, 0, x_42); -return x_17; -} -} -else -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_43 = lean_ctor_get(x_17, 1); -lean_inc(x_43); -lean_dec(x_17); -x_44 = lean_ctor_get(x_18, 0); -lean_inc(x_44); -lean_dec(x_18); -x_45 = lean_ctor_get(x_19, 0); -lean_inc(x_45); -if (lean_is_exclusive(x_19)) { - lean_ctor_release(x_19, 0); - lean_ctor_release(x_19, 1); - x_46 = x_19; -} else { - lean_dec_ref(x_19); - x_46 = lean_box(0); -} -x_47 = lean_ctor_get(x_20, 0); -lean_inc(x_47); -if (lean_is_exclusive(x_20)) { - lean_ctor_release(x_20, 0); - lean_ctor_release(x_20, 1); - x_48 = x_20; -} else { - lean_dec_ref(x_20); - x_48 = lean_box(0); -} -x_49 = lean_unsigned_to_nat(0u); -x_50 = l_Array_reverseAux___main___rarg(x_47, x_49); -if (lean_is_scalar(x_48)) { - x_51 = lean_alloc_ctor(0, 2, 0); -} else { - x_51 = x_48; -} -lean_ctor_set(x_51, 0, x_45); -lean_ctor_set(x_51, 1, x_50); -if (lean_is_scalar(x_46)) { - x_52 = lean_alloc_ctor(0, 2, 0); -} else { - x_52 = x_46; -} -lean_ctor_set(x_52, 0, x_44); -lean_ctor_set(x_52, 1, x_51); -x_53 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_43); -return x_53; -} -} -else -{ -uint8_t x_54; -x_54 = !lean_is_exclusive(x_17); -if (x_54 == 0) -{ -return x_17; -} -else -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_17, 0); -x_56 = lean_ctor_get(x_17, 1); -lean_inc(x_56); -lean_inc(x_55); -lean_dec(x_17); -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_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_Elab_Term_removeUnused___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) { -_start: -{ -lean_object* x_9; -x_9 = l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_Elab_Term_removeUnused___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_9; -} -} -lean_object* l_Lean_Elab_Term_removeUnused___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_Lean_Elab_Term_removeUnused(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_2); -lean_dec(x_1); -return x_6; +return x_5; } } lean_object* initialize_Init(lean_object*); diff --git a/stage0/stdlib/Lean/Elab/Command.c b/stage0/stdlib/Lean/Elab/Command.c index 905de5a45b..d5d885c401 100644 --- a/stage0/stdlib/Lean/Elab/Command.c +++ b/stage0/stdlib/Lean/Elab/Command.c @@ -15,7 +15,7 @@ extern "C" { #endif lean_object* l___private_Lean_Elab_Command_10__addScopes___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_CommandElabM_monadLog___lambda__1(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_mkAppM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkAppM(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabVariable(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getEnv___rarg(lean_object*); extern lean_object* l_Lean_Name_toString___closed__1; @@ -34,8 +34,8 @@ lean_object* l_Lean_Elab_Command_withDeclId___rarg___closed__2; lean_object* l___private_Lean_Elab_Command_4__modifyGetState(lean_object*); extern lean_object* l_Lean_Elab_Tactic_evalTactic___main___closed__3; lean_object* l_Lean_Elab_Command_Lean_Elab_MonadMacroAdapter___closed__11; -lean_object* l_Lean_Elab_Command_addDecl(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_addDecl(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_instantiateMVars(lean_object*, lean_object*, lean_object*); lean_object* lean_nat_div(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_withDeclId___rarg___closed__1; lean_object* l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabVariable___spec__2(lean_object*, lean_object*, lean_object*); @@ -55,7 +55,7 @@ lean_object* l_Lean_Elab_Command_CommandElabCoreM_monadState___closed__2; lean_object* l___private_Lean_Elab_Command_11__addNamespace___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); lean_object* lean_io_error_to_string(lean_object*); -lean_object* l_Lean_Elab_Term_inferType(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_inferType(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__1; lean_object* l___private_Lean_Elab_Command_7__mkTermState___boxed(lean_object*); lean_object* l___private_Lean_Elab_Command_12__checkAnonymousScope___boxed(lean_object*); @@ -103,21 +103,21 @@ lean_object* l_List_append___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabSetOption(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Command_logTrace___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_io_ref_get(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_compileDecl(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_compileDecl(lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Command_elabOpenSimple___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlStepMAux___main___at_Lean_Elab_Command_elabOpenRenaming___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabVariable(lean_object*); lean_object* l_Lean_Elab_Command_liftTermElabM(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabSection(lean_object*); lean_object* l_Lean_Elab_Command_getCurrMacroScope___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_compileDecl(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_compileDecl(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Elab_Command_13__checkEndHeader___main(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_addInstance(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Command_3__setState(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__3___closed__2; lean_object* l_Std_AssocList_find_x3f___main___at_Lean_Elab_Command_elabCommand___main___spec__6___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_mkLambda(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkLambda(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_State_inhabited___closed__4; lean_object* lean_array_push(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabVariables___spec__1(lean_object*, lean_object*, lean_object*); @@ -131,7 +131,7 @@ lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__2___closed__1; lean_object* l_Lean_Elab_Command_elabUniverse___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabSynth___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Command_init__quot___elambda__1___closed__2; -lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_getMaxRecDepth___closed__1; lean_object* l_Lean_Elab_Command_CommandElabM_monadLog___closed__11; lean_object* l_Lean_SMap_empty___at_Lean_Elab_Command_commandElabAttribute___spec__1___closed__2; @@ -168,7 +168,7 @@ lean_object* l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_withDeclId__ lean_object* l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabVariables___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabUniverses___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabVariables___spec__2(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Term_3__fromMetaState(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Term_3__fromMetaState(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabEnd___closed__9; lean_object* l_Lean_Elab_Command_throwUnsupportedSyntax___rarg(lean_object*); @@ -188,7 +188,7 @@ lean_object* l_Lean_Elab_Command_Lean_Elab_MonadMacroAdapter___closed__1; lean_object* l_Lean_Elab_Term_getOptions(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Command_9__addScope(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Term_11__elabUsingElabFnsAux___main___closed__3; -lean_object* l_Lean_Elab_Term_addDecl(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_addDecl(lean_object*, lean_object*, lean_object*); lean_object* lean_with_isolated_streams(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_State_inhabited___closed__1; lean_object* l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); @@ -227,14 +227,14 @@ lean_object* l_Lean_Elab_Command_CommandElabM_monadLog___closed__1; lean_object* l_Lean_Elab_Command_CommandElabM_monadLog___closed__3; lean_object* l_Lean_Elab_Command_Lean_Elab_MonadMacroAdapter___closed__9; lean_object* l_Lean_Elab_Command_CommandElabM_monadLog___lambda__3___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_EnvExtension_Inhabited___rarg___closed__1; lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Command_logTrace___spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getOptionDecl(lean_object*, lean_object*); lean_object* l_Lean_Elab_mkMessage___at_Lean_Elab_Command_throwError___spec__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_CommandElabM_monadLog___closed__2; extern lean_object* l_Lean_numLitKind; -lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabExport___closed__3; lean_object* l_Lean_Elab_Command_dbgTrace(lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); @@ -251,7 +251,6 @@ lean_object* lean_array_swap(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__1___closed__1; extern lean_object* l_Lean_Parser_Command_set__option___elambda__1___closed__2; lean_object* l_Lean_Syntax_isStrLit_x3f(lean_object*); -lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_append___main(lean_object*, lean_object*); extern lean_object* l_Lean_PersistentEnvExtension_inhabited___rarg___closed__2; lean_object* l_Array_shrink___main___rarg(lean_object*, lean_object*); @@ -267,6 +266,7 @@ lean_object* l___regBuiltin_Lean_Elab_Command_elabOpen___closed__1; lean_object* l___regBuiltin_Lean_Elab_Command_elabVariables___closed__1; lean_object* l_Lean_KernelException_toMessageData(lean_object*, lean_object*); lean_object* l_Lean_Elab_getPos___at_Lean_Elab_Command_throwError___spec__2(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_throwAlreadyDeclaredUniverseLevel(lean_object*); lean_object* l_Lean_Elab_Command_CommandElabM_monadLog___closed__4; extern lean_object* l_Lean_Parser_Command_eval___elambda__1___closed__2; @@ -289,7 +289,6 @@ lean_object* l___regBuiltin_Lean_Elab_Command_elabSetOption(lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Command_withDeclId___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t l_Lean_Name_hash(lean_object*); lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Elab_Command_elabCommand___main___spec__5___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_elabTermAux___main(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*); extern lean_object* l_Char_HasRepr___closed__1; extern lean_object* l_Lean_Elab_Term_elabUsingElabFns___closed__6; lean_object* l___private_Lean_Elab_Command_10__addScopes(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); @@ -302,7 +301,7 @@ lean_object* l_Lean_Syntax_prettyPrint(lean_object*); lean_object* l_Lean_Elab_Command_adaptExpander(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_Lean_Elab_MonadMacroAdapter___closed__5; lean_object* lean_name_mk_string(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_throwError___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_throwError___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_KVMap_insertCore___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_Lean_Elab_MonadMacroAdapter___closed__3; lean_object* l_Lean_Elab_Command_runTermElabM___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -318,7 +317,7 @@ lean_object* l_Std_PersistentHashMap_findAux___main___at_Lean_Elab_Command_elabC lean_object* l___regBuiltin_Lean_Elab_Command_elabExport(lean_object*); lean_object* l_Lean_Elab_Command_getScopes(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_modifyEnv(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_withLocalDecl___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_withLocalDecl___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; extern lean_object* l_Lean_Meta_withIncRecDepth___rarg___closed__2; lean_object* l_Lean_Elab_Command_elbChoice(lean_object*, lean_object*, lean_object*); @@ -336,6 +335,7 @@ lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__1; lean_object* l_Lean_Elab_Command_elabEvalUnsafe___closed__1; lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Command_elabOpenSimple___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_read___at_Lean_Elab_Command_CommandElabM_monadLog___spec__1(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabEvalUnsafe___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_addUnivLevel___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabInitQuot(lean_object*); size_t lean_usize_modn(size_t, lean_object*); @@ -372,7 +372,7 @@ lean_object* l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(lean_ lean_object* l_Lean_Elab_Command_modifyScope___closed__1; lean_object* l_Array_filterAux___main___at_Lean_Elab_Command_sortDeclLevelParams___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_registerAttributeImplBuilder___closed__2; -lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_throwAlreadyDeclaredUniverseLevel___rarg___closed__1; lean_object* l___regBuiltin_Lean_Elab_Command_elabEval___closed__1; extern lean_object* l_Lean_PersistentEnvExtension_inhabited___rarg___closed__3; @@ -472,7 +472,7 @@ lean_object* l___regBuiltin_Lean_Elab_Command_elabOpen(lean_object*); lean_object* l_Std_mkHashMap___at_Lean_Elab_Command_commandElabAttribute___spec__2(lean_object*); extern lean_object* l_Lean_PrettyPrinter_parenthesizeCommand___closed__1; lean_object* l_Lean_Elab_Command_withNamespace___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_compileDecl___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_compileDecl___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_failIfSucceeds___closed__4; lean_object* l_Lean_Elab_Command_mkCommandElabAttribute___closed__8; extern lean_object* l_Lean_Parser_Command_eval___elambda__1___closed__1; @@ -497,7 +497,7 @@ lean_object* l___regBuiltin_Lean_Elab_Command_elabNamespace(lean_object*); extern lean_object* l_Lean_Parser_Command_universes___elambda__1___closed__2; lean_object* l_Lean_Elab_Command_elabEnd___closed__3; lean_object* lean_io_ref_set(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkOptionalNode___closed__1; lean_object* l_Lean_Elab_Command_getLevelNames(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_Lean_Elab_MonadMacroAdapter___closed__10; @@ -575,7 +575,7 @@ lean_object* l_Lean_Elab_Command_elabOpenRenaming___boxed(lean_object*, lean_obj lean_object* l_Lean_Elab_Command_failIfSucceeds___closed__5; lean_object* l_Lean_Elab_Command_elabOpenOnly___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Command_synth___elambda__1___closed__2; -lean_object* l___private_Lean_Elab_Term_2__fromMetaException(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Term_2__fromMetaException(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabSynth___closed__3; lean_object* l_Lean_Elab_Command_sortDeclLevelParams___closed__1; lean_object* l_Lean_Elab_Command_elabChoiceAux___main(lean_object*, lean_object*, lean_object*, lean_object*); @@ -599,7 +599,7 @@ lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Command_elabOpenOnly___sp extern lean_object* l_Lean_NameGenerator_Inhabited___closed__3; lean_object* l_Lean_Elab_Command_Exception_inhabited; lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_addDecl___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_addDecl___boxed(lean_object*, lean_object*, lean_object*); uint8_t lean_string_dec_eq(lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l_Lean_Elab_log___at_Lean_Elab_Command_logTrace___spec__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); @@ -7247,7 +7247,7 @@ return x_27; lean_object* l___private_Lean_Elab_Command_6__mkTermContext(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; 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; 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_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; 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; x_4 = lean_ctor_get(x_2, 2); x_5 = lean_ctor_get(x_2, 4); x_6 = l_List_head_x21___at_Lean_Elab_Command_getScope___spec__1(x_4); @@ -7288,26 +7288,28 @@ lean_inc(x_22); x_23 = lean_ctor_get(x_6, 4); lean_inc(x_23); lean_dec(x_6); +x_24 = lean_box(0); lean_inc(x_17); lean_inc(x_16); lean_inc(x_15); lean_inc(x_13); lean_inc(x_12); -x_24 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_24, 0, x_20); -lean_ctor_set(x_24, 1, x_12); -lean_ctor_set(x_24, 2, x_13); -lean_ctor_set(x_24, 3, x_15); -lean_ctor_set(x_24, 4, x_21); -lean_ctor_set(x_24, 5, x_3); -lean_ctor_set(x_24, 6, x_22); -lean_ctor_set(x_24, 7, x_23); -lean_ctor_set(x_24, 8, x_16); -lean_ctor_set(x_24, 9, x_17); -lean_ctor_set_uint8(x_24, sizeof(void*)*10, x_8); -lean_ctor_set_uint8(x_24, sizeof(void*)*10 + 1, x_8); -lean_ctor_set_uint8(x_24, sizeof(void*)*10 + 2, x_8); -return x_24; +x_25 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_25, 0, x_20); +lean_ctor_set(x_25, 1, x_12); +lean_ctor_set(x_25, 2, x_13); +lean_ctor_set(x_25, 3, x_15); +lean_ctor_set(x_25, 4, x_21); +lean_ctor_set(x_25, 5, x_3); +lean_ctor_set(x_25, 6, x_22); +lean_ctor_set(x_25, 7, x_23); +lean_ctor_set(x_25, 8, x_16); +lean_ctor_set(x_25, 9, x_17); +lean_ctor_set(x_25, 10, x_24); +lean_ctor_set_uint8(x_25, sizeof(void*)*11, x_8); +lean_ctor_set_uint8(x_25, sizeof(void*)*11 + 1, x_8); +lean_ctor_set_uint8(x_25, sizeof(void*)*11 + 2, x_8); +return x_25; } } lean_object* l___private_Lean_Elab_Command_6__mkTermContext___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { @@ -18547,7 +18549,7 @@ lean_object* x_6; uint8_t x_7; lean_object* x_8; x_6 = lean_box(0); x_7 = 1; lean_inc(x_4); -x_8 = l_Lean_Elab_Term_elabTermAux___main(x_6, x_7, x_7, x_1, x_4, x_5); +x_8 = l_Lean_Elab_Term_elabTerm(x_1, x_6, x_7, x_4, x_5); if (lean_obj_tag(x_8) == 0) { lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; @@ -18568,7 +18570,7 @@ lean_inc(x_14); lean_dec(x_13); lean_inc(x_4); lean_inc(x_9); -x_15 = l_Lean_Elab_Term_inferType(x_2, x_9, x_4, x_14); +x_15 = l_Lean_Elab_Term_inferType(x_9, x_4, x_14); if (lean_obj_tag(x_15) == 0) { 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; uint8_t x_23; lean_object* x_24; uint8_t x_25; @@ -20688,856 +20690,854 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* l_Lean_Elab_Command_addDecl(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Command_addDecl(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; lean_object* x_6; -x_5 = lean_box(0); -lean_inc(x_3); -x_6 = l___private_Lean_Elab_Command_2__getState(x_3, x_4); -if (lean_obj_tag(x_6) == 0) +lean_object* x_4; lean_object* x_5; +x_4 = lean_box(0); +lean_inc(x_2); +x_5 = l___private_Lean_Elab_Command_2__getState(x_2, x_3); +if (lean_obj_tag(x_5) == 0) { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_7 = lean_ctor_get(x_6, 0); +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); lean_inc(x_7); -x_8 = lean_ctor_get(x_6, 1); -lean_inc(x_8); +lean_dec(x_5); +x_8 = l___private_Lean_Elab_Command_6__mkTermContext(x_2, x_6, x_4); +x_9 = l___private_Lean_Elab_Command_7__mkTermState(x_6); lean_dec(x_6); -x_9 = l___private_Lean_Elab_Command_6__mkTermContext(x_3, x_7, x_5); -x_10 = l___private_Lean_Elab_Command_7__mkTermState(x_7); -lean_dec(x_7); -x_11 = l_Lean_Elab_Term_addDecl(x_1, x_2, x_9, x_10); -if (lean_obj_tag(x_11) == 0) +x_10 = l_Lean_Elab_Term_addDecl(x_1, x_8, x_9); +if (lean_obj_tag(x_10) == 0) { -lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_12 = lean_ctor_get(x_11, 0); +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); lean_inc(x_12); -x_13 = lean_ctor_get(x_11, 1); -lean_inc(x_13); -lean_dec(x_11); -lean_inc(x_3); -x_14 = l___private_Lean_Elab_Command_2__getState(x_3, x_8); -if (lean_obj_tag(x_14) == 0) +lean_dec(x_10); +lean_inc(x_2); +x_13 = l___private_Lean_Elab_Command_2__getState(x_2, x_7); +if (lean_obj_tag(x_13) == 0) { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_14 = lean_ctor_get(x_12, 0); +lean_inc(x_14); x_15 = lean_ctor_get(x_13, 0); lean_inc(x_15); -x_16 = lean_ctor_get(x_14, 0); +x_16 = lean_ctor_get(x_13, 1); lean_inc(x_16); -x_17 = lean_ctor_get(x_14, 1); -lean_inc(x_17); -lean_dec(x_14); -x_18 = lean_ctor_get(x_15, 0); -lean_inc(x_18); -x_19 = lean_ctor_get(x_15, 3); -lean_inc(x_19); -lean_dec(x_15); -x_20 = lean_ctor_get(x_13, 2); -lean_inc(x_20); lean_dec(x_13); -x_21 = !lean_is_exclusive(x_16); -if (x_21 == 0) -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_22 = lean_ctor_get(x_16, 5); -lean_dec(x_22); -x_23 = lean_ctor_get(x_16, 1); -lean_dec(x_23); -x_24 = lean_ctor_get(x_16, 0); -lean_dec(x_24); -lean_ctor_set(x_16, 5, x_19); -lean_ctor_set(x_16, 1, x_20); -lean_ctor_set(x_16, 0, x_18); -x_25 = l___private_Lean_Elab_Command_3__setState(x_16, x_3, x_17); -if (lean_obj_tag(x_25) == 0) -{ -uint8_t x_26; -x_26 = !lean_is_exclusive(x_25); -if (x_26 == 0) -{ -lean_object* x_27; -x_27 = lean_ctor_get(x_25, 0); -lean_dec(x_27); -lean_ctor_set(x_25, 0, x_12); -return x_25; -} -else -{ -lean_object* x_28; lean_object* x_29; -x_28 = lean_ctor_get(x_25, 1); -lean_inc(x_28); -lean_dec(x_25); -x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_12); -lean_ctor_set(x_29, 1, x_28); -return x_29; -} -} -else -{ -uint8_t x_30; +x_17 = lean_ctor_get(x_14, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_14, 3); +lean_inc(x_18); +lean_dec(x_14); +x_19 = lean_ctor_get(x_12, 2); +lean_inc(x_19); lean_dec(x_12); -x_30 = !lean_is_exclusive(x_25); -if (x_30 == 0) +x_20 = !lean_is_exclusive(x_15); +if (x_20 == 0) { -return x_25; +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_15, 5); +lean_dec(x_21); +x_22 = lean_ctor_get(x_15, 1); +lean_dec(x_22); +x_23 = lean_ctor_get(x_15, 0); +lean_dec(x_23); +lean_ctor_set(x_15, 5, x_18); +lean_ctor_set(x_15, 1, x_19); +lean_ctor_set(x_15, 0, x_17); +x_24 = l___private_Lean_Elab_Command_3__setState(x_15, x_2, x_16); +if (lean_obj_tag(x_24) == 0) +{ +uint8_t x_25; +x_25 = !lean_is_exclusive(x_24); +if (x_25 == 0) +{ +lean_object* x_26; +x_26 = lean_ctor_get(x_24, 0); +lean_dec(x_26); +lean_ctor_set(x_24, 0, x_11); +return x_24; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_25, 0); -x_32 = lean_ctor_get(x_25, 1); -lean_inc(x_32); +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_24, 1); +lean_inc(x_27); +lean_dec(x_24); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_11); +lean_ctor_set(x_28, 1, x_27); +return x_28; +} +} +else +{ +uint8_t x_29; +lean_dec(x_11); +x_29 = !lean_is_exclusive(x_24); +if (x_29 == 0) +{ +return x_24; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_24, 0); +x_31 = lean_ctor_get(x_24, 1); lean_inc(x_31); -lean_dec(x_25); -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_inc(x_30); +lean_dec(x_24); +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 { -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_34 = lean_ctor_get(x_16, 2); -x_35 = lean_ctor_get(x_16, 3); -x_36 = lean_ctor_get(x_16, 4); -lean_inc(x_36); +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_33 = lean_ctor_get(x_15, 2); +x_34 = lean_ctor_get(x_15, 3); +x_35 = lean_ctor_get(x_15, 4); lean_inc(x_35); lean_inc(x_34); -lean_dec(x_16); -x_37 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_37, 0, x_18); -lean_ctor_set(x_37, 1, x_20); -lean_ctor_set(x_37, 2, x_34); -lean_ctor_set(x_37, 3, x_35); -lean_ctor_set(x_37, 4, x_36); -lean_ctor_set(x_37, 5, x_19); -x_38 = l___private_Lean_Elab_Command_3__setState(x_37, x_3, x_17); -if (lean_obj_tag(x_38) == 0) +lean_inc(x_33); +lean_dec(x_15); +x_36 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_36, 0, x_17); +lean_ctor_set(x_36, 1, x_19); +lean_ctor_set(x_36, 2, x_33); +lean_ctor_set(x_36, 3, x_34); +lean_ctor_set(x_36, 4, x_35); +lean_ctor_set(x_36, 5, x_18); +x_37 = l___private_Lean_Elab_Command_3__setState(x_36, x_2, x_16); +if (lean_obj_tag(x_37) == 0) { -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_38, 1); -lean_inc(x_39); -if (lean_is_exclusive(x_38)) { - lean_ctor_release(x_38, 0); - lean_ctor_release(x_38, 1); - x_40 = x_38; +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_37, 1); +lean_inc(x_38); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_39 = x_37; } else { - lean_dec_ref(x_38); - x_40 = lean_box(0); + lean_dec_ref(x_37); + x_39 = lean_box(0); } -if (lean_is_scalar(x_40)) { - x_41 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_39)) { + x_40 = lean_alloc_ctor(0, 2, 0); } else { - x_41 = x_40; + x_40 = x_39; } -lean_ctor_set(x_41, 0, x_12); -lean_ctor_set(x_41, 1, x_39); -return x_41; +lean_ctor_set(x_40, 0, x_11); +lean_ctor_set(x_40, 1, x_38); +return x_40; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -lean_dec(x_12); -x_42 = lean_ctor_get(x_38, 0); -lean_inc(x_42); -x_43 = lean_ctor_get(x_38, 1); -lean_inc(x_43); -if (lean_is_exclusive(x_38)) { - lean_ctor_release(x_38, 0); - lean_ctor_release(x_38, 1); - x_44 = x_38; -} else { - lean_dec_ref(x_38); - x_44 = lean_box(0); -} -if (lean_is_scalar(x_44)) { - x_45 = lean_alloc_ctor(1, 2, 0); -} else { - x_45 = x_44; -} -lean_ctor_set(x_45, 0, x_42); -lean_ctor_set(x_45, 1, x_43); -return x_45; -} -} -} -else -{ -uint8_t x_46; -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_3); -x_46 = !lean_is_exclusive(x_14); -if (x_46 == 0) -{ -return x_14; -} -else -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = lean_ctor_get(x_14, 0); -x_48 = lean_ctor_get(x_14, 1); -lean_inc(x_48); -lean_inc(x_47); -lean_dec(x_14); -x_49 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -return x_49; -} -} -} -else -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_50 = lean_ctor_get(x_11, 0); -lean_inc(x_50); -x_51 = lean_ctor_get(x_11, 1); -lean_inc(x_51); +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_dec(x_11); -x_52 = lean_ctor_get(x_50, 0); -lean_inc(x_52); -lean_dec(x_50); -lean_inc(x_3); -x_53 = l___private_Lean_Elab_Command_2__getState(x_3, x_8); -if (lean_obj_tag(x_53) == 0) +x_41 = lean_ctor_get(x_37, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_37, 1); +lean_inc(x_42); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_43 = x_37; +} else { + lean_dec_ref(x_37); + 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(x_44, 0, x_41); +lean_ctor_set(x_44, 1, x_42); +return x_44; +} +} +} +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; uint8_t x_60; -x_54 = lean_ctor_get(x_51, 0); +uint8_t x_45; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_2); +x_45 = !lean_is_exclusive(x_13); +if (x_45 == 0) +{ +return x_13; +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_13, 0); +x_47 = lean_ctor_get(x_13, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_13); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; +} +} +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_49 = lean_ctor_get(x_10, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_10, 1); +lean_inc(x_50); +lean_dec(x_10); +x_51 = lean_ctor_get(x_49, 0); +lean_inc(x_51); +lean_dec(x_49); +lean_inc(x_2); +x_52 = l___private_Lean_Elab_Command_2__getState(x_2, x_7); +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; lean_object* x_58; uint8_t x_59; +x_53 = lean_ctor_get(x_50, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_52, 0); lean_inc(x_54); -x_55 = lean_ctor_get(x_53, 0); +x_55 = lean_ctor_get(x_52, 1); lean_inc(x_55); -x_56 = lean_ctor_get(x_53, 1); -lean_inc(x_56); -lean_dec(x_53); -x_57 = lean_ctor_get(x_54, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_54, 3); -lean_inc(x_58); -lean_dec(x_54); -x_59 = lean_ctor_get(x_51, 2); -lean_inc(x_59); -lean_dec(x_51); -x_60 = !lean_is_exclusive(x_55); -if (x_60 == 0) -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_61 = lean_ctor_get(x_55, 5); -lean_dec(x_61); -x_62 = lean_ctor_get(x_55, 1); -lean_dec(x_62); -x_63 = lean_ctor_get(x_55, 0); -lean_dec(x_63); -lean_ctor_set(x_55, 5, x_58); -lean_ctor_set(x_55, 1, x_59); -lean_ctor_set(x_55, 0, x_57); -x_64 = l___private_Lean_Elab_Command_3__setState(x_55, x_3, x_56); -if (lean_obj_tag(x_64) == 0) -{ -uint8_t x_65; -x_65 = !lean_is_exclusive(x_64); -if (x_65 == 0) -{ -lean_object* x_66; -x_66 = lean_ctor_get(x_64, 0); -lean_dec(x_66); -lean_ctor_set_tag(x_64, 1); -lean_ctor_set(x_64, 0, x_52); -return x_64; -} -else -{ -lean_object* x_67; lean_object* x_68; -x_67 = lean_ctor_get(x_64, 1); -lean_inc(x_67); -lean_dec(x_64); -x_68 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_68, 0, x_52); -lean_ctor_set(x_68, 1, x_67); -return x_68; -} -} -else -{ -uint8_t x_69; lean_dec(x_52); -x_69 = !lean_is_exclusive(x_64); -if (x_69 == 0) +x_56 = lean_ctor_get(x_53, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_53, 3); +lean_inc(x_57); +lean_dec(x_53); +x_58 = lean_ctor_get(x_50, 2); +lean_inc(x_58); +lean_dec(x_50); +x_59 = !lean_is_exclusive(x_54); +if (x_59 == 0) { -return x_64; +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_60 = lean_ctor_get(x_54, 5); +lean_dec(x_60); +x_61 = lean_ctor_get(x_54, 1); +lean_dec(x_61); +x_62 = lean_ctor_get(x_54, 0); +lean_dec(x_62); +lean_ctor_set(x_54, 5, x_57); +lean_ctor_set(x_54, 1, x_58); +lean_ctor_set(x_54, 0, x_56); +x_63 = l___private_Lean_Elab_Command_3__setState(x_54, x_2, x_55); +if (lean_obj_tag(x_63) == 0) +{ +uint8_t x_64; +x_64 = !lean_is_exclusive(x_63); +if (x_64 == 0) +{ +lean_object* x_65; +x_65 = lean_ctor_get(x_63, 0); +lean_dec(x_65); +lean_ctor_set_tag(x_63, 1); +lean_ctor_set(x_63, 0, x_51); +return x_63; } else { -lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_70 = lean_ctor_get(x_64, 0); -x_71 = lean_ctor_get(x_64, 1); -lean_inc(x_71); +lean_object* x_66; lean_object* x_67; +x_66 = lean_ctor_get(x_63, 1); +lean_inc(x_66); +lean_dec(x_63); +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_51); +lean_ctor_set(x_67, 1, x_66); +return x_67; +} +} +else +{ +uint8_t x_68; +lean_dec(x_51); +x_68 = !lean_is_exclusive(x_63); +if (x_68 == 0) +{ +return x_63; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_63, 0); +x_70 = lean_ctor_get(x_63, 1); lean_inc(x_70); -lean_dec(x_64); -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; +lean_inc(x_69); +lean_dec(x_63); +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_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_73 = lean_ctor_get(x_55, 2); -x_74 = lean_ctor_get(x_55, 3); -x_75 = lean_ctor_get(x_55, 4); -lean_inc(x_75); +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_72 = lean_ctor_get(x_54, 2); +x_73 = lean_ctor_get(x_54, 3); +x_74 = lean_ctor_get(x_54, 4); lean_inc(x_74); lean_inc(x_73); -lean_dec(x_55); -x_76 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_76, 0, x_57); -lean_ctor_set(x_76, 1, x_59); -lean_ctor_set(x_76, 2, x_73); -lean_ctor_set(x_76, 3, x_74); -lean_ctor_set(x_76, 4, x_75); -lean_ctor_set(x_76, 5, x_58); -x_77 = l___private_Lean_Elab_Command_3__setState(x_76, x_3, x_56); -if (lean_obj_tag(x_77) == 0) +lean_inc(x_72); +lean_dec(x_54); +x_75 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_75, 0, x_56); +lean_ctor_set(x_75, 1, x_58); +lean_ctor_set(x_75, 2, x_72); +lean_ctor_set(x_75, 3, x_73); +lean_ctor_set(x_75, 4, x_74); +lean_ctor_set(x_75, 5, x_57); +x_76 = l___private_Lean_Elab_Command_3__setState(x_75, x_2, x_55); +if (lean_obj_tag(x_76) == 0) { -lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_78 = lean_ctor_get(x_77, 1); -lean_inc(x_78); -if (lean_is_exclusive(x_77)) { - lean_ctor_release(x_77, 0); - lean_ctor_release(x_77, 1); - x_79 = x_77; +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_76, 1); +lean_inc(x_77); +if (lean_is_exclusive(x_76)) { + lean_ctor_release(x_76, 0); + lean_ctor_release(x_76, 1); + x_78 = x_76; } else { - lean_dec_ref(x_77); - x_79 = lean_box(0); + lean_dec_ref(x_76); + x_78 = lean_box(0); } -if (lean_is_scalar(x_79)) { - x_80 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_78)) { + x_79 = lean_alloc_ctor(1, 2, 0); } else { - x_80 = x_79; - lean_ctor_set_tag(x_80, 1); + x_79 = x_78; + lean_ctor_set_tag(x_79, 1); } -lean_ctor_set(x_80, 0, x_52); -lean_ctor_set(x_80, 1, x_78); -return x_80; +lean_ctor_set(x_79, 0, x_51); +lean_ctor_set(x_79, 1, x_77); +return x_79; } else { -lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; -lean_dec(x_52); -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 -{ -uint8_t x_85; -lean_dec(x_52); +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_dec(x_51); -lean_dec(x_3); -x_85 = !lean_is_exclusive(x_53); -if (x_85 == 0) -{ -return x_53; +x_80 = lean_ctor_get(x_76, 0); +lean_inc(x_80); +x_81 = lean_ctor_get(x_76, 1); +lean_inc(x_81); +if (lean_is_exclusive(x_76)) { + lean_ctor_release(x_76, 0); + lean_ctor_release(x_76, 1); + x_82 = x_76; +} else { + lean_dec_ref(x_76); + x_82 = lean_box(0); } -else -{ -lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_86 = lean_ctor_get(x_53, 0); -x_87 = lean_ctor_get(x_53, 1); -lean_inc(x_87); -lean_inc(x_86); -lean_dec(x_53); -x_88 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_88, 0, x_86); -lean_ctor_set(x_88, 1, x_87); -return x_88; +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; } } } else { -uint8_t x_89; -lean_dec(x_3); -x_89 = !lean_is_exclusive(x_6); -if (x_89 == 0) -{ -return x_6; -} -else -{ -lean_object* x_90; lean_object* x_91; lean_object* x_92; -x_90 = lean_ctor_get(x_6, 0); -x_91 = lean_ctor_get(x_6, 1); -lean_inc(x_91); -lean_inc(x_90); -lean_dec(x_6); -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; -} -} -} -} -lean_object* l_Lean_Elab_Command_addDecl___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_Elab_Command_addDecl(x_1, x_2, x_3, x_4); +uint8_t x_84; +lean_dec(x_51); +lean_dec(x_50); lean_dec(x_2); -lean_dec(x_1); +x_84 = !lean_is_exclusive(x_52); +if (x_84 == 0) +{ +return x_52; +} +else +{ +lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_85 = lean_ctor_get(x_52, 0); +x_86 = lean_ctor_get(x_52, 1); +lean_inc(x_86); +lean_inc(x_85); +lean_dec(x_52); +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 +{ +uint8_t x_88; +lean_dec(x_2); +x_88 = !lean_is_exclusive(x_5); +if (x_88 == 0) +{ return x_5; } +else +{ +lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_89 = lean_ctor_get(x_5, 0); +x_90 = lean_ctor_get(x_5, 1); +lean_inc(x_90); +lean_inc(x_89); +lean_dec(x_5); +x_91 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_91, 0, x_89); +lean_ctor_set(x_91, 1, x_90); +return x_91; } -lean_object* l_Lean_Elab_Command_compileDecl(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +} +} +} +lean_object* l_Lean_Elab_Command_addDecl___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; lean_object* x_6; -x_5 = lean_box(0); -lean_inc(x_3); -x_6 = l___private_Lean_Elab_Command_2__getState(x_3, x_4); -if (lean_obj_tag(x_6) == 0) +lean_object* x_4; +x_4 = l_Lean_Elab_Command_addDecl(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Lean_Elab_Command_compileDecl(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_7 = lean_ctor_get(x_6, 0); +lean_object* x_4; lean_object* x_5; +x_4 = lean_box(0); +lean_inc(x_2); +x_5 = l___private_Lean_Elab_Command_2__getState(x_2, x_3); +if (lean_obj_tag(x_5) == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); lean_inc(x_7); -x_8 = lean_ctor_get(x_6, 1); -lean_inc(x_8); +lean_dec(x_5); +x_8 = l___private_Lean_Elab_Command_6__mkTermContext(x_2, x_6, x_4); +x_9 = l___private_Lean_Elab_Command_7__mkTermState(x_6); lean_dec(x_6); -x_9 = l___private_Lean_Elab_Command_6__mkTermContext(x_3, x_7, x_5); -x_10 = l___private_Lean_Elab_Command_7__mkTermState(x_7); -lean_dec(x_7); -x_11 = l_Lean_Elab_Term_compileDecl(x_1, x_2, x_9, x_10); -if (lean_obj_tag(x_11) == 0) +x_10 = l_Lean_Elab_Term_compileDecl(x_1, x_8, x_9); +if (lean_obj_tag(x_10) == 0) { -lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_12 = lean_ctor_get(x_11, 0); +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); lean_inc(x_12); -x_13 = lean_ctor_get(x_11, 1); -lean_inc(x_13); -lean_dec(x_11); -lean_inc(x_3); -x_14 = l___private_Lean_Elab_Command_2__getState(x_3, x_8); -if (lean_obj_tag(x_14) == 0) +lean_dec(x_10); +lean_inc(x_2); +x_13 = l___private_Lean_Elab_Command_2__getState(x_2, x_7); +if (lean_obj_tag(x_13) == 0) { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_14 = lean_ctor_get(x_12, 0); +lean_inc(x_14); x_15 = lean_ctor_get(x_13, 0); lean_inc(x_15); -x_16 = lean_ctor_get(x_14, 0); +x_16 = lean_ctor_get(x_13, 1); lean_inc(x_16); -x_17 = lean_ctor_get(x_14, 1); -lean_inc(x_17); -lean_dec(x_14); -x_18 = lean_ctor_get(x_15, 0); -lean_inc(x_18); -x_19 = lean_ctor_get(x_15, 3); -lean_inc(x_19); -lean_dec(x_15); -x_20 = lean_ctor_get(x_13, 2); -lean_inc(x_20); lean_dec(x_13); -x_21 = !lean_is_exclusive(x_16); -if (x_21 == 0) -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_22 = lean_ctor_get(x_16, 5); -lean_dec(x_22); -x_23 = lean_ctor_get(x_16, 1); -lean_dec(x_23); -x_24 = lean_ctor_get(x_16, 0); -lean_dec(x_24); -lean_ctor_set(x_16, 5, x_19); -lean_ctor_set(x_16, 1, x_20); -lean_ctor_set(x_16, 0, x_18); -x_25 = l___private_Lean_Elab_Command_3__setState(x_16, x_3, x_17); -if (lean_obj_tag(x_25) == 0) -{ -uint8_t x_26; -x_26 = !lean_is_exclusive(x_25); -if (x_26 == 0) -{ -lean_object* x_27; -x_27 = lean_ctor_get(x_25, 0); -lean_dec(x_27); -lean_ctor_set(x_25, 0, x_12); -return x_25; -} -else -{ -lean_object* x_28; lean_object* x_29; -x_28 = lean_ctor_get(x_25, 1); -lean_inc(x_28); -lean_dec(x_25); -x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_12); -lean_ctor_set(x_29, 1, x_28); -return x_29; -} -} -else -{ -uint8_t x_30; +x_17 = lean_ctor_get(x_14, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_14, 3); +lean_inc(x_18); +lean_dec(x_14); +x_19 = lean_ctor_get(x_12, 2); +lean_inc(x_19); lean_dec(x_12); -x_30 = !lean_is_exclusive(x_25); -if (x_30 == 0) +x_20 = !lean_is_exclusive(x_15); +if (x_20 == 0) { -return x_25; +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_15, 5); +lean_dec(x_21); +x_22 = lean_ctor_get(x_15, 1); +lean_dec(x_22); +x_23 = lean_ctor_get(x_15, 0); +lean_dec(x_23); +lean_ctor_set(x_15, 5, x_18); +lean_ctor_set(x_15, 1, x_19); +lean_ctor_set(x_15, 0, x_17); +x_24 = l___private_Lean_Elab_Command_3__setState(x_15, x_2, x_16); +if (lean_obj_tag(x_24) == 0) +{ +uint8_t x_25; +x_25 = !lean_is_exclusive(x_24); +if (x_25 == 0) +{ +lean_object* x_26; +x_26 = lean_ctor_get(x_24, 0); +lean_dec(x_26); +lean_ctor_set(x_24, 0, x_11); +return x_24; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_25, 0); -x_32 = lean_ctor_get(x_25, 1); -lean_inc(x_32); +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_24, 1); +lean_inc(x_27); +lean_dec(x_24); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_11); +lean_ctor_set(x_28, 1, x_27); +return x_28; +} +} +else +{ +uint8_t x_29; +lean_dec(x_11); +x_29 = !lean_is_exclusive(x_24); +if (x_29 == 0) +{ +return x_24; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_24, 0); +x_31 = lean_ctor_get(x_24, 1); lean_inc(x_31); -lean_dec(x_25); -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_inc(x_30); +lean_dec(x_24); +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 { -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_34 = lean_ctor_get(x_16, 2); -x_35 = lean_ctor_get(x_16, 3); -x_36 = lean_ctor_get(x_16, 4); -lean_inc(x_36); +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_33 = lean_ctor_get(x_15, 2); +x_34 = lean_ctor_get(x_15, 3); +x_35 = lean_ctor_get(x_15, 4); lean_inc(x_35); lean_inc(x_34); -lean_dec(x_16); -x_37 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_37, 0, x_18); -lean_ctor_set(x_37, 1, x_20); -lean_ctor_set(x_37, 2, x_34); -lean_ctor_set(x_37, 3, x_35); -lean_ctor_set(x_37, 4, x_36); -lean_ctor_set(x_37, 5, x_19); -x_38 = l___private_Lean_Elab_Command_3__setState(x_37, x_3, x_17); -if (lean_obj_tag(x_38) == 0) +lean_inc(x_33); +lean_dec(x_15); +x_36 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_36, 0, x_17); +lean_ctor_set(x_36, 1, x_19); +lean_ctor_set(x_36, 2, x_33); +lean_ctor_set(x_36, 3, x_34); +lean_ctor_set(x_36, 4, x_35); +lean_ctor_set(x_36, 5, x_18); +x_37 = l___private_Lean_Elab_Command_3__setState(x_36, x_2, x_16); +if (lean_obj_tag(x_37) == 0) { -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_38, 1); -lean_inc(x_39); -if (lean_is_exclusive(x_38)) { - lean_ctor_release(x_38, 0); - lean_ctor_release(x_38, 1); - x_40 = x_38; +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_37, 1); +lean_inc(x_38); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_39 = x_37; } else { - lean_dec_ref(x_38); - x_40 = lean_box(0); + lean_dec_ref(x_37); + x_39 = lean_box(0); } -if (lean_is_scalar(x_40)) { - x_41 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_39)) { + x_40 = lean_alloc_ctor(0, 2, 0); } else { - x_41 = x_40; + x_40 = x_39; } -lean_ctor_set(x_41, 0, x_12); -lean_ctor_set(x_41, 1, x_39); -return x_41; +lean_ctor_set(x_40, 0, x_11); +lean_ctor_set(x_40, 1, x_38); +return x_40; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -lean_dec(x_12); -x_42 = lean_ctor_get(x_38, 0); -lean_inc(x_42); -x_43 = lean_ctor_get(x_38, 1); -lean_inc(x_43); -if (lean_is_exclusive(x_38)) { - lean_ctor_release(x_38, 0); - lean_ctor_release(x_38, 1); - x_44 = x_38; -} else { - lean_dec_ref(x_38); - x_44 = lean_box(0); -} -if (lean_is_scalar(x_44)) { - x_45 = lean_alloc_ctor(1, 2, 0); -} else { - x_45 = x_44; -} -lean_ctor_set(x_45, 0, x_42); -lean_ctor_set(x_45, 1, x_43); -return x_45; -} -} -} -else -{ -uint8_t x_46; -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_3); -x_46 = !lean_is_exclusive(x_14); -if (x_46 == 0) -{ -return x_14; -} -else -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = lean_ctor_get(x_14, 0); -x_48 = lean_ctor_get(x_14, 1); -lean_inc(x_48); -lean_inc(x_47); -lean_dec(x_14); -x_49 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -return x_49; -} -} -} -else -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_50 = lean_ctor_get(x_11, 0); -lean_inc(x_50); -x_51 = lean_ctor_get(x_11, 1); -lean_inc(x_51); +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_dec(x_11); -x_52 = lean_ctor_get(x_50, 0); -lean_inc(x_52); -lean_dec(x_50); -lean_inc(x_3); -x_53 = l___private_Lean_Elab_Command_2__getState(x_3, x_8); -if (lean_obj_tag(x_53) == 0) +x_41 = lean_ctor_get(x_37, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_37, 1); +lean_inc(x_42); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_43 = x_37; +} else { + lean_dec_ref(x_37); + 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(x_44, 0, x_41); +lean_ctor_set(x_44, 1, x_42); +return x_44; +} +} +} +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; uint8_t x_60; -x_54 = lean_ctor_get(x_51, 0); +uint8_t x_45; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_2); +x_45 = !lean_is_exclusive(x_13); +if (x_45 == 0) +{ +return x_13; +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_13, 0); +x_47 = lean_ctor_get(x_13, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_13); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; +} +} +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_49 = lean_ctor_get(x_10, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_10, 1); +lean_inc(x_50); +lean_dec(x_10); +x_51 = lean_ctor_get(x_49, 0); +lean_inc(x_51); +lean_dec(x_49); +lean_inc(x_2); +x_52 = l___private_Lean_Elab_Command_2__getState(x_2, x_7); +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; lean_object* x_58; uint8_t x_59; +x_53 = lean_ctor_get(x_50, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_52, 0); lean_inc(x_54); -x_55 = lean_ctor_get(x_53, 0); +x_55 = lean_ctor_get(x_52, 1); lean_inc(x_55); -x_56 = lean_ctor_get(x_53, 1); -lean_inc(x_56); -lean_dec(x_53); -x_57 = lean_ctor_get(x_54, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_54, 3); -lean_inc(x_58); -lean_dec(x_54); -x_59 = lean_ctor_get(x_51, 2); -lean_inc(x_59); -lean_dec(x_51); -x_60 = !lean_is_exclusive(x_55); -if (x_60 == 0) -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_61 = lean_ctor_get(x_55, 5); -lean_dec(x_61); -x_62 = lean_ctor_get(x_55, 1); -lean_dec(x_62); -x_63 = lean_ctor_get(x_55, 0); -lean_dec(x_63); -lean_ctor_set(x_55, 5, x_58); -lean_ctor_set(x_55, 1, x_59); -lean_ctor_set(x_55, 0, x_57); -x_64 = l___private_Lean_Elab_Command_3__setState(x_55, x_3, x_56); -if (lean_obj_tag(x_64) == 0) -{ -uint8_t x_65; -x_65 = !lean_is_exclusive(x_64); -if (x_65 == 0) -{ -lean_object* x_66; -x_66 = lean_ctor_get(x_64, 0); -lean_dec(x_66); -lean_ctor_set_tag(x_64, 1); -lean_ctor_set(x_64, 0, x_52); -return x_64; -} -else -{ -lean_object* x_67; lean_object* x_68; -x_67 = lean_ctor_get(x_64, 1); -lean_inc(x_67); -lean_dec(x_64); -x_68 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_68, 0, x_52); -lean_ctor_set(x_68, 1, x_67); -return x_68; -} -} -else -{ -uint8_t x_69; lean_dec(x_52); -x_69 = !lean_is_exclusive(x_64); -if (x_69 == 0) +x_56 = lean_ctor_get(x_53, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_53, 3); +lean_inc(x_57); +lean_dec(x_53); +x_58 = lean_ctor_get(x_50, 2); +lean_inc(x_58); +lean_dec(x_50); +x_59 = !lean_is_exclusive(x_54); +if (x_59 == 0) { -return x_64; +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_60 = lean_ctor_get(x_54, 5); +lean_dec(x_60); +x_61 = lean_ctor_get(x_54, 1); +lean_dec(x_61); +x_62 = lean_ctor_get(x_54, 0); +lean_dec(x_62); +lean_ctor_set(x_54, 5, x_57); +lean_ctor_set(x_54, 1, x_58); +lean_ctor_set(x_54, 0, x_56); +x_63 = l___private_Lean_Elab_Command_3__setState(x_54, x_2, x_55); +if (lean_obj_tag(x_63) == 0) +{ +uint8_t x_64; +x_64 = !lean_is_exclusive(x_63); +if (x_64 == 0) +{ +lean_object* x_65; +x_65 = lean_ctor_get(x_63, 0); +lean_dec(x_65); +lean_ctor_set_tag(x_63, 1); +lean_ctor_set(x_63, 0, x_51); +return x_63; } else { -lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_70 = lean_ctor_get(x_64, 0); -x_71 = lean_ctor_get(x_64, 1); -lean_inc(x_71); +lean_object* x_66; lean_object* x_67; +x_66 = lean_ctor_get(x_63, 1); +lean_inc(x_66); +lean_dec(x_63); +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_51); +lean_ctor_set(x_67, 1, x_66); +return x_67; +} +} +else +{ +uint8_t x_68; +lean_dec(x_51); +x_68 = !lean_is_exclusive(x_63); +if (x_68 == 0) +{ +return x_63; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_63, 0); +x_70 = lean_ctor_get(x_63, 1); lean_inc(x_70); -lean_dec(x_64); -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; +lean_inc(x_69); +lean_dec(x_63); +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_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_73 = lean_ctor_get(x_55, 2); -x_74 = lean_ctor_get(x_55, 3); -x_75 = lean_ctor_get(x_55, 4); -lean_inc(x_75); +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_72 = lean_ctor_get(x_54, 2); +x_73 = lean_ctor_get(x_54, 3); +x_74 = lean_ctor_get(x_54, 4); lean_inc(x_74); lean_inc(x_73); -lean_dec(x_55); -x_76 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_76, 0, x_57); -lean_ctor_set(x_76, 1, x_59); -lean_ctor_set(x_76, 2, x_73); -lean_ctor_set(x_76, 3, x_74); -lean_ctor_set(x_76, 4, x_75); -lean_ctor_set(x_76, 5, x_58); -x_77 = l___private_Lean_Elab_Command_3__setState(x_76, x_3, x_56); -if (lean_obj_tag(x_77) == 0) +lean_inc(x_72); +lean_dec(x_54); +x_75 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_75, 0, x_56); +lean_ctor_set(x_75, 1, x_58); +lean_ctor_set(x_75, 2, x_72); +lean_ctor_set(x_75, 3, x_73); +lean_ctor_set(x_75, 4, x_74); +lean_ctor_set(x_75, 5, x_57); +x_76 = l___private_Lean_Elab_Command_3__setState(x_75, x_2, x_55); +if (lean_obj_tag(x_76) == 0) { -lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_78 = lean_ctor_get(x_77, 1); -lean_inc(x_78); -if (lean_is_exclusive(x_77)) { - lean_ctor_release(x_77, 0); - lean_ctor_release(x_77, 1); - x_79 = x_77; +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_76, 1); +lean_inc(x_77); +if (lean_is_exclusive(x_76)) { + lean_ctor_release(x_76, 0); + lean_ctor_release(x_76, 1); + x_78 = x_76; } else { - lean_dec_ref(x_77); - x_79 = lean_box(0); + lean_dec_ref(x_76); + x_78 = lean_box(0); } -if (lean_is_scalar(x_79)) { - x_80 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_78)) { + x_79 = lean_alloc_ctor(1, 2, 0); } else { - x_80 = x_79; - lean_ctor_set_tag(x_80, 1); + x_79 = x_78; + lean_ctor_set_tag(x_79, 1); } -lean_ctor_set(x_80, 0, x_52); -lean_ctor_set(x_80, 1, x_78); -return x_80; +lean_ctor_set(x_79, 0, x_51); +lean_ctor_set(x_79, 1, x_77); +return x_79; } else { -lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; -lean_dec(x_52); -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 -{ -uint8_t x_85; -lean_dec(x_52); +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_dec(x_51); -lean_dec(x_3); -x_85 = !lean_is_exclusive(x_53); -if (x_85 == 0) -{ -return x_53; +x_80 = lean_ctor_get(x_76, 0); +lean_inc(x_80); +x_81 = lean_ctor_get(x_76, 1); +lean_inc(x_81); +if (lean_is_exclusive(x_76)) { + lean_ctor_release(x_76, 0); + lean_ctor_release(x_76, 1); + x_82 = x_76; +} else { + lean_dec_ref(x_76); + 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; +} +} } else { -lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_86 = lean_ctor_get(x_53, 0); -x_87 = lean_ctor_get(x_53, 1); -lean_inc(x_87); +uint8_t x_84; +lean_dec(x_51); +lean_dec(x_50); +lean_dec(x_2); +x_84 = !lean_is_exclusive(x_52); +if (x_84 == 0) +{ +return x_52; +} +else +{ +lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_85 = lean_ctor_get(x_52, 0); +x_86 = lean_ctor_get(x_52, 1); lean_inc(x_86); -lean_dec(x_53); -x_88 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_88, 0, x_86); -lean_ctor_set(x_88, 1, x_87); -return x_88; +lean_inc(x_85); +lean_dec(x_52); +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 { -uint8_t x_89; -lean_dec(x_3); -x_89 = !lean_is_exclusive(x_6); -if (x_89 == 0) +uint8_t x_88; +lean_dec(x_2); +x_88 = !lean_is_exclusive(x_5); +if (x_88 == 0) { -return x_6; +return x_5; } else { -lean_object* x_90; lean_object* x_91; lean_object* x_92; -x_90 = lean_ctor_get(x_6, 0); -x_91 = lean_ctor_get(x_6, 1); -lean_inc(x_91); +lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_89 = lean_ctor_get(x_5, 0); +x_90 = lean_ctor_get(x_5, 1); lean_inc(x_90); -lean_dec(x_6); -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; +lean_inc(x_89); +lean_dec(x_5); +x_91 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_91, 0, x_89); +lean_ctor_set(x_91, 1, x_90); +return x_91; } } } } -lean_object* l_Lean_Elab_Command_compileDecl___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Command_compileDecl___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; -x_5 = l_Lean_Elab_Command_compileDecl(x_1, x_2, x_3, x_4); -lean_dec(x_2); +lean_object* x_4; +x_4 = l_Lean_Elab_Command_compileDecl(x_1, x_2, x_3); lean_dec(x_1); -return x_5; +return x_4; } } lean_object* l_Lean_Elab_Command_addInstance(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { @@ -21661,63 +21661,63 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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* l_Lean_Elab_Command_elabEvalUnsafe___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) { _start: { -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_9 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__1___closed__1; -x_10 = lean_name_mk_string(x_1, x_9); -x_11 = l_Lean_Parser_Command_eval___elambda__1___closed__1; -x_12 = lean_name_mk_string(x_10, x_11); -x_13 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__1___closed__3; -x_14 = l_Lean_mkConst(x_13, x_2); -x_15 = l_Std_PersistentHashMap_mkCollisionNode___rarg___closed__1; +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* x_18; lean_object* x_19; +x_8 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__1___closed__1; +x_9 = lean_name_mk_string(x_1, x_8); +x_10 = l_Lean_Parser_Command_eval___elambda__1___closed__1; +x_11 = lean_name_mk_string(x_9, x_10); +x_12 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__1___closed__3; +x_13 = l_Lean_mkConst(x_12, x_2); +x_14 = l_Std_PersistentHashMap_mkCollisionNode___rarg___closed__1; lean_inc(x_3); -x_16 = lean_array_push(x_15, x_3); +x_15 = lean_array_push(x_14, x_3); +lean_inc(x_5); +x_16 = lean_array_push(x_15, x_5); +x_17 = lean_array_push(x_16, x_4); +x_18 = lean_array_push(x_17, x_13); lean_inc(x_6); -x_17 = lean_array_push(x_16, x_6); -x_18 = lean_array_push(x_17, x_4); -x_19 = lean_array_push(x_18, x_14); -lean_inc(x_7); -x_20 = l_Lean_Elab_Term_mkAppM(x_5, x_12, x_19, x_7, x_8); -lean_dec(x_19); -if (lean_obj_tag(x_20) == 0) +x_19 = l_Lean_Elab_Term_mkAppM(x_11, x_18, x_6, x_7); +lean_dec(x_18); +if (lean_obj_tag(x_19) == 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; -x_21 = lean_ctor_get(x_20, 0); +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); lean_inc(x_21); -x_22 = lean_ctor_get(x_20, 1); -lean_inc(x_22); -lean_dec(x_20); -x_23 = l_Lean_mkAppStx___closed__9; -x_24 = lean_array_push(x_23, x_3); -x_25 = lean_array_push(x_24, x_6); -x_26 = l_Lean_Elab_Term_mkLambda(x_5, x_25, x_21, x_7, x_22); -return x_26; +lean_dec(x_19); +x_22 = l_Lean_mkAppStx___closed__9; +x_23 = lean_array_push(x_22, x_3); +x_24 = lean_array_push(x_23, x_5); +x_25 = l_Lean_Elab_Term_mkLambda(x_24, x_20, x_6, x_21); +return x_25; } else { -uint8_t x_27; -lean_dec(x_7); +uint8_t x_26; lean_dec(x_6); +lean_dec(x_5); lean_dec(x_3); -x_27 = !lean_is_exclusive(x_20); -if (x_27 == 0) +x_26 = !lean_is_exclusive(x_19); +if (x_26 == 0) { -return x_20; +return x_19; } else { -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_20, 0); -x_29 = lean_ctor_get(x_20, 1); -lean_inc(x_29); +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_19, 0); +x_28 = lean_ctor_get(x_19, 1); lean_inc(x_28); -lean_dec(x_20); -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_inc(x_27); +lean_dec(x_19); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +return x_29; } } } @@ -21748,27 +21748,24 @@ x_1 = lean_mk_string("Options"); return x_1; } } -lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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* l_Lean_Elab_Command_elabEvalUnsafe___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) { _start: { -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; -x_8 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__2___closed__3; +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13; +x_7 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__2___closed__3; lean_inc(x_1); -x_9 = lean_name_mk_string(x_1, x_8); +x_8 = lean_name_mk_string(x_1, x_7); lean_inc(x_2); -x_10 = l_Lean_mkConst(x_9, x_2); -lean_inc(x_4); -x_11 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__1___boxed), 8, 5); -lean_closure_set(x_11, 0, x_1); -lean_closure_set(x_11, 1, x_2); -lean_closure_set(x_11, 2, x_5); -lean_closure_set(x_11, 3, x_3); -lean_closure_set(x_11, 4, x_4); -x_12 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__2___closed__2; -x_13 = 0; -x_14 = l_Lean_Elab_Term_withLocalDecl___rarg(x_4, x_12, x_13, x_10, x_11, x_6, x_7); -lean_dec(x_4); -return x_14; +x_9 = l_Lean_mkConst(x_8, x_2); +x_10 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__1), 7, 4); +lean_closure_set(x_10, 0, x_1); +lean_closure_set(x_10, 1, x_2); +lean_closure_set(x_10, 2, x_4); +lean_closure_set(x_10, 3, x_3); +x_11 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__2___closed__2; +x_12 = 0; +x_13 = l_Lean_Elab_Term_withLocalDecl___rarg(x_11, x_12, x_9, x_10, x_5, x_6); +return x_13; } } lean_object* _init_l_Lean_Elab_Command_elabEvalUnsafe___lambda__3___closed__1() { @@ -21817,337 +21814,325 @@ x_3 = l_Lean_mkConst(x_2, x_1); return x_3; } } -lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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* l_Lean_Elab_Command_elabEvalUnsafe___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_7; uint8_t x_8; lean_object* x_9; -x_7 = lean_box(0); -x_8 = 1; -lean_inc(x_5); -x_9 = l_Lean_Elab_Term_elabTermAux___main(x_7, x_8, x_8, x_1, x_5, x_6); -if (lean_obj_tag(x_9) == 0) +lean_object* x_6; uint8_t x_7; lean_object* x_8; +x_6 = lean_box(0); +x_7 = 1; +lean_inc(x_4); +x_8 = l_Lean_Elab_Term_elabTerm(x_1, x_6, x_7, x_4, x_5); +if (lean_obj_tag(x_8) == 0) { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; -x_10 = lean_ctor_get(x_9, 0); +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_8, 1); lean_inc(x_10); -x_11 = lean_ctor_get(x_9, 1); -lean_inc(x_11); -lean_dec(x_9); -x_12 = lean_box(0); -x_13 = l_Lean_mkAppStx___closed__2; -lean_inc(x_2); -x_14 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__2), 7, 4); -lean_closure_set(x_14, 0, x_13); -lean_closure_set(x_14, 1, x_12); -lean_closure_set(x_14, 2, x_10); -lean_closure_set(x_14, 3, x_2); -x_15 = 0; -x_16 = lean_box(0); -lean_inc(x_5); -x_17 = l___private_Lean_Elab_SyntheticMVars_11__synthesizeSyntheticMVarsAux___main(x_15, x_16, x_5, x_11); -if (lean_obj_tag(x_17) == 0) +lean_dec(x_8); +x_11 = lean_box(0); +x_12 = l_Lean_mkAppStx___closed__2; +x_13 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__2), 6, 3); +lean_closure_set(x_13, 0, x_12); +lean_closure_set(x_13, 1, x_11); +lean_closure_set(x_13, 2, x_9); +x_14 = 0; +x_15 = lean_box(0); +lean_inc(x_4); +x_16 = l___private_Lean_Elab_SyntheticMVars_11__synthesizeSyntheticMVarsAux___main(x_14, x_15, x_4, x_10); +if (lean_obj_tag(x_16) == 0) { -lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; -x_18 = lean_ctor_get(x_17, 1); -lean_inc(x_18); -lean_dec(x_17); -x_19 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__3___closed__2; -x_20 = 0; -x_21 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__3___closed__5; -lean_inc(x_5); -x_22 = l_Lean_Elab_Term_withLocalDecl___rarg(x_2, x_19, x_20, x_21, x_14, x_5, x_18); -if (lean_obj_tag(x_22) == 0) +lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_18 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__3___closed__2; +x_19 = 0; +x_20 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__3___closed__5; +lean_inc(x_4); +x_21 = l_Lean_Elab_Term_withLocalDecl___rarg(x_18, x_19, x_20, x_13, x_4, x_17); +if (lean_obj_tag(x_21) == 0) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_22, 0); +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_21, 1); lean_inc(x_23); -x_24 = lean_ctor_get(x_22, 1); -lean_inc(x_24); -lean_dec(x_22); -lean_inc(x_5); -lean_inc(x_23); -x_25 = l_Lean_Elab_Term_inferType(x_2, x_23, x_5, x_24); -if (lean_obj_tag(x_25) == 0) +lean_dec(x_21); +lean_inc(x_4); +lean_inc(x_22); +x_24 = l_Lean_Elab_Term_inferType(x_22, x_4, x_23); +if (lean_obj_tag(x_24) == 0) { -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_26 = lean_ctor_get(x_25, 0); +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; +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); lean_inc(x_26); -x_27 = lean_ctor_get(x_25, 1); -lean_inc(x_27); -lean_dec(x_25); -lean_inc(x_3); -x_28 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_28, 0, x_3); -lean_ctor_set(x_28, 1, x_12); -lean_ctor_set(x_28, 2, x_26); -x_29 = lean_box(0); -x_30 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_30, 0, x_28); -lean_ctor_set(x_30, 1, x_23); -lean_ctor_set(x_30, 2, x_29); -lean_ctor_set_uint8(x_30, sizeof(void*)*3, x_8); -x_31 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_31, 0, x_30); -lean_inc(x_5); -x_32 = l_Lean_Elab_Term_addDecl(x_2, x_31, x_5, x_27); -if (lean_obj_tag(x_32) == 0) +lean_dec(x_24); +lean_inc(x_2); +x_27 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_27, 0, x_2); +lean_ctor_set(x_27, 1, x_11); +lean_ctor_set(x_27, 2, x_25); +x_28 = lean_box(0); +x_29 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_22); +lean_ctor_set(x_29, 2, x_28); +lean_ctor_set_uint8(x_29, sizeof(void*)*3, x_7); +x_30 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_30, 0, x_29); +lean_inc(x_4); +x_31 = l_Lean_Elab_Term_addDecl(x_30, x_4, x_26); +if (lean_obj_tag(x_31) == 0) { -lean_object* x_33; lean_object* x_34; -x_33 = lean_ctor_get(x_32, 1); -lean_inc(x_33); -lean_dec(x_32); -lean_inc(x_5); -x_34 = l_Lean_Elab_Term_compileDecl(x_2, x_31, x_5, x_33); +lean_object* x_32; lean_object* x_33; +x_32 = lean_ctor_get(x_31, 1); +lean_inc(x_32); lean_dec(x_31); -if (lean_obj_tag(x_34) == 0) +lean_inc(x_4); +x_33 = l_Lean_Elab_Term_compileDecl(x_30, x_4, x_32); +lean_dec(x_30); +if (lean_obj_tag(x_33) == 0) { -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; -x_35 = lean_ctor_get(x_34, 1); -lean_inc(x_35); -lean_dec(x_34); -x_36 = l_Lean_Elab_Term_getEnv___rarg(x_35); -x_37 = lean_ctor_get(x_36, 0); +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_34 = lean_ctor_get(x_33, 1); +lean_inc(x_34); +lean_dec(x_33); +x_35 = l_Lean_Elab_Term_getEnv___rarg(x_34); +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_35, 1); lean_inc(x_37); -x_38 = lean_ctor_get(x_36, 1); -lean_inc(x_38); +lean_dec(x_35); +x_38 = l_Lean_Elab_Term_getOptions(x_4, x_37); +x_39 = !lean_is_exclusive(x_38); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_38, 0); +x_41 = lean_ctor_get(x_38, 1); +x_42 = lean_eval_const(x_36, x_2); +lean_dec(x_2); +if (lean_obj_tag(x_42) == 0) +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +lean_free_object(x_38); +lean_dec(x_40); lean_dec(x_36); -x_39 = l_Lean_Elab_Term_getOptions(x_5, x_38); -x_40 = !lean_is_exclusive(x_39); -if (x_40 == 0) -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_39, 0); -x_42 = lean_ctor_get(x_39, 1); -x_43 = lean_eval_const(x_37, x_3); -lean_dec(x_3); -if (lean_obj_tag(x_43) == 0) -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; -lean_free_object(x_39); -lean_dec(x_41); -lean_dec(x_37); -x_44 = lean_ctor_get(x_43, 0); -lean_inc(x_44); -lean_dec(x_43); -x_45 = lean_alloc_ctor(2, 1, 0); +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +lean_dec(x_42); +x_44 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_44, 0, x_43); +x_45 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_45, 0, x_44); -x_46 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_46, 0, x_45); -x_47 = l_Lean_Elab_Term_throwError___rarg(x_2, x_46, x_5, x_42); -lean_dec(x_2); -return x_47; +x_46 = l_Lean_Elab_Term_throwError___rarg(x_45, x_4, x_41); +return x_46; } else { -lean_object* x_48; lean_object* x_49; -lean_dec(x_5); -lean_dec(x_2); -x_48 = lean_ctor_get(x_43, 0); -lean_inc(x_48); -lean_dec(x_43); -x_49 = lean_apply_2(x_48, x_37, x_41); -lean_ctor_set(x_39, 0, x_49); -return x_39; +lean_object* x_47; lean_object* x_48; +lean_dec(x_4); +x_47 = lean_ctor_get(x_42, 0); +lean_inc(x_47); +lean_dec(x_42); +x_48 = lean_apply_2(x_47, x_36, x_40); +lean_ctor_set(x_38, 0, x_48); +return x_38; } } else { -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_39, 0); -x_51 = lean_ctor_get(x_39, 1); -lean_inc(x_51); +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_38, 0); +x_50 = lean_ctor_get(x_38, 1); lean_inc(x_50); -lean_dec(x_39); -x_52 = lean_eval_const(x_37, x_3); -lean_dec(x_3); -if (lean_obj_tag(x_52) == 0) +lean_inc(x_49); +lean_dec(x_38); +x_51 = lean_eval_const(x_36, x_2); +lean_dec(x_2); +if (lean_obj_tag(x_51) == 0) { -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; -lean_dec(x_50); -lean_dec(x_37); -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -lean_dec(x_52); -x_54 = lean_alloc_ctor(2, 1, 0); +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +lean_dec(x_49); +lean_dec(x_36); +x_52 = lean_ctor_get(x_51, 0); +lean_inc(x_52); +lean_dec(x_51); +x_53 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_53, 0, x_52); +x_54 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_54, 0, x_53); -x_55 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_55, 0, x_54); -x_56 = l_Lean_Elab_Term_throwError___rarg(x_2, x_55, x_5, x_51); -lean_dec(x_2); -return x_56; +x_55 = l_Lean_Elab_Term_throwError___rarg(x_54, x_4, x_50); +return x_55; } else { -lean_object* x_57; lean_object* x_58; lean_object* x_59; -lean_dec(x_5); -lean_dec(x_2); -x_57 = lean_ctor_get(x_52, 0); -lean_inc(x_57); -lean_dec(x_52); -x_58 = lean_apply_2(x_57, x_37, x_50); -x_59 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_59, 0, x_58); -lean_ctor_set(x_59, 1, x_51); -return x_59; +lean_object* x_56; lean_object* x_57; lean_object* x_58; +lean_dec(x_4); +x_56 = lean_ctor_get(x_51, 0); +lean_inc(x_56); +lean_dec(x_51); +x_57 = lean_apply_2(x_56, x_36, x_49); +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set(x_58, 1, x_50); +return x_58; } } } else { -uint8_t x_60; -lean_dec(x_5); -lean_dec(x_3); +uint8_t x_59; +lean_dec(x_4); lean_dec(x_2); -x_60 = !lean_is_exclusive(x_34); -if (x_60 == 0) +x_59 = !lean_is_exclusive(x_33); +if (x_59 == 0) { -return x_34; +return x_33; } else { -lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_61 = lean_ctor_get(x_34, 0); -x_62 = lean_ctor_get(x_34, 1); -lean_inc(x_62); +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_dec(x_34); -x_63 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_63, 0, x_61); -lean_ctor_set(x_63, 1, x_62); -return x_63; +lean_inc(x_60); +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_64; -lean_dec(x_31); -lean_dec(x_5); -lean_dec(x_3); +uint8_t x_63; +lean_dec(x_30); +lean_dec(x_4); lean_dec(x_2); -x_64 = !lean_is_exclusive(x_32); -if (x_64 == 0) +x_63 = !lean_is_exclusive(x_31); +if (x_63 == 0) { -return x_32; +return x_31; } else { -lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_65 = lean_ctor_get(x_32, 0); -x_66 = lean_ctor_get(x_32, 1); -lean_inc(x_66); +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_31, 0); +x_65 = lean_ctor_get(x_31, 1); lean_inc(x_65); -lean_dec(x_32); -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; +lean_inc(x_64); +lean_dec(x_31); +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_68; -lean_dec(x_23); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_68 = !lean_is_exclusive(x_25); -if (x_68 == 0) -{ -return x_25; -} -else -{ -lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_69 = lean_ctor_get(x_25, 0); -x_70 = lean_ctor_get(x_25, 1); -lean_inc(x_70); -lean_inc(x_69); -lean_dec(x_25); -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 -{ -uint8_t x_72; -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_72 = !lean_is_exclusive(x_22); -if (x_72 == 0) -{ -return x_22; -} -else -{ -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_22, 0); -x_74 = lean_ctor_get(x_22, 1); -lean_inc(x_74); -lean_inc(x_73); +uint8_t x_67; lean_dec(x_22); -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 -{ -uint8_t x_76; -lean_dec(x_14); -lean_dec(x_5); -lean_dec(x_3); +lean_dec(x_4); lean_dec(x_2); -x_76 = !lean_is_exclusive(x_17); -if (x_76 == 0) +x_67 = !lean_is_exclusive(x_24); +if (x_67 == 0) { -return x_17; +return x_24; } else { -lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_77 = lean_ctor_get(x_17, 0); -x_78 = lean_ctor_get(x_17, 1); -lean_inc(x_78); +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_24, 0); +x_69 = lean_ctor_get(x_24, 1); +lean_inc(x_69); +lean_inc(x_68); +lean_dec(x_24); +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; +} +} +} +else +{ +uint8_t x_71; +lean_dec(x_4); +lean_dec(x_2); +x_71 = !lean_is_exclusive(x_21); +if (x_71 == 0) +{ +return x_21; +} +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_72 = lean_ctor_get(x_21, 0); +x_73 = lean_ctor_get(x_21, 1); +lean_inc(x_73); +lean_inc(x_72); +lean_dec(x_21); +x_74 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_74, 0, x_72); +lean_ctor_set(x_74, 1, x_73); +return x_74; +} +} +} +else +{ +uint8_t x_75; +lean_dec(x_13); +lean_dec(x_4); +lean_dec(x_2); +x_75 = !lean_is_exclusive(x_16); +if (x_75 == 0) +{ +return x_16; +} +else +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_76 = lean_ctor_get(x_16, 0); +x_77 = lean_ctor_get(x_16, 1); lean_inc(x_77); -lean_dec(x_17); -x_79 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_79, 0, x_77); -lean_ctor_set(x_79, 1, x_78); -return x_79; +lean_inc(x_76); +lean_dec(x_16); +x_78 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_78, 0, x_76); +lean_ctor_set(x_78, 1, x_77); +return x_78; } } } else { -uint8_t x_80; -lean_dec(x_5); -lean_dec(x_3); +uint8_t x_79; +lean_dec(x_4); lean_dec(x_2); -x_80 = !lean_is_exclusive(x_9); -if (x_80 == 0) +x_79 = !lean_is_exclusive(x_8); +if (x_79 == 0) { -return x_9; +return x_8; } else { -lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_81 = lean_ctor_get(x_9, 0); -x_82 = lean_ctor_get(x_9, 1); -lean_inc(x_82); +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_ctor_get(x_8, 0); +x_81 = lean_ctor_get(x_8, 1); lean_inc(x_81); -lean_dec(x_9); -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; +lean_inc(x_80); +lean_dec(x_8); +x_82 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_82, 0, x_80); +lean_ctor_set(x_82, 1, x_81); +return x_82; } } } @@ -22190,313 +22175,313 @@ x_3 = l_Lean_mkConst(x_2, x_1); return x_3; } } -lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_7; uint8_t x_8; lean_object* x_9; -x_7 = lean_box(0); -x_8 = 1; -lean_inc(x_5); -x_9 = l_Lean_Elab_Term_elabTermAux___main(x_7, x_8, x_8, x_1, x_5, x_6); -if (lean_obj_tag(x_9) == 0) +lean_object* x_6; uint8_t x_7; lean_object* x_8; +x_6 = lean_box(0); +x_7 = 1; +lean_inc(x_4); +x_8 = l_Lean_Elab_Term_elabTerm(x_1, x_6, x_7, x_4, x_5); +if (lean_obj_tag(x_8) == 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; uint8_t x_17; lean_object* x_18; lean_object* x_19; -x_10 = lean_ctor_get(x_9, 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; uint8_t x_16; lean_object* x_17; lean_object* x_18; +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_8, 1); lean_inc(x_10); -x_11 = lean_ctor_get(x_9, 1); -lean_inc(x_11); -lean_dec(x_9); -x_12 = lean_box(0); -x_13 = l_Lean_mkAppStx___closed__9; -x_14 = lean_array_push(x_13, x_10); -x_15 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__4___closed__4; -x_16 = lean_array_push(x_14, x_15); -x_17 = 0; -x_18 = lean_box(0); -lean_inc(x_5); -x_19 = l___private_Lean_Elab_SyntheticMVars_11__synthesizeSyntheticMVarsAux___main(x_17, x_18, x_5, x_11); -if (lean_obj_tag(x_19) == 0) +lean_dec(x_8); +x_11 = lean_box(0); +x_12 = l_Lean_mkAppStx___closed__9; +x_13 = lean_array_push(x_12, x_9); +x_14 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__4___closed__4; +x_15 = lean_array_push(x_13, x_14); +x_16 = 0; +x_17 = lean_box(0); +lean_inc(x_4); +x_18 = l___private_Lean_Elab_SyntheticMVars_11__synthesizeSyntheticMVarsAux___main(x_16, x_17, x_4, x_10); +if (lean_obj_tag(x_18) == 0) { -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_19, 1); -lean_inc(x_20); -lean_dec(x_19); -x_21 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__4___closed__3; -lean_inc(x_5); -x_22 = l_Lean_Elab_Term_mkAppM(x_2, x_21, x_16, x_5, x_20); -lean_dec(x_16); -if (lean_obj_tag(x_22) == 0) +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_18, 1); +lean_inc(x_19); +lean_dec(x_18); +x_20 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__4___closed__3; +lean_inc(x_4); +x_21 = l_Lean_Elab_Term_mkAppM(x_20, x_15, x_4, x_19); +lean_dec(x_15); +if (lean_obj_tag(x_21) == 0) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_22, 0); +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_21, 1); lean_inc(x_23); -x_24 = lean_ctor_get(x_22, 1); -lean_inc(x_24); -lean_dec(x_22); -lean_inc(x_5); -lean_inc(x_23); -x_25 = l_Lean_Elab_Term_inferType(x_2, x_23, x_5, x_24); -if (lean_obj_tag(x_25) == 0) +lean_dec(x_21); +lean_inc(x_4); +lean_inc(x_22); +x_24 = l_Lean_Elab_Term_inferType(x_22, x_4, x_23); +if (lean_obj_tag(x_24) == 0) { -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_26 = lean_ctor_get(x_25, 0); +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; +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); lean_inc(x_26); -x_27 = lean_ctor_get(x_25, 1); -lean_inc(x_27); -lean_dec(x_25); -lean_inc(x_3); -x_28 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_28, 0, x_3); -lean_ctor_set(x_28, 1, x_12); -lean_ctor_set(x_28, 2, x_26); -x_29 = lean_box(0); -x_30 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_30, 0, x_28); -lean_ctor_set(x_30, 1, x_23); -lean_ctor_set(x_30, 2, x_29); -lean_ctor_set_uint8(x_30, sizeof(void*)*3, x_8); -x_31 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_31, 0, x_30); -lean_inc(x_5); -x_32 = l_Lean_Elab_Term_addDecl(x_2, x_31, x_5, x_27); -if (lean_obj_tag(x_32) == 0) +lean_dec(x_24); +lean_inc(x_2); +x_27 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_27, 0, x_2); +lean_ctor_set(x_27, 1, x_11); +lean_ctor_set(x_27, 2, x_25); +x_28 = lean_box(0); +x_29 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_22); +lean_ctor_set(x_29, 2, x_28); +lean_ctor_set_uint8(x_29, sizeof(void*)*3, x_7); +x_30 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_30, 0, x_29); +lean_inc(x_4); +x_31 = l_Lean_Elab_Term_addDecl(x_30, x_4, x_26); +if (lean_obj_tag(x_31) == 0) { -lean_object* x_33; lean_object* x_34; -x_33 = lean_ctor_get(x_32, 1); -lean_inc(x_33); -lean_dec(x_32); -lean_inc(x_5); -x_34 = l_Lean_Elab_Term_compileDecl(x_2, x_31, x_5, x_33); +lean_object* x_32; lean_object* x_33; +x_32 = lean_ctor_get(x_31, 1); +lean_inc(x_32); lean_dec(x_31); -if (lean_obj_tag(x_34) == 0) +lean_inc(x_4); +x_33 = l_Lean_Elab_Term_compileDecl(x_30, x_4, x_32); +lean_dec(x_30); +if (lean_obj_tag(x_33) == 0) { -lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_35 = lean_ctor_get(x_34, 1); -lean_inc(x_35); -lean_dec(x_34); -x_36 = l_Lean_Elab_Term_getEnv___rarg(x_35); -x_37 = !lean_is_exclusive(x_36); -if (x_37 == 0) +lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_34 = lean_ctor_get(x_33, 1); +lean_inc(x_34); +lean_dec(x_33); +x_35 = l_Lean_Elab_Term_getEnv___rarg(x_34); +x_36 = !lean_is_exclusive(x_35); +if (x_36 == 0) { -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_36, 0); -x_39 = lean_ctor_get(x_36, 1); -x_40 = lean_eval_const(x_38, x_3); -lean_dec(x_3); -lean_dec(x_38); -if (lean_obj_tag(x_40) == 0) +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_35, 0); +x_38 = lean_ctor_get(x_35, 1); +x_39 = lean_eval_const(x_37, x_2); +lean_dec(x_2); +lean_dec(x_37); +if (lean_obj_tag(x_39) == 0) { -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; -lean_free_object(x_36); -x_41 = lean_ctor_get(x_40, 0); -lean_inc(x_41); -lean_dec(x_40); -x_42 = lean_alloc_ctor(2, 1, 0); +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +lean_free_object(x_35); +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +lean_dec(x_39); +x_41 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_41, 0, x_40); +x_42 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_42, 0, x_41); -x_43 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_43, 0, x_42); -x_44 = l_Lean_Elab_Term_throwError___rarg(x_2, x_43, x_5, x_39); -return x_44; +x_43 = l_Lean_Elab_Term_throwError___rarg(x_42, x_4, x_38); +return x_43; } else { -lean_object* x_45; -lean_dec(x_5); -x_45 = lean_ctor_get(x_40, 0); -lean_inc(x_45); -lean_dec(x_40); -lean_ctor_set(x_36, 0, x_45); -return x_36; +lean_object* x_44; +lean_dec(x_4); +x_44 = lean_ctor_get(x_39, 0); +lean_inc(x_44); +lean_dec(x_39); +lean_ctor_set(x_35, 0, x_44); +return x_35; } } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_36, 0); -x_47 = lean_ctor_get(x_36, 1); -lean_inc(x_47); +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_35, 0); +x_46 = lean_ctor_get(x_35, 1); lean_inc(x_46); -lean_dec(x_36); -x_48 = lean_eval_const(x_46, x_3); -lean_dec(x_3); -lean_dec(x_46); -if (lean_obj_tag(x_48) == 0) +lean_inc(x_45); +lean_dec(x_35); +x_47 = lean_eval_const(x_45, x_2); +lean_dec(x_2); +lean_dec(x_45); +if (lean_obj_tag(x_47) == 0) { -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_49 = lean_ctor_get(x_48, 0); -lean_inc(x_49); -lean_dec(x_48); -x_50 = lean_alloc_ctor(2, 1, 0); +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_48 = lean_ctor_get(x_47, 0); +lean_inc(x_48); +lean_dec(x_47); +x_49 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_49, 0, x_48); +x_50 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_50, 0, x_49); -x_51 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_51, 0, x_50); -x_52 = l_Lean_Elab_Term_throwError___rarg(x_2, x_51, x_5, x_47); -return x_52; +x_51 = l_Lean_Elab_Term_throwError___rarg(x_50, x_4, x_46); +return x_51; } else { -lean_object* x_53; lean_object* x_54; -lean_dec(x_5); -x_53 = lean_ctor_get(x_48, 0); -lean_inc(x_53); -lean_dec(x_48); -x_54 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_54, 1, x_47); -return x_54; +lean_object* x_52; lean_object* x_53; +lean_dec(x_4); +x_52 = lean_ctor_get(x_47, 0); +lean_inc(x_52); +lean_dec(x_47); +x_53 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_46); +return x_53; } } } else { -uint8_t x_55; -lean_dec(x_5); -lean_dec(x_3); -x_55 = !lean_is_exclusive(x_34); -if (x_55 == 0) +uint8_t x_54; +lean_dec(x_4); +lean_dec(x_2); +x_54 = !lean_is_exclusive(x_33); +if (x_54 == 0) { -return x_34; +return x_33; } else { -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_34, 0); -x_57 = lean_ctor_get(x_34, 1); -lean_inc(x_57); +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_33, 0); +x_56 = lean_ctor_get(x_33, 1); lean_inc(x_56); -lean_dec(x_34); -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; +lean_inc(x_55); +lean_dec(x_33); +x_57 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_56); +return x_57; } } } else { -uint8_t x_59; -lean_dec(x_31); -lean_dec(x_5); -lean_dec(x_3); -x_59 = !lean_is_exclusive(x_32); -if (x_59 == 0) +uint8_t x_58; +lean_dec(x_30); +lean_dec(x_4); +lean_dec(x_2); +x_58 = !lean_is_exclusive(x_31); +if (x_58 == 0) { -return x_32; +return x_31; } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_32, 0); -x_61 = lean_ctor_get(x_32, 1); -lean_inc(x_61); +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_31, 0); +x_60 = lean_ctor_get(x_31, 1); lean_inc(x_60); -lean_dec(x_32); -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; +lean_inc(x_59); +lean_dec(x_31); +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_60); +return x_61; } } } else { -uint8_t x_63; -lean_dec(x_23); -lean_dec(x_5); -lean_dec(x_3); -x_63 = !lean_is_exclusive(x_25); -if (x_63 == 0) -{ -return x_25; -} -else -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_25, 0); -x_65 = lean_ctor_get(x_25, 1); -lean_inc(x_65); -lean_inc(x_64); -lean_dec(x_25); -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_67; -lean_dec(x_5); -lean_dec(x_3); -x_67 = !lean_is_exclusive(x_22); -if (x_67 == 0) -{ -return x_22; -} -else -{ -lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_68 = lean_ctor_get(x_22, 0); -x_69 = lean_ctor_get(x_22, 1); -lean_inc(x_69); -lean_inc(x_68); +uint8_t x_62; lean_dec(x_22); -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_dec(x_4); +lean_dec(x_2); +x_62 = !lean_is_exclusive(x_24); +if (x_62 == 0) +{ +return x_24; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_24, 0); +x_64 = lean_ctor_get(x_24, 1); +lean_inc(x_64); +lean_inc(x_63); +lean_dec(x_24); +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; } } } else { -uint8_t x_71; -lean_dec(x_16); -lean_dec(x_5); -lean_dec(x_3); -x_71 = !lean_is_exclusive(x_19); -if (x_71 == 0) +uint8_t x_66; +lean_dec(x_4); +lean_dec(x_2); +x_66 = !lean_is_exclusive(x_21); +if (x_66 == 0) { -return x_19; +return x_21; } else { -lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_72 = lean_ctor_get(x_19, 0); -x_73 = lean_ctor_get(x_19, 1); -lean_inc(x_73); +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_21, 0); +x_68 = lean_ctor_get(x_21, 1); +lean_inc(x_68); +lean_inc(x_67); +lean_dec(x_21); +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_15); +lean_dec(x_4); +lean_dec(x_2); +x_70 = !lean_is_exclusive(x_18); +if (x_70 == 0) +{ +return x_18; +} +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_18, 0); +x_72 = lean_ctor_get(x_18, 1); lean_inc(x_72); -lean_dec(x_19); -x_74 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_74, 0, x_72); -lean_ctor_set(x_74, 1, x_73); -return x_74; +lean_inc(x_71); +lean_dec(x_18); +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_75; -lean_dec(x_5); -lean_dec(x_3); -x_75 = !lean_is_exclusive(x_9); -if (x_75 == 0) +uint8_t x_74; +lean_dec(x_4); +lean_dec(x_2); +x_74 = !lean_is_exclusive(x_8); +if (x_74 == 0) { -return x_9; +return x_8; } else { -lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_76 = lean_ctor_get(x_9, 0); -x_77 = lean_ctor_get(x_9, 1); -lean_inc(x_77); +lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_75 = lean_ctor_get(x_8, 0); +x_76 = lean_ctor_get(x_8, 1); lean_inc(x_76); -lean_dec(x_9); -x_78 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_78, 0, x_76); -lean_ctor_set(x_78, 1, x_77); -return x_78; +lean_inc(x_75); +lean_dec(x_8); +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; } } } @@ -22566,17 +22551,13 @@ x_88 = lean_ctor_get(x_86, 1); lean_inc(x_88); lean_dec(x_86); x_89 = l_Lean_Elab_Command_elabEvalUnsafe___closed__2; -lean_inc(x_1); lean_inc(x_5); -x_90 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__3___boxed), 6, 3); +x_90 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__3___boxed), 5, 2); lean_closure_set(x_90, 0, x_5); -lean_closure_set(x_90, 1, x_1); -lean_closure_set(x_90, 2, x_89); -lean_inc(x_1); -x_91 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__4___boxed), 6, 3); +lean_closure_set(x_90, 1, x_89); +x_91 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___lambda__4___boxed), 5, 2); lean_closure_set(x_91, 0, x_5); -lean_closure_set(x_91, 1, x_1); -lean_closure_set(x_91, 2, x_89); +lean_closure_set(x_91, 1, x_89); x_92 = l_Lean_Elab_Command_elabEvalUnsafe___closed__4; x_93 = l_Lean_Environment_contains(x_87, x_92); if (x_93 == 0) @@ -22668,7 +22649,6 @@ else { lean_object* x_120; lean_object* x_121; lean_dec(x_105); -lean_dec(x_1); x_120 = lean_ctor_get(x_118, 0); lean_inc(x_120); x_121 = lean_ctor_get(x_118, 1); @@ -22712,7 +22692,6 @@ else { lean_object* x_128; lean_object* x_129; lean_dec(x_105); -lean_dec(x_1); x_128 = lean_ctor_get(x_126, 0); lean_inc(x_128); x_129 = lean_ctor_get(x_126, 1); @@ -22729,7 +22708,6 @@ else lean_object* x_130; lean_object* x_131; lean_dec(x_106); lean_dec(x_105); -lean_dec(x_1); x_130 = lean_ctor_get(x_107, 0); lean_inc(x_130); x_131 = lean_ctor_get(x_107, 1); @@ -22748,7 +22726,6 @@ lean_inc(x_132); if (lean_obj_tag(x_132) == 0) { lean_object* x_133; lean_object* x_134; lean_object* x_135; -lean_dec(x_1); x_133 = lean_ctor_get(x_104, 1); lean_inc(x_133); lean_dec(x_104); @@ -22896,7 +22873,6 @@ goto block_56; else { lean_object* x_165; lean_object* x_166; -lean_dec(x_1); x_165 = lean_ctor_get(x_162, 0); lean_inc(x_165); x_166 = lean_ctor_get(x_162, 1); @@ -22914,7 +22890,6 @@ else lean_object* x_167; lean_object* x_168; lean_dec(x_97); lean_dec(x_91); -lean_dec(x_1); x_167 = lean_ctor_get(x_98, 0); lean_inc(x_167); x_168 = lean_ctor_get(x_98, 1); @@ -22929,7 +22904,6 @@ else { lean_object* x_169; lean_object* x_170; lean_dec(x_91); -lean_dec(x_1); x_169 = lean_ctor_get(x_94, 0); lean_inc(x_169); x_170 = lean_ctor_get(x_94, 1); @@ -23029,7 +23003,6 @@ else { lean_object* x_197; lean_object* x_198; lean_dec(x_182); -lean_dec(x_1); x_197 = lean_ctor_get(x_195, 0); lean_inc(x_197); x_198 = lean_ctor_get(x_195, 1); @@ -23073,7 +23046,6 @@ else { lean_object* x_205; lean_object* x_206; lean_dec(x_182); -lean_dec(x_1); x_205 = lean_ctor_get(x_203, 0); lean_inc(x_205); x_206 = lean_ctor_get(x_203, 1); @@ -23090,7 +23062,6 @@ else lean_object* x_207; lean_object* x_208; lean_dec(x_183); lean_dec(x_182); -lean_dec(x_1); x_207 = lean_ctor_get(x_184, 0); lean_inc(x_207); x_208 = lean_ctor_get(x_184, 1); @@ -23109,7 +23080,6 @@ lean_inc(x_209); if (lean_obj_tag(x_209) == 0) { lean_object* x_210; lean_object* x_211; lean_object* x_212; -lean_dec(x_1); x_210 = lean_ctor_get(x_181, 1); lean_inc(x_210); lean_dec(x_181); @@ -23257,7 +23227,6 @@ goto block_85; else { lean_object* x_242; lean_object* x_243; -lean_dec(x_1); x_242 = lean_ctor_get(x_239, 0); lean_inc(x_242); x_243 = lean_ctor_get(x_239, 1); @@ -23275,7 +23244,6 @@ else lean_object* x_244; lean_object* x_245; lean_dec(x_174); lean_dec(x_90); -lean_dec(x_1); x_244 = lean_ctor_get(x_175, 0); lean_inc(x_244); x_245 = lean_ctor_get(x_175, 1); @@ -23290,7 +23258,6 @@ else { lean_object* x_246; lean_object* x_247; lean_dec(x_90); -lean_dec(x_1); x_246 = lean_ctor_get(x_171, 0); lean_inc(x_246); x_247 = lean_ctor_get(x_171, 1); @@ -23306,7 +23273,6 @@ else { lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_dec(x_5); -lean_dec(x_1); x_248 = lean_ctor_get(x_86, 0); lean_inc(x_248); x_249 = lean_ctor_get(x_86, 1); @@ -23504,7 +23470,6 @@ lean_inc(x_45); lean_dec(x_39); lean_inc(x_2); x_46 = l___private_Lean_Elab_Command_1__ioErrorToMessage(x_2, x_1, x_45); -lean_dec(x_1); x_47 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_47, 0, x_46); x_21 = x_47; @@ -23515,7 +23480,6 @@ else { lean_object* x_48; lean_object* x_49; lean_dec(x_39); -lean_dec(x_1); x_48 = lean_ctor_get(x_43, 1); lean_inc(x_48); lean_dec(x_43); @@ -23529,7 +23493,6 @@ else { lean_object* x_50; lean_object* x_51; lean_dec(x_39); -lean_dec(x_1); x_50 = lean_ctor_get(x_43, 0); lean_inc(x_50); x_51 = lean_ctor_get(x_43, 1); @@ -23550,7 +23513,6 @@ lean_inc(x_53); lean_dec(x_35); lean_inc(x_2); x_54 = l___private_Lean_Elab_Command_1__ioErrorToMessage(x_2, x_1, x_52); -lean_dec(x_1); x_55 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_55, 0, x_54); x_21 = x_55; @@ -23595,7 +23557,6 @@ lean_inc(x_69); lean_dec(x_63); lean_inc(x_2); x_70 = l___private_Lean_Elab_Command_1__ioErrorToMessage(x_2, x_1, x_69); -lean_dec(x_1); x_71 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_71, 0, x_70); x_21 = x_71; @@ -23605,7 +23566,6 @@ goto block_32; else { lean_object* x_72; lean_object* x_73; lean_object* x_74; -lean_dec(x_1); x_72 = lean_ctor_get(x_67, 1); lean_inc(x_72); lean_dec(x_67); @@ -23643,7 +23603,6 @@ else { lean_object* x_79; lean_object* x_80; lean_dec(x_63); -lean_dec(x_1); x_79 = lean_ctor_get(x_67, 0); lean_inc(x_79); x_80 = lean_ctor_get(x_67, 1); @@ -23664,7 +23623,6 @@ lean_inc(x_82); lean_dec(x_59); lean_inc(x_2); x_83 = l___private_Lean_Elab_Command_1__ioErrorToMessage(x_2, x_1, x_81); -lean_dec(x_1); x_84 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_84, 0, x_83); x_21 = x_84; @@ -23678,7 +23636,6 @@ else uint8_t x_259; lean_dec(x_5); lean_dec(x_2); -lean_dec(x_1); x_259 = !lean_is_exclusive(x_6); if (x_259 == 0) { @@ -23700,32 +23657,31 @@ return x_262; } } } -lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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* l_Lean_Elab_Command_elabEvalUnsafe___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_9; -x_9 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_5); -return x_9; +lean_object* x_6; +x_6 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__3(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_3); +return x_6; } } -lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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* l_Lean_Elab_Command_elabEvalUnsafe___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_7; -x_7 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_4); -return x_7; +lean_object* x_6; +x_6 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__4(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_3); +return x_6; } } -lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Lean_Elab_Command_elabEvalUnsafe___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_7; -x_7 = l_Lean_Elab_Command_elabEvalUnsafe___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_4); -lean_dec(x_2); -return x_7; +lean_object* x_4; +x_4 = l_Lean_Elab_Command_elabEvalUnsafe(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; } } lean_object* l_Lean_Elab_Command_elabEval___rarg(lean_object* x_1) { @@ -23761,7 +23717,7 @@ lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabEval___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe), 3, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalUnsafe___boxed), 3, 0); return x_1; } } @@ -23783,7 +23739,7 @@ lean_object* x_6; uint8_t x_7; lean_object* x_8; x_6 = lean_box(0); x_7 = 1; lean_inc(x_4); -x_8 = l_Lean_Elab_Term_elabTermAux___main(x_6, x_7, x_7, x_1, x_4, x_5); +x_8 = l_Lean_Elab_Term_elabTerm(x_1, x_6, x_7, x_4, x_5); if (lean_obj_tag(x_8) == 0) { lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; @@ -23803,7 +23759,7 @@ x_14 = lean_ctor_get(x_13, 1); lean_inc(x_14); lean_dec(x_13); lean_inc(x_4); -x_15 = l_Lean_Elab_Term_instantiateMVars(x_2, x_9, x_4, x_14); +x_15 = l_Lean_Elab_Term_instantiateMVars(x_9, x_4, x_14); x_16 = lean_ctor_get(x_15, 1); lean_inc(x_16); x_17 = lean_ctor_get(x_16, 0); @@ -23830,7 +23786,7 @@ x_25 = lean_ctor_get(x_23, 1); lean_inc(x_25); lean_dec(x_23); lean_inc(x_4); -x_26 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_4, x_16, x_25, x_20); +x_26 = l___private_Lean_Elab_Term_3__fromMetaState(x_4, x_16, x_25, x_20); x_27 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_27, 0, x_24); x_28 = 0; @@ -23866,8 +23822,8 @@ lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; x_35 = lean_ctor_get(x_23, 0); x_36 = lean_ctor_get(x_23, 1); lean_inc(x_4); -x_37 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_2, x_35); -x_38 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_4, x_16, x_36, x_20); +x_37 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_35); +x_38 = l___private_Lean_Elab_Term_3__fromMetaState(x_4, x_16, x_36, x_20); lean_ctor_set(x_23, 1, x_38); lean_ctor_set(x_23, 0, x_37); return x_23; @@ -23881,8 +23837,8 @@ lean_inc(x_40); lean_inc(x_39); lean_dec(x_23); lean_inc(x_4); -x_41 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_2, x_39); -x_42 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_4, x_16, x_40, x_20); +x_41 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_39); +x_42 = l___private_Lean_Elab_Term_3__fromMetaState(x_4, x_16, x_40, x_20); x_43 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_43, 0, x_41); lean_ctor_set(x_43, 1, x_42); @@ -23926,7 +23882,7 @@ x_55 = lean_ctor_get(x_53, 1); lean_inc(x_55); lean_dec(x_53); lean_inc(x_4); -x_56 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_4, x_16, x_55, x_48); +x_56 = l___private_Lean_Elab_Term_3__fromMetaState(x_4, x_16, x_55, x_48); x_57 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_57, 0, x_54); x_58 = 0; @@ -23966,8 +23922,8 @@ if (lean_is_exclusive(x_53)) { x_65 = lean_box(0); } lean_inc(x_4); -x_66 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_2, x_63); -x_67 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_4, x_16, x_64, x_48); +x_66 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_63); +x_67 = l___private_Lean_Elab_Term_3__fromMetaState(x_4, x_16, x_64, x_48); if (lean_is_scalar(x_65)) { x_68 = lean_alloc_ctor(1, 2, 0); } else { diff --git a/stage0/stdlib/Lean/Elab/Declaration.c b/stage0/stdlib/Lean/Elab/Declaration.c index bba1cc94c4..f2c2abb8f1 100644 --- a/stage0/stdlib/Lean/Elab/Declaration.c +++ b/stage0/stdlib/Lean/Elab/Declaration.c @@ -14,13 +14,14 @@ extern "C" { #endif lean_object* l_Lean_Elab_Command_elabDeclaration(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_mkForall(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkForall(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Declaration_7__expandMutualPreamble_x3f___closed__2; +lean_object* l_Lean_Elab_Term_throwErrorAt___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_expandOptDeclSig(lean_object*); extern lean_object* l_Lean_Parser_Command_abbrev___elambda__1___closed__2; lean_object* l___private_Lean_Elab_Declaration_7__expandMutualPreamble_x3f___closed__7; -lean_object* l_Lean_Elab_Command_addDecl(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_addDecl(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_instantiateMVars(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabAxiom___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_Lean_Elab_Command_elabConstant___closed__4; lean_object* l_unreachable_x21___rarg(lean_object*); @@ -49,7 +50,7 @@ extern lean_object* l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer_ lean_object* l___private_Lean_Elab_Declaration_2__classInductiveSyntaxToView(lean_object*, 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_Elab_Term_mkForallUsedOnly(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkForallUsedOnly(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabMutual(lean_object*); extern lean_object* l_Lean_Parser_Command_mutual___elambda__1___closed__1; lean_object* lean_string_utf8_byte_size(lean_object*); @@ -97,7 +98,6 @@ lean_object* l___private_Lean_Elab_Declaration_7__expandMutualPreamble_x3f___clo extern lean_object* l_Lean_Meta_registerInstanceAttr___closed__2; lean_object* l_Lean_Elab_Command_elabClassInductive(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_throwError___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_throwError___rarg(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Command_instance___elambda__1___closed__1; extern lean_object* l_Lean_Parser_Command_variable___elambda__1___closed__2; @@ -747,7 +747,6 @@ _start: { lean_object* x_11; lean_inc(x_9); -lean_inc(x_1); x_11 = l_Lean_Elab_Term_elabType(x_1, x_9, x_10); if (lean_obj_tag(x_11) == 0) { @@ -768,14 +767,14 @@ x_17 = lean_ctor_get(x_16, 1); lean_inc(x_17); lean_dec(x_16); lean_inc(x_9); -x_18 = l_Lean_Elab_Term_instantiateMVars(x_1, x_12, x_9, x_17); +x_18 = l_Lean_Elab_Term_instantiateMVars(x_12, x_9, x_17); x_19 = lean_ctor_get(x_18, 0); lean_inc(x_19); x_20 = lean_ctor_get(x_18, 1); lean_inc(x_20); lean_dec(x_18); lean_inc(x_9); -x_21 = l_Lean_Elab_Term_mkForall(x_1, x_8, x_19, x_9, x_20); +x_21 = l_Lean_Elab_Term_mkForall(x_8, x_19, x_9, x_20); if (lean_obj_tag(x_21) == 0) { lean_object* x_22; lean_object* x_23; lean_object* x_24; @@ -785,8 +784,7 @@ x_23 = lean_ctor_get(x_21, 1); lean_inc(x_23); lean_dec(x_21); lean_inc(x_9); -x_24 = l_Lean_Elab_Term_mkForallUsedOnly(x_1, x_2, x_22, x_9, x_23); -lean_dec(x_1); +x_24 = l_Lean_Elab_Term_mkForallUsedOnly(x_2, x_22, x_9, x_23); if (lean_obj_tag(x_24) == 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; @@ -830,7 +828,7 @@ x_39 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_39, 0, x_38); x_40 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_40, 0, x_39); -x_41 = l_Lean_Elab_Term_throwError___rarg(x_5, x_40, x_9, x_32); +x_41 = l_Lean_Elab_Term_throwErrorAt___rarg(x_5, x_40, x_9, x_32); return x_41; } else @@ -884,7 +882,7 @@ x_55 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_55, 0, x_54); x_56 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_56, 0, x_55); -x_57 = l_Lean_Elab_Term_throwError___rarg(x_5, x_56, x_9, x_48); +x_57 = l_Lean_Elab_Term_throwErrorAt___rarg(x_5, x_56, x_9, x_48); return x_57; } else @@ -946,7 +944,6 @@ lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); x_68 = !lean_is_exclusive(x_21); if (x_68 == 0) { @@ -977,7 +974,6 @@ lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); x_72 = !lean_is_exclusive(x_16); if (x_72 == 0) { @@ -1007,7 +1003,6 @@ lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); x_76 = !lean_is_exclusive(x_11); if (x_76 == 0) { @@ -1661,7 +1656,7 @@ block_32: { lean_object* x_16; lean_inc(x_8); -x_16 = l_Lean_Elab_Command_addDecl(x_3, x_14, x_8, x_15); +x_16 = l_Lean_Elab_Command_addDecl(x_14, x_8, x_15); lean_dec(x_14); if (lean_obj_tag(x_16) == 0) { diff --git a/stage0/stdlib/Lean/Elab/Definition.c b/stage0/stdlib/Lean/Elab/Definition.c index ccf1aa91c7..bd6c6b3b02 100644 --- a/stage0/stdlib/Lean/Elab/Definition.c +++ b/stage0/stdlib/Lean/Elab/Definition.c @@ -14,16 +14,17 @@ extern "C" { #endif lean_object* l_Lean_Elab_Term_getEnv___rarg(lean_object*); -lean_object* l_Lean_Elab_Term_mkForall(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_removeUnused(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkForall(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_removeUnused(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_throwErrorAt___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_ExprDefEq_8__checkTypesAndAssign___closed__7; -lean_object* l_Lean_Elab_Command_addDecl(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_addDecl(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkSort(lean_object*); -lean_object* l_Lean_Elab_Term_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_instantiateMVars(lean_object*, lean_object*, lean_object*); lean_object* l_unreachable_x21___rarg(lean_object*); extern lean_object* l_Lean_MessageData_ofList___closed__3; -lean_object* l___private_Lean_Elab_Definition_3__withUsedWhen_x27___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Definition_3__withUsedWhen_x27___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabDefLike___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_mkDef___lambda__1___closed__4; @@ -33,44 +34,43 @@ uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Command_6__mkTermContext(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabDefVal___closed__2; extern lean_object* l_Std_ShareCommon_State_empty; -lean_object* l_Lean_Elab_Command_compileDecl(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_compileDecl(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Definition_2__withUsedWhen(lean_object*); lean_object* l___private_Lean_Elab_Command_3__setState(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_mkLambda(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkLambda(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Command_declValEqns___elambda__1___closed__2; lean_object* l_Lean_Elab_Command_DefKind_isDefOrAbbrevOrOpaque___boxed(lean_object*); lean_object* l_Lean_Elab_Command_elabDefVal___closed__1; lean_object* l_Lean_Elab_Command_elabDefVal(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_11__synthesizeSyntheticMVarsAux___main(uint8_t, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Elab_Command_DefKind_isExample(uint8_t); -lean_object* l_Lean_Elab_Term_ensureHasType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_mkFreshTypeMVar(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_ensureHasType(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkFreshTypeMVar(uint8_t, lean_object*, lean_object*, lean_object*); uint32_t l_UInt32_add(uint32_t, uint32_t); lean_object* l_Lean_Elab_Term_getOptions(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabDefLike___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_mkDeclName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabDefLike___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_Elab_Command_elabDefLike___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_state_sharecommon(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_levelMVarToParam(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_DepElim_getUnusedLevelParam___closed__1; lean_object* l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(lean_object*); lean_object* l_Lean_Elab_Command_DefKind_isTheorem___boxed(lean_object*); uint8_t l_Lean_Elab_Command_DefKind_isDefOrAbbrevOrOpaque(uint8_t); +lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Command_declValSimple___elambda__1___closed__2; lean_object* l_Lean_Elab_Command_mkDef___lambda__1___closed__2; lean_object* l_Lean_Elab_Command_mkDef___lambda__1___closed__1; -lean_object* l_Lean_Elab_Term_elabTermAux___main(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_logTrace(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_mkDef___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* l_Lean_Elab_Command_mkDef___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_name_mk_string(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_throwError___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_throwError___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_iterateMAux___main___at_Lean_ppGoal___spec__6___closed__6; lean_object* l_Lean_getMaxHeight(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Definition_2__withUsedWhen___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_Elab_Definition_2__withUsedWhen___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Util_4__regTraceClasses___closed__1; -lean_object* l___private_Lean_Elab_Definition_3__withUsedWhen_x27___rarg(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_collectUsedFVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabDefLike___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___private_Lean_Elab_Definition_3__withUsedWhen_x27___rarg(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_collectUsedFVars(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Elab_Command_DefKind_isTheorem(uint8_t); extern lean_object* l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; extern lean_object* l_Lean_NameSet_empty; @@ -78,14 +78,15 @@ lean_object* l_Lean_Elab_Command_sortDeclLevelParams(lean_object*, lean_object*, lean_object* l_Lean_Elab_Command_elabDefVal___closed__3; lean_object* l___private_Lean_Elab_Command_2__getState(lean_object*, lean_object*); extern lean_object* l_Std_HashSet_Inhabited___closed__1; -lean_object* l_Lean_Elab_Command_elabDefLike___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_collectUsedFVarsAtFVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Definition_1__removeUnused(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabDefLike___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_collectUsedFVarsAtFVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Definition_1__removeUnused(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Command_7__mkTermState(lean_object*); lean_object* l_Lean_Syntax_getArgs(lean_object*); lean_object* l_Lean_Syntax_getKind(lean_object*); lean_object* l_Lean_Elab_Command_mkDef___lambda__1___closed__3; -lean_object* l___private_Lean_Elab_Definition_1__removeUnused___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_getCurrRef(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Definition_1__removeUnused___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabType(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Definition_1__removeUnused___closed__1; lean_object* l___private_Lean_Elab_Definition_4__regTraceClasses(lean_object*); @@ -99,12 +100,12 @@ lean_object* l_Lean_Elab_Term_elabBinders___rarg(lean_object*, lean_object*, lea lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabDefLike___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_levelOne; -lean_object* l___private_Lean_Elab_Definition_2__withUsedWhen___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Definition_2__withUsedWhen___rarg(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* lean_task_pure(lean_object*); lean_object* l_Lean_CollectLevelParams_main___main(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Command_liftTermElabM___rarg___closed__1; lean_object* l_Lean_Elab_Command_DefKind_isExample___boxed(lean_object*); -lean_object* l_Lean_Elab_Command_mkDef___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_mkDef___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Definition_3__withUsedWhen_x27(lean_object*); uint8_t l_Lean_Elab_Command_DefKind_isTheorem(uint8_t x_1) { _start: @@ -219,168 +220,168 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* l___private_Lean_Elab_Definition_1__removeUnused(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* l___private_Lean_Elab_Definition_1__removeUnused(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_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; -x_8 = l___private_Lean_Elab_Definition_1__removeUnused___closed__1; -lean_inc(x_6); -x_9 = l_Lean_Elab_Term_collectUsedFVars(x_1, x_8, x_5, x_6, x_7); -x_10 = lean_ctor_get(x_9, 0); +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_7 = l___private_Lean_Elab_Definition_1__removeUnused___closed__1; +lean_inc(x_5); +x_8 = l_Lean_Elab_Term_collectUsedFVars(x_7, x_4, x_5, x_6); +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_8, 1); lean_inc(x_10); -x_11 = lean_ctor_get(x_9, 1); -lean_inc(x_11); -lean_dec(x_9); -lean_inc(x_6); -x_12 = l_Lean_Elab_Term_collectUsedFVars(x_1, x_10, x_4, x_6, x_11); -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); -lean_inc(x_14); -lean_dec(x_12); -x_15 = lean_unsigned_to_nat(0u); -lean_inc(x_6); -x_16 = l_Array_iterateMAux___main___at_Lean_Elab_Term_collectUsedFVarsAtFVars___spec__1(x_1, x_3, x_3, x_15, x_13, x_6, x_14); -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); -x_19 = l_Lean_Elab_Term_removeUnused(x_1, x_2, x_17, x_6, x_18); -return x_19; -} -else -{ -uint8_t x_20; -lean_dec(x_6); -x_20 = !lean_is_exclusive(x_16); -if (x_20 == 0) -{ -return x_16; -} -else -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_16, 0); -x_22 = lean_ctor_get(x_16, 1); -lean_inc(x_22); -lean_inc(x_21); -lean_dec(x_16); -x_23 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_23, 0, x_21); -lean_ctor_set(x_23, 1, x_22); -return x_23; -} -} -} -} -lean_object* l___private_Lean_Elab_Definition_1__removeUnused___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_Elab_Definition_1__removeUnused(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_8; -} -} -lean_object* l___private_Lean_Elab_Definition_2__withUsedWhen___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -if (x_6 == 0) -{ -lean_object* x_10; -lean_dec(x_5); -lean_dec(x_4); -x_10 = lean_apply_3(x_7, x_2, x_8, x_9); -return x_10; -} -else -{ -lean_object* x_11; -lean_inc(x_8); -x_11 = l___private_Lean_Elab_Definition_1__removeUnused(x_1, x_2, x_3, x_4, x_5, x_8, x_9); -lean_dec(x_2); -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; lean_object* x_18; uint8_t x_19; +lean_dec(x_8); +lean_inc(x_5); +x_11 = l_Lean_Elab_Term_collectUsedFVars(x_9, x_3, x_5, x_10); x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); -x_13 = lean_ctor_get(x_12, 1); +x_13 = lean_ctor_get(x_11, 1); lean_inc(x_13); -x_14 = lean_ctor_get(x_8, 0); +lean_dec(x_11); +x_14 = lean_unsigned_to_nat(0u); +lean_inc(x_5); +x_15 = l_Array_iterateMAux___main___at_Lean_Elab_Term_collectUsedFVarsAtFVars___spec__1(x_2, x_2, x_14, x_12, x_5, x_13); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = l_Lean_Elab_Term_removeUnused(x_1, x_16, x_5, x_17); +return x_18; +} +else +{ +uint8_t x_19; +lean_dec(x_5); +x_19 = !lean_is_exclusive(x_15); +if (x_19 == 0) +{ +return x_15; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_15, 0); +x_21 = lean_ctor_get(x_15, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_15); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +} +} +lean_object* l___private_Lean_Elab_Definition_1__removeUnused___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___private_Lean_Elab_Definition_1__removeUnused(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_2); +lean_dec(x_1); +return x_7; +} +} +lean_object* l___private_Lean_Elab_Definition_2__withUsedWhen___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +if (x_5 == 0) +{ +lean_object* x_9; +lean_dec(x_4); +lean_dec(x_3); +x_9 = lean_apply_3(x_6, x_1, x_7, x_8); +return x_9; +} +else +{ +lean_object* x_10; +lean_inc(x_7); +x_10 = l___private_Lean_Elab_Definition_1__removeUnused(x_1, x_2, x_3, x_4, x_7, x_8); +lean_dec(x_1); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_11, 1); +lean_inc(x_12); +x_13 = lean_ctor_get(x_7, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_10, 1); lean_inc(x_14); -x_15 = lean_ctor_get(x_11, 1); +lean_dec(x_10); +x_15 = lean_ctor_get(x_11, 0); lean_inc(x_15); lean_dec(x_11); x_16 = lean_ctor_get(x_12, 0); lean_inc(x_16); -lean_dec(x_12); -x_17 = lean_ctor_get(x_13, 0); +x_17 = lean_ctor_get(x_12, 1); lean_inc(x_17); -x_18 = lean_ctor_get(x_13, 1); -lean_inc(x_18); -lean_dec(x_13); -x_19 = !lean_is_exclusive(x_8); -if (x_19 == 0) +lean_dec(x_12); +x_18 = !lean_is_exclusive(x_7); +if (x_18 == 0) { -lean_object* x_20; uint8_t x_21; -x_20 = lean_ctor_get(x_8, 0); -lean_dec(x_20); -x_21 = !lean_is_exclusive(x_14); -if (x_21 == 0) +lean_object* x_19; uint8_t x_20; +x_19 = lean_ctor_get(x_7, 0); +lean_dec(x_19); +x_20 = !lean_is_exclusive(x_13); +if (x_20 == 0) { -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_14, 2); +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_13, 2); +lean_dec(x_21); +x_22 = lean_ctor_get(x_13, 1); lean_dec(x_22); -x_23 = lean_ctor_get(x_14, 1); -lean_dec(x_23); -lean_ctor_set(x_14, 2, x_17); -lean_ctor_set(x_14, 1, x_16); -x_24 = lean_apply_3(x_7, x_18, x_8, x_15); -return x_24; +lean_ctor_set(x_13, 2, x_16); +lean_ctor_set(x_13, 1, x_15); +x_23 = lean_apply_3(x_6, x_17, x_7, x_14); +return x_23; } else { -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_25 = lean_ctor_get(x_14, 0); -x_26 = lean_ctor_get(x_14, 3); -x_27 = lean_ctor_get(x_14, 4); -lean_inc(x_27); +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_13, 0); +x_25 = lean_ctor_get(x_13, 3); +x_26 = lean_ctor_get(x_13, 4); lean_inc(x_26); lean_inc(x_25); -lean_dec(x_14); -x_28 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_28, 0, x_25); -lean_ctor_set(x_28, 1, x_16); -lean_ctor_set(x_28, 2, x_17); -lean_ctor_set(x_28, 3, x_26); -lean_ctor_set(x_28, 4, x_27); -lean_ctor_set(x_8, 0, x_28); -x_29 = lean_apply_3(x_7, x_18, x_8, x_15); -return x_29; +lean_inc(x_24); +lean_dec(x_13); +x_27 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_27, 0, x_24); +lean_ctor_set(x_27, 1, x_15); +lean_ctor_set(x_27, 2, x_16); +lean_ctor_set(x_27, 3, x_25); +lean_ctor_set(x_27, 4, x_26); +lean_ctor_set(x_7, 0, x_27); +x_28 = lean_apply_3(x_6, x_17, x_7, x_14); +return x_28; } } else { -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; uint8_t x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_30 = lean_ctor_get(x_8, 1); -x_31 = lean_ctor_get(x_8, 2); -x_32 = lean_ctor_get(x_8, 3); -x_33 = lean_ctor_get(x_8, 4); -x_34 = lean_ctor_get(x_8, 5); -x_35 = lean_ctor_get(x_8, 6); -x_36 = lean_ctor_get(x_8, 7); -x_37 = lean_ctor_get(x_8, 8); -x_38 = lean_ctor_get(x_8, 9); -x_39 = lean_ctor_get_uint8(x_8, sizeof(void*)*10); -x_40 = lean_ctor_get_uint8(x_8, sizeof(void*)*10 + 1); -x_41 = lean_ctor_get_uint8(x_8, sizeof(void*)*10 + 2); -lean_inc(x_38); +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; uint8_t x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_29 = lean_ctor_get(x_7, 1); +x_30 = lean_ctor_get(x_7, 2); +x_31 = lean_ctor_get(x_7, 3); +x_32 = lean_ctor_get(x_7, 4); +x_33 = lean_ctor_get(x_7, 5); +x_34 = lean_ctor_get(x_7, 6); +x_35 = lean_ctor_get(x_7, 7); +x_36 = lean_ctor_get(x_7, 8); +x_37 = lean_ctor_get(x_7, 9); +x_38 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_39 = lean_ctor_get_uint8(x_7, sizeof(void*)*11 + 1); +x_40 = lean_ctor_get_uint8(x_7, sizeof(void*)*11 + 2); +x_41 = lean_ctor_get(x_7, 10); +lean_inc(x_41); lean_inc(x_37); lean_inc(x_36); lean_inc(x_35); @@ -389,22 +390,23 @@ lean_inc(x_33); lean_inc(x_32); lean_inc(x_31); lean_inc(x_30); -lean_dec(x_8); -x_42 = lean_ctor_get(x_14, 0); +lean_inc(x_29); +lean_dec(x_7); +x_42 = lean_ctor_get(x_13, 0); lean_inc(x_42); -x_43 = lean_ctor_get(x_14, 3); +x_43 = lean_ctor_get(x_13, 3); lean_inc(x_43); -x_44 = lean_ctor_get(x_14, 4); +x_44 = lean_ctor_get(x_13, 4); lean_inc(x_44); -if (lean_is_exclusive(x_14)) { - lean_ctor_release(x_14, 0); - lean_ctor_release(x_14, 1); - lean_ctor_release(x_14, 2); - lean_ctor_release(x_14, 3); - lean_ctor_release(x_14, 4); - x_45 = x_14; +if (lean_is_exclusive(x_13)) { + lean_ctor_release(x_13, 0); + lean_ctor_release(x_13, 1); + lean_ctor_release(x_13, 2); + lean_ctor_release(x_13, 3); + lean_ctor_release(x_13, 4); + x_45 = x_13; } else { - lean_dec_ref(x_14); + lean_dec_ref(x_13); x_45 = lean_box(0); } if (lean_is_scalar(x_45)) { @@ -413,46 +415,47 @@ if (lean_is_scalar(x_45)) { x_46 = x_45; } lean_ctor_set(x_46, 0, x_42); -lean_ctor_set(x_46, 1, x_16); -lean_ctor_set(x_46, 2, x_17); +lean_ctor_set(x_46, 1, x_15); +lean_ctor_set(x_46, 2, x_16); lean_ctor_set(x_46, 3, x_43); lean_ctor_set(x_46, 4, x_44); -x_47 = lean_alloc_ctor(0, 10, 3); +x_47 = lean_alloc_ctor(0, 11, 3); lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_30); -lean_ctor_set(x_47, 2, x_31); -lean_ctor_set(x_47, 3, x_32); -lean_ctor_set(x_47, 4, x_33); -lean_ctor_set(x_47, 5, x_34); -lean_ctor_set(x_47, 6, x_35); -lean_ctor_set(x_47, 7, x_36); -lean_ctor_set(x_47, 8, x_37); -lean_ctor_set(x_47, 9, x_38); -lean_ctor_set_uint8(x_47, sizeof(void*)*10, x_39); -lean_ctor_set_uint8(x_47, sizeof(void*)*10 + 1, x_40); -lean_ctor_set_uint8(x_47, sizeof(void*)*10 + 2, x_41); -x_48 = lean_apply_3(x_7, x_18, x_47, x_15); +lean_ctor_set(x_47, 1, x_29); +lean_ctor_set(x_47, 2, x_30); +lean_ctor_set(x_47, 3, x_31); +lean_ctor_set(x_47, 4, x_32); +lean_ctor_set(x_47, 5, x_33); +lean_ctor_set(x_47, 6, x_34); +lean_ctor_set(x_47, 7, x_35); +lean_ctor_set(x_47, 8, x_36); +lean_ctor_set(x_47, 9, x_37); +lean_ctor_set(x_47, 10, x_41); +lean_ctor_set_uint8(x_47, sizeof(void*)*11, x_38); +lean_ctor_set_uint8(x_47, sizeof(void*)*11 + 1, x_39); +lean_ctor_set_uint8(x_47, sizeof(void*)*11 + 2, x_40); +x_48 = lean_apply_3(x_6, x_17, x_47, x_14); return x_48; } } else { uint8_t x_49; -lean_dec(x_8); lean_dec(x_7); -x_49 = !lean_is_exclusive(x_11); +lean_dec(x_6); +x_49 = !lean_is_exclusive(x_10); if (x_49 == 0) { -return x_11; +return x_10; } else { lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_11, 0); -x_51 = lean_ctor_get(x_11, 1); +x_50 = lean_ctor_get(x_10, 0); +x_51 = lean_ctor_get(x_10, 1); lean_inc(x_51); lean_inc(x_50); -lean_dec(x_11); +lean_dec(x_10); x_52 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_52, 0, x_50); lean_ctor_set(x_52, 1, x_51); @@ -466,20 +469,19 @@ lean_object* l___private_Lean_Elab_Definition_2__withUsedWhen(lean_object* x_1) _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Definition_2__withUsedWhen___rarg___boxed), 9, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Definition_2__withUsedWhen___rarg___boxed), 8, 0); return x_2; } } -lean_object* l___private_Lean_Elab_Definition_2__withUsedWhen___rarg___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___private_Lean_Elab_Definition_2__withUsedWhen___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { -uint8_t x_10; lean_object* x_11; -x_10 = lean_unbox(x_6); -lean_dec(x_6); -x_11 = l___private_Lean_Elab_Definition_2__withUsedWhen___rarg(x_1, x_2, x_3, x_4, x_5, x_10, x_7, x_8, x_9); -lean_dec(x_3); -lean_dec(x_1); -return x_11; +uint8_t x_9; lean_object* x_10; +x_9 = lean_unbox(x_5); +lean_dec(x_5); +x_10 = l___private_Lean_Elab_Definition_2__withUsedWhen___rarg(x_1, x_2, x_3, x_4, x_9, x_6, x_7, x_8); +lean_dec(x_2); +return x_10; } } lean_object* _init_l___private_Lean_Elab_Definition_3__withUsedWhen_x27___rarg___closed__1() { @@ -491,33 +493,32 @@ x_2 = l_Lean_mkSort(x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Definition_3__withUsedWhen_x27___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_Definition_3__withUsedWhen_x27___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -lean_object* x_9; lean_object* x_10; -x_9 = l___private_Lean_Elab_Definition_3__withUsedWhen_x27___rarg___closed__1; -x_10 = l___private_Lean_Elab_Definition_2__withUsedWhen___rarg(x_1, x_2, x_3, x_4, x_9, x_5, x_6, x_7, x_8); -return x_10; +lean_object* x_8; lean_object* x_9; +x_8 = l___private_Lean_Elab_Definition_3__withUsedWhen_x27___rarg___closed__1; +x_9 = l___private_Lean_Elab_Definition_2__withUsedWhen___rarg(x_1, x_2, x_3, x_8, x_4, x_5, x_6, x_7); +return x_9; } } lean_object* l___private_Lean_Elab_Definition_3__withUsedWhen_x27(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Definition_3__withUsedWhen_x27___rarg___boxed), 8, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Definition_3__withUsedWhen_x27___rarg___boxed), 7, 0); return x_2; } } -lean_object* l___private_Lean_Elab_Definition_3__withUsedWhen_x27___rarg___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_Elab_Definition_3__withUsedWhen_x27___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -uint8_t x_9; lean_object* x_10; -x_9 = lean_unbox(x_5); -lean_dec(x_5); -x_10 = l___private_Lean_Elab_Definition_3__withUsedWhen_x27___rarg(x_1, x_2, x_3, x_4, x_9, x_6, x_7, x_8); -lean_dec(x_3); -lean_dec(x_1); -return x_10; +uint8_t x_8; lean_object* x_9; +x_8 = lean_unbox(x_4); +lean_dec(x_4); +x_9 = l___private_Lean_Elab_Definition_3__withUsedWhen_x27___rarg(x_1, x_2, x_3, x_8, x_5, x_6, x_7); +lean_dec(x_2); +return x_9; } } lean_object* _init_l_Lean_Elab_Command_mkDef___lambda__1___closed__1() { @@ -566,369 +567,377 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Lean_Elab_Command_mkDef___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, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l_Lean_Elab_Command_mkDef___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { -lean_object* x_14; -lean_inc(x_12); -lean_inc(x_2); -x_14 = l_Lean_Elab_Term_mkForall(x_1, x_2, x_3, x_12, x_13); -if (lean_obj_tag(x_14) == 0) +lean_object* x_12; +lean_inc(x_10); +lean_inc(x_1); +x_12 = l_Lean_Elab_Term_mkForall(x_1, x_2, x_10, x_11); +if (lean_obj_tag(x_12) == 0) { -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -x_16 = lean_ctor_get(x_14, 1); +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +lean_inc(x_10); +lean_inc(x_9); +x_15 = l_Lean_Elab_Term_mkForall(x_9, x_13, x_10, x_14); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_15, 0); lean_inc(x_16); -lean_dec(x_14); -lean_inc(x_12); -lean_inc(x_11); -x_17 = l_Lean_Elab_Term_mkForall(x_1, x_11, x_15, x_12, x_16); -if (lean_obj_tag(x_17) == 0) +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +lean_inc(x_10); +x_18 = l_Lean_Elab_Term_mkLambda(x_1, x_3, x_10, x_17); +if (lean_obj_tag(x_18) == 0) { -lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); -x_19 = lean_ctor_get(x_17, 1); +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_18, 0); lean_inc(x_19); -lean_dec(x_17); -lean_inc(x_12); -x_20 = l_Lean_Elab_Term_mkLambda(x_1, x_2, x_4, x_12, x_19); -if (lean_obj_tag(x_20) == 0) +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +lean_inc(x_10); +x_21 = l_Lean_Elab_Term_mkLambda(x_9, x_19, x_10, x_20); +if (lean_obj_tag(x_21) == 0) { -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -x_22 = lean_ctor_get(x_20, 1); +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_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; +x_22 = lean_ctor_get(x_21, 0); lean_inc(x_22); -lean_dec(x_20); -lean_inc(x_12); -x_23 = l_Lean_Elab_Term_mkLambda(x_1, x_11, x_21, x_12, x_22); -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; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; uint8_t x_120; -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_unsigned_to_nat(1u); -lean_inc(x_12); -x_27 = l_Lean_Elab_Term_levelMVarToParam(x_18, x_26, x_12, x_25); -x_28 = lean_ctor_get(x_27, 0); +x_23 = lean_ctor_get(x_21, 1); +lean_inc(x_23); +lean_dec(x_21); +x_24 = lean_unsigned_to_nat(1u); +lean_inc(x_10); +x_25 = l_Lean_Elab_Term_levelMVarToParam(x_16, x_24, x_10, x_23); +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); +x_28 = lean_ctor_get(x_26, 0); lean_inc(x_28); -x_29 = lean_ctor_get(x_27, 1); +x_29 = lean_ctor_get(x_26, 1); lean_inc(x_29); -lean_dec(x_27); -x_30 = lean_ctor_get(x_28, 0); -lean_inc(x_30); -x_31 = lean_ctor_get(x_28, 1); +lean_dec(x_26); +lean_inc(x_10); +x_30 = l_Lean_Elab_Term_levelMVarToParam(x_22, x_29, x_10, x_27); +x_31 = lean_ctor_get(x_30, 0); lean_inc(x_31); -lean_dec(x_28); -lean_inc(x_12); -x_32 = l_Lean_Elab_Term_levelMVarToParam(x_24, x_31, x_12, x_29); -x_33 = lean_ctor_get(x_32, 0); +x_32 = lean_ctor_get(x_30, 1); +lean_inc(x_32); +lean_dec(x_30); +x_33 = lean_ctor_get(x_31, 0); lean_inc(x_33); -x_34 = lean_ctor_get(x_32, 1); -lean_inc(x_34); -lean_dec(x_32); -x_35 = lean_ctor_get(x_33, 0); +lean_dec(x_31); +lean_inc(x_10); +x_34 = l_Lean_Elab_Term_instantiateMVars(x_28, x_10, x_32); +x_35 = lean_ctor_get(x_34, 0); lean_inc(x_35); -lean_dec(x_33); -lean_inc(x_12); -x_36 = l_Lean_Elab_Term_instantiateMVars(x_1, x_30, x_12, x_34); -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -x_38 = lean_ctor_get(x_36, 1); +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +lean_dec(x_34); +lean_inc(x_10); +x_37 = l_Lean_Elab_Term_instantiateMVars(x_33, x_10, x_36); +x_38 = lean_ctor_get(x_37, 0); lean_inc(x_38); -lean_dec(x_36); -lean_inc(x_12); -x_39 = l_Lean_Elab_Term_instantiateMVars(x_5, x_35, x_12, x_38); -x_40 = lean_ctor_get(x_39, 0); -lean_inc(x_40); -x_41 = lean_ctor_get(x_39, 1); -lean_inc(x_41); -if (lean_is_exclusive(x_39)) { - lean_ctor_release(x_39, 0); - lean_ctor_release(x_39, 1); - x_42 = x_39; +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_40 = x_37; } else { - lean_dec_ref(x_39); - x_42 = lean_box(0); + lean_dec_ref(x_37); + x_40 = lean_box(0); } -x_43 = l_Std_ShareCommon_State_empty; -x_44 = lean_state_sharecommon(x_43, x_37); -x_45 = lean_ctor_get(x_44, 0); -lean_inc(x_45); -x_46 = lean_ctor_get(x_44, 1); +x_41 = l_Std_ShareCommon_State_empty; +x_42 = lean_state_sharecommon(x_41, x_35); +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_42, 1); +lean_inc(x_44); +lean_dec(x_42); +x_45 = lean_state_sharecommon(x_44, x_38); +x_46 = lean_ctor_get(x_45, 0); lean_inc(x_46); -lean_dec(x_44); -x_47 = lean_state_sharecommon(x_46, x_40); -x_48 = lean_ctor_get(x_47, 0); -lean_inc(x_48); -lean_dec(x_47); -x_49 = l_Lean_Meta_DepElim_getUnusedLevelParam___closed__1; -lean_inc(x_45); -x_50 = l_Lean_CollectLevelParams_main___main(x_45, x_49); -lean_inc(x_48); -x_51 = l_Lean_CollectLevelParams_main___main(x_48, x_50); -x_52 = lean_ctor_get(x_51, 2); -lean_inc(x_52); -lean_dec(x_51); -x_53 = l_Lean_Elab_Command_sortDeclLevelParams(x_6, x_7, x_52); -x_116 = l_Lean_Elab_Term_getOptions(x_12, x_41); -x_117 = lean_ctor_get(x_116, 0); -lean_inc(x_117); -x_118 = lean_ctor_get(x_116, 1); +lean_dec(x_45); +x_47 = l_Lean_Meta_DepElim_getUnusedLevelParam___closed__1; +lean_inc(x_43); +x_48 = l_Lean_CollectLevelParams_main___main(x_43, x_47); +lean_inc(x_46); +x_49 = l_Lean_CollectLevelParams_main___main(x_46, x_48); +x_50 = lean_ctor_get(x_49, 2); +lean_inc(x_50); +lean_dec(x_49); +x_51 = l_Lean_Elab_Command_sortDeclLevelParams(x_4, x_5, x_50); +x_114 = l_Lean_Elab_Term_getOptions(x_10, x_39); +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_Elab_Term_getCurrRef(x_10, x_116); +x_118 = lean_ctor_get(x_117, 0); lean_inc(x_118); -lean_dec(x_116); -x_119 = l_Lean_Elab_Command_mkDef___lambda__1___closed__4; -x_120 = l_Lean_checkTraceOption(x_117, x_119); +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); lean_dec(x_117); -if (x_120 == 0) +x_120 = l_Lean_Elab_Command_mkDef___lambda__1___closed__4; +x_121 = l_Lean_checkTraceOption(x_115, x_120); +lean_dec(x_115); +if (x_121 == 0) { -x_54 = x_118; -goto block_115; +lean_dec(x_118); +x_52 = x_119; +goto block_113; } else { -lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; -lean_inc(x_9); -x_121 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_121, 0, x_9); -x_122 = l___private_Lean_Meta_ExprDefEq_8__checkTypesAndAssign___closed__7; -x_123 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_123, 0, x_121); -lean_ctor_set(x_123, 1, x_122); -lean_inc(x_45); -x_124 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_124, 0, x_45); -x_125 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_125, 0, x_123); -lean_ctor_set(x_125, 1, x_124); -x_126 = l_Lean_Elab_Command_mkDef___lambda__1___closed__5; -x_127 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_127, 0, x_125); -lean_ctor_set(x_127, 1, x_126); -x_128 = l_Lean_MessageData_ofList___closed__3; -x_129 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_129, 0, x_127); -lean_ctor_set(x_129, 1, x_128); -lean_inc(x_48); -x_130 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_130, 0, x_48); -x_131 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_131, 0, x_129); -lean_ctor_set(x_131, 1, x_130); -lean_inc(x_12); -x_132 = l_Lean_Elab_Term_logTrace(x_119, x_1, x_131, x_12, x_118); -x_133 = lean_ctor_get(x_132, 1); -lean_inc(x_133); -lean_dec(x_132); -x_54 = x_133; -goto block_115; +lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +lean_inc(x_7); +x_122 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_122, 0, x_7); +x_123 = l___private_Lean_Meta_ExprDefEq_8__checkTypesAndAssign___closed__7; +x_124 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_124, 0, x_122); +lean_ctor_set(x_124, 1, x_123); +lean_inc(x_43); +x_125 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_125, 0, x_43); +x_126 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +x_127 = l_Lean_Elab_Command_mkDef___lambda__1___closed__5; +x_128 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_128, 0, x_126); +lean_ctor_set(x_128, 1, x_127); +x_129 = l_Lean_MessageData_ofList___closed__3; +x_130 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_130, 0, x_128); +lean_ctor_set(x_130, 1, x_129); +lean_inc(x_46); +x_131 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_131, 0, x_46); +x_132 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_132, 0, x_130); +lean_ctor_set(x_132, 1, x_131); +lean_inc(x_10); +x_133 = l_Lean_Elab_Term_logTrace(x_120, x_118, x_132, x_10, x_119); +lean_dec(x_118); +x_134 = lean_ctor_get(x_133, 1); +lean_inc(x_134); +lean_dec(x_133); +x_52 = x_134; +goto block_113; } -block_115: +block_113: { -if (lean_obj_tag(x_53) == 0) +if (lean_obj_tag(x_51) == 0) { -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; -lean_dec(x_48); -lean_dec(x_45); -lean_dec(x_42); -lean_dec(x_9); -x_55 = lean_ctor_get(x_53, 0); -lean_inc(x_55); -lean_dec(x_53); -x_56 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_56, 0, x_55); -x_57 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_57, 0, x_56); -x_58 = l_Lean_Elab_Term_throwError___rarg(x_1, x_57, x_12, x_54); +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +lean_dec(x_46); +lean_dec(x_43); +lean_dec(x_40); +lean_dec(x_7); +x_53 = lean_ctor_get(x_51, 0); +lean_inc(x_53); +lean_dec(x_51); +x_54 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_54, 0, x_53); +x_55 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_55, 0, x_54); +x_56 = l_Lean_Elab_Term_throwError___rarg(x_55, x_10, x_52); +return x_56; +} +else +{ +switch (x_6) { +case 0: +{ +lean_object* x_57; lean_object* x_58; uint8_t x_59; +lean_dec(x_40); +lean_dec(x_10); +x_57 = lean_ctor_get(x_51, 0); +lean_inc(x_57); +lean_dec(x_51); +x_58 = l_Lean_Elab_Term_getEnv___rarg(x_52); +x_59 = !lean_is_exclusive(x_58); +if (x_59 == 0) +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; uint32_t x_63; uint32_t x_64; uint32_t x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_60 = lean_ctor_get(x_58, 0); +x_61 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_61, 0, x_7); +lean_ctor_set(x_61, 1, x_57); +lean_ctor_set(x_61, 2, x_43); +lean_inc(x_46); +x_62 = l_Lean_getMaxHeight(x_60, x_46); +x_63 = lean_unbox_uint32(x_62); +lean_dec(x_62); +x_64 = 1; +x_65 = x_63 + x_64; +x_66 = lean_alloc_ctor(2, 0, 4); +lean_ctor_set_uint32(x_66, 0, x_65); +x_67 = lean_ctor_get(x_8, 1); +x_68 = lean_ctor_get_uint8(x_67, sizeof(void*)*2 + 3); +x_69 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_69, 0, x_61); +lean_ctor_set(x_69, 1, x_46); +lean_ctor_set(x_69, 2, x_66); +lean_ctor_set_uint8(x_69, sizeof(void*)*3, x_68); +x_70 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_70, 0, x_69); +x_71 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_71, 0, x_70); +lean_ctor_set(x_58, 0, x_71); return x_58; } else { -switch (x_8) { -case 0: -{ -lean_object* x_59; lean_object* x_60; uint8_t x_61; -lean_dec(x_42); -lean_dec(x_12); -x_59 = lean_ctor_get(x_53, 0); -lean_inc(x_59); -lean_dec(x_53); -x_60 = l_Lean_Elab_Term_getEnv___rarg(x_54); -x_61 = !lean_is_exclusive(x_60); -if (x_61 == 0) -{ -lean_object* x_62; lean_object* x_63; lean_object* x_64; uint32_t x_65; uint32_t x_66; uint32_t x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_62 = lean_ctor_get(x_60, 0); -x_63 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_63, 0, x_9); -lean_ctor_set(x_63, 1, x_59); -lean_ctor_set(x_63, 2, x_45); -lean_inc(x_48); -x_64 = l_Lean_getMaxHeight(x_62, x_48); -x_65 = lean_unbox_uint32(x_64); -lean_dec(x_64); -x_66 = 1; -x_67 = x_65 + x_66; -x_68 = lean_alloc_ctor(2, 0, 4); -lean_ctor_set_uint32(x_68, 0, x_67); -x_69 = lean_ctor_get(x_10, 1); -x_70 = lean_ctor_get_uint8(x_69, sizeof(void*)*2 + 3); -x_71 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_71, 0, x_63); -lean_ctor_set(x_71, 1, x_48); -lean_ctor_set(x_71, 2, x_68); -lean_ctor_set_uint8(x_71, sizeof(void*)*3, x_70); -x_72 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_72, 0, x_71); -x_73 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_73, 0, x_72); -lean_ctor_set(x_60, 0, x_73); -return x_60; -} -else -{ -lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; uint32_t x_78; uint32_t x_79; uint32_t x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_74 = lean_ctor_get(x_60, 0); -x_75 = lean_ctor_get(x_60, 1); -lean_inc(x_75); -lean_inc(x_74); -lean_dec(x_60); -x_76 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_76, 0, x_9); -lean_ctor_set(x_76, 1, x_59); -lean_ctor_set(x_76, 2, x_45); -lean_inc(x_48); -x_77 = l_Lean_getMaxHeight(x_74, x_48); -x_78 = lean_unbox_uint32(x_77); -lean_dec(x_77); -x_79 = 1; -x_80 = x_78 + x_79; -x_81 = lean_alloc_ctor(2, 0, 4); -lean_ctor_set_uint32(x_81, 0, x_80); -x_82 = lean_ctor_get(x_10, 1); -x_83 = lean_ctor_get_uint8(x_82, sizeof(void*)*2 + 3); -x_84 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_84, 0, x_76); -lean_ctor_set(x_84, 1, x_48); -lean_ctor_set(x_84, 2, x_81); -lean_ctor_set_uint8(x_84, sizeof(void*)*3, x_83); -x_85 = lean_alloc_ctor(1, 1, 0); +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; uint32_t x_76; uint32_t x_77; uint32_t x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_72 = lean_ctor_get(x_58, 0); +x_73 = lean_ctor_get(x_58, 1); +lean_inc(x_73); +lean_inc(x_72); +lean_dec(x_58); +x_74 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_74, 0, x_7); +lean_ctor_set(x_74, 1, x_57); +lean_ctor_set(x_74, 2, x_43); +lean_inc(x_46); +x_75 = l_Lean_getMaxHeight(x_72, x_46); +x_76 = lean_unbox_uint32(x_75); +lean_dec(x_75); +x_77 = 1; +x_78 = x_76 + x_77; +x_79 = lean_alloc_ctor(2, 0, 4); +lean_ctor_set_uint32(x_79, 0, x_78); +x_80 = lean_ctor_get(x_8, 1); +x_81 = lean_ctor_get_uint8(x_80, sizeof(void*)*2 + 3); +x_82 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_82, 0, x_74); +lean_ctor_set(x_82, 1, x_46); +lean_ctor_set(x_82, 2, x_79); +lean_ctor_set_uint8(x_82, sizeof(void*)*3, x_81); +x_83 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_83, 0, x_82); +x_84 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_84, 0, x_83); +x_85 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_85, 0, x_84); -x_86 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_86, 0, x_85); -x_87 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_87, 0, x_86); -lean_ctor_set(x_87, 1, x_75); -return x_87; +lean_ctor_set(x_85, 1, x_73); +return x_85; } } case 1: { -lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; -lean_dec(x_12); -x_88 = lean_ctor_get(x_53, 0); -lean_inc(x_88); -lean_dec(x_53); -x_89 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_89, 0, x_9); +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; +lean_dec(x_10); +x_86 = lean_ctor_get(x_51, 0); +lean_inc(x_86); +lean_dec(x_51); +x_87 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_87, 0, x_7); +lean_ctor_set(x_87, 1, x_86); +lean_ctor_set(x_87, 2, x_43); +x_88 = lean_task_pure(x_46); +x_89 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_89, 0, x_87); lean_ctor_set(x_89, 1, x_88); -lean_ctor_set(x_89, 2, x_45); -x_90 = lean_task_pure(x_48); -x_91 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_90); -x_92 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_92, 0, x_91); -x_93 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_93, 0, x_92); -if (lean_is_scalar(x_42)) { - x_94 = lean_alloc_ctor(0, 2, 0); +x_90 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_90, 0, x_89); +x_91 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_91, 0, x_90); +if (lean_is_scalar(x_40)) { + x_92 = lean_alloc_ctor(0, 2, 0); } else { - x_94 = x_42; + x_92 = x_40; } -lean_ctor_set(x_94, 0, x_93); -lean_ctor_set(x_94, 1, x_54); -return x_94; +lean_ctor_set(x_92, 0, x_91); +lean_ctor_set(x_92, 1, x_52); +return x_92; } case 2: { -lean_object* x_95; lean_object* x_96; lean_object* x_97; -lean_dec(x_53); -lean_dec(x_48); -lean_dec(x_45); -lean_dec(x_42); -lean_dec(x_9); -x_95 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; -x_96 = l_unreachable_x21___rarg(x_95); -x_97 = lean_apply_2(x_96, x_12, x_54); -return x_97; +lean_object* x_93; lean_object* x_94; lean_object* x_95; +lean_dec(x_51); +lean_dec(x_46); +lean_dec(x_43); +lean_dec(x_40); +lean_dec(x_7); +x_93 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; +x_94 = l_unreachable_x21___rarg(x_93); +x_95 = lean_apply_2(x_94, x_10, x_52); +return x_95; } case 3: { -lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; -lean_dec(x_12); -x_98 = lean_ctor_get(x_53, 0); -lean_inc(x_98); -lean_dec(x_53); -x_99 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_99, 0, x_9); -lean_ctor_set(x_99, 1, x_98); -lean_ctor_set(x_99, 2, x_45); -x_100 = lean_ctor_get(x_10, 1); -x_101 = lean_ctor_get_uint8(x_100, sizeof(void*)*2 + 3); -x_102 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_102, 0, x_99); -lean_ctor_set(x_102, 1, x_48); -lean_ctor_set_uint8(x_102, sizeof(void*)*2, x_101); -x_103 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_103, 0, x_102); -x_104 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_104, 0, x_103); -if (lean_is_scalar(x_42)) { - x_105 = lean_alloc_ctor(0, 2, 0); +lean_object* x_96; lean_object* x_97; lean_object* x_98; uint8_t x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; +lean_dec(x_10); +x_96 = lean_ctor_get(x_51, 0); +lean_inc(x_96); +lean_dec(x_51); +x_97 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_97, 0, x_7); +lean_ctor_set(x_97, 1, x_96); +lean_ctor_set(x_97, 2, x_43); +x_98 = lean_ctor_get(x_8, 1); +x_99 = lean_ctor_get_uint8(x_98, sizeof(void*)*2 + 3); +x_100 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_100, 0, x_97); +lean_ctor_set(x_100, 1, x_46); +lean_ctor_set_uint8(x_100, sizeof(void*)*2, x_99); +x_101 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_101, 0, x_100); +x_102 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_102, 0, x_101); +if (lean_is_scalar(x_40)) { + x_103 = lean_alloc_ctor(0, 2, 0); } else { - x_105 = x_42; + x_103 = x_40; } -lean_ctor_set(x_105, 0, x_104); -lean_ctor_set(x_105, 1, x_54); -return x_105; +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_52); +return x_103; } default: { -lean_object* x_106; lean_object* x_107; lean_object* x_108; uint8_t x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; -lean_dec(x_12); -x_106 = lean_ctor_get(x_53, 0); -lean_inc(x_106); -lean_dec(x_53); -x_107 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_107, 0, x_9); -lean_ctor_set(x_107, 1, x_106); -lean_ctor_set(x_107, 2, x_45); -x_108 = lean_ctor_get(x_10, 1); -x_109 = lean_ctor_get_uint8(x_108, sizeof(void*)*2 + 3); -x_110 = lean_box(1); -x_111 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_111, 0, x_107); -lean_ctor_set(x_111, 1, x_48); -lean_ctor_set(x_111, 2, x_110); -lean_ctor_set_uint8(x_111, sizeof(void*)*3, x_109); -x_112 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_112, 0, x_111); -x_113 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_113, 0, x_112); -if (lean_is_scalar(x_42)) { - x_114 = lean_alloc_ctor(0, 2, 0); +lean_object* x_104; lean_object* x_105; lean_object* x_106; uint8_t x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; +lean_dec(x_10); +x_104 = lean_ctor_get(x_51, 0); +lean_inc(x_104); +lean_dec(x_51); +x_105 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_105, 0, x_7); +lean_ctor_set(x_105, 1, x_104); +lean_ctor_set(x_105, 2, x_43); +x_106 = lean_ctor_get(x_8, 1); +x_107 = lean_ctor_get_uint8(x_106, sizeof(void*)*2 + 3); +x_108 = lean_box(1); +x_109 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_109, 0, x_105); +lean_ctor_set(x_109, 1, x_46); +lean_ctor_set(x_109, 2, x_108); +lean_ctor_set_uint8(x_109, sizeof(void*)*3, x_107); +x_110 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_110, 0, x_109); +x_111 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_111, 0, x_110); +if (lean_is_scalar(x_40)) { + x_112 = lean_alloc_ctor(0, 2, 0); } else { - x_114 = x_42; + x_112 = x_40; } -lean_ctor_set(x_114, 0, x_113); -lean_ctor_set(x_114, 1, x_54); -return x_114; +lean_ctor_set(x_112, 0, x_111); +lean_ctor_set(x_112, 1, x_52); +return x_112; } } } @@ -936,118 +945,118 @@ return x_114; } else { -uint8_t x_134; -lean_dec(x_18); -lean_dec(x_12); -lean_dec(x_9); +uint8_t x_135; +lean_dec(x_16); +lean_dec(x_10); lean_dec(x_7); -lean_dec(x_6); -x_134 = !lean_is_exclusive(x_23); -if (x_134 == 0) +lean_dec(x_5); +lean_dec(x_4); +x_135 = !lean_is_exclusive(x_21); +if (x_135 == 0) { -return x_23; +return x_21; } else { -lean_object* x_135; lean_object* x_136; lean_object* x_137; -x_135 = lean_ctor_get(x_23, 0); -x_136 = lean_ctor_get(x_23, 1); +lean_object* x_136; lean_object* x_137; lean_object* x_138; +x_136 = lean_ctor_get(x_21, 0); +x_137 = lean_ctor_get(x_21, 1); +lean_inc(x_137); lean_inc(x_136); -lean_inc(x_135); -lean_dec(x_23); -x_137 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_137, 0, x_135); -lean_ctor_set(x_137, 1, x_136); -return x_137; +lean_dec(x_21); +x_138 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_138, 0, x_136); +lean_ctor_set(x_138, 1, x_137); +return x_138; } } } else { -uint8_t x_138; -lean_dec(x_18); -lean_dec(x_12); -lean_dec(x_11); +uint8_t x_139; +lean_dec(x_16); +lean_dec(x_10); lean_dec(x_9); lean_dec(x_7); -lean_dec(x_6); -x_138 = !lean_is_exclusive(x_20); -if (x_138 == 0) +lean_dec(x_5); +lean_dec(x_4); +x_139 = !lean_is_exclusive(x_18); +if (x_139 == 0) { -return x_20; +return x_18; } else { -lean_object* x_139; lean_object* x_140; lean_object* x_141; -x_139 = lean_ctor_get(x_20, 0); -x_140 = lean_ctor_get(x_20, 1); +lean_object* x_140; lean_object* x_141; lean_object* x_142; +x_140 = lean_ctor_get(x_18, 0); +x_141 = lean_ctor_get(x_18, 1); +lean_inc(x_141); lean_inc(x_140); -lean_inc(x_139); -lean_dec(x_20); -x_141 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_141, 0, x_139); -lean_ctor_set(x_141, 1, x_140); -return x_141; +lean_dec(x_18); +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_142; -lean_dec(x_12); -lean_dec(x_11); +uint8_t x_143; +lean_dec(x_10); lean_dec(x_9); lean_dec(x_7); -lean_dec(x_6); +lean_dec(x_5); lean_dec(x_4); -lean_dec(x_2); -x_142 = !lean_is_exclusive(x_17); -if (x_142 == 0) +lean_dec(x_3); +lean_dec(x_1); +x_143 = !lean_is_exclusive(x_15); +if (x_143 == 0) { -return x_17; +return x_15; } else { -lean_object* x_143; lean_object* x_144; lean_object* x_145; -x_143 = lean_ctor_get(x_17, 0); -x_144 = lean_ctor_get(x_17, 1); +lean_object* x_144; lean_object* x_145; lean_object* x_146; +x_144 = lean_ctor_get(x_15, 0); +x_145 = lean_ctor_get(x_15, 1); +lean_inc(x_145); lean_inc(x_144); -lean_inc(x_143); -lean_dec(x_17); -x_145 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_145, 0, x_143); -lean_ctor_set(x_145, 1, x_144); -return x_145; +lean_dec(x_15); +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; } } } else { -uint8_t x_146; -lean_dec(x_12); -lean_dec(x_11); +uint8_t x_147; +lean_dec(x_10); lean_dec(x_9); lean_dec(x_7); -lean_dec(x_6); +lean_dec(x_5); lean_dec(x_4); -lean_dec(x_2); -x_146 = !lean_is_exclusive(x_14); -if (x_146 == 0) +lean_dec(x_3); +lean_dec(x_1); +x_147 = !lean_is_exclusive(x_12); +if (x_147 == 0) { -return x_14; +return x_12; } else { -lean_object* x_147; lean_object* x_148; lean_object* x_149; -x_147 = lean_ctor_get(x_14, 0); -x_148 = lean_ctor_get(x_14, 1); +lean_object* x_148; lean_object* x_149; lean_object* x_150; +x_148 = lean_ctor_get(x_12, 0); +x_149 = lean_ctor_get(x_12, 1); +lean_inc(x_149); lean_inc(x_148); -lean_inc(x_147); -lean_dec(x_14); -x_149 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_149, 0, x_147); -lean_ctor_set(x_149, 1, x_148); -return x_149; +lean_dec(x_12); +x_150 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_150, 0, x_148); +lean_ctor_set(x_150, 1, x_149); +return x_150; } } } @@ -1055,7 +1064,7 @@ return x_149; lean_object* l_Lean_Elab_Command_mkDef(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_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; x_11 = lean_ctor_get(x_1, 0); lean_inc(x_11); x_12 = lean_ctor_get(x_1, 5); @@ -1063,194 +1072,190 @@ lean_inc(x_12); lean_inc(x_7); x_13 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_13, 0, x_7); -x_14 = 1; -x_15 = lean_box(0); -lean_inc(x_9); -x_16 = l___private_Lean_Elab_SyntheticMVars_11__synthesizeSyntheticMVarsAux___main(x_14, x_15, x_9, x_10); -if (lean_obj_tag(x_16) == 0) +x_14 = !lean_is_exclusive(x_9); +if (x_14 == 0) { -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_16, 1); -lean_inc(x_17); -lean_dec(x_16); -lean_inc(x_9); -lean_inc(x_12); -x_18 = l_Lean_Elab_Term_ensureHasType(x_12, x_13, x_8, x_9, x_17); -if (lean_obj_tag(x_18) == 0) -{ -lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); -lean_inc(x_20); -lean_dec(x_18); -x_21 = 0; -lean_inc(x_9); -x_22 = l___private_Lean_Elab_SyntheticMVars_11__synthesizeSyntheticMVarsAux___main(x_21, x_15, x_9, x_20); -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; uint8_t x_28; -x_23 = lean_ctor_get(x_22, 1); +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; uint8_t x_26; uint8_t x_27; lean_object* x_28; uint8_t x_29; lean_object* x_30; lean_object* x_31; +x_15 = lean_ctor_get(x_9, 0); +x_16 = lean_ctor_get(x_9, 1); +x_17 = lean_ctor_get(x_9, 2); +x_18 = lean_ctor_get(x_9, 3); +x_19 = lean_ctor_get(x_9, 4); +x_20 = lean_ctor_get(x_9, 5); +x_21 = lean_ctor_get(x_9, 6); +x_22 = lean_ctor_get(x_9, 7); +x_23 = lean_ctor_get(x_9, 8); +x_24 = lean_ctor_get(x_9, 9); +x_25 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); +x_26 = lean_ctor_get_uint8(x_9, sizeof(void*)*11 + 1); +x_27 = lean_ctor_get_uint8(x_9, sizeof(void*)*11 + 2); +x_28 = lean_ctor_get(x_9, 10); +lean_dec(x_28); +lean_inc(x_24); lean_inc(x_23); -lean_dec(x_22); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_ctor_set(x_9, 10, x_11); +x_29 = 1; +x_30 = lean_box(0); lean_inc(x_9); -x_24 = l_Lean_Elab_Term_instantiateMVars(x_11, x_7, x_9, x_23); -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); -lean_dec(x_24); +x_31 = l___private_Lean_Elab_SyntheticMVars_11__synthesizeSyntheticMVarsAux___main(x_29, x_30, x_9, x_10); +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, 1); +lean_inc(x_32); +lean_dec(x_31); +x_33 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_33, 0, x_15); +lean_ctor_set(x_33, 1, x_16); +lean_ctor_set(x_33, 2, x_17); +lean_ctor_set(x_33, 3, x_18); +lean_ctor_set(x_33, 4, x_19); +lean_ctor_set(x_33, 5, x_20); +lean_ctor_set(x_33, 6, x_21); +lean_ctor_set(x_33, 7, x_22); +lean_ctor_set(x_33, 8, x_23); +lean_ctor_set(x_33, 9, x_24); +lean_ctor_set(x_33, 10, x_12); +lean_ctor_set_uint8(x_33, sizeof(void*)*11, x_25); +lean_ctor_set_uint8(x_33, sizeof(void*)*11 + 1, x_26); +lean_ctor_set_uint8(x_33, sizeof(void*)*11 + 2, x_27); +x_34 = l_Lean_Elab_Term_ensureHasType(x_13, x_8, x_33, x_32); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_35; lean_object* x_36; uint8_t x_37; lean_object* x_38; +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 = 0; lean_inc(x_9); -x_27 = l_Lean_Elab_Term_instantiateMVars(x_12, x_19, x_9, x_26); -x_28 = !lean_is_exclusive(x_27); -if (x_28 == 0) +x_38 = l___private_Lean_Elab_SyntheticMVars_11__synthesizeSyntheticMVarsAux___main(x_37, x_30, x_9, x_36); +if (lean_obj_tag(x_38) == 0) { -lean_object* x_29; lean_object* x_30; uint8_t x_31; uint8_t x_32; -x_29 = lean_ctor_get(x_27, 0); -x_30 = lean_ctor_get(x_27, 1); -x_31 = lean_ctor_get_uint8(x_1, sizeof(void*)*6); -x_32 = l_Lean_Elab_Command_DefKind_isExample(x_31); -if (x_32 == 0) -{ -uint8_t x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -lean_free_object(x_27); -x_33 = l_Lean_Elab_Command_DefKind_isDefOrAbbrevOrOpaque(x_31); -x_34 = lean_box(x_31); -lean_inc(x_29); -lean_inc(x_25); -lean_inc(x_6); -lean_inc(x_11); -x_35 = lean_alloc_closure((void*)(l_Lean_Elab_Command_mkDef___lambda__1___boxed), 13, 10); -lean_closure_set(x_35, 0, x_11); -lean_closure_set(x_35, 1, x_6); -lean_closure_set(x_35, 2, x_25); -lean_closure_set(x_35, 3, x_29); -lean_closure_set(x_35, 4, x_12); -lean_closure_set(x_35, 5, x_3); -lean_closure_set(x_35, 6, x_4); -lean_closure_set(x_35, 7, x_34); -lean_closure_set(x_35, 8, x_2); -lean_closure_set(x_35, 9, x_1); -x_36 = l___private_Lean_Elab_Definition_2__withUsedWhen___rarg(x_11, x_5, x_6, x_29, x_25, x_33, x_35, x_9, x_30); -lean_dec(x_6); -lean_dec(x_11); -return x_36; -} -else -{ -lean_object* x_37; -lean_dec(x_29); -lean_dec(x_25); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_37 = lean_box(0); -lean_ctor_set(x_27, 0, x_37); -return x_27; -} -} -else -{ -lean_object* x_38; lean_object* x_39; uint8_t x_40; uint8_t x_41; -x_38 = lean_ctor_get(x_27, 0); -x_39 = lean_ctor_get(x_27, 1); +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_39 = lean_ctor_get(x_38, 1); lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_27); -x_40 = lean_ctor_get_uint8(x_1, sizeof(void*)*6); -x_41 = l_Lean_Elab_Command_DefKind_isExample(x_40); -if (x_41 == 0) -{ -uint8_t x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_42 = l_Lean_Elab_Command_DefKind_isDefOrAbbrevOrOpaque(x_40); -x_43 = lean_box(x_40); -lean_inc(x_38); -lean_inc(x_25); -lean_inc(x_6); -lean_inc(x_11); -x_44 = lean_alloc_closure((void*)(l_Lean_Elab_Command_mkDef___lambda__1___boxed), 13, 10); -lean_closure_set(x_44, 0, x_11); -lean_closure_set(x_44, 1, x_6); -lean_closure_set(x_44, 2, x_25); -lean_closure_set(x_44, 3, x_38); -lean_closure_set(x_44, 4, x_12); -lean_closure_set(x_44, 5, x_3); -lean_closure_set(x_44, 6, x_4); -lean_closure_set(x_44, 7, x_43); -lean_closure_set(x_44, 8, x_2); -lean_closure_set(x_44, 9, x_1); -x_45 = l___private_Lean_Elab_Definition_2__withUsedWhen___rarg(x_11, x_5, x_6, x_38, x_25, x_42, x_44, x_9, x_39); -lean_dec(x_6); -lean_dec(x_11); -return x_45; -} -else -{ -lean_object* x_46; lean_object* x_47; lean_dec(x_38); -lean_dec(x_25); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_46 = lean_box(0); -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_39); -return x_47; -} -} -} -else +lean_inc(x_9); +x_40 = l_Lean_Elab_Term_instantiateMVars(x_7, x_9, x_39); +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); +lean_inc(x_9); +x_43 = l_Lean_Elab_Term_instantiateMVars(x_35, x_9, x_42); +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 0) { -uint8_t x_48; -lean_dec(x_19); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_9); -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); -x_48 = !lean_is_exclusive(x_22); +lean_object* x_45; lean_object* x_46; uint8_t x_47; uint8_t x_48; +x_45 = lean_ctor_get(x_43, 0); +x_46 = lean_ctor_get(x_43, 1); +x_47 = lean_ctor_get_uint8(x_1, sizeof(void*)*6); +x_48 = l_Lean_Elab_Command_DefKind_isExample(x_47); if (x_48 == 0) { -return x_22; +uint8_t x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +lean_free_object(x_43); +x_49 = l_Lean_Elab_Command_DefKind_isDefOrAbbrevOrOpaque(x_47); +x_50 = lean_box(x_47); +lean_inc(x_45); +lean_inc(x_41); +lean_inc(x_6); +x_51 = lean_alloc_closure((void*)(l_Lean_Elab_Command_mkDef___lambda__1___boxed), 11, 8); +lean_closure_set(x_51, 0, x_6); +lean_closure_set(x_51, 1, x_41); +lean_closure_set(x_51, 2, x_45); +lean_closure_set(x_51, 3, x_3); +lean_closure_set(x_51, 4, x_4); +lean_closure_set(x_51, 5, x_50); +lean_closure_set(x_51, 6, x_2); +lean_closure_set(x_51, 7, x_1); +x_52 = l___private_Lean_Elab_Definition_2__withUsedWhen___rarg(x_5, x_6, x_45, x_41, x_49, x_51, x_9, x_46); +lean_dec(x_6); +return x_52; } else { -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_22, 0); -x_50 = lean_ctor_get(x_22, 1); -lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_22); -x_51 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_51, 0, x_49); -lean_ctor_set(x_51, 1, x_50); -return x_51; +lean_object* x_53; +lean_dec(x_45); +lean_dec(x_41); +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_53 = lean_box(0); +lean_ctor_set(x_43, 0, x_53); +return x_43; +} +} +else +{ +lean_object* x_54; lean_object* x_55; uint8_t x_56; uint8_t x_57; +x_54 = lean_ctor_get(x_43, 0); +x_55 = lean_ctor_get(x_43, 1); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_43); +x_56 = lean_ctor_get_uint8(x_1, sizeof(void*)*6); +x_57 = l_Lean_Elab_Command_DefKind_isExample(x_56); +if (x_57 == 0) +{ +uint8_t x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_58 = l_Lean_Elab_Command_DefKind_isDefOrAbbrevOrOpaque(x_56); +x_59 = lean_box(x_56); +lean_inc(x_54); +lean_inc(x_41); +lean_inc(x_6); +x_60 = lean_alloc_closure((void*)(l_Lean_Elab_Command_mkDef___lambda__1___boxed), 11, 8); +lean_closure_set(x_60, 0, x_6); +lean_closure_set(x_60, 1, x_41); +lean_closure_set(x_60, 2, x_54); +lean_closure_set(x_60, 3, x_3); +lean_closure_set(x_60, 4, x_4); +lean_closure_set(x_60, 5, x_59); +lean_closure_set(x_60, 6, x_2); +lean_closure_set(x_60, 7, x_1); +x_61 = l___private_Lean_Elab_Definition_2__withUsedWhen___rarg(x_5, x_6, x_54, x_41, x_58, x_60, x_9, x_55); +lean_dec(x_6); +return x_61; +} +else +{ +lean_object* x_62; lean_object* x_63; +lean_dec(x_54); +lean_dec(x_41); +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_62 = lean_box(0); +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_55); +return x_63; } } } else { -uint8_t x_52; -lean_dec(x_12); -lean_dec(x_11); +uint8_t x_64; +lean_dec(x_35); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); @@ -1259,33 +1264,73 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_52 = !lean_is_exclusive(x_18); -if (x_52 == 0) +x_64 = !lean_is_exclusive(x_38); +if (x_64 == 0) { -return x_18; +return x_38; } else { -lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_18, 0); -x_54 = lean_ctor_get(x_18, 1); -lean_inc(x_54); -lean_inc(x_53); +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_38, 0); +x_66 = lean_ctor_get(x_38, 1); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_38); +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_9); +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); +x_68 = !lean_is_exclusive(x_34); +if (x_68 == 0) +{ +return x_34; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_34, 0); +x_70 = lean_ctor_get(x_34, 1); +lean_inc(x_70); +lean_inc(x_69); +lean_dec(x_34); +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 +{ +uint8_t x_72; +lean_dec(x_9); +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); lean_dec(x_18); -x_55 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_55, 0, x_53); -lean_ctor_set(x_55, 1, x_54); -return x_55; -} -} -} -else -{ -uint8_t x_56; +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); lean_dec(x_13); lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -1294,38 +1339,313 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_56 = !lean_is_exclusive(x_16); -if (x_56 == 0) +x_72 = !lean_is_exclusive(x_31); +if (x_72 == 0) { -return x_16; +return x_31; } else { -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_16, 0); -x_58 = lean_ctor_get(x_16, 1); -lean_inc(x_58); -lean_inc(x_57); -lean_dec(x_16); -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; +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_31, 0); +x_74 = lean_ctor_get(x_31, 1); +lean_inc(x_74); +lean_inc(x_73); +lean_dec(x_31); +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; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; uint8_t x_87; uint8_t x_88; lean_object* x_89; uint8_t x_90; lean_object* x_91; lean_object* x_92; +x_76 = lean_ctor_get(x_9, 0); +x_77 = lean_ctor_get(x_9, 1); +x_78 = lean_ctor_get(x_9, 2); +x_79 = lean_ctor_get(x_9, 3); +x_80 = lean_ctor_get(x_9, 4); +x_81 = lean_ctor_get(x_9, 5); +x_82 = lean_ctor_get(x_9, 6); +x_83 = lean_ctor_get(x_9, 7); +x_84 = lean_ctor_get(x_9, 8); +x_85 = lean_ctor_get(x_9, 9); +x_86 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); +x_87 = lean_ctor_get_uint8(x_9, sizeof(void*)*11 + 1); +x_88 = lean_ctor_get_uint8(x_9, sizeof(void*)*11 + 2); +lean_inc(x_85); +lean_inc(x_84); +lean_inc(x_83); +lean_inc(x_82); +lean_inc(x_81); +lean_inc(x_80); +lean_inc(x_79); +lean_inc(x_78); +lean_inc(x_77); +lean_inc(x_76); +lean_dec(x_9); +lean_inc(x_85); +lean_inc(x_84); +lean_inc(x_83); +lean_inc(x_82); +lean_inc(x_81); +lean_inc(x_80); +lean_inc(x_79); +lean_inc(x_78); +lean_inc(x_77); +lean_inc(x_76); +x_89 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_89, 0, x_76); +lean_ctor_set(x_89, 1, x_77); +lean_ctor_set(x_89, 2, x_78); +lean_ctor_set(x_89, 3, x_79); +lean_ctor_set(x_89, 4, x_80); +lean_ctor_set(x_89, 5, x_81); +lean_ctor_set(x_89, 6, x_82); +lean_ctor_set(x_89, 7, x_83); +lean_ctor_set(x_89, 8, x_84); +lean_ctor_set(x_89, 9, x_85); +lean_ctor_set(x_89, 10, x_11); +lean_ctor_set_uint8(x_89, sizeof(void*)*11, x_86); +lean_ctor_set_uint8(x_89, sizeof(void*)*11 + 1, x_87); +lean_ctor_set_uint8(x_89, sizeof(void*)*11 + 2, x_88); +x_90 = 1; +x_91 = lean_box(0); +lean_inc(x_89); +x_92 = l___private_Lean_Elab_SyntheticMVars_11__synthesizeSyntheticMVarsAux___main(x_90, x_91, x_89, x_10); +if (lean_obj_tag(x_92) == 0) +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_92, 1); +lean_inc(x_93); +lean_dec(x_92); +x_94 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_94, 0, x_76); +lean_ctor_set(x_94, 1, x_77); +lean_ctor_set(x_94, 2, x_78); +lean_ctor_set(x_94, 3, x_79); +lean_ctor_set(x_94, 4, x_80); +lean_ctor_set(x_94, 5, x_81); +lean_ctor_set(x_94, 6, x_82); +lean_ctor_set(x_94, 7, x_83); +lean_ctor_set(x_94, 8, x_84); +lean_ctor_set(x_94, 9, x_85); +lean_ctor_set(x_94, 10, x_12); +lean_ctor_set_uint8(x_94, sizeof(void*)*11, x_86); +lean_ctor_set_uint8(x_94, sizeof(void*)*11 + 1, x_87); +lean_ctor_set_uint8(x_94, sizeof(void*)*11 + 2, x_88); +x_95 = l_Lean_Elab_Term_ensureHasType(x_13, x_8, x_94, x_93); +if (lean_obj_tag(x_95) == 0) +{ +lean_object* x_96; lean_object* x_97; uint8_t x_98; lean_object* x_99; +x_96 = lean_ctor_get(x_95, 0); +lean_inc(x_96); +x_97 = lean_ctor_get(x_95, 1); +lean_inc(x_97); +lean_dec(x_95); +x_98 = 0; +lean_inc(x_89); +x_99 = l___private_Lean_Elab_SyntheticMVars_11__synthesizeSyntheticMVarsAux___main(x_98, x_91, x_89, x_97); +if (lean_obj_tag(x_99) == 0) +{ +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; uint8_t x_108; uint8_t x_109; +x_100 = lean_ctor_get(x_99, 1); +lean_inc(x_100); +lean_dec(x_99); +lean_inc(x_89); +x_101 = l_Lean_Elab_Term_instantiateMVars(x_7, x_89, x_100); +x_102 = lean_ctor_get(x_101, 0); +lean_inc(x_102); +x_103 = lean_ctor_get(x_101, 1); +lean_inc(x_103); +lean_dec(x_101); +lean_inc(x_89); +x_104 = l_Lean_Elab_Term_instantiateMVars(x_96, x_89, x_103); +x_105 = lean_ctor_get(x_104, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_104, 1); +lean_inc(x_106); +if (lean_is_exclusive(x_104)) { + lean_ctor_release(x_104, 0); + lean_ctor_release(x_104, 1); + x_107 = x_104; +} else { + lean_dec_ref(x_104); + x_107 = lean_box(0); +} +x_108 = lean_ctor_get_uint8(x_1, sizeof(void*)*6); +x_109 = l_Lean_Elab_Command_DefKind_isExample(x_108); +if (x_109 == 0) +{ +uint8_t x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; +lean_dec(x_107); +x_110 = l_Lean_Elab_Command_DefKind_isDefOrAbbrevOrOpaque(x_108); +x_111 = lean_box(x_108); +lean_inc(x_105); +lean_inc(x_102); +lean_inc(x_6); +x_112 = lean_alloc_closure((void*)(l_Lean_Elab_Command_mkDef___lambda__1___boxed), 11, 8); +lean_closure_set(x_112, 0, x_6); +lean_closure_set(x_112, 1, x_102); +lean_closure_set(x_112, 2, x_105); +lean_closure_set(x_112, 3, x_3); +lean_closure_set(x_112, 4, x_4); +lean_closure_set(x_112, 5, x_111); +lean_closure_set(x_112, 6, x_2); +lean_closure_set(x_112, 7, x_1); +x_113 = l___private_Lean_Elab_Definition_2__withUsedWhen___rarg(x_5, x_6, x_105, x_102, x_110, x_112, x_89, x_106); +lean_dec(x_6); +return x_113; +} +else +{ +lean_object* x_114; lean_object* x_115; +lean_dec(x_105); +lean_dec(x_102); +lean_dec(x_89); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_114 = lean_box(0); +if (lean_is_scalar(x_107)) { + x_115 = lean_alloc_ctor(0, 2, 0); +} else { + x_115 = x_107; +} +lean_ctor_set(x_115, 0, x_114); +lean_ctor_set(x_115, 1, x_106); +return x_115; +} +} +else +{ +lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; +lean_dec(x_96); +lean_dec(x_89); +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); +x_116 = lean_ctor_get(x_99, 0); +lean_inc(x_116); +x_117 = lean_ctor_get(x_99, 1); +lean_inc(x_117); +if (lean_is_exclusive(x_99)) { + lean_ctor_release(x_99, 0); + lean_ctor_release(x_99, 1); + x_118 = x_99; +} else { + lean_dec_ref(x_99); + x_118 = lean_box(0); +} +if (lean_is_scalar(x_118)) { + x_119 = lean_alloc_ctor(1, 2, 0); +} else { + x_119 = x_118; +} +lean_ctor_set(x_119, 0, x_116); +lean_ctor_set(x_119, 1, x_117); +return x_119; +} +} +else +{ +lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; +lean_dec(x_89); +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); +x_120 = lean_ctor_get(x_95, 0); +lean_inc(x_120); +x_121 = lean_ctor_get(x_95, 1); +lean_inc(x_121); +if (lean_is_exclusive(x_95)) { + lean_ctor_release(x_95, 0); + lean_ctor_release(x_95, 1); + x_122 = x_95; +} else { + lean_dec_ref(x_95); + x_122 = lean_box(0); +} +if (lean_is_scalar(x_122)) { + x_123 = lean_alloc_ctor(1, 2, 0); +} else { + x_123 = x_122; +} +lean_ctor_set(x_123, 0, x_120); +lean_ctor_set(x_123, 1, x_121); +return x_123; +} +} +else +{ +lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; +lean_dec(x_89); +lean_dec(x_85); +lean_dec(x_84); +lean_dec(x_83); +lean_dec(x_82); +lean_dec(x_81); +lean_dec(x_80); +lean_dec(x_79); +lean_dec(x_78); +lean_dec(x_77); +lean_dec(x_76); +lean_dec(x_13); +lean_dec(x_12); +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); +x_124 = lean_ctor_get(x_92, 0); +lean_inc(x_124); +x_125 = lean_ctor_get(x_92, 1); +lean_inc(x_125); +if (lean_is_exclusive(x_92)) { + lean_ctor_release(x_92, 0); + lean_ctor_release(x_92, 1); + x_126 = x_92; +} else { + lean_dec_ref(x_92); + x_126 = lean_box(0); +} +if (lean_is_scalar(x_126)) { + x_127 = lean_alloc_ctor(1, 2, 0); +} else { + x_127 = x_126; +} +lean_ctor_set(x_127, 0, x_124); +lean_ctor_set(x_127, 1, x_125); +return x_127; } } } } -lean_object* l_Lean_Elab_Command_mkDef___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* l_Lean_Elab_Command_mkDef___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) { _start: { -uint8_t x_14; lean_object* x_15; -x_14 = lean_unbox(x_8); +uint8_t x_12; lean_object* x_13; +x_12 = lean_unbox(x_6); +lean_dec(x_6); +x_13 = l_Lean_Elab_Command_mkDef___lambda__1(x_1, x_2, x_3, x_4, x_5, x_12, x_7, x_8, x_9, x_10, x_11); lean_dec(x_8); -x_15 = l_Lean_Elab_Command_mkDef___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_14, x_9, x_10, x_11, x_12, x_13); -lean_dec(x_10); -lean_dec(x_5); -lean_dec(x_1); -return x_15; +return x_13; } } lean_object* _init_l_Lean_Elab_Command_elabDefVal___closed__1() { @@ -1383,7 +1703,7 @@ else { lean_object* x_11; lean_object* x_12; x_11 = l_Lean_Elab_Command_elabDefVal___closed__3; -x_12 = l_Lean_Elab_Term_throwError___rarg(x_1, x_11, x_3, x_4); +x_12 = l_Lean_Elab_Term_throwErrorAt___rarg(x_1, x_11, x_3, x_4); lean_dec(x_1); return x_12; } @@ -1398,7 +1718,7 @@ lean_dec(x_1); x_15 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_15, 0, x_2); x_16 = 1; -x_17 = l_Lean_Elab_Term_elabTermAux___main(x_15, x_16, x_16, x_14, x_3, x_4); +x_17 = l_Lean_Elab_Term_elabTerm(x_14, x_15, x_16, x_3, x_4); return x_17; } } @@ -1455,204 +1775,237 @@ return x_18; } } } -lean_object* l_Lean_Elab_Command_elabDefLike___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* l_Lean_Elab_Command_elabDefLike___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_11; -x_11 = lean_ctor_get(x_1, 4); +lean_object* x_10; +x_10 = lean_ctor_get(x_1, 4); +lean_inc(x_10); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; uint8_t x_22; uint8_t x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_11 = lean_ctor_get(x_8, 0); lean_inc(x_11); -if (lean_obj_tag(x_11) == 0) -{ -uint8_t x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_12 = 0; -x_13 = lean_box(0); -lean_inc(x_9); -x_14 = l_Lean_Elab_Term_mkFreshTypeMVar(x_2, x_12, x_13, x_9, x_10); -x_15 = lean_ctor_get(x_14, 0); +x_12 = lean_ctor_get(x_8, 1); +lean_inc(x_12); +x_13 = lean_ctor_get(x_8, 2); +lean_inc(x_13); +x_14 = lean_ctor_get(x_8, 3); +lean_inc(x_14); +x_15 = lean_ctor_get(x_8, 4); lean_inc(x_15); -x_16 = lean_ctor_get(x_14, 1); +x_16 = lean_ctor_get(x_8, 5); lean_inc(x_16); -lean_dec(x_14); -x_17 = lean_ctor_get(x_1, 5); +x_17 = lean_ctor_get(x_8, 6); lean_inc(x_17); -lean_inc(x_9); -lean_inc(x_15); -x_18 = l_Lean_Elab_Command_elabDefVal(x_17, x_15, x_9, x_16); -if (lean_obj_tag(x_18) == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_18, 0); +x_18 = lean_ctor_get(x_8, 7); +lean_inc(x_18); +x_19 = lean_ctor_get(x_8, 8); lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); +x_20 = lean_ctor_get(x_8, 9); lean_inc(x_20); -lean_dec(x_18); -x_21 = l_Lean_Elab_Command_mkDef(x_1, x_3, x_4, x_5, x_6, x_8, x_15, x_19, x_9, x_20); -return x_21; -} -else -{ -uint8_t x_22; -lean_dec(x_15); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_22 = !lean_is_exclusive(x_18); -if (x_22 == 0) -{ -return x_18; -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_18, 0); -x_24 = lean_ctor_get(x_18, 1); -lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_18); -x_25 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_25, 0, x_23); -lean_ctor_set(x_25, 1, x_24); -return x_25; -} -} -} -else -{ -lean_object* x_26; lean_object* x_27; -x_26 = lean_ctor_get(x_11, 0); -lean_inc(x_26); -lean_dec(x_11); -lean_inc(x_9); -lean_inc(x_26); -x_27 = l_Lean_Elab_Term_elabType(x_26, x_9, x_10); -if (lean_obj_tag(x_27) == 0) -{ -lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; +x_21 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); +x_22 = lean_ctor_get_uint8(x_8, sizeof(void*)*11 + 1); +x_23 = lean_ctor_get_uint8(x_8, sizeof(void*)*11 + 2); +x_24 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_24, 0, x_11); +lean_ctor_set(x_24, 1, x_12); +lean_ctor_set(x_24, 2, x_13); +lean_ctor_set(x_24, 3, x_14); +lean_ctor_set(x_24, 4, x_15); +lean_ctor_set(x_24, 5, x_16); +lean_ctor_set(x_24, 6, x_17); +lean_ctor_set(x_24, 7, x_18); +lean_ctor_set(x_24, 8, x_19); +lean_ctor_set(x_24, 9, x_20); +lean_ctor_set(x_24, 10, x_2); +lean_ctor_set_uint8(x_24, sizeof(void*)*11, x_21); +lean_ctor_set_uint8(x_24, sizeof(void*)*11 + 1, x_22); +lean_ctor_set_uint8(x_24, sizeof(void*)*11 + 2, x_23); +x_25 = 0; +x_26 = lean_box(0); +x_27 = l_Lean_Elab_Term_mkFreshTypeMVar(x_25, x_26, x_24, x_9); x_28 = lean_ctor_get(x_27, 0); lean_inc(x_28); x_29 = lean_ctor_get(x_27, 1); lean_inc(x_29); lean_dec(x_27); -x_30 = 0; -x_31 = lean_box(0); -lean_inc(x_9); -x_32 = l___private_Lean_Elab_SyntheticMVars_11__synthesizeSyntheticMVarsAux___main(x_30, x_31, x_9, x_29); -if (lean_obj_tag(x_32) == 0) -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; uint8_t x_38; lean_object* x_39; lean_object* x_40; -x_33 = lean_ctor_get(x_32, 1); -lean_inc(x_33); -lean_dec(x_32); -lean_inc(x_9); -x_34 = l_Lean_Elab_Term_instantiateMVars(x_26, x_28, x_9, x_33); -lean_dec(x_26); -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_ctor_get_uint8(x_1, sizeof(void*)*6); -x_38 = l_Lean_Elab_Command_DefKind_isTheorem(x_37); +x_30 = lean_ctor_get(x_1, 5); +lean_inc(x_30); lean_inc(x_8); -lean_inc(x_35); -x_39 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabDefLike___lambda__1), 9, 6); -lean_closure_set(x_39, 0, x_1); -lean_closure_set(x_39, 1, x_35); -lean_closure_set(x_39, 2, x_3); -lean_closure_set(x_39, 3, x_4); -lean_closure_set(x_39, 4, x_5); -lean_closure_set(x_39, 5, x_8); -x_40 = l___private_Lean_Elab_Definition_3__withUsedWhen_x27___rarg(x_7, x_6, x_8, x_35, x_38, x_39, x_9, x_36); +lean_inc(x_28); +x_31 = l_Lean_Elab_Command_elabDefVal(x_30, x_28, x_8, x_29); +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); +x_34 = l_Lean_Elab_Command_mkDef(x_1, x_3, x_4, x_5, x_6, x_7, x_28, x_32, x_8, x_33); +return x_34; +} +else +{ +uint8_t x_35; +lean_dec(x_28); 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_1); +x_35 = !lean_is_exclusive(x_31); +if (x_35 == 0) +{ +return x_31; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_31, 0); +x_37 = lean_ctor_get(x_31, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_31); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +return x_38; +} +} +} +else +{ +lean_object* x_39; lean_object* x_40; +lean_dec(x_2); +x_39 = lean_ctor_get(x_10, 0); +lean_inc(x_39); +lean_dec(x_10); +lean_inc(x_8); +x_40 = l_Lean_Elab_Term_elabType(x_39, x_8, x_9); +if (lean_obj_tag(x_40) == 0) +{ +lean_object* x_41; lean_object* x_42; uint8_t x_43; lean_object* x_44; lean_object* x_45; +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_43 = 0; +x_44 = lean_box(0); +lean_inc(x_8); +x_45 = l___private_Lean_Elab_SyntheticMVars_11__synthesizeSyntheticMVarsAux___main(x_43, x_44, x_8, x_42); +if (lean_obj_tag(x_45) == 0) +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; uint8_t x_51; lean_object* x_52; lean_object* x_53; +x_46 = lean_ctor_get(x_45, 1); +lean_inc(x_46); +lean_dec(x_45); +lean_inc(x_8); +x_47 = l_Lean_Elab_Term_instantiateMVars(x_41, x_8, x_46); +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); +x_50 = lean_ctor_get_uint8(x_1, sizeof(void*)*6); +x_51 = l_Lean_Elab_Command_DefKind_isTheorem(x_50); +lean_inc(x_7); +lean_inc(x_48); +x_52 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabDefLike___lambda__1), 9, 6); +lean_closure_set(x_52, 0, x_1); +lean_closure_set(x_52, 1, x_48); +lean_closure_set(x_52, 2, x_3); +lean_closure_set(x_52, 3, x_4); +lean_closure_set(x_52, 4, x_5); +lean_closure_set(x_52, 5, x_7); +x_53 = l___private_Lean_Elab_Definition_3__withUsedWhen_x27___rarg(x_6, x_7, x_48, x_51, x_52, x_8, x_49); +lean_dec(x_7); +return x_53; +} +else +{ +uint8_t x_54; +lean_dec(x_41); +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_1); +x_54 = !lean_is_exclusive(x_45); +if (x_54 == 0) +{ +return x_45; +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_45, 0); +x_56 = lean_ctor_get(x_45, 1); +lean_inc(x_56); +lean_inc(x_55); +lean_dec(x_45); +x_57 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_56); +return x_57; +} +} +} +else +{ +uint8_t x_58; +lean_dec(x_8); +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_58 = !lean_is_exclusive(x_40); +if (x_58 == 0) +{ return x_40; } else { -uint8_t x_41; -lean_dec(x_28); -lean_dec(x_26); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_41 = !lean_is_exclusive(x_32); -if (x_41 == 0) -{ -return x_32; -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_32, 0); -x_43 = lean_ctor_get(x_32, 1); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_32); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -return x_44; -} -} -} -else -{ -uint8_t x_45; -lean_dec(x_26); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_45 = !lean_is_exclusive(x_27); -if (x_45 == 0) -{ -return x_27; -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_27, 0); -x_47 = lean_ctor_get(x_27, 1); -lean_inc(x_47); -lean_inc(x_46); -lean_dec(x_27); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_40, 0); +x_60 = lean_ctor_get(x_40, 1); +lean_inc(x_60); +lean_inc(x_59); +lean_dec(x_40); +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_60); +return x_61; } } } } } -lean_object* l_Lean_Elab_Command_elabDefLike___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* l_Lean_Elab_Command_elabDefLike___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) { _start: { -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_9 = lean_ctor_get(x_1, 3); -lean_inc(x_9); -x_10 = l_Lean_Syntax_getArgs(x_9); -x_11 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabDefLike___lambda__2___boxed), 10, 7); -lean_closure_set(x_11, 0, x_1); -lean_closure_set(x_11, 1, x_9); -lean_closure_set(x_11, 2, x_2); -lean_closure_set(x_11, 3, x_3); -lean_closure_set(x_11, 4, x_4); -lean_closure_set(x_11, 5, x_6); -lean_closure_set(x_11, 6, x_5); -x_12 = l_Lean_Elab_Term_elabBinders___rarg(x_10, x_11, x_7, x_8); -lean_dec(x_10); -return x_12; +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_8 = lean_ctor_get(x_1, 3); +lean_inc(x_8); +x_9 = l_Lean_Syntax_getArgs(x_8); +x_10 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabDefLike___lambda__2), 9, 6); +lean_closure_set(x_10, 0, x_1); +lean_closure_set(x_10, 1, x_8); +lean_closure_set(x_10, 2, x_2); +lean_closure_set(x_10, 3, x_3); +lean_closure_set(x_10, 4, x_4); +lean_closure_set(x_10, 5, x_5); +x_11 = l_Lean_Elab_Term_elabBinders___rarg(x_9, x_10, x_6, x_7); +lean_dec(x_9); +return x_11; } } lean_object* l_Lean_Elab_Command_elabDefLike___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { @@ -1705,14 +2058,12 @@ lean_dec(x_46); lean_inc(x_10); x_49 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_49, 0, x_10); -lean_inc(x_3); lean_inc(x_10); -x_50 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabDefLike___lambda__3), 8, 5); +x_50 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabDefLike___lambda__3), 7, 4); lean_closure_set(x_50, 0, x_1); lean_closure_set(x_50, 1, x_10); lean_closure_set(x_50, 2, x_4); lean_closure_set(x_50, 3, x_47); -lean_closure_set(x_50, 4, x_3); lean_inc(x_6); x_51 = l___private_Lean_Elab_Command_2__getState(x_6, x_48); if (lean_obj_tag(x_51) == 0) @@ -1801,7 +2152,6 @@ lean_dec(x_13); lean_dec(x_12); lean_dec(x_10); lean_dec(x_6); -lean_dec(x_3); x_76 = !lean_is_exclusive(x_74); if (x_76 == 0) { @@ -1859,7 +2209,6 @@ lean_dec(x_13); lean_dec(x_12); lean_dec(x_10); lean_dec(x_6); -lean_dec(x_3); x_86 = lean_ctor_get(x_84, 0); lean_inc(x_86); x_87 = lean_ctor_get(x_84, 1); @@ -1892,7 +2241,6 @@ lean_dec(x_13); lean_dec(x_12); lean_dec(x_10); lean_dec(x_6); -lean_dec(x_3); x_90 = !lean_is_exclusive(x_63); if (x_90 == 0) { @@ -1924,7 +2272,6 @@ lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_dec(x_13); lean_dec(x_12); lean_dec(x_10); -lean_dec(x_3); x_95 = lean_ctor_get(x_60, 1); lean_inc(x_95); lean_dec(x_60); @@ -2135,7 +2482,6 @@ lean_dec(x_13); lean_dec(x_12); lean_dec(x_10); lean_dec(x_6); -lean_dec(x_3); x_138 = !lean_is_exclusive(x_135); if (x_138 == 0) { @@ -2168,7 +2514,6 @@ lean_dec(x_13); lean_dec(x_12); lean_dec(x_10); lean_dec(x_6); -lean_dec(x_3); x_142 = !lean_is_exclusive(x_55); if (x_142 == 0) { @@ -2198,7 +2543,6 @@ lean_dec(x_13); lean_dec(x_12); lean_dec(x_10); lean_dec(x_6); -lean_dec(x_3); x_146 = !lean_is_exclusive(x_51); if (x_146 == 0) { @@ -2227,7 +2571,6 @@ lean_dec(x_12); lean_dec(x_10); lean_dec(x_6); lean_dec(x_4); -lean_dec(x_3); lean_dec(x_1); x_150 = !lean_is_exclusive(x_46); if (x_150 == 0) @@ -2257,7 +2600,6 @@ lean_dec(x_12); lean_dec(x_10); lean_dec(x_6); lean_dec(x_4); -lean_dec(x_3); lean_dec(x_1); x_154 = !lean_is_exclusive(x_44); if (x_154 == 0) @@ -2286,7 +2628,6 @@ lean_object* x_16; lean_object* x_17; lean_dec(x_13); lean_dec(x_10); lean_dec(x_6); -lean_dec(x_3); x_16 = lean_box(0); if (lean_is_scalar(x_12)) { x_17 = lean_alloc_ctor(0, 2, 0); @@ -2305,7 +2646,7 @@ x_18 = lean_ctor_get(x_14, 0); lean_inc(x_18); lean_dec(x_14); lean_inc(x_6); -x_19 = l_Lean_Elab_Command_addDecl(x_3, x_18, x_6, x_15); +x_19 = l_Lean_Elab_Command_addDecl(x_18, x_6, x_15); if (lean_obj_tag(x_19) == 0) { lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; @@ -2324,7 +2665,7 @@ x_24 = lean_ctor_get(x_23, 1); lean_inc(x_24); lean_dec(x_23); lean_inc(x_6); -x_25 = l_Lean_Elab_Command_compileDecl(x_3, x_18, x_6, x_24); +x_25 = l_Lean_Elab_Command_compileDecl(x_18, x_6, x_24); lean_dec(x_18); if (lean_obj_tag(x_25) == 0) { @@ -2335,7 +2676,6 @@ lean_dec(x_25); x_27 = 1; x_28 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_3, x_10, x_27, x_13, x_22, x_6, x_26); lean_dec(x_13); -lean_dec(x_3); return x_28; } else @@ -2344,7 +2684,6 @@ uint8_t x_29; lean_dec(x_13); lean_dec(x_10); lean_dec(x_6); -lean_dec(x_3); x_29 = !lean_is_exclusive(x_25); if (x_29 == 0) { @@ -2372,7 +2711,6 @@ lean_dec(x_18); lean_dec(x_13); lean_dec(x_10); lean_dec(x_6); -lean_dec(x_3); x_33 = !lean_is_exclusive(x_23); if (x_33 == 0) { @@ -2400,7 +2738,6 @@ lean_dec(x_18); lean_dec(x_13); lean_dec(x_10); lean_dec(x_6); -lean_dec(x_3); x_37 = !lean_is_exclusive(x_19); if (x_37 == 0) { @@ -2429,7 +2766,6 @@ uint8_t x_158; lean_dec(x_8); lean_dec(x_6); lean_dec(x_4); -lean_dec(x_3); lean_dec(x_1); x_158 = !lean_is_exclusive(x_9); if (x_158 == 0) @@ -2507,21 +2843,12 @@ return x_14; } } } -lean_object* l_Lean_Elab_Command_elabDefLike___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) { -_start: -{ -lean_object* x_11; -x_11 = l_Lean_Elab_Command_elabDefLike___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_7); -lean_dec(x_2); -return x_11; -} -} lean_object* l_Lean_Elab_Command_elabDefLike___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; x_8 = l_Lean_Elab_Command_elabDefLike___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_3); lean_dec(x_2); return x_8; } diff --git a/stage0/stdlib/Lean/Elab/DoNotation.c b/stage0/stdlib/Lean/Elab/DoNotation.c index ff8ded4430..535fca2da4 100644 --- a/stage0/stdlib/Lean/Elab/DoNotation.c +++ b/stage0/stdlib/Lean/Elab/DoNotation.c @@ -14,16 +14,17 @@ extern "C" { #endif lean_object* l___private_Lean_Elab_DoNotation_2__extractBind___closed__3; -lean_object* l_Lean_Elab_Term_mkAppM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkAppM(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getEnv___rarg(lean_object*); lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_throwErrorAt___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); -lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at___private_Lean_Elab_DoNotation_10__mkBind___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_DoNotation_2__extractBind(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at___private_Lean_Elab_DoNotation_10__mkBind___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_DoNotation_2__extractBind(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_DoNotation_5__expandLiftMethodAux(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_back___at___private_Lean_Elab_DoNotation_10__mkBind___spec__1___boxed(lean_object*); extern lean_object* l_Lean_MessageData_ofList___closed__3; -lean_object* l_Lean_Elab_Term_inferType(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_inferType(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_DoNotation_11__processDoElemsAux___main___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___private_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__2; uint8_t lean_name_eq(lean_object*, lean_object*); @@ -42,18 +43,18 @@ lean_object* l___private_Lean_Elab_DoNotation_3__getDoElems___boxed(lean_object* uint8_t l___private_Lean_Elab_DoNotation_4__hasLiftMethod(lean_object*); lean_object* l___private_Lean_Elab_DoNotation_3__getDoElems(lean_object*); extern lean_object* l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; -lean_object* l_Lean_Elab_Term_getDecLevel(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_getDecLevel(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_ProcessedDoElem_inhabited___closed__1; extern lean_object* l_Lean_Parser_Term_liftMethod___elambda__1___closed__2; lean_object* l___private_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__1; -lean_object* l_Lean_Elab_Term_mkLambda(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkLambda(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_DoNotation_4__hasLiftMethod___main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__4; lean_object* l_Lean_Expr_getAppFn___main(lean_object*); -lean_object* l_Lean_Elab_Term_synthesizeInst(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_synthesizeInst(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_DoNotation_1__mkIdBindFor___closed__3; lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_do___elambda__1___closed__2; @@ -61,10 +62,10 @@ uint8_t l___private_Lean_Elab_DoNotation_4__hasLiftMethod___main(lean_object*); extern lean_object* l_Lean_Elab_Term_expandCDot_x3f___closed__4; lean_object* lean_nat_add(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_matchDiscr___elambda__1___closed__2; -lean_object* l_Lean_Elab_Term_ensureHasType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at___private_Lean_Elab_DoNotation_10__mkBind___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_DoNotation_1__mkIdBindFor(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_whnf(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_ensureHasType(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at___private_Lean_Elab_DoNotation_10__mkBind___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_DoNotation_1__mkIdBindFor(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_whnf(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getOptions(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__3; extern lean_object* l_Lean_mkTermIdFromIdent___closed__2; @@ -77,33 +78,33 @@ lean_object* l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(lean_object*, lean_object* lean_object* lean_array_fget(lean_object*, lean_object*); extern lean_object* l_Lean_Expr_Inhabited___closed__1; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_getLevel(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_getLevel(lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(lean_object*); lean_object* l___private_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__4; extern lean_object* l___private_Lean_Elab_Term_5__expandCDot___main___closed__3; lean_object* l___private_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__5; extern lean_object* l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__3; +lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_DoNotation_10__mkBind(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_DoNotation_10__mkBind(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__5; extern lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__6; extern lean_object* l_Lean_Parser_Term_doId___elambda__1___closed__2; lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_DoNotation_10__mkBind___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_DoNotation_10__mkBind___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Term_5__expandCDot___main___closed__2; extern lean_object* l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__7; -lean_object* l_Lean_Elab_Term_elabTermAux___main(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_logTrace(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_throwError___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_throwError___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getCurrMacroScope(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandOptType(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_withLocalDecl___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_withLocalDecl___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_DoNotation_11__processDoElemsAux___main___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_DoNotation_11__processDoElemsAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_DoNotation_13__regTraceClasses(lean_object*); -lean_object* l___private_Lean_Elab_DoNotation_9__extractTypeFormerAppArg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_DoNotation_9__extractTypeFormerAppArg(lean_object*, lean_object*, lean_object*); uint8_t l_Array_isEmpty___rarg(lean_object*); lean_object* l___private_Lean_Elab_DoNotation_8__expandDoElems(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_let___elambda__1___closed__2; @@ -134,8 +135,8 @@ lean_object* l___private_Lean_Elab_DoNotation_2__extractBind___closed__1; extern lean_object* l_Std_PersistentHashMap_mkCollisionNode___rarg___closed__1; extern lean_object* l_Lean_Elab_Term_quoteAutoTactic___main___closed__2; lean_object* l___private_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; +lean_object* l_Lean_Elab_Term_getCurrRef(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabDo(lean_object*); -lean_object* l___private_Lean_Elab_DoNotation_2__extractBind___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__1; lean_object* l___private_Lean_Elab_DoNotation_1__mkIdBindFor___closed__1; extern lean_object* l_Lean_Elab_Term_quoteAutoTactic___main___closed__7; @@ -152,7 +153,6 @@ lean_object* l___private_Lean_Elab_DoNotation_5__expandLiftMethodAux___main(lean lean_object* lean_array_pop(lean_object*); lean_object* l___private_Lean_Elab_DoNotation_7__expandDoElemsAux___main(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__2; -lean_object* l___private_Lean_Elab_DoNotation_1__mkIdBindFor___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabDo(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_DoNotation_1__mkIdBindFor___closed__4; @@ -167,7 +167,6 @@ lean_object* l___private_Lean_Elab_DoNotation_7__expandDoElemsAux___main___boxed lean_object* l___private_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__2; lean_object* l___private_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__3; lean_object* l___private_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__6; -lean_object* l___private_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_indentExpr(lean_object*); lean_object* l___private_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__1; @@ -211,95 +210,86 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l___private_Lean_Elab_DoNotation_1__mkIdBindFor(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_DoNotation_1__mkIdBindFor(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; -lean_inc(x_2); -x_5 = l_Lean_Elab_Term_getLevel(x_1, x_2, x_3, x_4); -if (lean_obj_tag(x_5) == 0) +lean_object* x_4; +lean_inc(x_1); +x_4 = l_Lean_Elab_Term_getLevel(x_1, x_2, x_3); +if (lean_obj_tag(x_4) == 0) { -uint8_t x_6; -x_6 = !lean_is_exclusive(x_5); -if (x_6 == 0) +uint8_t x_5; +x_5 = !lean_is_exclusive(x_4); +if (x_5 == 0) { -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; -x_7 = lean_ctor_get(x_5, 0); -x_8 = lean_box(0); -x_9 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_9, 0, x_7); -lean_ctor_set(x_9, 1, x_8); -x_10 = l___private_Lean_Elab_DoNotation_1__mkIdBindFor___closed__2; -lean_inc(x_9); -x_11 = l_Lean_mkConst(x_10, x_9); -x_12 = l___private_Lean_Elab_DoNotation_1__mkIdBindFor___closed__4; -x_13 = l_Lean_mkConst(x_12, x_9); -x_14 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_14, 0, x_11); -lean_ctor_set(x_14, 1, x_2); -lean_ctor_set(x_14, 2, x_13); -lean_ctor_set(x_5, 0, x_14); -return x_5; +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_6 = lean_ctor_get(x_4, 0); +x_7 = lean_box(0); +x_8 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_8, 0, x_6); +lean_ctor_set(x_8, 1, x_7); +x_9 = l___private_Lean_Elab_DoNotation_1__mkIdBindFor___closed__2; +lean_inc(x_8); +x_10 = l_Lean_mkConst(x_9, x_8); +x_11 = l___private_Lean_Elab_DoNotation_1__mkIdBindFor___closed__4; +x_12 = l_Lean_mkConst(x_11, x_8); +x_13 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_13, 0, x_10); +lean_ctor_set(x_13, 1, x_1); +lean_ctor_set(x_13, 2, x_12); +lean_ctor_set(x_4, 0, x_13); +return x_4; } 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_object* x_24; -x_15 = lean_ctor_get(x_5, 0); -x_16 = lean_ctor_get(x_5, 1); -lean_inc(x_16); +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; lean_object* x_23; +x_14 = lean_ctor_get(x_4, 0); +x_15 = lean_ctor_get(x_4, 1); lean_inc(x_15); -lean_dec(x_5); -x_17 = lean_box(0); -x_18 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_18, 0, x_15); -lean_ctor_set(x_18, 1, x_17); -x_19 = l___private_Lean_Elab_DoNotation_1__mkIdBindFor___closed__2; -lean_inc(x_18); -x_20 = l_Lean_mkConst(x_19, x_18); -x_21 = l___private_Lean_Elab_DoNotation_1__mkIdBindFor___closed__4; -x_22 = l_Lean_mkConst(x_21, x_18); -x_23 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_23, 0, x_20); -lean_ctor_set(x_23, 1, x_2); -lean_ctor_set(x_23, 2, x_22); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_16); -return x_24; +lean_inc(x_14); +lean_dec(x_4); +x_16 = lean_box(0); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_14); +lean_ctor_set(x_17, 1, x_16); +x_18 = l___private_Lean_Elab_DoNotation_1__mkIdBindFor___closed__2; +lean_inc(x_17); +x_19 = l_Lean_mkConst(x_18, x_17); +x_20 = l___private_Lean_Elab_DoNotation_1__mkIdBindFor___closed__4; +x_21 = l_Lean_mkConst(x_20, x_17); +x_22 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_22, 0, x_19); +lean_ctor_set(x_22, 1, x_1); +lean_ctor_set(x_22, 2, 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_15); +return x_23; } } else { -uint8_t x_25; -lean_dec(x_2); -x_25 = !lean_is_exclusive(x_5); -if (x_25 == 0) -{ -return x_5; -} -else -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_5, 0); -x_27 = lean_ctor_get(x_5, 1); -lean_inc(x_27); -lean_inc(x_26); -lean_dec(x_5); -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; -} -} -} -} -lean_object* l___private_Lean_Elab_DoNotation_1__mkIdBindFor___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l___private_Lean_Elab_DoNotation_1__mkIdBindFor(x_1, x_2, x_3, x_4); +uint8_t x_24; lean_dec(x_1); -return x_5; +x_24 = !lean_is_exclusive(x_4); +if (x_24 == 0) +{ +return x_4; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_4, 0); +x_26 = lean_ctor_get(x_4, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_4); +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* _init_l___private_Lean_Elab_DoNotation_2__extractBind___closed__1() { @@ -330,74 +320,77 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_DoNotation_2__extractBind(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_DoNotation_2__extractBind(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -if (lean_obj_tag(x_2) == 0) +if (lean_obj_tag(x_1) == 0) { -lean_object* x_5; lean_object* x_6; -x_5 = l___private_Lean_Elab_DoNotation_2__extractBind___closed__3; -x_6 = l_Lean_Elab_Term_throwError___rarg(x_1, x_5, x_3, x_4); -return x_6; +lean_object* x_4; lean_object* x_5; +x_4 = l___private_Lean_Elab_DoNotation_2__extractBind___closed__3; +x_5 = l_Lean_Elab_Term_throwError___rarg(x_4, x_2, x_3); +return x_5; } else { -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* x_18; uint8_t x_19; -x_7 = lean_ctor_get(x_3, 0); +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; uint8_t x_19; uint8_t x_20; lean_object* x_21; uint8_t x_22; +x_6 = lean_ctor_get(x_2, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_6, 0); lean_inc(x_7); -x_8 = lean_ctor_get(x_7, 0); +x_8 = lean_ctor_get(x_1, 0); lean_inc(x_8); -x_9 = lean_ctor_get(x_2, 0); +lean_dec(x_1); +x_9 = lean_ctor_get(x_2, 1); lean_inc(x_9); -lean_dec(x_2); -x_10 = lean_ctor_get(x_3, 1); +x_10 = lean_ctor_get(x_2, 2); lean_inc(x_10); -x_11 = lean_ctor_get(x_3, 2); +x_11 = lean_ctor_get(x_2, 3); lean_inc(x_11); -x_12 = lean_ctor_get(x_3, 3); +x_12 = lean_ctor_get(x_2, 4); lean_inc(x_12); -x_13 = lean_ctor_get(x_3, 4); +x_13 = lean_ctor_get(x_2, 5); lean_inc(x_13); -x_14 = lean_ctor_get(x_3, 5); +x_14 = lean_ctor_get(x_2, 6); lean_inc(x_14); -x_15 = lean_ctor_get(x_3, 6); +x_15 = lean_ctor_get(x_2, 7); lean_inc(x_15); -x_16 = lean_ctor_get(x_3, 7); +x_16 = lean_ctor_get(x_2, 8); lean_inc(x_16); -x_17 = lean_ctor_get(x_3, 8); +x_17 = lean_ctor_get(x_2, 9); lean_inc(x_17); -x_18 = lean_ctor_get(x_3, 9); -lean_inc(x_18); -x_19 = !lean_is_exclusive(x_7); -if (x_19 == 0) +x_18 = lean_ctor_get_uint8(x_2, sizeof(void*)*11); +x_19 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 1); +x_20 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 2); +x_21 = lean_ctor_get(x_2, 10); +lean_inc(x_21); +x_22 = !lean_is_exclusive(x_6); +if (x_22 == 0) { -uint8_t x_20; uint8_t x_21; uint8_t x_22; lean_object* x_23; uint8_t x_24; -x_20 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); -x_21 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); -x_22 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); -x_23 = lean_ctor_get(x_7, 0); +lean_object* x_23; uint8_t x_24; +x_23 = lean_ctor_get(x_6, 0); lean_dec(x_23); -x_24 = !lean_is_exclusive(x_8); +x_24 = !lean_is_exclusive(x_7); if (x_24 == 0) { uint8_t x_25; lean_object* x_26; lean_object* x_27; x_25 = 2; -lean_ctor_set_uint8(x_8, sizeof(void*)*1 + 6, x_25); -x_26 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_26, 0, x_7); -lean_ctor_set(x_26, 1, x_10); -lean_ctor_set(x_26, 2, x_11); -lean_ctor_set(x_26, 3, x_12); -lean_ctor_set(x_26, 4, x_13); -lean_ctor_set(x_26, 5, x_14); -lean_ctor_set(x_26, 6, x_15); -lean_ctor_set(x_26, 7, x_16); -lean_ctor_set(x_26, 8, x_17); -lean_ctor_set(x_26, 9, x_18); -lean_ctor_set_uint8(x_26, sizeof(void*)*10, x_20); -lean_ctor_set_uint8(x_26, sizeof(void*)*10 + 1, x_21); -lean_ctor_set_uint8(x_26, sizeof(void*)*10 + 2, x_22); -x_27 = l_Lean_Elab_Term_whnf(x_1, x_9, x_26, x_4); +lean_ctor_set_uint8(x_7, sizeof(void*)*1 + 6, x_25); +x_26 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_26, 0, x_6); +lean_ctor_set(x_26, 1, x_9); +lean_ctor_set(x_26, 2, x_10); +lean_ctor_set(x_26, 3, x_11); +lean_ctor_set(x_26, 4, x_12); +lean_ctor_set(x_26, 5, x_13); +lean_ctor_set(x_26, 6, x_14); +lean_ctor_set(x_26, 7, x_15); +lean_ctor_set(x_26, 8, x_16); +lean_ctor_set(x_26, 9, x_17); +lean_ctor_set(x_26, 10, x_21); +lean_ctor_set_uint8(x_26, sizeof(void*)*11, x_18); +lean_ctor_set_uint8(x_26, sizeof(void*)*11 + 1, x_19); +lean_ctor_set_uint8(x_26, sizeof(void*)*11 + 2, x_20); +x_27 = l_Lean_Elab_Term_whnf(x_8, x_26, x_3); if (lean_obj_tag(x_27) == 0) { lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; lean_object* x_32; @@ -419,7 +412,7 @@ else lean_object* x_55; lean_object* x_56; uint8_t x_57; lean_dec(x_28); x_55 = l___private_Lean_Elab_DoNotation_2__extractBind___closed__3; -x_56 = l_Lean_Elab_Term_throwError___rarg(x_1, x_55, x_3, x_29); +x_56 = l_Lean_Elab_Term_throwError___rarg(x_55, x_2, x_29); x_57 = !lean_is_exclusive(x_56); if (x_57 == 0) { @@ -452,8 +445,8 @@ x_35 = l_Lean_mkOptionalNode___closed__2; lean_inc(x_33); x_36 = lean_array_push(x_35, x_33); x_37 = l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__6; -lean_inc(x_3); -x_38 = l_Lean_Elab_Term_mkAppM(x_1, x_37, x_36, x_3, x_32); +lean_inc(x_2); +x_38 = l_Lean_Elab_Term_mkAppM(x_37, x_36, x_2, x_32); lean_dec(x_36); if (lean_obj_tag(x_38) == 0) { @@ -463,13 +456,13 @@ lean_inc(x_39); x_40 = lean_ctor_get(x_38, 1); lean_inc(x_40); lean_dec(x_38); -lean_inc(x_3); -x_41 = l_Lean_Elab_Term_synthesizeInst(x_1, x_39, x_3, x_40); +lean_inc(x_2); +x_41 = l_Lean_Elab_Term_synthesizeInst(x_39, x_2, x_40); if (lean_obj_tag(x_41) == 0) { uint8_t x_42; lean_dec(x_28); -lean_dec(x_3); +lean_dec(x_2); x_42 = !lean_is_exclusive(x_41); if (x_42 == 0) { @@ -508,7 +501,7 @@ lean_dec(x_33); x_49 = lean_ctor_get(x_41, 1); lean_inc(x_49); lean_dec(x_41); -x_50 = l___private_Lean_Elab_DoNotation_1__mkIdBindFor(x_1, x_28, x_3, x_49); +x_50 = l___private_Lean_Elab_DoNotation_1__mkIdBindFor(x_28, x_2, x_49); return x_50; } } @@ -520,14 +513,14 @@ lean_dec(x_33); x_51 = lean_ctor_get(x_38, 1); lean_inc(x_51); lean_dec(x_38); -x_52 = l___private_Lean_Elab_DoNotation_1__mkIdBindFor(x_1, x_28, x_3, x_51); +x_52 = l___private_Lean_Elab_DoNotation_1__mkIdBindFor(x_28, x_2, x_51); return x_52; } } else { lean_object* x_53; -x_53 = l___private_Lean_Elab_DoNotation_1__mkIdBindFor(x_1, x_28, x_3, x_32); +x_53 = l___private_Lean_Elab_DoNotation_1__mkIdBindFor(x_28, x_2, x_32); return x_53; } } @@ -535,7 +528,7 @@ return x_53; else { uint8_t x_61; -lean_dec(x_3); +lean_dec(x_2); x_61 = !lean_is_exclusive(x_27); if (x_61 == 0) { @@ -559,15 +552,15 @@ return x_64; else { lean_object* x_65; uint8_t x_66; uint8_t x_67; uint8_t x_68; uint8_t x_69; uint8_t x_70; uint8_t x_71; uint8_t x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_65 = lean_ctor_get(x_8, 0); -x_66 = lean_ctor_get_uint8(x_8, sizeof(void*)*1); -x_67 = lean_ctor_get_uint8(x_8, sizeof(void*)*1 + 1); -x_68 = lean_ctor_get_uint8(x_8, sizeof(void*)*1 + 2); -x_69 = lean_ctor_get_uint8(x_8, sizeof(void*)*1 + 3); -x_70 = lean_ctor_get_uint8(x_8, sizeof(void*)*1 + 4); -x_71 = lean_ctor_get_uint8(x_8, sizeof(void*)*1 + 5); +x_65 = lean_ctor_get(x_7, 0); +x_66 = lean_ctor_get_uint8(x_7, sizeof(void*)*1); +x_67 = lean_ctor_get_uint8(x_7, sizeof(void*)*1 + 1); +x_68 = lean_ctor_get_uint8(x_7, sizeof(void*)*1 + 2); +x_69 = lean_ctor_get_uint8(x_7, sizeof(void*)*1 + 3); +x_70 = lean_ctor_get_uint8(x_7, sizeof(void*)*1 + 4); +x_71 = lean_ctor_get_uint8(x_7, sizeof(void*)*1 + 5); lean_inc(x_65); -lean_dec(x_8); +lean_dec(x_7); x_72 = 2; x_73 = lean_alloc_ctor(0, 1, 7); lean_ctor_set(x_73, 0, x_65); @@ -578,22 +571,23 @@ lean_ctor_set_uint8(x_73, sizeof(void*)*1 + 3, x_69); lean_ctor_set_uint8(x_73, sizeof(void*)*1 + 4, x_70); lean_ctor_set_uint8(x_73, sizeof(void*)*1 + 5, x_71); lean_ctor_set_uint8(x_73, sizeof(void*)*1 + 6, x_72); -lean_ctor_set(x_7, 0, x_73); -x_74 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_74, 0, x_7); -lean_ctor_set(x_74, 1, x_10); -lean_ctor_set(x_74, 2, x_11); -lean_ctor_set(x_74, 3, x_12); -lean_ctor_set(x_74, 4, x_13); -lean_ctor_set(x_74, 5, x_14); -lean_ctor_set(x_74, 6, x_15); -lean_ctor_set(x_74, 7, x_16); -lean_ctor_set(x_74, 8, x_17); -lean_ctor_set(x_74, 9, x_18); -lean_ctor_set_uint8(x_74, sizeof(void*)*10, x_20); -lean_ctor_set_uint8(x_74, sizeof(void*)*10 + 1, x_21); -lean_ctor_set_uint8(x_74, sizeof(void*)*10 + 2, x_22); -x_75 = l_Lean_Elab_Term_whnf(x_1, x_9, x_74, x_4); +lean_ctor_set(x_6, 0, x_73); +x_74 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_74, 0, x_6); +lean_ctor_set(x_74, 1, x_9); +lean_ctor_set(x_74, 2, x_10); +lean_ctor_set(x_74, 3, x_11); +lean_ctor_set(x_74, 4, x_12); +lean_ctor_set(x_74, 5, x_13); +lean_ctor_set(x_74, 6, x_14); +lean_ctor_set(x_74, 7, x_15); +lean_ctor_set(x_74, 8, x_16); +lean_ctor_set(x_74, 9, x_17); +lean_ctor_set(x_74, 10, x_21); +lean_ctor_set_uint8(x_74, sizeof(void*)*11, x_18); +lean_ctor_set_uint8(x_74, sizeof(void*)*11 + 1, x_19); +lean_ctor_set_uint8(x_74, sizeof(void*)*11 + 2, x_20); +x_75 = l_Lean_Elab_Term_whnf(x_8, x_74, x_3); if (lean_obj_tag(x_75) == 0) { lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; lean_object* x_80; @@ -615,7 +609,7 @@ else lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_dec(x_76); x_101 = l___private_Lean_Elab_DoNotation_2__extractBind___closed__3; -x_102 = l_Lean_Elab_Term_throwError___rarg(x_1, x_101, x_3, x_77); +x_102 = l_Lean_Elab_Term_throwError___rarg(x_101, x_2, x_77); x_103 = lean_ctor_get(x_102, 0); lean_inc(x_103); x_104 = lean_ctor_get(x_102, 1); @@ -650,8 +644,8 @@ x_83 = l_Lean_mkOptionalNode___closed__2; lean_inc(x_81); x_84 = lean_array_push(x_83, x_81); x_85 = l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__6; -lean_inc(x_3); -x_86 = l_Lean_Elab_Term_mkAppM(x_1, x_85, x_84, x_3, x_80); +lean_inc(x_2); +x_86 = l_Lean_Elab_Term_mkAppM(x_85, x_84, x_2, x_80); lean_dec(x_84); if (lean_obj_tag(x_86) == 0) { @@ -661,13 +655,13 @@ lean_inc(x_87); x_88 = lean_ctor_get(x_86, 1); lean_inc(x_88); lean_dec(x_86); -lean_inc(x_3); -x_89 = l_Lean_Elab_Term_synthesizeInst(x_1, x_87, x_3, x_88); +lean_inc(x_2); +x_89 = l_Lean_Elab_Term_synthesizeInst(x_87, x_2, x_88); if (lean_obj_tag(x_89) == 0) { lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_dec(x_76); -lean_dec(x_3); +lean_dec(x_2); x_90 = lean_ctor_get(x_89, 0); lean_inc(x_90); x_91 = lean_ctor_get(x_89, 1); @@ -701,7 +695,7 @@ lean_dec(x_81); x_95 = lean_ctor_get(x_89, 1); lean_inc(x_95); lean_dec(x_89); -x_96 = l___private_Lean_Elab_DoNotation_1__mkIdBindFor(x_1, x_76, x_3, x_95); +x_96 = l___private_Lean_Elab_DoNotation_1__mkIdBindFor(x_76, x_2, x_95); return x_96; } } @@ -713,14 +707,14 @@ lean_dec(x_81); x_97 = lean_ctor_get(x_86, 1); lean_inc(x_97); lean_dec(x_86); -x_98 = l___private_Lean_Elab_DoNotation_1__mkIdBindFor(x_1, x_76, x_3, x_97); +x_98 = l___private_Lean_Elab_DoNotation_1__mkIdBindFor(x_76, x_2, x_97); return x_98; } } else { lean_object* x_99; -x_99 = l___private_Lean_Elab_DoNotation_1__mkIdBindFor(x_1, x_76, x_3, x_80); +x_99 = l___private_Lean_Elab_DoNotation_1__mkIdBindFor(x_76, x_2, x_80); return x_99; } } @@ -728,7 +722,7 @@ return x_99; else { lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; -lean_dec(x_3); +lean_dec(x_2); x_107 = lean_ctor_get(x_75, 0); lean_inc(x_107); x_108 = lean_ctor_get(x_75, 1); @@ -754,238 +748,227 @@ return x_110; } else { -uint8_t x_111; uint8_t x_112; uint8_t x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; uint8_t x_120; uint8_t x_121; uint8_t x_122; uint8_t x_123; uint8_t x_124; lean_object* x_125; uint8_t x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; -x_111 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); -x_112 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); -x_113 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); -x_114 = lean_ctor_get(x_7, 1); -x_115 = lean_ctor_get(x_7, 2); -x_116 = lean_ctor_get(x_7, 3); -x_117 = lean_ctor_get(x_7, 4); -lean_inc(x_117); -lean_inc(x_116); -lean_inc(x_115); +lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; uint8_t x_116; uint8_t x_117; uint8_t x_118; uint8_t x_119; uint8_t x_120; uint8_t x_121; lean_object* x_122; uint8_t x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; +x_111 = lean_ctor_get(x_6, 1); +x_112 = lean_ctor_get(x_6, 2); +x_113 = lean_ctor_get(x_6, 3); +x_114 = lean_ctor_get(x_6, 4); lean_inc(x_114); -lean_dec(x_7); -x_118 = lean_ctor_get(x_8, 0); -lean_inc(x_118); -x_119 = lean_ctor_get_uint8(x_8, sizeof(void*)*1); -x_120 = lean_ctor_get_uint8(x_8, sizeof(void*)*1 + 1); -x_121 = lean_ctor_get_uint8(x_8, sizeof(void*)*1 + 2); -x_122 = lean_ctor_get_uint8(x_8, sizeof(void*)*1 + 3); -x_123 = lean_ctor_get_uint8(x_8, sizeof(void*)*1 + 4); -x_124 = lean_ctor_get_uint8(x_8, sizeof(void*)*1 + 5); -if (lean_is_exclusive(x_8)) { - lean_ctor_release(x_8, 0); - x_125 = x_8; +lean_inc(x_113); +lean_inc(x_112); +lean_inc(x_111); +lean_dec(x_6); +x_115 = lean_ctor_get(x_7, 0); +lean_inc(x_115); +x_116 = lean_ctor_get_uint8(x_7, sizeof(void*)*1); +x_117 = lean_ctor_get_uint8(x_7, sizeof(void*)*1 + 1); +x_118 = lean_ctor_get_uint8(x_7, sizeof(void*)*1 + 2); +x_119 = lean_ctor_get_uint8(x_7, sizeof(void*)*1 + 3); +x_120 = lean_ctor_get_uint8(x_7, sizeof(void*)*1 + 4); +x_121 = lean_ctor_get_uint8(x_7, sizeof(void*)*1 + 5); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + x_122 = x_7; } else { - lean_dec_ref(x_8); - x_125 = lean_box(0); + lean_dec_ref(x_7); + x_122 = lean_box(0); } -x_126 = 2; -if (lean_is_scalar(x_125)) { - x_127 = lean_alloc_ctor(0, 1, 7); +x_123 = 2; +if (lean_is_scalar(x_122)) { + x_124 = lean_alloc_ctor(0, 1, 7); } else { - x_127 = x_125; + x_124 = x_122; } -lean_ctor_set(x_127, 0, x_118); -lean_ctor_set_uint8(x_127, sizeof(void*)*1, x_119); -lean_ctor_set_uint8(x_127, sizeof(void*)*1 + 1, x_120); -lean_ctor_set_uint8(x_127, sizeof(void*)*1 + 2, x_121); -lean_ctor_set_uint8(x_127, sizeof(void*)*1 + 3, x_122); -lean_ctor_set_uint8(x_127, sizeof(void*)*1 + 4, x_123); -lean_ctor_set_uint8(x_127, sizeof(void*)*1 + 5, x_124); -lean_ctor_set_uint8(x_127, sizeof(void*)*1 + 6, x_126); -x_128 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_128, 0, x_127); -lean_ctor_set(x_128, 1, x_114); -lean_ctor_set(x_128, 2, x_115); -lean_ctor_set(x_128, 3, x_116); -lean_ctor_set(x_128, 4, x_117); -x_129 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_129, 0, x_128); -lean_ctor_set(x_129, 1, x_10); -lean_ctor_set(x_129, 2, x_11); -lean_ctor_set(x_129, 3, x_12); -lean_ctor_set(x_129, 4, x_13); -lean_ctor_set(x_129, 5, x_14); -lean_ctor_set(x_129, 6, x_15); -lean_ctor_set(x_129, 7, x_16); -lean_ctor_set(x_129, 8, x_17); -lean_ctor_set(x_129, 9, x_18); -lean_ctor_set_uint8(x_129, sizeof(void*)*10, x_111); -lean_ctor_set_uint8(x_129, sizeof(void*)*10 + 1, x_112); -lean_ctor_set_uint8(x_129, sizeof(void*)*10 + 2, x_113); -x_130 = l_Lean_Elab_Term_whnf(x_1, x_9, x_129, x_4); -if (lean_obj_tag(x_130) == 0) +lean_ctor_set(x_124, 0, x_115); +lean_ctor_set_uint8(x_124, sizeof(void*)*1, x_116); +lean_ctor_set_uint8(x_124, sizeof(void*)*1 + 1, x_117); +lean_ctor_set_uint8(x_124, sizeof(void*)*1 + 2, x_118); +lean_ctor_set_uint8(x_124, sizeof(void*)*1 + 3, x_119); +lean_ctor_set_uint8(x_124, sizeof(void*)*1 + 4, x_120); +lean_ctor_set_uint8(x_124, sizeof(void*)*1 + 5, x_121); +lean_ctor_set_uint8(x_124, sizeof(void*)*1 + 6, x_123); +x_125 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_125, 0, x_124); +lean_ctor_set(x_125, 1, x_111); +lean_ctor_set(x_125, 2, x_112); +lean_ctor_set(x_125, 3, x_113); +lean_ctor_set(x_125, 4, x_114); +x_126 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_126, 0, x_125); +lean_ctor_set(x_126, 1, x_9); +lean_ctor_set(x_126, 2, x_10); +lean_ctor_set(x_126, 3, x_11); +lean_ctor_set(x_126, 4, x_12); +lean_ctor_set(x_126, 5, x_13); +lean_ctor_set(x_126, 6, x_14); +lean_ctor_set(x_126, 7, x_15); +lean_ctor_set(x_126, 8, x_16); +lean_ctor_set(x_126, 9, x_17); +lean_ctor_set(x_126, 10, x_21); +lean_ctor_set_uint8(x_126, sizeof(void*)*11, x_18); +lean_ctor_set_uint8(x_126, sizeof(void*)*11 + 1, x_19); +lean_ctor_set_uint8(x_126, sizeof(void*)*11 + 2, x_20); +x_127 = l_Lean_Elab_Term_whnf(x_8, x_126, x_3); +if (lean_obj_tag(x_127) == 0) { -lean_object* x_131; lean_object* x_132; lean_object* x_133; uint8_t x_134; lean_object* x_135; -x_131 = lean_ctor_get(x_130, 0); -lean_inc(x_131); -x_132 = lean_ctor_get(x_130, 1); -lean_inc(x_132); +lean_object* x_128; lean_object* x_129; lean_object* x_130; uint8_t x_131; lean_object* x_132; +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_127); +x_130 = l_Lean_Expr_getAppFn___main(x_128); +x_131 = l_Lean_Expr_isMVar(x_130); lean_dec(x_130); -x_133 = l_Lean_Expr_getAppFn___main(x_131); -x_134 = l_Lean_Expr_isMVar(x_133); -lean_dec(x_133); -if (x_134 == 0) +if (x_131 == 0) { -x_135 = x_132; -goto block_155; +x_132 = x_129; +goto block_152; } else { -lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; -lean_dec(x_131); -x_156 = l___private_Lean_Elab_DoNotation_2__extractBind___closed__3; -x_157 = l_Lean_Elab_Term_throwError___rarg(x_1, x_156, x_3, x_132); -x_158 = lean_ctor_get(x_157, 0); -lean_inc(x_158); -x_159 = lean_ctor_get(x_157, 1); -lean_inc(x_159); -if (lean_is_exclusive(x_157)) { - lean_ctor_release(x_157, 0); - lean_ctor_release(x_157, 1); - x_160 = x_157; +lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; +lean_dec(x_128); +x_153 = l___private_Lean_Elab_DoNotation_2__extractBind___closed__3; +x_154 = l_Lean_Elab_Term_throwError___rarg(x_153, x_2, x_129); +x_155 = lean_ctor_get(x_154, 0); +lean_inc(x_155); +x_156 = lean_ctor_get(x_154, 1); +lean_inc(x_156); +if (lean_is_exclusive(x_154)) { + lean_ctor_release(x_154, 0); + lean_ctor_release(x_154, 1); + x_157 = x_154; } else { - lean_dec_ref(x_157); - x_160 = lean_box(0); + lean_dec_ref(x_154); + x_157 = lean_box(0); } -if (lean_is_scalar(x_160)) { - x_161 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_157)) { + x_158 = lean_alloc_ctor(1, 2, 0); } else { - x_161 = x_160; + x_158 = x_157; } -lean_ctor_set(x_161, 0, x_158); -lean_ctor_set(x_161, 1, x_159); -return x_161; +lean_ctor_set(x_158, 0, x_155); +lean_ctor_set(x_158, 1, x_156); +return x_158; } -block_155: +block_152: { -if (lean_obj_tag(x_131) == 5) +if (lean_obj_tag(x_128) == 5) { -lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; -x_136 = lean_ctor_get(x_131, 0); -lean_inc(x_136); -x_137 = lean_ctor_get(x_131, 1); -lean_inc(x_137); -x_138 = l_Lean_mkOptionalNode___closed__2; -lean_inc(x_136); -x_139 = lean_array_push(x_138, x_136); -x_140 = l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__6; -lean_inc(x_3); -x_141 = l_Lean_Elab_Term_mkAppM(x_1, x_140, x_139, x_3, x_135); -lean_dec(x_139); +lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; +x_133 = lean_ctor_get(x_128, 0); +lean_inc(x_133); +x_134 = lean_ctor_get(x_128, 1); +lean_inc(x_134); +x_135 = l_Lean_mkOptionalNode___closed__2; +lean_inc(x_133); +x_136 = lean_array_push(x_135, x_133); +x_137 = l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__6; +lean_inc(x_2); +x_138 = l_Lean_Elab_Term_mkAppM(x_137, x_136, x_2, x_132); +lean_dec(x_136); +if (lean_obj_tag(x_138) == 0) +{ +lean_object* x_139; lean_object* x_140; lean_object* x_141; +x_139 = lean_ctor_get(x_138, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_138, 1); +lean_inc(x_140); +lean_dec(x_138); +lean_inc(x_2); +x_141 = l_Lean_Elab_Term_synthesizeInst(x_139, x_2, x_140); if (lean_obj_tag(x_141) == 0) { -lean_object* x_142; lean_object* x_143; lean_object* x_144; +lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; +lean_dec(x_128); +lean_dec(x_2); x_142 = lean_ctor_get(x_141, 0); lean_inc(x_142); x_143 = lean_ctor_get(x_141, 1); lean_inc(x_143); -lean_dec(x_141); -lean_inc(x_3); -x_144 = l_Lean_Elab_Term_synthesizeInst(x_1, x_142, x_3, x_143); -if (lean_obj_tag(x_144) == 0) -{ -lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; -lean_dec(x_131); -lean_dec(x_3); -x_145 = lean_ctor_get(x_144, 0); -lean_inc(x_145); -x_146 = lean_ctor_get(x_144, 1); -lean_inc(x_146); -if (lean_is_exclusive(x_144)) { - lean_ctor_release(x_144, 0); - lean_ctor_release(x_144, 1); - x_147 = x_144; +if (lean_is_exclusive(x_141)) { + lean_ctor_release(x_141, 0); + lean_ctor_release(x_141, 1); + x_144 = x_141; } else { - lean_dec_ref(x_144); - x_147 = lean_box(0); + lean_dec_ref(x_141); + x_144 = lean_box(0); } -x_148 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_148, 0, x_136); -lean_ctor_set(x_148, 1, x_137); -lean_ctor_set(x_148, 2, x_145); -if (lean_is_scalar(x_147)) { - x_149 = lean_alloc_ctor(0, 2, 0); +x_145 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_145, 0, x_133); +lean_ctor_set(x_145, 1, x_134); +lean_ctor_set(x_145, 2, x_142); +if (lean_is_scalar(x_144)) { + x_146 = lean_alloc_ctor(0, 2, 0); } else { - x_149 = x_147; + x_146 = x_144; } -lean_ctor_set(x_149, 0, x_148); -lean_ctor_set(x_149, 1, x_146); -return x_149; +lean_ctor_set(x_146, 0, x_145); +lean_ctor_set(x_146, 1, x_143); +return x_146; } else { -lean_object* x_150; lean_object* x_151; -lean_dec(x_137); -lean_dec(x_136); -x_150 = lean_ctor_get(x_144, 1); -lean_inc(x_150); -lean_dec(x_144); -x_151 = l___private_Lean_Elab_DoNotation_1__mkIdBindFor(x_1, x_131, x_3, x_150); +lean_object* x_147; lean_object* x_148; +lean_dec(x_134); +lean_dec(x_133); +x_147 = lean_ctor_get(x_141, 1); +lean_inc(x_147); +lean_dec(x_141); +x_148 = l___private_Lean_Elab_DoNotation_1__mkIdBindFor(x_128, x_2, x_147); +return x_148; +} +} +else +{ +lean_object* x_149; lean_object* x_150; +lean_dec(x_134); +lean_dec(x_133); +x_149 = lean_ctor_get(x_138, 1); +lean_inc(x_149); +lean_dec(x_138); +x_150 = l___private_Lean_Elab_DoNotation_1__mkIdBindFor(x_128, x_2, x_149); +return x_150; +} +} +else +{ +lean_object* x_151; +x_151 = l___private_Lean_Elab_DoNotation_1__mkIdBindFor(x_128, x_2, x_132); return x_151; } } -else -{ -lean_object* x_152; lean_object* x_153; -lean_dec(x_137); -lean_dec(x_136); -x_152 = lean_ctor_get(x_141, 1); -lean_inc(x_152); -lean_dec(x_141); -x_153 = l___private_Lean_Elab_DoNotation_1__mkIdBindFor(x_1, x_131, x_3, x_152); -return x_153; -} } else { -lean_object* x_154; -x_154 = l___private_Lean_Elab_DoNotation_1__mkIdBindFor(x_1, x_131, x_3, x_135); -return x_154; -} -} -} -else -{ -lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; -lean_dec(x_3); -x_162 = lean_ctor_get(x_130, 0); -lean_inc(x_162); -x_163 = lean_ctor_get(x_130, 1); -lean_inc(x_163); -if (lean_is_exclusive(x_130)) { - lean_ctor_release(x_130, 0); - lean_ctor_release(x_130, 1); - x_164 = x_130; +lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; +lean_dec(x_2); +x_159 = lean_ctor_get(x_127, 0); +lean_inc(x_159); +x_160 = lean_ctor_get(x_127, 1); +lean_inc(x_160); +if (lean_is_exclusive(x_127)) { + lean_ctor_release(x_127, 0); + lean_ctor_release(x_127, 1); + x_161 = x_127; } else { - lean_dec_ref(x_130); - x_164 = lean_box(0); + lean_dec_ref(x_127); + x_161 = lean_box(0); } -if (lean_is_scalar(x_164)) { - x_165 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_161)) { + x_162 = lean_alloc_ctor(1, 2, 0); } else { - x_165 = x_164; + x_162 = x_161; } -lean_ctor_set(x_165, 0, x_162); -lean_ctor_set(x_165, 1, x_163); -return x_165; +lean_ctor_set(x_162, 0, x_159); +lean_ctor_set(x_162, 1, x_160); +return x_162; } } } } } -lean_object* l___private_Lean_Elab_DoNotation_2__extractBind___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l___private_Lean_Elab_DoNotation_2__extractBind(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} lean_object* l___private_Lean_Elab_DoNotation_3__getDoElems(lean_object* x_1) { _start: { @@ -3884,62 +3867,65 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_DoNotation_9__extractTypeFormerAppArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_DoNotation_9__extractTypeFormerAppArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_5 = lean_ctor_get(x_3, 0); +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; uint8_t x_15; uint8_t x_16; uint8_t x_17; lean_object* x_18; uint8_t x_19; +x_4 = lean_ctor_get(x_2, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_4, 0); lean_inc(x_5); -x_6 = lean_ctor_get(x_5, 0); +x_6 = lean_ctor_get(x_2, 1); lean_inc(x_6); -x_7 = lean_ctor_get(x_3, 1); +x_7 = lean_ctor_get(x_2, 2); lean_inc(x_7); -x_8 = lean_ctor_get(x_3, 2); +x_8 = lean_ctor_get(x_2, 3); lean_inc(x_8); -x_9 = lean_ctor_get(x_3, 3); +x_9 = lean_ctor_get(x_2, 4); lean_inc(x_9); -x_10 = lean_ctor_get(x_3, 4); +x_10 = lean_ctor_get(x_2, 5); lean_inc(x_10); -x_11 = lean_ctor_get(x_3, 5); +x_11 = lean_ctor_get(x_2, 6); lean_inc(x_11); -x_12 = lean_ctor_get(x_3, 6); +x_12 = lean_ctor_get(x_2, 7); lean_inc(x_12); -x_13 = lean_ctor_get(x_3, 7); +x_13 = lean_ctor_get(x_2, 8); lean_inc(x_13); -x_14 = lean_ctor_get(x_3, 8); +x_14 = lean_ctor_get(x_2, 9); lean_inc(x_14); -x_15 = lean_ctor_get(x_3, 9); -lean_inc(x_15); -x_16 = !lean_is_exclusive(x_5); -if (x_16 == 0) +x_15 = lean_ctor_get_uint8(x_2, sizeof(void*)*11); +x_16 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 1); +x_17 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 2); +x_18 = lean_ctor_get(x_2, 10); +lean_inc(x_18); +x_19 = !lean_is_exclusive(x_4); +if (x_19 == 0) { -uint8_t x_17; uint8_t x_18; uint8_t x_19; lean_object* x_20; uint8_t x_21; -x_17 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); -x_18 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); -x_19 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); -x_20 = lean_ctor_get(x_5, 0); +lean_object* x_20; uint8_t x_21; +x_20 = lean_ctor_get(x_4, 0); lean_dec(x_20); -x_21 = !lean_is_exclusive(x_6); +x_21 = !lean_is_exclusive(x_5); if (x_21 == 0) { uint8_t x_22; lean_object* x_23; lean_object* x_24; x_22 = 2; -lean_ctor_set_uint8(x_6, sizeof(void*)*1 + 6, x_22); -x_23 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_23, 0, x_5); -lean_ctor_set(x_23, 1, x_7); -lean_ctor_set(x_23, 2, x_8); -lean_ctor_set(x_23, 3, x_9); -lean_ctor_set(x_23, 4, x_10); -lean_ctor_set(x_23, 5, x_11); -lean_ctor_set(x_23, 6, x_12); -lean_ctor_set(x_23, 7, x_13); -lean_ctor_set(x_23, 8, x_14); -lean_ctor_set(x_23, 9, x_15); -lean_ctor_set_uint8(x_23, sizeof(void*)*10, x_17); -lean_ctor_set_uint8(x_23, sizeof(void*)*10 + 1, x_18); -lean_ctor_set_uint8(x_23, sizeof(void*)*10 + 2, x_19); -x_24 = l_Lean_Elab_Term_whnf(x_1, x_2, x_23, x_4); +lean_ctor_set_uint8(x_5, sizeof(void*)*1 + 6, x_22); +x_23 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_23, 0, x_4); +lean_ctor_set(x_23, 1, x_6); +lean_ctor_set(x_23, 2, x_7); +lean_ctor_set(x_23, 3, x_8); +lean_ctor_set(x_23, 4, x_9); +lean_ctor_set(x_23, 5, x_10); +lean_ctor_set(x_23, 6, x_11); +lean_ctor_set(x_23, 7, x_12); +lean_ctor_set(x_23, 8, x_13); +lean_ctor_set(x_23, 9, x_14); +lean_ctor_set(x_23, 10, x_18); +lean_ctor_set_uint8(x_23, sizeof(void*)*11, x_15); +lean_ctor_set_uint8(x_23, sizeof(void*)*11 + 1, x_16); +lean_ctor_set_uint8(x_23, sizeof(void*)*11 + 2, x_17); +x_24 = l_Lean_Elab_Term_whnf(x_1, x_23, x_3); if (lean_obj_tag(x_24) == 0) { uint8_t x_25; @@ -3952,7 +3938,7 @@ x_27 = lean_ctor_get(x_24, 1); if (lean_obj_tag(x_26) == 5) { lean_object* x_35; -lean_dec(x_3); +lean_dec(x_2); x_35 = lean_ctor_get(x_26, 1); lean_inc(x_35); lean_dec(x_26); @@ -3978,7 +3964,7 @@ x_31 = l___private_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__3; x_32 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_32, 0, x_31); lean_ctor_set(x_32, 1, x_30); -x_33 = l_Lean_Elab_Term_throwError___rarg(x_1, x_32, x_3, x_27); +x_33 = l_Lean_Elab_Term_throwError___rarg(x_32, x_2, x_27); return x_33; } } @@ -3993,7 +3979,7 @@ lean_dec(x_24); if (lean_obj_tag(x_37) == 5) { lean_object* x_46; lean_object* x_47; -lean_dec(x_3); +lean_dec(x_2); x_46 = lean_ctor_get(x_37, 1); lean_inc(x_46); lean_dec(x_37); @@ -4020,7 +4006,7 @@ x_42 = l___private_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__3; x_43 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_43, 0, x_42); lean_ctor_set(x_43, 1, x_41); -x_44 = l_Lean_Elab_Term_throwError___rarg(x_1, x_43, x_3, x_38); +x_44 = l_Lean_Elab_Term_throwError___rarg(x_43, x_2, x_38); return x_44; } } @@ -4028,7 +4014,7 @@ return x_44; else { uint8_t x_49; -lean_dec(x_3); +lean_dec(x_2); x_49 = !lean_is_exclusive(x_24); if (x_49 == 0) { @@ -4052,15 +4038,15 @@ return x_52; else { lean_object* x_53; uint8_t x_54; uint8_t x_55; uint8_t x_56; uint8_t x_57; uint8_t x_58; uint8_t x_59; uint8_t x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_53 = lean_ctor_get(x_6, 0); -x_54 = lean_ctor_get_uint8(x_6, sizeof(void*)*1); -x_55 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 1); -x_56 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 2); -x_57 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 3); -x_58 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 4); -x_59 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 5); +x_53 = lean_ctor_get(x_5, 0); +x_54 = lean_ctor_get_uint8(x_5, sizeof(void*)*1); +x_55 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 1); +x_56 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 2); +x_57 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 3); +x_58 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 4); +x_59 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 5); lean_inc(x_53); -lean_dec(x_6); +lean_dec(x_5); x_60 = 2; x_61 = lean_alloc_ctor(0, 1, 7); lean_ctor_set(x_61, 0, x_53); @@ -4071,22 +4057,23 @@ lean_ctor_set_uint8(x_61, sizeof(void*)*1 + 3, x_57); lean_ctor_set_uint8(x_61, sizeof(void*)*1 + 4, x_58); lean_ctor_set_uint8(x_61, sizeof(void*)*1 + 5, x_59); lean_ctor_set_uint8(x_61, sizeof(void*)*1 + 6, x_60); -lean_ctor_set(x_5, 0, x_61); -x_62 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_62, 0, x_5); -lean_ctor_set(x_62, 1, x_7); -lean_ctor_set(x_62, 2, x_8); -lean_ctor_set(x_62, 3, x_9); -lean_ctor_set(x_62, 4, x_10); -lean_ctor_set(x_62, 5, x_11); -lean_ctor_set(x_62, 6, x_12); -lean_ctor_set(x_62, 7, x_13); -lean_ctor_set(x_62, 8, x_14); -lean_ctor_set(x_62, 9, x_15); -lean_ctor_set_uint8(x_62, sizeof(void*)*10, x_17); -lean_ctor_set_uint8(x_62, sizeof(void*)*10 + 1, x_18); -lean_ctor_set_uint8(x_62, sizeof(void*)*10 + 2, x_19); -x_63 = l_Lean_Elab_Term_whnf(x_1, x_2, x_62, x_4); +lean_ctor_set(x_4, 0, x_61); +x_62 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_62, 0, x_4); +lean_ctor_set(x_62, 1, x_6); +lean_ctor_set(x_62, 2, x_7); +lean_ctor_set(x_62, 3, x_8); +lean_ctor_set(x_62, 4, x_9); +lean_ctor_set(x_62, 5, x_10); +lean_ctor_set(x_62, 6, x_11); +lean_ctor_set(x_62, 7, x_12); +lean_ctor_set(x_62, 8, x_13); +lean_ctor_set(x_62, 9, x_14); +lean_ctor_set(x_62, 10, x_18); +lean_ctor_set_uint8(x_62, sizeof(void*)*11, x_15); +lean_ctor_set_uint8(x_62, sizeof(void*)*11 + 1, x_16); +lean_ctor_set_uint8(x_62, sizeof(void*)*11 + 2, x_17); +x_63 = l_Lean_Elab_Term_whnf(x_1, x_62, x_3); if (lean_obj_tag(x_63) == 0) { lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; @@ -4105,7 +4092,7 @@ if (lean_is_exclusive(x_63)) { if (lean_obj_tag(x_64) == 5) { lean_object* x_74; lean_object* x_75; -lean_dec(x_3); +lean_dec(x_2); x_74 = lean_ctor_get(x_64, 1); lean_inc(x_74); lean_dec(x_64); @@ -4137,14 +4124,14 @@ x_70 = l___private_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__3; x_71 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_71, 0, x_70); lean_ctor_set(x_71, 1, x_69); -x_72 = l_Lean_Elab_Term_throwError___rarg(x_1, x_71, x_3, x_65); +x_72 = l_Lean_Elab_Term_throwError___rarg(x_71, x_2, x_65); return x_72; } } else { lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; -lean_dec(x_3); +lean_dec(x_2); x_77 = lean_ctor_get(x_63, 0); lean_inc(x_77); x_78 = lean_ctor_get(x_63, 1); @@ -4170,160 +4157,149 @@ return x_80; } else { -uint8_t x_81; uint8_t x_82; uint8_t x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; uint8_t x_89; uint8_t x_90; uint8_t x_91; uint8_t x_92; uint8_t x_93; uint8_t x_94; lean_object* x_95; uint8_t x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; -x_81 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); -x_82 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); -x_83 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); -x_84 = lean_ctor_get(x_5, 1); -x_85 = lean_ctor_get(x_5, 2); -x_86 = lean_ctor_get(x_5, 3); -x_87 = lean_ctor_get(x_5, 4); -lean_inc(x_87); -lean_inc(x_86); -lean_inc(x_85); +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; uint8_t x_87; uint8_t x_88; uint8_t x_89; uint8_t x_90; uint8_t x_91; lean_object* x_92; uint8_t x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_81 = lean_ctor_get(x_4, 1); +x_82 = lean_ctor_get(x_4, 2); +x_83 = lean_ctor_get(x_4, 3); +x_84 = lean_ctor_get(x_4, 4); lean_inc(x_84); -lean_dec(x_5); -x_88 = lean_ctor_get(x_6, 0); -lean_inc(x_88); -x_89 = lean_ctor_get_uint8(x_6, sizeof(void*)*1); -x_90 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 1); -x_91 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 2); -x_92 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 3); -x_93 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 4); -x_94 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 5); -if (lean_is_exclusive(x_6)) { - lean_ctor_release(x_6, 0); - x_95 = x_6; +lean_inc(x_83); +lean_inc(x_82); +lean_inc(x_81); +lean_dec(x_4); +x_85 = lean_ctor_get(x_5, 0); +lean_inc(x_85); +x_86 = lean_ctor_get_uint8(x_5, sizeof(void*)*1); +x_87 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 1); +x_88 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 2); +x_89 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 3); +x_90 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 4); +x_91 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 5); +if (lean_is_exclusive(x_5)) { + lean_ctor_release(x_5, 0); + x_92 = x_5; } else { - lean_dec_ref(x_6); - x_95 = lean_box(0); + lean_dec_ref(x_5); + x_92 = lean_box(0); } -x_96 = 2; -if (lean_is_scalar(x_95)) { - x_97 = lean_alloc_ctor(0, 1, 7); +x_93 = 2; +if (lean_is_scalar(x_92)) { + x_94 = lean_alloc_ctor(0, 1, 7); } else { - x_97 = x_95; + x_94 = x_92; } -lean_ctor_set(x_97, 0, x_88); -lean_ctor_set_uint8(x_97, sizeof(void*)*1, x_89); -lean_ctor_set_uint8(x_97, sizeof(void*)*1 + 1, x_90); -lean_ctor_set_uint8(x_97, sizeof(void*)*1 + 2, x_91); -lean_ctor_set_uint8(x_97, sizeof(void*)*1 + 3, x_92); -lean_ctor_set_uint8(x_97, sizeof(void*)*1 + 4, x_93); -lean_ctor_set_uint8(x_97, sizeof(void*)*1 + 5, x_94); -lean_ctor_set_uint8(x_97, sizeof(void*)*1 + 6, x_96); -x_98 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_84); -lean_ctor_set(x_98, 2, x_85); -lean_ctor_set(x_98, 3, x_86); -lean_ctor_set(x_98, 4, x_87); -x_99 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_99, 0, x_98); -lean_ctor_set(x_99, 1, x_7); -lean_ctor_set(x_99, 2, x_8); -lean_ctor_set(x_99, 3, x_9); -lean_ctor_set(x_99, 4, x_10); -lean_ctor_set(x_99, 5, x_11); -lean_ctor_set(x_99, 6, x_12); -lean_ctor_set(x_99, 7, x_13); -lean_ctor_set(x_99, 8, x_14); -lean_ctor_set(x_99, 9, x_15); -lean_ctor_set_uint8(x_99, sizeof(void*)*10, x_81); -lean_ctor_set_uint8(x_99, sizeof(void*)*10 + 1, x_82); -lean_ctor_set_uint8(x_99, sizeof(void*)*10 + 2, x_83); -x_100 = l_Lean_Elab_Term_whnf(x_1, x_2, x_99, x_4); -if (lean_obj_tag(x_100) == 0) +lean_ctor_set(x_94, 0, x_85); +lean_ctor_set_uint8(x_94, sizeof(void*)*1, x_86); +lean_ctor_set_uint8(x_94, sizeof(void*)*1 + 1, x_87); +lean_ctor_set_uint8(x_94, sizeof(void*)*1 + 2, x_88); +lean_ctor_set_uint8(x_94, sizeof(void*)*1 + 3, x_89); +lean_ctor_set_uint8(x_94, sizeof(void*)*1 + 4, x_90); +lean_ctor_set_uint8(x_94, sizeof(void*)*1 + 5, x_91); +lean_ctor_set_uint8(x_94, sizeof(void*)*1 + 6, x_93); +x_95 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_95, 0, x_94); +lean_ctor_set(x_95, 1, x_81); +lean_ctor_set(x_95, 2, x_82); +lean_ctor_set(x_95, 3, x_83); +lean_ctor_set(x_95, 4, x_84); +x_96 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_96, 0, x_95); +lean_ctor_set(x_96, 1, x_6); +lean_ctor_set(x_96, 2, x_7); +lean_ctor_set(x_96, 3, x_8); +lean_ctor_set(x_96, 4, x_9); +lean_ctor_set(x_96, 5, x_10); +lean_ctor_set(x_96, 6, x_11); +lean_ctor_set(x_96, 7, x_12); +lean_ctor_set(x_96, 8, x_13); +lean_ctor_set(x_96, 9, x_14); +lean_ctor_set(x_96, 10, x_18); +lean_ctor_set_uint8(x_96, sizeof(void*)*11, x_15); +lean_ctor_set_uint8(x_96, sizeof(void*)*11 + 1, x_16); +lean_ctor_set_uint8(x_96, sizeof(void*)*11 + 2, x_17); +x_97 = l_Lean_Elab_Term_whnf(x_1, x_96, x_3); +if (lean_obj_tag(x_97) == 0) { -lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_101 = lean_ctor_get(x_100, 0); -lean_inc(x_101); -x_102 = lean_ctor_get(x_100, 1); -lean_inc(x_102); -if (lean_is_exclusive(x_100)) { - lean_ctor_release(x_100, 0); - lean_ctor_release(x_100, 1); - x_103 = x_100; +lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_98 = lean_ctor_get(x_97, 0); +lean_inc(x_98); +x_99 = lean_ctor_get(x_97, 1); +lean_inc(x_99); +if (lean_is_exclusive(x_97)) { + lean_ctor_release(x_97, 0); + lean_ctor_release(x_97, 1); + x_100 = x_97; } else { - lean_dec_ref(x_100); - x_103 = lean_box(0); + lean_dec_ref(x_97); + x_100 = lean_box(0); } -if (lean_obj_tag(x_101) == 5) +if (lean_obj_tag(x_98) == 5) { -lean_object* x_111; lean_object* x_112; -lean_dec(x_3); -x_111 = lean_ctor_get(x_101, 1); -lean_inc(x_111); -lean_dec(x_101); -if (lean_is_scalar(x_103)) { - x_112 = lean_alloc_ctor(0, 2, 0); +lean_object* x_108; lean_object* x_109; +lean_dec(x_2); +x_108 = lean_ctor_get(x_98, 1); +lean_inc(x_108); +lean_dec(x_98); +if (lean_is_scalar(x_100)) { + x_109 = lean_alloc_ctor(0, 2, 0); } else { - x_112 = x_103; + x_109 = x_100; } -lean_ctor_set(x_112, 0, x_111); -lean_ctor_set(x_112, 1, x_102); -return x_112; -} -else -{ -lean_object* x_113; -lean_dec(x_103); -x_113 = lean_box(0); -x_104 = x_113; -goto block_110; -} -block_110: -{ -lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; -lean_dec(x_104); -x_105 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_105, 0, x_101); -x_106 = l_Lean_indentExpr(x_105); -x_107 = l___private_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__3; -x_108 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_108, 0, x_107); -lean_ctor_set(x_108, 1, x_106); -x_109 = l_Lean_Elab_Term_throwError___rarg(x_1, x_108, x_3, x_102); +lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 1, x_99); return x_109; } +else +{ +lean_object* x_110; +lean_dec(x_100); +x_110 = lean_box(0); +x_101 = x_110; +goto block_107; +} +block_107: +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; +lean_dec(x_101); +x_102 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_102, 0, x_98); +x_103 = l_Lean_indentExpr(x_102); +x_104 = l___private_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__3; +x_105 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_105, 0, x_104); +lean_ctor_set(x_105, 1, x_103); +x_106 = l_Lean_Elab_Term_throwError___rarg(x_105, x_2, x_99); +return x_106; +} } else { -lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; -lean_dec(x_3); -x_114 = lean_ctor_get(x_100, 0); -lean_inc(x_114); -x_115 = lean_ctor_get(x_100, 1); -lean_inc(x_115); -if (lean_is_exclusive(x_100)) { - lean_ctor_release(x_100, 0); - lean_ctor_release(x_100, 1); - x_116 = x_100; +lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; +lean_dec(x_2); +x_111 = lean_ctor_get(x_97, 0); +lean_inc(x_111); +x_112 = lean_ctor_get(x_97, 1); +lean_inc(x_112); +if (lean_is_exclusive(x_97)) { + lean_ctor_release(x_97, 0); + lean_ctor_release(x_97, 1); + x_113 = x_97; } else { - lean_dec_ref(x_100); - x_116 = lean_box(0); + lean_dec_ref(x_97); + x_113 = lean_box(0); } -if (lean_is_scalar(x_116)) { - x_117 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_113)) { + x_114 = lean_alloc_ctor(1, 2, 0); } else { - x_117 = x_116; + x_114 = x_113; } -lean_ctor_set(x_117, 0, x_114); -lean_ctor_set(x_117, 1, x_115); -return x_117; +lean_ctor_set(x_114, 0, x_111); +lean_ctor_set(x_114, 1, x_112); +return x_114; } } } } -lean_object* l___private_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l___private_Lean_Elab_DoNotation_9__extractTypeFormerAppArg(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} lean_object* l_Array_back___at___private_Lean_Elab_DoNotation_10__mkBind___spec__1(lean_object* x_1) { _start: { @@ -4338,104 +4314,356 @@ lean_dec(x_4); return x_6; } } -lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at___private_Lean_Elab_DoNotation_10__mkBind___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, lean_object* x_9) { +lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at___private_Lean_Elab_DoNotation_10__mkBind___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: { -lean_object* x_10; uint8_t x_11; -x_10 = lean_unsigned_to_nat(0u); -x_11 = lean_nat_dec_eq(x_5, x_10); -if (x_11 == 0) +lean_object* x_9; uint8_t x_10; +x_9 = lean_unsigned_to_nat(0u); +x_10 = lean_nat_dec_eq(x_4, x_9); +if (x_10 == 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_unsigned_to_nat(1u); -x_13 = lean_nat_sub(x_5, x_12); -lean_dec(x_5); -x_14 = lean_array_fget(x_4, x_13); -x_15 = lean_ctor_get(x_14, 1); +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_sub(x_4, x_11); +lean_dec(x_4); +x_13 = lean_array_fget(x_3, x_12); +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 0); lean_inc(x_15); -x_16 = lean_ctor_get(x_14, 0); -lean_inc(x_16); -lean_dec(x_14); -lean_inc(x_8); -lean_inc(x_15); -x_17 = l_Lean_Elab_Term_inferType(x_1, x_15, x_8, x_9); -if (lean_obj_tag(x_17) == 0) -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); -x_19 = lean_ctor_get(x_17, 1); -lean_inc(x_19); -lean_dec(x_17); -lean_inc(x_8); +lean_dec(x_13); lean_inc(x_7); -x_20 = l_Lean_Elab_Term_inferType(x_1, x_7, x_8, x_19); -if (lean_obj_tag(x_20) == 0) +lean_inc(x_14); +x_16 = l_Lean_Elab_Term_inferType(x_14, x_7, x_8); +if (lean_obj_tag(x_16) == 0) { -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_20, 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_7); +lean_inc(x_6); +x_19 = l_Lean_Elab_Term_inferType(x_6, x_7, x_18); +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_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); lean_inc(x_21); -x_22 = lean_ctor_get(x_20, 1); -lean_inc(x_22); -lean_dec(x_20); -lean_inc(x_8); -x_23 = l___private_Lean_Elab_DoNotation_9__extractTypeFormerAppArg(x_1, x_21, x_8, x_22); -if (lean_obj_tag(x_23) == 0) +lean_dec(x_19); +lean_inc(x_7); +x_22 = l___private_Lean_Elab_DoNotation_9__extractTypeFormerAppArg(x_20, x_7, x_21); +if (lean_obj_tag(x_22) == 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_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_22, 1); lean_inc(x_24); -x_25 = lean_ctor_get(x_23, 1); -lean_inc(x_25); -lean_dec(x_23); -x_26 = l_Lean_mkOptionalNode___closed__2; -x_27 = lean_array_push(x_26, x_15); -lean_inc(x_8); -x_28 = l_Lean_Elab_Term_mkLambda(x_1, x_27, x_7, x_8, x_25); -if (lean_obj_tag(x_28) == 0) +lean_dec(x_22); +x_25 = l_Lean_mkOptionalNode___closed__2; +x_26 = lean_array_push(x_25, x_14); +lean_inc(x_7); +x_27 = l_Lean_Elab_Term_mkLambda(x_26, x_6, x_7, x_24); +if (lean_obj_tag(x_27) == 0) { -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_29 = lean_ctor_get(x_28, 0); +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_27, 1); lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); -lean_inc(x_30); -lean_dec(x_28); -x_31 = l_Std_PersistentHashMap_mkCollisionNode___rarg___closed__1; -x_32 = lean_array_push(x_31, x_18); -x_33 = lean_array_push(x_32, x_24); -x_34 = lean_array_push(x_33, x_16); -x_35 = lean_array_push(x_34, x_29); -lean_inc(x_3); -x_36 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_35, x_35, x_10, x_3); -lean_dec(x_35); -x_5 = x_13; -x_6 = lean_box(0); -x_7 = x_36; -x_9 = x_30; +lean_dec(x_27); +x_30 = l_Std_PersistentHashMap_mkCollisionNode___rarg___closed__1; +x_31 = lean_array_push(x_30, x_17); +x_32 = lean_array_push(x_31, x_23); +x_33 = lean_array_push(x_32, x_15); +x_34 = lean_array_push(x_33, x_28); +lean_inc(x_2); +x_35 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_34, x_34, x_9, x_2); +lean_dec(x_34); +x_4 = x_12; +x_5 = lean_box(0); +x_6 = x_35; +x_8 = x_29; goto _start; } else { -uint8_t x_38; -lean_dec(x_24); -lean_dec(x_18); +uint8_t x_37; +lean_dec(x_23); +lean_dec(x_17); +lean_dec(x_15); +lean_dec(x_12); +lean_dec(x_7); +lean_dec(x_2); +x_37 = !lean_is_exclusive(x_27); +if (x_37 == 0) +{ +return x_27; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_27, 0); +x_39 = lean_ctor_get(x_27, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_27); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; +} +} +} +else +{ +uint8_t x_41; +lean_dec(x_17); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +x_41 = !lean_is_exclusive(x_22); +if (x_41 == 0) +{ +return x_22; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_22, 0); +x_43 = lean_ctor_get(x_22, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_22); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_42); +lean_ctor_set(x_44, 1, x_43); +return x_44; +} +} +} +else +{ +uint8_t x_45; +lean_dec(x_17); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +x_45 = !lean_is_exclusive(x_19); +if (x_45 == 0) +{ +return x_19; +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_19, 0); +x_47 = lean_ctor_get(x_19, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_19); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; +} +} +} +else +{ +uint8_t x_49; +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +x_49 = !lean_is_exclusive(x_16); +if (x_49 == 0) +{ +return x_16; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_16, 0); +x_51 = lean_ctor_get(x_16, 1); +lean_inc(x_51); +lean_inc(x_50); lean_dec(x_16); -lean_dec(x_13); +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +return x_52; +} +} +} +else +{ +lean_object* x_53; +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_2); +x_53 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_53, 0, x_6); +lean_ctor_set(x_53, 1, x_8); +return x_53; +} +} +} +lean_object* l___private_Lean_Elab_DoNotation_10__mkBind(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; +x_7 = l_Array_isEmpty___rarg(x_3); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_8 = l_Array_back___at___private_Lean_Elab_DoNotation_10__mkBind___spec__1(x_3); +x_9 = lean_ctor_get(x_8, 1); +lean_inc(x_9); lean_dec(x_8); -lean_dec(x_3); -x_38 = !lean_is_exclusive(x_28); +lean_inc(x_5); +x_10 = l_Lean_Elab_Term_inferType(x_9, x_5, x_6); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +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); +lean_inc(x_5); +x_13 = l_Lean_Elab_Term_getDecLevel(x_11, x_5, x_12); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +lean_inc(x_5); +lean_inc(x_4); +x_16 = l_Lean_Elab_Term_inferType(x_4, x_5, x_15); +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_5); +x_19 = l_Lean_Elab_Term_getDecLevel(x_17, x_5, x_18); +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_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = lean_box(0); +x_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_20); +lean_ctor_set(x_23, 1, x_22); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_14); +lean_ctor_set(x_24, 1, x_23); +x_25 = l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__7; +x_26 = l_Lean_mkConst(x_25, x_24); +x_27 = l_Lean_mkAppB(x_26, x_1, x_2); +x_28 = lean_array_get_size(x_3); +x_29 = l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at___private_Lean_Elab_DoNotation_10__mkBind___spec__2(x_3, x_27, x_3, x_28, lean_box(0), x_4, x_5, x_21); +return x_29; +} +else +{ +uint8_t x_30; +lean_dec(x_14); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_30 = !lean_is_exclusive(x_19); +if (x_30 == 0) +{ +return x_19; +} +else +{ +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_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_14); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_34 = !lean_is_exclusive(x_16); +if (x_34 == 0) +{ +return x_16; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_16, 0); +x_36 = lean_ctor_get(x_16, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_16); +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; +} +} +} +else +{ +uint8_t x_38; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_38 = !lean_is_exclusive(x_13); if (x_38 == 0) { -return x_28; +return x_13; } else { lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_28, 0); -x_40 = lean_ctor_get(x_28, 1); +x_39 = lean_ctor_get(x_13, 0); +x_40 = lean_ctor_get(x_13, 1); lean_inc(x_40); lean_inc(x_39); -lean_dec(x_28); +lean_dec(x_13); x_41 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_41, 0, x_39); lean_ctor_set(x_41, 1, x_40); @@ -4446,26 +4674,23 @@ return x_41; else { uint8_t x_42; -lean_dec(x_18); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_13); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_3); -x_42 = !lean_is_exclusive(x_23); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_42 = !lean_is_exclusive(x_10); if (x_42 == 0) { -return x_23; +return x_10; } else { lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_23, 0); -x_44 = lean_ctor_get(x_23, 1); +x_43 = lean_ctor_get(x_10, 0); +x_44 = lean_ctor_get(x_10, 1); lean_inc(x_44); lean_inc(x_43); -lean_dec(x_23); +lean_dec(x_10); x_45 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_45, 0, x_43); lean_ctor_set(x_45, 1, x_44); @@ -4475,266 +4700,17 @@ return x_45; } else { -uint8_t x_46; -lean_dec(x_18); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_13); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_3); -x_46 = !lean_is_exclusive(x_20); -if (x_46 == 0) -{ -return x_20; -} -else -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = lean_ctor_get(x_20, 0); -x_48 = lean_ctor_get(x_20, 1); -lean_inc(x_48); -lean_inc(x_47); -lean_dec(x_20); -x_49 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -return x_49; -} -} -} -else -{ -uint8_t x_50; -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_13); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_3); -x_50 = !lean_is_exclusive(x_17); -if (x_50 == 0) -{ -return x_17; -} -else -{ -lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_17, 0); -x_52 = lean_ctor_get(x_17, 1); -lean_inc(x_52); -lean_inc(x_51); -lean_dec(x_17); -x_53 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_53, 0, x_51); -lean_ctor_set(x_53, 1, x_52); -return x_53; -} -} -} -else -{ -lean_object* x_54; -lean_dec(x_8); +lean_object* x_46; lean_dec(x_5); -lean_dec(x_3); -x_54 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_54, 0, x_7); -lean_ctor_set(x_54, 1, x_9); -return x_54; -} -} -} -lean_object* l___private_Lean_Elab_DoNotation_10__mkBind(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -uint8_t x_8; -x_8 = l_Array_isEmpty___rarg(x_4); -if (x_8 == 0) -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_9 = l_Array_back___at___private_Lean_Elab_DoNotation_10__mkBind___spec__1(x_4); -x_10 = lean_ctor_get(x_9, 1); -lean_inc(x_10); -lean_dec(x_9); -lean_inc(x_6); -x_11 = l_Lean_Elab_Term_inferType(x_1, x_10, x_6, x_7); -if (lean_obj_tag(x_11) == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; -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); -lean_inc(x_6); -x_14 = l_Lean_Elab_Term_getDecLevel(x_1, x_12, x_6, x_13); -if (lean_obj_tag(x_14) == 0) -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -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); -lean_inc(x_6); -lean_inc(x_5); -x_17 = l_Lean_Elab_Term_inferType(x_1, x_5, x_6, x_16); -if (lean_obj_tag(x_17) == 0) -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); -x_19 = lean_ctor_get(x_17, 1); -lean_inc(x_19); -lean_dec(x_17); -lean_inc(x_6); -x_20 = l_Lean_Elab_Term_getDecLevel(x_1, x_18, x_6, x_19); -if (lean_obj_tag(x_20) == 0) -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -x_22 = lean_ctor_get(x_20, 1); -lean_inc(x_22); -lean_dec(x_20); -x_23 = lean_box(0); -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_21); -lean_ctor_set(x_24, 1, x_23); -x_25 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_25, 0, x_15); -lean_ctor_set(x_25, 1, x_24); -x_26 = l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__7; -x_27 = l_Lean_mkConst(x_26, x_25); -x_28 = l_Lean_mkAppB(x_27, x_2, x_3); -x_29 = lean_array_get_size(x_4); -x_30 = l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at___private_Lean_Elab_DoNotation_10__mkBind___spec__2(x_1, x_4, x_28, x_4, x_29, lean_box(0), x_5, x_6, x_22); -return x_30; -} -else -{ -uint8_t x_31; -lean_dec(x_15); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); lean_dec(x_2); -x_31 = !lean_is_exclusive(x_20); -if (x_31 == 0) -{ -return x_20; -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_20, 0); -x_33 = lean_ctor_get(x_20, 1); -lean_inc(x_33); -lean_inc(x_32); -lean_dec(x_20); -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; -} -} -} -else -{ -uint8_t x_35; -lean_dec(x_15); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_35 = !lean_is_exclusive(x_17); -if (x_35 == 0) -{ -return x_17; -} -else -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_17, 0); -x_37 = lean_ctor_get(x_17, 1); -lean_inc(x_37); -lean_inc(x_36); -lean_dec(x_17); -x_38 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_38, 0, x_36); -lean_ctor_set(x_38, 1, x_37); -return x_38; -} -} -} -else -{ -uint8_t x_39; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_39 = !lean_is_exclusive(x_14); -if (x_39 == 0) -{ -return x_14; -} -else -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_14, 0); -x_41 = lean_ctor_get(x_14, 1); -lean_inc(x_41); -lean_inc(x_40); -lean_dec(x_14); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -return x_42; -} -} -} -else -{ -uint8_t x_43; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_43 = !lean_is_exclusive(x_11); -if (x_43 == 0) -{ -return x_11; -} -else -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_11, 0); -x_45 = lean_ctor_get(x_11, 1); -lean_inc(x_45); -lean_inc(x_44); -lean_dec(x_11); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_44); -lean_ctor_set(x_46, 1, x_45); +lean_dec(x_1); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_4); +lean_ctor_set(x_46, 1, x_6); return x_46; } } } -else -{ -lean_object* x_47; -lean_dec(x_6); -lean_dec(x_3); -lean_dec(x_2); -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_5); -lean_ctor_set(x_47, 1, x_7); -return x_47; -} -} -} lean_object* l_Array_back___at___private_Lean_Elab_DoNotation_10__mkBind___spec__1___boxed(lean_object* x_1) { _start: { @@ -4744,25 +4720,23 @@ lean_dec(x_1); return x_2; } } -lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at___private_Lean_Elab_DoNotation_10__mkBind___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* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at___private_Lean_Elab_DoNotation_10__mkBind___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) { _start: { -lean_object* x_10; -x_10 = l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at___private_Lean_Elab_DoNotation_10__mkBind___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_4); -lean_dec(x_2); +lean_object* x_9; +x_9 = l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at___private_Lean_Elab_DoNotation_10__mkBind___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_3); lean_dec(x_1); -return x_10; +return x_9; } } -lean_object* l___private_Lean_Elab_DoNotation_10__mkBind___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* l___private_Lean_Elab_DoNotation_10__mkBind___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_8; -x_8 = l___private_Lean_Elab_DoNotation_10__mkBind(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_4); -lean_dec(x_1); -return x_8; +lean_object* x_7; +x_7 = l___private_Lean_Elab_DoNotation_10__mkBind(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_3); +return x_7; } } lean_object* l___private_Lean_Elab_DoNotation_11__processDoElemsAux___main___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) { @@ -4850,209 +4824,243 @@ return x_2; lean_object* l___private_Lean_Elab_DoNotation_11__processDoElemsAux___main(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; lean_object* x_11; lean_object* x_12; uint8_t x_13; +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; uint8_t x_14; x_9 = l_Lean_Syntax_inhabited; x_10 = lean_array_get(x_9, x_1, x_5); lean_inc(x_10); x_11 = l_Lean_Syntax_getKind(x_10); x_12 = l_Lean_Parser_Term_doId___elambda__1___closed__2; x_13 = lean_name_eq(x_11, x_12); +x_14 = !lean_is_exclusive(x_7); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; uint8_t x_26; uint8_t x_27; lean_object* x_28; +x_15 = lean_ctor_get(x_7, 0); +x_16 = lean_ctor_get(x_7, 1); +x_17 = lean_ctor_get(x_7, 2); +x_18 = lean_ctor_get(x_7, 3); +x_19 = lean_ctor_get(x_7, 4); +x_20 = lean_ctor_get(x_7, 5); +x_21 = lean_ctor_get(x_7, 6); +x_22 = lean_ctor_get(x_7, 7); +x_23 = lean_ctor_get(x_7, 8); +x_24 = lean_ctor_get(x_7, 9); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_26 = lean_ctor_get_uint8(x_7, sizeof(void*)*11 + 1); +x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*11 + 2); +x_28 = lean_ctor_get(x_7, 10); +lean_dec(x_28); +lean_inc(x_10); +lean_inc(x_24); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_ctor_set(x_7, 10, x_10); if (x_13 == 0) { -lean_object* x_14; uint8_t x_15; -x_14 = l_Lean_Parser_Term_doExpr___elambda__1___closed__2; -x_15 = lean_name_eq(x_11, x_14); +lean_object* x_29; uint8_t x_30; +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +x_29 = l_Lean_Parser_Term_doExpr___elambda__1___closed__2; +x_30 = lean_name_eq(x_11, x_29); lean_dec(x_11); -if (x_15 == 0) +if (x_30 == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -lean_inc(x_10); -x_16 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_16, 0, x_10); -x_17 = l___private_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__4; -x_18 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_16); -x_19 = l_Lean_Elab_Term_throwError___rarg(x_10, x_18, x_7, x_8); -lean_dec(x_10); -return x_19; +x_31 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_31, 0, x_10); +x_32 = l___private_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__4; +x_33 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_31); +x_34 = l_Lean_Elab_Term_throwError___rarg(x_33, x_7, x_8); +return x_34; } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; -x_20 = lean_array_get_size(x_1); +lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; +x_35 = lean_array_get_size(x_1); lean_dec(x_1); -x_21 = lean_unsigned_to_nat(1u); -x_22 = lean_nat_sub(x_20, x_21); -lean_dec(x_20); -x_23 = lean_nat_dec_eq(x_5, x_22); -lean_dec(x_22); +x_36 = lean_unsigned_to_nat(1u); +x_37 = lean_nat_sub(x_35, x_36); +lean_dec(x_35); +x_38 = lean_nat_dec_eq(x_5, x_37); +lean_dec(x_37); lean_dec(x_5); -x_24 = lean_unsigned_to_nat(0u); -x_25 = l_Lean_Syntax_getArg(x_10, x_24); -x_26 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_26, 0, x_4); -if (x_23 == 0) +x_39 = lean_unsigned_to_nat(0u); +x_40 = l_Lean_Syntax_getArg(x_10, x_39); +x_41 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_41, 0, x_4); +if (x_38 == 0) { -uint8_t x_57; -x_57 = 1; -x_27 = x_57; -goto block_56; +uint8_t x_72; +x_72 = 1; +x_42 = x_72; +goto block_71; } else { -uint8_t x_58; -x_58 = 0; -x_27 = x_58; -goto block_56; +uint8_t x_73; +x_73 = 0; +x_42 = x_73; +goto block_71; } -block_56: +block_71: { -uint8_t x_28; -if (x_27 == 0) +uint8_t x_43; +if (x_42 == 0) { -uint8_t x_54; -x_54 = 0; -x_28 = x_54; -goto block_53; +uint8_t x_69; +x_69 = 0; +x_43 = x_69; +goto block_68; } else { -uint8_t x_55; -x_55 = 1; -x_28 = x_55; -goto block_53; +uint8_t x_70; +x_70 = 1; +x_43 = x_70; +goto block_68; } -block_53: +block_68: { -if (x_28 == 0) +if (x_43 == 0) { -uint8_t x_29; lean_object* x_30; -x_29 = 1; +uint8_t x_44; lean_object* x_45; +lean_dec(x_10); +x_44 = 1; lean_inc(x_7); -lean_inc(x_26); -x_30 = l_Lean_Elab_Term_elabTermAux___main(x_26, x_29, x_29, x_25, x_7, x_8); -if (lean_obj_tag(x_30) == 0) +lean_inc(x_41); +x_45 = l_Lean_Elab_Term_elabTerm(x_40, x_41, x_44, x_7, x_8); +if (lean_obj_tag(x_45) == 0) { -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_30, 1); -lean_inc(x_32); -lean_dec(x_30); +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_45, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_45, 1); +lean_inc(x_47); +lean_dec(x_45); lean_inc(x_7); -lean_inc(x_10); -x_33 = l_Lean_Elab_Term_ensureHasType(x_10, x_26, x_31, x_7, x_32); -if (lean_obj_tag(x_33) == 0) +x_48 = l_Lean_Elab_Term_ensureHasType(x_41, x_46, x_7, x_47); +if (lean_obj_tag(x_48) == 0) { -lean_object* x_34; lean_object* x_35; lean_object* x_36; -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 = l___private_Lean_Elab_DoNotation_10__mkBind(x_10, x_2, x_3, x_6, x_34, x_7, x_35); +lean_object* x_49; lean_object* x_50; lean_object* x_51; +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 = l___private_Lean_Elab_DoNotation_10__mkBind(x_2, x_3, x_6, x_49, x_7, x_50); lean_dec(x_6); -lean_dec(x_10); -return x_36; +return x_51; } else { -uint8_t x_37; -lean_dec(x_10); +uint8_t x_52; lean_dec(x_7); lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); -x_37 = !lean_is_exclusive(x_33); -if (x_37 == 0) -{ -return x_33; -} -else -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_33, 0); -x_39 = lean_ctor_get(x_33, 1); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_33); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -return x_40; -} -} -} -else -{ -uint8_t x_41; -lean_dec(x_26); -lean_dec(x_10); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_3); -lean_dec(x_2); -x_41 = !lean_is_exclusive(x_30); -if (x_41 == 0) -{ -return x_30; -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_30, 0); -x_43 = lean_ctor_get(x_30, 1); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_30); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -return x_44; -} -} -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; -lean_dec(x_26); -lean_dec(x_25); -lean_dec(x_6); -lean_dec(x_3); -lean_dec(x_2); -lean_inc(x_10); -x_45 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_45, 0, x_10); -x_46 = l___private_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__4; -x_47 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -x_48 = l_Lean_Elab_Term_throwError___rarg(x_10, x_47, x_7, x_8); -lean_dec(x_10); -x_49 = !lean_is_exclusive(x_48); -if (x_49 == 0) +x_52 = !lean_is_exclusive(x_48); +if (x_52 == 0) { return x_48; } else { -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_48, 0); -x_51 = lean_ctor_get(x_48, 1); -lean_inc(x_51); -lean_inc(x_50); +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_48, 0); +x_54 = lean_ctor_get(x_48, 1); +lean_inc(x_54); +lean_inc(x_53); lean_dec(x_48); -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_50); -lean_ctor_set(x_52, 1, x_51); -return x_52; +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_53); +lean_ctor_set(x_55, 1, x_54); +return x_55; +} +} +} +else +{ +uint8_t x_56; +lean_dec(x_41); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +x_56 = !lean_is_exclusive(x_45); +if (x_56 == 0) +{ +return x_45; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_45, 0); +x_58 = lean_ctor_get(x_45, 1); +lean_inc(x_58); +lean_inc(x_57); +lean_dec(x_45); +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 +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +lean_dec(x_41); +lean_dec(x_40); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +x_60 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_60, 0, x_10); +x_61 = l___private_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__4; +x_62 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_60); +x_63 = l_Lean_Elab_Term_throwError___rarg(x_62, x_7, x_8); +x_64 = !lean_is_exclusive(x_63); +if (x_64 == 0) +{ +return x_63; +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_63, 0); +x_66 = lean_ctor_get(x_63, 1); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_63); +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; } } } @@ -5061,149 +5069,142 @@ return x_52; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +lean_object* x_74; lean_object* x_75; lean_object* x_76; uint8_t x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_dec(x_11); -x_59 = lean_array_get_size(x_1); -x_60 = lean_unsigned_to_nat(1u); -x_61 = lean_nat_sub(x_59, x_60); -lean_dec(x_59); -x_62 = lean_nat_dec_eq(x_5, x_61); -lean_dec(x_61); -x_63 = lean_unsigned_to_nat(0u); -x_64 = l_Lean_Syntax_getIdAt(x_10, x_63); -x_65 = l_Lean_Syntax_getArg(x_10, x_60); -x_66 = l_Lean_Elab_Term_expandOptType(x_10, x_65); -lean_dec(x_65); -x_67 = lean_unsigned_to_nat(3u); -x_68 = l_Lean_Syntax_getArg(x_10, x_67); -if (x_62 == 0) -{ -lean_object* x_69; -lean_inc(x_7); -x_69 = l_Lean_Elab_Term_elabType(x_66, x_7, x_8); -if (lean_obj_tag(x_69) == 0) -{ -lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; lean_object* x_75; -x_70 = lean_ctor_get(x_69, 0); -lean_inc(x_70); -x_71 = lean_ctor_get(x_69, 1); -lean_inc(x_71); -lean_dec(x_69); -lean_inc(x_70); -lean_inc(x_2); -x_72 = l_Lean_mkApp(x_2, x_70); -x_73 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_73, 0, x_72); -x_74 = 1; -lean_inc(x_7); -lean_inc(x_68); -lean_inc(x_73); -x_75 = l_Lean_Elab_Term_elabTermAux___main(x_73, x_74, x_74, x_68, x_7, x_71); -if (lean_obj_tag(x_75) == 0) -{ -lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_76 = lean_ctor_get(x_75, 0); -lean_inc(x_76); -x_77 = lean_ctor_get(x_75, 1); -lean_inc(x_77); -lean_dec(x_75); -lean_inc(x_7); -x_78 = l_Lean_Elab_Term_ensureHasType(x_68, x_73, x_76, x_7, x_77); -if (lean_obj_tag(x_78) == 0) -{ -lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t x_82; lean_object* x_83; -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_81 = lean_alloc_closure((void*)(l___private_Lean_Elab_DoNotation_11__processDoElemsAux___main___lambda__1___boxed), 10, 7); -lean_closure_set(x_81, 0, x_5); -lean_closure_set(x_81, 1, x_79); -lean_closure_set(x_81, 2, x_6); -lean_closure_set(x_81, 3, x_1); -lean_closure_set(x_81, 4, x_2); -lean_closure_set(x_81, 5, x_3); -lean_closure_set(x_81, 6, x_4); -x_82 = 0; -x_83 = l_Lean_Elab_Term_withLocalDecl___rarg(x_10, x_64, x_82, x_70, x_81, x_7, x_80); +x_74 = lean_array_get_size(x_1); +x_75 = lean_unsigned_to_nat(1u); +x_76 = lean_nat_sub(x_74, x_75); +lean_dec(x_74); +x_77 = lean_nat_dec_eq(x_5, x_76); +lean_dec(x_76); +x_78 = lean_unsigned_to_nat(0u); +x_79 = l_Lean_Syntax_getIdAt(x_10, x_78); +x_80 = l_Lean_Syntax_getArg(x_10, x_75); +x_81 = l_Lean_Elab_Term_expandOptType(x_10, x_80); +lean_dec(x_80); +x_82 = lean_unsigned_to_nat(3u); +x_83 = l_Lean_Syntax_getArg(x_10, x_82); lean_dec(x_10); -return x_83; +if (x_77 == 0) +{ +x_84 = x_8; +goto block_113; } else { -uint8_t x_84; -lean_dec(x_70); -lean_dec(x_64); -lean_dec(x_10); -lean_dec(x_7); +lean_object* x_114; lean_object* x_115; uint8_t x_116; +lean_dec(x_83); +lean_dec(x_81); +lean_dec(x_79); +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_84 = !lean_is_exclusive(x_78); -if (x_84 == 0) +x_114 = l___private_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__7; +x_115 = l_Lean_Elab_Term_throwError___rarg(x_114, x_7, x_8); +x_116 = !lean_is_exclusive(x_115); +if (x_116 == 0) { -return x_78; +return x_115; } else { -lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_85 = lean_ctor_get(x_78, 0); -x_86 = lean_ctor_get(x_78, 1); +lean_object* x_117; lean_object* x_118; lean_object* x_119; +x_117 = lean_ctor_get(x_115, 0); +x_118 = lean_ctor_get(x_115, 1); +lean_inc(x_118); +lean_inc(x_117); +lean_dec(x_115); +x_119 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_119, 0, x_117); +lean_ctor_set(x_119, 1, x_118); +return x_119; +} +} +block_113: +{ +lean_object* x_85; +lean_inc(x_7); +x_85 = l_Lean_Elab_Term_elabType(x_81, x_7, x_84); +if (lean_obj_tag(x_85) == 0) +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; lean_object* x_91; +x_86 = lean_ctor_get(x_85, 0); lean_inc(x_86); -lean_inc(x_85); -lean_dec(x_78); -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 -{ -uint8_t x_88; -lean_dec(x_73); -lean_dec(x_70); -lean_dec(x_68); -lean_dec(x_64); -lean_dec(x_10); -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); -x_88 = !lean_is_exclusive(x_75); -if (x_88 == 0) -{ -return x_75; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_75, 0); -x_90 = lean_ctor_get(x_75, 1); -lean_inc(x_90); +x_87 = lean_ctor_get(x_85, 1); +lean_inc(x_87); +lean_dec(x_85); +lean_inc(x_86); +lean_inc(x_2); +x_88 = l_Lean_mkApp(x_2, x_86); +x_89 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_89, 0, x_88); +x_90 = 1; +lean_inc(x_7); lean_inc(x_89); -lean_dec(x_75); -x_91 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_90); -return x_91; -} -} +lean_inc(x_83); +x_91 = l_Lean_Elab_Term_elabTerm(x_83, x_89, x_90, x_7, x_87); +if (lean_obj_tag(x_91) == 0) +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_92 = lean_ctor_get(x_91, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_91, 1); +lean_inc(x_93); +lean_dec(x_91); +x_94 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_94, 0, x_15); +lean_ctor_set(x_94, 1, x_16); +lean_ctor_set(x_94, 2, x_17); +lean_ctor_set(x_94, 3, x_18); +lean_ctor_set(x_94, 4, x_19); +lean_ctor_set(x_94, 5, x_20); +lean_ctor_set(x_94, 6, x_21); +lean_ctor_set(x_94, 7, x_22); +lean_ctor_set(x_94, 8, x_23); +lean_ctor_set(x_94, 9, x_24); +lean_ctor_set(x_94, 10, x_83); +lean_ctor_set_uint8(x_94, sizeof(void*)*11, x_25); +lean_ctor_set_uint8(x_94, sizeof(void*)*11 + 1, x_26); +lean_ctor_set_uint8(x_94, sizeof(void*)*11 + 2, x_27); +x_95 = l_Lean_Elab_Term_ensureHasType(x_89, x_92, x_94, x_93); +if (lean_obj_tag(x_95) == 0) +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; uint8_t x_99; lean_object* x_100; +x_96 = lean_ctor_get(x_95, 0); +lean_inc(x_96); +x_97 = lean_ctor_get(x_95, 1); +lean_inc(x_97); +lean_dec(x_95); +x_98 = lean_alloc_closure((void*)(l___private_Lean_Elab_DoNotation_11__processDoElemsAux___main___lambda__1___boxed), 10, 7); +lean_closure_set(x_98, 0, x_5); +lean_closure_set(x_98, 1, x_96); +lean_closure_set(x_98, 2, x_6); +lean_closure_set(x_98, 3, x_1); +lean_closure_set(x_98, 4, x_2); +lean_closure_set(x_98, 5, x_3); +lean_closure_set(x_98, 6, x_4); +x_99 = 0; +x_100 = l_Lean_Elab_Term_withLocalDecl___rarg(x_79, x_99, x_86, x_98, x_7, x_97); +return x_100; } else { -uint8_t x_92; -lean_dec(x_68); -lean_dec(x_64); -lean_dec(x_10); +uint8_t x_101; +lean_dec(x_86); +lean_dec(x_79); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -5211,58 +5212,636 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_92 = !lean_is_exclusive(x_69); -if (x_92 == 0) +x_101 = !lean_is_exclusive(x_95); +if (x_101 == 0) { -return x_69; -} -else -{ -lean_object* x_93; lean_object* x_94; lean_object* x_95; -x_93 = lean_ctor_get(x_69, 0); -x_94 = lean_ctor_get(x_69, 1); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_69); -x_95 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_95, 0, x_93); -lean_ctor_set(x_95, 1, x_94); return x_95; } +else +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_102 = lean_ctor_get(x_95, 0); +x_103 = lean_ctor_get(x_95, 1); +lean_inc(x_103); +lean_inc(x_102); +lean_dec(x_95); +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_96; lean_object* x_97; uint8_t x_98; -lean_dec(x_68); -lean_dec(x_66); -lean_dec(x_64); +uint8_t x_105; +lean_dec(x_89); +lean_dec(x_86); +lean_dec(x_83); +lean_dec(x_79); +lean_dec(x_7); +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_96 = l___private_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__7; -x_97 = l_Lean_Elab_Term_throwError___rarg(x_10, x_96, x_7, x_8); -lean_dec(x_10); -x_98 = !lean_is_exclusive(x_97); -if (x_98 == 0) +x_105 = !lean_is_exclusive(x_91); +if (x_105 == 0) { -return x_97; +return x_91; } else { -lean_object* x_99; lean_object* x_100; lean_object* x_101; -x_99 = lean_ctor_get(x_97, 0); -x_100 = lean_ctor_get(x_97, 1); -lean_inc(x_100); -lean_inc(x_99); -lean_dec(x_97); -x_101 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_101, 0, x_99); -lean_ctor_set(x_101, 1, x_100); -return x_101; +lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_106 = lean_ctor_get(x_91, 0); +x_107 = lean_ctor_get(x_91, 1); +lean_inc(x_107); +lean_inc(x_106); +lean_dec(x_91); +x_108 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_108, 0, x_106); +lean_ctor_set(x_108, 1, x_107); +return x_108; +} +} +} +else +{ +uint8_t x_109; +lean_dec(x_83); +lean_dec(x_79); +lean_dec(x_7); +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_109 = !lean_is_exclusive(x_85); +if (x_109 == 0) +{ +return x_85; +} +else +{ +lean_object* x_110; lean_object* x_111; lean_object* x_112; +x_110 = lean_ctor_get(x_85, 0); +x_111 = lean_ctor_get(x_85, 1); +lean_inc(x_111); +lean_inc(x_110); +lean_dec(x_85); +x_112 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_112, 0, x_110); +lean_ctor_set(x_112, 1, x_111); +return x_112; +} +} +} +} +} +else +{ +lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; uint8_t x_130; uint8_t x_131; uint8_t x_132; lean_object* x_133; +x_120 = lean_ctor_get(x_7, 0); +x_121 = lean_ctor_get(x_7, 1); +x_122 = lean_ctor_get(x_7, 2); +x_123 = lean_ctor_get(x_7, 3); +x_124 = lean_ctor_get(x_7, 4); +x_125 = lean_ctor_get(x_7, 5); +x_126 = lean_ctor_get(x_7, 6); +x_127 = lean_ctor_get(x_7, 7); +x_128 = lean_ctor_get(x_7, 8); +x_129 = lean_ctor_get(x_7, 9); +x_130 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_131 = lean_ctor_get_uint8(x_7, sizeof(void*)*11 + 1); +x_132 = lean_ctor_get_uint8(x_7, sizeof(void*)*11 + 2); +lean_inc(x_129); +lean_inc(x_128); +lean_inc(x_127); +lean_inc(x_126); +lean_inc(x_125); +lean_inc(x_124); +lean_inc(x_123); +lean_inc(x_122); +lean_inc(x_121); +lean_inc(x_120); +lean_dec(x_7); +lean_inc(x_10); +lean_inc(x_129); +lean_inc(x_128); +lean_inc(x_127); +lean_inc(x_126); +lean_inc(x_125); +lean_inc(x_124); +lean_inc(x_123); +lean_inc(x_122); +lean_inc(x_121); +lean_inc(x_120); +x_133 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_133, 0, x_120); +lean_ctor_set(x_133, 1, x_121); +lean_ctor_set(x_133, 2, x_122); +lean_ctor_set(x_133, 3, x_123); +lean_ctor_set(x_133, 4, x_124); +lean_ctor_set(x_133, 5, x_125); +lean_ctor_set(x_133, 6, x_126); +lean_ctor_set(x_133, 7, x_127); +lean_ctor_set(x_133, 8, x_128); +lean_ctor_set(x_133, 9, x_129); +lean_ctor_set(x_133, 10, x_10); +lean_ctor_set_uint8(x_133, sizeof(void*)*11, x_130); +lean_ctor_set_uint8(x_133, sizeof(void*)*11 + 1, x_131); +lean_ctor_set_uint8(x_133, sizeof(void*)*11 + 2, x_132); +if (x_13 == 0) +{ +lean_object* x_134; uint8_t x_135; +lean_dec(x_129); +lean_dec(x_128); +lean_dec(x_127); +lean_dec(x_126); +lean_dec(x_125); +lean_dec(x_124); +lean_dec(x_123); +lean_dec(x_122); +lean_dec(x_121); +lean_dec(x_120); +x_134 = l_Lean_Parser_Term_doExpr___elambda__1___closed__2; +x_135 = lean_name_eq(x_11, x_134); +lean_dec(x_11); +if (x_135 == 0) +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_136 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_136, 0, x_10); +x_137 = l___private_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__4; +x_138 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_138, 0, x_137); +lean_ctor_set(x_138, 1, x_136); +x_139 = l_Lean_Elab_Term_throwError___rarg(x_138, x_133, x_8); +return x_139; +} +else +{ +lean_object* x_140; lean_object* x_141; lean_object* x_142; uint8_t x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; uint8_t x_147; +x_140 = lean_array_get_size(x_1); +lean_dec(x_1); +x_141 = lean_unsigned_to_nat(1u); +x_142 = lean_nat_sub(x_140, x_141); +lean_dec(x_140); +x_143 = lean_nat_dec_eq(x_5, x_142); +lean_dec(x_142); +lean_dec(x_5); +x_144 = lean_unsigned_to_nat(0u); +x_145 = l_Lean_Syntax_getArg(x_10, x_144); +x_146 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_146, 0, x_4); +if (x_143 == 0) +{ +uint8_t x_177; +x_177 = 1; +x_147 = x_177; +goto block_176; +} +else +{ +uint8_t x_178; +x_178 = 0; +x_147 = x_178; +goto block_176; +} +block_176: +{ +uint8_t x_148; +if (x_147 == 0) +{ +uint8_t x_174; +x_174 = 0; +x_148 = x_174; +goto block_173; +} +else +{ +uint8_t x_175; +x_175 = 1; +x_148 = x_175; +goto block_173; +} +block_173: +{ +if (x_148 == 0) +{ +uint8_t x_149; lean_object* x_150; +lean_dec(x_10); +x_149 = 1; +lean_inc(x_133); +lean_inc(x_146); +x_150 = l_Lean_Elab_Term_elabTerm(x_145, x_146, x_149, x_133, x_8); +if (lean_obj_tag(x_150) == 0) +{ +lean_object* x_151; lean_object* x_152; lean_object* x_153; +x_151 = lean_ctor_get(x_150, 0); +lean_inc(x_151); +x_152 = lean_ctor_get(x_150, 1); +lean_inc(x_152); +lean_dec(x_150); +lean_inc(x_133); +x_153 = l_Lean_Elab_Term_ensureHasType(x_146, x_151, x_133, x_152); +if (lean_obj_tag(x_153) == 0) +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; +x_154 = lean_ctor_get(x_153, 0); +lean_inc(x_154); +x_155 = lean_ctor_get(x_153, 1); +lean_inc(x_155); +lean_dec(x_153); +x_156 = l___private_Lean_Elab_DoNotation_10__mkBind(x_2, x_3, x_6, x_154, x_133, x_155); +lean_dec(x_6); +return x_156; +} +else +{ +lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; +lean_dec(x_133); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +x_157 = lean_ctor_get(x_153, 0); +lean_inc(x_157); +x_158 = lean_ctor_get(x_153, 1); +lean_inc(x_158); +if (lean_is_exclusive(x_153)) { + lean_ctor_release(x_153, 0); + lean_ctor_release(x_153, 1); + x_159 = x_153; +} else { + lean_dec_ref(x_153); + 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_dec(x_146); +lean_dec(x_133); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +x_161 = lean_ctor_get(x_150, 0); +lean_inc(x_161); +x_162 = lean_ctor_get(x_150, 1); +lean_inc(x_162); +if (lean_is_exclusive(x_150)) { + lean_ctor_release(x_150, 0); + lean_ctor_release(x_150, 1); + x_163 = x_150; +} else { + lean_dec_ref(x_150); + x_163 = lean_box(0); +} +if (lean_is_scalar(x_163)) { + x_164 = lean_alloc_ctor(1, 2, 0); +} else { + x_164 = x_163; +} +lean_ctor_set(x_164, 0, x_161); +lean_ctor_set(x_164, 1, x_162); +return x_164; +} +} +else +{ +lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; +lean_dec(x_146); +lean_dec(x_145); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +x_165 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_165, 0, x_10); +x_166 = l___private_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__4; +x_167 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_167, 0, x_166); +lean_ctor_set(x_167, 1, x_165); +x_168 = l_Lean_Elab_Term_throwError___rarg(x_167, x_133, x_8); +x_169 = lean_ctor_get(x_168, 0); +lean_inc(x_169); +x_170 = lean_ctor_get(x_168, 1); +lean_inc(x_170); +if (lean_is_exclusive(x_168)) { + lean_ctor_release(x_168, 0); + lean_ctor_release(x_168, 1); + x_171 = x_168; +} else { + lean_dec_ref(x_168); + x_171 = lean_box(0); +} +if (lean_is_scalar(x_171)) { + x_172 = lean_alloc_ctor(1, 2, 0); +} else { + x_172 = x_171; +} +lean_ctor_set(x_172, 0, x_169); +lean_ctor_set(x_172, 1, x_170); +return x_172; +} +} +} +} +} +else +{ +lean_object* x_179; lean_object* x_180; lean_object* x_181; uint8_t x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; +lean_dec(x_11); +x_179 = lean_array_get_size(x_1); +x_180 = lean_unsigned_to_nat(1u); +x_181 = lean_nat_sub(x_179, x_180); +lean_dec(x_179); +x_182 = lean_nat_dec_eq(x_5, x_181); +lean_dec(x_181); +x_183 = lean_unsigned_to_nat(0u); +x_184 = l_Lean_Syntax_getIdAt(x_10, x_183); +x_185 = l_Lean_Syntax_getArg(x_10, x_180); +x_186 = l_Lean_Elab_Term_expandOptType(x_10, x_185); +lean_dec(x_185); +x_187 = lean_unsigned_to_nat(3u); +x_188 = l_Lean_Syntax_getArg(x_10, x_187); +lean_dec(x_10); +if (x_182 == 0) +{ +x_189 = x_8; +goto block_218; +} +else +{ +lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; +lean_dec(x_188); +lean_dec(x_186); +lean_dec(x_184); +lean_dec(x_129); +lean_dec(x_128); +lean_dec(x_127); +lean_dec(x_126); +lean_dec(x_125); +lean_dec(x_124); +lean_dec(x_123); +lean_dec(x_122); +lean_dec(x_121); +lean_dec(x_120); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_219 = l___private_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__7; +x_220 = l_Lean_Elab_Term_throwError___rarg(x_219, x_133, x_8); +x_221 = lean_ctor_get(x_220, 0); +lean_inc(x_221); +x_222 = lean_ctor_get(x_220, 1); +lean_inc(x_222); +if (lean_is_exclusive(x_220)) { + lean_ctor_release(x_220, 0); + lean_ctor_release(x_220, 1); + x_223 = x_220; +} else { + lean_dec_ref(x_220); + x_223 = lean_box(0); +} +if (lean_is_scalar(x_223)) { + x_224 = lean_alloc_ctor(1, 2, 0); +} else { + x_224 = x_223; +} +lean_ctor_set(x_224, 0, x_221); +lean_ctor_set(x_224, 1, x_222); +return x_224; +} +block_218: +{ +lean_object* x_190; +lean_inc(x_133); +x_190 = l_Lean_Elab_Term_elabType(x_186, x_133, x_189); +if (lean_obj_tag(x_190) == 0) +{ +lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; uint8_t x_195; lean_object* x_196; +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); +lean_inc(x_191); +lean_inc(x_2); +x_193 = l_Lean_mkApp(x_2, x_191); +x_194 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_194, 0, x_193); +x_195 = 1; +lean_inc(x_133); +lean_inc(x_194); +lean_inc(x_188); +x_196 = l_Lean_Elab_Term_elabTerm(x_188, x_194, x_195, x_133, x_192); +if (lean_obj_tag(x_196) == 0) +{ +lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; +x_197 = lean_ctor_get(x_196, 0); +lean_inc(x_197); +x_198 = lean_ctor_get(x_196, 1); +lean_inc(x_198); +lean_dec(x_196); +x_199 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_199, 0, x_120); +lean_ctor_set(x_199, 1, x_121); +lean_ctor_set(x_199, 2, x_122); +lean_ctor_set(x_199, 3, x_123); +lean_ctor_set(x_199, 4, x_124); +lean_ctor_set(x_199, 5, x_125); +lean_ctor_set(x_199, 6, x_126); +lean_ctor_set(x_199, 7, x_127); +lean_ctor_set(x_199, 8, x_128); +lean_ctor_set(x_199, 9, x_129); +lean_ctor_set(x_199, 10, x_188); +lean_ctor_set_uint8(x_199, sizeof(void*)*11, x_130); +lean_ctor_set_uint8(x_199, sizeof(void*)*11 + 1, x_131); +lean_ctor_set_uint8(x_199, sizeof(void*)*11 + 2, x_132); +x_200 = l_Lean_Elab_Term_ensureHasType(x_194, x_197, x_199, x_198); +if (lean_obj_tag(x_200) == 0) +{ +lean_object* x_201; lean_object* x_202; lean_object* x_203; uint8_t x_204; lean_object* x_205; +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); +x_203 = lean_alloc_closure((void*)(l___private_Lean_Elab_DoNotation_11__processDoElemsAux___main___lambda__1___boxed), 10, 7); +lean_closure_set(x_203, 0, x_5); +lean_closure_set(x_203, 1, x_201); +lean_closure_set(x_203, 2, x_6); +lean_closure_set(x_203, 3, x_1); +lean_closure_set(x_203, 4, x_2); +lean_closure_set(x_203, 5, x_3); +lean_closure_set(x_203, 6, x_4); +x_204 = 0; +x_205 = l_Lean_Elab_Term_withLocalDecl___rarg(x_184, x_204, x_191, x_203, x_133, x_202); +return x_205; +} +else +{ +lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; +lean_dec(x_191); +lean_dec(x_184); +lean_dec(x_133); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_206 = lean_ctor_get(x_200, 0); +lean_inc(x_206); +x_207 = lean_ctor_get(x_200, 1); +lean_inc(x_207); +if (lean_is_exclusive(x_200)) { + lean_ctor_release(x_200, 0); + lean_ctor_release(x_200, 1); + x_208 = x_200; +} else { + lean_dec_ref(x_200); + x_208 = lean_box(0); +} +if (lean_is_scalar(x_208)) { + x_209 = lean_alloc_ctor(1, 2, 0); +} else { + x_209 = x_208; +} +lean_ctor_set(x_209, 0, x_206); +lean_ctor_set(x_209, 1, x_207); +return x_209; +} +} +else +{ +lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; +lean_dec(x_194); +lean_dec(x_191); +lean_dec(x_188); +lean_dec(x_184); +lean_dec(x_133); +lean_dec(x_129); +lean_dec(x_128); +lean_dec(x_127); +lean_dec(x_126); +lean_dec(x_125); +lean_dec(x_124); +lean_dec(x_123); +lean_dec(x_122); +lean_dec(x_121); +lean_dec(x_120); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_210 = lean_ctor_get(x_196, 0); +lean_inc(x_210); +x_211 = lean_ctor_get(x_196, 1); +lean_inc(x_211); +if (lean_is_exclusive(x_196)) { + lean_ctor_release(x_196, 0); + lean_ctor_release(x_196, 1); + x_212 = x_196; +} else { + lean_dec_ref(x_196); + x_212 = lean_box(0); +} +if (lean_is_scalar(x_212)) { + x_213 = lean_alloc_ctor(1, 2, 0); +} else { + x_213 = x_212; +} +lean_ctor_set(x_213, 0, x_210); +lean_ctor_set(x_213, 1, x_211); +return x_213; +} +} +else +{ +lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; +lean_dec(x_188); +lean_dec(x_184); +lean_dec(x_133); +lean_dec(x_129); +lean_dec(x_128); +lean_dec(x_127); +lean_dec(x_126); +lean_dec(x_125); +lean_dec(x_124); +lean_dec(x_123); +lean_dec(x_122); +lean_dec(x_121); +lean_dec(x_120); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_214 = lean_ctor_get(x_190, 0); +lean_inc(x_214); +x_215 = lean_ctor_get(x_190, 1); +lean_inc(x_215); +if (lean_is_exclusive(x_190)) { + lean_ctor_release(x_190, 0); + lean_ctor_release(x_190, 1); + x_216 = x_190; +} else { + lean_dec_ref(x_190); + x_216 = lean_box(0); +} +if (lean_is_scalar(x_216)) { + x_217 = lean_alloc_ctor(1, 2, 0); +} else { + x_217 = x_216; +} +lean_ctor_set(x_217, 0, x_214); +lean_ctor_set(x_217, 1, x_215); +return x_217; +} } } } @@ -5308,210 +5887,210 @@ return x_3; lean_object* l_Lean_Elab_Term_elabDo(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_82; +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_86; x_5 = l___private_Lean_Elab_DoNotation_3__getDoElems(x_1); -x_82 = l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(x_2, x_3, x_4); -if (lean_obj_tag(x_82) == 0) +x_86 = l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(x_2, x_3, x_4); +if (lean_obj_tag(x_86) == 0) { -lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; lean_object* x_102; lean_object* x_103; -x_83 = lean_ctor_get(x_82, 1); -lean_inc(x_83); -lean_dec(x_82); -x_84 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_83); -x_85 = lean_ctor_get(x_84, 0); -lean_inc(x_85); -x_86 = lean_ctor_get(x_84, 1); -lean_inc(x_86); -lean_dec(x_84); -x_87 = l_Lean_Elab_Term_getEnv___rarg(x_86); -x_88 = lean_ctor_get(x_87, 1); -lean_inc(x_88); -x_89 = lean_ctor_get(x_87, 0); +lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; 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; uint8_t x_105; lean_object* x_106; lean_object* x_107; +x_87 = lean_ctor_get(x_86, 1); +lean_inc(x_87); +lean_dec(x_86); +x_88 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_87); +x_89 = lean_ctor_get(x_88, 0); lean_inc(x_89); -lean_dec(x_87); -x_90 = lean_ctor_get(x_88, 0); +x_90 = lean_ctor_get(x_88, 1); lean_inc(x_90); -x_91 = lean_ctor_get(x_88, 1); -lean_inc(x_91); -x_92 = lean_ctor_get(x_88, 2); -lean_inc(x_92); -x_93 = lean_ctor_get(x_88, 3); -lean_inc(x_93); -x_94 = lean_ctor_get(x_88, 4); -lean_inc(x_94); -x_95 = lean_ctor_get(x_88, 5); -lean_inc(x_95); -x_96 = lean_ctor_get(x_3, 0); -lean_inc(x_96); -x_97 = lean_ctor_get(x_96, 3); -lean_inc(x_97); -x_98 = lean_ctor_get(x_96, 4); -lean_inc(x_98); -lean_dec(x_96); -x_99 = lean_environment_main_module(x_89); -x_100 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_100, 0, x_99); -lean_ctor_set(x_100, 1, x_85); -lean_ctor_set(x_100, 2, x_97); -lean_ctor_set(x_100, 3, x_98); -x_101 = 0; -x_102 = lean_unsigned_to_nat(0u); -lean_inc(x_5); -x_103 = l___private_Lean_Elab_DoNotation_7__expandDoElemsAux___main(x_101, x_5, x_102, x_100, x_95); -if (lean_obj_tag(x_103) == 0) -{ -uint8_t x_104; -x_104 = !lean_is_exclusive(x_88); -if (x_104 == 0) -{ -lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; -x_105 = lean_ctor_get(x_88, 5); -lean_dec(x_105); -x_106 = lean_ctor_get(x_88, 4); -lean_dec(x_106); -x_107 = lean_ctor_get(x_88, 3); -lean_dec(x_107); -x_108 = lean_ctor_get(x_88, 2); -lean_dec(x_108); -x_109 = lean_ctor_get(x_88, 1); -lean_dec(x_109); -x_110 = lean_ctor_get(x_88, 0); -lean_dec(x_110); -x_111 = lean_ctor_get(x_103, 0); -lean_inc(x_111); -x_112 = lean_ctor_get(x_103, 1); -lean_inc(x_112); -lean_dec(x_103); -lean_ctor_set(x_88, 5, x_112); -x_6 = x_111; -x_7 = x_88; -goto block_81; -} -else -{ -lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_dec(x_88); -x_113 = lean_ctor_get(x_103, 0); -lean_inc(x_113); -x_114 = lean_ctor_get(x_103, 1); -lean_inc(x_114); -lean_dec(x_103); -x_115 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_115, 0, x_90); -lean_ctor_set(x_115, 1, x_91); -lean_ctor_set(x_115, 2, x_92); -lean_ctor_set(x_115, 3, x_93); -lean_ctor_set(x_115, 4, x_94); -lean_ctor_set(x_115, 5, x_114); -x_6 = x_113; -x_7 = x_115; -goto block_81; +x_91 = l_Lean_Elab_Term_getEnv___rarg(x_90); +x_92 = lean_ctor_get(x_91, 1); +lean_inc(x_92); +x_93 = lean_ctor_get(x_91, 0); +lean_inc(x_93); +lean_dec(x_91); +x_94 = lean_ctor_get(x_92, 0); +lean_inc(x_94); +x_95 = lean_ctor_get(x_92, 1); +lean_inc(x_95); +x_96 = lean_ctor_get(x_92, 2); +lean_inc(x_96); +x_97 = lean_ctor_get(x_92, 3); +lean_inc(x_97); +x_98 = lean_ctor_get(x_92, 4); +lean_inc(x_98); +x_99 = lean_ctor_get(x_92, 5); +lean_inc(x_99); +x_100 = lean_ctor_get(x_3, 0); +lean_inc(x_100); +x_101 = lean_ctor_get(x_100, 3); +lean_inc(x_101); +x_102 = lean_ctor_get(x_100, 4); +lean_inc(x_102); +lean_dec(x_100); +x_103 = lean_environment_main_module(x_93); +x_104 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_104, 0, x_103); +lean_ctor_set(x_104, 1, x_89); +lean_ctor_set(x_104, 2, x_101); +lean_ctor_set(x_104, 3, x_102); +x_105 = 0; +x_106 = lean_unsigned_to_nat(0u); +lean_inc(x_5); +x_107 = l___private_Lean_Elab_DoNotation_7__expandDoElemsAux___main(x_105, x_5, x_106, x_104, x_99); +if (lean_obj_tag(x_107) == 0) +{ +uint8_t x_108; +x_108 = !lean_is_exclusive(x_92); +if (x_108 == 0) +{ +lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; +x_109 = lean_ctor_get(x_92, 5); +lean_dec(x_109); +x_110 = lean_ctor_get(x_92, 4); +lean_dec(x_110); +x_111 = lean_ctor_get(x_92, 3); +lean_dec(x_111); +x_112 = lean_ctor_get(x_92, 2); +lean_dec(x_112); +x_113 = lean_ctor_get(x_92, 1); +lean_dec(x_113); +x_114 = lean_ctor_get(x_92, 0); +lean_dec(x_114); +x_115 = lean_ctor_get(x_107, 0); +lean_inc(x_115); +x_116 = lean_ctor_get(x_107, 1); +lean_inc(x_116); +lean_dec(x_107); +lean_ctor_set(x_92, 5, x_116); +x_6 = x_115; +x_7 = x_92; +goto block_85; +} +else +{ +lean_object* x_117; lean_object* x_118; lean_object* x_119; +lean_dec(x_92); +x_117 = lean_ctor_get(x_107, 0); +lean_inc(x_117); +x_118 = lean_ctor_get(x_107, 1); +lean_inc(x_118); +lean_dec(x_107); +x_119 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_119, 0, x_94); +lean_ctor_set(x_119, 1, x_95); +lean_ctor_set(x_119, 2, x_96); +lean_ctor_set(x_119, 3, x_97); +lean_ctor_set(x_119, 4, x_98); +lean_ctor_set(x_119, 5, x_118); +x_6 = x_117; +x_7 = x_119; +goto block_85; } } else { -lean_object* x_116; +lean_object* x_120; +lean_dec(x_98); +lean_dec(x_97); +lean_dec(x_96); +lean_dec(x_95); lean_dec(x_94); -lean_dec(x_93); -lean_dec(x_92); -lean_dec(x_91); -lean_dec(x_90); lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); -x_116 = lean_ctor_get(x_103, 0); -lean_inc(x_116); -lean_dec(x_103); -if (lean_obj_tag(x_116) == 0) +x_120 = lean_ctor_get(x_107, 0); +lean_inc(x_120); +lean_dec(x_107); +if (lean_obj_tag(x_120) == 0) { -lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; uint8_t x_122; -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(2, 1, 0); -lean_ctor_set(x_119, 0, x_118); -x_120 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_120, 0, x_119); -x_121 = l_Lean_Elab_Term_throwError___rarg(x_117, x_120, x_3, x_88); -lean_dec(x_117); -x_122 = !lean_is_exclusive(x_121); -if (x_122 == 0) -{ -return x_121; -} -else -{ -lean_object* x_123; lean_object* x_124; lean_object* x_125; -x_123 = lean_ctor_get(x_121, 0); -x_124 = lean_ctor_get(x_121, 1); -lean_inc(x_124); -lean_inc(x_123); +lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; uint8_t x_126; +x_121 = lean_ctor_get(x_120, 0); +lean_inc(x_121); +x_122 = lean_ctor_get(x_120, 1); +lean_inc(x_122); +lean_dec(x_120); +x_123 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_123, 0, x_122); +x_124 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_124, 0, x_123); +x_125 = l_Lean_Elab_Term_throwErrorAt___rarg(x_121, x_124, x_3, x_92); lean_dec(x_121); -x_125 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_125, 0, x_123); -lean_ctor_set(x_125, 1, x_124); +x_126 = !lean_is_exclusive(x_125); +if (x_126 == 0) +{ return x_125; } -} else { -lean_object* x_126; uint8_t x_127; -lean_dec(x_3); -x_126 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_88); -x_127 = !lean_is_exclusive(x_126); -if (x_127 == 0) -{ -return x_126; -} -else -{ -lean_object* x_128; lean_object* x_129; lean_object* x_130; -x_128 = lean_ctor_get(x_126, 0); -x_129 = lean_ctor_get(x_126, 1); -lean_inc(x_129); +lean_object* x_127; lean_object* x_128; lean_object* x_129; +x_127 = lean_ctor_get(x_125, 0); +x_128 = lean_ctor_get(x_125, 1); lean_inc(x_128); -lean_dec(x_126); -x_130 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_130, 0, x_128); -lean_ctor_set(x_130, 1, x_129); -return x_130; -} -} +lean_inc(x_127); +lean_dec(x_125); +x_129 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_129, 0, x_127); +lean_ctor_set(x_129, 1, x_128); +return x_129; } } else { -uint8_t x_131; -lean_dec(x_5); +lean_object* x_130; uint8_t x_131; lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_131 = !lean_is_exclusive(x_82); +x_130 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_92); +x_131 = !lean_is_exclusive(x_130); if (x_131 == 0) { -return x_82; +return x_130; } else { lean_object* x_132; lean_object* x_133; lean_object* x_134; -x_132 = lean_ctor_get(x_82, 0); -x_133 = lean_ctor_get(x_82, 1); +x_132 = lean_ctor_get(x_130, 0); +x_133 = lean_ctor_get(x_130, 1); lean_inc(x_133); lean_inc(x_132); -lean_dec(x_82); +lean_dec(x_130); x_134 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_134, 0, x_132); lean_ctor_set(x_134, 1, x_133); return x_134; } } -block_81: +} +} +else +{ +uint8_t x_135; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_135 = !lean_is_exclusive(x_86); +if (x_135 == 0) +{ +return x_86; +} +else +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; +x_136 = lean_ctor_get(x_86, 0); +x_137 = lean_ctor_get(x_86, 1); +lean_inc(x_137); +lean_inc(x_136); +lean_dec(x_86); +x_138 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_138, 0, x_136); +lean_ctor_set(x_138, 1, x_137); +return x_138; +} +} +block_85: { if (lean_obj_tag(x_6) == 0) { -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; x_8 = lean_unsigned_to_nat(2u); x_9 = lean_unsigned_to_nat(0u); x_10 = l_Array_empty___closed__1; @@ -5523,26 +6102,34 @@ lean_inc(x_49); x_50 = lean_ctor_get(x_48, 1); lean_inc(x_50); lean_dec(x_48); -x_51 = l_Lean_Elab_Term_elabDo___closed__1; -x_52 = l_Lean_checkTraceOption(x_49, x_51); +x_51 = l_Lean_Elab_Term_getCurrRef(x_3, x_50); +x_52 = lean_ctor_get(x_51, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_51, 1); +lean_inc(x_53); +lean_dec(x_51); +x_54 = l_Lean_Elab_Term_elabDo___closed__1; +x_55 = l_Lean_checkTraceOption(x_49, x_54); lean_dec(x_49); -if (x_52 == 0) +if (x_55 == 0) { -x_12 = x_50; +lean_dec(x_52); +lean_dec(x_1); +x_12 = x_53; goto block_47; } else { -lean_object* x_53; lean_object* x_54; lean_object* x_55; -lean_inc(x_1); -x_53 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_53, 0, x_1); +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_56, 0, x_1); lean_inc(x_3); -x_54 = l_Lean_Elab_Term_logTrace(x_51, x_1, x_53, x_3, x_50); -x_55 = lean_ctor_get(x_54, 1); -lean_inc(x_55); -lean_dec(x_54); -x_12 = x_55; +x_57 = l_Lean_Elab_Term_logTrace(x_54, x_52, x_56, x_3, x_53); +lean_dec(x_52); +x_58 = lean_ctor_get(x_57, 1); +lean_inc(x_58); +lean_dec(x_57); +x_12 = x_58; goto block_47; } block_47: @@ -5550,8 +6137,7 @@ block_47: lean_object* x_13; lean_inc(x_3); lean_inc(x_2); -x_13 = l___private_Lean_Elab_DoNotation_2__extractBind(x_1, x_2, x_3, x_12); -lean_dec(x_1); +x_13 = l___private_Lean_Elab_DoNotation_2__extractBind(x_2, x_3, x_12); if (lean_obj_tag(x_13) == 0) { lean_object* x_14; @@ -5707,44 +6293,49 @@ return x_46; } else { -lean_object* x_56; uint8_t x_57; +lean_object* x_59; uint8_t x_60; lean_dec(x_5); -x_56 = lean_ctor_get(x_6, 0); -lean_inc(x_56); +x_59 = lean_ctor_get(x_6, 0); +lean_inc(x_59); lean_dec(x_6); -x_57 = !lean_is_exclusive(x_3); -if (x_57 == 0) +x_60 = !lean_is_exclusive(x_3); +if (x_60 == 0) { -lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t x_61; lean_object* x_62; -x_58 = lean_ctor_get(x_3, 8); -lean_inc(x_56); -x_59 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_59, 0, x_1); -lean_ctor_set(x_59, 1, x_56); -x_60 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_60, 0, x_59); -lean_ctor_set(x_60, 1, x_58); -lean_ctor_set(x_3, 8, x_60); -x_61 = 1; -x_62 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_61, x_61, x_56, x_3, x_7); -return x_62; +lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; lean_object* x_65; +x_61 = lean_ctor_get(x_3, 8); +lean_inc(x_59); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_1); +lean_ctor_set(x_62, 1, x_59); +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_61); +lean_ctor_set(x_3, 8, x_63); +x_64 = 1; +x_65 = l_Lean_Elab_Term_elabTerm(x_59, x_2, x_64, x_3, x_7); +return x_65; } else { -lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; uint8_t x_74; uint8_t x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; lean_object* x_80; -x_63 = lean_ctor_get(x_3, 0); -x_64 = lean_ctor_get(x_3, 1); -x_65 = lean_ctor_get(x_3, 2); -x_66 = lean_ctor_get(x_3, 3); -x_67 = lean_ctor_get(x_3, 4); -x_68 = lean_ctor_get(x_3, 5); -x_69 = lean_ctor_get(x_3, 6); -x_70 = lean_ctor_get(x_3, 7); -x_71 = lean_ctor_get(x_3, 8); -x_72 = lean_ctor_get(x_3, 9); -x_73 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); -x_74 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); -x_75 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_t x_76; uint8_t x_77; uint8_t x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; lean_object* x_84; +x_66 = lean_ctor_get(x_3, 0); +x_67 = lean_ctor_get(x_3, 1); +x_68 = lean_ctor_get(x_3, 2); +x_69 = lean_ctor_get(x_3, 3); +x_70 = lean_ctor_get(x_3, 4); +x_71 = lean_ctor_get(x_3, 5); +x_72 = lean_ctor_get(x_3, 6); +x_73 = lean_ctor_get(x_3, 7); +x_74 = lean_ctor_get(x_3, 8); +x_75 = lean_ctor_get(x_3, 9); +x_76 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_77 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_78 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +x_79 = lean_ctor_get(x_3, 10); +lean_inc(x_79); +lean_inc(x_75); +lean_inc(x_74); +lean_inc(x_73); lean_inc(x_72); lean_inc(x_71); lean_inc(x_70); @@ -5752,34 +6343,32 @@ lean_inc(x_69); lean_inc(x_68); lean_inc(x_67); lean_inc(x_66); -lean_inc(x_65); -lean_inc(x_64); -lean_inc(x_63); lean_dec(x_3); -lean_inc(x_56); -x_76 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_76, 0, x_1); -lean_ctor_set(x_76, 1, x_56); -x_77 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_77, 0, x_76); -lean_ctor_set(x_77, 1, x_71); -x_78 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_78, 0, x_63); -lean_ctor_set(x_78, 1, x_64); -lean_ctor_set(x_78, 2, x_65); -lean_ctor_set(x_78, 3, x_66); -lean_ctor_set(x_78, 4, x_67); -lean_ctor_set(x_78, 5, x_68); -lean_ctor_set(x_78, 6, x_69); -lean_ctor_set(x_78, 7, x_70); -lean_ctor_set(x_78, 8, x_77); -lean_ctor_set(x_78, 9, x_72); -lean_ctor_set_uint8(x_78, sizeof(void*)*10, x_73); -lean_ctor_set_uint8(x_78, sizeof(void*)*10 + 1, x_74); -lean_ctor_set_uint8(x_78, sizeof(void*)*10 + 2, x_75); -x_79 = 1; -x_80 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_79, x_79, x_56, x_78, x_7); -return x_80; +lean_inc(x_59); +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_1); +lean_ctor_set(x_80, 1, x_59); +x_81 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_81, 0, x_80); +lean_ctor_set(x_81, 1, x_74); +x_82 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_82, 0, x_66); +lean_ctor_set(x_82, 1, x_67); +lean_ctor_set(x_82, 2, x_68); +lean_ctor_set(x_82, 3, x_69); +lean_ctor_set(x_82, 4, x_70); +lean_ctor_set(x_82, 5, x_71); +lean_ctor_set(x_82, 6, x_72); +lean_ctor_set(x_82, 7, x_73); +lean_ctor_set(x_82, 8, x_81); +lean_ctor_set(x_82, 9, x_75); +lean_ctor_set(x_82, 10, x_79); +lean_ctor_set_uint8(x_82, sizeof(void*)*11, x_76); +lean_ctor_set_uint8(x_82, sizeof(void*)*11 + 1, x_77); +lean_ctor_set_uint8(x_82, sizeof(void*)*11 + 2, x_78); +x_83 = 1; +x_84 = l_Lean_Elab_Term_elabTerm(x_59, x_2, x_83, x_82, x_7); +return x_84; } } } diff --git a/stage0/stdlib/Lean/Elab/Inductive.c b/stage0/stdlib/Lean/Elab/Inductive.c index 879628a69e..4d7caf7d88 100644 --- a/stage0/stdlib/Lean/Elab/Inductive.c +++ b/stage0/stdlib/Lean/Elab/Inductive.c @@ -17,57 +17,55 @@ lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main_ lean_object* l_Lean_Elab_Term_getLevelNames(lean_object*, lean_object*); lean_object* l_List_reverse___rarg(lean_object*); lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___closed__3; -lean_object* l_List_foldlM___main___at___private_Lean_Elab_Inductive_25__removeUnused___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldlM___main___at___private_Lean_Elab_Inductive_25__removeUnused___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Name_toString___closed__1; lean_object* lean_expr_update_forall(lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_mkForall(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkForall(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_prod_x3f___closed__2; -lean_object* l_Lean_Elab_Term_removeUnused(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_removeUnused(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__2___lambda__1___boxed(lean_object*, lean_object*); -lean_object* l_List_foldlM___main___at___private_Lean_Elab_Inductive_22__collectUniverses___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldlM___main___at___private_Lean_Elab_Inductive_22__collectUniverses___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_throwErrorAt___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_cases_on(lean_object*, lean_object*); extern lean_object* l_Lean_Expr_eq_x3f___closed__2; lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_4__checkLevelNames___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_5__forallTelescopeReducingAuxAux___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___closed__6; -lean_object* l___private_Lean_Elab_Inductive_18__levelMVarToParam___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_addDecl(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_addDecl(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkSort(lean_object*); lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___closed__5; lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___closed__15; -lean_object* l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_iterateMAux___main___at_Lean_ppGoal___spec__6___closed__3; lean_object* l_unreachable_x21___rarg(lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_27__updateParams___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_27__updateParams___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isClassExpensive___main(lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidCtorModifier___closed__4; -lean_object* l_List_foldlM___main___at___private_Lean_Elab_Inductive_25__removeUnused___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldlM___main___at___private_Lean_Elab_Inductive_25__removeUnused___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_MessageData_ofList___closed__3; uint8_t l_USize_decEq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___lambda__1___closed__1; -lean_object* l_Lean_Elab_Term_inferType(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_inferType(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_26__withUsed(lean_object*); -lean_object* l___private_Lean_Elab_Inductive_7__getResultingType___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_update_mdata(lean_object*, lean_object*); lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_2__checkNumParams(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_15__isInductiveFamily___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_InductiveView_inhabited; lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___lambda__1___closed__7; lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_3__checkUnsafe___spec__1___closed__3; uint8_t lean_name_eq(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_33__mkInductiveDecl___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___private_Lean_Elab_Inductive_33__mkInductiveDecl___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_Lean_Meta_mkForall(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__5___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Std_HashMap_inhabited___closed__1; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_33__mkInductiveDecl___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* l___private_Lean_Elab_Inductive_33__mkInductiveDecl___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* l_Std_HashMapImp_find_x3f___at_Lean_hasOutParams___spec__5(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___rarg___closed__3; -lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Command_accLevelAtCtor___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isClassQuick___main(lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; @@ -77,32 +75,30 @@ lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_I lean_object* l___private_Init_Util_1__mkPanicMessage(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___closed__7; lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_3__checkUnsafe___spec__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_14__withInductiveLocalDecls(lean_object*); lean_object* l___private_Lean_Meta_Basic_6__forallTelescopeReducingAux___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Level_hasMVar(lean_object*); lean_object* lean_dbg_trace(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Command_6__mkTermContext(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_8__eqvFirstTypeResult___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_27__updateParams___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_17__levelMVarToParamAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_24__traceIndTypes(lean_object*, lean_object*, lean_object*); lean_object* l_List_forM___main___at___private_Lean_Elab_Inductive_24__traceIndTypes___spec__1___closed__1; lean_object* l___private_Lean_Elab_Inductive_1__elabHeaderAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_19__getResultingUniverse(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_19__getResultingUniverse(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidCtorModifier___closed__10; lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___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*, lean_object*); lean_object* l_Std_HashMapImp_insert___at___private_Lean_MetavarContext_2__visit___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forMAux___main___at_Lean_Elab_Command_elabInductiveViews___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldlM___main___at___private_Lean_Elab_Inductive_22__collectUniverses___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldlM___main___at___private_Lean_Elab_Inductive_22__collectUniverses___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__1___closed__1; lean_object* l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Command_3__setState(lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_17__levelMVarToParamAux___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_26__withUsed___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_26__withUsed___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_instantiate1(lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); @@ -114,7 +110,7 @@ lean_object* l_Lean_Elab_Command_accLevelAtCtor___main___boxed(lean_object*, lea lean_object* l_Lean_Elab_Command_ElabHeaderResult_inhabited; lean_object* l___private_Lean_Elab_Inductive_32__applyInferMod___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withLocalContext___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_shouldInferResultUniverse(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_shouldInferResultUniverse(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_accLevelAtCtor(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___lambda__1___closed__2; @@ -123,29 +119,28 @@ lean_object* l_Lean_Elab_Command_accLevelAtCtor___main___closed__1; lean_object* l___private_Lean_Elab_SyntheticMVars_11__synthesizeSyntheticMVarsAux___main(uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidCtorModifier___closed__9; lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___closed__14; -lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___closed__10; -lean_object* l___private_Lean_Elab_Inductive_25__removeUnused___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_25__removeUnused___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidCtorModifier___closed__8; lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_accLevelAtCtor___main___closed__2; lean_object* l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___rarg___closed__2; lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___lambda__1___closed__9; -lean_object* l___private_Lean_Elab_Term_3__fromMetaState(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Term_3__fromMetaState(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_15__isInductiveFamily(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_15__isInductiveFamily(lean_object*, lean_object*, lean_object*); lean_object* lean_mk_ibelow(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_whnf(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_whnf(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_CtorView_inhabited; lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___closed__7; lean_object* l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___rarg___closed__1; -lean_object* l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___main___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___main___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__6; -lean_object* l_Lean_Elab_Term_isTypeFormerType(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_isTypeFormerType(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_LocalContext_Inhabited___closed__2; -lean_object* l___private_Lean_Elab_Inductive_17__levelMVarToParamAux(lean_object*); +lean_object* l___private_Lean_Elab_Inductive_17__levelMVarToParamAux(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_3__checkUnsafe___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_11__checkHeaders___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_32__applyInferMod___spec__1___boxed(lean_object*, lean_object*, lean_object*); @@ -153,12 +148,12 @@ lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Inductive_31__m extern lean_object* l_Lean_Meta_dbgTrace___rarg___closed__1; lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_32__applyInferMod___spec__1___closed__1; lean_object* l___private_Lean_Elab_Inductive_14__withInductiveLocalDecls___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldlM___main___at___private_Lean_Elab_Inductive_22__collectUniverses___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldlM___main___at___private_Lean_Elab_Inductive_22__collectUniverses___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Level_getLevelOffset___main(lean_object*); lean_object* l___private_Lean_Elab_Inductive_8__eqvFirstTypeResult___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___main(lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_List_beq___main___at_Lean_Elab_OpenDecl_HasToString___spec__1(lean_object*, lean_object*); lean_object* lean_expr_instantiate_rev_range(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_Inhabited___closed__1; @@ -166,27 +161,27 @@ uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___lambda__1___closed__6; lean_object* l___private_Lean_Elab_Inductive_28__collectLevelParamsInInductive(lean_object*); lean_object* l_Array_forMAux___main___at_Lean_Elab_Command_elabInductiveViews___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_23__updateResultingUniverse(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_23__updateResultingUniverse(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Level_isParam(lean_object*); lean_object* l___private_Lean_Elab_Inductive_16__elabCtors___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_below(lean_object*, lean_object*); extern lean_object* l_Lean_Meta_DepElim_getUnusedLevelParam___closed__1; lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_32__applyInferMod___spec__2___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_getLevel(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_27__updateParams___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_getLevel(lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_33__mkInductiveDecl___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_33__mkInductiveDecl___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__5(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux(lean_object*); lean_object* l_Lean_Elab_Command_tmpIndParam___closed__2; lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_isType(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_isType(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_11__checkHeaders(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_heq_x3f___closed__2; +lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__2___lambda__1(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_33__mkInductiveDecl___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_33__mkInductiveDecl___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_2__checkNumParams___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_21__collectUniversesFromCtorType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_21__collectUniversesFromCtorType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_5__mkTypeFor(lean_object*, lean_object*, lean_object*); lean_object* l_Array_contains___at_Lean_Elab_Command_accLevelAtCtor___main___spec__1___boxed(lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); @@ -196,8 +191,8 @@ lean_object* l___private_Lean_Elab_Inductive_1__elabHeaderAux___main___lambda__1 lean_object* l___private_Lean_Elab_Inductive_11__checkHeaders___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_addGlobalInstance___spec__1(lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_21__collectUniversesFromCtorType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_21__collectUniversesFromCtorType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_34__mkAuxConstructions___spec__1(uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_tmpIndParam___closed__1; extern lean_object* l_Array_iterateM_u2082Aux___main___at_Lean_PrettyPrinter_Parenthesizer_compileParserBody___main___spec__3___closed__1; @@ -209,13 +204,12 @@ lean_object* l___private_Lean_Elab_Inductive_1__elabHeaderAux___main___lambda__1 lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___closed__12; lean_object* l_Lean_Elab_Term_assignLevelMVar(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_22__collectUniverses___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_22__collectUniverses___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_ElabHeaderResult_inhabited___closed__1; -lean_object* l_Nat_foldMAux___main___at___private_Lean_Elab_Inductive_33__mkInductiveDecl___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_foldMAux___main___at___private_Lean_Elab_Inductive_33__mkInductiveDecl___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidCtorModifier___closed__11; lean_object* lean_mk_brec_on(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_22__collectUniverses(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_elabTermAux___main(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_22__collectUniverses(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Inductive_31__mkCtor2InferMod___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_1__elabHeaderAux___main___lambda__1___closed__3; lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Inductive_31__mkCtor2InferMod___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -226,7 +220,7 @@ lean_object* l_Lean_Elab_Command_shouldInferResultUniverse___closed__3; lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___closed__3; lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__5___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_Elab_Term_throwError___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_throwError___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_34__mkAuxConstructions___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType(lean_object*); lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_2__checkNumParams___spec__1___closed__1; @@ -235,7 +229,7 @@ lean_object* l_Lean_Elab_Command_throwError___rarg(lean_object*, lean_object*, l lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__3(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_1__elabHeaderAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_withLocalDecl___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_withLocalDecl___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; lean_object* l_List_forM___main___at___private_Lean_Elab_Inductive_24__traceIndTypes___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Level_getOffsetAux___main(lean_object*, lean_object*); @@ -243,30 +237,28 @@ lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_34__mkAux lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__1(lean_object*, lean_object*, size_t, lean_object*, lean_object*); lean_object* lean_expr_dbg_to_string(lean_object*); lean_object* l___private_Lean_Elab_Inductive_33__mkInductiveDecl(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_23__updateResultingUniverse___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_23__updateResultingUniverse___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_23__updateResultingUniverse___closed__1; extern lean_object* l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__3; lean_object* l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__1; lean_object* l_Lean_Elab_Command_shouldInferResultUniverse___closed__2; lean_object* l_Lean_Elab_Command_accLevelAtCtor___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidCtorModifier___closed__6; -lean_object* l___private_Lean_Elab_Inductive_17__levelMVarToParamAux___boxed(lean_object*); lean_object* lean_mk_no_confusion(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_shouldInferResultUniverse___closed__5; lean_object* l_Lean_Meta_mkFreshId___rarg(lean_object*); lean_object* l___private_Lean_Elab_Inductive_31__mkCtor2InferMod___boxed(lean_object*); lean_object* l_Lean_Elab_Command_accLevelAtCtor___main(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_forM___main___at___private_Lean_Elab_Inductive_24__traceIndTypes___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getLocalInsts(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_collectUsedFVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_collectUsedFVars(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_update_let(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isForall(lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_whnf(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__2; lean_object* l___private_Lean_Elab_Inductive_34__mkAuxConstructions___closed__2; -lean_object* l___private_Lean_Elab_Inductive_19__getResultingUniverse___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_foldl___main___at___private_Lean_Elab_Inductive_28__collectLevelParamsInInductive___spec__2(lean_object*, lean_object*); lean_object* l_Lean_mkFVar(lean_object*); uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); @@ -275,9 +267,8 @@ extern lean_object* l_Lean_registerClassAttr___closed__2; lean_object* l___private_Lean_Elab_Inductive_10__checkHeader(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_1__elabHeaderAux___main___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__4; -lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidCtorModifier___closed__2; -lean_object* l_Lean_Elab_Command_shouldInferResultUniverse___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__6(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_sortDeclLevelParams(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_1__elabHeaderAux___main___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -287,9 +278,9 @@ lean_object* l___private_Lean_Elab_Inductive_29__mkIndFVar2Const___boxed(lean_ob lean_object* l___private_Lean_Elab_Inductive_31__mkCtor2InferMod(lean_object*); lean_object* lean_mk_binduction_on(lean_object*, lean_object*); size_t l_USize_mod(size_t, size_t); -lean_object* l_Lean_Elab_Term_isDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_isDefEq(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_2__checkNumParams___spec__1___closed__2; -lean_object* l___private_Lean_Elab_Inductive_27__updateParams(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_27__updateParams(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_type(lean_object*); lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___lambda__1___closed__4; lean_object* lean_local_ctx_mk_local_decl(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); @@ -312,7 +303,6 @@ lean_object* l___private_Lean_Elab_Inductive_11__checkHeaders___main___boxed(lea lean_object* lean_expr_update_sort(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Command_7__mkTermState(lean_object*); uint8_t l_Lean_Level_occurs___main(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_18__levelMVarToParam___boxed(lean_object*); lean_object* l_Lean_Elab_Command_shouldInferResultUniverse___closed__4; lean_object* l_List_foldl___main___at___private_Lean_Elab_Inductive_28__collectLevelParamsInInductive___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_InductiveView_inhabited___closed__1; @@ -325,21 +315,21 @@ extern uint8_t l_Bool_Inhabited; lean_object* lean_panic_fn(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_34__mkAuxConstructions___closed__1; lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___closed__8; -lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_withRef___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_34__mkAuxConstructions___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_ReplaceLevelImpl_initCache; extern lean_object* l_Std_HashMap_find_x21___rarg___closed__1; lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_4__checkLevelNames___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_shouldInferResultUniverse___closed__6; lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___closed__11; extern lean_object* l_Lean_Elab_Command_Attribute_inhabited; -lean_object* l___private_Lean_Elab_Inductive_7__getResultingType(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_7__getResultingType(lean_object*, lean_object*, lean_object*); lean_object* l_Nat_foldAux___main___at___private_Lean_Elab_Inductive_29__mkIndFVar2Const___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___closed__1; -lean_object* l_List_foldlM___main___at___private_Lean_Elab_Inductive_25__removeUnused___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabInductiveViews___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabInductiveViews___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Definition_1__removeUnused___closed__1; uint8_t l_Lean_Expr_isFVar(lean_object*); lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -358,28 +348,25 @@ lean_object* l_Lean_Elab_Command_getEnv(lean_object*, lean_object*); extern lean_object* l_Lean_TraceState_Inhabited___closed__1; lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___closed__9; lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_27__updateParams___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_17__levelMVarToParamAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldlM___main___at___private_Lean_Elab_Inductive_25__removeUnused___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_3__checkUnsafe___spec__1___closed__1; -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_rec_on(lean_object*, lean_object*); lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_3__checkUnsafe___spec__1___closed__2; lean_object* l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__1(lean_object*, size_t, lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_27__updateParams___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_27__updateParams___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_toList___rarg(lean_object*); lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___closed__1; extern lean_object* l_Lean_Expr_Inhabited; lean_object* l_Lean_Elab_Command_CtorView_inhabited___closed__1; -lean_object* l_List_foldlM___main___at___private_Lean_Elab_Inductive_22__collectUniverses___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldlM___main___at___private_Lean_Elab_Inductive_22__collectUniverses___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___closed__4; lean_object* l_Lean_Elab_Command_CtorView_inhabited___closed__2; lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_34__mkAuxConstructions___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_5__forallTelescopeReducingAuxAux___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_mkFreshLevelMVar(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkFreshLevelMVar(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_32__applyInferMod(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Level_replace___main(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabBinders___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -387,47 +374,45 @@ lean_object* l___private_Lean_Meta_Basic_11__instantiateForallAux___main(lean_ob lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___closed__13; lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_2__checkNumParams___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidCtorModifier___closed__3; -lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidCtorModifier___closed__5; lean_object* l_Lean_Expr_inferImplicit___main(lean_object*, lean_object*, uint8_t); extern lean_object* l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidCtorModifier(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___closed__6; lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_18__levelMVarToParam(lean_object*); -lean_object* l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_18__levelMVarToParam(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_4__checkLevelNames___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_toStringWithSep___main(lean_object*, lean_object*); lean_object* l_Lean_Level_mkNaryMax___main(lean_object*); lean_object* l_Lean_mkLevelParam(lean_object*); lean_object* lean_expr_update_app(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___lambda__1___closed__8; uint8_t lean_level_eq(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_26__withUsed___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_26__withUsed___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_indentExpr(lean_object*); -lean_object* l___private_Lean_Elab_Term_2__fromMetaException(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Term_2__fromMetaException(lean_object*, lean_object*); lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidInductiveModifier(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_instantiateLevelMVars(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_instantiateLevelMVars(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_tmpIndParam; lean_object* l_Std_HashMapImp_insert___at_Lean_ClassState_addEntry___spec__6(lean_object*, lean_object*, uint8_t); lean_object* l_Lean_CollectLevelParams_main___main(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Command_liftTermElabM___rarg___closed__1; -lean_object* l___private_Lean_Elab_Inductive_25__removeUnused(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_mkForall___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_25__removeUnused(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_update_const(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidCtorModifier___closed__12; lean_object* l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__5; lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___lambda__1___closed__5; lean_object* l_Lean_Meta_forallTelescopeReducing___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Inductive_14__withInductiveLocalDecls___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___main___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___main___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isSort(lean_object*); -lean_object* l_Nat_foldMAux___main___at___private_Lean_Elab_Inductive_33__mkInductiveDecl___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_foldMAux___main___at___private_Lean_Elab_Inductive_33__mkInductiveDecl___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__3; extern lean_object* l_Lean_Expr_ReplaceImpl_initCache; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); @@ -1215,180 +1200,174 @@ x_12 = lean_ctor_get(x_1, 6); lean_inc(x_12); if (lean_obj_tag(x_12) == 0) { -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; lean_object* x_23; lean_object* x_24; lean_object* x_25; +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; lean_object* x_23; lean_object* x_24; x_13 = lean_ctor_get(x_11, 0); lean_inc(x_13); x_14 = lean_ctor_get(x_11, 1); lean_inc(x_14); lean_dec(x_11); -x_15 = lean_ctor_get(x_1, 0); -lean_inc(x_15); lean_inc(x_6); -x_16 = l_Lean_Elab_Term_mkFreshLevelMVar(x_15, x_6, x_14); -lean_dec(x_15); -x_17 = lean_ctor_get(x_16, 0); +x_15 = l_Lean_Elab_Term_mkFreshLevelMVar(x_6, x_14); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); lean_inc(x_17); -x_18 = lean_ctor_get(x_16, 1); -lean_inc(x_18); -lean_dec(x_16); -x_19 = l_Lean_mkLevelSucc(x_17); -x_20 = l_Lean_mkSort(x_19); -x_21 = lean_unsigned_to_nat(1u); -x_22 = lean_nat_add(x_2, x_21); -x_23 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_23, 0, x_1); -lean_ctor_set(x_23, 1, x_9); -lean_ctor_set(x_23, 2, x_13); -lean_ctor_set(x_23, 3, x_5); -lean_ctor_set(x_23, 4, x_20); -x_24 = lean_array_push(x_3, x_23); -x_25 = l___private_Lean_Elab_Inductive_1__elabHeaderAux___main(x_4, x_22, x_24, x_6, x_18); -return x_25; +lean_dec(x_15); +x_18 = l_Lean_mkLevelSucc(x_16); +x_19 = l_Lean_mkSort(x_18); +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_add(x_2, x_20); +x_22 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_22, 0, x_1); +lean_ctor_set(x_22, 1, x_9); +lean_ctor_set(x_22, 2, x_13); +lean_ctor_set(x_22, 3, x_5); +lean_ctor_set(x_22, 4, x_19); +x_23 = lean_array_push(x_3, x_22); +x_24 = l___private_Lean_Elab_Inductive_1__elabHeaderAux___main(x_4, x_21, x_23, x_6, x_17); +return x_24; } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; -x_26 = lean_ctor_get(x_11, 0); +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; lean_object* x_30; +x_25 = lean_ctor_get(x_11, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_11, 1); lean_inc(x_26); -x_27 = lean_ctor_get(x_11, 1); -lean_inc(x_27); lean_dec(x_11); -x_28 = lean_ctor_get(x_12, 0); -lean_inc(x_28); +x_27 = lean_ctor_get(x_12, 0); +lean_inc(x_27); lean_dec(x_12); -x_29 = lean_box(0); -x_30 = 1; +x_28 = lean_box(0); +x_29 = 1; lean_inc(x_6); -lean_inc(x_28); -x_31 = l_Lean_Elab_Term_elabTermAux___main(x_29, x_30, x_30, x_28, x_6, x_27); -if (lean_obj_tag(x_31) == 0) +lean_inc(x_27); +x_30 = l_Lean_Elab_Term_elabTerm(x_27, x_28, x_29, x_6, x_26); +if (lean_obj_tag(x_30) == 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_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_30, 1); lean_inc(x_32); -x_33 = lean_ctor_get(x_31, 1); -lean_inc(x_33); -lean_dec(x_31); -x_34 = lean_ctor_get(x_1, 0); -lean_inc(x_34); -x_35 = lean_unsigned_to_nat(1u); -x_36 = lean_nat_add(x_2, x_35); -lean_inc(x_32); -x_37 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_37, 0, x_1); -lean_ctor_set(x_37, 1, x_9); -lean_ctor_set(x_37, 2, x_26); -lean_ctor_set(x_37, 3, x_5); -lean_ctor_set(x_37, 4, x_32); -x_38 = lean_array_push(x_3, x_37); +lean_dec(x_30); +x_33 = lean_unsigned_to_nat(1u); +x_34 = lean_nat_add(x_2, x_33); +lean_inc(x_31); +x_35 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_35, 0, x_1); +lean_ctor_set(x_35, 1, x_9); +lean_ctor_set(x_35, 2, x_25); +lean_ctor_set(x_35, 3, x_5); +lean_ctor_set(x_35, 4, x_31); +x_36 = lean_array_push(x_3, x_35); lean_inc(x_6); -x_39 = l_Lean_Elab_Term_isTypeFormerType(x_34, x_32, x_6, x_33); -lean_dec(x_34); -if (lean_obj_tag(x_39) == 0) +x_37 = l_Lean_Elab_Term_isTypeFormerType(x_31, x_6, x_32); +if (lean_obj_tag(x_37) == 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_dec(x_40); -if (x_41 == 0) -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; +lean_object* x_38; uint8_t x_39; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_unbox(x_38); lean_dec(x_38); -lean_dec(x_36); -lean_dec(x_4); -x_42 = lean_ctor_get(x_39, 1); -lean_inc(x_42); -lean_dec(x_39); -x_43 = l___private_Lean_Elab_Inductive_1__elabHeaderAux___main___lambda__1___closed__3; -x_44 = l_Lean_Elab_Term_throwError___rarg(x_28, x_43, x_6, x_42); -lean_dec(x_28); -x_45 = !lean_is_exclusive(x_44); -if (x_45 == 0) +if (x_39 == 0) { -return x_44; +lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; +lean_dec(x_36); +lean_dec(x_34); +lean_dec(x_4); +x_40 = lean_ctor_get(x_37, 1); +lean_inc(x_40); +lean_dec(x_37); +x_41 = l___private_Lean_Elab_Inductive_1__elabHeaderAux___main___lambda__1___closed__3; +x_42 = l_Lean_Elab_Term_throwErrorAt___rarg(x_27, x_41, x_6, x_40); +lean_dec(x_27); +x_43 = !lean_is_exclusive(x_42); +if (x_43 == 0) +{ +return x_42; } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_44, 0); -x_47 = lean_ctor_get(x_44, 1); +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_42, 0); +x_45 = lean_ctor_get(x_42, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_42); +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 +{ +lean_object* x_47; lean_object* x_48; +lean_dec(x_27); +x_47 = lean_ctor_get(x_37, 1); lean_inc(x_47); -lean_inc(x_46); -lean_dec(x_44); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); +lean_dec(x_37); +x_48 = l___private_Lean_Elab_Inductive_1__elabHeaderAux___main(x_4, x_34, x_36, x_6, x_47); return x_48; } } else { -lean_object* x_49; lean_object* x_50; -lean_dec(x_28); -x_49 = lean_ctor_get(x_39, 1); -lean_inc(x_49); -lean_dec(x_39); -x_50 = l___private_Lean_Elab_Inductive_1__elabHeaderAux___main(x_4, x_36, x_38, x_6, x_49); -return x_50; -} -} -else -{ -uint8_t x_51; -lean_dec(x_38); +uint8_t x_49; lean_dec(x_36); -lean_dec(x_28); +lean_dec(x_34); +lean_dec(x_27); lean_dec(x_6); lean_dec(x_4); -x_51 = !lean_is_exclusive(x_39); -if (x_51 == 0) +x_49 = !lean_is_exclusive(x_37); +if (x_49 == 0) { -return x_39; +return x_37; } else { -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_39, 0); -x_53 = lean_ctor_get(x_39, 1); -lean_inc(x_53); -lean_inc(x_52); -lean_dec(x_39); -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; +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_37, 0); +x_51 = lean_ctor_get(x_37, 1); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_37); +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +return x_52; } } } else { -uint8_t x_55; -lean_dec(x_28); -lean_dec(x_26); +uint8_t x_53; +lean_dec(x_27); +lean_dec(x_25); lean_dec(x_9); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_55 = !lean_is_exclusive(x_31); -if (x_55 == 0) +x_53 = !lean_is_exclusive(x_30); +if (x_53 == 0) { -return x_31; +return x_30; } else { -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_31, 0); -x_57 = lean_ctor_get(x_31, 1); -lean_inc(x_57); -lean_inc(x_56); -lean_dec(x_31); -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; +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_30, 0); +x_55 = lean_ctor_get(x_30, 1); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_30); +x_56 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_56, 0, x_54); +lean_ctor_set(x_56, 1, x_55); +return x_56; } } } @@ -1518,7 +1497,7 @@ x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); lean_dec(x_16); x_18 = l_Array_forMAux___main___at___private_Lean_Elab_Inductive_2__checkNumParams___spec__1___closed__3; -x_19 = l_Lean_Elab_Term_throwError___rarg(x_17, x_18, x_4, x_5); +x_19 = l_Lean_Elab_Term_throwErrorAt___rarg(x_17, x_18, x_4, x_5); lean_dec(x_17); x_20 = !lean_is_exclusive(x_19); if (x_20 == 0) @@ -1733,7 +1712,7 @@ x_17 = lean_ctor_get(x_13, 0); lean_inc(x_17); lean_dec(x_13); x_18 = l_Array_forMAux___main___at___private_Lean_Elab_Inductive_3__checkUnsafe___spec__1___closed__3; -x_19 = l_Lean_Elab_Term_throwError___rarg(x_17, x_18, x_4, x_5); +x_19 = l_Lean_Elab_Term_throwErrorAt___rarg(x_17, x_18, x_4, x_5); lean_dec(x_17); x_20 = !lean_is_exclusive(x_19); if (x_20 == 0) @@ -1868,7 +1847,7 @@ x_15 = lean_ctor_get(x_10, 0); lean_inc(x_15); lean_dec(x_10); x_16 = l_Array_forMAux___main___at___private_Lean_Elab_Inductive_4__checkLevelNames___spec__1___closed__3; -x_17 = l_Lean_Elab_Term_throwError___rarg(x_15, x_16, x_4, x_5); +x_17 = l_Lean_Elab_Term_throwErrorAt___rarg(x_15, x_16, x_4, x_5); lean_dec(x_15); x_18 = !lean_is_exclusive(x_17); if (x_18 == 0) @@ -1953,27 +1932,21 @@ return x_4; lean_object* l___private_Lean_Elab_Inductive_5__mkTypeFor(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; x_4 = lean_ctor_get(x_1, 1); lean_inc(x_4); x_5 = lean_ctor_get(x_1, 2); lean_inc(x_5); -x_6 = lean_ctor_get(x_1, 0); +x_6 = lean_ctor_get(x_1, 3); lean_inc(x_6); -x_7 = lean_ctor_get(x_6, 0); +x_7 = lean_ctor_get(x_1, 4); lean_inc(x_7); -lean_dec(x_6); -x_8 = lean_ctor_get(x_1, 3); -lean_inc(x_8); -x_9 = lean_ctor_get(x_1, 4); -lean_inc(x_9); lean_dec(x_1); -x_10 = lean_alloc_closure((void*)(l_Lean_Elab_Term_mkForall___boxed), 5, 3); -lean_closure_set(x_10, 0, x_7); -lean_closure_set(x_10, 1, x_8); -lean_closure_set(x_10, 2, x_9); -x_11 = l_Lean_Elab_Term_withLocalContext___rarg(x_4, x_5, x_10, x_2, x_3); -return x_11; +x_8 = lean_alloc_closure((void*)(l_Lean_Elab_Term_mkForall), 4, 2); +lean_closure_set(x_8, 0, x_6); +lean_closure_set(x_8, 1, x_7); +x_9 = l_Lean_Elab_Term_withLocalContext___rarg(x_4, x_5, x_8, x_2, x_3); +return x_9; } } lean_object* _init_l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___rarg___closed__1() { @@ -2004,202 +1977,184 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___rarg(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_4; lean_object* x_5; -x_4 = l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___rarg___closed__3; -x_5 = l_Lean_Elab_Term_throwError___rarg(x_1, x_4, x_2, x_3); -return x_5; +lean_object* x_3; lean_object* x_4; +x_3 = l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___rarg___closed__3; +x_4 = l_Lean_Elab_Term_throwError___rarg(x_3, x_1, x_2); +return x_4; } } lean_object* l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___rarg___boxed), 3, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___rarg), 2, 0); return x_2; } } -lean_object* l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Elab_Inductive_7__getResultingType(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_4; -x_4 = l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___rarg(x_1, x_2, x_3); -lean_dec(x_1); -return x_4; -} -} -lean_object* l___private_Lean_Elab_Inductive_7__getResultingType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: +lean_object* x_4; uint8_t x_5; +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +x_5 = !lean_is_exclusive(x_4); +if (x_5 == 0) { -lean_object* x_5; uint8_t x_6; -x_5 = lean_ctor_get(x_4, 0); -lean_inc(x_5); -x_6 = !lean_is_exclusive(x_5); -if (x_6 == 0) +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_6 = lean_ctor_get(x_4, 4); +x_7 = lean_ctor_get(x_2, 0); +lean_inc(x_7); +x_8 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_4, 4, x_8); +x_9 = l_Array_iterateM_u2082Aux___main___at_Lean_PrettyPrinter_Parenthesizer_compileParserBody___main___spec__3___closed__1; +x_10 = l_Lean_Meta_forallTelescopeReducing___rarg(x_1, x_9, x_7, x_4); +if (lean_obj_tag(x_10) == 0) { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_7 = lean_ctor_get(x_5, 4); -x_8 = lean_ctor_get(x_3, 0); -lean_inc(x_8); -x_9 = l_Lean_TraceState_Inhabited___closed__1; -lean_ctor_set(x_5, 4, x_9); -x_10 = l_Array_iterateM_u2082Aux___main___at_Lean_PrettyPrinter_Parenthesizer_compileParserBody___main___spec__3___closed__1; -x_11 = l_Lean_Meta_forallTelescopeReducing___rarg(x_2, x_10, x_8, x_5); -if (lean_obj_tag(x_11) == 0) +uint8_t x_11; +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) { -uint8_t x_12; -x_12 = !lean_is_exclusive(x_11); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; -x_13 = lean_ctor_get(x_11, 1); -x_14 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_13, x_7); -lean_ctor_set(x_11, 1, x_14); -return x_11; +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_10, 1); +x_13 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_12, x_6); +lean_ctor_set(x_10, 1, x_13); +return x_10; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_15 = lean_ctor_get(x_11, 0); -x_16 = lean_ctor_get(x_11, 1); -lean_inc(x_16); +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_14 = lean_ctor_get(x_10, 0); +x_15 = lean_ctor_get(x_10, 1); lean_inc(x_15); -lean_dec(x_11); -x_17 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_16, x_7); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_15); -lean_ctor_set(x_18, 1, x_17); -return x_18; +lean_inc(x_14); +lean_dec(x_10); +x_16 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_15, x_6); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_14); +lean_ctor_set(x_17, 1, x_16); +return x_17; } } else { -uint8_t x_19; -x_19 = !lean_is_exclusive(x_11); -if (x_19 == 0) +uint8_t x_18; +x_18 = !lean_is_exclusive(x_10); +if (x_18 == 0) { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_20 = lean_ctor_get(x_11, 0); -x_21 = lean_ctor_get(x_11, 1); -lean_inc(x_3); -x_22 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_20); -x_23 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_21, x_7); -lean_ctor_set(x_11, 1, x_23); -lean_ctor_set(x_11, 0, x_22); -return x_11; +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_19 = lean_ctor_get(x_10, 0); +x_20 = lean_ctor_get(x_10, 1); +lean_inc(x_2); +x_21 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_19); +x_22 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_20, x_6); +lean_ctor_set(x_10, 1, x_22); +lean_ctor_set(x_10, 0, x_21); +return x_10; } else { -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_11, 0); -x_25 = lean_ctor_get(x_11, 1); -lean_inc(x_25); +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_23 = lean_ctor_get(x_10, 0); +x_24 = lean_ctor_get(x_10, 1); lean_inc(x_24); -lean_dec(x_11); -lean_inc(x_3); -x_26 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_24); -x_27 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_25, x_7); -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; +lean_inc(x_23); +lean_dec(x_10); +lean_inc(x_2); +x_25 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_23); +x_26 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_24, x_6); +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 { -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_29 = lean_ctor_get(x_5, 0); -x_30 = lean_ctor_get(x_5, 1); -x_31 = lean_ctor_get(x_5, 2); -x_32 = lean_ctor_get(x_5, 3); -x_33 = lean_ctor_get(x_5, 4); -x_34 = lean_ctor_get(x_5, 5); -lean_inc(x_34); +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_28 = lean_ctor_get(x_4, 0); +x_29 = lean_ctor_get(x_4, 1); +x_30 = lean_ctor_get(x_4, 2); +x_31 = lean_ctor_get(x_4, 3); +x_32 = lean_ctor_get(x_4, 4); +x_33 = lean_ctor_get(x_4, 5); lean_inc(x_33); lean_inc(x_32); lean_inc(x_31); lean_inc(x_30); lean_inc(x_29); -lean_dec(x_5); -x_35 = lean_ctor_get(x_3, 0); -lean_inc(x_35); -x_36 = l_Lean_TraceState_Inhabited___closed__1; -x_37 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_37, 0, x_29); -lean_ctor_set(x_37, 1, x_30); -lean_ctor_set(x_37, 2, x_31); -lean_ctor_set(x_37, 3, x_32); -lean_ctor_set(x_37, 4, x_36); -lean_ctor_set(x_37, 5, x_34); -x_38 = l_Array_iterateM_u2082Aux___main___at_Lean_PrettyPrinter_Parenthesizer_compileParserBody___main___spec__3___closed__1; -x_39 = l_Lean_Meta_forallTelescopeReducing___rarg(x_2, x_38, x_35, x_37); -if (lean_obj_tag(x_39) == 0) +lean_inc(x_28); +lean_dec(x_4); +x_34 = lean_ctor_get(x_2, 0); +lean_inc(x_34); +x_35 = l_Lean_TraceState_Inhabited___closed__1; +x_36 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_36, 0, x_28); +lean_ctor_set(x_36, 1, x_29); +lean_ctor_set(x_36, 2, x_30); +lean_ctor_set(x_36, 3, x_31); +lean_ctor_set(x_36, 4, x_35); +lean_ctor_set(x_36, 5, x_33); +x_37 = l_Array_iterateM_u2082Aux___main___at_Lean_PrettyPrinter_Parenthesizer_compileParserBody___main___spec__3___closed__1; +x_38 = l_Lean_Meta_forallTelescopeReducing___rarg(x_1, x_37, x_34, x_36); +if (lean_obj_tag(x_38) == 0) { -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_40 = lean_ctor_get(x_39, 0); +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_38, 1); lean_inc(x_40); -x_41 = lean_ctor_get(x_39, 1); -lean_inc(x_41); -if (lean_is_exclusive(x_39)) { - lean_ctor_release(x_39, 0); - lean_ctor_release(x_39, 1); - x_42 = x_39; +if (lean_is_exclusive(x_38)) { + lean_ctor_release(x_38, 0); + lean_ctor_release(x_38, 1); + x_41 = x_38; } else { - lean_dec_ref(x_39); - x_42 = lean_box(0); + lean_dec_ref(x_38); + x_41 = lean_box(0); } -x_43 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_41, x_33); -if (lean_is_scalar(x_42)) { - x_44 = lean_alloc_ctor(0, 2, 0); +x_42 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_40, x_32); +if (lean_is_scalar(x_41)) { + x_43 = lean_alloc_ctor(0, 2, 0); } else { - x_44 = x_42; + x_43 = x_41; } -lean_ctor_set(x_44, 0, x_40); -lean_ctor_set(x_44, 1, x_43); -return x_44; +lean_ctor_set(x_43, 0, x_39); +lean_ctor_set(x_43, 1, x_42); +return x_43; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_45 = lean_ctor_get(x_39, 0); +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_44 = lean_ctor_get(x_38, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_38, 1); lean_inc(x_45); -x_46 = lean_ctor_get(x_39, 1); -lean_inc(x_46); -if (lean_is_exclusive(x_39)) { - lean_ctor_release(x_39, 0); - lean_ctor_release(x_39, 1); - x_47 = x_39; +if (lean_is_exclusive(x_38)) { + lean_ctor_release(x_38, 0); + lean_ctor_release(x_38, 1); + x_46 = x_38; } else { - lean_dec_ref(x_39); - x_47 = lean_box(0); + lean_dec_ref(x_38); + x_46 = lean_box(0); } -lean_inc(x_3); -x_48 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_45); -x_49 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_46, x_33); -if (lean_is_scalar(x_47)) { - x_50 = lean_alloc_ctor(1, 2, 0); +lean_inc(x_2); +x_47 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_44); +x_48 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_45, x_32); +if (lean_is_scalar(x_46)) { + x_49 = lean_alloc_ctor(1, 2, 0); } else { - x_50 = x_47; + x_49 = x_46; } -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_49); -return x_50; +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +return x_49; } } } } -lean_object* l___private_Lean_Elab_Inductive_7__getResultingType___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l___private_Lean_Elab_Inductive_7__getResultingType(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} lean_object* l___private_Lean_Elab_Inductive_8__eqvFirstTypeResult___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { @@ -2227,29 +2182,29 @@ lean_dec(x_2); return x_6; } } -lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___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* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___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) { _start: { -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_9 = lean_expr_instantiate1(x_1, x_6); +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_8 = lean_expr_instantiate1(x_1, x_5); +x_9 = lean_unsigned_to_nat(1u); +x_10 = lean_nat_add(x_2, x_9); +x_11 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main(x_3, x_10, x_8, x_4, x_6, x_7); +return x_11; +} +} +lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___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) { +_start: +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_8 = lean_expr_instantiate1(x_1, x_5); +x_9 = lean_expr_instantiate1(x_2, x_5); x_10 = lean_unsigned_to_nat(1u); -x_11 = lean_nat_add(x_2, x_10); -x_12 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main(x_3, x_4, x_11, x_9, x_5, x_7, x_8); +x_11 = lean_nat_add(x_3, x_10); +x_12 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main(x_4, x_11, x_8, x_9, x_6, x_7); return x_12; } } -lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___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) { -_start: -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_9 = lean_expr_instantiate1(x_1, x_6); -x_10 = lean_expr_instantiate1(x_2, x_6); -x_11 = lean_unsigned_to_nat(1u); -x_12 = lean_nat_add(x_3, x_11); -x_13 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main(x_4, x_5, x_12, x_9, x_10, x_7, x_8); -return x_13; -} -} lean_object* _init_l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___closed__1() { _start: { @@ -2390,640 +2345,620 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main(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* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main(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_8; -lean_inc(x_6); -x_8 = l_Lean_Elab_Term_whnf(x_1, x_4, x_6, x_7); -if (lean_obj_tag(x_8) == 0) +lean_object* x_7; +lean_inc(x_5); +x_7 = l_Lean_Elab_Term_whnf(x_3, x_5, x_6); +if (lean_obj_tag(x_7) == 0) { -lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_9 = lean_ctor_get(x_8, 0); +lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_7, 1); lean_inc(x_9); -x_10 = lean_ctor_get(x_8, 1); -lean_inc(x_10); -lean_dec(x_8); -x_11 = lean_nat_dec_lt(x_3, x_2); -if (x_11 == 0) +lean_dec(x_7); +x_10 = lean_nat_dec_lt(x_2, x_1); +if (x_10 == 0) { -switch (lean_obj_tag(x_9)) { +switch (lean_obj_tag(x_8)) { case 3: { -lean_object* x_12; uint8_t x_13; -lean_dec(x_3); +lean_object* x_11; uint8_t x_12; lean_dec(x_2); -x_12 = lean_ctor_get(x_10, 0); -lean_inc(x_12); -x_13 = !lean_is_exclusive(x_12); -if (x_13 == 0) +lean_dec(x_1); +x_11 = lean_ctor_get(x_9, 0); +lean_inc(x_11); +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) { -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_14 = lean_ctor_get(x_12, 4); -x_15 = lean_ctor_get(x_6, 0); -lean_inc(x_15); -x_16 = l_Lean_TraceState_Inhabited___closed__1; -lean_ctor_set(x_12, 4, x_16); -lean_inc(x_9); +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_13 = lean_ctor_get(x_11, 4); +x_14 = lean_ctor_get(x_5, 0); +lean_inc(x_14); +x_15 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_11, 4, x_15); +lean_inc(x_8); +lean_inc(x_4); +x_16 = l___private_Lean_Elab_Inductive_8__eqvFirstTypeResult(x_4, x_8, x_14, x_11); +if (lean_obj_tag(x_16) == 0) +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_18 = lean_ctor_get(x_16, 0); +x_19 = lean_ctor_get(x_16, 1); lean_inc(x_5); -x_17 = l___private_Lean_Elab_Inductive_8__eqvFirstTypeResult(x_5, x_9, x_15, x_12); -if (lean_obj_tag(x_17) == 0) +x_20 = l___private_Lean_Elab_Term_3__fromMetaState(x_5, x_9, x_19, x_13); +x_21 = lean_unbox(x_18); +lean_dec(x_18); +if (x_21 == 0) { -uint8_t x_18; -x_18 = !lean_is_exclusive(x_17); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; -x_19 = lean_ctor_get(x_17, 0); -x_20 = lean_ctor_get(x_17, 1); -lean_inc(x_6); -x_21 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_6, x_10, x_20, x_14); -x_22 = lean_unbox(x_19); -lean_dec(x_19); -if (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; lean_object* x_34; -lean_free_object(x_17); -x_23 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_23, 0, x_9); -x_24 = l_Lean_indentExpr(x_23); -x_25 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___closed__3; -x_26 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, x_24); -x_27 = l_Lean_MessageData_ofList___closed__3; -x_28 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_28, 0, x_26); -lean_ctor_set(x_28, 1, x_27); -x_29 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___closed__6; -x_30 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_30, 0, x_28); -lean_ctor_set(x_30, 1, x_29); -x_31 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_31, 0, x_5); -x_32 = l_Lean_indentExpr(x_31); -x_33 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_33, 0, x_30); -lean_ctor_set(x_33, 1, x_32); -x_34 = l_Lean_Elab_Term_throwError___rarg(x_1, x_33, x_6, x_21); -lean_dec(x_1); -return x_34; +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_free_object(x_16); +x_22 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_22, 0, x_8); +x_23 = l_Lean_indentExpr(x_22); +x_24 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___closed__3; +x_25 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_23); +x_26 = l_Lean_MessageData_ofList___closed__3; +x_27 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +x_28 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___closed__6; +x_29 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +x_30 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_30, 0, x_4); +x_31 = l_Lean_indentExpr(x_30); +x_32 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_32, 0, x_29); +lean_ctor_set(x_32, 1, x_31); +x_33 = l_Lean_Elab_Term_throwError___rarg(x_32, x_5, x_20); +return x_33; } else { -lean_object* x_35; -lean_dec(x_9); -lean_dec(x_6); +lean_object* x_34; +lean_dec(x_8); lean_dec(x_5); -lean_dec(x_1); -x_35 = lean_box(0); -lean_ctor_set(x_17, 1, x_21); -lean_ctor_set(x_17, 0, x_35); -return x_17; +lean_dec(x_4); +x_34 = lean_box(0); +lean_ctor_set(x_16, 1, x_20); +lean_ctor_set(x_16, 0, x_34); +return x_16; } } else { -lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; -x_36 = lean_ctor_get(x_17, 0); -x_37 = lean_ctor_get(x_17, 1); -lean_inc(x_37); +lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; +x_35 = lean_ctor_get(x_16, 0); +x_36 = lean_ctor_get(x_16, 1); lean_inc(x_36); -lean_dec(x_17); -lean_inc(x_6); -x_38 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_6, x_10, x_37, x_14); -x_39 = lean_unbox(x_36); -lean_dec(x_36); -if (x_39 == 0) +lean_inc(x_35); +lean_dec(x_16); +lean_inc(x_5); +x_37 = l___private_Lean_Elab_Term_3__fromMetaState(x_5, x_9, x_36, x_13); +x_38 = lean_unbox(x_35); +lean_dec(x_35); +if (x_38 == 0) { -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_40 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_40, 0, x_9); -x_41 = l_Lean_indentExpr(x_40); -x_42 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___closed__3; -x_43 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_41); -x_44 = l_Lean_MessageData_ofList___closed__3; -x_45 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_44); -x_46 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___closed__6; -x_47 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -x_48 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_48, 0, x_5); -x_49 = l_Lean_indentExpr(x_48); -x_50 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_50, 0, x_47); -lean_ctor_set(x_50, 1, x_49); -x_51 = l_Lean_Elab_Term_throwError___rarg(x_1, x_50, x_6, x_38); -lean_dec(x_1); -return x_51; +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_39 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_39, 0, x_8); +x_40 = l_Lean_indentExpr(x_39); +x_41 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___closed__3; +x_42 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_40); +x_43 = l_Lean_MessageData_ofList___closed__3; +x_44 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_44, 0, x_42); +lean_ctor_set(x_44, 1, x_43); +x_45 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___closed__6; +x_46 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_46, 0, x_44); +lean_ctor_set(x_46, 1, x_45); +x_47 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_47, 0, x_4); +x_48 = l_Lean_indentExpr(x_47); +x_49 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_49, 0, x_46); +lean_ctor_set(x_49, 1, x_48); +x_50 = l_Lean_Elab_Term_throwError___rarg(x_49, x_5, x_37); +return x_50; } else { -lean_object* x_52; lean_object* x_53; -lean_dec(x_9); -lean_dec(x_6); +lean_object* x_51; lean_object* x_52; +lean_dec(x_8); lean_dec(x_5); -lean_dec(x_1); -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_38); -return x_53; +lean_dec(x_4); +x_51 = lean_box(0); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_37); +return x_52; } } } else { -uint8_t x_54; -lean_dec(x_9); -lean_dec(x_5); -x_54 = !lean_is_exclusive(x_17); -if (x_54 == 0) +uint8_t x_53; +lean_dec(x_8); +lean_dec(x_4); +x_53 = !lean_is_exclusive(x_16); +if (x_53 == 0) { -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_55 = lean_ctor_get(x_17, 0); -x_56 = lean_ctor_get(x_17, 1); -lean_inc(x_6); -x_57 = l___private_Lean_Elab_Term_2__fromMetaException(x_6, x_1, x_55); -x_58 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_6, x_10, x_56, x_14); -lean_dec(x_1); -lean_ctor_set(x_17, 1, x_58); -lean_ctor_set(x_17, 0, x_57); -return x_17; +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_54 = lean_ctor_get(x_16, 0); +x_55 = lean_ctor_get(x_16, 1); +lean_inc(x_5); +x_56 = l___private_Lean_Elab_Term_2__fromMetaException(x_5, x_54); +x_57 = l___private_Lean_Elab_Term_3__fromMetaState(x_5, x_9, x_55, x_13); +lean_ctor_set(x_16, 1, x_57); +lean_ctor_set(x_16, 0, x_56); +return x_16; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_59 = lean_ctor_get(x_17, 0); -x_60 = lean_ctor_get(x_17, 1); -lean_inc(x_60); +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_58 = lean_ctor_get(x_16, 0); +x_59 = lean_ctor_get(x_16, 1); lean_inc(x_59); -lean_dec(x_17); -lean_inc(x_6); -x_61 = l___private_Lean_Elab_Term_2__fromMetaException(x_6, x_1, x_59); -x_62 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_6, x_10, x_60, x_14); -lean_dec(x_1); -x_63 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_63, 0, x_61); -lean_ctor_set(x_63, 1, x_62); -return x_63; +lean_inc(x_58); +lean_dec(x_16); +lean_inc(x_5); +x_60 = l___private_Lean_Elab_Term_2__fromMetaException(x_5, x_58); +x_61 = l___private_Lean_Elab_Term_3__fromMetaState(x_5, x_9, x_59, x_13); +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 { -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_64 = lean_ctor_get(x_12, 0); -x_65 = lean_ctor_get(x_12, 1); -x_66 = lean_ctor_get(x_12, 2); -x_67 = lean_ctor_get(x_12, 3); -x_68 = lean_ctor_get(x_12, 4); -x_69 = lean_ctor_get(x_12, 5); -lean_inc(x_69); +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_63 = lean_ctor_get(x_11, 0); +x_64 = lean_ctor_get(x_11, 1); +x_65 = lean_ctor_get(x_11, 2); +x_66 = lean_ctor_get(x_11, 3); +x_67 = lean_ctor_get(x_11, 4); +x_68 = lean_ctor_get(x_11, 5); lean_inc(x_68); lean_inc(x_67); lean_inc(x_66); lean_inc(x_65); lean_inc(x_64); -lean_dec(x_12); -x_70 = lean_ctor_get(x_6, 0); -lean_inc(x_70); -x_71 = l_Lean_TraceState_Inhabited___closed__1; -x_72 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_72, 0, x_64); -lean_ctor_set(x_72, 1, x_65); -lean_ctor_set(x_72, 2, x_66); -lean_ctor_set(x_72, 3, x_67); -lean_ctor_set(x_72, 4, x_71); -lean_ctor_set(x_72, 5, x_69); -lean_inc(x_9); -lean_inc(x_5); -x_73 = l___private_Lean_Elab_Inductive_8__eqvFirstTypeResult(x_5, x_9, x_70, x_72); -if (lean_obj_tag(x_73) == 0) +lean_inc(x_63); +lean_dec(x_11); +x_69 = lean_ctor_get(x_5, 0); +lean_inc(x_69); +x_70 = l_Lean_TraceState_Inhabited___closed__1; +x_71 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_71, 0, x_63); +lean_ctor_set(x_71, 1, x_64); +lean_ctor_set(x_71, 2, x_65); +lean_ctor_set(x_71, 3, x_66); +lean_ctor_set(x_71, 4, x_70); +lean_ctor_set(x_71, 5, x_68); +lean_inc(x_8); +lean_inc(x_4); +x_72 = l___private_Lean_Elab_Inductive_8__eqvFirstTypeResult(x_4, x_8, x_69, x_71); +if (lean_obj_tag(x_72) == 0) { -lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; uint8_t x_78; -x_74 = lean_ctor_get(x_73, 0); +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; uint8_t x_77; +x_73 = lean_ctor_get(x_72, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_72, 1); lean_inc(x_74); -x_75 = lean_ctor_get(x_73, 1); -lean_inc(x_75); -if (lean_is_exclusive(x_73)) { - lean_ctor_release(x_73, 0); - lean_ctor_release(x_73, 1); - x_76 = x_73; +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_75 = x_72; } else { - lean_dec_ref(x_73); - x_76 = lean_box(0); + lean_dec_ref(x_72); + x_75 = lean_box(0); } -lean_inc(x_6); -x_77 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_6, x_10, x_75, x_68); -x_78 = lean_unbox(x_74); -lean_dec(x_74); -if (x_78 == 0) +lean_inc(x_5); +x_76 = l___private_Lean_Elab_Term_3__fromMetaState(x_5, x_9, x_74, x_67); +x_77 = lean_unbox(x_73); +lean_dec(x_73); +if (x_77 == 0) { -lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; -lean_dec(x_76); -x_79 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_79, 0, x_9); -x_80 = l_Lean_indentExpr(x_79); -x_81 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___closed__3; -x_82 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_82, 0, x_81); -lean_ctor_set(x_82, 1, x_80); -x_83 = l_Lean_MessageData_ofList___closed__3; -x_84 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_84, 0, x_82); -lean_ctor_set(x_84, 1, x_83); -x_85 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___closed__6; -x_86 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_86, 0, x_84); -lean_ctor_set(x_86, 1, x_85); -x_87 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_87, 0, x_5); -x_88 = l_Lean_indentExpr(x_87); -x_89 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_89, 0, x_86); -lean_ctor_set(x_89, 1, x_88); -x_90 = l_Lean_Elab_Term_throwError___rarg(x_1, x_89, x_6, x_77); -lean_dec(x_1); -return x_90; +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +lean_dec(x_75); +x_78 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_78, 0, x_8); +x_79 = l_Lean_indentExpr(x_78); +x_80 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___closed__3; +x_81 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_81, 0, x_80); +lean_ctor_set(x_81, 1, x_79); +x_82 = l_Lean_MessageData_ofList___closed__3; +x_83 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_83, 0, x_81); +lean_ctor_set(x_83, 1, x_82); +x_84 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___closed__6; +x_85 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_85, 0, x_83); +lean_ctor_set(x_85, 1, x_84); +x_86 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_86, 0, x_4); +x_87 = l_Lean_indentExpr(x_86); +x_88 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_88, 0, x_85); +lean_ctor_set(x_88, 1, x_87); +x_89 = l_Lean_Elab_Term_throwError___rarg(x_88, x_5, x_76); +return x_89; } else { -lean_object* x_91; lean_object* x_92; -lean_dec(x_9); -lean_dec(x_6); +lean_object* x_90; lean_object* x_91; +lean_dec(x_8); lean_dec(x_5); -lean_dec(x_1); -x_91 = lean_box(0); -if (lean_is_scalar(x_76)) { - x_92 = lean_alloc_ctor(0, 2, 0); +lean_dec(x_4); +x_90 = lean_box(0); +if (lean_is_scalar(x_75)) { + x_91 = lean_alloc_ctor(0, 2, 0); } else { - x_92 = x_76; + x_91 = x_75; } -lean_ctor_set(x_92, 0, x_91); -lean_ctor_set(x_92, 1, x_77); -return x_92; +lean_ctor_set(x_91, 0, x_90); +lean_ctor_set(x_91, 1, x_76); +return x_91; } } else { -lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; -lean_dec(x_9); -lean_dec(x_5); -x_93 = lean_ctor_get(x_73, 0); +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; +lean_dec(x_8); +lean_dec(x_4); +x_92 = lean_ctor_get(x_72, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_72, 1); lean_inc(x_93); -x_94 = lean_ctor_get(x_73, 1); -lean_inc(x_94); -if (lean_is_exclusive(x_73)) { - lean_ctor_release(x_73, 0); - lean_ctor_release(x_73, 1); - x_95 = x_73; +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_94 = x_72; } else { - lean_dec_ref(x_73); - x_95 = lean_box(0); + lean_dec_ref(x_72); + x_94 = lean_box(0); } -lean_inc(x_6); -x_96 = l___private_Lean_Elab_Term_2__fromMetaException(x_6, x_1, x_93); -x_97 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_6, x_10, x_94, x_68); -lean_dec(x_1); -if (lean_is_scalar(x_95)) { - x_98 = lean_alloc_ctor(1, 2, 0); +lean_inc(x_5); +x_95 = l___private_Lean_Elab_Term_2__fromMetaException(x_5, x_92); +x_96 = l___private_Lean_Elab_Term_3__fromMetaState(x_5, x_9, x_93, x_67); +if (lean_is_scalar(x_94)) { + x_97 = lean_alloc_ctor(1, 2, 0); } else { - x_98 = x_95; + x_97 = x_94; } -lean_ctor_set(x_98, 0, x_96); -lean_ctor_set(x_98, 1, x_97); -return x_98; +lean_ctor_set(x_97, 0, x_95); +lean_ctor_set(x_97, 1, x_96); +return x_97; } } } case 7: { -lean_object* x_99; lean_object* x_100; lean_object* x_101; uint64_t x_102; uint8_t x_103; lean_object* x_104; lean_object* x_105; -x_99 = lean_ctor_get(x_9, 0); +lean_object* x_98; lean_object* x_99; lean_object* x_100; uint64_t x_101; uint8_t x_102; lean_object* x_103; lean_object* x_104; +x_98 = lean_ctor_get(x_8, 0); +lean_inc(x_98); +x_99 = lean_ctor_get(x_8, 1); lean_inc(x_99); -x_100 = lean_ctor_get(x_9, 1); +x_100 = lean_ctor_get(x_8, 2); lean_inc(x_100); -x_101 = lean_ctor_get(x_9, 2); -lean_inc(x_101); -x_102 = lean_ctor_get_uint64(x_9, sizeof(void*)*3); -lean_dec(x_9); -x_103 = (uint8_t)((x_102 << 24) >> 61); -lean_inc(x_1); -x_104 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___lambda__1___boxed), 8, 5); -lean_closure_set(x_104, 0, x_101); -lean_closure_set(x_104, 1, x_3); -lean_closure_set(x_104, 2, x_1); -lean_closure_set(x_104, 3, x_2); -lean_closure_set(x_104, 4, x_5); -x_105 = l_Lean_Elab_Term_withLocalDecl___rarg(x_1, x_99, x_103, x_100, x_104, x_6, x_10); -lean_dec(x_1); -return x_105; +x_101 = lean_ctor_get_uint64(x_8, sizeof(void*)*3); +lean_dec(x_8); +x_102 = (uint8_t)((x_101 << 24) >> 61); +x_103 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___lambda__1___boxed), 7, 4); +lean_closure_set(x_103, 0, x_100); +lean_closure_set(x_103, 1, x_2); +lean_closure_set(x_103, 2, x_1); +lean_closure_set(x_103, 3, x_4); +x_104 = l_Lean_Elab_Term_withLocalDecl___rarg(x_98, x_102, x_99, x_103, x_5, x_9); +return x_104; } default: { -lean_object* x_106; -lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_3); +lean_object* x_105; +lean_dec(x_8); +lean_dec(x_4); lean_dec(x_2); -x_106 = l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___rarg(x_1, x_6, x_10); lean_dec(x_1); -return x_106; +x_105 = l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___rarg(x_5, x_9); +return x_105; } } } else { +lean_object* x_106; +lean_inc(x_5); +x_106 = l_Lean_Elab_Term_whnf(x_4, x_5, x_9); +if (lean_obj_tag(x_106) == 0) +{ +if (lean_obj_tag(x_8) == 7) +{ lean_object* x_107; -lean_inc(x_6); -x_107 = l_Lean_Elab_Term_whnf(x_1, x_5, x_6, x_10); -if (lean_obj_tag(x_107) == 0) +x_107 = lean_ctor_get(x_106, 0); +lean_inc(x_107); +if (lean_obj_tag(x_107) == 7) { -if (lean_obj_tag(x_9) == 7) -{ -lean_object* x_108; -x_108 = lean_ctor_get(x_107, 0); +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; uint64_t x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; uint64_t x_116; uint8_t x_117; uint8_t x_118; uint8_t x_119; uint8_t x_120; lean_object* x_121; uint8_t x_122; +x_108 = lean_ctor_get(x_106, 1); lean_inc(x_108); -if (lean_obj_tag(x_108) == 7) -{ -lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; uint64_t x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; uint64_t x_117; uint8_t x_118; uint8_t x_119; uint8_t x_120; uint8_t x_121; lean_object* x_122; uint8_t x_123; -x_109 = lean_ctor_get(x_107, 1); +lean_dec(x_106); +x_109 = lean_ctor_get(x_8, 0); lean_inc(x_109); -lean_dec(x_107); -x_110 = lean_ctor_get(x_9, 0); +x_110 = lean_ctor_get(x_8, 1); lean_inc(x_110); -x_111 = lean_ctor_get(x_9, 1); +x_111 = lean_ctor_get(x_8, 2); lean_inc(x_111); -x_112 = lean_ctor_get(x_9, 2); -lean_inc(x_112); -x_113 = lean_ctor_get_uint64(x_9, sizeof(void*)*3); -lean_dec(x_9); -x_114 = lean_ctor_get(x_108, 0); +x_112 = lean_ctor_get_uint64(x_8, sizeof(void*)*3); +lean_dec(x_8); +x_113 = lean_ctor_get(x_107, 0); +lean_inc(x_113); +x_114 = lean_ctor_get(x_107, 1); lean_inc(x_114); -x_115 = lean_ctor_get(x_108, 1); +x_115 = lean_ctor_get(x_107, 2); lean_inc(x_115); -x_116 = lean_ctor_get(x_108, 2); -lean_inc(x_116); -x_117 = lean_ctor_get_uint64(x_108, sizeof(void*)*3); -lean_dec(x_108); -x_118 = lean_name_eq(x_110, x_114); -x_119 = (uint8_t)((x_113 << 24) >> 61); -x_120 = (uint8_t)((x_117 << 24) >> 61); -x_121 = l_Lean_BinderInfo_beq(x_119, x_120); -lean_inc(x_1); -x_122 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___lambda__2___boxed), 8, 5); -lean_closure_set(x_122, 0, x_112); -lean_closure_set(x_122, 1, x_116); -lean_closure_set(x_122, 2, x_3); -lean_closure_set(x_122, 3, x_1); -lean_closure_set(x_122, 4, x_2); -if (x_118 == 0) +x_116 = lean_ctor_get_uint64(x_107, sizeof(void*)*3); +lean_dec(x_107); +x_117 = lean_name_eq(x_109, x_113); +x_118 = (uint8_t)((x_112 << 24) >> 61); +x_119 = (uint8_t)((x_116 << 24) >> 61); +x_120 = l_Lean_BinderInfo_beq(x_118, x_119); +x_121 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___lambda__2___boxed), 7, 4); +lean_closure_set(x_121, 0, x_111); +lean_closure_set(x_121, 1, x_115); +lean_closure_set(x_121, 2, x_2); +lean_closure_set(x_121, 3, x_1); +if (x_117 == 0) +{ +uint8_t x_186; +x_186 = 0; +x_122 = x_186; +goto block_185; +} +else { uint8_t x_187; -x_187 = 0; -x_123 = x_187; -goto block_186; +x_187 = 1; +x_122 = x_187; +goto block_185; +} +block_185: +{ +uint8_t x_123; +if (x_120 == 0) +{ +uint8_t x_183; +x_183 = 0; +x_123 = x_183; +goto block_182; } else { -uint8_t x_188; -x_188 = 1; -x_123 = x_188; -goto block_186; -} -block_186: -{ -uint8_t x_124; -if (x_121 == 0) -{ uint8_t x_184; -x_184 = 0; -x_124 = x_184; -goto block_183; +x_184 = 1; +x_123 = x_184; +goto block_182; +} +block_182: +{ +lean_object* x_124; lean_object* x_137; +if (x_122 == 0) +{ +lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; uint8_t x_178; +lean_dec(x_121); +lean_dec(x_114); +lean_dec(x_110); +x_168 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_168, 0, x_109); +x_169 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___closed__15; +x_170 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_170, 0, x_169); +lean_ctor_set(x_170, 1, x_168); +x_171 = l_Lean_PrettyPrinter_Parenthesizer_node_parenthesizer___closed__8; +x_172 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_172, 0, x_170); +lean_ctor_set(x_172, 1, x_171); +x_173 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_173, 0, x_113); +x_174 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_174, 0, x_172); +lean_ctor_set(x_174, 1, x_173); +x_175 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; +x_176 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_176, 0, x_174); +lean_ctor_set(x_176, 1, x_175); +x_177 = l_Lean_Elab_Term_throwError___rarg(x_176, x_5, x_108); +x_178 = !lean_is_exclusive(x_177); +if (x_178 == 0) +{ +return x_177; } else { -uint8_t x_185; -x_185 = 1; -x_124 = x_185; -goto block_183; +lean_object* x_179; lean_object* x_180; lean_object* x_181; +x_179 = lean_ctor_get(x_177, 0); +x_180 = lean_ctor_get(x_177, 1); +lean_inc(x_180); +lean_inc(x_179); +lean_dec(x_177); +x_181 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_181, 0, x_179); +lean_ctor_set(x_181, 1, x_180); +return x_181; } -block_183: +} +else +{ +lean_dec(x_113); +x_137 = x_108; +goto block_167; +} +block_136: { -lean_object* x_125; lean_object* x_138; if (x_123 == 0) { -lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; uint8_t x_179; -lean_dec(x_122); -lean_dec(x_115); -lean_dec(x_111); -x_169 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_169, 0, x_110); -x_170 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___closed__15; -x_171 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_171, 0, x_170); -lean_ctor_set(x_171, 1, x_169); -x_172 = l_Lean_PrettyPrinter_Parenthesizer_node_parenthesizer___closed__8; -x_173 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_173, 0, x_171); -lean_ctor_set(x_173, 1, x_172); -x_174 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_174, 0, x_114); -x_175 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_175, 0, x_173); -lean_ctor_set(x_175, 1, x_174); -x_176 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; -x_177 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_177, 0, x_175); -lean_ctor_set(x_177, 1, x_176); -x_178 = l_Lean_Elab_Term_throwError___rarg(x_1, x_177, x_6, x_109); -lean_dec(x_1); -x_179 = !lean_is_exclusive(x_178); -if (x_179 == 0) +lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; uint8_t x_131; +lean_dec(x_121); +lean_dec(x_110); +x_125 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_125, 0, x_109); +x_126 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___closed__9; +x_127 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_127, 0, x_126); +lean_ctor_set(x_127, 1, x_125); +x_128 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; +x_129 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_129, 0, x_127); +lean_ctor_set(x_129, 1, x_128); +x_130 = l_Lean_Elab_Term_throwError___rarg(x_129, x_5, x_124); +x_131 = !lean_is_exclusive(x_130); +if (x_131 == 0) { -return x_178; +return x_130; } else { -lean_object* x_180; lean_object* x_181; lean_object* x_182; -x_180 = lean_ctor_get(x_178, 0); -x_181 = lean_ctor_get(x_178, 1); -lean_inc(x_181); -lean_inc(x_180); -lean_dec(x_178); -x_182 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_182, 0, x_180); -lean_ctor_set(x_182, 1, x_181); -return x_182; -} -} -else -{ -lean_dec(x_114); -x_138 = x_109; -goto block_168; -} -block_137: -{ -if (x_124 == 0) -{ -lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; uint8_t x_132; -lean_dec(x_122); -lean_dec(x_111); -x_126 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_126, 0, x_110); -x_127 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___closed__9; -x_128 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_128, 0, x_127); -lean_ctor_set(x_128, 1, x_126); -x_129 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; -x_130 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_130, 0, x_128); -lean_ctor_set(x_130, 1, x_129); -x_131 = l_Lean_Elab_Term_throwError___rarg(x_1, x_130, x_6, x_125); -lean_dec(x_1); -x_132 = !lean_is_exclusive(x_131); -if (x_132 == 0) -{ -return x_131; -} -else -{ -lean_object* x_133; lean_object* x_134; lean_object* x_135; -x_133 = lean_ctor_get(x_131, 0); -x_134 = lean_ctor_get(x_131, 1); -lean_inc(x_134); +lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_132 = lean_ctor_get(x_130, 0); +x_133 = lean_ctor_get(x_130, 1); lean_inc(x_133); -lean_dec(x_131); -x_135 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_135, 0, x_133); -lean_ctor_set(x_135, 1, x_134); +lean_inc(x_132); +lean_dec(x_130); +x_134 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_134, 0, x_132); +lean_ctor_set(x_134, 1, x_133); +return x_134; +} +} +else +{ +lean_object* x_135; +x_135 = l_Lean_Elab_Term_withLocalDecl___rarg(x_109, x_118, x_110, x_121, x_5, x_124); return x_135; } } -else +block_167: { -lean_object* x_136; -x_136 = l_Lean_Elab_Term_withLocalDecl___rarg(x_1, x_110, x_119, x_111, x_122, x_6, x_125); -lean_dec(x_1); -return x_136; -} -} -block_168: +lean_object* x_138; +lean_inc(x_5); +lean_inc(x_114); +lean_inc(x_110); +x_138 = l_Lean_Elab_Term_isDefEq(x_110, x_114, x_5, x_137); +if (lean_obj_tag(x_138) == 0) { -lean_object* x_139; -lean_inc(x_6); -lean_inc(x_115); -lean_inc(x_111); -x_139 = l_Lean_Elab_Term_isDefEq(x_1, x_111, x_115, x_6, x_138); -if (lean_obj_tag(x_139) == 0) -{ -lean_object* x_140; uint8_t x_141; -x_140 = lean_ctor_get(x_139, 0); -lean_inc(x_140); -x_141 = lean_unbox(x_140); -lean_dec(x_140); -if (x_141 == 0) -{ -lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; uint8_t x_159; -lean_dec(x_122); -x_142 = lean_ctor_get(x_139, 1); -lean_inc(x_142); +lean_object* x_139; uint8_t x_140; +x_139 = lean_ctor_get(x_138, 0); +lean_inc(x_139); +x_140 = lean_unbox(x_139); lean_dec(x_139); -x_143 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_143, 0, x_110); -x_144 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___closed__12; -x_145 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_145, 0, x_144); -lean_ctor_set(x_145, 1, x_143); -x_146 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; -x_147 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_147, 0, x_145); -lean_ctor_set(x_147, 1, x_146); -x_148 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_148, 0, x_111); -x_149 = l_Lean_indentExpr(x_148); -x_150 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_150, 0, x_147); -lean_ctor_set(x_150, 1, x_149); -x_151 = l_Lean_MessageData_ofList___closed__3; -x_152 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_152, 0, x_150); -lean_ctor_set(x_152, 1, x_151); -x_153 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___closed__6; -x_154 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_154, 0, x_152); -lean_ctor_set(x_154, 1, x_153); -x_155 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_155, 0, x_115); -x_156 = l_Lean_indentExpr(x_155); -x_157 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_157, 0, x_154); -lean_ctor_set(x_157, 1, x_156); -x_158 = l_Lean_Elab_Term_throwError___rarg(x_1, x_157, x_6, x_142); -lean_dec(x_1); -x_159 = !lean_is_exclusive(x_158); -if (x_159 == 0) +if (x_140 == 0) { -return x_158; +lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t x_158; +lean_dec(x_121); +x_141 = lean_ctor_get(x_138, 1); +lean_inc(x_141); +lean_dec(x_138); +x_142 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_142, 0, x_109); +x_143 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___closed__12; +x_144 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_144, 0, x_143); +lean_ctor_set(x_144, 1, x_142); +x_145 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; +x_146 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_146, 0, x_144); +lean_ctor_set(x_146, 1, x_145); +x_147 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_147, 0, x_110); +x_148 = l_Lean_indentExpr(x_147); +x_149 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_149, 0, x_146); +lean_ctor_set(x_149, 1, x_148); +x_150 = l_Lean_MessageData_ofList___closed__3; +x_151 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_151, 0, x_149); +lean_ctor_set(x_151, 1, x_150); +x_152 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___closed__6; +x_153 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_153, 0, x_151); +lean_ctor_set(x_153, 1, x_152); +x_154 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_154, 0, x_114); +x_155 = l_Lean_indentExpr(x_154); +x_156 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_156, 0, x_153); +lean_ctor_set(x_156, 1, x_155); +x_157 = l_Lean_Elab_Term_throwError___rarg(x_156, x_5, x_141); +x_158 = !lean_is_exclusive(x_157); +if (x_158 == 0) +{ +return x_157; } else { -lean_object* x_160; lean_object* x_161; lean_object* x_162; -x_160 = lean_ctor_get(x_158, 0); -x_161 = lean_ctor_get(x_158, 1); -lean_inc(x_161); +lean_object* x_159; lean_object* x_160; lean_object* x_161; +x_159 = lean_ctor_get(x_157, 0); +x_160 = lean_ctor_get(x_157, 1); lean_inc(x_160); -lean_dec(x_158); -x_162 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_162, 0, x_160); -lean_ctor_set(x_162, 1, x_161); -return x_162; +lean_inc(x_159); +lean_dec(x_157); +x_161 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_161, 0, x_159); +lean_ctor_set(x_161, 1, x_160); +return x_161; } } else { -lean_object* x_163; -lean_dec(x_115); -x_163 = lean_ctor_get(x_139, 1); -lean_inc(x_163); -lean_dec(x_139); -x_125 = x_163; -goto block_137; +lean_object* x_162; +lean_dec(x_114); +x_162 = lean_ctor_get(x_138, 1); +lean_inc(x_162); +lean_dec(x_138); +x_124 = x_162; +goto block_136; } } else { -uint8_t x_164; -lean_dec(x_122); -lean_dec(x_115); -lean_dec(x_111); +uint8_t x_163; +lean_dec(x_121); +lean_dec(x_114); lean_dec(x_110); -lean_dec(x_6); -lean_dec(x_1); -x_164 = !lean_is_exclusive(x_139); -if (x_164 == 0) +lean_dec(x_109); +lean_dec(x_5); +x_163 = !lean_is_exclusive(x_138); +if (x_163 == 0) { -return x_139; +return x_138; } else { -lean_object* x_165; lean_object* x_166; lean_object* x_167; -x_165 = lean_ctor_get(x_139, 0); -x_166 = lean_ctor_get(x_139, 1); -lean_inc(x_166); +lean_object* x_164; lean_object* x_165; lean_object* x_166; +x_164 = lean_ctor_get(x_138, 0); +x_165 = lean_ctor_get(x_138, 1); lean_inc(x_165); -lean_dec(x_139); -x_167 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_167, 0, x_165); -lean_ctor_set(x_167, 1, x_166); -return x_167; +lean_inc(x_164); +lean_dec(x_138); +x_166 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_166, 0, x_164); +lean_ctor_set(x_166, 1, x_165); +return x_166; } } } @@ -3032,120 +2967,116 @@ return x_167; } else { -lean_object* x_189; lean_object* x_190; -lean_dec(x_108); -lean_dec(x_9); -lean_dec(x_3); -lean_dec(x_2); -x_189 = lean_ctor_get(x_107, 1); -lean_inc(x_189); +lean_object* x_188; lean_object* x_189; lean_dec(x_107); -x_190 = l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___rarg(x_1, x_6, x_189); -lean_dec(x_1); -return x_190; -} -} -else -{ -lean_object* x_191; lean_object* x_192; -lean_dec(x_9); -lean_dec(x_3); -lean_dec(x_2); -x_191 = lean_ctor_get(x_107, 1); -lean_inc(x_191); -lean_dec(x_107); -x_192 = l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___rarg(x_1, x_6, x_191); -lean_dec(x_1); -return x_192; -} -} -else -{ -uint8_t x_193; -lean_dec(x_9); -lean_dec(x_6); -lean_dec(x_3); +lean_dec(x_8); lean_dec(x_2); lean_dec(x_1); -x_193 = !lean_is_exclusive(x_107); -if (x_193 == 0) -{ -return x_107; +x_188 = lean_ctor_get(x_106, 1); +lean_inc(x_188); +lean_dec(x_106); +x_189 = l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___rarg(x_5, x_188); +return x_189; +} } else { -lean_object* x_194; lean_object* x_195; lean_object* x_196; -x_194 = lean_ctor_get(x_107, 0); -x_195 = lean_ctor_get(x_107, 1); -lean_inc(x_195); +lean_object* x_190; lean_object* x_191; +lean_dec(x_8); +lean_dec(x_2); +lean_dec(x_1); +x_190 = lean_ctor_get(x_106, 1); +lean_inc(x_190); +lean_dec(x_106); +x_191 = l___private_Lean_Elab_Inductive_6__throwUnexpectedInductiveType___rarg(x_5, x_190); +return x_191; +} +} +else +{ +uint8_t x_192; +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_192 = !lean_is_exclusive(x_106); +if (x_192 == 0) +{ +return x_106; +} +else +{ +lean_object* x_193; lean_object* x_194; lean_object* x_195; +x_193 = lean_ctor_get(x_106, 0); +x_194 = lean_ctor_get(x_106, 1); lean_inc(x_194); -lean_dec(x_107); -x_196 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_196, 0, x_194); -lean_ctor_set(x_196, 1, x_195); -return x_196; +lean_inc(x_193); +lean_dec(x_106); +x_195 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_195, 0, x_193); +lean_ctor_set(x_195, 1, x_194); +return x_195; } } } } else { -uint8_t x_197; -lean_dec(x_6); +uint8_t x_196; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_196 = !lean_is_exclusive(x_7); +if (x_196 == 0) +{ +return x_7; +} +else +{ +lean_object* x_197; lean_object* x_198; lean_object* x_199; +x_197 = lean_ctor_get(x_7, 0); +x_198 = lean_ctor_get(x_7, 1); +lean_inc(x_198); +lean_inc(x_197); +lean_dec(x_7); +x_199 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_199, 0, x_197); +lean_ctor_set(x_199, 1, x_198); +return x_199; +} +} +} +} +lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___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) { +_start: +{ +lean_object* x_8; +x_8 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +return x_8; +} +} +lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___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) { +_start: +{ +lean_object* x_8; +x_8 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_197 = !lean_is_exclusive(x_8); -if (x_197 == 0) -{ return x_8; } -else -{ -lean_object* x_198; lean_object* x_199; lean_object* x_200; -x_198 = lean_ctor_get(x_8, 0); -x_199 = lean_ctor_get(x_8, 1); -lean_inc(x_199); -lean_inc(x_198); -lean_dec(x_8); -x_200 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_200, 0, x_198); -lean_ctor_set(x_200, 1, x_199); -return x_200; } -} -} -} -lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___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* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType(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_9; -x_9 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_6); -lean_dec(x_2); -lean_dec(x_1); -return x_9; -} -} -lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___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) { -_start: -{ -lean_object* x_9; -x_9 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_6); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_9; -} -} -lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType(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_Elab_Inductive_9__checkParamsAndResultType___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -return x_8; +lean_object* x_7; +x_7 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main(x_1, x_2, x_3, x_4, x_5, x_6); +return x_7; } } lean_object* l___private_Lean_Elab_Inductive_10__checkHeader(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { @@ -3184,7 +3115,7 @@ return x_10; } else { -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_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; x_11 = lean_ctor_get(x_6, 0); lean_inc(x_11); x_12 = lean_ctor_get(x_6, 1); @@ -3199,82 +3130,183 @@ lean_dec(x_1); x_15 = lean_ctor_get(x_14, 0); lean_inc(x_15); lean_dec(x_14); -x_16 = lean_unsigned_to_nat(0u); +x_16 = !lean_is_exclusive(x_4); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_4, 10); +lean_dec(x_17); +lean_ctor_set(x_4, 10, x_15); +x_18 = lean_unsigned_to_nat(0u); lean_inc(x_13); -x_17 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main(x_15, x_2, x_16, x_11, x_13, x_4, x_12); -if (lean_obj_tag(x_17) == 0) +x_19 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main(x_2, x_18, x_11, x_13, x_4, x_12); +if (lean_obj_tag(x_19) == 0) { -uint8_t x_18; -x_18 = !lean_is_exclusive(x_17); -if (x_18 == 0) +uint8_t x_20; +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) { -lean_object* x_19; -x_19 = lean_ctor_get(x_17, 0); +lean_object* x_21; +x_21 = lean_ctor_get(x_19, 0); +lean_dec(x_21); +lean_ctor_set(x_19, 0, x_13); +return x_19; +} +else +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_ctor_get(x_19, 1); +lean_inc(x_22); lean_dec(x_19); -lean_ctor_set(x_17, 0, x_13); -return x_17; -} -else -{ -lean_object* x_20; lean_object* x_21; -x_20 = lean_ctor_get(x_17, 1); -lean_inc(x_20); -lean_dec(x_17); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_13); -lean_ctor_set(x_21, 1, x_20); -return x_21; +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_13); +lean_ctor_set(x_23, 1, x_22); +return x_23; } } else { -uint8_t x_22; +uint8_t x_24; lean_dec(x_13); -x_22 = !lean_is_exclusive(x_17); -if (x_22 == 0) +x_24 = !lean_is_exclusive(x_19); +if (x_24 == 0) { -return x_17; +return x_19; } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_17, 0); -x_24 = lean_ctor_get(x_17, 1); -lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_17); -x_25 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_25, 0, x_23); -lean_ctor_set(x_25, 1, x_24); -return x_25; +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 +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; uint8_t x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_28 = lean_ctor_get(x_4, 0); +x_29 = lean_ctor_get(x_4, 1); +x_30 = lean_ctor_get(x_4, 2); +x_31 = lean_ctor_get(x_4, 3); +x_32 = lean_ctor_get(x_4, 4); +x_33 = lean_ctor_get(x_4, 5); +x_34 = lean_ctor_get(x_4, 6); +x_35 = lean_ctor_get(x_4, 7); +x_36 = lean_ctor_get(x_4, 8); +x_37 = lean_ctor_get(x_4, 9); +x_38 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_39 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_40 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +lean_inc(x_37); +lean_inc(x_36); +lean_inc(x_35); +lean_inc(x_34); +lean_inc(x_33); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_4); +x_41 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_41, 0, x_28); +lean_ctor_set(x_41, 1, x_29); +lean_ctor_set(x_41, 2, x_30); +lean_ctor_set(x_41, 3, x_31); +lean_ctor_set(x_41, 4, x_32); +lean_ctor_set(x_41, 5, x_33); +lean_ctor_set(x_41, 6, x_34); +lean_ctor_set(x_41, 7, x_35); +lean_ctor_set(x_41, 8, x_36); +lean_ctor_set(x_41, 9, x_37); +lean_ctor_set(x_41, 10, x_15); +lean_ctor_set_uint8(x_41, sizeof(void*)*11, x_38); +lean_ctor_set_uint8(x_41, sizeof(void*)*11 + 1, x_39); +lean_ctor_set_uint8(x_41, sizeof(void*)*11 + 2, x_40); +x_42 = lean_unsigned_to_nat(0u); +lean_inc(x_13); +x_43 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___main(x_2, x_42, x_11, x_13, x_41, x_12); +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, 1); +lean_inc(x_44); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + lean_ctor_release(x_43, 1); + x_45 = x_43; +} else { + lean_dec_ref(x_43); + x_45 = lean_box(0); +} +if (lean_is_scalar(x_45)) { + x_46 = lean_alloc_ctor(0, 2, 0); +} else { + x_46 = x_45; +} +lean_ctor_set(x_46, 0, x_13); +lean_ctor_set(x_46, 1, x_44); +return x_46; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +lean_dec(x_13); +x_47 = lean_ctor_get(x_43, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_43, 1); +lean_inc(x_48); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + lean_ctor_release(x_43, 1); + x_49 = x_43; +} else { + lean_dec_ref(x_43); + x_49 = lean_box(0); +} +if (lean_is_scalar(x_49)) { + x_50 = lean_alloc_ctor(1, 2, 0); +} else { + x_50 = x_49; +} +lean_ctor_set(x_50, 0, x_47); +lean_ctor_set(x_50, 1, x_48); +return x_50; } } } } else { -uint8_t x_26; +uint8_t x_51; lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_26 = !lean_is_exclusive(x_6); -if (x_26 == 0) +x_51 = !lean_is_exclusive(x_6); +if (x_51 == 0) { return x_6; } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_6, 0); -x_28 = lean_ctor_get(x_6, 1); -lean_inc(x_28); -lean_inc(x_27); +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_6, 0); +x_53 = lean_ctor_get(x_6, 1); +lean_inc(x_53); +lean_inc(x_52); lean_dec(x_6); -x_29 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_29, 0, x_27); -lean_ctor_set(x_29, 1, x_28); -return x_29; +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; } } } @@ -3701,204 +3733,194 @@ return x_67; } } } -lean_object* l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___main___rarg___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_Elab_Inductive_13__withInductiveLocalDeclsAux___main___rarg___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; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_10 = lean_unsigned_to_nat(1u); -x_11 = lean_nat_add(x_1, x_10); -x_12 = lean_array_push(x_2, x_7); -x_13 = l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___main___rarg(x_3, x_4, x_5, x_6, x_11, x_12, x_8, x_9); -return x_13; +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_9 = lean_unsigned_to_nat(1u); +x_10 = lean_nat_add(x_1, x_9); +x_11 = lean_array_push(x_2, x_6); +x_12 = l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___main___rarg(x_3, x_4, x_5, x_10, x_11, x_7, x_8); +return x_12; } } -lean_object* l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___main___rarg(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_Elab_Inductive_13__withInductiveLocalDeclsAux___main___rarg(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_9; uint8_t x_10; -x_9 = lean_array_get_size(x_2); -x_10 = lean_nat_dec_lt(x_5, x_9); -lean_dec(x_9); -if (x_10 == 0) +lean_object* x_8; uint8_t x_9; +x_8 = lean_array_get_size(x_1); +x_9 = lean_nat_dec_lt(x_4, x_8); +lean_dec(x_8); +if (x_9 == 0) { -lean_object* x_11; -lean_dec(x_5); -lean_dec(x_2); +lean_object* x_10; +lean_dec(x_4); lean_dec(x_1); -x_11 = lean_apply_4(x_4, x_3, x_6, x_7, x_8); -return x_11; +x_10 = lean_apply_4(x_3, x_2, x_5, x_6, x_7); +return x_10; } else { -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_12 = lean_array_fget(x_2, x_5); -x_13 = lean_ctor_get(x_8, 0); +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_11 = lean_array_fget(x_1, x_4); +x_12 = lean_ctor_get(x_7, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 0); lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 0); +x_14 = lean_ctor_get(x_11, 1); lean_inc(x_14); -x_15 = lean_ctor_get(x_12, 1); -lean_inc(x_15); -lean_dec(x_12); -x_16 = !lean_is_exclusive(x_13); -if (x_16 == 0) +lean_dec(x_11); +x_15 = !lean_is_exclusive(x_12); +if (x_15 == 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_13, 4); -x_18 = lean_ctor_get(x_7, 0); -lean_inc(x_18); -x_19 = l_Lean_TraceState_Inhabited___closed__1; -lean_ctor_set(x_13, 4, x_19); -x_20 = lean_unsigned_to_nat(0u); -x_21 = l___private_Lean_Meta_Basic_11__instantiateForallAux___main(x_3, x_20, x_15, x_18, x_13); -if (lean_obj_tag(x_21) == 0) +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_16 = lean_ctor_get(x_12, 4); +x_17 = lean_ctor_get(x_6, 0); +lean_inc(x_17); +x_18 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_12, 4, x_18); +x_19 = lean_unsigned_to_nat(0u); +x_20 = l___private_Lean_Meta_Basic_11__instantiateForallAux___main(x_2, x_19, x_14, x_17, x_12); +if (lean_obj_tag(x_20) == 0) { -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; lean_object* x_27; -x_22 = lean_ctor_get(x_21, 0); +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_20, 1); lean_inc(x_22); -x_23 = lean_ctor_get(x_21, 1); -lean_inc(x_23); -lean_dec(x_21); -lean_inc(x_7); -x_24 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_7, x_8, x_23, x_17); -lean_inc(x_1); -x_25 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___main___rarg___lambda__1___boxed), 9, 6); -lean_closure_set(x_25, 0, x_5); -lean_closure_set(x_25, 1, x_6); -lean_closure_set(x_25, 2, x_1); -lean_closure_set(x_25, 3, x_2); -lean_closure_set(x_25, 4, x_3); -lean_closure_set(x_25, 5, x_4); -x_26 = 0; -x_27 = l_Lean_Elab_Term_withLocalDecl___rarg(x_1, x_14, x_26, x_22, x_25, x_7, x_24); -lean_dec(x_1); -return x_27; +lean_dec(x_20); +lean_inc(x_6); +x_23 = l___private_Lean_Elab_Term_3__fromMetaState(x_6, x_7, x_22, x_16); +x_24 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___main___rarg___lambda__1___boxed), 8, 5); +lean_closure_set(x_24, 0, x_4); +lean_closure_set(x_24, 1, x_5); +lean_closure_set(x_24, 2, x_1); +lean_closure_set(x_24, 3, x_2); +lean_closure_set(x_24, 4, x_3); +x_25 = 0; +x_26 = l_Lean_Elab_Term_withLocalDecl___rarg(x_13, x_25, x_21, x_24, x_6, x_23); +return x_26; } else { -uint8_t x_28; -lean_dec(x_14); -lean_dec(x_6); +uint8_t x_27; +lean_dec(x_13); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_28 = !lean_is_exclusive(x_21); -if (x_28 == 0) -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_29 = lean_ctor_get(x_21, 0); -x_30 = lean_ctor_get(x_21, 1); -lean_inc(x_7); -x_31 = l___private_Lean_Elab_Term_2__fromMetaException(x_7, x_1, x_29); -x_32 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_7, x_8, x_30, x_17); lean_dec(x_1); -lean_ctor_set(x_21, 1, x_32); -lean_ctor_set(x_21, 0, x_31); -return x_21; +x_27 = !lean_is_exclusive(x_20); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_28 = lean_ctor_get(x_20, 0); +x_29 = lean_ctor_get(x_20, 1); +lean_inc(x_6); +x_30 = l___private_Lean_Elab_Term_2__fromMetaException(x_6, x_28); +x_31 = l___private_Lean_Elab_Term_3__fromMetaState(x_6, x_7, x_29, x_16); +lean_ctor_set(x_20, 1, x_31); +lean_ctor_set(x_20, 0, x_30); +return x_20; } else { -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_33 = lean_ctor_get(x_21, 0); -x_34 = lean_ctor_get(x_21, 1); -lean_inc(x_34); +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_32 = lean_ctor_get(x_20, 0); +x_33 = lean_ctor_get(x_20, 1); lean_inc(x_33); -lean_dec(x_21); -lean_inc(x_7); -x_35 = l___private_Lean_Elab_Term_2__fromMetaException(x_7, x_1, x_33); -x_36 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_7, x_8, x_34, x_17); -lean_dec(x_1); -x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_35); -lean_ctor_set(x_37, 1, x_36); -return x_37; +lean_inc(x_32); +lean_dec(x_20); +lean_inc(x_6); +x_34 = l___private_Lean_Elab_Term_2__fromMetaException(x_6, x_32); +x_35 = l___private_Lean_Elab_Term_3__fromMetaState(x_6, x_7, x_33, x_16); +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; } } } else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_38 = lean_ctor_get(x_13, 0); -x_39 = lean_ctor_get(x_13, 1); -x_40 = lean_ctor_get(x_13, 2); -x_41 = lean_ctor_get(x_13, 3); -x_42 = lean_ctor_get(x_13, 4); -x_43 = lean_ctor_get(x_13, 5); -lean_inc(x_43); +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_37 = lean_ctor_get(x_12, 0); +x_38 = lean_ctor_get(x_12, 1); +x_39 = lean_ctor_get(x_12, 2); +x_40 = lean_ctor_get(x_12, 3); +x_41 = lean_ctor_get(x_12, 4); +x_42 = lean_ctor_get(x_12, 5); lean_inc(x_42); lean_inc(x_41); lean_inc(x_40); lean_inc(x_39); lean_inc(x_38); -lean_dec(x_13); -x_44 = lean_ctor_get(x_7, 0); -lean_inc(x_44); -x_45 = l_Lean_TraceState_Inhabited___closed__1; -x_46 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_46, 0, x_38); -lean_ctor_set(x_46, 1, x_39); -lean_ctor_set(x_46, 2, x_40); -lean_ctor_set(x_46, 3, x_41); -lean_ctor_set(x_46, 4, x_45); -lean_ctor_set(x_46, 5, x_43); -x_47 = lean_unsigned_to_nat(0u); -x_48 = l___private_Lean_Meta_Basic_11__instantiateForallAux___main(x_3, x_47, x_15, x_44, x_46); -if (lean_obj_tag(x_48) == 0) +lean_inc(x_37); +lean_dec(x_12); +x_43 = lean_ctor_get(x_6, 0); +lean_inc(x_43); +x_44 = l_Lean_TraceState_Inhabited___closed__1; +x_45 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_45, 0, x_37); +lean_ctor_set(x_45, 1, x_38); +lean_ctor_set(x_45, 2, x_39); +lean_ctor_set(x_45, 3, x_40); +lean_ctor_set(x_45, 4, x_44); +lean_ctor_set(x_45, 5, x_42); +x_46 = lean_unsigned_to_nat(0u); +x_47 = l___private_Lean_Meta_Basic_11__instantiateForallAux___main(x_2, x_46, x_14, x_43, x_45); +if (lean_obj_tag(x_47) == 0) { -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; lean_object* x_54; -x_49 = lean_ctor_get(x_48, 0); +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; lean_object* x_53; +x_48 = lean_ctor_get(x_47, 0); +lean_inc(x_48); +x_49 = lean_ctor_get(x_47, 1); lean_inc(x_49); -x_50 = lean_ctor_get(x_48, 1); -lean_inc(x_50); -lean_dec(x_48); -lean_inc(x_7); -x_51 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_7, x_8, x_50, x_42); -lean_inc(x_1); -x_52 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___main___rarg___lambda__1___boxed), 9, 6); -lean_closure_set(x_52, 0, x_5); -lean_closure_set(x_52, 1, x_6); -lean_closure_set(x_52, 2, x_1); -lean_closure_set(x_52, 3, x_2); -lean_closure_set(x_52, 4, x_3); -lean_closure_set(x_52, 5, x_4); -x_53 = 0; -x_54 = l_Lean_Elab_Term_withLocalDecl___rarg(x_1, x_14, x_53, x_49, x_52, x_7, x_51); -lean_dec(x_1); -return x_54; +lean_dec(x_47); +lean_inc(x_6); +x_50 = l___private_Lean_Elab_Term_3__fromMetaState(x_6, x_7, x_49, x_41); +x_51 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___main___rarg___lambda__1___boxed), 8, 5); +lean_closure_set(x_51, 0, x_4); +lean_closure_set(x_51, 1, x_5); +lean_closure_set(x_51, 2, x_1); +lean_closure_set(x_51, 3, x_2); +lean_closure_set(x_51, 4, x_3); +x_52 = 0; +x_53 = l_Lean_Elab_Term_withLocalDecl___rarg(x_13, x_52, x_48, x_51, x_6, x_50); +return x_53; } else { -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -lean_dec(x_14); -lean_dec(x_6); +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +lean_dec(x_13); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_55 = lean_ctor_get(x_48, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_48, 1); -lean_inc(x_56); -if (lean_is_exclusive(x_48)) { - lean_ctor_release(x_48, 0); - lean_ctor_release(x_48, 1); - x_57 = x_48; -} else { - lean_dec_ref(x_48); - x_57 = lean_box(0); -} -lean_inc(x_7); -x_58 = l___private_Lean_Elab_Term_2__fromMetaException(x_7, x_1, x_55); -x_59 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_7, x_8, x_56, x_42); lean_dec(x_1); -if (lean_is_scalar(x_57)) { - x_60 = lean_alloc_ctor(1, 2, 0); +x_54 = lean_ctor_get(x_47, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_47, 1); +lean_inc(x_55); +if (lean_is_exclusive(x_47)) { + lean_ctor_release(x_47, 0); + lean_ctor_release(x_47, 1); + x_56 = x_47; } else { - x_60 = x_57; + lean_dec_ref(x_47); + x_56 = lean_box(0); } -lean_ctor_set(x_60, 0, x_58); -lean_ctor_set(x_60, 1, x_59); -return x_60; +lean_inc(x_6); +x_57 = l___private_Lean_Elab_Term_2__fromMetaException(x_6, x_54); +x_58 = l___private_Lean_Elab_Term_3__fromMetaState(x_6, x_7, x_55, x_41); +if (lean_is_scalar(x_56)) { + x_59 = lean_alloc_ctor(1, 2, 0); +} else { + x_59 = x_56; +} +lean_ctor_set(x_59, 0, x_57); +lean_ctor_set(x_59, 1, x_58); +return x_59; } } } @@ -3908,32 +3930,32 @@ lean_object* l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___ma _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___main___rarg), 8, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___main___rarg), 7, 0); return x_2; } } -lean_object* l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___main___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) { -_start: -{ -lean_object* x_10; -x_10 = l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___main___rarg___lambda__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___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___rarg(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_Elab_Inductive_13__withInductiveLocalDeclsAux___main___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) { _start: { lean_object* x_9; -x_9 = l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___main___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___main___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_1); return x_9; } } +lean_object* l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___rarg(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_Elab_Inductive_13__withInductiveLocalDeclsAux___main___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +return x_8; +} +} lean_object* l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___rarg), 8, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___rarg), 7, 0); return x_2; } } @@ -4036,7 +4058,7 @@ lean_inc(x_3); x_9 = lean_apply_2(x_8, x_3, x_4); 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; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +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_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); x_11 = lean_ctor_get(x_9, 1); @@ -4058,39 +4080,41 @@ x_18 = lean_ctor_get(x_17, 0); lean_inc(x_18); lean_dec(x_17); x_19 = l_Array_empty___closed__1; -x_20 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___rarg), 8, 6); -lean_closure_set(x_20, 0, x_18); -lean_closure_set(x_20, 1, x_10); -lean_closure_set(x_20, 2, x_14); -lean_closure_set(x_20, 3, x_2); -lean_closure_set(x_20, 4, x_6); -lean_closure_set(x_20, 5, x_19); -x_21 = l_Lean_Elab_Term_withLocalContext___rarg(x_15, x_16, x_20, x_3, x_11); -return x_21; +x_20 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___rarg), 7, 5); +lean_closure_set(x_20, 0, x_10); +lean_closure_set(x_20, 1, x_14); +lean_closure_set(x_20, 2, x_2); +lean_closure_set(x_20, 3, x_6); +lean_closure_set(x_20, 4, x_19); +x_21 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withRef___rarg), 4, 2); +lean_closure_set(x_21, 0, x_18); +lean_closure_set(x_21, 1, x_20); +x_22 = l_Lean_Elab_Term_withLocalContext___rarg(x_15, x_16, x_21, x_3, x_11); +return x_22; } else { -uint8_t x_22; +uint8_t x_23; lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_22 = !lean_is_exclusive(x_9); -if (x_22 == 0) +x_23 = !lean_is_exclusive(x_9); +if (x_23 == 0) { return x_9; } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_9, 0); -x_24 = lean_ctor_get(x_9, 1); +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_9, 0); +x_25 = lean_ctor_get(x_9, 1); +lean_inc(x_25); lean_inc(x_24); -lean_inc(x_23); lean_dec(x_9); -x_25 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_25, 0, x_23); -lean_ctor_set(x_25, 1, x_24); -return x_25; +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; } } } @@ -4103,137 +4127,128 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_14__withInducti return x_2; } } -lean_object* l___private_Lean_Elab_Inductive_15__isInductiveFamily(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Inductive_15__isInductiveFamily(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; -lean_inc(x_3); -x_5 = l_Lean_Elab_Term_inferType(x_1, x_2, x_3, x_4); -if (lean_obj_tag(x_5) == 0) +lean_object* x_4; +lean_inc(x_2); +x_4 = l_Lean_Elab_Term_inferType(x_1, x_2, x_3); +if (lean_obj_tag(x_4) == 0) { -lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_6 = lean_ctor_get(x_5, 0); +lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_4, 1); lean_inc(x_6); -x_7 = lean_ctor_get(x_5, 1); -lean_inc(x_7); -lean_dec(x_5); -x_8 = l_Lean_Elab_Term_whnf(x_1, x_6, x_3, x_7); -if (lean_obj_tag(x_8) == 0) +lean_dec(x_4); +x_7 = l_Lean_Elab_Term_whnf(x_5, x_2, x_6); +if (lean_obj_tag(x_7) == 0) { -uint8_t x_9; -x_9 = !lean_is_exclusive(x_8); -if (x_9 == 0) +uint8_t x_8; +x_8 = !lean_is_exclusive(x_7); +if (x_8 == 0) { -lean_object* x_10; uint8_t x_11; -x_10 = lean_ctor_get(x_8, 0); -x_11 = l_Lean_Expr_isSort(x_10); -lean_dec(x_10); -if (x_11 == 0) +lean_object* x_9; uint8_t x_10; +x_9 = lean_ctor_get(x_7, 0); +x_10 = l_Lean_Expr_isSort(x_9); +lean_dec(x_9); +if (x_10 == 0) { -uint8_t x_12; lean_object* x_13; -x_12 = 1; -x_13 = lean_box(x_12); -lean_ctor_set(x_8, 0, x_13); -return x_8; +uint8_t x_11; lean_object* x_12; +x_11 = 1; +x_12 = lean_box(x_11); +lean_ctor_set(x_7, 0, x_12); +return x_7; } else { -uint8_t x_14; lean_object* x_15; -x_14 = 0; -x_15 = lean_box(x_14); -lean_ctor_set(x_8, 0, x_15); -return x_8; +uint8_t x_13; lean_object* x_14; +x_13 = 0; +x_14 = lean_box(x_13); +lean_ctor_set(x_7, 0, x_14); +return x_7; } } else { -lean_object* x_16; lean_object* x_17; uint8_t x_18; -x_16 = lean_ctor_get(x_8, 0); -x_17 = lean_ctor_get(x_8, 1); -lean_inc(x_17); +lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_15 = lean_ctor_get(x_7, 0); +x_16 = lean_ctor_get(x_7, 1); lean_inc(x_16); -lean_dec(x_8); -x_18 = l_Lean_Expr_isSort(x_16); -lean_dec(x_16); -if (x_18 == 0) +lean_inc(x_15); +lean_dec(x_7); +x_17 = l_Lean_Expr_isSort(x_15); +lean_dec(x_15); +if (x_17 == 0) { -uint8_t x_19; lean_object* x_20; lean_object* x_21; -x_19 = 1; -x_20 = lean_box(x_19); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_17); -return x_21; +uint8_t x_18; lean_object* x_19; lean_object* x_20; +x_18 = 1; +x_19 = lean_box(x_18); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_16); +return x_20; } else { -uint8_t x_22; lean_object* x_23; lean_object* x_24; -x_22 = 0; -x_23 = lean_box(x_22); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_17); -return x_24; +uint8_t x_21; lean_object* x_22; lean_object* x_23; +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_16); +return x_23; } } } else { -uint8_t x_25; -x_25 = !lean_is_exclusive(x_8); -if (x_25 == 0) +uint8_t x_24; +x_24 = !lean_is_exclusive(x_7); +if (x_24 == 0) { -return x_8; +return x_7; } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_8, 0); -x_27 = lean_ctor_get(x_8, 1); -lean_inc(x_27); +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_dec(x_8); -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; +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; } } } else { -uint8_t x_29; -lean_dec(x_3); -x_29 = !lean_is_exclusive(x_5); -if (x_29 == 0) +uint8_t x_28; +lean_dec(x_2); +x_28 = !lean_is_exclusive(x_4); +if (x_28 == 0) { -return x_5; +return x_4; } else { -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_5, 0); -x_31 = lean_ctor_get(x_5, 1); -lean_inc(x_31); +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_4, 0); +x_30 = lean_ctor_get(x_4, 1); lean_inc(x_30); -lean_dec(x_5); -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; +lean_inc(x_29); +lean_dec(x_4); +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_Elab_Inductive_15__isInductiveFamily___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l___private_Lean_Elab_Inductive_15__isInductiveFamily(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} lean_object* _init_l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___lambda__1___closed__1() { _start: { @@ -4321,370 +4336,776 @@ return x_2; lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_33; +lean_object* x_8; lean_object* x_9; uint8_t x_10; x_8 = lean_ctor_get(x_1, 0); lean_inc(x_8); -x_33 = lean_ctor_get(x_1, 4); -lean_inc(x_33); -if (lean_obj_tag(x_33) == 0) +x_9 = lean_ctor_get(x_1, 4); +lean_inc(x_9); +x_10 = !lean_is_exclusive(x_6); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_6, 10); +lean_dec(x_11); +lean_ctor_set(x_6, 10, x_8); +if (lean_obj_tag(x_9) == 0) { if (x_3 == 0) { -x_9 = x_4; -x_10 = x_7; -goto block_32; +x_12 = x_4; +x_13 = x_7; +goto block_35; } else { -lean_object* x_34; lean_object* x_35; uint8_t x_36; +lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_34 = l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___lambda__1___closed__3; -x_35 = l_Lean_Elab_Term_throwError___rarg(x_8, x_34, x_6, x_7); -lean_dec(x_8); -x_36 = !lean_is_exclusive(x_35); -if (x_36 == 0) +x_36 = l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___lambda__1___closed__3; +x_37 = l_Lean_Elab_Term_throwError___rarg(x_36, x_6, x_7); +x_38 = !lean_is_exclusive(x_37); +if (x_38 == 0) { -return x_35; +return x_37; } else { -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_35, 0); -x_38 = lean_ctor_get(x_35, 1); -lean_inc(x_38); -lean_inc(x_37); -lean_dec(x_35); -x_39 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_39, 0, x_37); -lean_ctor_set(x_39, 1, x_38); -return x_39; -} -} -} -else -{ -lean_object* x_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; -x_40 = lean_ctor_get(x_33, 0); +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_37, 0); +x_40 = lean_ctor_get(x_37, 1); lean_inc(x_40); -lean_dec(x_33); -x_41 = lean_box(0); -x_42 = 1; -lean_inc(x_6); -x_43 = l_Lean_Elab_Term_elabTermAux___main(x_41, x_42, x_42, x_40, x_6, x_7); -if (lean_obj_tag(x_43) == 0) +lean_inc(x_39); +lean_dec(x_37); +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 { -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); +lean_object* x_42; lean_object* x_43; uint8_t x_44; lean_object* x_45; +x_42 = lean_ctor_get(x_9, 0); +lean_inc(x_42); +lean_dec(x_9); +x_43 = lean_box(0); +x_44 = 1; lean_inc(x_6); -lean_inc(x_44); -x_46 = l___private_Lean_Elab_Inductive_7__getResultingType(x_8, x_44, x_6, x_45); -if (lean_obj_tag(x_46) == 0) +x_45 = l_Lean_Elab_Term_elabTerm(x_42, x_43, x_44, x_6, x_7); +if (lean_obj_tag(x_45) == 0) { -lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; -x_47 = lean_ctor_get(x_46, 0); +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_45, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_45, 1); lean_inc(x_47); -x_48 = lean_ctor_get(x_46, 1); -lean_inc(x_48); -lean_dec(x_46); -x_49 = l_Lean_Expr_getAppFn___main(x_47); -x_50 = lean_expr_eqv(x_49, x_4); +lean_dec(x_45); +lean_inc(x_6); +lean_inc(x_46); +x_48 = l___private_Lean_Elab_Inductive_7__getResultingType(x_46, x_6, x_47); +if (lean_obj_tag(x_48) == 0) +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; +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 = l_Lean_Expr_getAppFn___main(x_49); +x_52 = lean_expr_eqv(x_51, x_4); lean_dec(x_4); -lean_dec(x_49); -if (x_50 == 0) +lean_dec(x_51); +if (x_52 == 0) { -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; -lean_dec(x_44); +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; +lean_dec(x_46); lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); -x_51 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_51, 0, x_47); -x_52 = l_Lean_indentExpr(x_51); -x_53 = l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___lambda__1___closed__6; -x_54 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_54, 1, x_52); -x_55 = l_Lean_Elab_Term_throwError___rarg(x_8, x_54, x_6, x_48); -lean_dec(x_8); -x_56 = !lean_is_exclusive(x_55); -if (x_56 == 0) +x_53 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_53, 0, x_49); +x_54 = l_Lean_indentExpr(x_53); +x_55 = l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___lambda__1___closed__6; +x_56 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_54); +x_57 = l_Lean_Elab_Term_throwError___rarg(x_56, x_6, x_50); +x_58 = !lean_is_exclusive(x_57); +if (x_58 == 0) { -return x_55; +return x_57; } else { -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_55, 0); -x_58 = lean_ctor_get(x_55, 1); -lean_inc(x_58); -lean_inc(x_57); -lean_dec(x_55); -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; +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_57, 0); +x_60 = lean_ctor_get(x_57, 1); +lean_inc(x_60); +lean_inc(x_59); +lean_dec(x_57); +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_60); +return x_61; } } else { -lean_object* x_60; +lean_object* x_62; lean_inc(x_6); -lean_inc(x_47); -x_60 = l_Lean_Elab_Term_isType(x_8, x_47, x_6, x_48); -if (lean_obj_tag(x_60) == 0) +lean_inc(x_49); +x_62 = l_Lean_Elab_Term_isType(x_49, x_6, x_50); +if (lean_obj_tag(x_62) == 0) { -lean_object* x_61; uint8_t x_62; -x_61 = lean_ctor_get(x_60, 0); -lean_inc(x_61); -x_62 = lean_unbox(x_61); -lean_dec(x_61); -if (x_62 == 0) -{ -lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; -lean_dec(x_44); -lean_dec(x_5); -lean_dec(x_2); -lean_dec(x_1); -x_63 = lean_ctor_get(x_60, 1); +lean_object* x_63; uint8_t x_64; +x_63 = lean_ctor_get(x_62, 0); lean_inc(x_63); -lean_dec(x_60); -x_64 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_64, 0, x_47); -x_65 = l_Lean_indentExpr(x_64); -x_66 = l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___lambda__1___closed__9; -x_67 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_65); -x_68 = l_Lean_Elab_Term_throwError___rarg(x_8, x_67, x_6, x_63); -lean_dec(x_8); -x_69 = !lean_is_exclusive(x_68); -if (x_69 == 0) +x_64 = lean_unbox(x_63); +lean_dec(x_63); +if (x_64 == 0) { -return x_68; -} -else -{ -lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_70 = lean_ctor_get(x_68, 0); -x_71 = lean_ctor_get(x_68, 1); -lean_inc(x_71); -lean_inc(x_70); -lean_dec(x_68); -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 -{ -lean_object* x_73; -lean_dec(x_47); -x_73 = lean_ctor_get(x_60, 1); -lean_inc(x_73); -lean_dec(x_60); -x_9 = x_44; -x_10 = x_73; -goto block_32; -} -} -else -{ -uint8_t x_74; -lean_dec(x_47); -lean_dec(x_44); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_2); -lean_dec(x_1); -x_74 = !lean_is_exclusive(x_60); -if (x_74 == 0) -{ -return x_60; -} -else -{ -lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_75 = lean_ctor_get(x_60, 0); -x_76 = lean_ctor_get(x_60, 1); -lean_inc(x_76); -lean_inc(x_75); -lean_dec(x_60); -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; -} -} -} -} -else -{ -uint8_t x_78; -lean_dec(x_44); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_78 = !lean_is_exclusive(x_46); -if (x_78 == 0) -{ -return x_46; -} -else -{ -lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_79 = lean_ctor_get(x_46, 0); -x_80 = lean_ctor_get(x_46, 1); -lean_inc(x_80); -lean_inc(x_79); +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; lean_dec(x_46); -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; +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_65 = lean_ctor_get(x_62, 1); +lean_inc(x_65); +lean_dec(x_62); +x_66 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_66, 0, x_49); +x_67 = l_Lean_indentExpr(x_66); +x_68 = l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___lambda__1___closed__9; +x_69 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_69, 0, x_68); +lean_ctor_set(x_69, 1, x_67); +x_70 = l_Lean_Elab_Term_throwError___rarg(x_69, x_6, x_65); +x_71 = !lean_is_exclusive(x_70); +if (x_71 == 0) +{ +return x_70; +} +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_72 = lean_ctor_get(x_70, 0); +x_73 = lean_ctor_get(x_70, 1); +lean_inc(x_73); +lean_inc(x_72); +lean_dec(x_70); +x_74 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_74, 0, x_72); +lean_ctor_set(x_74, 1, x_73); +return x_74; +} +} +else +{ +lean_object* x_75; +lean_dec(x_49); +x_75 = lean_ctor_get(x_62, 1); +lean_inc(x_75); +lean_dec(x_62); +x_12 = x_46; +x_13 = x_75; +goto block_35; +} +} +else +{ +uint8_t x_76; +lean_dec(x_49); +lean_dec(x_46); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_76 = !lean_is_exclusive(x_62); +if (x_76 == 0) +{ +return x_62; +} +else +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_62, 0); +x_78 = lean_ctor_get(x_62, 1); +lean_inc(x_78); +lean_inc(x_77); +lean_dec(x_62); +x_79 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_79, 0, x_77); +lean_ctor_set(x_79, 1, x_78); +return x_79; +} } } } else { -uint8_t x_82; -lean_dec(x_8); +uint8_t x_80; +lean_dec(x_46); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_82 = !lean_is_exclusive(x_43); -if (x_82 == 0) +x_80 = !lean_is_exclusive(x_48); +if (x_80 == 0) { -return x_43; +return x_48; } else { -lean_object* x_83; lean_object* x_84; lean_object* x_85; -x_83 = lean_ctor_get(x_43, 0); -x_84 = lean_ctor_get(x_43, 1); -lean_inc(x_84); -lean_inc(x_83); -lean_dec(x_43); -x_85 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_85, 0, x_83); -lean_ctor_set(x_85, 1, x_84); -return x_85; +lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_81 = lean_ctor_get(x_48, 0); +x_82 = lean_ctor_get(x_48, 1); +lean_inc(x_82); +lean_inc(x_81); +lean_dec(x_48); +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; } } } -block_32: +else { -lean_object* x_11; +uint8_t x_84; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_84 = !lean_is_exclusive(x_45); +if (x_84 == 0) +{ +return x_45; +} +else +{ +lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_85 = lean_ctor_get(x_45, 0); +x_86 = lean_ctor_get(x_45, 1); +lean_inc(x_86); +lean_inc(x_85); +lean_dec(x_45); +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; +} +} +} +block_35: +{ +lean_object* x_14; lean_inc(x_6); -x_11 = l_Lean_Elab_Term_mkForall(x_8, x_5, x_9, x_6, x_10); -if (lean_obj_tag(x_11) == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; -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 = l_Lean_Elab_Term_mkForall(x_8, x_2, x_12, x_6, x_13); -lean_dec(x_8); +x_14 = l_Lean_Elab_Term_mkForall(x_5, x_12, x_6, x_13); if (lean_obj_tag(x_14) == 0) { -uint8_t x_15; -x_15 = !lean_is_exclusive(x_14); -if (x_15 == 0) +lean_object* x_15; lean_object* x_16; lean_object* x_17; +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 = l_Lean_Elab_Term_mkForall(x_2, x_15, x_6, x_16); +if (lean_obj_tag(x_17) == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = lean_ctor_get(x_14, 0); -x_17 = lean_ctor_get(x_1, 2); -lean_inc(x_17); -lean_dec(x_1); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_16); -lean_ctor_set(x_14, 0, x_18); -return x_14; -} -else +uint8_t x_18; +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_19 = lean_ctor_get(x_14, 0); -x_20 = lean_ctor_get(x_14, 1); +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_17, 0); +x_20 = lean_ctor_get(x_1, 2); lean_inc(x_20); -lean_inc(x_19); -lean_dec(x_14); -x_21 = lean_ctor_get(x_1, 2); -lean_inc(x_21); lean_dec(x_1); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_19); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_20); -return x_23; -} +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_19); +lean_ctor_set(x_17, 0, x_21); +return x_17; } else { -uint8_t x_24; +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_22 = lean_ctor_get(x_17, 0); +x_23 = lean_ctor_get(x_17, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_17); +x_24 = lean_ctor_get(x_1, 2); +lean_inc(x_24); lean_dec(x_1); -x_24 = !lean_is_exclusive(x_14); -if (x_24 == 0) -{ -return x_14; +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_22); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_23); +return x_26; +} } else { -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_14, 0); -x_26 = lean_ctor_get(x_14, 1); -lean_inc(x_26); -lean_inc(x_25); -lean_dec(x_14); -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; +uint8_t x_27; +lean_dec(x_1); +x_27 = !lean_is_exclusive(x_17); +if (x_27 == 0) +{ +return x_17; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_17, 0); +x_29 = lean_ctor_get(x_17, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_17); +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; } } } else { -uint8_t x_28; -lean_dec(x_8); +uint8_t x_31; lean_dec(x_6); lean_dec(x_2); lean_dec(x_1); -x_28 = !lean_is_exclusive(x_11); -if (x_28 == 0) +x_31 = !lean_is_exclusive(x_14); +if (x_31 == 0) { -return x_11; +return x_14; } else { -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_11, 0); -x_30 = lean_ctor_get(x_11, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_11); -x_31 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_31, 0, x_29); -lean_ctor_set(x_31, 1, x_30); -return x_31; +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_14, 0); +x_33 = lean_ctor_get(x_14, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_14); +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; +} +} +} +} +else +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; uint8_t x_98; uint8_t x_99; uint8_t x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; +x_88 = lean_ctor_get(x_6, 0); +x_89 = lean_ctor_get(x_6, 1); +x_90 = lean_ctor_get(x_6, 2); +x_91 = lean_ctor_get(x_6, 3); +x_92 = lean_ctor_get(x_6, 4); +x_93 = lean_ctor_get(x_6, 5); +x_94 = lean_ctor_get(x_6, 6); +x_95 = lean_ctor_get(x_6, 7); +x_96 = lean_ctor_get(x_6, 8); +x_97 = lean_ctor_get(x_6, 9); +x_98 = lean_ctor_get_uint8(x_6, sizeof(void*)*11); +x_99 = lean_ctor_get_uint8(x_6, sizeof(void*)*11 + 1); +x_100 = lean_ctor_get_uint8(x_6, sizeof(void*)*11 + 2); +lean_inc(x_97); +lean_inc(x_96); +lean_inc(x_95); +lean_inc(x_94); +lean_inc(x_93); +lean_inc(x_92); +lean_inc(x_91); +lean_inc(x_90); +lean_inc(x_89); +lean_inc(x_88); +lean_dec(x_6); +x_101 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_101, 0, x_88); +lean_ctor_set(x_101, 1, x_89); +lean_ctor_set(x_101, 2, x_90); +lean_ctor_set(x_101, 3, x_91); +lean_ctor_set(x_101, 4, x_92); +lean_ctor_set(x_101, 5, x_93); +lean_ctor_set(x_101, 6, x_94); +lean_ctor_set(x_101, 7, x_95); +lean_ctor_set(x_101, 8, x_96); +lean_ctor_set(x_101, 9, x_97); +lean_ctor_set(x_101, 10, x_8); +lean_ctor_set_uint8(x_101, sizeof(void*)*11, x_98); +lean_ctor_set_uint8(x_101, sizeof(void*)*11 + 1, x_99); +lean_ctor_set_uint8(x_101, sizeof(void*)*11 + 2, x_100); +if (lean_obj_tag(x_9) == 0) +{ +if (x_3 == 0) +{ +x_102 = x_4; +x_103 = x_7; +goto block_122; +} +else +{ +lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_123 = l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___lambda__1___closed__3; +x_124 = l_Lean_Elab_Term_throwError___rarg(x_123, x_101, x_7); +x_125 = lean_ctor_get(x_124, 0); +lean_inc(x_125); +x_126 = lean_ctor_get(x_124, 1); +lean_inc(x_126); +if (lean_is_exclusive(x_124)) { + lean_ctor_release(x_124, 0); + lean_ctor_release(x_124, 1); + x_127 = x_124; +} else { + lean_dec_ref(x_124); + 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_object* x_129; lean_object* x_130; uint8_t x_131; lean_object* x_132; +x_129 = lean_ctor_get(x_9, 0); +lean_inc(x_129); +lean_dec(x_9); +x_130 = lean_box(0); +x_131 = 1; +lean_inc(x_101); +x_132 = l_Lean_Elab_Term_elabTerm(x_129, x_130, x_131, x_101, x_7); +if (lean_obj_tag(x_132) == 0) +{ +lean_object* x_133; lean_object* x_134; lean_object* x_135; +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); +lean_inc(x_101); +lean_inc(x_133); +x_135 = l___private_Lean_Elab_Inductive_7__getResultingType(x_133, x_101, x_134); +if (lean_obj_tag(x_135) == 0) +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; uint8_t x_139; +x_136 = lean_ctor_get(x_135, 0); +lean_inc(x_136); +x_137 = lean_ctor_get(x_135, 1); +lean_inc(x_137); +lean_dec(x_135); +x_138 = l_Lean_Expr_getAppFn___main(x_136); +x_139 = lean_expr_eqv(x_138, x_4); +lean_dec(x_4); +lean_dec(x_138); +if (x_139 == 0) +{ +lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; +lean_dec(x_133); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_140 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_140, 0, x_136); +x_141 = l_Lean_indentExpr(x_140); +x_142 = l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___lambda__1___closed__6; +x_143 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_143, 0, x_142); +lean_ctor_set(x_143, 1, x_141); +x_144 = l_Lean_Elab_Term_throwError___rarg(x_143, x_101, x_137); +x_145 = lean_ctor_get(x_144, 0); +lean_inc(x_145); +x_146 = lean_ctor_get(x_144, 1); +lean_inc(x_146); +if (lean_is_exclusive(x_144)) { + lean_ctor_release(x_144, 0); + lean_ctor_release(x_144, 1); + x_147 = x_144; +} else { + lean_dec_ref(x_144); + x_147 = lean_box(0); +} +if (lean_is_scalar(x_147)) { + x_148 = lean_alloc_ctor(1, 2, 0); +} else { + x_148 = x_147; +} +lean_ctor_set(x_148, 0, x_145); +lean_ctor_set(x_148, 1, x_146); +return x_148; +} +else +{ +lean_object* x_149; +lean_inc(x_101); +lean_inc(x_136); +x_149 = l_Lean_Elab_Term_isType(x_136, x_101, x_137); +if (lean_obj_tag(x_149) == 0) +{ +lean_object* x_150; uint8_t x_151; +x_150 = lean_ctor_get(x_149, 0); +lean_inc(x_150); +x_151 = lean_unbox(x_150); +lean_dec(x_150); +if (x_151 == 0) +{ +lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; +lean_dec(x_133); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_152 = lean_ctor_get(x_149, 1); +lean_inc(x_152); +lean_dec(x_149); +x_153 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_153, 0, x_136); +x_154 = l_Lean_indentExpr(x_153); +x_155 = l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___lambda__1___closed__9; +x_156 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_156, 0, x_155); +lean_ctor_set(x_156, 1, x_154); +x_157 = l_Lean_Elab_Term_throwError___rarg(x_156, x_101, x_152); +x_158 = lean_ctor_get(x_157, 0); +lean_inc(x_158); +x_159 = lean_ctor_get(x_157, 1); +lean_inc(x_159); +if (lean_is_exclusive(x_157)) { + lean_ctor_release(x_157, 0); + lean_ctor_release(x_157, 1); + x_160 = x_157; +} else { + lean_dec_ref(x_157); + x_160 = lean_box(0); +} +if (lean_is_scalar(x_160)) { + x_161 = lean_alloc_ctor(1, 2, 0); +} else { + x_161 = x_160; +} +lean_ctor_set(x_161, 0, x_158); +lean_ctor_set(x_161, 1, x_159); +return x_161; +} +else +{ +lean_object* x_162; +lean_dec(x_136); +x_162 = lean_ctor_get(x_149, 1); +lean_inc(x_162); +lean_dec(x_149); +x_102 = x_133; +x_103 = x_162; +goto block_122; +} +} +else +{ +lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; +lean_dec(x_136); +lean_dec(x_133); +lean_dec(x_101); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_163 = lean_ctor_get(x_149, 0); +lean_inc(x_163); +x_164 = lean_ctor_get(x_149, 1); +lean_inc(x_164); +if (lean_is_exclusive(x_149)) { + lean_ctor_release(x_149, 0); + lean_ctor_release(x_149, 1); + x_165 = x_149; +} else { + lean_dec_ref(x_149); + x_165 = lean_box(0); +} +if (lean_is_scalar(x_165)) { + x_166 = lean_alloc_ctor(1, 2, 0); +} else { + x_166 = x_165; +} +lean_ctor_set(x_166, 0, x_163); +lean_ctor_set(x_166, 1, x_164); +return x_166; +} +} +} +else +{ +lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; +lean_dec(x_133); +lean_dec(x_101); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_167 = lean_ctor_get(x_135, 0); +lean_inc(x_167); +x_168 = lean_ctor_get(x_135, 1); +lean_inc(x_168); +if (lean_is_exclusive(x_135)) { + lean_ctor_release(x_135, 0); + lean_ctor_release(x_135, 1); + x_169 = x_135; +} else { + lean_dec_ref(x_135); + x_169 = lean_box(0); +} +if (lean_is_scalar(x_169)) { + x_170 = lean_alloc_ctor(1, 2, 0); +} else { + x_170 = x_169; +} +lean_ctor_set(x_170, 0, x_167); +lean_ctor_set(x_170, 1, x_168); +return x_170; +} +} +else +{ +lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; +lean_dec(x_101); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_171 = lean_ctor_get(x_132, 0); +lean_inc(x_171); +x_172 = lean_ctor_get(x_132, 1); +lean_inc(x_172); +if (lean_is_exclusive(x_132)) { + lean_ctor_release(x_132, 0); + lean_ctor_release(x_132, 1); + x_173 = x_132; +} else { + lean_dec_ref(x_132); + x_173 = lean_box(0); +} +if (lean_is_scalar(x_173)) { + x_174 = lean_alloc_ctor(1, 2, 0); +} else { + x_174 = x_173; +} +lean_ctor_set(x_174, 0, x_171); +lean_ctor_set(x_174, 1, x_172); +return x_174; +} +} +block_122: +{ +lean_object* x_104; +lean_inc(x_101); +x_104 = l_Lean_Elab_Term_mkForall(x_5, x_102, x_101, x_103); +if (lean_obj_tag(x_104) == 0) +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; +x_105 = lean_ctor_get(x_104, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_104, 1); +lean_inc(x_106); +lean_dec(x_104); +x_107 = l_Lean_Elab_Term_mkForall(x_2, x_105, x_101, x_106); +if (lean_obj_tag(x_107) == 0) +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; +x_108 = lean_ctor_get(x_107, 0); +lean_inc(x_108); +x_109 = lean_ctor_get(x_107, 1); +lean_inc(x_109); +if (lean_is_exclusive(x_107)) { + lean_ctor_release(x_107, 0); + lean_ctor_release(x_107, 1); + x_110 = x_107; +} else { + lean_dec_ref(x_107); + x_110 = lean_box(0); +} +x_111 = lean_ctor_get(x_1, 2); +lean_inc(x_111); +lean_dec(x_1); +x_112 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_112, 0, x_111); +lean_ctor_set(x_112, 1, x_108); +if (lean_is_scalar(x_110)) { + x_113 = lean_alloc_ctor(0, 2, 0); +} else { + x_113 = x_110; +} +lean_ctor_set(x_113, 0, x_112); +lean_ctor_set(x_113, 1, x_109); +return x_113; +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +lean_dec(x_1); +x_114 = lean_ctor_get(x_107, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_107, 1); +lean_inc(x_115); +if (lean_is_exclusive(x_107)) { + lean_ctor_release(x_107, 0); + lean_ctor_release(x_107, 1); + x_116 = x_107; +} else { + lean_dec_ref(x_107); + x_116 = lean_box(0); +} +if (lean_is_scalar(x_116)) { + x_117 = lean_alloc_ctor(1, 2, 0); +} else { + x_117 = x_116; +} +lean_ctor_set(x_117, 0, x_114); +lean_ctor_set(x_117, 1, x_115); +return x_117; +} +} +else +{ +lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; +lean_dec(x_101); +lean_dec(x_2); +lean_dec(x_1); +x_118 = lean_ctor_get(x_104, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_104, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_104)) { + lean_ctor_release(x_104, 0); + lean_ctor_release(x_104, 1); + x_120 = x_104; +} else { + lean_dec_ref(x_104); + x_120 = lean_box(0); +} +if (lean_is_scalar(x_120)) { + x_121 = lean_alloc_ctor(1, 2, 0); +} else { + x_121 = x_120; +} +lean_ctor_set(x_121, 0, x_118); +lean_ctor_set(x_121, 1, x_119); +return x_121; } } } @@ -4940,50 +5361,150 @@ return x_55; lean_object* l___private_Lean_Elab_Inductive_16__elabCtors(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_6 = lean_ctor_get(x_3, 0); -x_7 = lean_ctor_get(x_6, 0); +uint8_t x_6; +x_6 = !lean_is_exclusive(x_4); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_7 = lean_ctor_get(x_3, 0); +x_8 = lean_ctor_get(x_7, 0); +x_9 = lean_ctor_get(x_4, 10); +lean_dec(x_9); +lean_inc(x_8); +lean_ctor_set(x_4, 10, x_8); lean_inc(x_4); lean_inc(x_1); -x_8 = l___private_Lean_Elab_Inductive_15__isInductiveFamily(x_7, x_1, x_4, x_5); -if (lean_obj_tag(x_8) == 0) +x_10 = l___private_Lean_Elab_Inductive_15__isInductiveFamily(x_1, x_4, x_5); +if (lean_obj_tag(x_10) == 0) { -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; -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_ctor_get(x_6, 7); -x_12 = l_Array_toList___rarg(x_11); -x_13 = lean_unbox(x_9); -lean_dec(x_9); -x_14 = l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1(x_1, x_2, x_13, x_12, x_4, x_10); -return x_14; +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; +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 = lean_ctor_get(x_7, 7); +x_14 = l_Array_toList___rarg(x_13); +x_15 = lean_unbox(x_11); +lean_dec(x_11); +x_16 = l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1(x_1, x_2, x_15, x_14, x_4, x_12); +return x_16; } else { -uint8_t x_15; +uint8_t x_17; lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_15 = !lean_is_exclusive(x_8); -if (x_15 == 0) +x_17 = !lean_is_exclusive(x_10); +if (x_17 == 0) { -return x_8; +return x_10; } else { -lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = lean_ctor_get(x_8, 0); -x_17 = lean_ctor_get(x_8, 1); -lean_inc(x_17); -lean_inc(x_16); -lean_dec(x_8); -x_18 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_18, 0, x_16); -lean_ctor_set(x_18, 1, x_17); -return x_18; +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_10, 0); +x_19 = lean_ctor_get(x_10, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_10); +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; +} +} +} +else +{ +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; uint8_t x_33; uint8_t x_34; uint8_t x_35; lean_object* x_36; lean_object* x_37; +x_21 = lean_ctor_get(x_3, 0); +x_22 = lean_ctor_get(x_21, 0); +x_23 = lean_ctor_get(x_4, 0); +x_24 = lean_ctor_get(x_4, 1); +x_25 = lean_ctor_get(x_4, 2); +x_26 = lean_ctor_get(x_4, 3); +x_27 = lean_ctor_get(x_4, 4); +x_28 = lean_ctor_get(x_4, 5); +x_29 = lean_ctor_get(x_4, 6); +x_30 = lean_ctor_get(x_4, 7); +x_31 = lean_ctor_get(x_4, 8); +x_32 = lean_ctor_get(x_4, 9); +x_33 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_34 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_35 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_inc(x_26); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_4); +lean_inc(x_22); +x_36 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_36, 0, x_23); +lean_ctor_set(x_36, 1, x_24); +lean_ctor_set(x_36, 2, x_25); +lean_ctor_set(x_36, 3, x_26); +lean_ctor_set(x_36, 4, x_27); +lean_ctor_set(x_36, 5, x_28); +lean_ctor_set(x_36, 6, x_29); +lean_ctor_set(x_36, 7, x_30); +lean_ctor_set(x_36, 8, x_31); +lean_ctor_set(x_36, 9, x_32); +lean_ctor_set(x_36, 10, x_22); +lean_ctor_set_uint8(x_36, sizeof(void*)*11, x_33); +lean_ctor_set_uint8(x_36, sizeof(void*)*11 + 1, x_34); +lean_ctor_set_uint8(x_36, sizeof(void*)*11 + 2, x_35); +lean_inc(x_36); +lean_inc(x_1); +x_37 = l___private_Lean_Elab_Inductive_15__isInductiveFamily(x_1, x_36, x_5); +if (lean_obj_tag(x_37) == 0) +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; +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_21, 7); +x_41 = l_Array_toList___rarg(x_40); +x_42 = lean_unbox(x_38); +lean_dec(x_38); +x_43 = l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1(x_1, x_2, x_42, x_41, x_36, x_39); +return x_43; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +lean_dec(x_36); +lean_dec(x_2); +lean_dec(x_1); +x_44 = lean_ctor_get(x_37, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_37, 1); +lean_inc(x_45); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_46 = x_37; +} else { + lean_dec_ref(x_37); + x_46 = lean_box(0); +} +if (lean_is_scalar(x_46)) { + x_47 = lean_alloc_ctor(1, 2, 0); +} else { + x_47 = x_46; +} +lean_ctor_set(x_47, 0, x_44); +lean_ctor_set(x_47, 1, x_45); +return x_47; } } } @@ -5586,7 +6107,7 @@ return x_89; } } } -lean_object* l___private_Lean_Elab_Inductive_17__levelMVarToParamAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Inductive_17__levelMVarToParamAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; @@ -5594,24 +6115,7 @@ x_5 = l_List_mapM___main___at___private_Lean_Elab_Inductive_17__levelMVarToParam return x_5; } } -lean_object* l___private_Lean_Elab_Inductive_17__levelMVarToParamAux(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_17__levelMVarToParamAux___rarg), 4, 0); -return x_2; -} -} -lean_object* l___private_Lean_Elab_Inductive_17__levelMVarToParamAux___boxed(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l___private_Lean_Elab_Inductive_17__levelMVarToParamAux(x_1); -lean_dec(x_1); -return x_2; -} -} -lean_object* l___private_Lean_Elab_Inductive_18__levelMVarToParam___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Elab_Inductive_18__levelMVarToParam(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; uint8_t x_6; @@ -5646,23 +6150,6 @@ return x_12; } } } -lean_object* l___private_Lean_Elab_Inductive_18__levelMVarToParam(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_18__levelMVarToParam___rarg), 3, 0); -return x_2; -} -} -lean_object* l___private_Lean_Elab_Inductive_18__levelMVarToParam___boxed(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l___private_Lean_Elab_Inductive_18__levelMVarToParam(x_1); -lean_dec(x_1); -return x_2; -} -} lean_object* _init_l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__1() { _start: { @@ -5719,110 +6206,101 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Inductive_19__getResultingUniverse(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Inductive_19__getResultingUniverse(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -if (lean_obj_tag(x_2) == 0) +if (lean_obj_tag(x_1) == 0) { -lean_object* x_5; lean_object* x_6; -x_5 = l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__3; -x_6 = l_Lean_Elab_Term_throwError___rarg(x_1, x_5, x_3, x_4); -return x_6; +lean_object* x_4; lean_object* x_5; +x_4 = l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__3; +x_5 = l_Lean_Elab_Term_throwError___rarg(x_4, x_2, x_3); +return x_5; } else { -lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_7 = lean_ctor_get(x_2, 0); +lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_ctor_get(x_6, 1); lean_inc(x_7); +lean_dec(x_6); +lean_inc(x_2); +x_8 = l___private_Lean_Elab_Inductive_7__getResultingType(x_7, x_2, x_3); +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) == 3) +{ +uint8_t x_10; lean_dec(x_2); -x_8 = lean_ctor_get(x_7, 1); -lean_inc(x_8); -lean_dec(x_7); -lean_inc(x_3); -x_9 = l___private_Lean_Elab_Inductive_7__getResultingType(x_1, x_8, x_3, x_4); -if (lean_obj_tag(x_9) == 0) +x_10 = !lean_is_exclusive(x_8); +if (x_10 == 0) { -lean_object* x_10; -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -if (lean_obj_tag(x_10) == 3) -{ -uint8_t x_11; -lean_dec(x_3); -x_11 = !lean_is_exclusive(x_9); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_8, 0); +lean_dec(x_11); x_12 = lean_ctor_get(x_9, 0); -lean_dec(x_12); -x_13 = lean_ctor_get(x_10, 0); -lean_inc(x_13); -lean_dec(x_10); -lean_ctor_set(x_9, 0, x_13); -return x_9; +lean_inc(x_12); +lean_dec(x_9); +lean_ctor_set(x_8, 0, x_12); +return x_8; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_9, 1); +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_8, 1); +lean_inc(x_13); +lean_dec(x_8); +x_14 = lean_ctor_get(x_9, 0); lean_inc(x_14); lean_dec(x_9); -x_15 = lean_ctor_get(x_10, 0); -lean_inc(x_15); -lean_dec(x_10); -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; +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_17; lean_object* x_18; lean_object* x_19; -lean_dec(x_10); -x_17 = lean_ctor_get(x_9, 1); -lean_inc(x_17); +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_dec(x_9); -x_18 = l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__6; -x_19 = l_Lean_Elab_Term_throwError___rarg(x_1, x_18, x_3, x_17); -return x_19; +x_16 = lean_ctor_get(x_8, 1); +lean_inc(x_16); +lean_dec(x_8); +x_17 = l___private_Lean_Elab_Inductive_19__getResultingUniverse___closed__6; +x_18 = l_Lean_Elab_Term_throwError___rarg(x_17, x_2, x_16); +return x_18; } } else { -uint8_t x_20; -lean_dec(x_3); -x_20 = !lean_is_exclusive(x_9); -if (x_20 == 0) +uint8_t x_19; +lean_dec(x_2); +x_19 = !lean_is_exclusive(x_8); +if (x_19 == 0) { -return x_9; +return x_8; } else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_9, 0); -x_22 = lean_ctor_get(x_9, 1); -lean_inc(x_22); +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_8, 0); +x_21 = lean_ctor_get(x_8, 1); lean_inc(x_21); -lean_dec(x_9); -x_23 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_23, 0, x_21); -lean_ctor_set(x_23, 1, x_22); -return x_23; +lean_inc(x_20); +lean_dec(x_8); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +return x_22; } } } } } -lean_object* l___private_Lean_Elab_Inductive_19__getResultingUniverse___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l___private_Lean_Elab_Inductive_19__getResultingUniverse(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} lean_object* _init_l_Lean_Elab_Command_tmpIndParam___closed__1() { _start: { @@ -5914,176 +6392,167 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Lean_Elab_Command_shouldInferResultUniverse(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Command_shouldInferResultUniverse(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; uint8_t x_6; -lean_inc(x_3); -x_5 = l_Lean_Elab_Term_instantiateLevelMVars(x_1, x_2, x_3, x_4); -x_6 = !lean_is_exclusive(x_5); -if (x_6 == 0) +lean_object* x_4; uint8_t x_5; +lean_inc(x_2); +x_4 = l_Lean_Elab_Term_instantiateLevelMVars(x_1, x_2, x_3); +x_5 = !lean_is_exclusive(x_4); +if (x_5 == 0) { -lean_object* x_7; lean_object* x_8; uint8_t x_9; -x_7 = lean_ctor_get(x_5, 0); -x_8 = lean_ctor_get(x_5, 1); -x_9 = l_Lean_Level_hasMVar(x_7); -if (x_9 == 0) +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_4, 0); +x_7 = lean_ctor_get(x_4, 1); +x_8 = l_Lean_Level_hasMVar(x_6); +if (x_8 == 0) { -uint8_t x_10; lean_object* x_11; -lean_dec(x_7); -lean_dec(x_3); -x_10 = 0; -x_11 = lean_box(x_10); -lean_ctor_set(x_5, 0, x_11); -return x_5; +uint8_t x_9; lean_object* x_10; +lean_dec(x_6); +lean_dec(x_2); +x_9 = 0; +x_10 = lean_box(x_9); +lean_ctor_set(x_4, 0, x_10); +return x_4; } else { -lean_object* x_12; -lean_free_object(x_5); -x_12 = l_Lean_Level_getLevelOffset___main(x_7); -if (lean_obj_tag(x_12) == 5) +lean_object* x_11; +lean_free_object(x_4); +x_11 = l_Lean_Level_getLevelOffset___main(x_6); +if (lean_obj_tag(x_11) == 5) { -lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -lean_dec(x_7); -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -lean_dec(x_12); -x_14 = l_Lean_Elab_Command_tmpIndParam; -x_15 = l_Lean_Elab_Term_assignLevelMVar(x_13, x_14, x_3, x_8); -lean_dec(x_3); -x_16 = !lean_is_exclusive(x_15); -if (x_16 == 0) +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +lean_dec(x_6); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +lean_dec(x_11); +x_13 = l_Lean_Elab_Command_tmpIndParam; +x_14 = l_Lean_Elab_Term_assignLevelMVar(x_12, x_13, x_2, x_7); +lean_dec(x_2); +x_15 = !lean_is_exclusive(x_14); +if (x_15 == 0) { -lean_object* x_17; uint8_t x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_15, 0); -lean_dec(x_17); -x_18 = 1; -x_19 = lean_box(x_18); -lean_ctor_set(x_15, 0, x_19); -return x_15; +lean_object* x_16; uint8_t x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_14, 0); +lean_dec(x_16); +x_17 = 1; +x_18 = lean_box(x_17); +lean_ctor_set(x_14, 0, x_18); +return x_14; } else { -lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; -x_20 = lean_ctor_get(x_15, 1); -lean_inc(x_20); -lean_dec(x_15); -x_21 = 1; -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; +lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; +x_19 = lean_ctor_get(x_14, 1); +lean_inc(x_19); +lean_dec(x_14); +x_20 = 1; +x_21 = lean_box(x_20); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_19); +return x_22; } } else { -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_dec(x_12); -x_24 = l_Lean_mkSort(x_7); -x_25 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_25, 0, x_24); -x_26 = l_Lean_Elab_Command_shouldInferResultUniverse___closed__3; -x_27 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_25); -x_28 = l_Lean_Elab_Command_shouldInferResultUniverse___closed__6; -x_29 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_29, 0, x_27); -lean_ctor_set(x_29, 1, x_28); -x_30 = l_Lean_Elab_Term_throwError___rarg(x_1, x_29, x_3, x_8); -return x_30; +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_dec(x_11); +x_23 = l_Lean_mkSort(x_6); +x_24 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_24, 0, x_23); +x_25 = l_Lean_Elab_Command_shouldInferResultUniverse___closed__3; +x_26 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_24); +x_27 = l_Lean_Elab_Command_shouldInferResultUniverse___closed__6; +x_28 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +x_29 = l_Lean_Elab_Term_throwError___rarg(x_28, x_2, x_7); +return x_29; } } } else { -lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_31 = lean_ctor_get(x_5, 0); -x_32 = lean_ctor_get(x_5, 1); -lean_inc(x_32); +lean_object* x_30; lean_object* x_31; uint8_t x_32; +x_30 = lean_ctor_get(x_4, 0); +x_31 = lean_ctor_get(x_4, 1); lean_inc(x_31); -lean_dec(x_5); -x_33 = l_Lean_Level_hasMVar(x_31); -if (x_33 == 0) +lean_inc(x_30); +lean_dec(x_4); +x_32 = l_Lean_Level_hasMVar(x_30); +if (x_32 == 0) { -uint8_t x_34; lean_object* x_35; lean_object* x_36; -lean_dec(x_31); -lean_dec(x_3); -x_34 = 0; -x_35 = lean_box(x_34); -x_36 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_32); -return x_36; +uint8_t x_33; lean_object* x_34; lean_object* x_35; +lean_dec(x_30); +lean_dec(x_2); +x_33 = 0; +x_34 = lean_box(x_33); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_31); +return x_35; } else { -lean_object* x_37; -x_37 = l_Lean_Level_getLevelOffset___main(x_31); -if (lean_obj_tag(x_37) == 5) +lean_object* x_36; +x_36 = l_Lean_Level_getLevelOffset___main(x_30); +if (lean_obj_tag(x_36) == 5) { -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; lean_object* x_44; lean_object* x_45; -lean_dec(x_31); -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -lean_dec(x_37); -x_39 = l_Lean_Elab_Command_tmpIndParam; -x_40 = l_Lean_Elab_Term_assignLevelMVar(x_38, x_39, x_3, x_32); -lean_dec(x_3); -x_41 = lean_ctor_get(x_40, 1); -lean_inc(x_41); -if (lean_is_exclusive(x_40)) { - lean_ctor_release(x_40, 0); - lean_ctor_release(x_40, 1); - x_42 = x_40; +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; lean_object* x_44; +lean_dec(x_30); +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +lean_dec(x_36); +x_38 = l_Lean_Elab_Command_tmpIndParam; +x_39 = l_Lean_Elab_Term_assignLevelMVar(x_37, x_38, x_2, x_31); +lean_dec(x_2); +x_40 = lean_ctor_get(x_39, 1); +lean_inc(x_40); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_41 = x_39; } else { - lean_dec_ref(x_40); - x_42 = lean_box(0); + lean_dec_ref(x_39); + x_41 = lean_box(0); } -x_43 = 1; -x_44 = lean_box(x_43); -if (lean_is_scalar(x_42)) { - x_45 = lean_alloc_ctor(0, 2, 0); +x_42 = 1; +x_43 = lean_box(x_42); +if (lean_is_scalar(x_41)) { + x_44 = lean_alloc_ctor(0, 2, 0); } else { - x_45 = x_42; + x_44 = x_41; } -lean_ctor_set(x_45, 0, x_44); -lean_ctor_set(x_45, 1, x_41); -return x_45; +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_40); +return x_44; } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -lean_dec(x_37); -x_46 = l_Lean_mkSort(x_31); -x_47 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_47, 0, x_46); -x_48 = l_Lean_Elab_Command_shouldInferResultUniverse___closed__3; -x_49 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, x_47); -x_50 = l_Lean_Elab_Command_shouldInferResultUniverse___closed__6; -x_51 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_51, 0, x_49); -lean_ctor_set(x_51, 1, x_50); -x_52 = l_Lean_Elab_Term_throwError___rarg(x_1, x_51, x_3, x_32); -return x_52; +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_dec(x_36); +x_45 = l_Lean_mkSort(x_30); +x_46 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_46, 0, x_45); +x_47 = l_Lean_Elab_Command_shouldInferResultUniverse___closed__3; +x_48 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +x_49 = l_Lean_Elab_Command_shouldInferResultUniverse___closed__6; +x_50 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +x_51 = l_Lean_Elab_Term_throwError___rarg(x_50, x_2, x_31); +return x_51; } } } } } -lean_object* l_Lean_Elab_Command_shouldInferResultUniverse___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_Elab_Command_shouldInferResultUniverse(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Command_accLevelAtCtor___main___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { @@ -6412,439 +6881,423 @@ lean_dec(x_2); return x_5; } } -lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main___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_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main___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; lean_object* x_11; -x_10 = lean_expr_instantiate1(x_1, x_7); -x_11 = l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main(x_2, x_3, x_4, x_5, x_10, x_6, x_8, x_9); -return x_11; -} -} -lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main___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) { -_start: -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; +lean_object* x_9; lean_object* x_10; x_9 = lean_expr_instantiate1(x_1, x_6); -x_10 = lean_unsigned_to_nat(0u); -x_11 = l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main(x_2, x_3, x_4, x_10, x_9, x_5, x_7, x_8); -return x_11; +x_10 = l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main(x_2, x_3, x_4, x_9, x_5, x_7, x_8); +return x_10; } } -lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main(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_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main___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) { _start: { -lean_object* x_9; uint8_t x_10; +lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_8 = lean_expr_instantiate1(x_1, x_5); x_9 = lean_unsigned_to_nat(0u); -x_10 = lean_nat_dec_eq(x_4, x_9); -if (x_10 == 0) +x_10 = l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main(x_2, x_3, x_9, x_8, x_4, x_6, x_7); +return x_10; +} +} +lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: { -if (lean_obj_tag(x_5) == 7) +lean_object* x_8; uint8_t x_9; +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_nat_dec_eq(x_3, x_8); +if (x_9 == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; uint64_t x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; -x_11 = lean_ctor_get(x_5, 0); +if (lean_obj_tag(x_4) == 7) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; uint64_t x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; +x_10 = lean_ctor_get(x_4, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_4, 1); lean_inc(x_11); -x_12 = lean_ctor_get(x_5, 1); +x_12 = lean_ctor_get(x_4, 2); lean_inc(x_12); -x_13 = lean_ctor_get(x_5, 2); -lean_inc(x_13); -x_14 = lean_ctor_get_uint64(x_5, sizeof(void*)*3); -lean_dec(x_5); -x_15 = lean_unsigned_to_nat(1u); -x_16 = lean_nat_sub(x_4, x_15); -x_17 = (uint8_t)((x_14 << 24) >> 61); -lean_inc(x_1); -x_18 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main___lambda__1___boxed), 9, 6); -lean_closure_set(x_18, 0, x_13); -lean_closure_set(x_18, 1, x_1); -lean_closure_set(x_18, 2, x_2); -lean_closure_set(x_18, 3, x_3); -lean_closure_set(x_18, 4, x_16); -lean_closure_set(x_18, 5, x_6); -x_19 = l_Lean_Elab_Term_withLocalDecl___rarg(x_1, x_11, x_17, x_12, x_18, x_7, x_8); +x_13 = lean_ctor_get_uint64(x_4, sizeof(void*)*3); +lean_dec(x_4); +x_14 = lean_unsigned_to_nat(1u); +x_15 = lean_nat_sub(x_3, x_14); +x_16 = (uint8_t)((x_13 << 24) >> 61); +x_17 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main___lambda__1___boxed), 8, 5); +lean_closure_set(x_17, 0, x_12); +lean_closure_set(x_17, 1, x_1); +lean_closure_set(x_17, 2, x_2); +lean_closure_set(x_17, 3, x_15); +lean_closure_set(x_17, 4, x_5); +x_18 = l_Lean_Elab_Term_withLocalDecl___rarg(x_10, x_16, x_11, x_17, x_6, x_7); +return x_18; +} +else +{ +lean_object* x_19; +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); lean_dec(x_1); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_5); +lean_ctor_set(x_19, 1, x_7); return x_19; } -else -{ -lean_object* x_20; -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_3); -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_8); -return x_20; -} } else { -if (lean_obj_tag(x_5) == 7) +if (lean_obj_tag(x_4) == 7) { -lean_object* x_21; lean_object* x_22; lean_object* x_23; uint64_t x_24; lean_object* x_25; -x_21 = lean_ctor_get(x_5, 0); +lean_object* x_20; lean_object* x_21; lean_object* x_22; uint64_t x_23; lean_object* x_24; +x_20 = lean_ctor_get(x_4, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_4, 1); lean_inc(x_21); -x_22 = lean_ctor_get(x_5, 1); +x_22 = lean_ctor_get(x_4, 2); lean_inc(x_22); -x_23 = lean_ctor_get(x_5, 2); -lean_inc(x_23); -x_24 = lean_ctor_get_uint64(x_5, sizeof(void*)*3); -lean_dec(x_5); -lean_inc(x_7); -lean_inc(x_22); -x_25 = l_Lean_Elab_Term_getLevel(x_1, x_22, x_7, x_8); -if (lean_obj_tag(x_25) == 0) +x_23 = lean_ctor_get_uint64(x_4, sizeof(void*)*3); +lean_dec(x_4); +lean_inc(x_6); +lean_inc(x_21); +x_24 = l_Lean_Elab_Term_getLevel(x_21, x_6, x_7); +if (lean_obj_tag(x_24) == 0) { -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_26 = lean_ctor_get(x_25, 0); +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); lean_inc(x_26); -x_27 = lean_ctor_get(x_25, 1); -lean_inc(x_27); -lean_dec(x_25); -lean_inc(x_7); -x_28 = l_Lean_Elab_Term_instantiateLevelMVars(x_1, x_26, x_7, x_27); -x_29 = lean_ctor_get(x_28, 0); +lean_dec(x_24); +lean_inc(x_6); +x_27 = l_Lean_Elab_Term_instantiateLevelMVars(x_25, x_6, x_26); +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_27, 1); lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); -lean_inc(x_30); -lean_dec(x_28); -lean_inc(x_3); -x_31 = l_Lean_Elab_Command_accLevelAtCtor___main(x_29, x_2, x_3, x_6); -if (lean_obj_tag(x_31) == 0) +lean_dec(x_27); +lean_inc(x_2); +x_30 = l_Lean_Elab_Command_accLevelAtCtor___main(x_28, x_1, x_2, x_5); +if (lean_obj_tag(x_30) == 0) { -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; -lean_dec(x_23); +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_dec(x_22); lean_dec(x_21); -lean_dec(x_3); +lean_dec(x_20); lean_dec(x_2); -x_32 = lean_ctor_get(x_31, 0); -lean_inc(x_32); -lean_dec(x_31); -x_33 = lean_alloc_ctor(2, 1, 0); +lean_dec(x_1); +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +lean_dec(x_30); +x_32 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_32, 0, x_31); +x_33 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_33, 0, x_32); -x_34 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_34, 0, x_33); -x_35 = l_Lean_Elab_Term_throwError___rarg(x_1, x_34, x_7, x_30); -lean_dec(x_1); -return x_35; +x_34 = l_Lean_Elab_Term_throwError___rarg(x_33, x_6, x_29); +return x_34; } else { -lean_object* x_36; uint8_t x_37; lean_object* x_38; lean_object* x_39; -x_36 = lean_ctor_get(x_31, 0); -lean_inc(x_36); -lean_dec(x_31); -x_37 = (uint8_t)((x_24 << 24) >> 61); -lean_inc(x_1); -x_38 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main___lambda__2___boxed), 8, 5); -lean_closure_set(x_38, 0, x_23); -lean_closure_set(x_38, 1, x_1); -lean_closure_set(x_38, 2, x_2); -lean_closure_set(x_38, 3, x_3); -lean_closure_set(x_38, 4, x_36); -x_39 = l_Lean_Elab_Term_withLocalDecl___rarg(x_1, x_21, x_37, x_22, x_38, x_7, x_30); -lean_dec(x_1); -return x_39; +lean_object* x_35; uint8_t x_36; lean_object* x_37; lean_object* x_38; +x_35 = lean_ctor_get(x_30, 0); +lean_inc(x_35); +lean_dec(x_30); +x_36 = (uint8_t)((x_23 << 24) >> 61); +x_37 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main___lambda__2___boxed), 7, 4); +lean_closure_set(x_37, 0, x_22); +lean_closure_set(x_37, 1, x_1); +lean_closure_set(x_37, 2, x_2); +lean_closure_set(x_37, 3, x_35); +x_38 = l_Lean_Elab_Term_withLocalDecl___rarg(x_20, x_36, x_21, x_37, x_6, x_29); +return x_38; } } else { -uint8_t x_40; -lean_dec(x_23); +uint8_t x_39; lean_dec(x_22); lean_dec(x_21); -lean_dec(x_7); +lean_dec(x_20); lean_dec(x_6); -lean_dec(x_3); +lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); -x_40 = !lean_is_exclusive(x_25); -if (x_40 == 0) +x_39 = !lean_is_exclusive(x_24); +if (x_39 == 0) { -return x_25; +return x_24; } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_25, 0); -x_42 = lean_ctor_get(x_25, 1); -lean_inc(x_42); +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_24, 0); +x_41 = lean_ctor_get(x_24, 1); lean_inc(x_41); -lean_dec(x_25); -x_43 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_43, 0, x_41); -lean_ctor_set(x_43, 1, x_42); +lean_inc(x_40); +lean_dec(x_24); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; +} +} +} +else +{ +lean_object* x_43; +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_5); +lean_ctor_set(x_43, 1, x_7); return x_43; } } } -else -{ -lean_object* x_44; -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_44 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_44, 0, x_6); -lean_ctor_set(x_44, 1, x_8); -return x_44; } -} -} -} -lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main___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___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_1); -return x_10; -} -} -lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main___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* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main___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_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_6); -lean_dec(x_1); -return x_9; -} -} -lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main___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_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_4); -return x_9; -} -} -lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux(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_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -return x_9; -} -} -lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___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_Elab_Inductive_20__collectUniversesFromCtorTypeAux(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_4); -return x_9; -} -} -lean_object* l___private_Lean_Elab_Inductive_21__collectUniversesFromCtorType(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_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main(x_1, x_2, x_3, x_5, x_4, x_6, x_7, x_8); -return x_9; -} -} -lean_object* l___private_Lean_Elab_Inductive_21__collectUniversesFromCtorType___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_Elab_Inductive_21__collectUniversesFromCtorType(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_5); -return x_9; -} -} -lean_object* l_List_foldlM___main___at___private_Lean_Elab_Inductive_22__collectUniverses___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) { -_start: -{ -if (lean_obj_tag(x_6) == 0) -{ -lean_object* x_9; -lean_dec(x_7); -lean_dec(x_3); -lean_dec(x_2); lean_dec(x_1); -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_5); -lean_ctor_set(x_9, 1, x_8); -return x_9; -} -else -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_10 = lean_ctor_get(x_6, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_6, 1); -lean_inc(x_11); -lean_dec(x_6); -x_12 = lean_ctor_get(x_10, 1); -lean_inc(x_12); -lean_dec(x_10); -lean_inc(x_7); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_1); -x_13 = l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main(x_1, x_2, x_3, x_4, x_12, x_5, 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_13, 1); -lean_inc(x_15); -lean_dec(x_13); -x_5 = x_14; -x_6 = x_11; -x_8 = x_15; -goto _start; -} -else -{ -uint8_t x_17; -lean_dec(x_11); -lean_dec(x_7); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -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_List_foldlM___main___at___private_Lean_Elab_Inductive_22__collectUniverses___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_6) == 0) -{ -lean_object* x_9; -lean_dec(x_7); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_5); -lean_ctor_set(x_9, 1, x_8); -return x_9; -} -else -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_10 = lean_ctor_get(x_6, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_6, 1); -lean_inc(x_11); -lean_dec(x_6); -x_12 = lean_ctor_get(x_10, 2); -lean_inc(x_12); -lean_dec(x_10); -lean_inc(x_7); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_1); -x_13 = l_List_foldlM___main___at___private_Lean_Elab_Inductive_22__collectUniverses___spec__1(x_1, x_2, x_3, x_4, x_5, x_12, 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_13, 1); -lean_inc(x_15); -lean_dec(x_13); -x_5 = x_14; -x_6 = x_11; -x_8 = x_15; -goto _start; -} -else -{ -uint8_t x_17; -lean_dec(x_11); -lean_dec(x_7); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -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___private_Lean_Elab_Inductive_22__collectUniverses(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; lean_object* x_9; -x_8 = l_Array_empty___closed__1; -x_9 = l_List_foldlM___main___at___private_Lean_Elab_Inductive_22__collectUniverses___spec__2(x_1, x_2, x_3, x_4, x_8, x_5, x_6, x_7); return x_9; } } -lean_object* l_List_foldlM___main___at___private_Lean_Elab_Inductive_22__collectUniverses___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) { -_start: -{ -lean_object* x_9; -x_9 = l_List_foldlM___main___at___private_Lean_Elab_Inductive_22__collectUniverses___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_4); -return x_9; -} -} -lean_object* l_List_foldlM___main___at___private_Lean_Elab_Inductive_22__collectUniverses___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) { -_start: -{ -lean_object* x_9; -x_9 = l_List_foldlM___main___at___private_Lean_Elab_Inductive_22__collectUniverses___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_4); -return x_9; -} -} -lean_object* l___private_Lean_Elab_Inductive_22__collectUniverses___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* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main___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) { _start: { lean_object* x_8; -x_8 = l___private_Lean_Elab_Inductive_22__collectUniverses(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_5); +lean_dec(x_1); +return x_8; +} +} +lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main___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_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_3); +return x_8; +} +} +lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux(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_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +return x_8; +} +} +lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___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_Elab_Inductive_20__collectUniversesFromCtorTypeAux(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_3); +return x_8; +} +} +lean_object* l___private_Lean_Elab_Inductive_21__collectUniversesFromCtorType(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_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main(x_1, x_2, x_4, x_3, x_5, x_6, x_7); +return x_8; +} +} +lean_object* l___private_Lean_Elab_Inductive_21__collectUniversesFromCtorType___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_Elab_Inductive_21__collectUniversesFromCtorType(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_4); return x_8; } } +lean_object* l_List_foldlM___main___at___private_Lean_Elab_Inductive_22__collectUniverses___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) { +_start: +{ +if (lean_obj_tag(x_5) == 0) +{ +lean_object* x_8; +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_4); +lean_ctor_set(x_8, 1, x_7); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_9 = lean_ctor_get(x_5, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_5, 1); +lean_inc(x_10); +lean_dec(x_5); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec(x_9); +lean_inc(x_6); +lean_inc(x_2); +lean_inc(x_1); +x_12 = l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main(x_1, x_2, x_3, x_11, x_4, x_6, x_7); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_4 = x_13; +x_5 = x_10; +x_7 = x_14; +goto _start; +} +else +{ +uint8_t x_16; +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_16 = !lean_is_exclusive(x_12); +if (x_16 == 0) +{ +return x_12; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_12, 0); +x_18 = lean_ctor_get(x_12, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_12); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +return x_19; +} +} +} +} +} +lean_object* l_List_foldlM___main___at___private_Lean_Elab_Inductive_22__collectUniverses___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) { +_start: +{ +if (lean_obj_tag(x_5) == 0) +{ +lean_object* x_8; +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_4); +lean_ctor_set(x_8, 1, x_7); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_9 = lean_ctor_get(x_5, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_5, 1); +lean_inc(x_10); +lean_dec(x_5); +x_11 = lean_ctor_get(x_9, 2); +lean_inc(x_11); +lean_dec(x_9); +lean_inc(x_6); +lean_inc(x_2); +lean_inc(x_1); +x_12 = l_List_foldlM___main___at___private_Lean_Elab_Inductive_22__collectUniverses___spec__1(x_1, x_2, x_3, x_4, x_11, x_6, x_7); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_4 = x_13; +x_5 = x_10; +x_7 = x_14; +goto _start; +} +else +{ +uint8_t x_16; +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_16 = !lean_is_exclusive(x_12); +if (x_16 == 0) +{ +return x_12; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_12, 0); +x_18 = lean_ctor_get(x_12, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_12); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +return x_19; +} +} +} +} +} +lean_object* l___private_Lean_Elab_Inductive_22__collectUniverses(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; +x_7 = l_Array_empty___closed__1; +x_8 = l_List_foldlM___main___at___private_Lean_Elab_Inductive_22__collectUniverses___spec__2(x_1, x_2, x_3, x_7, x_4, x_5, x_6); +return x_8; +} +} +lean_object* l_List_foldlM___main___at___private_Lean_Elab_Inductive_22__collectUniverses___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_List_foldlM___main___at___private_Lean_Elab_Inductive_22__collectUniverses___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_3); +return x_8; +} +} +lean_object* l_List_foldlM___main___at___private_Lean_Elab_Inductive_22__collectUniverses___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) { +_start: +{ +lean_object* x_8; +x_8 = l_List_foldlM___main___at___private_Lean_Elab_Inductive_22__collectUniverses___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_3); +return x_8; +} +} +lean_object* l___private_Lean_Elab_Inductive_22__collectUniverses___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___private_Lean_Elab_Inductive_22__collectUniverses(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_3); +return x_7; +} +} lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__2___lambda__1(lean_object* x_1, lean_object* x_2) { _start: { @@ -8229,140 +8682,138 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Inductive_23__updateResultingUniverse(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_Inductive_23__updateResultingUniverse(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_6; -lean_inc(x_4); +lean_object* x_5; lean_inc(x_3); -x_6 = l___private_Lean_Elab_Inductive_19__getResultingUniverse(x_1, x_3, x_4, x_5); -if (lean_obj_tag(x_6) == 0) +lean_inc(x_2); +x_5 = l___private_Lean_Elab_Inductive_19__getResultingUniverse(x_2, x_3, x_4); +if (lean_obj_tag(x_5) == 0) { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_7 = lean_ctor_get(x_6, 0); +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); lean_inc(x_7); -x_8 = lean_ctor_get(x_6, 1); -lean_inc(x_8); +lean_dec(x_5); +x_8 = lean_unsigned_to_nat(0u); +x_9 = l_Lean_Level_getOffsetAux___main(x_6, x_8); +x_10 = l_Lean_Level_getLevelOffset___main(x_6); lean_dec(x_6); -x_9 = lean_unsigned_to_nat(0u); -x_10 = l_Lean_Level_getOffsetAux___main(x_7, x_9); -x_11 = l_Lean_Level_getLevelOffset___main(x_7); -lean_dec(x_7); -x_12 = l_Lean_Level_isParam(x_11); -if (x_12 == 0) +x_11 = l_Lean_Level_isParam(x_10); +if (x_11 == 0) { -lean_object* x_13; lean_object* x_14; uint8_t x_15; -lean_dec(x_11); +lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_dec(x_10); -lean_dec(x_3); -x_13 = l___private_Lean_Elab_Inductive_23__updateResultingUniverse___closed__2; -x_14 = l_Lean_Elab_Term_throwError___rarg(x_1, x_13, x_4, x_8); -lean_dec(x_1); -x_15 = !lean_is_exclusive(x_14); -if (x_15 == 0) +lean_dec(x_9); +lean_dec(x_2); +x_12 = l___private_Lean_Elab_Inductive_23__updateResultingUniverse___closed__2; +x_13 = l_Lean_Elab_Term_throwError___rarg(x_12, x_3, x_7); +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) { -return x_14; +return x_13; } else { -lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = lean_ctor_get(x_14, 0); -x_17 = lean_ctor_get(x_14, 1); -lean_inc(x_17); +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_13, 0); +x_16 = lean_ctor_get(x_13, 1); lean_inc(x_16); -lean_dec(x_14); -x_18 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_18, 0, x_16); -lean_ctor_set(x_18, 1, x_17); +lean_inc(x_15); +lean_dec(x_13); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +} +else +{ +lean_object* x_18; +lean_inc(x_2); +x_18 = l___private_Lean_Elab_Inductive_22__collectUniverses(x_10, x_9, x_1, x_2, x_3, x_7); +if (lean_obj_tag(x_18) == 0) +{ +uint8_t x_19; +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_20 = lean_ctor_get(x_18, 0); +x_21 = l_Array_toList___rarg(x_20); +lean_dec(x_20); +x_22 = l_Lean_Level_mkNaryMax___main(x_21); +x_23 = l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__6(x_22, x_2); +lean_ctor_set(x_18, 0, x_23); return x_18; } -} else { -lean_object* x_19; -lean_inc(x_3); -x_19 = l___private_Lean_Elab_Inductive_22__collectUniverses(x_1, x_11, x_10, x_2, x_3, x_4, x_8); -if (lean_obj_tag(x_19) == 0) -{ -uint8_t x_20; -x_20 = !lean_is_exclusive(x_19); -if (x_20 == 0) -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_21 = lean_ctor_get(x_19, 0); -x_22 = l_Array_toList___rarg(x_21); -lean_dec(x_21); -x_23 = l_Lean_Level_mkNaryMax___main(x_22); -x_24 = l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__6(x_23, x_3); -lean_ctor_set(x_19, 0, x_24); -return x_19; -} -else -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_25 = lean_ctor_get(x_19, 0); -x_26 = lean_ctor_get(x_19, 1); -lean_inc(x_26); +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_18, 0); +x_25 = lean_ctor_get(x_18, 1); lean_inc(x_25); -lean_dec(x_19); -x_27 = l_Array_toList___rarg(x_25); -lean_dec(x_25); -x_28 = l_Lean_Level_mkNaryMax___main(x_27); -x_29 = l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__6(x_28, x_3); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_26); -return x_30; +lean_inc(x_24); +lean_dec(x_18); +x_26 = l_Array_toList___rarg(x_24); +lean_dec(x_24); +x_27 = l_Lean_Level_mkNaryMax___main(x_26); +x_28 = l_List_map___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__6(x_27, x_2); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_25); +return x_29; } } else { -uint8_t x_31; -lean_dec(x_3); -x_31 = !lean_is_exclusive(x_19); -if (x_31 == 0) +uint8_t x_30; +lean_dec(x_2); +x_30 = !lean_is_exclusive(x_18); +if (x_30 == 0) { -return x_19; +return x_18; } else { -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_19, 0); -x_33 = lean_ctor_get(x_19, 1); -lean_inc(x_33); +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_18, 0); +x_32 = lean_ctor_get(x_18, 1); lean_inc(x_32); -lean_dec(x_19); -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_inc(x_31); +lean_dec(x_18); +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_35; -lean_dec(x_4); +uint8_t x_34; lean_dec(x_3); -lean_dec(x_1); -x_35 = !lean_is_exclusive(x_6); -if (x_35 == 0) +lean_dec(x_2); +x_34 = !lean_is_exclusive(x_5); +if (x_34 == 0) { -return x_6; +return x_5; } else { -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_6, 0); -x_37 = lean_ctor_get(x_6, 1); -lean_inc(x_37); +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_5, 0); +x_36 = lean_ctor_get(x_5, 1); lean_inc(x_36); -lean_dec(x_6); -x_38 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_38, 0, x_36); -lean_ctor_set(x_38, 1, x_37); -return x_38; +lean_inc(x_35); +lean_dec(x_5); +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; } } } @@ -8396,13 +8847,13 @@ x_6 = l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Ela return x_6; } } -lean_object* l___private_Lean_Elab_Inductive_23__updateResultingUniverse___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_Inductive_23__updateResultingUniverse___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_6; -x_6 = l___private_Lean_Elab_Inductive_23__updateResultingUniverse(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_2); -return x_6; +lean_object* x_5; +x_5 = l___private_Lean_Elab_Inductive_23__updateResultingUniverse(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; } } lean_object* _init_l_List_forM___main___at___private_Lean_Elab_Inductive_24__traceIndTypes___spec__1___closed__1() { @@ -8562,215 +9013,197 @@ x_4 = l_List_forM___main___at___private_Lean_Elab_Inductive_24__traceIndTypes___ return x_4; } } -lean_object* l_List_foldlM___main___at___private_Lean_Elab_Inductive_25__removeUnused___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_List_foldlM___main___at___private_Lean_Elab_Inductive_25__removeUnused___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -if (lean_obj_tag(x_3) == 0) +if (lean_obj_tag(x_2) == 0) { -lean_object* x_6; -lean_dec(x_4); -x_6 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_6, 0, x_2); -lean_ctor_set(x_6, 1, x_5); -return x_6; +lean_object* x_5; +lean_dec(x_3); +x_5 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_5, 0, x_1); +lean_ctor_set(x_5, 1, x_4); +return x_5; } else { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_7 = lean_ctor_get(x_3, 0); +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_6 = lean_ctor_get(x_2, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_2, 1); lean_inc(x_7); -x_8 = lean_ctor_get(x_3, 1); -lean_inc(x_8); -lean_dec(x_3); -x_9 = lean_ctor_get(x_7, 1); -lean_inc(x_9); -lean_dec(x_7); -lean_inc(x_4); -x_10 = l_Lean_Elab_Term_collectUsedFVars(x_1, x_2, x_9, x_4, x_5); -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_2 = x_11; -x_3 = x_8; -x_5 = x_12; -goto _start; -} -} -} -lean_object* l_List_foldlM___main___at___private_Lean_Elab_Inductive_25__removeUnused___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -if (lean_obj_tag(x_3) == 0) -{ -lean_object* x_6; -lean_dec(x_4); -x_6 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_6, 0, x_2); -lean_ctor_set(x_6, 1, x_5); -return x_6; -} -else -{ -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; -x_7 = lean_ctor_get(x_3, 0); -lean_inc(x_7); -x_8 = lean_ctor_get(x_3, 1); -lean_inc(x_8); -lean_dec(x_3); -x_9 = lean_ctor_get(x_7, 1); -lean_inc(x_9); -lean_inc(x_4); -x_10 = l_Lean_Elab_Term_collectUsedFVars(x_1, x_2, x_9, x_4, x_5); -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 = lean_ctor_get(x_7, 2); -lean_inc(x_13); -lean_dec(x_7); -lean_inc(x_4); -x_14 = l_List_foldlM___main___at___private_Lean_Elab_Inductive_25__removeUnused___spec__1(x_1, x_11, x_13, x_4, x_12); -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_2 = x_15; -x_3 = x_8; -x_5 = x_16; -goto _start; -} -} -} -lean_object* l___private_Lean_Elab_Inductive_25__removeUnused(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_6 = l___private_Lean_Elab_Definition_1__removeUnused___closed__1; -lean_inc(x_4); -x_7 = l_List_foldlM___main___at___private_Lean_Elab_Inductive_25__removeUnused___spec__2(x_1, x_6, x_3, x_4, x_5); -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 = l_Lean_Elab_Term_removeUnused(x_1, x_2, x_8, x_4, x_9); -return x_10; -} -} -lean_object* l_List_foldlM___main___at___private_Lean_Elab_Inductive_25__removeUnused___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_List_foldlM___main___at___private_Lean_Elab_Inductive_25__removeUnused___spec__1(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_1); -return x_6; -} -} -lean_object* l_List_foldlM___main___at___private_Lean_Elab_Inductive_25__removeUnused___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_List_foldlM___main___at___private_Lean_Elab_Inductive_25__removeUnused___spec__2(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_1); -return x_6; -} -} -lean_object* l___private_Lean_Elab_Inductive_25__removeUnused___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l___private_Lean_Elab_Inductive_25__removeUnused(x_1, x_2, x_3, x_4, x_5); lean_dec(x_2); -lean_dec(x_1); -return x_6; +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +lean_inc(x_3); +x_9 = l_Lean_Elab_Term_collectUsedFVars(x_1, x_8, x_3, x_4); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec(x_9); +x_1 = x_10; +x_2 = x_7; +x_4 = x_11; +goto _start; } } -lean_object* l___private_Lean_Elab_Inductive_26__withUsed___rarg(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* l_List_foldlM___main___at___private_Lean_Elab_Inductive_25__removeUnused___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_7; -lean_inc(x_5); -x_7 = l___private_Lean_Elab_Inductive_25__removeUnused(x_1, x_2, x_3, x_5, x_6); -if (lean_obj_tag(x_7) == 0) +if (lean_obj_tag(x_2) == 0) { -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; -x_8 = lean_ctor_get(x_7, 0); +lean_object* x_5; +lean_dec(x_3); +x_5 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_5, 0, x_1); +lean_ctor_set(x_5, 1, x_4); +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; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_6 = lean_ctor_get(x_2, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_2, 1); +lean_inc(x_7); +lean_dec(x_2); +x_8 = lean_ctor_get(x_6, 1); lean_inc(x_8); -x_9 = lean_ctor_get(x_8, 1); -lean_inc(x_9); -x_10 = lean_ctor_get(x_5, 0); +lean_inc(x_3); +x_9 = l_Lean_Elab_Term_collectUsedFVars(x_1, x_8, x_3, x_4); +x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); -x_11 = lean_ctor_get(x_7, 1); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec(x_9); +x_12 = lean_ctor_get(x_6, 2); +lean_inc(x_12); +lean_dec(x_6); +lean_inc(x_3); +x_13 = l_List_foldlM___main___at___private_Lean_Elab_Inductive_25__removeUnused___spec__1(x_10, x_12, x_3, x_11); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_1 = x_14; +x_2 = x_7; +x_4 = x_15; +goto _start; +} +} +} +lean_object* l___private_Lean_Elab_Inductive_25__removeUnused(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_5 = l___private_Lean_Elab_Definition_1__removeUnused___closed__1; +lean_inc(x_3); +x_6 = l_List_foldlM___main___at___private_Lean_Elab_Inductive_25__removeUnused___spec__2(x_5, x_2, x_3, x_4); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +x_9 = l_Lean_Elab_Term_removeUnused(x_1, x_7, x_3, x_8); +return x_9; +} +} +lean_object* l___private_Lean_Elab_Inductive_25__removeUnused___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l___private_Lean_Elab_Inductive_25__removeUnused(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} +lean_object* l___private_Lean_Elab_Inductive_26__withUsed___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +lean_inc(x_4); +x_6 = l___private_Lean_Elab_Inductive_25__removeUnused(x_1, x_2, x_4, x_5); +if (lean_obj_tag(x_6) == 0) +{ +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; uint8_t x_14; +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_7, 1); +lean_inc(x_8); +x_9 = lean_ctor_get(x_4, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_6, 1); +lean_inc(x_10); +lean_dec(x_6); +x_11 = lean_ctor_get(x_7, 0); lean_inc(x_11); lean_dec(x_7); x_12 = lean_ctor_get(x_8, 0); lean_inc(x_12); -lean_dec(x_8); -x_13 = lean_ctor_get(x_9, 0); +x_13 = lean_ctor_get(x_8, 1); lean_inc(x_13); -x_14 = lean_ctor_get(x_9, 1); -lean_inc(x_14); -lean_dec(x_9); -x_15 = !lean_is_exclusive(x_5); -if (x_15 == 0) +lean_dec(x_8); +x_14 = !lean_is_exclusive(x_4); +if (x_14 == 0) { -lean_object* x_16; uint8_t x_17; -x_16 = lean_ctor_get(x_5, 0); -lean_dec(x_16); -x_17 = !lean_is_exclusive(x_10); -if (x_17 == 0) +lean_object* x_15; uint8_t x_16; +x_15 = lean_ctor_get(x_4, 0); +lean_dec(x_15); +x_16 = !lean_is_exclusive(x_9); +if (x_16 == 0) { -lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_18 = lean_ctor_get(x_10, 2); +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_9, 2); +lean_dec(x_17); +x_18 = lean_ctor_get(x_9, 1); lean_dec(x_18); -x_19 = lean_ctor_get(x_10, 1); -lean_dec(x_19); -lean_ctor_set(x_10, 2, x_13); -lean_ctor_set(x_10, 1, x_12); -x_20 = lean_apply_3(x_4, x_14, x_5, x_11); -return x_20; +lean_ctor_set(x_9, 2, x_12); +lean_ctor_set(x_9, 1, x_11); +x_19 = lean_apply_3(x_3, x_13, x_4, x_10); +return x_19; } else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_21 = lean_ctor_get(x_10, 0); -x_22 = lean_ctor_get(x_10, 3); -x_23 = lean_ctor_get(x_10, 4); -lean_inc(x_23); +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_20 = lean_ctor_get(x_9, 0); +x_21 = lean_ctor_get(x_9, 3); +x_22 = lean_ctor_get(x_9, 4); lean_inc(x_22); lean_inc(x_21); -lean_dec(x_10); -x_24 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_24, 0, x_21); -lean_ctor_set(x_24, 1, x_12); -lean_ctor_set(x_24, 2, x_13); -lean_ctor_set(x_24, 3, x_22); -lean_ctor_set(x_24, 4, x_23); -lean_ctor_set(x_5, 0, x_24); -x_25 = lean_apply_3(x_4, x_14, x_5, x_11); -return x_25; +lean_inc(x_20); +lean_dec(x_9); +x_23 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_23, 0, x_20); +lean_ctor_set(x_23, 1, x_11); +lean_ctor_set(x_23, 2, x_12); +lean_ctor_set(x_23, 3, x_21); +lean_ctor_set(x_23, 4, x_22); +lean_ctor_set(x_4, 0, x_23); +x_24 = lean_apply_3(x_3, x_13, x_4, x_10); +return x_24; } } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; uint8_t x_36; uint8_t x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_26 = lean_ctor_get(x_5, 1); -x_27 = lean_ctor_get(x_5, 2); -x_28 = lean_ctor_get(x_5, 3); -x_29 = lean_ctor_get(x_5, 4); -x_30 = lean_ctor_get(x_5, 5); -x_31 = lean_ctor_get(x_5, 6); -x_32 = lean_ctor_get(x_5, 7); -x_33 = lean_ctor_get(x_5, 8); -x_34 = lean_ctor_get(x_5, 9); -x_35 = lean_ctor_get_uint8(x_5, sizeof(void*)*10); -x_36 = lean_ctor_get_uint8(x_5, sizeof(void*)*10 + 1); -x_37 = lean_ctor_get_uint8(x_5, sizeof(void*)*10 + 2); -lean_inc(x_34); +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; uint8_t x_34; uint8_t x_35; uint8_t x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_25 = lean_ctor_get(x_4, 1); +x_26 = lean_ctor_get(x_4, 2); +x_27 = lean_ctor_get(x_4, 3); +x_28 = lean_ctor_get(x_4, 4); +x_29 = lean_ctor_get(x_4, 5); +x_30 = lean_ctor_get(x_4, 6); +x_31 = lean_ctor_get(x_4, 7); +x_32 = lean_ctor_get(x_4, 8); +x_33 = lean_ctor_get(x_4, 9); +x_34 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_35 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_36 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +x_37 = lean_ctor_get(x_4, 10); +lean_inc(x_37); lean_inc(x_33); lean_inc(x_32); lean_inc(x_31); @@ -8779,22 +9212,23 @@ lean_inc(x_29); lean_inc(x_28); lean_inc(x_27); lean_inc(x_26); -lean_dec(x_5); -x_38 = lean_ctor_get(x_10, 0); +lean_inc(x_25); +lean_dec(x_4); +x_38 = lean_ctor_get(x_9, 0); lean_inc(x_38); -x_39 = lean_ctor_get(x_10, 3); +x_39 = lean_ctor_get(x_9, 3); lean_inc(x_39); -x_40 = lean_ctor_get(x_10, 4); +x_40 = lean_ctor_get(x_9, 4); lean_inc(x_40); -if (lean_is_exclusive(x_10)) { - lean_ctor_release(x_10, 0); - lean_ctor_release(x_10, 1); - lean_ctor_release(x_10, 2); - lean_ctor_release(x_10, 3); - lean_ctor_release(x_10, 4); - x_41 = x_10; +if (lean_is_exclusive(x_9)) { + lean_ctor_release(x_9, 0); + lean_ctor_release(x_9, 1); + lean_ctor_release(x_9, 2); + lean_ctor_release(x_9, 3); + lean_ctor_release(x_9, 4); + x_41 = x_9; } else { - lean_dec_ref(x_10); + lean_dec_ref(x_9); x_41 = lean_box(0); } if (lean_is_scalar(x_41)) { @@ -8803,46 +9237,47 @@ if (lean_is_scalar(x_41)) { x_42 = x_41; } lean_ctor_set(x_42, 0, x_38); -lean_ctor_set(x_42, 1, x_12); -lean_ctor_set(x_42, 2, x_13); +lean_ctor_set(x_42, 1, x_11); +lean_ctor_set(x_42, 2, x_12); lean_ctor_set(x_42, 3, x_39); lean_ctor_set(x_42, 4, x_40); -x_43 = lean_alloc_ctor(0, 10, 3); +x_43 = lean_alloc_ctor(0, 11, 3); lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_26); -lean_ctor_set(x_43, 2, x_27); -lean_ctor_set(x_43, 3, x_28); -lean_ctor_set(x_43, 4, x_29); -lean_ctor_set(x_43, 5, x_30); -lean_ctor_set(x_43, 6, x_31); -lean_ctor_set(x_43, 7, x_32); -lean_ctor_set(x_43, 8, x_33); -lean_ctor_set(x_43, 9, x_34); -lean_ctor_set_uint8(x_43, sizeof(void*)*10, x_35); -lean_ctor_set_uint8(x_43, sizeof(void*)*10 + 1, x_36); -lean_ctor_set_uint8(x_43, sizeof(void*)*10 + 2, x_37); -x_44 = lean_apply_3(x_4, x_14, x_43, x_11); +lean_ctor_set(x_43, 1, x_25); +lean_ctor_set(x_43, 2, x_26); +lean_ctor_set(x_43, 3, x_27); +lean_ctor_set(x_43, 4, x_28); +lean_ctor_set(x_43, 5, x_29); +lean_ctor_set(x_43, 6, x_30); +lean_ctor_set(x_43, 7, x_31); +lean_ctor_set(x_43, 8, x_32); +lean_ctor_set(x_43, 9, x_33); +lean_ctor_set(x_43, 10, x_37); +lean_ctor_set_uint8(x_43, sizeof(void*)*11, x_34); +lean_ctor_set_uint8(x_43, sizeof(void*)*11 + 1, x_35); +lean_ctor_set_uint8(x_43, sizeof(void*)*11 + 2, x_36); +x_44 = lean_apply_3(x_3, x_13, x_43, x_10); return x_44; } } else { uint8_t x_45; -lean_dec(x_5); lean_dec(x_4); -x_45 = !lean_is_exclusive(x_7); +lean_dec(x_3); +x_45 = !lean_is_exclusive(x_6); if (x_45 == 0) { -return x_7; +return x_6; } else { lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_7, 0); -x_47 = lean_ctor_get(x_7, 1); +x_46 = lean_ctor_get(x_6, 0); +x_47 = lean_ctor_get(x_6, 1); lean_inc(x_47); lean_inc(x_46); -lean_dec(x_7); +lean_dec(x_6); x_48 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_48, 0, x_46); lean_ctor_set(x_48, 1, x_47); @@ -8855,52 +9290,408 @@ lean_object* l___private_Lean_Elab_Inductive_26__withUsed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_26__withUsed___rarg___boxed), 6, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_26__withUsed___rarg___boxed), 5, 0); return x_2; } } -lean_object* l___private_Lean_Elab_Inductive_26__withUsed___rarg___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* l___private_Lean_Elab_Inductive_26__withUsed___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_7; -x_7 = l___private_Lean_Elab_Inductive_26__withUsed___rarg(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_2); +lean_object* x_6; +x_6 = l___private_Lean_Elab_Inductive_26__withUsed___rarg(x_1, x_2, x_3, x_4, x_5); lean_dec(x_1); -return x_7; +return x_6; } } -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_27__updateParams___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_27__updateParams___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -if (lean_obj_tag(x_3) == 0) +if (lean_obj_tag(x_2) == 0) { -lean_object* x_6; lean_object* x_7; -lean_dec(x_4); -lean_dec(x_2); -x_6 = lean_box(0); -x_7 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_7, 0, x_6); -lean_ctor_set(x_7, 1, x_5); -return x_7; +lean_object* x_5; lean_object* x_6; +lean_dec(x_3); +lean_dec(x_1); +x_5 = lean_box(0); +x_6 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_5); +lean_ctor_set(x_6, 1, x_4); +return x_6; } else { -uint8_t x_8; -x_8 = !lean_is_exclusive(x_3); -if (x_8 == 0) +uint8_t x_7; +x_7 = !lean_is_exclusive(x_2); +if (x_7 == 0) { -lean_object* x_9; uint8_t x_10; -x_9 = lean_ctor_get(x_3, 0); -x_10 = !lean_is_exclusive(x_9); -if (x_10 == 0) +lean_object* x_8; uint8_t x_9; +x_8 = lean_ctor_get(x_2, 0); +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_11 = lean_ctor_get(x_3, 1); -x_12 = lean_ctor_get(x_9, 0); -x_13 = lean_ctor_get(x_9, 1); -lean_inc(x_4); -lean_inc(x_2); -x_14 = l_Lean_Elab_Term_mkForall(x_1, x_2, x_13, x_4, x_5); +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_10 = lean_ctor_get(x_2, 1); +x_11 = lean_ctor_get(x_8, 0); +x_12 = lean_ctor_get(x_8, 1); +lean_inc(x_3); +lean_inc(x_1); +x_13 = l_Lean_Elab_Term_mkForall(x_1, x_12, x_3, x_4); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +lean_ctor_set(x_8, 1, x_14); +x_16 = l_List_mapM___main___at___private_Lean_Elab_Inductive_27__updateParams___spec__1(x_1, x_10, x_3, x_15); +if (lean_obj_tag(x_16) == 0) +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +lean_object* x_18; +x_18 = lean_ctor_get(x_16, 0); +lean_ctor_set(x_2, 1, x_18); +lean_ctor_set(x_16, 0, x_2); +return x_16; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_16, 0); +x_20 = lean_ctor_get(x_16, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_16); +lean_ctor_set(x_2, 1, x_19); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_2); +lean_ctor_set(x_21, 1, x_20); +return x_21; +} +} +else +{ +uint8_t x_22; +lean_dec(x_8); +lean_free_object(x_2); +x_22 = !lean_is_exclusive(x_16); +if (x_22 == 0) +{ +return x_16; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_16, 0); +x_24 = lean_ctor_get(x_16, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_16); +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +return x_25; +} +} +} +else +{ +uint8_t x_26; +lean_free_object(x_8); +lean_dec(x_11); +lean_free_object(x_2); +lean_dec(x_10); +lean_dec(x_3); +lean_dec(x_1); +x_26 = !lean_is_exclusive(x_13); +if (x_26 == 0) +{ +return x_13; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_13, 0); +x_28 = lean_ctor_get(x_13, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_13); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +return x_29; +} +} +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_30 = lean_ctor_get(x_2, 1); +x_31 = lean_ctor_get(x_8, 0); +x_32 = lean_ctor_get(x_8, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_8); +lean_inc(x_3); +lean_inc(x_1); +x_33 = l_Lean_Elab_Term_mkForall(x_1, x_32, x_3, x_4); +if (lean_obj_tag(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_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_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_31); +lean_ctor_set(x_36, 1, x_34); +x_37 = l_List_mapM___main___at___private_Lean_Elab_Inductive_27__updateParams___spec__1(x_1, x_30, x_3, x_35); +if (lean_obj_tag(x_37) == 0) +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_40 = x_37; +} else { + lean_dec_ref(x_37); + x_40 = lean_box(0); +} +lean_ctor_set(x_2, 1, x_38); +lean_ctor_set(x_2, 0, x_36); +if (lean_is_scalar(x_40)) { + x_41 = lean_alloc_ctor(0, 2, 0); +} else { + x_41 = x_40; +} +lean_ctor_set(x_41, 0, x_2); +lean_ctor_set(x_41, 1, x_39); +return x_41; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +lean_dec(x_36); +lean_free_object(x_2); +x_42 = lean_ctor_get(x_37, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_37, 1); +lean_inc(x_43); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_44 = x_37; +} else { + lean_dec_ref(x_37); + x_44 = lean_box(0); +} +if (lean_is_scalar(x_44)) { + x_45 = lean_alloc_ctor(1, 2, 0); +} else { + x_45 = x_44; +} +lean_ctor_set(x_45, 0, x_42); +lean_ctor_set(x_45, 1, x_43); +return x_45; +} +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +lean_dec(x_31); +lean_free_object(x_2); +lean_dec(x_30); +lean_dec(x_3); +lean_dec(x_1); +x_46 = lean_ctor_get(x_33, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_33, 1); +lean_inc(x_47); +if (lean_is_exclusive(x_33)) { + lean_ctor_release(x_33, 0); + lean_ctor_release(x_33, 1); + x_48 = x_33; +} else { + lean_dec_ref(x_33); + x_48 = lean_box(0); +} +if (lean_is_scalar(x_48)) { + x_49 = lean_alloc_ctor(1, 2, 0); +} else { + x_49 = x_48; +} +lean_ctor_set(x_49, 0, x_46); +lean_ctor_set(x_49, 1, x_47); +return x_49; +} +} +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_50 = lean_ctor_get(x_2, 0); +x_51 = lean_ctor_get(x_2, 1); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_2); +x_52 = lean_ctor_get(x_50, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_50, 1); +lean_inc(x_53); +if (lean_is_exclusive(x_50)) { + lean_ctor_release(x_50, 0); + lean_ctor_release(x_50, 1); + x_54 = x_50; +} else { + lean_dec_ref(x_50); + x_54 = lean_box(0); +} +lean_inc(x_3); +lean_inc(x_1); +x_55 = l_Lean_Elab_Term_mkForall(x_1, x_53, x_3, x_4); +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_55, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_55, 1); +lean_inc(x_57); +lean_dec(x_55); +if (lean_is_scalar(x_54)) { + x_58 = lean_alloc_ctor(0, 2, 0); +} else { + x_58 = x_54; +} +lean_ctor_set(x_58, 0, x_52); +lean_ctor_set(x_58, 1, x_56); +x_59 = l_List_mapM___main___at___private_Lean_Elab_Inductive_27__updateParams___spec__1(x_1, x_51, x_3, x_57); +if (lean_obj_tag(x_59) == 0) +{ +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_59, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_59, 1); +lean_inc(x_61); +if (lean_is_exclusive(x_59)) { + lean_ctor_release(x_59, 0); + lean_ctor_release(x_59, 1); + x_62 = x_59; +} else { + lean_dec_ref(x_59); + x_62 = lean_box(0); +} +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_58); +lean_ctor_set(x_63, 1, x_60); +if (lean_is_scalar(x_62)) { + x_64 = lean_alloc_ctor(0, 2, 0); +} else { + x_64 = x_62; +} +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_61); +return x_64; +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +lean_dec(x_58); +x_65 = lean_ctor_get(x_59, 0); +lean_inc(x_65); +x_66 = lean_ctor_get(x_59, 1); +lean_inc(x_66); +if (lean_is_exclusive(x_59)) { + lean_ctor_release(x_59, 0); + lean_ctor_release(x_59, 1); + x_67 = x_59; +} else { + lean_dec_ref(x_59); + x_67 = lean_box(0); +} +if (lean_is_scalar(x_67)) { + x_68 = lean_alloc_ctor(1, 2, 0); +} else { + x_68 = x_67; +} +lean_ctor_set(x_68, 0, x_65); +lean_ctor_set(x_68, 1, x_66); +return x_68; +} +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +lean_dec(x_54); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_3); +lean_dec(x_1); +x_69 = lean_ctor_get(x_55, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_55, 1); +lean_inc(x_70); +if (lean_is_exclusive(x_55)) { + lean_ctor_release(x_55, 0); + lean_ctor_release(x_55, 1); + x_71 = x_55; +} else { + lean_dec_ref(x_55); + x_71 = lean_box(0); +} +if (lean_is_scalar(x_71)) { + x_72 = lean_alloc_ctor(1, 2, 0); +} else { + x_72 = x_71; +} +lean_ctor_set(x_72, 0, x_69); +lean_ctor_set(x_72, 1, x_70); +return x_72; +} +} +} +} +} +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_27__updateParams___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_3); +lean_dec(x_1); +x_5 = lean_box(0); +x_6 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_5); +lean_ctor_set(x_6, 1, x_4); +return x_6; +} +else +{ +uint8_t x_7; +x_7 = !lean_is_exclusive(x_2); +if (x_7 == 0) +{ +lean_object* x_8; uint8_t x_9; +x_8 = lean_ctor_get(x_2, 0); +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_10 = lean_ctor_get(x_2, 1); +x_11 = lean_ctor_get(x_8, 0); +x_12 = lean_ctor_get(x_8, 1); +x_13 = lean_ctor_get(x_8, 2); +lean_inc(x_3); +lean_inc(x_1); +x_14 = l_Lean_Elab_Term_mkForall(x_1, x_12, x_3, x_4); if (lean_obj_tag(x_14) == 0) { lean_object* x_15; lean_object* x_16; lean_object* x_17; @@ -8909,848 +9700,464 @@ lean_inc(x_15); x_16 = lean_ctor_get(x_14, 1); lean_inc(x_16); lean_dec(x_14); -lean_ctor_set(x_9, 1, x_15); -x_17 = l_List_mapM___main___at___private_Lean_Elab_Inductive_27__updateParams___spec__1(x_1, x_2, x_11, x_4, x_16); +lean_inc(x_3); +lean_inc(x_1); +x_17 = l_List_mapM___main___at___private_Lean_Elab_Inductive_27__updateParams___spec__1(x_1, x_13, x_3, x_16); if (lean_obj_tag(x_17) == 0) { -uint8_t x_18; -x_18 = !lean_is_exclusive(x_17); -if (x_18 == 0) -{ -lean_object* x_19; -x_19 = lean_ctor_get(x_17, 0); -lean_ctor_set(x_3, 1, x_19); -lean_ctor_set(x_17, 0, x_3); -return x_17; -} -else -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_17, 0); -x_21 = lean_ctor_get(x_17, 1); -lean_inc(x_21); -lean_inc(x_20); +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); lean_dec(x_17); -lean_ctor_set(x_3, 1, x_20); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_3); -lean_ctor_set(x_22, 1, x_21); -return x_22; -} +lean_ctor_set(x_8, 2, x_18); +lean_ctor_set(x_8, 1, x_15); +x_20 = l_List_mapM___main___at___private_Lean_Elab_Inductive_27__updateParams___spec__2(x_1, x_10, x_3, x_19); +if (lean_obj_tag(x_20) == 0) +{ +uint8_t x_21; +x_21 = !lean_is_exclusive(x_20); +if (x_21 == 0) +{ +lean_object* x_22; +x_22 = lean_ctor_get(x_20, 0); +lean_ctor_set(x_2, 1, x_22); +lean_ctor_set(x_20, 0, x_2); +return x_20; } else { -uint8_t x_23; -lean_dec(x_9); -lean_free_object(x_3); -x_23 = !lean_is_exclusive(x_17); -if (x_23 == 0) -{ -return x_17; -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_17, 0); -x_25 = lean_ctor_get(x_17, 1); -lean_inc(x_25); +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_20, 0); +x_24 = lean_ctor_get(x_20, 1); lean_inc(x_24); -lean_dec(x_17); -x_26 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_26, 0, x_24); -lean_ctor_set(x_26, 1, x_25); -return x_26; +lean_inc(x_23); +lean_dec(x_20); +lean_ctor_set(x_2, 1, x_23); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_2); +lean_ctor_set(x_25, 1, x_24); +return x_25; +} +} +else +{ +uint8_t x_26; +lean_dec(x_8); +lean_free_object(x_2); +x_26 = !lean_is_exclusive(x_20); +if (x_26 == 0) +{ +return x_20; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_20, 0); +x_28 = lean_ctor_get(x_20, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_20); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +return x_29; } } } else { -uint8_t x_27; -lean_free_object(x_9); -lean_dec(x_12); -lean_free_object(x_3); +uint8_t x_30; +lean_dec(x_15); +lean_free_object(x_8); lean_dec(x_11); -lean_dec(x_4); -lean_dec(x_2); -x_27 = !lean_is_exclusive(x_14); -if (x_27 == 0) +lean_free_object(x_2); +lean_dec(x_10); +lean_dec(x_3); +lean_dec(x_1); +x_30 = !lean_is_exclusive(x_17); +if (x_30 == 0) +{ +return x_17; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_17, 0); +x_32 = lean_ctor_get(x_17, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_17); +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_free_object(x_8); +lean_dec(x_13); +lean_dec(x_11); +lean_free_object(x_2); +lean_dec(x_10); +lean_dec(x_3); +lean_dec(x_1); +x_34 = !lean_is_exclusive(x_14); +if (x_34 == 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; -} -} -} -else -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_31 = lean_ctor_get(x_3, 1); -x_32 = lean_ctor_get(x_9, 0); -x_33 = lean_ctor_get(x_9, 1); -lean_inc(x_33); -lean_inc(x_32); -lean_dec(x_9); -lean_inc(x_4); -lean_inc(x_2); -x_34 = l_Lean_Elab_Term_mkForall(x_1, x_2, x_33, x_4, x_5); -if (lean_obj_tag(x_34) == 0) -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_35 = lean_ctor_get(x_34, 0); +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_14, 0); +x_36 = lean_ctor_get(x_14, 1); +lean_inc(x_36); 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(0, 2, 0); -lean_ctor_set(x_37, 0, x_32); -lean_ctor_set(x_37, 1, x_35); -x_38 = l_List_mapM___main___at___private_Lean_Elab_Inductive_27__updateParams___spec__1(x_1, x_2, x_31, x_4, x_36); -if (lean_obj_tag(x_38) == 0) -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_39 = lean_ctor_get(x_38, 0); -lean_inc(x_39); -x_40 = lean_ctor_get(x_38, 1); -lean_inc(x_40); -if (lean_is_exclusive(x_38)) { - lean_ctor_release(x_38, 0); - lean_ctor_release(x_38, 1); - x_41 = x_38; -} else { - lean_dec_ref(x_38); - x_41 = lean_box(0); -} -lean_ctor_set(x_3, 1, x_39); -lean_ctor_set(x_3, 0, x_37); -if (lean_is_scalar(x_41)) { - x_42 = lean_alloc_ctor(0, 2, 0); -} else { - x_42 = x_41; -} -lean_ctor_set(x_42, 0, x_3); -lean_ctor_set(x_42, 1, x_40); -return x_42; -} -else -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; -lean_dec(x_37); -lean_free_object(x_3); -x_43 = lean_ctor_get(x_38, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_38, 1); -lean_inc(x_44); -if (lean_is_exclusive(x_38)) { - lean_ctor_release(x_38, 0); - lean_ctor_release(x_38, 1); - x_45 = x_38; -} else { - lean_dec_ref(x_38); - x_45 = lean_box(0); -} -if (lean_is_scalar(x_45)) { - x_46 = lean_alloc_ctor(1, 2, 0); -} else { - x_46 = x_45; -} -lean_ctor_set(x_46, 0, x_43); -lean_ctor_set(x_46, 1, x_44); -return x_46; -} -} -else -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; -lean_dec(x_32); -lean_free_object(x_3); -lean_dec(x_31); -lean_dec(x_4); -lean_dec(x_2); -x_47 = lean_ctor_get(x_34, 0); -lean_inc(x_47); -x_48 = lean_ctor_get(x_34, 1); -lean_inc(x_48); -if (lean_is_exclusive(x_34)) { - lean_ctor_release(x_34, 0); - lean_ctor_release(x_34, 1); - x_49 = x_34; -} else { - lean_dec_ref(x_34); - x_49 = lean_box(0); -} -if (lean_is_scalar(x_49)) { - x_50 = lean_alloc_ctor(1, 2, 0); -} else { - x_50 = x_49; -} -lean_ctor_set(x_50, 0, x_47); -lean_ctor_set(x_50, 1, x_48); -return x_50; -} -} -} -else -{ -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_51 = lean_ctor_get(x_3, 0); -x_52 = lean_ctor_get(x_3, 1); -lean_inc(x_52); -lean_inc(x_51); -lean_dec(x_3); -x_53 = lean_ctor_get(x_51, 0); -lean_inc(x_53); -x_54 = lean_ctor_get(x_51, 1); -lean_inc(x_54); -if (lean_is_exclusive(x_51)) { - lean_ctor_release(x_51, 0); - lean_ctor_release(x_51, 1); - x_55 = x_51; -} else { - lean_dec_ref(x_51); - x_55 = lean_box(0); -} -lean_inc(x_4); -lean_inc(x_2); -x_56 = l_Lean_Elab_Term_mkForall(x_1, x_2, x_54, x_4, x_5); -if (lean_obj_tag(x_56) == 0) -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_57 = lean_ctor_get(x_56, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_56, 1); -lean_inc(x_58); -lean_dec(x_56); -if (lean_is_scalar(x_55)) { - x_59 = lean_alloc_ctor(0, 2, 0); -} else { - x_59 = x_55; -} -lean_ctor_set(x_59, 0, x_53); -lean_ctor_set(x_59, 1, x_57); -x_60 = l_List_mapM___main___at___private_Lean_Elab_Inductive_27__updateParams___spec__1(x_1, x_2, x_52, x_4, x_58); -if (lean_obj_tag(x_60) == 0) -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_61 = lean_ctor_get(x_60, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_60, 1); -lean_inc(x_62); -if (lean_is_exclusive(x_60)) { - lean_ctor_release(x_60, 0); - lean_ctor_release(x_60, 1); - x_63 = x_60; -} else { - lean_dec_ref(x_60); - x_63 = lean_box(0); -} -x_64 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_64, 0, x_59); -lean_ctor_set(x_64, 1, x_61); -if (lean_is_scalar(x_63)) { - x_65 = lean_alloc_ctor(0, 2, 0); -} else { - x_65 = x_63; -} -lean_ctor_set(x_65, 0, x_64); -lean_ctor_set(x_65, 1, x_62); -return x_65; -} -else -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; -lean_dec(x_59); -x_66 = lean_ctor_get(x_60, 0); -lean_inc(x_66); -x_67 = lean_ctor_get(x_60, 1); -lean_inc(x_67); -if (lean_is_exclusive(x_60)) { - lean_ctor_release(x_60, 0); - lean_ctor_release(x_60, 1); - x_68 = x_60; -} else { - lean_dec_ref(x_60); - x_68 = lean_box(0); -} -if (lean_is_scalar(x_68)) { - x_69 = lean_alloc_ctor(1, 2, 0); -} else { - x_69 = x_68; -} -lean_ctor_set(x_69, 0, x_66); -lean_ctor_set(x_69, 1, x_67); -return x_69; -} -} -else -{ -lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; -lean_dec(x_55); -lean_dec(x_53); -lean_dec(x_52); -lean_dec(x_4); -lean_dec(x_2); -x_70 = lean_ctor_get(x_56, 0); -lean_inc(x_70); -x_71 = lean_ctor_get(x_56, 1); -lean_inc(x_71); -if (lean_is_exclusive(x_56)) { - lean_ctor_release(x_56, 0); - lean_ctor_release(x_56, 1); - x_72 = x_56; -} else { - lean_dec_ref(x_56); - x_72 = lean_box(0); -} -if (lean_is_scalar(x_72)) { - x_73 = lean_alloc_ctor(1, 2, 0); -} else { - x_73 = x_72; -} -lean_ctor_set(x_73, 0, x_70); -lean_ctor_set(x_73, 1, x_71); -return x_73; -} -} -} -} -} -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_27__updateParams___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -if (lean_obj_tag(x_3) == 0) -{ -lean_object* x_6; lean_object* x_7; -lean_dec(x_4); -lean_dec(x_2); -x_6 = lean_box(0); -x_7 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_7, 0, x_6); -lean_ctor_set(x_7, 1, x_5); -return x_7; -} -else -{ -uint8_t x_8; -x_8 = !lean_is_exclusive(x_3); -if (x_8 == 0) -{ -lean_object* x_9; uint8_t x_10; -x_9 = lean_ctor_get(x_3, 0); -x_10 = !lean_is_exclusive(x_9); -if (x_10 == 0) -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_11 = lean_ctor_get(x_3, 1); -x_12 = lean_ctor_get(x_9, 0); -x_13 = lean_ctor_get(x_9, 1); -x_14 = lean_ctor_get(x_9, 2); -lean_inc(x_4); -lean_inc(x_2); -x_15 = l_Lean_Elab_Term_mkForall(x_1, x_2, x_13, x_4, x_5); -if (lean_obj_tag(x_15) == 0) -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); -lean_inc(x_17); -lean_dec(x_15); -lean_inc(x_4); -lean_inc(x_2); -x_18 = l_List_mapM___main___at___private_Lean_Elab_Inductive_27__updateParams___spec__1(x_1, x_2, x_14, x_4, x_17); -if (lean_obj_tag(x_18) == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); -lean_inc(x_20); -lean_dec(x_18); -lean_ctor_set(x_9, 2, x_19); -lean_ctor_set(x_9, 1, x_16); -x_21 = l_List_mapM___main___at___private_Lean_Elab_Inductive_27__updateParams___spec__2(x_1, x_2, x_11, x_4, x_20); -if (lean_obj_tag(x_21) == 0) -{ -uint8_t x_22; -x_22 = !lean_is_exclusive(x_21); -if (x_22 == 0) -{ -lean_object* x_23; -x_23 = lean_ctor_get(x_21, 0); -lean_ctor_set(x_3, 1, x_23); -lean_ctor_set(x_21, 0, x_3); -return x_21; -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_21, 0); -x_25 = lean_ctor_get(x_21, 1); -lean_inc(x_25); -lean_inc(x_24); -lean_dec(x_21); -lean_ctor_set(x_3, 1, x_24); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_3); -lean_ctor_set(x_26, 1, x_25); -return x_26; -} -} -else -{ -uint8_t x_27; -lean_dec(x_9); -lean_free_object(x_3); -x_27 = !lean_is_exclusive(x_21); -if (x_27 == 0) -{ -return x_21; -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_21, 0); -x_29 = lean_ctor_get(x_21, 1); -lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_21); -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; -} -} -} -else -{ -uint8_t x_31; -lean_dec(x_16); -lean_free_object(x_9); -lean_dec(x_12); -lean_free_object(x_3); -lean_dec(x_11); -lean_dec(x_4); -lean_dec(x_2); -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; -} -} -} -else -{ -uint8_t x_35; -lean_free_object(x_9); lean_dec(x_14); -lean_dec(x_12); -lean_free_object(x_3); -lean_dec(x_11); -lean_dec(x_4); -lean_dec(x_2); -x_35 = !lean_is_exclusive(x_15); -if (x_35 == 0) -{ -return x_15; -} -else -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_15, 0); -x_37 = lean_ctor_get(x_15, 1); -lean_inc(x_37); -lean_inc(x_36); -lean_dec(x_15); -x_38 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_38, 0, x_36); -lean_ctor_set(x_38, 1, x_37); -return x_38; +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; } } } else { -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_39 = lean_ctor_get(x_3, 1); -x_40 = lean_ctor_get(x_9, 0); -x_41 = lean_ctor_get(x_9, 1); -x_42 = lean_ctor_get(x_9, 2); -lean_inc(x_42); +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_2, 1); +x_39 = lean_ctor_get(x_8, 0); +x_40 = lean_ctor_get(x_8, 1); +x_41 = lean_ctor_get(x_8, 2); lean_inc(x_41); lean_inc(x_40); -lean_dec(x_9); -lean_inc(x_4); -lean_inc(x_2); -x_43 = l_Lean_Elab_Term_mkForall(x_1, x_2, x_41, x_4, x_5); -if (lean_obj_tag(x_43) == 0) +lean_inc(x_39); +lean_dec(x_8); +lean_inc(x_3); +lean_inc(x_1); +x_42 = l_Lean_Elab_Term_mkForall(x_1, x_40, x_3, x_4); +if (lean_obj_tag(x_42) == 0) { -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_43, 0); +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_42, 1); lean_inc(x_44); -x_45 = lean_ctor_get(x_43, 1); -lean_inc(x_45); -lean_dec(x_43); -lean_inc(x_4); -lean_inc(x_2); -x_46 = l_List_mapM___main___at___private_Lean_Elab_Inductive_27__updateParams___spec__1(x_1, x_2, x_42, x_4, x_45); -if (lean_obj_tag(x_46) == 0) -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_47 = lean_ctor_get(x_46, 0); -lean_inc(x_47); -x_48 = lean_ctor_get(x_46, 1); -lean_inc(x_48); -lean_dec(x_46); -x_49 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_49, 0, x_40); -lean_ctor_set(x_49, 1, x_44); -lean_ctor_set(x_49, 2, x_47); -x_50 = l_List_mapM___main___at___private_Lean_Elab_Inductive_27__updateParams___spec__2(x_1, x_2, x_39, x_4, x_48); -if (lean_obj_tag(x_50) == 0) -{ -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_51 = lean_ctor_get(x_50, 0); -lean_inc(x_51); -x_52 = lean_ctor_get(x_50, 1); -lean_inc(x_52); -if (lean_is_exclusive(x_50)) { - lean_ctor_release(x_50, 0); - lean_ctor_release(x_50, 1); - x_53 = x_50; -} else { - lean_dec_ref(x_50); - x_53 = lean_box(0); -} -lean_ctor_set(x_3, 1, x_51); -lean_ctor_set(x_3, 0, x_49); -if (lean_is_scalar(x_53)) { - x_54 = lean_alloc_ctor(0, 2, 0); -} else { - x_54 = x_53; -} -lean_ctor_set(x_54, 0, x_3); -lean_ctor_set(x_54, 1, x_52); -return x_54; -} -else -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; -lean_dec(x_49); -lean_free_object(x_3); -x_55 = lean_ctor_get(x_50, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_50, 1); -lean_inc(x_56); -if (lean_is_exclusive(x_50)) { - lean_ctor_release(x_50, 0); - lean_ctor_release(x_50, 1); - x_57 = x_50; -} else { - lean_dec_ref(x_50); - x_57 = lean_box(0); -} -if (lean_is_scalar(x_57)) { - x_58 = lean_alloc_ctor(1, 2, 0); -} else { - x_58 = x_57; -} -lean_ctor_set(x_58, 0, x_55); -lean_ctor_set(x_58, 1, x_56); -return x_58; -} -} -else -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; -lean_dec(x_44); -lean_dec(x_40); -lean_free_object(x_3); -lean_dec(x_39); -lean_dec(x_4); -lean_dec(x_2); -x_59 = lean_ctor_get(x_46, 0); -lean_inc(x_59); -x_60 = lean_ctor_get(x_46, 1); -lean_inc(x_60); -if (lean_is_exclusive(x_46)) { - lean_ctor_release(x_46, 0); - lean_ctor_release(x_46, 1); - x_61 = x_46; -} else { - lean_dec_ref(x_46); - x_61 = lean_box(0); -} -if (lean_is_scalar(x_61)) { - x_62 = lean_alloc_ctor(1, 2, 0); -} else { - x_62 = x_61; -} -lean_ctor_set(x_62, 0, x_59); -lean_ctor_set(x_62, 1, x_60); -return x_62; -} -} -else -{ -lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_dec(x_42); -lean_dec(x_40); -lean_free_object(x_3); +lean_inc(x_3); +lean_inc(x_1); +x_45 = l_List_mapM___main___at___private_Lean_Elab_Inductive_27__updateParams___spec__1(x_1, x_41, x_3, x_44); +if (lean_obj_tag(x_45) == 0) +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_46 = lean_ctor_get(x_45, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_45, 1); +lean_inc(x_47); +lean_dec(x_45); +x_48 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_48, 0, x_39); +lean_ctor_set(x_48, 1, x_43); +lean_ctor_set(x_48, 2, x_46); +x_49 = l_List_mapM___main___at___private_Lean_Elab_Inductive_27__updateParams___spec__2(x_1, x_38, x_3, x_47); +if (lean_obj_tag(x_49) == 0) +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_50 = lean_ctor_get(x_49, 0); +lean_inc(x_50); +x_51 = lean_ctor_get(x_49, 1); +lean_inc(x_51); +if (lean_is_exclusive(x_49)) { + lean_ctor_release(x_49, 0); + lean_ctor_release(x_49, 1); + x_52 = x_49; +} else { + lean_dec_ref(x_49); + x_52 = lean_box(0); +} +lean_ctor_set(x_2, 1, x_50); +lean_ctor_set(x_2, 0, x_48); +if (lean_is_scalar(x_52)) { + x_53 = lean_alloc_ctor(0, 2, 0); +} else { + x_53 = x_52; +} +lean_ctor_set(x_53, 0, x_2); +lean_ctor_set(x_53, 1, x_51); +return x_53; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +lean_dec(x_48); +lean_free_object(x_2); +x_54 = lean_ctor_get(x_49, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_49, 1); +lean_inc(x_55); +if (lean_is_exclusive(x_49)) { + lean_ctor_release(x_49, 0); + lean_ctor_release(x_49, 1); + x_56 = x_49; +} else { + lean_dec_ref(x_49); + x_56 = lean_box(0); +} +if (lean_is_scalar(x_56)) { + x_57 = lean_alloc_ctor(1, 2, 0); +} else { + x_57 = x_56; +} +lean_ctor_set(x_57, 0, x_54); +lean_ctor_set(x_57, 1, x_55); +return x_57; +} +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +lean_dec(x_43); lean_dec(x_39); -lean_dec(x_4); -lean_dec(x_2); -x_63 = lean_ctor_get(x_43, 0); -lean_inc(x_63); -x_64 = lean_ctor_get(x_43, 1); -lean_inc(x_64); -if (lean_is_exclusive(x_43)) { - lean_ctor_release(x_43, 0); - lean_ctor_release(x_43, 1); - x_65 = x_43; -} else { - lean_dec_ref(x_43); - x_65 = lean_box(0); -} -if (lean_is_scalar(x_65)) { - x_66 = lean_alloc_ctor(1, 2, 0); -} else { - x_66 = x_65; -} -lean_ctor_set(x_66, 0, x_63); -lean_ctor_set(x_66, 1, x_64); -return x_66; -} -} -} -else -{ -lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_67 = lean_ctor_get(x_3, 0); -x_68 = lean_ctor_get(x_3, 1); -lean_inc(x_68); -lean_inc(x_67); +lean_free_object(x_2); +lean_dec(x_38); lean_dec(x_3); -x_69 = lean_ctor_get(x_67, 0); +lean_dec(x_1); +x_58 = lean_ctor_get(x_45, 0); +lean_inc(x_58); +x_59 = lean_ctor_get(x_45, 1); +lean_inc(x_59); +if (lean_is_exclusive(x_45)) { + lean_ctor_release(x_45, 0); + lean_ctor_release(x_45, 1); + x_60 = x_45; +} else { + lean_dec_ref(x_45); + x_60 = lean_box(0); +} +if (lean_is_scalar(x_60)) { + x_61 = lean_alloc_ctor(1, 2, 0); +} else { + x_61 = x_60; +} +lean_ctor_set(x_61, 0, x_58); +lean_ctor_set(x_61, 1, x_59); +return x_61; +} +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; +lean_dec(x_41); +lean_dec(x_39); +lean_free_object(x_2); +lean_dec(x_38); +lean_dec(x_3); +lean_dec(x_1); +x_62 = lean_ctor_get(x_42, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_42, 1); +lean_inc(x_63); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + x_64 = x_42; +} else { + lean_dec_ref(x_42); + x_64 = lean_box(0); +} +if (lean_is_scalar(x_64)) { + x_65 = lean_alloc_ctor(1, 2, 0); +} else { + x_65 = x_64; +} +lean_ctor_set(x_65, 0, x_62); +lean_ctor_set(x_65, 1, x_63); +return x_65; +} +} +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_66 = lean_ctor_get(x_2, 0); +x_67 = lean_ctor_get(x_2, 1); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_2); +x_68 = lean_ctor_get(x_66, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_66, 1); lean_inc(x_69); -x_70 = lean_ctor_get(x_67, 1); +x_70 = lean_ctor_get(x_66, 2); lean_inc(x_70); -x_71 = lean_ctor_get(x_67, 2); -lean_inc(x_71); -if (lean_is_exclusive(x_67)) { - lean_ctor_release(x_67, 0); - lean_ctor_release(x_67, 1); - lean_ctor_release(x_67, 2); - x_72 = x_67; +if (lean_is_exclusive(x_66)) { + lean_ctor_release(x_66, 0); + lean_ctor_release(x_66, 1); + lean_ctor_release(x_66, 2); + x_71 = x_66; } else { - lean_dec_ref(x_67); - x_72 = lean_box(0); + lean_dec_ref(x_66); + x_71 = lean_box(0); } -lean_inc(x_4); -lean_inc(x_2); -x_73 = l_Lean_Elab_Term_mkForall(x_1, x_2, x_70, x_4, x_5); -if (lean_obj_tag(x_73) == 0) +lean_inc(x_3); +lean_inc(x_1); +x_72 = l_Lean_Elab_Term_mkForall(x_1, x_69, x_3, x_4); +if (lean_obj_tag(x_72) == 0) { -lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_74 = lean_ctor_get(x_73, 0); +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_72, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_72, 1); lean_inc(x_74); -x_75 = lean_ctor_get(x_73, 1); -lean_inc(x_75); -lean_dec(x_73); -lean_inc(x_4); -lean_inc(x_2); -x_76 = l_List_mapM___main___at___private_Lean_Elab_Inductive_27__updateParams___spec__1(x_1, x_2, x_71, x_4, x_75); -if (lean_obj_tag(x_76) == 0) +lean_dec(x_72); +lean_inc(x_3); +lean_inc(x_1); +x_75 = l_List_mapM___main___at___private_Lean_Elab_Inductive_27__updateParams___spec__1(x_1, x_70, x_3, x_74); +if (lean_obj_tag(x_75) == 0) { -lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_77 = lean_ctor_get(x_76, 0); +lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_76 = lean_ctor_get(x_75, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_75, 1); lean_inc(x_77); -x_78 = lean_ctor_get(x_76, 1); -lean_inc(x_78); -lean_dec(x_76); -if (lean_is_scalar(x_72)) { - x_79 = lean_alloc_ctor(0, 3, 0); +lean_dec(x_75); +if (lean_is_scalar(x_71)) { + x_78 = lean_alloc_ctor(0, 3, 0); } else { - x_79 = x_72; + x_78 = x_71; } -lean_ctor_set(x_79, 0, x_69); -lean_ctor_set(x_79, 1, x_74); -lean_ctor_set(x_79, 2, x_77); -x_80 = l_List_mapM___main___at___private_Lean_Elab_Inductive_27__updateParams___spec__2(x_1, x_2, x_68, x_4, x_78); -if (lean_obj_tag(x_80) == 0) +lean_ctor_set(x_78, 0, x_68); +lean_ctor_set(x_78, 1, x_73); +lean_ctor_set(x_78, 2, x_76); +x_79 = l_List_mapM___main___at___private_Lean_Elab_Inductive_27__updateParams___spec__2(x_1, x_67, x_3, x_77); +if (lean_obj_tag(x_79) == 0) { -lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; -x_81 = lean_ctor_get(x_80, 0); +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_80 = lean_ctor_get(x_79, 0); +lean_inc(x_80); +x_81 = lean_ctor_get(x_79, 1); lean_inc(x_81); -x_82 = lean_ctor_get(x_80, 1); -lean_inc(x_82); -if (lean_is_exclusive(x_80)) { - lean_ctor_release(x_80, 0); - lean_ctor_release(x_80, 1); - x_83 = x_80; +if (lean_is_exclusive(x_79)) { + lean_ctor_release(x_79, 0); + lean_ctor_release(x_79, 1); + x_82 = x_79; } else { - lean_dec_ref(x_80); - x_83 = lean_box(0); + lean_dec_ref(x_79); + x_82 = lean_box(0); } -x_84 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_84, 0, x_79); +x_83 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_83, 0, x_78); +lean_ctor_set(x_83, 1, x_80); +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); -if (lean_is_scalar(x_83)) { - x_85 = lean_alloc_ctor(0, 2, 0); -} else { - x_85 = x_83; -} -lean_ctor_set(x_85, 0, x_84); -lean_ctor_set(x_85, 1, x_82); -return x_85; +return x_84; } else { -lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; -lean_dec(x_79); -x_86 = lean_ctor_get(x_80, 0); +lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; +lean_dec(x_78); +x_85 = lean_ctor_get(x_79, 0); +lean_inc(x_85); +x_86 = lean_ctor_get(x_79, 1); lean_inc(x_86); -x_87 = lean_ctor_get(x_80, 1); -lean_inc(x_87); -if (lean_is_exclusive(x_80)) { - lean_ctor_release(x_80, 0); - lean_ctor_release(x_80, 1); - x_88 = x_80; +if (lean_is_exclusive(x_79)) { + lean_ctor_release(x_79, 0); + lean_ctor_release(x_79, 1); + x_87 = x_79; } else { - lean_dec_ref(x_80); - x_88 = lean_box(0); + lean_dec_ref(x_79); + x_87 = lean_box(0); } -if (lean_is_scalar(x_88)) { - x_89 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_87)) { + x_88 = lean_alloc_ctor(1, 2, 0); } else { - x_89 = x_88; + x_88 = x_87; } -lean_ctor_set(x_89, 0, x_86); -lean_ctor_set(x_89, 1, x_87); -return x_89; +lean_ctor_set(x_88, 0, x_85); +lean_ctor_set(x_88, 1, x_86); +return x_88; } } else { -lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; -lean_dec(x_74); -lean_dec(x_72); -lean_dec(x_69); -lean_dec(x_68); -lean_dec(x_4); -lean_dec(x_2); -x_90 = lean_ctor_get(x_76, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_76, 1); -lean_inc(x_91); -if (lean_is_exclusive(x_76)) { - lean_ctor_release(x_76, 0); - lean_ctor_release(x_76, 1); - x_92 = x_76; -} else { - lean_dec_ref(x_76); - x_92 = lean_box(0); -} -if (lean_is_scalar(x_92)) { - x_93 = lean_alloc_ctor(1, 2, 0); -} else { - x_93 = x_92; -} -lean_ctor_set(x_93, 0, x_90); -lean_ctor_set(x_93, 1, x_91); -return x_93; -} -} -else -{ -lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; -lean_dec(x_72); +lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; +lean_dec(x_73); lean_dec(x_71); -lean_dec(x_69); lean_dec(x_68); -lean_dec(x_4); -lean_dec(x_2); -x_94 = lean_ctor_get(x_73, 0); +lean_dec(x_67); +lean_dec(x_3); +lean_dec(x_1); +x_89 = lean_ctor_get(x_75, 0); +lean_inc(x_89); +x_90 = lean_ctor_get(x_75, 1); +lean_inc(x_90); +if (lean_is_exclusive(x_75)) { + lean_ctor_release(x_75, 0); + lean_ctor_release(x_75, 1); + x_91 = x_75; +} else { + lean_dec_ref(x_75); + 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_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; +lean_dec(x_71); +lean_dec(x_70); +lean_dec(x_68); +lean_dec(x_67); +lean_dec(x_3); +lean_dec(x_1); +x_93 = lean_ctor_get(x_72, 0); +lean_inc(x_93); +x_94 = lean_ctor_get(x_72, 1); lean_inc(x_94); -x_95 = lean_ctor_get(x_73, 1); -lean_inc(x_95); -if (lean_is_exclusive(x_73)) { - lean_ctor_release(x_73, 0); - lean_ctor_release(x_73, 1); - x_96 = x_73; +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_95 = x_72; } else { - lean_dec_ref(x_73); - x_96 = lean_box(0); + lean_dec_ref(x_72); + x_95 = lean_box(0); } -if (lean_is_scalar(x_96)) { - x_97 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_95)) { + x_96 = lean_alloc_ctor(1, 2, 0); } else { - x_97 = x_96; + x_96 = x_95; } -lean_ctor_set(x_97, 0, x_94); -lean_ctor_set(x_97, 1, x_95); -return x_97; +lean_ctor_set(x_96, 0, x_93); +lean_ctor_set(x_96, 1, x_94); +return x_96; } } } } } -lean_object* l___private_Lean_Elab_Inductive_27__updateParams(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_Inductive_27__updateParams(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_6; -x_6 = l_List_mapM___main___at___private_Lean_Elab_Inductive_27__updateParams___spec__2(x_1, x_2, x_3, x_4, x_5); -return x_6; -} -} -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_27__updateParams___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_List_mapM___main___at___private_Lean_Elab_Inductive_27__updateParams___spec__1(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_1); -return x_6; -} -} -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_27__updateParams___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_List_mapM___main___at___private_Lean_Elab_Inductive_27__updateParams___spec__2(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_1); -return x_6; -} -} -lean_object* l___private_Lean_Elab_Inductive_27__updateParams___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l___private_Lean_Elab_Inductive_27__updateParams(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_1); -return x_6; +lean_object* x_5; +x_5 = l_List_mapM___main___at___private_Lean_Elab_Inductive_27__updateParams___spec__2(x_1, x_2, x_3, x_4); +return x_5; } } lean_object* l_List_foldl___main___at___private_Lean_Elab_Inductive_28__collectLevelParamsInInductive___spec__1(lean_object* x_1, lean_object* x_2) { @@ -16677,979 +17084,979 @@ return x_24; } } } -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__7(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* l_List_mapM___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -if (lean_obj_tag(x_4) == 0) +if (lean_obj_tag(x_3) == 0) { -lean_object* x_7; lean_object* x_8; -lean_dec(x_5); -lean_dec(x_3); +lean_object* x_6; lean_object* x_7; +lean_dec(x_4); +lean_dec(x_2); lean_dec(x_1); -x_7 = lean_box(0); -x_8 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_8, 0, x_7); -lean_ctor_set(x_8, 1, x_6); -return x_8; +x_6 = lean_box(0); +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_5); +return x_7; } else { -uint8_t x_9; -x_9 = !lean_is_exclusive(x_4); -if (x_9 == 0) +uint8_t x_8; +x_8 = !lean_is_exclusive(x_3); +if (x_8 == 0) { -lean_object* x_10; uint8_t x_11; -x_10 = lean_ctor_get(x_4, 0); -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) +lean_object* x_9; uint8_t x_10; +x_9 = lean_ctor_get(x_3, 0); +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) { -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_12 = lean_ctor_get(x_4, 1); -x_13 = lean_ctor_get(x_10, 0); -x_14 = lean_ctor_get(x_10, 1); +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_11 = lean_ctor_get(x_3, 1); +x_12 = lean_ctor_get(x_9, 0); +x_13 = lean_ctor_get(x_9, 1); lean_inc(x_1); -x_15 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_15, 0, x_1); -x_16 = lean_ctor_get(x_6, 0); -lean_inc(x_16); -x_17 = !lean_is_exclusive(x_16); -if (x_17 == 0) +x_14 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_14, 0, x_1); +x_15 = lean_ctor_get(x_5, 0); +lean_inc(x_15); +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) { -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_18 = lean_ctor_get(x_16, 4); -x_19 = lean_ctor_get(x_5, 0); -lean_inc(x_19); -x_20 = l_Lean_TraceState_Inhabited___closed__1; -lean_ctor_set(x_16, 4, x_20); -lean_inc(x_3); -x_21 = l___private_Lean_Meta_Basic_6__forallTelescopeReducingAux___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__2(x_3, x_14, x_15, x_19, x_16); -if (lean_obj_tag(x_21) == 0) +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_17 = lean_ctor_get(x_15, 4); +x_18 = lean_ctor_get(x_4, 0); +lean_inc(x_18); +x_19 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_15, 4, x_19); +lean_inc(x_2); +x_20 = l___private_Lean_Meta_Basic_6__forallTelescopeReducingAux___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__2(x_2, x_13, x_14, x_18, x_15); +if (lean_obj_tag(x_20) == 0) { -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_22 = lean_ctor_get(x_21, 0); +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_20, 1); lean_inc(x_22); -x_23 = lean_ctor_get(x_21, 1); -lean_inc(x_23); -lean_dec(x_21); -lean_inc(x_5); -x_24 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_5, x_6, x_23, x_18); -lean_ctor_set(x_10, 1, x_22); -x_25 = l_List_mapM___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__7(x_1, x_2, x_3, x_12, x_5, x_24); -if (lean_obj_tag(x_25) == 0) +lean_dec(x_20); +lean_inc(x_4); +x_23 = l___private_Lean_Elab_Term_3__fromMetaState(x_4, x_5, x_22, x_17); +lean_ctor_set(x_9, 1, x_21); +x_24 = l_List_mapM___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__7(x_1, x_2, x_11, x_4, x_23); +if (lean_obj_tag(x_24) == 0) { -uint8_t x_26; -x_26 = !lean_is_exclusive(x_25); -if (x_26 == 0) +uint8_t x_25; +x_25 = !lean_is_exclusive(x_24); +if (x_25 == 0) { -lean_object* x_27; -x_27 = lean_ctor_get(x_25, 0); -lean_ctor_set(x_4, 1, x_27); -lean_ctor_set(x_25, 0, x_4); -return x_25; +lean_object* x_26; +x_26 = lean_ctor_get(x_24, 0); +lean_ctor_set(x_3, 1, x_26); +lean_ctor_set(x_24, 0, x_3); +return x_24; } else { -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_25, 0); -x_29 = lean_ctor_get(x_25, 1); -lean_inc(x_29); +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_24, 0); +x_28 = lean_ctor_get(x_24, 1); lean_inc(x_28); -lean_dec(x_25); -lean_ctor_set(x_4, 1, x_28); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_4); -lean_ctor_set(x_30, 1, x_29); -return x_30; +lean_inc(x_27); +lean_dec(x_24); +lean_ctor_set(x_3, 1, x_27); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_3); +lean_ctor_set(x_29, 1, x_28); +return x_29; } } else { -uint8_t x_31; -lean_dec(x_10); -lean_free_object(x_4); -x_31 = !lean_is_exclusive(x_25); -if (x_31 == 0) +uint8_t x_30; +lean_dec(x_9); +lean_free_object(x_3); +x_30 = !lean_is_exclusive(x_24); +if (x_30 == 0) { -return x_25; +return x_24; } else { -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_25, 0); -x_33 = lean_ctor_get(x_25, 1); -lean_inc(x_33); +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_24, 0); +x_32 = lean_ctor_get(x_24, 1); lean_inc(x_32); -lean_dec(x_25); -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_inc(x_31); +lean_dec(x_24); +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_35; -lean_free_object(x_10); -lean_dec(x_13); -lean_free_object(x_4); +uint8_t x_34; +lean_free_object(x_9); lean_dec(x_12); -lean_dec(x_3); +lean_free_object(x_3); +lean_dec(x_11); +lean_dec(x_2); lean_dec(x_1); -x_35 = !lean_is_exclusive(x_21); -if (x_35 == 0) +x_34 = !lean_is_exclusive(x_20); +if (x_34 == 0) { -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_36 = lean_ctor_get(x_21, 0); -x_37 = lean_ctor_get(x_21, 1); -lean_inc(x_5); -x_38 = l___private_Lean_Elab_Term_2__fromMetaException(x_5, x_2, x_36); -x_39 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_5, x_6, x_37, x_18); -lean_ctor_set(x_21, 1, x_39); -lean_ctor_set(x_21, 0, x_38); -return x_21; +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_35 = lean_ctor_get(x_20, 0); +x_36 = lean_ctor_get(x_20, 1); +lean_inc(x_4); +x_37 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_35); +x_38 = l___private_Lean_Elab_Term_3__fromMetaState(x_4, x_5, x_36, x_17); +lean_ctor_set(x_20, 1, x_38); +lean_ctor_set(x_20, 0, x_37); +return x_20; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_40 = lean_ctor_get(x_21, 0); -x_41 = lean_ctor_get(x_21, 1); -lean_inc(x_41); +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_39 = lean_ctor_get(x_20, 0); +x_40 = lean_ctor_get(x_20, 1); lean_inc(x_40); -lean_dec(x_21); -lean_inc(x_5); -x_42 = l___private_Lean_Elab_Term_2__fromMetaException(x_5, x_2, x_40); -x_43 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_5, x_6, x_41, x_18); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -return x_44; +lean_inc(x_39); +lean_dec(x_20); +lean_inc(x_4); +x_41 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_39); +x_42 = l___private_Lean_Elab_Term_3__fromMetaState(x_4, x_5, x_40, x_17); +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 { -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; lean_object* x_54; -x_45 = lean_ctor_get(x_16, 0); -x_46 = lean_ctor_get(x_16, 1); -x_47 = lean_ctor_get(x_16, 2); -x_48 = lean_ctor_get(x_16, 3); -x_49 = lean_ctor_get(x_16, 4); -x_50 = lean_ctor_get(x_16, 5); -lean_inc(x_50); +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_44 = lean_ctor_get(x_15, 0); +x_45 = lean_ctor_get(x_15, 1); +x_46 = lean_ctor_get(x_15, 2); +x_47 = lean_ctor_get(x_15, 3); +x_48 = lean_ctor_get(x_15, 4); +x_49 = lean_ctor_get(x_15, 5); lean_inc(x_49); lean_inc(x_48); lean_inc(x_47); lean_inc(x_46); lean_inc(x_45); -lean_dec(x_16); -x_51 = lean_ctor_get(x_5, 0); -lean_inc(x_51); -x_52 = l_Lean_TraceState_Inhabited___closed__1; -x_53 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_53, 0, x_45); -lean_ctor_set(x_53, 1, x_46); -lean_ctor_set(x_53, 2, x_47); -lean_ctor_set(x_53, 3, x_48); -lean_ctor_set(x_53, 4, x_52); -lean_ctor_set(x_53, 5, x_50); -lean_inc(x_3); -x_54 = l___private_Lean_Meta_Basic_6__forallTelescopeReducingAux___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__2(x_3, x_14, x_15, x_51, x_53); -if (lean_obj_tag(x_54) == 0) +lean_inc(x_44); +lean_dec(x_15); +x_50 = lean_ctor_get(x_4, 0); +lean_inc(x_50); +x_51 = l_Lean_TraceState_Inhabited___closed__1; +x_52 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_52, 0, x_44); +lean_ctor_set(x_52, 1, x_45); +lean_ctor_set(x_52, 2, x_46); +lean_ctor_set(x_52, 3, x_47); +lean_ctor_set(x_52, 4, x_51); +lean_ctor_set(x_52, 5, x_49); +lean_inc(x_2); +x_53 = l___private_Lean_Meta_Basic_6__forallTelescopeReducingAux___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__2(x_2, x_13, x_14, x_50, x_52); +if (lean_obj_tag(x_53) == 0) { -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_55 = lean_ctor_get(x_54, 0); +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_54 = lean_ctor_get(x_53, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_53, 1); lean_inc(x_55); -x_56 = lean_ctor_get(x_54, 1); -lean_inc(x_56); -lean_dec(x_54); -lean_inc(x_5); -x_57 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_5, x_6, x_56, x_49); -lean_ctor_set(x_10, 1, x_55); -x_58 = l_List_mapM___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__7(x_1, x_2, x_3, x_12, x_5, x_57); -if (lean_obj_tag(x_58) == 0) +lean_dec(x_53); +lean_inc(x_4); +x_56 = l___private_Lean_Elab_Term_3__fromMetaState(x_4, x_5, x_55, x_48); +lean_ctor_set(x_9, 1, x_54); +x_57 = l_List_mapM___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__7(x_1, x_2, x_11, x_4, x_56); +if (lean_obj_tag(x_57) == 0) { -lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_59 = lean_ctor_get(x_58, 0); +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_58 = lean_ctor_get(x_57, 0); +lean_inc(x_58); +x_59 = lean_ctor_get(x_57, 1); lean_inc(x_59); -x_60 = lean_ctor_get(x_58, 1); -lean_inc(x_60); -if (lean_is_exclusive(x_58)) { - lean_ctor_release(x_58, 0); - lean_ctor_release(x_58, 1); - x_61 = x_58; +if (lean_is_exclusive(x_57)) { + lean_ctor_release(x_57, 0); + lean_ctor_release(x_57, 1); + x_60 = x_57; } else { - lean_dec_ref(x_58); - x_61 = lean_box(0); + lean_dec_ref(x_57); + x_60 = lean_box(0); } -lean_ctor_set(x_4, 1, x_59); -if (lean_is_scalar(x_61)) { - x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 1, x_58); +if (lean_is_scalar(x_60)) { + x_61 = lean_alloc_ctor(0, 2, 0); } else { - x_62 = x_61; + x_61 = x_60; } -lean_ctor_set(x_62, 0, x_4); -lean_ctor_set(x_62, 1, x_60); -return x_62; +lean_ctor_set(x_61, 0, x_3); +lean_ctor_set(x_61, 1, x_59); +return x_61; } else { -lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; -lean_dec(x_10); -lean_free_object(x_4); -x_63 = lean_ctor_get(x_58, 0); +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; +lean_dec(x_9); +lean_free_object(x_3); +x_62 = lean_ctor_get(x_57, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_57, 1); lean_inc(x_63); -x_64 = lean_ctor_get(x_58, 1); -lean_inc(x_64); -if (lean_is_exclusive(x_58)) { - lean_ctor_release(x_58, 0); - lean_ctor_release(x_58, 1); - x_65 = x_58; +if (lean_is_exclusive(x_57)) { + lean_ctor_release(x_57, 0); + lean_ctor_release(x_57, 1); + x_64 = x_57; } else { - lean_dec_ref(x_58); - x_65 = lean_box(0); + lean_dec_ref(x_57); + x_64 = lean_box(0); } -if (lean_is_scalar(x_65)) { - x_66 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_64)) { + x_65 = lean_alloc_ctor(1, 2, 0); } else { - x_66 = x_65; + x_65 = x_64; } -lean_ctor_set(x_66, 0, x_63); -lean_ctor_set(x_66, 1, x_64); -return x_66; +lean_ctor_set(x_65, 0, x_62); +lean_ctor_set(x_65, 1, x_63); +return x_65; } } else { -lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; -lean_free_object(x_10); -lean_dec(x_13); -lean_free_object(x_4); +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +lean_free_object(x_9); lean_dec(x_12); -lean_dec(x_3); +lean_free_object(x_3); +lean_dec(x_11); +lean_dec(x_2); lean_dec(x_1); -x_67 = lean_ctor_get(x_54, 0); +x_66 = lean_ctor_get(x_53, 0); +lean_inc(x_66); +x_67 = lean_ctor_get(x_53, 1); lean_inc(x_67); -x_68 = lean_ctor_get(x_54, 1); -lean_inc(x_68); -if (lean_is_exclusive(x_54)) { - lean_ctor_release(x_54, 0); - lean_ctor_release(x_54, 1); - x_69 = x_54; +if (lean_is_exclusive(x_53)) { + lean_ctor_release(x_53, 0); + lean_ctor_release(x_53, 1); + x_68 = x_53; } else { - lean_dec_ref(x_54); - x_69 = lean_box(0); + lean_dec_ref(x_53); + x_68 = lean_box(0); } -lean_inc(x_5); -x_70 = l___private_Lean_Elab_Term_2__fromMetaException(x_5, x_2, x_67); -x_71 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_5, x_6, x_68, x_49); -if (lean_is_scalar(x_69)) { +lean_inc(x_4); +x_69 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_66); +x_70 = l___private_Lean_Elab_Term_3__fromMetaState(x_4, x_5, x_67, x_48); +if (lean_is_scalar(x_68)) { + x_71 = lean_alloc_ctor(1, 2, 0); +} else { + x_71 = x_68; +} +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_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_72 = lean_ctor_get(x_3, 1); +x_73 = lean_ctor_get(x_9, 0); +x_74 = lean_ctor_get(x_9, 1); +lean_inc(x_74); +lean_inc(x_73); +lean_dec(x_9); +lean_inc(x_1); +x_75 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_75, 0, x_1); +x_76 = lean_ctor_get(x_5, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_76, 0); +lean_inc(x_77); +x_78 = lean_ctor_get(x_76, 1); +lean_inc(x_78); +x_79 = lean_ctor_get(x_76, 2); +lean_inc(x_79); +x_80 = lean_ctor_get(x_76, 3); +lean_inc(x_80); +x_81 = lean_ctor_get(x_76, 4); +lean_inc(x_81); +x_82 = lean_ctor_get(x_76, 5); +lean_inc(x_82); +if (lean_is_exclusive(x_76)) { + lean_ctor_release(x_76, 0); + lean_ctor_release(x_76, 1); + lean_ctor_release(x_76, 2); + lean_ctor_release(x_76, 3); + lean_ctor_release(x_76, 4); + lean_ctor_release(x_76, 5); + x_83 = x_76; +} else { + lean_dec_ref(x_76); + x_83 = lean_box(0); +} +x_84 = lean_ctor_get(x_4, 0); +lean_inc(x_84); +x_85 = l_Lean_TraceState_Inhabited___closed__1; +if (lean_is_scalar(x_83)) { + x_86 = lean_alloc_ctor(0, 6, 0); +} else { + x_86 = x_83; +} +lean_ctor_set(x_86, 0, x_77); +lean_ctor_set(x_86, 1, x_78); +lean_ctor_set(x_86, 2, x_79); +lean_ctor_set(x_86, 3, x_80); +lean_ctor_set(x_86, 4, x_85); +lean_ctor_set(x_86, 5, x_82); +lean_inc(x_2); +x_87 = l___private_Lean_Meta_Basic_6__forallTelescopeReducingAux___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__2(x_2, x_74, x_75, x_84, x_86); +if (lean_obj_tag(x_87) == 0) +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; +x_88 = lean_ctor_get(x_87, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_87, 1); +lean_inc(x_89); +lean_dec(x_87); +lean_inc(x_4); +x_90 = l___private_Lean_Elab_Term_3__fromMetaState(x_4, x_5, x_89, x_81); +x_91 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_91, 0, x_73); +lean_ctor_set(x_91, 1, x_88); +x_92 = l_List_mapM___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__7(x_1, x_2, x_72, x_4, x_90); +if (lean_obj_tag(x_92) == 0) +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_93 = lean_ctor_get(x_92, 0); +lean_inc(x_93); +x_94 = lean_ctor_get(x_92, 1); +lean_inc(x_94); +if (lean_is_exclusive(x_92)) { + lean_ctor_release(x_92, 0); + lean_ctor_release(x_92, 1); + x_95 = x_92; +} else { + lean_dec_ref(x_92); + x_95 = lean_box(0); +} +lean_ctor_set(x_3, 1, x_93); +lean_ctor_set(x_3, 0, x_91); +if (lean_is_scalar(x_95)) { + x_96 = lean_alloc_ctor(0, 2, 0); +} else { + x_96 = x_95; +} +lean_ctor_set(x_96, 0, x_3); +lean_ctor_set(x_96, 1, x_94); +return x_96; +} +else +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; +lean_dec(x_91); +lean_free_object(x_3); +x_97 = lean_ctor_get(x_92, 0); +lean_inc(x_97); +x_98 = lean_ctor_get(x_92, 1); +lean_inc(x_98); +if (lean_is_exclusive(x_92)) { + lean_ctor_release(x_92, 0); + lean_ctor_release(x_92, 1); + x_99 = x_92; +} else { + lean_dec_ref(x_92); + 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); +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_object* x_106; +lean_dec(x_73); +lean_free_object(x_3); +lean_dec(x_72); +lean_dec(x_2); +lean_dec(x_1); +x_101 = lean_ctor_get(x_87, 0); +lean_inc(x_101); +x_102 = lean_ctor_get(x_87, 1); +lean_inc(x_102); +if (lean_is_exclusive(x_87)) { + lean_ctor_release(x_87, 0); + lean_ctor_release(x_87, 1); + x_103 = x_87; +} else { + lean_dec_ref(x_87); + x_103 = lean_box(0); +} +lean_inc(x_4); +x_104 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_101); +x_105 = l___private_Lean_Elab_Term_3__fromMetaState(x_4, x_5, x_102, x_81); +if (lean_is_scalar(x_103)) { + x_106 = lean_alloc_ctor(1, 2, 0); +} else { + x_106 = x_103; +} +lean_ctor_set(x_106, 0, x_104); +lean_ctor_set(x_106, 1, x_105); +return x_106; +} +} +} +else +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_107 = lean_ctor_get(x_3, 0); +x_108 = lean_ctor_get(x_3, 1); +lean_inc(x_108); +lean_inc(x_107); +lean_dec(x_3); +x_109 = lean_ctor_get(x_107, 0); +lean_inc(x_109); +x_110 = lean_ctor_get(x_107, 1); +lean_inc(x_110); +if (lean_is_exclusive(x_107)) { + lean_ctor_release(x_107, 0); + lean_ctor_release(x_107, 1); + x_111 = x_107; +} else { + lean_dec_ref(x_107); + x_111 = lean_box(0); +} +lean_inc(x_1); +x_112 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_112, 0, x_1); +x_113 = lean_ctor_get(x_5, 0); +lean_inc(x_113); +x_114 = lean_ctor_get(x_113, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_113, 1); +lean_inc(x_115); +x_116 = lean_ctor_get(x_113, 2); +lean_inc(x_116); +x_117 = lean_ctor_get(x_113, 3); +lean_inc(x_117); +x_118 = lean_ctor_get(x_113, 4); +lean_inc(x_118); +x_119 = lean_ctor_get(x_113, 5); +lean_inc(x_119); +if (lean_is_exclusive(x_113)) { + lean_ctor_release(x_113, 0); + lean_ctor_release(x_113, 1); + lean_ctor_release(x_113, 2); + lean_ctor_release(x_113, 3); + lean_ctor_release(x_113, 4); + lean_ctor_release(x_113, 5); + x_120 = x_113; +} else { + lean_dec_ref(x_113); + x_120 = lean_box(0); +} +x_121 = lean_ctor_get(x_4, 0); +lean_inc(x_121); +x_122 = l_Lean_TraceState_Inhabited___closed__1; +if (lean_is_scalar(x_120)) { + x_123 = lean_alloc_ctor(0, 6, 0); +} else { + x_123 = x_120; +} +lean_ctor_set(x_123, 0, x_114); +lean_ctor_set(x_123, 1, x_115); +lean_ctor_set(x_123, 2, x_116); +lean_ctor_set(x_123, 3, x_117); +lean_ctor_set(x_123, 4, x_122); +lean_ctor_set(x_123, 5, x_119); +lean_inc(x_2); +x_124 = l___private_Lean_Meta_Basic_6__forallTelescopeReducingAux___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__2(x_2, x_110, x_112, x_121, x_123); +if (lean_obj_tag(x_124) == 0) +{ +lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; +x_125 = lean_ctor_get(x_124, 0); +lean_inc(x_125); +x_126 = lean_ctor_get(x_124, 1); +lean_inc(x_126); +lean_dec(x_124); +lean_inc(x_4); +x_127 = l___private_Lean_Elab_Term_3__fromMetaState(x_4, x_5, x_126, x_118); +if (lean_is_scalar(x_111)) { + x_128 = lean_alloc_ctor(0, 2, 0); +} else { + x_128 = x_111; +} +lean_ctor_set(x_128, 0, x_109); +lean_ctor_set(x_128, 1, x_125); +x_129 = l_List_mapM___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__7(x_1, x_2, x_108, x_4, x_127); +if (lean_obj_tag(x_129) == 0) +{ +lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_130 = lean_ctor_get(x_129, 0); +lean_inc(x_130); +x_131 = lean_ctor_get(x_129, 1); +lean_inc(x_131); +if (lean_is_exclusive(x_129)) { + lean_ctor_release(x_129, 0); + lean_ctor_release(x_129, 1); + x_132 = x_129; +} else { + lean_dec_ref(x_129); + x_132 = lean_box(0); +} +x_133 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_133, 0, x_128); +lean_ctor_set(x_133, 1, x_130); +if (lean_is_scalar(x_132)) { + x_134 = lean_alloc_ctor(0, 2, 0); +} else { + x_134 = x_132; +} +lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 1, x_131); +return x_134; +} +else +{ +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; +lean_dec(x_128); +x_135 = lean_ctor_get(x_129, 0); +lean_inc(x_135); +x_136 = lean_ctor_get(x_129, 1); +lean_inc(x_136); +if (lean_is_exclusive(x_129)) { + lean_ctor_release(x_129, 0); + lean_ctor_release(x_129, 1); + x_137 = x_129; +} else { + lean_dec_ref(x_129); + 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_object* x_144; +lean_dec(x_111); +lean_dec(x_109); +lean_dec(x_108); +lean_dec(x_2); +lean_dec(x_1); +x_139 = lean_ctor_get(x_124, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_124, 1); +lean_inc(x_140); +if (lean_is_exclusive(x_124)) { + lean_ctor_release(x_124, 0); + lean_ctor_release(x_124, 1); + x_141 = x_124; +} else { + lean_dec_ref(x_124); + x_141 = lean_box(0); +} +lean_inc(x_4); +x_142 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_139); +x_143 = l___private_Lean_Elab_Term_3__fromMetaState(x_4, x_5, x_140, x_118); +if (lean_is_scalar(x_141)) { + x_144 = lean_alloc_ctor(1, 2, 0); +} else { + x_144 = x_141; +} +lean_ctor_set(x_144, 0, x_142); +lean_ctor_set(x_144, 1, x_143); +return x_144; +} +} +} +} +} +lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_6 = lean_box(0); +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_5); +return x_7; +} +else +{ +uint8_t x_8; +x_8 = !lean_is_exclusive(x_3); +if (x_8 == 0) +{ +lean_object* x_9; uint8_t x_10; +x_9 = lean_ctor_get(x_3, 0); +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_11 = lean_ctor_get(x_3, 1); +x_12 = lean_ctor_get(x_9, 0); +x_13 = lean_ctor_get(x_9, 1); +x_14 = lean_ctor_get(x_9, 2); +lean_inc(x_4); +lean_inc(x_2); +lean_inc(x_1); +x_15 = l_List_mapM___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__7(x_1, x_2, x_14, x_4, x_5); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +lean_ctor_set(x_9, 2, x_16); +x_18 = l_List_mapM___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__8(x_1, x_2, x_11, x_4, x_17); +if (lean_obj_tag(x_18) == 0) +{ +uint8_t x_19; +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) +{ +lean_object* x_20; +x_20 = lean_ctor_get(x_18, 0); +lean_ctor_set(x_3, 1, x_20); +lean_ctor_set(x_18, 0, x_3); +return x_18; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_18, 0); +x_22 = lean_ctor_get(x_18, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_18); +lean_ctor_set(x_3, 1, x_21); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_3); +lean_ctor_set(x_23, 1, x_22); +return x_23; +} +} +else +{ +uint8_t x_24; +lean_dec(x_9); +lean_free_object(x_3); +x_24 = !lean_is_exclusive(x_18); +if (x_24 == 0) +{ +return x_18; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_18, 0); +x_26 = lean_ctor_get(x_18, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_18); +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_free_object(x_9); +lean_dec(x_13); +lean_dec(x_12); +lean_free_object(x_3); +lean_dec(x_11); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_28 = !lean_is_exclusive(x_15); +if (x_28 == 0) +{ +return x_15; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_15, 0); +x_30 = lean_ctor_get(x_15, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_15); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +return x_31; +} +} +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_32 = lean_ctor_get(x_3, 1); +x_33 = lean_ctor_get(x_9, 0); +x_34 = lean_ctor_get(x_9, 1); +x_35 = lean_ctor_get(x_9, 2); +lean_inc(x_35); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_9); +lean_inc(x_4); +lean_inc(x_2); +lean_inc(x_1); +x_36 = l_List_mapM___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__7(x_1, x_2, x_35, x_4, x_5); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_36, 1); +lean_inc(x_38); +lean_dec(x_36); +x_39 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_39, 0, x_33); +lean_ctor_set(x_39, 1, x_34); +lean_ctor_set(x_39, 2, x_37); +x_40 = l_List_mapM___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__8(x_1, x_2, x_32, x_4, x_38); +if (lean_obj_tag(x_40) == 0) +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + x_43 = x_40; +} else { + lean_dec_ref(x_40); + x_43 = lean_box(0); +} +lean_ctor_set(x_3, 1, x_41); +lean_ctor_set(x_3, 0, x_39); +if (lean_is_scalar(x_43)) { + x_44 = lean_alloc_ctor(0, 2, 0); +} else { + x_44 = x_43; +} +lean_ctor_set(x_44, 0, x_3); +lean_ctor_set(x_44, 1, x_42); +return x_44; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +lean_dec(x_39); +lean_free_object(x_3); +x_45 = lean_ctor_get(x_40, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_40, 1); +lean_inc(x_46); +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + x_47 = x_40; +} else { + lean_dec_ref(x_40); + x_47 = lean_box(0); +} +if (lean_is_scalar(x_47)) { + x_48 = lean_alloc_ctor(1, 2, 0); +} else { + x_48 = x_47; +} +lean_ctor_set(x_48, 0, x_45); +lean_ctor_set(x_48, 1, x_46); +return x_48; +} +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +lean_dec(x_34); +lean_dec(x_33); +lean_free_object(x_3); +lean_dec(x_32); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_49 = lean_ctor_get(x_36, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_36, 1); +lean_inc(x_50); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_51 = x_36; +} else { + lean_dec_ref(x_36); + x_51 = lean_box(0); +} +if (lean_is_scalar(x_51)) { + x_52 = lean_alloc_ctor(1, 2, 0); +} else { + x_52 = x_51; +} +lean_ctor_set(x_52, 0, x_49); +lean_ctor_set(x_52, 1, x_50); +return x_52; +} +} +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_53 = lean_ctor_get(x_3, 0); +x_54 = lean_ctor_get(x_3, 1); +lean_inc(x_54); +lean_inc(x_53); +lean_dec(x_3); +x_55 = lean_ctor_get(x_53, 0); +lean_inc(x_55); +x_56 = lean_ctor_get(x_53, 1); +lean_inc(x_56); +x_57 = lean_ctor_get(x_53, 2); +lean_inc(x_57); +if (lean_is_exclusive(x_53)) { + lean_ctor_release(x_53, 0); + lean_ctor_release(x_53, 1); + lean_ctor_release(x_53, 2); + x_58 = x_53; +} else { + lean_dec_ref(x_53); + x_58 = lean_box(0); +} +lean_inc(x_4); +lean_inc(x_2); +lean_inc(x_1); +x_59 = l_List_mapM___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__7(x_1, x_2, x_57, x_4, x_5); +if (lean_obj_tag(x_59) == 0) +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_59, 1); +lean_inc(x_61); +lean_dec(x_59); +if (lean_is_scalar(x_58)) { + x_62 = lean_alloc_ctor(0, 3, 0); +} else { + x_62 = x_58; +} +lean_ctor_set(x_62, 0, x_55); +lean_ctor_set(x_62, 1, x_56); +lean_ctor_set(x_62, 2, x_60); +x_63 = l_List_mapM___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__8(x_1, x_2, x_54, x_4, x_61); +if (lean_obj_tag(x_63) == 0) +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_64 = lean_ctor_get(x_63, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_63, 1); +lean_inc(x_65); +if (lean_is_exclusive(x_63)) { + lean_ctor_release(x_63, 0); + lean_ctor_release(x_63, 1); + x_66 = x_63; +} else { + lean_dec_ref(x_63); + x_66 = lean_box(0); +} +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_62); +lean_ctor_set(x_67, 1, x_64); +if (lean_is_scalar(x_66)) { + x_68 = lean_alloc_ctor(0, 2, 0); +} else { + x_68 = x_66; +} +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_65); +return x_68; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +lean_dec(x_62); +x_69 = lean_ctor_get(x_63, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_63, 1); +lean_inc(x_70); +if (lean_is_exclusive(x_63)) { + lean_ctor_release(x_63, 0); + lean_ctor_release(x_63, 1); + x_71 = x_63; +} else { + lean_dec_ref(x_63); + x_71 = lean_box(0); +} +if (lean_is_scalar(x_71)) { x_72 = lean_alloc_ctor(1, 2, 0); } else { - x_72 = x_69; + x_72 = x_71; } -lean_ctor_set(x_72, 0, x_70); -lean_ctor_set(x_72, 1, x_71); +lean_ctor_set(x_72, 0, x_69); +lean_ctor_set(x_72, 1, x_70); return x_72; } } -} else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_73 = lean_ctor_get(x_4, 1); -x_74 = lean_ctor_get(x_10, 0); -x_75 = lean_ctor_get(x_10, 1); -lean_inc(x_75); -lean_inc(x_74); -lean_dec(x_10); -lean_inc(x_1); -x_76 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_76, 0, x_1); -x_77 = lean_ctor_get(x_6, 0); -lean_inc(x_77); -x_78 = lean_ctor_get(x_77, 0); -lean_inc(x_78); -x_79 = lean_ctor_get(x_77, 1); -lean_inc(x_79); -x_80 = lean_ctor_get(x_77, 2); -lean_inc(x_80); -x_81 = lean_ctor_get(x_77, 3); -lean_inc(x_81); -x_82 = lean_ctor_get(x_77, 4); -lean_inc(x_82); -x_83 = lean_ctor_get(x_77, 5); -lean_inc(x_83); -if (lean_is_exclusive(x_77)) { - lean_ctor_release(x_77, 0); - lean_ctor_release(x_77, 1); - lean_ctor_release(x_77, 2); - lean_ctor_release(x_77, 3); - lean_ctor_release(x_77, 4); - lean_ctor_release(x_77, 5); - x_84 = x_77; -} else { - lean_dec_ref(x_77); - x_84 = lean_box(0); -} -x_85 = lean_ctor_get(x_5, 0); -lean_inc(x_85); -x_86 = l_Lean_TraceState_Inhabited___closed__1; -if (lean_is_scalar(x_84)) { - x_87 = lean_alloc_ctor(0, 6, 0); -} else { - x_87 = x_84; -} -lean_ctor_set(x_87, 0, x_78); -lean_ctor_set(x_87, 1, x_79); -lean_ctor_set(x_87, 2, x_80); -lean_ctor_set(x_87, 3, x_81); -lean_ctor_set(x_87, 4, x_86); -lean_ctor_set(x_87, 5, x_83); -lean_inc(x_3); -x_88 = l___private_Lean_Meta_Basic_6__forallTelescopeReducingAux___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__2(x_3, x_75, x_76, x_85, x_87); -if (lean_obj_tag(x_88) == 0) -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_89 = lean_ctor_get(x_88, 0); -lean_inc(x_89); -x_90 = lean_ctor_get(x_88, 1); -lean_inc(x_90); -lean_dec(x_88); -lean_inc(x_5); -x_91 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_5, x_6, x_90, x_82); -x_92 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_92, 0, x_74); -lean_ctor_set(x_92, 1, x_89); -x_93 = l_List_mapM___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__7(x_1, x_2, x_3, x_73, x_5, x_91); -if (lean_obj_tag(x_93) == 0) -{ -lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_94 = lean_ctor_get(x_93, 0); -lean_inc(x_94); -x_95 = lean_ctor_get(x_93, 1); -lean_inc(x_95); -if (lean_is_exclusive(x_93)) { - lean_ctor_release(x_93, 0); - lean_ctor_release(x_93, 1); - x_96 = x_93; -} else { - lean_dec_ref(x_93); - x_96 = lean_box(0); -} -lean_ctor_set(x_4, 1, x_94); -lean_ctor_set(x_4, 0, x_92); -if (lean_is_scalar(x_96)) { - x_97 = lean_alloc_ctor(0, 2, 0); -} else { - x_97 = x_96; -} -lean_ctor_set(x_97, 0, x_4); -lean_ctor_set(x_97, 1, x_95); -return x_97; -} -else -{ -lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; -lean_dec(x_92); -lean_free_object(x_4); -x_98 = lean_ctor_get(x_93, 0); -lean_inc(x_98); -x_99 = lean_ctor_get(x_93, 1); -lean_inc(x_99); -if (lean_is_exclusive(x_93)) { - lean_ctor_release(x_93, 0); - lean_ctor_release(x_93, 1); - x_100 = x_93; -} else { - lean_dec_ref(x_93); - x_100 = lean_box(0); -} -if (lean_is_scalar(x_100)) { - x_101 = lean_alloc_ctor(1, 2, 0); -} else { - x_101 = x_100; -} -lean_ctor_set(x_101, 0, x_98); -lean_ctor_set(x_101, 1, x_99); -return x_101; -} -} -else -{ -lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; -lean_dec(x_74); -lean_free_object(x_4); -lean_dec(x_73); -lean_dec(x_3); -lean_dec(x_1); -x_102 = lean_ctor_get(x_88, 0); -lean_inc(x_102); -x_103 = lean_ctor_get(x_88, 1); -lean_inc(x_103); -if (lean_is_exclusive(x_88)) { - lean_ctor_release(x_88, 0); - lean_ctor_release(x_88, 1); - x_104 = x_88; -} else { - lean_dec_ref(x_88); - x_104 = lean_box(0); -} -lean_inc(x_5); -x_105 = l___private_Lean_Elab_Term_2__fromMetaException(x_5, x_2, x_102); -x_106 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_5, x_6, x_103, x_82); -if (lean_is_scalar(x_104)) { - x_107 = lean_alloc_ctor(1, 2, 0); -} else { - x_107 = x_104; -} -lean_ctor_set(x_107, 0, x_105); -lean_ctor_set(x_107, 1, x_106); -return x_107; -} -} -} -else -{ -lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; -x_108 = lean_ctor_get(x_4, 0); -x_109 = lean_ctor_get(x_4, 1); -lean_inc(x_109); -lean_inc(x_108); -lean_dec(x_4); -x_110 = lean_ctor_get(x_108, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_108, 1); -lean_inc(x_111); -if (lean_is_exclusive(x_108)) { - lean_ctor_release(x_108, 0); - lean_ctor_release(x_108, 1); - x_112 = x_108; -} else { - lean_dec_ref(x_108); - x_112 = lean_box(0); -} -lean_inc(x_1); -x_113 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_113, 0, x_1); -x_114 = lean_ctor_get(x_6, 0); -lean_inc(x_114); -x_115 = lean_ctor_get(x_114, 0); -lean_inc(x_115); -x_116 = lean_ctor_get(x_114, 1); -lean_inc(x_116); -x_117 = lean_ctor_get(x_114, 2); -lean_inc(x_117); -x_118 = lean_ctor_get(x_114, 3); -lean_inc(x_118); -x_119 = lean_ctor_get(x_114, 4); -lean_inc(x_119); -x_120 = lean_ctor_get(x_114, 5); -lean_inc(x_120); -if (lean_is_exclusive(x_114)) { - lean_ctor_release(x_114, 0); - lean_ctor_release(x_114, 1); - lean_ctor_release(x_114, 2); - lean_ctor_release(x_114, 3); - lean_ctor_release(x_114, 4); - lean_ctor_release(x_114, 5); - x_121 = x_114; -} else { - lean_dec_ref(x_114); - x_121 = lean_box(0); -} -x_122 = lean_ctor_get(x_5, 0); -lean_inc(x_122); -x_123 = l_Lean_TraceState_Inhabited___closed__1; -if (lean_is_scalar(x_121)) { - x_124 = lean_alloc_ctor(0, 6, 0); -} else { - x_124 = x_121; -} -lean_ctor_set(x_124, 0, x_115); -lean_ctor_set(x_124, 1, x_116); -lean_ctor_set(x_124, 2, x_117); -lean_ctor_set(x_124, 3, x_118); -lean_ctor_set(x_124, 4, x_123); -lean_ctor_set(x_124, 5, x_120); -lean_inc(x_3); -x_125 = l___private_Lean_Meta_Basic_6__forallTelescopeReducingAux___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__2(x_3, x_111, x_113, x_122, x_124); -if (lean_obj_tag(x_125) == 0) -{ -lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; -x_126 = lean_ctor_get(x_125, 0); -lean_inc(x_126); -x_127 = lean_ctor_get(x_125, 1); -lean_inc(x_127); -lean_dec(x_125); -lean_inc(x_5); -x_128 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_5, x_6, x_127, x_119); -if (lean_is_scalar(x_112)) { - x_129 = lean_alloc_ctor(0, 2, 0); -} else { - x_129 = x_112; -} -lean_ctor_set(x_129, 0, x_110); -lean_ctor_set(x_129, 1, x_126); -x_130 = l_List_mapM___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__7(x_1, x_2, x_3, x_109, x_5, x_128); -if (lean_obj_tag(x_130) == 0) -{ -lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; -x_131 = lean_ctor_get(x_130, 0); -lean_inc(x_131); -x_132 = lean_ctor_get(x_130, 1); -lean_inc(x_132); -if (lean_is_exclusive(x_130)) { - lean_ctor_release(x_130, 0); - lean_ctor_release(x_130, 1); - x_133 = x_130; -} else { - lean_dec_ref(x_130); - x_133 = lean_box(0); -} -x_134 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_134, 0, x_129); -lean_ctor_set(x_134, 1, x_131); -if (lean_is_scalar(x_133)) { - x_135 = lean_alloc_ctor(0, 2, 0); -} else { - x_135 = x_133; -} -lean_ctor_set(x_135, 0, x_134); -lean_ctor_set(x_135, 1, x_132); -return x_135; -} -else -{ -lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; -lean_dec(x_129); -x_136 = lean_ctor_get(x_130, 0); -lean_inc(x_136); -x_137 = lean_ctor_get(x_130, 1); -lean_inc(x_137); -if (lean_is_exclusive(x_130)) { - lean_ctor_release(x_130, 0); - lean_ctor_release(x_130, 1); - x_138 = x_130; -} else { - lean_dec_ref(x_130); - x_138 = lean_box(0); -} -if (lean_is_scalar(x_138)) { - x_139 = lean_alloc_ctor(1, 2, 0); -} else { - x_139 = x_138; -} -lean_ctor_set(x_139, 0, x_136); -lean_ctor_set(x_139, 1, x_137); -return x_139; -} -} -else -{ -lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; -lean_dec(x_112); -lean_dec(x_110); -lean_dec(x_109); -lean_dec(x_3); -lean_dec(x_1); -x_140 = lean_ctor_get(x_125, 0); -lean_inc(x_140); -x_141 = lean_ctor_get(x_125, 1); -lean_inc(x_141); -if (lean_is_exclusive(x_125)) { - lean_ctor_release(x_125, 0); - lean_ctor_release(x_125, 1); - x_142 = x_125; -} else { - lean_dec_ref(x_125); - x_142 = lean_box(0); -} -lean_inc(x_5); -x_143 = l___private_Lean_Elab_Term_2__fromMetaException(x_5, x_2, x_140); -x_144 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_5, x_6, x_141, x_119); -if (lean_is_scalar(x_142)) { - x_145 = lean_alloc_ctor(1, 2, 0); -} else { - x_145 = x_142; -} -lean_ctor_set(x_145, 0, x_143); -lean_ctor_set(x_145, 1, x_144); -return x_145; -} -} -} -} -} -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__8(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: -{ -if (lean_obj_tag(x_4) == 0) -{ -lean_object* x_7; lean_object* x_8; -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_1); -x_7 = lean_box(0); -x_8 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_8, 0, x_7); -lean_ctor_set(x_8, 1, x_6); -return x_8; -} -else -{ -uint8_t x_9; -x_9 = !lean_is_exclusive(x_4); -if (x_9 == 0) -{ -lean_object* x_10; uint8_t x_11; -x_10 = lean_ctor_get(x_4, 0); -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_12 = lean_ctor_get(x_4, 1); -x_13 = lean_ctor_get(x_10, 0); -x_14 = lean_ctor_get(x_10, 1); -x_15 = lean_ctor_get(x_10, 2); -lean_inc(x_5); -lean_inc(x_3); -lean_inc(x_1); -x_16 = l_List_mapM___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__7(x_1, x_2, x_3, x_15, x_5, x_6); -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_ctor_set(x_10, 2, x_17); -x_19 = l_List_mapM___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__8(x_1, x_2, x_3, x_12, x_5, x_18); -if (lean_obj_tag(x_19) == 0) -{ -uint8_t x_20; -x_20 = !lean_is_exclusive(x_19); -if (x_20 == 0) -{ -lean_object* x_21; -x_21 = lean_ctor_get(x_19, 0); -lean_ctor_set(x_4, 1, x_21); -lean_ctor_set(x_19, 0, x_4); -return x_19; -} -else -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_19, 0); -x_23 = lean_ctor_get(x_19, 1); -lean_inc(x_23); -lean_inc(x_22); -lean_dec(x_19); -lean_ctor_set(x_4, 1, x_22); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_4); -lean_ctor_set(x_24, 1, x_23); -return x_24; -} -} -else -{ -uint8_t x_25; -lean_dec(x_10); -lean_free_object(x_4); -x_25 = !lean_is_exclusive(x_19); -if (x_25 == 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_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; -} -} -} -else -{ -uint8_t x_29; -lean_free_object(x_10); -lean_dec(x_14); -lean_dec(x_13); -lean_free_object(x_4); -lean_dec(x_12); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_1); -x_29 = !lean_is_exclusive(x_16); -if (x_29 == 0) -{ -return x_16; -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_16, 0); -x_31 = lean_ctor_get(x_16, 1); -lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_16); -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 -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_33 = lean_ctor_get(x_4, 1); -x_34 = lean_ctor_get(x_10, 0); -x_35 = lean_ctor_get(x_10, 1); -x_36 = lean_ctor_get(x_10, 2); -lean_inc(x_36); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_10); -lean_inc(x_5); -lean_inc(x_3); -lean_inc(x_1); -x_37 = l_List_mapM___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__7(x_1, x_2, x_3, x_36, x_5, x_6); -if (lean_obj_tag(x_37) == 0) -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -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_alloc_ctor(0, 3, 0); -lean_ctor_set(x_40, 0, x_34); -lean_ctor_set(x_40, 1, x_35); -lean_ctor_set(x_40, 2, x_38); -x_41 = l_List_mapM___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__8(x_1, x_2, x_3, x_33, x_5, x_39); -if (lean_obj_tag(x_41) == 0) -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_42 = lean_ctor_get(x_41, 0); -lean_inc(x_42); -x_43 = lean_ctor_get(x_41, 1); -lean_inc(x_43); -if (lean_is_exclusive(x_41)) { - lean_ctor_release(x_41, 0); - lean_ctor_release(x_41, 1); - x_44 = x_41; -} else { - lean_dec_ref(x_41); - x_44 = lean_box(0); -} -lean_ctor_set(x_4, 1, x_42); -lean_ctor_set(x_4, 0, x_40); -if (lean_is_scalar(x_44)) { - x_45 = lean_alloc_ctor(0, 2, 0); -} else { - x_45 = x_44; -} -lean_ctor_set(x_45, 0, x_4); -lean_ctor_set(x_45, 1, x_43); -return x_45; -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -lean_dec(x_40); -lean_free_object(x_4); -x_46 = lean_ctor_get(x_41, 0); -lean_inc(x_46); -x_47 = lean_ctor_get(x_41, 1); -lean_inc(x_47); -if (lean_is_exclusive(x_41)) { - lean_ctor_release(x_41, 0); - lean_ctor_release(x_41, 1); - x_48 = x_41; -} else { - lean_dec_ref(x_41); - x_48 = lean_box(0); -} -if (lean_is_scalar(x_48)) { - x_49 = lean_alloc_ctor(1, 2, 0); -} else { - x_49 = x_48; -} -lean_ctor_set(x_49, 0, x_46); -lean_ctor_set(x_49, 1, x_47); -return x_49; -} -} -else -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; -lean_dec(x_35); -lean_dec(x_34); -lean_free_object(x_4); -lean_dec(x_33); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_1); -x_50 = lean_ctor_get(x_37, 0); -lean_inc(x_50); -x_51 = lean_ctor_get(x_37, 1); -lean_inc(x_51); -if (lean_is_exclusive(x_37)) { - lean_ctor_release(x_37, 0); - lean_ctor_release(x_37, 1); - x_52 = x_37; -} else { - lean_dec_ref(x_37); - x_52 = lean_box(0); -} -if (lean_is_scalar(x_52)) { - x_53 = lean_alloc_ctor(1, 2, 0); -} else { - x_53 = x_52; -} -lean_ctor_set(x_53, 0, x_50); -lean_ctor_set(x_53, 1, x_51); -return x_53; -} -} -} -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; lean_object* x_60; -x_54 = lean_ctor_get(x_4, 0); -x_55 = lean_ctor_get(x_4, 1); -lean_inc(x_55); -lean_inc(x_54); -lean_dec(x_4); -x_56 = lean_ctor_get(x_54, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_54, 1); -lean_inc(x_57); -x_58 = lean_ctor_get(x_54, 2); -lean_inc(x_58); -if (lean_is_exclusive(x_54)) { - lean_ctor_release(x_54, 0); - lean_ctor_release(x_54, 1); - lean_ctor_release(x_54, 2); - x_59 = x_54; -} else { - lean_dec_ref(x_54); - x_59 = lean_box(0); -} -lean_inc(x_5); -lean_inc(x_3); -lean_inc(x_1); -x_60 = l_List_mapM___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__7(x_1, x_2, x_3, x_58, x_5, x_6); -if (lean_obj_tag(x_60) == 0) -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; -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); -if (lean_is_scalar(x_59)) { - x_63 = lean_alloc_ctor(0, 3, 0); -} else { - x_63 = x_59; -} -lean_ctor_set(x_63, 0, x_56); -lean_ctor_set(x_63, 1, x_57); -lean_ctor_set(x_63, 2, x_61); -x_64 = l_List_mapM___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__8(x_1, x_2, x_3, x_55, x_5, x_62); -if (lean_obj_tag(x_64) == 0) -{ -lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_65 = lean_ctor_get(x_64, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_64, 1); -lean_inc(x_66); -if (lean_is_exclusive(x_64)) { - lean_ctor_release(x_64, 0); - lean_ctor_release(x_64, 1); - x_67 = x_64; -} else { - lean_dec_ref(x_64); - x_67 = lean_box(0); -} -x_68 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_68, 0, x_63); -lean_ctor_set(x_68, 1, x_65); -if (lean_is_scalar(x_67)) { - x_69 = lean_alloc_ctor(0, 2, 0); -} else { - x_69 = x_67; -} -lean_ctor_set(x_69, 0, x_68); -lean_ctor_set(x_69, 1, x_66); -return x_69; -} -else -{ -lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; -lean_dec(x_63); -x_70 = lean_ctor_get(x_64, 0); -lean_inc(x_70); -x_71 = lean_ctor_get(x_64, 1); -lean_inc(x_71); -if (lean_is_exclusive(x_64)) { - lean_ctor_release(x_64, 0); - lean_ctor_release(x_64, 1); - x_72 = x_64; -} else { - lean_dec_ref(x_64); - x_72 = lean_box(0); -} -if (lean_is_scalar(x_72)) { - x_73 = lean_alloc_ctor(1, 2, 0); -} else { - x_73 = x_72; -} -lean_ctor_set(x_73, 0, x_70); -lean_ctor_set(x_73, 1, x_71); -return x_73; -} -} -else -{ -lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; -lean_dec(x_59); -lean_dec(x_57); +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +lean_dec(x_58); lean_dec(x_56); lean_dec(x_55); -lean_dec(x_5); -lean_dec(x_3); +lean_dec(x_54); +lean_dec(x_4); +lean_dec(x_2); lean_dec(x_1); -x_74 = lean_ctor_get(x_60, 0); +x_73 = lean_ctor_get(x_59, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_59, 1); lean_inc(x_74); -x_75 = lean_ctor_get(x_60, 1); -lean_inc(x_75); -if (lean_is_exclusive(x_60)) { - lean_ctor_release(x_60, 0); - lean_ctor_release(x_60, 1); - x_76 = x_60; +if (lean_is_exclusive(x_59)) { + lean_ctor_release(x_59, 0); + lean_ctor_release(x_59, 1); + x_75 = x_59; } else { - lean_dec_ref(x_60); - x_76 = lean_box(0); + lean_dec_ref(x_59); + x_75 = lean_box(0); } -if (lean_is_scalar(x_76)) { - x_77 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_75)) { + x_76 = lean_alloc_ctor(1, 2, 0); } else { - x_77 = x_76; + x_76 = x_75; } -lean_ctor_set(x_77, 0, x_74); -lean_ctor_set(x_77, 1, x_75); -return x_77; +lean_ctor_set(x_76, 0, x_73); +lean_ctor_set(x_76, 1, x_74); +return x_76; } } } @@ -17658,7 +18065,7 @@ return x_77; lean_object* l___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts(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; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; x_8 = l_Lean_Elab_Command_InductiveView_inhabited; x_9 = lean_unsigned_to_nat(0u); x_10 = lean_array_get(x_8, x_1, x_9); @@ -17666,9 +18073,61 @@ x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); lean_dec(x_10); x_12 = l___private_Lean_Elab_Inductive_29__mkIndFVar2Const(x_1, x_2, x_3); -x_13 = l_List_mapM___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__8(x_4, x_11, x_12, x_5, x_6, x_7); -lean_dec(x_11); -return x_13; +x_13 = !lean_is_exclusive(x_6); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_6, 10); +lean_dec(x_14); +lean_ctor_set(x_6, 10, x_11); +x_15 = l_List_mapM___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__8(x_4, x_12, x_5, x_6, x_7); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; uint8_t x_27; uint8_t x_28; lean_object* x_29; lean_object* x_30; +x_16 = lean_ctor_get(x_6, 0); +x_17 = lean_ctor_get(x_6, 1); +x_18 = lean_ctor_get(x_6, 2); +x_19 = lean_ctor_get(x_6, 3); +x_20 = lean_ctor_get(x_6, 4); +x_21 = lean_ctor_get(x_6, 5); +x_22 = lean_ctor_get(x_6, 6); +x_23 = lean_ctor_get(x_6, 7); +x_24 = lean_ctor_get(x_6, 8); +x_25 = lean_ctor_get(x_6, 9); +x_26 = lean_ctor_get_uint8(x_6, sizeof(void*)*11); +x_27 = lean_ctor_get_uint8(x_6, sizeof(void*)*11 + 1); +x_28 = lean_ctor_get_uint8(x_6, sizeof(void*)*11 + 2); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_6); +x_29 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_29, 0, x_16); +lean_ctor_set(x_29, 1, x_17); +lean_ctor_set(x_29, 2, x_18); +lean_ctor_set(x_29, 3, x_19); +lean_ctor_set(x_29, 4, x_20); +lean_ctor_set(x_29, 5, x_21); +lean_ctor_set(x_29, 6, x_22); +lean_ctor_set(x_29, 7, x_23); +lean_ctor_set(x_29, 8, x_24); +lean_ctor_set(x_29, 9, x_25); +lean_ctor_set(x_29, 10, x_11); +lean_ctor_set_uint8(x_29, sizeof(void*)*11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*11 + 1, x_27); +lean_ctor_set_uint8(x_29, sizeof(void*)*11 + 2, x_28); +x_30 = l_List_mapM___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__8(x_4, x_12, x_5, x_29, x_7); +return x_30; +} } } lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { @@ -17736,24 +18195,6 @@ x_11 = l___private_Lean_Meta_Basic_5__forallTelescopeReducingAuxAux___main___at_ return x_11; } } -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__7___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_List_mapM___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__7(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_2); -return x_7; -} -} -lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___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) { -_start: -{ -lean_object* x_7; -x_7 = l_List_mapM___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__8(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_2); -return x_7; -} -} lean_object* l___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___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: { @@ -18283,615 +18724,601 @@ lean_dec(x_1); return x_4; } } -lean_object* l_Nat_foldMAux___main___at___private_Lean_Elab_Inductive_33__mkInductiveDecl___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) { +lean_object* l_Nat_foldMAux___main___at___private_Lean_Elab_Inductive_33__mkInductiveDecl___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) { _start: { -lean_object* x_10; uint8_t x_11; -x_10 = lean_unsigned_to_nat(0u); -x_11 = lean_nat_dec_eq(x_6, x_10); -if (x_11 == 0) +lean_object* x_9; uint8_t x_10; +x_9 = lean_unsigned_to_nat(0u); +x_10 = lean_nat_dec_eq(x_5, x_9); +if (x_10 == 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; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_sub(x_6, x_12); -lean_dec(x_6); -x_14 = lean_nat_sub(x_5, x_13); -x_15 = lean_nat_sub(x_14, 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; lean_object* x_20; +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_sub(x_5, x_11); +lean_dec(x_5); +x_13 = lean_nat_sub(x_4, x_12); +x_14 = lean_nat_sub(x_13, x_11); +lean_dec(x_13); +x_15 = l_Lean_Expr_Inhabited; +x_16 = lean_array_get(x_15, x_3, x_14); +x_17 = l_Lean_Elab_Command_ElabHeaderResult_inhabited; +x_18 = lean_array_get(x_17, x_1, x_14); lean_dec(x_14); -x_16 = l_Lean_Expr_Inhabited; -x_17 = lean_array_get(x_16, x_4, x_15); -x_18 = l_Lean_Elab_Command_ElabHeaderResult_inhabited; -x_19 = lean_array_get(x_18, x_2, x_15); -lean_dec(x_15); -x_20 = lean_ctor_get(x_19, 4); -lean_inc(x_20); -lean_inc(x_8); -lean_inc(x_3); -x_21 = l_Lean_Elab_Term_mkForall(x_1, x_3, x_20, x_8, x_9); -if (lean_obj_tag(x_21) == 0) -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; -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); -lean_inc(x_8); -lean_inc(x_3); -x_24 = l___private_Lean_Elab_Inductive_16__elabCtors(x_17, x_3, x_19, x_8, x_23); -if (lean_obj_tag(x_24) == 0) -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); -lean_dec(x_24); -x_27 = lean_ctor_get(x_19, 0); -lean_inc(x_27); -lean_dec(x_19); -x_28 = lean_ctor_get(x_27, 3); -lean_inc(x_28); -lean_dec(x_27); -x_29 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_29, 0, x_28); -lean_ctor_set(x_29, 1, x_22); -lean_ctor_set(x_29, 2, x_25); -x_30 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_7); -x_6 = x_13; -x_7 = x_30; -x_9 = x_26; -goto _start; -} -else -{ -uint8_t x_32; -lean_dec(x_22); -lean_dec(x_19); -lean_dec(x_13); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_3); -x_32 = !lean_is_exclusive(x_24); -if (x_32 == 0) -{ -return x_24; -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_24, 0); -x_34 = lean_ctor_get(x_24, 1); -lean_inc(x_34); -lean_inc(x_33); -lean_dec(x_24); -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; -lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_13); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_3); -x_36 = !lean_is_exclusive(x_21); -if (x_36 == 0) -{ -return x_21; -} -else -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_21, 0); -x_38 = lean_ctor_get(x_21, 1); -lean_inc(x_38); -lean_inc(x_37); -lean_dec(x_21); -x_39 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_39, 0, x_37); -lean_ctor_set(x_39, 1, x_38); -return x_39; -} -} -} -else -{ -lean_object* x_40; -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_3); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_7); -lean_ctor_set(x_40, 1, x_9); -return x_40; -} -} -} -lean_object* l___private_Lean_Elab_Inductive_33__mkInductiveDecl___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, uint8_t 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; -x_13 = lean_array_get_size(x_10); -x_14 = lean_nat_add(x_13, x_1); -lean_dec(x_13); -lean_inc(x_11); -x_15 = l_List_mapM___main___at___private_Lean_Elab_Inductive_27__updateParams___spec__2(x_2, x_10, x_3, x_11, x_12); -if (lean_obj_tag(x_15) == 0) -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); -lean_inc(x_17); -lean_dec(x_15); -lean_inc(x_11); -x_18 = l___private_Lean_Elab_Inductive_18__levelMVarToParam___rarg(x_16, x_11, x_17); -if (x_4 == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_18, 0); +x_19 = lean_ctor_get(x_18, 4); lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); -lean_inc(x_20); -lean_dec(x_18); -lean_inc(x_19); -x_21 = l___private_Lean_Elab_Inductive_28__collectLevelParamsInInductive(x_19); -x_22 = l_Lean_Elab_Command_sortDeclLevelParams(x_5, x_6, x_21); -if (lean_obj_tag(x_22) == 0) -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -lean_dec(x_19); -lean_dec(x_14); -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -lean_dec(x_22); -x_24 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_24, 0, x_23); -x_25 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_25, 0, x_24); -x_26 = l_Lean_Elab_Term_throwError___rarg(x_2, x_25, x_11, x_20); -lean_dec(x_2); -return x_26; -} -else -{ -lean_object* x_27; lean_object* x_28; -lean_dec(x_2); -x_27 = lean_ctor_get(x_22, 0); -lean_inc(x_27); -lean_dec(x_22); -lean_inc(x_14); -lean_inc(x_27); -x_28 = l___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts(x_7, x_8, x_27, x_14, x_19, x_11, x_20); -if (lean_obj_tag(x_28) == 0) -{ -uint8_t x_29; -x_29 = !lean_is_exclusive(x_28); -if (x_29 == 0) -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_28, 0); -x_31 = l___private_Lean_Elab_Inductive_32__applyInferMod(x_7, x_14, x_30); -x_32 = lean_alloc_ctor(6, 3, 1); -lean_ctor_set(x_32, 0, x_27); -lean_ctor_set(x_32, 1, x_14); -lean_ctor_set(x_32, 2, x_31); -lean_ctor_set_uint8(x_32, sizeof(void*)*3, x_9); -lean_ctor_set(x_28, 0, x_32); -return x_28; -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -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 = l___private_Lean_Elab_Inductive_32__applyInferMod(x_7, x_14, x_33); -x_36 = lean_alloc_ctor(6, 3, 1); -lean_ctor_set(x_36, 0, x_27); -lean_ctor_set(x_36, 1, x_14); -lean_ctor_set(x_36, 2, x_35); -lean_ctor_set_uint8(x_36, sizeof(void*)*3, x_9); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_34); -return x_37; -} -} -else -{ -uint8_t x_38; -lean_dec(x_27); -lean_dec(x_14); -x_38 = !lean_is_exclusive(x_28); -if (x_38 == 0) -{ -return x_28; -} -else -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_28, 0); -x_40 = lean_ctor_get(x_28, 1); -lean_inc(x_40); -lean_inc(x_39); -lean_dec(x_28); -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 -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_18, 0); -lean_inc(x_42); -x_43 = lean_ctor_get(x_18, 1); -lean_inc(x_43); -lean_dec(x_18); -lean_inc(x_11); +lean_inc(x_7); lean_inc(x_2); -x_44 = l___private_Lean_Elab_Inductive_23__updateResultingUniverse(x_2, x_14, x_42, x_11, x_43); -if (lean_obj_tag(x_44) == 0) +x_20 = l_Lean_Elab_Term_mkForall(x_2, x_19, x_7, x_8); +if (lean_obj_tag(x_20) == 0) { -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -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); -lean_inc(x_45); -x_47 = l___private_Lean_Elab_Inductive_28__collectLevelParamsInInductive(x_45); -x_48 = l_Lean_Elab_Command_sortDeclLevelParams(x_5, x_6, x_47); -if (lean_obj_tag(x_48) == 0) -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -lean_dec(x_45); -lean_dec(x_14); -x_49 = lean_ctor_get(x_48, 0); -lean_inc(x_49); -lean_dec(x_48); -x_50 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_50, 0, x_49); -x_51 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_51, 0, x_50); -x_52 = l_Lean_Elab_Term_throwError___rarg(x_2, x_51, x_11, x_46); -lean_dec(x_2); -return x_52; -} -else -{ -lean_object* x_53; lean_object* x_54; -lean_dec(x_2); -x_53 = lean_ctor_get(x_48, 0); -lean_inc(x_53); -lean_dec(x_48); -lean_inc(x_14); -lean_inc(x_53); -x_54 = l___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts(x_7, x_8, x_53, x_14, x_45, x_11, x_46); -if (lean_obj_tag(x_54) == 0) -{ -uint8_t x_55; -x_55 = !lean_is_exclusive(x_54); -if (x_55 == 0) -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_54, 0); -x_57 = l___private_Lean_Elab_Inductive_32__applyInferMod(x_7, x_14, x_56); -x_58 = lean_alloc_ctor(6, 3, 1); -lean_ctor_set(x_58, 0, x_53); -lean_ctor_set(x_58, 1, x_14); -lean_ctor_set(x_58, 2, x_57); -lean_ctor_set_uint8(x_58, sizeof(void*)*3, x_9); -lean_ctor_set(x_54, 0, x_58); -return x_54; -} -else -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_59 = lean_ctor_get(x_54, 0); -x_60 = lean_ctor_get(x_54, 1); -lean_inc(x_60); -lean_inc(x_59); -lean_dec(x_54); -x_61 = l___private_Lean_Elab_Inductive_32__applyInferMod(x_7, x_14, x_59); -x_62 = lean_alloc_ctor(6, 3, 1); -lean_ctor_set(x_62, 0, x_53); -lean_ctor_set(x_62, 1, x_14); -lean_ctor_set(x_62, 2, x_61); -lean_ctor_set_uint8(x_62, sizeof(void*)*3, x_9); -x_63 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_63, 0, x_62); -lean_ctor_set(x_63, 1, x_60); -return x_63; -} -} -else -{ -uint8_t x_64; -lean_dec(x_53); -lean_dec(x_14); -x_64 = !lean_is_exclusive(x_54); -if (x_64 == 0) -{ -return x_54; -} -else -{ -lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_65 = lean_ctor_get(x_54, 0); -x_66 = lean_ctor_get(x_54, 1); -lean_inc(x_66); -lean_inc(x_65); -lean_dec(x_54); -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_14); -lean_dec(x_11); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_2); -x_68 = !lean_is_exclusive(x_44); -if (x_68 == 0) -{ -return x_44; -} -else -{ -lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_69 = lean_ctor_get(x_44, 0); -x_70 = lean_ctor_get(x_44, 1); -lean_inc(x_70); -lean_inc(x_69); -lean_dec(x_44); -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 -{ -uint8_t x_72; -lean_dec(x_14); -lean_dec(x_11); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_2); -x_72 = !lean_is_exclusive(x_15); -if (x_72 == 0) -{ -return x_15; -} -else -{ -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_15, 0); -x_74 = lean_ctor_get(x_15, 1); -lean_inc(x_74); -lean_inc(x_73); -lean_dec(x_15); -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; -} -} -} -} -lean_object* l___private_Lean_Elab_Inductive_33__mkInductiveDecl___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_12 = lean_array_get_size(x_8); -x_13 = lean_box(0); -x_14 = lean_array_get_size(x_1); -lean_inc(x_10); -lean_inc(x_14); -x_15 = l_Nat_foldMAux___main___at___private_Lean_Elab_Inductive_33__mkInductiveDecl___spec__1(x_2, x_3, x_8, x_9, x_14, x_14, x_13, x_10, x_11); -lean_dec(x_14); -if (lean_obj_tag(x_15) == 0) -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); -lean_inc(x_17); -lean_dec(x_15); -x_18 = l_List_reverse___rarg(x_16); -x_19 = 0; -x_20 = lean_box(0); -lean_inc(x_10); -x_21 = l___private_Lean_Elab_SyntheticMVars_11__synthesizeSyntheticMVarsAux___main(x_19, x_20, x_10, x_17); -if (lean_obj_tag(x_21) == 0) -{ -lean_object* x_22; lean_object* x_23; -x_22 = lean_ctor_get(x_21, 1); +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_20, 1); lean_inc(x_22); -lean_dec(x_21); -lean_inc(x_10); -lean_inc(x_18); -x_23 = l___private_Lean_Elab_Inductive_19__getResultingUniverse(x_2, x_18, x_10, x_22); +lean_dec(x_20); +lean_inc(x_7); +lean_inc(x_2); +x_23 = l___private_Lean_Elab_Inductive_16__elabCtors(x_16, x_2, x_18, x_7, x_22); if (lean_obj_tag(x_23) == 0) { -lean_object* x_24; lean_object* x_25; lean_object* x_26; +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_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); -x_26 = l_Lean_Elab_Command_shouldInferResultUniverse(x_2, x_24, x_10, x_25); -if (lean_obj_tag(x_26) == 0) -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_27 = lean_ctor_get(x_26, 0); +x_26 = lean_ctor_get(x_18, 0); +lean_inc(x_26); +lean_dec(x_18); +x_27 = lean_ctor_get(x_26, 3); lean_inc(x_27); -x_28 = lean_ctor_get(x_26, 1); -lean_inc(x_28); lean_dec(x_26); -x_29 = lean_box(x_6); -lean_inc(x_18); -lean_inc(x_2); -x_30 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_33__mkInductiveDecl___lambda__1___boxed), 12, 9); -lean_closure_set(x_30, 0, x_12); -lean_closure_set(x_30, 1, x_2); -lean_closure_set(x_30, 2, x_18); -lean_closure_set(x_30, 3, x_27); -lean_closure_set(x_30, 4, x_4); -lean_closure_set(x_30, 5, x_5); -lean_closure_set(x_30, 6, x_1); -lean_closure_set(x_30, 7, x_9); -lean_closure_set(x_30, 8, x_29); -x_31 = l___private_Lean_Elab_Inductive_26__withUsed___rarg(x_2, x_7, x_18, x_30, x_10, x_28); -lean_dec(x_2); -return x_31; +x_28 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_21); +lean_ctor_set(x_28, 2, x_24); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_6); +x_5 = x_12; +x_6 = x_29; +x_8 = x_25; +goto _start; } else { -uint8_t x_32; +uint8_t x_31; +lean_dec(x_21); lean_dec(x_18); lean_dec(x_12); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_4); +lean_dec(x_7); +lean_dec(x_6); lean_dec(x_2); -lean_dec(x_1); -x_32 = !lean_is_exclusive(x_26); -if (x_32 == 0) -{ -return x_26; -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_26, 0); -x_34 = lean_ctor_get(x_26, 1); -lean_inc(x_34); -lean_inc(x_33); -lean_dec(x_26); -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; -lean_dec(x_18); -lean_dec(x_12); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_36 = !lean_is_exclusive(x_23); -if (x_36 == 0) +x_31 = !lean_is_exclusive(x_23); +if (x_31 == 0) { return x_23; } else { -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_23, 0); -x_38 = lean_ctor_get(x_23, 1); -lean_inc(x_38); -lean_inc(x_37); +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_23, 0); +x_33 = lean_ctor_get(x_23, 1); +lean_inc(x_33); +lean_inc(x_32); lean_dec(x_23); -x_39 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_39, 0, x_37); -lean_ctor_set(x_39, 1, x_38); +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; +} +} +} +else +{ +uint8_t x_35; +lean_dec(x_18); +lean_dec(x_16); +lean_dec(x_12); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +x_35 = !lean_is_exclusive(x_20); +if (x_35 == 0) +{ +return x_20; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_20, 0); +x_37 = lean_ctor_get(x_20, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_20); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +return x_38; +} +} +} +else +{ +lean_object* x_39; +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_2); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_6); +lean_ctor_set(x_39, 1, x_8); return x_39; } } } +lean_object* l___private_Lean_Elab_Inductive_33__mkInductiveDecl___lambda__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, uint8_t x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_array_get_size(x_9); +x_13 = lean_nat_add(x_12, x_1); +lean_dec(x_12); +lean_inc(x_10); +x_14 = l_List_mapM___main___at___private_Lean_Elab_Inductive_27__updateParams___spec__2(x_9, x_2, x_10, x_11); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +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); +lean_inc(x_10); +x_17 = l___private_Lean_Elab_Inductive_18__levelMVarToParam(x_15, x_10, x_16); +if (x_3 == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +lean_inc(x_18); +x_20 = l___private_Lean_Elab_Inductive_28__collectLevelParamsInInductive(x_18); +x_21 = l_Lean_Elab_Command_sortDeclLevelParams(x_4, x_5, x_20); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_dec(x_18); +lean_dec(x_13); +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +lean_dec(x_21); +x_23 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_23, 0, x_22); +x_24 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_24, 0, x_23); +x_25 = l_Lean_Elab_Term_throwError___rarg(x_24, x_10, x_19); +return x_25; +} else { -uint8_t x_40; -lean_dec(x_18); -lean_dec(x_12); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_40 = !lean_is_exclusive(x_21); -if (x_40 == 0) +lean_object* x_26; lean_object* x_27; +x_26 = lean_ctor_get(x_21, 0); +lean_inc(x_26); +lean_dec(x_21); +lean_inc(x_13); +lean_inc(x_26); +x_27 = l___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts(x_6, x_7, x_26, x_13, x_18, x_10, x_19); +if (lean_obj_tag(x_27) == 0) { -return x_21; +uint8_t x_28; +x_28 = !lean_is_exclusive(x_27); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_27, 0); +x_30 = l___private_Lean_Elab_Inductive_32__applyInferMod(x_6, x_13, x_29); +x_31 = lean_alloc_ctor(6, 3, 1); +lean_ctor_set(x_31, 0, x_26); +lean_ctor_set(x_31, 1, x_13); +lean_ctor_set(x_31, 2, x_30); +lean_ctor_set_uint8(x_31, sizeof(void*)*3, x_8); +lean_ctor_set(x_27, 0, x_31); +return x_27; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_32 = lean_ctor_get(x_27, 0); +x_33 = lean_ctor_get(x_27, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_27); +x_34 = l___private_Lean_Elab_Inductive_32__applyInferMod(x_6, x_13, x_32); +x_35 = lean_alloc_ctor(6, 3, 1); +lean_ctor_set(x_35, 0, x_26); +lean_ctor_set(x_35, 1, x_13); +lean_ctor_set(x_35, 2, x_34); +lean_ctor_set_uint8(x_35, sizeof(void*)*3, x_8); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_33); +return x_36; +} +} +else +{ +uint8_t x_37; +lean_dec(x_26); +lean_dec(x_13); +x_37 = !lean_is_exclusive(x_27); +if (x_37 == 0) +{ +return x_27; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_27, 0); +x_39 = lean_ctor_get(x_27, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_27); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; +} +} +} } else { lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_21, 0); -x_42 = lean_ctor_get(x_21, 1); -lean_inc(x_42); +x_41 = lean_ctor_get(x_17, 0); lean_inc(x_41); -lean_dec(x_21); -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; +x_42 = lean_ctor_get(x_17, 1); +lean_inc(x_42); +lean_dec(x_17); +lean_inc(x_10); +x_43 = l___private_Lean_Elab_Inductive_23__updateResultingUniverse(x_13, x_41, x_10, x_42); +if (lean_obj_tag(x_43) == 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_inc(x_45); +lean_dec(x_43); +lean_inc(x_44); +x_46 = l___private_Lean_Elab_Inductive_28__collectLevelParamsInInductive(x_44); +x_47 = l_Lean_Elab_Command_sortDeclLevelParams(x_4, x_5, x_46); +if (lean_obj_tag(x_47) == 0) +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +lean_dec(x_44); +lean_dec(x_13); +x_48 = lean_ctor_get(x_47, 0); +lean_inc(x_48); +lean_dec(x_47); +x_49 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_49, 0, x_48); +x_50 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_50, 0, x_49); +x_51 = l_Lean_Elab_Term_throwError___rarg(x_50, x_10, x_45); +return x_51; +} +else +{ +lean_object* x_52; lean_object* x_53; +x_52 = lean_ctor_get(x_47, 0); +lean_inc(x_52); +lean_dec(x_47); +lean_inc(x_13); +lean_inc(x_52); +x_53 = l___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts(x_6, x_7, x_52, x_13, x_44, x_10, x_45); +if (lean_obj_tag(x_53) == 0) +{ +uint8_t x_54; +x_54 = !lean_is_exclusive(x_53); +if (x_54 == 0) +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_53, 0); +x_56 = l___private_Lean_Elab_Inductive_32__applyInferMod(x_6, x_13, x_55); +x_57 = lean_alloc_ctor(6, 3, 1); +lean_ctor_set(x_57, 0, x_52); +lean_ctor_set(x_57, 1, x_13); +lean_ctor_set(x_57, 2, x_56); +lean_ctor_set_uint8(x_57, sizeof(void*)*3, x_8); +lean_ctor_set(x_53, 0, x_57); +return x_53; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_58 = lean_ctor_get(x_53, 0); +x_59 = lean_ctor_get(x_53, 1); +lean_inc(x_59); +lean_inc(x_58); +lean_dec(x_53); +x_60 = l___private_Lean_Elab_Inductive_32__applyInferMod(x_6, x_13, x_58); +x_61 = lean_alloc_ctor(6, 3, 1); +lean_ctor_set(x_61, 0, x_52); +lean_ctor_set(x_61, 1, x_13); +lean_ctor_set(x_61, 2, x_60); +lean_ctor_set_uint8(x_61, sizeof(void*)*3, x_8); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_59); +return x_62; +} +} +else +{ +uint8_t x_63; +lean_dec(x_52); +lean_dec(x_13); +x_63 = !lean_is_exclusive(x_53); +if (x_63 == 0) +{ +return x_53; +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_53, 0); +x_65 = lean_ctor_get(x_53, 1); +lean_inc(x_65); +lean_inc(x_64); +lean_dec(x_53); +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_44; -lean_dec(x_12); +uint8_t x_67; +lean_dec(x_13); lean_dec(x_10); -lean_dec(x_9); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_44 = !lean_is_exclusive(x_15); -if (x_44 == 0) +x_67 = !lean_is_exclusive(x_43); +if (x_67 == 0) { -return x_15; +return x_43; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_15, 0); -x_46 = lean_ctor_get(x_15, 1); -lean_inc(x_46); +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_43, 0); +x_69 = lean_ctor_get(x_43, 1); +lean_inc(x_69); +lean_inc(x_68); +lean_dec(x_43); +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; +} +} +} +} +else +{ +uint8_t x_71; +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_5); +lean_dec(x_4); +x_71 = !lean_is_exclusive(x_14); +if (x_71 == 0) +{ +return x_14; +} +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_72 = lean_ctor_get(x_14, 0); +x_73 = lean_ctor_get(x_14, 1); +lean_inc(x_73); +lean_inc(x_72); +lean_dec(x_14); +x_74 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_74, 0, x_72); +lean_ctor_set(x_74, 1, x_73); +return x_74; +} +} +} +} +lean_object* l___private_Lean_Elab_Inductive_33__mkInductiveDecl___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = lean_array_get_size(x_7); +x_12 = lean_box(0); +x_13 = lean_array_get_size(x_1); +lean_inc(x_9); +lean_inc(x_13); +x_14 = l_Nat_foldMAux___main___at___private_Lean_Elab_Inductive_33__mkInductiveDecl___spec__1(x_2, x_7, x_8, x_13, x_13, x_12, x_9, x_10); +lean_dec(x_13); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; +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 = l_List_reverse___rarg(x_15); +x_18 = 0; +x_19 = lean_box(0); +lean_inc(x_9); +x_20 = l___private_Lean_Elab_SyntheticMVars_11__synthesizeSyntheticMVarsAux___main(x_18, x_19, x_9, x_16); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec(x_20); +lean_inc(x_9); +lean_inc(x_17); +x_22 = l___private_Lean_Elab_Inductive_19__getResultingUniverse(x_17, x_9, x_21); +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +lean_inc(x_9); +x_25 = l_Lean_Elab_Command_shouldInferResultUniverse(x_23, x_9, x_24); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +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); +x_28 = lean_box(x_5); +lean_inc(x_17); +x_29 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_33__mkInductiveDecl___lambda__1___boxed), 11, 8); +lean_closure_set(x_29, 0, x_11); +lean_closure_set(x_29, 1, x_17); +lean_closure_set(x_29, 2, x_26); +lean_closure_set(x_29, 3, x_3); +lean_closure_set(x_29, 4, x_4); +lean_closure_set(x_29, 5, x_1); +lean_closure_set(x_29, 6, x_8); +lean_closure_set(x_29, 7, x_28); +x_30 = l___private_Lean_Elab_Inductive_26__withUsed___rarg(x_6, x_17, x_29, x_9, x_27); +return x_30; +} +else +{ +uint8_t x_31; +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_31 = !lean_is_exclusive(x_25); +if (x_31 == 0) +{ +return x_25; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_25, 0); +x_33 = lean_ctor_get(x_25, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_25); +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; +} +} +} +else +{ +uint8_t x_35; +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_35 = !lean_is_exclusive(x_22); +if (x_35 == 0) +{ +return x_22; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_22, 0); +x_37 = lean_ctor_get(x_22, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_22); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +return x_38; +} +} +} +else +{ +uint8_t x_39; +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_39 = !lean_is_exclusive(x_20); +if (x_39 == 0) +{ +return x_20; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_20, 0); +x_41 = lean_ctor_get(x_20, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_20); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; +} +} +} +else +{ +uint8_t x_43; +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_43 = !lean_is_exclusive(x_14); +if (x_43 == 0) +{ +return x_14; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_14, 0); +x_45 = lean_ctor_get(x_14, 1); lean_inc(x_45); -lean_dec(x_15); -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; +lean_inc(x_44); +lean_dec(x_14); +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; } } } @@ -18929,79 +19356,81 @@ lean_dec(x_15); x_17 = !lean_is_exclusive(x_3); if (x_17 == 0) { -lean_object* x_18; lean_object* x_19; -x_18 = lean_ctor_get(x_3, 6); +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_3, 10); lean_dec(x_18); +x_19 = lean_ctor_get(x_3, 6); +lean_dec(x_19); lean_inc(x_11); +lean_ctor_set(x_3, 10, x_14); lean_ctor_set(x_3, 6, x_11); lean_inc(x_3); lean_inc(x_2); -x_19 = l___private_Lean_Elab_Inductive_12__elabHeader(x_2, x_3, x_16); -if (lean_obj_tag(x_19) == 0) +x_20 = l___private_Lean_Elab_Inductive_12__elabHeader(x_2, x_3, x_16); +if (lean_obj_tag(x_20) == 0) { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_19, 1); +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_21 = lean_ctor_get(x_20, 0); lean_inc(x_21); -lean_dec(x_19); -x_22 = lean_box(x_13); -lean_inc(x_20); -x_23 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_33__mkInductiveDecl___lambda__2___boxed), 11, 7); -lean_closure_set(x_23, 0, x_2); -lean_closure_set(x_23, 1, x_14); -lean_closure_set(x_23, 2, x_20); -lean_closure_set(x_23, 3, x_9); -lean_closure_set(x_23, 4, x_11); -lean_closure_set(x_23, 5, x_22); -lean_closure_set(x_23, 6, x_1); -x_24 = l___private_Lean_Elab_Inductive_14__withInductiveLocalDecls___rarg(x_20, x_23, x_3, x_21); -return x_24; +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +lean_dec(x_20); +x_23 = lean_box(x_13); +lean_inc(x_21); +x_24 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_33__mkInductiveDecl___lambda__2___boxed), 10, 6); +lean_closure_set(x_24, 0, x_2); +lean_closure_set(x_24, 1, x_21); +lean_closure_set(x_24, 2, x_9); +lean_closure_set(x_24, 3, x_11); +lean_closure_set(x_24, 4, x_23); +lean_closure_set(x_24, 5, x_1); +x_25 = l___private_Lean_Elab_Inductive_14__withInductiveLocalDecls___rarg(x_21, x_24, x_3, x_22); +return x_25; } else { -uint8_t x_25; +uint8_t x_26; lean_dec(x_3); -lean_dec(x_14); lean_dec(x_11); lean_dec(x_9); lean_dec(x_2); lean_dec(x_1); -x_25 = !lean_is_exclusive(x_19); -if (x_25 == 0) +x_26 = !lean_is_exclusive(x_20); +if (x_26 == 0) { -return x_19; +return x_20; } 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_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_20, 0); +x_28 = lean_ctor_get(x_20, 1); +lean_inc(x_28); lean_inc(x_27); -lean_inc(x_26); -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; +lean_dec(x_20); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +return x_29; } } } else { -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; uint8_t x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; -x_29 = lean_ctor_get(x_3, 0); -x_30 = lean_ctor_get(x_3, 1); -x_31 = lean_ctor_get(x_3, 2); -x_32 = lean_ctor_get(x_3, 3); -x_33 = lean_ctor_get(x_3, 4); -x_34 = lean_ctor_get(x_3, 5); -x_35 = lean_ctor_get(x_3, 7); -x_36 = lean_ctor_get(x_3, 8); -x_37 = lean_ctor_get(x_3, 9); -x_38 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); -x_39 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); -x_40 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; uint8_t x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; +x_30 = lean_ctor_get(x_3, 0); +x_31 = lean_ctor_get(x_3, 1); +x_32 = lean_ctor_get(x_3, 2); +x_33 = lean_ctor_get(x_3, 3); +x_34 = lean_ctor_get(x_3, 4); +x_35 = lean_ctor_get(x_3, 5); +x_36 = lean_ctor_get(x_3, 7); +x_37 = lean_ctor_get(x_3, 8); +x_38 = lean_ctor_get(x_3, 9); +x_39 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_40 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_41 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +lean_inc(x_38); lean_inc(x_37); lean_inc(x_36); lean_inc(x_35); @@ -19010,146 +19439,143 @@ lean_inc(x_33); lean_inc(x_32); lean_inc(x_31); lean_inc(x_30); -lean_inc(x_29); lean_dec(x_3); lean_inc(x_11); -x_41 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_41, 0, x_29); -lean_ctor_set(x_41, 1, x_30); -lean_ctor_set(x_41, 2, x_31); -lean_ctor_set(x_41, 3, x_32); -lean_ctor_set(x_41, 4, x_33); -lean_ctor_set(x_41, 5, x_34); -lean_ctor_set(x_41, 6, x_11); -lean_ctor_set(x_41, 7, x_35); -lean_ctor_set(x_41, 8, x_36); -lean_ctor_set(x_41, 9, x_37); -lean_ctor_set_uint8(x_41, sizeof(void*)*10, x_38); -lean_ctor_set_uint8(x_41, sizeof(void*)*10 + 1, x_39); -lean_ctor_set_uint8(x_41, sizeof(void*)*10 + 2, x_40); -lean_inc(x_41); +x_42 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_42, 0, x_30); +lean_ctor_set(x_42, 1, x_31); +lean_ctor_set(x_42, 2, x_32); +lean_ctor_set(x_42, 3, x_33); +lean_ctor_set(x_42, 4, x_34); +lean_ctor_set(x_42, 5, x_35); +lean_ctor_set(x_42, 6, x_11); +lean_ctor_set(x_42, 7, x_36); +lean_ctor_set(x_42, 8, x_37); +lean_ctor_set(x_42, 9, x_38); +lean_ctor_set(x_42, 10, x_14); +lean_ctor_set_uint8(x_42, sizeof(void*)*11, x_39); +lean_ctor_set_uint8(x_42, sizeof(void*)*11 + 1, x_40); +lean_ctor_set_uint8(x_42, sizeof(void*)*11 + 2, x_41); +lean_inc(x_42); lean_inc(x_2); -x_42 = l___private_Lean_Elab_Inductive_12__elabHeader(x_2, x_41, x_16); -if (lean_obj_tag(x_42) == 0) +x_43 = l___private_Lean_Elab_Inductive_12__elabHeader(x_2, x_42, x_16); +if (lean_obj_tag(x_43) == 0) { -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_43 = lean_ctor_get(x_42, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_42, 1); +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +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 = lean_box(x_13); +lean_inc(x_44); +x_47 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_33__mkInductiveDecl___lambda__2___boxed), 10, 6); +lean_closure_set(x_47, 0, x_2); +lean_closure_set(x_47, 1, x_44); +lean_closure_set(x_47, 2, x_9); +lean_closure_set(x_47, 3, x_11); +lean_closure_set(x_47, 4, x_46); +lean_closure_set(x_47, 5, x_1); +x_48 = l___private_Lean_Elab_Inductive_14__withInductiveLocalDecls___rarg(x_44, x_47, x_42, x_45); +return x_48; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_dec(x_42); -x_45 = lean_box(x_13); -lean_inc(x_43); -x_46 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_33__mkInductiveDecl___lambda__2___boxed), 11, 7); -lean_closure_set(x_46, 0, x_2); -lean_closure_set(x_46, 1, x_14); -lean_closure_set(x_46, 2, x_43); -lean_closure_set(x_46, 3, x_9); -lean_closure_set(x_46, 4, x_11); -lean_closure_set(x_46, 5, x_45); -lean_closure_set(x_46, 6, x_1); -x_47 = l___private_Lean_Elab_Inductive_14__withInductiveLocalDecls___rarg(x_43, x_46, x_41, x_44); -return x_47; -} -else -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; -lean_dec(x_41); -lean_dec(x_14); lean_dec(x_11); lean_dec(x_9); lean_dec(x_2); lean_dec(x_1); -x_48 = lean_ctor_get(x_42, 0); -lean_inc(x_48); -x_49 = lean_ctor_get(x_42, 1); +x_49 = lean_ctor_get(x_43, 0); lean_inc(x_49); -if (lean_is_exclusive(x_42)) { - lean_ctor_release(x_42, 0); - lean_ctor_release(x_42, 1); - x_50 = x_42; +x_50 = lean_ctor_get(x_43, 1); +lean_inc(x_50); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + lean_ctor_release(x_43, 1); + x_51 = x_43; } else { - lean_dec_ref(x_42); - x_50 = lean_box(0); + lean_dec_ref(x_43); + x_51 = lean_box(0); } -if (lean_is_scalar(x_50)) { - x_51 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_51)) { + x_52 = lean_alloc_ctor(1, 2, 0); } else { - x_51 = x_50; + x_52 = x_51; } -lean_ctor_set(x_51, 0, x_48); -lean_ctor_set(x_51, 1, x_49); -return x_51; +lean_ctor_set(x_52, 0, x_49); +lean_ctor_set(x_52, 1, x_50); +return x_52; } } } else { -uint8_t x_52; +uint8_t x_53; lean_dec(x_14); lean_dec(x_11); lean_dec(x_9); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_52 = !lean_is_exclusive(x_15); -if (x_52 == 0) +x_53 = !lean_is_exclusive(x_15); +if (x_53 == 0) { return x_15; } else { -lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_15, 0); -x_54 = lean_ctor_get(x_15, 1); +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_15, 0); +x_55 = lean_ctor_get(x_15, 1); +lean_inc(x_55); lean_inc(x_54); -lean_inc(x_53); lean_dec(x_15); -x_55 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_55, 0, x_53); -lean_ctor_set(x_55, 1, x_54); -return x_55; +x_56 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_56, 0, x_54); +lean_ctor_set(x_56, 1, x_55); +return x_56; } } } } -lean_object* l_Nat_foldMAux___main___at___private_Lean_Elab_Inductive_33__mkInductiveDecl___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* l_Nat_foldMAux___main___at___private_Lean_Elab_Inductive_33__mkInductiveDecl___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) { _start: { -lean_object* x_10; -x_10 = l_Nat_foldMAux___main___at___private_Lean_Elab_Inductive_33__mkInductiveDecl___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_5); +lean_object* x_9; +x_9 = l_Nat_foldMAux___main___at___private_Lean_Elab_Inductive_33__mkInductiveDecl___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -return x_10; -} -} -lean_object* l___private_Lean_Elab_Inductive_33__mkInductiveDecl___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) { -_start: -{ -uint8_t x_13; uint8_t x_14; lean_object* x_15; -x_13 = lean_unbox(x_4); -lean_dec(x_4); -x_14 = lean_unbox(x_9); -lean_dec(x_9); -x_15 = l___private_Lean_Elab_Inductive_33__mkInductiveDecl___lambda__1(x_1, x_2, x_3, x_13, x_5, x_6, x_7, x_8, x_14, x_10, x_11, x_12); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_1); -return x_15; -} -} -lean_object* l___private_Lean_Elab_Inductive_33__mkInductiveDecl___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: -{ -uint8_t x_12; lean_object* x_13; -x_12 = lean_unbox(x_6); -lean_dec(x_6); -x_13 = l___private_Lean_Elab_Inductive_33__mkInductiveDecl___lambda__2(x_1, x_2, x_3, x_4, x_5, x_12, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_7); lean_dec(x_3); -return x_13; +lean_dec(x_1); +return x_9; +} +} +lean_object* l___private_Lean_Elab_Inductive_33__mkInductiveDecl___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) { +_start: +{ +uint8_t x_12; uint8_t x_13; lean_object* x_14; +x_12 = lean_unbox(x_3); +lean_dec(x_3); +x_13 = lean_unbox(x_8); +lean_dec(x_8); +x_14 = l___private_Lean_Elab_Inductive_33__mkInductiveDecl___lambda__1(x_1, x_2, x_12, x_4, x_5, x_6, x_7, x_13, x_9, x_10, x_11); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +return x_14; +} +} +lean_object* l___private_Lean_Elab_Inductive_33__mkInductiveDecl___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) { +_start: +{ +uint8_t x_11; lean_object* x_12; +x_11 = lean_unbox(x_5); +lean_dec(x_5); +x_12 = l___private_Lean_Elab_Inductive_33__mkInductiveDecl___lambda__2(x_1, x_2, x_3, x_4, x_11, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_6); +lean_dec(x_2); +return x_12; } } lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_34__mkAuxConstructions___spec__1(uint8_t x_1, uint8_t x_2, uint8_t x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { @@ -20760,12 +21186,65 @@ return x_24; } } } -lean_object* l_Lean_Elab_Command_elabInductiveViews___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Command_elabInductiveViews___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_5; -x_5 = l___private_Lean_Elab_Inductive_33__mkInductiveDecl(x_2, x_1, x_3, x_4); -return x_5; +uint8_t x_6; +x_6 = !lean_is_exclusive(x_4); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; +x_7 = lean_ctor_get(x_4, 10); +lean_dec(x_7); +lean_ctor_set(x_4, 10, x_1); +x_8 = l___private_Lean_Elab_Inductive_33__mkInductiveDecl(x_3, x_2, x_4, x_5); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; uint8_t x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; +x_9 = lean_ctor_get(x_4, 0); +x_10 = lean_ctor_get(x_4, 1); +x_11 = lean_ctor_get(x_4, 2); +x_12 = lean_ctor_get(x_4, 3); +x_13 = lean_ctor_get(x_4, 4); +x_14 = lean_ctor_get(x_4, 5); +x_15 = lean_ctor_get(x_4, 6); +x_16 = lean_ctor_get(x_4, 7); +x_17 = lean_ctor_get(x_4, 8); +x_18 = lean_ctor_get(x_4, 9); +x_19 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_20 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_21 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +lean_inc(x_18); +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_11); +lean_inc(x_10); +lean_inc(x_9); +lean_dec(x_4); +x_22 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_22, 0, x_9); +lean_ctor_set(x_22, 1, x_10); +lean_ctor_set(x_22, 2, x_11); +lean_ctor_set(x_22, 3, x_12); +lean_ctor_set(x_22, 4, x_13); +lean_ctor_set(x_22, 5, x_14); +lean_ctor_set(x_22, 6, x_15); +lean_ctor_set(x_22, 7, x_16); +lean_ctor_set(x_22, 8, x_17); +lean_ctor_set(x_22, 9, x_18); +lean_ctor_set(x_22, 10, x_1); +lean_ctor_set_uint8(x_22, sizeof(void*)*11, x_19); +lean_ctor_set_uint8(x_22, sizeof(void*)*11 + 1, x_20); +lean_ctor_set_uint8(x_22, sizeof(void*)*11 + 2, x_21); +x_23 = l___private_Lean_Elab_Inductive_33__mkInductiveDecl(x_3, x_2, x_22, x_5); +return x_23; +} } } lean_object* l_Lean_Elab_Command_elabInductiveViews(lean_object* x_1, lean_object* x_2, lean_object* x_3) { @@ -20783,8 +21262,10 @@ lean_dec(x_6); x_35 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_35, 0, x_34); lean_inc(x_1); -x_36 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabInductiveViews___lambda__1), 4, 1); -lean_closure_set(x_36, 0, x_1); +lean_inc(x_7); +x_36 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabInductiveViews___lambda__1), 5, 2); +lean_closure_set(x_36, 0, x_7); +lean_closure_set(x_36, 1, x_1); lean_inc(x_2); x_37 = l___private_Lean_Elab_Command_2__getState(x_2, x_3); if (lean_obj_tag(x_37) == 0) @@ -21280,7 +21761,7 @@ block_33: { lean_object* x_10; lean_inc(x_2); -x_10 = l_Lean_Elab_Command_addDecl(x_7, x_8, x_2, x_9); +x_10 = l_Lean_Elab_Command_addDecl(x_8, x_2, x_9); lean_dec(x_8); if (lean_obj_tag(x_10) == 0) { diff --git a/stage0/stdlib/Lean/Elab/Match.c b/stage0/stdlib/Lean/Elab/Match.c index 780432e21f..54a2ec4bf0 100644 --- a/stage0/stdlib/Lean/Elab/Match.c +++ b/stage0/stdlib/Lean/Elab/Match.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Elab.Match -// Imports: Init Lean.Elab.Term Lean.Meta.EqnCompiler.MatchPattern Lean.Meta.EqnCompiler.DepElim +// Imports: Init Lean.Meta.EqnCompiler.MatchPattern Lean.Meta.EqnCompiler.DepElim Lean.Elab.SyntheticMVars #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -14,412 +14,463 @@ extern "C" { #endif lean_object* l_List_reverse___rarg(lean_object*); +lean_object* l___private_Lean_Elab_Match_16__processIdAux___lambda__1___closed__2; extern lean_object* l_Lean_mkHole___closed__3; lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__12; lean_object* l_Lean_Syntax_getIdOfTermId(lean_object*); -lean_object* l___private_Lean_Elab_Match_18__collect___main___closed__10; lean_object* l_Lean_Elab_Term_getEnv___rarg(lean_object*); extern lean_object* l_Lean_Name_toString___closed__1; lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_18__collect___main___spec__3___closed__3; lean_object* l___private_Lean_Elab_Match_8__getMatchAlts(lean_object*); -lean_object* l___private_Lean_Elab_Match_17__throwInvalidPattern___rarg___closed__3; -lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_18__collect___main___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_27__mkMatchType___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_throwErrorAt___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_27__mkMatchType___main___closed__1; extern lean_object* l_Lean_Parser_Term_namedPattern___elambda__1___closed__2; lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__1___closed__4; lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_15__processVar___closed__1; lean_object* l_Lean_Name_eraseMacroScopes(lean_object*); +lean_object* l___private_Lean_Elab_Match_11__getMVarSyntaxMVarId___boxed(lean_object*); +extern lean_object* l___private_Lean_Meta_ExprDefEq_8__checkTypesAndAssign___closed__7; lean_object* l_List_toString___at_Lean_MetavarContext_MkBinding_Exception_toString___spec__2(lean_object*); -lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__5(uint8_t, 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_Match_18__collect___main___closed__7; +lean_object* l___private_Lean_Elab_Match_16__processIdAux___lambda__1___closed__1; +lean_object* l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__1; +lean_object* l_Lean_Elab_Term_instantiateMVars(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_29__mkNewDiscrs___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_13__processVar___closed__5; -lean_object* l___private_Lean_Elab_Match_25__mkMatchType___main___closed__2; +lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkTermIdFromIdent(lean_object*); +lean_object* l_Lean_LocalDecl_userName(lean_object*); lean_object* l_Lean_Elab_Term_elabMatch(lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Nat_HasQuote___closed__2; lean_object* l_unreachable_x21___rarg(lean_object*); lean_object* l_Lean_Meta_isClassExpensive___main(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_nullKind; -lean_object* l___private_Lean_Elab_Match_22__elabPatternsAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_12__throwAmbiguous___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_20__withPatternVarsAux___main___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_15__processVar___closed__8; +lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_8__getMatchAlts___boxed(lean_object*); lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__1; extern lean_object* l_Lean_MessageData_ofList___closed__3; lean_object* l___private_Lean_Elab_Match_2__expandSimpleMatchWithType___closed__1; +lean_object* l_Lean_Elab_Term_inferType(lean_object*, lean_object*, lean_object*); extern lean_object* l_List_repr___rarg___closed__1; -lean_object* l___private_Lean_Elab_Match_18__collect___main___closed__16; +lean_object* l___private_Lean_Elab_Match_16__processIdAux(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__10; +lean_object* l___private_Lean_Elab_Match_30__mkNewPatterns___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_eq___elambda__1___closed__2; -lean_object* l___private_Lean_Elab_Match_12__throwAmbiguous___rarg___closed__1; -lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_27__mkMatchType___main___closed__4; lean_object* l_Lean_Format_pretty(lean_object*, lean_object*); extern lean_object* l_Lean_List_format___rarg___closed__2; +lean_object* l___regBuiltin_Lean_Elab_Term_elabInaccessible___closed__1; +lean_object* l___private_Lean_Elab_Match_26__elabMatchCore(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_24__elabMatchCore(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_27__mkNewDiscrs___main___closed__6; +lean_object* l_Lean_Elab_Term_mkFreshId(lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_8__getMatchAlts___spec__2(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_14__processIdAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_30__mkNewAlts___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__3; +lean_object* l___private_Lean_Elab_Match_15__processVar___closed__9; +lean_object* l___private_Lean_Elab_Match_28__mkOptType(lean_object*); extern lean_object* l_Lean_Parser_Term_forall___elambda__1___closed__2; +lean_object* l___private_Lean_Elab_Match_27__mkMatchType(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fswap(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__2; extern lean_object* l_Lean_identKind___closed__2; lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__2; +extern lean_object* l_Lean_Parser_Term_typeAscription___elambda__1___closed__1; extern lean_object* l_Lean_Parser_Term_match___elambda__1___closed__1; -lean_object* l___private_Lean_Elab_Match_14__processIdAux___closed__1; +lean_object* l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__2; lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main___closed__5; +lean_object* l_Lean_Elab_Term_isInaccessible_x3f(lean_object*); +lean_object* l_Lean_Elab_Term_elabMVarWithIdKind(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_29__mkNewDiscrs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_23__withPatternVars___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main___closed__14; -extern lean_object* l_Lean_Parser_Term_anonymousCtor___elambda__1___closed__2; +lean_object* l_Lean_mkMVar(lean_object*); lean_object* l_Lean_Meta_isClassQuick___main(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_14__processIdAux___closed__2; extern lean_object* l_Array_empty___closed__1; -lean_object* l___private_Lean_Elab_Match_25__mkMatchType(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_25__elabPatterns___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_environment_find(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_27__mkNewDiscrs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_25__mkMatchType___main___closed__3; -lean_object* l___private_Lean_Elab_Match_26__mkOptType(lean_object*); -lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__5___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_22__withPatternVarsAux___main___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_Match_33__expandMatchDiscr_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main___closed__3; lean_object* l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_filterAux___main___at___private_Lean_Elab_Match_14__processIdAux___spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_22__withPatternVarsAux___main___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_StateT_bind___at___private_Lean_Elab_Match_16__processIdAux___spec__4(lean_object*, lean_object*); lean_object* l_Lean_MessageData_arrayExpr_toMessageData___main(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_elabMatchAltView___lambda__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabMatchAltView___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabMatchAltView___lambda__1___closed__1; -lean_object* l___private_Lean_Elab_Match_13__processVar___closed__7; -lean_object* l___private_Lean_Elab_Match_13__processVar___closed__3; -lean_object* l___private_Lean_Elab_Match_20__withPatternVarsAux___main___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_20__withPatternVarsAux___main(lean_object*); -lean_object* l___private_Lean_Elab_Match_14__processIdAux___closed__4; -lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_30__mkNewAlts___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_20__collect___main___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabInaccessible(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__1; +lean_object* l___private_Lean_Elab_Match_32__mkNewAlts(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; lean_object* lean_expr_instantiate1(lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); extern lean_object* l_Lean_Parser_Term_depArrow___elambda__1___closed__2; -lean_object* l___private_Lean_Elab_Match_13__processVar(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofList(lean_object*); +lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__5___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_22__withPatternVarsAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_25__elabPatterns___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_String_splitAux___main___closed__1; -lean_object* l___private_Lean_Elab_Match_22__elabPatternsAux___main___closed__2; -lean_object* l_List_map___main___at___private_Lean_Elab_Match_14__processIdAux___spec__2(lean_object*); +lean_object* l___private_Lean_Elab_Match_25__elabPatterns___closed__1; +lean_object* l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__1; +lean_object* l___private_Lean_Elab_Match_24__elabPatternsAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_List_repr___rarg___closed__3; lean_object* l___private_Lean_Elab_Match_1__expandSimpleMatch___closed__2; -extern lean_object* l_Lean_Parser_Term_typeAscription___elambda__1___closed__2; lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main___closed__10; -lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_15__processVar(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_25__elabPatterns___closed__2; +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_26__elabMatchCore___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__12; lean_object* lean_string_utf8_byte_size(lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_assignExprMVar(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_mkTermIdFromIdent___closed__1; lean_object* l_Lean_Elab_Term_getMainModule___rarg(lean_object*); lean_object* l___private_Lean_Elab_Match_1__expandSimpleMatch(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_10__throwCtorExpected___rarg___closed__1; -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_24__elabMatchCore___spec__3(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_15__processVar___closed__2; lean_object* l___private_Lean_Elab_Match_1__expandSimpleMatch___closed__1; lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__7; -lean_object* l___private_Lean_Elab_Match_10__throwCtorExpected___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkAppStx___closed__8; -lean_object* l___private_Lean_Elab_Term_3__fromMetaState(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_26__elabMatchCore___closed__1; +lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___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_Elab_Term_3__fromMetaState(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_matchDiscr___elambda__1___closed__2; -lean_object* l_Lean_Elab_Term_ensureHasType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_29__mkNewAlt(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_ensureHasType(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___closed__2; +lean_object* l___private_Lean_Elab_Match_14__throwAmbiguous___rarg___closed__1; +lean_object* l___private_Lean_Elab_Match_34__regTraceClasses(lean_object*); +lean_object* l___private_Lean_Elab_Match_16__processIdAux___lambda__1___closed__3; lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__9; -lean_object* l_Lean_Elab_Term_mkFreshTypeMVar(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_18__collect___main___closed__6; -lean_object* l___private_Lean_Elab_Match_24__elabMatchCore___closed__4; -lean_object* l___private_Lean_Elab_Match_22__elabPatternsAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_whnf(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_32__regTraceClasses(lean_object*); +lean_object* l_Lean_Elab_Term_mkFreshTypeMVar(uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_19__throwInvalidPattern(lean_object*); +lean_object* l_Lean_Elab_Term_whnf(lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_Match_33__expandMatchDiscr_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_finalizePatternDecls(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__3___closed__1; +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getOptions(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__4; extern lean_object* l_Lean_mkTermIdFromIdent___closed__2; +lean_object* l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__7; +lean_object* l___private_Lean_Elab_Match_26__elabMatchCore___closed__2; lean_object* l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_24__elabMatchCore___closed__2; -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_Match_31__expandMatchDiscr_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_17__throwInvalidPattern(lean_object*); +lean_object* l_Array_mapSepElemsM___at___private_Lean_Elab_Match_20__collect___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__8; -lean_object* l___private_Lean_Elab_Match_24__elabMatchCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_finalizePatternDecls___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_IO_FS_Handle_putStrLn___rarg___closed__1; -lean_object* l___private_Lean_Elab_Match_20__withPatternVarsAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_19__collectPatternVars(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_26__elabMatchCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Basic_5__forallTelescopeReducingAuxAux___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__3(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__13; +lean_object* l___private_Lean_Elab_Match_21__collectPatternVars(lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_17__throwInvalidPattern___rarg___closed__1; lean_object* l_Lean_Elab_Term_elabMatchAltView(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_HasRepr___rarg___closed__1; lean_object* l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_27__mkNewDiscrs___main___closed__4; -lean_object* l___private_Lean_Elab_Match_24__elabMatchCore___closed__1; +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_12__throwCtorExpected___rarg___closed__1; +lean_object* l___private_Lean_Elab_Match_10__mkMVarSyntax(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_21__collectPatternVars___closed__1; lean_object* lean_array_fget(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_27__mkNewDiscrs___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_instantiate_rev_range(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_Inhabited___closed__1; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main___closed__6; +extern lean_object* l_Lean_Nat_HasQuote___closed__1; +lean_object* l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__5; +lean_object* l___private_Lean_Elab_Match_14__throwAmbiguous___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_2__expandSimpleMatchWithType___closed__2; -lean_object* l___private_Lean_Elab_Match_25__mkMatchType___main___closed__5; +lean_object* l_Lean_Elab_Term_CollectPatternVars_withRef___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabMatch(lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_18__collect___main(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Term_anonymousCtor___elambda__1___closed__1; +lean_object* l___private_Lean_Elab_Match_14__throwAmbiguous___rarg___closed__2; lean_object* l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(lean_object*); -lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_21__withPatternVars___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_20__collect___main___lambda__2(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__3___closed__2; +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_toStringAux___main___at___private_Lean_Elab_Match_6__elabDiscrsAux___main___spec__2(uint8_t, lean_object*); -lean_object* l___private_Lean_Elab_Match_25__mkMatchType___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_22__elabPatternsAux___main___closed__1; +lean_object* l___private_Lean_Elab_Match_15__processVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_shrink___main___rarg(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_22__elabPatternsAux___main___closed__3; +lean_object* l_Lean_Elab_Term_isInaccessible_x3f___boxed(lean_object*); lean_object* l_List_toStringAux___main___at_Lean_Elab_Term_elabMatchAltView___spec__2___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_31__expandMatchDiscr_x3f(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_14__processIdAux(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_EqnCompiler_matchPatternAttr; -lean_object* l___private_Lean_Elab_Match_31__expandMatchDiscr_x3f___closed__1; extern lean_object* l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__6; +lean_object* l___private_Lean_Elab_Match_26__elabMatchCore___closed__4; +lean_object* l___private_Lean_Elab_Match_16__processIdAux___closed__1; +lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Syntax_copyInfo(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkAnnotation(lean_object*, lean_object*); +lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_16__processIdAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_filterAux___main___at___private_Lean_Elab_Match_16__processIdAux___spec__2(lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__1___closed__2; lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_12__throwAmbiguous(lean_object*); +extern lean_object* l_Lean_String_HasQuote___closed__1; +lean_object* l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__5; +lean_object* l___private_Lean_Elab_Match_14__throwAmbiguous(lean_object*); +lean_object* l_StateT_lift___at___private_Lean_Elab_Match_16__processIdAux___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_fvarId_x21(lean_object*); -lean_object* l___private_Lean_Elab_Match_23__elabPatterns(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_18__collect___main___closed__5; -lean_object* l___private_Lean_Elab_Match_17__throwInvalidPattern___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_25__elabPatterns___spec__2(lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_18__collect___main___closed__14; -lean_object* l___private_Lean_Elab_Match_18__collect___main___closed__15; -lean_object* l___private_Lean_Elab_Match_10__throwCtorExpected___rarg___closed__3; +lean_object* l_Lean_Name_appendIndexAfter(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_25__elabPatterns(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_9__registerAuxiliaryNodeKind(lean_object*); -lean_object* l___private_Lean_Elab_Match_23__elabPatterns___closed__3; -lean_object* l___private_Lean_Elab_Match_22__elabPatternsAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkMatchAltView(lean_object*); -lean_object* l___private_Lean_Elab_Match_20__withPatternVarsAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_elabTermAux___main(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_27__mkNewDiscrs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main___closed__12; lean_object* l_Nat_repr(lean_object*); +lean_object* l___private_Lean_Elab_Match_20__collect(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_27__mkMatchType___main___closed__2; +lean_object* l___private_Lean_Elab_Match_22__withPatternVarsAux___main___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_MessageData_coeOfArrayExpr___closed__2; lean_object* l_Lean_Elab_Term_elabMatchAltView___closed__3; +lean_object* l_Lean_Elab_Term_getLocalDecl(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_2__expandSimpleMatchWithType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_5__elabMatchOptType(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_18__collect___main___closed__3; lean_object* l___private_Lean_Elab_Match_9__registerAuxiliaryNodeKind___closed__2; uint8_t l_Lean_LocalDecl_binderInfo(lean_object*); lean_object* l_Lean_Elab_Term_expandMacrosInPatterns(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_logTrace(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Parser_Term_namedHole___elambda__1___closed__2; +lean_object* l_Lean_Elab_Term_mkInaccessible___closed__2; +lean_object* l___private_Lean_Elab_Match_32__mkNewAlts___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_explicitBinder___elambda__1___closed__2; -lean_object* l___private_Lean_Elab_Match_12__throwAmbiguous___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getId(lean_object*); -lean_object* l_Array_mapSepElemsM___at___private_Lean_Elab_Match_30__mkNewAlts___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_17__throwInvalidPattern___rarg___closed__2; -lean_object* l___private_Lean_Elab_Match_17__throwInvalidPattern___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_10__throwCtorExpected___rarg___closed__2; +lean_object* l___private_Lean_Elab_Match_15__processVar___closed__4; lean_object* lean_name_mk_string(lean_object*, lean_object*); extern lean_object* l_Lean_choiceKind; extern lean_object* l_List_repr___rarg___closed__2; -lean_object* l_Lean_Elab_Term_throwError___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___closed__3; +lean_object* l_Lean_Elab_Term_throwError___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__1___closed__1; lean_object* l_Lean_Elab_expandMacros___main(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_List_reprAux___main___rarg___closed__1; lean_object* l___private_Lean_Elab_Match_1__expandSimpleMatch___closed__6; -lean_object* l___private_Lean_Elab_Match_25__mkMatchType___main(lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Parser_Term_explicitUniv___elambda__1___closed__2; -lean_object* l_Lean_Elab_Term_resolveName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_resolveName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_mapSepElemsM___at___private_Lean_Elab_Match_32__mkNewAlts___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getCurrMacroScope(lean_object*, lean_object*); uint8_t l_Lean_Name_isAtomic(lean_object*); -lean_object* l___private_Lean_Elab_Match_11__getNumExplicitCtorParams___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_withLocalDecl___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_18__collect(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_26__elabMatchCore___spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_27__mkMatchType___main___closed__6; +lean_object* l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___closed__1; +lean_object* l_Lean_Elab_Term_withLocalDecl___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_18__collect___main___closed__2; lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_expandMacrosInPatterns___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Term_explicitUniv___elambda__1___closed__1; extern lean_object* l_Lean_mkAppStx___closed__6; extern lean_object* l_Lean_Options_empty; lean_object* l_List_toStringAux___main___at___private_Lean_Elab_Match_6__elabDiscrsAux___main___spec__2___boxed(lean_object*, lean_object*); +lean_object* l_StateT_bind___at___private_Lean_Elab_Match_16__processIdAux___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_filterAux___main___at___private_Lean_Elab_Match_8__getMatchAlts___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l___regBuiltin_Lean_Elab_Term_elabInaccessible(lean_object*); +lean_object* l___private_Lean_Elab_Match_12__throwCtorExpected___rarg___closed__3; +lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_25__elabPatterns___closed__3; extern lean_object* l_Lean_Parser_Term_arrow___elambda__1___closed__2; -extern lean_object* l_Lean_Parser_Term_structInst___elambda__1___closed__2; +lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_30__mkNewPatterns(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkFreshId___rarg(lean_object*); +extern lean_object* l_Lean_Parser_Term_inaccessible___elambda__1___closed__1; +lean_object* l___private_Lean_Elab_Match_12__throwCtorExpected___rarg___closed__2; extern lean_object* l_Lean_Parser_Term_let___elambda__1___closed__2; -lean_object* l_Array_mapSepElemsM___at___private_Lean_Elab_Match_18__collect___main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_22__withPatternVarsAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__6; +lean_object* l___private_Lean_Elab_Match_29__mkNewDiscrs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Util_4__regTraceClasses___closed__1; +lean_object* l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f___closed__1; +lean_object* l___private_Lean_Elab_Match_14__throwAmbiguous___rarg___closed__3; uint8_t l_Lean_Expr_isForall(lean_object*); -lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_30__mkNewAlts___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Basic_5__forallTelescopeReducingAuxAux___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__3(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_whnf(lean_object*, lean_object*, lean_object*); -lean_object* l_ReaderT_bind___at_Lean_Elab_Term_monadLog___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_18__collect___main___closed__9; +lean_object* l_Lean_Elab_Term_mkInaccessible(lean_object*); lean_object* l_Lean_mkFVar(lean_object*); -lean_object* l___private_Lean_Elab_Match_23__elabPatterns___closed__1; +lean_object* l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__1; uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); -extern lean_object* l_Lean_Parser_FirstTokens_toStr___closed__3; -lean_object* l___private_Lean_Elab_Match_18__collect___main___closed__17; -lean_object* l___private_Lean_Elab_Match_23__elabPatterns___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_NameSet_empty; -lean_object* l___private_Lean_Elab_Match_18__collect___main___closed__4; +lean_object* l___private_Lean_Elab_Match_29__mkNewDiscrs___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main___closed__11; lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main___closed__7; -lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_18__collect___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_PatternVar_hasToString___closed__1; -lean_object* l___private_Lean_Elab_Match_18__collect___main___closed__8; -extern lean_object* l_Lean_String_HasQuote___closed__2; extern lean_object* l_Lean_nullKind___closed__2; +lean_object* l_Lean_MessageData_ofArray(lean_object*); lean_object* l_List_toString___at_Lean_Elab_Term_elabMatchAltView___spec__1(lean_object*); extern lean_object* l_Lean_Meta_mkEqRefl___closed__2; +lean_object* l_Array_mapSepElemsM___at___private_Lean_Elab_Match_32__mkNewAlts___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_termElabAttribute; -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_24__elabMatchCore___spec__1(lean_object*, lean_object*); +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_22__withPatternVarsAux___main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_expandMacrosInPatterns___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkAtomFrom(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_23__elabPatterns___closed__2; +lean_object* l_Lean_Elab_Term_mkInaccessible___closed__1; lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_isDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_isDefEq(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Term_structInst___elambda__1___closed__1; lean_object* l_Lean_LocalDecl_type(lean_object*); -lean_object* l___private_Lean_Meta_Basic_5__forallTelescopeReducingAuxAux___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_elabMatchAltView___closed__4; +lean_object* l_Lean_Elab_Term_CollectPatternVars_withRef(lean_object*); lean_object* lean_local_ctx_mk_local_decl(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); +lean_object* l___private_Lean_Elab_Match_20__collect___main___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_15__processVar___closed__7; extern lean_object* l_Lean_Parser_Command_openRenamingItem___elambda__1___closed__5; -lean_object* l___private_Lean_Elab_Match_27__mkNewDiscrs___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_elabMatchAltView___lambda__1(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_22__elabPatternsAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__2; +lean_object* l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__4; +lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabMatchAltView___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_1__expandSimpleMatch___closed__3; extern lean_object* l_Lean_Syntax_inhabited; +lean_object* l___private_Lean_Elab_Match_24__elabPatternsAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main___closed__1; -lean_object* l___private_Lean_Elab_Match_27__mkNewDiscrs___main___closed__2; -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabMVarWithIdKind___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_isAnnotation_x3f(lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_MessageData_coeOfListExpr___spec__1(lean_object*); -lean_object* l___private_Lean_Elab_Match_20__withPatternVarsAux(lean_object*); +lean_object* l___private_Lean_Elab_Match_12__throwCtorExpected___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__8; +lean_object* l___private_Lean_Elab_Match_13__getNumExplicitCtorParams(lean_object*, lean_object*, lean_object*); +lean_object* l_StateT_lift___at___private_Lean_Elab_Match_16__processIdAux___spec__1(lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_27__mkMatchType___main(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkHole(lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__3; extern lean_object* l_Lean_Parser_Term_inaccessible___elambda__1___closed__2; lean_object* l_Lean_Syntax_setArg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getLocalDecl(lean_object*, lean_object*, lean_object*); lean_object* lean_environment_main_module(lean_object*); -lean_object* l___private_Lean_Elab_Match_21__withPatternVars(lean_object*); -lean_object* l___private_Lean_Elab_Match_16__processId(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_22__withPatternVarsAux(lean_object*); lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_1__expandSimpleMatch___closed__5; -lean_object* l___private_Lean_Elab_Match_13__processVar___closed__9; -lean_object* l___private_Lean_Elab_Match_28__mkNewPatterns___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_27__mkNewDiscrs___main___closed__1; -lean_object* l___private_Lean_Elab_Match_18__collect___main___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__4; extern lean_object* l_Lean_SourceInfo_inhabited___closed__1; +lean_object* l_Lean_Elab_Term_elabInaccessible___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_18__processId(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_isTermId_x3f(lean_object*, uint8_t); -lean_object* l___private_Lean_Elab_Match_18__collect___main___closed__13; extern lean_object* l_Lean_Parser_Term_let___elambda__1___closed__1; lean_object* l_Lean_Syntax_getArgs(lean_object*); +lean_object* l___private_Lean_Elab_Match_23__withPatternVars(lean_object*); lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main___closed__2; uint8_t l_Lean_BinderInfo_isExplicit(uint8_t); lean_object* l_Lean_Syntax_getKind(lean_object*); +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__3___closed__3; +lean_object* l___private_Lean_Elab_Match_24__elabPatternsAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_27__mkMatchType___main___closed__3; extern lean_object* l_Lean_setOptionFromString___closed__1; -lean_object* l___private_Lean_Elab_Match_13__processVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_28__mkNewPatterns(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_32__mkNewAlts___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_20__collect___main(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_30__mkNewPatterns___main___closed__1; +lean_object* l___private_Lean_Elab_Match_30__mkNewPatterns___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_12__throwCtorExpected___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__5___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_27__mkMatchType___main___closed__5; uint8_t l_Lean_TagAttribute_hasTag(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main___closed__9; -extern lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__1; -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_18__collect___main___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_29__mkNewAlt___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_Match_31__expandMatchDiscr_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_14__throwAmbiguous___rarg(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Init_Util_1__mkPanicMessage___closed__2; -lean_object* l___private_Lean_Elab_Match_10__throwCtorExpected___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_11__getNumExplicitCtorParams(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_getCurrRef(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main___closed__8; +lean_object* l___private_Lean_Elab_Match_31__mkNewAlt(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___closed__1; lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main___closed__4; lean_object* l_Lean_Parser_registerBuiltinNodeKind(lean_object*, lean_object*); +extern lean_object* l_Lean_mkHole___closed__1; +lean_object* l___private_Lean_Elab_Match_27__mkMatchType___main___closed__7; +lean_object* l_Lean_Elab_Term_isExprMVarAssigned(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabMatch___closed__1; -lean_object* l___private_Lean_Elab_Match_18__collect___main___closed__1; lean_object* l___private_Lean_Elab_Match_9__registerAuxiliaryNodeKind___closed__1; -lean_object* l___private_Lean_Elab_Match_13__processVar___closed__4; -lean_object* l___private_Lean_Elab_Match_13__processVar___closed__1; +extern lean_object* l_Lean_Closure_mkNextUserName___rarg___closed__2; +lean_object* l___private_Lean_Elab_Match_24__elabPatternsAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_26__elabMatchCore___closed__3; lean_object* l_Lean_Elab_Term_elabType(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_letIdDecl___closed__2; +extern lean_object* l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__1; +lean_object* l___private_Lean_Elab_Match_22__withPatternVarsAux___main(lean_object*); extern lean_object* l_Lean_mkAppStx___closed__9; +lean_object* l_Lean_Elab_Term_withSynthesize___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_4__expandMatchOptType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_28__mkNewPatterns___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__2; uint8_t l_Lean_Syntax_isNone(lean_object*); extern lean_object* l_Lean_TraceState_Inhabited___closed__1; -lean_object* l___private_Lean_Elab_Match_12__throwAmbiguous___rarg___closed__3; -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_24__elabMatchCore___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkTermIdFrom(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_14__processIdAux___closed__3; extern lean_object* l_Lean_mkOptionalNode___closed__1; extern lean_object* l_Lean_Parser_Term_matchAlt___closed__2; -lean_object* l___private_Lean_Meta_Basic_6__forallTelescopeReducingAux___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___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_Array_umapMAux___main___at___private_Lean_Elab_Match_26__elabMatchCore___spec__3(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_12__throwCtorExpected(lean_object*); +lean_object* l_Lean_Elab_Term_mkFreshExprMVarWithId(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Array_toList___rarg(lean_object*); -lean_object* l___private_Lean_Elab_Match_18__collect___main___closed__12; -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_18__collect___main___spec__3___closed__1; -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_18__collect___main___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__3; lean_object* l_List_toString___at___private_Lean_Elab_Match_6__elabDiscrsAux___main___spec__1(lean_object*); +lean_object* l___private_Lean_Elab_Match_15__processVar___closed__3; uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_18__collect___main___spec__3___closed__2; -lean_object* l___private_Lean_Elab_Match_10__throwCtorExpected(lean_object*); lean_object* l___private_Lean_Elab_Match_1__expandSimpleMatch___closed__4; lean_object* l_Lean_Elab_Term_elabMatchAltView___closed__1; lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__11; extern lean_object* l_Lean_mkHole___closed__2; +lean_object* l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__11; +lean_object* l___private_Lean_Elab_Match_27__mkMatchType___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__10; -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_18__collect___main___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_26__elabMatchCore___closed__5; +lean_object* l___private_Lean_Elab_Match_15__processVar___closed__6; +lean_object* l___private_Lean_Meta_Basic_6__forallTelescopeReducingAux___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_NameSet_contains(lean_object*, lean_object*); -lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__5___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_30__mkNewPatterns___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__5(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); extern lean_object* l_Lean_mkOptionalNode___closed__2; -lean_object* l___private_Lean_Elab_Match_30__mkNewAlts(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_13__processVar___closed__8; lean_object* lean_nat_mod(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_CollectPatternVars_main(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_typeSpec___elambda__1___closed__2; +lean_object* l_List_map___main___at___private_Lean_Elab_Match_16__processIdAux___spec__3(lean_object*); extern lean_object* l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; -lean_object* l___private_Lean_Elab_Match_24__elabMatchCore___closed__5; lean_object* l_Lean_Syntax_formatStxAux___main(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__5; extern lean_object* l_Nat_Inhabited; -lean_object* l___private_Lean_Elab_Match_24__elabMatchCore___closed__3; lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__1___closed__3; lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_18__collect___main___closed__11; -lean_object* l___private_Lean_Elab_Match_25__mkMatchType___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_List_isEmpty___rarg(lean_object*); lean_object* l_Lean_Elab_Term_PatternVar_hasToString(lean_object*); -lean_object* l___private_Lean_Elab_Match_28__mkNewPatterns___main___closed__1; +lean_object* l___private_Lean_Meta_Basic_5__forallTelescopeReducingAuxAux___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_toStringWithSep___main(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_28__mkNewPatterns___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main___closed__13; -lean_object* l___private_Lean_Elab_Match_7__elabDiscrs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_19__collectPatternVars___closed__1; -lean_object* l___private_Lean_Elab_Match_25__mkMatchType___main___closed__1; +lean_object* l___private_Lean_Elab_Match_7__elabDiscrs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___regBuiltin_Lean_Elab_Term_elabMVarWithIdKind___closed__1; lean_object* l_List_toStringAux___main___at_Lean_Elab_Term_elabMatchAltView___spec__2(uint8_t, lean_object*); extern lean_object* l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__4; -extern lean_object* l_Lean_Parser_Term_char___elambda__1___closed__2; +lean_object* l_Array_mapSepElemsM___at___private_Lean_Elab_Match_20__collect___main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_simpleBinder___elambda__1___closed__2; extern lean_object* l_Lean_Parser_Term_forall___elambda__1___closed__1; lean_object* l_Lean_indentExpr(lean_object*); -lean_object* l___private_Lean_Elab_Match_13__processVar___closed__6; -lean_object* l___private_Lean_Elab_Term_2__fromMetaException(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_Term_Lean_Elab_MonadMacroAdapter___closed__8; +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_22__withPatternVarsAux___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_32__mkNewAlts___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_11__getMVarSyntaxMVarId(lean_object*); +lean_object* l___private_Lean_Elab_Term_2__fromMetaException(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabMatchAltView___closed__2; -lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_22__withPatternVarsAux___main___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabMatchAltView___lambda__1___closed__2; +lean_object* l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__6; extern lean_object* l_Lean_Parser_Term_namedPattern___elambda__1___closed__1; -lean_object* l___private_Lean_Elab_Match_7__elabDiscrs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_mapSepElemsM___at___private_Lean_Elab_Match_18__collect___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_15__processCtor(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_7__elabDiscrs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_15__processVar___closed__5; +lean_object* l___private_Lean_Elab_Match_16__processIdAux___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___regBuiltin_Lean_Elab_Term_elabMVarWithIdKind(lean_object*); +lean_object* l___private_Lean_Elab_Match_17__processCtor(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__9; +lean_object* l___private_Lean_Elab_Match_16__processIdAux___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_4__expandMatchOptType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__3; -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_18__collect___main___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Term_char___elambda__1___closed__1; extern lean_object* l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__1; -lean_object* l___private_Lean_Elab_Match_25__mkMatchType___main___closed__4; -lean_object* l___private_Lean_Elab_Match_13__processVar___closed__2; -lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_27__mkNewDiscrs___main___closed__5; lean_object* l___private_Lean_Elab_Match_5__elabMatchOptType___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_12__throwAmbiguous___rarg___closed__2; -lean_object* l___private_Lean_Elab_Match_27__mkNewDiscrs___main___closed__3; -lean_object* l_Array_mapSepElemsM___at___private_Lean_Elab_Match_30__mkNewAlts___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_31__mkNewAlt___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_monadInhabited___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_getFVarLocalDecl(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; @@ -553,12 +604,12 @@ lean_ctor_set(x_32, 0, x_31); lean_ctor_set(x_32, 1, x_30); lean_ctor_set(x_6, 8, x_32); x_33 = 1; -x_34 = l_Lean_Elab_Term_elabTermAux___main(x_5, x_33, x_33, x_28, x_6, x_11); +x_34 = l_Lean_Elab_Term_elabTerm(x_28, x_5, x_33, x_6, x_11); return x_34; } else { -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; uint8_t x_45; uint8_t x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; +lean_object* x_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; uint8_t x_45; uint8_t x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; lean_object* x_53; x_35 = lean_ctor_get(x_6, 0); x_36 = lean_ctor_get(x_6, 1); x_37 = lean_ctor_get(x_6, 2); @@ -569,9 +620,11 @@ x_41 = lean_ctor_get(x_6, 6); x_42 = lean_ctor_get(x_6, 7); x_43 = lean_ctor_get(x_6, 8); x_44 = lean_ctor_get(x_6, 9); -x_45 = lean_ctor_get_uint8(x_6, sizeof(void*)*10); -x_46 = lean_ctor_get_uint8(x_6, sizeof(void*)*10 + 1); -x_47 = lean_ctor_get_uint8(x_6, sizeof(void*)*10 + 2); +x_45 = lean_ctor_get_uint8(x_6, sizeof(void*)*11); +x_46 = lean_ctor_get_uint8(x_6, sizeof(void*)*11 + 1); +x_47 = lean_ctor_get_uint8(x_6, sizeof(void*)*11 + 2); +x_48 = lean_ctor_get(x_6, 10); +lean_inc(x_48); lean_inc(x_44); lean_inc(x_43); lean_inc(x_42); @@ -584,29 +637,30 @@ lean_inc(x_36); lean_inc(x_35); lean_dec(x_6); lean_inc(x_28); -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_1); -lean_ctor_set(x_48, 1, x_28); -x_49 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, x_43); -x_50 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_50, 0, x_35); -lean_ctor_set(x_50, 1, x_36); -lean_ctor_set(x_50, 2, x_37); -lean_ctor_set(x_50, 3, x_38); -lean_ctor_set(x_50, 4, x_39); -lean_ctor_set(x_50, 5, x_40); -lean_ctor_set(x_50, 6, x_41); -lean_ctor_set(x_50, 7, x_42); -lean_ctor_set(x_50, 8, x_49); -lean_ctor_set(x_50, 9, x_44); -lean_ctor_set_uint8(x_50, sizeof(void*)*10, x_45); -lean_ctor_set_uint8(x_50, sizeof(void*)*10 + 1, x_46); -lean_ctor_set_uint8(x_50, sizeof(void*)*10 + 2, x_47); -x_51 = 1; -x_52 = l_Lean_Elab_Term_elabTermAux___main(x_5, x_51, x_51, x_28, x_50, x_11); -return x_52; +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_1); +lean_ctor_set(x_49, 1, x_28); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_43); +x_51 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_51, 0, x_35); +lean_ctor_set(x_51, 1, x_36); +lean_ctor_set(x_51, 2, x_37); +lean_ctor_set(x_51, 3, x_38); +lean_ctor_set(x_51, 4, x_39); +lean_ctor_set(x_51, 5, x_40); +lean_ctor_set(x_51, 6, x_41); +lean_ctor_set(x_51, 7, x_42); +lean_ctor_set(x_51, 8, x_50); +lean_ctor_set(x_51, 9, x_44); +lean_ctor_set(x_51, 10, x_48); +lean_ctor_set_uint8(x_51, sizeof(void*)*11, x_45); +lean_ctor_set_uint8(x_51, sizeof(void*)*11 + 1, x_46); +lean_ctor_set_uint8(x_51, sizeof(void*)*11 + 2, x_47); +x_52 = 1; +x_53 = l_Lean_Elab_Term_elabTerm(x_28, x_5, x_52, x_51, x_11); +return x_53; } } } @@ -690,12 +744,12 @@ lean_ctor_set(x_40, 0, x_39); lean_ctor_set(x_40, 1, x_38); lean_ctor_set(x_7, 8, x_40); x_41 = 1; -x_42 = l_Lean_Elab_Term_elabTermAux___main(x_6, x_41, x_41, x_36, x_7, x_12); +x_42 = l_Lean_Elab_Term_elabTerm(x_36, x_6, x_41, x_7, x_12); return x_42; } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; uint8_t x_54; uint8_t x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; lean_object* x_60; +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; uint8_t x_54; uint8_t x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; lean_object* x_61; x_43 = lean_ctor_get(x_7, 0); x_44 = lean_ctor_get(x_7, 1); x_45 = lean_ctor_get(x_7, 2); @@ -706,9 +760,11 @@ x_49 = lean_ctor_get(x_7, 6); x_50 = lean_ctor_get(x_7, 7); x_51 = lean_ctor_get(x_7, 8); x_52 = lean_ctor_get(x_7, 9); -x_53 = lean_ctor_get_uint8(x_7, sizeof(void*)*10); -x_54 = lean_ctor_get_uint8(x_7, sizeof(void*)*10 + 1); -x_55 = lean_ctor_get_uint8(x_7, sizeof(void*)*10 + 2); +x_53 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_54 = lean_ctor_get_uint8(x_7, sizeof(void*)*11 + 1); +x_55 = lean_ctor_get_uint8(x_7, sizeof(void*)*11 + 2); +x_56 = lean_ctor_get(x_7, 10); +lean_inc(x_56); lean_inc(x_52); lean_inc(x_51); lean_inc(x_50); @@ -721,29 +777,30 @@ lean_inc(x_44); lean_inc(x_43); lean_dec(x_7); lean_inc(x_36); -x_56 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_56, 0, x_1); -lean_ctor_set(x_56, 1, x_36); -x_57 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_57, 0, x_56); -lean_ctor_set(x_57, 1, x_51); -x_58 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_58, 0, x_43); -lean_ctor_set(x_58, 1, x_44); -lean_ctor_set(x_58, 2, x_45); -lean_ctor_set(x_58, 3, x_46); -lean_ctor_set(x_58, 4, x_47); -lean_ctor_set(x_58, 5, x_48); -lean_ctor_set(x_58, 6, x_49); -lean_ctor_set(x_58, 7, x_50); -lean_ctor_set(x_58, 8, x_57); -lean_ctor_set(x_58, 9, x_52); -lean_ctor_set_uint8(x_58, sizeof(void*)*10, x_53); -lean_ctor_set_uint8(x_58, sizeof(void*)*10 + 1, x_54); -lean_ctor_set_uint8(x_58, sizeof(void*)*10 + 2, x_55); -x_59 = 1; -x_60 = l_Lean_Elab_Term_elabTermAux___main(x_6, x_59, x_59, x_36, x_58, x_12); -return x_60; +x_57 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_57, 0, x_1); +lean_ctor_set(x_57, 1, x_36); +x_58 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set(x_58, 1, x_51); +x_59 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_59, 0, x_43); +lean_ctor_set(x_59, 1, x_44); +lean_ctor_set(x_59, 2, x_45); +lean_ctor_set(x_59, 3, x_46); +lean_ctor_set(x_59, 4, x_47); +lean_ctor_set(x_59, 5, x_48); +lean_ctor_set(x_59, 6, x_49); +lean_ctor_set(x_59, 7, x_50); +lean_ctor_set(x_59, 8, x_58); +lean_ctor_set(x_59, 9, x_52); +lean_ctor_set(x_59, 10, x_56); +lean_ctor_set_uint8(x_59, sizeof(void*)*11, x_53); +lean_ctor_set_uint8(x_59, sizeof(void*)*11 + 1, x_54); +lean_ctor_set_uint8(x_59, sizeof(void*)*11 + 2, x_55); +x_60 = 1; +x_61 = l_Lean_Elab_Term_elabTerm(x_36, x_6, x_60, x_59, x_12); +return x_61; } } } @@ -1335,310 +1392,308 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main(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_Elab_Match_6__elabDiscrsAux___main(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_9; uint8_t x_10; -x_9 = lean_array_get_size(x_2); -x_10 = lean_nat_dec_lt(x_4, x_9); -lean_dec(x_9); -if (x_10 == 0) +lean_object* x_8; uint8_t x_9; +x_8 = lean_array_get_size(x_1); +x_9 = lean_nat_dec_lt(x_3, x_8); +lean_dec(x_8); +if (x_9 == 0) { -lean_object* x_11; -lean_dec(x_4); -lean_inc(x_7); -lean_inc(x_3); -lean_inc(x_5); -x_11 = l_Lean_Elab_Term_isDefEq(x_1, x_5, x_3, x_7, x_8); -if (lean_obj_tag(x_11) == 0) +lean_object* x_10; +lean_dec(x_3); +lean_inc(x_6); +lean_inc(x_2); +lean_inc(x_4); +x_10 = l_Lean_Elab_Term_isDefEq(x_4, x_2, x_6, x_7); +if (lean_obj_tag(x_10) == 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); -if (x_13 == 0) -{ -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; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; -lean_dec(x_6); -x_14 = lean_ctor_get(x_11, 1); -lean_inc(x_14); +lean_object* x_11; uint8_t x_12; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_unbox(x_11); lean_dec(x_11); -x_15 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_15, 0, x_5); -x_16 = l_Lean_indentExpr(x_15); -x_17 = l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__3; -x_18 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_16); -x_19 = l_Lean_MessageData_ofList___closed__3; -x_20 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_20, 0, x_18); -lean_ctor_set(x_20, 1, x_19); -x_21 = l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__6; -x_22 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_22, 0, x_20); -lean_ctor_set(x_22, 1, x_21); -x_23 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_23, 0, x_3); -x_24 = l_Lean_indentExpr(x_23); -x_25 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_25, 0, x_22); -lean_ctor_set(x_25, 1, x_24); -x_26 = l_Lean_Elab_Term_throwError___rarg(x_1, x_25, x_7, x_14); -x_27 = !lean_is_exclusive(x_26); -if (x_27 == 0) +if (x_12 == 0) { -return x_26; +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; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +lean_dec(x_5); +x_13 = lean_ctor_get(x_10, 1); +lean_inc(x_13); +lean_dec(x_10); +x_14 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_14, 0, x_4); +x_15 = l_Lean_indentExpr(x_14); +x_16 = l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__3; +x_17 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_15); +x_18 = l_Lean_MessageData_ofList___closed__3; +x_19 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +x_20 = l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__6; +x_21 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_20); +x_22 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_22, 0, x_2); +x_23 = l_Lean_indentExpr(x_22); +x_24 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_24, 0, x_21); +lean_ctor_set(x_24, 1, x_23); +x_25 = l_Lean_Elab_Term_throwError___rarg(x_24, x_6, x_13); +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 0) +{ +return x_25; } else { -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_26, 0); -x_29 = lean_ctor_get(x_26, 1); -lean_inc(x_29); +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_25, 0); +x_28 = lean_ctor_get(x_25, 1); lean_inc(x_28); -lean_dec(x_26); -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_inc(x_27); +lean_dec(x_25); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +return x_29; } } else { -uint8_t x_31; -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_3); -x_31 = !lean_is_exclusive(x_11); -if (x_31 == 0) +uint8_t x_30; +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +x_30 = !lean_is_exclusive(x_10); +if (x_30 == 0) { -lean_object* x_32; -x_32 = lean_ctor_get(x_11, 0); -lean_dec(x_32); -lean_ctor_set(x_11, 0, x_6); -return x_11; +lean_object* x_31; +x_31 = lean_ctor_get(x_10, 0); +lean_dec(x_31); +lean_ctor_set(x_10, 0, x_5); +return x_10; } else { -lean_object* x_33; lean_object* x_34; -x_33 = lean_ctor_get(x_11, 1); -lean_inc(x_33); -lean_dec(x_11); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_6); -lean_ctor_set(x_34, 1, x_33); -return x_34; +lean_object* x_32; lean_object* x_33; +x_32 = lean_ctor_get(x_10, 1); +lean_inc(x_32); +lean_dec(x_10); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_5); +lean_ctor_set(x_33, 1, x_32); +return x_33; } } } else { -uint8_t x_35; -lean_dec(x_7); +uint8_t x_34; lean_dec(x_6); lean_dec(x_5); -lean_dec(x_3); -x_35 = !lean_is_exclusive(x_11); -if (x_35 == 0) -{ -return x_11; -} -else -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_11, 0); -x_37 = lean_ctor_get(x_11, 1); -lean_inc(x_37); -lean_inc(x_36); -lean_dec(x_11); -x_38 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_38, 0, x_36); -lean_ctor_set(x_38, 1, x_37); -return x_38; -} -} -} -else -{ -lean_object* x_39; lean_object* x_40; -x_39 = lean_array_fget(x_2, x_4); -lean_inc(x_7); -x_40 = l_Lean_Elab_Term_whnf(x_1, x_5, x_7, x_8); -if (lean_obj_tag(x_40) == 0) -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; -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); -if (lean_obj_tag(x_41) == 7) -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; lean_object* x_60; -x_56 = lean_ctor_get(x_41, 1); -lean_inc(x_56); -x_57 = lean_ctor_get(x_41, 2); -lean_inc(x_57); -lean_dec(x_41); -x_58 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_58, 0, x_56); -x_59 = 1; -lean_inc(x_7); -lean_inc(x_39); -lean_inc(x_58); -x_60 = l_Lean_Elab_Term_elabTermAux___main(x_58, x_59, x_59, x_39, x_7, x_42); -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_inc(x_7); -x_63 = l_Lean_Elab_Term_ensureHasType(x_39, x_58, x_61, x_7, x_62); -if (lean_obj_tag(x_63) == 0) -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_64 = lean_ctor_get(x_63, 0); -lean_inc(x_64); -x_65 = lean_ctor_get(x_63, 1); -lean_inc(x_65); -lean_dec(x_63); -x_66 = lean_unsigned_to_nat(1u); -x_67 = lean_nat_add(x_4, x_66); lean_dec(x_4); -x_68 = lean_expr_instantiate1(x_57, x_64); -lean_dec(x_57); -x_69 = lean_array_push(x_6, x_64); +lean_dec(x_2); +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; +} +} +} +else +{ +lean_object* x_38; lean_object* x_39; +x_38 = lean_array_fget(x_1, x_3); +lean_inc(x_6); +x_39 = l_Lean_Elab_Term_whnf(x_4, x_6, x_7); +if (lean_obj_tag(x_39) == 0) +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_39, 1); +lean_inc(x_41); +lean_dec(x_39); +if (lean_obj_tag(x_40) == 7) +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; lean_object* x_59; +x_55 = lean_ctor_get(x_40, 1); +lean_inc(x_55); +x_56 = lean_ctor_get(x_40, 2); +lean_inc(x_56); +lean_dec(x_40); +x_57 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_57, 0, x_55); +x_58 = 1; +lean_inc(x_6); +lean_inc(x_57); +x_59 = l_Lean_Elab_Term_elabTerm(x_38, x_57, x_58, x_6, x_41); +if (lean_obj_tag(x_59) == 0) +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_59, 1); +lean_inc(x_61); +lean_dec(x_59); +lean_inc(x_6); +x_62 = l_Lean_Elab_Term_ensureHasType(x_57, x_60, x_6, x_61); +if (lean_obj_tag(x_62) == 0) +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +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_unsigned_to_nat(1u); +x_66 = lean_nat_add(x_3, x_65); +lean_dec(x_3); +x_67 = lean_expr_instantiate1(x_56, x_63); +lean_dec(x_56); +x_68 = lean_array_push(x_5, x_63); +x_3 = x_66; x_4 = x_67; x_5 = x_68; -x_6 = x_69; -x_8 = x_65; +x_7 = x_64; goto _start; } else { -uint8_t x_71; -lean_dec(x_57); -lean_dec(x_7); +uint8_t x_70; +lean_dec(x_56); lean_dec(x_6); -lean_dec(x_4); +lean_dec(x_5); lean_dec(x_3); -x_71 = !lean_is_exclusive(x_63); -if (x_71 == 0) +lean_dec(x_2); +x_70 = !lean_is_exclusive(x_62); +if (x_70 == 0) { -return x_63; +return x_62; } else { -lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_72 = lean_ctor_get(x_63, 0); -x_73 = lean_ctor_get(x_63, 1); -lean_inc(x_73); +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_62, 0); +x_72 = lean_ctor_get(x_62, 1); lean_inc(x_72); -lean_dec(x_63); -x_74 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_74, 0, x_72); -lean_ctor_set(x_74, 1, x_73); -return x_74; +lean_inc(x_71); +lean_dec(x_62); +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_75; -lean_dec(x_58); +uint8_t x_74; lean_dec(x_57); -lean_dec(x_39); -lean_dec(x_7); +lean_dec(x_56); lean_dec(x_6); -lean_dec(x_4); +lean_dec(x_5); lean_dec(x_3); -x_75 = !lean_is_exclusive(x_60); -if (x_75 == 0) +lean_dec(x_2); +x_74 = !lean_is_exclusive(x_59); +if (x_74 == 0) { -return x_60; +return x_59; } else { -lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_76 = lean_ctor_get(x_60, 0); -x_77 = lean_ctor_get(x_60, 1); -lean_inc(x_77); +lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_75 = lean_ctor_get(x_59, 0); +x_76 = lean_ctor_get(x_59, 1); lean_inc(x_76); -lean_dec(x_60); -x_78 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_78, 0, x_76); -lean_ctor_set(x_78, 1, x_77); -return x_78; +lean_inc(x_75); +lean_dec(x_59); +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; } } } else { -lean_object* x_79; -lean_dec(x_41); -lean_dec(x_39); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_3); -x_79 = lean_box(0); -x_43 = x_79; -goto block_55; -} -block_55: -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; -lean_dec(x_43); -x_44 = l_Array_toList___rarg(x_2); -x_45 = l_List_toString___at___private_Lean_Elab_Match_6__elabDiscrsAux___main___spec__1(x_44); -x_46 = l_Array_HasRepr___rarg___closed__1; -x_47 = lean_string_append(x_46, x_45); -lean_dec(x_45); -x_48 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_48, 0, x_47); -x_49 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_49, 0, x_48); -x_50 = l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__9; -x_51 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_51, 0, x_50); -lean_ctor_set(x_51, 1, x_49); -x_52 = l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__12; -x_53 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_53, 0, x_51); -lean_ctor_set(x_53, 1, x_52); -x_54 = l_Lean_Elab_Term_throwError___rarg(x_1, x_53, x_7, x_42); -return x_54; -} -} -else -{ -uint8_t x_80; -lean_dec(x_39); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_3); -x_80 = !lean_is_exclusive(x_40); -if (x_80 == 0) -{ -return x_40; -} -else -{ -lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_81 = lean_ctor_get(x_40, 0); -x_82 = lean_ctor_get(x_40, 1); -lean_inc(x_82); -lean_inc(x_81); +lean_object* x_78; lean_dec(x_40); -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; +lean_dec(x_38); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_78 = lean_box(0); +x_42 = x_78; +goto block_54; +} +block_54: +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +lean_dec(x_42); +x_43 = l_Array_toList___rarg(x_1); +x_44 = l_List_toString___at___private_Lean_Elab_Match_6__elabDiscrsAux___main___spec__1(x_43); +x_45 = l_Array_HasRepr___rarg___closed__1; +x_46 = lean_string_append(x_45, x_44); +lean_dec(x_44); +x_47 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_47, 0, x_46); +x_48 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_48, 0, x_47); +x_49 = l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__9; +x_50 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_48); +x_51 = l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__12; +x_52 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +x_53 = l_Lean_Elab_Term_throwError___rarg(x_52, x_6, x_41); +return x_53; +} +} +else +{ +uint8_t x_79; +lean_dec(x_38); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_79 = !lean_is_exclusive(x_39); +if (x_79 == 0) +{ +return x_39; +} +else +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_ctor_get(x_39, 0); +x_81 = lean_ctor_get(x_39, 1); +lean_inc(x_81); +lean_inc(x_80); +lean_dec(x_39); +x_82 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_82, 0, x_80); +lean_ctor_set(x_82, 1, x_81); +return x_82; } } } @@ -1654,52 +1709,49 @@ x_4 = l_List_toStringAux___main___at___private_Lean_Elab_Match_6__elabDiscrsAux_ return x_4; } } -lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main___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_Elab_Match_6__elabDiscrsAux___main___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_9; -x_9 = l___private_Lean_Elab_Match_6__elabDiscrsAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_2); +lean_object* x_8; +x_8 = l___private_Lean_Elab_Match_6__elabDiscrsAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_1); -return x_9; +return x_8; } } -lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux(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_Elab_Match_6__elabDiscrsAux(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_9; -x_9 = l___private_Lean_Elab_Match_6__elabDiscrsAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -return x_9; +lean_object* x_8; +x_8 = l___private_Lean_Elab_Match_6__elabDiscrsAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +return x_8; } } -lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___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_Elab_Match_6__elabDiscrsAux___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_9; -x_9 = l___private_Lean_Elab_Match_6__elabDiscrsAux(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_2); +lean_object* x_8; +x_8 = l___private_Lean_Elab_Match_6__elabDiscrsAux(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_1); -return x_9; +return x_8; } } -lean_object* l___private_Lean_Elab_Match_7__elabDiscrs(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* l___private_Lean_Elab_Match_7__elabDiscrs(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_7 = lean_unsigned_to_nat(0u); -x_8 = l_Array_empty___closed__1; -x_9 = l___private_Lean_Elab_Match_6__elabDiscrsAux___main(x_1, x_2, x_4, x_7, x_3, x_8, x_5, x_6); -return x_9; +lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Array_empty___closed__1; +x_8 = l___private_Lean_Elab_Match_6__elabDiscrsAux___main(x_1, x_3, x_6, x_2, x_7, x_4, x_5); +return x_8; } } -lean_object* l___private_Lean_Elab_Match_7__elabDiscrs___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* l___private_Lean_Elab_Match_7__elabDiscrs___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_7; -x_7 = l___private_Lean_Elab_Match_7__elabDiscrs(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_2); +lean_object* x_6; +x_6 = l___private_Lean_Elab_Match_7__elabDiscrs(x_1, x_2, x_3, x_4, x_5); lean_dec(x_1); -return x_7; +return x_6; } } lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_expandMacrosInPatterns___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { @@ -1937,7 +1989,7 @@ x_62 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_62, 0, x_61); x_63 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_63, 0, x_62); -x_64 = l_Lean_Elab_Term_throwError___rarg(x_60, x_63, x_4, x_32); +x_64 = l_Lean_Elab_Term_throwErrorAt___rarg(x_60, x_63, x_4, x_32); lean_dec(x_60); x_65 = !lean_is_exclusive(x_64); if (x_65 == 0) @@ -2106,7 +2158,7 @@ x_106 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_106, 0, x_105); x_107 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_107, 0, x_106); -x_108 = l_Lean_Elab_Term_throwError___rarg(x_104, x_107, x_4, x_83); +x_108 = l_Lean_Elab_Term_throwErrorAt___rarg(x_104, x_107, x_4, x_83); lean_dec(x_104); x_109 = lean_ctor_get(x_108, 0); lean_inc(x_109); @@ -2318,6 +2370,51 @@ lean_dec(x_1); return x_2; } } +lean_object* _init_l_Lean_Elab_Term_mkInaccessible___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("_inaccessible"); +return x_1; +} +} +lean_object* _init_l_Lean_Elab_Term_mkInaccessible___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Term_mkInaccessible___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* l_Lean_Elab_Term_mkInaccessible(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_Elab_Term_mkInaccessible___closed__2; +x_3 = l_Lean_mkAnnotation(x_2, x_1); +return x_3; +} +} +lean_object* l_Lean_Elab_Term_isInaccessible_x3f(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_Elab_Term_mkInaccessible___closed__2; +x_3 = l_Lean_isAnnotation_x3f(x_2, x_1); +return x_3; +} +} +lean_object* l_Lean_Elab_Term_isInaccessible_x3f___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Elab_Term_isInaccessible_x3f(x_1); +lean_dec(x_1); +return x_2; +} +} lean_object* _init_l_Lean_Elab_Term_PatternVar_hasToString___closed__1() { _start: { @@ -2381,7 +2478,204 @@ x_3 = l_Lean_Parser_registerBuiltinNodeKind(x_2, x_1); return x_3; } } -lean_object* _init_l___private_Lean_Elab_Match_10__throwCtorExpected___rarg___closed__1() { +lean_object* l___private_Lean_Elab_Match_10__mkMVarSyntax(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; uint8_t x_4; +x_3 = l_Lean_Elab_Term_mkFreshId(x_1, x_2); +x_4 = !lean_is_exclusive(x_3); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_5 = lean_ctor_get(x_3, 0); +x_6 = l_Array_empty___closed__1; +x_7 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_7, 0, x_5); +lean_ctor_set(x_7, 1, x_6); +x_8 = l_Lean_mkOptionalNode___closed__2; +x_9 = lean_array_push(x_8, x_7); +x_10 = l___private_Lean_Elab_Match_9__registerAuxiliaryNodeKind___closed__2; +x_11 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_9); +lean_ctor_set(x_3, 0, x_11); +return x_3; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_12 = lean_ctor_get(x_3, 0); +x_13 = lean_ctor_get(x_3, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_3); +x_14 = l_Array_empty___closed__1; +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_12); +lean_ctor_set(x_15, 1, x_14); +x_16 = l_Lean_mkOptionalNode___closed__2; +x_17 = lean_array_push(x_16, x_15); +x_18 = l___private_Lean_Elab_Match_9__registerAuxiliaryNodeKind___closed__2; +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_17); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_13); +return x_20; +} +} +} +lean_object* l___private_Lean_Elab_Match_11__getMVarSyntaxMVarId(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l_Lean_Syntax_getArg(x_1, x_2); +x_4 = l_Lean_Syntax_getKind(x_3); +return x_4; +} +} +lean_object* l___private_Lean_Elab_Match_11__getMVarSyntaxMVarId___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l___private_Lean_Elab_Match_11__getMVarSyntaxMVarId(x_1); +lean_dec(x_1); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_elabMVarWithIdKind(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_5 = l___private_Lean_Elab_Match_11__getMVarSyntaxMVarId(x_1); +x_6 = l_Lean_mkMVar(x_5); +x_7 = l_Lean_Elab_Term_mkInaccessible(x_6); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_7); +lean_ctor_set(x_8, 1, x_4); +return x_8; +} +} +lean_object* l_Lean_Elab_Term_elabMVarWithIdKind___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_Elab_Term_elabMVarWithIdKind(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_5; +} +} +lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabMVarWithIdKind___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMVarWithIdKind___boxed), 4, 0); +return x_1; +} +} +lean_object* l___regBuiltin_Lean_Elab_Term_elabMVarWithIdKind(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_2 = l_Lean_Elab_Term_termElabAttribute; +x_3 = l___private_Lean_Elab_Match_9__registerAuxiliaryNodeKind___closed__2; +x_4 = l___regBuiltin_Lean_Elab_Term_elabMVarWithIdKind___closed__1; +x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); +return x_5; +} +} +lean_object* l_Lean_Elab_Term_elabInaccessible(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; uint8_t x_7; lean_object* x_8; +x_5 = lean_unsigned_to_nat(1u); +x_6 = l_Lean_Syntax_getArg(x_1, x_5); +x_7 = 1; +x_8 = l_Lean_Elab_Term_elabTerm(x_6, x_2, x_7, x_3, x_4); +if (lean_obj_tag(x_8) == 0) +{ +uint8_t x_9; +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); +x_11 = l_Lean_Elab_Term_mkInaccessible(x_10); +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); +x_14 = l_Lean_Elab_Term_mkInaccessible(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 +{ +uint8_t x_16; +x_16 = !lean_is_exclusive(x_8); +if (x_16 == 0) +{ +return x_8; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_8, 0); +x_18 = lean_ctor_get(x_8, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_8); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +return x_19; +} +} +} +} +lean_object* l_Lean_Elab_Term_elabInaccessible___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_Elab_Term_elabInaccessible(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} +lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabInaccessible___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabInaccessible___boxed), 4, 0); +return x_1; +} +} +lean_object* l___regBuiltin_Lean_Elab_Term_elabInaccessible(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_2 = l_Lean_Elab_Term_termElabAttribute; +x_3 = l_Lean_Parser_Term_inaccessible___elambda__1___closed__2; +x_4 = l___regBuiltin_Lean_Elab_Term_elabInaccessible___closed__1; +x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); +return x_5; +} +} +lean_object* _init_l___private_Lean_Elab_Match_12__throwCtorExpected___rarg___closed__1() { _start: { lean_object* x_1; @@ -2389,71 +2683,139 @@ x_1 = lean_mk_string("invalid pattern, constructor or constant marked with '[mat return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_10__throwCtorExpected___rarg___closed__2() { +lean_object* _init_l___private_Lean_Elab_Match_12__throwCtorExpected___rarg___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_10__throwCtorExpected___rarg___closed__1; +x_1 = l___private_Lean_Elab_Match_12__throwCtorExpected___rarg___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_10__throwCtorExpected___rarg___closed__3() { +lean_object* _init_l___private_Lean_Elab_Match_12__throwCtorExpected___rarg___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_10__throwCtorExpected___rarg___closed__2; +x_1 = l___private_Lean_Elab_Match_12__throwCtorExpected___rarg___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Match_10__throwCtorExpected___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Match_12__throwCtorExpected___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; lean_object* x_6; uint8_t x_7; -x_5 = l___private_Lean_Elab_Match_10__throwCtorExpected___rarg___closed__3; -x_6 = l_Lean_Elab_Term_throwError___rarg(x_1, x_5, x_3, x_4); -x_7 = !lean_is_exclusive(x_6); -if (x_7 == 0) +lean_object* x_4; lean_object* x_5; uint8_t x_6; +x_4 = l___private_Lean_Elab_Match_12__throwCtorExpected___rarg___closed__3; +x_5 = l_Lean_Elab_Term_throwError___rarg(x_4, x_2, x_3); +x_6 = !lean_is_exclusive(x_5); +if (x_6 == 0) { -return x_6; +return x_5; } else { -lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_8 = lean_ctor_get(x_6, 0); -x_9 = lean_ctor_get(x_6, 1); -lean_inc(x_9); +lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_7 = lean_ctor_get(x_5, 0); +x_8 = lean_ctor_get(x_5, 1); lean_inc(x_8); -lean_dec(x_6); -x_10 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_10, 0, x_8); -lean_ctor_set(x_10, 1, x_9); -return x_10; +lean_inc(x_7); +lean_dec(x_5); +x_9 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_9, 0, x_7); +lean_ctor_set(x_9, 1, x_8); +return x_9; } } } -lean_object* l___private_Lean_Elab_Match_10__throwCtorExpected(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Match_12__throwCtorExpected(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_10__throwCtorExpected___rarg___boxed), 4, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_12__throwCtorExpected___rarg___boxed), 3, 0); return x_2; } } -lean_object* l___private_Lean_Elab_Match_10__throwCtorExpected___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Match_12__throwCtorExpected___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; -x_5 = l___private_Lean_Elab_Match_10__throwCtorExpected___rarg(x_1, x_2, x_3, x_4); -lean_dec(x_2); +lean_object* x_4; +x_4 = l___private_Lean_Elab_Match_12__throwCtorExpected___rarg(x_1, x_2, x_3); lean_dec(x_1); -return x_5; +return x_4; } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___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* l_Lean_Elab_Term_CollectPatternVars_withRef___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; +x_6 = !lean_is_exclusive(x_4); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; +x_7 = lean_ctor_get(x_4, 10); +lean_dec(x_7); +lean_ctor_set(x_4, 10, x_1); +x_8 = lean_apply_3(x_2, x_3, x_4, x_5); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; uint8_t x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; +x_9 = lean_ctor_get(x_4, 0); +x_10 = lean_ctor_get(x_4, 1); +x_11 = lean_ctor_get(x_4, 2); +x_12 = lean_ctor_get(x_4, 3); +x_13 = lean_ctor_get(x_4, 4); +x_14 = lean_ctor_get(x_4, 5); +x_15 = lean_ctor_get(x_4, 6); +x_16 = lean_ctor_get(x_4, 7); +x_17 = lean_ctor_get(x_4, 8); +x_18 = lean_ctor_get(x_4, 9); +x_19 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_20 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_21 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +lean_inc(x_18); +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_11); +lean_inc(x_10); +lean_inc(x_9); +lean_dec(x_4); +x_22 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_22, 0, x_9); +lean_ctor_set(x_22, 1, x_10); +lean_ctor_set(x_22, 2, x_11); +lean_ctor_set(x_22, 3, x_12); +lean_ctor_set(x_22, 4, x_13); +lean_ctor_set(x_22, 5, x_14); +lean_ctor_set(x_22, 6, x_15); +lean_ctor_set(x_22, 7, x_16); +lean_ctor_set(x_22, 8, x_17); +lean_ctor_set(x_22, 9, x_18); +lean_ctor_set(x_22, 10, x_1); +lean_ctor_set_uint8(x_22, sizeof(void*)*11, x_19); +lean_ctor_set_uint8(x_22, sizeof(void*)*11 + 1, x_20); +lean_ctor_set_uint8(x_22, sizeof(void*)*11 + 2, x_21); +x_23 = lean_apply_3(x_2, x_3, x_22, x_5); +return x_23; +} +} +} +lean_object* l_Lean_Elab_Term_CollectPatternVars_withRef(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_CollectPatternVars_withRef___rarg), 5, 0); +return x_2; +} +} +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___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; uint8_t x_8; @@ -2537,7 +2899,7 @@ return x_25; } } } -lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; uint8_t x_7; @@ -2549,7 +2911,7 @@ if (x_7 == 0) lean_object* x_8; lean_object* x_9; lean_dec(x_3); x_8 = lean_unsigned_to_nat(0u); -x_9 = l_Array_iterateMAux___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__1(x_1, x_1, x_8, x_8, x_4, x_5); +x_9 = l_Array_iterateMAux___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__1(x_1, x_1, x_8, x_8, x_4, x_5); return x_9; } else @@ -2634,7 +2996,7 @@ lean_ctor_set(x_88, 0, x_23); lean_ctor_set(x_88, 1, x_10); x_89 = lean_array_push(x_87, x_88); lean_ctor_set(x_4, 2, x_89); -x_90 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__4(x_1, x_2, x_25, x_4, x_21); +x_90 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__4(x_1, x_2, x_25, x_4, x_21); if (lean_obj_tag(x_90) == 0) { lean_object* x_91; lean_object* x_92; lean_object* x_93; @@ -2688,7 +3050,7 @@ lean_ctor_set(x_104, 1, x_98); lean_ctor_set(x_104, 2, x_103); lean_ctor_set(x_104, 3, x_100); lean_ctor_set(x_104, 4, x_101); -x_105 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__4(x_1, x_2, x_25, x_104, x_21); +x_105 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__4(x_1, x_2, x_25, x_104, x_21); if (lean_obj_tag(x_105) == 0) { lean_object* x_106; lean_object* x_107; lean_object* x_108; @@ -3020,7 +3382,7 @@ lean_ctor_set(x_162, 1, x_155); lean_ctor_set(x_162, 2, x_161); lean_ctor_set(x_162, 3, x_157); lean_ctor_set(x_162, 4, x_158); -x_163 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__4(x_1, x_2, x_25, x_162, x_21); +x_163 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__4(x_1, x_2, x_25, x_162, x_21); if (lean_obj_tag(x_163) == 0) { lean_object* x_164; lean_object* x_165; lean_object* x_166; @@ -3303,7 +3665,7 @@ lean_ctor_set(x_228, 1, x_221); lean_ctor_set(x_228, 2, x_227); lean_ctor_set(x_228, 3, x_223); lean_ctor_set(x_228, 4, x_224); -x_229 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__4(x_1, x_2, x_25, x_228, x_219); +x_229 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__4(x_1, x_2, x_25, x_228, x_219); if (lean_obj_tag(x_229) == 0) { lean_object* x_230; lean_object* x_231; lean_object* x_232; @@ -3564,7 +3926,7 @@ lean_ctor_set(x_310, 0, x_245); lean_ctor_set(x_310, 1, x_10); x_311 = lean_array_push(x_309, x_310); lean_ctor_set(x_4, 2, x_311); -x_312 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__4(x_1, x_2, x_247, x_4, x_243); +x_312 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__4(x_1, x_2, x_247, x_4, x_243); if (lean_obj_tag(x_312) == 0) { lean_object* x_313; lean_object* x_314; lean_object* x_315; @@ -3618,7 +3980,7 @@ lean_ctor_set(x_326, 1, x_320); lean_ctor_set(x_326, 2, x_325); lean_ctor_set(x_326, 3, x_322); lean_ctor_set(x_326, 4, x_323); -x_327 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__4(x_1, x_2, x_247, x_326, x_243); +x_327 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__4(x_1, x_2, x_247, x_326, x_243); if (lean_obj_tag(x_327) == 0) { lean_object* x_328; lean_object* x_329; lean_object* x_330; @@ -3950,7 +4312,7 @@ lean_ctor_set(x_384, 1, x_377); lean_ctor_set(x_384, 2, x_383); lean_ctor_set(x_384, 3, x_379); lean_ctor_set(x_384, 4, x_380); -x_385 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__4(x_1, x_2, x_247, x_384, x_243); +x_385 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__4(x_1, x_2, x_247, x_384, x_243); if (lean_obj_tag(x_385) == 0) { lean_object* x_386; lean_object* x_387; lean_object* x_388; @@ -4233,7 +4595,7 @@ lean_ctor_set(x_450, 1, x_443); lean_ctor_set(x_450, 2, x_449); lean_ctor_set(x_450, 3, x_445); lean_ctor_set(x_450, 4, x_446); -x_451 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__4(x_1, x_2, x_247, x_450, x_441); +x_451 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__4(x_1, x_2, x_247, x_450, x_441); if (lean_obj_tag(x_451) == 0) { lean_object* x_452; lean_object* x_453; lean_object* x_454; @@ -4510,7 +4872,7 @@ return x_469; } } } -lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__5___lambda__1(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__5___lambda__1(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { uint8_t x_9; @@ -4523,19 +4885,19 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); x_10 = lean_unsigned_to_nat(0u); -x_11 = l_Array_iterateMAux___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__1(x_1, x_1, x_10, x_10, x_7, x_8); +x_11 = l_Array_iterateMAux___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__1(x_1, x_1, x_10, x_10, x_7, x_8); lean_dec(x_1); return x_11; } else { lean_object* x_12; -x_12 = l___private_Lean_Meta_Basic_5__forallTelescopeReducingAuxAux___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__3(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_8); +x_12 = l___private_Lean_Meta_Basic_5__forallTelescopeReducingAuxAux___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__3(x_2, x_3, x_4, x_1, x_5, x_6, x_7, x_8); return x_12; } } } -lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__5(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__5(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; @@ -4547,7 +4909,7 @@ lean_inc(x_7); lean_inc(x_3); lean_inc(x_2); lean_inc(x_4); -x_15 = lean_alloc_closure((void*)(l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__5___lambda__1___boxed), 8, 5); +x_15 = lean_alloc_closure((void*)(l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__5___lambda__1___boxed), 8, 5); lean_closure_set(x_15, 0, x_4); lean_closure_set(x_15, 1, x_14); lean_closure_set(x_15, 2, x_2); @@ -4651,7 +5013,7 @@ lean_ctor_set(x_97, 0, x_32); lean_ctor_set(x_97, 1, x_19); x_98 = lean_array_push(x_96, x_97); lean_ctor_set(x_10, 2, x_98); -x_99 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_34, x_10, x_30); +x_99 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_34, x_10, x_30); if (lean_obj_tag(x_99) == 0) { lean_object* x_100; lean_object* x_101; lean_object* x_102; @@ -4705,7 +5067,7 @@ lean_ctor_set(x_113, 1, x_107); lean_ctor_set(x_113, 2, x_112); lean_ctor_set(x_113, 3, x_109); lean_ctor_set(x_113, 4, x_110); -x_114 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_34, x_113, x_30); +x_114 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_34, x_113, x_30); if (lean_obj_tag(x_114) == 0) { lean_object* x_115; lean_object* x_116; lean_object* x_117; @@ -5037,7 +5399,7 @@ lean_ctor_set(x_171, 1, x_164); lean_ctor_set(x_171, 2, x_170); lean_ctor_set(x_171, 3, x_166); lean_ctor_set(x_171, 4, x_167); -x_172 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_34, x_171, x_30); +x_172 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_34, x_171, x_30); if (lean_obj_tag(x_172) == 0) { lean_object* x_173; lean_object* x_174; lean_object* x_175; @@ -5320,7 +5682,7 @@ lean_ctor_set(x_237, 1, x_230); lean_ctor_set(x_237, 2, x_236); lean_ctor_set(x_237, 3, x_232); lean_ctor_set(x_237, 4, x_233); -x_238 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_34, x_237, x_228); +x_238 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_34, x_237, x_228); if (lean_obj_tag(x_238) == 0) { lean_object* x_239; lean_object* x_240; lean_object* x_241; @@ -5581,7 +5943,7 @@ lean_ctor_set(x_319, 0, x_254); lean_ctor_set(x_319, 1, x_19); x_320 = lean_array_push(x_318, x_319); lean_ctor_set(x_10, 2, x_320); -x_321 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_256, x_10, x_252); +x_321 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_256, x_10, x_252); if (lean_obj_tag(x_321) == 0) { lean_object* x_322; lean_object* x_323; lean_object* x_324; @@ -5635,7 +5997,7 @@ lean_ctor_set(x_335, 1, x_329); lean_ctor_set(x_335, 2, x_334); lean_ctor_set(x_335, 3, x_331); lean_ctor_set(x_335, 4, x_332); -x_336 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_256, x_335, x_252); +x_336 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_256, x_335, x_252); if (lean_obj_tag(x_336) == 0) { lean_object* x_337; lean_object* x_338; lean_object* x_339; @@ -5967,7 +6329,7 @@ lean_ctor_set(x_393, 1, x_386); lean_ctor_set(x_393, 2, x_392); lean_ctor_set(x_393, 3, x_388); lean_ctor_set(x_393, 4, x_389); -x_394 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_256, x_393, x_252); +x_394 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_256, x_393, x_252); if (lean_obj_tag(x_394) == 0) { lean_object* x_395; lean_object* x_396; lean_object* x_397; @@ -6250,7 +6612,7 @@ lean_ctor_set(x_459, 1, x_452); lean_ctor_set(x_459, 2, x_458); lean_ctor_set(x_459, 3, x_454); lean_ctor_set(x_459, 4, x_455); -x_460 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_256, x_459, x_450); +x_460 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_256, x_459, x_450); if (lean_obj_tag(x_460) == 0) { lean_object* x_461; lean_object* x_462; lean_object* x_463; @@ -6539,7 +6901,7 @@ return x_478; } } } -lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; uint8_t x_7; @@ -6551,7 +6913,7 @@ if (x_7 == 0) lean_object* x_8; lean_object* x_9; lean_dec(x_3); x_8 = lean_unsigned_to_nat(0u); -x_9 = l_Array_iterateMAux___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__1(x_1, x_1, x_8, x_8, x_4, x_5); +x_9 = l_Array_iterateMAux___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__1(x_1, x_1, x_8, x_8, x_4, x_5); return x_9; } else @@ -6636,7 +6998,7 @@ lean_ctor_set(x_88, 0, x_23); lean_ctor_set(x_88, 1, x_10); x_89 = lean_array_push(x_87, x_88); lean_ctor_set(x_4, 2, x_89); -x_90 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__6(x_1, x_2, x_25, x_4, x_21); +x_90 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__6(x_1, x_2, x_25, x_4, x_21); if (lean_obj_tag(x_90) == 0) { lean_object* x_91; lean_object* x_92; lean_object* x_93; @@ -6690,7 +7052,7 @@ lean_ctor_set(x_104, 1, x_98); lean_ctor_set(x_104, 2, x_103); lean_ctor_set(x_104, 3, x_100); lean_ctor_set(x_104, 4, x_101); -x_105 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__6(x_1, x_2, x_25, x_104, x_21); +x_105 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__6(x_1, x_2, x_25, x_104, x_21); if (lean_obj_tag(x_105) == 0) { lean_object* x_106; lean_object* x_107; lean_object* x_108; @@ -7022,7 +7384,7 @@ lean_ctor_set(x_162, 1, x_155); lean_ctor_set(x_162, 2, x_161); lean_ctor_set(x_162, 3, x_157); lean_ctor_set(x_162, 4, x_158); -x_163 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__6(x_1, x_2, x_25, x_162, x_21); +x_163 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__6(x_1, x_2, x_25, x_162, x_21); if (lean_obj_tag(x_163) == 0) { lean_object* x_164; lean_object* x_165; lean_object* x_166; @@ -7305,7 +7667,7 @@ lean_ctor_set(x_228, 1, x_221); lean_ctor_set(x_228, 2, x_227); lean_ctor_set(x_228, 3, x_223); lean_ctor_set(x_228, 4, x_224); -x_229 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__6(x_1, x_2, x_25, x_228, x_219); +x_229 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__6(x_1, x_2, x_25, x_228, x_219); if (lean_obj_tag(x_229) == 0) { lean_object* x_230; lean_object* x_231; lean_object* x_232; @@ -7566,7 +7928,7 @@ lean_ctor_set(x_310, 0, x_245); lean_ctor_set(x_310, 1, x_10); x_311 = lean_array_push(x_309, x_310); lean_ctor_set(x_4, 2, x_311); -x_312 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__6(x_1, x_2, x_247, x_4, x_243); +x_312 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__6(x_1, x_2, x_247, x_4, x_243); if (lean_obj_tag(x_312) == 0) { lean_object* x_313; lean_object* x_314; lean_object* x_315; @@ -7620,7 +7982,7 @@ lean_ctor_set(x_326, 1, x_320); lean_ctor_set(x_326, 2, x_325); lean_ctor_set(x_326, 3, x_322); lean_ctor_set(x_326, 4, x_323); -x_327 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__6(x_1, x_2, x_247, x_326, x_243); +x_327 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__6(x_1, x_2, x_247, x_326, x_243); if (lean_obj_tag(x_327) == 0) { lean_object* x_328; lean_object* x_329; lean_object* x_330; @@ -7952,7 +8314,7 @@ lean_ctor_set(x_384, 1, x_377); lean_ctor_set(x_384, 2, x_383); lean_ctor_set(x_384, 3, x_379); lean_ctor_set(x_384, 4, x_380); -x_385 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__6(x_1, x_2, x_247, x_384, x_243); +x_385 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__6(x_1, x_2, x_247, x_384, x_243); if (lean_obj_tag(x_385) == 0) { lean_object* x_386; lean_object* x_387; lean_object* x_388; @@ -8235,7 +8597,7 @@ lean_ctor_set(x_450, 1, x_443); lean_ctor_set(x_450, 2, x_449); lean_ctor_set(x_450, 3, x_445); lean_ctor_set(x_450, 4, x_446); -x_451 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__6(x_1, x_2, x_247, x_450, x_441); +x_451 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__6(x_1, x_2, x_247, x_450, x_441); if (lean_obj_tag(x_451) == 0) { lean_object* x_452; lean_object* x_453; lean_object* x_454; @@ -8512,7 +8874,7 @@ return x_469; } } } -lean_object* l___private_Lean_Meta_Basic_5__forallTelescopeReducingAuxAux___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__3(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Meta_Basic_5__forallTelescopeReducingAuxAux___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__3(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) { _start: { lean_object* x_9; @@ -8581,7 +8943,7 @@ lean_object* x_45; lean_object* x_46; x_45 = lean_ctor_get(x_7, 1); lean_dec(x_45); lean_ctor_set(x_7, 1, x_3); -x_46 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__6(x_4, x_4, x_5, x_7, x_8); +x_46 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__6(x_4, x_4, x_5, x_7, x_8); lean_dec(x_4); return x_46; } @@ -8603,7 +8965,7 @@ lean_ctor_set(x_51, 1, x_3); lean_ctor_set(x_51, 2, x_48); lean_ctor_set(x_51, 3, x_49); lean_ctor_set(x_51, 4, x_50); -x_52 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__6(x_4, x_4, x_5, x_51, x_8); +x_52 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__6(x_4, x_4, x_5, x_51, x_8); lean_dec(x_4); return x_52; } @@ -8660,7 +9022,7 @@ lean_dec(x_10); lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); -x_13 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__4(x_4, x_4, x_5, x_7, x_8); +x_13 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__4(x_4, x_4, x_5, x_7, x_8); lean_dec(x_4); return x_13; } @@ -8669,7 +9031,7 @@ else lean_object* x_14; lean_inc(x_5); lean_inc(x_4); -x_14 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_10, x_4, x_5, x_7, x_8); +x_14 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_10, x_4, x_5, x_7, x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -8702,7 +9064,7 @@ lean_dec(x_10); lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); -x_20 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__4(x_4, x_4, x_5, x_19, x_8); +x_20 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__4(x_4, x_4, x_5, x_19, x_8); lean_dec(x_4); return x_20; } @@ -8711,7 +9073,7 @@ else lean_object* x_21; lean_inc(x_5); lean_inc(x_4); -x_21 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_10, x_4, x_5, x_19, x_8); +x_21 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_10, x_4, x_5, x_19, x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -8721,7 +9083,7 @@ return x_21; } } } -lean_object* l___private_Lean_Meta_Basic_6__forallTelescopeReducingAux___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Meta_Basic_6__forallTelescopeReducingAux___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; @@ -8743,7 +9105,7 @@ lean_dec(x_6); lean_dec(x_2); x_9 = l_Array_empty___closed__1; x_10 = lean_unsigned_to_nat(0u); -x_11 = l_Array_iterateMAux___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__1(x_9, x_9, x_10, x_10, x_3, x_7); +x_11 = l_Array_iterateMAux___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__1(x_9, x_9, x_10, x_10, x_3, x_7); return x_11; } else @@ -8754,7 +9116,7 @@ lean_inc(x_12); x_13 = 1; x_14 = l_Array_empty___closed__1; x_15 = lean_unsigned_to_nat(0u); -x_16 = l___private_Lean_Meta_Basic_5__forallTelescopeReducingAuxAux___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__3(x_13, x_2, x_12, x_14, x_15, x_6, x_3, x_7); +x_16 = l___private_Lean_Meta_Basic_5__forallTelescopeReducingAuxAux___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__3(x_13, x_2, x_12, x_14, x_15, x_6, x_3, x_7); return x_16; } } @@ -8784,248 +9146,239 @@ return x_20; } } } -lean_object* l___private_Lean_Elab_Match_11__getNumExplicitCtorParams(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Match_13__getNumExplicitCtorParams(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; -x_5 = lean_ctor_get(x_2, 0); +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_4, 2); lean_inc(x_5); -x_6 = lean_ctor_get(x_5, 2); +lean_dec(x_4); +x_6 = lean_ctor_get(x_1, 3); lean_inc(x_6); -lean_dec(x_5); -x_7 = lean_ctor_get(x_2, 3); -lean_inc(x_7); -lean_dec(x_2); -x_8 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_8, 0, x_7); -x_9 = lean_ctor_get(x_4, 0); -lean_inc(x_9); -x_10 = !lean_is_exclusive(x_9); -if (x_10 == 0) +lean_dec(x_1); +x_7 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_7, 0, x_6); +x_8 = lean_ctor_get(x_3, 0); +lean_inc(x_8); +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_11 = lean_ctor_get(x_9, 4); -x_12 = lean_ctor_get(x_3, 0); -lean_inc(x_12); -x_13 = l_Lean_TraceState_Inhabited___closed__1; -lean_ctor_set(x_9, 4, x_13); -x_14 = l___private_Lean_Meta_Basic_6__forallTelescopeReducingAux___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__2(x_6, x_8, x_12, x_9); -if (lean_obj_tag(x_14) == 0) +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_10 = lean_ctor_get(x_8, 4); +x_11 = lean_ctor_get(x_2, 0); +lean_inc(x_11); +x_12 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_8, 4, x_12); +x_13 = l___private_Lean_Meta_Basic_6__forallTelescopeReducingAux___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__2(x_5, x_7, x_11, x_8); +if (lean_obj_tag(x_13) == 0) { -uint8_t x_15; -x_15 = !lean_is_exclusive(x_14); -if (x_15 == 0) +uint8_t x_14; +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) { -lean_object* x_16; lean_object* x_17; -x_16 = lean_ctor_get(x_14, 1); -x_17 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_16, x_11); -lean_ctor_set(x_14, 1, x_17); -return x_14; +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_13, 1); +x_16 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_15, x_10); +lean_ctor_set(x_13, 1, x_16); +return x_13; } else { -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_18 = lean_ctor_get(x_14, 0); -x_19 = lean_ctor_get(x_14, 1); -lean_inc(x_19); +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_17 = lean_ctor_get(x_13, 0); +x_18 = lean_ctor_get(x_13, 1); lean_inc(x_18); -lean_dec(x_14); -x_20 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_19, x_11); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_18); -lean_ctor_set(x_21, 1, x_20); -return x_21; +lean_inc(x_17); +lean_dec(x_13); +x_19 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_18, x_10); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_17); +lean_ctor_set(x_20, 1, x_19); +return x_20; } } else { -uint8_t x_22; -x_22 = !lean_is_exclusive(x_14); -if (x_22 == 0) +uint8_t x_21; +x_21 = !lean_is_exclusive(x_13); +if (x_21 == 0) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_23 = lean_ctor_get(x_14, 0); -x_24 = lean_ctor_get(x_14, 1); -lean_inc(x_3); -x_25 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_23); -x_26 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_24, x_11); -lean_ctor_set(x_14, 1, x_26); -lean_ctor_set(x_14, 0, x_25); -return x_14; +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_22 = lean_ctor_get(x_13, 0); +x_23 = lean_ctor_get(x_13, 1); +lean_inc(x_2); +x_24 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_22); +x_25 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_23, x_10); +lean_ctor_set(x_13, 1, x_25); +lean_ctor_set(x_13, 0, x_24); +return x_13; } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_27 = lean_ctor_get(x_14, 0); -x_28 = lean_ctor_get(x_14, 1); -lean_inc(x_28); +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_26 = lean_ctor_get(x_13, 0); +x_27 = lean_ctor_get(x_13, 1); lean_inc(x_27); -lean_dec(x_14); -lean_inc(x_3); -x_29 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_27); -x_30 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_28, x_11); -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_inc(x_26); +lean_dec(x_13); +lean_inc(x_2); +x_28 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_26); +x_29 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_27, x_10); +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; } } } else { -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_32 = lean_ctor_get(x_9, 0); -x_33 = lean_ctor_get(x_9, 1); -x_34 = lean_ctor_get(x_9, 2); -x_35 = lean_ctor_get(x_9, 3); -x_36 = lean_ctor_get(x_9, 4); -x_37 = lean_ctor_get(x_9, 5); -lean_inc(x_37); +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_31 = lean_ctor_get(x_8, 0); +x_32 = lean_ctor_get(x_8, 1); +x_33 = lean_ctor_get(x_8, 2); +x_34 = lean_ctor_get(x_8, 3); +x_35 = lean_ctor_get(x_8, 4); +x_36 = lean_ctor_get(x_8, 5); lean_inc(x_36); lean_inc(x_35); lean_inc(x_34); lean_inc(x_33); lean_inc(x_32); -lean_dec(x_9); -x_38 = lean_ctor_get(x_3, 0); -lean_inc(x_38); -x_39 = l_Lean_TraceState_Inhabited___closed__1; -x_40 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_40, 0, x_32); -lean_ctor_set(x_40, 1, x_33); -lean_ctor_set(x_40, 2, x_34); -lean_ctor_set(x_40, 3, x_35); -lean_ctor_set(x_40, 4, x_39); -lean_ctor_set(x_40, 5, x_37); -x_41 = l___private_Lean_Meta_Basic_6__forallTelescopeReducingAux___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__2(x_6, x_8, x_38, x_40); -if (lean_obj_tag(x_41) == 0) +lean_inc(x_31); +lean_dec(x_8); +x_37 = lean_ctor_get(x_2, 0); +lean_inc(x_37); +x_38 = l_Lean_TraceState_Inhabited___closed__1; +x_39 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_39, 0, x_31); +lean_ctor_set(x_39, 1, x_32); +lean_ctor_set(x_39, 2, x_33); +lean_ctor_set(x_39, 3, x_34); +lean_ctor_set(x_39, 4, x_38); +lean_ctor_set(x_39, 5, x_36); +x_40 = l___private_Lean_Meta_Basic_6__forallTelescopeReducingAux___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__2(x_5, x_7, x_37, x_39); +if (lean_obj_tag(x_40) == 0) { -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_42 = lean_ctor_get(x_41, 0); +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_40, 1); lean_inc(x_42); -x_43 = lean_ctor_get(x_41, 1); -lean_inc(x_43); -if (lean_is_exclusive(x_41)) { - lean_ctor_release(x_41, 0); - lean_ctor_release(x_41, 1); - x_44 = x_41; +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + x_43 = x_40; } else { - lean_dec_ref(x_41); - x_44 = lean_box(0); + lean_dec_ref(x_40); + x_43 = lean_box(0); } -x_45 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_43, x_36); -if (lean_is_scalar(x_44)) { - x_46 = lean_alloc_ctor(0, 2, 0); +x_44 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_42, x_35); +if (lean_is_scalar(x_43)) { + x_45 = lean_alloc_ctor(0, 2, 0); } else { - x_46 = x_44; + x_45 = x_43; } -lean_ctor_set(x_46, 0, x_42); -lean_ctor_set(x_46, 1, x_45); -return x_46; +lean_ctor_set(x_45, 0, x_41); +lean_ctor_set(x_45, 1, x_44); +return x_45; } else { -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_47 = lean_ctor_get(x_41, 0); +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_46 = lean_ctor_get(x_40, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_40, 1); lean_inc(x_47); -x_48 = lean_ctor_get(x_41, 1); -lean_inc(x_48); -if (lean_is_exclusive(x_41)) { - lean_ctor_release(x_41, 0); - lean_ctor_release(x_41, 1); - x_49 = x_41; +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + x_48 = x_40; } else { - lean_dec_ref(x_41); - x_49 = lean_box(0); + lean_dec_ref(x_40); + x_48 = lean_box(0); } -lean_inc(x_3); -x_50 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_47); -x_51 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_48, x_36); -if (lean_is_scalar(x_49)) { - x_52 = lean_alloc_ctor(1, 2, 0); +lean_inc(x_2); +x_49 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_46); +x_50 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_47, x_35); +if (lean_is_scalar(x_48)) { + x_51 = lean_alloc_ctor(1, 2, 0); } else { - x_52 = x_49; + x_51 = x_48; } -lean_ctor_set(x_52, 0, x_50); -lean_ctor_set(x_52, 1, x_51); -return x_52; +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +return x_51; } } } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___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* l_Array_iterateMAux___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___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_Array_iterateMAux___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Array_iterateMAux___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_2); lean_dec(x_1); return x_7; } } -lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___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* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__4(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__4(x_1, x_2, x_3, x_4, x_5); lean_dec(x_2); lean_dec(x_1); return x_6; } } -lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__5___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* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__5___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: { uint8_t x_9; lean_object* x_10; x_9 = lean_unbox(x_2); lean_dec(x_2); -x_10 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__5___lambda__1(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8); +x_10 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__5___lambda__1(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8); return x_10; } } -lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { uint8_t x_12; lean_object* x_13; x_12 = lean_unbox(x_1); lean_dec(x_1); -x_13 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__5(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_13 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__5(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); return x_13; } } -lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___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* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__6(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__6(x_1, x_2, x_3, x_4, x_5); lean_dec(x_2); lean_dec(x_1); return x_6; } } -lean_object* l___private_Lean_Meta_Basic_5__forallTelescopeReducingAuxAux___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___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* l___private_Lean_Meta_Basic_5__forallTelescopeReducingAuxAux___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___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) { _start: { uint8_t x_9; lean_object* x_10; x_9 = lean_unbox(x_1); lean_dec(x_1); -x_10 = l___private_Lean_Meta_Basic_5__forallTelescopeReducingAuxAux___main___at___private_Lean_Elab_Match_11__getNumExplicitCtorParams___spec__3(x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_10 = l___private_Lean_Meta_Basic_5__forallTelescopeReducingAuxAux___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__3(x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8); return x_10; } } -lean_object* l___private_Lean_Elab_Match_11__getNumExplicitCtorParams___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l___private_Lean_Elab_Match_11__getNumExplicitCtorParams(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} -lean_object* _init_l___private_Lean_Elab_Match_12__throwAmbiguous___rarg___closed__1() { +lean_object* _init_l___private_Lean_Elab_Match_14__throwAmbiguous___rarg___closed__1() { _start: { lean_object* x_1; @@ -9033,77 +9386,76 @@ x_1 = lean_mk_string("ambiguous pattern, use fully qualified name, possible inte return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_12__throwAmbiguous___rarg___closed__2() { +lean_object* _init_l___private_Lean_Elab_Match_14__throwAmbiguous___rarg___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_12__throwAmbiguous___rarg___closed__1; +x_1 = l___private_Lean_Elab_Match_14__throwAmbiguous___rarg___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_12__throwAmbiguous___rarg___closed__3() { +lean_object* _init_l___private_Lean_Elab_Match_14__throwAmbiguous___rarg___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_12__throwAmbiguous___rarg___closed__2; +x_1 = l___private_Lean_Elab_Match_14__throwAmbiguous___rarg___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Match_12__throwAmbiguous___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_Match_14__throwAmbiguous___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_6 = l_List_map___main___at_Lean_MessageData_coeOfListExpr___spec__1(x_2); -x_7 = l_Lean_MessageData_ofList(x_6); -lean_dec(x_6); -x_8 = l___private_Lean_Elab_Match_12__throwAmbiguous___rarg___closed__3; -x_9 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_9, 0, x_8); -lean_ctor_set(x_9, 1, x_7); -x_10 = l_Lean_Elab_Term_throwError___rarg(x_1, x_9, x_4, x_5); -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_5 = l_List_map___main___at_Lean_MessageData_coeOfListExpr___spec__1(x_1); +x_6 = l_Lean_MessageData_ofList(x_5); +lean_dec(x_5); +x_7 = l___private_Lean_Elab_Match_14__throwAmbiguous___rarg___closed__3; +x_8 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_8, 0, x_7); +lean_ctor_set(x_8, 1, x_6); +x_9 = l_Lean_Elab_Term_throwError___rarg(x_8, x_3, x_4); +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) { -return x_10; +return x_9; } else { -lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_12 = lean_ctor_get(x_10, 0); -x_13 = lean_ctor_get(x_10, 1); -lean_inc(x_13); +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_9, 0); +x_12 = lean_ctor_get(x_9, 1); lean_inc(x_12); -lean_dec(x_10); -x_14 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_14, 0, x_12); -lean_ctor_set(x_14, 1, x_13); -return x_14; +lean_inc(x_11); +lean_dec(x_9); +x_13 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_13, 0, x_11); +lean_ctor_set(x_13, 1, x_12); +return x_13; } } } -lean_object* l___private_Lean_Elab_Match_12__throwAmbiguous(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Match_14__throwAmbiguous(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_12__throwAmbiguous___rarg___boxed), 5, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_14__throwAmbiguous___rarg___boxed), 4, 0); return x_2; } } -lean_object* l___private_Lean_Elab_Match_12__throwAmbiguous___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_Match_14__throwAmbiguous___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_6; -x_6 = l___private_Lean_Elab_Match_12__throwAmbiguous___rarg(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_3); -lean_dec(x_1); -return x_6; +lean_object* x_5; +x_5 = l___private_Lean_Elab_Match_14__throwAmbiguous___rarg(x_1, x_2, x_3, x_4); +lean_dec(x_2); +return x_5; } } -lean_object* _init_l___private_Lean_Elab_Match_13__processVar___closed__1() { +lean_object* _init_l___private_Lean_Elab_Match_15__processVar___closed__1() { _start: { lean_object* x_1; @@ -9111,27 +9463,27 @@ x_1 = lean_mk_string("invalid pattern variable, must be atomic"); return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_13__processVar___closed__2() { +lean_object* _init_l___private_Lean_Elab_Match_15__processVar___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_13__processVar___closed__1; +x_1 = l___private_Lean_Elab_Match_15__processVar___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_13__processVar___closed__3() { +lean_object* _init_l___private_Lean_Elab_Match_15__processVar___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_13__processVar___closed__2; +x_1 = l___private_Lean_Elab_Match_15__processVar___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_13__processVar___closed__4() { +lean_object* _init_l___private_Lean_Elab_Match_15__processVar___closed__4() { _start: { lean_object* x_1; @@ -9139,27 +9491,27 @@ x_1 = lean_mk_string("invalid pattern, variable '"); return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_13__processVar___closed__5() { +lean_object* _init_l___private_Lean_Elab_Match_15__processVar___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_13__processVar___closed__4; +x_1 = l___private_Lean_Elab_Match_15__processVar___closed__4; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_13__processVar___closed__6() { +lean_object* _init_l___private_Lean_Elab_Match_15__processVar___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_13__processVar___closed__5; +x_1 = l___private_Lean_Elab_Match_15__processVar___closed__5; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_13__processVar___closed__7() { +lean_object* _init_l___private_Lean_Elab_Match_15__processVar___closed__7() { _start: { lean_object* x_1; @@ -9167,225 +9519,225 @@ x_1 = lean_mk_string("' occurred more than once"); return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_13__processVar___closed__8() { +lean_object* _init_l___private_Lean_Elab_Match_15__processVar___closed__8() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_13__processVar___closed__7; +x_1 = l___private_Lean_Elab_Match_15__processVar___closed__7; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_13__processVar___closed__9() { +lean_object* _init_l___private_Lean_Elab_Match_15__processVar___closed__9() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_13__processVar___closed__8; +x_1 = l___private_Lean_Elab_Match_15__processVar___closed__8; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Match_13__processVar(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l___private_Lean_Elab_Match_15__processVar(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_7; uint8_t x_8; uint8_t x_9; -x_7 = l_Lean_Name_eraseMacroScopes(x_2); -x_8 = l_Lean_Name_isAtomic(x_7); -lean_dec(x_7); -if (x_3 == 0) +lean_object* x_6; uint8_t x_7; uint8_t x_8; +x_6 = l_Lean_Name_eraseMacroScopes(x_1); +x_7 = l_Lean_Name_isAtomic(x_6); +lean_dec(x_6); +if (x_2 == 0) +{ +uint8_t x_56; +x_56 = 0; +x_8 = x_56; +goto block_55; +} +else { uint8_t x_57; -x_57 = 0; -x_9 = x_57; -goto block_56; +x_57 = 1; +x_8 = x_57; +goto block_55; +} +block_55: +{ +uint8_t x_9; +if (x_7 == 0) +{ +uint8_t x_53; +x_53 = 0; +x_9 = x_53; +goto block_52; } else { -uint8_t x_58; -x_58 = 1; -x_9 = x_58; -goto block_56; -} -block_56: -{ -uint8_t x_10; -if (x_8 == 0) -{ uint8_t x_54; -x_54 = 0; -x_10 = x_54; -goto block_53; +x_54 = 1; +x_9 = x_54; +goto block_52; +} +block_52: +{ +lean_object* x_10; lean_object* x_11; +if (x_8 == 0) +{ +lean_object* x_45; lean_object* x_46; +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_3); +x_10 = x_46; +x_11 = x_5; +goto block_44; } else { -uint8_t x_55; -x_55 = 1; -x_10 = x_55; -goto block_53; -} -block_53: +lean_object* x_47; uint8_t x_48; +lean_dec(x_1); +x_47 = l___private_Lean_Elab_Match_12__throwCtorExpected___rarg(x_3, x_4, x_5); +lean_dec(x_3); +x_48 = !lean_is_exclusive(x_47); +if (x_48 == 0) +{ +return x_47; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_47, 0); +x_50 = lean_ctor_get(x_47, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_47); +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +return x_51; +} +} +block_44: { -lean_object* x_11; lean_object* x_12; if (x_9 == 0) { -lean_object* x_46; lean_object* x_47; -x_46 = lean_box(0); -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_4); -x_11 = x_47; -x_12 = x_6; -goto block_45; +lean_object* x_12; lean_object* x_13; uint8_t x_14; +lean_dec(x_10); +lean_dec(x_1); +x_12 = l___private_Lean_Elab_Match_15__processVar___closed__3; +x_13 = l_Lean_Elab_Term_throwError___rarg(x_12, x_4, x_11); +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) +{ +return x_13; } else { -lean_object* x_48; uint8_t x_49; -lean_dec(x_2); -x_48 = l___private_Lean_Elab_Match_10__throwCtorExpected___rarg(x_1, x_4, x_5, x_6); -lean_dec(x_4); -x_49 = !lean_is_exclusive(x_48); -if (x_49 == 0) -{ -return x_48; -} -else -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_48, 0); -x_51 = lean_ctor_get(x_48, 1); -lean_inc(x_51); -lean_inc(x_50); -lean_dec(x_48); -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_50); -lean_ctor_set(x_52, 1, x_51); -return x_52; -} -} -block_45: -{ -if (x_10 == 0) -{ -lean_object* x_13; lean_object* x_14; uint8_t x_15; -lean_dec(x_11); -lean_dec(x_2); -x_13 = l___private_Lean_Elab_Match_13__processVar___closed__3; -x_14 = l_Lean_Elab_Term_throwError___rarg(x_1, x_13, x_5, x_12); -x_15 = !lean_is_exclusive(x_14); -if (x_15 == 0) -{ -return x_14; -} -else -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = lean_ctor_get(x_14, 0); -x_17 = lean_ctor_get(x_14, 1); -lean_inc(x_17); +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_13, 0); +x_16 = lean_ctor_get(x_13, 1); lean_inc(x_16); -lean_dec(x_14); -x_18 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_18, 0, x_16); -lean_ctor_set(x_18, 1, x_17); -return x_18; +lean_inc(x_15); +lean_dec(x_13); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +return x_17; } } else { -lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; uint8_t x_23; -x_19 = lean_ctor_get(x_11, 1); -lean_inc(x_19); -if (lean_is_exclusive(x_11)) { - lean_ctor_release(x_11, 0); - lean_ctor_release(x_11, 1); - x_20 = x_11; +lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; uint8_t x_22; +x_18 = lean_ctor_get(x_10, 1); +lean_inc(x_18); +if (lean_is_exclusive(x_10)) { + lean_ctor_release(x_10, 0); + lean_ctor_release(x_10, 1); + x_19 = x_10; } else { - lean_dec_ref(x_11); - x_20 = lean_box(0); + lean_dec_ref(x_10); + x_19 = lean_box(0); } -x_21 = lean_ctor_get(x_19, 0); -lean_inc(x_21); -x_22 = l_Lean_NameSet_contains(x_21, x_2); -if (x_22 == 0) +x_20 = lean_ctor_get(x_18, 0); +lean_inc(x_20); +x_21 = l_Lean_NameSet_contains(x_20, x_1); +if (x_21 == 0) +{ +uint8_t x_42; +x_42 = 0; +x_22 = x_42; +goto block_41; +} +else { uint8_t x_43; -x_43 = 0; -x_23 = x_43; -goto block_42; +x_43 = 1; +x_22 = x_43; +goto block_41; } -else +block_41: { -uint8_t x_44; -x_44 = 1; -x_23 = x_44; -goto block_42; -} -block_42: +if (x_22 == 0) { -if (x_23 == 0) -{ -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_dec(x_5); -x_24 = lean_box(0); -lean_inc(x_2); -x_25 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_21, x_2, x_24); -x_26 = lean_ctor_get(x_19, 1); -lean_inc(x_26); -lean_dec(x_19); -x_27 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_27, 0, x_2); -x_28 = lean_array_push(x_26, x_27); -x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_25); -lean_ctor_set(x_29, 1, x_28); -if (lean_is_scalar(x_20)) { - x_30 = lean_alloc_ctor(0, 2, 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_dec(x_4); +x_23 = lean_box(0); +lean_inc(x_1); +x_24 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_20, x_1, x_23); +x_25 = lean_ctor_get(x_18, 1); +lean_inc(x_25); +lean_dec(x_18); +x_26 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_26, 0, x_1); +x_27 = lean_array_push(x_25, x_26); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_24); +lean_ctor_set(x_28, 1, x_27); +if (lean_is_scalar(x_19)) { + x_29 = lean_alloc_ctor(0, 2, 0); } else { - x_30 = x_20; + x_29 = x_19; } -lean_ctor_set(x_30, 0, x_24); -lean_ctor_set(x_30, 1, x_29); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_12); -return x_31; +lean_ctor_set(x_29, 0, x_23); +lean_ctor_set(x_29, 1, x_28); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_11); +return x_30; } else { -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; -lean_dec(x_21); +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; lean_dec(x_20); lean_dec(x_19); -x_32 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_32, 0, x_2); -x_33 = l___private_Lean_Elab_Match_13__processVar___closed__6; -x_34 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_32); -x_35 = l___private_Lean_Elab_Match_13__processVar___closed__9; -x_36 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_36, 0, x_34); -lean_ctor_set(x_36, 1, x_35); -x_37 = l_Lean_Elab_Term_throwError___rarg(x_1, x_36, x_5, x_12); -x_38 = !lean_is_exclusive(x_37); -if (x_38 == 0) +lean_dec(x_18); +x_31 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_31, 0, x_1); +x_32 = l___private_Lean_Elab_Match_15__processVar___closed__6; +x_33 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_31); +x_34 = l___private_Lean_Elab_Match_15__processVar___closed__9; +x_35 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +x_36 = l_Lean_Elab_Term_throwError___rarg(x_35, x_4, x_11); +x_37 = !lean_is_exclusive(x_36); +if (x_37 == 0) { -return x_37; +return x_36; } else { -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_37, 0); -x_40 = lean_ctor_get(x_37, 1); -lean_inc(x_40); +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_36, 0); +x_39 = lean_ctor_get(x_36, 1); lean_inc(x_39); -lean_dec(x_37); -x_41 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_41, 0, x_39); -lean_ctor_set(x_41, 1, x_40); -return x_41; +lean_inc(x_38); +lean_dec(x_36); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; } } } @@ -9395,18 +9747,86 @@ return x_41; } } } -lean_object* l___private_Lean_Elab_Match_13__processVar___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* l___private_Lean_Elab_Match_15__processVar___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -uint8_t x_7; lean_object* x_8; -x_7 = lean_unbox(x_3); -lean_dec(x_3); -x_8 = l___private_Lean_Elab_Match_13__processVar(x_1, x_2, x_7, x_4, x_5, x_6); -lean_dec(x_1); -return x_8; +uint8_t x_6; lean_object* x_7; +x_6 = lean_unbox(x_2); +lean_dec(x_2); +x_7 = l___private_Lean_Elab_Match_15__processVar(x_1, x_6, x_3, x_4, x_5); +return x_7; } } -lean_object* l_List_filterAux___main___at___private_Lean_Elab_Match_14__processIdAux___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_StateT_lift___at___private_Lean_Elab_Match_16__processIdAux___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = lean_apply_2(x_1, x_3, x_4); +if (lean_obj_tag(x_5) == 0) +{ +uint8_t x_6; +x_6 = !lean_is_exclusive(x_5); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; +x_7 = lean_ctor_get(x_5, 0); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_7); +lean_ctor_set(x_8, 1, x_2); +lean_ctor_set(x_5, 0, x_8); +return x_5; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_9 = lean_ctor_get(x_5, 0); +x_10 = lean_ctor_get(x_5, 1); +lean_inc(x_10); +lean_inc(x_9); +lean_dec(x_5); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_9); +lean_ctor_set(x_11, 1, x_2); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_10); +return x_12; +} +} +else +{ +uint8_t x_13; +lean_dec(x_2); +x_13 = !lean_is_exclusive(x_5); +if (x_13 == 0) +{ +return x_5; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_5, 0); +x_15 = lean_ctor_get(x_5, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_5); +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; +} +} +} +} +lean_object* l_StateT_lift___at___private_Lean_Elab_Match_16__processIdAux___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_StateT_lift___at___private_Lean_Elab_Match_16__processIdAux___spec__1___rarg), 4, 0); +return x_2; +} +} +lean_object* l_List_filterAux___main___at___private_Lean_Elab_Match_16__processIdAux___spec__2(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -9479,7 +9899,7 @@ goto _start; } } } -lean_object* l_List_map___main___at___private_Lean_Elab_Match_14__processIdAux___spec__2(lean_object* x_1) { +lean_object* l_List_map___main___at___private_Lean_Elab_Match_16__processIdAux___spec__3(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -9497,7 +9917,7 @@ if (x_3 == 0) lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); -x_6 = l_List_map___main___at___private_Lean_Elab_Match_14__processIdAux___spec__2(x_5); +x_6 = l_List_map___main___at___private_Lean_Elab_Match_16__processIdAux___spec__3(x_5); x_7 = lean_ctor_get(x_4, 0); lean_inc(x_7); lean_dec(x_4); @@ -9513,7 +9933,7 @@ x_9 = lean_ctor_get(x_1, 1); lean_inc(x_9); lean_inc(x_8); lean_dec(x_1); -x_10 = l_List_map___main___at___private_Lean_Elab_Match_14__processIdAux___spec__2(x_9); +x_10 = l_List_map___main___at___private_Lean_Elab_Match_16__processIdAux___spec__3(x_9); x_11 = lean_ctor_get(x_8, 0); lean_inc(x_11); lean_dec(x_8); @@ -9525,17 +9945,63 @@ return x_12; } } } -lean_object* _init_l___private_Lean_Elab_Match_14__processIdAux___closed__1() { +lean_object* l_StateT_bind___at___private_Lean_Elab_Match_16__processIdAux___spec__4___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___closed__1; -x_2 = l_Nat_Inhabited; -x_3 = l_monadInhabited___rarg(x_1, x_2); +lean_object* x_6; +lean_inc(x_4); +x_6 = lean_apply_3(x_1, x_3, x_4, x_5); +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +x_9 = lean_ctor_get(x_7, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_7, 1); +lean_inc(x_10); +lean_dec(x_7); +x_11 = lean_apply_4(x_2, x_9, x_10, x_4, x_8); +return x_11; +} +else +{ +uint8_t x_12; +lean_dec(x_4); +lean_dec(x_2); +x_12 = !lean_is_exclusive(x_6); +if (x_12 == 0) +{ +return x_6; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_6, 0); +x_14 = lean_ctor_get(x_6, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_6); +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_13); +lean_ctor_set(x_15, 1, x_14); +return x_15; +} +} +} +} +lean_object* l_StateT_bind___at___private_Lean_Elab_Match_16__processIdAux___spec__4(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_StateT_bind___at___private_Lean_Elab_Match_16__processIdAux___spec__4___rarg), 5, 0); return x_3; } } -lean_object* _init_l___private_Lean_Elab_Match_14__processIdAux___closed__2() { +lean_object* _init_l___private_Lean_Elab_Match_16__processIdAux___lambda__1___closed__1() { _start: { lean_object* x_1; @@ -9543,585 +10009,593 @@ x_1 = lean_mk_string("invalid occurrence of named pattern"); return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_14__processIdAux___closed__3() { +lean_object* _init_l___private_Lean_Elab_Match_16__processIdAux___lambda__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_14__processIdAux___closed__2; +x_1 = l___private_Lean_Elab_Match_16__processIdAux___lambda__1___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_14__processIdAux___closed__4() { +lean_object* _init_l___private_Lean_Elab_Match_16__processIdAux___lambda__1___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_14__processIdAux___closed__3; +x_1 = l___private_Lean_Elab_Match_16__processIdAux___lambda__1___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Match_14__processIdAux(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_Match_16__processIdAux___lambda__1(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; -x_6 = l_Lean_Elab_Term_getEnv___rarg(x_5); -x_7 = lean_ctor_get(x_6, 0); -lean_inc(x_7); -x_8 = lean_ctor_get(x_6, 1); -lean_inc(x_8); -if (lean_is_exclusive(x_6)) { - lean_ctor_release(x_6, 0); - lean_ctor_release(x_6, 1); - x_9 = x_6; -} else { - lean_dec_ref(x_6); - x_9 = lean_box(0); -} -x_10 = 1; -lean_inc(x_1); -x_11 = l_Lean_Syntax_isTermId_x3f(x_1, x_10); -if (lean_obj_tag(x_11) == 0) +uint8_t x_8; lean_object* x_9; +x_8 = 1; +x_9 = l_Lean_Syntax_isTermId_x3f(x_1, x_8); +if (lean_obj_tag(x_9) == 0) { -lean_object* x_12; -lean_dec(x_9); -lean_dec(x_7); -x_12 = l___private_Lean_Elab_Match_10__throwCtorExpected___rarg(x_1, x_3, x_4, x_8); +lean_object* x_10; +lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -return x_12; +x_10 = l___private_Lean_Elab_Match_12__throwCtorExpected___rarg(x_5, x_6, x_7); +lean_dec(x_5); +return x_10; } else { -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; uint8_t x_20; uint8_t x_21; -x_13 = lean_ctor_get(x_11, 0); +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; uint8_t x_19; +x_11 = lean_ctor_get(x_9, 0); +lean_inc(x_11); +lean_dec(x_9); +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_ctor_get(x_13, 0); -lean_inc(x_14); -x_15 = lean_ctor_get(x_13, 1); -lean_inc(x_15); -if (lean_is_exclusive(x_13)) { - lean_ctor_release(x_13, 0); - lean_ctor_release(x_13, 1); - x_16 = x_13; +if (lean_is_exclusive(x_11)) { + lean_ctor_release(x_11, 0); + lean_ctor_release(x_11, 1); + x_14 = x_11; } else { - lean_dec_ref(x_13); - x_16 = lean_box(0); + lean_dec_ref(x_11); + x_14 = lean_box(0); } -x_17 = lean_unsigned_to_nat(0u); -x_18 = l_Lean_Syntax_getArg(x_15, x_17); -lean_dec(x_15); -x_19 = l_Lean_Parser_Term_namedPattern___elambda__1___closed__2; -x_20 = l_Lean_Syntax_isOfKind(x_18, x_19); -if (x_20 == 0) +x_15 = lean_unsigned_to_nat(0u); +x_16 = l_Lean_Syntax_getArg(x_13, x_15); +lean_dec(x_13); +x_17 = l_Lean_Parser_Term_namedPattern___elambda__1___closed__2; +x_18 = l_Lean_Syntax_isOfKind(x_16, x_17); +if (x_18 == 0) { -uint8_t x_116; -x_116 = 0; -x_21 = x_116; -goto block_115; +uint8_t x_115; +x_115 = 0; +x_19 = x_115; +goto block_114; } else { -x_21 = x_10; -goto block_115; +x_19 = x_8; +goto block_114; } -block_115: +block_114: { -lean_object* x_22; lean_object* x_23; lean_object* x_81; lean_object* x_82; -if (x_21 == 0) +lean_object* x_20; lean_object* x_21; lean_object* x_79; lean_object* x_80; +if (x_19 == 0) { -lean_object* x_107; lean_object* x_108; -x_107 = lean_box(0); -x_108 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_108, 0, x_107); -lean_ctor_set(x_108, 1, x_3); -x_81 = x_108; -x_82 = x_8; -goto block_106; +lean_object* x_106; lean_object* x_107; +x_106 = lean_box(0); +x_107 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_107, 0, x_106); +lean_ctor_set(x_107, 1, x_5); +x_79 = x_107; +x_80 = x_7; +goto block_105; } else { -lean_object* x_109; lean_object* x_110; uint8_t x_111; -lean_dec(x_16); +lean_object* x_108; lean_object* x_109; uint8_t x_110; lean_dec(x_14); -lean_dec(x_9); -lean_dec(x_7); +lean_dec(x_12); +lean_dec(x_5); +lean_dec(x_4); lean_dec(x_3); -x_109 = l___private_Lean_Elab_Match_14__processIdAux___closed__4; -x_110 = l_Lean_Elab_Term_throwError___rarg(x_1, x_109, x_4, x_8); -lean_dec(x_1); -x_111 = !lean_is_exclusive(x_110); -if (x_111 == 0) +x_108 = l___private_Lean_Elab_Match_16__processIdAux___lambda__1___closed__3; +x_109 = l_Lean_Elab_Term_throwError___rarg(x_108, x_6, x_7); +x_110 = !lean_is_exclusive(x_109); +if (x_110 == 0) { -return x_110; +return x_109; } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; -x_112 = lean_ctor_get(x_110, 0); -x_113 = lean_ctor_get(x_110, 1); -lean_inc(x_113); +lean_object* x_111; lean_object* x_112; lean_object* x_113; +x_111 = lean_ctor_get(x_109, 0); +x_112 = lean_ctor_get(x_109, 1); lean_inc(x_112); -lean_dec(x_110); -x_114 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_114, 0, x_112); -lean_ctor_set(x_114, 1, x_113); -return x_114; +lean_inc(x_111); +lean_dec(x_109); +x_113 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_113, 0, x_111); +lean_ctor_set(x_113, 1, x_112); +return x_113; } } -block_80: +block_78: { -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_24 = lean_ctor_get(x_22, 0); -lean_inc(x_24); -x_25 = lean_ctor_get(x_22, 1); -lean_inc(x_25); -if (lean_is_exclusive(x_22)) { - lean_ctor_release(x_22, 0); - lean_ctor_release(x_22, 1); - x_26 = x_22; +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_22 = lean_ctor_get(x_20, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_20, 1); +lean_inc(x_23); +if (lean_is_exclusive(x_20)) { + lean_ctor_release(x_20, 0); + lean_ctor_release(x_20, 1); + x_24 = x_20; } else { - lean_dec_ref(x_22); - x_26 = lean_box(0); + lean_dec_ref(x_20); + x_24 = lean_box(0); } -x_47 = lean_box(0); -x_48 = l_List_filterAux___main___at___private_Lean_Elab_Match_14__processIdAux___spec__1(x_24, x_47); -x_49 = l_List_map___main___at___private_Lean_Elab_Match_14__processIdAux___spec__2(x_48); +x_45 = lean_box(0); +x_46 = l_List_filterAux___main___at___private_Lean_Elab_Match_16__processIdAux___spec__2(x_22, x_45); +x_47 = l_List_map___main___at___private_Lean_Elab_Match_16__processIdAux___spec__3(x_46); +if (lean_obj_tag(x_47) == 0) +{ +lean_object* x_48; +lean_dec(x_24); +lean_dec(x_14); +lean_dec(x_4); +x_48 = lean_box(0); +x_25 = x_48; +goto block_44; +} +else +{ +lean_object* x_49; +x_49 = lean_ctor_get(x_47, 1); +lean_inc(x_49); if (lean_obj_tag(x_49) == 0) { lean_object* x_50; -lean_dec(x_26); -lean_dec(x_16); -lean_dec(x_9); -lean_dec(x_7); -x_50 = lean_box(0); -x_27 = x_50; -goto block_46; -} -else +x_50 = lean_ctor_get(x_47, 0); +lean_inc(x_50); +lean_dec(x_47); +if (lean_obj_tag(x_50) == 4) { -lean_object* x_51; -x_51 = lean_ctor_get(x_49, 1); +lean_object* x_51; lean_object* x_52; lean_object* x_59; +x_51 = lean_ctor_get(x_50, 0); lean_inc(x_51); -if (lean_obj_tag(x_51) == 0) +lean_dec(x_50); +lean_inc(x_51); +lean_inc(x_4); +x_59 = lean_environment_find(x_4, x_51); +if (lean_obj_tag(x_59) == 0) { -lean_object* x_52; -x_52 = lean_ctor_get(x_49, 0); -lean_inc(x_52); -lean_dec(x_49); -if (lean_obj_tag(x_52) == 4) -{ -lean_object* x_53; lean_object* x_54; lean_object* x_61; -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -lean_dec(x_52); -lean_inc(x_53); -lean_inc(x_7); -x_61 = lean_environment_find(x_7, x_53); -if (lean_obj_tag(x_61) == 0) -{ -lean_object* x_62; -lean_dec(x_53); -lean_dec(x_26); -lean_dec(x_16); +lean_object* x_60; +lean_dec(x_51); +lean_dec(x_24); lean_dec(x_14); -lean_dec(x_9); -lean_dec(x_7); -x_62 = l___private_Lean_Elab_Match_10__throwCtorExpected___rarg(x_1, x_25, x_4, x_23); -lean_dec(x_25); -lean_dec(x_1); -return x_62; +lean_dec(x_12); +lean_dec(x_4); +x_60 = l___private_Lean_Elab_Match_12__throwCtorExpected___rarg(x_23, x_6, x_21); +lean_dec(x_23); +return x_60; } else { -lean_object* x_63; -x_63 = lean_ctor_get(x_61, 0); -lean_inc(x_63); +lean_object* x_61; +x_61 = lean_ctor_get(x_59, 0); +lean_inc(x_61); +lean_dec(x_59); +if (lean_obj_tag(x_61) == 6) +{ +lean_object* x_62; lean_object* x_63; +lean_dec(x_51); +lean_dec(x_24); +lean_dec(x_12); +lean_dec(x_4); +x_62 = lean_ctor_get(x_61, 0); +lean_inc(x_62); lean_dec(x_61); -if (lean_obj_tag(x_63) == 6) +x_63 = l___private_Lean_Elab_Match_13__getNumExplicitCtorParams(x_62, x_6, x_21); +if (lean_obj_tag(x_63) == 0) { -lean_object* x_64; lean_object* x_65; -lean_dec(x_53); -lean_dec(x_26); -lean_dec(x_14); -lean_dec(x_9); -lean_dec(x_7); -x_64 = lean_ctor_get(x_63, 0); -lean_inc(x_64); +uint8_t x_64; +x_64 = !lean_is_exclusive(x_63); +if (x_64 == 0) +{ +lean_object* x_65; lean_object* x_66; +x_65 = lean_ctor_get(x_63, 0); +if (lean_is_scalar(x_14)) { + x_66 = lean_alloc_ctor(0, 2, 0); +} else { + x_66 = x_14; +} +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_23); +lean_ctor_set(x_63, 0, x_66); +return x_63; +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_67 = lean_ctor_get(x_63, 0); +x_68 = lean_ctor_get(x_63, 1); +lean_inc(x_68); +lean_inc(x_67); lean_dec(x_63); -x_65 = l___private_Lean_Elab_Match_11__getNumExplicitCtorParams(x_1, x_64, x_4, x_23); -lean_dec(x_1); -if (lean_obj_tag(x_65) == 0) -{ -uint8_t x_66; -x_66 = !lean_is_exclusive(x_65); -if (x_66 == 0) -{ -lean_object* x_67; lean_object* x_68; -x_67 = lean_ctor_get(x_65, 0); -if (lean_is_scalar(x_16)) { - x_68 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_14)) { + x_69 = lean_alloc_ctor(0, 2, 0); } else { - x_68 = x_16; + x_69 = x_14; +} +lean_ctor_set(x_69, 0, x_67); +lean_ctor_set(x_69, 1, x_23); +x_70 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_70, 0, x_69); +lean_ctor_set(x_70, 1, x_68); +return x_70; } -lean_ctor_set(x_68, 0, x_67); -lean_ctor_set(x_68, 1, x_25); -lean_ctor_set(x_65, 0, x_68); -return x_65; } else { -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_69 = lean_ctor_get(x_65, 0); -x_70 = lean_ctor_get(x_65, 1); -lean_inc(x_70); -lean_inc(x_69); -lean_dec(x_65); -if (lean_is_scalar(x_16)) { - x_71 = lean_alloc_ctor(0, 2, 0); +uint8_t x_71; +lean_dec(x_23); +lean_dec(x_14); +x_71 = !lean_is_exclusive(x_63); +if (x_71 == 0) +{ +return x_63; +} +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_72 = lean_ctor_get(x_63, 0); +x_73 = lean_ctor_get(x_63, 1); +lean_inc(x_73); +lean_inc(x_72); +lean_dec(x_63); +x_74 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_74, 0, x_72); +lean_ctor_set(x_74, 1, x_73); +return x_74; +} +} +} +else +{ +lean_object* x_75; +lean_dec(x_61); +lean_dec(x_14); +x_75 = lean_box(0); +x_52 = x_75; +goto block_58; +} +} +block_58: +{ +lean_object* x_53; uint8_t x_54; +lean_dec(x_52); +x_53 = l_Lean_EqnCompiler_matchPatternAttr; +x_54 = l_Lean_TagAttribute_hasTag(x_53, x_4, x_51); +lean_dec(x_51); +lean_dec(x_4); +if (x_54 == 0) +{ +lean_object* x_55; +lean_dec(x_24); +x_55 = lean_box(0); +x_25 = x_55; +goto block_44; +} +else +{ +lean_object* x_56; lean_object* x_57; +lean_dec(x_12); +lean_dec(x_6); +if (lean_is_scalar(x_24)) { + x_56 = lean_alloc_ctor(0, 2, 0); } else { - x_71 = x_16; + x_56 = x_24; +} +lean_ctor_set(x_56, 0, x_15); +lean_ctor_set(x_56, 1, x_23); +x_57 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_57, 0, x_56); +lean_ctor_set(x_57, 1, x_21); +return x_57; } -lean_ctor_set(x_71, 0, x_69); -lean_ctor_set(x_71, 1, x_25); -x_72 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_72, 0, x_71); -lean_ctor_set(x_72, 1, x_70); -return x_72; } } else { -uint8_t x_73; -lean_dec(x_25); -lean_dec(x_16); -x_73 = !lean_is_exclusive(x_65); -if (x_73 == 0) -{ -return x_65; -} -else -{ -lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_74 = lean_ctor_get(x_65, 0); -x_75 = lean_ctor_get(x_65, 1); -lean_inc(x_75); -lean_inc(x_74); -lean_dec(x_65); -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* x_76; +lean_dec(x_50); +lean_dec(x_24); +lean_dec(x_14); +lean_dec(x_4); +x_76 = lean_box(0); +x_25 = x_76; +goto block_44; } } else { lean_object* x_77; -lean_dec(x_63); -lean_dec(x_16); -x_77 = lean_box(0); -x_54 = x_77; -goto block_60; -} -} -block_60: -{ -lean_object* x_55; uint8_t x_56; -lean_dec(x_54); -x_55 = l_Lean_EqnCompiler_matchPatternAttr; -x_56 = l_Lean_TagAttribute_hasTag(x_55, x_7, x_53); -lean_dec(x_53); -lean_dec(x_7); -if (x_56 == 0) -{ -lean_object* x_57; -lean_dec(x_26); -lean_dec(x_9); -x_57 = lean_box(0); -x_27 = x_57; -goto block_46; -} -else -{ -lean_object* x_58; lean_object* x_59; +lean_dec(x_49); +lean_dec(x_24); lean_dec(x_14); +lean_dec(x_12); lean_dec(x_4); -lean_dec(x_1); -if (lean_is_scalar(x_26)) { - x_58 = lean_alloc_ctor(0, 2, 0); -} else { - x_58 = x_26; -} -lean_ctor_set(x_58, 0, x_17); -lean_ctor_set(x_58, 1, x_25); -if (lean_is_scalar(x_9)) { - x_59 = lean_alloc_ctor(0, 2, 0); -} else { - x_59 = x_9; -} -lean_ctor_set(x_59, 0, x_58); -lean_ctor_set(x_59, 1, x_23); -return x_59; +x_77 = l___private_Lean_Elab_Match_14__throwAmbiguous___rarg(x_47, x_23, x_6, x_21); +lean_dec(x_23); +return x_77; } } -} -else +block_44: { -lean_object* x_78; -lean_dec(x_52); -lean_dec(x_26); -lean_dec(x_16); -lean_dec(x_9); -lean_dec(x_7); -x_78 = lean_box(0); -x_27 = x_78; -goto block_46; -} -} -else -{ -lean_object* x_79; -lean_dec(x_51); -lean_dec(x_26); -lean_dec(x_16); -lean_dec(x_14); -lean_dec(x_9); -lean_dec(x_7); -x_79 = l___private_Lean_Elab_Match_12__throwAmbiguous___rarg(x_1, x_49, x_25, x_4, x_23); +lean_object* x_26; lean_object* x_27; lean_dec(x_25); -lean_dec(x_1); -return x_79; -} -} -block_46: +x_26 = l_Lean_Syntax_getId(x_12); +lean_dec(x_12); +x_27 = l___private_Lean_Elab_Match_15__processVar(x_26, x_2, x_23, x_6, x_21); +if (lean_obj_tag(x_27) == 0) { -lean_object* x_28; lean_object* x_29; -lean_dec(x_27); -x_28 = l_Lean_Syntax_getId(x_14); -lean_dec(x_14); -x_29 = l___private_Lean_Elab_Match_13__processVar(x_1, x_28, x_2, x_25, x_4, x_23); -lean_dec(x_1); -if (lean_obj_tag(x_29) == 0) +uint8_t x_28; +x_28 = !lean_is_exclusive(x_27); +if (x_28 == 0) { -uint8_t x_30; +lean_object* x_29; uint8_t x_30; +x_29 = lean_ctor_get(x_27, 0); x_30 = !lean_is_exclusive(x_29); if (x_30 == 0) { -lean_object* x_31; uint8_t x_32; +lean_object* x_31; x_31 = lean_ctor_get(x_29, 0); -x_32 = !lean_is_exclusive(x_31); -if (x_32 == 0) -{ -lean_object* x_33; -x_33 = lean_ctor_get(x_31, 0); -lean_dec(x_33); -lean_ctor_set(x_31, 0, x_17); -return x_29; -} -else -{ -lean_object* x_34; lean_object* x_35; -x_34 = lean_ctor_get(x_31, 1); -lean_inc(x_34); lean_dec(x_31); -x_35 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_35, 0, x_17); -lean_ctor_set(x_35, 1, x_34); -lean_ctor_set(x_29, 0, x_35); -return x_29; +lean_ctor_set(x_29, 0, x_15); +return x_27; +} +else +{ +lean_object* x_32; lean_object* x_33; +x_32 = lean_ctor_get(x_29, 1); +lean_inc(x_32); +lean_dec(x_29); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_15); +lean_ctor_set(x_33, 1, x_32); +lean_ctor_set(x_27, 0, x_33); +return x_27; } } else { -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_36 = lean_ctor_get(x_29, 0); -x_37 = lean_ctor_get(x_29, 1); -lean_inc(x_37); +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_34 = lean_ctor_get(x_27, 0); +x_35 = lean_ctor_get(x_27, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_27); +x_36 = lean_ctor_get(x_34, 1); lean_inc(x_36); -lean_dec(x_29); -x_38 = lean_ctor_get(x_36, 1); -lean_inc(x_38); -if (lean_is_exclusive(x_36)) { - lean_ctor_release(x_36, 0); - lean_ctor_release(x_36, 1); - x_39 = x_36; +if (lean_is_exclusive(x_34)) { + lean_ctor_release(x_34, 0); + lean_ctor_release(x_34, 1); + x_37 = x_34; } else { - lean_dec_ref(x_36); - x_39 = lean_box(0); + lean_dec_ref(x_34); + x_37 = lean_box(0); } -if (lean_is_scalar(x_39)) { - x_40 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_37)) { + x_38 = lean_alloc_ctor(0, 2, 0); } else { - x_40 = x_39; + x_38 = x_37; } -lean_ctor_set(x_40, 0, x_17); -lean_ctor_set(x_40, 1, x_38); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_37); -return x_41; +lean_ctor_set(x_38, 0, x_15); +lean_ctor_set(x_38, 1, x_36); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_35); +return x_39; } } else { -uint8_t x_42; -x_42 = !lean_is_exclusive(x_29); -if (x_42 == 0) +uint8_t x_40; +x_40 = !lean_is_exclusive(x_27); +if (x_40 == 0) { -return x_29; +return x_27; } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_29, 0); -x_44 = lean_ctor_get(x_29, 1); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_29); -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; +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_27, 0); +x_42 = lean_ctor_get(x_27, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_27); +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; } } } } -block_106: +block_105: { -if (lean_obj_tag(x_14) == 3) +if (lean_obj_tag(x_12) == 3) { -uint8_t x_83; -x_83 = !lean_is_exclusive(x_81); -if (x_83 == 0) +uint8_t x_81; +lean_dec(x_3); +x_81 = !lean_is_exclusive(x_79); +if (x_81 == 0) { -lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_84 = lean_ctor_get(x_81, 0); -lean_dec(x_84); -x_85 = lean_ctor_get(x_14, 2); -lean_inc(x_85); -x_86 = lean_ctor_get(x_14, 3); -lean_inc(x_86); -x_87 = lean_box(0); -lean_inc(x_4); -x_88 = l_Lean_Elab_Term_resolveName(x_1, x_85, x_86, x_87, x_4, x_82); -if (lean_obj_tag(x_88) == 0) +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_82 = lean_ctor_get(x_79, 0); +lean_dec(x_82); +x_83 = lean_ctor_get(x_12, 2); +lean_inc(x_83); +x_84 = lean_ctor_get(x_12, 3); +lean_inc(x_84); +x_85 = lean_box(0); +lean_inc(x_6); +x_86 = l_Lean_Elab_Term_resolveName(x_83, x_84, x_85, x_6, x_80); +if (lean_obj_tag(x_86) == 0) { -lean_object* x_89; lean_object* x_90; -x_89 = lean_ctor_get(x_88, 0); +lean_object* x_87; lean_object* x_88; +x_87 = lean_ctor_get(x_86, 0); +lean_inc(x_87); +x_88 = lean_ctor_get(x_86, 1); +lean_inc(x_88); +lean_dec(x_86); +lean_ctor_set(x_79, 0, x_87); +x_20 = x_79; +x_21 = x_88; +goto block_78; +} +else +{ +lean_object* x_89; +x_89 = lean_ctor_get(x_86, 1); lean_inc(x_89); -x_90 = lean_ctor_get(x_88, 1); +lean_dec(x_86); +lean_ctor_set(x_79, 0, x_85); +x_20 = x_79; +x_21 = x_89; +goto block_78; +} +} +else +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_90 = lean_ctor_get(x_79, 1); lean_inc(x_90); -lean_dec(x_88); -lean_ctor_set(x_81, 0, x_89); -x_22 = x_81; -x_23 = x_90; -goto block_80; -} -else -{ -lean_object* x_91; -x_91 = lean_ctor_get(x_88, 1); +lean_dec(x_79); +x_91 = lean_ctor_get(x_12, 2); lean_inc(x_91); -lean_dec(x_88); -lean_ctor_set(x_81, 0, x_87); -x_22 = x_81; -x_23 = x_91; -goto block_80; -} -} -else -{ -lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; -x_92 = lean_ctor_get(x_81, 1); +x_92 = lean_ctor_get(x_12, 3); lean_inc(x_92); -lean_dec(x_81); -x_93 = lean_ctor_get(x_14, 2); -lean_inc(x_93); -x_94 = lean_ctor_get(x_14, 3); -lean_inc(x_94); -x_95 = lean_box(0); -lean_inc(x_4); -x_96 = l_Lean_Elab_Term_resolveName(x_1, x_93, x_94, x_95, x_4, x_82); -if (lean_obj_tag(x_96) == 0) +x_93 = lean_box(0); +lean_inc(x_6); +x_94 = l_Lean_Elab_Term_resolveName(x_91, x_92, x_93, x_6, x_80); +if (lean_obj_tag(x_94) == 0) { -lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_97 = lean_ctor_get(x_96, 0); -lean_inc(x_97); -x_98 = lean_ctor_get(x_96, 1); +lean_object* x_95; lean_object* x_96; lean_object* x_97; +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_alloc_ctor(0, 2, 0); +lean_ctor_set(x_97, 0, x_95); +lean_ctor_set(x_97, 1, x_90); +x_20 = x_97; +x_21 = x_96; +goto block_78; +} +else +{ +lean_object* x_98; lean_object* x_99; +x_98 = lean_ctor_get(x_94, 1); lean_inc(x_98); -lean_dec(x_96); +lean_dec(x_94); x_99 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_99, 0, x_97); -lean_ctor_set(x_99, 1, x_92); -x_22 = x_99; -x_23 = x_98; -goto block_80; -} -else -{ -lean_object* x_100; lean_object* x_101; -x_100 = lean_ctor_get(x_96, 1); -lean_inc(x_100); -lean_dec(x_96); -x_101 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_101, 0, x_95); -lean_ctor_set(x_101, 1, x_92); -x_22 = x_101; -x_23 = x_100; -goto block_80; +lean_ctor_set(x_99, 0, x_93); +lean_ctor_set(x_99, 1, x_90); +x_20 = x_99; +x_21 = x_98; +goto block_78; } } } else { -lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; -lean_dec(x_16); +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_dec(x_14); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_1); -x_102 = lean_ctor_get(x_81, 1); -lean_inc(x_102); -lean_dec(x_81); -x_103 = l___private_Lean_Elab_Match_14__processIdAux___closed__1; -x_104 = l_unreachable_x21___rarg(x_103); -x_105 = lean_apply_3(x_104, x_102, x_4, x_82); -return x_105; +lean_dec(x_12); +lean_dec(x_4); +x_100 = lean_ctor_get(x_79, 1); +lean_inc(x_100); +lean_dec(x_79); +x_101 = l_Nat_Inhabited; +x_102 = l_monadInhabited___rarg(x_3, x_101); +x_103 = l_unreachable_x21___rarg(x_102); +x_104 = lean_apply_3(x_103, x_100, x_6, x_80); +return x_104; } } } } } } -lean_object* l___private_Lean_Elab_Match_14__processIdAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* _init_l___private_Lean_Elab_Match_16__processIdAux___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_Lean_Elab_MonadMacroAdapter___closed__8; +x_2 = lean_alloc_closure((void*)(l_StateT_lift___at___private_Lean_Elab_Match_16__processIdAux___spec__1___rarg), 4, 1); +lean_closure_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Match_16__processIdAux(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_6 = l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___closed__1; +x_7 = lean_box(x_2); +lean_inc(x_1); +x_8 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_16__processIdAux___lambda__1___boxed), 7, 3); +lean_closure_set(x_8, 0, x_1); +lean_closure_set(x_8, 1, x_7); +lean_closure_set(x_8, 2, x_6); +x_9 = l___private_Lean_Elab_Match_16__processIdAux___closed__1; +x_10 = lean_alloc_closure((void*)(l_StateT_bind___at___private_Lean_Elab_Match_16__processIdAux___spec__4___rarg), 5, 2); +lean_closure_set(x_10, 0, x_9); +lean_closure_set(x_10, 1, x_8); +x_11 = l_Lean_Elab_Term_CollectPatternVars_withRef___rarg(x_1, x_10, x_3, x_4, x_5); +return x_11; +} +} +lean_object* l___private_Lean_Elab_Match_16__processIdAux___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) { +_start: +{ +uint8_t x_8; lean_object* x_9; +x_8 = lean_unbox(x_2); +lean_dec(x_2); +x_9 = l___private_Lean_Elab_Match_16__processIdAux___lambda__1(x_1, x_8, x_3, x_4, x_5, x_6, x_7); +return x_9; +} +} +lean_object* l___private_Lean_Elab_Match_16__processIdAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { uint8_t x_6; lean_object* x_7; x_6 = lean_unbox(x_2); lean_dec(x_2); -x_7 = l___private_Lean_Elab_Match_14__processIdAux(x_1, x_6, x_3, x_4, x_5); +x_7 = l___private_Lean_Elab_Match_16__processIdAux(x_1, x_6, x_3, x_4, x_5); return x_7; } } -lean_object* l___private_Lean_Elab_Match_15__processCtor(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Match_17__processCtor(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; lean_object* x_6; x_5 = 1; -x_6 = l___private_Lean_Elab_Match_14__processIdAux(x_1, x_5, x_2, x_3, x_4); +x_6 = l___private_Lean_Elab_Match_16__processIdAux(x_1, x_5, x_2, x_3, x_4); return x_6; } } -lean_object* l___private_Lean_Elab_Match_16__processId(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Match_18__processId(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; lean_object* x_6; x_5 = 0; -x_6 = l___private_Lean_Elab_Match_14__processIdAux(x_1, x_5, x_2, x_3, x_4); +x_6 = l___private_Lean_Elab_Match_16__processIdAux(x_1, x_5, x_2, x_3, x_4); if (lean_obj_tag(x_6) == 0) { uint8_t x_7; @@ -10210,7 +10684,7 @@ return x_25; } } } -lean_object* _init_l___private_Lean_Elab_Match_17__throwInvalidPattern___rarg___closed__1() { +lean_object* _init_l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___closed__1() { _start: { lean_object* x_1; @@ -10218,71 +10692,70 @@ x_1 = lean_mk_string("invalid pattern"); return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_17__throwInvalidPattern___rarg___closed__2() { +lean_object* _init_l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_17__throwInvalidPattern___rarg___closed__1; +x_1 = l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_17__throwInvalidPattern___rarg___closed__3() { +lean_object* _init_l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_17__throwInvalidPattern___rarg___closed__2; +x_1 = l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Match_17__throwInvalidPattern___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; lean_object* x_6; uint8_t x_7; -x_5 = l___private_Lean_Elab_Match_17__throwInvalidPattern___rarg___closed__3; -x_6 = l_Lean_Elab_Term_throwError___rarg(x_1, x_5, x_3, x_4); -x_7 = !lean_is_exclusive(x_6); -if (x_7 == 0) +lean_object* x_4; lean_object* x_5; uint8_t x_6; +x_4 = l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___closed__3; +x_5 = l_Lean_Elab_Term_throwError___rarg(x_4, x_2, x_3); +x_6 = !lean_is_exclusive(x_5); +if (x_6 == 0) { -return x_6; +return x_5; } else { -lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_8 = lean_ctor_get(x_6, 0); -x_9 = lean_ctor_get(x_6, 1); -lean_inc(x_9); +lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_7 = lean_ctor_get(x_5, 0); +x_8 = lean_ctor_get(x_5, 1); lean_inc(x_8); -lean_dec(x_6); -x_10 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_10, 0, x_8); -lean_ctor_set(x_10, 1, x_9); -return x_10; +lean_inc(x_7); +lean_dec(x_5); +x_9 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_9, 0, x_7); +lean_ctor_set(x_9, 1, x_8); +return x_9; } } } -lean_object* l___private_Lean_Elab_Match_17__throwInvalidPattern(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Match_19__throwInvalidPattern(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_17__throwInvalidPattern___rarg___boxed), 4, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___boxed), 3, 0); return x_2; } } -lean_object* l___private_Lean_Elab_Match_17__throwInvalidPattern___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; -x_5 = l___private_Lean_Elab_Match_17__throwInvalidPattern___rarg(x_1, x_2, x_3, x_4); -lean_dec(x_2); +lean_object* x_4; +x_4 = l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg(x_1, x_2, x_3); lean_dec(x_1); -return x_5; +return x_4; } } -lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_18__collect___main___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* l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_20__collect___main___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) { _start: { lean_object* x_8; uint8_t x_9; @@ -10382,17 +10855,17 @@ return x_33; } } } -lean_object* l_Array_mapSepElemsM___at___private_Lean_Elab_Match_18__collect___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Array_mapSepElemsM___at___private_Lean_Elab_Match_20__collect___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = lean_unsigned_to_nat(0u); x_7 = l_Array_empty___closed__1; -x_8 = l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_18__collect___main___spec__2(x_1, x_2, x_6, x_7, x_3, x_4, x_5); +x_8 = l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__2(x_1, x_2, x_6, x_7, x_3, x_4, x_5); return x_8; } } -lean_object* _init_l_Array_forMAux___main___at___private_Lean_Elab_Match_18__collect___main___spec__3___closed__1() { +lean_object* _init_l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__3___closed__1() { _start: { lean_object* x_1; @@ -10400,27 +10873,27 @@ x_1 = lean_mk_string("named parameters are not allowed in patterns"); return x_1; } } -lean_object* _init_l_Array_forMAux___main___at___private_Lean_Elab_Match_18__collect___main___spec__3___closed__2() { +lean_object* _init_l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__3___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forMAux___main___at___private_Lean_Elab_Match_18__collect___main___spec__3___closed__1; +x_1 = l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__3___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l_Array_forMAux___main___at___private_Lean_Elab_Match_18__collect___main___spec__3___closed__3() { +lean_object* _init_l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__3___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forMAux___main___at___private_Lean_Elab_Match_18__collect___main___spec__3___closed__2; +x_1 = l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__3___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_18__collect___main___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) { +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___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; uint8_t x_8; @@ -10467,8 +10940,8 @@ lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_dec(x_14); lean_dec(x_4); lean_dec(x_1); -x_19 = l_Array_forMAux___main___at___private_Lean_Elab_Match_18__collect___main___spec__3___closed__3; -x_20 = l_Lean_Elab_Term_throwError___rarg(x_12, x_19, x_5, x_6); +x_19 = l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__3___closed__3; +x_20 = l_Lean_Elab_Term_throwErrorAt___rarg(x_12, x_19, x_5, x_6); lean_dec(x_12); x_21 = !lean_is_exclusive(x_20); if (x_21 == 0) @@ -10492,7 +10965,7 @@ return x_24; } } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_18__collect___main___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_20__collect___main___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; uint8_t x_8; @@ -10525,7 +10998,7 @@ if (x_16 == 0) { lean_object* x_17; lean_inc(x_5); -x_17 = l___private_Lean_Elab_Match_18__collect___main(x_15, x_4, x_5, x_6); +x_17 = l___private_Lean_Elab_Match_20__collect___main(x_15, x_4, x_5, x_6); if (lean_obj_tag(x_17) == 0) { 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; @@ -10591,13 +11064,13 @@ goto _start; } } } -lean_object* l___private_Lean_Elab_Match_18__collect___main___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Match_20__collect___main___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_unsigned_to_nat(2u); x_6 = l_Lean_Syntax_getArg(x_1, x_5); -x_7 = l___private_Lean_Elab_Match_18__collect___main(x_6, x_2, x_3, x_4); +x_7 = l___private_Lean_Elab_Match_20__collect___main(x_6, x_2, x_3, x_4); if (lean_obj_tag(x_7) == 0) { uint8_t x_8; @@ -10690,7 +11163,7 @@ return x_28; } } } -lean_object* _init_l___private_Lean_Elab_Match_18__collect___main___closed__1() { +lean_object* _init_l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__1() { _start: { lean_object* x_1; @@ -10698,27 +11171,27 @@ x_1 = lean_mk_string("invalid pattern, notation is ambiguous"); return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_18__collect___main___closed__2() { +lean_object* _init_l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_18__collect___main___closed__1; +x_1 = l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_18__collect___main___closed__3() { +lean_object* _init_l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_18__collect___main___closed__2; +x_1 = l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_18__collect___main___closed__4() { +lean_object* _init_l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__4() { _start: { lean_object* x_1; lean_object* x_2; @@ -10727,13 +11200,13 @@ x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_18__collect___main___closed__5() { +lean_object* _init_l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Term_namedPattern___elambda__1___closed__1; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Lean_Elab_Match_18__collect___main___closed__4; +x_3 = l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__4; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -10741,7 +11214,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -lean_object* _init_l___private_Lean_Elab_Match_18__collect___main___closed__6() { +lean_object* _init_l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -10751,84 +11224,39 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* _init_l___private_Lean_Elab_Match_18__collect___main___closed__7() { +lean_object* _init_l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_Match_18__collect___main___closed__6; +x_2 = l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__6; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* _init_l___private_Lean_Elab_Match_18__collect___main___closed__8() { +lean_object* _init_l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_Match_18__collect___main___closed__7; +x_2 = l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__7; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* _init_l___private_Lean_Elab_Match_18__collect___main___closed__9() { +lean_object* _init_l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__9() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_18__collect___main), 4, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_20__collect___main), 4, 0); return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_18__collect___main___closed__10() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_SourceInfo_inhabited___closed__1; -x_2 = l_Lean_Parser_FirstTokens_toStr___closed__3; -x_3 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -lean_object* _init_l___private_Lean_Elab_Match_18__collect___main___closed__11() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_empty___closed__1; -x_2 = l___private_Lean_Elab_Match_18__collect___main___closed__10; -x_3 = lean_array_push(x_1, x_2); -return x_3; -} -} -lean_object* _init_l___private_Lean_Elab_Match_18__collect___main___closed__12() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__1; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; -} -} -lean_object* _init_l___private_Lean_Elab_Match_18__collect___main___closed__13() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__1; -x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Lean_Elab_Match_18__collect___main___closed__12; -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* _init_l___private_Lean_Elab_Match_18__collect___main___closed__14() { +lean_object* _init_l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__10() { _start: { lean_object* x_1; @@ -10836,718 +11264,708 @@ x_1 = lean_mk_string("invalid struct instance pattern, 'with' is not allowed in return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_18__collect___main___closed__15() { +lean_object* _init_l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__11() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_18__collect___main___closed__14; +x_1 = l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__10; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_18__collect___main___closed__16() { +lean_object* _init_l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__12() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_18__collect___main___closed__15; +x_1 = l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__11; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_18__collect___main___closed__17() { +lean_object* _init_l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__13() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_18__collect___main___lambda__1), 4, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_20__collect___main___lambda__1), 4, 0); return x_1; } } -lean_object* l___private_Lean_Elab_Match_18__collect___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Match_20__collect___main___lambda__2(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -switch (lean_obj_tag(x_1)) { -case 1: +uint8_t x_10; +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) { -lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; uint8_t x_9; -x_5 = lean_ctor_get(x_1, 0); -lean_inc(x_5); -x_6 = lean_ctor_get(x_1, 1); -lean_inc(x_6); -x_7 = l_Lean_mkAppStx___closed__8; -x_8 = lean_name_eq(x_5, x_7); -x_9 = !lean_is_exclusive(x_4); -if (x_9 == 0) +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_9, 5); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_11, x_12); +lean_ctor_set(x_9, 5, x_13); +x_14 = !lean_is_exclusive(x_8); +if (x_14 == 0) { -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_10 = lean_ctor_get(x_4, 5); -x_11 = lean_unsigned_to_nat(1u); -x_12 = lean_nat_add(x_10, x_11); -lean_ctor_set(x_4, 5, x_12); -x_13 = !lean_is_exclusive(x_3); -if (x_13 == 0) +lean_object* x_15; +x_15 = lean_ctor_get(x_8, 9); +lean_dec(x_15); +lean_ctor_set(x_8, 9, x_11); +if (x_1 == 0) { -lean_object* x_14; -x_14 = lean_ctor_get(x_3, 9); -lean_dec(x_14); -lean_ctor_set(x_3, 9, x_10); -if (x_8 == 0) -{ -lean_object* x_15; uint8_t x_16; -x_15 = l_Lean_Parser_Term_anonymousCtor___elambda__1___closed__2; -x_16 = lean_name_eq(x_5, x_15); -if (x_16 == 0) -{ -lean_object* x_17; uint8_t x_18; -x_17 = l_Lean_Parser_Term_structInst___elambda__1___closed__2; -x_18 = lean_name_eq(x_5, x_17); +lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_16 = l_Lean_Parser_Term_anonymousCtor___elambda__1___closed__1; +lean_inc(x_2); +x_17 = lean_name_mk_string(x_2, x_16); +x_18 = lean_name_eq(x_3, x_17); +lean_dec(x_17); if (x_18 == 0) { -lean_object* x_19; uint8_t x_20; -x_19 = l_Lean_mkHole___closed__2; -x_20 = lean_name_eq(x_5, x_19); -if (x_20 == 0) +lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_19 = l_Lean_Parser_Term_structInst___elambda__1___closed__1; +lean_inc(x_2); +x_20 = lean_name_mk_string(x_2, x_19); +x_21 = lean_name_eq(x_3, x_20); +lean_dec(x_20); +if (x_21 == 0) { -lean_object* x_21; uint8_t x_22; -x_21 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__2; -x_22 = lean_name_eq(x_5, x_21); -if (x_22 == 0) -{ -lean_object* x_23; uint8_t x_24; -x_23 = l_Lean_mkTermIdFromIdent___closed__2; -x_24 = lean_name_eq(x_5, x_23); +lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_22 = l_Lean_mkHole___closed__1; +lean_inc(x_2); +x_23 = lean_name_mk_string(x_2, x_22); +x_24 = lean_name_eq(x_3, x_23); +lean_dec(x_23); if (x_24 == 0) { -lean_object* x_25; uint8_t x_26; -lean_dec(x_6); -x_25 = l_Lean_Parser_Term_inaccessible___elambda__1___closed__2; -x_26 = lean_name_eq(x_5, x_25); -if (x_26 == 0) +lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_25 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__1; +lean_inc(x_2); +x_26 = lean_name_mk_string(x_2, x_25); +x_27 = lean_name_eq(x_3, x_26); +lean_dec(x_26); +if (x_27 == 0) { -lean_object* x_27; uint8_t x_28; -x_27 = l_Lean_String_HasQuote___closed__2; -x_28 = lean_name_eq(x_5, x_27); -if (x_28 == 0) -{ -lean_object* x_29; uint8_t x_30; -x_29 = l_Lean_Nat_HasQuote___closed__2; -x_30 = lean_name_eq(x_5, x_29); +lean_object* x_28; lean_object* x_29; uint8_t x_30; +x_28 = l_Lean_mkTermIdFromIdent___closed__1; +lean_inc(x_2); +x_29 = lean_name_mk_string(x_2, x_28); +x_30 = lean_name_eq(x_3, x_29); if (x_30 == 0) { -lean_object* x_31; uint8_t x_32; -x_31 = l_Lean_Parser_Term_char___elambda__1___closed__2; -x_32 = lean_name_eq(x_5, x_31); -if (x_32 == 0) -{ -lean_object* x_33; uint8_t x_34; -x_33 = l_Lean_choiceKind; -x_34 = lean_name_eq(x_5, x_33); +lean_object* x_31; lean_object* x_32; uint8_t x_33; +lean_dec(x_29); +lean_dec(x_6); lean_dec(x_5); -if (x_34 == 0) +x_31 = l_Lean_Parser_Term_inaccessible___elambda__1___closed__1; +lean_inc(x_2); +x_32 = lean_name_mk_string(x_2, x_31); +x_33 = lean_name_eq(x_3, x_32); +lean_dec(x_32); +if (x_33 == 0) { -lean_object* x_35; -x_35 = l___private_Lean_Elab_Match_17__throwInvalidPattern___rarg(x_1, x_2, x_3, x_4); -lean_dec(x_2); -lean_dec(x_1); -return x_35; -} -else +lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_34 = l_Lean_String_HasQuote___closed__1; +lean_inc(x_2); +x_35 = lean_name_mk_string(x_2, x_34); +x_36 = lean_name_eq(x_3, x_35); +lean_dec(x_35); +if (x_36 == 0) { -lean_object* x_36; lean_object* x_37; uint8_t x_38; -lean_dec(x_2); -x_36 = l___private_Lean_Elab_Match_18__collect___main___closed__3; -x_37 = l_Lean_Elab_Term_throwError___rarg(x_1, x_36, x_3, x_4); -lean_dec(x_1); -x_38 = !lean_is_exclusive(x_37); -if (x_38 == 0) +lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_37 = l_Lean_Nat_HasQuote___closed__1; +lean_inc(x_2); +x_38 = lean_name_mk_string(x_2, x_37); +x_39 = lean_name_eq(x_3, x_38); +lean_dec(x_38); +if (x_39 == 0) { -return x_37; -} -else +lean_object* x_40; lean_object* x_41; uint8_t x_42; +x_40 = l_Lean_Parser_Term_char___elambda__1___closed__1; +x_41 = lean_name_mk_string(x_2, x_40); +x_42 = lean_name_eq(x_3, x_41); +lean_dec(x_41); +if (x_42 == 0) { -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_37, 0); -x_40 = lean_ctor_get(x_37, 1); -lean_inc(x_40); -lean_inc(x_39); -lean_dec(x_37); -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 -{ -lean_object* x_42; lean_object* x_43; +lean_object* x_43; uint8_t x_44; +lean_dec(x_4); +x_43 = l_Lean_choiceKind; +x_44 = lean_name_eq(x_3, x_43); lean_dec(x_3); -lean_dec(x_5); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_1); -lean_ctor_set(x_42, 1, x_2); -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_4); -return x_43; -} -} -else +if (x_44 == 0) { -lean_object* x_44; lean_object* x_45; -lean_dec(x_3); -lean_dec(x_5); -x_44 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_44, 0, x_1); -lean_ctor_set(x_44, 1, x_2); -x_45 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_45, 0, x_44); -lean_ctor_set(x_45, 1, x_4); +lean_object* x_45; +x_45 = l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg(x_7, x_8, x_9); +lean_dec(x_7); return x_45; } -} else { -lean_object* x_46; lean_object* x_47; -lean_dec(x_3); -lean_dec(x_5); -x_46 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_46, 0, x_1); -lean_ctor_set(x_46, 1, x_2); -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_4); +lean_object* x_46; lean_object* x_47; uint8_t x_48; +lean_dec(x_7); +x_46 = l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__3; +x_47 = l_Lean_Elab_Term_throwError___rarg(x_46, x_8, x_9); +x_48 = !lean_is_exclusive(x_47); +if (x_48 == 0) +{ return x_47; } +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_47, 0); +x_50 = lean_ctor_get(x_47, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_47); +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +return x_51; +} +} } else { -lean_object* x_48; lean_object* x_49; +lean_object* x_52; lean_object* x_53; +lean_dec(x_8); lean_dec(x_3); -lean_dec(x_5); -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_1); -lean_ctor_set(x_48, 1, x_2); -x_49 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, x_4); -return x_49; +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_4); +lean_ctor_set(x_52, 1, x_7); +x_53 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_9); +return x_53; } } else { -lean_object* x_50; lean_object* x_51; uint8_t x_52; -lean_dec(x_5); -x_50 = l_Lean_Syntax_inhabited; -x_51 = lean_array_get(x_50, x_6, x_11); -lean_dec(x_6); -x_52 = l_Lean_Syntax_isNone(x_51); -if (x_52 == 0) -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; -x_53 = lean_unsigned_to_nat(0u); -x_54 = l_Lean_Syntax_getArg(x_51, x_53); -lean_dec(x_51); -x_55 = l_Lean_Parser_Term_explicitUniv___elambda__1___closed__2; -lean_inc(x_54); -x_56 = l_Lean_Syntax_isOfKind(x_54, x_55); -if (x_56 == 0) -{ -lean_object* x_57; uint8_t x_58; -x_57 = l_Lean_Parser_Term_namedPattern___elambda__1___closed__2; -lean_inc(x_54); -x_58 = l_Lean_Syntax_isOfKind(x_54, x_57); -if (x_58 == 0) -{ -lean_object* x_59; -lean_dec(x_54); -x_59 = l___private_Lean_Elab_Match_17__throwInvalidPattern___rarg(x_1, x_2, x_3, x_4); +lean_object* x_54; lean_object* x_55; +lean_dec(x_8); +lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); +x_54 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_54, 0, x_4); +lean_ctor_set(x_54, 1, x_7); +x_55 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_55, 0, x_54); +lean_ctor_set(x_55, 1, x_9); +return x_55; +} +} +else +{ +lean_object* x_56; lean_object* x_57; +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +x_56 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_56, 0, x_4); +lean_ctor_set(x_56, 1, x_7); +x_57 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_57, 0, x_56); +lean_ctor_set(x_57, 1, x_9); +return x_57; +} +} +else +{ +lean_object* x_58; lean_object* x_59; +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_4); +lean_ctor_set(x_58, 1, x_7); +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_9); return x_59; } +} else { -lean_object* x_60; lean_object* x_61; uint8_t x_62; lean_object* x_63; -x_60 = l_Lean_Syntax_getIdOfTermId(x_1); -x_61 = l_Lean_Syntax_getArg(x_54, x_11); -lean_dec(x_54); -x_62 = 0; -lean_inc(x_3); -lean_inc(x_60); -x_63 = l___private_Lean_Elab_Match_13__processVar(x_1, x_60, x_62, x_2, x_3, x_4); -if (lean_obj_tag(x_63) == 0) +lean_object* x_60; lean_object* x_61; uint8_t x_62; +lean_dec(x_3); +x_60 = l_Lean_Syntax_inhabited; +x_61 = lean_array_get(x_60, x_5, x_12); +lean_dec(x_5); +x_62 = l_Lean_Syntax_isNone(x_61); +if (x_62 == 0) { -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_64 = lean_ctor_get(x_63, 0); +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; +x_63 = lean_unsigned_to_nat(0u); +x_64 = l_Lean_Syntax_getArg(x_61, x_63); +lean_dec(x_61); +x_65 = l_Lean_Parser_Term_explicitUniv___elambda__1___closed__1; +lean_inc(x_2); +x_66 = lean_name_mk_string(x_2, x_65); lean_inc(x_64); -x_65 = lean_ctor_get(x_63, 1); -lean_inc(x_65); -lean_dec(x_63); -x_66 = lean_ctor_get(x_64, 1); -lean_inc(x_66); -lean_dec(x_64); -lean_inc(x_3); -x_67 = l___private_Lean_Elab_Match_18__collect___main(x_61, x_66, x_3, x_65); -if (lean_obj_tag(x_67) == 0) +x_67 = l_Lean_Syntax_isOfKind(x_64, x_66); +lean_dec(x_66); +if (x_67 == 0) { lean_object* x_68; lean_object* x_69; uint8_t x_70; -x_68 = lean_ctor_get(x_67, 0); -lean_inc(x_68); -x_69 = lean_ctor_get(x_67, 1); -lean_inc(x_69); -lean_dec(x_67); -x_70 = !lean_is_exclusive(x_68); +x_68 = l_Lean_Parser_Term_namedPattern___elambda__1___closed__1; +x_69 = lean_name_mk_string(x_2, x_68); +lean_inc(x_64); +x_70 = l_Lean_Syntax_isOfKind(x_64, x_69); +lean_dec(x_69); if (x_70 == 0) { -lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_t x_76; -x_71 = lean_ctor_get(x_68, 0); -x_72 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_69); -lean_dec(x_3); -x_73 = lean_ctor_get(x_72, 0); -lean_inc(x_73); -x_74 = lean_ctor_get(x_72, 1); -lean_inc(x_74); -lean_dec(x_72); -x_75 = l_Lean_Elab_Term_getMainModule___rarg(x_74); -x_76 = !lean_is_exclusive(x_75); -if (x_76 == 0) -{ -lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; uint8_t x_91; -x_77 = lean_ctor_get(x_75, 0); -x_78 = l___private_Lean_Elab_Match_18__collect___main___closed__6; -x_79 = l_Lean_addMacroScope(x_77, x_78, x_73); -x_80 = l_Lean_SourceInfo_inhabited___closed__1; -x_81 = l___private_Lean_Elab_Match_18__collect___main___closed__5; -x_82 = l___private_Lean_Elab_Match_18__collect___main___closed__8; -x_83 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_83, 0, x_80); -lean_ctor_set(x_83, 1, x_81); -lean_ctor_set(x_83, 2, x_79); -lean_ctor_set(x_83, 3, x_82); -x_84 = l_Array_empty___closed__1; -x_85 = lean_array_push(x_84, x_83); -x_86 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; -x_87 = lean_array_push(x_85, x_86); -x_88 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_88, 0, x_23); -lean_ctor_set(x_88, 1, x_87); -x_89 = lean_array_push(x_84, x_88); -x_90 = l_Lean_mkTermIdFrom(x_1, x_60); -x_91 = !lean_is_exclusive(x_1); -if (x_91 == 0) -{ -lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; -x_92 = lean_ctor_get(x_1, 1); -lean_dec(x_92); -x_93 = lean_ctor_get(x_1, 0); -lean_dec(x_93); -x_94 = lean_array_push(x_84, x_90); -x_95 = lean_array_push(x_94, x_71); -x_96 = l_Lean_nullKind___closed__2; -lean_ctor_set(x_1, 1, x_95); -lean_ctor_set(x_1, 0, x_96); -x_97 = lean_array_push(x_89, x_1); -x_98 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_98, 0, x_7); -lean_ctor_set(x_98, 1, x_97); -lean_ctor_set(x_68, 0, x_98); -lean_ctor_set(x_75, 0, x_68); -return x_75; +lean_object* x_71; +lean_dec(x_64); +lean_dec(x_29); +lean_dec(x_6); +lean_dec(x_4); +x_71 = l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg(x_7, x_8, x_9); +lean_dec(x_7); +return x_71; } else { -lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; -lean_dec(x_1); -x_99 = lean_array_push(x_84, x_90); -x_100 = lean_array_push(x_99, x_71); -x_101 = l_Lean_nullKind___closed__2; -x_102 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_102, 0, x_101); -lean_ctor_set(x_102, 1, x_100); -x_103 = lean_array_push(x_89, x_102); -x_104 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_104, 0, x_7); -lean_ctor_set(x_104, 1, x_103); -lean_ctor_set(x_68, 0, x_104); -lean_ctor_set(x_75, 0, x_68); -return x_75; -} -} -else +lean_object* x_72; lean_object* x_73; uint8_t x_74; lean_object* x_75; +x_72 = l_Lean_Syntax_getIdOfTermId(x_4); +x_73 = l_Lean_Syntax_getArg(x_64, x_12); +lean_dec(x_64); +x_74 = 0; +lean_inc(x_8); +lean_inc(x_72); +x_75 = l___private_Lean_Elab_Match_15__processVar(x_72, x_74, x_7, x_8, x_9); +if (lean_obj_tag(x_75) == 0) { -lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; -x_105 = lean_ctor_get(x_75, 0); -x_106 = lean_ctor_get(x_75, 1); -lean_inc(x_106); -lean_inc(x_105); +lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_76 = lean_ctor_get(x_75, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_75, 1); +lean_inc(x_77); lean_dec(x_75); -x_107 = l___private_Lean_Elab_Match_18__collect___main___closed__6; -x_108 = l_Lean_addMacroScope(x_105, x_107, x_73); -x_109 = l_Lean_SourceInfo_inhabited___closed__1; -x_110 = l___private_Lean_Elab_Match_18__collect___main___closed__5; -x_111 = l___private_Lean_Elab_Match_18__collect___main___closed__8; -x_112 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_112, 0, x_109); -lean_ctor_set(x_112, 1, x_110); -lean_ctor_set(x_112, 2, x_108); -lean_ctor_set(x_112, 3, x_111); -x_113 = l_Array_empty___closed__1; -x_114 = lean_array_push(x_113, x_112); -x_115 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; -x_116 = lean_array_push(x_114, x_115); -x_117 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_117, 0, x_23); -lean_ctor_set(x_117, 1, x_116); -x_118 = lean_array_push(x_113, x_117); -x_119 = l_Lean_mkTermIdFrom(x_1, x_60); -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - x_120 = x_1; -} else { - lean_dec_ref(x_1); - x_120 = lean_box(0); +x_78 = lean_ctor_get(x_76, 1); +lean_inc(x_78); +lean_dec(x_76); +lean_inc(x_8); +x_79 = l___private_Lean_Elab_Match_20__collect___main(x_73, x_78, x_8, x_77); +if (lean_obj_tag(x_79) == 0) +{ +lean_object* x_80; lean_object* x_81; uint8_t x_82; +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_is_exclusive(x_80); +if (x_82 == 0) +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; uint8_t x_88; +x_83 = lean_ctor_get(x_80, 0); +x_84 = l_Lean_Elab_Term_getCurrMacroScope(x_8, x_81); +lean_dec(x_8); +x_85 = lean_ctor_get(x_84, 0); +lean_inc(x_85); +x_86 = lean_ctor_get(x_84, 1); +lean_inc(x_86); +lean_dec(x_84); +x_87 = l_Lean_Elab_Term_getMainModule___rarg(x_86); +x_88 = !lean_is_exclusive(x_87); +if (x_88 == 0) +{ +lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_89 = lean_ctor_get(x_87, 0); +x_90 = l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__6; +x_91 = l_Lean_addMacroScope(x_89, x_90, x_85); +x_92 = l_Lean_SourceInfo_inhabited___closed__1; +x_93 = l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__5; +x_94 = l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__8; +x_95 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_95, 0, x_92); +lean_ctor_set(x_95, 1, x_93); +lean_ctor_set(x_95, 2, x_91); +lean_ctor_set(x_95, 3, x_94); +x_96 = l_Array_empty___closed__1; +x_97 = lean_array_push(x_96, x_95); +x_98 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; +x_99 = lean_array_push(x_97, x_98); +x_100 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_100, 0, x_29); +lean_ctor_set(x_100, 1, x_99); +x_101 = lean_array_push(x_96, x_100); +x_102 = l_Lean_mkTermIdFrom(x_4, x_72); +lean_dec(x_4); +x_103 = lean_array_push(x_96, x_102); +x_104 = lean_array_push(x_103, x_83); +x_105 = l_Lean_nullKind___closed__2; +x_106 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_106, 0, x_105); +lean_ctor_set(x_106, 1, x_104); +x_107 = lean_array_push(x_101, x_106); +x_108 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_108, 0, x_6); +lean_ctor_set(x_108, 1, x_107); +lean_ctor_set(x_80, 0, x_108); +lean_ctor_set(x_87, 0, x_80); +return x_87; } -x_121 = lean_array_push(x_113, x_119); -x_122 = lean_array_push(x_121, x_71); -x_123 = l_Lean_nullKind___closed__2; -if (lean_is_scalar(x_120)) { - x_124 = lean_alloc_ctor(1, 2, 0); -} else { - x_124 = x_120; -} -lean_ctor_set(x_124, 0, x_123); -lean_ctor_set(x_124, 1, x_122); -x_125 = lean_array_push(x_118, x_124); -x_126 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_126, 0, x_7); -lean_ctor_set(x_126, 1, x_125); -lean_ctor_set(x_68, 0, x_126); -x_127 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_127, 0, x_68); -lean_ctor_set(x_127, 1, x_106); -return x_127; +else +{ +lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; +x_109 = lean_ctor_get(x_87, 0); +x_110 = lean_ctor_get(x_87, 1); +lean_inc(x_110); +lean_inc(x_109); +lean_dec(x_87); +x_111 = l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__6; +x_112 = l_Lean_addMacroScope(x_109, x_111, x_85); +x_113 = l_Lean_SourceInfo_inhabited___closed__1; +x_114 = l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__5; +x_115 = l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__8; +x_116 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_116, 0, x_113); +lean_ctor_set(x_116, 1, x_114); +lean_ctor_set(x_116, 2, x_112); +lean_ctor_set(x_116, 3, x_115); +x_117 = l_Array_empty___closed__1; +x_118 = lean_array_push(x_117, x_116); +x_119 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; +x_120 = lean_array_push(x_118, x_119); +x_121 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_121, 0, x_29); +lean_ctor_set(x_121, 1, x_120); +x_122 = lean_array_push(x_117, x_121); +x_123 = l_Lean_mkTermIdFrom(x_4, x_72); +lean_dec(x_4); +x_124 = lean_array_push(x_117, x_123); +x_125 = lean_array_push(x_124, x_83); +x_126 = l_Lean_nullKind___closed__2; +x_127 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_127, 0, x_126); +lean_ctor_set(x_127, 1, x_125); +x_128 = lean_array_push(x_122, x_127); +x_129 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_129, 0, x_6); +lean_ctor_set(x_129, 1, x_128); +lean_ctor_set(x_80, 0, x_129); +x_130 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_130, 0, x_80); +lean_ctor_set(x_130, 1, x_110); +return x_130; } } else { -lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; -x_128 = lean_ctor_get(x_68, 0); -x_129 = lean_ctor_get(x_68, 1); -lean_inc(x_129); -lean_inc(x_128); -lean_dec(x_68); -x_130 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_69); -lean_dec(x_3); -x_131 = lean_ctor_get(x_130, 0); -lean_inc(x_131); -x_132 = lean_ctor_get(x_130, 1); +lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; +x_131 = lean_ctor_get(x_80, 0); +x_132 = lean_ctor_get(x_80, 1); lean_inc(x_132); -lean_dec(x_130); -x_133 = l_Lean_Elab_Term_getMainModule___rarg(x_132); +lean_inc(x_131); +lean_dec(x_80); +x_133 = l_Lean_Elab_Term_getCurrMacroScope(x_8, x_81); +lean_dec(x_8); x_134 = lean_ctor_get(x_133, 0); lean_inc(x_134); x_135 = lean_ctor_get(x_133, 1); lean_inc(x_135); -if (lean_is_exclusive(x_133)) { - lean_ctor_release(x_133, 0); - lean_ctor_release(x_133, 1); - x_136 = x_133; +lean_dec(x_133); +x_136 = l_Lean_Elab_Term_getMainModule___rarg(x_135); +x_137 = lean_ctor_get(x_136, 0); +lean_inc(x_137); +x_138 = lean_ctor_get(x_136, 1); +lean_inc(x_138); +if (lean_is_exclusive(x_136)) { + lean_ctor_release(x_136, 0); + lean_ctor_release(x_136, 1); + x_139 = x_136; } else { - lean_dec_ref(x_133); - x_136 = lean_box(0); + lean_dec_ref(x_136); + x_139 = lean_box(0); } -x_137 = l___private_Lean_Elab_Match_18__collect___main___closed__6; -x_138 = l_Lean_addMacroScope(x_134, x_137, x_131); -x_139 = l_Lean_SourceInfo_inhabited___closed__1; -x_140 = l___private_Lean_Elab_Match_18__collect___main___closed__5; -x_141 = l___private_Lean_Elab_Match_18__collect___main___closed__8; -x_142 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_142, 0, x_139); -lean_ctor_set(x_142, 1, x_140); -lean_ctor_set(x_142, 2, x_138); -lean_ctor_set(x_142, 3, x_141); -x_143 = l_Array_empty___closed__1; -x_144 = lean_array_push(x_143, x_142); -x_145 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; -x_146 = lean_array_push(x_144, x_145); -x_147 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_147, 0, x_23); -lean_ctor_set(x_147, 1, x_146); -x_148 = lean_array_push(x_143, x_147); -x_149 = l_Lean_mkTermIdFrom(x_1, x_60); -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - x_150 = x_1; -} else { - lean_dec_ref(x_1); - x_150 = lean_box(0); -} -x_151 = lean_array_push(x_143, x_149); -x_152 = lean_array_push(x_151, x_128); -x_153 = l_Lean_nullKind___closed__2; -if (lean_is_scalar(x_150)) { - x_154 = lean_alloc_ctor(1, 2, 0); -} else { - x_154 = x_150; -} -lean_ctor_set(x_154, 0, x_153); -lean_ctor_set(x_154, 1, x_152); -x_155 = lean_array_push(x_148, x_154); +x_140 = l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__6; +x_141 = l_Lean_addMacroScope(x_137, x_140, x_134); +x_142 = l_Lean_SourceInfo_inhabited___closed__1; +x_143 = l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__5; +x_144 = l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__8; +x_145 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_145, 0, x_142); +lean_ctor_set(x_145, 1, x_143); +lean_ctor_set(x_145, 2, x_141); +lean_ctor_set(x_145, 3, x_144); +x_146 = l_Array_empty___closed__1; +x_147 = lean_array_push(x_146, x_145); +x_148 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; +x_149 = lean_array_push(x_147, x_148); +x_150 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_150, 0, x_29); +lean_ctor_set(x_150, 1, x_149); +x_151 = lean_array_push(x_146, x_150); +x_152 = l_Lean_mkTermIdFrom(x_4, x_72); +lean_dec(x_4); +x_153 = lean_array_push(x_146, x_152); +x_154 = lean_array_push(x_153, x_131); +x_155 = l_Lean_nullKind___closed__2; x_156 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_156, 0, x_7); -lean_ctor_set(x_156, 1, x_155); -x_157 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_157, 0, x_156); -lean_ctor_set(x_157, 1, x_129); -if (lean_is_scalar(x_136)) { - x_158 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_156, 0, x_155); +lean_ctor_set(x_156, 1, x_154); +x_157 = lean_array_push(x_151, x_156); +x_158 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_158, 0, x_6); +lean_ctor_set(x_158, 1, x_157); +x_159 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_159, 0, x_158); +lean_ctor_set(x_159, 1, x_132); +if (lean_is_scalar(x_139)) { + x_160 = lean_alloc_ctor(0, 2, 0); } else { - x_158 = x_136; + x_160 = x_139; } -lean_ctor_set(x_158, 0, x_157); -lean_ctor_set(x_158, 1, x_135); -return x_158; +lean_ctor_set(x_160, 0, x_159); +lean_ctor_set(x_160, 1, x_138); +return x_160; } } else { -uint8_t x_159; -lean_dec(x_60); -lean_dec(x_3); -lean_dec(x_1); -x_159 = !lean_is_exclusive(x_67); -if (x_159 == 0) +uint8_t x_161; +lean_dec(x_72); +lean_dec(x_29); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_4); +x_161 = !lean_is_exclusive(x_79); +if (x_161 == 0) { -return x_67; +return x_79; } else { -lean_object* x_160; lean_object* x_161; lean_object* x_162; -x_160 = lean_ctor_get(x_67, 0); -x_161 = lean_ctor_get(x_67, 1); -lean_inc(x_161); -lean_inc(x_160); -lean_dec(x_67); -x_162 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_162, 0, x_160); -lean_ctor_set(x_162, 1, x_161); -return x_162; +lean_object* x_162; lean_object* x_163; lean_object* x_164; +x_162 = lean_ctor_get(x_79, 0); +x_163 = lean_ctor_get(x_79, 1); +lean_inc(x_163); +lean_inc(x_162); +lean_dec(x_79); +x_164 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_164, 0, x_162); +lean_ctor_set(x_164, 1, x_163); +return x_164; } } } else { -uint8_t x_163; -lean_dec(x_61); -lean_dec(x_60); -lean_dec(x_3); -lean_dec(x_1); -x_163 = !lean_is_exclusive(x_63); -if (x_163 == 0) +uint8_t x_165; +lean_dec(x_73); +lean_dec(x_72); +lean_dec(x_29); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_4); +x_165 = !lean_is_exclusive(x_75); +if (x_165 == 0) { -return x_63; +return x_75; } else { -lean_object* x_164; lean_object* x_165; lean_object* x_166; -x_164 = lean_ctor_get(x_63, 0); -x_165 = lean_ctor_get(x_63, 1); -lean_inc(x_165); -lean_inc(x_164); -lean_dec(x_63); -x_166 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_166, 0, x_164); -lean_ctor_set(x_166, 1, x_165); -return x_166; +lean_object* x_166; lean_object* x_167; lean_object* x_168; +x_166 = lean_ctor_get(x_75, 0); +x_167 = lean_ctor_get(x_75, 1); +lean_inc(x_167); +lean_inc(x_166); +lean_dec(x_75); +x_168 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_168, 0, x_166); +lean_ctor_set(x_168, 1, x_167); +return x_168; } } } } else { -uint8_t x_167; lean_object* x_168; -lean_dec(x_54); -x_167 = 1; -lean_inc(x_1); -x_168 = l___private_Lean_Elab_Match_14__processIdAux(x_1, x_167, x_2, x_3, x_4); -if (lean_obj_tag(x_168) == 0) +uint8_t x_169; lean_object* x_170; +lean_dec(x_64); +lean_dec(x_29); +lean_dec(x_6); +lean_dec(x_2); +x_169 = 1; +lean_inc(x_4); +x_170 = l___private_Lean_Elab_Match_16__processIdAux(x_4, x_169, x_7, x_8, x_9); +if (lean_obj_tag(x_170) == 0) { -uint8_t x_169; -x_169 = !lean_is_exclusive(x_168); -if (x_169 == 0) -{ -lean_object* x_170; uint8_t x_171; -x_170 = lean_ctor_get(x_168, 0); +uint8_t x_171; x_171 = !lean_is_exclusive(x_170); if (x_171 == 0) { -lean_object* x_172; +lean_object* x_172; uint8_t x_173; x_172 = lean_ctor_get(x_170, 0); -lean_dec(x_172); -lean_ctor_set(x_170, 0, x_1); -return x_168; +x_173 = !lean_is_exclusive(x_172); +if (x_173 == 0) +{ +lean_object* x_174; +x_174 = lean_ctor_get(x_172, 0); +lean_dec(x_174); +lean_ctor_set(x_172, 0, x_4); +return x_170; } else { -lean_object* x_173; lean_object* x_174; -x_173 = lean_ctor_get(x_170, 1); -lean_inc(x_173); -lean_dec(x_170); -x_174 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_174, 0, x_1); -lean_ctor_set(x_174, 1, x_173); -lean_ctor_set(x_168, 0, x_174); -return x_168; -} -} -else -{ -lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; -x_175 = lean_ctor_get(x_168, 0); -x_176 = lean_ctor_get(x_168, 1); -lean_inc(x_176); +lean_object* x_175; lean_object* x_176; +x_175 = lean_ctor_get(x_172, 1); lean_inc(x_175); -lean_dec(x_168); -x_177 = lean_ctor_get(x_175, 1); +lean_dec(x_172); +x_176 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_176, 0, x_4); +lean_ctor_set(x_176, 1, x_175); +lean_ctor_set(x_170, 0, x_176); +return x_170; +} +} +else +{ +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_177 = lean_ctor_get(x_170, 0); +x_178 = lean_ctor_get(x_170, 1); +lean_inc(x_178); lean_inc(x_177); -if (lean_is_exclusive(x_175)) { - lean_ctor_release(x_175, 0); - lean_ctor_release(x_175, 1); - x_178 = x_175; +lean_dec(x_170); +x_179 = lean_ctor_get(x_177, 1); +lean_inc(x_179); +if (lean_is_exclusive(x_177)) { + lean_ctor_release(x_177, 0); + lean_ctor_release(x_177, 1); + x_180 = x_177; } else { - lean_dec_ref(x_175); - x_178 = lean_box(0); + lean_dec_ref(x_177); + x_180 = lean_box(0); } -if (lean_is_scalar(x_178)) { - x_179 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_180)) { + x_181 = lean_alloc_ctor(0, 2, 0); } else { - x_179 = x_178; + x_181 = x_180; } -lean_ctor_set(x_179, 0, x_1); -lean_ctor_set(x_179, 1, x_177); -x_180 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_180, 0, x_179); -lean_ctor_set(x_180, 1, x_176); -return x_180; +lean_ctor_set(x_181, 0, x_4); +lean_ctor_set(x_181, 1, x_179); +x_182 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_182, 0, x_181); +lean_ctor_set(x_182, 1, x_178); +return x_182; } } else { -uint8_t x_181; -lean_dec(x_1); -x_181 = !lean_is_exclusive(x_168); -if (x_181 == 0) +uint8_t x_183; +lean_dec(x_4); +x_183 = !lean_is_exclusive(x_170); +if (x_183 == 0) { -return x_168; +return x_170; } else { -lean_object* x_182; lean_object* x_183; lean_object* x_184; -x_182 = lean_ctor_get(x_168, 0); -x_183 = lean_ctor_get(x_168, 1); -lean_inc(x_183); -lean_inc(x_182); -lean_dec(x_168); -x_184 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_184, 0, x_182); -lean_ctor_set(x_184, 1, x_183); -return x_184; +lean_object* x_184; lean_object* x_185; lean_object* x_186; +x_184 = lean_ctor_get(x_170, 0); +x_185 = lean_ctor_get(x_170, 1); +lean_inc(x_185); +lean_inc(x_184); +lean_dec(x_170); +x_186 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_186, 0, x_184); +lean_ctor_set(x_186, 1, x_185); +return x_186; } } } } else { -lean_object* x_185; -lean_dec(x_51); -lean_inc(x_1); -x_185 = l___private_Lean_Elab_Match_16__processId(x_1, x_2, x_3, x_4); -if (lean_obj_tag(x_185) == 0) +lean_object* x_187; +lean_dec(x_61); +lean_dec(x_29); +lean_dec(x_6); +lean_dec(x_2); +lean_inc(x_4); +x_187 = l___private_Lean_Elab_Match_18__processId(x_4, x_7, x_8, x_9); +if (lean_obj_tag(x_187) == 0) { -uint8_t x_186; -x_186 = !lean_is_exclusive(x_185); -if (x_186 == 0) -{ -lean_object* x_187; uint8_t x_188; -x_187 = lean_ctor_get(x_185, 0); +uint8_t x_188; x_188 = !lean_is_exclusive(x_187); if (x_188 == 0) { -lean_object* x_189; +lean_object* x_189; uint8_t x_190; x_189 = lean_ctor_get(x_187, 0); -lean_dec(x_189); -lean_ctor_set(x_187, 0, x_1); -return x_185; +x_190 = !lean_is_exclusive(x_189); +if (x_190 == 0) +{ +lean_object* x_191; +x_191 = lean_ctor_get(x_189, 0); +lean_dec(x_191); +lean_ctor_set(x_189, 0, x_4); +return x_187; } else { -lean_object* x_190; lean_object* x_191; -x_190 = lean_ctor_get(x_187, 1); -lean_inc(x_190); -lean_dec(x_187); -x_191 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_191, 0, x_1); -lean_ctor_set(x_191, 1, x_190); -lean_ctor_set(x_185, 0, x_191); -return x_185; -} -} -else -{ -lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; -x_192 = lean_ctor_get(x_185, 0); -x_193 = lean_ctor_get(x_185, 1); -lean_inc(x_193); +lean_object* x_192; lean_object* x_193; +x_192 = lean_ctor_get(x_189, 1); lean_inc(x_192); -lean_dec(x_185); -x_194 = lean_ctor_get(x_192, 1); +lean_dec(x_189); +x_193 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_193, 0, x_4); +lean_ctor_set(x_193, 1, x_192); +lean_ctor_set(x_187, 0, x_193); +return x_187; +} +} +else +{ +lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; +x_194 = lean_ctor_get(x_187, 0); +x_195 = lean_ctor_get(x_187, 1); +lean_inc(x_195); lean_inc(x_194); -if (lean_is_exclusive(x_192)) { - lean_ctor_release(x_192, 0); - lean_ctor_release(x_192, 1); - x_195 = x_192; +lean_dec(x_187); +x_196 = lean_ctor_get(x_194, 1); +lean_inc(x_196); +if (lean_is_exclusive(x_194)) { + lean_ctor_release(x_194, 0); + lean_ctor_release(x_194, 1); + x_197 = x_194; } else { - lean_dec_ref(x_192); - x_195 = lean_box(0); + lean_dec_ref(x_194); + x_197 = lean_box(0); } -if (lean_is_scalar(x_195)) { - x_196 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_197)) { + x_198 = lean_alloc_ctor(0, 2, 0); } else { - x_196 = x_195; + x_198 = x_197; } -lean_ctor_set(x_196, 0, x_1); -lean_ctor_set(x_196, 1, x_194); -x_197 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_197, 0, x_196); -lean_ctor_set(x_197, 1, x_193); -return x_197; +lean_ctor_set(x_198, 0, x_4); +lean_ctor_set(x_198, 1, x_196); +x_199 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_199, 0, x_198); +lean_ctor_set(x_199, 1, x_195); +return x_199; } } else { -uint8_t x_198; -lean_dec(x_1); -x_198 = !lean_is_exclusive(x_185); -if (x_198 == 0) +uint8_t x_200; +lean_dec(x_4); +x_200 = !lean_is_exclusive(x_187); +if (x_200 == 0) { -return x_185; +return x_187; } else { -lean_object* x_199; lean_object* x_200; lean_object* x_201; -x_199 = lean_ctor_get(x_185, 0); -x_200 = lean_ctor_get(x_185, 1); -lean_inc(x_200); -lean_inc(x_199); -lean_dec(x_185); -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; +lean_object* x_201; lean_object* x_202; lean_object* x_203; +x_201 = lean_ctor_get(x_187, 0); +x_202 = lean_ctor_get(x_187, 1); +lean_inc(x_202); +lean_inc(x_201); +lean_dec(x_187); +x_203 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_203, 0, x_201); +lean_ctor_set(x_203, 1, x_202); +return x_203; } } } @@ -11555,37 +11973,33 @@ return x_201; } else { -lean_object* x_202; lean_object* x_203; uint8_t x_204; -x_202 = l_Lean_Syntax_inhabited; -x_203 = lean_array_get(x_202, x_6, x_11); -x_204 = l_Lean_Syntax_isNone(x_203); -if (x_204 == 0) +lean_object* x_204; lean_object* x_205; uint8_t x_206; +lean_dec(x_6); +x_204 = l_Lean_Syntax_inhabited; +x_205 = lean_array_get(x_204, x_5, x_12); +x_206 = l_Lean_Syntax_isNone(x_205); +if (x_206 == 0) { -uint8_t x_205; -x_205 = !lean_is_exclusive(x_1); -if (x_205 == 0) +lean_object* x_207; lean_object* x_208; lean_object* x_209; uint8_t x_210; +lean_dec(x_4); +x_207 = lean_unsigned_to_nat(0u); +x_208 = l_Lean_Syntax_getArg(x_205, x_207); +x_209 = l_Lean_Syntax_getArg(x_205, x_12); +x_210 = l_Lean_Syntax_isNone(x_209); +if (x_210 == 0) { -lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; uint8_t x_211; -x_206 = lean_ctor_get(x_1, 1); -lean_dec(x_206); -x_207 = lean_ctor_get(x_1, 0); -lean_dec(x_207); -x_208 = lean_unsigned_to_nat(0u); -x_209 = l_Lean_Syntax_getArg(x_203, x_208); -x_210 = l_Lean_Syntax_getArg(x_203, x_11); -x_211 = l_Lean_Syntax_isNone(x_210); -if (x_211 == 0) -{ -lean_object* x_212; lean_object* x_213; uint8_t x_214; -x_212 = l_Lean_Syntax_getArg(x_210, x_208); -x_213 = l_Lean_Parser_Term_typeAscription___elambda__1___closed__2; -lean_inc(x_212); -x_214 = l_Lean_Syntax_isOfKind(x_212, x_213); +lean_object* x_211; lean_object* x_212; lean_object* x_213; uint8_t x_214; +x_211 = l_Lean_Syntax_getArg(x_209, x_207); +x_212 = l_Lean_Parser_Term_typeAscription___elambda__1___closed__1; +x_213 = lean_name_mk_string(x_2, x_212); +lean_inc(x_211); +x_214 = l_Lean_Syntax_isOfKind(x_211, x_213); +lean_dec(x_213); if (x_214 == 0) { lean_object* x_215; -lean_inc(x_3); -x_215 = l___private_Lean_Elab_Match_18__collect___main(x_209, x_2, x_3, x_4); +lean_inc(x_8); +x_215 = l___private_Lean_Elab_Match_20__collect___main(x_208, x_7, x_8, x_9); if (lean_obj_tag(x_215) == 0) { lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; @@ -11599,12 +12013,12 @@ lean_inc(x_218); x_219 = lean_ctor_get(x_216, 1); lean_inc(x_219); lean_dec(x_216); -x_220 = l_Lean_Syntax_setArg(x_203, x_208, x_218); -x_221 = l_Lean_Syntax_getArg(x_212, x_11); +x_220 = l_Lean_Syntax_setArg(x_205, x_207, x_218); +x_221 = l_Lean_Syntax_getArg(x_211, x_12); x_222 = l_Lean_Syntax_getArgs(x_221); lean_dec(x_221); -x_223 = l___private_Lean_Elab_Match_18__collect___main___closed__9; -x_224 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_18__collect___main___spec__1(x_222, x_223, x_219, x_3, x_217); +x_223 = l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__9; +x_224 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_20__collect___main___spec__1(x_222, x_223, x_219, x_8, x_217); lean_dec(x_222); if (lean_obj_tag(x_224) == 0) { @@ -11617,4853 +12031,4078 @@ x_226 = lean_ctor_get(x_224, 0); x_227 = !lean_is_exclusive(x_226); if (x_227 == 0) { -lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; +lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; x_228 = lean_ctor_get(x_226, 0); x_229 = l_Lean_nullKind; -lean_ctor_set(x_1, 1, x_228); -lean_ctor_set(x_1, 0, x_229); -x_230 = l_Lean_Syntax_setArg(x_212, x_11, x_1); -x_231 = l_Lean_Syntax_setArg(x_210, x_208, x_230); -x_232 = l_Lean_Syntax_setArg(x_220, x_11, x_231); -x_233 = lean_array_set(x_6, x_11, x_232); -x_234 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_234, 0, x_5); -lean_ctor_set(x_234, 1, x_233); -lean_ctor_set(x_226, 0, x_234); +x_230 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_230, 0, x_229); +lean_ctor_set(x_230, 1, x_228); +x_231 = l_Lean_Syntax_setArg(x_211, x_12, x_230); +x_232 = l_Lean_Syntax_setArg(x_209, x_207, x_231); +x_233 = l_Lean_Syntax_setArg(x_220, x_12, x_232); +x_234 = lean_array_set(x_5, x_12, x_233); +x_235 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_235, 0, x_3); +lean_ctor_set(x_235, 1, x_234); +lean_ctor_set(x_226, 0, x_235); return x_224; } else { -lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; -x_235 = lean_ctor_get(x_226, 0); -x_236 = lean_ctor_get(x_226, 1); +lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; +x_236 = lean_ctor_get(x_226, 0); +x_237 = lean_ctor_get(x_226, 1); +lean_inc(x_237); lean_inc(x_236); -lean_inc(x_235); lean_dec(x_226); -x_237 = l_Lean_nullKind; -lean_ctor_set(x_1, 1, x_235); -lean_ctor_set(x_1, 0, x_237); -x_238 = l_Lean_Syntax_setArg(x_212, x_11, x_1); -x_239 = l_Lean_Syntax_setArg(x_210, x_208, x_238); -x_240 = l_Lean_Syntax_setArg(x_220, x_11, x_239); -x_241 = lean_array_set(x_6, x_11, x_240); -x_242 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_242, 0, x_5); -lean_ctor_set(x_242, 1, x_241); -x_243 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_243, 0, x_242); -lean_ctor_set(x_243, 1, x_236); -lean_ctor_set(x_224, 0, x_243); +x_238 = l_Lean_nullKind; +x_239 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_239, 0, x_238); +lean_ctor_set(x_239, 1, x_236); +x_240 = l_Lean_Syntax_setArg(x_211, x_12, x_239); +x_241 = l_Lean_Syntax_setArg(x_209, x_207, x_240); +x_242 = l_Lean_Syntax_setArg(x_220, x_12, x_241); +x_243 = lean_array_set(x_5, x_12, x_242); +x_244 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_244, 0, x_3); +lean_ctor_set(x_244, 1, x_243); +x_245 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_245, 0, x_244); +lean_ctor_set(x_245, 1, x_237); +lean_ctor_set(x_224, 0, x_245); return x_224; } } else { -lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; -x_244 = lean_ctor_get(x_224, 0); -x_245 = lean_ctor_get(x_224, 1); -lean_inc(x_245); -lean_inc(x_244); -lean_dec(x_224); -x_246 = lean_ctor_get(x_244, 0); -lean_inc(x_246); -x_247 = lean_ctor_get(x_244, 1); +lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; +x_246 = lean_ctor_get(x_224, 0); +x_247 = lean_ctor_get(x_224, 1); lean_inc(x_247); -if (lean_is_exclusive(x_244)) { - lean_ctor_release(x_244, 0); - lean_ctor_release(x_244, 1); - x_248 = x_244; +lean_inc(x_246); +lean_dec(x_224); +x_248 = lean_ctor_get(x_246, 0); +lean_inc(x_248); +x_249 = lean_ctor_get(x_246, 1); +lean_inc(x_249); +if (lean_is_exclusive(x_246)) { + lean_ctor_release(x_246, 0); + lean_ctor_release(x_246, 1); + x_250 = x_246; } else { - lean_dec_ref(x_244); - x_248 = lean_box(0); + lean_dec_ref(x_246); + x_250 = lean_box(0); } -x_249 = l_Lean_nullKind; -lean_ctor_set(x_1, 1, x_246); -lean_ctor_set(x_1, 0, x_249); -x_250 = l_Lean_Syntax_setArg(x_212, x_11, x_1); -x_251 = l_Lean_Syntax_setArg(x_210, x_208, x_250); -x_252 = l_Lean_Syntax_setArg(x_220, x_11, x_251); -x_253 = lean_array_set(x_6, x_11, x_252); -x_254 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_254, 0, x_5); -lean_ctor_set(x_254, 1, x_253); -if (lean_is_scalar(x_248)) { - x_255 = lean_alloc_ctor(0, 2, 0); +x_251 = l_Lean_nullKind; +x_252 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_252, 0, x_251); +lean_ctor_set(x_252, 1, x_248); +x_253 = l_Lean_Syntax_setArg(x_211, x_12, x_252); +x_254 = l_Lean_Syntax_setArg(x_209, x_207, x_253); +x_255 = l_Lean_Syntax_setArg(x_220, x_12, x_254); +x_256 = lean_array_set(x_5, x_12, x_255); +x_257 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_257, 0, x_3); +lean_ctor_set(x_257, 1, x_256); +if (lean_is_scalar(x_250)) { + x_258 = lean_alloc_ctor(0, 2, 0); } else { - x_255 = x_248; + x_258 = x_250; } -lean_ctor_set(x_255, 0, x_254); -lean_ctor_set(x_255, 1, x_247); -x_256 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_256, 0, x_255); -lean_ctor_set(x_256, 1, x_245); -return x_256; +lean_ctor_set(x_258, 0, x_257); +lean_ctor_set(x_258, 1, x_249); +x_259 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_259, 0, x_258); +lean_ctor_set(x_259, 1, x_247); +return x_259; } } else { -uint8_t x_257; +uint8_t x_260; lean_dec(x_220); -lean_dec(x_212); -lean_dec(x_210); -lean_free_object(x_1); -lean_dec(x_6); +lean_dec(x_211); +lean_dec(x_209); lean_dec(x_5); -x_257 = !lean_is_exclusive(x_224); -if (x_257 == 0) +lean_dec(x_3); +x_260 = !lean_is_exclusive(x_224); +if (x_260 == 0) { return x_224; } else { -lean_object* x_258; lean_object* x_259; lean_object* x_260; -x_258 = lean_ctor_get(x_224, 0); -x_259 = lean_ctor_get(x_224, 1); -lean_inc(x_259); -lean_inc(x_258); +lean_object* x_261; lean_object* x_262; lean_object* x_263; +x_261 = lean_ctor_get(x_224, 0); +x_262 = lean_ctor_get(x_224, 1); +lean_inc(x_262); +lean_inc(x_261); lean_dec(x_224); -x_260 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_260, 0, x_258); -lean_ctor_set(x_260, 1, x_259); -return x_260; +x_263 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_263, 0, x_261); +lean_ctor_set(x_263, 1, x_262); +return x_263; } } } else { -uint8_t x_261; -lean_dec(x_212); -lean_dec(x_210); -lean_free_object(x_1); -lean_dec(x_203); -lean_dec(x_3); -lean_dec(x_6); +uint8_t x_264; +lean_dec(x_211); +lean_dec(x_209); +lean_dec(x_205); +lean_dec(x_8); lean_dec(x_5); -x_261 = !lean_is_exclusive(x_215); -if (x_261 == 0) +lean_dec(x_3); +x_264 = !lean_is_exclusive(x_215); +if (x_264 == 0) { return x_215; } else { -lean_object* x_262; lean_object* x_263; lean_object* x_264; -x_262 = lean_ctor_get(x_215, 0); -x_263 = lean_ctor_get(x_215, 1); -lean_inc(x_263); -lean_inc(x_262); +lean_object* x_265; lean_object* x_266; lean_object* x_267; +x_265 = lean_ctor_get(x_215, 0); +x_266 = lean_ctor_get(x_215, 1); +lean_inc(x_266); +lean_inc(x_265); lean_dec(x_215); -x_264 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_264, 0, x_262); -lean_ctor_set(x_264, 1, x_263); -return x_264; +x_267 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_267, 0, x_265); +lean_ctor_set(x_267, 1, x_266); +return x_267; } } } else { -lean_object* x_265; -lean_dec(x_212); -lean_dec(x_210); -x_265 = l___private_Lean_Elab_Match_18__collect___main(x_209, x_2, x_3, x_4); -if (lean_obj_tag(x_265) == 0) +lean_object* x_268; +lean_dec(x_211); +lean_dec(x_209); +x_268 = l___private_Lean_Elab_Match_20__collect___main(x_208, x_7, x_8, x_9); +if (lean_obj_tag(x_268) == 0) { -uint8_t x_266; -x_266 = !lean_is_exclusive(x_265); -if (x_266 == 0) +uint8_t x_269; +x_269 = !lean_is_exclusive(x_268); +if (x_269 == 0) { -lean_object* x_267; uint8_t x_268; -x_267 = lean_ctor_get(x_265, 0); -x_268 = !lean_is_exclusive(x_267); -if (x_268 == 0) +lean_object* x_270; uint8_t x_271; +x_270 = lean_ctor_get(x_268, 0); +x_271 = !lean_is_exclusive(x_270); +if (x_271 == 0) { -lean_object* x_269; lean_object* x_270; lean_object* x_271; -x_269 = lean_ctor_get(x_267, 0); -x_270 = l_Lean_Syntax_setArg(x_203, x_208, x_269); -x_271 = lean_array_set(x_6, x_11, x_270); -lean_ctor_set(x_1, 1, x_271); -lean_ctor_set(x_267, 0, x_1); -return x_265; +lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; +x_272 = lean_ctor_get(x_270, 0); +x_273 = l_Lean_Syntax_setArg(x_205, x_207, x_272); +x_274 = lean_array_set(x_5, x_12, x_273); +x_275 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_275, 0, x_3); +lean_ctor_set(x_275, 1, x_274); +lean_ctor_set(x_270, 0, x_275); +return x_268; } else { -lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; -x_272 = lean_ctor_get(x_267, 0); -x_273 = lean_ctor_get(x_267, 1); -lean_inc(x_273); -lean_inc(x_272); -lean_dec(x_267); -x_274 = l_Lean_Syntax_setArg(x_203, x_208, x_272); -x_275 = lean_array_set(x_6, x_11, x_274); -lean_ctor_set(x_1, 1, x_275); -x_276 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_276, 0, x_1); -lean_ctor_set(x_276, 1, x_273); -lean_ctor_set(x_265, 0, x_276); -return x_265; -} -} -else -{ -lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; -x_277 = lean_ctor_get(x_265, 0); -x_278 = lean_ctor_get(x_265, 1); -lean_inc(x_278); +lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; +x_276 = lean_ctor_get(x_270, 0); +x_277 = lean_ctor_get(x_270, 1); lean_inc(x_277); -lean_dec(x_265); -x_279 = lean_ctor_get(x_277, 0); -lean_inc(x_279); -x_280 = lean_ctor_get(x_277, 1); -lean_inc(x_280); -if (lean_is_exclusive(x_277)) { - lean_ctor_release(x_277, 0); - lean_ctor_release(x_277, 1); - x_281 = x_277; -} else { - lean_dec_ref(x_277); - x_281 = lean_box(0); -} -x_282 = l_Lean_Syntax_setArg(x_203, x_208, x_279); -x_283 = lean_array_set(x_6, x_11, x_282); -lean_ctor_set(x_1, 1, x_283); -if (lean_is_scalar(x_281)) { - x_284 = lean_alloc_ctor(0, 2, 0); -} else { - x_284 = x_281; -} -lean_ctor_set(x_284, 0, x_1); -lean_ctor_set(x_284, 1, x_280); -x_285 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_285, 0, x_284); -lean_ctor_set(x_285, 1, x_278); -return x_285; +lean_inc(x_276); +lean_dec(x_270); +x_278 = l_Lean_Syntax_setArg(x_205, x_207, x_276); +x_279 = lean_array_set(x_5, x_12, x_278); +x_280 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_280, 0, x_3); +lean_ctor_set(x_280, 1, x_279); +x_281 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_281, 0, x_280); +lean_ctor_set(x_281, 1, x_277); +lean_ctor_set(x_268, 0, x_281); +return x_268; } } else { -uint8_t x_286; -lean_free_object(x_1); -lean_dec(x_203); -lean_dec(x_6); -lean_dec(x_5); -x_286 = !lean_is_exclusive(x_265); -if (x_286 == 0) -{ -return x_265; +lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; +x_282 = lean_ctor_get(x_268, 0); +x_283 = lean_ctor_get(x_268, 1); +lean_inc(x_283); +lean_inc(x_282); +lean_dec(x_268); +x_284 = lean_ctor_get(x_282, 0); +lean_inc(x_284); +x_285 = lean_ctor_get(x_282, 1); +lean_inc(x_285); +if (lean_is_exclusive(x_282)) { + lean_ctor_release(x_282, 0); + lean_ctor_release(x_282, 1); + x_286 = x_282; +} else { + lean_dec_ref(x_282); + x_286 = lean_box(0); } -else -{ -lean_object* x_287; lean_object* x_288; lean_object* x_289; -x_287 = lean_ctor_get(x_265, 0); -x_288 = lean_ctor_get(x_265, 1); -lean_inc(x_288); -lean_inc(x_287); -lean_dec(x_265); +x_287 = l_Lean_Syntax_setArg(x_205, x_207, x_284); +x_288 = lean_array_set(x_5, x_12, x_287); x_289 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_289, 0, x_287); +lean_ctor_set(x_289, 0, x_3); lean_ctor_set(x_289, 1, x_288); -return x_289; -} -} -} -} -else -{ -lean_object* x_290; -lean_dec(x_210); -x_290 = l___private_Lean_Elab_Match_18__collect___main(x_209, x_2, x_3, x_4); -if (lean_obj_tag(x_290) == 0) -{ -uint8_t x_291; -x_291 = !lean_is_exclusive(x_290); -if (x_291 == 0) -{ -lean_object* x_292; uint8_t x_293; -x_292 = lean_ctor_get(x_290, 0); -x_293 = !lean_is_exclusive(x_292); -if (x_293 == 0) -{ -lean_object* x_294; lean_object* x_295; lean_object* x_296; -x_294 = lean_ctor_get(x_292, 0); -x_295 = l_Lean_Syntax_setArg(x_203, x_208, x_294); -x_296 = lean_array_set(x_6, x_11, x_295); -lean_ctor_set(x_1, 1, x_296); -lean_ctor_set(x_292, 0, x_1); -return x_290; -} -else -{ -lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; -x_297 = lean_ctor_get(x_292, 0); -x_298 = lean_ctor_get(x_292, 1); -lean_inc(x_298); -lean_inc(x_297); -lean_dec(x_292); -x_299 = l_Lean_Syntax_setArg(x_203, x_208, x_297); -x_300 = lean_array_set(x_6, x_11, x_299); -lean_ctor_set(x_1, 1, x_300); -x_301 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_301, 0, x_1); -lean_ctor_set(x_301, 1, x_298); -lean_ctor_set(x_290, 0, x_301); -return x_290; -} -} -else -{ -lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; -x_302 = lean_ctor_get(x_290, 0); -x_303 = lean_ctor_get(x_290, 1); -lean_inc(x_303); -lean_inc(x_302); -lean_dec(x_290); -x_304 = lean_ctor_get(x_302, 0); -lean_inc(x_304); -x_305 = lean_ctor_get(x_302, 1); -lean_inc(x_305); -if (lean_is_exclusive(x_302)) { - lean_ctor_release(x_302, 0); - lean_ctor_release(x_302, 1); - x_306 = x_302; +if (lean_is_scalar(x_286)) { + x_290 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_302); - x_306 = lean_box(0); + x_290 = x_286; } -x_307 = l_Lean_Syntax_setArg(x_203, x_208, x_304); -x_308 = lean_array_set(x_6, x_11, x_307); -lean_ctor_set(x_1, 1, x_308); -if (lean_is_scalar(x_306)) { - x_309 = lean_alloc_ctor(0, 2, 0); -} else { - x_309 = x_306; -} -lean_ctor_set(x_309, 0, x_1); -lean_ctor_set(x_309, 1, x_305); -x_310 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_310, 0, x_309); -lean_ctor_set(x_310, 1, x_303); -return x_310; +lean_ctor_set(x_290, 0, x_289); +lean_ctor_set(x_290, 1, x_285); +x_291 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_291, 0, x_290); +lean_ctor_set(x_291, 1, x_283); +return x_291; } } else { -uint8_t x_311; -lean_free_object(x_1); -lean_dec(x_203); -lean_dec(x_6); +uint8_t x_292; +lean_dec(x_205); lean_dec(x_5); -x_311 = !lean_is_exclusive(x_290); -if (x_311 == 0) -{ -return x_290; -} -else -{ -lean_object* x_312; lean_object* x_313; lean_object* x_314; -x_312 = lean_ctor_get(x_290, 0); -x_313 = lean_ctor_get(x_290, 1); -lean_inc(x_313); -lean_inc(x_312); -lean_dec(x_290); -x_314 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_314, 0, x_312); -lean_ctor_set(x_314, 1, x_313); -return x_314; -} -} -} -} -else -{ -lean_object* x_315; lean_object* x_316; lean_object* x_317; uint8_t x_318; -lean_dec(x_1); -x_315 = lean_unsigned_to_nat(0u); -x_316 = l_Lean_Syntax_getArg(x_203, x_315); -x_317 = l_Lean_Syntax_getArg(x_203, x_11); -x_318 = l_Lean_Syntax_isNone(x_317); -if (x_318 == 0) -{ -lean_object* x_319; lean_object* x_320; uint8_t x_321; -x_319 = l_Lean_Syntax_getArg(x_317, x_315); -x_320 = l_Lean_Parser_Term_typeAscription___elambda__1___closed__2; -lean_inc(x_319); -x_321 = l_Lean_Syntax_isOfKind(x_319, x_320); -if (x_321 == 0) -{ -lean_object* x_322; -lean_inc(x_3); -x_322 = l___private_Lean_Elab_Match_18__collect___main(x_316, x_2, x_3, x_4); -if (lean_obj_tag(x_322) == 0) -{ -lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; -x_323 = lean_ctor_get(x_322, 0); -lean_inc(x_323); -x_324 = lean_ctor_get(x_322, 1); -lean_inc(x_324); -lean_dec(x_322); -x_325 = lean_ctor_get(x_323, 0); -lean_inc(x_325); -x_326 = lean_ctor_get(x_323, 1); -lean_inc(x_326); -lean_dec(x_323); -x_327 = l_Lean_Syntax_setArg(x_203, x_315, x_325); -x_328 = l_Lean_Syntax_getArg(x_319, x_11); -x_329 = l_Lean_Syntax_getArgs(x_328); -lean_dec(x_328); -x_330 = l___private_Lean_Elab_Match_18__collect___main___closed__9; -x_331 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_18__collect___main___spec__1(x_329, x_330, x_326, x_3, x_324); -lean_dec(x_329); -if (lean_obj_tag(x_331) == 0) -{ -lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; -x_332 = lean_ctor_get(x_331, 0); -lean_inc(x_332); -x_333 = lean_ctor_get(x_331, 1); -lean_inc(x_333); -if (lean_is_exclusive(x_331)) { - lean_ctor_release(x_331, 0); - lean_ctor_release(x_331, 1); - x_334 = x_331; -} else { - lean_dec_ref(x_331); - x_334 = lean_box(0); -} -x_335 = lean_ctor_get(x_332, 0); -lean_inc(x_335); -x_336 = lean_ctor_get(x_332, 1); -lean_inc(x_336); -if (lean_is_exclusive(x_332)) { - lean_ctor_release(x_332, 0); - lean_ctor_release(x_332, 1); - x_337 = x_332; -} else { - lean_dec_ref(x_332); - x_337 = lean_box(0); -} -x_338 = l_Lean_nullKind; -x_339 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_339, 0, x_338); -lean_ctor_set(x_339, 1, x_335); -x_340 = l_Lean_Syntax_setArg(x_319, x_11, x_339); -x_341 = l_Lean_Syntax_setArg(x_317, x_315, x_340); -x_342 = l_Lean_Syntax_setArg(x_327, x_11, x_341); -x_343 = lean_array_set(x_6, x_11, x_342); -x_344 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_344, 0, x_5); -lean_ctor_set(x_344, 1, x_343); -if (lean_is_scalar(x_337)) { - x_345 = lean_alloc_ctor(0, 2, 0); -} else { - x_345 = x_337; -} -lean_ctor_set(x_345, 0, x_344); -lean_ctor_set(x_345, 1, x_336); -if (lean_is_scalar(x_334)) { - x_346 = lean_alloc_ctor(0, 2, 0); -} else { - x_346 = x_334; -} -lean_ctor_set(x_346, 0, x_345); -lean_ctor_set(x_346, 1, x_333); -return x_346; -} -else -{ -lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; -lean_dec(x_327); -lean_dec(x_319); -lean_dec(x_317); -lean_dec(x_6); -lean_dec(x_5); -x_347 = lean_ctor_get(x_331, 0); -lean_inc(x_347); -x_348 = lean_ctor_get(x_331, 1); -lean_inc(x_348); -if (lean_is_exclusive(x_331)) { - lean_ctor_release(x_331, 0); - lean_ctor_release(x_331, 1); - x_349 = x_331; -} else { - lean_dec_ref(x_331); - x_349 = lean_box(0); -} -if (lean_is_scalar(x_349)) { - x_350 = lean_alloc_ctor(1, 2, 0); -} else { - x_350 = x_349; -} -lean_ctor_set(x_350, 0, x_347); -lean_ctor_set(x_350, 1, x_348); -return x_350; -} -} -else -{ -lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; -lean_dec(x_319); -lean_dec(x_317); -lean_dec(x_203); lean_dec(x_3); -lean_dec(x_6); -lean_dec(x_5); -x_351 = lean_ctor_get(x_322, 0); -lean_inc(x_351); -x_352 = lean_ctor_get(x_322, 1); -lean_inc(x_352); -if (lean_is_exclusive(x_322)) { - lean_ctor_release(x_322, 0); - lean_ctor_release(x_322, 1); - x_353 = x_322; -} else { - lean_dec_ref(x_322); - x_353 = lean_box(0); +x_292 = !lean_is_exclusive(x_268); +if (x_292 == 0) +{ +return x_268; +} +else +{ +lean_object* x_293; lean_object* x_294; lean_object* x_295; +x_293 = lean_ctor_get(x_268, 0); +x_294 = lean_ctor_get(x_268, 1); +lean_inc(x_294); +lean_inc(x_293); +lean_dec(x_268); +x_295 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_295, 0, x_293); +lean_ctor_set(x_295, 1, x_294); +return x_295; } -if (lean_is_scalar(x_353)) { - x_354 = lean_alloc_ctor(1, 2, 0); -} else { - x_354 = x_353; } -lean_ctor_set(x_354, 0, x_351); -lean_ctor_set(x_354, 1, x_352); -return x_354; } } else { -lean_object* x_355; -lean_dec(x_319); -lean_dec(x_317); -x_355 = l___private_Lean_Elab_Match_18__collect___main(x_316, x_2, x_3, x_4); -if (lean_obj_tag(x_355) == 0) +lean_object* x_296; +lean_dec(x_209); +lean_dec(x_2); +x_296 = l___private_Lean_Elab_Match_20__collect___main(x_208, x_7, x_8, x_9); +if (lean_obj_tag(x_296) == 0) { -lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; -x_356 = lean_ctor_get(x_355, 0); -lean_inc(x_356); -x_357 = lean_ctor_get(x_355, 1); -lean_inc(x_357); -if (lean_is_exclusive(x_355)) { - lean_ctor_release(x_355, 0); - lean_ctor_release(x_355, 1); - x_358 = x_355; -} else { - lean_dec_ref(x_355); - x_358 = lean_box(0); +uint8_t x_297; +x_297 = !lean_is_exclusive(x_296); +if (x_297 == 0) +{ +lean_object* x_298; uint8_t x_299; +x_298 = lean_ctor_get(x_296, 0); +x_299 = !lean_is_exclusive(x_298); +if (x_299 == 0) +{ +lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; +x_300 = lean_ctor_get(x_298, 0); +x_301 = l_Lean_Syntax_setArg(x_205, x_207, x_300); +x_302 = lean_array_set(x_5, x_12, x_301); +x_303 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_303, 0, x_3); +lean_ctor_set(x_303, 1, x_302); +lean_ctor_set(x_298, 0, x_303); +return x_296; } -x_359 = lean_ctor_get(x_356, 0); -lean_inc(x_359); -x_360 = lean_ctor_get(x_356, 1); -lean_inc(x_360); -if (lean_is_exclusive(x_356)) { - lean_ctor_release(x_356, 0); - lean_ctor_release(x_356, 1); - x_361 = x_356; -} else { - lean_dec_ref(x_356); - x_361 = lean_box(0); +else +{ +lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; +x_304 = lean_ctor_get(x_298, 0); +x_305 = lean_ctor_get(x_298, 1); +lean_inc(x_305); +lean_inc(x_304); +lean_dec(x_298); +x_306 = l_Lean_Syntax_setArg(x_205, x_207, x_304); +x_307 = lean_array_set(x_5, x_12, x_306); +x_308 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_308, 0, x_3); +lean_ctor_set(x_308, 1, x_307); +x_309 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_309, 0, x_308); +lean_ctor_set(x_309, 1, x_305); +lean_ctor_set(x_296, 0, x_309); +return x_296; } -x_362 = l_Lean_Syntax_setArg(x_203, x_315, x_359); -x_363 = lean_array_set(x_6, x_11, x_362); -x_364 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_364, 0, x_5); -lean_ctor_set(x_364, 1, x_363); -if (lean_is_scalar(x_361)) { - x_365 = lean_alloc_ctor(0, 2, 0); -} else { - x_365 = x_361; } -lean_ctor_set(x_365, 0, x_364); -lean_ctor_set(x_365, 1, x_360); -if (lean_is_scalar(x_358)) { - x_366 = lean_alloc_ctor(0, 2, 0); +else +{ +lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; +x_310 = lean_ctor_get(x_296, 0); +x_311 = lean_ctor_get(x_296, 1); +lean_inc(x_311); +lean_inc(x_310); +lean_dec(x_296); +x_312 = lean_ctor_get(x_310, 0); +lean_inc(x_312); +x_313 = lean_ctor_get(x_310, 1); +lean_inc(x_313); +if (lean_is_exclusive(x_310)) { + lean_ctor_release(x_310, 0); + lean_ctor_release(x_310, 1); + x_314 = x_310; } else { - x_366 = x_358; + lean_dec_ref(x_310); + x_314 = lean_box(0); } -lean_ctor_set(x_366, 0, x_365); -lean_ctor_set(x_366, 1, x_357); +x_315 = l_Lean_Syntax_setArg(x_205, x_207, x_312); +x_316 = lean_array_set(x_5, x_12, x_315); +x_317 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_317, 0, x_3); +lean_ctor_set(x_317, 1, x_316); +if (lean_is_scalar(x_314)) { + x_318 = lean_alloc_ctor(0, 2, 0); +} else { + x_318 = x_314; +} +lean_ctor_set(x_318, 0, x_317); +lean_ctor_set(x_318, 1, x_313); +x_319 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_319, 0, x_318); +lean_ctor_set(x_319, 1, x_311); +return x_319; +} +} +else +{ +uint8_t x_320; +lean_dec(x_205); +lean_dec(x_5); +lean_dec(x_3); +x_320 = !lean_is_exclusive(x_296); +if (x_320 == 0) +{ +return x_296; +} +else +{ +lean_object* x_321; lean_object* x_322; lean_object* x_323; +x_321 = lean_ctor_get(x_296, 0); +x_322 = lean_ctor_get(x_296, 1); +lean_inc(x_322); +lean_inc(x_321); +lean_dec(x_296); +x_323 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_323, 0, x_321); +lean_ctor_set(x_323, 1, x_322); +return x_323; +} +} +} +} +else +{ +lean_object* x_324; lean_object* x_325; +lean_dec(x_205); +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_324 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_324, 0, x_4); +lean_ctor_set(x_324, 1, x_7); +x_325 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_325, 0, x_324); +lean_ctor_set(x_325, 1, x_9); +return x_325; +} +} +} +else +{ +lean_object* x_326; uint8_t x_327; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_326 = l___private_Lean_Elab_Match_10__mkMVarSyntax(x_8, x_9); +x_327 = !lean_is_exclusive(x_326); +if (x_327 == 0) +{ +uint8_t x_328; +x_328 = !lean_is_exclusive(x_7); +if (x_328 == 0) +{ +lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; +x_329 = lean_ctor_get(x_326, 0); +x_330 = lean_ctor_get(x_7, 1); +x_331 = l___private_Lean_Elab_Match_11__getMVarSyntaxMVarId(x_329); +x_332 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_332, 0, x_331); +x_333 = lean_array_push(x_330, x_332); +lean_ctor_set(x_7, 1, x_333); +x_334 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_334, 0, x_329); +lean_ctor_set(x_334, 1, x_7); +lean_ctor_set(x_326, 0, x_334); +return x_326; +} +else +{ +lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; +x_335 = lean_ctor_get(x_326, 0); +x_336 = lean_ctor_get(x_7, 0); +x_337 = lean_ctor_get(x_7, 1); +lean_inc(x_337); +lean_inc(x_336); +lean_dec(x_7); +x_338 = l___private_Lean_Elab_Match_11__getMVarSyntaxMVarId(x_335); +x_339 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_339, 0, x_338); +x_340 = lean_array_push(x_337, x_339); +x_341 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_341, 0, x_336); +lean_ctor_set(x_341, 1, x_340); +x_342 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_342, 0, x_335); +lean_ctor_set(x_342, 1, x_341); +lean_ctor_set(x_326, 0, x_342); +return x_326; +} +} +else +{ +lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; +x_343 = lean_ctor_get(x_326, 0); +x_344 = lean_ctor_get(x_326, 1); +lean_inc(x_344); +lean_inc(x_343); +lean_dec(x_326); +x_345 = lean_ctor_get(x_7, 0); +lean_inc(x_345); +x_346 = lean_ctor_get(x_7, 1); +lean_inc(x_346); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + x_347 = x_7; +} else { + lean_dec_ref(x_7); + x_347 = lean_box(0); +} +x_348 = l___private_Lean_Elab_Match_11__getMVarSyntaxMVarId(x_343); +x_349 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_349, 0, x_348); +x_350 = lean_array_push(x_346, x_349); +if (lean_is_scalar(x_347)) { + x_351 = lean_alloc_ctor(0, 2, 0); +} else { + x_351 = x_347; +} +lean_ctor_set(x_351, 0, x_345); +lean_ctor_set(x_351, 1, x_350); +x_352 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_352, 0, x_343); +lean_ctor_set(x_352, 1, x_351); +x_353 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_353, 0, x_352); +lean_ctor_set(x_353, 1, x_344); +return x_353; +} +} +} +else +{ +lean_object* x_354; lean_object* x_355; uint8_t x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; uint8_t x_360; +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +x_354 = l_Lean_Syntax_inhabited; +x_355 = lean_array_get(x_354, x_5, x_12); +x_356 = l_Lean_Syntax_isNone(x_355); +x_357 = lean_unsigned_to_nat(2u); +x_358 = lean_array_get(x_354, x_5, x_357); +x_359 = l_Lean_Syntax_getArgs(x_358); +lean_dec(x_358); +if (x_356 == 0) +{ +uint8_t x_400; +x_400 = 0; +x_360 = x_400; +goto block_399; +} +else +{ +uint8_t x_401; +x_401 = 1; +x_360 = x_401; +goto block_399; +} +block_399: +{ +if (x_360 == 0) +{ +lean_object* x_361; lean_object* x_362; uint8_t x_363; +lean_dec(x_359); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_3); +x_361 = l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__12; +x_362 = l_Lean_Elab_Term_throwErrorAt___rarg(x_355, x_361, x_8, x_9); +lean_dec(x_355); +x_363 = !lean_is_exclusive(x_362); +if (x_363 == 0) +{ +return x_362; +} +else +{ +lean_object* x_364; lean_object* x_365; lean_object* x_366; +x_364 = lean_ctor_get(x_362, 0); +x_365 = lean_ctor_get(x_362, 1); +lean_inc(x_365); +lean_inc(x_364); +lean_dec(x_362); +x_366 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_366, 0, x_364); +lean_ctor_set(x_366, 1, x_365); return x_366; } -else -{ -lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; -lean_dec(x_203); -lean_dec(x_6); -lean_dec(x_5); -x_367 = lean_ctor_get(x_355, 0); -lean_inc(x_367); -x_368 = lean_ctor_get(x_355, 1); -lean_inc(x_368); -if (lean_is_exclusive(x_355)) { - lean_ctor_release(x_355, 0); - lean_ctor_release(x_355, 1); - x_369 = x_355; -} else { - lean_dec_ref(x_355); - x_369 = lean_box(0); -} -if (lean_is_scalar(x_369)) { - x_370 = lean_alloc_ctor(1, 2, 0); -} else { - x_370 = x_369; -} -lean_ctor_set(x_370, 0, x_367); -lean_ctor_set(x_370, 1, x_368); -return x_370; -} -} } else { -lean_object* x_371; -lean_dec(x_317); -x_371 = l___private_Lean_Elab_Match_18__collect___main(x_316, x_2, x_3, x_4); -if (lean_obj_tag(x_371) == 0) +lean_object* x_367; lean_object* x_368; +lean_dec(x_355); +x_367 = l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__13; +x_368 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_20__collect___main___spec__1(x_359, x_367, x_7, x_8, x_9); +lean_dec(x_359); +if (lean_obj_tag(x_368) == 0) { -lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; -x_372 = lean_ctor_get(x_371, 0); -lean_inc(x_372); -x_373 = lean_ctor_get(x_371, 1); -lean_inc(x_373); -if (lean_is_exclusive(x_371)) { - lean_ctor_release(x_371, 0); - lean_ctor_release(x_371, 1); - x_374 = x_371; -} else { - lean_dec_ref(x_371); - x_374 = lean_box(0); +uint8_t x_369; +x_369 = !lean_is_exclusive(x_368); +if (x_369 == 0) +{ +lean_object* x_370; uint8_t x_371; +x_370 = lean_ctor_get(x_368, 0); +x_371 = !lean_is_exclusive(x_370); +if (x_371 == 0) +{ +lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; +x_372 = lean_ctor_get(x_370, 0); +x_373 = l_Lean_nullKind; +x_374 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_374, 0, x_373); +lean_ctor_set(x_374, 1, x_372); +x_375 = lean_array_set(x_5, x_357, x_374); +x_376 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_376, 0, x_3); +lean_ctor_set(x_376, 1, x_375); +lean_ctor_set(x_370, 0, x_376); +return x_368; } -x_375 = lean_ctor_get(x_372, 0); -lean_inc(x_375); -x_376 = lean_ctor_get(x_372, 1); -lean_inc(x_376); -if (lean_is_exclusive(x_372)) { - lean_ctor_release(x_372, 0); - lean_ctor_release(x_372, 1); - x_377 = x_372; -} else { - lean_dec_ref(x_372); - x_377 = lean_box(0); -} -x_378 = l_Lean_Syntax_setArg(x_203, x_315, x_375); -x_379 = lean_array_set(x_6, x_11, x_378); +else +{ +lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; +x_377 = lean_ctor_get(x_370, 0); +x_378 = lean_ctor_get(x_370, 1); +lean_inc(x_378); +lean_inc(x_377); +lean_dec(x_370); +x_379 = l_Lean_nullKind; x_380 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_380, 0, x_5); -lean_ctor_set(x_380, 1, x_379); -if (lean_is_scalar(x_377)) { - x_381 = lean_alloc_ctor(0, 2, 0); -} else { - x_381 = x_377; +lean_ctor_set(x_380, 0, x_379); +lean_ctor_set(x_380, 1, x_377); +x_381 = lean_array_set(x_5, x_357, x_380); +x_382 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_382, 0, x_3); +lean_ctor_set(x_382, 1, x_381); +x_383 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_383, 0, x_382); +lean_ctor_set(x_383, 1, x_378); +lean_ctor_set(x_368, 0, x_383); +return x_368; } -lean_ctor_set(x_381, 0, x_380); -lean_ctor_set(x_381, 1, x_376); -if (lean_is_scalar(x_374)) { - x_382 = lean_alloc_ctor(0, 2, 0); -} else { - x_382 = x_374; -} -lean_ctor_set(x_382, 0, x_381); -lean_ctor_set(x_382, 1, x_373); -return x_382; } else { -lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; -lean_dec(x_203); -lean_dec(x_6); -lean_dec(x_5); -x_383 = lean_ctor_get(x_371, 0); -lean_inc(x_383); -x_384 = lean_ctor_get(x_371, 1); +lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; +x_384 = lean_ctor_get(x_368, 0); +x_385 = lean_ctor_get(x_368, 1); +lean_inc(x_385); lean_inc(x_384); -if (lean_is_exclusive(x_371)) { - lean_ctor_release(x_371, 0); - lean_ctor_release(x_371, 1); - x_385 = x_371; +lean_dec(x_368); +x_386 = lean_ctor_get(x_384, 0); +lean_inc(x_386); +x_387 = lean_ctor_get(x_384, 1); +lean_inc(x_387); +if (lean_is_exclusive(x_384)) { + lean_ctor_release(x_384, 0); + lean_ctor_release(x_384, 1); + x_388 = x_384; } else { - lean_dec_ref(x_371); - x_385 = lean_box(0); + lean_dec_ref(x_384); + x_388 = lean_box(0); } -if (lean_is_scalar(x_385)) { - x_386 = lean_alloc_ctor(1, 2, 0); +x_389 = l_Lean_nullKind; +x_390 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_390, 0, x_389); +lean_ctor_set(x_390, 1, x_386); +x_391 = lean_array_set(x_5, x_357, x_390); +x_392 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_392, 0, x_3); +lean_ctor_set(x_392, 1, x_391); +if (lean_is_scalar(x_388)) { + x_393 = lean_alloc_ctor(0, 2, 0); } else { - x_386 = x_385; + x_393 = x_388; +} +lean_ctor_set(x_393, 0, x_392); +lean_ctor_set(x_393, 1, x_387); +x_394 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_394, 0, x_393); +lean_ctor_set(x_394, 1, x_385); +return x_394; +} +} +else +{ +uint8_t x_395; +lean_dec(x_5); +lean_dec(x_3); +x_395 = !lean_is_exclusive(x_368); +if (x_395 == 0) +{ +return x_368; +} +else +{ +lean_object* x_396; lean_object* x_397; lean_object* x_398; +x_396 = lean_ctor_get(x_368, 0); +x_397 = lean_ctor_get(x_368, 1); +lean_inc(x_397); +lean_inc(x_396); +lean_dec(x_368); +x_398 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_398, 0, x_396); +lean_ctor_set(x_398, 1, x_397); +return x_398; +} } -lean_ctor_set(x_386, 0, x_383); -lean_ctor_set(x_386, 1, x_384); -return x_386; } } } } else { -lean_object* x_387; lean_object* x_388; -lean_dec(x_203); -lean_dec(x_3); +lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_dec(x_6); -lean_dec(x_5); -x_387 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_387, 0, x_1); -lean_ctor_set(x_387, 1, x_2); -x_388 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_388, 0, x_387); -lean_ctor_set(x_388, 1, x_4); -return x_388; -} -} -} -else +lean_dec(x_4); +lean_dec(x_2); +x_402 = l_Lean_Syntax_inhabited; +x_403 = lean_array_get(x_402, x_5, x_12); +x_404 = l_Lean_Syntax_getArgs(x_403); +lean_dec(x_403); +x_405 = l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__9; +x_406 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_20__collect___main___spec__1(x_404, x_405, x_7, x_8, x_9); +lean_dec(x_404); +if (lean_obj_tag(x_406) == 0) { -uint8_t x_389; -lean_dec(x_6); -lean_dec(x_5); -x_389 = !lean_is_exclusive(x_1); -if (x_389 == 0) -{ -lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; uint8_t x_396; -x_390 = lean_ctor_get(x_1, 1); -lean_dec(x_390); -x_391 = lean_ctor_get(x_1, 0); -lean_dec(x_391); -x_392 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); -lean_dec(x_3); -x_393 = lean_ctor_get(x_392, 0); -lean_inc(x_393); -x_394 = lean_ctor_get(x_392, 1); -lean_inc(x_394); -lean_dec(x_392); -x_395 = l_Lean_Elab_Term_getMainModule___rarg(x_394); -x_396 = !lean_is_exclusive(x_395); -if (x_396 == 0) -{ -lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; uint8_t x_407; -x_397 = lean_ctor_get(x_395, 0); -x_398 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; -x_399 = l_Lean_addMacroScope(x_397, x_398, x_393); -x_400 = lean_box(0); -x_401 = l_Lean_SourceInfo_inhabited___closed__1; -x_402 = l___private_Lean_Elab_Match_18__collect___main___closed__13; -x_403 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_403, 0, x_401); -lean_ctor_set(x_403, 1, x_402); -lean_ctor_set(x_403, 2, x_399); -lean_ctor_set(x_403, 3, x_400); -x_404 = l___private_Lean_Elab_Match_18__collect___main___closed__11; -x_405 = lean_array_push(x_404, x_403); -x_406 = l_Lean_Parser_Term_namedHole___elambda__1___closed__2; -lean_ctor_set(x_1, 1, x_405); -lean_ctor_set(x_1, 0, x_406); -x_407 = !lean_is_exclusive(x_2); +uint8_t x_407; +x_407 = !lean_is_exclusive(x_406); if (x_407 == 0) { -lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; -x_408 = lean_ctor_get(x_2, 1); -x_409 = l_Lean_Syntax_getArg(x_1, x_11); -x_410 = l_Lean_Syntax_getId(x_409); -lean_dec(x_409); -x_411 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_411, 0, x_410); -x_412 = lean_array_push(x_408, x_411); -lean_ctor_set(x_2, 1, x_412); -x_413 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_413, 0, x_1); -lean_ctor_set(x_413, 1, x_2); -lean_ctor_set(x_395, 0, x_413); -return x_395; +lean_object* x_408; uint8_t x_409; +x_408 = lean_ctor_get(x_406, 0); +x_409 = !lean_is_exclusive(x_408); +if (x_409 == 0) +{ +lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; +x_410 = lean_ctor_get(x_408, 0); +x_411 = l_Lean_nullKind; +x_412 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_412, 0, x_411); +lean_ctor_set(x_412, 1, x_410); +x_413 = lean_array_set(x_5, x_12, x_412); +x_414 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_414, 0, x_3); +lean_ctor_set(x_414, 1, x_413); +lean_ctor_set(x_408, 0, x_414); +return x_406; } else { -lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; -x_414 = lean_ctor_get(x_2, 0); -x_415 = lean_ctor_get(x_2, 1); +lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; +x_415 = lean_ctor_get(x_408, 0); +x_416 = lean_ctor_get(x_408, 1); +lean_inc(x_416); lean_inc(x_415); -lean_inc(x_414); -lean_dec(x_2); -x_416 = l_Lean_Syntax_getArg(x_1, x_11); -x_417 = l_Lean_Syntax_getId(x_416); -lean_dec(x_416); -x_418 = lean_alloc_ctor(1, 1, 0); +lean_dec(x_408); +x_417 = l_Lean_nullKind; +x_418 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_418, 0, x_417); -x_419 = lean_array_push(x_415, x_418); -x_420 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_420, 0, x_414); +lean_ctor_set(x_418, 1, x_415); +x_419 = lean_array_set(x_5, x_12, x_418); +x_420 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_420, 0, x_3); lean_ctor_set(x_420, 1, x_419); x_421 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_421, 0, x_1); -lean_ctor_set(x_421, 1, x_420); -lean_ctor_set(x_395, 0, x_421); -return x_395; +lean_ctor_set(x_421, 0, x_420); +lean_ctor_set(x_421, 1, x_416); +lean_ctor_set(x_406, 0, x_421); +return x_406; } } else { -lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; -x_422 = lean_ctor_get(x_395, 0); -x_423 = lean_ctor_get(x_395, 1); +lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; +x_422 = lean_ctor_get(x_406, 0); +x_423 = lean_ctor_get(x_406, 1); lean_inc(x_423); lean_inc(x_422); -lean_dec(x_395); -x_424 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; -x_425 = l_Lean_addMacroScope(x_422, x_424, x_393); -x_426 = lean_box(0); -x_427 = l_Lean_SourceInfo_inhabited___closed__1; -x_428 = l___private_Lean_Elab_Match_18__collect___main___closed__13; -x_429 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_429, 0, x_427); -lean_ctor_set(x_429, 1, x_428); -lean_ctor_set(x_429, 2, x_425); -lean_ctor_set(x_429, 3, x_426); -x_430 = l___private_Lean_Elab_Match_18__collect___main___closed__11; -x_431 = lean_array_push(x_430, x_429); -x_432 = l_Lean_Parser_Term_namedHole___elambda__1___closed__2; -lean_ctor_set(x_1, 1, x_431); -lean_ctor_set(x_1, 0, x_432); -x_433 = lean_ctor_get(x_2, 0); -lean_inc(x_433); -x_434 = lean_ctor_get(x_2, 1); -lean_inc(x_434); -if (lean_is_exclusive(x_2)) { - lean_ctor_release(x_2, 0); - lean_ctor_release(x_2, 1); - x_435 = x_2; +lean_dec(x_406); +x_424 = lean_ctor_get(x_422, 0); +lean_inc(x_424); +x_425 = lean_ctor_get(x_422, 1); +lean_inc(x_425); +if (lean_is_exclusive(x_422)) { + lean_ctor_release(x_422, 0); + lean_ctor_release(x_422, 1); + x_426 = x_422; } else { - lean_dec_ref(x_2); - x_435 = lean_box(0); + lean_dec_ref(x_422); + x_426 = lean_box(0); } -x_436 = l_Lean_Syntax_getArg(x_1, x_11); -x_437 = l_Lean_Syntax_getId(x_436); -lean_dec(x_436); -x_438 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_438, 0, x_437); -x_439 = lean_array_push(x_434, x_438); -if (lean_is_scalar(x_435)) { - x_440 = lean_alloc_ctor(0, 2, 0); +x_427 = l_Lean_nullKind; +x_428 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_428, 0, x_427); +lean_ctor_set(x_428, 1, x_424); +x_429 = lean_array_set(x_5, x_12, x_428); +x_430 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_430, 0, x_3); +lean_ctor_set(x_430, 1, x_429); +if (lean_is_scalar(x_426)) { + x_431 = lean_alloc_ctor(0, 2, 0); } else { - x_440 = x_435; + x_431 = x_426; } -lean_ctor_set(x_440, 0, x_433); -lean_ctor_set(x_440, 1, x_439); -x_441 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_441, 0, x_1); -lean_ctor_set(x_441, 1, x_440); -x_442 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_442, 0, x_441); -lean_ctor_set(x_442, 1, x_423); -return x_442; +lean_ctor_set(x_431, 0, x_430); +lean_ctor_set(x_431, 1, x_425); +x_432 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_432, 0, x_431); +lean_ctor_set(x_432, 1, x_423); +return x_432; } } else { -lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; -lean_dec(x_1); -x_443 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); +uint8_t x_433; +lean_dec(x_5); lean_dec(x_3); -x_444 = lean_ctor_get(x_443, 0); +x_433 = !lean_is_exclusive(x_406); +if (x_433 == 0) +{ +return x_406; +} +else +{ +lean_object* x_434; lean_object* x_435; lean_object* x_436; +x_434 = lean_ctor_get(x_406, 0); +x_435 = lean_ctor_get(x_406, 1); +lean_inc(x_435); +lean_inc(x_434); +lean_dec(x_406); +x_436 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_436, 0, x_434); +lean_ctor_set(x_436, 1, x_435); +return x_436; +} +} +} +} +else +{ +lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; +lean_dec(x_6); +lean_dec(x_4); +x_437 = l_Lean_Syntax_inhabited; +x_438 = lean_unsigned_to_nat(0u); +x_439 = lean_array_get(x_437, x_5, x_438); +x_440 = lean_array_get(x_437, x_5, x_12); +x_441 = l_Lean_Syntax_getArgs(x_440); +lean_dec(x_440); +lean_inc(x_8); +x_442 = l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__3(x_2, x_441, x_438, x_7, x_8, x_9); +if (lean_obj_tag(x_442) == 0) +{ +lean_object* x_443; lean_object* x_444; lean_object* x_445; uint8_t x_446; lean_object* x_447; +x_443 = lean_ctor_get(x_442, 0); +lean_inc(x_443); +x_444 = lean_ctor_get(x_442, 1); lean_inc(x_444); +lean_dec(x_442); x_445 = lean_ctor_get(x_443, 1); lean_inc(x_445); lean_dec(x_443); -x_446 = l_Lean_Elab_Term_getMainModule___rarg(x_445); -x_447 = lean_ctor_get(x_446, 0); -lean_inc(x_447); -x_448 = lean_ctor_get(x_446, 1); +x_446 = 1; +lean_inc(x_8); +x_447 = l___private_Lean_Elab_Match_16__processIdAux(x_439, x_446, x_445, x_8, x_444); +if (lean_obj_tag(x_447) == 0) +{ +lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; +x_448 = lean_ctor_get(x_447, 0); lean_inc(x_448); -if (lean_is_exclusive(x_446)) { - lean_ctor_release(x_446, 0); - lean_ctor_release(x_446, 1); - x_449 = x_446; -} else { - lean_dec_ref(x_446); - x_449 = lean_box(0); -} -x_450 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; -x_451 = l_Lean_addMacroScope(x_447, x_450, x_444); -x_452 = lean_box(0); -x_453 = l_Lean_SourceInfo_inhabited___closed__1; -x_454 = l___private_Lean_Elab_Match_18__collect___main___closed__13; -x_455 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_455, 0, x_453); -lean_ctor_set(x_455, 1, x_454); -lean_ctor_set(x_455, 2, x_451); -lean_ctor_set(x_455, 3, x_452); -x_456 = l___private_Lean_Elab_Match_18__collect___main___closed__11; -x_457 = lean_array_push(x_456, x_455); -x_458 = l_Lean_Parser_Term_namedHole___elambda__1___closed__2; -x_459 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_459, 0, x_458); -lean_ctor_set(x_459, 1, x_457); -x_460 = lean_ctor_get(x_2, 0); -lean_inc(x_460); -x_461 = lean_ctor_get(x_2, 1); -lean_inc(x_461); -if (lean_is_exclusive(x_2)) { - lean_ctor_release(x_2, 0); - lean_ctor_release(x_2, 1); - x_462 = x_2; -} else { - lean_dec_ref(x_2); - x_462 = lean_box(0); -} -x_463 = l_Lean_Syntax_getArg(x_459, x_11); -x_464 = l_Lean_Syntax_getId(x_463); -lean_dec(x_463); -x_465 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_465, 0, x_464); -x_466 = lean_array_push(x_461, x_465); -if (lean_is_scalar(x_462)) { - x_467 = lean_alloc_ctor(0, 2, 0); -} else { - x_467 = x_462; -} -lean_ctor_set(x_467, 0, x_460); -lean_ctor_set(x_467, 1, x_466); -x_468 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_468, 0, x_459); -lean_ctor_set(x_468, 1, x_467); -if (lean_is_scalar(x_449)) { - x_469 = lean_alloc_ctor(0, 2, 0); -} else { - x_469 = x_449; -} -lean_ctor_set(x_469, 0, x_468); -lean_ctor_set(x_469, 1, x_448); -return x_469; +x_449 = lean_ctor_get(x_447, 1); +lean_inc(x_449); +lean_dec(x_447); +x_450 = lean_ctor_get(x_448, 0); +lean_inc(x_450); +x_451 = lean_ctor_get(x_448, 1); +lean_inc(x_451); +lean_dec(x_448); +x_452 = x_441; +x_453 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4___boxed), 6, 3); +lean_closure_set(x_453, 0, x_450); +lean_closure_set(x_453, 1, x_438); +lean_closure_set(x_453, 2, x_452); +x_454 = x_453; +x_455 = lean_apply_3(x_454, x_451, x_8, x_449); +if (lean_obj_tag(x_455) == 0) +{ +uint8_t x_456; +x_456 = !lean_is_exclusive(x_455); +if (x_456 == 0) +{ +lean_object* x_457; uint8_t x_458; +x_457 = lean_ctor_get(x_455, 0); +x_458 = !lean_is_exclusive(x_457); +if (x_458 == 0) +{ +lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; +x_459 = lean_ctor_get(x_457, 0); +x_460 = l_Lean_nullKind; +x_461 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_461, 0, x_460); +lean_ctor_set(x_461, 1, x_459); +x_462 = lean_array_set(x_5, x_12, x_461); +x_463 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_463, 0, x_3); +lean_ctor_set(x_463, 1, x_462); +lean_ctor_set(x_457, 0, x_463); +return x_455; } +else +{ +lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; +x_464 = lean_ctor_get(x_457, 0); +x_465 = lean_ctor_get(x_457, 1); +lean_inc(x_465); +lean_inc(x_464); +lean_dec(x_457); +x_466 = l_Lean_nullKind; +x_467 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_467, 0, x_466); +lean_ctor_set(x_467, 1, x_464); +x_468 = lean_array_set(x_5, x_12, x_467); +x_469 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_469, 0, x_3); +lean_ctor_set(x_469, 1, x_468); +x_470 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_470, 0, x_469); +lean_ctor_set(x_470, 1, x_465); +lean_ctor_set(x_455, 0, x_470); +return x_455; } } else { -lean_object* x_470; lean_object* x_471; lean_object* x_472; uint8_t x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; uint8_t x_477; -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - x_470 = x_1; +lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; +x_471 = lean_ctor_get(x_455, 0); +x_472 = lean_ctor_get(x_455, 1); +lean_inc(x_472); +lean_inc(x_471); +lean_dec(x_455); +x_473 = lean_ctor_get(x_471, 0); +lean_inc(x_473); +x_474 = lean_ctor_get(x_471, 1); +lean_inc(x_474); +if (lean_is_exclusive(x_471)) { + lean_ctor_release(x_471, 0); + lean_ctor_release(x_471, 1); + x_475 = x_471; } else { - lean_dec_ref(x_1); - x_470 = lean_box(0); + lean_dec_ref(x_471); + x_475 = lean_box(0); +} +x_476 = l_Lean_nullKind; +x_477 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_477, 0, x_476); +lean_ctor_set(x_477, 1, x_473); +x_478 = lean_array_set(x_5, x_12, x_477); +x_479 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_479, 0, x_3); +lean_ctor_set(x_479, 1, x_478); +if (lean_is_scalar(x_475)) { + x_480 = lean_alloc_ctor(0, 2, 0); +} else { + x_480 = x_475; +} +lean_ctor_set(x_480, 0, x_479); +lean_ctor_set(x_480, 1, x_474); +x_481 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_481, 0, x_480); +lean_ctor_set(x_481, 1, x_472); +return x_481; } -x_471 = l_Lean_Syntax_inhabited; -x_472 = lean_array_get(x_471, x_6, x_11); -x_473 = l_Lean_Syntax_isNone(x_472); -x_474 = lean_unsigned_to_nat(2u); -x_475 = lean_array_get(x_471, x_6, x_474); -x_476 = l_Lean_Syntax_getArgs(x_475); -lean_dec(x_475); -if (x_473 == 0) -{ -uint8_t x_517; -x_517 = 0; -x_477 = x_517; -goto block_516; } else { -uint8_t x_518; -x_518 = 1; -x_477 = x_518; -goto block_516; -} -block_516: -{ -if (x_477 == 0) -{ -lean_object* x_478; lean_object* x_479; uint8_t x_480; -lean_dec(x_476); -lean_dec(x_470); -lean_dec(x_6); +uint8_t x_482; lean_dec(x_5); -lean_dec(x_2); -x_478 = l___private_Lean_Elab_Match_18__collect___main___closed__16; -x_479 = l_Lean_Elab_Term_throwError___rarg(x_472, x_478, x_3, x_4); -lean_dec(x_472); -x_480 = !lean_is_exclusive(x_479); -if (x_480 == 0) +lean_dec(x_3); +x_482 = !lean_is_exclusive(x_455); +if (x_482 == 0) { -return x_479; +return x_455; } else { -lean_object* x_481; lean_object* x_482; lean_object* x_483; -x_481 = lean_ctor_get(x_479, 0); -x_482 = lean_ctor_get(x_479, 1); -lean_inc(x_482); -lean_inc(x_481); -lean_dec(x_479); -x_483 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_483, 0, x_481); -lean_ctor_set(x_483, 1, x_482); -return x_483; +lean_object* x_483; lean_object* x_484; lean_object* x_485; +x_483 = lean_ctor_get(x_455, 0); +x_484 = lean_ctor_get(x_455, 1); +lean_inc(x_484); +lean_inc(x_483); +lean_dec(x_455); +x_485 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_485, 0, x_483); +lean_ctor_set(x_485, 1, x_484); +return x_485; +} } } else { -lean_object* x_484; lean_object* x_485; -lean_dec(x_472); -x_484 = l___private_Lean_Elab_Match_18__collect___main___closed__17; -x_485 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_18__collect___main___spec__1(x_476, x_484, x_2, x_3, x_4); -lean_dec(x_476); -if (lean_obj_tag(x_485) == 0) -{ uint8_t x_486; -x_486 = !lean_is_exclusive(x_485); +lean_dec(x_441); +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_3); +x_486 = !lean_is_exclusive(x_447); if (x_486 == 0) { -lean_object* x_487; uint8_t x_488; -x_487 = lean_ctor_get(x_485, 0); -x_488 = !lean_is_exclusive(x_487); -if (x_488 == 0) -{ -lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; -x_489 = lean_ctor_get(x_487, 0); -x_490 = l_Lean_nullKind; -if (lean_is_scalar(x_470)) { - x_491 = lean_alloc_ctor(1, 2, 0); -} else { - x_491 = x_470; +return x_447; } -lean_ctor_set(x_491, 0, x_490); -lean_ctor_set(x_491, 1, x_489); -x_492 = lean_array_set(x_6, x_474, x_491); +else +{ +lean_object* x_487; lean_object* x_488; lean_object* x_489; +x_487 = lean_ctor_get(x_447, 0); +x_488 = lean_ctor_get(x_447, 1); +lean_inc(x_488); +lean_inc(x_487); +lean_dec(x_447); +x_489 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_489, 0, x_487); +lean_ctor_set(x_489, 1, x_488); +return x_489; +} +} +} +else +{ +uint8_t x_490; +lean_dec(x_441); +lean_dec(x_439); +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_3); +x_490 = !lean_is_exclusive(x_442); +if (x_490 == 0) +{ +return x_442; +} +else +{ +lean_object* x_491; lean_object* x_492; lean_object* x_493; +x_491 = lean_ctor_get(x_442, 0); +x_492 = lean_ctor_get(x_442, 1); +lean_inc(x_492); +lean_inc(x_491); +lean_dec(x_442); x_493 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_493, 0, x_5); +lean_ctor_set(x_493, 0, x_491); lean_ctor_set(x_493, 1, x_492); -lean_ctor_set(x_487, 0, x_493); -return x_485; +return x_493; } -else -{ -lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; -x_494 = lean_ctor_get(x_487, 0); -x_495 = lean_ctor_get(x_487, 1); -lean_inc(x_495); -lean_inc(x_494); -lean_dec(x_487); -x_496 = l_Lean_nullKind; -if (lean_is_scalar(x_470)) { - x_497 = lean_alloc_ctor(1, 2, 0); -} else { - x_497 = x_470; } -lean_ctor_set(x_497, 0, x_496); -lean_ctor_set(x_497, 1, x_494); -x_498 = lean_array_set(x_6, x_474, x_497); -x_499 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_499, 0, x_5); -lean_ctor_set(x_499, 1, x_498); -x_500 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_500, 0, x_499); -lean_ctor_set(x_500, 1, x_495); -lean_ctor_set(x_485, 0, x_500); -return x_485; } } else { -lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; -x_501 = lean_ctor_get(x_485, 0); -x_502 = lean_ctor_get(x_485, 1); +lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; uint8_t x_503; uint8_t x_504; uint8_t x_505; lean_object* x_506; lean_object* x_507; +x_494 = lean_ctor_get(x_8, 0); +x_495 = lean_ctor_get(x_8, 1); +x_496 = lean_ctor_get(x_8, 2); +x_497 = lean_ctor_get(x_8, 3); +x_498 = lean_ctor_get(x_8, 4); +x_499 = lean_ctor_get(x_8, 5); +x_500 = lean_ctor_get(x_8, 6); +x_501 = lean_ctor_get(x_8, 7); +x_502 = lean_ctor_get(x_8, 8); +x_503 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); +x_504 = lean_ctor_get_uint8(x_8, sizeof(void*)*11 + 1); +x_505 = lean_ctor_get_uint8(x_8, sizeof(void*)*11 + 2); +x_506 = lean_ctor_get(x_8, 10); +lean_inc(x_506); lean_inc(x_502); lean_inc(x_501); -lean_dec(x_485); -x_503 = lean_ctor_get(x_501, 0); -lean_inc(x_503); -x_504 = lean_ctor_get(x_501, 1); -lean_inc(x_504); -if (lean_is_exclusive(x_501)) { - lean_ctor_release(x_501, 0); - lean_ctor_release(x_501, 1); - x_505 = x_501; -} else { - lean_dec_ref(x_501); - x_505 = lean_box(0); -} -x_506 = l_Lean_nullKind; -if (lean_is_scalar(x_470)) { - x_507 = lean_alloc_ctor(1, 2, 0); -} else { - x_507 = x_470; -} -lean_ctor_set(x_507, 0, x_506); -lean_ctor_set(x_507, 1, x_503); -x_508 = lean_array_set(x_6, x_474, x_507); -x_509 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_509, 0, x_5); -lean_ctor_set(x_509, 1, x_508); -if (lean_is_scalar(x_505)) { - x_510 = lean_alloc_ctor(0, 2, 0); -} else { - x_510 = x_505; -} -lean_ctor_set(x_510, 0, x_509); -lean_ctor_set(x_510, 1, x_504); -x_511 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_511, 0, x_510); -lean_ctor_set(x_511, 1, x_502); -return x_511; -} -} -else +lean_inc(x_500); +lean_inc(x_499); +lean_inc(x_498); +lean_inc(x_497); +lean_inc(x_496); +lean_inc(x_495); +lean_inc(x_494); +lean_dec(x_8); +x_507 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_507, 0, x_494); +lean_ctor_set(x_507, 1, x_495); +lean_ctor_set(x_507, 2, x_496); +lean_ctor_set(x_507, 3, x_497); +lean_ctor_set(x_507, 4, x_498); +lean_ctor_set(x_507, 5, x_499); +lean_ctor_set(x_507, 6, x_500); +lean_ctor_set(x_507, 7, x_501); +lean_ctor_set(x_507, 8, x_502); +lean_ctor_set(x_507, 9, x_11); +lean_ctor_set(x_507, 10, x_506); +lean_ctor_set_uint8(x_507, sizeof(void*)*11, x_503); +lean_ctor_set_uint8(x_507, sizeof(void*)*11 + 1, x_504); +lean_ctor_set_uint8(x_507, sizeof(void*)*11 + 2, x_505); +if (x_1 == 0) { -uint8_t x_512; -lean_dec(x_470); -lean_dec(x_6); -lean_dec(x_5); -x_512 = !lean_is_exclusive(x_485); -if (x_512 == 0) +lean_object* x_508; lean_object* x_509; uint8_t x_510; +x_508 = l_Lean_Parser_Term_anonymousCtor___elambda__1___closed__1; +lean_inc(x_2); +x_509 = lean_name_mk_string(x_2, x_508); +x_510 = lean_name_eq(x_3, x_509); +lean_dec(x_509); +if (x_510 == 0) { -return x_485; -} -else +lean_object* x_511; lean_object* x_512; uint8_t x_513; +x_511 = l_Lean_Parser_Term_structInst___elambda__1___closed__1; +lean_inc(x_2); +x_512 = lean_name_mk_string(x_2, x_511); +x_513 = lean_name_eq(x_3, x_512); +lean_dec(x_512); +if (x_513 == 0) { -lean_object* x_513; lean_object* x_514; lean_object* x_515; -x_513 = lean_ctor_get(x_485, 0); -x_514 = lean_ctor_get(x_485, 1); -lean_inc(x_514); -lean_inc(x_513); -lean_dec(x_485); -x_515 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_515, 0, x_513); -lean_ctor_set(x_515, 1, x_514); -return x_515; -} -} -} -} -} -} -else +lean_object* x_514; lean_object* x_515; uint8_t x_516; +x_514 = l_Lean_mkHole___closed__1; +lean_inc(x_2); +x_515 = lean_name_mk_string(x_2, x_514); +x_516 = lean_name_eq(x_3, x_515); +lean_dec(x_515); +if (x_516 == 0) { -uint8_t x_519; -x_519 = !lean_is_exclusive(x_1); +lean_object* x_517; lean_object* x_518; uint8_t x_519; +x_517 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__1; +lean_inc(x_2); +x_518 = lean_name_mk_string(x_2, x_517); +x_519 = lean_name_eq(x_3, x_518); +lean_dec(x_518); if (x_519 == 0) { -lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; -x_520 = lean_ctor_get(x_1, 1); -lean_dec(x_520); -x_521 = lean_ctor_get(x_1, 0); +lean_object* x_520; lean_object* x_521; uint8_t x_522; +x_520 = l_Lean_mkTermIdFromIdent___closed__1; +lean_inc(x_2); +x_521 = lean_name_mk_string(x_2, x_520); +x_522 = lean_name_eq(x_3, x_521); +if (x_522 == 0) +{ +lean_object* x_523; lean_object* x_524; uint8_t x_525; lean_dec(x_521); -x_522 = l_Lean_Syntax_inhabited; -x_523 = lean_array_get(x_522, x_6, x_11); -x_524 = l_Lean_Syntax_getArgs(x_523); -lean_dec(x_523); -x_525 = l___private_Lean_Elab_Match_18__collect___main___closed__9; -x_526 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_18__collect___main___spec__1(x_524, x_525, x_2, x_3, x_4); +lean_dec(x_6); +lean_dec(x_5); +x_523 = l_Lean_Parser_Term_inaccessible___elambda__1___closed__1; +lean_inc(x_2); +x_524 = lean_name_mk_string(x_2, x_523); +x_525 = lean_name_eq(x_3, x_524); lean_dec(x_524); -if (lean_obj_tag(x_526) == 0) +if (x_525 == 0) { -uint8_t x_527; -x_527 = !lean_is_exclusive(x_526); -if (x_527 == 0) +lean_object* x_526; lean_object* x_527; uint8_t x_528; +x_526 = l_Lean_String_HasQuote___closed__1; +lean_inc(x_2); +x_527 = lean_name_mk_string(x_2, x_526); +x_528 = lean_name_eq(x_3, x_527); +lean_dec(x_527); +if (x_528 == 0) { -lean_object* x_528; uint8_t x_529; -x_528 = lean_ctor_get(x_526, 0); -x_529 = !lean_is_exclusive(x_528); -if (x_529 == 0) +lean_object* x_529; lean_object* x_530; uint8_t x_531; +x_529 = l_Lean_Nat_HasQuote___closed__1; +lean_inc(x_2); +x_530 = lean_name_mk_string(x_2, x_529); +x_531 = lean_name_eq(x_3, x_530); +lean_dec(x_530); +if (x_531 == 0) { -lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; -x_530 = lean_ctor_get(x_528, 0); -x_531 = l_Lean_nullKind; -lean_ctor_set(x_1, 1, x_530); -lean_ctor_set(x_1, 0, x_531); -x_532 = lean_array_set(x_6, x_11, x_1); -x_533 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_533, 0, x_5); -lean_ctor_set(x_533, 1, x_532); -lean_ctor_set(x_528, 0, x_533); -return x_526; +lean_object* x_532; lean_object* x_533; uint8_t x_534; +x_532 = l_Lean_Parser_Term_char___elambda__1___closed__1; +x_533 = lean_name_mk_string(x_2, x_532); +x_534 = lean_name_eq(x_3, x_533); +lean_dec(x_533); +if (x_534 == 0) +{ +lean_object* x_535; uint8_t x_536; +lean_dec(x_4); +x_535 = l_Lean_choiceKind; +x_536 = lean_name_eq(x_3, x_535); +lean_dec(x_3); +if (x_536 == 0) +{ +lean_object* x_537; +x_537 = l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg(x_7, x_507, x_9); +lean_dec(x_7); +return x_537; } else { -lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; -x_534 = lean_ctor_get(x_528, 0); -x_535 = lean_ctor_get(x_528, 1); -lean_inc(x_535); -lean_inc(x_534); -lean_dec(x_528); -x_536 = l_Lean_nullKind; -lean_ctor_set(x_1, 1, x_534); -lean_ctor_set(x_1, 0, x_536); -x_537 = lean_array_set(x_6, x_11, x_1); -x_538 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_538, 0, x_5); -lean_ctor_set(x_538, 1, x_537); -x_539 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_539, 0, x_538); -lean_ctor_set(x_539, 1, x_535); -lean_ctor_set(x_526, 0, x_539); -return x_526; -} -} -else -{ -lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; -x_540 = lean_ctor_get(x_526, 0); -x_541 = lean_ctor_get(x_526, 1); -lean_inc(x_541); +lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; +lean_dec(x_7); +x_538 = l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__3; +x_539 = l_Lean_Elab_Term_throwError___rarg(x_538, x_507, x_9); +x_540 = lean_ctor_get(x_539, 0); lean_inc(x_540); -lean_dec(x_526); -x_542 = lean_ctor_get(x_540, 0); -lean_inc(x_542); -x_543 = lean_ctor_get(x_540, 1); -lean_inc(x_543); -if (lean_is_exclusive(x_540)) { - lean_ctor_release(x_540, 0); - lean_ctor_release(x_540, 1); - x_544 = x_540; +x_541 = lean_ctor_get(x_539, 1); +lean_inc(x_541); +if (lean_is_exclusive(x_539)) { + lean_ctor_release(x_539, 0); + lean_ctor_release(x_539, 1); + x_542 = x_539; } else { - lean_dec_ref(x_540); - x_544 = lean_box(0); + lean_dec_ref(x_539); + x_542 = lean_box(0); } -x_545 = l_Lean_nullKind; -lean_ctor_set(x_1, 1, x_542); -lean_ctor_set(x_1, 0, x_545); -x_546 = lean_array_set(x_6, x_11, x_1); -x_547 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_547, 0, x_5); -lean_ctor_set(x_547, 1, x_546); -if (lean_is_scalar(x_544)) { - x_548 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_542)) { + x_543 = lean_alloc_ctor(1, 2, 0); } else { - x_548 = x_544; + x_543 = x_542; } -lean_ctor_set(x_548, 0, x_547); -lean_ctor_set(x_548, 1, x_543); +lean_ctor_set(x_543, 0, x_540); +lean_ctor_set(x_543, 1, x_541); +return x_543; +} +} +else +{ +lean_object* x_544; lean_object* x_545; +lean_dec(x_507); +lean_dec(x_3); +x_544 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_544, 0, x_4); +lean_ctor_set(x_544, 1, x_7); +x_545 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_545, 0, x_544); +lean_ctor_set(x_545, 1, x_9); +return x_545; +} +} +else +{ +lean_object* x_546; lean_object* x_547; +lean_dec(x_507); +lean_dec(x_3); +lean_dec(x_2); +x_546 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_546, 0, x_4); +lean_ctor_set(x_546, 1, x_7); +x_547 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_547, 0, x_546); +lean_ctor_set(x_547, 1, x_9); +return x_547; +} +} +else +{ +lean_object* x_548; lean_object* x_549; +lean_dec(x_507); +lean_dec(x_3); +lean_dec(x_2); +x_548 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_548, 0, x_4); +lean_ctor_set(x_548, 1, x_7); x_549 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_549, 0, x_548); -lean_ctor_set(x_549, 1, x_541); +lean_ctor_set(x_549, 1, x_9); return x_549; } } else { -uint8_t x_550; -lean_free_object(x_1); -lean_dec(x_6); +lean_object* x_550; lean_object* x_551; +lean_dec(x_507); +lean_dec(x_3); +lean_dec(x_2); +x_550 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_550, 0, x_4); +lean_ctor_set(x_550, 1, x_7); +x_551 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_551, 0, x_550); +lean_ctor_set(x_551, 1, x_9); +return x_551; +} +} +else +{ +lean_object* x_552; lean_object* x_553; uint8_t x_554; +lean_dec(x_3); +x_552 = l_Lean_Syntax_inhabited; +x_553 = lean_array_get(x_552, x_5, x_12); lean_dec(x_5); -x_550 = !lean_is_exclusive(x_526); -if (x_550 == 0) +x_554 = l_Lean_Syntax_isNone(x_553); +if (x_554 == 0) { -return x_526; -} -else +lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; uint8_t x_559; +x_555 = lean_unsigned_to_nat(0u); +x_556 = l_Lean_Syntax_getArg(x_553, x_555); +lean_dec(x_553); +x_557 = l_Lean_Parser_Term_explicitUniv___elambda__1___closed__1; +lean_inc(x_2); +x_558 = lean_name_mk_string(x_2, x_557); +lean_inc(x_556); +x_559 = l_Lean_Syntax_isOfKind(x_556, x_558); +lean_dec(x_558); +if (x_559 == 0) { -lean_object* x_551; lean_object* x_552; lean_object* x_553; -x_551 = lean_ctor_get(x_526, 0); -x_552 = lean_ctor_get(x_526, 1); -lean_inc(x_552); -lean_inc(x_551); -lean_dec(x_526); -x_553 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_553, 0, x_551); -lean_ctor_set(x_553, 1, x_552); -return x_553; -} -} -} -else +lean_object* x_560; lean_object* x_561; uint8_t x_562; +x_560 = l_Lean_Parser_Term_namedPattern___elambda__1___closed__1; +x_561 = lean_name_mk_string(x_2, x_560); +lean_inc(x_556); +x_562 = l_Lean_Syntax_isOfKind(x_556, x_561); +lean_dec(x_561); +if (x_562 == 0) { -lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; -lean_dec(x_1); -x_554 = l_Lean_Syntax_inhabited; -x_555 = lean_array_get(x_554, x_6, x_11); -x_556 = l_Lean_Syntax_getArgs(x_555); -lean_dec(x_555); -x_557 = l___private_Lean_Elab_Match_18__collect___main___closed__9; -x_558 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_18__collect___main___spec__1(x_556, x_557, x_2, x_3, x_4); +lean_object* x_563; lean_dec(x_556); -if (lean_obj_tag(x_558) == 0) -{ -lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; -x_559 = lean_ctor_get(x_558, 0); -lean_inc(x_559); -x_560 = lean_ctor_get(x_558, 1); -lean_inc(x_560); -if (lean_is_exclusive(x_558)) { - lean_ctor_release(x_558, 0); - lean_ctor_release(x_558, 1); - x_561 = x_558; -} else { - lean_dec_ref(x_558); - x_561 = lean_box(0); -} -x_562 = lean_ctor_get(x_559, 0); -lean_inc(x_562); -x_563 = lean_ctor_get(x_559, 1); -lean_inc(x_563); -if (lean_is_exclusive(x_559)) { - lean_ctor_release(x_559, 0); - lean_ctor_release(x_559, 1); - x_564 = x_559; -} else { - lean_dec_ref(x_559); - x_564 = lean_box(0); -} -x_565 = l_Lean_nullKind; -x_566 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_566, 0, x_565); -lean_ctor_set(x_566, 1, x_562); -x_567 = lean_array_set(x_6, x_11, x_566); -x_568 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_568, 0, x_5); -lean_ctor_set(x_568, 1, x_567); -if (lean_is_scalar(x_564)) { - x_569 = lean_alloc_ctor(0, 2, 0); -} else { - x_569 = x_564; -} -lean_ctor_set(x_569, 0, x_568); -lean_ctor_set(x_569, 1, x_563); -if (lean_is_scalar(x_561)) { - x_570 = lean_alloc_ctor(0, 2, 0); -} else { - x_570 = x_561; -} -lean_ctor_set(x_570, 0, x_569); -lean_ctor_set(x_570, 1, x_560); -return x_570; +lean_dec(x_521); +lean_dec(x_6); +lean_dec(x_4); +x_563 = l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg(x_7, x_507, x_9); +lean_dec(x_7); +return x_563; } else { -lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; -lean_dec(x_6); -lean_dec(x_5); -x_571 = lean_ctor_get(x_558, 0); -lean_inc(x_571); -x_572 = lean_ctor_get(x_558, 1); +lean_object* x_564; lean_object* x_565; uint8_t x_566; lean_object* x_567; +x_564 = l_Lean_Syntax_getIdOfTermId(x_4); +x_565 = l_Lean_Syntax_getArg(x_556, x_12); +lean_dec(x_556); +x_566 = 0; +lean_inc(x_507); +lean_inc(x_564); +x_567 = l___private_Lean_Elab_Match_15__processVar(x_564, x_566, x_7, x_507, x_9); +if (lean_obj_tag(x_567) == 0) +{ +lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; +x_568 = lean_ctor_get(x_567, 0); +lean_inc(x_568); +x_569 = lean_ctor_get(x_567, 1); +lean_inc(x_569); +lean_dec(x_567); +x_570 = lean_ctor_get(x_568, 1); +lean_inc(x_570); +lean_dec(x_568); +lean_inc(x_507); +x_571 = l___private_Lean_Elab_Match_20__collect___main(x_565, x_570, x_507, x_569); +if (lean_obj_tag(x_571) == 0) +{ +lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; +x_572 = lean_ctor_get(x_571, 0); lean_inc(x_572); -if (lean_is_exclusive(x_558)) { - lean_ctor_release(x_558, 0); - lean_ctor_release(x_558, 1); - x_573 = x_558; +x_573 = lean_ctor_get(x_571, 1); +lean_inc(x_573); +lean_dec(x_571); +x_574 = lean_ctor_get(x_572, 0); +lean_inc(x_574); +x_575 = lean_ctor_get(x_572, 1); +lean_inc(x_575); +if (lean_is_exclusive(x_572)) { + lean_ctor_release(x_572, 0); + lean_ctor_release(x_572, 1); + x_576 = x_572; } else { - lean_dec_ref(x_558); - x_573 = lean_box(0); + lean_dec_ref(x_572); + x_576 = lean_box(0); } -if (lean_is_scalar(x_573)) { - x_574 = lean_alloc_ctor(1, 2, 0); -} else { - x_574 = x_573; -} -lean_ctor_set(x_574, 0, x_571); -lean_ctor_set(x_574, 1, x_572); -return x_574; -} -} -} -} -else -{ -uint8_t x_575; -x_575 = !lean_is_exclusive(x_1); -if (x_575 == 0) -{ -lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; -x_576 = lean_ctor_get(x_1, 1); -lean_dec(x_576); -x_577 = lean_ctor_get(x_1, 0); +x_577 = l_Lean_Elab_Term_getCurrMacroScope(x_507, x_573); +lean_dec(x_507); +x_578 = lean_ctor_get(x_577, 0); +lean_inc(x_578); +x_579 = lean_ctor_get(x_577, 1); +lean_inc(x_579); lean_dec(x_577); -x_578 = l_Lean_Syntax_inhabited; -x_579 = lean_unsigned_to_nat(0u); -x_580 = lean_array_get(x_578, x_6, x_579); -x_581 = lean_array_get(x_578, x_6, x_11); -x_582 = l_Lean_Syntax_getArgs(x_581); -lean_dec(x_581); -x_583 = l_Lean_mkAppStx___closed__6; -lean_inc(x_3); -x_584 = l_Array_forMAux___main___at___private_Lean_Elab_Match_18__collect___main___spec__3(x_583, x_582, x_579, x_2, x_3, x_4); -if (lean_obj_tag(x_584) == 0) -{ -lean_object* x_585; lean_object* x_586; lean_object* x_587; uint8_t x_588; lean_object* x_589; -x_585 = lean_ctor_get(x_584, 0); -lean_inc(x_585); -x_586 = lean_ctor_get(x_584, 1); -lean_inc(x_586); -lean_dec(x_584); -x_587 = lean_ctor_get(x_585, 1); -lean_inc(x_587); -lean_dec(x_585); -x_588 = 1; -lean_inc(x_3); -x_589 = l___private_Lean_Elab_Match_14__processIdAux(x_580, x_588, x_587, x_3, x_586); -if (lean_obj_tag(x_589) == 0) -{ -lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; -x_590 = lean_ctor_get(x_589, 0); -lean_inc(x_590); -x_591 = lean_ctor_get(x_589, 1); -lean_inc(x_591); -lean_dec(x_589); -x_592 = lean_ctor_get(x_590, 0); -lean_inc(x_592); -x_593 = lean_ctor_get(x_590, 1); -lean_inc(x_593); -lean_dec(x_590); -x_594 = x_582; -x_595 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Match_18__collect___main___spec__4___boxed), 6, 3); -lean_closure_set(x_595, 0, x_592); -lean_closure_set(x_595, 1, x_579); -lean_closure_set(x_595, 2, x_594); -x_596 = x_595; -x_597 = lean_apply_3(x_596, x_593, x_3, x_591); -if (lean_obj_tag(x_597) == 0) -{ -uint8_t x_598; -x_598 = !lean_is_exclusive(x_597); -if (x_598 == 0) -{ -lean_object* x_599; uint8_t x_600; -x_599 = lean_ctor_get(x_597, 0); -x_600 = !lean_is_exclusive(x_599); -if (x_600 == 0) -{ -lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; -x_601 = lean_ctor_get(x_599, 0); -x_602 = l_Lean_nullKind; -lean_ctor_set(x_1, 1, x_601); -lean_ctor_set(x_1, 0, x_602); -x_603 = lean_array_set(x_6, x_11, x_1); -x_604 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_604, 0, x_5); -lean_ctor_set(x_604, 1, x_603); -lean_ctor_set(x_599, 0, x_604); -return x_597; +x_580 = l_Lean_Elab_Term_getMainModule___rarg(x_579); +x_581 = lean_ctor_get(x_580, 0); +lean_inc(x_581); +x_582 = lean_ctor_get(x_580, 1); +lean_inc(x_582); +if (lean_is_exclusive(x_580)) { + lean_ctor_release(x_580, 0); + lean_ctor_release(x_580, 1); + x_583 = x_580; +} else { + lean_dec_ref(x_580); + x_583 = lean_box(0); +} +x_584 = l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__6; +x_585 = l_Lean_addMacroScope(x_581, x_584, x_578); +x_586 = l_Lean_SourceInfo_inhabited___closed__1; +x_587 = l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__5; +x_588 = l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__8; +x_589 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_589, 0, x_586); +lean_ctor_set(x_589, 1, x_587); +lean_ctor_set(x_589, 2, x_585); +lean_ctor_set(x_589, 3, x_588); +x_590 = l_Array_empty___closed__1; +x_591 = lean_array_push(x_590, x_589); +x_592 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; +x_593 = lean_array_push(x_591, x_592); +x_594 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_594, 0, x_521); +lean_ctor_set(x_594, 1, x_593); +x_595 = lean_array_push(x_590, x_594); +x_596 = l_Lean_mkTermIdFrom(x_4, x_564); +lean_dec(x_4); +x_597 = lean_array_push(x_590, x_596); +x_598 = lean_array_push(x_597, x_574); +x_599 = l_Lean_nullKind___closed__2; +x_600 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_600, 0, x_599); +lean_ctor_set(x_600, 1, x_598); +x_601 = lean_array_push(x_595, x_600); +x_602 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_602, 0, x_6); +lean_ctor_set(x_602, 1, x_601); +if (lean_is_scalar(x_576)) { + x_603 = lean_alloc_ctor(0, 2, 0); +} else { + x_603 = x_576; +} +lean_ctor_set(x_603, 0, x_602); +lean_ctor_set(x_603, 1, x_575); +if (lean_is_scalar(x_583)) { + x_604 = lean_alloc_ctor(0, 2, 0); +} else { + x_604 = x_583; +} +lean_ctor_set(x_604, 0, x_603); +lean_ctor_set(x_604, 1, x_582); +return x_604; } else { -lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; -x_605 = lean_ctor_get(x_599, 0); -x_606 = lean_ctor_get(x_599, 1); -lean_inc(x_606); +lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; +lean_dec(x_564); +lean_dec(x_521); +lean_dec(x_507); +lean_dec(x_6); +lean_dec(x_4); +x_605 = lean_ctor_get(x_571, 0); lean_inc(x_605); -lean_dec(x_599); -x_607 = l_Lean_nullKind; -lean_ctor_set(x_1, 1, x_605); -lean_ctor_set(x_1, 0, x_607); -x_608 = lean_array_set(x_6, x_11, x_1); -x_609 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_609, 0, x_5); -lean_ctor_set(x_609, 1, x_608); -x_610 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_610, 0, x_609); -lean_ctor_set(x_610, 1, x_606); -lean_ctor_set(x_597, 0, x_610); -return x_597; +x_606 = lean_ctor_get(x_571, 1); +lean_inc(x_606); +if (lean_is_exclusive(x_571)) { + lean_ctor_release(x_571, 0); + lean_ctor_release(x_571, 1); + x_607 = x_571; +} else { + lean_dec_ref(x_571); + x_607 = lean_box(0); +} +if (lean_is_scalar(x_607)) { + x_608 = lean_alloc_ctor(1, 2, 0); +} else { + x_608 = x_607; +} +lean_ctor_set(x_608, 0, x_605); +lean_ctor_set(x_608, 1, x_606); +return x_608; } } else { -lean_object* x_611; lean_object* x_612; lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; -x_611 = lean_ctor_get(x_597, 0); -x_612 = lean_ctor_get(x_597, 1); -lean_inc(x_612); -lean_inc(x_611); -lean_dec(x_597); -x_613 = lean_ctor_get(x_611, 0); -lean_inc(x_613); -x_614 = lean_ctor_get(x_611, 1); -lean_inc(x_614); -if (lean_is_exclusive(x_611)) { - lean_ctor_release(x_611, 0); - lean_ctor_release(x_611, 1); - x_615 = x_611; +lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; +lean_dec(x_565); +lean_dec(x_564); +lean_dec(x_521); +lean_dec(x_507); +lean_dec(x_6); +lean_dec(x_4); +x_609 = lean_ctor_get(x_567, 0); +lean_inc(x_609); +x_610 = lean_ctor_get(x_567, 1); +lean_inc(x_610); +if (lean_is_exclusive(x_567)) { + lean_ctor_release(x_567, 0); + lean_ctor_release(x_567, 1); + x_611 = x_567; } else { - lean_dec_ref(x_611); - x_615 = lean_box(0); + lean_dec_ref(x_567); + x_611 = lean_box(0); } -x_616 = l_Lean_nullKind; -lean_ctor_set(x_1, 1, x_613); -lean_ctor_set(x_1, 0, x_616); -x_617 = lean_array_set(x_6, x_11, x_1); -x_618 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_618, 0, x_5); -lean_ctor_set(x_618, 1, x_617); -if (lean_is_scalar(x_615)) { - x_619 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_611)) { + x_612 = lean_alloc_ctor(1, 2, 0); } else { + x_612 = x_611; +} +lean_ctor_set(x_612, 0, x_609); +lean_ctor_set(x_612, 1, x_610); +return x_612; +} +} +} +else +{ +uint8_t x_613; lean_object* x_614; +lean_dec(x_556); +lean_dec(x_521); +lean_dec(x_6); +lean_dec(x_2); +x_613 = 1; +lean_inc(x_4); +x_614 = l___private_Lean_Elab_Match_16__processIdAux(x_4, x_613, x_7, x_507, x_9); +if (lean_obj_tag(x_614) == 0) +{ +lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; +x_615 = lean_ctor_get(x_614, 0); +lean_inc(x_615); +x_616 = lean_ctor_get(x_614, 1); +lean_inc(x_616); +if (lean_is_exclusive(x_614)) { + lean_ctor_release(x_614, 0); + lean_ctor_release(x_614, 1); + x_617 = x_614; +} else { + lean_dec_ref(x_614); + x_617 = lean_box(0); +} +x_618 = lean_ctor_get(x_615, 1); +lean_inc(x_618); +if (lean_is_exclusive(x_615)) { + lean_ctor_release(x_615, 0); + lean_ctor_release(x_615, 1); x_619 = x_615; +} else { + lean_dec_ref(x_615); + x_619 = lean_box(0); } -lean_ctor_set(x_619, 0, x_618); -lean_ctor_set(x_619, 1, x_614); -x_620 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_620, 0, x_619); -lean_ctor_set(x_620, 1, x_612); -return x_620; +if (lean_is_scalar(x_619)) { + x_620 = lean_alloc_ctor(0, 2, 0); +} else { + x_620 = x_619; } +lean_ctor_set(x_620, 0, x_4); +lean_ctor_set(x_620, 1, x_618); +if (lean_is_scalar(x_617)) { + x_621 = lean_alloc_ctor(0, 2, 0); +} else { + x_621 = x_617; +} +lean_ctor_set(x_621, 0, x_620); +lean_ctor_set(x_621, 1, x_616); +return x_621; } else { -uint8_t x_621; -lean_free_object(x_1); -lean_dec(x_6); -lean_dec(x_5); -x_621 = !lean_is_exclusive(x_597); -if (x_621 == 0) -{ -return x_597; -} -else -{ -lean_object* x_622; lean_object* x_623; lean_object* x_624; -x_622 = lean_ctor_get(x_597, 0); -x_623 = lean_ctor_get(x_597, 1); -lean_inc(x_623); +lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; +lean_dec(x_4); +x_622 = lean_ctor_get(x_614, 0); lean_inc(x_622); -lean_dec(x_597); -x_624 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_624, 0, x_622); -lean_ctor_set(x_624, 1, x_623); -return x_624; +x_623 = lean_ctor_get(x_614, 1); +lean_inc(x_623); +if (lean_is_exclusive(x_614)) { + lean_ctor_release(x_614, 0); + lean_ctor_release(x_614, 1); + x_624 = x_614; +} else { + lean_dec_ref(x_614); + x_624 = lean_box(0); +} +if (lean_is_scalar(x_624)) { + x_625 = lean_alloc_ctor(1, 2, 0); +} else { + x_625 = x_624; +} +lean_ctor_set(x_625, 0, x_622); +lean_ctor_set(x_625, 1, x_623); +return x_625; } } } else { -uint8_t x_625; -lean_dec(x_582); -lean_free_object(x_1); -lean_dec(x_3); +lean_object* x_626; +lean_dec(x_553); +lean_dec(x_521); lean_dec(x_6); -lean_dec(x_5); -x_625 = !lean_is_exclusive(x_589); -if (x_625 == 0) +lean_dec(x_2); +lean_inc(x_4); +x_626 = l___private_Lean_Elab_Match_18__processId(x_4, x_7, x_507, x_9); +if (lean_obj_tag(x_626) == 0) { -return x_589; -} -else -{ -lean_object* x_626; lean_object* x_627; lean_object* x_628; -x_626 = lean_ctor_get(x_589, 0); -x_627 = lean_ctor_get(x_589, 1); +lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; +x_627 = lean_ctor_get(x_626, 0); lean_inc(x_627); -lean_inc(x_626); -lean_dec(x_589); -x_628 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_628, 0, x_626); -lean_ctor_set(x_628, 1, x_627); -return x_628; +x_628 = lean_ctor_get(x_626, 1); +lean_inc(x_628); +if (lean_is_exclusive(x_626)) { + lean_ctor_release(x_626, 0); + lean_ctor_release(x_626, 1); + x_629 = x_626; +} else { + lean_dec_ref(x_626); + x_629 = lean_box(0); } -} -} -else -{ -uint8_t x_629; -lean_dec(x_582); -lean_dec(x_580); -lean_free_object(x_1); -lean_dec(x_3); -lean_dec(x_6); -lean_dec(x_5); -x_629 = !lean_is_exclusive(x_584); -if (x_629 == 0) -{ -return x_584; -} -else -{ -lean_object* x_630; lean_object* x_631; lean_object* x_632; -x_630 = lean_ctor_get(x_584, 0); -x_631 = lean_ctor_get(x_584, 1); -lean_inc(x_631); +x_630 = lean_ctor_get(x_627, 1); lean_inc(x_630); -lean_dec(x_584); -x_632 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_632, 0, x_630); -lean_ctor_set(x_632, 1, x_631); -return x_632; +if (lean_is_exclusive(x_627)) { + lean_ctor_release(x_627, 0); + lean_ctor_release(x_627, 1); + x_631 = x_627; +} else { + lean_dec_ref(x_627); + x_631 = lean_box(0); +} +if (lean_is_scalar(x_631)) { + x_632 = lean_alloc_ctor(0, 2, 0); +} else { + x_632 = x_631; +} +lean_ctor_set(x_632, 0, x_4); +lean_ctor_set(x_632, 1, x_630); +if (lean_is_scalar(x_629)) { + x_633 = lean_alloc_ctor(0, 2, 0); +} else { + x_633 = x_629; +} +lean_ctor_set(x_633, 0, x_632); +lean_ctor_set(x_633, 1, x_628); +return x_633; +} +else +{ +lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; +lean_dec(x_4); +x_634 = lean_ctor_get(x_626, 0); +lean_inc(x_634); +x_635 = lean_ctor_get(x_626, 1); +lean_inc(x_635); +if (lean_is_exclusive(x_626)) { + lean_ctor_release(x_626, 0); + lean_ctor_release(x_626, 1); + x_636 = x_626; +} else { + lean_dec_ref(x_626); + x_636 = lean_box(0); +} +if (lean_is_scalar(x_636)) { + x_637 = lean_alloc_ctor(1, 2, 0); +} else { + x_637 = x_636; +} +lean_ctor_set(x_637, 0, x_634); +lean_ctor_set(x_637, 1, x_635); +return x_637; +} } } } else { -lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; -lean_dec(x_1); -x_633 = l_Lean_Syntax_inhabited; -x_634 = lean_unsigned_to_nat(0u); -x_635 = lean_array_get(x_633, x_6, x_634); -x_636 = lean_array_get(x_633, x_6, x_11); -x_637 = l_Lean_Syntax_getArgs(x_636); -lean_dec(x_636); -x_638 = l_Lean_mkAppStx___closed__6; -lean_inc(x_3); -x_639 = l_Array_forMAux___main___at___private_Lean_Elab_Match_18__collect___main___spec__3(x_638, x_637, x_634, x_2, x_3, x_4); -if (lean_obj_tag(x_639) == 0) +lean_object* x_638; lean_object* x_639; uint8_t x_640; +lean_dec(x_6); +x_638 = l_Lean_Syntax_inhabited; +x_639 = lean_array_get(x_638, x_5, x_12); +x_640 = l_Lean_Syntax_isNone(x_639); +if (x_640 == 0) { -lean_object* x_640; lean_object* x_641; lean_object* x_642; uint8_t x_643; lean_object* x_644; -x_640 = lean_ctor_get(x_639, 0); -lean_inc(x_640); -x_641 = lean_ctor_get(x_639, 1); -lean_inc(x_641); -lean_dec(x_639); -x_642 = lean_ctor_get(x_640, 1); -lean_inc(x_642); -lean_dec(x_640); -x_643 = 1; -lean_inc(x_3); -x_644 = l___private_Lean_Elab_Match_14__processIdAux(x_635, x_643, x_642, x_3, x_641); -if (lean_obj_tag(x_644) == 0) +lean_object* x_641; lean_object* x_642; lean_object* x_643; uint8_t x_644; +lean_dec(x_4); +x_641 = lean_unsigned_to_nat(0u); +x_642 = l_Lean_Syntax_getArg(x_639, x_641); +x_643 = l_Lean_Syntax_getArg(x_639, x_12); +x_644 = l_Lean_Syntax_isNone(x_643); +if (x_644 == 0) { -lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; -x_645 = lean_ctor_get(x_644, 0); +lean_object* x_645; lean_object* x_646; lean_object* x_647; uint8_t x_648; +x_645 = l_Lean_Syntax_getArg(x_643, x_641); +x_646 = l_Lean_Parser_Term_typeAscription___elambda__1___closed__1; +x_647 = lean_name_mk_string(x_2, x_646); lean_inc(x_645); -x_646 = lean_ctor_get(x_644, 1); -lean_inc(x_646); -lean_dec(x_644); -x_647 = lean_ctor_get(x_645, 0); -lean_inc(x_647); -x_648 = lean_ctor_get(x_645, 1); -lean_inc(x_648); -lean_dec(x_645); -x_649 = x_637; -x_650 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Match_18__collect___main___spec__4___boxed), 6, 3); -lean_closure_set(x_650, 0, x_647); -lean_closure_set(x_650, 1, x_634); -lean_closure_set(x_650, 2, x_649); -x_651 = x_650; -x_652 = lean_apply_3(x_651, x_648, x_3, x_646); -if (lean_obj_tag(x_652) == 0) +x_648 = l_Lean_Syntax_isOfKind(x_645, x_647); +lean_dec(x_647); +if (x_648 == 0) { -lean_object* x_653; lean_object* x_654; lean_object* x_655; lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; lean_object* x_663; lean_object* x_664; -x_653 = lean_ctor_get(x_652, 0); +lean_object* x_649; +lean_inc(x_507); +x_649 = l___private_Lean_Elab_Match_20__collect___main(x_642, x_7, x_507, x_9); +if (lean_obj_tag(x_649) == 0) +{ +lean_object* x_650; lean_object* x_651; lean_object* x_652; lean_object* x_653; lean_object* x_654; lean_object* x_655; lean_object* x_656; lean_object* x_657; lean_object* x_658; +x_650 = lean_ctor_get(x_649, 0); +lean_inc(x_650); +x_651 = lean_ctor_get(x_649, 1); +lean_inc(x_651); +lean_dec(x_649); +x_652 = lean_ctor_get(x_650, 0); +lean_inc(x_652); +x_653 = lean_ctor_get(x_650, 1); lean_inc(x_653); -x_654 = lean_ctor_get(x_652, 1); -lean_inc(x_654); -if (lean_is_exclusive(x_652)) { - lean_ctor_release(x_652, 0); - lean_ctor_release(x_652, 1); - x_655 = x_652; +lean_dec(x_650); +x_654 = l_Lean_Syntax_setArg(x_639, x_641, x_652); +x_655 = l_Lean_Syntax_getArg(x_645, x_12); +x_656 = l_Lean_Syntax_getArgs(x_655); +lean_dec(x_655); +x_657 = l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__9; +x_658 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_20__collect___main___spec__1(x_656, x_657, x_653, x_507, x_651); +lean_dec(x_656); +if (lean_obj_tag(x_658) == 0) +{ +lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; +x_659 = lean_ctor_get(x_658, 0); +lean_inc(x_659); +x_660 = lean_ctor_get(x_658, 1); +lean_inc(x_660); +if (lean_is_exclusive(x_658)) { + lean_ctor_release(x_658, 0); + lean_ctor_release(x_658, 1); + x_661 = x_658; } else { - lean_dec_ref(x_652); - x_655 = lean_box(0); + lean_dec_ref(x_658); + x_661 = lean_box(0); } -x_656 = lean_ctor_get(x_653, 0); -lean_inc(x_656); -x_657 = lean_ctor_get(x_653, 1); -lean_inc(x_657); -if (lean_is_exclusive(x_653)) { - lean_ctor_release(x_653, 0); - lean_ctor_release(x_653, 1); - x_658 = x_653; +x_662 = lean_ctor_get(x_659, 0); +lean_inc(x_662); +x_663 = lean_ctor_get(x_659, 1); +lean_inc(x_663); +if (lean_is_exclusive(x_659)) { + lean_ctor_release(x_659, 0); + lean_ctor_release(x_659, 1); + x_664 = x_659; } else { - lean_dec_ref(x_653); - x_658 = lean_box(0); + lean_dec_ref(x_659); + x_664 = lean_box(0); } -x_659 = l_Lean_nullKind; -x_660 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_660, 0, x_659); -lean_ctor_set(x_660, 1, x_656); -x_661 = lean_array_set(x_6, x_11, x_660); -x_662 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_662, 0, x_5); -lean_ctor_set(x_662, 1, x_661); -if (lean_is_scalar(x_658)) { - x_663 = lean_alloc_ctor(0, 2, 0); +x_665 = l_Lean_nullKind; +x_666 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_666, 0, x_665); +lean_ctor_set(x_666, 1, x_662); +x_667 = l_Lean_Syntax_setArg(x_645, x_12, x_666); +x_668 = l_Lean_Syntax_setArg(x_643, x_641, x_667); +x_669 = l_Lean_Syntax_setArg(x_654, x_12, x_668); +x_670 = lean_array_set(x_5, x_12, x_669); +x_671 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_671, 0, x_3); +lean_ctor_set(x_671, 1, x_670); +if (lean_is_scalar(x_664)) { + x_672 = lean_alloc_ctor(0, 2, 0); } else { - x_663 = x_658; + x_672 = x_664; } -lean_ctor_set(x_663, 0, x_662); -lean_ctor_set(x_663, 1, x_657); -if (lean_is_scalar(x_655)) { - x_664 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_672, 0, x_671); +lean_ctor_set(x_672, 1, x_663); +if (lean_is_scalar(x_661)) { + x_673 = lean_alloc_ctor(0, 2, 0); } else { - x_664 = x_655; + x_673 = x_661; } -lean_ctor_set(x_664, 0, x_663); -lean_ctor_set(x_664, 1, x_654); -return x_664; +lean_ctor_set(x_673, 0, x_672); +lean_ctor_set(x_673, 1, x_660); +return x_673; } else { -lean_object* x_665; lean_object* x_666; lean_object* x_667; lean_object* x_668; -lean_dec(x_6); +lean_object* x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; +lean_dec(x_654); +lean_dec(x_645); +lean_dec(x_643); lean_dec(x_5); -x_665 = lean_ctor_get(x_652, 0); -lean_inc(x_665); -x_666 = lean_ctor_get(x_652, 1); -lean_inc(x_666); -if (lean_is_exclusive(x_652)) { - lean_ctor_release(x_652, 0); - lean_ctor_release(x_652, 1); - x_667 = x_652; -} else { - lean_dec_ref(x_652); - x_667 = lean_box(0); -} -if (lean_is_scalar(x_667)) { - x_668 = lean_alloc_ctor(1, 2, 0); -} else { - x_668 = x_667; -} -lean_ctor_set(x_668, 0, x_665); -lean_ctor_set(x_668, 1, x_666); -return x_668; -} -} -else -{ -lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; -lean_dec(x_637); lean_dec(x_3); -lean_dec(x_6); -lean_dec(x_5); -x_669 = lean_ctor_get(x_644, 0); -lean_inc(x_669); -x_670 = lean_ctor_get(x_644, 1); -lean_inc(x_670); -if (lean_is_exclusive(x_644)) { - lean_ctor_release(x_644, 0); - lean_ctor_release(x_644, 1); - x_671 = x_644; -} else { - lean_dec_ref(x_644); - x_671 = lean_box(0); -} -if (lean_is_scalar(x_671)) { - x_672 = lean_alloc_ctor(1, 2, 0); -} else { - x_672 = x_671; -} -lean_ctor_set(x_672, 0, x_669); -lean_ctor_set(x_672, 1, x_670); -return x_672; -} -} -else -{ -lean_object* x_673; lean_object* x_674; lean_object* x_675; lean_object* x_676; -lean_dec(x_637); -lean_dec(x_635); -lean_dec(x_3); -lean_dec(x_6); -lean_dec(x_5); -x_673 = lean_ctor_get(x_639, 0); -lean_inc(x_673); -x_674 = lean_ctor_get(x_639, 1); +x_674 = lean_ctor_get(x_658, 0); lean_inc(x_674); -if (lean_is_exclusive(x_639)) { - lean_ctor_release(x_639, 0); - lean_ctor_release(x_639, 1); - x_675 = x_639; +x_675 = lean_ctor_get(x_658, 1); +lean_inc(x_675); +if (lean_is_exclusive(x_658)) { + lean_ctor_release(x_658, 0); + lean_ctor_release(x_658, 1); + x_676 = x_658; } else { - lean_dec_ref(x_639); - x_675 = lean_box(0); + lean_dec_ref(x_658); + x_676 = lean_box(0); } -if (lean_is_scalar(x_675)) { - x_676 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_676)) { + x_677 = lean_alloc_ctor(1, 2, 0); } else { - x_676 = x_675; -} -lean_ctor_set(x_676, 0, x_673); -lean_ctor_set(x_676, 1, x_674); -return x_676; -} + x_677 = x_676; } +lean_ctor_set(x_677, 0, x_674); +lean_ctor_set(x_677, 1, x_675); +return x_677; } } else { -lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; lean_object* x_685; uint8_t x_686; uint8_t x_687; uint8_t x_688; lean_object* x_689; -x_677 = lean_ctor_get(x_3, 0); -x_678 = lean_ctor_get(x_3, 1); -x_679 = lean_ctor_get(x_3, 2); -x_680 = lean_ctor_get(x_3, 3); -x_681 = lean_ctor_get(x_3, 4); -x_682 = lean_ctor_get(x_3, 5); -x_683 = lean_ctor_get(x_3, 6); -x_684 = lean_ctor_get(x_3, 7); -x_685 = lean_ctor_get(x_3, 8); -x_686 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); -x_687 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); -x_688 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); -lean_inc(x_685); -lean_inc(x_684); -lean_inc(x_683); -lean_inc(x_682); -lean_inc(x_681); -lean_inc(x_680); -lean_inc(x_679); -lean_inc(x_678); -lean_inc(x_677); +lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; +lean_dec(x_645); +lean_dec(x_643); +lean_dec(x_639); +lean_dec(x_507); +lean_dec(x_5); lean_dec(x_3); -x_689 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_689, 0, x_677); -lean_ctor_set(x_689, 1, x_678); -lean_ctor_set(x_689, 2, x_679); -lean_ctor_set(x_689, 3, x_680); -lean_ctor_set(x_689, 4, x_681); -lean_ctor_set(x_689, 5, x_682); -lean_ctor_set(x_689, 6, x_683); -lean_ctor_set(x_689, 7, x_684); -lean_ctor_set(x_689, 8, x_685); -lean_ctor_set(x_689, 9, x_10); -lean_ctor_set_uint8(x_689, sizeof(void*)*10, x_686); -lean_ctor_set_uint8(x_689, sizeof(void*)*10 + 1, x_687); -lean_ctor_set_uint8(x_689, sizeof(void*)*10 + 2, x_688); -if (x_8 == 0) +x_678 = lean_ctor_get(x_649, 0); +lean_inc(x_678); +x_679 = lean_ctor_get(x_649, 1); +lean_inc(x_679); +if (lean_is_exclusive(x_649)) { + lean_ctor_release(x_649, 0); + lean_ctor_release(x_649, 1); + x_680 = x_649; +} else { + lean_dec_ref(x_649); + x_680 = lean_box(0); +} +if (lean_is_scalar(x_680)) { + x_681 = lean_alloc_ctor(1, 2, 0); +} else { + x_681 = x_680; +} +lean_ctor_set(x_681, 0, x_678); +lean_ctor_set(x_681, 1, x_679); +return x_681; +} +} +else { -lean_object* x_690; uint8_t x_691; -x_690 = l_Lean_Parser_Term_anonymousCtor___elambda__1___closed__2; -x_691 = lean_name_eq(x_5, x_690); -if (x_691 == 0) +lean_object* x_682; +lean_dec(x_645); +lean_dec(x_643); +x_682 = l___private_Lean_Elab_Match_20__collect___main(x_642, x_7, x_507, x_9); +if (lean_obj_tag(x_682) == 0) { -lean_object* x_692; uint8_t x_693; -x_692 = l_Lean_Parser_Term_structInst___elambda__1___closed__2; -x_693 = lean_name_eq(x_5, x_692); -if (x_693 == 0) +lean_object* x_683; lean_object* x_684; lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; +x_683 = lean_ctor_get(x_682, 0); +lean_inc(x_683); +x_684 = lean_ctor_get(x_682, 1); +lean_inc(x_684); +if (lean_is_exclusive(x_682)) { + lean_ctor_release(x_682, 0); + lean_ctor_release(x_682, 1); + x_685 = x_682; +} else { + lean_dec_ref(x_682); + x_685 = lean_box(0); +} +x_686 = lean_ctor_get(x_683, 0); +lean_inc(x_686); +x_687 = lean_ctor_get(x_683, 1); +lean_inc(x_687); +if (lean_is_exclusive(x_683)) { + lean_ctor_release(x_683, 0); + lean_ctor_release(x_683, 1); + x_688 = x_683; +} else { + lean_dec_ref(x_683); + x_688 = lean_box(0); +} +x_689 = l_Lean_Syntax_setArg(x_639, x_641, x_686); +x_690 = lean_array_set(x_5, x_12, x_689); +x_691 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_691, 0, x_3); +lean_ctor_set(x_691, 1, x_690); +if (lean_is_scalar(x_688)) { + x_692 = lean_alloc_ctor(0, 2, 0); +} else { + x_692 = x_688; +} +lean_ctor_set(x_692, 0, x_691); +lean_ctor_set(x_692, 1, x_687); +if (lean_is_scalar(x_685)) { + x_693 = lean_alloc_ctor(0, 2, 0); +} else { + x_693 = x_685; +} +lean_ctor_set(x_693, 0, x_692); +lean_ctor_set(x_693, 1, x_684); +return x_693; +} +else { -lean_object* x_694; uint8_t x_695; -x_694 = l_Lean_mkHole___closed__2; -x_695 = lean_name_eq(x_5, x_694); -if (x_695 == 0) +lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; +lean_dec(x_639); +lean_dec(x_5); +lean_dec(x_3); +x_694 = lean_ctor_get(x_682, 0); +lean_inc(x_694); +x_695 = lean_ctor_get(x_682, 1); +lean_inc(x_695); +if (lean_is_exclusive(x_682)) { + lean_ctor_release(x_682, 0); + lean_ctor_release(x_682, 1); + x_696 = x_682; +} else { + lean_dec_ref(x_682); + x_696 = lean_box(0); +} +if (lean_is_scalar(x_696)) { + x_697 = lean_alloc_ctor(1, 2, 0); +} else { + x_697 = x_696; +} +lean_ctor_set(x_697, 0, x_694); +lean_ctor_set(x_697, 1, x_695); +return x_697; +} +} +} +else { -lean_object* x_696; uint8_t x_697; -x_696 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__2; -x_697 = lean_name_eq(x_5, x_696); -if (x_697 == 0) +lean_object* x_698; +lean_dec(x_643); +lean_dec(x_2); +x_698 = l___private_Lean_Elab_Match_20__collect___main(x_642, x_7, x_507, x_9); +if (lean_obj_tag(x_698) == 0) { -lean_object* x_698; uint8_t x_699; -x_698 = l_Lean_mkTermIdFromIdent___closed__2; -x_699 = lean_name_eq(x_5, x_698); -if (x_699 == 0) +lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; +x_699 = lean_ctor_get(x_698, 0); +lean_inc(x_699); +x_700 = lean_ctor_get(x_698, 1); +lean_inc(x_700); +if (lean_is_exclusive(x_698)) { + lean_ctor_release(x_698, 0); + lean_ctor_release(x_698, 1); + x_701 = x_698; +} else { + lean_dec_ref(x_698); + x_701 = lean_box(0); +} +x_702 = lean_ctor_get(x_699, 0); +lean_inc(x_702); +x_703 = lean_ctor_get(x_699, 1); +lean_inc(x_703); +if (lean_is_exclusive(x_699)) { + lean_ctor_release(x_699, 0); + lean_ctor_release(x_699, 1); + x_704 = x_699; +} else { + lean_dec_ref(x_699); + x_704 = lean_box(0); +} +x_705 = l_Lean_Syntax_setArg(x_639, x_641, x_702); +x_706 = lean_array_set(x_5, x_12, x_705); +x_707 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_707, 0, x_3); +lean_ctor_set(x_707, 1, x_706); +if (lean_is_scalar(x_704)) { + x_708 = lean_alloc_ctor(0, 2, 0); +} else { + x_708 = x_704; +} +lean_ctor_set(x_708, 0, x_707); +lean_ctor_set(x_708, 1, x_703); +if (lean_is_scalar(x_701)) { + x_709 = lean_alloc_ctor(0, 2, 0); +} else { + x_709 = x_701; +} +lean_ctor_set(x_709, 0, x_708); +lean_ctor_set(x_709, 1, x_700); +return x_709; +} +else { -lean_object* x_700; uint8_t x_701; +lean_object* x_710; lean_object* x_711; lean_object* x_712; lean_object* x_713; +lean_dec(x_639); +lean_dec(x_5); +lean_dec(x_3); +x_710 = lean_ctor_get(x_698, 0); +lean_inc(x_710); +x_711 = lean_ctor_get(x_698, 1); +lean_inc(x_711); +if (lean_is_exclusive(x_698)) { + lean_ctor_release(x_698, 0); + lean_ctor_release(x_698, 1); + x_712 = x_698; +} else { + lean_dec_ref(x_698); + x_712 = lean_box(0); +} +if (lean_is_scalar(x_712)) { + x_713 = lean_alloc_ctor(1, 2, 0); +} else { + x_713 = x_712; +} +lean_ctor_set(x_713, 0, x_710); +lean_ctor_set(x_713, 1, x_711); +return x_713; +} +} +} +else +{ +lean_object* x_714; lean_object* x_715; +lean_dec(x_639); +lean_dec(x_507); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_714 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_714, 0, x_4); +lean_ctor_set(x_714, 1, x_7); +x_715 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_715, 0, x_714); +lean_ctor_set(x_715, 1, x_9); +return x_715; +} +} +} +else +{ +lean_object* x_716; lean_object* x_717; lean_object* x_718; lean_object* x_719; lean_object* x_720; lean_object* x_721; lean_object* x_722; lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_726; lean_object* x_727; lean_object* x_728; lean_dec(x_6); -x_700 = l_Lean_Parser_Term_inaccessible___elambda__1___closed__2; -x_701 = lean_name_eq(x_5, x_700); -if (x_701 == 0) -{ -lean_object* x_702; uint8_t x_703; -x_702 = l_Lean_String_HasQuote___closed__2; -x_703 = lean_name_eq(x_5, x_702); -if (x_703 == 0) -{ -lean_object* x_704; uint8_t x_705; -x_704 = l_Lean_Nat_HasQuote___closed__2; -x_705 = lean_name_eq(x_5, x_704); -if (x_705 == 0) -{ -lean_object* x_706; uint8_t x_707; -x_706 = l_Lean_Parser_Term_char___elambda__1___closed__2; -x_707 = lean_name_eq(x_5, x_706); -if (x_707 == 0) -{ -lean_object* x_708; uint8_t x_709; -x_708 = l_Lean_choiceKind; -x_709 = lean_name_eq(x_5, x_708); lean_dec(x_5); -if (x_709 == 0) -{ -lean_object* x_710; -x_710 = l___private_Lean_Elab_Match_17__throwInvalidPattern___rarg(x_1, x_2, x_689, x_4); +lean_dec(x_4); +lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); -return x_710; -} -else -{ -lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; -lean_dec(x_2); -x_711 = l___private_Lean_Elab_Match_18__collect___main___closed__3; -x_712 = l_Lean_Elab_Term_throwError___rarg(x_1, x_711, x_689, x_4); -lean_dec(x_1); -x_713 = lean_ctor_get(x_712, 0); -lean_inc(x_713); -x_714 = lean_ctor_get(x_712, 1); -lean_inc(x_714); -if (lean_is_exclusive(x_712)) { - lean_ctor_release(x_712, 0); - lean_ctor_release(x_712, 1); - x_715 = x_712; +x_716 = l___private_Lean_Elab_Match_10__mkMVarSyntax(x_507, x_9); +x_717 = lean_ctor_get(x_716, 0); +lean_inc(x_717); +x_718 = lean_ctor_get(x_716, 1); +lean_inc(x_718); +if (lean_is_exclusive(x_716)) { + lean_ctor_release(x_716, 0); + lean_ctor_release(x_716, 1); + x_719 = x_716; } else { - lean_dec_ref(x_712); - x_715 = lean_box(0); + lean_dec_ref(x_716); + x_719 = lean_box(0); } -if (lean_is_scalar(x_715)) { - x_716 = lean_alloc_ctor(1, 2, 0); +x_720 = lean_ctor_get(x_7, 0); +lean_inc(x_720); +x_721 = lean_ctor_get(x_7, 1); +lean_inc(x_721); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + x_722 = x_7; } else { - x_716 = x_715; + lean_dec_ref(x_7); + x_722 = lean_box(0); } -lean_ctor_set(x_716, 0, x_713); -lean_ctor_set(x_716, 1, x_714); -return x_716; -} -} -else -{ -lean_object* x_717; lean_object* x_718; -lean_dec(x_689); -lean_dec(x_5); -x_717 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_717, 0, x_1); -lean_ctor_set(x_717, 1, x_2); -x_718 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_718, 0, x_717); -lean_ctor_set(x_718, 1, x_4); -return x_718; -} -} -else -{ -lean_object* x_719; lean_object* x_720; -lean_dec(x_689); -lean_dec(x_5); -x_719 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_719, 0, x_1); -lean_ctor_set(x_719, 1, x_2); -x_720 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_720, 0, x_719); -lean_ctor_set(x_720, 1, x_4); -return x_720; -} -} -else -{ -lean_object* x_721; lean_object* x_722; -lean_dec(x_689); -lean_dec(x_5); -x_721 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_721, 0, x_1); -lean_ctor_set(x_721, 1, x_2); -x_722 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_722, 0, x_721); -lean_ctor_set(x_722, 1, x_4); -return x_722; -} -} -else -{ -lean_object* x_723; lean_object* x_724; -lean_dec(x_689); -lean_dec(x_5); -x_723 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_723, 0, x_1); -lean_ctor_set(x_723, 1, x_2); -x_724 = lean_alloc_ctor(0, 2, 0); +x_723 = l___private_Lean_Elab_Match_11__getMVarSyntaxMVarId(x_717); +x_724 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_724, 0, x_723); -lean_ctor_set(x_724, 1, x_4); -return x_724; +x_725 = lean_array_push(x_721, x_724); +if (lean_is_scalar(x_722)) { + x_726 = lean_alloc_ctor(0, 2, 0); +} else { + x_726 = x_722; +} +lean_ctor_set(x_726, 0, x_720); +lean_ctor_set(x_726, 1, x_725); +x_727 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_727, 0, x_717); +lean_ctor_set(x_727, 1, x_726); +if (lean_is_scalar(x_719)) { + x_728 = lean_alloc_ctor(0, 2, 0); +} else { + x_728 = x_719; +} +lean_ctor_set(x_728, 0, x_727); +lean_ctor_set(x_728, 1, x_718); +return x_728; } } else { -lean_object* x_725; lean_object* x_726; uint8_t x_727; -lean_dec(x_5); -x_725 = l_Lean_Syntax_inhabited; -x_726 = lean_array_get(x_725, x_6, x_11); +lean_object* x_729; lean_object* x_730; uint8_t x_731; lean_object* x_732; lean_object* x_733; lean_object* x_734; uint8_t x_735; lean_dec(x_6); -x_727 = l_Lean_Syntax_isNone(x_726); -if (x_727 == 0) -{ -lean_object* x_728; lean_object* x_729; lean_object* x_730; uint8_t x_731; -x_728 = lean_unsigned_to_nat(0u); -x_729 = l_Lean_Syntax_getArg(x_726, x_728); -lean_dec(x_726); -x_730 = l_Lean_Parser_Term_explicitUniv___elambda__1___closed__2; -lean_inc(x_729); -x_731 = l_Lean_Syntax_isOfKind(x_729, x_730); +lean_dec(x_4); +lean_dec(x_2); +x_729 = l_Lean_Syntax_inhabited; +x_730 = lean_array_get(x_729, x_5, x_12); +x_731 = l_Lean_Syntax_isNone(x_730); +x_732 = lean_unsigned_to_nat(2u); +x_733 = lean_array_get(x_729, x_5, x_732); +x_734 = l_Lean_Syntax_getArgs(x_733); +lean_dec(x_733); if (x_731 == 0) { -lean_object* x_732; uint8_t x_733; -x_732 = l_Lean_Parser_Term_namedPattern___elambda__1___closed__2; -lean_inc(x_729); -x_733 = l_Lean_Syntax_isOfKind(x_729, x_732); -if (x_733 == 0) -{ -lean_object* x_734; -lean_dec(x_729); -x_734 = l___private_Lean_Elab_Match_17__throwInvalidPattern___rarg(x_1, x_2, x_689, x_4); -lean_dec(x_2); -lean_dec(x_1); -return x_734; +uint8_t x_761; +x_761 = 0; +x_735 = x_761; +goto block_760; } else { -lean_object* x_735; lean_object* x_736; uint8_t x_737; lean_object* x_738; -x_735 = l_Lean_Syntax_getIdOfTermId(x_1); -x_736 = l_Lean_Syntax_getArg(x_729, x_11); -lean_dec(x_729); -x_737 = 0; -lean_inc(x_689); -lean_inc(x_735); -x_738 = l___private_Lean_Elab_Match_13__processVar(x_1, x_735, x_737, x_2, x_689, x_4); -if (lean_obj_tag(x_738) == 0) +uint8_t x_762; +x_762 = 1; +x_735 = x_762; +goto block_760; +} +block_760: { -lean_object* x_739; lean_object* x_740; lean_object* x_741; lean_object* x_742; -x_739 = lean_ctor_get(x_738, 0); +if (x_735 == 0) +{ +lean_object* x_736; lean_object* x_737; lean_object* x_738; lean_object* x_739; lean_object* x_740; lean_object* x_741; +lean_dec(x_734); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_3); +x_736 = l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__12; +x_737 = l_Lean_Elab_Term_throwErrorAt___rarg(x_730, x_736, x_507, x_9); +lean_dec(x_730); +x_738 = lean_ctor_get(x_737, 0); +lean_inc(x_738); +x_739 = lean_ctor_get(x_737, 1); lean_inc(x_739); -x_740 = lean_ctor_get(x_738, 1); -lean_inc(x_740); -lean_dec(x_738); -x_741 = lean_ctor_get(x_739, 1); -lean_inc(x_741); -lean_dec(x_739); -lean_inc(x_689); -x_742 = l___private_Lean_Elab_Match_18__collect___main(x_736, x_741, x_689, x_740); -if (lean_obj_tag(x_742) == 0) +if (lean_is_exclusive(x_737)) { + lean_ctor_release(x_737, 0); + lean_ctor_release(x_737, 1); + x_740 = x_737; +} else { + lean_dec_ref(x_737); + x_740 = lean_box(0); +} +if (lean_is_scalar(x_740)) { + x_741 = lean_alloc_ctor(1, 2, 0); +} else { + x_741 = x_740; +} +lean_ctor_set(x_741, 0, x_738); +lean_ctor_set(x_741, 1, x_739); +return x_741; +} +else { -lean_object* x_743; lean_object* x_744; lean_object* x_745; lean_object* x_746; lean_object* x_747; lean_object* x_748; lean_object* x_749; lean_object* x_750; lean_object* x_751; lean_object* x_752; lean_object* x_753; lean_object* x_754; lean_object* x_755; lean_object* x_756; lean_object* x_757; lean_object* x_758; lean_object* x_759; lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; lean_object* x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; lean_object* x_768; lean_object* x_769; lean_object* x_770; lean_object* x_771; lean_object* x_772; lean_object* x_773; lean_object* x_774; lean_object* x_775; lean_object* x_776; -x_743 = lean_ctor_get(x_742, 0); -lean_inc(x_743); -x_744 = lean_ctor_get(x_742, 1); +lean_object* x_742; lean_object* x_743; +lean_dec(x_730); +x_742 = l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__13; +x_743 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_20__collect___main___spec__1(x_734, x_742, x_7, x_507, x_9); +lean_dec(x_734); +if (lean_obj_tag(x_743) == 0) +{ +lean_object* x_744; lean_object* x_745; lean_object* x_746; lean_object* x_747; lean_object* x_748; lean_object* x_749; lean_object* x_750; lean_object* x_751; lean_object* x_752; lean_object* x_753; lean_object* x_754; lean_object* x_755; +x_744 = lean_ctor_get(x_743, 0); lean_inc(x_744); -lean_dec(x_742); -x_745 = lean_ctor_get(x_743, 0); +x_745 = lean_ctor_get(x_743, 1); lean_inc(x_745); -x_746 = lean_ctor_get(x_743, 1); -lean_inc(x_746); if (lean_is_exclusive(x_743)) { lean_ctor_release(x_743, 0); lean_ctor_release(x_743, 1); - x_747 = x_743; + x_746 = x_743; } else { lean_dec_ref(x_743); - x_747 = lean_box(0); + x_746 = lean_box(0); } -x_748 = l_Lean_Elab_Term_getCurrMacroScope(x_689, x_744); -lean_dec(x_689); -x_749 = lean_ctor_get(x_748, 0); -lean_inc(x_749); -x_750 = lean_ctor_get(x_748, 1); -lean_inc(x_750); -lean_dec(x_748); -x_751 = l_Lean_Elab_Term_getMainModule___rarg(x_750); -x_752 = lean_ctor_get(x_751, 0); -lean_inc(x_752); -x_753 = lean_ctor_get(x_751, 1); -lean_inc(x_753); -if (lean_is_exclusive(x_751)) { - lean_ctor_release(x_751, 0); - lean_ctor_release(x_751, 1); - x_754 = x_751; +x_747 = lean_ctor_get(x_744, 0); +lean_inc(x_747); +x_748 = lean_ctor_get(x_744, 1); +lean_inc(x_748); +if (lean_is_exclusive(x_744)) { + lean_ctor_release(x_744, 0); + lean_ctor_release(x_744, 1); + x_749 = x_744; } else { - lean_dec_ref(x_751); - x_754 = lean_box(0); + lean_dec_ref(x_744); + x_749 = lean_box(0); } -x_755 = l___private_Lean_Elab_Match_18__collect___main___closed__6; -x_756 = l_Lean_addMacroScope(x_752, x_755, x_749); -x_757 = l_Lean_SourceInfo_inhabited___closed__1; -x_758 = l___private_Lean_Elab_Match_18__collect___main___closed__5; -x_759 = l___private_Lean_Elab_Match_18__collect___main___closed__8; -x_760 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_760, 0, x_757); -lean_ctor_set(x_760, 1, x_758); -lean_ctor_set(x_760, 2, x_756); -lean_ctor_set(x_760, 3, x_759); -x_761 = l_Array_empty___closed__1; -x_762 = lean_array_push(x_761, x_760); -x_763 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; -x_764 = lean_array_push(x_762, x_763); -x_765 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_765, 0, x_698); -lean_ctor_set(x_765, 1, x_764); -x_766 = lean_array_push(x_761, x_765); -x_767 = l_Lean_mkTermIdFrom(x_1, x_735); -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - x_768 = x_1; +x_750 = l_Lean_nullKind; +x_751 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_751, 0, x_750); +lean_ctor_set(x_751, 1, x_747); +x_752 = lean_array_set(x_5, x_732, x_751); +x_753 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_753, 0, x_3); +lean_ctor_set(x_753, 1, x_752); +if (lean_is_scalar(x_749)) { + x_754 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_1); - x_768 = lean_box(0); + x_754 = x_749; } -x_769 = lean_array_push(x_761, x_767); -x_770 = lean_array_push(x_769, x_745); -x_771 = l_Lean_nullKind___closed__2; -if (lean_is_scalar(x_768)) { - x_772 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_754, 0, x_753); +lean_ctor_set(x_754, 1, x_748); +if (lean_is_scalar(x_746)) { + x_755 = lean_alloc_ctor(0, 2, 0); } else { - x_772 = x_768; + x_755 = x_746; } -lean_ctor_set(x_772, 0, x_771); -lean_ctor_set(x_772, 1, x_770); -x_773 = lean_array_push(x_766, x_772); -x_774 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_774, 0, x_7); -lean_ctor_set(x_774, 1, x_773); -if (lean_is_scalar(x_747)) { - x_775 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_755, 0, x_754); +lean_ctor_set(x_755, 1, x_745); +return x_755; +} +else +{ +lean_object* x_756; lean_object* x_757; lean_object* x_758; lean_object* x_759; +lean_dec(x_5); +lean_dec(x_3); +x_756 = lean_ctor_get(x_743, 0); +lean_inc(x_756); +x_757 = lean_ctor_get(x_743, 1); +lean_inc(x_757); +if (lean_is_exclusive(x_743)) { + lean_ctor_release(x_743, 0); + lean_ctor_release(x_743, 1); + x_758 = x_743; } else { - x_775 = x_747; + lean_dec_ref(x_743); + x_758 = lean_box(0); } +if (lean_is_scalar(x_758)) { + x_759 = lean_alloc_ctor(1, 2, 0); +} else { + x_759 = x_758; +} +lean_ctor_set(x_759, 0, x_756); +lean_ctor_set(x_759, 1, x_757); +return x_759; +} +} +} +} +} +else +{ +lean_object* x_763; lean_object* x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +x_763 = l_Lean_Syntax_inhabited; +x_764 = lean_array_get(x_763, x_5, x_12); +x_765 = l_Lean_Syntax_getArgs(x_764); +lean_dec(x_764); +x_766 = l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__9; +x_767 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_20__collect___main___spec__1(x_765, x_766, x_7, x_507, x_9); +lean_dec(x_765); +if (lean_obj_tag(x_767) == 0) +{ +lean_object* x_768; lean_object* x_769; lean_object* x_770; lean_object* x_771; lean_object* x_772; lean_object* x_773; lean_object* x_774; lean_object* x_775; lean_object* x_776; lean_object* x_777; lean_object* x_778; lean_object* x_779; +x_768 = lean_ctor_get(x_767, 0); +lean_inc(x_768); +x_769 = lean_ctor_get(x_767, 1); +lean_inc(x_769); +if (lean_is_exclusive(x_767)) { + lean_ctor_release(x_767, 0); + lean_ctor_release(x_767, 1); + x_770 = x_767; +} else { + lean_dec_ref(x_767); + x_770 = lean_box(0); +} +x_771 = lean_ctor_get(x_768, 0); +lean_inc(x_771); +x_772 = lean_ctor_get(x_768, 1); +lean_inc(x_772); +if (lean_is_exclusive(x_768)) { + lean_ctor_release(x_768, 0); + lean_ctor_release(x_768, 1); + x_773 = x_768; +} else { + lean_dec_ref(x_768); + x_773 = lean_box(0); +} +x_774 = l_Lean_nullKind; +x_775 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_775, 0, x_774); -lean_ctor_set(x_775, 1, x_746); -if (lean_is_scalar(x_754)) { - x_776 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_775, 1, x_771); +x_776 = lean_array_set(x_5, x_12, x_775); +x_777 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_777, 0, x_3); +lean_ctor_set(x_777, 1, x_776); +if (lean_is_scalar(x_773)) { + x_778 = lean_alloc_ctor(0, 2, 0); } else { - x_776 = x_754; + x_778 = x_773; } -lean_ctor_set(x_776, 0, x_775); -lean_ctor_set(x_776, 1, x_753); -return x_776; +lean_ctor_set(x_778, 0, x_777); +lean_ctor_set(x_778, 1, x_772); +if (lean_is_scalar(x_770)) { + x_779 = lean_alloc_ctor(0, 2, 0); +} else { + x_779 = x_770; +} +lean_ctor_set(x_779, 0, x_778); +lean_ctor_set(x_779, 1, x_769); +return x_779; } else { -lean_object* x_777; lean_object* x_778; lean_object* x_779; lean_object* x_780; -lean_dec(x_735); -lean_dec(x_689); -lean_dec(x_1); -x_777 = lean_ctor_get(x_742, 0); -lean_inc(x_777); -x_778 = lean_ctor_get(x_742, 1); -lean_inc(x_778); -if (lean_is_exclusive(x_742)) { - lean_ctor_release(x_742, 0); - lean_ctor_release(x_742, 1); - x_779 = x_742; -} else { - lean_dec_ref(x_742); - x_779 = lean_box(0); -} -if (lean_is_scalar(x_779)) { - x_780 = lean_alloc_ctor(1, 2, 0); -} else { - x_780 = x_779; -} -lean_ctor_set(x_780, 0, x_777); -lean_ctor_set(x_780, 1, x_778); -return x_780; -} -} -else -{ -lean_object* x_781; lean_object* x_782; lean_object* x_783; lean_object* x_784; -lean_dec(x_736); -lean_dec(x_735); -lean_dec(x_689); -lean_dec(x_1); -x_781 = lean_ctor_get(x_738, 0); +lean_object* x_780; lean_object* x_781; lean_object* x_782; lean_object* x_783; +lean_dec(x_5); +lean_dec(x_3); +x_780 = lean_ctor_get(x_767, 0); +lean_inc(x_780); +x_781 = lean_ctor_get(x_767, 1); lean_inc(x_781); -x_782 = lean_ctor_get(x_738, 1); -lean_inc(x_782); -if (lean_is_exclusive(x_738)) { - lean_ctor_release(x_738, 0); - lean_ctor_release(x_738, 1); - x_783 = x_738; +if (lean_is_exclusive(x_767)) { + lean_ctor_release(x_767, 0); + lean_ctor_release(x_767, 1); + x_782 = x_767; } else { - lean_dec_ref(x_738); - x_783 = lean_box(0); + lean_dec_ref(x_767); + x_782 = lean_box(0); } -if (lean_is_scalar(x_783)) { - x_784 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_782)) { + x_783 = lean_alloc_ctor(1, 2, 0); } else { - x_784 = x_783; + x_783 = x_782; } -lean_ctor_set(x_784, 0, x_781); -lean_ctor_set(x_784, 1, x_782); -return x_784; +lean_ctor_set(x_783, 0, x_780); +lean_ctor_set(x_783, 1, x_781); +return x_783; } } } else { -uint8_t x_785; lean_object* x_786; -lean_dec(x_729); -x_785 = 1; -lean_inc(x_1); -x_786 = l___private_Lean_Elab_Match_14__processIdAux(x_1, x_785, x_2, x_689, x_4); -if (lean_obj_tag(x_786) == 0) +lean_object* x_784; lean_object* x_785; lean_object* x_786; lean_object* x_787; lean_object* x_788; lean_object* x_789; +lean_dec(x_6); +lean_dec(x_4); +x_784 = l_Lean_Syntax_inhabited; +x_785 = lean_unsigned_to_nat(0u); +x_786 = lean_array_get(x_784, x_5, x_785); +x_787 = lean_array_get(x_784, x_5, x_12); +x_788 = l_Lean_Syntax_getArgs(x_787); +lean_dec(x_787); +lean_inc(x_507); +x_789 = l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__3(x_2, x_788, x_785, x_7, x_507, x_9); +if (lean_obj_tag(x_789) == 0) { -lean_object* x_787; lean_object* x_788; lean_object* x_789; lean_object* x_790; lean_object* x_791; lean_object* x_792; lean_object* x_793; -x_787 = lean_ctor_get(x_786, 0); -lean_inc(x_787); -x_788 = lean_ctor_get(x_786, 1); -lean_inc(x_788); -if (lean_is_exclusive(x_786)) { - lean_ctor_release(x_786, 0); - lean_ctor_release(x_786, 1); - x_789 = x_786; -} else { - lean_dec_ref(x_786); - x_789 = lean_box(0); -} -x_790 = lean_ctor_get(x_787, 1); +lean_object* x_790; lean_object* x_791; lean_object* x_792; uint8_t x_793; lean_object* x_794; +x_790 = lean_ctor_get(x_789, 0); lean_inc(x_790); -if (lean_is_exclusive(x_787)) { - lean_ctor_release(x_787, 0); - lean_ctor_release(x_787, 1); - x_791 = x_787; -} else { - lean_dec_ref(x_787); - x_791 = lean_box(0); -} -if (lean_is_scalar(x_791)) { - x_792 = lean_alloc_ctor(0, 2, 0); -} else { - x_792 = x_791; -} -lean_ctor_set(x_792, 0, x_1); -lean_ctor_set(x_792, 1, x_790); -if (lean_is_scalar(x_789)) { - x_793 = lean_alloc_ctor(0, 2, 0); -} else { - x_793 = x_789; -} -lean_ctor_set(x_793, 0, x_792); -lean_ctor_set(x_793, 1, x_788); -return x_793; -} -else +x_791 = lean_ctor_get(x_789, 1); +lean_inc(x_791); +lean_dec(x_789); +x_792 = lean_ctor_get(x_790, 1); +lean_inc(x_792); +lean_dec(x_790); +x_793 = 1; +lean_inc(x_507); +x_794 = l___private_Lean_Elab_Match_16__processIdAux(x_786, x_793, x_792, x_507, x_791); +if (lean_obj_tag(x_794) == 0) { -lean_object* x_794; lean_object* x_795; lean_object* x_796; lean_object* x_797; -lean_dec(x_1); -x_794 = lean_ctor_get(x_786, 0); -lean_inc(x_794); -x_795 = lean_ctor_get(x_786, 1); +lean_object* x_795; lean_object* x_796; lean_object* x_797; lean_object* x_798; lean_object* x_799; lean_object* x_800; lean_object* x_801; lean_object* x_802; +x_795 = lean_ctor_get(x_794, 0); lean_inc(x_795); -if (lean_is_exclusive(x_786)) { - lean_ctor_release(x_786, 0); - lean_ctor_release(x_786, 1); - x_796 = x_786; -} else { - lean_dec_ref(x_786); - x_796 = lean_box(0); -} -if (lean_is_scalar(x_796)) { - x_797 = lean_alloc_ctor(1, 2, 0); -} else { - x_797 = x_796; -} -lean_ctor_set(x_797, 0, x_794); -lean_ctor_set(x_797, 1, x_795); -return x_797; -} -} -} -else +x_796 = lean_ctor_get(x_794, 1); +lean_inc(x_796); +lean_dec(x_794); +x_797 = lean_ctor_get(x_795, 0); +lean_inc(x_797); +x_798 = lean_ctor_get(x_795, 1); +lean_inc(x_798); +lean_dec(x_795); +x_799 = x_788; +x_800 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4___boxed), 6, 3); +lean_closure_set(x_800, 0, x_797); +lean_closure_set(x_800, 1, x_785); +lean_closure_set(x_800, 2, x_799); +x_801 = x_800; +x_802 = lean_apply_3(x_801, x_798, x_507, x_796); +if (lean_obj_tag(x_802) == 0) { -lean_object* x_798; -lean_dec(x_726); -lean_inc(x_1); -x_798 = l___private_Lean_Elab_Match_16__processId(x_1, x_2, x_689, x_4); -if (lean_obj_tag(x_798) == 0) -{ -lean_object* x_799; lean_object* x_800; lean_object* x_801; lean_object* x_802; lean_object* x_803; lean_object* x_804; lean_object* x_805; -x_799 = lean_ctor_get(x_798, 0); -lean_inc(x_799); -x_800 = lean_ctor_get(x_798, 1); -lean_inc(x_800); -if (lean_is_exclusive(x_798)) { - lean_ctor_release(x_798, 0); - lean_ctor_release(x_798, 1); - x_801 = x_798; +lean_object* x_803; lean_object* x_804; lean_object* x_805; lean_object* x_806; lean_object* x_807; lean_object* x_808; lean_object* x_809; lean_object* x_810; lean_object* x_811; lean_object* x_812; lean_object* x_813; lean_object* x_814; +x_803 = lean_ctor_get(x_802, 0); +lean_inc(x_803); +x_804 = lean_ctor_get(x_802, 1); +lean_inc(x_804); +if (lean_is_exclusive(x_802)) { + lean_ctor_release(x_802, 0); + lean_ctor_release(x_802, 1); + x_805 = x_802; } else { - lean_dec_ref(x_798); - x_801 = lean_box(0); + lean_dec_ref(x_802); + x_805 = lean_box(0); } -x_802 = lean_ctor_get(x_799, 1); -lean_inc(x_802); -if (lean_is_exclusive(x_799)) { - lean_ctor_release(x_799, 0); - lean_ctor_release(x_799, 1); - x_803 = x_799; -} else { - lean_dec_ref(x_799); - x_803 = lean_box(0); -} -if (lean_is_scalar(x_803)) { - x_804 = lean_alloc_ctor(0, 2, 0); -} else { - x_804 = x_803; -} -lean_ctor_set(x_804, 0, x_1); -lean_ctor_set(x_804, 1, x_802); -if (lean_is_scalar(x_801)) { - x_805 = lean_alloc_ctor(0, 2, 0); -} else { - x_805 = x_801; -} -lean_ctor_set(x_805, 0, x_804); -lean_ctor_set(x_805, 1, x_800); -return x_805; -} -else -{ -lean_object* x_806; lean_object* x_807; lean_object* x_808; lean_object* x_809; -lean_dec(x_1); -x_806 = lean_ctor_get(x_798, 0); +x_806 = lean_ctor_get(x_803, 0); lean_inc(x_806); -x_807 = lean_ctor_get(x_798, 1); +x_807 = lean_ctor_get(x_803, 1); lean_inc(x_807); -if (lean_is_exclusive(x_798)) { - lean_ctor_release(x_798, 0); - lean_ctor_release(x_798, 1); - x_808 = x_798; +if (lean_is_exclusive(x_803)) { + lean_ctor_release(x_803, 0); + lean_ctor_release(x_803, 1); + x_808 = x_803; } else { - lean_dec_ref(x_798); + lean_dec_ref(x_803); x_808 = lean_box(0); } +x_809 = l_Lean_nullKind; +x_810 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_810, 0, x_809); +lean_ctor_set(x_810, 1, x_806); +x_811 = lean_array_set(x_5, x_12, x_810); +x_812 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_812, 0, x_3); +lean_ctor_set(x_812, 1, x_811); if (lean_is_scalar(x_808)) { - x_809 = lean_alloc_ctor(1, 2, 0); + x_813 = lean_alloc_ctor(0, 2, 0); } else { - x_809 = x_808; + x_813 = x_808; } -lean_ctor_set(x_809, 0, x_806); -lean_ctor_set(x_809, 1, x_807); -return x_809; +lean_ctor_set(x_813, 0, x_812); +lean_ctor_set(x_813, 1, x_807); +if (lean_is_scalar(x_805)) { + x_814 = lean_alloc_ctor(0, 2, 0); +} else { + x_814 = x_805; } +lean_ctor_set(x_814, 0, x_813); +lean_ctor_set(x_814, 1, x_804); +return x_814; } +else +{ +lean_object* x_815; lean_object* x_816; lean_object* x_817; lean_object* x_818; +lean_dec(x_5); +lean_dec(x_3); +x_815 = lean_ctor_get(x_802, 0); +lean_inc(x_815); +x_816 = lean_ctor_get(x_802, 1); +lean_inc(x_816); +if (lean_is_exclusive(x_802)) { + lean_ctor_release(x_802, 0); + lean_ctor_release(x_802, 1); + x_817 = x_802; +} else { + lean_dec_ref(x_802); + x_817 = lean_box(0); +} +if (lean_is_scalar(x_817)) { + x_818 = lean_alloc_ctor(1, 2, 0); +} else { + x_818 = x_817; +} +lean_ctor_set(x_818, 0, x_815); +lean_ctor_set(x_818, 1, x_816); +return x_818; } } else { -lean_object* x_810; lean_object* x_811; uint8_t x_812; -x_810 = l_Lean_Syntax_inhabited; -x_811 = lean_array_get(x_810, x_6, x_11); -x_812 = l_Lean_Syntax_isNone(x_811); -if (x_812 == 0) -{ -lean_object* x_813; lean_object* x_814; lean_object* x_815; lean_object* x_816; uint8_t x_817; -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - x_813 = x_1; +lean_object* x_819; lean_object* x_820; lean_object* x_821; lean_object* x_822; +lean_dec(x_788); +lean_dec(x_507); +lean_dec(x_5); +lean_dec(x_3); +x_819 = lean_ctor_get(x_794, 0); +lean_inc(x_819); +x_820 = lean_ctor_get(x_794, 1); +lean_inc(x_820); +if (lean_is_exclusive(x_794)) { + lean_ctor_release(x_794, 0); + lean_ctor_release(x_794, 1); + x_821 = x_794; } else { - lean_dec_ref(x_1); - x_813 = lean_box(0); + lean_dec_ref(x_794); + x_821 = lean_box(0); } -x_814 = lean_unsigned_to_nat(0u); -x_815 = l_Lean_Syntax_getArg(x_811, x_814); -x_816 = l_Lean_Syntax_getArg(x_811, x_11); -x_817 = l_Lean_Syntax_isNone(x_816); -if (x_817 == 0) +if (lean_is_scalar(x_821)) { + x_822 = lean_alloc_ctor(1, 2, 0); +} else { + x_822 = x_821; +} +lean_ctor_set(x_822, 0, x_819); +lean_ctor_set(x_822, 1, x_820); +return x_822; +} +} +else { -lean_object* x_818; lean_object* x_819; uint8_t x_820; -x_818 = l_Lean_Syntax_getArg(x_816, x_814); -x_819 = l_Lean_Parser_Term_typeAscription___elambda__1___closed__2; -lean_inc(x_818); -x_820 = l_Lean_Syntax_isOfKind(x_818, x_819); -if (x_820 == 0) -{ -lean_object* x_821; -lean_inc(x_689); -x_821 = l___private_Lean_Elab_Match_18__collect___main(x_815, x_2, x_689, x_4); -if (lean_obj_tag(x_821) == 0) -{ -lean_object* x_822; lean_object* x_823; lean_object* x_824; lean_object* x_825; lean_object* x_826; lean_object* x_827; lean_object* x_828; lean_object* x_829; lean_object* x_830; -x_822 = lean_ctor_get(x_821, 0); -lean_inc(x_822); -x_823 = lean_ctor_get(x_821, 1); +lean_object* x_823; lean_object* x_824; lean_object* x_825; lean_object* x_826; +lean_dec(x_788); +lean_dec(x_786); +lean_dec(x_507); +lean_dec(x_5); +lean_dec(x_3); +x_823 = lean_ctor_get(x_789, 0); lean_inc(x_823); -lean_dec(x_821); -x_824 = lean_ctor_get(x_822, 0); +x_824 = lean_ctor_get(x_789, 1); lean_inc(x_824); -x_825 = lean_ctor_get(x_822, 1); -lean_inc(x_825); -lean_dec(x_822); -x_826 = l_Lean_Syntax_setArg(x_811, x_814, x_824); -x_827 = l_Lean_Syntax_getArg(x_818, x_11); -x_828 = l_Lean_Syntax_getArgs(x_827); -lean_dec(x_827); -x_829 = l___private_Lean_Elab_Match_18__collect___main___closed__9; -x_830 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_18__collect___main___spec__1(x_828, x_829, x_825, x_689, x_823); -lean_dec(x_828); -if (lean_obj_tag(x_830) == 0) +if (lean_is_exclusive(x_789)) { + lean_ctor_release(x_789, 0); + lean_ctor_release(x_789, 1); + x_825 = x_789; +} else { + lean_dec_ref(x_789); + x_825 = lean_box(0); +} +if (lean_is_scalar(x_825)) { + x_826 = lean_alloc_ctor(1, 2, 0); +} else { + x_826 = x_825; +} +lean_ctor_set(x_826, 0, x_823); +lean_ctor_set(x_826, 1, x_824); +return x_826; +} +} +} +} +else { -lean_object* x_831; lean_object* x_832; lean_object* x_833; lean_object* x_834; lean_object* x_835; lean_object* x_836; lean_object* x_837; lean_object* x_838; lean_object* x_839; lean_object* x_840; lean_object* x_841; lean_object* x_842; lean_object* x_843; lean_object* x_844; lean_object* x_845; -x_831 = lean_ctor_get(x_830, 0); -lean_inc(x_831); -x_832 = lean_ctor_get(x_830, 1); +lean_object* x_827; lean_object* x_828; lean_object* x_829; lean_object* x_830; lean_object* x_831; lean_object* x_832; lean_object* x_833; lean_object* x_834; lean_object* x_835; lean_object* x_836; lean_object* x_837; lean_object* x_838; lean_object* x_839; lean_object* x_840; lean_object* x_841; lean_object* x_842; lean_object* x_843; lean_object* x_844; uint8_t x_845; uint8_t x_846; uint8_t x_847; lean_object* x_848; lean_object* x_849; lean_object* x_850; +x_827 = lean_ctor_get(x_9, 0); +x_828 = lean_ctor_get(x_9, 1); +x_829 = lean_ctor_get(x_9, 2); +x_830 = lean_ctor_get(x_9, 3); +x_831 = lean_ctor_get(x_9, 4); +x_832 = lean_ctor_get(x_9, 5); lean_inc(x_832); -if (lean_is_exclusive(x_830)) { - lean_ctor_release(x_830, 0); - lean_ctor_release(x_830, 1); - x_833 = x_830; +lean_inc(x_831); +lean_inc(x_830); +lean_inc(x_829); +lean_inc(x_828); +lean_inc(x_827); +lean_dec(x_9); +x_833 = lean_unsigned_to_nat(1u); +x_834 = lean_nat_add(x_832, x_833); +x_835 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_835, 0, x_827); +lean_ctor_set(x_835, 1, x_828); +lean_ctor_set(x_835, 2, x_829); +lean_ctor_set(x_835, 3, x_830); +lean_ctor_set(x_835, 4, x_831); +lean_ctor_set(x_835, 5, x_834); +x_836 = lean_ctor_get(x_8, 0); +lean_inc(x_836); +x_837 = lean_ctor_get(x_8, 1); +lean_inc(x_837); +x_838 = lean_ctor_get(x_8, 2); +lean_inc(x_838); +x_839 = lean_ctor_get(x_8, 3); +lean_inc(x_839); +x_840 = lean_ctor_get(x_8, 4); +lean_inc(x_840); +x_841 = lean_ctor_get(x_8, 5); +lean_inc(x_841); +x_842 = lean_ctor_get(x_8, 6); +lean_inc(x_842); +x_843 = lean_ctor_get(x_8, 7); +lean_inc(x_843); +x_844 = lean_ctor_get(x_8, 8); +lean_inc(x_844); +x_845 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); +x_846 = lean_ctor_get_uint8(x_8, sizeof(void*)*11 + 1); +x_847 = lean_ctor_get_uint8(x_8, sizeof(void*)*11 + 2); +x_848 = lean_ctor_get(x_8, 10); +lean_inc(x_848); +if (lean_is_exclusive(x_8)) { + lean_ctor_release(x_8, 0); + lean_ctor_release(x_8, 1); + lean_ctor_release(x_8, 2); + lean_ctor_release(x_8, 3); + lean_ctor_release(x_8, 4); + lean_ctor_release(x_8, 5); + lean_ctor_release(x_8, 6); + lean_ctor_release(x_8, 7); + lean_ctor_release(x_8, 8); + lean_ctor_release(x_8, 9); + lean_ctor_release(x_8, 10); + x_849 = x_8; } else { - lean_dec_ref(x_830); - x_833 = lean_box(0); + lean_dec_ref(x_8); + x_849 = lean_box(0); } -x_834 = lean_ctor_get(x_831, 0); -lean_inc(x_834); -x_835 = lean_ctor_get(x_831, 1); -lean_inc(x_835); -if (lean_is_exclusive(x_831)) { - lean_ctor_release(x_831, 0); - lean_ctor_release(x_831, 1); - x_836 = x_831; +if (lean_is_scalar(x_849)) { + x_850 = lean_alloc_ctor(0, 11, 3); } else { - lean_dec_ref(x_831); - x_836 = lean_box(0); + x_850 = x_849; } -x_837 = l_Lean_nullKind; -if (lean_is_scalar(x_813)) { - x_838 = lean_alloc_ctor(1, 2, 0); -} else { - x_838 = x_813; -} -lean_ctor_set(x_838, 0, x_837); -lean_ctor_set(x_838, 1, x_834); -x_839 = l_Lean_Syntax_setArg(x_818, x_11, x_838); -x_840 = l_Lean_Syntax_setArg(x_816, x_814, x_839); -x_841 = l_Lean_Syntax_setArg(x_826, x_11, x_840); -x_842 = lean_array_set(x_6, x_11, x_841); -x_843 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_843, 0, x_5); -lean_ctor_set(x_843, 1, x_842); -if (lean_is_scalar(x_836)) { - x_844 = lean_alloc_ctor(0, 2, 0); -} else { - x_844 = x_836; -} -lean_ctor_set(x_844, 0, x_843); -lean_ctor_set(x_844, 1, x_835); -if (lean_is_scalar(x_833)) { - x_845 = lean_alloc_ctor(0, 2, 0); -} else { - x_845 = x_833; -} -lean_ctor_set(x_845, 0, x_844); -lean_ctor_set(x_845, 1, x_832); -return x_845; -} -else +lean_ctor_set(x_850, 0, x_836); +lean_ctor_set(x_850, 1, x_837); +lean_ctor_set(x_850, 2, x_838); +lean_ctor_set(x_850, 3, x_839); +lean_ctor_set(x_850, 4, x_840); +lean_ctor_set(x_850, 5, x_841); +lean_ctor_set(x_850, 6, x_842); +lean_ctor_set(x_850, 7, x_843); +lean_ctor_set(x_850, 8, x_844); +lean_ctor_set(x_850, 9, x_832); +lean_ctor_set(x_850, 10, x_848); +lean_ctor_set_uint8(x_850, sizeof(void*)*11, x_845); +lean_ctor_set_uint8(x_850, sizeof(void*)*11 + 1, x_846); +lean_ctor_set_uint8(x_850, sizeof(void*)*11 + 2, x_847); +if (x_1 == 0) { -lean_object* x_846; lean_object* x_847; lean_object* x_848; lean_object* x_849; -lean_dec(x_826); -lean_dec(x_818); -lean_dec(x_816); -lean_dec(x_813); +lean_object* x_851; lean_object* x_852; uint8_t x_853; +x_851 = l_Lean_Parser_Term_anonymousCtor___elambda__1___closed__1; +lean_inc(x_2); +x_852 = lean_name_mk_string(x_2, x_851); +x_853 = lean_name_eq(x_3, x_852); +lean_dec(x_852); +if (x_853 == 0) +{ +lean_object* x_854; lean_object* x_855; uint8_t x_856; +x_854 = l_Lean_Parser_Term_structInst___elambda__1___closed__1; +lean_inc(x_2); +x_855 = lean_name_mk_string(x_2, x_854); +x_856 = lean_name_eq(x_3, x_855); +lean_dec(x_855); +if (x_856 == 0) +{ +lean_object* x_857; lean_object* x_858; uint8_t x_859; +x_857 = l_Lean_mkHole___closed__1; +lean_inc(x_2); +x_858 = lean_name_mk_string(x_2, x_857); +x_859 = lean_name_eq(x_3, x_858); +lean_dec(x_858); +if (x_859 == 0) +{ +lean_object* x_860; lean_object* x_861; uint8_t x_862; +x_860 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__1; +lean_inc(x_2); +x_861 = lean_name_mk_string(x_2, x_860); +x_862 = lean_name_eq(x_3, x_861); +lean_dec(x_861); +if (x_862 == 0) +{ +lean_object* x_863; lean_object* x_864; uint8_t x_865; +x_863 = l_Lean_mkTermIdFromIdent___closed__1; +lean_inc(x_2); +x_864 = lean_name_mk_string(x_2, x_863); +x_865 = lean_name_eq(x_3, x_864); +if (x_865 == 0) +{ +lean_object* x_866; lean_object* x_867; uint8_t x_868; +lean_dec(x_864); lean_dec(x_6); lean_dec(x_5); -x_846 = lean_ctor_get(x_830, 0); -lean_inc(x_846); -x_847 = lean_ctor_get(x_830, 1); -lean_inc(x_847); -if (lean_is_exclusive(x_830)) { - lean_ctor_release(x_830, 0); - lean_ctor_release(x_830, 1); - x_848 = x_830; -} else { - lean_dec_ref(x_830); - x_848 = lean_box(0); -} -if (lean_is_scalar(x_848)) { - x_849 = lean_alloc_ctor(1, 2, 0); -} else { - x_849 = x_848; -} -lean_ctor_set(x_849, 0, x_846); -lean_ctor_set(x_849, 1, x_847); -return x_849; -} +x_866 = l_Lean_Parser_Term_inaccessible___elambda__1___closed__1; +lean_inc(x_2); +x_867 = lean_name_mk_string(x_2, x_866); +x_868 = lean_name_eq(x_3, x_867); +lean_dec(x_867); +if (x_868 == 0) +{ +lean_object* x_869; lean_object* x_870; uint8_t x_871; +x_869 = l_Lean_String_HasQuote___closed__1; +lean_inc(x_2); +x_870 = lean_name_mk_string(x_2, x_869); +x_871 = lean_name_eq(x_3, x_870); +lean_dec(x_870); +if (x_871 == 0) +{ +lean_object* x_872; lean_object* x_873; uint8_t x_874; +x_872 = l_Lean_Nat_HasQuote___closed__1; +lean_inc(x_2); +x_873 = lean_name_mk_string(x_2, x_872); +x_874 = lean_name_eq(x_3, x_873); +lean_dec(x_873); +if (x_874 == 0) +{ +lean_object* x_875; lean_object* x_876; uint8_t x_877; +x_875 = l_Lean_Parser_Term_char___elambda__1___closed__1; +x_876 = lean_name_mk_string(x_2, x_875); +x_877 = lean_name_eq(x_3, x_876); +lean_dec(x_876); +if (x_877 == 0) +{ +lean_object* x_878; uint8_t x_879; +lean_dec(x_4); +x_878 = l_Lean_choiceKind; +x_879 = lean_name_eq(x_3, x_878); +lean_dec(x_3); +if (x_879 == 0) +{ +lean_object* x_880; +x_880 = l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg(x_7, x_850, x_835); +lean_dec(x_7); +return x_880; } else { -lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; -lean_dec(x_818); -lean_dec(x_816); -lean_dec(x_813); -lean_dec(x_811); -lean_dec(x_689); -lean_dec(x_6); -lean_dec(x_5); -x_850 = lean_ctor_get(x_821, 0); -lean_inc(x_850); -x_851 = lean_ctor_get(x_821, 1); -lean_inc(x_851); -if (lean_is_exclusive(x_821)) { - lean_ctor_release(x_821, 0); - lean_ctor_release(x_821, 1); - x_852 = x_821; -} else { - lean_dec_ref(x_821); - x_852 = lean_box(0); -} -if (lean_is_scalar(x_852)) { - x_853 = lean_alloc_ctor(1, 2, 0); -} else { - x_853 = x_852; -} -lean_ctor_set(x_853, 0, x_850); -lean_ctor_set(x_853, 1, x_851); -return x_853; -} -} -else -{ -lean_object* x_854; -lean_dec(x_818); -lean_dec(x_816); -x_854 = l___private_Lean_Elab_Match_18__collect___main(x_815, x_2, x_689, x_4); -if (lean_obj_tag(x_854) == 0) -{ -lean_object* x_855; lean_object* x_856; lean_object* x_857; lean_object* x_858; lean_object* x_859; lean_object* x_860; lean_object* x_861; lean_object* x_862; lean_object* x_863; lean_object* x_864; lean_object* x_865; -x_855 = lean_ctor_get(x_854, 0); -lean_inc(x_855); -x_856 = lean_ctor_get(x_854, 1); -lean_inc(x_856); -if (lean_is_exclusive(x_854)) { - lean_ctor_release(x_854, 0); - lean_ctor_release(x_854, 1); - x_857 = x_854; -} else { - lean_dec_ref(x_854); - x_857 = lean_box(0); -} -x_858 = lean_ctor_get(x_855, 0); -lean_inc(x_858); -x_859 = lean_ctor_get(x_855, 1); -lean_inc(x_859); -if (lean_is_exclusive(x_855)) { - lean_ctor_release(x_855, 0); - lean_ctor_release(x_855, 1); - x_860 = x_855; -} else { - lean_dec_ref(x_855); - x_860 = lean_box(0); -} -x_861 = l_Lean_Syntax_setArg(x_811, x_814, x_858); -x_862 = lean_array_set(x_6, x_11, x_861); -if (lean_is_scalar(x_813)) { - x_863 = lean_alloc_ctor(1, 2, 0); -} else { - x_863 = x_813; -} -lean_ctor_set(x_863, 0, x_5); -lean_ctor_set(x_863, 1, x_862); -if (lean_is_scalar(x_860)) { - x_864 = lean_alloc_ctor(0, 2, 0); -} else { - x_864 = x_860; -} -lean_ctor_set(x_864, 0, x_863); -lean_ctor_set(x_864, 1, x_859); -if (lean_is_scalar(x_857)) { - x_865 = lean_alloc_ctor(0, 2, 0); -} else { - x_865 = x_857; -} -lean_ctor_set(x_865, 0, x_864); -lean_ctor_set(x_865, 1, x_856); -return x_865; -} -else -{ -lean_object* x_866; lean_object* x_867; lean_object* x_868; lean_object* x_869; -lean_dec(x_813); -lean_dec(x_811); -lean_dec(x_6); -lean_dec(x_5); -x_866 = lean_ctor_get(x_854, 0); -lean_inc(x_866); -x_867 = lean_ctor_get(x_854, 1); -lean_inc(x_867); -if (lean_is_exclusive(x_854)) { - lean_ctor_release(x_854, 0); - lean_ctor_release(x_854, 1); - x_868 = x_854; -} else { - lean_dec_ref(x_854); - x_868 = lean_box(0); -} -if (lean_is_scalar(x_868)) { - x_869 = lean_alloc_ctor(1, 2, 0); -} else { - x_869 = x_868; -} -lean_ctor_set(x_869, 0, x_866); -lean_ctor_set(x_869, 1, x_867); -return x_869; -} -} -} -else -{ -lean_object* x_870; -lean_dec(x_816); -x_870 = l___private_Lean_Elab_Match_18__collect___main(x_815, x_2, x_689, x_4); -if (lean_obj_tag(x_870) == 0) -{ -lean_object* x_871; lean_object* x_872; lean_object* x_873; lean_object* x_874; lean_object* x_875; lean_object* x_876; lean_object* x_877; lean_object* x_878; lean_object* x_879; lean_object* x_880; lean_object* x_881; -x_871 = lean_ctor_get(x_870, 0); -lean_inc(x_871); -x_872 = lean_ctor_get(x_870, 1); -lean_inc(x_872); -if (lean_is_exclusive(x_870)) { - lean_ctor_release(x_870, 0); - lean_ctor_release(x_870, 1); - x_873 = x_870; -} else { - lean_dec_ref(x_870); - x_873 = lean_box(0); -} -x_874 = lean_ctor_get(x_871, 0); -lean_inc(x_874); -x_875 = lean_ctor_get(x_871, 1); -lean_inc(x_875); -if (lean_is_exclusive(x_871)) { - lean_ctor_release(x_871, 0); - lean_ctor_release(x_871, 1); - x_876 = x_871; -} else { - lean_dec_ref(x_871); - x_876 = lean_box(0); -} -x_877 = l_Lean_Syntax_setArg(x_811, x_814, x_874); -x_878 = lean_array_set(x_6, x_11, x_877); -if (lean_is_scalar(x_813)) { - x_879 = lean_alloc_ctor(1, 2, 0); -} else { - x_879 = x_813; -} -lean_ctor_set(x_879, 0, x_5); -lean_ctor_set(x_879, 1, x_878); -if (lean_is_scalar(x_876)) { - x_880 = lean_alloc_ctor(0, 2, 0); -} else { - x_880 = x_876; -} -lean_ctor_set(x_880, 0, x_879); -lean_ctor_set(x_880, 1, x_875); -if (lean_is_scalar(x_873)) { - x_881 = lean_alloc_ctor(0, 2, 0); -} else { - x_881 = x_873; -} -lean_ctor_set(x_881, 0, x_880); -lean_ctor_set(x_881, 1, x_872); -return x_881; -} -else -{ -lean_object* x_882; lean_object* x_883; lean_object* x_884; lean_object* x_885; -lean_dec(x_813); -lean_dec(x_811); -lean_dec(x_6); -lean_dec(x_5); -x_882 = lean_ctor_get(x_870, 0); -lean_inc(x_882); -x_883 = lean_ctor_get(x_870, 1); +lean_object* x_881; lean_object* x_882; lean_object* x_883; lean_object* x_884; lean_object* x_885; lean_object* x_886; +lean_dec(x_7); +x_881 = l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__3; +x_882 = l_Lean_Elab_Term_throwError___rarg(x_881, x_850, x_835); +x_883 = lean_ctor_get(x_882, 0); lean_inc(x_883); -if (lean_is_exclusive(x_870)) { - lean_ctor_release(x_870, 0); - lean_ctor_release(x_870, 1); - x_884 = x_870; +x_884 = lean_ctor_get(x_882, 1); +lean_inc(x_884); +if (lean_is_exclusive(x_882)) { + lean_ctor_release(x_882, 0); + lean_ctor_release(x_882, 1); + x_885 = x_882; } else { - lean_dec_ref(x_870); - x_884 = lean_box(0); + lean_dec_ref(x_882); + x_885 = lean_box(0); } -if (lean_is_scalar(x_884)) { - x_885 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_885)) { + x_886 = lean_alloc_ctor(1, 2, 0); } else { - x_885 = x_884; -} -lean_ctor_set(x_885, 0, x_882); -lean_ctor_set(x_885, 1, x_883); -return x_885; + x_886 = x_885; } +lean_ctor_set(x_886, 0, x_883); +lean_ctor_set(x_886, 1, x_884); +return x_886; } } else { -lean_object* x_886; lean_object* x_887; -lean_dec(x_811); -lean_dec(x_689); -lean_dec(x_6); -lean_dec(x_5); -x_886 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_886, 0, x_1); -lean_ctor_set(x_886, 1, x_2); +lean_object* x_887; lean_object* x_888; +lean_dec(x_850); +lean_dec(x_3); x_887 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_887, 0, x_886); -lean_ctor_set(x_887, 1, x_4); -return x_887; -} -} -} -else -{ -lean_object* x_888; lean_object* x_889; lean_object* x_890; lean_object* x_891; lean_object* x_892; lean_object* x_893; lean_object* x_894; lean_object* x_895; lean_object* x_896; lean_object* x_897; lean_object* x_898; lean_object* x_899; lean_object* x_900; lean_object* x_901; lean_object* x_902; lean_object* x_903; lean_object* x_904; lean_object* x_905; lean_object* x_906; lean_object* x_907; lean_object* x_908; lean_object* x_909; lean_object* x_910; lean_object* x_911; lean_object* x_912; lean_object* x_913; lean_object* x_914; lean_object* x_915; -lean_dec(x_6); -lean_dec(x_5); -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - x_888 = x_1; -} else { - lean_dec_ref(x_1); - x_888 = lean_box(0); -} -x_889 = l_Lean_Elab_Term_getCurrMacroScope(x_689, x_4); -lean_dec(x_689); -x_890 = lean_ctor_get(x_889, 0); -lean_inc(x_890); -x_891 = lean_ctor_get(x_889, 1); -lean_inc(x_891); -lean_dec(x_889); -x_892 = l_Lean_Elab_Term_getMainModule___rarg(x_891); -x_893 = lean_ctor_get(x_892, 0); -lean_inc(x_893); -x_894 = lean_ctor_get(x_892, 1); -lean_inc(x_894); -if (lean_is_exclusive(x_892)) { - lean_ctor_release(x_892, 0); - lean_ctor_release(x_892, 1); - x_895 = x_892; -} else { - lean_dec_ref(x_892); - x_895 = lean_box(0); -} -x_896 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; -x_897 = l_Lean_addMacroScope(x_893, x_896, x_890); -x_898 = lean_box(0); -x_899 = l_Lean_SourceInfo_inhabited___closed__1; -x_900 = l___private_Lean_Elab_Match_18__collect___main___closed__13; -x_901 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_901, 0, x_899); -lean_ctor_set(x_901, 1, x_900); -lean_ctor_set(x_901, 2, x_897); -lean_ctor_set(x_901, 3, x_898); -x_902 = l___private_Lean_Elab_Match_18__collect___main___closed__11; -x_903 = lean_array_push(x_902, x_901); -x_904 = l_Lean_Parser_Term_namedHole___elambda__1___closed__2; -if (lean_is_scalar(x_888)) { - x_905 = lean_alloc_ctor(1, 2, 0); -} else { - x_905 = x_888; -} -lean_ctor_set(x_905, 0, x_904); -lean_ctor_set(x_905, 1, x_903); -x_906 = lean_ctor_get(x_2, 0); -lean_inc(x_906); -x_907 = lean_ctor_get(x_2, 1); -lean_inc(x_907); -if (lean_is_exclusive(x_2)) { - lean_ctor_release(x_2, 0); - lean_ctor_release(x_2, 1); - x_908 = x_2; -} else { - lean_dec_ref(x_2); - x_908 = lean_box(0); -} -x_909 = l_Lean_Syntax_getArg(x_905, x_11); -x_910 = l_Lean_Syntax_getId(x_909); -lean_dec(x_909); -x_911 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_911, 0, x_910); -x_912 = lean_array_push(x_907, x_911); -if (lean_is_scalar(x_908)) { - x_913 = lean_alloc_ctor(0, 2, 0); -} else { - x_913 = x_908; -} -lean_ctor_set(x_913, 0, x_906); -lean_ctor_set(x_913, 1, x_912); -x_914 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_914, 0, x_905); -lean_ctor_set(x_914, 1, x_913); -if (lean_is_scalar(x_895)) { - x_915 = lean_alloc_ctor(0, 2, 0); -} else { - x_915 = x_895; -} -lean_ctor_set(x_915, 0, x_914); -lean_ctor_set(x_915, 1, x_894); -return x_915; +lean_ctor_set(x_887, 0, x_4); +lean_ctor_set(x_887, 1, x_7); +x_888 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_888, 0, x_887); +lean_ctor_set(x_888, 1, x_835); +return x_888; } } else { -lean_object* x_916; lean_object* x_917; lean_object* x_918; uint8_t x_919; lean_object* x_920; lean_object* x_921; lean_object* x_922; uint8_t x_923; -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - x_916 = x_1; -} else { - lean_dec_ref(x_1); - x_916 = lean_box(0); -} -x_917 = l_Lean_Syntax_inhabited; -x_918 = lean_array_get(x_917, x_6, x_11); -x_919 = l_Lean_Syntax_isNone(x_918); -x_920 = lean_unsigned_to_nat(2u); -x_921 = lean_array_get(x_917, x_6, x_920); -x_922 = l_Lean_Syntax_getArgs(x_921); -lean_dec(x_921); -if (x_919 == 0) -{ -uint8_t x_949; -x_949 = 0; -x_923 = x_949; -goto block_948; -} -else -{ -uint8_t x_950; -x_950 = 1; -x_923 = x_950; -goto block_948; -} -block_948: -{ -if (x_923 == 0) -{ -lean_object* x_924; lean_object* x_925; lean_object* x_926; lean_object* x_927; lean_object* x_928; lean_object* x_929; -lean_dec(x_922); -lean_dec(x_916); -lean_dec(x_6); -lean_dec(x_5); +lean_object* x_889; lean_object* x_890; +lean_dec(x_850); +lean_dec(x_3); lean_dec(x_2); -x_924 = l___private_Lean_Elab_Match_18__collect___main___closed__16; -x_925 = l_Lean_Elab_Term_throwError___rarg(x_918, x_924, x_689, x_4); -lean_dec(x_918); -x_926 = lean_ctor_get(x_925, 0); -lean_inc(x_926); -x_927 = lean_ctor_get(x_925, 1); -lean_inc(x_927); -if (lean_is_exclusive(x_925)) { - lean_ctor_release(x_925, 0); - lean_ctor_release(x_925, 1); - x_928 = x_925; -} else { - lean_dec_ref(x_925); - x_928 = lean_box(0); +x_889 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_889, 0, x_4); +lean_ctor_set(x_889, 1, x_7); +x_890 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_890, 0, x_889); +lean_ctor_set(x_890, 1, x_835); +return x_890; } -if (lean_is_scalar(x_928)) { - x_929 = lean_alloc_ctor(1, 2, 0); -} else { - x_929 = x_928; -} -lean_ctor_set(x_929, 0, x_926); -lean_ctor_set(x_929, 1, x_927); -return x_929; } else { -lean_object* x_930; lean_object* x_931; -lean_dec(x_918); -x_930 = l___private_Lean_Elab_Match_18__collect___main___closed__17; -x_931 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_18__collect___main___spec__1(x_922, x_930, x_2, x_689, x_4); -lean_dec(x_922); -if (lean_obj_tag(x_931) == 0) -{ -lean_object* x_932; lean_object* x_933; lean_object* x_934; lean_object* x_935; lean_object* x_936; lean_object* x_937; lean_object* x_938; lean_object* x_939; lean_object* x_940; lean_object* x_941; lean_object* x_942; lean_object* x_943; -x_932 = lean_ctor_get(x_931, 0); -lean_inc(x_932); -x_933 = lean_ctor_get(x_931, 1); -lean_inc(x_933); -if (lean_is_exclusive(x_931)) { - lean_ctor_release(x_931, 0); - lean_ctor_release(x_931, 1); - x_934 = x_931; -} else { - lean_dec_ref(x_931); - x_934 = lean_box(0); +lean_object* x_891; lean_object* x_892; +lean_dec(x_850); +lean_dec(x_3); +lean_dec(x_2); +x_891 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_891, 0, x_4); +lean_ctor_set(x_891, 1, x_7); +x_892 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_892, 0, x_891); +lean_ctor_set(x_892, 1, x_835); +return x_892; } -x_935 = lean_ctor_get(x_932, 0); -lean_inc(x_935); -x_936 = lean_ctor_get(x_932, 1); -lean_inc(x_936); -if (lean_is_exclusive(x_932)) { - lean_ctor_release(x_932, 0); - lean_ctor_release(x_932, 1); - x_937 = x_932; -} else { - lean_dec_ref(x_932); - x_937 = lean_box(0); -} -x_938 = l_Lean_nullKind; -if (lean_is_scalar(x_916)) { - x_939 = lean_alloc_ctor(1, 2, 0); -} else { - x_939 = x_916; -} -lean_ctor_set(x_939, 0, x_938); -lean_ctor_set(x_939, 1, x_935); -x_940 = lean_array_set(x_6, x_920, x_939); -x_941 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_941, 0, x_5); -lean_ctor_set(x_941, 1, x_940); -if (lean_is_scalar(x_937)) { - x_942 = lean_alloc_ctor(0, 2, 0); -} else { - x_942 = x_937; -} -lean_ctor_set(x_942, 0, x_941); -lean_ctor_set(x_942, 1, x_936); -if (lean_is_scalar(x_934)) { - x_943 = lean_alloc_ctor(0, 2, 0); -} else { - x_943 = x_934; -} -lean_ctor_set(x_943, 0, x_942); -lean_ctor_set(x_943, 1, x_933); -return x_943; } else { -lean_object* x_944; lean_object* x_945; lean_object* x_946; lean_object* x_947; -lean_dec(x_916); -lean_dec(x_6); +lean_object* x_893; lean_object* x_894; +lean_dec(x_850); +lean_dec(x_3); +lean_dec(x_2); +x_893 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_893, 0, x_4); +lean_ctor_set(x_893, 1, x_7); +x_894 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_894, 0, x_893); +lean_ctor_set(x_894, 1, x_835); +return x_894; +} +} +else +{ +lean_object* x_895; lean_object* x_896; uint8_t x_897; +lean_dec(x_3); +x_895 = l_Lean_Syntax_inhabited; +x_896 = lean_array_get(x_895, x_5, x_833); lean_dec(x_5); -x_944 = lean_ctor_get(x_931, 0); -lean_inc(x_944); -x_945 = lean_ctor_get(x_931, 1); -lean_inc(x_945); -if (lean_is_exclusive(x_931)) { - lean_ctor_release(x_931, 0); - lean_ctor_release(x_931, 1); - x_946 = x_931; -} else { - lean_dec_ref(x_931); - x_946 = lean_box(0); +x_897 = l_Lean_Syntax_isNone(x_896); +if (x_897 == 0) +{ +lean_object* x_898; lean_object* x_899; lean_object* x_900; lean_object* x_901; uint8_t x_902; +x_898 = lean_unsigned_to_nat(0u); +x_899 = l_Lean_Syntax_getArg(x_896, x_898); +lean_dec(x_896); +x_900 = l_Lean_Parser_Term_explicitUniv___elambda__1___closed__1; +lean_inc(x_2); +x_901 = lean_name_mk_string(x_2, x_900); +lean_inc(x_899); +x_902 = l_Lean_Syntax_isOfKind(x_899, x_901); +lean_dec(x_901); +if (x_902 == 0) +{ +lean_object* x_903; lean_object* x_904; uint8_t x_905; +x_903 = l_Lean_Parser_Term_namedPattern___elambda__1___closed__1; +x_904 = lean_name_mk_string(x_2, x_903); +lean_inc(x_899); +x_905 = l_Lean_Syntax_isOfKind(x_899, x_904); +lean_dec(x_904); +if (x_905 == 0) +{ +lean_object* x_906; +lean_dec(x_899); +lean_dec(x_864); +lean_dec(x_6); +lean_dec(x_4); +x_906 = l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg(x_7, x_850, x_835); +lean_dec(x_7); +return x_906; } -if (lean_is_scalar(x_946)) { - x_947 = lean_alloc_ctor(1, 2, 0); +else +{ +lean_object* x_907; lean_object* x_908; uint8_t x_909; lean_object* x_910; +x_907 = l_Lean_Syntax_getIdOfTermId(x_4); +x_908 = l_Lean_Syntax_getArg(x_899, x_833); +lean_dec(x_899); +x_909 = 0; +lean_inc(x_850); +lean_inc(x_907); +x_910 = l___private_Lean_Elab_Match_15__processVar(x_907, x_909, x_7, x_850, x_835); +if (lean_obj_tag(x_910) == 0) +{ +lean_object* x_911; lean_object* x_912; lean_object* x_913; lean_object* x_914; +x_911 = lean_ctor_get(x_910, 0); +lean_inc(x_911); +x_912 = lean_ctor_get(x_910, 1); +lean_inc(x_912); +lean_dec(x_910); +x_913 = lean_ctor_get(x_911, 1); +lean_inc(x_913); +lean_dec(x_911); +lean_inc(x_850); +x_914 = l___private_Lean_Elab_Match_20__collect___main(x_908, x_913, x_850, x_912); +if (lean_obj_tag(x_914) == 0) +{ +lean_object* x_915; lean_object* x_916; lean_object* x_917; lean_object* x_918; lean_object* x_919; lean_object* x_920; lean_object* x_921; lean_object* x_922; lean_object* x_923; lean_object* x_924; lean_object* x_925; lean_object* x_926; lean_object* x_927; lean_object* x_928; lean_object* x_929; lean_object* x_930; lean_object* x_931; lean_object* x_932; lean_object* x_933; lean_object* x_934; lean_object* x_935; lean_object* x_936; lean_object* x_937; lean_object* x_938; lean_object* x_939; lean_object* x_940; lean_object* x_941; lean_object* x_942; lean_object* x_943; lean_object* x_944; lean_object* x_945; lean_object* x_946; lean_object* x_947; +x_915 = lean_ctor_get(x_914, 0); +lean_inc(x_915); +x_916 = lean_ctor_get(x_914, 1); +lean_inc(x_916); +lean_dec(x_914); +x_917 = lean_ctor_get(x_915, 0); +lean_inc(x_917); +x_918 = lean_ctor_get(x_915, 1); +lean_inc(x_918); +if (lean_is_exclusive(x_915)) { + lean_ctor_release(x_915, 0); + lean_ctor_release(x_915, 1); + x_919 = x_915; } else { - x_947 = x_946; + lean_dec_ref(x_915); + x_919 = lean_box(0); } -lean_ctor_set(x_947, 0, x_944); -lean_ctor_set(x_947, 1, x_945); +x_920 = l_Lean_Elab_Term_getCurrMacroScope(x_850, x_916); +lean_dec(x_850); +x_921 = lean_ctor_get(x_920, 0); +lean_inc(x_921); +x_922 = lean_ctor_get(x_920, 1); +lean_inc(x_922); +lean_dec(x_920); +x_923 = l_Lean_Elab_Term_getMainModule___rarg(x_922); +x_924 = lean_ctor_get(x_923, 0); +lean_inc(x_924); +x_925 = lean_ctor_get(x_923, 1); +lean_inc(x_925); +if (lean_is_exclusive(x_923)) { + lean_ctor_release(x_923, 0); + lean_ctor_release(x_923, 1); + x_926 = x_923; +} else { + lean_dec_ref(x_923); + x_926 = lean_box(0); +} +x_927 = l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__6; +x_928 = l_Lean_addMacroScope(x_924, x_927, x_921); +x_929 = l_Lean_SourceInfo_inhabited___closed__1; +x_930 = l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__5; +x_931 = l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__8; +x_932 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_932, 0, x_929); +lean_ctor_set(x_932, 1, x_930); +lean_ctor_set(x_932, 2, x_928); +lean_ctor_set(x_932, 3, x_931); +x_933 = l_Array_empty___closed__1; +x_934 = lean_array_push(x_933, x_932); +x_935 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; +x_936 = lean_array_push(x_934, x_935); +x_937 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_937, 0, x_864); +lean_ctor_set(x_937, 1, x_936); +x_938 = lean_array_push(x_933, x_937); +x_939 = l_Lean_mkTermIdFrom(x_4, x_907); +lean_dec(x_4); +x_940 = lean_array_push(x_933, x_939); +x_941 = lean_array_push(x_940, x_917); +x_942 = l_Lean_nullKind___closed__2; +x_943 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_943, 0, x_942); +lean_ctor_set(x_943, 1, x_941); +x_944 = lean_array_push(x_938, x_943); +x_945 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_945, 0, x_6); +lean_ctor_set(x_945, 1, x_944); +if (lean_is_scalar(x_919)) { + x_946 = lean_alloc_ctor(0, 2, 0); +} else { + x_946 = x_919; +} +lean_ctor_set(x_946, 0, x_945); +lean_ctor_set(x_946, 1, x_918); +if (lean_is_scalar(x_926)) { + x_947 = lean_alloc_ctor(0, 2, 0); +} else { + x_947 = x_926; +} +lean_ctor_set(x_947, 0, x_946); +lean_ctor_set(x_947, 1, x_925); return x_947; } +else +{ +lean_object* x_948; lean_object* x_949; lean_object* x_950; lean_object* x_951; +lean_dec(x_907); +lean_dec(x_864); +lean_dec(x_850); +lean_dec(x_6); +lean_dec(x_4); +x_948 = lean_ctor_get(x_914, 0); +lean_inc(x_948); +x_949 = lean_ctor_get(x_914, 1); +lean_inc(x_949); +if (lean_is_exclusive(x_914)) { + lean_ctor_release(x_914, 0); + lean_ctor_release(x_914, 1); + x_950 = x_914; +} else { + lean_dec_ref(x_914); + x_950 = lean_box(0); } +if (lean_is_scalar(x_950)) { + x_951 = lean_alloc_ctor(1, 2, 0); +} else { + x_951 = x_950; +} +lean_ctor_set(x_951, 0, x_948); +lean_ctor_set(x_951, 1, x_949); +return x_951; +} +} +else +{ +lean_object* x_952; lean_object* x_953; lean_object* x_954; lean_object* x_955; +lean_dec(x_908); +lean_dec(x_907); +lean_dec(x_864); +lean_dec(x_850); +lean_dec(x_6); +lean_dec(x_4); +x_952 = lean_ctor_get(x_910, 0); +lean_inc(x_952); +x_953 = lean_ctor_get(x_910, 1); +lean_inc(x_953); +if (lean_is_exclusive(x_910)) { + lean_ctor_release(x_910, 0); + lean_ctor_release(x_910, 1); + x_954 = x_910; +} else { + lean_dec_ref(x_910); + x_954 = lean_box(0); +} +if (lean_is_scalar(x_954)) { + x_955 = lean_alloc_ctor(1, 2, 0); +} else { + x_955 = x_954; +} +lean_ctor_set(x_955, 0, x_952); +lean_ctor_set(x_955, 1, x_953); +return x_955; } } } else { -lean_object* x_951; lean_object* x_952; lean_object* x_953; lean_object* x_954; lean_object* x_955; lean_object* x_956; -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - x_951 = x_1; -} else { - lean_dec_ref(x_1); - x_951 = lean_box(0); -} -x_952 = l_Lean_Syntax_inhabited; -x_953 = lean_array_get(x_952, x_6, x_11); -x_954 = l_Lean_Syntax_getArgs(x_953); -lean_dec(x_953); -x_955 = l___private_Lean_Elab_Match_18__collect___main___closed__9; -x_956 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_18__collect___main___spec__1(x_954, x_955, x_2, x_689, x_4); -lean_dec(x_954); -if (lean_obj_tag(x_956) == 0) +uint8_t x_956; lean_object* x_957; +lean_dec(x_899); +lean_dec(x_864); +lean_dec(x_6); +lean_dec(x_2); +x_956 = 1; +lean_inc(x_4); +x_957 = l___private_Lean_Elab_Match_16__processIdAux(x_4, x_956, x_7, x_850, x_835); +if (lean_obj_tag(x_957) == 0) { -lean_object* x_957; lean_object* x_958; lean_object* x_959; lean_object* x_960; lean_object* x_961; lean_object* x_962; lean_object* x_963; lean_object* x_964; lean_object* x_965; lean_object* x_966; lean_object* x_967; lean_object* x_968; -x_957 = lean_ctor_get(x_956, 0); -lean_inc(x_957); -x_958 = lean_ctor_get(x_956, 1); +lean_object* x_958; lean_object* x_959; lean_object* x_960; lean_object* x_961; lean_object* x_962; lean_object* x_963; lean_object* x_964; +x_958 = lean_ctor_get(x_957, 0); lean_inc(x_958); -if (lean_is_exclusive(x_956)) { - lean_ctor_release(x_956, 0); - lean_ctor_release(x_956, 1); - x_959 = x_956; -} else { - lean_dec_ref(x_956); - x_959 = lean_box(0); -} -x_960 = lean_ctor_get(x_957, 0); -lean_inc(x_960); -x_961 = lean_ctor_get(x_957, 1); -lean_inc(x_961); +x_959 = lean_ctor_get(x_957, 1); +lean_inc(x_959); if (lean_is_exclusive(x_957)) { lean_ctor_release(x_957, 0); lean_ctor_release(x_957, 1); - x_962 = x_957; + x_960 = x_957; } else { lean_dec_ref(x_957); + x_960 = lean_box(0); +} +x_961 = lean_ctor_get(x_958, 1); +lean_inc(x_961); +if (lean_is_exclusive(x_958)) { + lean_ctor_release(x_958, 0); + lean_ctor_release(x_958, 1); + x_962 = x_958; +} else { + lean_dec_ref(x_958); x_962 = lean_box(0); } -x_963 = l_Lean_nullKind; -if (lean_is_scalar(x_951)) { - x_964 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_962)) { + x_963 = lean_alloc_ctor(0, 2, 0); } else { - x_964 = x_951; + x_963 = x_962; +} +lean_ctor_set(x_963, 0, x_4); +lean_ctor_set(x_963, 1, x_961); +if (lean_is_scalar(x_960)) { + x_964 = lean_alloc_ctor(0, 2, 0); +} else { + x_964 = x_960; } lean_ctor_set(x_964, 0, x_963); -lean_ctor_set(x_964, 1, x_960); -x_965 = lean_array_set(x_6, x_11, x_964); -x_966 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_966, 0, x_5); -lean_ctor_set(x_966, 1, x_965); -if (lean_is_scalar(x_962)) { - x_967 = lean_alloc_ctor(0, 2, 0); -} else { - x_967 = x_962; +lean_ctor_set(x_964, 1, x_959); +return x_964; } -lean_ctor_set(x_967, 0, x_966); -lean_ctor_set(x_967, 1, x_961); -if (lean_is_scalar(x_959)) { - x_968 = lean_alloc_ctor(0, 2, 0); +else +{ +lean_object* x_965; lean_object* x_966; lean_object* x_967; lean_object* x_968; +lean_dec(x_4); +x_965 = lean_ctor_get(x_957, 0); +lean_inc(x_965); +x_966 = lean_ctor_get(x_957, 1); +lean_inc(x_966); +if (lean_is_exclusive(x_957)) { + lean_ctor_release(x_957, 0); + lean_ctor_release(x_957, 1); + x_967 = x_957; } else { - x_968 = x_959; + lean_dec_ref(x_957); + x_967 = lean_box(0); } -lean_ctor_set(x_968, 0, x_967); -lean_ctor_set(x_968, 1, x_958); +if (lean_is_scalar(x_967)) { + x_968 = lean_alloc_ctor(1, 2, 0); +} else { + x_968 = x_967; +} +lean_ctor_set(x_968, 0, x_965); +lean_ctor_set(x_968, 1, x_966); return x_968; } +} +} else { -lean_object* x_969; lean_object* x_970; lean_object* x_971; lean_object* x_972; -lean_dec(x_951); +lean_object* x_969; +lean_dec(x_896); +lean_dec(x_864); lean_dec(x_6); -lean_dec(x_5); -x_969 = lean_ctor_get(x_956, 0); -lean_inc(x_969); -x_970 = lean_ctor_get(x_956, 1); +lean_dec(x_2); +lean_inc(x_4); +x_969 = l___private_Lean_Elab_Match_18__processId(x_4, x_7, x_850, x_835); +if (lean_obj_tag(x_969) == 0) +{ +lean_object* x_970; lean_object* x_971; lean_object* x_972; lean_object* x_973; lean_object* x_974; lean_object* x_975; lean_object* x_976; +x_970 = lean_ctor_get(x_969, 0); lean_inc(x_970); -if (lean_is_exclusive(x_956)) { - lean_ctor_release(x_956, 0); - lean_ctor_release(x_956, 1); - x_971 = x_956; +x_971 = lean_ctor_get(x_969, 1); +lean_inc(x_971); +if (lean_is_exclusive(x_969)) { + lean_ctor_release(x_969, 0); + lean_ctor_release(x_969, 1); + x_972 = x_969; } else { - lean_dec_ref(x_956); - x_971 = lean_box(0); + lean_dec_ref(x_969); + x_972 = lean_box(0); } -if (lean_is_scalar(x_971)) { - x_972 = lean_alloc_ctor(1, 2, 0); +x_973 = lean_ctor_get(x_970, 1); +lean_inc(x_973); +if (lean_is_exclusive(x_970)) { + lean_ctor_release(x_970, 0); + lean_ctor_release(x_970, 1); + x_974 = x_970; } else { - x_972 = x_971; + lean_dec_ref(x_970); + x_974 = lean_box(0); } -lean_ctor_set(x_972, 0, x_969); -lean_ctor_set(x_972, 1, x_970); -return x_972; +if (lean_is_scalar(x_974)) { + x_975 = lean_alloc_ctor(0, 2, 0); +} else { + x_975 = x_974; } +lean_ctor_set(x_975, 0, x_4); +lean_ctor_set(x_975, 1, x_973); +if (lean_is_scalar(x_972)) { + x_976 = lean_alloc_ctor(0, 2, 0); +} else { + x_976 = x_972; } +lean_ctor_set(x_976, 0, x_975); +lean_ctor_set(x_976, 1, x_971); +return x_976; } else { -lean_object* x_973; lean_object* x_974; lean_object* x_975; lean_object* x_976; lean_object* x_977; lean_object* x_978; lean_object* x_979; lean_object* x_980; -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - x_973 = x_1; -} else { - lean_dec_ref(x_1); - x_973 = lean_box(0); -} -x_974 = l_Lean_Syntax_inhabited; -x_975 = lean_unsigned_to_nat(0u); -x_976 = lean_array_get(x_974, x_6, x_975); -x_977 = lean_array_get(x_974, x_6, x_11); -x_978 = l_Lean_Syntax_getArgs(x_977); -lean_dec(x_977); -x_979 = l_Lean_mkAppStx___closed__6; -lean_inc(x_689); -x_980 = l_Array_forMAux___main___at___private_Lean_Elab_Match_18__collect___main___spec__3(x_979, x_978, x_975, x_2, x_689, x_4); -if (lean_obj_tag(x_980) == 0) -{ -lean_object* x_981; lean_object* x_982; lean_object* x_983; uint8_t x_984; lean_object* x_985; -x_981 = lean_ctor_get(x_980, 0); -lean_inc(x_981); -x_982 = lean_ctor_get(x_980, 1); -lean_inc(x_982); -lean_dec(x_980); -x_983 = lean_ctor_get(x_981, 1); -lean_inc(x_983); -lean_dec(x_981); -x_984 = 1; -lean_inc(x_689); -x_985 = l___private_Lean_Elab_Match_14__processIdAux(x_976, x_984, x_983, x_689, x_982); -if (lean_obj_tag(x_985) == 0) -{ -lean_object* x_986; lean_object* x_987; lean_object* x_988; lean_object* x_989; lean_object* x_990; lean_object* x_991; lean_object* x_992; lean_object* x_993; -x_986 = lean_ctor_get(x_985, 0); -lean_inc(x_986); -x_987 = lean_ctor_get(x_985, 1); -lean_inc(x_987); -lean_dec(x_985); -x_988 = lean_ctor_get(x_986, 0); -lean_inc(x_988); -x_989 = lean_ctor_get(x_986, 1); -lean_inc(x_989); -lean_dec(x_986); -x_990 = x_978; -x_991 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Match_18__collect___main___spec__4___boxed), 6, 3); -lean_closure_set(x_991, 0, x_988); -lean_closure_set(x_991, 1, x_975); -lean_closure_set(x_991, 2, x_990); -x_992 = x_991; -x_993 = lean_apply_3(x_992, x_989, x_689, x_987); -if (lean_obj_tag(x_993) == 0) -{ -lean_object* x_994; lean_object* x_995; lean_object* x_996; lean_object* x_997; lean_object* x_998; lean_object* x_999; lean_object* x_1000; lean_object* x_1001; lean_object* x_1002; lean_object* x_1003; lean_object* x_1004; lean_object* x_1005; -x_994 = lean_ctor_get(x_993, 0); -lean_inc(x_994); -x_995 = lean_ctor_get(x_993, 1); -lean_inc(x_995); -if (lean_is_exclusive(x_993)) { - lean_ctor_release(x_993, 0); - lean_ctor_release(x_993, 1); - x_996 = x_993; -} else { - lean_dec_ref(x_993); - x_996 = lean_box(0); -} -x_997 = lean_ctor_get(x_994, 0); -lean_inc(x_997); -x_998 = lean_ctor_get(x_994, 1); -lean_inc(x_998); -if (lean_is_exclusive(x_994)) { - lean_ctor_release(x_994, 0); - lean_ctor_release(x_994, 1); - x_999 = x_994; -} else { - lean_dec_ref(x_994); - x_999 = lean_box(0); -} -x_1000 = l_Lean_nullKind; -if (lean_is_scalar(x_973)) { - x_1001 = lean_alloc_ctor(1, 2, 0); -} else { - x_1001 = x_973; -} -lean_ctor_set(x_1001, 0, x_1000); -lean_ctor_set(x_1001, 1, x_997); -x_1002 = lean_array_set(x_6, x_11, x_1001); -x_1003 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1003, 0, x_5); -lean_ctor_set(x_1003, 1, x_1002); -if (lean_is_scalar(x_999)) { - x_1004 = lean_alloc_ctor(0, 2, 0); -} else { - x_1004 = x_999; -} -lean_ctor_set(x_1004, 0, x_1003); -lean_ctor_set(x_1004, 1, x_998); -if (lean_is_scalar(x_996)) { - x_1005 = lean_alloc_ctor(0, 2, 0); -} else { - x_1005 = x_996; -} -lean_ctor_set(x_1005, 0, x_1004); -lean_ctor_set(x_1005, 1, x_995); -return x_1005; -} -else -{ -lean_object* x_1006; lean_object* x_1007; lean_object* x_1008; lean_object* x_1009; -lean_dec(x_973); -lean_dec(x_6); -lean_dec(x_5); -x_1006 = lean_ctor_get(x_993, 0); -lean_inc(x_1006); -x_1007 = lean_ctor_get(x_993, 1); -lean_inc(x_1007); -if (lean_is_exclusive(x_993)) { - lean_ctor_release(x_993, 0); - lean_ctor_release(x_993, 1); - x_1008 = x_993; -} else { - lean_dec_ref(x_993); - x_1008 = lean_box(0); -} -if (lean_is_scalar(x_1008)) { - x_1009 = lean_alloc_ctor(1, 2, 0); -} else { - x_1009 = x_1008; -} -lean_ctor_set(x_1009, 0, x_1006); -lean_ctor_set(x_1009, 1, x_1007); -return x_1009; -} -} -else -{ -lean_object* x_1010; lean_object* x_1011; lean_object* x_1012; lean_object* x_1013; -lean_dec(x_978); -lean_dec(x_973); -lean_dec(x_689); -lean_dec(x_6); -lean_dec(x_5); -x_1010 = lean_ctor_get(x_985, 0); -lean_inc(x_1010); -x_1011 = lean_ctor_get(x_985, 1); -lean_inc(x_1011); -if (lean_is_exclusive(x_985)) { - lean_ctor_release(x_985, 0); - lean_ctor_release(x_985, 1); - x_1012 = x_985; -} else { - lean_dec_ref(x_985); - x_1012 = lean_box(0); -} -if (lean_is_scalar(x_1012)) { - x_1013 = lean_alloc_ctor(1, 2, 0); -} else { - x_1013 = x_1012; -} -lean_ctor_set(x_1013, 0, x_1010); -lean_ctor_set(x_1013, 1, x_1011); -return x_1013; -} -} -else -{ -lean_object* x_1014; lean_object* x_1015; lean_object* x_1016; lean_object* x_1017; -lean_dec(x_978); -lean_dec(x_976); -lean_dec(x_973); -lean_dec(x_689); -lean_dec(x_6); -lean_dec(x_5); -x_1014 = lean_ctor_get(x_980, 0); -lean_inc(x_1014); -x_1015 = lean_ctor_get(x_980, 1); -lean_inc(x_1015); -if (lean_is_exclusive(x_980)) { - lean_ctor_release(x_980, 0); - lean_ctor_release(x_980, 1); - x_1016 = x_980; -} else { - lean_dec_ref(x_980); - x_1016 = lean_box(0); -} -if (lean_is_scalar(x_1016)) { - x_1017 = lean_alloc_ctor(1, 2, 0); -} else { - x_1017 = x_1016; -} -lean_ctor_set(x_1017, 0, x_1014); -lean_ctor_set(x_1017, 1, x_1015); -return x_1017; -} -} -} -} -else -{ -lean_object* x_1018; lean_object* x_1019; lean_object* x_1020; lean_object* x_1021; lean_object* x_1022; lean_object* x_1023; lean_object* x_1024; lean_object* x_1025; lean_object* x_1026; lean_object* x_1027; lean_object* x_1028; lean_object* x_1029; lean_object* x_1030; lean_object* x_1031; lean_object* x_1032; lean_object* x_1033; lean_object* x_1034; lean_object* x_1035; uint8_t x_1036; uint8_t x_1037; uint8_t x_1038; lean_object* x_1039; lean_object* x_1040; -x_1018 = lean_ctor_get(x_4, 0); -x_1019 = lean_ctor_get(x_4, 1); -x_1020 = lean_ctor_get(x_4, 2); -x_1021 = lean_ctor_get(x_4, 3); -x_1022 = lean_ctor_get(x_4, 4); -x_1023 = lean_ctor_get(x_4, 5); -lean_inc(x_1023); -lean_inc(x_1022); -lean_inc(x_1021); -lean_inc(x_1020); -lean_inc(x_1019); -lean_inc(x_1018); +lean_object* x_977; lean_object* x_978; lean_object* x_979; lean_object* x_980; lean_dec(x_4); -x_1024 = lean_unsigned_to_nat(1u); -x_1025 = lean_nat_add(x_1023, x_1024); -x_1026 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_1026, 0, x_1018); -lean_ctor_set(x_1026, 1, x_1019); -lean_ctor_set(x_1026, 2, x_1020); -lean_ctor_set(x_1026, 3, x_1021); -lean_ctor_set(x_1026, 4, x_1022); -lean_ctor_set(x_1026, 5, x_1025); -x_1027 = lean_ctor_get(x_3, 0); -lean_inc(x_1027); -x_1028 = lean_ctor_get(x_3, 1); -lean_inc(x_1028); -x_1029 = lean_ctor_get(x_3, 2); -lean_inc(x_1029); -x_1030 = lean_ctor_get(x_3, 3); -lean_inc(x_1030); -x_1031 = lean_ctor_get(x_3, 4); -lean_inc(x_1031); -x_1032 = lean_ctor_get(x_3, 5); -lean_inc(x_1032); -x_1033 = lean_ctor_get(x_3, 6); -lean_inc(x_1033); -x_1034 = lean_ctor_get(x_3, 7); -lean_inc(x_1034); -x_1035 = lean_ctor_get(x_3, 8); -lean_inc(x_1035); -x_1036 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); -x_1037 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); -x_1038 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); -if (lean_is_exclusive(x_3)) { - lean_ctor_release(x_3, 0); - lean_ctor_release(x_3, 1); - lean_ctor_release(x_3, 2); - lean_ctor_release(x_3, 3); - lean_ctor_release(x_3, 4); - lean_ctor_release(x_3, 5); - lean_ctor_release(x_3, 6); - lean_ctor_release(x_3, 7); - lean_ctor_release(x_3, 8); - lean_ctor_release(x_3, 9); - x_1039 = x_3; +x_977 = lean_ctor_get(x_969, 0); +lean_inc(x_977); +x_978 = lean_ctor_get(x_969, 1); +lean_inc(x_978); +if (lean_is_exclusive(x_969)) { + lean_ctor_release(x_969, 0); + lean_ctor_release(x_969, 1); + x_979 = x_969; } else { - lean_dec_ref(x_3); + lean_dec_ref(x_969); + x_979 = lean_box(0); +} +if (lean_is_scalar(x_979)) { + x_980 = lean_alloc_ctor(1, 2, 0); +} else { + x_980 = x_979; +} +lean_ctor_set(x_980, 0, x_977); +lean_ctor_set(x_980, 1, x_978); +return x_980; +} +} +} +} +else +{ +lean_object* x_981; lean_object* x_982; uint8_t x_983; +lean_dec(x_6); +x_981 = l_Lean_Syntax_inhabited; +x_982 = lean_array_get(x_981, x_5, x_833); +x_983 = l_Lean_Syntax_isNone(x_982); +if (x_983 == 0) +{ +lean_object* x_984; lean_object* x_985; lean_object* x_986; uint8_t x_987; +lean_dec(x_4); +x_984 = lean_unsigned_to_nat(0u); +x_985 = l_Lean_Syntax_getArg(x_982, x_984); +x_986 = l_Lean_Syntax_getArg(x_982, x_833); +x_987 = l_Lean_Syntax_isNone(x_986); +if (x_987 == 0) +{ +lean_object* x_988; lean_object* x_989; lean_object* x_990; uint8_t x_991; +x_988 = l_Lean_Syntax_getArg(x_986, x_984); +x_989 = l_Lean_Parser_Term_typeAscription___elambda__1___closed__1; +x_990 = lean_name_mk_string(x_2, x_989); +lean_inc(x_988); +x_991 = l_Lean_Syntax_isOfKind(x_988, x_990); +lean_dec(x_990); +if (x_991 == 0) +{ +lean_object* x_992; +lean_inc(x_850); +x_992 = l___private_Lean_Elab_Match_20__collect___main(x_985, x_7, x_850, x_835); +if (lean_obj_tag(x_992) == 0) +{ +lean_object* x_993; lean_object* x_994; lean_object* x_995; lean_object* x_996; lean_object* x_997; lean_object* x_998; lean_object* x_999; lean_object* x_1000; lean_object* x_1001; +x_993 = lean_ctor_get(x_992, 0); +lean_inc(x_993); +x_994 = lean_ctor_get(x_992, 1); +lean_inc(x_994); +lean_dec(x_992); +x_995 = lean_ctor_get(x_993, 0); +lean_inc(x_995); +x_996 = lean_ctor_get(x_993, 1); +lean_inc(x_996); +lean_dec(x_993); +x_997 = l_Lean_Syntax_setArg(x_982, x_984, x_995); +x_998 = l_Lean_Syntax_getArg(x_988, x_833); +x_999 = l_Lean_Syntax_getArgs(x_998); +lean_dec(x_998); +x_1000 = l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__9; +x_1001 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_20__collect___main___spec__1(x_999, x_1000, x_996, x_850, x_994); +lean_dec(x_999); +if (lean_obj_tag(x_1001) == 0) +{ +lean_object* x_1002; lean_object* x_1003; lean_object* x_1004; lean_object* x_1005; lean_object* x_1006; lean_object* x_1007; lean_object* x_1008; lean_object* x_1009; lean_object* x_1010; lean_object* x_1011; lean_object* x_1012; lean_object* x_1013; lean_object* x_1014; lean_object* x_1015; lean_object* x_1016; +x_1002 = lean_ctor_get(x_1001, 0); +lean_inc(x_1002); +x_1003 = lean_ctor_get(x_1001, 1); +lean_inc(x_1003); +if (lean_is_exclusive(x_1001)) { + lean_ctor_release(x_1001, 0); + lean_ctor_release(x_1001, 1); + x_1004 = x_1001; +} else { + lean_dec_ref(x_1001); + x_1004 = lean_box(0); +} +x_1005 = lean_ctor_get(x_1002, 0); +lean_inc(x_1005); +x_1006 = lean_ctor_get(x_1002, 1); +lean_inc(x_1006); +if (lean_is_exclusive(x_1002)) { + lean_ctor_release(x_1002, 0); + lean_ctor_release(x_1002, 1); + x_1007 = x_1002; +} else { + lean_dec_ref(x_1002); + x_1007 = lean_box(0); +} +x_1008 = l_Lean_nullKind; +x_1009 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1009, 0, x_1008); +lean_ctor_set(x_1009, 1, x_1005); +x_1010 = l_Lean_Syntax_setArg(x_988, x_833, x_1009); +x_1011 = l_Lean_Syntax_setArg(x_986, x_984, x_1010); +x_1012 = l_Lean_Syntax_setArg(x_997, x_833, x_1011); +x_1013 = lean_array_set(x_5, x_833, x_1012); +x_1014 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1014, 0, x_3); +lean_ctor_set(x_1014, 1, x_1013); +if (lean_is_scalar(x_1007)) { + x_1015 = lean_alloc_ctor(0, 2, 0); +} else { + x_1015 = x_1007; +} +lean_ctor_set(x_1015, 0, x_1014); +lean_ctor_set(x_1015, 1, x_1006); +if (lean_is_scalar(x_1004)) { + x_1016 = lean_alloc_ctor(0, 2, 0); +} else { + x_1016 = x_1004; +} +lean_ctor_set(x_1016, 0, x_1015); +lean_ctor_set(x_1016, 1, x_1003); +return x_1016; +} +else +{ +lean_object* x_1017; lean_object* x_1018; lean_object* x_1019; lean_object* x_1020; +lean_dec(x_997); +lean_dec(x_988); +lean_dec(x_986); +lean_dec(x_5); +lean_dec(x_3); +x_1017 = lean_ctor_get(x_1001, 0); +lean_inc(x_1017); +x_1018 = lean_ctor_get(x_1001, 1); +lean_inc(x_1018); +if (lean_is_exclusive(x_1001)) { + lean_ctor_release(x_1001, 0); + lean_ctor_release(x_1001, 1); + x_1019 = x_1001; +} else { + lean_dec_ref(x_1001); + x_1019 = lean_box(0); +} +if (lean_is_scalar(x_1019)) { + x_1020 = lean_alloc_ctor(1, 2, 0); +} else { + x_1020 = x_1019; +} +lean_ctor_set(x_1020, 0, x_1017); +lean_ctor_set(x_1020, 1, x_1018); +return x_1020; +} +} +else +{ +lean_object* x_1021; lean_object* x_1022; lean_object* x_1023; lean_object* x_1024; +lean_dec(x_988); +lean_dec(x_986); +lean_dec(x_982); +lean_dec(x_850); +lean_dec(x_5); +lean_dec(x_3); +x_1021 = lean_ctor_get(x_992, 0); +lean_inc(x_1021); +x_1022 = lean_ctor_get(x_992, 1); +lean_inc(x_1022); +if (lean_is_exclusive(x_992)) { + lean_ctor_release(x_992, 0); + lean_ctor_release(x_992, 1); + x_1023 = x_992; +} else { + lean_dec_ref(x_992); + x_1023 = lean_box(0); +} +if (lean_is_scalar(x_1023)) { + x_1024 = lean_alloc_ctor(1, 2, 0); +} else { + x_1024 = x_1023; +} +lean_ctor_set(x_1024, 0, x_1021); +lean_ctor_set(x_1024, 1, x_1022); +return x_1024; +} +} +else +{ +lean_object* x_1025; +lean_dec(x_988); +lean_dec(x_986); +x_1025 = l___private_Lean_Elab_Match_20__collect___main(x_985, x_7, x_850, x_835); +if (lean_obj_tag(x_1025) == 0) +{ +lean_object* x_1026; lean_object* x_1027; lean_object* x_1028; lean_object* x_1029; lean_object* x_1030; lean_object* x_1031; lean_object* x_1032; lean_object* x_1033; lean_object* x_1034; lean_object* x_1035; lean_object* x_1036; +x_1026 = lean_ctor_get(x_1025, 0); +lean_inc(x_1026); +x_1027 = lean_ctor_get(x_1025, 1); +lean_inc(x_1027); +if (lean_is_exclusive(x_1025)) { + lean_ctor_release(x_1025, 0); + lean_ctor_release(x_1025, 1); + x_1028 = x_1025; +} else { + lean_dec_ref(x_1025); + x_1028 = lean_box(0); +} +x_1029 = lean_ctor_get(x_1026, 0); +lean_inc(x_1029); +x_1030 = lean_ctor_get(x_1026, 1); +lean_inc(x_1030); +if (lean_is_exclusive(x_1026)) { + lean_ctor_release(x_1026, 0); + lean_ctor_release(x_1026, 1); + x_1031 = x_1026; +} else { + lean_dec_ref(x_1026); + x_1031 = lean_box(0); +} +x_1032 = l_Lean_Syntax_setArg(x_982, x_984, x_1029); +x_1033 = lean_array_set(x_5, x_833, x_1032); +x_1034 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1034, 0, x_3); +lean_ctor_set(x_1034, 1, x_1033); +if (lean_is_scalar(x_1031)) { + x_1035 = lean_alloc_ctor(0, 2, 0); +} else { + x_1035 = x_1031; +} +lean_ctor_set(x_1035, 0, x_1034); +lean_ctor_set(x_1035, 1, x_1030); +if (lean_is_scalar(x_1028)) { + x_1036 = lean_alloc_ctor(0, 2, 0); +} else { + x_1036 = x_1028; +} +lean_ctor_set(x_1036, 0, x_1035); +lean_ctor_set(x_1036, 1, x_1027); +return x_1036; +} +else +{ +lean_object* x_1037; lean_object* x_1038; lean_object* x_1039; lean_object* x_1040; +lean_dec(x_982); +lean_dec(x_5); +lean_dec(x_3); +x_1037 = lean_ctor_get(x_1025, 0); +lean_inc(x_1037); +x_1038 = lean_ctor_get(x_1025, 1); +lean_inc(x_1038); +if (lean_is_exclusive(x_1025)) { + lean_ctor_release(x_1025, 0); + lean_ctor_release(x_1025, 1); + x_1039 = x_1025; +} else { + lean_dec_ref(x_1025); x_1039 = lean_box(0); } if (lean_is_scalar(x_1039)) { - x_1040 = lean_alloc_ctor(0, 10, 3); + x_1040 = lean_alloc_ctor(1, 2, 0); } else { x_1040 = x_1039; } -lean_ctor_set(x_1040, 0, x_1027); -lean_ctor_set(x_1040, 1, x_1028); -lean_ctor_set(x_1040, 2, x_1029); -lean_ctor_set(x_1040, 3, x_1030); -lean_ctor_set(x_1040, 4, x_1031); -lean_ctor_set(x_1040, 5, x_1032); -lean_ctor_set(x_1040, 6, x_1033); -lean_ctor_set(x_1040, 7, x_1034); -lean_ctor_set(x_1040, 8, x_1035); -lean_ctor_set(x_1040, 9, x_1023); -lean_ctor_set_uint8(x_1040, sizeof(void*)*10, x_1036); -lean_ctor_set_uint8(x_1040, sizeof(void*)*10 + 1, x_1037); -lean_ctor_set_uint8(x_1040, sizeof(void*)*10 + 2, x_1038); -if (x_8 == 0) +lean_ctor_set(x_1040, 0, x_1037); +lean_ctor_set(x_1040, 1, x_1038); +return x_1040; +} +} +} +else { -lean_object* x_1041; uint8_t x_1042; -x_1041 = l_Lean_Parser_Term_anonymousCtor___elambda__1___closed__2; -x_1042 = lean_name_eq(x_5, x_1041); -if (x_1042 == 0) +lean_object* x_1041; +lean_dec(x_986); +lean_dec(x_2); +x_1041 = l___private_Lean_Elab_Match_20__collect___main(x_985, x_7, x_850, x_835); +if (lean_obj_tag(x_1041) == 0) { -lean_object* x_1043; uint8_t x_1044; -x_1043 = l_Lean_Parser_Term_structInst___elambda__1___closed__2; -x_1044 = lean_name_eq(x_5, x_1043); -if (x_1044 == 0) +lean_object* x_1042; lean_object* x_1043; lean_object* x_1044; lean_object* x_1045; lean_object* x_1046; lean_object* x_1047; lean_object* x_1048; lean_object* x_1049; lean_object* x_1050; lean_object* x_1051; lean_object* x_1052; +x_1042 = lean_ctor_get(x_1041, 0); +lean_inc(x_1042); +x_1043 = lean_ctor_get(x_1041, 1); +lean_inc(x_1043); +if (lean_is_exclusive(x_1041)) { + lean_ctor_release(x_1041, 0); + lean_ctor_release(x_1041, 1); + x_1044 = x_1041; +} else { + lean_dec_ref(x_1041); + x_1044 = lean_box(0); +} +x_1045 = lean_ctor_get(x_1042, 0); +lean_inc(x_1045); +x_1046 = lean_ctor_get(x_1042, 1); +lean_inc(x_1046); +if (lean_is_exclusive(x_1042)) { + lean_ctor_release(x_1042, 0); + lean_ctor_release(x_1042, 1); + x_1047 = x_1042; +} else { + lean_dec_ref(x_1042); + x_1047 = lean_box(0); +} +x_1048 = l_Lean_Syntax_setArg(x_982, x_984, x_1045); +x_1049 = lean_array_set(x_5, x_833, x_1048); +x_1050 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1050, 0, x_3); +lean_ctor_set(x_1050, 1, x_1049); +if (lean_is_scalar(x_1047)) { + x_1051 = lean_alloc_ctor(0, 2, 0); +} else { + x_1051 = x_1047; +} +lean_ctor_set(x_1051, 0, x_1050); +lean_ctor_set(x_1051, 1, x_1046); +if (lean_is_scalar(x_1044)) { + x_1052 = lean_alloc_ctor(0, 2, 0); +} else { + x_1052 = x_1044; +} +lean_ctor_set(x_1052, 0, x_1051); +lean_ctor_set(x_1052, 1, x_1043); +return x_1052; +} +else { -lean_object* x_1045; uint8_t x_1046; -x_1045 = l_Lean_mkHole___closed__2; -x_1046 = lean_name_eq(x_5, x_1045); -if (x_1046 == 0) +lean_object* x_1053; lean_object* x_1054; lean_object* x_1055; lean_object* x_1056; +lean_dec(x_982); +lean_dec(x_5); +lean_dec(x_3); +x_1053 = lean_ctor_get(x_1041, 0); +lean_inc(x_1053); +x_1054 = lean_ctor_get(x_1041, 1); +lean_inc(x_1054); +if (lean_is_exclusive(x_1041)) { + lean_ctor_release(x_1041, 0); + lean_ctor_release(x_1041, 1); + x_1055 = x_1041; +} else { + lean_dec_ref(x_1041); + x_1055 = lean_box(0); +} +if (lean_is_scalar(x_1055)) { + x_1056 = lean_alloc_ctor(1, 2, 0); +} else { + x_1056 = x_1055; +} +lean_ctor_set(x_1056, 0, x_1053); +lean_ctor_set(x_1056, 1, x_1054); +return x_1056; +} +} +} +else { -lean_object* x_1047; uint8_t x_1048; -x_1047 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__2; -x_1048 = lean_name_eq(x_5, x_1047); -if (x_1048 == 0) +lean_object* x_1057; lean_object* x_1058; +lean_dec(x_982); +lean_dec(x_850); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_1057 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1057, 0, x_4); +lean_ctor_set(x_1057, 1, x_7); +x_1058 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1058, 0, x_1057); +lean_ctor_set(x_1058, 1, x_835); +return x_1058; +} +} +} +else { -lean_object* x_1049; uint8_t x_1050; -x_1049 = l_Lean_mkTermIdFromIdent___closed__2; -x_1050 = lean_name_eq(x_5, x_1049); -if (x_1050 == 0) -{ -lean_object* x_1051; uint8_t x_1052; +lean_object* x_1059; lean_object* x_1060; lean_object* x_1061; lean_object* x_1062; lean_object* x_1063; lean_object* x_1064; lean_object* x_1065; lean_object* x_1066; lean_object* x_1067; lean_object* x_1068; lean_object* x_1069; lean_object* x_1070; lean_object* x_1071; lean_dec(x_6); -x_1051 = l_Lean_Parser_Term_inaccessible___elambda__1___closed__2; -x_1052 = lean_name_eq(x_5, x_1051); -if (x_1052 == 0) -{ -lean_object* x_1053; uint8_t x_1054; -x_1053 = l_Lean_String_HasQuote___closed__2; -x_1054 = lean_name_eq(x_5, x_1053); -if (x_1054 == 0) -{ -lean_object* x_1055; uint8_t x_1056; -x_1055 = l_Lean_Nat_HasQuote___closed__2; -x_1056 = lean_name_eq(x_5, x_1055); -if (x_1056 == 0) -{ -lean_object* x_1057; uint8_t x_1058; -x_1057 = l_Lean_Parser_Term_char___elambda__1___closed__2; -x_1058 = lean_name_eq(x_5, x_1057); -if (x_1058 == 0) -{ -lean_object* x_1059; uint8_t x_1060; -x_1059 = l_Lean_choiceKind; -x_1060 = lean_name_eq(x_5, x_1059); lean_dec(x_5); -if (x_1060 == 0) -{ -lean_object* x_1061; -x_1061 = l___private_Lean_Elab_Match_17__throwInvalidPattern___rarg(x_1, x_2, x_1040, x_1026); +lean_dec(x_4); +lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); -return x_1061; +x_1059 = l___private_Lean_Elab_Match_10__mkMVarSyntax(x_850, x_835); +x_1060 = lean_ctor_get(x_1059, 0); +lean_inc(x_1060); +x_1061 = lean_ctor_get(x_1059, 1); +lean_inc(x_1061); +if (lean_is_exclusive(x_1059)) { + lean_ctor_release(x_1059, 0); + lean_ctor_release(x_1059, 1); + x_1062 = x_1059; +} else { + lean_dec_ref(x_1059); + x_1062 = lean_box(0); } -else -{ -lean_object* x_1062; lean_object* x_1063; lean_object* x_1064; lean_object* x_1065; lean_object* x_1066; lean_object* x_1067; -lean_dec(x_2); -x_1062 = l___private_Lean_Elab_Match_18__collect___main___closed__3; -x_1063 = l_Lean_Elab_Term_throwError___rarg(x_1, x_1062, x_1040, x_1026); -lean_dec(x_1); -x_1064 = lean_ctor_get(x_1063, 0); +x_1063 = lean_ctor_get(x_7, 0); +lean_inc(x_1063); +x_1064 = lean_ctor_get(x_7, 1); lean_inc(x_1064); -x_1065 = lean_ctor_get(x_1063, 1); -lean_inc(x_1065); -if (lean_is_exclusive(x_1063)) { - lean_ctor_release(x_1063, 0); - lean_ctor_release(x_1063, 1); - x_1066 = x_1063; +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + x_1065 = x_7; } else { - lean_dec_ref(x_1063); - x_1066 = lean_box(0); + lean_dec_ref(x_7); + x_1065 = lean_box(0); } -if (lean_is_scalar(x_1066)) { - x_1067 = lean_alloc_ctor(1, 2, 0); +x_1066 = l___private_Lean_Elab_Match_11__getMVarSyntaxMVarId(x_1060); +x_1067 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1067, 0, x_1066); +x_1068 = lean_array_push(x_1064, x_1067); +if (lean_is_scalar(x_1065)) { + x_1069 = lean_alloc_ctor(0, 2, 0); } else { - x_1067 = x_1066; + x_1069 = x_1065; } -lean_ctor_set(x_1067, 0, x_1064); -lean_ctor_set(x_1067, 1, x_1065); -return x_1067; -} -} -else -{ -lean_object* x_1068; lean_object* x_1069; -lean_dec(x_1040); -lean_dec(x_5); -x_1068 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1068, 0, x_1); -lean_ctor_set(x_1068, 1, x_2); -x_1069 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1069, 0, x_1068); -lean_ctor_set(x_1069, 1, x_1026); -return x_1069; -} -} -else -{ -lean_object* x_1070; lean_object* x_1071; -lean_dec(x_1040); -lean_dec(x_5); +lean_ctor_set(x_1069, 0, x_1063); +lean_ctor_set(x_1069, 1, x_1068); x_1070 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1070, 0, x_1); -lean_ctor_set(x_1070, 1, x_2); -x_1071 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1070, 0, x_1060); +lean_ctor_set(x_1070, 1, x_1069); +if (lean_is_scalar(x_1062)) { + x_1071 = lean_alloc_ctor(0, 2, 0); +} else { + x_1071 = x_1062; +} lean_ctor_set(x_1071, 0, x_1070); -lean_ctor_set(x_1071, 1, x_1026); +lean_ctor_set(x_1071, 1, x_1061); return x_1071; } } else { -lean_object* x_1072; lean_object* x_1073; -lean_dec(x_1040); -lean_dec(x_5); -x_1072 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1072, 0, x_1); -lean_ctor_set(x_1072, 1, x_2); -x_1073 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1073, 0, x_1072); -lean_ctor_set(x_1073, 1, x_1026); -return x_1073; -} -} -else -{ -lean_object* x_1074; lean_object* x_1075; -lean_dec(x_1040); -lean_dec(x_5); -x_1074 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1074, 0, x_1); -lean_ctor_set(x_1074, 1, x_2); -x_1075 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1075, 0, x_1074); -lean_ctor_set(x_1075, 1, x_1026); -return x_1075; -} -} -else -{ -lean_object* x_1076; lean_object* x_1077; uint8_t x_1078; -lean_dec(x_5); -x_1076 = l_Lean_Syntax_inhabited; -x_1077 = lean_array_get(x_1076, x_6, x_1024); +lean_object* x_1072; lean_object* x_1073; uint8_t x_1074; lean_object* x_1075; lean_object* x_1076; lean_object* x_1077; uint8_t x_1078; lean_dec(x_6); -x_1078 = l_Lean_Syntax_isNone(x_1077); +lean_dec(x_4); +lean_dec(x_2); +x_1072 = l_Lean_Syntax_inhabited; +x_1073 = lean_array_get(x_1072, x_5, x_833); +x_1074 = l_Lean_Syntax_isNone(x_1073); +x_1075 = lean_unsigned_to_nat(2u); +x_1076 = lean_array_get(x_1072, x_5, x_1075); +x_1077 = l_Lean_Syntax_getArgs(x_1076); +lean_dec(x_1076); +if (x_1074 == 0) +{ +uint8_t x_1104; +x_1104 = 0; +x_1078 = x_1104; +goto block_1103; +} +else +{ +uint8_t x_1105; +x_1105 = 1; +x_1078 = x_1105; +goto block_1103; +} +block_1103: +{ if (x_1078 == 0) { -lean_object* x_1079; lean_object* x_1080; lean_object* x_1081; uint8_t x_1082; -x_1079 = lean_unsigned_to_nat(0u); -x_1080 = l_Lean_Syntax_getArg(x_1077, x_1079); +lean_object* x_1079; lean_object* x_1080; lean_object* x_1081; lean_object* x_1082; lean_object* x_1083; lean_object* x_1084; lean_dec(x_1077); -x_1081 = l_Lean_Parser_Term_explicitUniv___elambda__1___closed__2; -lean_inc(x_1080); -x_1082 = l_Lean_Syntax_isOfKind(x_1080, x_1081); -if (x_1082 == 0) -{ -lean_object* x_1083; uint8_t x_1084; -x_1083 = l_Lean_Parser_Term_namedPattern___elambda__1___closed__2; -lean_inc(x_1080); -x_1084 = l_Lean_Syntax_isOfKind(x_1080, x_1083); -if (x_1084 == 0) -{ -lean_object* x_1085; -lean_dec(x_1080); -x_1085 = l___private_Lean_Elab_Match_17__throwInvalidPattern___rarg(x_1, x_2, x_1040, x_1026); -lean_dec(x_2); -lean_dec(x_1); -return x_1085; +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_3); +x_1079 = l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__12; +x_1080 = l_Lean_Elab_Term_throwErrorAt___rarg(x_1073, x_1079, x_850, x_835); +lean_dec(x_1073); +x_1081 = lean_ctor_get(x_1080, 0); +lean_inc(x_1081); +x_1082 = lean_ctor_get(x_1080, 1); +lean_inc(x_1082); +if (lean_is_exclusive(x_1080)) { + lean_ctor_release(x_1080, 0); + lean_ctor_release(x_1080, 1); + x_1083 = x_1080; +} else { + lean_dec_ref(x_1080); + x_1083 = lean_box(0); +} +if (lean_is_scalar(x_1083)) { + x_1084 = lean_alloc_ctor(1, 2, 0); +} else { + x_1084 = x_1083; +} +lean_ctor_set(x_1084, 0, x_1081); +lean_ctor_set(x_1084, 1, x_1082); +return x_1084; } else { -lean_object* x_1086; lean_object* x_1087; uint8_t x_1088; lean_object* x_1089; -x_1086 = l_Lean_Syntax_getIdOfTermId(x_1); -x_1087 = l_Lean_Syntax_getArg(x_1080, x_1024); -lean_dec(x_1080); -x_1088 = 0; -lean_inc(x_1040); -lean_inc(x_1086); -x_1089 = l___private_Lean_Elab_Match_13__processVar(x_1, x_1086, x_1088, x_2, x_1040, x_1026); -if (lean_obj_tag(x_1089) == 0) +lean_object* x_1085; lean_object* x_1086; +lean_dec(x_1073); +x_1085 = l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__13; +x_1086 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_20__collect___main___spec__1(x_1077, x_1085, x_7, x_850, x_835); +lean_dec(x_1077); +if (lean_obj_tag(x_1086) == 0) { -lean_object* x_1090; lean_object* x_1091; lean_object* x_1092; lean_object* x_1093; -x_1090 = lean_ctor_get(x_1089, 0); +lean_object* x_1087; lean_object* x_1088; lean_object* x_1089; lean_object* x_1090; lean_object* x_1091; lean_object* x_1092; lean_object* x_1093; lean_object* x_1094; lean_object* x_1095; lean_object* x_1096; lean_object* x_1097; lean_object* x_1098; +x_1087 = lean_ctor_get(x_1086, 0); +lean_inc(x_1087); +x_1088 = lean_ctor_get(x_1086, 1); +lean_inc(x_1088); +if (lean_is_exclusive(x_1086)) { + lean_ctor_release(x_1086, 0); + lean_ctor_release(x_1086, 1); + x_1089 = x_1086; +} else { + lean_dec_ref(x_1086); + x_1089 = lean_box(0); +} +x_1090 = lean_ctor_get(x_1087, 0); lean_inc(x_1090); -x_1091 = lean_ctor_get(x_1089, 1); +x_1091 = lean_ctor_get(x_1087, 1); lean_inc(x_1091); -lean_dec(x_1089); -x_1092 = lean_ctor_get(x_1090, 1); -lean_inc(x_1092); -lean_dec(x_1090); -lean_inc(x_1040); -x_1093 = l___private_Lean_Elab_Match_18__collect___main(x_1087, x_1092, x_1040, x_1091); -if (lean_obj_tag(x_1093) == 0) -{ -lean_object* x_1094; lean_object* x_1095; lean_object* x_1096; lean_object* x_1097; lean_object* x_1098; lean_object* x_1099; lean_object* x_1100; lean_object* x_1101; lean_object* x_1102; lean_object* x_1103; lean_object* x_1104; lean_object* x_1105; lean_object* x_1106; lean_object* x_1107; lean_object* x_1108; lean_object* x_1109; lean_object* x_1110; lean_object* x_1111; lean_object* x_1112; lean_object* x_1113; lean_object* x_1114; lean_object* x_1115; lean_object* x_1116; lean_object* x_1117; lean_object* x_1118; lean_object* x_1119; lean_object* x_1120; lean_object* x_1121; lean_object* x_1122; lean_object* x_1123; lean_object* x_1124; lean_object* x_1125; lean_object* x_1126; lean_object* x_1127; -x_1094 = lean_ctor_get(x_1093, 0); -lean_inc(x_1094); -x_1095 = lean_ctor_get(x_1093, 1); -lean_inc(x_1095); -lean_dec(x_1093); -x_1096 = lean_ctor_get(x_1094, 0); -lean_inc(x_1096); -x_1097 = lean_ctor_get(x_1094, 1); -lean_inc(x_1097); -if (lean_is_exclusive(x_1094)) { - lean_ctor_release(x_1094, 0); - lean_ctor_release(x_1094, 1); - x_1098 = x_1094; +if (lean_is_exclusive(x_1087)) { + lean_ctor_release(x_1087, 0); + lean_ctor_release(x_1087, 1); + x_1092 = x_1087; } else { - lean_dec_ref(x_1094); - x_1098 = lean_box(0); + lean_dec_ref(x_1087); + x_1092 = lean_box(0); } -x_1099 = l_Lean_Elab_Term_getCurrMacroScope(x_1040, x_1095); -lean_dec(x_1040); -x_1100 = lean_ctor_get(x_1099, 0); +x_1093 = l_Lean_nullKind; +x_1094 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1094, 0, x_1093); +lean_ctor_set(x_1094, 1, x_1090); +x_1095 = lean_array_set(x_5, x_1075, x_1094); +x_1096 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1096, 0, x_3); +lean_ctor_set(x_1096, 1, x_1095); +if (lean_is_scalar(x_1092)) { + x_1097 = lean_alloc_ctor(0, 2, 0); +} else { + x_1097 = x_1092; +} +lean_ctor_set(x_1097, 0, x_1096); +lean_ctor_set(x_1097, 1, x_1091); +if (lean_is_scalar(x_1089)) { + x_1098 = lean_alloc_ctor(0, 2, 0); +} else { + x_1098 = x_1089; +} +lean_ctor_set(x_1098, 0, x_1097); +lean_ctor_set(x_1098, 1, x_1088); +return x_1098; +} +else +{ +lean_object* x_1099; lean_object* x_1100; lean_object* x_1101; lean_object* x_1102; +lean_dec(x_5); +lean_dec(x_3); +x_1099 = lean_ctor_get(x_1086, 0); +lean_inc(x_1099); +x_1100 = lean_ctor_get(x_1086, 1); lean_inc(x_1100); -x_1101 = lean_ctor_get(x_1099, 1); -lean_inc(x_1101); -lean_dec(x_1099); -x_1102 = l_Lean_Elab_Term_getMainModule___rarg(x_1101); -x_1103 = lean_ctor_get(x_1102, 0); -lean_inc(x_1103); -x_1104 = lean_ctor_get(x_1102, 1); -lean_inc(x_1104); -if (lean_is_exclusive(x_1102)) { - lean_ctor_release(x_1102, 0); - lean_ctor_release(x_1102, 1); - x_1105 = x_1102; +if (lean_is_exclusive(x_1086)) { + lean_ctor_release(x_1086, 0); + lean_ctor_release(x_1086, 1); + x_1101 = x_1086; } else { - lean_dec_ref(x_1102); - x_1105 = lean_box(0); + lean_dec_ref(x_1086); + x_1101 = lean_box(0); } -x_1106 = l___private_Lean_Elab_Match_18__collect___main___closed__6; -x_1107 = l_Lean_addMacroScope(x_1103, x_1106, x_1100); -x_1108 = l_Lean_SourceInfo_inhabited___closed__1; -x_1109 = l___private_Lean_Elab_Match_18__collect___main___closed__5; -x_1110 = l___private_Lean_Elab_Match_18__collect___main___closed__8; -x_1111 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1111, 0, x_1108); -lean_ctor_set(x_1111, 1, x_1109); -lean_ctor_set(x_1111, 2, x_1107); -lean_ctor_set(x_1111, 3, x_1110); -x_1112 = l_Array_empty___closed__1; -x_1113 = lean_array_push(x_1112, x_1111); -x_1114 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; -x_1115 = lean_array_push(x_1113, x_1114); -x_1116 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1116, 0, x_1049); -lean_ctor_set(x_1116, 1, x_1115); -x_1117 = lean_array_push(x_1112, x_1116); -x_1118 = l_Lean_mkTermIdFrom(x_1, x_1086); -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - x_1119 = x_1; +if (lean_is_scalar(x_1101)) { + x_1102 = lean_alloc_ctor(1, 2, 0); } else { - lean_dec_ref(x_1); - x_1119 = lean_box(0); + x_1102 = x_1101; } -x_1120 = lean_array_push(x_1112, x_1118); -x_1121 = lean_array_push(x_1120, x_1096); -x_1122 = l_Lean_nullKind___closed__2; -if (lean_is_scalar(x_1119)) { - x_1123 = lean_alloc_ctor(1, 2, 0); -} else { - x_1123 = x_1119; +lean_ctor_set(x_1102, 0, x_1099); +lean_ctor_set(x_1102, 1, x_1100); +return x_1102; } -lean_ctor_set(x_1123, 0, x_1122); -lean_ctor_set(x_1123, 1, x_1121); -x_1124 = lean_array_push(x_1117, x_1123); -x_1125 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1125, 0, x_7); -lean_ctor_set(x_1125, 1, x_1124); -if (lean_is_scalar(x_1098)) { - x_1126 = lean_alloc_ctor(0, 2, 0); -} else { - x_1126 = x_1098; } -lean_ctor_set(x_1126, 0, x_1125); -lean_ctor_set(x_1126, 1, x_1097); -if (lean_is_scalar(x_1105)) { - x_1127 = lean_alloc_ctor(0, 2, 0); -} else { - x_1127 = x_1105; } -lean_ctor_set(x_1127, 0, x_1126); -lean_ctor_set(x_1127, 1, x_1104); -return x_1127; -} -else -{ -lean_object* x_1128; lean_object* x_1129; lean_object* x_1130; lean_object* x_1131; -lean_dec(x_1086); -lean_dec(x_1040); -lean_dec(x_1); -x_1128 = lean_ctor_get(x_1093, 0); -lean_inc(x_1128); -x_1129 = lean_ctor_get(x_1093, 1); -lean_inc(x_1129); -if (lean_is_exclusive(x_1093)) { - lean_ctor_release(x_1093, 0); - lean_ctor_release(x_1093, 1); - x_1130 = x_1093; -} else { - lean_dec_ref(x_1093); - x_1130 = lean_box(0); -} -if (lean_is_scalar(x_1130)) { - x_1131 = lean_alloc_ctor(1, 2, 0); -} else { - x_1131 = x_1130; -} -lean_ctor_set(x_1131, 0, x_1128); -lean_ctor_set(x_1131, 1, x_1129); -return x_1131; } } else { -lean_object* x_1132; lean_object* x_1133; lean_object* x_1134; lean_object* x_1135; -lean_dec(x_1087); -lean_dec(x_1086); -lean_dec(x_1040); -lean_dec(x_1); -x_1132 = lean_ctor_get(x_1089, 0); -lean_inc(x_1132); -x_1133 = lean_ctor_get(x_1089, 1); +lean_object* x_1106; lean_object* x_1107; lean_object* x_1108; lean_object* x_1109; lean_object* x_1110; +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +x_1106 = l_Lean_Syntax_inhabited; +x_1107 = lean_array_get(x_1106, x_5, x_833); +x_1108 = l_Lean_Syntax_getArgs(x_1107); +lean_dec(x_1107); +x_1109 = l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__9; +x_1110 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_20__collect___main___spec__1(x_1108, x_1109, x_7, x_850, x_835); +lean_dec(x_1108); +if (lean_obj_tag(x_1110) == 0) +{ +lean_object* x_1111; lean_object* x_1112; lean_object* x_1113; lean_object* x_1114; lean_object* x_1115; lean_object* x_1116; lean_object* x_1117; lean_object* x_1118; lean_object* x_1119; lean_object* x_1120; lean_object* x_1121; lean_object* x_1122; +x_1111 = lean_ctor_get(x_1110, 0); +lean_inc(x_1111); +x_1112 = lean_ctor_get(x_1110, 1); +lean_inc(x_1112); +if (lean_is_exclusive(x_1110)) { + lean_ctor_release(x_1110, 0); + lean_ctor_release(x_1110, 1); + x_1113 = x_1110; +} else { + lean_dec_ref(x_1110); + x_1113 = lean_box(0); +} +x_1114 = lean_ctor_get(x_1111, 0); +lean_inc(x_1114); +x_1115 = lean_ctor_get(x_1111, 1); +lean_inc(x_1115); +if (lean_is_exclusive(x_1111)) { + lean_ctor_release(x_1111, 0); + lean_ctor_release(x_1111, 1); + x_1116 = x_1111; +} else { + lean_dec_ref(x_1111); + x_1116 = lean_box(0); +} +x_1117 = l_Lean_nullKind; +x_1118 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1118, 0, x_1117); +lean_ctor_set(x_1118, 1, x_1114); +x_1119 = lean_array_set(x_5, x_833, x_1118); +x_1120 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1120, 0, x_3); +lean_ctor_set(x_1120, 1, x_1119); +if (lean_is_scalar(x_1116)) { + x_1121 = lean_alloc_ctor(0, 2, 0); +} else { + x_1121 = x_1116; +} +lean_ctor_set(x_1121, 0, x_1120); +lean_ctor_set(x_1121, 1, x_1115); +if (lean_is_scalar(x_1113)) { + x_1122 = lean_alloc_ctor(0, 2, 0); +} else { + x_1122 = x_1113; +} +lean_ctor_set(x_1122, 0, x_1121); +lean_ctor_set(x_1122, 1, x_1112); +return x_1122; +} +else +{ +lean_object* x_1123; lean_object* x_1124; lean_object* x_1125; lean_object* x_1126; +lean_dec(x_5); +lean_dec(x_3); +x_1123 = lean_ctor_get(x_1110, 0); +lean_inc(x_1123); +x_1124 = lean_ctor_get(x_1110, 1); +lean_inc(x_1124); +if (lean_is_exclusive(x_1110)) { + lean_ctor_release(x_1110, 0); + lean_ctor_release(x_1110, 1); + x_1125 = x_1110; +} else { + lean_dec_ref(x_1110); + x_1125 = lean_box(0); +} +if (lean_is_scalar(x_1125)) { + x_1126 = lean_alloc_ctor(1, 2, 0); +} else { + x_1126 = x_1125; +} +lean_ctor_set(x_1126, 0, x_1123); +lean_ctor_set(x_1126, 1, x_1124); +return x_1126; +} +} +} +else +{ +lean_object* x_1127; lean_object* x_1128; lean_object* x_1129; lean_object* x_1130; lean_object* x_1131; lean_object* x_1132; +lean_dec(x_6); +lean_dec(x_4); +x_1127 = l_Lean_Syntax_inhabited; +x_1128 = lean_unsigned_to_nat(0u); +x_1129 = lean_array_get(x_1127, x_5, x_1128); +x_1130 = lean_array_get(x_1127, x_5, x_833); +x_1131 = l_Lean_Syntax_getArgs(x_1130); +lean_dec(x_1130); +lean_inc(x_850); +x_1132 = l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__3(x_2, x_1131, x_1128, x_7, x_850, x_835); +if (lean_obj_tag(x_1132) == 0) +{ +lean_object* x_1133; lean_object* x_1134; lean_object* x_1135; uint8_t x_1136; lean_object* x_1137; +x_1133 = lean_ctor_get(x_1132, 0); lean_inc(x_1133); -if (lean_is_exclusive(x_1089)) { - lean_ctor_release(x_1089, 0); - lean_ctor_release(x_1089, 1); - x_1134 = x_1089; -} else { - lean_dec_ref(x_1089); - x_1134 = lean_box(0); -} -if (lean_is_scalar(x_1134)) { - x_1135 = lean_alloc_ctor(1, 2, 0); -} else { - x_1135 = x_1134; -} -lean_ctor_set(x_1135, 0, x_1132); -lean_ctor_set(x_1135, 1, x_1133); -return x_1135; -} -} -} -else -{ -uint8_t x_1136; lean_object* x_1137; -lean_dec(x_1080); +x_1134 = lean_ctor_get(x_1132, 1); +lean_inc(x_1134); +lean_dec(x_1132); +x_1135 = lean_ctor_get(x_1133, 1); +lean_inc(x_1135); +lean_dec(x_1133); x_1136 = 1; -lean_inc(x_1); -x_1137 = l___private_Lean_Elab_Match_14__processIdAux(x_1, x_1136, x_2, x_1040, x_1026); +lean_inc(x_850); +x_1137 = l___private_Lean_Elab_Match_16__processIdAux(x_1129, x_1136, x_1135, x_850, x_1134); if (lean_obj_tag(x_1137) == 0) { -lean_object* x_1138; lean_object* x_1139; lean_object* x_1140; lean_object* x_1141; lean_object* x_1142; lean_object* x_1143; lean_object* x_1144; +lean_object* x_1138; lean_object* x_1139; lean_object* x_1140; lean_object* x_1141; lean_object* x_1142; lean_object* x_1143; lean_object* x_1144; lean_object* x_1145; x_1138 = lean_ctor_get(x_1137, 0); lean_inc(x_1138); x_1139 = lean_ctor_get(x_1137, 1); lean_inc(x_1139); -if (lean_is_exclusive(x_1137)) { - lean_ctor_release(x_1137, 0); - lean_ctor_release(x_1137, 1); - x_1140 = x_1137; -} else { - lean_dec_ref(x_1137); - x_1140 = lean_box(0); -} +lean_dec(x_1137); +x_1140 = lean_ctor_get(x_1138, 0); +lean_inc(x_1140); x_1141 = lean_ctor_get(x_1138, 1); lean_inc(x_1141); -if (lean_is_exclusive(x_1138)) { - lean_ctor_release(x_1138, 0); - lean_ctor_release(x_1138, 1); - x_1142 = x_1138; +lean_dec(x_1138); +x_1142 = x_1131; +x_1143 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4___boxed), 6, 3); +lean_closure_set(x_1143, 0, x_1140); +lean_closure_set(x_1143, 1, x_1128); +lean_closure_set(x_1143, 2, x_1142); +x_1144 = x_1143; +x_1145 = lean_apply_3(x_1144, x_1141, x_850, x_1139); +if (lean_obj_tag(x_1145) == 0) +{ +lean_object* x_1146; lean_object* x_1147; lean_object* x_1148; lean_object* x_1149; lean_object* x_1150; lean_object* x_1151; lean_object* x_1152; lean_object* x_1153; lean_object* x_1154; lean_object* x_1155; lean_object* x_1156; lean_object* x_1157; +x_1146 = lean_ctor_get(x_1145, 0); +lean_inc(x_1146); +x_1147 = lean_ctor_get(x_1145, 1); +lean_inc(x_1147); +if (lean_is_exclusive(x_1145)) { + lean_ctor_release(x_1145, 0); + lean_ctor_release(x_1145, 1); + x_1148 = x_1145; } else { - lean_dec_ref(x_1138); - x_1142 = lean_box(0); + lean_dec_ref(x_1145); + x_1148 = lean_box(0); } -if (lean_is_scalar(x_1142)) { - x_1143 = lean_alloc_ctor(0, 2, 0); +x_1149 = lean_ctor_get(x_1146, 0); +lean_inc(x_1149); +x_1150 = lean_ctor_get(x_1146, 1); +lean_inc(x_1150); +if (lean_is_exclusive(x_1146)) { + lean_ctor_release(x_1146, 0); + lean_ctor_release(x_1146, 1); + x_1151 = x_1146; } else { - x_1143 = x_1142; + lean_dec_ref(x_1146); + x_1151 = lean_box(0); } -lean_ctor_set(x_1143, 0, x_1); -lean_ctor_set(x_1143, 1, x_1141); -if (lean_is_scalar(x_1140)) { - x_1144 = lean_alloc_ctor(0, 2, 0); +x_1152 = l_Lean_nullKind; +x_1153 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1153, 0, x_1152); +lean_ctor_set(x_1153, 1, x_1149); +x_1154 = lean_array_set(x_5, x_833, x_1153); +x_1155 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1155, 0, x_3); +lean_ctor_set(x_1155, 1, x_1154); +if (lean_is_scalar(x_1151)) { + x_1156 = lean_alloc_ctor(0, 2, 0); } else { - x_1144 = x_1140; + x_1156 = x_1151; } -lean_ctor_set(x_1144, 0, x_1143); -lean_ctor_set(x_1144, 1, x_1139); -return x_1144; +lean_ctor_set(x_1156, 0, x_1155); +lean_ctor_set(x_1156, 1, x_1150); +if (lean_is_scalar(x_1148)) { + x_1157 = lean_alloc_ctor(0, 2, 0); +} else { + x_1157 = x_1148; +} +lean_ctor_set(x_1157, 0, x_1156); +lean_ctor_set(x_1157, 1, x_1147); +return x_1157; } else { -lean_object* x_1145; lean_object* x_1146; lean_object* x_1147; lean_object* x_1148; -lean_dec(x_1); -x_1145 = lean_ctor_get(x_1137, 0); -lean_inc(x_1145); -x_1146 = lean_ctor_get(x_1137, 1); -lean_inc(x_1146); +lean_object* x_1158; lean_object* x_1159; lean_object* x_1160; lean_object* x_1161; +lean_dec(x_5); +lean_dec(x_3); +x_1158 = lean_ctor_get(x_1145, 0); +lean_inc(x_1158); +x_1159 = lean_ctor_get(x_1145, 1); +lean_inc(x_1159); +if (lean_is_exclusive(x_1145)) { + lean_ctor_release(x_1145, 0); + lean_ctor_release(x_1145, 1); + x_1160 = x_1145; +} else { + lean_dec_ref(x_1145); + x_1160 = lean_box(0); +} +if (lean_is_scalar(x_1160)) { + x_1161 = lean_alloc_ctor(1, 2, 0); +} else { + x_1161 = x_1160; +} +lean_ctor_set(x_1161, 0, x_1158); +lean_ctor_set(x_1161, 1, x_1159); +return x_1161; +} +} +else +{ +lean_object* x_1162; lean_object* x_1163; lean_object* x_1164; lean_object* x_1165; +lean_dec(x_1131); +lean_dec(x_850); +lean_dec(x_5); +lean_dec(x_3); +x_1162 = lean_ctor_get(x_1137, 0); +lean_inc(x_1162); +x_1163 = lean_ctor_get(x_1137, 1); +lean_inc(x_1163); if (lean_is_exclusive(x_1137)) { lean_ctor_release(x_1137, 0); lean_ctor_release(x_1137, 1); - x_1147 = x_1137; + x_1164 = x_1137; } else { lean_dec_ref(x_1137); - x_1147 = lean_box(0); -} -if (lean_is_scalar(x_1147)) { - x_1148 = lean_alloc_ctor(1, 2, 0); -} else { - x_1148 = x_1147; -} -lean_ctor_set(x_1148, 0, x_1145); -lean_ctor_set(x_1148, 1, x_1146); -return x_1148; -} -} -} -else -{ -lean_object* x_1149; -lean_dec(x_1077); -lean_inc(x_1); -x_1149 = l___private_Lean_Elab_Match_16__processId(x_1, x_2, x_1040, x_1026); -if (lean_obj_tag(x_1149) == 0) -{ -lean_object* x_1150; lean_object* x_1151; lean_object* x_1152; lean_object* x_1153; lean_object* x_1154; lean_object* x_1155; lean_object* x_1156; -x_1150 = lean_ctor_get(x_1149, 0); -lean_inc(x_1150); -x_1151 = lean_ctor_get(x_1149, 1); -lean_inc(x_1151); -if (lean_is_exclusive(x_1149)) { - lean_ctor_release(x_1149, 0); - lean_ctor_release(x_1149, 1); - x_1152 = x_1149; -} else { - lean_dec_ref(x_1149); - x_1152 = lean_box(0); -} -x_1153 = lean_ctor_get(x_1150, 1); -lean_inc(x_1153); -if (lean_is_exclusive(x_1150)) { - lean_ctor_release(x_1150, 0); - lean_ctor_release(x_1150, 1); - x_1154 = x_1150; -} else { - lean_dec_ref(x_1150); - x_1154 = lean_box(0); -} -if (lean_is_scalar(x_1154)) { - x_1155 = lean_alloc_ctor(0, 2, 0); -} else { - x_1155 = x_1154; -} -lean_ctor_set(x_1155, 0, x_1); -lean_ctor_set(x_1155, 1, x_1153); -if (lean_is_scalar(x_1152)) { - x_1156 = lean_alloc_ctor(0, 2, 0); -} else { - x_1156 = x_1152; -} -lean_ctor_set(x_1156, 0, x_1155); -lean_ctor_set(x_1156, 1, x_1151); -return x_1156; -} -else -{ -lean_object* x_1157; lean_object* x_1158; lean_object* x_1159; lean_object* x_1160; -lean_dec(x_1); -x_1157 = lean_ctor_get(x_1149, 0); -lean_inc(x_1157); -x_1158 = lean_ctor_get(x_1149, 1); -lean_inc(x_1158); -if (lean_is_exclusive(x_1149)) { - lean_ctor_release(x_1149, 0); - lean_ctor_release(x_1149, 1); - x_1159 = x_1149; -} else { - lean_dec_ref(x_1149); - x_1159 = lean_box(0); -} -if (lean_is_scalar(x_1159)) { - x_1160 = lean_alloc_ctor(1, 2, 0); -} else { - x_1160 = x_1159; -} -lean_ctor_set(x_1160, 0, x_1157); -lean_ctor_set(x_1160, 1, x_1158); -return x_1160; -} -} -} -} -else -{ -lean_object* x_1161; lean_object* x_1162; uint8_t x_1163; -x_1161 = l_Lean_Syntax_inhabited; -x_1162 = lean_array_get(x_1161, x_6, x_1024); -x_1163 = l_Lean_Syntax_isNone(x_1162); -if (x_1163 == 0) -{ -lean_object* x_1164; lean_object* x_1165; lean_object* x_1166; lean_object* x_1167; uint8_t x_1168; -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - x_1164 = x_1; -} else { - lean_dec_ref(x_1); x_1164 = lean_box(0); } -x_1165 = lean_unsigned_to_nat(0u); -x_1166 = l_Lean_Syntax_getArg(x_1162, x_1165); -x_1167 = l_Lean_Syntax_getArg(x_1162, x_1024); -x_1168 = l_Lean_Syntax_isNone(x_1167); -if (x_1168 == 0) -{ -lean_object* x_1169; lean_object* x_1170; uint8_t x_1171; -x_1169 = l_Lean_Syntax_getArg(x_1167, x_1165); -x_1170 = l_Lean_Parser_Term_typeAscription___elambda__1___closed__2; -lean_inc(x_1169); -x_1171 = l_Lean_Syntax_isOfKind(x_1169, x_1170); -if (x_1171 == 0) -{ -lean_object* x_1172; -lean_inc(x_1040); -x_1172 = l___private_Lean_Elab_Match_18__collect___main(x_1166, x_2, x_1040, x_1026); -if (lean_obj_tag(x_1172) == 0) -{ -lean_object* x_1173; lean_object* x_1174; lean_object* x_1175; lean_object* x_1176; lean_object* x_1177; lean_object* x_1178; lean_object* x_1179; lean_object* x_1180; lean_object* x_1181; -x_1173 = lean_ctor_get(x_1172, 0); -lean_inc(x_1173); -x_1174 = lean_ctor_get(x_1172, 1); -lean_inc(x_1174); -lean_dec(x_1172); -x_1175 = lean_ctor_get(x_1173, 0); -lean_inc(x_1175); -x_1176 = lean_ctor_get(x_1173, 1); -lean_inc(x_1176); -lean_dec(x_1173); -x_1177 = l_Lean_Syntax_setArg(x_1162, x_1165, x_1175); -x_1178 = l_Lean_Syntax_getArg(x_1169, x_1024); -x_1179 = l_Lean_Syntax_getArgs(x_1178); -lean_dec(x_1178); -x_1180 = l___private_Lean_Elab_Match_18__collect___main___closed__9; -x_1181 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_18__collect___main___spec__1(x_1179, x_1180, x_1176, x_1040, x_1174); -lean_dec(x_1179); -if (lean_obj_tag(x_1181) == 0) -{ -lean_object* x_1182; lean_object* x_1183; lean_object* x_1184; lean_object* x_1185; lean_object* x_1186; lean_object* x_1187; lean_object* x_1188; lean_object* x_1189; lean_object* x_1190; lean_object* x_1191; lean_object* x_1192; lean_object* x_1193; lean_object* x_1194; lean_object* x_1195; lean_object* x_1196; -x_1182 = lean_ctor_get(x_1181, 0); -lean_inc(x_1182); -x_1183 = lean_ctor_get(x_1181, 1); -lean_inc(x_1183); -if (lean_is_exclusive(x_1181)) { - lean_ctor_release(x_1181, 0); - lean_ctor_release(x_1181, 1); - x_1184 = x_1181; -} else { - lean_dec_ref(x_1181); - x_1184 = lean_box(0); -} -x_1185 = lean_ctor_get(x_1182, 0); -lean_inc(x_1185); -x_1186 = lean_ctor_get(x_1182, 1); -lean_inc(x_1186); -if (lean_is_exclusive(x_1182)) { - lean_ctor_release(x_1182, 0); - lean_ctor_release(x_1182, 1); - x_1187 = x_1182; -} else { - lean_dec_ref(x_1182); - x_1187 = lean_box(0); -} -x_1188 = l_Lean_nullKind; if (lean_is_scalar(x_1164)) { - x_1189 = lean_alloc_ctor(1, 2, 0); + x_1165 = lean_alloc_ctor(1, 2, 0); } else { - x_1189 = x_1164; + x_1165 = x_1164; } -lean_ctor_set(x_1189, 0, x_1188); -lean_ctor_set(x_1189, 1, x_1185); -x_1190 = l_Lean_Syntax_setArg(x_1169, x_1024, x_1189); -x_1191 = l_Lean_Syntax_setArg(x_1167, x_1165, x_1190); -x_1192 = l_Lean_Syntax_setArg(x_1177, x_1024, x_1191); -x_1193 = lean_array_set(x_6, x_1024, x_1192); -x_1194 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1194, 0, x_5); -lean_ctor_set(x_1194, 1, x_1193); -if (lean_is_scalar(x_1187)) { - x_1195 = lean_alloc_ctor(0, 2, 0); -} else { - x_1195 = x_1187; +lean_ctor_set(x_1165, 0, x_1162); +lean_ctor_set(x_1165, 1, x_1163); +return x_1165; } -lean_ctor_set(x_1195, 0, x_1194); -lean_ctor_set(x_1195, 1, x_1186); -if (lean_is_scalar(x_1184)) { - x_1196 = lean_alloc_ctor(0, 2, 0); -} else { - x_1196 = x_1184; -} -lean_ctor_set(x_1196, 0, x_1195); -lean_ctor_set(x_1196, 1, x_1183); -return x_1196; } else { -lean_object* x_1197; lean_object* x_1198; lean_object* x_1199; lean_object* x_1200; -lean_dec(x_1177); -lean_dec(x_1169); -lean_dec(x_1167); -lean_dec(x_1164); -lean_dec(x_6); +lean_object* x_1166; lean_object* x_1167; lean_object* x_1168; lean_object* x_1169; +lean_dec(x_1131); +lean_dec(x_1129); +lean_dec(x_850); lean_dec(x_5); -x_1197 = lean_ctor_get(x_1181, 0); -lean_inc(x_1197); -x_1198 = lean_ctor_get(x_1181, 1); -lean_inc(x_1198); -if (lean_is_exclusive(x_1181)) { - lean_ctor_release(x_1181, 0); - lean_ctor_release(x_1181, 1); - x_1199 = x_1181; +lean_dec(x_3); +x_1166 = lean_ctor_get(x_1132, 0); +lean_inc(x_1166); +x_1167 = lean_ctor_get(x_1132, 1); +lean_inc(x_1167); +if (lean_is_exclusive(x_1132)) { + lean_ctor_release(x_1132, 0); + lean_ctor_release(x_1132, 1); + x_1168 = x_1132; } else { - lean_dec_ref(x_1181); - x_1199 = lean_box(0); + lean_dec_ref(x_1132); + x_1168 = lean_box(0); } -if (lean_is_scalar(x_1199)) { - x_1200 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1168)) { + x_1169 = lean_alloc_ctor(1, 2, 0); } else { - x_1200 = x_1199; + x_1169 = x_1168; } -lean_ctor_set(x_1200, 0, x_1197); -lean_ctor_set(x_1200, 1, x_1198); -return x_1200; +lean_ctor_set(x_1169, 0, x_1166); +lean_ctor_set(x_1169, 1, x_1167); +return x_1169; } } +} +} +} +lean_object* l___private_Lean_Elab_Match_20__collect___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 1: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +x_7 = l_Lean_mkAppStx___closed__8; +x_8 = lean_name_eq(x_5, x_7); +if (x_8 == 0) +{ +uint8_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_9 = 0; +x_10 = l_Lean_mkAppStx___closed__6; +x_11 = lean_box(x_9); +lean_inc(x_1); +x_12 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_20__collect___main___lambda__2___boxed), 9, 6); +lean_closure_set(x_12, 0, x_11); +lean_closure_set(x_12, 1, x_10); +lean_closure_set(x_12, 2, x_5); +lean_closure_set(x_12, 3, x_1); +lean_closure_set(x_12, 4, x_6); +lean_closure_set(x_12, 5, x_7); +x_13 = l_Lean_Elab_Term_CollectPatternVars_withRef___rarg(x_1, x_12, x_2, x_3, x_4); +return x_13; +} else { -lean_object* x_1201; lean_object* x_1202; lean_object* x_1203; lean_object* x_1204; -lean_dec(x_1169); -lean_dec(x_1167); -lean_dec(x_1164); -lean_dec(x_1162); -lean_dec(x_1040); -lean_dec(x_6); -lean_dec(x_5); -x_1201 = lean_ctor_get(x_1172, 0); -lean_inc(x_1201); -x_1202 = lean_ctor_get(x_1172, 1); -lean_inc(x_1202); -if (lean_is_exclusive(x_1172)) { - lean_ctor_release(x_1172, 0); - lean_ctor_release(x_1172, 1); - x_1203 = x_1172; -} else { - lean_dec_ref(x_1172); - x_1203 = lean_box(0); -} -if (lean_is_scalar(x_1203)) { - x_1204 = lean_alloc_ctor(1, 2, 0); -} else { - x_1204 = x_1203; -} -lean_ctor_set(x_1204, 0, x_1201); -lean_ctor_set(x_1204, 1, x_1202); -return x_1204; -} -} -else -{ -lean_object* x_1205; -lean_dec(x_1169); -lean_dec(x_1167); -x_1205 = l___private_Lean_Elab_Match_18__collect___main(x_1166, x_2, x_1040, x_1026); -if (lean_obj_tag(x_1205) == 0) -{ -lean_object* x_1206; lean_object* x_1207; lean_object* x_1208; lean_object* x_1209; lean_object* x_1210; lean_object* x_1211; lean_object* x_1212; lean_object* x_1213; lean_object* x_1214; lean_object* x_1215; lean_object* x_1216; -x_1206 = lean_ctor_get(x_1205, 0); -lean_inc(x_1206); -x_1207 = lean_ctor_get(x_1205, 1); -lean_inc(x_1207); -if (lean_is_exclusive(x_1205)) { - lean_ctor_release(x_1205, 0); - lean_ctor_release(x_1205, 1); - x_1208 = x_1205; -} else { - lean_dec_ref(x_1205); - x_1208 = lean_box(0); -} -x_1209 = lean_ctor_get(x_1206, 0); -lean_inc(x_1209); -x_1210 = lean_ctor_get(x_1206, 1); -lean_inc(x_1210); -if (lean_is_exclusive(x_1206)) { - lean_ctor_release(x_1206, 0); - lean_ctor_release(x_1206, 1); - x_1211 = x_1206; -} else { - lean_dec_ref(x_1206); - x_1211 = lean_box(0); -} -x_1212 = l_Lean_Syntax_setArg(x_1162, x_1165, x_1209); -x_1213 = lean_array_set(x_6, x_1024, x_1212); -if (lean_is_scalar(x_1164)) { - x_1214 = lean_alloc_ctor(1, 2, 0); -} else { - x_1214 = x_1164; -} -lean_ctor_set(x_1214, 0, x_5); -lean_ctor_set(x_1214, 1, x_1213); -if (lean_is_scalar(x_1211)) { - x_1215 = lean_alloc_ctor(0, 2, 0); -} else { - x_1215 = x_1211; -} -lean_ctor_set(x_1215, 0, x_1214); -lean_ctor_set(x_1215, 1, x_1210); -if (lean_is_scalar(x_1208)) { - x_1216 = lean_alloc_ctor(0, 2, 0); -} else { - x_1216 = x_1208; -} -lean_ctor_set(x_1216, 0, x_1215); -lean_ctor_set(x_1216, 1, x_1207); -return x_1216; -} -else -{ -lean_object* x_1217; lean_object* x_1218; lean_object* x_1219; lean_object* x_1220; -lean_dec(x_1164); -lean_dec(x_1162); -lean_dec(x_6); -lean_dec(x_5); -x_1217 = lean_ctor_get(x_1205, 0); -lean_inc(x_1217); -x_1218 = lean_ctor_get(x_1205, 1); -lean_inc(x_1218); -if (lean_is_exclusive(x_1205)) { - lean_ctor_release(x_1205, 0); - lean_ctor_release(x_1205, 1); - x_1219 = x_1205; -} else { - lean_dec_ref(x_1205); - x_1219 = lean_box(0); -} -if (lean_is_scalar(x_1219)) { - x_1220 = lean_alloc_ctor(1, 2, 0); -} else { - x_1220 = x_1219; -} -lean_ctor_set(x_1220, 0, x_1217); -lean_ctor_set(x_1220, 1, x_1218); -return x_1220; -} -} -} -else -{ -lean_object* x_1221; -lean_dec(x_1167); -x_1221 = l___private_Lean_Elab_Match_18__collect___main(x_1166, x_2, x_1040, x_1026); -if (lean_obj_tag(x_1221) == 0) -{ -lean_object* x_1222; lean_object* x_1223; lean_object* x_1224; lean_object* x_1225; lean_object* x_1226; lean_object* x_1227; lean_object* x_1228; lean_object* x_1229; lean_object* x_1230; lean_object* x_1231; lean_object* x_1232; -x_1222 = lean_ctor_get(x_1221, 0); -lean_inc(x_1222); -x_1223 = lean_ctor_get(x_1221, 1); -lean_inc(x_1223); -if (lean_is_exclusive(x_1221)) { - lean_ctor_release(x_1221, 0); - lean_ctor_release(x_1221, 1); - x_1224 = x_1221; -} else { - lean_dec_ref(x_1221); - x_1224 = lean_box(0); -} -x_1225 = lean_ctor_get(x_1222, 0); -lean_inc(x_1225); -x_1226 = lean_ctor_get(x_1222, 1); -lean_inc(x_1226); -if (lean_is_exclusive(x_1222)) { - lean_ctor_release(x_1222, 0); - lean_ctor_release(x_1222, 1); - x_1227 = x_1222; -} else { - lean_dec_ref(x_1222); - x_1227 = lean_box(0); -} -x_1228 = l_Lean_Syntax_setArg(x_1162, x_1165, x_1225); -x_1229 = lean_array_set(x_6, x_1024, x_1228); -if (lean_is_scalar(x_1164)) { - x_1230 = lean_alloc_ctor(1, 2, 0); -} else { - x_1230 = x_1164; -} -lean_ctor_set(x_1230, 0, x_5); -lean_ctor_set(x_1230, 1, x_1229); -if (lean_is_scalar(x_1227)) { - x_1231 = lean_alloc_ctor(0, 2, 0); -} else { - x_1231 = x_1227; -} -lean_ctor_set(x_1231, 0, x_1230); -lean_ctor_set(x_1231, 1, x_1226); -if (lean_is_scalar(x_1224)) { - x_1232 = lean_alloc_ctor(0, 2, 0); -} else { - x_1232 = x_1224; -} -lean_ctor_set(x_1232, 0, x_1231); -lean_ctor_set(x_1232, 1, x_1223); -return x_1232; -} -else -{ -lean_object* x_1233; lean_object* x_1234; lean_object* x_1235; lean_object* x_1236; -lean_dec(x_1164); -lean_dec(x_1162); -lean_dec(x_6); -lean_dec(x_5); -x_1233 = lean_ctor_get(x_1221, 0); -lean_inc(x_1233); -x_1234 = lean_ctor_get(x_1221, 1); -lean_inc(x_1234); -if (lean_is_exclusive(x_1221)) { - lean_ctor_release(x_1221, 0); - lean_ctor_release(x_1221, 1); - x_1235 = x_1221; -} else { - lean_dec_ref(x_1221); - x_1235 = lean_box(0); -} -if (lean_is_scalar(x_1235)) { - x_1236 = lean_alloc_ctor(1, 2, 0); -} else { - x_1236 = x_1235; -} -lean_ctor_set(x_1236, 0, x_1233); -lean_ctor_set(x_1236, 1, x_1234); -return x_1236; -} -} -} -else -{ -lean_object* x_1237; lean_object* x_1238; -lean_dec(x_1162); -lean_dec(x_1040); -lean_dec(x_6); -lean_dec(x_5); -x_1237 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1237, 0, x_1); -lean_ctor_set(x_1237, 1, x_2); -x_1238 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1238, 0, x_1237); -lean_ctor_set(x_1238, 1, x_1026); -return x_1238; -} -} -} -else -{ -lean_object* x_1239; lean_object* x_1240; lean_object* x_1241; lean_object* x_1242; lean_object* x_1243; lean_object* x_1244; lean_object* x_1245; lean_object* x_1246; lean_object* x_1247; lean_object* x_1248; lean_object* x_1249; lean_object* x_1250; lean_object* x_1251; lean_object* x_1252; lean_object* x_1253; lean_object* x_1254; lean_object* x_1255; lean_object* x_1256; lean_object* x_1257; lean_object* x_1258; lean_object* x_1259; lean_object* x_1260; lean_object* x_1261; lean_object* x_1262; lean_object* x_1263; lean_object* x_1264; lean_object* x_1265; lean_object* x_1266; -lean_dec(x_6); -lean_dec(x_5); -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - x_1239 = x_1; -} else { - lean_dec_ref(x_1); - x_1239 = lean_box(0); -} -x_1240 = l_Lean_Elab_Term_getCurrMacroScope(x_1040, x_1026); -lean_dec(x_1040); -x_1241 = lean_ctor_get(x_1240, 0); -lean_inc(x_1241); -x_1242 = lean_ctor_get(x_1240, 1); -lean_inc(x_1242); -lean_dec(x_1240); -x_1243 = l_Lean_Elab_Term_getMainModule___rarg(x_1242); -x_1244 = lean_ctor_get(x_1243, 0); -lean_inc(x_1244); -x_1245 = lean_ctor_get(x_1243, 1); -lean_inc(x_1245); -if (lean_is_exclusive(x_1243)) { - lean_ctor_release(x_1243, 0); - lean_ctor_release(x_1243, 1); - x_1246 = x_1243; -} else { - lean_dec_ref(x_1243); - x_1246 = lean_box(0); -} -x_1247 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; -x_1248 = l_Lean_addMacroScope(x_1244, x_1247, x_1241); -x_1249 = lean_box(0); -x_1250 = l_Lean_SourceInfo_inhabited___closed__1; -x_1251 = l___private_Lean_Elab_Match_18__collect___main___closed__13; -x_1252 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1252, 0, x_1250); -lean_ctor_set(x_1252, 1, x_1251); -lean_ctor_set(x_1252, 2, x_1248); -lean_ctor_set(x_1252, 3, x_1249); -x_1253 = l___private_Lean_Elab_Match_18__collect___main___closed__11; -x_1254 = lean_array_push(x_1253, x_1252); -x_1255 = l_Lean_Parser_Term_namedHole___elambda__1___closed__2; -if (lean_is_scalar(x_1239)) { - x_1256 = lean_alloc_ctor(1, 2, 0); -} else { - x_1256 = x_1239; -} -lean_ctor_set(x_1256, 0, x_1255); -lean_ctor_set(x_1256, 1, x_1254); -x_1257 = lean_ctor_get(x_2, 0); -lean_inc(x_1257); -x_1258 = lean_ctor_get(x_2, 1); -lean_inc(x_1258); -if (lean_is_exclusive(x_2)) { - lean_ctor_release(x_2, 0); - lean_ctor_release(x_2, 1); - x_1259 = x_2; -} else { - lean_dec_ref(x_2); - x_1259 = lean_box(0); -} -x_1260 = l_Lean_Syntax_getArg(x_1256, x_1024); -x_1261 = l_Lean_Syntax_getId(x_1260); -lean_dec(x_1260); -x_1262 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1262, 0, x_1261); -x_1263 = lean_array_push(x_1258, x_1262); -if (lean_is_scalar(x_1259)) { - x_1264 = lean_alloc_ctor(0, 2, 0); -} else { - x_1264 = x_1259; -} -lean_ctor_set(x_1264, 0, x_1257); -lean_ctor_set(x_1264, 1, x_1263); -x_1265 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1265, 0, x_1256); -lean_ctor_set(x_1265, 1, x_1264); -if (lean_is_scalar(x_1246)) { - x_1266 = lean_alloc_ctor(0, 2, 0); -} else { - x_1266 = x_1246; -} -lean_ctor_set(x_1266, 0, x_1265); -lean_ctor_set(x_1266, 1, x_1245); -return x_1266; -} -} -else -{ -lean_object* x_1267; lean_object* x_1268; lean_object* x_1269; uint8_t x_1270; lean_object* x_1271; lean_object* x_1272; lean_object* x_1273; uint8_t x_1274; -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - x_1267 = x_1; -} else { - lean_dec_ref(x_1); - x_1267 = lean_box(0); -} -x_1268 = l_Lean_Syntax_inhabited; -x_1269 = lean_array_get(x_1268, x_6, x_1024); -x_1270 = l_Lean_Syntax_isNone(x_1269); -x_1271 = lean_unsigned_to_nat(2u); -x_1272 = lean_array_get(x_1268, x_6, x_1271); -x_1273 = l_Lean_Syntax_getArgs(x_1272); -lean_dec(x_1272); -if (x_1270 == 0) -{ -uint8_t x_1300; -x_1300 = 0; -x_1274 = x_1300; -goto block_1299; -} -else -{ -uint8_t x_1301; -x_1301 = 1; -x_1274 = x_1301; -goto block_1299; -} -block_1299: -{ -if (x_1274 == 0) -{ -lean_object* x_1275; lean_object* x_1276; lean_object* x_1277; lean_object* x_1278; lean_object* x_1279; lean_object* x_1280; -lean_dec(x_1273); -lean_dec(x_1267); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_2); -x_1275 = l___private_Lean_Elab_Match_18__collect___main___closed__16; -x_1276 = l_Lean_Elab_Term_throwError___rarg(x_1269, x_1275, x_1040, x_1026); -lean_dec(x_1269); -x_1277 = lean_ctor_get(x_1276, 0); -lean_inc(x_1277); -x_1278 = lean_ctor_get(x_1276, 1); -lean_inc(x_1278); -if (lean_is_exclusive(x_1276)) { - lean_ctor_release(x_1276, 0); - lean_ctor_release(x_1276, 1); - x_1279 = x_1276; -} else { - lean_dec_ref(x_1276); - x_1279 = lean_box(0); -} -if (lean_is_scalar(x_1279)) { - x_1280 = lean_alloc_ctor(1, 2, 0); -} else { - x_1280 = x_1279; -} -lean_ctor_set(x_1280, 0, x_1277); -lean_ctor_set(x_1280, 1, x_1278); -return x_1280; -} -else -{ -lean_object* x_1281; lean_object* x_1282; -lean_dec(x_1269); -x_1281 = l___private_Lean_Elab_Match_18__collect___main___closed__17; -x_1282 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_18__collect___main___spec__1(x_1273, x_1281, x_2, x_1040, x_1026); -lean_dec(x_1273); -if (lean_obj_tag(x_1282) == 0) -{ -lean_object* x_1283; lean_object* x_1284; lean_object* x_1285; lean_object* x_1286; lean_object* x_1287; lean_object* x_1288; lean_object* x_1289; lean_object* x_1290; lean_object* x_1291; lean_object* x_1292; lean_object* x_1293; lean_object* x_1294; -x_1283 = lean_ctor_get(x_1282, 0); -lean_inc(x_1283); -x_1284 = lean_ctor_get(x_1282, 1); -lean_inc(x_1284); -if (lean_is_exclusive(x_1282)) { - lean_ctor_release(x_1282, 0); - lean_ctor_release(x_1282, 1); - x_1285 = x_1282; -} else { - lean_dec_ref(x_1282); - x_1285 = lean_box(0); -} -x_1286 = lean_ctor_get(x_1283, 0); -lean_inc(x_1286); -x_1287 = lean_ctor_get(x_1283, 1); -lean_inc(x_1287); -if (lean_is_exclusive(x_1283)) { - lean_ctor_release(x_1283, 0); - lean_ctor_release(x_1283, 1); - x_1288 = x_1283; -} else { - lean_dec_ref(x_1283); - x_1288 = lean_box(0); -} -x_1289 = l_Lean_nullKind; -if (lean_is_scalar(x_1267)) { - x_1290 = lean_alloc_ctor(1, 2, 0); -} else { - x_1290 = x_1267; -} -lean_ctor_set(x_1290, 0, x_1289); -lean_ctor_set(x_1290, 1, x_1286); -x_1291 = lean_array_set(x_6, x_1271, x_1290); -x_1292 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1292, 0, x_5); -lean_ctor_set(x_1292, 1, x_1291); -if (lean_is_scalar(x_1288)) { - x_1293 = lean_alloc_ctor(0, 2, 0); -} else { - x_1293 = x_1288; -} -lean_ctor_set(x_1293, 0, x_1292); -lean_ctor_set(x_1293, 1, x_1287); -if (lean_is_scalar(x_1285)) { - x_1294 = lean_alloc_ctor(0, 2, 0); -} else { - x_1294 = x_1285; -} -lean_ctor_set(x_1294, 0, x_1293); -lean_ctor_set(x_1294, 1, x_1284); -return x_1294; -} -else -{ -lean_object* x_1295; lean_object* x_1296; lean_object* x_1297; lean_object* x_1298; -lean_dec(x_1267); -lean_dec(x_6); -lean_dec(x_5); -x_1295 = lean_ctor_get(x_1282, 0); -lean_inc(x_1295); -x_1296 = lean_ctor_get(x_1282, 1); -lean_inc(x_1296); -if (lean_is_exclusive(x_1282)) { - lean_ctor_release(x_1282, 0); - lean_ctor_release(x_1282, 1); - x_1297 = x_1282; -} else { - lean_dec_ref(x_1282); - x_1297 = lean_box(0); -} -if (lean_is_scalar(x_1297)) { - x_1298 = lean_alloc_ctor(1, 2, 0); -} else { - x_1298 = x_1297; -} -lean_ctor_set(x_1298, 0, x_1295); -lean_ctor_set(x_1298, 1, x_1296); -return x_1298; -} -} -} -} -} -else -{ -lean_object* x_1302; lean_object* x_1303; lean_object* x_1304; lean_object* x_1305; lean_object* x_1306; lean_object* x_1307; -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - x_1302 = x_1; -} else { - lean_dec_ref(x_1); - x_1302 = lean_box(0); -} -x_1303 = l_Lean_Syntax_inhabited; -x_1304 = lean_array_get(x_1303, x_6, x_1024); -x_1305 = l_Lean_Syntax_getArgs(x_1304); -lean_dec(x_1304); -x_1306 = l___private_Lean_Elab_Match_18__collect___main___closed__9; -x_1307 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_18__collect___main___spec__1(x_1305, x_1306, x_2, x_1040, x_1026); -lean_dec(x_1305); -if (lean_obj_tag(x_1307) == 0) -{ -lean_object* x_1308; lean_object* x_1309; lean_object* x_1310; lean_object* x_1311; lean_object* x_1312; lean_object* x_1313; lean_object* x_1314; lean_object* x_1315; lean_object* x_1316; lean_object* x_1317; lean_object* x_1318; lean_object* x_1319; -x_1308 = lean_ctor_get(x_1307, 0); -lean_inc(x_1308); -x_1309 = lean_ctor_get(x_1307, 1); -lean_inc(x_1309); -if (lean_is_exclusive(x_1307)) { - lean_ctor_release(x_1307, 0); - lean_ctor_release(x_1307, 1); - x_1310 = x_1307; -} else { - lean_dec_ref(x_1307); - x_1310 = lean_box(0); -} -x_1311 = lean_ctor_get(x_1308, 0); -lean_inc(x_1311); -x_1312 = lean_ctor_get(x_1308, 1); -lean_inc(x_1312); -if (lean_is_exclusive(x_1308)) { - lean_ctor_release(x_1308, 0); - lean_ctor_release(x_1308, 1); - x_1313 = x_1308; -} else { - lean_dec_ref(x_1308); - x_1313 = lean_box(0); -} -x_1314 = l_Lean_nullKind; -if (lean_is_scalar(x_1302)) { - x_1315 = lean_alloc_ctor(1, 2, 0); -} else { - x_1315 = x_1302; -} -lean_ctor_set(x_1315, 0, x_1314); -lean_ctor_set(x_1315, 1, x_1311); -x_1316 = lean_array_set(x_6, x_1024, x_1315); -x_1317 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1317, 0, x_5); -lean_ctor_set(x_1317, 1, x_1316); -if (lean_is_scalar(x_1313)) { - x_1318 = lean_alloc_ctor(0, 2, 0); -} else { - x_1318 = x_1313; -} -lean_ctor_set(x_1318, 0, x_1317); -lean_ctor_set(x_1318, 1, x_1312); -if (lean_is_scalar(x_1310)) { - x_1319 = lean_alloc_ctor(0, 2, 0); -} else { - x_1319 = x_1310; -} -lean_ctor_set(x_1319, 0, x_1318); -lean_ctor_set(x_1319, 1, x_1309); -return x_1319; -} -else -{ -lean_object* x_1320; lean_object* x_1321; lean_object* x_1322; lean_object* x_1323; -lean_dec(x_1302); -lean_dec(x_6); -lean_dec(x_5); -x_1320 = lean_ctor_get(x_1307, 0); -lean_inc(x_1320); -x_1321 = lean_ctor_get(x_1307, 1); -lean_inc(x_1321); -if (lean_is_exclusive(x_1307)) { - lean_ctor_release(x_1307, 0); - lean_ctor_release(x_1307, 1); - x_1322 = x_1307; -} else { - lean_dec_ref(x_1307); - x_1322 = lean_box(0); -} -if (lean_is_scalar(x_1322)) { - x_1323 = lean_alloc_ctor(1, 2, 0); -} else { - x_1323 = x_1322; -} -lean_ctor_set(x_1323, 0, x_1320); -lean_ctor_set(x_1323, 1, x_1321); -return x_1323; -} -} -} -else -{ -lean_object* x_1324; lean_object* x_1325; lean_object* x_1326; lean_object* x_1327; lean_object* x_1328; lean_object* x_1329; lean_object* x_1330; lean_object* x_1331; -if (lean_is_exclusive(x_1)) { - lean_ctor_release(x_1, 0); - lean_ctor_release(x_1, 1); - x_1324 = x_1; -} else { - lean_dec_ref(x_1); - x_1324 = lean_box(0); -} -x_1325 = l_Lean_Syntax_inhabited; -x_1326 = lean_unsigned_to_nat(0u); -x_1327 = lean_array_get(x_1325, x_6, x_1326); -x_1328 = lean_array_get(x_1325, x_6, x_1024); -x_1329 = l_Lean_Syntax_getArgs(x_1328); -lean_dec(x_1328); -x_1330 = l_Lean_mkAppStx___closed__6; -lean_inc(x_1040); -x_1331 = l_Array_forMAux___main___at___private_Lean_Elab_Match_18__collect___main___spec__3(x_1330, x_1329, x_1326, x_2, x_1040, x_1026); -if (lean_obj_tag(x_1331) == 0) -{ -lean_object* x_1332; lean_object* x_1333; lean_object* x_1334; uint8_t x_1335; lean_object* x_1336; -x_1332 = lean_ctor_get(x_1331, 0); -lean_inc(x_1332); -x_1333 = lean_ctor_get(x_1331, 1); -lean_inc(x_1333); -lean_dec(x_1331); -x_1334 = lean_ctor_get(x_1332, 1); -lean_inc(x_1334); -lean_dec(x_1332); -x_1335 = 1; -lean_inc(x_1040); -x_1336 = l___private_Lean_Elab_Match_14__processIdAux(x_1327, x_1335, x_1334, x_1040, x_1333); -if (lean_obj_tag(x_1336) == 0) -{ -lean_object* x_1337; lean_object* x_1338; lean_object* x_1339; lean_object* x_1340; lean_object* x_1341; lean_object* x_1342; lean_object* x_1343; lean_object* x_1344; -x_1337 = lean_ctor_get(x_1336, 0); -lean_inc(x_1337); -x_1338 = lean_ctor_get(x_1336, 1); -lean_inc(x_1338); -lean_dec(x_1336); -x_1339 = lean_ctor_get(x_1337, 0); -lean_inc(x_1339); -x_1340 = lean_ctor_get(x_1337, 1); -lean_inc(x_1340); -lean_dec(x_1337); -x_1341 = x_1329; -x_1342 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Match_18__collect___main___spec__4___boxed), 6, 3); -lean_closure_set(x_1342, 0, x_1339); -lean_closure_set(x_1342, 1, x_1326); -lean_closure_set(x_1342, 2, x_1341); -x_1343 = x_1342; -x_1344 = lean_apply_3(x_1343, x_1340, x_1040, x_1338); -if (lean_obj_tag(x_1344) == 0) -{ -lean_object* x_1345; lean_object* x_1346; lean_object* x_1347; lean_object* x_1348; lean_object* x_1349; lean_object* x_1350; lean_object* x_1351; lean_object* x_1352; lean_object* x_1353; lean_object* x_1354; lean_object* x_1355; lean_object* x_1356; -x_1345 = lean_ctor_get(x_1344, 0); -lean_inc(x_1345); -x_1346 = lean_ctor_get(x_1344, 1); -lean_inc(x_1346); -if (lean_is_exclusive(x_1344)) { - lean_ctor_release(x_1344, 0); - lean_ctor_release(x_1344, 1); - x_1347 = x_1344; -} else { - lean_dec_ref(x_1344); - x_1347 = lean_box(0); -} -x_1348 = lean_ctor_get(x_1345, 0); -lean_inc(x_1348); -x_1349 = lean_ctor_get(x_1345, 1); -lean_inc(x_1349); -if (lean_is_exclusive(x_1345)) { - lean_ctor_release(x_1345, 0); - lean_ctor_release(x_1345, 1); - x_1350 = x_1345; -} else { - lean_dec_ref(x_1345); - x_1350 = lean_box(0); -} -x_1351 = l_Lean_nullKind; -if (lean_is_scalar(x_1324)) { - x_1352 = lean_alloc_ctor(1, 2, 0); -} else { - x_1352 = x_1324; -} -lean_ctor_set(x_1352, 0, x_1351); -lean_ctor_set(x_1352, 1, x_1348); -x_1353 = lean_array_set(x_6, x_1024, x_1352); -x_1354 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1354, 0, x_5); -lean_ctor_set(x_1354, 1, x_1353); -if (lean_is_scalar(x_1350)) { - x_1355 = lean_alloc_ctor(0, 2, 0); -} else { - x_1355 = x_1350; -} -lean_ctor_set(x_1355, 0, x_1354); -lean_ctor_set(x_1355, 1, x_1349); -if (lean_is_scalar(x_1347)) { - x_1356 = lean_alloc_ctor(0, 2, 0); -} else { - x_1356 = x_1347; -} -lean_ctor_set(x_1356, 0, x_1355); -lean_ctor_set(x_1356, 1, x_1346); -return x_1356; -} -else -{ -lean_object* x_1357; lean_object* x_1358; lean_object* x_1359; lean_object* x_1360; -lean_dec(x_1324); -lean_dec(x_6); -lean_dec(x_5); -x_1357 = lean_ctor_get(x_1344, 0); -lean_inc(x_1357); -x_1358 = lean_ctor_get(x_1344, 1); -lean_inc(x_1358); -if (lean_is_exclusive(x_1344)) { - lean_ctor_release(x_1344, 0); - lean_ctor_release(x_1344, 1); - x_1359 = x_1344; -} else { - lean_dec_ref(x_1344); - x_1359 = lean_box(0); -} -if (lean_is_scalar(x_1359)) { - x_1360 = lean_alloc_ctor(1, 2, 0); -} else { - x_1360 = x_1359; -} -lean_ctor_set(x_1360, 0, x_1357); -lean_ctor_set(x_1360, 1, x_1358); -return x_1360; -} -} -else -{ -lean_object* x_1361; lean_object* x_1362; lean_object* x_1363; lean_object* x_1364; -lean_dec(x_1329); -lean_dec(x_1324); -lean_dec(x_1040); -lean_dec(x_6); -lean_dec(x_5); -x_1361 = lean_ctor_get(x_1336, 0); -lean_inc(x_1361); -x_1362 = lean_ctor_get(x_1336, 1); -lean_inc(x_1362); -if (lean_is_exclusive(x_1336)) { - lean_ctor_release(x_1336, 0); - lean_ctor_release(x_1336, 1); - x_1363 = x_1336; -} else { - lean_dec_ref(x_1336); - x_1363 = lean_box(0); -} -if (lean_is_scalar(x_1363)) { - x_1364 = lean_alloc_ctor(1, 2, 0); -} else { - x_1364 = x_1363; -} -lean_ctor_set(x_1364, 0, x_1361); -lean_ctor_set(x_1364, 1, x_1362); -return x_1364; -} -} -else -{ -lean_object* x_1365; lean_object* x_1366; lean_object* x_1367; lean_object* x_1368; -lean_dec(x_1329); -lean_dec(x_1327); -lean_dec(x_1324); -lean_dec(x_1040); -lean_dec(x_6); -lean_dec(x_5); -x_1365 = lean_ctor_get(x_1331, 0); -lean_inc(x_1365); -x_1366 = lean_ctor_get(x_1331, 1); -lean_inc(x_1366); -if (lean_is_exclusive(x_1331)) { - lean_ctor_release(x_1331, 0); - lean_ctor_release(x_1331, 1); - x_1367 = x_1331; -} else { - lean_dec_ref(x_1331); - x_1367 = lean_box(0); -} -if (lean_is_scalar(x_1367)) { - x_1368 = lean_alloc_ctor(1, 2, 0); -} else { - x_1368 = x_1367; -} -lean_ctor_set(x_1368, 0, x_1365); -lean_ctor_set(x_1368, 1, x_1366); -return x_1368; -} -} +uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_14 = 1; +x_15 = l_Lean_mkAppStx___closed__6; +x_16 = lean_box(x_14); +lean_inc(x_1); +x_17 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_20__collect___main___lambda__2___boxed), 9, 6); +lean_closure_set(x_17, 0, x_16); +lean_closure_set(x_17, 1, x_15); +lean_closure_set(x_17, 2, x_5); +lean_closure_set(x_17, 3, x_1); +lean_closure_set(x_17, 4, x_6); +lean_closure_set(x_17, 5, x_7); +x_18 = l_Lean_Elab_Term_CollectPatternVars_withRef___rarg(x_1, x_17, x_2, x_3, x_4); +return x_18; } } case 3: { -lean_object* x_1369; +lean_object* x_19; lean_inc(x_1); -x_1369 = l___private_Lean_Elab_Match_16__processId(x_1, x_2, x_3, x_4); -if (lean_obj_tag(x_1369) == 0) +x_19 = l___private_Lean_Elab_Match_18__processId(x_1, x_2, x_3, x_4); +if (lean_obj_tag(x_19) == 0) { -uint8_t x_1370; -x_1370 = !lean_is_exclusive(x_1369); -if (x_1370 == 0) +uint8_t x_20; +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) { -lean_object* x_1371; uint8_t x_1372; -x_1371 = lean_ctor_get(x_1369, 0); -x_1372 = !lean_is_exclusive(x_1371); -if (x_1372 == 0) +lean_object* x_21; uint8_t x_22; +x_21 = lean_ctor_get(x_19, 0); +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) { -lean_object* x_1373; -x_1373 = lean_ctor_get(x_1371, 0); -lean_dec(x_1373); -lean_ctor_set(x_1371, 0, x_1); -return x_1369; +lean_object* x_23; +x_23 = lean_ctor_get(x_21, 0); +lean_dec(x_23); +lean_ctor_set(x_21, 0, x_1); +return x_19; } else { -lean_object* x_1374; lean_object* x_1375; -x_1374 = lean_ctor_get(x_1371, 1); -lean_inc(x_1374); -lean_dec(x_1371); -x_1375 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1375, 0, x_1); -lean_ctor_set(x_1375, 1, x_1374); -lean_ctor_set(x_1369, 0, x_1375); -return x_1369; +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_21, 1); +lean_inc(x_24); +lean_dec(x_21); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_1); +lean_ctor_set(x_25, 1, x_24); +lean_ctor_set(x_19, 0, x_25); +return x_19; } } else { -lean_object* x_1376; lean_object* x_1377; lean_object* x_1378; lean_object* x_1379; lean_object* x_1380; lean_object* x_1381; -x_1376 = lean_ctor_get(x_1369, 0); -x_1377 = lean_ctor_get(x_1369, 1); -lean_inc(x_1377); -lean_inc(x_1376); -lean_dec(x_1369); -x_1378 = lean_ctor_get(x_1376, 1); -lean_inc(x_1378); -if (lean_is_exclusive(x_1376)) { - lean_ctor_release(x_1376, 0); - lean_ctor_release(x_1376, 1); - x_1379 = x_1376; +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +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_dec(x_19); +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +if (lean_is_exclusive(x_26)) { + lean_ctor_release(x_26, 0); + lean_ctor_release(x_26, 1); + x_29 = x_26; } else { - lean_dec_ref(x_1376); - x_1379 = lean_box(0); + lean_dec_ref(x_26); + x_29 = lean_box(0); } -if (lean_is_scalar(x_1379)) { - x_1380 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_29)) { + x_30 = lean_alloc_ctor(0, 2, 0); } else { - x_1380 = x_1379; + x_30 = x_29; } -lean_ctor_set(x_1380, 0, x_1); -lean_ctor_set(x_1380, 1, x_1378); -x_1381 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1381, 0, x_1380); -lean_ctor_set(x_1381, 1, x_1377); -return x_1381; +lean_ctor_set(x_30, 0, x_1); +lean_ctor_set(x_30, 1, x_28); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_27); +return x_31; } } else { -uint8_t x_1382; +uint8_t x_32; lean_dec(x_1); -x_1382 = !lean_is_exclusive(x_1369); -if (x_1382 == 0) +x_32 = !lean_is_exclusive(x_19); +if (x_32 == 0) { -return x_1369; +return x_19; } else { -lean_object* x_1383; lean_object* x_1384; lean_object* x_1385; -x_1383 = lean_ctor_get(x_1369, 0); -x_1384 = lean_ctor_get(x_1369, 1); -lean_inc(x_1384); -lean_inc(x_1383); -lean_dec(x_1369); -x_1385 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1385, 0, x_1383); -lean_ctor_set(x_1385, 1, x_1384); -return x_1385; +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_19, 0); +x_34 = lean_ctor_get(x_19, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_19); +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; } } } default: { -lean_object* x_1386; -x_1386 = l___private_Lean_Elab_Match_17__throwInvalidPattern___rarg(x_1, x_2, x_3, x_4); -lean_dec(x_2); +lean_object* x_36; lean_dec(x_1); -return x_1386; +x_36 = l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg(x_2, x_3, x_4); +lean_dec(x_2); +return x_36; } } } } -lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_18__collect___main___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* l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_20__collect___main___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) { _start: { lean_object* x_8; -x_8 = l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_18__collect___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_1); return x_8; } } -lean_object* l_Array_mapSepElemsM___at___private_Lean_Elab_Match_18__collect___main___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* l_Array_mapSepElemsM___at___private_Lean_Elab_Match_20__collect___main___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_18__collect___main___spec__1(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_20__collect___main___spec__1(x_1, x_2, x_3, x_4, x_5); lean_dec(x_1); return x_6; } } -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_18__collect___main___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* l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___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_Array_forMAux___main___at___private_Lean_Elab_Match_18__collect___main___spec__3(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__3(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_2); return x_7; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_18__collect___main___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_20__collect___main___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_Array_umapMAux___main___at___private_Lean_Elab_Match_18__collect___main___spec__4(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Array_umapMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_1); return x_7; } } -lean_object* l___private_Lean_Elab_Match_18__collect(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Match_20__collect___main___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: +{ +uint8_t x_10; lean_object* x_11; +x_10 = lean_unbox(x_1); +lean_dec(x_1); +x_11 = l___private_Lean_Elab_Match_20__collect___main___lambda__2(x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_11; +} +} +lean_object* l___private_Lean_Elab_Match_20__collect(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Lean_Elab_Match_18__collect___main(x_1, x_2, x_3, x_4); +x_5 = l___private_Lean_Elab_Match_20__collect___main(x_1, x_2, x_3, x_4); return x_5; } } @@ -16472,7 +16111,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Elab_Util_4__regTraceClasses___closed__1; -x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__1; +x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -16528,7 +16167,7 @@ return x_10; } else { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +lean_object* x_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; uint8_t x_22; x_11 = lean_array_fget(x_2, x_1); x_12 = lean_unsigned_to_nat(0u); x_13 = lean_array_fset(x_2, x_1, x_12); @@ -16539,128 +16178,136 @@ lean_inc(x_16); x_17 = lean_ctor_get(x_15, 1); lean_inc(x_17); lean_dec(x_15); -x_18 = l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__1___closed__1; -x_19 = l_Lean_checkTraceOption(x_16, x_18); +x_18 = l_Lean_Elab_Term_getCurrRef(x_4, x_17); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +x_21 = l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__1___closed__1; +x_22 = l_Lean_checkTraceOption(x_16, x_21); lean_dec(x_16); -if (x_19 == 0) +if (x_22 == 0) { -lean_object* x_20; +lean_object* x_23; +lean_dec(x_19); lean_inc(x_4); -x_20 = l___private_Lean_Elab_Match_18__collect___main(x_14, x_3, x_4, x_17); -if (lean_obj_tag(x_20) == 0) +x_23 = l___private_Lean_Elab_Match_20__collect___main(x_14, x_3, x_4, x_20); +if (lean_obj_tag(x_23) == 0) { -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -x_22 = lean_ctor_get(x_20, 1); -lean_inc(x_22); -lean_dec(x_20); -x_23 = lean_ctor_get(x_21, 0); -lean_inc(x_23); -x_24 = lean_ctor_get(x_21, 1); +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; +x_24 = lean_ctor_get(x_23, 0); lean_inc(x_24); -lean_dec(x_21); -x_25 = lean_unsigned_to_nat(1u); -x_26 = lean_nat_add(x_1, x_25); -x_27 = x_23; -x_28 = lean_array_fset(x_13, x_1, x_27); +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); +x_27 = lean_ctor_get(x_24, 1); +lean_inc(x_27); +lean_dec(x_24); +x_28 = lean_unsigned_to_nat(1u); +x_29 = lean_nat_add(x_1, x_28); +x_30 = x_26; +x_31 = lean_array_fset(x_13, x_1, x_30); lean_dec(x_1); -x_1 = x_26; -x_2 = x_28; -x_3 = x_24; -x_5 = x_22; +x_1 = x_29; +x_2 = x_31; +x_3 = x_27; +x_5 = x_25; goto _start; } else { -uint8_t x_30; +uint8_t x_33; lean_dec(x_13); lean_dec(x_4); lean_dec(x_1); -x_30 = !lean_is_exclusive(x_20); -if (x_30 == 0) +x_33 = !lean_is_exclusive(x_23); +if (x_33 == 0) { -return x_20; +return x_23; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_20, 0); -x_32 = lean_ctor_get(x_20, 1); -lean_inc(x_32); -lean_inc(x_31); -lean_dec(x_20); -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* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_23, 0); +x_35 = lean_ctor_get(x_23, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_23); +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; } } } else { -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_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_inc(x_14); -x_34 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_34, 0, x_14); -x_35 = l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__1___closed__4; -x_36 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_34); +x_37 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_37, 0, x_14); +x_38 = l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__1___closed__4; +x_39 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_37); lean_inc(x_4); -x_37 = l_Lean_Elab_Term_logTrace(x_18, x_14, x_36, x_4, x_17); -x_38 = lean_ctor_get(x_37, 1); -lean_inc(x_38); -lean_dec(x_37); -lean_inc(x_4); -x_39 = l___private_Lean_Elab_Match_18__collect___main(x_14, x_3, x_4, x_38); -if (lean_obj_tag(x_39) == 0) -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_40 = lean_ctor_get(x_39, 0); -lean_inc(x_40); -x_41 = lean_ctor_get(x_39, 1); +x_40 = l_Lean_Elab_Term_logTrace(x_21, x_19, x_39, x_4, x_20); +lean_dec(x_19); +x_41 = lean_ctor_get(x_40, 1); lean_inc(x_41); -lean_dec(x_39); -x_42 = lean_ctor_get(x_40, 0); -lean_inc(x_42); -x_43 = lean_ctor_get(x_40, 1); -lean_inc(x_43); lean_dec(x_40); -x_44 = lean_unsigned_to_nat(1u); -x_45 = lean_nat_add(x_1, x_44); -x_46 = x_42; -x_47 = lean_array_fset(x_13, x_1, x_46); +lean_inc(x_4); +x_42 = l___private_Lean_Elab_Match_20__collect___main(x_14, x_3, x_4, x_41); +if (lean_obj_tag(x_42) == 0) +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_42, 1); +lean_inc(x_44); +lean_dec(x_42); +x_45 = lean_ctor_get(x_43, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_43, 1); +lean_inc(x_46); +lean_dec(x_43); +x_47 = lean_unsigned_to_nat(1u); +x_48 = lean_nat_add(x_1, x_47); +x_49 = x_45; +x_50 = lean_array_fset(x_13, x_1, x_49); lean_dec(x_1); -x_1 = x_45; -x_2 = x_47; -x_3 = x_43; -x_5 = x_41; +x_1 = x_48; +x_2 = x_50; +x_3 = x_46; +x_5 = x_44; goto _start; } else { -uint8_t x_49; +uint8_t x_52; lean_dec(x_13); lean_dec(x_4); lean_dec(x_1); -x_49 = !lean_is_exclusive(x_39); -if (x_49 == 0) +x_52 = !lean_is_exclusive(x_42); +if (x_52 == 0) { -return x_39; +return x_42; } else { -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_39, 0); -x_51 = lean_ctor_get(x_39, 1); -lean_inc(x_51); -lean_inc(x_50); -lean_dec(x_39); -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_50); -lean_ctor_set(x_52, 1, x_51); -return x_52; +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_42, 0); +x_54 = lean_ctor_get(x_42, 1); +lean_inc(x_54); +lean_inc(x_53); +lean_dec(x_42); +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_53); +lean_ctor_set(x_55, 1, x_54); +return x_55; } } } @@ -16871,7 +16518,7 @@ return x_52; } } } -lean_object* _init_l___private_Lean_Elab_Match_19__collectPatternVars___closed__1() { +lean_object* _init_l___private_Lean_Elab_Match_21__collectPatternVars___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -16883,11 +16530,11 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* l___private_Lean_Elab_Match_19__collectPatternVars(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Elab_Match_21__collectPatternVars(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; -x_4 = l___private_Lean_Elab_Match_19__collectPatternVars___closed__1; +x_4 = l___private_Lean_Elab_Match_21__collectPatternVars___closed__1; x_5 = l_Lean_Elab_Term_CollectPatternVars_main(x_1, x_4, x_2, x_3); if (lean_obj_tag(x_5) == 0) { @@ -16988,127 +16635,308 @@ return x_27; } } } -lean_object* l___private_Lean_Elab_Match_20__withPatternVarsAux___main___rarg___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* l_Array_forMAux___main___at___private_Lean_Elab_Match_22__withPatternVarsAux___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_8 = lean_unsigned_to_nat(1u); -x_9 = lean_nat_add(x_1, x_8); -x_10 = l___private_Lean_Elab_Match_20__withPatternVarsAux___main___rarg(x_2, x_3, x_4, x_9, x_6, x_7); -return x_10; -} -} -lean_object* l___private_Lean_Elab_Match_20__withPatternVarsAux___main___rarg(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_5; uint8_t x_6; +x_5 = lean_array_get_size(x_1); +x_6 = lean_nat_dec_lt(x_2, x_5); +lean_dec(x_5); +if (x_6 == 0) { -lean_object* x_7; uint8_t x_8; -x_7 = lean_array_get_size(x_2); -x_8 = lean_nat_dec_lt(x_4, x_7); -lean_dec(x_7); -if (x_8 == 0) -{ -lean_object* x_9; -lean_dec(x_4); +lean_object* x_7; lean_object* x_8; +lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); -x_9 = lean_apply_2(x_3, x_5, x_6); -return x_9; +x_7 = lean_box(0); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_7); +lean_ctor_set(x_8, 1, x_4); +return x_8; } else { -lean_object* x_10; -x_10 = lean_array_fget(x_2, x_4); -if (lean_obj_tag(x_10) == 0) +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_array_fget(x_1, x_2); +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_add(x_2, x_10); +lean_dec(x_2); +if (lean_obj_tag(x_9) == 0) { -lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -lean_dec(x_10); -x_12 = 0; -x_13 = lean_box(0); -lean_inc(x_5); -x_14 = l_Lean_Elab_Term_mkFreshTypeMVar(x_1, x_12, x_13, x_5, x_6); -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -x_16 = lean_ctor_get(x_14, 1); +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_12 = lean_ctor_get(x_9, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_9, 1); +lean_inc(x_13); +lean_dec(x_9); +x_14 = l_Lean_mkFVar(x_13); +lean_inc(x_3); +x_15 = l_Lean_Elab_Term_inferType(x_14, x_3, x_4); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_16 = lean_ctor_get(x_15, 0); lean_inc(x_16); -lean_dec(x_14); -lean_inc(x_1); -x_17 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_20__withPatternVarsAux___main___rarg___lambda__1___boxed), 7, 4); -lean_closure_set(x_17, 0, x_4); -lean_closure_set(x_17, 1, x_1); -lean_closure_set(x_17, 2, x_2); -lean_closure_set(x_17, 3, x_3); -x_18 = 0; -x_19 = l_Lean_Elab_Term_withLocalDecl___rarg(x_1, x_11, x_18, x_15, x_17, x_5, x_16); -lean_dec(x_1); -return x_19; +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_18, 0, x_16); +x_19 = 0; +x_20 = lean_box(0); +lean_inc(x_3); +x_21 = l_Lean_Elab_Term_mkFreshExprMVarWithId(x_12, x_18, x_19, x_20, x_3, x_17); +x_22 = lean_ctor_get(x_21, 1); +lean_inc(x_22); +lean_dec(x_21); +x_2 = x_11; +x_4 = x_22; +goto _start; } else { -lean_object* x_20; lean_object* x_21; -lean_dec(x_10); -x_20 = lean_unsigned_to_nat(1u); -x_21 = lean_nat_add(x_4, x_20); -lean_dec(x_4); -x_4 = x_21; +uint8_t x_24; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_3); +x_24 = !lean_is_exclusive(x_15); +if (x_24 == 0) +{ +return x_15; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_15, 0); +x_26 = lean_ctor_get(x_15, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_15); +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 +{ +lean_dec(x_9); +x_2 = x_11; goto _start; } } } } -lean_object* l___private_Lean_Elab_Match_20__withPatternVarsAux___main(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Match_22__withPatternVarsAux___main___rarg___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) { +_start: +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_add(x_1, x_8); +x_10 = l_Lean_Expr_fvarId_x21(x_5); +x_11 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_11, 0, x_10); +x_12 = lean_array_push(x_2, x_11); +x_13 = l___private_Lean_Elab_Match_22__withPatternVarsAux___main___rarg(x_3, x_4, x_9, x_12, x_6, x_7); +return x_13; +} +} +lean_object* l___private_Lean_Elab_Match_22__withPatternVarsAux___main___rarg___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) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_9 = lean_unsigned_to_nat(1u); +x_10 = lean_nat_add(x_1, x_9); +x_11 = l_Lean_Expr_fvarId_x21(x_6); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_2); +lean_ctor_set(x_12, 1, x_11); +x_13 = lean_array_push(x_3, x_12); +x_14 = l___private_Lean_Elab_Match_22__withPatternVarsAux___main___rarg(x_4, x_5, x_10, x_13, x_7, x_8); +return x_14; +} +} +lean_object* l___private_Lean_Elab_Match_22__withPatternVarsAux___main___rarg(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; uint8_t x_8; +x_7 = lean_array_get_size(x_1); +x_8 = lean_nat_dec_lt(x_3, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +lean_dec(x_3); +lean_dec(x_1); +x_9 = lean_unsigned_to_nat(0u); +lean_inc(x_5); +x_10 = l_Array_forMAux___main___at___private_Lean_Elab_Match_22__withPatternVarsAux___main___spec__1(x_4, x_9, x_5, x_6); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_10, 1); +lean_inc(x_11); +lean_dec(x_10); +x_12 = lean_apply_3(x_2, x_4, x_5, x_11); +return x_12; +} +else +{ +uint8_t x_13; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_13 = !lean_is_exclusive(x_10); +if (x_13 == 0) +{ +return x_10; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_10, 0); +x_15 = lean_ctor_get(x_10, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_10); +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* x_17; +x_17 = lean_array_fget(x_1, x_3); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +lean_dec(x_17); +x_19 = 0; +x_20 = lean_box(0); +lean_inc(x_5); +x_21 = l_Lean_Elab_Term_mkFreshTypeMVar(x_19, x_20, x_5, x_6); +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_alloc_closure((void*)(l___private_Lean_Elab_Match_22__withPatternVarsAux___main___rarg___lambda__1___boxed), 7, 4); +lean_closure_set(x_24, 0, x_3); +lean_closure_set(x_24, 1, x_4); +lean_closure_set(x_24, 2, x_1); +lean_closure_set(x_24, 3, x_2); +x_25 = 0; +x_26 = l_Lean_Elab_Term_withLocalDecl___rarg(x_18, x_25, x_22, x_24, x_5, x_23); +return x_26; +} +else +{ +lean_object* x_27; uint8_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; lean_object* x_37; +x_27 = lean_ctor_get(x_17, 0); +lean_inc(x_27); +lean_dec(x_17); +x_28 = 0; +x_29 = lean_box(0); +lean_inc(x_5); +x_30 = l_Lean_Elab_Term_mkFreshTypeMVar(x_28, x_29, x_5, x_6); +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_30, 1); +lean_inc(x_32); +lean_dec(x_30); +x_33 = l_Lean_Closure_mkNextUserName___rarg___closed__2; +lean_inc(x_3); +x_34 = l_Lean_Name_appendIndexAfter(x_33, x_3); +x_35 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_22__withPatternVarsAux___main___rarg___lambda__2___boxed), 8, 5); +lean_closure_set(x_35, 0, x_3); +lean_closure_set(x_35, 1, x_27); +lean_closure_set(x_35, 2, x_4); +lean_closure_set(x_35, 3, x_1); +lean_closure_set(x_35, 4, x_2); +x_36 = 0; +x_37 = l_Lean_Elab_Term_withLocalDecl___rarg(x_34, x_36, x_31, x_35, x_5, x_32); +return x_37; +} +} +} +} +lean_object* l___private_Lean_Elab_Match_22__withPatternVarsAux___main(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_20__withPatternVarsAux___main___rarg), 6, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_22__withPatternVarsAux___main___rarg), 6, 0); return x_2; } } -lean_object* l___private_Lean_Elab_Match_20__withPatternVarsAux___main___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* l_Array_forMAux___main___at___private_Lean_Elab_Match_22__withPatternVarsAux___main___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Array_forMAux___main___at___private_Lean_Elab_Match_22__withPatternVarsAux___main___spec__1(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} +lean_object* l___private_Lean_Elab_Match_22__withPatternVarsAux___main___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) { _start: { lean_object* x_8; -x_8 = l___private_Lean_Elab_Match_20__withPatternVarsAux___main___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l___private_Lean_Elab_Match_22__withPatternVarsAux___main___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_5); lean_dec(x_1); return x_8; } } -lean_object* l___private_Lean_Elab_Match_20__withPatternVarsAux___rarg(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* l___private_Lean_Elab_Match_22__withPatternVarsAux___main___rarg___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) { +_start: +{ +lean_object* x_9; +x_9 = l___private_Lean_Elab_Match_22__withPatternVarsAux___main___rarg___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_6); +lean_dec(x_1); +return x_9; +} +} +lean_object* l___private_Lean_Elab_Match_22__withPatternVarsAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; -x_7 = l___private_Lean_Elab_Match_20__withPatternVarsAux___main___rarg(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l___private_Lean_Elab_Match_22__withPatternVarsAux___main___rarg(x_1, x_2, x_3, x_4, x_5, x_6); return x_7; } } -lean_object* l___private_Lean_Elab_Match_20__withPatternVarsAux(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Match_22__withPatternVarsAux(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_20__withPatternVarsAux___rarg), 6, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_22__withPatternVarsAux___rarg), 6, 0); return x_2; } } -lean_object* l___private_Lean_Elab_Match_21__withPatternVars___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_Match_23__withPatternVars___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_6; lean_object* x_7; -x_6 = lean_unsigned_to_nat(0u); -x_7 = l___private_Lean_Elab_Match_20__withPatternVarsAux___main___rarg(x_1, x_2, x_3, x_6, x_4, x_5); +lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_5 = lean_unsigned_to_nat(0u); +x_6 = l_Array_empty___closed__1; +x_7 = l___private_Lean_Elab_Match_22__withPatternVarsAux___main___rarg(x_1, x_2, x_5, x_6, x_3, x_4); return x_7; } } -lean_object* l___private_Lean_Elab_Match_21__withPatternVars(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Match_23__withPatternVars(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_21__withPatternVars___rarg), 5, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_23__withPatternVars___rarg), 4, 0); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_22__elabPatternsAux___main___closed__1() { +lean_object* _init_l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__1() { _start: { lean_object* x_1; @@ -17116,111 +16944,349 @@ x_1 = lean_mk_string("unexpected match type"); return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_22__elabPatternsAux___main___closed__2() { +lean_object* _init_l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_22__elabPatternsAux___main___closed__1; +x_1 = l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_22__elabPatternsAux___main___closed__3() { +lean_object* _init_l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_22__elabPatternsAux___main___closed__2; +x_1 = l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Match_22__elabPatternsAux___main(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* l___private_Lean_Elab_Match_24__elabPatternsAux___main(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_8; uint8_t x_9; -x_8 = lean_array_get_size(x_2); -x_9 = lean_nat_dec_lt(x_3, x_8); -lean_dec(x_8); -if (x_9 == 0) +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_get_size(x_1); +x_8 = lean_nat_dec_lt(x_2, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +lean_object* x_9; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_4); +lean_ctor_set(x_9, 1, x_6); +return x_9; +} +else { lean_object* x_10; -lean_dec(x_6); +lean_inc(x_5); +x_10 = l_Lean_Elab_Term_whnf(x_3, x_5, x_6); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +if (lean_obj_tag(x_11) == 7) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +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); +x_15 = lean_array_fget(x_1, x_2); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_13); +x_17 = 1; +lean_inc(x_5); +lean_inc(x_16); +lean_inc(x_15); +x_18 = l_Lean_Elab_Term_elabTerm(x_15, x_16, x_17, x_5, x_12); +if (lean_obj_tag(x_18) == 0) +{ +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; uint8_t x_31; uint8_t x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +x_21 = lean_ctor_get(x_5, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_5, 1); +lean_inc(x_22); +x_23 = lean_ctor_get(x_5, 2); +lean_inc(x_23); +x_24 = lean_ctor_get(x_5, 3); +lean_inc(x_24); +x_25 = lean_ctor_get(x_5, 4); +lean_inc(x_25); +x_26 = lean_ctor_get(x_5, 5); +lean_inc(x_26); +x_27 = lean_ctor_get(x_5, 6); +lean_inc(x_27); +x_28 = lean_ctor_get(x_5, 7); +lean_inc(x_28); +x_29 = lean_ctor_get(x_5, 8); +lean_inc(x_29); +x_30 = lean_ctor_get(x_5, 9); +lean_inc(x_30); +x_31 = lean_ctor_get_uint8(x_5, sizeof(void*)*11); +x_32 = lean_ctor_get_uint8(x_5, sizeof(void*)*11 + 1); +x_33 = lean_ctor_get_uint8(x_5, sizeof(void*)*11 + 2); +x_34 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_34, 0, x_21); +lean_ctor_set(x_34, 1, x_22); +lean_ctor_set(x_34, 2, x_23); +lean_ctor_set(x_34, 3, x_24); +lean_ctor_set(x_34, 4, x_25); +lean_ctor_set(x_34, 5, x_26); +lean_ctor_set(x_34, 6, x_27); +lean_ctor_set(x_34, 7, x_28); +lean_ctor_set(x_34, 8, x_29); +lean_ctor_set(x_34, 9, x_30); +lean_ctor_set(x_34, 10, x_15); +lean_ctor_set_uint8(x_34, sizeof(void*)*11, x_31); +lean_ctor_set_uint8(x_34, sizeof(void*)*11 + 1, x_32); +lean_ctor_set_uint8(x_34, sizeof(void*)*11 + 2, x_33); +x_35 = l_Lean_Elab_Term_ensureHasType(x_16, x_19, x_34, x_20); +if (lean_obj_tag(x_35) == 0) +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_35, 1); +lean_inc(x_37); +lean_dec(x_35); +x_38 = lean_unsigned_to_nat(1u); +x_39 = lean_nat_add(x_2, x_38); +lean_dec(x_2); +x_40 = lean_expr_instantiate1(x_14, x_36); +lean_dec(x_14); +x_41 = lean_array_push(x_4, x_36); +x_2 = x_39; +x_3 = x_40; +x_4 = x_41; +x_6 = x_37; +goto _start; +} +else +{ +uint8_t x_43; +lean_dec(x_14); +lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_5); -lean_ctor_set(x_10, 1, x_7); +lean_dec(x_2); +x_43 = !lean_is_exclusive(x_35); +if (x_43 == 0) +{ +return x_35; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_35, 0); +x_45 = lean_ctor_get(x_35, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_35); +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_dec(x_15); +lean_dec(x_14); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +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_dec(x_11); +lean_dec(x_4); +lean_dec(x_2); +x_51 = lean_ctor_get(x_10, 1); +lean_inc(x_51); +lean_dec(x_10); +x_52 = l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__3; +x_53 = l_Lean_Elab_Term_throwError___rarg(x_52, x_5, x_51); +return x_53; +} +} +else +{ +uint8_t x_54; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_54 = !lean_is_exclusive(x_10); +if (x_54 == 0) +{ return x_10; } else { -lean_object* x_11; -lean_inc(x_6); -x_11 = l_Lean_Elab_Term_whnf(x_1, x_4, x_6, x_7); -if (lean_obj_tag(x_11) == 0) +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_10, 0); +x_56 = lean_ctor_get(x_10, 1); +lean_inc(x_56); +lean_inc(x_55); +lean_dec(x_10); +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_object* l___private_Lean_Elab_Match_24__elabPatternsAux___main___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_12; -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -if (lean_obj_tag(x_12) == 7) +lean_object* x_7; +x_7 = l___private_Lean_Elab_Match_24__elabPatternsAux___main(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_1); +return x_7; +} +} +lean_object* l___private_Lean_Elab_Match_24__elabPatternsAux(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_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; -x_13 = lean_ctor_get(x_11, 1); -lean_inc(x_13); -lean_dec(x_11); -x_14 = lean_ctor_get(x_12, 1); -lean_inc(x_14); -x_15 = lean_ctor_get(x_12, 2); -lean_inc(x_15); -lean_dec(x_12); -x_16 = lean_array_fget(x_2, x_3); -x_17 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_17, 0, x_14); -x_18 = 1; -lean_inc(x_6); -x_19 = l_Lean_Elab_Term_elabTermAux___main(x_17, x_18, x_18, x_16, x_6, x_13); -if (lean_obj_tag(x_19) == 0) +lean_object* x_7; +x_7 = l___private_Lean_Elab_Match_24__elabPatternsAux___main(x_1, x_2, x_3, x_4, x_5, x_6); +return x_7; +} +} +lean_object* l___private_Lean_Elab_Match_24__elabPatternsAux___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_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_19, 1); -lean_inc(x_21); -lean_dec(x_19); -x_22 = lean_unsigned_to_nat(1u); -x_23 = lean_nat_add(x_3, x_22); +lean_object* x_7; +x_7 = l___private_Lean_Elab_Match_24__elabPatternsAux(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_1); +return x_7; +} +} +lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___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; uint8_t x_8; +x_7 = lean_array_get_size(x_2); +x_8 = lean_nat_dec_lt(x_3, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +lean_object* x_9; +lean_dec(x_5); lean_dec(x_3); -x_24 = lean_expr_instantiate1(x_15, x_20); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_4); +lean_ctor_set(x_9, 1, x_6); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_array_fget(x_2, x_3); +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_add(x_3, x_11); +lean_dec(x_3); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_13 = lean_ctor_get(x_10, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_10, 1); +lean_inc(x_14); +lean_dec(x_10); +lean_inc(x_13); +x_15 = l_Lean_Elab_Term_isExprMVarAssigned(x_13, x_5, x_6); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_unbox(x_16); +lean_dec(x_16); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); lean_dec(x_15); -x_25 = lean_array_push(x_5, x_20); -x_3 = x_23; -x_4 = x_24; -x_5 = x_25; -x_7 = x_21; +lean_inc(x_14); +x_19 = l_Lean_mkFVar(x_14); +x_20 = l_Lean_Elab_Term_assignExprMVar(x_13, x_19, x_5, x_18); +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec(x_20); +lean_inc(x_5); +x_22 = l_Lean_Elab_Term_getLocalDecl(x_14, x_5, x_21); +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +x_25 = lean_array_push(x_4, x_23); +x_3 = x_12; +x_4 = x_25; +x_6 = x_24; goto _start; } else { uint8_t x_27; -lean_dec(x_15); -lean_dec(x_6); +lean_dec(x_12); lean_dec(x_5); -lean_dec(x_3); -x_27 = !lean_is_exclusive(x_19); +lean_dec(x_4); +x_27 = !lean_is_exclusive(x_22); if (x_27 == 0) { -return x_19; +return x_22; } else { lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_19, 0); -x_29 = lean_ctor_get(x_19, 1); +x_28 = lean_ctor_get(x_22, 0); +x_29 = lean_ctor_get(x_22, 1); lean_inc(x_29); lean_inc(x_28); -lean_dec(x_19); +lean_dec(x_22); x_30 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_30, 0, x_28); lean_ctor_set(x_30, 1, x_29); @@ -17230,235 +17296,58 @@ return x_30; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; -lean_dec(x_12); -lean_dec(x_5); -lean_dec(x_3); -x_31 = lean_ctor_get(x_11, 1); +lean_object* x_31; +lean_dec(x_14); +lean_dec(x_13); +x_31 = lean_ctor_get(x_15, 1); lean_inc(x_31); -lean_dec(x_11); -x_32 = l___private_Lean_Elab_Match_22__elabPatternsAux___main___closed__3; -x_33 = l_Lean_Elab_Term_throwError___rarg(x_1, x_32, x_6, x_31); -return x_33; +lean_dec(x_15); +x_3 = x_12; +x_6 = x_31; +goto _start; } } else { -uint8_t x_34; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -x_34 = !lean_is_exclusive(x_11); -if (x_34 == 0) -{ -return x_11; -} -else +lean_object* x_33; lean_object* x_34; +x_33 = lean_ctor_get(x_10, 0); +lean_inc(x_33); +lean_dec(x_10); +lean_inc(x_5); +x_34 = l_Lean_Elab_Term_getLocalDecl(x_33, x_5, x_6); +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_11, 0); -x_36 = lean_ctor_get(x_11, 1); -lean_inc(x_36); +x_35 = lean_ctor_get(x_34, 0); lean_inc(x_35); -lean_dec(x_11); -x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_35); -lean_ctor_set(x_37, 1, x_36); -return x_37; -} -} -} -} -} -lean_object* l___private_Lean_Elab_Match_22__elabPatternsAux___main___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_Elab_Match_22__elabPatternsAux___main(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; -} -} -lean_object* l___private_Lean_Elab_Match_22__elabPatternsAux(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_Elab_Match_22__elabPatternsAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -return x_8; -} -} -lean_object* l___private_Lean_Elab_Match_22__elabPatternsAux___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_Elab_Match_22__elabPatternsAux(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; -} -} -lean_object* _init_l___private_Lean_Elab_Match_23__elabPatterns___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("patterns: "); -return x_1; -} -} -lean_object* _init_l___private_Lean_Elab_Match_23__elabPatterns___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_23__elabPatterns___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* _init_l___private_Lean_Elab_Match_23__elabPatterns___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_23__elabPatterns___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l___private_Lean_Elab_Match_23__elabPatterns(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_6 = lean_unsigned_to_nat(0u); -x_7 = l_Array_empty___closed__1; -lean_inc(x_4); -x_8 = l___private_Lean_Elab_Match_22__elabPatternsAux___main(x_1, x_2, x_6, x_3, x_7, x_4, x_5); -if (lean_obj_tag(x_8) == 0) -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t 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 = l_Lean_Elab_Term_getOptions(x_4, x_10); -x_12 = !lean_is_exclusive(x_11); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_13 = lean_ctor_get(x_11, 0); -x_14 = lean_ctor_get(x_11, 1); -x_15 = l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__1___closed__1; -x_16 = l_Lean_checkTraceOption(x_13, x_15); -lean_dec(x_13); -if (x_16 == 0) -{ -lean_dec(x_4); -lean_ctor_set(x_11, 0, x_9); -return x_11; -} -else -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; -lean_free_object(x_11); -x_17 = l_Lean_MessageData_coeOfArrayExpr___closed__2; -x_18 = l_Lean_MessageData_arrayExpr_toMessageData___main(x_9, x_6, x_17); -x_19 = l___private_Lean_Elab_Match_23__elabPatterns___closed__3; -x_20 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_18); -x_21 = l_Lean_Elab_Term_logTrace(x_15, x_1, x_20, x_4, x_14); -x_22 = !lean_is_exclusive(x_21); -if (x_22 == 0) -{ -lean_object* x_23; -x_23 = lean_ctor_get(x_21, 0); -lean_dec(x_23); -lean_ctor_set(x_21, 0, x_9); -return x_21; -} -else -{ -lean_object* x_24; lean_object* x_25; -x_24 = lean_ctor_get(x_21, 1); -lean_inc(x_24); -lean_dec(x_21); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_9); -lean_ctor_set(x_25, 1, x_24); -return x_25; -} -} -} -else -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; -x_26 = lean_ctor_get(x_11, 0); -x_27 = lean_ctor_get(x_11, 1); -lean_inc(x_27); -lean_inc(x_26); -lean_dec(x_11); -x_28 = l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__1___closed__1; -x_29 = l_Lean_checkTraceOption(x_26, x_28); -lean_dec(x_26); -if (x_29 == 0) -{ -lean_object* x_30; -lean_dec(x_4); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_9); -lean_ctor_set(x_30, 1, x_27); -return x_30; -} -else -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_31 = l_Lean_MessageData_coeOfArrayExpr___closed__2; -x_32 = l_Lean_MessageData_arrayExpr_toMessageData___main(x_9, x_6, x_31); -x_33 = l___private_Lean_Elab_Match_23__elabPatterns___closed__3; -x_34 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_32); -x_35 = l_Lean_Elab_Term_logTrace(x_28, x_1, x_34, x_4, x_27); -x_36 = lean_ctor_get(x_35, 1); +x_36 = lean_ctor_get(x_34, 1); lean_inc(x_36); -if (lean_is_exclusive(x_35)) { - lean_ctor_release(x_35, 0); - lean_ctor_release(x_35, 1); - x_37 = x_35; -} else { - lean_dec_ref(x_35); - x_37 = lean_box(0); -} -if (lean_is_scalar(x_37)) { - x_38 = lean_alloc_ctor(0, 2, 0); -} else { - x_38 = x_37; -} -lean_ctor_set(x_38, 0, x_9); -lean_ctor_set(x_38, 1, x_36); -return x_38; -} -} +lean_dec(x_34); +x_37 = lean_array_push(x_4, x_35); +x_3 = x_12; +x_4 = x_37; +x_6 = x_36; +goto _start; } else { uint8_t x_39; +lean_dec(x_12); +lean_dec(x_5); lean_dec(x_4); -x_39 = !lean_is_exclusive(x_8); +x_39 = !lean_is_exclusive(x_34); if (x_39 == 0) { -return x_8; +return x_34; } else { lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_8, 0); -x_41 = lean_ctor_get(x_8, 1); +x_40 = lean_ctor_get(x_34, 0); +x_41 = lean_ctor_get(x_34, 1); lean_inc(x_41); lean_inc(x_40); -lean_dec(x_8); +lean_dec(x_34); x_42 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_42, 0, x_40); lean_ctor_set(x_42, 1, x_41); @@ -17467,12 +17356,433 @@ return x_42; } } } -lean_object* l___private_Lean_Elab_Match_23__elabPatterns___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +} +} +lean_object* l_Lean_Elab_Term_finalizePatternDecls(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_4 = lean_unsigned_to_nat(0u); +x_5 = l_Array_empty___closed__1; +x_6 = l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__1(x_1, x_1, x_4, x_5, x_2, x_3); +return x_6; +} +} +lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___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_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_2); +lean_dec(x_1); +return x_7; +} +} +lean_object* l_Lean_Elab_Term_finalizePatternDecls___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Elab_Term_finalizePatternDecls(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_25__elabPatterns___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; uint8_t x_6; +x_5 = lean_array_get_size(x_2); +x_6 = lean_nat_dec_lt(x_1, x_5); +lean_dec(x_5); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; +lean_dec(x_3); +lean_dec(x_1); +x_7 = x_2; +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_7); +lean_ctor_set(x_8, 1, x_4); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_9 = lean_array_fget(x_2, x_1); +x_10 = lean_unsigned_to_nat(0u); +x_11 = lean_array_fset(x_2, x_1, x_10); +x_12 = x_9; +lean_inc(x_3); +x_13 = l_Lean_Elab_Term_instantiateMVars(x_12, x_3, x_4); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = lean_unsigned_to_nat(1u); +x_17 = lean_nat_add(x_1, x_16); +x_18 = x_14; +x_19 = lean_array_fset(x_11, x_1, x_18); +lean_dec(x_1); +x_1 = x_17; +x_2 = x_19; +x_4 = x_15; +goto _start; +} +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_25__elabPatterns___spec__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; uint8_t x_4; +x_3 = lean_array_get_size(x_2); +x_4 = lean_nat_dec_lt(x_1, x_3); +lean_dec(x_3); +if (x_4 == 0) +{ +lean_object* x_5; +lean_dec(x_1); +x_5 = x_2; +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; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_6 = lean_array_fget(x_2, x_1); +x_7 = lean_unsigned_to_nat(0u); +x_8 = lean_array_fset(x_2, x_1, x_7); +x_9 = x_6; +x_10 = l_Lean_LocalDecl_userName(x_9); +x_11 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_11, 0, x_10); +x_12 = l___private_Lean_Meta_ExprDefEq_8__checkTypesAndAssign___closed__7; +x_13 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_13, 0, x_11); +lean_ctor_set(x_13, 1, x_12); +x_14 = l_Lean_LocalDecl_type(x_9); +lean_dec(x_9); +x_15 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_15, 0, x_14); +x_16 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_16, 0, x_13); +lean_ctor_set(x_16, 1, x_15); +x_17 = lean_unsigned_to_nat(1u); +x_18 = lean_nat_add(x_1, x_17); +x_19 = x_16; +x_20 = lean_array_fset(x_8, x_1, x_19); +lean_dec(x_1); +x_1 = x_18; +x_2 = x_20; +goto _start; +} +} +} +lean_object* _init_l___private_Lean_Elab_Match_25__elabPatterns___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("patterns: "); +return x_1; +} +} +lean_object* _init_l___private_Lean_Elab_Match_25__elabPatterns___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Match_25__elabPatterns___closed__1; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Lean_Elab_Match_25__elabPatterns___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Match_25__elabPatterns___closed__2; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Match_25__elabPatterns(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Array_empty___closed__1; +x_8 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_24__elabPatternsAux___boxed), 6, 4); +lean_closure_set(x_8, 0, x_2); +lean_closure_set(x_8, 1, x_6); +lean_closure_set(x_8, 2, x_3); +lean_closure_set(x_8, 3, x_7); +lean_inc(x_4); +x_9 = l_Lean_Elab_Term_withSynthesize___rarg(x_8, x_4, x_5); +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; +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec(x_9); +x_12 = x_10; +x_13 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Match_25__elabPatterns___spec__1), 4, 2); +lean_closure_set(x_13, 0, x_6); +lean_closure_set(x_13, 1, x_12); +x_14 = x_13; +lean_inc(x_4); +x_15 = lean_apply_2(x_14, x_4, x_11); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +lean_inc(x_4); +x_18 = l_Lean_Elab_Term_finalizePatternDecls(x_1, x_4, x_17); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t x_61; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +x_54 = l_Lean_Elab_Term_getOptions(x_4, x_20); +x_55 = lean_ctor_get(x_54, 0); +lean_inc(x_55); +x_56 = lean_ctor_get(x_54, 1); +lean_inc(x_56); +lean_dec(x_54); +x_57 = l_Lean_Elab_Term_getCurrRef(x_4, x_56); +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_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__1___closed__1; +x_61 = l_Lean_checkTraceOption(x_55, x_60); +lean_dec(x_55); +if (x_61 == 0) +{ +lean_dec(x_58); +lean_dec(x_19); +x_21 = x_59; +goto block_53; +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_62 = x_19; +x_63 = l_Array_umapMAux___main___at___private_Lean_Elab_Match_25__elabPatterns___spec__2(x_6, x_62); +x_64 = x_63; +x_65 = l_Lean_MessageData_ofArray(x_64); +lean_dec(x_64); +lean_inc(x_4); +x_66 = l_Lean_Elab_Term_logTrace(x_60, x_58, x_65, x_4, x_59); +lean_dec(x_58); +x_67 = lean_ctor_get(x_66, 1); +lean_inc(x_67); +lean_dec(x_66); +x_21 = x_67; +goto block_53; +} +block_53: +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_22 = l_Lean_Elab_Term_getOptions(x_4, x_21); +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +x_25 = l_Lean_Elab_Term_getCurrRef(x_4, x_24); +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; +x_27 = lean_ctor_get(x_25, 0); +x_28 = lean_ctor_get(x_25, 1); +x_29 = l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__1___closed__1; +x_30 = l_Lean_checkTraceOption(x_23, x_29); +lean_dec(x_23); +if (x_30 == 0) +{ +lean_dec(x_27); +lean_dec(x_4); +lean_ctor_set(x_25, 0, x_16); +return x_25; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; +lean_free_object(x_25); +x_31 = l_Lean_MessageData_coeOfArrayExpr___closed__2; +x_32 = l_Lean_MessageData_arrayExpr_toMessageData___main(x_16, x_6, x_31); +x_33 = l___private_Lean_Elab_Match_25__elabPatterns___closed__3; +x_34 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_32); +x_35 = l_Lean_Elab_Term_logTrace(x_29, x_27, x_34, x_4, x_28); +lean_dec(x_27); +x_36 = !lean_is_exclusive(x_35); +if (x_36 == 0) +{ +lean_object* x_37; +x_37 = lean_ctor_get(x_35, 0); +lean_dec(x_37); +lean_ctor_set(x_35, 0, x_16); +return x_35; +} +else +{ +lean_object* x_38; lean_object* x_39; +x_38 = lean_ctor_get(x_35, 1); +lean_inc(x_38); +lean_dec(x_35); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_16); +lean_ctor_set(x_39, 1, x_38); +return x_39; +} +} +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; +x_40 = lean_ctor_get(x_25, 0); +x_41 = lean_ctor_get(x_25, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_25); +x_42 = l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__1___closed__1; +x_43 = l_Lean_checkTraceOption(x_23, x_42); +lean_dec(x_23); +if (x_43 == 0) +{ +lean_object* x_44; +lean_dec(x_40); +lean_dec(x_4); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_16); +lean_ctor_set(x_44, 1, x_41); +return x_44; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_45 = l_Lean_MessageData_coeOfArrayExpr___closed__2; +x_46 = l_Lean_MessageData_arrayExpr_toMessageData___main(x_16, x_6, x_45); +x_47 = l___private_Lean_Elab_Match_25__elabPatterns___closed__3; +x_48 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +x_49 = l_Lean_Elab_Term_logTrace(x_42, x_40, x_48, x_4, x_41); +lean_dec(x_40); +x_50 = lean_ctor_get(x_49, 1); +lean_inc(x_50); +if (lean_is_exclusive(x_49)) { + lean_ctor_release(x_49, 0); + lean_ctor_release(x_49, 1); + x_51 = x_49; +} else { + lean_dec_ref(x_49); + x_51 = lean_box(0); +} +if (lean_is_scalar(x_51)) { + x_52 = lean_alloc_ctor(0, 2, 0); +} else { + x_52 = x_51; +} +lean_ctor_set(x_52, 0, x_16); +lean_ctor_set(x_52, 1, x_50); +return x_52; +} +} +} +} +else +{ +uint8_t x_68; +lean_dec(x_16); +lean_dec(x_4); +x_68 = !lean_is_exclusive(x_18); +if (x_68 == 0) +{ +return x_18; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_18, 0); +x_70 = lean_ctor_get(x_18, 1); +lean_inc(x_70); +lean_inc(x_69); +lean_dec(x_18); +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 +{ +uint8_t x_72; +lean_dec(x_4); +x_72 = !lean_is_exclusive(x_15); +if (x_72 == 0) +{ +return x_15; +} +else +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_15, 0); +x_74 = lean_ctor_get(x_15, 1); +lean_inc(x_74); +lean_inc(x_73); +lean_dec(x_15); +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 +{ +uint8_t x_76; +lean_dec(x_4); +x_76 = !lean_is_exclusive(x_9); +if (x_76 == 0) +{ +return x_9; +} +else +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_9, 0); +x_78 = lean_ctor_get(x_9, 1); +lean_inc(x_78); +lean_inc(x_77); +lean_dec(x_9); +x_79 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_79, 0, x_77); +lean_ctor_set(x_79, 1, x_78); +return x_79; +} +} +} +} +lean_object* l___private_Lean_Elab_Match_25__elabPatterns___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l___private_Lean_Elab_Match_23__elabPatterns(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_2); +x_6 = l___private_Lean_Elab_Match_25__elabPatterns(x_1, x_2, x_3, x_4, x_5); lean_dec(x_1); return x_6; } @@ -17627,48 +17937,186 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* l_Lean_Elab_Term_elabMatchAltView___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Elab_Term_elabMatchAltView___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) { _start: { -lean_object* x_4; lean_object* x_5; -x_4 = l_Lean_Elab_Term_elabMatchAltView___lambda__1___closed__2; -x_5 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_5, 0, x_4); -lean_ctor_set(x_5, 1, x_3); -return x_5; +lean_object* x_7; uint8_t x_8; +x_7 = lean_ctor_get(x_1, 1); +lean_inc(x_7); +lean_dec(x_1); +x_8 = !lean_is_exclusive(x_5); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_ctor_get(x_5, 10); +lean_dec(x_9); +lean_ctor_set(x_5, 10, x_2); +x_10 = l___private_Lean_Elab_Match_25__elabPatterns(x_4, x_7, x_3, x_5, x_6); +if (lean_obj_tag(x_10) == 0) +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_10, 0); +lean_dec(x_12); +x_13 = l_Lean_Elab_Term_elabMatchAltView___lambda__1___closed__2; +lean_ctor_set(x_10, 0, x_13); +return x_10; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_10, 1); +lean_inc(x_14); +lean_dec(x_10); +x_15 = l_Lean_Elab_Term_elabMatchAltView___lambda__1___closed__2; +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 +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_10); +if (x_17 == 0) +{ +return x_10; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_10, 0); +x_19 = lean_ctor_get(x_10, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_10); +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; +} +} +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; uint8_t x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35; +x_21 = lean_ctor_get(x_5, 0); +x_22 = lean_ctor_get(x_5, 1); +x_23 = lean_ctor_get(x_5, 2); +x_24 = lean_ctor_get(x_5, 3); +x_25 = lean_ctor_get(x_5, 4); +x_26 = lean_ctor_get(x_5, 5); +x_27 = lean_ctor_get(x_5, 6); +x_28 = lean_ctor_get(x_5, 7); +x_29 = lean_ctor_get(x_5, 8); +x_30 = lean_ctor_get(x_5, 9); +x_31 = lean_ctor_get_uint8(x_5, sizeof(void*)*11); +x_32 = lean_ctor_get_uint8(x_5, sizeof(void*)*11 + 1); +x_33 = lean_ctor_get_uint8(x_5, sizeof(void*)*11 + 2); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_inc(x_26); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_5); +x_34 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_34, 0, x_21); +lean_ctor_set(x_34, 1, x_22); +lean_ctor_set(x_34, 2, x_23); +lean_ctor_set(x_34, 3, x_24); +lean_ctor_set(x_34, 4, x_25); +lean_ctor_set(x_34, 5, x_26); +lean_ctor_set(x_34, 6, x_27); +lean_ctor_set(x_34, 7, x_28); +lean_ctor_set(x_34, 8, x_29); +lean_ctor_set(x_34, 9, x_30); +lean_ctor_set(x_34, 10, x_2); +lean_ctor_set_uint8(x_34, sizeof(void*)*11, x_31); +lean_ctor_set_uint8(x_34, sizeof(void*)*11 + 1, x_32); +lean_ctor_set_uint8(x_34, sizeof(void*)*11 + 2, x_33); +x_35 = l___private_Lean_Elab_Match_25__elabPatterns(x_4, x_7, x_3, x_34, x_6); +if (lean_obj_tag(x_35) == 0) +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_36 = lean_ctor_get(x_35, 1); +lean_inc(x_36); +if (lean_is_exclusive(x_35)) { + lean_ctor_release(x_35, 0); + lean_ctor_release(x_35, 1); + x_37 = x_35; +} else { + lean_dec_ref(x_35); + x_37 = lean_box(0); +} +x_38 = l_Lean_Elab_Term_elabMatchAltView___lambda__1___closed__2; +if (lean_is_scalar(x_37)) { + x_39 = lean_alloc_ctor(0, 2, 0); +} else { + x_39 = x_37; +} +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_36); +return x_39; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_40 = lean_ctor_get(x_35, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_35, 1); +lean_inc(x_41); +if (lean_is_exclusive(x_35)) { + lean_ctor_release(x_35, 0); + lean_ctor_release(x_35, 1); + x_42 = x_35; +} else { + lean_dec_ref(x_35); + x_42 = lean_box(0); +} +if (lean_is_scalar(x_42)) { + x_43 = lean_alloc_ctor(1, 2, 0); +} else { + x_43 = x_42; +} +lean_ctor_set(x_43, 0, x_40); +lean_ctor_set(x_43, 1, x_41); +return x_43; +} +} } } lean_object* _init_l_Lean_Elab_Term_elabMatchAltView___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMatchAltView___lambda__1___boxed), 3, 0); -return x_1; -} -} -lean_object* _init_l_Lean_Elab_Term_elabMatchAltView___closed__2() { -_start: -{ -lean_object* x_1; x_1 = lean_mk_string("patternVars: "); return x_1; } } -lean_object* _init_l_Lean_Elab_Term_elabMatchAltView___closed__3() { +lean_object* _init_l_Lean_Elab_Term_elabMatchAltView___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_elabMatchAltView___closed__2; +x_1 = l_Lean_Elab_Term_elabMatchAltView___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l_Lean_Elab_Term_elabMatchAltView___closed__4() { +lean_object* _init_l_Lean_Elab_Term_elabMatchAltView___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_elabMatchAltView___closed__3; +x_1 = l_Lean_Elab_Term_elabMatchAltView___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; @@ -17679,10 +18127,10 @@ _start: { lean_object* x_5; lean_inc(x_3); -x_5 = l___private_Lean_Elab_Match_19__collectPatternVars(x_1, x_3, x_4); +x_5 = l___private_Lean_Elab_Match_21__collectPatternVars(x_1, x_3, x_4); if (lean_obj_tag(x_5) == 0) { -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_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; uint8_t x_22; uint8_t x_23; uint8_t 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; uint8_t x_33; x_6 = lean_ctor_get(x_5, 0); lean_inc(x_6); x_7 = lean_ctor_get(x_5, 1); @@ -17695,82 +18143,119 @@ lean_inc(x_9); lean_dec(x_6); x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); -x_11 = lean_ctor_get(x_9, 1); -lean_inc(x_11); -lean_dec(x_9); lean_inc(x_10); -x_12 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_23__elabPatterns___boxed), 5, 3); -lean_closure_set(x_12, 0, x_10); -lean_closure_set(x_12, 1, x_11); -lean_closure_set(x_12, 2, x_2); -x_13 = l_Lean_Elab_Term_elabMatchAltView___closed__1; -x_14 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Term_monadLog___spec__2___rarg), 4, 2); -lean_closure_set(x_14, 0, x_12); -lean_closure_set(x_14, 1, x_13); -x_15 = l_Lean_Elab_Term_getOptions(x_3, x_7); -x_16 = lean_ctor_get(x_15, 0); +x_11 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMatchAltView___lambda__1___boxed), 6, 3); +lean_closure_set(x_11, 0, x_9); +lean_closure_set(x_11, 1, x_10); +lean_closure_set(x_11, 2, x_2); +x_12 = lean_ctor_get(x_3, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_3, 1); +lean_inc(x_13); +x_14 = lean_ctor_get(x_3, 2); +lean_inc(x_14); +x_15 = lean_ctor_get(x_3, 3); +lean_inc(x_15); +x_16 = lean_ctor_get(x_3, 4); lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); +x_17 = lean_ctor_get(x_3, 5); lean_inc(x_17); -lean_dec(x_15); -x_18 = l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__1___closed__1; -x_19 = l_Lean_checkTraceOption(x_16, x_18); -lean_dec(x_16); -if (x_19 == 0) -{ -lean_object* x_20; lean_object* x_21; -x_20 = lean_unsigned_to_nat(0u); -x_21 = l___private_Lean_Elab_Match_20__withPatternVarsAux___main___rarg(x_10, x_8, x_14, x_20, x_3, x_17); -return x_21; -} -else -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_22 = l_Array_toList___rarg(x_8); -x_23 = l_List_toString___at_Lean_Elab_Term_elabMatchAltView___spec__1(x_22); -x_24 = l_Array_HasRepr___rarg___closed__1; -x_25 = lean_string_append(x_24, x_23); -lean_dec(x_23); -x_26 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_26, 0, x_25); -x_27 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_27, 0, x_26); -x_28 = l_Lean_Elab_Term_elabMatchAltView___closed__4; -x_29 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_29, 0, x_28); -lean_ctor_set(x_29, 1, x_27); -lean_inc(x_3); -x_30 = l_Lean_Elab_Term_logTrace(x_18, x_10, x_29, x_3, x_17); -x_31 = lean_ctor_get(x_30, 1); +x_18 = lean_ctor_get(x_3, 6); +lean_inc(x_18); +x_19 = lean_ctor_get(x_3, 7); +lean_inc(x_19); +x_20 = lean_ctor_get(x_3, 8); +lean_inc(x_20); +x_21 = lean_ctor_get(x_3, 9); +lean_inc(x_21); +x_22 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_23 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_24 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +x_25 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_25, 0, x_12); +lean_ctor_set(x_25, 1, x_13); +lean_ctor_set(x_25, 2, x_14); +lean_ctor_set(x_25, 3, x_15); +lean_ctor_set(x_25, 4, x_16); +lean_ctor_set(x_25, 5, x_17); +lean_ctor_set(x_25, 6, x_18); +lean_ctor_set(x_25, 7, x_19); +lean_ctor_set(x_25, 8, x_20); +lean_ctor_set(x_25, 9, x_21); +lean_ctor_set(x_25, 10, x_10); +lean_ctor_set_uint8(x_25, sizeof(void*)*11, x_22); +lean_ctor_set_uint8(x_25, sizeof(void*)*11 + 1, x_23); +lean_ctor_set_uint8(x_25, sizeof(void*)*11 + 2, x_24); +x_26 = l_Lean_Elab_Term_getOptions(x_25, x_7); +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_Elab_Term_getCurrRef(x_25, x_28); +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_29, 1); lean_inc(x_31); +lean_dec(x_29); +x_32 = l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__1___closed__1; +x_33 = l_Lean_checkTraceOption(x_27, x_32); +lean_dec(x_27); +if (x_33 == 0) +{ +lean_object* x_34; lean_dec(x_30); -x_32 = lean_unsigned_to_nat(0u); -x_33 = l___private_Lean_Elab_Match_20__withPatternVarsAux___main___rarg(x_10, x_8, x_14, x_32, x_3, x_31); -return x_33; +lean_dec(x_25); +x_34 = l___private_Lean_Elab_Match_23__withPatternVars___rarg(x_8, x_11, x_3, x_31); +return x_34; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_35 = l_Array_toList___rarg(x_8); +x_36 = l_List_toString___at_Lean_Elab_Term_elabMatchAltView___spec__1(x_35); +x_37 = l_Array_HasRepr___rarg___closed__1; +x_38 = lean_string_append(x_37, x_36); +lean_dec(x_36); +x_39 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_39, 0, x_38); +x_40 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_40, 0, x_39); +x_41 = l_Lean_Elab_Term_elabMatchAltView___closed__3; +x_42 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_40); +x_43 = l_Lean_Elab_Term_logTrace(x_32, x_30, x_42, x_25, x_31); +lean_dec(x_30); +x_44 = lean_ctor_get(x_43, 1); +lean_inc(x_44); +lean_dec(x_43); +x_45 = l___private_Lean_Elab_Match_23__withPatternVars___rarg(x_8, x_11, x_3, x_44); +return x_45; } } else { -uint8_t x_34; +uint8_t x_46; lean_dec(x_3); lean_dec(x_2); -x_34 = !lean_is_exclusive(x_5); -if (x_34 == 0) +x_46 = !lean_is_exclusive(x_5); +if (x_46 == 0) { return x_5; } else { -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_5, 0); -x_36 = lean_ctor_get(x_5, 1); -lean_inc(x_36); -lean_inc(x_35); +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_5, 0); +x_48 = lean_ctor_get(x_5, 1); +lean_inc(x_48); +lean_inc(x_47); lean_dec(x_5); -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; +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +return x_49; } } } @@ -17785,17 +18270,16 @@ x_4 = l_List_toStringAux___main___at_Lean_Elab_Term_elabMatchAltView___spec__2(x return x_4; } } -lean_object* l_Lean_Elab_Term_elabMatchAltView___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Elab_Term_elabMatchAltView___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) { _start: { -lean_object* x_4; -x_4 = l_Lean_Elab_Term_elabMatchAltView___lambda__1(x_1, x_2, x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_4; +lean_object* x_7; +x_7 = l_Lean_Elab_Term_elabMatchAltView___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_4); +return x_7; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_24__elabMatchCore___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_26__elabMatchCore___spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; uint8_t x_4; @@ -17829,7 +18313,7 @@ goto _start; } } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_24__elabMatchCore___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_26__elabMatchCore___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; uint8_t x_7; @@ -17905,7 +18389,7 @@ return x_25; } } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_24__elabMatchCore___spec__3(lean_object* x_1, lean_object* x_2) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_26__elabMatchCore___spec__3(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; uint8_t x_4; @@ -17946,7 +18430,7 @@ goto _start; } } } -lean_object* _init_l___private_Lean_Elab_Match_24__elabMatchCore___closed__1() { +lean_object* _init_l___private_Lean_Elab_Match_26__elabMatchCore___closed__1() { _start: { lean_object* x_1; @@ -17954,27 +18438,27 @@ x_1 = lean_mk_string("WIP type: "); return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_24__elabMatchCore___closed__2() { +lean_object* _init_l___private_Lean_Elab_Match_26__elabMatchCore___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_24__elabMatchCore___closed__1; +x_1 = l___private_Lean_Elab_Match_26__elabMatchCore___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_24__elabMatchCore___closed__3() { +lean_object* _init_l___private_Lean_Elab_Match_26__elabMatchCore___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_24__elabMatchCore___closed__2; +x_1 = l___private_Lean_Elab_Match_26__elabMatchCore___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_24__elabMatchCore___closed__4() { +lean_object* _init_l___private_Lean_Elab_Match_26__elabMatchCore___closed__4() { _start: { lean_object* x_1; lean_object* x_2; @@ -17984,17 +18468,17 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_24__elabMatchCore___closed__5() { +lean_object* _init_l___private_Lean_Elab_Match_26__elabMatchCore___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_24__elabMatchCore___closed__4; +x_1 = l___private_Lean_Elab_Match_26__elabMatchCore___closed__4; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Match_24__elabMatchCore(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Match_26__elabMatchCore(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_69; @@ -18010,7 +18494,7 @@ lean_dec(x_69); x_71 = 0; x_72 = lean_box(0); lean_inc(x_3); -x_73 = l_Lean_Elab_Term_mkFreshTypeMVar(x_1, x_71, x_72, x_3, x_70); +x_73 = l_Lean_Elab_Term_mkFreshTypeMVar(x_71, x_72, x_3, x_70); x_74 = lean_ctor_get(x_73, 0); lean_inc(x_74); x_75 = lean_ctor_get(x_73, 1); @@ -18071,7 +18555,7 @@ x_12 = l_Array_empty___closed__1; x_13 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_10, x_9, x_11, x_12); lean_dec(x_9); x_14 = x_13; -x_15 = l_Array_umapMAux___main___at___private_Lean_Elab_Match_24__elabMatchCore___spec__1(x_11, x_14); +x_15 = l_Array_umapMAux___main___at___private_Lean_Elab_Match_26__elabMatchCore___spec__1(x_11, x_14); x_16 = x_15; x_17 = lean_array_get_size(x_16); lean_inc(x_3); @@ -18098,7 +18582,7 @@ lean_inc(x_24); lean_dec(x_22); lean_inc(x_3); lean_inc(x_19); -x_25 = l___private_Lean_Elab_Match_7__elabDiscrs(x_1, x_16, x_19, x_5, x_3, x_24); +x_25 = l___private_Lean_Elab_Match_7__elabDiscrs(x_16, x_19, x_5, x_3, x_24); lean_dec(x_16); if (lean_obj_tag(x_25) == 0) { @@ -18111,7 +18595,7 @@ lean_dec(x_25); x_28 = x_23; lean_inc(x_28); lean_inc(x_19); -x_29 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Match_24__elabMatchCore___spec__2), 5, 3); +x_29 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Match_26__elabMatchCore___spec__2), 5, 3); lean_closure_set(x_29, 0, x_19); lean_closure_set(x_29, 1, x_11); lean_closure_set(x_29, 2, x_28); @@ -18126,11 +18610,11 @@ lean_inc(x_32); lean_dec(x_31); x_33 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_33, 0, x_19); -x_34 = l___private_Lean_Elab_Match_24__elabMatchCore___closed__3; +x_34 = l___private_Lean_Elab_Match_26__elabMatchCore___closed__3; x_35 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_35, 0, x_34); lean_ctor_set(x_35, 1, x_33); -x_36 = l___private_Lean_Elab_Match_24__elabMatchCore___closed__5; +x_36 = l___private_Lean_Elab_Match_26__elabMatchCore___closed__5; x_37 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_37, 0, x_35); lean_ctor_set(x_37, 1, x_36); @@ -18143,7 +18627,7 @@ lean_ctor_set(x_40, 1, x_39); x_41 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_41, 0, x_40); lean_ctor_set(x_41, 1, x_36); -x_42 = l_Array_umapMAux___main___at___private_Lean_Elab_Match_24__elabMatchCore___spec__3(x_11, x_28); +x_42 = l_Array_umapMAux___main___at___private_Lean_Elab_Match_26__elabMatchCore___spec__3(x_11, x_28); x_43 = x_42; x_44 = l_Array_toList___rarg(x_43); lean_dec(x_43); @@ -18158,7 +18642,7 @@ lean_ctor_set(x_49, 0, x_48); x_50 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_50, 0, x_41); lean_ctor_set(x_50, 1, x_49); -x_51 = l_Lean_Elab_Term_throwError___rarg(x_1, x_50, x_3, x_32); +x_51 = l_Lean_Elab_Term_throwError___rarg(x_50, x_3, x_32); return x_51; } else @@ -18269,16 +18753,39 @@ return x_67; } } } -lean_object* l___private_Lean_Elab_Match_24__elabMatchCore___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Match_26__elabMatchCore___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Lean_Elab_Match_24__elabMatchCore(x_1, x_2, x_3, x_4); +x_5 = l___private_Lean_Elab_Match_26__elabMatchCore(x_1, x_2, x_3, x_4); lean_dec(x_1); return x_5; } } -lean_object* _init_l___private_Lean_Elab_Match_25__mkMatchType___main___closed__1() { +lean_object* _init_l___private_Lean_Elab_Match_27__mkMatchType___main___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__1; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +lean_object* _init_l___private_Lean_Elab_Match_27__mkMatchType___main___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__1; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l___private_Lean_Elab_Match_27__mkMatchType___main___closed__1; +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* _init_l___private_Lean_Elab_Match_27__mkMatchType___main___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -18288,19 +18795,19 @@ x_3 = lean_array_push(x_1, x_2); return x_3; } } -lean_object* _init_l___private_Lean_Elab_Match_25__mkMatchType___main___closed__2() { +lean_object* _init_l___private_Lean_Elab_Match_27__mkMatchType___main___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_nullKind___closed__2; -x_2 = l___private_Lean_Elab_Match_25__mkMatchType___main___closed__1; +x_2 = l___private_Lean_Elab_Match_27__mkMatchType___main___closed__3; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* _init_l___private_Lean_Elab_Match_25__mkMatchType___main___closed__3() { +lean_object* _init_l___private_Lean_Elab_Match_27__mkMatchType___main___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -18312,7 +18819,7 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* _init_l___private_Lean_Elab_Match_25__mkMatchType___main___closed__4() { +lean_object* _init_l___private_Lean_Elab_Match_27__mkMatchType___main___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -18324,17 +18831,17 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* _init_l___private_Lean_Elab_Match_25__mkMatchType___main___closed__5() { +lean_object* _init_l___private_Lean_Elab_Match_27__mkMatchType___main___closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main___closed__6; -x_2 = l___private_Lean_Elab_Match_25__mkMatchType___main___closed__3; +x_2 = l___private_Lean_Elab_Match_27__mkMatchType___main___closed__5; x_3 = lean_array_push(x_1, x_2); return x_3; } } -lean_object* l___private_Lean_Elab_Match_25__mkMatchType___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Match_27__mkMatchType___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; uint8_t x_6; lean_object* x_7; lean_object* x_8; @@ -18389,7 +18896,7 @@ else lean_object* x_19; lean_object* x_20; uint8_t x_21; x_19 = lean_nat_add(x_2, x_7); lean_dec(x_2); -x_20 = l___private_Lean_Elab_Match_25__mkMatchType___main(x_1, x_19, x_3, x_8); +x_20 = l___private_Lean_Elab_Match_27__mkMatchType___main(x_1, x_19, x_3, x_8); x_21 = !lean_is_exclusive(x_20); if (x_21 == 0) { @@ -18408,7 +18915,7 @@ x_27 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; x_28 = l_Lean_addMacroScope(x_12, x_27, x_4); x_29 = lean_box(0); x_30 = l_Lean_SourceInfo_inhabited___closed__1; -x_31 = l___private_Lean_Elab_Match_18__collect___main___closed__13; +x_31 = l___private_Lean_Elab_Match_27__mkMatchType___main___closed__2; x_32 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_32, 0, x_30); lean_ctor_set(x_32, 1, x_31); @@ -18423,7 +18930,7 @@ lean_ctor_set(x_36, 0, x_35); lean_ctor_set(x_36, 1, x_34); x_37 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__4; x_38 = lean_array_push(x_37, x_36); -x_39 = l___private_Lean_Elab_Match_25__mkMatchType___main___closed__2; +x_39 = l___private_Lean_Elab_Match_27__mkMatchType___main___closed__4; x_40 = lean_array_push(x_38, x_39); x_41 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; x_42 = lean_array_push(x_40, x_41); @@ -18434,17 +18941,17 @@ x_46 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_46, 0, x_45); lean_ctor_set(x_46, 1, x_44); x_47 = lean_array_push(x_33, x_46); -x_48 = l___private_Lean_Elab_Match_25__mkMatchType___main___closed__3; +x_48 = l___private_Lean_Elab_Match_27__mkMatchType___main___closed__5; x_49 = lean_array_push(x_47, x_48); -x_50 = lean_array_push(x_34, x_41); -x_51 = l_Lean_mkTermIdFromIdent___closed__2; -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_52, 1, x_50); -x_53 = lean_array_push(x_33, x_52); -x_54 = l___private_Lean_Elab_Match_25__mkMatchType___main___closed__4; -x_55 = lean_array_push(x_53, x_54); -x_56 = lean_array_push(x_55, x_26); +x_50 = lean_array_push(x_33, x_26); +x_51 = l___private_Lean_Elab_Match_27__mkMatchType___main___closed__6; +x_52 = lean_array_push(x_50, x_51); +x_53 = lean_array_push(x_34, x_41); +x_54 = l_Lean_mkTermIdFromIdent___closed__2; +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_54); +lean_ctor_set(x_55, 1, x_53); +x_56 = lean_array_push(x_52, x_55); x_57 = l_Lean_Parser_Term_eq___elambda__1___closed__2; x_58 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_58, 0, x_57); @@ -18470,7 +18977,7 @@ lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_dec(x_14); lean_dec(x_12); lean_dec(x_4); -x_67 = l___private_Lean_Elab_Match_25__mkMatchType___main___closed__5; +x_67 = l___private_Lean_Elab_Match_27__mkMatchType___main___closed__7; x_68 = lean_array_push(x_67, x_22); x_69 = l_Lean_Parser_Term_arrow___elambda__1___closed__2; x_70 = lean_alloc_ctor(1, 2, 0); @@ -18501,7 +19008,7 @@ x_77 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; x_78 = l_Lean_addMacroScope(x_12, x_77, x_4); x_79 = lean_box(0); x_80 = l_Lean_SourceInfo_inhabited___closed__1; -x_81 = l___private_Lean_Elab_Match_18__collect___main___closed__13; +x_81 = l___private_Lean_Elab_Match_27__mkMatchType___main___closed__2; x_82 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_82, 0, x_80); lean_ctor_set(x_82, 1, x_81); @@ -18516,7 +19023,7 @@ lean_ctor_set(x_86, 0, x_85); lean_ctor_set(x_86, 1, x_84); x_87 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__4; x_88 = lean_array_push(x_87, x_86); -x_89 = l___private_Lean_Elab_Match_25__mkMatchType___main___closed__2; +x_89 = l___private_Lean_Elab_Match_27__mkMatchType___main___closed__4; x_90 = lean_array_push(x_88, x_89); x_91 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; x_92 = lean_array_push(x_90, x_91); @@ -18527,17 +19034,17 @@ x_96 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_96, 0, x_95); lean_ctor_set(x_96, 1, x_94); x_97 = lean_array_push(x_83, x_96); -x_98 = l___private_Lean_Elab_Match_25__mkMatchType___main___closed__3; +x_98 = l___private_Lean_Elab_Match_27__mkMatchType___main___closed__5; x_99 = lean_array_push(x_97, x_98); -x_100 = lean_array_push(x_84, x_91); -x_101 = l_Lean_mkTermIdFromIdent___closed__2; -x_102 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_102, 0, x_101); -lean_ctor_set(x_102, 1, x_100); -x_103 = lean_array_push(x_83, x_102); -x_104 = l___private_Lean_Elab_Match_25__mkMatchType___main___closed__4; -x_105 = lean_array_push(x_103, x_104); -x_106 = lean_array_push(x_105, x_76); +x_100 = lean_array_push(x_83, x_76); +x_101 = l___private_Lean_Elab_Match_27__mkMatchType___main___closed__6; +x_102 = lean_array_push(x_100, x_101); +x_103 = lean_array_push(x_84, x_91); +x_104 = l_Lean_mkTermIdFromIdent___closed__2; +x_105 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_105, 0, x_104); +lean_ctor_set(x_105, 1, x_103); +x_106 = lean_array_push(x_102, x_105); x_107 = l_Lean_Parser_Term_eq___elambda__1___closed__2; x_108 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_108, 0, x_107); @@ -18565,7 +19072,7 @@ lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_dec(x_14); lean_dec(x_12); lean_dec(x_4); -x_118 = l___private_Lean_Elab_Match_25__mkMatchType___main___closed__5; +x_118 = l___private_Lean_Elab_Match_27__mkMatchType___main___closed__7; x_119 = lean_array_push(x_118, x_71); x_120 = l_Lean_Parser_Term_arrow___elambda__1___closed__2; x_121 = lean_alloc_ctor(1, 2, 0); @@ -18618,7 +19125,7 @@ else lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; uint8_t x_139; x_132 = lean_nat_add(x_2, x_7); lean_dec(x_2); -x_133 = l___private_Lean_Elab_Match_25__mkMatchType___main(x_1, x_132, x_126, x_8); +x_133 = l___private_Lean_Elab_Match_27__mkMatchType___main(x_1, x_132, x_126, x_8); x_134 = lean_ctor_get(x_133, 0); lean_inc(x_134); x_135 = lean_ctor_get(x_133, 1); @@ -18644,7 +19151,7 @@ x_141 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; x_142 = l_Lean_addMacroScope(x_123, x_141, x_4); x_143 = lean_box(0); x_144 = l_Lean_SourceInfo_inhabited___closed__1; -x_145 = l___private_Lean_Elab_Match_18__collect___main___closed__13; +x_145 = l___private_Lean_Elab_Match_27__mkMatchType___main___closed__2; x_146 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_146, 0, x_144); lean_ctor_set(x_146, 1, x_145); @@ -18659,7 +19166,7 @@ lean_ctor_set(x_150, 0, x_149); lean_ctor_set(x_150, 1, x_148); x_151 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__4; x_152 = lean_array_push(x_151, x_150); -x_153 = l___private_Lean_Elab_Match_25__mkMatchType___main___closed__2; +x_153 = l___private_Lean_Elab_Match_27__mkMatchType___main___closed__4; x_154 = lean_array_push(x_152, x_153); x_155 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; x_156 = lean_array_push(x_154, x_155); @@ -18670,17 +19177,17 @@ x_160 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_160, 0, x_159); lean_ctor_set(x_160, 1, x_158); x_161 = lean_array_push(x_147, x_160); -x_162 = l___private_Lean_Elab_Match_25__mkMatchType___main___closed__3; +x_162 = l___private_Lean_Elab_Match_27__mkMatchType___main___closed__5; x_163 = lean_array_push(x_161, x_162); -x_164 = lean_array_push(x_148, x_155); -x_165 = l_Lean_mkTermIdFromIdent___closed__2; -x_166 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_166, 0, x_165); -lean_ctor_set(x_166, 1, x_164); -x_167 = lean_array_push(x_147, x_166); -x_168 = l___private_Lean_Elab_Match_25__mkMatchType___main___closed__4; -x_169 = lean_array_push(x_167, x_168); -x_170 = lean_array_push(x_169, x_140); +x_164 = lean_array_push(x_147, x_140); +x_165 = l___private_Lean_Elab_Match_27__mkMatchType___main___closed__6; +x_166 = lean_array_push(x_164, x_165); +x_167 = lean_array_push(x_148, x_155); +x_168 = l_Lean_mkTermIdFromIdent___closed__2; +x_169 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_169, 0, x_168); +lean_ctor_set(x_169, 1, x_167); +x_170 = lean_array_push(x_166, x_169); x_171 = l_Lean_Parser_Term_eq___elambda__1___closed__2; x_172 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_172, 0, x_171); @@ -18712,7 +19219,7 @@ lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_dec(x_127); lean_dec(x_123); lean_dec(x_4); -x_182 = l___private_Lean_Elab_Match_25__mkMatchType___main___closed__5; +x_182 = l___private_Lean_Elab_Match_27__mkMatchType___main___closed__7; x_183 = lean_array_push(x_182, x_134); x_184 = l_Lean_Parser_Term_arrow___elambda__1___closed__2; x_185 = lean_alloc_ctor(1, 2, 0); @@ -18732,33 +19239,33 @@ return x_186; } } } -lean_object* l___private_Lean_Elab_Match_25__mkMatchType___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Match_27__mkMatchType___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Lean_Elab_Match_25__mkMatchType___main(x_1, x_2, x_3, x_4); +x_5 = l___private_Lean_Elab_Match_27__mkMatchType___main(x_1, x_2, x_3, x_4); lean_dec(x_1); return x_5; } } -lean_object* l___private_Lean_Elab_Match_25__mkMatchType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Match_27__mkMatchType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Lean_Elab_Match_25__mkMatchType___main(x_1, x_2, x_3, x_4); +x_5 = l___private_Lean_Elab_Match_27__mkMatchType___main(x_1, x_2, x_3, x_4); return x_5; } } -lean_object* l___private_Lean_Elab_Match_25__mkMatchType___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Match_27__mkMatchType___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Lean_Elab_Match_25__mkMatchType(x_1, x_2, x_3, x_4); +x_5 = l___private_Lean_Elab_Match_27__mkMatchType(x_1, x_2, x_3, x_4); lean_dec(x_1); return x_5; } } -lean_object* l___private_Lean_Elab_Match_26__mkOptType(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Match_28__mkOptType(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; @@ -18780,7 +19287,7 @@ lean_ctor_set(x_12, 1, x_10); return x_12; } } -lean_object* _init_l___private_Lean_Elab_Match_27__mkNewDiscrs___main___closed__1() { +lean_object* _init_l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__1() { _start: { lean_object* x_1; @@ -18788,22 +19295,22 @@ x_1 = lean_mk_string("Eq.refl"); return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_27__mkNewDiscrs___main___closed__2() { +lean_object* _init_l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_27__mkNewDiscrs___main___closed__1; +x_1 = l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__1; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_27__mkNewDiscrs___main___closed__3() { +lean_object* _init_l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Lean_Elab_Match_27__mkNewDiscrs___main___closed__1; +x_1 = l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__1; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Lean_Elab_Match_27__mkNewDiscrs___main___closed__2; +x_3 = l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__2; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -18811,7 +19318,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -lean_object* _init_l___private_Lean_Elab_Match_27__mkNewDiscrs___main___closed__4() { +lean_object* _init_l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -18823,19 +19330,19 @@ lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* _init_l___private_Lean_Elab_Match_27__mkNewDiscrs___main___closed__5() { +lean_object* _init_l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_Match_27__mkNewDiscrs___main___closed__4; +x_2 = l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__4; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* _init_l___private_Lean_Elab_Match_27__mkNewDiscrs___main___closed__6() { +lean_object* _init_l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -18845,7 +19352,7 @@ x_3 = lean_array_push(x_1, x_2); return x_3; } } -lean_object* l___private_Lean_Elab_Match_27__mkNewDiscrs___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_Match_29__mkNewDiscrs___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; uint8_t x_7; @@ -18905,8 +19412,8 @@ lean_inc(x_26); x_27 = l_Lean_Meta_mkEqRefl___closed__2; x_28 = l_Lean_addMacroScope(x_26, x_27, x_25); x_29 = l_Lean_SourceInfo_inhabited___closed__1; -x_30 = l___private_Lean_Elab_Match_27__mkNewDiscrs___main___closed__3; -x_31 = l___private_Lean_Elab_Match_27__mkNewDiscrs___main___closed__5; +x_30 = l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__3; +x_31 = l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__5; x_32 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_32, 0, x_29); lean_ctor_set(x_32, 1, x_30); @@ -18927,7 +19434,7 @@ x_42 = l_Lean_mkAppStx___closed__8; x_43 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_43, 0, x_42); lean_ctor_set(x_43, 1, x_41); -x_44 = l___private_Lean_Elab_Match_27__mkNewDiscrs___main___closed__6; +x_44 = l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__6; x_45 = lean_array_push(x_44, x_43); x_46 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_46, 0, x_10); @@ -18955,33 +19462,33 @@ goto _start; } } } -lean_object* l___private_Lean_Elab_Match_27__mkNewDiscrs___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_Match_29__mkNewDiscrs___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l___private_Lean_Elab_Match_27__mkNewDiscrs___main(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Lean_Elab_Match_29__mkNewDiscrs___main(x_1, x_2, x_3, x_4, x_5); lean_dec(x_1); return x_6; } } -lean_object* l___private_Lean_Elab_Match_27__mkNewDiscrs(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_Match_29__mkNewDiscrs(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l___private_Lean_Elab_Match_27__mkNewDiscrs___main(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Lean_Elab_Match_29__mkNewDiscrs___main(x_1, x_2, x_3, x_4, x_5); return x_6; } } -lean_object* l___private_Lean_Elab_Match_27__mkNewDiscrs___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_Match_29__mkNewDiscrs___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l___private_Lean_Elab_Match_27__mkNewDiscrs(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Lean_Elab_Match_29__mkNewDiscrs(x_1, x_2, x_3, x_4, x_5); lean_dec(x_1); return x_6; } } -lean_object* _init_l___private_Lean_Elab_Match_28__mkNewPatterns___main___closed__1() { +lean_object* _init_l___private_Lean_Elab_Match_30__mkNewPatterns___main___closed__1() { _start: { lean_object* x_1; @@ -18989,7 +19496,7 @@ x_1 = lean_mk_string("invalid number of patterns, expected #"); return x_1; } } -lean_object* l___private_Lean_Elab_Match_28__mkNewPatterns___main(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* l___private_Lean_Elab_Match_30__mkNewPatterns___main(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; uint8_t x_9; @@ -19020,7 +19527,7 @@ lean_dec(x_11); lean_dec(x_5); lean_dec(x_4); x_14 = l_Nat_repr(x_8); -x_15 = l___private_Lean_Elab_Match_28__mkNewPatterns___main___closed__1; +x_15 = l___private_Lean_Elab_Match_30__mkNewPatterns___main___closed__1; x_16 = lean_string_append(x_15, x_14); lean_dec(x_14); x_17 = lean_alloc_ctor(0, 2, 0); @@ -19095,37 +19602,37 @@ goto _start; } } } -lean_object* l___private_Lean_Elab_Match_28__mkNewPatterns___main___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* l___private_Lean_Elab_Match_30__mkNewPatterns___main___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_Elab_Match_28__mkNewPatterns___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l___private_Lean_Elab_Match_30__mkNewPatterns___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); return x_8; } } -lean_object* l___private_Lean_Elab_Match_28__mkNewPatterns(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* l___private_Lean_Elab_Match_30__mkNewPatterns(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_Elab_Match_28__mkNewPatterns___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l___private_Lean_Elab_Match_30__mkNewPatterns___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7); return x_8; } } -lean_object* l___private_Lean_Elab_Match_28__mkNewPatterns___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* l___private_Lean_Elab_Match_30__mkNewPatterns___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_Elab_Match_28__mkNewPatterns(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l___private_Lean_Elab_Match_30__mkNewPatterns(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); return x_8; } } -lean_object* l___private_Lean_Elab_Match_29__mkNewAlt(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Match_31__mkNewAlt(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; @@ -19135,7 +19642,7 @@ x_7 = l_Lean_Syntax_getArgs(x_6); lean_dec(x_6); x_8 = l_Array_empty___closed__1; lean_inc(x_2); -x_9 = l___private_Lean_Elab_Match_28__mkNewPatterns___main(x_2, x_1, x_7, x_5, x_8, x_3, x_4); +x_9 = l___private_Lean_Elab_Match_30__mkNewPatterns___main(x_2, x_1, x_7, x_5, x_8, x_3, x_4); lean_dec(x_7); if (lean_obj_tag(x_9) == 0) { @@ -19197,17 +19704,17 @@ return x_24; } } } -lean_object* l___private_Lean_Elab_Match_29__mkNewAlt___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Match_31__mkNewAlt___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Lean_Elab_Match_29__mkNewAlt(x_1, x_2, x_3, x_4); +x_5 = l___private_Lean_Elab_Match_31__mkNewAlt(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_1); return x_5; } } -lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_30__mkNewAlts___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* l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_32__mkNewAlts___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; uint8_t x_8; @@ -19298,54 +19805,54 @@ return x_29; } } } -lean_object* l_Array_mapSepElemsM___at___private_Lean_Elab_Match_30__mkNewAlts___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_mapSepElemsM___at___private_Lean_Elab_Match_32__mkNewAlts___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_unsigned_to_nat(0u); x_6 = l_Array_empty___closed__1; -x_7 = l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_30__mkNewAlts___spec__2(x_1, x_2, x_5, x_6, x_3, x_4); +x_7 = l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_32__mkNewAlts___spec__2(x_1, x_2, x_5, x_6, x_3, x_4); return x_7; } } -lean_object* l___private_Lean_Elab_Match_30__mkNewAlts(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Match_32__mkNewAlts(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; -x_5 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_29__mkNewAlt___boxed), 4, 1); +x_5 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_31__mkNewAlt___boxed), 4, 1); lean_closure_set(x_5, 0, x_1); -x_6 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_30__mkNewAlts___spec__1(x_2, x_5, x_3, x_4); +x_6 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_32__mkNewAlts___spec__1(x_2, x_5, x_3, x_4); return x_6; } } -lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_30__mkNewAlts___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* l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_32__mkNewAlts___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___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_30__mkNewAlts___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_32__mkNewAlts___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_1); return x_7; } } -lean_object* l_Array_mapSepElemsM___at___private_Lean_Elab_Match_30__mkNewAlts___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_mapSepElemsM___at___private_Lean_Elab_Match_32__mkNewAlts___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_30__mkNewAlts___spec__1(x_1, x_2, x_3, x_4); +x_5 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_32__mkNewAlts___spec__1(x_1, x_2, x_3, x_4); lean_dec(x_1); return x_5; } } -lean_object* l___private_Lean_Elab_Match_30__mkNewAlts___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Match_32__mkNewAlts___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Lean_Elab_Match_30__mkNewAlts(x_1, x_2, x_3, x_4); +x_5 = l___private_Lean_Elab_Match_32__mkNewAlts(x_1, x_2, x_3, x_4); lean_dec(x_2); return x_5; } } -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_Match_31__expandMatchDiscr_x3f___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_Match_33__expandMatchDiscr_x3f___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; @@ -19385,7 +19892,7 @@ goto _start; } } } -lean_object* _init_l___private_Lean_Elab_Match_31__expandMatchDiscr_x3f___closed__1() { +lean_object* _init_l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f___closed__1() { _start: { lean_object* x_1; @@ -19393,7 +19900,7 @@ x_1 = lean_mk_string("match expected type should not be provided when discrimina return x_1; } } -lean_object* l___private_Lean_Elab_Match_31__expandMatchDiscr_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; @@ -19406,7 +19913,7 @@ x_8 = lean_unsigned_to_nat(0u); x_9 = l_Array_empty___closed__1; x_10 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_7, x_6, x_8, x_9); x_11 = lean_array_get_size(x_10); -x_12 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_Match_31__expandMatchDiscr_x3f___spec__1(x_1, x_10, x_11, x_8); +x_12 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_Match_33__expandMatchDiscr_x3f___spec__1(x_1, x_10, x_11, x_8); lean_dec(x_11); lean_dec(x_10); if (x_12 == 0) @@ -19432,7 +19939,7 @@ lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_dec(x_6); lean_dec(x_2); lean_dec(x_1); -x_17 = l___private_Lean_Elab_Match_31__expandMatchDiscr_x3f___closed__1; +x_17 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f___closed__1; x_18 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_18, 0, x_15); lean_ctor_set(x_18, 1, x_17); @@ -19446,17 +19953,17 @@ else 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_34; lean_object* x_35; lean_dec(x_15); lean_inc(x_2); -x_20 = l___private_Lean_Elab_Match_25__mkMatchType___main(x_6, x_8, x_2, x_3); +x_20 = l___private_Lean_Elab_Match_27__mkMatchType___main(x_6, x_8, x_2, x_3); x_21 = lean_ctor_get(x_20, 0); lean_inc(x_21); x_22 = lean_ctor_get(x_20, 1); lean_inc(x_22); lean_dec(x_20); x_23 = l_Lean_Syntax_copyInfo(x_21, x_1); -x_24 = l___private_Lean_Elab_Match_26__mkOptType(x_23); +x_24 = l___private_Lean_Elab_Match_28__mkOptType(x_23); x_25 = l_Lean_Syntax_setArg(x_1, x_7, x_24); lean_inc(x_2); -x_26 = l___private_Lean_Elab_Match_27__mkNewDiscrs___main(x_6, x_8, x_9, x_2, x_22); +x_26 = l___private_Lean_Elab_Match_29__mkNewDiscrs___main(x_6, x_8, x_9, x_2, x_22); x_27 = lean_ctor_get(x_26, 0); lean_inc(x_27); x_28 = lean_ctor_get(x_26, 1); @@ -19471,7 +19978,7 @@ x_32 = lean_unsigned_to_nat(5u); x_33 = l_Lean_Syntax_getArg(x_31, x_32); x_34 = l_Lean_Syntax_getArgs(x_33); lean_dec(x_33); -x_35 = l___private_Lean_Elab_Match_30__mkNewAlts(x_6, x_34, x_2, x_28); +x_35 = l___private_Lean_Elab_Match_32__mkNewAlts(x_6, x_34, x_2, x_28); lean_dec(x_34); if (lean_obj_tag(x_35) == 0) { @@ -19537,11 +20044,11 @@ return x_50; } } } -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_Match_31__expandMatchDiscr_x3f___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_Match_33__expandMatchDiscr_x3f___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; lean_object* x_6; -x_5 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_Match_31__expandMatchDiscr_x3f___spec__1(x_1, x_2, x_3, x_4); +x_5 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_Match_33__expandMatchDiscr_x3f___spec__1(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); @@ -19552,35 +20059,35 @@ return x_6; lean_object* l_Lean_Elab_Term_elabMatch(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; uint8_t x_34; lean_object* x_1763; uint8_t x_1764; -x_1763 = l_Lean_Parser_Term_match___elambda__1___closed__1; +lean_object* x_5; lean_object* x_6; uint8_t x_35; lean_object* x_1764; uint8_t x_1765; +x_1764 = l_Lean_Parser_Term_match___elambda__1___closed__1; lean_inc(x_1); -x_1764 = l_Lean_Syntax_isOfKind(x_1, x_1763); -if (x_1764 == 0) +x_1765 = l_Lean_Syntax_isOfKind(x_1, x_1764); +if (x_1765 == 0) { -uint8_t x_1765; -x_1765 = 0; -x_34 = x_1765; -goto block_1762; +uint8_t x_1766; +x_1766 = 0; +x_35 = x_1766; +goto block_1763; } else { -lean_object* x_1766; lean_object* x_1767; lean_object* x_1768; uint8_t x_1769; -x_1766 = l_Lean_Syntax_getArgs(x_1); -x_1767 = lean_array_get_size(x_1766); -lean_dec(x_1766); -x_1768 = lean_unsigned_to_nat(6u); -x_1769 = lean_nat_dec_eq(x_1767, x_1768); +lean_object* x_1767; lean_object* x_1768; lean_object* x_1769; uint8_t x_1770; +x_1767 = l_Lean_Syntax_getArgs(x_1); +x_1768 = lean_array_get_size(x_1767); lean_dec(x_1767); -x_34 = x_1769; -goto block_1762; +x_1769 = lean_unsigned_to_nat(6u); +x_1770 = lean_nat_dec_eq(x_1768, x_1769); +lean_dec(x_1768); +x_35 = x_1770; +goto block_1763; } -block_33: +block_34: { if (lean_obj_tag(x_5) == 0) { lean_object* x_7; -x_7 = l___private_Lean_Elab_Match_24__elabMatchCore(x_1, x_2, x_3, x_6); +x_7 = l___private_Lean_Elab_Match_26__elabMatchCore(x_1, x_2, x_3, x_6); lean_dec(x_1); return x_7; } @@ -19604,12 +20111,12 @@ lean_ctor_set(x_12, 0, x_11); lean_ctor_set(x_12, 1, x_10); lean_ctor_set(x_3, 8, x_12); x_13 = 1; -x_14 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_13, x_13, x_8, x_3, x_6); +x_14 = l_Lean_Elab_Term_elabTerm(x_8, x_2, x_13, x_3, x_6); 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_object* x_24; uint8_t x_25; uint8_t x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; lean_object* x_32; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; uint8_t x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33; x_15 = lean_ctor_get(x_3, 0); x_16 = lean_ctor_get(x_3, 1); x_17 = lean_ctor_get(x_3, 2); @@ -19620,9 +20127,11 @@ x_21 = lean_ctor_get(x_3, 6); x_22 = lean_ctor_get(x_3, 7); x_23 = lean_ctor_get(x_3, 8); x_24 = lean_ctor_get(x_3, 9); -x_25 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); -x_26 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); -x_27 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); +x_25 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_26 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_27 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +x_28 = lean_ctor_get(x_3, 10); +lean_inc(x_28); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -19635,2529 +20144,2530 @@ lean_inc(x_16); lean_inc(x_15); lean_dec(x_3); lean_inc(x_8); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_1); -lean_ctor_set(x_28, 1, x_8); -x_29 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_29, 0, x_28); -lean_ctor_set(x_29, 1, x_23); -x_30 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_30, 0, x_15); -lean_ctor_set(x_30, 1, x_16); -lean_ctor_set(x_30, 2, x_17); -lean_ctor_set(x_30, 3, x_18); -lean_ctor_set(x_30, 4, x_19); -lean_ctor_set(x_30, 5, x_20); -lean_ctor_set(x_30, 6, x_21); -lean_ctor_set(x_30, 7, x_22); -lean_ctor_set(x_30, 8, x_29); -lean_ctor_set(x_30, 9, x_24); -lean_ctor_set_uint8(x_30, sizeof(void*)*10, x_25); -lean_ctor_set_uint8(x_30, sizeof(void*)*10 + 1, x_26); -lean_ctor_set_uint8(x_30, sizeof(void*)*10 + 2, x_27); -x_31 = 1; -x_32 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_31, x_31, x_8, x_30, x_6); -return x_32; +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_1); +lean_ctor_set(x_29, 1, x_8); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_23); +x_31 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_31, 0, x_15); +lean_ctor_set(x_31, 1, x_16); +lean_ctor_set(x_31, 2, x_17); +lean_ctor_set(x_31, 3, x_18); +lean_ctor_set(x_31, 4, x_19); +lean_ctor_set(x_31, 5, x_20); +lean_ctor_set(x_31, 6, x_21); +lean_ctor_set(x_31, 7, x_22); +lean_ctor_set(x_31, 8, x_30); +lean_ctor_set(x_31, 9, x_24); +lean_ctor_set(x_31, 10, x_28); +lean_ctor_set_uint8(x_31, sizeof(void*)*11, x_25); +lean_ctor_set_uint8(x_31, sizeof(void*)*11 + 1, x_26); +lean_ctor_set_uint8(x_31, sizeof(void*)*11 + 2, x_27); +x_32 = 1; +x_33 = l_Lean_Elab_Term_elabTerm(x_8, x_2, x_32, x_31, x_6); +return x_33; } } } -block_1762: +block_1763: { -if (x_34 == 0) +if (x_35 == 0) { -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_35 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); -x_36 = lean_ctor_get(x_35, 0); -lean_inc(x_36); -x_37 = lean_ctor_get(x_35, 1); +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; 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_36 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); +x_37 = lean_ctor_get(x_36, 0); lean_inc(x_37); -lean_dec(x_35); -x_38 = l_Lean_Elab_Term_getEnv___rarg(x_37); -x_39 = lean_ctor_get(x_38, 1); -lean_inc(x_39); -x_40 = lean_ctor_get(x_38, 0); +x_38 = lean_ctor_get(x_36, 1); +lean_inc(x_38); +lean_dec(x_36); +x_39 = l_Lean_Elab_Term_getEnv___rarg(x_38); +x_40 = lean_ctor_get(x_39, 1); lean_inc(x_40); -lean_dec(x_38); x_41 = lean_ctor_get(x_39, 0); lean_inc(x_41); -x_42 = lean_ctor_get(x_39, 1); -lean_inc(x_42); -x_43 = lean_ctor_get(x_39, 2); -lean_inc(x_43); -x_44 = lean_ctor_get(x_39, 3); -lean_inc(x_44); -x_45 = lean_ctor_get(x_39, 4); -lean_inc(x_45); -x_46 = lean_ctor_get(x_39, 5); -lean_inc(x_46); -x_47 = lean_ctor_get(x_3, 0); -lean_inc(x_47); -x_48 = lean_ctor_get(x_47, 3); -lean_inc(x_48); -x_49 = lean_ctor_get(x_47, 4); -lean_inc(x_49); -lean_dec(x_47); -x_50 = lean_environment_main_module(x_40); -x_51 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_51, 0, x_50); -lean_ctor_set(x_51, 1, x_36); -lean_ctor_set(x_51, 2, x_48); -lean_ctor_set(x_51, 3, x_49); -lean_inc(x_1); -x_52 = l___private_Lean_Elab_Match_31__expandMatchDiscr_x3f(x_1, x_51, x_46); -if (lean_obj_tag(x_52) == 0) -{ -uint8_t x_53; -x_53 = !lean_is_exclusive(x_39); -if (x_53 == 0) -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_54 = lean_ctor_get(x_39, 5); -lean_dec(x_54); -x_55 = lean_ctor_get(x_39, 4); -lean_dec(x_55); -x_56 = lean_ctor_get(x_39, 3); -lean_dec(x_56); -x_57 = lean_ctor_get(x_39, 2); -lean_dec(x_57); -x_58 = lean_ctor_get(x_39, 1); -lean_dec(x_58); -x_59 = lean_ctor_get(x_39, 0); -lean_dec(x_59); -x_60 = lean_ctor_get(x_52, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_52, 1); -lean_inc(x_61); -lean_dec(x_52); -lean_ctor_set(x_39, 5, x_61); -x_5 = x_60; -x_6 = x_39; -goto block_33; -} -else -{ -lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_dec(x_39); -x_62 = lean_ctor_get(x_52, 0); +x_42 = lean_ctor_get(x_40, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_40, 1); +lean_inc(x_43); +x_44 = lean_ctor_get(x_40, 2); +lean_inc(x_44); +x_45 = lean_ctor_get(x_40, 3); +lean_inc(x_45); +x_46 = lean_ctor_get(x_40, 4); +lean_inc(x_46); +x_47 = lean_ctor_get(x_40, 5); +lean_inc(x_47); +x_48 = lean_ctor_get(x_3, 0); +lean_inc(x_48); +x_49 = lean_ctor_get(x_48, 3); +lean_inc(x_49); +x_50 = lean_ctor_get(x_48, 4); +lean_inc(x_50); +lean_dec(x_48); +x_51 = lean_environment_main_module(x_41); +x_52 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_37); +lean_ctor_set(x_52, 2, x_49); +lean_ctor_set(x_52, 3, x_50); +lean_inc(x_1); +x_53 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_52, x_47); +if (lean_obj_tag(x_53) == 0) +{ +uint8_t x_54; +x_54 = !lean_is_exclusive(x_40); +if (x_54 == 0) +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_55 = lean_ctor_get(x_40, 5); +lean_dec(x_55); +x_56 = lean_ctor_get(x_40, 4); +lean_dec(x_56); +x_57 = lean_ctor_get(x_40, 3); +lean_dec(x_57); +x_58 = lean_ctor_get(x_40, 2); +lean_dec(x_58); +x_59 = lean_ctor_get(x_40, 1); +lean_dec(x_59); +x_60 = lean_ctor_get(x_40, 0); +lean_dec(x_60); +x_61 = lean_ctor_get(x_53, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_53, 1); lean_inc(x_62); -x_63 = lean_ctor_get(x_52, 1); +lean_dec(x_53); +lean_ctor_set(x_40, 5, x_62); +x_5 = x_61; +x_6 = x_40; +goto block_34; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; +lean_dec(x_40); +x_63 = lean_ctor_get(x_53, 0); lean_inc(x_63); -lean_dec(x_52); -x_64 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_64, 0, x_41); -lean_ctor_set(x_64, 1, x_42); -lean_ctor_set(x_64, 2, x_43); -lean_ctor_set(x_64, 3, x_44); -lean_ctor_set(x_64, 4, x_45); -lean_ctor_set(x_64, 5, x_63); -x_5 = x_62; -x_6 = x_64; -goto block_33; +x_64 = lean_ctor_get(x_53, 1); +lean_inc(x_64); +lean_dec(x_53); +x_65 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_65, 0, x_42); +lean_ctor_set(x_65, 1, x_43); +lean_ctor_set(x_65, 2, x_44); +lean_ctor_set(x_65, 3, x_45); +lean_ctor_set(x_65, 4, x_46); +lean_ctor_set(x_65, 5, x_64); +x_5 = x_63; +x_6 = x_65; +goto block_34; } } else { -lean_object* x_65; +lean_object* x_66; +lean_dec(x_46); lean_dec(x_45); lean_dec(x_44); lean_dec(x_43); lean_dec(x_42); -lean_dec(x_41); lean_dec(x_2); lean_dec(x_1); -x_65 = lean_ctor_get(x_52, 0); -lean_inc(x_65); -lean_dec(x_52); -if (lean_obj_tag(x_65) == 0) -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; -x_66 = lean_ctor_get(x_65, 0); +x_66 = lean_ctor_get(x_53, 0); lean_inc(x_66); -x_67 = lean_ctor_get(x_65, 1); +lean_dec(x_53); +if (lean_obj_tag(x_66) == 0) +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; uint8_t x_72; +x_67 = lean_ctor_get(x_66, 0); lean_inc(x_67); -lean_dec(x_65); -x_68 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_68, 0, x_67); -x_69 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_69, 0, x_68); -x_70 = l_Lean_Elab_Term_throwError___rarg(x_66, x_69, x_3, x_39); +x_68 = lean_ctor_get(x_66, 1); +lean_inc(x_68); lean_dec(x_66); -x_71 = !lean_is_exclusive(x_70); -if (x_71 == 0) +x_69 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_69, 0, x_68); +x_70 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_70, 0, x_69); +x_71 = l_Lean_Elab_Term_throwErrorAt___rarg(x_67, x_70, x_3, x_40); +lean_dec(x_67); +x_72 = !lean_is_exclusive(x_71); +if (x_72 == 0) { -return x_70; +return x_71; } else { -lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_72 = lean_ctor_get(x_70, 0); -x_73 = lean_ctor_get(x_70, 1); +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_71, 0); +x_74 = lean_ctor_get(x_71, 1); +lean_inc(x_74); lean_inc(x_73); -lean_inc(x_72); -lean_dec(x_70); -x_74 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_74, 0, x_72); -lean_ctor_set(x_74, 1, x_73); -return x_74; -} -} -else -{ -lean_object* x_75; uint8_t x_76; -lean_dec(x_3); -x_75 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_39); -x_76 = !lean_is_exclusive(x_75); -if (x_76 == 0) -{ +lean_dec(x_71); +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_77; lean_object* x_78; lean_object* x_79; -x_77 = lean_ctor_get(x_75, 0); -x_78 = lean_ctor_get(x_75, 1); +lean_object* x_76; uint8_t x_77; +lean_dec(x_3); +x_76 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_40); +x_77 = !lean_is_exclusive(x_76); +if (x_77 == 0) +{ +return x_76; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_78 = lean_ctor_get(x_76, 0); +x_79 = lean_ctor_get(x_76, 1); +lean_inc(x_79); lean_inc(x_78); -lean_inc(x_77); -lean_dec(x_75); -x_79 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_79, 0, x_77); -lean_ctor_set(x_79, 1, x_78); -return x_79; +lean_dec(x_76); +x_80 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_80, 0, x_78); +lean_ctor_set(x_80, 1, x_79); +return x_80; } } } } else { -lean_object* x_80; lean_object* x_81; uint8_t x_82; lean_object* x_1756; uint8_t x_1757; -x_80 = lean_unsigned_to_nat(1u); -x_81 = l_Lean_Syntax_getArg(x_1, x_80); -x_1756 = l_Lean_nullKind___closed__2; -lean_inc(x_81); -x_1757 = l_Lean_Syntax_isOfKind(x_81, x_1756); -if (x_1757 == 0) +lean_object* x_81; lean_object* x_82; uint8_t x_83; lean_object* x_1757; uint8_t x_1758; +x_81 = lean_unsigned_to_nat(1u); +x_82 = l_Lean_Syntax_getArg(x_1, x_81); +x_1757 = l_Lean_nullKind___closed__2; +lean_inc(x_82); +x_1758 = l_Lean_Syntax_isOfKind(x_82, x_1757); +if (x_1758 == 0) { -uint8_t x_1758; -x_1758 = 0; -x_82 = x_1758; -goto block_1755; +uint8_t x_1759; +x_1759 = 0; +x_83 = x_1759; +goto block_1756; } else { -lean_object* x_1759; lean_object* x_1760; uint8_t x_1761; -x_1759 = l_Lean_Syntax_getArgs(x_81); -x_1760 = lean_array_get_size(x_1759); -lean_dec(x_1759); -x_1761 = lean_nat_dec_eq(x_1760, x_80); +lean_object* x_1760; lean_object* x_1761; uint8_t x_1762; +x_1760 = l_Lean_Syntax_getArgs(x_82); +x_1761 = lean_array_get_size(x_1760); lean_dec(x_1760); -x_82 = x_1761; -goto block_1755; +x_1762 = lean_nat_dec_eq(x_1761, x_81); +lean_dec(x_1761); +x_83 = x_1762; +goto block_1756; } -block_1755: +block_1756: { -if (x_82 == 0) +if (x_83 == 0) { -lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; -lean_dec(x_81); -x_83 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); -x_84 = lean_ctor_get(x_83, 0); -lean_inc(x_84); -x_85 = lean_ctor_get(x_83, 1); +lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; +lean_dec(x_82); +x_84 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); +x_85 = lean_ctor_get(x_84, 0); lean_inc(x_85); -lean_dec(x_83); -x_86 = l_Lean_Elab_Term_getEnv___rarg(x_85); -x_87 = lean_ctor_get(x_86, 1); -lean_inc(x_87); -x_88 = lean_ctor_get(x_86, 0); +x_86 = lean_ctor_get(x_84, 1); +lean_inc(x_86); +lean_dec(x_84); +x_87 = l_Lean_Elab_Term_getEnv___rarg(x_86); +x_88 = lean_ctor_get(x_87, 1); lean_inc(x_88); -lean_dec(x_86); x_89 = lean_ctor_get(x_87, 0); lean_inc(x_89); -x_90 = lean_ctor_get(x_87, 1); -lean_inc(x_90); -x_91 = lean_ctor_get(x_87, 2); -lean_inc(x_91); -x_92 = lean_ctor_get(x_87, 3); -lean_inc(x_92); -x_93 = lean_ctor_get(x_87, 4); -lean_inc(x_93); -x_94 = lean_ctor_get(x_87, 5); -lean_inc(x_94); -x_95 = lean_ctor_get(x_3, 0); -lean_inc(x_95); -x_96 = lean_ctor_get(x_95, 3); -lean_inc(x_96); -x_97 = lean_ctor_get(x_95, 4); -lean_inc(x_97); -lean_dec(x_95); -x_98 = lean_environment_main_module(x_88); -x_99 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_99, 0, x_98); -lean_ctor_set(x_99, 1, x_84); -lean_ctor_set(x_99, 2, x_96); -lean_ctor_set(x_99, 3, x_97); -lean_inc(x_1); -x_100 = l___private_Lean_Elab_Match_31__expandMatchDiscr_x3f(x_1, x_99, x_94); -if (lean_obj_tag(x_100) == 0) -{ -uint8_t x_101; -x_101 = !lean_is_exclusive(x_87); -if (x_101 == 0) -{ -lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_102 = lean_ctor_get(x_87, 5); -lean_dec(x_102); -x_103 = lean_ctor_get(x_87, 4); -lean_dec(x_103); -x_104 = lean_ctor_get(x_87, 3); -lean_dec(x_104); -x_105 = lean_ctor_get(x_87, 2); -lean_dec(x_105); -x_106 = lean_ctor_get(x_87, 1); -lean_dec(x_106); -x_107 = lean_ctor_get(x_87, 0); -lean_dec(x_107); -x_108 = lean_ctor_get(x_100, 0); -lean_inc(x_108); -x_109 = lean_ctor_get(x_100, 1); -lean_inc(x_109); -lean_dec(x_100); -lean_ctor_set(x_87, 5, x_109); -x_5 = x_108; -x_6 = x_87; -goto block_33; -} -else -{ -lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_dec(x_87); -x_110 = lean_ctor_get(x_100, 0); +x_90 = lean_ctor_get(x_88, 0); +lean_inc(x_90); +x_91 = lean_ctor_get(x_88, 1); +lean_inc(x_91); +x_92 = lean_ctor_get(x_88, 2); +lean_inc(x_92); +x_93 = lean_ctor_get(x_88, 3); +lean_inc(x_93); +x_94 = lean_ctor_get(x_88, 4); +lean_inc(x_94); +x_95 = lean_ctor_get(x_88, 5); +lean_inc(x_95); +x_96 = lean_ctor_get(x_3, 0); +lean_inc(x_96); +x_97 = lean_ctor_get(x_96, 3); +lean_inc(x_97); +x_98 = lean_ctor_get(x_96, 4); +lean_inc(x_98); +lean_dec(x_96); +x_99 = lean_environment_main_module(x_89); +x_100 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_85); +lean_ctor_set(x_100, 2, x_97); +lean_ctor_set(x_100, 3, x_98); +lean_inc(x_1); +x_101 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_100, x_95); +if (lean_obj_tag(x_101) == 0) +{ +uint8_t x_102; +x_102 = !lean_is_exclusive(x_88); +if (x_102 == 0) +{ +lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; +x_103 = lean_ctor_get(x_88, 5); +lean_dec(x_103); +x_104 = lean_ctor_get(x_88, 4); +lean_dec(x_104); +x_105 = lean_ctor_get(x_88, 3); +lean_dec(x_105); +x_106 = lean_ctor_get(x_88, 2); +lean_dec(x_106); +x_107 = lean_ctor_get(x_88, 1); +lean_dec(x_107); +x_108 = lean_ctor_get(x_88, 0); +lean_dec(x_108); +x_109 = lean_ctor_get(x_101, 0); +lean_inc(x_109); +x_110 = lean_ctor_get(x_101, 1); lean_inc(x_110); -x_111 = lean_ctor_get(x_100, 1); +lean_dec(x_101); +lean_ctor_set(x_88, 5, x_110); +x_5 = x_109; +x_6 = x_88; +goto block_34; +} +else +{ +lean_object* x_111; lean_object* x_112; lean_object* x_113; +lean_dec(x_88); +x_111 = lean_ctor_get(x_101, 0); lean_inc(x_111); -lean_dec(x_100); -x_112 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_112, 0, x_89); -lean_ctor_set(x_112, 1, x_90); -lean_ctor_set(x_112, 2, x_91); -lean_ctor_set(x_112, 3, x_92); -lean_ctor_set(x_112, 4, x_93); -lean_ctor_set(x_112, 5, x_111); -x_5 = x_110; -x_6 = x_112; -goto block_33; +x_112 = lean_ctor_get(x_101, 1); +lean_inc(x_112); +lean_dec(x_101); +x_113 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_113, 0, x_90); +lean_ctor_set(x_113, 1, x_91); +lean_ctor_set(x_113, 2, x_92); +lean_ctor_set(x_113, 3, x_93); +lean_ctor_set(x_113, 4, x_94); +lean_ctor_set(x_113, 5, x_112); +x_5 = x_111; +x_6 = x_113; +goto block_34; } } else { -lean_object* x_113; +lean_object* x_114; +lean_dec(x_94); lean_dec(x_93); lean_dec(x_92); lean_dec(x_91); lean_dec(x_90); -lean_dec(x_89); lean_dec(x_2); lean_dec(x_1); -x_113 = lean_ctor_get(x_100, 0); -lean_inc(x_113); -lean_dec(x_100); -if (lean_obj_tag(x_113) == 0) -{ -lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; -x_114 = lean_ctor_get(x_113, 0); +x_114 = lean_ctor_get(x_101, 0); lean_inc(x_114); -x_115 = lean_ctor_get(x_113, 1); +lean_dec(x_101); +if (lean_obj_tag(x_114) == 0) +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; uint8_t x_120; +x_115 = lean_ctor_get(x_114, 0); lean_inc(x_115); -lean_dec(x_113); -x_116 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_116, 0, x_115); -x_117 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_117, 0, x_116); -x_118 = l_Lean_Elab_Term_throwError___rarg(x_114, x_117, x_3, x_87); +x_116 = lean_ctor_get(x_114, 1); +lean_inc(x_116); lean_dec(x_114); -x_119 = !lean_is_exclusive(x_118); -if (x_119 == 0) +x_117 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_117, 0, x_116); +x_118 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_118, 0, x_117); +x_119 = l_Lean_Elab_Term_throwErrorAt___rarg(x_115, x_118, x_3, x_88); +lean_dec(x_115); +x_120 = !lean_is_exclusive(x_119); +if (x_120 == 0) { -return x_118; +return x_119; } else { -lean_object* x_120; lean_object* x_121; lean_object* x_122; -x_120 = lean_ctor_get(x_118, 0); -x_121 = lean_ctor_get(x_118, 1); +lean_object* x_121; lean_object* x_122; lean_object* x_123; +x_121 = lean_ctor_get(x_119, 0); +x_122 = lean_ctor_get(x_119, 1); +lean_inc(x_122); lean_inc(x_121); -lean_inc(x_120); -lean_dec(x_118); -x_122 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_122, 0, x_120); -lean_ctor_set(x_122, 1, x_121); -return x_122; -} -} -else -{ -lean_object* x_123; uint8_t x_124; -lean_dec(x_3); -x_123 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_87); -x_124 = !lean_is_exclusive(x_123); -if (x_124 == 0) -{ +lean_dec(x_119); +x_123 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_123, 0, x_121); +lean_ctor_set(x_123, 1, x_122); return x_123; } +} else { -lean_object* x_125; lean_object* x_126; lean_object* x_127; -x_125 = lean_ctor_get(x_123, 0); -x_126 = lean_ctor_get(x_123, 1); +lean_object* x_124; uint8_t x_125; +lean_dec(x_3); +x_124 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_88); +x_125 = !lean_is_exclusive(x_124); +if (x_125 == 0) +{ +return x_124; +} +else +{ +lean_object* x_126; lean_object* x_127; lean_object* x_128; +x_126 = lean_ctor_get(x_124, 0); +x_127 = lean_ctor_get(x_124, 1); +lean_inc(x_127); lean_inc(x_126); -lean_inc(x_125); -lean_dec(x_123); -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; +lean_dec(x_124); +x_128 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_128, 0, x_126); +lean_ctor_set(x_128, 1, x_127); +return x_128; } } } } else { -lean_object* x_128; lean_object* x_129; uint8_t x_130; lean_object* x_1748; uint8_t x_1749; -x_128 = lean_unsigned_to_nat(0u); -x_129 = l_Lean_Syntax_getArg(x_81, x_128); -lean_dec(x_81); -x_1748 = l_Lean_Parser_Term_matchDiscr___elambda__1___closed__2; -lean_inc(x_129); -x_1749 = l_Lean_Syntax_isOfKind(x_129, x_1748); -if (x_1749 == 0) +lean_object* x_129; lean_object* x_130; uint8_t x_131; lean_object* x_1749; uint8_t x_1750; +x_129 = lean_unsigned_to_nat(0u); +x_130 = l_Lean_Syntax_getArg(x_82, x_129); +lean_dec(x_82); +x_1749 = l_Lean_Parser_Term_matchDiscr___elambda__1___closed__2; +lean_inc(x_130); +x_1750 = l_Lean_Syntax_isOfKind(x_130, x_1749); +if (x_1750 == 0) { -uint8_t x_1750; -x_1750 = 0; -x_130 = x_1750; -goto block_1747; +uint8_t x_1751; +x_1751 = 0; +x_131 = x_1751; +goto block_1748; } else { -lean_object* x_1751; lean_object* x_1752; lean_object* x_1753; uint8_t x_1754; -x_1751 = l_Lean_Syntax_getArgs(x_129); -x_1752 = lean_array_get_size(x_1751); -lean_dec(x_1751); -x_1753 = lean_unsigned_to_nat(2u); -x_1754 = lean_nat_dec_eq(x_1752, x_1753); +lean_object* x_1752; lean_object* x_1753; lean_object* x_1754; uint8_t x_1755; +x_1752 = l_Lean_Syntax_getArgs(x_130); +x_1753 = lean_array_get_size(x_1752); lean_dec(x_1752); -x_130 = x_1754; -goto block_1747; +x_1754 = lean_unsigned_to_nat(2u); +x_1755 = lean_nat_dec_eq(x_1753, x_1754); +lean_dec(x_1753); +x_131 = x_1755; +goto block_1748; } -block_1747: +block_1748: { -if (x_130 == 0) +if (x_131 == 0) { -lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; -lean_dec(x_129); -x_131 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); -x_132 = lean_ctor_get(x_131, 0); -lean_inc(x_132); -x_133 = lean_ctor_get(x_131, 1); +lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; +lean_dec(x_130); +x_132 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); +x_133 = lean_ctor_get(x_132, 0); lean_inc(x_133); -lean_dec(x_131); -x_134 = l_Lean_Elab_Term_getEnv___rarg(x_133); -x_135 = lean_ctor_get(x_134, 1); -lean_inc(x_135); -x_136 = lean_ctor_get(x_134, 0); +x_134 = lean_ctor_get(x_132, 1); +lean_inc(x_134); +lean_dec(x_132); +x_135 = l_Lean_Elab_Term_getEnv___rarg(x_134); +x_136 = lean_ctor_get(x_135, 1); lean_inc(x_136); -lean_dec(x_134); x_137 = lean_ctor_get(x_135, 0); lean_inc(x_137); -x_138 = lean_ctor_get(x_135, 1); -lean_inc(x_138); -x_139 = lean_ctor_get(x_135, 2); -lean_inc(x_139); -x_140 = lean_ctor_get(x_135, 3); -lean_inc(x_140); -x_141 = lean_ctor_get(x_135, 4); -lean_inc(x_141); -x_142 = lean_ctor_get(x_135, 5); -lean_inc(x_142); -x_143 = lean_ctor_get(x_3, 0); -lean_inc(x_143); -x_144 = lean_ctor_get(x_143, 3); -lean_inc(x_144); -x_145 = lean_ctor_get(x_143, 4); -lean_inc(x_145); -lean_dec(x_143); -x_146 = lean_environment_main_module(x_136); -x_147 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_147, 0, x_146); -lean_ctor_set(x_147, 1, x_132); -lean_ctor_set(x_147, 2, x_144); -lean_ctor_set(x_147, 3, x_145); -lean_inc(x_1); -x_148 = l___private_Lean_Elab_Match_31__expandMatchDiscr_x3f(x_1, x_147, x_142); -if (lean_obj_tag(x_148) == 0) -{ -uint8_t x_149; -x_149 = !lean_is_exclusive(x_135); -if (x_149 == 0) -{ -lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; -x_150 = lean_ctor_get(x_135, 5); -lean_dec(x_150); -x_151 = lean_ctor_get(x_135, 4); -lean_dec(x_151); -x_152 = lean_ctor_get(x_135, 3); -lean_dec(x_152); -x_153 = lean_ctor_get(x_135, 2); -lean_dec(x_153); -x_154 = lean_ctor_get(x_135, 1); -lean_dec(x_154); -x_155 = lean_ctor_get(x_135, 0); -lean_dec(x_155); -x_156 = lean_ctor_get(x_148, 0); -lean_inc(x_156); -x_157 = lean_ctor_get(x_148, 1); -lean_inc(x_157); -lean_dec(x_148); -lean_ctor_set(x_135, 5, x_157); -x_5 = x_156; -x_6 = x_135; -goto block_33; -} -else -{ -lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_dec(x_135); -x_158 = lean_ctor_get(x_148, 0); +x_138 = lean_ctor_get(x_136, 0); +lean_inc(x_138); +x_139 = lean_ctor_get(x_136, 1); +lean_inc(x_139); +x_140 = lean_ctor_get(x_136, 2); +lean_inc(x_140); +x_141 = lean_ctor_get(x_136, 3); +lean_inc(x_141); +x_142 = lean_ctor_get(x_136, 4); +lean_inc(x_142); +x_143 = lean_ctor_get(x_136, 5); +lean_inc(x_143); +x_144 = lean_ctor_get(x_3, 0); +lean_inc(x_144); +x_145 = lean_ctor_get(x_144, 3); +lean_inc(x_145); +x_146 = lean_ctor_get(x_144, 4); +lean_inc(x_146); +lean_dec(x_144); +x_147 = lean_environment_main_module(x_137); +x_148 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_148, 0, x_147); +lean_ctor_set(x_148, 1, x_133); +lean_ctor_set(x_148, 2, x_145); +lean_ctor_set(x_148, 3, x_146); +lean_inc(x_1); +x_149 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_148, x_143); +if (lean_obj_tag(x_149) == 0) +{ +uint8_t x_150; +x_150 = !lean_is_exclusive(x_136); +if (x_150 == 0) +{ +lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; +x_151 = lean_ctor_get(x_136, 5); +lean_dec(x_151); +x_152 = lean_ctor_get(x_136, 4); +lean_dec(x_152); +x_153 = lean_ctor_get(x_136, 3); +lean_dec(x_153); +x_154 = lean_ctor_get(x_136, 2); +lean_dec(x_154); +x_155 = lean_ctor_get(x_136, 1); +lean_dec(x_155); +x_156 = lean_ctor_get(x_136, 0); +lean_dec(x_156); +x_157 = lean_ctor_get(x_149, 0); +lean_inc(x_157); +x_158 = lean_ctor_get(x_149, 1); lean_inc(x_158); -x_159 = lean_ctor_get(x_148, 1); +lean_dec(x_149); +lean_ctor_set(x_136, 5, x_158); +x_5 = x_157; +x_6 = x_136; +goto block_34; +} +else +{ +lean_object* x_159; lean_object* x_160; lean_object* x_161; +lean_dec(x_136); +x_159 = lean_ctor_get(x_149, 0); lean_inc(x_159); -lean_dec(x_148); -x_160 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_160, 0, x_137); -lean_ctor_set(x_160, 1, x_138); -lean_ctor_set(x_160, 2, x_139); -lean_ctor_set(x_160, 3, x_140); -lean_ctor_set(x_160, 4, x_141); -lean_ctor_set(x_160, 5, x_159); -x_5 = x_158; -x_6 = x_160; -goto block_33; +x_160 = lean_ctor_get(x_149, 1); +lean_inc(x_160); +lean_dec(x_149); +x_161 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_161, 0, x_138); +lean_ctor_set(x_161, 1, x_139); +lean_ctor_set(x_161, 2, x_140); +lean_ctor_set(x_161, 3, x_141); +lean_ctor_set(x_161, 4, x_142); +lean_ctor_set(x_161, 5, x_160); +x_5 = x_159; +x_6 = x_161; +goto block_34; } } else { -lean_object* x_161; +lean_object* x_162; +lean_dec(x_142); lean_dec(x_141); lean_dec(x_140); lean_dec(x_139); lean_dec(x_138); -lean_dec(x_137); lean_dec(x_2); lean_dec(x_1); -x_161 = lean_ctor_get(x_148, 0); -lean_inc(x_161); -lean_dec(x_148); -if (lean_obj_tag(x_161) == 0) -{ -lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; uint8_t x_167; -x_162 = lean_ctor_get(x_161, 0); +x_162 = lean_ctor_get(x_149, 0); lean_inc(x_162); -x_163 = lean_ctor_get(x_161, 1); +lean_dec(x_149); +if (lean_obj_tag(x_162) == 0) +{ +lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; uint8_t x_168; +x_163 = lean_ctor_get(x_162, 0); lean_inc(x_163); -lean_dec(x_161); -x_164 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_164, 0, x_163); -x_165 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_165, 0, x_164); -x_166 = l_Lean_Elab_Term_throwError___rarg(x_162, x_165, x_3, x_135); +x_164 = lean_ctor_get(x_162, 1); +lean_inc(x_164); lean_dec(x_162); -x_167 = !lean_is_exclusive(x_166); -if (x_167 == 0) +x_165 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_165, 0, x_164); +x_166 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_166, 0, x_165); +x_167 = l_Lean_Elab_Term_throwErrorAt___rarg(x_163, x_166, x_3, x_136); +lean_dec(x_163); +x_168 = !lean_is_exclusive(x_167); +if (x_168 == 0) { -return x_166; +return x_167; } else { -lean_object* x_168; lean_object* x_169; lean_object* x_170; -x_168 = lean_ctor_get(x_166, 0); -x_169 = lean_ctor_get(x_166, 1); +lean_object* x_169; lean_object* x_170; lean_object* x_171; +x_169 = lean_ctor_get(x_167, 0); +x_170 = lean_ctor_get(x_167, 1); +lean_inc(x_170); lean_inc(x_169); -lean_inc(x_168); -lean_dec(x_166); -x_170 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_170, 0, x_168); -lean_ctor_set(x_170, 1, x_169); -return x_170; -} -} -else -{ -lean_object* x_171; uint8_t x_172; -lean_dec(x_3); -x_171 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_135); -x_172 = !lean_is_exclusive(x_171); -if (x_172 == 0) -{ +lean_dec(x_167); +x_171 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_171, 0, x_169); +lean_ctor_set(x_171, 1, x_170); return x_171; } +} else { -lean_object* x_173; lean_object* x_174; lean_object* x_175; -x_173 = lean_ctor_get(x_171, 0); -x_174 = lean_ctor_get(x_171, 1); +lean_object* x_172; uint8_t x_173; +lean_dec(x_3); +x_172 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_136); +x_173 = !lean_is_exclusive(x_172); +if (x_173 == 0) +{ +return x_172; +} +else +{ +lean_object* x_174; lean_object* x_175; lean_object* x_176; +x_174 = lean_ctor_get(x_172, 0); +x_175 = lean_ctor_get(x_172, 1); +lean_inc(x_175); lean_inc(x_174); -lean_inc(x_173); -lean_dec(x_171); -x_175 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_175, 0, x_173); -lean_ctor_set(x_175, 1, x_174); -return x_175; +lean_dec(x_172); +x_176 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_176, 0, x_174); +lean_ctor_set(x_176, 1, x_175); +return x_176; } } } } else { -lean_object* x_176; uint8_t x_177; lean_object* x_1741; uint8_t x_1742; -x_176 = l_Lean_Syntax_getArg(x_129, x_128); -x_1741 = l_Lean_nullKind___closed__2; -lean_inc(x_176); -x_1742 = l_Lean_Syntax_isOfKind(x_176, x_1741); -if (x_1742 == 0) +lean_object* x_177; uint8_t x_178; lean_object* x_1742; uint8_t x_1743; +x_177 = l_Lean_Syntax_getArg(x_130, x_129); +x_1742 = l_Lean_nullKind___closed__2; +lean_inc(x_177); +x_1743 = l_Lean_Syntax_isOfKind(x_177, x_1742); +if (x_1743 == 0) { -uint8_t x_1743; -lean_dec(x_176); -x_1743 = 0; -x_177 = x_1743; -goto block_1740; +uint8_t x_1744; +lean_dec(x_177); +x_1744 = 0; +x_178 = x_1744; +goto block_1741; } else { -lean_object* x_1744; lean_object* x_1745; uint8_t x_1746; -x_1744 = l_Lean_Syntax_getArgs(x_176); -lean_dec(x_176); -x_1745 = lean_array_get_size(x_1744); -lean_dec(x_1744); -x_1746 = lean_nat_dec_eq(x_1745, x_128); +lean_object* x_1745; lean_object* x_1746; uint8_t x_1747; +x_1745 = l_Lean_Syntax_getArgs(x_177); +lean_dec(x_177); +x_1746 = lean_array_get_size(x_1745); lean_dec(x_1745); -x_177 = x_1746; -goto block_1740; +x_1747 = lean_nat_dec_eq(x_1746, x_129); +lean_dec(x_1746); +x_178 = x_1747; +goto block_1741; } -block_1740: +block_1741: { -if (x_177 == 0) +if (x_178 == 0) { -lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; -lean_dec(x_129); -x_178 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); -x_179 = lean_ctor_get(x_178, 0); -lean_inc(x_179); -x_180 = lean_ctor_get(x_178, 1); +lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; +lean_dec(x_130); +x_179 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); +x_180 = lean_ctor_get(x_179, 0); lean_inc(x_180); -lean_dec(x_178); -x_181 = l_Lean_Elab_Term_getEnv___rarg(x_180); -x_182 = lean_ctor_get(x_181, 1); -lean_inc(x_182); -x_183 = lean_ctor_get(x_181, 0); +x_181 = lean_ctor_get(x_179, 1); +lean_inc(x_181); +lean_dec(x_179); +x_182 = l_Lean_Elab_Term_getEnv___rarg(x_181); +x_183 = lean_ctor_get(x_182, 1); lean_inc(x_183); -lean_dec(x_181); x_184 = lean_ctor_get(x_182, 0); lean_inc(x_184); -x_185 = lean_ctor_get(x_182, 1); -lean_inc(x_185); -x_186 = lean_ctor_get(x_182, 2); -lean_inc(x_186); -x_187 = lean_ctor_get(x_182, 3); -lean_inc(x_187); -x_188 = lean_ctor_get(x_182, 4); -lean_inc(x_188); -x_189 = lean_ctor_get(x_182, 5); -lean_inc(x_189); -x_190 = lean_ctor_get(x_3, 0); -lean_inc(x_190); -x_191 = lean_ctor_get(x_190, 3); -lean_inc(x_191); -x_192 = lean_ctor_get(x_190, 4); -lean_inc(x_192); -lean_dec(x_190); -x_193 = lean_environment_main_module(x_183); -x_194 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_194, 0, x_193); -lean_ctor_set(x_194, 1, x_179); -lean_ctor_set(x_194, 2, x_191); -lean_ctor_set(x_194, 3, x_192); -lean_inc(x_1); -x_195 = l___private_Lean_Elab_Match_31__expandMatchDiscr_x3f(x_1, x_194, x_189); -if (lean_obj_tag(x_195) == 0) -{ -uint8_t x_196; -x_196 = !lean_is_exclusive(x_182); -if (x_196 == 0) -{ -lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; -x_197 = lean_ctor_get(x_182, 5); -lean_dec(x_197); -x_198 = lean_ctor_get(x_182, 4); -lean_dec(x_198); -x_199 = lean_ctor_get(x_182, 3); -lean_dec(x_199); -x_200 = lean_ctor_get(x_182, 2); -lean_dec(x_200); -x_201 = lean_ctor_get(x_182, 1); -lean_dec(x_201); -x_202 = lean_ctor_get(x_182, 0); -lean_dec(x_202); -x_203 = lean_ctor_get(x_195, 0); -lean_inc(x_203); -x_204 = lean_ctor_get(x_195, 1); -lean_inc(x_204); -lean_dec(x_195); -lean_ctor_set(x_182, 5, x_204); -x_5 = x_203; -x_6 = x_182; -goto block_33; -} -else -{ -lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_dec(x_182); -x_205 = lean_ctor_get(x_195, 0); +x_185 = lean_ctor_get(x_183, 0); +lean_inc(x_185); +x_186 = lean_ctor_get(x_183, 1); +lean_inc(x_186); +x_187 = lean_ctor_get(x_183, 2); +lean_inc(x_187); +x_188 = lean_ctor_get(x_183, 3); +lean_inc(x_188); +x_189 = lean_ctor_get(x_183, 4); +lean_inc(x_189); +x_190 = lean_ctor_get(x_183, 5); +lean_inc(x_190); +x_191 = lean_ctor_get(x_3, 0); +lean_inc(x_191); +x_192 = lean_ctor_get(x_191, 3); +lean_inc(x_192); +x_193 = lean_ctor_get(x_191, 4); +lean_inc(x_193); +lean_dec(x_191); +x_194 = lean_environment_main_module(x_184); +x_195 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_195, 0, x_194); +lean_ctor_set(x_195, 1, x_180); +lean_ctor_set(x_195, 2, x_192); +lean_ctor_set(x_195, 3, x_193); +lean_inc(x_1); +x_196 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_195, x_190); +if (lean_obj_tag(x_196) == 0) +{ +uint8_t x_197; +x_197 = !lean_is_exclusive(x_183); +if (x_197 == 0) +{ +lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; +x_198 = lean_ctor_get(x_183, 5); +lean_dec(x_198); +x_199 = lean_ctor_get(x_183, 4); +lean_dec(x_199); +x_200 = lean_ctor_get(x_183, 3); +lean_dec(x_200); +x_201 = lean_ctor_get(x_183, 2); +lean_dec(x_201); +x_202 = lean_ctor_get(x_183, 1); +lean_dec(x_202); +x_203 = lean_ctor_get(x_183, 0); +lean_dec(x_203); +x_204 = lean_ctor_get(x_196, 0); +lean_inc(x_204); +x_205 = lean_ctor_get(x_196, 1); lean_inc(x_205); -x_206 = lean_ctor_get(x_195, 1); +lean_dec(x_196); +lean_ctor_set(x_183, 5, x_205); +x_5 = x_204; +x_6 = x_183; +goto block_34; +} +else +{ +lean_object* x_206; lean_object* x_207; lean_object* x_208; +lean_dec(x_183); +x_206 = lean_ctor_get(x_196, 0); lean_inc(x_206); -lean_dec(x_195); -x_207 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_207, 0, x_184); -lean_ctor_set(x_207, 1, x_185); -lean_ctor_set(x_207, 2, x_186); -lean_ctor_set(x_207, 3, x_187); -lean_ctor_set(x_207, 4, x_188); -lean_ctor_set(x_207, 5, x_206); -x_5 = x_205; -x_6 = x_207; -goto block_33; +x_207 = lean_ctor_get(x_196, 1); +lean_inc(x_207); +lean_dec(x_196); +x_208 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_208, 0, x_185); +lean_ctor_set(x_208, 1, x_186); +lean_ctor_set(x_208, 2, x_187); +lean_ctor_set(x_208, 3, x_188); +lean_ctor_set(x_208, 4, x_189); +lean_ctor_set(x_208, 5, x_207); +x_5 = x_206; +x_6 = x_208; +goto block_34; } } else { -lean_object* x_208; +lean_object* x_209; +lean_dec(x_189); lean_dec(x_188); lean_dec(x_187); lean_dec(x_186); lean_dec(x_185); -lean_dec(x_184); lean_dec(x_2); lean_dec(x_1); -x_208 = lean_ctor_get(x_195, 0); -lean_inc(x_208); -lean_dec(x_195); -if (lean_obj_tag(x_208) == 0) -{ -lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; uint8_t x_214; -x_209 = lean_ctor_get(x_208, 0); +x_209 = lean_ctor_get(x_196, 0); lean_inc(x_209); -x_210 = lean_ctor_get(x_208, 1); +lean_dec(x_196); +if (lean_obj_tag(x_209) == 0) +{ +lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; uint8_t x_215; +x_210 = lean_ctor_get(x_209, 0); lean_inc(x_210); -lean_dec(x_208); -x_211 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_211, 0, x_210); -x_212 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_212, 0, x_211); -x_213 = l_Lean_Elab_Term_throwError___rarg(x_209, x_212, x_3, x_182); +x_211 = lean_ctor_get(x_209, 1); +lean_inc(x_211); lean_dec(x_209); -x_214 = !lean_is_exclusive(x_213); -if (x_214 == 0) +x_212 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_212, 0, x_211); +x_213 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_213, 0, x_212); +x_214 = l_Lean_Elab_Term_throwErrorAt___rarg(x_210, x_213, x_3, x_183); +lean_dec(x_210); +x_215 = !lean_is_exclusive(x_214); +if (x_215 == 0) { -return x_213; +return x_214; } else { -lean_object* x_215; lean_object* x_216; lean_object* x_217; -x_215 = lean_ctor_get(x_213, 0); -x_216 = lean_ctor_get(x_213, 1); +lean_object* x_216; lean_object* x_217; lean_object* x_218; +x_216 = lean_ctor_get(x_214, 0); +x_217 = lean_ctor_get(x_214, 1); +lean_inc(x_217); lean_inc(x_216); -lean_inc(x_215); -lean_dec(x_213); -x_217 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_217, 0, x_215); -lean_ctor_set(x_217, 1, x_216); -return x_217; -} -} -else -{ -lean_object* x_218; uint8_t x_219; -lean_dec(x_3); -x_218 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_182); -x_219 = !lean_is_exclusive(x_218); -if (x_219 == 0) -{ +lean_dec(x_214); +x_218 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_218, 0, x_216); +lean_ctor_set(x_218, 1, x_217); return x_218; } +} else { -lean_object* x_220; lean_object* x_221; lean_object* x_222; -x_220 = lean_ctor_get(x_218, 0); -x_221 = lean_ctor_get(x_218, 1); +lean_object* x_219; uint8_t x_220; +lean_dec(x_3); +x_219 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_183); +x_220 = !lean_is_exclusive(x_219); +if (x_220 == 0) +{ +return x_219; +} +else +{ +lean_object* x_221; lean_object* x_222; lean_object* x_223; +x_221 = lean_ctor_get(x_219, 0); +x_222 = lean_ctor_get(x_219, 1); +lean_inc(x_222); lean_inc(x_221); -lean_inc(x_220); -lean_dec(x_218); -x_222 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_222, 0, x_220); -lean_ctor_set(x_222, 1, x_221); -return x_222; +lean_dec(x_219); +x_223 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_223, 0, x_221); +lean_ctor_set(x_223, 1, x_222); +return x_223; } } } } else { -lean_object* x_223; lean_object* x_224; lean_object* x_225; uint8_t x_226; lean_object* x_1030; uint8_t x_1031; uint8_t x_1032; -x_223 = l_Lean_Syntax_getArg(x_129, x_80); -lean_dec(x_129); -x_224 = lean_unsigned_to_nat(2u); -x_225 = l_Lean_Syntax_getArg(x_1, x_224); -x_1030 = l_Lean_nullKind___closed__2; -lean_inc(x_225); -x_1031 = l_Lean_Syntax_isOfKind(x_225, x_1030); -if (x_1031 == 0) +lean_object* x_224; lean_object* x_225; lean_object* x_226; uint8_t x_227; lean_object* x_1031; uint8_t x_1032; uint8_t x_1033; +x_224 = l_Lean_Syntax_getArg(x_130, x_81); +lean_dec(x_130); +x_225 = lean_unsigned_to_nat(2u); +x_226 = l_Lean_Syntax_getArg(x_1, x_225); +x_1031 = l_Lean_nullKind___closed__2; +lean_inc(x_226); +x_1032 = l_Lean_Syntax_isOfKind(x_226, x_1031); +if (x_1032 == 0) { -uint8_t x_1736; -x_1736 = 0; -x_1032 = x_1736; -goto block_1735; +uint8_t x_1737; +x_1737 = 0; +x_1033 = x_1737; +goto block_1736; } else { -lean_object* x_1737; lean_object* x_1738; uint8_t x_1739; -x_1737 = l_Lean_Syntax_getArgs(x_225); -x_1738 = lean_array_get_size(x_1737); -lean_dec(x_1737); -x_1739 = lean_nat_dec_eq(x_1738, x_128); +lean_object* x_1738; lean_object* x_1739; uint8_t x_1740; +x_1738 = l_Lean_Syntax_getArgs(x_226); +x_1739 = lean_array_get_size(x_1738); lean_dec(x_1738); -x_1032 = x_1739; -goto block_1735; +x_1740 = lean_nat_dec_eq(x_1739, x_129); +lean_dec(x_1739); +x_1033 = x_1740; +goto block_1736; } -block_1029: +block_1030: { -if (x_226 == 0) +if (x_227 == 0) { -lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; -lean_dec(x_225); -lean_dec(x_223); -x_227 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); -x_228 = lean_ctor_get(x_227, 0); -lean_inc(x_228); -x_229 = lean_ctor_get(x_227, 1); +lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; +lean_dec(x_226); +lean_dec(x_224); +x_228 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); +x_229 = lean_ctor_get(x_228, 0); lean_inc(x_229); -lean_dec(x_227); -x_230 = l_Lean_Elab_Term_getEnv___rarg(x_229); -x_231 = lean_ctor_get(x_230, 1); -lean_inc(x_231); -x_232 = lean_ctor_get(x_230, 0); +x_230 = lean_ctor_get(x_228, 1); +lean_inc(x_230); +lean_dec(x_228); +x_231 = l_Lean_Elab_Term_getEnv___rarg(x_230); +x_232 = lean_ctor_get(x_231, 1); lean_inc(x_232); -lean_dec(x_230); x_233 = lean_ctor_get(x_231, 0); lean_inc(x_233); -x_234 = lean_ctor_get(x_231, 1); -lean_inc(x_234); -x_235 = lean_ctor_get(x_231, 2); -lean_inc(x_235); -x_236 = lean_ctor_get(x_231, 3); -lean_inc(x_236); -x_237 = lean_ctor_get(x_231, 4); -lean_inc(x_237); -x_238 = lean_ctor_get(x_231, 5); -lean_inc(x_238); -x_239 = lean_ctor_get(x_3, 0); -lean_inc(x_239); -x_240 = lean_ctor_get(x_239, 3); -lean_inc(x_240); -x_241 = lean_ctor_get(x_239, 4); -lean_inc(x_241); -lean_dec(x_239); -x_242 = lean_environment_main_module(x_232); -x_243 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_243, 0, x_242); -lean_ctor_set(x_243, 1, x_228); -lean_ctor_set(x_243, 2, x_240); -lean_ctor_set(x_243, 3, x_241); -lean_inc(x_1); -x_244 = l___private_Lean_Elab_Match_31__expandMatchDiscr_x3f(x_1, x_243, x_238); -if (lean_obj_tag(x_244) == 0) -{ -uint8_t x_245; -x_245 = !lean_is_exclusive(x_231); -if (x_245 == 0) -{ -lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; -x_246 = lean_ctor_get(x_231, 5); -lean_dec(x_246); -x_247 = lean_ctor_get(x_231, 4); -lean_dec(x_247); -x_248 = lean_ctor_get(x_231, 3); -lean_dec(x_248); -x_249 = lean_ctor_get(x_231, 2); -lean_dec(x_249); -x_250 = lean_ctor_get(x_231, 1); -lean_dec(x_250); -x_251 = lean_ctor_get(x_231, 0); -lean_dec(x_251); -x_252 = lean_ctor_get(x_244, 0); -lean_inc(x_252); -x_253 = lean_ctor_get(x_244, 1); -lean_inc(x_253); -lean_dec(x_244); -lean_ctor_set(x_231, 5, x_253); -x_5 = x_252; -x_6 = x_231; -goto block_33; -} -else -{ -lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_dec(x_231); -x_254 = lean_ctor_get(x_244, 0); +x_234 = lean_ctor_get(x_232, 0); +lean_inc(x_234); +x_235 = lean_ctor_get(x_232, 1); +lean_inc(x_235); +x_236 = lean_ctor_get(x_232, 2); +lean_inc(x_236); +x_237 = lean_ctor_get(x_232, 3); +lean_inc(x_237); +x_238 = lean_ctor_get(x_232, 4); +lean_inc(x_238); +x_239 = lean_ctor_get(x_232, 5); +lean_inc(x_239); +x_240 = lean_ctor_get(x_3, 0); +lean_inc(x_240); +x_241 = lean_ctor_get(x_240, 3); +lean_inc(x_241); +x_242 = lean_ctor_get(x_240, 4); +lean_inc(x_242); +lean_dec(x_240); +x_243 = lean_environment_main_module(x_233); +x_244 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_244, 0, x_243); +lean_ctor_set(x_244, 1, x_229); +lean_ctor_set(x_244, 2, x_241); +lean_ctor_set(x_244, 3, x_242); +lean_inc(x_1); +x_245 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_244, x_239); +if (lean_obj_tag(x_245) == 0) +{ +uint8_t x_246; +x_246 = !lean_is_exclusive(x_232); +if (x_246 == 0) +{ +lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; +x_247 = lean_ctor_get(x_232, 5); +lean_dec(x_247); +x_248 = lean_ctor_get(x_232, 4); +lean_dec(x_248); +x_249 = lean_ctor_get(x_232, 3); +lean_dec(x_249); +x_250 = lean_ctor_get(x_232, 2); +lean_dec(x_250); +x_251 = lean_ctor_get(x_232, 1); +lean_dec(x_251); +x_252 = lean_ctor_get(x_232, 0); +lean_dec(x_252); +x_253 = lean_ctor_get(x_245, 0); +lean_inc(x_253); +x_254 = lean_ctor_get(x_245, 1); lean_inc(x_254); -x_255 = lean_ctor_get(x_244, 1); +lean_dec(x_245); +lean_ctor_set(x_232, 5, x_254); +x_5 = x_253; +x_6 = x_232; +goto block_34; +} +else +{ +lean_object* x_255; lean_object* x_256; lean_object* x_257; +lean_dec(x_232); +x_255 = lean_ctor_get(x_245, 0); lean_inc(x_255); -lean_dec(x_244); -x_256 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_256, 0, x_233); -lean_ctor_set(x_256, 1, x_234); -lean_ctor_set(x_256, 2, x_235); -lean_ctor_set(x_256, 3, x_236); -lean_ctor_set(x_256, 4, x_237); -lean_ctor_set(x_256, 5, x_255); -x_5 = x_254; -x_6 = x_256; -goto block_33; +x_256 = lean_ctor_get(x_245, 1); +lean_inc(x_256); +lean_dec(x_245); +x_257 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_257, 0, x_234); +lean_ctor_set(x_257, 1, x_235); +lean_ctor_set(x_257, 2, x_236); +lean_ctor_set(x_257, 3, x_237); +lean_ctor_set(x_257, 4, x_238); +lean_ctor_set(x_257, 5, x_256); +x_5 = x_255; +x_6 = x_257; +goto block_34; } } else { -lean_object* x_257; +lean_object* x_258; +lean_dec(x_238); lean_dec(x_237); lean_dec(x_236); lean_dec(x_235); lean_dec(x_234); -lean_dec(x_233); lean_dec(x_2); lean_dec(x_1); -x_257 = lean_ctor_get(x_244, 0); -lean_inc(x_257); -lean_dec(x_244); -if (lean_obj_tag(x_257) == 0) -{ -lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; uint8_t x_263; -x_258 = lean_ctor_get(x_257, 0); +x_258 = lean_ctor_get(x_245, 0); lean_inc(x_258); -x_259 = lean_ctor_get(x_257, 1); +lean_dec(x_245); +if (lean_obj_tag(x_258) == 0) +{ +lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; uint8_t x_264; +x_259 = lean_ctor_get(x_258, 0); lean_inc(x_259); -lean_dec(x_257); -x_260 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_260, 0, x_259); -x_261 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_261, 0, x_260); -x_262 = l_Lean_Elab_Term_throwError___rarg(x_258, x_261, x_3, x_231); +x_260 = lean_ctor_get(x_258, 1); +lean_inc(x_260); lean_dec(x_258); -x_263 = !lean_is_exclusive(x_262); -if (x_263 == 0) +x_261 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_261, 0, x_260); +x_262 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_262, 0, x_261); +x_263 = l_Lean_Elab_Term_throwErrorAt___rarg(x_259, x_262, x_3, x_232); +lean_dec(x_259); +x_264 = !lean_is_exclusive(x_263); +if (x_264 == 0) { -return x_262; +return x_263; } else { -lean_object* x_264; lean_object* x_265; lean_object* x_266; -x_264 = lean_ctor_get(x_262, 0); -x_265 = lean_ctor_get(x_262, 1); +lean_object* x_265; lean_object* x_266; lean_object* x_267; +x_265 = lean_ctor_get(x_263, 0); +x_266 = lean_ctor_get(x_263, 1); +lean_inc(x_266); lean_inc(x_265); -lean_inc(x_264); -lean_dec(x_262); -x_266 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_266, 0, x_264); -lean_ctor_set(x_266, 1, x_265); -return x_266; -} -} -else -{ -lean_object* x_267; uint8_t x_268; -lean_dec(x_3); -x_267 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_231); -x_268 = !lean_is_exclusive(x_267); -if (x_268 == 0) -{ +lean_dec(x_263); +x_267 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_267, 0, x_265); +lean_ctor_set(x_267, 1, x_266); return x_267; } +} else { -lean_object* x_269; lean_object* x_270; lean_object* x_271; -x_269 = lean_ctor_get(x_267, 0); -x_270 = lean_ctor_get(x_267, 1); +lean_object* x_268; uint8_t x_269; +lean_dec(x_3); +x_268 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_232); +x_269 = !lean_is_exclusive(x_268); +if (x_269 == 0) +{ +return x_268; +} +else +{ +lean_object* x_270; lean_object* x_271; lean_object* x_272; +x_270 = lean_ctor_get(x_268, 0); +x_271 = lean_ctor_get(x_268, 1); +lean_inc(x_271); lean_inc(x_270); -lean_inc(x_269); -lean_dec(x_267); -x_271 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_271, 0, x_269); -lean_ctor_set(x_271, 1, x_270); -return x_271; +lean_dec(x_268); +x_272 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_272, 0, x_270); +lean_ctor_set(x_272, 1, x_271); +return x_272; } } } } else { -lean_object* x_272; uint8_t x_273; lean_object* x_1023; uint8_t x_1024; -x_272 = l_Lean_Syntax_getArg(x_225, x_128); -lean_dec(x_225); -x_1023 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__2; -lean_inc(x_272); -x_1024 = l_Lean_Syntax_isOfKind(x_272, x_1023); -if (x_1024 == 0) +lean_object* x_273; uint8_t x_274; lean_object* x_1024; uint8_t x_1025; +x_273 = l_Lean_Syntax_getArg(x_226, x_129); +lean_dec(x_226); +x_1024 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__2; +lean_inc(x_273); +x_1025 = l_Lean_Syntax_isOfKind(x_273, x_1024); +if (x_1025 == 0) { -uint8_t x_1025; -x_1025 = 0; -x_273 = x_1025; -goto block_1022; +uint8_t x_1026; +x_1026 = 0; +x_274 = x_1026; +goto block_1023; } else { -lean_object* x_1026; lean_object* x_1027; uint8_t x_1028; -x_1026 = l_Lean_Syntax_getArgs(x_272); -x_1027 = lean_array_get_size(x_1026); -lean_dec(x_1026); -x_1028 = lean_nat_dec_eq(x_1027, x_224); +lean_object* x_1027; lean_object* x_1028; uint8_t x_1029; +x_1027 = l_Lean_Syntax_getArgs(x_273); +x_1028 = lean_array_get_size(x_1027); lean_dec(x_1027); -x_273 = x_1028; -goto block_1022; +x_1029 = lean_nat_dec_eq(x_1028, x_225); +lean_dec(x_1028); +x_274 = x_1029; +goto block_1023; } -block_1022: +block_1023: { -if (x_273 == 0) +if (x_274 == 0) { -lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; -lean_dec(x_272); -lean_dec(x_223); -x_274 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); -x_275 = lean_ctor_get(x_274, 0); -lean_inc(x_275); -x_276 = lean_ctor_get(x_274, 1); +lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; +lean_dec(x_273); +lean_dec(x_224); +x_275 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); +x_276 = lean_ctor_get(x_275, 0); lean_inc(x_276); -lean_dec(x_274); -x_277 = l_Lean_Elab_Term_getEnv___rarg(x_276); -x_278 = lean_ctor_get(x_277, 1); -lean_inc(x_278); -x_279 = lean_ctor_get(x_277, 0); +x_277 = lean_ctor_get(x_275, 1); +lean_inc(x_277); +lean_dec(x_275); +x_278 = l_Lean_Elab_Term_getEnv___rarg(x_277); +x_279 = lean_ctor_get(x_278, 1); lean_inc(x_279); -lean_dec(x_277); x_280 = lean_ctor_get(x_278, 0); lean_inc(x_280); -x_281 = lean_ctor_get(x_278, 1); -lean_inc(x_281); -x_282 = lean_ctor_get(x_278, 2); -lean_inc(x_282); -x_283 = lean_ctor_get(x_278, 3); -lean_inc(x_283); -x_284 = lean_ctor_get(x_278, 4); -lean_inc(x_284); -x_285 = lean_ctor_get(x_278, 5); -lean_inc(x_285); -x_286 = lean_ctor_get(x_3, 0); -lean_inc(x_286); -x_287 = lean_ctor_get(x_286, 3); -lean_inc(x_287); -x_288 = lean_ctor_get(x_286, 4); -lean_inc(x_288); -lean_dec(x_286); -x_289 = lean_environment_main_module(x_279); -x_290 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_290, 0, x_289); -lean_ctor_set(x_290, 1, x_275); -lean_ctor_set(x_290, 2, x_287); -lean_ctor_set(x_290, 3, x_288); -lean_inc(x_1); -x_291 = l___private_Lean_Elab_Match_31__expandMatchDiscr_x3f(x_1, x_290, x_285); -if (lean_obj_tag(x_291) == 0) -{ -uint8_t x_292; -x_292 = !lean_is_exclusive(x_278); -if (x_292 == 0) -{ -lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; -x_293 = lean_ctor_get(x_278, 5); -lean_dec(x_293); -x_294 = lean_ctor_get(x_278, 4); -lean_dec(x_294); -x_295 = lean_ctor_get(x_278, 3); -lean_dec(x_295); -x_296 = lean_ctor_get(x_278, 2); -lean_dec(x_296); -x_297 = lean_ctor_get(x_278, 1); -lean_dec(x_297); -x_298 = lean_ctor_get(x_278, 0); -lean_dec(x_298); -x_299 = lean_ctor_get(x_291, 0); -lean_inc(x_299); -x_300 = lean_ctor_get(x_291, 1); -lean_inc(x_300); -lean_dec(x_291); -lean_ctor_set(x_278, 5, x_300); -x_5 = x_299; -x_6 = x_278; -goto block_33; -} -else -{ -lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_dec(x_278); -x_301 = lean_ctor_get(x_291, 0); +x_281 = lean_ctor_get(x_279, 0); +lean_inc(x_281); +x_282 = lean_ctor_get(x_279, 1); +lean_inc(x_282); +x_283 = lean_ctor_get(x_279, 2); +lean_inc(x_283); +x_284 = lean_ctor_get(x_279, 3); +lean_inc(x_284); +x_285 = lean_ctor_get(x_279, 4); +lean_inc(x_285); +x_286 = lean_ctor_get(x_279, 5); +lean_inc(x_286); +x_287 = lean_ctor_get(x_3, 0); +lean_inc(x_287); +x_288 = lean_ctor_get(x_287, 3); +lean_inc(x_288); +x_289 = lean_ctor_get(x_287, 4); +lean_inc(x_289); +lean_dec(x_287); +x_290 = lean_environment_main_module(x_280); +x_291 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_291, 0, x_290); +lean_ctor_set(x_291, 1, x_276); +lean_ctor_set(x_291, 2, x_288); +lean_ctor_set(x_291, 3, x_289); +lean_inc(x_1); +x_292 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_291, x_286); +if (lean_obj_tag(x_292) == 0) +{ +uint8_t x_293; +x_293 = !lean_is_exclusive(x_279); +if (x_293 == 0) +{ +lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; +x_294 = lean_ctor_get(x_279, 5); +lean_dec(x_294); +x_295 = lean_ctor_get(x_279, 4); +lean_dec(x_295); +x_296 = lean_ctor_get(x_279, 3); +lean_dec(x_296); +x_297 = lean_ctor_get(x_279, 2); +lean_dec(x_297); +x_298 = lean_ctor_get(x_279, 1); +lean_dec(x_298); +x_299 = lean_ctor_get(x_279, 0); +lean_dec(x_299); +x_300 = lean_ctor_get(x_292, 0); +lean_inc(x_300); +x_301 = lean_ctor_get(x_292, 1); lean_inc(x_301); -x_302 = lean_ctor_get(x_291, 1); +lean_dec(x_292); +lean_ctor_set(x_279, 5, x_301); +x_5 = x_300; +x_6 = x_279; +goto block_34; +} +else +{ +lean_object* x_302; lean_object* x_303; lean_object* x_304; +lean_dec(x_279); +x_302 = lean_ctor_get(x_292, 0); lean_inc(x_302); -lean_dec(x_291); -x_303 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_303, 0, x_280); -lean_ctor_set(x_303, 1, x_281); -lean_ctor_set(x_303, 2, x_282); -lean_ctor_set(x_303, 3, x_283); -lean_ctor_set(x_303, 4, x_284); -lean_ctor_set(x_303, 5, x_302); -x_5 = x_301; -x_6 = x_303; -goto block_33; +x_303 = lean_ctor_get(x_292, 1); +lean_inc(x_303); +lean_dec(x_292); +x_304 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_304, 0, x_281); +lean_ctor_set(x_304, 1, x_282); +lean_ctor_set(x_304, 2, x_283); +lean_ctor_set(x_304, 3, x_284); +lean_ctor_set(x_304, 4, x_285); +lean_ctor_set(x_304, 5, x_303); +x_5 = x_302; +x_6 = x_304; +goto block_34; } } else { -lean_object* x_304; +lean_object* x_305; +lean_dec(x_285); lean_dec(x_284); lean_dec(x_283); lean_dec(x_282); lean_dec(x_281); -lean_dec(x_280); lean_dec(x_2); lean_dec(x_1); -x_304 = lean_ctor_get(x_291, 0); -lean_inc(x_304); -lean_dec(x_291); -if (lean_obj_tag(x_304) == 0) -{ -lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; uint8_t x_310; -x_305 = lean_ctor_get(x_304, 0); +x_305 = lean_ctor_get(x_292, 0); lean_inc(x_305); -x_306 = lean_ctor_get(x_304, 1); +lean_dec(x_292); +if (lean_obj_tag(x_305) == 0) +{ +lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; uint8_t x_311; +x_306 = lean_ctor_get(x_305, 0); lean_inc(x_306); -lean_dec(x_304); -x_307 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_307, 0, x_306); -x_308 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_308, 0, x_307); -x_309 = l_Lean_Elab_Term_throwError___rarg(x_305, x_308, x_3, x_278); +x_307 = lean_ctor_get(x_305, 1); +lean_inc(x_307); lean_dec(x_305); -x_310 = !lean_is_exclusive(x_309); -if (x_310 == 0) +x_308 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_308, 0, x_307); +x_309 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_309, 0, x_308); +x_310 = l_Lean_Elab_Term_throwErrorAt___rarg(x_306, x_309, x_3, x_279); +lean_dec(x_306); +x_311 = !lean_is_exclusive(x_310); +if (x_311 == 0) { -return x_309; +return x_310; } else { -lean_object* x_311; lean_object* x_312; lean_object* x_313; -x_311 = lean_ctor_get(x_309, 0); -x_312 = lean_ctor_get(x_309, 1); +lean_object* x_312; lean_object* x_313; lean_object* x_314; +x_312 = lean_ctor_get(x_310, 0); +x_313 = lean_ctor_get(x_310, 1); +lean_inc(x_313); lean_inc(x_312); -lean_inc(x_311); -lean_dec(x_309); -x_313 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_313, 0, x_311); -lean_ctor_set(x_313, 1, x_312); -return x_313; -} -} -else -{ -lean_object* x_314; uint8_t x_315; -lean_dec(x_3); -x_314 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_278); -x_315 = !lean_is_exclusive(x_314); -if (x_315 == 0) -{ +lean_dec(x_310); +x_314 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_314, 0, x_312); +lean_ctor_set(x_314, 1, x_313); return x_314; } +} else { -lean_object* x_316; lean_object* x_317; lean_object* x_318; -x_316 = lean_ctor_get(x_314, 0); -x_317 = lean_ctor_get(x_314, 1); +lean_object* x_315; uint8_t x_316; +lean_dec(x_3); +x_315 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_279); +x_316 = !lean_is_exclusive(x_315); +if (x_316 == 0) +{ +return x_315; +} +else +{ +lean_object* x_317; lean_object* x_318; lean_object* x_319; +x_317 = lean_ctor_get(x_315, 0); +x_318 = lean_ctor_get(x_315, 1); +lean_inc(x_318); lean_inc(x_317); -lean_inc(x_316); -lean_dec(x_314); -x_318 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_318, 0, x_316); -lean_ctor_set(x_318, 1, x_317); -return x_318; +lean_dec(x_315); +x_319 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_319, 0, x_317); +lean_ctor_set(x_319, 1, x_318); +return x_319; } } } } else { -lean_object* x_319; lean_object* x_320; lean_object* x_321; uint8_t x_322; lean_object* x_691; uint8_t x_692; uint8_t x_693; -x_319 = l_Lean_Syntax_getArg(x_272, x_80); -lean_dec(x_272); -x_320 = lean_unsigned_to_nat(4u); -x_321 = l_Lean_Syntax_getArg(x_1, x_320); -x_691 = l_Lean_nullKind___closed__2; -lean_inc(x_321); -x_692 = l_Lean_Syntax_isOfKind(x_321, x_691); -if (x_692 == 0) +lean_object* x_320; lean_object* x_321; lean_object* x_322; uint8_t x_323; lean_object* x_692; uint8_t x_693; uint8_t x_694; +x_320 = l_Lean_Syntax_getArg(x_273, x_81); +lean_dec(x_273); +x_321 = lean_unsigned_to_nat(4u); +x_322 = l_Lean_Syntax_getArg(x_1, x_321); +x_692 = l_Lean_nullKind___closed__2; +lean_inc(x_322); +x_693 = l_Lean_Syntax_isOfKind(x_322, x_692); +if (x_693 == 0) { -uint8_t x_1018; -x_1018 = 0; -x_693 = x_1018; -goto block_1017; +uint8_t x_1019; +x_1019 = 0; +x_694 = x_1019; +goto block_1018; } else { -lean_object* x_1019; lean_object* x_1020; uint8_t x_1021; -x_1019 = l_Lean_Syntax_getArgs(x_321); -x_1020 = lean_array_get_size(x_1019); -lean_dec(x_1019); -x_1021 = lean_nat_dec_eq(x_1020, x_128); +lean_object* x_1020; lean_object* x_1021; uint8_t x_1022; +x_1020 = l_Lean_Syntax_getArgs(x_322); +x_1021 = lean_array_get_size(x_1020); lean_dec(x_1020); -x_693 = x_1021; -goto block_1017; +x_1022 = lean_nat_dec_eq(x_1021, x_129); +lean_dec(x_1021); +x_694 = x_1022; +goto block_1018; } -block_690: +block_691: { -if (x_322 == 0) +if (x_323 == 0) { -lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; -lean_dec(x_319); -lean_dec(x_223); -x_323 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); -x_324 = lean_ctor_get(x_323, 0); -lean_inc(x_324); -x_325 = lean_ctor_get(x_323, 1); +lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; +lean_dec(x_320); +lean_dec(x_224); +x_324 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); +x_325 = lean_ctor_get(x_324, 0); lean_inc(x_325); -lean_dec(x_323); -x_326 = l_Lean_Elab_Term_getEnv___rarg(x_325); -x_327 = lean_ctor_get(x_326, 1); -lean_inc(x_327); -x_328 = lean_ctor_get(x_326, 0); +x_326 = lean_ctor_get(x_324, 1); +lean_inc(x_326); +lean_dec(x_324); +x_327 = l_Lean_Elab_Term_getEnv___rarg(x_326); +x_328 = lean_ctor_get(x_327, 1); lean_inc(x_328); -lean_dec(x_326); x_329 = lean_ctor_get(x_327, 0); lean_inc(x_329); -x_330 = lean_ctor_get(x_327, 1); -lean_inc(x_330); -x_331 = lean_ctor_get(x_327, 2); -lean_inc(x_331); -x_332 = lean_ctor_get(x_327, 3); -lean_inc(x_332); -x_333 = lean_ctor_get(x_327, 4); -lean_inc(x_333); -x_334 = lean_ctor_get(x_327, 5); -lean_inc(x_334); -x_335 = lean_ctor_get(x_3, 0); -lean_inc(x_335); -x_336 = lean_ctor_get(x_335, 3); -lean_inc(x_336); -x_337 = lean_ctor_get(x_335, 4); -lean_inc(x_337); -lean_dec(x_335); -x_338 = lean_environment_main_module(x_328); -x_339 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_339, 0, x_338); -lean_ctor_set(x_339, 1, x_324); -lean_ctor_set(x_339, 2, x_336); -lean_ctor_set(x_339, 3, x_337); -lean_inc(x_1); -x_340 = l___private_Lean_Elab_Match_31__expandMatchDiscr_x3f(x_1, x_339, x_334); -if (lean_obj_tag(x_340) == 0) -{ -uint8_t x_341; -x_341 = !lean_is_exclusive(x_327); -if (x_341 == 0) -{ -lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; -x_342 = lean_ctor_get(x_327, 5); -lean_dec(x_342); -x_343 = lean_ctor_get(x_327, 4); -lean_dec(x_343); -x_344 = lean_ctor_get(x_327, 3); -lean_dec(x_344); -x_345 = lean_ctor_get(x_327, 2); -lean_dec(x_345); -x_346 = lean_ctor_get(x_327, 1); -lean_dec(x_346); -x_347 = lean_ctor_get(x_327, 0); -lean_dec(x_347); -x_348 = lean_ctor_get(x_340, 0); -lean_inc(x_348); -x_349 = lean_ctor_get(x_340, 1); -lean_inc(x_349); -lean_dec(x_340); -lean_ctor_set(x_327, 5, x_349); -x_5 = x_348; -x_6 = x_327; -goto block_33; -} -else -{ -lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_dec(x_327); -x_350 = lean_ctor_get(x_340, 0); +x_330 = lean_ctor_get(x_328, 0); +lean_inc(x_330); +x_331 = lean_ctor_get(x_328, 1); +lean_inc(x_331); +x_332 = lean_ctor_get(x_328, 2); +lean_inc(x_332); +x_333 = lean_ctor_get(x_328, 3); +lean_inc(x_333); +x_334 = lean_ctor_get(x_328, 4); +lean_inc(x_334); +x_335 = lean_ctor_get(x_328, 5); +lean_inc(x_335); +x_336 = lean_ctor_get(x_3, 0); +lean_inc(x_336); +x_337 = lean_ctor_get(x_336, 3); +lean_inc(x_337); +x_338 = lean_ctor_get(x_336, 4); +lean_inc(x_338); +lean_dec(x_336); +x_339 = lean_environment_main_module(x_329); +x_340 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_340, 0, x_339); +lean_ctor_set(x_340, 1, x_325); +lean_ctor_set(x_340, 2, x_337); +lean_ctor_set(x_340, 3, x_338); +lean_inc(x_1); +x_341 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_340, x_335); +if (lean_obj_tag(x_341) == 0) +{ +uint8_t x_342; +x_342 = !lean_is_exclusive(x_328); +if (x_342 == 0) +{ +lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; +x_343 = lean_ctor_get(x_328, 5); +lean_dec(x_343); +x_344 = lean_ctor_get(x_328, 4); +lean_dec(x_344); +x_345 = lean_ctor_get(x_328, 3); +lean_dec(x_345); +x_346 = lean_ctor_get(x_328, 2); +lean_dec(x_346); +x_347 = lean_ctor_get(x_328, 1); +lean_dec(x_347); +x_348 = lean_ctor_get(x_328, 0); +lean_dec(x_348); +x_349 = lean_ctor_get(x_341, 0); +lean_inc(x_349); +x_350 = lean_ctor_get(x_341, 1); lean_inc(x_350); -x_351 = lean_ctor_get(x_340, 1); +lean_dec(x_341); +lean_ctor_set(x_328, 5, x_350); +x_5 = x_349; +x_6 = x_328; +goto block_34; +} +else +{ +lean_object* x_351; lean_object* x_352; lean_object* x_353; +lean_dec(x_328); +x_351 = lean_ctor_get(x_341, 0); lean_inc(x_351); -lean_dec(x_340); -x_352 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_352, 0, x_329); -lean_ctor_set(x_352, 1, x_330); -lean_ctor_set(x_352, 2, x_331); -lean_ctor_set(x_352, 3, x_332); -lean_ctor_set(x_352, 4, x_333); -lean_ctor_set(x_352, 5, x_351); -x_5 = x_350; -x_6 = x_352; -goto block_33; +x_352 = lean_ctor_get(x_341, 1); +lean_inc(x_352); +lean_dec(x_341); +x_353 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_353, 0, x_330); +lean_ctor_set(x_353, 1, x_331); +lean_ctor_set(x_353, 2, x_332); +lean_ctor_set(x_353, 3, x_333); +lean_ctor_set(x_353, 4, x_334); +lean_ctor_set(x_353, 5, x_352); +x_5 = x_351; +x_6 = x_353; +goto block_34; } } else { -lean_object* x_353; +lean_object* x_354; +lean_dec(x_334); lean_dec(x_333); lean_dec(x_332); lean_dec(x_331); lean_dec(x_330); -lean_dec(x_329); lean_dec(x_2); lean_dec(x_1); -x_353 = lean_ctor_get(x_340, 0); -lean_inc(x_353); -lean_dec(x_340); -if (lean_obj_tag(x_353) == 0) -{ -lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; uint8_t x_359; -x_354 = lean_ctor_get(x_353, 0); +x_354 = lean_ctor_get(x_341, 0); lean_inc(x_354); -x_355 = lean_ctor_get(x_353, 1); +lean_dec(x_341); +if (lean_obj_tag(x_354) == 0) +{ +lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; uint8_t x_360; +x_355 = lean_ctor_get(x_354, 0); lean_inc(x_355); -lean_dec(x_353); -x_356 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_356, 0, x_355); -x_357 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_357, 0, x_356); -x_358 = l_Lean_Elab_Term_throwError___rarg(x_354, x_357, x_3, x_327); +x_356 = lean_ctor_get(x_354, 1); +lean_inc(x_356); lean_dec(x_354); -x_359 = !lean_is_exclusive(x_358); -if (x_359 == 0) +x_357 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_357, 0, x_356); +x_358 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_358, 0, x_357); +x_359 = l_Lean_Elab_Term_throwErrorAt___rarg(x_355, x_358, x_3, x_328); +lean_dec(x_355); +x_360 = !lean_is_exclusive(x_359); +if (x_360 == 0) { -return x_358; +return x_359; } else { -lean_object* x_360; lean_object* x_361; lean_object* x_362; -x_360 = lean_ctor_get(x_358, 0); -x_361 = lean_ctor_get(x_358, 1); +lean_object* x_361; lean_object* x_362; lean_object* x_363; +x_361 = lean_ctor_get(x_359, 0); +x_362 = lean_ctor_get(x_359, 1); +lean_inc(x_362); lean_inc(x_361); -lean_inc(x_360); -lean_dec(x_358); -x_362 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_362, 0, x_360); -lean_ctor_set(x_362, 1, x_361); -return x_362; -} -} -else -{ -lean_object* x_363; uint8_t x_364; -lean_dec(x_3); -x_363 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_327); -x_364 = !lean_is_exclusive(x_363); -if (x_364 == 0) -{ +lean_dec(x_359); +x_363 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_363, 0, x_361); +lean_ctor_set(x_363, 1, x_362); return x_363; } +} else { -lean_object* x_365; lean_object* x_366; lean_object* x_367; -x_365 = lean_ctor_get(x_363, 0); -x_366 = lean_ctor_get(x_363, 1); +lean_object* x_364; uint8_t x_365; +lean_dec(x_3); +x_364 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_328); +x_365 = !lean_is_exclusive(x_364); +if (x_365 == 0) +{ +return x_364; +} +else +{ +lean_object* x_366; lean_object* x_367; lean_object* x_368; +x_366 = lean_ctor_get(x_364, 0); +x_367 = lean_ctor_get(x_364, 1); +lean_inc(x_367); lean_inc(x_366); -lean_inc(x_365); -lean_dec(x_363); -x_367 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_367, 0, x_365); -lean_ctor_set(x_367, 1, x_366); -return x_367; +lean_dec(x_364); +x_368 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_368, 0, x_366); +lean_ctor_set(x_368, 1, x_367); +return x_368; } } } } else { -lean_object* x_368; lean_object* x_369; uint8_t x_370; lean_object* x_684; uint8_t x_685; -x_368 = lean_unsigned_to_nat(5u); -x_369 = l_Lean_Syntax_getArg(x_1, x_368); -x_684 = l_Lean_nullKind___closed__2; -lean_inc(x_369); -x_685 = l_Lean_Syntax_isOfKind(x_369, x_684); -if (x_685 == 0) +lean_object* x_369; lean_object* x_370; uint8_t x_371; lean_object* x_685; uint8_t x_686; +x_369 = lean_unsigned_to_nat(5u); +x_370 = l_Lean_Syntax_getArg(x_1, x_369); +x_685 = l_Lean_nullKind___closed__2; +lean_inc(x_370); +x_686 = l_Lean_Syntax_isOfKind(x_370, x_685); +if (x_686 == 0) { -uint8_t x_686; -x_686 = 0; -x_370 = x_686; -goto block_683; +uint8_t x_687; +x_687 = 0; +x_371 = x_687; +goto block_684; } else { -lean_object* x_687; lean_object* x_688; uint8_t x_689; -x_687 = l_Lean_Syntax_getArgs(x_369); -x_688 = lean_array_get_size(x_687); -lean_dec(x_687); -x_689 = lean_nat_dec_eq(x_688, x_80); +lean_object* x_688; lean_object* x_689; uint8_t x_690; +x_688 = l_Lean_Syntax_getArgs(x_370); +x_689 = lean_array_get_size(x_688); lean_dec(x_688); -x_370 = x_689; -goto block_683; +x_690 = lean_nat_dec_eq(x_689, x_81); +lean_dec(x_689); +x_371 = x_690; +goto block_684; } -block_683: +block_684: { -if (x_370 == 0) +if (x_371 == 0) { -lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; -lean_dec(x_369); -lean_dec(x_319); -lean_dec(x_223); -x_371 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); -x_372 = lean_ctor_get(x_371, 0); -lean_inc(x_372); -x_373 = lean_ctor_get(x_371, 1); +lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; +lean_dec(x_370); +lean_dec(x_320); +lean_dec(x_224); +x_372 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); +x_373 = lean_ctor_get(x_372, 0); lean_inc(x_373); -lean_dec(x_371); -x_374 = l_Lean_Elab_Term_getEnv___rarg(x_373); -x_375 = lean_ctor_get(x_374, 1); -lean_inc(x_375); -x_376 = lean_ctor_get(x_374, 0); +x_374 = lean_ctor_get(x_372, 1); +lean_inc(x_374); +lean_dec(x_372); +x_375 = l_Lean_Elab_Term_getEnv___rarg(x_374); +x_376 = lean_ctor_get(x_375, 1); lean_inc(x_376); -lean_dec(x_374); x_377 = lean_ctor_get(x_375, 0); lean_inc(x_377); -x_378 = lean_ctor_get(x_375, 1); -lean_inc(x_378); -x_379 = lean_ctor_get(x_375, 2); -lean_inc(x_379); -x_380 = lean_ctor_get(x_375, 3); -lean_inc(x_380); -x_381 = lean_ctor_get(x_375, 4); -lean_inc(x_381); -x_382 = lean_ctor_get(x_375, 5); -lean_inc(x_382); -x_383 = lean_ctor_get(x_3, 0); -lean_inc(x_383); -x_384 = lean_ctor_get(x_383, 3); -lean_inc(x_384); -x_385 = lean_ctor_get(x_383, 4); -lean_inc(x_385); -lean_dec(x_383); -x_386 = lean_environment_main_module(x_376); -x_387 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_387, 0, x_386); -lean_ctor_set(x_387, 1, x_372); -lean_ctor_set(x_387, 2, x_384); -lean_ctor_set(x_387, 3, x_385); -lean_inc(x_1); -x_388 = l___private_Lean_Elab_Match_31__expandMatchDiscr_x3f(x_1, x_387, x_382); -if (lean_obj_tag(x_388) == 0) -{ -uint8_t x_389; -x_389 = !lean_is_exclusive(x_375); -if (x_389 == 0) -{ -lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; -x_390 = lean_ctor_get(x_375, 5); -lean_dec(x_390); -x_391 = lean_ctor_get(x_375, 4); -lean_dec(x_391); -x_392 = lean_ctor_get(x_375, 3); -lean_dec(x_392); -x_393 = lean_ctor_get(x_375, 2); -lean_dec(x_393); -x_394 = lean_ctor_get(x_375, 1); -lean_dec(x_394); -x_395 = lean_ctor_get(x_375, 0); -lean_dec(x_395); -x_396 = lean_ctor_get(x_388, 0); -lean_inc(x_396); -x_397 = lean_ctor_get(x_388, 1); -lean_inc(x_397); -lean_dec(x_388); -lean_ctor_set(x_375, 5, x_397); -x_5 = x_396; -x_6 = x_375; -goto block_33; -} -else -{ -lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_dec(x_375); -x_398 = lean_ctor_get(x_388, 0); +x_378 = lean_ctor_get(x_376, 0); +lean_inc(x_378); +x_379 = lean_ctor_get(x_376, 1); +lean_inc(x_379); +x_380 = lean_ctor_get(x_376, 2); +lean_inc(x_380); +x_381 = lean_ctor_get(x_376, 3); +lean_inc(x_381); +x_382 = lean_ctor_get(x_376, 4); +lean_inc(x_382); +x_383 = lean_ctor_get(x_376, 5); +lean_inc(x_383); +x_384 = lean_ctor_get(x_3, 0); +lean_inc(x_384); +x_385 = lean_ctor_get(x_384, 3); +lean_inc(x_385); +x_386 = lean_ctor_get(x_384, 4); +lean_inc(x_386); +lean_dec(x_384); +x_387 = lean_environment_main_module(x_377); +x_388 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_388, 0, x_387); +lean_ctor_set(x_388, 1, x_373); +lean_ctor_set(x_388, 2, x_385); +lean_ctor_set(x_388, 3, x_386); +lean_inc(x_1); +x_389 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_388, x_383); +if (lean_obj_tag(x_389) == 0) +{ +uint8_t x_390; +x_390 = !lean_is_exclusive(x_376); +if (x_390 == 0) +{ +lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; +x_391 = lean_ctor_get(x_376, 5); +lean_dec(x_391); +x_392 = lean_ctor_get(x_376, 4); +lean_dec(x_392); +x_393 = lean_ctor_get(x_376, 3); +lean_dec(x_393); +x_394 = lean_ctor_get(x_376, 2); +lean_dec(x_394); +x_395 = lean_ctor_get(x_376, 1); +lean_dec(x_395); +x_396 = lean_ctor_get(x_376, 0); +lean_dec(x_396); +x_397 = lean_ctor_get(x_389, 0); +lean_inc(x_397); +x_398 = lean_ctor_get(x_389, 1); lean_inc(x_398); -x_399 = lean_ctor_get(x_388, 1); +lean_dec(x_389); +lean_ctor_set(x_376, 5, x_398); +x_5 = x_397; +x_6 = x_376; +goto block_34; +} +else +{ +lean_object* x_399; lean_object* x_400; lean_object* x_401; +lean_dec(x_376); +x_399 = lean_ctor_get(x_389, 0); lean_inc(x_399); -lean_dec(x_388); -x_400 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_400, 0, x_377); -lean_ctor_set(x_400, 1, x_378); -lean_ctor_set(x_400, 2, x_379); -lean_ctor_set(x_400, 3, x_380); -lean_ctor_set(x_400, 4, x_381); -lean_ctor_set(x_400, 5, x_399); -x_5 = x_398; -x_6 = x_400; -goto block_33; +x_400 = lean_ctor_get(x_389, 1); +lean_inc(x_400); +lean_dec(x_389); +x_401 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_401, 0, x_378); +lean_ctor_set(x_401, 1, x_379); +lean_ctor_set(x_401, 2, x_380); +lean_ctor_set(x_401, 3, x_381); +lean_ctor_set(x_401, 4, x_382); +lean_ctor_set(x_401, 5, x_400); +x_5 = x_399; +x_6 = x_401; +goto block_34; } } else { -lean_object* x_401; +lean_object* x_402; +lean_dec(x_382); lean_dec(x_381); lean_dec(x_380); lean_dec(x_379); lean_dec(x_378); -lean_dec(x_377); lean_dec(x_2); lean_dec(x_1); -x_401 = lean_ctor_get(x_388, 0); -lean_inc(x_401); -lean_dec(x_388); -if (lean_obj_tag(x_401) == 0) -{ -lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; uint8_t x_407; -x_402 = lean_ctor_get(x_401, 0); +x_402 = lean_ctor_get(x_389, 0); lean_inc(x_402); -x_403 = lean_ctor_get(x_401, 1); +lean_dec(x_389); +if (lean_obj_tag(x_402) == 0) +{ +lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; uint8_t x_408; +x_403 = lean_ctor_get(x_402, 0); lean_inc(x_403); -lean_dec(x_401); -x_404 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_404, 0, x_403); -x_405 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_405, 0, x_404); -x_406 = l_Lean_Elab_Term_throwError___rarg(x_402, x_405, x_3, x_375); +x_404 = lean_ctor_get(x_402, 1); +lean_inc(x_404); lean_dec(x_402); -x_407 = !lean_is_exclusive(x_406); -if (x_407 == 0) +x_405 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_405, 0, x_404); +x_406 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_406, 0, x_405); +x_407 = l_Lean_Elab_Term_throwErrorAt___rarg(x_403, x_406, x_3, x_376); +lean_dec(x_403); +x_408 = !lean_is_exclusive(x_407); +if (x_408 == 0) { -return x_406; +return x_407; } else { -lean_object* x_408; lean_object* x_409; lean_object* x_410; -x_408 = lean_ctor_get(x_406, 0); -x_409 = lean_ctor_get(x_406, 1); +lean_object* x_409; lean_object* x_410; lean_object* x_411; +x_409 = lean_ctor_get(x_407, 0); +x_410 = lean_ctor_get(x_407, 1); +lean_inc(x_410); lean_inc(x_409); -lean_inc(x_408); -lean_dec(x_406); -x_410 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_410, 0, x_408); -lean_ctor_set(x_410, 1, x_409); -return x_410; -} -} -else -{ -lean_object* x_411; uint8_t x_412; -lean_dec(x_3); -x_411 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_375); -x_412 = !lean_is_exclusive(x_411); -if (x_412 == 0) -{ +lean_dec(x_407); +x_411 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_411, 0, x_409); +lean_ctor_set(x_411, 1, x_410); return x_411; } +} else { -lean_object* x_413; lean_object* x_414; lean_object* x_415; -x_413 = lean_ctor_get(x_411, 0); -x_414 = lean_ctor_get(x_411, 1); +lean_object* x_412; uint8_t x_413; +lean_dec(x_3); +x_412 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_376); +x_413 = !lean_is_exclusive(x_412); +if (x_413 == 0) +{ +return x_412; +} +else +{ +lean_object* x_414; lean_object* x_415; lean_object* x_416; +x_414 = lean_ctor_get(x_412, 0); +x_415 = lean_ctor_get(x_412, 1); +lean_inc(x_415); lean_inc(x_414); -lean_inc(x_413); -lean_dec(x_411); -x_415 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_415, 0, x_413); -lean_ctor_set(x_415, 1, x_414); -return x_415; +lean_dec(x_412); +x_416 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_416, 0, x_414); +lean_ctor_set(x_416, 1, x_415); +return x_416; } } } } else { -lean_object* x_416; uint8_t x_417; lean_object* x_676; uint8_t x_677; -x_416 = l_Lean_Syntax_getArg(x_369, x_128); -lean_dec(x_369); -x_676 = l_Lean_Parser_Term_matchAlt___closed__2; -lean_inc(x_416); -x_677 = l_Lean_Syntax_isOfKind(x_416, x_676); -if (x_677 == 0) +lean_object* x_417; uint8_t x_418; lean_object* x_677; uint8_t x_678; +x_417 = l_Lean_Syntax_getArg(x_370, x_129); +lean_dec(x_370); +x_677 = l_Lean_Parser_Term_matchAlt___closed__2; +lean_inc(x_417); +x_678 = l_Lean_Syntax_isOfKind(x_417, x_677); +if (x_678 == 0) { -uint8_t x_678; -x_678 = 0; -x_417 = x_678; -goto block_675; +uint8_t x_679; +x_679 = 0; +x_418 = x_679; +goto block_676; } else { -lean_object* x_679; lean_object* x_680; lean_object* x_681; uint8_t x_682; -x_679 = l_Lean_Syntax_getArgs(x_416); -x_680 = lean_array_get_size(x_679); -lean_dec(x_679); -x_681 = lean_unsigned_to_nat(3u); -x_682 = lean_nat_dec_eq(x_680, x_681); +lean_object* x_680; lean_object* x_681; lean_object* x_682; uint8_t x_683; +x_680 = l_Lean_Syntax_getArgs(x_417); +x_681 = lean_array_get_size(x_680); lean_dec(x_680); -x_417 = x_682; -goto block_675; +x_682 = lean_unsigned_to_nat(3u); +x_683 = lean_nat_dec_eq(x_681, x_682); +lean_dec(x_681); +x_418 = x_683; +goto block_676; } -block_675: +block_676: { -if (x_417 == 0) +if (x_418 == 0) { -lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; -lean_dec(x_416); -lean_dec(x_319); -lean_dec(x_223); -x_418 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); -x_419 = lean_ctor_get(x_418, 0); -lean_inc(x_419); -x_420 = lean_ctor_get(x_418, 1); +lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; +lean_dec(x_417); +lean_dec(x_320); +lean_dec(x_224); +x_419 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); +x_420 = lean_ctor_get(x_419, 0); lean_inc(x_420); -lean_dec(x_418); -x_421 = l_Lean_Elab_Term_getEnv___rarg(x_420); -x_422 = lean_ctor_get(x_421, 1); -lean_inc(x_422); -x_423 = lean_ctor_get(x_421, 0); +x_421 = lean_ctor_get(x_419, 1); +lean_inc(x_421); +lean_dec(x_419); +x_422 = l_Lean_Elab_Term_getEnv___rarg(x_421); +x_423 = lean_ctor_get(x_422, 1); lean_inc(x_423); -lean_dec(x_421); x_424 = lean_ctor_get(x_422, 0); lean_inc(x_424); -x_425 = lean_ctor_get(x_422, 1); -lean_inc(x_425); -x_426 = lean_ctor_get(x_422, 2); -lean_inc(x_426); -x_427 = lean_ctor_get(x_422, 3); -lean_inc(x_427); -x_428 = lean_ctor_get(x_422, 4); -lean_inc(x_428); -x_429 = lean_ctor_get(x_422, 5); -lean_inc(x_429); -x_430 = lean_ctor_get(x_3, 0); -lean_inc(x_430); -x_431 = lean_ctor_get(x_430, 3); -lean_inc(x_431); -x_432 = lean_ctor_get(x_430, 4); -lean_inc(x_432); -lean_dec(x_430); -x_433 = lean_environment_main_module(x_423); -x_434 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_434, 0, x_433); -lean_ctor_set(x_434, 1, x_419); -lean_ctor_set(x_434, 2, x_431); -lean_ctor_set(x_434, 3, x_432); -lean_inc(x_1); -x_435 = l___private_Lean_Elab_Match_31__expandMatchDiscr_x3f(x_1, x_434, x_429); -if (lean_obj_tag(x_435) == 0) -{ -uint8_t x_436; -x_436 = !lean_is_exclusive(x_422); -if (x_436 == 0) -{ -lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; -x_437 = lean_ctor_get(x_422, 5); -lean_dec(x_437); -x_438 = lean_ctor_get(x_422, 4); -lean_dec(x_438); -x_439 = lean_ctor_get(x_422, 3); -lean_dec(x_439); -x_440 = lean_ctor_get(x_422, 2); -lean_dec(x_440); -x_441 = lean_ctor_get(x_422, 1); -lean_dec(x_441); -x_442 = lean_ctor_get(x_422, 0); -lean_dec(x_442); -x_443 = lean_ctor_get(x_435, 0); -lean_inc(x_443); -x_444 = lean_ctor_get(x_435, 1); -lean_inc(x_444); -lean_dec(x_435); -lean_ctor_set(x_422, 5, x_444); -x_5 = x_443; -x_6 = x_422; -goto block_33; -} -else -{ -lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_dec(x_422); -x_445 = lean_ctor_get(x_435, 0); +x_425 = lean_ctor_get(x_423, 0); +lean_inc(x_425); +x_426 = lean_ctor_get(x_423, 1); +lean_inc(x_426); +x_427 = lean_ctor_get(x_423, 2); +lean_inc(x_427); +x_428 = lean_ctor_get(x_423, 3); +lean_inc(x_428); +x_429 = lean_ctor_get(x_423, 4); +lean_inc(x_429); +x_430 = lean_ctor_get(x_423, 5); +lean_inc(x_430); +x_431 = lean_ctor_get(x_3, 0); +lean_inc(x_431); +x_432 = lean_ctor_get(x_431, 3); +lean_inc(x_432); +x_433 = lean_ctor_get(x_431, 4); +lean_inc(x_433); +lean_dec(x_431); +x_434 = lean_environment_main_module(x_424); +x_435 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_435, 0, x_434); +lean_ctor_set(x_435, 1, x_420); +lean_ctor_set(x_435, 2, x_432); +lean_ctor_set(x_435, 3, x_433); +lean_inc(x_1); +x_436 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_435, x_430); +if (lean_obj_tag(x_436) == 0) +{ +uint8_t x_437; +x_437 = !lean_is_exclusive(x_423); +if (x_437 == 0) +{ +lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; +x_438 = lean_ctor_get(x_423, 5); +lean_dec(x_438); +x_439 = lean_ctor_get(x_423, 4); +lean_dec(x_439); +x_440 = lean_ctor_get(x_423, 3); +lean_dec(x_440); +x_441 = lean_ctor_get(x_423, 2); +lean_dec(x_441); +x_442 = lean_ctor_get(x_423, 1); +lean_dec(x_442); +x_443 = lean_ctor_get(x_423, 0); +lean_dec(x_443); +x_444 = lean_ctor_get(x_436, 0); +lean_inc(x_444); +x_445 = lean_ctor_get(x_436, 1); lean_inc(x_445); -x_446 = lean_ctor_get(x_435, 1); +lean_dec(x_436); +lean_ctor_set(x_423, 5, x_445); +x_5 = x_444; +x_6 = x_423; +goto block_34; +} +else +{ +lean_object* x_446; lean_object* x_447; lean_object* x_448; +lean_dec(x_423); +x_446 = lean_ctor_get(x_436, 0); lean_inc(x_446); -lean_dec(x_435); -x_447 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_447, 0, x_424); -lean_ctor_set(x_447, 1, x_425); -lean_ctor_set(x_447, 2, x_426); -lean_ctor_set(x_447, 3, x_427); -lean_ctor_set(x_447, 4, x_428); -lean_ctor_set(x_447, 5, x_446); -x_5 = x_445; -x_6 = x_447; -goto block_33; +x_447 = lean_ctor_get(x_436, 1); +lean_inc(x_447); +lean_dec(x_436); +x_448 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_448, 0, x_425); +lean_ctor_set(x_448, 1, x_426); +lean_ctor_set(x_448, 2, x_427); +lean_ctor_set(x_448, 3, x_428); +lean_ctor_set(x_448, 4, x_429); +lean_ctor_set(x_448, 5, x_447); +x_5 = x_446; +x_6 = x_448; +goto block_34; } } else { -lean_object* x_448; +lean_object* x_449; +lean_dec(x_429); lean_dec(x_428); lean_dec(x_427); lean_dec(x_426); lean_dec(x_425); -lean_dec(x_424); lean_dec(x_2); lean_dec(x_1); -x_448 = lean_ctor_get(x_435, 0); -lean_inc(x_448); -lean_dec(x_435); -if (lean_obj_tag(x_448) == 0) -{ -lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; uint8_t x_454; -x_449 = lean_ctor_get(x_448, 0); +x_449 = lean_ctor_get(x_436, 0); lean_inc(x_449); -x_450 = lean_ctor_get(x_448, 1); +lean_dec(x_436); +if (lean_obj_tag(x_449) == 0) +{ +lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; uint8_t x_455; +x_450 = lean_ctor_get(x_449, 0); lean_inc(x_450); -lean_dec(x_448); -x_451 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_451, 0, x_450); -x_452 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_452, 0, x_451); -x_453 = l_Lean_Elab_Term_throwError___rarg(x_449, x_452, x_3, x_422); +x_451 = lean_ctor_get(x_449, 1); +lean_inc(x_451); lean_dec(x_449); -x_454 = !lean_is_exclusive(x_453); -if (x_454 == 0) +x_452 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_452, 0, x_451); +x_453 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_453, 0, x_452); +x_454 = l_Lean_Elab_Term_throwErrorAt___rarg(x_450, x_453, x_3, x_423); +lean_dec(x_450); +x_455 = !lean_is_exclusive(x_454); +if (x_455 == 0) { -return x_453; +return x_454; } else { -lean_object* x_455; lean_object* x_456; lean_object* x_457; -x_455 = lean_ctor_get(x_453, 0); -x_456 = lean_ctor_get(x_453, 1); +lean_object* x_456; lean_object* x_457; lean_object* x_458; +x_456 = lean_ctor_get(x_454, 0); +x_457 = lean_ctor_get(x_454, 1); +lean_inc(x_457); lean_inc(x_456); -lean_inc(x_455); -lean_dec(x_453); -x_457 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_457, 0, x_455); -lean_ctor_set(x_457, 1, x_456); -return x_457; -} -} -else -{ -lean_object* x_458; uint8_t x_459; -lean_dec(x_3); -x_458 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_422); -x_459 = !lean_is_exclusive(x_458); -if (x_459 == 0) -{ +lean_dec(x_454); +x_458 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_458, 0, x_456); +lean_ctor_set(x_458, 1, x_457); return x_458; } +} else { -lean_object* x_460; lean_object* x_461; lean_object* x_462; -x_460 = lean_ctor_get(x_458, 0); -x_461 = lean_ctor_get(x_458, 1); +lean_object* x_459; uint8_t x_460; +lean_dec(x_3); +x_459 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_423); +x_460 = !lean_is_exclusive(x_459); +if (x_460 == 0) +{ +return x_459; +} +else +{ +lean_object* x_461; lean_object* x_462; lean_object* x_463; +x_461 = lean_ctor_get(x_459, 0); +x_462 = lean_ctor_get(x_459, 1); +lean_inc(x_462); lean_inc(x_461); -lean_inc(x_460); -lean_dec(x_458); -x_462 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_462, 0, x_460); -lean_ctor_set(x_462, 1, x_461); -return x_462; +lean_dec(x_459); +x_463 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_463, 0, x_461); +lean_ctor_set(x_463, 1, x_462); +return x_463; } } } } else { -lean_object* x_463; uint8_t x_464; lean_object* x_669; uint8_t x_670; -x_463 = l_Lean_Syntax_getArg(x_416, x_128); -x_669 = l_Lean_nullKind___closed__2; -lean_inc(x_463); -x_670 = l_Lean_Syntax_isOfKind(x_463, x_669); -if (x_670 == 0) +lean_object* x_464; uint8_t x_465; lean_object* x_670; uint8_t x_671; +x_464 = l_Lean_Syntax_getArg(x_417, x_129); +x_670 = l_Lean_nullKind___closed__2; +lean_inc(x_464); +x_671 = l_Lean_Syntax_isOfKind(x_464, x_670); +if (x_671 == 0) { -uint8_t x_671; -x_671 = 0; -x_464 = x_671; -goto block_668; +uint8_t x_672; +x_672 = 0; +x_465 = x_672; +goto block_669; } else { -lean_object* x_672; lean_object* x_673; uint8_t x_674; -x_672 = l_Lean_Syntax_getArgs(x_463); -x_673 = lean_array_get_size(x_672); -lean_dec(x_672); -x_674 = lean_nat_dec_eq(x_673, x_80); +lean_object* x_673; lean_object* x_674; uint8_t x_675; +x_673 = l_Lean_Syntax_getArgs(x_464); +x_674 = lean_array_get_size(x_673); lean_dec(x_673); -x_464 = x_674; -goto block_668; +x_675 = lean_nat_dec_eq(x_674, x_81); +lean_dec(x_674); +x_465 = x_675; +goto block_669; } -block_668: +block_669: { -if (x_464 == 0) +if (x_465 == 0) { -lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; -lean_dec(x_463); -lean_dec(x_416); -lean_dec(x_319); -lean_dec(x_223); -x_465 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); -x_466 = lean_ctor_get(x_465, 0); -lean_inc(x_466); -x_467 = lean_ctor_get(x_465, 1); +lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; +lean_dec(x_464); +lean_dec(x_417); +lean_dec(x_320); +lean_dec(x_224); +x_466 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); +x_467 = lean_ctor_get(x_466, 0); lean_inc(x_467); -lean_dec(x_465); -x_468 = l_Lean_Elab_Term_getEnv___rarg(x_467); -x_469 = lean_ctor_get(x_468, 1); -lean_inc(x_469); -x_470 = lean_ctor_get(x_468, 0); +x_468 = lean_ctor_get(x_466, 1); +lean_inc(x_468); +lean_dec(x_466); +x_469 = l_Lean_Elab_Term_getEnv___rarg(x_468); +x_470 = lean_ctor_get(x_469, 1); lean_inc(x_470); -lean_dec(x_468); x_471 = lean_ctor_get(x_469, 0); lean_inc(x_471); -x_472 = lean_ctor_get(x_469, 1); -lean_inc(x_472); -x_473 = lean_ctor_get(x_469, 2); -lean_inc(x_473); -x_474 = lean_ctor_get(x_469, 3); -lean_inc(x_474); -x_475 = lean_ctor_get(x_469, 4); -lean_inc(x_475); -x_476 = lean_ctor_get(x_469, 5); -lean_inc(x_476); -x_477 = lean_ctor_get(x_3, 0); -lean_inc(x_477); -x_478 = lean_ctor_get(x_477, 3); -lean_inc(x_478); -x_479 = lean_ctor_get(x_477, 4); -lean_inc(x_479); -lean_dec(x_477); -x_480 = lean_environment_main_module(x_470); -x_481 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_481, 0, x_480); -lean_ctor_set(x_481, 1, x_466); -lean_ctor_set(x_481, 2, x_478); -lean_ctor_set(x_481, 3, x_479); -lean_inc(x_1); -x_482 = l___private_Lean_Elab_Match_31__expandMatchDiscr_x3f(x_1, x_481, x_476); -if (lean_obj_tag(x_482) == 0) -{ -uint8_t x_483; -x_483 = !lean_is_exclusive(x_469); -if (x_483 == 0) -{ -lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; -x_484 = lean_ctor_get(x_469, 5); -lean_dec(x_484); -x_485 = lean_ctor_get(x_469, 4); -lean_dec(x_485); -x_486 = lean_ctor_get(x_469, 3); -lean_dec(x_486); -x_487 = lean_ctor_get(x_469, 2); -lean_dec(x_487); -x_488 = lean_ctor_get(x_469, 1); -lean_dec(x_488); -x_489 = lean_ctor_get(x_469, 0); -lean_dec(x_489); -x_490 = lean_ctor_get(x_482, 0); -lean_inc(x_490); -x_491 = lean_ctor_get(x_482, 1); -lean_inc(x_491); -lean_dec(x_482); -lean_ctor_set(x_469, 5, x_491); -x_5 = x_490; -x_6 = x_469; -goto block_33; -} -else -{ -lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_dec(x_469); -x_492 = lean_ctor_get(x_482, 0); +x_472 = lean_ctor_get(x_470, 0); +lean_inc(x_472); +x_473 = lean_ctor_get(x_470, 1); +lean_inc(x_473); +x_474 = lean_ctor_get(x_470, 2); +lean_inc(x_474); +x_475 = lean_ctor_get(x_470, 3); +lean_inc(x_475); +x_476 = lean_ctor_get(x_470, 4); +lean_inc(x_476); +x_477 = lean_ctor_get(x_470, 5); +lean_inc(x_477); +x_478 = lean_ctor_get(x_3, 0); +lean_inc(x_478); +x_479 = lean_ctor_get(x_478, 3); +lean_inc(x_479); +x_480 = lean_ctor_get(x_478, 4); +lean_inc(x_480); +lean_dec(x_478); +x_481 = lean_environment_main_module(x_471); +x_482 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_482, 0, x_481); +lean_ctor_set(x_482, 1, x_467); +lean_ctor_set(x_482, 2, x_479); +lean_ctor_set(x_482, 3, x_480); +lean_inc(x_1); +x_483 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_482, x_477); +if (lean_obj_tag(x_483) == 0) +{ +uint8_t x_484; +x_484 = !lean_is_exclusive(x_470); +if (x_484 == 0) +{ +lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; +x_485 = lean_ctor_get(x_470, 5); +lean_dec(x_485); +x_486 = lean_ctor_get(x_470, 4); +lean_dec(x_486); +x_487 = lean_ctor_get(x_470, 3); +lean_dec(x_487); +x_488 = lean_ctor_get(x_470, 2); +lean_dec(x_488); +x_489 = lean_ctor_get(x_470, 1); +lean_dec(x_489); +x_490 = lean_ctor_get(x_470, 0); +lean_dec(x_490); +x_491 = lean_ctor_get(x_483, 0); +lean_inc(x_491); +x_492 = lean_ctor_get(x_483, 1); lean_inc(x_492); -x_493 = lean_ctor_get(x_482, 1); +lean_dec(x_483); +lean_ctor_set(x_470, 5, x_492); +x_5 = x_491; +x_6 = x_470; +goto block_34; +} +else +{ +lean_object* x_493; lean_object* x_494; lean_object* x_495; +lean_dec(x_470); +x_493 = lean_ctor_get(x_483, 0); lean_inc(x_493); -lean_dec(x_482); -x_494 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_494, 0, x_471); -lean_ctor_set(x_494, 1, x_472); -lean_ctor_set(x_494, 2, x_473); -lean_ctor_set(x_494, 3, x_474); -lean_ctor_set(x_494, 4, x_475); -lean_ctor_set(x_494, 5, x_493); -x_5 = x_492; -x_6 = x_494; -goto block_33; +x_494 = lean_ctor_get(x_483, 1); +lean_inc(x_494); +lean_dec(x_483); +x_495 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_495, 0, x_472); +lean_ctor_set(x_495, 1, x_473); +lean_ctor_set(x_495, 2, x_474); +lean_ctor_set(x_495, 3, x_475); +lean_ctor_set(x_495, 4, x_476); +lean_ctor_set(x_495, 5, x_494); +x_5 = x_493; +x_6 = x_495; +goto block_34; } } else { -lean_object* x_495; +lean_object* x_496; +lean_dec(x_476); lean_dec(x_475); lean_dec(x_474); lean_dec(x_473); lean_dec(x_472); -lean_dec(x_471); lean_dec(x_2); lean_dec(x_1); -x_495 = lean_ctor_get(x_482, 0); -lean_inc(x_495); -lean_dec(x_482); -if (lean_obj_tag(x_495) == 0) -{ -lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; uint8_t x_501; -x_496 = lean_ctor_get(x_495, 0); +x_496 = lean_ctor_get(x_483, 0); lean_inc(x_496); -x_497 = lean_ctor_get(x_495, 1); +lean_dec(x_483); +if (lean_obj_tag(x_496) == 0) +{ +lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; uint8_t x_502; +x_497 = lean_ctor_get(x_496, 0); lean_inc(x_497); -lean_dec(x_495); -x_498 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_498, 0, x_497); -x_499 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_499, 0, x_498); -x_500 = l_Lean_Elab_Term_throwError___rarg(x_496, x_499, x_3, x_469); +x_498 = lean_ctor_get(x_496, 1); +lean_inc(x_498); lean_dec(x_496); -x_501 = !lean_is_exclusive(x_500); -if (x_501 == 0) +x_499 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_499, 0, x_498); +x_500 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_500, 0, x_499); +x_501 = l_Lean_Elab_Term_throwErrorAt___rarg(x_497, x_500, x_3, x_470); +lean_dec(x_497); +x_502 = !lean_is_exclusive(x_501); +if (x_502 == 0) { -return x_500; +return x_501; } else { -lean_object* x_502; lean_object* x_503; lean_object* x_504; -x_502 = lean_ctor_get(x_500, 0); -x_503 = lean_ctor_get(x_500, 1); +lean_object* x_503; lean_object* x_504; lean_object* x_505; +x_503 = lean_ctor_get(x_501, 0); +x_504 = lean_ctor_get(x_501, 1); +lean_inc(x_504); lean_inc(x_503); -lean_inc(x_502); -lean_dec(x_500); -x_504 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_504, 0, x_502); -lean_ctor_set(x_504, 1, x_503); -return x_504; -} -} -else -{ -lean_object* x_505; uint8_t x_506; -lean_dec(x_3); -x_505 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_469); -x_506 = !lean_is_exclusive(x_505); -if (x_506 == 0) -{ +lean_dec(x_501); +x_505 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_505, 0, x_503); +lean_ctor_set(x_505, 1, x_504); return x_505; } +} else { -lean_object* x_507; lean_object* x_508; lean_object* x_509; -x_507 = lean_ctor_get(x_505, 0); -x_508 = lean_ctor_get(x_505, 1); +lean_object* x_506; uint8_t x_507; +lean_dec(x_3); +x_506 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_470); +x_507 = !lean_is_exclusive(x_506); +if (x_507 == 0) +{ +return x_506; +} +else +{ +lean_object* x_508; lean_object* x_509; lean_object* x_510; +x_508 = lean_ctor_get(x_506, 0); +x_509 = lean_ctor_get(x_506, 1); +lean_inc(x_509); lean_inc(x_508); -lean_inc(x_507); -lean_dec(x_505); -x_509 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_509, 0, x_507); -lean_ctor_set(x_509, 1, x_508); -return x_509; +lean_dec(x_506); +x_510 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_510, 0, x_508); +lean_ctor_set(x_510, 1, x_509); +return x_510; } } } } else { -lean_object* x_510; uint8_t x_511; lean_object* x_662; uint8_t x_663; -x_510 = l_Lean_Syntax_getArg(x_463, x_128); -lean_dec(x_463); -x_662 = l_Lean_mkTermIdFromIdent___closed__2; -lean_inc(x_510); -x_663 = l_Lean_Syntax_isOfKind(x_510, x_662); -if (x_663 == 0) +lean_object* x_511; uint8_t x_512; lean_object* x_663; uint8_t x_664; +x_511 = l_Lean_Syntax_getArg(x_464, x_129); +lean_dec(x_464); +x_663 = l_Lean_mkTermIdFromIdent___closed__2; +lean_inc(x_511); +x_664 = l_Lean_Syntax_isOfKind(x_511, x_663); +if (x_664 == 0) { -uint8_t x_664; -x_664 = 0; -x_511 = x_664; -goto block_661; +uint8_t x_665; +x_665 = 0; +x_512 = x_665; +goto block_662; } else { -lean_object* x_665; lean_object* x_666; uint8_t x_667; -x_665 = l_Lean_Syntax_getArgs(x_510); -x_666 = lean_array_get_size(x_665); -lean_dec(x_665); -x_667 = lean_nat_dec_eq(x_666, x_224); +lean_object* x_666; lean_object* x_667; uint8_t x_668; +x_666 = l_Lean_Syntax_getArgs(x_511); +x_667 = lean_array_get_size(x_666); lean_dec(x_666); -x_511 = x_667; -goto block_661; +x_668 = lean_nat_dec_eq(x_667, x_225); +lean_dec(x_667); +x_512 = x_668; +goto block_662; } -block_661: +block_662: { -if (x_511 == 0) +if (x_512 == 0) { -lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; -lean_dec(x_510); -lean_dec(x_416); -lean_dec(x_319); -lean_dec(x_223); -x_512 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); -x_513 = lean_ctor_get(x_512, 0); -lean_inc(x_513); -x_514 = lean_ctor_get(x_512, 1); +lean_object* x_513; lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; +lean_dec(x_511); +lean_dec(x_417); +lean_dec(x_320); +lean_dec(x_224); +x_513 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); +x_514 = lean_ctor_get(x_513, 0); lean_inc(x_514); -lean_dec(x_512); -x_515 = l_Lean_Elab_Term_getEnv___rarg(x_514); -x_516 = lean_ctor_get(x_515, 1); -lean_inc(x_516); -x_517 = lean_ctor_get(x_515, 0); +x_515 = lean_ctor_get(x_513, 1); +lean_inc(x_515); +lean_dec(x_513); +x_516 = l_Lean_Elab_Term_getEnv___rarg(x_515); +x_517 = lean_ctor_get(x_516, 1); lean_inc(x_517); -lean_dec(x_515); x_518 = lean_ctor_get(x_516, 0); lean_inc(x_518); -x_519 = lean_ctor_get(x_516, 1); -lean_inc(x_519); -x_520 = lean_ctor_get(x_516, 2); -lean_inc(x_520); -x_521 = lean_ctor_get(x_516, 3); -lean_inc(x_521); -x_522 = lean_ctor_get(x_516, 4); -lean_inc(x_522); -x_523 = lean_ctor_get(x_516, 5); -lean_inc(x_523); -x_524 = lean_ctor_get(x_3, 0); -lean_inc(x_524); -x_525 = lean_ctor_get(x_524, 3); -lean_inc(x_525); -x_526 = lean_ctor_get(x_524, 4); -lean_inc(x_526); -lean_dec(x_524); -x_527 = lean_environment_main_module(x_517); -x_528 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_528, 0, x_527); -lean_ctor_set(x_528, 1, x_513); -lean_ctor_set(x_528, 2, x_525); -lean_ctor_set(x_528, 3, x_526); -lean_inc(x_1); -x_529 = l___private_Lean_Elab_Match_31__expandMatchDiscr_x3f(x_1, x_528, x_523); -if (lean_obj_tag(x_529) == 0) -{ -uint8_t x_530; -x_530 = !lean_is_exclusive(x_516); -if (x_530 == 0) -{ -lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; -x_531 = lean_ctor_get(x_516, 5); -lean_dec(x_531); -x_532 = lean_ctor_get(x_516, 4); -lean_dec(x_532); -x_533 = lean_ctor_get(x_516, 3); -lean_dec(x_533); -x_534 = lean_ctor_get(x_516, 2); -lean_dec(x_534); -x_535 = lean_ctor_get(x_516, 1); -lean_dec(x_535); -x_536 = lean_ctor_get(x_516, 0); -lean_dec(x_536); -x_537 = lean_ctor_get(x_529, 0); -lean_inc(x_537); -x_538 = lean_ctor_get(x_529, 1); -lean_inc(x_538); -lean_dec(x_529); -lean_ctor_set(x_516, 5, x_538); -x_5 = x_537; -x_6 = x_516; -goto block_33; -} -else -{ -lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_dec(x_516); -x_539 = lean_ctor_get(x_529, 0); +x_519 = lean_ctor_get(x_517, 0); +lean_inc(x_519); +x_520 = lean_ctor_get(x_517, 1); +lean_inc(x_520); +x_521 = lean_ctor_get(x_517, 2); +lean_inc(x_521); +x_522 = lean_ctor_get(x_517, 3); +lean_inc(x_522); +x_523 = lean_ctor_get(x_517, 4); +lean_inc(x_523); +x_524 = lean_ctor_get(x_517, 5); +lean_inc(x_524); +x_525 = lean_ctor_get(x_3, 0); +lean_inc(x_525); +x_526 = lean_ctor_get(x_525, 3); +lean_inc(x_526); +x_527 = lean_ctor_get(x_525, 4); +lean_inc(x_527); +lean_dec(x_525); +x_528 = lean_environment_main_module(x_518); +x_529 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_529, 0, x_528); +lean_ctor_set(x_529, 1, x_514); +lean_ctor_set(x_529, 2, x_526); +lean_ctor_set(x_529, 3, x_527); +lean_inc(x_1); +x_530 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_529, x_524); +if (lean_obj_tag(x_530) == 0) +{ +uint8_t x_531; +x_531 = !lean_is_exclusive(x_517); +if (x_531 == 0) +{ +lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; +x_532 = lean_ctor_get(x_517, 5); +lean_dec(x_532); +x_533 = lean_ctor_get(x_517, 4); +lean_dec(x_533); +x_534 = lean_ctor_get(x_517, 3); +lean_dec(x_534); +x_535 = lean_ctor_get(x_517, 2); +lean_dec(x_535); +x_536 = lean_ctor_get(x_517, 1); +lean_dec(x_536); +x_537 = lean_ctor_get(x_517, 0); +lean_dec(x_537); +x_538 = lean_ctor_get(x_530, 0); +lean_inc(x_538); +x_539 = lean_ctor_get(x_530, 1); lean_inc(x_539); -x_540 = lean_ctor_get(x_529, 1); +lean_dec(x_530); +lean_ctor_set(x_517, 5, x_539); +x_5 = x_538; +x_6 = x_517; +goto block_34; +} +else +{ +lean_object* x_540; lean_object* x_541; lean_object* x_542; +lean_dec(x_517); +x_540 = lean_ctor_get(x_530, 0); lean_inc(x_540); -lean_dec(x_529); -x_541 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_541, 0, x_518); -lean_ctor_set(x_541, 1, x_519); -lean_ctor_set(x_541, 2, x_520); -lean_ctor_set(x_541, 3, x_521); -lean_ctor_set(x_541, 4, x_522); -lean_ctor_set(x_541, 5, x_540); -x_5 = x_539; -x_6 = x_541; -goto block_33; +x_541 = lean_ctor_get(x_530, 1); +lean_inc(x_541); +lean_dec(x_530); +x_542 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_542, 0, x_519); +lean_ctor_set(x_542, 1, x_520); +lean_ctor_set(x_542, 2, x_521); +lean_ctor_set(x_542, 3, x_522); +lean_ctor_set(x_542, 4, x_523); +lean_ctor_set(x_542, 5, x_541); +x_5 = x_540; +x_6 = x_542; +goto block_34; } } else { -lean_object* x_542; +lean_object* x_543; +lean_dec(x_523); lean_dec(x_522); lean_dec(x_521); lean_dec(x_520); lean_dec(x_519); -lean_dec(x_518); lean_dec(x_2); lean_dec(x_1); -x_542 = lean_ctor_get(x_529, 0); -lean_inc(x_542); -lean_dec(x_529); -if (lean_obj_tag(x_542) == 0) -{ -lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; uint8_t x_548; -x_543 = lean_ctor_get(x_542, 0); +x_543 = lean_ctor_get(x_530, 0); lean_inc(x_543); -x_544 = lean_ctor_get(x_542, 1); +lean_dec(x_530); +if (lean_obj_tag(x_543) == 0) +{ +lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; uint8_t x_549; +x_544 = lean_ctor_get(x_543, 0); lean_inc(x_544); -lean_dec(x_542); -x_545 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_545, 0, x_544); -x_546 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_546, 0, x_545); -x_547 = l_Lean_Elab_Term_throwError___rarg(x_543, x_546, x_3, x_516); +x_545 = lean_ctor_get(x_543, 1); +lean_inc(x_545); lean_dec(x_543); -x_548 = !lean_is_exclusive(x_547); -if (x_548 == 0) +x_546 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_546, 0, x_545); +x_547 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_547, 0, x_546); +x_548 = l_Lean_Elab_Term_throwErrorAt___rarg(x_544, x_547, x_3, x_517); +lean_dec(x_544); +x_549 = !lean_is_exclusive(x_548); +if (x_549 == 0) { -return x_547; +return x_548; } else { -lean_object* x_549; lean_object* x_550; lean_object* x_551; -x_549 = lean_ctor_get(x_547, 0); -x_550 = lean_ctor_get(x_547, 1); +lean_object* x_550; lean_object* x_551; lean_object* x_552; +x_550 = lean_ctor_get(x_548, 0); +x_551 = lean_ctor_get(x_548, 1); +lean_inc(x_551); lean_inc(x_550); -lean_inc(x_549); -lean_dec(x_547); -x_551 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_551, 0, x_549); -lean_ctor_set(x_551, 1, x_550); -return x_551; -} -} -else -{ -lean_object* x_552; uint8_t x_553; -lean_dec(x_3); -x_552 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_516); -x_553 = !lean_is_exclusive(x_552); -if (x_553 == 0) -{ +lean_dec(x_548); +x_552 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_552, 0, x_550); +lean_ctor_set(x_552, 1, x_551); return x_552; } +} else { -lean_object* x_554; lean_object* x_555; lean_object* x_556; -x_554 = lean_ctor_get(x_552, 0); -x_555 = lean_ctor_get(x_552, 1); +lean_object* x_553; uint8_t x_554; +lean_dec(x_3); +x_553 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_517); +x_554 = !lean_is_exclusive(x_553); +if (x_554 == 0) +{ +return x_553; +} +else +{ +lean_object* x_555; lean_object* x_556; lean_object* x_557; +x_555 = lean_ctor_get(x_553, 0); +x_556 = lean_ctor_get(x_553, 1); +lean_inc(x_556); lean_inc(x_555); -lean_inc(x_554); -lean_dec(x_552); -x_556 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_556, 0, x_554); -lean_ctor_set(x_556, 1, x_555); -return x_556; +lean_dec(x_553); +x_557 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_557, 0, x_555); +lean_ctor_set(x_557, 1, x_556); +return x_557; } } } } else { -lean_object* x_557; lean_object* x_558; uint8_t x_559; -x_557 = l_Lean_Syntax_getArg(x_510, x_128); -x_558 = l_Lean_identKind___closed__2; -lean_inc(x_557); -x_559 = l_Lean_Syntax_isOfKind(x_557, x_558); -if (x_559 == 0) +lean_object* x_558; lean_object* x_559; uint8_t x_560; +x_558 = l_Lean_Syntax_getArg(x_511, x_129); +x_559 = l_Lean_identKind___closed__2; +lean_inc(x_558); +x_560 = l_Lean_Syntax_isOfKind(x_558, x_559); +if (x_560 == 0) { -lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; -lean_dec(x_557); -lean_dec(x_510); -lean_dec(x_416); -lean_dec(x_319); -lean_dec(x_223); -x_560 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); -x_561 = lean_ctor_get(x_560, 0); -lean_inc(x_561); -x_562 = lean_ctor_get(x_560, 1); +lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; +lean_dec(x_558); +lean_dec(x_511); +lean_dec(x_417); +lean_dec(x_320); +lean_dec(x_224); +x_561 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); +x_562 = lean_ctor_get(x_561, 0); lean_inc(x_562); -lean_dec(x_560); -x_563 = l_Lean_Elab_Term_getEnv___rarg(x_562); -x_564 = lean_ctor_get(x_563, 1); -lean_inc(x_564); -x_565 = lean_ctor_get(x_563, 0); +x_563 = lean_ctor_get(x_561, 1); +lean_inc(x_563); +lean_dec(x_561); +x_564 = l_Lean_Elab_Term_getEnv___rarg(x_563); +x_565 = lean_ctor_get(x_564, 1); lean_inc(x_565); -lean_dec(x_563); x_566 = lean_ctor_get(x_564, 0); lean_inc(x_566); -x_567 = lean_ctor_get(x_564, 1); -lean_inc(x_567); -x_568 = lean_ctor_get(x_564, 2); -lean_inc(x_568); -x_569 = lean_ctor_get(x_564, 3); -lean_inc(x_569); -x_570 = lean_ctor_get(x_564, 4); -lean_inc(x_570); -x_571 = lean_ctor_get(x_564, 5); -lean_inc(x_571); -x_572 = lean_ctor_get(x_3, 0); -lean_inc(x_572); -x_573 = lean_ctor_get(x_572, 3); -lean_inc(x_573); -x_574 = lean_ctor_get(x_572, 4); -lean_inc(x_574); -lean_dec(x_572); -x_575 = lean_environment_main_module(x_565); -x_576 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_576, 0, x_575); -lean_ctor_set(x_576, 1, x_561); -lean_ctor_set(x_576, 2, x_573); -lean_ctor_set(x_576, 3, x_574); -lean_inc(x_1); -x_577 = l___private_Lean_Elab_Match_31__expandMatchDiscr_x3f(x_1, x_576, x_571); -if (lean_obj_tag(x_577) == 0) -{ -uint8_t x_578; -x_578 = !lean_is_exclusive(x_564); -if (x_578 == 0) -{ -lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; -x_579 = lean_ctor_get(x_564, 5); -lean_dec(x_579); -x_580 = lean_ctor_get(x_564, 4); -lean_dec(x_580); -x_581 = lean_ctor_get(x_564, 3); -lean_dec(x_581); -x_582 = lean_ctor_get(x_564, 2); -lean_dec(x_582); -x_583 = lean_ctor_get(x_564, 1); -lean_dec(x_583); -x_584 = lean_ctor_get(x_564, 0); -lean_dec(x_584); -x_585 = lean_ctor_get(x_577, 0); -lean_inc(x_585); -x_586 = lean_ctor_get(x_577, 1); -lean_inc(x_586); -lean_dec(x_577); -lean_ctor_set(x_564, 5, x_586); -x_5 = x_585; -x_6 = x_564; -goto block_33; -} -else -{ -lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_dec(x_564); -x_587 = lean_ctor_get(x_577, 0); +x_567 = lean_ctor_get(x_565, 0); +lean_inc(x_567); +x_568 = lean_ctor_get(x_565, 1); +lean_inc(x_568); +x_569 = lean_ctor_get(x_565, 2); +lean_inc(x_569); +x_570 = lean_ctor_get(x_565, 3); +lean_inc(x_570); +x_571 = lean_ctor_get(x_565, 4); +lean_inc(x_571); +x_572 = lean_ctor_get(x_565, 5); +lean_inc(x_572); +x_573 = lean_ctor_get(x_3, 0); +lean_inc(x_573); +x_574 = lean_ctor_get(x_573, 3); +lean_inc(x_574); +x_575 = lean_ctor_get(x_573, 4); +lean_inc(x_575); +lean_dec(x_573); +x_576 = lean_environment_main_module(x_566); +x_577 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_577, 0, x_576); +lean_ctor_set(x_577, 1, x_562); +lean_ctor_set(x_577, 2, x_574); +lean_ctor_set(x_577, 3, x_575); +lean_inc(x_1); +x_578 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_577, x_572); +if (lean_obj_tag(x_578) == 0) +{ +uint8_t x_579; +x_579 = !lean_is_exclusive(x_565); +if (x_579 == 0) +{ +lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; +x_580 = lean_ctor_get(x_565, 5); +lean_dec(x_580); +x_581 = lean_ctor_get(x_565, 4); +lean_dec(x_581); +x_582 = lean_ctor_get(x_565, 3); +lean_dec(x_582); +x_583 = lean_ctor_get(x_565, 2); +lean_dec(x_583); +x_584 = lean_ctor_get(x_565, 1); +lean_dec(x_584); +x_585 = lean_ctor_get(x_565, 0); +lean_dec(x_585); +x_586 = lean_ctor_get(x_578, 0); +lean_inc(x_586); +x_587 = lean_ctor_get(x_578, 1); lean_inc(x_587); -x_588 = lean_ctor_get(x_577, 1); +lean_dec(x_578); +lean_ctor_set(x_565, 5, x_587); +x_5 = x_586; +x_6 = x_565; +goto block_34; +} +else +{ +lean_object* x_588; lean_object* x_589; lean_object* x_590; +lean_dec(x_565); +x_588 = lean_ctor_get(x_578, 0); lean_inc(x_588); -lean_dec(x_577); -x_589 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_589, 0, x_566); -lean_ctor_set(x_589, 1, x_567); -lean_ctor_set(x_589, 2, x_568); -lean_ctor_set(x_589, 3, x_569); -lean_ctor_set(x_589, 4, x_570); -lean_ctor_set(x_589, 5, x_588); -x_5 = x_587; -x_6 = x_589; -goto block_33; +x_589 = lean_ctor_get(x_578, 1); +lean_inc(x_589); +lean_dec(x_578); +x_590 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_590, 0, x_567); +lean_ctor_set(x_590, 1, x_568); +lean_ctor_set(x_590, 2, x_569); +lean_ctor_set(x_590, 3, x_570); +lean_ctor_set(x_590, 4, x_571); +lean_ctor_set(x_590, 5, x_589); +x_5 = x_588; +x_6 = x_590; +goto block_34; } } else { -lean_object* x_590; +lean_object* x_591; +lean_dec(x_571); lean_dec(x_570); lean_dec(x_569); lean_dec(x_568); lean_dec(x_567); -lean_dec(x_566); lean_dec(x_2); lean_dec(x_1); -x_590 = lean_ctor_get(x_577, 0); -lean_inc(x_590); -lean_dec(x_577); -if (lean_obj_tag(x_590) == 0) -{ -lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; uint8_t x_596; -x_591 = lean_ctor_get(x_590, 0); +x_591 = lean_ctor_get(x_578, 0); lean_inc(x_591); -x_592 = lean_ctor_get(x_590, 1); +lean_dec(x_578); +if (lean_obj_tag(x_591) == 0) +{ +lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; uint8_t x_597; +x_592 = lean_ctor_get(x_591, 0); lean_inc(x_592); -lean_dec(x_590); -x_593 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_593, 0, x_592); -x_594 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_594, 0, x_593); -x_595 = l_Lean_Elab_Term_throwError___rarg(x_591, x_594, x_3, x_564); +x_593 = lean_ctor_get(x_591, 1); +lean_inc(x_593); lean_dec(x_591); -x_596 = !lean_is_exclusive(x_595); -if (x_596 == 0) +x_594 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_594, 0, x_593); +x_595 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_595, 0, x_594); +x_596 = l_Lean_Elab_Term_throwErrorAt___rarg(x_592, x_595, x_3, x_565); +lean_dec(x_592); +x_597 = !lean_is_exclusive(x_596); +if (x_597 == 0) { -return x_595; +return x_596; } else { -lean_object* x_597; lean_object* x_598; lean_object* x_599; -x_597 = lean_ctor_get(x_595, 0); -x_598 = lean_ctor_get(x_595, 1); +lean_object* x_598; lean_object* x_599; lean_object* x_600; +x_598 = lean_ctor_get(x_596, 0); +x_599 = lean_ctor_get(x_596, 1); +lean_inc(x_599); lean_inc(x_598); -lean_inc(x_597); -lean_dec(x_595); -x_599 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_599, 0, x_597); -lean_ctor_set(x_599, 1, x_598); -return x_599; -} -} -else -{ -lean_object* x_600; uint8_t x_601; -lean_dec(x_3); -x_600 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_564); -x_601 = !lean_is_exclusive(x_600); -if (x_601 == 0) -{ +lean_dec(x_596); +x_600 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_600, 0, x_598); +lean_ctor_set(x_600, 1, x_599); return x_600; } +} else { -lean_object* x_602; lean_object* x_603; lean_object* x_604; -x_602 = lean_ctor_get(x_600, 0); -x_603 = lean_ctor_get(x_600, 1); +lean_object* x_601; uint8_t x_602; +lean_dec(x_3); +x_601 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_565); +x_602 = !lean_is_exclusive(x_601); +if (x_602 == 0) +{ +return x_601; +} +else +{ +lean_object* x_603; lean_object* x_604; lean_object* x_605; +x_603 = lean_ctor_get(x_601, 0); +x_604 = lean_ctor_get(x_601, 1); +lean_inc(x_604); lean_inc(x_603); -lean_inc(x_602); -lean_dec(x_600); -x_604 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_604, 0, x_602); -lean_ctor_set(x_604, 1, x_603); -return x_604; +lean_dec(x_601); +x_605 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_605, 0, x_603); +lean_ctor_set(x_605, 1, x_604); +return x_605; } } } } else { -lean_object* x_605; uint8_t x_606; lean_object* x_655; uint8_t x_656; -x_605 = l_Lean_Syntax_getArg(x_510, x_80); -lean_dec(x_510); -x_655 = l_Lean_nullKind___closed__2; -lean_inc(x_605); -x_656 = l_Lean_Syntax_isOfKind(x_605, x_655); -if (x_656 == 0) +lean_object* x_606; uint8_t x_607; lean_object* x_656; uint8_t x_657; +x_606 = l_Lean_Syntax_getArg(x_511, x_81); +lean_dec(x_511); +x_656 = l_Lean_nullKind___closed__2; +lean_inc(x_606); +x_657 = l_Lean_Syntax_isOfKind(x_606, x_656); +if (x_657 == 0) { -uint8_t x_657; -lean_dec(x_605); -x_657 = 0; -x_606 = x_657; -goto block_654; +uint8_t x_658; +lean_dec(x_606); +x_658 = 0; +x_607 = x_658; +goto block_655; } else { -lean_object* x_658; lean_object* x_659; uint8_t x_660; -x_658 = l_Lean_Syntax_getArgs(x_605); -lean_dec(x_605); -x_659 = lean_array_get_size(x_658); -lean_dec(x_658); -x_660 = lean_nat_dec_eq(x_659, x_128); +lean_object* x_659; lean_object* x_660; uint8_t x_661; +x_659 = l_Lean_Syntax_getArgs(x_606); +lean_dec(x_606); +x_660 = lean_array_get_size(x_659); lean_dec(x_659); -x_606 = x_660; -goto block_654; +x_661 = lean_nat_dec_eq(x_660, x_129); +lean_dec(x_660); +x_607 = x_661; +goto block_655; } -block_654: +block_655: { -if (x_606 == 0) +if (x_607 == 0) { -lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; -lean_dec(x_557); -lean_dec(x_416); -lean_dec(x_319); -lean_dec(x_223); -x_607 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); -x_608 = lean_ctor_get(x_607, 0); -lean_inc(x_608); -x_609 = lean_ctor_get(x_607, 1); +lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; +lean_dec(x_558); +lean_dec(x_417); +lean_dec(x_320); +lean_dec(x_224); +x_608 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); +x_609 = lean_ctor_get(x_608, 0); lean_inc(x_609); -lean_dec(x_607); -x_610 = l_Lean_Elab_Term_getEnv___rarg(x_609); -x_611 = lean_ctor_get(x_610, 1); -lean_inc(x_611); -x_612 = lean_ctor_get(x_610, 0); +x_610 = lean_ctor_get(x_608, 1); +lean_inc(x_610); +lean_dec(x_608); +x_611 = l_Lean_Elab_Term_getEnv___rarg(x_610); +x_612 = lean_ctor_get(x_611, 1); lean_inc(x_612); -lean_dec(x_610); x_613 = lean_ctor_get(x_611, 0); lean_inc(x_613); -x_614 = lean_ctor_get(x_611, 1); -lean_inc(x_614); -x_615 = lean_ctor_get(x_611, 2); -lean_inc(x_615); -x_616 = lean_ctor_get(x_611, 3); -lean_inc(x_616); -x_617 = lean_ctor_get(x_611, 4); -lean_inc(x_617); -x_618 = lean_ctor_get(x_611, 5); -lean_inc(x_618); -x_619 = lean_ctor_get(x_3, 0); -lean_inc(x_619); -x_620 = lean_ctor_get(x_619, 3); -lean_inc(x_620); -x_621 = lean_ctor_get(x_619, 4); -lean_inc(x_621); -lean_dec(x_619); -x_622 = lean_environment_main_module(x_612); -x_623 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_623, 0, x_622); -lean_ctor_set(x_623, 1, x_608); -lean_ctor_set(x_623, 2, x_620); -lean_ctor_set(x_623, 3, x_621); -lean_inc(x_1); -x_624 = l___private_Lean_Elab_Match_31__expandMatchDiscr_x3f(x_1, x_623, x_618); -if (lean_obj_tag(x_624) == 0) -{ -uint8_t x_625; -x_625 = !lean_is_exclusive(x_611); -if (x_625 == 0) -{ -lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; -x_626 = lean_ctor_get(x_611, 5); -lean_dec(x_626); -x_627 = lean_ctor_get(x_611, 4); -lean_dec(x_627); -x_628 = lean_ctor_get(x_611, 3); -lean_dec(x_628); -x_629 = lean_ctor_get(x_611, 2); -lean_dec(x_629); -x_630 = lean_ctor_get(x_611, 1); -lean_dec(x_630); -x_631 = lean_ctor_get(x_611, 0); -lean_dec(x_631); -x_632 = lean_ctor_get(x_624, 0); -lean_inc(x_632); -x_633 = lean_ctor_get(x_624, 1); -lean_inc(x_633); -lean_dec(x_624); -lean_ctor_set(x_611, 5, x_633); -x_5 = x_632; -x_6 = x_611; -goto block_33; -} -else -{ -lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_dec(x_611); -x_634 = lean_ctor_get(x_624, 0); +x_614 = lean_ctor_get(x_612, 0); +lean_inc(x_614); +x_615 = lean_ctor_get(x_612, 1); +lean_inc(x_615); +x_616 = lean_ctor_get(x_612, 2); +lean_inc(x_616); +x_617 = lean_ctor_get(x_612, 3); +lean_inc(x_617); +x_618 = lean_ctor_get(x_612, 4); +lean_inc(x_618); +x_619 = lean_ctor_get(x_612, 5); +lean_inc(x_619); +x_620 = lean_ctor_get(x_3, 0); +lean_inc(x_620); +x_621 = lean_ctor_get(x_620, 3); +lean_inc(x_621); +x_622 = lean_ctor_get(x_620, 4); +lean_inc(x_622); +lean_dec(x_620); +x_623 = lean_environment_main_module(x_613); +x_624 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_624, 0, x_623); +lean_ctor_set(x_624, 1, x_609); +lean_ctor_set(x_624, 2, x_621); +lean_ctor_set(x_624, 3, x_622); +lean_inc(x_1); +x_625 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_624, x_619); +if (lean_obj_tag(x_625) == 0) +{ +uint8_t x_626; +x_626 = !lean_is_exclusive(x_612); +if (x_626 == 0) +{ +lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; lean_object* x_634; +x_627 = lean_ctor_get(x_612, 5); +lean_dec(x_627); +x_628 = lean_ctor_get(x_612, 4); +lean_dec(x_628); +x_629 = lean_ctor_get(x_612, 3); +lean_dec(x_629); +x_630 = lean_ctor_get(x_612, 2); +lean_dec(x_630); +x_631 = lean_ctor_get(x_612, 1); +lean_dec(x_631); +x_632 = lean_ctor_get(x_612, 0); +lean_dec(x_632); +x_633 = lean_ctor_get(x_625, 0); +lean_inc(x_633); +x_634 = lean_ctor_get(x_625, 1); lean_inc(x_634); -x_635 = lean_ctor_get(x_624, 1); +lean_dec(x_625); +lean_ctor_set(x_612, 5, x_634); +x_5 = x_633; +x_6 = x_612; +goto block_34; +} +else +{ +lean_object* x_635; lean_object* x_636; lean_object* x_637; +lean_dec(x_612); +x_635 = lean_ctor_get(x_625, 0); lean_inc(x_635); -lean_dec(x_624); -x_636 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_636, 0, x_613); -lean_ctor_set(x_636, 1, x_614); -lean_ctor_set(x_636, 2, x_615); -lean_ctor_set(x_636, 3, x_616); -lean_ctor_set(x_636, 4, x_617); -lean_ctor_set(x_636, 5, x_635); -x_5 = x_634; -x_6 = x_636; -goto block_33; +x_636 = lean_ctor_get(x_625, 1); +lean_inc(x_636); +lean_dec(x_625); +x_637 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_637, 0, x_614); +lean_ctor_set(x_637, 1, x_615); +lean_ctor_set(x_637, 2, x_616); +lean_ctor_set(x_637, 3, x_617); +lean_ctor_set(x_637, 4, x_618); +lean_ctor_set(x_637, 5, x_636); +x_5 = x_635; +x_6 = x_637; +goto block_34; } } else { -lean_object* x_637; +lean_object* x_638; +lean_dec(x_618); lean_dec(x_617); lean_dec(x_616); lean_dec(x_615); lean_dec(x_614); -lean_dec(x_613); lean_dec(x_2); lean_dec(x_1); -x_637 = lean_ctor_get(x_624, 0); -lean_inc(x_637); -lean_dec(x_624); -if (lean_obj_tag(x_637) == 0) -{ -lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; uint8_t x_643; -x_638 = lean_ctor_get(x_637, 0); +x_638 = lean_ctor_get(x_625, 0); lean_inc(x_638); -x_639 = lean_ctor_get(x_637, 1); +lean_dec(x_625); +if (lean_obj_tag(x_638) == 0) +{ +lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; uint8_t x_644; +x_639 = lean_ctor_get(x_638, 0); lean_inc(x_639); -lean_dec(x_637); -x_640 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_640, 0, x_639); -x_641 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_641, 0, x_640); -x_642 = l_Lean_Elab_Term_throwError___rarg(x_638, x_641, x_3, x_611); +x_640 = lean_ctor_get(x_638, 1); +lean_inc(x_640); lean_dec(x_638); -x_643 = !lean_is_exclusive(x_642); -if (x_643 == 0) +x_641 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_641, 0, x_640); +x_642 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_642, 0, x_641); +x_643 = l_Lean_Elab_Term_throwErrorAt___rarg(x_639, x_642, x_3, x_612); +lean_dec(x_639); +x_644 = !lean_is_exclusive(x_643); +if (x_644 == 0) { -return x_642; +return x_643; } else { -lean_object* x_644; lean_object* x_645; lean_object* x_646; -x_644 = lean_ctor_get(x_642, 0); -x_645 = lean_ctor_get(x_642, 1); +lean_object* x_645; lean_object* x_646; lean_object* x_647; +x_645 = lean_ctor_get(x_643, 0); +x_646 = lean_ctor_get(x_643, 1); +lean_inc(x_646); lean_inc(x_645); -lean_inc(x_644); -lean_dec(x_642); -x_646 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_646, 0, x_644); -lean_ctor_set(x_646, 1, x_645); -return x_646; -} -} -else -{ -lean_object* x_647; uint8_t x_648; -lean_dec(x_3); -x_647 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_611); -x_648 = !lean_is_exclusive(x_647); -if (x_648 == 0) -{ +lean_dec(x_643); +x_647 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_647, 0, x_645); +lean_ctor_set(x_647, 1, x_646); return x_647; } +} else { -lean_object* x_649; lean_object* x_650; lean_object* x_651; -x_649 = lean_ctor_get(x_647, 0); -x_650 = lean_ctor_get(x_647, 1); +lean_object* x_648; uint8_t x_649; +lean_dec(x_3); +x_648 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_612); +x_649 = !lean_is_exclusive(x_648); +if (x_649 == 0) +{ +return x_648; +} +else +{ +lean_object* x_650; lean_object* x_651; lean_object* x_652; +x_650 = lean_ctor_get(x_648, 0); +x_651 = lean_ctor_get(x_648, 1); +lean_inc(x_651); lean_inc(x_650); -lean_inc(x_649); -lean_dec(x_647); -x_651 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_651, 0, x_649); -lean_ctor_set(x_651, 1, x_650); -return x_651; +lean_dec(x_648); +x_652 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_652, 0, x_650); +lean_ctor_set(x_652, 1, x_651); +return x_652; } } } } else { -lean_object* x_652; lean_object* x_653; -x_652 = l_Lean_Syntax_getArg(x_416, x_224); -lean_dec(x_416); -x_653 = l___private_Lean_Elab_Match_2__expandSimpleMatchWithType(x_1, x_223, x_557, x_319, x_652, x_2, x_3, x_4); -return x_653; +lean_object* x_653; lean_object* x_654; +x_653 = l_Lean_Syntax_getArg(x_417, x_225); +lean_dec(x_417); +x_654 = l___private_Lean_Elab_Match_2__expandSimpleMatchWithType(x_1, x_224, x_558, x_320, x_653, x_2, x_3, x_4); +return x_654; } } } @@ -22171,1192 +22681,1192 @@ return x_653; } } } -block_1017: +block_1018: +{ +if (x_694 == 0) { if (x_693 == 0) { -if (x_692 == 0) -{ -uint8_t x_694; -lean_dec(x_321); -x_694 = 0; -x_322 = x_694; -goto block_690; +uint8_t x_695; +lean_dec(x_322); +x_695 = 0; +x_323 = x_695; +goto block_691; } else { -lean_object* x_695; lean_object* x_696; uint8_t x_697; -x_695 = l_Lean_Syntax_getArgs(x_321); -lean_dec(x_321); -x_696 = lean_array_get_size(x_695); -lean_dec(x_695); -x_697 = lean_nat_dec_eq(x_696, x_80); +lean_object* x_696; lean_object* x_697; uint8_t x_698; +x_696 = l_Lean_Syntax_getArgs(x_322); +lean_dec(x_322); +x_697 = lean_array_get_size(x_696); lean_dec(x_696); -x_322 = x_697; -goto block_690; +x_698 = lean_nat_dec_eq(x_697, x_81); +lean_dec(x_697); +x_323 = x_698; +goto block_691; } } else { -lean_object* x_698; lean_object* x_699; uint8_t x_700; uint8_t x_1012; -lean_dec(x_321); -x_698 = lean_unsigned_to_nat(5u); -x_699 = l_Lean_Syntax_getArg(x_1, x_698); -lean_inc(x_699); -x_1012 = l_Lean_Syntax_isOfKind(x_699, x_691); -if (x_1012 == 0) +lean_object* x_699; lean_object* x_700; uint8_t x_701; uint8_t x_1013; +lean_dec(x_322); +x_699 = lean_unsigned_to_nat(5u); +x_700 = l_Lean_Syntax_getArg(x_1, x_699); +lean_inc(x_700); +x_1013 = l_Lean_Syntax_isOfKind(x_700, x_692); +if (x_1013 == 0) { -uint8_t x_1013; -x_1013 = 0; -x_700 = x_1013; -goto block_1011; +uint8_t x_1014; +x_1014 = 0; +x_701 = x_1014; +goto block_1012; } else { -lean_object* x_1014; lean_object* x_1015; uint8_t x_1016; -x_1014 = l_Lean_Syntax_getArgs(x_699); -x_1015 = lean_array_get_size(x_1014); -lean_dec(x_1014); -x_1016 = lean_nat_dec_eq(x_1015, x_80); +lean_object* x_1015; lean_object* x_1016; uint8_t x_1017; +x_1015 = l_Lean_Syntax_getArgs(x_700); +x_1016 = lean_array_get_size(x_1015); lean_dec(x_1015); -x_700 = x_1016; -goto block_1011; +x_1017 = lean_nat_dec_eq(x_1016, x_81); +lean_dec(x_1016); +x_701 = x_1017; +goto block_1012; } -block_1011: +block_1012: { -if (x_700 == 0) +if (x_701 == 0) { -lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; -lean_dec(x_699); -lean_dec(x_319); -lean_dec(x_223); -x_701 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); -x_702 = lean_ctor_get(x_701, 0); -lean_inc(x_702); -x_703 = lean_ctor_get(x_701, 1); +lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; lean_object* x_719; +lean_dec(x_700); +lean_dec(x_320); +lean_dec(x_224); +x_702 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); +x_703 = lean_ctor_get(x_702, 0); lean_inc(x_703); -lean_dec(x_701); -x_704 = l_Lean_Elab_Term_getEnv___rarg(x_703); -x_705 = lean_ctor_get(x_704, 1); -lean_inc(x_705); -x_706 = lean_ctor_get(x_704, 0); +x_704 = lean_ctor_get(x_702, 1); +lean_inc(x_704); +lean_dec(x_702); +x_705 = l_Lean_Elab_Term_getEnv___rarg(x_704); +x_706 = lean_ctor_get(x_705, 1); lean_inc(x_706); -lean_dec(x_704); x_707 = lean_ctor_get(x_705, 0); lean_inc(x_707); -x_708 = lean_ctor_get(x_705, 1); -lean_inc(x_708); -x_709 = lean_ctor_get(x_705, 2); -lean_inc(x_709); -x_710 = lean_ctor_get(x_705, 3); -lean_inc(x_710); -x_711 = lean_ctor_get(x_705, 4); -lean_inc(x_711); -x_712 = lean_ctor_get(x_705, 5); -lean_inc(x_712); -x_713 = lean_ctor_get(x_3, 0); -lean_inc(x_713); -x_714 = lean_ctor_get(x_713, 3); -lean_inc(x_714); -x_715 = lean_ctor_get(x_713, 4); -lean_inc(x_715); -lean_dec(x_713); -x_716 = lean_environment_main_module(x_706); -x_717 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_717, 0, x_716); -lean_ctor_set(x_717, 1, x_702); -lean_ctor_set(x_717, 2, x_714); -lean_ctor_set(x_717, 3, x_715); -lean_inc(x_1); -x_718 = l___private_Lean_Elab_Match_31__expandMatchDiscr_x3f(x_1, x_717, x_712); -if (lean_obj_tag(x_718) == 0) -{ -uint8_t x_719; -x_719 = !lean_is_exclusive(x_705); -if (x_719 == 0) -{ -lean_object* x_720; lean_object* x_721; lean_object* x_722; lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_726; lean_object* x_727; -x_720 = lean_ctor_get(x_705, 5); -lean_dec(x_720); -x_721 = lean_ctor_get(x_705, 4); -lean_dec(x_721); -x_722 = lean_ctor_get(x_705, 3); -lean_dec(x_722); -x_723 = lean_ctor_get(x_705, 2); -lean_dec(x_723); -x_724 = lean_ctor_get(x_705, 1); -lean_dec(x_724); -x_725 = lean_ctor_get(x_705, 0); -lean_dec(x_725); -x_726 = lean_ctor_get(x_718, 0); -lean_inc(x_726); -x_727 = lean_ctor_get(x_718, 1); -lean_inc(x_727); -lean_dec(x_718); -lean_ctor_set(x_705, 5, x_727); -x_5 = x_726; -x_6 = x_705; -goto block_33; -} -else -{ -lean_object* x_728; lean_object* x_729; lean_object* x_730; lean_dec(x_705); -x_728 = lean_ctor_get(x_718, 0); +x_708 = lean_ctor_get(x_706, 0); +lean_inc(x_708); +x_709 = lean_ctor_get(x_706, 1); +lean_inc(x_709); +x_710 = lean_ctor_get(x_706, 2); +lean_inc(x_710); +x_711 = lean_ctor_get(x_706, 3); +lean_inc(x_711); +x_712 = lean_ctor_get(x_706, 4); +lean_inc(x_712); +x_713 = lean_ctor_get(x_706, 5); +lean_inc(x_713); +x_714 = lean_ctor_get(x_3, 0); +lean_inc(x_714); +x_715 = lean_ctor_get(x_714, 3); +lean_inc(x_715); +x_716 = lean_ctor_get(x_714, 4); +lean_inc(x_716); +lean_dec(x_714); +x_717 = lean_environment_main_module(x_707); +x_718 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_718, 0, x_717); +lean_ctor_set(x_718, 1, x_703); +lean_ctor_set(x_718, 2, x_715); +lean_ctor_set(x_718, 3, x_716); +lean_inc(x_1); +x_719 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_718, x_713); +if (lean_obj_tag(x_719) == 0) +{ +uint8_t x_720; +x_720 = !lean_is_exclusive(x_706); +if (x_720 == 0) +{ +lean_object* x_721; lean_object* x_722; lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_726; lean_object* x_727; lean_object* x_728; +x_721 = lean_ctor_get(x_706, 5); +lean_dec(x_721); +x_722 = lean_ctor_get(x_706, 4); +lean_dec(x_722); +x_723 = lean_ctor_get(x_706, 3); +lean_dec(x_723); +x_724 = lean_ctor_get(x_706, 2); +lean_dec(x_724); +x_725 = lean_ctor_get(x_706, 1); +lean_dec(x_725); +x_726 = lean_ctor_get(x_706, 0); +lean_dec(x_726); +x_727 = lean_ctor_get(x_719, 0); +lean_inc(x_727); +x_728 = lean_ctor_get(x_719, 1); lean_inc(x_728); -x_729 = lean_ctor_get(x_718, 1); +lean_dec(x_719); +lean_ctor_set(x_706, 5, x_728); +x_5 = x_727; +x_6 = x_706; +goto block_34; +} +else +{ +lean_object* x_729; lean_object* x_730; lean_object* x_731; +lean_dec(x_706); +x_729 = lean_ctor_get(x_719, 0); lean_inc(x_729); -lean_dec(x_718); -x_730 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_730, 0, x_707); -lean_ctor_set(x_730, 1, x_708); -lean_ctor_set(x_730, 2, x_709); -lean_ctor_set(x_730, 3, x_710); -lean_ctor_set(x_730, 4, x_711); -lean_ctor_set(x_730, 5, x_729); -x_5 = x_728; -x_6 = x_730; -goto block_33; +x_730 = lean_ctor_get(x_719, 1); +lean_inc(x_730); +lean_dec(x_719); +x_731 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_731, 0, x_708); +lean_ctor_set(x_731, 1, x_709); +lean_ctor_set(x_731, 2, x_710); +lean_ctor_set(x_731, 3, x_711); +lean_ctor_set(x_731, 4, x_712); +lean_ctor_set(x_731, 5, x_730); +x_5 = x_729; +x_6 = x_731; +goto block_34; } } else { -lean_object* x_731; +lean_object* x_732; +lean_dec(x_712); lean_dec(x_711); lean_dec(x_710); lean_dec(x_709); lean_dec(x_708); -lean_dec(x_707); lean_dec(x_2); lean_dec(x_1); -x_731 = lean_ctor_get(x_718, 0); -lean_inc(x_731); -lean_dec(x_718); -if (lean_obj_tag(x_731) == 0) -{ -lean_object* x_732; lean_object* x_733; lean_object* x_734; lean_object* x_735; lean_object* x_736; uint8_t x_737; -x_732 = lean_ctor_get(x_731, 0); +x_732 = lean_ctor_get(x_719, 0); lean_inc(x_732); -x_733 = lean_ctor_get(x_731, 1); +lean_dec(x_719); +if (lean_obj_tag(x_732) == 0) +{ +lean_object* x_733; lean_object* x_734; lean_object* x_735; lean_object* x_736; lean_object* x_737; uint8_t x_738; +x_733 = lean_ctor_get(x_732, 0); lean_inc(x_733); -lean_dec(x_731); -x_734 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_734, 0, x_733); -x_735 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_735, 0, x_734); -x_736 = l_Lean_Elab_Term_throwError___rarg(x_732, x_735, x_3, x_705); +x_734 = lean_ctor_get(x_732, 1); +lean_inc(x_734); lean_dec(x_732); -x_737 = !lean_is_exclusive(x_736); -if (x_737 == 0) +x_735 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_735, 0, x_734); +x_736 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_736, 0, x_735); +x_737 = l_Lean_Elab_Term_throwErrorAt___rarg(x_733, x_736, x_3, x_706); +lean_dec(x_733); +x_738 = !lean_is_exclusive(x_737); +if (x_738 == 0) { -return x_736; +return x_737; } else { -lean_object* x_738; lean_object* x_739; lean_object* x_740; -x_738 = lean_ctor_get(x_736, 0); -x_739 = lean_ctor_get(x_736, 1); +lean_object* x_739; lean_object* x_740; lean_object* x_741; +x_739 = lean_ctor_get(x_737, 0); +x_740 = lean_ctor_get(x_737, 1); +lean_inc(x_740); lean_inc(x_739); -lean_inc(x_738); -lean_dec(x_736); -x_740 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_740, 0, x_738); -lean_ctor_set(x_740, 1, x_739); -return x_740; -} -} -else -{ -lean_object* x_741; uint8_t x_742; -lean_dec(x_3); -x_741 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_705); -x_742 = !lean_is_exclusive(x_741); -if (x_742 == 0) -{ +lean_dec(x_737); +x_741 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_741, 0, x_739); +lean_ctor_set(x_741, 1, x_740); return x_741; } +} else { -lean_object* x_743; lean_object* x_744; lean_object* x_745; -x_743 = lean_ctor_get(x_741, 0); -x_744 = lean_ctor_get(x_741, 1); +lean_object* x_742; uint8_t x_743; +lean_dec(x_3); +x_742 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_706); +x_743 = !lean_is_exclusive(x_742); +if (x_743 == 0) +{ +return x_742; +} +else +{ +lean_object* x_744; lean_object* x_745; lean_object* x_746; +x_744 = lean_ctor_get(x_742, 0); +x_745 = lean_ctor_get(x_742, 1); +lean_inc(x_745); lean_inc(x_744); -lean_inc(x_743); -lean_dec(x_741); -x_745 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_745, 0, x_743); -lean_ctor_set(x_745, 1, x_744); -return x_745; +lean_dec(x_742); +x_746 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_746, 0, x_744); +lean_ctor_set(x_746, 1, x_745); +return x_746; } } } } else { -lean_object* x_746; uint8_t x_747; lean_object* x_1004; uint8_t x_1005; -x_746 = l_Lean_Syntax_getArg(x_699, x_128); -lean_dec(x_699); -x_1004 = l_Lean_Parser_Term_matchAlt___closed__2; -lean_inc(x_746); -x_1005 = l_Lean_Syntax_isOfKind(x_746, x_1004); -if (x_1005 == 0) +lean_object* x_747; uint8_t x_748; lean_object* x_1005; uint8_t x_1006; +x_747 = l_Lean_Syntax_getArg(x_700, x_129); +lean_dec(x_700); +x_1005 = l_Lean_Parser_Term_matchAlt___closed__2; +lean_inc(x_747); +x_1006 = l_Lean_Syntax_isOfKind(x_747, x_1005); +if (x_1006 == 0) { -uint8_t x_1006; -x_1006 = 0; -x_747 = x_1006; -goto block_1003; +uint8_t x_1007; +x_1007 = 0; +x_748 = x_1007; +goto block_1004; } else { -lean_object* x_1007; lean_object* x_1008; lean_object* x_1009; uint8_t x_1010; -x_1007 = l_Lean_Syntax_getArgs(x_746); -x_1008 = lean_array_get_size(x_1007); -lean_dec(x_1007); -x_1009 = lean_unsigned_to_nat(3u); -x_1010 = lean_nat_dec_eq(x_1008, x_1009); +lean_object* x_1008; lean_object* x_1009; lean_object* x_1010; uint8_t x_1011; +x_1008 = l_Lean_Syntax_getArgs(x_747); +x_1009 = lean_array_get_size(x_1008); lean_dec(x_1008); -x_747 = x_1010; -goto block_1003; +x_1010 = lean_unsigned_to_nat(3u); +x_1011 = lean_nat_dec_eq(x_1009, x_1010); +lean_dec(x_1009); +x_748 = x_1011; +goto block_1004; } -block_1003: +block_1004: { -if (x_747 == 0) +if (x_748 == 0) { -lean_object* x_748; lean_object* x_749; lean_object* x_750; lean_object* x_751; lean_object* x_752; lean_object* x_753; lean_object* x_754; lean_object* x_755; lean_object* x_756; lean_object* x_757; lean_object* x_758; lean_object* x_759; lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; lean_object* x_764; lean_object* x_765; -lean_dec(x_746); -lean_dec(x_319); -lean_dec(x_223); -x_748 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); -x_749 = lean_ctor_get(x_748, 0); -lean_inc(x_749); -x_750 = lean_ctor_get(x_748, 1); +lean_object* x_749; lean_object* x_750; lean_object* x_751; lean_object* x_752; lean_object* x_753; lean_object* x_754; lean_object* x_755; lean_object* x_756; lean_object* x_757; lean_object* x_758; lean_object* x_759; lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; lean_object* x_764; lean_object* x_765; lean_object* x_766; +lean_dec(x_747); +lean_dec(x_320); +lean_dec(x_224); +x_749 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); +x_750 = lean_ctor_get(x_749, 0); lean_inc(x_750); -lean_dec(x_748); -x_751 = l_Lean_Elab_Term_getEnv___rarg(x_750); -x_752 = lean_ctor_get(x_751, 1); -lean_inc(x_752); -x_753 = lean_ctor_get(x_751, 0); +x_751 = lean_ctor_get(x_749, 1); +lean_inc(x_751); +lean_dec(x_749); +x_752 = l_Lean_Elab_Term_getEnv___rarg(x_751); +x_753 = lean_ctor_get(x_752, 1); lean_inc(x_753); -lean_dec(x_751); x_754 = lean_ctor_get(x_752, 0); lean_inc(x_754); -x_755 = lean_ctor_get(x_752, 1); -lean_inc(x_755); -x_756 = lean_ctor_get(x_752, 2); -lean_inc(x_756); -x_757 = lean_ctor_get(x_752, 3); -lean_inc(x_757); -x_758 = lean_ctor_get(x_752, 4); -lean_inc(x_758); -x_759 = lean_ctor_get(x_752, 5); -lean_inc(x_759); -x_760 = lean_ctor_get(x_3, 0); -lean_inc(x_760); -x_761 = lean_ctor_get(x_760, 3); -lean_inc(x_761); -x_762 = lean_ctor_get(x_760, 4); -lean_inc(x_762); -lean_dec(x_760); -x_763 = lean_environment_main_module(x_753); -x_764 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_764, 0, x_763); -lean_ctor_set(x_764, 1, x_749); -lean_ctor_set(x_764, 2, x_761); -lean_ctor_set(x_764, 3, x_762); -lean_inc(x_1); -x_765 = l___private_Lean_Elab_Match_31__expandMatchDiscr_x3f(x_1, x_764, x_759); -if (lean_obj_tag(x_765) == 0) -{ -uint8_t x_766; -x_766 = !lean_is_exclusive(x_752); -if (x_766 == 0) -{ -lean_object* x_767; lean_object* x_768; lean_object* x_769; lean_object* x_770; lean_object* x_771; lean_object* x_772; lean_object* x_773; lean_object* x_774; -x_767 = lean_ctor_get(x_752, 5); -lean_dec(x_767); -x_768 = lean_ctor_get(x_752, 4); -lean_dec(x_768); -x_769 = lean_ctor_get(x_752, 3); -lean_dec(x_769); -x_770 = lean_ctor_get(x_752, 2); -lean_dec(x_770); -x_771 = lean_ctor_get(x_752, 1); -lean_dec(x_771); -x_772 = lean_ctor_get(x_752, 0); -lean_dec(x_772); -x_773 = lean_ctor_get(x_765, 0); -lean_inc(x_773); -x_774 = lean_ctor_get(x_765, 1); -lean_inc(x_774); -lean_dec(x_765); -lean_ctor_set(x_752, 5, x_774); -x_5 = x_773; -x_6 = x_752; -goto block_33; -} -else -{ -lean_object* x_775; lean_object* x_776; lean_object* x_777; lean_dec(x_752); -x_775 = lean_ctor_get(x_765, 0); +x_755 = lean_ctor_get(x_753, 0); +lean_inc(x_755); +x_756 = lean_ctor_get(x_753, 1); +lean_inc(x_756); +x_757 = lean_ctor_get(x_753, 2); +lean_inc(x_757); +x_758 = lean_ctor_get(x_753, 3); +lean_inc(x_758); +x_759 = lean_ctor_get(x_753, 4); +lean_inc(x_759); +x_760 = lean_ctor_get(x_753, 5); +lean_inc(x_760); +x_761 = lean_ctor_get(x_3, 0); +lean_inc(x_761); +x_762 = lean_ctor_get(x_761, 3); +lean_inc(x_762); +x_763 = lean_ctor_get(x_761, 4); +lean_inc(x_763); +lean_dec(x_761); +x_764 = lean_environment_main_module(x_754); +x_765 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_765, 0, x_764); +lean_ctor_set(x_765, 1, x_750); +lean_ctor_set(x_765, 2, x_762); +lean_ctor_set(x_765, 3, x_763); +lean_inc(x_1); +x_766 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_765, x_760); +if (lean_obj_tag(x_766) == 0) +{ +uint8_t x_767; +x_767 = !lean_is_exclusive(x_753); +if (x_767 == 0) +{ +lean_object* x_768; lean_object* x_769; lean_object* x_770; lean_object* x_771; lean_object* x_772; lean_object* x_773; lean_object* x_774; lean_object* x_775; +x_768 = lean_ctor_get(x_753, 5); +lean_dec(x_768); +x_769 = lean_ctor_get(x_753, 4); +lean_dec(x_769); +x_770 = lean_ctor_get(x_753, 3); +lean_dec(x_770); +x_771 = lean_ctor_get(x_753, 2); +lean_dec(x_771); +x_772 = lean_ctor_get(x_753, 1); +lean_dec(x_772); +x_773 = lean_ctor_get(x_753, 0); +lean_dec(x_773); +x_774 = lean_ctor_get(x_766, 0); +lean_inc(x_774); +x_775 = lean_ctor_get(x_766, 1); lean_inc(x_775); -x_776 = lean_ctor_get(x_765, 1); +lean_dec(x_766); +lean_ctor_set(x_753, 5, x_775); +x_5 = x_774; +x_6 = x_753; +goto block_34; +} +else +{ +lean_object* x_776; lean_object* x_777; lean_object* x_778; +lean_dec(x_753); +x_776 = lean_ctor_get(x_766, 0); lean_inc(x_776); -lean_dec(x_765); -x_777 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_777, 0, x_754); -lean_ctor_set(x_777, 1, x_755); -lean_ctor_set(x_777, 2, x_756); -lean_ctor_set(x_777, 3, x_757); -lean_ctor_set(x_777, 4, x_758); -lean_ctor_set(x_777, 5, x_776); -x_5 = x_775; -x_6 = x_777; -goto block_33; +x_777 = lean_ctor_get(x_766, 1); +lean_inc(x_777); +lean_dec(x_766); +x_778 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_778, 0, x_755); +lean_ctor_set(x_778, 1, x_756); +lean_ctor_set(x_778, 2, x_757); +lean_ctor_set(x_778, 3, x_758); +lean_ctor_set(x_778, 4, x_759); +lean_ctor_set(x_778, 5, x_777); +x_5 = x_776; +x_6 = x_778; +goto block_34; } } else { -lean_object* x_778; +lean_object* x_779; +lean_dec(x_759); lean_dec(x_758); lean_dec(x_757); lean_dec(x_756); lean_dec(x_755); -lean_dec(x_754); lean_dec(x_2); lean_dec(x_1); -x_778 = lean_ctor_get(x_765, 0); -lean_inc(x_778); -lean_dec(x_765); -if (lean_obj_tag(x_778) == 0) -{ -lean_object* x_779; lean_object* x_780; lean_object* x_781; lean_object* x_782; lean_object* x_783; uint8_t x_784; -x_779 = lean_ctor_get(x_778, 0); +x_779 = lean_ctor_get(x_766, 0); lean_inc(x_779); -x_780 = lean_ctor_get(x_778, 1); +lean_dec(x_766); +if (lean_obj_tag(x_779) == 0) +{ +lean_object* x_780; lean_object* x_781; lean_object* x_782; lean_object* x_783; lean_object* x_784; uint8_t x_785; +x_780 = lean_ctor_get(x_779, 0); lean_inc(x_780); -lean_dec(x_778); -x_781 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_781, 0, x_780); -x_782 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_782, 0, x_781); -x_783 = l_Lean_Elab_Term_throwError___rarg(x_779, x_782, x_3, x_752); +x_781 = lean_ctor_get(x_779, 1); +lean_inc(x_781); lean_dec(x_779); -x_784 = !lean_is_exclusive(x_783); -if (x_784 == 0) +x_782 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_782, 0, x_781); +x_783 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_783, 0, x_782); +x_784 = l_Lean_Elab_Term_throwErrorAt___rarg(x_780, x_783, x_3, x_753); +lean_dec(x_780); +x_785 = !lean_is_exclusive(x_784); +if (x_785 == 0) { -return x_783; +return x_784; } else { -lean_object* x_785; lean_object* x_786; lean_object* x_787; -x_785 = lean_ctor_get(x_783, 0); -x_786 = lean_ctor_get(x_783, 1); +lean_object* x_786; lean_object* x_787; lean_object* x_788; +x_786 = lean_ctor_get(x_784, 0); +x_787 = lean_ctor_get(x_784, 1); +lean_inc(x_787); lean_inc(x_786); -lean_inc(x_785); -lean_dec(x_783); -x_787 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_787, 0, x_785); -lean_ctor_set(x_787, 1, x_786); -return x_787; -} -} -else -{ -lean_object* x_788; uint8_t x_789; -lean_dec(x_3); -x_788 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_752); -x_789 = !lean_is_exclusive(x_788); -if (x_789 == 0) -{ +lean_dec(x_784); +x_788 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_788, 0, x_786); +lean_ctor_set(x_788, 1, x_787); return x_788; } +} else { -lean_object* x_790; lean_object* x_791; lean_object* x_792; -x_790 = lean_ctor_get(x_788, 0); -x_791 = lean_ctor_get(x_788, 1); +lean_object* x_789; uint8_t x_790; +lean_dec(x_3); +x_789 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_753); +x_790 = !lean_is_exclusive(x_789); +if (x_790 == 0) +{ +return x_789; +} +else +{ +lean_object* x_791; lean_object* x_792; lean_object* x_793; +x_791 = lean_ctor_get(x_789, 0); +x_792 = lean_ctor_get(x_789, 1); +lean_inc(x_792); lean_inc(x_791); -lean_inc(x_790); -lean_dec(x_788); -x_792 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_792, 0, x_790); -lean_ctor_set(x_792, 1, x_791); -return x_792; +lean_dec(x_789); +x_793 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_793, 0, x_791); +lean_ctor_set(x_793, 1, x_792); +return x_793; } } } } else { -lean_object* x_793; uint8_t x_794; uint8_t x_998; -x_793 = l_Lean_Syntax_getArg(x_746, x_128); -lean_inc(x_793); -x_998 = l_Lean_Syntax_isOfKind(x_793, x_691); -if (x_998 == 0) +lean_object* x_794; uint8_t x_795; uint8_t x_999; +x_794 = l_Lean_Syntax_getArg(x_747, x_129); +lean_inc(x_794); +x_999 = l_Lean_Syntax_isOfKind(x_794, x_692); +if (x_999 == 0) { -uint8_t x_999; -x_999 = 0; -x_794 = x_999; -goto block_997; +uint8_t x_1000; +x_1000 = 0; +x_795 = x_1000; +goto block_998; } else { -lean_object* x_1000; lean_object* x_1001; uint8_t x_1002; -x_1000 = l_Lean_Syntax_getArgs(x_793); -x_1001 = lean_array_get_size(x_1000); -lean_dec(x_1000); -x_1002 = lean_nat_dec_eq(x_1001, x_80); +lean_object* x_1001; lean_object* x_1002; uint8_t x_1003; +x_1001 = l_Lean_Syntax_getArgs(x_794); +x_1002 = lean_array_get_size(x_1001); lean_dec(x_1001); -x_794 = x_1002; -goto block_997; +x_1003 = lean_nat_dec_eq(x_1002, x_81); +lean_dec(x_1002); +x_795 = x_1003; +goto block_998; } -block_997: +block_998: { -if (x_794 == 0) +if (x_795 == 0) { -lean_object* x_795; lean_object* x_796; lean_object* x_797; lean_object* x_798; lean_object* x_799; lean_object* x_800; lean_object* x_801; lean_object* x_802; lean_object* x_803; lean_object* x_804; lean_object* x_805; lean_object* x_806; lean_object* x_807; lean_object* x_808; lean_object* x_809; lean_object* x_810; lean_object* x_811; lean_object* x_812; -lean_dec(x_793); -lean_dec(x_746); -lean_dec(x_319); -lean_dec(x_223); -x_795 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); -x_796 = lean_ctor_get(x_795, 0); -lean_inc(x_796); -x_797 = lean_ctor_get(x_795, 1); +lean_object* x_796; lean_object* x_797; lean_object* x_798; lean_object* x_799; lean_object* x_800; lean_object* x_801; lean_object* x_802; lean_object* x_803; lean_object* x_804; lean_object* x_805; lean_object* x_806; lean_object* x_807; lean_object* x_808; lean_object* x_809; lean_object* x_810; lean_object* x_811; lean_object* x_812; lean_object* x_813; +lean_dec(x_794); +lean_dec(x_747); +lean_dec(x_320); +lean_dec(x_224); +x_796 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); +x_797 = lean_ctor_get(x_796, 0); lean_inc(x_797); -lean_dec(x_795); -x_798 = l_Lean_Elab_Term_getEnv___rarg(x_797); -x_799 = lean_ctor_get(x_798, 1); -lean_inc(x_799); -x_800 = lean_ctor_get(x_798, 0); +x_798 = lean_ctor_get(x_796, 1); +lean_inc(x_798); +lean_dec(x_796); +x_799 = l_Lean_Elab_Term_getEnv___rarg(x_798); +x_800 = lean_ctor_get(x_799, 1); lean_inc(x_800); -lean_dec(x_798); x_801 = lean_ctor_get(x_799, 0); lean_inc(x_801); -x_802 = lean_ctor_get(x_799, 1); -lean_inc(x_802); -x_803 = lean_ctor_get(x_799, 2); -lean_inc(x_803); -x_804 = lean_ctor_get(x_799, 3); -lean_inc(x_804); -x_805 = lean_ctor_get(x_799, 4); -lean_inc(x_805); -x_806 = lean_ctor_get(x_799, 5); -lean_inc(x_806); -x_807 = lean_ctor_get(x_3, 0); -lean_inc(x_807); -x_808 = lean_ctor_get(x_807, 3); -lean_inc(x_808); -x_809 = lean_ctor_get(x_807, 4); -lean_inc(x_809); -lean_dec(x_807); -x_810 = lean_environment_main_module(x_800); -x_811 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_811, 0, x_810); -lean_ctor_set(x_811, 1, x_796); -lean_ctor_set(x_811, 2, x_808); -lean_ctor_set(x_811, 3, x_809); -lean_inc(x_1); -x_812 = l___private_Lean_Elab_Match_31__expandMatchDiscr_x3f(x_1, x_811, x_806); -if (lean_obj_tag(x_812) == 0) -{ -uint8_t x_813; -x_813 = !lean_is_exclusive(x_799); -if (x_813 == 0) -{ -lean_object* x_814; lean_object* x_815; lean_object* x_816; lean_object* x_817; lean_object* x_818; lean_object* x_819; lean_object* x_820; lean_object* x_821; -x_814 = lean_ctor_get(x_799, 5); -lean_dec(x_814); -x_815 = lean_ctor_get(x_799, 4); -lean_dec(x_815); -x_816 = lean_ctor_get(x_799, 3); -lean_dec(x_816); -x_817 = lean_ctor_get(x_799, 2); -lean_dec(x_817); -x_818 = lean_ctor_get(x_799, 1); -lean_dec(x_818); -x_819 = lean_ctor_get(x_799, 0); -lean_dec(x_819); -x_820 = lean_ctor_get(x_812, 0); -lean_inc(x_820); -x_821 = lean_ctor_get(x_812, 1); -lean_inc(x_821); -lean_dec(x_812); -lean_ctor_set(x_799, 5, x_821); -x_5 = x_820; -x_6 = x_799; -goto block_33; -} -else -{ -lean_object* x_822; lean_object* x_823; lean_object* x_824; lean_dec(x_799); -x_822 = lean_ctor_get(x_812, 0); +x_802 = lean_ctor_get(x_800, 0); +lean_inc(x_802); +x_803 = lean_ctor_get(x_800, 1); +lean_inc(x_803); +x_804 = lean_ctor_get(x_800, 2); +lean_inc(x_804); +x_805 = lean_ctor_get(x_800, 3); +lean_inc(x_805); +x_806 = lean_ctor_get(x_800, 4); +lean_inc(x_806); +x_807 = lean_ctor_get(x_800, 5); +lean_inc(x_807); +x_808 = lean_ctor_get(x_3, 0); +lean_inc(x_808); +x_809 = lean_ctor_get(x_808, 3); +lean_inc(x_809); +x_810 = lean_ctor_get(x_808, 4); +lean_inc(x_810); +lean_dec(x_808); +x_811 = lean_environment_main_module(x_801); +x_812 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_812, 0, x_811); +lean_ctor_set(x_812, 1, x_797); +lean_ctor_set(x_812, 2, x_809); +lean_ctor_set(x_812, 3, x_810); +lean_inc(x_1); +x_813 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_812, x_807); +if (lean_obj_tag(x_813) == 0) +{ +uint8_t x_814; +x_814 = !lean_is_exclusive(x_800); +if (x_814 == 0) +{ +lean_object* x_815; lean_object* x_816; lean_object* x_817; lean_object* x_818; lean_object* x_819; lean_object* x_820; lean_object* x_821; lean_object* x_822; +x_815 = lean_ctor_get(x_800, 5); +lean_dec(x_815); +x_816 = lean_ctor_get(x_800, 4); +lean_dec(x_816); +x_817 = lean_ctor_get(x_800, 3); +lean_dec(x_817); +x_818 = lean_ctor_get(x_800, 2); +lean_dec(x_818); +x_819 = lean_ctor_get(x_800, 1); +lean_dec(x_819); +x_820 = lean_ctor_get(x_800, 0); +lean_dec(x_820); +x_821 = lean_ctor_get(x_813, 0); +lean_inc(x_821); +x_822 = lean_ctor_get(x_813, 1); lean_inc(x_822); -x_823 = lean_ctor_get(x_812, 1); +lean_dec(x_813); +lean_ctor_set(x_800, 5, x_822); +x_5 = x_821; +x_6 = x_800; +goto block_34; +} +else +{ +lean_object* x_823; lean_object* x_824; lean_object* x_825; +lean_dec(x_800); +x_823 = lean_ctor_get(x_813, 0); lean_inc(x_823); -lean_dec(x_812); -x_824 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_824, 0, x_801); -lean_ctor_set(x_824, 1, x_802); -lean_ctor_set(x_824, 2, x_803); -lean_ctor_set(x_824, 3, x_804); -lean_ctor_set(x_824, 4, x_805); -lean_ctor_set(x_824, 5, x_823); -x_5 = x_822; -x_6 = x_824; -goto block_33; +x_824 = lean_ctor_get(x_813, 1); +lean_inc(x_824); +lean_dec(x_813); +x_825 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_825, 0, x_802); +lean_ctor_set(x_825, 1, x_803); +lean_ctor_set(x_825, 2, x_804); +lean_ctor_set(x_825, 3, x_805); +lean_ctor_set(x_825, 4, x_806); +lean_ctor_set(x_825, 5, x_824); +x_5 = x_823; +x_6 = x_825; +goto block_34; } } else { -lean_object* x_825; +lean_object* x_826; +lean_dec(x_806); lean_dec(x_805); lean_dec(x_804); lean_dec(x_803); lean_dec(x_802); -lean_dec(x_801); lean_dec(x_2); lean_dec(x_1); -x_825 = lean_ctor_get(x_812, 0); -lean_inc(x_825); -lean_dec(x_812); -if (lean_obj_tag(x_825) == 0) -{ -lean_object* x_826; lean_object* x_827; lean_object* x_828; lean_object* x_829; lean_object* x_830; uint8_t x_831; -x_826 = lean_ctor_get(x_825, 0); +x_826 = lean_ctor_get(x_813, 0); lean_inc(x_826); -x_827 = lean_ctor_get(x_825, 1); +lean_dec(x_813); +if (lean_obj_tag(x_826) == 0) +{ +lean_object* x_827; lean_object* x_828; lean_object* x_829; lean_object* x_830; lean_object* x_831; uint8_t x_832; +x_827 = lean_ctor_get(x_826, 0); lean_inc(x_827); -lean_dec(x_825); -x_828 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_828, 0, x_827); -x_829 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_829, 0, x_828); -x_830 = l_Lean_Elab_Term_throwError___rarg(x_826, x_829, x_3, x_799); +x_828 = lean_ctor_get(x_826, 1); +lean_inc(x_828); lean_dec(x_826); -x_831 = !lean_is_exclusive(x_830); -if (x_831 == 0) +x_829 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_829, 0, x_828); +x_830 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_830, 0, x_829); +x_831 = l_Lean_Elab_Term_throwErrorAt___rarg(x_827, x_830, x_3, x_800); +lean_dec(x_827); +x_832 = !lean_is_exclusive(x_831); +if (x_832 == 0) { -return x_830; +return x_831; } else { -lean_object* x_832; lean_object* x_833; lean_object* x_834; -x_832 = lean_ctor_get(x_830, 0); -x_833 = lean_ctor_get(x_830, 1); +lean_object* x_833; lean_object* x_834; lean_object* x_835; +x_833 = lean_ctor_get(x_831, 0); +x_834 = lean_ctor_get(x_831, 1); +lean_inc(x_834); lean_inc(x_833); -lean_inc(x_832); -lean_dec(x_830); -x_834 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_834, 0, x_832); -lean_ctor_set(x_834, 1, x_833); -return x_834; -} -} -else -{ -lean_object* x_835; uint8_t x_836; -lean_dec(x_3); -x_835 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_799); -x_836 = !lean_is_exclusive(x_835); -if (x_836 == 0) -{ +lean_dec(x_831); +x_835 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_835, 0, x_833); +lean_ctor_set(x_835, 1, x_834); return x_835; } +} else { -lean_object* x_837; lean_object* x_838; lean_object* x_839; -x_837 = lean_ctor_get(x_835, 0); -x_838 = lean_ctor_get(x_835, 1); +lean_object* x_836; uint8_t x_837; +lean_dec(x_3); +x_836 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_800); +x_837 = !lean_is_exclusive(x_836); +if (x_837 == 0) +{ +return x_836; +} +else +{ +lean_object* x_838; lean_object* x_839; lean_object* x_840; +x_838 = lean_ctor_get(x_836, 0); +x_839 = lean_ctor_get(x_836, 1); +lean_inc(x_839); lean_inc(x_838); -lean_inc(x_837); -lean_dec(x_835); -x_839 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_839, 0, x_837); -lean_ctor_set(x_839, 1, x_838); -return x_839; +lean_dec(x_836); +x_840 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_840, 0, x_838); +lean_ctor_set(x_840, 1, x_839); +return x_840; } } } } else { -lean_object* x_840; uint8_t x_841; lean_object* x_991; uint8_t x_992; -x_840 = l_Lean_Syntax_getArg(x_793, x_128); -lean_dec(x_793); -x_991 = l_Lean_mkTermIdFromIdent___closed__2; -lean_inc(x_840); -x_992 = l_Lean_Syntax_isOfKind(x_840, x_991); -if (x_992 == 0) +lean_object* x_841; uint8_t x_842; lean_object* x_992; uint8_t x_993; +x_841 = l_Lean_Syntax_getArg(x_794, x_129); +lean_dec(x_794); +x_992 = l_Lean_mkTermIdFromIdent___closed__2; +lean_inc(x_841); +x_993 = l_Lean_Syntax_isOfKind(x_841, x_992); +if (x_993 == 0) { -uint8_t x_993; -x_993 = 0; -x_841 = x_993; -goto block_990; +uint8_t x_994; +x_994 = 0; +x_842 = x_994; +goto block_991; } else { -lean_object* x_994; lean_object* x_995; uint8_t x_996; -x_994 = l_Lean_Syntax_getArgs(x_840); -x_995 = lean_array_get_size(x_994); -lean_dec(x_994); -x_996 = lean_nat_dec_eq(x_995, x_224); +lean_object* x_995; lean_object* x_996; uint8_t x_997; +x_995 = l_Lean_Syntax_getArgs(x_841); +x_996 = lean_array_get_size(x_995); lean_dec(x_995); -x_841 = x_996; -goto block_990; +x_997 = lean_nat_dec_eq(x_996, x_225); +lean_dec(x_996); +x_842 = x_997; +goto block_991; } -block_990: +block_991: { -if (x_841 == 0) +if (x_842 == 0) { -lean_object* x_842; lean_object* x_843; lean_object* x_844; lean_object* x_845; lean_object* x_846; lean_object* x_847; lean_object* x_848; lean_object* x_849; lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; lean_object* x_854; lean_object* x_855; lean_object* x_856; lean_object* x_857; lean_object* x_858; lean_object* x_859; -lean_dec(x_840); -lean_dec(x_746); -lean_dec(x_319); -lean_dec(x_223); -x_842 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); -x_843 = lean_ctor_get(x_842, 0); -lean_inc(x_843); -x_844 = lean_ctor_get(x_842, 1); +lean_object* x_843; lean_object* x_844; lean_object* x_845; lean_object* x_846; lean_object* x_847; lean_object* x_848; lean_object* x_849; lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; lean_object* x_854; lean_object* x_855; lean_object* x_856; lean_object* x_857; lean_object* x_858; lean_object* x_859; lean_object* x_860; +lean_dec(x_841); +lean_dec(x_747); +lean_dec(x_320); +lean_dec(x_224); +x_843 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); +x_844 = lean_ctor_get(x_843, 0); lean_inc(x_844); -lean_dec(x_842); -x_845 = l_Lean_Elab_Term_getEnv___rarg(x_844); -x_846 = lean_ctor_get(x_845, 1); -lean_inc(x_846); -x_847 = lean_ctor_get(x_845, 0); +x_845 = lean_ctor_get(x_843, 1); +lean_inc(x_845); +lean_dec(x_843); +x_846 = l_Lean_Elab_Term_getEnv___rarg(x_845); +x_847 = lean_ctor_get(x_846, 1); lean_inc(x_847); -lean_dec(x_845); x_848 = lean_ctor_get(x_846, 0); lean_inc(x_848); -x_849 = lean_ctor_get(x_846, 1); -lean_inc(x_849); -x_850 = lean_ctor_get(x_846, 2); -lean_inc(x_850); -x_851 = lean_ctor_get(x_846, 3); -lean_inc(x_851); -x_852 = lean_ctor_get(x_846, 4); -lean_inc(x_852); -x_853 = lean_ctor_get(x_846, 5); -lean_inc(x_853); -x_854 = lean_ctor_get(x_3, 0); -lean_inc(x_854); -x_855 = lean_ctor_get(x_854, 3); -lean_inc(x_855); -x_856 = lean_ctor_get(x_854, 4); -lean_inc(x_856); -lean_dec(x_854); -x_857 = lean_environment_main_module(x_847); -x_858 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_858, 0, x_857); -lean_ctor_set(x_858, 1, x_843); -lean_ctor_set(x_858, 2, x_855); -lean_ctor_set(x_858, 3, x_856); -lean_inc(x_1); -x_859 = l___private_Lean_Elab_Match_31__expandMatchDiscr_x3f(x_1, x_858, x_853); -if (lean_obj_tag(x_859) == 0) -{ -uint8_t x_860; -x_860 = !lean_is_exclusive(x_846); -if (x_860 == 0) -{ -lean_object* x_861; lean_object* x_862; lean_object* x_863; lean_object* x_864; lean_object* x_865; lean_object* x_866; lean_object* x_867; lean_object* x_868; -x_861 = lean_ctor_get(x_846, 5); -lean_dec(x_861); -x_862 = lean_ctor_get(x_846, 4); -lean_dec(x_862); -x_863 = lean_ctor_get(x_846, 3); -lean_dec(x_863); -x_864 = lean_ctor_get(x_846, 2); -lean_dec(x_864); -x_865 = lean_ctor_get(x_846, 1); -lean_dec(x_865); -x_866 = lean_ctor_get(x_846, 0); -lean_dec(x_866); -x_867 = lean_ctor_get(x_859, 0); -lean_inc(x_867); -x_868 = lean_ctor_get(x_859, 1); -lean_inc(x_868); -lean_dec(x_859); -lean_ctor_set(x_846, 5, x_868); -x_5 = x_867; -x_6 = x_846; -goto block_33; -} -else -{ -lean_object* x_869; lean_object* x_870; lean_object* x_871; lean_dec(x_846); -x_869 = lean_ctor_get(x_859, 0); +x_849 = lean_ctor_get(x_847, 0); +lean_inc(x_849); +x_850 = lean_ctor_get(x_847, 1); +lean_inc(x_850); +x_851 = lean_ctor_get(x_847, 2); +lean_inc(x_851); +x_852 = lean_ctor_get(x_847, 3); +lean_inc(x_852); +x_853 = lean_ctor_get(x_847, 4); +lean_inc(x_853); +x_854 = lean_ctor_get(x_847, 5); +lean_inc(x_854); +x_855 = lean_ctor_get(x_3, 0); +lean_inc(x_855); +x_856 = lean_ctor_get(x_855, 3); +lean_inc(x_856); +x_857 = lean_ctor_get(x_855, 4); +lean_inc(x_857); +lean_dec(x_855); +x_858 = lean_environment_main_module(x_848); +x_859 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_859, 0, x_858); +lean_ctor_set(x_859, 1, x_844); +lean_ctor_set(x_859, 2, x_856); +lean_ctor_set(x_859, 3, x_857); +lean_inc(x_1); +x_860 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_859, x_854); +if (lean_obj_tag(x_860) == 0) +{ +uint8_t x_861; +x_861 = !lean_is_exclusive(x_847); +if (x_861 == 0) +{ +lean_object* x_862; lean_object* x_863; lean_object* x_864; lean_object* x_865; lean_object* x_866; lean_object* x_867; lean_object* x_868; lean_object* x_869; +x_862 = lean_ctor_get(x_847, 5); +lean_dec(x_862); +x_863 = lean_ctor_get(x_847, 4); +lean_dec(x_863); +x_864 = lean_ctor_get(x_847, 3); +lean_dec(x_864); +x_865 = lean_ctor_get(x_847, 2); +lean_dec(x_865); +x_866 = lean_ctor_get(x_847, 1); +lean_dec(x_866); +x_867 = lean_ctor_get(x_847, 0); +lean_dec(x_867); +x_868 = lean_ctor_get(x_860, 0); +lean_inc(x_868); +x_869 = lean_ctor_get(x_860, 1); lean_inc(x_869); -x_870 = lean_ctor_get(x_859, 1); +lean_dec(x_860); +lean_ctor_set(x_847, 5, x_869); +x_5 = x_868; +x_6 = x_847; +goto block_34; +} +else +{ +lean_object* x_870; lean_object* x_871; lean_object* x_872; +lean_dec(x_847); +x_870 = lean_ctor_get(x_860, 0); lean_inc(x_870); -lean_dec(x_859); -x_871 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_871, 0, x_848); -lean_ctor_set(x_871, 1, x_849); -lean_ctor_set(x_871, 2, x_850); -lean_ctor_set(x_871, 3, x_851); -lean_ctor_set(x_871, 4, x_852); -lean_ctor_set(x_871, 5, x_870); -x_5 = x_869; -x_6 = x_871; -goto block_33; +x_871 = lean_ctor_get(x_860, 1); +lean_inc(x_871); +lean_dec(x_860); +x_872 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_872, 0, x_849); +lean_ctor_set(x_872, 1, x_850); +lean_ctor_set(x_872, 2, x_851); +lean_ctor_set(x_872, 3, x_852); +lean_ctor_set(x_872, 4, x_853); +lean_ctor_set(x_872, 5, x_871); +x_5 = x_870; +x_6 = x_872; +goto block_34; } } else { -lean_object* x_872; +lean_object* x_873; +lean_dec(x_853); lean_dec(x_852); lean_dec(x_851); lean_dec(x_850); lean_dec(x_849); -lean_dec(x_848); lean_dec(x_2); lean_dec(x_1); -x_872 = lean_ctor_get(x_859, 0); -lean_inc(x_872); -lean_dec(x_859); -if (lean_obj_tag(x_872) == 0) -{ -lean_object* x_873; lean_object* x_874; lean_object* x_875; lean_object* x_876; lean_object* x_877; uint8_t x_878; -x_873 = lean_ctor_get(x_872, 0); +x_873 = lean_ctor_get(x_860, 0); lean_inc(x_873); -x_874 = lean_ctor_get(x_872, 1); +lean_dec(x_860); +if (lean_obj_tag(x_873) == 0) +{ +lean_object* x_874; lean_object* x_875; lean_object* x_876; lean_object* x_877; lean_object* x_878; uint8_t x_879; +x_874 = lean_ctor_get(x_873, 0); lean_inc(x_874); -lean_dec(x_872); -x_875 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_875, 0, x_874); -x_876 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_876, 0, x_875); -x_877 = l_Lean_Elab_Term_throwError___rarg(x_873, x_876, x_3, x_846); +x_875 = lean_ctor_get(x_873, 1); +lean_inc(x_875); lean_dec(x_873); -x_878 = !lean_is_exclusive(x_877); -if (x_878 == 0) +x_876 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_876, 0, x_875); +x_877 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_877, 0, x_876); +x_878 = l_Lean_Elab_Term_throwErrorAt___rarg(x_874, x_877, x_3, x_847); +lean_dec(x_874); +x_879 = !lean_is_exclusive(x_878); +if (x_879 == 0) { -return x_877; +return x_878; } else { -lean_object* x_879; lean_object* x_880; lean_object* x_881; -x_879 = lean_ctor_get(x_877, 0); -x_880 = lean_ctor_get(x_877, 1); +lean_object* x_880; lean_object* x_881; lean_object* x_882; +x_880 = lean_ctor_get(x_878, 0); +x_881 = lean_ctor_get(x_878, 1); +lean_inc(x_881); lean_inc(x_880); -lean_inc(x_879); -lean_dec(x_877); -x_881 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_881, 0, x_879); -lean_ctor_set(x_881, 1, x_880); -return x_881; -} -} -else -{ -lean_object* x_882; uint8_t x_883; -lean_dec(x_3); -x_882 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_846); -x_883 = !lean_is_exclusive(x_882); -if (x_883 == 0) -{ +lean_dec(x_878); +x_882 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_882, 0, x_880); +lean_ctor_set(x_882, 1, x_881); return x_882; } +} else { -lean_object* x_884; lean_object* x_885; lean_object* x_886; -x_884 = lean_ctor_get(x_882, 0); -x_885 = lean_ctor_get(x_882, 1); +lean_object* x_883; uint8_t x_884; +lean_dec(x_3); +x_883 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_847); +x_884 = !lean_is_exclusive(x_883); +if (x_884 == 0) +{ +return x_883; +} +else +{ +lean_object* x_885; lean_object* x_886; lean_object* x_887; +x_885 = lean_ctor_get(x_883, 0); +x_886 = lean_ctor_get(x_883, 1); +lean_inc(x_886); lean_inc(x_885); -lean_inc(x_884); -lean_dec(x_882); -x_886 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_886, 0, x_884); -lean_ctor_set(x_886, 1, x_885); -return x_886; +lean_dec(x_883); +x_887 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_887, 0, x_885); +lean_ctor_set(x_887, 1, x_886); +return x_887; } } } } else { -lean_object* x_887; lean_object* x_888; uint8_t x_889; -x_887 = l_Lean_Syntax_getArg(x_840, x_128); -x_888 = l_Lean_identKind___closed__2; -lean_inc(x_887); -x_889 = l_Lean_Syntax_isOfKind(x_887, x_888); -if (x_889 == 0) +lean_object* x_888; lean_object* x_889; uint8_t x_890; +x_888 = l_Lean_Syntax_getArg(x_841, x_129); +x_889 = l_Lean_identKind___closed__2; +lean_inc(x_888); +x_890 = l_Lean_Syntax_isOfKind(x_888, x_889); +if (x_890 == 0) { -lean_object* x_890; lean_object* x_891; lean_object* x_892; lean_object* x_893; lean_object* x_894; lean_object* x_895; lean_object* x_896; lean_object* x_897; lean_object* x_898; lean_object* x_899; lean_object* x_900; lean_object* x_901; lean_object* x_902; lean_object* x_903; lean_object* x_904; lean_object* x_905; lean_object* x_906; lean_object* x_907; -lean_dec(x_887); -lean_dec(x_840); -lean_dec(x_746); -lean_dec(x_319); -lean_dec(x_223); -x_890 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); -x_891 = lean_ctor_get(x_890, 0); -lean_inc(x_891); -x_892 = lean_ctor_get(x_890, 1); +lean_object* x_891; lean_object* x_892; lean_object* x_893; lean_object* x_894; lean_object* x_895; lean_object* x_896; lean_object* x_897; lean_object* x_898; lean_object* x_899; lean_object* x_900; lean_object* x_901; lean_object* x_902; lean_object* x_903; lean_object* x_904; lean_object* x_905; lean_object* x_906; lean_object* x_907; lean_object* x_908; +lean_dec(x_888); +lean_dec(x_841); +lean_dec(x_747); +lean_dec(x_320); +lean_dec(x_224); +x_891 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); +x_892 = lean_ctor_get(x_891, 0); lean_inc(x_892); -lean_dec(x_890); -x_893 = l_Lean_Elab_Term_getEnv___rarg(x_892); -x_894 = lean_ctor_get(x_893, 1); -lean_inc(x_894); -x_895 = lean_ctor_get(x_893, 0); +x_893 = lean_ctor_get(x_891, 1); +lean_inc(x_893); +lean_dec(x_891); +x_894 = l_Lean_Elab_Term_getEnv___rarg(x_893); +x_895 = lean_ctor_get(x_894, 1); lean_inc(x_895); -lean_dec(x_893); x_896 = lean_ctor_get(x_894, 0); lean_inc(x_896); -x_897 = lean_ctor_get(x_894, 1); -lean_inc(x_897); -x_898 = lean_ctor_get(x_894, 2); -lean_inc(x_898); -x_899 = lean_ctor_get(x_894, 3); -lean_inc(x_899); -x_900 = lean_ctor_get(x_894, 4); -lean_inc(x_900); -x_901 = lean_ctor_get(x_894, 5); -lean_inc(x_901); -x_902 = lean_ctor_get(x_3, 0); -lean_inc(x_902); -x_903 = lean_ctor_get(x_902, 3); -lean_inc(x_903); -x_904 = lean_ctor_get(x_902, 4); -lean_inc(x_904); -lean_dec(x_902); -x_905 = lean_environment_main_module(x_895); -x_906 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_906, 0, x_905); -lean_ctor_set(x_906, 1, x_891); -lean_ctor_set(x_906, 2, x_903); -lean_ctor_set(x_906, 3, x_904); -lean_inc(x_1); -x_907 = l___private_Lean_Elab_Match_31__expandMatchDiscr_x3f(x_1, x_906, x_901); -if (lean_obj_tag(x_907) == 0) -{ -uint8_t x_908; -x_908 = !lean_is_exclusive(x_894); -if (x_908 == 0) -{ -lean_object* x_909; lean_object* x_910; lean_object* x_911; lean_object* x_912; lean_object* x_913; lean_object* x_914; lean_object* x_915; lean_object* x_916; -x_909 = lean_ctor_get(x_894, 5); -lean_dec(x_909); -x_910 = lean_ctor_get(x_894, 4); -lean_dec(x_910); -x_911 = lean_ctor_get(x_894, 3); -lean_dec(x_911); -x_912 = lean_ctor_get(x_894, 2); -lean_dec(x_912); -x_913 = lean_ctor_get(x_894, 1); -lean_dec(x_913); -x_914 = lean_ctor_get(x_894, 0); -lean_dec(x_914); -x_915 = lean_ctor_get(x_907, 0); -lean_inc(x_915); -x_916 = lean_ctor_get(x_907, 1); -lean_inc(x_916); -lean_dec(x_907); -lean_ctor_set(x_894, 5, x_916); -x_5 = x_915; -x_6 = x_894; -goto block_33; -} -else -{ -lean_object* x_917; lean_object* x_918; lean_object* x_919; lean_dec(x_894); -x_917 = lean_ctor_get(x_907, 0); +x_897 = lean_ctor_get(x_895, 0); +lean_inc(x_897); +x_898 = lean_ctor_get(x_895, 1); +lean_inc(x_898); +x_899 = lean_ctor_get(x_895, 2); +lean_inc(x_899); +x_900 = lean_ctor_get(x_895, 3); +lean_inc(x_900); +x_901 = lean_ctor_get(x_895, 4); +lean_inc(x_901); +x_902 = lean_ctor_get(x_895, 5); +lean_inc(x_902); +x_903 = lean_ctor_get(x_3, 0); +lean_inc(x_903); +x_904 = lean_ctor_get(x_903, 3); +lean_inc(x_904); +x_905 = lean_ctor_get(x_903, 4); +lean_inc(x_905); +lean_dec(x_903); +x_906 = lean_environment_main_module(x_896); +x_907 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_907, 0, x_906); +lean_ctor_set(x_907, 1, x_892); +lean_ctor_set(x_907, 2, x_904); +lean_ctor_set(x_907, 3, x_905); +lean_inc(x_1); +x_908 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_907, x_902); +if (lean_obj_tag(x_908) == 0) +{ +uint8_t x_909; +x_909 = !lean_is_exclusive(x_895); +if (x_909 == 0) +{ +lean_object* x_910; lean_object* x_911; lean_object* x_912; lean_object* x_913; lean_object* x_914; lean_object* x_915; lean_object* x_916; lean_object* x_917; +x_910 = lean_ctor_get(x_895, 5); +lean_dec(x_910); +x_911 = lean_ctor_get(x_895, 4); +lean_dec(x_911); +x_912 = lean_ctor_get(x_895, 3); +lean_dec(x_912); +x_913 = lean_ctor_get(x_895, 2); +lean_dec(x_913); +x_914 = lean_ctor_get(x_895, 1); +lean_dec(x_914); +x_915 = lean_ctor_get(x_895, 0); +lean_dec(x_915); +x_916 = lean_ctor_get(x_908, 0); +lean_inc(x_916); +x_917 = lean_ctor_get(x_908, 1); lean_inc(x_917); -x_918 = lean_ctor_get(x_907, 1); +lean_dec(x_908); +lean_ctor_set(x_895, 5, x_917); +x_5 = x_916; +x_6 = x_895; +goto block_34; +} +else +{ +lean_object* x_918; lean_object* x_919; lean_object* x_920; +lean_dec(x_895); +x_918 = lean_ctor_get(x_908, 0); lean_inc(x_918); -lean_dec(x_907); -x_919 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_919, 0, x_896); -lean_ctor_set(x_919, 1, x_897); -lean_ctor_set(x_919, 2, x_898); -lean_ctor_set(x_919, 3, x_899); -lean_ctor_set(x_919, 4, x_900); -lean_ctor_set(x_919, 5, x_918); -x_5 = x_917; -x_6 = x_919; -goto block_33; +x_919 = lean_ctor_get(x_908, 1); +lean_inc(x_919); +lean_dec(x_908); +x_920 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_920, 0, x_897); +lean_ctor_set(x_920, 1, x_898); +lean_ctor_set(x_920, 2, x_899); +lean_ctor_set(x_920, 3, x_900); +lean_ctor_set(x_920, 4, x_901); +lean_ctor_set(x_920, 5, x_919); +x_5 = x_918; +x_6 = x_920; +goto block_34; } } else { -lean_object* x_920; +lean_object* x_921; +lean_dec(x_901); lean_dec(x_900); lean_dec(x_899); lean_dec(x_898); lean_dec(x_897); -lean_dec(x_896); lean_dec(x_2); lean_dec(x_1); -x_920 = lean_ctor_get(x_907, 0); -lean_inc(x_920); -lean_dec(x_907); -if (lean_obj_tag(x_920) == 0) -{ -lean_object* x_921; lean_object* x_922; lean_object* x_923; lean_object* x_924; lean_object* x_925; uint8_t x_926; -x_921 = lean_ctor_get(x_920, 0); +x_921 = lean_ctor_get(x_908, 0); lean_inc(x_921); -x_922 = lean_ctor_get(x_920, 1); +lean_dec(x_908); +if (lean_obj_tag(x_921) == 0) +{ +lean_object* x_922; lean_object* x_923; lean_object* x_924; lean_object* x_925; lean_object* x_926; uint8_t x_927; +x_922 = lean_ctor_get(x_921, 0); lean_inc(x_922); -lean_dec(x_920); -x_923 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_923, 0, x_922); -x_924 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_924, 0, x_923); -x_925 = l_Lean_Elab_Term_throwError___rarg(x_921, x_924, x_3, x_894); +x_923 = lean_ctor_get(x_921, 1); +lean_inc(x_923); lean_dec(x_921); -x_926 = !lean_is_exclusive(x_925); -if (x_926 == 0) +x_924 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_924, 0, x_923); +x_925 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_925, 0, x_924); +x_926 = l_Lean_Elab_Term_throwErrorAt___rarg(x_922, x_925, x_3, x_895); +lean_dec(x_922); +x_927 = !lean_is_exclusive(x_926); +if (x_927 == 0) { -return x_925; +return x_926; } else { -lean_object* x_927; lean_object* x_928; lean_object* x_929; -x_927 = lean_ctor_get(x_925, 0); -x_928 = lean_ctor_get(x_925, 1); +lean_object* x_928; lean_object* x_929; lean_object* x_930; +x_928 = lean_ctor_get(x_926, 0); +x_929 = lean_ctor_get(x_926, 1); +lean_inc(x_929); lean_inc(x_928); -lean_inc(x_927); -lean_dec(x_925); -x_929 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_929, 0, x_927); -lean_ctor_set(x_929, 1, x_928); -return x_929; -} -} -else -{ -lean_object* x_930; uint8_t x_931; -lean_dec(x_3); -x_930 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_894); -x_931 = !lean_is_exclusive(x_930); -if (x_931 == 0) -{ +lean_dec(x_926); +x_930 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_930, 0, x_928); +lean_ctor_set(x_930, 1, x_929); return x_930; } +} else { -lean_object* x_932; lean_object* x_933; lean_object* x_934; -x_932 = lean_ctor_get(x_930, 0); -x_933 = lean_ctor_get(x_930, 1); +lean_object* x_931; uint8_t x_932; +lean_dec(x_3); +x_931 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_895); +x_932 = !lean_is_exclusive(x_931); +if (x_932 == 0) +{ +return x_931; +} +else +{ +lean_object* x_933; lean_object* x_934; lean_object* x_935; +x_933 = lean_ctor_get(x_931, 0); +x_934 = lean_ctor_get(x_931, 1); +lean_inc(x_934); lean_inc(x_933); -lean_inc(x_932); -lean_dec(x_930); -x_934 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_934, 0, x_932); -lean_ctor_set(x_934, 1, x_933); -return x_934; +lean_dec(x_931); +x_935 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_935, 0, x_933); +lean_ctor_set(x_935, 1, x_934); +return x_935; } } } } else { -lean_object* x_935; uint8_t x_936; uint8_t x_985; -x_935 = l_Lean_Syntax_getArg(x_840, x_80); -lean_dec(x_840); -lean_inc(x_935); -x_985 = l_Lean_Syntax_isOfKind(x_935, x_691); -if (x_985 == 0) +lean_object* x_936; uint8_t x_937; uint8_t x_986; +x_936 = l_Lean_Syntax_getArg(x_841, x_81); +lean_dec(x_841); +lean_inc(x_936); +x_986 = l_Lean_Syntax_isOfKind(x_936, x_692); +if (x_986 == 0) { -uint8_t x_986; -lean_dec(x_935); -x_986 = 0; -x_936 = x_986; -goto block_984; +uint8_t x_987; +lean_dec(x_936); +x_987 = 0; +x_937 = x_987; +goto block_985; } else { -lean_object* x_987; lean_object* x_988; uint8_t x_989; -x_987 = l_Lean_Syntax_getArgs(x_935); -lean_dec(x_935); -x_988 = lean_array_get_size(x_987); -lean_dec(x_987); -x_989 = lean_nat_dec_eq(x_988, x_128); +lean_object* x_988; lean_object* x_989; uint8_t x_990; +x_988 = l_Lean_Syntax_getArgs(x_936); +lean_dec(x_936); +x_989 = lean_array_get_size(x_988); lean_dec(x_988); -x_936 = x_989; -goto block_984; +x_990 = lean_nat_dec_eq(x_989, x_129); +lean_dec(x_989); +x_937 = x_990; +goto block_985; } -block_984: +block_985: { -if (x_936 == 0) +if (x_937 == 0) { -lean_object* x_937; lean_object* x_938; lean_object* x_939; lean_object* x_940; lean_object* x_941; lean_object* x_942; lean_object* x_943; lean_object* x_944; lean_object* x_945; lean_object* x_946; lean_object* x_947; lean_object* x_948; lean_object* x_949; lean_object* x_950; lean_object* x_951; lean_object* x_952; lean_object* x_953; lean_object* x_954; -lean_dec(x_887); -lean_dec(x_746); -lean_dec(x_319); -lean_dec(x_223); -x_937 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); -x_938 = lean_ctor_get(x_937, 0); -lean_inc(x_938); -x_939 = lean_ctor_get(x_937, 1); +lean_object* x_938; lean_object* x_939; lean_object* x_940; lean_object* x_941; lean_object* x_942; lean_object* x_943; lean_object* x_944; lean_object* x_945; lean_object* x_946; lean_object* x_947; lean_object* x_948; lean_object* x_949; lean_object* x_950; lean_object* x_951; lean_object* x_952; lean_object* x_953; lean_object* x_954; lean_object* x_955; +lean_dec(x_888); +lean_dec(x_747); +lean_dec(x_320); +lean_dec(x_224); +x_938 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); +x_939 = lean_ctor_get(x_938, 0); lean_inc(x_939); -lean_dec(x_937); -x_940 = l_Lean_Elab_Term_getEnv___rarg(x_939); -x_941 = lean_ctor_get(x_940, 1); -lean_inc(x_941); -x_942 = lean_ctor_get(x_940, 0); +x_940 = lean_ctor_get(x_938, 1); +lean_inc(x_940); +lean_dec(x_938); +x_941 = l_Lean_Elab_Term_getEnv___rarg(x_940); +x_942 = lean_ctor_get(x_941, 1); lean_inc(x_942); -lean_dec(x_940); x_943 = lean_ctor_get(x_941, 0); lean_inc(x_943); -x_944 = lean_ctor_get(x_941, 1); -lean_inc(x_944); -x_945 = lean_ctor_get(x_941, 2); -lean_inc(x_945); -x_946 = lean_ctor_get(x_941, 3); -lean_inc(x_946); -x_947 = lean_ctor_get(x_941, 4); -lean_inc(x_947); -x_948 = lean_ctor_get(x_941, 5); -lean_inc(x_948); -x_949 = lean_ctor_get(x_3, 0); -lean_inc(x_949); -x_950 = lean_ctor_get(x_949, 3); -lean_inc(x_950); -x_951 = lean_ctor_get(x_949, 4); -lean_inc(x_951); -lean_dec(x_949); -x_952 = lean_environment_main_module(x_942); -x_953 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_953, 0, x_952); -lean_ctor_set(x_953, 1, x_938); -lean_ctor_set(x_953, 2, x_950); -lean_ctor_set(x_953, 3, x_951); -lean_inc(x_1); -x_954 = l___private_Lean_Elab_Match_31__expandMatchDiscr_x3f(x_1, x_953, x_948); -if (lean_obj_tag(x_954) == 0) -{ -uint8_t x_955; -x_955 = !lean_is_exclusive(x_941); -if (x_955 == 0) -{ -lean_object* x_956; lean_object* x_957; lean_object* x_958; lean_object* x_959; lean_object* x_960; lean_object* x_961; lean_object* x_962; lean_object* x_963; -x_956 = lean_ctor_get(x_941, 5); -lean_dec(x_956); -x_957 = lean_ctor_get(x_941, 4); -lean_dec(x_957); -x_958 = lean_ctor_get(x_941, 3); -lean_dec(x_958); -x_959 = lean_ctor_get(x_941, 2); -lean_dec(x_959); -x_960 = lean_ctor_get(x_941, 1); -lean_dec(x_960); -x_961 = lean_ctor_get(x_941, 0); -lean_dec(x_961); -x_962 = lean_ctor_get(x_954, 0); -lean_inc(x_962); -x_963 = lean_ctor_get(x_954, 1); -lean_inc(x_963); -lean_dec(x_954); -lean_ctor_set(x_941, 5, x_963); -x_5 = x_962; -x_6 = x_941; -goto block_33; -} -else -{ -lean_object* x_964; lean_object* x_965; lean_object* x_966; lean_dec(x_941); -x_964 = lean_ctor_get(x_954, 0); +x_944 = lean_ctor_get(x_942, 0); +lean_inc(x_944); +x_945 = lean_ctor_get(x_942, 1); +lean_inc(x_945); +x_946 = lean_ctor_get(x_942, 2); +lean_inc(x_946); +x_947 = lean_ctor_get(x_942, 3); +lean_inc(x_947); +x_948 = lean_ctor_get(x_942, 4); +lean_inc(x_948); +x_949 = lean_ctor_get(x_942, 5); +lean_inc(x_949); +x_950 = lean_ctor_get(x_3, 0); +lean_inc(x_950); +x_951 = lean_ctor_get(x_950, 3); +lean_inc(x_951); +x_952 = lean_ctor_get(x_950, 4); +lean_inc(x_952); +lean_dec(x_950); +x_953 = lean_environment_main_module(x_943); +x_954 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_954, 0, x_953); +lean_ctor_set(x_954, 1, x_939); +lean_ctor_set(x_954, 2, x_951); +lean_ctor_set(x_954, 3, x_952); +lean_inc(x_1); +x_955 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_954, x_949); +if (lean_obj_tag(x_955) == 0) +{ +uint8_t x_956; +x_956 = !lean_is_exclusive(x_942); +if (x_956 == 0) +{ +lean_object* x_957; lean_object* x_958; lean_object* x_959; lean_object* x_960; lean_object* x_961; lean_object* x_962; lean_object* x_963; lean_object* x_964; +x_957 = lean_ctor_get(x_942, 5); +lean_dec(x_957); +x_958 = lean_ctor_get(x_942, 4); +lean_dec(x_958); +x_959 = lean_ctor_get(x_942, 3); +lean_dec(x_959); +x_960 = lean_ctor_get(x_942, 2); +lean_dec(x_960); +x_961 = lean_ctor_get(x_942, 1); +lean_dec(x_961); +x_962 = lean_ctor_get(x_942, 0); +lean_dec(x_962); +x_963 = lean_ctor_get(x_955, 0); +lean_inc(x_963); +x_964 = lean_ctor_get(x_955, 1); lean_inc(x_964); -x_965 = lean_ctor_get(x_954, 1); +lean_dec(x_955); +lean_ctor_set(x_942, 5, x_964); +x_5 = x_963; +x_6 = x_942; +goto block_34; +} +else +{ +lean_object* x_965; lean_object* x_966; lean_object* x_967; +lean_dec(x_942); +x_965 = lean_ctor_get(x_955, 0); lean_inc(x_965); -lean_dec(x_954); -x_966 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_966, 0, x_943); -lean_ctor_set(x_966, 1, x_944); -lean_ctor_set(x_966, 2, x_945); -lean_ctor_set(x_966, 3, x_946); -lean_ctor_set(x_966, 4, x_947); -lean_ctor_set(x_966, 5, x_965); -x_5 = x_964; -x_6 = x_966; -goto block_33; +x_966 = lean_ctor_get(x_955, 1); +lean_inc(x_966); +lean_dec(x_955); +x_967 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_967, 0, x_944); +lean_ctor_set(x_967, 1, x_945); +lean_ctor_set(x_967, 2, x_946); +lean_ctor_set(x_967, 3, x_947); +lean_ctor_set(x_967, 4, x_948); +lean_ctor_set(x_967, 5, x_966); +x_5 = x_965; +x_6 = x_967; +goto block_34; } } else { -lean_object* x_967; +lean_object* x_968; +lean_dec(x_948); lean_dec(x_947); lean_dec(x_946); lean_dec(x_945); lean_dec(x_944); -lean_dec(x_943); lean_dec(x_2); lean_dec(x_1); -x_967 = lean_ctor_get(x_954, 0); -lean_inc(x_967); -lean_dec(x_954); -if (lean_obj_tag(x_967) == 0) -{ -lean_object* x_968; lean_object* x_969; lean_object* x_970; lean_object* x_971; lean_object* x_972; uint8_t x_973; -x_968 = lean_ctor_get(x_967, 0); +x_968 = lean_ctor_get(x_955, 0); lean_inc(x_968); -x_969 = lean_ctor_get(x_967, 1); +lean_dec(x_955); +if (lean_obj_tag(x_968) == 0) +{ +lean_object* x_969; lean_object* x_970; lean_object* x_971; lean_object* x_972; lean_object* x_973; uint8_t x_974; +x_969 = lean_ctor_get(x_968, 0); lean_inc(x_969); -lean_dec(x_967); -x_970 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_970, 0, x_969); -x_971 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_971, 0, x_970); -x_972 = l_Lean_Elab_Term_throwError___rarg(x_968, x_971, x_3, x_941); +x_970 = lean_ctor_get(x_968, 1); +lean_inc(x_970); lean_dec(x_968); -x_973 = !lean_is_exclusive(x_972); -if (x_973 == 0) +x_971 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_971, 0, x_970); +x_972 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_972, 0, x_971); +x_973 = l_Lean_Elab_Term_throwErrorAt___rarg(x_969, x_972, x_3, x_942); +lean_dec(x_969); +x_974 = !lean_is_exclusive(x_973); +if (x_974 == 0) { -return x_972; +return x_973; } else { -lean_object* x_974; lean_object* x_975; lean_object* x_976; -x_974 = lean_ctor_get(x_972, 0); -x_975 = lean_ctor_get(x_972, 1); +lean_object* x_975; lean_object* x_976; lean_object* x_977; +x_975 = lean_ctor_get(x_973, 0); +x_976 = lean_ctor_get(x_973, 1); +lean_inc(x_976); lean_inc(x_975); -lean_inc(x_974); -lean_dec(x_972); -x_976 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_976, 0, x_974); -lean_ctor_set(x_976, 1, x_975); -return x_976; -} -} -else -{ -lean_object* x_977; uint8_t x_978; -lean_dec(x_3); -x_977 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_941); -x_978 = !lean_is_exclusive(x_977); -if (x_978 == 0) -{ +lean_dec(x_973); +x_977 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_977, 0, x_975); +lean_ctor_set(x_977, 1, x_976); return x_977; } +} else { -lean_object* x_979; lean_object* x_980; lean_object* x_981; -x_979 = lean_ctor_get(x_977, 0); -x_980 = lean_ctor_get(x_977, 1); +lean_object* x_978; uint8_t x_979; +lean_dec(x_3); +x_978 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_942); +x_979 = !lean_is_exclusive(x_978); +if (x_979 == 0) +{ +return x_978; +} +else +{ +lean_object* x_980; lean_object* x_981; lean_object* x_982; +x_980 = lean_ctor_get(x_978, 0); +x_981 = lean_ctor_get(x_978, 1); +lean_inc(x_981); lean_inc(x_980); -lean_inc(x_979); -lean_dec(x_977); -x_981 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_981, 0, x_979); -lean_ctor_set(x_981, 1, x_980); -return x_981; +lean_dec(x_978); +x_982 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_982, 0, x_980); +lean_ctor_set(x_982, 1, x_981); +return x_982; } } } } else { -lean_object* x_982; lean_object* x_983; -x_982 = l_Lean_Syntax_getArg(x_746, x_224); -lean_dec(x_746); -x_983 = l___private_Lean_Elab_Match_2__expandSimpleMatchWithType(x_1, x_223, x_887, x_319, x_982, x_2, x_3, x_4); -return x_983; +lean_object* x_983; lean_object* x_984; +x_983 = l_Lean_Syntax_getArg(x_747, x_225); +lean_dec(x_747); +x_984 = l___private_Lean_Elab_Match_2__expandSimpleMatchWithType(x_1, x_224, x_888, x_320, x_983, x_2, x_3, x_4); +return x_984; } } } @@ -23374,1376 +23884,1376 @@ return x_983; } } } -block_1735: +block_1736: +{ +if (x_1033 == 0) { if (x_1032 == 0) { -if (x_1031 == 0) -{ -uint8_t x_1033; -x_1033 = 0; -x_226 = x_1033; -goto block_1029; +uint8_t x_1034; +x_1034 = 0; +x_227 = x_1034; +goto block_1030; } else { -lean_object* x_1034; lean_object* x_1035; uint8_t x_1036; -x_1034 = l_Lean_Syntax_getArgs(x_225); -x_1035 = lean_array_get_size(x_1034); -lean_dec(x_1034); -x_1036 = lean_nat_dec_eq(x_1035, x_80); +lean_object* x_1035; lean_object* x_1036; uint8_t x_1037; +x_1035 = l_Lean_Syntax_getArgs(x_226); +x_1036 = lean_array_get_size(x_1035); lean_dec(x_1035); -x_226 = x_1036; -goto block_1029; +x_1037 = lean_nat_dec_eq(x_1036, x_81); +lean_dec(x_1036); +x_227 = x_1037; +goto block_1030; } } else { -lean_object* x_1037; lean_object* x_1038; uint8_t x_1039; uint8_t x_1405; uint8_t x_1406; -lean_dec(x_225); -x_1037 = lean_unsigned_to_nat(4u); -x_1038 = l_Lean_Syntax_getArg(x_1, x_1037); -lean_inc(x_1038); -x_1405 = l_Lean_Syntax_isOfKind(x_1038, x_1030); -if (x_1405 == 0) +lean_object* x_1038; lean_object* x_1039; uint8_t x_1040; uint8_t x_1406; uint8_t x_1407; +lean_dec(x_226); +x_1038 = lean_unsigned_to_nat(4u); +x_1039 = l_Lean_Syntax_getArg(x_1, x_1038); +lean_inc(x_1039); +x_1406 = l_Lean_Syntax_isOfKind(x_1039, x_1031); +if (x_1406 == 0) { -uint8_t x_1731; -x_1731 = 0; -x_1406 = x_1731; -goto block_1730; +uint8_t x_1732; +x_1732 = 0; +x_1407 = x_1732; +goto block_1731; } else { -lean_object* x_1732; lean_object* x_1733; uint8_t x_1734; -x_1732 = l_Lean_Syntax_getArgs(x_1038); -x_1733 = lean_array_get_size(x_1732); -lean_dec(x_1732); -x_1734 = lean_nat_dec_eq(x_1733, x_128); +lean_object* x_1733; lean_object* x_1734; uint8_t x_1735; +x_1733 = l_Lean_Syntax_getArgs(x_1039); +x_1734 = lean_array_get_size(x_1733); lean_dec(x_1733); -x_1406 = x_1734; -goto block_1730; +x_1735 = lean_nat_dec_eq(x_1734, x_129); +lean_dec(x_1734); +x_1407 = x_1735; +goto block_1731; } -block_1404: +block_1405: { -if (x_1039 == 0) +if (x_1040 == 0) { -lean_object* x_1040; lean_object* x_1041; lean_object* x_1042; lean_object* x_1043; lean_object* x_1044; lean_object* x_1045; lean_object* x_1046; lean_object* x_1047; lean_object* x_1048; lean_object* x_1049; lean_object* x_1050; lean_object* x_1051; lean_object* x_1052; lean_object* x_1053; lean_object* x_1054; lean_object* x_1055; lean_object* x_1056; lean_object* x_1057; -lean_dec(x_223); -x_1040 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); -x_1041 = lean_ctor_get(x_1040, 0); -lean_inc(x_1041); -x_1042 = lean_ctor_get(x_1040, 1); +lean_object* x_1041; lean_object* x_1042; lean_object* x_1043; lean_object* x_1044; lean_object* x_1045; lean_object* x_1046; lean_object* x_1047; lean_object* x_1048; lean_object* x_1049; lean_object* x_1050; lean_object* x_1051; lean_object* x_1052; lean_object* x_1053; lean_object* x_1054; lean_object* x_1055; lean_object* x_1056; lean_object* x_1057; lean_object* x_1058; +lean_dec(x_224); +x_1041 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); +x_1042 = lean_ctor_get(x_1041, 0); lean_inc(x_1042); -lean_dec(x_1040); -x_1043 = l_Lean_Elab_Term_getEnv___rarg(x_1042); -x_1044 = lean_ctor_get(x_1043, 1); -lean_inc(x_1044); -x_1045 = lean_ctor_get(x_1043, 0); +x_1043 = lean_ctor_get(x_1041, 1); +lean_inc(x_1043); +lean_dec(x_1041); +x_1044 = l_Lean_Elab_Term_getEnv___rarg(x_1043); +x_1045 = lean_ctor_get(x_1044, 1); lean_inc(x_1045); -lean_dec(x_1043); x_1046 = lean_ctor_get(x_1044, 0); lean_inc(x_1046); -x_1047 = lean_ctor_get(x_1044, 1); -lean_inc(x_1047); -x_1048 = lean_ctor_get(x_1044, 2); -lean_inc(x_1048); -x_1049 = lean_ctor_get(x_1044, 3); -lean_inc(x_1049); -x_1050 = lean_ctor_get(x_1044, 4); -lean_inc(x_1050); -x_1051 = lean_ctor_get(x_1044, 5); -lean_inc(x_1051); -x_1052 = lean_ctor_get(x_3, 0); -lean_inc(x_1052); -x_1053 = lean_ctor_get(x_1052, 3); -lean_inc(x_1053); -x_1054 = lean_ctor_get(x_1052, 4); -lean_inc(x_1054); -lean_dec(x_1052); -x_1055 = lean_environment_main_module(x_1045); -x_1056 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_1056, 0, x_1055); -lean_ctor_set(x_1056, 1, x_1041); -lean_ctor_set(x_1056, 2, x_1053); -lean_ctor_set(x_1056, 3, x_1054); -lean_inc(x_1); -x_1057 = l___private_Lean_Elab_Match_31__expandMatchDiscr_x3f(x_1, x_1056, x_1051); -if (lean_obj_tag(x_1057) == 0) -{ -uint8_t x_1058; -x_1058 = !lean_is_exclusive(x_1044); -if (x_1058 == 0) -{ -lean_object* x_1059; lean_object* x_1060; lean_object* x_1061; lean_object* x_1062; lean_object* x_1063; lean_object* x_1064; lean_object* x_1065; lean_object* x_1066; -x_1059 = lean_ctor_get(x_1044, 5); -lean_dec(x_1059); -x_1060 = lean_ctor_get(x_1044, 4); -lean_dec(x_1060); -x_1061 = lean_ctor_get(x_1044, 3); -lean_dec(x_1061); -x_1062 = lean_ctor_get(x_1044, 2); -lean_dec(x_1062); -x_1063 = lean_ctor_get(x_1044, 1); -lean_dec(x_1063); -x_1064 = lean_ctor_get(x_1044, 0); -lean_dec(x_1064); -x_1065 = lean_ctor_get(x_1057, 0); -lean_inc(x_1065); -x_1066 = lean_ctor_get(x_1057, 1); -lean_inc(x_1066); -lean_dec(x_1057); -lean_ctor_set(x_1044, 5, x_1066); -x_5 = x_1065; -x_6 = x_1044; -goto block_33; -} -else -{ -lean_object* x_1067; lean_object* x_1068; lean_object* x_1069; lean_dec(x_1044); -x_1067 = lean_ctor_get(x_1057, 0); +x_1047 = lean_ctor_get(x_1045, 0); +lean_inc(x_1047); +x_1048 = lean_ctor_get(x_1045, 1); +lean_inc(x_1048); +x_1049 = lean_ctor_get(x_1045, 2); +lean_inc(x_1049); +x_1050 = lean_ctor_get(x_1045, 3); +lean_inc(x_1050); +x_1051 = lean_ctor_get(x_1045, 4); +lean_inc(x_1051); +x_1052 = lean_ctor_get(x_1045, 5); +lean_inc(x_1052); +x_1053 = lean_ctor_get(x_3, 0); +lean_inc(x_1053); +x_1054 = lean_ctor_get(x_1053, 3); +lean_inc(x_1054); +x_1055 = lean_ctor_get(x_1053, 4); +lean_inc(x_1055); +lean_dec(x_1053); +x_1056 = lean_environment_main_module(x_1046); +x_1057 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_1057, 0, x_1056); +lean_ctor_set(x_1057, 1, x_1042); +lean_ctor_set(x_1057, 2, x_1054); +lean_ctor_set(x_1057, 3, x_1055); +lean_inc(x_1); +x_1058 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_1057, x_1052); +if (lean_obj_tag(x_1058) == 0) +{ +uint8_t x_1059; +x_1059 = !lean_is_exclusive(x_1045); +if (x_1059 == 0) +{ +lean_object* x_1060; lean_object* x_1061; lean_object* x_1062; lean_object* x_1063; lean_object* x_1064; lean_object* x_1065; lean_object* x_1066; lean_object* x_1067; +x_1060 = lean_ctor_get(x_1045, 5); +lean_dec(x_1060); +x_1061 = lean_ctor_get(x_1045, 4); +lean_dec(x_1061); +x_1062 = lean_ctor_get(x_1045, 3); +lean_dec(x_1062); +x_1063 = lean_ctor_get(x_1045, 2); +lean_dec(x_1063); +x_1064 = lean_ctor_get(x_1045, 1); +lean_dec(x_1064); +x_1065 = lean_ctor_get(x_1045, 0); +lean_dec(x_1065); +x_1066 = lean_ctor_get(x_1058, 0); +lean_inc(x_1066); +x_1067 = lean_ctor_get(x_1058, 1); lean_inc(x_1067); -x_1068 = lean_ctor_get(x_1057, 1); +lean_dec(x_1058); +lean_ctor_set(x_1045, 5, x_1067); +x_5 = x_1066; +x_6 = x_1045; +goto block_34; +} +else +{ +lean_object* x_1068; lean_object* x_1069; lean_object* x_1070; +lean_dec(x_1045); +x_1068 = lean_ctor_get(x_1058, 0); lean_inc(x_1068); -lean_dec(x_1057); -x_1069 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_1069, 0, x_1046); -lean_ctor_set(x_1069, 1, x_1047); -lean_ctor_set(x_1069, 2, x_1048); -lean_ctor_set(x_1069, 3, x_1049); -lean_ctor_set(x_1069, 4, x_1050); -lean_ctor_set(x_1069, 5, x_1068); -x_5 = x_1067; -x_6 = x_1069; -goto block_33; +x_1069 = lean_ctor_get(x_1058, 1); +lean_inc(x_1069); +lean_dec(x_1058); +x_1070 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_1070, 0, x_1047); +lean_ctor_set(x_1070, 1, x_1048); +lean_ctor_set(x_1070, 2, x_1049); +lean_ctor_set(x_1070, 3, x_1050); +lean_ctor_set(x_1070, 4, x_1051); +lean_ctor_set(x_1070, 5, x_1069); +x_5 = x_1068; +x_6 = x_1070; +goto block_34; } } else { -lean_object* x_1070; +lean_object* x_1071; +lean_dec(x_1051); lean_dec(x_1050); lean_dec(x_1049); lean_dec(x_1048); lean_dec(x_1047); -lean_dec(x_1046); lean_dec(x_2); lean_dec(x_1); -x_1070 = lean_ctor_get(x_1057, 0); -lean_inc(x_1070); -lean_dec(x_1057); -if (lean_obj_tag(x_1070) == 0) -{ -lean_object* x_1071; lean_object* x_1072; lean_object* x_1073; lean_object* x_1074; lean_object* x_1075; uint8_t x_1076; -x_1071 = lean_ctor_get(x_1070, 0); +x_1071 = lean_ctor_get(x_1058, 0); lean_inc(x_1071); -x_1072 = lean_ctor_get(x_1070, 1); +lean_dec(x_1058); +if (lean_obj_tag(x_1071) == 0) +{ +lean_object* x_1072; lean_object* x_1073; lean_object* x_1074; lean_object* x_1075; lean_object* x_1076; uint8_t x_1077; +x_1072 = lean_ctor_get(x_1071, 0); lean_inc(x_1072); -lean_dec(x_1070); -x_1073 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1073, 0, x_1072); -x_1074 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1074, 0, x_1073); -x_1075 = l_Lean_Elab_Term_throwError___rarg(x_1071, x_1074, x_3, x_1044); +x_1073 = lean_ctor_get(x_1071, 1); +lean_inc(x_1073); lean_dec(x_1071); -x_1076 = !lean_is_exclusive(x_1075); -if (x_1076 == 0) +x_1074 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1074, 0, x_1073); +x_1075 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1075, 0, x_1074); +x_1076 = l_Lean_Elab_Term_throwErrorAt___rarg(x_1072, x_1075, x_3, x_1045); +lean_dec(x_1072); +x_1077 = !lean_is_exclusive(x_1076); +if (x_1077 == 0) { -return x_1075; +return x_1076; } else { -lean_object* x_1077; lean_object* x_1078; lean_object* x_1079; -x_1077 = lean_ctor_get(x_1075, 0); -x_1078 = lean_ctor_get(x_1075, 1); +lean_object* x_1078; lean_object* x_1079; lean_object* x_1080; +x_1078 = lean_ctor_get(x_1076, 0); +x_1079 = lean_ctor_get(x_1076, 1); +lean_inc(x_1079); lean_inc(x_1078); -lean_inc(x_1077); -lean_dec(x_1075); -x_1079 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1079, 0, x_1077); -lean_ctor_set(x_1079, 1, x_1078); -return x_1079; -} -} -else -{ -lean_object* x_1080; uint8_t x_1081; -lean_dec(x_3); -x_1080 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_1044); -x_1081 = !lean_is_exclusive(x_1080); -if (x_1081 == 0) -{ +lean_dec(x_1076); +x_1080 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1080, 0, x_1078); +lean_ctor_set(x_1080, 1, x_1079); return x_1080; } +} else { -lean_object* x_1082; lean_object* x_1083; lean_object* x_1084; -x_1082 = lean_ctor_get(x_1080, 0); -x_1083 = lean_ctor_get(x_1080, 1); +lean_object* x_1081; uint8_t x_1082; +lean_dec(x_3); +x_1081 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_1045); +x_1082 = !lean_is_exclusive(x_1081); +if (x_1082 == 0) +{ +return x_1081; +} +else +{ +lean_object* x_1083; lean_object* x_1084; lean_object* x_1085; +x_1083 = lean_ctor_get(x_1081, 0); +x_1084 = lean_ctor_get(x_1081, 1); +lean_inc(x_1084); lean_inc(x_1083); -lean_inc(x_1082); -lean_dec(x_1080); -x_1084 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1084, 0, x_1082); -lean_ctor_set(x_1084, 1, x_1083); -return x_1084; +lean_dec(x_1081); +x_1085 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1085, 0, x_1083); +lean_ctor_set(x_1085, 1, x_1084); +return x_1085; } } } } else { -lean_object* x_1085; lean_object* x_1086; uint8_t x_1087; uint8_t x_1399; -x_1085 = lean_unsigned_to_nat(5u); -x_1086 = l_Lean_Syntax_getArg(x_1, x_1085); -lean_inc(x_1086); -x_1399 = l_Lean_Syntax_isOfKind(x_1086, x_1030); -if (x_1399 == 0) +lean_object* x_1086; lean_object* x_1087; uint8_t x_1088; uint8_t x_1400; +x_1086 = lean_unsigned_to_nat(5u); +x_1087 = l_Lean_Syntax_getArg(x_1, x_1086); +lean_inc(x_1087); +x_1400 = l_Lean_Syntax_isOfKind(x_1087, x_1031); +if (x_1400 == 0) { -uint8_t x_1400; -x_1400 = 0; -x_1087 = x_1400; -goto block_1398; +uint8_t x_1401; +x_1401 = 0; +x_1088 = x_1401; +goto block_1399; } else { -lean_object* x_1401; lean_object* x_1402; uint8_t x_1403; -x_1401 = l_Lean_Syntax_getArgs(x_1086); -x_1402 = lean_array_get_size(x_1401); -lean_dec(x_1401); -x_1403 = lean_nat_dec_eq(x_1402, x_80); +lean_object* x_1402; lean_object* x_1403; uint8_t x_1404; +x_1402 = l_Lean_Syntax_getArgs(x_1087); +x_1403 = lean_array_get_size(x_1402); lean_dec(x_1402); -x_1087 = x_1403; -goto block_1398; +x_1404 = lean_nat_dec_eq(x_1403, x_81); +lean_dec(x_1403); +x_1088 = x_1404; +goto block_1399; } -block_1398: +block_1399: { -if (x_1087 == 0) +if (x_1088 == 0) { -lean_object* x_1088; lean_object* x_1089; lean_object* x_1090; lean_object* x_1091; lean_object* x_1092; lean_object* x_1093; lean_object* x_1094; lean_object* x_1095; lean_object* x_1096; lean_object* x_1097; lean_object* x_1098; lean_object* x_1099; lean_object* x_1100; lean_object* x_1101; lean_object* x_1102; lean_object* x_1103; lean_object* x_1104; lean_object* x_1105; -lean_dec(x_1086); -lean_dec(x_223); -x_1088 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); -x_1089 = lean_ctor_get(x_1088, 0); -lean_inc(x_1089); -x_1090 = lean_ctor_get(x_1088, 1); +lean_object* x_1089; lean_object* x_1090; lean_object* x_1091; lean_object* x_1092; lean_object* x_1093; lean_object* x_1094; lean_object* x_1095; lean_object* x_1096; lean_object* x_1097; lean_object* x_1098; lean_object* x_1099; lean_object* x_1100; lean_object* x_1101; lean_object* x_1102; lean_object* x_1103; lean_object* x_1104; lean_object* x_1105; lean_object* x_1106; +lean_dec(x_1087); +lean_dec(x_224); +x_1089 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); +x_1090 = lean_ctor_get(x_1089, 0); lean_inc(x_1090); -lean_dec(x_1088); -x_1091 = l_Lean_Elab_Term_getEnv___rarg(x_1090); -x_1092 = lean_ctor_get(x_1091, 1); -lean_inc(x_1092); -x_1093 = lean_ctor_get(x_1091, 0); +x_1091 = lean_ctor_get(x_1089, 1); +lean_inc(x_1091); +lean_dec(x_1089); +x_1092 = l_Lean_Elab_Term_getEnv___rarg(x_1091); +x_1093 = lean_ctor_get(x_1092, 1); lean_inc(x_1093); -lean_dec(x_1091); x_1094 = lean_ctor_get(x_1092, 0); lean_inc(x_1094); -x_1095 = lean_ctor_get(x_1092, 1); -lean_inc(x_1095); -x_1096 = lean_ctor_get(x_1092, 2); -lean_inc(x_1096); -x_1097 = lean_ctor_get(x_1092, 3); -lean_inc(x_1097); -x_1098 = lean_ctor_get(x_1092, 4); -lean_inc(x_1098); -x_1099 = lean_ctor_get(x_1092, 5); -lean_inc(x_1099); -x_1100 = lean_ctor_get(x_3, 0); -lean_inc(x_1100); -x_1101 = lean_ctor_get(x_1100, 3); -lean_inc(x_1101); -x_1102 = lean_ctor_get(x_1100, 4); -lean_inc(x_1102); -lean_dec(x_1100); -x_1103 = lean_environment_main_module(x_1093); -x_1104 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_1104, 0, x_1103); -lean_ctor_set(x_1104, 1, x_1089); -lean_ctor_set(x_1104, 2, x_1101); -lean_ctor_set(x_1104, 3, x_1102); -lean_inc(x_1); -x_1105 = l___private_Lean_Elab_Match_31__expandMatchDiscr_x3f(x_1, x_1104, x_1099); -if (lean_obj_tag(x_1105) == 0) -{ -uint8_t x_1106; -x_1106 = !lean_is_exclusive(x_1092); -if (x_1106 == 0) -{ -lean_object* x_1107; lean_object* x_1108; lean_object* x_1109; lean_object* x_1110; lean_object* x_1111; lean_object* x_1112; lean_object* x_1113; lean_object* x_1114; -x_1107 = lean_ctor_get(x_1092, 5); -lean_dec(x_1107); -x_1108 = lean_ctor_get(x_1092, 4); -lean_dec(x_1108); -x_1109 = lean_ctor_get(x_1092, 3); -lean_dec(x_1109); -x_1110 = lean_ctor_get(x_1092, 2); -lean_dec(x_1110); -x_1111 = lean_ctor_get(x_1092, 1); -lean_dec(x_1111); -x_1112 = lean_ctor_get(x_1092, 0); -lean_dec(x_1112); -x_1113 = lean_ctor_get(x_1105, 0); -lean_inc(x_1113); -x_1114 = lean_ctor_get(x_1105, 1); -lean_inc(x_1114); -lean_dec(x_1105); -lean_ctor_set(x_1092, 5, x_1114); -x_5 = x_1113; -x_6 = x_1092; -goto block_33; -} -else -{ -lean_object* x_1115; lean_object* x_1116; lean_object* x_1117; lean_dec(x_1092); -x_1115 = lean_ctor_get(x_1105, 0); +x_1095 = lean_ctor_get(x_1093, 0); +lean_inc(x_1095); +x_1096 = lean_ctor_get(x_1093, 1); +lean_inc(x_1096); +x_1097 = lean_ctor_get(x_1093, 2); +lean_inc(x_1097); +x_1098 = lean_ctor_get(x_1093, 3); +lean_inc(x_1098); +x_1099 = lean_ctor_get(x_1093, 4); +lean_inc(x_1099); +x_1100 = lean_ctor_get(x_1093, 5); +lean_inc(x_1100); +x_1101 = lean_ctor_get(x_3, 0); +lean_inc(x_1101); +x_1102 = lean_ctor_get(x_1101, 3); +lean_inc(x_1102); +x_1103 = lean_ctor_get(x_1101, 4); +lean_inc(x_1103); +lean_dec(x_1101); +x_1104 = lean_environment_main_module(x_1094); +x_1105 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_1105, 0, x_1104); +lean_ctor_set(x_1105, 1, x_1090); +lean_ctor_set(x_1105, 2, x_1102); +lean_ctor_set(x_1105, 3, x_1103); +lean_inc(x_1); +x_1106 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_1105, x_1100); +if (lean_obj_tag(x_1106) == 0) +{ +uint8_t x_1107; +x_1107 = !lean_is_exclusive(x_1093); +if (x_1107 == 0) +{ +lean_object* x_1108; lean_object* x_1109; lean_object* x_1110; lean_object* x_1111; lean_object* x_1112; lean_object* x_1113; lean_object* x_1114; lean_object* x_1115; +x_1108 = lean_ctor_get(x_1093, 5); +lean_dec(x_1108); +x_1109 = lean_ctor_get(x_1093, 4); +lean_dec(x_1109); +x_1110 = lean_ctor_get(x_1093, 3); +lean_dec(x_1110); +x_1111 = lean_ctor_get(x_1093, 2); +lean_dec(x_1111); +x_1112 = lean_ctor_get(x_1093, 1); +lean_dec(x_1112); +x_1113 = lean_ctor_get(x_1093, 0); +lean_dec(x_1113); +x_1114 = lean_ctor_get(x_1106, 0); +lean_inc(x_1114); +x_1115 = lean_ctor_get(x_1106, 1); lean_inc(x_1115); -x_1116 = lean_ctor_get(x_1105, 1); +lean_dec(x_1106); +lean_ctor_set(x_1093, 5, x_1115); +x_5 = x_1114; +x_6 = x_1093; +goto block_34; +} +else +{ +lean_object* x_1116; lean_object* x_1117; lean_object* x_1118; +lean_dec(x_1093); +x_1116 = lean_ctor_get(x_1106, 0); lean_inc(x_1116); -lean_dec(x_1105); -x_1117 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_1117, 0, x_1094); -lean_ctor_set(x_1117, 1, x_1095); -lean_ctor_set(x_1117, 2, x_1096); -lean_ctor_set(x_1117, 3, x_1097); -lean_ctor_set(x_1117, 4, x_1098); -lean_ctor_set(x_1117, 5, x_1116); -x_5 = x_1115; -x_6 = x_1117; -goto block_33; +x_1117 = lean_ctor_get(x_1106, 1); +lean_inc(x_1117); +lean_dec(x_1106); +x_1118 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_1118, 0, x_1095); +lean_ctor_set(x_1118, 1, x_1096); +lean_ctor_set(x_1118, 2, x_1097); +lean_ctor_set(x_1118, 3, x_1098); +lean_ctor_set(x_1118, 4, x_1099); +lean_ctor_set(x_1118, 5, x_1117); +x_5 = x_1116; +x_6 = x_1118; +goto block_34; } } else { -lean_object* x_1118; +lean_object* x_1119; +lean_dec(x_1099); lean_dec(x_1098); lean_dec(x_1097); lean_dec(x_1096); lean_dec(x_1095); -lean_dec(x_1094); lean_dec(x_2); lean_dec(x_1); -x_1118 = lean_ctor_get(x_1105, 0); -lean_inc(x_1118); -lean_dec(x_1105); -if (lean_obj_tag(x_1118) == 0) -{ -lean_object* x_1119; lean_object* x_1120; lean_object* x_1121; lean_object* x_1122; lean_object* x_1123; uint8_t x_1124; -x_1119 = lean_ctor_get(x_1118, 0); +x_1119 = lean_ctor_get(x_1106, 0); lean_inc(x_1119); -x_1120 = lean_ctor_get(x_1118, 1); +lean_dec(x_1106); +if (lean_obj_tag(x_1119) == 0) +{ +lean_object* x_1120; lean_object* x_1121; lean_object* x_1122; lean_object* x_1123; lean_object* x_1124; uint8_t x_1125; +x_1120 = lean_ctor_get(x_1119, 0); lean_inc(x_1120); -lean_dec(x_1118); -x_1121 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1121, 0, x_1120); -x_1122 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1122, 0, x_1121); -x_1123 = l_Lean_Elab_Term_throwError___rarg(x_1119, x_1122, x_3, x_1092); +x_1121 = lean_ctor_get(x_1119, 1); +lean_inc(x_1121); lean_dec(x_1119); -x_1124 = !lean_is_exclusive(x_1123); -if (x_1124 == 0) +x_1122 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1122, 0, x_1121); +x_1123 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1123, 0, x_1122); +x_1124 = l_Lean_Elab_Term_throwErrorAt___rarg(x_1120, x_1123, x_3, x_1093); +lean_dec(x_1120); +x_1125 = !lean_is_exclusive(x_1124); +if (x_1125 == 0) { -return x_1123; +return x_1124; } else { -lean_object* x_1125; lean_object* x_1126; lean_object* x_1127; -x_1125 = lean_ctor_get(x_1123, 0); -x_1126 = lean_ctor_get(x_1123, 1); +lean_object* x_1126; lean_object* x_1127; lean_object* x_1128; +x_1126 = lean_ctor_get(x_1124, 0); +x_1127 = lean_ctor_get(x_1124, 1); +lean_inc(x_1127); lean_inc(x_1126); -lean_inc(x_1125); -lean_dec(x_1123); -x_1127 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1127, 0, x_1125); -lean_ctor_set(x_1127, 1, x_1126); -return x_1127; -} -} -else -{ -lean_object* x_1128; uint8_t x_1129; -lean_dec(x_3); -x_1128 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_1092); -x_1129 = !lean_is_exclusive(x_1128); -if (x_1129 == 0) -{ +lean_dec(x_1124); +x_1128 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1128, 0, x_1126); +lean_ctor_set(x_1128, 1, x_1127); return x_1128; } +} else { -lean_object* x_1130; lean_object* x_1131; lean_object* x_1132; -x_1130 = lean_ctor_get(x_1128, 0); -x_1131 = lean_ctor_get(x_1128, 1); +lean_object* x_1129; uint8_t x_1130; +lean_dec(x_3); +x_1129 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_1093); +x_1130 = !lean_is_exclusive(x_1129); +if (x_1130 == 0) +{ +return x_1129; +} +else +{ +lean_object* x_1131; lean_object* x_1132; lean_object* x_1133; +x_1131 = lean_ctor_get(x_1129, 0); +x_1132 = lean_ctor_get(x_1129, 1); +lean_inc(x_1132); lean_inc(x_1131); -lean_inc(x_1130); -lean_dec(x_1128); -x_1132 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1132, 0, x_1130); -lean_ctor_set(x_1132, 1, x_1131); -return x_1132; +lean_dec(x_1129); +x_1133 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1133, 0, x_1131); +lean_ctor_set(x_1133, 1, x_1132); +return x_1133; } } } } else { -lean_object* x_1133; uint8_t x_1134; lean_object* x_1391; uint8_t x_1392; -x_1133 = l_Lean_Syntax_getArg(x_1086, x_128); -lean_dec(x_1086); -x_1391 = l_Lean_Parser_Term_matchAlt___closed__2; -lean_inc(x_1133); -x_1392 = l_Lean_Syntax_isOfKind(x_1133, x_1391); -if (x_1392 == 0) +lean_object* x_1134; uint8_t x_1135; lean_object* x_1392; uint8_t x_1393; +x_1134 = l_Lean_Syntax_getArg(x_1087, x_129); +lean_dec(x_1087); +x_1392 = l_Lean_Parser_Term_matchAlt___closed__2; +lean_inc(x_1134); +x_1393 = l_Lean_Syntax_isOfKind(x_1134, x_1392); +if (x_1393 == 0) { -uint8_t x_1393; -x_1393 = 0; -x_1134 = x_1393; -goto block_1390; +uint8_t x_1394; +x_1394 = 0; +x_1135 = x_1394; +goto block_1391; } else { -lean_object* x_1394; lean_object* x_1395; lean_object* x_1396; uint8_t x_1397; -x_1394 = l_Lean_Syntax_getArgs(x_1133); -x_1395 = lean_array_get_size(x_1394); -lean_dec(x_1394); -x_1396 = lean_unsigned_to_nat(3u); -x_1397 = lean_nat_dec_eq(x_1395, x_1396); +lean_object* x_1395; lean_object* x_1396; lean_object* x_1397; uint8_t x_1398; +x_1395 = l_Lean_Syntax_getArgs(x_1134); +x_1396 = lean_array_get_size(x_1395); lean_dec(x_1395); -x_1134 = x_1397; -goto block_1390; +x_1397 = lean_unsigned_to_nat(3u); +x_1398 = lean_nat_dec_eq(x_1396, x_1397); +lean_dec(x_1396); +x_1135 = x_1398; +goto block_1391; } -block_1390: +block_1391: { -if (x_1134 == 0) +if (x_1135 == 0) { -lean_object* x_1135; lean_object* x_1136; lean_object* x_1137; lean_object* x_1138; lean_object* x_1139; lean_object* x_1140; lean_object* x_1141; lean_object* x_1142; lean_object* x_1143; lean_object* x_1144; lean_object* x_1145; lean_object* x_1146; lean_object* x_1147; lean_object* x_1148; lean_object* x_1149; lean_object* x_1150; lean_object* x_1151; lean_object* x_1152; -lean_dec(x_1133); -lean_dec(x_223); -x_1135 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); -x_1136 = lean_ctor_get(x_1135, 0); -lean_inc(x_1136); -x_1137 = lean_ctor_get(x_1135, 1); +lean_object* x_1136; lean_object* x_1137; lean_object* x_1138; lean_object* x_1139; lean_object* x_1140; lean_object* x_1141; lean_object* x_1142; lean_object* x_1143; lean_object* x_1144; lean_object* x_1145; lean_object* x_1146; lean_object* x_1147; lean_object* x_1148; lean_object* x_1149; lean_object* x_1150; lean_object* x_1151; lean_object* x_1152; lean_object* x_1153; +lean_dec(x_1134); +lean_dec(x_224); +x_1136 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); +x_1137 = lean_ctor_get(x_1136, 0); lean_inc(x_1137); -lean_dec(x_1135); -x_1138 = l_Lean_Elab_Term_getEnv___rarg(x_1137); -x_1139 = lean_ctor_get(x_1138, 1); -lean_inc(x_1139); -x_1140 = lean_ctor_get(x_1138, 0); +x_1138 = lean_ctor_get(x_1136, 1); +lean_inc(x_1138); +lean_dec(x_1136); +x_1139 = l_Lean_Elab_Term_getEnv___rarg(x_1138); +x_1140 = lean_ctor_get(x_1139, 1); lean_inc(x_1140); -lean_dec(x_1138); x_1141 = lean_ctor_get(x_1139, 0); lean_inc(x_1141); -x_1142 = lean_ctor_get(x_1139, 1); -lean_inc(x_1142); -x_1143 = lean_ctor_get(x_1139, 2); -lean_inc(x_1143); -x_1144 = lean_ctor_get(x_1139, 3); -lean_inc(x_1144); -x_1145 = lean_ctor_get(x_1139, 4); -lean_inc(x_1145); -x_1146 = lean_ctor_get(x_1139, 5); -lean_inc(x_1146); -x_1147 = lean_ctor_get(x_3, 0); -lean_inc(x_1147); -x_1148 = lean_ctor_get(x_1147, 3); -lean_inc(x_1148); -x_1149 = lean_ctor_get(x_1147, 4); -lean_inc(x_1149); -lean_dec(x_1147); -x_1150 = lean_environment_main_module(x_1140); -x_1151 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_1151, 0, x_1150); -lean_ctor_set(x_1151, 1, x_1136); -lean_ctor_set(x_1151, 2, x_1148); -lean_ctor_set(x_1151, 3, x_1149); -lean_inc(x_1); -x_1152 = l___private_Lean_Elab_Match_31__expandMatchDiscr_x3f(x_1, x_1151, x_1146); -if (lean_obj_tag(x_1152) == 0) -{ -uint8_t x_1153; -x_1153 = !lean_is_exclusive(x_1139); -if (x_1153 == 0) -{ -lean_object* x_1154; lean_object* x_1155; lean_object* x_1156; lean_object* x_1157; lean_object* x_1158; lean_object* x_1159; lean_object* x_1160; lean_object* x_1161; -x_1154 = lean_ctor_get(x_1139, 5); -lean_dec(x_1154); -x_1155 = lean_ctor_get(x_1139, 4); -lean_dec(x_1155); -x_1156 = lean_ctor_get(x_1139, 3); -lean_dec(x_1156); -x_1157 = lean_ctor_get(x_1139, 2); -lean_dec(x_1157); -x_1158 = lean_ctor_get(x_1139, 1); -lean_dec(x_1158); -x_1159 = lean_ctor_get(x_1139, 0); -lean_dec(x_1159); -x_1160 = lean_ctor_get(x_1152, 0); -lean_inc(x_1160); -x_1161 = lean_ctor_get(x_1152, 1); -lean_inc(x_1161); -lean_dec(x_1152); -lean_ctor_set(x_1139, 5, x_1161); -x_5 = x_1160; -x_6 = x_1139; -goto block_33; -} -else -{ -lean_object* x_1162; lean_object* x_1163; lean_object* x_1164; lean_dec(x_1139); -x_1162 = lean_ctor_get(x_1152, 0); +x_1142 = lean_ctor_get(x_1140, 0); +lean_inc(x_1142); +x_1143 = lean_ctor_get(x_1140, 1); +lean_inc(x_1143); +x_1144 = lean_ctor_get(x_1140, 2); +lean_inc(x_1144); +x_1145 = lean_ctor_get(x_1140, 3); +lean_inc(x_1145); +x_1146 = lean_ctor_get(x_1140, 4); +lean_inc(x_1146); +x_1147 = lean_ctor_get(x_1140, 5); +lean_inc(x_1147); +x_1148 = lean_ctor_get(x_3, 0); +lean_inc(x_1148); +x_1149 = lean_ctor_get(x_1148, 3); +lean_inc(x_1149); +x_1150 = lean_ctor_get(x_1148, 4); +lean_inc(x_1150); +lean_dec(x_1148); +x_1151 = lean_environment_main_module(x_1141); +x_1152 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_1152, 0, x_1151); +lean_ctor_set(x_1152, 1, x_1137); +lean_ctor_set(x_1152, 2, x_1149); +lean_ctor_set(x_1152, 3, x_1150); +lean_inc(x_1); +x_1153 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_1152, x_1147); +if (lean_obj_tag(x_1153) == 0) +{ +uint8_t x_1154; +x_1154 = !lean_is_exclusive(x_1140); +if (x_1154 == 0) +{ +lean_object* x_1155; lean_object* x_1156; lean_object* x_1157; lean_object* x_1158; lean_object* x_1159; lean_object* x_1160; lean_object* x_1161; lean_object* x_1162; +x_1155 = lean_ctor_get(x_1140, 5); +lean_dec(x_1155); +x_1156 = lean_ctor_get(x_1140, 4); +lean_dec(x_1156); +x_1157 = lean_ctor_get(x_1140, 3); +lean_dec(x_1157); +x_1158 = lean_ctor_get(x_1140, 2); +lean_dec(x_1158); +x_1159 = lean_ctor_get(x_1140, 1); +lean_dec(x_1159); +x_1160 = lean_ctor_get(x_1140, 0); +lean_dec(x_1160); +x_1161 = lean_ctor_get(x_1153, 0); +lean_inc(x_1161); +x_1162 = lean_ctor_get(x_1153, 1); lean_inc(x_1162); -x_1163 = lean_ctor_get(x_1152, 1); +lean_dec(x_1153); +lean_ctor_set(x_1140, 5, x_1162); +x_5 = x_1161; +x_6 = x_1140; +goto block_34; +} +else +{ +lean_object* x_1163; lean_object* x_1164; lean_object* x_1165; +lean_dec(x_1140); +x_1163 = lean_ctor_get(x_1153, 0); lean_inc(x_1163); -lean_dec(x_1152); -x_1164 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_1164, 0, x_1141); -lean_ctor_set(x_1164, 1, x_1142); -lean_ctor_set(x_1164, 2, x_1143); -lean_ctor_set(x_1164, 3, x_1144); -lean_ctor_set(x_1164, 4, x_1145); -lean_ctor_set(x_1164, 5, x_1163); -x_5 = x_1162; -x_6 = x_1164; -goto block_33; +x_1164 = lean_ctor_get(x_1153, 1); +lean_inc(x_1164); +lean_dec(x_1153); +x_1165 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_1165, 0, x_1142); +lean_ctor_set(x_1165, 1, x_1143); +lean_ctor_set(x_1165, 2, x_1144); +lean_ctor_set(x_1165, 3, x_1145); +lean_ctor_set(x_1165, 4, x_1146); +lean_ctor_set(x_1165, 5, x_1164); +x_5 = x_1163; +x_6 = x_1165; +goto block_34; } } else { -lean_object* x_1165; +lean_object* x_1166; +lean_dec(x_1146); lean_dec(x_1145); lean_dec(x_1144); lean_dec(x_1143); lean_dec(x_1142); -lean_dec(x_1141); lean_dec(x_2); lean_dec(x_1); -x_1165 = lean_ctor_get(x_1152, 0); -lean_inc(x_1165); -lean_dec(x_1152); -if (lean_obj_tag(x_1165) == 0) -{ -lean_object* x_1166; lean_object* x_1167; lean_object* x_1168; lean_object* x_1169; lean_object* x_1170; uint8_t x_1171; -x_1166 = lean_ctor_get(x_1165, 0); +x_1166 = lean_ctor_get(x_1153, 0); lean_inc(x_1166); -x_1167 = lean_ctor_get(x_1165, 1); +lean_dec(x_1153); +if (lean_obj_tag(x_1166) == 0) +{ +lean_object* x_1167; lean_object* x_1168; lean_object* x_1169; lean_object* x_1170; lean_object* x_1171; uint8_t x_1172; +x_1167 = lean_ctor_get(x_1166, 0); lean_inc(x_1167); -lean_dec(x_1165); -x_1168 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1168, 0, x_1167); -x_1169 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1169, 0, x_1168); -x_1170 = l_Lean_Elab_Term_throwError___rarg(x_1166, x_1169, x_3, x_1139); +x_1168 = lean_ctor_get(x_1166, 1); +lean_inc(x_1168); lean_dec(x_1166); -x_1171 = !lean_is_exclusive(x_1170); -if (x_1171 == 0) +x_1169 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1169, 0, x_1168); +x_1170 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1170, 0, x_1169); +x_1171 = l_Lean_Elab_Term_throwErrorAt___rarg(x_1167, x_1170, x_3, x_1140); +lean_dec(x_1167); +x_1172 = !lean_is_exclusive(x_1171); +if (x_1172 == 0) { -return x_1170; +return x_1171; } else { -lean_object* x_1172; lean_object* x_1173; lean_object* x_1174; -x_1172 = lean_ctor_get(x_1170, 0); -x_1173 = lean_ctor_get(x_1170, 1); +lean_object* x_1173; lean_object* x_1174; lean_object* x_1175; +x_1173 = lean_ctor_get(x_1171, 0); +x_1174 = lean_ctor_get(x_1171, 1); +lean_inc(x_1174); lean_inc(x_1173); -lean_inc(x_1172); -lean_dec(x_1170); -x_1174 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1174, 0, x_1172); -lean_ctor_set(x_1174, 1, x_1173); -return x_1174; -} -} -else -{ -lean_object* x_1175; uint8_t x_1176; -lean_dec(x_3); -x_1175 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_1139); -x_1176 = !lean_is_exclusive(x_1175); -if (x_1176 == 0) -{ +lean_dec(x_1171); +x_1175 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1175, 0, x_1173); +lean_ctor_set(x_1175, 1, x_1174); return x_1175; } +} else { -lean_object* x_1177; lean_object* x_1178; lean_object* x_1179; -x_1177 = lean_ctor_get(x_1175, 0); -x_1178 = lean_ctor_get(x_1175, 1); +lean_object* x_1176; uint8_t x_1177; +lean_dec(x_3); +x_1176 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_1140); +x_1177 = !lean_is_exclusive(x_1176); +if (x_1177 == 0) +{ +return x_1176; +} +else +{ +lean_object* x_1178; lean_object* x_1179; lean_object* x_1180; +x_1178 = lean_ctor_get(x_1176, 0); +x_1179 = lean_ctor_get(x_1176, 1); +lean_inc(x_1179); lean_inc(x_1178); -lean_inc(x_1177); -lean_dec(x_1175); -x_1179 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1179, 0, x_1177); -lean_ctor_set(x_1179, 1, x_1178); -return x_1179; +lean_dec(x_1176); +x_1180 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1180, 0, x_1178); +lean_ctor_set(x_1180, 1, x_1179); +return x_1180; } } } } else { -lean_object* x_1180; uint8_t x_1181; uint8_t x_1385; -x_1180 = l_Lean_Syntax_getArg(x_1133, x_128); -lean_inc(x_1180); -x_1385 = l_Lean_Syntax_isOfKind(x_1180, x_1030); -if (x_1385 == 0) +lean_object* x_1181; uint8_t x_1182; uint8_t x_1386; +x_1181 = l_Lean_Syntax_getArg(x_1134, x_129); +lean_inc(x_1181); +x_1386 = l_Lean_Syntax_isOfKind(x_1181, x_1031); +if (x_1386 == 0) { -uint8_t x_1386; -x_1386 = 0; -x_1181 = x_1386; -goto block_1384; +uint8_t x_1387; +x_1387 = 0; +x_1182 = x_1387; +goto block_1385; } else { -lean_object* x_1387; lean_object* x_1388; uint8_t x_1389; -x_1387 = l_Lean_Syntax_getArgs(x_1180); -x_1388 = lean_array_get_size(x_1387); -lean_dec(x_1387); -x_1389 = lean_nat_dec_eq(x_1388, x_80); +lean_object* x_1388; lean_object* x_1389; uint8_t x_1390; +x_1388 = l_Lean_Syntax_getArgs(x_1181); +x_1389 = lean_array_get_size(x_1388); lean_dec(x_1388); -x_1181 = x_1389; -goto block_1384; +x_1390 = lean_nat_dec_eq(x_1389, x_81); +lean_dec(x_1389); +x_1182 = x_1390; +goto block_1385; } -block_1384: +block_1385: { -if (x_1181 == 0) +if (x_1182 == 0) { -lean_object* x_1182; lean_object* x_1183; lean_object* x_1184; lean_object* x_1185; lean_object* x_1186; lean_object* x_1187; lean_object* x_1188; lean_object* x_1189; lean_object* x_1190; lean_object* x_1191; lean_object* x_1192; lean_object* x_1193; lean_object* x_1194; lean_object* x_1195; lean_object* x_1196; lean_object* x_1197; lean_object* x_1198; lean_object* x_1199; -lean_dec(x_1180); -lean_dec(x_1133); -lean_dec(x_223); -x_1182 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); -x_1183 = lean_ctor_get(x_1182, 0); -lean_inc(x_1183); -x_1184 = lean_ctor_get(x_1182, 1); +lean_object* x_1183; lean_object* x_1184; lean_object* x_1185; lean_object* x_1186; lean_object* x_1187; lean_object* x_1188; lean_object* x_1189; lean_object* x_1190; lean_object* x_1191; lean_object* x_1192; lean_object* x_1193; lean_object* x_1194; lean_object* x_1195; lean_object* x_1196; lean_object* x_1197; lean_object* x_1198; lean_object* x_1199; lean_object* x_1200; +lean_dec(x_1181); +lean_dec(x_1134); +lean_dec(x_224); +x_1183 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); +x_1184 = lean_ctor_get(x_1183, 0); lean_inc(x_1184); -lean_dec(x_1182); -x_1185 = l_Lean_Elab_Term_getEnv___rarg(x_1184); -x_1186 = lean_ctor_get(x_1185, 1); -lean_inc(x_1186); -x_1187 = lean_ctor_get(x_1185, 0); +x_1185 = lean_ctor_get(x_1183, 1); +lean_inc(x_1185); +lean_dec(x_1183); +x_1186 = l_Lean_Elab_Term_getEnv___rarg(x_1185); +x_1187 = lean_ctor_get(x_1186, 1); lean_inc(x_1187); -lean_dec(x_1185); x_1188 = lean_ctor_get(x_1186, 0); lean_inc(x_1188); -x_1189 = lean_ctor_get(x_1186, 1); -lean_inc(x_1189); -x_1190 = lean_ctor_get(x_1186, 2); -lean_inc(x_1190); -x_1191 = lean_ctor_get(x_1186, 3); -lean_inc(x_1191); -x_1192 = lean_ctor_get(x_1186, 4); -lean_inc(x_1192); -x_1193 = lean_ctor_get(x_1186, 5); -lean_inc(x_1193); -x_1194 = lean_ctor_get(x_3, 0); -lean_inc(x_1194); -x_1195 = lean_ctor_get(x_1194, 3); -lean_inc(x_1195); -x_1196 = lean_ctor_get(x_1194, 4); -lean_inc(x_1196); -lean_dec(x_1194); -x_1197 = lean_environment_main_module(x_1187); -x_1198 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_1198, 0, x_1197); -lean_ctor_set(x_1198, 1, x_1183); -lean_ctor_set(x_1198, 2, x_1195); -lean_ctor_set(x_1198, 3, x_1196); -lean_inc(x_1); -x_1199 = l___private_Lean_Elab_Match_31__expandMatchDiscr_x3f(x_1, x_1198, x_1193); -if (lean_obj_tag(x_1199) == 0) -{ -uint8_t x_1200; -x_1200 = !lean_is_exclusive(x_1186); -if (x_1200 == 0) -{ -lean_object* x_1201; lean_object* x_1202; lean_object* x_1203; lean_object* x_1204; lean_object* x_1205; lean_object* x_1206; lean_object* x_1207; lean_object* x_1208; -x_1201 = lean_ctor_get(x_1186, 5); -lean_dec(x_1201); -x_1202 = lean_ctor_get(x_1186, 4); -lean_dec(x_1202); -x_1203 = lean_ctor_get(x_1186, 3); -lean_dec(x_1203); -x_1204 = lean_ctor_get(x_1186, 2); -lean_dec(x_1204); -x_1205 = lean_ctor_get(x_1186, 1); -lean_dec(x_1205); -x_1206 = lean_ctor_get(x_1186, 0); -lean_dec(x_1206); -x_1207 = lean_ctor_get(x_1199, 0); -lean_inc(x_1207); -x_1208 = lean_ctor_get(x_1199, 1); -lean_inc(x_1208); -lean_dec(x_1199); -lean_ctor_set(x_1186, 5, x_1208); -x_5 = x_1207; -x_6 = x_1186; -goto block_33; -} -else -{ -lean_object* x_1209; lean_object* x_1210; lean_object* x_1211; lean_dec(x_1186); -x_1209 = lean_ctor_get(x_1199, 0); +x_1189 = lean_ctor_get(x_1187, 0); +lean_inc(x_1189); +x_1190 = lean_ctor_get(x_1187, 1); +lean_inc(x_1190); +x_1191 = lean_ctor_get(x_1187, 2); +lean_inc(x_1191); +x_1192 = lean_ctor_get(x_1187, 3); +lean_inc(x_1192); +x_1193 = lean_ctor_get(x_1187, 4); +lean_inc(x_1193); +x_1194 = lean_ctor_get(x_1187, 5); +lean_inc(x_1194); +x_1195 = lean_ctor_get(x_3, 0); +lean_inc(x_1195); +x_1196 = lean_ctor_get(x_1195, 3); +lean_inc(x_1196); +x_1197 = lean_ctor_get(x_1195, 4); +lean_inc(x_1197); +lean_dec(x_1195); +x_1198 = lean_environment_main_module(x_1188); +x_1199 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_1199, 0, x_1198); +lean_ctor_set(x_1199, 1, x_1184); +lean_ctor_set(x_1199, 2, x_1196); +lean_ctor_set(x_1199, 3, x_1197); +lean_inc(x_1); +x_1200 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_1199, x_1194); +if (lean_obj_tag(x_1200) == 0) +{ +uint8_t x_1201; +x_1201 = !lean_is_exclusive(x_1187); +if (x_1201 == 0) +{ +lean_object* x_1202; lean_object* x_1203; lean_object* x_1204; lean_object* x_1205; lean_object* x_1206; lean_object* x_1207; lean_object* x_1208; lean_object* x_1209; +x_1202 = lean_ctor_get(x_1187, 5); +lean_dec(x_1202); +x_1203 = lean_ctor_get(x_1187, 4); +lean_dec(x_1203); +x_1204 = lean_ctor_get(x_1187, 3); +lean_dec(x_1204); +x_1205 = lean_ctor_get(x_1187, 2); +lean_dec(x_1205); +x_1206 = lean_ctor_get(x_1187, 1); +lean_dec(x_1206); +x_1207 = lean_ctor_get(x_1187, 0); +lean_dec(x_1207); +x_1208 = lean_ctor_get(x_1200, 0); +lean_inc(x_1208); +x_1209 = lean_ctor_get(x_1200, 1); lean_inc(x_1209); -x_1210 = lean_ctor_get(x_1199, 1); +lean_dec(x_1200); +lean_ctor_set(x_1187, 5, x_1209); +x_5 = x_1208; +x_6 = x_1187; +goto block_34; +} +else +{ +lean_object* x_1210; lean_object* x_1211; lean_object* x_1212; +lean_dec(x_1187); +x_1210 = lean_ctor_get(x_1200, 0); lean_inc(x_1210); -lean_dec(x_1199); -x_1211 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_1211, 0, x_1188); -lean_ctor_set(x_1211, 1, x_1189); -lean_ctor_set(x_1211, 2, x_1190); -lean_ctor_set(x_1211, 3, x_1191); -lean_ctor_set(x_1211, 4, x_1192); -lean_ctor_set(x_1211, 5, x_1210); -x_5 = x_1209; -x_6 = x_1211; -goto block_33; +x_1211 = lean_ctor_get(x_1200, 1); +lean_inc(x_1211); +lean_dec(x_1200); +x_1212 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_1212, 0, x_1189); +lean_ctor_set(x_1212, 1, x_1190); +lean_ctor_set(x_1212, 2, x_1191); +lean_ctor_set(x_1212, 3, x_1192); +lean_ctor_set(x_1212, 4, x_1193); +lean_ctor_set(x_1212, 5, x_1211); +x_5 = x_1210; +x_6 = x_1212; +goto block_34; } } else { -lean_object* x_1212; +lean_object* x_1213; +lean_dec(x_1193); lean_dec(x_1192); lean_dec(x_1191); lean_dec(x_1190); lean_dec(x_1189); -lean_dec(x_1188); lean_dec(x_2); lean_dec(x_1); -x_1212 = lean_ctor_get(x_1199, 0); -lean_inc(x_1212); -lean_dec(x_1199); -if (lean_obj_tag(x_1212) == 0) -{ -lean_object* x_1213; lean_object* x_1214; lean_object* x_1215; lean_object* x_1216; lean_object* x_1217; uint8_t x_1218; -x_1213 = lean_ctor_get(x_1212, 0); +x_1213 = lean_ctor_get(x_1200, 0); lean_inc(x_1213); -x_1214 = lean_ctor_get(x_1212, 1); +lean_dec(x_1200); +if (lean_obj_tag(x_1213) == 0) +{ +lean_object* x_1214; lean_object* x_1215; lean_object* x_1216; lean_object* x_1217; lean_object* x_1218; uint8_t x_1219; +x_1214 = lean_ctor_get(x_1213, 0); lean_inc(x_1214); -lean_dec(x_1212); -x_1215 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1215, 0, x_1214); -x_1216 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1216, 0, x_1215); -x_1217 = l_Lean_Elab_Term_throwError___rarg(x_1213, x_1216, x_3, x_1186); +x_1215 = lean_ctor_get(x_1213, 1); +lean_inc(x_1215); lean_dec(x_1213); -x_1218 = !lean_is_exclusive(x_1217); -if (x_1218 == 0) +x_1216 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1216, 0, x_1215); +x_1217 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1217, 0, x_1216); +x_1218 = l_Lean_Elab_Term_throwErrorAt___rarg(x_1214, x_1217, x_3, x_1187); +lean_dec(x_1214); +x_1219 = !lean_is_exclusive(x_1218); +if (x_1219 == 0) { -return x_1217; +return x_1218; } else { -lean_object* x_1219; lean_object* x_1220; lean_object* x_1221; -x_1219 = lean_ctor_get(x_1217, 0); -x_1220 = lean_ctor_get(x_1217, 1); +lean_object* x_1220; lean_object* x_1221; lean_object* x_1222; +x_1220 = lean_ctor_get(x_1218, 0); +x_1221 = lean_ctor_get(x_1218, 1); +lean_inc(x_1221); lean_inc(x_1220); -lean_inc(x_1219); -lean_dec(x_1217); -x_1221 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1221, 0, x_1219); -lean_ctor_set(x_1221, 1, x_1220); -return x_1221; -} -} -else -{ -lean_object* x_1222; uint8_t x_1223; -lean_dec(x_3); -x_1222 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_1186); -x_1223 = !lean_is_exclusive(x_1222); -if (x_1223 == 0) -{ +lean_dec(x_1218); +x_1222 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1222, 0, x_1220); +lean_ctor_set(x_1222, 1, x_1221); return x_1222; } +} else { -lean_object* x_1224; lean_object* x_1225; lean_object* x_1226; -x_1224 = lean_ctor_get(x_1222, 0); -x_1225 = lean_ctor_get(x_1222, 1); +lean_object* x_1223; uint8_t x_1224; +lean_dec(x_3); +x_1223 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_1187); +x_1224 = !lean_is_exclusive(x_1223); +if (x_1224 == 0) +{ +return x_1223; +} +else +{ +lean_object* x_1225; lean_object* x_1226; lean_object* x_1227; +x_1225 = lean_ctor_get(x_1223, 0); +x_1226 = lean_ctor_get(x_1223, 1); +lean_inc(x_1226); lean_inc(x_1225); -lean_inc(x_1224); -lean_dec(x_1222); -x_1226 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1226, 0, x_1224); -lean_ctor_set(x_1226, 1, x_1225); -return x_1226; +lean_dec(x_1223); +x_1227 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1227, 0, x_1225); +lean_ctor_set(x_1227, 1, x_1226); +return x_1227; } } } } else { -lean_object* x_1227; uint8_t x_1228; lean_object* x_1378; uint8_t x_1379; -x_1227 = l_Lean_Syntax_getArg(x_1180, x_128); -lean_dec(x_1180); -x_1378 = l_Lean_mkTermIdFromIdent___closed__2; -lean_inc(x_1227); -x_1379 = l_Lean_Syntax_isOfKind(x_1227, x_1378); -if (x_1379 == 0) +lean_object* x_1228; uint8_t x_1229; lean_object* x_1379; uint8_t x_1380; +x_1228 = l_Lean_Syntax_getArg(x_1181, x_129); +lean_dec(x_1181); +x_1379 = l_Lean_mkTermIdFromIdent___closed__2; +lean_inc(x_1228); +x_1380 = l_Lean_Syntax_isOfKind(x_1228, x_1379); +if (x_1380 == 0) { -uint8_t x_1380; -x_1380 = 0; -x_1228 = x_1380; -goto block_1377; +uint8_t x_1381; +x_1381 = 0; +x_1229 = x_1381; +goto block_1378; } else { -lean_object* x_1381; lean_object* x_1382; uint8_t x_1383; -x_1381 = l_Lean_Syntax_getArgs(x_1227); -x_1382 = lean_array_get_size(x_1381); -lean_dec(x_1381); -x_1383 = lean_nat_dec_eq(x_1382, x_224); +lean_object* x_1382; lean_object* x_1383; uint8_t x_1384; +x_1382 = l_Lean_Syntax_getArgs(x_1228); +x_1383 = lean_array_get_size(x_1382); lean_dec(x_1382); -x_1228 = x_1383; -goto block_1377; +x_1384 = lean_nat_dec_eq(x_1383, x_225); +lean_dec(x_1383); +x_1229 = x_1384; +goto block_1378; } -block_1377: +block_1378: { -if (x_1228 == 0) +if (x_1229 == 0) { -lean_object* x_1229; lean_object* x_1230; lean_object* x_1231; lean_object* x_1232; lean_object* x_1233; lean_object* x_1234; lean_object* x_1235; lean_object* x_1236; lean_object* x_1237; lean_object* x_1238; lean_object* x_1239; lean_object* x_1240; lean_object* x_1241; lean_object* x_1242; lean_object* x_1243; lean_object* x_1244; lean_object* x_1245; lean_object* x_1246; -lean_dec(x_1227); -lean_dec(x_1133); -lean_dec(x_223); -x_1229 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); -x_1230 = lean_ctor_get(x_1229, 0); -lean_inc(x_1230); -x_1231 = lean_ctor_get(x_1229, 1); +lean_object* x_1230; lean_object* x_1231; lean_object* x_1232; lean_object* x_1233; lean_object* x_1234; lean_object* x_1235; lean_object* x_1236; lean_object* x_1237; lean_object* x_1238; lean_object* x_1239; lean_object* x_1240; lean_object* x_1241; lean_object* x_1242; lean_object* x_1243; lean_object* x_1244; lean_object* x_1245; lean_object* x_1246; lean_object* x_1247; +lean_dec(x_1228); +lean_dec(x_1134); +lean_dec(x_224); +x_1230 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); +x_1231 = lean_ctor_get(x_1230, 0); lean_inc(x_1231); -lean_dec(x_1229); -x_1232 = l_Lean_Elab_Term_getEnv___rarg(x_1231); -x_1233 = lean_ctor_get(x_1232, 1); -lean_inc(x_1233); -x_1234 = lean_ctor_get(x_1232, 0); +x_1232 = lean_ctor_get(x_1230, 1); +lean_inc(x_1232); +lean_dec(x_1230); +x_1233 = l_Lean_Elab_Term_getEnv___rarg(x_1232); +x_1234 = lean_ctor_get(x_1233, 1); lean_inc(x_1234); -lean_dec(x_1232); x_1235 = lean_ctor_get(x_1233, 0); lean_inc(x_1235); -x_1236 = lean_ctor_get(x_1233, 1); -lean_inc(x_1236); -x_1237 = lean_ctor_get(x_1233, 2); -lean_inc(x_1237); -x_1238 = lean_ctor_get(x_1233, 3); -lean_inc(x_1238); -x_1239 = lean_ctor_get(x_1233, 4); -lean_inc(x_1239); -x_1240 = lean_ctor_get(x_1233, 5); -lean_inc(x_1240); -x_1241 = lean_ctor_get(x_3, 0); -lean_inc(x_1241); -x_1242 = lean_ctor_get(x_1241, 3); -lean_inc(x_1242); -x_1243 = lean_ctor_get(x_1241, 4); -lean_inc(x_1243); -lean_dec(x_1241); -x_1244 = lean_environment_main_module(x_1234); -x_1245 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_1245, 0, x_1244); -lean_ctor_set(x_1245, 1, x_1230); -lean_ctor_set(x_1245, 2, x_1242); -lean_ctor_set(x_1245, 3, x_1243); -lean_inc(x_1); -x_1246 = l___private_Lean_Elab_Match_31__expandMatchDiscr_x3f(x_1, x_1245, x_1240); -if (lean_obj_tag(x_1246) == 0) -{ -uint8_t x_1247; -x_1247 = !lean_is_exclusive(x_1233); -if (x_1247 == 0) -{ -lean_object* x_1248; lean_object* x_1249; lean_object* x_1250; lean_object* x_1251; lean_object* x_1252; lean_object* x_1253; lean_object* x_1254; lean_object* x_1255; -x_1248 = lean_ctor_get(x_1233, 5); -lean_dec(x_1248); -x_1249 = lean_ctor_get(x_1233, 4); -lean_dec(x_1249); -x_1250 = lean_ctor_get(x_1233, 3); -lean_dec(x_1250); -x_1251 = lean_ctor_get(x_1233, 2); -lean_dec(x_1251); -x_1252 = lean_ctor_get(x_1233, 1); -lean_dec(x_1252); -x_1253 = lean_ctor_get(x_1233, 0); -lean_dec(x_1253); -x_1254 = lean_ctor_get(x_1246, 0); -lean_inc(x_1254); -x_1255 = lean_ctor_get(x_1246, 1); -lean_inc(x_1255); -lean_dec(x_1246); -lean_ctor_set(x_1233, 5, x_1255); -x_5 = x_1254; -x_6 = x_1233; -goto block_33; -} -else -{ -lean_object* x_1256; lean_object* x_1257; lean_object* x_1258; lean_dec(x_1233); -x_1256 = lean_ctor_get(x_1246, 0); +x_1236 = lean_ctor_get(x_1234, 0); +lean_inc(x_1236); +x_1237 = lean_ctor_get(x_1234, 1); +lean_inc(x_1237); +x_1238 = lean_ctor_get(x_1234, 2); +lean_inc(x_1238); +x_1239 = lean_ctor_get(x_1234, 3); +lean_inc(x_1239); +x_1240 = lean_ctor_get(x_1234, 4); +lean_inc(x_1240); +x_1241 = lean_ctor_get(x_1234, 5); +lean_inc(x_1241); +x_1242 = lean_ctor_get(x_3, 0); +lean_inc(x_1242); +x_1243 = lean_ctor_get(x_1242, 3); +lean_inc(x_1243); +x_1244 = lean_ctor_get(x_1242, 4); +lean_inc(x_1244); +lean_dec(x_1242); +x_1245 = lean_environment_main_module(x_1235); +x_1246 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_1246, 0, x_1245); +lean_ctor_set(x_1246, 1, x_1231); +lean_ctor_set(x_1246, 2, x_1243); +lean_ctor_set(x_1246, 3, x_1244); +lean_inc(x_1); +x_1247 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_1246, x_1241); +if (lean_obj_tag(x_1247) == 0) +{ +uint8_t x_1248; +x_1248 = !lean_is_exclusive(x_1234); +if (x_1248 == 0) +{ +lean_object* x_1249; lean_object* x_1250; lean_object* x_1251; lean_object* x_1252; lean_object* x_1253; lean_object* x_1254; lean_object* x_1255; lean_object* x_1256; +x_1249 = lean_ctor_get(x_1234, 5); +lean_dec(x_1249); +x_1250 = lean_ctor_get(x_1234, 4); +lean_dec(x_1250); +x_1251 = lean_ctor_get(x_1234, 3); +lean_dec(x_1251); +x_1252 = lean_ctor_get(x_1234, 2); +lean_dec(x_1252); +x_1253 = lean_ctor_get(x_1234, 1); +lean_dec(x_1253); +x_1254 = lean_ctor_get(x_1234, 0); +lean_dec(x_1254); +x_1255 = lean_ctor_get(x_1247, 0); +lean_inc(x_1255); +x_1256 = lean_ctor_get(x_1247, 1); lean_inc(x_1256); -x_1257 = lean_ctor_get(x_1246, 1); +lean_dec(x_1247); +lean_ctor_set(x_1234, 5, x_1256); +x_5 = x_1255; +x_6 = x_1234; +goto block_34; +} +else +{ +lean_object* x_1257; lean_object* x_1258; lean_object* x_1259; +lean_dec(x_1234); +x_1257 = lean_ctor_get(x_1247, 0); lean_inc(x_1257); -lean_dec(x_1246); -x_1258 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_1258, 0, x_1235); -lean_ctor_set(x_1258, 1, x_1236); -lean_ctor_set(x_1258, 2, x_1237); -lean_ctor_set(x_1258, 3, x_1238); -lean_ctor_set(x_1258, 4, x_1239); -lean_ctor_set(x_1258, 5, x_1257); -x_5 = x_1256; -x_6 = x_1258; -goto block_33; +x_1258 = lean_ctor_get(x_1247, 1); +lean_inc(x_1258); +lean_dec(x_1247); +x_1259 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_1259, 0, x_1236); +lean_ctor_set(x_1259, 1, x_1237); +lean_ctor_set(x_1259, 2, x_1238); +lean_ctor_set(x_1259, 3, x_1239); +lean_ctor_set(x_1259, 4, x_1240); +lean_ctor_set(x_1259, 5, x_1258); +x_5 = x_1257; +x_6 = x_1259; +goto block_34; } } else { -lean_object* x_1259; +lean_object* x_1260; +lean_dec(x_1240); lean_dec(x_1239); lean_dec(x_1238); lean_dec(x_1237); lean_dec(x_1236); -lean_dec(x_1235); lean_dec(x_2); lean_dec(x_1); -x_1259 = lean_ctor_get(x_1246, 0); -lean_inc(x_1259); -lean_dec(x_1246); -if (lean_obj_tag(x_1259) == 0) -{ -lean_object* x_1260; lean_object* x_1261; lean_object* x_1262; lean_object* x_1263; lean_object* x_1264; uint8_t x_1265; -x_1260 = lean_ctor_get(x_1259, 0); +x_1260 = lean_ctor_get(x_1247, 0); lean_inc(x_1260); -x_1261 = lean_ctor_get(x_1259, 1); +lean_dec(x_1247); +if (lean_obj_tag(x_1260) == 0) +{ +lean_object* x_1261; lean_object* x_1262; lean_object* x_1263; lean_object* x_1264; lean_object* x_1265; uint8_t x_1266; +x_1261 = lean_ctor_get(x_1260, 0); lean_inc(x_1261); -lean_dec(x_1259); -x_1262 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1262, 0, x_1261); -x_1263 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1263, 0, x_1262); -x_1264 = l_Lean_Elab_Term_throwError___rarg(x_1260, x_1263, x_3, x_1233); +x_1262 = lean_ctor_get(x_1260, 1); +lean_inc(x_1262); lean_dec(x_1260); -x_1265 = !lean_is_exclusive(x_1264); -if (x_1265 == 0) +x_1263 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1263, 0, x_1262); +x_1264 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1264, 0, x_1263); +x_1265 = l_Lean_Elab_Term_throwErrorAt___rarg(x_1261, x_1264, x_3, x_1234); +lean_dec(x_1261); +x_1266 = !lean_is_exclusive(x_1265); +if (x_1266 == 0) { -return x_1264; +return x_1265; } else { -lean_object* x_1266; lean_object* x_1267; lean_object* x_1268; -x_1266 = lean_ctor_get(x_1264, 0); -x_1267 = lean_ctor_get(x_1264, 1); +lean_object* x_1267; lean_object* x_1268; lean_object* x_1269; +x_1267 = lean_ctor_get(x_1265, 0); +x_1268 = lean_ctor_get(x_1265, 1); +lean_inc(x_1268); lean_inc(x_1267); -lean_inc(x_1266); -lean_dec(x_1264); -x_1268 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1268, 0, x_1266); -lean_ctor_set(x_1268, 1, x_1267); -return x_1268; -} -} -else -{ -lean_object* x_1269; uint8_t x_1270; -lean_dec(x_3); -x_1269 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_1233); -x_1270 = !lean_is_exclusive(x_1269); -if (x_1270 == 0) -{ +lean_dec(x_1265); +x_1269 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1269, 0, x_1267); +lean_ctor_set(x_1269, 1, x_1268); return x_1269; } +} else { -lean_object* x_1271; lean_object* x_1272; lean_object* x_1273; -x_1271 = lean_ctor_get(x_1269, 0); -x_1272 = lean_ctor_get(x_1269, 1); +lean_object* x_1270; uint8_t x_1271; +lean_dec(x_3); +x_1270 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_1234); +x_1271 = !lean_is_exclusive(x_1270); +if (x_1271 == 0) +{ +return x_1270; +} +else +{ +lean_object* x_1272; lean_object* x_1273; lean_object* x_1274; +x_1272 = lean_ctor_get(x_1270, 0); +x_1273 = lean_ctor_get(x_1270, 1); +lean_inc(x_1273); lean_inc(x_1272); -lean_inc(x_1271); -lean_dec(x_1269); -x_1273 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1273, 0, x_1271); -lean_ctor_set(x_1273, 1, x_1272); -return x_1273; +lean_dec(x_1270); +x_1274 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1274, 0, x_1272); +lean_ctor_set(x_1274, 1, x_1273); +return x_1274; } } } } else { -lean_object* x_1274; lean_object* x_1275; uint8_t x_1276; -x_1274 = l_Lean_Syntax_getArg(x_1227, x_128); -x_1275 = l_Lean_identKind___closed__2; -lean_inc(x_1274); -x_1276 = l_Lean_Syntax_isOfKind(x_1274, x_1275); -if (x_1276 == 0) +lean_object* x_1275; lean_object* x_1276; uint8_t x_1277; +x_1275 = l_Lean_Syntax_getArg(x_1228, x_129); +x_1276 = l_Lean_identKind___closed__2; +lean_inc(x_1275); +x_1277 = l_Lean_Syntax_isOfKind(x_1275, x_1276); +if (x_1277 == 0) { -lean_object* x_1277; lean_object* x_1278; lean_object* x_1279; lean_object* x_1280; lean_object* x_1281; lean_object* x_1282; lean_object* x_1283; lean_object* x_1284; lean_object* x_1285; lean_object* x_1286; lean_object* x_1287; lean_object* x_1288; lean_object* x_1289; lean_object* x_1290; lean_object* x_1291; lean_object* x_1292; lean_object* x_1293; lean_object* x_1294; -lean_dec(x_1274); -lean_dec(x_1227); -lean_dec(x_1133); -lean_dec(x_223); -x_1277 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); -x_1278 = lean_ctor_get(x_1277, 0); -lean_inc(x_1278); -x_1279 = lean_ctor_get(x_1277, 1); +lean_object* x_1278; lean_object* x_1279; lean_object* x_1280; lean_object* x_1281; lean_object* x_1282; lean_object* x_1283; lean_object* x_1284; lean_object* x_1285; lean_object* x_1286; lean_object* x_1287; lean_object* x_1288; lean_object* x_1289; lean_object* x_1290; lean_object* x_1291; lean_object* x_1292; lean_object* x_1293; lean_object* x_1294; lean_object* x_1295; +lean_dec(x_1275); +lean_dec(x_1228); +lean_dec(x_1134); +lean_dec(x_224); +x_1278 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); +x_1279 = lean_ctor_get(x_1278, 0); lean_inc(x_1279); -lean_dec(x_1277); -x_1280 = l_Lean_Elab_Term_getEnv___rarg(x_1279); -x_1281 = lean_ctor_get(x_1280, 1); -lean_inc(x_1281); -x_1282 = lean_ctor_get(x_1280, 0); +x_1280 = lean_ctor_get(x_1278, 1); +lean_inc(x_1280); +lean_dec(x_1278); +x_1281 = l_Lean_Elab_Term_getEnv___rarg(x_1280); +x_1282 = lean_ctor_get(x_1281, 1); lean_inc(x_1282); -lean_dec(x_1280); x_1283 = lean_ctor_get(x_1281, 0); lean_inc(x_1283); -x_1284 = lean_ctor_get(x_1281, 1); -lean_inc(x_1284); -x_1285 = lean_ctor_get(x_1281, 2); -lean_inc(x_1285); -x_1286 = lean_ctor_get(x_1281, 3); -lean_inc(x_1286); -x_1287 = lean_ctor_get(x_1281, 4); -lean_inc(x_1287); -x_1288 = lean_ctor_get(x_1281, 5); -lean_inc(x_1288); -x_1289 = lean_ctor_get(x_3, 0); -lean_inc(x_1289); -x_1290 = lean_ctor_get(x_1289, 3); -lean_inc(x_1290); -x_1291 = lean_ctor_get(x_1289, 4); -lean_inc(x_1291); -lean_dec(x_1289); -x_1292 = lean_environment_main_module(x_1282); -x_1293 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_1293, 0, x_1292); -lean_ctor_set(x_1293, 1, x_1278); -lean_ctor_set(x_1293, 2, x_1290); -lean_ctor_set(x_1293, 3, x_1291); -lean_inc(x_1); -x_1294 = l___private_Lean_Elab_Match_31__expandMatchDiscr_x3f(x_1, x_1293, x_1288); -if (lean_obj_tag(x_1294) == 0) -{ -uint8_t x_1295; -x_1295 = !lean_is_exclusive(x_1281); -if (x_1295 == 0) -{ -lean_object* x_1296; lean_object* x_1297; lean_object* x_1298; lean_object* x_1299; lean_object* x_1300; lean_object* x_1301; lean_object* x_1302; lean_object* x_1303; -x_1296 = lean_ctor_get(x_1281, 5); -lean_dec(x_1296); -x_1297 = lean_ctor_get(x_1281, 4); -lean_dec(x_1297); -x_1298 = lean_ctor_get(x_1281, 3); -lean_dec(x_1298); -x_1299 = lean_ctor_get(x_1281, 2); -lean_dec(x_1299); -x_1300 = lean_ctor_get(x_1281, 1); -lean_dec(x_1300); -x_1301 = lean_ctor_get(x_1281, 0); -lean_dec(x_1301); -x_1302 = lean_ctor_get(x_1294, 0); -lean_inc(x_1302); -x_1303 = lean_ctor_get(x_1294, 1); -lean_inc(x_1303); -lean_dec(x_1294); -lean_ctor_set(x_1281, 5, x_1303); -x_5 = x_1302; -x_6 = x_1281; -goto block_33; -} -else -{ -lean_object* x_1304; lean_object* x_1305; lean_object* x_1306; lean_dec(x_1281); -x_1304 = lean_ctor_get(x_1294, 0); +x_1284 = lean_ctor_get(x_1282, 0); +lean_inc(x_1284); +x_1285 = lean_ctor_get(x_1282, 1); +lean_inc(x_1285); +x_1286 = lean_ctor_get(x_1282, 2); +lean_inc(x_1286); +x_1287 = lean_ctor_get(x_1282, 3); +lean_inc(x_1287); +x_1288 = lean_ctor_get(x_1282, 4); +lean_inc(x_1288); +x_1289 = lean_ctor_get(x_1282, 5); +lean_inc(x_1289); +x_1290 = lean_ctor_get(x_3, 0); +lean_inc(x_1290); +x_1291 = lean_ctor_get(x_1290, 3); +lean_inc(x_1291); +x_1292 = lean_ctor_get(x_1290, 4); +lean_inc(x_1292); +lean_dec(x_1290); +x_1293 = lean_environment_main_module(x_1283); +x_1294 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_1294, 0, x_1293); +lean_ctor_set(x_1294, 1, x_1279); +lean_ctor_set(x_1294, 2, x_1291); +lean_ctor_set(x_1294, 3, x_1292); +lean_inc(x_1); +x_1295 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_1294, x_1289); +if (lean_obj_tag(x_1295) == 0) +{ +uint8_t x_1296; +x_1296 = !lean_is_exclusive(x_1282); +if (x_1296 == 0) +{ +lean_object* x_1297; lean_object* x_1298; lean_object* x_1299; lean_object* x_1300; lean_object* x_1301; lean_object* x_1302; lean_object* x_1303; lean_object* x_1304; +x_1297 = lean_ctor_get(x_1282, 5); +lean_dec(x_1297); +x_1298 = lean_ctor_get(x_1282, 4); +lean_dec(x_1298); +x_1299 = lean_ctor_get(x_1282, 3); +lean_dec(x_1299); +x_1300 = lean_ctor_get(x_1282, 2); +lean_dec(x_1300); +x_1301 = lean_ctor_get(x_1282, 1); +lean_dec(x_1301); +x_1302 = lean_ctor_get(x_1282, 0); +lean_dec(x_1302); +x_1303 = lean_ctor_get(x_1295, 0); +lean_inc(x_1303); +x_1304 = lean_ctor_get(x_1295, 1); lean_inc(x_1304); -x_1305 = lean_ctor_get(x_1294, 1); +lean_dec(x_1295); +lean_ctor_set(x_1282, 5, x_1304); +x_5 = x_1303; +x_6 = x_1282; +goto block_34; +} +else +{ +lean_object* x_1305; lean_object* x_1306; lean_object* x_1307; +lean_dec(x_1282); +x_1305 = lean_ctor_get(x_1295, 0); lean_inc(x_1305); -lean_dec(x_1294); -x_1306 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_1306, 0, x_1283); -lean_ctor_set(x_1306, 1, x_1284); -lean_ctor_set(x_1306, 2, x_1285); -lean_ctor_set(x_1306, 3, x_1286); -lean_ctor_set(x_1306, 4, x_1287); -lean_ctor_set(x_1306, 5, x_1305); -x_5 = x_1304; -x_6 = x_1306; -goto block_33; +x_1306 = lean_ctor_get(x_1295, 1); +lean_inc(x_1306); +lean_dec(x_1295); +x_1307 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_1307, 0, x_1284); +lean_ctor_set(x_1307, 1, x_1285); +lean_ctor_set(x_1307, 2, x_1286); +lean_ctor_set(x_1307, 3, x_1287); +lean_ctor_set(x_1307, 4, x_1288); +lean_ctor_set(x_1307, 5, x_1306); +x_5 = x_1305; +x_6 = x_1307; +goto block_34; } } else { -lean_object* x_1307; +lean_object* x_1308; +lean_dec(x_1288); lean_dec(x_1287); lean_dec(x_1286); lean_dec(x_1285); lean_dec(x_1284); -lean_dec(x_1283); lean_dec(x_2); lean_dec(x_1); -x_1307 = lean_ctor_get(x_1294, 0); -lean_inc(x_1307); -lean_dec(x_1294); -if (lean_obj_tag(x_1307) == 0) -{ -lean_object* x_1308; lean_object* x_1309; lean_object* x_1310; lean_object* x_1311; lean_object* x_1312; uint8_t x_1313; -x_1308 = lean_ctor_get(x_1307, 0); +x_1308 = lean_ctor_get(x_1295, 0); lean_inc(x_1308); -x_1309 = lean_ctor_get(x_1307, 1); +lean_dec(x_1295); +if (lean_obj_tag(x_1308) == 0) +{ +lean_object* x_1309; lean_object* x_1310; lean_object* x_1311; lean_object* x_1312; lean_object* x_1313; uint8_t x_1314; +x_1309 = lean_ctor_get(x_1308, 0); lean_inc(x_1309); -lean_dec(x_1307); -x_1310 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1310, 0, x_1309); -x_1311 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1311, 0, x_1310); -x_1312 = l_Lean_Elab_Term_throwError___rarg(x_1308, x_1311, x_3, x_1281); +x_1310 = lean_ctor_get(x_1308, 1); +lean_inc(x_1310); lean_dec(x_1308); -x_1313 = !lean_is_exclusive(x_1312); -if (x_1313 == 0) +x_1311 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1311, 0, x_1310); +x_1312 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1312, 0, x_1311); +x_1313 = l_Lean_Elab_Term_throwErrorAt___rarg(x_1309, x_1312, x_3, x_1282); +lean_dec(x_1309); +x_1314 = !lean_is_exclusive(x_1313); +if (x_1314 == 0) { -return x_1312; +return x_1313; } else { -lean_object* x_1314; lean_object* x_1315; lean_object* x_1316; -x_1314 = lean_ctor_get(x_1312, 0); -x_1315 = lean_ctor_get(x_1312, 1); +lean_object* x_1315; lean_object* x_1316; lean_object* x_1317; +x_1315 = lean_ctor_get(x_1313, 0); +x_1316 = lean_ctor_get(x_1313, 1); +lean_inc(x_1316); lean_inc(x_1315); -lean_inc(x_1314); -lean_dec(x_1312); -x_1316 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1316, 0, x_1314); -lean_ctor_set(x_1316, 1, x_1315); -return x_1316; -} -} -else -{ -lean_object* x_1317; uint8_t x_1318; -lean_dec(x_3); -x_1317 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_1281); -x_1318 = !lean_is_exclusive(x_1317); -if (x_1318 == 0) -{ +lean_dec(x_1313); +x_1317 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1317, 0, x_1315); +lean_ctor_set(x_1317, 1, x_1316); return x_1317; } +} else { -lean_object* x_1319; lean_object* x_1320; lean_object* x_1321; -x_1319 = lean_ctor_get(x_1317, 0); -x_1320 = lean_ctor_get(x_1317, 1); +lean_object* x_1318; uint8_t x_1319; +lean_dec(x_3); +x_1318 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_1282); +x_1319 = !lean_is_exclusive(x_1318); +if (x_1319 == 0) +{ +return x_1318; +} +else +{ +lean_object* x_1320; lean_object* x_1321; lean_object* x_1322; +x_1320 = lean_ctor_get(x_1318, 0); +x_1321 = lean_ctor_get(x_1318, 1); +lean_inc(x_1321); lean_inc(x_1320); -lean_inc(x_1319); -lean_dec(x_1317); -x_1321 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1321, 0, x_1319); -lean_ctor_set(x_1321, 1, x_1320); -return x_1321; +lean_dec(x_1318); +x_1322 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1322, 0, x_1320); +lean_ctor_set(x_1322, 1, x_1321); +return x_1322; } } } } else { -lean_object* x_1322; uint8_t x_1323; uint8_t x_1372; -x_1322 = l_Lean_Syntax_getArg(x_1227, x_80); -lean_dec(x_1227); -lean_inc(x_1322); -x_1372 = l_Lean_Syntax_isOfKind(x_1322, x_1030); -if (x_1372 == 0) +lean_object* x_1323; uint8_t x_1324; uint8_t x_1373; +x_1323 = l_Lean_Syntax_getArg(x_1228, x_81); +lean_dec(x_1228); +lean_inc(x_1323); +x_1373 = l_Lean_Syntax_isOfKind(x_1323, x_1031); +if (x_1373 == 0) { -uint8_t x_1373; -lean_dec(x_1322); -x_1373 = 0; -x_1323 = x_1373; -goto block_1371; +uint8_t x_1374; +lean_dec(x_1323); +x_1374 = 0; +x_1324 = x_1374; +goto block_1372; } else { -lean_object* x_1374; lean_object* x_1375; uint8_t x_1376; -x_1374 = l_Lean_Syntax_getArgs(x_1322); -lean_dec(x_1322); -x_1375 = lean_array_get_size(x_1374); -lean_dec(x_1374); -x_1376 = lean_nat_dec_eq(x_1375, x_128); +lean_object* x_1375; lean_object* x_1376; uint8_t x_1377; +x_1375 = l_Lean_Syntax_getArgs(x_1323); +lean_dec(x_1323); +x_1376 = lean_array_get_size(x_1375); lean_dec(x_1375); -x_1323 = x_1376; -goto block_1371; +x_1377 = lean_nat_dec_eq(x_1376, x_129); +lean_dec(x_1376); +x_1324 = x_1377; +goto block_1372; } -block_1371: +block_1372: { -if (x_1323 == 0) +if (x_1324 == 0) { -lean_object* x_1324; lean_object* x_1325; lean_object* x_1326; lean_object* x_1327; lean_object* x_1328; lean_object* x_1329; lean_object* x_1330; lean_object* x_1331; lean_object* x_1332; lean_object* x_1333; lean_object* x_1334; lean_object* x_1335; lean_object* x_1336; lean_object* x_1337; lean_object* x_1338; lean_object* x_1339; lean_object* x_1340; lean_object* x_1341; -lean_dec(x_1274); -lean_dec(x_1133); -lean_dec(x_223); -x_1324 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); -x_1325 = lean_ctor_get(x_1324, 0); -lean_inc(x_1325); -x_1326 = lean_ctor_get(x_1324, 1); +lean_object* x_1325; lean_object* x_1326; lean_object* x_1327; lean_object* x_1328; lean_object* x_1329; lean_object* x_1330; lean_object* x_1331; lean_object* x_1332; lean_object* x_1333; lean_object* x_1334; lean_object* x_1335; lean_object* x_1336; lean_object* x_1337; lean_object* x_1338; lean_object* x_1339; lean_object* x_1340; lean_object* x_1341; lean_object* x_1342; +lean_dec(x_1275); +lean_dec(x_1134); +lean_dec(x_224); +x_1325 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); +x_1326 = lean_ctor_get(x_1325, 0); lean_inc(x_1326); -lean_dec(x_1324); -x_1327 = l_Lean_Elab_Term_getEnv___rarg(x_1326); -x_1328 = lean_ctor_get(x_1327, 1); -lean_inc(x_1328); -x_1329 = lean_ctor_get(x_1327, 0); +x_1327 = lean_ctor_get(x_1325, 1); +lean_inc(x_1327); +lean_dec(x_1325); +x_1328 = l_Lean_Elab_Term_getEnv___rarg(x_1327); +x_1329 = lean_ctor_get(x_1328, 1); lean_inc(x_1329); -lean_dec(x_1327); x_1330 = lean_ctor_get(x_1328, 0); lean_inc(x_1330); -x_1331 = lean_ctor_get(x_1328, 1); -lean_inc(x_1331); -x_1332 = lean_ctor_get(x_1328, 2); -lean_inc(x_1332); -x_1333 = lean_ctor_get(x_1328, 3); -lean_inc(x_1333); -x_1334 = lean_ctor_get(x_1328, 4); -lean_inc(x_1334); -x_1335 = lean_ctor_get(x_1328, 5); -lean_inc(x_1335); -x_1336 = lean_ctor_get(x_3, 0); -lean_inc(x_1336); -x_1337 = lean_ctor_get(x_1336, 3); -lean_inc(x_1337); -x_1338 = lean_ctor_get(x_1336, 4); -lean_inc(x_1338); -lean_dec(x_1336); -x_1339 = lean_environment_main_module(x_1329); -x_1340 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_1340, 0, x_1339); -lean_ctor_set(x_1340, 1, x_1325); -lean_ctor_set(x_1340, 2, x_1337); -lean_ctor_set(x_1340, 3, x_1338); -lean_inc(x_1); -x_1341 = l___private_Lean_Elab_Match_31__expandMatchDiscr_x3f(x_1, x_1340, x_1335); -if (lean_obj_tag(x_1341) == 0) -{ -uint8_t x_1342; -x_1342 = !lean_is_exclusive(x_1328); -if (x_1342 == 0) -{ -lean_object* x_1343; lean_object* x_1344; lean_object* x_1345; lean_object* x_1346; lean_object* x_1347; lean_object* x_1348; lean_object* x_1349; lean_object* x_1350; -x_1343 = lean_ctor_get(x_1328, 5); -lean_dec(x_1343); -x_1344 = lean_ctor_get(x_1328, 4); -lean_dec(x_1344); -x_1345 = lean_ctor_get(x_1328, 3); -lean_dec(x_1345); -x_1346 = lean_ctor_get(x_1328, 2); -lean_dec(x_1346); -x_1347 = lean_ctor_get(x_1328, 1); -lean_dec(x_1347); -x_1348 = lean_ctor_get(x_1328, 0); -lean_dec(x_1348); -x_1349 = lean_ctor_get(x_1341, 0); -lean_inc(x_1349); -x_1350 = lean_ctor_get(x_1341, 1); -lean_inc(x_1350); -lean_dec(x_1341); -lean_ctor_set(x_1328, 5, x_1350); -x_5 = x_1349; -x_6 = x_1328; -goto block_33; -} -else -{ -lean_object* x_1351; lean_object* x_1352; lean_object* x_1353; lean_dec(x_1328); -x_1351 = lean_ctor_get(x_1341, 0); +x_1331 = lean_ctor_get(x_1329, 0); +lean_inc(x_1331); +x_1332 = lean_ctor_get(x_1329, 1); +lean_inc(x_1332); +x_1333 = lean_ctor_get(x_1329, 2); +lean_inc(x_1333); +x_1334 = lean_ctor_get(x_1329, 3); +lean_inc(x_1334); +x_1335 = lean_ctor_get(x_1329, 4); +lean_inc(x_1335); +x_1336 = lean_ctor_get(x_1329, 5); +lean_inc(x_1336); +x_1337 = lean_ctor_get(x_3, 0); +lean_inc(x_1337); +x_1338 = lean_ctor_get(x_1337, 3); +lean_inc(x_1338); +x_1339 = lean_ctor_get(x_1337, 4); +lean_inc(x_1339); +lean_dec(x_1337); +x_1340 = lean_environment_main_module(x_1330); +x_1341 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_1341, 0, x_1340); +lean_ctor_set(x_1341, 1, x_1326); +lean_ctor_set(x_1341, 2, x_1338); +lean_ctor_set(x_1341, 3, x_1339); +lean_inc(x_1); +x_1342 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_1341, x_1336); +if (lean_obj_tag(x_1342) == 0) +{ +uint8_t x_1343; +x_1343 = !lean_is_exclusive(x_1329); +if (x_1343 == 0) +{ +lean_object* x_1344; lean_object* x_1345; lean_object* x_1346; lean_object* x_1347; lean_object* x_1348; lean_object* x_1349; lean_object* x_1350; lean_object* x_1351; +x_1344 = lean_ctor_get(x_1329, 5); +lean_dec(x_1344); +x_1345 = lean_ctor_get(x_1329, 4); +lean_dec(x_1345); +x_1346 = lean_ctor_get(x_1329, 3); +lean_dec(x_1346); +x_1347 = lean_ctor_get(x_1329, 2); +lean_dec(x_1347); +x_1348 = lean_ctor_get(x_1329, 1); +lean_dec(x_1348); +x_1349 = lean_ctor_get(x_1329, 0); +lean_dec(x_1349); +x_1350 = lean_ctor_get(x_1342, 0); +lean_inc(x_1350); +x_1351 = lean_ctor_get(x_1342, 1); lean_inc(x_1351); -x_1352 = lean_ctor_get(x_1341, 1); +lean_dec(x_1342); +lean_ctor_set(x_1329, 5, x_1351); +x_5 = x_1350; +x_6 = x_1329; +goto block_34; +} +else +{ +lean_object* x_1352; lean_object* x_1353; lean_object* x_1354; +lean_dec(x_1329); +x_1352 = lean_ctor_get(x_1342, 0); lean_inc(x_1352); -lean_dec(x_1341); -x_1353 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_1353, 0, x_1330); -lean_ctor_set(x_1353, 1, x_1331); -lean_ctor_set(x_1353, 2, x_1332); -lean_ctor_set(x_1353, 3, x_1333); -lean_ctor_set(x_1353, 4, x_1334); -lean_ctor_set(x_1353, 5, x_1352); -x_5 = x_1351; -x_6 = x_1353; -goto block_33; +x_1353 = lean_ctor_get(x_1342, 1); +lean_inc(x_1353); +lean_dec(x_1342); +x_1354 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_1354, 0, x_1331); +lean_ctor_set(x_1354, 1, x_1332); +lean_ctor_set(x_1354, 2, x_1333); +lean_ctor_set(x_1354, 3, x_1334); +lean_ctor_set(x_1354, 4, x_1335); +lean_ctor_set(x_1354, 5, x_1353); +x_5 = x_1352; +x_6 = x_1354; +goto block_34; } } else { -lean_object* x_1354; +lean_object* x_1355; +lean_dec(x_1335); lean_dec(x_1334); lean_dec(x_1333); lean_dec(x_1332); lean_dec(x_1331); -lean_dec(x_1330); lean_dec(x_2); lean_dec(x_1); -x_1354 = lean_ctor_get(x_1341, 0); -lean_inc(x_1354); -lean_dec(x_1341); -if (lean_obj_tag(x_1354) == 0) -{ -lean_object* x_1355; lean_object* x_1356; lean_object* x_1357; lean_object* x_1358; lean_object* x_1359; uint8_t x_1360; -x_1355 = lean_ctor_get(x_1354, 0); +x_1355 = lean_ctor_get(x_1342, 0); lean_inc(x_1355); -x_1356 = lean_ctor_get(x_1354, 1); +lean_dec(x_1342); +if (lean_obj_tag(x_1355) == 0) +{ +lean_object* x_1356; lean_object* x_1357; lean_object* x_1358; lean_object* x_1359; lean_object* x_1360; uint8_t x_1361; +x_1356 = lean_ctor_get(x_1355, 0); lean_inc(x_1356); -lean_dec(x_1354); -x_1357 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1357, 0, x_1356); -x_1358 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1358, 0, x_1357); -x_1359 = l_Lean_Elab_Term_throwError___rarg(x_1355, x_1358, x_3, x_1328); +x_1357 = lean_ctor_get(x_1355, 1); +lean_inc(x_1357); lean_dec(x_1355); -x_1360 = !lean_is_exclusive(x_1359); -if (x_1360 == 0) +x_1358 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1358, 0, x_1357); +x_1359 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1359, 0, x_1358); +x_1360 = l_Lean_Elab_Term_throwErrorAt___rarg(x_1356, x_1359, x_3, x_1329); +lean_dec(x_1356); +x_1361 = !lean_is_exclusive(x_1360); +if (x_1361 == 0) { -return x_1359; +return x_1360; } else { -lean_object* x_1361; lean_object* x_1362; lean_object* x_1363; -x_1361 = lean_ctor_get(x_1359, 0); -x_1362 = lean_ctor_get(x_1359, 1); +lean_object* x_1362; lean_object* x_1363; lean_object* x_1364; +x_1362 = lean_ctor_get(x_1360, 0); +x_1363 = lean_ctor_get(x_1360, 1); +lean_inc(x_1363); lean_inc(x_1362); -lean_inc(x_1361); -lean_dec(x_1359); -x_1363 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1363, 0, x_1361); -lean_ctor_set(x_1363, 1, x_1362); -return x_1363; -} -} -else -{ -lean_object* x_1364; uint8_t x_1365; -lean_dec(x_3); -x_1364 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_1328); -x_1365 = !lean_is_exclusive(x_1364); -if (x_1365 == 0) -{ +lean_dec(x_1360); +x_1364 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1364, 0, x_1362); +lean_ctor_set(x_1364, 1, x_1363); return x_1364; } +} else { -lean_object* x_1366; lean_object* x_1367; lean_object* x_1368; -x_1366 = lean_ctor_get(x_1364, 0); -x_1367 = lean_ctor_get(x_1364, 1); +lean_object* x_1365; uint8_t x_1366; +lean_dec(x_3); +x_1365 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_1329); +x_1366 = !lean_is_exclusive(x_1365); +if (x_1366 == 0) +{ +return x_1365; +} +else +{ +lean_object* x_1367; lean_object* x_1368; lean_object* x_1369; +x_1367 = lean_ctor_get(x_1365, 0); +x_1368 = lean_ctor_get(x_1365, 1); +lean_inc(x_1368); lean_inc(x_1367); -lean_inc(x_1366); -lean_dec(x_1364); -x_1368 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1368, 0, x_1366); -lean_ctor_set(x_1368, 1, x_1367); -return x_1368; +lean_dec(x_1365); +x_1369 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1369, 0, x_1367); +lean_ctor_set(x_1369, 1, x_1368); +return x_1369; } } } } else { -lean_object* x_1369; lean_object* x_1370; -x_1369 = l_Lean_Syntax_getArg(x_1133, x_224); -lean_dec(x_1133); -x_1370 = l___private_Lean_Elab_Match_1__expandSimpleMatch(x_1, x_223, x_1274, x_1369, x_2, x_3, x_4); -return x_1370; +lean_object* x_1370; lean_object* x_1371; +x_1370 = l_Lean_Syntax_getArg(x_1134, x_225); +lean_dec(x_1134); +x_1371 = l___private_Lean_Elab_Match_1__expandSimpleMatch(x_1, x_224, x_1275, x_1370, x_2, x_3, x_4); +return x_1371; } } } @@ -24757,1186 +25267,1186 @@ return x_1370; } } } -block_1730: +block_1731: +{ +if (x_1407 == 0) { if (x_1406 == 0) { -if (x_1405 == 0) -{ -uint8_t x_1407; -lean_dec(x_1038); -x_1407 = 0; -x_1039 = x_1407; -goto block_1404; +uint8_t x_1408; +lean_dec(x_1039); +x_1408 = 0; +x_1040 = x_1408; +goto block_1405; } else { -lean_object* x_1408; lean_object* x_1409; uint8_t x_1410; -x_1408 = l_Lean_Syntax_getArgs(x_1038); -lean_dec(x_1038); -x_1409 = lean_array_get_size(x_1408); -lean_dec(x_1408); -x_1410 = lean_nat_dec_eq(x_1409, x_80); +lean_object* x_1409; lean_object* x_1410; uint8_t x_1411; +x_1409 = l_Lean_Syntax_getArgs(x_1039); +lean_dec(x_1039); +x_1410 = lean_array_get_size(x_1409); lean_dec(x_1409); -x_1039 = x_1410; -goto block_1404; +x_1411 = lean_nat_dec_eq(x_1410, x_81); +lean_dec(x_1410); +x_1040 = x_1411; +goto block_1405; } } else { -lean_object* x_1411; lean_object* x_1412; uint8_t x_1413; uint8_t x_1725; -lean_dec(x_1038); -x_1411 = lean_unsigned_to_nat(5u); -x_1412 = l_Lean_Syntax_getArg(x_1, x_1411); -lean_inc(x_1412); -x_1725 = l_Lean_Syntax_isOfKind(x_1412, x_1030); -if (x_1725 == 0) +lean_object* x_1412; lean_object* x_1413; uint8_t x_1414; uint8_t x_1726; +lean_dec(x_1039); +x_1412 = lean_unsigned_to_nat(5u); +x_1413 = l_Lean_Syntax_getArg(x_1, x_1412); +lean_inc(x_1413); +x_1726 = l_Lean_Syntax_isOfKind(x_1413, x_1031); +if (x_1726 == 0) { -uint8_t x_1726; -x_1726 = 0; -x_1413 = x_1726; -goto block_1724; +uint8_t x_1727; +x_1727 = 0; +x_1414 = x_1727; +goto block_1725; } else { -lean_object* x_1727; lean_object* x_1728; uint8_t x_1729; -x_1727 = l_Lean_Syntax_getArgs(x_1412); -x_1728 = lean_array_get_size(x_1727); -lean_dec(x_1727); -x_1729 = lean_nat_dec_eq(x_1728, x_80); +lean_object* x_1728; lean_object* x_1729; uint8_t x_1730; +x_1728 = l_Lean_Syntax_getArgs(x_1413); +x_1729 = lean_array_get_size(x_1728); lean_dec(x_1728); -x_1413 = x_1729; -goto block_1724; +x_1730 = lean_nat_dec_eq(x_1729, x_81); +lean_dec(x_1729); +x_1414 = x_1730; +goto block_1725; } -block_1724: +block_1725: { -if (x_1413 == 0) +if (x_1414 == 0) { -lean_object* x_1414; lean_object* x_1415; lean_object* x_1416; lean_object* x_1417; lean_object* x_1418; lean_object* x_1419; lean_object* x_1420; lean_object* x_1421; lean_object* x_1422; lean_object* x_1423; lean_object* x_1424; lean_object* x_1425; lean_object* x_1426; lean_object* x_1427; lean_object* x_1428; lean_object* x_1429; lean_object* x_1430; lean_object* x_1431; -lean_dec(x_1412); -lean_dec(x_223); -x_1414 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); -x_1415 = lean_ctor_get(x_1414, 0); -lean_inc(x_1415); -x_1416 = lean_ctor_get(x_1414, 1); +lean_object* x_1415; lean_object* x_1416; lean_object* x_1417; lean_object* x_1418; lean_object* x_1419; lean_object* x_1420; lean_object* x_1421; lean_object* x_1422; lean_object* x_1423; lean_object* x_1424; lean_object* x_1425; lean_object* x_1426; lean_object* x_1427; lean_object* x_1428; lean_object* x_1429; lean_object* x_1430; lean_object* x_1431; lean_object* x_1432; +lean_dec(x_1413); +lean_dec(x_224); +x_1415 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); +x_1416 = lean_ctor_get(x_1415, 0); lean_inc(x_1416); -lean_dec(x_1414); -x_1417 = l_Lean_Elab_Term_getEnv___rarg(x_1416); -x_1418 = lean_ctor_get(x_1417, 1); -lean_inc(x_1418); -x_1419 = lean_ctor_get(x_1417, 0); +x_1417 = lean_ctor_get(x_1415, 1); +lean_inc(x_1417); +lean_dec(x_1415); +x_1418 = l_Lean_Elab_Term_getEnv___rarg(x_1417); +x_1419 = lean_ctor_get(x_1418, 1); lean_inc(x_1419); -lean_dec(x_1417); x_1420 = lean_ctor_get(x_1418, 0); lean_inc(x_1420); -x_1421 = lean_ctor_get(x_1418, 1); -lean_inc(x_1421); -x_1422 = lean_ctor_get(x_1418, 2); -lean_inc(x_1422); -x_1423 = lean_ctor_get(x_1418, 3); -lean_inc(x_1423); -x_1424 = lean_ctor_get(x_1418, 4); -lean_inc(x_1424); -x_1425 = lean_ctor_get(x_1418, 5); -lean_inc(x_1425); -x_1426 = lean_ctor_get(x_3, 0); -lean_inc(x_1426); -x_1427 = lean_ctor_get(x_1426, 3); -lean_inc(x_1427); -x_1428 = lean_ctor_get(x_1426, 4); -lean_inc(x_1428); -lean_dec(x_1426); -x_1429 = lean_environment_main_module(x_1419); -x_1430 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_1430, 0, x_1429); -lean_ctor_set(x_1430, 1, x_1415); -lean_ctor_set(x_1430, 2, x_1427); -lean_ctor_set(x_1430, 3, x_1428); -lean_inc(x_1); -x_1431 = l___private_Lean_Elab_Match_31__expandMatchDiscr_x3f(x_1, x_1430, x_1425); -if (lean_obj_tag(x_1431) == 0) -{ -uint8_t x_1432; -x_1432 = !lean_is_exclusive(x_1418); -if (x_1432 == 0) -{ -lean_object* x_1433; lean_object* x_1434; lean_object* x_1435; lean_object* x_1436; lean_object* x_1437; lean_object* x_1438; lean_object* x_1439; lean_object* x_1440; -x_1433 = lean_ctor_get(x_1418, 5); -lean_dec(x_1433); -x_1434 = lean_ctor_get(x_1418, 4); -lean_dec(x_1434); -x_1435 = lean_ctor_get(x_1418, 3); -lean_dec(x_1435); -x_1436 = lean_ctor_get(x_1418, 2); -lean_dec(x_1436); -x_1437 = lean_ctor_get(x_1418, 1); -lean_dec(x_1437); -x_1438 = lean_ctor_get(x_1418, 0); -lean_dec(x_1438); -x_1439 = lean_ctor_get(x_1431, 0); -lean_inc(x_1439); -x_1440 = lean_ctor_get(x_1431, 1); -lean_inc(x_1440); -lean_dec(x_1431); -lean_ctor_set(x_1418, 5, x_1440); -x_5 = x_1439; -x_6 = x_1418; -goto block_33; -} -else -{ -lean_object* x_1441; lean_object* x_1442; lean_object* x_1443; lean_dec(x_1418); -x_1441 = lean_ctor_get(x_1431, 0); +x_1421 = lean_ctor_get(x_1419, 0); +lean_inc(x_1421); +x_1422 = lean_ctor_get(x_1419, 1); +lean_inc(x_1422); +x_1423 = lean_ctor_get(x_1419, 2); +lean_inc(x_1423); +x_1424 = lean_ctor_get(x_1419, 3); +lean_inc(x_1424); +x_1425 = lean_ctor_get(x_1419, 4); +lean_inc(x_1425); +x_1426 = lean_ctor_get(x_1419, 5); +lean_inc(x_1426); +x_1427 = lean_ctor_get(x_3, 0); +lean_inc(x_1427); +x_1428 = lean_ctor_get(x_1427, 3); +lean_inc(x_1428); +x_1429 = lean_ctor_get(x_1427, 4); +lean_inc(x_1429); +lean_dec(x_1427); +x_1430 = lean_environment_main_module(x_1420); +x_1431 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_1431, 0, x_1430); +lean_ctor_set(x_1431, 1, x_1416); +lean_ctor_set(x_1431, 2, x_1428); +lean_ctor_set(x_1431, 3, x_1429); +lean_inc(x_1); +x_1432 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_1431, x_1426); +if (lean_obj_tag(x_1432) == 0) +{ +uint8_t x_1433; +x_1433 = !lean_is_exclusive(x_1419); +if (x_1433 == 0) +{ +lean_object* x_1434; lean_object* x_1435; lean_object* x_1436; lean_object* x_1437; lean_object* x_1438; lean_object* x_1439; lean_object* x_1440; lean_object* x_1441; +x_1434 = lean_ctor_get(x_1419, 5); +lean_dec(x_1434); +x_1435 = lean_ctor_get(x_1419, 4); +lean_dec(x_1435); +x_1436 = lean_ctor_get(x_1419, 3); +lean_dec(x_1436); +x_1437 = lean_ctor_get(x_1419, 2); +lean_dec(x_1437); +x_1438 = lean_ctor_get(x_1419, 1); +lean_dec(x_1438); +x_1439 = lean_ctor_get(x_1419, 0); +lean_dec(x_1439); +x_1440 = lean_ctor_get(x_1432, 0); +lean_inc(x_1440); +x_1441 = lean_ctor_get(x_1432, 1); lean_inc(x_1441); -x_1442 = lean_ctor_get(x_1431, 1); +lean_dec(x_1432); +lean_ctor_set(x_1419, 5, x_1441); +x_5 = x_1440; +x_6 = x_1419; +goto block_34; +} +else +{ +lean_object* x_1442; lean_object* x_1443; lean_object* x_1444; +lean_dec(x_1419); +x_1442 = lean_ctor_get(x_1432, 0); lean_inc(x_1442); -lean_dec(x_1431); -x_1443 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_1443, 0, x_1420); -lean_ctor_set(x_1443, 1, x_1421); -lean_ctor_set(x_1443, 2, x_1422); -lean_ctor_set(x_1443, 3, x_1423); -lean_ctor_set(x_1443, 4, x_1424); -lean_ctor_set(x_1443, 5, x_1442); -x_5 = x_1441; -x_6 = x_1443; -goto block_33; +x_1443 = lean_ctor_get(x_1432, 1); +lean_inc(x_1443); +lean_dec(x_1432); +x_1444 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_1444, 0, x_1421); +lean_ctor_set(x_1444, 1, x_1422); +lean_ctor_set(x_1444, 2, x_1423); +lean_ctor_set(x_1444, 3, x_1424); +lean_ctor_set(x_1444, 4, x_1425); +lean_ctor_set(x_1444, 5, x_1443); +x_5 = x_1442; +x_6 = x_1444; +goto block_34; } } else { -lean_object* x_1444; +lean_object* x_1445; +lean_dec(x_1425); lean_dec(x_1424); lean_dec(x_1423); lean_dec(x_1422); lean_dec(x_1421); -lean_dec(x_1420); lean_dec(x_2); lean_dec(x_1); -x_1444 = lean_ctor_get(x_1431, 0); -lean_inc(x_1444); -lean_dec(x_1431); -if (lean_obj_tag(x_1444) == 0) -{ -lean_object* x_1445; lean_object* x_1446; lean_object* x_1447; lean_object* x_1448; lean_object* x_1449; uint8_t x_1450; -x_1445 = lean_ctor_get(x_1444, 0); +x_1445 = lean_ctor_get(x_1432, 0); lean_inc(x_1445); -x_1446 = lean_ctor_get(x_1444, 1); +lean_dec(x_1432); +if (lean_obj_tag(x_1445) == 0) +{ +lean_object* x_1446; lean_object* x_1447; lean_object* x_1448; lean_object* x_1449; lean_object* x_1450; uint8_t x_1451; +x_1446 = lean_ctor_get(x_1445, 0); lean_inc(x_1446); -lean_dec(x_1444); -x_1447 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1447, 0, x_1446); -x_1448 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1448, 0, x_1447); -x_1449 = l_Lean_Elab_Term_throwError___rarg(x_1445, x_1448, x_3, x_1418); +x_1447 = lean_ctor_get(x_1445, 1); +lean_inc(x_1447); lean_dec(x_1445); -x_1450 = !lean_is_exclusive(x_1449); -if (x_1450 == 0) +x_1448 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1448, 0, x_1447); +x_1449 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1449, 0, x_1448); +x_1450 = l_Lean_Elab_Term_throwErrorAt___rarg(x_1446, x_1449, x_3, x_1419); +lean_dec(x_1446); +x_1451 = !lean_is_exclusive(x_1450); +if (x_1451 == 0) { -return x_1449; +return x_1450; } else { -lean_object* x_1451; lean_object* x_1452; lean_object* x_1453; -x_1451 = lean_ctor_get(x_1449, 0); -x_1452 = lean_ctor_get(x_1449, 1); +lean_object* x_1452; lean_object* x_1453; lean_object* x_1454; +x_1452 = lean_ctor_get(x_1450, 0); +x_1453 = lean_ctor_get(x_1450, 1); +lean_inc(x_1453); lean_inc(x_1452); -lean_inc(x_1451); -lean_dec(x_1449); -x_1453 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1453, 0, x_1451); -lean_ctor_set(x_1453, 1, x_1452); -return x_1453; -} -} -else -{ -lean_object* x_1454; uint8_t x_1455; -lean_dec(x_3); -x_1454 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_1418); -x_1455 = !lean_is_exclusive(x_1454); -if (x_1455 == 0) -{ +lean_dec(x_1450); +x_1454 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1454, 0, x_1452); +lean_ctor_set(x_1454, 1, x_1453); return x_1454; } +} else { -lean_object* x_1456; lean_object* x_1457; lean_object* x_1458; -x_1456 = lean_ctor_get(x_1454, 0); -x_1457 = lean_ctor_get(x_1454, 1); +lean_object* x_1455; uint8_t x_1456; +lean_dec(x_3); +x_1455 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_1419); +x_1456 = !lean_is_exclusive(x_1455); +if (x_1456 == 0) +{ +return x_1455; +} +else +{ +lean_object* x_1457; lean_object* x_1458; lean_object* x_1459; +x_1457 = lean_ctor_get(x_1455, 0); +x_1458 = lean_ctor_get(x_1455, 1); +lean_inc(x_1458); lean_inc(x_1457); -lean_inc(x_1456); -lean_dec(x_1454); -x_1458 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1458, 0, x_1456); -lean_ctor_set(x_1458, 1, x_1457); -return x_1458; +lean_dec(x_1455); +x_1459 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1459, 0, x_1457); +lean_ctor_set(x_1459, 1, x_1458); +return x_1459; } } } } else { -lean_object* x_1459; uint8_t x_1460; lean_object* x_1717; uint8_t x_1718; -x_1459 = l_Lean_Syntax_getArg(x_1412, x_128); -lean_dec(x_1412); -x_1717 = l_Lean_Parser_Term_matchAlt___closed__2; -lean_inc(x_1459); -x_1718 = l_Lean_Syntax_isOfKind(x_1459, x_1717); -if (x_1718 == 0) +lean_object* x_1460; uint8_t x_1461; lean_object* x_1718; uint8_t x_1719; +x_1460 = l_Lean_Syntax_getArg(x_1413, x_129); +lean_dec(x_1413); +x_1718 = l_Lean_Parser_Term_matchAlt___closed__2; +lean_inc(x_1460); +x_1719 = l_Lean_Syntax_isOfKind(x_1460, x_1718); +if (x_1719 == 0) { -uint8_t x_1719; -x_1719 = 0; -x_1460 = x_1719; -goto block_1716; +uint8_t x_1720; +x_1720 = 0; +x_1461 = x_1720; +goto block_1717; } else { -lean_object* x_1720; lean_object* x_1721; lean_object* x_1722; uint8_t x_1723; -x_1720 = l_Lean_Syntax_getArgs(x_1459); -x_1721 = lean_array_get_size(x_1720); -lean_dec(x_1720); -x_1722 = lean_unsigned_to_nat(3u); -x_1723 = lean_nat_dec_eq(x_1721, x_1722); +lean_object* x_1721; lean_object* x_1722; lean_object* x_1723; uint8_t x_1724; +x_1721 = l_Lean_Syntax_getArgs(x_1460); +x_1722 = lean_array_get_size(x_1721); lean_dec(x_1721); -x_1460 = x_1723; -goto block_1716; +x_1723 = lean_unsigned_to_nat(3u); +x_1724 = lean_nat_dec_eq(x_1722, x_1723); +lean_dec(x_1722); +x_1461 = x_1724; +goto block_1717; } -block_1716: +block_1717: { -if (x_1460 == 0) +if (x_1461 == 0) { -lean_object* x_1461; lean_object* x_1462; lean_object* x_1463; lean_object* x_1464; lean_object* x_1465; lean_object* x_1466; lean_object* x_1467; lean_object* x_1468; lean_object* x_1469; lean_object* x_1470; lean_object* x_1471; lean_object* x_1472; lean_object* x_1473; lean_object* x_1474; lean_object* x_1475; lean_object* x_1476; lean_object* x_1477; lean_object* x_1478; -lean_dec(x_1459); -lean_dec(x_223); -x_1461 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); -x_1462 = lean_ctor_get(x_1461, 0); -lean_inc(x_1462); -x_1463 = lean_ctor_get(x_1461, 1); +lean_object* x_1462; lean_object* x_1463; lean_object* x_1464; lean_object* x_1465; lean_object* x_1466; lean_object* x_1467; lean_object* x_1468; lean_object* x_1469; lean_object* x_1470; lean_object* x_1471; lean_object* x_1472; lean_object* x_1473; lean_object* x_1474; lean_object* x_1475; lean_object* x_1476; lean_object* x_1477; lean_object* x_1478; lean_object* x_1479; +lean_dec(x_1460); +lean_dec(x_224); +x_1462 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); +x_1463 = lean_ctor_get(x_1462, 0); lean_inc(x_1463); -lean_dec(x_1461); -x_1464 = l_Lean_Elab_Term_getEnv___rarg(x_1463); -x_1465 = lean_ctor_get(x_1464, 1); -lean_inc(x_1465); -x_1466 = lean_ctor_get(x_1464, 0); +x_1464 = lean_ctor_get(x_1462, 1); +lean_inc(x_1464); +lean_dec(x_1462); +x_1465 = l_Lean_Elab_Term_getEnv___rarg(x_1464); +x_1466 = lean_ctor_get(x_1465, 1); lean_inc(x_1466); -lean_dec(x_1464); x_1467 = lean_ctor_get(x_1465, 0); lean_inc(x_1467); -x_1468 = lean_ctor_get(x_1465, 1); -lean_inc(x_1468); -x_1469 = lean_ctor_get(x_1465, 2); -lean_inc(x_1469); -x_1470 = lean_ctor_get(x_1465, 3); -lean_inc(x_1470); -x_1471 = lean_ctor_get(x_1465, 4); -lean_inc(x_1471); -x_1472 = lean_ctor_get(x_1465, 5); -lean_inc(x_1472); -x_1473 = lean_ctor_get(x_3, 0); -lean_inc(x_1473); -x_1474 = lean_ctor_get(x_1473, 3); -lean_inc(x_1474); -x_1475 = lean_ctor_get(x_1473, 4); -lean_inc(x_1475); -lean_dec(x_1473); -x_1476 = lean_environment_main_module(x_1466); -x_1477 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_1477, 0, x_1476); -lean_ctor_set(x_1477, 1, x_1462); -lean_ctor_set(x_1477, 2, x_1474); -lean_ctor_set(x_1477, 3, x_1475); -lean_inc(x_1); -x_1478 = l___private_Lean_Elab_Match_31__expandMatchDiscr_x3f(x_1, x_1477, x_1472); -if (lean_obj_tag(x_1478) == 0) -{ -uint8_t x_1479; -x_1479 = !lean_is_exclusive(x_1465); -if (x_1479 == 0) -{ -lean_object* x_1480; lean_object* x_1481; lean_object* x_1482; lean_object* x_1483; lean_object* x_1484; lean_object* x_1485; lean_object* x_1486; lean_object* x_1487; -x_1480 = lean_ctor_get(x_1465, 5); -lean_dec(x_1480); -x_1481 = lean_ctor_get(x_1465, 4); -lean_dec(x_1481); -x_1482 = lean_ctor_get(x_1465, 3); -lean_dec(x_1482); -x_1483 = lean_ctor_get(x_1465, 2); -lean_dec(x_1483); -x_1484 = lean_ctor_get(x_1465, 1); -lean_dec(x_1484); -x_1485 = lean_ctor_get(x_1465, 0); -lean_dec(x_1485); -x_1486 = lean_ctor_get(x_1478, 0); -lean_inc(x_1486); -x_1487 = lean_ctor_get(x_1478, 1); -lean_inc(x_1487); -lean_dec(x_1478); -lean_ctor_set(x_1465, 5, x_1487); -x_5 = x_1486; -x_6 = x_1465; -goto block_33; -} -else -{ -lean_object* x_1488; lean_object* x_1489; lean_object* x_1490; lean_dec(x_1465); -x_1488 = lean_ctor_get(x_1478, 0); +x_1468 = lean_ctor_get(x_1466, 0); +lean_inc(x_1468); +x_1469 = lean_ctor_get(x_1466, 1); +lean_inc(x_1469); +x_1470 = lean_ctor_get(x_1466, 2); +lean_inc(x_1470); +x_1471 = lean_ctor_get(x_1466, 3); +lean_inc(x_1471); +x_1472 = lean_ctor_get(x_1466, 4); +lean_inc(x_1472); +x_1473 = lean_ctor_get(x_1466, 5); +lean_inc(x_1473); +x_1474 = lean_ctor_get(x_3, 0); +lean_inc(x_1474); +x_1475 = lean_ctor_get(x_1474, 3); +lean_inc(x_1475); +x_1476 = lean_ctor_get(x_1474, 4); +lean_inc(x_1476); +lean_dec(x_1474); +x_1477 = lean_environment_main_module(x_1467); +x_1478 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_1478, 0, x_1477); +lean_ctor_set(x_1478, 1, x_1463); +lean_ctor_set(x_1478, 2, x_1475); +lean_ctor_set(x_1478, 3, x_1476); +lean_inc(x_1); +x_1479 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_1478, x_1473); +if (lean_obj_tag(x_1479) == 0) +{ +uint8_t x_1480; +x_1480 = !lean_is_exclusive(x_1466); +if (x_1480 == 0) +{ +lean_object* x_1481; lean_object* x_1482; lean_object* x_1483; lean_object* x_1484; lean_object* x_1485; lean_object* x_1486; lean_object* x_1487; lean_object* x_1488; +x_1481 = lean_ctor_get(x_1466, 5); +lean_dec(x_1481); +x_1482 = lean_ctor_get(x_1466, 4); +lean_dec(x_1482); +x_1483 = lean_ctor_get(x_1466, 3); +lean_dec(x_1483); +x_1484 = lean_ctor_get(x_1466, 2); +lean_dec(x_1484); +x_1485 = lean_ctor_get(x_1466, 1); +lean_dec(x_1485); +x_1486 = lean_ctor_get(x_1466, 0); +lean_dec(x_1486); +x_1487 = lean_ctor_get(x_1479, 0); +lean_inc(x_1487); +x_1488 = lean_ctor_get(x_1479, 1); lean_inc(x_1488); -x_1489 = lean_ctor_get(x_1478, 1); +lean_dec(x_1479); +lean_ctor_set(x_1466, 5, x_1488); +x_5 = x_1487; +x_6 = x_1466; +goto block_34; +} +else +{ +lean_object* x_1489; lean_object* x_1490; lean_object* x_1491; +lean_dec(x_1466); +x_1489 = lean_ctor_get(x_1479, 0); lean_inc(x_1489); -lean_dec(x_1478); -x_1490 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_1490, 0, x_1467); -lean_ctor_set(x_1490, 1, x_1468); -lean_ctor_set(x_1490, 2, x_1469); -lean_ctor_set(x_1490, 3, x_1470); -lean_ctor_set(x_1490, 4, x_1471); -lean_ctor_set(x_1490, 5, x_1489); -x_5 = x_1488; -x_6 = x_1490; -goto block_33; +x_1490 = lean_ctor_get(x_1479, 1); +lean_inc(x_1490); +lean_dec(x_1479); +x_1491 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_1491, 0, x_1468); +lean_ctor_set(x_1491, 1, x_1469); +lean_ctor_set(x_1491, 2, x_1470); +lean_ctor_set(x_1491, 3, x_1471); +lean_ctor_set(x_1491, 4, x_1472); +lean_ctor_set(x_1491, 5, x_1490); +x_5 = x_1489; +x_6 = x_1491; +goto block_34; } } else { -lean_object* x_1491; +lean_object* x_1492; +lean_dec(x_1472); lean_dec(x_1471); lean_dec(x_1470); lean_dec(x_1469); lean_dec(x_1468); -lean_dec(x_1467); lean_dec(x_2); lean_dec(x_1); -x_1491 = lean_ctor_get(x_1478, 0); -lean_inc(x_1491); -lean_dec(x_1478); -if (lean_obj_tag(x_1491) == 0) -{ -lean_object* x_1492; lean_object* x_1493; lean_object* x_1494; lean_object* x_1495; lean_object* x_1496; uint8_t x_1497; -x_1492 = lean_ctor_get(x_1491, 0); +x_1492 = lean_ctor_get(x_1479, 0); lean_inc(x_1492); -x_1493 = lean_ctor_get(x_1491, 1); +lean_dec(x_1479); +if (lean_obj_tag(x_1492) == 0) +{ +lean_object* x_1493; lean_object* x_1494; lean_object* x_1495; lean_object* x_1496; lean_object* x_1497; uint8_t x_1498; +x_1493 = lean_ctor_get(x_1492, 0); lean_inc(x_1493); -lean_dec(x_1491); -x_1494 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1494, 0, x_1493); -x_1495 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1495, 0, x_1494); -x_1496 = l_Lean_Elab_Term_throwError___rarg(x_1492, x_1495, x_3, x_1465); +x_1494 = lean_ctor_get(x_1492, 1); +lean_inc(x_1494); lean_dec(x_1492); -x_1497 = !lean_is_exclusive(x_1496); -if (x_1497 == 0) +x_1495 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1495, 0, x_1494); +x_1496 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1496, 0, x_1495); +x_1497 = l_Lean_Elab_Term_throwErrorAt___rarg(x_1493, x_1496, x_3, x_1466); +lean_dec(x_1493); +x_1498 = !lean_is_exclusive(x_1497); +if (x_1498 == 0) { -return x_1496; +return x_1497; } else { -lean_object* x_1498; lean_object* x_1499; lean_object* x_1500; -x_1498 = lean_ctor_get(x_1496, 0); -x_1499 = lean_ctor_get(x_1496, 1); +lean_object* x_1499; lean_object* x_1500; lean_object* x_1501; +x_1499 = lean_ctor_get(x_1497, 0); +x_1500 = lean_ctor_get(x_1497, 1); +lean_inc(x_1500); lean_inc(x_1499); -lean_inc(x_1498); -lean_dec(x_1496); -x_1500 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1500, 0, x_1498); -lean_ctor_set(x_1500, 1, x_1499); -return x_1500; -} -} -else -{ -lean_object* x_1501; uint8_t x_1502; -lean_dec(x_3); -x_1501 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_1465); -x_1502 = !lean_is_exclusive(x_1501); -if (x_1502 == 0) -{ +lean_dec(x_1497); +x_1501 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1501, 0, x_1499); +lean_ctor_set(x_1501, 1, x_1500); return x_1501; } +} else { -lean_object* x_1503; lean_object* x_1504; lean_object* x_1505; -x_1503 = lean_ctor_get(x_1501, 0); -x_1504 = lean_ctor_get(x_1501, 1); +lean_object* x_1502; uint8_t x_1503; +lean_dec(x_3); +x_1502 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_1466); +x_1503 = !lean_is_exclusive(x_1502); +if (x_1503 == 0) +{ +return x_1502; +} +else +{ +lean_object* x_1504; lean_object* x_1505; lean_object* x_1506; +x_1504 = lean_ctor_get(x_1502, 0); +x_1505 = lean_ctor_get(x_1502, 1); +lean_inc(x_1505); lean_inc(x_1504); -lean_inc(x_1503); -lean_dec(x_1501); -x_1505 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1505, 0, x_1503); -lean_ctor_set(x_1505, 1, x_1504); -return x_1505; +lean_dec(x_1502); +x_1506 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1506, 0, x_1504); +lean_ctor_set(x_1506, 1, x_1505); +return x_1506; } } } } else { -lean_object* x_1506; uint8_t x_1507; uint8_t x_1711; -x_1506 = l_Lean_Syntax_getArg(x_1459, x_128); -lean_inc(x_1506); -x_1711 = l_Lean_Syntax_isOfKind(x_1506, x_1030); -if (x_1711 == 0) +lean_object* x_1507; uint8_t x_1508; uint8_t x_1712; +x_1507 = l_Lean_Syntax_getArg(x_1460, x_129); +lean_inc(x_1507); +x_1712 = l_Lean_Syntax_isOfKind(x_1507, x_1031); +if (x_1712 == 0) { -uint8_t x_1712; -x_1712 = 0; -x_1507 = x_1712; -goto block_1710; +uint8_t x_1713; +x_1713 = 0; +x_1508 = x_1713; +goto block_1711; } else { -lean_object* x_1713; lean_object* x_1714; uint8_t x_1715; -x_1713 = l_Lean_Syntax_getArgs(x_1506); -x_1714 = lean_array_get_size(x_1713); -lean_dec(x_1713); -x_1715 = lean_nat_dec_eq(x_1714, x_80); +lean_object* x_1714; lean_object* x_1715; uint8_t x_1716; +x_1714 = l_Lean_Syntax_getArgs(x_1507); +x_1715 = lean_array_get_size(x_1714); lean_dec(x_1714); -x_1507 = x_1715; -goto block_1710; +x_1716 = lean_nat_dec_eq(x_1715, x_81); +lean_dec(x_1715); +x_1508 = x_1716; +goto block_1711; } -block_1710: +block_1711: { -if (x_1507 == 0) +if (x_1508 == 0) { -lean_object* x_1508; lean_object* x_1509; lean_object* x_1510; lean_object* x_1511; lean_object* x_1512; lean_object* x_1513; lean_object* x_1514; lean_object* x_1515; lean_object* x_1516; lean_object* x_1517; lean_object* x_1518; lean_object* x_1519; lean_object* x_1520; lean_object* x_1521; lean_object* x_1522; lean_object* x_1523; lean_object* x_1524; lean_object* x_1525; -lean_dec(x_1506); -lean_dec(x_1459); -lean_dec(x_223); -x_1508 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); -x_1509 = lean_ctor_get(x_1508, 0); -lean_inc(x_1509); -x_1510 = lean_ctor_get(x_1508, 1); +lean_object* x_1509; lean_object* x_1510; lean_object* x_1511; lean_object* x_1512; lean_object* x_1513; lean_object* x_1514; lean_object* x_1515; lean_object* x_1516; lean_object* x_1517; lean_object* x_1518; lean_object* x_1519; lean_object* x_1520; lean_object* x_1521; lean_object* x_1522; lean_object* x_1523; lean_object* x_1524; lean_object* x_1525; lean_object* x_1526; +lean_dec(x_1507); +lean_dec(x_1460); +lean_dec(x_224); +x_1509 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); +x_1510 = lean_ctor_get(x_1509, 0); lean_inc(x_1510); -lean_dec(x_1508); -x_1511 = l_Lean_Elab_Term_getEnv___rarg(x_1510); -x_1512 = lean_ctor_get(x_1511, 1); -lean_inc(x_1512); -x_1513 = lean_ctor_get(x_1511, 0); +x_1511 = lean_ctor_get(x_1509, 1); +lean_inc(x_1511); +lean_dec(x_1509); +x_1512 = l_Lean_Elab_Term_getEnv___rarg(x_1511); +x_1513 = lean_ctor_get(x_1512, 1); lean_inc(x_1513); -lean_dec(x_1511); x_1514 = lean_ctor_get(x_1512, 0); lean_inc(x_1514); -x_1515 = lean_ctor_get(x_1512, 1); -lean_inc(x_1515); -x_1516 = lean_ctor_get(x_1512, 2); -lean_inc(x_1516); -x_1517 = lean_ctor_get(x_1512, 3); -lean_inc(x_1517); -x_1518 = lean_ctor_get(x_1512, 4); -lean_inc(x_1518); -x_1519 = lean_ctor_get(x_1512, 5); -lean_inc(x_1519); -x_1520 = lean_ctor_get(x_3, 0); -lean_inc(x_1520); -x_1521 = lean_ctor_get(x_1520, 3); -lean_inc(x_1521); -x_1522 = lean_ctor_get(x_1520, 4); -lean_inc(x_1522); -lean_dec(x_1520); -x_1523 = lean_environment_main_module(x_1513); -x_1524 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_1524, 0, x_1523); -lean_ctor_set(x_1524, 1, x_1509); -lean_ctor_set(x_1524, 2, x_1521); -lean_ctor_set(x_1524, 3, x_1522); -lean_inc(x_1); -x_1525 = l___private_Lean_Elab_Match_31__expandMatchDiscr_x3f(x_1, x_1524, x_1519); -if (lean_obj_tag(x_1525) == 0) -{ -uint8_t x_1526; -x_1526 = !lean_is_exclusive(x_1512); -if (x_1526 == 0) -{ -lean_object* x_1527; lean_object* x_1528; lean_object* x_1529; lean_object* x_1530; lean_object* x_1531; lean_object* x_1532; lean_object* x_1533; lean_object* x_1534; -x_1527 = lean_ctor_get(x_1512, 5); -lean_dec(x_1527); -x_1528 = lean_ctor_get(x_1512, 4); -lean_dec(x_1528); -x_1529 = lean_ctor_get(x_1512, 3); -lean_dec(x_1529); -x_1530 = lean_ctor_get(x_1512, 2); -lean_dec(x_1530); -x_1531 = lean_ctor_get(x_1512, 1); -lean_dec(x_1531); -x_1532 = lean_ctor_get(x_1512, 0); -lean_dec(x_1532); -x_1533 = lean_ctor_get(x_1525, 0); -lean_inc(x_1533); -x_1534 = lean_ctor_get(x_1525, 1); -lean_inc(x_1534); -lean_dec(x_1525); -lean_ctor_set(x_1512, 5, x_1534); -x_5 = x_1533; -x_6 = x_1512; -goto block_33; -} -else -{ -lean_object* x_1535; lean_object* x_1536; lean_object* x_1537; lean_dec(x_1512); -x_1535 = lean_ctor_get(x_1525, 0); +x_1515 = lean_ctor_get(x_1513, 0); +lean_inc(x_1515); +x_1516 = lean_ctor_get(x_1513, 1); +lean_inc(x_1516); +x_1517 = lean_ctor_get(x_1513, 2); +lean_inc(x_1517); +x_1518 = lean_ctor_get(x_1513, 3); +lean_inc(x_1518); +x_1519 = lean_ctor_get(x_1513, 4); +lean_inc(x_1519); +x_1520 = lean_ctor_get(x_1513, 5); +lean_inc(x_1520); +x_1521 = lean_ctor_get(x_3, 0); +lean_inc(x_1521); +x_1522 = lean_ctor_get(x_1521, 3); +lean_inc(x_1522); +x_1523 = lean_ctor_get(x_1521, 4); +lean_inc(x_1523); +lean_dec(x_1521); +x_1524 = lean_environment_main_module(x_1514); +x_1525 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_1525, 0, x_1524); +lean_ctor_set(x_1525, 1, x_1510); +lean_ctor_set(x_1525, 2, x_1522); +lean_ctor_set(x_1525, 3, x_1523); +lean_inc(x_1); +x_1526 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_1525, x_1520); +if (lean_obj_tag(x_1526) == 0) +{ +uint8_t x_1527; +x_1527 = !lean_is_exclusive(x_1513); +if (x_1527 == 0) +{ +lean_object* x_1528; lean_object* x_1529; lean_object* x_1530; lean_object* x_1531; lean_object* x_1532; lean_object* x_1533; lean_object* x_1534; lean_object* x_1535; +x_1528 = lean_ctor_get(x_1513, 5); +lean_dec(x_1528); +x_1529 = lean_ctor_get(x_1513, 4); +lean_dec(x_1529); +x_1530 = lean_ctor_get(x_1513, 3); +lean_dec(x_1530); +x_1531 = lean_ctor_get(x_1513, 2); +lean_dec(x_1531); +x_1532 = lean_ctor_get(x_1513, 1); +lean_dec(x_1532); +x_1533 = lean_ctor_get(x_1513, 0); +lean_dec(x_1533); +x_1534 = lean_ctor_get(x_1526, 0); +lean_inc(x_1534); +x_1535 = lean_ctor_get(x_1526, 1); lean_inc(x_1535); -x_1536 = lean_ctor_get(x_1525, 1); +lean_dec(x_1526); +lean_ctor_set(x_1513, 5, x_1535); +x_5 = x_1534; +x_6 = x_1513; +goto block_34; +} +else +{ +lean_object* x_1536; lean_object* x_1537; lean_object* x_1538; +lean_dec(x_1513); +x_1536 = lean_ctor_get(x_1526, 0); lean_inc(x_1536); -lean_dec(x_1525); -x_1537 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_1537, 0, x_1514); -lean_ctor_set(x_1537, 1, x_1515); -lean_ctor_set(x_1537, 2, x_1516); -lean_ctor_set(x_1537, 3, x_1517); -lean_ctor_set(x_1537, 4, x_1518); -lean_ctor_set(x_1537, 5, x_1536); -x_5 = x_1535; -x_6 = x_1537; -goto block_33; +x_1537 = lean_ctor_get(x_1526, 1); +lean_inc(x_1537); +lean_dec(x_1526); +x_1538 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_1538, 0, x_1515); +lean_ctor_set(x_1538, 1, x_1516); +lean_ctor_set(x_1538, 2, x_1517); +lean_ctor_set(x_1538, 3, x_1518); +lean_ctor_set(x_1538, 4, x_1519); +lean_ctor_set(x_1538, 5, x_1537); +x_5 = x_1536; +x_6 = x_1538; +goto block_34; } } else { -lean_object* x_1538; +lean_object* x_1539; +lean_dec(x_1519); lean_dec(x_1518); lean_dec(x_1517); lean_dec(x_1516); lean_dec(x_1515); -lean_dec(x_1514); lean_dec(x_2); lean_dec(x_1); -x_1538 = lean_ctor_get(x_1525, 0); -lean_inc(x_1538); -lean_dec(x_1525); -if (lean_obj_tag(x_1538) == 0) -{ -lean_object* x_1539; lean_object* x_1540; lean_object* x_1541; lean_object* x_1542; lean_object* x_1543; uint8_t x_1544; -x_1539 = lean_ctor_get(x_1538, 0); +x_1539 = lean_ctor_get(x_1526, 0); lean_inc(x_1539); -x_1540 = lean_ctor_get(x_1538, 1); +lean_dec(x_1526); +if (lean_obj_tag(x_1539) == 0) +{ +lean_object* x_1540; lean_object* x_1541; lean_object* x_1542; lean_object* x_1543; lean_object* x_1544; uint8_t x_1545; +x_1540 = lean_ctor_get(x_1539, 0); lean_inc(x_1540); -lean_dec(x_1538); -x_1541 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1541, 0, x_1540); -x_1542 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1542, 0, x_1541); -x_1543 = l_Lean_Elab_Term_throwError___rarg(x_1539, x_1542, x_3, x_1512); +x_1541 = lean_ctor_get(x_1539, 1); +lean_inc(x_1541); lean_dec(x_1539); -x_1544 = !lean_is_exclusive(x_1543); -if (x_1544 == 0) +x_1542 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1542, 0, x_1541); +x_1543 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1543, 0, x_1542); +x_1544 = l_Lean_Elab_Term_throwErrorAt___rarg(x_1540, x_1543, x_3, x_1513); +lean_dec(x_1540); +x_1545 = !lean_is_exclusive(x_1544); +if (x_1545 == 0) { -return x_1543; +return x_1544; } else { -lean_object* x_1545; lean_object* x_1546; lean_object* x_1547; -x_1545 = lean_ctor_get(x_1543, 0); -x_1546 = lean_ctor_get(x_1543, 1); +lean_object* x_1546; lean_object* x_1547; lean_object* x_1548; +x_1546 = lean_ctor_get(x_1544, 0); +x_1547 = lean_ctor_get(x_1544, 1); +lean_inc(x_1547); lean_inc(x_1546); -lean_inc(x_1545); -lean_dec(x_1543); -x_1547 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1547, 0, x_1545); -lean_ctor_set(x_1547, 1, x_1546); -return x_1547; -} -} -else -{ -lean_object* x_1548; uint8_t x_1549; -lean_dec(x_3); -x_1548 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_1512); -x_1549 = !lean_is_exclusive(x_1548); -if (x_1549 == 0) -{ +lean_dec(x_1544); +x_1548 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1548, 0, x_1546); +lean_ctor_set(x_1548, 1, x_1547); return x_1548; } +} else { -lean_object* x_1550; lean_object* x_1551; lean_object* x_1552; -x_1550 = lean_ctor_get(x_1548, 0); -x_1551 = lean_ctor_get(x_1548, 1); +lean_object* x_1549; uint8_t x_1550; +lean_dec(x_3); +x_1549 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_1513); +x_1550 = !lean_is_exclusive(x_1549); +if (x_1550 == 0) +{ +return x_1549; +} +else +{ +lean_object* x_1551; lean_object* x_1552; lean_object* x_1553; +x_1551 = lean_ctor_get(x_1549, 0); +x_1552 = lean_ctor_get(x_1549, 1); +lean_inc(x_1552); lean_inc(x_1551); -lean_inc(x_1550); -lean_dec(x_1548); -x_1552 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1552, 0, x_1550); -lean_ctor_set(x_1552, 1, x_1551); -return x_1552; +lean_dec(x_1549); +x_1553 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1553, 0, x_1551); +lean_ctor_set(x_1553, 1, x_1552); +return x_1553; } } } } else { -lean_object* x_1553; uint8_t x_1554; lean_object* x_1704; uint8_t x_1705; -x_1553 = l_Lean_Syntax_getArg(x_1506, x_128); -lean_dec(x_1506); -x_1704 = l_Lean_mkTermIdFromIdent___closed__2; -lean_inc(x_1553); -x_1705 = l_Lean_Syntax_isOfKind(x_1553, x_1704); -if (x_1705 == 0) +lean_object* x_1554; uint8_t x_1555; lean_object* x_1705; uint8_t x_1706; +x_1554 = l_Lean_Syntax_getArg(x_1507, x_129); +lean_dec(x_1507); +x_1705 = l_Lean_mkTermIdFromIdent___closed__2; +lean_inc(x_1554); +x_1706 = l_Lean_Syntax_isOfKind(x_1554, x_1705); +if (x_1706 == 0) { -uint8_t x_1706; -x_1706 = 0; -x_1554 = x_1706; -goto block_1703; +uint8_t x_1707; +x_1707 = 0; +x_1555 = x_1707; +goto block_1704; } else { -lean_object* x_1707; lean_object* x_1708; uint8_t x_1709; -x_1707 = l_Lean_Syntax_getArgs(x_1553); -x_1708 = lean_array_get_size(x_1707); -lean_dec(x_1707); -x_1709 = lean_nat_dec_eq(x_1708, x_224); +lean_object* x_1708; lean_object* x_1709; uint8_t x_1710; +x_1708 = l_Lean_Syntax_getArgs(x_1554); +x_1709 = lean_array_get_size(x_1708); lean_dec(x_1708); -x_1554 = x_1709; -goto block_1703; +x_1710 = lean_nat_dec_eq(x_1709, x_225); +lean_dec(x_1709); +x_1555 = x_1710; +goto block_1704; } -block_1703: +block_1704: { -if (x_1554 == 0) +if (x_1555 == 0) { -lean_object* x_1555; lean_object* x_1556; lean_object* x_1557; lean_object* x_1558; lean_object* x_1559; lean_object* x_1560; lean_object* x_1561; lean_object* x_1562; lean_object* x_1563; lean_object* x_1564; lean_object* x_1565; lean_object* x_1566; lean_object* x_1567; lean_object* x_1568; lean_object* x_1569; lean_object* x_1570; lean_object* x_1571; lean_object* x_1572; -lean_dec(x_1553); -lean_dec(x_1459); -lean_dec(x_223); -x_1555 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); -x_1556 = lean_ctor_get(x_1555, 0); -lean_inc(x_1556); -x_1557 = lean_ctor_get(x_1555, 1); +lean_object* x_1556; lean_object* x_1557; lean_object* x_1558; lean_object* x_1559; lean_object* x_1560; lean_object* x_1561; lean_object* x_1562; lean_object* x_1563; lean_object* x_1564; lean_object* x_1565; lean_object* x_1566; lean_object* x_1567; lean_object* x_1568; lean_object* x_1569; lean_object* x_1570; lean_object* x_1571; lean_object* x_1572; lean_object* x_1573; +lean_dec(x_1554); +lean_dec(x_1460); +lean_dec(x_224); +x_1556 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); +x_1557 = lean_ctor_get(x_1556, 0); lean_inc(x_1557); -lean_dec(x_1555); -x_1558 = l_Lean_Elab_Term_getEnv___rarg(x_1557); -x_1559 = lean_ctor_get(x_1558, 1); -lean_inc(x_1559); -x_1560 = lean_ctor_get(x_1558, 0); +x_1558 = lean_ctor_get(x_1556, 1); +lean_inc(x_1558); +lean_dec(x_1556); +x_1559 = l_Lean_Elab_Term_getEnv___rarg(x_1558); +x_1560 = lean_ctor_get(x_1559, 1); lean_inc(x_1560); -lean_dec(x_1558); x_1561 = lean_ctor_get(x_1559, 0); lean_inc(x_1561); -x_1562 = lean_ctor_get(x_1559, 1); -lean_inc(x_1562); -x_1563 = lean_ctor_get(x_1559, 2); -lean_inc(x_1563); -x_1564 = lean_ctor_get(x_1559, 3); -lean_inc(x_1564); -x_1565 = lean_ctor_get(x_1559, 4); -lean_inc(x_1565); -x_1566 = lean_ctor_get(x_1559, 5); -lean_inc(x_1566); -x_1567 = lean_ctor_get(x_3, 0); -lean_inc(x_1567); -x_1568 = lean_ctor_get(x_1567, 3); -lean_inc(x_1568); -x_1569 = lean_ctor_get(x_1567, 4); -lean_inc(x_1569); -lean_dec(x_1567); -x_1570 = lean_environment_main_module(x_1560); -x_1571 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_1571, 0, x_1570); -lean_ctor_set(x_1571, 1, x_1556); -lean_ctor_set(x_1571, 2, x_1568); -lean_ctor_set(x_1571, 3, x_1569); -lean_inc(x_1); -x_1572 = l___private_Lean_Elab_Match_31__expandMatchDiscr_x3f(x_1, x_1571, x_1566); -if (lean_obj_tag(x_1572) == 0) -{ -uint8_t x_1573; -x_1573 = !lean_is_exclusive(x_1559); -if (x_1573 == 0) -{ -lean_object* x_1574; lean_object* x_1575; lean_object* x_1576; lean_object* x_1577; lean_object* x_1578; lean_object* x_1579; lean_object* x_1580; lean_object* x_1581; -x_1574 = lean_ctor_get(x_1559, 5); -lean_dec(x_1574); -x_1575 = lean_ctor_get(x_1559, 4); -lean_dec(x_1575); -x_1576 = lean_ctor_get(x_1559, 3); -lean_dec(x_1576); -x_1577 = lean_ctor_get(x_1559, 2); -lean_dec(x_1577); -x_1578 = lean_ctor_get(x_1559, 1); -lean_dec(x_1578); -x_1579 = lean_ctor_get(x_1559, 0); -lean_dec(x_1579); -x_1580 = lean_ctor_get(x_1572, 0); -lean_inc(x_1580); -x_1581 = lean_ctor_get(x_1572, 1); -lean_inc(x_1581); -lean_dec(x_1572); -lean_ctor_set(x_1559, 5, x_1581); -x_5 = x_1580; -x_6 = x_1559; -goto block_33; -} -else -{ -lean_object* x_1582; lean_object* x_1583; lean_object* x_1584; lean_dec(x_1559); -x_1582 = lean_ctor_get(x_1572, 0); +x_1562 = lean_ctor_get(x_1560, 0); +lean_inc(x_1562); +x_1563 = lean_ctor_get(x_1560, 1); +lean_inc(x_1563); +x_1564 = lean_ctor_get(x_1560, 2); +lean_inc(x_1564); +x_1565 = lean_ctor_get(x_1560, 3); +lean_inc(x_1565); +x_1566 = lean_ctor_get(x_1560, 4); +lean_inc(x_1566); +x_1567 = lean_ctor_get(x_1560, 5); +lean_inc(x_1567); +x_1568 = lean_ctor_get(x_3, 0); +lean_inc(x_1568); +x_1569 = lean_ctor_get(x_1568, 3); +lean_inc(x_1569); +x_1570 = lean_ctor_get(x_1568, 4); +lean_inc(x_1570); +lean_dec(x_1568); +x_1571 = lean_environment_main_module(x_1561); +x_1572 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_1572, 0, x_1571); +lean_ctor_set(x_1572, 1, x_1557); +lean_ctor_set(x_1572, 2, x_1569); +lean_ctor_set(x_1572, 3, x_1570); +lean_inc(x_1); +x_1573 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_1572, x_1567); +if (lean_obj_tag(x_1573) == 0) +{ +uint8_t x_1574; +x_1574 = !lean_is_exclusive(x_1560); +if (x_1574 == 0) +{ +lean_object* x_1575; lean_object* x_1576; lean_object* x_1577; lean_object* x_1578; lean_object* x_1579; lean_object* x_1580; lean_object* x_1581; lean_object* x_1582; +x_1575 = lean_ctor_get(x_1560, 5); +lean_dec(x_1575); +x_1576 = lean_ctor_get(x_1560, 4); +lean_dec(x_1576); +x_1577 = lean_ctor_get(x_1560, 3); +lean_dec(x_1577); +x_1578 = lean_ctor_get(x_1560, 2); +lean_dec(x_1578); +x_1579 = lean_ctor_get(x_1560, 1); +lean_dec(x_1579); +x_1580 = lean_ctor_get(x_1560, 0); +lean_dec(x_1580); +x_1581 = lean_ctor_get(x_1573, 0); +lean_inc(x_1581); +x_1582 = lean_ctor_get(x_1573, 1); lean_inc(x_1582); -x_1583 = lean_ctor_get(x_1572, 1); +lean_dec(x_1573); +lean_ctor_set(x_1560, 5, x_1582); +x_5 = x_1581; +x_6 = x_1560; +goto block_34; +} +else +{ +lean_object* x_1583; lean_object* x_1584; lean_object* x_1585; +lean_dec(x_1560); +x_1583 = lean_ctor_get(x_1573, 0); lean_inc(x_1583); -lean_dec(x_1572); -x_1584 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_1584, 0, x_1561); -lean_ctor_set(x_1584, 1, x_1562); -lean_ctor_set(x_1584, 2, x_1563); -lean_ctor_set(x_1584, 3, x_1564); -lean_ctor_set(x_1584, 4, x_1565); -lean_ctor_set(x_1584, 5, x_1583); -x_5 = x_1582; -x_6 = x_1584; -goto block_33; +x_1584 = lean_ctor_get(x_1573, 1); +lean_inc(x_1584); +lean_dec(x_1573); +x_1585 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_1585, 0, x_1562); +lean_ctor_set(x_1585, 1, x_1563); +lean_ctor_set(x_1585, 2, x_1564); +lean_ctor_set(x_1585, 3, x_1565); +lean_ctor_set(x_1585, 4, x_1566); +lean_ctor_set(x_1585, 5, x_1584); +x_5 = x_1583; +x_6 = x_1585; +goto block_34; } } else { -lean_object* x_1585; +lean_object* x_1586; +lean_dec(x_1566); lean_dec(x_1565); lean_dec(x_1564); lean_dec(x_1563); lean_dec(x_1562); -lean_dec(x_1561); lean_dec(x_2); lean_dec(x_1); -x_1585 = lean_ctor_get(x_1572, 0); -lean_inc(x_1585); -lean_dec(x_1572); -if (lean_obj_tag(x_1585) == 0) -{ -lean_object* x_1586; lean_object* x_1587; lean_object* x_1588; lean_object* x_1589; lean_object* x_1590; uint8_t x_1591; -x_1586 = lean_ctor_get(x_1585, 0); +x_1586 = lean_ctor_get(x_1573, 0); lean_inc(x_1586); -x_1587 = lean_ctor_get(x_1585, 1); +lean_dec(x_1573); +if (lean_obj_tag(x_1586) == 0) +{ +lean_object* x_1587; lean_object* x_1588; lean_object* x_1589; lean_object* x_1590; lean_object* x_1591; uint8_t x_1592; +x_1587 = lean_ctor_get(x_1586, 0); lean_inc(x_1587); -lean_dec(x_1585); -x_1588 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1588, 0, x_1587); -x_1589 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1589, 0, x_1588); -x_1590 = l_Lean_Elab_Term_throwError___rarg(x_1586, x_1589, x_3, x_1559); +x_1588 = lean_ctor_get(x_1586, 1); +lean_inc(x_1588); lean_dec(x_1586); -x_1591 = !lean_is_exclusive(x_1590); -if (x_1591 == 0) +x_1589 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1589, 0, x_1588); +x_1590 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1590, 0, x_1589); +x_1591 = l_Lean_Elab_Term_throwErrorAt___rarg(x_1587, x_1590, x_3, x_1560); +lean_dec(x_1587); +x_1592 = !lean_is_exclusive(x_1591); +if (x_1592 == 0) { -return x_1590; +return x_1591; } else { -lean_object* x_1592; lean_object* x_1593; lean_object* x_1594; -x_1592 = lean_ctor_get(x_1590, 0); -x_1593 = lean_ctor_get(x_1590, 1); +lean_object* x_1593; lean_object* x_1594; lean_object* x_1595; +x_1593 = lean_ctor_get(x_1591, 0); +x_1594 = lean_ctor_get(x_1591, 1); +lean_inc(x_1594); lean_inc(x_1593); -lean_inc(x_1592); -lean_dec(x_1590); -x_1594 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1594, 0, x_1592); -lean_ctor_set(x_1594, 1, x_1593); -return x_1594; -} -} -else -{ -lean_object* x_1595; uint8_t x_1596; -lean_dec(x_3); -x_1595 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_1559); -x_1596 = !lean_is_exclusive(x_1595); -if (x_1596 == 0) -{ +lean_dec(x_1591); +x_1595 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1595, 0, x_1593); +lean_ctor_set(x_1595, 1, x_1594); return x_1595; } +} else { -lean_object* x_1597; lean_object* x_1598; lean_object* x_1599; -x_1597 = lean_ctor_get(x_1595, 0); -x_1598 = lean_ctor_get(x_1595, 1); +lean_object* x_1596; uint8_t x_1597; +lean_dec(x_3); +x_1596 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_1560); +x_1597 = !lean_is_exclusive(x_1596); +if (x_1597 == 0) +{ +return x_1596; +} +else +{ +lean_object* x_1598; lean_object* x_1599; lean_object* x_1600; +x_1598 = lean_ctor_get(x_1596, 0); +x_1599 = lean_ctor_get(x_1596, 1); +lean_inc(x_1599); lean_inc(x_1598); -lean_inc(x_1597); -lean_dec(x_1595); -x_1599 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1599, 0, x_1597); -lean_ctor_set(x_1599, 1, x_1598); -return x_1599; +lean_dec(x_1596); +x_1600 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1600, 0, x_1598); +lean_ctor_set(x_1600, 1, x_1599); +return x_1600; } } } } else { -lean_object* x_1600; lean_object* x_1601; uint8_t x_1602; -x_1600 = l_Lean_Syntax_getArg(x_1553, x_128); -x_1601 = l_Lean_identKind___closed__2; -lean_inc(x_1600); -x_1602 = l_Lean_Syntax_isOfKind(x_1600, x_1601); -if (x_1602 == 0) +lean_object* x_1601; lean_object* x_1602; uint8_t x_1603; +x_1601 = l_Lean_Syntax_getArg(x_1554, x_129); +x_1602 = l_Lean_identKind___closed__2; +lean_inc(x_1601); +x_1603 = l_Lean_Syntax_isOfKind(x_1601, x_1602); +if (x_1603 == 0) { -lean_object* x_1603; lean_object* x_1604; lean_object* x_1605; lean_object* x_1606; lean_object* x_1607; lean_object* x_1608; lean_object* x_1609; lean_object* x_1610; lean_object* x_1611; lean_object* x_1612; lean_object* x_1613; lean_object* x_1614; lean_object* x_1615; lean_object* x_1616; lean_object* x_1617; lean_object* x_1618; lean_object* x_1619; lean_object* x_1620; -lean_dec(x_1600); -lean_dec(x_1553); -lean_dec(x_1459); -lean_dec(x_223); -x_1603 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); -x_1604 = lean_ctor_get(x_1603, 0); -lean_inc(x_1604); -x_1605 = lean_ctor_get(x_1603, 1); +lean_object* x_1604; lean_object* x_1605; lean_object* x_1606; lean_object* x_1607; lean_object* x_1608; lean_object* x_1609; lean_object* x_1610; lean_object* x_1611; lean_object* x_1612; lean_object* x_1613; lean_object* x_1614; lean_object* x_1615; lean_object* x_1616; lean_object* x_1617; lean_object* x_1618; lean_object* x_1619; lean_object* x_1620; lean_object* x_1621; +lean_dec(x_1601); +lean_dec(x_1554); +lean_dec(x_1460); +lean_dec(x_224); +x_1604 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); +x_1605 = lean_ctor_get(x_1604, 0); lean_inc(x_1605); -lean_dec(x_1603); -x_1606 = l_Lean_Elab_Term_getEnv___rarg(x_1605); -x_1607 = lean_ctor_get(x_1606, 1); -lean_inc(x_1607); -x_1608 = lean_ctor_get(x_1606, 0); +x_1606 = lean_ctor_get(x_1604, 1); +lean_inc(x_1606); +lean_dec(x_1604); +x_1607 = l_Lean_Elab_Term_getEnv___rarg(x_1606); +x_1608 = lean_ctor_get(x_1607, 1); lean_inc(x_1608); -lean_dec(x_1606); x_1609 = lean_ctor_get(x_1607, 0); lean_inc(x_1609); -x_1610 = lean_ctor_get(x_1607, 1); -lean_inc(x_1610); -x_1611 = lean_ctor_get(x_1607, 2); -lean_inc(x_1611); -x_1612 = lean_ctor_get(x_1607, 3); -lean_inc(x_1612); -x_1613 = lean_ctor_get(x_1607, 4); -lean_inc(x_1613); -x_1614 = lean_ctor_get(x_1607, 5); -lean_inc(x_1614); -x_1615 = lean_ctor_get(x_3, 0); -lean_inc(x_1615); -x_1616 = lean_ctor_get(x_1615, 3); -lean_inc(x_1616); -x_1617 = lean_ctor_get(x_1615, 4); -lean_inc(x_1617); -lean_dec(x_1615); -x_1618 = lean_environment_main_module(x_1608); -x_1619 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_1619, 0, x_1618); -lean_ctor_set(x_1619, 1, x_1604); -lean_ctor_set(x_1619, 2, x_1616); -lean_ctor_set(x_1619, 3, x_1617); -lean_inc(x_1); -x_1620 = l___private_Lean_Elab_Match_31__expandMatchDiscr_x3f(x_1, x_1619, x_1614); -if (lean_obj_tag(x_1620) == 0) -{ -uint8_t x_1621; -x_1621 = !lean_is_exclusive(x_1607); -if (x_1621 == 0) -{ -lean_object* x_1622; lean_object* x_1623; lean_object* x_1624; lean_object* x_1625; lean_object* x_1626; lean_object* x_1627; lean_object* x_1628; lean_object* x_1629; -x_1622 = lean_ctor_get(x_1607, 5); -lean_dec(x_1622); -x_1623 = lean_ctor_get(x_1607, 4); -lean_dec(x_1623); -x_1624 = lean_ctor_get(x_1607, 3); -lean_dec(x_1624); -x_1625 = lean_ctor_get(x_1607, 2); -lean_dec(x_1625); -x_1626 = lean_ctor_get(x_1607, 1); -lean_dec(x_1626); -x_1627 = lean_ctor_get(x_1607, 0); -lean_dec(x_1627); -x_1628 = lean_ctor_get(x_1620, 0); -lean_inc(x_1628); -x_1629 = lean_ctor_get(x_1620, 1); -lean_inc(x_1629); -lean_dec(x_1620); -lean_ctor_set(x_1607, 5, x_1629); -x_5 = x_1628; -x_6 = x_1607; -goto block_33; -} -else -{ -lean_object* x_1630; lean_object* x_1631; lean_object* x_1632; lean_dec(x_1607); -x_1630 = lean_ctor_get(x_1620, 0); +x_1610 = lean_ctor_get(x_1608, 0); +lean_inc(x_1610); +x_1611 = lean_ctor_get(x_1608, 1); +lean_inc(x_1611); +x_1612 = lean_ctor_get(x_1608, 2); +lean_inc(x_1612); +x_1613 = lean_ctor_get(x_1608, 3); +lean_inc(x_1613); +x_1614 = lean_ctor_get(x_1608, 4); +lean_inc(x_1614); +x_1615 = lean_ctor_get(x_1608, 5); +lean_inc(x_1615); +x_1616 = lean_ctor_get(x_3, 0); +lean_inc(x_1616); +x_1617 = lean_ctor_get(x_1616, 3); +lean_inc(x_1617); +x_1618 = lean_ctor_get(x_1616, 4); +lean_inc(x_1618); +lean_dec(x_1616); +x_1619 = lean_environment_main_module(x_1609); +x_1620 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_1620, 0, x_1619); +lean_ctor_set(x_1620, 1, x_1605); +lean_ctor_set(x_1620, 2, x_1617); +lean_ctor_set(x_1620, 3, x_1618); +lean_inc(x_1); +x_1621 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_1620, x_1615); +if (lean_obj_tag(x_1621) == 0) +{ +uint8_t x_1622; +x_1622 = !lean_is_exclusive(x_1608); +if (x_1622 == 0) +{ +lean_object* x_1623; lean_object* x_1624; lean_object* x_1625; lean_object* x_1626; lean_object* x_1627; lean_object* x_1628; lean_object* x_1629; lean_object* x_1630; +x_1623 = lean_ctor_get(x_1608, 5); +lean_dec(x_1623); +x_1624 = lean_ctor_get(x_1608, 4); +lean_dec(x_1624); +x_1625 = lean_ctor_get(x_1608, 3); +lean_dec(x_1625); +x_1626 = lean_ctor_get(x_1608, 2); +lean_dec(x_1626); +x_1627 = lean_ctor_get(x_1608, 1); +lean_dec(x_1627); +x_1628 = lean_ctor_get(x_1608, 0); +lean_dec(x_1628); +x_1629 = lean_ctor_get(x_1621, 0); +lean_inc(x_1629); +x_1630 = lean_ctor_get(x_1621, 1); lean_inc(x_1630); -x_1631 = lean_ctor_get(x_1620, 1); +lean_dec(x_1621); +lean_ctor_set(x_1608, 5, x_1630); +x_5 = x_1629; +x_6 = x_1608; +goto block_34; +} +else +{ +lean_object* x_1631; lean_object* x_1632; lean_object* x_1633; +lean_dec(x_1608); +x_1631 = lean_ctor_get(x_1621, 0); lean_inc(x_1631); -lean_dec(x_1620); -x_1632 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_1632, 0, x_1609); -lean_ctor_set(x_1632, 1, x_1610); -lean_ctor_set(x_1632, 2, x_1611); -lean_ctor_set(x_1632, 3, x_1612); -lean_ctor_set(x_1632, 4, x_1613); -lean_ctor_set(x_1632, 5, x_1631); -x_5 = x_1630; -x_6 = x_1632; -goto block_33; +x_1632 = lean_ctor_get(x_1621, 1); +lean_inc(x_1632); +lean_dec(x_1621); +x_1633 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_1633, 0, x_1610); +lean_ctor_set(x_1633, 1, x_1611); +lean_ctor_set(x_1633, 2, x_1612); +lean_ctor_set(x_1633, 3, x_1613); +lean_ctor_set(x_1633, 4, x_1614); +lean_ctor_set(x_1633, 5, x_1632); +x_5 = x_1631; +x_6 = x_1633; +goto block_34; } } else { -lean_object* x_1633; +lean_object* x_1634; +lean_dec(x_1614); lean_dec(x_1613); lean_dec(x_1612); lean_dec(x_1611); lean_dec(x_1610); -lean_dec(x_1609); lean_dec(x_2); lean_dec(x_1); -x_1633 = lean_ctor_get(x_1620, 0); -lean_inc(x_1633); -lean_dec(x_1620); -if (lean_obj_tag(x_1633) == 0) -{ -lean_object* x_1634; lean_object* x_1635; lean_object* x_1636; lean_object* x_1637; lean_object* x_1638; uint8_t x_1639; -x_1634 = lean_ctor_get(x_1633, 0); +x_1634 = lean_ctor_get(x_1621, 0); lean_inc(x_1634); -x_1635 = lean_ctor_get(x_1633, 1); +lean_dec(x_1621); +if (lean_obj_tag(x_1634) == 0) +{ +lean_object* x_1635; lean_object* x_1636; lean_object* x_1637; lean_object* x_1638; lean_object* x_1639; uint8_t x_1640; +x_1635 = lean_ctor_get(x_1634, 0); lean_inc(x_1635); -lean_dec(x_1633); -x_1636 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1636, 0, x_1635); -x_1637 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1637, 0, x_1636); -x_1638 = l_Lean_Elab_Term_throwError___rarg(x_1634, x_1637, x_3, x_1607); +x_1636 = lean_ctor_get(x_1634, 1); +lean_inc(x_1636); lean_dec(x_1634); -x_1639 = !lean_is_exclusive(x_1638); -if (x_1639 == 0) +x_1637 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1637, 0, x_1636); +x_1638 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1638, 0, x_1637); +x_1639 = l_Lean_Elab_Term_throwErrorAt___rarg(x_1635, x_1638, x_3, x_1608); +lean_dec(x_1635); +x_1640 = !lean_is_exclusive(x_1639); +if (x_1640 == 0) { -return x_1638; +return x_1639; } else { -lean_object* x_1640; lean_object* x_1641; lean_object* x_1642; -x_1640 = lean_ctor_get(x_1638, 0); -x_1641 = lean_ctor_get(x_1638, 1); +lean_object* x_1641; lean_object* x_1642; lean_object* x_1643; +x_1641 = lean_ctor_get(x_1639, 0); +x_1642 = lean_ctor_get(x_1639, 1); +lean_inc(x_1642); lean_inc(x_1641); -lean_inc(x_1640); -lean_dec(x_1638); -x_1642 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1642, 0, x_1640); -lean_ctor_set(x_1642, 1, x_1641); -return x_1642; -} -} -else -{ -lean_object* x_1643; uint8_t x_1644; -lean_dec(x_3); -x_1643 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_1607); -x_1644 = !lean_is_exclusive(x_1643); -if (x_1644 == 0) -{ +lean_dec(x_1639); +x_1643 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1643, 0, x_1641); +lean_ctor_set(x_1643, 1, x_1642); return x_1643; } +} else { -lean_object* x_1645; lean_object* x_1646; lean_object* x_1647; -x_1645 = lean_ctor_get(x_1643, 0); -x_1646 = lean_ctor_get(x_1643, 1); +lean_object* x_1644; uint8_t x_1645; +lean_dec(x_3); +x_1644 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_1608); +x_1645 = !lean_is_exclusive(x_1644); +if (x_1645 == 0) +{ +return x_1644; +} +else +{ +lean_object* x_1646; lean_object* x_1647; lean_object* x_1648; +x_1646 = lean_ctor_get(x_1644, 0); +x_1647 = lean_ctor_get(x_1644, 1); +lean_inc(x_1647); lean_inc(x_1646); -lean_inc(x_1645); -lean_dec(x_1643); -x_1647 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1647, 0, x_1645); -lean_ctor_set(x_1647, 1, x_1646); -return x_1647; +lean_dec(x_1644); +x_1648 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1648, 0, x_1646); +lean_ctor_set(x_1648, 1, x_1647); +return x_1648; } } } } else { -lean_object* x_1648; uint8_t x_1649; uint8_t x_1698; -x_1648 = l_Lean_Syntax_getArg(x_1553, x_80); -lean_dec(x_1553); -lean_inc(x_1648); -x_1698 = l_Lean_Syntax_isOfKind(x_1648, x_1030); -if (x_1698 == 0) +lean_object* x_1649; uint8_t x_1650; uint8_t x_1699; +x_1649 = l_Lean_Syntax_getArg(x_1554, x_81); +lean_dec(x_1554); +lean_inc(x_1649); +x_1699 = l_Lean_Syntax_isOfKind(x_1649, x_1031); +if (x_1699 == 0) { -uint8_t x_1699; -lean_dec(x_1648); -x_1699 = 0; -x_1649 = x_1699; -goto block_1697; +uint8_t x_1700; +lean_dec(x_1649); +x_1700 = 0; +x_1650 = x_1700; +goto block_1698; } else { -lean_object* x_1700; lean_object* x_1701; uint8_t x_1702; -x_1700 = l_Lean_Syntax_getArgs(x_1648); -lean_dec(x_1648); -x_1701 = lean_array_get_size(x_1700); -lean_dec(x_1700); -x_1702 = lean_nat_dec_eq(x_1701, x_128); +lean_object* x_1701; lean_object* x_1702; uint8_t x_1703; +x_1701 = l_Lean_Syntax_getArgs(x_1649); +lean_dec(x_1649); +x_1702 = lean_array_get_size(x_1701); lean_dec(x_1701); -x_1649 = x_1702; -goto block_1697; +x_1703 = lean_nat_dec_eq(x_1702, x_129); +lean_dec(x_1702); +x_1650 = x_1703; +goto block_1698; } -block_1697: +block_1698: { -if (x_1649 == 0) +if (x_1650 == 0) { -lean_object* x_1650; lean_object* x_1651; lean_object* x_1652; lean_object* x_1653; lean_object* x_1654; lean_object* x_1655; lean_object* x_1656; lean_object* x_1657; lean_object* x_1658; lean_object* x_1659; lean_object* x_1660; lean_object* x_1661; lean_object* x_1662; lean_object* x_1663; lean_object* x_1664; lean_object* x_1665; lean_object* x_1666; lean_object* x_1667; -lean_dec(x_1600); -lean_dec(x_1459); -lean_dec(x_223); -x_1650 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); -x_1651 = lean_ctor_get(x_1650, 0); -lean_inc(x_1651); -x_1652 = lean_ctor_get(x_1650, 1); +lean_object* x_1651; lean_object* x_1652; lean_object* x_1653; lean_object* x_1654; lean_object* x_1655; lean_object* x_1656; lean_object* x_1657; lean_object* x_1658; lean_object* x_1659; lean_object* x_1660; lean_object* x_1661; lean_object* x_1662; lean_object* x_1663; lean_object* x_1664; lean_object* x_1665; lean_object* x_1666; lean_object* x_1667; lean_object* x_1668; +lean_dec(x_1601); +lean_dec(x_1460); +lean_dec(x_224); +x_1651 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); +x_1652 = lean_ctor_get(x_1651, 0); lean_inc(x_1652); -lean_dec(x_1650); -x_1653 = l_Lean_Elab_Term_getEnv___rarg(x_1652); -x_1654 = lean_ctor_get(x_1653, 1); -lean_inc(x_1654); -x_1655 = lean_ctor_get(x_1653, 0); +x_1653 = lean_ctor_get(x_1651, 1); +lean_inc(x_1653); +lean_dec(x_1651); +x_1654 = l_Lean_Elab_Term_getEnv___rarg(x_1653); +x_1655 = lean_ctor_get(x_1654, 1); lean_inc(x_1655); -lean_dec(x_1653); x_1656 = lean_ctor_get(x_1654, 0); lean_inc(x_1656); -x_1657 = lean_ctor_get(x_1654, 1); -lean_inc(x_1657); -x_1658 = lean_ctor_get(x_1654, 2); -lean_inc(x_1658); -x_1659 = lean_ctor_get(x_1654, 3); -lean_inc(x_1659); -x_1660 = lean_ctor_get(x_1654, 4); -lean_inc(x_1660); -x_1661 = lean_ctor_get(x_1654, 5); -lean_inc(x_1661); -x_1662 = lean_ctor_get(x_3, 0); -lean_inc(x_1662); -x_1663 = lean_ctor_get(x_1662, 3); -lean_inc(x_1663); -x_1664 = lean_ctor_get(x_1662, 4); -lean_inc(x_1664); -lean_dec(x_1662); -x_1665 = lean_environment_main_module(x_1655); -x_1666 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_1666, 0, x_1665); -lean_ctor_set(x_1666, 1, x_1651); -lean_ctor_set(x_1666, 2, x_1663); -lean_ctor_set(x_1666, 3, x_1664); -lean_inc(x_1); -x_1667 = l___private_Lean_Elab_Match_31__expandMatchDiscr_x3f(x_1, x_1666, x_1661); -if (lean_obj_tag(x_1667) == 0) -{ -uint8_t x_1668; -x_1668 = !lean_is_exclusive(x_1654); -if (x_1668 == 0) -{ -lean_object* x_1669; lean_object* x_1670; lean_object* x_1671; lean_object* x_1672; lean_object* x_1673; lean_object* x_1674; lean_object* x_1675; lean_object* x_1676; -x_1669 = lean_ctor_get(x_1654, 5); -lean_dec(x_1669); -x_1670 = lean_ctor_get(x_1654, 4); -lean_dec(x_1670); -x_1671 = lean_ctor_get(x_1654, 3); -lean_dec(x_1671); -x_1672 = lean_ctor_get(x_1654, 2); -lean_dec(x_1672); -x_1673 = lean_ctor_get(x_1654, 1); -lean_dec(x_1673); -x_1674 = lean_ctor_get(x_1654, 0); -lean_dec(x_1674); -x_1675 = lean_ctor_get(x_1667, 0); -lean_inc(x_1675); -x_1676 = lean_ctor_get(x_1667, 1); -lean_inc(x_1676); -lean_dec(x_1667); -lean_ctor_set(x_1654, 5, x_1676); -x_5 = x_1675; -x_6 = x_1654; -goto block_33; -} -else -{ -lean_object* x_1677; lean_object* x_1678; lean_object* x_1679; lean_dec(x_1654); -x_1677 = lean_ctor_get(x_1667, 0); +x_1657 = lean_ctor_get(x_1655, 0); +lean_inc(x_1657); +x_1658 = lean_ctor_get(x_1655, 1); +lean_inc(x_1658); +x_1659 = lean_ctor_get(x_1655, 2); +lean_inc(x_1659); +x_1660 = lean_ctor_get(x_1655, 3); +lean_inc(x_1660); +x_1661 = lean_ctor_get(x_1655, 4); +lean_inc(x_1661); +x_1662 = lean_ctor_get(x_1655, 5); +lean_inc(x_1662); +x_1663 = lean_ctor_get(x_3, 0); +lean_inc(x_1663); +x_1664 = lean_ctor_get(x_1663, 3); +lean_inc(x_1664); +x_1665 = lean_ctor_get(x_1663, 4); +lean_inc(x_1665); +lean_dec(x_1663); +x_1666 = lean_environment_main_module(x_1656); +x_1667 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_1667, 0, x_1666); +lean_ctor_set(x_1667, 1, x_1652); +lean_ctor_set(x_1667, 2, x_1664); +lean_ctor_set(x_1667, 3, x_1665); +lean_inc(x_1); +x_1668 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_1667, x_1662); +if (lean_obj_tag(x_1668) == 0) +{ +uint8_t x_1669; +x_1669 = !lean_is_exclusive(x_1655); +if (x_1669 == 0) +{ +lean_object* x_1670; lean_object* x_1671; lean_object* x_1672; lean_object* x_1673; lean_object* x_1674; lean_object* x_1675; lean_object* x_1676; lean_object* x_1677; +x_1670 = lean_ctor_get(x_1655, 5); +lean_dec(x_1670); +x_1671 = lean_ctor_get(x_1655, 4); +lean_dec(x_1671); +x_1672 = lean_ctor_get(x_1655, 3); +lean_dec(x_1672); +x_1673 = lean_ctor_get(x_1655, 2); +lean_dec(x_1673); +x_1674 = lean_ctor_get(x_1655, 1); +lean_dec(x_1674); +x_1675 = lean_ctor_get(x_1655, 0); +lean_dec(x_1675); +x_1676 = lean_ctor_get(x_1668, 0); +lean_inc(x_1676); +x_1677 = lean_ctor_get(x_1668, 1); lean_inc(x_1677); -x_1678 = lean_ctor_get(x_1667, 1); +lean_dec(x_1668); +lean_ctor_set(x_1655, 5, x_1677); +x_5 = x_1676; +x_6 = x_1655; +goto block_34; +} +else +{ +lean_object* x_1678; lean_object* x_1679; lean_object* x_1680; +lean_dec(x_1655); +x_1678 = lean_ctor_get(x_1668, 0); lean_inc(x_1678); -lean_dec(x_1667); -x_1679 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_1679, 0, x_1656); -lean_ctor_set(x_1679, 1, x_1657); -lean_ctor_set(x_1679, 2, x_1658); -lean_ctor_set(x_1679, 3, x_1659); -lean_ctor_set(x_1679, 4, x_1660); -lean_ctor_set(x_1679, 5, x_1678); -x_5 = x_1677; -x_6 = x_1679; -goto block_33; +x_1679 = lean_ctor_get(x_1668, 1); +lean_inc(x_1679); +lean_dec(x_1668); +x_1680 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_1680, 0, x_1657); +lean_ctor_set(x_1680, 1, x_1658); +lean_ctor_set(x_1680, 2, x_1659); +lean_ctor_set(x_1680, 3, x_1660); +lean_ctor_set(x_1680, 4, x_1661); +lean_ctor_set(x_1680, 5, x_1679); +x_5 = x_1678; +x_6 = x_1680; +goto block_34; } } else { -lean_object* x_1680; +lean_object* x_1681; +lean_dec(x_1661); lean_dec(x_1660); lean_dec(x_1659); lean_dec(x_1658); lean_dec(x_1657); -lean_dec(x_1656); lean_dec(x_2); lean_dec(x_1); -x_1680 = lean_ctor_get(x_1667, 0); -lean_inc(x_1680); -lean_dec(x_1667); -if (lean_obj_tag(x_1680) == 0) -{ -lean_object* x_1681; lean_object* x_1682; lean_object* x_1683; lean_object* x_1684; lean_object* x_1685; uint8_t x_1686; -x_1681 = lean_ctor_get(x_1680, 0); +x_1681 = lean_ctor_get(x_1668, 0); lean_inc(x_1681); -x_1682 = lean_ctor_get(x_1680, 1); +lean_dec(x_1668); +if (lean_obj_tag(x_1681) == 0) +{ +lean_object* x_1682; lean_object* x_1683; lean_object* x_1684; lean_object* x_1685; lean_object* x_1686; uint8_t x_1687; +x_1682 = lean_ctor_get(x_1681, 0); lean_inc(x_1682); -lean_dec(x_1680); -x_1683 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1683, 0, x_1682); -x_1684 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1684, 0, x_1683); -x_1685 = l_Lean_Elab_Term_throwError___rarg(x_1681, x_1684, x_3, x_1654); +x_1683 = lean_ctor_get(x_1681, 1); +lean_inc(x_1683); lean_dec(x_1681); -x_1686 = !lean_is_exclusive(x_1685); -if (x_1686 == 0) +x_1684 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1684, 0, x_1683); +x_1685 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1685, 0, x_1684); +x_1686 = l_Lean_Elab_Term_throwErrorAt___rarg(x_1682, x_1685, x_3, x_1655); +lean_dec(x_1682); +x_1687 = !lean_is_exclusive(x_1686); +if (x_1687 == 0) { -return x_1685; +return x_1686; } else { -lean_object* x_1687; lean_object* x_1688; lean_object* x_1689; -x_1687 = lean_ctor_get(x_1685, 0); -x_1688 = lean_ctor_get(x_1685, 1); +lean_object* x_1688; lean_object* x_1689; lean_object* x_1690; +x_1688 = lean_ctor_get(x_1686, 0); +x_1689 = lean_ctor_get(x_1686, 1); +lean_inc(x_1689); lean_inc(x_1688); -lean_inc(x_1687); -lean_dec(x_1685); -x_1689 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1689, 0, x_1687); -lean_ctor_set(x_1689, 1, x_1688); -return x_1689; -} -} -else -{ -lean_object* x_1690; uint8_t x_1691; -lean_dec(x_3); -x_1690 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_1654); -x_1691 = !lean_is_exclusive(x_1690); -if (x_1691 == 0) -{ +lean_dec(x_1686); +x_1690 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1690, 0, x_1688); +lean_ctor_set(x_1690, 1, x_1689); return x_1690; } +} else { -lean_object* x_1692; lean_object* x_1693; lean_object* x_1694; -x_1692 = lean_ctor_get(x_1690, 0); -x_1693 = lean_ctor_get(x_1690, 1); +lean_object* x_1691; uint8_t x_1692; +lean_dec(x_3); +x_1691 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_1655); +x_1692 = !lean_is_exclusive(x_1691); +if (x_1692 == 0) +{ +return x_1691; +} +else +{ +lean_object* x_1693; lean_object* x_1694; lean_object* x_1695; +x_1693 = lean_ctor_get(x_1691, 0); +x_1694 = lean_ctor_get(x_1691, 1); +lean_inc(x_1694); lean_inc(x_1693); -lean_inc(x_1692); -lean_dec(x_1690); -x_1694 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1694, 0, x_1692); -lean_ctor_set(x_1694, 1, x_1693); -return x_1694; +lean_dec(x_1691); +x_1695 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1695, 0, x_1693); +lean_ctor_set(x_1695, 1, x_1694); +return x_1695; } } } } else { -lean_object* x_1695; lean_object* x_1696; -x_1695 = l_Lean_Syntax_getArg(x_1459, x_224); -lean_dec(x_1459); -x_1696 = l___private_Lean_Elab_Match_1__expandSimpleMatch(x_1, x_223, x_1600, x_1695, x_2, x_3, x_4); -return x_1696; +lean_object* x_1696; lean_object* x_1697; +x_1696 = l_Lean_Syntax_getArg(x_1460, x_225); +lean_dec(x_1460); +x_1697 = l___private_Lean_Elab_Match_1__expandSimpleMatch(x_1, x_224, x_1601, x_1696, x_2, x_3, x_4); +return x_1697; } } } @@ -25981,7 +26491,7 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* l___private_Lean_Elab_Match_32__regTraceClasses(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Match_34__regTraceClasses(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -26038,9 +26548,9 @@ return x_13; } } lean_object* initialize_Init(lean_object*); -lean_object* initialize_Lean_Elab_Term(lean_object*); lean_object* initialize_Lean_Meta_EqnCompiler_MatchPattern(lean_object*); lean_object* initialize_Lean_Meta_EqnCompiler_DepElim(lean_object*); +lean_object* initialize_Lean_Elab_SyntheticMVars(lean_object*); static bool _G_initialized = false; lean_object* initialize_Lean_Elab_Match(lean_object* w) { lean_object * res; @@ -26049,15 +26559,15 @@ _G_initialized = true; res = initialize_Init(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = initialize_Lean_Elab_Term(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); res = initialize_Lean_Meta_EqnCompiler_MatchPattern(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); res = initialize_Lean_Meta_EqnCompiler_DepElim(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Elab_SyntheticMVars(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l___private_Lean_Elab_Match_1__expandSimpleMatch___closed__1 = _init_l___private_Lean_Elab_Match_1__expandSimpleMatch___closed__1(); lean_mark_persistent(l___private_Lean_Elab_Match_1__expandSimpleMatch___closed__1); l___private_Lean_Elab_Match_1__expandSimpleMatch___closed__2 = _init_l___private_Lean_Elab_Match_1__expandSimpleMatch___closed__2(); @@ -26126,6 +26636,10 @@ l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__11 = _init_l___pri lean_mark_persistent(l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__11); l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__12 = _init_l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__12(); lean_mark_persistent(l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__12); +l_Lean_Elab_Term_mkInaccessible___closed__1 = _init_l_Lean_Elab_Term_mkInaccessible___closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_mkInaccessible___closed__1); +l_Lean_Elab_Term_mkInaccessible___closed__2 = _init_l_Lean_Elab_Term_mkInaccessible___closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_mkInaccessible___closed__2); l_Lean_Elab_Term_PatternVar_hasToString___closed__1 = _init_l_Lean_Elab_Term_PatternVar_hasToString___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_PatternVar_hasToString___closed__1); l___private_Lean_Elab_Match_9__registerAuxiliaryNodeKind___closed__1 = _init_l___private_Lean_Elab_Match_9__registerAuxiliaryNodeKind___closed__1(); @@ -26135,90 +26649,92 @@ lean_mark_persistent(l___private_Lean_Elab_Match_9__registerAuxiliaryNodeKind___ res = l___private_Lean_Elab_Match_9__registerAuxiliaryNodeKind(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l___private_Lean_Elab_Match_10__throwCtorExpected___rarg___closed__1 = _init_l___private_Lean_Elab_Match_10__throwCtorExpected___rarg___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_10__throwCtorExpected___rarg___closed__1); -l___private_Lean_Elab_Match_10__throwCtorExpected___rarg___closed__2 = _init_l___private_Lean_Elab_Match_10__throwCtorExpected___rarg___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Match_10__throwCtorExpected___rarg___closed__2); -l___private_Lean_Elab_Match_10__throwCtorExpected___rarg___closed__3 = _init_l___private_Lean_Elab_Match_10__throwCtorExpected___rarg___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Match_10__throwCtorExpected___rarg___closed__3); -l___private_Lean_Elab_Match_12__throwAmbiguous___rarg___closed__1 = _init_l___private_Lean_Elab_Match_12__throwAmbiguous___rarg___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_12__throwAmbiguous___rarg___closed__1); -l___private_Lean_Elab_Match_12__throwAmbiguous___rarg___closed__2 = _init_l___private_Lean_Elab_Match_12__throwAmbiguous___rarg___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Match_12__throwAmbiguous___rarg___closed__2); -l___private_Lean_Elab_Match_12__throwAmbiguous___rarg___closed__3 = _init_l___private_Lean_Elab_Match_12__throwAmbiguous___rarg___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Match_12__throwAmbiguous___rarg___closed__3); -l___private_Lean_Elab_Match_13__processVar___closed__1 = _init_l___private_Lean_Elab_Match_13__processVar___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_13__processVar___closed__1); -l___private_Lean_Elab_Match_13__processVar___closed__2 = _init_l___private_Lean_Elab_Match_13__processVar___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Match_13__processVar___closed__2); -l___private_Lean_Elab_Match_13__processVar___closed__3 = _init_l___private_Lean_Elab_Match_13__processVar___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Match_13__processVar___closed__3); -l___private_Lean_Elab_Match_13__processVar___closed__4 = _init_l___private_Lean_Elab_Match_13__processVar___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_Match_13__processVar___closed__4); -l___private_Lean_Elab_Match_13__processVar___closed__5 = _init_l___private_Lean_Elab_Match_13__processVar___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_Match_13__processVar___closed__5); -l___private_Lean_Elab_Match_13__processVar___closed__6 = _init_l___private_Lean_Elab_Match_13__processVar___closed__6(); -lean_mark_persistent(l___private_Lean_Elab_Match_13__processVar___closed__6); -l___private_Lean_Elab_Match_13__processVar___closed__7 = _init_l___private_Lean_Elab_Match_13__processVar___closed__7(); -lean_mark_persistent(l___private_Lean_Elab_Match_13__processVar___closed__7); -l___private_Lean_Elab_Match_13__processVar___closed__8 = _init_l___private_Lean_Elab_Match_13__processVar___closed__8(); -lean_mark_persistent(l___private_Lean_Elab_Match_13__processVar___closed__8); -l___private_Lean_Elab_Match_13__processVar___closed__9 = _init_l___private_Lean_Elab_Match_13__processVar___closed__9(); -lean_mark_persistent(l___private_Lean_Elab_Match_13__processVar___closed__9); -l___private_Lean_Elab_Match_14__processIdAux___closed__1 = _init_l___private_Lean_Elab_Match_14__processIdAux___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_14__processIdAux___closed__1); -l___private_Lean_Elab_Match_14__processIdAux___closed__2 = _init_l___private_Lean_Elab_Match_14__processIdAux___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Match_14__processIdAux___closed__2); -l___private_Lean_Elab_Match_14__processIdAux___closed__3 = _init_l___private_Lean_Elab_Match_14__processIdAux___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Match_14__processIdAux___closed__3); -l___private_Lean_Elab_Match_14__processIdAux___closed__4 = _init_l___private_Lean_Elab_Match_14__processIdAux___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_Match_14__processIdAux___closed__4); -l___private_Lean_Elab_Match_17__throwInvalidPattern___rarg___closed__1 = _init_l___private_Lean_Elab_Match_17__throwInvalidPattern___rarg___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_17__throwInvalidPattern___rarg___closed__1); -l___private_Lean_Elab_Match_17__throwInvalidPattern___rarg___closed__2 = _init_l___private_Lean_Elab_Match_17__throwInvalidPattern___rarg___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Match_17__throwInvalidPattern___rarg___closed__2); -l___private_Lean_Elab_Match_17__throwInvalidPattern___rarg___closed__3 = _init_l___private_Lean_Elab_Match_17__throwInvalidPattern___rarg___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Match_17__throwInvalidPattern___rarg___closed__3); -l_Array_forMAux___main___at___private_Lean_Elab_Match_18__collect___main___spec__3___closed__1 = _init_l_Array_forMAux___main___at___private_Lean_Elab_Match_18__collect___main___spec__3___closed__1(); -lean_mark_persistent(l_Array_forMAux___main___at___private_Lean_Elab_Match_18__collect___main___spec__3___closed__1); -l_Array_forMAux___main___at___private_Lean_Elab_Match_18__collect___main___spec__3___closed__2 = _init_l_Array_forMAux___main___at___private_Lean_Elab_Match_18__collect___main___spec__3___closed__2(); -lean_mark_persistent(l_Array_forMAux___main___at___private_Lean_Elab_Match_18__collect___main___spec__3___closed__2); -l_Array_forMAux___main___at___private_Lean_Elab_Match_18__collect___main___spec__3___closed__3 = _init_l_Array_forMAux___main___at___private_Lean_Elab_Match_18__collect___main___spec__3___closed__3(); -lean_mark_persistent(l_Array_forMAux___main___at___private_Lean_Elab_Match_18__collect___main___spec__3___closed__3); -l___private_Lean_Elab_Match_18__collect___main___closed__1 = _init_l___private_Lean_Elab_Match_18__collect___main___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_18__collect___main___closed__1); -l___private_Lean_Elab_Match_18__collect___main___closed__2 = _init_l___private_Lean_Elab_Match_18__collect___main___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Match_18__collect___main___closed__2); -l___private_Lean_Elab_Match_18__collect___main___closed__3 = _init_l___private_Lean_Elab_Match_18__collect___main___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Match_18__collect___main___closed__3); -l___private_Lean_Elab_Match_18__collect___main___closed__4 = _init_l___private_Lean_Elab_Match_18__collect___main___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_Match_18__collect___main___closed__4); -l___private_Lean_Elab_Match_18__collect___main___closed__5 = _init_l___private_Lean_Elab_Match_18__collect___main___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_Match_18__collect___main___closed__5); -l___private_Lean_Elab_Match_18__collect___main___closed__6 = _init_l___private_Lean_Elab_Match_18__collect___main___closed__6(); -lean_mark_persistent(l___private_Lean_Elab_Match_18__collect___main___closed__6); -l___private_Lean_Elab_Match_18__collect___main___closed__7 = _init_l___private_Lean_Elab_Match_18__collect___main___closed__7(); -lean_mark_persistent(l___private_Lean_Elab_Match_18__collect___main___closed__7); -l___private_Lean_Elab_Match_18__collect___main___closed__8 = _init_l___private_Lean_Elab_Match_18__collect___main___closed__8(); -lean_mark_persistent(l___private_Lean_Elab_Match_18__collect___main___closed__8); -l___private_Lean_Elab_Match_18__collect___main___closed__9 = _init_l___private_Lean_Elab_Match_18__collect___main___closed__9(); -lean_mark_persistent(l___private_Lean_Elab_Match_18__collect___main___closed__9); -l___private_Lean_Elab_Match_18__collect___main___closed__10 = _init_l___private_Lean_Elab_Match_18__collect___main___closed__10(); -lean_mark_persistent(l___private_Lean_Elab_Match_18__collect___main___closed__10); -l___private_Lean_Elab_Match_18__collect___main___closed__11 = _init_l___private_Lean_Elab_Match_18__collect___main___closed__11(); -lean_mark_persistent(l___private_Lean_Elab_Match_18__collect___main___closed__11); -l___private_Lean_Elab_Match_18__collect___main___closed__12 = _init_l___private_Lean_Elab_Match_18__collect___main___closed__12(); -lean_mark_persistent(l___private_Lean_Elab_Match_18__collect___main___closed__12); -l___private_Lean_Elab_Match_18__collect___main___closed__13 = _init_l___private_Lean_Elab_Match_18__collect___main___closed__13(); -lean_mark_persistent(l___private_Lean_Elab_Match_18__collect___main___closed__13); -l___private_Lean_Elab_Match_18__collect___main___closed__14 = _init_l___private_Lean_Elab_Match_18__collect___main___closed__14(); -lean_mark_persistent(l___private_Lean_Elab_Match_18__collect___main___closed__14); -l___private_Lean_Elab_Match_18__collect___main___closed__15 = _init_l___private_Lean_Elab_Match_18__collect___main___closed__15(); -lean_mark_persistent(l___private_Lean_Elab_Match_18__collect___main___closed__15); -l___private_Lean_Elab_Match_18__collect___main___closed__16 = _init_l___private_Lean_Elab_Match_18__collect___main___closed__16(); -lean_mark_persistent(l___private_Lean_Elab_Match_18__collect___main___closed__16); -l___private_Lean_Elab_Match_18__collect___main___closed__17 = _init_l___private_Lean_Elab_Match_18__collect___main___closed__17(); -lean_mark_persistent(l___private_Lean_Elab_Match_18__collect___main___closed__17); +l___regBuiltin_Lean_Elab_Term_elabMVarWithIdKind___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabMVarWithIdKind___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabMVarWithIdKind___closed__1); +res = l___regBuiltin_Lean_Elab_Term_elabMVarWithIdKind(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l___regBuiltin_Lean_Elab_Term_elabInaccessible___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabInaccessible___closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabInaccessible___closed__1); +res = l___regBuiltin_Lean_Elab_Term_elabInaccessible(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l___private_Lean_Elab_Match_12__throwCtorExpected___rarg___closed__1 = _init_l___private_Lean_Elab_Match_12__throwCtorExpected___rarg___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_12__throwCtorExpected___rarg___closed__1); +l___private_Lean_Elab_Match_12__throwCtorExpected___rarg___closed__2 = _init_l___private_Lean_Elab_Match_12__throwCtorExpected___rarg___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Match_12__throwCtorExpected___rarg___closed__2); +l___private_Lean_Elab_Match_12__throwCtorExpected___rarg___closed__3 = _init_l___private_Lean_Elab_Match_12__throwCtorExpected___rarg___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Match_12__throwCtorExpected___rarg___closed__3); +l___private_Lean_Elab_Match_14__throwAmbiguous___rarg___closed__1 = _init_l___private_Lean_Elab_Match_14__throwAmbiguous___rarg___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_14__throwAmbiguous___rarg___closed__1); +l___private_Lean_Elab_Match_14__throwAmbiguous___rarg___closed__2 = _init_l___private_Lean_Elab_Match_14__throwAmbiguous___rarg___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Match_14__throwAmbiguous___rarg___closed__2); +l___private_Lean_Elab_Match_14__throwAmbiguous___rarg___closed__3 = _init_l___private_Lean_Elab_Match_14__throwAmbiguous___rarg___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Match_14__throwAmbiguous___rarg___closed__3); +l___private_Lean_Elab_Match_15__processVar___closed__1 = _init_l___private_Lean_Elab_Match_15__processVar___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_15__processVar___closed__1); +l___private_Lean_Elab_Match_15__processVar___closed__2 = _init_l___private_Lean_Elab_Match_15__processVar___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Match_15__processVar___closed__2); +l___private_Lean_Elab_Match_15__processVar___closed__3 = _init_l___private_Lean_Elab_Match_15__processVar___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Match_15__processVar___closed__3); +l___private_Lean_Elab_Match_15__processVar___closed__4 = _init_l___private_Lean_Elab_Match_15__processVar___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_Match_15__processVar___closed__4); +l___private_Lean_Elab_Match_15__processVar___closed__5 = _init_l___private_Lean_Elab_Match_15__processVar___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_Match_15__processVar___closed__5); +l___private_Lean_Elab_Match_15__processVar___closed__6 = _init_l___private_Lean_Elab_Match_15__processVar___closed__6(); +lean_mark_persistent(l___private_Lean_Elab_Match_15__processVar___closed__6); +l___private_Lean_Elab_Match_15__processVar___closed__7 = _init_l___private_Lean_Elab_Match_15__processVar___closed__7(); +lean_mark_persistent(l___private_Lean_Elab_Match_15__processVar___closed__7); +l___private_Lean_Elab_Match_15__processVar___closed__8 = _init_l___private_Lean_Elab_Match_15__processVar___closed__8(); +lean_mark_persistent(l___private_Lean_Elab_Match_15__processVar___closed__8); +l___private_Lean_Elab_Match_15__processVar___closed__9 = _init_l___private_Lean_Elab_Match_15__processVar___closed__9(); +lean_mark_persistent(l___private_Lean_Elab_Match_15__processVar___closed__9); +l___private_Lean_Elab_Match_16__processIdAux___lambda__1___closed__1 = _init_l___private_Lean_Elab_Match_16__processIdAux___lambda__1___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_16__processIdAux___lambda__1___closed__1); +l___private_Lean_Elab_Match_16__processIdAux___lambda__1___closed__2 = _init_l___private_Lean_Elab_Match_16__processIdAux___lambda__1___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Match_16__processIdAux___lambda__1___closed__2); +l___private_Lean_Elab_Match_16__processIdAux___lambda__1___closed__3 = _init_l___private_Lean_Elab_Match_16__processIdAux___lambda__1___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Match_16__processIdAux___lambda__1___closed__3); +l___private_Lean_Elab_Match_16__processIdAux___closed__1 = _init_l___private_Lean_Elab_Match_16__processIdAux___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_16__processIdAux___closed__1); +l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___closed__1 = _init_l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___closed__1); +l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___closed__2 = _init_l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___closed__2); +l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___closed__3 = _init_l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___closed__3); +l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__3___closed__1 = _init_l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__3___closed__1(); +lean_mark_persistent(l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__3___closed__1); +l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__3___closed__2 = _init_l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__3___closed__2(); +lean_mark_persistent(l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__3___closed__2); +l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__3___closed__3 = _init_l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__3___closed__3(); +lean_mark_persistent(l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__3___closed__3); +l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__1 = _init_l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__1); +l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__2 = _init_l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__2); +l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__3 = _init_l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__3); +l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__4 = _init_l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__4); +l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__5 = _init_l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__5); +l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__6 = _init_l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__6(); +lean_mark_persistent(l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__6); +l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__7 = _init_l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__7(); +lean_mark_persistent(l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__7); +l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__8 = _init_l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__8(); +lean_mark_persistent(l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__8); +l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__9 = _init_l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__9(); +lean_mark_persistent(l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__9); +l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__10 = _init_l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__10(); +lean_mark_persistent(l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__10); +l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__11 = _init_l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__11(); +lean_mark_persistent(l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__11); +l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__12 = _init_l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__12(); +lean_mark_persistent(l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__12); +l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__13 = _init_l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__13(); +lean_mark_persistent(l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__13); l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__1___closed__1 = _init_l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__1___closed__1(); lean_mark_persistent(l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__1___closed__1); l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__1___closed__2 = _init_l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__1___closed__2(); @@ -26227,20 +26743,20 @@ l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__1___ lean_mark_persistent(l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__1___closed__3); l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__1___closed__4 = _init_l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__1___closed__4(); lean_mark_persistent(l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__1___closed__4); -l___private_Lean_Elab_Match_19__collectPatternVars___closed__1 = _init_l___private_Lean_Elab_Match_19__collectPatternVars___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_19__collectPatternVars___closed__1); -l___private_Lean_Elab_Match_22__elabPatternsAux___main___closed__1 = _init_l___private_Lean_Elab_Match_22__elabPatternsAux___main___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_22__elabPatternsAux___main___closed__1); -l___private_Lean_Elab_Match_22__elabPatternsAux___main___closed__2 = _init_l___private_Lean_Elab_Match_22__elabPatternsAux___main___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Match_22__elabPatternsAux___main___closed__2); -l___private_Lean_Elab_Match_22__elabPatternsAux___main___closed__3 = _init_l___private_Lean_Elab_Match_22__elabPatternsAux___main___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Match_22__elabPatternsAux___main___closed__3); -l___private_Lean_Elab_Match_23__elabPatterns___closed__1 = _init_l___private_Lean_Elab_Match_23__elabPatterns___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_23__elabPatterns___closed__1); -l___private_Lean_Elab_Match_23__elabPatterns___closed__2 = _init_l___private_Lean_Elab_Match_23__elabPatterns___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Match_23__elabPatterns___closed__2); -l___private_Lean_Elab_Match_23__elabPatterns___closed__3 = _init_l___private_Lean_Elab_Match_23__elabPatterns___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Match_23__elabPatterns___closed__3); +l___private_Lean_Elab_Match_21__collectPatternVars___closed__1 = _init_l___private_Lean_Elab_Match_21__collectPatternVars___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_21__collectPatternVars___closed__1); +l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__1 = _init_l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__1); +l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__2 = _init_l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__2); +l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__3 = _init_l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__3); +l___private_Lean_Elab_Match_25__elabPatterns___closed__1 = _init_l___private_Lean_Elab_Match_25__elabPatterns___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_25__elabPatterns___closed__1); +l___private_Lean_Elab_Match_25__elabPatterns___closed__2 = _init_l___private_Lean_Elab_Match_25__elabPatterns___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Match_25__elabPatterns___closed__2); +l___private_Lean_Elab_Match_25__elabPatterns___closed__3 = _init_l___private_Lean_Elab_Match_25__elabPatterns___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Match_25__elabPatterns___closed__3); l_Lean_Elab_Term_elabMatchAltView___lambda__1___closed__1 = _init_l_Lean_Elab_Term_elabMatchAltView___lambda__1___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_elabMatchAltView___lambda__1___closed__1); l_Lean_Elab_Term_elabMatchAltView___lambda__1___closed__2 = _init_l_Lean_Elab_Term_elabMatchAltView___lambda__1___closed__2(); @@ -26251,50 +26767,52 @@ l_Lean_Elab_Term_elabMatchAltView___closed__2 = _init_l_Lean_Elab_Term_elabMatch lean_mark_persistent(l_Lean_Elab_Term_elabMatchAltView___closed__2); l_Lean_Elab_Term_elabMatchAltView___closed__3 = _init_l_Lean_Elab_Term_elabMatchAltView___closed__3(); lean_mark_persistent(l_Lean_Elab_Term_elabMatchAltView___closed__3); -l_Lean_Elab_Term_elabMatchAltView___closed__4 = _init_l_Lean_Elab_Term_elabMatchAltView___closed__4(); -lean_mark_persistent(l_Lean_Elab_Term_elabMatchAltView___closed__4); -l___private_Lean_Elab_Match_24__elabMatchCore___closed__1 = _init_l___private_Lean_Elab_Match_24__elabMatchCore___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_24__elabMatchCore___closed__1); -l___private_Lean_Elab_Match_24__elabMatchCore___closed__2 = _init_l___private_Lean_Elab_Match_24__elabMatchCore___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Match_24__elabMatchCore___closed__2); -l___private_Lean_Elab_Match_24__elabMatchCore___closed__3 = _init_l___private_Lean_Elab_Match_24__elabMatchCore___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Match_24__elabMatchCore___closed__3); -l___private_Lean_Elab_Match_24__elabMatchCore___closed__4 = _init_l___private_Lean_Elab_Match_24__elabMatchCore___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_Match_24__elabMatchCore___closed__4); -l___private_Lean_Elab_Match_24__elabMatchCore___closed__5 = _init_l___private_Lean_Elab_Match_24__elabMatchCore___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_Match_24__elabMatchCore___closed__5); -l___private_Lean_Elab_Match_25__mkMatchType___main___closed__1 = _init_l___private_Lean_Elab_Match_25__mkMatchType___main___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_25__mkMatchType___main___closed__1); -l___private_Lean_Elab_Match_25__mkMatchType___main___closed__2 = _init_l___private_Lean_Elab_Match_25__mkMatchType___main___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Match_25__mkMatchType___main___closed__2); -l___private_Lean_Elab_Match_25__mkMatchType___main___closed__3 = _init_l___private_Lean_Elab_Match_25__mkMatchType___main___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Match_25__mkMatchType___main___closed__3); -l___private_Lean_Elab_Match_25__mkMatchType___main___closed__4 = _init_l___private_Lean_Elab_Match_25__mkMatchType___main___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_Match_25__mkMatchType___main___closed__4); -l___private_Lean_Elab_Match_25__mkMatchType___main___closed__5 = _init_l___private_Lean_Elab_Match_25__mkMatchType___main___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_Match_25__mkMatchType___main___closed__5); -l___private_Lean_Elab_Match_27__mkNewDiscrs___main___closed__1 = _init_l___private_Lean_Elab_Match_27__mkNewDiscrs___main___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_27__mkNewDiscrs___main___closed__1); -l___private_Lean_Elab_Match_27__mkNewDiscrs___main___closed__2 = _init_l___private_Lean_Elab_Match_27__mkNewDiscrs___main___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Match_27__mkNewDiscrs___main___closed__2); -l___private_Lean_Elab_Match_27__mkNewDiscrs___main___closed__3 = _init_l___private_Lean_Elab_Match_27__mkNewDiscrs___main___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Match_27__mkNewDiscrs___main___closed__3); -l___private_Lean_Elab_Match_27__mkNewDiscrs___main___closed__4 = _init_l___private_Lean_Elab_Match_27__mkNewDiscrs___main___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_Match_27__mkNewDiscrs___main___closed__4); -l___private_Lean_Elab_Match_27__mkNewDiscrs___main___closed__5 = _init_l___private_Lean_Elab_Match_27__mkNewDiscrs___main___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_Match_27__mkNewDiscrs___main___closed__5); -l___private_Lean_Elab_Match_27__mkNewDiscrs___main___closed__6 = _init_l___private_Lean_Elab_Match_27__mkNewDiscrs___main___closed__6(); -lean_mark_persistent(l___private_Lean_Elab_Match_27__mkNewDiscrs___main___closed__6); -l___private_Lean_Elab_Match_28__mkNewPatterns___main___closed__1 = _init_l___private_Lean_Elab_Match_28__mkNewPatterns___main___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_28__mkNewPatterns___main___closed__1); -l___private_Lean_Elab_Match_31__expandMatchDiscr_x3f___closed__1 = _init_l___private_Lean_Elab_Match_31__expandMatchDiscr_x3f___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_31__expandMatchDiscr_x3f___closed__1); +l___private_Lean_Elab_Match_26__elabMatchCore___closed__1 = _init_l___private_Lean_Elab_Match_26__elabMatchCore___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_26__elabMatchCore___closed__1); +l___private_Lean_Elab_Match_26__elabMatchCore___closed__2 = _init_l___private_Lean_Elab_Match_26__elabMatchCore___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Match_26__elabMatchCore___closed__2); +l___private_Lean_Elab_Match_26__elabMatchCore___closed__3 = _init_l___private_Lean_Elab_Match_26__elabMatchCore___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Match_26__elabMatchCore___closed__3); +l___private_Lean_Elab_Match_26__elabMatchCore___closed__4 = _init_l___private_Lean_Elab_Match_26__elabMatchCore___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_Match_26__elabMatchCore___closed__4); +l___private_Lean_Elab_Match_26__elabMatchCore___closed__5 = _init_l___private_Lean_Elab_Match_26__elabMatchCore___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_Match_26__elabMatchCore___closed__5); +l___private_Lean_Elab_Match_27__mkMatchType___main___closed__1 = _init_l___private_Lean_Elab_Match_27__mkMatchType___main___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_27__mkMatchType___main___closed__1); +l___private_Lean_Elab_Match_27__mkMatchType___main___closed__2 = _init_l___private_Lean_Elab_Match_27__mkMatchType___main___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Match_27__mkMatchType___main___closed__2); +l___private_Lean_Elab_Match_27__mkMatchType___main___closed__3 = _init_l___private_Lean_Elab_Match_27__mkMatchType___main___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Match_27__mkMatchType___main___closed__3); +l___private_Lean_Elab_Match_27__mkMatchType___main___closed__4 = _init_l___private_Lean_Elab_Match_27__mkMatchType___main___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_Match_27__mkMatchType___main___closed__4); +l___private_Lean_Elab_Match_27__mkMatchType___main___closed__5 = _init_l___private_Lean_Elab_Match_27__mkMatchType___main___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_Match_27__mkMatchType___main___closed__5); +l___private_Lean_Elab_Match_27__mkMatchType___main___closed__6 = _init_l___private_Lean_Elab_Match_27__mkMatchType___main___closed__6(); +lean_mark_persistent(l___private_Lean_Elab_Match_27__mkMatchType___main___closed__6); +l___private_Lean_Elab_Match_27__mkMatchType___main___closed__7 = _init_l___private_Lean_Elab_Match_27__mkMatchType___main___closed__7(); +lean_mark_persistent(l___private_Lean_Elab_Match_27__mkMatchType___main___closed__7); +l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__1 = _init_l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__1); +l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__2 = _init_l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__2); +l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__3 = _init_l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__3); +l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__4 = _init_l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__4); +l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__5 = _init_l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__5); +l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__6 = _init_l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__6(); +lean_mark_persistent(l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__6); +l___private_Lean_Elab_Match_30__mkNewPatterns___main___closed__1 = _init_l___private_Lean_Elab_Match_30__mkNewPatterns___main___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_30__mkNewPatterns___main___closed__1); +l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f___closed__1 = _init_l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f___closed__1); l___regBuiltin_Lean_Elab_Term_elabMatch___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabMatch___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabMatch___closed__1); res = l___regBuiltin_Lean_Elab_Term_elabMatch(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = l___private_Lean_Elab_Match_32__regTraceClasses(lean_io_mk_world()); +res = l___private_Lean_Elab_Match_34__regTraceClasses(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_mk_io_result(lean_box(0)); diff --git a/stage0/stdlib/Lean/Elab/Quotation.c b/stage0/stdlib/Lean/Elab/Quotation.c index 3afebf222b..393ade1971 100644 --- a/stage0/stdlib/Lean/Elab/Quotation.c +++ b/stage0/stdlib/Lean/Elab/Quotation.c @@ -21,6 +21,7 @@ extern lean_object* l_Lean_Name_toString___closed__1; lean_object* l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_9__exprPlaceholder___closed__1; lean_object* l___private_Lean_Elab_Quotation_8__letBindRhss___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_throwErrorAt___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__21; lean_object* l___private_Lean_Elab_Quotation_4__getHeadInfo___boxed(lean_object*); lean_object* l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__22; @@ -186,7 +187,6 @@ extern lean_object* l_Lean_Meta_reduceNat_x3f___closed__12; lean_object* l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__31; lean_object* l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__10(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__59; -lean_object* l___private_Lean_Elab_Quotation_6__compileStxMatch___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_run___rarg___closed__5; lean_object* l_List_map___main___at_Lean_Elab_Term_Quotation_oldGetPatternVars___spec__1(lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__1___closed__6; @@ -246,7 +246,7 @@ lean_object* l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__37; lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_String_HasQuote___closed__1; lean_object* l_Lean_Unhygienic_run___rarg(lean_object*); -lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__5(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__6; lean_object* l_List_head_x21___at___private_Lean_Elab_Quotation_6__compileStxMatch___main___spec__2___closed__2; @@ -289,7 +289,7 @@ lean_object* lean_name_mk_string(lean_object*, lean_object*); extern lean_object* l_Lean_choiceKind; lean_object* l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__38; lean_object* l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__21; -lean_object* l_Lean_Elab_Term_throwError___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_throwError___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_maxPrec; lean_object* l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__9; lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__28; @@ -297,7 +297,7 @@ extern lean_object* l_Lean_Parser_Term_fun___elambda__1___closed__2; lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabMatchSyntax(lean_object*); extern lean_object* l_Lean_Elab_Exception_hasToString___closed__1; lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__14; -lean_object* l_Lean_Elab_Term_resolveName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_resolveName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__8; lean_object* l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__23; lean_object* l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__1___closed__2; @@ -314,7 +314,6 @@ lean_object* l___private_Lean_Elab_Quotation_4__getHeadInfo___lambda__1___boxed( lean_object* l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__2(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_4__getHeadInfo___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_fun___elambda__1___closed__1; -lean_object* l___private_Lean_Elab_Quotation_6__compileStxMatch___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__26; extern lean_object* l_Lean_mkAppStx___closed__6; extern lean_object* l_Lean_Options_empty; @@ -362,7 +361,6 @@ lean_object* l___private_Lean_Elab_Quotation_4__getHeadInfo___lambda__4___boxed( lean_object* l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; lean_object* l___private_Lean_Elab_Quotation_7__getPatternVarsAux(lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__8(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_5__explodeHeadPat___lambda__1___closed__2; lean_object* l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__46; @@ -441,7 +439,7 @@ extern lean_object* l_Lean_boolToExpr___lambda__1___closed__5; lean_object* l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__18; lean_object* l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__15; lean_object* l_List_mapM___main___at___private_Lean_Elab_Quotation_6__compileStxMatch___main___spec__8___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Quotation_6__compileStxMatch___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Quotation_6__compileStxMatch___main(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__3; lean_object* l_Lean_Elab_Term_Quotation_oldParseExpr___closed__1; lean_object* l_Lean_LocalContext_mkLambda(lean_object*, lean_object*, lean_object*); @@ -505,7 +503,7 @@ extern lean_object* l_Lean_Parser_Term_stxQuot___elambda__1___closed__3; lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabStxQuot(lean_object*); lean_object* l___private_Lean_Elab_Quotation_5__explodeHeadPat___closed__3; lean_object* l___private_Lean_Syntax_8__quoteList___main___at___private_Lean_Elab_Quotation_2__quoteSyntax___main___spec__3___closed__1; -lean_object* l___private_Lean_Elab_Quotation_6__compileStxMatch(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Quotation_6__compileStxMatch(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__4___closed__2; lean_object* l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__1; lean_object* l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__4___closed__1; @@ -581,6 +579,7 @@ uint8_t lean_string_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__19; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Quotation_4__getHeadInfo___spec__2(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_Quotation_match__syntax_expand___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_monadInhabited___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Quotation_elabMatchSyntax___closed__1; uint8_t l_Lean_Syntax_isIdent(lean_object*); @@ -2284,7 +2283,7 @@ else { lean_object* x_120; lean_object* x_121; x_120 = l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__18; -x_121 = l_Lean_Elab_Term_throwError___rarg(x_1, x_120, x_2, x_3); +x_121 = l_Lean_Elab_Term_throwErrorAt___rarg(x_1, x_120, x_2, x_3); lean_dec(x_1); return x_121; } @@ -4873,7 +4872,7 @@ x_13 = l___private_Lean_Elab_Quotation_4__getHeadInfo___lambda__1___closed__3; x_14 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_14, 0, x_13); lean_ctor_set(x_14, 1, x_12); -x_15 = l_Lean_Elab_Term_throwError___rarg(x_1, x_14, x_3, x_4); +x_15 = l_Lean_Elab_Term_throwErrorAt___rarg(x_1, x_14, x_3, x_4); lean_dec(x_1); return x_15; } @@ -5164,7 +5163,7 @@ x_13 = l___private_Lean_Elab_Quotation_4__getHeadInfo___lambda__3___closed__3; x_14 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_14, 0, x_13); lean_ctor_set(x_14, 1, x_12); -x_15 = l_Lean_Elab_Term_throwError___rarg(x_1, x_14, x_3, x_4); +x_15 = l_Lean_Elab_Term_throwErrorAt___rarg(x_1, x_14, x_3, x_4); lean_dec(x_1); return x_15; } @@ -5174,7 +5173,7 @@ _start: { lean_object* x_5; lean_object* x_6; x_5 = l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__18; -x_6 = l_Lean_Elab_Term_throwError___rarg(x_1, x_5, x_3, x_4); +x_6 = l_Lean_Elab_Term_throwErrorAt___rarg(x_1, x_5, x_3, x_4); return x_6; } } @@ -7688,128 +7687,130 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* l___private_Lean_Elab_Quotation_6__compileStxMatch___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_Quotation_6__compileStxMatch___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { +if (lean_obj_tag(x_1) == 0) +{ if (lean_obj_tag(x_2) == 0) { -if (lean_obj_tag(x_3) == 0) -{ -lean_object* x_6; lean_object* x_7; -x_6 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__3; -x_7 = l_Lean_Elab_Term_throwError___rarg(x_1, x_6, x_4, x_5); -return x_7; +lean_object* x_5; lean_object* x_6; +x_5 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__3; +x_6 = l_Lean_Elab_Term_throwError___rarg(x_5, x_3, x_4); +return x_6; } else { -lean_object* x_8; lean_object* x_9; -x_8 = lean_ctor_get(x_3, 0); -lean_inc(x_8); -lean_dec(x_3); -x_9 = lean_ctor_get(x_8, 0); -lean_inc(x_9); -if (lean_obj_tag(x_9) == 0) -{ -lean_object* x_10; lean_object* x_11; -lean_dec(x_4); -x_10 = lean_ctor_get(x_8, 1); -lean_inc(x_10); -lean_dec(x_8); -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_10); -lean_ctor_set(x_11, 1, x_5); -return x_11; -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; -lean_dec(x_9); -lean_dec(x_8); -x_12 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; -x_13 = l_unreachable_x21___rarg(x_12); -x_14 = lean_apply_2(x_13, x_4, x_5); -return x_14; -} -} -} -else -{ -if (lean_obj_tag(x_3) == 0) -{ -lean_object* x_15; lean_object* x_16; +lean_object* x_7; lean_object* x_8; +x_7 = lean_ctor_get(x_2, 0); +lean_inc(x_7); lean_dec(x_2); -x_15 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__3; -x_16 = l_Lean_Elab_Term_throwError___rarg(x_1, x_15, x_4, x_5); -return x_16; +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; lean_object* x_10; +lean_dec(x_3); +x_9 = lean_ctor_get(x_7, 1); +lean_inc(x_9); +lean_dec(x_7); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_4); +return x_10; } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_17 = lean_ctor_get(x_2, 0); +lean_object* x_11; lean_object* x_12; lean_object* x_13; +lean_dec(x_8); +lean_dec(x_7); +x_11 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; +x_12 = l_unreachable_x21___rarg(x_11); +x_13 = lean_apply_2(x_12, x_3, x_4); +return x_13; +} +} +} +else +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_14; lean_object* x_15; +lean_dec(x_1); +x_14 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__3; +x_15 = l_Lean_Elab_Term_throwError___rarg(x_14, x_3, x_4); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_16 = lean_ctor_get(x_1, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_1, 1); lean_inc(x_17); -x_18 = lean_ctor_get(x_2, 1); -lean_inc(x_18); -lean_inc(x_3); -x_19 = l_List_map___main___at___private_Lean_Elab_Quotation_6__compileStxMatch___main___spec__1(x_3); -x_20 = l_List_zip___rarg___closed__1; -x_21 = l_List_zipWith___main___rarg(x_20, x_19, x_3); -x_22 = l_List_head_x21___at___private_Lean_Elab_Quotation_6__compileStxMatch___main___spec__2(x_21); -x_23 = l_List_tail_x21___rarg(x_21); -x_24 = l_List_foldl___main___at___private_Lean_Elab_Quotation_6__compileStxMatch___main___spec__3(x_22, x_23); -lean_dec(x_23); +lean_inc(x_2); +x_18 = l_List_map___main___at___private_Lean_Elab_Quotation_6__compileStxMatch___main___spec__1(x_2); +x_19 = l_List_zip___rarg___closed__1; +x_20 = l_List_zipWith___main___rarg(x_19, x_18, x_2); +x_21 = l_List_head_x21___at___private_Lean_Elab_Quotation_6__compileStxMatch___main___spec__2(x_20); +x_22 = l_List_tail_x21___rarg(x_20); +x_23 = l_List_foldl___main___at___private_Lean_Elab_Quotation_6__compileStxMatch___main___spec__3(x_21, x_22); lean_dec(x_22); -x_25 = lean_ctor_get(x_24, 0); +lean_dec(x_21); +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +lean_dec(x_23); +x_25 = lean_ctor_get(x_24, 1); lean_inc(x_25); -lean_dec(x_24); -x_26 = lean_ctor_get(x_25, 1); -lean_inc(x_26); -if (lean_obj_tag(x_26) == 0) +if (lean_obj_tag(x_25) == 0) { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_box(0); -lean_inc(x_21); -x_28 = l_List_filterAux___main___at___private_Lean_Elab_Quotation_6__compileStxMatch___main___spec__4(x_25, x_21, x_27); -lean_inc(x_4); -x_29 = l_List_mapM___main___at___private_Lean_Elab_Quotation_6__compileStxMatch___main___spec__5(x_28, x_4, x_5); -if (lean_obj_tag(x_29) == 0) +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_box(0); +lean_inc(x_20); +x_27 = l_List_filterAux___main___at___private_Lean_Elab_Quotation_6__compileStxMatch___main___spec__4(x_24, x_20, x_26); +lean_inc(x_3); +x_28 = l_List_mapM___main___at___private_Lean_Elab_Quotation_6__compileStxMatch___main___spec__5(x_27, x_3, x_4); +if (lean_obj_tag(x_28) == 0) { -lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_30 = lean_ctor_get(x_29, 0); +lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_28, 1); lean_inc(x_30); -x_31 = lean_ctor_get(x_29, 1); -lean_inc(x_31); -lean_dec(x_29); -x_32 = l_List_append___rarg(x_27, x_18); -x_33 = !lean_is_exclusive(x_31); -if (x_33 == 0) +lean_dec(x_28); +x_31 = l_List_append___rarg(x_26, x_17); +x_32 = !lean_is_exclusive(x_30); +if (x_32 == 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_45; uint8_t x_46; uint8_t x_47; uint8_t x_48; lean_object* x_49; lean_object* x_50; -x_34 = lean_ctor_get(x_31, 5); -x_35 = lean_unsigned_to_nat(1u); -x_36 = lean_nat_add(x_34, x_35); -lean_ctor_set(x_31, 5, x_36); -x_37 = lean_ctor_get(x_4, 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; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; uint8_t x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_33 = lean_ctor_get(x_30, 5); +x_34 = lean_unsigned_to_nat(1u); +x_35 = lean_nat_add(x_33, x_34); +lean_ctor_set(x_30, 5, x_35); +x_36 = lean_ctor_get(x_3, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_3, 1); lean_inc(x_37); -x_38 = lean_ctor_get(x_4, 1); +x_38 = lean_ctor_get(x_3, 2); lean_inc(x_38); -x_39 = lean_ctor_get(x_4, 2); +x_39 = lean_ctor_get(x_3, 3); lean_inc(x_39); -x_40 = lean_ctor_get(x_4, 3); +x_40 = lean_ctor_get(x_3, 4); lean_inc(x_40); -x_41 = lean_ctor_get(x_4, 4); +x_41 = lean_ctor_get(x_3, 5); lean_inc(x_41); -x_42 = lean_ctor_get(x_4, 5); +x_42 = lean_ctor_get(x_3, 6); lean_inc(x_42); -x_43 = lean_ctor_get(x_4, 6); +x_43 = lean_ctor_get(x_3, 7); lean_inc(x_43); -x_44 = lean_ctor_get(x_4, 7); +x_44 = lean_ctor_get(x_3, 8); lean_inc(x_44); -x_45 = lean_ctor_get(x_4, 8); -lean_inc(x_45); -x_46 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); -x_47 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); -x_48 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 2); -lean_inc(x_45); +x_45 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_46 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_47 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +x_48 = lean_ctor_get(x_3, 10); +lean_inc(x_48); +lean_inc(x_48); lean_inc(x_44); lean_inc(x_43); lean_inc(x_42); @@ -7818,30 +7819,32 @@ lean_inc(x_40); lean_inc(x_39); lean_inc(x_38); lean_inc(x_37); -x_49 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_49, 0, x_37); -lean_ctor_set(x_49, 1, x_38); -lean_ctor_set(x_49, 2, x_39); -lean_ctor_set(x_49, 3, x_40); -lean_ctor_set(x_49, 4, x_41); -lean_ctor_set(x_49, 5, x_42); -lean_ctor_set(x_49, 6, x_43); -lean_ctor_set(x_49, 7, x_44); -lean_ctor_set(x_49, 8, x_45); -lean_ctor_set(x_49, 9, x_34); -lean_ctor_set_uint8(x_49, sizeof(void*)*10, x_46); -lean_ctor_set_uint8(x_49, sizeof(void*)*10 + 1, x_47); -lean_ctor_set_uint8(x_49, sizeof(void*)*10 + 2, x_48); -x_50 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main(x_1, x_32, x_30, x_49, x_31); +lean_inc(x_36); +x_49 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_49, 0, x_36); +lean_ctor_set(x_49, 1, x_37); +lean_ctor_set(x_49, 2, x_38); +lean_ctor_set(x_49, 3, x_39); +lean_ctor_set(x_49, 4, x_40); +lean_ctor_set(x_49, 5, x_41); +lean_ctor_set(x_49, 6, x_42); +lean_ctor_set(x_49, 7, x_43); +lean_ctor_set(x_49, 8, x_44); +lean_ctor_set(x_49, 9, x_33); +lean_ctor_set(x_49, 10, x_48); +lean_ctor_set_uint8(x_49, sizeof(void*)*11, x_45); +lean_ctor_set_uint8(x_49, sizeof(void*)*11 + 1, x_46); +lean_ctor_set_uint8(x_49, sizeof(void*)*11 + 2, x_47); +x_50 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main(x_31, x_29, x_49, x_30); if (lean_obj_tag(x_50) == 0) { lean_object* x_51; -x_51 = lean_ctor_get(x_25, 0); +x_51 = lean_ctor_get(x_24, 0); lean_inc(x_51); if (lean_obj_tag(x_51) == 0) { lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; -lean_dec(x_45); +lean_dec(x_48); lean_dec(x_44); lean_dec(x_43); lean_dec(x_42); @@ -7850,16 +7853,17 @@ lean_dec(x_40); lean_dec(x_39); lean_dec(x_38); lean_dec(x_37); -lean_dec(x_25); -lean_dec(x_21); -lean_dec(x_2); +lean_dec(x_36); +lean_dec(x_24); +lean_dec(x_20); +lean_dec(x_1); x_52 = lean_ctor_get(x_50, 0); lean_inc(x_52); x_53 = lean_ctor_get(x_50, 1); lean_inc(x_53); lean_dec(x_50); -x_54 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_53); -lean_dec(x_4); +x_54 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_53); +lean_dec(x_3); x_55 = lean_ctor_get(x_54, 0); lean_inc(x_55); x_56 = lean_ctor_get(x_54, 1); @@ -7879,7 +7883,7 @@ x_64 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_64, 0, x_62); lean_ctor_set(x_64, 1, x_63); lean_ctor_set(x_64, 2, x_61); -lean_ctor_set(x_64, 3, x_27); +lean_ctor_set(x_64, 3, x_26); x_65 = l_Array_empty___closed__1; x_66 = lean_array_push(x_65, x_64); x_67 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; @@ -7887,7 +7891,7 @@ x_68 = lean_array_push(x_66, x_67); x_69 = lean_array_push(x_68, x_67); x_70 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; x_71 = lean_array_push(x_69, x_70); -x_72 = lean_array_push(x_71, x_17); +x_72 = lean_array_push(x_71, x_16); x_73 = l_Lean_Parser_Term_letIdDecl___closed__2; x_74 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_74, 0, x_73); @@ -7920,7 +7924,7 @@ x_88 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_88, 0, x_86); lean_ctor_set(x_88, 1, x_87); lean_ctor_set(x_88, 2, x_85); -lean_ctor_set(x_88, 3, x_27); +lean_ctor_set(x_88, 3, x_26); x_89 = l_Array_empty___closed__1; x_90 = lean_array_push(x_89, x_88); x_91 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; @@ -7928,7 +7932,7 @@ x_92 = lean_array_push(x_90, x_91); x_93 = lean_array_push(x_92, x_91); x_94 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; x_95 = lean_array_push(x_93, x_94); -x_96 = lean_array_push(x_95, x_17); +x_96 = lean_array_push(x_95, x_16); x_97 = l_Lean_Parser_Term_letIdDecl___closed__2; x_98 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_98, 0, x_97); @@ -7959,31 +7963,32 @@ lean_dec(x_50); x_109 = lean_ctor_get(x_51, 0); lean_inc(x_109); lean_dec(x_51); -x_110 = l_List_filterAux___main___at___private_Lean_Elab_Quotation_6__compileStxMatch___main___spec__6(x_25, x_21, x_27); -lean_dec(x_25); +x_110 = l_List_filterAux___main___at___private_Lean_Elab_Quotation_6__compileStxMatch___main___spec__6(x_24, x_20, x_26); +lean_dec(x_24); x_111 = l_List_map___main___at___private_Lean_Elab_Quotation_6__compileStxMatch___main___spec__7(x_110); x_112 = !lean_is_exclusive(x_108); if (x_112 == 0) { lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; x_113 = lean_ctor_get(x_108, 5); -x_114 = lean_nat_add(x_113, x_35); +x_114 = lean_nat_add(x_113, x_34); lean_ctor_set(x_108, 5, x_114); -x_115 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_115, 0, x_37); -lean_ctor_set(x_115, 1, x_38); -lean_ctor_set(x_115, 2, x_39); -lean_ctor_set(x_115, 3, x_40); -lean_ctor_set(x_115, 4, x_41); -lean_ctor_set(x_115, 5, x_42); -lean_ctor_set(x_115, 6, x_43); -lean_ctor_set(x_115, 7, x_44); -lean_ctor_set(x_115, 8, x_45); +x_115 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_115, 0, x_36); +lean_ctor_set(x_115, 1, x_37); +lean_ctor_set(x_115, 2, x_38); +lean_ctor_set(x_115, 3, x_39); +lean_ctor_set(x_115, 4, x_40); +lean_ctor_set(x_115, 5, x_41); +lean_ctor_set(x_115, 6, x_42); +lean_ctor_set(x_115, 7, x_43); +lean_ctor_set(x_115, 8, x_44); lean_ctor_set(x_115, 9, x_113); -lean_ctor_set_uint8(x_115, sizeof(void*)*10, x_46); -lean_ctor_set_uint8(x_115, sizeof(void*)*10 + 1, x_47); -lean_ctor_set_uint8(x_115, sizeof(void*)*10 + 2, x_48); -x_116 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main(x_1, x_2, x_111, x_115, x_108); +lean_ctor_set(x_115, 10, x_48); +lean_ctor_set_uint8(x_115, sizeof(void*)*11, x_45); +lean_ctor_set_uint8(x_115, sizeof(void*)*11 + 1, x_46); +lean_ctor_set_uint8(x_115, sizeof(void*)*11 + 2, x_47); +x_116 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main(x_1, x_111, x_115, x_108); if (lean_obj_tag(x_116) == 0) { lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; uint8_t x_157; @@ -7992,7 +7997,7 @@ lean_inc(x_117); x_118 = lean_ctor_get(x_116, 1); lean_inc(x_118); lean_dec(x_116); -x_119 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_118); +x_119 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_118); x_120 = lean_ctor_get(x_119, 0); lean_inc(x_120); x_121 = lean_ctor_get(x_119, 1); @@ -8032,7 +8037,7 @@ x_141 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_141, 0, x_127); lean_ctor_set(x_141, 1, x_140); lean_ctor_set(x_141, 2, x_139); -lean_ctor_set(x_141, 3, x_27); +lean_ctor_set(x_141, 3, x_26); x_142 = lean_array_push(x_131, x_141); x_143 = lean_array_push(x_142, x_133); x_144 = lean_alloc_ctor(1, 2, 0); @@ -8050,8 +8055,8 @@ x_151 = l_Lean_mkAppStx___closed__8; x_152 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_152, 0, x_151); lean_ctor_set(x_152, 1, x_150); -x_153 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_124); -lean_dec(x_4); +x_153 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_124); +lean_dec(x_3); x_154 = lean_ctor_get(x_153, 0); lean_inc(x_154); x_155 = lean_ctor_get(x_153, 1); @@ -8070,13 +8075,13 @@ x_160 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_160, 0, x_127); lean_ctor_set(x_160, 1, x_140); lean_ctor_set(x_160, 2, x_159); -lean_ctor_set(x_160, 3, x_27); +lean_ctor_set(x_160, 3, x_26); x_161 = lean_array_push(x_131, x_160); x_162 = lean_array_push(x_161, x_133); x_163 = lean_array_push(x_162, x_133); x_164 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; x_165 = lean_array_push(x_163, x_164); -x_166 = lean_array_push(x_165, x_17); +x_166 = lean_array_push(x_165, x_16); x_167 = l_Lean_Parser_Term_letIdDecl___closed__2; x_168 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_168, 0, x_167); @@ -8142,13 +8147,13 @@ x_203 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_203, 0, x_127); lean_ctor_set(x_203, 1, x_140); lean_ctor_set(x_203, 2, x_202); -lean_ctor_set(x_203, 3, x_27); +lean_ctor_set(x_203, 3, x_26); x_204 = lean_array_push(x_131, x_203); x_205 = lean_array_push(x_204, x_133); x_206 = lean_array_push(x_205, x_133); x_207 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; x_208 = lean_array_push(x_206, x_207); -x_209 = lean_array_push(x_208, x_17); +x_209 = lean_array_push(x_208, x_16); x_210 = l_Lean_Parser_Term_letIdDecl___closed__2; x_211 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_211, 0, x_210); @@ -8207,8 +8212,8 @@ else uint8_t x_244; lean_dec(x_109); lean_dec(x_107); -lean_dec(x_17); -lean_dec(x_4); +lean_dec(x_16); +lean_dec(x_3); x_244 = !lean_is_exclusive(x_116); if (x_244 == 0) { @@ -8245,7 +8250,7 @@ lean_inc(x_250); lean_inc(x_249); lean_inc(x_248); lean_dec(x_108); -x_254 = lean_nat_add(x_253, x_35); +x_254 = lean_nat_add(x_253, x_34); x_255 = lean_alloc_ctor(0, 6, 0); lean_ctor_set(x_255, 0, x_248); lean_ctor_set(x_255, 1, x_249); @@ -8253,21 +8258,22 @@ lean_ctor_set(x_255, 2, x_250); lean_ctor_set(x_255, 3, x_251); lean_ctor_set(x_255, 4, x_252); lean_ctor_set(x_255, 5, x_254); -x_256 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_256, 0, x_37); -lean_ctor_set(x_256, 1, x_38); -lean_ctor_set(x_256, 2, x_39); -lean_ctor_set(x_256, 3, x_40); -lean_ctor_set(x_256, 4, x_41); -lean_ctor_set(x_256, 5, x_42); -lean_ctor_set(x_256, 6, x_43); -lean_ctor_set(x_256, 7, x_44); -lean_ctor_set(x_256, 8, x_45); +x_256 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_256, 0, x_36); +lean_ctor_set(x_256, 1, x_37); +lean_ctor_set(x_256, 2, x_38); +lean_ctor_set(x_256, 3, x_39); +lean_ctor_set(x_256, 4, x_40); +lean_ctor_set(x_256, 5, x_41); +lean_ctor_set(x_256, 6, x_42); +lean_ctor_set(x_256, 7, x_43); +lean_ctor_set(x_256, 8, x_44); lean_ctor_set(x_256, 9, x_253); -lean_ctor_set_uint8(x_256, sizeof(void*)*10, x_46); -lean_ctor_set_uint8(x_256, sizeof(void*)*10 + 1, x_47); -lean_ctor_set_uint8(x_256, sizeof(void*)*10 + 2, x_48); -x_257 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main(x_1, x_2, x_111, x_256, x_255); +lean_ctor_set(x_256, 10, x_48); +lean_ctor_set_uint8(x_256, sizeof(void*)*11, x_45); +lean_ctor_set_uint8(x_256, sizeof(void*)*11 + 1, x_46); +lean_ctor_set_uint8(x_256, sizeof(void*)*11 + 2, x_47); +x_257 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main(x_1, x_111, x_256, x_255); if (lean_obj_tag(x_257) == 0) { lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; @@ -8276,7 +8282,7 @@ lean_inc(x_258); x_259 = lean_ctor_get(x_257, 1); lean_inc(x_259); lean_dec(x_257); -x_260 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_259); +x_260 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_259); x_261 = lean_ctor_get(x_260, 0); lean_inc(x_261); x_262 = lean_ctor_get(x_260, 1); @@ -8316,7 +8322,7 @@ x_282 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_282, 0, x_268); lean_ctor_set(x_282, 1, x_281); lean_ctor_set(x_282, 2, x_280); -lean_ctor_set(x_282, 3, x_27); +lean_ctor_set(x_282, 3, x_26); x_283 = lean_array_push(x_272, x_282); x_284 = lean_array_push(x_283, x_274); x_285 = lean_alloc_ctor(1, 2, 0); @@ -8334,8 +8340,8 @@ x_292 = l_Lean_mkAppStx___closed__8; x_293 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_293, 0, x_292); lean_ctor_set(x_293, 1, x_291); -x_294 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_265); -lean_dec(x_4); +x_294 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_265); +lean_dec(x_3); x_295 = lean_ctor_get(x_294, 0); lean_inc(x_295); x_296 = lean_ctor_get(x_294, 1); @@ -8361,13 +8367,13 @@ x_302 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_302, 0, x_268); lean_ctor_set(x_302, 1, x_281); lean_ctor_set(x_302, 2, x_301); -lean_ctor_set(x_302, 3, x_27); +lean_ctor_set(x_302, 3, x_26); x_303 = lean_array_push(x_272, x_302); x_304 = lean_array_push(x_303, x_274); x_305 = lean_array_push(x_304, x_274); x_306 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; x_307 = lean_array_push(x_305, x_306); -x_308 = lean_array_push(x_307, x_17); +x_308 = lean_array_push(x_307, x_16); x_309 = l_Lean_Parser_Term_letIdDecl___closed__2; x_310 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_310, 0, x_309); @@ -8429,8 +8435,8 @@ else lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_dec(x_109); lean_dec(x_107); -lean_dec(x_17); -lean_dec(x_4); +lean_dec(x_16); +lean_dec(x_3); x_343 = lean_ctor_get(x_257, 0); lean_inc(x_343); x_344 = lean_ctor_get(x_257, 1); @@ -8458,7 +8464,7 @@ return x_346; else { uint8_t x_347; -lean_dec(x_45); +lean_dec(x_48); lean_dec(x_44); lean_dec(x_43); lean_dec(x_42); @@ -8467,11 +8473,12 @@ lean_dec(x_40); lean_dec(x_39); lean_dec(x_38); lean_dec(x_37); -lean_dec(x_25); -lean_dec(x_21); -lean_dec(x_17); -lean_dec(x_4); -lean_dec(x_2); +lean_dec(x_36); +lean_dec(x_24); +lean_dec(x_20); +lean_dec(x_16); +lean_dec(x_3); +lean_dec(x_1); x_347 = !lean_is_exclusive(x_50); if (x_347 == 0) { @@ -8494,20 +8501,20 @@ return x_350; } else { -lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; uint8_t x_369; uint8_t x_370; uint8_t x_371; lean_object* x_372; lean_object* x_373; -x_351 = lean_ctor_get(x_31, 0); -x_352 = lean_ctor_get(x_31, 1); -x_353 = lean_ctor_get(x_31, 2); -x_354 = lean_ctor_get(x_31, 3); -x_355 = lean_ctor_get(x_31, 4); -x_356 = lean_ctor_get(x_31, 5); +lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; uint8_t x_369; uint8_t x_370; uint8_t x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; +x_351 = lean_ctor_get(x_30, 0); +x_352 = lean_ctor_get(x_30, 1); +x_353 = lean_ctor_get(x_30, 2); +x_354 = lean_ctor_get(x_30, 3); +x_355 = lean_ctor_get(x_30, 4); +x_356 = lean_ctor_get(x_30, 5); lean_inc(x_356); lean_inc(x_355); lean_inc(x_354); lean_inc(x_353); lean_inc(x_352); lean_inc(x_351); -lean_dec(x_31); +lean_dec(x_30); x_357 = lean_unsigned_to_nat(1u); x_358 = lean_nat_add(x_356, x_357); x_359 = lean_alloc_ctor(0, 6, 0); @@ -8517,27 +8524,30 @@ lean_ctor_set(x_359, 2, x_353); lean_ctor_set(x_359, 3, x_354); lean_ctor_set(x_359, 4, x_355); lean_ctor_set(x_359, 5, x_358); -x_360 = lean_ctor_get(x_4, 0); +x_360 = lean_ctor_get(x_3, 0); lean_inc(x_360); -x_361 = lean_ctor_get(x_4, 1); +x_361 = lean_ctor_get(x_3, 1); lean_inc(x_361); -x_362 = lean_ctor_get(x_4, 2); +x_362 = lean_ctor_get(x_3, 2); lean_inc(x_362); -x_363 = lean_ctor_get(x_4, 3); +x_363 = lean_ctor_get(x_3, 3); lean_inc(x_363); -x_364 = lean_ctor_get(x_4, 4); +x_364 = lean_ctor_get(x_3, 4); lean_inc(x_364); -x_365 = lean_ctor_get(x_4, 5); +x_365 = lean_ctor_get(x_3, 5); lean_inc(x_365); -x_366 = lean_ctor_get(x_4, 6); +x_366 = lean_ctor_get(x_3, 6); lean_inc(x_366); -x_367 = lean_ctor_get(x_4, 7); +x_367 = lean_ctor_get(x_3, 7); lean_inc(x_367); -x_368 = lean_ctor_get(x_4, 8); +x_368 = lean_ctor_get(x_3, 8); lean_inc(x_368); -x_369 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); -x_370 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); -x_371 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 2); +x_369 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_370 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_371 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +x_372 = lean_ctor_get(x_3, 10); +lean_inc(x_372); +lean_inc(x_372); lean_inc(x_368); lean_inc(x_367); lean_inc(x_366); @@ -8547,29 +8557,31 @@ lean_inc(x_363); lean_inc(x_362); lean_inc(x_361); lean_inc(x_360); -x_372 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_372, 0, x_360); -lean_ctor_set(x_372, 1, x_361); -lean_ctor_set(x_372, 2, x_362); -lean_ctor_set(x_372, 3, x_363); -lean_ctor_set(x_372, 4, x_364); -lean_ctor_set(x_372, 5, x_365); -lean_ctor_set(x_372, 6, x_366); -lean_ctor_set(x_372, 7, x_367); -lean_ctor_set(x_372, 8, x_368); -lean_ctor_set(x_372, 9, x_356); -lean_ctor_set_uint8(x_372, sizeof(void*)*10, x_369); -lean_ctor_set_uint8(x_372, sizeof(void*)*10 + 1, x_370); -lean_ctor_set_uint8(x_372, sizeof(void*)*10 + 2, x_371); -x_373 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main(x_1, x_32, x_30, x_372, x_359); -if (lean_obj_tag(x_373) == 0) -{ -lean_object* x_374; -x_374 = lean_ctor_get(x_25, 0); -lean_inc(x_374); +x_373 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_373, 0, x_360); +lean_ctor_set(x_373, 1, x_361); +lean_ctor_set(x_373, 2, x_362); +lean_ctor_set(x_373, 3, x_363); +lean_ctor_set(x_373, 4, x_364); +lean_ctor_set(x_373, 5, x_365); +lean_ctor_set(x_373, 6, x_366); +lean_ctor_set(x_373, 7, x_367); +lean_ctor_set(x_373, 8, x_368); +lean_ctor_set(x_373, 9, x_356); +lean_ctor_set(x_373, 10, x_372); +lean_ctor_set_uint8(x_373, sizeof(void*)*11, x_369); +lean_ctor_set_uint8(x_373, sizeof(void*)*11 + 1, x_370); +lean_ctor_set_uint8(x_373, sizeof(void*)*11 + 2, x_371); +x_374 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main(x_31, x_29, x_373, x_359); if (lean_obj_tag(x_374) == 0) { -lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; +lean_object* x_375; +x_375 = lean_ctor_get(x_24, 0); +lean_inc(x_375); +if (lean_obj_tag(x_375) == 0) +{ +lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; +lean_dec(x_372); lean_dec(x_368); lean_dec(x_367); lean_dec(x_366); @@ -8579,327 +8591,329 @@ lean_dec(x_363); lean_dec(x_362); lean_dec(x_361); lean_dec(x_360); -lean_dec(x_25); -lean_dec(x_21); -lean_dec(x_2); -x_375 = lean_ctor_get(x_373, 0); -lean_inc(x_375); -x_376 = lean_ctor_get(x_373, 1); +lean_dec(x_24); +lean_dec(x_20); +lean_dec(x_1); +x_376 = lean_ctor_get(x_374, 0); lean_inc(x_376); -lean_dec(x_373); -x_377 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_376); -lean_dec(x_4); -x_378 = lean_ctor_get(x_377, 0); -lean_inc(x_378); -x_379 = lean_ctor_get(x_377, 1); +x_377 = lean_ctor_get(x_374, 1); +lean_inc(x_377); +lean_dec(x_374); +x_378 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_377); +lean_dec(x_3); +x_379 = lean_ctor_get(x_378, 0); lean_inc(x_379); -lean_dec(x_377); -x_380 = l_Lean_Elab_Term_getMainModule___rarg(x_379); -x_381 = lean_ctor_get(x_380, 0); -lean_inc(x_381); -x_382 = lean_ctor_get(x_380, 1); +x_380 = lean_ctor_get(x_378, 1); +lean_inc(x_380); +lean_dec(x_378); +x_381 = l_Lean_Elab_Term_getMainModule___rarg(x_380); +x_382 = lean_ctor_get(x_381, 0); lean_inc(x_382); -if (lean_is_exclusive(x_380)) { - lean_ctor_release(x_380, 0); - lean_ctor_release(x_380, 1); - x_383 = x_380; +x_383 = lean_ctor_get(x_381, 1); +lean_inc(x_383); +if (lean_is_exclusive(x_381)) { + lean_ctor_release(x_381, 0); + lean_ctor_release(x_381, 1); + x_384 = x_381; } else { - lean_dec_ref(x_380); - x_383 = lean_box(0); -} -x_384 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__8; -x_385 = l_Lean_addMacroScope(x_381, x_384, x_378); -x_386 = l_Lean_SourceInfo_inhabited___closed__1; -x_387 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__7; -x_388 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_388, 0, x_386); -lean_ctor_set(x_388, 1, x_387); -lean_ctor_set(x_388, 2, x_385); -lean_ctor_set(x_388, 3, x_27); -x_389 = l_Array_empty___closed__1; -x_390 = lean_array_push(x_389, x_388); -x_391 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; -x_392 = lean_array_push(x_390, x_391); -x_393 = lean_array_push(x_392, x_391); -x_394 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; -x_395 = lean_array_push(x_393, x_394); -x_396 = lean_array_push(x_395, x_17); -x_397 = l_Lean_Parser_Term_letIdDecl___closed__2; -x_398 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_398, 0, x_397); -lean_ctor_set(x_398, 1, x_396); -x_399 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; -x_400 = lean_array_push(x_399, x_398); -x_401 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; -x_402 = lean_array_push(x_400, x_401); -x_403 = lean_array_push(x_402, x_375); -x_404 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_405 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_405, 0, x_404); -lean_ctor_set(x_405, 1, x_403); -if (lean_is_scalar(x_383)) { - x_406 = lean_alloc_ctor(0, 2, 0); -} else { - x_406 = x_383; + lean_dec_ref(x_381); + x_384 = lean_box(0); } +x_385 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__8; +x_386 = l_Lean_addMacroScope(x_382, x_385, x_379); +x_387 = l_Lean_SourceInfo_inhabited___closed__1; +x_388 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__7; +x_389 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_389, 0, x_387); +lean_ctor_set(x_389, 1, x_388); +lean_ctor_set(x_389, 2, x_386); +lean_ctor_set(x_389, 3, x_26); +x_390 = l_Array_empty___closed__1; +x_391 = lean_array_push(x_390, x_389); +x_392 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; +x_393 = lean_array_push(x_391, x_392); +x_394 = lean_array_push(x_393, x_392); +x_395 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; +x_396 = lean_array_push(x_394, x_395); +x_397 = lean_array_push(x_396, x_16); +x_398 = l_Lean_Parser_Term_letIdDecl___closed__2; +x_399 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_399, 0, x_398); +lean_ctor_set(x_399, 1, x_397); +x_400 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; +x_401 = lean_array_push(x_400, x_399); +x_402 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; +x_403 = lean_array_push(x_401, x_402); +x_404 = lean_array_push(x_403, x_376); +x_405 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_406 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_406, 0, x_405); -lean_ctor_set(x_406, 1, x_382); -return x_406; +lean_ctor_set(x_406, 1, x_404); +if (lean_is_scalar(x_384)) { + x_407 = lean_alloc_ctor(0, 2, 0); +} else { + x_407 = x_384; +} +lean_ctor_set(x_407, 0, x_406); +lean_ctor_set(x_407, 1, x_383); +return x_407; } else { -lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; -x_407 = lean_ctor_get(x_373, 0); -lean_inc(x_407); -x_408 = lean_ctor_get(x_373, 1); +lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; +x_408 = lean_ctor_get(x_374, 0); lean_inc(x_408); -lean_dec(x_373); -x_409 = lean_ctor_get(x_374, 0); +x_409 = lean_ctor_get(x_374, 1); lean_inc(x_409); lean_dec(x_374); -x_410 = l_List_filterAux___main___at___private_Lean_Elab_Quotation_6__compileStxMatch___main___spec__6(x_25, x_21, x_27); -lean_dec(x_25); -x_411 = l_List_map___main___at___private_Lean_Elab_Quotation_6__compileStxMatch___main___spec__7(x_410); -x_412 = lean_ctor_get(x_408, 0); -lean_inc(x_412); -x_413 = lean_ctor_get(x_408, 1); +x_410 = lean_ctor_get(x_375, 0); +lean_inc(x_410); +lean_dec(x_375); +x_411 = l_List_filterAux___main___at___private_Lean_Elab_Quotation_6__compileStxMatch___main___spec__6(x_24, x_20, x_26); +lean_dec(x_24); +x_412 = l_List_map___main___at___private_Lean_Elab_Quotation_6__compileStxMatch___main___spec__7(x_411); +x_413 = lean_ctor_get(x_409, 0); lean_inc(x_413); -x_414 = lean_ctor_get(x_408, 2); +x_414 = lean_ctor_get(x_409, 1); lean_inc(x_414); -x_415 = lean_ctor_get(x_408, 3); +x_415 = lean_ctor_get(x_409, 2); lean_inc(x_415); -x_416 = lean_ctor_get(x_408, 4); +x_416 = lean_ctor_get(x_409, 3); lean_inc(x_416); -x_417 = lean_ctor_get(x_408, 5); +x_417 = lean_ctor_get(x_409, 4); lean_inc(x_417); -if (lean_is_exclusive(x_408)) { - lean_ctor_release(x_408, 0); - lean_ctor_release(x_408, 1); - lean_ctor_release(x_408, 2); - lean_ctor_release(x_408, 3); - lean_ctor_release(x_408, 4); - lean_ctor_release(x_408, 5); - x_418 = x_408; +x_418 = lean_ctor_get(x_409, 5); +lean_inc(x_418); +if (lean_is_exclusive(x_409)) { + lean_ctor_release(x_409, 0); + lean_ctor_release(x_409, 1); + lean_ctor_release(x_409, 2); + lean_ctor_release(x_409, 3); + lean_ctor_release(x_409, 4); + lean_ctor_release(x_409, 5); + x_419 = x_409; } else { - lean_dec_ref(x_408); - x_418 = lean_box(0); + lean_dec_ref(x_409); + x_419 = lean_box(0); } -x_419 = lean_nat_add(x_417, x_357); -if (lean_is_scalar(x_418)) { - x_420 = lean_alloc_ctor(0, 6, 0); +x_420 = lean_nat_add(x_418, x_357); +if (lean_is_scalar(x_419)) { + x_421 = lean_alloc_ctor(0, 6, 0); } else { - x_420 = x_418; + x_421 = x_419; } -lean_ctor_set(x_420, 0, x_412); -lean_ctor_set(x_420, 1, x_413); -lean_ctor_set(x_420, 2, x_414); -lean_ctor_set(x_420, 3, x_415); -lean_ctor_set(x_420, 4, x_416); -lean_ctor_set(x_420, 5, x_419); -x_421 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_421, 0, x_360); -lean_ctor_set(x_421, 1, x_361); -lean_ctor_set(x_421, 2, x_362); -lean_ctor_set(x_421, 3, x_363); -lean_ctor_set(x_421, 4, x_364); -lean_ctor_set(x_421, 5, x_365); -lean_ctor_set(x_421, 6, x_366); -lean_ctor_set(x_421, 7, x_367); -lean_ctor_set(x_421, 8, x_368); -lean_ctor_set(x_421, 9, x_417); -lean_ctor_set_uint8(x_421, sizeof(void*)*10, x_369); -lean_ctor_set_uint8(x_421, sizeof(void*)*10 + 1, x_370); -lean_ctor_set_uint8(x_421, sizeof(void*)*10 + 2, x_371); -x_422 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main(x_1, x_2, x_411, x_421, x_420); -if (lean_obj_tag(x_422) == 0) +lean_ctor_set(x_421, 0, x_413); +lean_ctor_set(x_421, 1, x_414); +lean_ctor_set(x_421, 2, x_415); +lean_ctor_set(x_421, 3, x_416); +lean_ctor_set(x_421, 4, x_417); +lean_ctor_set(x_421, 5, x_420); +x_422 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_422, 0, x_360); +lean_ctor_set(x_422, 1, x_361); +lean_ctor_set(x_422, 2, x_362); +lean_ctor_set(x_422, 3, x_363); +lean_ctor_set(x_422, 4, x_364); +lean_ctor_set(x_422, 5, x_365); +lean_ctor_set(x_422, 6, x_366); +lean_ctor_set(x_422, 7, x_367); +lean_ctor_set(x_422, 8, x_368); +lean_ctor_set(x_422, 9, x_418); +lean_ctor_set(x_422, 10, x_372); +lean_ctor_set_uint8(x_422, sizeof(void*)*11, x_369); +lean_ctor_set_uint8(x_422, sizeof(void*)*11 + 1, x_370); +lean_ctor_set_uint8(x_422, sizeof(void*)*11 + 2, x_371); +x_423 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main(x_1, x_412, x_422, x_421); +if (lean_obj_tag(x_423) == 0) { -lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; -x_423 = lean_ctor_get(x_422, 0); -lean_inc(x_423); -x_424 = lean_ctor_get(x_422, 1); +lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; +x_424 = lean_ctor_get(x_423, 0); lean_inc(x_424); -lean_dec(x_422); -x_425 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_424); -x_426 = lean_ctor_get(x_425, 0); -lean_inc(x_426); -x_427 = lean_ctor_get(x_425, 1); +x_425 = lean_ctor_get(x_423, 1); +lean_inc(x_425); +lean_dec(x_423); +x_426 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_425); +x_427 = lean_ctor_get(x_426, 0); lean_inc(x_427); -lean_dec(x_425); -x_428 = l_Lean_Elab_Term_getMainModule___rarg(x_427); -x_429 = lean_ctor_get(x_428, 0); -lean_inc(x_429); -x_430 = lean_ctor_get(x_428, 1); +x_428 = lean_ctor_get(x_426, 1); +lean_inc(x_428); +lean_dec(x_426); +x_429 = l_Lean_Elab_Term_getMainModule___rarg(x_428); +x_430 = lean_ctor_get(x_429, 0); lean_inc(x_430); -lean_dec(x_428); -x_431 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__8; -lean_inc(x_426); -lean_inc(x_429); -x_432 = l_Lean_addMacroScope(x_429, x_431, x_426); -x_433 = l_Lean_SourceInfo_inhabited___closed__1; -x_434 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__6; -x_435 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__11; -x_436 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_436, 0, x_433); -lean_ctor_set(x_436, 1, x_434); -lean_ctor_set(x_436, 2, x_432); -lean_ctor_set(x_436, 3, x_435); -x_437 = l_Array_empty___closed__1; -x_438 = lean_array_push(x_437, x_436); -x_439 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; -x_440 = lean_array_push(x_438, x_439); -x_441 = l_Lean_mkTermIdFromIdent___closed__2; -x_442 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_442, 0, x_441); -lean_ctor_set(x_442, 1, x_440); -x_443 = lean_array_push(x_437, x_442); -x_444 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__8; -x_445 = l_Lean_addMacroScope(x_429, x_444, x_426); -x_446 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__7; -x_447 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_447, 0, x_433); -lean_ctor_set(x_447, 1, x_446); -lean_ctor_set(x_447, 2, x_445); -lean_ctor_set(x_447, 3, x_27); -x_448 = lean_array_push(x_437, x_447); -x_449 = lean_array_push(x_448, x_439); -x_450 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_450, 0, x_441); -lean_ctor_set(x_450, 1, x_449); -x_451 = lean_array_push(x_437, x_450); -x_452 = l___private_Lean_Syntax_7__quoteName___main(x_409); -x_453 = lean_array_push(x_451, x_452); -x_454 = l_Lean_nullKind___closed__2; -x_455 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_455, 0, x_454); -lean_ctor_set(x_455, 1, x_453); -x_456 = lean_array_push(x_443, x_455); -x_457 = l_Lean_mkAppStx___closed__8; -x_458 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_458, 0, x_457); -lean_ctor_set(x_458, 1, x_456); -x_459 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_430); -lean_dec(x_4); -x_460 = lean_ctor_get(x_459, 0); -lean_inc(x_460); -x_461 = lean_ctor_get(x_459, 1); +x_431 = lean_ctor_get(x_429, 1); +lean_inc(x_431); +lean_dec(x_429); +x_432 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__8; +lean_inc(x_427); +lean_inc(x_430); +x_433 = l_Lean_addMacroScope(x_430, x_432, x_427); +x_434 = l_Lean_SourceInfo_inhabited___closed__1; +x_435 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__6; +x_436 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__11; +x_437 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_437, 0, x_434); +lean_ctor_set(x_437, 1, x_435); +lean_ctor_set(x_437, 2, x_433); +lean_ctor_set(x_437, 3, x_436); +x_438 = l_Array_empty___closed__1; +x_439 = lean_array_push(x_438, x_437); +x_440 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; +x_441 = lean_array_push(x_439, x_440); +x_442 = l_Lean_mkTermIdFromIdent___closed__2; +x_443 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_443, 0, x_442); +lean_ctor_set(x_443, 1, x_441); +x_444 = lean_array_push(x_438, x_443); +x_445 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__8; +x_446 = l_Lean_addMacroScope(x_430, x_445, x_427); +x_447 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__7; +x_448 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_448, 0, x_434); +lean_ctor_set(x_448, 1, x_447); +lean_ctor_set(x_448, 2, x_446); +lean_ctor_set(x_448, 3, x_26); +x_449 = lean_array_push(x_438, x_448); +x_450 = lean_array_push(x_449, x_440); +x_451 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_451, 0, x_442); +lean_ctor_set(x_451, 1, x_450); +x_452 = lean_array_push(x_438, x_451); +x_453 = l___private_Lean_Syntax_7__quoteName___main(x_410); +x_454 = lean_array_push(x_452, x_453); +x_455 = l_Lean_nullKind___closed__2; +x_456 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_456, 0, x_455); +lean_ctor_set(x_456, 1, x_454); +x_457 = lean_array_push(x_444, x_456); +x_458 = l_Lean_mkAppStx___closed__8; +x_459 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_459, 0, x_458); +lean_ctor_set(x_459, 1, x_457); +x_460 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_431); +lean_dec(x_3); +x_461 = lean_ctor_get(x_460, 0); lean_inc(x_461); -lean_dec(x_459); -x_462 = l_Lean_Elab_Term_getMainModule___rarg(x_461); -x_463 = lean_ctor_get(x_462, 0); -lean_inc(x_463); -x_464 = lean_ctor_get(x_462, 1); +x_462 = lean_ctor_get(x_460, 1); +lean_inc(x_462); +lean_dec(x_460); +x_463 = l_Lean_Elab_Term_getMainModule___rarg(x_462); +x_464 = lean_ctor_get(x_463, 0); lean_inc(x_464); -if (lean_is_exclusive(x_462)) { - lean_ctor_release(x_462, 0); - lean_ctor_release(x_462, 1); - x_465 = x_462; +x_465 = lean_ctor_get(x_463, 1); +lean_inc(x_465); +if (lean_is_exclusive(x_463)) { + lean_ctor_release(x_463, 0); + lean_ctor_release(x_463, 1); + x_466 = x_463; } else { - lean_dec_ref(x_462); - x_465 = lean_box(0); -} -lean_inc(x_460); -lean_inc(x_463); -x_466 = l_Lean_addMacroScope(x_463, x_444, x_460); -x_467 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_467, 0, x_433); -lean_ctor_set(x_467, 1, x_446); -lean_ctor_set(x_467, 2, x_466); -lean_ctor_set(x_467, 3, x_27); -x_468 = lean_array_push(x_437, x_467); -x_469 = lean_array_push(x_468, x_439); -x_470 = lean_array_push(x_469, x_439); -x_471 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; -x_472 = lean_array_push(x_470, x_471); -x_473 = lean_array_push(x_472, x_17); -x_474 = l_Lean_Parser_Term_letIdDecl___closed__2; -x_475 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_475, 0, x_474); -lean_ctor_set(x_475, 1, x_473); -x_476 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; -x_477 = lean_array_push(x_476, x_475); -x_478 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; -x_479 = lean_array_push(x_477, x_478); -x_480 = lean_array_push(x_437, x_458); -x_481 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__15; -x_482 = lean_array_push(x_480, x_481); -x_483 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__18; -x_484 = l_Lean_addMacroScope(x_463, x_483, x_460); -x_485 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__17; -x_486 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__20; -x_487 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_487, 0, x_433); -lean_ctor_set(x_487, 1, x_485); -lean_ctor_set(x_487, 2, x_484); -lean_ctor_set(x_487, 3, x_486); -x_488 = lean_array_push(x_437, x_487); -x_489 = lean_array_push(x_488, x_439); -x_490 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_490, 0, x_441); -lean_ctor_set(x_490, 1, x_489); -x_491 = lean_array_push(x_482, x_490); -x_492 = l_Lean_Parser_Term_eq___elambda__1___closed__2; -x_493 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_493, 0, x_492); -lean_ctor_set(x_493, 1, x_491); -x_494 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__14; -x_495 = lean_array_push(x_494, x_493); -x_496 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__22; -x_497 = lean_array_push(x_495, x_496); -x_498 = lean_array_push(x_497, x_407); -x_499 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__24; -x_500 = lean_array_push(x_498, x_499); -x_501 = lean_array_push(x_500, x_423); -x_502 = l_Lean_Parser_Term_if___elambda__1___closed__2; -x_503 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_503, 0, x_502); -lean_ctor_set(x_503, 1, x_501); -x_504 = lean_array_push(x_479, x_503); -x_505 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_506 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_506, 0, x_505); -lean_ctor_set(x_506, 1, x_504); -if (lean_is_scalar(x_465)) { - x_507 = lean_alloc_ctor(0, 2, 0); -} else { - x_507 = x_465; + lean_dec_ref(x_463); + x_466 = lean_box(0); } +lean_inc(x_461); +lean_inc(x_464); +x_467 = l_Lean_addMacroScope(x_464, x_445, x_461); +x_468 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_468, 0, x_434); +lean_ctor_set(x_468, 1, x_447); +lean_ctor_set(x_468, 2, x_467); +lean_ctor_set(x_468, 3, x_26); +x_469 = lean_array_push(x_438, x_468); +x_470 = lean_array_push(x_469, x_440); +x_471 = lean_array_push(x_470, x_440); +x_472 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; +x_473 = lean_array_push(x_471, x_472); +x_474 = lean_array_push(x_473, x_16); +x_475 = l_Lean_Parser_Term_letIdDecl___closed__2; +x_476 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_476, 0, x_475); +lean_ctor_set(x_476, 1, x_474); +x_477 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; +x_478 = lean_array_push(x_477, x_476); +x_479 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; +x_480 = lean_array_push(x_478, x_479); +x_481 = lean_array_push(x_438, x_459); +x_482 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__15; +x_483 = lean_array_push(x_481, x_482); +x_484 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__18; +x_485 = l_Lean_addMacroScope(x_464, x_484, x_461); +x_486 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__17; +x_487 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__20; +x_488 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_488, 0, x_434); +lean_ctor_set(x_488, 1, x_486); +lean_ctor_set(x_488, 2, x_485); +lean_ctor_set(x_488, 3, x_487); +x_489 = lean_array_push(x_438, x_488); +x_490 = lean_array_push(x_489, x_440); +x_491 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_491, 0, x_442); +lean_ctor_set(x_491, 1, x_490); +x_492 = lean_array_push(x_483, x_491); +x_493 = l_Lean_Parser_Term_eq___elambda__1___closed__2; +x_494 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_494, 0, x_493); +lean_ctor_set(x_494, 1, x_492); +x_495 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__14; +x_496 = lean_array_push(x_495, x_494); +x_497 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__22; +x_498 = lean_array_push(x_496, x_497); +x_499 = lean_array_push(x_498, x_408); +x_500 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__24; +x_501 = lean_array_push(x_499, x_500); +x_502 = lean_array_push(x_501, x_424); +x_503 = l_Lean_Parser_Term_if___elambda__1___closed__2; +x_504 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_504, 0, x_503); +lean_ctor_set(x_504, 1, x_502); +x_505 = lean_array_push(x_480, x_504); +x_506 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_507 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_507, 0, x_506); -lean_ctor_set(x_507, 1, x_464); -return x_507; +lean_ctor_set(x_507, 1, x_505); +if (lean_is_scalar(x_466)) { + x_508 = lean_alloc_ctor(0, 2, 0); +} else { + x_508 = x_466; +} +lean_ctor_set(x_508, 0, x_507); +lean_ctor_set(x_508, 1, x_465); +return x_508; } else { -lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; -lean_dec(x_409); -lean_dec(x_407); -lean_dec(x_17); -lean_dec(x_4); -x_508 = lean_ctor_get(x_422, 0); -lean_inc(x_508); -x_509 = lean_ctor_get(x_422, 1); +lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; +lean_dec(x_410); +lean_dec(x_408); +lean_dec(x_16); +lean_dec(x_3); +x_509 = lean_ctor_get(x_423, 0); lean_inc(x_509); -if (lean_is_exclusive(x_422)) { - lean_ctor_release(x_422, 0); - lean_ctor_release(x_422, 1); - x_510 = x_422; +x_510 = lean_ctor_get(x_423, 1); +lean_inc(x_510); +if (lean_is_exclusive(x_423)) { + lean_ctor_release(x_423, 0); + lean_ctor_release(x_423, 1); + x_511 = x_423; } else { - lean_dec_ref(x_422); - x_510 = lean_box(0); + lean_dec_ref(x_423); + x_511 = lean_box(0); } -if (lean_is_scalar(x_510)) { - x_511 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_511)) { + x_512 = lean_alloc_ctor(1, 2, 0); } else { - x_511 = x_510; + x_512 = x_511; } -lean_ctor_set(x_511, 0, x_508); -lean_ctor_set(x_511, 1, x_509); -return x_511; +lean_ctor_set(x_512, 0, x_509); +lean_ctor_set(x_512, 1, x_510); +return x_512; } } } else { -lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; +lean_object* x_513; lean_object* x_514; lean_object* x_515; lean_object* x_516; +lean_dec(x_372); lean_dec(x_368); lean_dec(x_367); lean_dec(x_366); @@ -8909,122 +8923,126 @@ lean_dec(x_363); lean_dec(x_362); lean_dec(x_361); lean_dec(x_360); -lean_dec(x_25); -lean_dec(x_21); -lean_dec(x_17); -lean_dec(x_4); -lean_dec(x_2); -x_512 = lean_ctor_get(x_373, 0); -lean_inc(x_512); -x_513 = lean_ctor_get(x_373, 1); +lean_dec(x_24); +lean_dec(x_20); +lean_dec(x_16); +lean_dec(x_3); +lean_dec(x_1); +x_513 = lean_ctor_get(x_374, 0); lean_inc(x_513); -if (lean_is_exclusive(x_373)) { - lean_ctor_release(x_373, 0); - lean_ctor_release(x_373, 1); - x_514 = x_373; +x_514 = lean_ctor_get(x_374, 1); +lean_inc(x_514); +if (lean_is_exclusive(x_374)) { + lean_ctor_release(x_374, 0); + lean_ctor_release(x_374, 1); + x_515 = x_374; } else { - lean_dec_ref(x_373); - x_514 = lean_box(0); + lean_dec_ref(x_374); + x_515 = lean_box(0); } -if (lean_is_scalar(x_514)) { - x_515 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_515)) { + x_516 = lean_alloc_ctor(1, 2, 0); } else { - x_515 = x_514; + x_516 = x_515; } -lean_ctor_set(x_515, 0, x_512); -lean_ctor_set(x_515, 1, x_513); -return x_515; +lean_ctor_set(x_516, 0, x_513); +lean_ctor_set(x_516, 1, x_514); +return x_516; } } } else { -uint8_t x_516; -lean_dec(x_25); -lean_dec(x_21); -lean_dec(x_18); +uint8_t x_517; +lean_dec(x_24); +lean_dec(x_20); lean_dec(x_17); -lean_dec(x_4); -lean_dec(x_2); -x_516 = !lean_is_exclusive(x_29); -if (x_516 == 0) +lean_dec(x_16); +lean_dec(x_3); +lean_dec(x_1); +x_517 = !lean_is_exclusive(x_28); +if (x_517 == 0) { -return x_29; +return x_28; } else { -lean_object* x_517; lean_object* x_518; lean_object* x_519; -x_517 = lean_ctor_get(x_29, 0); -x_518 = lean_ctor_get(x_29, 1); +lean_object* x_518; lean_object* x_519; lean_object* x_520; +x_518 = lean_ctor_get(x_28, 0); +x_519 = lean_ctor_get(x_28, 1); +lean_inc(x_519); lean_inc(x_518); -lean_inc(x_517); -lean_dec(x_29); -x_519 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_519, 0, x_517); -lean_ctor_set(x_519, 1, x_518); -return x_519; +lean_dec(x_28); +x_520 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_520, 0, x_518); +lean_ctor_set(x_520, 1, x_519); +return x_520; } } } else { -lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; -x_520 = lean_ctor_get(x_26, 0); -lean_inc(x_520); -lean_dec(x_26); -x_521 = lean_array_get_size(x_520); -lean_dec(x_520); +lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; +x_521 = lean_ctor_get(x_25, 0); lean_inc(x_521); -x_522 = l_List_range(x_521); -x_523 = l_List_mapM___main___at___private_Lean_Elab_Quotation_6__compileStxMatch___main___spec__8(x_522, x_4, x_5); -x_524 = lean_ctor_get(x_523, 0); -lean_inc(x_524); -x_525 = lean_ctor_get(x_523, 1); +lean_dec(x_25); +x_522 = lean_array_get_size(x_521); +lean_dec(x_521); +lean_inc(x_522); +x_523 = l_List_range(x_522); +x_524 = l_List_mapM___main___at___private_Lean_Elab_Quotation_6__compileStxMatch___main___spec__8(x_523, x_3, x_4); +x_525 = lean_ctor_get(x_524, 0); lean_inc(x_525); -lean_dec(x_523); -x_526 = lean_box(0); -lean_inc(x_21); -x_527 = l_List_filterAux___main___at___private_Lean_Elab_Quotation_6__compileStxMatch___main___spec__9(x_25, x_21, x_526); -lean_inc(x_4); -x_528 = l_List_mapM___main___at___private_Lean_Elab_Quotation_6__compileStxMatch___main___spec__10(x_524, x_527, x_4, x_525); -if (lean_obj_tag(x_528) == 0) +x_526 = lean_ctor_get(x_524, 1); +lean_inc(x_526); +lean_dec(x_524); +x_527 = lean_box(0); +lean_inc(x_20); +x_528 = l_List_filterAux___main___at___private_Lean_Elab_Quotation_6__compileStxMatch___main___spec__9(x_24, x_20, x_527); +lean_inc(x_3); +x_529 = l_List_mapM___main___at___private_Lean_Elab_Quotation_6__compileStxMatch___main___spec__10(x_525, x_528, x_3, x_526); +if (lean_obj_tag(x_529) == 0) { -lean_object* x_529; lean_object* x_530; lean_object* x_531; uint8_t x_532; -x_529 = lean_ctor_get(x_528, 0); -lean_inc(x_529); -x_530 = lean_ctor_get(x_528, 1); +lean_object* x_530; lean_object* x_531; lean_object* x_532; uint8_t x_533; +x_530 = lean_ctor_get(x_529, 0); lean_inc(x_530); -lean_dec(x_528); -x_531 = l_List_append___rarg(x_524, x_18); -x_532 = !lean_is_exclusive(x_530); -if (x_532 == 0) +x_531 = lean_ctor_get(x_529, 1); +lean_inc(x_531); +lean_dec(x_529); +x_532 = l_List_append___rarg(x_525, x_17); +x_533 = !lean_is_exclusive(x_531); +if (x_533 == 0) { -lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; uint8_t x_545; uint8_t x_546; uint8_t x_547; lean_object* x_548; lean_object* x_549; -x_533 = lean_ctor_get(x_530, 5); -x_534 = lean_unsigned_to_nat(1u); -x_535 = lean_nat_add(x_533, x_534); -lean_ctor_set(x_530, 5, x_535); -x_536 = lean_ctor_get(x_4, 0); -lean_inc(x_536); -x_537 = lean_ctor_get(x_4, 1); +lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; uint8_t x_546; uint8_t x_547; uint8_t x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; +x_534 = lean_ctor_get(x_531, 5); +x_535 = lean_unsigned_to_nat(1u); +x_536 = lean_nat_add(x_534, x_535); +lean_ctor_set(x_531, 5, x_536); +x_537 = lean_ctor_get(x_3, 0); lean_inc(x_537); -x_538 = lean_ctor_get(x_4, 2); +x_538 = lean_ctor_get(x_3, 1); lean_inc(x_538); -x_539 = lean_ctor_get(x_4, 3); +x_539 = lean_ctor_get(x_3, 2); lean_inc(x_539); -x_540 = lean_ctor_get(x_4, 4); +x_540 = lean_ctor_get(x_3, 3); lean_inc(x_540); -x_541 = lean_ctor_get(x_4, 5); +x_541 = lean_ctor_get(x_3, 4); lean_inc(x_541); -x_542 = lean_ctor_get(x_4, 6); +x_542 = lean_ctor_get(x_3, 5); lean_inc(x_542); -x_543 = lean_ctor_get(x_4, 7); +x_543 = lean_ctor_get(x_3, 6); lean_inc(x_543); -x_544 = lean_ctor_get(x_4, 8); +x_544 = lean_ctor_get(x_3, 7); lean_inc(x_544); -x_545 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); -x_546 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); -x_547 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 2); +x_545 = lean_ctor_get(x_3, 8); +lean_inc(x_545); +x_546 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_547 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_548 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +x_549 = lean_ctor_get(x_3, 10); +lean_inc(x_549); +lean_inc(x_549); +lean_inc(x_545); lean_inc(x_544); lean_inc(x_543); lean_inc(x_542); @@ -9033,30 +9051,32 @@ lean_inc(x_540); lean_inc(x_539); lean_inc(x_538); lean_inc(x_537); -lean_inc(x_536); -x_548 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_548, 0, x_536); -lean_ctor_set(x_548, 1, x_537); -lean_ctor_set(x_548, 2, x_538); -lean_ctor_set(x_548, 3, x_539); -lean_ctor_set(x_548, 4, x_540); -lean_ctor_set(x_548, 5, x_541); -lean_ctor_set(x_548, 6, x_542); -lean_ctor_set(x_548, 7, x_543); -lean_ctor_set(x_548, 8, x_544); -lean_ctor_set(x_548, 9, x_533); -lean_ctor_set_uint8(x_548, sizeof(void*)*10, x_545); -lean_ctor_set_uint8(x_548, sizeof(void*)*10 + 1, x_546); -lean_ctor_set_uint8(x_548, sizeof(void*)*10 + 2, x_547); -x_549 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main(x_1, x_531, x_529, x_548, x_530); -if (lean_obj_tag(x_549) == 0) +x_550 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_550, 0, x_537); +lean_ctor_set(x_550, 1, x_538); +lean_ctor_set(x_550, 2, x_539); +lean_ctor_set(x_550, 3, x_540); +lean_ctor_set(x_550, 4, x_541); +lean_ctor_set(x_550, 5, x_542); +lean_ctor_set(x_550, 6, x_543); +lean_ctor_set(x_550, 7, x_544); +lean_ctor_set(x_550, 8, x_545); +lean_ctor_set(x_550, 9, x_534); +lean_ctor_set(x_550, 10, x_549); +lean_ctor_set_uint8(x_550, sizeof(void*)*11, x_546); +lean_ctor_set_uint8(x_550, sizeof(void*)*11 + 1, x_547); +lean_ctor_set_uint8(x_550, sizeof(void*)*11 + 2, x_548); +x_551 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main(x_532, x_530, x_550, x_531); +if (lean_obj_tag(x_551) == 0) { -lean_object* x_550; -x_550 = lean_ctor_get(x_25, 0); -lean_inc(x_550); -if (lean_obj_tag(x_550) == 0) +lean_object* x_552; +x_552 = lean_ctor_get(x_24, 0); +lean_inc(x_552); +if (lean_obj_tag(x_552) == 0) { -lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; uint8_t x_557; +lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; uint8_t x_559; +lean_dec(x_549); +lean_dec(x_545); lean_dec(x_544); lean_dec(x_543); lean_dec(x_542); @@ -9065,794 +9085,797 @@ lean_dec(x_540); lean_dec(x_539); lean_dec(x_538); lean_dec(x_537); -lean_dec(x_536); -lean_dec(x_521); -lean_dec(x_25); -lean_dec(x_21); -lean_dec(x_2); -x_551 = lean_ctor_get(x_549, 0); -lean_inc(x_551); -x_552 = lean_ctor_get(x_549, 1); -lean_inc(x_552); -lean_dec(x_549); -x_553 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_552); -lean_dec(x_4); -x_554 = lean_ctor_get(x_553, 0); +lean_dec(x_522); +lean_dec(x_24); +lean_dec(x_20); +lean_dec(x_1); +x_553 = lean_ctor_get(x_551, 0); +lean_inc(x_553); +x_554 = lean_ctor_get(x_551, 1); lean_inc(x_554); -x_555 = lean_ctor_get(x_553, 1); -lean_inc(x_555); -lean_dec(x_553); -x_556 = l_Lean_Elab_Term_getMainModule___rarg(x_555); -x_557 = !lean_is_exclusive(x_556); -if (x_557 == 0) +lean_dec(x_551); +x_555 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_554); +lean_dec(x_3); +x_556 = lean_ctor_get(x_555, 0); +lean_inc(x_556); +x_557 = lean_ctor_get(x_555, 1); +lean_inc(x_557); +lean_dec(x_555); +x_558 = l_Lean_Elab_Term_getMainModule___rarg(x_557); +x_559 = !lean_is_exclusive(x_558); +if (x_559 == 0) { -lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; -x_558 = lean_ctor_get(x_556, 0); -x_559 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__8; -x_560 = l_Lean_addMacroScope(x_558, x_559, x_554); -x_561 = l_Lean_SourceInfo_inhabited___closed__1; -x_562 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__7; -x_563 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_563, 0, x_561); -lean_ctor_set(x_563, 1, x_562); -lean_ctor_set(x_563, 2, x_560); -lean_ctor_set(x_563, 3, x_526); -x_564 = l_Array_empty___closed__1; -x_565 = lean_array_push(x_564, x_563); -x_566 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; -x_567 = lean_array_push(x_565, x_566); -x_568 = lean_array_push(x_567, x_566); -x_569 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; -x_570 = lean_array_push(x_568, x_569); -x_571 = lean_array_push(x_570, x_17); -x_572 = l_Lean_Parser_Term_letIdDecl___closed__2; -x_573 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_573, 0, x_572); -lean_ctor_set(x_573, 1, x_571); -x_574 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; -x_575 = lean_array_push(x_574, x_573); -x_576 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; -x_577 = lean_array_push(x_575, x_576); -x_578 = lean_array_push(x_577, x_551); -x_579 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_580 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_580, 0, x_579); -lean_ctor_set(x_580, 1, x_578); -lean_ctor_set(x_556, 0, x_580); -return x_556; +lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; +x_560 = lean_ctor_get(x_558, 0); +x_561 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__8; +x_562 = l_Lean_addMacroScope(x_560, x_561, x_556); +x_563 = l_Lean_SourceInfo_inhabited___closed__1; +x_564 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__7; +x_565 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_565, 0, x_563); +lean_ctor_set(x_565, 1, x_564); +lean_ctor_set(x_565, 2, x_562); +lean_ctor_set(x_565, 3, x_527); +x_566 = l_Array_empty___closed__1; +x_567 = lean_array_push(x_566, x_565); +x_568 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; +x_569 = lean_array_push(x_567, x_568); +x_570 = lean_array_push(x_569, x_568); +x_571 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; +x_572 = lean_array_push(x_570, x_571); +x_573 = lean_array_push(x_572, x_16); +x_574 = l_Lean_Parser_Term_letIdDecl___closed__2; +x_575 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_575, 0, x_574); +lean_ctor_set(x_575, 1, x_573); +x_576 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; +x_577 = lean_array_push(x_576, x_575); +x_578 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; +x_579 = lean_array_push(x_577, x_578); +x_580 = lean_array_push(x_579, x_553); +x_581 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_582 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_582, 0, x_581); +lean_ctor_set(x_582, 1, x_580); +lean_ctor_set(x_558, 0, x_582); +return x_558; } else { -lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; -x_581 = lean_ctor_get(x_556, 0); -x_582 = lean_ctor_get(x_556, 1); -lean_inc(x_582); -lean_inc(x_581); -lean_dec(x_556); -x_583 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__8; -x_584 = l_Lean_addMacroScope(x_581, x_583, x_554); -x_585 = l_Lean_SourceInfo_inhabited___closed__1; -x_586 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__7; -x_587 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_587, 0, x_585); -lean_ctor_set(x_587, 1, x_586); -lean_ctor_set(x_587, 2, x_584); -lean_ctor_set(x_587, 3, x_526); -x_588 = l_Array_empty___closed__1; -x_589 = lean_array_push(x_588, x_587); -x_590 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; -x_591 = lean_array_push(x_589, x_590); -x_592 = lean_array_push(x_591, x_590); -x_593 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; -x_594 = lean_array_push(x_592, x_593); -x_595 = lean_array_push(x_594, x_17); -x_596 = l_Lean_Parser_Term_letIdDecl___closed__2; -x_597 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_597, 0, x_596); -lean_ctor_set(x_597, 1, x_595); -x_598 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; -x_599 = lean_array_push(x_598, x_597); -x_600 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; -x_601 = lean_array_push(x_599, x_600); -x_602 = lean_array_push(x_601, x_551); -x_603 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_604 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_604, 0, x_603); -lean_ctor_set(x_604, 1, x_602); -x_605 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_605, 0, x_604); -lean_ctor_set(x_605, 1, x_582); -return x_605; +lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; +x_583 = lean_ctor_get(x_558, 0); +x_584 = lean_ctor_get(x_558, 1); +lean_inc(x_584); +lean_inc(x_583); +lean_dec(x_558); +x_585 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__8; +x_586 = l_Lean_addMacroScope(x_583, x_585, x_556); +x_587 = l_Lean_SourceInfo_inhabited___closed__1; +x_588 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__7; +x_589 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_589, 0, x_587); +lean_ctor_set(x_589, 1, x_588); +lean_ctor_set(x_589, 2, x_586); +lean_ctor_set(x_589, 3, x_527); +x_590 = l_Array_empty___closed__1; +x_591 = lean_array_push(x_590, x_589); +x_592 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; +x_593 = lean_array_push(x_591, x_592); +x_594 = lean_array_push(x_593, x_592); +x_595 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; +x_596 = lean_array_push(x_594, x_595); +x_597 = lean_array_push(x_596, x_16); +x_598 = l_Lean_Parser_Term_letIdDecl___closed__2; +x_599 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_599, 0, x_598); +lean_ctor_set(x_599, 1, x_597); +x_600 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; +x_601 = lean_array_push(x_600, x_599); +x_602 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; +x_603 = lean_array_push(x_601, x_602); +x_604 = lean_array_push(x_603, x_553); +x_605 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_606 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_606, 0, x_605); +lean_ctor_set(x_606, 1, x_604); +x_607 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_607, 0, x_606); +lean_ctor_set(x_607, 1, x_584); +return x_607; } } else { -lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; uint8_t x_611; -x_606 = lean_ctor_get(x_549, 0); -lean_inc(x_606); -x_607 = lean_ctor_get(x_549, 1); -lean_inc(x_607); -lean_dec(x_549); -x_608 = lean_ctor_get(x_550, 0); +lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; uint8_t x_613; +x_608 = lean_ctor_get(x_551, 0); lean_inc(x_608); -lean_dec(x_550); -x_609 = l_List_filterAux___main___at___private_Lean_Elab_Quotation_6__compileStxMatch___main___spec__11(x_25, x_21, x_526); -lean_dec(x_25); -x_610 = l_List_map___main___at___private_Lean_Elab_Quotation_6__compileStxMatch___main___spec__7(x_609); -x_611 = !lean_is_exclusive(x_607); -if (x_611 == 0) +x_609 = lean_ctor_get(x_551, 1); +lean_inc(x_609); +lean_dec(x_551); +x_610 = lean_ctor_get(x_552, 0); +lean_inc(x_610); +lean_dec(x_552); +x_611 = l_List_filterAux___main___at___private_Lean_Elab_Quotation_6__compileStxMatch___main___spec__11(x_24, x_20, x_527); +lean_dec(x_24); +x_612 = l_List_map___main___at___private_Lean_Elab_Quotation_6__compileStxMatch___main___spec__7(x_611); +x_613 = !lean_is_exclusive(x_609); +if (x_613 == 0) { -lean_object* x_612; lean_object* x_613; lean_object* x_614; lean_object* x_615; -x_612 = lean_ctor_get(x_607, 5); -x_613 = lean_nat_add(x_612, x_534); -lean_ctor_set(x_607, 5, x_613); -x_614 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_614, 0, x_536); -lean_ctor_set(x_614, 1, x_537); -lean_ctor_set(x_614, 2, x_538); -lean_ctor_set(x_614, 3, x_539); -lean_ctor_set(x_614, 4, x_540); -lean_ctor_set(x_614, 5, x_541); -lean_ctor_set(x_614, 6, x_542); -lean_ctor_set(x_614, 7, x_543); -lean_ctor_set(x_614, 8, x_544); -lean_ctor_set(x_614, 9, x_612); -lean_ctor_set_uint8(x_614, sizeof(void*)*10, x_545); -lean_ctor_set_uint8(x_614, sizeof(void*)*10 + 1, x_546); -lean_ctor_set_uint8(x_614, sizeof(void*)*10 + 2, x_547); -x_615 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main(x_1, x_2, x_610, x_614, x_607); -if (lean_obj_tag(x_615) == 0) +lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; +x_614 = lean_ctor_get(x_609, 5); +x_615 = lean_nat_add(x_614, x_535); +lean_ctor_set(x_609, 5, x_615); +x_616 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_616, 0, x_537); +lean_ctor_set(x_616, 1, x_538); +lean_ctor_set(x_616, 2, x_539); +lean_ctor_set(x_616, 3, x_540); +lean_ctor_set(x_616, 4, x_541); +lean_ctor_set(x_616, 5, x_542); +lean_ctor_set(x_616, 6, x_543); +lean_ctor_set(x_616, 7, x_544); +lean_ctor_set(x_616, 8, x_545); +lean_ctor_set(x_616, 9, x_614); +lean_ctor_set(x_616, 10, x_549); +lean_ctor_set_uint8(x_616, sizeof(void*)*11, x_546); +lean_ctor_set_uint8(x_616, sizeof(void*)*11 + 1, x_547); +lean_ctor_set_uint8(x_616, sizeof(void*)*11 + 2, x_548); +x_617 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main(x_1, x_612, x_616, x_609); +if (lean_obj_tag(x_617) == 0) { -lean_object* x_616; lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; lean_object* x_653; lean_object* x_654; lean_object* x_655; lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; lean_object* x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; uint8_t x_709; -x_616 = lean_ctor_get(x_615, 0); -lean_inc(x_616); -x_617 = lean_ctor_get(x_615, 1); -lean_inc(x_617); -lean_dec(x_615); -x_618 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_617); -x_619 = lean_ctor_get(x_618, 0); +lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; lean_object* x_653; lean_object* x_654; lean_object* x_655; lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; lean_object* x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; lean_object* x_710; uint8_t x_711; +x_618 = lean_ctor_get(x_617, 0); +lean_inc(x_618); +x_619 = lean_ctor_get(x_617, 1); lean_inc(x_619); -x_620 = lean_ctor_get(x_618, 1); -lean_inc(x_620); -lean_dec(x_618); -x_621 = l_Lean_Elab_Term_getMainModule___rarg(x_620); -x_622 = lean_ctor_get(x_621, 0); +lean_dec(x_617); +x_620 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_619); +x_621 = lean_ctor_get(x_620, 0); +lean_inc(x_621); +x_622 = lean_ctor_get(x_620, 1); lean_inc(x_622); -x_623 = lean_ctor_get(x_621, 1); -lean_inc(x_623); -lean_dec(x_621); -x_624 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__8; -lean_inc(x_619); -lean_inc(x_622); -x_625 = l_Lean_addMacroScope(x_622, x_624, x_619); -x_626 = l_Lean_SourceInfo_inhabited___closed__1; -x_627 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__6; -x_628 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__11; -x_629 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_629, 0, x_626); -lean_ctor_set(x_629, 1, x_627); -lean_ctor_set(x_629, 2, x_625); -lean_ctor_set(x_629, 3, x_628); -x_630 = l_Array_empty___closed__1; -x_631 = lean_array_push(x_630, x_629); -x_632 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; -x_633 = lean_array_push(x_631, x_632); -x_634 = l_Lean_mkTermIdFromIdent___closed__2; -x_635 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_635, 0, x_634); -lean_ctor_set(x_635, 1, x_633); -x_636 = lean_array_push(x_630, x_635); -x_637 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__8; -lean_inc(x_619); -lean_inc(x_622); -x_638 = l_Lean_addMacroScope(x_622, x_637, x_619); -x_639 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__7; -x_640 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_640, 0, x_626); -lean_ctor_set(x_640, 1, x_639); -lean_ctor_set(x_640, 2, x_638); -lean_ctor_set(x_640, 3, x_526); -x_641 = lean_array_push(x_630, x_640); -x_642 = lean_array_push(x_641, x_632); -x_643 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_643, 0, x_634); -lean_ctor_set(x_643, 1, x_642); -x_644 = lean_array_push(x_630, x_643); -x_645 = l___private_Lean_Syntax_7__quoteName___main(x_608); -lean_inc(x_644); -x_646 = lean_array_push(x_644, x_645); -x_647 = l_Lean_nullKind___closed__2; -x_648 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_648, 0, x_647); -lean_ctor_set(x_648, 1, x_646); -x_649 = lean_array_push(x_636, x_648); -x_650 = l_Lean_mkAppStx___closed__8; -x_651 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_651, 0, x_650); -lean_ctor_set(x_651, 1, x_649); -x_652 = lean_array_push(x_630, x_651); -x_653 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__26; -x_654 = lean_array_push(x_652, x_653); -x_655 = l_Lean_Meta_caseArraySizes___closed__2; -lean_inc(x_619); -lean_inc(x_622); -x_656 = l_Lean_addMacroScope(x_622, x_655, x_619); -x_657 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__29; -x_658 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__31; -x_659 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_659, 0, x_626); -lean_ctor_set(x_659, 1, x_657); -lean_ctor_set(x_659, 2, x_656); -lean_ctor_set(x_659, 3, x_658); -x_660 = lean_array_push(x_630, x_659); -x_661 = lean_array_push(x_660, x_632); -x_662 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_662, 0, x_634); -lean_ctor_set(x_662, 1, x_661); -x_663 = lean_array_push(x_630, x_662); -x_664 = l___private_Lean_Elab_Quotation_4__getHeadInfo___lambda__2___closed__5; -x_665 = l_Lean_addMacroScope(x_622, x_664, x_619); -x_666 = l___private_Lean_Elab_Quotation_4__getHeadInfo___lambda__2___closed__3; -x_667 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__34; -x_668 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_668, 0, x_626); -lean_ctor_set(x_668, 1, x_666); -lean_ctor_set(x_668, 2, x_665); -lean_ctor_set(x_668, 3, x_667); -x_669 = lean_array_push(x_630, x_668); -x_670 = lean_array_push(x_669, x_632); -x_671 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_671, 0, x_634); -lean_ctor_set(x_671, 1, x_670); -x_672 = lean_array_push(x_630, x_671); +lean_dec(x_620); +x_623 = l_Lean_Elab_Term_getMainModule___rarg(x_622); +x_624 = lean_ctor_get(x_623, 0); +lean_inc(x_624); +x_625 = lean_ctor_get(x_623, 1); +lean_inc(x_625); +lean_dec(x_623); +x_626 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__8; +lean_inc(x_621); +lean_inc(x_624); +x_627 = l_Lean_addMacroScope(x_624, x_626, x_621); +x_628 = l_Lean_SourceInfo_inhabited___closed__1; +x_629 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__6; +x_630 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__11; +x_631 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_631, 0, x_628); +lean_ctor_set(x_631, 1, x_629); +lean_ctor_set(x_631, 2, x_627); +lean_ctor_set(x_631, 3, x_630); +x_632 = l_Array_empty___closed__1; +x_633 = lean_array_push(x_632, x_631); +x_634 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; +x_635 = lean_array_push(x_633, x_634); +x_636 = l_Lean_mkTermIdFromIdent___closed__2; +x_637 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_637, 0, x_636); +lean_ctor_set(x_637, 1, x_635); +x_638 = lean_array_push(x_632, x_637); +x_639 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__8; +lean_inc(x_621); +lean_inc(x_624); +x_640 = l_Lean_addMacroScope(x_624, x_639, x_621); +x_641 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__7; +x_642 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_642, 0, x_628); +lean_ctor_set(x_642, 1, x_641); +lean_ctor_set(x_642, 2, x_640); +lean_ctor_set(x_642, 3, x_527); +x_643 = lean_array_push(x_632, x_642); +x_644 = lean_array_push(x_643, x_634); +x_645 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_645, 0, x_636); +lean_ctor_set(x_645, 1, x_644); +x_646 = lean_array_push(x_632, x_645); +x_647 = l___private_Lean_Syntax_7__quoteName___main(x_610); +lean_inc(x_646); +x_648 = lean_array_push(x_646, x_647); +x_649 = l_Lean_nullKind___closed__2; +x_650 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_650, 0, x_649); +lean_ctor_set(x_650, 1, x_648); +x_651 = lean_array_push(x_638, x_650); +x_652 = l_Lean_mkAppStx___closed__8; +x_653 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_653, 0, x_652); +lean_ctor_set(x_653, 1, x_651); +x_654 = lean_array_push(x_632, x_653); +x_655 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__26; +x_656 = lean_array_push(x_654, x_655); +x_657 = l_Lean_Meta_caseArraySizes___closed__2; +lean_inc(x_621); +lean_inc(x_624); +x_658 = l_Lean_addMacroScope(x_624, x_657, x_621); +x_659 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__29; +x_660 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__31; +x_661 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_661, 0, x_628); +lean_ctor_set(x_661, 1, x_659); +lean_ctor_set(x_661, 2, x_658); +lean_ctor_set(x_661, 3, x_660); +x_662 = lean_array_push(x_632, x_661); +x_663 = lean_array_push(x_662, x_634); +x_664 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_664, 0, x_636); +lean_ctor_set(x_664, 1, x_663); +x_665 = lean_array_push(x_632, x_664); +x_666 = l___private_Lean_Elab_Quotation_4__getHeadInfo___lambda__2___closed__5; +x_667 = l_Lean_addMacroScope(x_624, x_666, x_621); +x_668 = l___private_Lean_Elab_Quotation_4__getHeadInfo___lambda__2___closed__3; +x_669 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__34; +x_670 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_670, 0, x_628); +lean_ctor_set(x_670, 1, x_668); +lean_ctor_set(x_670, 2, x_667); +lean_ctor_set(x_670, 3, x_669); +x_671 = lean_array_push(x_632, x_670); +x_672 = lean_array_push(x_671, x_634); x_673 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_673, 0, x_647); -lean_ctor_set(x_673, 1, x_644); -x_674 = lean_array_push(x_672, x_673); +lean_ctor_set(x_673, 0, x_636); +lean_ctor_set(x_673, 1, x_672); +x_674 = lean_array_push(x_632, x_673); x_675 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_675, 0, x_650); -lean_ctor_set(x_675, 1, x_674); -x_676 = lean_array_push(x_630, x_675); -x_677 = lean_array_push(x_676, x_632); -x_678 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_678, 0, x_647); -lean_ctor_set(x_678, 1, x_677); -x_679 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__4; -x_680 = lean_array_push(x_679, x_678); -x_681 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__6; -x_682 = lean_array_push(x_680, x_681); -x_683 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__2; -x_684 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_684, 0, x_683); -lean_ctor_set(x_684, 1, x_682); -x_685 = lean_array_push(x_630, x_684); +lean_ctor_set(x_675, 0, x_649); +lean_ctor_set(x_675, 1, x_646); +x_676 = lean_array_push(x_674, x_675); +x_677 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_677, 0, x_652); +lean_ctor_set(x_677, 1, x_676); +x_678 = lean_array_push(x_632, x_677); +x_679 = lean_array_push(x_678, x_634); +x_680 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_680, 0, x_649); +lean_ctor_set(x_680, 1, x_679); +x_681 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__4; +x_682 = lean_array_push(x_681, x_680); +x_683 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__6; +x_684 = lean_array_push(x_682, x_683); +x_685 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__2; x_686 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_686, 0, x_647); -lean_ctor_set(x_686, 1, x_685); -x_687 = lean_array_push(x_663, x_686); +lean_ctor_set(x_686, 0, x_685); +lean_ctor_set(x_686, 1, x_684); +x_687 = lean_array_push(x_632, x_686); x_688 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_688, 0, x_650); +lean_ctor_set(x_688, 0, x_649); lean_ctor_set(x_688, 1, x_687); -x_689 = lean_array_push(x_630, x_688); -x_690 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__36; -x_691 = lean_array_push(x_689, x_690); -x_692 = l_Nat_repr(x_521); -x_693 = l_Lean_numLitKind; -x_694 = l_Lean_mkStxLit(x_693, x_692, x_626); -x_695 = l_Lean_mkOptionalNode___closed__2; -x_696 = lean_array_push(x_695, x_694); -x_697 = l_Lean_Nat_HasQuote___closed__2; -x_698 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_698, 0, x_697); -lean_ctor_set(x_698, 1, x_696); -x_699 = lean_array_push(x_691, x_698); -x_700 = l_Lean_Parser_Term_beq___elambda__1___closed__1; -x_701 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_701, 0, x_700); -lean_ctor_set(x_701, 1, x_699); -x_702 = lean_array_push(x_654, x_701); -x_703 = l_Lean_Parser_Term_band___elambda__1___closed__2; -x_704 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_704, 0, x_703); -lean_ctor_set(x_704, 1, x_702); -x_705 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_623); -lean_dec(x_4); -x_706 = lean_ctor_get(x_705, 0); -lean_inc(x_706); -x_707 = lean_ctor_get(x_705, 1); -lean_inc(x_707); -lean_dec(x_705); -x_708 = l_Lean_Elab_Term_getMainModule___rarg(x_707); -x_709 = !lean_is_exclusive(x_708); -if (x_709 == 0) +x_689 = lean_array_push(x_665, x_688); +x_690 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_690, 0, x_652); +lean_ctor_set(x_690, 1, x_689); +x_691 = lean_array_push(x_632, x_690); +x_692 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__36; +x_693 = lean_array_push(x_691, x_692); +x_694 = l_Nat_repr(x_522); +x_695 = l_Lean_numLitKind; +x_696 = l_Lean_mkStxLit(x_695, x_694, x_628); +x_697 = l_Lean_mkOptionalNode___closed__2; +x_698 = lean_array_push(x_697, x_696); +x_699 = l_Lean_Nat_HasQuote___closed__2; +x_700 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_700, 0, x_699); +lean_ctor_set(x_700, 1, x_698); +x_701 = lean_array_push(x_693, x_700); +x_702 = l_Lean_Parser_Term_beq___elambda__1___closed__1; +x_703 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_703, 0, x_702); +lean_ctor_set(x_703, 1, x_701); +x_704 = lean_array_push(x_656, x_703); +x_705 = l_Lean_Parser_Term_band___elambda__1___closed__2; +x_706 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_706, 0, x_705); +lean_ctor_set(x_706, 1, x_704); +x_707 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_625); +lean_dec(x_3); +x_708 = lean_ctor_get(x_707, 0); +lean_inc(x_708); +x_709 = lean_ctor_get(x_707, 1); +lean_inc(x_709); +lean_dec(x_707); +x_710 = l_Lean_Elab_Term_getMainModule___rarg(x_709); +x_711 = !lean_is_exclusive(x_710); +if (x_711 == 0) { -lean_object* x_710; lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; lean_object* x_719; lean_object* x_720; lean_object* x_721; lean_object* x_722; lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_726; lean_object* x_727; lean_object* x_728; lean_object* x_729; lean_object* x_730; lean_object* x_731; lean_object* x_732; lean_object* x_733; lean_object* x_734; lean_object* x_735; lean_object* x_736; lean_object* x_737; lean_object* x_738; lean_object* x_739; lean_object* x_740; lean_object* x_741; lean_object* x_742; lean_object* x_743; lean_object* x_744; lean_object* x_745; lean_object* x_746; lean_object* x_747; lean_object* x_748; lean_object* x_749; lean_object* x_750; lean_object* x_751; -x_710 = lean_ctor_get(x_708, 0); -lean_inc(x_706); -lean_inc(x_710); -x_711 = l_Lean_addMacroScope(x_710, x_637, x_706); -x_712 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_712, 0, x_626); -lean_ctor_set(x_712, 1, x_639); -lean_ctor_set(x_712, 2, x_711); -lean_ctor_set(x_712, 3, x_526); -x_713 = lean_array_push(x_630, x_712); -x_714 = lean_array_push(x_713, x_632); -x_715 = lean_array_push(x_714, x_632); -x_716 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; -x_717 = lean_array_push(x_715, x_716); -x_718 = lean_array_push(x_717, x_17); -x_719 = l_Lean_Parser_Term_letIdDecl___closed__2; -x_720 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_720, 0, x_719); -lean_ctor_set(x_720, 1, x_718); -x_721 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; -x_722 = lean_array_push(x_721, x_720); -x_723 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; -x_724 = lean_array_push(x_722, x_723); -x_725 = lean_array_push(x_630, x_704); -x_726 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__15; -x_727 = lean_array_push(x_725, x_726); -x_728 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__18; -x_729 = l_Lean_addMacroScope(x_710, x_728, x_706); -x_730 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__17; -x_731 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__20; -x_732 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_732, 0, x_626); -lean_ctor_set(x_732, 1, x_730); -lean_ctor_set(x_732, 2, x_729); -lean_ctor_set(x_732, 3, x_731); -x_733 = lean_array_push(x_630, x_732); -x_734 = lean_array_push(x_733, x_632); -x_735 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_735, 0, x_634); -lean_ctor_set(x_735, 1, x_734); -x_736 = lean_array_push(x_727, x_735); -x_737 = l_Lean_Parser_Term_eq___elambda__1___closed__2; -x_738 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_738, 0, x_737); -lean_ctor_set(x_738, 1, x_736); -x_739 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__14; -x_740 = lean_array_push(x_739, x_738); -x_741 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__22; -x_742 = lean_array_push(x_740, x_741); -x_743 = lean_array_push(x_742, x_606); -x_744 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__24; -x_745 = lean_array_push(x_743, x_744); -x_746 = lean_array_push(x_745, x_616); -x_747 = l_Lean_Parser_Term_if___elambda__1___closed__2; -x_748 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_748, 0, x_747); -lean_ctor_set(x_748, 1, x_746); -x_749 = lean_array_push(x_724, x_748); -x_750 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_751 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_751, 0, x_750); -lean_ctor_set(x_751, 1, x_749); -lean_ctor_set(x_708, 0, x_751); -return x_708; +lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; lean_object* x_719; lean_object* x_720; lean_object* x_721; lean_object* x_722; lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_726; lean_object* x_727; lean_object* x_728; lean_object* x_729; lean_object* x_730; lean_object* x_731; lean_object* x_732; lean_object* x_733; lean_object* x_734; lean_object* x_735; lean_object* x_736; lean_object* x_737; lean_object* x_738; lean_object* x_739; lean_object* x_740; lean_object* x_741; lean_object* x_742; lean_object* x_743; lean_object* x_744; lean_object* x_745; lean_object* x_746; lean_object* x_747; lean_object* x_748; lean_object* x_749; lean_object* x_750; lean_object* x_751; lean_object* x_752; lean_object* x_753; +x_712 = lean_ctor_get(x_710, 0); +lean_inc(x_708); +lean_inc(x_712); +x_713 = l_Lean_addMacroScope(x_712, x_639, x_708); +x_714 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_714, 0, x_628); +lean_ctor_set(x_714, 1, x_641); +lean_ctor_set(x_714, 2, x_713); +lean_ctor_set(x_714, 3, x_527); +x_715 = lean_array_push(x_632, x_714); +x_716 = lean_array_push(x_715, x_634); +x_717 = lean_array_push(x_716, x_634); +x_718 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; +x_719 = lean_array_push(x_717, x_718); +x_720 = lean_array_push(x_719, x_16); +x_721 = l_Lean_Parser_Term_letIdDecl___closed__2; +x_722 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_722, 0, x_721); +lean_ctor_set(x_722, 1, x_720); +x_723 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; +x_724 = lean_array_push(x_723, x_722); +x_725 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; +x_726 = lean_array_push(x_724, x_725); +x_727 = lean_array_push(x_632, x_706); +x_728 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__15; +x_729 = lean_array_push(x_727, x_728); +x_730 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__18; +x_731 = l_Lean_addMacroScope(x_712, x_730, x_708); +x_732 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__17; +x_733 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__20; +x_734 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_734, 0, x_628); +lean_ctor_set(x_734, 1, x_732); +lean_ctor_set(x_734, 2, x_731); +lean_ctor_set(x_734, 3, x_733); +x_735 = lean_array_push(x_632, x_734); +x_736 = lean_array_push(x_735, x_634); +x_737 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_737, 0, x_636); +lean_ctor_set(x_737, 1, x_736); +x_738 = lean_array_push(x_729, x_737); +x_739 = l_Lean_Parser_Term_eq___elambda__1___closed__2; +x_740 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_740, 0, x_739); +lean_ctor_set(x_740, 1, x_738); +x_741 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__14; +x_742 = lean_array_push(x_741, x_740); +x_743 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__22; +x_744 = lean_array_push(x_742, x_743); +x_745 = lean_array_push(x_744, x_608); +x_746 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__24; +x_747 = lean_array_push(x_745, x_746); +x_748 = lean_array_push(x_747, x_618); +x_749 = l_Lean_Parser_Term_if___elambda__1___closed__2; +x_750 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_750, 0, x_749); +lean_ctor_set(x_750, 1, x_748); +x_751 = lean_array_push(x_726, x_750); +x_752 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_753 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_753, 0, x_752); +lean_ctor_set(x_753, 1, x_751); +lean_ctor_set(x_710, 0, x_753); +return x_710; } else { -lean_object* x_752; lean_object* x_753; lean_object* x_754; lean_object* x_755; lean_object* x_756; lean_object* x_757; lean_object* x_758; lean_object* x_759; lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; lean_object* x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; lean_object* x_768; lean_object* x_769; lean_object* x_770; lean_object* x_771; lean_object* x_772; lean_object* x_773; lean_object* x_774; lean_object* x_775; lean_object* x_776; lean_object* x_777; lean_object* x_778; lean_object* x_779; lean_object* x_780; lean_object* x_781; lean_object* x_782; lean_object* x_783; lean_object* x_784; lean_object* x_785; lean_object* x_786; lean_object* x_787; lean_object* x_788; lean_object* x_789; lean_object* x_790; lean_object* x_791; lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; -x_752 = lean_ctor_get(x_708, 0); -x_753 = lean_ctor_get(x_708, 1); -lean_inc(x_753); -lean_inc(x_752); -lean_dec(x_708); -lean_inc(x_706); -lean_inc(x_752); -x_754 = l_Lean_addMacroScope(x_752, x_637, x_706); -x_755 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_755, 0, x_626); -lean_ctor_set(x_755, 1, x_639); -lean_ctor_set(x_755, 2, x_754); -lean_ctor_set(x_755, 3, x_526); -x_756 = lean_array_push(x_630, x_755); -x_757 = lean_array_push(x_756, x_632); -x_758 = lean_array_push(x_757, x_632); -x_759 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; -x_760 = lean_array_push(x_758, x_759); -x_761 = lean_array_push(x_760, x_17); -x_762 = l_Lean_Parser_Term_letIdDecl___closed__2; -x_763 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_763, 0, x_762); -lean_ctor_set(x_763, 1, x_761); -x_764 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; -x_765 = lean_array_push(x_764, x_763); -x_766 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; -x_767 = lean_array_push(x_765, x_766); -x_768 = lean_array_push(x_630, x_704); -x_769 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__15; -x_770 = lean_array_push(x_768, x_769); -x_771 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__18; -x_772 = l_Lean_addMacroScope(x_752, x_771, x_706); -x_773 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__17; -x_774 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__20; -x_775 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_775, 0, x_626); -lean_ctor_set(x_775, 1, x_773); -lean_ctor_set(x_775, 2, x_772); -lean_ctor_set(x_775, 3, x_774); -x_776 = lean_array_push(x_630, x_775); -x_777 = lean_array_push(x_776, x_632); -x_778 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_778, 0, x_634); -lean_ctor_set(x_778, 1, x_777); -x_779 = lean_array_push(x_770, x_778); -x_780 = l_Lean_Parser_Term_eq___elambda__1___closed__2; -x_781 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_781, 0, x_780); -lean_ctor_set(x_781, 1, x_779); -x_782 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__14; -x_783 = lean_array_push(x_782, x_781); -x_784 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__22; -x_785 = lean_array_push(x_783, x_784); -x_786 = lean_array_push(x_785, x_606); -x_787 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__24; -x_788 = lean_array_push(x_786, x_787); -x_789 = lean_array_push(x_788, x_616); -x_790 = l_Lean_Parser_Term_if___elambda__1___closed__2; -x_791 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_791, 0, x_790); -lean_ctor_set(x_791, 1, x_789); -x_792 = lean_array_push(x_767, x_791); -x_793 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_794 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_794, 0, x_793); -lean_ctor_set(x_794, 1, x_792); -x_795 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_795, 0, x_794); -lean_ctor_set(x_795, 1, x_753); -return x_795; +lean_object* x_754; lean_object* x_755; lean_object* x_756; lean_object* x_757; lean_object* x_758; lean_object* x_759; lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; lean_object* x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; lean_object* x_768; lean_object* x_769; lean_object* x_770; lean_object* x_771; lean_object* x_772; lean_object* x_773; lean_object* x_774; lean_object* x_775; lean_object* x_776; lean_object* x_777; lean_object* x_778; lean_object* x_779; lean_object* x_780; lean_object* x_781; lean_object* x_782; lean_object* x_783; lean_object* x_784; lean_object* x_785; lean_object* x_786; lean_object* x_787; lean_object* x_788; lean_object* x_789; lean_object* x_790; lean_object* x_791; lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; lean_object* x_796; lean_object* x_797; +x_754 = lean_ctor_get(x_710, 0); +x_755 = lean_ctor_get(x_710, 1); +lean_inc(x_755); +lean_inc(x_754); +lean_dec(x_710); +lean_inc(x_708); +lean_inc(x_754); +x_756 = l_Lean_addMacroScope(x_754, x_639, x_708); +x_757 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_757, 0, x_628); +lean_ctor_set(x_757, 1, x_641); +lean_ctor_set(x_757, 2, x_756); +lean_ctor_set(x_757, 3, x_527); +x_758 = lean_array_push(x_632, x_757); +x_759 = lean_array_push(x_758, x_634); +x_760 = lean_array_push(x_759, x_634); +x_761 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; +x_762 = lean_array_push(x_760, x_761); +x_763 = lean_array_push(x_762, x_16); +x_764 = l_Lean_Parser_Term_letIdDecl___closed__2; +x_765 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_765, 0, x_764); +lean_ctor_set(x_765, 1, x_763); +x_766 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; +x_767 = lean_array_push(x_766, x_765); +x_768 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; +x_769 = lean_array_push(x_767, x_768); +x_770 = lean_array_push(x_632, x_706); +x_771 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__15; +x_772 = lean_array_push(x_770, x_771); +x_773 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__18; +x_774 = l_Lean_addMacroScope(x_754, x_773, x_708); +x_775 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__17; +x_776 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__20; +x_777 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_777, 0, x_628); +lean_ctor_set(x_777, 1, x_775); +lean_ctor_set(x_777, 2, x_774); +lean_ctor_set(x_777, 3, x_776); +x_778 = lean_array_push(x_632, x_777); +x_779 = lean_array_push(x_778, x_634); +x_780 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_780, 0, x_636); +lean_ctor_set(x_780, 1, x_779); +x_781 = lean_array_push(x_772, x_780); +x_782 = l_Lean_Parser_Term_eq___elambda__1___closed__2; +x_783 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_783, 0, x_782); +lean_ctor_set(x_783, 1, x_781); +x_784 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__14; +x_785 = lean_array_push(x_784, x_783); +x_786 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__22; +x_787 = lean_array_push(x_785, x_786); +x_788 = lean_array_push(x_787, x_608); +x_789 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__24; +x_790 = lean_array_push(x_788, x_789); +x_791 = lean_array_push(x_790, x_618); +x_792 = l_Lean_Parser_Term_if___elambda__1___closed__2; +x_793 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_793, 0, x_792); +lean_ctor_set(x_793, 1, x_791); +x_794 = lean_array_push(x_769, x_793); +x_795 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_796 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_796, 0, x_795); +lean_ctor_set(x_796, 1, x_794); +x_797 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_797, 0, x_796); +lean_ctor_set(x_797, 1, x_755); +return x_797; } } else { -uint8_t x_796; +uint8_t x_798; +lean_dec(x_610); lean_dec(x_608); -lean_dec(x_606); -lean_dec(x_521); -lean_dec(x_17); -lean_dec(x_4); -x_796 = !lean_is_exclusive(x_615); -if (x_796 == 0) +lean_dec(x_522); +lean_dec(x_16); +lean_dec(x_3); +x_798 = !lean_is_exclusive(x_617); +if (x_798 == 0) { -return x_615; +return x_617; } else { -lean_object* x_797; lean_object* x_798; lean_object* x_799; -x_797 = lean_ctor_get(x_615, 0); -x_798 = lean_ctor_get(x_615, 1); -lean_inc(x_798); -lean_inc(x_797); -lean_dec(x_615); -x_799 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_799, 0, x_797); -lean_ctor_set(x_799, 1, x_798); -return x_799; +lean_object* x_799; lean_object* x_800; lean_object* x_801; +x_799 = lean_ctor_get(x_617, 0); +x_800 = lean_ctor_get(x_617, 1); +lean_inc(x_800); +lean_inc(x_799); +lean_dec(x_617); +x_801 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_801, 0, x_799); +lean_ctor_set(x_801, 1, x_800); +return x_801; } } } else { -lean_object* x_800; lean_object* x_801; lean_object* x_802; lean_object* x_803; lean_object* x_804; lean_object* x_805; lean_object* x_806; lean_object* x_807; lean_object* x_808; lean_object* x_809; -x_800 = lean_ctor_get(x_607, 0); -x_801 = lean_ctor_get(x_607, 1); -x_802 = lean_ctor_get(x_607, 2); -x_803 = lean_ctor_get(x_607, 3); -x_804 = lean_ctor_get(x_607, 4); -x_805 = lean_ctor_get(x_607, 5); +lean_object* x_802; lean_object* x_803; lean_object* x_804; lean_object* x_805; lean_object* x_806; lean_object* x_807; lean_object* x_808; lean_object* x_809; lean_object* x_810; lean_object* x_811; +x_802 = lean_ctor_get(x_609, 0); +x_803 = lean_ctor_get(x_609, 1); +x_804 = lean_ctor_get(x_609, 2); +x_805 = lean_ctor_get(x_609, 3); +x_806 = lean_ctor_get(x_609, 4); +x_807 = lean_ctor_get(x_609, 5); +lean_inc(x_807); +lean_inc(x_806); lean_inc(x_805); lean_inc(x_804); lean_inc(x_803); lean_inc(x_802); -lean_inc(x_801); -lean_inc(x_800); -lean_dec(x_607); -x_806 = lean_nat_add(x_805, x_534); -x_807 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_807, 0, x_800); -lean_ctor_set(x_807, 1, x_801); -lean_ctor_set(x_807, 2, x_802); -lean_ctor_set(x_807, 3, x_803); -lean_ctor_set(x_807, 4, x_804); -lean_ctor_set(x_807, 5, x_806); -x_808 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_808, 0, x_536); -lean_ctor_set(x_808, 1, x_537); -lean_ctor_set(x_808, 2, x_538); -lean_ctor_set(x_808, 3, x_539); -lean_ctor_set(x_808, 4, x_540); -lean_ctor_set(x_808, 5, x_541); -lean_ctor_set(x_808, 6, x_542); -lean_ctor_set(x_808, 7, x_543); -lean_ctor_set(x_808, 8, x_544); -lean_ctor_set(x_808, 9, x_805); -lean_ctor_set_uint8(x_808, sizeof(void*)*10, x_545); -lean_ctor_set_uint8(x_808, sizeof(void*)*10 + 1, x_546); -lean_ctor_set_uint8(x_808, sizeof(void*)*10 + 2, x_547); -x_809 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main(x_1, x_2, x_610, x_808, x_807); -if (lean_obj_tag(x_809) == 0) +lean_dec(x_609); +x_808 = lean_nat_add(x_807, x_535); +x_809 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_809, 0, x_802); +lean_ctor_set(x_809, 1, x_803); +lean_ctor_set(x_809, 2, x_804); +lean_ctor_set(x_809, 3, x_805); +lean_ctor_set(x_809, 4, x_806); +lean_ctor_set(x_809, 5, x_808); +x_810 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_810, 0, x_537); +lean_ctor_set(x_810, 1, x_538); +lean_ctor_set(x_810, 2, x_539); +lean_ctor_set(x_810, 3, x_540); +lean_ctor_set(x_810, 4, x_541); +lean_ctor_set(x_810, 5, x_542); +lean_ctor_set(x_810, 6, x_543); +lean_ctor_set(x_810, 7, x_544); +lean_ctor_set(x_810, 8, x_545); +lean_ctor_set(x_810, 9, x_807); +lean_ctor_set(x_810, 10, x_549); +lean_ctor_set_uint8(x_810, sizeof(void*)*11, x_546); +lean_ctor_set_uint8(x_810, sizeof(void*)*11 + 1, x_547); +lean_ctor_set_uint8(x_810, sizeof(void*)*11 + 2, x_548); +x_811 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main(x_1, x_612, x_810, x_809); +if (lean_obj_tag(x_811) == 0) { -lean_object* x_810; lean_object* x_811; lean_object* x_812; lean_object* x_813; lean_object* x_814; lean_object* x_815; lean_object* x_816; lean_object* x_817; lean_object* x_818; lean_object* x_819; lean_object* x_820; lean_object* x_821; lean_object* x_822; lean_object* x_823; lean_object* x_824; lean_object* x_825; lean_object* x_826; lean_object* x_827; lean_object* x_828; lean_object* x_829; lean_object* x_830; lean_object* x_831; lean_object* x_832; lean_object* x_833; lean_object* x_834; lean_object* x_835; lean_object* x_836; lean_object* x_837; lean_object* x_838; lean_object* x_839; lean_object* x_840; lean_object* x_841; lean_object* x_842; lean_object* x_843; lean_object* x_844; lean_object* x_845; lean_object* x_846; lean_object* x_847; lean_object* x_848; lean_object* x_849; lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; lean_object* x_854; lean_object* x_855; lean_object* x_856; lean_object* x_857; lean_object* x_858; lean_object* x_859; lean_object* x_860; lean_object* x_861; lean_object* x_862; lean_object* x_863; lean_object* x_864; lean_object* x_865; lean_object* x_866; lean_object* x_867; lean_object* x_868; lean_object* x_869; lean_object* x_870; lean_object* x_871; lean_object* x_872; lean_object* x_873; lean_object* x_874; lean_object* x_875; lean_object* x_876; lean_object* x_877; lean_object* x_878; lean_object* x_879; lean_object* x_880; lean_object* x_881; lean_object* x_882; lean_object* x_883; lean_object* x_884; lean_object* x_885; lean_object* x_886; lean_object* x_887; lean_object* x_888; lean_object* x_889; lean_object* x_890; lean_object* x_891; lean_object* x_892; lean_object* x_893; lean_object* x_894; lean_object* x_895; lean_object* x_896; lean_object* x_897; lean_object* x_898; lean_object* x_899; lean_object* x_900; lean_object* x_901; lean_object* x_902; lean_object* x_903; lean_object* x_904; lean_object* x_905; lean_object* x_906; lean_object* x_907; lean_object* x_908; lean_object* x_909; lean_object* x_910; lean_object* x_911; lean_object* x_912; lean_object* x_913; lean_object* x_914; lean_object* x_915; lean_object* x_916; lean_object* x_917; lean_object* x_918; lean_object* x_919; lean_object* x_920; lean_object* x_921; lean_object* x_922; lean_object* x_923; lean_object* x_924; lean_object* x_925; lean_object* x_926; lean_object* x_927; lean_object* x_928; lean_object* x_929; lean_object* x_930; lean_object* x_931; lean_object* x_932; lean_object* x_933; lean_object* x_934; lean_object* x_935; lean_object* x_936; lean_object* x_937; lean_object* x_938; lean_object* x_939; lean_object* x_940; lean_object* x_941; lean_object* x_942; lean_object* x_943; lean_object* x_944; lean_object* x_945; lean_object* x_946; lean_object* x_947; -x_810 = lean_ctor_get(x_809, 0); -lean_inc(x_810); -x_811 = lean_ctor_get(x_809, 1); -lean_inc(x_811); -lean_dec(x_809); -x_812 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_811); -x_813 = lean_ctor_get(x_812, 0); +lean_object* x_812; lean_object* x_813; lean_object* x_814; lean_object* x_815; lean_object* x_816; lean_object* x_817; lean_object* x_818; lean_object* x_819; lean_object* x_820; lean_object* x_821; lean_object* x_822; lean_object* x_823; lean_object* x_824; lean_object* x_825; lean_object* x_826; lean_object* x_827; lean_object* x_828; lean_object* x_829; lean_object* x_830; lean_object* x_831; lean_object* x_832; lean_object* x_833; lean_object* x_834; lean_object* x_835; lean_object* x_836; lean_object* x_837; lean_object* x_838; lean_object* x_839; lean_object* x_840; lean_object* x_841; lean_object* x_842; lean_object* x_843; lean_object* x_844; lean_object* x_845; lean_object* x_846; lean_object* x_847; lean_object* x_848; lean_object* x_849; lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; lean_object* x_854; lean_object* x_855; lean_object* x_856; lean_object* x_857; lean_object* x_858; lean_object* x_859; lean_object* x_860; lean_object* x_861; lean_object* x_862; lean_object* x_863; lean_object* x_864; lean_object* x_865; lean_object* x_866; lean_object* x_867; lean_object* x_868; lean_object* x_869; lean_object* x_870; lean_object* x_871; lean_object* x_872; lean_object* x_873; lean_object* x_874; lean_object* x_875; lean_object* x_876; lean_object* x_877; lean_object* x_878; lean_object* x_879; lean_object* x_880; lean_object* x_881; lean_object* x_882; lean_object* x_883; lean_object* x_884; lean_object* x_885; lean_object* x_886; lean_object* x_887; lean_object* x_888; lean_object* x_889; lean_object* x_890; lean_object* x_891; lean_object* x_892; lean_object* x_893; lean_object* x_894; lean_object* x_895; lean_object* x_896; lean_object* x_897; lean_object* x_898; lean_object* x_899; lean_object* x_900; lean_object* x_901; lean_object* x_902; lean_object* x_903; lean_object* x_904; lean_object* x_905; lean_object* x_906; lean_object* x_907; lean_object* x_908; lean_object* x_909; lean_object* x_910; lean_object* x_911; lean_object* x_912; lean_object* x_913; lean_object* x_914; lean_object* x_915; lean_object* x_916; lean_object* x_917; lean_object* x_918; lean_object* x_919; lean_object* x_920; lean_object* x_921; lean_object* x_922; lean_object* x_923; lean_object* x_924; lean_object* x_925; lean_object* x_926; lean_object* x_927; lean_object* x_928; lean_object* x_929; lean_object* x_930; lean_object* x_931; lean_object* x_932; lean_object* x_933; lean_object* x_934; lean_object* x_935; lean_object* x_936; lean_object* x_937; lean_object* x_938; lean_object* x_939; lean_object* x_940; lean_object* x_941; lean_object* x_942; lean_object* x_943; lean_object* x_944; lean_object* x_945; lean_object* x_946; lean_object* x_947; lean_object* x_948; lean_object* x_949; +x_812 = lean_ctor_get(x_811, 0); +lean_inc(x_812); +x_813 = lean_ctor_get(x_811, 1); lean_inc(x_813); -x_814 = lean_ctor_get(x_812, 1); -lean_inc(x_814); -lean_dec(x_812); -x_815 = l_Lean_Elab_Term_getMainModule___rarg(x_814); -x_816 = lean_ctor_get(x_815, 0); +lean_dec(x_811); +x_814 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_813); +x_815 = lean_ctor_get(x_814, 0); +lean_inc(x_815); +x_816 = lean_ctor_get(x_814, 1); lean_inc(x_816); -x_817 = lean_ctor_get(x_815, 1); -lean_inc(x_817); -lean_dec(x_815); -x_818 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__8; -lean_inc(x_813); -lean_inc(x_816); -x_819 = l_Lean_addMacroScope(x_816, x_818, x_813); -x_820 = l_Lean_SourceInfo_inhabited___closed__1; -x_821 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__6; -x_822 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__11; -x_823 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_823, 0, x_820); -lean_ctor_set(x_823, 1, x_821); -lean_ctor_set(x_823, 2, x_819); -lean_ctor_set(x_823, 3, x_822); -x_824 = l_Array_empty___closed__1; -x_825 = lean_array_push(x_824, x_823); -x_826 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; -x_827 = lean_array_push(x_825, x_826); -x_828 = l_Lean_mkTermIdFromIdent___closed__2; -x_829 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_829, 0, x_828); -lean_ctor_set(x_829, 1, x_827); -x_830 = lean_array_push(x_824, x_829); -x_831 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__8; -lean_inc(x_813); -lean_inc(x_816); -x_832 = l_Lean_addMacroScope(x_816, x_831, x_813); -x_833 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__7; -x_834 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_834, 0, x_820); -lean_ctor_set(x_834, 1, x_833); -lean_ctor_set(x_834, 2, x_832); -lean_ctor_set(x_834, 3, x_526); -x_835 = lean_array_push(x_824, x_834); -x_836 = lean_array_push(x_835, x_826); -x_837 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_837, 0, x_828); -lean_ctor_set(x_837, 1, x_836); -x_838 = lean_array_push(x_824, x_837); -x_839 = l___private_Lean_Syntax_7__quoteName___main(x_608); -lean_inc(x_838); -x_840 = lean_array_push(x_838, x_839); -x_841 = l_Lean_nullKind___closed__2; -x_842 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_842, 0, x_841); -lean_ctor_set(x_842, 1, x_840); -x_843 = lean_array_push(x_830, x_842); -x_844 = l_Lean_mkAppStx___closed__8; -x_845 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_845, 0, x_844); -lean_ctor_set(x_845, 1, x_843); -x_846 = lean_array_push(x_824, x_845); -x_847 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__26; -x_848 = lean_array_push(x_846, x_847); -x_849 = l_Lean_Meta_caseArraySizes___closed__2; -lean_inc(x_813); -lean_inc(x_816); -x_850 = l_Lean_addMacroScope(x_816, x_849, x_813); -x_851 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__29; -x_852 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__31; -x_853 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_853, 0, x_820); -lean_ctor_set(x_853, 1, x_851); -lean_ctor_set(x_853, 2, x_850); -lean_ctor_set(x_853, 3, x_852); -x_854 = lean_array_push(x_824, x_853); -x_855 = lean_array_push(x_854, x_826); -x_856 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_856, 0, x_828); -lean_ctor_set(x_856, 1, x_855); -x_857 = lean_array_push(x_824, x_856); -x_858 = l___private_Lean_Elab_Quotation_4__getHeadInfo___lambda__2___closed__5; -x_859 = l_Lean_addMacroScope(x_816, x_858, x_813); -x_860 = l___private_Lean_Elab_Quotation_4__getHeadInfo___lambda__2___closed__3; -x_861 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__34; -x_862 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_862, 0, x_820); -lean_ctor_set(x_862, 1, x_860); -lean_ctor_set(x_862, 2, x_859); -lean_ctor_set(x_862, 3, x_861); -x_863 = lean_array_push(x_824, x_862); -x_864 = lean_array_push(x_863, x_826); -x_865 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_865, 0, x_828); -lean_ctor_set(x_865, 1, x_864); -x_866 = lean_array_push(x_824, x_865); +lean_dec(x_814); +x_817 = l_Lean_Elab_Term_getMainModule___rarg(x_816); +x_818 = lean_ctor_get(x_817, 0); +lean_inc(x_818); +x_819 = lean_ctor_get(x_817, 1); +lean_inc(x_819); +lean_dec(x_817); +x_820 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__8; +lean_inc(x_815); +lean_inc(x_818); +x_821 = l_Lean_addMacroScope(x_818, x_820, x_815); +x_822 = l_Lean_SourceInfo_inhabited___closed__1; +x_823 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__6; +x_824 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__11; +x_825 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_825, 0, x_822); +lean_ctor_set(x_825, 1, x_823); +lean_ctor_set(x_825, 2, x_821); +lean_ctor_set(x_825, 3, x_824); +x_826 = l_Array_empty___closed__1; +x_827 = lean_array_push(x_826, x_825); +x_828 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; +x_829 = lean_array_push(x_827, x_828); +x_830 = l_Lean_mkTermIdFromIdent___closed__2; +x_831 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_831, 0, x_830); +lean_ctor_set(x_831, 1, x_829); +x_832 = lean_array_push(x_826, x_831); +x_833 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__8; +lean_inc(x_815); +lean_inc(x_818); +x_834 = l_Lean_addMacroScope(x_818, x_833, x_815); +x_835 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__7; +x_836 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_836, 0, x_822); +lean_ctor_set(x_836, 1, x_835); +lean_ctor_set(x_836, 2, x_834); +lean_ctor_set(x_836, 3, x_527); +x_837 = lean_array_push(x_826, x_836); +x_838 = lean_array_push(x_837, x_828); +x_839 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_839, 0, x_830); +lean_ctor_set(x_839, 1, x_838); +x_840 = lean_array_push(x_826, x_839); +x_841 = l___private_Lean_Syntax_7__quoteName___main(x_610); +lean_inc(x_840); +x_842 = lean_array_push(x_840, x_841); +x_843 = l_Lean_nullKind___closed__2; +x_844 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_844, 0, x_843); +lean_ctor_set(x_844, 1, x_842); +x_845 = lean_array_push(x_832, x_844); +x_846 = l_Lean_mkAppStx___closed__8; +x_847 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_847, 0, x_846); +lean_ctor_set(x_847, 1, x_845); +x_848 = lean_array_push(x_826, x_847); +x_849 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__26; +x_850 = lean_array_push(x_848, x_849); +x_851 = l_Lean_Meta_caseArraySizes___closed__2; +lean_inc(x_815); +lean_inc(x_818); +x_852 = l_Lean_addMacroScope(x_818, x_851, x_815); +x_853 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__29; +x_854 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__31; +x_855 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_855, 0, x_822); +lean_ctor_set(x_855, 1, x_853); +lean_ctor_set(x_855, 2, x_852); +lean_ctor_set(x_855, 3, x_854); +x_856 = lean_array_push(x_826, x_855); +x_857 = lean_array_push(x_856, x_828); +x_858 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_858, 0, x_830); +lean_ctor_set(x_858, 1, x_857); +x_859 = lean_array_push(x_826, x_858); +x_860 = l___private_Lean_Elab_Quotation_4__getHeadInfo___lambda__2___closed__5; +x_861 = l_Lean_addMacroScope(x_818, x_860, x_815); +x_862 = l___private_Lean_Elab_Quotation_4__getHeadInfo___lambda__2___closed__3; +x_863 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__34; +x_864 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_864, 0, x_822); +lean_ctor_set(x_864, 1, x_862); +lean_ctor_set(x_864, 2, x_861); +lean_ctor_set(x_864, 3, x_863); +x_865 = lean_array_push(x_826, x_864); +x_866 = lean_array_push(x_865, x_828); x_867 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_867, 0, x_841); -lean_ctor_set(x_867, 1, x_838); -x_868 = lean_array_push(x_866, x_867); +lean_ctor_set(x_867, 0, x_830); +lean_ctor_set(x_867, 1, x_866); +x_868 = lean_array_push(x_826, x_867); x_869 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_869, 0, x_844); -lean_ctor_set(x_869, 1, x_868); -x_870 = lean_array_push(x_824, x_869); -x_871 = lean_array_push(x_870, x_826); -x_872 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_872, 0, x_841); -lean_ctor_set(x_872, 1, x_871); -x_873 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__4; -x_874 = lean_array_push(x_873, x_872); -x_875 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__6; -x_876 = lean_array_push(x_874, x_875); -x_877 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__2; -x_878 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_878, 0, x_877); -lean_ctor_set(x_878, 1, x_876); -x_879 = lean_array_push(x_824, x_878); +lean_ctor_set(x_869, 0, x_843); +lean_ctor_set(x_869, 1, x_840); +x_870 = lean_array_push(x_868, x_869); +x_871 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_871, 0, x_846); +lean_ctor_set(x_871, 1, x_870); +x_872 = lean_array_push(x_826, x_871); +x_873 = lean_array_push(x_872, x_828); +x_874 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_874, 0, x_843); +lean_ctor_set(x_874, 1, x_873); +x_875 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__4; +x_876 = lean_array_push(x_875, x_874); +x_877 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__6; +x_878 = lean_array_push(x_876, x_877); +x_879 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__2; x_880 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_880, 0, x_841); -lean_ctor_set(x_880, 1, x_879); -x_881 = lean_array_push(x_857, x_880); +lean_ctor_set(x_880, 0, x_879); +lean_ctor_set(x_880, 1, x_878); +x_881 = lean_array_push(x_826, x_880); x_882 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_882, 0, x_844); +lean_ctor_set(x_882, 0, x_843); lean_ctor_set(x_882, 1, x_881); -x_883 = lean_array_push(x_824, x_882); -x_884 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__36; -x_885 = lean_array_push(x_883, x_884); -x_886 = l_Nat_repr(x_521); -x_887 = l_Lean_numLitKind; -x_888 = l_Lean_mkStxLit(x_887, x_886, x_820); -x_889 = l_Lean_mkOptionalNode___closed__2; -x_890 = lean_array_push(x_889, x_888); -x_891 = l_Lean_Nat_HasQuote___closed__2; -x_892 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_892, 0, x_891); -lean_ctor_set(x_892, 1, x_890); -x_893 = lean_array_push(x_885, x_892); -x_894 = l_Lean_Parser_Term_beq___elambda__1___closed__1; -x_895 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_895, 0, x_894); -lean_ctor_set(x_895, 1, x_893); -x_896 = lean_array_push(x_848, x_895); -x_897 = l_Lean_Parser_Term_band___elambda__1___closed__2; -x_898 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_898, 0, x_897); -lean_ctor_set(x_898, 1, x_896); -x_899 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_817); -lean_dec(x_4); -x_900 = lean_ctor_get(x_899, 0); -lean_inc(x_900); -x_901 = lean_ctor_get(x_899, 1); -lean_inc(x_901); -lean_dec(x_899); -x_902 = l_Lean_Elab_Term_getMainModule___rarg(x_901); -x_903 = lean_ctor_get(x_902, 0); +x_883 = lean_array_push(x_859, x_882); +x_884 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_884, 0, x_846); +lean_ctor_set(x_884, 1, x_883); +x_885 = lean_array_push(x_826, x_884); +x_886 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__36; +x_887 = lean_array_push(x_885, x_886); +x_888 = l_Nat_repr(x_522); +x_889 = l_Lean_numLitKind; +x_890 = l_Lean_mkStxLit(x_889, x_888, x_822); +x_891 = l_Lean_mkOptionalNode___closed__2; +x_892 = lean_array_push(x_891, x_890); +x_893 = l_Lean_Nat_HasQuote___closed__2; +x_894 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_894, 0, x_893); +lean_ctor_set(x_894, 1, x_892); +x_895 = lean_array_push(x_887, x_894); +x_896 = l_Lean_Parser_Term_beq___elambda__1___closed__1; +x_897 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_897, 0, x_896); +lean_ctor_set(x_897, 1, x_895); +x_898 = lean_array_push(x_850, x_897); +x_899 = l_Lean_Parser_Term_band___elambda__1___closed__2; +x_900 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_900, 0, x_899); +lean_ctor_set(x_900, 1, x_898); +x_901 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_819); +lean_dec(x_3); +x_902 = lean_ctor_get(x_901, 0); +lean_inc(x_902); +x_903 = lean_ctor_get(x_901, 1); lean_inc(x_903); -x_904 = lean_ctor_get(x_902, 1); -lean_inc(x_904); -if (lean_is_exclusive(x_902)) { - lean_ctor_release(x_902, 0); - lean_ctor_release(x_902, 1); - x_905 = x_902; +lean_dec(x_901); +x_904 = l_Lean_Elab_Term_getMainModule___rarg(x_903); +x_905 = lean_ctor_get(x_904, 0); +lean_inc(x_905); +x_906 = lean_ctor_get(x_904, 1); +lean_inc(x_906); +if (lean_is_exclusive(x_904)) { + lean_ctor_release(x_904, 0); + lean_ctor_release(x_904, 1); + x_907 = x_904; } else { - lean_dec_ref(x_902); - x_905 = lean_box(0); + lean_dec_ref(x_904); + x_907 = lean_box(0); } -lean_inc(x_900); -lean_inc(x_903); -x_906 = l_Lean_addMacroScope(x_903, x_831, x_900); -x_907 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_907, 0, x_820); -lean_ctor_set(x_907, 1, x_833); -lean_ctor_set(x_907, 2, x_906); -lean_ctor_set(x_907, 3, x_526); -x_908 = lean_array_push(x_824, x_907); -x_909 = lean_array_push(x_908, x_826); -x_910 = lean_array_push(x_909, x_826); -x_911 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; -x_912 = lean_array_push(x_910, x_911); -x_913 = lean_array_push(x_912, x_17); -x_914 = l_Lean_Parser_Term_letIdDecl___closed__2; -x_915 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_915, 0, x_914); -lean_ctor_set(x_915, 1, x_913); -x_916 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; -x_917 = lean_array_push(x_916, x_915); -x_918 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; -x_919 = lean_array_push(x_917, x_918); -x_920 = lean_array_push(x_824, x_898); -x_921 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__15; -x_922 = lean_array_push(x_920, x_921); -x_923 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__18; -x_924 = l_Lean_addMacroScope(x_903, x_923, x_900); -x_925 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__17; -x_926 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__20; -x_927 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_927, 0, x_820); -lean_ctor_set(x_927, 1, x_925); -lean_ctor_set(x_927, 2, x_924); -lean_ctor_set(x_927, 3, x_926); -x_928 = lean_array_push(x_824, x_927); -x_929 = lean_array_push(x_928, x_826); -x_930 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_930, 0, x_828); -lean_ctor_set(x_930, 1, x_929); -x_931 = lean_array_push(x_922, x_930); -x_932 = l_Lean_Parser_Term_eq___elambda__1___closed__2; -x_933 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_933, 0, x_932); -lean_ctor_set(x_933, 1, x_931); -x_934 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__14; -x_935 = lean_array_push(x_934, x_933); -x_936 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__22; -x_937 = lean_array_push(x_935, x_936); -x_938 = lean_array_push(x_937, x_606); -x_939 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__24; -x_940 = lean_array_push(x_938, x_939); -x_941 = lean_array_push(x_940, x_810); -x_942 = l_Lean_Parser_Term_if___elambda__1___closed__2; -x_943 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_943, 0, x_942); -lean_ctor_set(x_943, 1, x_941); -x_944 = lean_array_push(x_919, x_943); -x_945 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_946 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_946, 0, x_945); -lean_ctor_set(x_946, 1, x_944); -if (lean_is_scalar(x_905)) { - x_947 = lean_alloc_ctor(0, 2, 0); +lean_inc(x_902); +lean_inc(x_905); +x_908 = l_Lean_addMacroScope(x_905, x_833, x_902); +x_909 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_909, 0, x_822); +lean_ctor_set(x_909, 1, x_835); +lean_ctor_set(x_909, 2, x_908); +lean_ctor_set(x_909, 3, x_527); +x_910 = lean_array_push(x_826, x_909); +x_911 = lean_array_push(x_910, x_828); +x_912 = lean_array_push(x_911, x_828); +x_913 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; +x_914 = lean_array_push(x_912, x_913); +x_915 = lean_array_push(x_914, x_16); +x_916 = l_Lean_Parser_Term_letIdDecl___closed__2; +x_917 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_917, 0, x_916); +lean_ctor_set(x_917, 1, x_915); +x_918 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; +x_919 = lean_array_push(x_918, x_917); +x_920 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; +x_921 = lean_array_push(x_919, x_920); +x_922 = lean_array_push(x_826, x_900); +x_923 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__15; +x_924 = lean_array_push(x_922, x_923); +x_925 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__18; +x_926 = l_Lean_addMacroScope(x_905, x_925, x_902); +x_927 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__17; +x_928 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__20; +x_929 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_929, 0, x_822); +lean_ctor_set(x_929, 1, x_927); +lean_ctor_set(x_929, 2, x_926); +lean_ctor_set(x_929, 3, x_928); +x_930 = lean_array_push(x_826, x_929); +x_931 = lean_array_push(x_930, x_828); +x_932 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_932, 0, x_830); +lean_ctor_set(x_932, 1, x_931); +x_933 = lean_array_push(x_924, x_932); +x_934 = l_Lean_Parser_Term_eq___elambda__1___closed__2; +x_935 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_935, 0, x_934); +lean_ctor_set(x_935, 1, x_933); +x_936 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__14; +x_937 = lean_array_push(x_936, x_935); +x_938 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__22; +x_939 = lean_array_push(x_937, x_938); +x_940 = lean_array_push(x_939, x_608); +x_941 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__24; +x_942 = lean_array_push(x_940, x_941); +x_943 = lean_array_push(x_942, x_812); +x_944 = l_Lean_Parser_Term_if___elambda__1___closed__2; +x_945 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_945, 0, x_944); +lean_ctor_set(x_945, 1, x_943); +x_946 = lean_array_push(x_921, x_945); +x_947 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_948 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_948, 0, x_947); +lean_ctor_set(x_948, 1, x_946); +if (lean_is_scalar(x_907)) { + x_949 = lean_alloc_ctor(0, 2, 0); } else { - x_947 = x_905; + x_949 = x_907; } -lean_ctor_set(x_947, 0, x_946); -lean_ctor_set(x_947, 1, x_904); -return x_947; +lean_ctor_set(x_949, 0, x_948); +lean_ctor_set(x_949, 1, x_906); +return x_949; } else { -lean_object* x_948; lean_object* x_949; lean_object* x_950; lean_object* x_951; +lean_object* x_950; lean_object* x_951; lean_object* x_952; lean_object* x_953; +lean_dec(x_610); lean_dec(x_608); -lean_dec(x_606); -lean_dec(x_521); -lean_dec(x_17); -lean_dec(x_4); -x_948 = lean_ctor_get(x_809, 0); -lean_inc(x_948); -x_949 = lean_ctor_get(x_809, 1); -lean_inc(x_949); -if (lean_is_exclusive(x_809)) { - lean_ctor_release(x_809, 0); - lean_ctor_release(x_809, 1); - x_950 = x_809; +lean_dec(x_522); +lean_dec(x_16); +lean_dec(x_3); +x_950 = lean_ctor_get(x_811, 0); +lean_inc(x_950); +x_951 = lean_ctor_get(x_811, 1); +lean_inc(x_951); +if (lean_is_exclusive(x_811)) { + lean_ctor_release(x_811, 0); + lean_ctor_release(x_811, 1); + x_952 = x_811; } else { - lean_dec_ref(x_809); - x_950 = lean_box(0); + lean_dec_ref(x_811); + x_952 = lean_box(0); } -if (lean_is_scalar(x_950)) { - x_951 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_952)) { + x_953 = lean_alloc_ctor(1, 2, 0); } else { - x_951 = x_950; + x_953 = x_952; } -lean_ctor_set(x_951, 0, x_948); -lean_ctor_set(x_951, 1, x_949); -return x_951; +lean_ctor_set(x_953, 0, x_950); +lean_ctor_set(x_953, 1, x_951); +return x_953; } } } } else { -uint8_t x_952; +uint8_t x_954; +lean_dec(x_549); +lean_dec(x_545); lean_dec(x_544); lean_dec(x_543); lean_dec(x_542); @@ -9861,111 +9884,117 @@ lean_dec(x_540); lean_dec(x_539); lean_dec(x_538); lean_dec(x_537); -lean_dec(x_536); -lean_dec(x_521); -lean_dec(x_25); -lean_dec(x_21); -lean_dec(x_17); -lean_dec(x_4); -lean_dec(x_2); -x_952 = !lean_is_exclusive(x_549); -if (x_952 == 0) +lean_dec(x_522); +lean_dec(x_24); +lean_dec(x_20); +lean_dec(x_16); +lean_dec(x_3); +lean_dec(x_1); +x_954 = !lean_is_exclusive(x_551); +if (x_954 == 0) { -return x_549; +return x_551; } else { -lean_object* x_953; lean_object* x_954; lean_object* x_955; -x_953 = lean_ctor_get(x_549, 0); -x_954 = lean_ctor_get(x_549, 1); -lean_inc(x_954); -lean_inc(x_953); -lean_dec(x_549); -x_955 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_955, 0, x_953); -lean_ctor_set(x_955, 1, x_954); -return x_955; +lean_object* x_955; lean_object* x_956; lean_object* x_957; +x_955 = lean_ctor_get(x_551, 0); +x_956 = lean_ctor_get(x_551, 1); +lean_inc(x_956); +lean_inc(x_955); +lean_dec(x_551); +x_957 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_957, 0, x_955); +lean_ctor_set(x_957, 1, x_956); +return x_957; } } } else { -lean_object* x_956; lean_object* x_957; lean_object* x_958; lean_object* x_959; lean_object* x_960; lean_object* x_961; lean_object* x_962; lean_object* x_963; lean_object* x_964; lean_object* x_965; lean_object* x_966; lean_object* x_967; lean_object* x_968; lean_object* x_969; lean_object* x_970; lean_object* x_971; lean_object* x_972; lean_object* x_973; uint8_t x_974; uint8_t x_975; uint8_t x_976; lean_object* x_977; lean_object* x_978; -x_956 = lean_ctor_get(x_530, 0); -x_957 = lean_ctor_get(x_530, 1); -x_958 = lean_ctor_get(x_530, 2); -x_959 = lean_ctor_get(x_530, 3); -x_960 = lean_ctor_get(x_530, 4); -x_961 = lean_ctor_get(x_530, 5); +lean_object* x_958; lean_object* x_959; lean_object* x_960; lean_object* x_961; lean_object* x_962; lean_object* x_963; lean_object* x_964; lean_object* x_965; lean_object* x_966; lean_object* x_967; lean_object* x_968; lean_object* x_969; lean_object* x_970; lean_object* x_971; lean_object* x_972; lean_object* x_973; lean_object* x_974; lean_object* x_975; uint8_t x_976; uint8_t x_977; uint8_t x_978; lean_object* x_979; lean_object* x_980; lean_object* x_981; +x_958 = lean_ctor_get(x_531, 0); +x_959 = lean_ctor_get(x_531, 1); +x_960 = lean_ctor_get(x_531, 2); +x_961 = lean_ctor_get(x_531, 3); +x_962 = lean_ctor_get(x_531, 4); +x_963 = lean_ctor_get(x_531, 5); +lean_inc(x_963); +lean_inc(x_962); lean_inc(x_961); lean_inc(x_960); lean_inc(x_959); lean_inc(x_958); -lean_inc(x_957); -lean_inc(x_956); -lean_dec(x_530); -x_962 = lean_unsigned_to_nat(1u); -x_963 = lean_nat_add(x_961, x_962); -x_964 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_964, 0, x_956); -lean_ctor_set(x_964, 1, x_957); -lean_ctor_set(x_964, 2, x_958); -lean_ctor_set(x_964, 3, x_959); -lean_ctor_set(x_964, 4, x_960); -lean_ctor_set(x_964, 5, x_963); -x_965 = lean_ctor_get(x_4, 0); -lean_inc(x_965); -x_966 = lean_ctor_get(x_4, 1); -lean_inc(x_966); -x_967 = lean_ctor_get(x_4, 2); +lean_dec(x_531); +x_964 = lean_unsigned_to_nat(1u); +x_965 = lean_nat_add(x_963, x_964); +x_966 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_966, 0, x_958); +lean_ctor_set(x_966, 1, x_959); +lean_ctor_set(x_966, 2, x_960); +lean_ctor_set(x_966, 3, x_961); +lean_ctor_set(x_966, 4, x_962); +lean_ctor_set(x_966, 5, x_965); +x_967 = lean_ctor_get(x_3, 0); lean_inc(x_967); -x_968 = lean_ctor_get(x_4, 3); +x_968 = lean_ctor_get(x_3, 1); lean_inc(x_968); -x_969 = lean_ctor_get(x_4, 4); +x_969 = lean_ctor_get(x_3, 2); lean_inc(x_969); -x_970 = lean_ctor_get(x_4, 5); +x_970 = lean_ctor_get(x_3, 3); lean_inc(x_970); -x_971 = lean_ctor_get(x_4, 6); +x_971 = lean_ctor_get(x_3, 4); lean_inc(x_971); -x_972 = lean_ctor_get(x_4, 7); +x_972 = lean_ctor_get(x_3, 5); lean_inc(x_972); -x_973 = lean_ctor_get(x_4, 8); +x_973 = lean_ctor_get(x_3, 6); lean_inc(x_973); -x_974 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); -x_975 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); -x_976 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 2); -lean_inc(x_973); -lean_inc(x_972); -lean_inc(x_971); -lean_inc(x_970); -lean_inc(x_969); -lean_inc(x_968); -lean_inc(x_967); -lean_inc(x_966); -lean_inc(x_965); -x_977 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_977, 0, x_965); -lean_ctor_set(x_977, 1, x_966); -lean_ctor_set(x_977, 2, x_967); -lean_ctor_set(x_977, 3, x_968); -lean_ctor_set(x_977, 4, x_969); -lean_ctor_set(x_977, 5, x_970); -lean_ctor_set(x_977, 6, x_971); -lean_ctor_set(x_977, 7, x_972); -lean_ctor_set(x_977, 8, x_973); -lean_ctor_set(x_977, 9, x_961); -lean_ctor_set_uint8(x_977, sizeof(void*)*10, x_974); -lean_ctor_set_uint8(x_977, sizeof(void*)*10 + 1, x_975); -lean_ctor_set_uint8(x_977, sizeof(void*)*10 + 2, x_976); -x_978 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main(x_1, x_531, x_529, x_977, x_964); -if (lean_obj_tag(x_978) == 0) -{ -lean_object* x_979; -x_979 = lean_ctor_get(x_25, 0); +x_974 = lean_ctor_get(x_3, 7); +lean_inc(x_974); +x_975 = lean_ctor_get(x_3, 8); +lean_inc(x_975); +x_976 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_977 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_978 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +x_979 = lean_ctor_get(x_3, 10); lean_inc(x_979); -if (lean_obj_tag(x_979) == 0) +lean_inc(x_979); +lean_inc(x_975); +lean_inc(x_974); +lean_inc(x_973); +lean_inc(x_972); +lean_inc(x_971); +lean_inc(x_970); +lean_inc(x_969); +lean_inc(x_968); +lean_inc(x_967); +x_980 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_980, 0, x_967); +lean_ctor_set(x_980, 1, x_968); +lean_ctor_set(x_980, 2, x_969); +lean_ctor_set(x_980, 3, x_970); +lean_ctor_set(x_980, 4, x_971); +lean_ctor_set(x_980, 5, x_972); +lean_ctor_set(x_980, 6, x_973); +lean_ctor_set(x_980, 7, x_974); +lean_ctor_set(x_980, 8, x_975); +lean_ctor_set(x_980, 9, x_963); +lean_ctor_set(x_980, 10, x_979); +lean_ctor_set_uint8(x_980, sizeof(void*)*11, x_976); +lean_ctor_set_uint8(x_980, sizeof(void*)*11 + 1, x_977); +lean_ctor_set_uint8(x_980, sizeof(void*)*11 + 2, x_978); +x_981 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main(x_532, x_530, x_980, x_966); +if (lean_obj_tag(x_981) == 0) { -lean_object* x_980; lean_object* x_981; lean_object* x_982; lean_object* x_983; lean_object* x_984; lean_object* x_985; lean_object* x_986; lean_object* x_987; lean_object* x_988; lean_object* x_989; lean_object* x_990; lean_object* x_991; lean_object* x_992; lean_object* x_993; lean_object* x_994; lean_object* x_995; lean_object* x_996; lean_object* x_997; lean_object* x_998; lean_object* x_999; lean_object* x_1000; lean_object* x_1001; lean_object* x_1002; lean_object* x_1003; lean_object* x_1004; lean_object* x_1005; lean_object* x_1006; lean_object* x_1007; lean_object* x_1008; lean_object* x_1009; lean_object* x_1010; lean_object* x_1011; +lean_object* x_982; +x_982 = lean_ctor_get(x_24, 0); +lean_inc(x_982); +if (lean_obj_tag(x_982) == 0) +{ +lean_object* x_983; lean_object* x_984; lean_object* x_985; lean_object* x_986; lean_object* x_987; lean_object* x_988; lean_object* x_989; lean_object* x_990; lean_object* x_991; lean_object* x_992; lean_object* x_993; lean_object* x_994; lean_object* x_995; lean_object* x_996; lean_object* x_997; lean_object* x_998; lean_object* x_999; lean_object* x_1000; lean_object* x_1001; lean_object* x_1002; lean_object* x_1003; lean_object* x_1004; lean_object* x_1005; lean_object* x_1006; lean_object* x_1007; lean_object* x_1008; lean_object* x_1009; lean_object* x_1010; lean_object* x_1011; lean_object* x_1012; lean_object* x_1013; lean_object* x_1014; +lean_dec(x_979); +lean_dec(x_975); +lean_dec(x_974); lean_dec(x_973); lean_dec(x_972); lean_dec(x_971); @@ -9973,419 +10002,421 @@ lean_dec(x_970); lean_dec(x_969); lean_dec(x_968); lean_dec(x_967); -lean_dec(x_966); -lean_dec(x_965); -lean_dec(x_521); -lean_dec(x_25); -lean_dec(x_21); -lean_dec(x_2); -x_980 = lean_ctor_get(x_978, 0); -lean_inc(x_980); -x_981 = lean_ctor_get(x_978, 1); -lean_inc(x_981); -lean_dec(x_978); -x_982 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_981); -lean_dec(x_4); -x_983 = lean_ctor_get(x_982, 0); +lean_dec(x_522); +lean_dec(x_24); +lean_dec(x_20); +lean_dec(x_1); +x_983 = lean_ctor_get(x_981, 0); lean_inc(x_983); -x_984 = lean_ctor_get(x_982, 1); +x_984 = lean_ctor_get(x_981, 1); lean_inc(x_984); -lean_dec(x_982); -x_985 = l_Lean_Elab_Term_getMainModule___rarg(x_984); +lean_dec(x_981); +x_985 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_984); +lean_dec(x_3); x_986 = lean_ctor_get(x_985, 0); lean_inc(x_986); x_987 = lean_ctor_get(x_985, 1); lean_inc(x_987); -if (lean_is_exclusive(x_985)) { - lean_ctor_release(x_985, 0); - lean_ctor_release(x_985, 1); - x_988 = x_985; +lean_dec(x_985); +x_988 = l_Lean_Elab_Term_getMainModule___rarg(x_987); +x_989 = lean_ctor_get(x_988, 0); +lean_inc(x_989); +x_990 = lean_ctor_get(x_988, 1); +lean_inc(x_990); +if (lean_is_exclusive(x_988)) { + lean_ctor_release(x_988, 0); + lean_ctor_release(x_988, 1); + x_991 = x_988; } else { - lean_dec_ref(x_985); - x_988 = lean_box(0); + lean_dec_ref(x_988); + x_991 = lean_box(0); } -x_989 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__8; -x_990 = l_Lean_addMacroScope(x_986, x_989, x_983); -x_991 = l_Lean_SourceInfo_inhabited___closed__1; -x_992 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__7; -x_993 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_993, 0, x_991); -lean_ctor_set(x_993, 1, x_992); -lean_ctor_set(x_993, 2, x_990); -lean_ctor_set(x_993, 3, x_526); -x_994 = l_Array_empty___closed__1; -x_995 = lean_array_push(x_994, x_993); -x_996 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; -x_997 = lean_array_push(x_995, x_996); +x_992 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__8; +x_993 = l_Lean_addMacroScope(x_989, x_992, x_986); +x_994 = l_Lean_SourceInfo_inhabited___closed__1; +x_995 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__7; +x_996 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_996, 0, x_994); +lean_ctor_set(x_996, 1, x_995); +lean_ctor_set(x_996, 2, x_993); +lean_ctor_set(x_996, 3, x_527); +x_997 = l_Array_empty___closed__1; x_998 = lean_array_push(x_997, x_996); -x_999 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; +x_999 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; x_1000 = lean_array_push(x_998, x_999); -x_1001 = lean_array_push(x_1000, x_17); -x_1002 = l_Lean_Parser_Term_letIdDecl___closed__2; -x_1003 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1003, 0, x_1002); -lean_ctor_set(x_1003, 1, x_1001); -x_1004 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; -x_1005 = lean_array_push(x_1004, x_1003); -x_1006 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; -x_1007 = lean_array_push(x_1005, x_1006); -x_1008 = lean_array_push(x_1007, x_980); -x_1009 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_1010 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1010, 0, x_1009); -lean_ctor_set(x_1010, 1, x_1008); -if (lean_is_scalar(x_988)) { - x_1011 = lean_alloc_ctor(0, 2, 0); +x_1001 = lean_array_push(x_1000, x_999); +x_1002 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; +x_1003 = lean_array_push(x_1001, x_1002); +x_1004 = lean_array_push(x_1003, x_16); +x_1005 = l_Lean_Parser_Term_letIdDecl___closed__2; +x_1006 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1006, 0, x_1005); +lean_ctor_set(x_1006, 1, x_1004); +x_1007 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; +x_1008 = lean_array_push(x_1007, x_1006); +x_1009 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; +x_1010 = lean_array_push(x_1008, x_1009); +x_1011 = lean_array_push(x_1010, x_983); +x_1012 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_1013 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1013, 0, x_1012); +lean_ctor_set(x_1013, 1, x_1011); +if (lean_is_scalar(x_991)) { + x_1014 = lean_alloc_ctor(0, 2, 0); } else { - x_1011 = x_988; + x_1014 = x_991; } -lean_ctor_set(x_1011, 0, x_1010); -lean_ctor_set(x_1011, 1, x_987); -return x_1011; +lean_ctor_set(x_1014, 0, x_1013); +lean_ctor_set(x_1014, 1, x_990); +return x_1014; } else { -lean_object* x_1012; lean_object* x_1013; lean_object* x_1014; lean_object* x_1015; lean_object* x_1016; lean_object* x_1017; lean_object* x_1018; lean_object* x_1019; lean_object* x_1020; lean_object* x_1021; lean_object* x_1022; lean_object* x_1023; lean_object* x_1024; lean_object* x_1025; lean_object* x_1026; lean_object* x_1027; -x_1012 = lean_ctor_get(x_978, 0); -lean_inc(x_1012); -x_1013 = lean_ctor_get(x_978, 1); -lean_inc(x_1013); -lean_dec(x_978); -x_1014 = lean_ctor_get(x_979, 0); -lean_inc(x_1014); -lean_dec(x_979); -x_1015 = l_List_filterAux___main___at___private_Lean_Elab_Quotation_6__compileStxMatch___main___spec__11(x_25, x_21, x_526); -lean_dec(x_25); -x_1016 = l_List_map___main___at___private_Lean_Elab_Quotation_6__compileStxMatch___main___spec__7(x_1015); -x_1017 = lean_ctor_get(x_1013, 0); +lean_object* x_1015; lean_object* x_1016; lean_object* x_1017; lean_object* x_1018; lean_object* x_1019; lean_object* x_1020; lean_object* x_1021; lean_object* x_1022; lean_object* x_1023; lean_object* x_1024; lean_object* x_1025; lean_object* x_1026; lean_object* x_1027; lean_object* x_1028; lean_object* x_1029; lean_object* x_1030; +x_1015 = lean_ctor_get(x_981, 0); +lean_inc(x_1015); +x_1016 = lean_ctor_get(x_981, 1); +lean_inc(x_1016); +lean_dec(x_981); +x_1017 = lean_ctor_get(x_982, 0); lean_inc(x_1017); -x_1018 = lean_ctor_get(x_1013, 1); -lean_inc(x_1018); -x_1019 = lean_ctor_get(x_1013, 2); -lean_inc(x_1019); -x_1020 = lean_ctor_get(x_1013, 3); +lean_dec(x_982); +x_1018 = l_List_filterAux___main___at___private_Lean_Elab_Quotation_6__compileStxMatch___main___spec__11(x_24, x_20, x_527); +lean_dec(x_24); +x_1019 = l_List_map___main___at___private_Lean_Elab_Quotation_6__compileStxMatch___main___spec__7(x_1018); +x_1020 = lean_ctor_get(x_1016, 0); lean_inc(x_1020); -x_1021 = lean_ctor_get(x_1013, 4); +x_1021 = lean_ctor_get(x_1016, 1); lean_inc(x_1021); -x_1022 = lean_ctor_get(x_1013, 5); +x_1022 = lean_ctor_get(x_1016, 2); lean_inc(x_1022); -if (lean_is_exclusive(x_1013)) { - lean_ctor_release(x_1013, 0); - lean_ctor_release(x_1013, 1); - lean_ctor_release(x_1013, 2); - lean_ctor_release(x_1013, 3); - lean_ctor_release(x_1013, 4); - lean_ctor_release(x_1013, 5); - x_1023 = x_1013; +x_1023 = lean_ctor_get(x_1016, 3); +lean_inc(x_1023); +x_1024 = lean_ctor_get(x_1016, 4); +lean_inc(x_1024); +x_1025 = lean_ctor_get(x_1016, 5); +lean_inc(x_1025); +if (lean_is_exclusive(x_1016)) { + lean_ctor_release(x_1016, 0); + lean_ctor_release(x_1016, 1); + lean_ctor_release(x_1016, 2); + lean_ctor_release(x_1016, 3); + lean_ctor_release(x_1016, 4); + lean_ctor_release(x_1016, 5); + x_1026 = x_1016; } else { - lean_dec_ref(x_1013); - x_1023 = lean_box(0); + lean_dec_ref(x_1016); + x_1026 = lean_box(0); } -x_1024 = lean_nat_add(x_1022, x_962); -if (lean_is_scalar(x_1023)) { - x_1025 = lean_alloc_ctor(0, 6, 0); +x_1027 = lean_nat_add(x_1025, x_964); +if (lean_is_scalar(x_1026)) { + x_1028 = lean_alloc_ctor(0, 6, 0); } else { - x_1025 = x_1023; + x_1028 = x_1026; } -lean_ctor_set(x_1025, 0, x_1017); -lean_ctor_set(x_1025, 1, x_1018); -lean_ctor_set(x_1025, 2, x_1019); -lean_ctor_set(x_1025, 3, x_1020); -lean_ctor_set(x_1025, 4, x_1021); -lean_ctor_set(x_1025, 5, x_1024); -x_1026 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_1026, 0, x_965); -lean_ctor_set(x_1026, 1, x_966); -lean_ctor_set(x_1026, 2, x_967); -lean_ctor_set(x_1026, 3, x_968); -lean_ctor_set(x_1026, 4, x_969); -lean_ctor_set(x_1026, 5, x_970); -lean_ctor_set(x_1026, 6, x_971); -lean_ctor_set(x_1026, 7, x_972); -lean_ctor_set(x_1026, 8, x_973); -lean_ctor_set(x_1026, 9, x_1022); -lean_ctor_set_uint8(x_1026, sizeof(void*)*10, x_974); -lean_ctor_set_uint8(x_1026, sizeof(void*)*10 + 1, x_975); -lean_ctor_set_uint8(x_1026, sizeof(void*)*10 + 2, x_976); -x_1027 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main(x_1, x_2, x_1016, x_1026, x_1025); -if (lean_obj_tag(x_1027) == 0) +lean_ctor_set(x_1028, 0, x_1020); +lean_ctor_set(x_1028, 1, x_1021); +lean_ctor_set(x_1028, 2, x_1022); +lean_ctor_set(x_1028, 3, x_1023); +lean_ctor_set(x_1028, 4, x_1024); +lean_ctor_set(x_1028, 5, x_1027); +x_1029 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_1029, 0, x_967); +lean_ctor_set(x_1029, 1, x_968); +lean_ctor_set(x_1029, 2, x_969); +lean_ctor_set(x_1029, 3, x_970); +lean_ctor_set(x_1029, 4, x_971); +lean_ctor_set(x_1029, 5, x_972); +lean_ctor_set(x_1029, 6, x_973); +lean_ctor_set(x_1029, 7, x_974); +lean_ctor_set(x_1029, 8, x_975); +lean_ctor_set(x_1029, 9, x_1025); +lean_ctor_set(x_1029, 10, x_979); +lean_ctor_set_uint8(x_1029, sizeof(void*)*11, x_976); +lean_ctor_set_uint8(x_1029, sizeof(void*)*11 + 1, x_977); +lean_ctor_set_uint8(x_1029, sizeof(void*)*11 + 2, x_978); +x_1030 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main(x_1, x_1019, x_1029, x_1028); +if (lean_obj_tag(x_1030) == 0) { -lean_object* x_1028; lean_object* x_1029; lean_object* x_1030; lean_object* x_1031; lean_object* x_1032; lean_object* x_1033; lean_object* x_1034; lean_object* x_1035; lean_object* x_1036; lean_object* x_1037; lean_object* x_1038; lean_object* x_1039; lean_object* x_1040; lean_object* x_1041; lean_object* x_1042; lean_object* x_1043; lean_object* x_1044; lean_object* x_1045; lean_object* x_1046; lean_object* x_1047; lean_object* x_1048; lean_object* x_1049; lean_object* x_1050; lean_object* x_1051; lean_object* x_1052; lean_object* x_1053; lean_object* x_1054; lean_object* x_1055; lean_object* x_1056; lean_object* x_1057; lean_object* x_1058; lean_object* x_1059; lean_object* x_1060; lean_object* x_1061; lean_object* x_1062; lean_object* x_1063; lean_object* x_1064; lean_object* x_1065; lean_object* x_1066; lean_object* x_1067; lean_object* x_1068; lean_object* x_1069; lean_object* x_1070; lean_object* x_1071; lean_object* x_1072; lean_object* x_1073; lean_object* x_1074; lean_object* x_1075; lean_object* x_1076; lean_object* x_1077; lean_object* x_1078; lean_object* x_1079; lean_object* x_1080; lean_object* x_1081; lean_object* x_1082; lean_object* x_1083; lean_object* x_1084; lean_object* x_1085; lean_object* x_1086; lean_object* x_1087; lean_object* x_1088; lean_object* x_1089; lean_object* x_1090; lean_object* x_1091; lean_object* x_1092; lean_object* x_1093; lean_object* x_1094; lean_object* x_1095; lean_object* x_1096; lean_object* x_1097; lean_object* x_1098; lean_object* x_1099; lean_object* x_1100; lean_object* x_1101; lean_object* x_1102; lean_object* x_1103; lean_object* x_1104; lean_object* x_1105; lean_object* x_1106; lean_object* x_1107; lean_object* x_1108; lean_object* x_1109; lean_object* x_1110; lean_object* x_1111; lean_object* x_1112; lean_object* x_1113; lean_object* x_1114; lean_object* x_1115; lean_object* x_1116; lean_object* x_1117; lean_object* x_1118; lean_object* x_1119; lean_object* x_1120; lean_object* x_1121; lean_object* x_1122; lean_object* x_1123; lean_object* x_1124; lean_object* x_1125; lean_object* x_1126; lean_object* x_1127; lean_object* x_1128; lean_object* x_1129; lean_object* x_1130; lean_object* x_1131; lean_object* x_1132; lean_object* x_1133; lean_object* x_1134; lean_object* x_1135; lean_object* x_1136; lean_object* x_1137; lean_object* x_1138; lean_object* x_1139; lean_object* x_1140; lean_object* x_1141; lean_object* x_1142; lean_object* x_1143; lean_object* x_1144; lean_object* x_1145; lean_object* x_1146; lean_object* x_1147; lean_object* x_1148; lean_object* x_1149; lean_object* x_1150; lean_object* x_1151; lean_object* x_1152; lean_object* x_1153; lean_object* x_1154; lean_object* x_1155; lean_object* x_1156; lean_object* x_1157; lean_object* x_1158; lean_object* x_1159; lean_object* x_1160; lean_object* x_1161; lean_object* x_1162; lean_object* x_1163; lean_object* x_1164; lean_object* x_1165; -x_1028 = lean_ctor_get(x_1027, 0); -lean_inc(x_1028); -x_1029 = lean_ctor_get(x_1027, 1); -lean_inc(x_1029); -lean_dec(x_1027); -x_1030 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_1029); +lean_object* x_1031; lean_object* x_1032; lean_object* x_1033; lean_object* x_1034; lean_object* x_1035; lean_object* x_1036; lean_object* x_1037; lean_object* x_1038; lean_object* x_1039; lean_object* x_1040; lean_object* x_1041; lean_object* x_1042; lean_object* x_1043; lean_object* x_1044; lean_object* x_1045; lean_object* x_1046; lean_object* x_1047; lean_object* x_1048; lean_object* x_1049; lean_object* x_1050; lean_object* x_1051; lean_object* x_1052; lean_object* x_1053; lean_object* x_1054; lean_object* x_1055; lean_object* x_1056; lean_object* x_1057; lean_object* x_1058; lean_object* x_1059; lean_object* x_1060; lean_object* x_1061; lean_object* x_1062; lean_object* x_1063; lean_object* x_1064; lean_object* x_1065; lean_object* x_1066; lean_object* x_1067; lean_object* x_1068; lean_object* x_1069; lean_object* x_1070; lean_object* x_1071; lean_object* x_1072; lean_object* x_1073; lean_object* x_1074; lean_object* x_1075; lean_object* x_1076; lean_object* x_1077; lean_object* x_1078; lean_object* x_1079; lean_object* x_1080; lean_object* x_1081; lean_object* x_1082; lean_object* x_1083; lean_object* x_1084; lean_object* x_1085; lean_object* x_1086; lean_object* x_1087; lean_object* x_1088; lean_object* x_1089; lean_object* x_1090; lean_object* x_1091; lean_object* x_1092; lean_object* x_1093; lean_object* x_1094; lean_object* x_1095; lean_object* x_1096; lean_object* x_1097; lean_object* x_1098; lean_object* x_1099; lean_object* x_1100; lean_object* x_1101; lean_object* x_1102; lean_object* x_1103; lean_object* x_1104; lean_object* x_1105; lean_object* x_1106; lean_object* x_1107; lean_object* x_1108; lean_object* x_1109; lean_object* x_1110; lean_object* x_1111; lean_object* x_1112; lean_object* x_1113; lean_object* x_1114; lean_object* x_1115; lean_object* x_1116; lean_object* x_1117; lean_object* x_1118; lean_object* x_1119; lean_object* x_1120; lean_object* x_1121; lean_object* x_1122; lean_object* x_1123; lean_object* x_1124; lean_object* x_1125; lean_object* x_1126; lean_object* x_1127; lean_object* x_1128; lean_object* x_1129; lean_object* x_1130; lean_object* x_1131; lean_object* x_1132; lean_object* x_1133; lean_object* x_1134; lean_object* x_1135; lean_object* x_1136; lean_object* x_1137; lean_object* x_1138; lean_object* x_1139; lean_object* x_1140; lean_object* x_1141; lean_object* x_1142; lean_object* x_1143; lean_object* x_1144; lean_object* x_1145; lean_object* x_1146; lean_object* x_1147; lean_object* x_1148; lean_object* x_1149; lean_object* x_1150; lean_object* x_1151; lean_object* x_1152; lean_object* x_1153; lean_object* x_1154; lean_object* x_1155; lean_object* x_1156; lean_object* x_1157; lean_object* x_1158; lean_object* x_1159; lean_object* x_1160; lean_object* x_1161; lean_object* x_1162; lean_object* x_1163; lean_object* x_1164; lean_object* x_1165; lean_object* x_1166; lean_object* x_1167; lean_object* x_1168; x_1031 = lean_ctor_get(x_1030, 0); lean_inc(x_1031); x_1032 = lean_ctor_get(x_1030, 1); lean_inc(x_1032); lean_dec(x_1030); -x_1033 = l_Lean_Elab_Term_getMainModule___rarg(x_1032); +x_1033 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_1032); x_1034 = lean_ctor_get(x_1033, 0); lean_inc(x_1034); x_1035 = lean_ctor_get(x_1033, 1); lean_inc(x_1035); lean_dec(x_1033); -x_1036 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__8; -lean_inc(x_1031); +x_1036 = l_Lean_Elab_Term_getMainModule___rarg(x_1035); +x_1037 = lean_ctor_get(x_1036, 0); +lean_inc(x_1037); +x_1038 = lean_ctor_get(x_1036, 1); +lean_inc(x_1038); +lean_dec(x_1036); +x_1039 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__8; lean_inc(x_1034); -x_1037 = l_Lean_addMacroScope(x_1034, x_1036, x_1031); -x_1038 = l_Lean_SourceInfo_inhabited___closed__1; -x_1039 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__6; -x_1040 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__11; -x_1041 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1041, 0, x_1038); -lean_ctor_set(x_1041, 1, x_1039); -lean_ctor_set(x_1041, 2, x_1037); -lean_ctor_set(x_1041, 3, x_1040); -x_1042 = l_Array_empty___closed__1; -x_1043 = lean_array_push(x_1042, x_1041); -x_1044 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; -x_1045 = lean_array_push(x_1043, x_1044); -x_1046 = l_Lean_mkTermIdFromIdent___closed__2; -x_1047 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1047, 0, x_1046); -lean_ctor_set(x_1047, 1, x_1045); -x_1048 = lean_array_push(x_1042, x_1047); -x_1049 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__8; -lean_inc(x_1031); +lean_inc(x_1037); +x_1040 = l_Lean_addMacroScope(x_1037, x_1039, x_1034); +x_1041 = l_Lean_SourceInfo_inhabited___closed__1; +x_1042 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__6; +x_1043 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__11; +x_1044 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1044, 0, x_1041); +lean_ctor_set(x_1044, 1, x_1042); +lean_ctor_set(x_1044, 2, x_1040); +lean_ctor_set(x_1044, 3, x_1043); +x_1045 = l_Array_empty___closed__1; +x_1046 = lean_array_push(x_1045, x_1044); +x_1047 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; +x_1048 = lean_array_push(x_1046, x_1047); +x_1049 = l_Lean_mkTermIdFromIdent___closed__2; +x_1050 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1050, 0, x_1049); +lean_ctor_set(x_1050, 1, x_1048); +x_1051 = lean_array_push(x_1045, x_1050); +x_1052 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__8; lean_inc(x_1034); -x_1050 = l_Lean_addMacroScope(x_1034, x_1049, x_1031); -x_1051 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__7; -x_1052 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1052, 0, x_1038); -lean_ctor_set(x_1052, 1, x_1051); -lean_ctor_set(x_1052, 2, x_1050); -lean_ctor_set(x_1052, 3, x_526); -x_1053 = lean_array_push(x_1042, x_1052); -x_1054 = lean_array_push(x_1053, x_1044); -x_1055 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1055, 0, x_1046); +lean_inc(x_1037); +x_1053 = l_Lean_addMacroScope(x_1037, x_1052, x_1034); +x_1054 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__7; +x_1055 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1055, 0, x_1041); lean_ctor_set(x_1055, 1, x_1054); -x_1056 = lean_array_push(x_1042, x_1055); -x_1057 = l___private_Lean_Syntax_7__quoteName___main(x_1014); -lean_inc(x_1056); -x_1058 = lean_array_push(x_1056, x_1057); -x_1059 = l_Lean_nullKind___closed__2; -x_1060 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1060, 0, x_1059); -lean_ctor_set(x_1060, 1, x_1058); -x_1061 = lean_array_push(x_1048, x_1060); -x_1062 = l_Lean_mkAppStx___closed__8; +lean_ctor_set(x_1055, 2, x_1053); +lean_ctor_set(x_1055, 3, x_527); +x_1056 = lean_array_push(x_1045, x_1055); +x_1057 = lean_array_push(x_1056, x_1047); +x_1058 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1058, 0, x_1049); +lean_ctor_set(x_1058, 1, x_1057); +x_1059 = lean_array_push(x_1045, x_1058); +x_1060 = l___private_Lean_Syntax_7__quoteName___main(x_1017); +lean_inc(x_1059); +x_1061 = lean_array_push(x_1059, x_1060); +x_1062 = l_Lean_nullKind___closed__2; x_1063 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1063, 0, x_1062); lean_ctor_set(x_1063, 1, x_1061); -x_1064 = lean_array_push(x_1042, x_1063); -x_1065 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__26; -x_1066 = lean_array_push(x_1064, x_1065); -x_1067 = l_Lean_Meta_caseArraySizes___closed__2; -lean_inc(x_1031); +x_1064 = lean_array_push(x_1051, x_1063); +x_1065 = l_Lean_mkAppStx___closed__8; +x_1066 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1066, 0, x_1065); +lean_ctor_set(x_1066, 1, x_1064); +x_1067 = lean_array_push(x_1045, x_1066); +x_1068 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__26; +x_1069 = lean_array_push(x_1067, x_1068); +x_1070 = l_Lean_Meta_caseArraySizes___closed__2; lean_inc(x_1034); -x_1068 = l_Lean_addMacroScope(x_1034, x_1067, x_1031); -x_1069 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__29; -x_1070 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__31; -x_1071 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1071, 0, x_1038); -lean_ctor_set(x_1071, 1, x_1069); -lean_ctor_set(x_1071, 2, x_1068); -lean_ctor_set(x_1071, 3, x_1070); -x_1072 = lean_array_push(x_1042, x_1071); -x_1073 = lean_array_push(x_1072, x_1044); -x_1074 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1074, 0, x_1046); -lean_ctor_set(x_1074, 1, x_1073); -x_1075 = lean_array_push(x_1042, x_1074); -x_1076 = l___private_Lean_Elab_Quotation_4__getHeadInfo___lambda__2___closed__5; -x_1077 = l_Lean_addMacroScope(x_1034, x_1076, x_1031); -x_1078 = l___private_Lean_Elab_Quotation_4__getHeadInfo___lambda__2___closed__3; -x_1079 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__34; -x_1080 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1080, 0, x_1038); -lean_ctor_set(x_1080, 1, x_1078); -lean_ctor_set(x_1080, 2, x_1077); -lean_ctor_set(x_1080, 3, x_1079); -x_1081 = lean_array_push(x_1042, x_1080); -x_1082 = lean_array_push(x_1081, x_1044); -x_1083 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1083, 0, x_1046); -lean_ctor_set(x_1083, 1, x_1082); -x_1084 = lean_array_push(x_1042, x_1083); -x_1085 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1085, 0, x_1059); -lean_ctor_set(x_1085, 1, x_1056); -x_1086 = lean_array_push(x_1084, x_1085); -x_1087 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1087, 0, x_1062); -lean_ctor_set(x_1087, 1, x_1086); -x_1088 = lean_array_push(x_1042, x_1087); -x_1089 = lean_array_push(x_1088, x_1044); +lean_inc(x_1037); +x_1071 = l_Lean_addMacroScope(x_1037, x_1070, x_1034); +x_1072 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__29; +x_1073 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__31; +x_1074 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1074, 0, x_1041); +lean_ctor_set(x_1074, 1, x_1072); +lean_ctor_set(x_1074, 2, x_1071); +lean_ctor_set(x_1074, 3, x_1073); +x_1075 = lean_array_push(x_1045, x_1074); +x_1076 = lean_array_push(x_1075, x_1047); +x_1077 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1077, 0, x_1049); +lean_ctor_set(x_1077, 1, x_1076); +x_1078 = lean_array_push(x_1045, x_1077); +x_1079 = l___private_Lean_Elab_Quotation_4__getHeadInfo___lambda__2___closed__5; +x_1080 = l_Lean_addMacroScope(x_1037, x_1079, x_1034); +x_1081 = l___private_Lean_Elab_Quotation_4__getHeadInfo___lambda__2___closed__3; +x_1082 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__34; +x_1083 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1083, 0, x_1041); +lean_ctor_set(x_1083, 1, x_1081); +lean_ctor_set(x_1083, 2, x_1080); +lean_ctor_set(x_1083, 3, x_1082); +x_1084 = lean_array_push(x_1045, x_1083); +x_1085 = lean_array_push(x_1084, x_1047); +x_1086 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1086, 0, x_1049); +lean_ctor_set(x_1086, 1, x_1085); +x_1087 = lean_array_push(x_1045, x_1086); +x_1088 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1088, 0, x_1062); +lean_ctor_set(x_1088, 1, x_1059); +x_1089 = lean_array_push(x_1087, x_1088); x_1090 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1090, 0, x_1059); +lean_ctor_set(x_1090, 0, x_1065); lean_ctor_set(x_1090, 1, x_1089); -x_1091 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__4; -x_1092 = lean_array_push(x_1091, x_1090); -x_1093 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__6; -x_1094 = lean_array_push(x_1092, x_1093); -x_1095 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__2; -x_1096 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1096, 0, x_1095); -lean_ctor_set(x_1096, 1, x_1094); -x_1097 = lean_array_push(x_1042, x_1096); -x_1098 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1098, 0, x_1059); -lean_ctor_set(x_1098, 1, x_1097); -x_1099 = lean_array_push(x_1075, x_1098); -x_1100 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1100, 0, x_1062); -lean_ctor_set(x_1100, 1, x_1099); -x_1101 = lean_array_push(x_1042, x_1100); -x_1102 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__36; -x_1103 = lean_array_push(x_1101, x_1102); -x_1104 = l_Nat_repr(x_521); -x_1105 = l_Lean_numLitKind; -x_1106 = l_Lean_mkStxLit(x_1105, x_1104, x_1038); -x_1107 = l_Lean_mkOptionalNode___closed__2; -x_1108 = lean_array_push(x_1107, x_1106); -x_1109 = l_Lean_Nat_HasQuote___closed__2; -x_1110 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1110, 0, x_1109); -lean_ctor_set(x_1110, 1, x_1108); -x_1111 = lean_array_push(x_1103, x_1110); -x_1112 = l_Lean_Parser_Term_beq___elambda__1___closed__1; +x_1091 = lean_array_push(x_1045, x_1090); +x_1092 = lean_array_push(x_1091, x_1047); +x_1093 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1093, 0, x_1062); +lean_ctor_set(x_1093, 1, x_1092); +x_1094 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__4; +x_1095 = lean_array_push(x_1094, x_1093); +x_1096 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__6; +x_1097 = lean_array_push(x_1095, x_1096); +x_1098 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__2; +x_1099 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1099, 0, x_1098); +lean_ctor_set(x_1099, 1, x_1097); +x_1100 = lean_array_push(x_1045, x_1099); +x_1101 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1101, 0, x_1062); +lean_ctor_set(x_1101, 1, x_1100); +x_1102 = lean_array_push(x_1078, x_1101); +x_1103 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1103, 0, x_1065); +lean_ctor_set(x_1103, 1, x_1102); +x_1104 = lean_array_push(x_1045, x_1103); +x_1105 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__36; +x_1106 = lean_array_push(x_1104, x_1105); +x_1107 = l_Nat_repr(x_522); +x_1108 = l_Lean_numLitKind; +x_1109 = l_Lean_mkStxLit(x_1108, x_1107, x_1041); +x_1110 = l_Lean_mkOptionalNode___closed__2; +x_1111 = lean_array_push(x_1110, x_1109); +x_1112 = l_Lean_Nat_HasQuote___closed__2; x_1113 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1113, 0, x_1112); lean_ctor_set(x_1113, 1, x_1111); -x_1114 = lean_array_push(x_1066, x_1113); -x_1115 = l_Lean_Parser_Term_band___elambda__1___closed__2; +x_1114 = lean_array_push(x_1106, x_1113); +x_1115 = l_Lean_Parser_Term_beq___elambda__1___closed__1; x_1116 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1116, 0, x_1115); lean_ctor_set(x_1116, 1, x_1114); -x_1117 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_1035); -lean_dec(x_4); -x_1118 = lean_ctor_get(x_1117, 0); -lean_inc(x_1118); -x_1119 = lean_ctor_get(x_1117, 1); -lean_inc(x_1119); -lean_dec(x_1117); -x_1120 = l_Lean_Elab_Term_getMainModule___rarg(x_1119); +x_1117 = lean_array_push(x_1069, x_1116); +x_1118 = l_Lean_Parser_Term_band___elambda__1___closed__2; +x_1119 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1119, 0, x_1118); +lean_ctor_set(x_1119, 1, x_1117); +x_1120 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_1038); +lean_dec(x_3); x_1121 = lean_ctor_get(x_1120, 0); lean_inc(x_1121); x_1122 = lean_ctor_get(x_1120, 1); lean_inc(x_1122); -if (lean_is_exclusive(x_1120)) { - lean_ctor_release(x_1120, 0); - lean_ctor_release(x_1120, 1); - x_1123 = x_1120; +lean_dec(x_1120); +x_1123 = l_Lean_Elab_Term_getMainModule___rarg(x_1122); +x_1124 = lean_ctor_get(x_1123, 0); +lean_inc(x_1124); +x_1125 = lean_ctor_get(x_1123, 1); +lean_inc(x_1125); +if (lean_is_exclusive(x_1123)) { + lean_ctor_release(x_1123, 0); + lean_ctor_release(x_1123, 1); + x_1126 = x_1123; } else { - lean_dec_ref(x_1120); - x_1123 = lean_box(0); + lean_dec_ref(x_1123); + x_1126 = lean_box(0); } -lean_inc(x_1118); lean_inc(x_1121); -x_1124 = l_Lean_addMacroScope(x_1121, x_1049, x_1118); -x_1125 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1125, 0, x_1038); -lean_ctor_set(x_1125, 1, x_1051); -lean_ctor_set(x_1125, 2, x_1124); -lean_ctor_set(x_1125, 3, x_526); -x_1126 = lean_array_push(x_1042, x_1125); -x_1127 = lean_array_push(x_1126, x_1044); -x_1128 = lean_array_push(x_1127, x_1044); -x_1129 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; -x_1130 = lean_array_push(x_1128, x_1129); -x_1131 = lean_array_push(x_1130, x_17); -x_1132 = l_Lean_Parser_Term_letIdDecl___closed__2; -x_1133 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1133, 0, x_1132); -lean_ctor_set(x_1133, 1, x_1131); -x_1134 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; -x_1135 = lean_array_push(x_1134, x_1133); -x_1136 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; -x_1137 = lean_array_push(x_1135, x_1136); -x_1138 = lean_array_push(x_1042, x_1116); -x_1139 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__15; +lean_inc(x_1124); +x_1127 = l_Lean_addMacroScope(x_1124, x_1052, x_1121); +x_1128 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1128, 0, x_1041); +lean_ctor_set(x_1128, 1, x_1054); +lean_ctor_set(x_1128, 2, x_1127); +lean_ctor_set(x_1128, 3, x_527); +x_1129 = lean_array_push(x_1045, x_1128); +x_1130 = lean_array_push(x_1129, x_1047); +x_1131 = lean_array_push(x_1130, x_1047); +x_1132 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; +x_1133 = lean_array_push(x_1131, x_1132); +x_1134 = lean_array_push(x_1133, x_16); +x_1135 = l_Lean_Parser_Term_letIdDecl___closed__2; +x_1136 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1136, 0, x_1135); +lean_ctor_set(x_1136, 1, x_1134); +x_1137 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; +x_1138 = lean_array_push(x_1137, x_1136); +x_1139 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; x_1140 = lean_array_push(x_1138, x_1139); -x_1141 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__18; -x_1142 = l_Lean_addMacroScope(x_1121, x_1141, x_1118); -x_1143 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__17; -x_1144 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__20; -x_1145 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1145, 0, x_1038); -lean_ctor_set(x_1145, 1, x_1143); -lean_ctor_set(x_1145, 2, x_1142); -lean_ctor_set(x_1145, 3, x_1144); -x_1146 = lean_array_push(x_1042, x_1145); -x_1147 = lean_array_push(x_1146, x_1044); -x_1148 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1148, 0, x_1046); -lean_ctor_set(x_1148, 1, x_1147); -x_1149 = lean_array_push(x_1140, x_1148); -x_1150 = l_Lean_Parser_Term_eq___elambda__1___closed__2; +x_1141 = lean_array_push(x_1045, x_1119); +x_1142 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__15; +x_1143 = lean_array_push(x_1141, x_1142); +x_1144 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__18; +x_1145 = l_Lean_addMacroScope(x_1124, x_1144, x_1121); +x_1146 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__17; +x_1147 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__20; +x_1148 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1148, 0, x_1041); +lean_ctor_set(x_1148, 1, x_1146); +lean_ctor_set(x_1148, 2, x_1145); +lean_ctor_set(x_1148, 3, x_1147); +x_1149 = lean_array_push(x_1045, x_1148); +x_1150 = lean_array_push(x_1149, x_1047); x_1151 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1151, 0, x_1150); -lean_ctor_set(x_1151, 1, x_1149); -x_1152 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__14; -x_1153 = lean_array_push(x_1152, x_1151); -x_1154 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__22; -x_1155 = lean_array_push(x_1153, x_1154); -x_1156 = lean_array_push(x_1155, x_1012); -x_1157 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__24; +lean_ctor_set(x_1151, 0, x_1049); +lean_ctor_set(x_1151, 1, x_1150); +x_1152 = lean_array_push(x_1143, x_1151); +x_1153 = l_Lean_Parser_Term_eq___elambda__1___closed__2; +x_1154 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1154, 0, x_1153); +lean_ctor_set(x_1154, 1, x_1152); +x_1155 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__14; +x_1156 = lean_array_push(x_1155, x_1154); +x_1157 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__22; x_1158 = lean_array_push(x_1156, x_1157); -x_1159 = lean_array_push(x_1158, x_1028); -x_1160 = l_Lean_Parser_Term_if___elambda__1___closed__2; -x_1161 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1161, 0, x_1160); -lean_ctor_set(x_1161, 1, x_1159); -x_1162 = lean_array_push(x_1137, x_1161); -x_1163 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_1159 = lean_array_push(x_1158, x_1015); +x_1160 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__24; +x_1161 = lean_array_push(x_1159, x_1160); +x_1162 = lean_array_push(x_1161, x_1031); +x_1163 = l_Lean_Parser_Term_if___elambda__1___closed__2; x_1164 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1164, 0, x_1163); lean_ctor_set(x_1164, 1, x_1162); -if (lean_is_scalar(x_1123)) { - x_1165 = lean_alloc_ctor(0, 2, 0); +x_1165 = lean_array_push(x_1140, x_1164); +x_1166 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_1167 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1167, 0, x_1166); +lean_ctor_set(x_1167, 1, x_1165); +if (lean_is_scalar(x_1126)) { + x_1168 = lean_alloc_ctor(0, 2, 0); } else { - x_1165 = x_1123; + x_1168 = x_1126; } -lean_ctor_set(x_1165, 0, x_1164); -lean_ctor_set(x_1165, 1, x_1122); -return x_1165; +lean_ctor_set(x_1168, 0, x_1167); +lean_ctor_set(x_1168, 1, x_1125); +return x_1168; } else { -lean_object* x_1166; lean_object* x_1167; lean_object* x_1168; lean_object* x_1169; -lean_dec(x_1014); -lean_dec(x_1012); -lean_dec(x_521); -lean_dec(x_17); -lean_dec(x_4); -x_1166 = lean_ctor_get(x_1027, 0); -lean_inc(x_1166); -x_1167 = lean_ctor_get(x_1027, 1); -lean_inc(x_1167); -if (lean_is_exclusive(x_1027)) { - lean_ctor_release(x_1027, 0); - lean_ctor_release(x_1027, 1); - x_1168 = x_1027; +lean_object* x_1169; lean_object* x_1170; lean_object* x_1171; lean_object* x_1172; +lean_dec(x_1017); +lean_dec(x_1015); +lean_dec(x_522); +lean_dec(x_16); +lean_dec(x_3); +x_1169 = lean_ctor_get(x_1030, 0); +lean_inc(x_1169); +x_1170 = lean_ctor_get(x_1030, 1); +lean_inc(x_1170); +if (lean_is_exclusive(x_1030)) { + lean_ctor_release(x_1030, 0); + lean_ctor_release(x_1030, 1); + x_1171 = x_1030; } else { - lean_dec_ref(x_1027); - x_1168 = lean_box(0); + lean_dec_ref(x_1030); + x_1171 = lean_box(0); } -if (lean_is_scalar(x_1168)) { - x_1169 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1171)) { + x_1172 = lean_alloc_ctor(1, 2, 0); } else { - x_1169 = x_1168; + x_1172 = x_1171; } -lean_ctor_set(x_1169, 0, x_1166); -lean_ctor_set(x_1169, 1, x_1167); -return x_1169; +lean_ctor_set(x_1172, 0, x_1169); +lean_ctor_set(x_1172, 1, x_1170); +return x_1172; } } } else { -lean_object* x_1170; lean_object* x_1171; lean_object* x_1172; lean_object* x_1173; +lean_object* x_1173; lean_object* x_1174; lean_object* x_1175; lean_object* x_1176; +lean_dec(x_979); +lean_dec(x_975); +lean_dec(x_974); lean_dec(x_973); lean_dec(x_972); lean_dec(x_971); @@ -10393,65 +10424,63 @@ lean_dec(x_970); lean_dec(x_969); lean_dec(x_968); lean_dec(x_967); -lean_dec(x_966); -lean_dec(x_965); -lean_dec(x_521); -lean_dec(x_25); -lean_dec(x_21); -lean_dec(x_17); -lean_dec(x_4); -lean_dec(x_2); -x_1170 = lean_ctor_get(x_978, 0); -lean_inc(x_1170); -x_1171 = lean_ctor_get(x_978, 1); -lean_inc(x_1171); -if (lean_is_exclusive(x_978)) { - lean_ctor_release(x_978, 0); - lean_ctor_release(x_978, 1); - x_1172 = x_978; +lean_dec(x_522); +lean_dec(x_24); +lean_dec(x_20); +lean_dec(x_16); +lean_dec(x_3); +lean_dec(x_1); +x_1173 = lean_ctor_get(x_981, 0); +lean_inc(x_1173); +x_1174 = lean_ctor_get(x_981, 1); +lean_inc(x_1174); +if (lean_is_exclusive(x_981)) { + lean_ctor_release(x_981, 0); + lean_ctor_release(x_981, 1); + x_1175 = x_981; } else { - lean_dec_ref(x_978); - x_1172 = lean_box(0); + lean_dec_ref(x_981); + x_1175 = lean_box(0); } -if (lean_is_scalar(x_1172)) { - x_1173 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1175)) { + x_1176 = lean_alloc_ctor(1, 2, 0); } else { - x_1173 = x_1172; + x_1176 = x_1175; } -lean_ctor_set(x_1173, 0, x_1170); -lean_ctor_set(x_1173, 1, x_1171); -return x_1173; +lean_ctor_set(x_1176, 0, x_1173); +lean_ctor_set(x_1176, 1, x_1174); +return x_1176; } } } else { -uint8_t x_1174; -lean_dec(x_524); -lean_dec(x_521); -lean_dec(x_25); -lean_dec(x_21); -lean_dec(x_18); +uint8_t x_1177; +lean_dec(x_525); +lean_dec(x_522); +lean_dec(x_24); +lean_dec(x_20); lean_dec(x_17); -lean_dec(x_4); -lean_dec(x_2); -x_1174 = !lean_is_exclusive(x_528); -if (x_1174 == 0) +lean_dec(x_16); +lean_dec(x_3); +lean_dec(x_1); +x_1177 = !lean_is_exclusive(x_529); +if (x_1177 == 0) { -return x_528; +return x_529; } else { -lean_object* x_1175; lean_object* x_1176; lean_object* x_1177; -x_1175 = lean_ctor_get(x_528, 0); -x_1176 = lean_ctor_get(x_528, 1); -lean_inc(x_1176); -lean_inc(x_1175); -lean_dec(x_528); -x_1177 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1177, 0, x_1175); -lean_ctor_set(x_1177, 1, x_1176); -return x_1177; +lean_object* x_1178; lean_object* x_1179; lean_object* x_1180; +x_1178 = lean_ctor_get(x_529, 0); +x_1179 = lean_ctor_get(x_529, 1); +lean_inc(x_1179); +lean_inc(x_1178); +lean_dec(x_529); +x_1180 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1180, 0, x_1178); +lean_ctor_set(x_1180, 1, x_1179); +return x_1180; } } } @@ -10532,30 +10561,12 @@ lean_dec(x_1); return x_4; } } -lean_object* l___private_Lean_Elab_Quotation_6__compileStxMatch___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_Quotation_6__compileStxMatch(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_6; -x_6 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_1); -return x_6; -} -} -lean_object* l___private_Lean_Elab_Quotation_6__compileStxMatch(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main(x_1, x_2, x_3, x_4, x_5); -return x_6; -} -} -lean_object* l___private_Lean_Elab_Quotation_6__compileStxMatch___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l___private_Lean_Elab_Quotation_6__compileStxMatch(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_1); -return x_6; +lean_object* x_5; +x_5 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main(x_1, x_2, x_3, x_4); +return x_5; } } lean_object* l_List_map___main___at___private_Lean_Elab_Quotation_7__getPatternVarsAux___main___spec__1(lean_object* x_1) { @@ -11021,7 +11032,7 @@ lean_ctor_set(x_2, 1, x_3); x_39 = !lean_is_exclusive(x_21); if (x_39 == 0) { -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; uint8_t x_53; uint8_t x_54; lean_object* x_55; lean_object* x_56; +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; uint8_t x_53; uint8_t x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; x_40 = lean_ctor_get(x_21, 5); x_41 = lean_unsigned_to_nat(1u); x_42 = lean_nat_add(x_40, x_41); @@ -11044,1825 +11055,1852 @@ x_50 = lean_ctor_get(x_4, 7); lean_inc(x_50); x_51 = lean_ctor_get(x_4, 8); lean_inc(x_51); -x_52 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); -x_53 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); -x_54 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 2); -x_55 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_55, 0, x_43); -lean_ctor_set(x_55, 1, x_44); -lean_ctor_set(x_55, 2, x_45); -lean_ctor_set(x_55, 3, x_46); -lean_ctor_set(x_55, 4, x_47); -lean_ctor_set(x_55, 5, x_48); -lean_ctor_set(x_55, 6, x_49); -lean_ctor_set(x_55, 7, x_50); -lean_ctor_set(x_55, 8, x_51); -lean_ctor_set(x_55, 9, x_40); -lean_ctor_set_uint8(x_55, sizeof(void*)*10, x_52); -lean_ctor_set_uint8(x_55, sizeof(void*)*10 + 1, x_53); -lean_ctor_set_uint8(x_55, sizeof(void*)*10 + 2, x_54); -x_56 = l___private_Lean_Elab_Quotation_8__letBindRhss___main(x_1, x_11, x_2, x_55, x_21); -if (lean_obj_tag(x_56) == 0) +x_52 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_53 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_54 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +x_55 = lean_ctor_get(x_4, 10); +lean_inc(x_55); +x_56 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_56, 0, x_43); +lean_ctor_set(x_56, 1, x_44); +lean_ctor_set(x_56, 2, x_45); +lean_ctor_set(x_56, 3, x_46); +lean_ctor_set(x_56, 4, x_47); +lean_ctor_set(x_56, 5, x_48); +lean_ctor_set(x_56, 6, x_49); +lean_ctor_set(x_56, 7, x_50); +lean_ctor_set(x_56, 8, x_51); +lean_ctor_set(x_56, 9, x_40); +lean_ctor_set(x_56, 10, x_55); +lean_ctor_set_uint8(x_56, sizeof(void*)*11, x_52); +lean_ctor_set_uint8(x_56, sizeof(void*)*11 + 1, x_53); +lean_ctor_set_uint8(x_56, sizeof(void*)*11 + 2, x_54); +x_57 = l___private_Lean_Elab_Quotation_8__letBindRhss___main(x_1, x_11, x_2, x_56, x_21); +if (lean_obj_tag(x_57) == 0) { -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; -x_57 = lean_ctor_get(x_56, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_56, 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; +x_58 = lean_ctor_get(x_57, 0); lean_inc(x_58); -lean_dec(x_56); -x_59 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_58); +x_59 = lean_ctor_get(x_57, 1); +lean_inc(x_59); +lean_dec(x_57); +x_60 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_59); lean_dec(x_4); -x_60 = lean_ctor_get(x_59, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_59, 1); +x_61 = lean_ctor_get(x_60, 0); lean_inc(x_61); -lean_dec(x_59); -x_62 = l_Lean_Elab_Term_getMainModule___rarg(x_61); -x_63 = !lean_is_exclusive(x_62); -if (x_63 == 0) +x_62 = lean_ctor_get(x_60, 1); +lean_inc(x_62); +lean_dec(x_60); +x_63 = l_Lean_Elab_Term_getMainModule___rarg(x_62); +x_64 = !lean_is_exclusive(x_63); +if (x_64 == 0) { -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; -x_64 = lean_ctor_get(x_62, 0); -x_65 = l_Lean_addMacroScope(x_64, x_22, x_60); -x_66 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_66, 0, x_25); -lean_ctor_set(x_66, 1, x_26); -lean_ctor_set(x_66, 2, x_65); -lean_ctor_set(x_66, 3, x_24); -x_67 = lean_array_push(x_28, x_66); -x_68 = lean_array_push(x_67, x_30); +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_65 = lean_ctor_get(x_63, 0); +x_66 = l_Lean_addMacroScope(x_65, x_22, x_61); +x_67 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_67, 0, x_25); +lean_ctor_set(x_67, 1, x_26); +lean_ctor_set(x_67, 2, x_66); +lean_ctor_set(x_67, 3, x_24); +x_68 = lean_array_push(x_28, x_67); x_69 = lean_array_push(x_68, x_30); -x_70 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; -x_71 = lean_array_push(x_69, x_70); -x_72 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__13; -x_73 = lean_array_push(x_72, x_13); -x_74 = l_Lean_Parser_Term_fun___elambda__1___closed__2; -x_75 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_75, 0, x_74); -lean_ctor_set(x_75, 1, x_73); -x_76 = lean_array_push(x_71, x_75); -x_77 = l_Lean_Parser_Term_letIdDecl___closed__2; -x_78 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_78, 0, x_77); -lean_ctor_set(x_78, 1, x_76); -x_79 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; -x_80 = lean_array_push(x_79, x_78); -x_81 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; -x_82 = lean_array_push(x_80, x_81); -x_83 = lean_array_push(x_82, x_57); -x_84 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_85 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_85, 0, x_84); -lean_ctor_set(x_85, 1, x_83); -lean_ctor_set(x_62, 0, x_85); -return x_62; +x_70 = lean_array_push(x_69, x_30); +x_71 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; +x_72 = lean_array_push(x_70, x_71); +x_73 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__13; +x_74 = lean_array_push(x_73, x_13); +x_75 = l_Lean_Parser_Term_fun___elambda__1___closed__2; +x_76 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_76, 0, x_75); +lean_ctor_set(x_76, 1, x_74); +x_77 = lean_array_push(x_72, x_76); +x_78 = l_Lean_Parser_Term_letIdDecl___closed__2; +x_79 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_79, 0, x_78); +lean_ctor_set(x_79, 1, x_77); +x_80 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; +x_81 = lean_array_push(x_80, x_79); +x_82 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; +x_83 = lean_array_push(x_81, x_82); +x_84 = lean_array_push(x_83, x_58); +x_85 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_86 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_84); +lean_ctor_set(x_63, 0, x_86); +return x_63; } else { -lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_86 = lean_ctor_get(x_62, 0); -x_87 = lean_ctor_get(x_62, 1); +lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; 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; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; +x_87 = lean_ctor_get(x_63, 0); +x_88 = lean_ctor_get(x_63, 1); +lean_inc(x_88); lean_inc(x_87); -lean_inc(x_86); -lean_dec(x_62); -x_88 = l_Lean_addMacroScope(x_86, x_22, x_60); -x_89 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_89, 0, x_25); -lean_ctor_set(x_89, 1, x_26); -lean_ctor_set(x_89, 2, x_88); -lean_ctor_set(x_89, 3, x_24); -x_90 = lean_array_push(x_28, x_89); -x_91 = lean_array_push(x_90, x_30); +lean_dec(x_63); +x_89 = l_Lean_addMacroScope(x_87, x_22, x_61); +x_90 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_90, 0, x_25); +lean_ctor_set(x_90, 1, x_26); +lean_ctor_set(x_90, 2, x_89); +lean_ctor_set(x_90, 3, x_24); +x_91 = lean_array_push(x_28, x_90); x_92 = lean_array_push(x_91, x_30); -x_93 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; -x_94 = lean_array_push(x_92, x_93); -x_95 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__13; -x_96 = lean_array_push(x_95, x_13); -x_97 = l_Lean_Parser_Term_fun___elambda__1___closed__2; -x_98 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_96); -x_99 = lean_array_push(x_94, x_98); -x_100 = l_Lean_Parser_Term_letIdDecl___closed__2; -x_101 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_101, 0, x_100); -lean_ctor_set(x_101, 1, x_99); -x_102 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; -x_103 = lean_array_push(x_102, x_101); -x_104 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; -x_105 = lean_array_push(x_103, x_104); -x_106 = lean_array_push(x_105, x_57); -x_107 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_108 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_108, 0, x_107); -lean_ctor_set(x_108, 1, x_106); -x_109 = lean_alloc_ctor(0, 2, 0); +x_93 = lean_array_push(x_92, x_30); +x_94 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; +x_95 = lean_array_push(x_93, x_94); +x_96 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__13; +x_97 = lean_array_push(x_96, x_13); +x_98 = l_Lean_Parser_Term_fun___elambda__1___closed__2; +x_99 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_99, 0, x_98); +lean_ctor_set(x_99, 1, x_97); +x_100 = lean_array_push(x_95, x_99); +x_101 = l_Lean_Parser_Term_letIdDecl___closed__2; +x_102 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_102, 0, x_101); +lean_ctor_set(x_102, 1, x_100); +x_103 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; +x_104 = lean_array_push(x_103, x_102); +x_105 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; +x_106 = lean_array_push(x_104, x_105); +x_107 = lean_array_push(x_106, x_58); +x_108 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_109 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_109, 0, x_108); -lean_ctor_set(x_109, 1, x_87); -return x_109; +lean_ctor_set(x_109, 1, x_107); +x_110 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_110, 0, x_109); +lean_ctor_set(x_110, 1, x_88); +return x_110; } } else { -uint8_t x_110; +uint8_t x_111; lean_dec(x_13); lean_dec(x_4); -x_110 = !lean_is_exclusive(x_56); -if (x_110 == 0) +x_111 = !lean_is_exclusive(x_57); +if (x_111 == 0) { -return x_56; +return x_57; } else { -lean_object* x_111; lean_object* x_112; lean_object* x_113; -x_111 = lean_ctor_get(x_56, 0); -x_112 = lean_ctor_get(x_56, 1); +lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_112 = lean_ctor_get(x_57, 0); +x_113 = lean_ctor_get(x_57, 1); +lean_inc(x_113); lean_inc(x_112); -lean_inc(x_111); -lean_dec(x_56); -x_113 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_113, 0, x_111); -lean_ctor_set(x_113, 1, x_112); -return x_113; +lean_dec(x_57); +x_114 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_114, 0, x_112); +lean_ctor_set(x_114, 1, x_113); +return x_114; } } } else { -lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; uint8_t x_132; uint8_t x_133; uint8_t x_134; lean_object* x_135; lean_object* x_136; -x_114 = lean_ctor_get(x_21, 0); -x_115 = lean_ctor_get(x_21, 1); -x_116 = lean_ctor_get(x_21, 2); -x_117 = lean_ctor_get(x_21, 3); -x_118 = lean_ctor_get(x_21, 4); -x_119 = lean_ctor_get(x_21, 5); +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; uint8_t x_133; uint8_t x_134; uint8_t x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; +x_115 = lean_ctor_get(x_21, 0); +x_116 = lean_ctor_get(x_21, 1); +x_117 = lean_ctor_get(x_21, 2); +x_118 = lean_ctor_get(x_21, 3); +x_119 = lean_ctor_get(x_21, 4); +x_120 = lean_ctor_get(x_21, 5); +lean_inc(x_120); lean_inc(x_119); lean_inc(x_118); lean_inc(x_117); lean_inc(x_116); lean_inc(x_115); -lean_inc(x_114); lean_dec(x_21); -x_120 = lean_unsigned_to_nat(1u); -x_121 = lean_nat_add(x_119, x_120); -x_122 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_122, 0, x_114); -lean_ctor_set(x_122, 1, x_115); -lean_ctor_set(x_122, 2, x_116); -lean_ctor_set(x_122, 3, x_117); -lean_ctor_set(x_122, 4, x_118); -lean_ctor_set(x_122, 5, x_121); -x_123 = lean_ctor_get(x_4, 0); -lean_inc(x_123); -x_124 = lean_ctor_get(x_4, 1); +x_121 = lean_unsigned_to_nat(1u); +x_122 = lean_nat_add(x_120, x_121); +x_123 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_123, 0, x_115); +lean_ctor_set(x_123, 1, x_116); +lean_ctor_set(x_123, 2, x_117); +lean_ctor_set(x_123, 3, x_118); +lean_ctor_set(x_123, 4, x_119); +lean_ctor_set(x_123, 5, x_122); +x_124 = lean_ctor_get(x_4, 0); lean_inc(x_124); -x_125 = lean_ctor_get(x_4, 2); +x_125 = lean_ctor_get(x_4, 1); lean_inc(x_125); -x_126 = lean_ctor_get(x_4, 3); +x_126 = lean_ctor_get(x_4, 2); lean_inc(x_126); -x_127 = lean_ctor_get(x_4, 4); +x_127 = lean_ctor_get(x_4, 3); lean_inc(x_127); -x_128 = lean_ctor_get(x_4, 5); +x_128 = lean_ctor_get(x_4, 4); lean_inc(x_128); -x_129 = lean_ctor_get(x_4, 6); +x_129 = lean_ctor_get(x_4, 5); lean_inc(x_129); -x_130 = lean_ctor_get(x_4, 7); +x_130 = lean_ctor_get(x_4, 6); lean_inc(x_130); -x_131 = lean_ctor_get(x_4, 8); +x_131 = lean_ctor_get(x_4, 7); lean_inc(x_131); -x_132 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); -x_133 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); -x_134 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 2); -x_135 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_135, 0, x_123); -lean_ctor_set(x_135, 1, x_124); -lean_ctor_set(x_135, 2, x_125); -lean_ctor_set(x_135, 3, x_126); -lean_ctor_set(x_135, 4, x_127); -lean_ctor_set(x_135, 5, x_128); -lean_ctor_set(x_135, 6, x_129); -lean_ctor_set(x_135, 7, x_130); -lean_ctor_set(x_135, 8, x_131); -lean_ctor_set(x_135, 9, x_119); -lean_ctor_set_uint8(x_135, sizeof(void*)*10, x_132); -lean_ctor_set_uint8(x_135, sizeof(void*)*10 + 1, x_133); -lean_ctor_set_uint8(x_135, sizeof(void*)*10 + 2, x_134); -x_136 = l___private_Lean_Elab_Quotation_8__letBindRhss___main(x_1, x_11, x_2, x_135, x_122); -if (lean_obj_tag(x_136) == 0) +x_132 = lean_ctor_get(x_4, 8); +lean_inc(x_132); +x_133 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_134 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_135 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +x_136 = lean_ctor_get(x_4, 10); +lean_inc(x_136); +x_137 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_137, 0, x_124); +lean_ctor_set(x_137, 1, x_125); +lean_ctor_set(x_137, 2, x_126); +lean_ctor_set(x_137, 3, x_127); +lean_ctor_set(x_137, 4, x_128); +lean_ctor_set(x_137, 5, x_129); +lean_ctor_set(x_137, 6, x_130); +lean_ctor_set(x_137, 7, x_131); +lean_ctor_set(x_137, 8, x_132); +lean_ctor_set(x_137, 9, x_120); +lean_ctor_set(x_137, 10, x_136); +lean_ctor_set_uint8(x_137, sizeof(void*)*11, x_133); +lean_ctor_set_uint8(x_137, sizeof(void*)*11 + 1, x_134); +lean_ctor_set_uint8(x_137, sizeof(void*)*11 + 2, x_135); +x_138 = l___private_Lean_Elab_Quotation_8__letBindRhss___main(x_1, x_11, x_2, x_137, x_123); +if (lean_obj_tag(x_138) == 0) { -lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; -x_137 = lean_ctor_get(x_136, 0); -lean_inc(x_137); -x_138 = lean_ctor_get(x_136, 1); -lean_inc(x_138); -lean_dec(x_136); -x_139 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_138); -lean_dec(x_4); -x_140 = lean_ctor_get(x_139, 0); +lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; +x_139 = lean_ctor_get(x_138, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_138, 1); lean_inc(x_140); -x_141 = lean_ctor_get(x_139, 1); -lean_inc(x_141); -lean_dec(x_139); -x_142 = l_Lean_Elab_Term_getMainModule___rarg(x_141); -x_143 = lean_ctor_get(x_142, 0); +lean_dec(x_138); +x_141 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_140); +lean_dec(x_4); +x_142 = lean_ctor_get(x_141, 0); +lean_inc(x_142); +x_143 = lean_ctor_get(x_141, 1); lean_inc(x_143); -x_144 = lean_ctor_get(x_142, 1); -lean_inc(x_144); -if (lean_is_exclusive(x_142)) { - lean_ctor_release(x_142, 0); - lean_ctor_release(x_142, 1); - x_145 = x_142; +lean_dec(x_141); +x_144 = l_Lean_Elab_Term_getMainModule___rarg(x_143); +x_145 = lean_ctor_get(x_144, 0); +lean_inc(x_145); +x_146 = lean_ctor_get(x_144, 1); +lean_inc(x_146); +if (lean_is_exclusive(x_144)) { + lean_ctor_release(x_144, 0); + lean_ctor_release(x_144, 1); + x_147 = x_144; } else { - lean_dec_ref(x_142); - x_145 = lean_box(0); + lean_dec_ref(x_144); + x_147 = lean_box(0); } -x_146 = l_Lean_addMacroScope(x_143, x_22, x_140); -x_147 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_147, 0, x_25); -lean_ctor_set(x_147, 1, x_26); -lean_ctor_set(x_147, 2, x_146); -lean_ctor_set(x_147, 3, x_24); -x_148 = lean_array_push(x_28, x_147); -x_149 = lean_array_push(x_148, x_30); -x_150 = lean_array_push(x_149, x_30); -x_151 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; -x_152 = lean_array_push(x_150, x_151); -x_153 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__13; -x_154 = lean_array_push(x_153, x_13); -x_155 = l_Lean_Parser_Term_fun___elambda__1___closed__2; -x_156 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_156, 0, x_155); -lean_ctor_set(x_156, 1, x_154); -x_157 = lean_array_push(x_152, x_156); -x_158 = l_Lean_Parser_Term_letIdDecl___closed__2; -x_159 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_159, 0, x_158); -lean_ctor_set(x_159, 1, x_157); -x_160 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; -x_161 = lean_array_push(x_160, x_159); -x_162 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; -x_163 = lean_array_push(x_161, x_162); -x_164 = lean_array_push(x_163, x_137); -x_165 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_166 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_166, 0, x_165); -lean_ctor_set(x_166, 1, x_164); -if (lean_is_scalar(x_145)) { - x_167 = lean_alloc_ctor(0, 2, 0); +x_148 = l_Lean_addMacroScope(x_145, x_22, x_142); +x_149 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_149, 0, x_25); +lean_ctor_set(x_149, 1, x_26); +lean_ctor_set(x_149, 2, x_148); +lean_ctor_set(x_149, 3, x_24); +x_150 = lean_array_push(x_28, x_149); +x_151 = lean_array_push(x_150, x_30); +x_152 = lean_array_push(x_151, x_30); +x_153 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; +x_154 = lean_array_push(x_152, x_153); +x_155 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__13; +x_156 = lean_array_push(x_155, x_13); +x_157 = l_Lean_Parser_Term_fun___elambda__1___closed__2; +x_158 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_158, 0, x_157); +lean_ctor_set(x_158, 1, x_156); +x_159 = lean_array_push(x_154, x_158); +x_160 = l_Lean_Parser_Term_letIdDecl___closed__2; +x_161 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_161, 0, x_160); +lean_ctor_set(x_161, 1, x_159); +x_162 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; +x_163 = lean_array_push(x_162, x_161); +x_164 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; +x_165 = lean_array_push(x_163, x_164); +x_166 = lean_array_push(x_165, x_139); +x_167 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_168 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_168, 0, x_167); +lean_ctor_set(x_168, 1, x_166); +if (lean_is_scalar(x_147)) { + x_169 = lean_alloc_ctor(0, 2, 0); } else { - x_167 = x_145; + x_169 = x_147; } -lean_ctor_set(x_167, 0, x_166); -lean_ctor_set(x_167, 1, x_144); -return x_167; +lean_ctor_set(x_169, 0, x_168); +lean_ctor_set(x_169, 1, x_146); +return x_169; } else { -lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; +lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_dec(x_13); lean_dec(x_4); -x_168 = lean_ctor_get(x_136, 0); -lean_inc(x_168); -x_169 = lean_ctor_get(x_136, 1); -lean_inc(x_169); -if (lean_is_exclusive(x_136)) { - lean_ctor_release(x_136, 0); - lean_ctor_release(x_136, 1); - x_170 = x_136; +x_170 = lean_ctor_get(x_138, 0); +lean_inc(x_170); +x_171 = lean_ctor_get(x_138, 1); +lean_inc(x_171); +if (lean_is_exclusive(x_138)) { + lean_ctor_release(x_138, 0); + lean_ctor_release(x_138, 1); + x_172 = x_138; } else { - lean_dec_ref(x_136); - x_170 = lean_box(0); + lean_dec_ref(x_138); + x_172 = lean_box(0); } -if (lean_is_scalar(x_170)) { - x_171 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_172)) { + x_173 = lean_alloc_ctor(1, 2, 0); } else { - x_171 = x_170; + x_173 = x_172; } -lean_ctor_set(x_171, 0, x_168); -lean_ctor_set(x_171, 1, x_169); -return x_171; +lean_ctor_set(x_173, 0, x_170); +lean_ctor_set(x_173, 1, x_171); +return x_173; } } } else { -lean_object* x_172; lean_object* x_173; lean_object* x_174; uint8_t x_175; +lean_object* x_174; lean_object* x_175; lean_object* x_176; uint8_t x_177; lean_free_object(x_2); -x_172 = l_List_redLength___main___rarg(x_15); -x_173 = lean_mk_empty_array_with_capacity(x_172); -lean_dec(x_172); +x_174 = l_List_redLength___main___rarg(x_15); +x_175 = lean_mk_empty_array_with_capacity(x_174); +lean_dec(x_174); lean_inc(x_15); -x_174 = l_List_toArrayAux___main___rarg(x_15, x_173); -x_175 = !lean_is_exclusive(x_15); -if (x_175 == 0) +x_176 = l_List_toArrayAux___main___rarg(x_15, x_175); +x_177 = !lean_is_exclusive(x_15); +if (x_177 == 0) { -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; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; uint8_t x_205; -x_176 = lean_ctor_get(x_15, 1); -lean_dec(x_176); -x_177 = lean_ctor_get(x_15, 0); -lean_dec(x_177); -x_178 = l_Lean_nullKind___closed__2; -x_179 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_179, 0, x_178); -lean_ctor_set(x_179, 1, x_174); -x_180 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__16; -x_181 = lean_array_push(x_180, x_179); -x_182 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__15; -x_183 = lean_array_push(x_181, x_182); -x_184 = lean_array_push(x_183, x_13); -x_185 = l_Lean_Parser_Term_fun___elambda__1___closed__2; -x_186 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_186, 0, x_185); -lean_ctor_set(x_186, 1, x_184); -x_187 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5); -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_190 = l_Lean_Elab_Term_getMainModule___rarg(x_189); -x_191 = lean_ctor_get(x_190, 0); +lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; uint8_t x_207; +x_178 = lean_ctor_get(x_15, 1); +lean_dec(x_178); +x_179 = lean_ctor_get(x_15, 0); +lean_dec(x_179); +x_180 = l_Lean_nullKind___closed__2; +x_181 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_181, 0, x_180); +lean_ctor_set(x_181, 1, x_176); +x_182 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__16; +x_183 = lean_array_push(x_182, x_181); +x_184 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__15; +x_185 = lean_array_push(x_183, x_184); +x_186 = lean_array_push(x_185, x_13); +x_187 = l_Lean_Parser_Term_fun___elambda__1___closed__2; +x_188 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_188, 0, x_187); +lean_ctor_set(x_188, 1, x_186); +x_189 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5); +x_190 = lean_ctor_get(x_189, 0); +lean_inc(x_190); +x_191 = lean_ctor_get(x_189, 1); lean_inc(x_191); -x_192 = lean_ctor_get(x_190, 1); -lean_inc(x_192); -lean_dec(x_190); -x_193 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__4; -x_194 = l_Lean_addMacroScope(x_191, x_193, x_188); -x_195 = lean_box(0); -x_196 = l_Lean_SourceInfo_inhabited___closed__1; -x_197 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__3; -x_198 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_198, 0, x_196); -lean_ctor_set(x_198, 1, x_197); -lean_ctor_set(x_198, 2, x_194); -lean_ctor_set(x_198, 3, x_195); -x_199 = l_Array_empty___closed__1; -x_200 = lean_array_push(x_199, x_198); -x_201 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__17; -x_202 = lean_array_push(x_200, x_201); -x_203 = l_Lean_mkTermIdFromIdent___closed__2; -x_204 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_204, 0, x_203); -lean_ctor_set(x_204, 1, x_202); -lean_ctor_set(x_9, 1, x_204); +lean_dec(x_189); +x_192 = l_Lean_Elab_Term_getMainModule___rarg(x_191); +x_193 = lean_ctor_get(x_192, 0); +lean_inc(x_193); +x_194 = lean_ctor_get(x_192, 1); +lean_inc(x_194); +lean_dec(x_192); +x_195 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__4; +x_196 = l_Lean_addMacroScope(x_193, x_195, x_190); +x_197 = lean_box(0); +x_198 = l_Lean_SourceInfo_inhabited___closed__1; +x_199 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__3; +x_200 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_200, 0, x_198); +lean_ctor_set(x_200, 1, x_199); +lean_ctor_set(x_200, 2, x_196); +lean_ctor_set(x_200, 3, x_197); +x_201 = l_Array_empty___closed__1; +x_202 = lean_array_push(x_201, x_200); +x_203 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__17; +x_204 = lean_array_push(x_202, x_203); +x_205 = l_Lean_mkTermIdFromIdent___closed__2; +x_206 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_206, 0, x_205); +lean_ctor_set(x_206, 1, x_204); +lean_ctor_set(x_9, 1, x_206); lean_ctor_set(x_15, 1, x_3); lean_ctor_set(x_15, 0, x_9); -x_205 = !lean_is_exclusive(x_192); -if (x_205 == 0) +x_207 = !lean_is_exclusive(x_194); +if (x_207 == 0) { -lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; uint8_t x_218; uint8_t x_219; uint8_t x_220; lean_object* x_221; lean_object* x_222; -x_206 = lean_ctor_get(x_192, 5); -x_207 = lean_unsigned_to_nat(1u); -x_208 = lean_nat_add(x_206, x_207); -lean_ctor_set(x_192, 5, x_208); -x_209 = lean_ctor_get(x_4, 0); -lean_inc(x_209); -x_210 = lean_ctor_get(x_4, 1); -lean_inc(x_210); -x_211 = lean_ctor_get(x_4, 2); +lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; uint8_t x_220; uint8_t x_221; uint8_t x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; +x_208 = lean_ctor_get(x_194, 5); +x_209 = lean_unsigned_to_nat(1u); +x_210 = lean_nat_add(x_208, x_209); +lean_ctor_set(x_194, 5, x_210); +x_211 = lean_ctor_get(x_4, 0); lean_inc(x_211); -x_212 = lean_ctor_get(x_4, 3); +x_212 = lean_ctor_get(x_4, 1); lean_inc(x_212); -x_213 = lean_ctor_get(x_4, 4); +x_213 = lean_ctor_get(x_4, 2); lean_inc(x_213); -x_214 = lean_ctor_get(x_4, 5); +x_214 = lean_ctor_get(x_4, 3); lean_inc(x_214); -x_215 = lean_ctor_get(x_4, 6); +x_215 = lean_ctor_get(x_4, 4); lean_inc(x_215); -x_216 = lean_ctor_get(x_4, 7); +x_216 = lean_ctor_get(x_4, 5); lean_inc(x_216); -x_217 = lean_ctor_get(x_4, 8); +x_217 = lean_ctor_get(x_4, 6); lean_inc(x_217); -x_218 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); -x_219 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); -x_220 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 2); -x_221 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_221, 0, x_209); -lean_ctor_set(x_221, 1, x_210); -lean_ctor_set(x_221, 2, x_211); -lean_ctor_set(x_221, 3, x_212); -lean_ctor_set(x_221, 4, x_213); -lean_ctor_set(x_221, 5, x_214); -lean_ctor_set(x_221, 6, x_215); -lean_ctor_set(x_221, 7, x_216); -lean_ctor_set(x_221, 8, x_217); -lean_ctor_set(x_221, 9, x_206); -lean_ctor_set_uint8(x_221, sizeof(void*)*10, x_218); -lean_ctor_set_uint8(x_221, sizeof(void*)*10 + 1, x_219); -lean_ctor_set_uint8(x_221, sizeof(void*)*10 + 2, x_220); -x_222 = l___private_Lean_Elab_Quotation_8__letBindRhss___main(x_1, x_11, x_15, x_221, x_192); -if (lean_obj_tag(x_222) == 0) -{ -lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; uint8_t x_229; -x_223 = lean_ctor_get(x_222, 0); +x_218 = lean_ctor_get(x_4, 7); +lean_inc(x_218); +x_219 = lean_ctor_get(x_4, 8); +lean_inc(x_219); +x_220 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_221 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_222 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +x_223 = lean_ctor_get(x_4, 10); lean_inc(x_223); -x_224 = lean_ctor_get(x_222, 1); -lean_inc(x_224); -lean_dec(x_222); -x_225 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_224); -lean_dec(x_4); +x_224 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_224, 0, x_211); +lean_ctor_set(x_224, 1, x_212); +lean_ctor_set(x_224, 2, x_213); +lean_ctor_set(x_224, 3, x_214); +lean_ctor_set(x_224, 4, x_215); +lean_ctor_set(x_224, 5, x_216); +lean_ctor_set(x_224, 6, x_217); +lean_ctor_set(x_224, 7, x_218); +lean_ctor_set(x_224, 8, x_219); +lean_ctor_set(x_224, 9, x_208); +lean_ctor_set(x_224, 10, x_223); +lean_ctor_set_uint8(x_224, sizeof(void*)*11, x_220); +lean_ctor_set_uint8(x_224, sizeof(void*)*11 + 1, x_221); +lean_ctor_set_uint8(x_224, sizeof(void*)*11 + 2, x_222); +x_225 = l___private_Lean_Elab_Quotation_8__letBindRhss___main(x_1, x_11, x_15, x_224, x_194); +if (lean_obj_tag(x_225) == 0) +{ +lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; uint8_t x_232; x_226 = lean_ctor_get(x_225, 0); lean_inc(x_226); x_227 = lean_ctor_get(x_225, 1); lean_inc(x_227); lean_dec(x_225); -x_228 = l_Lean_Elab_Term_getMainModule___rarg(x_227); -x_229 = !lean_is_exclusive(x_228); -if (x_229 == 0) -{ -lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; -x_230 = lean_ctor_get(x_228, 0); -x_231 = l_Lean_addMacroScope(x_230, x_193, x_226); -x_232 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_232, 0, x_196); -lean_ctor_set(x_232, 1, x_197); -lean_ctor_set(x_232, 2, x_231); -lean_ctor_set(x_232, 3, x_195); -x_233 = lean_array_push(x_199, x_232); -x_234 = lean_array_push(x_233, x_201); -x_235 = lean_array_push(x_234, x_201); -x_236 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; -x_237 = lean_array_push(x_235, x_236); -x_238 = lean_array_push(x_237, x_186); -x_239 = l_Lean_Parser_Term_letIdDecl___closed__2; -x_240 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_240, 0, x_239); -lean_ctor_set(x_240, 1, x_238); -x_241 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; -x_242 = lean_array_push(x_241, x_240); -x_243 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; -x_244 = lean_array_push(x_242, x_243); -x_245 = lean_array_push(x_244, x_223); -x_246 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_247 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_247, 0, x_246); -lean_ctor_set(x_247, 1, x_245); -lean_ctor_set(x_228, 0, x_247); -return x_228; -} -else -{ -lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; -x_248 = lean_ctor_get(x_228, 0); -x_249 = lean_ctor_get(x_228, 1); -lean_inc(x_249); -lean_inc(x_248); -lean_dec(x_228); -x_250 = l_Lean_addMacroScope(x_248, x_193, x_226); -x_251 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_251, 0, x_196); -lean_ctor_set(x_251, 1, x_197); -lean_ctor_set(x_251, 2, x_250); -lean_ctor_set(x_251, 3, x_195); -x_252 = lean_array_push(x_199, x_251); -x_253 = lean_array_push(x_252, x_201); -x_254 = lean_array_push(x_253, x_201); -x_255 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; -x_256 = lean_array_push(x_254, x_255); -x_257 = lean_array_push(x_256, x_186); -x_258 = l_Lean_Parser_Term_letIdDecl___closed__2; -x_259 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_259, 0, x_258); -lean_ctor_set(x_259, 1, x_257); -x_260 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; -x_261 = lean_array_push(x_260, x_259); -x_262 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; -x_263 = lean_array_push(x_261, x_262); -x_264 = lean_array_push(x_263, x_223); -x_265 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_266 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_266, 0, x_265); -lean_ctor_set(x_266, 1, x_264); -x_267 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_267, 0, x_266); -lean_ctor_set(x_267, 1, x_249); -return x_267; -} -} -else -{ -uint8_t x_268; -lean_dec(x_186); +x_228 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_227); lean_dec(x_4); -x_268 = !lean_is_exclusive(x_222); -if (x_268 == 0) +x_229 = lean_ctor_get(x_228, 0); +lean_inc(x_229); +x_230 = lean_ctor_get(x_228, 1); +lean_inc(x_230); +lean_dec(x_228); +x_231 = l_Lean_Elab_Term_getMainModule___rarg(x_230); +x_232 = !lean_is_exclusive(x_231); +if (x_232 == 0) { -return x_222; +lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; +x_233 = lean_ctor_get(x_231, 0); +x_234 = l_Lean_addMacroScope(x_233, x_195, x_229); +x_235 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_235, 0, x_198); +lean_ctor_set(x_235, 1, x_199); +lean_ctor_set(x_235, 2, x_234); +lean_ctor_set(x_235, 3, x_197); +x_236 = lean_array_push(x_201, x_235); +x_237 = lean_array_push(x_236, x_203); +x_238 = lean_array_push(x_237, x_203); +x_239 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; +x_240 = lean_array_push(x_238, x_239); +x_241 = lean_array_push(x_240, x_188); +x_242 = l_Lean_Parser_Term_letIdDecl___closed__2; +x_243 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_243, 0, x_242); +lean_ctor_set(x_243, 1, x_241); +x_244 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; +x_245 = lean_array_push(x_244, x_243); +x_246 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; +x_247 = lean_array_push(x_245, x_246); +x_248 = lean_array_push(x_247, x_226); +x_249 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_250 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_250, 0, x_249); +lean_ctor_set(x_250, 1, x_248); +lean_ctor_set(x_231, 0, x_250); +return x_231; } else { -lean_object* x_269; lean_object* x_270; lean_object* x_271; -x_269 = lean_ctor_get(x_222, 0); -x_270 = lean_ctor_get(x_222, 1); -lean_inc(x_270); -lean_inc(x_269); -lean_dec(x_222); -x_271 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_271, 0, x_269); -lean_ctor_set(x_271, 1, x_270); -return x_271; +lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; +x_251 = lean_ctor_get(x_231, 0); +x_252 = lean_ctor_get(x_231, 1); +lean_inc(x_252); +lean_inc(x_251); +lean_dec(x_231); +x_253 = l_Lean_addMacroScope(x_251, x_195, x_229); +x_254 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_254, 0, x_198); +lean_ctor_set(x_254, 1, x_199); +lean_ctor_set(x_254, 2, x_253); +lean_ctor_set(x_254, 3, x_197); +x_255 = lean_array_push(x_201, x_254); +x_256 = lean_array_push(x_255, x_203); +x_257 = lean_array_push(x_256, x_203); +x_258 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; +x_259 = lean_array_push(x_257, x_258); +x_260 = lean_array_push(x_259, x_188); +x_261 = l_Lean_Parser_Term_letIdDecl___closed__2; +x_262 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_262, 0, x_261); +lean_ctor_set(x_262, 1, x_260); +x_263 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; +x_264 = lean_array_push(x_263, x_262); +x_265 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; +x_266 = lean_array_push(x_264, x_265); +x_267 = lean_array_push(x_266, x_226); +x_268 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_269 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_269, 0, x_268); +lean_ctor_set(x_269, 1, x_267); +x_270 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_270, 0, x_269); +lean_ctor_set(x_270, 1, x_252); +return x_270; +} +} +else +{ +uint8_t x_271; +lean_dec(x_188); +lean_dec(x_4); +x_271 = !lean_is_exclusive(x_225); +if (x_271 == 0) +{ +return x_225; +} +else +{ +lean_object* x_272; lean_object* x_273; lean_object* x_274; +x_272 = lean_ctor_get(x_225, 0); +x_273 = lean_ctor_get(x_225, 1); +lean_inc(x_273); +lean_inc(x_272); +lean_dec(x_225); +x_274 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_274, 0, x_272); +lean_ctor_set(x_274, 1, x_273); +return x_274; } } } else { -lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; uint8_t x_290; uint8_t x_291; uint8_t x_292; lean_object* x_293; lean_object* x_294; -x_272 = lean_ctor_get(x_192, 0); -x_273 = lean_ctor_get(x_192, 1); -x_274 = lean_ctor_get(x_192, 2); -x_275 = lean_ctor_get(x_192, 3); -x_276 = lean_ctor_get(x_192, 4); -x_277 = lean_ctor_get(x_192, 5); +lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; uint8_t x_293; uint8_t x_294; uint8_t x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; +x_275 = lean_ctor_get(x_194, 0); +x_276 = lean_ctor_get(x_194, 1); +x_277 = lean_ctor_get(x_194, 2); +x_278 = lean_ctor_get(x_194, 3); +x_279 = lean_ctor_get(x_194, 4); +x_280 = lean_ctor_get(x_194, 5); +lean_inc(x_280); +lean_inc(x_279); +lean_inc(x_278); lean_inc(x_277); lean_inc(x_276); lean_inc(x_275); -lean_inc(x_274); -lean_inc(x_273); -lean_inc(x_272); -lean_dec(x_192); -x_278 = lean_unsigned_to_nat(1u); -x_279 = lean_nat_add(x_277, x_278); -x_280 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_280, 0, x_272); -lean_ctor_set(x_280, 1, x_273); -lean_ctor_set(x_280, 2, x_274); -lean_ctor_set(x_280, 3, x_275); -lean_ctor_set(x_280, 4, x_276); -lean_ctor_set(x_280, 5, x_279); -x_281 = lean_ctor_get(x_4, 0); -lean_inc(x_281); -x_282 = lean_ctor_get(x_4, 1); -lean_inc(x_282); -x_283 = lean_ctor_get(x_4, 2); -lean_inc(x_283); -x_284 = lean_ctor_get(x_4, 3); +lean_dec(x_194); +x_281 = lean_unsigned_to_nat(1u); +x_282 = lean_nat_add(x_280, x_281); +x_283 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_283, 0, x_275); +lean_ctor_set(x_283, 1, x_276); +lean_ctor_set(x_283, 2, x_277); +lean_ctor_set(x_283, 3, x_278); +lean_ctor_set(x_283, 4, x_279); +lean_ctor_set(x_283, 5, x_282); +x_284 = lean_ctor_get(x_4, 0); lean_inc(x_284); -x_285 = lean_ctor_get(x_4, 4); +x_285 = lean_ctor_get(x_4, 1); lean_inc(x_285); -x_286 = lean_ctor_get(x_4, 5); +x_286 = lean_ctor_get(x_4, 2); lean_inc(x_286); -x_287 = lean_ctor_get(x_4, 6); +x_287 = lean_ctor_get(x_4, 3); lean_inc(x_287); -x_288 = lean_ctor_get(x_4, 7); +x_288 = lean_ctor_get(x_4, 4); lean_inc(x_288); -x_289 = lean_ctor_get(x_4, 8); +x_289 = lean_ctor_get(x_4, 5); lean_inc(x_289); -x_290 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); -x_291 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); -x_292 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 2); -x_293 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_293, 0, x_281); -lean_ctor_set(x_293, 1, x_282); -lean_ctor_set(x_293, 2, x_283); -lean_ctor_set(x_293, 3, x_284); -lean_ctor_set(x_293, 4, x_285); -lean_ctor_set(x_293, 5, x_286); -lean_ctor_set(x_293, 6, x_287); -lean_ctor_set(x_293, 7, x_288); -lean_ctor_set(x_293, 8, x_289); -lean_ctor_set(x_293, 9, x_277); -lean_ctor_set_uint8(x_293, sizeof(void*)*10, x_290); -lean_ctor_set_uint8(x_293, sizeof(void*)*10 + 1, x_291); -lean_ctor_set_uint8(x_293, sizeof(void*)*10 + 2, x_292); -x_294 = l___private_Lean_Elab_Quotation_8__letBindRhss___main(x_1, x_11, x_15, x_293, x_280); -if (lean_obj_tag(x_294) == 0) -{ -lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; -x_295 = lean_ctor_get(x_294, 0); -lean_inc(x_295); -x_296 = lean_ctor_get(x_294, 1); +x_290 = lean_ctor_get(x_4, 6); +lean_inc(x_290); +x_291 = lean_ctor_get(x_4, 7); +lean_inc(x_291); +x_292 = lean_ctor_get(x_4, 8); +lean_inc(x_292); +x_293 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_294 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_295 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +x_296 = lean_ctor_get(x_4, 10); lean_inc(x_296); -lean_dec(x_294); -x_297 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_296); -lean_dec(x_4); -x_298 = lean_ctor_get(x_297, 0); -lean_inc(x_298); -x_299 = lean_ctor_get(x_297, 1); -lean_inc(x_299); -lean_dec(x_297); -x_300 = l_Lean_Elab_Term_getMainModule___rarg(x_299); -x_301 = lean_ctor_get(x_300, 0); -lean_inc(x_301); -x_302 = lean_ctor_get(x_300, 1); -lean_inc(x_302); -if (lean_is_exclusive(x_300)) { - lean_ctor_release(x_300, 0); - lean_ctor_release(x_300, 1); - x_303 = x_300; -} else { - lean_dec_ref(x_300); - x_303 = lean_box(0); -} -x_304 = l_Lean_addMacroScope(x_301, x_193, x_298); -x_305 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_305, 0, x_196); -lean_ctor_set(x_305, 1, x_197); -lean_ctor_set(x_305, 2, x_304); -lean_ctor_set(x_305, 3, x_195); -x_306 = lean_array_push(x_199, x_305); -x_307 = lean_array_push(x_306, x_201); -x_308 = lean_array_push(x_307, x_201); -x_309 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; -x_310 = lean_array_push(x_308, x_309); -x_311 = lean_array_push(x_310, x_186); -x_312 = l_Lean_Parser_Term_letIdDecl___closed__2; -x_313 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_313, 0, x_312); -lean_ctor_set(x_313, 1, x_311); -x_314 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; -x_315 = lean_array_push(x_314, x_313); -x_316 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; -x_317 = lean_array_push(x_315, x_316); -x_318 = lean_array_push(x_317, x_295); -x_319 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_320 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_320, 0, x_319); -lean_ctor_set(x_320, 1, x_318); -if (lean_is_scalar(x_303)) { - x_321 = lean_alloc_ctor(0, 2, 0); -} else { - x_321 = x_303; -} -lean_ctor_set(x_321, 0, x_320); -lean_ctor_set(x_321, 1, x_302); -return x_321; -} -else +x_297 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_297, 0, x_284); +lean_ctor_set(x_297, 1, x_285); +lean_ctor_set(x_297, 2, x_286); +lean_ctor_set(x_297, 3, x_287); +lean_ctor_set(x_297, 4, x_288); +lean_ctor_set(x_297, 5, x_289); +lean_ctor_set(x_297, 6, x_290); +lean_ctor_set(x_297, 7, x_291); +lean_ctor_set(x_297, 8, x_292); +lean_ctor_set(x_297, 9, x_280); +lean_ctor_set(x_297, 10, x_296); +lean_ctor_set_uint8(x_297, sizeof(void*)*11, x_293); +lean_ctor_set_uint8(x_297, sizeof(void*)*11 + 1, x_294); +lean_ctor_set_uint8(x_297, sizeof(void*)*11 + 2, x_295); +x_298 = l___private_Lean_Elab_Quotation_8__letBindRhss___main(x_1, x_11, x_15, x_297, x_283); +if (lean_obj_tag(x_298) == 0) { -lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; -lean_dec(x_186); +lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; +x_299 = lean_ctor_get(x_298, 0); +lean_inc(x_299); +x_300 = lean_ctor_get(x_298, 1); +lean_inc(x_300); +lean_dec(x_298); +x_301 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_300); lean_dec(x_4); -x_322 = lean_ctor_get(x_294, 0); -lean_inc(x_322); -x_323 = lean_ctor_get(x_294, 1); -lean_inc(x_323); -if (lean_is_exclusive(x_294)) { - lean_ctor_release(x_294, 0); - lean_ctor_release(x_294, 1); - x_324 = x_294; +x_302 = lean_ctor_get(x_301, 0); +lean_inc(x_302); +x_303 = lean_ctor_get(x_301, 1); +lean_inc(x_303); +lean_dec(x_301); +x_304 = l_Lean_Elab_Term_getMainModule___rarg(x_303); +x_305 = lean_ctor_get(x_304, 0); +lean_inc(x_305); +x_306 = lean_ctor_get(x_304, 1); +lean_inc(x_306); +if (lean_is_exclusive(x_304)) { + lean_ctor_release(x_304, 0); + lean_ctor_release(x_304, 1); + x_307 = x_304; } else { - lean_dec_ref(x_294); - x_324 = lean_box(0); + lean_dec_ref(x_304); + x_307 = lean_box(0); } -if (lean_is_scalar(x_324)) { - x_325 = lean_alloc_ctor(1, 2, 0); +x_308 = l_Lean_addMacroScope(x_305, x_195, x_302); +x_309 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_309, 0, x_198); +lean_ctor_set(x_309, 1, x_199); +lean_ctor_set(x_309, 2, x_308); +lean_ctor_set(x_309, 3, x_197); +x_310 = lean_array_push(x_201, x_309); +x_311 = lean_array_push(x_310, x_203); +x_312 = lean_array_push(x_311, x_203); +x_313 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; +x_314 = lean_array_push(x_312, x_313); +x_315 = lean_array_push(x_314, x_188); +x_316 = l_Lean_Parser_Term_letIdDecl___closed__2; +x_317 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_317, 0, x_316); +lean_ctor_set(x_317, 1, x_315); +x_318 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; +x_319 = lean_array_push(x_318, x_317); +x_320 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; +x_321 = lean_array_push(x_319, x_320); +x_322 = lean_array_push(x_321, x_299); +x_323 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_324 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_324, 0, x_323); +lean_ctor_set(x_324, 1, x_322); +if (lean_is_scalar(x_307)) { + x_325 = lean_alloc_ctor(0, 2, 0); } else { - x_325 = x_324; + x_325 = x_307; } -lean_ctor_set(x_325, 0, x_322); -lean_ctor_set(x_325, 1, x_323); +lean_ctor_set(x_325, 0, x_324); +lean_ctor_set(x_325, 1, x_306); return x_325; } +else +{ +lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; +lean_dec(x_188); +lean_dec(x_4); +x_326 = lean_ctor_get(x_298, 0); +lean_inc(x_326); +x_327 = lean_ctor_get(x_298, 1); +lean_inc(x_327); +if (lean_is_exclusive(x_298)) { + lean_ctor_release(x_298, 0); + lean_ctor_release(x_298, 1); + x_328 = x_298; +} else { + lean_dec_ref(x_298); + x_328 = lean_box(0); +} +if (lean_is_scalar(x_328)) { + x_329 = lean_alloc_ctor(1, 2, 0); +} else { + x_329 = x_328; +} +lean_ctor_set(x_329, 0, x_326); +lean_ctor_set(x_329, 1, x_327); +return x_329; +} } } else { -lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; uint8_t x_373; uint8_t x_374; uint8_t x_375; lean_object* x_376; lean_object* x_377; +lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; uint8_t x_377; uint8_t x_378; uint8_t x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_dec(x_15); -x_326 = l_Lean_nullKind___closed__2; -x_327 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_327, 0, x_326); -lean_ctor_set(x_327, 1, x_174); -x_328 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__16; -x_329 = lean_array_push(x_328, x_327); -x_330 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__15; -x_331 = lean_array_push(x_329, x_330); -x_332 = lean_array_push(x_331, x_13); -x_333 = l_Lean_Parser_Term_fun___elambda__1___closed__2; -x_334 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_334, 0, x_333); -lean_ctor_set(x_334, 1, x_332); -x_335 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5); -x_336 = lean_ctor_get(x_335, 0); -lean_inc(x_336); -x_337 = lean_ctor_get(x_335, 1); -lean_inc(x_337); -lean_dec(x_335); -x_338 = l_Lean_Elab_Term_getMainModule___rarg(x_337); -x_339 = lean_ctor_get(x_338, 0); -lean_inc(x_339); -x_340 = lean_ctor_get(x_338, 1); +x_330 = l_Lean_nullKind___closed__2; +x_331 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_331, 0, x_330); +lean_ctor_set(x_331, 1, x_176); +x_332 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__16; +x_333 = lean_array_push(x_332, x_331); +x_334 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__15; +x_335 = lean_array_push(x_333, x_334); +x_336 = lean_array_push(x_335, x_13); +x_337 = l_Lean_Parser_Term_fun___elambda__1___closed__2; +x_338 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_338, 0, x_337); +lean_ctor_set(x_338, 1, x_336); +x_339 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5); +x_340 = lean_ctor_get(x_339, 0); lean_inc(x_340); -lean_dec(x_338); -x_341 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__4; -x_342 = l_Lean_addMacroScope(x_339, x_341, x_336); -x_343 = lean_box(0); -x_344 = l_Lean_SourceInfo_inhabited___closed__1; -x_345 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__3; -x_346 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_346, 0, x_344); -lean_ctor_set(x_346, 1, x_345); -lean_ctor_set(x_346, 2, x_342); -lean_ctor_set(x_346, 3, x_343); -x_347 = l_Array_empty___closed__1; -x_348 = lean_array_push(x_347, x_346); -x_349 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__17; -x_350 = lean_array_push(x_348, x_349); -x_351 = l_Lean_mkTermIdFromIdent___closed__2; -x_352 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_352, 0, x_351); -lean_ctor_set(x_352, 1, x_350); -lean_ctor_set(x_9, 1, x_352); -x_353 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_353, 0, x_9); -lean_ctor_set(x_353, 1, x_3); -x_354 = lean_ctor_get(x_340, 0); -lean_inc(x_354); -x_355 = lean_ctor_get(x_340, 1); -lean_inc(x_355); -x_356 = lean_ctor_get(x_340, 2); -lean_inc(x_356); -x_357 = lean_ctor_get(x_340, 3); -lean_inc(x_357); -x_358 = lean_ctor_get(x_340, 4); +x_341 = lean_ctor_get(x_339, 1); +lean_inc(x_341); +lean_dec(x_339); +x_342 = l_Lean_Elab_Term_getMainModule___rarg(x_341); +x_343 = lean_ctor_get(x_342, 0); +lean_inc(x_343); +x_344 = lean_ctor_get(x_342, 1); +lean_inc(x_344); +lean_dec(x_342); +x_345 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__4; +x_346 = l_Lean_addMacroScope(x_343, x_345, x_340); +x_347 = lean_box(0); +x_348 = l_Lean_SourceInfo_inhabited___closed__1; +x_349 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__3; +x_350 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_350, 0, x_348); +lean_ctor_set(x_350, 1, x_349); +lean_ctor_set(x_350, 2, x_346); +lean_ctor_set(x_350, 3, x_347); +x_351 = l_Array_empty___closed__1; +x_352 = lean_array_push(x_351, x_350); +x_353 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__17; +x_354 = lean_array_push(x_352, x_353); +x_355 = l_Lean_mkTermIdFromIdent___closed__2; +x_356 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_356, 0, x_355); +lean_ctor_set(x_356, 1, x_354); +lean_ctor_set(x_9, 1, x_356); +x_357 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_357, 0, x_9); +lean_ctor_set(x_357, 1, x_3); +x_358 = lean_ctor_get(x_344, 0); lean_inc(x_358); -x_359 = lean_ctor_get(x_340, 5); +x_359 = lean_ctor_get(x_344, 1); lean_inc(x_359); -if (lean_is_exclusive(x_340)) { - lean_ctor_release(x_340, 0); - lean_ctor_release(x_340, 1); - lean_ctor_release(x_340, 2); - lean_ctor_release(x_340, 3); - lean_ctor_release(x_340, 4); - lean_ctor_release(x_340, 5); - x_360 = x_340; +x_360 = lean_ctor_get(x_344, 2); +lean_inc(x_360); +x_361 = lean_ctor_get(x_344, 3); +lean_inc(x_361); +x_362 = lean_ctor_get(x_344, 4); +lean_inc(x_362); +x_363 = lean_ctor_get(x_344, 5); +lean_inc(x_363); +if (lean_is_exclusive(x_344)) { + lean_ctor_release(x_344, 0); + lean_ctor_release(x_344, 1); + lean_ctor_release(x_344, 2); + lean_ctor_release(x_344, 3); + lean_ctor_release(x_344, 4); + lean_ctor_release(x_344, 5); + x_364 = x_344; } else { - lean_dec_ref(x_340); - x_360 = lean_box(0); + lean_dec_ref(x_344); + x_364 = lean_box(0); } -x_361 = lean_unsigned_to_nat(1u); -x_362 = lean_nat_add(x_359, x_361); -if (lean_is_scalar(x_360)) { - x_363 = lean_alloc_ctor(0, 6, 0); +x_365 = lean_unsigned_to_nat(1u); +x_366 = lean_nat_add(x_363, x_365); +if (lean_is_scalar(x_364)) { + x_367 = lean_alloc_ctor(0, 6, 0); } else { - x_363 = x_360; + x_367 = x_364; } -lean_ctor_set(x_363, 0, x_354); -lean_ctor_set(x_363, 1, x_355); -lean_ctor_set(x_363, 2, x_356); -lean_ctor_set(x_363, 3, x_357); -lean_ctor_set(x_363, 4, x_358); -lean_ctor_set(x_363, 5, x_362); -x_364 = lean_ctor_get(x_4, 0); -lean_inc(x_364); -x_365 = lean_ctor_get(x_4, 1); -lean_inc(x_365); -x_366 = lean_ctor_get(x_4, 2); -lean_inc(x_366); -x_367 = lean_ctor_get(x_4, 3); -lean_inc(x_367); -x_368 = lean_ctor_get(x_4, 4); +lean_ctor_set(x_367, 0, x_358); +lean_ctor_set(x_367, 1, x_359); +lean_ctor_set(x_367, 2, x_360); +lean_ctor_set(x_367, 3, x_361); +lean_ctor_set(x_367, 4, x_362); +lean_ctor_set(x_367, 5, x_366); +x_368 = lean_ctor_get(x_4, 0); lean_inc(x_368); -x_369 = lean_ctor_get(x_4, 5); +x_369 = lean_ctor_get(x_4, 1); lean_inc(x_369); -x_370 = lean_ctor_get(x_4, 6); +x_370 = lean_ctor_get(x_4, 2); lean_inc(x_370); -x_371 = lean_ctor_get(x_4, 7); +x_371 = lean_ctor_get(x_4, 3); lean_inc(x_371); -x_372 = lean_ctor_get(x_4, 8); +x_372 = lean_ctor_get(x_4, 4); lean_inc(x_372); -x_373 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); -x_374 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); -x_375 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 2); -x_376 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_376, 0, x_364); -lean_ctor_set(x_376, 1, x_365); -lean_ctor_set(x_376, 2, x_366); -lean_ctor_set(x_376, 3, x_367); -lean_ctor_set(x_376, 4, x_368); -lean_ctor_set(x_376, 5, x_369); -lean_ctor_set(x_376, 6, x_370); -lean_ctor_set(x_376, 7, x_371); -lean_ctor_set(x_376, 8, x_372); -lean_ctor_set(x_376, 9, x_359); -lean_ctor_set_uint8(x_376, sizeof(void*)*10, x_373); -lean_ctor_set_uint8(x_376, sizeof(void*)*10 + 1, x_374); -lean_ctor_set_uint8(x_376, sizeof(void*)*10 + 2, x_375); -x_377 = l___private_Lean_Elab_Quotation_8__letBindRhss___main(x_1, x_11, x_353, x_376, x_363); -if (lean_obj_tag(x_377) == 0) +x_373 = lean_ctor_get(x_4, 5); +lean_inc(x_373); +x_374 = lean_ctor_get(x_4, 6); +lean_inc(x_374); +x_375 = lean_ctor_get(x_4, 7); +lean_inc(x_375); +x_376 = lean_ctor_get(x_4, 8); +lean_inc(x_376); +x_377 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_378 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_379 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +x_380 = lean_ctor_get(x_4, 10); +lean_inc(x_380); +x_381 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_381, 0, x_368); +lean_ctor_set(x_381, 1, x_369); +lean_ctor_set(x_381, 2, x_370); +lean_ctor_set(x_381, 3, x_371); +lean_ctor_set(x_381, 4, x_372); +lean_ctor_set(x_381, 5, x_373); +lean_ctor_set(x_381, 6, x_374); +lean_ctor_set(x_381, 7, x_375); +lean_ctor_set(x_381, 8, x_376); +lean_ctor_set(x_381, 9, x_363); +lean_ctor_set(x_381, 10, x_380); +lean_ctor_set_uint8(x_381, sizeof(void*)*11, x_377); +lean_ctor_set_uint8(x_381, sizeof(void*)*11 + 1, x_378); +lean_ctor_set_uint8(x_381, sizeof(void*)*11 + 2, x_379); +x_382 = l___private_Lean_Elab_Quotation_8__letBindRhss___main(x_1, x_11, x_357, x_381, x_367); +if (lean_obj_tag(x_382) == 0) { -lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; -x_378 = lean_ctor_get(x_377, 0); -lean_inc(x_378); -x_379 = lean_ctor_get(x_377, 1); -lean_inc(x_379); -lean_dec(x_377); -x_380 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_379); -lean_dec(x_4); -x_381 = lean_ctor_get(x_380, 0); -lean_inc(x_381); -x_382 = lean_ctor_get(x_380, 1); -lean_inc(x_382); -lean_dec(x_380); -x_383 = l_Lean_Elab_Term_getMainModule___rarg(x_382); -x_384 = lean_ctor_get(x_383, 0); +lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; +x_383 = lean_ctor_get(x_382, 0); +lean_inc(x_383); +x_384 = lean_ctor_get(x_382, 1); lean_inc(x_384); -x_385 = lean_ctor_get(x_383, 1); -lean_inc(x_385); -if (lean_is_exclusive(x_383)) { - lean_ctor_release(x_383, 0); - lean_ctor_release(x_383, 1); - x_386 = x_383; -} else { - lean_dec_ref(x_383); - x_386 = lean_box(0); -} -x_387 = l_Lean_addMacroScope(x_384, x_341, x_381); -x_388 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_388, 0, x_344); -lean_ctor_set(x_388, 1, x_345); -lean_ctor_set(x_388, 2, x_387); -lean_ctor_set(x_388, 3, x_343); -x_389 = lean_array_push(x_347, x_388); -x_390 = lean_array_push(x_389, x_349); -x_391 = lean_array_push(x_390, x_349); -x_392 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; -x_393 = lean_array_push(x_391, x_392); -x_394 = lean_array_push(x_393, x_334); -x_395 = l_Lean_Parser_Term_letIdDecl___closed__2; -x_396 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_396, 0, x_395); -lean_ctor_set(x_396, 1, x_394); -x_397 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; -x_398 = lean_array_push(x_397, x_396); -x_399 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; -x_400 = lean_array_push(x_398, x_399); -x_401 = lean_array_push(x_400, x_378); -x_402 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_403 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_403, 0, x_402); -lean_ctor_set(x_403, 1, x_401); -if (lean_is_scalar(x_386)) { - x_404 = lean_alloc_ctor(0, 2, 0); -} else { - x_404 = x_386; -} -lean_ctor_set(x_404, 0, x_403); -lean_ctor_set(x_404, 1, x_385); -return x_404; -} -else -{ -lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; -lean_dec(x_334); +lean_dec(x_382); +x_385 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_384); lean_dec(x_4); -x_405 = lean_ctor_get(x_377, 0); -lean_inc(x_405); -x_406 = lean_ctor_get(x_377, 1); -lean_inc(x_406); -if (lean_is_exclusive(x_377)) { - lean_ctor_release(x_377, 0); - lean_ctor_release(x_377, 1); - x_407 = x_377; +x_386 = lean_ctor_get(x_385, 0); +lean_inc(x_386); +x_387 = lean_ctor_get(x_385, 1); +lean_inc(x_387); +lean_dec(x_385); +x_388 = l_Lean_Elab_Term_getMainModule___rarg(x_387); +x_389 = lean_ctor_get(x_388, 0); +lean_inc(x_389); +x_390 = lean_ctor_get(x_388, 1); +lean_inc(x_390); +if (lean_is_exclusive(x_388)) { + lean_ctor_release(x_388, 0); + lean_ctor_release(x_388, 1); + x_391 = x_388; } else { - lean_dec_ref(x_377); - x_407 = lean_box(0); + lean_dec_ref(x_388); + x_391 = lean_box(0); } -if (lean_is_scalar(x_407)) { - x_408 = lean_alloc_ctor(1, 2, 0); -} else { - x_408 = x_407; -} -lean_ctor_set(x_408, 0, x_405); +x_392 = l_Lean_addMacroScope(x_389, x_345, x_386); +x_393 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_393, 0, x_348); +lean_ctor_set(x_393, 1, x_349); +lean_ctor_set(x_393, 2, x_392); +lean_ctor_set(x_393, 3, x_347); +x_394 = lean_array_push(x_351, x_393); +x_395 = lean_array_push(x_394, x_353); +x_396 = lean_array_push(x_395, x_353); +x_397 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; +x_398 = lean_array_push(x_396, x_397); +x_399 = lean_array_push(x_398, x_338); +x_400 = l_Lean_Parser_Term_letIdDecl___closed__2; +x_401 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_401, 0, x_400); +lean_ctor_set(x_401, 1, x_399); +x_402 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; +x_403 = lean_array_push(x_402, x_401); +x_404 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; +x_405 = lean_array_push(x_403, x_404); +x_406 = lean_array_push(x_405, x_383); +x_407 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_408 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_408, 0, x_407); lean_ctor_set(x_408, 1, x_406); -return x_408; +if (lean_is_scalar(x_391)) { + x_409 = lean_alloc_ctor(0, 2, 0); +} else { + x_409 = x_391; +} +lean_ctor_set(x_409, 0, x_408); +lean_ctor_set(x_409, 1, x_390); +return x_409; +} +else +{ +lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; +lean_dec(x_338); +lean_dec(x_4); +x_410 = lean_ctor_get(x_382, 0); +lean_inc(x_410); +x_411 = lean_ctor_get(x_382, 1); +lean_inc(x_411); +if (lean_is_exclusive(x_382)) { + lean_ctor_release(x_382, 0); + lean_ctor_release(x_382, 1); + x_412 = x_382; +} else { + lean_dec_ref(x_382); + x_412 = lean_box(0); +} +if (lean_is_scalar(x_412)) { + x_413 = lean_alloc_ctor(1, 2, 0); +} else { + x_413 = x_412; +} +lean_ctor_set(x_413, 0, x_410); +lean_ctor_set(x_413, 1, x_411); +return x_413; } } } } else { -lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; -x_409 = lean_ctor_get(x_2, 1); -x_410 = lean_ctor_get(x_9, 0); -x_411 = lean_ctor_get(x_9, 1); -lean_inc(x_411); -lean_inc(x_410); -lean_dec(x_9); -lean_inc(x_410); -x_412 = l_List_map___main___at___private_Lean_Elab_Quotation_8__letBindRhss___main___spec__1(x_410); -x_413 = l_List_join___main___rarg(x_412); -if (lean_obj_tag(x_413) == 0) -{ -lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; uint8_t x_457; uint8_t x_458; uint8_t x_459; lean_object* x_460; lean_object* x_461; -x_414 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5); -x_415 = lean_ctor_get(x_414, 0); -lean_inc(x_415); -x_416 = lean_ctor_get(x_414, 1); +lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; +x_414 = lean_ctor_get(x_2, 1); +x_415 = lean_ctor_get(x_9, 0); +x_416 = lean_ctor_get(x_9, 1); lean_inc(x_416); -lean_dec(x_414); -x_417 = l_Lean_Elab_Term_getMainModule___rarg(x_416); -x_418 = lean_ctor_get(x_417, 0); -lean_inc(x_418); -x_419 = lean_ctor_get(x_417, 1); -lean_inc(x_419); -lean_dec(x_417); -x_420 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__4; -x_421 = l_Lean_addMacroScope(x_418, x_420, x_415); -x_422 = lean_box(0); -x_423 = l_Lean_SourceInfo_inhabited___closed__1; -x_424 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__3; -x_425 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_425, 0, x_423); -lean_ctor_set(x_425, 1, x_424); -lean_ctor_set(x_425, 2, x_421); -lean_ctor_set(x_425, 3, x_422); -x_426 = l_Array_empty___closed__1; -x_427 = lean_array_push(x_426, x_425); -x_428 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; -x_429 = lean_array_push(x_427, x_428); -x_430 = l_Lean_mkTermIdFromIdent___closed__2; -x_431 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_431, 0, x_430); -lean_ctor_set(x_431, 1, x_429); -x_432 = lean_array_push(x_426, x_431); -x_433 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__9; +lean_inc(x_415); +lean_dec(x_9); +lean_inc(x_415); +x_417 = l_List_map___main___at___private_Lean_Elab_Quotation_8__letBindRhss___main___spec__1(x_415); +x_418 = l_List_join___main___rarg(x_417); +if (lean_obj_tag(x_418) == 0) +{ +lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; uint8_t x_462; uint8_t x_463; uint8_t x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; +x_419 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5); +x_420 = lean_ctor_get(x_419, 0); +lean_inc(x_420); +x_421 = lean_ctor_get(x_419, 1); +lean_inc(x_421); +lean_dec(x_419); +x_422 = l_Lean_Elab_Term_getMainModule___rarg(x_421); +x_423 = lean_ctor_get(x_422, 0); +lean_inc(x_423); +x_424 = lean_ctor_get(x_422, 1); +lean_inc(x_424); +lean_dec(x_422); +x_425 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__4; +x_426 = l_Lean_addMacroScope(x_423, x_425, x_420); +x_427 = lean_box(0); +x_428 = l_Lean_SourceInfo_inhabited___closed__1; +x_429 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__3; +x_430 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_430, 0, x_428); +lean_ctor_set(x_430, 1, x_429); +lean_ctor_set(x_430, 2, x_426); +lean_ctor_set(x_430, 3, x_427); +x_431 = l_Array_empty___closed__1; +x_432 = lean_array_push(x_431, x_430); +x_433 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; x_434 = lean_array_push(x_432, x_433); -x_435 = l_Lean_mkAppStx___closed__8; +x_435 = l_Lean_mkTermIdFromIdent___closed__2; x_436 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_436, 0, x_435); lean_ctor_set(x_436, 1, x_434); -x_437 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_437, 0, x_410); -lean_ctor_set(x_437, 1, x_436); +x_437 = lean_array_push(x_431, x_436); +x_438 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__9; +x_439 = lean_array_push(x_437, x_438); +x_440 = l_Lean_mkAppStx___closed__8; +x_441 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_441, 0, x_440); +lean_ctor_set(x_441, 1, x_439); +x_442 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_442, 0, x_415); +lean_ctor_set(x_442, 1, x_441); lean_ctor_set(x_2, 1, x_3); -lean_ctor_set(x_2, 0, x_437); -x_438 = lean_ctor_get(x_419, 0); -lean_inc(x_438); -x_439 = lean_ctor_get(x_419, 1); -lean_inc(x_439); -x_440 = lean_ctor_get(x_419, 2); -lean_inc(x_440); -x_441 = lean_ctor_get(x_419, 3); -lean_inc(x_441); -x_442 = lean_ctor_get(x_419, 4); -lean_inc(x_442); -x_443 = lean_ctor_get(x_419, 5); +lean_ctor_set(x_2, 0, x_442); +x_443 = lean_ctor_get(x_424, 0); lean_inc(x_443); -if (lean_is_exclusive(x_419)) { - lean_ctor_release(x_419, 0); - lean_ctor_release(x_419, 1); - lean_ctor_release(x_419, 2); - lean_ctor_release(x_419, 3); - lean_ctor_release(x_419, 4); - lean_ctor_release(x_419, 5); - x_444 = x_419; -} else { - lean_dec_ref(x_419); - x_444 = lean_box(0); -} -x_445 = lean_unsigned_to_nat(1u); -x_446 = lean_nat_add(x_443, x_445); -if (lean_is_scalar(x_444)) { - x_447 = lean_alloc_ctor(0, 6, 0); -} else { - x_447 = x_444; -} -lean_ctor_set(x_447, 0, x_438); -lean_ctor_set(x_447, 1, x_439); -lean_ctor_set(x_447, 2, x_440); -lean_ctor_set(x_447, 3, x_441); -lean_ctor_set(x_447, 4, x_442); -lean_ctor_set(x_447, 5, x_446); -x_448 = lean_ctor_get(x_4, 0); +x_444 = lean_ctor_get(x_424, 1); +lean_inc(x_444); +x_445 = lean_ctor_get(x_424, 2); +lean_inc(x_445); +x_446 = lean_ctor_get(x_424, 3); +lean_inc(x_446); +x_447 = lean_ctor_get(x_424, 4); +lean_inc(x_447); +x_448 = lean_ctor_get(x_424, 5); lean_inc(x_448); -x_449 = lean_ctor_get(x_4, 1); -lean_inc(x_449); -x_450 = lean_ctor_get(x_4, 2); -lean_inc(x_450); -x_451 = lean_ctor_get(x_4, 3); -lean_inc(x_451); -x_452 = lean_ctor_get(x_4, 4); -lean_inc(x_452); -x_453 = lean_ctor_get(x_4, 5); +if (lean_is_exclusive(x_424)) { + lean_ctor_release(x_424, 0); + lean_ctor_release(x_424, 1); + lean_ctor_release(x_424, 2); + lean_ctor_release(x_424, 3); + lean_ctor_release(x_424, 4); + lean_ctor_release(x_424, 5); + x_449 = x_424; +} else { + lean_dec_ref(x_424); + x_449 = lean_box(0); +} +x_450 = lean_unsigned_to_nat(1u); +x_451 = lean_nat_add(x_448, x_450); +if (lean_is_scalar(x_449)) { + x_452 = lean_alloc_ctor(0, 6, 0); +} else { + x_452 = x_449; +} +lean_ctor_set(x_452, 0, x_443); +lean_ctor_set(x_452, 1, x_444); +lean_ctor_set(x_452, 2, x_445); +lean_ctor_set(x_452, 3, x_446); +lean_ctor_set(x_452, 4, x_447); +lean_ctor_set(x_452, 5, x_451); +x_453 = lean_ctor_get(x_4, 0); lean_inc(x_453); -x_454 = lean_ctor_get(x_4, 6); +x_454 = lean_ctor_get(x_4, 1); lean_inc(x_454); -x_455 = lean_ctor_get(x_4, 7); +x_455 = lean_ctor_get(x_4, 2); lean_inc(x_455); -x_456 = lean_ctor_get(x_4, 8); +x_456 = lean_ctor_get(x_4, 3); lean_inc(x_456); -x_457 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); -x_458 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); -x_459 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 2); -x_460 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_460, 0, x_448); -lean_ctor_set(x_460, 1, x_449); -lean_ctor_set(x_460, 2, x_450); -lean_ctor_set(x_460, 3, x_451); -lean_ctor_set(x_460, 4, x_452); -lean_ctor_set(x_460, 5, x_453); -lean_ctor_set(x_460, 6, x_454); -lean_ctor_set(x_460, 7, x_455); -lean_ctor_set(x_460, 8, x_456); -lean_ctor_set(x_460, 9, x_443); -lean_ctor_set_uint8(x_460, sizeof(void*)*10, x_457); -lean_ctor_set_uint8(x_460, sizeof(void*)*10 + 1, x_458); -lean_ctor_set_uint8(x_460, sizeof(void*)*10 + 2, x_459); -x_461 = l___private_Lean_Elab_Quotation_8__letBindRhss___main(x_1, x_409, x_2, x_460, x_447); -if (lean_obj_tag(x_461) == 0) -{ -lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; -x_462 = lean_ctor_get(x_461, 0); -lean_inc(x_462); -x_463 = lean_ctor_get(x_461, 1); -lean_inc(x_463); -lean_dec(x_461); -x_464 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_463); -lean_dec(x_4); -x_465 = lean_ctor_get(x_464, 0); +x_457 = lean_ctor_get(x_4, 4); +lean_inc(x_457); +x_458 = lean_ctor_get(x_4, 5); +lean_inc(x_458); +x_459 = lean_ctor_get(x_4, 6); +lean_inc(x_459); +x_460 = lean_ctor_get(x_4, 7); +lean_inc(x_460); +x_461 = lean_ctor_get(x_4, 8); +lean_inc(x_461); +x_462 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_463 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_464 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +x_465 = lean_ctor_get(x_4, 10); lean_inc(x_465); -x_466 = lean_ctor_get(x_464, 1); -lean_inc(x_466); -lean_dec(x_464); -x_467 = l_Lean_Elab_Term_getMainModule___rarg(x_466); +x_466 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_466, 0, x_453); +lean_ctor_set(x_466, 1, x_454); +lean_ctor_set(x_466, 2, x_455); +lean_ctor_set(x_466, 3, x_456); +lean_ctor_set(x_466, 4, x_457); +lean_ctor_set(x_466, 5, x_458); +lean_ctor_set(x_466, 6, x_459); +lean_ctor_set(x_466, 7, x_460); +lean_ctor_set(x_466, 8, x_461); +lean_ctor_set(x_466, 9, x_448); +lean_ctor_set(x_466, 10, x_465); +lean_ctor_set_uint8(x_466, sizeof(void*)*11, x_462); +lean_ctor_set_uint8(x_466, sizeof(void*)*11 + 1, x_463); +lean_ctor_set_uint8(x_466, sizeof(void*)*11 + 2, x_464); +x_467 = l___private_Lean_Elab_Quotation_8__letBindRhss___main(x_1, x_414, x_2, x_466, x_452); +if (lean_obj_tag(x_467) == 0) +{ +lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; x_468 = lean_ctor_get(x_467, 0); lean_inc(x_468); x_469 = lean_ctor_get(x_467, 1); lean_inc(x_469); +lean_dec(x_467); +x_470 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_469); +lean_dec(x_4); +x_471 = lean_ctor_get(x_470, 0); +lean_inc(x_471); +x_472 = lean_ctor_get(x_470, 1); +lean_inc(x_472); +lean_dec(x_470); +x_473 = l_Lean_Elab_Term_getMainModule___rarg(x_472); +x_474 = lean_ctor_get(x_473, 0); +lean_inc(x_474); +x_475 = lean_ctor_get(x_473, 1); +lean_inc(x_475); +if (lean_is_exclusive(x_473)) { + lean_ctor_release(x_473, 0); + lean_ctor_release(x_473, 1); + x_476 = x_473; +} else { + lean_dec_ref(x_473); + x_476 = lean_box(0); +} +x_477 = l_Lean_addMacroScope(x_474, x_425, x_471); +x_478 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_478, 0, x_428); +lean_ctor_set(x_478, 1, x_429); +lean_ctor_set(x_478, 2, x_477); +lean_ctor_set(x_478, 3, x_427); +x_479 = lean_array_push(x_431, x_478); +x_480 = lean_array_push(x_479, x_433); +x_481 = lean_array_push(x_480, x_433); +x_482 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; +x_483 = lean_array_push(x_481, x_482); +x_484 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__13; +x_485 = lean_array_push(x_484, x_416); +x_486 = l_Lean_Parser_Term_fun___elambda__1___closed__2; +x_487 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_487, 0, x_486); +lean_ctor_set(x_487, 1, x_485); +x_488 = lean_array_push(x_483, x_487); +x_489 = l_Lean_Parser_Term_letIdDecl___closed__2; +x_490 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_490, 0, x_489); +lean_ctor_set(x_490, 1, x_488); +x_491 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; +x_492 = lean_array_push(x_491, x_490); +x_493 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; +x_494 = lean_array_push(x_492, x_493); +x_495 = lean_array_push(x_494, x_468); +x_496 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_497 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_497, 0, x_496); +lean_ctor_set(x_497, 1, x_495); +if (lean_is_scalar(x_476)) { + x_498 = lean_alloc_ctor(0, 2, 0); +} else { + x_498 = x_476; +} +lean_ctor_set(x_498, 0, x_497); +lean_ctor_set(x_498, 1, x_475); +return x_498; +} +else +{ +lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; +lean_dec(x_416); +lean_dec(x_4); +x_499 = lean_ctor_get(x_467, 0); +lean_inc(x_499); +x_500 = lean_ctor_get(x_467, 1); +lean_inc(x_500); if (lean_is_exclusive(x_467)) { lean_ctor_release(x_467, 0); lean_ctor_release(x_467, 1); - x_470 = x_467; + x_501 = x_467; } else { lean_dec_ref(x_467); - x_470 = lean_box(0); + x_501 = lean_box(0); } -x_471 = l_Lean_addMacroScope(x_468, x_420, x_465); -x_472 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_472, 0, x_423); -lean_ctor_set(x_472, 1, x_424); -lean_ctor_set(x_472, 2, x_471); -lean_ctor_set(x_472, 3, x_422); -x_473 = lean_array_push(x_426, x_472); -x_474 = lean_array_push(x_473, x_428); -x_475 = lean_array_push(x_474, x_428); -x_476 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; -x_477 = lean_array_push(x_475, x_476); -x_478 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__13; -x_479 = lean_array_push(x_478, x_411); -x_480 = l_Lean_Parser_Term_fun___elambda__1___closed__2; -x_481 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_481, 0, x_480); -lean_ctor_set(x_481, 1, x_479); -x_482 = lean_array_push(x_477, x_481); -x_483 = l_Lean_Parser_Term_letIdDecl___closed__2; -x_484 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_484, 0, x_483); -lean_ctor_set(x_484, 1, x_482); -x_485 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; -x_486 = lean_array_push(x_485, x_484); -x_487 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; -x_488 = lean_array_push(x_486, x_487); -x_489 = lean_array_push(x_488, x_462); -x_490 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_491 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_491, 0, x_490); -lean_ctor_set(x_491, 1, x_489); -if (lean_is_scalar(x_470)) { - x_492 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_501)) { + x_502 = lean_alloc_ctor(1, 2, 0); } else { - x_492 = x_470; + x_502 = x_501; } -lean_ctor_set(x_492, 0, x_491); -lean_ctor_set(x_492, 1, x_469); -return x_492; -} -else -{ -lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; -lean_dec(x_411); -lean_dec(x_4); -x_493 = lean_ctor_get(x_461, 0); -lean_inc(x_493); -x_494 = lean_ctor_get(x_461, 1); -lean_inc(x_494); -if (lean_is_exclusive(x_461)) { - lean_ctor_release(x_461, 0); - lean_ctor_release(x_461, 1); - x_495 = x_461; -} else { - lean_dec_ref(x_461); - x_495 = lean_box(0); -} -if (lean_is_scalar(x_495)) { - x_496 = lean_alloc_ctor(1, 2, 0); -} else { - x_496 = x_495; -} -lean_ctor_set(x_496, 0, x_493); -lean_ctor_set(x_496, 1, x_494); -return x_496; +lean_ctor_set(x_502, 0, x_499); +lean_ctor_set(x_502, 1, x_500); +return x_502; } } else { -lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; uint8_t x_549; uint8_t x_550; uint8_t x_551; lean_object* x_552; lean_object* x_553; +lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; uint8_t x_555; uint8_t x_556; uint8_t x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_free_object(x_2); -x_497 = l_List_redLength___main___rarg(x_413); -x_498 = lean_mk_empty_array_with_capacity(x_497); -lean_dec(x_497); -lean_inc(x_413); -x_499 = l_List_toArrayAux___main___rarg(x_413, x_498); -if (lean_is_exclusive(x_413)) { - lean_ctor_release(x_413, 0); - lean_ctor_release(x_413, 1); - x_500 = x_413; +x_503 = l_List_redLength___main___rarg(x_418); +x_504 = lean_mk_empty_array_with_capacity(x_503); +lean_dec(x_503); +lean_inc(x_418); +x_505 = l_List_toArrayAux___main___rarg(x_418, x_504); +if (lean_is_exclusive(x_418)) { + lean_ctor_release(x_418, 0); + lean_ctor_release(x_418, 1); + x_506 = x_418; } else { - lean_dec_ref(x_413); - x_500 = lean_box(0); + lean_dec_ref(x_418); + x_506 = lean_box(0); } -x_501 = l_Lean_nullKind___closed__2; -x_502 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_502, 0, x_501); -lean_ctor_set(x_502, 1, x_499); -x_503 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__16; -x_504 = lean_array_push(x_503, x_502); -x_505 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__15; -x_506 = lean_array_push(x_504, x_505); -x_507 = lean_array_push(x_506, x_411); -x_508 = l_Lean_Parser_Term_fun___elambda__1___closed__2; -x_509 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_509, 0, x_508); -lean_ctor_set(x_509, 1, x_507); -x_510 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5); -x_511 = lean_ctor_get(x_510, 0); -lean_inc(x_511); -x_512 = lean_ctor_get(x_510, 1); -lean_inc(x_512); -lean_dec(x_510); -x_513 = l_Lean_Elab_Term_getMainModule___rarg(x_512); -x_514 = lean_ctor_get(x_513, 0); -lean_inc(x_514); -x_515 = lean_ctor_get(x_513, 1); -lean_inc(x_515); -lean_dec(x_513); -x_516 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__4; -x_517 = l_Lean_addMacroScope(x_514, x_516, x_511); -x_518 = lean_box(0); -x_519 = l_Lean_SourceInfo_inhabited___closed__1; -x_520 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__3; -x_521 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_521, 0, x_519); -lean_ctor_set(x_521, 1, x_520); -lean_ctor_set(x_521, 2, x_517); -lean_ctor_set(x_521, 3, x_518); -x_522 = l_Array_empty___closed__1; -x_523 = lean_array_push(x_522, x_521); -x_524 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__17; -x_525 = lean_array_push(x_523, x_524); -x_526 = l_Lean_mkTermIdFromIdent___closed__2; -x_527 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_527, 0, x_526); -lean_ctor_set(x_527, 1, x_525); -x_528 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_528, 0, x_410); -lean_ctor_set(x_528, 1, x_527); -if (lean_is_scalar(x_500)) { - x_529 = lean_alloc_ctor(1, 2, 0); +x_507 = l_Lean_nullKind___closed__2; +x_508 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_508, 0, x_507); +lean_ctor_set(x_508, 1, x_505); +x_509 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__16; +x_510 = lean_array_push(x_509, x_508); +x_511 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__15; +x_512 = lean_array_push(x_510, x_511); +x_513 = lean_array_push(x_512, x_416); +x_514 = l_Lean_Parser_Term_fun___elambda__1___closed__2; +x_515 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_515, 0, x_514); +lean_ctor_set(x_515, 1, x_513); +x_516 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5); +x_517 = lean_ctor_get(x_516, 0); +lean_inc(x_517); +x_518 = lean_ctor_get(x_516, 1); +lean_inc(x_518); +lean_dec(x_516); +x_519 = l_Lean_Elab_Term_getMainModule___rarg(x_518); +x_520 = lean_ctor_get(x_519, 0); +lean_inc(x_520); +x_521 = lean_ctor_get(x_519, 1); +lean_inc(x_521); +lean_dec(x_519); +x_522 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__4; +x_523 = l_Lean_addMacroScope(x_520, x_522, x_517); +x_524 = lean_box(0); +x_525 = l_Lean_SourceInfo_inhabited___closed__1; +x_526 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__3; +x_527 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_527, 0, x_525); +lean_ctor_set(x_527, 1, x_526); +lean_ctor_set(x_527, 2, x_523); +lean_ctor_set(x_527, 3, x_524); +x_528 = l_Array_empty___closed__1; +x_529 = lean_array_push(x_528, x_527); +x_530 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__17; +x_531 = lean_array_push(x_529, x_530); +x_532 = l_Lean_mkTermIdFromIdent___closed__2; +x_533 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_533, 0, x_532); +lean_ctor_set(x_533, 1, x_531); +x_534 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_534, 0, x_415); +lean_ctor_set(x_534, 1, x_533); +if (lean_is_scalar(x_506)) { + x_535 = lean_alloc_ctor(1, 2, 0); } else { - x_529 = x_500; + x_535 = x_506; } -lean_ctor_set(x_529, 0, x_528); -lean_ctor_set(x_529, 1, x_3); -x_530 = lean_ctor_get(x_515, 0); -lean_inc(x_530); -x_531 = lean_ctor_get(x_515, 1); -lean_inc(x_531); -x_532 = lean_ctor_get(x_515, 2); -lean_inc(x_532); -x_533 = lean_ctor_get(x_515, 3); -lean_inc(x_533); -x_534 = lean_ctor_get(x_515, 4); -lean_inc(x_534); -x_535 = lean_ctor_get(x_515, 5); -lean_inc(x_535); -if (lean_is_exclusive(x_515)) { - lean_ctor_release(x_515, 0); - lean_ctor_release(x_515, 1); - lean_ctor_release(x_515, 2); - lean_ctor_release(x_515, 3); - lean_ctor_release(x_515, 4); - lean_ctor_release(x_515, 5); - x_536 = x_515; -} else { - lean_dec_ref(x_515); - x_536 = lean_box(0); -} -x_537 = lean_unsigned_to_nat(1u); -x_538 = lean_nat_add(x_535, x_537); -if (lean_is_scalar(x_536)) { - x_539 = lean_alloc_ctor(0, 6, 0); -} else { - x_539 = x_536; -} -lean_ctor_set(x_539, 0, x_530); -lean_ctor_set(x_539, 1, x_531); -lean_ctor_set(x_539, 2, x_532); -lean_ctor_set(x_539, 3, x_533); -lean_ctor_set(x_539, 4, x_534); -lean_ctor_set(x_539, 5, x_538); -x_540 = lean_ctor_get(x_4, 0); +lean_ctor_set(x_535, 0, x_534); +lean_ctor_set(x_535, 1, x_3); +x_536 = lean_ctor_get(x_521, 0); +lean_inc(x_536); +x_537 = lean_ctor_get(x_521, 1); +lean_inc(x_537); +x_538 = lean_ctor_get(x_521, 2); +lean_inc(x_538); +x_539 = lean_ctor_get(x_521, 3); +lean_inc(x_539); +x_540 = lean_ctor_get(x_521, 4); lean_inc(x_540); -x_541 = lean_ctor_get(x_4, 1); +x_541 = lean_ctor_get(x_521, 5); lean_inc(x_541); -x_542 = lean_ctor_get(x_4, 2); -lean_inc(x_542); -x_543 = lean_ctor_get(x_4, 3); -lean_inc(x_543); -x_544 = lean_ctor_get(x_4, 4); -lean_inc(x_544); -x_545 = lean_ctor_get(x_4, 5); -lean_inc(x_545); -x_546 = lean_ctor_get(x_4, 6); -lean_inc(x_546); -x_547 = lean_ctor_get(x_4, 7); -lean_inc(x_547); -x_548 = lean_ctor_get(x_4, 8); -lean_inc(x_548); -x_549 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); -x_550 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); -x_551 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 2); -x_552 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_552, 0, x_540); -lean_ctor_set(x_552, 1, x_541); -lean_ctor_set(x_552, 2, x_542); -lean_ctor_set(x_552, 3, x_543); -lean_ctor_set(x_552, 4, x_544); -lean_ctor_set(x_552, 5, x_545); -lean_ctor_set(x_552, 6, x_546); -lean_ctor_set(x_552, 7, x_547); -lean_ctor_set(x_552, 8, x_548); -lean_ctor_set(x_552, 9, x_535); -lean_ctor_set_uint8(x_552, sizeof(void*)*10, x_549); -lean_ctor_set_uint8(x_552, sizeof(void*)*10 + 1, x_550); -lean_ctor_set_uint8(x_552, sizeof(void*)*10 + 2, x_551); -x_553 = l___private_Lean_Elab_Quotation_8__letBindRhss___main(x_1, x_409, x_529, x_552, x_539); -if (lean_obj_tag(x_553) == 0) -{ -lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; -x_554 = lean_ctor_get(x_553, 0); -lean_inc(x_554); -x_555 = lean_ctor_get(x_553, 1); -lean_inc(x_555); -lean_dec(x_553); -x_556 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_555); -lean_dec(x_4); -x_557 = lean_ctor_get(x_556, 0); -lean_inc(x_557); -x_558 = lean_ctor_get(x_556, 1); -lean_inc(x_558); -lean_dec(x_556); -x_559 = l_Lean_Elab_Term_getMainModule___rarg(x_558); -x_560 = lean_ctor_get(x_559, 0); -lean_inc(x_560); -x_561 = lean_ctor_get(x_559, 1); -lean_inc(x_561); -if (lean_is_exclusive(x_559)) { - lean_ctor_release(x_559, 0); - lean_ctor_release(x_559, 1); - x_562 = x_559; +if (lean_is_exclusive(x_521)) { + lean_ctor_release(x_521, 0); + lean_ctor_release(x_521, 1); + lean_ctor_release(x_521, 2); + lean_ctor_release(x_521, 3); + lean_ctor_release(x_521, 4); + lean_ctor_release(x_521, 5); + x_542 = x_521; } else { - lean_dec_ref(x_559); - x_562 = lean_box(0); + lean_dec_ref(x_521); + x_542 = lean_box(0); } -x_563 = l_Lean_addMacroScope(x_560, x_516, x_557); -x_564 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_564, 0, x_519); -lean_ctor_set(x_564, 1, x_520); -lean_ctor_set(x_564, 2, x_563); -lean_ctor_set(x_564, 3, x_518); -x_565 = lean_array_push(x_522, x_564); -x_566 = lean_array_push(x_565, x_524); -x_567 = lean_array_push(x_566, x_524); -x_568 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; -x_569 = lean_array_push(x_567, x_568); -x_570 = lean_array_push(x_569, x_509); -x_571 = l_Lean_Parser_Term_letIdDecl___closed__2; -x_572 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_572, 0, x_571); -lean_ctor_set(x_572, 1, x_570); -x_573 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; -x_574 = lean_array_push(x_573, x_572); -x_575 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; +x_543 = lean_unsigned_to_nat(1u); +x_544 = lean_nat_add(x_541, x_543); +if (lean_is_scalar(x_542)) { + x_545 = lean_alloc_ctor(0, 6, 0); +} else { + x_545 = x_542; +} +lean_ctor_set(x_545, 0, x_536); +lean_ctor_set(x_545, 1, x_537); +lean_ctor_set(x_545, 2, x_538); +lean_ctor_set(x_545, 3, x_539); +lean_ctor_set(x_545, 4, x_540); +lean_ctor_set(x_545, 5, x_544); +x_546 = lean_ctor_get(x_4, 0); +lean_inc(x_546); +x_547 = lean_ctor_get(x_4, 1); +lean_inc(x_547); +x_548 = lean_ctor_get(x_4, 2); +lean_inc(x_548); +x_549 = lean_ctor_get(x_4, 3); +lean_inc(x_549); +x_550 = lean_ctor_get(x_4, 4); +lean_inc(x_550); +x_551 = lean_ctor_get(x_4, 5); +lean_inc(x_551); +x_552 = lean_ctor_get(x_4, 6); +lean_inc(x_552); +x_553 = lean_ctor_get(x_4, 7); +lean_inc(x_553); +x_554 = lean_ctor_get(x_4, 8); +lean_inc(x_554); +x_555 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_556 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_557 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +x_558 = lean_ctor_get(x_4, 10); +lean_inc(x_558); +x_559 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_559, 0, x_546); +lean_ctor_set(x_559, 1, x_547); +lean_ctor_set(x_559, 2, x_548); +lean_ctor_set(x_559, 3, x_549); +lean_ctor_set(x_559, 4, x_550); +lean_ctor_set(x_559, 5, x_551); +lean_ctor_set(x_559, 6, x_552); +lean_ctor_set(x_559, 7, x_553); +lean_ctor_set(x_559, 8, x_554); +lean_ctor_set(x_559, 9, x_541); +lean_ctor_set(x_559, 10, x_558); +lean_ctor_set_uint8(x_559, sizeof(void*)*11, x_555); +lean_ctor_set_uint8(x_559, sizeof(void*)*11 + 1, x_556); +lean_ctor_set_uint8(x_559, sizeof(void*)*11 + 2, x_557); +x_560 = l___private_Lean_Elab_Quotation_8__letBindRhss___main(x_1, x_414, x_535, x_559, x_545); +if (lean_obj_tag(x_560) == 0) +{ +lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; +x_561 = lean_ctor_get(x_560, 0); +lean_inc(x_561); +x_562 = lean_ctor_get(x_560, 1); +lean_inc(x_562); +lean_dec(x_560); +x_563 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_562); +lean_dec(x_4); +x_564 = lean_ctor_get(x_563, 0); +lean_inc(x_564); +x_565 = lean_ctor_get(x_563, 1); +lean_inc(x_565); +lean_dec(x_563); +x_566 = l_Lean_Elab_Term_getMainModule___rarg(x_565); +x_567 = lean_ctor_get(x_566, 0); +lean_inc(x_567); +x_568 = lean_ctor_get(x_566, 1); +lean_inc(x_568); +if (lean_is_exclusive(x_566)) { + lean_ctor_release(x_566, 0); + lean_ctor_release(x_566, 1); + x_569 = x_566; +} else { + lean_dec_ref(x_566); + x_569 = lean_box(0); +} +x_570 = l_Lean_addMacroScope(x_567, x_522, x_564); +x_571 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_571, 0, x_525); +lean_ctor_set(x_571, 1, x_526); +lean_ctor_set(x_571, 2, x_570); +lean_ctor_set(x_571, 3, x_524); +x_572 = lean_array_push(x_528, x_571); +x_573 = lean_array_push(x_572, x_530); +x_574 = lean_array_push(x_573, x_530); +x_575 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; x_576 = lean_array_push(x_574, x_575); -x_577 = lean_array_push(x_576, x_554); -x_578 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_577 = lean_array_push(x_576, x_515); +x_578 = l_Lean_Parser_Term_letIdDecl___closed__2; x_579 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_579, 0, x_578); lean_ctor_set(x_579, 1, x_577); -if (lean_is_scalar(x_562)) { - x_580 = lean_alloc_ctor(0, 2, 0); +x_580 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; +x_581 = lean_array_push(x_580, x_579); +x_582 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; +x_583 = lean_array_push(x_581, x_582); +x_584 = lean_array_push(x_583, x_561); +x_585 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_586 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_586, 0, x_585); +lean_ctor_set(x_586, 1, x_584); +if (lean_is_scalar(x_569)) { + x_587 = lean_alloc_ctor(0, 2, 0); } else { - x_580 = x_562; + x_587 = x_569; } -lean_ctor_set(x_580, 0, x_579); -lean_ctor_set(x_580, 1, x_561); -return x_580; +lean_ctor_set(x_587, 0, x_586); +lean_ctor_set(x_587, 1, x_568); +return x_587; } else { -lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; -lean_dec(x_509); +lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; +lean_dec(x_515); lean_dec(x_4); -x_581 = lean_ctor_get(x_553, 0); -lean_inc(x_581); -x_582 = lean_ctor_get(x_553, 1); -lean_inc(x_582); -if (lean_is_exclusive(x_553)) { - lean_ctor_release(x_553, 0); - lean_ctor_release(x_553, 1); - x_583 = x_553; +x_588 = lean_ctor_get(x_560, 0); +lean_inc(x_588); +x_589 = lean_ctor_get(x_560, 1); +lean_inc(x_589); +if (lean_is_exclusive(x_560)) { + lean_ctor_release(x_560, 0); + lean_ctor_release(x_560, 1); + x_590 = x_560; } else { - lean_dec_ref(x_553); - x_583 = lean_box(0); + lean_dec_ref(x_560); + x_590 = lean_box(0); } -if (lean_is_scalar(x_583)) { - x_584 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_590)) { + x_591 = lean_alloc_ctor(1, 2, 0); } else { - x_584 = x_583; + x_591 = x_590; } -lean_ctor_set(x_584, 0, x_581); -lean_ctor_set(x_584, 1, x_582); -return x_584; +lean_ctor_set(x_591, 0, x_588); +lean_ctor_set(x_591, 1, x_589); +return x_591; } } } } else { -lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; -x_585 = lean_ctor_get(x_2, 0); -x_586 = lean_ctor_get(x_2, 1); -lean_inc(x_586); -lean_inc(x_585); -lean_dec(x_2); -x_587 = lean_ctor_get(x_585, 0); -lean_inc(x_587); -x_588 = lean_ctor_get(x_585, 1); -lean_inc(x_588); -if (lean_is_exclusive(x_585)) { - lean_ctor_release(x_585, 0); - lean_ctor_release(x_585, 1); - x_589 = x_585; -} else { - lean_dec_ref(x_585); - x_589 = lean_box(0); -} -lean_inc(x_587); -x_590 = l_List_map___main___at___private_Lean_Elab_Quotation_8__letBindRhss___main___spec__1(x_587); -x_591 = l_List_join___main___rarg(x_590); -if (lean_obj_tag(x_591) == 0) -{ -lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; lean_object* x_634; lean_object* x_635; uint8_t x_636; uint8_t x_637; uint8_t x_638; lean_object* x_639; lean_object* x_640; -x_592 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5); -x_593 = lean_ctor_get(x_592, 0); +lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; +x_592 = lean_ctor_get(x_2, 0); +x_593 = lean_ctor_get(x_2, 1); lean_inc(x_593); -x_594 = lean_ctor_get(x_592, 1); +lean_inc(x_592); +lean_dec(x_2); +x_594 = lean_ctor_get(x_592, 0); lean_inc(x_594); -lean_dec(x_592); -x_595 = l_Lean_Elab_Term_getMainModule___rarg(x_594); -x_596 = lean_ctor_get(x_595, 0); -lean_inc(x_596); -x_597 = lean_ctor_get(x_595, 1); -lean_inc(x_597); -lean_dec(x_595); -x_598 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__4; -x_599 = l_Lean_addMacroScope(x_596, x_598, x_593); -x_600 = lean_box(0); -x_601 = l_Lean_SourceInfo_inhabited___closed__1; -x_602 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__3; -x_603 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_603, 0, x_601); -lean_ctor_set(x_603, 1, x_602); -lean_ctor_set(x_603, 2, x_599); -lean_ctor_set(x_603, 3, x_600); -x_604 = l_Array_empty___closed__1; -x_605 = lean_array_push(x_604, x_603); -x_606 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; -x_607 = lean_array_push(x_605, x_606); -x_608 = l_Lean_mkTermIdFromIdent___closed__2; -x_609 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_609, 0, x_608); -lean_ctor_set(x_609, 1, x_607); -x_610 = lean_array_push(x_604, x_609); -x_611 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__9; -x_612 = lean_array_push(x_610, x_611); -x_613 = l_Lean_mkAppStx___closed__8; -x_614 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_614, 0, x_613); -lean_ctor_set(x_614, 1, x_612); -if (lean_is_scalar(x_589)) { - x_615 = lean_alloc_ctor(0, 2, 0); +x_595 = lean_ctor_get(x_592, 1); +lean_inc(x_595); +if (lean_is_exclusive(x_592)) { + lean_ctor_release(x_592, 0); + lean_ctor_release(x_592, 1); + x_596 = x_592; } else { - x_615 = x_589; + lean_dec_ref(x_592); + x_596 = lean_box(0); } -lean_ctor_set(x_615, 0, x_587); -lean_ctor_set(x_615, 1, x_614); +lean_inc(x_594); +x_597 = l_List_map___main___at___private_Lean_Elab_Quotation_8__letBindRhss___main___spec__1(x_594); +x_598 = l_List_join___main___rarg(x_597); +if (lean_obj_tag(x_598) == 0) +{ +lean_object* x_599; lean_object* x_600; lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; uint8_t x_643; uint8_t x_644; uint8_t x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; +x_599 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5); +x_600 = lean_ctor_get(x_599, 0); +lean_inc(x_600); +x_601 = lean_ctor_get(x_599, 1); +lean_inc(x_601); +lean_dec(x_599); +x_602 = l_Lean_Elab_Term_getMainModule___rarg(x_601); +x_603 = lean_ctor_get(x_602, 0); +lean_inc(x_603); +x_604 = lean_ctor_get(x_602, 1); +lean_inc(x_604); +lean_dec(x_602); +x_605 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__4; +x_606 = l_Lean_addMacroScope(x_603, x_605, x_600); +x_607 = lean_box(0); +x_608 = l_Lean_SourceInfo_inhabited___closed__1; +x_609 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__3; +x_610 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_610, 0, x_608); +lean_ctor_set(x_610, 1, x_609); +lean_ctor_set(x_610, 2, x_606); +lean_ctor_set(x_610, 3, x_607); +x_611 = l_Array_empty___closed__1; +x_612 = lean_array_push(x_611, x_610); +x_613 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; +x_614 = lean_array_push(x_612, x_613); +x_615 = l_Lean_mkTermIdFromIdent___closed__2; x_616 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_616, 0, x_615); -lean_ctor_set(x_616, 1, x_3); -x_617 = lean_ctor_get(x_597, 0); -lean_inc(x_617); -x_618 = lean_ctor_get(x_597, 1); -lean_inc(x_618); -x_619 = lean_ctor_get(x_597, 2); -lean_inc(x_619); -x_620 = lean_ctor_get(x_597, 3); -lean_inc(x_620); -x_621 = lean_ctor_get(x_597, 4); -lean_inc(x_621); -x_622 = lean_ctor_get(x_597, 5); -lean_inc(x_622); -if (lean_is_exclusive(x_597)) { - lean_ctor_release(x_597, 0); - lean_ctor_release(x_597, 1); - lean_ctor_release(x_597, 2); - lean_ctor_release(x_597, 3); - lean_ctor_release(x_597, 4); - lean_ctor_release(x_597, 5); - x_623 = x_597; +lean_ctor_set(x_616, 1, x_614); +x_617 = lean_array_push(x_611, x_616); +x_618 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__9; +x_619 = lean_array_push(x_617, x_618); +x_620 = l_Lean_mkAppStx___closed__8; +x_621 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_621, 0, x_620); +lean_ctor_set(x_621, 1, x_619); +if (lean_is_scalar(x_596)) { + x_622 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_597); - x_623 = lean_box(0); + x_622 = x_596; } -x_624 = lean_unsigned_to_nat(1u); -x_625 = lean_nat_add(x_622, x_624); -if (lean_is_scalar(x_623)) { - x_626 = lean_alloc_ctor(0, 6, 0); -} else { - x_626 = x_623; -} -lean_ctor_set(x_626, 0, x_617); -lean_ctor_set(x_626, 1, x_618); -lean_ctor_set(x_626, 2, x_619); -lean_ctor_set(x_626, 3, x_620); -lean_ctor_set(x_626, 4, x_621); -lean_ctor_set(x_626, 5, x_625); -x_627 = lean_ctor_get(x_4, 0); +lean_ctor_set(x_622, 0, x_594); +lean_ctor_set(x_622, 1, x_621); +x_623 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_623, 0, x_622); +lean_ctor_set(x_623, 1, x_3); +x_624 = lean_ctor_get(x_604, 0); +lean_inc(x_624); +x_625 = lean_ctor_get(x_604, 1); +lean_inc(x_625); +x_626 = lean_ctor_get(x_604, 2); +lean_inc(x_626); +x_627 = lean_ctor_get(x_604, 3); lean_inc(x_627); -x_628 = lean_ctor_get(x_4, 1); +x_628 = lean_ctor_get(x_604, 4); lean_inc(x_628); -x_629 = lean_ctor_get(x_4, 2); +x_629 = lean_ctor_get(x_604, 5); lean_inc(x_629); -x_630 = lean_ctor_get(x_4, 3); -lean_inc(x_630); -x_631 = lean_ctor_get(x_4, 4); -lean_inc(x_631); -x_632 = lean_ctor_get(x_4, 5); -lean_inc(x_632); -x_633 = lean_ctor_get(x_4, 6); -lean_inc(x_633); -x_634 = lean_ctor_get(x_4, 7); +if (lean_is_exclusive(x_604)) { + lean_ctor_release(x_604, 0); + lean_ctor_release(x_604, 1); + lean_ctor_release(x_604, 2); + lean_ctor_release(x_604, 3); + lean_ctor_release(x_604, 4); + lean_ctor_release(x_604, 5); + x_630 = x_604; +} else { + lean_dec_ref(x_604); + x_630 = lean_box(0); +} +x_631 = lean_unsigned_to_nat(1u); +x_632 = lean_nat_add(x_629, x_631); +if (lean_is_scalar(x_630)) { + x_633 = lean_alloc_ctor(0, 6, 0); +} else { + x_633 = x_630; +} +lean_ctor_set(x_633, 0, x_624); +lean_ctor_set(x_633, 1, x_625); +lean_ctor_set(x_633, 2, x_626); +lean_ctor_set(x_633, 3, x_627); +lean_ctor_set(x_633, 4, x_628); +lean_ctor_set(x_633, 5, x_632); +x_634 = lean_ctor_get(x_4, 0); lean_inc(x_634); -x_635 = lean_ctor_get(x_4, 8); +x_635 = lean_ctor_get(x_4, 1); lean_inc(x_635); -x_636 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); -x_637 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); -x_638 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 2); -x_639 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_639, 0, x_627); -lean_ctor_set(x_639, 1, x_628); -lean_ctor_set(x_639, 2, x_629); -lean_ctor_set(x_639, 3, x_630); -lean_ctor_set(x_639, 4, x_631); -lean_ctor_set(x_639, 5, x_632); -lean_ctor_set(x_639, 6, x_633); -lean_ctor_set(x_639, 7, x_634); -lean_ctor_set(x_639, 8, x_635); -lean_ctor_set(x_639, 9, x_622); -lean_ctor_set_uint8(x_639, sizeof(void*)*10, x_636); -lean_ctor_set_uint8(x_639, sizeof(void*)*10 + 1, x_637); -lean_ctor_set_uint8(x_639, sizeof(void*)*10 + 2, x_638); -x_640 = l___private_Lean_Elab_Quotation_8__letBindRhss___main(x_1, x_586, x_616, x_639, x_626); -if (lean_obj_tag(x_640) == 0) -{ -lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; lean_object* x_653; lean_object* x_654; lean_object* x_655; lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; -x_641 = lean_ctor_get(x_640, 0); +x_636 = lean_ctor_get(x_4, 2); +lean_inc(x_636); +x_637 = lean_ctor_get(x_4, 3); +lean_inc(x_637); +x_638 = lean_ctor_get(x_4, 4); +lean_inc(x_638); +x_639 = lean_ctor_get(x_4, 5); +lean_inc(x_639); +x_640 = lean_ctor_get(x_4, 6); +lean_inc(x_640); +x_641 = lean_ctor_get(x_4, 7); lean_inc(x_641); -x_642 = lean_ctor_get(x_640, 1); +x_642 = lean_ctor_get(x_4, 8); lean_inc(x_642); -lean_dec(x_640); -x_643 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_642); +x_643 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_644 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_645 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +x_646 = lean_ctor_get(x_4, 10); +lean_inc(x_646); +x_647 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_647, 0, x_634); +lean_ctor_set(x_647, 1, x_635); +lean_ctor_set(x_647, 2, x_636); +lean_ctor_set(x_647, 3, x_637); +lean_ctor_set(x_647, 4, x_638); +lean_ctor_set(x_647, 5, x_639); +lean_ctor_set(x_647, 6, x_640); +lean_ctor_set(x_647, 7, x_641); +lean_ctor_set(x_647, 8, x_642); +lean_ctor_set(x_647, 9, x_629); +lean_ctor_set(x_647, 10, x_646); +lean_ctor_set_uint8(x_647, sizeof(void*)*11, x_643); +lean_ctor_set_uint8(x_647, sizeof(void*)*11 + 1, x_644); +lean_ctor_set_uint8(x_647, sizeof(void*)*11 + 2, x_645); +x_648 = l___private_Lean_Elab_Quotation_8__letBindRhss___main(x_1, x_593, x_623, x_647, x_633); +if (lean_obj_tag(x_648) == 0) +{ +lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; lean_object* x_653; lean_object* x_654; lean_object* x_655; lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; lean_object* x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; +x_649 = lean_ctor_get(x_648, 0); +lean_inc(x_649); +x_650 = lean_ctor_get(x_648, 1); +lean_inc(x_650); +lean_dec(x_648); +x_651 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_650); lean_dec(x_4); -x_644 = lean_ctor_get(x_643, 0); -lean_inc(x_644); -x_645 = lean_ctor_get(x_643, 1); -lean_inc(x_645); -lean_dec(x_643); -x_646 = l_Lean_Elab_Term_getMainModule___rarg(x_645); -x_647 = lean_ctor_get(x_646, 0); -lean_inc(x_647); -x_648 = lean_ctor_get(x_646, 1); -lean_inc(x_648); -if (lean_is_exclusive(x_646)) { - lean_ctor_release(x_646, 0); - lean_ctor_release(x_646, 1); - x_649 = x_646; +x_652 = lean_ctor_get(x_651, 0); +lean_inc(x_652); +x_653 = lean_ctor_get(x_651, 1); +lean_inc(x_653); +lean_dec(x_651); +x_654 = l_Lean_Elab_Term_getMainModule___rarg(x_653); +x_655 = lean_ctor_get(x_654, 0); +lean_inc(x_655); +x_656 = lean_ctor_get(x_654, 1); +lean_inc(x_656); +if (lean_is_exclusive(x_654)) { + lean_ctor_release(x_654, 0); + lean_ctor_release(x_654, 1); + x_657 = x_654; } else { - lean_dec_ref(x_646); - x_649 = lean_box(0); -} -x_650 = l_Lean_addMacroScope(x_647, x_598, x_644); -x_651 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_651, 0, x_601); -lean_ctor_set(x_651, 1, x_602); -lean_ctor_set(x_651, 2, x_650); -lean_ctor_set(x_651, 3, x_600); -x_652 = lean_array_push(x_604, x_651); -x_653 = lean_array_push(x_652, x_606); -x_654 = lean_array_push(x_653, x_606); -x_655 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; -x_656 = lean_array_push(x_654, x_655); -x_657 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__13; -x_658 = lean_array_push(x_657, x_588); -x_659 = l_Lean_Parser_Term_fun___elambda__1___closed__2; -x_660 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_660, 0, x_659); -lean_ctor_set(x_660, 1, x_658); -x_661 = lean_array_push(x_656, x_660); -x_662 = l_Lean_Parser_Term_letIdDecl___closed__2; -x_663 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_663, 0, x_662); -lean_ctor_set(x_663, 1, x_661); -x_664 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; -x_665 = lean_array_push(x_664, x_663); -x_666 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; -x_667 = lean_array_push(x_665, x_666); -x_668 = lean_array_push(x_667, x_641); -x_669 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_670 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_670, 0, x_669); -lean_ctor_set(x_670, 1, x_668); -if (lean_is_scalar(x_649)) { - x_671 = lean_alloc_ctor(0, 2, 0); -} else { - x_671 = x_649; + lean_dec_ref(x_654); + x_657 = lean_box(0); } +x_658 = l_Lean_addMacroScope(x_655, x_605, x_652); +x_659 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_659, 0, x_608); +lean_ctor_set(x_659, 1, x_609); +lean_ctor_set(x_659, 2, x_658); +lean_ctor_set(x_659, 3, x_607); +x_660 = lean_array_push(x_611, x_659); +x_661 = lean_array_push(x_660, x_613); +x_662 = lean_array_push(x_661, x_613); +x_663 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; +x_664 = lean_array_push(x_662, x_663); +x_665 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__13; +x_666 = lean_array_push(x_665, x_595); +x_667 = l_Lean_Parser_Term_fun___elambda__1___closed__2; +x_668 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_668, 0, x_667); +lean_ctor_set(x_668, 1, x_666); +x_669 = lean_array_push(x_664, x_668); +x_670 = l_Lean_Parser_Term_letIdDecl___closed__2; +x_671 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_671, 0, x_670); -lean_ctor_set(x_671, 1, x_648); -return x_671; +lean_ctor_set(x_671, 1, x_669); +x_672 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; +x_673 = lean_array_push(x_672, x_671); +x_674 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; +x_675 = lean_array_push(x_673, x_674); +x_676 = lean_array_push(x_675, x_649); +x_677 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_678 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_678, 0, x_677); +lean_ctor_set(x_678, 1, x_676); +if (lean_is_scalar(x_657)) { + x_679 = lean_alloc_ctor(0, 2, 0); +} else { + x_679 = x_657; +} +lean_ctor_set(x_679, 0, x_678); +lean_ctor_set(x_679, 1, x_656); +return x_679; } else { -lean_object* x_672; lean_object* x_673; lean_object* x_674; lean_object* x_675; -lean_dec(x_588); +lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; +lean_dec(x_595); lean_dec(x_4); -x_672 = lean_ctor_get(x_640, 0); -lean_inc(x_672); -x_673 = lean_ctor_get(x_640, 1); -lean_inc(x_673); -if (lean_is_exclusive(x_640)) { - lean_ctor_release(x_640, 0); - lean_ctor_release(x_640, 1); - x_674 = x_640; +x_680 = lean_ctor_get(x_648, 0); +lean_inc(x_680); +x_681 = lean_ctor_get(x_648, 1); +lean_inc(x_681); +if (lean_is_exclusive(x_648)) { + lean_ctor_release(x_648, 0); + lean_ctor_release(x_648, 1); + x_682 = x_648; } else { - lean_dec_ref(x_640); - x_674 = lean_box(0); + lean_dec_ref(x_648); + x_682 = lean_box(0); } -if (lean_is_scalar(x_674)) { - x_675 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_682)) { + x_683 = lean_alloc_ctor(1, 2, 0); } else { - x_675 = x_674; + x_683 = x_682; } -lean_ctor_set(x_675, 0, x_672); -lean_ctor_set(x_675, 1, x_673); -return x_675; +lean_ctor_set(x_683, 0, x_680); +lean_ctor_set(x_683, 1, x_681); +return x_683; } } else { -lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; lean_object* x_719; lean_object* x_720; lean_object* x_721; lean_object* x_722; lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_726; lean_object* x_727; uint8_t x_728; uint8_t x_729; uint8_t x_730; lean_object* x_731; lean_object* x_732; -x_676 = l_List_redLength___main___rarg(x_591); -x_677 = lean_mk_empty_array_with_capacity(x_676); -lean_dec(x_676); -lean_inc(x_591); -x_678 = l_List_toArrayAux___main___rarg(x_591, x_677); -if (lean_is_exclusive(x_591)) { - lean_ctor_release(x_591, 0); - lean_ctor_release(x_591, 1); - x_679 = x_591; +lean_object* x_684; lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; lean_object* x_719; lean_object* x_720; lean_object* x_721; lean_object* x_722; lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_726; lean_object* x_727; lean_object* x_728; lean_object* x_729; lean_object* x_730; lean_object* x_731; lean_object* x_732; lean_object* x_733; lean_object* x_734; lean_object* x_735; uint8_t x_736; uint8_t x_737; uint8_t x_738; lean_object* x_739; lean_object* x_740; lean_object* x_741; +x_684 = l_List_redLength___main___rarg(x_598); +x_685 = lean_mk_empty_array_with_capacity(x_684); +lean_dec(x_684); +lean_inc(x_598); +x_686 = l_List_toArrayAux___main___rarg(x_598, x_685); +if (lean_is_exclusive(x_598)) { + lean_ctor_release(x_598, 0); + lean_ctor_release(x_598, 1); + x_687 = x_598; } else { - lean_dec_ref(x_591); - x_679 = lean_box(0); + lean_dec_ref(x_598); + x_687 = lean_box(0); } -x_680 = l_Lean_nullKind___closed__2; -x_681 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_681, 0, x_680); -lean_ctor_set(x_681, 1, x_678); -x_682 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__16; -x_683 = lean_array_push(x_682, x_681); -x_684 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__15; -x_685 = lean_array_push(x_683, x_684); -x_686 = lean_array_push(x_685, x_588); -x_687 = l_Lean_Parser_Term_fun___elambda__1___closed__2; -x_688 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_688, 0, x_687); -lean_ctor_set(x_688, 1, x_686); -x_689 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5); -x_690 = lean_ctor_get(x_689, 0); -lean_inc(x_690); -x_691 = lean_ctor_get(x_689, 1); -lean_inc(x_691); -lean_dec(x_689); -x_692 = l_Lean_Elab_Term_getMainModule___rarg(x_691); -x_693 = lean_ctor_get(x_692, 0); -lean_inc(x_693); -x_694 = lean_ctor_get(x_692, 1); -lean_inc(x_694); -lean_dec(x_692); -x_695 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__4; -x_696 = l_Lean_addMacroScope(x_693, x_695, x_690); -x_697 = lean_box(0); -x_698 = l_Lean_SourceInfo_inhabited___closed__1; -x_699 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__3; -x_700 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_700, 0, x_698); -lean_ctor_set(x_700, 1, x_699); -lean_ctor_set(x_700, 2, x_696); -lean_ctor_set(x_700, 3, x_697); -x_701 = l_Array_empty___closed__1; -x_702 = lean_array_push(x_701, x_700); -x_703 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__17; -x_704 = lean_array_push(x_702, x_703); -x_705 = l_Lean_mkTermIdFromIdent___closed__2; -x_706 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_706, 0, x_705); -lean_ctor_set(x_706, 1, x_704); -if (lean_is_scalar(x_589)) { - x_707 = lean_alloc_ctor(0, 2, 0); +x_688 = l_Lean_nullKind___closed__2; +x_689 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_689, 0, x_688); +lean_ctor_set(x_689, 1, x_686); +x_690 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__16; +x_691 = lean_array_push(x_690, x_689); +x_692 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__15; +x_693 = lean_array_push(x_691, x_692); +x_694 = lean_array_push(x_693, x_595); +x_695 = l_Lean_Parser_Term_fun___elambda__1___closed__2; +x_696 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_696, 0, x_695); +lean_ctor_set(x_696, 1, x_694); +x_697 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5); +x_698 = lean_ctor_get(x_697, 0); +lean_inc(x_698); +x_699 = lean_ctor_get(x_697, 1); +lean_inc(x_699); +lean_dec(x_697); +x_700 = l_Lean_Elab_Term_getMainModule___rarg(x_699); +x_701 = lean_ctor_get(x_700, 0); +lean_inc(x_701); +x_702 = lean_ctor_get(x_700, 1); +lean_inc(x_702); +lean_dec(x_700); +x_703 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__4; +x_704 = l_Lean_addMacroScope(x_701, x_703, x_698); +x_705 = lean_box(0); +x_706 = l_Lean_SourceInfo_inhabited___closed__1; +x_707 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__3; +x_708 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_708, 0, x_706); +lean_ctor_set(x_708, 1, x_707); +lean_ctor_set(x_708, 2, x_704); +lean_ctor_set(x_708, 3, x_705); +x_709 = l_Array_empty___closed__1; +x_710 = lean_array_push(x_709, x_708); +x_711 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__17; +x_712 = lean_array_push(x_710, x_711); +x_713 = l_Lean_mkTermIdFromIdent___closed__2; +x_714 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_714, 0, x_713); +lean_ctor_set(x_714, 1, x_712); +if (lean_is_scalar(x_596)) { + x_715 = lean_alloc_ctor(0, 2, 0); } else { - x_707 = x_589; + x_715 = x_596; } -lean_ctor_set(x_707, 0, x_587); -lean_ctor_set(x_707, 1, x_706); -if (lean_is_scalar(x_679)) { - x_708 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_715, 0, x_594); +lean_ctor_set(x_715, 1, x_714); +if (lean_is_scalar(x_687)) { + x_716 = lean_alloc_ctor(1, 2, 0); } else { - x_708 = x_679; + x_716 = x_687; } -lean_ctor_set(x_708, 0, x_707); -lean_ctor_set(x_708, 1, x_3); -x_709 = lean_ctor_get(x_694, 0); -lean_inc(x_709); -x_710 = lean_ctor_get(x_694, 1); -lean_inc(x_710); -x_711 = lean_ctor_get(x_694, 2); -lean_inc(x_711); -x_712 = lean_ctor_get(x_694, 3); -lean_inc(x_712); -x_713 = lean_ctor_get(x_694, 4); -lean_inc(x_713); -x_714 = lean_ctor_get(x_694, 5); -lean_inc(x_714); -if (lean_is_exclusive(x_694)) { - lean_ctor_release(x_694, 0); - lean_ctor_release(x_694, 1); - lean_ctor_release(x_694, 2); - lean_ctor_release(x_694, 3); - lean_ctor_release(x_694, 4); - lean_ctor_release(x_694, 5); - x_715 = x_694; -} else { - lean_dec_ref(x_694); - x_715 = lean_box(0); -} -x_716 = lean_unsigned_to_nat(1u); -x_717 = lean_nat_add(x_714, x_716); -if (lean_is_scalar(x_715)) { - x_718 = lean_alloc_ctor(0, 6, 0); -} else { - x_718 = x_715; -} -lean_ctor_set(x_718, 0, x_709); -lean_ctor_set(x_718, 1, x_710); -lean_ctor_set(x_718, 2, x_711); -lean_ctor_set(x_718, 3, x_712); -lean_ctor_set(x_718, 4, x_713); -lean_ctor_set(x_718, 5, x_717); -x_719 = lean_ctor_get(x_4, 0); +lean_ctor_set(x_716, 0, x_715); +lean_ctor_set(x_716, 1, x_3); +x_717 = lean_ctor_get(x_702, 0); +lean_inc(x_717); +x_718 = lean_ctor_get(x_702, 1); +lean_inc(x_718); +x_719 = lean_ctor_get(x_702, 2); lean_inc(x_719); -x_720 = lean_ctor_get(x_4, 1); +x_720 = lean_ctor_get(x_702, 3); lean_inc(x_720); -x_721 = lean_ctor_get(x_4, 2); +x_721 = lean_ctor_get(x_702, 4); lean_inc(x_721); -x_722 = lean_ctor_get(x_4, 3); +x_722 = lean_ctor_get(x_702, 5); lean_inc(x_722); -x_723 = lean_ctor_get(x_4, 4); -lean_inc(x_723); -x_724 = lean_ctor_get(x_4, 5); -lean_inc(x_724); -x_725 = lean_ctor_get(x_4, 6); -lean_inc(x_725); -x_726 = lean_ctor_get(x_4, 7); -lean_inc(x_726); -x_727 = lean_ctor_get(x_4, 8); +if (lean_is_exclusive(x_702)) { + lean_ctor_release(x_702, 0); + lean_ctor_release(x_702, 1); + lean_ctor_release(x_702, 2); + lean_ctor_release(x_702, 3); + lean_ctor_release(x_702, 4); + lean_ctor_release(x_702, 5); + x_723 = x_702; +} else { + lean_dec_ref(x_702); + x_723 = lean_box(0); +} +x_724 = lean_unsigned_to_nat(1u); +x_725 = lean_nat_add(x_722, x_724); +if (lean_is_scalar(x_723)) { + x_726 = lean_alloc_ctor(0, 6, 0); +} else { + x_726 = x_723; +} +lean_ctor_set(x_726, 0, x_717); +lean_ctor_set(x_726, 1, x_718); +lean_ctor_set(x_726, 2, x_719); +lean_ctor_set(x_726, 3, x_720); +lean_ctor_set(x_726, 4, x_721); +lean_ctor_set(x_726, 5, x_725); +x_727 = lean_ctor_get(x_4, 0); lean_inc(x_727); -x_728 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); -x_729 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); -x_730 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 2); -x_731 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_731, 0, x_719); -lean_ctor_set(x_731, 1, x_720); -lean_ctor_set(x_731, 2, x_721); -lean_ctor_set(x_731, 3, x_722); -lean_ctor_set(x_731, 4, x_723); -lean_ctor_set(x_731, 5, x_724); -lean_ctor_set(x_731, 6, x_725); -lean_ctor_set(x_731, 7, x_726); -lean_ctor_set(x_731, 8, x_727); -lean_ctor_set(x_731, 9, x_714); -lean_ctor_set_uint8(x_731, sizeof(void*)*10, x_728); -lean_ctor_set_uint8(x_731, sizeof(void*)*10 + 1, x_729); -lean_ctor_set_uint8(x_731, sizeof(void*)*10 + 2, x_730); -x_732 = l___private_Lean_Elab_Quotation_8__letBindRhss___main(x_1, x_586, x_708, x_731, x_718); -if (lean_obj_tag(x_732) == 0) -{ -lean_object* x_733; lean_object* x_734; lean_object* x_735; lean_object* x_736; lean_object* x_737; lean_object* x_738; lean_object* x_739; lean_object* x_740; lean_object* x_741; lean_object* x_742; lean_object* x_743; lean_object* x_744; lean_object* x_745; lean_object* x_746; lean_object* x_747; lean_object* x_748; lean_object* x_749; lean_object* x_750; lean_object* x_751; lean_object* x_752; lean_object* x_753; lean_object* x_754; lean_object* x_755; lean_object* x_756; lean_object* x_757; lean_object* x_758; lean_object* x_759; -x_733 = lean_ctor_get(x_732, 0); +x_728 = lean_ctor_get(x_4, 1); +lean_inc(x_728); +x_729 = lean_ctor_get(x_4, 2); +lean_inc(x_729); +x_730 = lean_ctor_get(x_4, 3); +lean_inc(x_730); +x_731 = lean_ctor_get(x_4, 4); +lean_inc(x_731); +x_732 = lean_ctor_get(x_4, 5); +lean_inc(x_732); +x_733 = lean_ctor_get(x_4, 6); lean_inc(x_733); -x_734 = lean_ctor_get(x_732, 1); +x_734 = lean_ctor_get(x_4, 7); lean_inc(x_734); -lean_dec(x_732); -x_735 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_734); -lean_dec(x_4); -x_736 = lean_ctor_get(x_735, 0); -lean_inc(x_736); -x_737 = lean_ctor_get(x_735, 1); -lean_inc(x_737); -lean_dec(x_735); -x_738 = l_Lean_Elab_Term_getMainModule___rarg(x_737); -x_739 = lean_ctor_get(x_738, 0); +x_735 = lean_ctor_get(x_4, 8); +lean_inc(x_735); +x_736 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_737 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_738 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +x_739 = lean_ctor_get(x_4, 10); lean_inc(x_739); -x_740 = lean_ctor_get(x_738, 1); -lean_inc(x_740); -if (lean_is_exclusive(x_738)) { - lean_ctor_release(x_738, 0); - lean_ctor_release(x_738, 1); - x_741 = x_738; +x_740 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_740, 0, x_727); +lean_ctor_set(x_740, 1, x_728); +lean_ctor_set(x_740, 2, x_729); +lean_ctor_set(x_740, 3, x_730); +lean_ctor_set(x_740, 4, x_731); +lean_ctor_set(x_740, 5, x_732); +lean_ctor_set(x_740, 6, x_733); +lean_ctor_set(x_740, 7, x_734); +lean_ctor_set(x_740, 8, x_735); +lean_ctor_set(x_740, 9, x_722); +lean_ctor_set(x_740, 10, x_739); +lean_ctor_set_uint8(x_740, sizeof(void*)*11, x_736); +lean_ctor_set_uint8(x_740, sizeof(void*)*11 + 1, x_737); +lean_ctor_set_uint8(x_740, sizeof(void*)*11 + 2, x_738); +x_741 = l___private_Lean_Elab_Quotation_8__letBindRhss___main(x_1, x_593, x_716, x_740, x_726); +if (lean_obj_tag(x_741) == 0) +{ +lean_object* x_742; lean_object* x_743; lean_object* x_744; lean_object* x_745; lean_object* x_746; lean_object* x_747; lean_object* x_748; lean_object* x_749; lean_object* x_750; lean_object* x_751; lean_object* x_752; lean_object* x_753; lean_object* x_754; lean_object* x_755; lean_object* x_756; lean_object* x_757; lean_object* x_758; lean_object* x_759; lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; lean_object* x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; lean_object* x_768; +x_742 = lean_ctor_get(x_741, 0); +lean_inc(x_742); +x_743 = lean_ctor_get(x_741, 1); +lean_inc(x_743); +lean_dec(x_741); +x_744 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_743); +lean_dec(x_4); +x_745 = lean_ctor_get(x_744, 0); +lean_inc(x_745); +x_746 = lean_ctor_get(x_744, 1); +lean_inc(x_746); +lean_dec(x_744); +x_747 = l_Lean_Elab_Term_getMainModule___rarg(x_746); +x_748 = lean_ctor_get(x_747, 0); +lean_inc(x_748); +x_749 = lean_ctor_get(x_747, 1); +lean_inc(x_749); +if (lean_is_exclusive(x_747)) { + lean_ctor_release(x_747, 0); + lean_ctor_release(x_747, 1); + x_750 = x_747; } else { - lean_dec_ref(x_738); - x_741 = lean_box(0); + lean_dec_ref(x_747); + x_750 = lean_box(0); } -x_742 = l_Lean_addMacroScope(x_739, x_695, x_736); -x_743 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_743, 0, x_698); -lean_ctor_set(x_743, 1, x_699); -lean_ctor_set(x_743, 2, x_742); -lean_ctor_set(x_743, 3, x_697); -x_744 = lean_array_push(x_701, x_743); -x_745 = lean_array_push(x_744, x_703); -x_746 = lean_array_push(x_745, x_703); -x_747 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; -x_748 = lean_array_push(x_746, x_747); -x_749 = lean_array_push(x_748, x_688); -x_750 = l_Lean_Parser_Term_letIdDecl___closed__2; -x_751 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_751, 0, x_750); -lean_ctor_set(x_751, 1, x_749); -x_752 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; -x_753 = lean_array_push(x_752, x_751); -x_754 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; -x_755 = lean_array_push(x_753, x_754); -x_756 = lean_array_push(x_755, x_733); -x_757 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_758 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_758, 0, x_757); -lean_ctor_set(x_758, 1, x_756); -if (lean_is_scalar(x_741)) { - x_759 = lean_alloc_ctor(0, 2, 0); +x_751 = l_Lean_addMacroScope(x_748, x_703, x_745); +x_752 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_752, 0, x_706); +lean_ctor_set(x_752, 1, x_707); +lean_ctor_set(x_752, 2, x_751); +lean_ctor_set(x_752, 3, x_705); +x_753 = lean_array_push(x_709, x_752); +x_754 = lean_array_push(x_753, x_711); +x_755 = lean_array_push(x_754, x_711); +x_756 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; +x_757 = lean_array_push(x_755, x_756); +x_758 = lean_array_push(x_757, x_696); +x_759 = l_Lean_Parser_Term_letIdDecl___closed__2; +x_760 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_760, 0, x_759); +lean_ctor_set(x_760, 1, x_758); +x_761 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; +x_762 = lean_array_push(x_761, x_760); +x_763 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; +x_764 = lean_array_push(x_762, x_763); +x_765 = lean_array_push(x_764, x_742); +x_766 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_767 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_767, 0, x_766); +lean_ctor_set(x_767, 1, x_765); +if (lean_is_scalar(x_750)) { + x_768 = lean_alloc_ctor(0, 2, 0); } else { - x_759 = x_741; + x_768 = x_750; } -lean_ctor_set(x_759, 0, x_758); -lean_ctor_set(x_759, 1, x_740); -return x_759; +lean_ctor_set(x_768, 0, x_767); +lean_ctor_set(x_768, 1, x_749); +return x_768; } else { -lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; -lean_dec(x_688); +lean_object* x_769; lean_object* x_770; lean_object* x_771; lean_object* x_772; +lean_dec(x_696); lean_dec(x_4); -x_760 = lean_ctor_get(x_732, 0); -lean_inc(x_760); -x_761 = lean_ctor_get(x_732, 1); -lean_inc(x_761); -if (lean_is_exclusive(x_732)) { - lean_ctor_release(x_732, 0); - lean_ctor_release(x_732, 1); - x_762 = x_732; +x_769 = lean_ctor_get(x_741, 0); +lean_inc(x_769); +x_770 = lean_ctor_get(x_741, 1); +lean_inc(x_770); +if (lean_is_exclusive(x_741)) { + lean_ctor_release(x_741, 0); + lean_ctor_release(x_741, 1); + x_771 = x_741; } else { - lean_dec_ref(x_732); - x_762 = lean_box(0); + lean_dec_ref(x_741); + x_771 = lean_box(0); } -if (lean_is_scalar(x_762)) { - x_763 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_771)) { + x_772 = lean_alloc_ctor(1, 2, 0); } else { - x_763 = x_762; + x_772 = x_771; } -lean_ctor_set(x_763, 0, x_760); -lean_ctor_set(x_763, 1, x_761); -return x_763; +lean_ctor_set(x_772, 0, x_769); +lean_ctor_set(x_772, 1, x_770); +return x_772; } } } @@ -12952,205 +12990,205 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_6; uint8_t x_7; -x_6 = lean_array_get_size(x_3); -x_7 = lean_nat_dec_lt(x_2, x_6); -lean_dec(x_6); -if (x_7 == 0) +lean_object* x_5; uint8_t x_6; +x_5 = lean_array_get_size(x_2); +x_6 = lean_nat_dec_lt(x_1, x_5); +lean_dec(x_5); +if (x_6 == 0) { -lean_object* x_8; lean_object* x_9; -lean_dec(x_4); -lean_dec(x_2); -x_8 = x_3; -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_8); -lean_ctor_set(x_9, 1, x_5); -return x_9; +lean_object* x_7; lean_object* x_8; +lean_dec(x_3); +lean_dec(x_1); +x_7 = x_2; +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_7); +lean_ctor_set(x_8, 1, x_4); +return x_8; } else { -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_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; -x_10 = lean_array_fget(x_3, x_2); -x_11 = lean_unsigned_to_nat(0u); -x_12 = lean_array_fset(x_3, x_2, x_11); -x_13 = x_10; -x_60 = l_Lean_Syntax_getArg(x_13, x_11); -x_61 = l_Lean_Syntax_getArgs(x_60); -x_62 = lean_array_get_size(x_61); +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_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; +x_9 = lean_array_fget(x_2, x_1); +x_10 = lean_unsigned_to_nat(0u); +x_11 = lean_array_fset(x_2, x_1, x_10); +x_12 = x_9; +x_59 = l_Lean_Syntax_getArg(x_12, x_10); +x_60 = l_Lean_Syntax_getArgs(x_59); +x_61 = lean_array_get_size(x_60); +lean_dec(x_60); +x_62 = lean_unsigned_to_nat(1u); +x_63 = lean_nat_dec_eq(x_61, x_62); lean_dec(x_61); -x_63 = lean_unsigned_to_nat(1u); -x_64 = lean_nat_dec_eq(x_62, x_63); -lean_dec(x_62); -if (x_64 == 0) +if (x_63 == 0) { -lean_object* x_65; lean_object* x_66; uint8_t x_67; -lean_dec(x_60); -lean_dec(x_13); +lean_object* x_64; lean_object* x_65; uint8_t x_66; +lean_dec(x_59); lean_dec(x_12); -lean_dec(x_2); -x_65 = l_Array_umapMAux___main___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__1___closed__7; -x_66 = l_Lean_Elab_Term_throwError___rarg(x_1, x_65, x_4, x_5); -x_67 = !lean_is_exclusive(x_66); -if (x_67 == 0) +lean_dec(x_11); +lean_dec(x_1); +x_64 = l_Array_umapMAux___main___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__1___closed__7; +x_65 = l_Lean_Elab_Term_throwError___rarg(x_64, x_3, x_4); +x_66 = !lean_is_exclusive(x_65); +if (x_66 == 0) { -return x_66; +return x_65; } else { -lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_68 = lean_ctor_get(x_66, 0); -x_69 = lean_ctor_get(x_66, 1); -lean_inc(x_69); +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_65, 0); +x_68 = lean_ctor_get(x_65, 1); lean_inc(x_68); -lean_dec(x_66); -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_inc(x_67); +lean_dec(x_65); +x_69 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_69, 0, x_67); +lean_ctor_set(x_69, 1, x_68); +return x_69; } } else { -lean_object* x_71; -x_71 = l_Lean_Syntax_getArg(x_60, x_11); -lean_dec(x_60); -x_14 = x_71; -x_15 = x_5; -goto block_59; +lean_object* x_70; +x_70 = l_Lean_Syntax_getArg(x_59, x_10); +lean_dec(x_59); +x_13 = x_70; +x_14 = x_4; +goto block_58; } -block_59: +block_58: { -lean_object* x_16; uint8_t x_17; -x_16 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; -lean_inc(x_14); -x_17 = l_Lean_Syntax_isOfKind(x_14, x_16); -if (x_17 == 0) +lean_object* x_15; uint8_t x_16; +x_15 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; +lean_inc(x_13); +x_16 = l_Lean_Syntax_isOfKind(x_13, x_15); +if (x_16 == 0) { -lean_object* x_18; lean_object* x_19; -x_18 = l_Array_umapMAux___main___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__1___closed__1; -lean_inc(x_14); -x_19 = l_Lean_Syntax_findAux___main(x_18, x_14); -if (lean_obj_tag(x_19) == 0) +lean_object* x_17; lean_object* x_18; +x_17 = l_Array_umapMAux___main___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__1___closed__1; +lean_inc(x_13); +x_18 = l_Lean_Syntax_findAux___main(x_17, x_13); +if (lean_obj_tag(x_18) == 0) { -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; -x_20 = lean_unsigned_to_nat(2u); -x_21 = l_Lean_Syntax_getArg(x_13, x_20); -lean_dec(x_13); -x_22 = lean_box(0); -x_23 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_23, 0, x_14); -lean_ctor_set(x_23, 1, x_22); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_21); -x_25 = lean_unsigned_to_nat(1u); -x_26 = lean_nat_add(x_2, x_25); -x_27 = x_24; -x_28 = lean_array_fset(x_12, x_2, x_27); -lean_dec(x_2); -x_2 = x_26; -x_3 = x_28; -x_5 = x_15; +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; +x_19 = lean_unsigned_to_nat(2u); +x_20 = l_Lean_Syntax_getArg(x_12, x_19); +lean_dec(x_12); +x_21 = lean_box(0); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_13); +lean_ctor_set(x_22, 1, 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); +x_24 = lean_unsigned_to_nat(1u); +x_25 = lean_nat_add(x_1, x_24); +x_26 = x_23; +x_27 = lean_array_fset(x_11, x_1, x_26); +lean_dec(x_1); +x_1 = x_25; +x_2 = x_27; +x_4 = x_14; goto _start; } else { -lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; -lean_dec(x_14); +lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_dec(x_13); lean_dec(x_12); -lean_dec(x_2); -x_30 = lean_ctor_get(x_19, 0); -lean_inc(x_30); -lean_dec(x_19); -x_31 = l_Array_umapMAux___main___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__1___closed__4; -x_32 = l_Lean_Elab_Term_throwError___rarg(x_30, x_31, x_4, x_15); -lean_dec(x_30); -x_33 = !lean_is_exclusive(x_32); -if (x_33 == 0) +lean_dec(x_11); +lean_dec(x_1); +x_29 = lean_ctor_get(x_18, 0); +lean_inc(x_29); +lean_dec(x_18); +x_30 = l_Array_umapMAux___main___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__1___closed__4; +x_31 = l_Lean_Elab_Term_throwErrorAt___rarg(x_29, x_30, x_3, x_14); +lean_dec(x_29); +x_32 = !lean_is_exclusive(x_31); +if (x_32 == 0) { -return x_32; +return x_31; } else { -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_32, 0); -x_35 = lean_ctor_get(x_32, 1); -lean_inc(x_35); +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_31, 0); +x_34 = lean_ctor_get(x_31, 1); lean_inc(x_34); -lean_dec(x_32); -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; +lean_inc(x_33); +lean_dec(x_31); +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 { -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_37 = lean_unsigned_to_nat(1u); -x_38 = l_Lean_Syntax_getArg(x_14, x_37); -x_39 = l___private_Lean_Elab_Quotation_1__elimAntiquotChoices___main(x_38); -x_40 = l_Lean_Syntax_setArg(x_14, x_37, x_39); -x_41 = l_Array_umapMAux___main___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__1___closed__1; -lean_inc(x_40); -x_42 = l_Lean_Syntax_findAux___main(x_41, x_40); -if (lean_obj_tag(x_42) == 0) +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_36 = lean_unsigned_to_nat(1u); +x_37 = l_Lean_Syntax_getArg(x_13, x_36); +x_38 = l___private_Lean_Elab_Quotation_1__elimAntiquotChoices___main(x_37); +x_39 = l_Lean_Syntax_setArg(x_13, x_36, x_38); +x_40 = l_Array_umapMAux___main___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__1___closed__1; +lean_inc(x_39); +x_41 = l_Lean_Syntax_findAux___main(x_40, x_39); +if (lean_obj_tag(x_41) == 0) { -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_43 = lean_unsigned_to_nat(2u); -x_44 = l_Lean_Syntax_getArg(x_13, x_43); -lean_dec(x_13); -x_45 = lean_box(0); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_40); -lean_ctor_set(x_46, 1, x_45); -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_44); -x_48 = lean_nat_add(x_2, x_37); -x_49 = x_47; -x_50 = lean_array_fset(x_12, x_2, x_49); -lean_dec(x_2); -x_2 = x_48; -x_3 = x_50; -x_5 = x_15; +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_42 = lean_unsigned_to_nat(2u); +x_43 = l_Lean_Syntax_getArg(x_12, x_42); +lean_dec(x_12); +x_44 = lean_box(0); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_39); +lean_ctor_set(x_45, 1, 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_43); +x_47 = lean_nat_add(x_1, x_36); +x_48 = x_46; +x_49 = lean_array_fset(x_11, x_1, x_48); +lean_dec(x_1); +x_1 = x_47; +x_2 = x_49; +x_4 = x_14; goto _start; } else { -lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; -lean_dec(x_40); -lean_dec(x_13); +lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; +lean_dec(x_39); lean_dec(x_12); -lean_dec(x_2); -x_52 = lean_ctor_get(x_42, 0); -lean_inc(x_52); -lean_dec(x_42); -x_53 = l_Array_umapMAux___main___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__1___closed__4; -x_54 = l_Lean_Elab_Term_throwError___rarg(x_52, x_53, x_4, x_15); -lean_dec(x_52); -x_55 = !lean_is_exclusive(x_54); -if (x_55 == 0) +lean_dec(x_11); +lean_dec(x_1); +x_51 = lean_ctor_get(x_41, 0); +lean_inc(x_51); +lean_dec(x_41); +x_52 = l_Array_umapMAux___main___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__1___closed__4; +x_53 = l_Lean_Elab_Term_throwErrorAt___rarg(x_51, x_52, x_3, x_14); +lean_dec(x_51); +x_54 = !lean_is_exclusive(x_53); +if (x_54 == 0) { -return x_54; +return x_53; } else { -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_54, 0); -x_57 = lean_ctor_get(x_54, 1); -lean_inc(x_57); +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_53, 0); +x_56 = lean_ctor_get(x_53, 1); lean_inc(x_56); -lean_dec(x_54); -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; +lean_inc(x_55); +lean_dec(x_53); +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; } } } @@ -13174,11 +13212,9 @@ x_11 = l_Array_empty___closed__1; x_12 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_9, x_8, x_10, x_11); lean_dec(x_8); x_13 = x_12; -lean_inc(x_1); -x_14 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__1___boxed), 5, 3); -lean_closure_set(x_14, 0, x_1); -lean_closure_set(x_14, 1, x_10); -lean_closure_set(x_14, 2, x_13); +x_14 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__1), 4, 2); +lean_closure_set(x_14, 0, x_10); +lean_closure_set(x_14, 1, x_13); x_15 = x_14; lean_inc(x_2); x_16 = lean_apply_2(x_15, x_2, x_3); @@ -13196,8 +13232,7 @@ lean_ctor_set(x_20, 0, x_5); lean_ctor_set(x_20, 1, x_19); x_21 = l_Array_toList___rarg(x_17); lean_dec(x_17); -x_22 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main(x_1, x_20, x_21, x_2, x_18); -lean_dec(x_1); +x_22 = l___private_Lean_Elab_Quotation_6__compileStxMatch___main(x_20, x_21, x_2, x_18); return x_22; } else @@ -13205,7 +13240,6 @@ else uint8_t x_23; lean_dec(x_5); lean_dec(x_2); -lean_dec(x_1); x_23 = !lean_is_exclusive(x_16); if (x_23 == 0) { @@ -13236,20 +13270,20 @@ x_3 = lean_box(x_2); return x_3; } } -lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_Quotation_match__syntax_expand___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* l_Lean_Elab_Term_Quotation_match__syntax_expand___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_6; -x_6 = l_Array_umapMAux___main___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__1(x_1, x_2, x_3, x_4, x_5); +lean_object* x_4; +x_4 = l_Lean_Elab_Term_Quotation_match__syntax_expand(x_1, x_2, x_3); lean_dec(x_1); -return x_6; +return x_4; } } lean_object* _init_l_Lean_Elab_Term_Quotation_elabMatchSyntax___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Quotation_match__syntax_expand), 3, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Quotation_match__syntax_expand___boxed), 3, 0); return x_1; } } @@ -14201,4352 +14235,3961 @@ return x_2; lean_object* l___private_Lean_Elab_Quotation_10__toPreterm___main(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_4; lean_object* x_5; uint8_t x_6; x_4 = l_Lean_Syntax_getArgs(x_1); lean_inc(x_1); x_5 = l_Lean_Syntax_getKind(x_1); +x_6 = !lean_is_exclusive(x_2); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; uint8_t x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; +x_7 = lean_ctor_get(x_2, 0); +x_8 = lean_ctor_get(x_2, 1); +x_9 = lean_ctor_get(x_2, 2); +x_10 = lean_ctor_get(x_2, 3); +x_11 = lean_ctor_get(x_2, 4); +x_12 = lean_ctor_get(x_2, 5); +x_13 = lean_ctor_get(x_2, 6); +x_14 = lean_ctor_get(x_2, 7); +x_15 = lean_ctor_get(x_2, 8); +x_16 = lean_ctor_get(x_2, 9); +x_17 = lean_ctor_get_uint8(x_2, sizeof(void*)*11); +x_18 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 1); +x_19 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 2); +x_20 = lean_ctor_get(x_2, 10); +lean_dec(x_20); +lean_inc(x_1); +lean_inc(x_16); +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_9); +lean_inc(x_8); +lean_inc(x_7); +lean_ctor_set(x_2, 10, x_1); if (lean_obj_tag(x_5) == 1) { -lean_object* x_15; -x_15 = lean_ctor_get(x_5, 0); -lean_inc(x_15); -switch (lean_obj_tag(x_15)) { +lean_object* x_30; +x_30 = lean_ctor_get(x_5, 0); +lean_inc(x_30); +switch (lean_obj_tag(x_30)) { case 0: { -lean_object* x_16; lean_object* x_17; uint8_t x_18; -lean_dec(x_4); -x_16 = lean_ctor_get(x_5, 1); -lean_inc(x_16); -x_17 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__4; -x_18 = lean_string_dec_eq(x_16, x_17); +lean_object* x_31; lean_object* x_32; uint8_t x_33; lean_dec(x_16); -if (x_18 == 0) +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_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +x_31 = lean_ctor_get(x_5, 1); +lean_inc(x_31); +x_32 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__4; +x_33 = lean_string_dec_eq(x_31, x_32); +lean_dec(x_31); +if (x_33 == 0) { -lean_object* x_19; -x_19 = lean_box(0); -x_6 = x_19; -goto block_14; +lean_object* x_34; +lean_dec(x_1); +x_34 = lean_box(0); +x_21 = x_34; +goto block_29; } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -lean_dec(x_5); +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_dec(x_2); -x_20 = lean_unsigned_to_nat(0u); -x_21 = l_Lean_Syntax_getArg(x_1, x_20); +lean_dec(x_5); +x_35 = lean_unsigned_to_nat(0u); +x_36 = l_Lean_Syntax_getArg(x_1, x_35); lean_dec(x_1); -x_22 = 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_3); -return x_23; +x_37 = x_36; +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_3); +return x_38; } } case 1: { -lean_object* x_24; -x_24 = lean_ctor_get(x_15, 0); -lean_inc(x_24); -if (lean_obj_tag(x_24) == 1) -{ -lean_object* x_25; -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -if (lean_obj_tag(x_25) == 1) -{ -lean_object* x_26; -x_26 = lean_ctor_get(x_25, 0); -lean_inc(x_26); -if (lean_obj_tag(x_26) == 0) -{ -lean_object* x_27; uint8_t x_28; -x_27 = lean_ctor_get(x_5, 1); -lean_inc(x_27); -x_28 = !lean_is_exclusive(x_15); -if (x_28 == 0) -{ -size_t x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; -x_29 = lean_ctor_get_usize(x_5, 2); -x_30 = lean_ctor_get(x_15, 1); -x_31 = lean_ctor_get(x_15, 0); -lean_dec(x_31); -x_32 = !lean_is_exclusive(x_24); -if (x_32 == 0) -{ -lean_object* x_33; lean_object* x_34; uint8_t x_35; -x_33 = lean_ctor_get(x_24, 1); -x_34 = lean_ctor_get(x_24, 0); -lean_dec(x_34); -x_35 = !lean_is_exclusive(x_25); -if (x_35 == 0) -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; -x_36 = lean_ctor_get(x_25, 1); -x_37 = lean_ctor_get(x_25, 0); -lean_dec(x_37); -x_38 = l_Lean_mkAppStx___closed__1; -x_39 = lean_string_dec_eq(x_36, x_38); -lean_dec(x_36); -if (x_39 == 0) +lean_object* x_39; +x_39 = lean_ctor_get(x_30, 0); +lean_inc(x_39); +if (lean_obj_tag(x_39) == 1) { lean_object* x_40; -lean_free_object(x_25); -lean_free_object(x_24); -lean_dec(x_33); -lean_free_object(x_15); -lean_dec(x_30); -lean_dec(x_27); -lean_dec(x_4); -x_40 = lean_box(0); -x_6 = x_40; -goto block_14; -} -else +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +if (lean_obj_tag(x_40) == 1) { -uint8_t x_41; -x_41 = !lean_is_exclusive(x_5); -if (x_41 == 0) +lean_object* x_41; +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +if (lean_obj_tag(x_41) == 0) { -lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; +lean_object* x_42; uint8_t x_43; x_42 = lean_ctor_get(x_5, 1); -lean_dec(x_42); -x_43 = lean_ctor_get(x_5, 0); -lean_dec(x_43); -x_44 = l_Lean_mkAppStx___closed__3; -x_45 = lean_string_dec_eq(x_33, x_44); -if (x_45 == 0) +lean_inc(x_42); +x_43 = !lean_is_exclusive(x_30); +if (x_43 == 0) { -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_dec(x_4); -lean_ctor_set(x_25, 1, x_38); -x_46 = l_Lean_Name_toString___closed__1; -x_47 = l_Lean_Name_toStringWithSep___main(x_46, x_5); -x_48 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_48, 0, x_47); -x_49 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_49, 0, x_48); -x_50 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__3; -x_51 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_51, 0, x_50); -lean_ctor_set(x_51, 1, x_49); -x_52 = l_Lean_Elab_Term_throwError___rarg(x_1, x_51, x_2, x_3); -lean_dec(x_1); -return x_52; -} -else +size_t x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; +x_44 = lean_ctor_get_usize(x_5, 2); +x_45 = lean_ctor_get(x_30, 1); +x_46 = lean_ctor_get(x_30, 0); +lean_dec(x_46); +x_47 = !lean_is_exclusive(x_39); +if (x_47 == 0) { -lean_object* x_53; uint8_t x_54; -lean_dec(x_33); -x_53 = l_Lean_mkAppStx___closed__5; -x_54 = lean_string_dec_eq(x_30, x_53); +lean_object* x_48; lean_object* x_49; uint8_t x_50; +x_48 = lean_ctor_get(x_39, 1); +x_49 = lean_ctor_get(x_39, 0); +lean_dec(x_49); +x_50 = !lean_is_exclusive(x_40); +if (x_50 == 0) +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; +x_51 = lean_ctor_get(x_40, 1); +x_52 = lean_ctor_get(x_40, 0); +lean_dec(x_52); +x_53 = l_Lean_mkAppStx___closed__1; +x_54 = lean_string_dec_eq(x_51, x_53); +lean_dec(x_51); if (x_54 == 0) { -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +lean_object* x_55; +lean_free_object(x_40); +lean_free_object(x_39); +lean_dec(x_48); +lean_free_object(x_30); +lean_dec(x_45); +lean_dec(x_42); +lean_dec(x_16); +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_9); +lean_dec(x_8); +lean_dec(x_7); lean_dec(x_4); -lean_ctor_set(x_25, 1, x_38); -lean_ctor_set(x_24, 1, x_44); -x_55 = l_Lean_Name_toString___closed__1; -x_56 = l_Lean_Name_toStringWithSep___main(x_55, x_5); -x_57 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_57, 0, x_56); -x_58 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_58, 0, x_57); -x_59 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__3; -x_60 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_60, 0, x_59); -lean_ctor_set(x_60, 1, x_58); -x_61 = l_Lean_Elab_Term_throwError___rarg(x_1, x_60, x_2, x_3); lean_dec(x_1); -return x_61; +x_55 = lean_box(0); +x_21 = x_55; +goto block_29; } else { -lean_object* x_62; uint8_t x_63; -lean_dec(x_30); -x_62 = l_Lean_mkTermIdFromIdent___closed__1; -x_63 = lean_string_dec_eq(x_27, x_62); -if (x_63 == 0) +uint8_t x_56; +x_56 = !lean_is_exclusive(x_5); +if (x_56 == 0) { -lean_object* x_64; uint8_t x_65; -x_64 = l_Lean_Parser_Term_fun___elambda__1___closed__1; -x_65 = lean_string_dec_eq(x_27, x_64); -if (x_65 == 0) +lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; +x_57 = lean_ctor_get(x_5, 1); +lean_dec(x_57); +x_58 = lean_ctor_get(x_5, 0); +lean_dec(x_58); +x_59 = l_Lean_mkAppStx___closed__3; +x_60 = lean_string_dec_eq(x_48, x_59); +if (x_60 == 0) { -lean_object* x_66; uint8_t x_67; -x_66 = l_Lean_Parser_Term_let___elambda__1___closed__1; -x_67 = lean_string_dec_eq(x_27, x_66); -if (x_67 == 0) +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +lean_dec(x_16); +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_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_1); +lean_ctor_set(x_40, 1, x_53); +x_61 = l_Lean_Name_toString___closed__1; +x_62 = l_Lean_Name_toStringWithSep___main(x_61, x_5); +x_63 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_63, 0, x_62); +x_64 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_64, 0, x_63); +x_65 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__3; +x_66 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_64); +x_67 = l_Lean_Elab_Term_throwError___rarg(x_66, x_2, x_3); +return x_67; +} +else { lean_object* x_68; uint8_t x_69; -x_68 = l_Lean_mkAppStx___closed__7; -x_69 = lean_string_dec_eq(x_27, x_68); +lean_dec(x_48); +x_68 = l_Lean_mkAppStx___closed__5; +x_69 = lean_string_dec_eq(x_45, x_68); if (x_69 == 0) { -lean_object* x_70; uint8_t x_71; -x_70 = l_Lean_Parser_Term_if___elambda__1___closed__1; -x_71 = lean_string_dec_eq(x_27, x_70); -if (x_71 == 0) -{ -lean_object* x_72; uint8_t x_73; -x_72 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__1; -x_73 = lean_string_dec_eq(x_27, x_72); -if (x_73 == 0) -{ -lean_object* x_74; uint8_t x_75; -x_74 = l_Lean_Parser_Term_band___elambda__1___closed__1; -x_75 = lean_string_dec_eq(x_27, x_74); -if (x_75 == 0) -{ -lean_object* x_76; uint8_t x_77; -x_76 = l_Lean_Meta_reduceNat_x3f___closed__12; -x_77 = lean_string_dec_eq(x_27, x_76); -if (x_77 == 0) -{ -lean_object* x_78; uint8_t x_79; -x_78 = l_Lean_Parser_Term_eq___elambda__1___closed__1; -x_79 = lean_string_dec_eq(x_27, x_78); -if (x_79 == 0) -{ -lean_object* x_80; uint8_t x_81; +lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +lean_dec(x_16); +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_9); +lean_dec(x_8); +lean_dec(x_7); lean_dec(x_4); -x_80 = l_Lean_String_HasQuote___closed__1; -x_81 = lean_string_dec_eq(x_27, x_80); -if (x_81 == 0) -{ -lean_object* x_82; uint8_t x_83; -x_82 = l_Lean_Nat_HasQuote___closed__1; -x_83 = lean_string_dec_eq(x_27, x_82); -if (x_83 == 0) -{ -lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; -lean_ctor_set(x_25, 1, x_38); -lean_ctor_set(x_24, 1, x_44); -lean_ctor_set(x_15, 1, x_53); -x_84 = l_Lean_Name_toString___closed__1; -x_85 = l_Lean_Name_toStringWithSep___main(x_84, x_5); -x_86 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_86, 0, x_85); -x_87 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_87, 0, x_86); -x_88 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__3; -x_89 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_89, 0, x_88); -lean_ctor_set(x_89, 1, x_87); -x_90 = l_Lean_Elab_Term_throwError___rarg(x_1, x_89, x_2, x_3); lean_dec(x_1); -return x_90; +lean_ctor_set(x_40, 1, x_53); +lean_ctor_set(x_39, 1, x_59); +x_70 = l_Lean_Name_toString___closed__1; +x_71 = l_Lean_Name_toStringWithSep___main(x_70, x_5); +x_72 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_72, 0, x_71); +x_73 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_73, 0, x_72); +x_74 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__3; +x_75 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_75, 1, x_73); +x_76 = l_Lean_Elab_Term_throwError___rarg(x_75, x_2, x_3); +return x_76; } else { -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; -lean_free_object(x_5); -lean_free_object(x_25); -lean_free_object(x_24); -lean_free_object(x_15); -lean_dec(x_27); -lean_dec(x_2); -x_91 = lean_unsigned_to_nat(0u); -x_92 = l_Lean_Syntax_getArg(x_1, x_91); +lean_object* x_77; uint8_t x_78; +lean_dec(x_45); +x_77 = l_Lean_mkTermIdFromIdent___closed__1; +x_78 = lean_string_dec_eq(x_42, x_77); +if (x_78 == 0) +{ +lean_object* x_79; uint8_t x_80; +x_79 = l_Lean_Parser_Term_fun___elambda__1___closed__1; +x_80 = lean_string_dec_eq(x_42, x_79); +if (x_80 == 0) +{ +lean_object* x_81; uint8_t x_82; +x_81 = l_Lean_Parser_Term_let___elambda__1___closed__1; +x_82 = lean_string_dec_eq(x_42, x_81); +if (x_82 == 0) +{ +lean_object* x_83; uint8_t x_84; +lean_dec(x_16); +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_9); +lean_dec(x_8); +lean_dec(x_7); +x_83 = l_Lean_mkAppStx___closed__7; +x_84 = lean_string_dec_eq(x_42, x_83); +if (x_84 == 0) +{ +lean_object* x_85; uint8_t x_86; +x_85 = l_Lean_Parser_Term_if___elambda__1___closed__1; +x_86 = lean_string_dec_eq(x_42, x_85); +if (x_86 == 0) +{ +lean_object* x_87; uint8_t x_88; +x_87 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__1; +x_88 = lean_string_dec_eq(x_42, x_87); +if (x_88 == 0) +{ +lean_object* x_89; uint8_t x_90; +x_89 = l_Lean_Parser_Term_band___elambda__1___closed__1; +x_90 = lean_string_dec_eq(x_42, x_89); +if (x_90 == 0) +{ +lean_object* x_91; uint8_t x_92; +x_91 = l_Lean_Meta_reduceNat_x3f___closed__12; +x_92 = lean_string_dec_eq(x_42, x_91); +if (x_92 == 0) +{ +lean_object* x_93; uint8_t x_94; +x_93 = l_Lean_Parser_Term_eq___elambda__1___closed__1; +x_94 = lean_string_dec_eq(x_42, x_93); +if (x_94 == 0) +{ +lean_object* x_95; uint8_t x_96; +lean_dec(x_4); +x_95 = l_Lean_String_HasQuote___closed__1; +x_96 = lean_string_dec_eq(x_42, x_95); +if (x_96 == 0) +{ +lean_object* x_97; uint8_t x_98; +x_97 = l_Lean_Nat_HasQuote___closed__1; +x_98 = lean_string_dec_eq(x_42, x_97); +if (x_98 == 0) +{ +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; lean_dec(x_1); -x_93 = l_Lean_numLitKind; -x_94 = l_Lean_Syntax_isNatLitAux(x_93, x_92); -lean_dec(x_92); -if (lean_obj_tag(x_94) == 0) -{ -lean_object* x_95; lean_object* x_96; -x_95 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__5; -x_96 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_96, 0, x_95); -lean_ctor_set(x_96, 1, x_3); -return x_96; -} -else -{ -lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_97 = lean_ctor_get(x_94, 0); -lean_inc(x_97); -lean_dec(x_94); -x_98 = l_Lean_mkNatLit(x_97); -x_99 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_99, 0, x_98); -lean_ctor_set(x_99, 1, x_3); -return x_99; -} -} -} -else -{ -lean_object* x_100; lean_object* x_101; lean_object* x_102; -lean_free_object(x_5); -lean_free_object(x_25); -lean_free_object(x_24); -lean_free_object(x_15); -lean_dec(x_27); -lean_dec(x_2); -x_100 = lean_unsigned_to_nat(0u); -x_101 = l_Lean_Syntax_getArg(x_1, x_100); -lean_dec(x_1); -x_102 = l_Lean_Syntax_isStrLit_x3f(x_101); -lean_dec(x_101); -if (lean_obj_tag(x_102) == 0) -{ -lean_object* x_103; lean_object* x_104; -x_103 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__6; -x_104 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 1, x_53); +lean_ctor_set(x_39, 1, x_59); +lean_ctor_set(x_30, 1, x_68); +x_99 = l_Lean_Name_toString___closed__1; +x_100 = l_Lean_Name_toStringWithSep___main(x_99, x_5); +x_101 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_101, 0, x_100); +x_102 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_102, 0, x_101); +x_103 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__3; +x_104 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_104, 0, x_103); -lean_ctor_set(x_104, 1, x_3); -return x_104; +lean_ctor_set(x_104, 1, x_102); +x_105 = l_Lean_Elab_Term_throwError___rarg(x_104, x_2, x_3); +return x_105; } else { -lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_105 = lean_ctor_get(x_102, 0); -lean_inc(x_105); -lean_dec(x_102); -x_106 = l_Lean_mkStrLit(x_105); -x_107 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_107, 0, x_106); -lean_ctor_set(x_107, 1, x_3); -return x_107; -} -} -} -else -{ -lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; +lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_free_object(x_5); -lean_free_object(x_25); -lean_free_object(x_24); -lean_free_object(x_15); -lean_dec(x_27); -lean_dec(x_1); -x_108 = l_Lean_Syntax_inhabited; -x_109 = lean_unsigned_to_nat(0u); -x_110 = lean_array_get(x_108, x_4, x_109); -x_111 = lean_unsigned_to_nat(2u); -x_112 = lean_array_get(x_108, x_4, x_111); -lean_dec(x_4); -x_113 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__1___boxed), 6, 3); -lean_closure_set(x_113, 0, x_26); -lean_closure_set(x_113, 1, x_110); -lean_closure_set(x_113, 2, x_112); -x_114 = l_Lean_Unhygienic_MonadQuotation___closed__4; -x_115 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___spec__1___rarg), 4, 2); -lean_closure_set(x_115, 0, x_114); -lean_closure_set(x_115, 1, x_113); -x_116 = l_Lean_Unhygienic_run___rarg(x_115); -x_1 = x_116; -goto _start; -} -} -else -{ -lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; -lean_free_object(x_5); -lean_free_object(x_25); -lean_free_object(x_24); -lean_free_object(x_15); -lean_dec(x_27); -lean_dec(x_1); -x_118 = l_Lean_Syntax_inhabited; -x_119 = lean_unsigned_to_nat(0u); -x_120 = lean_array_get(x_118, x_4, x_119); -x_121 = lean_unsigned_to_nat(2u); -x_122 = lean_array_get(x_118, x_4, x_121); -lean_dec(x_4); -x_123 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__2___boxed), 6, 3); -lean_closure_set(x_123, 0, x_26); -lean_closure_set(x_123, 1, x_120); -lean_closure_set(x_123, 2, x_122); -x_124 = l_Lean_Unhygienic_MonadQuotation___closed__4; -x_125 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___spec__1___rarg), 4, 2); -lean_closure_set(x_125, 0, x_124); -lean_closure_set(x_125, 1, x_123); -x_126 = l_Lean_Unhygienic_run___rarg(x_125); -x_1 = x_126; -goto _start; -} -} -else -{ -lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; -lean_free_object(x_5); -lean_free_object(x_25); -lean_free_object(x_24); -lean_free_object(x_15); -lean_dec(x_27); -lean_dec(x_1); -x_128 = l_Lean_Syntax_inhabited; -x_129 = lean_unsigned_to_nat(0u); -x_130 = lean_array_get(x_128, x_4, x_129); -x_131 = lean_unsigned_to_nat(2u); -x_132 = lean_array_get(x_128, x_4, x_131); -lean_dec(x_4); -x_133 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__3___boxed), 6, 3); -lean_closure_set(x_133, 0, x_26); -lean_closure_set(x_133, 1, x_130); -lean_closure_set(x_133, 2, x_132); -x_134 = l_Lean_Unhygienic_MonadQuotation___closed__4; -x_135 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___spec__1___rarg), 4, 2); -lean_closure_set(x_135, 0, x_134); -lean_closure_set(x_135, 1, x_133); -x_136 = l_Lean_Unhygienic_run___rarg(x_135); -x_1 = x_136; -goto _start; -} -} -else -{ -lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; uint8_t x_144; -lean_free_object(x_5); -lean_free_object(x_25); -lean_free_object(x_24); -lean_free_object(x_15); -lean_dec(x_27); -lean_dec(x_1); -x_138 = l_Lean_Syntax_inhabited; -x_139 = lean_unsigned_to_nat(1u); -x_140 = lean_array_get(x_138, x_4, x_139); -lean_dec(x_4); -x_141 = l_Lean_Syntax_getArgs(x_140); -lean_dec(x_140); -x_142 = lean_array_get_size(x_141); -x_143 = lean_unsigned_to_nat(0u); -x_144 = lean_nat_dec_eq(x_142, x_143); -lean_dec(x_142); -if (x_144 == 0) -{ -lean_object* x_145; -x_145 = lean_array_get(x_138, x_141, x_143); -lean_dec(x_141); -x_1 = x_145; -goto _start; -} -else -{ -lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; -lean_dec(x_141); +lean_free_object(x_40); +lean_free_object(x_39); +lean_free_object(x_30); +lean_dec(x_42); lean_dec(x_2); -x_147 = l___private_Lean_Compiler_InitAttr_2__isUnitType___closed__1; -x_148 = lean_name_mk_string(x_26, x_147); -x_149 = l_Lean_unitToExpr___lambda__1___closed__3; -x_150 = lean_name_mk_string(x_148, x_149); -x_151 = lean_box(0); -x_152 = l_Lean_mkConst(x_150, x_151); -x_153 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_153, 0, x_152); -lean_ctor_set(x_153, 1, x_3); -return x_153; +x_106 = lean_unsigned_to_nat(0u); +x_107 = l_Lean_Syntax_getArg(x_1, x_106); +lean_dec(x_1); +x_108 = l_Lean_numLitKind; +x_109 = l_Lean_Syntax_isNatLitAux(x_108, x_107); +lean_dec(x_107); +if (lean_obj_tag(x_109) == 0) +{ +lean_object* x_110; lean_object* x_111; +x_110 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__5; +x_111 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_3); +return x_111; +} +else +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_112 = lean_ctor_get(x_109, 0); +lean_inc(x_112); +lean_dec(x_109); +x_113 = l_Lean_mkNatLit(x_112); +x_114 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_114, 0, x_113); +lean_ctor_set(x_114, 1, x_3); +return x_114; } } } else { -lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_free_object(x_5); -lean_free_object(x_25); -lean_free_object(x_24); -lean_free_object(x_15); -lean_dec(x_27); +lean_free_object(x_40); +lean_free_object(x_39); +lean_free_object(x_30); +lean_dec(x_42); +lean_dec(x_2); +x_115 = lean_unsigned_to_nat(0u); +x_116 = l_Lean_Syntax_getArg(x_1, x_115); lean_dec(x_1); -x_154 = l_Lean_Syntax_inhabited; -x_155 = lean_unsigned_to_nat(2u); -x_156 = lean_array_get(x_154, x_4, x_155); -x_157 = lean_unsigned_to_nat(4u); -x_158 = lean_array_get(x_154, x_4, x_157); -x_159 = lean_unsigned_to_nat(6u); -x_160 = lean_array_get(x_154, x_4, x_159); +x_117 = l_Lean_Syntax_isStrLit_x3f(x_116); +lean_dec(x_116); +if (lean_obj_tag(x_117) == 0) +{ +lean_object* x_118; lean_object* x_119; +x_118 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__6; +x_119 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_119, 0, x_118); +lean_ctor_set(x_119, 1, x_3); +return x_119; +} +else +{ +lean_object* x_120; lean_object* x_121; lean_object* x_122; +x_120 = lean_ctor_get(x_117, 0); +lean_inc(x_120); +lean_dec(x_117); +x_121 = l_Lean_mkStrLit(x_120); +x_122 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_122, 0, x_121); +lean_ctor_set(x_122, 1, x_3); +return x_122; +} +} +} +else +{ +lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; +lean_free_object(x_5); +lean_free_object(x_40); +lean_free_object(x_39); +lean_free_object(x_30); +lean_dec(x_42); +lean_dec(x_1); +x_123 = l_Lean_Syntax_inhabited; +x_124 = lean_unsigned_to_nat(0u); +x_125 = lean_array_get(x_123, x_4, x_124); +x_126 = lean_unsigned_to_nat(2u); +x_127 = lean_array_get(x_123, x_4, x_126); lean_dec(x_4); -x_161 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__4___boxed), 7, 4); -lean_closure_set(x_161, 0, x_26); -lean_closure_set(x_161, 1, x_156); -lean_closure_set(x_161, 2, x_158); -lean_closure_set(x_161, 3, x_160); -x_162 = l_Lean_Unhygienic_MonadQuotation___closed__4; -x_163 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___spec__1___rarg), 4, 2); -lean_closure_set(x_163, 0, x_162); -lean_closure_set(x_163, 1, x_161); -x_164 = l_Lean_Unhygienic_run___rarg(x_163); -x_1 = x_164; +x_128 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__1___boxed), 6, 3); +lean_closure_set(x_128, 0, x_41); +lean_closure_set(x_128, 1, x_125); +lean_closure_set(x_128, 2, x_127); +x_129 = l_Lean_Unhygienic_MonadQuotation___closed__4; +x_130 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___spec__1___rarg), 4, 2); +lean_closure_set(x_130, 0, x_129); +lean_closure_set(x_130, 1, x_128); +x_131 = l_Lean_Unhygienic_run___rarg(x_130); +x_1 = x_131; goto _start; } } else { -lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; +lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_free_object(x_5); -lean_free_object(x_25); -lean_free_object(x_24); -lean_free_object(x_15); -lean_dec(x_27); +lean_free_object(x_40); +lean_free_object(x_39); +lean_free_object(x_30); +lean_dec(x_42); lean_dec(x_1); -x_166 = l_Lean_Syntax_inhabited; -x_167 = lean_unsigned_to_nat(0u); -x_168 = lean_array_get(x_166, x_4, x_167); +x_133 = l_Lean_Syntax_inhabited; +x_134 = lean_unsigned_to_nat(0u); +x_135 = lean_array_get(x_133, x_4, x_134); +x_136 = lean_unsigned_to_nat(2u); +x_137 = lean_array_get(x_133, x_4, x_136); +lean_dec(x_4); +x_138 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__2___boxed), 6, 3); +lean_closure_set(x_138, 0, x_41); +lean_closure_set(x_138, 1, x_135); +lean_closure_set(x_138, 2, x_137); +x_139 = l_Lean_Unhygienic_MonadQuotation___closed__4; +x_140 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___spec__1___rarg), 4, 2); +lean_closure_set(x_140, 0, x_139); +lean_closure_set(x_140, 1, x_138); +x_141 = l_Lean_Unhygienic_run___rarg(x_140); +x_1 = x_141; +goto _start; +} +} +else +{ +lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; +lean_free_object(x_5); +lean_free_object(x_40); +lean_free_object(x_39); +lean_free_object(x_30); +lean_dec(x_42); +lean_dec(x_1); +x_143 = l_Lean_Syntax_inhabited; +x_144 = lean_unsigned_to_nat(0u); +x_145 = lean_array_get(x_143, x_4, x_144); +x_146 = lean_unsigned_to_nat(2u); +x_147 = lean_array_get(x_143, x_4, x_146); +lean_dec(x_4); +x_148 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__3___boxed), 6, 3); +lean_closure_set(x_148, 0, x_41); +lean_closure_set(x_148, 1, x_145); +lean_closure_set(x_148, 2, x_147); +x_149 = l_Lean_Unhygienic_MonadQuotation___closed__4; +x_150 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___spec__1___rarg), 4, 2); +lean_closure_set(x_150, 0, x_149); +lean_closure_set(x_150, 1, x_148); +x_151 = l_Lean_Unhygienic_run___rarg(x_150); +x_1 = x_151; +goto _start; +} +} +else +{ +lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; uint8_t x_159; +lean_free_object(x_5); +lean_free_object(x_40); +lean_free_object(x_39); +lean_free_object(x_30); +lean_dec(x_42); +lean_dec(x_1); +x_153 = l_Lean_Syntax_inhabited; +x_154 = lean_unsigned_to_nat(1u); +x_155 = lean_array_get(x_153, x_4, x_154); +lean_dec(x_4); +x_156 = l_Lean_Syntax_getArgs(x_155); +lean_dec(x_155); +x_157 = lean_array_get_size(x_156); +x_158 = lean_unsigned_to_nat(0u); +x_159 = lean_nat_dec_eq(x_157, x_158); +lean_dec(x_157); +if (x_159 == 0) +{ +lean_object* x_160; +x_160 = lean_array_get(x_153, x_156, x_158); +lean_dec(x_156); +x_1 = x_160; +goto _start; +} +else +{ +lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; +lean_dec(x_156); +lean_dec(x_2); +x_162 = l___private_Lean_Compiler_InitAttr_2__isUnitType___closed__1; +x_163 = lean_name_mk_string(x_41, x_162); +x_164 = l_Lean_unitToExpr___lambda__1___closed__3; +x_165 = lean_name_mk_string(x_163, x_164); +x_166 = lean_box(0); +x_167 = l_Lean_mkConst(x_165, x_166); +x_168 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_168, 0, x_167); +lean_ctor_set(x_168, 1, x_3); +return x_168; +} +} +} +else +{ +lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; +lean_free_object(x_5); +lean_free_object(x_40); +lean_free_object(x_39); +lean_free_object(x_30); +lean_dec(x_42); +lean_dec(x_1); +x_169 = l_Lean_Syntax_inhabited; +x_170 = lean_unsigned_to_nat(2u); +x_171 = lean_array_get(x_169, x_4, x_170); +x_172 = lean_unsigned_to_nat(4u); +x_173 = lean_array_get(x_169, x_4, x_172); +x_174 = lean_unsigned_to_nat(6u); +x_175 = lean_array_get(x_169, x_4, x_174); +lean_dec(x_4); +x_176 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__4___boxed), 7, 4); +lean_closure_set(x_176, 0, x_41); +lean_closure_set(x_176, 1, x_171); +lean_closure_set(x_176, 2, x_173); +lean_closure_set(x_176, 3, x_175); +x_177 = l_Lean_Unhygienic_MonadQuotation___closed__4; +x_178 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___spec__1___rarg), 4, 2); +lean_closure_set(x_178, 0, x_177); +lean_closure_set(x_178, 1, x_176); +x_179 = l_Lean_Unhygienic_run___rarg(x_178); +x_1 = x_179; +goto _start; +} +} +else +{ +lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; +lean_free_object(x_5); +lean_free_object(x_40); +lean_free_object(x_39); +lean_free_object(x_30); +lean_dec(x_42); +lean_dec(x_1); +x_181 = l_Lean_Syntax_inhabited; +x_182 = lean_unsigned_to_nat(0u); +x_183 = lean_array_get(x_181, x_4, x_182); lean_inc(x_2); -x_169 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_168, x_2, x_3); -if (lean_obj_tag(x_169) == 0) +x_184 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_183, x_2, x_3); +if (lean_obj_tag(x_184) == 0) { -lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; -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_172 = lean_unsigned_to_nat(1u); -x_173 = lean_array_get(x_166, x_4, x_172); +lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; +x_185 = lean_ctor_get(x_184, 0); +lean_inc(x_185); +x_186 = lean_ctor_get(x_184, 1); +lean_inc(x_186); +lean_dec(x_184); +x_187 = lean_unsigned_to_nat(1u); +x_188 = lean_array_get(x_181, x_4, x_187); lean_dec(x_4); -x_174 = l_Lean_Syntax_getArgs(x_173); -lean_dec(x_173); -x_175 = x_174; -x_176 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__1), 4, 2); -lean_closure_set(x_176, 0, x_167); -lean_closure_set(x_176, 1, x_175); -x_177 = x_176; -x_178 = lean_apply_2(x_177, x_2, x_171); -if (lean_obj_tag(x_178) == 0) +x_189 = l_Lean_Syntax_getArgs(x_188); +lean_dec(x_188); +x_190 = x_189; +x_191 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__1), 4, 2); +lean_closure_set(x_191, 0, x_182); +lean_closure_set(x_191, 1, x_190); +x_192 = x_191; +x_193 = lean_apply_2(x_192, x_2, x_186); +if (lean_obj_tag(x_193) == 0) { -uint8_t x_179; -x_179 = !lean_is_exclusive(x_178); -if (x_179 == 0) +uint8_t x_194; +x_194 = !lean_is_exclusive(x_193); +if (x_194 == 0) { -lean_object* x_180; lean_object* x_181; -x_180 = lean_ctor_get(x_178, 0); -x_181 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_180, x_180, x_167, x_170); -lean_dec(x_180); -lean_ctor_set(x_178, 0, x_181); -return x_178; -} -else -{ -lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; -x_182 = lean_ctor_get(x_178, 0); -x_183 = lean_ctor_get(x_178, 1); -lean_inc(x_183); -lean_inc(x_182); -lean_dec(x_178); -x_184 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_182, x_182, x_167, x_170); -lean_dec(x_182); -x_185 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_185, 0, x_184); -lean_ctor_set(x_185, 1, x_183); -return x_185; -} -} -else -{ -uint8_t x_186; -lean_dec(x_170); -x_186 = !lean_is_exclusive(x_178); -if (x_186 == 0) -{ -return x_178; -} -else -{ -lean_object* x_187; lean_object* x_188; lean_object* x_189; -x_187 = lean_ctor_get(x_178, 0); -x_188 = lean_ctor_get(x_178, 1); -lean_inc(x_188); -lean_inc(x_187); -lean_dec(x_178); -x_189 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_189, 0, x_187); -lean_ctor_set(x_189, 1, x_188); -return x_189; -} -} -} -else -{ -uint8_t x_190; -lean_dec(x_4); -lean_dec(x_2); -x_190 = !lean_is_exclusive(x_169); -if (x_190 == 0) -{ -return x_169; -} -else -{ -lean_object* x_191; lean_object* x_192; lean_object* x_193; -x_191 = lean_ctor_get(x_169, 0); -x_192 = lean_ctor_get(x_169, 1); -lean_inc(x_192); -lean_inc(x_191); -lean_dec(x_169); -x_193 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_193, 0, x_191); -lean_ctor_set(x_193, 1, x_192); +lean_object* x_195; lean_object* x_196; +x_195 = lean_ctor_get(x_193, 0); +x_196 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_195, x_195, x_182, x_185); +lean_dec(x_195); +lean_ctor_set(x_193, 0, x_196); return x_193; } +else +{ +lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; +x_197 = lean_ctor_get(x_193, 0); +x_198 = lean_ctor_get(x_193, 1); +lean_inc(x_198); +lean_inc(x_197); +lean_dec(x_193); +x_199 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_197, x_197, x_182, x_185); +lean_dec(x_197); +x_200 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_200, 0, x_199); +lean_ctor_set(x_200, 1, x_198); +return x_200; +} +} +else +{ +uint8_t x_201; +lean_dec(x_185); +x_201 = !lean_is_exclusive(x_193); +if (x_201 == 0) +{ +return x_193; +} +else +{ +lean_object* x_202; lean_object* x_203; lean_object* x_204; +x_202 = lean_ctor_get(x_193, 0); +x_203 = lean_ctor_get(x_193, 1); +lean_inc(x_203); +lean_inc(x_202); +lean_dec(x_193); +x_204 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_204, 0, x_202); +lean_ctor_set(x_204, 1, x_203); +return x_204; } } } else { -lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; uint8_t x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; -lean_free_object(x_5); -lean_free_object(x_25); -lean_free_object(x_24); -lean_free_object(x_15); -lean_dec(x_27); -lean_dec(x_1); -x_194 = l_Lean_Syntax_inhabited; -x_195 = lean_unsigned_to_nat(1u); -x_196 = lean_array_get(x_194, x_4, x_195); -x_197 = lean_unsigned_to_nat(0u); -x_198 = l_Lean_Syntax_getArg(x_196, x_197); -x_199 = l_Lean_Syntax_isIdent(x_198); -x_200 = lean_unsigned_to_nat(4u); -x_201 = l_Lean_Syntax_getArg(x_196, x_200); -lean_dec(x_196); -x_202 = lean_unsigned_to_nat(3u); -x_203 = lean_array_get(x_194, x_4, x_202); +uint8_t x_205; +lean_dec(x_2); lean_dec(x_4); -if (x_199 == 0) +x_205 = !lean_is_exclusive(x_184); +if (x_205 == 0) { -lean_object* x_291; -x_291 = l_Lean_Syntax_getIdAt(x_198, x_197); -lean_dec(x_198); -x_204 = x_291; -goto block_290; +return x_184; } else { -lean_object* x_292; -x_292 = l_Lean_Syntax_getId(x_198); -lean_dec(x_198); -x_204 = x_292; -goto block_290; -} -block_290: -{ -lean_object* x_205; -lean_inc(x_2); -x_205 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_201, x_2, x_3); -if (lean_obj_tag(x_205) == 0) -{ -lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; uint8_t x_213; -x_206 = lean_ctor_get(x_205, 0); -lean_inc(x_206); -x_207 = lean_ctor_get(x_205, 1); +lean_object* x_206; lean_object* x_207; lean_object* x_208; +x_206 = lean_ctor_get(x_184, 0); +x_207 = lean_ctor_get(x_184, 1); lean_inc(x_207); -lean_dec(x_205); -x_208 = l_Lean_Elab_Term_getLCtx(x_2, x_207); -x_209 = lean_ctor_get(x_208, 0); -lean_inc(x_209); -x_210 = lean_ctor_get(x_208, 1); -lean_inc(x_210); -lean_dec(x_208); -x_211 = l___private_Lean_Elab_Quotation_9__exprPlaceholder; -lean_inc_n(x_204, 2); -x_212 = lean_local_ctx_mk_let_decl(x_209, x_204, x_204, x_211, x_206); -x_213 = !lean_is_exclusive(x_2); -if (x_213 == 0) -{ -lean_object* x_214; uint8_t x_215; -x_214 = lean_ctor_get(x_2, 0); -x_215 = !lean_is_exclusive(x_214); -if (x_215 == 0) -{ -lean_object* x_216; lean_object* x_217; -x_216 = lean_ctor_get(x_214, 1); -lean_dec(x_216); -lean_inc(x_212); -lean_ctor_set(x_214, 1, x_212); -x_217 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_203, x_2, x_210); -if (lean_obj_tag(x_217) == 0) -{ -uint8_t x_218; -x_218 = !lean_is_exclusive(x_217); -if (x_218 == 0) -{ -lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; -x_219 = lean_ctor_get(x_217, 0); -x_220 = l_Lean_mkFVar(x_204); -x_221 = l_Lean_mkOptionalNode___closed__2; -x_222 = lean_array_push(x_221, x_220); -x_223 = l_Lean_LocalContext_mkLambda(x_212, x_222, x_219); -lean_dec(x_219); -lean_dec(x_222); -lean_ctor_set(x_217, 0, x_223); -return x_217; +lean_inc(x_206); +lean_dec(x_184); +x_208 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_208, 0, x_206); +lean_ctor_set(x_208, 1, x_207); +return x_208; +} +} +} } else { -lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; -x_224 = lean_ctor_get(x_217, 0); -x_225 = lean_ctor_get(x_217, 1); -lean_inc(x_225); +lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; uint8_t x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; +lean_free_object(x_5); +lean_free_object(x_40); +lean_free_object(x_39); +lean_free_object(x_30); +lean_dec(x_42); +x_209 = l_Lean_Syntax_inhabited; +x_210 = lean_unsigned_to_nat(1u); +x_211 = lean_array_get(x_209, x_4, x_210); +x_212 = lean_unsigned_to_nat(0u); +x_213 = l_Lean_Syntax_getArg(x_211, x_212); +x_214 = l_Lean_Syntax_isIdent(x_213); +x_215 = lean_unsigned_to_nat(4u); +x_216 = l_Lean_Syntax_getArg(x_211, x_215); +lean_dec(x_211); +x_217 = lean_unsigned_to_nat(3u); +x_218 = lean_array_get(x_209, x_4, x_217); +lean_dec(x_4); +if (x_214 == 0) +{ +lean_object* x_273; +x_273 = l_Lean_Syntax_getIdAt(x_213, x_212); +lean_dec(x_213); +x_219 = x_273; +goto block_272; +} +else +{ +lean_object* x_274; +x_274 = l_Lean_Syntax_getId(x_213); +lean_dec(x_213); +x_219 = x_274; +goto block_272; +} +block_272: +{ +lean_object* x_220; +lean_inc(x_2); +x_220 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_216, x_2, x_3); +if (lean_obj_tag(x_220) == 0) +{ +lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; uint8_t x_228; +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 = l_Lean_Elab_Term_getLCtx(x_2, x_222); +lean_dec(x_2); +x_224 = lean_ctor_get(x_223, 0); lean_inc(x_224); -lean_dec(x_217); -x_226 = l_Lean_mkFVar(x_204); -x_227 = l_Lean_mkOptionalNode___closed__2; -x_228 = lean_array_push(x_227, x_226); -x_229 = l_Lean_LocalContext_mkLambda(x_212, x_228, x_224); -lean_dec(x_224); -lean_dec(x_228); -x_230 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_230, 0, x_229); -lean_ctor_set(x_230, 1, x_225); -return x_230; -} +x_225 = lean_ctor_get(x_223, 1); +lean_inc(x_225); +lean_dec(x_223); +x_226 = l___private_Lean_Elab_Quotation_9__exprPlaceholder; +lean_inc_n(x_219, 2); +x_227 = lean_local_ctx_mk_let_decl(x_224, x_219, x_219, x_226, x_221); +x_228 = !lean_is_exclusive(x_7); +if (x_228 == 0) +{ +lean_object* x_229; lean_object* x_230; lean_object* x_231; +x_229 = lean_ctor_get(x_7, 1); +lean_dec(x_229); +lean_inc(x_227); +lean_ctor_set(x_7, 1, x_227); +x_230 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_230, 0, x_7); +lean_ctor_set(x_230, 1, x_8); +lean_ctor_set(x_230, 2, x_9); +lean_ctor_set(x_230, 3, x_10); +lean_ctor_set(x_230, 4, x_11); +lean_ctor_set(x_230, 5, x_12); +lean_ctor_set(x_230, 6, x_13); +lean_ctor_set(x_230, 7, x_14); +lean_ctor_set(x_230, 8, x_15); +lean_ctor_set(x_230, 9, x_16); +lean_ctor_set(x_230, 10, x_1); +lean_ctor_set_uint8(x_230, sizeof(void*)*11, x_17); +lean_ctor_set_uint8(x_230, sizeof(void*)*11 + 1, x_18); +lean_ctor_set_uint8(x_230, sizeof(void*)*11 + 2, x_19); +x_231 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_218, x_230, x_225); +if (lean_obj_tag(x_231) == 0) +{ +uint8_t x_232; +x_232 = !lean_is_exclusive(x_231); +if (x_232 == 0) +{ +lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; +x_233 = lean_ctor_get(x_231, 0); +x_234 = l_Lean_mkFVar(x_219); +x_235 = l_Lean_mkOptionalNode___closed__2; +x_236 = lean_array_push(x_235, x_234); +x_237 = l_Lean_LocalContext_mkLambda(x_227, x_236, x_233); +lean_dec(x_233); +lean_dec(x_236); +lean_ctor_set(x_231, 0, x_237); +return x_231; } else { -uint8_t x_231; -lean_dec(x_212); -lean_dec(x_204); -x_231 = !lean_is_exclusive(x_217); -if (x_231 == 0) -{ -return x_217; -} -else -{ -lean_object* x_232; lean_object* x_233; lean_object* x_234; -x_232 = lean_ctor_get(x_217, 0); -x_233 = lean_ctor_get(x_217, 1); -lean_inc(x_233); -lean_inc(x_232); -lean_dec(x_217); -x_234 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_234, 0, x_232); -lean_ctor_set(x_234, 1, x_233); -return x_234; -} -} -} -else -{ -lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; -x_235 = lean_ctor_get(x_214, 0); -x_236 = lean_ctor_get(x_214, 2); -x_237 = lean_ctor_get(x_214, 3); -x_238 = lean_ctor_get(x_214, 4); +lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; +x_238 = lean_ctor_get(x_231, 0); +x_239 = lean_ctor_get(x_231, 1); +lean_inc(x_239); lean_inc(x_238); -lean_inc(x_237); -lean_inc(x_236); -lean_inc(x_235); -lean_dec(x_214); -lean_inc(x_212); -x_239 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_239, 0, x_235); -lean_ctor_set(x_239, 1, x_212); -lean_ctor_set(x_239, 2, x_236); -lean_ctor_set(x_239, 3, x_237); -lean_ctor_set(x_239, 4, x_238); -lean_ctor_set(x_2, 0, x_239); -x_240 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_203, x_2, x_210); -if (lean_obj_tag(x_240) == 0) +lean_dec(x_231); +x_240 = l_Lean_mkFVar(x_219); +x_241 = l_Lean_mkOptionalNode___closed__2; +x_242 = lean_array_push(x_241, x_240); +x_243 = l_Lean_LocalContext_mkLambda(x_227, x_242, x_238); +lean_dec(x_238); +lean_dec(x_242); +x_244 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_244, 0, x_243); +lean_ctor_set(x_244, 1, x_239); +return x_244; +} +} +else { -lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; -x_241 = lean_ctor_get(x_240, 0); -lean_inc(x_241); -x_242 = lean_ctor_get(x_240, 1); -lean_inc(x_242); -if (lean_is_exclusive(x_240)) { - lean_ctor_release(x_240, 0); - lean_ctor_release(x_240, 1); - x_243 = x_240; -} else { - lean_dec_ref(x_240); - x_243 = lean_box(0); +uint8_t x_245; +lean_dec(x_227); +lean_dec(x_219); +x_245 = !lean_is_exclusive(x_231); +if (x_245 == 0) +{ +return x_231; } -x_244 = l_Lean_mkFVar(x_204); -x_245 = l_Lean_mkOptionalNode___closed__2; -x_246 = lean_array_push(x_245, x_244); -x_247 = l_Lean_LocalContext_mkLambda(x_212, x_246, x_241); -lean_dec(x_241); -lean_dec(x_246); -if (lean_is_scalar(x_243)) { - x_248 = lean_alloc_ctor(0, 2, 0); -} else { - x_248 = x_243; -} -lean_ctor_set(x_248, 0, x_247); -lean_ctor_set(x_248, 1, x_242); +else +{ +lean_object* x_246; lean_object* x_247; lean_object* x_248; +x_246 = lean_ctor_get(x_231, 0); +x_247 = lean_ctor_get(x_231, 1); +lean_inc(x_247); +lean_inc(x_246); +lean_dec(x_231); +x_248 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_248, 0, x_246); +lean_ctor_set(x_248, 1, x_247); return x_248; } +} +} else { -lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; -lean_dec(x_212); -lean_dec(x_204); -x_249 = lean_ctor_get(x_240, 0); -lean_inc(x_249); -x_250 = lean_ctor_get(x_240, 1); +lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; +x_249 = lean_ctor_get(x_7, 0); +x_250 = lean_ctor_get(x_7, 2); +x_251 = lean_ctor_get(x_7, 3); +x_252 = lean_ctor_get(x_7, 4); +lean_inc(x_252); +lean_inc(x_251); lean_inc(x_250); -if (lean_is_exclusive(x_240)) { - lean_ctor_release(x_240, 0); - lean_ctor_release(x_240, 1); - x_251 = x_240; -} else { - lean_dec_ref(x_240); - x_251 = lean_box(0); -} -if (lean_is_scalar(x_251)) { - x_252 = lean_alloc_ctor(1, 2, 0); -} else { - x_252 = x_251; -} -lean_ctor_set(x_252, 0, x_249); -lean_ctor_set(x_252, 1, x_250); -return x_252; -} -} -} -else +lean_inc(x_249); +lean_dec(x_7); +lean_inc(x_227); +x_253 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_253, 0, x_249); +lean_ctor_set(x_253, 1, x_227); +lean_ctor_set(x_253, 2, x_250); +lean_ctor_set(x_253, 3, x_251); +lean_ctor_set(x_253, 4, x_252); +x_254 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_254, 0, x_253); +lean_ctor_set(x_254, 1, x_8); +lean_ctor_set(x_254, 2, x_9); +lean_ctor_set(x_254, 3, x_10); +lean_ctor_set(x_254, 4, x_11); +lean_ctor_set(x_254, 5, x_12); +lean_ctor_set(x_254, 6, x_13); +lean_ctor_set(x_254, 7, x_14); +lean_ctor_set(x_254, 8, x_15); +lean_ctor_set(x_254, 9, x_16); +lean_ctor_set(x_254, 10, x_1); +lean_ctor_set_uint8(x_254, sizeof(void*)*11, x_17); +lean_ctor_set_uint8(x_254, sizeof(void*)*11 + 1, x_18); +lean_ctor_set_uint8(x_254, sizeof(void*)*11 + 2, x_19); +x_255 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_218, x_254, x_225); +if (lean_obj_tag(x_255) == 0) { -lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; uint8_t x_263; uint8_t x_264; uint8_t x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; -x_253 = lean_ctor_get(x_2, 0); -x_254 = lean_ctor_get(x_2, 1); -x_255 = lean_ctor_get(x_2, 2); -x_256 = lean_ctor_get(x_2, 3); -x_257 = lean_ctor_get(x_2, 4); -x_258 = lean_ctor_get(x_2, 5); -x_259 = lean_ctor_get(x_2, 6); -x_260 = lean_ctor_get(x_2, 7); -x_261 = lean_ctor_get(x_2, 8); -x_262 = lean_ctor_get(x_2, 9); -x_263 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_264 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); -x_265 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 2); -lean_inc(x_262); -lean_inc(x_261); -lean_inc(x_260); -lean_inc(x_259); -lean_inc(x_258); -lean_inc(x_257); +lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; +x_256 = lean_ctor_get(x_255, 0); lean_inc(x_256); -lean_inc(x_255); -lean_inc(x_254); -lean_inc(x_253); +x_257 = lean_ctor_get(x_255, 1); +lean_inc(x_257); +if (lean_is_exclusive(x_255)) { + lean_ctor_release(x_255, 0); + lean_ctor_release(x_255, 1); + x_258 = x_255; +} else { + lean_dec_ref(x_255); + x_258 = lean_box(0); +} +x_259 = l_Lean_mkFVar(x_219); +x_260 = l_Lean_mkOptionalNode___closed__2; +x_261 = lean_array_push(x_260, x_259); +x_262 = l_Lean_LocalContext_mkLambda(x_227, x_261, x_256); +lean_dec(x_256); +lean_dec(x_261); +if (lean_is_scalar(x_258)) { + x_263 = lean_alloc_ctor(0, 2, 0); +} else { + x_263 = x_258; +} +lean_ctor_set(x_263, 0, x_262); +lean_ctor_set(x_263, 1, x_257); +return x_263; +} +else +{ +lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; +lean_dec(x_227); +lean_dec(x_219); +x_264 = lean_ctor_get(x_255, 0); +lean_inc(x_264); +x_265 = lean_ctor_get(x_255, 1); +lean_inc(x_265); +if (lean_is_exclusive(x_255)) { + lean_ctor_release(x_255, 0); + lean_ctor_release(x_255, 1); + x_266 = x_255; +} else { + lean_dec_ref(x_255); + x_266 = lean_box(0); +} +if (lean_is_scalar(x_266)) { + x_267 = lean_alloc_ctor(1, 2, 0); +} else { + x_267 = x_266; +} +lean_ctor_set(x_267, 0, x_264); +lean_ctor_set(x_267, 1, x_265); +return x_267; +} +} +} +else +{ +uint8_t x_268; +lean_dec(x_219); +lean_dec(x_218); lean_dec(x_2); -x_266 = lean_ctor_get(x_253, 0); -lean_inc(x_266); -x_267 = lean_ctor_get(x_253, 2); -lean_inc(x_267); -x_268 = lean_ctor_get(x_253, 3); -lean_inc(x_268); -x_269 = lean_ctor_get(x_253, 4); -lean_inc(x_269); -if (lean_is_exclusive(x_253)) { - lean_ctor_release(x_253, 0); - lean_ctor_release(x_253, 1); - lean_ctor_release(x_253, 2); - lean_ctor_release(x_253, 3); - lean_ctor_release(x_253, 4); - x_270 = x_253; -} else { - lean_dec_ref(x_253); - x_270 = lean_box(0); -} -lean_inc(x_212); -if (lean_is_scalar(x_270)) { - x_271 = lean_alloc_ctor(0, 5, 0); -} else { - x_271 = x_270; -} -lean_ctor_set(x_271, 0, x_266); -lean_ctor_set(x_271, 1, x_212); -lean_ctor_set(x_271, 2, x_267); -lean_ctor_set(x_271, 3, x_268); -lean_ctor_set(x_271, 4, x_269); -x_272 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_272, 0, x_271); -lean_ctor_set(x_272, 1, x_254); -lean_ctor_set(x_272, 2, x_255); -lean_ctor_set(x_272, 3, x_256); -lean_ctor_set(x_272, 4, x_257); -lean_ctor_set(x_272, 5, x_258); -lean_ctor_set(x_272, 6, x_259); -lean_ctor_set(x_272, 7, x_260); -lean_ctor_set(x_272, 8, x_261); -lean_ctor_set(x_272, 9, x_262); -lean_ctor_set_uint8(x_272, sizeof(void*)*10, x_263); -lean_ctor_set_uint8(x_272, sizeof(void*)*10 + 1, x_264); -lean_ctor_set_uint8(x_272, sizeof(void*)*10 + 2, x_265); -x_273 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_203, x_272, x_210); -if (lean_obj_tag(x_273) == 0) -{ -lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; -x_274 = lean_ctor_get(x_273, 0); -lean_inc(x_274); -x_275 = lean_ctor_get(x_273, 1); -lean_inc(x_275); -if (lean_is_exclusive(x_273)) { - lean_ctor_release(x_273, 0); - lean_ctor_release(x_273, 1); - x_276 = x_273; -} else { - lean_dec_ref(x_273); - x_276 = lean_box(0); -} -x_277 = l_Lean_mkFVar(x_204); -x_278 = l_Lean_mkOptionalNode___closed__2; -x_279 = lean_array_push(x_278, x_277); -x_280 = l_Lean_LocalContext_mkLambda(x_212, x_279, x_274); -lean_dec(x_274); -lean_dec(x_279); -if (lean_is_scalar(x_276)) { - x_281 = lean_alloc_ctor(0, 2, 0); -} else { - x_281 = x_276; -} -lean_ctor_set(x_281, 0, x_280); -lean_ctor_set(x_281, 1, x_275); -return x_281; -} -else -{ -lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; -lean_dec(x_212); -lean_dec(x_204); -x_282 = lean_ctor_get(x_273, 0); -lean_inc(x_282); -x_283 = lean_ctor_get(x_273, 1); -lean_inc(x_283); -if (lean_is_exclusive(x_273)) { - lean_ctor_release(x_273, 0); - lean_ctor_release(x_273, 1); - x_284 = x_273; -} else { - lean_dec_ref(x_273); - x_284 = lean_box(0); -} -if (lean_is_scalar(x_284)) { - x_285 = lean_alloc_ctor(1, 2, 0); -} else { - x_285 = x_284; -} -lean_ctor_set(x_285, 0, x_282); -lean_ctor_set(x_285, 1, x_283); -return x_285; -} -} -} -else -{ -uint8_t x_286; -lean_dec(x_204); -lean_dec(x_203); -lean_dec(x_2); -x_286 = !lean_is_exclusive(x_205); -if (x_286 == 0) -{ -return x_205; -} -else -{ -lean_object* x_287; lean_object* x_288; lean_object* x_289; -x_287 = lean_ctor_get(x_205, 0); -x_288 = lean_ctor_get(x_205, 1); -lean_inc(x_288); -lean_inc(x_287); -lean_dec(x_205); -x_289 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_289, 0, x_287); -lean_ctor_set(x_289, 1, x_288); -return x_289; -} -} -} -} -} -else -{ -lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; uint8_t x_301; -lean_free_object(x_5); -lean_free_object(x_25); -lean_free_object(x_24); -lean_free_object(x_15); -lean_dec(x_27); +lean_dec(x_16); +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_9); +lean_dec(x_8); +lean_dec(x_7); lean_dec(x_1); -x_293 = l_Lean_Syntax_inhabited; -x_294 = lean_unsigned_to_nat(1u); -x_295 = lean_array_get(x_293, x_4, x_294); -x_296 = l_Lean_Syntax_getArgs(x_295); -lean_dec(x_295); -x_297 = lean_unsigned_to_nat(3u); -x_298 = lean_array_get(x_293, x_4, x_297); -lean_dec(x_4); -x_299 = lean_array_get_size(x_296); -x_300 = lean_unsigned_to_nat(0u); -x_301 = lean_nat_dec_eq(x_299, x_300); -lean_dec(x_299); -if (x_301 == 0) +x_268 = !lean_is_exclusive(x_220); +if (x_268 == 0) { -lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; uint8_t x_307; -x_302 = lean_array_get(x_293, x_296, x_300); -x_303 = lean_name_mk_string(x_26, x_38); -x_304 = lean_name_mk_string(x_303, x_44); -x_305 = lean_name_mk_string(x_304, x_53); -lean_inc(x_305); -x_306 = lean_name_mk_string(x_305, x_62); -lean_inc(x_302); -x_307 = l_Lean_Syntax_isOfKind(x_302, x_306); -lean_dec(x_306); -if (x_307 == 0) -{ -lean_object* x_308; lean_object* x_309; uint8_t x_310; -x_308 = l_Lean_mkHole___closed__1; -lean_inc(x_305); -x_309 = lean_name_mk_string(x_305, x_308); -lean_inc(x_302); -x_310 = l_Lean_Syntax_isOfKind(x_302, x_309); -lean_dec(x_309); -if (x_310 == 0) -{ -lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; -x_311 = l_Lean_Syntax_getArg(x_302, x_294); -lean_dec(x_302); -x_312 = l_Lean_Syntax_getArg(x_311, x_300); -x_313 = l_Lean_Syntax_getIdAt(x_312, x_300); -lean_dec(x_312); -x_314 = l_Lean_Syntax_getArg(x_311, x_294); -lean_dec(x_311); -x_315 = l_Lean_Syntax_getArg(x_314, x_300); -lean_dec(x_314); -x_316 = l_Lean_Syntax_getArg(x_315, x_294); -lean_dec(x_315); -lean_inc(x_2); -x_317 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_316, x_2, x_3); -if (lean_obj_tag(x_317) == 0) -{ -lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; uint8_t x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; uint8_t x_342; -x_318 = lean_ctor_get(x_317, 0); -lean_inc(x_318); -x_319 = lean_ctor_get(x_317, 1); -lean_inc(x_319); -lean_dec(x_317); -x_320 = l_Lean_Elab_Term_getLCtx(x_2, x_319); -x_321 = lean_ctor_get(x_320, 0); -lean_inc(x_321); -x_322 = lean_ctor_get(x_320, 1); -lean_inc(x_322); -lean_dec(x_320); -x_323 = 0; -lean_inc_n(x_313, 2); -x_324 = lean_local_ctx_mk_local_decl(x_321, x_313, x_313, x_318, x_323); -x_325 = l_Array_eraseIdx___rarg(x_296, x_300); -x_326 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_322); -x_327 = lean_ctor_get(x_326, 1); -lean_inc(x_327); -lean_dec(x_326); -x_328 = l_Lean_Elab_Term_getMainModule___rarg(x_327); -x_329 = lean_ctor_get(x_328, 1); -lean_inc(x_329); -lean_dec(x_328); -x_330 = lean_name_mk_string(x_305, x_64); -x_331 = l_Lean_nullKind___closed__1; -x_332 = lean_name_mk_string(x_26, x_331); -x_333 = l_Array_empty___closed__1; -x_334 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_325, x_325, x_300, x_333); -lean_dec(x_325); -x_335 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_335, 0, x_332); -lean_ctor_set(x_335, 1, x_334); -x_336 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; -x_337 = lean_array_push(x_336, x_335); -x_338 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; -x_339 = lean_array_push(x_337, x_338); -x_340 = lean_array_push(x_339, x_298); -x_341 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_341, 0, x_330); -lean_ctor_set(x_341, 1, x_340); -x_342 = !lean_is_exclusive(x_2); -if (x_342 == 0) -{ -lean_object* x_343; uint8_t x_344; -x_343 = lean_ctor_get(x_2, 0); -x_344 = !lean_is_exclusive(x_343); -if (x_344 == 0) -{ -lean_object* x_345; lean_object* x_346; -x_345 = lean_ctor_get(x_343, 1); -lean_dec(x_345); -lean_inc(x_324); -lean_ctor_set(x_343, 1, x_324); -x_346 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_341, x_2, x_329); -if (lean_obj_tag(x_346) == 0) -{ -uint8_t x_347; -x_347 = !lean_is_exclusive(x_346); -if (x_347 == 0) -{ -lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; -x_348 = lean_ctor_get(x_346, 0); -x_349 = l_Lean_mkFVar(x_313); -x_350 = l_Lean_mkOptionalNode___closed__2; -x_351 = lean_array_push(x_350, x_349); -x_352 = l_Lean_LocalContext_mkLambda(x_324, x_351, x_348); -lean_dec(x_348); -lean_dec(x_351); -lean_ctor_set(x_346, 0, x_352); -return x_346; +return x_220; } else { -lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; -x_353 = lean_ctor_get(x_346, 0); -x_354 = lean_ctor_get(x_346, 1); -lean_inc(x_354); +lean_object* x_269; lean_object* x_270; lean_object* x_271; +x_269 = lean_ctor_get(x_220, 0); +x_270 = lean_ctor_get(x_220, 1); +lean_inc(x_270); +lean_inc(x_269); +lean_dec(x_220); +x_271 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_271, 0, x_269); +lean_ctor_set(x_271, 1, x_270); +return x_271; +} +} +} +} +} +else +{ +lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; uint8_t x_283; +lean_free_object(x_5); +lean_free_object(x_40); +lean_free_object(x_39); +lean_free_object(x_30); +lean_dec(x_42); +x_275 = l_Lean_Syntax_inhabited; +x_276 = lean_unsigned_to_nat(1u); +x_277 = lean_array_get(x_275, x_4, x_276); +x_278 = l_Lean_Syntax_getArgs(x_277); +lean_dec(x_277); +x_279 = lean_unsigned_to_nat(3u); +x_280 = lean_array_get(x_275, x_4, x_279); +lean_dec(x_4); +x_281 = lean_array_get_size(x_278); +x_282 = lean_unsigned_to_nat(0u); +x_283 = lean_nat_dec_eq(x_281, x_282); +lean_dec(x_281); +if (x_283 == 0) +{ +lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; uint8_t x_289; +x_284 = lean_array_get(x_275, x_278, x_282); +x_285 = lean_name_mk_string(x_41, x_53); +x_286 = lean_name_mk_string(x_285, x_59); +x_287 = lean_name_mk_string(x_286, x_68); +lean_inc(x_287); +x_288 = lean_name_mk_string(x_287, x_77); +lean_inc(x_284); +x_289 = l_Lean_Syntax_isOfKind(x_284, x_288); +lean_dec(x_288); +if (x_289 == 0) +{ +lean_object* x_290; lean_object* x_291; uint8_t x_292; +x_290 = l_Lean_mkHole___closed__1; +lean_inc(x_287); +x_291 = lean_name_mk_string(x_287, x_290); +lean_inc(x_284); +x_292 = l_Lean_Syntax_isOfKind(x_284, x_291); +lean_dec(x_291); +if (x_292 == 0) +{ +lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; +x_293 = l_Lean_Syntax_getArg(x_284, x_276); +lean_dec(x_284); +x_294 = l_Lean_Syntax_getArg(x_293, x_282); +x_295 = l_Lean_Syntax_getIdAt(x_294, x_282); +lean_dec(x_294); +x_296 = l_Lean_Syntax_getArg(x_293, x_276); +lean_dec(x_293); +x_297 = l_Lean_Syntax_getArg(x_296, x_282); +lean_dec(x_296); +x_298 = l_Lean_Syntax_getArg(x_297, x_276); +lean_dec(x_297); +lean_inc(x_2); +x_299 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_298, x_2, x_3); +if (lean_obj_tag(x_299) == 0) +{ +lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; uint8_t x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; uint8_t x_324; +x_300 = lean_ctor_get(x_299, 0); +lean_inc(x_300); +x_301 = lean_ctor_get(x_299, 1); +lean_inc(x_301); +lean_dec(x_299); +x_302 = l_Lean_Elab_Term_getLCtx(x_2, x_301); +x_303 = lean_ctor_get(x_302, 0); +lean_inc(x_303); +x_304 = lean_ctor_get(x_302, 1); +lean_inc(x_304); +lean_dec(x_302); +x_305 = 0; +lean_inc_n(x_295, 2); +x_306 = lean_local_ctx_mk_local_decl(x_303, x_295, x_295, x_300, x_305); +x_307 = l_Array_eraseIdx___rarg(x_278, x_282); +x_308 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_304); +lean_dec(x_2); +x_309 = lean_ctor_get(x_308, 1); +lean_inc(x_309); +lean_dec(x_308); +x_310 = l_Lean_Elab_Term_getMainModule___rarg(x_309); +x_311 = lean_ctor_get(x_310, 1); +lean_inc(x_311); +lean_dec(x_310); +x_312 = lean_name_mk_string(x_287, x_79); +x_313 = l_Lean_nullKind___closed__1; +x_314 = lean_name_mk_string(x_41, x_313); +x_315 = l_Array_empty___closed__1; +x_316 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_307, x_307, x_282, x_315); +lean_dec(x_307); +x_317 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_317, 0, x_314); +lean_ctor_set(x_317, 1, x_316); +x_318 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; +x_319 = lean_array_push(x_318, x_317); +x_320 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; +x_321 = lean_array_push(x_319, x_320); +x_322 = lean_array_push(x_321, x_280); +x_323 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_323, 0, x_312); +lean_ctor_set(x_323, 1, x_322); +x_324 = !lean_is_exclusive(x_7); +if (x_324 == 0) +{ +lean_object* x_325; lean_object* x_326; lean_object* x_327; +x_325 = lean_ctor_get(x_7, 1); +lean_dec(x_325); +lean_inc(x_306); +lean_ctor_set(x_7, 1, x_306); +x_326 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_326, 0, x_7); +lean_ctor_set(x_326, 1, x_8); +lean_ctor_set(x_326, 2, x_9); +lean_ctor_set(x_326, 3, x_10); +lean_ctor_set(x_326, 4, x_11); +lean_ctor_set(x_326, 5, x_12); +lean_ctor_set(x_326, 6, x_13); +lean_ctor_set(x_326, 7, x_14); +lean_ctor_set(x_326, 8, x_15); +lean_ctor_set(x_326, 9, x_16); +lean_ctor_set(x_326, 10, x_1); +lean_ctor_set_uint8(x_326, sizeof(void*)*11, x_17); +lean_ctor_set_uint8(x_326, sizeof(void*)*11 + 1, x_18); +lean_ctor_set_uint8(x_326, sizeof(void*)*11 + 2, x_19); +x_327 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_323, x_326, x_311); +if (lean_obj_tag(x_327) == 0) +{ +uint8_t x_328; +x_328 = !lean_is_exclusive(x_327); +if (x_328 == 0) +{ +lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; +x_329 = lean_ctor_get(x_327, 0); +x_330 = l_Lean_mkFVar(x_295); +x_331 = l_Lean_mkOptionalNode___closed__2; +x_332 = lean_array_push(x_331, x_330); +x_333 = l_Lean_LocalContext_mkLambda(x_306, x_332, x_329); +lean_dec(x_329); +lean_dec(x_332); +lean_ctor_set(x_327, 0, x_333); +return x_327; +} +else +{ +lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; +x_334 = lean_ctor_get(x_327, 0); +x_335 = lean_ctor_get(x_327, 1); +lean_inc(x_335); +lean_inc(x_334); +lean_dec(x_327); +x_336 = l_Lean_mkFVar(x_295); +x_337 = l_Lean_mkOptionalNode___closed__2; +x_338 = lean_array_push(x_337, x_336); +x_339 = l_Lean_LocalContext_mkLambda(x_306, x_338, x_334); +lean_dec(x_334); +lean_dec(x_338); +x_340 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_340, 0, x_339); +lean_ctor_set(x_340, 1, x_335); +return x_340; +} +} +else +{ +uint8_t x_341; +lean_dec(x_306); +lean_dec(x_295); +x_341 = !lean_is_exclusive(x_327); +if (x_341 == 0) +{ +return x_327; +} +else +{ +lean_object* x_342; lean_object* x_343; lean_object* x_344; +x_342 = lean_ctor_get(x_327, 0); +x_343 = lean_ctor_get(x_327, 1); +lean_inc(x_343); +lean_inc(x_342); +lean_dec(x_327); +x_344 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_344, 0, x_342); +lean_ctor_set(x_344, 1, x_343); +return x_344; +} +} +} +else +{ +lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; +x_345 = lean_ctor_get(x_7, 0); +x_346 = lean_ctor_get(x_7, 2); +x_347 = lean_ctor_get(x_7, 3); +x_348 = lean_ctor_get(x_7, 4); +lean_inc(x_348); +lean_inc(x_347); +lean_inc(x_346); +lean_inc(x_345); +lean_dec(x_7); +lean_inc(x_306); +x_349 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_349, 0, x_345); +lean_ctor_set(x_349, 1, x_306); +lean_ctor_set(x_349, 2, x_346); +lean_ctor_set(x_349, 3, x_347); +lean_ctor_set(x_349, 4, x_348); +x_350 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_350, 0, x_349); +lean_ctor_set(x_350, 1, x_8); +lean_ctor_set(x_350, 2, x_9); +lean_ctor_set(x_350, 3, x_10); +lean_ctor_set(x_350, 4, x_11); +lean_ctor_set(x_350, 5, x_12); +lean_ctor_set(x_350, 6, x_13); +lean_ctor_set(x_350, 7, x_14); +lean_ctor_set(x_350, 8, x_15); +lean_ctor_set(x_350, 9, x_16); +lean_ctor_set(x_350, 10, x_1); +lean_ctor_set_uint8(x_350, sizeof(void*)*11, x_17); +lean_ctor_set_uint8(x_350, sizeof(void*)*11 + 1, x_18); +lean_ctor_set_uint8(x_350, sizeof(void*)*11 + 2, x_19); +x_351 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_323, x_350, x_311); +if (lean_obj_tag(x_351) == 0) +{ +lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; +x_352 = lean_ctor_get(x_351, 0); +lean_inc(x_352); +x_353 = lean_ctor_get(x_351, 1); lean_inc(x_353); -lean_dec(x_346); -x_355 = l_Lean_mkFVar(x_313); +if (lean_is_exclusive(x_351)) { + lean_ctor_release(x_351, 0); + lean_ctor_release(x_351, 1); + x_354 = x_351; +} else { + lean_dec_ref(x_351); + x_354 = lean_box(0); +} +x_355 = l_Lean_mkFVar(x_295); x_356 = l_Lean_mkOptionalNode___closed__2; x_357 = lean_array_push(x_356, x_355); -x_358 = l_Lean_LocalContext_mkLambda(x_324, x_357, x_353); -lean_dec(x_353); +x_358 = l_Lean_LocalContext_mkLambda(x_306, x_357, x_352); +lean_dec(x_352); lean_dec(x_357); -x_359 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_354)) { + x_359 = lean_alloc_ctor(0, 2, 0); +} else { + x_359 = x_354; +} lean_ctor_set(x_359, 0, x_358); -lean_ctor_set(x_359, 1, x_354); +lean_ctor_set(x_359, 1, x_353); return x_359; } -} else { -uint8_t x_360; -lean_dec(x_324); -lean_dec(x_313); -x_360 = !lean_is_exclusive(x_346); -if (x_360 == 0) -{ -return x_346; -} -else -{ -lean_object* x_361; lean_object* x_362; lean_object* x_363; -x_361 = lean_ctor_get(x_346, 0); -x_362 = lean_ctor_get(x_346, 1); -lean_inc(x_362); +lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; +lean_dec(x_306); +lean_dec(x_295); +x_360 = lean_ctor_get(x_351, 0); +lean_inc(x_360); +x_361 = lean_ctor_get(x_351, 1); lean_inc(x_361); -lean_dec(x_346); -x_363 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_363, 0, x_361); -lean_ctor_set(x_363, 1, x_362); +if (lean_is_exclusive(x_351)) { + lean_ctor_release(x_351, 0); + lean_ctor_release(x_351, 1); + x_362 = x_351; +} else { + lean_dec_ref(x_351); + x_362 = lean_box(0); +} +if (lean_is_scalar(x_362)) { + x_363 = lean_alloc_ctor(1, 2, 0); +} else { + x_363 = x_362; +} +lean_ctor_set(x_363, 0, x_360); +lean_ctor_set(x_363, 1, x_361); return x_363; } } } else { -lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; -x_364 = lean_ctor_get(x_343, 0); -x_365 = lean_ctor_get(x_343, 2); -x_366 = lean_ctor_get(x_343, 3); -x_367 = lean_ctor_get(x_343, 4); -lean_inc(x_367); +uint8_t x_364; +lean_dec(x_295); +lean_dec(x_287); +lean_dec(x_280); +lean_dec(x_278); +lean_dec(x_2); +lean_dec(x_16); +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_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_364 = !lean_is_exclusive(x_299); +if (x_364 == 0) +{ +return x_299; +} +else +{ +lean_object* x_365; lean_object* x_366; lean_object* x_367; +x_365 = lean_ctor_get(x_299, 0); +x_366 = lean_ctor_get(x_299, 1); lean_inc(x_366); lean_inc(x_365); -lean_inc(x_364); -lean_dec(x_343); -lean_inc(x_324); -x_368 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_368, 0, x_364); -lean_ctor_set(x_368, 1, x_324); -lean_ctor_set(x_368, 2, x_365); -lean_ctor_set(x_368, 3, x_366); -lean_ctor_set(x_368, 4, x_367); -lean_ctor_set(x_2, 0, x_368); -x_369 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_341, x_2, x_329); -if (lean_obj_tag(x_369) == 0) +lean_dec(x_299); +x_367 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_367, 0, x_365); +lean_ctor_set(x_367, 1, x_366); +return x_367; +} +} +} +else { -lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; -x_370 = lean_ctor_get(x_369, 0); -lean_inc(x_370); -x_371 = lean_ctor_get(x_369, 1); +lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; uint8_t x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; uint8_t x_393; +lean_dec(x_284); +x_368 = l_Lean_Meta_rewriteCore___lambda__1___closed__4; +x_369 = lean_name_mk_string(x_41, x_368); +x_370 = l_Lean_Elab_Term_getLCtx(x_2, x_3); +x_371 = lean_ctor_get(x_370, 0); lean_inc(x_371); -if (lean_is_exclusive(x_369)) { - lean_ctor_release(x_369, 0); - lean_ctor_release(x_369, 1); - x_372 = x_369; -} else { - lean_dec_ref(x_369); - x_372 = lean_box(0); -} -x_373 = l_Lean_mkFVar(x_313); -x_374 = l_Lean_mkOptionalNode___closed__2; -x_375 = lean_array_push(x_374, x_373); -x_376 = l_Lean_LocalContext_mkLambda(x_324, x_375, x_370); +x_372 = lean_ctor_get(x_370, 1); +lean_inc(x_372); lean_dec(x_370); -lean_dec(x_375); -if (lean_is_scalar(x_372)) { - x_377 = lean_alloc_ctor(0, 2, 0); -} else { - x_377 = x_372; -} -lean_ctor_set(x_377, 0, x_376); -lean_ctor_set(x_377, 1, x_371); -return x_377; -} -else -{ -lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; -lean_dec(x_324); -lean_dec(x_313); -x_378 = lean_ctor_get(x_369, 0); +x_373 = l___private_Lean_Elab_Quotation_9__exprPlaceholder; +x_374 = 0; +lean_inc_n(x_369, 2); +x_375 = lean_local_ctx_mk_local_decl(x_371, x_369, x_369, x_373, x_374); +x_376 = l_Array_eraseIdx___rarg(x_278, x_282); +x_377 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_372); +lean_dec(x_2); +x_378 = lean_ctor_get(x_377, 1); lean_inc(x_378); -x_379 = lean_ctor_get(x_369, 1); -lean_inc(x_379); -if (lean_is_exclusive(x_369)) { - lean_ctor_release(x_369, 0); - lean_ctor_release(x_369, 1); - x_380 = x_369; -} else { - lean_dec_ref(x_369); - x_380 = lean_box(0); -} -if (lean_is_scalar(x_380)) { - x_381 = lean_alloc_ctor(1, 2, 0); -} else { - x_381 = x_380; -} -lean_ctor_set(x_381, 0, x_378); -lean_ctor_set(x_381, 1, x_379); -return x_381; -} -} +lean_dec(x_377); +x_379 = l_Lean_Elab_Term_getMainModule___rarg(x_378); +x_380 = lean_ctor_get(x_379, 1); +lean_inc(x_380); +lean_dec(x_379); +x_381 = lean_name_mk_string(x_287, x_79); +x_382 = l_Lean_nullKind___closed__1; +x_383 = lean_name_mk_string(x_41, x_382); +x_384 = l_Array_empty___closed__1; +x_385 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_376, x_376, x_282, x_384); +lean_dec(x_376); +x_386 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_386, 0, x_383); +lean_ctor_set(x_386, 1, x_385); +x_387 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; +x_388 = lean_array_push(x_387, x_386); +x_389 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; +x_390 = lean_array_push(x_388, x_389); +x_391 = lean_array_push(x_390, x_280); +x_392 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_392, 0, x_381); +lean_ctor_set(x_392, 1, x_391); +x_393 = !lean_is_exclusive(x_7); +if (x_393 == 0) +{ +lean_object* x_394; lean_object* x_395; lean_object* x_396; +x_394 = lean_ctor_get(x_7, 1); +lean_dec(x_394); +lean_inc(x_375); +lean_ctor_set(x_7, 1, x_375); +x_395 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_395, 0, x_7); +lean_ctor_set(x_395, 1, x_8); +lean_ctor_set(x_395, 2, x_9); +lean_ctor_set(x_395, 3, x_10); +lean_ctor_set(x_395, 4, x_11); +lean_ctor_set(x_395, 5, x_12); +lean_ctor_set(x_395, 6, x_13); +lean_ctor_set(x_395, 7, x_14); +lean_ctor_set(x_395, 8, x_15); +lean_ctor_set(x_395, 9, x_16); +lean_ctor_set(x_395, 10, x_1); +lean_ctor_set_uint8(x_395, sizeof(void*)*11, x_17); +lean_ctor_set_uint8(x_395, sizeof(void*)*11 + 1, x_18); +lean_ctor_set_uint8(x_395, sizeof(void*)*11 + 2, x_19); +x_396 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_392, x_395, x_380); +if (lean_obj_tag(x_396) == 0) +{ +uint8_t x_397; +x_397 = !lean_is_exclusive(x_396); +if (x_397 == 0) +{ +lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; +x_398 = lean_ctor_get(x_396, 0); +x_399 = l_Lean_mkFVar(x_369); +x_400 = l_Lean_mkOptionalNode___closed__2; +x_401 = lean_array_push(x_400, x_399); +x_402 = l_Lean_LocalContext_mkLambda(x_375, x_401, x_398); +lean_dec(x_398); +lean_dec(x_401); +lean_ctor_set(x_396, 0, x_402); +return x_396; } else { -lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; uint8_t x_392; uint8_t x_393; uint8_t x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; -x_382 = lean_ctor_get(x_2, 0); -x_383 = lean_ctor_get(x_2, 1); -x_384 = lean_ctor_get(x_2, 2); -x_385 = lean_ctor_get(x_2, 3); -x_386 = lean_ctor_get(x_2, 4); -x_387 = lean_ctor_get(x_2, 5); -x_388 = lean_ctor_get(x_2, 6); -x_389 = lean_ctor_get(x_2, 7); -x_390 = lean_ctor_get(x_2, 8); -x_391 = lean_ctor_get(x_2, 9); -x_392 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_393 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); -x_394 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 2); -lean_inc(x_391); -lean_inc(x_390); -lean_inc(x_389); -lean_inc(x_388); -lean_inc(x_387); -lean_inc(x_386); -lean_inc(x_385); -lean_inc(x_384); -lean_inc(x_383); -lean_inc(x_382); -lean_dec(x_2); -x_395 = lean_ctor_get(x_382, 0); -lean_inc(x_395); -x_396 = lean_ctor_get(x_382, 2); -lean_inc(x_396); -x_397 = lean_ctor_get(x_382, 3); -lean_inc(x_397); -x_398 = lean_ctor_get(x_382, 4); -lean_inc(x_398); -if (lean_is_exclusive(x_382)) { - lean_ctor_release(x_382, 0); - lean_ctor_release(x_382, 1); - lean_ctor_release(x_382, 2); - lean_ctor_release(x_382, 3); - lean_ctor_release(x_382, 4); - x_399 = x_382; -} else { - lean_dec_ref(x_382); - x_399 = lean_box(0); -} -lean_inc(x_324); -if (lean_is_scalar(x_399)) { - x_400 = lean_alloc_ctor(0, 5, 0); -} else { - x_400 = x_399; -} -lean_ctor_set(x_400, 0, x_395); -lean_ctor_set(x_400, 1, x_324); -lean_ctor_set(x_400, 2, x_396); -lean_ctor_set(x_400, 3, x_397); -lean_ctor_set(x_400, 4, x_398); -x_401 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_401, 0, x_400); -lean_ctor_set(x_401, 1, x_383); -lean_ctor_set(x_401, 2, x_384); -lean_ctor_set(x_401, 3, x_385); -lean_ctor_set(x_401, 4, x_386); -lean_ctor_set(x_401, 5, x_387); -lean_ctor_set(x_401, 6, x_388); -lean_ctor_set(x_401, 7, x_389); -lean_ctor_set(x_401, 8, x_390); -lean_ctor_set(x_401, 9, x_391); -lean_ctor_set_uint8(x_401, sizeof(void*)*10, x_392); -lean_ctor_set_uint8(x_401, sizeof(void*)*10 + 1, x_393); -lean_ctor_set_uint8(x_401, sizeof(void*)*10 + 2, x_394); -x_402 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_341, x_401, x_329); -if (lean_obj_tag(x_402) == 0) -{ -lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; -x_403 = lean_ctor_get(x_402, 0); -lean_inc(x_403); -x_404 = lean_ctor_get(x_402, 1); +lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; +x_403 = lean_ctor_get(x_396, 0); +x_404 = lean_ctor_get(x_396, 1); lean_inc(x_404); -if (lean_is_exclusive(x_402)) { - lean_ctor_release(x_402, 0); - lean_ctor_release(x_402, 1); - x_405 = x_402; -} else { - lean_dec_ref(x_402); - x_405 = lean_box(0); -} -x_406 = l_Lean_mkFVar(x_313); -x_407 = l_Lean_mkOptionalNode___closed__2; -x_408 = lean_array_push(x_407, x_406); -x_409 = l_Lean_LocalContext_mkLambda(x_324, x_408, x_403); +lean_inc(x_403); +lean_dec(x_396); +x_405 = l_Lean_mkFVar(x_369); +x_406 = l_Lean_mkOptionalNode___closed__2; +x_407 = lean_array_push(x_406, x_405); +x_408 = l_Lean_LocalContext_mkLambda(x_375, x_407, x_403); lean_dec(x_403); -lean_dec(x_408); -if (lean_is_scalar(x_405)) { - x_410 = lean_alloc_ctor(0, 2, 0); -} else { - x_410 = x_405; +lean_dec(x_407); +x_409 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_409, 0, x_408); +lean_ctor_set(x_409, 1, x_404); +return x_409; } -lean_ctor_set(x_410, 0, x_409); -lean_ctor_set(x_410, 1, x_404); -return x_410; } else { -lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; -lean_dec(x_324); -lean_dec(x_313); -x_411 = lean_ctor_get(x_402, 0); -lean_inc(x_411); -x_412 = lean_ctor_get(x_402, 1); +uint8_t x_410; +lean_dec(x_375); +lean_dec(x_369); +x_410 = !lean_is_exclusive(x_396); +if (x_410 == 0) +{ +return x_396; +} +else +{ +lean_object* x_411; lean_object* x_412; lean_object* x_413; +x_411 = lean_ctor_get(x_396, 0); +x_412 = lean_ctor_get(x_396, 1); lean_inc(x_412); -if (lean_is_exclusive(x_402)) { - lean_ctor_release(x_402, 0); - lean_ctor_release(x_402, 1); - x_413 = x_402; -} else { - lean_dec_ref(x_402); - x_413 = lean_box(0); -} -if (lean_is_scalar(x_413)) { - x_414 = lean_alloc_ctor(1, 2, 0); -} else { - x_414 = x_413; -} -lean_ctor_set(x_414, 0, x_411); -lean_ctor_set(x_414, 1, x_412); -return x_414; +lean_inc(x_411); +lean_dec(x_396); +x_413 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_413, 0, x_411); +lean_ctor_set(x_413, 1, x_412); +return x_413; } } } else { -uint8_t x_415; -lean_dec(x_313); -lean_dec(x_305); -lean_dec(x_298); -lean_dec(x_296); -lean_dec(x_2); -x_415 = !lean_is_exclusive(x_317); -if (x_415 == 0) -{ -return x_317; -} -else -{ -lean_object* x_416; lean_object* x_417; lean_object* x_418; -x_416 = lean_ctor_get(x_317, 0); -x_417 = lean_ctor_get(x_317, 1); +lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; +x_414 = lean_ctor_get(x_7, 0); +x_415 = lean_ctor_get(x_7, 2); +x_416 = lean_ctor_get(x_7, 3); +x_417 = lean_ctor_get(x_7, 4); lean_inc(x_417); lean_inc(x_416); -lean_dec(x_317); -x_418 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_418, 0, x_416); -lean_ctor_set(x_418, 1, x_417); -return x_418; -} -} -} -else +lean_inc(x_415); +lean_inc(x_414); +lean_dec(x_7); +lean_inc(x_375); +x_418 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_418, 0, x_414); +lean_ctor_set(x_418, 1, x_375); +lean_ctor_set(x_418, 2, x_415); +lean_ctor_set(x_418, 3, x_416); +lean_ctor_set(x_418, 4, x_417); +x_419 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_419, 0, x_418); +lean_ctor_set(x_419, 1, x_8); +lean_ctor_set(x_419, 2, x_9); +lean_ctor_set(x_419, 3, x_10); +lean_ctor_set(x_419, 4, x_11); +lean_ctor_set(x_419, 5, x_12); +lean_ctor_set(x_419, 6, x_13); +lean_ctor_set(x_419, 7, x_14); +lean_ctor_set(x_419, 8, x_15); +lean_ctor_set(x_419, 9, x_16); +lean_ctor_set(x_419, 10, x_1); +lean_ctor_set_uint8(x_419, sizeof(void*)*11, x_17); +lean_ctor_set_uint8(x_419, sizeof(void*)*11 + 1, x_18); +lean_ctor_set_uint8(x_419, sizeof(void*)*11 + 2, x_19); +x_420 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_392, x_419, x_380); +if (lean_obj_tag(x_420) == 0) { -lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; uint8_t x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; uint8_t x_444; -lean_dec(x_302); -x_419 = l_Lean_Meta_rewriteCore___lambda__1___closed__4; -x_420 = lean_name_mk_string(x_26, x_419); -x_421 = l_Lean_Elab_Term_getLCtx(x_2, x_3); -x_422 = lean_ctor_get(x_421, 0); +lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; +x_421 = lean_ctor_get(x_420, 0); +lean_inc(x_421); +x_422 = lean_ctor_get(x_420, 1); lean_inc(x_422); -x_423 = lean_ctor_get(x_421, 1); -lean_inc(x_423); +if (lean_is_exclusive(x_420)) { + lean_ctor_release(x_420, 0); + lean_ctor_release(x_420, 1); + x_423 = x_420; +} else { + lean_dec_ref(x_420); + x_423 = lean_box(0); +} +x_424 = l_Lean_mkFVar(x_369); +x_425 = l_Lean_mkOptionalNode___closed__2; +x_426 = lean_array_push(x_425, x_424); +x_427 = l_Lean_LocalContext_mkLambda(x_375, x_426, x_421); lean_dec(x_421); -x_424 = l___private_Lean_Elab_Quotation_9__exprPlaceholder; -x_425 = 0; -lean_inc_n(x_420, 2); -x_426 = lean_local_ctx_mk_local_decl(x_422, x_420, x_420, x_424, x_425); -x_427 = l_Array_eraseIdx___rarg(x_296, x_300); -x_428 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_423); -x_429 = lean_ctor_get(x_428, 1); -lean_inc(x_429); -lean_dec(x_428); -x_430 = l_Lean_Elab_Term_getMainModule___rarg(x_429); -x_431 = lean_ctor_get(x_430, 1); -lean_inc(x_431); -lean_dec(x_430); -x_432 = lean_name_mk_string(x_305, x_64); -x_433 = l_Lean_nullKind___closed__1; -x_434 = lean_name_mk_string(x_26, x_433); -x_435 = l_Array_empty___closed__1; -x_436 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_427, x_427, x_300, x_435); -lean_dec(x_427); -x_437 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_437, 0, x_434); -lean_ctor_set(x_437, 1, x_436); -x_438 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; -x_439 = lean_array_push(x_438, x_437); -x_440 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; -x_441 = lean_array_push(x_439, x_440); -x_442 = lean_array_push(x_441, x_298); -x_443 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_443, 0, x_432); -lean_ctor_set(x_443, 1, x_442); -x_444 = !lean_is_exclusive(x_2); -if (x_444 == 0) -{ -lean_object* x_445; uint8_t x_446; -x_445 = lean_ctor_get(x_2, 0); -x_446 = !lean_is_exclusive(x_445); -if (x_446 == 0) -{ -lean_object* x_447; lean_object* x_448; -x_447 = lean_ctor_get(x_445, 1); -lean_dec(x_447); -lean_inc(x_426); -lean_ctor_set(x_445, 1, x_426); -x_448 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_443, x_2, x_431); -if (lean_obj_tag(x_448) == 0) -{ -uint8_t x_449; -x_449 = !lean_is_exclusive(x_448); -if (x_449 == 0) -{ -lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; -x_450 = lean_ctor_get(x_448, 0); -x_451 = l_Lean_mkFVar(x_420); -x_452 = l_Lean_mkOptionalNode___closed__2; -x_453 = lean_array_push(x_452, x_451); -x_454 = l_Lean_LocalContext_mkLambda(x_426, x_453, x_450); -lean_dec(x_450); -lean_dec(x_453); -lean_ctor_set(x_448, 0, x_454); -return x_448; -} -else -{ -lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; -x_455 = lean_ctor_get(x_448, 0); -x_456 = lean_ctor_get(x_448, 1); -lean_inc(x_456); -lean_inc(x_455); -lean_dec(x_448); -x_457 = l_Lean_mkFVar(x_420); -x_458 = l_Lean_mkOptionalNode___closed__2; -x_459 = lean_array_push(x_458, x_457); -x_460 = l_Lean_LocalContext_mkLambda(x_426, x_459, x_455); -lean_dec(x_455); -lean_dec(x_459); -x_461 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_461, 0, x_460); -lean_ctor_set(x_461, 1, x_456); -return x_461; -} -} -else -{ -uint8_t x_462; lean_dec(x_426); -lean_dec(x_420); -x_462 = !lean_is_exclusive(x_448); -if (x_462 == 0) -{ -return x_448; +if (lean_is_scalar(x_423)) { + x_428 = lean_alloc_ctor(0, 2, 0); +} else { + x_428 = x_423; +} +lean_ctor_set(x_428, 0, x_427); +lean_ctor_set(x_428, 1, x_422); +return x_428; } else { -lean_object* x_463; lean_object* x_464; lean_object* x_465; -x_463 = lean_ctor_get(x_448, 0); -x_464 = lean_ctor_get(x_448, 1); -lean_inc(x_464); -lean_inc(x_463); -lean_dec(x_448); -x_465 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_465, 0, x_463); -lean_ctor_set(x_465, 1, x_464); -return x_465; +lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; +lean_dec(x_375); +lean_dec(x_369); +x_429 = lean_ctor_get(x_420, 0); +lean_inc(x_429); +x_430 = lean_ctor_get(x_420, 1); +lean_inc(x_430); +if (lean_is_exclusive(x_420)) { + lean_ctor_release(x_420, 0); + lean_ctor_release(x_420, 1); + x_431 = x_420; +} else { + lean_dec_ref(x_420); + x_431 = lean_box(0); +} +if (lean_is_scalar(x_431)) { + x_432 = lean_alloc_ctor(1, 2, 0); +} else { + x_432 = x_431; +} +lean_ctor_set(x_432, 0, x_429); +lean_ctor_set(x_432, 1, x_430); +return x_432; +} } } } else { -lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; -x_466 = lean_ctor_get(x_445, 0); -x_467 = lean_ctor_get(x_445, 2); -x_468 = lean_ctor_get(x_445, 3); -x_469 = lean_ctor_get(x_445, 4); -lean_inc(x_469); +lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; uint8_t x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; uint8_t x_457; +x_433 = l_Lean_Syntax_getIdAt(x_284, x_282); +lean_dec(x_284); +x_434 = l_Lean_Elab_Term_getLCtx(x_2, x_3); +x_435 = lean_ctor_get(x_434, 0); +lean_inc(x_435); +x_436 = lean_ctor_get(x_434, 1); +lean_inc(x_436); +lean_dec(x_434); +x_437 = l___private_Lean_Elab_Quotation_9__exprPlaceholder; +x_438 = 0; +lean_inc_n(x_433, 2); +x_439 = lean_local_ctx_mk_local_decl(x_435, x_433, x_433, x_437, x_438); +x_440 = l_Array_eraseIdx___rarg(x_278, x_282); +x_441 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_436); +lean_dec(x_2); +x_442 = lean_ctor_get(x_441, 1); +lean_inc(x_442); +lean_dec(x_441); +x_443 = l_Lean_Elab_Term_getMainModule___rarg(x_442); +x_444 = lean_ctor_get(x_443, 1); +lean_inc(x_444); +lean_dec(x_443); +x_445 = lean_name_mk_string(x_287, x_79); +x_446 = l_Lean_nullKind___closed__1; +x_447 = lean_name_mk_string(x_41, x_446); +x_448 = l_Array_empty___closed__1; +x_449 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_440, x_440, x_282, x_448); +lean_dec(x_440); +x_450 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_450, 0, x_447); +lean_ctor_set(x_450, 1, x_449); +x_451 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; +x_452 = lean_array_push(x_451, x_450); +x_453 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; +x_454 = lean_array_push(x_452, x_453); +x_455 = lean_array_push(x_454, x_280); +x_456 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_456, 0, x_445); +lean_ctor_set(x_456, 1, x_455); +x_457 = !lean_is_exclusive(x_7); +if (x_457 == 0) +{ +lean_object* x_458; lean_object* x_459; lean_object* x_460; +x_458 = lean_ctor_get(x_7, 1); +lean_dec(x_458); +lean_inc(x_439); +lean_ctor_set(x_7, 1, x_439); +x_459 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_459, 0, x_7); +lean_ctor_set(x_459, 1, x_8); +lean_ctor_set(x_459, 2, x_9); +lean_ctor_set(x_459, 3, x_10); +lean_ctor_set(x_459, 4, x_11); +lean_ctor_set(x_459, 5, x_12); +lean_ctor_set(x_459, 6, x_13); +lean_ctor_set(x_459, 7, x_14); +lean_ctor_set(x_459, 8, x_15); +lean_ctor_set(x_459, 9, x_16); +lean_ctor_set(x_459, 10, x_1); +lean_ctor_set_uint8(x_459, sizeof(void*)*11, x_17); +lean_ctor_set_uint8(x_459, sizeof(void*)*11 + 1, x_18); +lean_ctor_set_uint8(x_459, sizeof(void*)*11 + 2, x_19); +x_460 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_456, x_459, x_444); +if (lean_obj_tag(x_460) == 0) +{ +uint8_t x_461; +x_461 = !lean_is_exclusive(x_460); +if (x_461 == 0) +{ +lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; +x_462 = lean_ctor_get(x_460, 0); +x_463 = l_Lean_mkFVar(x_433); +x_464 = l_Lean_mkOptionalNode___closed__2; +x_465 = lean_array_push(x_464, x_463); +x_466 = l_Lean_LocalContext_mkLambda(x_439, x_465, x_462); +lean_dec(x_462); +lean_dec(x_465); +lean_ctor_set(x_460, 0, x_466); +return x_460; +} +else +{ +lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; +x_467 = lean_ctor_get(x_460, 0); +x_468 = lean_ctor_get(x_460, 1); lean_inc(x_468); lean_inc(x_467); -lean_inc(x_466); -lean_dec(x_445); -lean_inc(x_426); -x_470 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_470, 0, x_466); -lean_ctor_set(x_470, 1, x_426); -lean_ctor_set(x_470, 2, x_467); -lean_ctor_set(x_470, 3, x_468); -lean_ctor_set(x_470, 4, x_469); -lean_ctor_set(x_2, 0, x_470); -x_471 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_443, x_2, x_431); -if (lean_obj_tag(x_471) == 0) -{ -lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; -x_472 = lean_ctor_get(x_471, 0); -lean_inc(x_472); -x_473 = lean_ctor_get(x_471, 1); -lean_inc(x_473); -if (lean_is_exclusive(x_471)) { - lean_ctor_release(x_471, 0); - lean_ctor_release(x_471, 1); - x_474 = x_471; -} else { - lean_dec_ref(x_471); - x_474 = lean_box(0); +lean_dec(x_460); +x_469 = l_Lean_mkFVar(x_433); +x_470 = l_Lean_mkOptionalNode___closed__2; +x_471 = lean_array_push(x_470, x_469); +x_472 = l_Lean_LocalContext_mkLambda(x_439, x_471, x_467); +lean_dec(x_467); +lean_dec(x_471); +x_473 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_473, 0, x_472); +lean_ctor_set(x_473, 1, x_468); +return x_473; } -x_475 = l_Lean_mkFVar(x_420); -x_476 = l_Lean_mkOptionalNode___closed__2; -x_477 = lean_array_push(x_476, x_475); -x_478 = l_Lean_LocalContext_mkLambda(x_426, x_477, x_472); -lean_dec(x_472); -lean_dec(x_477); -if (lean_is_scalar(x_474)) { - x_479 = lean_alloc_ctor(0, 2, 0); -} else { - x_479 = x_474; -} -lean_ctor_set(x_479, 0, x_478); -lean_ctor_set(x_479, 1, x_473); -return x_479; } else { -lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; -lean_dec(x_426); -lean_dec(x_420); -x_480 = lean_ctor_get(x_471, 0); -lean_inc(x_480); -x_481 = lean_ctor_get(x_471, 1); +uint8_t x_474; +lean_dec(x_439); +lean_dec(x_433); +x_474 = !lean_is_exclusive(x_460); +if (x_474 == 0) +{ +return x_460; +} +else +{ +lean_object* x_475; lean_object* x_476; lean_object* x_477; +x_475 = lean_ctor_get(x_460, 0); +x_476 = lean_ctor_get(x_460, 1); +lean_inc(x_476); +lean_inc(x_475); +lean_dec(x_460); +x_477 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_477, 0, x_475); +lean_ctor_set(x_477, 1, x_476); +return x_477; +} +} +} +else +{ +lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; +x_478 = lean_ctor_get(x_7, 0); +x_479 = lean_ctor_get(x_7, 2); +x_480 = lean_ctor_get(x_7, 3); +x_481 = lean_ctor_get(x_7, 4); lean_inc(x_481); -if (lean_is_exclusive(x_471)) { - lean_ctor_release(x_471, 0); - lean_ctor_release(x_471, 1); - x_482 = x_471; -} else { - lean_dec_ref(x_471); - x_482 = lean_box(0); -} -if (lean_is_scalar(x_482)) { - x_483 = lean_alloc_ctor(1, 2, 0); -} else { - x_483 = x_482; -} -lean_ctor_set(x_483, 0, x_480); -lean_ctor_set(x_483, 1, x_481); -return x_483; -} -} -} -else +lean_inc(x_480); +lean_inc(x_479); +lean_inc(x_478); +lean_dec(x_7); +lean_inc(x_439); +x_482 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_482, 0, x_478); +lean_ctor_set(x_482, 1, x_439); +lean_ctor_set(x_482, 2, x_479); +lean_ctor_set(x_482, 3, x_480); +lean_ctor_set(x_482, 4, x_481); +x_483 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_483, 0, x_482); +lean_ctor_set(x_483, 1, x_8); +lean_ctor_set(x_483, 2, x_9); +lean_ctor_set(x_483, 3, x_10); +lean_ctor_set(x_483, 4, x_11); +lean_ctor_set(x_483, 5, x_12); +lean_ctor_set(x_483, 6, x_13); +lean_ctor_set(x_483, 7, x_14); +lean_ctor_set(x_483, 8, x_15); +lean_ctor_set(x_483, 9, x_16); +lean_ctor_set(x_483, 10, x_1); +lean_ctor_set_uint8(x_483, sizeof(void*)*11, x_17); +lean_ctor_set_uint8(x_483, sizeof(void*)*11 + 1, x_18); +lean_ctor_set_uint8(x_483, sizeof(void*)*11 + 2, x_19); +x_484 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_456, x_483, x_444); +if (lean_obj_tag(x_484) == 0) { -lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; uint8_t x_494; uint8_t x_495; uint8_t x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; -x_484 = lean_ctor_get(x_2, 0); -x_485 = lean_ctor_get(x_2, 1); -x_486 = lean_ctor_get(x_2, 2); -x_487 = lean_ctor_get(x_2, 3); -x_488 = lean_ctor_get(x_2, 4); -x_489 = lean_ctor_get(x_2, 5); -x_490 = lean_ctor_get(x_2, 6); -x_491 = lean_ctor_get(x_2, 7); -x_492 = lean_ctor_get(x_2, 8); -x_493 = lean_ctor_get(x_2, 9); -x_494 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_495 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); -x_496 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 2); -lean_inc(x_493); -lean_inc(x_492); -lean_inc(x_491); -lean_inc(x_490); -lean_inc(x_489); -lean_inc(x_488); -lean_inc(x_487); -lean_inc(x_486); +lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; +x_485 = lean_ctor_get(x_484, 0); lean_inc(x_485); -lean_inc(x_484); -lean_dec(x_2); -x_497 = lean_ctor_get(x_484, 0); -lean_inc(x_497); -x_498 = lean_ctor_get(x_484, 2); -lean_inc(x_498); -x_499 = lean_ctor_get(x_484, 3); -lean_inc(x_499); -x_500 = lean_ctor_get(x_484, 4); -lean_inc(x_500); +x_486 = lean_ctor_get(x_484, 1); +lean_inc(x_486); if (lean_is_exclusive(x_484)) { lean_ctor_release(x_484, 0); lean_ctor_release(x_484, 1); - lean_ctor_release(x_484, 2); - lean_ctor_release(x_484, 3); - lean_ctor_release(x_484, 4); - x_501 = x_484; + x_487 = x_484; } else { lean_dec_ref(x_484); - x_501 = lean_box(0); + x_487 = lean_box(0); } -lean_inc(x_426); -if (lean_is_scalar(x_501)) { - x_502 = lean_alloc_ctor(0, 5, 0); +x_488 = l_Lean_mkFVar(x_433); +x_489 = l_Lean_mkOptionalNode___closed__2; +x_490 = lean_array_push(x_489, x_488); +x_491 = l_Lean_LocalContext_mkLambda(x_439, x_490, x_485); +lean_dec(x_485); +lean_dec(x_490); +if (lean_is_scalar(x_487)) { + x_492 = lean_alloc_ctor(0, 2, 0); } else { - x_502 = x_501; + x_492 = x_487; } -lean_ctor_set(x_502, 0, x_497); -lean_ctor_set(x_502, 1, x_426); -lean_ctor_set(x_502, 2, x_498); -lean_ctor_set(x_502, 3, x_499); -lean_ctor_set(x_502, 4, x_500); -x_503 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_503, 0, x_502); -lean_ctor_set(x_503, 1, x_485); -lean_ctor_set(x_503, 2, x_486); -lean_ctor_set(x_503, 3, x_487); -lean_ctor_set(x_503, 4, x_488); -lean_ctor_set(x_503, 5, x_489); -lean_ctor_set(x_503, 6, x_490); -lean_ctor_set(x_503, 7, x_491); -lean_ctor_set(x_503, 8, x_492); -lean_ctor_set(x_503, 9, x_493); -lean_ctor_set_uint8(x_503, sizeof(void*)*10, x_494); -lean_ctor_set_uint8(x_503, sizeof(void*)*10 + 1, x_495); -lean_ctor_set_uint8(x_503, sizeof(void*)*10 + 2, x_496); -x_504 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_443, x_503, x_431); -if (lean_obj_tag(x_504) == 0) -{ -lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; -x_505 = lean_ctor_get(x_504, 0); -lean_inc(x_505); -x_506 = lean_ctor_get(x_504, 1); -lean_inc(x_506); -if (lean_is_exclusive(x_504)) { - lean_ctor_release(x_504, 0); - lean_ctor_release(x_504, 1); - x_507 = x_504; -} else { - lean_dec_ref(x_504); - x_507 = lean_box(0); -} -x_508 = l_Lean_mkFVar(x_420); -x_509 = l_Lean_mkOptionalNode___closed__2; -x_510 = lean_array_push(x_509, x_508); -x_511 = l_Lean_LocalContext_mkLambda(x_426, x_510, x_505); -lean_dec(x_505); -lean_dec(x_510); -if (lean_is_scalar(x_507)) { - x_512 = lean_alloc_ctor(0, 2, 0); -} else { - x_512 = x_507; -} -lean_ctor_set(x_512, 0, x_511); -lean_ctor_set(x_512, 1, x_506); -return x_512; +lean_ctor_set(x_492, 0, x_491); +lean_ctor_set(x_492, 1, x_486); +return x_492; } else { -lean_object* x_513; lean_object* x_514; lean_object* x_515; lean_object* x_516; -lean_dec(x_426); -lean_dec(x_420); -x_513 = lean_ctor_get(x_504, 0); -lean_inc(x_513); -x_514 = lean_ctor_get(x_504, 1); -lean_inc(x_514); -if (lean_is_exclusive(x_504)) { - lean_ctor_release(x_504, 0); - lean_ctor_release(x_504, 1); - x_515 = x_504; +lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; +lean_dec(x_439); +lean_dec(x_433); +x_493 = lean_ctor_get(x_484, 0); +lean_inc(x_493); +x_494 = lean_ctor_get(x_484, 1); +lean_inc(x_494); +if (lean_is_exclusive(x_484)) { + lean_ctor_release(x_484, 0); + lean_ctor_release(x_484, 1); + x_495 = x_484; } else { - lean_dec_ref(x_504); - x_515 = lean_box(0); + lean_dec_ref(x_484); + x_495 = lean_box(0); } -if (lean_is_scalar(x_515)) { - x_516 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_495)) { + x_496 = lean_alloc_ctor(1, 2, 0); } else { - x_516 = x_515; + x_496 = x_495; } -lean_ctor_set(x_516, 0, x_513); -lean_ctor_set(x_516, 1, x_514); -return x_516; +lean_ctor_set(x_496, 0, x_493); +lean_ctor_set(x_496, 1, x_494); +return x_496; } } } } else { -lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; uint8_t x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; uint8_t x_541; -x_517 = l_Lean_Syntax_getIdAt(x_302, x_300); -lean_dec(x_302); -x_518 = l_Lean_Elab_Term_getLCtx(x_2, x_3); -x_519 = lean_ctor_get(x_518, 0); -lean_inc(x_519); -x_520 = lean_ctor_get(x_518, 1); -lean_inc(x_520); -lean_dec(x_518); -x_521 = l___private_Lean_Elab_Quotation_9__exprPlaceholder; -x_522 = 0; -lean_inc_n(x_517, 2); -x_523 = lean_local_ctx_mk_local_decl(x_519, x_517, x_517, x_521, x_522); -x_524 = l_Array_eraseIdx___rarg(x_296, x_300); -x_525 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_520); -x_526 = lean_ctor_get(x_525, 1); -lean_inc(x_526); -lean_dec(x_525); -x_527 = l_Lean_Elab_Term_getMainModule___rarg(x_526); -x_528 = lean_ctor_get(x_527, 1); -lean_inc(x_528); -lean_dec(x_527); -x_529 = lean_name_mk_string(x_305, x_64); -x_530 = l_Lean_nullKind___closed__1; -x_531 = lean_name_mk_string(x_26, x_530); -x_532 = l_Array_empty___closed__1; -x_533 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_524, x_524, x_300, x_532); -lean_dec(x_524); -x_534 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_534, 0, x_531); -lean_ctor_set(x_534, 1, x_533); -x_535 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; -x_536 = lean_array_push(x_535, x_534); -x_537 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; -x_538 = lean_array_push(x_536, x_537); -x_539 = lean_array_push(x_538, x_298); -x_540 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_540, 0, x_529); -lean_ctor_set(x_540, 1, x_539); -x_541 = !lean_is_exclusive(x_2); -if (x_541 == 0) -{ -lean_object* x_542; uint8_t x_543; -x_542 = lean_ctor_get(x_2, 0); -x_543 = !lean_is_exclusive(x_542); -if (x_543 == 0) -{ -lean_object* x_544; lean_object* x_545; -x_544 = lean_ctor_get(x_542, 1); -lean_dec(x_544); -lean_inc(x_523); -lean_ctor_set(x_542, 1, x_523); -x_545 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_540, x_2, x_528); -if (lean_obj_tag(x_545) == 0) -{ -uint8_t x_546; -x_546 = !lean_is_exclusive(x_545); -if (x_546 == 0) -{ -lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; -x_547 = lean_ctor_get(x_545, 0); -x_548 = l_Lean_mkFVar(x_517); -x_549 = l_Lean_mkOptionalNode___closed__2; -x_550 = lean_array_push(x_549, x_548); -x_551 = l_Lean_LocalContext_mkLambda(x_523, x_550, x_547); -lean_dec(x_547); -lean_dec(x_550); -lean_ctor_set(x_545, 0, x_551); -return x_545; -} -else -{ -lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; -x_552 = lean_ctor_get(x_545, 0); -x_553 = lean_ctor_get(x_545, 1); -lean_inc(x_553); -lean_inc(x_552); -lean_dec(x_545); -x_554 = l_Lean_mkFVar(x_517); -x_555 = l_Lean_mkOptionalNode___closed__2; -x_556 = lean_array_push(x_555, x_554); -x_557 = l_Lean_LocalContext_mkLambda(x_523, x_556, x_552); -lean_dec(x_552); -lean_dec(x_556); -x_558 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_558, 0, x_557); -lean_ctor_set(x_558, 1, x_553); -return x_558; -} -} -else -{ -uint8_t x_559; -lean_dec(x_523); -lean_dec(x_517); -x_559 = !lean_is_exclusive(x_545); -if (x_559 == 0) -{ -return x_545; -} -else -{ -lean_object* x_560; lean_object* x_561; lean_object* x_562; -x_560 = lean_ctor_get(x_545, 0); -x_561 = lean_ctor_get(x_545, 1); -lean_inc(x_561); -lean_inc(x_560); -lean_dec(x_545); -x_562 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_562, 0, x_560); -lean_ctor_set(x_562, 1, x_561); -return x_562; -} -} -} -else -{ -lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; -x_563 = lean_ctor_get(x_542, 0); -x_564 = lean_ctor_get(x_542, 2); -x_565 = lean_ctor_get(x_542, 3); -x_566 = lean_ctor_get(x_542, 4); -lean_inc(x_566); -lean_inc(x_565); -lean_inc(x_564); -lean_inc(x_563); -lean_dec(x_542); -lean_inc(x_523); -x_567 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_567, 0, x_563); -lean_ctor_set(x_567, 1, x_523); -lean_ctor_set(x_567, 2, x_564); -lean_ctor_set(x_567, 3, x_565); -lean_ctor_set(x_567, 4, x_566); -lean_ctor_set(x_2, 0, x_567); -x_568 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_540, x_2, x_528); -if (lean_obj_tag(x_568) == 0) -{ -lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; -x_569 = lean_ctor_get(x_568, 0); -lean_inc(x_569); -x_570 = lean_ctor_get(x_568, 1); -lean_inc(x_570); -if (lean_is_exclusive(x_568)) { - lean_ctor_release(x_568, 0); - lean_ctor_release(x_568, 1); - x_571 = x_568; -} else { - lean_dec_ref(x_568); - x_571 = lean_box(0); -} -x_572 = l_Lean_mkFVar(x_517); -x_573 = l_Lean_mkOptionalNode___closed__2; -x_574 = lean_array_push(x_573, x_572); -x_575 = l_Lean_LocalContext_mkLambda(x_523, x_574, x_569); -lean_dec(x_569); -lean_dec(x_574); -if (lean_is_scalar(x_571)) { - x_576 = lean_alloc_ctor(0, 2, 0); -} else { - x_576 = x_571; -} -lean_ctor_set(x_576, 0, x_575); -lean_ctor_set(x_576, 1, x_570); -return x_576; -} -else -{ -lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; -lean_dec(x_523); -lean_dec(x_517); -x_577 = lean_ctor_get(x_568, 0); -lean_inc(x_577); -x_578 = lean_ctor_get(x_568, 1); -lean_inc(x_578); -if (lean_is_exclusive(x_568)) { - lean_ctor_release(x_568, 0); - lean_ctor_release(x_568, 1); - x_579 = x_568; -} else { - lean_dec_ref(x_568); - x_579 = lean_box(0); -} -if (lean_is_scalar(x_579)) { - x_580 = lean_alloc_ctor(1, 2, 0); -} else { - x_580 = x_579; -} -lean_ctor_set(x_580, 0, x_577); -lean_ctor_set(x_580, 1, x_578); -return x_580; -} -} -} -else -{ -lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; uint8_t x_591; uint8_t x_592; uint8_t x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; lean_object* x_601; -x_581 = lean_ctor_get(x_2, 0); -x_582 = lean_ctor_get(x_2, 1); -x_583 = lean_ctor_get(x_2, 2); -x_584 = lean_ctor_get(x_2, 3); -x_585 = lean_ctor_get(x_2, 4); -x_586 = lean_ctor_get(x_2, 5); -x_587 = lean_ctor_get(x_2, 6); -x_588 = lean_ctor_get(x_2, 7); -x_589 = lean_ctor_get(x_2, 8); -x_590 = lean_ctor_get(x_2, 9); -x_591 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_592 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); -x_593 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 2); -lean_inc(x_590); -lean_inc(x_589); -lean_inc(x_588); -lean_inc(x_587); -lean_inc(x_586); -lean_inc(x_585); -lean_inc(x_584); -lean_inc(x_583); -lean_inc(x_582); -lean_inc(x_581); -lean_dec(x_2); -x_594 = lean_ctor_get(x_581, 0); -lean_inc(x_594); -x_595 = lean_ctor_get(x_581, 2); -lean_inc(x_595); -x_596 = lean_ctor_get(x_581, 3); -lean_inc(x_596); -x_597 = lean_ctor_get(x_581, 4); -lean_inc(x_597); -if (lean_is_exclusive(x_581)) { - lean_ctor_release(x_581, 0); - lean_ctor_release(x_581, 1); - lean_ctor_release(x_581, 2); - lean_ctor_release(x_581, 3); - lean_ctor_release(x_581, 4); - x_598 = x_581; -} else { - lean_dec_ref(x_581); - x_598 = lean_box(0); -} -lean_inc(x_523); -if (lean_is_scalar(x_598)) { - x_599 = lean_alloc_ctor(0, 5, 0); -} else { - x_599 = x_598; -} -lean_ctor_set(x_599, 0, x_594); -lean_ctor_set(x_599, 1, x_523); -lean_ctor_set(x_599, 2, x_595); -lean_ctor_set(x_599, 3, x_596); -lean_ctor_set(x_599, 4, x_597); -x_600 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_600, 0, x_599); -lean_ctor_set(x_600, 1, x_582); -lean_ctor_set(x_600, 2, x_583); -lean_ctor_set(x_600, 3, x_584); -lean_ctor_set(x_600, 4, x_585); -lean_ctor_set(x_600, 5, x_586); -lean_ctor_set(x_600, 6, x_587); -lean_ctor_set(x_600, 7, x_588); -lean_ctor_set(x_600, 8, x_589); -lean_ctor_set(x_600, 9, x_590); -lean_ctor_set_uint8(x_600, sizeof(void*)*10, x_591); -lean_ctor_set_uint8(x_600, sizeof(void*)*10 + 1, x_592); -lean_ctor_set_uint8(x_600, sizeof(void*)*10 + 2, x_593); -x_601 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_540, x_600, x_528); -if (lean_obj_tag(x_601) == 0) -{ -lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; -x_602 = lean_ctor_get(x_601, 0); -lean_inc(x_602); -x_603 = lean_ctor_get(x_601, 1); -lean_inc(x_603); -if (lean_is_exclusive(x_601)) { - lean_ctor_release(x_601, 0); - lean_ctor_release(x_601, 1); - x_604 = x_601; -} else { - lean_dec_ref(x_601); - x_604 = lean_box(0); -} -x_605 = l_Lean_mkFVar(x_517); -x_606 = l_Lean_mkOptionalNode___closed__2; -x_607 = lean_array_push(x_606, x_605); -x_608 = l_Lean_LocalContext_mkLambda(x_523, x_607, x_602); -lean_dec(x_602); -lean_dec(x_607); -if (lean_is_scalar(x_604)) { - x_609 = lean_alloc_ctor(0, 2, 0); -} else { - x_609 = x_604; -} -lean_ctor_set(x_609, 0, x_608); -lean_ctor_set(x_609, 1, x_603); -return x_609; -} -else -{ -lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; -lean_dec(x_523); -lean_dec(x_517); -x_610 = lean_ctor_get(x_601, 0); -lean_inc(x_610); -x_611 = lean_ctor_get(x_601, 1); -lean_inc(x_611); -if (lean_is_exclusive(x_601)) { - lean_ctor_release(x_601, 0); - lean_ctor_release(x_601, 1); - x_612 = x_601; -} else { - lean_dec_ref(x_601); - x_612 = lean_box(0); -} -if (lean_is_scalar(x_612)) { - x_613 = lean_alloc_ctor(1, 2, 0); -} else { - x_613 = x_612; -} -lean_ctor_set(x_613, 0, x_610); -lean_ctor_set(x_613, 1, x_611); -return x_613; -} -} -} -} -else -{ -lean_dec(x_296); -x_1 = x_298; +lean_dec(x_278); +lean_dec(x_16); +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_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_1 = x_280; goto _start; } } } else { -lean_object* x_615; lean_object* x_616; lean_object* x_617; +lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_free_object(x_5); -lean_free_object(x_25); -lean_free_object(x_24); -lean_free_object(x_15); -lean_dec(x_27); -x_615 = l_Lean_Syntax_inhabited; -x_616 = lean_unsigned_to_nat(0u); -x_617 = lean_array_get(x_615, x_4, x_616); -lean_dec(x_4); -if (lean_obj_tag(x_617) == 3) -{ -lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; -x_618 = lean_ctor_get(x_617, 2); -lean_inc(x_618); -x_619 = lean_ctor_get(x_617, 3); -lean_inc(x_619); -lean_dec(x_617); -x_620 = lean_box(0); -lean_inc(x_2); -x_621 = l_Lean_Elab_Term_resolveName(x_1, x_618, x_619, x_620, x_2, x_3); +lean_free_object(x_40); +lean_free_object(x_39); +lean_free_object(x_30); +lean_dec(x_42); +lean_dec(x_16); +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_9); +lean_dec(x_8); +lean_dec(x_7); lean_dec(x_1); -if (lean_obj_tag(x_621) == 0) +x_498 = l_Lean_Syntax_inhabited; +x_499 = lean_unsigned_to_nat(0u); +x_500 = lean_array_get(x_498, x_4, x_499); +lean_dec(x_4); +if (lean_obj_tag(x_500) == 3) { -lean_object* x_622; -x_622 = lean_ctor_get(x_621, 0); -lean_inc(x_622); -if (lean_obj_tag(x_622) == 0) +lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; +x_501 = lean_ctor_get(x_500, 2); +lean_inc(x_501); +x_502 = lean_ctor_get(x_500, 3); +lean_inc(x_502); +lean_dec(x_500); +x_503 = lean_box(0); +lean_inc(x_2); +x_504 = l_Lean_Elab_Term_resolveName(x_501, x_502, x_503, x_2, x_3); +if (lean_obj_tag(x_504) == 0) { -lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; -x_623 = lean_ctor_get(x_621, 1); -lean_inc(x_623); -lean_dec(x_621); -x_624 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; -x_625 = l_unreachable_x21___rarg(x_624); -x_626 = lean_apply_2(x_625, x_2, x_623); -return x_626; +lean_object* x_505; +x_505 = lean_ctor_get(x_504, 0); +lean_inc(x_505); +if (lean_obj_tag(x_505) == 0) +{ +lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; +x_506 = lean_ctor_get(x_504, 1); +lean_inc(x_506); +lean_dec(x_504); +x_507 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; +x_508 = l_unreachable_x21___rarg(x_507); +x_509 = lean_apply_2(x_508, x_2, x_506); +return x_509; } else { -lean_object* x_627; lean_object* x_628; +lean_object* x_510; lean_object* x_511; lean_dec(x_2); -x_627 = lean_ctor_get(x_622, 0); -lean_inc(x_627); -lean_dec(x_622); -x_628 = lean_ctor_get(x_627, 0); -lean_inc(x_628); -switch (lean_obj_tag(x_628)) { +x_510 = lean_ctor_get(x_505, 0); +lean_inc(x_510); +lean_dec(x_505); +x_511 = lean_ctor_get(x_510, 0); +lean_inc(x_511); +switch (lean_obj_tag(x_511)) { case 0: { -uint8_t x_629; -x_629 = !lean_is_exclusive(x_621); -if (x_629 == 0) +uint8_t x_512; +x_512 = !lean_is_exclusive(x_504); +if (x_512 == 0) { -lean_object* x_630; lean_object* x_631; lean_object* x_632; -x_630 = lean_ctor_get(x_621, 0); -lean_dec(x_630); -x_631 = lean_ctor_get(x_627, 1); -lean_inc(x_631); -lean_dec(x_627); -x_632 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__2(x_26, x_628, x_631); -lean_ctor_set(x_621, 0, x_632); -return x_621; +lean_object* x_513; lean_object* x_514; lean_object* x_515; +x_513 = lean_ctor_get(x_504, 0); +lean_dec(x_513); +x_514 = lean_ctor_get(x_510, 1); +lean_inc(x_514); +lean_dec(x_510); +x_515 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__2(x_41, x_511, x_514); +lean_ctor_set(x_504, 0, x_515); +return x_504; } else { -lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; -x_633 = lean_ctor_get(x_621, 1); -lean_inc(x_633); -lean_dec(x_621); -x_634 = lean_ctor_get(x_627, 1); -lean_inc(x_634); -lean_dec(x_627); -x_635 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__2(x_26, x_628, x_634); -x_636 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_636, 0, x_635); -lean_ctor_set(x_636, 1, x_633); -return x_636; +lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; +x_516 = lean_ctor_get(x_504, 1); +lean_inc(x_516); +lean_dec(x_504); +x_517 = lean_ctor_get(x_510, 1); +lean_inc(x_517); +lean_dec(x_510); +x_518 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__2(x_41, x_511, x_517); +x_519 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_519, 0, x_518); +lean_ctor_set(x_519, 1, x_516); +return x_519; } } case 1: { -uint8_t x_637; -x_637 = !lean_is_exclusive(x_621); -if (x_637 == 0) +uint8_t x_520; +x_520 = !lean_is_exclusive(x_504); +if (x_520 == 0) { -lean_object* x_638; lean_object* x_639; lean_object* x_640; -x_638 = lean_ctor_get(x_621, 0); -lean_dec(x_638); -x_639 = lean_ctor_get(x_627, 1); -lean_inc(x_639); -lean_dec(x_627); -x_640 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__3(x_26, x_628, x_639); -lean_ctor_set(x_621, 0, x_640); -return x_621; +lean_object* x_521; lean_object* x_522; lean_object* x_523; +x_521 = lean_ctor_get(x_504, 0); +lean_dec(x_521); +x_522 = lean_ctor_get(x_510, 1); +lean_inc(x_522); +lean_dec(x_510); +x_523 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__3(x_41, x_511, x_522); +lean_ctor_set(x_504, 0, x_523); +return x_504; } else { -lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; -x_641 = lean_ctor_get(x_621, 1); -lean_inc(x_641); -lean_dec(x_621); -x_642 = lean_ctor_get(x_627, 1); -lean_inc(x_642); -lean_dec(x_627); -x_643 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__3(x_26, x_628, x_642); -x_644 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_644, 0, x_643); -lean_ctor_set(x_644, 1, x_641); -return x_644; +lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; +x_524 = lean_ctor_get(x_504, 1); +lean_inc(x_524); +lean_dec(x_504); +x_525 = lean_ctor_get(x_510, 1); +lean_inc(x_525); +lean_dec(x_510); +x_526 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__3(x_41, x_511, x_525); +x_527 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_527, 0, x_526); +lean_ctor_set(x_527, 1, x_524); +return x_527; } } case 2: { -uint8_t x_645; -x_645 = !lean_is_exclusive(x_621); -if (x_645 == 0) +uint8_t x_528; +x_528 = !lean_is_exclusive(x_504); +if (x_528 == 0) { -lean_object* x_646; lean_object* x_647; lean_object* x_648; -x_646 = lean_ctor_get(x_621, 0); -lean_dec(x_646); -x_647 = lean_ctor_get(x_627, 1); -lean_inc(x_647); -lean_dec(x_627); -x_648 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__4(x_26, x_628, x_647); -lean_ctor_set(x_621, 0, x_648); -return x_621; +lean_object* x_529; lean_object* x_530; lean_object* x_531; +x_529 = lean_ctor_get(x_504, 0); +lean_dec(x_529); +x_530 = lean_ctor_get(x_510, 1); +lean_inc(x_530); +lean_dec(x_510); +x_531 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__4(x_41, x_511, x_530); +lean_ctor_set(x_504, 0, x_531); +return x_504; } else { -lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; -x_649 = lean_ctor_get(x_621, 1); -lean_inc(x_649); -lean_dec(x_621); -x_650 = lean_ctor_get(x_627, 1); -lean_inc(x_650); -lean_dec(x_627); -x_651 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__4(x_26, x_628, x_650); -x_652 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_652, 0, x_651); -lean_ctor_set(x_652, 1, x_649); -return x_652; +lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; +x_532 = lean_ctor_get(x_504, 1); +lean_inc(x_532); +lean_dec(x_504); +x_533 = lean_ctor_get(x_510, 1); +lean_inc(x_533); +lean_dec(x_510); +x_534 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__4(x_41, x_511, x_533); +x_535 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_535, 0, x_534); +lean_ctor_set(x_535, 1, x_532); +return x_535; } } case 3: { -uint8_t x_653; -x_653 = !lean_is_exclusive(x_621); -if (x_653 == 0) +uint8_t x_536; +x_536 = !lean_is_exclusive(x_504); +if (x_536 == 0) { -lean_object* x_654; lean_object* x_655; lean_object* x_656; -x_654 = lean_ctor_get(x_621, 0); -lean_dec(x_654); -x_655 = lean_ctor_get(x_627, 1); -lean_inc(x_655); -lean_dec(x_627); -x_656 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__5(x_26, x_628, x_655); -lean_ctor_set(x_621, 0, x_656); -return x_621; +lean_object* x_537; lean_object* x_538; lean_object* x_539; +x_537 = lean_ctor_get(x_504, 0); +lean_dec(x_537); +x_538 = lean_ctor_get(x_510, 1); +lean_inc(x_538); +lean_dec(x_510); +x_539 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__5(x_41, x_511, x_538); +lean_ctor_set(x_504, 0, x_539); +return x_504; } else { -lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; -x_657 = lean_ctor_get(x_621, 1); -lean_inc(x_657); -lean_dec(x_621); -x_658 = lean_ctor_get(x_627, 1); -lean_inc(x_658); -lean_dec(x_627); -x_659 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__5(x_26, x_628, x_658); -x_660 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_660, 0, x_659); -lean_ctor_set(x_660, 1, x_657); -return x_660; +lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; +x_540 = lean_ctor_get(x_504, 1); +lean_inc(x_540); +lean_dec(x_504); +x_541 = lean_ctor_get(x_510, 1); +lean_inc(x_541); +lean_dec(x_510); +x_542 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__5(x_41, x_511, x_541); +x_543 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_543, 0, x_542); +lean_ctor_set(x_543, 1, x_540); +return x_543; } } case 4: { -uint8_t x_661; -x_661 = !lean_is_exclusive(x_621); -if (x_661 == 0) +uint8_t x_544; +x_544 = !lean_is_exclusive(x_504); +if (x_544 == 0) { -lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; -x_662 = lean_ctor_get(x_621, 0); -lean_dec(x_662); -x_663 = lean_ctor_get(x_627, 1); -lean_inc(x_663); -lean_dec(x_627); -x_664 = lean_ctor_get(x_628, 0); -lean_inc(x_664); -lean_dec(x_628); -x_665 = l_Lean_mkConst(x_664, x_620); -x_666 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__6(x_26, x_665, x_663); -lean_ctor_set(x_621, 0, x_666); -return x_621; +lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; +x_545 = lean_ctor_get(x_504, 0); +lean_dec(x_545); +x_546 = lean_ctor_get(x_510, 1); +lean_inc(x_546); +lean_dec(x_510); +x_547 = lean_ctor_get(x_511, 0); +lean_inc(x_547); +lean_dec(x_511); +x_548 = l_Lean_mkConst(x_547, x_503); +x_549 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__6(x_41, x_548, x_546); +lean_ctor_set(x_504, 0, x_549); +return x_504; } else { -lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; -x_667 = lean_ctor_get(x_621, 1); -lean_inc(x_667); -lean_dec(x_621); -x_668 = lean_ctor_get(x_627, 1); -lean_inc(x_668); -lean_dec(x_627); -x_669 = lean_ctor_get(x_628, 0); -lean_inc(x_669); -lean_dec(x_628); -x_670 = l_Lean_mkConst(x_669, x_620); -x_671 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__6(x_26, x_670, x_668); -x_672 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_672, 0, x_671); -lean_ctor_set(x_672, 1, x_667); -return x_672; +lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; +x_550 = lean_ctor_get(x_504, 1); +lean_inc(x_550); +lean_dec(x_504); +x_551 = lean_ctor_get(x_510, 1); +lean_inc(x_551); +lean_dec(x_510); +x_552 = lean_ctor_get(x_511, 0); +lean_inc(x_552); +lean_dec(x_511); +x_553 = l_Lean_mkConst(x_552, x_503); +x_554 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__6(x_41, x_553, x_551); +x_555 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_555, 0, x_554); +lean_ctor_set(x_555, 1, x_550); +return x_555; } } case 5: { -uint8_t x_673; -x_673 = !lean_is_exclusive(x_621); -if (x_673 == 0) +uint8_t x_556; +x_556 = !lean_is_exclusive(x_504); +if (x_556 == 0) { -lean_object* x_674; lean_object* x_675; lean_object* x_676; -x_674 = lean_ctor_get(x_621, 0); -lean_dec(x_674); -x_675 = lean_ctor_get(x_627, 1); -lean_inc(x_675); -lean_dec(x_627); -x_676 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__7(x_26, x_628, x_675); -lean_ctor_set(x_621, 0, x_676); -return x_621; +lean_object* x_557; lean_object* x_558; lean_object* x_559; +x_557 = lean_ctor_get(x_504, 0); +lean_dec(x_557); +x_558 = lean_ctor_get(x_510, 1); +lean_inc(x_558); +lean_dec(x_510); +x_559 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__7(x_41, x_511, x_558); +lean_ctor_set(x_504, 0, x_559); +return x_504; +} +else +{ +lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; +x_560 = lean_ctor_get(x_504, 1); +lean_inc(x_560); +lean_dec(x_504); +x_561 = lean_ctor_get(x_510, 1); +lean_inc(x_561); +lean_dec(x_510); +x_562 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__7(x_41, x_511, x_561); +x_563 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_563, 0, x_562); +lean_ctor_set(x_563, 1, x_560); +return x_563; +} +} +case 6: +{ +uint8_t x_564; +x_564 = !lean_is_exclusive(x_504); +if (x_564 == 0) +{ +lean_object* x_565; lean_object* x_566; lean_object* x_567; +x_565 = lean_ctor_get(x_504, 0); +lean_dec(x_565); +x_566 = lean_ctor_get(x_510, 1); +lean_inc(x_566); +lean_dec(x_510); +x_567 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__8(x_41, x_511, x_566); +lean_ctor_set(x_504, 0, x_567); +return x_504; +} +else +{ +lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; +x_568 = lean_ctor_get(x_504, 1); +lean_inc(x_568); +lean_dec(x_504); +x_569 = lean_ctor_get(x_510, 1); +lean_inc(x_569); +lean_dec(x_510); +x_570 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__8(x_41, x_511, x_569); +x_571 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_571, 0, x_570); +lean_ctor_set(x_571, 1, x_568); +return x_571; +} +} +case 7: +{ +uint8_t x_572; +x_572 = !lean_is_exclusive(x_504); +if (x_572 == 0) +{ +lean_object* x_573; lean_object* x_574; lean_object* x_575; +x_573 = lean_ctor_get(x_504, 0); +lean_dec(x_573); +x_574 = lean_ctor_get(x_510, 1); +lean_inc(x_574); +lean_dec(x_510); +x_575 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__9(x_41, x_511, x_574); +lean_ctor_set(x_504, 0, x_575); +return x_504; +} +else +{ +lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; +x_576 = lean_ctor_get(x_504, 1); +lean_inc(x_576); +lean_dec(x_504); +x_577 = lean_ctor_get(x_510, 1); +lean_inc(x_577); +lean_dec(x_510); +x_578 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__9(x_41, x_511, x_577); +x_579 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_579, 0, x_578); +lean_ctor_set(x_579, 1, x_576); +return x_579; +} +} +case 8: +{ +uint8_t x_580; +x_580 = !lean_is_exclusive(x_504); +if (x_580 == 0) +{ +lean_object* x_581; lean_object* x_582; lean_object* x_583; +x_581 = lean_ctor_get(x_504, 0); +lean_dec(x_581); +x_582 = lean_ctor_get(x_510, 1); +lean_inc(x_582); +lean_dec(x_510); +x_583 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__10(x_41, x_511, x_582); +lean_ctor_set(x_504, 0, x_583); +return x_504; +} +else +{ +lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; +x_584 = lean_ctor_get(x_504, 1); +lean_inc(x_584); +lean_dec(x_504); +x_585 = lean_ctor_get(x_510, 1); +lean_inc(x_585); +lean_dec(x_510); +x_586 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__10(x_41, x_511, x_585); +x_587 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_587, 0, x_586); +lean_ctor_set(x_587, 1, x_584); +return x_587; +} +} +case 9: +{ +uint8_t x_588; +x_588 = !lean_is_exclusive(x_504); +if (x_588 == 0) +{ +lean_object* x_589; lean_object* x_590; lean_object* x_591; +x_589 = lean_ctor_get(x_504, 0); +lean_dec(x_589); +x_590 = lean_ctor_get(x_510, 1); +lean_inc(x_590); +lean_dec(x_510); +x_591 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__11(x_41, x_511, x_590); +lean_ctor_set(x_504, 0, x_591); +return x_504; +} +else +{ +lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; +x_592 = lean_ctor_get(x_504, 1); +lean_inc(x_592); +lean_dec(x_504); +x_593 = lean_ctor_get(x_510, 1); +lean_inc(x_593); +lean_dec(x_510); +x_594 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__11(x_41, x_511, x_593); +x_595 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_595, 0, x_594); +lean_ctor_set(x_595, 1, x_592); +return x_595; +} +} +case 10: +{ +uint8_t x_596; +x_596 = !lean_is_exclusive(x_504); +if (x_596 == 0) +{ +lean_object* x_597; lean_object* x_598; lean_object* x_599; +x_597 = lean_ctor_get(x_504, 0); +lean_dec(x_597); +x_598 = lean_ctor_get(x_510, 1); +lean_inc(x_598); +lean_dec(x_510); +x_599 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__12(x_41, x_511, x_598); +lean_ctor_set(x_504, 0, x_599); +return x_504; +} +else +{ +lean_object* x_600; lean_object* x_601; lean_object* x_602; lean_object* x_603; +x_600 = lean_ctor_get(x_504, 1); +lean_inc(x_600); +lean_dec(x_504); +x_601 = lean_ctor_get(x_510, 1); +lean_inc(x_601); +lean_dec(x_510); +x_602 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__12(x_41, x_511, x_601); +x_603 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_603, 0, x_602); +lean_ctor_set(x_603, 1, x_600); +return x_603; +} +} +case 11: +{ +uint8_t x_604; +x_604 = !lean_is_exclusive(x_504); +if (x_604 == 0) +{ +lean_object* x_605; lean_object* x_606; lean_object* x_607; +x_605 = lean_ctor_get(x_504, 0); +lean_dec(x_605); +x_606 = lean_ctor_get(x_510, 1); +lean_inc(x_606); +lean_dec(x_510); +x_607 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__13(x_41, x_511, x_606); +lean_ctor_set(x_504, 0, x_607); +return x_504; +} +else +{ +lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; +x_608 = lean_ctor_get(x_504, 1); +lean_inc(x_608); +lean_dec(x_504); +x_609 = lean_ctor_get(x_510, 1); +lean_inc(x_609); +lean_dec(x_510); +x_610 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__13(x_41, x_511, x_609); +x_611 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_611, 0, x_610); +lean_ctor_set(x_611, 1, x_608); +return x_611; +} +} +default: +{ +uint8_t x_612; +x_612 = !lean_is_exclusive(x_504); +if (x_612 == 0) +{ +lean_object* x_613; lean_object* x_614; lean_object* x_615; +x_613 = lean_ctor_get(x_504, 0); +lean_dec(x_613); +x_614 = lean_ctor_get(x_510, 1); +lean_inc(x_614); +lean_dec(x_510); +x_615 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__14(x_41, x_511, x_614); +lean_ctor_set(x_504, 0, x_615); +return x_504; +} +else +{ +lean_object* x_616; lean_object* x_617; lean_object* x_618; lean_object* x_619; +x_616 = lean_ctor_get(x_504, 1); +lean_inc(x_616); +lean_dec(x_504); +x_617 = lean_ctor_get(x_510, 1); +lean_inc(x_617); +lean_dec(x_510); +x_618 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__14(x_41, x_511, x_617); +x_619 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_619, 0, x_618); +lean_ctor_set(x_619, 1, x_616); +return x_619; +} +} +} +} +} +else +{ +uint8_t x_620; +lean_dec(x_2); +x_620 = !lean_is_exclusive(x_504); +if (x_620 == 0) +{ +return x_504; +} +else +{ +lean_object* x_621; lean_object* x_622; lean_object* x_623; +x_621 = lean_ctor_get(x_504, 0); +x_622 = lean_ctor_get(x_504, 1); +lean_inc(x_622); +lean_inc(x_621); +lean_dec(x_504); +x_623 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_623, 0, x_621); +lean_ctor_set(x_623, 1, x_622); +return x_623; +} +} +} +else +{ +lean_object* x_624; lean_object* x_625; lean_object* x_626; +lean_dec(x_500); +x_624 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; +x_625 = l_unreachable_x21___rarg(x_624); +x_626 = lean_apply_2(x_625, x_2, x_3); +return x_626; +} +} +} +} +} +else +{ +lean_object* x_627; uint8_t x_628; +lean_dec(x_5); +x_627 = l_Lean_mkAppStx___closed__3; +x_628 = lean_string_dec_eq(x_48, x_627); +if (x_628 == 0) +{ +lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; +lean_dec(x_16); +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_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_1); +lean_ctor_set(x_40, 1, x_53); +x_629 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_629, 0, x_30); +lean_ctor_set(x_629, 1, x_42); +lean_ctor_set_usize(x_629, 2, x_44); +x_630 = l_Lean_Name_toString___closed__1; +x_631 = l_Lean_Name_toStringWithSep___main(x_630, x_629); +x_632 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_632, 0, x_631); +x_633 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_633, 0, x_632); +x_634 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__3; +x_635 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_635, 0, x_634); +lean_ctor_set(x_635, 1, x_633); +x_636 = l_Lean_Elab_Term_throwError___rarg(x_635, x_2, x_3); +return x_636; +} +else +{ +lean_object* x_637; uint8_t x_638; +lean_dec(x_48); +x_637 = l_Lean_mkAppStx___closed__5; +x_638 = lean_string_dec_eq(x_45, x_637); +if (x_638 == 0) +{ +lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; +lean_dec(x_16); +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_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_1); +lean_ctor_set(x_40, 1, x_53); +lean_ctor_set(x_39, 1, x_627); +x_639 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_639, 0, x_30); +lean_ctor_set(x_639, 1, x_42); +lean_ctor_set_usize(x_639, 2, x_44); +x_640 = l_Lean_Name_toString___closed__1; +x_641 = l_Lean_Name_toStringWithSep___main(x_640, x_639); +x_642 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_642, 0, x_641); +x_643 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_643, 0, x_642); +x_644 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__3; +x_645 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_645, 0, x_644); +lean_ctor_set(x_645, 1, x_643); +x_646 = l_Lean_Elab_Term_throwError___rarg(x_645, x_2, x_3); +return x_646; +} +else +{ +lean_object* x_647; uint8_t x_648; +lean_dec(x_45); +x_647 = l_Lean_mkTermIdFromIdent___closed__1; +x_648 = lean_string_dec_eq(x_42, x_647); +if (x_648 == 0) +{ +lean_object* x_649; uint8_t x_650; +x_649 = l_Lean_Parser_Term_fun___elambda__1___closed__1; +x_650 = lean_string_dec_eq(x_42, x_649); +if (x_650 == 0) +{ +lean_object* x_651; uint8_t x_652; +x_651 = l_Lean_Parser_Term_let___elambda__1___closed__1; +x_652 = lean_string_dec_eq(x_42, x_651); +if (x_652 == 0) +{ +lean_object* x_653; uint8_t x_654; +lean_dec(x_16); +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_9); +lean_dec(x_8); +lean_dec(x_7); +x_653 = l_Lean_mkAppStx___closed__7; +x_654 = lean_string_dec_eq(x_42, x_653); +if (x_654 == 0) +{ +lean_object* x_655; uint8_t x_656; +x_655 = l_Lean_Parser_Term_if___elambda__1___closed__1; +x_656 = lean_string_dec_eq(x_42, x_655); +if (x_656 == 0) +{ +lean_object* x_657; uint8_t x_658; +x_657 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__1; +x_658 = lean_string_dec_eq(x_42, x_657); +if (x_658 == 0) +{ +lean_object* x_659; uint8_t x_660; +x_659 = l_Lean_Parser_Term_band___elambda__1___closed__1; +x_660 = lean_string_dec_eq(x_42, x_659); +if (x_660 == 0) +{ +lean_object* x_661; uint8_t x_662; +x_661 = l_Lean_Meta_reduceNat_x3f___closed__12; +x_662 = lean_string_dec_eq(x_42, x_661); +if (x_662 == 0) +{ +lean_object* x_663; uint8_t x_664; +x_663 = l_Lean_Parser_Term_eq___elambda__1___closed__1; +x_664 = lean_string_dec_eq(x_42, x_663); +if (x_664 == 0) +{ +lean_object* x_665; uint8_t x_666; +lean_dec(x_4); +x_665 = l_Lean_String_HasQuote___closed__1; +x_666 = lean_string_dec_eq(x_42, x_665); +if (x_666 == 0) +{ +lean_object* x_667; uint8_t x_668; +x_667 = l_Lean_Nat_HasQuote___closed__1; +x_668 = lean_string_dec_eq(x_42, x_667); +if (x_668 == 0) +{ +lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; lean_object* x_674; lean_object* x_675; lean_object* x_676; +lean_dec(x_1); +lean_ctor_set(x_40, 1, x_53); +lean_ctor_set(x_39, 1, x_627); +lean_ctor_set(x_30, 1, x_637); +x_669 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_669, 0, x_30); +lean_ctor_set(x_669, 1, x_42); +lean_ctor_set_usize(x_669, 2, x_44); +x_670 = l_Lean_Name_toString___closed__1; +x_671 = l_Lean_Name_toStringWithSep___main(x_670, x_669); +x_672 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_672, 0, x_671); +x_673 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_673, 0, x_672); +x_674 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__3; +x_675 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_675, 0, x_674); +lean_ctor_set(x_675, 1, x_673); +x_676 = l_Lean_Elab_Term_throwError___rarg(x_675, x_2, x_3); +return x_676; } else { lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; -x_677 = lean_ctor_get(x_621, 1); -lean_inc(x_677); -lean_dec(x_621); -x_678 = lean_ctor_get(x_627, 1); -lean_inc(x_678); -lean_dec(x_627); -x_679 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__7(x_26, x_628, x_678); -x_680 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_680, 0, x_679); -lean_ctor_set(x_680, 1, x_677); -return x_680; -} -} -case 6: +lean_free_object(x_40); +lean_free_object(x_39); +lean_free_object(x_30); +lean_dec(x_42); +lean_dec(x_2); +x_677 = lean_unsigned_to_nat(0u); +x_678 = l_Lean_Syntax_getArg(x_1, x_677); +lean_dec(x_1); +x_679 = l_Lean_numLitKind; +x_680 = l_Lean_Syntax_isNatLitAux(x_679, x_678); +lean_dec(x_678); +if (lean_obj_tag(x_680) == 0) { -uint8_t x_681; -x_681 = !lean_is_exclusive(x_621); -if (x_681 == 0) +lean_object* x_681; lean_object* x_682; +x_681 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__5; +x_682 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_682, 0, x_681); +lean_ctor_set(x_682, 1, x_3); +return x_682; +} +else { -lean_object* x_682; lean_object* x_683; lean_object* x_684; -x_682 = lean_ctor_get(x_621, 0); -lean_dec(x_682); -x_683 = lean_ctor_get(x_627, 1); +lean_object* x_683; lean_object* x_684; lean_object* x_685; +x_683 = lean_ctor_get(x_680, 0); lean_inc(x_683); -lean_dec(x_627); -x_684 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__8(x_26, x_628, x_683); -lean_ctor_set(x_621, 0, x_684); -return x_621; +lean_dec(x_680); +x_684 = l_Lean_mkNatLit(x_683); +x_685 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_685, 0, x_684); +lean_ctor_set(x_685, 1, x_3); +return x_685; +} +} } else { -lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; -x_685 = lean_ctor_get(x_621, 1); -lean_inc(x_685); -lean_dec(x_621); -x_686 = lean_ctor_get(x_627, 1); -lean_inc(x_686); -lean_dec(x_627); -x_687 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__8(x_26, x_628, x_686); -x_688 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_688, 0, x_687); -lean_ctor_set(x_688, 1, x_685); -return x_688; -} -} -case 7: +lean_object* x_686; lean_object* x_687; lean_object* x_688; +lean_free_object(x_40); +lean_free_object(x_39); +lean_free_object(x_30); +lean_dec(x_42); +lean_dec(x_2); +x_686 = lean_unsigned_to_nat(0u); +x_687 = l_Lean_Syntax_getArg(x_1, x_686); +lean_dec(x_1); +x_688 = l_Lean_Syntax_isStrLit_x3f(x_687); +lean_dec(x_687); +if (lean_obj_tag(x_688) == 0) { -uint8_t x_689; -x_689 = !lean_is_exclusive(x_621); -if (x_689 == 0) +lean_object* x_689; lean_object* x_690; +x_689 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__6; +x_690 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_690, 0, x_689); +lean_ctor_set(x_690, 1, x_3); +return x_690; +} +else { -lean_object* x_690; lean_object* x_691; lean_object* x_692; -x_690 = lean_ctor_get(x_621, 0); -lean_dec(x_690); -x_691 = lean_ctor_get(x_627, 1); +lean_object* x_691; lean_object* x_692; lean_object* x_693; +x_691 = lean_ctor_get(x_688, 0); lean_inc(x_691); -lean_dec(x_627); -x_692 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__9(x_26, x_628, x_691); -lean_ctor_set(x_621, 0, x_692); -return x_621; -} -else -{ -lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; -x_693 = lean_ctor_get(x_621, 1); -lean_inc(x_693); -lean_dec(x_621); -x_694 = lean_ctor_get(x_627, 1); -lean_inc(x_694); -lean_dec(x_627); -x_695 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__9(x_26, x_628, x_694); -x_696 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_696, 0, x_695); -lean_ctor_set(x_696, 1, x_693); -return x_696; -} -} -case 8: -{ -uint8_t x_697; -x_697 = !lean_is_exclusive(x_621); -if (x_697 == 0) -{ -lean_object* x_698; lean_object* x_699; lean_object* x_700; -x_698 = lean_ctor_get(x_621, 0); -lean_dec(x_698); -x_699 = lean_ctor_get(x_627, 1); -lean_inc(x_699); -lean_dec(x_627); -x_700 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__10(x_26, x_628, x_699); -lean_ctor_set(x_621, 0, x_700); -return x_621; -} -else -{ -lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; -x_701 = lean_ctor_get(x_621, 1); -lean_inc(x_701); -lean_dec(x_621); -x_702 = lean_ctor_get(x_627, 1); -lean_inc(x_702); -lean_dec(x_627); -x_703 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__10(x_26, x_628, x_702); -x_704 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_704, 0, x_703); -lean_ctor_set(x_704, 1, x_701); -return x_704; -} -} -case 9: -{ -uint8_t x_705; -x_705 = !lean_is_exclusive(x_621); -if (x_705 == 0) -{ -lean_object* x_706; lean_object* x_707; lean_object* x_708; -x_706 = lean_ctor_get(x_621, 0); -lean_dec(x_706); -x_707 = lean_ctor_get(x_627, 1); -lean_inc(x_707); -lean_dec(x_627); -x_708 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__11(x_26, x_628, x_707); -lean_ctor_set(x_621, 0, x_708); -return x_621; -} -else -{ -lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; -x_709 = lean_ctor_get(x_621, 1); -lean_inc(x_709); -lean_dec(x_621); -x_710 = lean_ctor_get(x_627, 1); -lean_inc(x_710); -lean_dec(x_627); -x_711 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__11(x_26, x_628, x_710); -x_712 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_712, 0, x_711); -lean_ctor_set(x_712, 1, x_709); -return x_712; -} -} -case 10: -{ -uint8_t x_713; -x_713 = !lean_is_exclusive(x_621); -if (x_713 == 0) -{ -lean_object* x_714; lean_object* x_715; lean_object* x_716; -x_714 = lean_ctor_get(x_621, 0); -lean_dec(x_714); -x_715 = lean_ctor_get(x_627, 1); -lean_inc(x_715); -lean_dec(x_627); -x_716 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__12(x_26, x_628, x_715); -lean_ctor_set(x_621, 0, x_716); -return x_621; -} -else -{ -lean_object* x_717; lean_object* x_718; lean_object* x_719; lean_object* x_720; -x_717 = lean_ctor_get(x_621, 1); -lean_inc(x_717); -lean_dec(x_621); -x_718 = lean_ctor_get(x_627, 1); -lean_inc(x_718); -lean_dec(x_627); -x_719 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__12(x_26, x_628, x_718); -x_720 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_720, 0, x_719); -lean_ctor_set(x_720, 1, x_717); -return x_720; -} -} -case 11: -{ -uint8_t x_721; -x_721 = !lean_is_exclusive(x_621); -if (x_721 == 0) -{ -lean_object* x_722; lean_object* x_723; lean_object* x_724; -x_722 = lean_ctor_get(x_621, 0); -lean_dec(x_722); -x_723 = lean_ctor_get(x_627, 1); -lean_inc(x_723); -lean_dec(x_627); -x_724 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__13(x_26, x_628, x_723); -lean_ctor_set(x_621, 0, x_724); -return x_621; -} -else -{ -lean_object* x_725; lean_object* x_726; lean_object* x_727; lean_object* x_728; -x_725 = lean_ctor_get(x_621, 1); -lean_inc(x_725); -lean_dec(x_621); -x_726 = lean_ctor_get(x_627, 1); -lean_inc(x_726); -lean_dec(x_627); -x_727 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__13(x_26, x_628, x_726); -x_728 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_728, 0, x_727); -lean_ctor_set(x_728, 1, x_725); -return x_728; -} -} -default: -{ -uint8_t x_729; -x_729 = !lean_is_exclusive(x_621); -if (x_729 == 0) -{ -lean_object* x_730; lean_object* x_731; lean_object* x_732; -x_730 = lean_ctor_get(x_621, 0); -lean_dec(x_730); -x_731 = lean_ctor_get(x_627, 1); -lean_inc(x_731); -lean_dec(x_627); -x_732 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__14(x_26, x_628, x_731); -lean_ctor_set(x_621, 0, x_732); -return x_621; -} -else -{ -lean_object* x_733; lean_object* x_734; lean_object* x_735; lean_object* x_736; -x_733 = lean_ctor_get(x_621, 1); -lean_inc(x_733); -lean_dec(x_621); -x_734 = lean_ctor_get(x_627, 1); -lean_inc(x_734); -lean_dec(x_627); -x_735 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__14(x_26, x_628, x_734); -x_736 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_736, 0, x_735); -lean_ctor_set(x_736, 1, x_733); -return x_736; -} -} -} -} -} -else -{ -uint8_t x_737; -lean_dec(x_2); -x_737 = !lean_is_exclusive(x_621); -if (x_737 == 0) -{ -return x_621; -} -else -{ -lean_object* x_738; lean_object* x_739; lean_object* x_740; -x_738 = lean_ctor_get(x_621, 0); -x_739 = lean_ctor_get(x_621, 1); -lean_inc(x_739); -lean_inc(x_738); -lean_dec(x_621); -x_740 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_740, 0, x_738); -lean_ctor_set(x_740, 1, x_739); -return x_740; +lean_dec(x_688); +x_692 = l_Lean_mkStrLit(x_691); +x_693 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_693, 0, x_692); +lean_ctor_set(x_693, 1, x_3); +return x_693; } } } else { -lean_object* x_741; lean_object* x_742; lean_object* x_743; -lean_dec(x_617); +lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; +lean_free_object(x_40); +lean_free_object(x_39); +lean_free_object(x_30); +lean_dec(x_42); lean_dec(x_1); -x_741 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; -x_742 = l_unreachable_x21___rarg(x_741); -x_743 = lean_apply_2(x_742, x_2, x_3); -return x_743; -} -} -} -} -} -else -{ -lean_object* x_744; uint8_t x_745; -lean_dec(x_5); -x_744 = l_Lean_mkAppStx___closed__3; -x_745 = lean_string_dec_eq(x_33, x_744); -if (x_745 == 0) -{ -lean_object* x_746; lean_object* x_747; lean_object* x_748; lean_object* x_749; lean_object* x_750; lean_object* x_751; lean_object* x_752; lean_object* x_753; +x_694 = l_Lean_Syntax_inhabited; +x_695 = lean_unsigned_to_nat(0u); +x_696 = lean_array_get(x_694, x_4, x_695); +x_697 = lean_unsigned_to_nat(2u); +x_698 = lean_array_get(x_694, x_4, x_697); lean_dec(x_4); -lean_ctor_set(x_25, 1, x_38); -x_746 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -lean_ctor_set(x_746, 0, x_15); -lean_ctor_set(x_746, 1, x_27); -lean_ctor_set_usize(x_746, 2, x_29); -x_747 = l_Lean_Name_toString___closed__1; -x_748 = l_Lean_Name_toStringWithSep___main(x_747, x_746); -x_749 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_749, 0, x_748); -x_750 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_750, 0, x_749); -x_751 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__3; -x_752 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_752, 0, x_751); -lean_ctor_set(x_752, 1, x_750); -x_753 = l_Lean_Elab_Term_throwError___rarg(x_1, x_752, x_2, x_3); -lean_dec(x_1); -return x_753; -} -else -{ -lean_object* x_754; uint8_t x_755; -lean_dec(x_33); -x_754 = l_Lean_mkAppStx___closed__5; -x_755 = lean_string_dec_eq(x_30, x_754); -if (x_755 == 0) -{ -lean_object* x_756; lean_object* x_757; lean_object* x_758; lean_object* x_759; lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; -lean_dec(x_4); -lean_ctor_set(x_25, 1, x_38); -lean_ctor_set(x_24, 1, x_744); -x_756 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -lean_ctor_set(x_756, 0, x_15); -lean_ctor_set(x_756, 1, x_27); -lean_ctor_set_usize(x_756, 2, x_29); -x_757 = l_Lean_Name_toString___closed__1; -x_758 = l_Lean_Name_toStringWithSep___main(x_757, x_756); -x_759 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_759, 0, x_758); -x_760 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_760, 0, x_759); -x_761 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__3; -x_762 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_762, 0, x_761); -lean_ctor_set(x_762, 1, x_760); -x_763 = l_Lean_Elab_Term_throwError___rarg(x_1, x_762, x_2, x_3); -lean_dec(x_1); -return x_763; -} -else -{ -lean_object* x_764; uint8_t x_765; -lean_dec(x_30); -x_764 = l_Lean_mkTermIdFromIdent___closed__1; -x_765 = lean_string_dec_eq(x_27, x_764); -if (x_765 == 0) -{ -lean_object* x_766; uint8_t x_767; -x_766 = l_Lean_Parser_Term_fun___elambda__1___closed__1; -x_767 = lean_string_dec_eq(x_27, x_766); -if (x_767 == 0) -{ -lean_object* x_768; uint8_t x_769; -x_768 = l_Lean_Parser_Term_let___elambda__1___closed__1; -x_769 = lean_string_dec_eq(x_27, x_768); -if (x_769 == 0) -{ -lean_object* x_770; uint8_t x_771; -x_770 = l_Lean_mkAppStx___closed__7; -x_771 = lean_string_dec_eq(x_27, x_770); -if (x_771 == 0) -{ -lean_object* x_772; uint8_t x_773; -x_772 = l_Lean_Parser_Term_if___elambda__1___closed__1; -x_773 = lean_string_dec_eq(x_27, x_772); -if (x_773 == 0) -{ -lean_object* x_774; uint8_t x_775; -x_774 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__1; -x_775 = lean_string_dec_eq(x_27, x_774); -if (x_775 == 0) -{ -lean_object* x_776; uint8_t x_777; -x_776 = l_Lean_Parser_Term_band___elambda__1___closed__1; -x_777 = lean_string_dec_eq(x_27, x_776); -if (x_777 == 0) -{ -lean_object* x_778; uint8_t x_779; -x_778 = l_Lean_Meta_reduceNat_x3f___closed__12; -x_779 = lean_string_dec_eq(x_27, x_778); -if (x_779 == 0) -{ -lean_object* x_780; uint8_t x_781; -x_780 = l_Lean_Parser_Term_eq___elambda__1___closed__1; -x_781 = lean_string_dec_eq(x_27, x_780); -if (x_781 == 0) -{ -lean_object* x_782; uint8_t x_783; -lean_dec(x_4); -x_782 = l_Lean_String_HasQuote___closed__1; -x_783 = lean_string_dec_eq(x_27, x_782); -if (x_783 == 0) -{ -lean_object* x_784; uint8_t x_785; -x_784 = l_Lean_Nat_HasQuote___closed__1; -x_785 = lean_string_dec_eq(x_27, x_784); -if (x_785 == 0) -{ -lean_object* x_786; lean_object* x_787; lean_object* x_788; lean_object* x_789; lean_object* x_790; lean_object* x_791; lean_object* x_792; lean_object* x_793; -lean_ctor_set(x_25, 1, x_38); -lean_ctor_set(x_24, 1, x_744); -lean_ctor_set(x_15, 1, x_754); -x_786 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -lean_ctor_set(x_786, 0, x_15); -lean_ctor_set(x_786, 1, x_27); -lean_ctor_set_usize(x_786, 2, x_29); -x_787 = l_Lean_Name_toString___closed__1; -x_788 = l_Lean_Name_toStringWithSep___main(x_787, x_786); -x_789 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_789, 0, x_788); -x_790 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_790, 0, x_789); -x_791 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__3; -x_792 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_792, 0, x_791); -lean_ctor_set(x_792, 1, x_790); -x_793 = l_Lean_Elab_Term_throwError___rarg(x_1, x_792, x_2, x_3); -lean_dec(x_1); -return x_793; -} -else -{ -lean_object* x_794; lean_object* x_795; lean_object* x_796; lean_object* x_797; -lean_free_object(x_25); -lean_free_object(x_24); -lean_free_object(x_15); -lean_dec(x_27); -lean_dec(x_2); -x_794 = lean_unsigned_to_nat(0u); -x_795 = l_Lean_Syntax_getArg(x_1, x_794); -lean_dec(x_1); -x_796 = l_Lean_numLitKind; -x_797 = l_Lean_Syntax_isNatLitAux(x_796, x_795); -lean_dec(x_795); -if (lean_obj_tag(x_797) == 0) -{ -lean_object* x_798; lean_object* x_799; -x_798 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__5; -x_799 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_799, 0, x_798); -lean_ctor_set(x_799, 1, x_3); -return x_799; -} -else -{ -lean_object* x_800; lean_object* x_801; lean_object* x_802; -x_800 = lean_ctor_get(x_797, 0); -lean_inc(x_800); -lean_dec(x_797); -x_801 = l_Lean_mkNatLit(x_800); -x_802 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_802, 0, x_801); -lean_ctor_set(x_802, 1, x_3); -return x_802; -} -} -} -else -{ -lean_object* x_803; lean_object* x_804; lean_object* x_805; -lean_free_object(x_25); -lean_free_object(x_24); -lean_free_object(x_15); -lean_dec(x_27); -lean_dec(x_2); -x_803 = lean_unsigned_to_nat(0u); -x_804 = l_Lean_Syntax_getArg(x_1, x_803); -lean_dec(x_1); -x_805 = l_Lean_Syntax_isStrLit_x3f(x_804); -lean_dec(x_804); -if (lean_obj_tag(x_805) == 0) -{ -lean_object* x_806; lean_object* x_807; -x_806 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__6; -x_807 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_807, 0, x_806); -lean_ctor_set(x_807, 1, x_3); -return x_807; -} -else -{ -lean_object* x_808; lean_object* x_809; lean_object* x_810; -x_808 = lean_ctor_get(x_805, 0); -lean_inc(x_808); -lean_dec(x_805); -x_809 = l_Lean_mkStrLit(x_808); -x_810 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_810, 0, x_809); -lean_ctor_set(x_810, 1, x_3); -return x_810; -} -} -} -else -{ -lean_object* x_811; lean_object* x_812; lean_object* x_813; lean_object* x_814; lean_object* x_815; lean_object* x_816; lean_object* x_817; lean_object* x_818; lean_object* x_819; -lean_free_object(x_25); -lean_free_object(x_24); -lean_free_object(x_15); -lean_dec(x_27); -lean_dec(x_1); -x_811 = l_Lean_Syntax_inhabited; -x_812 = lean_unsigned_to_nat(0u); -x_813 = lean_array_get(x_811, x_4, x_812); -x_814 = lean_unsigned_to_nat(2u); -x_815 = lean_array_get(x_811, x_4, x_814); -lean_dec(x_4); -x_816 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__1___boxed), 6, 3); -lean_closure_set(x_816, 0, x_26); -lean_closure_set(x_816, 1, x_813); -lean_closure_set(x_816, 2, x_815); -x_817 = l_Lean_Unhygienic_MonadQuotation___closed__4; -x_818 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___spec__1___rarg), 4, 2); -lean_closure_set(x_818, 0, x_817); -lean_closure_set(x_818, 1, x_816); -x_819 = l_Lean_Unhygienic_run___rarg(x_818); -x_1 = x_819; +x_699 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__1___boxed), 6, 3); +lean_closure_set(x_699, 0, x_41); +lean_closure_set(x_699, 1, x_696); +lean_closure_set(x_699, 2, x_698); +x_700 = l_Lean_Unhygienic_MonadQuotation___closed__4; +x_701 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___spec__1___rarg), 4, 2); +lean_closure_set(x_701, 0, x_700); +lean_closure_set(x_701, 1, x_699); +x_702 = l_Lean_Unhygienic_run___rarg(x_701); +x_1 = x_702; goto _start; } } else { -lean_object* x_821; lean_object* x_822; lean_object* x_823; lean_object* x_824; lean_object* x_825; lean_object* x_826; lean_object* x_827; lean_object* x_828; lean_object* x_829; -lean_free_object(x_25); -lean_free_object(x_24); -lean_free_object(x_15); -lean_dec(x_27); +lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; +lean_free_object(x_40); +lean_free_object(x_39); +lean_free_object(x_30); +lean_dec(x_42); lean_dec(x_1); -x_821 = l_Lean_Syntax_inhabited; -x_822 = lean_unsigned_to_nat(0u); -x_823 = lean_array_get(x_821, x_4, x_822); -x_824 = lean_unsigned_to_nat(2u); -x_825 = lean_array_get(x_821, x_4, x_824); +x_704 = l_Lean_Syntax_inhabited; +x_705 = lean_unsigned_to_nat(0u); +x_706 = lean_array_get(x_704, x_4, x_705); +x_707 = lean_unsigned_to_nat(2u); +x_708 = lean_array_get(x_704, x_4, x_707); lean_dec(x_4); -x_826 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__2___boxed), 6, 3); -lean_closure_set(x_826, 0, x_26); -lean_closure_set(x_826, 1, x_823); -lean_closure_set(x_826, 2, x_825); -x_827 = l_Lean_Unhygienic_MonadQuotation___closed__4; -x_828 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___spec__1___rarg), 4, 2); -lean_closure_set(x_828, 0, x_827); -lean_closure_set(x_828, 1, x_826); -x_829 = l_Lean_Unhygienic_run___rarg(x_828); +x_709 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__2___boxed), 6, 3); +lean_closure_set(x_709, 0, x_41); +lean_closure_set(x_709, 1, x_706); +lean_closure_set(x_709, 2, x_708); +x_710 = l_Lean_Unhygienic_MonadQuotation___closed__4; +x_711 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___spec__1___rarg), 4, 2); +lean_closure_set(x_711, 0, x_710); +lean_closure_set(x_711, 1, x_709); +x_712 = l_Lean_Unhygienic_run___rarg(x_711); +x_1 = x_712; +goto _start; +} +} +else +{ +lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; lean_object* x_719; lean_object* x_720; lean_object* x_721; lean_object* x_722; +lean_free_object(x_40); +lean_free_object(x_39); +lean_free_object(x_30); +lean_dec(x_42); +lean_dec(x_1); +x_714 = l_Lean_Syntax_inhabited; +x_715 = lean_unsigned_to_nat(0u); +x_716 = lean_array_get(x_714, x_4, x_715); +x_717 = lean_unsigned_to_nat(2u); +x_718 = lean_array_get(x_714, x_4, x_717); +lean_dec(x_4); +x_719 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__3___boxed), 6, 3); +lean_closure_set(x_719, 0, x_41); +lean_closure_set(x_719, 1, x_716); +lean_closure_set(x_719, 2, x_718); +x_720 = l_Lean_Unhygienic_MonadQuotation___closed__4; +x_721 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___spec__1___rarg), 4, 2); +lean_closure_set(x_721, 0, x_720); +lean_closure_set(x_721, 1, x_719); +x_722 = l_Lean_Unhygienic_run___rarg(x_721); +x_1 = x_722; +goto _start; +} +} +else +{ +lean_object* x_724; lean_object* x_725; lean_object* x_726; lean_object* x_727; lean_object* x_728; lean_object* x_729; uint8_t x_730; +lean_free_object(x_40); +lean_free_object(x_39); +lean_free_object(x_30); +lean_dec(x_42); +lean_dec(x_1); +x_724 = l_Lean_Syntax_inhabited; +x_725 = lean_unsigned_to_nat(1u); +x_726 = lean_array_get(x_724, x_4, x_725); +lean_dec(x_4); +x_727 = l_Lean_Syntax_getArgs(x_726); +lean_dec(x_726); +x_728 = lean_array_get_size(x_727); +x_729 = lean_unsigned_to_nat(0u); +x_730 = lean_nat_dec_eq(x_728, x_729); +lean_dec(x_728); +if (x_730 == 0) +{ +lean_object* x_731; +x_731 = lean_array_get(x_724, x_727, x_729); +lean_dec(x_727); +x_1 = x_731; +goto _start; +} +else +{ +lean_object* x_733; lean_object* x_734; lean_object* x_735; lean_object* x_736; lean_object* x_737; lean_object* x_738; lean_object* x_739; +lean_dec(x_727); +lean_dec(x_2); +x_733 = l___private_Lean_Compiler_InitAttr_2__isUnitType___closed__1; +x_734 = lean_name_mk_string(x_41, x_733); +x_735 = l_Lean_unitToExpr___lambda__1___closed__3; +x_736 = lean_name_mk_string(x_734, x_735); +x_737 = lean_box(0); +x_738 = l_Lean_mkConst(x_736, x_737); +x_739 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_739, 0, x_738); +lean_ctor_set(x_739, 1, x_3); +return x_739; +} +} +} +else +{ +lean_object* x_740; lean_object* x_741; lean_object* x_742; lean_object* x_743; lean_object* x_744; lean_object* x_745; lean_object* x_746; lean_object* x_747; lean_object* x_748; lean_object* x_749; lean_object* x_750; +lean_free_object(x_40); +lean_free_object(x_39); +lean_free_object(x_30); +lean_dec(x_42); +lean_dec(x_1); +x_740 = l_Lean_Syntax_inhabited; +x_741 = lean_unsigned_to_nat(2u); +x_742 = lean_array_get(x_740, x_4, x_741); +x_743 = lean_unsigned_to_nat(4u); +x_744 = lean_array_get(x_740, x_4, x_743); +x_745 = lean_unsigned_to_nat(6u); +x_746 = lean_array_get(x_740, x_4, x_745); +lean_dec(x_4); +x_747 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__4___boxed), 7, 4); +lean_closure_set(x_747, 0, x_41); +lean_closure_set(x_747, 1, x_742); +lean_closure_set(x_747, 2, x_744); +lean_closure_set(x_747, 3, x_746); +x_748 = l_Lean_Unhygienic_MonadQuotation___closed__4; +x_749 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___spec__1___rarg), 4, 2); +lean_closure_set(x_749, 0, x_748); +lean_closure_set(x_749, 1, x_747); +x_750 = l_Lean_Unhygienic_run___rarg(x_749); +x_1 = x_750; +goto _start; +} +} +else +{ +lean_object* x_752; lean_object* x_753; lean_object* x_754; lean_object* x_755; +lean_free_object(x_40); +lean_free_object(x_39); +lean_free_object(x_30); +lean_dec(x_42); +lean_dec(x_1); +x_752 = l_Lean_Syntax_inhabited; +x_753 = lean_unsigned_to_nat(0u); +x_754 = lean_array_get(x_752, x_4, x_753); +lean_inc(x_2); +x_755 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_754, x_2, x_3); +if (lean_obj_tag(x_755) == 0) +{ +lean_object* x_756; lean_object* x_757; lean_object* x_758; lean_object* x_759; lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; lean_object* x_764; +x_756 = lean_ctor_get(x_755, 0); +lean_inc(x_756); +x_757 = lean_ctor_get(x_755, 1); +lean_inc(x_757); +lean_dec(x_755); +x_758 = lean_unsigned_to_nat(1u); +x_759 = lean_array_get(x_752, x_4, x_758); +lean_dec(x_4); +x_760 = l_Lean_Syntax_getArgs(x_759); +lean_dec(x_759); +x_761 = x_760; +x_762 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__1), 4, 2); +lean_closure_set(x_762, 0, x_753); +lean_closure_set(x_762, 1, x_761); +x_763 = x_762; +x_764 = lean_apply_2(x_763, x_2, x_757); +if (lean_obj_tag(x_764) == 0) +{ +lean_object* x_765; lean_object* x_766; lean_object* x_767; lean_object* x_768; lean_object* x_769; +x_765 = lean_ctor_get(x_764, 0); +lean_inc(x_765); +x_766 = lean_ctor_get(x_764, 1); +lean_inc(x_766); +if (lean_is_exclusive(x_764)) { + lean_ctor_release(x_764, 0); + lean_ctor_release(x_764, 1); + x_767 = x_764; +} else { + lean_dec_ref(x_764); + x_767 = lean_box(0); +} +x_768 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_765, x_765, x_753, x_756); +lean_dec(x_765); +if (lean_is_scalar(x_767)) { + x_769 = lean_alloc_ctor(0, 2, 0); +} else { + x_769 = x_767; +} +lean_ctor_set(x_769, 0, x_768); +lean_ctor_set(x_769, 1, x_766); +return x_769; +} +else +{ +lean_object* x_770; lean_object* x_771; lean_object* x_772; lean_object* x_773; +lean_dec(x_756); +x_770 = lean_ctor_get(x_764, 0); +lean_inc(x_770); +x_771 = lean_ctor_get(x_764, 1); +lean_inc(x_771); +if (lean_is_exclusive(x_764)) { + lean_ctor_release(x_764, 0); + lean_ctor_release(x_764, 1); + x_772 = x_764; +} else { + lean_dec_ref(x_764); + x_772 = lean_box(0); +} +if (lean_is_scalar(x_772)) { + x_773 = lean_alloc_ctor(1, 2, 0); +} else { + x_773 = x_772; +} +lean_ctor_set(x_773, 0, x_770); +lean_ctor_set(x_773, 1, x_771); +return x_773; +} +} +else +{ +lean_object* x_774; lean_object* x_775; lean_object* x_776; lean_object* x_777; +lean_dec(x_2); +lean_dec(x_4); +x_774 = lean_ctor_get(x_755, 0); +lean_inc(x_774); +x_775 = lean_ctor_get(x_755, 1); +lean_inc(x_775); +if (lean_is_exclusive(x_755)) { + lean_ctor_release(x_755, 0); + lean_ctor_release(x_755, 1); + x_776 = x_755; +} else { + lean_dec_ref(x_755); + x_776 = lean_box(0); +} +if (lean_is_scalar(x_776)) { + x_777 = lean_alloc_ctor(1, 2, 0); +} else { + x_777 = x_776; +} +lean_ctor_set(x_777, 0, x_774); +lean_ctor_set(x_777, 1, x_775); +return x_777; +} +} +} +else +{ +lean_object* x_778; lean_object* x_779; lean_object* x_780; lean_object* x_781; lean_object* x_782; uint8_t x_783; lean_object* x_784; lean_object* x_785; lean_object* x_786; lean_object* x_787; lean_object* x_788; +lean_free_object(x_40); +lean_free_object(x_39); +lean_free_object(x_30); +lean_dec(x_42); +x_778 = l_Lean_Syntax_inhabited; +x_779 = lean_unsigned_to_nat(1u); +x_780 = lean_array_get(x_778, x_4, x_779); +x_781 = lean_unsigned_to_nat(0u); +x_782 = l_Lean_Syntax_getArg(x_780, x_781); +x_783 = l_Lean_Syntax_isIdent(x_782); +x_784 = lean_unsigned_to_nat(4u); +x_785 = l_Lean_Syntax_getArg(x_780, x_784); +lean_dec(x_780); +x_786 = lean_unsigned_to_nat(3u); +x_787 = lean_array_get(x_778, x_4, x_786); +lean_dec(x_4); +if (x_783 == 0) +{ +lean_object* x_822; +x_822 = l_Lean_Syntax_getIdAt(x_782, x_781); +lean_dec(x_782); +x_788 = x_822; +goto block_821; +} +else +{ +lean_object* x_823; +x_823 = l_Lean_Syntax_getId(x_782); +lean_dec(x_782); +x_788 = x_823; +goto block_821; +} +block_821: +{ +lean_object* x_789; +lean_inc(x_2); +x_789 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_785, x_2, x_3); +if (lean_obj_tag(x_789) == 0) +{ +lean_object* x_790; lean_object* x_791; lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; lean_object* x_796; lean_object* x_797; lean_object* x_798; lean_object* x_799; lean_object* x_800; lean_object* x_801; lean_object* x_802; lean_object* x_803; lean_object* x_804; +x_790 = lean_ctor_get(x_789, 0); +lean_inc(x_790); +x_791 = lean_ctor_get(x_789, 1); +lean_inc(x_791); +lean_dec(x_789); +x_792 = l_Lean_Elab_Term_getLCtx(x_2, x_791); +lean_dec(x_2); +x_793 = lean_ctor_get(x_792, 0); +lean_inc(x_793); +x_794 = lean_ctor_get(x_792, 1); +lean_inc(x_794); +lean_dec(x_792); +x_795 = l___private_Lean_Elab_Quotation_9__exprPlaceholder; +lean_inc_n(x_788, 2); +x_796 = lean_local_ctx_mk_let_decl(x_793, x_788, x_788, x_795, x_790); +x_797 = lean_ctor_get(x_7, 0); +lean_inc(x_797); +x_798 = lean_ctor_get(x_7, 2); +lean_inc(x_798); +x_799 = lean_ctor_get(x_7, 3); +lean_inc(x_799); +x_800 = lean_ctor_get(x_7, 4); +lean_inc(x_800); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + lean_ctor_release(x_7, 2); + lean_ctor_release(x_7, 3); + lean_ctor_release(x_7, 4); + x_801 = x_7; +} else { + lean_dec_ref(x_7); + x_801 = lean_box(0); +} +lean_inc(x_796); +if (lean_is_scalar(x_801)) { + x_802 = lean_alloc_ctor(0, 5, 0); +} else { + x_802 = x_801; +} +lean_ctor_set(x_802, 0, x_797); +lean_ctor_set(x_802, 1, x_796); +lean_ctor_set(x_802, 2, x_798); +lean_ctor_set(x_802, 3, x_799); +lean_ctor_set(x_802, 4, x_800); +x_803 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_803, 0, x_802); +lean_ctor_set(x_803, 1, x_8); +lean_ctor_set(x_803, 2, x_9); +lean_ctor_set(x_803, 3, x_10); +lean_ctor_set(x_803, 4, x_11); +lean_ctor_set(x_803, 5, x_12); +lean_ctor_set(x_803, 6, x_13); +lean_ctor_set(x_803, 7, x_14); +lean_ctor_set(x_803, 8, x_15); +lean_ctor_set(x_803, 9, x_16); +lean_ctor_set(x_803, 10, x_1); +lean_ctor_set_uint8(x_803, sizeof(void*)*11, x_17); +lean_ctor_set_uint8(x_803, sizeof(void*)*11 + 1, x_18); +lean_ctor_set_uint8(x_803, sizeof(void*)*11 + 2, x_19); +x_804 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_787, x_803, x_794); +if (lean_obj_tag(x_804) == 0) +{ +lean_object* x_805; lean_object* x_806; lean_object* x_807; lean_object* x_808; lean_object* x_809; lean_object* x_810; lean_object* x_811; lean_object* x_812; +x_805 = lean_ctor_get(x_804, 0); +lean_inc(x_805); +x_806 = lean_ctor_get(x_804, 1); +lean_inc(x_806); +if (lean_is_exclusive(x_804)) { + lean_ctor_release(x_804, 0); + lean_ctor_release(x_804, 1); + x_807 = x_804; +} else { + lean_dec_ref(x_804); + x_807 = lean_box(0); +} +x_808 = l_Lean_mkFVar(x_788); +x_809 = l_Lean_mkOptionalNode___closed__2; +x_810 = lean_array_push(x_809, x_808); +x_811 = l_Lean_LocalContext_mkLambda(x_796, x_810, x_805); +lean_dec(x_805); +lean_dec(x_810); +if (lean_is_scalar(x_807)) { + x_812 = lean_alloc_ctor(0, 2, 0); +} else { + x_812 = x_807; +} +lean_ctor_set(x_812, 0, x_811); +lean_ctor_set(x_812, 1, x_806); +return x_812; +} +else +{ +lean_object* x_813; lean_object* x_814; lean_object* x_815; lean_object* x_816; +lean_dec(x_796); +lean_dec(x_788); +x_813 = lean_ctor_get(x_804, 0); +lean_inc(x_813); +x_814 = lean_ctor_get(x_804, 1); +lean_inc(x_814); +if (lean_is_exclusive(x_804)) { + lean_ctor_release(x_804, 0); + lean_ctor_release(x_804, 1); + x_815 = x_804; +} else { + lean_dec_ref(x_804); + x_815 = lean_box(0); +} +if (lean_is_scalar(x_815)) { + x_816 = lean_alloc_ctor(1, 2, 0); +} else { + x_816 = x_815; +} +lean_ctor_set(x_816, 0, x_813); +lean_ctor_set(x_816, 1, x_814); +return x_816; +} +} +else +{ +lean_object* x_817; lean_object* x_818; lean_object* x_819; lean_object* x_820; +lean_dec(x_788); +lean_dec(x_787); +lean_dec(x_2); +lean_dec(x_16); +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_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_817 = lean_ctor_get(x_789, 0); +lean_inc(x_817); +x_818 = lean_ctor_get(x_789, 1); +lean_inc(x_818); +if (lean_is_exclusive(x_789)) { + lean_ctor_release(x_789, 0); + lean_ctor_release(x_789, 1); + x_819 = x_789; +} else { + lean_dec_ref(x_789); + x_819 = lean_box(0); +} +if (lean_is_scalar(x_819)) { + x_820 = lean_alloc_ctor(1, 2, 0); +} else { + x_820 = x_819; +} +lean_ctor_set(x_820, 0, x_817); +lean_ctor_set(x_820, 1, x_818); +return x_820; +} +} +} +} +else +{ +lean_object* x_824; lean_object* x_825; lean_object* x_826; lean_object* x_827; lean_object* x_828; lean_object* x_829; lean_object* x_830; lean_object* x_831; uint8_t x_832; +lean_free_object(x_40); +lean_free_object(x_39); +lean_free_object(x_30); +lean_dec(x_42); +x_824 = l_Lean_Syntax_inhabited; +x_825 = lean_unsigned_to_nat(1u); +x_826 = lean_array_get(x_824, x_4, x_825); +x_827 = l_Lean_Syntax_getArgs(x_826); +lean_dec(x_826); +x_828 = lean_unsigned_to_nat(3u); +x_829 = lean_array_get(x_824, x_4, x_828); +lean_dec(x_4); +x_830 = lean_array_get_size(x_827); +x_831 = lean_unsigned_to_nat(0u); +x_832 = lean_nat_dec_eq(x_830, x_831); +lean_dec(x_830); +if (x_832 == 0) +{ +lean_object* x_833; lean_object* x_834; lean_object* x_835; lean_object* x_836; lean_object* x_837; uint8_t x_838; +x_833 = lean_array_get(x_824, x_827, x_831); +x_834 = lean_name_mk_string(x_41, x_53); +x_835 = lean_name_mk_string(x_834, x_627); +x_836 = lean_name_mk_string(x_835, x_637); +lean_inc(x_836); +x_837 = lean_name_mk_string(x_836, x_647); +lean_inc(x_833); +x_838 = l_Lean_Syntax_isOfKind(x_833, x_837); +lean_dec(x_837); +if (x_838 == 0) +{ +lean_object* x_839; lean_object* x_840; uint8_t x_841; +x_839 = l_Lean_mkHole___closed__1; +lean_inc(x_836); +x_840 = lean_name_mk_string(x_836, x_839); +lean_inc(x_833); +x_841 = l_Lean_Syntax_isOfKind(x_833, x_840); +lean_dec(x_840); +if (x_841 == 0) +{ +lean_object* x_842; lean_object* x_843; lean_object* x_844; lean_object* x_845; lean_object* x_846; lean_object* x_847; lean_object* x_848; +x_842 = l_Lean_Syntax_getArg(x_833, x_825); +lean_dec(x_833); +x_843 = l_Lean_Syntax_getArg(x_842, x_831); +x_844 = l_Lean_Syntax_getIdAt(x_843, x_831); +lean_dec(x_843); +x_845 = l_Lean_Syntax_getArg(x_842, x_825); +lean_dec(x_842); +x_846 = l_Lean_Syntax_getArg(x_845, x_831); +lean_dec(x_845); +x_847 = l_Lean_Syntax_getArg(x_846, x_825); +lean_dec(x_846); +lean_inc(x_2); +x_848 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_847, x_2, x_3); +if (lean_obj_tag(x_848) == 0) +{ +lean_object* x_849; lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; uint8_t x_854; lean_object* x_855; lean_object* x_856; lean_object* x_857; lean_object* x_858; lean_object* x_859; lean_object* x_860; lean_object* x_861; lean_object* x_862; lean_object* x_863; lean_object* x_864; lean_object* x_865; lean_object* x_866; lean_object* x_867; lean_object* x_868; lean_object* x_869; lean_object* x_870; lean_object* x_871; lean_object* x_872; lean_object* x_873; lean_object* x_874; lean_object* x_875; lean_object* x_876; lean_object* x_877; lean_object* x_878; lean_object* x_879; lean_object* x_880; +x_849 = lean_ctor_get(x_848, 0); +lean_inc(x_849); +x_850 = lean_ctor_get(x_848, 1); +lean_inc(x_850); +lean_dec(x_848); +x_851 = l_Lean_Elab_Term_getLCtx(x_2, x_850); +x_852 = lean_ctor_get(x_851, 0); +lean_inc(x_852); +x_853 = lean_ctor_get(x_851, 1); +lean_inc(x_853); +lean_dec(x_851); +x_854 = 0; +lean_inc_n(x_844, 2); +x_855 = lean_local_ctx_mk_local_decl(x_852, x_844, x_844, x_849, x_854); +x_856 = l_Array_eraseIdx___rarg(x_827, x_831); +x_857 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_853); +lean_dec(x_2); +x_858 = lean_ctor_get(x_857, 1); +lean_inc(x_858); +lean_dec(x_857); +x_859 = l_Lean_Elab_Term_getMainModule___rarg(x_858); +x_860 = lean_ctor_get(x_859, 1); +lean_inc(x_860); +lean_dec(x_859); +x_861 = lean_name_mk_string(x_836, x_649); +x_862 = l_Lean_nullKind___closed__1; +x_863 = lean_name_mk_string(x_41, x_862); +x_864 = l_Array_empty___closed__1; +x_865 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_856, x_856, x_831, x_864); +lean_dec(x_856); +x_866 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_866, 0, x_863); +lean_ctor_set(x_866, 1, x_865); +x_867 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; +x_868 = lean_array_push(x_867, x_866); +x_869 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; +x_870 = lean_array_push(x_868, x_869); +x_871 = lean_array_push(x_870, x_829); +x_872 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_872, 0, x_861); +lean_ctor_set(x_872, 1, x_871); +x_873 = lean_ctor_get(x_7, 0); +lean_inc(x_873); +x_874 = lean_ctor_get(x_7, 2); +lean_inc(x_874); +x_875 = lean_ctor_get(x_7, 3); +lean_inc(x_875); +x_876 = lean_ctor_get(x_7, 4); +lean_inc(x_876); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + lean_ctor_release(x_7, 2); + lean_ctor_release(x_7, 3); + lean_ctor_release(x_7, 4); + x_877 = x_7; +} else { + lean_dec_ref(x_7); + x_877 = lean_box(0); +} +lean_inc(x_855); +if (lean_is_scalar(x_877)) { + x_878 = lean_alloc_ctor(0, 5, 0); +} else { + x_878 = x_877; +} +lean_ctor_set(x_878, 0, x_873); +lean_ctor_set(x_878, 1, x_855); +lean_ctor_set(x_878, 2, x_874); +lean_ctor_set(x_878, 3, x_875); +lean_ctor_set(x_878, 4, x_876); +x_879 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_879, 0, x_878); +lean_ctor_set(x_879, 1, x_8); +lean_ctor_set(x_879, 2, x_9); +lean_ctor_set(x_879, 3, x_10); +lean_ctor_set(x_879, 4, x_11); +lean_ctor_set(x_879, 5, x_12); +lean_ctor_set(x_879, 6, x_13); +lean_ctor_set(x_879, 7, x_14); +lean_ctor_set(x_879, 8, x_15); +lean_ctor_set(x_879, 9, x_16); +lean_ctor_set(x_879, 10, x_1); +lean_ctor_set_uint8(x_879, sizeof(void*)*11, x_17); +lean_ctor_set_uint8(x_879, sizeof(void*)*11 + 1, x_18); +lean_ctor_set_uint8(x_879, sizeof(void*)*11 + 2, x_19); +x_880 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_872, x_879, x_860); +if (lean_obj_tag(x_880) == 0) +{ +lean_object* x_881; lean_object* x_882; lean_object* x_883; lean_object* x_884; lean_object* x_885; lean_object* x_886; lean_object* x_887; lean_object* x_888; +x_881 = lean_ctor_get(x_880, 0); +lean_inc(x_881); +x_882 = lean_ctor_get(x_880, 1); +lean_inc(x_882); +if (lean_is_exclusive(x_880)) { + lean_ctor_release(x_880, 0); + lean_ctor_release(x_880, 1); + x_883 = x_880; +} else { + lean_dec_ref(x_880); + x_883 = lean_box(0); +} +x_884 = l_Lean_mkFVar(x_844); +x_885 = l_Lean_mkOptionalNode___closed__2; +x_886 = lean_array_push(x_885, x_884); +x_887 = l_Lean_LocalContext_mkLambda(x_855, x_886, x_881); +lean_dec(x_881); +lean_dec(x_886); +if (lean_is_scalar(x_883)) { + x_888 = lean_alloc_ctor(0, 2, 0); +} else { + x_888 = x_883; +} +lean_ctor_set(x_888, 0, x_887); +lean_ctor_set(x_888, 1, x_882); +return x_888; +} +else +{ +lean_object* x_889; lean_object* x_890; lean_object* x_891; lean_object* x_892; +lean_dec(x_855); +lean_dec(x_844); +x_889 = lean_ctor_get(x_880, 0); +lean_inc(x_889); +x_890 = lean_ctor_get(x_880, 1); +lean_inc(x_890); +if (lean_is_exclusive(x_880)) { + lean_ctor_release(x_880, 0); + lean_ctor_release(x_880, 1); + x_891 = x_880; +} else { + lean_dec_ref(x_880); + x_891 = lean_box(0); +} +if (lean_is_scalar(x_891)) { + x_892 = lean_alloc_ctor(1, 2, 0); +} else { + x_892 = x_891; +} +lean_ctor_set(x_892, 0, x_889); +lean_ctor_set(x_892, 1, x_890); +return x_892; +} +} +else +{ +lean_object* x_893; lean_object* x_894; lean_object* x_895; lean_object* x_896; +lean_dec(x_844); +lean_dec(x_836); +lean_dec(x_829); +lean_dec(x_827); +lean_dec(x_2); +lean_dec(x_16); +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_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_893 = lean_ctor_get(x_848, 0); +lean_inc(x_893); +x_894 = lean_ctor_get(x_848, 1); +lean_inc(x_894); +if (lean_is_exclusive(x_848)) { + lean_ctor_release(x_848, 0); + lean_ctor_release(x_848, 1); + x_895 = x_848; +} else { + lean_dec_ref(x_848); + x_895 = lean_box(0); +} +if (lean_is_scalar(x_895)) { + x_896 = lean_alloc_ctor(1, 2, 0); +} else { + x_896 = x_895; +} +lean_ctor_set(x_896, 0, x_893); +lean_ctor_set(x_896, 1, x_894); +return x_896; +} +} +else +{ +lean_object* x_897; lean_object* x_898; lean_object* x_899; lean_object* x_900; lean_object* x_901; lean_object* x_902; uint8_t x_903; lean_object* x_904; lean_object* x_905; lean_object* x_906; lean_object* x_907; lean_object* x_908; lean_object* x_909; lean_object* x_910; lean_object* x_911; lean_object* x_912; lean_object* x_913; lean_object* x_914; lean_object* x_915; lean_object* x_916; lean_object* x_917; lean_object* x_918; lean_object* x_919; lean_object* x_920; lean_object* x_921; lean_object* x_922; lean_object* x_923; lean_object* x_924; lean_object* x_925; lean_object* x_926; lean_object* x_927; lean_object* x_928; lean_object* x_929; +lean_dec(x_833); +x_897 = l_Lean_Meta_rewriteCore___lambda__1___closed__4; +x_898 = lean_name_mk_string(x_41, x_897); +x_899 = l_Lean_Elab_Term_getLCtx(x_2, x_3); +x_900 = lean_ctor_get(x_899, 0); +lean_inc(x_900); +x_901 = lean_ctor_get(x_899, 1); +lean_inc(x_901); +lean_dec(x_899); +x_902 = l___private_Lean_Elab_Quotation_9__exprPlaceholder; +x_903 = 0; +lean_inc_n(x_898, 2); +x_904 = lean_local_ctx_mk_local_decl(x_900, x_898, x_898, x_902, x_903); +x_905 = l_Array_eraseIdx___rarg(x_827, x_831); +x_906 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_901); +lean_dec(x_2); +x_907 = lean_ctor_get(x_906, 1); +lean_inc(x_907); +lean_dec(x_906); +x_908 = l_Lean_Elab_Term_getMainModule___rarg(x_907); +x_909 = lean_ctor_get(x_908, 1); +lean_inc(x_909); +lean_dec(x_908); +x_910 = lean_name_mk_string(x_836, x_649); +x_911 = l_Lean_nullKind___closed__1; +x_912 = lean_name_mk_string(x_41, x_911); +x_913 = l_Array_empty___closed__1; +x_914 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_905, x_905, x_831, x_913); +lean_dec(x_905); +x_915 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_915, 0, x_912); +lean_ctor_set(x_915, 1, x_914); +x_916 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; +x_917 = lean_array_push(x_916, x_915); +x_918 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; +x_919 = lean_array_push(x_917, x_918); +x_920 = lean_array_push(x_919, x_829); +x_921 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_921, 0, x_910); +lean_ctor_set(x_921, 1, x_920); +x_922 = lean_ctor_get(x_7, 0); +lean_inc(x_922); +x_923 = lean_ctor_get(x_7, 2); +lean_inc(x_923); +x_924 = lean_ctor_get(x_7, 3); +lean_inc(x_924); +x_925 = lean_ctor_get(x_7, 4); +lean_inc(x_925); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + lean_ctor_release(x_7, 2); + lean_ctor_release(x_7, 3); + lean_ctor_release(x_7, 4); + x_926 = x_7; +} else { + lean_dec_ref(x_7); + x_926 = lean_box(0); +} +lean_inc(x_904); +if (lean_is_scalar(x_926)) { + x_927 = lean_alloc_ctor(0, 5, 0); +} else { + x_927 = x_926; +} +lean_ctor_set(x_927, 0, x_922); +lean_ctor_set(x_927, 1, x_904); +lean_ctor_set(x_927, 2, x_923); +lean_ctor_set(x_927, 3, x_924); +lean_ctor_set(x_927, 4, x_925); +x_928 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_928, 0, x_927); +lean_ctor_set(x_928, 1, x_8); +lean_ctor_set(x_928, 2, x_9); +lean_ctor_set(x_928, 3, x_10); +lean_ctor_set(x_928, 4, x_11); +lean_ctor_set(x_928, 5, x_12); +lean_ctor_set(x_928, 6, x_13); +lean_ctor_set(x_928, 7, x_14); +lean_ctor_set(x_928, 8, x_15); +lean_ctor_set(x_928, 9, x_16); +lean_ctor_set(x_928, 10, x_1); +lean_ctor_set_uint8(x_928, sizeof(void*)*11, x_17); +lean_ctor_set_uint8(x_928, sizeof(void*)*11 + 1, x_18); +lean_ctor_set_uint8(x_928, sizeof(void*)*11 + 2, x_19); +x_929 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_921, x_928, x_909); +if (lean_obj_tag(x_929) == 0) +{ +lean_object* x_930; lean_object* x_931; lean_object* x_932; lean_object* x_933; lean_object* x_934; lean_object* x_935; lean_object* x_936; lean_object* x_937; +x_930 = lean_ctor_get(x_929, 0); +lean_inc(x_930); +x_931 = lean_ctor_get(x_929, 1); +lean_inc(x_931); +if (lean_is_exclusive(x_929)) { + lean_ctor_release(x_929, 0); + lean_ctor_release(x_929, 1); + x_932 = x_929; +} else { + lean_dec_ref(x_929); + x_932 = lean_box(0); +} +x_933 = l_Lean_mkFVar(x_898); +x_934 = l_Lean_mkOptionalNode___closed__2; +x_935 = lean_array_push(x_934, x_933); +x_936 = l_Lean_LocalContext_mkLambda(x_904, x_935, x_930); +lean_dec(x_930); +lean_dec(x_935); +if (lean_is_scalar(x_932)) { + x_937 = lean_alloc_ctor(0, 2, 0); +} else { + x_937 = x_932; +} +lean_ctor_set(x_937, 0, x_936); +lean_ctor_set(x_937, 1, x_931); +return x_937; +} +else +{ +lean_object* x_938; lean_object* x_939; lean_object* x_940; lean_object* x_941; +lean_dec(x_904); +lean_dec(x_898); +x_938 = lean_ctor_get(x_929, 0); +lean_inc(x_938); +x_939 = lean_ctor_get(x_929, 1); +lean_inc(x_939); +if (lean_is_exclusive(x_929)) { + lean_ctor_release(x_929, 0); + lean_ctor_release(x_929, 1); + x_940 = x_929; +} else { + lean_dec_ref(x_929); + x_940 = lean_box(0); +} +if (lean_is_scalar(x_940)) { + x_941 = lean_alloc_ctor(1, 2, 0); +} else { + x_941 = x_940; +} +lean_ctor_set(x_941, 0, x_938); +lean_ctor_set(x_941, 1, x_939); +return x_941; +} +} +} +else +{ +lean_object* x_942; lean_object* x_943; lean_object* x_944; lean_object* x_945; lean_object* x_946; uint8_t x_947; lean_object* x_948; lean_object* x_949; lean_object* x_950; lean_object* x_951; lean_object* x_952; lean_object* x_953; lean_object* x_954; lean_object* x_955; lean_object* x_956; lean_object* x_957; lean_object* x_958; lean_object* x_959; lean_object* x_960; lean_object* x_961; lean_object* x_962; lean_object* x_963; lean_object* x_964; lean_object* x_965; lean_object* x_966; lean_object* x_967; lean_object* x_968; lean_object* x_969; lean_object* x_970; lean_object* x_971; lean_object* x_972; lean_object* x_973; +x_942 = l_Lean_Syntax_getIdAt(x_833, x_831); +lean_dec(x_833); +x_943 = l_Lean_Elab_Term_getLCtx(x_2, x_3); +x_944 = lean_ctor_get(x_943, 0); +lean_inc(x_944); +x_945 = lean_ctor_get(x_943, 1); +lean_inc(x_945); +lean_dec(x_943); +x_946 = l___private_Lean_Elab_Quotation_9__exprPlaceholder; +x_947 = 0; +lean_inc_n(x_942, 2); +x_948 = lean_local_ctx_mk_local_decl(x_944, x_942, x_942, x_946, x_947); +x_949 = l_Array_eraseIdx___rarg(x_827, x_831); +x_950 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_945); +lean_dec(x_2); +x_951 = lean_ctor_get(x_950, 1); +lean_inc(x_951); +lean_dec(x_950); +x_952 = l_Lean_Elab_Term_getMainModule___rarg(x_951); +x_953 = lean_ctor_get(x_952, 1); +lean_inc(x_953); +lean_dec(x_952); +x_954 = lean_name_mk_string(x_836, x_649); +x_955 = l_Lean_nullKind___closed__1; +x_956 = lean_name_mk_string(x_41, x_955); +x_957 = l_Array_empty___closed__1; +x_958 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_949, x_949, x_831, x_957); +lean_dec(x_949); +x_959 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_959, 0, x_956); +lean_ctor_set(x_959, 1, x_958); +x_960 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; +x_961 = lean_array_push(x_960, x_959); +x_962 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; +x_963 = lean_array_push(x_961, x_962); +x_964 = lean_array_push(x_963, x_829); +x_965 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_965, 0, x_954); +lean_ctor_set(x_965, 1, x_964); +x_966 = lean_ctor_get(x_7, 0); +lean_inc(x_966); +x_967 = lean_ctor_get(x_7, 2); +lean_inc(x_967); +x_968 = lean_ctor_get(x_7, 3); +lean_inc(x_968); +x_969 = lean_ctor_get(x_7, 4); +lean_inc(x_969); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + lean_ctor_release(x_7, 2); + lean_ctor_release(x_7, 3); + lean_ctor_release(x_7, 4); + x_970 = x_7; +} else { + lean_dec_ref(x_7); + x_970 = lean_box(0); +} +lean_inc(x_948); +if (lean_is_scalar(x_970)) { + x_971 = lean_alloc_ctor(0, 5, 0); +} else { + x_971 = x_970; +} +lean_ctor_set(x_971, 0, x_966); +lean_ctor_set(x_971, 1, x_948); +lean_ctor_set(x_971, 2, x_967); +lean_ctor_set(x_971, 3, x_968); +lean_ctor_set(x_971, 4, x_969); +x_972 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_972, 0, x_971); +lean_ctor_set(x_972, 1, x_8); +lean_ctor_set(x_972, 2, x_9); +lean_ctor_set(x_972, 3, x_10); +lean_ctor_set(x_972, 4, x_11); +lean_ctor_set(x_972, 5, x_12); +lean_ctor_set(x_972, 6, x_13); +lean_ctor_set(x_972, 7, x_14); +lean_ctor_set(x_972, 8, x_15); +lean_ctor_set(x_972, 9, x_16); +lean_ctor_set(x_972, 10, x_1); +lean_ctor_set_uint8(x_972, sizeof(void*)*11, x_17); +lean_ctor_set_uint8(x_972, sizeof(void*)*11 + 1, x_18); +lean_ctor_set_uint8(x_972, sizeof(void*)*11 + 2, x_19); +x_973 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_965, x_972, x_953); +if (lean_obj_tag(x_973) == 0) +{ +lean_object* x_974; lean_object* x_975; lean_object* x_976; lean_object* x_977; lean_object* x_978; lean_object* x_979; lean_object* x_980; lean_object* x_981; +x_974 = lean_ctor_get(x_973, 0); +lean_inc(x_974); +x_975 = lean_ctor_get(x_973, 1); +lean_inc(x_975); +if (lean_is_exclusive(x_973)) { + lean_ctor_release(x_973, 0); + lean_ctor_release(x_973, 1); + x_976 = x_973; +} else { + lean_dec_ref(x_973); + x_976 = lean_box(0); +} +x_977 = l_Lean_mkFVar(x_942); +x_978 = l_Lean_mkOptionalNode___closed__2; +x_979 = lean_array_push(x_978, x_977); +x_980 = l_Lean_LocalContext_mkLambda(x_948, x_979, x_974); +lean_dec(x_974); +lean_dec(x_979); +if (lean_is_scalar(x_976)) { + x_981 = lean_alloc_ctor(0, 2, 0); +} else { + x_981 = x_976; +} +lean_ctor_set(x_981, 0, x_980); +lean_ctor_set(x_981, 1, x_975); +return x_981; +} +else +{ +lean_object* x_982; lean_object* x_983; lean_object* x_984; lean_object* x_985; +lean_dec(x_948); +lean_dec(x_942); +x_982 = lean_ctor_get(x_973, 0); +lean_inc(x_982); +x_983 = lean_ctor_get(x_973, 1); +lean_inc(x_983); +if (lean_is_exclusive(x_973)) { + lean_ctor_release(x_973, 0); + lean_ctor_release(x_973, 1); + x_984 = x_973; +} else { + lean_dec_ref(x_973); + x_984 = lean_box(0); +} +if (lean_is_scalar(x_984)) { + x_985 = lean_alloc_ctor(1, 2, 0); +} else { + x_985 = x_984; +} +lean_ctor_set(x_985, 0, x_982); +lean_ctor_set(x_985, 1, x_983); +return x_985; +} +} +} +else +{ +lean_dec(x_827); +lean_dec(x_16); +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_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); x_1 = x_829; goto _start; } } +} else { -lean_object* x_831; lean_object* x_832; lean_object* x_833; lean_object* x_834; lean_object* x_835; lean_object* x_836; lean_object* x_837; lean_object* x_838; lean_object* x_839; -lean_free_object(x_25); -lean_free_object(x_24); -lean_free_object(x_15); -lean_dec(x_27); +lean_object* x_987; lean_object* x_988; lean_object* x_989; +lean_free_object(x_40); +lean_free_object(x_39); +lean_free_object(x_30); +lean_dec(x_42); +lean_dec(x_16); +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_9); +lean_dec(x_8); +lean_dec(x_7); lean_dec(x_1); -x_831 = l_Lean_Syntax_inhabited; -x_832 = lean_unsigned_to_nat(0u); -x_833 = lean_array_get(x_831, x_4, x_832); -x_834 = lean_unsigned_to_nat(2u); -x_835 = lean_array_get(x_831, x_4, x_834); +x_987 = l_Lean_Syntax_inhabited; +x_988 = lean_unsigned_to_nat(0u); +x_989 = lean_array_get(x_987, x_4, x_988); lean_dec(x_4); -x_836 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__3___boxed), 6, 3); -lean_closure_set(x_836, 0, x_26); -lean_closure_set(x_836, 1, x_833); -lean_closure_set(x_836, 2, x_835); -x_837 = l_Lean_Unhygienic_MonadQuotation___closed__4; -x_838 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___spec__1___rarg), 4, 2); -lean_closure_set(x_838, 0, x_837); -lean_closure_set(x_838, 1, x_836); -x_839 = l_Lean_Unhygienic_run___rarg(x_838); -x_1 = x_839; -goto _start; -} -} -else +if (lean_obj_tag(x_989) == 3) { -lean_object* x_841; lean_object* x_842; lean_object* x_843; lean_object* x_844; lean_object* x_845; lean_object* x_846; uint8_t x_847; -lean_free_object(x_25); -lean_free_object(x_24); -lean_free_object(x_15); -lean_dec(x_27); -lean_dec(x_1); -x_841 = l_Lean_Syntax_inhabited; -x_842 = lean_unsigned_to_nat(1u); -x_843 = lean_array_get(x_841, x_4, x_842); -lean_dec(x_4); -x_844 = l_Lean_Syntax_getArgs(x_843); -lean_dec(x_843); -x_845 = lean_array_get_size(x_844); -x_846 = lean_unsigned_to_nat(0u); -x_847 = lean_nat_dec_eq(x_845, x_846); -lean_dec(x_845); -if (x_847 == 0) -{ -lean_object* x_848; -x_848 = lean_array_get(x_841, x_844, x_846); -lean_dec(x_844); -x_1 = x_848; -goto _start; -} -else -{ -lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; lean_object* x_854; lean_object* x_855; lean_object* x_856; -lean_dec(x_844); -lean_dec(x_2); -x_850 = l___private_Lean_Compiler_InitAttr_2__isUnitType___closed__1; -x_851 = lean_name_mk_string(x_26, x_850); -x_852 = l_Lean_unitToExpr___lambda__1___closed__3; -x_853 = lean_name_mk_string(x_851, x_852); -x_854 = lean_box(0); -x_855 = l_Lean_mkConst(x_853, x_854); -x_856 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_856, 0, x_855); -lean_ctor_set(x_856, 1, x_3); -return x_856; -} -} -} -else -{ -lean_object* x_857; lean_object* x_858; lean_object* x_859; lean_object* x_860; lean_object* x_861; lean_object* x_862; lean_object* x_863; lean_object* x_864; lean_object* x_865; lean_object* x_866; lean_object* x_867; -lean_free_object(x_25); -lean_free_object(x_24); -lean_free_object(x_15); -lean_dec(x_27); -lean_dec(x_1); -x_857 = l_Lean_Syntax_inhabited; -x_858 = lean_unsigned_to_nat(2u); -x_859 = lean_array_get(x_857, x_4, x_858); -x_860 = lean_unsigned_to_nat(4u); -x_861 = lean_array_get(x_857, x_4, x_860); -x_862 = lean_unsigned_to_nat(6u); -x_863 = lean_array_get(x_857, x_4, x_862); -lean_dec(x_4); -x_864 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__4___boxed), 7, 4); -lean_closure_set(x_864, 0, x_26); -lean_closure_set(x_864, 1, x_859); -lean_closure_set(x_864, 2, x_861); -lean_closure_set(x_864, 3, x_863); -x_865 = l_Lean_Unhygienic_MonadQuotation___closed__4; -x_866 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___spec__1___rarg), 4, 2); -lean_closure_set(x_866, 0, x_865); -lean_closure_set(x_866, 1, x_864); -x_867 = l_Lean_Unhygienic_run___rarg(x_866); -x_1 = x_867; -goto _start; -} -} -else -{ -lean_object* x_869; lean_object* x_870; lean_object* x_871; lean_object* x_872; -lean_free_object(x_25); -lean_free_object(x_24); -lean_free_object(x_15); -lean_dec(x_27); -lean_dec(x_1); -x_869 = l_Lean_Syntax_inhabited; -x_870 = lean_unsigned_to_nat(0u); -x_871 = lean_array_get(x_869, x_4, x_870); -lean_inc(x_2); -x_872 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_871, x_2, x_3); -if (lean_obj_tag(x_872) == 0) -{ -lean_object* x_873; lean_object* x_874; lean_object* x_875; lean_object* x_876; lean_object* x_877; lean_object* x_878; lean_object* x_879; lean_object* x_880; lean_object* x_881; -x_873 = lean_ctor_get(x_872, 0); -lean_inc(x_873); -x_874 = lean_ctor_get(x_872, 1); -lean_inc(x_874); -lean_dec(x_872); -x_875 = lean_unsigned_to_nat(1u); -x_876 = lean_array_get(x_869, x_4, x_875); -lean_dec(x_4); -x_877 = l_Lean_Syntax_getArgs(x_876); -lean_dec(x_876); -x_878 = x_877; -x_879 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__1), 4, 2); -lean_closure_set(x_879, 0, x_870); -lean_closure_set(x_879, 1, x_878); -x_880 = x_879; -x_881 = lean_apply_2(x_880, x_2, x_874); -if (lean_obj_tag(x_881) == 0) -{ -lean_object* x_882; lean_object* x_883; lean_object* x_884; lean_object* x_885; lean_object* x_886; -x_882 = lean_ctor_get(x_881, 0); -lean_inc(x_882); -x_883 = lean_ctor_get(x_881, 1); -lean_inc(x_883); -if (lean_is_exclusive(x_881)) { - lean_ctor_release(x_881, 0); - lean_ctor_release(x_881, 1); - x_884 = x_881; -} else { - lean_dec_ref(x_881); - x_884 = lean_box(0); -} -x_885 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_882, x_882, x_870, x_873); -lean_dec(x_882); -if (lean_is_scalar(x_884)) { - x_886 = lean_alloc_ctor(0, 2, 0); -} else { - x_886 = x_884; -} -lean_ctor_set(x_886, 0, x_885); -lean_ctor_set(x_886, 1, x_883); -return x_886; -} -else -{ -lean_object* x_887; lean_object* x_888; lean_object* x_889; lean_object* x_890; -lean_dec(x_873); -x_887 = lean_ctor_get(x_881, 0); -lean_inc(x_887); -x_888 = lean_ctor_get(x_881, 1); -lean_inc(x_888); -if (lean_is_exclusive(x_881)) { - lean_ctor_release(x_881, 0); - lean_ctor_release(x_881, 1); - x_889 = x_881; -} else { - lean_dec_ref(x_881); - x_889 = lean_box(0); -} -if (lean_is_scalar(x_889)) { - x_890 = lean_alloc_ctor(1, 2, 0); -} else { - x_890 = x_889; -} -lean_ctor_set(x_890, 0, x_887); -lean_ctor_set(x_890, 1, x_888); -return x_890; -} -} -else -{ -lean_object* x_891; lean_object* x_892; lean_object* x_893; lean_object* x_894; -lean_dec(x_4); -lean_dec(x_2); -x_891 = lean_ctor_get(x_872, 0); -lean_inc(x_891); -x_892 = lean_ctor_get(x_872, 1); -lean_inc(x_892); -if (lean_is_exclusive(x_872)) { - lean_ctor_release(x_872, 0); - lean_ctor_release(x_872, 1); - x_893 = x_872; -} else { - lean_dec_ref(x_872); - x_893 = lean_box(0); -} -if (lean_is_scalar(x_893)) { - x_894 = lean_alloc_ctor(1, 2, 0); -} else { - x_894 = x_893; -} -lean_ctor_set(x_894, 0, x_891); -lean_ctor_set(x_894, 1, x_892); -return x_894; -} -} -} -else -{ -lean_object* x_895; lean_object* x_896; lean_object* x_897; lean_object* x_898; lean_object* x_899; uint8_t x_900; lean_object* x_901; lean_object* x_902; lean_object* x_903; lean_object* x_904; lean_object* x_905; -lean_free_object(x_25); -lean_free_object(x_24); -lean_free_object(x_15); -lean_dec(x_27); -lean_dec(x_1); -x_895 = l_Lean_Syntax_inhabited; -x_896 = lean_unsigned_to_nat(1u); -x_897 = lean_array_get(x_895, x_4, x_896); -x_898 = lean_unsigned_to_nat(0u); -x_899 = l_Lean_Syntax_getArg(x_897, x_898); -x_900 = l_Lean_Syntax_isIdent(x_899); -x_901 = lean_unsigned_to_nat(4u); -x_902 = l_Lean_Syntax_getArg(x_897, x_901); -lean_dec(x_897); -x_903 = lean_unsigned_to_nat(3u); -x_904 = lean_array_get(x_895, x_4, x_903); -lean_dec(x_4); -if (x_900 == 0) -{ -lean_object* x_953; -x_953 = l_Lean_Syntax_getIdAt(x_899, x_898); -lean_dec(x_899); -x_905 = x_953; -goto block_952; -} -else -{ -lean_object* x_954; -x_954 = l_Lean_Syntax_getId(x_899); -lean_dec(x_899); -x_905 = x_954; -goto block_952; -} -block_952: -{ -lean_object* x_906; -lean_inc(x_2); -x_906 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_902, x_2, x_3); -if (lean_obj_tag(x_906) == 0) -{ -lean_object* x_907; lean_object* x_908; lean_object* x_909; lean_object* x_910; lean_object* x_911; lean_object* x_912; lean_object* x_913; lean_object* x_914; lean_object* x_915; lean_object* x_916; lean_object* x_917; lean_object* x_918; lean_object* x_919; lean_object* x_920; lean_object* x_921; lean_object* x_922; lean_object* x_923; uint8_t x_924; uint8_t x_925; uint8_t x_926; lean_object* x_927; lean_object* x_928; lean_object* x_929; lean_object* x_930; lean_object* x_931; lean_object* x_932; lean_object* x_933; lean_object* x_934; lean_object* x_935; -x_907 = lean_ctor_get(x_906, 0); -lean_inc(x_907); -x_908 = lean_ctor_get(x_906, 1); -lean_inc(x_908); -lean_dec(x_906); -x_909 = l_Lean_Elab_Term_getLCtx(x_2, x_908); -x_910 = lean_ctor_get(x_909, 0); -lean_inc(x_910); -x_911 = lean_ctor_get(x_909, 1); -lean_inc(x_911); -lean_dec(x_909); -x_912 = l___private_Lean_Elab_Quotation_9__exprPlaceholder; -lean_inc_n(x_905, 2); -x_913 = lean_local_ctx_mk_let_decl(x_910, x_905, x_905, x_912, x_907); -x_914 = lean_ctor_get(x_2, 0); -lean_inc(x_914); -x_915 = lean_ctor_get(x_2, 1); -lean_inc(x_915); -x_916 = lean_ctor_get(x_2, 2); -lean_inc(x_916); -x_917 = lean_ctor_get(x_2, 3); -lean_inc(x_917); -x_918 = lean_ctor_get(x_2, 4); -lean_inc(x_918); -x_919 = lean_ctor_get(x_2, 5); -lean_inc(x_919); -x_920 = lean_ctor_get(x_2, 6); -lean_inc(x_920); -x_921 = lean_ctor_get(x_2, 7); -lean_inc(x_921); -x_922 = lean_ctor_get(x_2, 8); -lean_inc(x_922); -x_923 = lean_ctor_get(x_2, 9); -lean_inc(x_923); -x_924 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_925 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); -x_926 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 2); -if (lean_is_exclusive(x_2)) { - lean_ctor_release(x_2, 0); - lean_ctor_release(x_2, 1); - lean_ctor_release(x_2, 2); - lean_ctor_release(x_2, 3); - lean_ctor_release(x_2, 4); - lean_ctor_release(x_2, 5); - lean_ctor_release(x_2, 6); - lean_ctor_release(x_2, 7); - lean_ctor_release(x_2, 8); - lean_ctor_release(x_2, 9); - x_927 = x_2; -} else { - lean_dec_ref(x_2); - x_927 = lean_box(0); -} -x_928 = lean_ctor_get(x_914, 0); -lean_inc(x_928); -x_929 = lean_ctor_get(x_914, 2); -lean_inc(x_929); -x_930 = lean_ctor_get(x_914, 3); -lean_inc(x_930); -x_931 = lean_ctor_get(x_914, 4); -lean_inc(x_931); -if (lean_is_exclusive(x_914)) { - lean_ctor_release(x_914, 0); - lean_ctor_release(x_914, 1); - lean_ctor_release(x_914, 2); - lean_ctor_release(x_914, 3); - lean_ctor_release(x_914, 4); - x_932 = x_914; -} else { - lean_dec_ref(x_914); - x_932 = lean_box(0); -} -lean_inc(x_913); -if (lean_is_scalar(x_932)) { - x_933 = lean_alloc_ctor(0, 5, 0); -} else { - x_933 = x_932; -} -lean_ctor_set(x_933, 0, x_928); -lean_ctor_set(x_933, 1, x_913); -lean_ctor_set(x_933, 2, x_929); -lean_ctor_set(x_933, 3, x_930); -lean_ctor_set(x_933, 4, x_931); -if (lean_is_scalar(x_927)) { - x_934 = lean_alloc_ctor(0, 10, 3); -} else { - x_934 = x_927; -} -lean_ctor_set(x_934, 0, x_933); -lean_ctor_set(x_934, 1, x_915); -lean_ctor_set(x_934, 2, x_916); -lean_ctor_set(x_934, 3, x_917); -lean_ctor_set(x_934, 4, x_918); -lean_ctor_set(x_934, 5, x_919); -lean_ctor_set(x_934, 6, x_920); -lean_ctor_set(x_934, 7, x_921); -lean_ctor_set(x_934, 8, x_922); -lean_ctor_set(x_934, 9, x_923); -lean_ctor_set_uint8(x_934, sizeof(void*)*10, x_924); -lean_ctor_set_uint8(x_934, sizeof(void*)*10 + 1, x_925); -lean_ctor_set_uint8(x_934, sizeof(void*)*10 + 2, x_926); -x_935 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_904, x_934, x_911); -if (lean_obj_tag(x_935) == 0) -{ -lean_object* x_936; lean_object* x_937; lean_object* x_938; lean_object* x_939; lean_object* x_940; lean_object* x_941; lean_object* x_942; lean_object* x_943; -x_936 = lean_ctor_get(x_935, 0); -lean_inc(x_936); -x_937 = lean_ctor_get(x_935, 1); -lean_inc(x_937); -if (lean_is_exclusive(x_935)) { - lean_ctor_release(x_935, 0); - lean_ctor_release(x_935, 1); - x_938 = x_935; -} else { - lean_dec_ref(x_935); - x_938 = lean_box(0); -} -x_939 = l_Lean_mkFVar(x_905); -x_940 = l_Lean_mkOptionalNode___closed__2; -x_941 = lean_array_push(x_940, x_939); -x_942 = l_Lean_LocalContext_mkLambda(x_913, x_941, x_936); -lean_dec(x_936); -lean_dec(x_941); -if (lean_is_scalar(x_938)) { - x_943 = lean_alloc_ctor(0, 2, 0); -} else { - x_943 = x_938; -} -lean_ctor_set(x_943, 0, x_942); -lean_ctor_set(x_943, 1, x_937); -return x_943; -} -else -{ -lean_object* x_944; lean_object* x_945; lean_object* x_946; lean_object* x_947; -lean_dec(x_913); -lean_dec(x_905); -x_944 = lean_ctor_get(x_935, 0); -lean_inc(x_944); -x_945 = lean_ctor_get(x_935, 1); -lean_inc(x_945); -if (lean_is_exclusive(x_935)) { - lean_ctor_release(x_935, 0); - lean_ctor_release(x_935, 1); - x_946 = x_935; -} else { - lean_dec_ref(x_935); - x_946 = lean_box(0); -} -if (lean_is_scalar(x_946)) { - x_947 = lean_alloc_ctor(1, 2, 0); -} else { - x_947 = x_946; -} -lean_ctor_set(x_947, 0, x_944); -lean_ctor_set(x_947, 1, x_945); -return x_947; -} -} -else -{ -lean_object* x_948; lean_object* x_949; lean_object* x_950; lean_object* x_951; -lean_dec(x_905); -lean_dec(x_904); -lean_dec(x_2); -x_948 = lean_ctor_get(x_906, 0); -lean_inc(x_948); -x_949 = lean_ctor_get(x_906, 1); -lean_inc(x_949); -if (lean_is_exclusive(x_906)) { - lean_ctor_release(x_906, 0); - lean_ctor_release(x_906, 1); - x_950 = x_906; -} else { - lean_dec_ref(x_906); - x_950 = lean_box(0); -} -if (lean_is_scalar(x_950)) { - x_951 = lean_alloc_ctor(1, 2, 0); -} else { - x_951 = x_950; -} -lean_ctor_set(x_951, 0, x_948); -lean_ctor_set(x_951, 1, x_949); -return x_951; -} -} -} -} -else -{ -lean_object* x_955; lean_object* x_956; lean_object* x_957; lean_object* x_958; lean_object* x_959; lean_object* x_960; lean_object* x_961; lean_object* x_962; uint8_t x_963; -lean_free_object(x_25); -lean_free_object(x_24); -lean_free_object(x_15); -lean_dec(x_27); -lean_dec(x_1); -x_955 = l_Lean_Syntax_inhabited; -x_956 = lean_unsigned_to_nat(1u); -x_957 = lean_array_get(x_955, x_4, x_956); -x_958 = l_Lean_Syntax_getArgs(x_957); -lean_dec(x_957); -x_959 = lean_unsigned_to_nat(3u); -x_960 = lean_array_get(x_955, x_4, x_959); -lean_dec(x_4); -x_961 = lean_array_get_size(x_958); -x_962 = lean_unsigned_to_nat(0u); -x_963 = lean_nat_dec_eq(x_961, x_962); -lean_dec(x_961); -if (x_963 == 0) -{ -lean_object* x_964; lean_object* x_965; lean_object* x_966; lean_object* x_967; lean_object* x_968; uint8_t x_969; -x_964 = lean_array_get(x_955, x_958, x_962); -x_965 = lean_name_mk_string(x_26, x_38); -x_966 = lean_name_mk_string(x_965, x_744); -x_967 = lean_name_mk_string(x_966, x_754); -lean_inc(x_967); -x_968 = lean_name_mk_string(x_967, x_764); -lean_inc(x_964); -x_969 = l_Lean_Syntax_isOfKind(x_964, x_968); -lean_dec(x_968); -if (x_969 == 0) -{ -lean_object* x_970; lean_object* x_971; uint8_t x_972; -x_970 = l_Lean_mkHole___closed__1; -lean_inc(x_967); -x_971 = lean_name_mk_string(x_967, x_970); -lean_inc(x_964); -x_972 = l_Lean_Syntax_isOfKind(x_964, x_971); -lean_dec(x_971); -if (x_972 == 0) -{ -lean_object* x_973; lean_object* x_974; lean_object* x_975; lean_object* x_976; lean_object* x_977; lean_object* x_978; lean_object* x_979; -x_973 = l_Lean_Syntax_getArg(x_964, x_956); -lean_dec(x_964); -x_974 = l_Lean_Syntax_getArg(x_973, x_962); -x_975 = l_Lean_Syntax_getIdAt(x_974, x_962); -lean_dec(x_974); -x_976 = l_Lean_Syntax_getArg(x_973, x_956); -lean_dec(x_973); -x_977 = l_Lean_Syntax_getArg(x_976, x_962); -lean_dec(x_976); -x_978 = l_Lean_Syntax_getArg(x_977, x_956); -lean_dec(x_977); -lean_inc(x_2); -x_979 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_978, x_2, x_3); -if (lean_obj_tag(x_979) == 0) -{ -lean_object* x_980; lean_object* x_981; lean_object* x_982; lean_object* x_983; lean_object* x_984; uint8_t x_985; lean_object* x_986; lean_object* x_987; lean_object* x_988; lean_object* x_989; lean_object* x_990; lean_object* x_991; lean_object* x_992; lean_object* x_993; lean_object* x_994; lean_object* x_995; lean_object* x_996; lean_object* x_997; lean_object* x_998; lean_object* x_999; lean_object* x_1000; lean_object* x_1001; lean_object* x_1002; lean_object* x_1003; lean_object* x_1004; lean_object* x_1005; lean_object* x_1006; lean_object* x_1007; lean_object* x_1008; lean_object* x_1009; lean_object* x_1010; lean_object* x_1011; lean_object* x_1012; lean_object* x_1013; uint8_t x_1014; uint8_t x_1015; uint8_t x_1016; lean_object* x_1017; lean_object* x_1018; lean_object* x_1019; lean_object* x_1020; lean_object* x_1021; lean_object* x_1022; lean_object* x_1023; lean_object* x_1024; lean_object* x_1025; -x_980 = lean_ctor_get(x_979, 0); -lean_inc(x_980); -x_981 = lean_ctor_get(x_979, 1); -lean_inc(x_981); -lean_dec(x_979); -x_982 = l_Lean_Elab_Term_getLCtx(x_2, x_981); -x_983 = lean_ctor_get(x_982, 0); -lean_inc(x_983); -x_984 = lean_ctor_get(x_982, 1); -lean_inc(x_984); -lean_dec(x_982); -x_985 = 0; -lean_inc_n(x_975, 2); -x_986 = lean_local_ctx_mk_local_decl(x_983, x_975, x_975, x_980, x_985); -x_987 = l_Array_eraseIdx___rarg(x_958, x_962); -x_988 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_984); -x_989 = lean_ctor_get(x_988, 1); -lean_inc(x_989); -lean_dec(x_988); -x_990 = l_Lean_Elab_Term_getMainModule___rarg(x_989); -x_991 = lean_ctor_get(x_990, 1); +lean_object* x_990; lean_object* x_991; lean_object* x_992; lean_object* x_993; +x_990 = lean_ctor_get(x_989, 2); +lean_inc(x_990); +x_991 = lean_ctor_get(x_989, 3); lean_inc(x_991); -lean_dec(x_990); -x_992 = lean_name_mk_string(x_967, x_766); -x_993 = l_Lean_nullKind___closed__1; -x_994 = lean_name_mk_string(x_26, x_993); -x_995 = l_Array_empty___closed__1; -x_996 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_987, x_987, x_962, x_995); -lean_dec(x_987); -x_997 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_997, 0, x_994); -lean_ctor_set(x_997, 1, x_996); -x_998 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; -x_999 = lean_array_push(x_998, x_997); -x_1000 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; -x_1001 = lean_array_push(x_999, x_1000); -x_1002 = lean_array_push(x_1001, x_960); -x_1003 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1003, 0, x_992); -lean_ctor_set(x_1003, 1, x_1002); -x_1004 = lean_ctor_get(x_2, 0); -lean_inc(x_1004); -x_1005 = lean_ctor_get(x_2, 1); -lean_inc(x_1005); -x_1006 = lean_ctor_get(x_2, 2); -lean_inc(x_1006); -x_1007 = lean_ctor_get(x_2, 3); -lean_inc(x_1007); -x_1008 = lean_ctor_get(x_2, 4); -lean_inc(x_1008); -x_1009 = lean_ctor_get(x_2, 5); -lean_inc(x_1009); -x_1010 = lean_ctor_get(x_2, 6); -lean_inc(x_1010); -x_1011 = lean_ctor_get(x_2, 7); -lean_inc(x_1011); -x_1012 = lean_ctor_get(x_2, 8); -lean_inc(x_1012); -x_1013 = lean_ctor_get(x_2, 9); -lean_inc(x_1013); -x_1014 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_1015 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); -x_1016 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 2); -if (lean_is_exclusive(x_2)) { - lean_ctor_release(x_2, 0); - lean_ctor_release(x_2, 1); - lean_ctor_release(x_2, 2); - lean_ctor_release(x_2, 3); - lean_ctor_release(x_2, 4); - lean_ctor_release(x_2, 5); - lean_ctor_release(x_2, 6); - lean_ctor_release(x_2, 7); - lean_ctor_release(x_2, 8); - lean_ctor_release(x_2, 9); - x_1017 = x_2; -} else { - lean_dec_ref(x_2); - x_1017 = lean_box(0); -} -x_1018 = lean_ctor_get(x_1004, 0); -lean_inc(x_1018); -x_1019 = lean_ctor_get(x_1004, 2); -lean_inc(x_1019); -x_1020 = lean_ctor_get(x_1004, 3); -lean_inc(x_1020); -x_1021 = lean_ctor_get(x_1004, 4); -lean_inc(x_1021); -if (lean_is_exclusive(x_1004)) { - lean_ctor_release(x_1004, 0); - lean_ctor_release(x_1004, 1); - lean_ctor_release(x_1004, 2); - lean_ctor_release(x_1004, 3); - lean_ctor_release(x_1004, 4); - x_1022 = x_1004; -} else { - lean_dec_ref(x_1004); - x_1022 = lean_box(0); -} -lean_inc(x_986); -if (lean_is_scalar(x_1022)) { - x_1023 = lean_alloc_ctor(0, 5, 0); -} else { - x_1023 = x_1022; -} -lean_ctor_set(x_1023, 0, x_1018); -lean_ctor_set(x_1023, 1, x_986); -lean_ctor_set(x_1023, 2, x_1019); -lean_ctor_set(x_1023, 3, x_1020); -lean_ctor_set(x_1023, 4, x_1021); -if (lean_is_scalar(x_1017)) { - x_1024 = lean_alloc_ctor(0, 10, 3); -} else { - x_1024 = x_1017; -} -lean_ctor_set(x_1024, 0, x_1023); -lean_ctor_set(x_1024, 1, x_1005); -lean_ctor_set(x_1024, 2, x_1006); -lean_ctor_set(x_1024, 3, x_1007); -lean_ctor_set(x_1024, 4, x_1008); -lean_ctor_set(x_1024, 5, x_1009); -lean_ctor_set(x_1024, 6, x_1010); -lean_ctor_set(x_1024, 7, x_1011); -lean_ctor_set(x_1024, 8, x_1012); -lean_ctor_set(x_1024, 9, x_1013); -lean_ctor_set_uint8(x_1024, sizeof(void*)*10, x_1014); -lean_ctor_set_uint8(x_1024, sizeof(void*)*10 + 1, x_1015); -lean_ctor_set_uint8(x_1024, sizeof(void*)*10 + 2, x_1016); -x_1025 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_1003, x_1024, x_991); -if (lean_obj_tag(x_1025) == 0) -{ -lean_object* x_1026; lean_object* x_1027; lean_object* x_1028; lean_object* x_1029; lean_object* x_1030; lean_object* x_1031; lean_object* x_1032; lean_object* x_1033; -x_1026 = lean_ctor_get(x_1025, 0); -lean_inc(x_1026); -x_1027 = lean_ctor_get(x_1025, 1); -lean_inc(x_1027); -if (lean_is_exclusive(x_1025)) { - lean_ctor_release(x_1025, 0); - lean_ctor_release(x_1025, 1); - x_1028 = x_1025; -} else { - lean_dec_ref(x_1025); - x_1028 = lean_box(0); -} -x_1029 = l_Lean_mkFVar(x_975); -x_1030 = l_Lean_mkOptionalNode___closed__2; -x_1031 = lean_array_push(x_1030, x_1029); -x_1032 = l_Lean_LocalContext_mkLambda(x_986, x_1031, x_1026); -lean_dec(x_1026); -lean_dec(x_1031); -if (lean_is_scalar(x_1028)) { - x_1033 = lean_alloc_ctor(0, 2, 0); -} else { - x_1033 = x_1028; -} -lean_ctor_set(x_1033, 0, x_1032); -lean_ctor_set(x_1033, 1, x_1027); -return x_1033; -} -else -{ -lean_object* x_1034; lean_object* x_1035; lean_object* x_1036; lean_object* x_1037; -lean_dec(x_986); -lean_dec(x_975); -x_1034 = lean_ctor_get(x_1025, 0); -lean_inc(x_1034); -x_1035 = lean_ctor_get(x_1025, 1); -lean_inc(x_1035); -if (lean_is_exclusive(x_1025)) { - lean_ctor_release(x_1025, 0); - lean_ctor_release(x_1025, 1); - x_1036 = x_1025; -} else { - lean_dec_ref(x_1025); - x_1036 = lean_box(0); -} -if (lean_is_scalar(x_1036)) { - x_1037 = lean_alloc_ctor(1, 2, 0); -} else { - x_1037 = x_1036; -} -lean_ctor_set(x_1037, 0, x_1034); -lean_ctor_set(x_1037, 1, x_1035); -return x_1037; -} -} -else -{ -lean_object* x_1038; lean_object* x_1039; lean_object* x_1040; lean_object* x_1041; -lean_dec(x_975); -lean_dec(x_967); -lean_dec(x_960); -lean_dec(x_958); -lean_dec(x_2); -x_1038 = lean_ctor_get(x_979, 0); -lean_inc(x_1038); -x_1039 = lean_ctor_get(x_979, 1); -lean_inc(x_1039); -if (lean_is_exclusive(x_979)) { - lean_ctor_release(x_979, 0); - lean_ctor_release(x_979, 1); - x_1040 = x_979; -} else { - lean_dec_ref(x_979); - x_1040 = lean_box(0); -} -if (lean_is_scalar(x_1040)) { - x_1041 = lean_alloc_ctor(1, 2, 0); -} else { - x_1041 = x_1040; -} -lean_ctor_set(x_1041, 0, x_1038); -lean_ctor_set(x_1041, 1, x_1039); -return x_1041; -} -} -else -{ -lean_object* x_1042; lean_object* x_1043; lean_object* x_1044; lean_object* x_1045; lean_object* x_1046; lean_object* x_1047; uint8_t x_1048; lean_object* x_1049; lean_object* x_1050; lean_object* x_1051; lean_object* x_1052; lean_object* x_1053; lean_object* x_1054; lean_object* x_1055; lean_object* x_1056; lean_object* x_1057; lean_object* x_1058; lean_object* x_1059; lean_object* x_1060; lean_object* x_1061; lean_object* x_1062; lean_object* x_1063; lean_object* x_1064; lean_object* x_1065; lean_object* x_1066; lean_object* x_1067; lean_object* x_1068; lean_object* x_1069; lean_object* x_1070; lean_object* x_1071; lean_object* x_1072; lean_object* x_1073; lean_object* x_1074; lean_object* x_1075; lean_object* x_1076; uint8_t x_1077; uint8_t x_1078; uint8_t x_1079; lean_object* x_1080; lean_object* x_1081; lean_object* x_1082; lean_object* x_1083; lean_object* x_1084; lean_object* x_1085; lean_object* x_1086; lean_object* x_1087; lean_object* x_1088; -lean_dec(x_964); -x_1042 = l_Lean_Meta_rewriteCore___lambda__1___closed__4; -x_1043 = lean_name_mk_string(x_26, x_1042); -x_1044 = l_Lean_Elab_Term_getLCtx(x_2, x_3); -x_1045 = lean_ctor_get(x_1044, 0); -lean_inc(x_1045); -x_1046 = lean_ctor_get(x_1044, 1); -lean_inc(x_1046); -lean_dec(x_1044); -x_1047 = l___private_Lean_Elab_Quotation_9__exprPlaceholder; -x_1048 = 0; -lean_inc_n(x_1043, 2); -x_1049 = lean_local_ctx_mk_local_decl(x_1045, x_1043, x_1043, x_1047, x_1048); -x_1050 = l_Array_eraseIdx___rarg(x_958, x_962); -x_1051 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_1046); -x_1052 = lean_ctor_get(x_1051, 1); -lean_inc(x_1052); -lean_dec(x_1051); -x_1053 = l_Lean_Elab_Term_getMainModule___rarg(x_1052); -x_1054 = lean_ctor_get(x_1053, 1); -lean_inc(x_1054); -lean_dec(x_1053); -x_1055 = lean_name_mk_string(x_967, x_766); -x_1056 = l_Lean_nullKind___closed__1; -x_1057 = lean_name_mk_string(x_26, x_1056); -x_1058 = l_Array_empty___closed__1; -x_1059 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1050, x_1050, x_962, x_1058); -lean_dec(x_1050); -x_1060 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1060, 0, x_1057); -lean_ctor_set(x_1060, 1, x_1059); -x_1061 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; -x_1062 = lean_array_push(x_1061, x_1060); -x_1063 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; -x_1064 = lean_array_push(x_1062, x_1063); -x_1065 = lean_array_push(x_1064, x_960); -x_1066 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1066, 0, x_1055); -lean_ctor_set(x_1066, 1, x_1065); -x_1067 = lean_ctor_get(x_2, 0); -lean_inc(x_1067); -x_1068 = lean_ctor_get(x_2, 1); -lean_inc(x_1068); -x_1069 = lean_ctor_get(x_2, 2); -lean_inc(x_1069); -x_1070 = lean_ctor_get(x_2, 3); -lean_inc(x_1070); -x_1071 = lean_ctor_get(x_2, 4); -lean_inc(x_1071); -x_1072 = lean_ctor_get(x_2, 5); -lean_inc(x_1072); -x_1073 = lean_ctor_get(x_2, 6); -lean_inc(x_1073); -x_1074 = lean_ctor_get(x_2, 7); -lean_inc(x_1074); -x_1075 = lean_ctor_get(x_2, 8); -lean_inc(x_1075); -x_1076 = lean_ctor_get(x_2, 9); -lean_inc(x_1076); -x_1077 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_1078 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); -x_1079 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 2); -if (lean_is_exclusive(x_2)) { - lean_ctor_release(x_2, 0); - lean_ctor_release(x_2, 1); - lean_ctor_release(x_2, 2); - lean_ctor_release(x_2, 3); - lean_ctor_release(x_2, 4); - lean_ctor_release(x_2, 5); - lean_ctor_release(x_2, 6); - lean_ctor_release(x_2, 7); - lean_ctor_release(x_2, 8); - lean_ctor_release(x_2, 9); - x_1080 = x_2; -} else { - lean_dec_ref(x_2); - x_1080 = lean_box(0); -} -x_1081 = lean_ctor_get(x_1067, 0); -lean_inc(x_1081); -x_1082 = lean_ctor_get(x_1067, 2); -lean_inc(x_1082); -x_1083 = lean_ctor_get(x_1067, 3); -lean_inc(x_1083); -x_1084 = lean_ctor_get(x_1067, 4); -lean_inc(x_1084); -if (lean_is_exclusive(x_1067)) { - lean_ctor_release(x_1067, 0); - lean_ctor_release(x_1067, 1); - lean_ctor_release(x_1067, 2); - lean_ctor_release(x_1067, 3); - lean_ctor_release(x_1067, 4); - x_1085 = x_1067; -} else { - lean_dec_ref(x_1067); - x_1085 = lean_box(0); -} -lean_inc(x_1049); -if (lean_is_scalar(x_1085)) { - x_1086 = lean_alloc_ctor(0, 5, 0); -} else { - x_1086 = x_1085; -} -lean_ctor_set(x_1086, 0, x_1081); -lean_ctor_set(x_1086, 1, x_1049); -lean_ctor_set(x_1086, 2, x_1082); -lean_ctor_set(x_1086, 3, x_1083); -lean_ctor_set(x_1086, 4, x_1084); -if (lean_is_scalar(x_1080)) { - x_1087 = lean_alloc_ctor(0, 10, 3); -} else { - x_1087 = x_1080; -} -lean_ctor_set(x_1087, 0, x_1086); -lean_ctor_set(x_1087, 1, x_1068); -lean_ctor_set(x_1087, 2, x_1069); -lean_ctor_set(x_1087, 3, x_1070); -lean_ctor_set(x_1087, 4, x_1071); -lean_ctor_set(x_1087, 5, x_1072); -lean_ctor_set(x_1087, 6, x_1073); -lean_ctor_set(x_1087, 7, x_1074); -lean_ctor_set(x_1087, 8, x_1075); -lean_ctor_set(x_1087, 9, x_1076); -lean_ctor_set_uint8(x_1087, sizeof(void*)*10, x_1077); -lean_ctor_set_uint8(x_1087, sizeof(void*)*10 + 1, x_1078); -lean_ctor_set_uint8(x_1087, sizeof(void*)*10 + 2, x_1079); -x_1088 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_1066, x_1087, x_1054); -if (lean_obj_tag(x_1088) == 0) -{ -lean_object* x_1089; lean_object* x_1090; lean_object* x_1091; lean_object* x_1092; lean_object* x_1093; lean_object* x_1094; lean_object* x_1095; lean_object* x_1096; -x_1089 = lean_ctor_get(x_1088, 0); -lean_inc(x_1089); -x_1090 = lean_ctor_get(x_1088, 1); -lean_inc(x_1090); -if (lean_is_exclusive(x_1088)) { - lean_ctor_release(x_1088, 0); - lean_ctor_release(x_1088, 1); - x_1091 = x_1088; -} else { - lean_dec_ref(x_1088); - x_1091 = lean_box(0); -} -x_1092 = l_Lean_mkFVar(x_1043); -x_1093 = l_Lean_mkOptionalNode___closed__2; -x_1094 = lean_array_push(x_1093, x_1092); -x_1095 = l_Lean_LocalContext_mkLambda(x_1049, x_1094, x_1089); -lean_dec(x_1089); -lean_dec(x_1094); -if (lean_is_scalar(x_1091)) { - x_1096 = lean_alloc_ctor(0, 2, 0); -} else { - x_1096 = x_1091; -} -lean_ctor_set(x_1096, 0, x_1095); -lean_ctor_set(x_1096, 1, x_1090); -return x_1096; -} -else -{ -lean_object* x_1097; lean_object* x_1098; lean_object* x_1099; lean_object* x_1100; -lean_dec(x_1049); -lean_dec(x_1043); -x_1097 = lean_ctor_get(x_1088, 0); -lean_inc(x_1097); -x_1098 = lean_ctor_get(x_1088, 1); -lean_inc(x_1098); -if (lean_is_exclusive(x_1088)) { - lean_ctor_release(x_1088, 0); - lean_ctor_release(x_1088, 1); - x_1099 = x_1088; -} else { - lean_dec_ref(x_1088); - x_1099 = lean_box(0); -} -if (lean_is_scalar(x_1099)) { - x_1100 = lean_alloc_ctor(1, 2, 0); -} else { - x_1100 = x_1099; -} -lean_ctor_set(x_1100, 0, x_1097); -lean_ctor_set(x_1100, 1, x_1098); -return x_1100; -} -} -} -else -{ -lean_object* x_1101; lean_object* x_1102; lean_object* x_1103; lean_object* x_1104; lean_object* x_1105; uint8_t x_1106; lean_object* x_1107; lean_object* x_1108; lean_object* x_1109; lean_object* x_1110; lean_object* x_1111; lean_object* x_1112; lean_object* x_1113; lean_object* x_1114; lean_object* x_1115; lean_object* x_1116; lean_object* x_1117; lean_object* x_1118; lean_object* x_1119; lean_object* x_1120; lean_object* x_1121; lean_object* x_1122; lean_object* x_1123; lean_object* x_1124; lean_object* x_1125; lean_object* x_1126; lean_object* x_1127; lean_object* x_1128; lean_object* x_1129; lean_object* x_1130; lean_object* x_1131; lean_object* x_1132; lean_object* x_1133; lean_object* x_1134; uint8_t x_1135; uint8_t x_1136; uint8_t x_1137; lean_object* x_1138; lean_object* x_1139; lean_object* x_1140; lean_object* x_1141; lean_object* x_1142; lean_object* x_1143; lean_object* x_1144; lean_object* x_1145; lean_object* x_1146; -x_1101 = l_Lean_Syntax_getIdAt(x_964, x_962); -lean_dec(x_964); -x_1102 = l_Lean_Elab_Term_getLCtx(x_2, x_3); -x_1103 = lean_ctor_get(x_1102, 0); -lean_inc(x_1103); -x_1104 = lean_ctor_get(x_1102, 1); -lean_inc(x_1104); -lean_dec(x_1102); -x_1105 = l___private_Lean_Elab_Quotation_9__exprPlaceholder; -x_1106 = 0; -lean_inc_n(x_1101, 2); -x_1107 = lean_local_ctx_mk_local_decl(x_1103, x_1101, x_1101, x_1105, x_1106); -x_1108 = l_Array_eraseIdx___rarg(x_958, x_962); -x_1109 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_1104); -x_1110 = lean_ctor_get(x_1109, 1); -lean_inc(x_1110); -lean_dec(x_1109); -x_1111 = l_Lean_Elab_Term_getMainModule___rarg(x_1110); -x_1112 = lean_ctor_get(x_1111, 1); -lean_inc(x_1112); -lean_dec(x_1111); -x_1113 = lean_name_mk_string(x_967, x_766); -x_1114 = l_Lean_nullKind___closed__1; -x_1115 = lean_name_mk_string(x_26, x_1114); -x_1116 = l_Array_empty___closed__1; -x_1117 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1108, x_1108, x_962, x_1116); -lean_dec(x_1108); -x_1118 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1118, 0, x_1115); -lean_ctor_set(x_1118, 1, x_1117); -x_1119 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; -x_1120 = lean_array_push(x_1119, x_1118); -x_1121 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; -x_1122 = lean_array_push(x_1120, x_1121); -x_1123 = lean_array_push(x_1122, x_960); -x_1124 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1124, 0, x_1113); -lean_ctor_set(x_1124, 1, x_1123); -x_1125 = lean_ctor_get(x_2, 0); -lean_inc(x_1125); -x_1126 = lean_ctor_get(x_2, 1); -lean_inc(x_1126); -x_1127 = lean_ctor_get(x_2, 2); -lean_inc(x_1127); -x_1128 = lean_ctor_get(x_2, 3); -lean_inc(x_1128); -x_1129 = lean_ctor_get(x_2, 4); -lean_inc(x_1129); -x_1130 = lean_ctor_get(x_2, 5); -lean_inc(x_1130); -x_1131 = lean_ctor_get(x_2, 6); -lean_inc(x_1131); -x_1132 = lean_ctor_get(x_2, 7); -lean_inc(x_1132); -x_1133 = lean_ctor_get(x_2, 8); -lean_inc(x_1133); -x_1134 = lean_ctor_get(x_2, 9); -lean_inc(x_1134); -x_1135 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_1136 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); -x_1137 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 2); -if (lean_is_exclusive(x_2)) { - lean_ctor_release(x_2, 0); - lean_ctor_release(x_2, 1); - lean_ctor_release(x_2, 2); - lean_ctor_release(x_2, 3); - lean_ctor_release(x_2, 4); - lean_ctor_release(x_2, 5); - lean_ctor_release(x_2, 6); - lean_ctor_release(x_2, 7); - lean_ctor_release(x_2, 8); - lean_ctor_release(x_2, 9); - x_1138 = x_2; -} else { - lean_dec_ref(x_2); - x_1138 = lean_box(0); -} -x_1139 = lean_ctor_get(x_1125, 0); -lean_inc(x_1139); -x_1140 = lean_ctor_get(x_1125, 2); -lean_inc(x_1140); -x_1141 = lean_ctor_get(x_1125, 3); -lean_inc(x_1141); -x_1142 = lean_ctor_get(x_1125, 4); -lean_inc(x_1142); -if (lean_is_exclusive(x_1125)) { - lean_ctor_release(x_1125, 0); - lean_ctor_release(x_1125, 1); - lean_ctor_release(x_1125, 2); - lean_ctor_release(x_1125, 3); - lean_ctor_release(x_1125, 4); - x_1143 = x_1125; -} else { - lean_dec_ref(x_1125); - x_1143 = lean_box(0); -} -lean_inc(x_1107); -if (lean_is_scalar(x_1143)) { - x_1144 = lean_alloc_ctor(0, 5, 0); -} else { - x_1144 = x_1143; -} -lean_ctor_set(x_1144, 0, x_1139); -lean_ctor_set(x_1144, 1, x_1107); -lean_ctor_set(x_1144, 2, x_1140); -lean_ctor_set(x_1144, 3, x_1141); -lean_ctor_set(x_1144, 4, x_1142); -if (lean_is_scalar(x_1138)) { - x_1145 = lean_alloc_ctor(0, 10, 3); -} else { - x_1145 = x_1138; -} -lean_ctor_set(x_1145, 0, x_1144); -lean_ctor_set(x_1145, 1, x_1126); -lean_ctor_set(x_1145, 2, x_1127); -lean_ctor_set(x_1145, 3, x_1128); -lean_ctor_set(x_1145, 4, x_1129); -lean_ctor_set(x_1145, 5, x_1130); -lean_ctor_set(x_1145, 6, x_1131); -lean_ctor_set(x_1145, 7, x_1132); -lean_ctor_set(x_1145, 8, x_1133); -lean_ctor_set(x_1145, 9, x_1134); -lean_ctor_set_uint8(x_1145, sizeof(void*)*10, x_1135); -lean_ctor_set_uint8(x_1145, sizeof(void*)*10 + 1, x_1136); -lean_ctor_set_uint8(x_1145, sizeof(void*)*10 + 2, x_1137); -x_1146 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_1124, x_1145, x_1112); -if (lean_obj_tag(x_1146) == 0) -{ -lean_object* x_1147; lean_object* x_1148; lean_object* x_1149; lean_object* x_1150; lean_object* x_1151; lean_object* x_1152; lean_object* x_1153; lean_object* x_1154; -x_1147 = lean_ctor_get(x_1146, 0); -lean_inc(x_1147); -x_1148 = lean_ctor_get(x_1146, 1); -lean_inc(x_1148); -if (lean_is_exclusive(x_1146)) { - lean_ctor_release(x_1146, 0); - lean_ctor_release(x_1146, 1); - x_1149 = x_1146; -} else { - lean_dec_ref(x_1146); - x_1149 = lean_box(0); -} -x_1150 = l_Lean_mkFVar(x_1101); -x_1151 = l_Lean_mkOptionalNode___closed__2; -x_1152 = lean_array_push(x_1151, x_1150); -x_1153 = l_Lean_LocalContext_mkLambda(x_1107, x_1152, x_1147); -lean_dec(x_1147); -lean_dec(x_1152); -if (lean_is_scalar(x_1149)) { - x_1154 = lean_alloc_ctor(0, 2, 0); -} else { - x_1154 = x_1149; -} -lean_ctor_set(x_1154, 0, x_1153); -lean_ctor_set(x_1154, 1, x_1148); -return x_1154; -} -else -{ -lean_object* x_1155; lean_object* x_1156; lean_object* x_1157; lean_object* x_1158; -lean_dec(x_1107); -lean_dec(x_1101); -x_1155 = lean_ctor_get(x_1146, 0); -lean_inc(x_1155); -x_1156 = lean_ctor_get(x_1146, 1); -lean_inc(x_1156); -if (lean_is_exclusive(x_1146)) { - lean_ctor_release(x_1146, 0); - lean_ctor_release(x_1146, 1); - x_1157 = x_1146; -} else { - lean_dec_ref(x_1146); - x_1157 = lean_box(0); -} -if (lean_is_scalar(x_1157)) { - x_1158 = lean_alloc_ctor(1, 2, 0); -} else { - x_1158 = x_1157; -} -lean_ctor_set(x_1158, 0, x_1155); -lean_ctor_set(x_1158, 1, x_1156); -return x_1158; -} -} -} -else -{ -lean_dec(x_958); -x_1 = x_960; -goto _start; -} -} -} -else -{ -lean_object* x_1160; lean_object* x_1161; lean_object* x_1162; -lean_free_object(x_25); -lean_free_object(x_24); -lean_free_object(x_15); -lean_dec(x_27); -x_1160 = l_Lean_Syntax_inhabited; -x_1161 = lean_unsigned_to_nat(0u); -x_1162 = lean_array_get(x_1160, x_4, x_1161); -lean_dec(x_4); -if (lean_obj_tag(x_1162) == 3) -{ -lean_object* x_1163; lean_object* x_1164; lean_object* x_1165; lean_object* x_1166; -x_1163 = lean_ctor_get(x_1162, 2); -lean_inc(x_1163); -x_1164 = lean_ctor_get(x_1162, 3); -lean_inc(x_1164); -lean_dec(x_1162); -x_1165 = lean_box(0); +lean_dec(x_989); +x_992 = lean_box(0); lean_inc(x_2); -x_1166 = l_Lean_Elab_Term_resolveName(x_1, x_1163, x_1164, x_1165, x_2, x_3); -lean_dec(x_1); -if (lean_obj_tag(x_1166) == 0) +x_993 = l_Lean_Elab_Term_resolveName(x_990, x_991, x_992, x_2, x_3); +if (lean_obj_tag(x_993) == 0) { -lean_object* x_1167; -x_1167 = lean_ctor_get(x_1166, 0); -lean_inc(x_1167); -if (lean_obj_tag(x_1167) == 0) +lean_object* x_994; +x_994 = lean_ctor_get(x_993, 0); +lean_inc(x_994); +if (lean_obj_tag(x_994) == 0) { -lean_object* x_1168; lean_object* x_1169; lean_object* x_1170; lean_object* x_1171; -x_1168 = lean_ctor_get(x_1166, 1); -lean_inc(x_1168); -lean_dec(x_1166); -x_1169 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; -x_1170 = l_unreachable_x21___rarg(x_1169); -x_1171 = lean_apply_2(x_1170, x_2, x_1168); -return x_1171; +lean_object* x_995; lean_object* x_996; lean_object* x_997; lean_object* x_998; +x_995 = lean_ctor_get(x_993, 1); +lean_inc(x_995); +lean_dec(x_993); +x_996 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; +x_997 = l_unreachable_x21___rarg(x_996); +x_998 = lean_apply_2(x_997, x_2, x_995); +return x_998; } else { -lean_object* x_1172; lean_object* x_1173; +lean_object* x_999; lean_object* x_1000; lean_dec(x_2); -x_1172 = lean_ctor_get(x_1167, 0); -lean_inc(x_1172); -lean_dec(x_1167); -x_1173 = lean_ctor_get(x_1172, 0); -lean_inc(x_1173); -switch (lean_obj_tag(x_1173)) { +x_999 = lean_ctor_get(x_994, 0); +lean_inc(x_999); +lean_dec(x_994); +x_1000 = lean_ctor_get(x_999, 0); +lean_inc(x_1000); +switch (lean_obj_tag(x_1000)) { case 0: { -lean_object* x_1174; lean_object* x_1175; lean_object* x_1176; lean_object* x_1177; lean_object* x_1178; -x_1174 = lean_ctor_get(x_1166, 1); -lean_inc(x_1174); -if (lean_is_exclusive(x_1166)) { - lean_ctor_release(x_1166, 0); - lean_ctor_release(x_1166, 1); - x_1175 = x_1166; +lean_object* x_1001; lean_object* x_1002; lean_object* x_1003; lean_object* x_1004; lean_object* x_1005; +x_1001 = lean_ctor_get(x_993, 1); +lean_inc(x_1001); +if (lean_is_exclusive(x_993)) { + lean_ctor_release(x_993, 0); + lean_ctor_release(x_993, 1); + x_1002 = x_993; } else { - lean_dec_ref(x_1166); - x_1175 = lean_box(0); + lean_dec_ref(x_993); + x_1002 = lean_box(0); } -x_1176 = lean_ctor_get(x_1172, 1); -lean_inc(x_1176); -lean_dec(x_1172); -x_1177 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__2(x_26, x_1173, x_1176); -if (lean_is_scalar(x_1175)) { - x_1178 = lean_alloc_ctor(0, 2, 0); +x_1003 = lean_ctor_get(x_999, 1); +lean_inc(x_1003); +lean_dec(x_999); +x_1004 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__2(x_41, x_1000, x_1003); +if (lean_is_scalar(x_1002)) { + x_1005 = lean_alloc_ctor(0, 2, 0); } else { - x_1178 = x_1175; + x_1005 = x_1002; } -lean_ctor_set(x_1178, 0, x_1177); -lean_ctor_set(x_1178, 1, x_1174); -return x_1178; +lean_ctor_set(x_1005, 0, x_1004); +lean_ctor_set(x_1005, 1, x_1001); +return x_1005; } case 1: { -lean_object* x_1179; lean_object* x_1180; lean_object* x_1181; lean_object* x_1182; lean_object* x_1183; -x_1179 = lean_ctor_get(x_1166, 1); -lean_inc(x_1179); -if (lean_is_exclusive(x_1166)) { - lean_ctor_release(x_1166, 0); - lean_ctor_release(x_1166, 1); - x_1180 = x_1166; +lean_object* x_1006; lean_object* x_1007; lean_object* x_1008; lean_object* x_1009; lean_object* x_1010; +x_1006 = lean_ctor_get(x_993, 1); +lean_inc(x_1006); +if (lean_is_exclusive(x_993)) { + lean_ctor_release(x_993, 0); + lean_ctor_release(x_993, 1); + x_1007 = x_993; } else { - lean_dec_ref(x_1166); - x_1180 = lean_box(0); + lean_dec_ref(x_993); + x_1007 = lean_box(0); } -x_1181 = lean_ctor_get(x_1172, 1); -lean_inc(x_1181); -lean_dec(x_1172); -x_1182 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__3(x_26, x_1173, x_1181); -if (lean_is_scalar(x_1180)) { - x_1183 = lean_alloc_ctor(0, 2, 0); +x_1008 = lean_ctor_get(x_999, 1); +lean_inc(x_1008); +lean_dec(x_999); +x_1009 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__3(x_41, x_1000, x_1008); +if (lean_is_scalar(x_1007)) { + x_1010 = lean_alloc_ctor(0, 2, 0); } else { - x_1183 = x_1180; + x_1010 = x_1007; } -lean_ctor_set(x_1183, 0, x_1182); -lean_ctor_set(x_1183, 1, x_1179); -return x_1183; +lean_ctor_set(x_1010, 0, x_1009); +lean_ctor_set(x_1010, 1, x_1006); +return x_1010; } case 2: { -lean_object* x_1184; lean_object* x_1185; lean_object* x_1186; lean_object* x_1187; lean_object* x_1188; -x_1184 = lean_ctor_get(x_1166, 1); -lean_inc(x_1184); -if (lean_is_exclusive(x_1166)) { - lean_ctor_release(x_1166, 0); - lean_ctor_release(x_1166, 1); - x_1185 = x_1166; +lean_object* x_1011; lean_object* x_1012; lean_object* x_1013; lean_object* x_1014; lean_object* x_1015; +x_1011 = lean_ctor_get(x_993, 1); +lean_inc(x_1011); +if (lean_is_exclusive(x_993)) { + lean_ctor_release(x_993, 0); + lean_ctor_release(x_993, 1); + x_1012 = x_993; } else { - lean_dec_ref(x_1166); - x_1185 = lean_box(0); + lean_dec_ref(x_993); + x_1012 = lean_box(0); } -x_1186 = lean_ctor_get(x_1172, 1); -lean_inc(x_1186); -lean_dec(x_1172); -x_1187 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__4(x_26, x_1173, x_1186); -if (lean_is_scalar(x_1185)) { - x_1188 = lean_alloc_ctor(0, 2, 0); +x_1013 = lean_ctor_get(x_999, 1); +lean_inc(x_1013); +lean_dec(x_999); +x_1014 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__4(x_41, x_1000, x_1013); +if (lean_is_scalar(x_1012)) { + x_1015 = lean_alloc_ctor(0, 2, 0); } else { - x_1188 = x_1185; + x_1015 = x_1012; } -lean_ctor_set(x_1188, 0, x_1187); -lean_ctor_set(x_1188, 1, x_1184); -return x_1188; +lean_ctor_set(x_1015, 0, x_1014); +lean_ctor_set(x_1015, 1, x_1011); +return x_1015; } case 3: { -lean_object* x_1189; lean_object* x_1190; lean_object* x_1191; lean_object* x_1192; lean_object* x_1193; -x_1189 = lean_ctor_get(x_1166, 1); -lean_inc(x_1189); -if (lean_is_exclusive(x_1166)) { - lean_ctor_release(x_1166, 0); - lean_ctor_release(x_1166, 1); - x_1190 = x_1166; +lean_object* x_1016; lean_object* x_1017; lean_object* x_1018; lean_object* x_1019; lean_object* x_1020; +x_1016 = lean_ctor_get(x_993, 1); +lean_inc(x_1016); +if (lean_is_exclusive(x_993)) { + lean_ctor_release(x_993, 0); + lean_ctor_release(x_993, 1); + x_1017 = x_993; } else { - lean_dec_ref(x_1166); - x_1190 = lean_box(0); + lean_dec_ref(x_993); + x_1017 = lean_box(0); } -x_1191 = lean_ctor_get(x_1172, 1); -lean_inc(x_1191); -lean_dec(x_1172); -x_1192 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__5(x_26, x_1173, x_1191); -if (lean_is_scalar(x_1190)) { - x_1193 = lean_alloc_ctor(0, 2, 0); +x_1018 = lean_ctor_get(x_999, 1); +lean_inc(x_1018); +lean_dec(x_999); +x_1019 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__5(x_41, x_1000, x_1018); +if (lean_is_scalar(x_1017)) { + x_1020 = lean_alloc_ctor(0, 2, 0); } else { - x_1193 = x_1190; + x_1020 = x_1017; } -lean_ctor_set(x_1193, 0, x_1192); -lean_ctor_set(x_1193, 1, x_1189); -return x_1193; +lean_ctor_set(x_1020, 0, x_1019); +lean_ctor_set(x_1020, 1, x_1016); +return x_1020; } case 4: { -lean_object* x_1194; lean_object* x_1195; lean_object* x_1196; lean_object* x_1197; lean_object* x_1198; lean_object* x_1199; lean_object* x_1200; -x_1194 = lean_ctor_get(x_1166, 1); -lean_inc(x_1194); -if (lean_is_exclusive(x_1166)) { - lean_ctor_release(x_1166, 0); - lean_ctor_release(x_1166, 1); - x_1195 = x_1166; +lean_object* x_1021; lean_object* x_1022; lean_object* x_1023; lean_object* x_1024; lean_object* x_1025; lean_object* x_1026; lean_object* x_1027; +x_1021 = lean_ctor_get(x_993, 1); +lean_inc(x_1021); +if (lean_is_exclusive(x_993)) { + lean_ctor_release(x_993, 0); + lean_ctor_release(x_993, 1); + x_1022 = x_993; } else { - lean_dec_ref(x_1166); - x_1195 = lean_box(0); + lean_dec_ref(x_993); + x_1022 = lean_box(0); } -x_1196 = lean_ctor_get(x_1172, 1); -lean_inc(x_1196); -lean_dec(x_1172); -x_1197 = lean_ctor_get(x_1173, 0); -lean_inc(x_1197); -lean_dec(x_1173); -x_1198 = l_Lean_mkConst(x_1197, x_1165); -x_1199 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__6(x_26, x_1198, x_1196); -if (lean_is_scalar(x_1195)) { - x_1200 = lean_alloc_ctor(0, 2, 0); +x_1023 = lean_ctor_get(x_999, 1); +lean_inc(x_1023); +lean_dec(x_999); +x_1024 = lean_ctor_get(x_1000, 0); +lean_inc(x_1024); +lean_dec(x_1000); +x_1025 = l_Lean_mkConst(x_1024, x_992); +x_1026 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__6(x_41, x_1025, x_1023); +if (lean_is_scalar(x_1022)) { + x_1027 = lean_alloc_ctor(0, 2, 0); } else { - x_1200 = x_1195; + x_1027 = x_1022; } -lean_ctor_set(x_1200, 0, x_1199); -lean_ctor_set(x_1200, 1, x_1194); -return x_1200; +lean_ctor_set(x_1027, 0, x_1026); +lean_ctor_set(x_1027, 1, x_1021); +return x_1027; } case 5: { -lean_object* x_1201; lean_object* x_1202; lean_object* x_1203; lean_object* x_1204; lean_object* x_1205; -x_1201 = lean_ctor_get(x_1166, 1); -lean_inc(x_1201); -if (lean_is_exclusive(x_1166)) { - lean_ctor_release(x_1166, 0); - lean_ctor_release(x_1166, 1); - x_1202 = x_1166; +lean_object* x_1028; lean_object* x_1029; lean_object* x_1030; lean_object* x_1031; lean_object* x_1032; +x_1028 = lean_ctor_get(x_993, 1); +lean_inc(x_1028); +if (lean_is_exclusive(x_993)) { + lean_ctor_release(x_993, 0); + lean_ctor_release(x_993, 1); + x_1029 = x_993; } else { - lean_dec_ref(x_1166); - x_1202 = lean_box(0); + lean_dec_ref(x_993); + x_1029 = lean_box(0); } -x_1203 = lean_ctor_get(x_1172, 1); -lean_inc(x_1203); -lean_dec(x_1172); -x_1204 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__7(x_26, x_1173, x_1203); -if (lean_is_scalar(x_1202)) { - x_1205 = lean_alloc_ctor(0, 2, 0); +x_1030 = lean_ctor_get(x_999, 1); +lean_inc(x_1030); +lean_dec(x_999); +x_1031 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__7(x_41, x_1000, x_1030); +if (lean_is_scalar(x_1029)) { + x_1032 = lean_alloc_ctor(0, 2, 0); } else { - x_1205 = x_1202; + x_1032 = x_1029; } -lean_ctor_set(x_1205, 0, x_1204); -lean_ctor_set(x_1205, 1, x_1201); -return x_1205; +lean_ctor_set(x_1032, 0, x_1031); +lean_ctor_set(x_1032, 1, x_1028); +return x_1032; } case 6: { -lean_object* x_1206; lean_object* x_1207; lean_object* x_1208; lean_object* x_1209; lean_object* x_1210; -x_1206 = lean_ctor_get(x_1166, 1); -lean_inc(x_1206); -if (lean_is_exclusive(x_1166)) { - lean_ctor_release(x_1166, 0); - lean_ctor_release(x_1166, 1); - x_1207 = x_1166; +lean_object* x_1033; lean_object* x_1034; lean_object* x_1035; lean_object* x_1036; lean_object* x_1037; +x_1033 = lean_ctor_get(x_993, 1); +lean_inc(x_1033); +if (lean_is_exclusive(x_993)) { + lean_ctor_release(x_993, 0); + lean_ctor_release(x_993, 1); + x_1034 = x_993; } else { - lean_dec_ref(x_1166); - x_1207 = lean_box(0); + lean_dec_ref(x_993); + x_1034 = lean_box(0); } -x_1208 = lean_ctor_get(x_1172, 1); -lean_inc(x_1208); -lean_dec(x_1172); -x_1209 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__8(x_26, x_1173, x_1208); -if (lean_is_scalar(x_1207)) { - x_1210 = lean_alloc_ctor(0, 2, 0); +x_1035 = lean_ctor_get(x_999, 1); +lean_inc(x_1035); +lean_dec(x_999); +x_1036 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__8(x_41, x_1000, x_1035); +if (lean_is_scalar(x_1034)) { + x_1037 = lean_alloc_ctor(0, 2, 0); } else { - x_1210 = x_1207; + x_1037 = x_1034; } -lean_ctor_set(x_1210, 0, x_1209); -lean_ctor_set(x_1210, 1, x_1206); -return x_1210; +lean_ctor_set(x_1037, 0, x_1036); +lean_ctor_set(x_1037, 1, x_1033); +return x_1037; } case 7: { -lean_object* x_1211; lean_object* x_1212; lean_object* x_1213; lean_object* x_1214; lean_object* x_1215; -x_1211 = lean_ctor_get(x_1166, 1); -lean_inc(x_1211); -if (lean_is_exclusive(x_1166)) { - lean_ctor_release(x_1166, 0); - lean_ctor_release(x_1166, 1); - x_1212 = x_1166; +lean_object* x_1038; lean_object* x_1039; lean_object* x_1040; lean_object* x_1041; lean_object* x_1042; +x_1038 = lean_ctor_get(x_993, 1); +lean_inc(x_1038); +if (lean_is_exclusive(x_993)) { + lean_ctor_release(x_993, 0); + lean_ctor_release(x_993, 1); + x_1039 = x_993; } else { - lean_dec_ref(x_1166); - x_1212 = lean_box(0); + lean_dec_ref(x_993); + x_1039 = lean_box(0); } -x_1213 = lean_ctor_get(x_1172, 1); -lean_inc(x_1213); -lean_dec(x_1172); -x_1214 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__9(x_26, x_1173, x_1213); -if (lean_is_scalar(x_1212)) { - x_1215 = lean_alloc_ctor(0, 2, 0); +x_1040 = lean_ctor_get(x_999, 1); +lean_inc(x_1040); +lean_dec(x_999); +x_1041 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__9(x_41, x_1000, x_1040); +if (lean_is_scalar(x_1039)) { + x_1042 = lean_alloc_ctor(0, 2, 0); } else { - x_1215 = x_1212; + x_1042 = x_1039; } -lean_ctor_set(x_1215, 0, x_1214); -lean_ctor_set(x_1215, 1, x_1211); -return x_1215; +lean_ctor_set(x_1042, 0, x_1041); +lean_ctor_set(x_1042, 1, x_1038); +return x_1042; } case 8: { -lean_object* x_1216; lean_object* x_1217; lean_object* x_1218; lean_object* x_1219; lean_object* x_1220; -x_1216 = lean_ctor_get(x_1166, 1); -lean_inc(x_1216); -if (lean_is_exclusive(x_1166)) { - lean_ctor_release(x_1166, 0); - lean_ctor_release(x_1166, 1); - x_1217 = x_1166; +lean_object* x_1043; lean_object* x_1044; lean_object* x_1045; lean_object* x_1046; lean_object* x_1047; +x_1043 = lean_ctor_get(x_993, 1); +lean_inc(x_1043); +if (lean_is_exclusive(x_993)) { + lean_ctor_release(x_993, 0); + lean_ctor_release(x_993, 1); + x_1044 = x_993; } else { - lean_dec_ref(x_1166); - x_1217 = lean_box(0); + lean_dec_ref(x_993); + x_1044 = lean_box(0); } -x_1218 = lean_ctor_get(x_1172, 1); -lean_inc(x_1218); -lean_dec(x_1172); -x_1219 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__10(x_26, x_1173, x_1218); -if (lean_is_scalar(x_1217)) { - x_1220 = lean_alloc_ctor(0, 2, 0); +x_1045 = lean_ctor_get(x_999, 1); +lean_inc(x_1045); +lean_dec(x_999); +x_1046 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__10(x_41, x_1000, x_1045); +if (lean_is_scalar(x_1044)) { + x_1047 = lean_alloc_ctor(0, 2, 0); } else { - x_1220 = x_1217; + x_1047 = x_1044; } -lean_ctor_set(x_1220, 0, x_1219); -lean_ctor_set(x_1220, 1, x_1216); -return x_1220; +lean_ctor_set(x_1047, 0, x_1046); +lean_ctor_set(x_1047, 1, x_1043); +return x_1047; } case 9: { -lean_object* x_1221; lean_object* x_1222; lean_object* x_1223; lean_object* x_1224; lean_object* x_1225; -x_1221 = lean_ctor_get(x_1166, 1); -lean_inc(x_1221); -if (lean_is_exclusive(x_1166)) { - lean_ctor_release(x_1166, 0); - lean_ctor_release(x_1166, 1); - x_1222 = x_1166; +lean_object* x_1048; lean_object* x_1049; lean_object* x_1050; lean_object* x_1051; lean_object* x_1052; +x_1048 = lean_ctor_get(x_993, 1); +lean_inc(x_1048); +if (lean_is_exclusive(x_993)) { + lean_ctor_release(x_993, 0); + lean_ctor_release(x_993, 1); + x_1049 = x_993; } else { - lean_dec_ref(x_1166); - x_1222 = lean_box(0); + lean_dec_ref(x_993); + x_1049 = lean_box(0); } -x_1223 = lean_ctor_get(x_1172, 1); -lean_inc(x_1223); -lean_dec(x_1172); -x_1224 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__11(x_26, x_1173, x_1223); -if (lean_is_scalar(x_1222)) { - x_1225 = lean_alloc_ctor(0, 2, 0); +x_1050 = lean_ctor_get(x_999, 1); +lean_inc(x_1050); +lean_dec(x_999); +x_1051 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__11(x_41, x_1000, x_1050); +if (lean_is_scalar(x_1049)) { + x_1052 = lean_alloc_ctor(0, 2, 0); } else { - x_1225 = x_1222; + x_1052 = x_1049; } -lean_ctor_set(x_1225, 0, x_1224); -lean_ctor_set(x_1225, 1, x_1221); -return x_1225; +lean_ctor_set(x_1052, 0, x_1051); +lean_ctor_set(x_1052, 1, x_1048); +return x_1052; } case 10: { -lean_object* x_1226; lean_object* x_1227; lean_object* x_1228; lean_object* x_1229; lean_object* x_1230; -x_1226 = lean_ctor_get(x_1166, 1); -lean_inc(x_1226); -if (lean_is_exclusive(x_1166)) { - lean_ctor_release(x_1166, 0); - lean_ctor_release(x_1166, 1); - x_1227 = x_1166; +lean_object* x_1053; lean_object* x_1054; lean_object* x_1055; lean_object* x_1056; lean_object* x_1057; +x_1053 = lean_ctor_get(x_993, 1); +lean_inc(x_1053); +if (lean_is_exclusive(x_993)) { + lean_ctor_release(x_993, 0); + lean_ctor_release(x_993, 1); + x_1054 = x_993; } else { - lean_dec_ref(x_1166); - x_1227 = lean_box(0); + lean_dec_ref(x_993); + x_1054 = lean_box(0); } -x_1228 = lean_ctor_get(x_1172, 1); -lean_inc(x_1228); -lean_dec(x_1172); -x_1229 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__12(x_26, x_1173, x_1228); -if (lean_is_scalar(x_1227)) { - x_1230 = lean_alloc_ctor(0, 2, 0); +x_1055 = lean_ctor_get(x_999, 1); +lean_inc(x_1055); +lean_dec(x_999); +x_1056 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__12(x_41, x_1000, x_1055); +if (lean_is_scalar(x_1054)) { + x_1057 = lean_alloc_ctor(0, 2, 0); } else { - x_1230 = x_1227; + x_1057 = x_1054; } -lean_ctor_set(x_1230, 0, x_1229); -lean_ctor_set(x_1230, 1, x_1226); -return x_1230; +lean_ctor_set(x_1057, 0, x_1056); +lean_ctor_set(x_1057, 1, x_1053); +return x_1057; } case 11: { -lean_object* x_1231; lean_object* x_1232; lean_object* x_1233; lean_object* x_1234; lean_object* x_1235; -x_1231 = lean_ctor_get(x_1166, 1); -lean_inc(x_1231); -if (lean_is_exclusive(x_1166)) { - lean_ctor_release(x_1166, 0); - lean_ctor_release(x_1166, 1); - x_1232 = x_1166; +lean_object* x_1058; lean_object* x_1059; lean_object* x_1060; lean_object* x_1061; lean_object* x_1062; +x_1058 = lean_ctor_get(x_993, 1); +lean_inc(x_1058); +if (lean_is_exclusive(x_993)) { + lean_ctor_release(x_993, 0); + lean_ctor_release(x_993, 1); + x_1059 = x_993; } else { - lean_dec_ref(x_1166); - x_1232 = lean_box(0); + lean_dec_ref(x_993); + x_1059 = lean_box(0); } -x_1233 = lean_ctor_get(x_1172, 1); -lean_inc(x_1233); -lean_dec(x_1172); -x_1234 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__13(x_26, x_1173, x_1233); -if (lean_is_scalar(x_1232)) { - x_1235 = lean_alloc_ctor(0, 2, 0); +x_1060 = lean_ctor_get(x_999, 1); +lean_inc(x_1060); +lean_dec(x_999); +x_1061 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__13(x_41, x_1000, x_1060); +if (lean_is_scalar(x_1059)) { + x_1062 = lean_alloc_ctor(0, 2, 0); } else { - x_1235 = x_1232; + x_1062 = x_1059; } -lean_ctor_set(x_1235, 0, x_1234); -lean_ctor_set(x_1235, 1, x_1231); -return x_1235; +lean_ctor_set(x_1062, 0, x_1061); +lean_ctor_set(x_1062, 1, x_1058); +return x_1062; } default: { -lean_object* x_1236; lean_object* x_1237; lean_object* x_1238; lean_object* x_1239; lean_object* x_1240; -x_1236 = lean_ctor_get(x_1166, 1); -lean_inc(x_1236); -if (lean_is_exclusive(x_1166)) { - lean_ctor_release(x_1166, 0); - lean_ctor_release(x_1166, 1); - x_1237 = x_1166; +lean_object* x_1063; lean_object* x_1064; lean_object* x_1065; lean_object* x_1066; lean_object* x_1067; +x_1063 = lean_ctor_get(x_993, 1); +lean_inc(x_1063); +if (lean_is_exclusive(x_993)) { + lean_ctor_release(x_993, 0); + lean_ctor_release(x_993, 1); + x_1064 = x_993; } else { - lean_dec_ref(x_1166); - x_1237 = lean_box(0); + lean_dec_ref(x_993); + x_1064 = lean_box(0); } -x_1238 = lean_ctor_get(x_1172, 1); -lean_inc(x_1238); -lean_dec(x_1172); -x_1239 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__14(x_26, x_1173, x_1238); -if (lean_is_scalar(x_1237)) { - x_1240 = lean_alloc_ctor(0, 2, 0); +x_1065 = lean_ctor_get(x_999, 1); +lean_inc(x_1065); +lean_dec(x_999); +x_1066 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__14(x_41, x_1000, x_1065); +if (lean_is_scalar(x_1064)) { + x_1067 = lean_alloc_ctor(0, 2, 0); } else { - x_1240 = x_1237; + x_1067 = x_1064; } -lean_ctor_set(x_1240, 0, x_1239); -lean_ctor_set(x_1240, 1, x_1236); -return x_1240; +lean_ctor_set(x_1067, 0, x_1066); +lean_ctor_set(x_1067, 1, x_1063); +return x_1067; } } } } else { -lean_object* x_1241; lean_object* x_1242; lean_object* x_1243; lean_object* x_1244; +lean_object* x_1068; lean_object* x_1069; lean_object* x_1070; lean_object* x_1071; lean_dec(x_2); -x_1241 = lean_ctor_get(x_1166, 0); -lean_inc(x_1241); -x_1242 = lean_ctor_get(x_1166, 1); -lean_inc(x_1242); -if (lean_is_exclusive(x_1166)) { - lean_ctor_release(x_1166, 0); - lean_ctor_release(x_1166, 1); - x_1243 = x_1166; +x_1068 = lean_ctor_get(x_993, 0); +lean_inc(x_1068); +x_1069 = lean_ctor_get(x_993, 1); +lean_inc(x_1069); +if (lean_is_exclusive(x_993)) { + lean_ctor_release(x_993, 0); + lean_ctor_release(x_993, 1); + x_1070 = x_993; } else { - lean_dec_ref(x_1166); - x_1243 = lean_box(0); + lean_dec_ref(x_993); + x_1070 = lean_box(0); } -if (lean_is_scalar(x_1243)) { - x_1244 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1070)) { + x_1071 = lean_alloc_ctor(1, 2, 0); } else { - x_1244 = x_1243; + x_1071 = x_1070; } -lean_ctor_set(x_1244, 0, x_1241); -lean_ctor_set(x_1244, 1, x_1242); -return x_1244; +lean_ctor_set(x_1071, 0, x_1068); +lean_ctor_set(x_1071, 1, x_1069); +return x_1071; } } else { -lean_object* x_1245; lean_object* x_1246; lean_object* x_1247; -lean_dec(x_1162); -lean_dec(x_1); -x_1245 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; -x_1246 = l_unreachable_x21___rarg(x_1245); -x_1247 = lean_apply_2(x_1246, x_2, x_3); -return x_1247; +lean_object* x_1072; lean_object* x_1073; lean_object* x_1074; +lean_dec(x_989); +x_1072 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; +x_1073 = l_unreachable_x21___rarg(x_1072); +x_1074 = lean_apply_2(x_1073, x_2, x_3); +return x_1074; } } } @@ -18556,3752 +18199,3586 @@ return x_1247; } else { -lean_object* x_1248; size_t x_1249; lean_object* x_1250; uint8_t x_1251; -x_1248 = lean_ctor_get(x_25, 1); -x_1249 = lean_ctor_get_usize(x_25, 2); -lean_inc(x_1248); -lean_dec(x_25); -x_1250 = l_Lean_mkAppStx___closed__1; -x_1251 = lean_string_dec_eq(x_1248, x_1250); -lean_dec(x_1248); -if (x_1251 == 0) +lean_object* x_1075; size_t x_1076; lean_object* x_1077; uint8_t x_1078; +x_1075 = lean_ctor_get(x_40, 1); +x_1076 = lean_ctor_get_usize(x_40, 2); +lean_inc(x_1075); +lean_dec(x_40); +x_1077 = l_Lean_mkAppStx___closed__1; +x_1078 = lean_string_dec_eq(x_1075, x_1077); +lean_dec(x_1075); +if (x_1078 == 0) { -lean_object* x_1252; -lean_free_object(x_24); -lean_dec(x_33); -lean_free_object(x_15); -lean_dec(x_30); -lean_dec(x_27); +lean_object* x_1079; +lean_free_object(x_39); +lean_dec(x_48); +lean_free_object(x_30); +lean_dec(x_45); +lean_dec(x_42); +lean_dec(x_16); +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_9); +lean_dec(x_8); +lean_dec(x_7); lean_dec(x_4); -x_1252 = lean_box(0); -x_6 = x_1252; -goto block_14; +lean_dec(x_1); +x_1079 = lean_box(0); +x_21 = x_1079; +goto block_29; } else { -lean_object* x_1253; lean_object* x_1254; uint8_t x_1255; +lean_object* x_1080; lean_object* x_1081; uint8_t x_1082; if (lean_is_exclusive(x_5)) { lean_ctor_release(x_5, 0); lean_ctor_release(x_5, 1); - x_1253 = x_5; + x_1080 = x_5; } else { lean_dec_ref(x_5); - x_1253 = lean_box(0); + x_1080 = lean_box(0); } -x_1254 = l_Lean_mkAppStx___closed__3; -x_1255 = lean_string_dec_eq(x_33, x_1254); -if (x_1255 == 0) +x_1081 = l_Lean_mkAppStx___closed__3; +x_1082 = lean_string_dec_eq(x_48, x_1081); +if (x_1082 == 0) { -lean_object* x_1256; lean_object* x_1257; lean_object* x_1258; lean_object* x_1259; lean_object* x_1260; lean_object* x_1261; lean_object* x_1262; lean_object* x_1263; lean_object* x_1264; +lean_object* x_1083; lean_object* x_1084; lean_object* x_1085; lean_object* x_1086; lean_object* x_1087; lean_object* x_1088; lean_object* x_1089; lean_object* x_1090; lean_object* x_1091; +lean_dec(x_16); +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_9); +lean_dec(x_8); +lean_dec(x_7); lean_dec(x_4); -x_1256 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -lean_ctor_set(x_1256, 0, x_26); -lean_ctor_set(x_1256, 1, x_1250); -lean_ctor_set_usize(x_1256, 2, x_1249); -lean_ctor_set(x_24, 0, x_1256); -if (lean_is_scalar(x_1253)) { - x_1257 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_dec(x_1); +x_1083 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_1083, 0, x_41); +lean_ctor_set(x_1083, 1, x_1077); +lean_ctor_set_usize(x_1083, 2, x_1076); +lean_ctor_set(x_39, 0, x_1083); +if (lean_is_scalar(x_1080)) { + x_1084 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); } else { - x_1257 = x_1253; + x_1084 = x_1080; } -lean_ctor_set(x_1257, 0, x_15); -lean_ctor_set(x_1257, 1, x_27); -lean_ctor_set_usize(x_1257, 2, x_29); -x_1258 = l_Lean_Name_toString___closed__1; -x_1259 = l_Lean_Name_toStringWithSep___main(x_1258, x_1257); -x_1260 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1084, 0, x_30); +lean_ctor_set(x_1084, 1, x_42); +lean_ctor_set_usize(x_1084, 2, x_44); +x_1085 = l_Lean_Name_toString___closed__1; +x_1086 = l_Lean_Name_toStringWithSep___main(x_1085, x_1084); +x_1087 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1087, 0, x_1086); +x_1088 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1088, 0, x_1087); +x_1089 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__3; +x_1090 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1090, 0, x_1089); +lean_ctor_set(x_1090, 1, x_1088); +x_1091 = l_Lean_Elab_Term_throwError___rarg(x_1090, x_2, x_3); +return x_1091; +} +else +{ +lean_object* x_1092; uint8_t x_1093; +lean_dec(x_48); +x_1092 = l_Lean_mkAppStx___closed__5; +x_1093 = lean_string_dec_eq(x_45, x_1092); +if (x_1093 == 0) +{ +lean_object* x_1094; lean_object* x_1095; lean_object* x_1096; lean_object* x_1097; lean_object* x_1098; lean_object* x_1099; lean_object* x_1100; lean_object* x_1101; lean_object* x_1102; +lean_dec(x_16); +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_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_1); +x_1094 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_1094, 0, x_41); +lean_ctor_set(x_1094, 1, x_1077); +lean_ctor_set_usize(x_1094, 2, x_1076); +lean_ctor_set(x_39, 1, x_1081); +lean_ctor_set(x_39, 0, x_1094); +if (lean_is_scalar(x_1080)) { + x_1095 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_1095 = x_1080; +} +lean_ctor_set(x_1095, 0, x_30); +lean_ctor_set(x_1095, 1, x_42); +lean_ctor_set_usize(x_1095, 2, x_44); +x_1096 = l_Lean_Name_toString___closed__1; +x_1097 = l_Lean_Name_toStringWithSep___main(x_1096, x_1095); +x_1098 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1098, 0, x_1097); +x_1099 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1099, 0, x_1098); +x_1100 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__3; +x_1101 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1101, 0, x_1100); +lean_ctor_set(x_1101, 1, x_1099); +x_1102 = l_Lean_Elab_Term_throwError___rarg(x_1101, x_2, x_3); +return x_1102; +} +else +{ +lean_object* x_1103; uint8_t x_1104; +lean_dec(x_45); +x_1103 = l_Lean_mkTermIdFromIdent___closed__1; +x_1104 = lean_string_dec_eq(x_42, x_1103); +if (x_1104 == 0) +{ +lean_object* x_1105; uint8_t x_1106; +x_1105 = l_Lean_Parser_Term_fun___elambda__1___closed__1; +x_1106 = lean_string_dec_eq(x_42, x_1105); +if (x_1106 == 0) +{ +lean_object* x_1107; uint8_t x_1108; +x_1107 = l_Lean_Parser_Term_let___elambda__1___closed__1; +x_1108 = lean_string_dec_eq(x_42, x_1107); +if (x_1108 == 0) +{ +lean_object* x_1109; uint8_t x_1110; +lean_dec(x_16); +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_9); +lean_dec(x_8); +lean_dec(x_7); +x_1109 = l_Lean_mkAppStx___closed__7; +x_1110 = lean_string_dec_eq(x_42, x_1109); +if (x_1110 == 0) +{ +lean_object* x_1111; uint8_t x_1112; +x_1111 = l_Lean_Parser_Term_if___elambda__1___closed__1; +x_1112 = lean_string_dec_eq(x_42, x_1111); +if (x_1112 == 0) +{ +lean_object* x_1113; uint8_t x_1114; +x_1113 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__1; +x_1114 = lean_string_dec_eq(x_42, x_1113); +if (x_1114 == 0) +{ +lean_object* x_1115; uint8_t x_1116; +x_1115 = l_Lean_Parser_Term_band___elambda__1___closed__1; +x_1116 = lean_string_dec_eq(x_42, x_1115); +if (x_1116 == 0) +{ +lean_object* x_1117; uint8_t x_1118; +x_1117 = l_Lean_Meta_reduceNat_x3f___closed__12; +x_1118 = lean_string_dec_eq(x_42, x_1117); +if (x_1118 == 0) +{ +lean_object* x_1119; uint8_t x_1120; +x_1119 = l_Lean_Parser_Term_eq___elambda__1___closed__1; +x_1120 = lean_string_dec_eq(x_42, x_1119); +if (x_1120 == 0) +{ +lean_object* x_1121; uint8_t x_1122; +lean_dec(x_4); +x_1121 = l_Lean_String_HasQuote___closed__1; +x_1122 = lean_string_dec_eq(x_42, x_1121); +if (x_1122 == 0) +{ +lean_object* x_1123; uint8_t x_1124; +x_1123 = l_Lean_Nat_HasQuote___closed__1; +x_1124 = lean_string_dec_eq(x_42, x_1123); +if (x_1124 == 0) +{ +lean_object* x_1125; lean_object* x_1126; lean_object* x_1127; lean_object* x_1128; lean_object* x_1129; lean_object* x_1130; lean_object* x_1131; lean_object* x_1132; lean_object* x_1133; +lean_dec(x_1); +x_1125 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_1125, 0, x_41); +lean_ctor_set(x_1125, 1, x_1077); +lean_ctor_set_usize(x_1125, 2, x_1076); +lean_ctor_set(x_39, 1, x_1081); +lean_ctor_set(x_39, 0, x_1125); +lean_ctor_set(x_30, 1, x_1092); +if (lean_is_scalar(x_1080)) { + x_1126 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_1126 = x_1080; +} +lean_ctor_set(x_1126, 0, x_30); +lean_ctor_set(x_1126, 1, x_42); +lean_ctor_set_usize(x_1126, 2, x_44); +x_1127 = l_Lean_Name_toString___closed__1; +x_1128 = l_Lean_Name_toStringWithSep___main(x_1127, x_1126); +x_1129 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1129, 0, x_1128); +x_1130 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1130, 0, x_1129); +x_1131 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__3; +x_1132 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1132, 0, x_1131); +lean_ctor_set(x_1132, 1, x_1130); +x_1133 = l_Lean_Elab_Term_throwError___rarg(x_1132, x_2, x_3); +return x_1133; +} +else +{ +lean_object* x_1134; lean_object* x_1135; lean_object* x_1136; lean_object* x_1137; +lean_dec(x_1080); +lean_free_object(x_39); +lean_free_object(x_30); +lean_dec(x_42); +lean_dec(x_2); +x_1134 = lean_unsigned_to_nat(0u); +x_1135 = l_Lean_Syntax_getArg(x_1, x_1134); +lean_dec(x_1); +x_1136 = l_Lean_numLitKind; +x_1137 = l_Lean_Syntax_isNatLitAux(x_1136, x_1135); +lean_dec(x_1135); +if (lean_obj_tag(x_1137) == 0) +{ +lean_object* x_1138; lean_object* x_1139; +x_1138 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__5; +x_1139 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1139, 0, x_1138); +lean_ctor_set(x_1139, 1, x_3); +return x_1139; +} +else +{ +lean_object* x_1140; lean_object* x_1141; lean_object* x_1142; +x_1140 = lean_ctor_get(x_1137, 0); +lean_inc(x_1140); +lean_dec(x_1137); +x_1141 = l_Lean_mkNatLit(x_1140); +x_1142 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1142, 0, x_1141); +lean_ctor_set(x_1142, 1, x_3); +return x_1142; +} +} +} +else +{ +lean_object* x_1143; lean_object* x_1144; lean_object* x_1145; +lean_dec(x_1080); +lean_free_object(x_39); +lean_free_object(x_30); +lean_dec(x_42); +lean_dec(x_2); +x_1143 = lean_unsigned_to_nat(0u); +x_1144 = l_Lean_Syntax_getArg(x_1, x_1143); +lean_dec(x_1); +x_1145 = l_Lean_Syntax_isStrLit_x3f(x_1144); +lean_dec(x_1144); +if (lean_obj_tag(x_1145) == 0) +{ +lean_object* x_1146; lean_object* x_1147; +x_1146 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__6; +x_1147 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1147, 0, x_1146); +lean_ctor_set(x_1147, 1, x_3); +return x_1147; +} +else +{ +lean_object* x_1148; lean_object* x_1149; lean_object* x_1150; +x_1148 = lean_ctor_get(x_1145, 0); +lean_inc(x_1148); +lean_dec(x_1145); +x_1149 = l_Lean_mkStrLit(x_1148); +x_1150 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1150, 0, x_1149); +lean_ctor_set(x_1150, 1, x_3); +return x_1150; +} +} +} +else +{ +lean_object* x_1151; lean_object* x_1152; lean_object* x_1153; lean_object* x_1154; lean_object* x_1155; lean_object* x_1156; lean_object* x_1157; lean_object* x_1158; lean_object* x_1159; +lean_dec(x_1080); +lean_free_object(x_39); +lean_free_object(x_30); +lean_dec(x_42); +lean_dec(x_1); +x_1151 = l_Lean_Syntax_inhabited; +x_1152 = lean_unsigned_to_nat(0u); +x_1153 = lean_array_get(x_1151, x_4, x_1152); +x_1154 = lean_unsigned_to_nat(2u); +x_1155 = lean_array_get(x_1151, x_4, x_1154); +lean_dec(x_4); +x_1156 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__1___boxed), 6, 3); +lean_closure_set(x_1156, 0, x_41); +lean_closure_set(x_1156, 1, x_1153); +lean_closure_set(x_1156, 2, x_1155); +x_1157 = l_Lean_Unhygienic_MonadQuotation___closed__4; +x_1158 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___spec__1___rarg), 4, 2); +lean_closure_set(x_1158, 0, x_1157); +lean_closure_set(x_1158, 1, x_1156); +x_1159 = l_Lean_Unhygienic_run___rarg(x_1158); +x_1 = x_1159; +goto _start; +} +} +else +{ +lean_object* x_1161; lean_object* x_1162; lean_object* x_1163; lean_object* x_1164; lean_object* x_1165; lean_object* x_1166; lean_object* x_1167; lean_object* x_1168; lean_object* x_1169; +lean_dec(x_1080); +lean_free_object(x_39); +lean_free_object(x_30); +lean_dec(x_42); +lean_dec(x_1); +x_1161 = l_Lean_Syntax_inhabited; +x_1162 = lean_unsigned_to_nat(0u); +x_1163 = lean_array_get(x_1161, x_4, x_1162); +x_1164 = lean_unsigned_to_nat(2u); +x_1165 = lean_array_get(x_1161, x_4, x_1164); +lean_dec(x_4); +x_1166 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__2___boxed), 6, 3); +lean_closure_set(x_1166, 0, x_41); +lean_closure_set(x_1166, 1, x_1163); +lean_closure_set(x_1166, 2, x_1165); +x_1167 = l_Lean_Unhygienic_MonadQuotation___closed__4; +x_1168 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___spec__1___rarg), 4, 2); +lean_closure_set(x_1168, 0, x_1167); +lean_closure_set(x_1168, 1, x_1166); +x_1169 = l_Lean_Unhygienic_run___rarg(x_1168); +x_1 = x_1169; +goto _start; +} +} +else +{ +lean_object* x_1171; lean_object* x_1172; lean_object* x_1173; lean_object* x_1174; lean_object* x_1175; lean_object* x_1176; lean_object* x_1177; lean_object* x_1178; lean_object* x_1179; +lean_dec(x_1080); +lean_free_object(x_39); +lean_free_object(x_30); +lean_dec(x_42); +lean_dec(x_1); +x_1171 = l_Lean_Syntax_inhabited; +x_1172 = lean_unsigned_to_nat(0u); +x_1173 = lean_array_get(x_1171, x_4, x_1172); +x_1174 = lean_unsigned_to_nat(2u); +x_1175 = lean_array_get(x_1171, x_4, x_1174); +lean_dec(x_4); +x_1176 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__3___boxed), 6, 3); +lean_closure_set(x_1176, 0, x_41); +lean_closure_set(x_1176, 1, x_1173); +lean_closure_set(x_1176, 2, x_1175); +x_1177 = l_Lean_Unhygienic_MonadQuotation___closed__4; +x_1178 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___spec__1___rarg), 4, 2); +lean_closure_set(x_1178, 0, x_1177); +lean_closure_set(x_1178, 1, x_1176); +x_1179 = l_Lean_Unhygienic_run___rarg(x_1178); +x_1 = x_1179; +goto _start; +} +} +else +{ +lean_object* x_1181; lean_object* x_1182; lean_object* x_1183; lean_object* x_1184; lean_object* x_1185; lean_object* x_1186; uint8_t x_1187; +lean_dec(x_1080); +lean_free_object(x_39); +lean_free_object(x_30); +lean_dec(x_42); +lean_dec(x_1); +x_1181 = l_Lean_Syntax_inhabited; +x_1182 = lean_unsigned_to_nat(1u); +x_1183 = lean_array_get(x_1181, x_4, x_1182); +lean_dec(x_4); +x_1184 = l_Lean_Syntax_getArgs(x_1183); +lean_dec(x_1183); +x_1185 = lean_array_get_size(x_1184); +x_1186 = lean_unsigned_to_nat(0u); +x_1187 = lean_nat_dec_eq(x_1185, x_1186); +lean_dec(x_1185); +if (x_1187 == 0) +{ +lean_object* x_1188; +x_1188 = lean_array_get(x_1181, x_1184, x_1186); +lean_dec(x_1184); +x_1 = x_1188; +goto _start; +} +else +{ +lean_object* x_1190; lean_object* x_1191; lean_object* x_1192; lean_object* x_1193; lean_object* x_1194; lean_object* x_1195; lean_object* x_1196; +lean_dec(x_1184); +lean_dec(x_2); +x_1190 = l___private_Lean_Compiler_InitAttr_2__isUnitType___closed__1; +x_1191 = lean_name_mk_string(x_41, x_1190); +x_1192 = l_Lean_unitToExpr___lambda__1___closed__3; +x_1193 = lean_name_mk_string(x_1191, x_1192); +x_1194 = lean_box(0); +x_1195 = l_Lean_mkConst(x_1193, x_1194); +x_1196 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1196, 0, x_1195); +lean_ctor_set(x_1196, 1, x_3); +return x_1196; +} +} +} +else +{ +lean_object* x_1197; lean_object* x_1198; lean_object* x_1199; lean_object* x_1200; lean_object* x_1201; lean_object* x_1202; lean_object* x_1203; lean_object* x_1204; lean_object* x_1205; lean_object* x_1206; lean_object* x_1207; +lean_dec(x_1080); +lean_free_object(x_39); +lean_free_object(x_30); +lean_dec(x_42); +lean_dec(x_1); +x_1197 = l_Lean_Syntax_inhabited; +x_1198 = lean_unsigned_to_nat(2u); +x_1199 = lean_array_get(x_1197, x_4, x_1198); +x_1200 = lean_unsigned_to_nat(4u); +x_1201 = lean_array_get(x_1197, x_4, x_1200); +x_1202 = lean_unsigned_to_nat(6u); +x_1203 = lean_array_get(x_1197, x_4, x_1202); +lean_dec(x_4); +x_1204 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__4___boxed), 7, 4); +lean_closure_set(x_1204, 0, x_41); +lean_closure_set(x_1204, 1, x_1199); +lean_closure_set(x_1204, 2, x_1201); +lean_closure_set(x_1204, 3, x_1203); +x_1205 = l_Lean_Unhygienic_MonadQuotation___closed__4; +x_1206 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___spec__1___rarg), 4, 2); +lean_closure_set(x_1206, 0, x_1205); +lean_closure_set(x_1206, 1, x_1204); +x_1207 = l_Lean_Unhygienic_run___rarg(x_1206); +x_1 = x_1207; +goto _start; +} +} +else +{ +lean_object* x_1209; lean_object* x_1210; lean_object* x_1211; lean_object* x_1212; +lean_dec(x_1080); +lean_free_object(x_39); +lean_free_object(x_30); +lean_dec(x_42); +lean_dec(x_1); +x_1209 = l_Lean_Syntax_inhabited; +x_1210 = lean_unsigned_to_nat(0u); +x_1211 = lean_array_get(x_1209, x_4, x_1210); +lean_inc(x_2); +x_1212 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_1211, x_2, x_3); +if (lean_obj_tag(x_1212) == 0) +{ +lean_object* x_1213; lean_object* x_1214; lean_object* x_1215; lean_object* x_1216; lean_object* x_1217; lean_object* x_1218; lean_object* x_1219; lean_object* x_1220; lean_object* x_1221; +x_1213 = lean_ctor_get(x_1212, 0); +lean_inc(x_1213); +x_1214 = lean_ctor_get(x_1212, 1); +lean_inc(x_1214); +lean_dec(x_1212); +x_1215 = lean_unsigned_to_nat(1u); +x_1216 = lean_array_get(x_1209, x_4, x_1215); +lean_dec(x_4); +x_1217 = l_Lean_Syntax_getArgs(x_1216); +lean_dec(x_1216); +x_1218 = x_1217; +x_1219 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__1), 4, 2); +lean_closure_set(x_1219, 0, x_1210); +lean_closure_set(x_1219, 1, x_1218); +x_1220 = x_1219; +x_1221 = lean_apply_2(x_1220, x_2, x_1214); +if (lean_obj_tag(x_1221) == 0) +{ +lean_object* x_1222; lean_object* x_1223; lean_object* x_1224; lean_object* x_1225; lean_object* x_1226; +x_1222 = lean_ctor_get(x_1221, 0); +lean_inc(x_1222); +x_1223 = lean_ctor_get(x_1221, 1); +lean_inc(x_1223); +if (lean_is_exclusive(x_1221)) { + lean_ctor_release(x_1221, 0); + lean_ctor_release(x_1221, 1); + x_1224 = x_1221; +} else { + lean_dec_ref(x_1221); + x_1224 = lean_box(0); +} +x_1225 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_1222, x_1222, x_1210, x_1213); +lean_dec(x_1222); +if (lean_is_scalar(x_1224)) { + x_1226 = lean_alloc_ctor(0, 2, 0); +} else { + x_1226 = x_1224; +} +lean_ctor_set(x_1226, 0, x_1225); +lean_ctor_set(x_1226, 1, x_1223); +return x_1226; +} +else +{ +lean_object* x_1227; lean_object* x_1228; lean_object* x_1229; lean_object* x_1230; +lean_dec(x_1213); +x_1227 = lean_ctor_get(x_1221, 0); +lean_inc(x_1227); +x_1228 = lean_ctor_get(x_1221, 1); +lean_inc(x_1228); +if (lean_is_exclusive(x_1221)) { + lean_ctor_release(x_1221, 0); + lean_ctor_release(x_1221, 1); + x_1229 = x_1221; +} else { + lean_dec_ref(x_1221); + x_1229 = lean_box(0); +} +if (lean_is_scalar(x_1229)) { + x_1230 = lean_alloc_ctor(1, 2, 0); +} else { + x_1230 = x_1229; +} +lean_ctor_set(x_1230, 0, x_1227); +lean_ctor_set(x_1230, 1, x_1228); +return x_1230; +} +} +else +{ +lean_object* x_1231; lean_object* x_1232; lean_object* x_1233; lean_object* x_1234; +lean_dec(x_2); +lean_dec(x_4); +x_1231 = lean_ctor_get(x_1212, 0); +lean_inc(x_1231); +x_1232 = lean_ctor_get(x_1212, 1); +lean_inc(x_1232); +if (lean_is_exclusive(x_1212)) { + lean_ctor_release(x_1212, 0); + lean_ctor_release(x_1212, 1); + x_1233 = x_1212; +} else { + lean_dec_ref(x_1212); + x_1233 = lean_box(0); +} +if (lean_is_scalar(x_1233)) { + x_1234 = lean_alloc_ctor(1, 2, 0); +} else { + x_1234 = x_1233; +} +lean_ctor_set(x_1234, 0, x_1231); +lean_ctor_set(x_1234, 1, x_1232); +return x_1234; +} +} +} +else +{ +lean_object* x_1235; lean_object* x_1236; lean_object* x_1237; lean_object* x_1238; lean_object* x_1239; uint8_t x_1240; lean_object* x_1241; lean_object* x_1242; lean_object* x_1243; lean_object* x_1244; lean_object* x_1245; +lean_dec(x_1080); +lean_free_object(x_39); +lean_free_object(x_30); +lean_dec(x_42); +x_1235 = l_Lean_Syntax_inhabited; +x_1236 = lean_unsigned_to_nat(1u); +x_1237 = lean_array_get(x_1235, x_4, x_1236); +x_1238 = lean_unsigned_to_nat(0u); +x_1239 = l_Lean_Syntax_getArg(x_1237, x_1238); +x_1240 = l_Lean_Syntax_isIdent(x_1239); +x_1241 = lean_unsigned_to_nat(4u); +x_1242 = l_Lean_Syntax_getArg(x_1237, x_1241); +lean_dec(x_1237); +x_1243 = lean_unsigned_to_nat(3u); +x_1244 = lean_array_get(x_1235, x_4, x_1243); +lean_dec(x_4); +if (x_1240 == 0) +{ +lean_object* x_1279; +x_1279 = l_Lean_Syntax_getIdAt(x_1239, x_1238); +lean_dec(x_1239); +x_1245 = x_1279; +goto block_1278; +} +else +{ +lean_object* x_1280; +x_1280 = l_Lean_Syntax_getId(x_1239); +lean_dec(x_1239); +x_1245 = x_1280; +goto block_1278; +} +block_1278: +{ +lean_object* x_1246; +lean_inc(x_2); +x_1246 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_1242, x_2, x_3); +if (lean_obj_tag(x_1246) == 0) +{ +lean_object* x_1247; lean_object* x_1248; lean_object* x_1249; lean_object* x_1250; lean_object* x_1251; lean_object* x_1252; lean_object* x_1253; lean_object* x_1254; lean_object* x_1255; lean_object* x_1256; lean_object* x_1257; lean_object* x_1258; lean_object* x_1259; lean_object* x_1260; lean_object* x_1261; +x_1247 = lean_ctor_get(x_1246, 0); +lean_inc(x_1247); +x_1248 = lean_ctor_get(x_1246, 1); +lean_inc(x_1248); +lean_dec(x_1246); +x_1249 = l_Lean_Elab_Term_getLCtx(x_2, x_1248); +lean_dec(x_2); +x_1250 = lean_ctor_get(x_1249, 0); +lean_inc(x_1250); +x_1251 = lean_ctor_get(x_1249, 1); +lean_inc(x_1251); +lean_dec(x_1249); +x_1252 = l___private_Lean_Elab_Quotation_9__exprPlaceholder; +lean_inc_n(x_1245, 2); +x_1253 = lean_local_ctx_mk_let_decl(x_1250, x_1245, x_1245, x_1252, x_1247); +x_1254 = lean_ctor_get(x_7, 0); +lean_inc(x_1254); +x_1255 = lean_ctor_get(x_7, 2); +lean_inc(x_1255); +x_1256 = lean_ctor_get(x_7, 3); +lean_inc(x_1256); +x_1257 = lean_ctor_get(x_7, 4); +lean_inc(x_1257); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + lean_ctor_release(x_7, 2); + lean_ctor_release(x_7, 3); + lean_ctor_release(x_7, 4); + x_1258 = x_7; +} else { + lean_dec_ref(x_7); + x_1258 = lean_box(0); +} +lean_inc(x_1253); +if (lean_is_scalar(x_1258)) { + x_1259 = lean_alloc_ctor(0, 5, 0); +} else { + x_1259 = x_1258; +} +lean_ctor_set(x_1259, 0, x_1254); +lean_ctor_set(x_1259, 1, x_1253); +lean_ctor_set(x_1259, 2, x_1255); +lean_ctor_set(x_1259, 3, x_1256); +lean_ctor_set(x_1259, 4, x_1257); +x_1260 = lean_alloc_ctor(0, 11, 3); lean_ctor_set(x_1260, 0, x_1259); -x_1261 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1261, 0, x_1260); -x_1262 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__3; -x_1263 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1263, 0, x_1262); -lean_ctor_set(x_1263, 1, x_1261); -x_1264 = l_Lean_Elab_Term_throwError___rarg(x_1, x_1263, x_2, x_3); -lean_dec(x_1); -return x_1264; -} -else +lean_ctor_set(x_1260, 1, x_8); +lean_ctor_set(x_1260, 2, x_9); +lean_ctor_set(x_1260, 3, x_10); +lean_ctor_set(x_1260, 4, x_11); +lean_ctor_set(x_1260, 5, x_12); +lean_ctor_set(x_1260, 6, x_13); +lean_ctor_set(x_1260, 7, x_14); +lean_ctor_set(x_1260, 8, x_15); +lean_ctor_set(x_1260, 9, x_16); +lean_ctor_set(x_1260, 10, x_1); +lean_ctor_set_uint8(x_1260, sizeof(void*)*11, x_17); +lean_ctor_set_uint8(x_1260, sizeof(void*)*11 + 1, x_18); +lean_ctor_set_uint8(x_1260, sizeof(void*)*11 + 2, x_19); +x_1261 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_1244, x_1260, x_1251); +if (lean_obj_tag(x_1261) == 0) { -lean_object* x_1265; uint8_t x_1266; -lean_dec(x_33); -x_1265 = l_Lean_mkAppStx___closed__5; -x_1266 = lean_string_dec_eq(x_30, x_1265); -if (x_1266 == 0) -{ -lean_object* x_1267; lean_object* x_1268; lean_object* x_1269; lean_object* x_1270; lean_object* x_1271; lean_object* x_1272; lean_object* x_1273; lean_object* x_1274; lean_object* x_1275; -lean_dec(x_4); -x_1267 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -lean_ctor_set(x_1267, 0, x_26); -lean_ctor_set(x_1267, 1, x_1250); -lean_ctor_set_usize(x_1267, 2, x_1249); -lean_ctor_set(x_24, 1, x_1254); -lean_ctor_set(x_24, 0, x_1267); -if (lean_is_scalar(x_1253)) { - x_1268 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_object* x_1262; lean_object* x_1263; lean_object* x_1264; lean_object* x_1265; lean_object* x_1266; lean_object* x_1267; lean_object* x_1268; lean_object* x_1269; +x_1262 = lean_ctor_get(x_1261, 0); +lean_inc(x_1262); +x_1263 = lean_ctor_get(x_1261, 1); +lean_inc(x_1263); +if (lean_is_exclusive(x_1261)) { + lean_ctor_release(x_1261, 0); + lean_ctor_release(x_1261, 1); + x_1264 = x_1261; } else { - x_1268 = x_1253; + lean_dec_ref(x_1261); + x_1264 = lean_box(0); } -lean_ctor_set(x_1268, 0, x_15); -lean_ctor_set(x_1268, 1, x_27); -lean_ctor_set_usize(x_1268, 2, x_29); -x_1269 = l_Lean_Name_toString___closed__1; -x_1270 = l_Lean_Name_toStringWithSep___main(x_1269, x_1268); -x_1271 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1271, 0, x_1270); -x_1272 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1272, 0, x_1271); -x_1273 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__3; -x_1274 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1274, 0, x_1273); -lean_ctor_set(x_1274, 1, x_1272); -x_1275 = l_Lean_Elab_Term_throwError___rarg(x_1, x_1274, x_2, x_3); -lean_dec(x_1); -return x_1275; +x_1265 = l_Lean_mkFVar(x_1245); +x_1266 = l_Lean_mkOptionalNode___closed__2; +x_1267 = lean_array_push(x_1266, x_1265); +x_1268 = l_Lean_LocalContext_mkLambda(x_1253, x_1267, x_1262); +lean_dec(x_1262); +lean_dec(x_1267); +if (lean_is_scalar(x_1264)) { + x_1269 = lean_alloc_ctor(0, 2, 0); +} else { + x_1269 = x_1264; +} +lean_ctor_set(x_1269, 0, x_1268); +lean_ctor_set(x_1269, 1, x_1263); +return x_1269; } else { -lean_object* x_1276; uint8_t x_1277; -lean_dec(x_30); -x_1276 = l_Lean_mkTermIdFromIdent___closed__1; -x_1277 = lean_string_dec_eq(x_27, x_1276); -if (x_1277 == 0) +lean_object* x_1270; lean_object* x_1271; lean_object* x_1272; lean_object* x_1273; +lean_dec(x_1253); +lean_dec(x_1245); +x_1270 = lean_ctor_get(x_1261, 0); +lean_inc(x_1270); +x_1271 = lean_ctor_get(x_1261, 1); +lean_inc(x_1271); +if (lean_is_exclusive(x_1261)) { + lean_ctor_release(x_1261, 0); + lean_ctor_release(x_1261, 1); + x_1272 = x_1261; +} else { + lean_dec_ref(x_1261); + x_1272 = lean_box(0); +} +if (lean_is_scalar(x_1272)) { + x_1273 = lean_alloc_ctor(1, 2, 0); +} else { + x_1273 = x_1272; +} +lean_ctor_set(x_1273, 0, x_1270); +lean_ctor_set(x_1273, 1, x_1271); +return x_1273; +} +} +else { -lean_object* x_1278; uint8_t x_1279; -x_1278 = l_Lean_Parser_Term_fun___elambda__1___closed__1; -x_1279 = lean_string_dec_eq(x_27, x_1278); -if (x_1279 == 0) +lean_object* x_1274; lean_object* x_1275; lean_object* x_1276; lean_object* x_1277; +lean_dec(x_1245); +lean_dec(x_1244); +lean_dec(x_2); +lean_dec(x_16); +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_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_1274 = lean_ctor_get(x_1246, 0); +lean_inc(x_1274); +x_1275 = lean_ctor_get(x_1246, 1); +lean_inc(x_1275); +if (lean_is_exclusive(x_1246)) { + lean_ctor_release(x_1246, 0); + lean_ctor_release(x_1246, 1); + x_1276 = x_1246; +} else { + lean_dec_ref(x_1246); + x_1276 = lean_box(0); +} +if (lean_is_scalar(x_1276)) { + x_1277 = lean_alloc_ctor(1, 2, 0); +} else { + x_1277 = x_1276; +} +lean_ctor_set(x_1277, 0, x_1274); +lean_ctor_set(x_1277, 1, x_1275); +return x_1277; +} +} +} +} +else { -lean_object* x_1280; uint8_t x_1281; -x_1280 = l_Lean_Parser_Term_let___elambda__1___closed__1; -x_1281 = lean_string_dec_eq(x_27, x_1280); -if (x_1281 == 0) -{ -lean_object* x_1282; uint8_t x_1283; -x_1282 = l_Lean_mkAppStx___closed__7; -x_1283 = lean_string_dec_eq(x_27, x_1282); -if (x_1283 == 0) -{ -lean_object* x_1284; uint8_t x_1285; -x_1284 = l_Lean_Parser_Term_if___elambda__1___closed__1; -x_1285 = lean_string_dec_eq(x_27, x_1284); -if (x_1285 == 0) -{ -lean_object* x_1286; uint8_t x_1287; -x_1286 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__1; -x_1287 = lean_string_dec_eq(x_27, x_1286); -if (x_1287 == 0) -{ -lean_object* x_1288; uint8_t x_1289; -x_1288 = l_Lean_Parser_Term_band___elambda__1___closed__1; -x_1289 = lean_string_dec_eq(x_27, x_1288); +lean_object* x_1281; lean_object* x_1282; lean_object* x_1283; lean_object* x_1284; lean_object* x_1285; lean_object* x_1286; lean_object* x_1287; lean_object* x_1288; uint8_t x_1289; +lean_dec(x_1080); +lean_free_object(x_39); +lean_free_object(x_30); +lean_dec(x_42); +x_1281 = l_Lean_Syntax_inhabited; +x_1282 = lean_unsigned_to_nat(1u); +x_1283 = lean_array_get(x_1281, x_4, x_1282); +x_1284 = l_Lean_Syntax_getArgs(x_1283); +lean_dec(x_1283); +x_1285 = lean_unsigned_to_nat(3u); +x_1286 = lean_array_get(x_1281, x_4, x_1285); +lean_dec(x_4); +x_1287 = lean_array_get_size(x_1284); +x_1288 = lean_unsigned_to_nat(0u); +x_1289 = lean_nat_dec_eq(x_1287, x_1288); +lean_dec(x_1287); if (x_1289 == 0) { -lean_object* x_1290; uint8_t x_1291; -x_1290 = l_Lean_Meta_reduceNat_x3f___closed__12; -x_1291 = lean_string_dec_eq(x_27, x_1290); -if (x_1291 == 0) -{ -lean_object* x_1292; uint8_t x_1293; -x_1292 = l_Lean_Parser_Term_eq___elambda__1___closed__1; -x_1293 = lean_string_dec_eq(x_27, x_1292); -if (x_1293 == 0) -{ -lean_object* x_1294; uint8_t x_1295; -lean_dec(x_4); -x_1294 = l_Lean_String_HasQuote___closed__1; -x_1295 = lean_string_dec_eq(x_27, x_1294); +lean_object* x_1290; lean_object* x_1291; lean_object* x_1292; lean_object* x_1293; lean_object* x_1294; uint8_t x_1295; +x_1290 = lean_array_get(x_1281, x_1284, x_1288); +x_1291 = lean_name_mk_string(x_41, x_1077); +x_1292 = lean_name_mk_string(x_1291, x_1081); +x_1293 = lean_name_mk_string(x_1292, x_1092); +lean_inc(x_1293); +x_1294 = lean_name_mk_string(x_1293, x_1103); +lean_inc(x_1290); +x_1295 = l_Lean_Syntax_isOfKind(x_1290, x_1294); +lean_dec(x_1294); if (x_1295 == 0) { -lean_object* x_1296; uint8_t x_1297; -x_1296 = l_Lean_Nat_HasQuote___closed__1; -x_1297 = lean_string_dec_eq(x_27, x_1296); -if (x_1297 == 0) +lean_object* x_1296; lean_object* x_1297; uint8_t x_1298; +x_1296 = l_Lean_mkHole___closed__1; +lean_inc(x_1293); +x_1297 = lean_name_mk_string(x_1293, x_1296); +lean_inc(x_1290); +x_1298 = l_Lean_Syntax_isOfKind(x_1290, x_1297); +lean_dec(x_1297); +if (x_1298 == 0) { -lean_object* x_1298; lean_object* x_1299; lean_object* x_1300; lean_object* x_1301; lean_object* x_1302; lean_object* x_1303; lean_object* x_1304; lean_object* x_1305; lean_object* x_1306; -x_1298 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -lean_ctor_set(x_1298, 0, x_26); -lean_ctor_set(x_1298, 1, x_1250); -lean_ctor_set_usize(x_1298, 2, x_1249); -lean_ctor_set(x_24, 1, x_1254); -lean_ctor_set(x_24, 0, x_1298); -lean_ctor_set(x_15, 1, x_1265); -if (lean_is_scalar(x_1253)) { - x_1299 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -} else { - x_1299 = x_1253; -} -lean_ctor_set(x_1299, 0, x_15); -lean_ctor_set(x_1299, 1, x_27); -lean_ctor_set_usize(x_1299, 2, x_29); -x_1300 = l_Lean_Name_toString___closed__1; -x_1301 = l_Lean_Name_toStringWithSep___main(x_1300, x_1299); -x_1302 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1302, 0, x_1301); -x_1303 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1303, 0, x_1302); -x_1304 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__3; -x_1305 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1305, 0, x_1304); -lean_ctor_set(x_1305, 1, x_1303); -x_1306 = l_Lean_Elab_Term_throwError___rarg(x_1, x_1305, x_2, x_3); -lean_dec(x_1); -return x_1306; -} -else -{ -lean_object* x_1307; lean_object* x_1308; lean_object* x_1309; lean_object* x_1310; -lean_dec(x_1253); -lean_free_object(x_24); -lean_free_object(x_15); -lean_dec(x_27); -lean_dec(x_2); -x_1307 = lean_unsigned_to_nat(0u); -x_1308 = l_Lean_Syntax_getArg(x_1, x_1307); -lean_dec(x_1); -x_1309 = l_Lean_numLitKind; -x_1310 = l_Lean_Syntax_isNatLitAux(x_1309, x_1308); -lean_dec(x_1308); -if (lean_obj_tag(x_1310) == 0) -{ -lean_object* x_1311; lean_object* x_1312; -x_1311 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__5; -x_1312 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1312, 0, x_1311); -lean_ctor_set(x_1312, 1, x_3); -return x_1312; -} -else -{ -lean_object* x_1313; lean_object* x_1314; lean_object* x_1315; -x_1313 = lean_ctor_get(x_1310, 0); -lean_inc(x_1313); -lean_dec(x_1310); -x_1314 = l_Lean_mkNatLit(x_1313); -x_1315 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1315, 0, x_1314); -lean_ctor_set(x_1315, 1, x_3); -return x_1315; -} -} -} -else -{ -lean_object* x_1316; lean_object* x_1317; lean_object* x_1318; -lean_dec(x_1253); -lean_free_object(x_24); -lean_free_object(x_15); -lean_dec(x_27); -lean_dec(x_2); -x_1316 = lean_unsigned_to_nat(0u); -x_1317 = l_Lean_Syntax_getArg(x_1, x_1316); -lean_dec(x_1); -x_1318 = l_Lean_Syntax_isStrLit_x3f(x_1317); -lean_dec(x_1317); -if (lean_obj_tag(x_1318) == 0) -{ -lean_object* x_1319; lean_object* x_1320; -x_1319 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__6; -x_1320 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1320, 0, x_1319); -lean_ctor_set(x_1320, 1, x_3); -return x_1320; -} -else -{ -lean_object* x_1321; lean_object* x_1322; lean_object* x_1323; -x_1321 = lean_ctor_get(x_1318, 0); -lean_inc(x_1321); -lean_dec(x_1318); -x_1322 = l_Lean_mkStrLit(x_1321); -x_1323 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1323, 0, x_1322); -lean_ctor_set(x_1323, 1, x_3); -return x_1323; -} -} -} -else -{ -lean_object* x_1324; lean_object* x_1325; lean_object* x_1326; lean_object* x_1327; lean_object* x_1328; lean_object* x_1329; lean_object* x_1330; lean_object* x_1331; lean_object* x_1332; -lean_dec(x_1253); -lean_free_object(x_24); -lean_free_object(x_15); -lean_dec(x_27); -lean_dec(x_1); -x_1324 = l_Lean_Syntax_inhabited; -x_1325 = lean_unsigned_to_nat(0u); -x_1326 = lean_array_get(x_1324, x_4, x_1325); -x_1327 = lean_unsigned_to_nat(2u); -x_1328 = lean_array_get(x_1324, x_4, x_1327); -lean_dec(x_4); -x_1329 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__1___boxed), 6, 3); -lean_closure_set(x_1329, 0, x_26); -lean_closure_set(x_1329, 1, x_1326); -lean_closure_set(x_1329, 2, x_1328); -x_1330 = l_Lean_Unhygienic_MonadQuotation___closed__4; -x_1331 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___spec__1___rarg), 4, 2); -lean_closure_set(x_1331, 0, x_1330); -lean_closure_set(x_1331, 1, x_1329); -x_1332 = l_Lean_Unhygienic_run___rarg(x_1331); -x_1 = x_1332; -goto _start; -} -} -else -{ -lean_object* x_1334; lean_object* x_1335; lean_object* x_1336; lean_object* x_1337; lean_object* x_1338; lean_object* x_1339; lean_object* x_1340; lean_object* x_1341; lean_object* x_1342; -lean_dec(x_1253); -lean_free_object(x_24); -lean_free_object(x_15); -lean_dec(x_27); -lean_dec(x_1); -x_1334 = l_Lean_Syntax_inhabited; -x_1335 = lean_unsigned_to_nat(0u); -x_1336 = lean_array_get(x_1334, x_4, x_1335); -x_1337 = lean_unsigned_to_nat(2u); -x_1338 = lean_array_get(x_1334, x_4, x_1337); -lean_dec(x_4); -x_1339 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__2___boxed), 6, 3); -lean_closure_set(x_1339, 0, x_26); -lean_closure_set(x_1339, 1, x_1336); -lean_closure_set(x_1339, 2, x_1338); -x_1340 = l_Lean_Unhygienic_MonadQuotation___closed__4; -x_1341 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___spec__1___rarg), 4, 2); -lean_closure_set(x_1341, 0, x_1340); -lean_closure_set(x_1341, 1, x_1339); -x_1342 = l_Lean_Unhygienic_run___rarg(x_1341); -x_1 = x_1342; -goto _start; -} -} -else -{ -lean_object* x_1344; lean_object* x_1345; lean_object* x_1346; lean_object* x_1347; lean_object* x_1348; lean_object* x_1349; lean_object* x_1350; lean_object* x_1351; lean_object* x_1352; -lean_dec(x_1253); -lean_free_object(x_24); -lean_free_object(x_15); -lean_dec(x_27); -lean_dec(x_1); -x_1344 = l_Lean_Syntax_inhabited; -x_1345 = lean_unsigned_to_nat(0u); -x_1346 = lean_array_get(x_1344, x_4, x_1345); -x_1347 = lean_unsigned_to_nat(2u); -x_1348 = lean_array_get(x_1344, x_4, x_1347); -lean_dec(x_4); -x_1349 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__3___boxed), 6, 3); -lean_closure_set(x_1349, 0, x_26); -lean_closure_set(x_1349, 1, x_1346); -lean_closure_set(x_1349, 2, x_1348); -x_1350 = l_Lean_Unhygienic_MonadQuotation___closed__4; -x_1351 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___spec__1___rarg), 4, 2); -lean_closure_set(x_1351, 0, x_1350); -lean_closure_set(x_1351, 1, x_1349); -x_1352 = l_Lean_Unhygienic_run___rarg(x_1351); -x_1 = x_1352; -goto _start; -} -} -else -{ -lean_object* x_1354; lean_object* x_1355; lean_object* x_1356; lean_object* x_1357; lean_object* x_1358; lean_object* x_1359; uint8_t x_1360; -lean_dec(x_1253); -lean_free_object(x_24); -lean_free_object(x_15); -lean_dec(x_27); -lean_dec(x_1); -x_1354 = l_Lean_Syntax_inhabited; -x_1355 = lean_unsigned_to_nat(1u); -x_1356 = lean_array_get(x_1354, x_4, x_1355); -lean_dec(x_4); -x_1357 = l_Lean_Syntax_getArgs(x_1356); -lean_dec(x_1356); -x_1358 = lean_array_get_size(x_1357); -x_1359 = lean_unsigned_to_nat(0u); -x_1360 = lean_nat_dec_eq(x_1358, x_1359); -lean_dec(x_1358); -if (x_1360 == 0) -{ -lean_object* x_1361; -x_1361 = lean_array_get(x_1354, x_1357, x_1359); -lean_dec(x_1357); -x_1 = x_1361; -goto _start; -} -else -{ -lean_object* x_1363; lean_object* x_1364; lean_object* x_1365; lean_object* x_1366; lean_object* x_1367; lean_object* x_1368; lean_object* x_1369; -lean_dec(x_1357); -lean_dec(x_2); -x_1363 = l___private_Lean_Compiler_InitAttr_2__isUnitType___closed__1; -x_1364 = lean_name_mk_string(x_26, x_1363); -x_1365 = l_Lean_unitToExpr___lambda__1___closed__3; -x_1366 = lean_name_mk_string(x_1364, x_1365); -x_1367 = lean_box(0); -x_1368 = l_Lean_mkConst(x_1366, x_1367); -x_1369 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1369, 0, x_1368); -lean_ctor_set(x_1369, 1, x_3); -return x_1369; -} -} -} -else -{ -lean_object* x_1370; lean_object* x_1371; lean_object* x_1372; lean_object* x_1373; lean_object* x_1374; lean_object* x_1375; lean_object* x_1376; lean_object* x_1377; lean_object* x_1378; lean_object* x_1379; lean_object* x_1380; -lean_dec(x_1253); -lean_free_object(x_24); -lean_free_object(x_15); -lean_dec(x_27); -lean_dec(x_1); -x_1370 = l_Lean_Syntax_inhabited; -x_1371 = lean_unsigned_to_nat(2u); -x_1372 = lean_array_get(x_1370, x_4, x_1371); -x_1373 = lean_unsigned_to_nat(4u); -x_1374 = lean_array_get(x_1370, x_4, x_1373); -x_1375 = lean_unsigned_to_nat(6u); -x_1376 = lean_array_get(x_1370, x_4, x_1375); -lean_dec(x_4); -x_1377 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__4___boxed), 7, 4); -lean_closure_set(x_1377, 0, x_26); -lean_closure_set(x_1377, 1, x_1372); -lean_closure_set(x_1377, 2, x_1374); -lean_closure_set(x_1377, 3, x_1376); -x_1378 = l_Lean_Unhygienic_MonadQuotation___closed__4; -x_1379 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___spec__1___rarg), 4, 2); -lean_closure_set(x_1379, 0, x_1378); -lean_closure_set(x_1379, 1, x_1377); -x_1380 = l_Lean_Unhygienic_run___rarg(x_1379); -x_1 = x_1380; -goto _start; -} -} -else -{ -lean_object* x_1382; lean_object* x_1383; lean_object* x_1384; lean_object* x_1385; -lean_dec(x_1253); -lean_free_object(x_24); -lean_free_object(x_15); -lean_dec(x_27); -lean_dec(x_1); -x_1382 = l_Lean_Syntax_inhabited; -x_1383 = lean_unsigned_to_nat(0u); -x_1384 = lean_array_get(x_1382, x_4, x_1383); +lean_object* x_1299; lean_object* x_1300; lean_object* x_1301; lean_object* x_1302; lean_object* x_1303; lean_object* x_1304; lean_object* x_1305; +x_1299 = l_Lean_Syntax_getArg(x_1290, x_1282); +lean_dec(x_1290); +x_1300 = l_Lean_Syntax_getArg(x_1299, x_1288); +x_1301 = l_Lean_Syntax_getIdAt(x_1300, x_1288); +lean_dec(x_1300); +x_1302 = l_Lean_Syntax_getArg(x_1299, x_1282); +lean_dec(x_1299); +x_1303 = l_Lean_Syntax_getArg(x_1302, x_1288); +lean_dec(x_1302); +x_1304 = l_Lean_Syntax_getArg(x_1303, x_1282); +lean_dec(x_1303); lean_inc(x_2); -x_1385 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_1384, x_2, x_3); -if (lean_obj_tag(x_1385) == 0) +x_1305 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_1304, x_2, x_3); +if (lean_obj_tag(x_1305) == 0) { -lean_object* x_1386; lean_object* x_1387; lean_object* x_1388; lean_object* x_1389; lean_object* x_1390; lean_object* x_1391; lean_object* x_1392; lean_object* x_1393; lean_object* x_1394; -x_1386 = lean_ctor_get(x_1385, 0); -lean_inc(x_1386); -x_1387 = lean_ctor_get(x_1385, 1); -lean_inc(x_1387); -lean_dec(x_1385); -x_1388 = lean_unsigned_to_nat(1u); -x_1389 = lean_array_get(x_1382, x_4, x_1388); -lean_dec(x_4); -x_1390 = l_Lean_Syntax_getArgs(x_1389); -lean_dec(x_1389); -x_1391 = x_1390; -x_1392 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__1), 4, 2); -lean_closure_set(x_1392, 0, x_1383); -lean_closure_set(x_1392, 1, x_1391); -x_1393 = x_1392; -x_1394 = lean_apply_2(x_1393, x_2, x_1387); -if (lean_obj_tag(x_1394) == 0) -{ -lean_object* x_1395; lean_object* x_1396; lean_object* x_1397; lean_object* x_1398; lean_object* x_1399; -x_1395 = lean_ctor_get(x_1394, 0); -lean_inc(x_1395); -x_1396 = lean_ctor_get(x_1394, 1); -lean_inc(x_1396); -if (lean_is_exclusive(x_1394)) { - lean_ctor_release(x_1394, 0); - lean_ctor_release(x_1394, 1); - x_1397 = x_1394; +lean_object* x_1306; lean_object* x_1307; lean_object* x_1308; lean_object* x_1309; lean_object* x_1310; uint8_t x_1311; lean_object* x_1312; lean_object* x_1313; lean_object* x_1314; lean_object* x_1315; lean_object* x_1316; lean_object* x_1317; lean_object* x_1318; lean_object* x_1319; lean_object* x_1320; lean_object* x_1321; lean_object* x_1322; lean_object* x_1323; lean_object* x_1324; lean_object* x_1325; lean_object* x_1326; lean_object* x_1327; lean_object* x_1328; lean_object* x_1329; lean_object* x_1330; lean_object* x_1331; lean_object* x_1332; lean_object* x_1333; lean_object* x_1334; lean_object* x_1335; lean_object* x_1336; lean_object* x_1337; +x_1306 = lean_ctor_get(x_1305, 0); +lean_inc(x_1306); +x_1307 = lean_ctor_get(x_1305, 1); +lean_inc(x_1307); +lean_dec(x_1305); +x_1308 = l_Lean_Elab_Term_getLCtx(x_2, x_1307); +x_1309 = lean_ctor_get(x_1308, 0); +lean_inc(x_1309); +x_1310 = lean_ctor_get(x_1308, 1); +lean_inc(x_1310); +lean_dec(x_1308); +x_1311 = 0; +lean_inc_n(x_1301, 2); +x_1312 = lean_local_ctx_mk_local_decl(x_1309, x_1301, x_1301, x_1306, x_1311); +x_1313 = l_Array_eraseIdx___rarg(x_1284, x_1288); +x_1314 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_1310); +lean_dec(x_2); +x_1315 = lean_ctor_get(x_1314, 1); +lean_inc(x_1315); +lean_dec(x_1314); +x_1316 = l_Lean_Elab_Term_getMainModule___rarg(x_1315); +x_1317 = lean_ctor_get(x_1316, 1); +lean_inc(x_1317); +lean_dec(x_1316); +x_1318 = lean_name_mk_string(x_1293, x_1105); +x_1319 = l_Lean_nullKind___closed__1; +x_1320 = lean_name_mk_string(x_41, x_1319); +x_1321 = l_Array_empty___closed__1; +x_1322 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1313, x_1313, x_1288, x_1321); +lean_dec(x_1313); +x_1323 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1323, 0, x_1320); +lean_ctor_set(x_1323, 1, x_1322); +x_1324 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; +x_1325 = lean_array_push(x_1324, x_1323); +x_1326 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; +x_1327 = lean_array_push(x_1325, x_1326); +x_1328 = lean_array_push(x_1327, x_1286); +x_1329 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1329, 0, x_1318); +lean_ctor_set(x_1329, 1, x_1328); +x_1330 = lean_ctor_get(x_7, 0); +lean_inc(x_1330); +x_1331 = lean_ctor_get(x_7, 2); +lean_inc(x_1331); +x_1332 = lean_ctor_get(x_7, 3); +lean_inc(x_1332); +x_1333 = lean_ctor_get(x_7, 4); +lean_inc(x_1333); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + lean_ctor_release(x_7, 2); + lean_ctor_release(x_7, 3); + lean_ctor_release(x_7, 4); + x_1334 = x_7; } else { - lean_dec_ref(x_1394); + lean_dec_ref(x_7); + x_1334 = lean_box(0); +} +lean_inc(x_1312); +if (lean_is_scalar(x_1334)) { + x_1335 = lean_alloc_ctor(0, 5, 0); +} else { + x_1335 = x_1334; +} +lean_ctor_set(x_1335, 0, x_1330); +lean_ctor_set(x_1335, 1, x_1312); +lean_ctor_set(x_1335, 2, x_1331); +lean_ctor_set(x_1335, 3, x_1332); +lean_ctor_set(x_1335, 4, x_1333); +x_1336 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_1336, 0, x_1335); +lean_ctor_set(x_1336, 1, x_8); +lean_ctor_set(x_1336, 2, x_9); +lean_ctor_set(x_1336, 3, x_10); +lean_ctor_set(x_1336, 4, x_11); +lean_ctor_set(x_1336, 5, x_12); +lean_ctor_set(x_1336, 6, x_13); +lean_ctor_set(x_1336, 7, x_14); +lean_ctor_set(x_1336, 8, x_15); +lean_ctor_set(x_1336, 9, x_16); +lean_ctor_set(x_1336, 10, x_1); +lean_ctor_set_uint8(x_1336, sizeof(void*)*11, x_17); +lean_ctor_set_uint8(x_1336, sizeof(void*)*11 + 1, x_18); +lean_ctor_set_uint8(x_1336, sizeof(void*)*11 + 2, x_19); +x_1337 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_1329, x_1336, x_1317); +if (lean_obj_tag(x_1337) == 0) +{ +lean_object* x_1338; lean_object* x_1339; lean_object* x_1340; lean_object* x_1341; lean_object* x_1342; lean_object* x_1343; lean_object* x_1344; lean_object* x_1345; +x_1338 = lean_ctor_get(x_1337, 0); +lean_inc(x_1338); +x_1339 = lean_ctor_get(x_1337, 1); +lean_inc(x_1339); +if (lean_is_exclusive(x_1337)) { + lean_ctor_release(x_1337, 0); + lean_ctor_release(x_1337, 1); + x_1340 = x_1337; +} else { + lean_dec_ref(x_1337); + x_1340 = lean_box(0); +} +x_1341 = l_Lean_mkFVar(x_1301); +x_1342 = l_Lean_mkOptionalNode___closed__2; +x_1343 = lean_array_push(x_1342, x_1341); +x_1344 = l_Lean_LocalContext_mkLambda(x_1312, x_1343, x_1338); +lean_dec(x_1338); +lean_dec(x_1343); +if (lean_is_scalar(x_1340)) { + x_1345 = lean_alloc_ctor(0, 2, 0); +} else { + x_1345 = x_1340; +} +lean_ctor_set(x_1345, 0, x_1344); +lean_ctor_set(x_1345, 1, x_1339); +return x_1345; +} +else +{ +lean_object* x_1346; lean_object* x_1347; lean_object* x_1348; lean_object* x_1349; +lean_dec(x_1312); +lean_dec(x_1301); +x_1346 = lean_ctor_get(x_1337, 0); +lean_inc(x_1346); +x_1347 = lean_ctor_get(x_1337, 1); +lean_inc(x_1347); +if (lean_is_exclusive(x_1337)) { + lean_ctor_release(x_1337, 0); + lean_ctor_release(x_1337, 1); + x_1348 = x_1337; +} else { + lean_dec_ref(x_1337); + x_1348 = lean_box(0); +} +if (lean_is_scalar(x_1348)) { + x_1349 = lean_alloc_ctor(1, 2, 0); +} else { + x_1349 = x_1348; +} +lean_ctor_set(x_1349, 0, x_1346); +lean_ctor_set(x_1349, 1, x_1347); +return x_1349; +} +} +else +{ +lean_object* x_1350; lean_object* x_1351; lean_object* x_1352; lean_object* x_1353; +lean_dec(x_1301); +lean_dec(x_1293); +lean_dec(x_1286); +lean_dec(x_1284); +lean_dec(x_2); +lean_dec(x_16); +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_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_1350 = lean_ctor_get(x_1305, 0); +lean_inc(x_1350); +x_1351 = lean_ctor_get(x_1305, 1); +lean_inc(x_1351); +if (lean_is_exclusive(x_1305)) { + lean_ctor_release(x_1305, 0); + lean_ctor_release(x_1305, 1); + x_1352 = x_1305; +} else { + lean_dec_ref(x_1305); + x_1352 = lean_box(0); +} +if (lean_is_scalar(x_1352)) { + x_1353 = lean_alloc_ctor(1, 2, 0); +} else { + x_1353 = x_1352; +} +lean_ctor_set(x_1353, 0, x_1350); +lean_ctor_set(x_1353, 1, x_1351); +return x_1353; +} +} +else +{ +lean_object* x_1354; lean_object* x_1355; lean_object* x_1356; lean_object* x_1357; lean_object* x_1358; lean_object* x_1359; uint8_t x_1360; lean_object* x_1361; lean_object* x_1362; lean_object* x_1363; lean_object* x_1364; lean_object* x_1365; lean_object* x_1366; lean_object* x_1367; lean_object* x_1368; lean_object* x_1369; lean_object* x_1370; lean_object* x_1371; lean_object* x_1372; lean_object* x_1373; lean_object* x_1374; lean_object* x_1375; lean_object* x_1376; lean_object* x_1377; lean_object* x_1378; lean_object* x_1379; lean_object* x_1380; lean_object* x_1381; lean_object* x_1382; lean_object* x_1383; lean_object* x_1384; lean_object* x_1385; lean_object* x_1386; +lean_dec(x_1290); +x_1354 = l_Lean_Meta_rewriteCore___lambda__1___closed__4; +x_1355 = lean_name_mk_string(x_41, x_1354); +x_1356 = l_Lean_Elab_Term_getLCtx(x_2, x_3); +x_1357 = lean_ctor_get(x_1356, 0); +lean_inc(x_1357); +x_1358 = lean_ctor_get(x_1356, 1); +lean_inc(x_1358); +lean_dec(x_1356); +x_1359 = l___private_Lean_Elab_Quotation_9__exprPlaceholder; +x_1360 = 0; +lean_inc_n(x_1355, 2); +x_1361 = lean_local_ctx_mk_local_decl(x_1357, x_1355, x_1355, x_1359, x_1360); +x_1362 = l_Array_eraseIdx___rarg(x_1284, x_1288); +x_1363 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_1358); +lean_dec(x_2); +x_1364 = lean_ctor_get(x_1363, 1); +lean_inc(x_1364); +lean_dec(x_1363); +x_1365 = l_Lean_Elab_Term_getMainModule___rarg(x_1364); +x_1366 = lean_ctor_get(x_1365, 1); +lean_inc(x_1366); +lean_dec(x_1365); +x_1367 = lean_name_mk_string(x_1293, x_1105); +x_1368 = l_Lean_nullKind___closed__1; +x_1369 = lean_name_mk_string(x_41, x_1368); +x_1370 = l_Array_empty___closed__1; +x_1371 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1362, x_1362, x_1288, x_1370); +lean_dec(x_1362); +x_1372 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1372, 0, x_1369); +lean_ctor_set(x_1372, 1, x_1371); +x_1373 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; +x_1374 = lean_array_push(x_1373, x_1372); +x_1375 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; +x_1376 = lean_array_push(x_1374, x_1375); +x_1377 = lean_array_push(x_1376, x_1286); +x_1378 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1378, 0, x_1367); +lean_ctor_set(x_1378, 1, x_1377); +x_1379 = lean_ctor_get(x_7, 0); +lean_inc(x_1379); +x_1380 = lean_ctor_get(x_7, 2); +lean_inc(x_1380); +x_1381 = lean_ctor_get(x_7, 3); +lean_inc(x_1381); +x_1382 = lean_ctor_get(x_7, 4); +lean_inc(x_1382); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + lean_ctor_release(x_7, 2); + lean_ctor_release(x_7, 3); + lean_ctor_release(x_7, 4); + x_1383 = x_7; +} else { + lean_dec_ref(x_7); + x_1383 = lean_box(0); +} +lean_inc(x_1361); +if (lean_is_scalar(x_1383)) { + x_1384 = lean_alloc_ctor(0, 5, 0); +} else { + x_1384 = x_1383; +} +lean_ctor_set(x_1384, 0, x_1379); +lean_ctor_set(x_1384, 1, x_1361); +lean_ctor_set(x_1384, 2, x_1380); +lean_ctor_set(x_1384, 3, x_1381); +lean_ctor_set(x_1384, 4, x_1382); +x_1385 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_1385, 0, x_1384); +lean_ctor_set(x_1385, 1, x_8); +lean_ctor_set(x_1385, 2, x_9); +lean_ctor_set(x_1385, 3, x_10); +lean_ctor_set(x_1385, 4, x_11); +lean_ctor_set(x_1385, 5, x_12); +lean_ctor_set(x_1385, 6, x_13); +lean_ctor_set(x_1385, 7, x_14); +lean_ctor_set(x_1385, 8, x_15); +lean_ctor_set(x_1385, 9, x_16); +lean_ctor_set(x_1385, 10, x_1); +lean_ctor_set_uint8(x_1385, sizeof(void*)*11, x_17); +lean_ctor_set_uint8(x_1385, sizeof(void*)*11 + 1, x_18); +lean_ctor_set_uint8(x_1385, sizeof(void*)*11 + 2, x_19); +x_1386 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_1378, x_1385, x_1366); +if (lean_obj_tag(x_1386) == 0) +{ +lean_object* x_1387; lean_object* x_1388; lean_object* x_1389; lean_object* x_1390; lean_object* x_1391; lean_object* x_1392; lean_object* x_1393; lean_object* x_1394; +x_1387 = lean_ctor_get(x_1386, 0); +lean_inc(x_1387); +x_1388 = lean_ctor_get(x_1386, 1); +lean_inc(x_1388); +if (lean_is_exclusive(x_1386)) { + lean_ctor_release(x_1386, 0); + lean_ctor_release(x_1386, 1); + x_1389 = x_1386; +} else { + lean_dec_ref(x_1386); + x_1389 = lean_box(0); +} +x_1390 = l_Lean_mkFVar(x_1355); +x_1391 = l_Lean_mkOptionalNode___closed__2; +x_1392 = lean_array_push(x_1391, x_1390); +x_1393 = l_Lean_LocalContext_mkLambda(x_1361, x_1392, x_1387); +lean_dec(x_1387); +lean_dec(x_1392); +if (lean_is_scalar(x_1389)) { + x_1394 = lean_alloc_ctor(0, 2, 0); +} else { + x_1394 = x_1389; +} +lean_ctor_set(x_1394, 0, x_1393); +lean_ctor_set(x_1394, 1, x_1388); +return x_1394; +} +else +{ +lean_object* x_1395; lean_object* x_1396; lean_object* x_1397; lean_object* x_1398; +lean_dec(x_1361); +lean_dec(x_1355); +x_1395 = lean_ctor_get(x_1386, 0); +lean_inc(x_1395); +x_1396 = lean_ctor_get(x_1386, 1); +lean_inc(x_1396); +if (lean_is_exclusive(x_1386)) { + lean_ctor_release(x_1386, 0); + lean_ctor_release(x_1386, 1); + x_1397 = x_1386; +} else { + lean_dec_ref(x_1386); x_1397 = lean_box(0); } -x_1398 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_1395, x_1395, x_1383, x_1386); -lean_dec(x_1395); if (lean_is_scalar(x_1397)) { - x_1399 = lean_alloc_ctor(0, 2, 0); + x_1398 = lean_alloc_ctor(1, 2, 0); } else { - x_1399 = x_1397; + x_1398 = x_1397; +} +lean_ctor_set(x_1398, 0, x_1395); +lean_ctor_set(x_1398, 1, x_1396); +return x_1398; +} } -lean_ctor_set(x_1399, 0, x_1398); -lean_ctor_set(x_1399, 1, x_1396); -return x_1399; } else { -lean_object* x_1400; lean_object* x_1401; lean_object* x_1402; lean_object* x_1403; -lean_dec(x_1386); -x_1400 = lean_ctor_get(x_1394, 0); -lean_inc(x_1400); -x_1401 = lean_ctor_get(x_1394, 1); +lean_object* x_1399; lean_object* x_1400; lean_object* x_1401; lean_object* x_1402; lean_object* x_1403; uint8_t x_1404; lean_object* x_1405; lean_object* x_1406; lean_object* x_1407; lean_object* x_1408; lean_object* x_1409; lean_object* x_1410; lean_object* x_1411; lean_object* x_1412; lean_object* x_1413; lean_object* x_1414; lean_object* x_1415; lean_object* x_1416; lean_object* x_1417; lean_object* x_1418; lean_object* x_1419; lean_object* x_1420; lean_object* x_1421; lean_object* x_1422; lean_object* x_1423; lean_object* x_1424; lean_object* x_1425; lean_object* x_1426; lean_object* x_1427; lean_object* x_1428; lean_object* x_1429; lean_object* x_1430; +x_1399 = l_Lean_Syntax_getIdAt(x_1290, x_1288); +lean_dec(x_1290); +x_1400 = l_Lean_Elab_Term_getLCtx(x_2, x_3); +x_1401 = lean_ctor_get(x_1400, 0); lean_inc(x_1401); -if (lean_is_exclusive(x_1394)) { - lean_ctor_release(x_1394, 0); - lean_ctor_release(x_1394, 1); - x_1402 = x_1394; -} else { - lean_dec_ref(x_1394); - x_1402 = lean_box(0); -} -if (lean_is_scalar(x_1402)) { - x_1403 = lean_alloc_ctor(1, 2, 0); -} else { - x_1403 = x_1402; -} -lean_ctor_set(x_1403, 0, x_1400); -lean_ctor_set(x_1403, 1, x_1401); -return x_1403; -} -} -else -{ -lean_object* x_1404; lean_object* x_1405; lean_object* x_1406; lean_object* x_1407; -lean_dec(x_4); +x_1402 = lean_ctor_get(x_1400, 1); +lean_inc(x_1402); +lean_dec(x_1400); +x_1403 = l___private_Lean_Elab_Quotation_9__exprPlaceholder; +x_1404 = 0; +lean_inc_n(x_1399, 2); +x_1405 = lean_local_ctx_mk_local_decl(x_1401, x_1399, x_1399, x_1403, x_1404); +x_1406 = l_Array_eraseIdx___rarg(x_1284, x_1288); +x_1407 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_1402); lean_dec(x_2); -x_1404 = lean_ctor_get(x_1385, 0); -lean_inc(x_1404); -x_1405 = lean_ctor_get(x_1385, 1); -lean_inc(x_1405); -if (lean_is_exclusive(x_1385)) { - lean_ctor_release(x_1385, 0); - lean_ctor_release(x_1385, 1); - x_1406 = x_1385; -} else { - lean_dec_ref(x_1385); - x_1406 = lean_box(0); -} -if (lean_is_scalar(x_1406)) { - x_1407 = lean_alloc_ctor(1, 2, 0); -} else { - x_1407 = x_1406; -} -lean_ctor_set(x_1407, 0, x_1404); -lean_ctor_set(x_1407, 1, x_1405); -return x_1407; -} -} -} -else -{ -lean_object* x_1408; lean_object* x_1409; lean_object* x_1410; lean_object* x_1411; lean_object* x_1412; uint8_t x_1413; lean_object* x_1414; lean_object* x_1415; lean_object* x_1416; lean_object* x_1417; lean_object* x_1418; -lean_dec(x_1253); -lean_free_object(x_24); -lean_free_object(x_15); -lean_dec(x_27); -lean_dec(x_1); -x_1408 = l_Lean_Syntax_inhabited; -x_1409 = lean_unsigned_to_nat(1u); -x_1410 = lean_array_get(x_1408, x_4, x_1409); -x_1411 = lean_unsigned_to_nat(0u); -x_1412 = l_Lean_Syntax_getArg(x_1410, x_1411); -x_1413 = l_Lean_Syntax_isIdent(x_1412); -x_1414 = lean_unsigned_to_nat(4u); -x_1415 = l_Lean_Syntax_getArg(x_1410, x_1414); -lean_dec(x_1410); -x_1416 = lean_unsigned_to_nat(3u); -x_1417 = lean_array_get(x_1408, x_4, x_1416); -lean_dec(x_4); -if (x_1413 == 0) -{ -lean_object* x_1466; -x_1466 = l_Lean_Syntax_getIdAt(x_1412, x_1411); -lean_dec(x_1412); -x_1418 = x_1466; -goto block_1465; -} -else -{ -lean_object* x_1467; -x_1467 = l_Lean_Syntax_getId(x_1412); -lean_dec(x_1412); -x_1418 = x_1467; -goto block_1465; -} -block_1465: -{ -lean_object* x_1419; -lean_inc(x_2); -x_1419 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_1415, x_2, x_3); -if (lean_obj_tag(x_1419) == 0) -{ -lean_object* x_1420; lean_object* x_1421; lean_object* x_1422; lean_object* x_1423; lean_object* x_1424; lean_object* x_1425; lean_object* x_1426; lean_object* x_1427; lean_object* x_1428; lean_object* x_1429; lean_object* x_1430; lean_object* x_1431; lean_object* x_1432; lean_object* x_1433; lean_object* x_1434; lean_object* x_1435; lean_object* x_1436; uint8_t x_1437; uint8_t x_1438; uint8_t x_1439; lean_object* x_1440; lean_object* x_1441; lean_object* x_1442; lean_object* x_1443; lean_object* x_1444; lean_object* x_1445; lean_object* x_1446; lean_object* x_1447; lean_object* x_1448; -x_1420 = lean_ctor_get(x_1419, 0); -lean_inc(x_1420); -x_1421 = lean_ctor_get(x_1419, 1); -lean_inc(x_1421); -lean_dec(x_1419); -x_1422 = l_Lean_Elab_Term_getLCtx(x_2, x_1421); -x_1423 = lean_ctor_get(x_1422, 0); +x_1408 = lean_ctor_get(x_1407, 1); +lean_inc(x_1408); +lean_dec(x_1407); +x_1409 = l_Lean_Elab_Term_getMainModule___rarg(x_1408); +x_1410 = lean_ctor_get(x_1409, 1); +lean_inc(x_1410); +lean_dec(x_1409); +x_1411 = lean_name_mk_string(x_1293, x_1105); +x_1412 = l_Lean_nullKind___closed__1; +x_1413 = lean_name_mk_string(x_41, x_1412); +x_1414 = l_Array_empty___closed__1; +x_1415 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1406, x_1406, x_1288, x_1414); +lean_dec(x_1406); +x_1416 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1416, 0, x_1413); +lean_ctor_set(x_1416, 1, x_1415); +x_1417 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; +x_1418 = lean_array_push(x_1417, x_1416); +x_1419 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; +x_1420 = lean_array_push(x_1418, x_1419); +x_1421 = lean_array_push(x_1420, x_1286); +x_1422 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1422, 0, x_1411); +lean_ctor_set(x_1422, 1, x_1421); +x_1423 = lean_ctor_get(x_7, 0); lean_inc(x_1423); -x_1424 = lean_ctor_get(x_1422, 1); +x_1424 = lean_ctor_get(x_7, 2); lean_inc(x_1424); -lean_dec(x_1422); -x_1425 = l___private_Lean_Elab_Quotation_9__exprPlaceholder; -lean_inc_n(x_1418, 2); -x_1426 = lean_local_ctx_mk_let_decl(x_1423, x_1418, x_1418, x_1425, x_1420); -x_1427 = lean_ctor_get(x_2, 0); -lean_inc(x_1427); -x_1428 = lean_ctor_get(x_2, 1); -lean_inc(x_1428); -x_1429 = lean_ctor_get(x_2, 2); -lean_inc(x_1429); -x_1430 = lean_ctor_get(x_2, 3); -lean_inc(x_1430); -x_1431 = lean_ctor_get(x_2, 4); -lean_inc(x_1431); -x_1432 = lean_ctor_get(x_2, 5); -lean_inc(x_1432); -x_1433 = lean_ctor_get(x_2, 6); -lean_inc(x_1433); -x_1434 = lean_ctor_get(x_2, 7); -lean_inc(x_1434); -x_1435 = lean_ctor_get(x_2, 8); -lean_inc(x_1435); -x_1436 = lean_ctor_get(x_2, 9); -lean_inc(x_1436); -x_1437 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_1438 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); -x_1439 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 2); -if (lean_is_exclusive(x_2)) { - lean_ctor_release(x_2, 0); - lean_ctor_release(x_2, 1); - lean_ctor_release(x_2, 2); - lean_ctor_release(x_2, 3); - lean_ctor_release(x_2, 4); - lean_ctor_release(x_2, 5); - lean_ctor_release(x_2, 6); - lean_ctor_release(x_2, 7); - lean_ctor_release(x_2, 8); - lean_ctor_release(x_2, 9); - x_1440 = x_2; -} else { - lean_dec_ref(x_2); - x_1440 = lean_box(0); -} -x_1441 = lean_ctor_get(x_1427, 0); -lean_inc(x_1441); -x_1442 = lean_ctor_get(x_1427, 2); -lean_inc(x_1442); -x_1443 = lean_ctor_get(x_1427, 3); -lean_inc(x_1443); -x_1444 = lean_ctor_get(x_1427, 4); -lean_inc(x_1444); -if (lean_is_exclusive(x_1427)) { - lean_ctor_release(x_1427, 0); - lean_ctor_release(x_1427, 1); - lean_ctor_release(x_1427, 2); - lean_ctor_release(x_1427, 3); - lean_ctor_release(x_1427, 4); - x_1445 = x_1427; -} else { - lean_dec_ref(x_1427); - x_1445 = lean_box(0); -} +x_1425 = lean_ctor_get(x_7, 3); +lean_inc(x_1425); +x_1426 = lean_ctor_get(x_7, 4); lean_inc(x_1426); -if (lean_is_scalar(x_1445)) { - x_1446 = lean_alloc_ctor(0, 5, 0); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + lean_ctor_release(x_7, 2); + lean_ctor_release(x_7, 3); + lean_ctor_release(x_7, 4); + x_1427 = x_7; } else { - x_1446 = x_1445; + lean_dec_ref(x_7); + x_1427 = lean_box(0); } -lean_ctor_set(x_1446, 0, x_1441); -lean_ctor_set(x_1446, 1, x_1426); -lean_ctor_set(x_1446, 2, x_1442); -lean_ctor_set(x_1446, 3, x_1443); -lean_ctor_set(x_1446, 4, x_1444); -if (lean_is_scalar(x_1440)) { - x_1447 = lean_alloc_ctor(0, 10, 3); +lean_inc(x_1405); +if (lean_is_scalar(x_1427)) { + x_1428 = lean_alloc_ctor(0, 5, 0); } else { - x_1447 = x_1440; + x_1428 = x_1427; } -lean_ctor_set(x_1447, 0, x_1446); -lean_ctor_set(x_1447, 1, x_1428); -lean_ctor_set(x_1447, 2, x_1429); -lean_ctor_set(x_1447, 3, x_1430); -lean_ctor_set(x_1447, 4, x_1431); -lean_ctor_set(x_1447, 5, x_1432); -lean_ctor_set(x_1447, 6, x_1433); -lean_ctor_set(x_1447, 7, x_1434); -lean_ctor_set(x_1447, 8, x_1435); -lean_ctor_set(x_1447, 9, x_1436); -lean_ctor_set_uint8(x_1447, sizeof(void*)*10, x_1437); -lean_ctor_set_uint8(x_1447, sizeof(void*)*10 + 1, x_1438); -lean_ctor_set_uint8(x_1447, sizeof(void*)*10 + 2, x_1439); -x_1448 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_1417, x_1447, x_1424); -if (lean_obj_tag(x_1448) == 0) +lean_ctor_set(x_1428, 0, x_1423); +lean_ctor_set(x_1428, 1, x_1405); +lean_ctor_set(x_1428, 2, x_1424); +lean_ctor_set(x_1428, 3, x_1425); +lean_ctor_set(x_1428, 4, x_1426); +x_1429 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_1429, 0, x_1428); +lean_ctor_set(x_1429, 1, x_8); +lean_ctor_set(x_1429, 2, x_9); +lean_ctor_set(x_1429, 3, x_10); +lean_ctor_set(x_1429, 4, x_11); +lean_ctor_set(x_1429, 5, x_12); +lean_ctor_set(x_1429, 6, x_13); +lean_ctor_set(x_1429, 7, x_14); +lean_ctor_set(x_1429, 8, x_15); +lean_ctor_set(x_1429, 9, x_16); +lean_ctor_set(x_1429, 10, x_1); +lean_ctor_set_uint8(x_1429, sizeof(void*)*11, x_17); +lean_ctor_set_uint8(x_1429, sizeof(void*)*11 + 1, x_18); +lean_ctor_set_uint8(x_1429, sizeof(void*)*11 + 2, x_19); +x_1430 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_1422, x_1429, x_1410); +if (lean_obj_tag(x_1430) == 0) { -lean_object* x_1449; lean_object* x_1450; lean_object* x_1451; lean_object* x_1452; lean_object* x_1453; lean_object* x_1454; lean_object* x_1455; lean_object* x_1456; -x_1449 = lean_ctor_get(x_1448, 0); -lean_inc(x_1449); -x_1450 = lean_ctor_get(x_1448, 1); -lean_inc(x_1450); -if (lean_is_exclusive(x_1448)) { - lean_ctor_release(x_1448, 0); - lean_ctor_release(x_1448, 1); - x_1451 = x_1448; +lean_object* x_1431; lean_object* x_1432; lean_object* x_1433; lean_object* x_1434; lean_object* x_1435; lean_object* x_1436; lean_object* x_1437; lean_object* x_1438; +x_1431 = lean_ctor_get(x_1430, 0); +lean_inc(x_1431); +x_1432 = lean_ctor_get(x_1430, 1); +lean_inc(x_1432); +if (lean_is_exclusive(x_1430)) { + lean_ctor_release(x_1430, 0); + lean_ctor_release(x_1430, 1); + x_1433 = x_1430; } else { - lean_dec_ref(x_1448); - x_1451 = lean_box(0); + lean_dec_ref(x_1430); + x_1433 = lean_box(0); } -x_1452 = l_Lean_mkFVar(x_1418); -x_1453 = l_Lean_mkOptionalNode___closed__2; -x_1454 = lean_array_push(x_1453, x_1452); -x_1455 = l_Lean_LocalContext_mkLambda(x_1426, x_1454, x_1449); -lean_dec(x_1449); -lean_dec(x_1454); -if (lean_is_scalar(x_1451)) { - x_1456 = lean_alloc_ctor(0, 2, 0); +x_1434 = l_Lean_mkFVar(x_1399); +x_1435 = l_Lean_mkOptionalNode___closed__2; +x_1436 = lean_array_push(x_1435, x_1434); +x_1437 = l_Lean_LocalContext_mkLambda(x_1405, x_1436, x_1431); +lean_dec(x_1431); +lean_dec(x_1436); +if (lean_is_scalar(x_1433)) { + x_1438 = lean_alloc_ctor(0, 2, 0); } else { - x_1456 = x_1451; + x_1438 = x_1433; } -lean_ctor_set(x_1456, 0, x_1455); -lean_ctor_set(x_1456, 1, x_1450); -return x_1456; +lean_ctor_set(x_1438, 0, x_1437); +lean_ctor_set(x_1438, 1, x_1432); +return x_1438; } else { -lean_object* x_1457; lean_object* x_1458; lean_object* x_1459; lean_object* x_1460; -lean_dec(x_1426); -lean_dec(x_1418); -x_1457 = lean_ctor_get(x_1448, 0); -lean_inc(x_1457); -x_1458 = lean_ctor_get(x_1448, 1); -lean_inc(x_1458); -if (lean_is_exclusive(x_1448)) { - lean_ctor_release(x_1448, 0); - lean_ctor_release(x_1448, 1); - x_1459 = x_1448; +lean_object* x_1439; lean_object* x_1440; lean_object* x_1441; lean_object* x_1442; +lean_dec(x_1405); +lean_dec(x_1399); +x_1439 = lean_ctor_get(x_1430, 0); +lean_inc(x_1439); +x_1440 = lean_ctor_get(x_1430, 1); +lean_inc(x_1440); +if (lean_is_exclusive(x_1430)) { + lean_ctor_release(x_1430, 0); + lean_ctor_release(x_1430, 1); + x_1441 = x_1430; } else { - lean_dec_ref(x_1448); + lean_dec_ref(x_1430); + x_1441 = lean_box(0); +} +if (lean_is_scalar(x_1441)) { + x_1442 = lean_alloc_ctor(1, 2, 0); +} else { + x_1442 = x_1441; +} +lean_ctor_set(x_1442, 0, x_1439); +lean_ctor_set(x_1442, 1, x_1440); +return x_1442; +} +} +} +else +{ +lean_dec(x_1284); +lean_dec(x_16); +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_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_1 = x_1286; +goto _start; +} +} +} +else +{ +lean_object* x_1444; lean_object* x_1445; lean_object* x_1446; +lean_dec(x_1080); +lean_free_object(x_39); +lean_free_object(x_30); +lean_dec(x_42); +lean_dec(x_16); +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_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_1444 = l_Lean_Syntax_inhabited; +x_1445 = lean_unsigned_to_nat(0u); +x_1446 = lean_array_get(x_1444, x_4, x_1445); +lean_dec(x_4); +if (lean_obj_tag(x_1446) == 3) +{ +lean_object* x_1447; lean_object* x_1448; lean_object* x_1449; lean_object* x_1450; +x_1447 = lean_ctor_get(x_1446, 2); +lean_inc(x_1447); +x_1448 = lean_ctor_get(x_1446, 3); +lean_inc(x_1448); +lean_dec(x_1446); +x_1449 = lean_box(0); +lean_inc(x_2); +x_1450 = l_Lean_Elab_Term_resolveName(x_1447, x_1448, x_1449, x_2, x_3); +if (lean_obj_tag(x_1450) == 0) +{ +lean_object* x_1451; +x_1451 = lean_ctor_get(x_1450, 0); +lean_inc(x_1451); +if (lean_obj_tag(x_1451) == 0) +{ +lean_object* x_1452; lean_object* x_1453; lean_object* x_1454; lean_object* x_1455; +x_1452 = lean_ctor_get(x_1450, 1); +lean_inc(x_1452); +lean_dec(x_1450); +x_1453 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; +x_1454 = l_unreachable_x21___rarg(x_1453); +x_1455 = lean_apply_2(x_1454, x_2, x_1452); +return x_1455; +} +else +{ +lean_object* x_1456; lean_object* x_1457; +lean_dec(x_2); +x_1456 = lean_ctor_get(x_1451, 0); +lean_inc(x_1456); +lean_dec(x_1451); +x_1457 = lean_ctor_get(x_1456, 0); +lean_inc(x_1457); +switch (lean_obj_tag(x_1457)) { +case 0: +{ +lean_object* x_1458; lean_object* x_1459; lean_object* x_1460; lean_object* x_1461; lean_object* x_1462; +x_1458 = lean_ctor_get(x_1450, 1); +lean_inc(x_1458); +if (lean_is_exclusive(x_1450)) { + lean_ctor_release(x_1450, 0); + lean_ctor_release(x_1450, 1); + x_1459 = x_1450; +} else { + lean_dec_ref(x_1450); x_1459 = lean_box(0); } +x_1460 = lean_ctor_get(x_1456, 1); +lean_inc(x_1460); +lean_dec(x_1456); +x_1461 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__2(x_41, x_1457, x_1460); if (lean_is_scalar(x_1459)) { - x_1460 = lean_alloc_ctor(1, 2, 0); + x_1462 = lean_alloc_ctor(0, 2, 0); } else { - x_1460 = x_1459; + x_1462 = x_1459; } -lean_ctor_set(x_1460, 0, x_1457); -lean_ctor_set(x_1460, 1, x_1458); -return x_1460; +lean_ctor_set(x_1462, 0, x_1461); +lean_ctor_set(x_1462, 1, x_1458); +return x_1462; } -} -else +case 1: { -lean_object* x_1461; lean_object* x_1462; lean_object* x_1463; lean_object* x_1464; -lean_dec(x_1418); -lean_dec(x_1417); -lean_dec(x_2); -x_1461 = lean_ctor_get(x_1419, 0); -lean_inc(x_1461); -x_1462 = lean_ctor_get(x_1419, 1); -lean_inc(x_1462); -if (lean_is_exclusive(x_1419)) { - lean_ctor_release(x_1419, 0); - lean_ctor_release(x_1419, 1); - x_1463 = x_1419; +lean_object* x_1463; lean_object* x_1464; lean_object* x_1465; lean_object* x_1466; lean_object* x_1467; +x_1463 = lean_ctor_get(x_1450, 1); +lean_inc(x_1463); +if (lean_is_exclusive(x_1450)) { + lean_ctor_release(x_1450, 0); + lean_ctor_release(x_1450, 1); + x_1464 = x_1450; } else { - lean_dec_ref(x_1419); - x_1463 = lean_box(0); + lean_dec_ref(x_1450); + x_1464 = lean_box(0); } -if (lean_is_scalar(x_1463)) { - x_1464 = lean_alloc_ctor(1, 2, 0); +x_1465 = lean_ctor_get(x_1456, 1); +lean_inc(x_1465); +lean_dec(x_1456); +x_1466 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__3(x_41, x_1457, x_1465); +if (lean_is_scalar(x_1464)) { + x_1467 = lean_alloc_ctor(0, 2, 0); } else { - x_1464 = x_1463; + x_1467 = x_1464; } -lean_ctor_set(x_1464, 0, x_1461); -lean_ctor_set(x_1464, 1, x_1462); -return x_1464; +lean_ctor_set(x_1467, 0, x_1466); +lean_ctor_set(x_1467, 1, x_1463); +return x_1467; } -} -} -} -else +case 2: { -lean_object* x_1468; lean_object* x_1469; lean_object* x_1470; lean_object* x_1471; lean_object* x_1472; lean_object* x_1473; lean_object* x_1474; lean_object* x_1475; uint8_t x_1476; -lean_dec(x_1253); -lean_free_object(x_24); -lean_free_object(x_15); -lean_dec(x_27); -lean_dec(x_1); -x_1468 = l_Lean_Syntax_inhabited; -x_1469 = lean_unsigned_to_nat(1u); -x_1470 = lean_array_get(x_1468, x_4, x_1469); -x_1471 = l_Lean_Syntax_getArgs(x_1470); -lean_dec(x_1470); -x_1472 = lean_unsigned_to_nat(3u); -x_1473 = lean_array_get(x_1468, x_4, x_1472); -lean_dec(x_4); -x_1474 = lean_array_get_size(x_1471); -x_1475 = lean_unsigned_to_nat(0u); -x_1476 = lean_nat_dec_eq(x_1474, x_1475); -lean_dec(x_1474); -if (x_1476 == 0) +lean_object* x_1468; lean_object* x_1469; lean_object* x_1470; lean_object* x_1471; lean_object* x_1472; +x_1468 = lean_ctor_get(x_1450, 1); +lean_inc(x_1468); +if (lean_is_exclusive(x_1450)) { + lean_ctor_release(x_1450, 0); + lean_ctor_release(x_1450, 1); + x_1469 = x_1450; +} else { + lean_dec_ref(x_1450); + x_1469 = lean_box(0); +} +x_1470 = lean_ctor_get(x_1456, 1); +lean_inc(x_1470); +lean_dec(x_1456); +x_1471 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__4(x_41, x_1457, x_1470); +if (lean_is_scalar(x_1469)) { + x_1472 = lean_alloc_ctor(0, 2, 0); +} else { + x_1472 = x_1469; +} +lean_ctor_set(x_1472, 0, x_1471); +lean_ctor_set(x_1472, 1, x_1468); +return x_1472; +} +case 3: { -lean_object* x_1477; lean_object* x_1478; lean_object* x_1479; lean_object* x_1480; lean_object* x_1481; uint8_t x_1482; -x_1477 = lean_array_get(x_1468, x_1471, x_1475); -x_1478 = lean_name_mk_string(x_26, x_1250); -x_1479 = lean_name_mk_string(x_1478, x_1254); -x_1480 = lean_name_mk_string(x_1479, x_1265); +lean_object* x_1473; lean_object* x_1474; lean_object* x_1475; lean_object* x_1476; lean_object* x_1477; +x_1473 = lean_ctor_get(x_1450, 1); +lean_inc(x_1473); +if (lean_is_exclusive(x_1450)) { + lean_ctor_release(x_1450, 0); + lean_ctor_release(x_1450, 1); + x_1474 = x_1450; +} else { + lean_dec_ref(x_1450); + x_1474 = lean_box(0); +} +x_1475 = lean_ctor_get(x_1456, 1); +lean_inc(x_1475); +lean_dec(x_1456); +x_1476 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__5(x_41, x_1457, x_1475); +if (lean_is_scalar(x_1474)) { + x_1477 = lean_alloc_ctor(0, 2, 0); +} else { + x_1477 = x_1474; +} +lean_ctor_set(x_1477, 0, x_1476); +lean_ctor_set(x_1477, 1, x_1473); +return x_1477; +} +case 4: +{ +lean_object* x_1478; lean_object* x_1479; lean_object* x_1480; lean_object* x_1481; lean_object* x_1482; lean_object* x_1483; lean_object* x_1484; +x_1478 = lean_ctor_get(x_1450, 1); +lean_inc(x_1478); +if (lean_is_exclusive(x_1450)) { + lean_ctor_release(x_1450, 0); + lean_ctor_release(x_1450, 1); + x_1479 = x_1450; +} else { + lean_dec_ref(x_1450); + x_1479 = lean_box(0); +} +x_1480 = lean_ctor_get(x_1456, 1); lean_inc(x_1480); -x_1481 = lean_name_mk_string(x_1480, x_1276); -lean_inc(x_1477); -x_1482 = l_Lean_Syntax_isOfKind(x_1477, x_1481); -lean_dec(x_1481); -if (x_1482 == 0) +lean_dec(x_1456); +x_1481 = lean_ctor_get(x_1457, 0); +lean_inc(x_1481); +lean_dec(x_1457); +x_1482 = l_Lean_mkConst(x_1481, x_1449); +x_1483 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__6(x_41, x_1482, x_1480); +if (lean_is_scalar(x_1479)) { + x_1484 = lean_alloc_ctor(0, 2, 0); +} else { + x_1484 = x_1479; +} +lean_ctor_set(x_1484, 0, x_1483); +lean_ctor_set(x_1484, 1, x_1478); +return x_1484; +} +case 5: { -lean_object* x_1483; lean_object* x_1484; uint8_t x_1485; -x_1483 = l_Lean_mkHole___closed__1; -lean_inc(x_1480); -x_1484 = lean_name_mk_string(x_1480, x_1483); -lean_inc(x_1477); -x_1485 = l_Lean_Syntax_isOfKind(x_1477, x_1484); -lean_dec(x_1484); -if (x_1485 == 0) +lean_object* x_1485; lean_object* x_1486; lean_object* x_1487; lean_object* x_1488; lean_object* x_1489; +x_1485 = lean_ctor_get(x_1450, 1); +lean_inc(x_1485); +if (lean_is_exclusive(x_1450)) { + lean_ctor_release(x_1450, 0); + lean_ctor_release(x_1450, 1); + x_1486 = x_1450; +} else { + lean_dec_ref(x_1450); + x_1486 = lean_box(0); +} +x_1487 = lean_ctor_get(x_1456, 1); +lean_inc(x_1487); +lean_dec(x_1456); +x_1488 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__7(x_41, x_1457, x_1487); +if (lean_is_scalar(x_1486)) { + x_1489 = lean_alloc_ctor(0, 2, 0); +} else { + x_1489 = x_1486; +} +lean_ctor_set(x_1489, 0, x_1488); +lean_ctor_set(x_1489, 1, x_1485); +return x_1489; +} +case 6: { -lean_object* x_1486; lean_object* x_1487; lean_object* x_1488; lean_object* x_1489; lean_object* x_1490; lean_object* x_1491; lean_object* x_1492; -x_1486 = l_Lean_Syntax_getArg(x_1477, x_1469); -lean_dec(x_1477); -x_1487 = l_Lean_Syntax_getArg(x_1486, x_1475); -x_1488 = l_Lean_Syntax_getIdAt(x_1487, x_1475); -lean_dec(x_1487); -x_1489 = l_Lean_Syntax_getArg(x_1486, x_1469); -lean_dec(x_1486); -x_1490 = l_Lean_Syntax_getArg(x_1489, x_1475); -lean_dec(x_1489); -x_1491 = l_Lean_Syntax_getArg(x_1490, x_1469); -lean_dec(x_1490); -lean_inc(x_2); -x_1492 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_1491, x_2, x_3); -if (lean_obj_tag(x_1492) == 0) +lean_object* x_1490; lean_object* x_1491; lean_object* x_1492; lean_object* x_1493; lean_object* x_1494; +x_1490 = lean_ctor_get(x_1450, 1); +lean_inc(x_1490); +if (lean_is_exclusive(x_1450)) { + lean_ctor_release(x_1450, 0); + lean_ctor_release(x_1450, 1); + x_1491 = x_1450; +} else { + lean_dec_ref(x_1450); + x_1491 = lean_box(0); +} +x_1492 = lean_ctor_get(x_1456, 1); +lean_inc(x_1492); +lean_dec(x_1456); +x_1493 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__8(x_41, x_1457, x_1492); +if (lean_is_scalar(x_1491)) { + x_1494 = lean_alloc_ctor(0, 2, 0); +} else { + x_1494 = x_1491; +} +lean_ctor_set(x_1494, 0, x_1493); +lean_ctor_set(x_1494, 1, x_1490); +return x_1494; +} +case 7: { -lean_object* x_1493; lean_object* x_1494; lean_object* x_1495; lean_object* x_1496; lean_object* x_1497; uint8_t x_1498; lean_object* x_1499; lean_object* x_1500; lean_object* x_1501; lean_object* x_1502; lean_object* x_1503; lean_object* x_1504; lean_object* x_1505; lean_object* x_1506; lean_object* x_1507; lean_object* x_1508; lean_object* x_1509; lean_object* x_1510; lean_object* x_1511; lean_object* x_1512; lean_object* x_1513; lean_object* x_1514; lean_object* x_1515; lean_object* x_1516; lean_object* x_1517; lean_object* x_1518; lean_object* x_1519; lean_object* x_1520; lean_object* x_1521; lean_object* x_1522; lean_object* x_1523; lean_object* x_1524; lean_object* x_1525; lean_object* x_1526; uint8_t x_1527; uint8_t x_1528; uint8_t x_1529; lean_object* x_1530; lean_object* x_1531; lean_object* x_1532; lean_object* x_1533; lean_object* x_1534; lean_object* x_1535; lean_object* x_1536; lean_object* x_1537; lean_object* x_1538; -x_1493 = lean_ctor_get(x_1492, 0); -lean_inc(x_1493); -x_1494 = lean_ctor_get(x_1492, 1); -lean_inc(x_1494); -lean_dec(x_1492); -x_1495 = l_Lean_Elab_Term_getLCtx(x_2, x_1494); -x_1496 = lean_ctor_get(x_1495, 0); -lean_inc(x_1496); -x_1497 = lean_ctor_get(x_1495, 1); +lean_object* x_1495; lean_object* x_1496; lean_object* x_1497; lean_object* x_1498; lean_object* x_1499; +x_1495 = lean_ctor_get(x_1450, 1); +lean_inc(x_1495); +if (lean_is_exclusive(x_1450)) { + lean_ctor_release(x_1450, 0); + lean_ctor_release(x_1450, 1); + x_1496 = x_1450; +} else { + lean_dec_ref(x_1450); + x_1496 = lean_box(0); +} +x_1497 = lean_ctor_get(x_1456, 1); lean_inc(x_1497); -lean_dec(x_1495); -x_1498 = 0; -lean_inc_n(x_1488, 2); -x_1499 = lean_local_ctx_mk_local_decl(x_1496, x_1488, x_1488, x_1493, x_1498); -x_1500 = l_Array_eraseIdx___rarg(x_1471, x_1475); -x_1501 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_1497); -x_1502 = lean_ctor_get(x_1501, 1); +lean_dec(x_1456); +x_1498 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__9(x_41, x_1457, x_1497); +if (lean_is_scalar(x_1496)) { + x_1499 = lean_alloc_ctor(0, 2, 0); +} else { + x_1499 = x_1496; +} +lean_ctor_set(x_1499, 0, x_1498); +lean_ctor_set(x_1499, 1, x_1495); +return x_1499; +} +case 8: +{ +lean_object* x_1500; lean_object* x_1501; lean_object* x_1502; lean_object* x_1503; lean_object* x_1504; +x_1500 = lean_ctor_get(x_1450, 1); +lean_inc(x_1500); +if (lean_is_exclusive(x_1450)) { + lean_ctor_release(x_1450, 0); + lean_ctor_release(x_1450, 1); + x_1501 = x_1450; +} else { + lean_dec_ref(x_1450); + x_1501 = lean_box(0); +} +x_1502 = lean_ctor_get(x_1456, 1); lean_inc(x_1502); -lean_dec(x_1501); -x_1503 = l_Lean_Elab_Term_getMainModule___rarg(x_1502); -x_1504 = lean_ctor_get(x_1503, 1); -lean_inc(x_1504); -lean_dec(x_1503); -x_1505 = lean_name_mk_string(x_1480, x_1278); -x_1506 = l_Lean_nullKind___closed__1; -x_1507 = lean_name_mk_string(x_26, x_1506); -x_1508 = l_Array_empty___closed__1; -x_1509 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1500, x_1500, x_1475, x_1508); -lean_dec(x_1500); -x_1510 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1510, 0, x_1507); -lean_ctor_set(x_1510, 1, x_1509); -x_1511 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; -x_1512 = lean_array_push(x_1511, x_1510); -x_1513 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; -x_1514 = lean_array_push(x_1512, x_1513); -x_1515 = lean_array_push(x_1514, x_1473); -x_1516 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1516, 0, x_1505); -lean_ctor_set(x_1516, 1, x_1515); -x_1517 = lean_ctor_get(x_2, 0); +lean_dec(x_1456); +x_1503 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__10(x_41, x_1457, x_1502); +if (lean_is_scalar(x_1501)) { + x_1504 = lean_alloc_ctor(0, 2, 0); +} else { + x_1504 = x_1501; +} +lean_ctor_set(x_1504, 0, x_1503); +lean_ctor_set(x_1504, 1, x_1500); +return x_1504; +} +case 9: +{ +lean_object* x_1505; lean_object* x_1506; lean_object* x_1507; lean_object* x_1508; lean_object* x_1509; +x_1505 = lean_ctor_get(x_1450, 1); +lean_inc(x_1505); +if (lean_is_exclusive(x_1450)) { + lean_ctor_release(x_1450, 0); + lean_ctor_release(x_1450, 1); + x_1506 = x_1450; +} else { + lean_dec_ref(x_1450); + x_1506 = lean_box(0); +} +x_1507 = lean_ctor_get(x_1456, 1); +lean_inc(x_1507); +lean_dec(x_1456); +x_1508 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__11(x_41, x_1457, x_1507); +if (lean_is_scalar(x_1506)) { + x_1509 = lean_alloc_ctor(0, 2, 0); +} else { + x_1509 = x_1506; +} +lean_ctor_set(x_1509, 0, x_1508); +lean_ctor_set(x_1509, 1, x_1505); +return x_1509; +} +case 10: +{ +lean_object* x_1510; lean_object* x_1511; lean_object* x_1512; lean_object* x_1513; lean_object* x_1514; +x_1510 = lean_ctor_get(x_1450, 1); +lean_inc(x_1510); +if (lean_is_exclusive(x_1450)) { + lean_ctor_release(x_1450, 0); + lean_ctor_release(x_1450, 1); + x_1511 = x_1450; +} else { + lean_dec_ref(x_1450); + x_1511 = lean_box(0); +} +x_1512 = lean_ctor_get(x_1456, 1); +lean_inc(x_1512); +lean_dec(x_1456); +x_1513 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__12(x_41, x_1457, x_1512); +if (lean_is_scalar(x_1511)) { + x_1514 = lean_alloc_ctor(0, 2, 0); +} else { + x_1514 = x_1511; +} +lean_ctor_set(x_1514, 0, x_1513); +lean_ctor_set(x_1514, 1, x_1510); +return x_1514; +} +case 11: +{ +lean_object* x_1515; lean_object* x_1516; lean_object* x_1517; lean_object* x_1518; lean_object* x_1519; +x_1515 = lean_ctor_get(x_1450, 1); +lean_inc(x_1515); +if (lean_is_exclusive(x_1450)) { + lean_ctor_release(x_1450, 0); + lean_ctor_release(x_1450, 1); + x_1516 = x_1450; +} else { + lean_dec_ref(x_1450); + x_1516 = lean_box(0); +} +x_1517 = lean_ctor_get(x_1456, 1); lean_inc(x_1517); -x_1518 = lean_ctor_get(x_2, 1); -lean_inc(x_1518); -x_1519 = lean_ctor_get(x_2, 2); -lean_inc(x_1519); -x_1520 = lean_ctor_get(x_2, 3); +lean_dec(x_1456); +x_1518 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__13(x_41, x_1457, x_1517); +if (lean_is_scalar(x_1516)) { + x_1519 = lean_alloc_ctor(0, 2, 0); +} else { + x_1519 = x_1516; +} +lean_ctor_set(x_1519, 0, x_1518); +lean_ctor_set(x_1519, 1, x_1515); +return x_1519; +} +default: +{ +lean_object* x_1520; lean_object* x_1521; lean_object* x_1522; lean_object* x_1523; lean_object* x_1524; +x_1520 = lean_ctor_get(x_1450, 1); lean_inc(x_1520); -x_1521 = lean_ctor_get(x_2, 4); -lean_inc(x_1521); -x_1522 = lean_ctor_get(x_2, 5); +if (lean_is_exclusive(x_1450)) { + lean_ctor_release(x_1450, 0); + lean_ctor_release(x_1450, 1); + x_1521 = x_1450; +} else { + lean_dec_ref(x_1450); + x_1521 = lean_box(0); +} +x_1522 = lean_ctor_get(x_1456, 1); lean_inc(x_1522); -x_1523 = lean_ctor_get(x_2, 6); -lean_inc(x_1523); -x_1524 = lean_ctor_get(x_2, 7); -lean_inc(x_1524); -x_1525 = lean_ctor_get(x_2, 8); -lean_inc(x_1525); -x_1526 = lean_ctor_get(x_2, 9); -lean_inc(x_1526); -x_1527 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_1528 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); -x_1529 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 2); -if (lean_is_exclusive(x_2)) { - lean_ctor_release(x_2, 0); - lean_ctor_release(x_2, 1); - lean_ctor_release(x_2, 2); - lean_ctor_release(x_2, 3); - lean_ctor_release(x_2, 4); - lean_ctor_release(x_2, 5); - lean_ctor_release(x_2, 6); - lean_ctor_release(x_2, 7); - lean_ctor_release(x_2, 8); - lean_ctor_release(x_2, 9); - x_1530 = x_2; +lean_dec(x_1456); +x_1523 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__14(x_41, x_1457, x_1522); +if (lean_is_scalar(x_1521)) { + x_1524 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_2); - x_1530 = lean_box(0); + x_1524 = x_1521; } -x_1531 = lean_ctor_get(x_1517, 0); -lean_inc(x_1531); -x_1532 = lean_ctor_get(x_1517, 2); -lean_inc(x_1532); -x_1533 = lean_ctor_get(x_1517, 3); -lean_inc(x_1533); -x_1534 = lean_ctor_get(x_1517, 4); -lean_inc(x_1534); -if (lean_is_exclusive(x_1517)) { - lean_ctor_release(x_1517, 0); - lean_ctor_release(x_1517, 1); - lean_ctor_release(x_1517, 2); - lean_ctor_release(x_1517, 3); - lean_ctor_release(x_1517, 4); - x_1535 = x_1517; -} else { - lean_dec_ref(x_1517); - x_1535 = lean_box(0); +lean_ctor_set(x_1524, 0, x_1523); +lean_ctor_set(x_1524, 1, x_1520); +return x_1524; } -lean_inc(x_1499); -if (lean_is_scalar(x_1535)) { - x_1536 = lean_alloc_ctor(0, 5, 0); -} else { - x_1536 = x_1535; } -lean_ctor_set(x_1536, 0, x_1531); -lean_ctor_set(x_1536, 1, x_1499); -lean_ctor_set(x_1536, 2, x_1532); -lean_ctor_set(x_1536, 3, x_1533); -lean_ctor_set(x_1536, 4, x_1534); -if (lean_is_scalar(x_1530)) { - x_1537 = lean_alloc_ctor(0, 10, 3); -} else { - x_1537 = x_1530; -} -lean_ctor_set(x_1537, 0, x_1536); -lean_ctor_set(x_1537, 1, x_1518); -lean_ctor_set(x_1537, 2, x_1519); -lean_ctor_set(x_1537, 3, x_1520); -lean_ctor_set(x_1537, 4, x_1521); -lean_ctor_set(x_1537, 5, x_1522); -lean_ctor_set(x_1537, 6, x_1523); -lean_ctor_set(x_1537, 7, x_1524); -lean_ctor_set(x_1537, 8, x_1525); -lean_ctor_set(x_1537, 9, x_1526); -lean_ctor_set_uint8(x_1537, sizeof(void*)*10, x_1527); -lean_ctor_set_uint8(x_1537, sizeof(void*)*10 + 1, x_1528); -lean_ctor_set_uint8(x_1537, sizeof(void*)*10 + 2, x_1529); -x_1538 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_1516, x_1537, x_1504); -if (lean_obj_tag(x_1538) == 0) -{ -lean_object* x_1539; lean_object* x_1540; lean_object* x_1541; lean_object* x_1542; lean_object* x_1543; lean_object* x_1544; lean_object* x_1545; lean_object* x_1546; -x_1539 = lean_ctor_get(x_1538, 0); -lean_inc(x_1539); -x_1540 = lean_ctor_get(x_1538, 1); -lean_inc(x_1540); -if (lean_is_exclusive(x_1538)) { - lean_ctor_release(x_1538, 0); - lean_ctor_release(x_1538, 1); - x_1541 = x_1538; -} else { - lean_dec_ref(x_1538); - x_1541 = lean_box(0); -} -x_1542 = l_Lean_mkFVar(x_1488); -x_1543 = l_Lean_mkOptionalNode___closed__2; -x_1544 = lean_array_push(x_1543, x_1542); -x_1545 = l_Lean_LocalContext_mkLambda(x_1499, x_1544, x_1539); -lean_dec(x_1539); -lean_dec(x_1544); -if (lean_is_scalar(x_1541)) { - x_1546 = lean_alloc_ctor(0, 2, 0); -} else { - x_1546 = x_1541; -} -lean_ctor_set(x_1546, 0, x_1545); -lean_ctor_set(x_1546, 1, x_1540); -return x_1546; -} -else -{ -lean_object* x_1547; lean_object* x_1548; lean_object* x_1549; lean_object* x_1550; -lean_dec(x_1499); -lean_dec(x_1488); -x_1547 = lean_ctor_get(x_1538, 0); -lean_inc(x_1547); -x_1548 = lean_ctor_get(x_1538, 1); -lean_inc(x_1548); -if (lean_is_exclusive(x_1538)) { - lean_ctor_release(x_1538, 0); - lean_ctor_release(x_1538, 1); - x_1549 = x_1538; -} else { - lean_dec_ref(x_1538); - x_1549 = lean_box(0); -} -if (lean_is_scalar(x_1549)) { - x_1550 = lean_alloc_ctor(1, 2, 0); -} else { - x_1550 = x_1549; -} -lean_ctor_set(x_1550, 0, x_1547); -lean_ctor_set(x_1550, 1, x_1548); -return x_1550; } } else { -lean_object* x_1551; lean_object* x_1552; lean_object* x_1553; lean_object* x_1554; -lean_dec(x_1488); -lean_dec(x_1480); -lean_dec(x_1473); -lean_dec(x_1471); +lean_object* x_1525; lean_object* x_1526; lean_object* x_1527; lean_object* x_1528; lean_dec(x_2); -x_1551 = lean_ctor_get(x_1492, 0); -lean_inc(x_1551); -x_1552 = lean_ctor_get(x_1492, 1); -lean_inc(x_1552); -if (lean_is_exclusive(x_1492)) { - lean_ctor_release(x_1492, 0); - lean_ctor_release(x_1492, 1); - x_1553 = x_1492; +x_1525 = lean_ctor_get(x_1450, 0); +lean_inc(x_1525); +x_1526 = lean_ctor_get(x_1450, 1); +lean_inc(x_1526); +if (lean_is_exclusive(x_1450)) { + lean_ctor_release(x_1450, 0); + lean_ctor_release(x_1450, 1); + x_1527 = x_1450; } else { - lean_dec_ref(x_1492); - x_1553 = lean_box(0); + lean_dec_ref(x_1450); + x_1527 = lean_box(0); } -if (lean_is_scalar(x_1553)) { - x_1554 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1527)) { + x_1528 = lean_alloc_ctor(1, 2, 0); } else { - x_1554 = x_1553; + x_1528 = x_1527; } -lean_ctor_set(x_1554, 0, x_1551); -lean_ctor_set(x_1554, 1, x_1552); -return x_1554; +lean_ctor_set(x_1528, 0, x_1525); +lean_ctor_set(x_1528, 1, x_1526); +return x_1528; } } else { -lean_object* x_1555; lean_object* x_1556; lean_object* x_1557; lean_object* x_1558; lean_object* x_1559; lean_object* x_1560; uint8_t x_1561; lean_object* x_1562; lean_object* x_1563; lean_object* x_1564; lean_object* x_1565; lean_object* x_1566; lean_object* x_1567; lean_object* x_1568; lean_object* x_1569; lean_object* x_1570; lean_object* x_1571; lean_object* x_1572; lean_object* x_1573; lean_object* x_1574; lean_object* x_1575; lean_object* x_1576; lean_object* x_1577; lean_object* x_1578; lean_object* x_1579; lean_object* x_1580; lean_object* x_1581; lean_object* x_1582; lean_object* x_1583; lean_object* x_1584; lean_object* x_1585; lean_object* x_1586; lean_object* x_1587; lean_object* x_1588; lean_object* x_1589; uint8_t x_1590; uint8_t x_1591; uint8_t x_1592; lean_object* x_1593; lean_object* x_1594; lean_object* x_1595; lean_object* x_1596; lean_object* x_1597; lean_object* x_1598; lean_object* x_1599; lean_object* x_1600; lean_object* x_1601; -lean_dec(x_1477); -x_1555 = l_Lean_Meta_rewriteCore___lambda__1___closed__4; -x_1556 = lean_name_mk_string(x_26, x_1555); -x_1557 = l_Lean_Elab_Term_getLCtx(x_2, x_3); -x_1558 = lean_ctor_get(x_1557, 0); -lean_inc(x_1558); -x_1559 = lean_ctor_get(x_1557, 1); -lean_inc(x_1559); -lean_dec(x_1557); -x_1560 = l___private_Lean_Elab_Quotation_9__exprPlaceholder; -x_1561 = 0; -lean_inc_n(x_1556, 2); -x_1562 = lean_local_ctx_mk_local_decl(x_1558, x_1556, x_1556, x_1560, x_1561); -x_1563 = l_Array_eraseIdx___rarg(x_1471, x_1475); -x_1564 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_1559); -x_1565 = lean_ctor_get(x_1564, 1); -lean_inc(x_1565); -lean_dec(x_1564); -x_1566 = l_Lean_Elab_Term_getMainModule___rarg(x_1565); -x_1567 = lean_ctor_get(x_1566, 1); -lean_inc(x_1567); -lean_dec(x_1566); -x_1568 = lean_name_mk_string(x_1480, x_1278); -x_1569 = l_Lean_nullKind___closed__1; -x_1570 = lean_name_mk_string(x_26, x_1569); -x_1571 = l_Array_empty___closed__1; -x_1572 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1563, x_1563, x_1475, x_1571); -lean_dec(x_1563); -x_1573 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1573, 0, x_1570); -lean_ctor_set(x_1573, 1, x_1572); -x_1574 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; -x_1575 = lean_array_push(x_1574, x_1573); -x_1576 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; -x_1577 = lean_array_push(x_1575, x_1576); -x_1578 = lean_array_push(x_1577, x_1473); -x_1579 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1579, 0, x_1568); -lean_ctor_set(x_1579, 1, x_1578); -x_1580 = lean_ctor_get(x_2, 0); -lean_inc(x_1580); -x_1581 = lean_ctor_get(x_2, 1); -lean_inc(x_1581); -x_1582 = lean_ctor_get(x_2, 2); -lean_inc(x_1582); -x_1583 = lean_ctor_get(x_2, 3); -lean_inc(x_1583); -x_1584 = lean_ctor_get(x_2, 4); -lean_inc(x_1584); -x_1585 = lean_ctor_get(x_2, 5); -lean_inc(x_1585); -x_1586 = lean_ctor_get(x_2, 6); -lean_inc(x_1586); -x_1587 = lean_ctor_get(x_2, 7); -lean_inc(x_1587); -x_1588 = lean_ctor_get(x_2, 8); -lean_inc(x_1588); -x_1589 = lean_ctor_get(x_2, 9); -lean_inc(x_1589); -x_1590 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_1591 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); -x_1592 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 2); -if (lean_is_exclusive(x_2)) { - lean_ctor_release(x_2, 0); - lean_ctor_release(x_2, 1); - lean_ctor_release(x_2, 2); - lean_ctor_release(x_2, 3); - lean_ctor_release(x_2, 4); - lean_ctor_release(x_2, 5); - lean_ctor_release(x_2, 6); - lean_ctor_release(x_2, 7); - lean_ctor_release(x_2, 8); - lean_ctor_release(x_2, 9); - x_1593 = x_2; -} else { - lean_dec_ref(x_2); - x_1593 = lean_box(0); +lean_object* x_1529; lean_object* x_1530; lean_object* x_1531; +lean_dec(x_1446); +x_1529 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; +x_1530 = l_unreachable_x21___rarg(x_1529); +x_1531 = lean_apply_2(x_1530, x_2, x_3); +return x_1531; } -x_1594 = lean_ctor_get(x_1580, 0); -lean_inc(x_1594); -x_1595 = lean_ctor_get(x_1580, 2); -lean_inc(x_1595); -x_1596 = lean_ctor_get(x_1580, 3); -lean_inc(x_1596); -x_1597 = lean_ctor_get(x_1580, 4); -lean_inc(x_1597); -if (lean_is_exclusive(x_1580)) { - lean_ctor_release(x_1580, 0); - lean_ctor_release(x_1580, 1); - lean_ctor_release(x_1580, 2); - lean_ctor_release(x_1580, 3); - lean_ctor_release(x_1580, 4); - x_1598 = x_1580; -} else { - lean_dec_ref(x_1580); - x_1598 = lean_box(0); } -lean_inc(x_1562); -if (lean_is_scalar(x_1598)) { - x_1599 = lean_alloc_ctor(0, 5, 0); -} else { - x_1599 = x_1598; } -lean_ctor_set(x_1599, 0, x_1594); -lean_ctor_set(x_1599, 1, x_1562); -lean_ctor_set(x_1599, 2, x_1595); -lean_ctor_set(x_1599, 3, x_1596); -lean_ctor_set(x_1599, 4, x_1597); -if (lean_is_scalar(x_1593)) { - x_1600 = lean_alloc_ctor(0, 10, 3); -} else { - x_1600 = x_1593; } -lean_ctor_set(x_1600, 0, x_1599); -lean_ctor_set(x_1600, 1, x_1581); -lean_ctor_set(x_1600, 2, x_1582); -lean_ctor_set(x_1600, 3, x_1583); -lean_ctor_set(x_1600, 4, x_1584); -lean_ctor_set(x_1600, 5, x_1585); -lean_ctor_set(x_1600, 6, x_1586); -lean_ctor_set(x_1600, 7, x_1587); -lean_ctor_set(x_1600, 8, x_1588); -lean_ctor_set(x_1600, 9, x_1589); -lean_ctor_set_uint8(x_1600, sizeof(void*)*10, x_1590); -lean_ctor_set_uint8(x_1600, sizeof(void*)*10 + 1, x_1591); -lean_ctor_set_uint8(x_1600, sizeof(void*)*10 + 2, x_1592); -x_1601 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_1579, x_1600, x_1567); -if (lean_obj_tag(x_1601) == 0) +} +} +} +else { -lean_object* x_1602; lean_object* x_1603; lean_object* x_1604; lean_object* x_1605; lean_object* x_1606; lean_object* x_1607; lean_object* x_1608; lean_object* x_1609; -x_1602 = lean_ctor_get(x_1601, 0); -lean_inc(x_1602); -x_1603 = lean_ctor_get(x_1601, 1); +lean_object* x_1532; size_t x_1533; lean_object* x_1534; size_t x_1535; lean_object* x_1536; lean_object* x_1537; uint8_t x_1538; +x_1532 = lean_ctor_get(x_39, 1); +x_1533 = lean_ctor_get_usize(x_39, 2); +lean_inc(x_1532); +lean_dec(x_39); +x_1534 = lean_ctor_get(x_40, 1); +lean_inc(x_1534); +x_1535 = lean_ctor_get_usize(x_40, 2); +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + x_1536 = x_40; +} else { + lean_dec_ref(x_40); + x_1536 = lean_box(0); +} +x_1537 = l_Lean_mkAppStx___closed__1; +x_1538 = lean_string_dec_eq(x_1534, x_1537); +lean_dec(x_1534); +if (x_1538 == 0) +{ +lean_object* x_1539; +lean_dec(x_1536); +lean_dec(x_1532); +lean_free_object(x_30); +lean_dec(x_45); +lean_dec(x_42); +lean_dec(x_16); +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_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_1); +x_1539 = lean_box(0); +x_21 = x_1539; +goto block_29; +} +else +{ +lean_object* x_1540; lean_object* x_1541; uint8_t x_1542; +if (lean_is_exclusive(x_5)) { + lean_ctor_release(x_5, 0); + lean_ctor_release(x_5, 1); + x_1540 = x_5; +} else { + lean_dec_ref(x_5); + x_1540 = lean_box(0); +} +x_1541 = l_Lean_mkAppStx___closed__3; +x_1542 = lean_string_dec_eq(x_1532, x_1541); +if (x_1542 == 0) +{ +lean_object* x_1543; lean_object* x_1544; lean_object* x_1545; lean_object* x_1546; lean_object* x_1547; lean_object* x_1548; lean_object* x_1549; lean_object* x_1550; lean_object* x_1551; lean_object* x_1552; +lean_dec(x_16); +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_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_1); +if (lean_is_scalar(x_1536)) { + x_1543 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_1543 = x_1536; +} +lean_ctor_set(x_1543, 0, x_41); +lean_ctor_set(x_1543, 1, x_1537); +lean_ctor_set_usize(x_1543, 2, x_1535); +x_1544 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_1544, 0, x_1543); +lean_ctor_set(x_1544, 1, x_1532); +lean_ctor_set_usize(x_1544, 2, x_1533); +lean_ctor_set(x_30, 0, x_1544); +if (lean_is_scalar(x_1540)) { + x_1545 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_1545 = x_1540; +} +lean_ctor_set(x_1545, 0, x_30); +lean_ctor_set(x_1545, 1, x_42); +lean_ctor_set_usize(x_1545, 2, x_44); +x_1546 = l_Lean_Name_toString___closed__1; +x_1547 = l_Lean_Name_toStringWithSep___main(x_1546, x_1545); +x_1548 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1548, 0, x_1547); +x_1549 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1549, 0, x_1548); +x_1550 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__3; +x_1551 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1551, 0, x_1550); +lean_ctor_set(x_1551, 1, x_1549); +x_1552 = l_Lean_Elab_Term_throwError___rarg(x_1551, x_2, x_3); +return x_1552; +} +else +{ +lean_object* x_1553; uint8_t x_1554; +lean_dec(x_1532); +x_1553 = l_Lean_mkAppStx___closed__5; +x_1554 = lean_string_dec_eq(x_45, x_1553); +if (x_1554 == 0) +{ +lean_object* x_1555; lean_object* x_1556; lean_object* x_1557; lean_object* x_1558; lean_object* x_1559; lean_object* x_1560; lean_object* x_1561; lean_object* x_1562; lean_object* x_1563; lean_object* x_1564; +lean_dec(x_16); +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_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_1); +if (lean_is_scalar(x_1536)) { + x_1555 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_1555 = x_1536; +} +lean_ctor_set(x_1555, 0, x_41); +lean_ctor_set(x_1555, 1, x_1537); +lean_ctor_set_usize(x_1555, 2, x_1535); +x_1556 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_1556, 0, x_1555); +lean_ctor_set(x_1556, 1, x_1541); +lean_ctor_set_usize(x_1556, 2, x_1533); +lean_ctor_set(x_30, 0, x_1556); +if (lean_is_scalar(x_1540)) { + x_1557 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_1557 = x_1540; +} +lean_ctor_set(x_1557, 0, x_30); +lean_ctor_set(x_1557, 1, x_42); +lean_ctor_set_usize(x_1557, 2, x_44); +x_1558 = l_Lean_Name_toString___closed__1; +x_1559 = l_Lean_Name_toStringWithSep___main(x_1558, x_1557); +x_1560 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1560, 0, x_1559); +x_1561 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1561, 0, x_1560); +x_1562 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__3; +x_1563 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1563, 0, x_1562); +lean_ctor_set(x_1563, 1, x_1561); +x_1564 = l_Lean_Elab_Term_throwError___rarg(x_1563, x_2, x_3); +return x_1564; +} +else +{ +lean_object* x_1565; uint8_t x_1566; +lean_dec(x_45); +x_1565 = l_Lean_mkTermIdFromIdent___closed__1; +x_1566 = lean_string_dec_eq(x_42, x_1565); +if (x_1566 == 0) +{ +lean_object* x_1567; uint8_t x_1568; +x_1567 = l_Lean_Parser_Term_fun___elambda__1___closed__1; +x_1568 = lean_string_dec_eq(x_42, x_1567); +if (x_1568 == 0) +{ +lean_object* x_1569; uint8_t x_1570; +x_1569 = l_Lean_Parser_Term_let___elambda__1___closed__1; +x_1570 = lean_string_dec_eq(x_42, x_1569); +if (x_1570 == 0) +{ +lean_object* x_1571; uint8_t x_1572; +lean_dec(x_16); +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_9); +lean_dec(x_8); +lean_dec(x_7); +x_1571 = l_Lean_mkAppStx___closed__7; +x_1572 = lean_string_dec_eq(x_42, x_1571); +if (x_1572 == 0) +{ +lean_object* x_1573; uint8_t x_1574; +x_1573 = l_Lean_Parser_Term_if___elambda__1___closed__1; +x_1574 = lean_string_dec_eq(x_42, x_1573); +if (x_1574 == 0) +{ +lean_object* x_1575; uint8_t x_1576; +x_1575 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__1; +x_1576 = lean_string_dec_eq(x_42, x_1575); +if (x_1576 == 0) +{ +lean_object* x_1577; uint8_t x_1578; +x_1577 = l_Lean_Parser_Term_band___elambda__1___closed__1; +x_1578 = lean_string_dec_eq(x_42, x_1577); +if (x_1578 == 0) +{ +lean_object* x_1579; uint8_t x_1580; +x_1579 = l_Lean_Meta_reduceNat_x3f___closed__12; +x_1580 = lean_string_dec_eq(x_42, x_1579); +if (x_1580 == 0) +{ +lean_object* x_1581; uint8_t x_1582; +x_1581 = l_Lean_Parser_Term_eq___elambda__1___closed__1; +x_1582 = lean_string_dec_eq(x_42, x_1581); +if (x_1582 == 0) +{ +lean_object* x_1583; uint8_t x_1584; +lean_dec(x_4); +x_1583 = l_Lean_String_HasQuote___closed__1; +x_1584 = lean_string_dec_eq(x_42, x_1583); +if (x_1584 == 0) +{ +lean_object* x_1585; uint8_t x_1586; +x_1585 = l_Lean_Nat_HasQuote___closed__1; +x_1586 = lean_string_dec_eq(x_42, x_1585); +if (x_1586 == 0) +{ +lean_object* x_1587; lean_object* x_1588; lean_object* x_1589; lean_object* x_1590; lean_object* x_1591; lean_object* x_1592; lean_object* x_1593; lean_object* x_1594; lean_object* x_1595; lean_object* x_1596; +lean_dec(x_1); +if (lean_is_scalar(x_1536)) { + x_1587 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_1587 = x_1536; +} +lean_ctor_set(x_1587, 0, x_41); +lean_ctor_set(x_1587, 1, x_1537); +lean_ctor_set_usize(x_1587, 2, x_1535); +x_1588 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_1588, 0, x_1587); +lean_ctor_set(x_1588, 1, x_1541); +lean_ctor_set_usize(x_1588, 2, x_1533); +lean_ctor_set(x_30, 1, x_1553); +lean_ctor_set(x_30, 0, x_1588); +if (lean_is_scalar(x_1540)) { + x_1589 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_1589 = x_1540; +} +lean_ctor_set(x_1589, 0, x_30); +lean_ctor_set(x_1589, 1, x_42); +lean_ctor_set_usize(x_1589, 2, x_44); +x_1590 = l_Lean_Name_toString___closed__1; +x_1591 = l_Lean_Name_toStringWithSep___main(x_1590, x_1589); +x_1592 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1592, 0, x_1591); +x_1593 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1593, 0, x_1592); +x_1594 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__3; +x_1595 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1595, 0, x_1594); +lean_ctor_set(x_1595, 1, x_1593); +x_1596 = l_Lean_Elab_Term_throwError___rarg(x_1595, x_2, x_3); +return x_1596; +} +else +{ +lean_object* x_1597; lean_object* x_1598; lean_object* x_1599; lean_object* x_1600; +lean_dec(x_1540); +lean_dec(x_1536); +lean_free_object(x_30); +lean_dec(x_42); +lean_dec(x_2); +x_1597 = lean_unsigned_to_nat(0u); +x_1598 = l_Lean_Syntax_getArg(x_1, x_1597); +lean_dec(x_1); +x_1599 = l_Lean_numLitKind; +x_1600 = l_Lean_Syntax_isNatLitAux(x_1599, x_1598); +lean_dec(x_1598); +if (lean_obj_tag(x_1600) == 0) +{ +lean_object* x_1601; lean_object* x_1602; +x_1601 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__5; +x_1602 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1602, 0, x_1601); +lean_ctor_set(x_1602, 1, x_3); +return x_1602; +} +else +{ +lean_object* x_1603; lean_object* x_1604; lean_object* x_1605; +x_1603 = lean_ctor_get(x_1600, 0); lean_inc(x_1603); -if (lean_is_exclusive(x_1601)) { - lean_ctor_release(x_1601, 0); - lean_ctor_release(x_1601, 1); - x_1604 = x_1601; -} else { - lean_dec_ref(x_1601); - x_1604 = lean_box(0); +lean_dec(x_1600); +x_1604 = l_Lean_mkNatLit(x_1603); +x_1605 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1605, 0, x_1604); +lean_ctor_set(x_1605, 1, x_3); +return x_1605; } -x_1605 = l_Lean_mkFVar(x_1556); -x_1606 = l_Lean_mkOptionalNode___closed__2; -x_1607 = lean_array_push(x_1606, x_1605); -x_1608 = l_Lean_LocalContext_mkLambda(x_1562, x_1607, x_1602); -lean_dec(x_1602); -lean_dec(x_1607); -if (lean_is_scalar(x_1604)) { - x_1609 = lean_alloc_ctor(0, 2, 0); -} else { - x_1609 = x_1604; } -lean_ctor_set(x_1609, 0, x_1608); -lean_ctor_set(x_1609, 1, x_1603); -return x_1609; } else { -lean_object* x_1610; lean_object* x_1611; lean_object* x_1612; lean_object* x_1613; -lean_dec(x_1562); -lean_dec(x_1556); -x_1610 = lean_ctor_get(x_1601, 0); -lean_inc(x_1610); -x_1611 = lean_ctor_get(x_1601, 1); +lean_object* x_1606; lean_object* x_1607; lean_object* x_1608; +lean_dec(x_1540); +lean_dec(x_1536); +lean_free_object(x_30); +lean_dec(x_42); +lean_dec(x_2); +x_1606 = lean_unsigned_to_nat(0u); +x_1607 = l_Lean_Syntax_getArg(x_1, x_1606); +lean_dec(x_1); +x_1608 = l_Lean_Syntax_isStrLit_x3f(x_1607); +lean_dec(x_1607); +if (lean_obj_tag(x_1608) == 0) +{ +lean_object* x_1609; lean_object* x_1610; +x_1609 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__6; +x_1610 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1610, 0, x_1609); +lean_ctor_set(x_1610, 1, x_3); +return x_1610; +} +else +{ +lean_object* x_1611; lean_object* x_1612; lean_object* x_1613; +x_1611 = lean_ctor_get(x_1608, 0); lean_inc(x_1611); -if (lean_is_exclusive(x_1601)) { - lean_ctor_release(x_1601, 0); - lean_ctor_release(x_1601, 1); - x_1612 = x_1601; -} else { - lean_dec_ref(x_1601); - x_1612 = lean_box(0); -} -if (lean_is_scalar(x_1612)) { - x_1613 = lean_alloc_ctor(1, 2, 0); -} else { - x_1613 = x_1612; -} -lean_ctor_set(x_1613, 0, x_1610); -lean_ctor_set(x_1613, 1, x_1611); +lean_dec(x_1608); +x_1612 = l_Lean_mkStrLit(x_1611); +x_1613 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1613, 0, x_1612); +lean_ctor_set(x_1613, 1, x_3); return x_1613; } } } else { -lean_object* x_1614; lean_object* x_1615; lean_object* x_1616; lean_object* x_1617; lean_object* x_1618; uint8_t x_1619; lean_object* x_1620; lean_object* x_1621; lean_object* x_1622; lean_object* x_1623; lean_object* x_1624; lean_object* x_1625; lean_object* x_1626; lean_object* x_1627; lean_object* x_1628; lean_object* x_1629; lean_object* x_1630; lean_object* x_1631; lean_object* x_1632; lean_object* x_1633; lean_object* x_1634; lean_object* x_1635; lean_object* x_1636; lean_object* x_1637; lean_object* x_1638; lean_object* x_1639; lean_object* x_1640; lean_object* x_1641; lean_object* x_1642; lean_object* x_1643; lean_object* x_1644; lean_object* x_1645; lean_object* x_1646; lean_object* x_1647; uint8_t x_1648; uint8_t x_1649; uint8_t x_1650; lean_object* x_1651; lean_object* x_1652; lean_object* x_1653; lean_object* x_1654; lean_object* x_1655; lean_object* x_1656; lean_object* x_1657; lean_object* x_1658; lean_object* x_1659; -x_1614 = l_Lean_Syntax_getIdAt(x_1477, x_1475); -lean_dec(x_1477); -x_1615 = l_Lean_Elab_Term_getLCtx(x_2, x_3); -x_1616 = lean_ctor_get(x_1615, 0); -lean_inc(x_1616); -x_1617 = lean_ctor_get(x_1615, 1); -lean_inc(x_1617); -lean_dec(x_1615); -x_1618 = l___private_Lean_Elab_Quotation_9__exprPlaceholder; -x_1619 = 0; -lean_inc_n(x_1614, 2); -x_1620 = lean_local_ctx_mk_local_decl(x_1616, x_1614, x_1614, x_1618, x_1619); -x_1621 = l_Array_eraseIdx___rarg(x_1471, x_1475); -x_1622 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_1617); -x_1623 = lean_ctor_get(x_1622, 1); -lean_inc(x_1623); -lean_dec(x_1622); -x_1624 = l_Lean_Elab_Term_getMainModule___rarg(x_1623); -x_1625 = lean_ctor_get(x_1624, 1); -lean_inc(x_1625); -lean_dec(x_1624); -x_1626 = lean_name_mk_string(x_1480, x_1278); -x_1627 = l_Lean_nullKind___closed__1; -x_1628 = lean_name_mk_string(x_26, x_1627); -x_1629 = l_Array_empty___closed__1; -x_1630 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1621, x_1621, x_1475, x_1629); -lean_dec(x_1621); -x_1631 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1631, 0, x_1628); -lean_ctor_set(x_1631, 1, x_1630); -x_1632 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; -x_1633 = lean_array_push(x_1632, x_1631); -x_1634 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; -x_1635 = lean_array_push(x_1633, x_1634); -x_1636 = lean_array_push(x_1635, x_1473); -x_1637 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1637, 0, x_1626); -lean_ctor_set(x_1637, 1, x_1636); -x_1638 = lean_ctor_get(x_2, 0); -lean_inc(x_1638); -x_1639 = lean_ctor_get(x_2, 1); -lean_inc(x_1639); -x_1640 = lean_ctor_get(x_2, 2); -lean_inc(x_1640); -x_1641 = lean_ctor_get(x_2, 3); -lean_inc(x_1641); -x_1642 = lean_ctor_get(x_2, 4); -lean_inc(x_1642); -x_1643 = lean_ctor_get(x_2, 5); -lean_inc(x_1643); -x_1644 = lean_ctor_get(x_2, 6); -lean_inc(x_1644); -x_1645 = lean_ctor_get(x_2, 7); -lean_inc(x_1645); -x_1646 = lean_ctor_get(x_2, 8); -lean_inc(x_1646); -x_1647 = lean_ctor_get(x_2, 9); -lean_inc(x_1647); -x_1648 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_1649 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); -x_1650 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 2); -if (lean_is_exclusive(x_2)) { - lean_ctor_release(x_2, 0); - lean_ctor_release(x_2, 1); - lean_ctor_release(x_2, 2); - lean_ctor_release(x_2, 3); - lean_ctor_release(x_2, 4); - lean_ctor_release(x_2, 5); - lean_ctor_release(x_2, 6); - lean_ctor_release(x_2, 7); - lean_ctor_release(x_2, 8); - lean_ctor_release(x_2, 9); - x_1651 = x_2; -} else { - lean_dec_ref(x_2); - x_1651 = lean_box(0); -} -x_1652 = lean_ctor_get(x_1638, 0); -lean_inc(x_1652); -x_1653 = lean_ctor_get(x_1638, 2); -lean_inc(x_1653); -x_1654 = lean_ctor_get(x_1638, 3); -lean_inc(x_1654); -x_1655 = lean_ctor_get(x_1638, 4); -lean_inc(x_1655); -if (lean_is_exclusive(x_1638)) { - lean_ctor_release(x_1638, 0); - lean_ctor_release(x_1638, 1); - lean_ctor_release(x_1638, 2); - lean_ctor_release(x_1638, 3); - lean_ctor_release(x_1638, 4); - x_1656 = x_1638; -} else { - lean_dec_ref(x_1638); - x_1656 = lean_box(0); -} -lean_inc(x_1620); -if (lean_is_scalar(x_1656)) { - x_1657 = lean_alloc_ctor(0, 5, 0); -} else { - x_1657 = x_1656; -} -lean_ctor_set(x_1657, 0, x_1652); -lean_ctor_set(x_1657, 1, x_1620); -lean_ctor_set(x_1657, 2, x_1653); -lean_ctor_set(x_1657, 3, x_1654); -lean_ctor_set(x_1657, 4, x_1655); -if (lean_is_scalar(x_1651)) { - x_1658 = lean_alloc_ctor(0, 10, 3); -} else { - x_1658 = x_1651; -} -lean_ctor_set(x_1658, 0, x_1657); -lean_ctor_set(x_1658, 1, x_1639); -lean_ctor_set(x_1658, 2, x_1640); -lean_ctor_set(x_1658, 3, x_1641); -lean_ctor_set(x_1658, 4, x_1642); -lean_ctor_set(x_1658, 5, x_1643); -lean_ctor_set(x_1658, 6, x_1644); -lean_ctor_set(x_1658, 7, x_1645); -lean_ctor_set(x_1658, 8, x_1646); -lean_ctor_set(x_1658, 9, x_1647); -lean_ctor_set_uint8(x_1658, sizeof(void*)*10, x_1648); -lean_ctor_set_uint8(x_1658, sizeof(void*)*10 + 1, x_1649); -lean_ctor_set_uint8(x_1658, sizeof(void*)*10 + 2, x_1650); -x_1659 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_1637, x_1658, x_1625); -if (lean_obj_tag(x_1659) == 0) -{ -lean_object* x_1660; lean_object* x_1661; lean_object* x_1662; lean_object* x_1663; lean_object* x_1664; lean_object* x_1665; lean_object* x_1666; lean_object* x_1667; -x_1660 = lean_ctor_get(x_1659, 0); -lean_inc(x_1660); -x_1661 = lean_ctor_get(x_1659, 1); -lean_inc(x_1661); -if (lean_is_exclusive(x_1659)) { - lean_ctor_release(x_1659, 0); - lean_ctor_release(x_1659, 1); - x_1662 = x_1659; -} else { - lean_dec_ref(x_1659); - x_1662 = lean_box(0); -} -x_1663 = l_Lean_mkFVar(x_1614); -x_1664 = l_Lean_mkOptionalNode___closed__2; -x_1665 = lean_array_push(x_1664, x_1663); -x_1666 = l_Lean_LocalContext_mkLambda(x_1620, x_1665, x_1660); -lean_dec(x_1660); -lean_dec(x_1665); -if (lean_is_scalar(x_1662)) { - x_1667 = lean_alloc_ctor(0, 2, 0); -} else { - x_1667 = x_1662; -} -lean_ctor_set(x_1667, 0, x_1666); -lean_ctor_set(x_1667, 1, x_1661); -return x_1667; -} -else -{ -lean_object* x_1668; lean_object* x_1669; lean_object* x_1670; lean_object* x_1671; -lean_dec(x_1620); -lean_dec(x_1614); -x_1668 = lean_ctor_get(x_1659, 0); -lean_inc(x_1668); -x_1669 = lean_ctor_get(x_1659, 1); -lean_inc(x_1669); -if (lean_is_exclusive(x_1659)) { - lean_ctor_release(x_1659, 0); - lean_ctor_release(x_1659, 1); - x_1670 = x_1659; -} else { - lean_dec_ref(x_1659); - x_1670 = lean_box(0); -} -if (lean_is_scalar(x_1670)) { - x_1671 = lean_alloc_ctor(1, 2, 0); -} else { - x_1671 = x_1670; -} -lean_ctor_set(x_1671, 0, x_1668); -lean_ctor_set(x_1671, 1, x_1669); -return x_1671; -} -} -} -else -{ -lean_dec(x_1471); -x_1 = x_1473; +lean_object* x_1614; lean_object* x_1615; lean_object* x_1616; lean_object* x_1617; lean_object* x_1618; lean_object* x_1619; lean_object* x_1620; lean_object* x_1621; lean_object* x_1622; +lean_dec(x_1540); +lean_dec(x_1536); +lean_free_object(x_30); +lean_dec(x_42); +lean_dec(x_1); +x_1614 = l_Lean_Syntax_inhabited; +x_1615 = lean_unsigned_to_nat(0u); +x_1616 = lean_array_get(x_1614, x_4, x_1615); +x_1617 = lean_unsigned_to_nat(2u); +x_1618 = lean_array_get(x_1614, x_4, x_1617); +lean_dec(x_4); +x_1619 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__1___boxed), 6, 3); +lean_closure_set(x_1619, 0, x_41); +lean_closure_set(x_1619, 1, x_1616); +lean_closure_set(x_1619, 2, x_1618); +x_1620 = l_Lean_Unhygienic_MonadQuotation___closed__4; +x_1621 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___spec__1___rarg), 4, 2); +lean_closure_set(x_1621, 0, x_1620); +lean_closure_set(x_1621, 1, x_1619); +x_1622 = l_Lean_Unhygienic_run___rarg(x_1621); +x_1 = x_1622; goto _start; } } +else +{ +lean_object* x_1624; lean_object* x_1625; lean_object* x_1626; lean_object* x_1627; lean_object* x_1628; lean_object* x_1629; lean_object* x_1630; lean_object* x_1631; lean_object* x_1632; +lean_dec(x_1540); +lean_dec(x_1536); +lean_free_object(x_30); +lean_dec(x_42); +lean_dec(x_1); +x_1624 = l_Lean_Syntax_inhabited; +x_1625 = lean_unsigned_to_nat(0u); +x_1626 = lean_array_get(x_1624, x_4, x_1625); +x_1627 = lean_unsigned_to_nat(2u); +x_1628 = lean_array_get(x_1624, x_4, x_1627); +lean_dec(x_4); +x_1629 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__2___boxed), 6, 3); +lean_closure_set(x_1629, 0, x_41); +lean_closure_set(x_1629, 1, x_1626); +lean_closure_set(x_1629, 2, x_1628); +x_1630 = l_Lean_Unhygienic_MonadQuotation___closed__4; +x_1631 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___spec__1___rarg), 4, 2); +lean_closure_set(x_1631, 0, x_1630); +lean_closure_set(x_1631, 1, x_1629); +x_1632 = l_Lean_Unhygienic_run___rarg(x_1631); +x_1 = x_1632; +goto _start; +} } else { -lean_object* x_1673; lean_object* x_1674; lean_object* x_1675; -lean_dec(x_1253); -lean_free_object(x_24); -lean_free_object(x_15); -lean_dec(x_27); -x_1673 = l_Lean_Syntax_inhabited; -x_1674 = lean_unsigned_to_nat(0u); -x_1675 = lean_array_get(x_1673, x_4, x_1674); +lean_object* x_1634; lean_object* x_1635; lean_object* x_1636; lean_object* x_1637; lean_object* x_1638; lean_object* x_1639; lean_object* x_1640; lean_object* x_1641; lean_object* x_1642; +lean_dec(x_1540); +lean_dec(x_1536); +lean_free_object(x_30); +lean_dec(x_42); +lean_dec(x_1); +x_1634 = l_Lean_Syntax_inhabited; +x_1635 = lean_unsigned_to_nat(0u); +x_1636 = lean_array_get(x_1634, x_4, x_1635); +x_1637 = lean_unsigned_to_nat(2u); +x_1638 = lean_array_get(x_1634, x_4, x_1637); lean_dec(x_4); -if (lean_obj_tag(x_1675) == 3) +x_1639 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__3___boxed), 6, 3); +lean_closure_set(x_1639, 0, x_41); +lean_closure_set(x_1639, 1, x_1636); +lean_closure_set(x_1639, 2, x_1638); +x_1640 = l_Lean_Unhygienic_MonadQuotation___closed__4; +x_1641 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___spec__1___rarg), 4, 2); +lean_closure_set(x_1641, 0, x_1640); +lean_closure_set(x_1641, 1, x_1639); +x_1642 = l_Lean_Unhygienic_run___rarg(x_1641); +x_1 = x_1642; +goto _start; +} +} +else { -lean_object* x_1676; lean_object* x_1677; lean_object* x_1678; lean_object* x_1679; -x_1676 = lean_ctor_get(x_1675, 2); +lean_object* x_1644; lean_object* x_1645; lean_object* x_1646; lean_object* x_1647; lean_object* x_1648; lean_object* x_1649; uint8_t x_1650; +lean_dec(x_1540); +lean_dec(x_1536); +lean_free_object(x_30); +lean_dec(x_42); +lean_dec(x_1); +x_1644 = l_Lean_Syntax_inhabited; +x_1645 = lean_unsigned_to_nat(1u); +x_1646 = lean_array_get(x_1644, x_4, x_1645); +lean_dec(x_4); +x_1647 = l_Lean_Syntax_getArgs(x_1646); +lean_dec(x_1646); +x_1648 = lean_array_get_size(x_1647); +x_1649 = lean_unsigned_to_nat(0u); +x_1650 = lean_nat_dec_eq(x_1648, x_1649); +lean_dec(x_1648); +if (x_1650 == 0) +{ +lean_object* x_1651; +x_1651 = lean_array_get(x_1644, x_1647, x_1649); +lean_dec(x_1647); +x_1 = x_1651; +goto _start; +} +else +{ +lean_object* x_1653; lean_object* x_1654; lean_object* x_1655; lean_object* x_1656; lean_object* x_1657; lean_object* x_1658; lean_object* x_1659; +lean_dec(x_1647); +lean_dec(x_2); +x_1653 = l___private_Lean_Compiler_InitAttr_2__isUnitType___closed__1; +x_1654 = lean_name_mk_string(x_41, x_1653); +x_1655 = l_Lean_unitToExpr___lambda__1___closed__3; +x_1656 = lean_name_mk_string(x_1654, x_1655); +x_1657 = lean_box(0); +x_1658 = l_Lean_mkConst(x_1656, x_1657); +x_1659 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1659, 0, x_1658); +lean_ctor_set(x_1659, 1, x_3); +return x_1659; +} +} +} +else +{ +lean_object* x_1660; lean_object* x_1661; lean_object* x_1662; lean_object* x_1663; lean_object* x_1664; lean_object* x_1665; lean_object* x_1666; lean_object* x_1667; lean_object* x_1668; lean_object* x_1669; lean_object* x_1670; +lean_dec(x_1540); +lean_dec(x_1536); +lean_free_object(x_30); +lean_dec(x_42); +lean_dec(x_1); +x_1660 = l_Lean_Syntax_inhabited; +x_1661 = lean_unsigned_to_nat(2u); +x_1662 = lean_array_get(x_1660, x_4, x_1661); +x_1663 = lean_unsigned_to_nat(4u); +x_1664 = lean_array_get(x_1660, x_4, x_1663); +x_1665 = lean_unsigned_to_nat(6u); +x_1666 = lean_array_get(x_1660, x_4, x_1665); +lean_dec(x_4); +x_1667 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__4___boxed), 7, 4); +lean_closure_set(x_1667, 0, x_41); +lean_closure_set(x_1667, 1, x_1662); +lean_closure_set(x_1667, 2, x_1664); +lean_closure_set(x_1667, 3, x_1666); +x_1668 = l_Lean_Unhygienic_MonadQuotation___closed__4; +x_1669 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___spec__1___rarg), 4, 2); +lean_closure_set(x_1669, 0, x_1668); +lean_closure_set(x_1669, 1, x_1667); +x_1670 = l_Lean_Unhygienic_run___rarg(x_1669); +x_1 = x_1670; +goto _start; +} +} +else +{ +lean_object* x_1672; lean_object* x_1673; lean_object* x_1674; lean_object* x_1675; +lean_dec(x_1540); +lean_dec(x_1536); +lean_free_object(x_30); +lean_dec(x_42); +lean_dec(x_1); +x_1672 = l_Lean_Syntax_inhabited; +x_1673 = lean_unsigned_to_nat(0u); +x_1674 = lean_array_get(x_1672, x_4, x_1673); +lean_inc(x_2); +x_1675 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_1674, x_2, x_3); +if (lean_obj_tag(x_1675) == 0) +{ +lean_object* x_1676; lean_object* x_1677; lean_object* x_1678; lean_object* x_1679; lean_object* x_1680; lean_object* x_1681; lean_object* x_1682; lean_object* x_1683; lean_object* x_1684; +x_1676 = lean_ctor_get(x_1675, 0); lean_inc(x_1676); -x_1677 = lean_ctor_get(x_1675, 3); +x_1677 = lean_ctor_get(x_1675, 1); lean_inc(x_1677); lean_dec(x_1675); -x_1678 = lean_box(0); -lean_inc(x_2); -x_1679 = l_Lean_Elab_Term_resolveName(x_1, x_1676, x_1677, x_1678, x_2, x_3); -lean_dec(x_1); -if (lean_obj_tag(x_1679) == 0) -{ -lean_object* x_1680; -x_1680 = lean_ctor_get(x_1679, 0); -lean_inc(x_1680); -if (lean_obj_tag(x_1680) == 0) -{ -lean_object* x_1681; lean_object* x_1682; lean_object* x_1683; lean_object* x_1684; -x_1681 = lean_ctor_get(x_1679, 1); -lean_inc(x_1681); +x_1678 = lean_unsigned_to_nat(1u); +x_1679 = lean_array_get(x_1672, x_4, x_1678); +lean_dec(x_4); +x_1680 = l_Lean_Syntax_getArgs(x_1679); lean_dec(x_1679); -x_1682 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; -x_1683 = l_unreachable_x21___rarg(x_1682); -x_1684 = lean_apply_2(x_1683, x_2, x_1681); -return x_1684; +x_1681 = x_1680; +x_1682 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__1), 4, 2); +lean_closure_set(x_1682, 0, x_1673); +lean_closure_set(x_1682, 1, x_1681); +x_1683 = x_1682; +x_1684 = lean_apply_2(x_1683, x_2, x_1677); +if (lean_obj_tag(x_1684) == 0) +{ +lean_object* x_1685; lean_object* x_1686; lean_object* x_1687; lean_object* x_1688; lean_object* x_1689; +x_1685 = lean_ctor_get(x_1684, 0); +lean_inc(x_1685); +x_1686 = lean_ctor_get(x_1684, 1); +lean_inc(x_1686); +if (lean_is_exclusive(x_1684)) { + lean_ctor_release(x_1684, 0); + lean_ctor_release(x_1684, 1); + x_1687 = x_1684; +} else { + lean_dec_ref(x_1684); + x_1687 = lean_box(0); +} +x_1688 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_1685, x_1685, x_1673, x_1676); +lean_dec(x_1685); +if (lean_is_scalar(x_1687)) { + x_1689 = lean_alloc_ctor(0, 2, 0); +} else { + x_1689 = x_1687; +} +lean_ctor_set(x_1689, 0, x_1688); +lean_ctor_set(x_1689, 1, x_1686); +return x_1689; } else { -lean_object* x_1685; lean_object* x_1686; +lean_object* x_1690; lean_object* x_1691; lean_object* x_1692; lean_object* x_1693; +lean_dec(x_1676); +x_1690 = lean_ctor_get(x_1684, 0); +lean_inc(x_1690); +x_1691 = lean_ctor_get(x_1684, 1); +lean_inc(x_1691); +if (lean_is_exclusive(x_1684)) { + lean_ctor_release(x_1684, 0); + lean_ctor_release(x_1684, 1); + x_1692 = x_1684; +} else { + lean_dec_ref(x_1684); + x_1692 = lean_box(0); +} +if (lean_is_scalar(x_1692)) { + x_1693 = lean_alloc_ctor(1, 2, 0); +} else { + x_1693 = x_1692; +} +lean_ctor_set(x_1693, 0, x_1690); +lean_ctor_set(x_1693, 1, x_1691); +return x_1693; +} +} +else +{ +lean_object* x_1694; lean_object* x_1695; lean_object* x_1696; lean_object* x_1697; lean_dec(x_2); -x_1685 = lean_ctor_get(x_1680, 0); -lean_inc(x_1685); -lean_dec(x_1680); -x_1686 = lean_ctor_get(x_1685, 0); -lean_inc(x_1686); -switch (lean_obj_tag(x_1686)) { -case 0: -{ -lean_object* x_1687; lean_object* x_1688; lean_object* x_1689; lean_object* x_1690; lean_object* x_1691; -x_1687 = lean_ctor_get(x_1679, 1); -lean_inc(x_1687); -if (lean_is_exclusive(x_1679)) { - lean_ctor_release(x_1679, 0); - lean_ctor_release(x_1679, 1); - x_1688 = x_1679; -} else { - lean_dec_ref(x_1679); - x_1688 = lean_box(0); -} -x_1689 = lean_ctor_get(x_1685, 1); -lean_inc(x_1689); -lean_dec(x_1685); -x_1690 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__2(x_26, x_1686, x_1689); -if (lean_is_scalar(x_1688)) { - x_1691 = lean_alloc_ctor(0, 2, 0); -} else { - x_1691 = x_1688; -} -lean_ctor_set(x_1691, 0, x_1690); -lean_ctor_set(x_1691, 1, x_1687); -return x_1691; -} -case 1: -{ -lean_object* x_1692; lean_object* x_1693; lean_object* x_1694; lean_object* x_1695; lean_object* x_1696; -x_1692 = lean_ctor_get(x_1679, 1); -lean_inc(x_1692); -if (lean_is_exclusive(x_1679)) { - lean_ctor_release(x_1679, 0); - lean_ctor_release(x_1679, 1); - x_1693 = x_1679; -} else { - lean_dec_ref(x_1679); - x_1693 = lean_box(0); -} -x_1694 = lean_ctor_get(x_1685, 1); +lean_dec(x_4); +x_1694 = lean_ctor_get(x_1675, 0); lean_inc(x_1694); -lean_dec(x_1685); -x_1695 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__3(x_26, x_1686, x_1694); -if (lean_is_scalar(x_1693)) { - x_1696 = lean_alloc_ctor(0, 2, 0); +x_1695 = lean_ctor_get(x_1675, 1); +lean_inc(x_1695); +if (lean_is_exclusive(x_1675)) { + lean_ctor_release(x_1675, 0); + lean_ctor_release(x_1675, 1); + x_1696 = x_1675; } else { - x_1696 = x_1693; + lean_dec_ref(x_1675); + x_1696 = lean_box(0); } -lean_ctor_set(x_1696, 0, x_1695); -lean_ctor_set(x_1696, 1, x_1692); -return x_1696; +if (lean_is_scalar(x_1696)) { + x_1697 = lean_alloc_ctor(1, 2, 0); +} else { + x_1697 = x_1696; } -case 2: +lean_ctor_set(x_1697, 0, x_1694); +lean_ctor_set(x_1697, 1, x_1695); +return x_1697; +} +} +} +else { -lean_object* x_1697; lean_object* x_1698; lean_object* x_1699; lean_object* x_1700; lean_object* x_1701; -x_1697 = lean_ctor_get(x_1679, 1); -lean_inc(x_1697); -if (lean_is_exclusive(x_1679)) { - lean_ctor_release(x_1679, 0); - lean_ctor_release(x_1679, 1); - x_1698 = x_1679; -} else { - lean_dec_ref(x_1679); - x_1698 = lean_box(0); -} -x_1699 = lean_ctor_get(x_1685, 1); -lean_inc(x_1699); -lean_dec(x_1685); -x_1700 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__4(x_26, x_1686, x_1699); -if (lean_is_scalar(x_1698)) { - x_1701 = lean_alloc_ctor(0, 2, 0); -} else { - x_1701 = x_1698; -} -lean_ctor_set(x_1701, 0, x_1700); -lean_ctor_set(x_1701, 1, x_1697); -return x_1701; -} -case 3: +lean_object* x_1698; lean_object* x_1699; lean_object* x_1700; lean_object* x_1701; lean_object* x_1702; uint8_t x_1703; lean_object* x_1704; lean_object* x_1705; lean_object* x_1706; lean_object* x_1707; lean_object* x_1708; +lean_dec(x_1540); +lean_dec(x_1536); +lean_free_object(x_30); +lean_dec(x_42); +x_1698 = l_Lean_Syntax_inhabited; +x_1699 = lean_unsigned_to_nat(1u); +x_1700 = lean_array_get(x_1698, x_4, x_1699); +x_1701 = lean_unsigned_to_nat(0u); +x_1702 = l_Lean_Syntax_getArg(x_1700, x_1701); +x_1703 = l_Lean_Syntax_isIdent(x_1702); +x_1704 = lean_unsigned_to_nat(4u); +x_1705 = l_Lean_Syntax_getArg(x_1700, x_1704); +lean_dec(x_1700); +x_1706 = lean_unsigned_to_nat(3u); +x_1707 = lean_array_get(x_1698, x_4, x_1706); +lean_dec(x_4); +if (x_1703 == 0) { -lean_object* x_1702; lean_object* x_1703; lean_object* x_1704; lean_object* x_1705; lean_object* x_1706; -x_1702 = lean_ctor_get(x_1679, 1); -lean_inc(x_1702); -if (lean_is_exclusive(x_1679)) { - lean_ctor_release(x_1679, 0); - lean_ctor_release(x_1679, 1); - x_1703 = x_1679; -} else { - lean_dec_ref(x_1679); - x_1703 = lean_box(0); +lean_object* x_1742; +x_1742 = l_Lean_Syntax_getIdAt(x_1702, x_1701); +lean_dec(x_1702); +x_1708 = x_1742; +goto block_1741; } -x_1704 = lean_ctor_get(x_1685, 1); -lean_inc(x_1704); -lean_dec(x_1685); -x_1705 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__5(x_26, x_1686, x_1704); -if (lean_is_scalar(x_1703)) { - x_1706 = lean_alloc_ctor(0, 2, 0); -} else { - x_1706 = x_1703; -} -lean_ctor_set(x_1706, 0, x_1705); -lean_ctor_set(x_1706, 1, x_1702); -return x_1706; -} -case 4: +else { -lean_object* x_1707; lean_object* x_1708; lean_object* x_1709; lean_object* x_1710; lean_object* x_1711; lean_object* x_1712; lean_object* x_1713; -x_1707 = lean_ctor_get(x_1679, 1); -lean_inc(x_1707); -if (lean_is_exclusive(x_1679)) { - lean_ctor_release(x_1679, 0); - lean_ctor_release(x_1679, 1); - x_1708 = x_1679; -} else { - lean_dec_ref(x_1679); - x_1708 = lean_box(0); +lean_object* x_1743; +x_1743 = l_Lean_Syntax_getId(x_1702); +lean_dec(x_1702); +x_1708 = x_1743; +goto block_1741; } -x_1709 = lean_ctor_get(x_1685, 1); -lean_inc(x_1709); -lean_dec(x_1685); -x_1710 = lean_ctor_get(x_1686, 0); +block_1741: +{ +lean_object* x_1709; +lean_inc(x_2); +x_1709 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_1705, x_2, x_3); +if (lean_obj_tag(x_1709) == 0) +{ +lean_object* x_1710; lean_object* x_1711; lean_object* x_1712; lean_object* x_1713; lean_object* x_1714; lean_object* x_1715; lean_object* x_1716; lean_object* x_1717; lean_object* x_1718; lean_object* x_1719; lean_object* x_1720; lean_object* x_1721; lean_object* x_1722; lean_object* x_1723; lean_object* x_1724; +x_1710 = lean_ctor_get(x_1709, 0); lean_inc(x_1710); -lean_dec(x_1686); -x_1711 = l_Lean_mkConst(x_1710, x_1678); -x_1712 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__6(x_26, x_1711, x_1709); -if (lean_is_scalar(x_1708)) { - x_1713 = lean_alloc_ctor(0, 2, 0); -} else { - x_1713 = x_1708; -} -lean_ctor_set(x_1713, 0, x_1712); -lean_ctor_set(x_1713, 1, x_1707); -return x_1713; -} -case 5: -{ -lean_object* x_1714; lean_object* x_1715; lean_object* x_1716; lean_object* x_1717; lean_object* x_1718; -x_1714 = lean_ctor_get(x_1679, 1); +x_1711 = lean_ctor_get(x_1709, 1); +lean_inc(x_1711); +lean_dec(x_1709); +x_1712 = l_Lean_Elab_Term_getLCtx(x_2, x_1711); +lean_dec(x_2); +x_1713 = lean_ctor_get(x_1712, 0); +lean_inc(x_1713); +x_1714 = lean_ctor_get(x_1712, 1); lean_inc(x_1714); -if (lean_is_exclusive(x_1679)) { - lean_ctor_release(x_1679, 0); - lean_ctor_release(x_1679, 1); - x_1715 = x_1679; -} else { - lean_dec_ref(x_1679); - x_1715 = lean_box(0); -} -x_1716 = lean_ctor_get(x_1685, 1); -lean_inc(x_1716); -lean_dec(x_1685); -x_1717 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__7(x_26, x_1686, x_1716); -if (lean_is_scalar(x_1715)) { - x_1718 = lean_alloc_ctor(0, 2, 0); -} else { - x_1718 = x_1715; -} -lean_ctor_set(x_1718, 0, x_1717); -lean_ctor_set(x_1718, 1, x_1714); -return x_1718; -} -case 6: -{ -lean_object* x_1719; lean_object* x_1720; lean_object* x_1721; lean_object* x_1722; lean_object* x_1723; -x_1719 = lean_ctor_get(x_1679, 1); +lean_dec(x_1712); +x_1715 = l___private_Lean_Elab_Quotation_9__exprPlaceholder; +lean_inc_n(x_1708, 2); +x_1716 = lean_local_ctx_mk_let_decl(x_1713, x_1708, x_1708, x_1715, x_1710); +x_1717 = lean_ctor_get(x_7, 0); +lean_inc(x_1717); +x_1718 = lean_ctor_get(x_7, 2); +lean_inc(x_1718); +x_1719 = lean_ctor_get(x_7, 3); lean_inc(x_1719); -if (lean_is_exclusive(x_1679)) { - lean_ctor_release(x_1679, 0); - lean_ctor_release(x_1679, 1); - x_1720 = x_1679; +x_1720 = lean_ctor_get(x_7, 4); +lean_inc(x_1720); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + lean_ctor_release(x_7, 2); + lean_ctor_release(x_7, 3); + lean_ctor_release(x_7, 4); + x_1721 = x_7; } else { - lean_dec_ref(x_1679); - x_1720 = lean_box(0); + lean_dec_ref(x_7); + x_1721 = lean_box(0); } -x_1721 = lean_ctor_get(x_1685, 1); -lean_inc(x_1721); -lean_dec(x_1685); -x_1722 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__8(x_26, x_1686, x_1721); -if (lean_is_scalar(x_1720)) { - x_1723 = lean_alloc_ctor(0, 2, 0); +lean_inc(x_1716); +if (lean_is_scalar(x_1721)) { + x_1722 = lean_alloc_ctor(0, 5, 0); } else { - x_1723 = x_1720; + x_1722 = x_1721; } +lean_ctor_set(x_1722, 0, x_1717); +lean_ctor_set(x_1722, 1, x_1716); +lean_ctor_set(x_1722, 2, x_1718); +lean_ctor_set(x_1722, 3, x_1719); +lean_ctor_set(x_1722, 4, x_1720); +x_1723 = lean_alloc_ctor(0, 11, 3); lean_ctor_set(x_1723, 0, x_1722); -lean_ctor_set(x_1723, 1, x_1719); -return x_1723; -} -case 7: +lean_ctor_set(x_1723, 1, x_8); +lean_ctor_set(x_1723, 2, x_9); +lean_ctor_set(x_1723, 3, x_10); +lean_ctor_set(x_1723, 4, x_11); +lean_ctor_set(x_1723, 5, x_12); +lean_ctor_set(x_1723, 6, x_13); +lean_ctor_set(x_1723, 7, x_14); +lean_ctor_set(x_1723, 8, x_15); +lean_ctor_set(x_1723, 9, x_16); +lean_ctor_set(x_1723, 10, x_1); +lean_ctor_set_uint8(x_1723, sizeof(void*)*11, x_17); +lean_ctor_set_uint8(x_1723, sizeof(void*)*11 + 1, x_18); +lean_ctor_set_uint8(x_1723, sizeof(void*)*11 + 2, x_19); +x_1724 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_1707, x_1723, x_1714); +if (lean_obj_tag(x_1724) == 0) { -lean_object* x_1724; lean_object* x_1725; lean_object* x_1726; lean_object* x_1727; lean_object* x_1728; -x_1724 = lean_ctor_get(x_1679, 1); -lean_inc(x_1724); -if (lean_is_exclusive(x_1679)) { - lean_ctor_release(x_1679, 0); - lean_ctor_release(x_1679, 1); - x_1725 = x_1679; -} else { - lean_dec_ref(x_1679); - x_1725 = lean_box(0); -} -x_1726 = lean_ctor_get(x_1685, 1); +lean_object* x_1725; lean_object* x_1726; lean_object* x_1727; lean_object* x_1728; lean_object* x_1729; lean_object* x_1730; lean_object* x_1731; lean_object* x_1732; +x_1725 = lean_ctor_get(x_1724, 0); +lean_inc(x_1725); +x_1726 = lean_ctor_get(x_1724, 1); lean_inc(x_1726); -lean_dec(x_1685); -x_1727 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__9(x_26, x_1686, x_1726); -if (lean_is_scalar(x_1725)) { - x_1728 = lean_alloc_ctor(0, 2, 0); +if (lean_is_exclusive(x_1724)) { + lean_ctor_release(x_1724, 0); + lean_ctor_release(x_1724, 1); + x_1727 = x_1724; } else { - x_1728 = x_1725; + lean_dec_ref(x_1724); + x_1727 = lean_box(0); } -lean_ctor_set(x_1728, 0, x_1727); -lean_ctor_set(x_1728, 1, x_1724); -return x_1728; +x_1728 = l_Lean_mkFVar(x_1708); +x_1729 = l_Lean_mkOptionalNode___closed__2; +x_1730 = lean_array_push(x_1729, x_1728); +x_1731 = l_Lean_LocalContext_mkLambda(x_1716, x_1730, x_1725); +lean_dec(x_1725); +lean_dec(x_1730); +if (lean_is_scalar(x_1727)) { + x_1732 = lean_alloc_ctor(0, 2, 0); +} else { + x_1732 = x_1727; } -case 8: +lean_ctor_set(x_1732, 0, x_1731); +lean_ctor_set(x_1732, 1, x_1726); +return x_1732; +} +else { -lean_object* x_1729; lean_object* x_1730; lean_object* x_1731; lean_object* x_1732; lean_object* x_1733; -x_1729 = lean_ctor_get(x_1679, 1); -lean_inc(x_1729); -if (lean_is_exclusive(x_1679)) { - lean_ctor_release(x_1679, 0); - lean_ctor_release(x_1679, 1); - x_1730 = x_1679; -} else { - lean_dec_ref(x_1679); - x_1730 = lean_box(0); -} -x_1731 = lean_ctor_get(x_1685, 1); -lean_inc(x_1731); -lean_dec(x_1685); -x_1732 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__10(x_26, x_1686, x_1731); -if (lean_is_scalar(x_1730)) { - x_1733 = lean_alloc_ctor(0, 2, 0); -} else { - x_1733 = x_1730; -} -lean_ctor_set(x_1733, 0, x_1732); -lean_ctor_set(x_1733, 1, x_1729); -return x_1733; -} -case 9: -{ -lean_object* x_1734; lean_object* x_1735; lean_object* x_1736; lean_object* x_1737; lean_object* x_1738; -x_1734 = lean_ctor_get(x_1679, 1); +lean_object* x_1733; lean_object* x_1734; lean_object* x_1735; lean_object* x_1736; +lean_dec(x_1716); +lean_dec(x_1708); +x_1733 = lean_ctor_get(x_1724, 0); +lean_inc(x_1733); +x_1734 = lean_ctor_get(x_1724, 1); lean_inc(x_1734); -if (lean_is_exclusive(x_1679)) { - lean_ctor_release(x_1679, 0); - lean_ctor_release(x_1679, 1); - x_1735 = x_1679; +if (lean_is_exclusive(x_1724)) { + lean_ctor_release(x_1724, 0); + lean_ctor_release(x_1724, 1); + x_1735 = x_1724; } else { - lean_dec_ref(x_1679); + lean_dec_ref(x_1724); x_1735 = lean_box(0); } -x_1736 = lean_ctor_get(x_1685, 1); -lean_inc(x_1736); -lean_dec(x_1685); -x_1737 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__11(x_26, x_1686, x_1736); if (lean_is_scalar(x_1735)) { - x_1738 = lean_alloc_ctor(0, 2, 0); + x_1736 = lean_alloc_ctor(1, 2, 0); } else { - x_1738 = x_1735; -} -lean_ctor_set(x_1738, 0, x_1737); -lean_ctor_set(x_1738, 1, x_1734); -return x_1738; -} -case 10: -{ -lean_object* x_1739; lean_object* x_1740; lean_object* x_1741; lean_object* x_1742; lean_object* x_1743; -x_1739 = lean_ctor_get(x_1679, 1); -lean_inc(x_1739); -if (lean_is_exclusive(x_1679)) { - lean_ctor_release(x_1679, 0); - lean_ctor_release(x_1679, 1); - x_1740 = x_1679; -} else { - lean_dec_ref(x_1679); - x_1740 = lean_box(0); -} -x_1741 = lean_ctor_get(x_1685, 1); -lean_inc(x_1741); -lean_dec(x_1685); -x_1742 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__12(x_26, x_1686, x_1741); -if (lean_is_scalar(x_1740)) { - x_1743 = lean_alloc_ctor(0, 2, 0); -} else { - x_1743 = x_1740; -} -lean_ctor_set(x_1743, 0, x_1742); -lean_ctor_set(x_1743, 1, x_1739); -return x_1743; -} -case 11: -{ -lean_object* x_1744; lean_object* x_1745; lean_object* x_1746; lean_object* x_1747; lean_object* x_1748; -x_1744 = lean_ctor_get(x_1679, 1); -lean_inc(x_1744); -if (lean_is_exclusive(x_1679)) { - lean_ctor_release(x_1679, 0); - lean_ctor_release(x_1679, 1); - x_1745 = x_1679; -} else { - lean_dec_ref(x_1679); - x_1745 = lean_box(0); -} -x_1746 = lean_ctor_get(x_1685, 1); -lean_inc(x_1746); -lean_dec(x_1685); -x_1747 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__13(x_26, x_1686, x_1746); -if (lean_is_scalar(x_1745)) { - x_1748 = lean_alloc_ctor(0, 2, 0); -} else { - x_1748 = x_1745; -} -lean_ctor_set(x_1748, 0, x_1747); -lean_ctor_set(x_1748, 1, x_1744); -return x_1748; -} -default: -{ -lean_object* x_1749; lean_object* x_1750; lean_object* x_1751; lean_object* x_1752; lean_object* x_1753; -x_1749 = lean_ctor_get(x_1679, 1); -lean_inc(x_1749); -if (lean_is_exclusive(x_1679)) { - lean_ctor_release(x_1679, 0); - lean_ctor_release(x_1679, 1); - x_1750 = x_1679; -} else { - lean_dec_ref(x_1679); - x_1750 = lean_box(0); -} -x_1751 = lean_ctor_get(x_1685, 1); -lean_inc(x_1751); -lean_dec(x_1685); -x_1752 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__14(x_26, x_1686, x_1751); -if (lean_is_scalar(x_1750)) { - x_1753 = lean_alloc_ctor(0, 2, 0); -} else { - x_1753 = x_1750; -} -lean_ctor_set(x_1753, 0, x_1752); -lean_ctor_set(x_1753, 1, x_1749); -return x_1753; -} + x_1736 = x_1735; } +lean_ctor_set(x_1736, 0, x_1733); +lean_ctor_set(x_1736, 1, x_1734); +return x_1736; } } else { -lean_object* x_1754; lean_object* x_1755; lean_object* x_1756; lean_object* x_1757; +lean_object* x_1737; lean_object* x_1738; lean_object* x_1739; lean_object* x_1740; +lean_dec(x_1708); +lean_dec(x_1707); lean_dec(x_2); -x_1754 = lean_ctor_get(x_1679, 0); -lean_inc(x_1754); -x_1755 = lean_ctor_get(x_1679, 1); -lean_inc(x_1755); -if (lean_is_exclusive(x_1679)) { - lean_ctor_release(x_1679, 0); - lean_ctor_release(x_1679, 1); - x_1756 = x_1679; -} else { - lean_dec_ref(x_1679); - x_1756 = lean_box(0); -} -if (lean_is_scalar(x_1756)) { - x_1757 = lean_alloc_ctor(1, 2, 0); -} else { - x_1757 = x_1756; -} -lean_ctor_set(x_1757, 0, x_1754); -lean_ctor_set(x_1757, 1, x_1755); -return x_1757; -} -} -else -{ -lean_object* x_1758; lean_object* x_1759; lean_object* x_1760; -lean_dec(x_1675); +lean_dec(x_16); +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_9); +lean_dec(x_8); +lean_dec(x_7); lean_dec(x_1); -x_1758 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; -x_1759 = l_unreachable_x21___rarg(x_1758); -x_1760 = lean_apply_2(x_1759, x_2, x_3); -return x_1760; -} +x_1737 = lean_ctor_get(x_1709, 0); +lean_inc(x_1737); +x_1738 = lean_ctor_get(x_1709, 1); +lean_inc(x_1738); +if (lean_is_exclusive(x_1709)) { + lean_ctor_release(x_1709, 0); + lean_ctor_release(x_1709, 1); + x_1739 = x_1709; +} else { + lean_dec_ref(x_1709); + x_1739 = lean_box(0); } +if (lean_is_scalar(x_1739)) { + x_1740 = lean_alloc_ctor(1, 2, 0); +} else { + x_1740 = x_1739; } +lean_ctor_set(x_1740, 0, x_1737); +lean_ctor_set(x_1740, 1, x_1738); +return x_1740; } } } } else { -lean_object* x_1761; size_t x_1762; lean_object* x_1763; size_t x_1764; lean_object* x_1765; lean_object* x_1766; uint8_t x_1767; -x_1761 = lean_ctor_get(x_24, 1); -x_1762 = lean_ctor_get_usize(x_24, 2); -lean_inc(x_1761); -lean_dec(x_24); -x_1763 = lean_ctor_get(x_25, 1); -lean_inc(x_1763); -x_1764 = lean_ctor_get_usize(x_25, 2); -if (lean_is_exclusive(x_25)) { - lean_ctor_release(x_25, 0); - lean_ctor_release(x_25, 1); - x_1765 = x_25; -} else { - lean_dec_ref(x_25); - x_1765 = lean_box(0); -} -x_1766 = l_Lean_mkAppStx___closed__1; -x_1767 = lean_string_dec_eq(x_1763, x_1766); +lean_object* x_1744; lean_object* x_1745; lean_object* x_1746; lean_object* x_1747; lean_object* x_1748; lean_object* x_1749; lean_object* x_1750; lean_object* x_1751; uint8_t x_1752; +lean_dec(x_1540); +lean_dec(x_1536); +lean_free_object(x_30); +lean_dec(x_42); +x_1744 = l_Lean_Syntax_inhabited; +x_1745 = lean_unsigned_to_nat(1u); +x_1746 = lean_array_get(x_1744, x_4, x_1745); +x_1747 = l_Lean_Syntax_getArgs(x_1746); +lean_dec(x_1746); +x_1748 = lean_unsigned_to_nat(3u); +x_1749 = lean_array_get(x_1744, x_4, x_1748); +lean_dec(x_4); +x_1750 = lean_array_get_size(x_1747); +x_1751 = lean_unsigned_to_nat(0u); +x_1752 = lean_nat_dec_eq(x_1750, x_1751); +lean_dec(x_1750); +if (x_1752 == 0) +{ +lean_object* x_1753; lean_object* x_1754; lean_object* x_1755; lean_object* x_1756; lean_object* x_1757; uint8_t x_1758; +x_1753 = lean_array_get(x_1744, x_1747, x_1751); +x_1754 = lean_name_mk_string(x_41, x_1537); +x_1755 = lean_name_mk_string(x_1754, x_1541); +x_1756 = lean_name_mk_string(x_1755, x_1553); +lean_inc(x_1756); +x_1757 = lean_name_mk_string(x_1756, x_1565); +lean_inc(x_1753); +x_1758 = l_Lean_Syntax_isOfKind(x_1753, x_1757); +lean_dec(x_1757); +if (x_1758 == 0) +{ +lean_object* x_1759; lean_object* x_1760; uint8_t x_1761; +x_1759 = l_Lean_mkHole___closed__1; +lean_inc(x_1756); +x_1760 = lean_name_mk_string(x_1756, x_1759); +lean_inc(x_1753); +x_1761 = l_Lean_Syntax_isOfKind(x_1753, x_1760); +lean_dec(x_1760); +if (x_1761 == 0) +{ +lean_object* x_1762; lean_object* x_1763; lean_object* x_1764; lean_object* x_1765; lean_object* x_1766; lean_object* x_1767; lean_object* x_1768; +x_1762 = l_Lean_Syntax_getArg(x_1753, x_1745); +lean_dec(x_1753); +x_1763 = l_Lean_Syntax_getArg(x_1762, x_1751); +x_1764 = l_Lean_Syntax_getIdAt(x_1763, x_1751); lean_dec(x_1763); -if (x_1767 == 0) -{ -lean_object* x_1768; +x_1765 = l_Lean_Syntax_getArg(x_1762, x_1745); +lean_dec(x_1762); +x_1766 = l_Lean_Syntax_getArg(x_1765, x_1751); lean_dec(x_1765); -lean_dec(x_1761); -lean_free_object(x_15); -lean_dec(x_30); -lean_dec(x_27); -lean_dec(x_4); -x_1768 = lean_box(0); -x_6 = x_1768; -goto block_14; -} -else -{ -lean_object* x_1769; lean_object* x_1770; uint8_t x_1771; -if (lean_is_exclusive(x_5)) { - lean_ctor_release(x_5, 0); - lean_ctor_release(x_5, 1); - x_1769 = x_5; -} else { - lean_dec_ref(x_5); - x_1769 = lean_box(0); -} -x_1770 = l_Lean_mkAppStx___closed__3; -x_1771 = lean_string_dec_eq(x_1761, x_1770); -if (x_1771 == 0) -{ -lean_object* x_1772; lean_object* x_1773; lean_object* x_1774; lean_object* x_1775; lean_object* x_1776; lean_object* x_1777; lean_object* x_1778; lean_object* x_1779; lean_object* x_1780; lean_object* x_1781; -lean_dec(x_4); -if (lean_is_scalar(x_1765)) { - x_1772 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -} else { - x_1772 = x_1765; -} -lean_ctor_set(x_1772, 0, x_26); -lean_ctor_set(x_1772, 1, x_1766); -lean_ctor_set_usize(x_1772, 2, x_1764); -x_1773 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -lean_ctor_set(x_1773, 0, x_1772); -lean_ctor_set(x_1773, 1, x_1761); -lean_ctor_set_usize(x_1773, 2, x_1762); -lean_ctor_set(x_15, 0, x_1773); -if (lean_is_scalar(x_1769)) { - x_1774 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -} else { - x_1774 = x_1769; -} -lean_ctor_set(x_1774, 0, x_15); -lean_ctor_set(x_1774, 1, x_27); -lean_ctor_set_usize(x_1774, 2, x_29); -x_1775 = l_Lean_Name_toString___closed__1; -x_1776 = l_Lean_Name_toStringWithSep___main(x_1775, x_1774); -x_1777 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1777, 0, x_1776); -x_1778 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1778, 0, x_1777); -x_1779 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__3; -x_1780 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1780, 0, x_1779); -lean_ctor_set(x_1780, 1, x_1778); -x_1781 = l_Lean_Elab_Term_throwError___rarg(x_1, x_1780, x_2, x_3); -lean_dec(x_1); -return x_1781; -} -else -{ -lean_object* x_1782; uint8_t x_1783; -lean_dec(x_1761); -x_1782 = l_Lean_mkAppStx___closed__5; -x_1783 = lean_string_dec_eq(x_30, x_1782); -if (x_1783 == 0) -{ -lean_object* x_1784; lean_object* x_1785; lean_object* x_1786; lean_object* x_1787; lean_object* x_1788; lean_object* x_1789; lean_object* x_1790; lean_object* x_1791; lean_object* x_1792; lean_object* x_1793; -lean_dec(x_4); -if (lean_is_scalar(x_1765)) { - x_1784 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -} else { - x_1784 = x_1765; -} -lean_ctor_set(x_1784, 0, x_26); -lean_ctor_set(x_1784, 1, x_1766); -lean_ctor_set_usize(x_1784, 2, x_1764); -x_1785 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -lean_ctor_set(x_1785, 0, x_1784); -lean_ctor_set(x_1785, 1, x_1770); -lean_ctor_set_usize(x_1785, 2, x_1762); -lean_ctor_set(x_15, 0, x_1785); -if (lean_is_scalar(x_1769)) { - x_1786 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -} else { - x_1786 = x_1769; -} -lean_ctor_set(x_1786, 0, x_15); -lean_ctor_set(x_1786, 1, x_27); -lean_ctor_set_usize(x_1786, 2, x_29); -x_1787 = l_Lean_Name_toString___closed__1; -x_1788 = l_Lean_Name_toStringWithSep___main(x_1787, x_1786); -x_1789 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1789, 0, x_1788); -x_1790 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1790, 0, x_1789); -x_1791 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__3; -x_1792 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1792, 0, x_1791); -lean_ctor_set(x_1792, 1, x_1790); -x_1793 = l_Lean_Elab_Term_throwError___rarg(x_1, x_1792, x_2, x_3); -lean_dec(x_1); -return x_1793; -} -else -{ -lean_object* x_1794; uint8_t x_1795; -lean_dec(x_30); -x_1794 = l_Lean_mkTermIdFromIdent___closed__1; -x_1795 = lean_string_dec_eq(x_27, x_1794); -if (x_1795 == 0) -{ -lean_object* x_1796; uint8_t x_1797; -x_1796 = l_Lean_Parser_Term_fun___elambda__1___closed__1; -x_1797 = lean_string_dec_eq(x_27, x_1796); -if (x_1797 == 0) -{ -lean_object* x_1798; uint8_t x_1799; -x_1798 = l_Lean_Parser_Term_let___elambda__1___closed__1; -x_1799 = lean_string_dec_eq(x_27, x_1798); -if (x_1799 == 0) -{ -lean_object* x_1800; uint8_t x_1801; -x_1800 = l_Lean_mkAppStx___closed__7; -x_1801 = lean_string_dec_eq(x_27, x_1800); -if (x_1801 == 0) -{ -lean_object* x_1802; uint8_t x_1803; -x_1802 = l_Lean_Parser_Term_if___elambda__1___closed__1; -x_1803 = lean_string_dec_eq(x_27, x_1802); -if (x_1803 == 0) -{ -lean_object* x_1804; uint8_t x_1805; -x_1804 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__1; -x_1805 = lean_string_dec_eq(x_27, x_1804); -if (x_1805 == 0) -{ -lean_object* x_1806; uint8_t x_1807; -x_1806 = l_Lean_Parser_Term_band___elambda__1___closed__1; -x_1807 = lean_string_dec_eq(x_27, x_1806); -if (x_1807 == 0) -{ -lean_object* x_1808; uint8_t x_1809; -x_1808 = l_Lean_Meta_reduceNat_x3f___closed__12; -x_1809 = lean_string_dec_eq(x_27, x_1808); -if (x_1809 == 0) -{ -lean_object* x_1810; uint8_t x_1811; -x_1810 = l_Lean_Parser_Term_eq___elambda__1___closed__1; -x_1811 = lean_string_dec_eq(x_27, x_1810); -if (x_1811 == 0) -{ -lean_object* x_1812; uint8_t x_1813; -lean_dec(x_4); -x_1812 = l_Lean_String_HasQuote___closed__1; -x_1813 = lean_string_dec_eq(x_27, x_1812); -if (x_1813 == 0) -{ -lean_object* x_1814; uint8_t x_1815; -x_1814 = l_Lean_Nat_HasQuote___closed__1; -x_1815 = lean_string_dec_eq(x_27, x_1814); -if (x_1815 == 0) -{ -lean_object* x_1816; lean_object* x_1817; lean_object* x_1818; lean_object* x_1819; lean_object* x_1820; lean_object* x_1821; lean_object* x_1822; lean_object* x_1823; lean_object* x_1824; lean_object* x_1825; -if (lean_is_scalar(x_1765)) { - x_1816 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -} else { - x_1816 = x_1765; -} -lean_ctor_set(x_1816, 0, x_26); -lean_ctor_set(x_1816, 1, x_1766); -lean_ctor_set_usize(x_1816, 2, x_1764); -x_1817 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -lean_ctor_set(x_1817, 0, x_1816); -lean_ctor_set(x_1817, 1, x_1770); -lean_ctor_set_usize(x_1817, 2, x_1762); -lean_ctor_set(x_15, 1, x_1782); -lean_ctor_set(x_15, 0, x_1817); -if (lean_is_scalar(x_1769)) { - x_1818 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -} else { - x_1818 = x_1769; -} -lean_ctor_set(x_1818, 0, x_15); -lean_ctor_set(x_1818, 1, x_27); -lean_ctor_set_usize(x_1818, 2, x_29); -x_1819 = l_Lean_Name_toString___closed__1; -x_1820 = l_Lean_Name_toStringWithSep___main(x_1819, x_1818); -x_1821 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1821, 0, x_1820); -x_1822 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1822, 0, x_1821); -x_1823 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__3; -x_1824 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1824, 0, x_1823); -lean_ctor_set(x_1824, 1, x_1822); -x_1825 = l_Lean_Elab_Term_throwError___rarg(x_1, x_1824, x_2, x_3); -lean_dec(x_1); -return x_1825; -} -else -{ -lean_object* x_1826; lean_object* x_1827; lean_object* x_1828; lean_object* x_1829; -lean_dec(x_1769); -lean_dec(x_1765); -lean_free_object(x_15); -lean_dec(x_27); -lean_dec(x_2); -x_1826 = lean_unsigned_to_nat(0u); -x_1827 = l_Lean_Syntax_getArg(x_1, x_1826); -lean_dec(x_1); -x_1828 = l_Lean_numLitKind; -x_1829 = l_Lean_Syntax_isNatLitAux(x_1828, x_1827); -lean_dec(x_1827); -if (lean_obj_tag(x_1829) == 0) -{ -lean_object* x_1830; lean_object* x_1831; -x_1830 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__5; -x_1831 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1831, 0, x_1830); -lean_ctor_set(x_1831, 1, x_3); -return x_1831; -} -else -{ -lean_object* x_1832; lean_object* x_1833; lean_object* x_1834; -x_1832 = lean_ctor_get(x_1829, 0); -lean_inc(x_1832); -lean_dec(x_1829); -x_1833 = l_Lean_mkNatLit(x_1832); -x_1834 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1834, 0, x_1833); -lean_ctor_set(x_1834, 1, x_3); -return x_1834; -} -} -} -else -{ -lean_object* x_1835; lean_object* x_1836; lean_object* x_1837; -lean_dec(x_1769); -lean_dec(x_1765); -lean_free_object(x_15); -lean_dec(x_27); -lean_dec(x_2); -x_1835 = lean_unsigned_to_nat(0u); -x_1836 = l_Lean_Syntax_getArg(x_1, x_1835); -lean_dec(x_1); -x_1837 = l_Lean_Syntax_isStrLit_x3f(x_1836); -lean_dec(x_1836); -if (lean_obj_tag(x_1837) == 0) -{ -lean_object* x_1838; lean_object* x_1839; -x_1838 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__6; -x_1839 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1839, 0, x_1838); -lean_ctor_set(x_1839, 1, x_3); -return x_1839; -} -else -{ -lean_object* x_1840; lean_object* x_1841; lean_object* x_1842; -x_1840 = lean_ctor_get(x_1837, 0); -lean_inc(x_1840); -lean_dec(x_1837); -x_1841 = l_Lean_mkStrLit(x_1840); -x_1842 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1842, 0, x_1841); -lean_ctor_set(x_1842, 1, x_3); -return x_1842; -} -} -} -else -{ -lean_object* x_1843; lean_object* x_1844; lean_object* x_1845; lean_object* x_1846; lean_object* x_1847; lean_object* x_1848; lean_object* x_1849; lean_object* x_1850; lean_object* x_1851; -lean_dec(x_1769); -lean_dec(x_1765); -lean_free_object(x_15); -lean_dec(x_27); -lean_dec(x_1); -x_1843 = l_Lean_Syntax_inhabited; -x_1844 = lean_unsigned_to_nat(0u); -x_1845 = lean_array_get(x_1843, x_4, x_1844); -x_1846 = lean_unsigned_to_nat(2u); -x_1847 = lean_array_get(x_1843, x_4, x_1846); -lean_dec(x_4); -x_1848 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__1___boxed), 6, 3); -lean_closure_set(x_1848, 0, x_26); -lean_closure_set(x_1848, 1, x_1845); -lean_closure_set(x_1848, 2, x_1847); -x_1849 = l_Lean_Unhygienic_MonadQuotation___closed__4; -x_1850 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___spec__1___rarg), 4, 2); -lean_closure_set(x_1850, 0, x_1849); -lean_closure_set(x_1850, 1, x_1848); -x_1851 = l_Lean_Unhygienic_run___rarg(x_1850); -x_1 = x_1851; -goto _start; -} -} -else -{ -lean_object* x_1853; lean_object* x_1854; lean_object* x_1855; lean_object* x_1856; lean_object* x_1857; lean_object* x_1858; lean_object* x_1859; lean_object* x_1860; lean_object* x_1861; -lean_dec(x_1769); -lean_dec(x_1765); -lean_free_object(x_15); -lean_dec(x_27); -lean_dec(x_1); -x_1853 = l_Lean_Syntax_inhabited; -x_1854 = lean_unsigned_to_nat(0u); -x_1855 = lean_array_get(x_1853, x_4, x_1854); -x_1856 = lean_unsigned_to_nat(2u); -x_1857 = lean_array_get(x_1853, x_4, x_1856); -lean_dec(x_4); -x_1858 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__2___boxed), 6, 3); -lean_closure_set(x_1858, 0, x_26); -lean_closure_set(x_1858, 1, x_1855); -lean_closure_set(x_1858, 2, x_1857); -x_1859 = l_Lean_Unhygienic_MonadQuotation___closed__4; -x_1860 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___spec__1___rarg), 4, 2); -lean_closure_set(x_1860, 0, x_1859); -lean_closure_set(x_1860, 1, x_1858); -x_1861 = l_Lean_Unhygienic_run___rarg(x_1860); -x_1 = x_1861; -goto _start; -} -} -else -{ -lean_object* x_1863; lean_object* x_1864; lean_object* x_1865; lean_object* x_1866; lean_object* x_1867; lean_object* x_1868; lean_object* x_1869; lean_object* x_1870; lean_object* x_1871; -lean_dec(x_1769); -lean_dec(x_1765); -lean_free_object(x_15); -lean_dec(x_27); -lean_dec(x_1); -x_1863 = l_Lean_Syntax_inhabited; -x_1864 = lean_unsigned_to_nat(0u); -x_1865 = lean_array_get(x_1863, x_4, x_1864); -x_1866 = lean_unsigned_to_nat(2u); -x_1867 = lean_array_get(x_1863, x_4, x_1866); -lean_dec(x_4); -x_1868 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__3___boxed), 6, 3); -lean_closure_set(x_1868, 0, x_26); -lean_closure_set(x_1868, 1, x_1865); -lean_closure_set(x_1868, 2, x_1867); -x_1869 = l_Lean_Unhygienic_MonadQuotation___closed__4; -x_1870 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___spec__1___rarg), 4, 2); -lean_closure_set(x_1870, 0, x_1869); -lean_closure_set(x_1870, 1, x_1868); -x_1871 = l_Lean_Unhygienic_run___rarg(x_1870); -x_1 = x_1871; -goto _start; -} -} -else -{ -lean_object* x_1873; lean_object* x_1874; lean_object* x_1875; lean_object* x_1876; lean_object* x_1877; lean_object* x_1878; uint8_t x_1879; -lean_dec(x_1769); -lean_dec(x_1765); -lean_free_object(x_15); -lean_dec(x_27); -lean_dec(x_1); -x_1873 = l_Lean_Syntax_inhabited; -x_1874 = lean_unsigned_to_nat(1u); -x_1875 = lean_array_get(x_1873, x_4, x_1874); -lean_dec(x_4); -x_1876 = l_Lean_Syntax_getArgs(x_1875); -lean_dec(x_1875); -x_1877 = lean_array_get_size(x_1876); -x_1878 = lean_unsigned_to_nat(0u); -x_1879 = lean_nat_dec_eq(x_1877, x_1878); -lean_dec(x_1877); -if (x_1879 == 0) -{ -lean_object* x_1880; -x_1880 = lean_array_get(x_1873, x_1876, x_1878); -lean_dec(x_1876); -x_1 = x_1880; -goto _start; -} -else -{ -lean_object* x_1882; lean_object* x_1883; lean_object* x_1884; lean_object* x_1885; lean_object* x_1886; lean_object* x_1887; lean_object* x_1888; -lean_dec(x_1876); -lean_dec(x_2); -x_1882 = l___private_Lean_Compiler_InitAttr_2__isUnitType___closed__1; -x_1883 = lean_name_mk_string(x_26, x_1882); -x_1884 = l_Lean_unitToExpr___lambda__1___closed__3; -x_1885 = lean_name_mk_string(x_1883, x_1884); -x_1886 = lean_box(0); -x_1887 = l_Lean_mkConst(x_1885, x_1886); -x_1888 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1888, 0, x_1887); -lean_ctor_set(x_1888, 1, x_3); -return x_1888; -} -} -} -else -{ -lean_object* x_1889; lean_object* x_1890; lean_object* x_1891; lean_object* x_1892; lean_object* x_1893; lean_object* x_1894; lean_object* x_1895; lean_object* x_1896; lean_object* x_1897; lean_object* x_1898; lean_object* x_1899; -lean_dec(x_1769); -lean_dec(x_1765); -lean_free_object(x_15); -lean_dec(x_27); -lean_dec(x_1); -x_1889 = l_Lean_Syntax_inhabited; -x_1890 = lean_unsigned_to_nat(2u); -x_1891 = lean_array_get(x_1889, x_4, x_1890); -x_1892 = lean_unsigned_to_nat(4u); -x_1893 = lean_array_get(x_1889, x_4, x_1892); -x_1894 = lean_unsigned_to_nat(6u); -x_1895 = lean_array_get(x_1889, x_4, x_1894); -lean_dec(x_4); -x_1896 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__4___boxed), 7, 4); -lean_closure_set(x_1896, 0, x_26); -lean_closure_set(x_1896, 1, x_1891); -lean_closure_set(x_1896, 2, x_1893); -lean_closure_set(x_1896, 3, x_1895); -x_1897 = l_Lean_Unhygienic_MonadQuotation___closed__4; -x_1898 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___spec__1___rarg), 4, 2); -lean_closure_set(x_1898, 0, x_1897); -lean_closure_set(x_1898, 1, x_1896); -x_1899 = l_Lean_Unhygienic_run___rarg(x_1898); -x_1 = x_1899; -goto _start; -} -} -else -{ -lean_object* x_1901; lean_object* x_1902; lean_object* x_1903; lean_object* x_1904; -lean_dec(x_1769); -lean_dec(x_1765); -lean_free_object(x_15); -lean_dec(x_27); -lean_dec(x_1); -x_1901 = l_Lean_Syntax_inhabited; -x_1902 = lean_unsigned_to_nat(0u); -x_1903 = lean_array_get(x_1901, x_4, x_1902); +x_1767 = l_Lean_Syntax_getArg(x_1766, x_1745); +lean_dec(x_1766); lean_inc(x_2); -x_1904 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_1903, x_2, x_3); -if (lean_obj_tag(x_1904) == 0) +x_1768 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_1767, x_2, x_3); +if (lean_obj_tag(x_1768) == 0) { -lean_object* x_1905; lean_object* x_1906; lean_object* x_1907; lean_object* x_1908; lean_object* x_1909; lean_object* x_1910; lean_object* x_1911; lean_object* x_1912; lean_object* x_1913; -x_1905 = lean_ctor_get(x_1904, 0); -lean_inc(x_1905); -x_1906 = lean_ctor_get(x_1904, 1); -lean_inc(x_1906); -lean_dec(x_1904); -x_1907 = lean_unsigned_to_nat(1u); -x_1908 = lean_array_get(x_1901, x_4, x_1907); +lean_object* x_1769; lean_object* x_1770; lean_object* x_1771; lean_object* x_1772; lean_object* x_1773; uint8_t x_1774; lean_object* x_1775; lean_object* x_1776; lean_object* x_1777; lean_object* x_1778; lean_object* x_1779; lean_object* x_1780; lean_object* x_1781; lean_object* x_1782; lean_object* x_1783; lean_object* x_1784; lean_object* x_1785; lean_object* x_1786; lean_object* x_1787; lean_object* x_1788; lean_object* x_1789; lean_object* x_1790; lean_object* x_1791; lean_object* x_1792; lean_object* x_1793; lean_object* x_1794; lean_object* x_1795; lean_object* x_1796; lean_object* x_1797; lean_object* x_1798; lean_object* x_1799; lean_object* x_1800; +x_1769 = lean_ctor_get(x_1768, 0); +lean_inc(x_1769); +x_1770 = lean_ctor_get(x_1768, 1); +lean_inc(x_1770); +lean_dec(x_1768); +x_1771 = l_Lean_Elab_Term_getLCtx(x_2, x_1770); +x_1772 = lean_ctor_get(x_1771, 0); +lean_inc(x_1772); +x_1773 = lean_ctor_get(x_1771, 1); +lean_inc(x_1773); +lean_dec(x_1771); +x_1774 = 0; +lean_inc_n(x_1764, 2); +x_1775 = lean_local_ctx_mk_local_decl(x_1772, x_1764, x_1764, x_1769, x_1774); +x_1776 = l_Array_eraseIdx___rarg(x_1747, x_1751); +x_1777 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_1773); +lean_dec(x_2); +x_1778 = lean_ctor_get(x_1777, 1); +lean_inc(x_1778); +lean_dec(x_1777); +x_1779 = l_Lean_Elab_Term_getMainModule___rarg(x_1778); +x_1780 = lean_ctor_get(x_1779, 1); +lean_inc(x_1780); +lean_dec(x_1779); +x_1781 = lean_name_mk_string(x_1756, x_1567); +x_1782 = l_Lean_nullKind___closed__1; +x_1783 = lean_name_mk_string(x_41, x_1782); +x_1784 = l_Array_empty___closed__1; +x_1785 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1776, x_1776, x_1751, x_1784); +lean_dec(x_1776); +x_1786 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1786, 0, x_1783); +lean_ctor_set(x_1786, 1, x_1785); +x_1787 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; +x_1788 = lean_array_push(x_1787, x_1786); +x_1789 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; +x_1790 = lean_array_push(x_1788, x_1789); +x_1791 = lean_array_push(x_1790, x_1749); +x_1792 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1792, 0, x_1781); +lean_ctor_set(x_1792, 1, x_1791); +x_1793 = lean_ctor_get(x_7, 0); +lean_inc(x_1793); +x_1794 = lean_ctor_get(x_7, 2); +lean_inc(x_1794); +x_1795 = lean_ctor_get(x_7, 3); +lean_inc(x_1795); +x_1796 = lean_ctor_get(x_7, 4); +lean_inc(x_1796); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + lean_ctor_release(x_7, 2); + lean_ctor_release(x_7, 3); + lean_ctor_release(x_7, 4); + x_1797 = x_7; +} else { + lean_dec_ref(x_7); + x_1797 = lean_box(0); +} +lean_inc(x_1775); +if (lean_is_scalar(x_1797)) { + x_1798 = lean_alloc_ctor(0, 5, 0); +} else { + x_1798 = x_1797; +} +lean_ctor_set(x_1798, 0, x_1793); +lean_ctor_set(x_1798, 1, x_1775); +lean_ctor_set(x_1798, 2, x_1794); +lean_ctor_set(x_1798, 3, x_1795); +lean_ctor_set(x_1798, 4, x_1796); +x_1799 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_1799, 0, x_1798); +lean_ctor_set(x_1799, 1, x_8); +lean_ctor_set(x_1799, 2, x_9); +lean_ctor_set(x_1799, 3, x_10); +lean_ctor_set(x_1799, 4, x_11); +lean_ctor_set(x_1799, 5, x_12); +lean_ctor_set(x_1799, 6, x_13); +lean_ctor_set(x_1799, 7, x_14); +lean_ctor_set(x_1799, 8, x_15); +lean_ctor_set(x_1799, 9, x_16); +lean_ctor_set(x_1799, 10, x_1); +lean_ctor_set_uint8(x_1799, sizeof(void*)*11, x_17); +lean_ctor_set_uint8(x_1799, sizeof(void*)*11 + 1, x_18); +lean_ctor_set_uint8(x_1799, sizeof(void*)*11 + 2, x_19); +x_1800 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_1792, x_1799, x_1780); +if (lean_obj_tag(x_1800) == 0) +{ +lean_object* x_1801; lean_object* x_1802; lean_object* x_1803; lean_object* x_1804; lean_object* x_1805; lean_object* x_1806; lean_object* x_1807; lean_object* x_1808; +x_1801 = lean_ctor_get(x_1800, 0); +lean_inc(x_1801); +x_1802 = lean_ctor_get(x_1800, 1); +lean_inc(x_1802); +if (lean_is_exclusive(x_1800)) { + lean_ctor_release(x_1800, 0); + lean_ctor_release(x_1800, 1); + x_1803 = x_1800; +} else { + lean_dec_ref(x_1800); + x_1803 = lean_box(0); +} +x_1804 = l_Lean_mkFVar(x_1764); +x_1805 = l_Lean_mkOptionalNode___closed__2; +x_1806 = lean_array_push(x_1805, x_1804); +x_1807 = l_Lean_LocalContext_mkLambda(x_1775, x_1806, x_1801); +lean_dec(x_1801); +lean_dec(x_1806); +if (lean_is_scalar(x_1803)) { + x_1808 = lean_alloc_ctor(0, 2, 0); +} else { + x_1808 = x_1803; +} +lean_ctor_set(x_1808, 0, x_1807); +lean_ctor_set(x_1808, 1, x_1802); +return x_1808; +} +else +{ +lean_object* x_1809; lean_object* x_1810; lean_object* x_1811; lean_object* x_1812; +lean_dec(x_1775); +lean_dec(x_1764); +x_1809 = lean_ctor_get(x_1800, 0); +lean_inc(x_1809); +x_1810 = lean_ctor_get(x_1800, 1); +lean_inc(x_1810); +if (lean_is_exclusive(x_1800)) { + lean_ctor_release(x_1800, 0); + lean_ctor_release(x_1800, 1); + x_1811 = x_1800; +} else { + lean_dec_ref(x_1800); + x_1811 = lean_box(0); +} +if (lean_is_scalar(x_1811)) { + x_1812 = lean_alloc_ctor(1, 2, 0); +} else { + x_1812 = x_1811; +} +lean_ctor_set(x_1812, 0, x_1809); +lean_ctor_set(x_1812, 1, x_1810); +return x_1812; +} +} +else +{ +lean_object* x_1813; lean_object* x_1814; lean_object* x_1815; lean_object* x_1816; +lean_dec(x_1764); +lean_dec(x_1756); +lean_dec(x_1749); +lean_dec(x_1747); +lean_dec(x_2); +lean_dec(x_16); +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_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_1813 = lean_ctor_get(x_1768, 0); +lean_inc(x_1813); +x_1814 = lean_ctor_get(x_1768, 1); +lean_inc(x_1814); +if (lean_is_exclusive(x_1768)) { + lean_ctor_release(x_1768, 0); + lean_ctor_release(x_1768, 1); + x_1815 = x_1768; +} else { + lean_dec_ref(x_1768); + x_1815 = lean_box(0); +} +if (lean_is_scalar(x_1815)) { + x_1816 = lean_alloc_ctor(1, 2, 0); +} else { + x_1816 = x_1815; +} +lean_ctor_set(x_1816, 0, x_1813); +lean_ctor_set(x_1816, 1, x_1814); +return x_1816; +} +} +else +{ +lean_object* x_1817; lean_object* x_1818; lean_object* x_1819; lean_object* x_1820; lean_object* x_1821; lean_object* x_1822; uint8_t x_1823; lean_object* x_1824; lean_object* x_1825; lean_object* x_1826; lean_object* x_1827; lean_object* x_1828; lean_object* x_1829; lean_object* x_1830; lean_object* x_1831; lean_object* x_1832; lean_object* x_1833; lean_object* x_1834; lean_object* x_1835; lean_object* x_1836; lean_object* x_1837; lean_object* x_1838; lean_object* x_1839; lean_object* x_1840; lean_object* x_1841; lean_object* x_1842; lean_object* x_1843; lean_object* x_1844; lean_object* x_1845; lean_object* x_1846; lean_object* x_1847; lean_object* x_1848; lean_object* x_1849; +lean_dec(x_1753); +x_1817 = l_Lean_Meta_rewriteCore___lambda__1___closed__4; +x_1818 = lean_name_mk_string(x_41, x_1817); +x_1819 = l_Lean_Elab_Term_getLCtx(x_2, x_3); +x_1820 = lean_ctor_get(x_1819, 0); +lean_inc(x_1820); +x_1821 = lean_ctor_get(x_1819, 1); +lean_inc(x_1821); +lean_dec(x_1819); +x_1822 = l___private_Lean_Elab_Quotation_9__exprPlaceholder; +x_1823 = 0; +lean_inc_n(x_1818, 2); +x_1824 = lean_local_ctx_mk_local_decl(x_1820, x_1818, x_1818, x_1822, x_1823); +x_1825 = l_Array_eraseIdx___rarg(x_1747, x_1751); +x_1826 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_1821); +lean_dec(x_2); +x_1827 = lean_ctor_get(x_1826, 1); +lean_inc(x_1827); +lean_dec(x_1826); +x_1828 = l_Lean_Elab_Term_getMainModule___rarg(x_1827); +x_1829 = lean_ctor_get(x_1828, 1); +lean_inc(x_1829); +lean_dec(x_1828); +x_1830 = lean_name_mk_string(x_1756, x_1567); +x_1831 = l_Lean_nullKind___closed__1; +x_1832 = lean_name_mk_string(x_41, x_1831); +x_1833 = l_Array_empty___closed__1; +x_1834 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1825, x_1825, x_1751, x_1833); +lean_dec(x_1825); +x_1835 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1835, 0, x_1832); +lean_ctor_set(x_1835, 1, x_1834); +x_1836 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; +x_1837 = lean_array_push(x_1836, x_1835); +x_1838 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; +x_1839 = lean_array_push(x_1837, x_1838); +x_1840 = lean_array_push(x_1839, x_1749); +x_1841 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1841, 0, x_1830); +lean_ctor_set(x_1841, 1, x_1840); +x_1842 = lean_ctor_get(x_7, 0); +lean_inc(x_1842); +x_1843 = lean_ctor_get(x_7, 2); +lean_inc(x_1843); +x_1844 = lean_ctor_get(x_7, 3); +lean_inc(x_1844); +x_1845 = lean_ctor_get(x_7, 4); +lean_inc(x_1845); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + lean_ctor_release(x_7, 2); + lean_ctor_release(x_7, 3); + lean_ctor_release(x_7, 4); + x_1846 = x_7; +} else { + lean_dec_ref(x_7); + x_1846 = lean_box(0); +} +lean_inc(x_1824); +if (lean_is_scalar(x_1846)) { + x_1847 = lean_alloc_ctor(0, 5, 0); +} else { + x_1847 = x_1846; +} +lean_ctor_set(x_1847, 0, x_1842); +lean_ctor_set(x_1847, 1, x_1824); +lean_ctor_set(x_1847, 2, x_1843); +lean_ctor_set(x_1847, 3, x_1844); +lean_ctor_set(x_1847, 4, x_1845); +x_1848 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_1848, 0, x_1847); +lean_ctor_set(x_1848, 1, x_8); +lean_ctor_set(x_1848, 2, x_9); +lean_ctor_set(x_1848, 3, x_10); +lean_ctor_set(x_1848, 4, x_11); +lean_ctor_set(x_1848, 5, x_12); +lean_ctor_set(x_1848, 6, x_13); +lean_ctor_set(x_1848, 7, x_14); +lean_ctor_set(x_1848, 8, x_15); +lean_ctor_set(x_1848, 9, x_16); +lean_ctor_set(x_1848, 10, x_1); +lean_ctor_set_uint8(x_1848, sizeof(void*)*11, x_17); +lean_ctor_set_uint8(x_1848, sizeof(void*)*11 + 1, x_18); +lean_ctor_set_uint8(x_1848, sizeof(void*)*11 + 2, x_19); +x_1849 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_1841, x_1848, x_1829); +if (lean_obj_tag(x_1849) == 0) +{ +lean_object* x_1850; lean_object* x_1851; lean_object* x_1852; lean_object* x_1853; lean_object* x_1854; lean_object* x_1855; lean_object* x_1856; lean_object* x_1857; +x_1850 = lean_ctor_get(x_1849, 0); +lean_inc(x_1850); +x_1851 = lean_ctor_get(x_1849, 1); +lean_inc(x_1851); +if (lean_is_exclusive(x_1849)) { + lean_ctor_release(x_1849, 0); + lean_ctor_release(x_1849, 1); + x_1852 = x_1849; +} else { + lean_dec_ref(x_1849); + x_1852 = lean_box(0); +} +x_1853 = l_Lean_mkFVar(x_1818); +x_1854 = l_Lean_mkOptionalNode___closed__2; +x_1855 = lean_array_push(x_1854, x_1853); +x_1856 = l_Lean_LocalContext_mkLambda(x_1824, x_1855, x_1850); +lean_dec(x_1850); +lean_dec(x_1855); +if (lean_is_scalar(x_1852)) { + x_1857 = lean_alloc_ctor(0, 2, 0); +} else { + x_1857 = x_1852; +} +lean_ctor_set(x_1857, 0, x_1856); +lean_ctor_set(x_1857, 1, x_1851); +return x_1857; +} +else +{ +lean_object* x_1858; lean_object* x_1859; lean_object* x_1860; lean_object* x_1861; +lean_dec(x_1824); +lean_dec(x_1818); +x_1858 = lean_ctor_get(x_1849, 0); +lean_inc(x_1858); +x_1859 = lean_ctor_get(x_1849, 1); +lean_inc(x_1859); +if (lean_is_exclusive(x_1849)) { + lean_ctor_release(x_1849, 0); + lean_ctor_release(x_1849, 1); + x_1860 = x_1849; +} else { + lean_dec_ref(x_1849); + x_1860 = lean_box(0); +} +if (lean_is_scalar(x_1860)) { + x_1861 = lean_alloc_ctor(1, 2, 0); +} else { + x_1861 = x_1860; +} +lean_ctor_set(x_1861, 0, x_1858); +lean_ctor_set(x_1861, 1, x_1859); +return x_1861; +} +} +} +else +{ +lean_object* x_1862; lean_object* x_1863; lean_object* x_1864; lean_object* x_1865; lean_object* x_1866; uint8_t x_1867; lean_object* x_1868; lean_object* x_1869; lean_object* x_1870; lean_object* x_1871; lean_object* x_1872; lean_object* x_1873; lean_object* x_1874; lean_object* x_1875; lean_object* x_1876; lean_object* x_1877; lean_object* x_1878; lean_object* x_1879; lean_object* x_1880; lean_object* x_1881; lean_object* x_1882; lean_object* x_1883; lean_object* x_1884; lean_object* x_1885; lean_object* x_1886; lean_object* x_1887; lean_object* x_1888; lean_object* x_1889; lean_object* x_1890; lean_object* x_1891; lean_object* x_1892; lean_object* x_1893; +x_1862 = l_Lean_Syntax_getIdAt(x_1753, x_1751); +lean_dec(x_1753); +x_1863 = l_Lean_Elab_Term_getLCtx(x_2, x_3); +x_1864 = lean_ctor_get(x_1863, 0); +lean_inc(x_1864); +x_1865 = lean_ctor_get(x_1863, 1); +lean_inc(x_1865); +lean_dec(x_1863); +x_1866 = l___private_Lean_Elab_Quotation_9__exprPlaceholder; +x_1867 = 0; +lean_inc_n(x_1862, 2); +x_1868 = lean_local_ctx_mk_local_decl(x_1864, x_1862, x_1862, x_1866, x_1867); +x_1869 = l_Array_eraseIdx___rarg(x_1747, x_1751); +x_1870 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_1865); +lean_dec(x_2); +x_1871 = lean_ctor_get(x_1870, 1); +lean_inc(x_1871); +lean_dec(x_1870); +x_1872 = l_Lean_Elab_Term_getMainModule___rarg(x_1871); +x_1873 = lean_ctor_get(x_1872, 1); +lean_inc(x_1873); +lean_dec(x_1872); +x_1874 = lean_name_mk_string(x_1756, x_1567); +x_1875 = l_Lean_nullKind___closed__1; +x_1876 = lean_name_mk_string(x_41, x_1875); +x_1877 = l_Array_empty___closed__1; +x_1878 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1869, x_1869, x_1751, x_1877); +lean_dec(x_1869); +x_1879 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1879, 0, x_1876); +lean_ctor_set(x_1879, 1, x_1878); +x_1880 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; +x_1881 = lean_array_push(x_1880, x_1879); +x_1882 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; +x_1883 = lean_array_push(x_1881, x_1882); +x_1884 = lean_array_push(x_1883, x_1749); +x_1885 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1885, 0, x_1874); +lean_ctor_set(x_1885, 1, x_1884); +x_1886 = lean_ctor_get(x_7, 0); +lean_inc(x_1886); +x_1887 = lean_ctor_get(x_7, 2); +lean_inc(x_1887); +x_1888 = lean_ctor_get(x_7, 3); +lean_inc(x_1888); +x_1889 = lean_ctor_get(x_7, 4); +lean_inc(x_1889); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + lean_ctor_release(x_7, 2); + lean_ctor_release(x_7, 3); + lean_ctor_release(x_7, 4); + x_1890 = x_7; +} else { + lean_dec_ref(x_7); + x_1890 = lean_box(0); +} +lean_inc(x_1868); +if (lean_is_scalar(x_1890)) { + x_1891 = lean_alloc_ctor(0, 5, 0); +} else { + x_1891 = x_1890; +} +lean_ctor_set(x_1891, 0, x_1886); +lean_ctor_set(x_1891, 1, x_1868); +lean_ctor_set(x_1891, 2, x_1887); +lean_ctor_set(x_1891, 3, x_1888); +lean_ctor_set(x_1891, 4, x_1889); +x_1892 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_1892, 0, x_1891); +lean_ctor_set(x_1892, 1, x_8); +lean_ctor_set(x_1892, 2, x_9); +lean_ctor_set(x_1892, 3, x_10); +lean_ctor_set(x_1892, 4, x_11); +lean_ctor_set(x_1892, 5, x_12); +lean_ctor_set(x_1892, 6, x_13); +lean_ctor_set(x_1892, 7, x_14); +lean_ctor_set(x_1892, 8, x_15); +lean_ctor_set(x_1892, 9, x_16); +lean_ctor_set(x_1892, 10, x_1); +lean_ctor_set_uint8(x_1892, sizeof(void*)*11, x_17); +lean_ctor_set_uint8(x_1892, sizeof(void*)*11 + 1, x_18); +lean_ctor_set_uint8(x_1892, sizeof(void*)*11 + 2, x_19); +x_1893 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_1885, x_1892, x_1873); +if (lean_obj_tag(x_1893) == 0) +{ +lean_object* x_1894; lean_object* x_1895; lean_object* x_1896; lean_object* x_1897; lean_object* x_1898; lean_object* x_1899; lean_object* x_1900; lean_object* x_1901; +x_1894 = lean_ctor_get(x_1893, 0); +lean_inc(x_1894); +x_1895 = lean_ctor_get(x_1893, 1); +lean_inc(x_1895); +if (lean_is_exclusive(x_1893)) { + lean_ctor_release(x_1893, 0); + lean_ctor_release(x_1893, 1); + x_1896 = x_1893; +} else { + lean_dec_ref(x_1893); + x_1896 = lean_box(0); +} +x_1897 = l_Lean_mkFVar(x_1862); +x_1898 = l_Lean_mkOptionalNode___closed__2; +x_1899 = lean_array_push(x_1898, x_1897); +x_1900 = l_Lean_LocalContext_mkLambda(x_1868, x_1899, x_1894); +lean_dec(x_1894); +lean_dec(x_1899); +if (lean_is_scalar(x_1896)) { + x_1901 = lean_alloc_ctor(0, 2, 0); +} else { + x_1901 = x_1896; +} +lean_ctor_set(x_1901, 0, x_1900); +lean_ctor_set(x_1901, 1, x_1895); +return x_1901; +} +else +{ +lean_object* x_1902; lean_object* x_1903; lean_object* x_1904; lean_object* x_1905; +lean_dec(x_1868); +lean_dec(x_1862); +x_1902 = lean_ctor_get(x_1893, 0); +lean_inc(x_1902); +x_1903 = lean_ctor_get(x_1893, 1); +lean_inc(x_1903); +if (lean_is_exclusive(x_1893)) { + lean_ctor_release(x_1893, 0); + lean_ctor_release(x_1893, 1); + x_1904 = x_1893; +} else { + lean_dec_ref(x_1893); + x_1904 = lean_box(0); +} +if (lean_is_scalar(x_1904)) { + x_1905 = lean_alloc_ctor(1, 2, 0); +} else { + x_1905 = x_1904; +} +lean_ctor_set(x_1905, 0, x_1902); +lean_ctor_set(x_1905, 1, x_1903); +return x_1905; +} +} +} +else +{ +lean_dec(x_1747); +lean_dec(x_16); +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_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_1 = x_1749; +goto _start; +} +} +} +else +{ +lean_object* x_1907; lean_object* x_1908; lean_object* x_1909; +lean_dec(x_1540); +lean_dec(x_1536); +lean_free_object(x_30); +lean_dec(x_42); +lean_dec(x_16); +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_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_1907 = l_Lean_Syntax_inhabited; +x_1908 = lean_unsigned_to_nat(0u); +x_1909 = lean_array_get(x_1907, x_4, x_1908); lean_dec(x_4); -x_1909 = l_Lean_Syntax_getArgs(x_1908); -lean_dec(x_1908); -x_1910 = x_1909; -x_1911 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__1), 4, 2); -lean_closure_set(x_1911, 0, x_1902); -lean_closure_set(x_1911, 1, x_1910); -x_1912 = x_1911; -x_1913 = lean_apply_2(x_1912, x_2, x_1906); +if (lean_obj_tag(x_1909) == 3) +{ +lean_object* x_1910; lean_object* x_1911; lean_object* x_1912; lean_object* x_1913; +x_1910 = lean_ctor_get(x_1909, 2); +lean_inc(x_1910); +x_1911 = lean_ctor_get(x_1909, 3); +lean_inc(x_1911); +lean_dec(x_1909); +x_1912 = lean_box(0); +lean_inc(x_2); +x_1913 = l_Lean_Elab_Term_resolveName(x_1910, x_1911, x_1912, x_2, x_3); if (lean_obj_tag(x_1913) == 0) { -lean_object* x_1914; lean_object* x_1915; lean_object* x_1916; lean_object* x_1917; lean_object* x_1918; +lean_object* x_1914; x_1914 = lean_ctor_get(x_1913, 0); lean_inc(x_1914); +if (lean_obj_tag(x_1914) == 0) +{ +lean_object* x_1915; lean_object* x_1916; lean_object* x_1917; lean_object* x_1918; x_1915 = lean_ctor_get(x_1913, 1); lean_inc(x_1915); -if (lean_is_exclusive(x_1913)) { - lean_ctor_release(x_1913, 0); - lean_ctor_release(x_1913, 1); - x_1916 = x_1913; -} else { - lean_dec_ref(x_1913); - x_1916 = lean_box(0); -} -x_1917 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_1914, x_1914, x_1902, x_1905); -lean_dec(x_1914); -if (lean_is_scalar(x_1916)) { - x_1918 = lean_alloc_ctor(0, 2, 0); -} else { - x_1918 = x_1916; -} -lean_ctor_set(x_1918, 0, x_1917); -lean_ctor_set(x_1918, 1, x_1915); +lean_dec(x_1913); +x_1916 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; +x_1917 = l_unreachable_x21___rarg(x_1916); +x_1918 = lean_apply_2(x_1917, x_2, x_1915); return x_1918; } else { -lean_object* x_1919; lean_object* x_1920; lean_object* x_1921; lean_object* x_1922; -lean_dec(x_1905); -x_1919 = lean_ctor_get(x_1913, 0); +lean_object* x_1919; lean_object* x_1920; +lean_dec(x_2); +x_1919 = lean_ctor_get(x_1914, 0); lean_inc(x_1919); -x_1920 = lean_ctor_get(x_1913, 1); +lean_dec(x_1914); +x_1920 = lean_ctor_get(x_1919, 0); lean_inc(x_1920); +switch (lean_obj_tag(x_1920)) { +case 0: +{ +lean_object* x_1921; lean_object* x_1922; lean_object* x_1923; lean_object* x_1924; lean_object* x_1925; +x_1921 = lean_ctor_get(x_1913, 1); +lean_inc(x_1921); if (lean_is_exclusive(x_1913)) { lean_ctor_release(x_1913, 0); lean_ctor_release(x_1913, 1); - x_1921 = x_1913; + x_1922 = x_1913; } else { lean_dec_ref(x_1913); - x_1921 = lean_box(0); + x_1922 = lean_box(0); } -if (lean_is_scalar(x_1921)) { - x_1922 = lean_alloc_ctor(1, 2, 0); -} else { - x_1922 = x_1921; -} -lean_ctor_set(x_1922, 0, x_1919); -lean_ctor_set(x_1922, 1, x_1920); -return x_1922; -} -} -else -{ -lean_object* x_1923; lean_object* x_1924; lean_object* x_1925; lean_object* x_1926; -lean_dec(x_4); -lean_dec(x_2); -x_1923 = lean_ctor_get(x_1904, 0); +x_1923 = lean_ctor_get(x_1919, 1); lean_inc(x_1923); -x_1924 = lean_ctor_get(x_1904, 1); -lean_inc(x_1924); -if (lean_is_exclusive(x_1904)) { - lean_ctor_release(x_1904, 0); - lean_ctor_release(x_1904, 1); - x_1925 = x_1904; +lean_dec(x_1919); +x_1924 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__2(x_41, x_1920, x_1923); +if (lean_is_scalar(x_1922)) { + x_1925 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_1904); - x_1925 = lean_box(0); + x_1925 = x_1922; } -if (lean_is_scalar(x_1925)) { - x_1926 = lean_alloc_ctor(1, 2, 0); -} else { - x_1926 = x_1925; -} -lean_ctor_set(x_1926, 0, x_1923); -lean_ctor_set(x_1926, 1, x_1924); -return x_1926; -} -} -} -else -{ -lean_object* x_1927; lean_object* x_1928; lean_object* x_1929; lean_object* x_1930; lean_object* x_1931; uint8_t x_1932; lean_object* x_1933; lean_object* x_1934; lean_object* x_1935; lean_object* x_1936; lean_object* x_1937; -lean_dec(x_1769); -lean_dec(x_1765); -lean_free_object(x_15); -lean_dec(x_27); -lean_dec(x_1); -x_1927 = l_Lean_Syntax_inhabited; -x_1928 = lean_unsigned_to_nat(1u); -x_1929 = lean_array_get(x_1927, x_4, x_1928); -x_1930 = lean_unsigned_to_nat(0u); -x_1931 = l_Lean_Syntax_getArg(x_1929, x_1930); -x_1932 = l_Lean_Syntax_isIdent(x_1931); -x_1933 = lean_unsigned_to_nat(4u); -x_1934 = l_Lean_Syntax_getArg(x_1929, x_1933); -lean_dec(x_1929); -x_1935 = lean_unsigned_to_nat(3u); -x_1936 = lean_array_get(x_1927, x_4, x_1935); -lean_dec(x_4); -if (x_1932 == 0) -{ -lean_object* x_1985; -x_1985 = l_Lean_Syntax_getIdAt(x_1931, x_1930); -lean_dec(x_1931); -x_1937 = x_1985; -goto block_1984; -} -else -{ -lean_object* x_1986; -x_1986 = l_Lean_Syntax_getId(x_1931); -lean_dec(x_1931); -x_1937 = x_1986; -goto block_1984; -} -block_1984: -{ -lean_object* x_1938; -lean_inc(x_2); -x_1938 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_1934, x_2, x_3); -if (lean_obj_tag(x_1938) == 0) -{ -lean_object* x_1939; lean_object* x_1940; lean_object* x_1941; lean_object* x_1942; lean_object* x_1943; lean_object* x_1944; lean_object* x_1945; lean_object* x_1946; lean_object* x_1947; lean_object* x_1948; lean_object* x_1949; lean_object* x_1950; lean_object* x_1951; lean_object* x_1952; lean_object* x_1953; lean_object* x_1954; lean_object* x_1955; uint8_t x_1956; uint8_t x_1957; uint8_t x_1958; lean_object* x_1959; lean_object* x_1960; lean_object* x_1961; lean_object* x_1962; lean_object* x_1963; lean_object* x_1964; lean_object* x_1965; lean_object* x_1966; lean_object* x_1967; -x_1939 = lean_ctor_get(x_1938, 0); -lean_inc(x_1939); -x_1940 = lean_ctor_get(x_1938, 1); -lean_inc(x_1940); -lean_dec(x_1938); -x_1941 = l_Lean_Elab_Term_getLCtx(x_2, x_1940); -x_1942 = lean_ctor_get(x_1941, 0); -lean_inc(x_1942); -x_1943 = lean_ctor_get(x_1941, 1); -lean_inc(x_1943); -lean_dec(x_1941); -x_1944 = l___private_Lean_Elab_Quotation_9__exprPlaceholder; -lean_inc_n(x_1937, 2); -x_1945 = lean_local_ctx_mk_let_decl(x_1942, x_1937, x_1937, x_1944, x_1939); -x_1946 = lean_ctor_get(x_2, 0); -lean_inc(x_1946); -x_1947 = lean_ctor_get(x_2, 1); -lean_inc(x_1947); -x_1948 = lean_ctor_get(x_2, 2); -lean_inc(x_1948); -x_1949 = lean_ctor_get(x_2, 3); -lean_inc(x_1949); -x_1950 = lean_ctor_get(x_2, 4); -lean_inc(x_1950); -x_1951 = lean_ctor_get(x_2, 5); -lean_inc(x_1951); -x_1952 = lean_ctor_get(x_2, 6); -lean_inc(x_1952); -x_1953 = lean_ctor_get(x_2, 7); -lean_inc(x_1953); -x_1954 = lean_ctor_get(x_2, 8); -lean_inc(x_1954); -x_1955 = lean_ctor_get(x_2, 9); -lean_inc(x_1955); -x_1956 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_1957 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); -x_1958 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 2); -if (lean_is_exclusive(x_2)) { - lean_ctor_release(x_2, 0); - lean_ctor_release(x_2, 1); - lean_ctor_release(x_2, 2); - lean_ctor_release(x_2, 3); - lean_ctor_release(x_2, 4); - lean_ctor_release(x_2, 5); - lean_ctor_release(x_2, 6); - lean_ctor_release(x_2, 7); - lean_ctor_release(x_2, 8); - lean_ctor_release(x_2, 9); - x_1959 = x_2; -} else { - lean_dec_ref(x_2); - x_1959 = lean_box(0); -} -x_1960 = lean_ctor_get(x_1946, 0); -lean_inc(x_1960); -x_1961 = lean_ctor_get(x_1946, 2); -lean_inc(x_1961); -x_1962 = lean_ctor_get(x_1946, 3); -lean_inc(x_1962); -x_1963 = lean_ctor_get(x_1946, 4); -lean_inc(x_1963); -if (lean_is_exclusive(x_1946)) { - lean_ctor_release(x_1946, 0); - lean_ctor_release(x_1946, 1); - lean_ctor_release(x_1946, 2); - lean_ctor_release(x_1946, 3); - lean_ctor_release(x_1946, 4); - x_1964 = x_1946; -} else { - lean_dec_ref(x_1946); - x_1964 = lean_box(0); -} -lean_inc(x_1945); -if (lean_is_scalar(x_1964)) { - x_1965 = lean_alloc_ctor(0, 5, 0); -} else { - x_1965 = x_1964; -} -lean_ctor_set(x_1965, 0, x_1960); -lean_ctor_set(x_1965, 1, x_1945); -lean_ctor_set(x_1965, 2, x_1961); -lean_ctor_set(x_1965, 3, x_1962); -lean_ctor_set(x_1965, 4, x_1963); -if (lean_is_scalar(x_1959)) { - x_1966 = lean_alloc_ctor(0, 10, 3); -} else { - x_1966 = x_1959; -} -lean_ctor_set(x_1966, 0, x_1965); -lean_ctor_set(x_1966, 1, x_1947); -lean_ctor_set(x_1966, 2, x_1948); -lean_ctor_set(x_1966, 3, x_1949); -lean_ctor_set(x_1966, 4, x_1950); -lean_ctor_set(x_1966, 5, x_1951); -lean_ctor_set(x_1966, 6, x_1952); -lean_ctor_set(x_1966, 7, x_1953); -lean_ctor_set(x_1966, 8, x_1954); -lean_ctor_set(x_1966, 9, x_1955); -lean_ctor_set_uint8(x_1966, sizeof(void*)*10, x_1956); -lean_ctor_set_uint8(x_1966, sizeof(void*)*10 + 1, x_1957); -lean_ctor_set_uint8(x_1966, sizeof(void*)*10 + 2, x_1958); -x_1967 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_1936, x_1966, x_1943); -if (lean_obj_tag(x_1967) == 0) -{ -lean_object* x_1968; lean_object* x_1969; lean_object* x_1970; lean_object* x_1971; lean_object* x_1972; lean_object* x_1973; lean_object* x_1974; lean_object* x_1975; -x_1968 = lean_ctor_get(x_1967, 0); -lean_inc(x_1968); -x_1969 = lean_ctor_get(x_1967, 1); -lean_inc(x_1969); -if (lean_is_exclusive(x_1967)) { - lean_ctor_release(x_1967, 0); - lean_ctor_release(x_1967, 1); - x_1970 = x_1967; -} else { - lean_dec_ref(x_1967); - x_1970 = lean_box(0); -} -x_1971 = l_Lean_mkFVar(x_1937); -x_1972 = l_Lean_mkOptionalNode___closed__2; -x_1973 = lean_array_push(x_1972, x_1971); -x_1974 = l_Lean_LocalContext_mkLambda(x_1945, x_1973, x_1968); -lean_dec(x_1968); -lean_dec(x_1973); -if (lean_is_scalar(x_1970)) { - x_1975 = lean_alloc_ctor(0, 2, 0); -} else { - x_1975 = x_1970; -} -lean_ctor_set(x_1975, 0, x_1974); -lean_ctor_set(x_1975, 1, x_1969); -return x_1975; -} -else -{ -lean_object* x_1976; lean_object* x_1977; lean_object* x_1978; lean_object* x_1979; -lean_dec(x_1945); -lean_dec(x_1937); -x_1976 = lean_ctor_get(x_1967, 0); -lean_inc(x_1976); -x_1977 = lean_ctor_get(x_1967, 1); -lean_inc(x_1977); -if (lean_is_exclusive(x_1967)) { - lean_ctor_release(x_1967, 0); - lean_ctor_release(x_1967, 1); - x_1978 = x_1967; -} else { - lean_dec_ref(x_1967); - x_1978 = lean_box(0); -} -if (lean_is_scalar(x_1978)) { - x_1979 = lean_alloc_ctor(1, 2, 0); -} else { - x_1979 = x_1978; -} -lean_ctor_set(x_1979, 0, x_1976); -lean_ctor_set(x_1979, 1, x_1977); -return x_1979; -} -} -else -{ -lean_object* x_1980; lean_object* x_1981; lean_object* x_1982; lean_object* x_1983; -lean_dec(x_1937); -lean_dec(x_1936); -lean_dec(x_2); -x_1980 = lean_ctor_get(x_1938, 0); -lean_inc(x_1980); -x_1981 = lean_ctor_get(x_1938, 1); -lean_inc(x_1981); -if (lean_is_exclusive(x_1938)) { - lean_ctor_release(x_1938, 0); - lean_ctor_release(x_1938, 1); - x_1982 = x_1938; -} else { - lean_dec_ref(x_1938); - x_1982 = lean_box(0); -} -if (lean_is_scalar(x_1982)) { - x_1983 = lean_alloc_ctor(1, 2, 0); -} else { - x_1983 = x_1982; -} -lean_ctor_set(x_1983, 0, x_1980); -lean_ctor_set(x_1983, 1, x_1981); -return x_1983; -} -} -} -} -else -{ -lean_object* x_1987; lean_object* x_1988; lean_object* x_1989; lean_object* x_1990; lean_object* x_1991; lean_object* x_1992; lean_object* x_1993; lean_object* x_1994; uint8_t x_1995; -lean_dec(x_1769); -lean_dec(x_1765); -lean_free_object(x_15); -lean_dec(x_27); -lean_dec(x_1); -x_1987 = l_Lean_Syntax_inhabited; -x_1988 = lean_unsigned_to_nat(1u); -x_1989 = lean_array_get(x_1987, x_4, x_1988); -x_1990 = l_Lean_Syntax_getArgs(x_1989); -lean_dec(x_1989); -x_1991 = lean_unsigned_to_nat(3u); -x_1992 = lean_array_get(x_1987, x_4, x_1991); -lean_dec(x_4); -x_1993 = lean_array_get_size(x_1990); -x_1994 = lean_unsigned_to_nat(0u); -x_1995 = lean_nat_dec_eq(x_1993, x_1994); -lean_dec(x_1993); -if (x_1995 == 0) -{ -lean_object* x_1996; lean_object* x_1997; lean_object* x_1998; lean_object* x_1999; lean_object* x_2000; uint8_t x_2001; -x_1996 = lean_array_get(x_1987, x_1990, x_1994); -x_1997 = lean_name_mk_string(x_26, x_1766); -x_1998 = lean_name_mk_string(x_1997, x_1770); -x_1999 = lean_name_mk_string(x_1998, x_1782); -lean_inc(x_1999); -x_2000 = lean_name_mk_string(x_1999, x_1794); -lean_inc(x_1996); -x_2001 = l_Lean_Syntax_isOfKind(x_1996, x_2000); -lean_dec(x_2000); -if (x_2001 == 0) -{ -lean_object* x_2002; lean_object* x_2003; uint8_t x_2004; -x_2002 = l_Lean_mkHole___closed__1; -lean_inc(x_1999); -x_2003 = lean_name_mk_string(x_1999, x_2002); -lean_inc(x_1996); -x_2004 = l_Lean_Syntax_isOfKind(x_1996, x_2003); -lean_dec(x_2003); -if (x_2004 == 0) -{ -lean_object* x_2005; lean_object* x_2006; lean_object* x_2007; lean_object* x_2008; lean_object* x_2009; lean_object* x_2010; lean_object* x_2011; -x_2005 = l_Lean_Syntax_getArg(x_1996, x_1988); -lean_dec(x_1996); -x_2006 = l_Lean_Syntax_getArg(x_2005, x_1994); -x_2007 = l_Lean_Syntax_getIdAt(x_2006, x_1994); -lean_dec(x_2006); -x_2008 = l_Lean_Syntax_getArg(x_2005, x_1988); -lean_dec(x_2005); -x_2009 = l_Lean_Syntax_getArg(x_2008, x_1994); -lean_dec(x_2008); -x_2010 = l_Lean_Syntax_getArg(x_2009, x_1988); -lean_dec(x_2009); -lean_inc(x_2); -x_2011 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_2010, x_2, x_3); -if (lean_obj_tag(x_2011) == 0) -{ -lean_object* x_2012; lean_object* x_2013; lean_object* x_2014; lean_object* x_2015; lean_object* x_2016; uint8_t x_2017; lean_object* x_2018; lean_object* x_2019; lean_object* x_2020; lean_object* x_2021; lean_object* x_2022; lean_object* x_2023; lean_object* x_2024; lean_object* x_2025; lean_object* x_2026; lean_object* x_2027; lean_object* x_2028; lean_object* x_2029; lean_object* x_2030; lean_object* x_2031; lean_object* x_2032; lean_object* x_2033; lean_object* x_2034; lean_object* x_2035; lean_object* x_2036; lean_object* x_2037; lean_object* x_2038; lean_object* x_2039; lean_object* x_2040; lean_object* x_2041; lean_object* x_2042; lean_object* x_2043; lean_object* x_2044; lean_object* x_2045; uint8_t x_2046; uint8_t x_2047; uint8_t x_2048; lean_object* x_2049; lean_object* x_2050; lean_object* x_2051; lean_object* x_2052; lean_object* x_2053; lean_object* x_2054; lean_object* x_2055; lean_object* x_2056; lean_object* x_2057; -x_2012 = lean_ctor_get(x_2011, 0); -lean_inc(x_2012); -x_2013 = lean_ctor_get(x_2011, 1); -lean_inc(x_2013); -lean_dec(x_2011); -x_2014 = l_Lean_Elab_Term_getLCtx(x_2, x_2013); -x_2015 = lean_ctor_get(x_2014, 0); -lean_inc(x_2015); -x_2016 = lean_ctor_get(x_2014, 1); -lean_inc(x_2016); -lean_dec(x_2014); -x_2017 = 0; -lean_inc_n(x_2007, 2); -x_2018 = lean_local_ctx_mk_local_decl(x_2015, x_2007, x_2007, x_2012, x_2017); -x_2019 = l_Array_eraseIdx___rarg(x_1990, x_1994); -x_2020 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_2016); -x_2021 = lean_ctor_get(x_2020, 1); -lean_inc(x_2021); -lean_dec(x_2020); -x_2022 = l_Lean_Elab_Term_getMainModule___rarg(x_2021); -x_2023 = lean_ctor_get(x_2022, 1); -lean_inc(x_2023); -lean_dec(x_2022); -x_2024 = lean_name_mk_string(x_1999, x_1796); -x_2025 = l_Lean_nullKind___closed__1; -x_2026 = lean_name_mk_string(x_26, x_2025); -x_2027 = l_Array_empty___closed__1; -x_2028 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_2019, x_2019, x_1994, x_2027); -lean_dec(x_2019); -x_2029 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_2029, 0, x_2026); -lean_ctor_set(x_2029, 1, x_2028); -x_2030 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; -x_2031 = lean_array_push(x_2030, x_2029); -x_2032 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; -x_2033 = lean_array_push(x_2031, x_2032); -x_2034 = lean_array_push(x_2033, x_1992); -x_2035 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_2035, 0, x_2024); -lean_ctor_set(x_2035, 1, x_2034); -x_2036 = lean_ctor_get(x_2, 0); -lean_inc(x_2036); -x_2037 = lean_ctor_get(x_2, 1); -lean_inc(x_2037); -x_2038 = lean_ctor_get(x_2, 2); -lean_inc(x_2038); -x_2039 = lean_ctor_get(x_2, 3); -lean_inc(x_2039); -x_2040 = lean_ctor_get(x_2, 4); -lean_inc(x_2040); -x_2041 = lean_ctor_get(x_2, 5); -lean_inc(x_2041); -x_2042 = lean_ctor_get(x_2, 6); -lean_inc(x_2042); -x_2043 = lean_ctor_get(x_2, 7); -lean_inc(x_2043); -x_2044 = lean_ctor_get(x_2, 8); -lean_inc(x_2044); -x_2045 = lean_ctor_get(x_2, 9); -lean_inc(x_2045); -x_2046 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_2047 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); -x_2048 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 2); -if (lean_is_exclusive(x_2)) { - lean_ctor_release(x_2, 0); - lean_ctor_release(x_2, 1); - lean_ctor_release(x_2, 2); - lean_ctor_release(x_2, 3); - lean_ctor_release(x_2, 4); - lean_ctor_release(x_2, 5); - lean_ctor_release(x_2, 6); - lean_ctor_release(x_2, 7); - lean_ctor_release(x_2, 8); - lean_ctor_release(x_2, 9); - x_2049 = x_2; -} else { - lean_dec_ref(x_2); - x_2049 = lean_box(0); -} -x_2050 = lean_ctor_get(x_2036, 0); -lean_inc(x_2050); -x_2051 = lean_ctor_get(x_2036, 2); -lean_inc(x_2051); -x_2052 = lean_ctor_get(x_2036, 3); -lean_inc(x_2052); -x_2053 = lean_ctor_get(x_2036, 4); -lean_inc(x_2053); -if (lean_is_exclusive(x_2036)) { - lean_ctor_release(x_2036, 0); - lean_ctor_release(x_2036, 1); - lean_ctor_release(x_2036, 2); - lean_ctor_release(x_2036, 3); - lean_ctor_release(x_2036, 4); - x_2054 = x_2036; -} else { - lean_dec_ref(x_2036); - x_2054 = lean_box(0); -} -lean_inc(x_2018); -if (lean_is_scalar(x_2054)) { - x_2055 = lean_alloc_ctor(0, 5, 0); -} else { - x_2055 = x_2054; -} -lean_ctor_set(x_2055, 0, x_2050); -lean_ctor_set(x_2055, 1, x_2018); -lean_ctor_set(x_2055, 2, x_2051); -lean_ctor_set(x_2055, 3, x_2052); -lean_ctor_set(x_2055, 4, x_2053); -if (lean_is_scalar(x_2049)) { - x_2056 = lean_alloc_ctor(0, 10, 3); -} else { - x_2056 = x_2049; -} -lean_ctor_set(x_2056, 0, x_2055); -lean_ctor_set(x_2056, 1, x_2037); -lean_ctor_set(x_2056, 2, x_2038); -lean_ctor_set(x_2056, 3, x_2039); -lean_ctor_set(x_2056, 4, x_2040); -lean_ctor_set(x_2056, 5, x_2041); -lean_ctor_set(x_2056, 6, x_2042); -lean_ctor_set(x_2056, 7, x_2043); -lean_ctor_set(x_2056, 8, x_2044); -lean_ctor_set(x_2056, 9, x_2045); -lean_ctor_set_uint8(x_2056, sizeof(void*)*10, x_2046); -lean_ctor_set_uint8(x_2056, sizeof(void*)*10 + 1, x_2047); -lean_ctor_set_uint8(x_2056, sizeof(void*)*10 + 2, x_2048); -x_2057 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_2035, x_2056, x_2023); -if (lean_obj_tag(x_2057) == 0) -{ -lean_object* x_2058; lean_object* x_2059; lean_object* x_2060; lean_object* x_2061; lean_object* x_2062; lean_object* x_2063; lean_object* x_2064; lean_object* x_2065; -x_2058 = lean_ctor_get(x_2057, 0); -lean_inc(x_2058); -x_2059 = lean_ctor_get(x_2057, 1); -lean_inc(x_2059); -if (lean_is_exclusive(x_2057)) { - lean_ctor_release(x_2057, 0); - lean_ctor_release(x_2057, 1); - x_2060 = x_2057; -} else { - lean_dec_ref(x_2057); - x_2060 = lean_box(0); -} -x_2061 = l_Lean_mkFVar(x_2007); -x_2062 = l_Lean_mkOptionalNode___closed__2; -x_2063 = lean_array_push(x_2062, x_2061); -x_2064 = l_Lean_LocalContext_mkLambda(x_2018, x_2063, x_2058); -lean_dec(x_2058); -lean_dec(x_2063); -if (lean_is_scalar(x_2060)) { - x_2065 = lean_alloc_ctor(0, 2, 0); -} else { - x_2065 = x_2060; -} -lean_ctor_set(x_2065, 0, x_2064); -lean_ctor_set(x_2065, 1, x_2059); -return x_2065; -} -else -{ -lean_object* x_2066; lean_object* x_2067; lean_object* x_2068; lean_object* x_2069; -lean_dec(x_2018); -lean_dec(x_2007); -x_2066 = lean_ctor_get(x_2057, 0); -lean_inc(x_2066); -x_2067 = lean_ctor_get(x_2057, 1); -lean_inc(x_2067); -if (lean_is_exclusive(x_2057)) { - lean_ctor_release(x_2057, 0); - lean_ctor_release(x_2057, 1); - x_2068 = x_2057; -} else { - lean_dec_ref(x_2057); - x_2068 = lean_box(0); -} -if (lean_is_scalar(x_2068)) { - x_2069 = lean_alloc_ctor(1, 2, 0); -} else { - x_2069 = x_2068; -} -lean_ctor_set(x_2069, 0, x_2066); -lean_ctor_set(x_2069, 1, x_2067); -return x_2069; -} -} -else -{ -lean_object* x_2070; lean_object* x_2071; lean_object* x_2072; lean_object* x_2073; -lean_dec(x_2007); -lean_dec(x_1999); -lean_dec(x_1992); -lean_dec(x_1990); -lean_dec(x_2); -x_2070 = lean_ctor_get(x_2011, 0); -lean_inc(x_2070); -x_2071 = lean_ctor_get(x_2011, 1); -lean_inc(x_2071); -if (lean_is_exclusive(x_2011)) { - lean_ctor_release(x_2011, 0); - lean_ctor_release(x_2011, 1); - x_2072 = x_2011; -} else { - lean_dec_ref(x_2011); - x_2072 = lean_box(0); -} -if (lean_is_scalar(x_2072)) { - x_2073 = lean_alloc_ctor(1, 2, 0); -} else { - x_2073 = x_2072; -} -lean_ctor_set(x_2073, 0, x_2070); -lean_ctor_set(x_2073, 1, x_2071); -return x_2073; -} -} -else -{ -lean_object* x_2074; lean_object* x_2075; lean_object* x_2076; lean_object* x_2077; lean_object* x_2078; lean_object* x_2079; uint8_t x_2080; lean_object* x_2081; lean_object* x_2082; lean_object* x_2083; lean_object* x_2084; lean_object* x_2085; lean_object* x_2086; lean_object* x_2087; lean_object* x_2088; lean_object* x_2089; lean_object* x_2090; lean_object* x_2091; lean_object* x_2092; lean_object* x_2093; lean_object* x_2094; lean_object* x_2095; lean_object* x_2096; lean_object* x_2097; lean_object* x_2098; lean_object* x_2099; lean_object* x_2100; lean_object* x_2101; lean_object* x_2102; lean_object* x_2103; lean_object* x_2104; lean_object* x_2105; lean_object* x_2106; lean_object* x_2107; lean_object* x_2108; uint8_t x_2109; uint8_t x_2110; uint8_t x_2111; lean_object* x_2112; lean_object* x_2113; lean_object* x_2114; lean_object* x_2115; lean_object* x_2116; lean_object* x_2117; lean_object* x_2118; lean_object* x_2119; lean_object* x_2120; -lean_dec(x_1996); -x_2074 = l_Lean_Meta_rewriteCore___lambda__1___closed__4; -x_2075 = lean_name_mk_string(x_26, x_2074); -x_2076 = l_Lean_Elab_Term_getLCtx(x_2, x_3); -x_2077 = lean_ctor_get(x_2076, 0); -lean_inc(x_2077); -x_2078 = lean_ctor_get(x_2076, 1); -lean_inc(x_2078); -lean_dec(x_2076); -x_2079 = l___private_Lean_Elab_Quotation_9__exprPlaceholder; -x_2080 = 0; -lean_inc_n(x_2075, 2); -x_2081 = lean_local_ctx_mk_local_decl(x_2077, x_2075, x_2075, x_2079, x_2080); -x_2082 = l_Array_eraseIdx___rarg(x_1990, x_1994); -x_2083 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_2078); -x_2084 = lean_ctor_get(x_2083, 1); -lean_inc(x_2084); -lean_dec(x_2083); -x_2085 = l_Lean_Elab_Term_getMainModule___rarg(x_2084); -x_2086 = lean_ctor_get(x_2085, 1); -lean_inc(x_2086); -lean_dec(x_2085); -x_2087 = lean_name_mk_string(x_1999, x_1796); -x_2088 = l_Lean_nullKind___closed__1; -x_2089 = lean_name_mk_string(x_26, x_2088); -x_2090 = l_Array_empty___closed__1; -x_2091 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_2082, x_2082, x_1994, x_2090); -lean_dec(x_2082); -x_2092 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_2092, 0, x_2089); -lean_ctor_set(x_2092, 1, x_2091); -x_2093 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; -x_2094 = lean_array_push(x_2093, x_2092); -x_2095 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; -x_2096 = lean_array_push(x_2094, x_2095); -x_2097 = lean_array_push(x_2096, x_1992); -x_2098 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_2098, 0, x_2087); -lean_ctor_set(x_2098, 1, x_2097); -x_2099 = lean_ctor_get(x_2, 0); -lean_inc(x_2099); -x_2100 = lean_ctor_get(x_2, 1); -lean_inc(x_2100); -x_2101 = lean_ctor_get(x_2, 2); -lean_inc(x_2101); -x_2102 = lean_ctor_get(x_2, 3); -lean_inc(x_2102); -x_2103 = lean_ctor_get(x_2, 4); -lean_inc(x_2103); -x_2104 = lean_ctor_get(x_2, 5); -lean_inc(x_2104); -x_2105 = lean_ctor_get(x_2, 6); -lean_inc(x_2105); -x_2106 = lean_ctor_get(x_2, 7); -lean_inc(x_2106); -x_2107 = lean_ctor_get(x_2, 8); -lean_inc(x_2107); -x_2108 = lean_ctor_get(x_2, 9); -lean_inc(x_2108); -x_2109 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_2110 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); -x_2111 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 2); -if (lean_is_exclusive(x_2)) { - lean_ctor_release(x_2, 0); - lean_ctor_release(x_2, 1); - lean_ctor_release(x_2, 2); - lean_ctor_release(x_2, 3); - lean_ctor_release(x_2, 4); - lean_ctor_release(x_2, 5); - lean_ctor_release(x_2, 6); - lean_ctor_release(x_2, 7); - lean_ctor_release(x_2, 8); - lean_ctor_release(x_2, 9); - x_2112 = x_2; -} else { - lean_dec_ref(x_2); - x_2112 = lean_box(0); -} -x_2113 = lean_ctor_get(x_2099, 0); -lean_inc(x_2113); -x_2114 = lean_ctor_get(x_2099, 2); -lean_inc(x_2114); -x_2115 = lean_ctor_get(x_2099, 3); -lean_inc(x_2115); -x_2116 = lean_ctor_get(x_2099, 4); -lean_inc(x_2116); -if (lean_is_exclusive(x_2099)) { - lean_ctor_release(x_2099, 0); - lean_ctor_release(x_2099, 1); - lean_ctor_release(x_2099, 2); - lean_ctor_release(x_2099, 3); - lean_ctor_release(x_2099, 4); - x_2117 = x_2099; -} else { - lean_dec_ref(x_2099); - x_2117 = lean_box(0); -} -lean_inc(x_2081); -if (lean_is_scalar(x_2117)) { - x_2118 = lean_alloc_ctor(0, 5, 0); -} else { - x_2118 = x_2117; -} -lean_ctor_set(x_2118, 0, x_2113); -lean_ctor_set(x_2118, 1, x_2081); -lean_ctor_set(x_2118, 2, x_2114); -lean_ctor_set(x_2118, 3, x_2115); -lean_ctor_set(x_2118, 4, x_2116); -if (lean_is_scalar(x_2112)) { - x_2119 = lean_alloc_ctor(0, 10, 3); -} else { - x_2119 = x_2112; -} -lean_ctor_set(x_2119, 0, x_2118); -lean_ctor_set(x_2119, 1, x_2100); -lean_ctor_set(x_2119, 2, x_2101); -lean_ctor_set(x_2119, 3, x_2102); -lean_ctor_set(x_2119, 4, x_2103); -lean_ctor_set(x_2119, 5, x_2104); -lean_ctor_set(x_2119, 6, x_2105); -lean_ctor_set(x_2119, 7, x_2106); -lean_ctor_set(x_2119, 8, x_2107); -lean_ctor_set(x_2119, 9, x_2108); -lean_ctor_set_uint8(x_2119, sizeof(void*)*10, x_2109); -lean_ctor_set_uint8(x_2119, sizeof(void*)*10 + 1, x_2110); -lean_ctor_set_uint8(x_2119, sizeof(void*)*10 + 2, x_2111); -x_2120 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_2098, x_2119, x_2086); -if (lean_obj_tag(x_2120) == 0) -{ -lean_object* x_2121; lean_object* x_2122; lean_object* x_2123; lean_object* x_2124; lean_object* x_2125; lean_object* x_2126; lean_object* x_2127; lean_object* x_2128; -x_2121 = lean_ctor_get(x_2120, 0); -lean_inc(x_2121); -x_2122 = lean_ctor_get(x_2120, 1); -lean_inc(x_2122); -if (lean_is_exclusive(x_2120)) { - lean_ctor_release(x_2120, 0); - lean_ctor_release(x_2120, 1); - x_2123 = x_2120; -} else { - lean_dec_ref(x_2120); - x_2123 = lean_box(0); -} -x_2124 = l_Lean_mkFVar(x_2075); -x_2125 = l_Lean_mkOptionalNode___closed__2; -x_2126 = lean_array_push(x_2125, x_2124); -x_2127 = l_Lean_LocalContext_mkLambda(x_2081, x_2126, x_2121); -lean_dec(x_2121); -lean_dec(x_2126); -if (lean_is_scalar(x_2123)) { - x_2128 = lean_alloc_ctor(0, 2, 0); -} else { - x_2128 = x_2123; -} -lean_ctor_set(x_2128, 0, x_2127); -lean_ctor_set(x_2128, 1, x_2122); -return x_2128; -} -else -{ -lean_object* x_2129; lean_object* x_2130; lean_object* x_2131; lean_object* x_2132; -lean_dec(x_2081); -lean_dec(x_2075); -x_2129 = lean_ctor_get(x_2120, 0); -lean_inc(x_2129); -x_2130 = lean_ctor_get(x_2120, 1); -lean_inc(x_2130); -if (lean_is_exclusive(x_2120)) { - lean_ctor_release(x_2120, 0); - lean_ctor_release(x_2120, 1); - x_2131 = x_2120; -} else { - lean_dec_ref(x_2120); - x_2131 = lean_box(0); -} -if (lean_is_scalar(x_2131)) { - x_2132 = lean_alloc_ctor(1, 2, 0); -} else { - x_2132 = x_2131; -} -lean_ctor_set(x_2132, 0, x_2129); -lean_ctor_set(x_2132, 1, x_2130); -return x_2132; -} -} -} -else -{ -lean_object* x_2133; lean_object* x_2134; lean_object* x_2135; lean_object* x_2136; lean_object* x_2137; uint8_t x_2138; lean_object* x_2139; lean_object* x_2140; lean_object* x_2141; lean_object* x_2142; lean_object* x_2143; lean_object* x_2144; lean_object* x_2145; lean_object* x_2146; lean_object* x_2147; lean_object* x_2148; lean_object* x_2149; lean_object* x_2150; lean_object* x_2151; lean_object* x_2152; lean_object* x_2153; lean_object* x_2154; lean_object* x_2155; lean_object* x_2156; lean_object* x_2157; lean_object* x_2158; lean_object* x_2159; lean_object* x_2160; lean_object* x_2161; lean_object* x_2162; lean_object* x_2163; lean_object* x_2164; lean_object* x_2165; lean_object* x_2166; uint8_t x_2167; uint8_t x_2168; uint8_t x_2169; lean_object* x_2170; lean_object* x_2171; lean_object* x_2172; lean_object* x_2173; lean_object* x_2174; lean_object* x_2175; lean_object* x_2176; lean_object* x_2177; lean_object* x_2178; -x_2133 = l_Lean_Syntax_getIdAt(x_1996, x_1994); -lean_dec(x_1996); -x_2134 = l_Lean_Elab_Term_getLCtx(x_2, x_3); -x_2135 = lean_ctor_get(x_2134, 0); -lean_inc(x_2135); -x_2136 = lean_ctor_get(x_2134, 1); -lean_inc(x_2136); -lean_dec(x_2134); -x_2137 = l___private_Lean_Elab_Quotation_9__exprPlaceholder; -x_2138 = 0; -lean_inc_n(x_2133, 2); -x_2139 = lean_local_ctx_mk_local_decl(x_2135, x_2133, x_2133, x_2137, x_2138); -x_2140 = l_Array_eraseIdx___rarg(x_1990, x_1994); -x_2141 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_2136); -x_2142 = lean_ctor_get(x_2141, 1); -lean_inc(x_2142); -lean_dec(x_2141); -x_2143 = l_Lean_Elab_Term_getMainModule___rarg(x_2142); -x_2144 = lean_ctor_get(x_2143, 1); -lean_inc(x_2144); -lean_dec(x_2143); -x_2145 = lean_name_mk_string(x_1999, x_1796); -x_2146 = l_Lean_nullKind___closed__1; -x_2147 = lean_name_mk_string(x_26, x_2146); -x_2148 = l_Array_empty___closed__1; -x_2149 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_2140, x_2140, x_1994, x_2148); -lean_dec(x_2140); -x_2150 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_2150, 0, x_2147); -lean_ctor_set(x_2150, 1, x_2149); -x_2151 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; -x_2152 = lean_array_push(x_2151, x_2150); -x_2153 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; -x_2154 = lean_array_push(x_2152, x_2153); -x_2155 = lean_array_push(x_2154, x_1992); -x_2156 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_2156, 0, x_2145); -lean_ctor_set(x_2156, 1, x_2155); -x_2157 = lean_ctor_get(x_2, 0); -lean_inc(x_2157); -x_2158 = lean_ctor_get(x_2, 1); -lean_inc(x_2158); -x_2159 = lean_ctor_get(x_2, 2); -lean_inc(x_2159); -x_2160 = lean_ctor_get(x_2, 3); -lean_inc(x_2160); -x_2161 = lean_ctor_get(x_2, 4); -lean_inc(x_2161); -x_2162 = lean_ctor_get(x_2, 5); -lean_inc(x_2162); -x_2163 = lean_ctor_get(x_2, 6); -lean_inc(x_2163); -x_2164 = lean_ctor_get(x_2, 7); -lean_inc(x_2164); -x_2165 = lean_ctor_get(x_2, 8); -lean_inc(x_2165); -x_2166 = lean_ctor_get(x_2, 9); -lean_inc(x_2166); -x_2167 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_2168 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); -x_2169 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 2); -if (lean_is_exclusive(x_2)) { - lean_ctor_release(x_2, 0); - lean_ctor_release(x_2, 1); - lean_ctor_release(x_2, 2); - lean_ctor_release(x_2, 3); - lean_ctor_release(x_2, 4); - lean_ctor_release(x_2, 5); - lean_ctor_release(x_2, 6); - lean_ctor_release(x_2, 7); - lean_ctor_release(x_2, 8); - lean_ctor_release(x_2, 9); - x_2170 = x_2; -} else { - lean_dec_ref(x_2); - x_2170 = lean_box(0); -} -x_2171 = lean_ctor_get(x_2157, 0); -lean_inc(x_2171); -x_2172 = lean_ctor_get(x_2157, 2); -lean_inc(x_2172); -x_2173 = lean_ctor_get(x_2157, 3); -lean_inc(x_2173); -x_2174 = lean_ctor_get(x_2157, 4); -lean_inc(x_2174); -if (lean_is_exclusive(x_2157)) { - lean_ctor_release(x_2157, 0); - lean_ctor_release(x_2157, 1); - lean_ctor_release(x_2157, 2); - lean_ctor_release(x_2157, 3); - lean_ctor_release(x_2157, 4); - x_2175 = x_2157; -} else { - lean_dec_ref(x_2157); - x_2175 = lean_box(0); -} -lean_inc(x_2139); -if (lean_is_scalar(x_2175)) { - x_2176 = lean_alloc_ctor(0, 5, 0); -} else { - x_2176 = x_2175; -} -lean_ctor_set(x_2176, 0, x_2171); -lean_ctor_set(x_2176, 1, x_2139); -lean_ctor_set(x_2176, 2, x_2172); -lean_ctor_set(x_2176, 3, x_2173); -lean_ctor_set(x_2176, 4, x_2174); -if (lean_is_scalar(x_2170)) { - x_2177 = lean_alloc_ctor(0, 10, 3); -} else { - x_2177 = x_2170; -} -lean_ctor_set(x_2177, 0, x_2176); -lean_ctor_set(x_2177, 1, x_2158); -lean_ctor_set(x_2177, 2, x_2159); -lean_ctor_set(x_2177, 3, x_2160); -lean_ctor_set(x_2177, 4, x_2161); -lean_ctor_set(x_2177, 5, x_2162); -lean_ctor_set(x_2177, 6, x_2163); -lean_ctor_set(x_2177, 7, x_2164); -lean_ctor_set(x_2177, 8, x_2165); -lean_ctor_set(x_2177, 9, x_2166); -lean_ctor_set_uint8(x_2177, sizeof(void*)*10, x_2167); -lean_ctor_set_uint8(x_2177, sizeof(void*)*10 + 1, x_2168); -lean_ctor_set_uint8(x_2177, sizeof(void*)*10 + 2, x_2169); -x_2178 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_2156, x_2177, x_2144); -if (lean_obj_tag(x_2178) == 0) -{ -lean_object* x_2179; lean_object* x_2180; lean_object* x_2181; lean_object* x_2182; lean_object* x_2183; lean_object* x_2184; lean_object* x_2185; lean_object* x_2186; -x_2179 = lean_ctor_get(x_2178, 0); -lean_inc(x_2179); -x_2180 = lean_ctor_get(x_2178, 1); -lean_inc(x_2180); -if (lean_is_exclusive(x_2178)) { - lean_ctor_release(x_2178, 0); - lean_ctor_release(x_2178, 1); - x_2181 = x_2178; -} else { - lean_dec_ref(x_2178); - x_2181 = lean_box(0); -} -x_2182 = l_Lean_mkFVar(x_2133); -x_2183 = l_Lean_mkOptionalNode___closed__2; -x_2184 = lean_array_push(x_2183, x_2182); -x_2185 = l_Lean_LocalContext_mkLambda(x_2139, x_2184, x_2179); -lean_dec(x_2179); -lean_dec(x_2184); -if (lean_is_scalar(x_2181)) { - x_2186 = lean_alloc_ctor(0, 2, 0); -} else { - x_2186 = x_2181; -} -lean_ctor_set(x_2186, 0, x_2185); -lean_ctor_set(x_2186, 1, x_2180); -return x_2186; -} -else -{ -lean_object* x_2187; lean_object* x_2188; lean_object* x_2189; lean_object* x_2190; -lean_dec(x_2139); -lean_dec(x_2133); -x_2187 = lean_ctor_get(x_2178, 0); -lean_inc(x_2187); -x_2188 = lean_ctor_get(x_2178, 1); -lean_inc(x_2188); -if (lean_is_exclusive(x_2178)) { - lean_ctor_release(x_2178, 0); - lean_ctor_release(x_2178, 1); - x_2189 = x_2178; -} else { - lean_dec_ref(x_2178); - x_2189 = lean_box(0); -} -if (lean_is_scalar(x_2189)) { - x_2190 = lean_alloc_ctor(1, 2, 0); -} else { - x_2190 = x_2189; -} -lean_ctor_set(x_2190, 0, x_2187); -lean_ctor_set(x_2190, 1, x_2188); -return x_2190; -} -} -} -else -{ -lean_dec(x_1990); -x_1 = x_1992; -goto _start; -} -} -} -else -{ -lean_object* x_2192; lean_object* x_2193; lean_object* x_2194; -lean_dec(x_1769); -lean_dec(x_1765); -lean_free_object(x_15); -lean_dec(x_27); -x_2192 = l_Lean_Syntax_inhabited; -x_2193 = lean_unsigned_to_nat(0u); -x_2194 = lean_array_get(x_2192, x_4, x_2193); -lean_dec(x_4); -if (lean_obj_tag(x_2194) == 3) -{ -lean_object* x_2195; lean_object* x_2196; lean_object* x_2197; lean_object* x_2198; -x_2195 = lean_ctor_get(x_2194, 2); -lean_inc(x_2195); -x_2196 = lean_ctor_get(x_2194, 3); -lean_inc(x_2196); -lean_dec(x_2194); -x_2197 = lean_box(0); -lean_inc(x_2); -x_2198 = l_Lean_Elab_Term_resolveName(x_1, x_2195, x_2196, x_2197, x_2, x_3); -lean_dec(x_1); -if (lean_obj_tag(x_2198) == 0) -{ -lean_object* x_2199; -x_2199 = lean_ctor_get(x_2198, 0); -lean_inc(x_2199); -if (lean_obj_tag(x_2199) == 0) -{ -lean_object* x_2200; lean_object* x_2201; lean_object* x_2202; lean_object* x_2203; -x_2200 = lean_ctor_get(x_2198, 1); -lean_inc(x_2200); -lean_dec(x_2198); -x_2201 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; -x_2202 = l_unreachable_x21___rarg(x_2201); -x_2203 = lean_apply_2(x_2202, x_2, x_2200); -return x_2203; -} -else -{ -lean_object* x_2204; lean_object* x_2205; -lean_dec(x_2); -x_2204 = lean_ctor_get(x_2199, 0); -lean_inc(x_2204); -lean_dec(x_2199); -x_2205 = lean_ctor_get(x_2204, 0); -lean_inc(x_2205); -switch (lean_obj_tag(x_2205)) { -case 0: -{ -lean_object* x_2206; lean_object* x_2207; lean_object* x_2208; lean_object* x_2209; lean_object* x_2210; -x_2206 = lean_ctor_get(x_2198, 1); -lean_inc(x_2206); -if (lean_is_exclusive(x_2198)) { - lean_ctor_release(x_2198, 0); - lean_ctor_release(x_2198, 1); - x_2207 = x_2198; -} else { - lean_dec_ref(x_2198); - x_2207 = lean_box(0); -} -x_2208 = lean_ctor_get(x_2204, 1); -lean_inc(x_2208); -lean_dec(x_2204); -x_2209 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__2(x_26, x_2205, x_2208); -if (lean_is_scalar(x_2207)) { - x_2210 = lean_alloc_ctor(0, 2, 0); -} else { - x_2210 = x_2207; -} -lean_ctor_set(x_2210, 0, x_2209); -lean_ctor_set(x_2210, 1, x_2206); -return x_2210; +lean_ctor_set(x_1925, 0, x_1924); +lean_ctor_set(x_1925, 1, x_1921); +return x_1925; } case 1: { -lean_object* x_2211; lean_object* x_2212; lean_object* x_2213; lean_object* x_2214; lean_object* x_2215; -x_2211 = lean_ctor_get(x_2198, 1); -lean_inc(x_2211); -if (lean_is_exclusive(x_2198)) { - lean_ctor_release(x_2198, 0); - lean_ctor_release(x_2198, 1); - x_2212 = x_2198; +lean_object* x_1926; lean_object* x_1927; lean_object* x_1928; lean_object* x_1929; lean_object* x_1930; +x_1926 = lean_ctor_get(x_1913, 1); +lean_inc(x_1926); +if (lean_is_exclusive(x_1913)) { + lean_ctor_release(x_1913, 0); + lean_ctor_release(x_1913, 1); + x_1927 = x_1913; } else { - lean_dec_ref(x_2198); - x_2212 = lean_box(0); + lean_dec_ref(x_1913); + x_1927 = lean_box(0); } -x_2213 = lean_ctor_get(x_2204, 1); -lean_inc(x_2213); -lean_dec(x_2204); -x_2214 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__3(x_26, x_2205, x_2213); -if (lean_is_scalar(x_2212)) { - x_2215 = lean_alloc_ctor(0, 2, 0); +x_1928 = lean_ctor_get(x_1919, 1); +lean_inc(x_1928); +lean_dec(x_1919); +x_1929 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__3(x_41, x_1920, x_1928); +if (lean_is_scalar(x_1927)) { + x_1930 = lean_alloc_ctor(0, 2, 0); } else { - x_2215 = x_2212; + x_1930 = x_1927; } -lean_ctor_set(x_2215, 0, x_2214); -lean_ctor_set(x_2215, 1, x_2211); -return x_2215; +lean_ctor_set(x_1930, 0, x_1929); +lean_ctor_set(x_1930, 1, x_1926); +return x_1930; } case 2: { -lean_object* x_2216; lean_object* x_2217; lean_object* x_2218; lean_object* x_2219; lean_object* x_2220; -x_2216 = lean_ctor_get(x_2198, 1); -lean_inc(x_2216); -if (lean_is_exclusive(x_2198)) { - lean_ctor_release(x_2198, 0); - lean_ctor_release(x_2198, 1); - x_2217 = x_2198; +lean_object* x_1931; lean_object* x_1932; lean_object* x_1933; lean_object* x_1934; lean_object* x_1935; +x_1931 = lean_ctor_get(x_1913, 1); +lean_inc(x_1931); +if (lean_is_exclusive(x_1913)) { + lean_ctor_release(x_1913, 0); + lean_ctor_release(x_1913, 1); + x_1932 = x_1913; } else { - lean_dec_ref(x_2198); - x_2217 = lean_box(0); + lean_dec_ref(x_1913); + x_1932 = lean_box(0); } -x_2218 = lean_ctor_get(x_2204, 1); -lean_inc(x_2218); -lean_dec(x_2204); -x_2219 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__4(x_26, x_2205, x_2218); -if (lean_is_scalar(x_2217)) { - x_2220 = lean_alloc_ctor(0, 2, 0); +x_1933 = lean_ctor_get(x_1919, 1); +lean_inc(x_1933); +lean_dec(x_1919); +x_1934 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__4(x_41, x_1920, x_1933); +if (lean_is_scalar(x_1932)) { + x_1935 = lean_alloc_ctor(0, 2, 0); } else { - x_2220 = x_2217; + x_1935 = x_1932; } -lean_ctor_set(x_2220, 0, x_2219); -lean_ctor_set(x_2220, 1, x_2216); -return x_2220; +lean_ctor_set(x_1935, 0, x_1934); +lean_ctor_set(x_1935, 1, x_1931); +return x_1935; } case 3: { -lean_object* x_2221; lean_object* x_2222; lean_object* x_2223; lean_object* x_2224; lean_object* x_2225; -x_2221 = lean_ctor_get(x_2198, 1); -lean_inc(x_2221); -if (lean_is_exclusive(x_2198)) { - lean_ctor_release(x_2198, 0); - lean_ctor_release(x_2198, 1); - x_2222 = x_2198; +lean_object* x_1936; lean_object* x_1937; lean_object* x_1938; lean_object* x_1939; lean_object* x_1940; +x_1936 = lean_ctor_get(x_1913, 1); +lean_inc(x_1936); +if (lean_is_exclusive(x_1913)) { + lean_ctor_release(x_1913, 0); + lean_ctor_release(x_1913, 1); + x_1937 = x_1913; } else { - lean_dec_ref(x_2198); - x_2222 = lean_box(0); + lean_dec_ref(x_1913); + x_1937 = lean_box(0); } -x_2223 = lean_ctor_get(x_2204, 1); -lean_inc(x_2223); -lean_dec(x_2204); -x_2224 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__5(x_26, x_2205, x_2223); -if (lean_is_scalar(x_2222)) { - x_2225 = lean_alloc_ctor(0, 2, 0); +x_1938 = lean_ctor_get(x_1919, 1); +lean_inc(x_1938); +lean_dec(x_1919); +x_1939 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__5(x_41, x_1920, x_1938); +if (lean_is_scalar(x_1937)) { + x_1940 = lean_alloc_ctor(0, 2, 0); } else { - x_2225 = x_2222; + x_1940 = x_1937; } -lean_ctor_set(x_2225, 0, x_2224); -lean_ctor_set(x_2225, 1, x_2221); -return x_2225; +lean_ctor_set(x_1940, 0, x_1939); +lean_ctor_set(x_1940, 1, x_1936); +return x_1940; } case 4: { -lean_object* x_2226; lean_object* x_2227; lean_object* x_2228; lean_object* x_2229; lean_object* x_2230; lean_object* x_2231; lean_object* x_2232; -x_2226 = lean_ctor_get(x_2198, 1); -lean_inc(x_2226); -if (lean_is_exclusive(x_2198)) { - lean_ctor_release(x_2198, 0); - lean_ctor_release(x_2198, 1); - x_2227 = x_2198; +lean_object* x_1941; lean_object* x_1942; lean_object* x_1943; lean_object* x_1944; lean_object* x_1945; lean_object* x_1946; lean_object* x_1947; +x_1941 = lean_ctor_get(x_1913, 1); +lean_inc(x_1941); +if (lean_is_exclusive(x_1913)) { + lean_ctor_release(x_1913, 0); + lean_ctor_release(x_1913, 1); + x_1942 = x_1913; } else { - lean_dec_ref(x_2198); - x_2227 = lean_box(0); + lean_dec_ref(x_1913); + x_1942 = lean_box(0); } -x_2228 = lean_ctor_get(x_2204, 1); -lean_inc(x_2228); -lean_dec(x_2204); -x_2229 = lean_ctor_get(x_2205, 0); -lean_inc(x_2229); -lean_dec(x_2205); -x_2230 = l_Lean_mkConst(x_2229, x_2197); -x_2231 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__6(x_26, x_2230, x_2228); -if (lean_is_scalar(x_2227)) { - x_2232 = lean_alloc_ctor(0, 2, 0); +x_1943 = lean_ctor_get(x_1919, 1); +lean_inc(x_1943); +lean_dec(x_1919); +x_1944 = lean_ctor_get(x_1920, 0); +lean_inc(x_1944); +lean_dec(x_1920); +x_1945 = l_Lean_mkConst(x_1944, x_1912); +x_1946 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__6(x_41, x_1945, x_1943); +if (lean_is_scalar(x_1942)) { + x_1947 = lean_alloc_ctor(0, 2, 0); } else { - x_2232 = x_2227; + x_1947 = x_1942; } -lean_ctor_set(x_2232, 0, x_2231); -lean_ctor_set(x_2232, 1, x_2226); -return x_2232; +lean_ctor_set(x_1947, 0, x_1946); +lean_ctor_set(x_1947, 1, x_1941); +return x_1947; } case 5: { -lean_object* x_2233; lean_object* x_2234; lean_object* x_2235; lean_object* x_2236; lean_object* x_2237; -x_2233 = lean_ctor_get(x_2198, 1); -lean_inc(x_2233); -if (lean_is_exclusive(x_2198)) { - lean_ctor_release(x_2198, 0); - lean_ctor_release(x_2198, 1); - x_2234 = x_2198; +lean_object* x_1948; lean_object* x_1949; lean_object* x_1950; lean_object* x_1951; lean_object* x_1952; +x_1948 = lean_ctor_get(x_1913, 1); +lean_inc(x_1948); +if (lean_is_exclusive(x_1913)) { + lean_ctor_release(x_1913, 0); + lean_ctor_release(x_1913, 1); + x_1949 = x_1913; } else { - lean_dec_ref(x_2198); - x_2234 = lean_box(0); + lean_dec_ref(x_1913); + x_1949 = lean_box(0); } -x_2235 = lean_ctor_get(x_2204, 1); -lean_inc(x_2235); -lean_dec(x_2204); -x_2236 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__7(x_26, x_2205, x_2235); -if (lean_is_scalar(x_2234)) { - x_2237 = lean_alloc_ctor(0, 2, 0); +x_1950 = lean_ctor_get(x_1919, 1); +lean_inc(x_1950); +lean_dec(x_1919); +x_1951 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__7(x_41, x_1920, x_1950); +if (lean_is_scalar(x_1949)) { + x_1952 = lean_alloc_ctor(0, 2, 0); } else { - x_2237 = x_2234; + x_1952 = x_1949; } -lean_ctor_set(x_2237, 0, x_2236); -lean_ctor_set(x_2237, 1, x_2233); -return x_2237; +lean_ctor_set(x_1952, 0, x_1951); +lean_ctor_set(x_1952, 1, x_1948); +return x_1952; } case 6: { -lean_object* x_2238; lean_object* x_2239; lean_object* x_2240; lean_object* x_2241; lean_object* x_2242; -x_2238 = lean_ctor_get(x_2198, 1); -lean_inc(x_2238); -if (lean_is_exclusive(x_2198)) { - lean_ctor_release(x_2198, 0); - lean_ctor_release(x_2198, 1); - x_2239 = x_2198; +lean_object* x_1953; lean_object* x_1954; lean_object* x_1955; lean_object* x_1956; lean_object* x_1957; +x_1953 = lean_ctor_get(x_1913, 1); +lean_inc(x_1953); +if (lean_is_exclusive(x_1913)) { + lean_ctor_release(x_1913, 0); + lean_ctor_release(x_1913, 1); + x_1954 = x_1913; } else { - lean_dec_ref(x_2198); - x_2239 = lean_box(0); + lean_dec_ref(x_1913); + x_1954 = lean_box(0); } -x_2240 = lean_ctor_get(x_2204, 1); -lean_inc(x_2240); -lean_dec(x_2204); -x_2241 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__8(x_26, x_2205, x_2240); -if (lean_is_scalar(x_2239)) { - x_2242 = lean_alloc_ctor(0, 2, 0); +x_1955 = lean_ctor_get(x_1919, 1); +lean_inc(x_1955); +lean_dec(x_1919); +x_1956 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__8(x_41, x_1920, x_1955); +if (lean_is_scalar(x_1954)) { + x_1957 = lean_alloc_ctor(0, 2, 0); } else { - x_2242 = x_2239; + x_1957 = x_1954; } -lean_ctor_set(x_2242, 0, x_2241); -lean_ctor_set(x_2242, 1, x_2238); -return x_2242; +lean_ctor_set(x_1957, 0, x_1956); +lean_ctor_set(x_1957, 1, x_1953); +return x_1957; } case 7: { -lean_object* x_2243; lean_object* x_2244; lean_object* x_2245; lean_object* x_2246; lean_object* x_2247; -x_2243 = lean_ctor_get(x_2198, 1); -lean_inc(x_2243); -if (lean_is_exclusive(x_2198)) { - lean_ctor_release(x_2198, 0); - lean_ctor_release(x_2198, 1); - x_2244 = x_2198; +lean_object* x_1958; lean_object* x_1959; lean_object* x_1960; lean_object* x_1961; lean_object* x_1962; +x_1958 = lean_ctor_get(x_1913, 1); +lean_inc(x_1958); +if (lean_is_exclusive(x_1913)) { + lean_ctor_release(x_1913, 0); + lean_ctor_release(x_1913, 1); + x_1959 = x_1913; } else { - lean_dec_ref(x_2198); - x_2244 = lean_box(0); + lean_dec_ref(x_1913); + x_1959 = lean_box(0); } -x_2245 = lean_ctor_get(x_2204, 1); -lean_inc(x_2245); -lean_dec(x_2204); -x_2246 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__9(x_26, x_2205, x_2245); -if (lean_is_scalar(x_2244)) { - x_2247 = lean_alloc_ctor(0, 2, 0); +x_1960 = lean_ctor_get(x_1919, 1); +lean_inc(x_1960); +lean_dec(x_1919); +x_1961 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__9(x_41, x_1920, x_1960); +if (lean_is_scalar(x_1959)) { + x_1962 = lean_alloc_ctor(0, 2, 0); } else { - x_2247 = x_2244; + x_1962 = x_1959; } -lean_ctor_set(x_2247, 0, x_2246); -lean_ctor_set(x_2247, 1, x_2243); -return x_2247; +lean_ctor_set(x_1962, 0, x_1961); +lean_ctor_set(x_1962, 1, x_1958); +return x_1962; } case 8: { -lean_object* x_2248; lean_object* x_2249; lean_object* x_2250; lean_object* x_2251; lean_object* x_2252; -x_2248 = lean_ctor_get(x_2198, 1); -lean_inc(x_2248); -if (lean_is_exclusive(x_2198)) { - lean_ctor_release(x_2198, 0); - lean_ctor_release(x_2198, 1); - x_2249 = x_2198; +lean_object* x_1963; lean_object* x_1964; lean_object* x_1965; lean_object* x_1966; lean_object* x_1967; +x_1963 = lean_ctor_get(x_1913, 1); +lean_inc(x_1963); +if (lean_is_exclusive(x_1913)) { + lean_ctor_release(x_1913, 0); + lean_ctor_release(x_1913, 1); + x_1964 = x_1913; } else { - lean_dec_ref(x_2198); - x_2249 = lean_box(0); + lean_dec_ref(x_1913); + x_1964 = lean_box(0); } -x_2250 = lean_ctor_get(x_2204, 1); -lean_inc(x_2250); -lean_dec(x_2204); -x_2251 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__10(x_26, x_2205, x_2250); -if (lean_is_scalar(x_2249)) { - x_2252 = lean_alloc_ctor(0, 2, 0); +x_1965 = lean_ctor_get(x_1919, 1); +lean_inc(x_1965); +lean_dec(x_1919); +x_1966 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__10(x_41, x_1920, x_1965); +if (lean_is_scalar(x_1964)) { + x_1967 = lean_alloc_ctor(0, 2, 0); } else { - x_2252 = x_2249; + x_1967 = x_1964; } -lean_ctor_set(x_2252, 0, x_2251); -lean_ctor_set(x_2252, 1, x_2248); -return x_2252; +lean_ctor_set(x_1967, 0, x_1966); +lean_ctor_set(x_1967, 1, x_1963); +return x_1967; } case 9: { -lean_object* x_2253; lean_object* x_2254; lean_object* x_2255; lean_object* x_2256; lean_object* x_2257; -x_2253 = lean_ctor_get(x_2198, 1); -lean_inc(x_2253); -if (lean_is_exclusive(x_2198)) { - lean_ctor_release(x_2198, 0); - lean_ctor_release(x_2198, 1); - x_2254 = x_2198; +lean_object* x_1968; lean_object* x_1969; lean_object* x_1970; lean_object* x_1971; lean_object* x_1972; +x_1968 = lean_ctor_get(x_1913, 1); +lean_inc(x_1968); +if (lean_is_exclusive(x_1913)) { + lean_ctor_release(x_1913, 0); + lean_ctor_release(x_1913, 1); + x_1969 = x_1913; } else { - lean_dec_ref(x_2198); - x_2254 = lean_box(0); + lean_dec_ref(x_1913); + x_1969 = lean_box(0); } -x_2255 = lean_ctor_get(x_2204, 1); -lean_inc(x_2255); -lean_dec(x_2204); -x_2256 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__11(x_26, x_2205, x_2255); -if (lean_is_scalar(x_2254)) { - x_2257 = lean_alloc_ctor(0, 2, 0); +x_1970 = lean_ctor_get(x_1919, 1); +lean_inc(x_1970); +lean_dec(x_1919); +x_1971 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__11(x_41, x_1920, x_1970); +if (lean_is_scalar(x_1969)) { + x_1972 = lean_alloc_ctor(0, 2, 0); } else { - x_2257 = x_2254; + x_1972 = x_1969; } -lean_ctor_set(x_2257, 0, x_2256); -lean_ctor_set(x_2257, 1, x_2253); -return x_2257; +lean_ctor_set(x_1972, 0, x_1971); +lean_ctor_set(x_1972, 1, x_1968); +return x_1972; } case 10: { -lean_object* x_2258; lean_object* x_2259; lean_object* x_2260; lean_object* x_2261; lean_object* x_2262; -x_2258 = lean_ctor_get(x_2198, 1); -lean_inc(x_2258); -if (lean_is_exclusive(x_2198)) { - lean_ctor_release(x_2198, 0); - lean_ctor_release(x_2198, 1); - x_2259 = x_2198; +lean_object* x_1973; lean_object* x_1974; lean_object* x_1975; lean_object* x_1976; lean_object* x_1977; +x_1973 = lean_ctor_get(x_1913, 1); +lean_inc(x_1973); +if (lean_is_exclusive(x_1913)) { + lean_ctor_release(x_1913, 0); + lean_ctor_release(x_1913, 1); + x_1974 = x_1913; } else { - lean_dec_ref(x_2198); - x_2259 = lean_box(0); + lean_dec_ref(x_1913); + x_1974 = lean_box(0); } -x_2260 = lean_ctor_get(x_2204, 1); -lean_inc(x_2260); -lean_dec(x_2204); -x_2261 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__12(x_26, x_2205, x_2260); -if (lean_is_scalar(x_2259)) { - x_2262 = lean_alloc_ctor(0, 2, 0); +x_1975 = lean_ctor_get(x_1919, 1); +lean_inc(x_1975); +lean_dec(x_1919); +x_1976 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__12(x_41, x_1920, x_1975); +if (lean_is_scalar(x_1974)) { + x_1977 = lean_alloc_ctor(0, 2, 0); } else { - x_2262 = x_2259; + x_1977 = x_1974; } -lean_ctor_set(x_2262, 0, x_2261); -lean_ctor_set(x_2262, 1, x_2258); -return x_2262; +lean_ctor_set(x_1977, 0, x_1976); +lean_ctor_set(x_1977, 1, x_1973); +return x_1977; } case 11: { -lean_object* x_2263; lean_object* x_2264; lean_object* x_2265; lean_object* x_2266; lean_object* x_2267; -x_2263 = lean_ctor_get(x_2198, 1); -lean_inc(x_2263); -if (lean_is_exclusive(x_2198)) { - lean_ctor_release(x_2198, 0); - lean_ctor_release(x_2198, 1); - x_2264 = x_2198; +lean_object* x_1978; lean_object* x_1979; lean_object* x_1980; lean_object* x_1981; lean_object* x_1982; +x_1978 = lean_ctor_get(x_1913, 1); +lean_inc(x_1978); +if (lean_is_exclusive(x_1913)) { + lean_ctor_release(x_1913, 0); + lean_ctor_release(x_1913, 1); + x_1979 = x_1913; } else { - lean_dec_ref(x_2198); - x_2264 = lean_box(0); + lean_dec_ref(x_1913); + x_1979 = lean_box(0); } -x_2265 = lean_ctor_get(x_2204, 1); -lean_inc(x_2265); -lean_dec(x_2204); -x_2266 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__13(x_26, x_2205, x_2265); -if (lean_is_scalar(x_2264)) { - x_2267 = lean_alloc_ctor(0, 2, 0); +x_1980 = lean_ctor_get(x_1919, 1); +lean_inc(x_1980); +lean_dec(x_1919); +x_1981 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__13(x_41, x_1920, x_1980); +if (lean_is_scalar(x_1979)) { + x_1982 = lean_alloc_ctor(0, 2, 0); } else { - x_2267 = x_2264; + x_1982 = x_1979; } -lean_ctor_set(x_2267, 0, x_2266); -lean_ctor_set(x_2267, 1, x_2263); -return x_2267; +lean_ctor_set(x_1982, 0, x_1981); +lean_ctor_set(x_1982, 1, x_1978); +return x_1982; } default: { -lean_object* x_2268; lean_object* x_2269; lean_object* x_2270; lean_object* x_2271; lean_object* x_2272; -x_2268 = lean_ctor_get(x_2198, 1); -lean_inc(x_2268); -if (lean_is_exclusive(x_2198)) { - lean_ctor_release(x_2198, 0); - lean_ctor_release(x_2198, 1); - x_2269 = x_2198; +lean_object* x_1983; lean_object* x_1984; lean_object* x_1985; lean_object* x_1986; lean_object* x_1987; +x_1983 = lean_ctor_get(x_1913, 1); +lean_inc(x_1983); +if (lean_is_exclusive(x_1913)) { + lean_ctor_release(x_1913, 0); + lean_ctor_release(x_1913, 1); + x_1984 = x_1913; } else { - lean_dec_ref(x_2198); - x_2269 = lean_box(0); + lean_dec_ref(x_1913); + x_1984 = lean_box(0); } -x_2270 = lean_ctor_get(x_2204, 1); -lean_inc(x_2270); -lean_dec(x_2204); -x_2271 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__14(x_26, x_2205, x_2270); -if (lean_is_scalar(x_2269)) { - x_2272 = lean_alloc_ctor(0, 2, 0); +x_1985 = lean_ctor_get(x_1919, 1); +lean_inc(x_1985); +lean_dec(x_1919); +x_1986 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__14(x_41, x_1920, x_1985); +if (lean_is_scalar(x_1984)) { + x_1987 = lean_alloc_ctor(0, 2, 0); } else { - x_2272 = x_2269; + x_1987 = x_1984; } -lean_ctor_set(x_2272, 0, x_2271); -lean_ctor_set(x_2272, 1, x_2268); -return x_2272; +lean_ctor_set(x_1987, 0, x_1986); +lean_ctor_set(x_1987, 1, x_1983); +return x_1987; } } } } else { -lean_object* x_2273; lean_object* x_2274; lean_object* x_2275; lean_object* x_2276; +lean_object* x_1988; lean_object* x_1989; lean_object* x_1990; lean_object* x_1991; lean_dec(x_2); -x_2273 = lean_ctor_get(x_2198, 0); -lean_inc(x_2273); -x_2274 = lean_ctor_get(x_2198, 1); -lean_inc(x_2274); -if (lean_is_exclusive(x_2198)) { - lean_ctor_release(x_2198, 0); - lean_ctor_release(x_2198, 1); - x_2275 = x_2198; +x_1988 = lean_ctor_get(x_1913, 0); +lean_inc(x_1988); +x_1989 = lean_ctor_get(x_1913, 1); +lean_inc(x_1989); +if (lean_is_exclusive(x_1913)) { + lean_ctor_release(x_1913, 0); + lean_ctor_release(x_1913, 1); + x_1990 = x_1913; } else { - lean_dec_ref(x_2198); - x_2275 = lean_box(0); + lean_dec_ref(x_1913); + x_1990 = lean_box(0); } -if (lean_is_scalar(x_2275)) { - x_2276 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1990)) { + x_1991 = lean_alloc_ctor(1, 2, 0); } else { - x_2276 = x_2275; + x_1991 = x_1990; } -lean_ctor_set(x_2276, 0, x_2273); -lean_ctor_set(x_2276, 1, x_2274); -return x_2276; +lean_ctor_set(x_1991, 0, x_1988); +lean_ctor_set(x_1991, 1, x_1989); +return x_1991; } } else { -lean_object* x_2277; lean_object* x_2278; lean_object* x_2279; -lean_dec(x_2194); -lean_dec(x_1); -x_2277 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; -x_2278 = l_unreachable_x21___rarg(x_2277); -x_2279 = lean_apply_2(x_2278, x_2, x_3); -return x_2279; +lean_object* x_1992; lean_object* x_1993; lean_object* x_1994; +lean_dec(x_1909); +x_1992 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; +x_1993 = l_unreachable_x21___rarg(x_1992); +x_1994 = lean_apply_2(x_1993, x_2, x_3); +return x_1994; } } } @@ -22311,2002 +21788,4099 @@ return x_2279; } else { -size_t x_2280; lean_object* x_2281; size_t x_2282; lean_object* x_2283; size_t x_2284; lean_object* x_2285; lean_object* x_2286; size_t x_2287; lean_object* x_2288; lean_object* x_2289; uint8_t x_2290; -x_2280 = lean_ctor_get_usize(x_5, 2); -x_2281 = lean_ctor_get(x_15, 1); -x_2282 = lean_ctor_get_usize(x_15, 2); -lean_inc(x_2281); +size_t x_1995; lean_object* x_1996; size_t x_1997; lean_object* x_1998; size_t x_1999; lean_object* x_2000; lean_object* x_2001; size_t x_2002; lean_object* x_2003; lean_object* x_2004; uint8_t x_2005; +x_1995 = lean_ctor_get_usize(x_5, 2); +x_1996 = lean_ctor_get(x_30, 1); +x_1997 = lean_ctor_get_usize(x_30, 2); +lean_inc(x_1996); +lean_dec(x_30); +x_1998 = lean_ctor_get(x_39, 1); +lean_inc(x_1998); +x_1999 = lean_ctor_get_usize(x_39, 2); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_2000 = x_39; +} else { + lean_dec_ref(x_39); + x_2000 = lean_box(0); +} +x_2001 = lean_ctor_get(x_40, 1); +lean_inc(x_2001); +x_2002 = lean_ctor_get_usize(x_40, 2); +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + x_2003 = x_40; +} else { + lean_dec_ref(x_40); + x_2003 = lean_box(0); +} +x_2004 = l_Lean_mkAppStx___closed__1; +x_2005 = lean_string_dec_eq(x_2001, x_2004); +lean_dec(x_2001); +if (x_2005 == 0) +{ +lean_object* x_2006; +lean_dec(x_2003); +lean_dec(x_2000); +lean_dec(x_1998); +lean_dec(x_1996); +lean_dec(x_42); +lean_dec(x_16); lean_dec(x_15); -x_2283 = lean_ctor_get(x_24, 1); -lean_inc(x_2283); -x_2284 = lean_ctor_get_usize(x_24, 2); -if (lean_is_exclusive(x_24)) { - lean_ctor_release(x_24, 0); - lean_ctor_release(x_24, 1); - x_2285 = x_24; -} else { - lean_dec_ref(x_24); - x_2285 = lean_box(0); -} -x_2286 = lean_ctor_get(x_25, 1); -lean_inc(x_2286); -x_2287 = lean_ctor_get_usize(x_25, 2); -if (lean_is_exclusive(x_25)) { - lean_ctor_release(x_25, 0); - lean_ctor_release(x_25, 1); - x_2288 = x_25; -} else { - lean_dec_ref(x_25); - x_2288 = lean_box(0); -} -x_2289 = l_Lean_mkAppStx___closed__1; -x_2290 = lean_string_dec_eq(x_2286, x_2289); -lean_dec(x_2286); -if (x_2290 == 0) -{ -lean_object* x_2291; -lean_dec(x_2288); -lean_dec(x_2285); -lean_dec(x_2283); -lean_dec(x_2281); -lean_dec(x_27); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); lean_dec(x_4); -x_2291 = lean_box(0); -x_6 = x_2291; -goto block_14; +lean_dec(x_1); +x_2006 = lean_box(0); +x_21 = x_2006; +goto block_29; } else { -lean_object* x_2292; lean_object* x_2293; uint8_t x_2294; +lean_object* x_2007; lean_object* x_2008; uint8_t x_2009; if (lean_is_exclusive(x_5)) { lean_ctor_release(x_5, 0); lean_ctor_release(x_5, 1); - x_2292 = x_5; + x_2007 = x_5; } else { lean_dec_ref(x_5); - x_2292 = lean_box(0); + x_2007 = lean_box(0); } -x_2293 = l_Lean_mkAppStx___closed__3; -x_2294 = lean_string_dec_eq(x_2283, x_2293); -if (x_2294 == 0) +x_2008 = l_Lean_mkAppStx___closed__3; +x_2009 = lean_string_dec_eq(x_1998, x_2008); +if (x_2009 == 0) { -lean_object* x_2295; lean_object* x_2296; lean_object* x_2297; lean_object* x_2298; lean_object* x_2299; lean_object* x_2300; lean_object* x_2301; lean_object* x_2302; lean_object* x_2303; lean_object* x_2304; lean_object* x_2305; +lean_object* x_2010; lean_object* x_2011; lean_object* x_2012; lean_object* x_2013; lean_object* x_2014; lean_object* x_2015; lean_object* x_2016; lean_object* x_2017; lean_object* x_2018; lean_object* x_2019; lean_object* x_2020; +lean_dec(x_16); +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_9); +lean_dec(x_8); +lean_dec(x_7); lean_dec(x_4); -if (lean_is_scalar(x_2288)) { - x_2295 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -} else { - x_2295 = x_2288; -} -lean_ctor_set(x_2295, 0, x_26); -lean_ctor_set(x_2295, 1, x_2289); -lean_ctor_set_usize(x_2295, 2, x_2287); -if (lean_is_scalar(x_2285)) { - x_2296 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -} else { - x_2296 = x_2285; -} -lean_ctor_set(x_2296, 0, x_2295); -lean_ctor_set(x_2296, 1, x_2283); -lean_ctor_set_usize(x_2296, 2, x_2284); -x_2297 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -lean_ctor_set(x_2297, 0, x_2296); -lean_ctor_set(x_2297, 1, x_2281); -lean_ctor_set_usize(x_2297, 2, x_2282); -if (lean_is_scalar(x_2292)) { - x_2298 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -} else { - x_2298 = x_2292; -} -lean_ctor_set(x_2298, 0, x_2297); -lean_ctor_set(x_2298, 1, x_27); -lean_ctor_set_usize(x_2298, 2, x_2280); -x_2299 = l_Lean_Name_toString___closed__1; -x_2300 = l_Lean_Name_toStringWithSep___main(x_2299, x_2298); -x_2301 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2301, 0, x_2300); -x_2302 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2302, 0, x_2301); -x_2303 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__3; -x_2304 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_2304, 0, x_2303); -lean_ctor_set(x_2304, 1, x_2302); -x_2305 = l_Lean_Elab_Term_throwError___rarg(x_1, x_2304, x_2, x_3); lean_dec(x_1); -return x_2305; +if (lean_is_scalar(x_2003)) { + x_2010 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_2010 = x_2003; +} +lean_ctor_set(x_2010, 0, x_41); +lean_ctor_set(x_2010, 1, x_2004); +lean_ctor_set_usize(x_2010, 2, x_2002); +if (lean_is_scalar(x_2000)) { + x_2011 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_2011 = x_2000; +} +lean_ctor_set(x_2011, 0, x_2010); +lean_ctor_set(x_2011, 1, x_1998); +lean_ctor_set_usize(x_2011, 2, x_1999); +x_2012 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_2012, 0, x_2011); +lean_ctor_set(x_2012, 1, x_1996); +lean_ctor_set_usize(x_2012, 2, x_1997); +if (lean_is_scalar(x_2007)) { + x_2013 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_2013 = x_2007; +} +lean_ctor_set(x_2013, 0, x_2012); +lean_ctor_set(x_2013, 1, x_42); +lean_ctor_set_usize(x_2013, 2, x_1995); +x_2014 = l_Lean_Name_toString___closed__1; +x_2015 = l_Lean_Name_toStringWithSep___main(x_2014, x_2013); +x_2016 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2016, 0, x_2015); +x_2017 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2017, 0, x_2016); +x_2018 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__3; +x_2019 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_2019, 0, x_2018); +lean_ctor_set(x_2019, 1, x_2017); +x_2020 = l_Lean_Elab_Term_throwError___rarg(x_2019, x_2, x_3); +return x_2020; } else { -lean_object* x_2306; uint8_t x_2307; -lean_dec(x_2283); -x_2306 = l_Lean_mkAppStx___closed__5; -x_2307 = lean_string_dec_eq(x_2281, x_2306); -if (x_2307 == 0) +lean_object* x_2021; uint8_t x_2022; +lean_dec(x_1998); +x_2021 = l_Lean_mkAppStx___closed__5; +x_2022 = lean_string_dec_eq(x_1996, x_2021); +if (x_2022 == 0) { -lean_object* x_2308; lean_object* x_2309; lean_object* x_2310; lean_object* x_2311; lean_object* x_2312; lean_object* x_2313; lean_object* x_2314; lean_object* x_2315; lean_object* x_2316; lean_object* x_2317; lean_object* x_2318; +lean_object* x_2023; lean_object* x_2024; lean_object* x_2025; lean_object* x_2026; lean_object* x_2027; lean_object* x_2028; lean_object* x_2029; lean_object* x_2030; lean_object* x_2031; lean_object* x_2032; lean_object* x_2033; +lean_dec(x_16); +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_9); +lean_dec(x_8); +lean_dec(x_7); lean_dec(x_4); -if (lean_is_scalar(x_2288)) { - x_2308 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -} else { - x_2308 = x_2288; -} -lean_ctor_set(x_2308, 0, x_26); -lean_ctor_set(x_2308, 1, x_2289); -lean_ctor_set_usize(x_2308, 2, x_2287); -if (lean_is_scalar(x_2285)) { - x_2309 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -} else { - x_2309 = x_2285; -} -lean_ctor_set(x_2309, 0, x_2308); -lean_ctor_set(x_2309, 1, x_2293); -lean_ctor_set_usize(x_2309, 2, x_2284); -x_2310 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -lean_ctor_set(x_2310, 0, x_2309); -lean_ctor_set(x_2310, 1, x_2281); -lean_ctor_set_usize(x_2310, 2, x_2282); -if (lean_is_scalar(x_2292)) { - x_2311 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -} else { - x_2311 = x_2292; -} -lean_ctor_set(x_2311, 0, x_2310); -lean_ctor_set(x_2311, 1, x_27); -lean_ctor_set_usize(x_2311, 2, x_2280); -x_2312 = l_Lean_Name_toString___closed__1; -x_2313 = l_Lean_Name_toStringWithSep___main(x_2312, x_2311); -x_2314 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2314, 0, x_2313); -x_2315 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2315, 0, x_2314); -x_2316 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__3; -x_2317 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_2317, 0, x_2316); -lean_ctor_set(x_2317, 1, x_2315); -x_2318 = l_Lean_Elab_Term_throwError___rarg(x_1, x_2317, x_2, x_3); lean_dec(x_1); -return x_2318; +if (lean_is_scalar(x_2003)) { + x_2023 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_2023 = x_2003; +} +lean_ctor_set(x_2023, 0, x_41); +lean_ctor_set(x_2023, 1, x_2004); +lean_ctor_set_usize(x_2023, 2, x_2002); +if (lean_is_scalar(x_2000)) { + x_2024 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_2024 = x_2000; +} +lean_ctor_set(x_2024, 0, x_2023); +lean_ctor_set(x_2024, 1, x_2008); +lean_ctor_set_usize(x_2024, 2, x_1999); +x_2025 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_2025, 0, x_2024); +lean_ctor_set(x_2025, 1, x_1996); +lean_ctor_set_usize(x_2025, 2, x_1997); +if (lean_is_scalar(x_2007)) { + x_2026 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_2026 = x_2007; +} +lean_ctor_set(x_2026, 0, x_2025); +lean_ctor_set(x_2026, 1, x_42); +lean_ctor_set_usize(x_2026, 2, x_1995); +x_2027 = l_Lean_Name_toString___closed__1; +x_2028 = l_Lean_Name_toStringWithSep___main(x_2027, x_2026); +x_2029 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2029, 0, x_2028); +x_2030 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2030, 0, x_2029); +x_2031 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__3; +x_2032 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_2032, 0, x_2031); +lean_ctor_set(x_2032, 1, x_2030); +x_2033 = l_Lean_Elab_Term_throwError___rarg(x_2032, x_2, x_3); +return x_2033; } else { -lean_object* x_2319; uint8_t x_2320; -lean_dec(x_2281); -x_2319 = l_Lean_mkTermIdFromIdent___closed__1; -x_2320 = lean_string_dec_eq(x_27, x_2319); -if (x_2320 == 0) +lean_object* x_2034; uint8_t x_2035; +lean_dec(x_1996); +x_2034 = l_Lean_mkTermIdFromIdent___closed__1; +x_2035 = lean_string_dec_eq(x_42, x_2034); +if (x_2035 == 0) { -lean_object* x_2321; uint8_t x_2322; -x_2321 = l_Lean_Parser_Term_fun___elambda__1___closed__1; -x_2322 = lean_string_dec_eq(x_27, x_2321); -if (x_2322 == 0) +lean_object* x_2036; uint8_t x_2037; +x_2036 = l_Lean_Parser_Term_fun___elambda__1___closed__1; +x_2037 = lean_string_dec_eq(x_42, x_2036); +if (x_2037 == 0) { -lean_object* x_2323; uint8_t x_2324; -x_2323 = l_Lean_Parser_Term_let___elambda__1___closed__1; -x_2324 = lean_string_dec_eq(x_27, x_2323); -if (x_2324 == 0) +lean_object* x_2038; uint8_t x_2039; +x_2038 = l_Lean_Parser_Term_let___elambda__1___closed__1; +x_2039 = lean_string_dec_eq(x_42, x_2038); +if (x_2039 == 0) { -lean_object* x_2325; uint8_t x_2326; -x_2325 = l_Lean_mkAppStx___closed__7; -x_2326 = lean_string_dec_eq(x_27, x_2325); -if (x_2326 == 0) +lean_object* x_2040; uint8_t x_2041; +lean_dec(x_16); +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_9); +lean_dec(x_8); +lean_dec(x_7); +x_2040 = l_Lean_mkAppStx___closed__7; +x_2041 = lean_string_dec_eq(x_42, x_2040); +if (x_2041 == 0) { -lean_object* x_2327; uint8_t x_2328; -x_2327 = l_Lean_Parser_Term_if___elambda__1___closed__1; -x_2328 = lean_string_dec_eq(x_27, x_2327); -if (x_2328 == 0) +lean_object* x_2042; uint8_t x_2043; +x_2042 = l_Lean_Parser_Term_if___elambda__1___closed__1; +x_2043 = lean_string_dec_eq(x_42, x_2042); +if (x_2043 == 0) { -lean_object* x_2329; uint8_t x_2330; -x_2329 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__1; -x_2330 = lean_string_dec_eq(x_27, x_2329); -if (x_2330 == 0) +lean_object* x_2044; uint8_t x_2045; +x_2044 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__1; +x_2045 = lean_string_dec_eq(x_42, x_2044); +if (x_2045 == 0) { -lean_object* x_2331; uint8_t x_2332; -x_2331 = l_Lean_Parser_Term_band___elambda__1___closed__1; -x_2332 = lean_string_dec_eq(x_27, x_2331); -if (x_2332 == 0) +lean_object* x_2046; uint8_t x_2047; +x_2046 = l_Lean_Parser_Term_band___elambda__1___closed__1; +x_2047 = lean_string_dec_eq(x_42, x_2046); +if (x_2047 == 0) { -lean_object* x_2333; uint8_t x_2334; -x_2333 = l_Lean_Meta_reduceNat_x3f___closed__12; -x_2334 = lean_string_dec_eq(x_27, x_2333); -if (x_2334 == 0) +lean_object* x_2048; uint8_t x_2049; +x_2048 = l_Lean_Meta_reduceNat_x3f___closed__12; +x_2049 = lean_string_dec_eq(x_42, x_2048); +if (x_2049 == 0) { -lean_object* x_2335; uint8_t x_2336; -x_2335 = l_Lean_Parser_Term_eq___elambda__1___closed__1; -x_2336 = lean_string_dec_eq(x_27, x_2335); -if (x_2336 == 0) +lean_object* x_2050; uint8_t x_2051; +x_2050 = l_Lean_Parser_Term_eq___elambda__1___closed__1; +x_2051 = lean_string_dec_eq(x_42, x_2050); +if (x_2051 == 0) { -lean_object* x_2337; uint8_t x_2338; +lean_object* x_2052; uint8_t x_2053; lean_dec(x_4); -x_2337 = l_Lean_String_HasQuote___closed__1; -x_2338 = lean_string_dec_eq(x_27, x_2337); -if (x_2338 == 0) +x_2052 = l_Lean_String_HasQuote___closed__1; +x_2053 = lean_string_dec_eq(x_42, x_2052); +if (x_2053 == 0) { -lean_object* x_2339; uint8_t x_2340; -x_2339 = l_Lean_Nat_HasQuote___closed__1; -x_2340 = lean_string_dec_eq(x_27, x_2339); -if (x_2340 == 0) +lean_object* x_2054; uint8_t x_2055; +x_2054 = l_Lean_Nat_HasQuote___closed__1; +x_2055 = lean_string_dec_eq(x_42, x_2054); +if (x_2055 == 0) { -lean_object* x_2341; lean_object* x_2342; lean_object* x_2343; lean_object* x_2344; lean_object* x_2345; lean_object* x_2346; lean_object* x_2347; lean_object* x_2348; lean_object* x_2349; lean_object* x_2350; lean_object* x_2351; -if (lean_is_scalar(x_2288)) { - x_2341 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -} else { - x_2341 = x_2288; -} -lean_ctor_set(x_2341, 0, x_26); -lean_ctor_set(x_2341, 1, x_2289); -lean_ctor_set_usize(x_2341, 2, x_2287); -if (lean_is_scalar(x_2285)) { - x_2342 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -} else { - x_2342 = x_2285; -} -lean_ctor_set(x_2342, 0, x_2341); -lean_ctor_set(x_2342, 1, x_2293); -lean_ctor_set_usize(x_2342, 2, x_2284); -x_2343 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -lean_ctor_set(x_2343, 0, x_2342); -lean_ctor_set(x_2343, 1, x_2306); -lean_ctor_set_usize(x_2343, 2, x_2282); -if (lean_is_scalar(x_2292)) { - x_2344 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -} else { - x_2344 = x_2292; -} -lean_ctor_set(x_2344, 0, x_2343); -lean_ctor_set(x_2344, 1, x_27); -lean_ctor_set_usize(x_2344, 2, x_2280); -x_2345 = l_Lean_Name_toString___closed__1; -x_2346 = l_Lean_Name_toStringWithSep___main(x_2345, x_2344); -x_2347 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2347, 0, x_2346); -x_2348 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2348, 0, x_2347); -x_2349 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__3; -x_2350 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_2350, 0, x_2349); -lean_ctor_set(x_2350, 1, x_2348); -x_2351 = l_Lean_Elab_Term_throwError___rarg(x_1, x_2350, x_2, x_3); +lean_object* x_2056; lean_object* x_2057; lean_object* x_2058; lean_object* x_2059; lean_object* x_2060; lean_object* x_2061; lean_object* x_2062; lean_object* x_2063; lean_object* x_2064; lean_object* x_2065; lean_object* x_2066; lean_dec(x_1); -return x_2351; +if (lean_is_scalar(x_2003)) { + x_2056 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_2056 = x_2003; +} +lean_ctor_set(x_2056, 0, x_41); +lean_ctor_set(x_2056, 1, x_2004); +lean_ctor_set_usize(x_2056, 2, x_2002); +if (lean_is_scalar(x_2000)) { + x_2057 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_2057 = x_2000; +} +lean_ctor_set(x_2057, 0, x_2056); +lean_ctor_set(x_2057, 1, x_2008); +lean_ctor_set_usize(x_2057, 2, x_1999); +x_2058 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_2058, 0, x_2057); +lean_ctor_set(x_2058, 1, x_2021); +lean_ctor_set_usize(x_2058, 2, x_1997); +if (lean_is_scalar(x_2007)) { + x_2059 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_2059 = x_2007; +} +lean_ctor_set(x_2059, 0, x_2058); +lean_ctor_set(x_2059, 1, x_42); +lean_ctor_set_usize(x_2059, 2, x_1995); +x_2060 = l_Lean_Name_toString___closed__1; +x_2061 = l_Lean_Name_toStringWithSep___main(x_2060, x_2059); +x_2062 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2062, 0, x_2061); +x_2063 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2063, 0, x_2062); +x_2064 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__3; +x_2065 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_2065, 0, x_2064); +lean_ctor_set(x_2065, 1, x_2063); +x_2066 = l_Lean_Elab_Term_throwError___rarg(x_2065, x_2, x_3); +return x_2066; } else { -lean_object* x_2352; lean_object* x_2353; lean_object* x_2354; lean_object* x_2355; -lean_dec(x_2292); -lean_dec(x_2288); -lean_dec(x_2285); -lean_dec(x_27); +lean_object* x_2067; lean_object* x_2068; lean_object* x_2069; lean_object* x_2070; +lean_dec(x_2007); +lean_dec(x_2003); +lean_dec(x_2000); +lean_dec(x_42); lean_dec(x_2); -x_2352 = lean_unsigned_to_nat(0u); -x_2353 = l_Lean_Syntax_getArg(x_1, x_2352); +x_2067 = lean_unsigned_to_nat(0u); +x_2068 = l_Lean_Syntax_getArg(x_1, x_2067); lean_dec(x_1); -x_2354 = l_Lean_numLitKind; -x_2355 = l_Lean_Syntax_isNatLitAux(x_2354, x_2353); -lean_dec(x_2353); -if (lean_obj_tag(x_2355) == 0) +x_2069 = l_Lean_numLitKind; +x_2070 = l_Lean_Syntax_isNatLitAux(x_2069, x_2068); +lean_dec(x_2068); +if (lean_obj_tag(x_2070) == 0) { -lean_object* x_2356; lean_object* x_2357; -x_2356 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__5; -x_2357 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2357, 0, x_2356); -lean_ctor_set(x_2357, 1, x_3); -return x_2357; +lean_object* x_2071; lean_object* x_2072; +x_2071 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__5; +x_2072 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2072, 0, x_2071); +lean_ctor_set(x_2072, 1, x_3); +return x_2072; } else { -lean_object* x_2358; lean_object* x_2359; lean_object* x_2360; -x_2358 = lean_ctor_get(x_2355, 0); +lean_object* x_2073; lean_object* x_2074; lean_object* x_2075; +x_2073 = lean_ctor_get(x_2070, 0); +lean_inc(x_2073); +lean_dec(x_2070); +x_2074 = l_Lean_mkNatLit(x_2073); +x_2075 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2075, 0, x_2074); +lean_ctor_set(x_2075, 1, x_3); +return x_2075; +} +} +} +else +{ +lean_object* x_2076; lean_object* x_2077; lean_object* x_2078; +lean_dec(x_2007); +lean_dec(x_2003); +lean_dec(x_2000); +lean_dec(x_42); +lean_dec(x_2); +x_2076 = lean_unsigned_to_nat(0u); +x_2077 = l_Lean_Syntax_getArg(x_1, x_2076); +lean_dec(x_1); +x_2078 = l_Lean_Syntax_isStrLit_x3f(x_2077); +lean_dec(x_2077); +if (lean_obj_tag(x_2078) == 0) +{ +lean_object* x_2079; lean_object* x_2080; +x_2079 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__6; +x_2080 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2080, 0, x_2079); +lean_ctor_set(x_2080, 1, x_3); +return x_2080; +} +else +{ +lean_object* x_2081; lean_object* x_2082; lean_object* x_2083; +x_2081 = lean_ctor_get(x_2078, 0); +lean_inc(x_2081); +lean_dec(x_2078); +x_2082 = l_Lean_mkStrLit(x_2081); +x_2083 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2083, 0, x_2082); +lean_ctor_set(x_2083, 1, x_3); +return x_2083; +} +} +} +else +{ +lean_object* x_2084; lean_object* x_2085; lean_object* x_2086; lean_object* x_2087; lean_object* x_2088; lean_object* x_2089; lean_object* x_2090; lean_object* x_2091; lean_object* x_2092; +lean_dec(x_2007); +lean_dec(x_2003); +lean_dec(x_2000); +lean_dec(x_42); +lean_dec(x_1); +x_2084 = l_Lean_Syntax_inhabited; +x_2085 = lean_unsigned_to_nat(0u); +x_2086 = lean_array_get(x_2084, x_4, x_2085); +x_2087 = lean_unsigned_to_nat(2u); +x_2088 = lean_array_get(x_2084, x_4, x_2087); +lean_dec(x_4); +x_2089 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__1___boxed), 6, 3); +lean_closure_set(x_2089, 0, x_41); +lean_closure_set(x_2089, 1, x_2086); +lean_closure_set(x_2089, 2, x_2088); +x_2090 = l_Lean_Unhygienic_MonadQuotation___closed__4; +x_2091 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___spec__1___rarg), 4, 2); +lean_closure_set(x_2091, 0, x_2090); +lean_closure_set(x_2091, 1, x_2089); +x_2092 = l_Lean_Unhygienic_run___rarg(x_2091); +x_1 = x_2092; +goto _start; +} +} +else +{ +lean_object* x_2094; lean_object* x_2095; lean_object* x_2096; lean_object* x_2097; lean_object* x_2098; lean_object* x_2099; lean_object* x_2100; lean_object* x_2101; lean_object* x_2102; +lean_dec(x_2007); +lean_dec(x_2003); +lean_dec(x_2000); +lean_dec(x_42); +lean_dec(x_1); +x_2094 = l_Lean_Syntax_inhabited; +x_2095 = lean_unsigned_to_nat(0u); +x_2096 = lean_array_get(x_2094, x_4, x_2095); +x_2097 = lean_unsigned_to_nat(2u); +x_2098 = lean_array_get(x_2094, x_4, x_2097); +lean_dec(x_4); +x_2099 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__2___boxed), 6, 3); +lean_closure_set(x_2099, 0, x_41); +lean_closure_set(x_2099, 1, x_2096); +lean_closure_set(x_2099, 2, x_2098); +x_2100 = l_Lean_Unhygienic_MonadQuotation___closed__4; +x_2101 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___spec__1___rarg), 4, 2); +lean_closure_set(x_2101, 0, x_2100); +lean_closure_set(x_2101, 1, x_2099); +x_2102 = l_Lean_Unhygienic_run___rarg(x_2101); +x_1 = x_2102; +goto _start; +} +} +else +{ +lean_object* x_2104; lean_object* x_2105; lean_object* x_2106; lean_object* x_2107; lean_object* x_2108; lean_object* x_2109; lean_object* x_2110; lean_object* x_2111; lean_object* x_2112; +lean_dec(x_2007); +lean_dec(x_2003); +lean_dec(x_2000); +lean_dec(x_42); +lean_dec(x_1); +x_2104 = l_Lean_Syntax_inhabited; +x_2105 = lean_unsigned_to_nat(0u); +x_2106 = lean_array_get(x_2104, x_4, x_2105); +x_2107 = lean_unsigned_to_nat(2u); +x_2108 = lean_array_get(x_2104, x_4, x_2107); +lean_dec(x_4); +x_2109 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__3___boxed), 6, 3); +lean_closure_set(x_2109, 0, x_41); +lean_closure_set(x_2109, 1, x_2106); +lean_closure_set(x_2109, 2, x_2108); +x_2110 = l_Lean_Unhygienic_MonadQuotation___closed__4; +x_2111 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___spec__1___rarg), 4, 2); +lean_closure_set(x_2111, 0, x_2110); +lean_closure_set(x_2111, 1, x_2109); +x_2112 = l_Lean_Unhygienic_run___rarg(x_2111); +x_1 = x_2112; +goto _start; +} +} +else +{ +lean_object* x_2114; lean_object* x_2115; lean_object* x_2116; lean_object* x_2117; lean_object* x_2118; lean_object* x_2119; uint8_t x_2120; +lean_dec(x_2007); +lean_dec(x_2003); +lean_dec(x_2000); +lean_dec(x_42); +lean_dec(x_1); +x_2114 = l_Lean_Syntax_inhabited; +x_2115 = lean_unsigned_to_nat(1u); +x_2116 = lean_array_get(x_2114, x_4, x_2115); +lean_dec(x_4); +x_2117 = l_Lean_Syntax_getArgs(x_2116); +lean_dec(x_2116); +x_2118 = lean_array_get_size(x_2117); +x_2119 = lean_unsigned_to_nat(0u); +x_2120 = lean_nat_dec_eq(x_2118, x_2119); +lean_dec(x_2118); +if (x_2120 == 0) +{ +lean_object* x_2121; +x_2121 = lean_array_get(x_2114, x_2117, x_2119); +lean_dec(x_2117); +x_1 = x_2121; +goto _start; +} +else +{ +lean_object* x_2123; lean_object* x_2124; lean_object* x_2125; lean_object* x_2126; lean_object* x_2127; lean_object* x_2128; lean_object* x_2129; +lean_dec(x_2117); +lean_dec(x_2); +x_2123 = l___private_Lean_Compiler_InitAttr_2__isUnitType___closed__1; +x_2124 = lean_name_mk_string(x_41, x_2123); +x_2125 = l_Lean_unitToExpr___lambda__1___closed__3; +x_2126 = lean_name_mk_string(x_2124, x_2125); +x_2127 = lean_box(0); +x_2128 = l_Lean_mkConst(x_2126, x_2127); +x_2129 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2129, 0, x_2128); +lean_ctor_set(x_2129, 1, x_3); +return x_2129; +} +} +} +else +{ +lean_object* x_2130; lean_object* x_2131; lean_object* x_2132; lean_object* x_2133; lean_object* x_2134; lean_object* x_2135; lean_object* x_2136; lean_object* x_2137; lean_object* x_2138; lean_object* x_2139; lean_object* x_2140; +lean_dec(x_2007); +lean_dec(x_2003); +lean_dec(x_2000); +lean_dec(x_42); +lean_dec(x_1); +x_2130 = l_Lean_Syntax_inhabited; +x_2131 = lean_unsigned_to_nat(2u); +x_2132 = lean_array_get(x_2130, x_4, x_2131); +x_2133 = lean_unsigned_to_nat(4u); +x_2134 = lean_array_get(x_2130, x_4, x_2133); +x_2135 = lean_unsigned_to_nat(6u); +x_2136 = lean_array_get(x_2130, x_4, x_2135); +lean_dec(x_4); +x_2137 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__4___boxed), 7, 4); +lean_closure_set(x_2137, 0, x_41); +lean_closure_set(x_2137, 1, x_2132); +lean_closure_set(x_2137, 2, x_2134); +lean_closure_set(x_2137, 3, x_2136); +x_2138 = l_Lean_Unhygienic_MonadQuotation___closed__4; +x_2139 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___spec__1___rarg), 4, 2); +lean_closure_set(x_2139, 0, x_2138); +lean_closure_set(x_2139, 1, x_2137); +x_2140 = l_Lean_Unhygienic_run___rarg(x_2139); +x_1 = x_2140; +goto _start; +} +} +else +{ +lean_object* x_2142; lean_object* x_2143; lean_object* x_2144; lean_object* x_2145; +lean_dec(x_2007); +lean_dec(x_2003); +lean_dec(x_2000); +lean_dec(x_42); +lean_dec(x_1); +x_2142 = l_Lean_Syntax_inhabited; +x_2143 = lean_unsigned_to_nat(0u); +x_2144 = lean_array_get(x_2142, x_4, x_2143); +lean_inc(x_2); +x_2145 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_2144, x_2, x_3); +if (lean_obj_tag(x_2145) == 0) +{ +lean_object* x_2146; lean_object* x_2147; lean_object* x_2148; lean_object* x_2149; lean_object* x_2150; lean_object* x_2151; lean_object* x_2152; lean_object* x_2153; lean_object* x_2154; +x_2146 = lean_ctor_get(x_2145, 0); +lean_inc(x_2146); +x_2147 = lean_ctor_get(x_2145, 1); +lean_inc(x_2147); +lean_dec(x_2145); +x_2148 = lean_unsigned_to_nat(1u); +x_2149 = lean_array_get(x_2142, x_4, x_2148); +lean_dec(x_4); +x_2150 = l_Lean_Syntax_getArgs(x_2149); +lean_dec(x_2149); +x_2151 = x_2150; +x_2152 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__1), 4, 2); +lean_closure_set(x_2152, 0, x_2143); +lean_closure_set(x_2152, 1, x_2151); +x_2153 = x_2152; +x_2154 = lean_apply_2(x_2153, x_2, x_2147); +if (lean_obj_tag(x_2154) == 0) +{ +lean_object* x_2155; lean_object* x_2156; lean_object* x_2157; lean_object* x_2158; lean_object* x_2159; +x_2155 = lean_ctor_get(x_2154, 0); +lean_inc(x_2155); +x_2156 = lean_ctor_get(x_2154, 1); +lean_inc(x_2156); +if (lean_is_exclusive(x_2154)) { + lean_ctor_release(x_2154, 0); + lean_ctor_release(x_2154, 1); + x_2157 = x_2154; +} else { + lean_dec_ref(x_2154); + x_2157 = lean_box(0); +} +x_2158 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_2155, x_2155, x_2143, x_2146); +lean_dec(x_2155); +if (lean_is_scalar(x_2157)) { + x_2159 = lean_alloc_ctor(0, 2, 0); +} else { + x_2159 = x_2157; +} +lean_ctor_set(x_2159, 0, x_2158); +lean_ctor_set(x_2159, 1, x_2156); +return x_2159; +} +else +{ +lean_object* x_2160; lean_object* x_2161; lean_object* x_2162; lean_object* x_2163; +lean_dec(x_2146); +x_2160 = lean_ctor_get(x_2154, 0); +lean_inc(x_2160); +x_2161 = lean_ctor_get(x_2154, 1); +lean_inc(x_2161); +if (lean_is_exclusive(x_2154)) { + lean_ctor_release(x_2154, 0); + lean_ctor_release(x_2154, 1); + x_2162 = x_2154; +} else { + lean_dec_ref(x_2154); + x_2162 = lean_box(0); +} +if (lean_is_scalar(x_2162)) { + x_2163 = lean_alloc_ctor(1, 2, 0); +} else { + x_2163 = x_2162; +} +lean_ctor_set(x_2163, 0, x_2160); +lean_ctor_set(x_2163, 1, x_2161); +return x_2163; +} +} +else +{ +lean_object* x_2164; lean_object* x_2165; lean_object* x_2166; lean_object* x_2167; +lean_dec(x_2); +lean_dec(x_4); +x_2164 = lean_ctor_get(x_2145, 0); +lean_inc(x_2164); +x_2165 = lean_ctor_get(x_2145, 1); +lean_inc(x_2165); +if (lean_is_exclusive(x_2145)) { + lean_ctor_release(x_2145, 0); + lean_ctor_release(x_2145, 1); + x_2166 = x_2145; +} else { + lean_dec_ref(x_2145); + x_2166 = lean_box(0); +} +if (lean_is_scalar(x_2166)) { + x_2167 = lean_alloc_ctor(1, 2, 0); +} else { + x_2167 = x_2166; +} +lean_ctor_set(x_2167, 0, x_2164); +lean_ctor_set(x_2167, 1, x_2165); +return x_2167; +} +} +} +else +{ +lean_object* x_2168; lean_object* x_2169; lean_object* x_2170; lean_object* x_2171; lean_object* x_2172; uint8_t x_2173; lean_object* x_2174; lean_object* x_2175; lean_object* x_2176; lean_object* x_2177; lean_object* x_2178; +lean_dec(x_2007); +lean_dec(x_2003); +lean_dec(x_2000); +lean_dec(x_42); +x_2168 = l_Lean_Syntax_inhabited; +x_2169 = lean_unsigned_to_nat(1u); +x_2170 = lean_array_get(x_2168, x_4, x_2169); +x_2171 = lean_unsigned_to_nat(0u); +x_2172 = l_Lean_Syntax_getArg(x_2170, x_2171); +x_2173 = l_Lean_Syntax_isIdent(x_2172); +x_2174 = lean_unsigned_to_nat(4u); +x_2175 = l_Lean_Syntax_getArg(x_2170, x_2174); +lean_dec(x_2170); +x_2176 = lean_unsigned_to_nat(3u); +x_2177 = lean_array_get(x_2168, x_4, x_2176); +lean_dec(x_4); +if (x_2173 == 0) +{ +lean_object* x_2212; +x_2212 = l_Lean_Syntax_getIdAt(x_2172, x_2171); +lean_dec(x_2172); +x_2178 = x_2212; +goto block_2211; +} +else +{ +lean_object* x_2213; +x_2213 = l_Lean_Syntax_getId(x_2172); +lean_dec(x_2172); +x_2178 = x_2213; +goto block_2211; +} +block_2211: +{ +lean_object* x_2179; +lean_inc(x_2); +x_2179 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_2175, x_2, x_3); +if (lean_obj_tag(x_2179) == 0) +{ +lean_object* x_2180; lean_object* x_2181; lean_object* x_2182; lean_object* x_2183; lean_object* x_2184; lean_object* x_2185; lean_object* x_2186; lean_object* x_2187; lean_object* x_2188; lean_object* x_2189; lean_object* x_2190; lean_object* x_2191; lean_object* x_2192; lean_object* x_2193; lean_object* x_2194; +x_2180 = lean_ctor_get(x_2179, 0); +lean_inc(x_2180); +x_2181 = lean_ctor_get(x_2179, 1); +lean_inc(x_2181); +lean_dec(x_2179); +x_2182 = l_Lean_Elab_Term_getLCtx(x_2, x_2181); +lean_dec(x_2); +x_2183 = lean_ctor_get(x_2182, 0); +lean_inc(x_2183); +x_2184 = lean_ctor_get(x_2182, 1); +lean_inc(x_2184); +lean_dec(x_2182); +x_2185 = l___private_Lean_Elab_Quotation_9__exprPlaceholder; +lean_inc_n(x_2178, 2); +x_2186 = lean_local_ctx_mk_let_decl(x_2183, x_2178, x_2178, x_2185, x_2180); +x_2187 = lean_ctor_get(x_7, 0); +lean_inc(x_2187); +x_2188 = lean_ctor_get(x_7, 2); +lean_inc(x_2188); +x_2189 = lean_ctor_get(x_7, 3); +lean_inc(x_2189); +x_2190 = lean_ctor_get(x_7, 4); +lean_inc(x_2190); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + lean_ctor_release(x_7, 2); + lean_ctor_release(x_7, 3); + lean_ctor_release(x_7, 4); + x_2191 = x_7; +} else { + lean_dec_ref(x_7); + x_2191 = lean_box(0); +} +lean_inc(x_2186); +if (lean_is_scalar(x_2191)) { + x_2192 = lean_alloc_ctor(0, 5, 0); +} else { + x_2192 = x_2191; +} +lean_ctor_set(x_2192, 0, x_2187); +lean_ctor_set(x_2192, 1, x_2186); +lean_ctor_set(x_2192, 2, x_2188); +lean_ctor_set(x_2192, 3, x_2189); +lean_ctor_set(x_2192, 4, x_2190); +x_2193 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_2193, 0, x_2192); +lean_ctor_set(x_2193, 1, x_8); +lean_ctor_set(x_2193, 2, x_9); +lean_ctor_set(x_2193, 3, x_10); +lean_ctor_set(x_2193, 4, x_11); +lean_ctor_set(x_2193, 5, x_12); +lean_ctor_set(x_2193, 6, x_13); +lean_ctor_set(x_2193, 7, x_14); +lean_ctor_set(x_2193, 8, x_15); +lean_ctor_set(x_2193, 9, x_16); +lean_ctor_set(x_2193, 10, x_1); +lean_ctor_set_uint8(x_2193, sizeof(void*)*11, x_17); +lean_ctor_set_uint8(x_2193, sizeof(void*)*11 + 1, x_18); +lean_ctor_set_uint8(x_2193, sizeof(void*)*11 + 2, x_19); +x_2194 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_2177, x_2193, x_2184); +if (lean_obj_tag(x_2194) == 0) +{ +lean_object* x_2195; lean_object* x_2196; lean_object* x_2197; lean_object* x_2198; lean_object* x_2199; lean_object* x_2200; lean_object* x_2201; lean_object* x_2202; +x_2195 = lean_ctor_get(x_2194, 0); +lean_inc(x_2195); +x_2196 = lean_ctor_get(x_2194, 1); +lean_inc(x_2196); +if (lean_is_exclusive(x_2194)) { + lean_ctor_release(x_2194, 0); + lean_ctor_release(x_2194, 1); + x_2197 = x_2194; +} else { + lean_dec_ref(x_2194); + x_2197 = lean_box(0); +} +x_2198 = l_Lean_mkFVar(x_2178); +x_2199 = l_Lean_mkOptionalNode___closed__2; +x_2200 = lean_array_push(x_2199, x_2198); +x_2201 = l_Lean_LocalContext_mkLambda(x_2186, x_2200, x_2195); +lean_dec(x_2195); +lean_dec(x_2200); +if (lean_is_scalar(x_2197)) { + x_2202 = lean_alloc_ctor(0, 2, 0); +} else { + x_2202 = x_2197; +} +lean_ctor_set(x_2202, 0, x_2201); +lean_ctor_set(x_2202, 1, x_2196); +return x_2202; +} +else +{ +lean_object* x_2203; lean_object* x_2204; lean_object* x_2205; lean_object* x_2206; +lean_dec(x_2186); +lean_dec(x_2178); +x_2203 = lean_ctor_get(x_2194, 0); +lean_inc(x_2203); +x_2204 = lean_ctor_get(x_2194, 1); +lean_inc(x_2204); +if (lean_is_exclusive(x_2194)) { + lean_ctor_release(x_2194, 0); + lean_ctor_release(x_2194, 1); + x_2205 = x_2194; +} else { + lean_dec_ref(x_2194); + x_2205 = lean_box(0); +} +if (lean_is_scalar(x_2205)) { + x_2206 = lean_alloc_ctor(1, 2, 0); +} else { + x_2206 = x_2205; +} +lean_ctor_set(x_2206, 0, x_2203); +lean_ctor_set(x_2206, 1, x_2204); +return x_2206; +} +} +else +{ +lean_object* x_2207; lean_object* x_2208; lean_object* x_2209; lean_object* x_2210; +lean_dec(x_2178); +lean_dec(x_2177); +lean_dec(x_2); +lean_dec(x_16); +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_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_2207 = lean_ctor_get(x_2179, 0); +lean_inc(x_2207); +x_2208 = lean_ctor_get(x_2179, 1); +lean_inc(x_2208); +if (lean_is_exclusive(x_2179)) { + lean_ctor_release(x_2179, 0); + lean_ctor_release(x_2179, 1); + x_2209 = x_2179; +} else { + lean_dec_ref(x_2179); + x_2209 = lean_box(0); +} +if (lean_is_scalar(x_2209)) { + x_2210 = lean_alloc_ctor(1, 2, 0); +} else { + x_2210 = x_2209; +} +lean_ctor_set(x_2210, 0, x_2207); +lean_ctor_set(x_2210, 1, x_2208); +return x_2210; +} +} +} +} +else +{ +lean_object* x_2214; lean_object* x_2215; lean_object* x_2216; lean_object* x_2217; lean_object* x_2218; lean_object* x_2219; lean_object* x_2220; lean_object* x_2221; uint8_t x_2222; +lean_dec(x_2007); +lean_dec(x_2003); +lean_dec(x_2000); +lean_dec(x_42); +x_2214 = l_Lean_Syntax_inhabited; +x_2215 = lean_unsigned_to_nat(1u); +x_2216 = lean_array_get(x_2214, x_4, x_2215); +x_2217 = l_Lean_Syntax_getArgs(x_2216); +lean_dec(x_2216); +x_2218 = lean_unsigned_to_nat(3u); +x_2219 = lean_array_get(x_2214, x_4, x_2218); +lean_dec(x_4); +x_2220 = lean_array_get_size(x_2217); +x_2221 = lean_unsigned_to_nat(0u); +x_2222 = lean_nat_dec_eq(x_2220, x_2221); +lean_dec(x_2220); +if (x_2222 == 0) +{ +lean_object* x_2223; lean_object* x_2224; lean_object* x_2225; lean_object* x_2226; lean_object* x_2227; uint8_t x_2228; +x_2223 = lean_array_get(x_2214, x_2217, x_2221); +x_2224 = lean_name_mk_string(x_41, x_2004); +x_2225 = lean_name_mk_string(x_2224, x_2008); +x_2226 = lean_name_mk_string(x_2225, x_2021); +lean_inc(x_2226); +x_2227 = lean_name_mk_string(x_2226, x_2034); +lean_inc(x_2223); +x_2228 = l_Lean_Syntax_isOfKind(x_2223, x_2227); +lean_dec(x_2227); +if (x_2228 == 0) +{ +lean_object* x_2229; lean_object* x_2230; uint8_t x_2231; +x_2229 = l_Lean_mkHole___closed__1; +lean_inc(x_2226); +x_2230 = lean_name_mk_string(x_2226, x_2229); +lean_inc(x_2223); +x_2231 = l_Lean_Syntax_isOfKind(x_2223, x_2230); +lean_dec(x_2230); +if (x_2231 == 0) +{ +lean_object* x_2232; lean_object* x_2233; lean_object* x_2234; lean_object* x_2235; lean_object* x_2236; lean_object* x_2237; lean_object* x_2238; +x_2232 = l_Lean_Syntax_getArg(x_2223, x_2215); +lean_dec(x_2223); +x_2233 = l_Lean_Syntax_getArg(x_2232, x_2221); +x_2234 = l_Lean_Syntax_getIdAt(x_2233, x_2221); +lean_dec(x_2233); +x_2235 = l_Lean_Syntax_getArg(x_2232, x_2215); +lean_dec(x_2232); +x_2236 = l_Lean_Syntax_getArg(x_2235, x_2221); +lean_dec(x_2235); +x_2237 = l_Lean_Syntax_getArg(x_2236, x_2215); +lean_dec(x_2236); +lean_inc(x_2); +x_2238 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_2237, x_2, x_3); +if (lean_obj_tag(x_2238) == 0) +{ +lean_object* x_2239; lean_object* x_2240; lean_object* x_2241; lean_object* x_2242; lean_object* x_2243; uint8_t x_2244; lean_object* x_2245; lean_object* x_2246; lean_object* x_2247; lean_object* x_2248; lean_object* x_2249; lean_object* x_2250; lean_object* x_2251; lean_object* x_2252; lean_object* x_2253; lean_object* x_2254; lean_object* x_2255; lean_object* x_2256; lean_object* x_2257; lean_object* x_2258; lean_object* x_2259; lean_object* x_2260; lean_object* x_2261; lean_object* x_2262; lean_object* x_2263; lean_object* x_2264; lean_object* x_2265; lean_object* x_2266; lean_object* x_2267; lean_object* x_2268; lean_object* x_2269; lean_object* x_2270; +x_2239 = lean_ctor_get(x_2238, 0); +lean_inc(x_2239); +x_2240 = lean_ctor_get(x_2238, 1); +lean_inc(x_2240); +lean_dec(x_2238); +x_2241 = l_Lean_Elab_Term_getLCtx(x_2, x_2240); +x_2242 = lean_ctor_get(x_2241, 0); +lean_inc(x_2242); +x_2243 = lean_ctor_get(x_2241, 1); +lean_inc(x_2243); +lean_dec(x_2241); +x_2244 = 0; +lean_inc_n(x_2234, 2); +x_2245 = lean_local_ctx_mk_local_decl(x_2242, x_2234, x_2234, x_2239, x_2244); +x_2246 = l_Array_eraseIdx___rarg(x_2217, x_2221); +x_2247 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_2243); +lean_dec(x_2); +x_2248 = lean_ctor_get(x_2247, 1); +lean_inc(x_2248); +lean_dec(x_2247); +x_2249 = l_Lean_Elab_Term_getMainModule___rarg(x_2248); +x_2250 = lean_ctor_get(x_2249, 1); +lean_inc(x_2250); +lean_dec(x_2249); +x_2251 = lean_name_mk_string(x_2226, x_2036); +x_2252 = l_Lean_nullKind___closed__1; +x_2253 = lean_name_mk_string(x_41, x_2252); +x_2254 = l_Array_empty___closed__1; +x_2255 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_2246, x_2246, x_2221, x_2254); +lean_dec(x_2246); +x_2256 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2256, 0, x_2253); +lean_ctor_set(x_2256, 1, x_2255); +x_2257 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; +x_2258 = lean_array_push(x_2257, x_2256); +x_2259 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; +x_2260 = lean_array_push(x_2258, x_2259); +x_2261 = lean_array_push(x_2260, x_2219); +x_2262 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2262, 0, x_2251); +lean_ctor_set(x_2262, 1, x_2261); +x_2263 = lean_ctor_get(x_7, 0); +lean_inc(x_2263); +x_2264 = lean_ctor_get(x_7, 2); +lean_inc(x_2264); +x_2265 = lean_ctor_get(x_7, 3); +lean_inc(x_2265); +x_2266 = lean_ctor_get(x_7, 4); +lean_inc(x_2266); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + lean_ctor_release(x_7, 2); + lean_ctor_release(x_7, 3); + lean_ctor_release(x_7, 4); + x_2267 = x_7; +} else { + lean_dec_ref(x_7); + x_2267 = lean_box(0); +} +lean_inc(x_2245); +if (lean_is_scalar(x_2267)) { + x_2268 = lean_alloc_ctor(0, 5, 0); +} else { + x_2268 = x_2267; +} +lean_ctor_set(x_2268, 0, x_2263); +lean_ctor_set(x_2268, 1, x_2245); +lean_ctor_set(x_2268, 2, x_2264); +lean_ctor_set(x_2268, 3, x_2265); +lean_ctor_set(x_2268, 4, x_2266); +x_2269 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_2269, 0, x_2268); +lean_ctor_set(x_2269, 1, x_8); +lean_ctor_set(x_2269, 2, x_9); +lean_ctor_set(x_2269, 3, x_10); +lean_ctor_set(x_2269, 4, x_11); +lean_ctor_set(x_2269, 5, x_12); +lean_ctor_set(x_2269, 6, x_13); +lean_ctor_set(x_2269, 7, x_14); +lean_ctor_set(x_2269, 8, x_15); +lean_ctor_set(x_2269, 9, x_16); +lean_ctor_set(x_2269, 10, x_1); +lean_ctor_set_uint8(x_2269, sizeof(void*)*11, x_17); +lean_ctor_set_uint8(x_2269, sizeof(void*)*11 + 1, x_18); +lean_ctor_set_uint8(x_2269, sizeof(void*)*11 + 2, x_19); +x_2270 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_2262, x_2269, x_2250); +if (lean_obj_tag(x_2270) == 0) +{ +lean_object* x_2271; lean_object* x_2272; lean_object* x_2273; lean_object* x_2274; lean_object* x_2275; lean_object* x_2276; lean_object* x_2277; lean_object* x_2278; +x_2271 = lean_ctor_get(x_2270, 0); +lean_inc(x_2271); +x_2272 = lean_ctor_get(x_2270, 1); +lean_inc(x_2272); +if (lean_is_exclusive(x_2270)) { + lean_ctor_release(x_2270, 0); + lean_ctor_release(x_2270, 1); + x_2273 = x_2270; +} else { + lean_dec_ref(x_2270); + x_2273 = lean_box(0); +} +x_2274 = l_Lean_mkFVar(x_2234); +x_2275 = l_Lean_mkOptionalNode___closed__2; +x_2276 = lean_array_push(x_2275, x_2274); +x_2277 = l_Lean_LocalContext_mkLambda(x_2245, x_2276, x_2271); +lean_dec(x_2271); +lean_dec(x_2276); +if (lean_is_scalar(x_2273)) { + x_2278 = lean_alloc_ctor(0, 2, 0); +} else { + x_2278 = x_2273; +} +lean_ctor_set(x_2278, 0, x_2277); +lean_ctor_set(x_2278, 1, x_2272); +return x_2278; +} +else +{ +lean_object* x_2279; lean_object* x_2280; lean_object* x_2281; lean_object* x_2282; +lean_dec(x_2245); +lean_dec(x_2234); +x_2279 = lean_ctor_get(x_2270, 0); +lean_inc(x_2279); +x_2280 = lean_ctor_get(x_2270, 1); +lean_inc(x_2280); +if (lean_is_exclusive(x_2270)) { + lean_ctor_release(x_2270, 0); + lean_ctor_release(x_2270, 1); + x_2281 = x_2270; +} else { + lean_dec_ref(x_2270); + x_2281 = lean_box(0); +} +if (lean_is_scalar(x_2281)) { + x_2282 = lean_alloc_ctor(1, 2, 0); +} else { + x_2282 = x_2281; +} +lean_ctor_set(x_2282, 0, x_2279); +lean_ctor_set(x_2282, 1, x_2280); +return x_2282; +} +} +else +{ +lean_object* x_2283; lean_object* x_2284; lean_object* x_2285; lean_object* x_2286; +lean_dec(x_2234); +lean_dec(x_2226); +lean_dec(x_2219); +lean_dec(x_2217); +lean_dec(x_2); +lean_dec(x_16); +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_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_2283 = lean_ctor_get(x_2238, 0); +lean_inc(x_2283); +x_2284 = lean_ctor_get(x_2238, 1); +lean_inc(x_2284); +if (lean_is_exclusive(x_2238)) { + lean_ctor_release(x_2238, 0); + lean_ctor_release(x_2238, 1); + x_2285 = x_2238; +} else { + lean_dec_ref(x_2238); + x_2285 = lean_box(0); +} +if (lean_is_scalar(x_2285)) { + x_2286 = lean_alloc_ctor(1, 2, 0); +} else { + x_2286 = x_2285; +} +lean_ctor_set(x_2286, 0, x_2283); +lean_ctor_set(x_2286, 1, x_2284); +return x_2286; +} +} +else +{ +lean_object* x_2287; lean_object* x_2288; lean_object* x_2289; lean_object* x_2290; lean_object* x_2291; lean_object* x_2292; uint8_t x_2293; lean_object* x_2294; lean_object* x_2295; lean_object* x_2296; lean_object* x_2297; lean_object* x_2298; lean_object* x_2299; lean_object* x_2300; lean_object* x_2301; lean_object* x_2302; lean_object* x_2303; lean_object* x_2304; lean_object* x_2305; lean_object* x_2306; lean_object* x_2307; lean_object* x_2308; lean_object* x_2309; lean_object* x_2310; lean_object* x_2311; lean_object* x_2312; lean_object* x_2313; lean_object* x_2314; lean_object* x_2315; lean_object* x_2316; lean_object* x_2317; lean_object* x_2318; lean_object* x_2319; +lean_dec(x_2223); +x_2287 = l_Lean_Meta_rewriteCore___lambda__1___closed__4; +x_2288 = lean_name_mk_string(x_41, x_2287); +x_2289 = l_Lean_Elab_Term_getLCtx(x_2, x_3); +x_2290 = lean_ctor_get(x_2289, 0); +lean_inc(x_2290); +x_2291 = lean_ctor_get(x_2289, 1); +lean_inc(x_2291); +lean_dec(x_2289); +x_2292 = l___private_Lean_Elab_Quotation_9__exprPlaceholder; +x_2293 = 0; +lean_inc_n(x_2288, 2); +x_2294 = lean_local_ctx_mk_local_decl(x_2290, x_2288, x_2288, x_2292, x_2293); +x_2295 = l_Array_eraseIdx___rarg(x_2217, x_2221); +x_2296 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_2291); +lean_dec(x_2); +x_2297 = lean_ctor_get(x_2296, 1); +lean_inc(x_2297); +lean_dec(x_2296); +x_2298 = l_Lean_Elab_Term_getMainModule___rarg(x_2297); +x_2299 = lean_ctor_get(x_2298, 1); +lean_inc(x_2299); +lean_dec(x_2298); +x_2300 = lean_name_mk_string(x_2226, x_2036); +x_2301 = l_Lean_nullKind___closed__1; +x_2302 = lean_name_mk_string(x_41, x_2301); +x_2303 = l_Array_empty___closed__1; +x_2304 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_2295, x_2295, x_2221, x_2303); +lean_dec(x_2295); +x_2305 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2305, 0, x_2302); +lean_ctor_set(x_2305, 1, x_2304); +x_2306 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; +x_2307 = lean_array_push(x_2306, x_2305); +x_2308 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; +x_2309 = lean_array_push(x_2307, x_2308); +x_2310 = lean_array_push(x_2309, x_2219); +x_2311 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2311, 0, x_2300); +lean_ctor_set(x_2311, 1, x_2310); +x_2312 = lean_ctor_get(x_7, 0); +lean_inc(x_2312); +x_2313 = lean_ctor_get(x_7, 2); +lean_inc(x_2313); +x_2314 = lean_ctor_get(x_7, 3); +lean_inc(x_2314); +x_2315 = lean_ctor_get(x_7, 4); +lean_inc(x_2315); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + lean_ctor_release(x_7, 2); + lean_ctor_release(x_7, 3); + lean_ctor_release(x_7, 4); + x_2316 = x_7; +} else { + lean_dec_ref(x_7); + x_2316 = lean_box(0); +} +lean_inc(x_2294); +if (lean_is_scalar(x_2316)) { + x_2317 = lean_alloc_ctor(0, 5, 0); +} else { + x_2317 = x_2316; +} +lean_ctor_set(x_2317, 0, x_2312); +lean_ctor_set(x_2317, 1, x_2294); +lean_ctor_set(x_2317, 2, x_2313); +lean_ctor_set(x_2317, 3, x_2314); +lean_ctor_set(x_2317, 4, x_2315); +x_2318 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_2318, 0, x_2317); +lean_ctor_set(x_2318, 1, x_8); +lean_ctor_set(x_2318, 2, x_9); +lean_ctor_set(x_2318, 3, x_10); +lean_ctor_set(x_2318, 4, x_11); +lean_ctor_set(x_2318, 5, x_12); +lean_ctor_set(x_2318, 6, x_13); +lean_ctor_set(x_2318, 7, x_14); +lean_ctor_set(x_2318, 8, x_15); +lean_ctor_set(x_2318, 9, x_16); +lean_ctor_set(x_2318, 10, x_1); +lean_ctor_set_uint8(x_2318, sizeof(void*)*11, x_17); +lean_ctor_set_uint8(x_2318, sizeof(void*)*11 + 1, x_18); +lean_ctor_set_uint8(x_2318, sizeof(void*)*11 + 2, x_19); +x_2319 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_2311, x_2318, x_2299); +if (lean_obj_tag(x_2319) == 0) +{ +lean_object* x_2320; lean_object* x_2321; lean_object* x_2322; lean_object* x_2323; lean_object* x_2324; lean_object* x_2325; lean_object* x_2326; lean_object* x_2327; +x_2320 = lean_ctor_get(x_2319, 0); +lean_inc(x_2320); +x_2321 = lean_ctor_get(x_2319, 1); +lean_inc(x_2321); +if (lean_is_exclusive(x_2319)) { + lean_ctor_release(x_2319, 0); + lean_ctor_release(x_2319, 1); + x_2322 = x_2319; +} else { + lean_dec_ref(x_2319); + x_2322 = lean_box(0); +} +x_2323 = l_Lean_mkFVar(x_2288); +x_2324 = l_Lean_mkOptionalNode___closed__2; +x_2325 = lean_array_push(x_2324, x_2323); +x_2326 = l_Lean_LocalContext_mkLambda(x_2294, x_2325, x_2320); +lean_dec(x_2320); +lean_dec(x_2325); +if (lean_is_scalar(x_2322)) { + x_2327 = lean_alloc_ctor(0, 2, 0); +} else { + x_2327 = x_2322; +} +lean_ctor_set(x_2327, 0, x_2326); +lean_ctor_set(x_2327, 1, x_2321); +return x_2327; +} +else +{ +lean_object* x_2328; lean_object* x_2329; lean_object* x_2330; lean_object* x_2331; +lean_dec(x_2294); +lean_dec(x_2288); +x_2328 = lean_ctor_get(x_2319, 0); +lean_inc(x_2328); +x_2329 = lean_ctor_get(x_2319, 1); +lean_inc(x_2329); +if (lean_is_exclusive(x_2319)) { + lean_ctor_release(x_2319, 0); + lean_ctor_release(x_2319, 1); + x_2330 = x_2319; +} else { + lean_dec_ref(x_2319); + x_2330 = lean_box(0); +} +if (lean_is_scalar(x_2330)) { + x_2331 = lean_alloc_ctor(1, 2, 0); +} else { + x_2331 = x_2330; +} +lean_ctor_set(x_2331, 0, x_2328); +lean_ctor_set(x_2331, 1, x_2329); +return x_2331; +} +} +} +else +{ +lean_object* x_2332; lean_object* x_2333; lean_object* x_2334; lean_object* x_2335; lean_object* x_2336; uint8_t x_2337; lean_object* x_2338; lean_object* x_2339; lean_object* x_2340; lean_object* x_2341; lean_object* x_2342; lean_object* x_2343; lean_object* x_2344; lean_object* x_2345; lean_object* x_2346; lean_object* x_2347; lean_object* x_2348; lean_object* x_2349; lean_object* x_2350; lean_object* x_2351; lean_object* x_2352; lean_object* x_2353; lean_object* x_2354; lean_object* x_2355; lean_object* x_2356; lean_object* x_2357; lean_object* x_2358; lean_object* x_2359; lean_object* x_2360; lean_object* x_2361; lean_object* x_2362; lean_object* x_2363; +x_2332 = l_Lean_Syntax_getIdAt(x_2223, x_2221); +lean_dec(x_2223); +x_2333 = l_Lean_Elab_Term_getLCtx(x_2, x_3); +x_2334 = lean_ctor_get(x_2333, 0); +lean_inc(x_2334); +x_2335 = lean_ctor_get(x_2333, 1); +lean_inc(x_2335); +lean_dec(x_2333); +x_2336 = l___private_Lean_Elab_Quotation_9__exprPlaceholder; +x_2337 = 0; +lean_inc_n(x_2332, 2); +x_2338 = lean_local_ctx_mk_local_decl(x_2334, x_2332, x_2332, x_2336, x_2337); +x_2339 = l_Array_eraseIdx___rarg(x_2217, x_2221); +x_2340 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_2335); +lean_dec(x_2); +x_2341 = lean_ctor_get(x_2340, 1); +lean_inc(x_2341); +lean_dec(x_2340); +x_2342 = l_Lean_Elab_Term_getMainModule___rarg(x_2341); +x_2343 = lean_ctor_get(x_2342, 1); +lean_inc(x_2343); +lean_dec(x_2342); +x_2344 = lean_name_mk_string(x_2226, x_2036); +x_2345 = l_Lean_nullKind___closed__1; +x_2346 = lean_name_mk_string(x_41, x_2345); +x_2347 = l_Array_empty___closed__1; +x_2348 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_2339, x_2339, x_2221, x_2347); +lean_dec(x_2339); +x_2349 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2349, 0, x_2346); +lean_ctor_set(x_2349, 1, x_2348); +x_2350 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; +x_2351 = lean_array_push(x_2350, x_2349); +x_2352 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; +x_2353 = lean_array_push(x_2351, x_2352); +x_2354 = lean_array_push(x_2353, x_2219); +x_2355 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2355, 0, x_2344); +lean_ctor_set(x_2355, 1, x_2354); +x_2356 = lean_ctor_get(x_7, 0); +lean_inc(x_2356); +x_2357 = lean_ctor_get(x_7, 2); +lean_inc(x_2357); +x_2358 = lean_ctor_get(x_7, 3); lean_inc(x_2358); -lean_dec(x_2355); -x_2359 = l_Lean_mkNatLit(x_2358); -x_2360 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2360, 0, x_2359); -lean_ctor_set(x_2360, 1, x_3); -return x_2360; +x_2359 = lean_ctor_get(x_7, 4); +lean_inc(x_2359); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + lean_ctor_release(x_7, 2); + lean_ctor_release(x_7, 3); + lean_ctor_release(x_7, 4); + x_2360 = x_7; +} else { + lean_dec_ref(x_7); + x_2360 = lean_box(0); } +lean_inc(x_2338); +if (lean_is_scalar(x_2360)) { + x_2361 = lean_alloc_ctor(0, 5, 0); +} else { + x_2361 = x_2360; } -} -else -{ -lean_object* x_2361; lean_object* x_2362; lean_object* x_2363; -lean_dec(x_2292); -lean_dec(x_2288); -lean_dec(x_2285); -lean_dec(x_27); -lean_dec(x_2); -x_2361 = lean_unsigned_to_nat(0u); -x_2362 = l_Lean_Syntax_getArg(x_1, x_2361); -lean_dec(x_1); -x_2363 = l_Lean_Syntax_isStrLit_x3f(x_2362); -lean_dec(x_2362); +lean_ctor_set(x_2361, 0, x_2356); +lean_ctor_set(x_2361, 1, x_2338); +lean_ctor_set(x_2361, 2, x_2357); +lean_ctor_set(x_2361, 3, x_2358); +lean_ctor_set(x_2361, 4, x_2359); +x_2362 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_2362, 0, x_2361); +lean_ctor_set(x_2362, 1, x_8); +lean_ctor_set(x_2362, 2, x_9); +lean_ctor_set(x_2362, 3, x_10); +lean_ctor_set(x_2362, 4, x_11); +lean_ctor_set(x_2362, 5, x_12); +lean_ctor_set(x_2362, 6, x_13); +lean_ctor_set(x_2362, 7, x_14); +lean_ctor_set(x_2362, 8, x_15); +lean_ctor_set(x_2362, 9, x_16); +lean_ctor_set(x_2362, 10, x_1); +lean_ctor_set_uint8(x_2362, sizeof(void*)*11, x_17); +lean_ctor_set_uint8(x_2362, sizeof(void*)*11 + 1, x_18); +lean_ctor_set_uint8(x_2362, sizeof(void*)*11 + 2, x_19); +x_2363 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_2355, x_2362, x_2343); if (lean_obj_tag(x_2363) == 0) { -lean_object* x_2364; lean_object* x_2365; -x_2364 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__6; -x_2365 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2365, 0, x_2364); -lean_ctor_set(x_2365, 1, x_3); -return x_2365; +lean_object* x_2364; lean_object* x_2365; lean_object* x_2366; lean_object* x_2367; lean_object* x_2368; lean_object* x_2369; lean_object* x_2370; lean_object* x_2371; +x_2364 = lean_ctor_get(x_2363, 0); +lean_inc(x_2364); +x_2365 = lean_ctor_get(x_2363, 1); +lean_inc(x_2365); +if (lean_is_exclusive(x_2363)) { + lean_ctor_release(x_2363, 0); + lean_ctor_release(x_2363, 1); + x_2366 = x_2363; +} else { + lean_dec_ref(x_2363); + x_2366 = lean_box(0); +} +x_2367 = l_Lean_mkFVar(x_2332); +x_2368 = l_Lean_mkOptionalNode___closed__2; +x_2369 = lean_array_push(x_2368, x_2367); +x_2370 = l_Lean_LocalContext_mkLambda(x_2338, x_2369, x_2364); +lean_dec(x_2364); +lean_dec(x_2369); +if (lean_is_scalar(x_2366)) { + x_2371 = lean_alloc_ctor(0, 2, 0); +} else { + x_2371 = x_2366; +} +lean_ctor_set(x_2371, 0, x_2370); +lean_ctor_set(x_2371, 1, x_2365); +return x_2371; } else { -lean_object* x_2366; lean_object* x_2367; lean_object* x_2368; -x_2366 = lean_ctor_get(x_2363, 0); -lean_inc(x_2366); -lean_dec(x_2363); -x_2367 = l_Lean_mkStrLit(x_2366); -x_2368 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2368, 0, x_2367); -lean_ctor_set(x_2368, 1, x_3); -return x_2368; +lean_object* x_2372; lean_object* x_2373; lean_object* x_2374; lean_object* x_2375; +lean_dec(x_2338); +lean_dec(x_2332); +x_2372 = lean_ctor_get(x_2363, 0); +lean_inc(x_2372); +x_2373 = lean_ctor_get(x_2363, 1); +lean_inc(x_2373); +if (lean_is_exclusive(x_2363)) { + lean_ctor_release(x_2363, 0); + lean_ctor_release(x_2363, 1); + x_2374 = x_2363; +} else { + lean_dec_ref(x_2363); + x_2374 = lean_box(0); +} +if (lean_is_scalar(x_2374)) { + x_2375 = lean_alloc_ctor(1, 2, 0); +} else { + x_2375 = x_2374; +} +lean_ctor_set(x_2375, 0, x_2372); +lean_ctor_set(x_2375, 1, x_2373); +return x_2375; } } } else { -lean_object* x_2369; lean_object* x_2370; lean_object* x_2371; lean_object* x_2372; lean_object* x_2373; lean_object* x_2374; lean_object* x_2375; lean_object* x_2376; lean_object* x_2377; -lean_dec(x_2292); -lean_dec(x_2288); -lean_dec(x_2285); -lean_dec(x_27); +lean_dec(x_2217); +lean_dec(x_16); +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_9); +lean_dec(x_8); +lean_dec(x_7); lean_dec(x_1); -x_2369 = l_Lean_Syntax_inhabited; -x_2370 = lean_unsigned_to_nat(0u); -x_2371 = lean_array_get(x_2369, x_4, x_2370); -x_2372 = lean_unsigned_to_nat(2u); -x_2373 = lean_array_get(x_2369, x_4, x_2372); -lean_dec(x_4); -x_2374 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__1___boxed), 6, 3); -lean_closure_set(x_2374, 0, x_26); -lean_closure_set(x_2374, 1, x_2371); -lean_closure_set(x_2374, 2, x_2373); -x_2375 = l_Lean_Unhygienic_MonadQuotation___closed__4; -x_2376 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___spec__1___rarg), 4, 2); -lean_closure_set(x_2376, 0, x_2375); -lean_closure_set(x_2376, 1, x_2374); -x_2377 = l_Lean_Unhygienic_run___rarg(x_2376); -x_1 = x_2377; +x_1 = x_2219; goto _start; } } +} else { -lean_object* x_2379; lean_object* x_2380; lean_object* x_2381; lean_object* x_2382; lean_object* x_2383; lean_object* x_2384; lean_object* x_2385; lean_object* x_2386; lean_object* x_2387; -lean_dec(x_2292); -lean_dec(x_2288); -lean_dec(x_2285); -lean_dec(x_27); +lean_object* x_2377; lean_object* x_2378; lean_object* x_2379; +lean_dec(x_2007); +lean_dec(x_2003); +lean_dec(x_2000); +lean_dec(x_42); +lean_dec(x_16); +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_9); +lean_dec(x_8); +lean_dec(x_7); lean_dec(x_1); -x_2379 = l_Lean_Syntax_inhabited; -x_2380 = lean_unsigned_to_nat(0u); -x_2381 = lean_array_get(x_2379, x_4, x_2380); -x_2382 = lean_unsigned_to_nat(2u); -x_2383 = lean_array_get(x_2379, x_4, x_2382); +x_2377 = l_Lean_Syntax_inhabited; +x_2378 = lean_unsigned_to_nat(0u); +x_2379 = lean_array_get(x_2377, x_4, x_2378); lean_dec(x_4); -x_2384 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__2___boxed), 6, 3); -lean_closure_set(x_2384, 0, x_26); -lean_closure_set(x_2384, 1, x_2381); -lean_closure_set(x_2384, 2, x_2383); -x_2385 = l_Lean_Unhygienic_MonadQuotation___closed__4; -x_2386 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___spec__1___rarg), 4, 2); -lean_closure_set(x_2386, 0, x_2385); -lean_closure_set(x_2386, 1, x_2384); -x_2387 = l_Lean_Unhygienic_run___rarg(x_2386); -x_1 = x_2387; -goto _start; -} -} -else +if (lean_obj_tag(x_2379) == 3) { -lean_object* x_2389; lean_object* x_2390; lean_object* x_2391; lean_object* x_2392; lean_object* x_2393; lean_object* x_2394; lean_object* x_2395; lean_object* x_2396; lean_object* x_2397; -lean_dec(x_2292); -lean_dec(x_2288); -lean_dec(x_2285); -lean_dec(x_27); -lean_dec(x_1); -x_2389 = l_Lean_Syntax_inhabited; -x_2390 = lean_unsigned_to_nat(0u); -x_2391 = lean_array_get(x_2389, x_4, x_2390); -x_2392 = lean_unsigned_to_nat(2u); -x_2393 = lean_array_get(x_2389, x_4, x_2392); -lean_dec(x_4); -x_2394 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__3___boxed), 6, 3); -lean_closure_set(x_2394, 0, x_26); -lean_closure_set(x_2394, 1, x_2391); -lean_closure_set(x_2394, 2, x_2393); -x_2395 = l_Lean_Unhygienic_MonadQuotation___closed__4; -x_2396 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___spec__1___rarg), 4, 2); -lean_closure_set(x_2396, 0, x_2395); -lean_closure_set(x_2396, 1, x_2394); -x_2397 = l_Lean_Unhygienic_run___rarg(x_2396); -x_1 = x_2397; -goto _start; -} -} -else -{ -lean_object* x_2399; lean_object* x_2400; lean_object* x_2401; lean_object* x_2402; lean_object* x_2403; lean_object* x_2404; uint8_t x_2405; -lean_dec(x_2292); -lean_dec(x_2288); -lean_dec(x_2285); -lean_dec(x_27); -lean_dec(x_1); -x_2399 = l_Lean_Syntax_inhabited; -x_2400 = lean_unsigned_to_nat(1u); -x_2401 = lean_array_get(x_2399, x_4, x_2400); -lean_dec(x_4); -x_2402 = l_Lean_Syntax_getArgs(x_2401); -lean_dec(x_2401); -x_2403 = lean_array_get_size(x_2402); -x_2404 = lean_unsigned_to_nat(0u); -x_2405 = lean_nat_dec_eq(x_2403, x_2404); -lean_dec(x_2403); -if (x_2405 == 0) -{ -lean_object* x_2406; -x_2406 = lean_array_get(x_2399, x_2402, x_2404); -lean_dec(x_2402); -x_1 = x_2406; -goto _start; -} -else -{ -lean_object* x_2408; lean_object* x_2409; lean_object* x_2410; lean_object* x_2411; lean_object* x_2412; lean_object* x_2413; lean_object* x_2414; -lean_dec(x_2402); -lean_dec(x_2); -x_2408 = l___private_Lean_Compiler_InitAttr_2__isUnitType___closed__1; -x_2409 = lean_name_mk_string(x_26, x_2408); -x_2410 = l_Lean_unitToExpr___lambda__1___closed__3; -x_2411 = lean_name_mk_string(x_2409, x_2410); -x_2412 = lean_box(0); -x_2413 = l_Lean_mkConst(x_2411, x_2412); -x_2414 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2414, 0, x_2413); -lean_ctor_set(x_2414, 1, x_3); -return x_2414; -} -} -} -else -{ -lean_object* x_2415; lean_object* x_2416; lean_object* x_2417; lean_object* x_2418; lean_object* x_2419; lean_object* x_2420; lean_object* x_2421; lean_object* x_2422; lean_object* x_2423; lean_object* x_2424; lean_object* x_2425; -lean_dec(x_2292); -lean_dec(x_2288); -lean_dec(x_2285); -lean_dec(x_27); -lean_dec(x_1); -x_2415 = l_Lean_Syntax_inhabited; -x_2416 = lean_unsigned_to_nat(2u); -x_2417 = lean_array_get(x_2415, x_4, x_2416); -x_2418 = lean_unsigned_to_nat(4u); -x_2419 = lean_array_get(x_2415, x_4, x_2418); -x_2420 = lean_unsigned_to_nat(6u); -x_2421 = lean_array_get(x_2415, x_4, x_2420); -lean_dec(x_4); -x_2422 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__4___boxed), 7, 4); -lean_closure_set(x_2422, 0, x_26); -lean_closure_set(x_2422, 1, x_2417); -lean_closure_set(x_2422, 2, x_2419); -lean_closure_set(x_2422, 3, x_2421); -x_2423 = l_Lean_Unhygienic_MonadQuotation___closed__4; -x_2424 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___spec__1___rarg), 4, 2); -lean_closure_set(x_2424, 0, x_2423); -lean_closure_set(x_2424, 1, x_2422); -x_2425 = l_Lean_Unhygienic_run___rarg(x_2424); -x_1 = x_2425; -goto _start; -} -} -else -{ -lean_object* x_2427; lean_object* x_2428; lean_object* x_2429; lean_object* x_2430; -lean_dec(x_2292); -lean_dec(x_2288); -lean_dec(x_2285); -lean_dec(x_27); -lean_dec(x_1); -x_2427 = l_Lean_Syntax_inhabited; -x_2428 = lean_unsigned_to_nat(0u); -x_2429 = lean_array_get(x_2427, x_4, x_2428); +lean_object* x_2380; lean_object* x_2381; lean_object* x_2382; lean_object* x_2383; +x_2380 = lean_ctor_get(x_2379, 2); +lean_inc(x_2380); +x_2381 = lean_ctor_get(x_2379, 3); +lean_inc(x_2381); +lean_dec(x_2379); +x_2382 = lean_box(0); lean_inc(x_2); -x_2430 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_2429, x_2, x_3); -if (lean_obj_tag(x_2430) == 0) +x_2383 = l_Lean_Elab_Term_resolveName(x_2380, x_2381, x_2382, x_2, x_3); +if (lean_obj_tag(x_2383) == 0) { -lean_object* x_2431; lean_object* x_2432; lean_object* x_2433; lean_object* x_2434; lean_object* x_2435; lean_object* x_2436; lean_object* x_2437; lean_object* x_2438; lean_object* x_2439; -x_2431 = lean_ctor_get(x_2430, 0); -lean_inc(x_2431); -x_2432 = lean_ctor_get(x_2430, 1); -lean_inc(x_2432); -lean_dec(x_2430); -x_2433 = lean_unsigned_to_nat(1u); -x_2434 = lean_array_get(x_2427, x_4, x_2433); -lean_dec(x_4); -x_2435 = l_Lean_Syntax_getArgs(x_2434); -lean_dec(x_2434); -x_2436 = x_2435; -x_2437 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__1), 4, 2); -lean_closure_set(x_2437, 0, x_2428); -lean_closure_set(x_2437, 1, x_2436); -x_2438 = x_2437; -x_2439 = lean_apply_2(x_2438, x_2, x_2432); -if (lean_obj_tag(x_2439) == 0) +lean_object* x_2384; +x_2384 = lean_ctor_get(x_2383, 0); +lean_inc(x_2384); +if (lean_obj_tag(x_2384) == 0) { -lean_object* x_2440; lean_object* x_2441; lean_object* x_2442; lean_object* x_2443; lean_object* x_2444; -x_2440 = lean_ctor_get(x_2439, 0); -lean_inc(x_2440); -x_2441 = lean_ctor_get(x_2439, 1); -lean_inc(x_2441); -if (lean_is_exclusive(x_2439)) { - lean_ctor_release(x_2439, 0); - lean_ctor_release(x_2439, 1); - x_2442 = x_2439; -} else { - lean_dec_ref(x_2439); - x_2442 = lean_box(0); -} -x_2443 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_2440, x_2440, x_2428, x_2431); -lean_dec(x_2440); -if (lean_is_scalar(x_2442)) { - x_2444 = lean_alloc_ctor(0, 2, 0); -} else { - x_2444 = x_2442; -} -lean_ctor_set(x_2444, 0, x_2443); -lean_ctor_set(x_2444, 1, x_2441); -return x_2444; +lean_object* x_2385; lean_object* x_2386; lean_object* x_2387; lean_object* x_2388; +x_2385 = lean_ctor_get(x_2383, 1); +lean_inc(x_2385); +lean_dec(x_2383); +x_2386 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; +x_2387 = l_unreachable_x21___rarg(x_2386); +x_2388 = lean_apply_2(x_2387, x_2, x_2385); +return x_2388; } else { -lean_object* x_2445; lean_object* x_2446; lean_object* x_2447; lean_object* x_2448; -lean_dec(x_2431); -x_2445 = lean_ctor_get(x_2439, 0); -lean_inc(x_2445); -x_2446 = lean_ctor_get(x_2439, 1); -lean_inc(x_2446); -if (lean_is_exclusive(x_2439)) { - lean_ctor_release(x_2439, 0); - lean_ctor_release(x_2439, 1); - x_2447 = x_2439; -} else { - lean_dec_ref(x_2439); - x_2447 = lean_box(0); -} -if (lean_is_scalar(x_2447)) { - x_2448 = lean_alloc_ctor(1, 2, 0); -} else { - x_2448 = x_2447; -} -lean_ctor_set(x_2448, 0, x_2445); -lean_ctor_set(x_2448, 1, x_2446); -return x_2448; -} -} -else -{ -lean_object* x_2449; lean_object* x_2450; lean_object* x_2451; lean_object* x_2452; -lean_dec(x_4); +lean_object* x_2389; lean_object* x_2390; lean_dec(x_2); -x_2449 = lean_ctor_get(x_2430, 0); -lean_inc(x_2449); -x_2450 = lean_ctor_get(x_2430, 1); -lean_inc(x_2450); -if (lean_is_exclusive(x_2430)) { - lean_ctor_release(x_2430, 0); - lean_ctor_release(x_2430, 1); - x_2451 = x_2430; -} else { - lean_dec_ref(x_2430); - x_2451 = lean_box(0); -} -if (lean_is_scalar(x_2451)) { - x_2452 = lean_alloc_ctor(1, 2, 0); -} else { - x_2452 = x_2451; -} -lean_ctor_set(x_2452, 0, x_2449); -lean_ctor_set(x_2452, 1, x_2450); -return x_2452; -} -} -} -else -{ -lean_object* x_2453; lean_object* x_2454; lean_object* x_2455; lean_object* x_2456; lean_object* x_2457; uint8_t x_2458; lean_object* x_2459; lean_object* x_2460; lean_object* x_2461; lean_object* x_2462; lean_object* x_2463; -lean_dec(x_2292); -lean_dec(x_2288); -lean_dec(x_2285); -lean_dec(x_27); -lean_dec(x_1); -x_2453 = l_Lean_Syntax_inhabited; -x_2454 = lean_unsigned_to_nat(1u); -x_2455 = lean_array_get(x_2453, x_4, x_2454); -x_2456 = lean_unsigned_to_nat(0u); -x_2457 = l_Lean_Syntax_getArg(x_2455, x_2456); -x_2458 = l_Lean_Syntax_isIdent(x_2457); -x_2459 = lean_unsigned_to_nat(4u); -x_2460 = l_Lean_Syntax_getArg(x_2455, x_2459); -lean_dec(x_2455); -x_2461 = lean_unsigned_to_nat(3u); -x_2462 = lean_array_get(x_2453, x_4, x_2461); -lean_dec(x_4); -if (x_2458 == 0) -{ -lean_object* x_2511; -x_2511 = l_Lean_Syntax_getIdAt(x_2457, x_2456); -lean_dec(x_2457); -x_2463 = x_2511; -goto block_2510; -} -else -{ -lean_object* x_2512; -x_2512 = l_Lean_Syntax_getId(x_2457); -lean_dec(x_2457); -x_2463 = x_2512; -goto block_2510; -} -block_2510: -{ -lean_object* x_2464; -lean_inc(x_2); -x_2464 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_2460, x_2, x_3); -if (lean_obj_tag(x_2464) == 0) -{ -lean_object* x_2465; lean_object* x_2466; lean_object* x_2467; lean_object* x_2468; lean_object* x_2469; lean_object* x_2470; lean_object* x_2471; lean_object* x_2472; lean_object* x_2473; lean_object* x_2474; lean_object* x_2475; lean_object* x_2476; lean_object* x_2477; lean_object* x_2478; lean_object* x_2479; lean_object* x_2480; lean_object* x_2481; uint8_t x_2482; uint8_t x_2483; uint8_t x_2484; lean_object* x_2485; lean_object* x_2486; lean_object* x_2487; lean_object* x_2488; lean_object* x_2489; lean_object* x_2490; lean_object* x_2491; lean_object* x_2492; lean_object* x_2493; -x_2465 = lean_ctor_get(x_2464, 0); -lean_inc(x_2465); -x_2466 = lean_ctor_get(x_2464, 1); -lean_inc(x_2466); -lean_dec(x_2464); -x_2467 = l_Lean_Elab_Term_getLCtx(x_2, x_2466); -x_2468 = lean_ctor_get(x_2467, 0); -lean_inc(x_2468); -x_2469 = lean_ctor_get(x_2467, 1); -lean_inc(x_2469); -lean_dec(x_2467); -x_2470 = l___private_Lean_Elab_Quotation_9__exprPlaceholder; -lean_inc_n(x_2463, 2); -x_2471 = lean_local_ctx_mk_let_decl(x_2468, x_2463, x_2463, x_2470, x_2465); -x_2472 = lean_ctor_get(x_2, 0); -lean_inc(x_2472); -x_2473 = lean_ctor_get(x_2, 1); -lean_inc(x_2473); -x_2474 = lean_ctor_get(x_2, 2); -lean_inc(x_2474); -x_2475 = lean_ctor_get(x_2, 3); -lean_inc(x_2475); -x_2476 = lean_ctor_get(x_2, 4); -lean_inc(x_2476); -x_2477 = lean_ctor_get(x_2, 5); -lean_inc(x_2477); -x_2478 = lean_ctor_get(x_2, 6); -lean_inc(x_2478); -x_2479 = lean_ctor_get(x_2, 7); -lean_inc(x_2479); -x_2480 = lean_ctor_get(x_2, 8); -lean_inc(x_2480); -x_2481 = lean_ctor_get(x_2, 9); -lean_inc(x_2481); -x_2482 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_2483 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); -x_2484 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 2); -if (lean_is_exclusive(x_2)) { - lean_ctor_release(x_2, 0); - lean_ctor_release(x_2, 1); - lean_ctor_release(x_2, 2); - lean_ctor_release(x_2, 3); - lean_ctor_release(x_2, 4); - lean_ctor_release(x_2, 5); - lean_ctor_release(x_2, 6); - lean_ctor_release(x_2, 7); - lean_ctor_release(x_2, 8); - lean_ctor_release(x_2, 9); - x_2485 = x_2; -} else { - lean_dec_ref(x_2); - x_2485 = lean_box(0); -} -x_2486 = lean_ctor_get(x_2472, 0); -lean_inc(x_2486); -x_2487 = lean_ctor_get(x_2472, 2); -lean_inc(x_2487); -x_2488 = lean_ctor_get(x_2472, 3); -lean_inc(x_2488); -x_2489 = lean_ctor_get(x_2472, 4); -lean_inc(x_2489); -if (lean_is_exclusive(x_2472)) { - lean_ctor_release(x_2472, 0); - lean_ctor_release(x_2472, 1); - lean_ctor_release(x_2472, 2); - lean_ctor_release(x_2472, 3); - lean_ctor_release(x_2472, 4); - x_2490 = x_2472; -} else { - lean_dec_ref(x_2472); - x_2490 = lean_box(0); -} -lean_inc(x_2471); -if (lean_is_scalar(x_2490)) { - x_2491 = lean_alloc_ctor(0, 5, 0); -} else { - x_2491 = x_2490; -} -lean_ctor_set(x_2491, 0, x_2486); -lean_ctor_set(x_2491, 1, x_2471); -lean_ctor_set(x_2491, 2, x_2487); -lean_ctor_set(x_2491, 3, x_2488); -lean_ctor_set(x_2491, 4, x_2489); -if (lean_is_scalar(x_2485)) { - x_2492 = lean_alloc_ctor(0, 10, 3); -} else { - x_2492 = x_2485; -} -lean_ctor_set(x_2492, 0, x_2491); -lean_ctor_set(x_2492, 1, x_2473); -lean_ctor_set(x_2492, 2, x_2474); -lean_ctor_set(x_2492, 3, x_2475); -lean_ctor_set(x_2492, 4, x_2476); -lean_ctor_set(x_2492, 5, x_2477); -lean_ctor_set(x_2492, 6, x_2478); -lean_ctor_set(x_2492, 7, x_2479); -lean_ctor_set(x_2492, 8, x_2480); -lean_ctor_set(x_2492, 9, x_2481); -lean_ctor_set_uint8(x_2492, sizeof(void*)*10, x_2482); -lean_ctor_set_uint8(x_2492, sizeof(void*)*10 + 1, x_2483); -lean_ctor_set_uint8(x_2492, sizeof(void*)*10 + 2, x_2484); -x_2493 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_2462, x_2492, x_2469); -if (lean_obj_tag(x_2493) == 0) -{ -lean_object* x_2494; lean_object* x_2495; lean_object* x_2496; lean_object* x_2497; lean_object* x_2498; lean_object* x_2499; lean_object* x_2500; lean_object* x_2501; -x_2494 = lean_ctor_get(x_2493, 0); -lean_inc(x_2494); -x_2495 = lean_ctor_get(x_2493, 1); -lean_inc(x_2495); -if (lean_is_exclusive(x_2493)) { - lean_ctor_release(x_2493, 0); - lean_ctor_release(x_2493, 1); - x_2496 = x_2493; -} else { - lean_dec_ref(x_2493); - x_2496 = lean_box(0); -} -x_2497 = l_Lean_mkFVar(x_2463); -x_2498 = l_Lean_mkOptionalNode___closed__2; -x_2499 = lean_array_push(x_2498, x_2497); -x_2500 = l_Lean_LocalContext_mkLambda(x_2471, x_2499, x_2494); -lean_dec(x_2494); -lean_dec(x_2499); -if (lean_is_scalar(x_2496)) { - x_2501 = lean_alloc_ctor(0, 2, 0); -} else { - x_2501 = x_2496; -} -lean_ctor_set(x_2501, 0, x_2500); -lean_ctor_set(x_2501, 1, x_2495); -return x_2501; -} -else -{ -lean_object* x_2502; lean_object* x_2503; lean_object* x_2504; lean_object* x_2505; -lean_dec(x_2471); -lean_dec(x_2463); -x_2502 = lean_ctor_get(x_2493, 0); -lean_inc(x_2502); -x_2503 = lean_ctor_get(x_2493, 1); -lean_inc(x_2503); -if (lean_is_exclusive(x_2493)) { - lean_ctor_release(x_2493, 0); - lean_ctor_release(x_2493, 1); - x_2504 = x_2493; -} else { - lean_dec_ref(x_2493); - x_2504 = lean_box(0); -} -if (lean_is_scalar(x_2504)) { - x_2505 = lean_alloc_ctor(1, 2, 0); -} else { - x_2505 = x_2504; -} -lean_ctor_set(x_2505, 0, x_2502); -lean_ctor_set(x_2505, 1, x_2503); -return x_2505; -} -} -else -{ -lean_object* x_2506; lean_object* x_2507; lean_object* x_2508; lean_object* x_2509; -lean_dec(x_2463); -lean_dec(x_2462); -lean_dec(x_2); -x_2506 = lean_ctor_get(x_2464, 0); -lean_inc(x_2506); -x_2507 = lean_ctor_get(x_2464, 1); -lean_inc(x_2507); -if (lean_is_exclusive(x_2464)) { - lean_ctor_release(x_2464, 0); - lean_ctor_release(x_2464, 1); - x_2508 = x_2464; -} else { - lean_dec_ref(x_2464); - x_2508 = lean_box(0); -} -if (lean_is_scalar(x_2508)) { - x_2509 = lean_alloc_ctor(1, 2, 0); -} else { - x_2509 = x_2508; -} -lean_ctor_set(x_2509, 0, x_2506); -lean_ctor_set(x_2509, 1, x_2507); -return x_2509; -} -} -} -} -else -{ -lean_object* x_2513; lean_object* x_2514; lean_object* x_2515; lean_object* x_2516; lean_object* x_2517; lean_object* x_2518; lean_object* x_2519; lean_object* x_2520; uint8_t x_2521; -lean_dec(x_2292); -lean_dec(x_2288); -lean_dec(x_2285); -lean_dec(x_27); -lean_dec(x_1); -x_2513 = l_Lean_Syntax_inhabited; -x_2514 = lean_unsigned_to_nat(1u); -x_2515 = lean_array_get(x_2513, x_4, x_2514); -x_2516 = l_Lean_Syntax_getArgs(x_2515); -lean_dec(x_2515); -x_2517 = lean_unsigned_to_nat(3u); -x_2518 = lean_array_get(x_2513, x_4, x_2517); -lean_dec(x_4); -x_2519 = lean_array_get_size(x_2516); -x_2520 = lean_unsigned_to_nat(0u); -x_2521 = lean_nat_dec_eq(x_2519, x_2520); -lean_dec(x_2519); -if (x_2521 == 0) -{ -lean_object* x_2522; lean_object* x_2523; lean_object* x_2524; lean_object* x_2525; lean_object* x_2526; uint8_t x_2527; -x_2522 = lean_array_get(x_2513, x_2516, x_2520); -x_2523 = lean_name_mk_string(x_26, x_2289); -x_2524 = lean_name_mk_string(x_2523, x_2293); -x_2525 = lean_name_mk_string(x_2524, x_2306); -lean_inc(x_2525); -x_2526 = lean_name_mk_string(x_2525, x_2319); -lean_inc(x_2522); -x_2527 = l_Lean_Syntax_isOfKind(x_2522, x_2526); -lean_dec(x_2526); -if (x_2527 == 0) -{ -lean_object* x_2528; lean_object* x_2529; uint8_t x_2530; -x_2528 = l_Lean_mkHole___closed__1; -lean_inc(x_2525); -x_2529 = lean_name_mk_string(x_2525, x_2528); -lean_inc(x_2522); -x_2530 = l_Lean_Syntax_isOfKind(x_2522, x_2529); -lean_dec(x_2529); -if (x_2530 == 0) -{ -lean_object* x_2531; lean_object* x_2532; lean_object* x_2533; lean_object* x_2534; lean_object* x_2535; lean_object* x_2536; lean_object* x_2537; -x_2531 = l_Lean_Syntax_getArg(x_2522, x_2514); -lean_dec(x_2522); -x_2532 = l_Lean_Syntax_getArg(x_2531, x_2520); -x_2533 = l_Lean_Syntax_getIdAt(x_2532, x_2520); -lean_dec(x_2532); -x_2534 = l_Lean_Syntax_getArg(x_2531, x_2514); -lean_dec(x_2531); -x_2535 = l_Lean_Syntax_getArg(x_2534, x_2520); -lean_dec(x_2534); -x_2536 = l_Lean_Syntax_getArg(x_2535, x_2514); -lean_dec(x_2535); -lean_inc(x_2); -x_2537 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_2536, x_2, x_3); -if (lean_obj_tag(x_2537) == 0) -{ -lean_object* x_2538; lean_object* x_2539; lean_object* x_2540; lean_object* x_2541; lean_object* x_2542; uint8_t x_2543; lean_object* x_2544; lean_object* x_2545; lean_object* x_2546; lean_object* x_2547; lean_object* x_2548; lean_object* x_2549; lean_object* x_2550; lean_object* x_2551; lean_object* x_2552; lean_object* x_2553; lean_object* x_2554; lean_object* x_2555; lean_object* x_2556; lean_object* x_2557; lean_object* x_2558; lean_object* x_2559; lean_object* x_2560; lean_object* x_2561; lean_object* x_2562; lean_object* x_2563; lean_object* x_2564; lean_object* x_2565; lean_object* x_2566; lean_object* x_2567; lean_object* x_2568; lean_object* x_2569; lean_object* x_2570; lean_object* x_2571; uint8_t x_2572; uint8_t x_2573; uint8_t x_2574; lean_object* x_2575; lean_object* x_2576; lean_object* x_2577; lean_object* x_2578; lean_object* x_2579; lean_object* x_2580; lean_object* x_2581; lean_object* x_2582; lean_object* x_2583; -x_2538 = lean_ctor_get(x_2537, 0); -lean_inc(x_2538); -x_2539 = lean_ctor_get(x_2537, 1); -lean_inc(x_2539); -lean_dec(x_2537); -x_2540 = l_Lean_Elab_Term_getLCtx(x_2, x_2539); -x_2541 = lean_ctor_get(x_2540, 0); -lean_inc(x_2541); -x_2542 = lean_ctor_get(x_2540, 1); -lean_inc(x_2542); -lean_dec(x_2540); -x_2543 = 0; -lean_inc_n(x_2533, 2); -x_2544 = lean_local_ctx_mk_local_decl(x_2541, x_2533, x_2533, x_2538, x_2543); -x_2545 = l_Array_eraseIdx___rarg(x_2516, x_2520); -x_2546 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_2542); -x_2547 = lean_ctor_get(x_2546, 1); -lean_inc(x_2547); -lean_dec(x_2546); -x_2548 = l_Lean_Elab_Term_getMainModule___rarg(x_2547); -x_2549 = lean_ctor_get(x_2548, 1); -lean_inc(x_2549); -lean_dec(x_2548); -x_2550 = lean_name_mk_string(x_2525, x_2321); -x_2551 = l_Lean_nullKind___closed__1; -x_2552 = lean_name_mk_string(x_26, x_2551); -x_2553 = l_Array_empty___closed__1; -x_2554 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_2545, x_2545, x_2520, x_2553); -lean_dec(x_2545); -x_2555 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_2555, 0, x_2552); -lean_ctor_set(x_2555, 1, x_2554); -x_2556 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; -x_2557 = lean_array_push(x_2556, x_2555); -x_2558 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; -x_2559 = lean_array_push(x_2557, x_2558); -x_2560 = lean_array_push(x_2559, x_2518); -x_2561 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_2561, 0, x_2550); -lean_ctor_set(x_2561, 1, x_2560); -x_2562 = lean_ctor_get(x_2, 0); -lean_inc(x_2562); -x_2563 = lean_ctor_get(x_2, 1); -lean_inc(x_2563); -x_2564 = lean_ctor_get(x_2, 2); -lean_inc(x_2564); -x_2565 = lean_ctor_get(x_2, 3); -lean_inc(x_2565); -x_2566 = lean_ctor_get(x_2, 4); -lean_inc(x_2566); -x_2567 = lean_ctor_get(x_2, 5); -lean_inc(x_2567); -x_2568 = lean_ctor_get(x_2, 6); -lean_inc(x_2568); -x_2569 = lean_ctor_get(x_2, 7); -lean_inc(x_2569); -x_2570 = lean_ctor_get(x_2, 8); -lean_inc(x_2570); -x_2571 = lean_ctor_get(x_2, 9); -lean_inc(x_2571); -x_2572 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_2573 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); -x_2574 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 2); -if (lean_is_exclusive(x_2)) { - lean_ctor_release(x_2, 0); - lean_ctor_release(x_2, 1); - lean_ctor_release(x_2, 2); - lean_ctor_release(x_2, 3); - lean_ctor_release(x_2, 4); - lean_ctor_release(x_2, 5); - lean_ctor_release(x_2, 6); - lean_ctor_release(x_2, 7); - lean_ctor_release(x_2, 8); - lean_ctor_release(x_2, 9); - x_2575 = x_2; -} else { - lean_dec_ref(x_2); - x_2575 = lean_box(0); -} -x_2576 = lean_ctor_get(x_2562, 0); -lean_inc(x_2576); -x_2577 = lean_ctor_get(x_2562, 2); -lean_inc(x_2577); -x_2578 = lean_ctor_get(x_2562, 3); -lean_inc(x_2578); -x_2579 = lean_ctor_get(x_2562, 4); -lean_inc(x_2579); -if (lean_is_exclusive(x_2562)) { - lean_ctor_release(x_2562, 0); - lean_ctor_release(x_2562, 1); - lean_ctor_release(x_2562, 2); - lean_ctor_release(x_2562, 3); - lean_ctor_release(x_2562, 4); - x_2580 = x_2562; -} else { - lean_dec_ref(x_2562); - x_2580 = lean_box(0); -} -lean_inc(x_2544); -if (lean_is_scalar(x_2580)) { - x_2581 = lean_alloc_ctor(0, 5, 0); -} else { - x_2581 = x_2580; -} -lean_ctor_set(x_2581, 0, x_2576); -lean_ctor_set(x_2581, 1, x_2544); -lean_ctor_set(x_2581, 2, x_2577); -lean_ctor_set(x_2581, 3, x_2578); -lean_ctor_set(x_2581, 4, x_2579); -if (lean_is_scalar(x_2575)) { - x_2582 = lean_alloc_ctor(0, 10, 3); -} else { - x_2582 = x_2575; -} -lean_ctor_set(x_2582, 0, x_2581); -lean_ctor_set(x_2582, 1, x_2563); -lean_ctor_set(x_2582, 2, x_2564); -lean_ctor_set(x_2582, 3, x_2565); -lean_ctor_set(x_2582, 4, x_2566); -lean_ctor_set(x_2582, 5, x_2567); -lean_ctor_set(x_2582, 6, x_2568); -lean_ctor_set(x_2582, 7, x_2569); -lean_ctor_set(x_2582, 8, x_2570); -lean_ctor_set(x_2582, 9, x_2571); -lean_ctor_set_uint8(x_2582, sizeof(void*)*10, x_2572); -lean_ctor_set_uint8(x_2582, sizeof(void*)*10 + 1, x_2573); -lean_ctor_set_uint8(x_2582, sizeof(void*)*10 + 2, x_2574); -x_2583 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_2561, x_2582, x_2549); -if (lean_obj_tag(x_2583) == 0) -{ -lean_object* x_2584; lean_object* x_2585; lean_object* x_2586; lean_object* x_2587; lean_object* x_2588; lean_object* x_2589; lean_object* x_2590; lean_object* x_2591; -x_2584 = lean_ctor_get(x_2583, 0); -lean_inc(x_2584); -x_2585 = lean_ctor_get(x_2583, 1); -lean_inc(x_2585); -if (lean_is_exclusive(x_2583)) { - lean_ctor_release(x_2583, 0); - lean_ctor_release(x_2583, 1); - x_2586 = x_2583; -} else { - lean_dec_ref(x_2583); - x_2586 = lean_box(0); -} -x_2587 = l_Lean_mkFVar(x_2533); -x_2588 = l_Lean_mkOptionalNode___closed__2; -x_2589 = lean_array_push(x_2588, x_2587); -x_2590 = l_Lean_LocalContext_mkLambda(x_2544, x_2589, x_2584); -lean_dec(x_2584); -lean_dec(x_2589); -if (lean_is_scalar(x_2586)) { - x_2591 = lean_alloc_ctor(0, 2, 0); -} else { - x_2591 = x_2586; -} -lean_ctor_set(x_2591, 0, x_2590); -lean_ctor_set(x_2591, 1, x_2585); -return x_2591; -} -else -{ -lean_object* x_2592; lean_object* x_2593; lean_object* x_2594; lean_object* x_2595; -lean_dec(x_2544); -lean_dec(x_2533); -x_2592 = lean_ctor_get(x_2583, 0); -lean_inc(x_2592); -x_2593 = lean_ctor_get(x_2583, 1); -lean_inc(x_2593); -if (lean_is_exclusive(x_2583)) { - lean_ctor_release(x_2583, 0); - lean_ctor_release(x_2583, 1); - x_2594 = x_2583; -} else { - lean_dec_ref(x_2583); - x_2594 = lean_box(0); -} -if (lean_is_scalar(x_2594)) { - x_2595 = lean_alloc_ctor(1, 2, 0); -} else { - x_2595 = x_2594; -} -lean_ctor_set(x_2595, 0, x_2592); -lean_ctor_set(x_2595, 1, x_2593); -return x_2595; -} -} -else -{ -lean_object* x_2596; lean_object* x_2597; lean_object* x_2598; lean_object* x_2599; -lean_dec(x_2533); -lean_dec(x_2525); -lean_dec(x_2518); -lean_dec(x_2516); -lean_dec(x_2); -x_2596 = lean_ctor_get(x_2537, 0); -lean_inc(x_2596); -x_2597 = lean_ctor_get(x_2537, 1); -lean_inc(x_2597); -if (lean_is_exclusive(x_2537)) { - lean_ctor_release(x_2537, 0); - lean_ctor_release(x_2537, 1); - x_2598 = x_2537; -} else { - lean_dec_ref(x_2537); - x_2598 = lean_box(0); -} -if (lean_is_scalar(x_2598)) { - x_2599 = lean_alloc_ctor(1, 2, 0); -} else { - x_2599 = x_2598; -} -lean_ctor_set(x_2599, 0, x_2596); -lean_ctor_set(x_2599, 1, x_2597); -return x_2599; -} -} -else -{ -lean_object* x_2600; lean_object* x_2601; lean_object* x_2602; lean_object* x_2603; lean_object* x_2604; lean_object* x_2605; uint8_t x_2606; lean_object* x_2607; lean_object* x_2608; lean_object* x_2609; lean_object* x_2610; lean_object* x_2611; lean_object* x_2612; lean_object* x_2613; lean_object* x_2614; lean_object* x_2615; lean_object* x_2616; lean_object* x_2617; lean_object* x_2618; lean_object* x_2619; lean_object* x_2620; lean_object* x_2621; lean_object* x_2622; lean_object* x_2623; lean_object* x_2624; lean_object* x_2625; lean_object* x_2626; lean_object* x_2627; lean_object* x_2628; lean_object* x_2629; lean_object* x_2630; lean_object* x_2631; lean_object* x_2632; lean_object* x_2633; lean_object* x_2634; uint8_t x_2635; uint8_t x_2636; uint8_t x_2637; lean_object* x_2638; lean_object* x_2639; lean_object* x_2640; lean_object* x_2641; lean_object* x_2642; lean_object* x_2643; lean_object* x_2644; lean_object* x_2645; lean_object* x_2646; -lean_dec(x_2522); -x_2600 = l_Lean_Meta_rewriteCore___lambda__1___closed__4; -x_2601 = lean_name_mk_string(x_26, x_2600); -x_2602 = l_Lean_Elab_Term_getLCtx(x_2, x_3); -x_2603 = lean_ctor_get(x_2602, 0); -lean_inc(x_2603); -x_2604 = lean_ctor_get(x_2602, 1); -lean_inc(x_2604); -lean_dec(x_2602); -x_2605 = l___private_Lean_Elab_Quotation_9__exprPlaceholder; -x_2606 = 0; -lean_inc_n(x_2601, 2); -x_2607 = lean_local_ctx_mk_local_decl(x_2603, x_2601, x_2601, x_2605, x_2606); -x_2608 = l_Array_eraseIdx___rarg(x_2516, x_2520); -x_2609 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_2604); -x_2610 = lean_ctor_get(x_2609, 1); -lean_inc(x_2610); -lean_dec(x_2609); -x_2611 = l_Lean_Elab_Term_getMainModule___rarg(x_2610); -x_2612 = lean_ctor_get(x_2611, 1); -lean_inc(x_2612); -lean_dec(x_2611); -x_2613 = lean_name_mk_string(x_2525, x_2321); -x_2614 = l_Lean_nullKind___closed__1; -x_2615 = lean_name_mk_string(x_26, x_2614); -x_2616 = l_Array_empty___closed__1; -x_2617 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_2608, x_2608, x_2520, x_2616); -lean_dec(x_2608); -x_2618 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_2618, 0, x_2615); -lean_ctor_set(x_2618, 1, x_2617); -x_2619 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; -x_2620 = lean_array_push(x_2619, x_2618); -x_2621 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; -x_2622 = lean_array_push(x_2620, x_2621); -x_2623 = lean_array_push(x_2622, x_2518); -x_2624 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_2624, 0, x_2613); -lean_ctor_set(x_2624, 1, x_2623); -x_2625 = lean_ctor_get(x_2, 0); -lean_inc(x_2625); -x_2626 = lean_ctor_get(x_2, 1); -lean_inc(x_2626); -x_2627 = lean_ctor_get(x_2, 2); -lean_inc(x_2627); -x_2628 = lean_ctor_get(x_2, 3); -lean_inc(x_2628); -x_2629 = lean_ctor_get(x_2, 4); -lean_inc(x_2629); -x_2630 = lean_ctor_get(x_2, 5); -lean_inc(x_2630); -x_2631 = lean_ctor_get(x_2, 6); -lean_inc(x_2631); -x_2632 = lean_ctor_get(x_2, 7); -lean_inc(x_2632); -x_2633 = lean_ctor_get(x_2, 8); -lean_inc(x_2633); -x_2634 = lean_ctor_get(x_2, 9); -lean_inc(x_2634); -x_2635 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_2636 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); -x_2637 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 2); -if (lean_is_exclusive(x_2)) { - lean_ctor_release(x_2, 0); - lean_ctor_release(x_2, 1); - lean_ctor_release(x_2, 2); - lean_ctor_release(x_2, 3); - lean_ctor_release(x_2, 4); - lean_ctor_release(x_2, 5); - lean_ctor_release(x_2, 6); - lean_ctor_release(x_2, 7); - lean_ctor_release(x_2, 8); - lean_ctor_release(x_2, 9); - x_2638 = x_2; -} else { - lean_dec_ref(x_2); - x_2638 = lean_box(0); -} -x_2639 = lean_ctor_get(x_2625, 0); -lean_inc(x_2639); -x_2640 = lean_ctor_get(x_2625, 2); -lean_inc(x_2640); -x_2641 = lean_ctor_get(x_2625, 3); -lean_inc(x_2641); -x_2642 = lean_ctor_get(x_2625, 4); -lean_inc(x_2642); -if (lean_is_exclusive(x_2625)) { - lean_ctor_release(x_2625, 0); - lean_ctor_release(x_2625, 1); - lean_ctor_release(x_2625, 2); - lean_ctor_release(x_2625, 3); - lean_ctor_release(x_2625, 4); - x_2643 = x_2625; -} else { - lean_dec_ref(x_2625); - x_2643 = lean_box(0); -} -lean_inc(x_2607); -if (lean_is_scalar(x_2643)) { - x_2644 = lean_alloc_ctor(0, 5, 0); -} else { - x_2644 = x_2643; -} -lean_ctor_set(x_2644, 0, x_2639); -lean_ctor_set(x_2644, 1, x_2607); -lean_ctor_set(x_2644, 2, x_2640); -lean_ctor_set(x_2644, 3, x_2641); -lean_ctor_set(x_2644, 4, x_2642); -if (lean_is_scalar(x_2638)) { - x_2645 = lean_alloc_ctor(0, 10, 3); -} else { - x_2645 = x_2638; -} -lean_ctor_set(x_2645, 0, x_2644); -lean_ctor_set(x_2645, 1, x_2626); -lean_ctor_set(x_2645, 2, x_2627); -lean_ctor_set(x_2645, 3, x_2628); -lean_ctor_set(x_2645, 4, x_2629); -lean_ctor_set(x_2645, 5, x_2630); -lean_ctor_set(x_2645, 6, x_2631); -lean_ctor_set(x_2645, 7, x_2632); -lean_ctor_set(x_2645, 8, x_2633); -lean_ctor_set(x_2645, 9, x_2634); -lean_ctor_set_uint8(x_2645, sizeof(void*)*10, x_2635); -lean_ctor_set_uint8(x_2645, sizeof(void*)*10 + 1, x_2636); -lean_ctor_set_uint8(x_2645, sizeof(void*)*10 + 2, x_2637); -x_2646 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_2624, x_2645, x_2612); -if (lean_obj_tag(x_2646) == 0) -{ -lean_object* x_2647; lean_object* x_2648; lean_object* x_2649; lean_object* x_2650; lean_object* x_2651; lean_object* x_2652; lean_object* x_2653; lean_object* x_2654; -x_2647 = lean_ctor_get(x_2646, 0); -lean_inc(x_2647); -x_2648 = lean_ctor_get(x_2646, 1); -lean_inc(x_2648); -if (lean_is_exclusive(x_2646)) { - lean_ctor_release(x_2646, 0); - lean_ctor_release(x_2646, 1); - x_2649 = x_2646; -} else { - lean_dec_ref(x_2646); - x_2649 = lean_box(0); -} -x_2650 = l_Lean_mkFVar(x_2601); -x_2651 = l_Lean_mkOptionalNode___closed__2; -x_2652 = lean_array_push(x_2651, x_2650); -x_2653 = l_Lean_LocalContext_mkLambda(x_2607, x_2652, x_2647); -lean_dec(x_2647); -lean_dec(x_2652); -if (lean_is_scalar(x_2649)) { - x_2654 = lean_alloc_ctor(0, 2, 0); -} else { - x_2654 = x_2649; -} -lean_ctor_set(x_2654, 0, x_2653); -lean_ctor_set(x_2654, 1, x_2648); -return x_2654; -} -else -{ -lean_object* x_2655; lean_object* x_2656; lean_object* x_2657; lean_object* x_2658; -lean_dec(x_2607); -lean_dec(x_2601); -x_2655 = lean_ctor_get(x_2646, 0); -lean_inc(x_2655); -x_2656 = lean_ctor_get(x_2646, 1); -lean_inc(x_2656); -if (lean_is_exclusive(x_2646)) { - lean_ctor_release(x_2646, 0); - lean_ctor_release(x_2646, 1); - x_2657 = x_2646; -} else { - lean_dec_ref(x_2646); - x_2657 = lean_box(0); -} -if (lean_is_scalar(x_2657)) { - x_2658 = lean_alloc_ctor(1, 2, 0); -} else { - x_2658 = x_2657; -} -lean_ctor_set(x_2658, 0, x_2655); -lean_ctor_set(x_2658, 1, x_2656); -return x_2658; -} -} -} -else -{ -lean_object* x_2659; lean_object* x_2660; lean_object* x_2661; lean_object* x_2662; lean_object* x_2663; uint8_t x_2664; lean_object* x_2665; lean_object* x_2666; lean_object* x_2667; lean_object* x_2668; lean_object* x_2669; lean_object* x_2670; lean_object* x_2671; lean_object* x_2672; lean_object* x_2673; lean_object* x_2674; lean_object* x_2675; lean_object* x_2676; lean_object* x_2677; lean_object* x_2678; lean_object* x_2679; lean_object* x_2680; lean_object* x_2681; lean_object* x_2682; lean_object* x_2683; lean_object* x_2684; lean_object* x_2685; lean_object* x_2686; lean_object* x_2687; lean_object* x_2688; lean_object* x_2689; lean_object* x_2690; lean_object* x_2691; lean_object* x_2692; uint8_t x_2693; uint8_t x_2694; uint8_t x_2695; lean_object* x_2696; lean_object* x_2697; lean_object* x_2698; lean_object* x_2699; lean_object* x_2700; lean_object* x_2701; lean_object* x_2702; lean_object* x_2703; lean_object* x_2704; -x_2659 = l_Lean_Syntax_getIdAt(x_2522, x_2520); -lean_dec(x_2522); -x_2660 = l_Lean_Elab_Term_getLCtx(x_2, x_3); -x_2661 = lean_ctor_get(x_2660, 0); -lean_inc(x_2661); -x_2662 = lean_ctor_get(x_2660, 1); -lean_inc(x_2662); -lean_dec(x_2660); -x_2663 = l___private_Lean_Elab_Quotation_9__exprPlaceholder; -x_2664 = 0; -lean_inc_n(x_2659, 2); -x_2665 = lean_local_ctx_mk_local_decl(x_2661, x_2659, x_2659, x_2663, x_2664); -x_2666 = l_Array_eraseIdx___rarg(x_2516, x_2520); -x_2667 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_2662); -x_2668 = lean_ctor_get(x_2667, 1); -lean_inc(x_2668); -lean_dec(x_2667); -x_2669 = l_Lean_Elab_Term_getMainModule___rarg(x_2668); -x_2670 = lean_ctor_get(x_2669, 1); -lean_inc(x_2670); -lean_dec(x_2669); -x_2671 = lean_name_mk_string(x_2525, x_2321); -x_2672 = l_Lean_nullKind___closed__1; -x_2673 = lean_name_mk_string(x_26, x_2672); -x_2674 = l_Array_empty___closed__1; -x_2675 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_2666, x_2666, x_2520, x_2674); -lean_dec(x_2666); -x_2676 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_2676, 0, x_2673); -lean_ctor_set(x_2676, 1, x_2675); -x_2677 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; -x_2678 = lean_array_push(x_2677, x_2676); -x_2679 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; -x_2680 = lean_array_push(x_2678, x_2679); -x_2681 = lean_array_push(x_2680, x_2518); -x_2682 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_2682, 0, x_2671); -lean_ctor_set(x_2682, 1, x_2681); -x_2683 = lean_ctor_get(x_2, 0); -lean_inc(x_2683); -x_2684 = lean_ctor_get(x_2, 1); -lean_inc(x_2684); -x_2685 = lean_ctor_get(x_2, 2); -lean_inc(x_2685); -x_2686 = lean_ctor_get(x_2, 3); -lean_inc(x_2686); -x_2687 = lean_ctor_get(x_2, 4); -lean_inc(x_2687); -x_2688 = lean_ctor_get(x_2, 5); -lean_inc(x_2688); -x_2689 = lean_ctor_get(x_2, 6); -lean_inc(x_2689); -x_2690 = lean_ctor_get(x_2, 7); -lean_inc(x_2690); -x_2691 = lean_ctor_get(x_2, 8); -lean_inc(x_2691); -x_2692 = lean_ctor_get(x_2, 9); -lean_inc(x_2692); -x_2693 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_2694 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); -x_2695 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 2); -if (lean_is_exclusive(x_2)) { - lean_ctor_release(x_2, 0); - lean_ctor_release(x_2, 1); - lean_ctor_release(x_2, 2); - lean_ctor_release(x_2, 3); - lean_ctor_release(x_2, 4); - lean_ctor_release(x_2, 5); - lean_ctor_release(x_2, 6); - lean_ctor_release(x_2, 7); - lean_ctor_release(x_2, 8); - lean_ctor_release(x_2, 9); - x_2696 = x_2; -} else { - lean_dec_ref(x_2); - x_2696 = lean_box(0); -} -x_2697 = lean_ctor_get(x_2683, 0); -lean_inc(x_2697); -x_2698 = lean_ctor_get(x_2683, 2); -lean_inc(x_2698); -x_2699 = lean_ctor_get(x_2683, 3); -lean_inc(x_2699); -x_2700 = lean_ctor_get(x_2683, 4); -lean_inc(x_2700); -if (lean_is_exclusive(x_2683)) { - lean_ctor_release(x_2683, 0); - lean_ctor_release(x_2683, 1); - lean_ctor_release(x_2683, 2); - lean_ctor_release(x_2683, 3); - lean_ctor_release(x_2683, 4); - x_2701 = x_2683; -} else { - lean_dec_ref(x_2683); - x_2701 = lean_box(0); -} -lean_inc(x_2665); -if (lean_is_scalar(x_2701)) { - x_2702 = lean_alloc_ctor(0, 5, 0); -} else { - x_2702 = x_2701; -} -lean_ctor_set(x_2702, 0, x_2697); -lean_ctor_set(x_2702, 1, x_2665); -lean_ctor_set(x_2702, 2, x_2698); -lean_ctor_set(x_2702, 3, x_2699); -lean_ctor_set(x_2702, 4, x_2700); -if (lean_is_scalar(x_2696)) { - x_2703 = lean_alloc_ctor(0, 10, 3); -} else { - x_2703 = x_2696; -} -lean_ctor_set(x_2703, 0, x_2702); -lean_ctor_set(x_2703, 1, x_2684); -lean_ctor_set(x_2703, 2, x_2685); -lean_ctor_set(x_2703, 3, x_2686); -lean_ctor_set(x_2703, 4, x_2687); -lean_ctor_set(x_2703, 5, x_2688); -lean_ctor_set(x_2703, 6, x_2689); -lean_ctor_set(x_2703, 7, x_2690); -lean_ctor_set(x_2703, 8, x_2691); -lean_ctor_set(x_2703, 9, x_2692); -lean_ctor_set_uint8(x_2703, sizeof(void*)*10, x_2693); -lean_ctor_set_uint8(x_2703, sizeof(void*)*10 + 1, x_2694); -lean_ctor_set_uint8(x_2703, sizeof(void*)*10 + 2, x_2695); -x_2704 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_2682, x_2703, x_2670); -if (lean_obj_tag(x_2704) == 0) -{ -lean_object* x_2705; lean_object* x_2706; lean_object* x_2707; lean_object* x_2708; lean_object* x_2709; lean_object* x_2710; lean_object* x_2711; lean_object* x_2712; -x_2705 = lean_ctor_get(x_2704, 0); -lean_inc(x_2705); -x_2706 = lean_ctor_get(x_2704, 1); -lean_inc(x_2706); -if (lean_is_exclusive(x_2704)) { - lean_ctor_release(x_2704, 0); - lean_ctor_release(x_2704, 1); - x_2707 = x_2704; -} else { - lean_dec_ref(x_2704); - x_2707 = lean_box(0); -} -x_2708 = l_Lean_mkFVar(x_2659); -x_2709 = l_Lean_mkOptionalNode___closed__2; -x_2710 = lean_array_push(x_2709, x_2708); -x_2711 = l_Lean_LocalContext_mkLambda(x_2665, x_2710, x_2705); -lean_dec(x_2705); -lean_dec(x_2710); -if (lean_is_scalar(x_2707)) { - x_2712 = lean_alloc_ctor(0, 2, 0); -} else { - x_2712 = x_2707; -} -lean_ctor_set(x_2712, 0, x_2711); -lean_ctor_set(x_2712, 1, x_2706); -return x_2712; -} -else -{ -lean_object* x_2713; lean_object* x_2714; lean_object* x_2715; lean_object* x_2716; -lean_dec(x_2665); -lean_dec(x_2659); -x_2713 = lean_ctor_get(x_2704, 0); -lean_inc(x_2713); -x_2714 = lean_ctor_get(x_2704, 1); -lean_inc(x_2714); -if (lean_is_exclusive(x_2704)) { - lean_ctor_release(x_2704, 0); - lean_ctor_release(x_2704, 1); - x_2715 = x_2704; -} else { - lean_dec_ref(x_2704); - x_2715 = lean_box(0); -} -if (lean_is_scalar(x_2715)) { - x_2716 = lean_alloc_ctor(1, 2, 0); -} else { - x_2716 = x_2715; -} -lean_ctor_set(x_2716, 0, x_2713); -lean_ctor_set(x_2716, 1, x_2714); -return x_2716; -} -} -} -else -{ -lean_dec(x_2516); -x_1 = x_2518; -goto _start; -} -} -} -else -{ -lean_object* x_2718; lean_object* x_2719; lean_object* x_2720; -lean_dec(x_2292); -lean_dec(x_2288); -lean_dec(x_2285); -lean_dec(x_27); -x_2718 = l_Lean_Syntax_inhabited; -x_2719 = lean_unsigned_to_nat(0u); -x_2720 = lean_array_get(x_2718, x_4, x_2719); -lean_dec(x_4); -if (lean_obj_tag(x_2720) == 3) -{ -lean_object* x_2721; lean_object* x_2722; lean_object* x_2723; lean_object* x_2724; -x_2721 = lean_ctor_get(x_2720, 2); -lean_inc(x_2721); -x_2722 = lean_ctor_get(x_2720, 3); -lean_inc(x_2722); -lean_dec(x_2720); -x_2723 = lean_box(0); -lean_inc(x_2); -x_2724 = l_Lean_Elab_Term_resolveName(x_1, x_2721, x_2722, x_2723, x_2, x_3); -lean_dec(x_1); -if (lean_obj_tag(x_2724) == 0) -{ -lean_object* x_2725; -x_2725 = lean_ctor_get(x_2724, 0); -lean_inc(x_2725); -if (lean_obj_tag(x_2725) == 0) -{ -lean_object* x_2726; lean_object* x_2727; lean_object* x_2728; lean_object* x_2729; -x_2726 = lean_ctor_get(x_2724, 1); -lean_inc(x_2726); -lean_dec(x_2724); -x_2727 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; -x_2728 = l_unreachable_x21___rarg(x_2727); -x_2729 = lean_apply_2(x_2728, x_2, x_2726); -return x_2729; -} -else -{ -lean_object* x_2730; lean_object* x_2731; -lean_dec(x_2); -x_2730 = lean_ctor_get(x_2725, 0); -lean_inc(x_2730); -lean_dec(x_2725); -x_2731 = lean_ctor_get(x_2730, 0); -lean_inc(x_2731); -switch (lean_obj_tag(x_2731)) { +x_2389 = lean_ctor_get(x_2384, 0); +lean_inc(x_2389); +lean_dec(x_2384); +x_2390 = lean_ctor_get(x_2389, 0); +lean_inc(x_2390); +switch (lean_obj_tag(x_2390)) { case 0: { -lean_object* x_2732; lean_object* x_2733; lean_object* x_2734; lean_object* x_2735; lean_object* x_2736; -x_2732 = lean_ctor_get(x_2724, 1); -lean_inc(x_2732); -if (lean_is_exclusive(x_2724)) { - lean_ctor_release(x_2724, 0); - lean_ctor_release(x_2724, 1); - x_2733 = x_2724; +lean_object* x_2391; lean_object* x_2392; lean_object* x_2393; lean_object* x_2394; lean_object* x_2395; +x_2391 = lean_ctor_get(x_2383, 1); +lean_inc(x_2391); +if (lean_is_exclusive(x_2383)) { + lean_ctor_release(x_2383, 0); + lean_ctor_release(x_2383, 1); + x_2392 = x_2383; } else { - lean_dec_ref(x_2724); - x_2733 = lean_box(0); + lean_dec_ref(x_2383); + x_2392 = lean_box(0); } -x_2734 = lean_ctor_get(x_2730, 1); -lean_inc(x_2734); -lean_dec(x_2730); -x_2735 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__2(x_26, x_2731, x_2734); -if (lean_is_scalar(x_2733)) { - x_2736 = lean_alloc_ctor(0, 2, 0); +x_2393 = lean_ctor_get(x_2389, 1); +lean_inc(x_2393); +lean_dec(x_2389); +x_2394 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__2(x_41, x_2390, x_2393); +if (lean_is_scalar(x_2392)) { + x_2395 = lean_alloc_ctor(0, 2, 0); } else { - x_2736 = x_2733; + x_2395 = x_2392; } -lean_ctor_set(x_2736, 0, x_2735); -lean_ctor_set(x_2736, 1, x_2732); -return x_2736; +lean_ctor_set(x_2395, 0, x_2394); +lean_ctor_set(x_2395, 1, x_2391); +return x_2395; } case 1: { -lean_object* x_2737; lean_object* x_2738; lean_object* x_2739; lean_object* x_2740; lean_object* x_2741; -x_2737 = lean_ctor_get(x_2724, 1); -lean_inc(x_2737); -if (lean_is_exclusive(x_2724)) { - lean_ctor_release(x_2724, 0); - lean_ctor_release(x_2724, 1); - x_2738 = x_2724; +lean_object* x_2396; lean_object* x_2397; lean_object* x_2398; lean_object* x_2399; lean_object* x_2400; +x_2396 = lean_ctor_get(x_2383, 1); +lean_inc(x_2396); +if (lean_is_exclusive(x_2383)) { + lean_ctor_release(x_2383, 0); + lean_ctor_release(x_2383, 1); + x_2397 = x_2383; } else { - lean_dec_ref(x_2724); - x_2738 = lean_box(0); + lean_dec_ref(x_2383); + x_2397 = lean_box(0); } -x_2739 = lean_ctor_get(x_2730, 1); -lean_inc(x_2739); -lean_dec(x_2730); -x_2740 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__3(x_26, x_2731, x_2739); -if (lean_is_scalar(x_2738)) { - x_2741 = lean_alloc_ctor(0, 2, 0); +x_2398 = lean_ctor_get(x_2389, 1); +lean_inc(x_2398); +lean_dec(x_2389); +x_2399 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__3(x_41, x_2390, x_2398); +if (lean_is_scalar(x_2397)) { + x_2400 = lean_alloc_ctor(0, 2, 0); } else { - x_2741 = x_2738; + x_2400 = x_2397; } -lean_ctor_set(x_2741, 0, x_2740); -lean_ctor_set(x_2741, 1, x_2737); -return x_2741; +lean_ctor_set(x_2400, 0, x_2399); +lean_ctor_set(x_2400, 1, x_2396); +return x_2400; } case 2: { -lean_object* x_2742; lean_object* x_2743; lean_object* x_2744; lean_object* x_2745; lean_object* x_2746; -x_2742 = lean_ctor_get(x_2724, 1); -lean_inc(x_2742); -if (lean_is_exclusive(x_2724)) { - lean_ctor_release(x_2724, 0); - lean_ctor_release(x_2724, 1); - x_2743 = x_2724; +lean_object* x_2401; lean_object* x_2402; lean_object* x_2403; lean_object* x_2404; lean_object* x_2405; +x_2401 = lean_ctor_get(x_2383, 1); +lean_inc(x_2401); +if (lean_is_exclusive(x_2383)) { + lean_ctor_release(x_2383, 0); + lean_ctor_release(x_2383, 1); + x_2402 = x_2383; } else { - lean_dec_ref(x_2724); - x_2743 = lean_box(0); + lean_dec_ref(x_2383); + x_2402 = lean_box(0); } -x_2744 = lean_ctor_get(x_2730, 1); -lean_inc(x_2744); -lean_dec(x_2730); -x_2745 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__4(x_26, x_2731, x_2744); -if (lean_is_scalar(x_2743)) { - x_2746 = lean_alloc_ctor(0, 2, 0); +x_2403 = lean_ctor_get(x_2389, 1); +lean_inc(x_2403); +lean_dec(x_2389); +x_2404 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__4(x_41, x_2390, x_2403); +if (lean_is_scalar(x_2402)) { + x_2405 = lean_alloc_ctor(0, 2, 0); } else { - x_2746 = x_2743; + x_2405 = x_2402; } -lean_ctor_set(x_2746, 0, x_2745); -lean_ctor_set(x_2746, 1, x_2742); -return x_2746; +lean_ctor_set(x_2405, 0, x_2404); +lean_ctor_set(x_2405, 1, x_2401); +return x_2405; } case 3: { -lean_object* x_2747; lean_object* x_2748; lean_object* x_2749; lean_object* x_2750; lean_object* x_2751; -x_2747 = lean_ctor_get(x_2724, 1); -lean_inc(x_2747); -if (lean_is_exclusive(x_2724)) { - lean_ctor_release(x_2724, 0); - lean_ctor_release(x_2724, 1); - x_2748 = x_2724; +lean_object* x_2406; lean_object* x_2407; lean_object* x_2408; lean_object* x_2409; lean_object* x_2410; +x_2406 = lean_ctor_get(x_2383, 1); +lean_inc(x_2406); +if (lean_is_exclusive(x_2383)) { + lean_ctor_release(x_2383, 0); + lean_ctor_release(x_2383, 1); + x_2407 = x_2383; } else { - lean_dec_ref(x_2724); - x_2748 = lean_box(0); + lean_dec_ref(x_2383); + x_2407 = lean_box(0); } -x_2749 = lean_ctor_get(x_2730, 1); -lean_inc(x_2749); -lean_dec(x_2730); -x_2750 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__5(x_26, x_2731, x_2749); -if (lean_is_scalar(x_2748)) { - x_2751 = lean_alloc_ctor(0, 2, 0); +x_2408 = lean_ctor_get(x_2389, 1); +lean_inc(x_2408); +lean_dec(x_2389); +x_2409 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__5(x_41, x_2390, x_2408); +if (lean_is_scalar(x_2407)) { + x_2410 = lean_alloc_ctor(0, 2, 0); } else { - x_2751 = x_2748; + x_2410 = x_2407; } -lean_ctor_set(x_2751, 0, x_2750); -lean_ctor_set(x_2751, 1, x_2747); -return x_2751; +lean_ctor_set(x_2410, 0, x_2409); +lean_ctor_set(x_2410, 1, x_2406); +return x_2410; } case 4: { -lean_object* x_2752; lean_object* x_2753; lean_object* x_2754; lean_object* x_2755; lean_object* x_2756; lean_object* x_2757; lean_object* x_2758; -x_2752 = lean_ctor_get(x_2724, 1); -lean_inc(x_2752); -if (lean_is_exclusive(x_2724)) { - lean_ctor_release(x_2724, 0); - lean_ctor_release(x_2724, 1); - x_2753 = x_2724; +lean_object* x_2411; lean_object* x_2412; lean_object* x_2413; lean_object* x_2414; lean_object* x_2415; lean_object* x_2416; lean_object* x_2417; +x_2411 = lean_ctor_get(x_2383, 1); +lean_inc(x_2411); +if (lean_is_exclusive(x_2383)) { + lean_ctor_release(x_2383, 0); + lean_ctor_release(x_2383, 1); + x_2412 = x_2383; } else { - lean_dec_ref(x_2724); - x_2753 = lean_box(0); + lean_dec_ref(x_2383); + x_2412 = lean_box(0); } -x_2754 = lean_ctor_get(x_2730, 1); -lean_inc(x_2754); -lean_dec(x_2730); -x_2755 = lean_ctor_get(x_2731, 0); -lean_inc(x_2755); -lean_dec(x_2731); -x_2756 = l_Lean_mkConst(x_2755, x_2723); -x_2757 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__6(x_26, x_2756, x_2754); -if (lean_is_scalar(x_2753)) { - x_2758 = lean_alloc_ctor(0, 2, 0); +x_2413 = lean_ctor_get(x_2389, 1); +lean_inc(x_2413); +lean_dec(x_2389); +x_2414 = lean_ctor_get(x_2390, 0); +lean_inc(x_2414); +lean_dec(x_2390); +x_2415 = l_Lean_mkConst(x_2414, x_2382); +x_2416 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__6(x_41, x_2415, x_2413); +if (lean_is_scalar(x_2412)) { + x_2417 = lean_alloc_ctor(0, 2, 0); } else { - x_2758 = x_2753; + x_2417 = x_2412; } -lean_ctor_set(x_2758, 0, x_2757); -lean_ctor_set(x_2758, 1, x_2752); -return x_2758; +lean_ctor_set(x_2417, 0, x_2416); +lean_ctor_set(x_2417, 1, x_2411); +return x_2417; } case 5: { -lean_object* x_2759; lean_object* x_2760; lean_object* x_2761; lean_object* x_2762; lean_object* x_2763; -x_2759 = lean_ctor_get(x_2724, 1); -lean_inc(x_2759); -if (lean_is_exclusive(x_2724)) { - lean_ctor_release(x_2724, 0); - lean_ctor_release(x_2724, 1); - x_2760 = x_2724; +lean_object* x_2418; lean_object* x_2419; lean_object* x_2420; lean_object* x_2421; lean_object* x_2422; +x_2418 = lean_ctor_get(x_2383, 1); +lean_inc(x_2418); +if (lean_is_exclusive(x_2383)) { + lean_ctor_release(x_2383, 0); + lean_ctor_release(x_2383, 1); + x_2419 = x_2383; } else { - lean_dec_ref(x_2724); - x_2760 = lean_box(0); + lean_dec_ref(x_2383); + x_2419 = lean_box(0); } -x_2761 = lean_ctor_get(x_2730, 1); -lean_inc(x_2761); -lean_dec(x_2730); -x_2762 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__7(x_26, x_2731, x_2761); -if (lean_is_scalar(x_2760)) { - x_2763 = lean_alloc_ctor(0, 2, 0); +x_2420 = lean_ctor_get(x_2389, 1); +lean_inc(x_2420); +lean_dec(x_2389); +x_2421 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__7(x_41, x_2390, x_2420); +if (lean_is_scalar(x_2419)) { + x_2422 = lean_alloc_ctor(0, 2, 0); } else { - x_2763 = x_2760; + x_2422 = x_2419; } -lean_ctor_set(x_2763, 0, x_2762); -lean_ctor_set(x_2763, 1, x_2759); -return x_2763; +lean_ctor_set(x_2422, 0, x_2421); +lean_ctor_set(x_2422, 1, x_2418); +return x_2422; } case 6: { -lean_object* x_2764; lean_object* x_2765; lean_object* x_2766; lean_object* x_2767; lean_object* x_2768; -x_2764 = lean_ctor_get(x_2724, 1); -lean_inc(x_2764); -if (lean_is_exclusive(x_2724)) { - lean_ctor_release(x_2724, 0); - lean_ctor_release(x_2724, 1); - x_2765 = x_2724; +lean_object* x_2423; lean_object* x_2424; lean_object* x_2425; lean_object* x_2426; lean_object* x_2427; +x_2423 = lean_ctor_get(x_2383, 1); +lean_inc(x_2423); +if (lean_is_exclusive(x_2383)) { + lean_ctor_release(x_2383, 0); + lean_ctor_release(x_2383, 1); + x_2424 = x_2383; } else { - lean_dec_ref(x_2724); - x_2765 = lean_box(0); + lean_dec_ref(x_2383); + x_2424 = lean_box(0); } -x_2766 = lean_ctor_get(x_2730, 1); -lean_inc(x_2766); -lean_dec(x_2730); -x_2767 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__8(x_26, x_2731, x_2766); -if (lean_is_scalar(x_2765)) { - x_2768 = lean_alloc_ctor(0, 2, 0); +x_2425 = lean_ctor_get(x_2389, 1); +lean_inc(x_2425); +lean_dec(x_2389); +x_2426 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__8(x_41, x_2390, x_2425); +if (lean_is_scalar(x_2424)) { + x_2427 = lean_alloc_ctor(0, 2, 0); } else { - x_2768 = x_2765; + x_2427 = x_2424; } -lean_ctor_set(x_2768, 0, x_2767); -lean_ctor_set(x_2768, 1, x_2764); -return x_2768; +lean_ctor_set(x_2427, 0, x_2426); +lean_ctor_set(x_2427, 1, x_2423); +return x_2427; } case 7: { -lean_object* x_2769; lean_object* x_2770; lean_object* x_2771; lean_object* x_2772; lean_object* x_2773; -x_2769 = lean_ctor_get(x_2724, 1); -lean_inc(x_2769); -if (lean_is_exclusive(x_2724)) { - lean_ctor_release(x_2724, 0); - lean_ctor_release(x_2724, 1); - x_2770 = x_2724; +lean_object* x_2428; lean_object* x_2429; lean_object* x_2430; lean_object* x_2431; lean_object* x_2432; +x_2428 = lean_ctor_get(x_2383, 1); +lean_inc(x_2428); +if (lean_is_exclusive(x_2383)) { + lean_ctor_release(x_2383, 0); + lean_ctor_release(x_2383, 1); + x_2429 = x_2383; } else { - lean_dec_ref(x_2724); - x_2770 = lean_box(0); + lean_dec_ref(x_2383); + x_2429 = lean_box(0); } -x_2771 = lean_ctor_get(x_2730, 1); -lean_inc(x_2771); -lean_dec(x_2730); -x_2772 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__9(x_26, x_2731, x_2771); -if (lean_is_scalar(x_2770)) { - x_2773 = lean_alloc_ctor(0, 2, 0); +x_2430 = lean_ctor_get(x_2389, 1); +lean_inc(x_2430); +lean_dec(x_2389); +x_2431 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__9(x_41, x_2390, x_2430); +if (lean_is_scalar(x_2429)) { + x_2432 = lean_alloc_ctor(0, 2, 0); } else { - x_2773 = x_2770; + x_2432 = x_2429; } -lean_ctor_set(x_2773, 0, x_2772); -lean_ctor_set(x_2773, 1, x_2769); -return x_2773; +lean_ctor_set(x_2432, 0, x_2431); +lean_ctor_set(x_2432, 1, x_2428); +return x_2432; } case 8: { -lean_object* x_2774; lean_object* x_2775; lean_object* x_2776; lean_object* x_2777; lean_object* x_2778; -x_2774 = lean_ctor_get(x_2724, 1); -lean_inc(x_2774); -if (lean_is_exclusive(x_2724)) { - lean_ctor_release(x_2724, 0); - lean_ctor_release(x_2724, 1); - x_2775 = x_2724; +lean_object* x_2433; lean_object* x_2434; lean_object* x_2435; lean_object* x_2436; lean_object* x_2437; +x_2433 = lean_ctor_get(x_2383, 1); +lean_inc(x_2433); +if (lean_is_exclusive(x_2383)) { + lean_ctor_release(x_2383, 0); + lean_ctor_release(x_2383, 1); + x_2434 = x_2383; } else { - lean_dec_ref(x_2724); - x_2775 = lean_box(0); + lean_dec_ref(x_2383); + x_2434 = lean_box(0); } -x_2776 = lean_ctor_get(x_2730, 1); -lean_inc(x_2776); -lean_dec(x_2730); -x_2777 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__10(x_26, x_2731, x_2776); -if (lean_is_scalar(x_2775)) { - x_2778 = lean_alloc_ctor(0, 2, 0); +x_2435 = lean_ctor_get(x_2389, 1); +lean_inc(x_2435); +lean_dec(x_2389); +x_2436 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__10(x_41, x_2390, x_2435); +if (lean_is_scalar(x_2434)) { + x_2437 = lean_alloc_ctor(0, 2, 0); } else { - x_2778 = x_2775; + x_2437 = x_2434; } -lean_ctor_set(x_2778, 0, x_2777); -lean_ctor_set(x_2778, 1, x_2774); -return x_2778; +lean_ctor_set(x_2437, 0, x_2436); +lean_ctor_set(x_2437, 1, x_2433); +return x_2437; } case 9: { -lean_object* x_2779; lean_object* x_2780; lean_object* x_2781; lean_object* x_2782; lean_object* x_2783; -x_2779 = lean_ctor_get(x_2724, 1); -lean_inc(x_2779); -if (lean_is_exclusive(x_2724)) { - lean_ctor_release(x_2724, 0); - lean_ctor_release(x_2724, 1); - x_2780 = x_2724; +lean_object* x_2438; lean_object* x_2439; lean_object* x_2440; lean_object* x_2441; lean_object* x_2442; +x_2438 = lean_ctor_get(x_2383, 1); +lean_inc(x_2438); +if (lean_is_exclusive(x_2383)) { + lean_ctor_release(x_2383, 0); + lean_ctor_release(x_2383, 1); + x_2439 = x_2383; } else { - lean_dec_ref(x_2724); - x_2780 = lean_box(0); + lean_dec_ref(x_2383); + x_2439 = lean_box(0); } -x_2781 = lean_ctor_get(x_2730, 1); -lean_inc(x_2781); -lean_dec(x_2730); -x_2782 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__11(x_26, x_2731, x_2781); -if (lean_is_scalar(x_2780)) { - x_2783 = lean_alloc_ctor(0, 2, 0); +x_2440 = lean_ctor_get(x_2389, 1); +lean_inc(x_2440); +lean_dec(x_2389); +x_2441 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__11(x_41, x_2390, x_2440); +if (lean_is_scalar(x_2439)) { + x_2442 = lean_alloc_ctor(0, 2, 0); } else { - x_2783 = x_2780; + x_2442 = x_2439; } -lean_ctor_set(x_2783, 0, x_2782); -lean_ctor_set(x_2783, 1, x_2779); -return x_2783; +lean_ctor_set(x_2442, 0, x_2441); +lean_ctor_set(x_2442, 1, x_2438); +return x_2442; } case 10: { -lean_object* x_2784; lean_object* x_2785; lean_object* x_2786; lean_object* x_2787; lean_object* x_2788; -x_2784 = lean_ctor_get(x_2724, 1); -lean_inc(x_2784); -if (lean_is_exclusive(x_2724)) { - lean_ctor_release(x_2724, 0); - lean_ctor_release(x_2724, 1); - x_2785 = x_2724; +lean_object* x_2443; lean_object* x_2444; lean_object* x_2445; lean_object* x_2446; lean_object* x_2447; +x_2443 = lean_ctor_get(x_2383, 1); +lean_inc(x_2443); +if (lean_is_exclusive(x_2383)) { + lean_ctor_release(x_2383, 0); + lean_ctor_release(x_2383, 1); + x_2444 = x_2383; } else { - lean_dec_ref(x_2724); - x_2785 = lean_box(0); + lean_dec_ref(x_2383); + x_2444 = lean_box(0); } -x_2786 = lean_ctor_get(x_2730, 1); -lean_inc(x_2786); -lean_dec(x_2730); -x_2787 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__12(x_26, x_2731, x_2786); -if (lean_is_scalar(x_2785)) { - x_2788 = lean_alloc_ctor(0, 2, 0); +x_2445 = lean_ctor_get(x_2389, 1); +lean_inc(x_2445); +lean_dec(x_2389); +x_2446 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__12(x_41, x_2390, x_2445); +if (lean_is_scalar(x_2444)) { + x_2447 = lean_alloc_ctor(0, 2, 0); } else { - x_2788 = x_2785; + x_2447 = x_2444; } -lean_ctor_set(x_2788, 0, x_2787); -lean_ctor_set(x_2788, 1, x_2784); -return x_2788; +lean_ctor_set(x_2447, 0, x_2446); +lean_ctor_set(x_2447, 1, x_2443); +return x_2447; } case 11: { -lean_object* x_2789; lean_object* x_2790; lean_object* x_2791; lean_object* x_2792; lean_object* x_2793; -x_2789 = lean_ctor_get(x_2724, 1); -lean_inc(x_2789); -if (lean_is_exclusive(x_2724)) { - lean_ctor_release(x_2724, 0); - lean_ctor_release(x_2724, 1); - x_2790 = x_2724; +lean_object* x_2448; lean_object* x_2449; lean_object* x_2450; lean_object* x_2451; lean_object* x_2452; +x_2448 = lean_ctor_get(x_2383, 1); +lean_inc(x_2448); +if (lean_is_exclusive(x_2383)) { + lean_ctor_release(x_2383, 0); + lean_ctor_release(x_2383, 1); + x_2449 = x_2383; } else { - lean_dec_ref(x_2724); - x_2790 = lean_box(0); + lean_dec_ref(x_2383); + x_2449 = lean_box(0); } -x_2791 = lean_ctor_get(x_2730, 1); -lean_inc(x_2791); -lean_dec(x_2730); -x_2792 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__13(x_26, x_2731, x_2791); -if (lean_is_scalar(x_2790)) { - x_2793 = lean_alloc_ctor(0, 2, 0); +x_2450 = lean_ctor_get(x_2389, 1); +lean_inc(x_2450); +lean_dec(x_2389); +x_2451 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__13(x_41, x_2390, x_2450); +if (lean_is_scalar(x_2449)) { + x_2452 = lean_alloc_ctor(0, 2, 0); } else { - x_2793 = x_2790; + x_2452 = x_2449; } -lean_ctor_set(x_2793, 0, x_2792); -lean_ctor_set(x_2793, 1, x_2789); -return x_2793; +lean_ctor_set(x_2452, 0, x_2451); +lean_ctor_set(x_2452, 1, x_2448); +return x_2452; } default: { -lean_object* x_2794; lean_object* x_2795; lean_object* x_2796; lean_object* x_2797; lean_object* x_2798; -x_2794 = lean_ctor_get(x_2724, 1); -lean_inc(x_2794); -if (lean_is_exclusive(x_2724)) { - lean_ctor_release(x_2724, 0); - lean_ctor_release(x_2724, 1); - x_2795 = x_2724; +lean_object* x_2453; lean_object* x_2454; lean_object* x_2455; lean_object* x_2456; lean_object* x_2457; +x_2453 = lean_ctor_get(x_2383, 1); +lean_inc(x_2453); +if (lean_is_exclusive(x_2383)) { + lean_ctor_release(x_2383, 0); + lean_ctor_release(x_2383, 1); + x_2454 = x_2383; } else { - lean_dec_ref(x_2724); - x_2795 = lean_box(0); + lean_dec_ref(x_2383); + x_2454 = lean_box(0); } -x_2796 = lean_ctor_get(x_2730, 1); +x_2455 = lean_ctor_get(x_2389, 1); +lean_inc(x_2455); +lean_dec(x_2389); +x_2456 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__14(x_41, x_2390, x_2455); +if (lean_is_scalar(x_2454)) { + x_2457 = lean_alloc_ctor(0, 2, 0); +} else { + x_2457 = x_2454; +} +lean_ctor_set(x_2457, 0, x_2456); +lean_ctor_set(x_2457, 1, x_2453); +return x_2457; +} +} +} +} +else +{ +lean_object* x_2458; lean_object* x_2459; lean_object* x_2460; lean_object* x_2461; +lean_dec(x_2); +x_2458 = lean_ctor_get(x_2383, 0); +lean_inc(x_2458); +x_2459 = lean_ctor_get(x_2383, 1); +lean_inc(x_2459); +if (lean_is_exclusive(x_2383)) { + lean_ctor_release(x_2383, 0); + lean_ctor_release(x_2383, 1); + x_2460 = x_2383; +} else { + lean_dec_ref(x_2383); + x_2460 = lean_box(0); +} +if (lean_is_scalar(x_2460)) { + x_2461 = lean_alloc_ctor(1, 2, 0); +} else { + x_2461 = x_2460; +} +lean_ctor_set(x_2461, 0, x_2458); +lean_ctor_set(x_2461, 1, x_2459); +return x_2461; +} +} +else +{ +lean_object* x_2462; lean_object* x_2463; lean_object* x_2464; +lean_dec(x_2379); +x_2462 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; +x_2463 = l_unreachable_x21___rarg(x_2462); +x_2464 = lean_apply_2(x_2463, x_2, x_3); +return x_2464; +} +} +} +} +} +} +} +else +{ +lean_object* x_2465; +lean_dec(x_41); +lean_dec(x_40); +lean_dec(x_39); +lean_dec(x_30); +lean_dec(x_16); +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_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_1); +x_2465 = lean_box(0); +x_21 = x_2465; +goto block_29; +} +} +else +{ +lean_object* x_2466; +lean_dec(x_40); +lean_dec(x_39); +lean_dec(x_30); +lean_dec(x_16); +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_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_1); +x_2466 = lean_box(0); +x_21 = x_2466; +goto block_29; +} +} +else +{ +lean_object* x_2467; +lean_dec(x_39); +lean_dec(x_30); +lean_dec(x_16); +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_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_1); +x_2467 = lean_box(0); +x_21 = x_2467; +goto block_29; +} +} +default: +{ +lean_object* x_2468; +lean_dec(x_30); +lean_dec(x_16); +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_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_1); +x_2468 = lean_box(0); +x_21 = x_2468; +goto block_29; +} +} +} +else +{ +lean_object* x_2469; +lean_dec(x_16); +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_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_1); +x_2469 = lean_box(0); +x_21 = x_2469; +goto block_29; +} +block_29: +{ +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_dec(x_21); +x_22 = l_Lean_Name_toString___closed__1; +x_23 = l_Lean_Name_toStringWithSep___main(x_22, x_5); +x_24 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_24, 0, x_23); +x_25 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_25, 0, x_24); +x_26 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__3; +x_27 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_25); +x_28 = l_Lean_Elab_Term_throwError___rarg(x_27, x_2, x_3); +return x_28; +} +} +else +{ +lean_object* x_2470; lean_object* x_2471; lean_object* x_2472; lean_object* x_2473; lean_object* x_2474; lean_object* x_2475; lean_object* x_2476; lean_object* x_2477; lean_object* x_2478; lean_object* x_2479; uint8_t x_2480; uint8_t x_2481; uint8_t x_2482; lean_object* x_2483; lean_object* x_2484; +x_2470 = lean_ctor_get(x_2, 0); +x_2471 = lean_ctor_get(x_2, 1); +x_2472 = lean_ctor_get(x_2, 2); +x_2473 = lean_ctor_get(x_2, 3); +x_2474 = lean_ctor_get(x_2, 4); +x_2475 = lean_ctor_get(x_2, 5); +x_2476 = lean_ctor_get(x_2, 6); +x_2477 = lean_ctor_get(x_2, 7); +x_2478 = lean_ctor_get(x_2, 8); +x_2479 = lean_ctor_get(x_2, 9); +x_2480 = lean_ctor_get_uint8(x_2, sizeof(void*)*11); +x_2481 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 1); +x_2482 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 2); +lean_inc(x_2479); +lean_inc(x_2478); +lean_inc(x_2477); +lean_inc(x_2476); +lean_inc(x_2475); +lean_inc(x_2474); +lean_inc(x_2473); +lean_inc(x_2472); +lean_inc(x_2471); +lean_inc(x_2470); +lean_dec(x_2); +lean_inc(x_1); +lean_inc(x_2479); +lean_inc(x_2478); +lean_inc(x_2477); +lean_inc(x_2476); +lean_inc(x_2475); +lean_inc(x_2474); +lean_inc(x_2473); +lean_inc(x_2472); +lean_inc(x_2471); +lean_inc(x_2470); +x_2483 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_2483, 0, x_2470); +lean_ctor_set(x_2483, 1, x_2471); +lean_ctor_set(x_2483, 2, x_2472); +lean_ctor_set(x_2483, 3, x_2473); +lean_ctor_set(x_2483, 4, x_2474); +lean_ctor_set(x_2483, 5, x_2475); +lean_ctor_set(x_2483, 6, x_2476); +lean_ctor_set(x_2483, 7, x_2477); +lean_ctor_set(x_2483, 8, x_2478); +lean_ctor_set(x_2483, 9, x_2479); +lean_ctor_set(x_2483, 10, x_1); +lean_ctor_set_uint8(x_2483, sizeof(void*)*11, x_2480); +lean_ctor_set_uint8(x_2483, sizeof(void*)*11 + 1, x_2481); +lean_ctor_set_uint8(x_2483, sizeof(void*)*11 + 2, x_2482); +if (lean_obj_tag(x_5) == 1) +{ +lean_object* x_2493; +x_2493 = lean_ctor_get(x_5, 0); +lean_inc(x_2493); +switch (lean_obj_tag(x_2493)) { +case 0: +{ +lean_object* x_2494; lean_object* x_2495; uint8_t x_2496; +lean_dec(x_2479); +lean_dec(x_2478); +lean_dec(x_2477); +lean_dec(x_2476); +lean_dec(x_2475); +lean_dec(x_2474); +lean_dec(x_2473); +lean_dec(x_2472); +lean_dec(x_2471); +lean_dec(x_2470); +lean_dec(x_4); +x_2494 = lean_ctor_get(x_5, 1); +lean_inc(x_2494); +x_2495 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__4; +x_2496 = lean_string_dec_eq(x_2494, x_2495); +lean_dec(x_2494); +if (x_2496 == 0) +{ +lean_object* x_2497; +lean_dec(x_1); +x_2497 = lean_box(0); +x_2484 = x_2497; +goto block_2492; +} +else +{ +lean_object* x_2498; lean_object* x_2499; lean_object* x_2500; lean_object* x_2501; +lean_dec(x_2483); +lean_dec(x_5); +x_2498 = lean_unsigned_to_nat(0u); +x_2499 = l_Lean_Syntax_getArg(x_1, x_2498); +lean_dec(x_1); +x_2500 = x_2499; +x_2501 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2501, 0, x_2500); +lean_ctor_set(x_2501, 1, x_3); +return x_2501; +} +} +case 1: +{ +lean_object* x_2502; +x_2502 = lean_ctor_get(x_2493, 0); +lean_inc(x_2502); +if (lean_obj_tag(x_2502) == 1) +{ +lean_object* x_2503; +x_2503 = lean_ctor_get(x_2502, 0); +lean_inc(x_2503); +if (lean_obj_tag(x_2503) == 1) +{ +lean_object* x_2504; +x_2504 = lean_ctor_get(x_2503, 0); +lean_inc(x_2504); +if (lean_obj_tag(x_2504) == 0) +{ +lean_object* x_2505; size_t x_2506; lean_object* x_2507; size_t x_2508; lean_object* x_2509; lean_object* x_2510; size_t x_2511; lean_object* x_2512; lean_object* x_2513; size_t x_2514; lean_object* x_2515; lean_object* x_2516; uint8_t x_2517; +x_2505 = lean_ctor_get(x_5, 1); +lean_inc(x_2505); +x_2506 = lean_ctor_get_usize(x_5, 2); +x_2507 = lean_ctor_get(x_2493, 1); +lean_inc(x_2507); +x_2508 = lean_ctor_get_usize(x_2493, 2); +if (lean_is_exclusive(x_2493)) { + lean_ctor_release(x_2493, 0); + lean_ctor_release(x_2493, 1); + x_2509 = x_2493; +} else { + lean_dec_ref(x_2493); + x_2509 = lean_box(0); +} +x_2510 = lean_ctor_get(x_2502, 1); +lean_inc(x_2510); +x_2511 = lean_ctor_get_usize(x_2502, 2); +if (lean_is_exclusive(x_2502)) { + lean_ctor_release(x_2502, 0); + lean_ctor_release(x_2502, 1); + x_2512 = x_2502; +} else { + lean_dec_ref(x_2502); + x_2512 = lean_box(0); +} +x_2513 = lean_ctor_get(x_2503, 1); +lean_inc(x_2513); +x_2514 = lean_ctor_get_usize(x_2503, 2); +if (lean_is_exclusive(x_2503)) { + lean_ctor_release(x_2503, 0); + lean_ctor_release(x_2503, 1); + x_2515 = x_2503; +} else { + lean_dec_ref(x_2503); + x_2515 = lean_box(0); +} +x_2516 = l_Lean_mkAppStx___closed__1; +x_2517 = lean_string_dec_eq(x_2513, x_2516); +lean_dec(x_2513); +if (x_2517 == 0) +{ +lean_object* x_2518; +lean_dec(x_2515); +lean_dec(x_2512); +lean_dec(x_2510); +lean_dec(x_2509); +lean_dec(x_2507); +lean_dec(x_2505); +lean_dec(x_2479); +lean_dec(x_2478); +lean_dec(x_2477); +lean_dec(x_2476); +lean_dec(x_2475); +lean_dec(x_2474); +lean_dec(x_2473); +lean_dec(x_2472); +lean_dec(x_2471); +lean_dec(x_2470); +lean_dec(x_4); +lean_dec(x_1); +x_2518 = lean_box(0); +x_2484 = x_2518; +goto block_2492; +} +else +{ +lean_object* x_2519; lean_object* x_2520; uint8_t x_2521; +if (lean_is_exclusive(x_5)) { + lean_ctor_release(x_5, 0); + lean_ctor_release(x_5, 1); + x_2519 = x_5; +} else { + lean_dec_ref(x_5); + x_2519 = lean_box(0); +} +x_2520 = l_Lean_mkAppStx___closed__3; +x_2521 = lean_string_dec_eq(x_2510, x_2520); +if (x_2521 == 0) +{ +lean_object* x_2522; lean_object* x_2523; lean_object* x_2524; lean_object* x_2525; lean_object* x_2526; lean_object* x_2527; lean_object* x_2528; lean_object* x_2529; lean_object* x_2530; lean_object* x_2531; lean_object* x_2532; +lean_dec(x_2479); +lean_dec(x_2478); +lean_dec(x_2477); +lean_dec(x_2476); +lean_dec(x_2475); +lean_dec(x_2474); +lean_dec(x_2473); +lean_dec(x_2472); +lean_dec(x_2471); +lean_dec(x_2470); +lean_dec(x_4); +lean_dec(x_1); +if (lean_is_scalar(x_2515)) { + x_2522 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_2522 = x_2515; +} +lean_ctor_set(x_2522, 0, x_2504); +lean_ctor_set(x_2522, 1, x_2516); +lean_ctor_set_usize(x_2522, 2, x_2514); +if (lean_is_scalar(x_2512)) { + x_2523 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_2523 = x_2512; +} +lean_ctor_set(x_2523, 0, x_2522); +lean_ctor_set(x_2523, 1, x_2510); +lean_ctor_set_usize(x_2523, 2, x_2511); +if (lean_is_scalar(x_2509)) { + x_2524 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_2524 = x_2509; +} +lean_ctor_set(x_2524, 0, x_2523); +lean_ctor_set(x_2524, 1, x_2507); +lean_ctor_set_usize(x_2524, 2, x_2508); +if (lean_is_scalar(x_2519)) { + x_2525 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_2525 = x_2519; +} +lean_ctor_set(x_2525, 0, x_2524); +lean_ctor_set(x_2525, 1, x_2505); +lean_ctor_set_usize(x_2525, 2, x_2506); +x_2526 = l_Lean_Name_toString___closed__1; +x_2527 = l_Lean_Name_toStringWithSep___main(x_2526, x_2525); +x_2528 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2528, 0, x_2527); +x_2529 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2529, 0, x_2528); +x_2530 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__3; +x_2531 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_2531, 0, x_2530); +lean_ctor_set(x_2531, 1, x_2529); +x_2532 = l_Lean_Elab_Term_throwError___rarg(x_2531, x_2483, x_3); +return x_2532; +} +else +{ +lean_object* x_2533; uint8_t x_2534; +lean_dec(x_2510); +x_2533 = l_Lean_mkAppStx___closed__5; +x_2534 = lean_string_dec_eq(x_2507, x_2533); +if (x_2534 == 0) +{ +lean_object* x_2535; lean_object* x_2536; lean_object* x_2537; lean_object* x_2538; lean_object* x_2539; lean_object* x_2540; lean_object* x_2541; lean_object* x_2542; lean_object* x_2543; lean_object* x_2544; lean_object* x_2545; +lean_dec(x_2479); +lean_dec(x_2478); +lean_dec(x_2477); +lean_dec(x_2476); +lean_dec(x_2475); +lean_dec(x_2474); +lean_dec(x_2473); +lean_dec(x_2472); +lean_dec(x_2471); +lean_dec(x_2470); +lean_dec(x_4); +lean_dec(x_1); +if (lean_is_scalar(x_2515)) { + x_2535 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_2535 = x_2515; +} +lean_ctor_set(x_2535, 0, x_2504); +lean_ctor_set(x_2535, 1, x_2516); +lean_ctor_set_usize(x_2535, 2, x_2514); +if (lean_is_scalar(x_2512)) { + x_2536 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_2536 = x_2512; +} +lean_ctor_set(x_2536, 0, x_2535); +lean_ctor_set(x_2536, 1, x_2520); +lean_ctor_set_usize(x_2536, 2, x_2511); +if (lean_is_scalar(x_2509)) { + x_2537 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_2537 = x_2509; +} +lean_ctor_set(x_2537, 0, x_2536); +lean_ctor_set(x_2537, 1, x_2507); +lean_ctor_set_usize(x_2537, 2, x_2508); +if (lean_is_scalar(x_2519)) { + x_2538 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_2538 = x_2519; +} +lean_ctor_set(x_2538, 0, x_2537); +lean_ctor_set(x_2538, 1, x_2505); +lean_ctor_set_usize(x_2538, 2, x_2506); +x_2539 = l_Lean_Name_toString___closed__1; +x_2540 = l_Lean_Name_toStringWithSep___main(x_2539, x_2538); +x_2541 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2541, 0, x_2540); +x_2542 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2542, 0, x_2541); +x_2543 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__3; +x_2544 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_2544, 0, x_2543); +lean_ctor_set(x_2544, 1, x_2542); +x_2545 = l_Lean_Elab_Term_throwError___rarg(x_2544, x_2483, x_3); +return x_2545; +} +else +{ +lean_object* x_2546; uint8_t x_2547; +lean_dec(x_2507); +x_2546 = l_Lean_mkTermIdFromIdent___closed__1; +x_2547 = lean_string_dec_eq(x_2505, x_2546); +if (x_2547 == 0) +{ +lean_object* x_2548; uint8_t x_2549; +x_2548 = l_Lean_Parser_Term_fun___elambda__1___closed__1; +x_2549 = lean_string_dec_eq(x_2505, x_2548); +if (x_2549 == 0) +{ +lean_object* x_2550; uint8_t x_2551; +x_2550 = l_Lean_Parser_Term_let___elambda__1___closed__1; +x_2551 = lean_string_dec_eq(x_2505, x_2550); +if (x_2551 == 0) +{ +lean_object* x_2552; uint8_t x_2553; +lean_dec(x_2479); +lean_dec(x_2478); +lean_dec(x_2477); +lean_dec(x_2476); +lean_dec(x_2475); +lean_dec(x_2474); +lean_dec(x_2473); +lean_dec(x_2472); +lean_dec(x_2471); +lean_dec(x_2470); +x_2552 = l_Lean_mkAppStx___closed__7; +x_2553 = lean_string_dec_eq(x_2505, x_2552); +if (x_2553 == 0) +{ +lean_object* x_2554; uint8_t x_2555; +x_2554 = l_Lean_Parser_Term_if___elambda__1___closed__1; +x_2555 = lean_string_dec_eq(x_2505, x_2554); +if (x_2555 == 0) +{ +lean_object* x_2556; uint8_t x_2557; +x_2556 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__1; +x_2557 = lean_string_dec_eq(x_2505, x_2556); +if (x_2557 == 0) +{ +lean_object* x_2558; uint8_t x_2559; +x_2558 = l_Lean_Parser_Term_band___elambda__1___closed__1; +x_2559 = lean_string_dec_eq(x_2505, x_2558); +if (x_2559 == 0) +{ +lean_object* x_2560; uint8_t x_2561; +x_2560 = l_Lean_Meta_reduceNat_x3f___closed__12; +x_2561 = lean_string_dec_eq(x_2505, x_2560); +if (x_2561 == 0) +{ +lean_object* x_2562; uint8_t x_2563; +x_2562 = l_Lean_Parser_Term_eq___elambda__1___closed__1; +x_2563 = lean_string_dec_eq(x_2505, x_2562); +if (x_2563 == 0) +{ +lean_object* x_2564; uint8_t x_2565; +lean_dec(x_4); +x_2564 = l_Lean_String_HasQuote___closed__1; +x_2565 = lean_string_dec_eq(x_2505, x_2564); +if (x_2565 == 0) +{ +lean_object* x_2566; uint8_t x_2567; +x_2566 = l_Lean_Nat_HasQuote___closed__1; +x_2567 = lean_string_dec_eq(x_2505, x_2566); +if (x_2567 == 0) +{ +lean_object* x_2568; lean_object* x_2569; lean_object* x_2570; lean_object* x_2571; lean_object* x_2572; lean_object* x_2573; lean_object* x_2574; lean_object* x_2575; lean_object* x_2576; lean_object* x_2577; lean_object* x_2578; +lean_dec(x_1); +if (lean_is_scalar(x_2515)) { + x_2568 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_2568 = x_2515; +} +lean_ctor_set(x_2568, 0, x_2504); +lean_ctor_set(x_2568, 1, x_2516); +lean_ctor_set_usize(x_2568, 2, x_2514); +if (lean_is_scalar(x_2512)) { + x_2569 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_2569 = x_2512; +} +lean_ctor_set(x_2569, 0, x_2568); +lean_ctor_set(x_2569, 1, x_2520); +lean_ctor_set_usize(x_2569, 2, x_2511); +if (lean_is_scalar(x_2509)) { + x_2570 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_2570 = x_2509; +} +lean_ctor_set(x_2570, 0, x_2569); +lean_ctor_set(x_2570, 1, x_2533); +lean_ctor_set_usize(x_2570, 2, x_2508); +if (lean_is_scalar(x_2519)) { + x_2571 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_2571 = x_2519; +} +lean_ctor_set(x_2571, 0, x_2570); +lean_ctor_set(x_2571, 1, x_2505); +lean_ctor_set_usize(x_2571, 2, x_2506); +x_2572 = l_Lean_Name_toString___closed__1; +x_2573 = l_Lean_Name_toStringWithSep___main(x_2572, x_2571); +x_2574 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2574, 0, x_2573); +x_2575 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2575, 0, x_2574); +x_2576 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__3; +x_2577 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_2577, 0, x_2576); +lean_ctor_set(x_2577, 1, x_2575); +x_2578 = l_Lean_Elab_Term_throwError___rarg(x_2577, x_2483, x_3); +return x_2578; +} +else +{ +lean_object* x_2579; lean_object* x_2580; lean_object* x_2581; lean_object* x_2582; +lean_dec(x_2519); +lean_dec(x_2515); +lean_dec(x_2512); +lean_dec(x_2509); +lean_dec(x_2505); +lean_dec(x_2483); +x_2579 = lean_unsigned_to_nat(0u); +x_2580 = l_Lean_Syntax_getArg(x_1, x_2579); +lean_dec(x_1); +x_2581 = l_Lean_numLitKind; +x_2582 = l_Lean_Syntax_isNatLitAux(x_2581, x_2580); +lean_dec(x_2580); +if (lean_obj_tag(x_2582) == 0) +{ +lean_object* x_2583; lean_object* x_2584; +x_2583 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__5; +x_2584 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2584, 0, x_2583); +lean_ctor_set(x_2584, 1, x_3); +return x_2584; +} +else +{ +lean_object* x_2585; lean_object* x_2586; lean_object* x_2587; +x_2585 = lean_ctor_get(x_2582, 0); +lean_inc(x_2585); +lean_dec(x_2582); +x_2586 = l_Lean_mkNatLit(x_2585); +x_2587 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2587, 0, x_2586); +lean_ctor_set(x_2587, 1, x_3); +return x_2587; +} +} +} +else +{ +lean_object* x_2588; lean_object* x_2589; lean_object* x_2590; +lean_dec(x_2519); +lean_dec(x_2515); +lean_dec(x_2512); +lean_dec(x_2509); +lean_dec(x_2505); +lean_dec(x_2483); +x_2588 = lean_unsigned_to_nat(0u); +x_2589 = l_Lean_Syntax_getArg(x_1, x_2588); +lean_dec(x_1); +x_2590 = l_Lean_Syntax_isStrLit_x3f(x_2589); +lean_dec(x_2589); +if (lean_obj_tag(x_2590) == 0) +{ +lean_object* x_2591; lean_object* x_2592; +x_2591 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__6; +x_2592 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2592, 0, x_2591); +lean_ctor_set(x_2592, 1, x_3); +return x_2592; +} +else +{ +lean_object* x_2593; lean_object* x_2594; lean_object* x_2595; +x_2593 = lean_ctor_get(x_2590, 0); +lean_inc(x_2593); +lean_dec(x_2590); +x_2594 = l_Lean_mkStrLit(x_2593); +x_2595 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2595, 0, x_2594); +lean_ctor_set(x_2595, 1, x_3); +return x_2595; +} +} +} +else +{ +lean_object* x_2596; lean_object* x_2597; lean_object* x_2598; lean_object* x_2599; lean_object* x_2600; lean_object* x_2601; lean_object* x_2602; lean_object* x_2603; lean_object* x_2604; +lean_dec(x_2519); +lean_dec(x_2515); +lean_dec(x_2512); +lean_dec(x_2509); +lean_dec(x_2505); +lean_dec(x_1); +x_2596 = l_Lean_Syntax_inhabited; +x_2597 = lean_unsigned_to_nat(0u); +x_2598 = lean_array_get(x_2596, x_4, x_2597); +x_2599 = lean_unsigned_to_nat(2u); +x_2600 = lean_array_get(x_2596, x_4, x_2599); +lean_dec(x_4); +x_2601 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__1___boxed), 6, 3); +lean_closure_set(x_2601, 0, x_2504); +lean_closure_set(x_2601, 1, x_2598); +lean_closure_set(x_2601, 2, x_2600); +x_2602 = l_Lean_Unhygienic_MonadQuotation___closed__4; +x_2603 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___spec__1___rarg), 4, 2); +lean_closure_set(x_2603, 0, x_2602); +lean_closure_set(x_2603, 1, x_2601); +x_2604 = l_Lean_Unhygienic_run___rarg(x_2603); +x_1 = x_2604; +x_2 = x_2483; +goto _start; +} +} +else +{ +lean_object* x_2606; lean_object* x_2607; lean_object* x_2608; lean_object* x_2609; lean_object* x_2610; lean_object* x_2611; lean_object* x_2612; lean_object* x_2613; lean_object* x_2614; +lean_dec(x_2519); +lean_dec(x_2515); +lean_dec(x_2512); +lean_dec(x_2509); +lean_dec(x_2505); +lean_dec(x_1); +x_2606 = l_Lean_Syntax_inhabited; +x_2607 = lean_unsigned_to_nat(0u); +x_2608 = lean_array_get(x_2606, x_4, x_2607); +x_2609 = lean_unsigned_to_nat(2u); +x_2610 = lean_array_get(x_2606, x_4, x_2609); +lean_dec(x_4); +x_2611 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__2___boxed), 6, 3); +lean_closure_set(x_2611, 0, x_2504); +lean_closure_set(x_2611, 1, x_2608); +lean_closure_set(x_2611, 2, x_2610); +x_2612 = l_Lean_Unhygienic_MonadQuotation___closed__4; +x_2613 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___spec__1___rarg), 4, 2); +lean_closure_set(x_2613, 0, x_2612); +lean_closure_set(x_2613, 1, x_2611); +x_2614 = l_Lean_Unhygienic_run___rarg(x_2613); +x_1 = x_2614; +x_2 = x_2483; +goto _start; +} +} +else +{ +lean_object* x_2616; lean_object* x_2617; lean_object* x_2618; lean_object* x_2619; lean_object* x_2620; lean_object* x_2621; lean_object* x_2622; lean_object* x_2623; lean_object* x_2624; +lean_dec(x_2519); +lean_dec(x_2515); +lean_dec(x_2512); +lean_dec(x_2509); +lean_dec(x_2505); +lean_dec(x_1); +x_2616 = l_Lean_Syntax_inhabited; +x_2617 = lean_unsigned_to_nat(0u); +x_2618 = lean_array_get(x_2616, x_4, x_2617); +x_2619 = lean_unsigned_to_nat(2u); +x_2620 = lean_array_get(x_2616, x_4, x_2619); +lean_dec(x_4); +x_2621 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__3___boxed), 6, 3); +lean_closure_set(x_2621, 0, x_2504); +lean_closure_set(x_2621, 1, x_2618); +lean_closure_set(x_2621, 2, x_2620); +x_2622 = l_Lean_Unhygienic_MonadQuotation___closed__4; +x_2623 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___spec__1___rarg), 4, 2); +lean_closure_set(x_2623, 0, x_2622); +lean_closure_set(x_2623, 1, x_2621); +x_2624 = l_Lean_Unhygienic_run___rarg(x_2623); +x_1 = x_2624; +x_2 = x_2483; +goto _start; +} +} +else +{ +lean_object* x_2626; lean_object* x_2627; lean_object* x_2628; lean_object* x_2629; lean_object* x_2630; lean_object* x_2631; uint8_t x_2632; +lean_dec(x_2519); +lean_dec(x_2515); +lean_dec(x_2512); +lean_dec(x_2509); +lean_dec(x_2505); +lean_dec(x_1); +x_2626 = l_Lean_Syntax_inhabited; +x_2627 = lean_unsigned_to_nat(1u); +x_2628 = lean_array_get(x_2626, x_4, x_2627); +lean_dec(x_4); +x_2629 = l_Lean_Syntax_getArgs(x_2628); +lean_dec(x_2628); +x_2630 = lean_array_get_size(x_2629); +x_2631 = lean_unsigned_to_nat(0u); +x_2632 = lean_nat_dec_eq(x_2630, x_2631); +lean_dec(x_2630); +if (x_2632 == 0) +{ +lean_object* x_2633; +x_2633 = lean_array_get(x_2626, x_2629, x_2631); +lean_dec(x_2629); +x_1 = x_2633; +x_2 = x_2483; +goto _start; +} +else +{ +lean_object* x_2635; lean_object* x_2636; lean_object* x_2637; lean_object* x_2638; lean_object* x_2639; lean_object* x_2640; lean_object* x_2641; +lean_dec(x_2629); +lean_dec(x_2483); +x_2635 = l___private_Lean_Compiler_InitAttr_2__isUnitType___closed__1; +x_2636 = lean_name_mk_string(x_2504, x_2635); +x_2637 = l_Lean_unitToExpr___lambda__1___closed__3; +x_2638 = lean_name_mk_string(x_2636, x_2637); +x_2639 = lean_box(0); +x_2640 = l_Lean_mkConst(x_2638, x_2639); +x_2641 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2641, 0, x_2640); +lean_ctor_set(x_2641, 1, x_3); +return x_2641; +} +} +} +else +{ +lean_object* x_2642; lean_object* x_2643; lean_object* x_2644; lean_object* x_2645; lean_object* x_2646; lean_object* x_2647; lean_object* x_2648; lean_object* x_2649; lean_object* x_2650; lean_object* x_2651; lean_object* x_2652; +lean_dec(x_2519); +lean_dec(x_2515); +lean_dec(x_2512); +lean_dec(x_2509); +lean_dec(x_2505); +lean_dec(x_1); +x_2642 = l_Lean_Syntax_inhabited; +x_2643 = lean_unsigned_to_nat(2u); +x_2644 = lean_array_get(x_2642, x_4, x_2643); +x_2645 = lean_unsigned_to_nat(4u); +x_2646 = lean_array_get(x_2642, x_4, x_2645); +x_2647 = lean_unsigned_to_nat(6u); +x_2648 = lean_array_get(x_2642, x_4, x_2647); +lean_dec(x_4); +x_2649 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__4___boxed), 7, 4); +lean_closure_set(x_2649, 0, x_2504); +lean_closure_set(x_2649, 1, x_2644); +lean_closure_set(x_2649, 2, x_2646); +lean_closure_set(x_2649, 3, x_2648); +x_2650 = l_Lean_Unhygienic_MonadQuotation___closed__4; +x_2651 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___spec__1___rarg), 4, 2); +lean_closure_set(x_2651, 0, x_2650); +lean_closure_set(x_2651, 1, x_2649); +x_2652 = l_Lean_Unhygienic_run___rarg(x_2651); +x_1 = x_2652; +x_2 = x_2483; +goto _start; +} +} +else +{ +lean_object* x_2654; lean_object* x_2655; lean_object* x_2656; lean_object* x_2657; +lean_dec(x_2519); +lean_dec(x_2515); +lean_dec(x_2512); +lean_dec(x_2509); +lean_dec(x_2505); +lean_dec(x_1); +x_2654 = l_Lean_Syntax_inhabited; +x_2655 = lean_unsigned_to_nat(0u); +x_2656 = lean_array_get(x_2654, x_4, x_2655); +lean_inc(x_2483); +x_2657 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_2656, x_2483, x_3); +if (lean_obj_tag(x_2657) == 0) +{ +lean_object* x_2658; lean_object* x_2659; lean_object* x_2660; lean_object* x_2661; lean_object* x_2662; lean_object* x_2663; lean_object* x_2664; lean_object* x_2665; lean_object* x_2666; +x_2658 = lean_ctor_get(x_2657, 0); +lean_inc(x_2658); +x_2659 = lean_ctor_get(x_2657, 1); +lean_inc(x_2659); +lean_dec(x_2657); +x_2660 = lean_unsigned_to_nat(1u); +x_2661 = lean_array_get(x_2654, x_4, x_2660); +lean_dec(x_4); +x_2662 = l_Lean_Syntax_getArgs(x_2661); +lean_dec(x_2661); +x_2663 = x_2662; +x_2664 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__1), 4, 2); +lean_closure_set(x_2664, 0, x_2655); +lean_closure_set(x_2664, 1, x_2663); +x_2665 = x_2664; +x_2666 = lean_apply_2(x_2665, x_2483, x_2659); +if (lean_obj_tag(x_2666) == 0) +{ +lean_object* x_2667; lean_object* x_2668; lean_object* x_2669; lean_object* x_2670; lean_object* x_2671; +x_2667 = lean_ctor_get(x_2666, 0); +lean_inc(x_2667); +x_2668 = lean_ctor_get(x_2666, 1); +lean_inc(x_2668); +if (lean_is_exclusive(x_2666)) { + lean_ctor_release(x_2666, 0); + lean_ctor_release(x_2666, 1); + x_2669 = x_2666; +} else { + lean_dec_ref(x_2666); + x_2669 = lean_box(0); +} +x_2670 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_2667, x_2667, x_2655, x_2658); +lean_dec(x_2667); +if (lean_is_scalar(x_2669)) { + x_2671 = lean_alloc_ctor(0, 2, 0); +} else { + x_2671 = x_2669; +} +lean_ctor_set(x_2671, 0, x_2670); +lean_ctor_set(x_2671, 1, x_2668); +return x_2671; +} +else +{ +lean_object* x_2672; lean_object* x_2673; lean_object* x_2674; lean_object* x_2675; +lean_dec(x_2658); +x_2672 = lean_ctor_get(x_2666, 0); +lean_inc(x_2672); +x_2673 = lean_ctor_get(x_2666, 1); +lean_inc(x_2673); +if (lean_is_exclusive(x_2666)) { + lean_ctor_release(x_2666, 0); + lean_ctor_release(x_2666, 1); + x_2674 = x_2666; +} else { + lean_dec_ref(x_2666); + x_2674 = lean_box(0); +} +if (lean_is_scalar(x_2674)) { + x_2675 = lean_alloc_ctor(1, 2, 0); +} else { + x_2675 = x_2674; +} +lean_ctor_set(x_2675, 0, x_2672); +lean_ctor_set(x_2675, 1, x_2673); +return x_2675; +} +} +else +{ +lean_object* x_2676; lean_object* x_2677; lean_object* x_2678; lean_object* x_2679; +lean_dec(x_2483); +lean_dec(x_4); +x_2676 = lean_ctor_get(x_2657, 0); +lean_inc(x_2676); +x_2677 = lean_ctor_get(x_2657, 1); +lean_inc(x_2677); +if (lean_is_exclusive(x_2657)) { + lean_ctor_release(x_2657, 0); + lean_ctor_release(x_2657, 1); + x_2678 = x_2657; +} else { + lean_dec_ref(x_2657); + x_2678 = lean_box(0); +} +if (lean_is_scalar(x_2678)) { + x_2679 = lean_alloc_ctor(1, 2, 0); +} else { + x_2679 = x_2678; +} +lean_ctor_set(x_2679, 0, x_2676); +lean_ctor_set(x_2679, 1, x_2677); +return x_2679; +} +} +} +else +{ +lean_object* x_2680; lean_object* x_2681; lean_object* x_2682; lean_object* x_2683; lean_object* x_2684; uint8_t x_2685; lean_object* x_2686; lean_object* x_2687; lean_object* x_2688; lean_object* x_2689; lean_object* x_2690; +lean_dec(x_2519); +lean_dec(x_2515); +lean_dec(x_2512); +lean_dec(x_2509); +lean_dec(x_2505); +x_2680 = l_Lean_Syntax_inhabited; +x_2681 = lean_unsigned_to_nat(1u); +x_2682 = lean_array_get(x_2680, x_4, x_2681); +x_2683 = lean_unsigned_to_nat(0u); +x_2684 = l_Lean_Syntax_getArg(x_2682, x_2683); +x_2685 = l_Lean_Syntax_isIdent(x_2684); +x_2686 = lean_unsigned_to_nat(4u); +x_2687 = l_Lean_Syntax_getArg(x_2682, x_2686); +lean_dec(x_2682); +x_2688 = lean_unsigned_to_nat(3u); +x_2689 = lean_array_get(x_2680, x_4, x_2688); +lean_dec(x_4); +if (x_2685 == 0) +{ +lean_object* x_2724; +x_2724 = l_Lean_Syntax_getIdAt(x_2684, x_2683); +lean_dec(x_2684); +x_2690 = x_2724; +goto block_2723; +} +else +{ +lean_object* x_2725; +x_2725 = l_Lean_Syntax_getId(x_2684); +lean_dec(x_2684); +x_2690 = x_2725; +goto block_2723; +} +block_2723: +{ +lean_object* x_2691; +lean_inc(x_2483); +x_2691 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_2687, x_2483, x_3); +if (lean_obj_tag(x_2691) == 0) +{ +lean_object* x_2692; lean_object* x_2693; lean_object* x_2694; lean_object* x_2695; lean_object* x_2696; lean_object* x_2697; lean_object* x_2698; lean_object* x_2699; lean_object* x_2700; lean_object* x_2701; lean_object* x_2702; lean_object* x_2703; lean_object* x_2704; lean_object* x_2705; lean_object* x_2706; +x_2692 = lean_ctor_get(x_2691, 0); +lean_inc(x_2692); +x_2693 = lean_ctor_get(x_2691, 1); +lean_inc(x_2693); +lean_dec(x_2691); +x_2694 = l_Lean_Elab_Term_getLCtx(x_2483, x_2693); +lean_dec(x_2483); +x_2695 = lean_ctor_get(x_2694, 0); +lean_inc(x_2695); +x_2696 = lean_ctor_get(x_2694, 1); +lean_inc(x_2696); +lean_dec(x_2694); +x_2697 = l___private_Lean_Elab_Quotation_9__exprPlaceholder; +lean_inc_n(x_2690, 2); +x_2698 = lean_local_ctx_mk_let_decl(x_2695, x_2690, x_2690, x_2697, x_2692); +x_2699 = lean_ctor_get(x_2470, 0); +lean_inc(x_2699); +x_2700 = lean_ctor_get(x_2470, 2); +lean_inc(x_2700); +x_2701 = lean_ctor_get(x_2470, 3); +lean_inc(x_2701); +x_2702 = lean_ctor_get(x_2470, 4); +lean_inc(x_2702); +if (lean_is_exclusive(x_2470)) { + lean_ctor_release(x_2470, 0); + lean_ctor_release(x_2470, 1); + lean_ctor_release(x_2470, 2); + lean_ctor_release(x_2470, 3); + lean_ctor_release(x_2470, 4); + x_2703 = x_2470; +} else { + lean_dec_ref(x_2470); + x_2703 = lean_box(0); +} +lean_inc(x_2698); +if (lean_is_scalar(x_2703)) { + x_2704 = lean_alloc_ctor(0, 5, 0); +} else { + x_2704 = x_2703; +} +lean_ctor_set(x_2704, 0, x_2699); +lean_ctor_set(x_2704, 1, x_2698); +lean_ctor_set(x_2704, 2, x_2700); +lean_ctor_set(x_2704, 3, x_2701); +lean_ctor_set(x_2704, 4, x_2702); +x_2705 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_2705, 0, x_2704); +lean_ctor_set(x_2705, 1, x_2471); +lean_ctor_set(x_2705, 2, x_2472); +lean_ctor_set(x_2705, 3, x_2473); +lean_ctor_set(x_2705, 4, x_2474); +lean_ctor_set(x_2705, 5, x_2475); +lean_ctor_set(x_2705, 6, x_2476); +lean_ctor_set(x_2705, 7, x_2477); +lean_ctor_set(x_2705, 8, x_2478); +lean_ctor_set(x_2705, 9, x_2479); +lean_ctor_set(x_2705, 10, x_1); +lean_ctor_set_uint8(x_2705, sizeof(void*)*11, x_2480); +lean_ctor_set_uint8(x_2705, sizeof(void*)*11 + 1, x_2481); +lean_ctor_set_uint8(x_2705, sizeof(void*)*11 + 2, x_2482); +x_2706 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_2689, x_2705, x_2696); +if (lean_obj_tag(x_2706) == 0) +{ +lean_object* x_2707; lean_object* x_2708; lean_object* x_2709; lean_object* x_2710; lean_object* x_2711; lean_object* x_2712; lean_object* x_2713; lean_object* x_2714; +x_2707 = lean_ctor_get(x_2706, 0); +lean_inc(x_2707); +x_2708 = lean_ctor_get(x_2706, 1); +lean_inc(x_2708); +if (lean_is_exclusive(x_2706)) { + lean_ctor_release(x_2706, 0); + lean_ctor_release(x_2706, 1); + x_2709 = x_2706; +} else { + lean_dec_ref(x_2706); + x_2709 = lean_box(0); +} +x_2710 = l_Lean_mkFVar(x_2690); +x_2711 = l_Lean_mkOptionalNode___closed__2; +x_2712 = lean_array_push(x_2711, x_2710); +x_2713 = l_Lean_LocalContext_mkLambda(x_2698, x_2712, x_2707); +lean_dec(x_2707); +lean_dec(x_2712); +if (lean_is_scalar(x_2709)) { + x_2714 = lean_alloc_ctor(0, 2, 0); +} else { + x_2714 = x_2709; +} +lean_ctor_set(x_2714, 0, x_2713); +lean_ctor_set(x_2714, 1, x_2708); +return x_2714; +} +else +{ +lean_object* x_2715; lean_object* x_2716; lean_object* x_2717; lean_object* x_2718; +lean_dec(x_2698); +lean_dec(x_2690); +x_2715 = lean_ctor_get(x_2706, 0); +lean_inc(x_2715); +x_2716 = lean_ctor_get(x_2706, 1); +lean_inc(x_2716); +if (lean_is_exclusive(x_2706)) { + lean_ctor_release(x_2706, 0); + lean_ctor_release(x_2706, 1); + x_2717 = x_2706; +} else { + lean_dec_ref(x_2706); + x_2717 = lean_box(0); +} +if (lean_is_scalar(x_2717)) { + x_2718 = lean_alloc_ctor(1, 2, 0); +} else { + x_2718 = x_2717; +} +lean_ctor_set(x_2718, 0, x_2715); +lean_ctor_set(x_2718, 1, x_2716); +return x_2718; +} +} +else +{ +lean_object* x_2719; lean_object* x_2720; lean_object* x_2721; lean_object* x_2722; +lean_dec(x_2690); +lean_dec(x_2689); +lean_dec(x_2483); +lean_dec(x_2479); +lean_dec(x_2478); +lean_dec(x_2477); +lean_dec(x_2476); +lean_dec(x_2475); +lean_dec(x_2474); +lean_dec(x_2473); +lean_dec(x_2472); +lean_dec(x_2471); +lean_dec(x_2470); +lean_dec(x_1); +x_2719 = lean_ctor_get(x_2691, 0); +lean_inc(x_2719); +x_2720 = lean_ctor_get(x_2691, 1); +lean_inc(x_2720); +if (lean_is_exclusive(x_2691)) { + lean_ctor_release(x_2691, 0); + lean_ctor_release(x_2691, 1); + x_2721 = x_2691; +} else { + lean_dec_ref(x_2691); + x_2721 = lean_box(0); +} +if (lean_is_scalar(x_2721)) { + x_2722 = lean_alloc_ctor(1, 2, 0); +} else { + x_2722 = x_2721; +} +lean_ctor_set(x_2722, 0, x_2719); +lean_ctor_set(x_2722, 1, x_2720); +return x_2722; +} +} +} +} +else +{ +lean_object* x_2726; lean_object* x_2727; lean_object* x_2728; lean_object* x_2729; lean_object* x_2730; lean_object* x_2731; lean_object* x_2732; lean_object* x_2733; uint8_t x_2734; +lean_dec(x_2519); +lean_dec(x_2515); +lean_dec(x_2512); +lean_dec(x_2509); +lean_dec(x_2505); +x_2726 = l_Lean_Syntax_inhabited; +x_2727 = lean_unsigned_to_nat(1u); +x_2728 = lean_array_get(x_2726, x_4, x_2727); +x_2729 = l_Lean_Syntax_getArgs(x_2728); +lean_dec(x_2728); +x_2730 = lean_unsigned_to_nat(3u); +x_2731 = lean_array_get(x_2726, x_4, x_2730); +lean_dec(x_4); +x_2732 = lean_array_get_size(x_2729); +x_2733 = lean_unsigned_to_nat(0u); +x_2734 = lean_nat_dec_eq(x_2732, x_2733); +lean_dec(x_2732); +if (x_2734 == 0) +{ +lean_object* x_2735; lean_object* x_2736; lean_object* x_2737; lean_object* x_2738; lean_object* x_2739; uint8_t x_2740; +x_2735 = lean_array_get(x_2726, x_2729, x_2733); +x_2736 = lean_name_mk_string(x_2504, x_2516); +x_2737 = lean_name_mk_string(x_2736, x_2520); +x_2738 = lean_name_mk_string(x_2737, x_2533); +lean_inc(x_2738); +x_2739 = lean_name_mk_string(x_2738, x_2546); +lean_inc(x_2735); +x_2740 = l_Lean_Syntax_isOfKind(x_2735, x_2739); +lean_dec(x_2739); +if (x_2740 == 0) +{ +lean_object* x_2741; lean_object* x_2742; uint8_t x_2743; +x_2741 = l_Lean_mkHole___closed__1; +lean_inc(x_2738); +x_2742 = lean_name_mk_string(x_2738, x_2741); +lean_inc(x_2735); +x_2743 = l_Lean_Syntax_isOfKind(x_2735, x_2742); +lean_dec(x_2742); +if (x_2743 == 0) +{ +lean_object* x_2744; lean_object* x_2745; lean_object* x_2746; lean_object* x_2747; lean_object* x_2748; lean_object* x_2749; lean_object* x_2750; +x_2744 = l_Lean_Syntax_getArg(x_2735, x_2727); +lean_dec(x_2735); +x_2745 = l_Lean_Syntax_getArg(x_2744, x_2733); +x_2746 = l_Lean_Syntax_getIdAt(x_2745, x_2733); +lean_dec(x_2745); +x_2747 = l_Lean_Syntax_getArg(x_2744, x_2727); +lean_dec(x_2744); +x_2748 = l_Lean_Syntax_getArg(x_2747, x_2733); +lean_dec(x_2747); +x_2749 = l_Lean_Syntax_getArg(x_2748, x_2727); +lean_dec(x_2748); +lean_inc(x_2483); +x_2750 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_2749, x_2483, x_3); +if (lean_obj_tag(x_2750) == 0) +{ +lean_object* x_2751; lean_object* x_2752; lean_object* x_2753; lean_object* x_2754; lean_object* x_2755; uint8_t x_2756; lean_object* x_2757; lean_object* x_2758; lean_object* x_2759; lean_object* x_2760; lean_object* x_2761; lean_object* x_2762; lean_object* x_2763; lean_object* x_2764; lean_object* x_2765; lean_object* x_2766; lean_object* x_2767; lean_object* x_2768; lean_object* x_2769; lean_object* x_2770; lean_object* x_2771; lean_object* x_2772; lean_object* x_2773; lean_object* x_2774; lean_object* x_2775; lean_object* x_2776; lean_object* x_2777; lean_object* x_2778; lean_object* x_2779; lean_object* x_2780; lean_object* x_2781; lean_object* x_2782; +x_2751 = lean_ctor_get(x_2750, 0); +lean_inc(x_2751); +x_2752 = lean_ctor_get(x_2750, 1); +lean_inc(x_2752); +lean_dec(x_2750); +x_2753 = l_Lean_Elab_Term_getLCtx(x_2483, x_2752); +x_2754 = lean_ctor_get(x_2753, 0); +lean_inc(x_2754); +x_2755 = lean_ctor_get(x_2753, 1); +lean_inc(x_2755); +lean_dec(x_2753); +x_2756 = 0; +lean_inc_n(x_2746, 2); +x_2757 = lean_local_ctx_mk_local_decl(x_2754, x_2746, x_2746, x_2751, x_2756); +x_2758 = l_Array_eraseIdx___rarg(x_2729, x_2733); +x_2759 = l_Lean_Elab_Term_getCurrMacroScope(x_2483, x_2755); +lean_dec(x_2483); +x_2760 = lean_ctor_get(x_2759, 1); +lean_inc(x_2760); +lean_dec(x_2759); +x_2761 = l_Lean_Elab_Term_getMainModule___rarg(x_2760); +x_2762 = lean_ctor_get(x_2761, 1); +lean_inc(x_2762); +lean_dec(x_2761); +x_2763 = lean_name_mk_string(x_2738, x_2548); +x_2764 = l_Lean_nullKind___closed__1; +x_2765 = lean_name_mk_string(x_2504, x_2764); +x_2766 = l_Array_empty___closed__1; +x_2767 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_2758, x_2758, x_2733, x_2766); +lean_dec(x_2758); +x_2768 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2768, 0, x_2765); +lean_ctor_set(x_2768, 1, x_2767); +x_2769 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; +x_2770 = lean_array_push(x_2769, x_2768); +x_2771 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; +x_2772 = lean_array_push(x_2770, x_2771); +x_2773 = lean_array_push(x_2772, x_2731); +x_2774 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2774, 0, x_2763); +lean_ctor_set(x_2774, 1, x_2773); +x_2775 = lean_ctor_get(x_2470, 0); +lean_inc(x_2775); +x_2776 = lean_ctor_get(x_2470, 2); +lean_inc(x_2776); +x_2777 = lean_ctor_get(x_2470, 3); +lean_inc(x_2777); +x_2778 = lean_ctor_get(x_2470, 4); +lean_inc(x_2778); +if (lean_is_exclusive(x_2470)) { + lean_ctor_release(x_2470, 0); + lean_ctor_release(x_2470, 1); + lean_ctor_release(x_2470, 2); + lean_ctor_release(x_2470, 3); + lean_ctor_release(x_2470, 4); + x_2779 = x_2470; +} else { + lean_dec_ref(x_2470); + x_2779 = lean_box(0); +} +lean_inc(x_2757); +if (lean_is_scalar(x_2779)) { + x_2780 = lean_alloc_ctor(0, 5, 0); +} else { + x_2780 = x_2779; +} +lean_ctor_set(x_2780, 0, x_2775); +lean_ctor_set(x_2780, 1, x_2757); +lean_ctor_set(x_2780, 2, x_2776); +lean_ctor_set(x_2780, 3, x_2777); +lean_ctor_set(x_2780, 4, x_2778); +x_2781 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_2781, 0, x_2780); +lean_ctor_set(x_2781, 1, x_2471); +lean_ctor_set(x_2781, 2, x_2472); +lean_ctor_set(x_2781, 3, x_2473); +lean_ctor_set(x_2781, 4, x_2474); +lean_ctor_set(x_2781, 5, x_2475); +lean_ctor_set(x_2781, 6, x_2476); +lean_ctor_set(x_2781, 7, x_2477); +lean_ctor_set(x_2781, 8, x_2478); +lean_ctor_set(x_2781, 9, x_2479); +lean_ctor_set(x_2781, 10, x_1); +lean_ctor_set_uint8(x_2781, sizeof(void*)*11, x_2480); +lean_ctor_set_uint8(x_2781, sizeof(void*)*11 + 1, x_2481); +lean_ctor_set_uint8(x_2781, sizeof(void*)*11 + 2, x_2482); +x_2782 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_2774, x_2781, x_2762); +if (lean_obj_tag(x_2782) == 0) +{ +lean_object* x_2783; lean_object* x_2784; lean_object* x_2785; lean_object* x_2786; lean_object* x_2787; lean_object* x_2788; lean_object* x_2789; lean_object* x_2790; +x_2783 = lean_ctor_get(x_2782, 0); +lean_inc(x_2783); +x_2784 = lean_ctor_get(x_2782, 1); +lean_inc(x_2784); +if (lean_is_exclusive(x_2782)) { + lean_ctor_release(x_2782, 0); + lean_ctor_release(x_2782, 1); + x_2785 = x_2782; +} else { + lean_dec_ref(x_2782); + x_2785 = lean_box(0); +} +x_2786 = l_Lean_mkFVar(x_2746); +x_2787 = l_Lean_mkOptionalNode___closed__2; +x_2788 = lean_array_push(x_2787, x_2786); +x_2789 = l_Lean_LocalContext_mkLambda(x_2757, x_2788, x_2783); +lean_dec(x_2783); +lean_dec(x_2788); +if (lean_is_scalar(x_2785)) { + x_2790 = lean_alloc_ctor(0, 2, 0); +} else { + x_2790 = x_2785; +} +lean_ctor_set(x_2790, 0, x_2789); +lean_ctor_set(x_2790, 1, x_2784); +return x_2790; +} +else +{ +lean_object* x_2791; lean_object* x_2792; lean_object* x_2793; lean_object* x_2794; +lean_dec(x_2757); +lean_dec(x_2746); +x_2791 = lean_ctor_get(x_2782, 0); +lean_inc(x_2791); +x_2792 = lean_ctor_get(x_2782, 1); +lean_inc(x_2792); +if (lean_is_exclusive(x_2782)) { + lean_ctor_release(x_2782, 0); + lean_ctor_release(x_2782, 1); + x_2793 = x_2782; +} else { + lean_dec_ref(x_2782); + x_2793 = lean_box(0); +} +if (lean_is_scalar(x_2793)) { + x_2794 = lean_alloc_ctor(1, 2, 0); +} else { + x_2794 = x_2793; +} +lean_ctor_set(x_2794, 0, x_2791); +lean_ctor_set(x_2794, 1, x_2792); +return x_2794; +} +} +else +{ +lean_object* x_2795; lean_object* x_2796; lean_object* x_2797; lean_object* x_2798; +lean_dec(x_2746); +lean_dec(x_2738); +lean_dec(x_2731); +lean_dec(x_2729); +lean_dec(x_2483); +lean_dec(x_2479); +lean_dec(x_2478); +lean_dec(x_2477); +lean_dec(x_2476); +lean_dec(x_2475); +lean_dec(x_2474); +lean_dec(x_2473); +lean_dec(x_2472); +lean_dec(x_2471); +lean_dec(x_2470); +lean_dec(x_1); +x_2795 = lean_ctor_get(x_2750, 0); +lean_inc(x_2795); +x_2796 = lean_ctor_get(x_2750, 1); lean_inc(x_2796); -lean_dec(x_2730); -x_2797 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__14(x_26, x_2731, x_2796); -if (lean_is_scalar(x_2795)) { - x_2798 = lean_alloc_ctor(0, 2, 0); +if (lean_is_exclusive(x_2750)) { + lean_ctor_release(x_2750, 0); + lean_ctor_release(x_2750, 1); + x_2797 = x_2750; } else { - x_2798 = x_2795; + lean_dec_ref(x_2750); + x_2797 = lean_box(0); } -lean_ctor_set(x_2798, 0, x_2797); -lean_ctor_set(x_2798, 1, x_2794); +if (lean_is_scalar(x_2797)) { + x_2798 = lean_alloc_ctor(1, 2, 0); +} else { + x_2798 = x_2797; +} +lean_ctor_set(x_2798, 0, x_2795); +lean_ctor_set(x_2798, 1, x_2796); return x_2798; } } +else +{ +lean_object* x_2799; lean_object* x_2800; lean_object* x_2801; lean_object* x_2802; lean_object* x_2803; lean_object* x_2804; uint8_t x_2805; lean_object* x_2806; lean_object* x_2807; lean_object* x_2808; lean_object* x_2809; lean_object* x_2810; lean_object* x_2811; lean_object* x_2812; lean_object* x_2813; lean_object* x_2814; lean_object* x_2815; lean_object* x_2816; lean_object* x_2817; lean_object* x_2818; lean_object* x_2819; lean_object* x_2820; lean_object* x_2821; lean_object* x_2822; lean_object* x_2823; lean_object* x_2824; lean_object* x_2825; lean_object* x_2826; lean_object* x_2827; lean_object* x_2828; lean_object* x_2829; lean_object* x_2830; lean_object* x_2831; +lean_dec(x_2735); +x_2799 = l_Lean_Meta_rewriteCore___lambda__1___closed__4; +x_2800 = lean_name_mk_string(x_2504, x_2799); +x_2801 = l_Lean_Elab_Term_getLCtx(x_2483, x_3); +x_2802 = lean_ctor_get(x_2801, 0); +lean_inc(x_2802); +x_2803 = lean_ctor_get(x_2801, 1); +lean_inc(x_2803); +lean_dec(x_2801); +x_2804 = l___private_Lean_Elab_Quotation_9__exprPlaceholder; +x_2805 = 0; +lean_inc_n(x_2800, 2); +x_2806 = lean_local_ctx_mk_local_decl(x_2802, x_2800, x_2800, x_2804, x_2805); +x_2807 = l_Array_eraseIdx___rarg(x_2729, x_2733); +x_2808 = l_Lean_Elab_Term_getCurrMacroScope(x_2483, x_2803); +lean_dec(x_2483); +x_2809 = lean_ctor_get(x_2808, 1); +lean_inc(x_2809); +lean_dec(x_2808); +x_2810 = l_Lean_Elab_Term_getMainModule___rarg(x_2809); +x_2811 = lean_ctor_get(x_2810, 1); +lean_inc(x_2811); +lean_dec(x_2810); +x_2812 = lean_name_mk_string(x_2738, x_2548); +x_2813 = l_Lean_nullKind___closed__1; +x_2814 = lean_name_mk_string(x_2504, x_2813); +x_2815 = l_Array_empty___closed__1; +x_2816 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_2807, x_2807, x_2733, x_2815); +lean_dec(x_2807); +x_2817 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2817, 0, x_2814); +lean_ctor_set(x_2817, 1, x_2816); +x_2818 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; +x_2819 = lean_array_push(x_2818, x_2817); +x_2820 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; +x_2821 = lean_array_push(x_2819, x_2820); +x_2822 = lean_array_push(x_2821, x_2731); +x_2823 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2823, 0, x_2812); +lean_ctor_set(x_2823, 1, x_2822); +x_2824 = lean_ctor_get(x_2470, 0); +lean_inc(x_2824); +x_2825 = lean_ctor_get(x_2470, 2); +lean_inc(x_2825); +x_2826 = lean_ctor_get(x_2470, 3); +lean_inc(x_2826); +x_2827 = lean_ctor_get(x_2470, 4); +lean_inc(x_2827); +if (lean_is_exclusive(x_2470)) { + lean_ctor_release(x_2470, 0); + lean_ctor_release(x_2470, 1); + lean_ctor_release(x_2470, 2); + lean_ctor_release(x_2470, 3); + lean_ctor_release(x_2470, 4); + x_2828 = x_2470; +} else { + lean_dec_ref(x_2470); + x_2828 = lean_box(0); +} +lean_inc(x_2806); +if (lean_is_scalar(x_2828)) { + x_2829 = lean_alloc_ctor(0, 5, 0); +} else { + x_2829 = x_2828; +} +lean_ctor_set(x_2829, 0, x_2824); +lean_ctor_set(x_2829, 1, x_2806); +lean_ctor_set(x_2829, 2, x_2825); +lean_ctor_set(x_2829, 3, x_2826); +lean_ctor_set(x_2829, 4, x_2827); +x_2830 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_2830, 0, x_2829); +lean_ctor_set(x_2830, 1, x_2471); +lean_ctor_set(x_2830, 2, x_2472); +lean_ctor_set(x_2830, 3, x_2473); +lean_ctor_set(x_2830, 4, x_2474); +lean_ctor_set(x_2830, 5, x_2475); +lean_ctor_set(x_2830, 6, x_2476); +lean_ctor_set(x_2830, 7, x_2477); +lean_ctor_set(x_2830, 8, x_2478); +lean_ctor_set(x_2830, 9, x_2479); +lean_ctor_set(x_2830, 10, x_1); +lean_ctor_set_uint8(x_2830, sizeof(void*)*11, x_2480); +lean_ctor_set_uint8(x_2830, sizeof(void*)*11 + 1, x_2481); +lean_ctor_set_uint8(x_2830, sizeof(void*)*11 + 2, x_2482); +x_2831 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_2823, x_2830, x_2811); +if (lean_obj_tag(x_2831) == 0) +{ +lean_object* x_2832; lean_object* x_2833; lean_object* x_2834; lean_object* x_2835; lean_object* x_2836; lean_object* x_2837; lean_object* x_2838; lean_object* x_2839; +x_2832 = lean_ctor_get(x_2831, 0); +lean_inc(x_2832); +x_2833 = lean_ctor_get(x_2831, 1); +lean_inc(x_2833); +if (lean_is_exclusive(x_2831)) { + lean_ctor_release(x_2831, 0); + lean_ctor_release(x_2831, 1); + x_2834 = x_2831; +} else { + lean_dec_ref(x_2831); + x_2834 = lean_box(0); +} +x_2835 = l_Lean_mkFVar(x_2800); +x_2836 = l_Lean_mkOptionalNode___closed__2; +x_2837 = lean_array_push(x_2836, x_2835); +x_2838 = l_Lean_LocalContext_mkLambda(x_2806, x_2837, x_2832); +lean_dec(x_2832); +lean_dec(x_2837); +if (lean_is_scalar(x_2834)) { + x_2839 = lean_alloc_ctor(0, 2, 0); +} else { + x_2839 = x_2834; +} +lean_ctor_set(x_2839, 0, x_2838); +lean_ctor_set(x_2839, 1, x_2833); +return x_2839; +} +else +{ +lean_object* x_2840; lean_object* x_2841; lean_object* x_2842; lean_object* x_2843; +lean_dec(x_2806); +lean_dec(x_2800); +x_2840 = lean_ctor_get(x_2831, 0); +lean_inc(x_2840); +x_2841 = lean_ctor_get(x_2831, 1); +lean_inc(x_2841); +if (lean_is_exclusive(x_2831)) { + lean_ctor_release(x_2831, 0); + lean_ctor_release(x_2831, 1); + x_2842 = x_2831; +} else { + lean_dec_ref(x_2831); + x_2842 = lean_box(0); +} +if (lean_is_scalar(x_2842)) { + x_2843 = lean_alloc_ctor(1, 2, 0); +} else { + x_2843 = x_2842; +} +lean_ctor_set(x_2843, 0, x_2840); +lean_ctor_set(x_2843, 1, x_2841); +return x_2843; +} } } else { -lean_object* x_2799; lean_object* x_2800; lean_object* x_2801; lean_object* x_2802; -lean_dec(x_2); -x_2799 = lean_ctor_get(x_2724, 0); -lean_inc(x_2799); -x_2800 = lean_ctor_get(x_2724, 1); -lean_inc(x_2800); -if (lean_is_exclusive(x_2724)) { - lean_ctor_release(x_2724, 0); - lean_ctor_release(x_2724, 1); - x_2801 = x_2724; +lean_object* x_2844; lean_object* x_2845; lean_object* x_2846; lean_object* x_2847; lean_object* x_2848; uint8_t x_2849; lean_object* x_2850; lean_object* x_2851; lean_object* x_2852; lean_object* x_2853; lean_object* x_2854; lean_object* x_2855; lean_object* x_2856; lean_object* x_2857; lean_object* x_2858; lean_object* x_2859; lean_object* x_2860; lean_object* x_2861; lean_object* x_2862; lean_object* x_2863; lean_object* x_2864; lean_object* x_2865; lean_object* x_2866; lean_object* x_2867; lean_object* x_2868; lean_object* x_2869; lean_object* x_2870; lean_object* x_2871; lean_object* x_2872; lean_object* x_2873; lean_object* x_2874; lean_object* x_2875; +x_2844 = l_Lean_Syntax_getIdAt(x_2735, x_2733); +lean_dec(x_2735); +x_2845 = l_Lean_Elab_Term_getLCtx(x_2483, x_3); +x_2846 = lean_ctor_get(x_2845, 0); +lean_inc(x_2846); +x_2847 = lean_ctor_get(x_2845, 1); +lean_inc(x_2847); +lean_dec(x_2845); +x_2848 = l___private_Lean_Elab_Quotation_9__exprPlaceholder; +x_2849 = 0; +lean_inc_n(x_2844, 2); +x_2850 = lean_local_ctx_mk_local_decl(x_2846, x_2844, x_2844, x_2848, x_2849); +x_2851 = l_Array_eraseIdx___rarg(x_2729, x_2733); +x_2852 = l_Lean_Elab_Term_getCurrMacroScope(x_2483, x_2847); +lean_dec(x_2483); +x_2853 = lean_ctor_get(x_2852, 1); +lean_inc(x_2853); +lean_dec(x_2852); +x_2854 = l_Lean_Elab_Term_getMainModule___rarg(x_2853); +x_2855 = lean_ctor_get(x_2854, 1); +lean_inc(x_2855); +lean_dec(x_2854); +x_2856 = lean_name_mk_string(x_2738, x_2548); +x_2857 = l_Lean_nullKind___closed__1; +x_2858 = lean_name_mk_string(x_2504, x_2857); +x_2859 = l_Array_empty___closed__1; +x_2860 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_2851, x_2851, x_2733, x_2859); +lean_dec(x_2851); +x_2861 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2861, 0, x_2858); +lean_ctor_set(x_2861, 1, x_2860); +x_2862 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; +x_2863 = lean_array_push(x_2862, x_2861); +x_2864 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; +x_2865 = lean_array_push(x_2863, x_2864); +x_2866 = lean_array_push(x_2865, x_2731); +x_2867 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2867, 0, x_2856); +lean_ctor_set(x_2867, 1, x_2866); +x_2868 = lean_ctor_get(x_2470, 0); +lean_inc(x_2868); +x_2869 = lean_ctor_get(x_2470, 2); +lean_inc(x_2869); +x_2870 = lean_ctor_get(x_2470, 3); +lean_inc(x_2870); +x_2871 = lean_ctor_get(x_2470, 4); +lean_inc(x_2871); +if (lean_is_exclusive(x_2470)) { + lean_ctor_release(x_2470, 0); + lean_ctor_release(x_2470, 1); + lean_ctor_release(x_2470, 2); + lean_ctor_release(x_2470, 3); + lean_ctor_release(x_2470, 4); + x_2872 = x_2470; } else { - lean_dec_ref(x_2724); - x_2801 = lean_box(0); + lean_dec_ref(x_2470); + x_2872 = lean_box(0); } -if (lean_is_scalar(x_2801)) { - x_2802 = lean_alloc_ctor(1, 2, 0); +lean_inc(x_2850); +if (lean_is_scalar(x_2872)) { + x_2873 = lean_alloc_ctor(0, 5, 0); } else { - x_2802 = x_2801; + x_2873 = x_2872; +} +lean_ctor_set(x_2873, 0, x_2868); +lean_ctor_set(x_2873, 1, x_2850); +lean_ctor_set(x_2873, 2, x_2869); +lean_ctor_set(x_2873, 3, x_2870); +lean_ctor_set(x_2873, 4, x_2871); +x_2874 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_2874, 0, x_2873); +lean_ctor_set(x_2874, 1, x_2471); +lean_ctor_set(x_2874, 2, x_2472); +lean_ctor_set(x_2874, 3, x_2473); +lean_ctor_set(x_2874, 4, x_2474); +lean_ctor_set(x_2874, 5, x_2475); +lean_ctor_set(x_2874, 6, x_2476); +lean_ctor_set(x_2874, 7, x_2477); +lean_ctor_set(x_2874, 8, x_2478); +lean_ctor_set(x_2874, 9, x_2479); +lean_ctor_set(x_2874, 10, x_1); +lean_ctor_set_uint8(x_2874, sizeof(void*)*11, x_2480); +lean_ctor_set_uint8(x_2874, sizeof(void*)*11 + 1, x_2481); +lean_ctor_set_uint8(x_2874, sizeof(void*)*11 + 2, x_2482); +x_2875 = l___private_Lean_Elab_Quotation_10__toPreterm___main(x_2867, x_2874, x_2855); +if (lean_obj_tag(x_2875) == 0) +{ +lean_object* x_2876; lean_object* x_2877; lean_object* x_2878; lean_object* x_2879; lean_object* x_2880; lean_object* x_2881; lean_object* x_2882; lean_object* x_2883; +x_2876 = lean_ctor_get(x_2875, 0); +lean_inc(x_2876); +x_2877 = lean_ctor_get(x_2875, 1); +lean_inc(x_2877); +if (lean_is_exclusive(x_2875)) { + lean_ctor_release(x_2875, 0); + lean_ctor_release(x_2875, 1); + x_2878 = x_2875; +} else { + lean_dec_ref(x_2875); + x_2878 = lean_box(0); +} +x_2879 = l_Lean_mkFVar(x_2844); +x_2880 = l_Lean_mkOptionalNode___closed__2; +x_2881 = lean_array_push(x_2880, x_2879); +x_2882 = l_Lean_LocalContext_mkLambda(x_2850, x_2881, x_2876); +lean_dec(x_2876); +lean_dec(x_2881); +if (lean_is_scalar(x_2878)) { + x_2883 = lean_alloc_ctor(0, 2, 0); +} else { + x_2883 = x_2878; +} +lean_ctor_set(x_2883, 0, x_2882); +lean_ctor_set(x_2883, 1, x_2877); +return x_2883; +} +else +{ +lean_object* x_2884; lean_object* x_2885; lean_object* x_2886; lean_object* x_2887; +lean_dec(x_2850); +lean_dec(x_2844); +x_2884 = lean_ctor_get(x_2875, 0); +lean_inc(x_2884); +x_2885 = lean_ctor_get(x_2875, 1); +lean_inc(x_2885); +if (lean_is_exclusive(x_2875)) { + lean_ctor_release(x_2875, 0); + lean_ctor_release(x_2875, 1); + x_2886 = x_2875; +} else { + lean_dec_ref(x_2875); + x_2886 = lean_box(0); +} +if (lean_is_scalar(x_2886)) { + x_2887 = lean_alloc_ctor(1, 2, 0); +} else { + x_2887 = x_2886; +} +lean_ctor_set(x_2887, 0, x_2884); +lean_ctor_set(x_2887, 1, x_2885); +return x_2887; } -lean_ctor_set(x_2802, 0, x_2799); -lean_ctor_set(x_2802, 1, x_2800); -return x_2802; } } else { -lean_object* x_2803; lean_object* x_2804; lean_object* x_2805; -lean_dec(x_2720); +lean_dec(x_2729); +lean_dec(x_2479); +lean_dec(x_2478); +lean_dec(x_2477); +lean_dec(x_2476); +lean_dec(x_2475); +lean_dec(x_2474); +lean_dec(x_2473); +lean_dec(x_2472); +lean_dec(x_2471); +lean_dec(x_2470); lean_dec(x_1); -x_2803 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; -x_2804 = l_unreachable_x21___rarg(x_2803); -x_2805 = lean_apply_2(x_2804, x_2, x_3); -return x_2805; +x_1 = x_2731; +x_2 = x_2483; +goto _start; } } } +else +{ +lean_object* x_2889; lean_object* x_2890; lean_object* x_2891; +lean_dec(x_2519); +lean_dec(x_2515); +lean_dec(x_2512); +lean_dec(x_2509); +lean_dec(x_2505); +lean_dec(x_2479); +lean_dec(x_2478); +lean_dec(x_2477); +lean_dec(x_2476); +lean_dec(x_2475); +lean_dec(x_2474); +lean_dec(x_2473); +lean_dec(x_2472); +lean_dec(x_2471); +lean_dec(x_2470); +lean_dec(x_1); +x_2889 = l_Lean_Syntax_inhabited; +x_2890 = lean_unsigned_to_nat(0u); +x_2891 = lean_array_get(x_2889, x_4, x_2890); +lean_dec(x_4); +if (lean_obj_tag(x_2891) == 3) +{ +lean_object* x_2892; lean_object* x_2893; lean_object* x_2894; lean_object* x_2895; +x_2892 = lean_ctor_get(x_2891, 2); +lean_inc(x_2892); +x_2893 = lean_ctor_get(x_2891, 3); +lean_inc(x_2893); +lean_dec(x_2891); +x_2894 = lean_box(0); +lean_inc(x_2483); +x_2895 = l_Lean_Elab_Term_resolveName(x_2892, x_2893, x_2894, x_2483, x_3); +if (lean_obj_tag(x_2895) == 0) +{ +lean_object* x_2896; +x_2896 = lean_ctor_get(x_2895, 0); +lean_inc(x_2896); +if (lean_obj_tag(x_2896) == 0) +{ +lean_object* x_2897; lean_object* x_2898; lean_object* x_2899; lean_object* x_2900; +x_2897 = lean_ctor_get(x_2895, 1); +lean_inc(x_2897); +lean_dec(x_2895); +x_2898 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; +x_2899 = l_unreachable_x21___rarg(x_2898); +x_2900 = lean_apply_2(x_2899, x_2483, x_2897); +return x_2900; +} +else +{ +lean_object* x_2901; lean_object* x_2902; +lean_dec(x_2483); +x_2901 = lean_ctor_get(x_2896, 0); +lean_inc(x_2901); +lean_dec(x_2896); +x_2902 = lean_ctor_get(x_2901, 0); +lean_inc(x_2902); +switch (lean_obj_tag(x_2902)) { +case 0: +{ +lean_object* x_2903; lean_object* x_2904; lean_object* x_2905; lean_object* x_2906; lean_object* x_2907; +x_2903 = lean_ctor_get(x_2895, 1); +lean_inc(x_2903); +if (lean_is_exclusive(x_2895)) { + lean_ctor_release(x_2895, 0); + lean_ctor_release(x_2895, 1); + x_2904 = x_2895; +} else { + lean_dec_ref(x_2895); + x_2904 = lean_box(0); +} +x_2905 = lean_ctor_get(x_2901, 1); +lean_inc(x_2905); +lean_dec(x_2901); +x_2906 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__2(x_2504, x_2902, x_2905); +if (lean_is_scalar(x_2904)) { + x_2907 = lean_alloc_ctor(0, 2, 0); +} else { + x_2907 = x_2904; +} +lean_ctor_set(x_2907, 0, x_2906); +lean_ctor_set(x_2907, 1, x_2903); +return x_2907; +} +case 1: +{ +lean_object* x_2908; lean_object* x_2909; lean_object* x_2910; lean_object* x_2911; lean_object* x_2912; +x_2908 = lean_ctor_get(x_2895, 1); +lean_inc(x_2908); +if (lean_is_exclusive(x_2895)) { + lean_ctor_release(x_2895, 0); + lean_ctor_release(x_2895, 1); + x_2909 = x_2895; +} else { + lean_dec_ref(x_2895); + x_2909 = lean_box(0); +} +x_2910 = lean_ctor_get(x_2901, 1); +lean_inc(x_2910); +lean_dec(x_2901); +x_2911 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__3(x_2504, x_2902, x_2910); +if (lean_is_scalar(x_2909)) { + x_2912 = lean_alloc_ctor(0, 2, 0); +} else { + x_2912 = x_2909; +} +lean_ctor_set(x_2912, 0, x_2911); +lean_ctor_set(x_2912, 1, x_2908); +return x_2912; +} +case 2: +{ +lean_object* x_2913; lean_object* x_2914; lean_object* x_2915; lean_object* x_2916; lean_object* x_2917; +x_2913 = lean_ctor_get(x_2895, 1); +lean_inc(x_2913); +if (lean_is_exclusive(x_2895)) { + lean_ctor_release(x_2895, 0); + lean_ctor_release(x_2895, 1); + x_2914 = x_2895; +} else { + lean_dec_ref(x_2895); + x_2914 = lean_box(0); +} +x_2915 = lean_ctor_get(x_2901, 1); +lean_inc(x_2915); +lean_dec(x_2901); +x_2916 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__4(x_2504, x_2902, x_2915); +if (lean_is_scalar(x_2914)) { + x_2917 = lean_alloc_ctor(0, 2, 0); +} else { + x_2917 = x_2914; +} +lean_ctor_set(x_2917, 0, x_2916); +lean_ctor_set(x_2917, 1, x_2913); +return x_2917; +} +case 3: +{ +lean_object* x_2918; lean_object* x_2919; lean_object* x_2920; lean_object* x_2921; lean_object* x_2922; +x_2918 = lean_ctor_get(x_2895, 1); +lean_inc(x_2918); +if (lean_is_exclusive(x_2895)) { + lean_ctor_release(x_2895, 0); + lean_ctor_release(x_2895, 1); + x_2919 = x_2895; +} else { + lean_dec_ref(x_2895); + x_2919 = lean_box(0); +} +x_2920 = lean_ctor_get(x_2901, 1); +lean_inc(x_2920); +lean_dec(x_2901); +x_2921 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__5(x_2504, x_2902, x_2920); +if (lean_is_scalar(x_2919)) { + x_2922 = lean_alloc_ctor(0, 2, 0); +} else { + x_2922 = x_2919; +} +lean_ctor_set(x_2922, 0, x_2921); +lean_ctor_set(x_2922, 1, x_2918); +return x_2922; +} +case 4: +{ +lean_object* x_2923; lean_object* x_2924; lean_object* x_2925; lean_object* x_2926; lean_object* x_2927; lean_object* x_2928; lean_object* x_2929; +x_2923 = lean_ctor_get(x_2895, 1); +lean_inc(x_2923); +if (lean_is_exclusive(x_2895)) { + lean_ctor_release(x_2895, 0); + lean_ctor_release(x_2895, 1); + x_2924 = x_2895; +} else { + lean_dec_ref(x_2895); + x_2924 = lean_box(0); +} +x_2925 = lean_ctor_get(x_2901, 1); +lean_inc(x_2925); +lean_dec(x_2901); +x_2926 = lean_ctor_get(x_2902, 0); +lean_inc(x_2926); +lean_dec(x_2902); +x_2927 = l_Lean_mkConst(x_2926, x_2894); +x_2928 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__6(x_2504, x_2927, x_2925); +if (lean_is_scalar(x_2924)) { + x_2929 = lean_alloc_ctor(0, 2, 0); +} else { + x_2929 = x_2924; +} +lean_ctor_set(x_2929, 0, x_2928); +lean_ctor_set(x_2929, 1, x_2923); +return x_2929; +} +case 5: +{ +lean_object* x_2930; lean_object* x_2931; lean_object* x_2932; lean_object* x_2933; lean_object* x_2934; +x_2930 = lean_ctor_get(x_2895, 1); +lean_inc(x_2930); +if (lean_is_exclusive(x_2895)) { + lean_ctor_release(x_2895, 0); + lean_ctor_release(x_2895, 1); + x_2931 = x_2895; +} else { + lean_dec_ref(x_2895); + x_2931 = lean_box(0); +} +x_2932 = lean_ctor_get(x_2901, 1); +lean_inc(x_2932); +lean_dec(x_2901); +x_2933 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__7(x_2504, x_2902, x_2932); +if (lean_is_scalar(x_2931)) { + x_2934 = lean_alloc_ctor(0, 2, 0); +} else { + x_2934 = x_2931; +} +lean_ctor_set(x_2934, 0, x_2933); +lean_ctor_set(x_2934, 1, x_2930); +return x_2934; +} +case 6: +{ +lean_object* x_2935; lean_object* x_2936; lean_object* x_2937; lean_object* x_2938; lean_object* x_2939; +x_2935 = lean_ctor_get(x_2895, 1); +lean_inc(x_2935); +if (lean_is_exclusive(x_2895)) { + lean_ctor_release(x_2895, 0); + lean_ctor_release(x_2895, 1); + x_2936 = x_2895; +} else { + lean_dec_ref(x_2895); + x_2936 = lean_box(0); +} +x_2937 = lean_ctor_get(x_2901, 1); +lean_inc(x_2937); +lean_dec(x_2901); +x_2938 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__8(x_2504, x_2902, x_2937); +if (lean_is_scalar(x_2936)) { + x_2939 = lean_alloc_ctor(0, 2, 0); +} else { + x_2939 = x_2936; +} +lean_ctor_set(x_2939, 0, x_2938); +lean_ctor_set(x_2939, 1, x_2935); +return x_2939; +} +case 7: +{ +lean_object* x_2940; lean_object* x_2941; lean_object* x_2942; lean_object* x_2943; lean_object* x_2944; +x_2940 = lean_ctor_get(x_2895, 1); +lean_inc(x_2940); +if (lean_is_exclusive(x_2895)) { + lean_ctor_release(x_2895, 0); + lean_ctor_release(x_2895, 1); + x_2941 = x_2895; +} else { + lean_dec_ref(x_2895); + x_2941 = lean_box(0); +} +x_2942 = lean_ctor_get(x_2901, 1); +lean_inc(x_2942); +lean_dec(x_2901); +x_2943 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__9(x_2504, x_2902, x_2942); +if (lean_is_scalar(x_2941)) { + x_2944 = lean_alloc_ctor(0, 2, 0); +} else { + x_2944 = x_2941; +} +lean_ctor_set(x_2944, 0, x_2943); +lean_ctor_set(x_2944, 1, x_2940); +return x_2944; +} +case 8: +{ +lean_object* x_2945; lean_object* x_2946; lean_object* x_2947; lean_object* x_2948; lean_object* x_2949; +x_2945 = lean_ctor_get(x_2895, 1); +lean_inc(x_2945); +if (lean_is_exclusive(x_2895)) { + lean_ctor_release(x_2895, 0); + lean_ctor_release(x_2895, 1); + x_2946 = x_2895; +} else { + lean_dec_ref(x_2895); + x_2946 = lean_box(0); +} +x_2947 = lean_ctor_get(x_2901, 1); +lean_inc(x_2947); +lean_dec(x_2901); +x_2948 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__10(x_2504, x_2902, x_2947); +if (lean_is_scalar(x_2946)) { + x_2949 = lean_alloc_ctor(0, 2, 0); +} else { + x_2949 = x_2946; +} +lean_ctor_set(x_2949, 0, x_2948); +lean_ctor_set(x_2949, 1, x_2945); +return x_2949; +} +case 9: +{ +lean_object* x_2950; lean_object* x_2951; lean_object* x_2952; lean_object* x_2953; lean_object* x_2954; +x_2950 = lean_ctor_get(x_2895, 1); +lean_inc(x_2950); +if (lean_is_exclusive(x_2895)) { + lean_ctor_release(x_2895, 0); + lean_ctor_release(x_2895, 1); + x_2951 = x_2895; +} else { + lean_dec_ref(x_2895); + x_2951 = lean_box(0); +} +x_2952 = lean_ctor_get(x_2901, 1); +lean_inc(x_2952); +lean_dec(x_2901); +x_2953 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__11(x_2504, x_2902, x_2952); +if (lean_is_scalar(x_2951)) { + x_2954 = lean_alloc_ctor(0, 2, 0); +} else { + x_2954 = x_2951; +} +lean_ctor_set(x_2954, 0, x_2953); +lean_ctor_set(x_2954, 1, x_2950); +return x_2954; +} +case 10: +{ +lean_object* x_2955; lean_object* x_2956; lean_object* x_2957; lean_object* x_2958; lean_object* x_2959; +x_2955 = lean_ctor_get(x_2895, 1); +lean_inc(x_2955); +if (lean_is_exclusive(x_2895)) { + lean_ctor_release(x_2895, 0); + lean_ctor_release(x_2895, 1); + x_2956 = x_2895; +} else { + lean_dec_ref(x_2895); + x_2956 = lean_box(0); +} +x_2957 = lean_ctor_get(x_2901, 1); +lean_inc(x_2957); +lean_dec(x_2901); +x_2958 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__12(x_2504, x_2902, x_2957); +if (lean_is_scalar(x_2956)) { + x_2959 = lean_alloc_ctor(0, 2, 0); +} else { + x_2959 = x_2956; +} +lean_ctor_set(x_2959, 0, x_2958); +lean_ctor_set(x_2959, 1, x_2955); +return x_2959; +} +case 11: +{ +lean_object* x_2960; lean_object* x_2961; lean_object* x_2962; lean_object* x_2963; lean_object* x_2964; +x_2960 = lean_ctor_get(x_2895, 1); +lean_inc(x_2960); +if (lean_is_exclusive(x_2895)) { + lean_ctor_release(x_2895, 0); + lean_ctor_release(x_2895, 1); + x_2961 = x_2895; +} else { + lean_dec_ref(x_2895); + x_2961 = lean_box(0); +} +x_2962 = lean_ctor_get(x_2901, 1); +lean_inc(x_2962); +lean_dec(x_2901); +x_2963 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__13(x_2504, x_2902, x_2962); +if (lean_is_scalar(x_2961)) { + x_2964 = lean_alloc_ctor(0, 2, 0); +} else { + x_2964 = x_2961; +} +lean_ctor_set(x_2964, 0, x_2963); +lean_ctor_set(x_2964, 1, x_2960); +return x_2964; +} +default: +{ +lean_object* x_2965; lean_object* x_2966; lean_object* x_2967; lean_object* x_2968; lean_object* x_2969; +x_2965 = lean_ctor_get(x_2895, 1); +lean_inc(x_2965); +if (lean_is_exclusive(x_2895)) { + lean_ctor_release(x_2895, 0); + lean_ctor_release(x_2895, 1); + x_2966 = x_2895; +} else { + lean_dec_ref(x_2895); + x_2966 = lean_box(0); +} +x_2967 = lean_ctor_get(x_2901, 1); +lean_inc(x_2967); +lean_dec(x_2901); +x_2968 = l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__14(x_2504, x_2902, x_2967); +if (lean_is_scalar(x_2966)) { + x_2969 = lean_alloc_ctor(0, 2, 0); +} else { + x_2969 = x_2966; +} +lean_ctor_set(x_2969, 0, x_2968); +lean_ctor_set(x_2969, 1, x_2965); +return x_2969; +} +} +} +} +else +{ +lean_object* x_2970; lean_object* x_2971; lean_object* x_2972; lean_object* x_2973; +lean_dec(x_2483); +x_2970 = lean_ctor_get(x_2895, 0); +lean_inc(x_2970); +x_2971 = lean_ctor_get(x_2895, 1); +lean_inc(x_2971); +if (lean_is_exclusive(x_2895)) { + lean_ctor_release(x_2895, 0); + lean_ctor_release(x_2895, 1); + x_2972 = x_2895; +} else { + lean_dec_ref(x_2895); + x_2972 = lean_box(0); +} +if (lean_is_scalar(x_2972)) { + x_2973 = lean_alloc_ctor(1, 2, 0); +} else { + x_2973 = x_2972; +} +lean_ctor_set(x_2973, 0, x_2970); +lean_ctor_set(x_2973, 1, x_2971); +return x_2973; +} +} +else +{ +lean_object* x_2974; lean_object* x_2975; lean_object* x_2976; +lean_dec(x_2891); +x_2974 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; +x_2975 = l_unreachable_x21___rarg(x_2974); +x_2976 = lean_apply_2(x_2975, x_2483, x_3); +return x_2976; +} +} } } } } else { -lean_object* x_2806; -lean_dec(x_26); -lean_dec(x_25); -lean_dec(x_24); -lean_dec(x_15); +lean_object* x_2977; +lean_dec(x_2504); +lean_dec(x_2503); +lean_dec(x_2502); +lean_dec(x_2493); +lean_dec(x_2479); +lean_dec(x_2478); +lean_dec(x_2477); +lean_dec(x_2476); +lean_dec(x_2475); +lean_dec(x_2474); +lean_dec(x_2473); +lean_dec(x_2472); +lean_dec(x_2471); +lean_dec(x_2470); lean_dec(x_4); -x_2806 = lean_box(0); -x_6 = x_2806; -goto block_14; +lean_dec(x_1); +x_2977 = lean_box(0); +x_2484 = x_2977; +goto block_2492; } } else { -lean_object* x_2807; -lean_dec(x_25); -lean_dec(x_24); -lean_dec(x_15); +lean_object* x_2978; +lean_dec(x_2503); +lean_dec(x_2502); +lean_dec(x_2493); +lean_dec(x_2479); +lean_dec(x_2478); +lean_dec(x_2477); +lean_dec(x_2476); +lean_dec(x_2475); +lean_dec(x_2474); +lean_dec(x_2473); +lean_dec(x_2472); +lean_dec(x_2471); +lean_dec(x_2470); lean_dec(x_4); -x_2807 = lean_box(0); -x_6 = x_2807; -goto block_14; +lean_dec(x_1); +x_2978 = lean_box(0); +x_2484 = x_2978; +goto block_2492; } } else { -lean_object* x_2808; -lean_dec(x_24); -lean_dec(x_15); +lean_object* x_2979; +lean_dec(x_2502); +lean_dec(x_2493); +lean_dec(x_2479); +lean_dec(x_2478); +lean_dec(x_2477); +lean_dec(x_2476); +lean_dec(x_2475); +lean_dec(x_2474); +lean_dec(x_2473); +lean_dec(x_2472); +lean_dec(x_2471); +lean_dec(x_2470); lean_dec(x_4); -x_2808 = lean_box(0); -x_6 = x_2808; -goto block_14; +lean_dec(x_1); +x_2979 = lean_box(0); +x_2484 = x_2979; +goto block_2492; } } default: { -lean_object* x_2809; -lean_dec(x_15); +lean_object* x_2980; +lean_dec(x_2493); +lean_dec(x_2479); +lean_dec(x_2478); +lean_dec(x_2477); +lean_dec(x_2476); +lean_dec(x_2475); +lean_dec(x_2474); +lean_dec(x_2473); +lean_dec(x_2472); +lean_dec(x_2471); +lean_dec(x_2470); lean_dec(x_4); -x_2809 = lean_box(0); -x_6 = x_2809; -goto block_14; +lean_dec(x_1); +x_2980 = lean_box(0); +x_2484 = x_2980; +goto block_2492; } } } else { -lean_object* x_2810; +lean_object* x_2981; +lean_dec(x_2479); +lean_dec(x_2478); +lean_dec(x_2477); +lean_dec(x_2476); +lean_dec(x_2475); +lean_dec(x_2474); +lean_dec(x_2473); +lean_dec(x_2472); +lean_dec(x_2471); +lean_dec(x_2470); lean_dec(x_4); -x_2810 = lean_box(0); -x_6 = x_2810; -goto block_14; -} -block_14: -{ -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_dec(x_6); -x_7 = l_Lean_Name_toString___closed__1; -x_8 = l_Lean_Name_toStringWithSep___main(x_7, x_5); -x_9 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_9, 0, x_8); -x_10 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_10, 0, x_9); -x_11 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__3; -x_12 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_10); -x_13 = l_Lean_Elab_Term_throwError___rarg(x_1, x_12, x_2, x_3); lean_dec(x_1); -return x_13; +x_2981 = lean_box(0); +x_2484 = x_2981; +goto block_2492; +} +block_2492: +{ +lean_object* x_2485; lean_object* x_2486; lean_object* x_2487; lean_object* x_2488; lean_object* x_2489; lean_object* x_2490; lean_object* x_2491; +lean_dec(x_2484); +x_2485 = l_Lean_Name_toString___closed__1; +x_2486 = l_Lean_Name_toStringWithSep___main(x_2485, x_5); +x_2487 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2487, 0, x_2486); +x_2488 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2488, 0, x_2487); +x_2489 = l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__3; +x_2490 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_2490, 0, x_2489); +lean_ctor_set(x_2490, 1, x_2488); +x_2491 = l_Lean_Elab_Term_throwError___rarg(x_2490, x_2483, x_3); +return x_2491; +} } } } @@ -24537,7 +26111,7 @@ return x_2; lean_object* l___private_Lean_Elab_Quotation_11__oldRunTermElabM___rarg(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; 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* x_18; lean_object* x_19; uint8_t 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_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* x_18; lean_object* x_19; uint8_t 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; x_3 = lean_ctor_get(x_1, 0); lean_inc(x_3); x_4 = lean_ctor_get(x_1, 1); @@ -24566,89 +26140,91 @@ x_17 = l___private_Lean_Elab_Quotation_11__oldRunTermElabM___rarg___closed__3; x_18 = l___private_Lean_Elab_Quotation_11__oldRunTermElabM___rarg___closed__2; x_19 = l_Lean_firstFrontendMacroScope; x_20 = 1; -x_21 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_21, 0, x_12); -lean_ctor_set(x_21, 1, x_17); -lean_ctor_set(x_21, 2, x_18); -lean_ctor_set(x_21, 3, x_10); -lean_ctor_set(x_21, 4, x_13); -lean_ctor_set(x_21, 5, x_14); -lean_ctor_set(x_21, 6, x_15); -lean_ctor_set(x_21, 7, x_16); -lean_ctor_set(x_21, 8, x_15); -lean_ctor_set(x_21, 9, x_19); -lean_ctor_set_uint8(x_21, sizeof(void*)*10, x_20); -lean_ctor_set_uint8(x_21, sizeof(void*)*10 + 1, x_20); -lean_ctor_set_uint8(x_21, sizeof(void*)*10 + 2, x_20); -x_22 = l_Lean_MetavarContext_Inhabited___closed__1; -x_23 = l_Lean_Meta_run___rarg___closed__5; -x_24 = l_Lean_NameGenerator_Inhabited___closed__3; -x_25 = l_Lean_TraceState_Inhabited___closed__1; -x_26 = l_Std_PersistentArray_empty___closed__3; -x_27 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_27, 0, x_3); -lean_ctor_set(x_27, 1, x_22); -lean_ctor_set(x_27, 2, x_23); -lean_ctor_set(x_27, 3, x_24); -lean_ctor_set(x_27, 4, x_25); -lean_ctor_set(x_27, 5, x_26); -x_28 = lean_unsigned_to_nat(1u); -x_29 = l_Lean_Unhygienic_run___rarg___closed__1; -x_30 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_30, 0, x_27); -lean_ctor_set(x_30, 1, x_15); -lean_ctor_set(x_30, 2, x_26); -lean_ctor_set(x_30, 3, x_28); -lean_ctor_set(x_30, 4, x_28); -lean_ctor_set(x_30, 5, x_29); -x_31 = lean_apply_2(x_2, x_21, x_30); -if (lean_obj_tag(x_31) == 0) +x_21 = lean_box(0); +x_22 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_22, 0, x_12); +lean_ctor_set(x_22, 1, x_17); +lean_ctor_set(x_22, 2, x_18); +lean_ctor_set(x_22, 3, x_10); +lean_ctor_set(x_22, 4, x_13); +lean_ctor_set(x_22, 5, x_14); +lean_ctor_set(x_22, 6, x_15); +lean_ctor_set(x_22, 7, x_16); +lean_ctor_set(x_22, 8, x_15); +lean_ctor_set(x_22, 9, x_19); +lean_ctor_set(x_22, 10, x_21); +lean_ctor_set_uint8(x_22, sizeof(void*)*11, x_20); +lean_ctor_set_uint8(x_22, sizeof(void*)*11 + 1, x_20); +lean_ctor_set_uint8(x_22, sizeof(void*)*11 + 2, x_20); +x_23 = l_Lean_MetavarContext_Inhabited___closed__1; +x_24 = l_Lean_Meta_run___rarg___closed__5; +x_25 = l_Lean_NameGenerator_Inhabited___closed__3; +x_26 = l_Lean_TraceState_Inhabited___closed__1; +x_27 = l_Std_PersistentArray_empty___closed__3; +x_28 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_28, 0, x_3); +lean_ctor_set(x_28, 1, x_23); +lean_ctor_set(x_28, 2, x_24); +lean_ctor_set(x_28, 3, x_25); +lean_ctor_set(x_28, 4, x_26); +lean_ctor_set(x_28, 5, x_27); +x_29 = lean_unsigned_to_nat(1u); +x_30 = l_Lean_Unhygienic_run___rarg___closed__1; +x_31 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_31, 0, x_28); +lean_ctor_set(x_31, 1, x_15); +lean_ctor_set(x_31, 2, x_27); +lean_ctor_set(x_31, 3, x_29); +lean_ctor_set(x_31, 4, x_29); +lean_ctor_set(x_31, 5, x_30); +x_32 = lean_apply_2(x_2, x_22, x_31); +if (lean_obj_tag(x_32) == 0) { -lean_object* x_32; lean_object* x_33; -x_32 = lean_ctor_get(x_31, 0); -lean_inc(x_32); -lean_dec(x_31); -x_33 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_33, 0, x_32); -return x_33; +lean_object* x_33; lean_object* x_34; +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +lean_dec(x_32); +x_34 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_34, 0, x_33); +return x_34; } else { -lean_object* x_34; -x_34 = lean_ctor_get(x_31, 0); -lean_inc(x_34); -lean_dec(x_31); -if (lean_obj_tag(x_34) == 0) -{ lean_object* x_35; -x_35 = lean_ctor_get(x_34, 0); +x_35 = lean_ctor_get(x_32, 0); lean_inc(x_35); -lean_dec(x_34); +lean_dec(x_32); if (lean_obj_tag(x_35) == 0) { -lean_object* x_36; lean_object* x_37; lean_object* x_38; +lean_object* x_36; x_36 = lean_ctor_get(x_35, 0); lean_inc(x_36); lean_dec(x_35); -x_37 = l_Lean_Message_toString(x_36); -x_38 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_38, 0, x_37); -return x_38; -} -else +if (lean_obj_tag(x_36) == 0) { -lean_object* x_39; -x_39 = l___private_Lean_Elab_Quotation_11__oldRunTermElabM___rarg___closed__4; +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +lean_dec(x_36); +x_38 = l_Lean_Message_toString(x_37); +x_39 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_39, 0, x_38); return x_39; } -} else { lean_object* x_40; -x_40 = l___private_Lean_Elab_Quotation_11__oldRunTermElabM___rarg___closed__5; +x_40 = l___private_Lean_Elab_Quotation_11__oldRunTermElabM___rarg___closed__4; return x_40; } } +else +{ +lean_object* x_41; +x_41 = l___private_Lean_Elab_Quotation_11__oldRunTermElabM___rarg___closed__5; +return x_41; +} +} } } lean_object* l___private_Lean_Elab_Quotation_11__oldRunTermElabM(lean_object* x_1) { @@ -24867,7 +26443,7 @@ return x_3; lean_object* lean_expand_match_syntax(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +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; x_4 = lean_box(0); x_5 = l_Lean_mkOptionalNode___closed__2; x_6 = lean_array_push(x_5, x_2); @@ -24879,17 +26455,15 @@ x_9 = l_List_map___main___at_Lean_Elab_Term_Quotation_oldExpandMatchSyntax___spe x_10 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_10, 0, x_8); lean_ctor_set(x_10, 1, x_4); -x_11 = lean_box(0); -x_12 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_6__compileStxMatch___boxed), 5, 3); -lean_closure_set(x_12, 0, x_11); -lean_closure_set(x_12, 1, x_10); -lean_closure_set(x_12, 2, x_9); -x_13 = l_Lean_Elab_Term_Quotation_oldExpandStxQuot___closed__1; -x_14 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Term_monadLog___spec__2___rarg), 4, 2); -lean_closure_set(x_14, 0, x_12); -lean_closure_set(x_14, 1, x_13); -x_15 = l___private_Lean_Elab_Quotation_11__oldRunTermElabM___rarg(x_1, x_14); -return x_15; +x_11 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_6__compileStxMatch), 4, 2); +lean_closure_set(x_11, 0, x_10); +lean_closure_set(x_11, 1, x_9); +x_12 = l_Lean_Elab_Term_Quotation_oldExpandStxQuot___closed__1; +x_13 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Term_monadLog___spec__2___rarg), 4, 2); +lean_closure_set(x_13, 0, x_11); +lean_closure_set(x_13, 1, x_12); +x_14 = l___private_Lean_Elab_Quotation_11__oldRunTermElabM___rarg(x_1, x_13); +return x_14; } } lean_object* initialize_Init(lean_object*); diff --git a/stage0/stdlib/Lean/Elab/StructInst.c b/stage0/stdlib/Lean/Elab/StructInst.c index 769a4214fa..3115bca577 100644 --- a/stage0/stdlib/Lean/Elab/StructInst.c +++ b/stage0/stdlib/Lean/Elab/StructInst.c @@ -14,7 +14,7 @@ extern "C" { #endif lean_object* l_List_reverse___rarg(lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_formatStruct___main(lean_object*); lean_object* l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__3; lean_object* l_Lean_Elab_Term_StructInst_Struct_modifyFields(lean_object*, lean_object*); @@ -22,11 +22,12 @@ lean_object* l_Lean_fmt___at_Lean_Position_Lean_HasFormat___spec__1(lean_object* lean_object* l_Lean_Elab_Term_getEnv___rarg(lean_object*); extern lean_object* l_Lean_Name_toString___closed__1; lean_object* l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_5__getStructName___closed__4; extern lean_object* l___private_Lean_Elab_App_18__elabAppLValsAux___main___closed__2; lean_object* l___private_Lean_Elab_StructInst_17__groupFields___lambda__2___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_12__mkFieldMap(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__2; lean_object* l___private_Lean_Elab_StructInst_2__getStructSource___closed__3; +lean_object* l_Lean_Elab_Term_throwErrorAt___rarg(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_fieldIdxKind; lean_object* l_Lean_Expr_mvarId_x21(lean_object*); lean_object* l_List_tail_x21___rarg(lean_object*); @@ -37,11 +38,11 @@ lean_object* l___private_Lean_Elab_StructInst_18__addMissingFields(lean_object*, lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__6; lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__7; lean_object* l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM(lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__4(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_formatStruct___main___closed__4; -lean_object* l_Lean_Elab_Term_mkFreshExprMVar(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkFreshExprMVar(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Expr_4__getAppRevArgsAux___main(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth___main___boxed(lean_object*); lean_object* l_unreachable_x21___rarg(lean_object*); @@ -55,11 +56,12 @@ uint8_t l_USize_decEq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); lean_object* l_Lean_Format_joinSep___main___at_Lean_Elab_Term_StructInst_formatField___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_inferType(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_inferType(lean_object*, lean_object*, lean_object*); lean_object* lean_expr_update_mdata(lean_object*, lean_object*); lean_object* l_Lean_Format_pretty(lean_object*, lean_object*); extern lean_object* l_Lean_List_format___rarg___closed__2; uint8_t lean_name_eq(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_5__getStructName___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_3__isModifyOp_x3f(lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_7__mkStructView___spec__2(lean_object*); lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_StructInst_14__getFieldIdx___spec__1___boxed(lean_object*, lean_object*, lean_object*); @@ -94,13 +96,14 @@ extern lean_object* l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3_ lean_object* l_Std_HashMapImp_moveEntries___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__6(lean_object*, lean_object*, lean_object*); lean_object* l_List_append___rarg(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__11(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_Elab_StructInst_5__getStructName___rarg___closed__1; uint8_t l_Lean_Expr_isApp(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_formatStruct___main___closed__5; lean_object* l___regBuiltin_Lean_Elab_Term_StructInst_elabStructInst(lean_object*); extern lean_object* l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; lean_object* l_List_foldlM___main___at___private_Lean_Elab_StructInst_24__elabStruct___main___spec__1___closed__2; lean_object* l_Lean_Elab_Term_StructInst_FieldLHS_inhabited___closed__1; -lean_object* l___private_Lean_Elab_StructInst_16__mkSubstructSource___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_16__mkSubstructSource___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkIdentFrom(lean_object*, lean_object*); lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__5; lean_object* l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__2; @@ -115,6 +118,7 @@ lean_object* l_List_find_x3f___main___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Struct_setFields(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___closed__2; lean_object* l_Std_HashMap_toList___rarg(lean_object*); +lean_object* l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__4; lean_object* l_Lean_Meta_forallTelescope___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_14__getFieldIdx___closed__2; lean_object* l_List_map___main___rarg(lean_object*, lean_object*); @@ -143,7 +147,7 @@ lean_object* l_List_head_x21___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_25__elabStructInstAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__12; lean_object* l___private_Lean_Elab_StructInst_9__expandNumLitFields(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_assignExprMVar(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_foldl___main___at_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth___main___spec__1___boxed(lean_object*, lean_object*); @@ -151,7 +155,7 @@ lean_object* l_Lean_Elab_Term_getMainModule___rarg(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_propagate(lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__7; lean_object* l___private_Lean_Elab_StructInst_18__addMissingFields___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* l___private_Lean_Elab_StructInst_17__groupFields___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_17__groupFields___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_27__regTraceClasses(lean_object*); lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__26; extern lean_object* l_Lean_mkAppStx___closed__8; @@ -159,27 +163,26 @@ lean_object* l___private_Lean_Elab_StructInst_21__getForallBody(lean_object*, le lean_object* l_Lean_Elab_Term_StructInst_Source_inhabited; lean_object* l_Lean_fmt___at_Lean_Level_LevelToFormat_toResult___main___spec__1(lean_object*); extern lean_object* l_Lean_Elab_Term_expandCDot_x3f___closed__4; -lean_object* l___private_Lean_Elab_Term_3__fromMetaState(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Term_3__fromMetaState(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___closed__1; lean_object* l_Lean_Environment_getProjectionStructureName_x3f(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_ensureHasType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_ensureHasType(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Field_isSimple___rarg___boxed(lean_object*); -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___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_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_AssocList_foldlM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__7(lean_object*, lean_object*); lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__1(lean_object*, lean_object*); extern lean_object* l_Lean_Format_sbracket___closed__2; lean_object* l___private_Lean_Elab_StructInst_13__isSimpleField_x3f___boxed(lean_object*); -lean_object* l_Lean_Elab_Term_whnf(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_whnf(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_15__mkProjStx(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getOptions(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_FieldLHS_toSyntax___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_17__groupFields___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_FieldLHS_hasFormat(lean_object*); extern lean_object* l_Lean_mkTermIdFromIdent___closed__2; -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_23__mkCtorHeader___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_23__mkCtorHeader___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Source_isNone___boxed(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Struct_inhabited; lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__6; @@ -190,7 +193,7 @@ lean_object* l_Lean_Expr_getAppNumArgsAux___main(lean_object*, lean_object*); uint8_t lean_metavar_ctx_is_expr_assigned(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f___main(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__2; -lean_object* l___private_Lean_Elab_StructInst_17__groupFields___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_17__groupFields___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__4; lean_object* l_Lean_Elab_Term_StructInst_isDefaultMissing_x3f___boxed(lean_object*); @@ -210,7 +213,7 @@ lean_object* l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFiel lean_object* l___private_Lean_Elab_StructInst_24__elabStruct___main(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_formatStruct(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Field_isSimple(lean_object*); -lean_object* l___private_Lean_Elab_StructInst_17__groupFields___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_17__groupFields___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_append___main(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Struct_fields___boxed(lean_object*); lean_object* l_Array_shrink___main___rarg(lean_object*, lean_object*); @@ -218,8 +221,8 @@ lean_object* l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___close lean_object* l_Lean_Expr_FindImpl_findM_x3f___main___at_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_FieldLHS_toSyntax(uint8_t, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_22__propagateExpectedType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__6; +lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_List_head_x21___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__3___boxed(lean_object*); lean_object* l_Lean_mkAnnotation(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__1; @@ -232,7 +235,7 @@ lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandPa lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_17__groupFields___lambda__1(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Field_inhabited(lean_object*); -lean_object* l___private_Lean_Elab_StructInst_22__propagateExpectedType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_22__propagateExpectedType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_instantiate_type_lparams(lean_object*, lean_object*); lean_object* l_Std_HashMap_toList___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__6___boxed(lean_object*); lean_object* l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__2; @@ -245,7 +248,6 @@ extern lean_object* l_Std_PersistentArray_Stats_toString___closed__4; lean_object* l_List_head_x21___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__3(lean_object*); lean_object* l___private_Lean_Elab_StructInst_12__mkFieldMap___closed__1; size_t l_Lean_Name_hash(lean_object*); -lean_object* l_Lean_Elab_Term_elabTermAux___main(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_repr(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_markDefaultMissing___closed__1; lean_object* l___private_Lean_Elab_StructInst_17__groupFields___lambda__3___closed__3; @@ -254,21 +256,20 @@ lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__24; lean_object* l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__4; lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduceProjOf_x3f(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_logTrace(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_23__mkCtorHeader___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_AssocList_contains___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__4___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__1; lean_object* l_Array_iterateMAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_23__mkCtorHeader(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_23__mkCtorHeader(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__10; -lean_object* l___private_Lean_Elab_StructInst_5__getStructName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_5__getStructName(lean_object*); lean_object* l_Lean_Syntax_getId(lean_object*); lean_object* l_Lean_Syntax_prettyPrint(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_markDefaultMissing___closed__2; lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_7__mkStructView___spec__2___closed__1; -lean_object* l_Lean_Elab_Term_throwError___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_throwError___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__1(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_fun___elambda__1___closed__2; lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__16; lean_object* l_Lean_getStructureFields(lean_object*, lean_object*); @@ -280,7 +281,6 @@ lean_object* l_Std_HashMapImp_insert___at___private_Lean_Elab_StructInst_12__mkF lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___closed__2; extern lean_object* l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; lean_object* l_Lean_Elab_Term_StructInst_Struct_hasFormat___closed__1; -lean_object* l___private_Lean_Elab_StructInst_5__getStructName___closed__3; lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduce(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__6; lean_object* l_Lean_Elab_Term_StructInst_findField_x3f(lean_object*, lean_object*); @@ -323,14 +323,12 @@ lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__5; extern lean_object* l_Lean_Parser_Term_structInstField___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_StructInst_setStructSourceSyntax(lean_object*, lean_object*); lean_object* lean_expr_update_proj(lean_object*, lean_object*); -lean_object* l_List_mapM___main___at_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValue_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Std_AssocList_contains___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__4(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_26__expandStructInstExpectedType___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f___main(lean_object*, lean_object*); extern lean_object* l_Lean_nullKind___closed__2; lean_object* l_Lean_mkSepStx(lean_object*, lean_object*); -lean_object* l_List_mapM___main___at_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValue_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_termElabAttribute; extern lean_object* l_Lean_Format_sbracket___closed__3; lean_object* l_fix1___rarg___lambda__1___boxed(lean_object*, lean_object*); @@ -338,7 +336,7 @@ lean_object* l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___mai lean_object* l_Lean_mkAtomFrom(lean_object*, lean_object*); size_t l_USize_mod(size_t, size_t); lean_object* l_Lean_Elab_Term_StructInst_FieldLHS_inhabited; -lean_object* l_Lean_Elab_Term_isDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_isDefEq(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__28; lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__15; lean_object* l___private_Lean_Elab_StructInst_9__expandNumLitFields___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); @@ -363,7 +361,6 @@ lean_object* l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed_ lean_object* l_Lean_Elab_Term_StructInst_formatField___closed__1; lean_object* l_Lean_Elab_Term_setMCtx(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkHole(lean_object*); -lean_object* l___private_Lean_Elab_StructInst_5__getStructName___closed__5; lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__2; lean_object* l_Lean_Syntax_setArg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__4; @@ -390,15 +387,16 @@ lean_object* lean_panic_fn(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_step___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__2; lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__4; -lean_object* l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__14; lean_object* l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__1; extern lean_object* l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___closed__2; lean_object* l___private_Lean_Elab_StructInst_19__expandStruct(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getFieldName(lean_object*); -lean_object* l___private_Lean_Elab_StructInst_16__mkSubstructSource(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_16__mkSubstructSource(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Struct_ref___boxed(lean_object*); +lean_object* l_Lean_Elab_Term_getCurrRef(lean_object*, lean_object*); lean_object* l_Std_HashMap_toList___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__6(lean_object*); lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__25; lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_isRoundDone(lean_object*, lean_object*, lean_object*, lean_object*); @@ -408,7 +406,7 @@ lean_object* l_Lean_Elab_Term_isExprMVarAssigned(lean_object*, lean_object*, lea lean_object* l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM___at_Lean_Elab_Term_StructInst_Struct_modifyFields___spec__1(lean_object*, lean_object*); lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__8; -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_tryPostponeIfMVar(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getStructureCtor(lean_object*, lean_object*); lean_object* lean_nat_mul(lean_object*, lean_object*); @@ -416,13 +414,13 @@ lean_object* l_Lean_Elab_Term_StructInst_Struct_source(lean_object*); lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_StructInst_14__getFieldIdx___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Struct_hasToString___closed__1; lean_object* l_List_foldlM___main___at___private_Lean_Elab_StructInst_24__elabStruct___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_17__groupFields___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_17__groupFields___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_letIdDecl___closed__2; lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduceProjOf_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkAppStx___closed__9; lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__4; lean_object* l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__6; -lean_object* l_Lean_Elab_Term_whnfForall(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_whnfForall(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__2; lean_object* l_List_map___main___at___private_Lean_Elab_StructInst_8__expandCompositeFields___spec__1(lean_object*, lean_object*); uint8_t l_Lean_Syntax_isNone(lean_object*); @@ -430,9 +428,9 @@ lean_object* l___private_Lean_Elab_StructInst_17__groupFields(lean_object*, lean extern lean_object* l_Lean_TraceState_Inhabited___closed__1; lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__9; lean_object* l___private_Lean_Elab_StructInst_2__getStructSource(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__6; -lean_object* l___private_Lean_Elab_StructInst_17__groupFields___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_17__groupFields___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_Elab_Term_StructInst_DefaultFields_propagateLoop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_PUnit_Inhabited; extern lean_object* l_Lean_mkOptionalNode___closed__1; @@ -459,23 +457,21 @@ uint8_t l_Lean_Elab_Term_StructInst_Source_isNone(lean_object*); lean_object* l_List_foldl___main___at_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames___main___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__6; lean_object* l_Lean_Elab_Term_StructInst_Struct_hasFormat; -lean_object* l_Lean_Elab_Term_mkFreshLevelMVar(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkFreshLevelMVar(lean_object*, lean_object*); extern lean_object* l_Lean_MessageData_arrayExpr_toMessageData___main___closed__2; -lean_object* l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames___main(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__21; -lean_object* l___private_Lean_Elab_StructInst_14__getFieldIdx(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_5__getStructName___closed__6; +lean_object* l___private_Lean_Elab_StructInst_14__getFieldIdx(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__5; lean_object* l___private_Lean_Elab_StructInst_18__addMissingFields___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__10(lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___main___spec__1___closed__1; lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__6; lean_object* l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__13; -lean_object* l___private_Lean_Elab_StructInst_14__getFieldIdx___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_14__getFieldIdx___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Field_hasToString___closed__1; -lean_object* l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__1; lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduce___main___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); @@ -488,8 +484,8 @@ lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandPa lean_object* l_Lean_Elab_Term_StructInst_formatStruct___main___closed__3; lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__23; lean_object* l___private_Lean_Elab_StructInst_14__getFieldIdx___closed__1; +lean_object* l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6; lean_object* l_List_map___main___at___private_Lean_Elab_StructInst_8__expandCompositeFields___spec__2(lean_object*); -lean_object* l___private_Lean_Elab_StructInst_2__getStructSource___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f___main___lambda__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Field_inhabited___closed__1; lean_object* l_List_toArrayAux___main___rarg(lean_object*, lean_object*); @@ -501,7 +497,7 @@ lean_object* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(lean_object*, extern lean_object* l_Lean_arrayToExpr___rarg___closed__2; lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__8; lean_object* l_Lean_Elab_Term_StructInst_Field_hasFormat; -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___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_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__8(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_6__toFieldLHS(lean_object*); lean_object* l___private_Lean_Elab_StructInst_26__expandStructInstExpectedType(lean_object*, lean_object*, lean_object*); @@ -517,24 +513,23 @@ lean_object* l_Lean_Elab_Term_isLocalTermId_x3f(lean_object*, uint8_t, lean_obje lean_object* l_Lean_indentExpr(lean_object*); lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__2; lean_object* l___private_Lean_Elab_StructInst_19__expandStruct___main(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__3; lean_object* l___private_Lean_Elab_StructInst_2__getStructSource___closed__1; lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getFieldValue_x3f___lambda__1___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__1; -lean_object* l___private_Lean_Elab_Term_2__fromMetaException(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Term_2__fromMetaException(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Field_toSyntax(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_formatStruct___main___closed__2; lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__4; -lean_object* l___private_Lean_Elab_StructInst_5__getStructName___closed__2; lean_object* l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__9; lean_object* l___private_Lean_Elab_StructInst_21__getForallBody___main(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_FieldVal_toSyntax(lean_object*); lean_object* l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__5; lean_object* l_Lean_findField_x3f___main(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_5__getStructName___closed__1; -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_DefaultFields_reduce___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_StructInst_5__getStructName___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_StructInst_5__getStructName___boxed(lean_object*); lean_object* l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames___boxed(lean_object*, lean_object*); lean_object* l_Lean_Name_components(lean_object*); @@ -784,7 +779,7 @@ return x_88; } else { -lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; uint8_t x_98; uint8_t x_99; uint8_t x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; uint8_t x_104; lean_object* x_105; lean_object* x_106; +lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; uint8_t x_98; uint8_t x_99; uint8_t x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; uint8_t x_105; lean_object* x_106; lean_object* x_107; x_89 = lean_ctor_get(x_2, 0); x_90 = lean_ctor_get(x_2, 1); x_91 = lean_ctor_get(x_2, 2); @@ -794,9 +789,11 @@ x_94 = lean_ctor_get(x_2, 5); x_95 = lean_ctor_get(x_2, 6); x_96 = lean_ctor_get(x_2, 7); x_97 = lean_ctor_get(x_2, 8); -x_98 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_99 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); -x_100 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 2); +x_98 = lean_ctor_get_uint8(x_2, sizeof(void*)*11); +x_99 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 1); +x_100 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 2); +x_101 = lean_ctor_get(x_2, 10); +lean_inc(x_101); lean_inc(x_97); lean_inc(x_96); lean_inc(x_95); @@ -807,213 +804,216 @@ lean_inc(x_91); lean_inc(x_90); lean_inc(x_89); lean_dec(x_2); -x_101 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_101, 0, x_89); -lean_ctor_set(x_101, 1, x_90); -lean_ctor_set(x_101, 2, x_91); -lean_ctor_set(x_101, 3, x_92); -lean_ctor_set(x_101, 4, x_93); -lean_ctor_set(x_101, 5, x_94); -lean_ctor_set(x_101, 6, x_95); -lean_ctor_set(x_101, 7, x_96); -lean_ctor_set(x_101, 8, x_97); -lean_ctor_set(x_101, 9, x_8); -lean_ctor_set_uint8(x_101, sizeof(void*)*10, x_98); -lean_ctor_set_uint8(x_101, sizeof(void*)*10 + 1, x_99); -lean_ctor_set_uint8(x_101, sizeof(void*)*10 + 2, x_100); -x_102 = lean_unsigned_to_nat(0u); -x_103 = l_Lean_Syntax_getArg(x_5, x_102); -x_104 = 0; -lean_inc(x_103); -x_105 = l_Lean_Elab_Term_isLocalTermId_x3f(x_103, x_104, x_101, x_3); -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; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; -x_107 = lean_ctor_get(x_105, 1); +x_102 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_102, 0, x_89); +lean_ctor_set(x_102, 1, x_90); +lean_ctor_set(x_102, 2, x_91); +lean_ctor_set(x_102, 3, x_92); +lean_ctor_set(x_102, 4, x_93); +lean_ctor_set(x_102, 5, x_94); +lean_ctor_set(x_102, 6, x_95); +lean_ctor_set(x_102, 7, x_96); +lean_ctor_set(x_102, 8, x_97); +lean_ctor_set(x_102, 9, x_8); +lean_ctor_set(x_102, 10, x_101); +lean_ctor_set_uint8(x_102, sizeof(void*)*11, x_98); +lean_ctor_set_uint8(x_102, sizeof(void*)*11 + 1, x_99); +lean_ctor_set_uint8(x_102, sizeof(void*)*11 + 2, x_100); +x_103 = lean_unsigned_to_nat(0u); +x_104 = l_Lean_Syntax_getArg(x_5, x_103); +x_105 = 0; +lean_inc(x_104); +x_106 = l_Lean_Elab_Term_isLocalTermId_x3f(x_104, x_105, x_102, x_3); +x_107 = lean_ctor_get(x_106, 0); lean_inc(x_107); -lean_dec(x_105); -x_108 = l_Lean_Elab_Term_getCurrMacroScope(x_101, x_107); -x_109 = lean_ctor_get(x_108, 0); -lean_inc(x_109); -x_110 = lean_ctor_get(x_108, 1); +if (lean_obj_tag(x_107) == 0) +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; +x_108 = lean_ctor_get(x_106, 1); +lean_inc(x_108); +lean_dec(x_106); +x_109 = l_Lean_Elab_Term_getCurrMacroScope(x_102, x_108); +x_110 = lean_ctor_get(x_109, 0); lean_inc(x_110); -lean_dec(x_108); -x_111 = l_Lean_Elab_Term_getMainModule___rarg(x_110); -x_112 = lean_ctor_get(x_111, 0); -lean_inc(x_112); -x_113 = lean_ctor_get(x_111, 1); +x_111 = lean_ctor_get(x_109, 1); +lean_inc(x_111); +lean_dec(x_109); +x_112 = l_Lean_Elab_Term_getMainModule___rarg(x_111); +x_113 = lean_ctor_get(x_112, 0); lean_inc(x_113); -lean_dec(x_111); -x_114 = l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__4; -x_115 = l_Lean_addMacroScope(x_112, x_114, x_109); -x_116 = lean_box(0); -x_117 = l_Lean_SourceInfo_inhabited___closed__1; -x_118 = l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__3; -x_119 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_119, 0, x_117); -lean_ctor_set(x_119, 1, x_118); -lean_ctor_set(x_119, 2, x_115); -lean_ctor_set(x_119, 3, x_116); -x_120 = l_Array_empty___closed__1; -x_121 = lean_array_push(x_120, x_119); -x_122 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; -x_123 = lean_array_push(x_121, x_122); -x_124 = l_Lean_mkTermIdFromIdent___closed__2; -x_125 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_125, 0, x_124); -lean_ctor_set(x_125, 1, x_123); -x_126 = l_Lean_Syntax_setArg(x_5, x_102, x_125); -x_127 = l_Lean_Syntax_setArg(x_1, x_4, x_126); -x_128 = l_Lean_Elab_Term_getCurrMacroScope(x_101, x_113); -lean_dec(x_101); -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_128, 1); +x_114 = lean_ctor_get(x_112, 1); +lean_inc(x_114); +lean_dec(x_112); +x_115 = l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__4; +x_116 = l_Lean_addMacroScope(x_113, x_115, x_110); +x_117 = lean_box(0); +x_118 = l_Lean_SourceInfo_inhabited___closed__1; +x_119 = l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__3; +x_120 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_120, 0, x_118); +lean_ctor_set(x_120, 1, x_119); +lean_ctor_set(x_120, 2, x_116); +lean_ctor_set(x_120, 3, x_117); +x_121 = l_Array_empty___closed__1; +x_122 = lean_array_push(x_121, x_120); +x_123 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; +x_124 = lean_array_push(x_122, x_123); +x_125 = l_Lean_mkTermIdFromIdent___closed__2; +x_126 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_126, 0, x_125); +lean_ctor_set(x_126, 1, x_124); +x_127 = l_Lean_Syntax_setArg(x_5, x_103, x_126); +x_128 = l_Lean_Syntax_setArg(x_1, x_4, x_127); +x_129 = l_Lean_Elab_Term_getCurrMacroScope(x_102, x_114); +lean_dec(x_102); +x_130 = lean_ctor_get(x_129, 0); lean_inc(x_130); -lean_dec(x_128); -x_131 = l_Lean_Elab_Term_getMainModule___rarg(x_130); -x_132 = lean_ctor_get(x_131, 0); -lean_inc(x_132); -x_133 = lean_ctor_get(x_131, 1); +x_131 = lean_ctor_get(x_129, 1); +lean_inc(x_131); +lean_dec(x_129); +x_132 = l_Lean_Elab_Term_getMainModule___rarg(x_131); +x_133 = lean_ctor_get(x_132, 0); lean_inc(x_133); -if (lean_is_exclusive(x_131)) { - lean_ctor_release(x_131, 0); - lean_ctor_release(x_131, 1); - x_134 = x_131; +x_134 = lean_ctor_get(x_132, 1); +lean_inc(x_134); +if (lean_is_exclusive(x_132)) { + lean_ctor_release(x_132, 0); + lean_ctor_release(x_132, 1); + x_135 = x_132; } else { - lean_dec_ref(x_131); - x_134 = lean_box(0); + lean_dec_ref(x_132); + x_135 = lean_box(0); } -x_135 = l_Lean_addMacroScope(x_132, x_114, x_129); -x_136 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_136, 0, x_117); -lean_ctor_set(x_136, 1, x_118); -lean_ctor_set(x_136, 2, x_135); -lean_ctor_set(x_136, 3, x_116); -x_137 = lean_array_push(x_120, x_136); -x_138 = lean_array_push(x_137, x_122); -x_139 = lean_array_push(x_138, x_122); -x_140 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; -x_141 = lean_array_push(x_139, x_140); -x_142 = lean_array_push(x_141, x_103); -x_143 = l_Lean_Parser_Term_letIdDecl___closed__2; -x_144 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_144, 0, x_143); -lean_ctor_set(x_144, 1, x_142); -x_145 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; -x_146 = lean_array_push(x_145, x_144); -x_147 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; -x_148 = lean_array_push(x_146, x_147); -x_149 = lean_array_push(x_148, x_127); -x_150 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_151 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_151, 0, x_150); -lean_ctor_set(x_151, 1, x_149); -x_152 = lean_alloc_ctor(1, 1, 0); +x_136 = l_Lean_addMacroScope(x_133, x_115, x_130); +x_137 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_137, 0, x_118); +lean_ctor_set(x_137, 1, x_119); +lean_ctor_set(x_137, 2, x_136); +lean_ctor_set(x_137, 3, x_117); +x_138 = lean_array_push(x_121, x_137); +x_139 = lean_array_push(x_138, x_123); +x_140 = lean_array_push(x_139, x_123); +x_141 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; +x_142 = lean_array_push(x_140, x_141); +x_143 = lean_array_push(x_142, x_104); +x_144 = l_Lean_Parser_Term_letIdDecl___closed__2; +x_145 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_145, 0, x_144); +lean_ctor_set(x_145, 1, x_143); +x_146 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; +x_147 = lean_array_push(x_146, x_145); +x_148 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; +x_149 = lean_array_push(x_147, x_148); +x_150 = lean_array_push(x_149, x_128); +x_151 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_152 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_152, 0, x_151); -if (lean_is_scalar(x_134)) { - x_153 = lean_alloc_ctor(0, 2, 0); -} else { - x_153 = x_134; -} +lean_ctor_set(x_152, 1, x_150); +x_153 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_153, 0, x_152); -lean_ctor_set(x_153, 1, x_133); -return x_153; +if (lean_is_scalar(x_135)) { + x_154 = lean_alloc_ctor(0, 2, 0); +} else { + x_154 = x_135; +} +lean_ctor_set(x_154, 0, x_153); +lean_ctor_set(x_154, 1, x_134); +return x_154; } else { -lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; -lean_dec(x_106); -lean_dec(x_103); -lean_dec(x_101); +lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; +lean_dec(x_107); +lean_dec(x_104); +lean_dec(x_102); lean_dec(x_5); lean_dec(x_1); -x_154 = lean_ctor_get(x_105, 1); -lean_inc(x_154); -if (lean_is_exclusive(x_105)) { - lean_ctor_release(x_105, 0); - lean_ctor_release(x_105, 1); - x_155 = x_105; +x_155 = lean_ctor_get(x_106, 1); +lean_inc(x_155); +if (lean_is_exclusive(x_106)) { + lean_ctor_release(x_106, 0); + lean_ctor_release(x_106, 1); + x_156 = x_106; } else { - lean_dec_ref(x_105); - x_155 = lean_box(0); + lean_dec_ref(x_106); + x_156 = lean_box(0); } -x_156 = lean_box(0); -if (lean_is_scalar(x_155)) { - x_157 = lean_alloc_ctor(0, 2, 0); +x_157 = lean_box(0); +if (lean_is_scalar(x_156)) { + x_158 = lean_alloc_ctor(0, 2, 0); } else { - x_157 = x_155; + x_158 = x_156; } -lean_ctor_set(x_157, 0, x_156); -lean_ctor_set(x_157, 1, x_154); -return x_157; +lean_ctor_set(x_158, 0, x_157); +lean_ctor_set(x_158, 1, x_155); +return x_158; } } } else { -lean_object* x_158; lean_object* x_159; +lean_object* x_159; lean_object* x_160; lean_dec(x_8); lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); -x_158 = lean_box(0); -x_159 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_159, 0, x_158); -lean_ctor_set(x_159, 1, x_3); -return x_159; +x_159 = lean_box(0); +x_160 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_160, 0, x_159); +lean_ctor_set(x_160, 1, x_3); +return x_160; } } else { -lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; -x_160 = lean_ctor_get(x_3, 0); -x_161 = lean_ctor_get(x_3, 1); -x_162 = lean_ctor_get(x_3, 2); -x_163 = lean_ctor_get(x_3, 3); -x_164 = lean_ctor_get(x_3, 4); -x_165 = lean_ctor_get(x_3, 5); +lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; +x_161 = lean_ctor_get(x_3, 0); +x_162 = lean_ctor_get(x_3, 1); +x_163 = lean_ctor_get(x_3, 2); +x_164 = lean_ctor_get(x_3, 3); +x_165 = lean_ctor_get(x_3, 4); +x_166 = lean_ctor_get(x_3, 5); +lean_inc(x_166); lean_inc(x_165); lean_inc(x_164); lean_inc(x_163); lean_inc(x_162); lean_inc(x_161); -lean_inc(x_160); lean_dec(x_3); -x_166 = lean_nat_add(x_165, x_4); -x_167 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_167, 0, x_160); -lean_ctor_set(x_167, 1, x_161); -lean_ctor_set(x_167, 2, x_162); -lean_ctor_set(x_167, 3, x_163); -lean_ctor_set(x_167, 4, x_164); -lean_ctor_set(x_167, 5, x_166); +x_167 = lean_nat_add(x_166, x_4); +x_168 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_168, 0, x_161); +lean_ctor_set(x_168, 1, x_162); +lean_ctor_set(x_168, 2, x_163); +lean_ctor_set(x_168, 3, x_164); +lean_ctor_set(x_168, 4, x_165); +lean_ctor_set(x_168, 5, x_167); if (x_6 == 0) { -lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; uint8_t x_177; uint8_t x_178; uint8_t x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; uint8_t x_184; lean_object* x_185; lean_object* x_186; -x_168 = lean_ctor_get(x_2, 0); -lean_inc(x_168); -x_169 = lean_ctor_get(x_2, 1); +lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; uint8_t x_178; uint8_t x_179; uint8_t x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; uint8_t x_186; lean_object* x_187; lean_object* x_188; +x_169 = lean_ctor_get(x_2, 0); lean_inc(x_169); -x_170 = lean_ctor_get(x_2, 2); +x_170 = lean_ctor_get(x_2, 1); lean_inc(x_170); -x_171 = lean_ctor_get(x_2, 3); +x_171 = lean_ctor_get(x_2, 2); lean_inc(x_171); -x_172 = lean_ctor_get(x_2, 4); +x_172 = lean_ctor_get(x_2, 3); lean_inc(x_172); -x_173 = lean_ctor_get(x_2, 5); +x_173 = lean_ctor_get(x_2, 4); lean_inc(x_173); -x_174 = lean_ctor_get(x_2, 6); +x_174 = lean_ctor_get(x_2, 5); lean_inc(x_174); -x_175 = lean_ctor_get(x_2, 7); +x_175 = lean_ctor_get(x_2, 6); lean_inc(x_175); -x_176 = lean_ctor_get(x_2, 8); +x_176 = lean_ctor_get(x_2, 7); lean_inc(x_176); -x_177 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_178 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); -x_179 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 2); +x_177 = lean_ctor_get(x_2, 8); +lean_inc(x_177); +x_178 = lean_ctor_get_uint8(x_2, sizeof(void*)*11); +x_179 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 1); +x_180 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 2); +x_181 = lean_ctor_get(x_2, 10); +lean_inc(x_181); if (lean_is_exclusive(x_2)) { lean_ctor_release(x_2, 0); lean_ctor_release(x_2, 1); @@ -1025,171 +1025,173 @@ if (lean_is_exclusive(x_2)) { lean_ctor_release(x_2, 7); lean_ctor_release(x_2, 8); lean_ctor_release(x_2, 9); - x_180 = x_2; + lean_ctor_release(x_2, 10); + x_182 = x_2; } else { lean_dec_ref(x_2); - x_180 = lean_box(0); + x_182 = lean_box(0); } -if (lean_is_scalar(x_180)) { - x_181 = lean_alloc_ctor(0, 10, 3); +if (lean_is_scalar(x_182)) { + x_183 = lean_alloc_ctor(0, 11, 3); } else { - x_181 = x_180; + x_183 = x_182; } -lean_ctor_set(x_181, 0, x_168); -lean_ctor_set(x_181, 1, x_169); -lean_ctor_set(x_181, 2, x_170); -lean_ctor_set(x_181, 3, x_171); -lean_ctor_set(x_181, 4, x_172); -lean_ctor_set(x_181, 5, x_173); -lean_ctor_set(x_181, 6, x_174); -lean_ctor_set(x_181, 7, x_175); -lean_ctor_set(x_181, 8, x_176); -lean_ctor_set(x_181, 9, x_165); -lean_ctor_set_uint8(x_181, sizeof(void*)*10, x_177); -lean_ctor_set_uint8(x_181, sizeof(void*)*10 + 1, x_178); -lean_ctor_set_uint8(x_181, sizeof(void*)*10 + 2, x_179); -x_182 = lean_unsigned_to_nat(0u); -x_183 = l_Lean_Syntax_getArg(x_5, x_182); -x_184 = 0; -lean_inc(x_183); -x_185 = l_Lean_Elab_Term_isLocalTermId_x3f(x_183, x_184, x_181, x_167); -x_186 = lean_ctor_get(x_185, 0); -lean_inc(x_186); -if (lean_obj_tag(x_186) == 0) +lean_ctor_set(x_183, 0, x_169); +lean_ctor_set(x_183, 1, x_170); +lean_ctor_set(x_183, 2, x_171); +lean_ctor_set(x_183, 3, x_172); +lean_ctor_set(x_183, 4, x_173); +lean_ctor_set(x_183, 5, x_174); +lean_ctor_set(x_183, 6, x_175); +lean_ctor_set(x_183, 7, x_176); +lean_ctor_set(x_183, 8, x_177); +lean_ctor_set(x_183, 9, x_166); +lean_ctor_set(x_183, 10, x_181); +lean_ctor_set_uint8(x_183, sizeof(void*)*11, x_178); +lean_ctor_set_uint8(x_183, sizeof(void*)*11 + 1, x_179); +lean_ctor_set_uint8(x_183, sizeof(void*)*11 + 2, x_180); +x_184 = lean_unsigned_to_nat(0u); +x_185 = l_Lean_Syntax_getArg(x_5, x_184); +x_186 = 0; +lean_inc(x_185); +x_187 = l_Lean_Elab_Term_isLocalTermId_x3f(x_185, x_186, x_183, x_168); +x_188 = lean_ctor_get(x_187, 0); +lean_inc(x_188); +if (lean_obj_tag(x_188) == 0) { -lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; -x_187 = lean_ctor_get(x_185, 1); -lean_inc(x_187); -lean_dec(x_185); -x_188 = l_Lean_Elab_Term_getCurrMacroScope(x_181, x_187); -x_189 = lean_ctor_get(x_188, 0); +lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; +x_189 = lean_ctor_get(x_187, 1); lean_inc(x_189); -x_190 = lean_ctor_get(x_188, 1); -lean_inc(x_190); -lean_dec(x_188); -x_191 = l_Lean_Elab_Term_getMainModule___rarg(x_190); -x_192 = lean_ctor_get(x_191, 0); +lean_dec(x_187); +x_190 = l_Lean_Elab_Term_getCurrMacroScope(x_183, x_189); +x_191 = lean_ctor_get(x_190, 0); +lean_inc(x_191); +x_192 = lean_ctor_get(x_190, 1); lean_inc(x_192); -x_193 = lean_ctor_get(x_191, 1); -lean_inc(x_193); -lean_dec(x_191); -x_194 = l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__4; -x_195 = l_Lean_addMacroScope(x_192, x_194, x_189); -x_196 = lean_box(0); -x_197 = l_Lean_SourceInfo_inhabited___closed__1; -x_198 = l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__3; -x_199 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_199, 0, x_197); -lean_ctor_set(x_199, 1, x_198); -lean_ctor_set(x_199, 2, x_195); -lean_ctor_set(x_199, 3, x_196); -x_200 = l_Array_empty___closed__1; -x_201 = lean_array_push(x_200, x_199); -x_202 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; -x_203 = lean_array_push(x_201, x_202); -x_204 = l_Lean_mkTermIdFromIdent___closed__2; -x_205 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_205, 0, x_204); -lean_ctor_set(x_205, 1, x_203); -x_206 = l_Lean_Syntax_setArg(x_5, x_182, x_205); -x_207 = l_Lean_Syntax_setArg(x_1, x_4, x_206); -x_208 = l_Lean_Elab_Term_getCurrMacroScope(x_181, x_193); -lean_dec(x_181); -x_209 = lean_ctor_get(x_208, 0); -lean_inc(x_209); -x_210 = lean_ctor_get(x_208, 1); -lean_inc(x_210); -lean_dec(x_208); -x_211 = l_Lean_Elab_Term_getMainModule___rarg(x_210); -x_212 = lean_ctor_get(x_211, 0); +lean_dec(x_190); +x_193 = l_Lean_Elab_Term_getMainModule___rarg(x_192); +x_194 = lean_ctor_get(x_193, 0); +lean_inc(x_194); +x_195 = lean_ctor_get(x_193, 1); +lean_inc(x_195); +lean_dec(x_193); +x_196 = l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__4; +x_197 = l_Lean_addMacroScope(x_194, x_196, x_191); +x_198 = lean_box(0); +x_199 = l_Lean_SourceInfo_inhabited___closed__1; +x_200 = l___private_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__3; +x_201 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_201, 0, x_199); +lean_ctor_set(x_201, 1, x_200); +lean_ctor_set(x_201, 2, x_197); +lean_ctor_set(x_201, 3, x_198); +x_202 = l_Array_empty___closed__1; +x_203 = lean_array_push(x_202, x_201); +x_204 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; +x_205 = lean_array_push(x_203, x_204); +x_206 = l_Lean_mkTermIdFromIdent___closed__2; +x_207 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_207, 0, x_206); +lean_ctor_set(x_207, 1, x_205); +x_208 = l_Lean_Syntax_setArg(x_5, x_184, x_207); +x_209 = l_Lean_Syntax_setArg(x_1, x_4, x_208); +x_210 = l_Lean_Elab_Term_getCurrMacroScope(x_183, x_195); +lean_dec(x_183); +x_211 = lean_ctor_get(x_210, 0); +lean_inc(x_211); +x_212 = lean_ctor_get(x_210, 1); lean_inc(x_212); -x_213 = lean_ctor_get(x_211, 1); -lean_inc(x_213); -if (lean_is_exclusive(x_211)) { - lean_ctor_release(x_211, 0); - lean_ctor_release(x_211, 1); - x_214 = x_211; +lean_dec(x_210); +x_213 = l_Lean_Elab_Term_getMainModule___rarg(x_212); +x_214 = lean_ctor_get(x_213, 0); +lean_inc(x_214); +x_215 = lean_ctor_get(x_213, 1); +lean_inc(x_215); +if (lean_is_exclusive(x_213)) { + lean_ctor_release(x_213, 0); + lean_ctor_release(x_213, 1); + x_216 = x_213; } else { - lean_dec_ref(x_211); - x_214 = lean_box(0); -} -x_215 = l_Lean_addMacroScope(x_212, x_194, x_209); -x_216 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_216, 0, x_197); -lean_ctor_set(x_216, 1, x_198); -lean_ctor_set(x_216, 2, x_215); -lean_ctor_set(x_216, 3, x_196); -x_217 = lean_array_push(x_200, x_216); -x_218 = lean_array_push(x_217, x_202); -x_219 = lean_array_push(x_218, x_202); -x_220 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; -x_221 = lean_array_push(x_219, x_220); -x_222 = lean_array_push(x_221, x_183); -x_223 = l_Lean_Parser_Term_letIdDecl___closed__2; -x_224 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_224, 0, x_223); -lean_ctor_set(x_224, 1, x_222); -x_225 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; -x_226 = lean_array_push(x_225, x_224); -x_227 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; -x_228 = lean_array_push(x_226, x_227); -x_229 = lean_array_push(x_228, x_207); -x_230 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_231 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_231, 0, x_230); -lean_ctor_set(x_231, 1, x_229); -x_232 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_232, 0, x_231); -if (lean_is_scalar(x_214)) { - x_233 = lean_alloc_ctor(0, 2, 0); -} else { - x_233 = x_214; + lean_dec_ref(x_213); + x_216 = lean_box(0); } +x_217 = l_Lean_addMacroScope(x_214, x_196, x_211); +x_218 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_218, 0, x_199); +lean_ctor_set(x_218, 1, x_200); +lean_ctor_set(x_218, 2, x_217); +lean_ctor_set(x_218, 3, x_198); +x_219 = lean_array_push(x_202, x_218); +x_220 = lean_array_push(x_219, x_204); +x_221 = lean_array_push(x_220, x_204); +x_222 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; +x_223 = lean_array_push(x_221, x_222); +x_224 = lean_array_push(x_223, x_185); +x_225 = l_Lean_Parser_Term_letIdDecl___closed__2; +x_226 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_226, 0, x_225); +lean_ctor_set(x_226, 1, x_224); +x_227 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; +x_228 = lean_array_push(x_227, x_226); +x_229 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; +x_230 = lean_array_push(x_228, x_229); +x_231 = lean_array_push(x_230, x_209); +x_232 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_233 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_233, 0, x_232); -lean_ctor_set(x_233, 1, x_213); -return x_233; +lean_ctor_set(x_233, 1, x_231); +x_234 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_234, 0, x_233); +if (lean_is_scalar(x_216)) { + x_235 = lean_alloc_ctor(0, 2, 0); +} else { + x_235 = x_216; +} +lean_ctor_set(x_235, 0, x_234); +lean_ctor_set(x_235, 1, x_215); +return x_235; } else { -lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; -lean_dec(x_186); +lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; +lean_dec(x_188); +lean_dec(x_185); lean_dec(x_183); -lean_dec(x_181); lean_dec(x_5); lean_dec(x_1); -x_234 = lean_ctor_get(x_185, 1); -lean_inc(x_234); -if (lean_is_exclusive(x_185)) { - lean_ctor_release(x_185, 0); - lean_ctor_release(x_185, 1); - x_235 = x_185; +x_236 = lean_ctor_get(x_187, 1); +lean_inc(x_236); +if (lean_is_exclusive(x_187)) { + lean_ctor_release(x_187, 0); + lean_ctor_release(x_187, 1); + x_237 = x_187; } else { - lean_dec_ref(x_185); - x_235 = lean_box(0); + lean_dec_ref(x_187); + x_237 = lean_box(0); } -x_236 = lean_box(0); -if (lean_is_scalar(x_235)) { - x_237 = lean_alloc_ctor(0, 2, 0); +x_238 = lean_box(0); +if (lean_is_scalar(x_237)) { + x_239 = lean_alloc_ctor(0, 2, 0); } else { - x_237 = x_235; + x_239 = x_237; } -lean_ctor_set(x_237, 0, x_236); -lean_ctor_set(x_237, 1, x_234); -return x_237; +lean_ctor_set(x_239, 0, x_238); +lean_ctor_set(x_239, 1, x_236); +return x_239; } } else { -lean_object* x_238; lean_object* x_239; -lean_dec(x_165); +lean_object* x_240; lean_object* x_241; +lean_dec(x_166); lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); -x_238 = lean_box(0); -x_239 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_239, 0, x_238); -lean_ctor_set(x_239, 1, x_167); -return x_239; +x_240 = lean_box(0); +x_241 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_241, 0, x_240); +lean_ctor_set(x_241, 1, x_168); +return x_241; } } } @@ -1303,7 +1305,7 @@ return x_2; lean_object* l___private_Lean_Elab_StructInst_2__getStructSource(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; uint8_t x_8; +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; x_4 = lean_unsigned_to_nat(1u); x_5 = l_Lean_Syntax_getArg(x_1, x_4); x_6 = lean_unsigned_to_nat(3u); @@ -1311,113 +1313,238 @@ x_7 = l_Lean_Syntax_getArg(x_1, x_6); x_8 = l_Lean_Syntax_isNone(x_5); if (x_8 == 0) { -uint8_t x_9; -x_9 = l_Lean_Syntax_isNone(x_7); +lean_object* x_66; +x_66 = lean_box(0); +x_9 = x_66; +goto block_65; +} +else +{ +uint8_t x_67; +x_67 = l_Lean_Syntax_isNone(x_7); +if (x_67 == 0) +{ +lean_object* x_68; +x_68 = lean_box(0); +x_9 = x_68; +goto block_65; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_dec(x_7); -if (x_9 == 0) -{ -lean_object* x_10; lean_object* x_11; lean_dec(x_5); -x_10 = l___private_Lean_Elab_StructInst_2__getStructSource___closed__3; -x_11 = l_Lean_Elab_Term_throwError___rarg(x_1, x_10, x_2, x_3); -return x_11; -} -else -{ -lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; -x_12 = lean_unsigned_to_nat(0u); -x_13 = l_Lean_Syntax_getArg(x_5, x_12); -x_14 = 0; -x_15 = l_Lean_Elab_Term_isLocalTermId_x3f(x_13, x_14, x_2, x_3); -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -if (lean_obj_tag(x_16) == 0) -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -lean_dec(x_5); -x_17 = lean_ctor_get(x_15, 1); -lean_inc(x_17); -lean_dec(x_15); -x_18 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; -x_19 = l_unreachable_x21___rarg(x_18); -x_20 = lean_apply_2(x_19, x_2, x_17); -return x_20; -} -else -{ -uint8_t x_21; lean_dec(x_2); -x_21 = !lean_is_exclusive(x_15); -if (x_21 == 0) +lean_dec(x_1); +x_69 = lean_box(0); +x_70 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_70, 0, x_69); +lean_ctor_set(x_70, 1, x_3); +return x_70; +} +} +block_65: { -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_15, 0); -lean_dec(x_22); -x_23 = lean_ctor_get(x_16, 0); -lean_inc(x_23); -lean_dec(x_16); -x_24 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_24, 0, x_5); -lean_ctor_set(x_24, 1, x_23); -lean_ctor_set(x_15, 0, x_24); -return x_15; +lean_dec(x_9); +if (x_8 == 0) +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_2); +if (x_10 == 0) +{ +lean_object* x_11; uint8_t x_12; +x_11 = lean_ctor_get(x_2, 10); +lean_dec(x_11); +lean_ctor_set(x_2, 10, x_1); +x_12 = l_Lean_Syntax_isNone(x_7); +lean_dec(x_7); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; +lean_dec(x_5); +x_13 = l___private_Lean_Elab_StructInst_2__getStructSource___closed__3; +x_14 = l_Lean_Elab_Term_throwError___rarg(x_13, x_2, x_3); +return x_14; } else { -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_25 = lean_ctor_get(x_15, 1); -lean_inc(x_25); -lean_dec(x_15); -x_26 = lean_ctor_get(x_16, 0); +lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; +x_15 = lean_unsigned_to_nat(0u); +x_16 = l_Lean_Syntax_getArg(x_5, x_15); +x_17 = 0; +x_18 = l_Lean_Elab_Term_isLocalTermId_x3f(x_16, x_17, x_2, x_3); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +lean_dec(x_5); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +x_21 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; +x_22 = l_unreachable_x21___rarg(x_21); +x_23 = lean_apply_2(x_22, x_2, x_20); +return x_23; +} +else +{ +uint8_t x_24; +lean_dec(x_2); +x_24 = !lean_is_exclusive(x_18); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_18, 0); +lean_dec(x_25); +x_26 = lean_ctor_get(x_19, 0); lean_inc(x_26); -lean_dec(x_16); +lean_dec(x_19); x_27 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_27, 0, x_5); lean_ctor_set(x_27, 1, x_26); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_25); -return x_28; -} -} -} +lean_ctor_set(x_18, 0, x_27); +return x_18; } else { -uint8_t x_29; -lean_dec(x_5); -lean_dec(x_2); -x_29 = l_Lean_Syntax_isNone(x_7); -if (x_29 == 0) -{ -lean_object* x_30; lean_object* x_31; -x_30 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_30, 0, x_7); +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_28 = lean_ctor_get(x_18, 1); +lean_inc(x_28); +lean_dec(x_18); +x_29 = lean_ctor_get(x_19, 0); +lean_inc(x_29); +lean_dec(x_19); +x_30 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_30, 0, x_5); +lean_ctor_set(x_30, 1, x_29); x_31 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_3); +lean_ctor_set(x_31, 1, x_28); return x_31; } +} +} +} else { -lean_object* x_32; lean_object* x_33; +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; uint8_t x_43; uint8_t x_44; lean_object* x_45; uint8_t x_46; +x_32 = lean_ctor_get(x_2, 0); +x_33 = lean_ctor_get(x_2, 1); +x_34 = lean_ctor_get(x_2, 2); +x_35 = lean_ctor_get(x_2, 3); +x_36 = lean_ctor_get(x_2, 4); +x_37 = lean_ctor_get(x_2, 5); +x_38 = lean_ctor_get(x_2, 6); +x_39 = lean_ctor_get(x_2, 7); +x_40 = lean_ctor_get(x_2, 8); +x_41 = lean_ctor_get(x_2, 9); +x_42 = lean_ctor_get_uint8(x_2, sizeof(void*)*11); +x_43 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 1); +x_44 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 2); +lean_inc(x_41); +lean_inc(x_40); +lean_inc(x_39); +lean_inc(x_38); +lean_inc(x_37); +lean_inc(x_36); +lean_inc(x_35); +lean_inc(x_34); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_2); +x_45 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_45, 0, x_32); +lean_ctor_set(x_45, 1, x_33); +lean_ctor_set(x_45, 2, x_34); +lean_ctor_set(x_45, 3, x_35); +lean_ctor_set(x_45, 4, x_36); +lean_ctor_set(x_45, 5, x_37); +lean_ctor_set(x_45, 6, x_38); +lean_ctor_set(x_45, 7, x_39); +lean_ctor_set(x_45, 8, x_40); +lean_ctor_set(x_45, 9, x_41); +lean_ctor_set(x_45, 10, x_1); +lean_ctor_set_uint8(x_45, sizeof(void*)*11, x_42); +lean_ctor_set_uint8(x_45, sizeof(void*)*11 + 1, x_43); +lean_ctor_set_uint8(x_45, sizeof(void*)*11 + 2, x_44); +x_46 = l_Lean_Syntax_isNone(x_7); lean_dec(x_7); -x_32 = lean_box(0); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_3); -return x_33; -} -} -} -} -lean_object* l___private_Lean_Elab_StructInst_2__getStructSource___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: +if (x_46 == 0) { -lean_object* x_4; -x_4 = l___private_Lean_Elab_StructInst_2__getStructSource(x_1, x_2, x_3); +lean_object* x_47; lean_object* x_48; +lean_dec(x_5); +x_47 = l___private_Lean_Elab_StructInst_2__getStructSource___closed__3; +x_48 = l_Lean_Elab_Term_throwError___rarg(x_47, x_45, x_3); +return x_48; +} +else +{ +lean_object* x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; lean_object* x_53; +x_49 = lean_unsigned_to_nat(0u); +x_50 = l_Lean_Syntax_getArg(x_5, x_49); +x_51 = 0; +x_52 = l_Lean_Elab_Term_isLocalTermId_x3f(x_50, x_51, x_45, x_3); +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +if (lean_obj_tag(x_53) == 0) +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +lean_dec(x_5); +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); +lean_dec(x_52); +x_55 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; +x_56 = l_unreachable_x21___rarg(x_55); +x_57 = lean_apply_2(x_56, x_45, x_54); +return x_57; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +lean_dec(x_45); +x_58 = lean_ctor_get(x_52, 1); +lean_inc(x_58); +if (lean_is_exclusive(x_52)) { + lean_ctor_release(x_52, 0); + lean_ctor_release(x_52, 1); + x_59 = x_52; +} else { + lean_dec_ref(x_52); + x_59 = lean_box(0); +} +x_60 = lean_ctor_get(x_53, 0); +lean_inc(x_60); +lean_dec(x_53); +x_61 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_61, 0, x_5); +lean_ctor_set(x_61, 1, x_60); +if (lean_is_scalar(x_59)) { + x_62 = lean_alloc_ctor(0, 2, 0); +} else { + x_62 = x_59; +} +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_58); +return x_62; +} +} +} +} +else +{ +lean_object* x_63; lean_object* x_64; +lean_dec(x_5); +lean_dec(x_2); lean_dec(x_1); -return x_4; +x_63 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_63, 0, x_7); +x_64 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_3); +return x_64; +} +} } } lean_object* _init_l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__1() { @@ -1539,7 +1666,7 @@ lean_object* x_24; lean_object* x_25; uint8_t x_26; lean_dec(x_4); lean_dec(x_3); x_24 = l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__3; -x_25 = l_Lean_Elab_Term_throwError___rarg(x_10, x_24, x_5, x_6); +x_25 = l_Lean_Elab_Term_throwErrorAt___rarg(x_10, x_24, x_5, x_6); lean_dec(x_10); x_26 = !lean_is_exclusive(x_25); if (x_26 == 0) @@ -1589,7 +1716,7 @@ if (x_35 == 0) { lean_object* x_36; lean_object* x_37; uint8_t x_38; x_36 = l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__3; -x_37 = l_Lean_Elab_Term_throwError___rarg(x_10, x_36, x_5, x_6); +x_37 = l_Lean_Elab_Term_throwErrorAt___rarg(x_10, x_36, x_5, x_6); lean_dec(x_10); x_38 = !lean_is_exclusive(x_37); if (x_38 == 0) @@ -1614,7 +1741,7 @@ else { lean_object* x_42; lean_object* x_43; uint8_t x_44; x_42 = l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__6; -x_43 = l_Lean_Elab_Term_throwError___rarg(x_10, x_42, x_5, x_6); +x_43 = l_Lean_Elab_Term_throwErrorAt___rarg(x_10, x_42, x_5, x_6); lean_dec(x_10); x_44 = !lean_is_exclusive(x_43); if (x_44 == 0) @@ -2083,59 +2210,67 @@ x_9 = l_Lean_Syntax_isNone(x_8); x_10 = l_Lean_Elab_Term_getOptions(x_5, x_6); if (x_9 == 0) { -uint8_t x_307; -x_307 = 0; -x_11 = x_307; -goto block_306; +uint8_t x_321; +x_321 = 0; +x_11 = x_321; +goto block_320; } else { -uint8_t x_308; -x_308 = 1; -x_11 = x_308; -goto block_306; +uint8_t x_322; +x_322 = 1; +x_11 = x_322; +goto block_320; } -block_306: +block_320: { -lean_object* x_12; lean_object* x_295; lean_object* x_296; lean_object* x_297; uint8_t x_298; -x_295 = lean_ctor_get(x_10, 0); -lean_inc(x_295); -x_296 = lean_ctor_get(x_10, 1); -lean_inc(x_296); +lean_object* x_12; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; uint8_t x_312; +x_306 = lean_ctor_get(x_10, 0); +lean_inc(x_306); +x_307 = lean_ctor_get(x_10, 1); +lean_inc(x_307); lean_dec(x_10); -x_297 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__4; -x_298 = l_Lean_checkTraceOption(x_295, x_297); -lean_dec(x_295); -if (x_298 == 0) +x_308 = l_Lean_Elab_Term_getCurrRef(x_5, x_307); +x_309 = lean_ctor_get(x_308, 0); +lean_inc(x_309); +x_310 = lean_ctor_get(x_308, 1); +lean_inc(x_310); +lean_dec(x_308); +x_311 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__4; +x_312 = l_Lean_checkTraceOption(x_306, x_311); +lean_dec(x_306); +if (x_312 == 0) { -x_12 = x_296; -goto block_294; +lean_dec(x_309); +x_12 = x_310; +goto block_305; } else { -lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; +lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_inc(x_2); -x_299 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_299, 0, x_2); -x_300 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__28; -x_301 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_301, 0, x_299); -lean_ctor_set(x_301, 1, x_300); +x_313 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_313, 0, x_2); +x_314 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__28; +x_315 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_315, 0, x_313); +lean_ctor_set(x_315, 1, x_314); lean_inc(x_3); -x_302 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_302, 0, x_3); -x_303 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_303, 0, x_301); -lean_ctor_set(x_303, 1, x_302); +x_316 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_316, 0, x_3); +x_317 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_317, 0, x_315); +lean_ctor_set(x_317, 1, x_316); lean_inc(x_5); -x_304 = l_Lean_Elab_Term_logTrace(x_297, x_1, x_303, x_5, x_296); -x_305 = lean_ctor_get(x_304, 1); -lean_inc(x_305); -lean_dec(x_304); -x_12 = x_305; -goto block_294; +x_318 = l_Lean_Elab_Term_logTrace(x_311, x_309, x_317, x_5, x_310); +lean_dec(x_309); +x_319 = lean_ctor_get(x_318, 1); +lean_inc(x_319); +lean_dec(x_318); +x_12 = x_319; +goto block_305; } -block_294: +block_305: { if (x_11 == 0) { @@ -2194,18 +2329,18 @@ x_43 = l_Lean_Syntax_getArg(x_3, x_31); x_44 = l_Lean_Elab_Term_getOptions(x_5, x_18); if (x_35 == 0) { -lean_object* x_183; -x_183 = l_Lean_Syntax_getArg(x_32, x_7); +lean_object* x_190; +x_190 = l_Lean_Syntax_getArg(x_32, x_7); lean_dec(x_32); -x_45 = x_183; -goto block_182; +x_45 = x_190; +goto block_189; } else { x_45 = x_32; -goto block_182; +goto block_189; } -block_182: +block_189: { lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; x_46 = l_Lean_Syntax_setArg(x_2, x_31, x_45); @@ -2217,64 +2352,64 @@ lean_ctor_set(x_50, 0, x_39); lean_ctor_set(x_50, 1, x_49); if (lean_obj_tag(x_3) == 1) { -uint8_t x_166; -x_166 = !lean_is_exclusive(x_3); -if (x_166 == 0) +uint8_t x_173; +x_173 = !lean_is_exclusive(x_3); +if (x_173 == 0) { -lean_object* x_167; lean_object* x_168; uint8_t x_169; -x_167 = lean_ctor_get(x_3, 1); -x_168 = lean_array_get_size(x_167); -x_169 = lean_nat_dec_lt(x_31, x_168); -lean_dec(x_168); -if (x_169 == 0) -{ -lean_dec(x_30); -x_51 = x_3; -goto block_165; -} -else -{ -lean_object* x_170; lean_object* x_171; lean_object* x_172; -x_170 = lean_box(0); -x_171 = lean_array_fset(x_167, x_31, x_170); -x_172 = lean_array_fset(x_171, x_31, x_30); -lean_ctor_set(x_3, 1, x_172); -x_51 = x_3; -goto block_165; -} -} -else -{ -lean_object* x_173; lean_object* x_174; lean_object* x_175; uint8_t x_176; -x_173 = lean_ctor_get(x_3, 0); +lean_object* x_174; lean_object* x_175; uint8_t x_176; x_174 = lean_ctor_get(x_3, 1); -lean_inc(x_174); -lean_inc(x_173); -lean_dec(x_3); x_175 = lean_array_get_size(x_174); x_176 = lean_nat_dec_lt(x_31, x_175); lean_dec(x_175); if (x_176 == 0) { -lean_object* x_177; lean_dec(x_30); -x_177 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_177, 0, x_173); -lean_ctor_set(x_177, 1, x_174); -x_51 = x_177; -goto block_165; +x_51 = x_3; +goto block_172; } else { -lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; -x_178 = lean_box(0); -x_179 = lean_array_fset(x_174, x_31, x_178); -x_180 = lean_array_fset(x_179, x_31, x_30); -x_181 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_181, 0, x_173); -lean_ctor_set(x_181, 1, x_180); -x_51 = x_181; -goto block_165; +lean_object* x_177; lean_object* x_178; lean_object* x_179; +x_177 = lean_box(0); +x_178 = lean_array_fset(x_174, x_31, x_177); +x_179 = lean_array_fset(x_178, x_31, x_30); +lean_ctor_set(x_3, 1, x_179); +x_51 = x_3; +goto block_172; +} +} +else +{ +lean_object* x_180; lean_object* x_181; lean_object* x_182; uint8_t x_183; +x_180 = lean_ctor_get(x_3, 0); +x_181 = lean_ctor_get(x_3, 1); +lean_inc(x_181); +lean_inc(x_180); +lean_dec(x_3); +x_182 = lean_array_get_size(x_181); +x_183 = lean_nat_dec_lt(x_31, x_182); +lean_dec(x_182); +if (x_183 == 0) +{ +lean_object* x_184; +lean_dec(x_30); +x_184 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_184, 0, x_180); +lean_ctor_set(x_184, 1, x_181); +x_51 = x_184; +goto block_172; +} +else +{ +lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; +x_185 = lean_box(0); +x_186 = lean_array_fset(x_181, x_31, x_185); +x_187 = lean_array_fset(x_186, x_31, x_30); +x_188 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_188, 0, x_180); +lean_ctor_set(x_188, 1, x_187); +x_51 = x_188; +goto block_172; } } } @@ -2282,55 +2417,63 @@ else { lean_dec(x_30); x_51 = x_3; -goto block_165; +goto block_172; } -block_165: +block_172: { -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_154; lean_object* x_155; lean_object* x_156; uint8_t x_157; +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; uint8_t x_164; lean_inc(x_1); x_52 = l_Lean_Syntax_setArg(x_1, x_7, x_51); x_53 = lean_unsigned_to_nat(2u); x_54 = l_Lean_Syntax_setArg(x_52, x_53, x_50); -x_154 = lean_ctor_get(x_44, 0); -lean_inc(x_154); -x_155 = lean_ctor_get(x_44, 1); -lean_inc(x_155); +x_158 = lean_ctor_get(x_44, 0); +lean_inc(x_158); +x_159 = lean_ctor_get(x_44, 1); +lean_inc(x_159); lean_dec(x_44); -x_156 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__4; -x_157 = l_Lean_checkTraceOption(x_154, x_156); -lean_dec(x_154); -if (x_157 == 0) +x_160 = l_Lean_Elab_Term_getCurrRef(x_5, x_159); +x_161 = lean_ctor_get(x_160, 0); +lean_inc(x_161); +x_162 = lean_ctor_get(x_160, 1); +lean_inc(x_162); +lean_dec(x_160); +x_163 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__4; +x_164 = l_Lean_checkTraceOption(x_158, x_163); +lean_dec(x_158); +if (x_164 == 0) { -x_55 = x_155; -goto block_153; +lean_dec(x_161); +x_55 = x_162; +goto block_157; } else { -lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; +lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_inc(x_1); -x_158 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_158, 0, x_1); -x_159 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__23; -x_160 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_160, 0, x_158); -lean_ctor_set(x_160, 1, x_159); +x_165 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_165, 0, x_1); +x_166 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__23; +x_167 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_167, 0, x_165); +lean_ctor_set(x_167, 1, x_166); lean_inc(x_54); -x_161 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_161, 0, x_54); -x_162 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_162, 0, x_160); -lean_ctor_set(x_162, 1, x_161); +x_168 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_168, 0, x_54); +x_169 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_169, 0, x_167); +lean_ctor_set(x_169, 1, x_168); lean_inc(x_5); -x_163 = l_Lean_Elab_Term_logTrace(x_156, x_1, x_162, x_5, x_155); -x_164 = lean_ctor_get(x_163, 1); -lean_inc(x_164); -lean_dec(x_163); -x_55 = x_164; -goto block_153; +x_170 = l_Lean_Elab_Term_logTrace(x_163, x_161, x_169, x_5, x_162); +lean_dec(x_161); +x_171 = lean_ctor_get(x_170, 1); +lean_inc(x_171); +lean_dec(x_170); +x_55 = x_171; +goto block_157; } -block_153: +block_157: { -lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; uint8_t x_145; +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; uint8_t x_149; x_56 = l_Lean_Elab_Term_getCurrMacroScope(x_5, x_55); x_57 = lean_ctor_get(x_56, 0); lean_inc(x_57); @@ -2430,45 +2573,53 @@ x_113 = l_Lean_mkAppStx___closed__8; x_114 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_114, 0, x_113); lean_ctor_set(x_114, 1, x_112); -x_141 = l_Lean_Elab_Term_getOptions(x_5, x_61); -x_142 = lean_ctor_get(x_141, 0); -lean_inc(x_142); -x_143 = lean_ctor_get(x_141, 1); +x_142 = l_Lean_Elab_Term_getOptions(x_5, x_61); +x_143 = lean_ctor_get(x_142, 0); lean_inc(x_143); -lean_dec(x_141); -x_144 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__4; -x_145 = l_Lean_checkTraceOption(x_142, x_144); +x_144 = lean_ctor_get(x_142, 1); +lean_inc(x_144); lean_dec(x_142); -if (x_145 == 0) +x_145 = l_Lean_Elab_Term_getCurrRef(x_5, x_144); +x_146 = lean_ctor_get(x_145, 0); +lean_inc(x_146); +x_147 = lean_ctor_get(x_145, 1); +lean_inc(x_147); +lean_dec(x_145); +x_148 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__4; +x_149 = l_Lean_checkTraceOption(x_143, x_148); +lean_dec(x_143); +if (x_149 == 0) { -x_115 = x_143; -goto block_140; +lean_dec(x_146); +x_115 = x_147; +goto block_141; } else { -lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; +lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_inc(x_1); -x_146 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_146, 0, x_1); -x_147 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__20; -x_148 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_148, 0, x_146); -lean_ctor_set(x_148, 1, x_147); +x_150 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_150, 0, x_1); +x_151 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__20; +x_152 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_152, 0, x_150); +lean_ctor_set(x_152, 1, x_151); lean_inc(x_114); -x_149 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_149, 0, x_114); -x_150 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_150, 0, x_148); -lean_ctor_set(x_150, 1, x_149); +x_153 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_153, 0, x_114); +x_154 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_154, 0, x_152); +lean_ctor_set(x_154, 1, x_153); lean_inc(x_5); -x_151 = l_Lean_Elab_Term_logTrace(x_144, x_1, x_150, x_5, x_143); -x_152 = lean_ctor_get(x_151, 1); -lean_inc(x_152); -lean_dec(x_151); -x_115 = x_152; -goto block_140; +x_155 = l_Lean_Elab_Term_logTrace(x_148, x_146, x_154, x_5, x_147); +lean_dec(x_146); +x_156 = lean_ctor_get(x_155, 1); +lean_inc(x_156); +lean_dec(x_155); +x_115 = x_156; +goto block_141; } -block_140: +block_141: { uint8_t x_116; x_116 = !lean_is_exclusive(x_5); @@ -2485,12 +2636,12 @@ lean_ctor_set(x_119, 0, x_118); lean_ctor_set(x_119, 1, x_117); lean_ctor_set(x_5, 8, x_119); x_120 = 1; -x_121 = l_Lean_Elab_Term_elabTermAux___main(x_4, x_120, x_120, x_114, x_5, x_115); +x_121 = l_Lean_Elab_Term_elabTerm(x_114, x_4, x_120, x_5, x_115); return x_121; } else { -lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; uint8_t x_132; uint8_t x_133; uint8_t x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; uint8_t x_138; lean_object* x_139; +lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; uint8_t x_132; uint8_t x_133; uint8_t x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; uint8_t x_139; lean_object* x_140; x_122 = lean_ctor_get(x_5, 0); x_123 = lean_ctor_get(x_5, 1); x_124 = lean_ctor_get(x_5, 2); @@ -2501,9 +2652,11 @@ x_128 = lean_ctor_get(x_5, 6); x_129 = lean_ctor_get(x_5, 7); x_130 = lean_ctor_get(x_5, 8); x_131 = lean_ctor_get(x_5, 9); -x_132 = lean_ctor_get_uint8(x_5, sizeof(void*)*10); -x_133 = lean_ctor_get_uint8(x_5, sizeof(void*)*10 + 1); -x_134 = lean_ctor_get_uint8(x_5, sizeof(void*)*10 + 2); +x_132 = lean_ctor_get_uint8(x_5, sizeof(void*)*11); +x_133 = lean_ctor_get_uint8(x_5, sizeof(void*)*11 + 1); +x_134 = lean_ctor_get_uint8(x_5, sizeof(void*)*11 + 2); +x_135 = lean_ctor_get(x_5, 10); +lean_inc(x_135); lean_inc(x_131); lean_inc(x_130); lean_inc(x_129); @@ -2516,29 +2669,30 @@ lean_inc(x_123); lean_inc(x_122); lean_dec(x_5); lean_inc(x_114); -x_135 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_135, 0, x_1); -lean_ctor_set(x_135, 1, x_114); -x_136 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_136, 0, x_135); -lean_ctor_set(x_136, 1, x_130); -x_137 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_137, 0, x_122); -lean_ctor_set(x_137, 1, x_123); -lean_ctor_set(x_137, 2, x_124); -lean_ctor_set(x_137, 3, x_125); -lean_ctor_set(x_137, 4, x_126); -lean_ctor_set(x_137, 5, x_127); -lean_ctor_set(x_137, 6, x_128); -lean_ctor_set(x_137, 7, x_129); -lean_ctor_set(x_137, 8, x_136); -lean_ctor_set(x_137, 9, x_131); -lean_ctor_set_uint8(x_137, sizeof(void*)*10, x_132); -lean_ctor_set_uint8(x_137, sizeof(void*)*10 + 1, x_133); -lean_ctor_set_uint8(x_137, sizeof(void*)*10 + 2, x_134); -x_138 = 1; -x_139 = l_Lean_Elab_Term_elabTermAux___main(x_4, x_138, x_138, x_114, x_137, x_115); -return x_139; +x_136 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_136, 0, x_1); +lean_ctor_set(x_136, 1, x_114); +x_137 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_137, 0, x_136); +lean_ctor_set(x_137, 1, x_130); +x_138 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_138, 0, x_122); +lean_ctor_set(x_138, 1, x_123); +lean_ctor_set(x_138, 2, x_124); +lean_ctor_set(x_138, 3, x_125); +lean_ctor_set(x_138, 4, x_126); +lean_ctor_set(x_138, 5, x_127); +lean_ctor_set(x_138, 6, x_128); +lean_ctor_set(x_138, 7, x_129); +lean_ctor_set(x_138, 8, x_137); +lean_ctor_set(x_138, 9, x_131); +lean_ctor_set(x_138, 10, x_135); +lean_ctor_set_uint8(x_138, sizeof(void*)*11, x_132); +lean_ctor_set_uint8(x_138, sizeof(void*)*11 + 1, x_133); +lean_ctor_set_uint8(x_138, sizeof(void*)*11 + 2, x_134); +x_139 = 1; +x_140 = l_Lean_Elab_Term_elabTerm(x_114, x_4, x_139, x_138, x_115); +return x_140; } } } @@ -2547,232 +2701,243 @@ return x_139; } else { -lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; uint8_t x_286; +lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; uint8_t x_297; lean_dec(x_8); -x_184 = lean_unsigned_to_nat(3u); -x_185 = l_Lean_Syntax_getArg(x_2, x_184); -x_186 = lean_unsigned_to_nat(0u); -x_187 = l_Lean_Syntax_getArg(x_2, x_186); +x_191 = lean_unsigned_to_nat(3u); +x_192 = l_Lean_Syntax_getArg(x_2, x_191); +x_193 = lean_unsigned_to_nat(0u); +x_194 = l_Lean_Syntax_getArg(x_2, x_193); lean_dec(x_2); -x_188 = l_Lean_Syntax_getArg(x_187, x_7); -lean_dec(x_187); -x_189 = l_Lean_Syntax_getArg(x_3, x_186); +x_195 = l_Lean_Syntax_getArg(x_194, x_7); +lean_dec(x_194); +x_196 = l_Lean_Syntax_getArg(x_3, x_193); lean_dec(x_3); -x_190 = l_Lean_Elab_Term_getCurrMacroScope(x_5, x_12); -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_Elab_Term_getMainModule___rarg(x_192); -x_194 = lean_ctor_get(x_193, 0); -lean_inc(x_194); -x_195 = lean_ctor_get(x_193, 1); -lean_inc(x_195); -lean_dec(x_193); -x_196 = l_Array_empty___closed__1; -x_197 = lean_array_push(x_196, x_189); -x_198 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__9; -x_199 = lean_array_push(x_197, x_198); -x_200 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__12; -lean_inc(x_191); -lean_inc(x_194); -x_201 = l_Lean_addMacroScope(x_194, x_200, x_191); -x_202 = lean_box(0); -x_203 = l_Lean_SourceInfo_inhabited___closed__1; -x_204 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__11; -x_205 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__25; -x_206 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_206, 0, x_203); -lean_ctor_set(x_206, 1, x_204); -lean_ctor_set(x_206, 2, x_201); -lean_ctor_set(x_206, 3, x_205); -x_207 = lean_array_push(x_199, x_206); -x_208 = l_Lean_Parser_Term_proj___elambda__1___closed__2; -x_209 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_209, 0, x_208); -lean_ctor_set(x_209, 1, x_207); -x_210 = lean_array_push(x_196, x_209); -x_211 = l___private_Lean_Elab_App_18__elabAppLValsAux___main___closed__2; -lean_inc(x_191); -lean_inc(x_194); -x_212 = l_Lean_addMacroScope(x_194, x_211, x_191); -x_213 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__17; -x_214 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_214, 0, x_203); -lean_ctor_set(x_214, 1, x_213); -lean_ctor_set(x_214, 2, x_212); -lean_ctor_set(x_214, 3, x_202); -x_215 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__4; -x_216 = lean_array_push(x_215, x_214); -x_217 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; -x_218 = lean_array_push(x_216, x_217); -x_219 = lean_array_push(x_218, x_188); -x_220 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__6; -x_221 = lean_array_push(x_219, x_220); -x_222 = l_Lean_Parser_Term_namedArgument___elambda__1___closed__2; -x_223 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_223, 0, x_222); -lean_ctor_set(x_223, 1, x_221); -x_224 = lean_array_push(x_196, x_223); -x_225 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__8; -x_226 = l_Lean_addMacroScope(x_194, x_225, x_191); -x_227 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__7; -x_228 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_228, 0, x_203); -lean_ctor_set(x_228, 1, x_227); -lean_ctor_set(x_228, 2, x_226); -lean_ctor_set(x_228, 3, x_202); -x_229 = lean_array_push(x_196, x_228); -x_230 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; -x_231 = lean_array_push(x_229, x_230); -x_232 = l_Lean_mkTermIdFromIdent___closed__2; -x_233 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_233, 0, x_232); -lean_ctor_set(x_233, 1, x_231); -x_234 = lean_array_push(x_196, x_233); -x_235 = l_Lean_nullKind___closed__2; -x_236 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_236, 0, x_235); -lean_ctor_set(x_236, 1, x_234); -x_237 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; -x_238 = lean_array_push(x_237, x_236); -x_239 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; -x_240 = lean_array_push(x_238, x_239); -x_241 = lean_array_push(x_240, x_185); -x_242 = l_Lean_Parser_Term_fun___elambda__1___closed__2; +x_197 = l_Lean_Elab_Term_getCurrMacroScope(x_5, x_12); +x_198 = lean_ctor_get(x_197, 0); +lean_inc(x_198); +x_199 = lean_ctor_get(x_197, 1); +lean_inc(x_199); +lean_dec(x_197); +x_200 = l_Lean_Elab_Term_getMainModule___rarg(x_199); +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); +x_203 = l_Array_empty___closed__1; +x_204 = lean_array_push(x_203, x_196); +x_205 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__9; +x_206 = lean_array_push(x_204, x_205); +x_207 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__12; +lean_inc(x_198); +lean_inc(x_201); +x_208 = l_Lean_addMacroScope(x_201, x_207, x_198); +x_209 = lean_box(0); +x_210 = l_Lean_SourceInfo_inhabited___closed__1; +x_211 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__11; +x_212 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__25; +x_213 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_213, 0, x_210); +lean_ctor_set(x_213, 1, x_211); +lean_ctor_set(x_213, 2, x_208); +lean_ctor_set(x_213, 3, x_212); +x_214 = lean_array_push(x_206, x_213); +x_215 = l_Lean_Parser_Term_proj___elambda__1___closed__2; +x_216 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_216, 0, x_215); +lean_ctor_set(x_216, 1, x_214); +x_217 = lean_array_push(x_203, x_216); +x_218 = l___private_Lean_Elab_App_18__elabAppLValsAux___main___closed__2; +lean_inc(x_198); +lean_inc(x_201); +x_219 = l_Lean_addMacroScope(x_201, x_218, x_198); +x_220 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__17; +x_221 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_221, 0, x_210); +lean_ctor_set(x_221, 1, x_220); +lean_ctor_set(x_221, 2, x_219); +lean_ctor_set(x_221, 3, x_209); +x_222 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__4; +x_223 = lean_array_push(x_222, x_221); +x_224 = l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; +x_225 = lean_array_push(x_223, x_224); +x_226 = lean_array_push(x_225, x_195); +x_227 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__6; +x_228 = lean_array_push(x_226, x_227); +x_229 = l_Lean_Parser_Term_namedArgument___elambda__1___closed__2; +x_230 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_230, 0, x_229); +lean_ctor_set(x_230, 1, x_228); +x_231 = lean_array_push(x_203, x_230); +x_232 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__8; +x_233 = l_Lean_addMacroScope(x_201, x_232, x_198); +x_234 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__7; +x_235 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_235, 0, x_210); +lean_ctor_set(x_235, 1, x_234); +lean_ctor_set(x_235, 2, x_233); +lean_ctor_set(x_235, 3, x_209); +x_236 = lean_array_push(x_203, x_235); +x_237 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; +x_238 = lean_array_push(x_236, x_237); +x_239 = l_Lean_mkTermIdFromIdent___closed__2; +x_240 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_240, 0, x_239); +lean_ctor_set(x_240, 1, x_238); +x_241 = lean_array_push(x_203, x_240); +x_242 = l_Lean_nullKind___closed__2; x_243 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_243, 0, x_242); lean_ctor_set(x_243, 1, x_241); -x_244 = lean_array_push(x_196, x_243); -x_245 = lean_array_push(x_244, x_230); -x_246 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_246, 0, x_235); -lean_ctor_set(x_246, 1, x_245); -x_247 = lean_array_push(x_215, x_246); -x_248 = lean_array_push(x_247, x_220); -x_249 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__2; +x_244 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; +x_245 = lean_array_push(x_244, x_243); +x_246 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; +x_247 = lean_array_push(x_245, x_246); +x_248 = lean_array_push(x_247, x_192); +x_249 = l_Lean_Parser_Term_fun___elambda__1___closed__2; x_250 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_250, 0, x_249); lean_ctor_set(x_250, 1, x_248); -x_251 = lean_array_push(x_224, x_250); -x_252 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_252, 0, x_235); -lean_ctor_set(x_252, 1, x_251); -x_253 = lean_array_push(x_210, x_252); -x_254 = l_Lean_mkAppStx___closed__8; -x_255 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_255, 0, x_254); -lean_ctor_set(x_255, 1, x_253); -x_282 = l_Lean_Elab_Term_getOptions(x_5, x_195); -x_283 = lean_ctor_get(x_282, 0); -lean_inc(x_283); -x_284 = lean_ctor_get(x_282, 1); -lean_inc(x_284); -lean_dec(x_282); -x_285 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__4; -x_286 = l_Lean_checkTraceOption(x_283, x_285); -lean_dec(x_283); -if (x_286 == 0) +x_251 = lean_array_push(x_203, x_250); +x_252 = lean_array_push(x_251, x_237); +x_253 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_253, 0, x_242); +lean_ctor_set(x_253, 1, x_252); +x_254 = lean_array_push(x_222, x_253); +x_255 = lean_array_push(x_254, x_227); +x_256 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__2; +x_257 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_257, 0, x_256); +lean_ctor_set(x_257, 1, x_255); +x_258 = lean_array_push(x_231, x_257); +x_259 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_259, 0, x_242); +lean_ctor_set(x_259, 1, x_258); +x_260 = lean_array_push(x_217, x_259); +x_261 = l_Lean_mkAppStx___closed__8; +x_262 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_262, 0, x_261); +lean_ctor_set(x_262, 1, x_260); +x_290 = l_Lean_Elab_Term_getOptions(x_5, x_202); +x_291 = lean_ctor_get(x_290, 0); +lean_inc(x_291); +x_292 = lean_ctor_get(x_290, 1); +lean_inc(x_292); +lean_dec(x_290); +x_293 = l_Lean_Elab_Term_getCurrRef(x_5, x_292); +x_294 = lean_ctor_get(x_293, 0); +lean_inc(x_294); +x_295 = lean_ctor_get(x_293, 1); +lean_inc(x_295); +lean_dec(x_293); +x_296 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__4; +x_297 = l_Lean_checkTraceOption(x_291, x_296); +lean_dec(x_291); +if (x_297 == 0) { -x_256 = x_284; -goto block_281; +lean_dec(x_294); +x_263 = x_295; +goto block_289; } else { -lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; +lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_inc(x_1); -x_287 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_287, 0, x_1); -x_288 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__20; -x_289 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_289, 0, x_287); -lean_ctor_set(x_289, 1, x_288); -lean_inc(x_255); -x_290 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_290, 0, x_255); -x_291 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_291, 0, x_289); -lean_ctor_set(x_291, 1, x_290); +x_298 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_298, 0, x_1); +x_299 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__20; +x_300 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_300, 0, x_298); +lean_ctor_set(x_300, 1, x_299); +lean_inc(x_262); +x_301 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_301, 0, x_262); +x_302 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_302, 0, x_300); +lean_ctor_set(x_302, 1, x_301); lean_inc(x_5); -x_292 = l_Lean_Elab_Term_logTrace(x_285, x_1, x_291, x_5, x_284); -x_293 = lean_ctor_get(x_292, 1); -lean_inc(x_293); -lean_dec(x_292); -x_256 = x_293; -goto block_281; +x_303 = l_Lean_Elab_Term_logTrace(x_296, x_294, x_302, x_5, x_295); +lean_dec(x_294); +x_304 = lean_ctor_get(x_303, 1); +lean_inc(x_304); +lean_dec(x_303); +x_263 = x_304; +goto block_289; } -block_281: +block_289: { -uint8_t x_257; -x_257 = !lean_is_exclusive(x_5); -if (x_257 == 0) +uint8_t x_264; +x_264 = !lean_is_exclusive(x_5); +if (x_264 == 0) { -lean_object* x_258; lean_object* x_259; lean_object* x_260; uint8_t x_261; lean_object* x_262; -x_258 = lean_ctor_get(x_5, 8); -lean_inc(x_255); -x_259 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_259, 0, x_1); -lean_ctor_set(x_259, 1, x_255); -x_260 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_260, 0, x_259); -lean_ctor_set(x_260, 1, x_258); -lean_ctor_set(x_5, 8, x_260); -x_261 = 1; -x_262 = l_Lean_Elab_Term_elabTermAux___main(x_4, x_261, x_261, x_255, x_5, x_256); -return x_262; +lean_object* x_265; lean_object* x_266; lean_object* x_267; uint8_t x_268; lean_object* x_269; +x_265 = lean_ctor_get(x_5, 8); +lean_inc(x_262); +x_266 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_266, 0, x_1); +lean_ctor_set(x_266, 1, x_262); +x_267 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_267, 0, x_266); +lean_ctor_set(x_267, 1, x_265); +lean_ctor_set(x_5, 8, x_267); +x_268 = 1; +x_269 = l_Lean_Elab_Term_elabTerm(x_262, x_4, x_268, x_5, x_263); +return x_269; } else { -lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; uint8_t x_273; uint8_t x_274; uint8_t x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; uint8_t x_279; lean_object* x_280; -x_263 = lean_ctor_get(x_5, 0); -x_264 = lean_ctor_get(x_5, 1); -x_265 = lean_ctor_get(x_5, 2); -x_266 = lean_ctor_get(x_5, 3); -x_267 = lean_ctor_get(x_5, 4); -x_268 = lean_ctor_get(x_5, 5); -x_269 = lean_ctor_get(x_5, 6); -x_270 = lean_ctor_get(x_5, 7); -x_271 = lean_ctor_get(x_5, 8); -x_272 = lean_ctor_get(x_5, 9); -x_273 = lean_ctor_get_uint8(x_5, sizeof(void*)*10); -x_274 = lean_ctor_get_uint8(x_5, sizeof(void*)*10 + 1); -x_275 = lean_ctor_get_uint8(x_5, sizeof(void*)*10 + 2); +lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; uint8_t x_280; uint8_t x_281; uint8_t x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; uint8_t x_287; lean_object* x_288; +x_270 = lean_ctor_get(x_5, 0); +x_271 = lean_ctor_get(x_5, 1); +x_272 = lean_ctor_get(x_5, 2); +x_273 = lean_ctor_get(x_5, 3); +x_274 = lean_ctor_get(x_5, 4); +x_275 = lean_ctor_get(x_5, 5); +x_276 = lean_ctor_get(x_5, 6); +x_277 = lean_ctor_get(x_5, 7); +x_278 = lean_ctor_get(x_5, 8); +x_279 = lean_ctor_get(x_5, 9); +x_280 = lean_ctor_get_uint8(x_5, sizeof(void*)*11); +x_281 = lean_ctor_get_uint8(x_5, sizeof(void*)*11 + 1); +x_282 = lean_ctor_get_uint8(x_5, sizeof(void*)*11 + 2); +x_283 = lean_ctor_get(x_5, 10); +lean_inc(x_283); +lean_inc(x_279); +lean_inc(x_278); +lean_inc(x_277); +lean_inc(x_276); +lean_inc(x_275); +lean_inc(x_274); +lean_inc(x_273); lean_inc(x_272); lean_inc(x_271); lean_inc(x_270); -lean_inc(x_269); -lean_inc(x_268); -lean_inc(x_267); -lean_inc(x_266); -lean_inc(x_265); -lean_inc(x_264); -lean_inc(x_263); lean_dec(x_5); -lean_inc(x_255); -x_276 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_276, 0, x_1); -lean_ctor_set(x_276, 1, x_255); -x_277 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_277, 0, x_276); -lean_ctor_set(x_277, 1, x_271); -x_278 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_278, 0, x_263); -lean_ctor_set(x_278, 1, x_264); -lean_ctor_set(x_278, 2, x_265); -lean_ctor_set(x_278, 3, x_266); -lean_ctor_set(x_278, 4, x_267); -lean_ctor_set(x_278, 5, x_268); -lean_ctor_set(x_278, 6, x_269); -lean_ctor_set(x_278, 7, x_270); -lean_ctor_set(x_278, 8, x_277); -lean_ctor_set(x_278, 9, x_272); -lean_ctor_set_uint8(x_278, sizeof(void*)*10, x_273); -lean_ctor_set_uint8(x_278, sizeof(void*)*10 + 1, x_274); -lean_ctor_set_uint8(x_278, sizeof(void*)*10 + 2, x_275); -x_279 = 1; -x_280 = l_Lean_Elab_Term_elabTermAux___main(x_4, x_279, x_279, x_255, x_278, x_256); -return x_280; +lean_inc(x_262); +x_284 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_284, 0, x_1); +lean_ctor_set(x_284, 1, x_262); +x_285 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_285, 0, x_284); +lean_ctor_set(x_285, 1, x_278); +x_286 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_286, 0, x_270); +lean_ctor_set(x_286, 1, x_271); +lean_ctor_set(x_286, 2, x_272); +lean_ctor_set(x_286, 3, x_273); +lean_ctor_set(x_286, 4, x_274); +lean_ctor_set(x_286, 5, x_275); +lean_ctor_set(x_286, 6, x_276); +lean_ctor_set(x_286, 7, x_277); +lean_ctor_set(x_286, 8, x_285); +lean_ctor_set(x_286, 9, x_279); +lean_ctor_set(x_286, 10, x_283); +lean_ctor_set_uint8(x_286, sizeof(void*)*11, x_280); +lean_ctor_set_uint8(x_286, sizeof(void*)*11 + 1, x_281); +lean_ctor_set_uint8(x_286, sizeof(void*)*11 + 2, x_282); +x_287 = 1; +x_288 = l_Lean_Elab_Term_elabTerm(x_262, x_4, x_287, x_286, x_263); +return x_288; } } } @@ -2780,7 +2945,7 @@ return x_280; } } } -lean_object* _init_l___private_Lean_Elab_StructInst_5__getStructName___closed__1() { +lean_object* _init_l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__1() { _start: { lean_object* x_1; @@ -2788,27 +2953,27 @@ x_1 = lean_mk_string("invalid {...} notation, expected type is not of the form ( return x_1; } } -lean_object* _init_l___private_Lean_Elab_StructInst_5__getStructName___closed__2() { +lean_object* _init_l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_StructInst_5__getStructName___closed__1; +x_1 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_StructInst_5__getStructName___closed__3() { +lean_object* _init_l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_StructInst_5__getStructName___closed__2; +x_1 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_StructInst_5__getStructName___closed__4() { +lean_object* _init_l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__4() { _start: { lean_object* x_1; @@ -2816,4974 +2981,4982 @@ x_1 = lean_mk_string("invalid {...} notation, source type is not of the form (C return x_1; } } -lean_object* _init_l___private_Lean_Elab_StructInst_5__getStructName___closed__5() { +lean_object* _init_l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_StructInst_5__getStructName___closed__4; +x_1 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__4; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_StructInst_5__getStructName___closed__6() { +lean_object* _init_l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_StructInst_5__getStructName___closed__5; +x_1 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__5; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_StructInst_5__getStructName(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_StructInst_5__getStructName___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_6; -x_6 = l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(x_2, x_4, x_5); -if (lean_obj_tag(x_6) == 0) +lean_object* x_5; +x_5 = l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(x_1, x_3, x_4); +if (lean_obj_tag(x_5) == 0) { -lean_object* x_7; lean_object* x_8; -x_7 = lean_ctor_get(x_6, 1); -lean_inc(x_7); -lean_dec(x_6); -if (lean_obj_tag(x_2) == 0) +lean_object* x_6; lean_object* x_7; +x_6 = lean_ctor_get(x_5, 1); +lean_inc(x_6); +lean_dec(x_5); +if (lean_obj_tag(x_1) == 0) { -if (lean_obj_tag(x_3) == 2) +if (lean_obj_tag(x_2) == 2) { -lean_object* x_24; lean_object* x_25; -x_24 = lean_ctor_get(x_3, 1); -lean_inc(x_24); -lean_dec(x_3); -lean_inc(x_4); -x_25 = l_Lean_Elab_Term_inferType(x_1, x_24, x_4, x_7); -if (lean_obj_tag(x_25) == 0) +lean_object* x_23; lean_object* x_24; +x_23 = lean_ctor_get(x_2, 1); +lean_inc(x_23); +lean_dec(x_2); +lean_inc(x_3); +x_24 = l_Lean_Elab_Term_inferType(x_23, x_3, x_6); +if (lean_obj_tag(x_24) == 0) { -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_25, 0); +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); lean_inc(x_26); -x_27 = lean_ctor_get(x_25, 1); -lean_inc(x_27); -lean_dec(x_25); -lean_inc(x_4); -x_28 = l_Lean_Elab_Term_whnf(x_1, x_26, x_4, x_27); -if (lean_obj_tag(x_28) == 0) +lean_dec(x_24); +lean_inc(x_3); +x_27 = l_Lean_Elab_Term_whnf(x_25, x_3, x_26); +if (lean_obj_tag(x_27) == 0) { -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_29 = lean_ctor_get(x_28, 0); +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_27, 1); lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); -lean_inc(x_30); +lean_dec(x_27); +x_30 = l_Lean_Expr_getAppFn___main(x_28); +x_31 = l_Lean_Elab_Term_tryPostponeIfMVar(x_28, x_3, x_29); +if (lean_obj_tag(x_31) == 0) +{ +uint8_t x_32; +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); +if (lean_obj_tag(x_30) == 4) +{ +lean_object* x_42; lean_dec(x_28); -x_31 = l_Lean_Expr_getAppFn___main(x_29); -x_32 = l_Lean_Elab_Term_tryPostponeIfMVar(x_29, x_4, x_30); -if (lean_obj_tag(x_32) == 0) -{ -uint8_t x_33; -x_33 = !lean_is_exclusive(x_32); -if (x_33 == 0) -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_32, 1); -x_35 = lean_ctor_get(x_32, 0); -lean_dec(x_35); -if (lean_obj_tag(x_31) == 4) +lean_dec(x_3); +x_42 = lean_ctor_get(x_30, 0); +lean_inc(x_42); +lean_dec(x_30); +lean_ctor_set(x_31, 0, x_42); +return x_31; +} +else { lean_object* x_43; -lean_dec(x_29); -lean_dec(x_4); -x_43 = lean_ctor_get(x_31, 0); -lean_inc(x_43); +lean_free_object(x_31); +lean_dec(x_30); +x_43 = lean_box(0); +x_35 = x_43; +goto block_41; +} +block_41: +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +lean_dec(x_35); +x_36 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_36, 0, x_28); +x_37 = l_Lean_indentExpr(x_36); +x_38 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6; +x_39 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_37); +x_40 = l_Lean_Elab_Term_throwError___rarg(x_39, x_3, x_33); +return x_40; +} +} +else +{ +lean_object* x_44; lean_object* x_45; +x_44 = lean_ctor_get(x_31, 1); +lean_inc(x_44); lean_dec(x_31); -lean_ctor_set(x_32, 0, x_43); -return x_32; -} -else +if (lean_obj_tag(x_30) == 4) { -lean_object* x_44; -lean_free_object(x_32); -lean_dec(x_31); -x_44 = lean_box(0); -x_36 = x_44; -goto block_42; -} -block_42: -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -lean_dec(x_36); -x_37 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_37, 0, x_29); -x_38 = l_Lean_indentExpr(x_37); -x_39 = l___private_Lean_Elab_StructInst_5__getStructName___closed__6; -x_40 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_38); -x_41 = l_Lean_Elab_Term_throwError___rarg(x_1, x_40, x_4, x_34); -return x_41; -} -} -else -{ -lean_object* x_45; lean_object* x_46; -x_45 = lean_ctor_get(x_32, 1); -lean_inc(x_45); -lean_dec(x_32); -if (lean_obj_tag(x_31) == 4) -{ -lean_object* x_53; lean_object* x_54; -lean_dec(x_29); -lean_dec(x_4); -x_53 = lean_ctor_get(x_31, 0); -lean_inc(x_53); -lean_dec(x_31); -x_54 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_54, 1, x_45); -return x_54; -} -else -{ -lean_object* x_55; -lean_dec(x_31); -x_55 = lean_box(0); -x_46 = x_55; -goto block_52; -} -block_52: -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; -lean_dec(x_46); -x_47 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_47, 0, x_29); -x_48 = l_Lean_indentExpr(x_47); -x_49 = l___private_Lean_Elab_StructInst_5__getStructName___closed__6; -x_50 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_50, 0, x_49); -lean_ctor_set(x_50, 1, x_48); -x_51 = l_Lean_Elab_Term_throwError___rarg(x_1, x_50, x_4, x_45); -return x_51; -} -} -} -else -{ -uint8_t x_56; -lean_dec(x_31); -lean_dec(x_29); -lean_dec(x_4); -x_56 = !lean_is_exclusive(x_32); -if (x_56 == 0) -{ -return x_32; -} -else -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_32, 0); -x_58 = lean_ctor_get(x_32, 1); -lean_inc(x_58); -lean_inc(x_57); -lean_dec(x_32); -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; -lean_dec(x_4); -x_60 = !lean_is_exclusive(x_28); -if (x_60 == 0) -{ -return x_28; -} -else -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_61 = lean_ctor_get(x_28, 0); -x_62 = lean_ctor_get(x_28, 1); -lean_inc(x_62); -lean_inc(x_61); +lean_object* x_52; lean_object* x_53; lean_dec(x_28); -x_63 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_63, 0, x_61); -lean_ctor_set(x_63, 1, x_62); -return x_63; -} -} -} -else -{ -uint8_t x_64; -lean_dec(x_4); -x_64 = !lean_is_exclusive(x_25); -if (x_64 == 0) -{ -return x_25; -} -else -{ -lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_65 = lean_ctor_get(x_25, 0); -x_66 = lean_ctor_get(x_25, 1); -lean_inc(x_66); -lean_inc(x_65); -lean_dec(x_25); -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 -{ -lean_object* x_68; lean_dec(x_3); -x_68 = lean_box(0); -x_8 = x_68; -goto block_23; +x_52 = lean_ctor_get(x_30, 0); +lean_inc(x_52); +lean_dec(x_30); +x_53 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_44); +return x_53; +} +else +{ +lean_object* x_54; +lean_dec(x_30); +x_54 = lean_box(0); +x_45 = x_54; +goto block_51; +} +block_51: +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +lean_dec(x_45); +x_46 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_46, 0, x_28); +x_47 = l_Lean_indentExpr(x_46); +x_48 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6; +x_49 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_47); +x_50 = l_Lean_Elab_Term_throwError___rarg(x_49, x_3, x_44); +return x_50; +} } } else { -lean_object* x_69; lean_object* x_70; -x_69 = lean_ctor_get(x_2, 0); -lean_inc(x_69); +uint8_t x_55; +lean_dec(x_30); +lean_dec(x_28); +lean_dec(x_3); +x_55 = !lean_is_exclusive(x_31); +if (x_55 == 0) +{ +return x_31; +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_31, 0); +x_57 = lean_ctor_get(x_31, 1); +lean_inc(x_57); +lean_inc(x_56); +lean_dec(x_31); +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_3); +x_59 = !lean_is_exclusive(x_27); +if (x_59 == 0) +{ +return x_27; +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_27, 0); +x_61 = lean_ctor_get(x_27, 1); +lean_inc(x_61); +lean_inc(x_60); +lean_dec(x_27); +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_63; +lean_dec(x_3); +x_63 = !lean_is_exclusive(x_24); +if (x_63 == 0) +{ +return x_24; +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_24, 0); +x_65 = lean_ctor_get(x_24, 1); +lean_inc(x_65); +lean_inc(x_64); +lean_dec(x_24); +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 +{ +lean_object* x_67; lean_dec(x_2); -lean_inc(x_4); -lean_inc(x_69); -x_70 = l_Lean_Elab_Term_whnf(x_1, x_69, x_4, x_7); -if (lean_obj_tag(x_70) == 0) +x_67 = lean_box(0); +x_7 = x_67; +goto block_22; +} +} +else { -uint8_t x_71; -x_71 = !lean_is_exclusive(x_70); -if (x_71 == 0) +lean_object* x_68; lean_object* x_69; +x_68 = lean_ctor_get(x_1, 0); +lean_inc(x_68); +lean_dec(x_1); +lean_inc(x_3); +lean_inc(x_68); +x_69 = l_Lean_Elab_Term_whnf(x_68, x_3, x_6); +if (lean_obj_tag(x_69) == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_81; -x_72 = lean_ctor_get(x_70, 0); -x_73 = lean_ctor_get(x_70, 1); -x_81 = l_Lean_Expr_getAppFn___main(x_72); -lean_dec(x_72); -switch (lean_obj_tag(x_81)) { +uint8_t x_70; +x_70 = !lean_is_exclusive(x_69); +if (x_70 == 0) +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_80; +x_71 = lean_ctor_get(x_69, 0); +x_72 = lean_ctor_get(x_69, 1); +x_80 = l_Lean_Expr_getAppFn___main(x_71); +lean_dec(x_71); +switch (lean_obj_tag(x_80)) { case 0: { -lean_dec(x_81); -lean_free_object(x_70); -if (lean_obj_tag(x_3) == 2) +lean_dec(x_80); +lean_free_object(x_69); +if (lean_obj_tag(x_2) == 2) { -lean_object* x_82; lean_object* x_83; -lean_dec(x_69); -x_82 = lean_ctor_get(x_3, 1); -lean_inc(x_82); -lean_dec(x_3); -lean_inc(x_4); -x_83 = l_Lean_Elab_Term_inferType(x_1, x_82, x_4, x_73); -if (lean_obj_tag(x_83) == 0) +lean_object* x_81; lean_object* x_82; +lean_dec(x_68); +x_81 = lean_ctor_get(x_2, 1); +lean_inc(x_81); +lean_dec(x_2); +lean_inc(x_3); +x_82 = l_Lean_Elab_Term_inferType(x_81, x_3, x_72); +if (lean_obj_tag(x_82) == 0) { -lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_84 = lean_ctor_get(x_83, 0); +lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_83 = lean_ctor_get(x_82, 0); +lean_inc(x_83); +x_84 = lean_ctor_get(x_82, 1); lean_inc(x_84); -x_85 = lean_ctor_get(x_83, 1); -lean_inc(x_85); -lean_dec(x_83); -lean_inc(x_4); -x_86 = l_Lean_Elab_Term_whnf(x_1, x_84, x_4, x_85); -if (lean_obj_tag(x_86) == 0) +lean_dec(x_82); +lean_inc(x_3); +x_85 = l_Lean_Elab_Term_whnf(x_83, x_3, x_84); +if (lean_obj_tag(x_85) == 0) { -lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_87 = lean_ctor_get(x_86, 0); +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_86 = lean_ctor_get(x_85, 0); +lean_inc(x_86); +x_87 = lean_ctor_get(x_85, 1); lean_inc(x_87); -x_88 = lean_ctor_get(x_86, 1); -lean_inc(x_88); +lean_dec(x_85); +x_88 = l_Lean_Expr_getAppFn___main(x_86); +x_89 = l_Lean_Elab_Term_tryPostponeIfMVar(x_86, x_3, x_87); +if (lean_obj_tag(x_89) == 0) +{ +uint8_t x_90; +x_90 = !lean_is_exclusive(x_89); +if (x_90 == 0) +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_89, 1); +x_92 = lean_ctor_get(x_89, 0); +lean_dec(x_92); +if (lean_obj_tag(x_88) == 4) +{ +lean_object* x_100; lean_dec(x_86); -x_89 = l_Lean_Expr_getAppFn___main(x_87); -x_90 = l_Lean_Elab_Term_tryPostponeIfMVar(x_87, x_4, x_88); -if (lean_obj_tag(x_90) == 0) -{ -uint8_t x_91; -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); -if (lean_obj_tag(x_89) == 4) +lean_dec(x_3); +x_100 = lean_ctor_get(x_88, 0); +lean_inc(x_100); +lean_dec(x_88); +lean_ctor_set(x_89, 0, x_100); +return x_89; +} +else { lean_object* x_101; -lean_dec(x_87); -lean_dec(x_4); -x_101 = lean_ctor_get(x_89, 0); -lean_inc(x_101); +lean_free_object(x_89); +lean_dec(x_88); +x_101 = lean_box(0); +x_93 = x_101; +goto block_99; +} +block_99: +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; +lean_dec(x_93); +x_94 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_94, 0, x_86); +x_95 = l_Lean_indentExpr(x_94); +x_96 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6; +x_97 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_97, 0, x_96); +lean_ctor_set(x_97, 1, x_95); +x_98 = l_Lean_Elab_Term_throwError___rarg(x_97, x_3, x_91); +return x_98; +} +} +else +{ +lean_object* x_102; lean_object* x_103; +x_102 = lean_ctor_get(x_89, 1); +lean_inc(x_102); lean_dec(x_89); -lean_ctor_set(x_90, 0, x_101); -return x_90; -} -else +if (lean_obj_tag(x_88) == 4) { -lean_object* x_102; -lean_free_object(x_90); -lean_dec(x_89); -x_102 = lean_box(0); -x_94 = x_102; -goto block_100; -} -block_100: -{ -lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; -lean_dec(x_94); -x_95 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_95, 0, x_87); -x_96 = l_Lean_indentExpr(x_95); -x_97 = l___private_Lean_Elab_StructInst_5__getStructName___closed__6; -x_98 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_96); -x_99 = l_Lean_Elab_Term_throwError___rarg(x_1, x_98, x_4, x_92); -return x_99; -} -} -else -{ -lean_object* x_103; lean_object* x_104; -x_103 = lean_ctor_get(x_90, 1); -lean_inc(x_103); -lean_dec(x_90); -if (lean_obj_tag(x_89) == 4) -{ -lean_object* x_111; lean_object* x_112; -lean_dec(x_87); -lean_dec(x_4); -x_111 = lean_ctor_get(x_89, 0); -lean_inc(x_111); -lean_dec(x_89); -x_112 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_112, 0, x_111); -lean_ctor_set(x_112, 1, x_103); -return x_112; -} -else -{ -lean_object* x_113; -lean_dec(x_89); -x_113 = lean_box(0); -x_104 = x_113; -goto block_110; -} -block_110: -{ -lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; -lean_dec(x_104); -x_105 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_105, 0, x_87); -x_106 = l_Lean_indentExpr(x_105); -x_107 = l___private_Lean_Elab_StructInst_5__getStructName___closed__6; -x_108 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_108, 0, x_107); -lean_ctor_set(x_108, 1, x_106); -x_109 = l_Lean_Elab_Term_throwError___rarg(x_1, x_108, x_4, x_103); -return x_109; -} -} -} -else -{ -uint8_t x_114; -lean_dec(x_89); -lean_dec(x_87); -lean_dec(x_4); -x_114 = !lean_is_exclusive(x_90); -if (x_114 == 0) -{ -return x_90; -} -else -{ -lean_object* x_115; lean_object* x_116; lean_object* x_117; -x_115 = lean_ctor_get(x_90, 0); -x_116 = lean_ctor_get(x_90, 1); -lean_inc(x_116); -lean_inc(x_115); -lean_dec(x_90); -x_117 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_117, 0, x_115); -lean_ctor_set(x_117, 1, x_116); -return x_117; -} -} -} -else -{ -uint8_t x_118; -lean_dec(x_4); -x_118 = !lean_is_exclusive(x_86); -if (x_118 == 0) -{ -return x_86; -} -else -{ -lean_object* x_119; lean_object* x_120; lean_object* x_121; -x_119 = lean_ctor_get(x_86, 0); -x_120 = lean_ctor_get(x_86, 1); -lean_inc(x_120); -lean_inc(x_119); +lean_object* x_110; lean_object* x_111; lean_dec(x_86); -x_121 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_121, 0, x_119); -lean_ctor_set(x_121, 1, x_120); -return x_121; -} -} -} -else -{ -uint8_t x_122; -lean_dec(x_4); -x_122 = !lean_is_exclusive(x_83); -if (x_122 == 0) -{ -return x_83; -} -else -{ -lean_object* x_123; lean_object* x_124; lean_object* x_125; -x_123 = lean_ctor_get(x_83, 0); -x_124 = lean_ctor_get(x_83, 1); -lean_inc(x_124); -lean_inc(x_123); -lean_dec(x_83); -x_125 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_125, 0, x_123); -lean_ctor_set(x_125, 1, x_124); -return x_125; -} -} -} -else -{ -lean_object* x_126; lean_dec(x_3); -x_126 = lean_box(0); -x_74 = x_126; -goto block_80; +x_110 = lean_ctor_get(x_88, 0); +lean_inc(x_110); +lean_dec(x_88); +x_111 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_102); +return x_111; +} +else +{ +lean_object* x_112; +lean_dec(x_88); +x_112 = lean_box(0); +x_103 = x_112; +goto block_109; +} +block_109: +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +lean_dec(x_103); +x_104 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_104, 0, x_86); +x_105 = l_Lean_indentExpr(x_104); +x_106 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6; +x_107 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_107, 0, x_106); +lean_ctor_set(x_107, 1, x_105); +x_108 = l_Lean_Elab_Term_throwError___rarg(x_107, x_3, x_102); +return x_108; +} +} +} +else +{ +uint8_t x_113; +lean_dec(x_88); +lean_dec(x_86); +lean_dec(x_3); +x_113 = !lean_is_exclusive(x_89); +if (x_113 == 0) +{ +return x_89; +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; +x_114 = lean_ctor_get(x_89, 0); +x_115 = lean_ctor_get(x_89, 1); +lean_inc(x_115); +lean_inc(x_114); +lean_dec(x_89); +x_116 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_116, 0, x_114); +lean_ctor_set(x_116, 1, x_115); +return x_116; +} +} +} +else +{ +uint8_t x_117; +lean_dec(x_3); +x_117 = !lean_is_exclusive(x_85); +if (x_117 == 0) +{ +return x_85; +} +else +{ +lean_object* x_118; lean_object* x_119; lean_object* x_120; +x_118 = lean_ctor_get(x_85, 0); +x_119 = lean_ctor_get(x_85, 1); +lean_inc(x_119); +lean_inc(x_118); +lean_dec(x_85); +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; +} +} +} +else +{ +uint8_t x_121; +lean_dec(x_3); +x_121 = !lean_is_exclusive(x_82); +if (x_121 == 0) +{ +return x_82; +} +else +{ +lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_122 = lean_ctor_get(x_82, 0); +x_123 = lean_ctor_get(x_82, 1); +lean_inc(x_123); +lean_inc(x_122); +lean_dec(x_82); +x_124 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_124, 0, x_122); +lean_ctor_set(x_124, 1, x_123); +return x_124; +} +} +} +else +{ +lean_object* x_125; +lean_dec(x_2); +x_125 = lean_box(0); +x_73 = x_125; +goto block_79; } } case 1: { -lean_dec(x_81); -lean_free_object(x_70); -if (lean_obj_tag(x_3) == 2) +lean_dec(x_80); +lean_free_object(x_69); +if (lean_obj_tag(x_2) == 2) { -lean_object* x_127; lean_object* x_128; -lean_dec(x_69); -x_127 = lean_ctor_get(x_3, 1); -lean_inc(x_127); -lean_dec(x_3); -lean_inc(x_4); -x_128 = l_Lean_Elab_Term_inferType(x_1, x_127, x_4, x_73); -if (lean_obj_tag(x_128) == 0) +lean_object* x_126; lean_object* x_127; +lean_dec(x_68); +x_126 = lean_ctor_get(x_2, 1); +lean_inc(x_126); +lean_dec(x_2); +lean_inc(x_3); +x_127 = l_Lean_Elab_Term_inferType(x_126, x_3, x_72); +if (lean_obj_tag(x_127) == 0) { -lean_object* x_129; lean_object* x_130; lean_object* x_131; -x_129 = lean_ctor_get(x_128, 0); +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); -x_130 = lean_ctor_get(x_128, 1); -lean_inc(x_130); -lean_dec(x_128); -lean_inc(x_4); -x_131 = l_Lean_Elab_Term_whnf(x_1, x_129, x_4, x_130); -if (lean_obj_tag(x_131) == 0) +lean_dec(x_127); +lean_inc(x_3); +x_130 = l_Lean_Elab_Term_whnf(x_128, x_3, x_129); +if (lean_obj_tag(x_130) == 0) { -lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; -x_132 = lean_ctor_get(x_131, 0); +lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); lean_inc(x_132); -x_133 = lean_ctor_get(x_131, 1); -lean_inc(x_133); +lean_dec(x_130); +x_133 = l_Lean_Expr_getAppFn___main(x_131); +x_134 = l_Lean_Elab_Term_tryPostponeIfMVar(x_131, x_3, x_132); +if (lean_obj_tag(x_134) == 0) +{ +uint8_t x_135; +x_135 = !lean_is_exclusive(x_134); +if (x_135 == 0) +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; +x_136 = lean_ctor_get(x_134, 1); +x_137 = lean_ctor_get(x_134, 0); +lean_dec(x_137); +if (lean_obj_tag(x_133) == 4) +{ +lean_object* x_145; lean_dec(x_131); -x_134 = l_Lean_Expr_getAppFn___main(x_132); -x_135 = l_Lean_Elab_Term_tryPostponeIfMVar(x_132, x_4, x_133); -if (lean_obj_tag(x_135) == 0) -{ -uint8_t x_136; -x_136 = !lean_is_exclusive(x_135); -if (x_136 == 0) -{ -lean_object* x_137; lean_object* x_138; lean_object* x_139; -x_137 = lean_ctor_get(x_135, 1); -x_138 = lean_ctor_get(x_135, 0); -lean_dec(x_138); -if (lean_obj_tag(x_134) == 4) +lean_dec(x_3); +x_145 = lean_ctor_get(x_133, 0); +lean_inc(x_145); +lean_dec(x_133); +lean_ctor_set(x_134, 0, x_145); +return x_134; +} +else { lean_object* x_146; -lean_dec(x_132); -lean_dec(x_4); -x_146 = lean_ctor_get(x_134, 0); -lean_inc(x_146); +lean_free_object(x_134); +lean_dec(x_133); +x_146 = lean_box(0); +x_138 = x_146; +goto block_144; +} +block_144: +{ +lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; +lean_dec(x_138); +x_139 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_139, 0, x_131); +x_140 = l_Lean_indentExpr(x_139); +x_141 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6; +x_142 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_142, 0, x_141); +lean_ctor_set(x_142, 1, x_140); +x_143 = l_Lean_Elab_Term_throwError___rarg(x_142, x_3, x_136); +return x_143; +} +} +else +{ +lean_object* x_147; lean_object* x_148; +x_147 = lean_ctor_get(x_134, 1); +lean_inc(x_147); lean_dec(x_134); -lean_ctor_set(x_135, 0, x_146); -return x_135; -} -else +if (lean_obj_tag(x_133) == 4) { -lean_object* x_147; -lean_free_object(x_135); -lean_dec(x_134); -x_147 = lean_box(0); -x_139 = x_147; -goto block_145; -} -block_145: -{ -lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; -lean_dec(x_139); -x_140 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_140, 0, x_132); -x_141 = l_Lean_indentExpr(x_140); -x_142 = l___private_Lean_Elab_StructInst_5__getStructName___closed__6; -x_143 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_143, 0, x_142); -lean_ctor_set(x_143, 1, x_141); -x_144 = l_Lean_Elab_Term_throwError___rarg(x_1, x_143, x_4, x_137); -return x_144; -} -} -else -{ -lean_object* x_148; lean_object* x_149; -x_148 = lean_ctor_get(x_135, 1); -lean_inc(x_148); -lean_dec(x_135); -if (lean_obj_tag(x_134) == 4) -{ -lean_object* x_156; lean_object* x_157; -lean_dec(x_132); -lean_dec(x_4); -x_156 = lean_ctor_get(x_134, 0); -lean_inc(x_156); -lean_dec(x_134); -x_157 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_157, 0, x_156); -lean_ctor_set(x_157, 1, x_148); -return x_157; -} -else -{ -lean_object* x_158; -lean_dec(x_134); -x_158 = lean_box(0); -x_149 = x_158; -goto block_155; -} -block_155: -{ -lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; -lean_dec(x_149); -x_150 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_150, 0, x_132); -x_151 = l_Lean_indentExpr(x_150); -x_152 = l___private_Lean_Elab_StructInst_5__getStructName___closed__6; -x_153 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_153, 0, x_152); -lean_ctor_set(x_153, 1, x_151); -x_154 = l_Lean_Elab_Term_throwError___rarg(x_1, x_153, x_4, x_148); -return x_154; -} -} -} -else -{ -uint8_t x_159; -lean_dec(x_134); -lean_dec(x_132); -lean_dec(x_4); -x_159 = !lean_is_exclusive(x_135); -if (x_159 == 0) -{ -return x_135; -} -else -{ -lean_object* x_160; lean_object* x_161; lean_object* x_162; -x_160 = lean_ctor_get(x_135, 0); -x_161 = lean_ctor_get(x_135, 1); -lean_inc(x_161); -lean_inc(x_160); -lean_dec(x_135); -x_162 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_162, 0, x_160); -lean_ctor_set(x_162, 1, x_161); -return x_162; -} -} -} -else -{ -uint8_t x_163; -lean_dec(x_4); -x_163 = !lean_is_exclusive(x_131); -if (x_163 == 0) -{ -return x_131; -} -else -{ -lean_object* x_164; lean_object* x_165; lean_object* x_166; -x_164 = lean_ctor_get(x_131, 0); -x_165 = lean_ctor_get(x_131, 1); -lean_inc(x_165); -lean_inc(x_164); +lean_object* x_155; lean_object* x_156; lean_dec(x_131); -x_166 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_166, 0, x_164); -lean_ctor_set(x_166, 1, x_165); -return x_166; -} -} -} -else -{ -uint8_t x_167; -lean_dec(x_4); -x_167 = !lean_is_exclusive(x_128); -if (x_167 == 0) -{ -return x_128; -} -else -{ -lean_object* x_168; lean_object* x_169; lean_object* x_170; -x_168 = lean_ctor_get(x_128, 0); -x_169 = lean_ctor_get(x_128, 1); -lean_inc(x_169); -lean_inc(x_168); -lean_dec(x_128); -x_170 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_170, 0, x_168); -lean_ctor_set(x_170, 1, x_169); -return x_170; -} -} -} -else -{ -lean_object* x_171; lean_dec(x_3); -x_171 = lean_box(0); -x_74 = x_171; -goto block_80; +x_155 = lean_ctor_get(x_133, 0); +lean_inc(x_155); +lean_dec(x_133); +x_156 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_156, 0, x_155); +lean_ctor_set(x_156, 1, x_147); +return x_156; +} +else +{ +lean_object* x_157; +lean_dec(x_133); +x_157 = lean_box(0); +x_148 = x_157; +goto block_154; +} +block_154: +{ +lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; +lean_dec(x_148); +x_149 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_149, 0, x_131); +x_150 = l_Lean_indentExpr(x_149); +x_151 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6; +x_152 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_152, 0, x_151); +lean_ctor_set(x_152, 1, x_150); +x_153 = l_Lean_Elab_Term_throwError___rarg(x_152, x_3, x_147); +return x_153; +} +} +} +else +{ +uint8_t x_158; +lean_dec(x_133); +lean_dec(x_131); +lean_dec(x_3); +x_158 = !lean_is_exclusive(x_134); +if (x_158 == 0) +{ +return x_134; +} +else +{ +lean_object* x_159; lean_object* x_160; lean_object* x_161; +x_159 = lean_ctor_get(x_134, 0); +x_160 = lean_ctor_get(x_134, 1); +lean_inc(x_160); +lean_inc(x_159); +lean_dec(x_134); +x_161 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_161, 0, x_159); +lean_ctor_set(x_161, 1, x_160); +return x_161; +} +} +} +else +{ +uint8_t x_162; +lean_dec(x_3); +x_162 = !lean_is_exclusive(x_130); +if (x_162 == 0) +{ +return x_130; +} +else +{ +lean_object* x_163; lean_object* x_164; lean_object* x_165; +x_163 = lean_ctor_get(x_130, 0); +x_164 = lean_ctor_get(x_130, 1); +lean_inc(x_164); +lean_inc(x_163); +lean_dec(x_130); +x_165 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_165, 0, x_163); +lean_ctor_set(x_165, 1, x_164); +return x_165; +} +} +} +else +{ +uint8_t x_166; +lean_dec(x_3); +x_166 = !lean_is_exclusive(x_127); +if (x_166 == 0) +{ +return x_127; +} +else +{ +lean_object* x_167; lean_object* x_168; lean_object* x_169; +x_167 = lean_ctor_get(x_127, 0); +x_168 = lean_ctor_get(x_127, 1); +lean_inc(x_168); +lean_inc(x_167); +lean_dec(x_127); +x_169 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_169, 0, x_167); +lean_ctor_set(x_169, 1, x_168); +return x_169; +} +} +} +else +{ +lean_object* x_170; +lean_dec(x_2); +x_170 = lean_box(0); +x_73 = x_170; +goto block_79; } } case 2: { -lean_dec(x_81); -lean_free_object(x_70); -if (lean_obj_tag(x_3) == 2) +lean_dec(x_80); +lean_free_object(x_69); +if (lean_obj_tag(x_2) == 2) { -lean_object* x_172; lean_object* x_173; -lean_dec(x_69); -x_172 = lean_ctor_get(x_3, 1); -lean_inc(x_172); -lean_dec(x_3); -lean_inc(x_4); -x_173 = l_Lean_Elab_Term_inferType(x_1, x_172, x_4, x_73); -if (lean_obj_tag(x_173) == 0) +lean_object* x_171; lean_object* x_172; +lean_dec(x_68); +x_171 = lean_ctor_get(x_2, 1); +lean_inc(x_171); +lean_dec(x_2); +lean_inc(x_3); +x_172 = l_Lean_Elab_Term_inferType(x_171, x_3, x_72); +if (lean_obj_tag(x_172) == 0) { -lean_object* x_174; lean_object* x_175; lean_object* x_176; -x_174 = lean_ctor_get(x_173, 0); +lean_object* x_173; lean_object* x_174; lean_object* x_175; +x_173 = lean_ctor_get(x_172, 0); +lean_inc(x_173); +x_174 = lean_ctor_get(x_172, 1); lean_inc(x_174); -x_175 = lean_ctor_get(x_173, 1); -lean_inc(x_175); -lean_dec(x_173); -lean_inc(x_4); -x_176 = l_Lean_Elab_Term_whnf(x_1, x_174, x_4, x_175); -if (lean_obj_tag(x_176) == 0) +lean_dec(x_172); +lean_inc(x_3); +x_175 = l_Lean_Elab_Term_whnf(x_173, x_3, x_174); +if (lean_obj_tag(x_175) == 0) { -lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; -x_177 = lean_ctor_get(x_176, 0); +lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; +x_176 = lean_ctor_get(x_175, 0); +lean_inc(x_176); +x_177 = lean_ctor_get(x_175, 1); lean_inc(x_177); -x_178 = lean_ctor_get(x_176, 1); -lean_inc(x_178); +lean_dec(x_175); +x_178 = l_Lean_Expr_getAppFn___main(x_176); +x_179 = l_Lean_Elab_Term_tryPostponeIfMVar(x_176, x_3, x_177); +if (lean_obj_tag(x_179) == 0) +{ +uint8_t x_180; +x_180 = !lean_is_exclusive(x_179); +if (x_180 == 0) +{ +lean_object* x_181; lean_object* x_182; lean_object* x_183; +x_181 = lean_ctor_get(x_179, 1); +x_182 = lean_ctor_get(x_179, 0); +lean_dec(x_182); +if (lean_obj_tag(x_178) == 4) +{ +lean_object* x_190; lean_dec(x_176); -x_179 = l_Lean_Expr_getAppFn___main(x_177); -x_180 = l_Lean_Elab_Term_tryPostponeIfMVar(x_177, x_4, x_178); -if (lean_obj_tag(x_180) == 0) -{ -uint8_t x_181; -x_181 = !lean_is_exclusive(x_180); -if (x_181 == 0) -{ -lean_object* x_182; lean_object* x_183; lean_object* x_184; -x_182 = lean_ctor_get(x_180, 1); -x_183 = lean_ctor_get(x_180, 0); -lean_dec(x_183); -if (lean_obj_tag(x_179) == 4) +lean_dec(x_3); +x_190 = lean_ctor_get(x_178, 0); +lean_inc(x_190); +lean_dec(x_178); +lean_ctor_set(x_179, 0, x_190); +return x_179; +} +else { lean_object* x_191; -lean_dec(x_177); -lean_dec(x_4); -x_191 = lean_ctor_get(x_179, 0); -lean_inc(x_191); +lean_free_object(x_179); +lean_dec(x_178); +x_191 = lean_box(0); +x_183 = x_191; +goto block_189; +} +block_189: +{ +lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; +lean_dec(x_183); +x_184 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_184, 0, x_176); +x_185 = l_Lean_indentExpr(x_184); +x_186 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6; +x_187 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_187, 0, x_186); +lean_ctor_set(x_187, 1, x_185); +x_188 = l_Lean_Elab_Term_throwError___rarg(x_187, x_3, x_181); +return x_188; +} +} +else +{ +lean_object* x_192; lean_object* x_193; +x_192 = lean_ctor_get(x_179, 1); +lean_inc(x_192); lean_dec(x_179); -lean_ctor_set(x_180, 0, x_191); -return x_180; -} -else +if (lean_obj_tag(x_178) == 4) { -lean_object* x_192; -lean_free_object(x_180); -lean_dec(x_179); -x_192 = lean_box(0); -x_184 = x_192; -goto block_190; -} -block_190: -{ -lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; -lean_dec(x_184); -x_185 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_185, 0, x_177); -x_186 = l_Lean_indentExpr(x_185); -x_187 = l___private_Lean_Elab_StructInst_5__getStructName___closed__6; -x_188 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_188, 0, x_187); -lean_ctor_set(x_188, 1, x_186); -x_189 = l_Lean_Elab_Term_throwError___rarg(x_1, x_188, x_4, x_182); -return x_189; -} -} -else -{ -lean_object* x_193; lean_object* x_194; -x_193 = lean_ctor_get(x_180, 1); -lean_inc(x_193); -lean_dec(x_180); -if (lean_obj_tag(x_179) == 4) -{ -lean_object* x_201; lean_object* x_202; -lean_dec(x_177); -lean_dec(x_4); -x_201 = lean_ctor_get(x_179, 0); -lean_inc(x_201); -lean_dec(x_179); -x_202 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_202, 0, x_201); -lean_ctor_set(x_202, 1, x_193); -return x_202; -} -else -{ -lean_object* x_203; -lean_dec(x_179); -x_203 = lean_box(0); -x_194 = x_203; -goto block_200; -} -block_200: -{ -lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; -lean_dec(x_194); -x_195 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_195, 0, x_177); -x_196 = l_Lean_indentExpr(x_195); -x_197 = l___private_Lean_Elab_StructInst_5__getStructName___closed__6; -x_198 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_198, 0, x_197); -lean_ctor_set(x_198, 1, x_196); -x_199 = l_Lean_Elab_Term_throwError___rarg(x_1, x_198, x_4, x_193); -return x_199; -} -} -} -else -{ -uint8_t x_204; -lean_dec(x_179); -lean_dec(x_177); -lean_dec(x_4); -x_204 = !lean_is_exclusive(x_180); -if (x_204 == 0) -{ -return x_180; -} -else -{ -lean_object* x_205; lean_object* x_206; lean_object* x_207; -x_205 = lean_ctor_get(x_180, 0); -x_206 = lean_ctor_get(x_180, 1); -lean_inc(x_206); -lean_inc(x_205); -lean_dec(x_180); -x_207 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_207, 0, x_205); -lean_ctor_set(x_207, 1, x_206); -return x_207; -} -} -} -else -{ -uint8_t x_208; -lean_dec(x_4); -x_208 = !lean_is_exclusive(x_176); -if (x_208 == 0) -{ -return x_176; -} -else -{ -lean_object* x_209; lean_object* x_210; lean_object* x_211; -x_209 = lean_ctor_get(x_176, 0); -x_210 = lean_ctor_get(x_176, 1); -lean_inc(x_210); -lean_inc(x_209); +lean_object* x_200; lean_object* x_201; lean_dec(x_176); -x_211 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_211, 0, x_209); -lean_ctor_set(x_211, 1, x_210); -return x_211; -} -} -} -else -{ -uint8_t x_212; -lean_dec(x_4); -x_212 = !lean_is_exclusive(x_173); -if (x_212 == 0) -{ -return x_173; -} -else -{ -lean_object* x_213; lean_object* x_214; lean_object* x_215; -x_213 = lean_ctor_get(x_173, 0); -x_214 = lean_ctor_get(x_173, 1); -lean_inc(x_214); -lean_inc(x_213); -lean_dec(x_173); -x_215 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_215, 0, x_213); -lean_ctor_set(x_215, 1, x_214); -return x_215; -} -} -} -else -{ -lean_object* x_216; lean_dec(x_3); -x_216 = lean_box(0); -x_74 = x_216; -goto block_80; +x_200 = lean_ctor_get(x_178, 0); +lean_inc(x_200); +lean_dec(x_178); +x_201 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_201, 0, x_200); +lean_ctor_set(x_201, 1, x_192); +return x_201; +} +else +{ +lean_object* x_202; +lean_dec(x_178); +x_202 = lean_box(0); +x_193 = x_202; +goto block_199; +} +block_199: +{ +lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; +lean_dec(x_193); +x_194 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_194, 0, x_176); +x_195 = l_Lean_indentExpr(x_194); +x_196 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6; +x_197 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_197, 0, x_196); +lean_ctor_set(x_197, 1, x_195); +x_198 = l_Lean_Elab_Term_throwError___rarg(x_197, x_3, x_192); +return x_198; +} +} +} +else +{ +uint8_t x_203; +lean_dec(x_178); +lean_dec(x_176); +lean_dec(x_3); +x_203 = !lean_is_exclusive(x_179); +if (x_203 == 0) +{ +return x_179; +} +else +{ +lean_object* x_204; lean_object* x_205; lean_object* x_206; +x_204 = lean_ctor_get(x_179, 0); +x_205 = lean_ctor_get(x_179, 1); +lean_inc(x_205); +lean_inc(x_204); +lean_dec(x_179); +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; +} +} +} +else +{ +uint8_t x_207; +lean_dec(x_3); +x_207 = !lean_is_exclusive(x_175); +if (x_207 == 0) +{ +return x_175; +} +else +{ +lean_object* x_208; lean_object* x_209; lean_object* x_210; +x_208 = lean_ctor_get(x_175, 0); +x_209 = lean_ctor_get(x_175, 1); +lean_inc(x_209); +lean_inc(x_208); +lean_dec(x_175); +x_210 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_210, 0, x_208); +lean_ctor_set(x_210, 1, x_209); +return x_210; +} +} +} +else +{ +uint8_t x_211; +lean_dec(x_3); +x_211 = !lean_is_exclusive(x_172); +if (x_211 == 0) +{ +return x_172; +} +else +{ +lean_object* x_212; lean_object* x_213; lean_object* x_214; +x_212 = lean_ctor_get(x_172, 0); +x_213 = lean_ctor_get(x_172, 1); +lean_inc(x_213); +lean_inc(x_212); +lean_dec(x_172); +x_214 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_214, 0, x_212); +lean_ctor_set(x_214, 1, x_213); +return x_214; +} +} +} +else +{ +lean_object* x_215; +lean_dec(x_2); +x_215 = lean_box(0); +x_73 = x_215; +goto block_79; } } case 3: { -lean_dec(x_81); -lean_free_object(x_70); -if (lean_obj_tag(x_3) == 2) +lean_dec(x_80); +lean_free_object(x_69); +if (lean_obj_tag(x_2) == 2) { -lean_object* x_217; lean_object* x_218; -lean_dec(x_69); -x_217 = lean_ctor_get(x_3, 1); -lean_inc(x_217); -lean_dec(x_3); -lean_inc(x_4); -x_218 = l_Lean_Elab_Term_inferType(x_1, x_217, x_4, x_73); -if (lean_obj_tag(x_218) == 0) +lean_object* x_216; lean_object* x_217; +lean_dec(x_68); +x_216 = lean_ctor_get(x_2, 1); +lean_inc(x_216); +lean_dec(x_2); +lean_inc(x_3); +x_217 = l_Lean_Elab_Term_inferType(x_216, x_3, x_72); +if (lean_obj_tag(x_217) == 0) { -lean_object* x_219; lean_object* x_220; lean_object* x_221; -x_219 = lean_ctor_get(x_218, 0); +lean_object* x_218; lean_object* x_219; lean_object* x_220; +x_218 = lean_ctor_get(x_217, 0); +lean_inc(x_218); +x_219 = lean_ctor_get(x_217, 1); lean_inc(x_219); -x_220 = lean_ctor_get(x_218, 1); -lean_inc(x_220); -lean_dec(x_218); -lean_inc(x_4); -x_221 = l_Lean_Elab_Term_whnf(x_1, x_219, x_4, x_220); -if (lean_obj_tag(x_221) == 0) +lean_dec(x_217); +lean_inc(x_3); +x_220 = l_Lean_Elab_Term_whnf(x_218, x_3, x_219); +if (lean_obj_tag(x_220) == 0) { -lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; -x_222 = lean_ctor_get(x_221, 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); -x_223 = lean_ctor_get(x_221, 1); -lean_inc(x_223); +lean_dec(x_220); +x_223 = l_Lean_Expr_getAppFn___main(x_221); +x_224 = l_Lean_Elab_Term_tryPostponeIfMVar(x_221, x_3, x_222); +if (lean_obj_tag(x_224) == 0) +{ +uint8_t x_225; +x_225 = !lean_is_exclusive(x_224); +if (x_225 == 0) +{ +lean_object* x_226; lean_object* x_227; lean_object* x_228; +x_226 = lean_ctor_get(x_224, 1); +x_227 = lean_ctor_get(x_224, 0); +lean_dec(x_227); +if (lean_obj_tag(x_223) == 4) +{ +lean_object* x_235; lean_dec(x_221); -x_224 = l_Lean_Expr_getAppFn___main(x_222); -x_225 = l_Lean_Elab_Term_tryPostponeIfMVar(x_222, x_4, x_223); -if (lean_obj_tag(x_225) == 0) -{ -uint8_t x_226; -x_226 = !lean_is_exclusive(x_225); -if (x_226 == 0) -{ -lean_object* x_227; lean_object* x_228; lean_object* x_229; -x_227 = lean_ctor_get(x_225, 1); -x_228 = lean_ctor_get(x_225, 0); -lean_dec(x_228); -if (lean_obj_tag(x_224) == 4) +lean_dec(x_3); +x_235 = lean_ctor_get(x_223, 0); +lean_inc(x_235); +lean_dec(x_223); +lean_ctor_set(x_224, 0, x_235); +return x_224; +} +else { lean_object* x_236; -lean_dec(x_222); -lean_dec(x_4); -x_236 = lean_ctor_get(x_224, 0); -lean_inc(x_236); +lean_free_object(x_224); +lean_dec(x_223); +x_236 = lean_box(0); +x_228 = x_236; +goto block_234; +} +block_234: +{ +lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; +lean_dec(x_228); +x_229 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_229, 0, x_221); +x_230 = l_Lean_indentExpr(x_229); +x_231 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6; +x_232 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_232, 0, x_231); +lean_ctor_set(x_232, 1, x_230); +x_233 = l_Lean_Elab_Term_throwError___rarg(x_232, x_3, x_226); +return x_233; +} +} +else +{ +lean_object* x_237; lean_object* x_238; +x_237 = lean_ctor_get(x_224, 1); +lean_inc(x_237); lean_dec(x_224); -lean_ctor_set(x_225, 0, x_236); -return x_225; -} -else +if (lean_obj_tag(x_223) == 4) { -lean_object* x_237; -lean_free_object(x_225); -lean_dec(x_224); -x_237 = lean_box(0); -x_229 = x_237; -goto block_235; -} -block_235: -{ -lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; -lean_dec(x_229); -x_230 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_230, 0, x_222); -x_231 = l_Lean_indentExpr(x_230); -x_232 = l___private_Lean_Elab_StructInst_5__getStructName___closed__6; -x_233 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_233, 0, x_232); -lean_ctor_set(x_233, 1, x_231); -x_234 = l_Lean_Elab_Term_throwError___rarg(x_1, x_233, x_4, x_227); -return x_234; -} -} -else -{ -lean_object* x_238; lean_object* x_239; -x_238 = lean_ctor_get(x_225, 1); -lean_inc(x_238); -lean_dec(x_225); -if (lean_obj_tag(x_224) == 4) -{ -lean_object* x_246; lean_object* x_247; -lean_dec(x_222); -lean_dec(x_4); -x_246 = lean_ctor_get(x_224, 0); -lean_inc(x_246); -lean_dec(x_224); -x_247 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_247, 0, x_246); -lean_ctor_set(x_247, 1, x_238); -return x_247; -} -else -{ -lean_object* x_248; -lean_dec(x_224); -x_248 = lean_box(0); -x_239 = x_248; -goto block_245; -} -block_245: -{ -lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; -lean_dec(x_239); -x_240 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_240, 0, x_222); -x_241 = l_Lean_indentExpr(x_240); -x_242 = l___private_Lean_Elab_StructInst_5__getStructName___closed__6; -x_243 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_243, 0, x_242); -lean_ctor_set(x_243, 1, x_241); -x_244 = l_Lean_Elab_Term_throwError___rarg(x_1, x_243, x_4, x_238); -return x_244; -} -} -} -else -{ -uint8_t x_249; -lean_dec(x_224); -lean_dec(x_222); -lean_dec(x_4); -x_249 = !lean_is_exclusive(x_225); -if (x_249 == 0) -{ -return x_225; -} -else -{ -lean_object* x_250; lean_object* x_251; lean_object* x_252; -x_250 = lean_ctor_get(x_225, 0); -x_251 = lean_ctor_get(x_225, 1); -lean_inc(x_251); -lean_inc(x_250); -lean_dec(x_225); -x_252 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_252, 0, x_250); -lean_ctor_set(x_252, 1, x_251); -return x_252; -} -} -} -else -{ -uint8_t x_253; -lean_dec(x_4); -x_253 = !lean_is_exclusive(x_221); -if (x_253 == 0) -{ -return x_221; -} -else -{ -lean_object* x_254; lean_object* x_255; lean_object* x_256; -x_254 = lean_ctor_get(x_221, 0); -x_255 = lean_ctor_get(x_221, 1); -lean_inc(x_255); -lean_inc(x_254); +lean_object* x_245; lean_object* x_246; lean_dec(x_221); -x_256 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_256, 0, x_254); -lean_ctor_set(x_256, 1, x_255); -return x_256; -} -} -} -else -{ -uint8_t x_257; -lean_dec(x_4); -x_257 = !lean_is_exclusive(x_218); -if (x_257 == 0) -{ -return x_218; -} -else -{ -lean_object* x_258; lean_object* x_259; lean_object* x_260; -x_258 = lean_ctor_get(x_218, 0); -x_259 = lean_ctor_get(x_218, 1); -lean_inc(x_259); -lean_inc(x_258); -lean_dec(x_218); -x_260 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_260, 0, x_258); -lean_ctor_set(x_260, 1, x_259); -return x_260; -} -} -} -else -{ -lean_object* x_261; lean_dec(x_3); -x_261 = lean_box(0); -x_74 = x_261; -goto block_80; +x_245 = lean_ctor_get(x_223, 0); +lean_inc(x_245); +lean_dec(x_223); +x_246 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_246, 0, x_245); +lean_ctor_set(x_246, 1, x_237); +return x_246; +} +else +{ +lean_object* x_247; +lean_dec(x_223); +x_247 = lean_box(0); +x_238 = x_247; +goto block_244; +} +block_244: +{ +lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; +lean_dec(x_238); +x_239 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_239, 0, x_221); +x_240 = l_Lean_indentExpr(x_239); +x_241 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6; +x_242 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_242, 0, x_241); +lean_ctor_set(x_242, 1, x_240); +x_243 = l_Lean_Elab_Term_throwError___rarg(x_242, x_3, x_237); +return x_243; +} +} +} +else +{ +uint8_t x_248; +lean_dec(x_223); +lean_dec(x_221); +lean_dec(x_3); +x_248 = !lean_is_exclusive(x_224); +if (x_248 == 0) +{ +return x_224; +} +else +{ +lean_object* x_249; lean_object* x_250; lean_object* x_251; +x_249 = lean_ctor_get(x_224, 0); +x_250 = lean_ctor_get(x_224, 1); +lean_inc(x_250); +lean_inc(x_249); +lean_dec(x_224); +x_251 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_251, 0, x_249); +lean_ctor_set(x_251, 1, x_250); +return x_251; +} +} +} +else +{ +uint8_t x_252; +lean_dec(x_3); +x_252 = !lean_is_exclusive(x_220); +if (x_252 == 0) +{ +return x_220; +} +else +{ +lean_object* x_253; lean_object* x_254; lean_object* x_255; +x_253 = lean_ctor_get(x_220, 0); +x_254 = lean_ctor_get(x_220, 1); +lean_inc(x_254); +lean_inc(x_253); +lean_dec(x_220); +x_255 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_255, 0, x_253); +lean_ctor_set(x_255, 1, x_254); +return x_255; +} +} +} +else +{ +uint8_t x_256; +lean_dec(x_3); +x_256 = !lean_is_exclusive(x_217); +if (x_256 == 0) +{ +return x_217; +} +else +{ +lean_object* x_257; lean_object* x_258; lean_object* x_259; +x_257 = lean_ctor_get(x_217, 0); +x_258 = lean_ctor_get(x_217, 1); +lean_inc(x_258); +lean_inc(x_257); +lean_dec(x_217); +x_259 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_259, 0, x_257); +lean_ctor_set(x_259, 1, x_258); +return x_259; +} +} +} +else +{ +lean_object* x_260; +lean_dec(x_2); +x_260 = lean_box(0); +x_73 = x_260; +goto block_79; } } case 4: { -lean_object* x_262; -lean_dec(x_69); -lean_dec(x_4); +lean_object* x_261; +lean_dec(x_68); lean_dec(x_3); -x_262 = lean_ctor_get(x_81, 0); -lean_inc(x_262); -lean_dec(x_81); -lean_ctor_set(x_70, 0, x_262); -return x_70; +lean_dec(x_2); +x_261 = lean_ctor_get(x_80, 0); +lean_inc(x_261); +lean_dec(x_80); +lean_ctor_set(x_69, 0, x_261); +return x_69; } case 5: { -lean_dec(x_81); -lean_free_object(x_70); -if (lean_obj_tag(x_3) == 2) +lean_dec(x_80); +lean_free_object(x_69); +if (lean_obj_tag(x_2) == 2) { -lean_object* x_263; lean_object* x_264; -lean_dec(x_69); -x_263 = lean_ctor_get(x_3, 1); -lean_inc(x_263); -lean_dec(x_3); -lean_inc(x_4); -x_264 = l_Lean_Elab_Term_inferType(x_1, x_263, x_4, x_73); -if (lean_obj_tag(x_264) == 0) +lean_object* x_262; lean_object* x_263; +lean_dec(x_68); +x_262 = lean_ctor_get(x_2, 1); +lean_inc(x_262); +lean_dec(x_2); +lean_inc(x_3); +x_263 = l_Lean_Elab_Term_inferType(x_262, x_3, x_72); +if (lean_obj_tag(x_263) == 0) { -lean_object* x_265; lean_object* x_266; lean_object* x_267; -x_265 = lean_ctor_get(x_264, 0); +lean_object* x_264; lean_object* x_265; lean_object* x_266; +x_264 = lean_ctor_get(x_263, 0); +lean_inc(x_264); +x_265 = lean_ctor_get(x_263, 1); lean_inc(x_265); -x_266 = lean_ctor_get(x_264, 1); -lean_inc(x_266); -lean_dec(x_264); -lean_inc(x_4); -x_267 = l_Lean_Elab_Term_whnf(x_1, x_265, x_4, x_266); -if (lean_obj_tag(x_267) == 0) +lean_dec(x_263); +lean_inc(x_3); +x_266 = l_Lean_Elab_Term_whnf(x_264, x_3, x_265); +if (lean_obj_tag(x_266) == 0) { -lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; -x_268 = lean_ctor_get(x_267, 0); +lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; +x_267 = lean_ctor_get(x_266, 0); +lean_inc(x_267); +x_268 = lean_ctor_get(x_266, 1); lean_inc(x_268); -x_269 = lean_ctor_get(x_267, 1); -lean_inc(x_269); +lean_dec(x_266); +x_269 = l_Lean_Expr_getAppFn___main(x_267); +x_270 = l_Lean_Elab_Term_tryPostponeIfMVar(x_267, x_3, x_268); +if (lean_obj_tag(x_270) == 0) +{ +uint8_t x_271; +x_271 = !lean_is_exclusive(x_270); +if (x_271 == 0) +{ +lean_object* x_272; lean_object* x_273; lean_object* x_274; +x_272 = lean_ctor_get(x_270, 1); +x_273 = lean_ctor_get(x_270, 0); +lean_dec(x_273); +if (lean_obj_tag(x_269) == 4) +{ +lean_object* x_281; lean_dec(x_267); -x_270 = l_Lean_Expr_getAppFn___main(x_268); -x_271 = l_Lean_Elab_Term_tryPostponeIfMVar(x_268, x_4, x_269); -if (lean_obj_tag(x_271) == 0) -{ -uint8_t x_272; -x_272 = !lean_is_exclusive(x_271); -if (x_272 == 0) -{ -lean_object* x_273; lean_object* x_274; lean_object* x_275; -x_273 = lean_ctor_get(x_271, 1); -x_274 = lean_ctor_get(x_271, 0); -lean_dec(x_274); -if (lean_obj_tag(x_270) == 4) +lean_dec(x_3); +x_281 = lean_ctor_get(x_269, 0); +lean_inc(x_281); +lean_dec(x_269); +lean_ctor_set(x_270, 0, x_281); +return x_270; +} +else { lean_object* x_282; -lean_dec(x_268); -lean_dec(x_4); -x_282 = lean_ctor_get(x_270, 0); -lean_inc(x_282); +lean_free_object(x_270); +lean_dec(x_269); +x_282 = lean_box(0); +x_274 = x_282; +goto block_280; +} +block_280: +{ +lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; +lean_dec(x_274); +x_275 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_275, 0, x_267); +x_276 = l_Lean_indentExpr(x_275); +x_277 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6; +x_278 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_278, 0, x_277); +lean_ctor_set(x_278, 1, x_276); +x_279 = l_Lean_Elab_Term_throwError___rarg(x_278, x_3, x_272); +return x_279; +} +} +else +{ +lean_object* x_283; lean_object* x_284; +x_283 = lean_ctor_get(x_270, 1); +lean_inc(x_283); lean_dec(x_270); -lean_ctor_set(x_271, 0, x_282); -return x_271; -} -else +if (lean_obj_tag(x_269) == 4) { -lean_object* x_283; -lean_free_object(x_271); -lean_dec(x_270); -x_283 = lean_box(0); -x_275 = x_283; -goto block_281; -} -block_281: -{ -lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; -lean_dec(x_275); -x_276 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_276, 0, x_268); -x_277 = l_Lean_indentExpr(x_276); -x_278 = l___private_Lean_Elab_StructInst_5__getStructName___closed__6; -x_279 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_279, 0, x_278); -lean_ctor_set(x_279, 1, x_277); -x_280 = l_Lean_Elab_Term_throwError___rarg(x_1, x_279, x_4, x_273); -return x_280; -} -} -else -{ -lean_object* x_284; lean_object* x_285; -x_284 = lean_ctor_get(x_271, 1); -lean_inc(x_284); -lean_dec(x_271); -if (lean_obj_tag(x_270) == 4) -{ -lean_object* x_292; lean_object* x_293; -lean_dec(x_268); -lean_dec(x_4); -x_292 = lean_ctor_get(x_270, 0); -lean_inc(x_292); -lean_dec(x_270); -x_293 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_293, 0, x_292); -lean_ctor_set(x_293, 1, x_284); -return x_293; -} -else -{ -lean_object* x_294; -lean_dec(x_270); -x_294 = lean_box(0); -x_285 = x_294; -goto block_291; -} -block_291: -{ -lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; -lean_dec(x_285); -x_286 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_286, 0, x_268); -x_287 = l_Lean_indentExpr(x_286); -x_288 = l___private_Lean_Elab_StructInst_5__getStructName___closed__6; -x_289 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_289, 0, x_288); -lean_ctor_set(x_289, 1, x_287); -x_290 = l_Lean_Elab_Term_throwError___rarg(x_1, x_289, x_4, x_284); -return x_290; -} -} -} -else -{ -uint8_t x_295; -lean_dec(x_270); -lean_dec(x_268); -lean_dec(x_4); -x_295 = !lean_is_exclusive(x_271); -if (x_295 == 0) -{ -return x_271; -} -else -{ -lean_object* x_296; lean_object* x_297; lean_object* x_298; -x_296 = lean_ctor_get(x_271, 0); -x_297 = lean_ctor_get(x_271, 1); -lean_inc(x_297); -lean_inc(x_296); -lean_dec(x_271); -x_298 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_298, 0, x_296); -lean_ctor_set(x_298, 1, x_297); -return x_298; -} -} -} -else -{ -uint8_t x_299; -lean_dec(x_4); -x_299 = !lean_is_exclusive(x_267); -if (x_299 == 0) -{ -return x_267; -} -else -{ -lean_object* x_300; lean_object* x_301; lean_object* x_302; -x_300 = lean_ctor_get(x_267, 0); -x_301 = lean_ctor_get(x_267, 1); -lean_inc(x_301); -lean_inc(x_300); +lean_object* x_291; lean_object* x_292; lean_dec(x_267); -x_302 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_302, 0, x_300); -lean_ctor_set(x_302, 1, x_301); -return x_302; -} -} -} -else -{ -uint8_t x_303; -lean_dec(x_4); -x_303 = !lean_is_exclusive(x_264); -if (x_303 == 0) -{ -return x_264; -} -else -{ -lean_object* x_304; lean_object* x_305; lean_object* x_306; -x_304 = lean_ctor_get(x_264, 0); -x_305 = lean_ctor_get(x_264, 1); -lean_inc(x_305); -lean_inc(x_304); -lean_dec(x_264); -x_306 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_306, 0, x_304); -lean_ctor_set(x_306, 1, x_305); -return x_306; -} -} -} -else -{ -lean_object* x_307; lean_dec(x_3); -x_307 = lean_box(0); -x_74 = x_307; -goto block_80; +x_291 = lean_ctor_get(x_269, 0); +lean_inc(x_291); +lean_dec(x_269); +x_292 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_292, 0, x_291); +lean_ctor_set(x_292, 1, x_283); +return x_292; +} +else +{ +lean_object* x_293; +lean_dec(x_269); +x_293 = lean_box(0); +x_284 = x_293; +goto block_290; +} +block_290: +{ +lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; +lean_dec(x_284); +x_285 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_285, 0, x_267); +x_286 = l_Lean_indentExpr(x_285); +x_287 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6; +x_288 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_288, 0, x_287); +lean_ctor_set(x_288, 1, x_286); +x_289 = l_Lean_Elab_Term_throwError___rarg(x_288, x_3, x_283); +return x_289; +} +} +} +else +{ +uint8_t x_294; +lean_dec(x_269); +lean_dec(x_267); +lean_dec(x_3); +x_294 = !lean_is_exclusive(x_270); +if (x_294 == 0) +{ +return x_270; +} +else +{ +lean_object* x_295; lean_object* x_296; lean_object* x_297; +x_295 = lean_ctor_get(x_270, 0); +x_296 = lean_ctor_get(x_270, 1); +lean_inc(x_296); +lean_inc(x_295); +lean_dec(x_270); +x_297 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_297, 0, x_295); +lean_ctor_set(x_297, 1, x_296); +return x_297; +} +} +} +else +{ +uint8_t x_298; +lean_dec(x_3); +x_298 = !lean_is_exclusive(x_266); +if (x_298 == 0) +{ +return x_266; +} +else +{ +lean_object* x_299; lean_object* x_300; lean_object* x_301; +x_299 = lean_ctor_get(x_266, 0); +x_300 = lean_ctor_get(x_266, 1); +lean_inc(x_300); +lean_inc(x_299); +lean_dec(x_266); +x_301 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_301, 0, x_299); +lean_ctor_set(x_301, 1, x_300); +return x_301; +} +} +} +else +{ +uint8_t x_302; +lean_dec(x_3); +x_302 = !lean_is_exclusive(x_263); +if (x_302 == 0) +{ +return x_263; +} +else +{ +lean_object* x_303; lean_object* x_304; lean_object* x_305; +x_303 = lean_ctor_get(x_263, 0); +x_304 = lean_ctor_get(x_263, 1); +lean_inc(x_304); +lean_inc(x_303); +lean_dec(x_263); +x_305 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_305, 0, x_303); +lean_ctor_set(x_305, 1, x_304); +return x_305; +} +} +} +else +{ +lean_object* x_306; +lean_dec(x_2); +x_306 = lean_box(0); +x_73 = x_306; +goto block_79; } } case 6: { -lean_dec(x_81); -lean_free_object(x_70); -if (lean_obj_tag(x_3) == 2) +lean_dec(x_80); +lean_free_object(x_69); +if (lean_obj_tag(x_2) == 2) { -lean_object* x_308; lean_object* x_309; -lean_dec(x_69); -x_308 = lean_ctor_get(x_3, 1); -lean_inc(x_308); -lean_dec(x_3); -lean_inc(x_4); -x_309 = l_Lean_Elab_Term_inferType(x_1, x_308, x_4, x_73); -if (lean_obj_tag(x_309) == 0) +lean_object* x_307; lean_object* x_308; +lean_dec(x_68); +x_307 = lean_ctor_get(x_2, 1); +lean_inc(x_307); +lean_dec(x_2); +lean_inc(x_3); +x_308 = l_Lean_Elab_Term_inferType(x_307, x_3, x_72); +if (lean_obj_tag(x_308) == 0) { -lean_object* x_310; lean_object* x_311; lean_object* x_312; -x_310 = lean_ctor_get(x_309, 0); +lean_object* x_309; lean_object* x_310; lean_object* x_311; +x_309 = lean_ctor_get(x_308, 0); +lean_inc(x_309); +x_310 = lean_ctor_get(x_308, 1); lean_inc(x_310); -x_311 = lean_ctor_get(x_309, 1); -lean_inc(x_311); -lean_dec(x_309); -lean_inc(x_4); -x_312 = l_Lean_Elab_Term_whnf(x_1, x_310, x_4, x_311); -if (lean_obj_tag(x_312) == 0) +lean_dec(x_308); +lean_inc(x_3); +x_311 = l_Lean_Elab_Term_whnf(x_309, x_3, x_310); +if (lean_obj_tag(x_311) == 0) { -lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; -x_313 = lean_ctor_get(x_312, 0); +lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; +x_312 = lean_ctor_get(x_311, 0); +lean_inc(x_312); +x_313 = lean_ctor_get(x_311, 1); lean_inc(x_313); -x_314 = lean_ctor_get(x_312, 1); -lean_inc(x_314); +lean_dec(x_311); +x_314 = l_Lean_Expr_getAppFn___main(x_312); +x_315 = l_Lean_Elab_Term_tryPostponeIfMVar(x_312, x_3, x_313); +if (lean_obj_tag(x_315) == 0) +{ +uint8_t x_316; +x_316 = !lean_is_exclusive(x_315); +if (x_316 == 0) +{ +lean_object* x_317; lean_object* x_318; lean_object* x_319; +x_317 = lean_ctor_get(x_315, 1); +x_318 = lean_ctor_get(x_315, 0); +lean_dec(x_318); +if (lean_obj_tag(x_314) == 4) +{ +lean_object* x_326; lean_dec(x_312); -x_315 = l_Lean_Expr_getAppFn___main(x_313); -x_316 = l_Lean_Elab_Term_tryPostponeIfMVar(x_313, x_4, x_314); -if (lean_obj_tag(x_316) == 0) -{ -uint8_t x_317; -x_317 = !lean_is_exclusive(x_316); -if (x_317 == 0) -{ -lean_object* x_318; lean_object* x_319; lean_object* x_320; -x_318 = lean_ctor_get(x_316, 1); -x_319 = lean_ctor_get(x_316, 0); -lean_dec(x_319); -if (lean_obj_tag(x_315) == 4) +lean_dec(x_3); +x_326 = lean_ctor_get(x_314, 0); +lean_inc(x_326); +lean_dec(x_314); +lean_ctor_set(x_315, 0, x_326); +return x_315; +} +else { lean_object* x_327; -lean_dec(x_313); -lean_dec(x_4); -x_327 = lean_ctor_get(x_315, 0); -lean_inc(x_327); +lean_free_object(x_315); +lean_dec(x_314); +x_327 = lean_box(0); +x_319 = x_327; +goto block_325; +} +block_325: +{ +lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; +lean_dec(x_319); +x_320 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_320, 0, x_312); +x_321 = l_Lean_indentExpr(x_320); +x_322 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6; +x_323 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_323, 0, x_322); +lean_ctor_set(x_323, 1, x_321); +x_324 = l_Lean_Elab_Term_throwError___rarg(x_323, x_3, x_317); +return x_324; +} +} +else +{ +lean_object* x_328; lean_object* x_329; +x_328 = lean_ctor_get(x_315, 1); +lean_inc(x_328); lean_dec(x_315); -lean_ctor_set(x_316, 0, x_327); -return x_316; -} -else +if (lean_obj_tag(x_314) == 4) { -lean_object* x_328; -lean_free_object(x_316); -lean_dec(x_315); -x_328 = lean_box(0); -x_320 = x_328; -goto block_326; -} -block_326: -{ -lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; -lean_dec(x_320); -x_321 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_321, 0, x_313); -x_322 = l_Lean_indentExpr(x_321); -x_323 = l___private_Lean_Elab_StructInst_5__getStructName___closed__6; -x_324 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_324, 0, x_323); -lean_ctor_set(x_324, 1, x_322); -x_325 = l_Lean_Elab_Term_throwError___rarg(x_1, x_324, x_4, x_318); -return x_325; -} -} -else -{ -lean_object* x_329; lean_object* x_330; -x_329 = lean_ctor_get(x_316, 1); -lean_inc(x_329); -lean_dec(x_316); -if (lean_obj_tag(x_315) == 4) -{ -lean_object* x_337; lean_object* x_338; -lean_dec(x_313); -lean_dec(x_4); -x_337 = lean_ctor_get(x_315, 0); -lean_inc(x_337); -lean_dec(x_315); -x_338 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_338, 0, x_337); -lean_ctor_set(x_338, 1, x_329); -return x_338; -} -else -{ -lean_object* x_339; -lean_dec(x_315); -x_339 = lean_box(0); -x_330 = x_339; -goto block_336; -} -block_336: -{ -lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; -lean_dec(x_330); -x_331 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_331, 0, x_313); -x_332 = l_Lean_indentExpr(x_331); -x_333 = l___private_Lean_Elab_StructInst_5__getStructName___closed__6; -x_334 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_334, 0, x_333); -lean_ctor_set(x_334, 1, x_332); -x_335 = l_Lean_Elab_Term_throwError___rarg(x_1, x_334, x_4, x_329); -return x_335; -} -} -} -else -{ -uint8_t x_340; -lean_dec(x_315); -lean_dec(x_313); -lean_dec(x_4); -x_340 = !lean_is_exclusive(x_316); -if (x_340 == 0) -{ -return x_316; -} -else -{ -lean_object* x_341; lean_object* x_342; lean_object* x_343; -x_341 = lean_ctor_get(x_316, 0); -x_342 = lean_ctor_get(x_316, 1); -lean_inc(x_342); -lean_inc(x_341); -lean_dec(x_316); -x_343 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_343, 0, x_341); -lean_ctor_set(x_343, 1, x_342); -return x_343; -} -} -} -else -{ -uint8_t x_344; -lean_dec(x_4); -x_344 = !lean_is_exclusive(x_312); -if (x_344 == 0) -{ -return x_312; -} -else -{ -lean_object* x_345; lean_object* x_346; lean_object* x_347; -x_345 = lean_ctor_get(x_312, 0); -x_346 = lean_ctor_get(x_312, 1); -lean_inc(x_346); -lean_inc(x_345); +lean_object* x_336; lean_object* x_337; lean_dec(x_312); -x_347 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_347, 0, x_345); -lean_ctor_set(x_347, 1, x_346); -return x_347; -} -} -} -else -{ -uint8_t x_348; -lean_dec(x_4); -x_348 = !lean_is_exclusive(x_309); -if (x_348 == 0) -{ -return x_309; -} -else -{ -lean_object* x_349; lean_object* x_350; lean_object* x_351; -x_349 = lean_ctor_get(x_309, 0); -x_350 = lean_ctor_get(x_309, 1); -lean_inc(x_350); -lean_inc(x_349); -lean_dec(x_309); -x_351 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_351, 0, x_349); -lean_ctor_set(x_351, 1, x_350); -return x_351; -} -} -} -else -{ -lean_object* x_352; lean_dec(x_3); -x_352 = lean_box(0); -x_74 = x_352; -goto block_80; +x_336 = lean_ctor_get(x_314, 0); +lean_inc(x_336); +lean_dec(x_314); +x_337 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_337, 0, x_336); +lean_ctor_set(x_337, 1, x_328); +return x_337; +} +else +{ +lean_object* x_338; +lean_dec(x_314); +x_338 = lean_box(0); +x_329 = x_338; +goto block_335; +} +block_335: +{ +lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; +lean_dec(x_329); +x_330 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_330, 0, x_312); +x_331 = l_Lean_indentExpr(x_330); +x_332 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6; +x_333 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_333, 0, x_332); +lean_ctor_set(x_333, 1, x_331); +x_334 = l_Lean_Elab_Term_throwError___rarg(x_333, x_3, x_328); +return x_334; +} +} +} +else +{ +uint8_t x_339; +lean_dec(x_314); +lean_dec(x_312); +lean_dec(x_3); +x_339 = !lean_is_exclusive(x_315); +if (x_339 == 0) +{ +return x_315; +} +else +{ +lean_object* x_340; lean_object* x_341; lean_object* x_342; +x_340 = lean_ctor_get(x_315, 0); +x_341 = lean_ctor_get(x_315, 1); +lean_inc(x_341); +lean_inc(x_340); +lean_dec(x_315); +x_342 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_342, 0, x_340); +lean_ctor_set(x_342, 1, x_341); +return x_342; +} +} +} +else +{ +uint8_t x_343; +lean_dec(x_3); +x_343 = !lean_is_exclusive(x_311); +if (x_343 == 0) +{ +return x_311; +} +else +{ +lean_object* x_344; lean_object* x_345; lean_object* x_346; +x_344 = lean_ctor_get(x_311, 0); +x_345 = lean_ctor_get(x_311, 1); +lean_inc(x_345); +lean_inc(x_344); +lean_dec(x_311); +x_346 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_346, 0, x_344); +lean_ctor_set(x_346, 1, x_345); +return x_346; +} +} +} +else +{ +uint8_t x_347; +lean_dec(x_3); +x_347 = !lean_is_exclusive(x_308); +if (x_347 == 0) +{ +return x_308; +} +else +{ +lean_object* x_348; lean_object* x_349; lean_object* x_350; +x_348 = lean_ctor_get(x_308, 0); +x_349 = lean_ctor_get(x_308, 1); +lean_inc(x_349); +lean_inc(x_348); +lean_dec(x_308); +x_350 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_350, 0, x_348); +lean_ctor_set(x_350, 1, x_349); +return x_350; +} +} +} +else +{ +lean_object* x_351; +lean_dec(x_2); +x_351 = lean_box(0); +x_73 = x_351; +goto block_79; } } case 7: { -lean_dec(x_81); -lean_free_object(x_70); -if (lean_obj_tag(x_3) == 2) +lean_dec(x_80); +lean_free_object(x_69); +if (lean_obj_tag(x_2) == 2) { -lean_object* x_353; lean_object* x_354; -lean_dec(x_69); -x_353 = lean_ctor_get(x_3, 1); -lean_inc(x_353); -lean_dec(x_3); -lean_inc(x_4); -x_354 = l_Lean_Elab_Term_inferType(x_1, x_353, x_4, x_73); -if (lean_obj_tag(x_354) == 0) +lean_object* x_352; lean_object* x_353; +lean_dec(x_68); +x_352 = lean_ctor_get(x_2, 1); +lean_inc(x_352); +lean_dec(x_2); +lean_inc(x_3); +x_353 = l_Lean_Elab_Term_inferType(x_352, x_3, x_72); +if (lean_obj_tag(x_353) == 0) { -lean_object* x_355; lean_object* x_356; lean_object* x_357; -x_355 = lean_ctor_get(x_354, 0); +lean_object* x_354; lean_object* x_355; lean_object* x_356; +x_354 = lean_ctor_get(x_353, 0); +lean_inc(x_354); +x_355 = lean_ctor_get(x_353, 1); lean_inc(x_355); -x_356 = lean_ctor_get(x_354, 1); -lean_inc(x_356); -lean_dec(x_354); -lean_inc(x_4); -x_357 = l_Lean_Elab_Term_whnf(x_1, x_355, x_4, x_356); -if (lean_obj_tag(x_357) == 0) +lean_dec(x_353); +lean_inc(x_3); +x_356 = l_Lean_Elab_Term_whnf(x_354, x_3, x_355); +if (lean_obj_tag(x_356) == 0) { -lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; -x_358 = lean_ctor_get(x_357, 0); +lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; +x_357 = lean_ctor_get(x_356, 0); +lean_inc(x_357); +x_358 = lean_ctor_get(x_356, 1); lean_inc(x_358); -x_359 = lean_ctor_get(x_357, 1); -lean_inc(x_359); +lean_dec(x_356); +x_359 = l_Lean_Expr_getAppFn___main(x_357); +x_360 = l_Lean_Elab_Term_tryPostponeIfMVar(x_357, x_3, x_358); +if (lean_obj_tag(x_360) == 0) +{ +uint8_t x_361; +x_361 = !lean_is_exclusive(x_360); +if (x_361 == 0) +{ +lean_object* x_362; lean_object* x_363; lean_object* x_364; +x_362 = lean_ctor_get(x_360, 1); +x_363 = lean_ctor_get(x_360, 0); +lean_dec(x_363); +if (lean_obj_tag(x_359) == 4) +{ +lean_object* x_371; lean_dec(x_357); -x_360 = l_Lean_Expr_getAppFn___main(x_358); -x_361 = l_Lean_Elab_Term_tryPostponeIfMVar(x_358, x_4, x_359); -if (lean_obj_tag(x_361) == 0) -{ -uint8_t x_362; -x_362 = !lean_is_exclusive(x_361); -if (x_362 == 0) -{ -lean_object* x_363; lean_object* x_364; lean_object* x_365; -x_363 = lean_ctor_get(x_361, 1); -x_364 = lean_ctor_get(x_361, 0); -lean_dec(x_364); -if (lean_obj_tag(x_360) == 4) +lean_dec(x_3); +x_371 = lean_ctor_get(x_359, 0); +lean_inc(x_371); +lean_dec(x_359); +lean_ctor_set(x_360, 0, x_371); +return x_360; +} +else { lean_object* x_372; -lean_dec(x_358); -lean_dec(x_4); -x_372 = lean_ctor_get(x_360, 0); -lean_inc(x_372); +lean_free_object(x_360); +lean_dec(x_359); +x_372 = lean_box(0); +x_364 = x_372; +goto block_370; +} +block_370: +{ +lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; +lean_dec(x_364); +x_365 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_365, 0, x_357); +x_366 = l_Lean_indentExpr(x_365); +x_367 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6; +x_368 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_368, 0, x_367); +lean_ctor_set(x_368, 1, x_366); +x_369 = l_Lean_Elab_Term_throwError___rarg(x_368, x_3, x_362); +return x_369; +} +} +else +{ +lean_object* x_373; lean_object* x_374; +x_373 = lean_ctor_get(x_360, 1); +lean_inc(x_373); lean_dec(x_360); -lean_ctor_set(x_361, 0, x_372); -return x_361; -} -else +if (lean_obj_tag(x_359) == 4) { -lean_object* x_373; -lean_free_object(x_361); -lean_dec(x_360); -x_373 = lean_box(0); -x_365 = x_373; -goto block_371; -} -block_371: -{ -lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; -lean_dec(x_365); -x_366 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_366, 0, x_358); -x_367 = l_Lean_indentExpr(x_366); -x_368 = l___private_Lean_Elab_StructInst_5__getStructName___closed__6; -x_369 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_369, 0, x_368); -lean_ctor_set(x_369, 1, x_367); -x_370 = l_Lean_Elab_Term_throwError___rarg(x_1, x_369, x_4, x_363); -return x_370; -} -} -else -{ -lean_object* x_374; lean_object* x_375; -x_374 = lean_ctor_get(x_361, 1); -lean_inc(x_374); -lean_dec(x_361); -if (lean_obj_tag(x_360) == 4) -{ -lean_object* x_382; lean_object* x_383; -lean_dec(x_358); -lean_dec(x_4); -x_382 = lean_ctor_get(x_360, 0); -lean_inc(x_382); -lean_dec(x_360); -x_383 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_383, 0, x_382); -lean_ctor_set(x_383, 1, x_374); -return x_383; -} -else -{ -lean_object* x_384; -lean_dec(x_360); -x_384 = lean_box(0); -x_375 = x_384; -goto block_381; -} -block_381: -{ -lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; -lean_dec(x_375); -x_376 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_376, 0, x_358); -x_377 = l_Lean_indentExpr(x_376); -x_378 = l___private_Lean_Elab_StructInst_5__getStructName___closed__6; -x_379 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_379, 0, x_378); -lean_ctor_set(x_379, 1, x_377); -x_380 = l_Lean_Elab_Term_throwError___rarg(x_1, x_379, x_4, x_374); -return x_380; -} -} -} -else -{ -uint8_t x_385; -lean_dec(x_360); -lean_dec(x_358); -lean_dec(x_4); -x_385 = !lean_is_exclusive(x_361); -if (x_385 == 0) -{ -return x_361; -} -else -{ -lean_object* x_386; lean_object* x_387; lean_object* x_388; -x_386 = lean_ctor_get(x_361, 0); -x_387 = lean_ctor_get(x_361, 1); -lean_inc(x_387); -lean_inc(x_386); -lean_dec(x_361); -x_388 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_388, 0, x_386); -lean_ctor_set(x_388, 1, x_387); -return x_388; -} -} -} -else -{ -uint8_t x_389; -lean_dec(x_4); -x_389 = !lean_is_exclusive(x_357); -if (x_389 == 0) -{ -return x_357; -} -else -{ -lean_object* x_390; lean_object* x_391; lean_object* x_392; -x_390 = lean_ctor_get(x_357, 0); -x_391 = lean_ctor_get(x_357, 1); -lean_inc(x_391); -lean_inc(x_390); +lean_object* x_381; lean_object* x_382; lean_dec(x_357); -x_392 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_392, 0, x_390); -lean_ctor_set(x_392, 1, x_391); -return x_392; -} -} -} -else -{ -uint8_t x_393; -lean_dec(x_4); -x_393 = !lean_is_exclusive(x_354); -if (x_393 == 0) -{ -return x_354; -} -else -{ -lean_object* x_394; lean_object* x_395; lean_object* x_396; -x_394 = lean_ctor_get(x_354, 0); -x_395 = lean_ctor_get(x_354, 1); -lean_inc(x_395); -lean_inc(x_394); -lean_dec(x_354); -x_396 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_396, 0, x_394); -lean_ctor_set(x_396, 1, x_395); -return x_396; -} -} -} -else -{ -lean_object* x_397; lean_dec(x_3); -x_397 = lean_box(0); -x_74 = x_397; -goto block_80; +x_381 = lean_ctor_get(x_359, 0); +lean_inc(x_381); +lean_dec(x_359); +x_382 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_382, 0, x_381); +lean_ctor_set(x_382, 1, x_373); +return x_382; +} +else +{ +lean_object* x_383; +lean_dec(x_359); +x_383 = lean_box(0); +x_374 = x_383; +goto block_380; +} +block_380: +{ +lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; +lean_dec(x_374); +x_375 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_375, 0, x_357); +x_376 = l_Lean_indentExpr(x_375); +x_377 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6; +x_378 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_378, 0, x_377); +lean_ctor_set(x_378, 1, x_376); +x_379 = l_Lean_Elab_Term_throwError___rarg(x_378, x_3, x_373); +return x_379; +} +} +} +else +{ +uint8_t x_384; +lean_dec(x_359); +lean_dec(x_357); +lean_dec(x_3); +x_384 = !lean_is_exclusive(x_360); +if (x_384 == 0) +{ +return x_360; +} +else +{ +lean_object* x_385; lean_object* x_386; lean_object* x_387; +x_385 = lean_ctor_get(x_360, 0); +x_386 = lean_ctor_get(x_360, 1); +lean_inc(x_386); +lean_inc(x_385); +lean_dec(x_360); +x_387 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_387, 0, x_385); +lean_ctor_set(x_387, 1, x_386); +return x_387; +} +} +} +else +{ +uint8_t x_388; +lean_dec(x_3); +x_388 = !lean_is_exclusive(x_356); +if (x_388 == 0) +{ +return x_356; +} +else +{ +lean_object* x_389; lean_object* x_390; lean_object* x_391; +x_389 = lean_ctor_get(x_356, 0); +x_390 = lean_ctor_get(x_356, 1); +lean_inc(x_390); +lean_inc(x_389); +lean_dec(x_356); +x_391 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_391, 0, x_389); +lean_ctor_set(x_391, 1, x_390); +return x_391; +} +} +} +else +{ +uint8_t x_392; +lean_dec(x_3); +x_392 = !lean_is_exclusive(x_353); +if (x_392 == 0) +{ +return x_353; +} +else +{ +lean_object* x_393; lean_object* x_394; lean_object* x_395; +x_393 = lean_ctor_get(x_353, 0); +x_394 = lean_ctor_get(x_353, 1); +lean_inc(x_394); +lean_inc(x_393); +lean_dec(x_353); +x_395 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_395, 0, x_393); +lean_ctor_set(x_395, 1, x_394); +return x_395; +} +} +} +else +{ +lean_object* x_396; +lean_dec(x_2); +x_396 = lean_box(0); +x_73 = x_396; +goto block_79; } } case 8: { -lean_dec(x_81); -lean_free_object(x_70); -if (lean_obj_tag(x_3) == 2) +lean_dec(x_80); +lean_free_object(x_69); +if (lean_obj_tag(x_2) == 2) { -lean_object* x_398; lean_object* x_399; -lean_dec(x_69); -x_398 = lean_ctor_get(x_3, 1); -lean_inc(x_398); -lean_dec(x_3); -lean_inc(x_4); -x_399 = l_Lean_Elab_Term_inferType(x_1, x_398, x_4, x_73); -if (lean_obj_tag(x_399) == 0) +lean_object* x_397; lean_object* x_398; +lean_dec(x_68); +x_397 = lean_ctor_get(x_2, 1); +lean_inc(x_397); +lean_dec(x_2); +lean_inc(x_3); +x_398 = l_Lean_Elab_Term_inferType(x_397, x_3, x_72); +if (lean_obj_tag(x_398) == 0) { -lean_object* x_400; lean_object* x_401; lean_object* x_402; -x_400 = lean_ctor_get(x_399, 0); +lean_object* x_399; lean_object* x_400; lean_object* x_401; +x_399 = lean_ctor_get(x_398, 0); +lean_inc(x_399); +x_400 = lean_ctor_get(x_398, 1); lean_inc(x_400); -x_401 = lean_ctor_get(x_399, 1); -lean_inc(x_401); -lean_dec(x_399); -lean_inc(x_4); -x_402 = l_Lean_Elab_Term_whnf(x_1, x_400, x_4, x_401); -if (lean_obj_tag(x_402) == 0) +lean_dec(x_398); +lean_inc(x_3); +x_401 = l_Lean_Elab_Term_whnf(x_399, x_3, x_400); +if (lean_obj_tag(x_401) == 0) { -lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; -x_403 = lean_ctor_get(x_402, 0); +lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; +x_402 = lean_ctor_get(x_401, 0); +lean_inc(x_402); +x_403 = lean_ctor_get(x_401, 1); lean_inc(x_403); -x_404 = lean_ctor_get(x_402, 1); -lean_inc(x_404); +lean_dec(x_401); +x_404 = l_Lean_Expr_getAppFn___main(x_402); +x_405 = l_Lean_Elab_Term_tryPostponeIfMVar(x_402, x_3, x_403); +if (lean_obj_tag(x_405) == 0) +{ +uint8_t x_406; +x_406 = !lean_is_exclusive(x_405); +if (x_406 == 0) +{ +lean_object* x_407; lean_object* x_408; lean_object* x_409; +x_407 = lean_ctor_get(x_405, 1); +x_408 = lean_ctor_get(x_405, 0); +lean_dec(x_408); +if (lean_obj_tag(x_404) == 4) +{ +lean_object* x_416; lean_dec(x_402); -x_405 = l_Lean_Expr_getAppFn___main(x_403); -x_406 = l_Lean_Elab_Term_tryPostponeIfMVar(x_403, x_4, x_404); -if (lean_obj_tag(x_406) == 0) -{ -uint8_t x_407; -x_407 = !lean_is_exclusive(x_406); -if (x_407 == 0) -{ -lean_object* x_408; lean_object* x_409; lean_object* x_410; -x_408 = lean_ctor_get(x_406, 1); -x_409 = lean_ctor_get(x_406, 0); -lean_dec(x_409); -if (lean_obj_tag(x_405) == 4) +lean_dec(x_3); +x_416 = lean_ctor_get(x_404, 0); +lean_inc(x_416); +lean_dec(x_404); +lean_ctor_set(x_405, 0, x_416); +return x_405; +} +else { lean_object* x_417; -lean_dec(x_403); -lean_dec(x_4); -x_417 = lean_ctor_get(x_405, 0); -lean_inc(x_417); +lean_free_object(x_405); +lean_dec(x_404); +x_417 = lean_box(0); +x_409 = x_417; +goto block_415; +} +block_415: +{ +lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; +lean_dec(x_409); +x_410 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_410, 0, x_402); +x_411 = l_Lean_indentExpr(x_410); +x_412 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6; +x_413 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_413, 0, x_412); +lean_ctor_set(x_413, 1, x_411); +x_414 = l_Lean_Elab_Term_throwError___rarg(x_413, x_3, x_407); +return x_414; +} +} +else +{ +lean_object* x_418; lean_object* x_419; +x_418 = lean_ctor_get(x_405, 1); +lean_inc(x_418); lean_dec(x_405); -lean_ctor_set(x_406, 0, x_417); -return x_406; -} -else +if (lean_obj_tag(x_404) == 4) { -lean_object* x_418; -lean_free_object(x_406); -lean_dec(x_405); -x_418 = lean_box(0); -x_410 = x_418; -goto block_416; -} -block_416: -{ -lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; -lean_dec(x_410); -x_411 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_411, 0, x_403); -x_412 = l_Lean_indentExpr(x_411); -x_413 = l___private_Lean_Elab_StructInst_5__getStructName___closed__6; -x_414 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_414, 0, x_413); -lean_ctor_set(x_414, 1, x_412); -x_415 = l_Lean_Elab_Term_throwError___rarg(x_1, x_414, x_4, x_408); -return x_415; -} -} -else -{ -lean_object* x_419; lean_object* x_420; -x_419 = lean_ctor_get(x_406, 1); -lean_inc(x_419); -lean_dec(x_406); -if (lean_obj_tag(x_405) == 4) -{ -lean_object* x_427; lean_object* x_428; -lean_dec(x_403); -lean_dec(x_4); -x_427 = lean_ctor_get(x_405, 0); -lean_inc(x_427); -lean_dec(x_405); -x_428 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_428, 0, x_427); -lean_ctor_set(x_428, 1, x_419); -return x_428; -} -else -{ -lean_object* x_429; -lean_dec(x_405); -x_429 = lean_box(0); -x_420 = x_429; -goto block_426; -} -block_426: -{ -lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; -lean_dec(x_420); -x_421 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_421, 0, x_403); -x_422 = l_Lean_indentExpr(x_421); -x_423 = l___private_Lean_Elab_StructInst_5__getStructName___closed__6; -x_424 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_424, 0, x_423); -lean_ctor_set(x_424, 1, x_422); -x_425 = l_Lean_Elab_Term_throwError___rarg(x_1, x_424, x_4, x_419); -return x_425; -} -} -} -else -{ -uint8_t x_430; -lean_dec(x_405); -lean_dec(x_403); -lean_dec(x_4); -x_430 = !lean_is_exclusive(x_406); -if (x_430 == 0) -{ -return x_406; -} -else -{ -lean_object* x_431; lean_object* x_432; lean_object* x_433; -x_431 = lean_ctor_get(x_406, 0); -x_432 = lean_ctor_get(x_406, 1); -lean_inc(x_432); -lean_inc(x_431); -lean_dec(x_406); -x_433 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_433, 0, x_431); -lean_ctor_set(x_433, 1, x_432); -return x_433; -} -} -} -else -{ -uint8_t x_434; -lean_dec(x_4); -x_434 = !lean_is_exclusive(x_402); -if (x_434 == 0) -{ -return x_402; -} -else -{ -lean_object* x_435; lean_object* x_436; lean_object* x_437; -x_435 = lean_ctor_get(x_402, 0); -x_436 = lean_ctor_get(x_402, 1); -lean_inc(x_436); -lean_inc(x_435); +lean_object* x_426; lean_object* x_427; lean_dec(x_402); -x_437 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_437, 0, x_435); -lean_ctor_set(x_437, 1, x_436); -return x_437; -} -} -} -else -{ -uint8_t x_438; -lean_dec(x_4); -x_438 = !lean_is_exclusive(x_399); -if (x_438 == 0) -{ -return x_399; -} -else -{ -lean_object* x_439; lean_object* x_440; lean_object* x_441; -x_439 = lean_ctor_get(x_399, 0); -x_440 = lean_ctor_get(x_399, 1); -lean_inc(x_440); -lean_inc(x_439); -lean_dec(x_399); -x_441 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_441, 0, x_439); -lean_ctor_set(x_441, 1, x_440); -return x_441; -} -} -} -else -{ -lean_object* x_442; lean_dec(x_3); -x_442 = lean_box(0); -x_74 = x_442; -goto block_80; +x_426 = lean_ctor_get(x_404, 0); +lean_inc(x_426); +lean_dec(x_404); +x_427 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_427, 0, x_426); +lean_ctor_set(x_427, 1, x_418); +return x_427; +} +else +{ +lean_object* x_428; +lean_dec(x_404); +x_428 = lean_box(0); +x_419 = x_428; +goto block_425; +} +block_425: +{ +lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; +lean_dec(x_419); +x_420 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_420, 0, x_402); +x_421 = l_Lean_indentExpr(x_420); +x_422 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6; +x_423 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_423, 0, x_422); +lean_ctor_set(x_423, 1, x_421); +x_424 = l_Lean_Elab_Term_throwError___rarg(x_423, x_3, x_418); +return x_424; +} +} +} +else +{ +uint8_t x_429; +lean_dec(x_404); +lean_dec(x_402); +lean_dec(x_3); +x_429 = !lean_is_exclusive(x_405); +if (x_429 == 0) +{ +return x_405; +} +else +{ +lean_object* x_430; lean_object* x_431; lean_object* x_432; +x_430 = lean_ctor_get(x_405, 0); +x_431 = lean_ctor_get(x_405, 1); +lean_inc(x_431); +lean_inc(x_430); +lean_dec(x_405); +x_432 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_432, 0, x_430); +lean_ctor_set(x_432, 1, x_431); +return x_432; +} +} +} +else +{ +uint8_t x_433; +lean_dec(x_3); +x_433 = !lean_is_exclusive(x_401); +if (x_433 == 0) +{ +return x_401; +} +else +{ +lean_object* x_434; lean_object* x_435; lean_object* x_436; +x_434 = lean_ctor_get(x_401, 0); +x_435 = lean_ctor_get(x_401, 1); +lean_inc(x_435); +lean_inc(x_434); +lean_dec(x_401); +x_436 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_436, 0, x_434); +lean_ctor_set(x_436, 1, x_435); +return x_436; +} +} +} +else +{ +uint8_t x_437; +lean_dec(x_3); +x_437 = !lean_is_exclusive(x_398); +if (x_437 == 0) +{ +return x_398; +} +else +{ +lean_object* x_438; lean_object* x_439; lean_object* x_440; +x_438 = lean_ctor_get(x_398, 0); +x_439 = lean_ctor_get(x_398, 1); +lean_inc(x_439); +lean_inc(x_438); +lean_dec(x_398); +x_440 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_440, 0, x_438); +lean_ctor_set(x_440, 1, x_439); +return x_440; +} +} +} +else +{ +lean_object* x_441; +lean_dec(x_2); +x_441 = lean_box(0); +x_73 = x_441; +goto block_79; } } case 9: { -lean_dec(x_81); -lean_free_object(x_70); -if (lean_obj_tag(x_3) == 2) +lean_dec(x_80); +lean_free_object(x_69); +if (lean_obj_tag(x_2) == 2) { -lean_object* x_443; lean_object* x_444; -lean_dec(x_69); -x_443 = lean_ctor_get(x_3, 1); -lean_inc(x_443); -lean_dec(x_3); -lean_inc(x_4); -x_444 = l_Lean_Elab_Term_inferType(x_1, x_443, x_4, x_73); -if (lean_obj_tag(x_444) == 0) +lean_object* x_442; lean_object* x_443; +lean_dec(x_68); +x_442 = lean_ctor_get(x_2, 1); +lean_inc(x_442); +lean_dec(x_2); +lean_inc(x_3); +x_443 = l_Lean_Elab_Term_inferType(x_442, x_3, x_72); +if (lean_obj_tag(x_443) == 0) { -lean_object* x_445; lean_object* x_446; lean_object* x_447; -x_445 = lean_ctor_get(x_444, 0); +lean_object* x_444; lean_object* x_445; lean_object* x_446; +x_444 = lean_ctor_get(x_443, 0); +lean_inc(x_444); +x_445 = lean_ctor_get(x_443, 1); lean_inc(x_445); -x_446 = lean_ctor_get(x_444, 1); -lean_inc(x_446); -lean_dec(x_444); -lean_inc(x_4); -x_447 = l_Lean_Elab_Term_whnf(x_1, x_445, x_4, x_446); -if (lean_obj_tag(x_447) == 0) +lean_dec(x_443); +lean_inc(x_3); +x_446 = l_Lean_Elab_Term_whnf(x_444, x_3, x_445); +if (lean_obj_tag(x_446) == 0) { -lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; -x_448 = lean_ctor_get(x_447, 0); +lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; +x_447 = lean_ctor_get(x_446, 0); +lean_inc(x_447); +x_448 = lean_ctor_get(x_446, 1); lean_inc(x_448); -x_449 = lean_ctor_get(x_447, 1); -lean_inc(x_449); +lean_dec(x_446); +x_449 = l_Lean_Expr_getAppFn___main(x_447); +x_450 = l_Lean_Elab_Term_tryPostponeIfMVar(x_447, x_3, x_448); +if (lean_obj_tag(x_450) == 0) +{ +uint8_t x_451; +x_451 = !lean_is_exclusive(x_450); +if (x_451 == 0) +{ +lean_object* x_452; lean_object* x_453; lean_object* x_454; +x_452 = lean_ctor_get(x_450, 1); +x_453 = lean_ctor_get(x_450, 0); +lean_dec(x_453); +if (lean_obj_tag(x_449) == 4) +{ +lean_object* x_461; lean_dec(x_447); -x_450 = l_Lean_Expr_getAppFn___main(x_448); -x_451 = l_Lean_Elab_Term_tryPostponeIfMVar(x_448, x_4, x_449); -if (lean_obj_tag(x_451) == 0) -{ -uint8_t x_452; -x_452 = !lean_is_exclusive(x_451); -if (x_452 == 0) -{ -lean_object* x_453; lean_object* x_454; lean_object* x_455; -x_453 = lean_ctor_get(x_451, 1); -x_454 = lean_ctor_get(x_451, 0); -lean_dec(x_454); -if (lean_obj_tag(x_450) == 4) +lean_dec(x_3); +x_461 = lean_ctor_get(x_449, 0); +lean_inc(x_461); +lean_dec(x_449); +lean_ctor_set(x_450, 0, x_461); +return x_450; +} +else { lean_object* x_462; -lean_dec(x_448); -lean_dec(x_4); -x_462 = lean_ctor_get(x_450, 0); -lean_inc(x_462); +lean_free_object(x_450); +lean_dec(x_449); +x_462 = lean_box(0); +x_454 = x_462; +goto block_460; +} +block_460: +{ +lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; +lean_dec(x_454); +x_455 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_455, 0, x_447); +x_456 = l_Lean_indentExpr(x_455); +x_457 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6; +x_458 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_458, 0, x_457); +lean_ctor_set(x_458, 1, x_456); +x_459 = l_Lean_Elab_Term_throwError___rarg(x_458, x_3, x_452); +return x_459; +} +} +else +{ +lean_object* x_463; lean_object* x_464; +x_463 = lean_ctor_get(x_450, 1); +lean_inc(x_463); lean_dec(x_450); -lean_ctor_set(x_451, 0, x_462); -return x_451; -} -else +if (lean_obj_tag(x_449) == 4) { -lean_object* x_463; -lean_free_object(x_451); -lean_dec(x_450); -x_463 = lean_box(0); -x_455 = x_463; -goto block_461; -} -block_461: -{ -lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; -lean_dec(x_455); -x_456 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_456, 0, x_448); -x_457 = l_Lean_indentExpr(x_456); -x_458 = l___private_Lean_Elab_StructInst_5__getStructName___closed__6; -x_459 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_459, 0, x_458); -lean_ctor_set(x_459, 1, x_457); -x_460 = l_Lean_Elab_Term_throwError___rarg(x_1, x_459, x_4, x_453); -return x_460; -} -} -else -{ -lean_object* x_464; lean_object* x_465; -x_464 = lean_ctor_get(x_451, 1); -lean_inc(x_464); -lean_dec(x_451); -if (lean_obj_tag(x_450) == 4) -{ -lean_object* x_472; lean_object* x_473; -lean_dec(x_448); -lean_dec(x_4); -x_472 = lean_ctor_get(x_450, 0); -lean_inc(x_472); -lean_dec(x_450); -x_473 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_473, 0, x_472); -lean_ctor_set(x_473, 1, x_464); -return x_473; -} -else -{ -lean_object* x_474; -lean_dec(x_450); -x_474 = lean_box(0); -x_465 = x_474; -goto block_471; -} -block_471: -{ -lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; -lean_dec(x_465); -x_466 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_466, 0, x_448); -x_467 = l_Lean_indentExpr(x_466); -x_468 = l___private_Lean_Elab_StructInst_5__getStructName___closed__6; -x_469 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_469, 0, x_468); -lean_ctor_set(x_469, 1, x_467); -x_470 = l_Lean_Elab_Term_throwError___rarg(x_1, x_469, x_4, x_464); -return x_470; -} -} -} -else -{ -uint8_t x_475; -lean_dec(x_450); -lean_dec(x_448); -lean_dec(x_4); -x_475 = !lean_is_exclusive(x_451); -if (x_475 == 0) -{ -return x_451; -} -else -{ -lean_object* x_476; lean_object* x_477; lean_object* x_478; -x_476 = lean_ctor_get(x_451, 0); -x_477 = lean_ctor_get(x_451, 1); -lean_inc(x_477); -lean_inc(x_476); -lean_dec(x_451); -x_478 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_478, 0, x_476); -lean_ctor_set(x_478, 1, x_477); -return x_478; -} -} -} -else -{ -uint8_t x_479; -lean_dec(x_4); -x_479 = !lean_is_exclusive(x_447); -if (x_479 == 0) -{ -return x_447; -} -else -{ -lean_object* x_480; lean_object* x_481; lean_object* x_482; -x_480 = lean_ctor_get(x_447, 0); -x_481 = lean_ctor_get(x_447, 1); -lean_inc(x_481); -lean_inc(x_480); +lean_object* x_471; lean_object* x_472; lean_dec(x_447); -x_482 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_482, 0, x_480); -lean_ctor_set(x_482, 1, x_481); -return x_482; -} -} -} -else -{ -uint8_t x_483; -lean_dec(x_4); -x_483 = !lean_is_exclusive(x_444); -if (x_483 == 0) -{ -return x_444; -} -else -{ -lean_object* x_484; lean_object* x_485; lean_object* x_486; -x_484 = lean_ctor_get(x_444, 0); -x_485 = lean_ctor_get(x_444, 1); -lean_inc(x_485); -lean_inc(x_484); -lean_dec(x_444); -x_486 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_486, 0, x_484); -lean_ctor_set(x_486, 1, x_485); -return x_486; -} -} -} -else -{ -lean_object* x_487; lean_dec(x_3); -x_487 = lean_box(0); -x_74 = x_487; -goto block_80; +x_471 = lean_ctor_get(x_449, 0); +lean_inc(x_471); +lean_dec(x_449); +x_472 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_472, 0, x_471); +lean_ctor_set(x_472, 1, x_463); +return x_472; +} +else +{ +lean_object* x_473; +lean_dec(x_449); +x_473 = lean_box(0); +x_464 = x_473; +goto block_470; +} +block_470: +{ +lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; +lean_dec(x_464); +x_465 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_465, 0, x_447); +x_466 = l_Lean_indentExpr(x_465); +x_467 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6; +x_468 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_468, 0, x_467); +lean_ctor_set(x_468, 1, x_466); +x_469 = l_Lean_Elab_Term_throwError___rarg(x_468, x_3, x_463); +return x_469; +} +} +} +else +{ +uint8_t x_474; +lean_dec(x_449); +lean_dec(x_447); +lean_dec(x_3); +x_474 = !lean_is_exclusive(x_450); +if (x_474 == 0) +{ +return x_450; +} +else +{ +lean_object* x_475; lean_object* x_476; lean_object* x_477; +x_475 = lean_ctor_get(x_450, 0); +x_476 = lean_ctor_get(x_450, 1); +lean_inc(x_476); +lean_inc(x_475); +lean_dec(x_450); +x_477 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_477, 0, x_475); +lean_ctor_set(x_477, 1, x_476); +return x_477; +} +} +} +else +{ +uint8_t x_478; +lean_dec(x_3); +x_478 = !lean_is_exclusive(x_446); +if (x_478 == 0) +{ +return x_446; +} +else +{ +lean_object* x_479; lean_object* x_480; lean_object* x_481; +x_479 = lean_ctor_get(x_446, 0); +x_480 = lean_ctor_get(x_446, 1); +lean_inc(x_480); +lean_inc(x_479); +lean_dec(x_446); +x_481 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_481, 0, x_479); +lean_ctor_set(x_481, 1, x_480); +return x_481; +} +} +} +else +{ +uint8_t x_482; +lean_dec(x_3); +x_482 = !lean_is_exclusive(x_443); +if (x_482 == 0) +{ +return x_443; +} +else +{ +lean_object* x_483; lean_object* x_484; lean_object* x_485; +x_483 = lean_ctor_get(x_443, 0); +x_484 = lean_ctor_get(x_443, 1); +lean_inc(x_484); +lean_inc(x_483); +lean_dec(x_443); +x_485 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_485, 0, x_483); +lean_ctor_set(x_485, 1, x_484); +return x_485; +} +} +} +else +{ +lean_object* x_486; +lean_dec(x_2); +x_486 = lean_box(0); +x_73 = x_486; +goto block_79; } } case 10: { -lean_dec(x_81); -lean_free_object(x_70); -if (lean_obj_tag(x_3) == 2) +lean_dec(x_80); +lean_free_object(x_69); +if (lean_obj_tag(x_2) == 2) { -lean_object* x_488; lean_object* x_489; -lean_dec(x_69); -x_488 = lean_ctor_get(x_3, 1); -lean_inc(x_488); -lean_dec(x_3); -lean_inc(x_4); -x_489 = l_Lean_Elab_Term_inferType(x_1, x_488, x_4, x_73); -if (lean_obj_tag(x_489) == 0) +lean_object* x_487; lean_object* x_488; +lean_dec(x_68); +x_487 = lean_ctor_get(x_2, 1); +lean_inc(x_487); +lean_dec(x_2); +lean_inc(x_3); +x_488 = l_Lean_Elab_Term_inferType(x_487, x_3, x_72); +if (lean_obj_tag(x_488) == 0) { -lean_object* x_490; lean_object* x_491; lean_object* x_492; -x_490 = lean_ctor_get(x_489, 0); +lean_object* x_489; lean_object* x_490; lean_object* x_491; +x_489 = lean_ctor_get(x_488, 0); +lean_inc(x_489); +x_490 = lean_ctor_get(x_488, 1); lean_inc(x_490); -x_491 = lean_ctor_get(x_489, 1); -lean_inc(x_491); -lean_dec(x_489); -lean_inc(x_4); -x_492 = l_Lean_Elab_Term_whnf(x_1, x_490, x_4, x_491); -if (lean_obj_tag(x_492) == 0) +lean_dec(x_488); +lean_inc(x_3); +x_491 = l_Lean_Elab_Term_whnf(x_489, x_3, x_490); +if (lean_obj_tag(x_491) == 0) { -lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; -x_493 = lean_ctor_get(x_492, 0); +lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; +x_492 = lean_ctor_get(x_491, 0); +lean_inc(x_492); +x_493 = lean_ctor_get(x_491, 1); lean_inc(x_493); -x_494 = lean_ctor_get(x_492, 1); -lean_inc(x_494); +lean_dec(x_491); +x_494 = l_Lean_Expr_getAppFn___main(x_492); +x_495 = l_Lean_Elab_Term_tryPostponeIfMVar(x_492, x_3, x_493); +if (lean_obj_tag(x_495) == 0) +{ +uint8_t x_496; +x_496 = !lean_is_exclusive(x_495); +if (x_496 == 0) +{ +lean_object* x_497; lean_object* x_498; lean_object* x_499; +x_497 = lean_ctor_get(x_495, 1); +x_498 = lean_ctor_get(x_495, 0); +lean_dec(x_498); +if (lean_obj_tag(x_494) == 4) +{ +lean_object* x_506; lean_dec(x_492); -x_495 = l_Lean_Expr_getAppFn___main(x_493); -x_496 = l_Lean_Elab_Term_tryPostponeIfMVar(x_493, x_4, x_494); -if (lean_obj_tag(x_496) == 0) -{ -uint8_t x_497; -x_497 = !lean_is_exclusive(x_496); -if (x_497 == 0) -{ -lean_object* x_498; lean_object* x_499; lean_object* x_500; -x_498 = lean_ctor_get(x_496, 1); -x_499 = lean_ctor_get(x_496, 0); -lean_dec(x_499); -if (lean_obj_tag(x_495) == 4) +lean_dec(x_3); +x_506 = lean_ctor_get(x_494, 0); +lean_inc(x_506); +lean_dec(x_494); +lean_ctor_set(x_495, 0, x_506); +return x_495; +} +else { lean_object* x_507; -lean_dec(x_493); -lean_dec(x_4); -x_507 = lean_ctor_get(x_495, 0); -lean_inc(x_507); +lean_free_object(x_495); +lean_dec(x_494); +x_507 = lean_box(0); +x_499 = x_507; +goto block_505; +} +block_505: +{ +lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; +lean_dec(x_499); +x_500 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_500, 0, x_492); +x_501 = l_Lean_indentExpr(x_500); +x_502 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6; +x_503 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_503, 0, x_502); +lean_ctor_set(x_503, 1, x_501); +x_504 = l_Lean_Elab_Term_throwError___rarg(x_503, x_3, x_497); +return x_504; +} +} +else +{ +lean_object* x_508; lean_object* x_509; +x_508 = lean_ctor_get(x_495, 1); +lean_inc(x_508); lean_dec(x_495); -lean_ctor_set(x_496, 0, x_507); -return x_496; -} -else +if (lean_obj_tag(x_494) == 4) { -lean_object* x_508; -lean_free_object(x_496); -lean_dec(x_495); -x_508 = lean_box(0); -x_500 = x_508; -goto block_506; -} -block_506: -{ -lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; -lean_dec(x_500); -x_501 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_501, 0, x_493); -x_502 = l_Lean_indentExpr(x_501); -x_503 = l___private_Lean_Elab_StructInst_5__getStructName___closed__6; -x_504 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_504, 0, x_503); -lean_ctor_set(x_504, 1, x_502); -x_505 = l_Lean_Elab_Term_throwError___rarg(x_1, x_504, x_4, x_498); -return x_505; -} -} -else -{ -lean_object* x_509; lean_object* x_510; -x_509 = lean_ctor_get(x_496, 1); -lean_inc(x_509); -lean_dec(x_496); -if (lean_obj_tag(x_495) == 4) -{ -lean_object* x_517; lean_object* x_518; -lean_dec(x_493); -lean_dec(x_4); -x_517 = lean_ctor_get(x_495, 0); -lean_inc(x_517); -lean_dec(x_495); -x_518 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_518, 0, x_517); -lean_ctor_set(x_518, 1, x_509); -return x_518; -} -else -{ -lean_object* x_519; -lean_dec(x_495); -x_519 = lean_box(0); -x_510 = x_519; -goto block_516; -} -block_516: -{ -lean_object* x_511; lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; -lean_dec(x_510); -x_511 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_511, 0, x_493); -x_512 = l_Lean_indentExpr(x_511); -x_513 = l___private_Lean_Elab_StructInst_5__getStructName___closed__6; -x_514 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_514, 0, x_513); -lean_ctor_set(x_514, 1, x_512); -x_515 = l_Lean_Elab_Term_throwError___rarg(x_1, x_514, x_4, x_509); -return x_515; -} -} -} -else -{ -uint8_t x_520; -lean_dec(x_495); -lean_dec(x_493); -lean_dec(x_4); -x_520 = !lean_is_exclusive(x_496); -if (x_520 == 0) -{ -return x_496; -} -else -{ -lean_object* x_521; lean_object* x_522; lean_object* x_523; -x_521 = lean_ctor_get(x_496, 0); -x_522 = lean_ctor_get(x_496, 1); -lean_inc(x_522); -lean_inc(x_521); -lean_dec(x_496); -x_523 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_523, 0, x_521); -lean_ctor_set(x_523, 1, x_522); -return x_523; -} -} -} -else -{ -uint8_t x_524; -lean_dec(x_4); -x_524 = !lean_is_exclusive(x_492); -if (x_524 == 0) -{ -return x_492; -} -else -{ -lean_object* x_525; lean_object* x_526; lean_object* x_527; -x_525 = lean_ctor_get(x_492, 0); -x_526 = lean_ctor_get(x_492, 1); -lean_inc(x_526); -lean_inc(x_525); +lean_object* x_516; lean_object* x_517; lean_dec(x_492); -x_527 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_527, 0, x_525); -lean_ctor_set(x_527, 1, x_526); -return x_527; -} -} -} -else -{ -uint8_t x_528; -lean_dec(x_4); -x_528 = !lean_is_exclusive(x_489); -if (x_528 == 0) -{ -return x_489; -} -else -{ -lean_object* x_529; lean_object* x_530; lean_object* x_531; -x_529 = lean_ctor_get(x_489, 0); -x_530 = lean_ctor_get(x_489, 1); -lean_inc(x_530); -lean_inc(x_529); -lean_dec(x_489); -x_531 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_531, 0, x_529); -lean_ctor_set(x_531, 1, x_530); -return x_531; -} -} -} -else -{ -lean_object* x_532; lean_dec(x_3); -x_532 = lean_box(0); -x_74 = x_532; -goto block_80; +x_516 = lean_ctor_get(x_494, 0); +lean_inc(x_516); +lean_dec(x_494); +x_517 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_517, 0, x_516); +lean_ctor_set(x_517, 1, x_508); +return x_517; +} +else +{ +lean_object* x_518; +lean_dec(x_494); +x_518 = lean_box(0); +x_509 = x_518; +goto block_515; +} +block_515: +{ +lean_object* x_510; lean_object* x_511; lean_object* x_512; lean_object* x_513; lean_object* x_514; +lean_dec(x_509); +x_510 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_510, 0, x_492); +x_511 = l_Lean_indentExpr(x_510); +x_512 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6; +x_513 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_513, 0, x_512); +lean_ctor_set(x_513, 1, x_511); +x_514 = l_Lean_Elab_Term_throwError___rarg(x_513, x_3, x_508); +return x_514; +} +} +} +else +{ +uint8_t x_519; +lean_dec(x_494); +lean_dec(x_492); +lean_dec(x_3); +x_519 = !lean_is_exclusive(x_495); +if (x_519 == 0) +{ +return x_495; +} +else +{ +lean_object* x_520; lean_object* x_521; lean_object* x_522; +x_520 = lean_ctor_get(x_495, 0); +x_521 = lean_ctor_get(x_495, 1); +lean_inc(x_521); +lean_inc(x_520); +lean_dec(x_495); +x_522 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_522, 0, x_520); +lean_ctor_set(x_522, 1, x_521); +return x_522; +} +} +} +else +{ +uint8_t x_523; +lean_dec(x_3); +x_523 = !lean_is_exclusive(x_491); +if (x_523 == 0) +{ +return x_491; +} +else +{ +lean_object* x_524; lean_object* x_525; lean_object* x_526; +x_524 = lean_ctor_get(x_491, 0); +x_525 = lean_ctor_get(x_491, 1); +lean_inc(x_525); +lean_inc(x_524); +lean_dec(x_491); +x_526 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_526, 0, x_524); +lean_ctor_set(x_526, 1, x_525); +return x_526; +} +} +} +else +{ +uint8_t x_527; +lean_dec(x_3); +x_527 = !lean_is_exclusive(x_488); +if (x_527 == 0) +{ +return x_488; +} +else +{ +lean_object* x_528; lean_object* x_529; lean_object* x_530; +x_528 = lean_ctor_get(x_488, 0); +x_529 = lean_ctor_get(x_488, 1); +lean_inc(x_529); +lean_inc(x_528); +lean_dec(x_488); +x_530 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_530, 0, x_528); +lean_ctor_set(x_530, 1, x_529); +return x_530; +} +} +} +else +{ +lean_object* x_531; +lean_dec(x_2); +x_531 = lean_box(0); +x_73 = x_531; +goto block_79; } } case 11: { -lean_dec(x_81); -lean_free_object(x_70); -if (lean_obj_tag(x_3) == 2) +lean_dec(x_80); +lean_free_object(x_69); +if (lean_obj_tag(x_2) == 2) { -lean_object* x_533; lean_object* x_534; -lean_dec(x_69); -x_533 = lean_ctor_get(x_3, 1); -lean_inc(x_533); -lean_dec(x_3); -lean_inc(x_4); -x_534 = l_Lean_Elab_Term_inferType(x_1, x_533, x_4, x_73); -if (lean_obj_tag(x_534) == 0) +lean_object* x_532; lean_object* x_533; +lean_dec(x_68); +x_532 = lean_ctor_get(x_2, 1); +lean_inc(x_532); +lean_dec(x_2); +lean_inc(x_3); +x_533 = l_Lean_Elab_Term_inferType(x_532, x_3, x_72); +if (lean_obj_tag(x_533) == 0) { -lean_object* x_535; lean_object* x_536; lean_object* x_537; -x_535 = lean_ctor_get(x_534, 0); +lean_object* x_534; lean_object* x_535; lean_object* x_536; +x_534 = lean_ctor_get(x_533, 0); +lean_inc(x_534); +x_535 = lean_ctor_get(x_533, 1); lean_inc(x_535); -x_536 = lean_ctor_get(x_534, 1); -lean_inc(x_536); -lean_dec(x_534); -lean_inc(x_4); -x_537 = l_Lean_Elab_Term_whnf(x_1, x_535, x_4, x_536); -if (lean_obj_tag(x_537) == 0) +lean_dec(x_533); +lean_inc(x_3); +x_536 = l_Lean_Elab_Term_whnf(x_534, x_3, x_535); +if (lean_obj_tag(x_536) == 0) { -lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; -x_538 = lean_ctor_get(x_537, 0); +lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; +x_537 = lean_ctor_get(x_536, 0); +lean_inc(x_537); +x_538 = lean_ctor_get(x_536, 1); lean_inc(x_538); -x_539 = lean_ctor_get(x_537, 1); -lean_inc(x_539); +lean_dec(x_536); +x_539 = l_Lean_Expr_getAppFn___main(x_537); +x_540 = l_Lean_Elab_Term_tryPostponeIfMVar(x_537, x_3, x_538); +if (lean_obj_tag(x_540) == 0) +{ +uint8_t x_541; +x_541 = !lean_is_exclusive(x_540); +if (x_541 == 0) +{ +lean_object* x_542; lean_object* x_543; lean_object* x_544; +x_542 = lean_ctor_get(x_540, 1); +x_543 = lean_ctor_get(x_540, 0); +lean_dec(x_543); +if (lean_obj_tag(x_539) == 4) +{ +lean_object* x_551; lean_dec(x_537); -x_540 = l_Lean_Expr_getAppFn___main(x_538); -x_541 = l_Lean_Elab_Term_tryPostponeIfMVar(x_538, x_4, x_539); -if (lean_obj_tag(x_541) == 0) -{ -uint8_t x_542; -x_542 = !lean_is_exclusive(x_541); -if (x_542 == 0) -{ -lean_object* x_543; lean_object* x_544; lean_object* x_545; -x_543 = lean_ctor_get(x_541, 1); -x_544 = lean_ctor_get(x_541, 0); -lean_dec(x_544); -if (lean_obj_tag(x_540) == 4) +lean_dec(x_3); +x_551 = lean_ctor_get(x_539, 0); +lean_inc(x_551); +lean_dec(x_539); +lean_ctor_set(x_540, 0, x_551); +return x_540; +} +else { lean_object* x_552; -lean_dec(x_538); -lean_dec(x_4); -x_552 = lean_ctor_get(x_540, 0); -lean_inc(x_552); +lean_free_object(x_540); +lean_dec(x_539); +x_552 = lean_box(0); +x_544 = x_552; +goto block_550; +} +block_550: +{ +lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; +lean_dec(x_544); +x_545 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_545, 0, x_537); +x_546 = l_Lean_indentExpr(x_545); +x_547 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6; +x_548 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_548, 0, x_547); +lean_ctor_set(x_548, 1, x_546); +x_549 = l_Lean_Elab_Term_throwError___rarg(x_548, x_3, x_542); +return x_549; +} +} +else +{ +lean_object* x_553; lean_object* x_554; +x_553 = lean_ctor_get(x_540, 1); +lean_inc(x_553); lean_dec(x_540); -lean_ctor_set(x_541, 0, x_552); -return x_541; -} -else +if (lean_obj_tag(x_539) == 4) { -lean_object* x_553; -lean_free_object(x_541); -lean_dec(x_540); -x_553 = lean_box(0); -x_545 = x_553; -goto block_551; -} -block_551: -{ -lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; -lean_dec(x_545); -x_546 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_546, 0, x_538); -x_547 = l_Lean_indentExpr(x_546); -x_548 = l___private_Lean_Elab_StructInst_5__getStructName___closed__6; -x_549 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_549, 0, x_548); -lean_ctor_set(x_549, 1, x_547); -x_550 = l_Lean_Elab_Term_throwError___rarg(x_1, x_549, x_4, x_543); -return x_550; -} -} -else -{ -lean_object* x_554; lean_object* x_555; -x_554 = lean_ctor_get(x_541, 1); -lean_inc(x_554); -lean_dec(x_541); -if (lean_obj_tag(x_540) == 4) -{ -lean_object* x_562; lean_object* x_563; -lean_dec(x_538); -lean_dec(x_4); -x_562 = lean_ctor_get(x_540, 0); -lean_inc(x_562); -lean_dec(x_540); -x_563 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_563, 0, x_562); -lean_ctor_set(x_563, 1, x_554); -return x_563; -} -else -{ -lean_object* x_564; -lean_dec(x_540); -x_564 = lean_box(0); -x_555 = x_564; -goto block_561; -} -block_561: -{ -lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; -lean_dec(x_555); -x_556 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_556, 0, x_538); -x_557 = l_Lean_indentExpr(x_556); -x_558 = l___private_Lean_Elab_StructInst_5__getStructName___closed__6; -x_559 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_559, 0, x_558); -lean_ctor_set(x_559, 1, x_557); -x_560 = l_Lean_Elab_Term_throwError___rarg(x_1, x_559, x_4, x_554); -return x_560; -} -} -} -else -{ -uint8_t x_565; -lean_dec(x_540); -lean_dec(x_538); -lean_dec(x_4); -x_565 = !lean_is_exclusive(x_541); -if (x_565 == 0) -{ -return x_541; -} -else -{ -lean_object* x_566; lean_object* x_567; lean_object* x_568; -x_566 = lean_ctor_get(x_541, 0); -x_567 = lean_ctor_get(x_541, 1); -lean_inc(x_567); -lean_inc(x_566); -lean_dec(x_541); -x_568 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_568, 0, x_566); -lean_ctor_set(x_568, 1, x_567); -return x_568; -} -} -} -else -{ -uint8_t x_569; -lean_dec(x_4); -x_569 = !lean_is_exclusive(x_537); -if (x_569 == 0) -{ -return x_537; -} -else -{ -lean_object* x_570; lean_object* x_571; lean_object* x_572; -x_570 = lean_ctor_get(x_537, 0); -x_571 = lean_ctor_get(x_537, 1); -lean_inc(x_571); -lean_inc(x_570); +lean_object* x_561; lean_object* x_562; lean_dec(x_537); -x_572 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_572, 0, x_570); -lean_ctor_set(x_572, 1, x_571); -return x_572; -} -} -} -else -{ -uint8_t x_573; -lean_dec(x_4); -x_573 = !lean_is_exclusive(x_534); -if (x_573 == 0) -{ -return x_534; -} -else -{ -lean_object* x_574; lean_object* x_575; lean_object* x_576; -x_574 = lean_ctor_get(x_534, 0); -x_575 = lean_ctor_get(x_534, 1); -lean_inc(x_575); -lean_inc(x_574); -lean_dec(x_534); -x_576 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_576, 0, x_574); -lean_ctor_set(x_576, 1, x_575); -return x_576; -} -} -} -else -{ -lean_object* x_577; lean_dec(x_3); -x_577 = lean_box(0); -x_74 = x_577; -goto block_80; +x_561 = lean_ctor_get(x_539, 0); +lean_inc(x_561); +lean_dec(x_539); +x_562 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_562, 0, x_561); +lean_ctor_set(x_562, 1, x_553); +return x_562; +} +else +{ +lean_object* x_563; +lean_dec(x_539); +x_563 = lean_box(0); +x_554 = x_563; +goto block_560; +} +block_560: +{ +lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; +lean_dec(x_554); +x_555 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_555, 0, x_537); +x_556 = l_Lean_indentExpr(x_555); +x_557 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6; +x_558 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_558, 0, x_557); +lean_ctor_set(x_558, 1, x_556); +x_559 = l_Lean_Elab_Term_throwError___rarg(x_558, x_3, x_553); +return x_559; +} +} +} +else +{ +uint8_t x_564; +lean_dec(x_539); +lean_dec(x_537); +lean_dec(x_3); +x_564 = !lean_is_exclusive(x_540); +if (x_564 == 0) +{ +return x_540; +} +else +{ +lean_object* x_565; lean_object* x_566; lean_object* x_567; +x_565 = lean_ctor_get(x_540, 0); +x_566 = lean_ctor_get(x_540, 1); +lean_inc(x_566); +lean_inc(x_565); +lean_dec(x_540); +x_567 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_567, 0, x_565); +lean_ctor_set(x_567, 1, x_566); +return x_567; +} +} +} +else +{ +uint8_t x_568; +lean_dec(x_3); +x_568 = !lean_is_exclusive(x_536); +if (x_568 == 0) +{ +return x_536; +} +else +{ +lean_object* x_569; lean_object* x_570; lean_object* x_571; +x_569 = lean_ctor_get(x_536, 0); +x_570 = lean_ctor_get(x_536, 1); +lean_inc(x_570); +lean_inc(x_569); +lean_dec(x_536); +x_571 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_571, 0, x_569); +lean_ctor_set(x_571, 1, x_570); +return x_571; +} +} +} +else +{ +uint8_t x_572; +lean_dec(x_3); +x_572 = !lean_is_exclusive(x_533); +if (x_572 == 0) +{ +return x_533; +} +else +{ +lean_object* x_573; lean_object* x_574; lean_object* x_575; +x_573 = lean_ctor_get(x_533, 0); +x_574 = lean_ctor_get(x_533, 1); +lean_inc(x_574); +lean_inc(x_573); +lean_dec(x_533); +x_575 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_575, 0, x_573); +lean_ctor_set(x_575, 1, x_574); +return x_575; +} +} +} +else +{ +lean_object* x_576; +lean_dec(x_2); +x_576 = lean_box(0); +x_73 = x_576; +goto block_79; } } default: { -lean_dec(x_81); -lean_free_object(x_70); -if (lean_obj_tag(x_3) == 2) +lean_dec(x_80); +lean_free_object(x_69); +if (lean_obj_tag(x_2) == 2) { -lean_object* x_578; lean_object* x_579; -lean_dec(x_69); -x_578 = lean_ctor_get(x_3, 1); -lean_inc(x_578); -lean_dec(x_3); -lean_inc(x_4); -x_579 = l_Lean_Elab_Term_inferType(x_1, x_578, x_4, x_73); -if (lean_obj_tag(x_579) == 0) +lean_object* x_577; lean_object* x_578; +lean_dec(x_68); +x_577 = lean_ctor_get(x_2, 1); +lean_inc(x_577); +lean_dec(x_2); +lean_inc(x_3); +x_578 = l_Lean_Elab_Term_inferType(x_577, x_3, x_72); +if (lean_obj_tag(x_578) == 0) { -lean_object* x_580; lean_object* x_581; lean_object* x_582; -x_580 = lean_ctor_get(x_579, 0); +lean_object* x_579; lean_object* x_580; lean_object* x_581; +x_579 = lean_ctor_get(x_578, 0); +lean_inc(x_579); +x_580 = lean_ctor_get(x_578, 1); lean_inc(x_580); -x_581 = lean_ctor_get(x_579, 1); -lean_inc(x_581); -lean_dec(x_579); -lean_inc(x_4); -x_582 = l_Lean_Elab_Term_whnf(x_1, x_580, x_4, x_581); -if (lean_obj_tag(x_582) == 0) +lean_dec(x_578); +lean_inc(x_3); +x_581 = l_Lean_Elab_Term_whnf(x_579, x_3, x_580); +if (lean_obj_tag(x_581) == 0) { -lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; -x_583 = lean_ctor_get(x_582, 0); +lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; +x_582 = lean_ctor_get(x_581, 0); +lean_inc(x_582); +x_583 = lean_ctor_get(x_581, 1); lean_inc(x_583); -x_584 = lean_ctor_get(x_582, 1); -lean_inc(x_584); +lean_dec(x_581); +x_584 = l_Lean_Expr_getAppFn___main(x_582); +x_585 = l_Lean_Elab_Term_tryPostponeIfMVar(x_582, x_3, x_583); +if (lean_obj_tag(x_585) == 0) +{ +uint8_t x_586; +x_586 = !lean_is_exclusive(x_585); +if (x_586 == 0) +{ +lean_object* x_587; lean_object* x_588; lean_object* x_589; +x_587 = lean_ctor_get(x_585, 1); +x_588 = lean_ctor_get(x_585, 0); +lean_dec(x_588); +if (lean_obj_tag(x_584) == 4) +{ +lean_object* x_596; lean_dec(x_582); -x_585 = l_Lean_Expr_getAppFn___main(x_583); -x_586 = l_Lean_Elab_Term_tryPostponeIfMVar(x_583, x_4, x_584); -if (lean_obj_tag(x_586) == 0) -{ -uint8_t x_587; -x_587 = !lean_is_exclusive(x_586); -if (x_587 == 0) -{ -lean_object* x_588; lean_object* x_589; lean_object* x_590; -x_588 = lean_ctor_get(x_586, 1); -x_589 = lean_ctor_get(x_586, 0); -lean_dec(x_589); -if (lean_obj_tag(x_585) == 4) +lean_dec(x_3); +x_596 = lean_ctor_get(x_584, 0); +lean_inc(x_596); +lean_dec(x_584); +lean_ctor_set(x_585, 0, x_596); +return x_585; +} +else { lean_object* x_597; -lean_dec(x_583); -lean_dec(x_4); -x_597 = lean_ctor_get(x_585, 0); -lean_inc(x_597); +lean_free_object(x_585); +lean_dec(x_584); +x_597 = lean_box(0); +x_589 = x_597; +goto block_595; +} +block_595: +{ +lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; +lean_dec(x_589); +x_590 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_590, 0, x_582); +x_591 = l_Lean_indentExpr(x_590); +x_592 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6; +x_593 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_593, 0, x_592); +lean_ctor_set(x_593, 1, x_591); +x_594 = l_Lean_Elab_Term_throwError___rarg(x_593, x_3, x_587); +return x_594; +} +} +else +{ +lean_object* x_598; lean_object* x_599; +x_598 = lean_ctor_get(x_585, 1); +lean_inc(x_598); lean_dec(x_585); -lean_ctor_set(x_586, 0, x_597); -return x_586; -} -else +if (lean_obj_tag(x_584) == 4) { -lean_object* x_598; -lean_free_object(x_586); -lean_dec(x_585); -x_598 = lean_box(0); -x_590 = x_598; -goto block_596; -} -block_596: -{ -lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; -lean_dec(x_590); -x_591 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_591, 0, x_583); -x_592 = l_Lean_indentExpr(x_591); -x_593 = l___private_Lean_Elab_StructInst_5__getStructName___closed__6; -x_594 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_594, 0, x_593); -lean_ctor_set(x_594, 1, x_592); -x_595 = l_Lean_Elab_Term_throwError___rarg(x_1, x_594, x_4, x_588); -return x_595; -} -} -else -{ -lean_object* x_599; lean_object* x_600; -x_599 = lean_ctor_get(x_586, 1); -lean_inc(x_599); -lean_dec(x_586); -if (lean_obj_tag(x_585) == 4) -{ -lean_object* x_607; lean_object* x_608; -lean_dec(x_583); -lean_dec(x_4); -x_607 = lean_ctor_get(x_585, 0); -lean_inc(x_607); -lean_dec(x_585); -x_608 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_608, 0, x_607); -lean_ctor_set(x_608, 1, x_599); -return x_608; -} -else -{ -lean_object* x_609; -lean_dec(x_585); -x_609 = lean_box(0); -x_600 = x_609; -goto block_606; -} -block_606: -{ -lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; -lean_dec(x_600); -x_601 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_601, 0, x_583); -x_602 = l_Lean_indentExpr(x_601); -x_603 = l___private_Lean_Elab_StructInst_5__getStructName___closed__6; -x_604 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_604, 0, x_603); -lean_ctor_set(x_604, 1, x_602); -x_605 = l_Lean_Elab_Term_throwError___rarg(x_1, x_604, x_4, x_599); -return x_605; -} -} -} -else -{ -uint8_t x_610; -lean_dec(x_585); -lean_dec(x_583); -lean_dec(x_4); -x_610 = !lean_is_exclusive(x_586); -if (x_610 == 0) -{ -return x_586; -} -else -{ -lean_object* x_611; lean_object* x_612; lean_object* x_613; -x_611 = lean_ctor_get(x_586, 0); -x_612 = lean_ctor_get(x_586, 1); -lean_inc(x_612); -lean_inc(x_611); -lean_dec(x_586); -x_613 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_613, 0, x_611); -lean_ctor_set(x_613, 1, x_612); -return x_613; -} -} -} -else -{ -uint8_t x_614; -lean_dec(x_4); -x_614 = !lean_is_exclusive(x_582); -if (x_614 == 0) -{ -return x_582; -} -else -{ -lean_object* x_615; lean_object* x_616; lean_object* x_617; -x_615 = lean_ctor_get(x_582, 0); -x_616 = lean_ctor_get(x_582, 1); -lean_inc(x_616); -lean_inc(x_615); +lean_object* x_606; lean_object* x_607; lean_dec(x_582); -x_617 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_617, 0, x_615); -lean_ctor_set(x_617, 1, x_616); -return x_617; -} -} -} -else -{ -uint8_t x_618; -lean_dec(x_4); -x_618 = !lean_is_exclusive(x_579); -if (x_618 == 0) -{ -return x_579; -} -else -{ -lean_object* x_619; lean_object* x_620; lean_object* x_621; -x_619 = lean_ctor_get(x_579, 0); -x_620 = lean_ctor_get(x_579, 1); -lean_inc(x_620); -lean_inc(x_619); -lean_dec(x_579); -x_621 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_621, 0, x_619); -lean_ctor_set(x_621, 1, x_620); -return x_621; -} -} -} -else -{ -lean_object* x_622; lean_dec(x_3); -x_622 = lean_box(0); -x_74 = x_622; -goto block_80; +x_606 = lean_ctor_get(x_584, 0); +lean_inc(x_606); +lean_dec(x_584); +x_607 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_607, 0, x_606); +lean_ctor_set(x_607, 1, x_598); +return x_607; } -} -} -block_80: +else { -lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; -lean_dec(x_74); -x_75 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_75, 0, x_69); -x_76 = l_Lean_indentExpr(x_75); -x_77 = l___private_Lean_Elab_StructInst_5__getStructName___closed__3; -x_78 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_78, 0, x_77); -lean_ctor_set(x_78, 1, x_76); -x_79 = l_Lean_Elab_Term_throwError___rarg(x_1, x_78, x_4, x_73); -return x_79; +lean_object* x_608; +lean_dec(x_584); +x_608 = lean_box(0); +x_599 = x_608; +goto block_605; +} +block_605: +{ +lean_object* x_600; lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; +lean_dec(x_599); +x_600 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_600, 0, x_582); +x_601 = l_Lean_indentExpr(x_600); +x_602 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6; +x_603 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_603, 0, x_602); +lean_ctor_set(x_603, 1, x_601); +x_604 = l_Lean_Elab_Term_throwError___rarg(x_603, x_3, x_598); +return x_604; +} } } else { -lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_632; -x_623 = lean_ctor_get(x_70, 0); -x_624 = lean_ctor_get(x_70, 1); -lean_inc(x_624); +uint8_t x_609; +lean_dec(x_584); +lean_dec(x_582); +lean_dec(x_3); +x_609 = !lean_is_exclusive(x_585); +if (x_609 == 0) +{ +return x_585; +} +else +{ +lean_object* x_610; lean_object* x_611; lean_object* x_612; +x_610 = lean_ctor_get(x_585, 0); +x_611 = lean_ctor_get(x_585, 1); +lean_inc(x_611); +lean_inc(x_610); +lean_dec(x_585); +x_612 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_612, 0, x_610); +lean_ctor_set(x_612, 1, x_611); +return x_612; +} +} +} +else +{ +uint8_t x_613; +lean_dec(x_3); +x_613 = !lean_is_exclusive(x_581); +if (x_613 == 0) +{ +return x_581; +} +else +{ +lean_object* x_614; lean_object* x_615; lean_object* x_616; +x_614 = lean_ctor_get(x_581, 0); +x_615 = lean_ctor_get(x_581, 1); +lean_inc(x_615); +lean_inc(x_614); +lean_dec(x_581); +x_616 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_616, 0, x_614); +lean_ctor_set(x_616, 1, x_615); +return x_616; +} +} +} +else +{ +uint8_t x_617; +lean_dec(x_3); +x_617 = !lean_is_exclusive(x_578); +if (x_617 == 0) +{ +return x_578; +} +else +{ +lean_object* x_618; lean_object* x_619; lean_object* x_620; +x_618 = lean_ctor_get(x_578, 0); +x_619 = lean_ctor_get(x_578, 1); +lean_inc(x_619); +lean_inc(x_618); +lean_dec(x_578); +x_620 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_620, 0, x_618); +lean_ctor_set(x_620, 1, x_619); +return x_620; +} +} +} +else +{ +lean_object* x_621; +lean_dec(x_2); +x_621 = lean_box(0); +x_73 = x_621; +goto block_79; +} +} +} +block_79: +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; +lean_dec(x_73); +x_74 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_74, 0, x_68); +x_75 = l_Lean_indentExpr(x_74); +x_76 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__3; +x_77 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_75); +x_78 = l_Lean_Elab_Term_throwError___rarg(x_77, x_3, x_72); +return x_78; +} +} +else +{ +lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_631; +x_622 = lean_ctor_get(x_69, 0); +x_623 = lean_ctor_get(x_69, 1); lean_inc(x_623); -lean_dec(x_70); -x_632 = l_Lean_Expr_getAppFn___main(x_623); -lean_dec(x_623); -switch (lean_obj_tag(x_632)) { +lean_inc(x_622); +lean_dec(x_69); +x_631 = l_Lean_Expr_getAppFn___main(x_622); +lean_dec(x_622); +switch (lean_obj_tag(x_631)) { case 0: { -lean_dec(x_632); -if (lean_obj_tag(x_3) == 2) +lean_dec(x_631); +if (lean_obj_tag(x_2) == 2) { -lean_object* x_633; lean_object* x_634; -lean_dec(x_69); -x_633 = lean_ctor_get(x_3, 1); -lean_inc(x_633); -lean_dec(x_3); -lean_inc(x_4); -x_634 = l_Lean_Elab_Term_inferType(x_1, x_633, x_4, x_624); -if (lean_obj_tag(x_634) == 0) +lean_object* x_632; lean_object* x_633; +lean_dec(x_68); +x_632 = lean_ctor_get(x_2, 1); +lean_inc(x_632); +lean_dec(x_2); +lean_inc(x_3); +x_633 = l_Lean_Elab_Term_inferType(x_632, x_3, x_623); +if (lean_obj_tag(x_633) == 0) { -lean_object* x_635; lean_object* x_636; lean_object* x_637; -x_635 = lean_ctor_get(x_634, 0); +lean_object* x_634; lean_object* x_635; lean_object* x_636; +x_634 = lean_ctor_get(x_633, 0); +lean_inc(x_634); +x_635 = lean_ctor_get(x_633, 1); lean_inc(x_635); -x_636 = lean_ctor_get(x_634, 1); -lean_inc(x_636); -lean_dec(x_634); -lean_inc(x_4); -x_637 = l_Lean_Elab_Term_whnf(x_1, x_635, x_4, x_636); -if (lean_obj_tag(x_637) == 0) +lean_dec(x_633); +lean_inc(x_3); +x_636 = l_Lean_Elab_Term_whnf(x_634, x_3, x_635); +if (lean_obj_tag(x_636) == 0) { -lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; -x_638 = lean_ctor_get(x_637, 0); +lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; +x_637 = lean_ctor_get(x_636, 0); +lean_inc(x_637); +x_638 = lean_ctor_get(x_636, 1); lean_inc(x_638); -x_639 = lean_ctor_get(x_637, 1); -lean_inc(x_639); +lean_dec(x_636); +x_639 = l_Lean_Expr_getAppFn___main(x_637); +x_640 = l_Lean_Elab_Term_tryPostponeIfMVar(x_637, x_3, x_638); +if (lean_obj_tag(x_640) == 0) +{ +lean_object* x_641; lean_object* x_642; lean_object* x_643; +x_641 = lean_ctor_get(x_640, 1); +lean_inc(x_641); +if (lean_is_exclusive(x_640)) { + lean_ctor_release(x_640, 0); + lean_ctor_release(x_640, 1); + x_642 = x_640; +} else { + lean_dec_ref(x_640); + x_642 = lean_box(0); +} +if (lean_obj_tag(x_639) == 4) +{ +lean_object* x_650; lean_object* x_651; lean_dec(x_637); -x_640 = l_Lean_Expr_getAppFn___main(x_638); -x_641 = l_Lean_Elab_Term_tryPostponeIfMVar(x_638, x_4, x_639); -if (lean_obj_tag(x_641) == 0) -{ -lean_object* x_642; lean_object* x_643; lean_object* x_644; -x_642 = lean_ctor_get(x_641, 1); -lean_inc(x_642); -if (lean_is_exclusive(x_641)) { - lean_ctor_release(x_641, 0); - lean_ctor_release(x_641, 1); - x_643 = x_641; -} else { - lean_dec_ref(x_641); - x_643 = lean_box(0); -} -if (lean_obj_tag(x_640) == 4) -{ -lean_object* x_651; lean_object* x_652; -lean_dec(x_638); -lean_dec(x_4); -x_651 = lean_ctor_get(x_640, 0); -lean_inc(x_651); -lean_dec(x_640); -if (lean_is_scalar(x_643)) { - x_652 = lean_alloc_ctor(0, 2, 0); -} else { - x_652 = x_643; -} -lean_ctor_set(x_652, 0, x_651); -lean_ctor_set(x_652, 1, x_642); -return x_652; -} -else -{ -lean_object* x_653; -lean_dec(x_643); -lean_dec(x_640); -x_653 = lean_box(0); -x_644 = x_653; -goto block_650; -} -block_650: -{ -lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; -lean_dec(x_644); -x_645 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_645, 0, x_638); -x_646 = l_Lean_indentExpr(x_645); -x_647 = l___private_Lean_Elab_StructInst_5__getStructName___closed__6; -x_648 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_648, 0, x_647); -lean_ctor_set(x_648, 1, x_646); -x_649 = l_Lean_Elab_Term_throwError___rarg(x_1, x_648, x_4, x_642); -return x_649; -} -} -else -{ -lean_object* x_654; lean_object* x_655; lean_object* x_656; lean_object* x_657; -lean_dec(x_640); -lean_dec(x_638); -lean_dec(x_4); -x_654 = lean_ctor_get(x_641, 0); -lean_inc(x_654); -x_655 = lean_ctor_get(x_641, 1); -lean_inc(x_655); -if (lean_is_exclusive(x_641)) { - lean_ctor_release(x_641, 0); - lean_ctor_release(x_641, 1); - x_656 = x_641; -} else { - lean_dec_ref(x_641); - x_656 = lean_box(0); -} -if (lean_is_scalar(x_656)) { - x_657 = lean_alloc_ctor(1, 2, 0); -} else { - x_657 = x_656; -} -lean_ctor_set(x_657, 0, x_654); -lean_ctor_set(x_657, 1, x_655); -return x_657; -} -} -else -{ -lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; -lean_dec(x_4); -x_658 = lean_ctor_get(x_637, 0); -lean_inc(x_658); -x_659 = lean_ctor_get(x_637, 1); -lean_inc(x_659); -if (lean_is_exclusive(x_637)) { - lean_ctor_release(x_637, 0); - lean_ctor_release(x_637, 1); - x_660 = x_637; -} else { - lean_dec_ref(x_637); - x_660 = lean_box(0); -} -if (lean_is_scalar(x_660)) { - x_661 = lean_alloc_ctor(1, 2, 0); -} else { - x_661 = x_660; -} -lean_ctor_set(x_661, 0, x_658); -lean_ctor_set(x_661, 1, x_659); -return x_661; -} -} -else -{ -lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; -lean_dec(x_4); -x_662 = lean_ctor_get(x_634, 0); -lean_inc(x_662); -x_663 = lean_ctor_get(x_634, 1); -lean_inc(x_663); -if (lean_is_exclusive(x_634)) { - lean_ctor_release(x_634, 0); - lean_ctor_release(x_634, 1); - x_664 = x_634; -} else { - lean_dec_ref(x_634); - x_664 = lean_box(0); -} -if (lean_is_scalar(x_664)) { - x_665 = lean_alloc_ctor(1, 2, 0); -} else { - x_665 = x_664; -} -lean_ctor_set(x_665, 0, x_662); -lean_ctor_set(x_665, 1, x_663); -return x_665; -} -} -else -{ -lean_object* x_666; lean_dec(x_3); -x_666 = lean_box(0); -x_625 = x_666; -goto block_631; +x_650 = lean_ctor_get(x_639, 0); +lean_inc(x_650); +lean_dec(x_639); +if (lean_is_scalar(x_642)) { + x_651 = lean_alloc_ctor(0, 2, 0); +} else { + x_651 = x_642; +} +lean_ctor_set(x_651, 0, x_650); +lean_ctor_set(x_651, 1, x_641); +return x_651; +} +else +{ +lean_object* x_652; +lean_dec(x_642); +lean_dec(x_639); +x_652 = lean_box(0); +x_643 = x_652; +goto block_649; +} +block_649: +{ +lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; +lean_dec(x_643); +x_644 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_644, 0, x_637); +x_645 = l_Lean_indentExpr(x_644); +x_646 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6; +x_647 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_647, 0, x_646); +lean_ctor_set(x_647, 1, x_645); +x_648 = l_Lean_Elab_Term_throwError___rarg(x_647, x_3, x_641); +return x_648; +} +} +else +{ +lean_object* x_653; lean_object* x_654; lean_object* x_655; lean_object* x_656; +lean_dec(x_639); +lean_dec(x_637); +lean_dec(x_3); +x_653 = lean_ctor_get(x_640, 0); +lean_inc(x_653); +x_654 = lean_ctor_get(x_640, 1); +lean_inc(x_654); +if (lean_is_exclusive(x_640)) { + lean_ctor_release(x_640, 0); + lean_ctor_release(x_640, 1); + x_655 = x_640; +} else { + lean_dec_ref(x_640); + x_655 = lean_box(0); +} +if (lean_is_scalar(x_655)) { + x_656 = lean_alloc_ctor(1, 2, 0); +} else { + x_656 = x_655; +} +lean_ctor_set(x_656, 0, x_653); +lean_ctor_set(x_656, 1, x_654); +return x_656; +} +} +else +{ +lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; +lean_dec(x_3); +x_657 = lean_ctor_get(x_636, 0); +lean_inc(x_657); +x_658 = lean_ctor_get(x_636, 1); +lean_inc(x_658); +if (lean_is_exclusive(x_636)) { + lean_ctor_release(x_636, 0); + lean_ctor_release(x_636, 1); + x_659 = x_636; +} else { + lean_dec_ref(x_636); + x_659 = lean_box(0); +} +if (lean_is_scalar(x_659)) { + x_660 = lean_alloc_ctor(1, 2, 0); +} else { + x_660 = x_659; +} +lean_ctor_set(x_660, 0, x_657); +lean_ctor_set(x_660, 1, x_658); +return x_660; +} +} +else +{ +lean_object* x_661; lean_object* x_662; lean_object* x_663; lean_object* x_664; +lean_dec(x_3); +x_661 = lean_ctor_get(x_633, 0); +lean_inc(x_661); +x_662 = lean_ctor_get(x_633, 1); +lean_inc(x_662); +if (lean_is_exclusive(x_633)) { + lean_ctor_release(x_633, 0); + lean_ctor_release(x_633, 1); + x_663 = x_633; +} else { + lean_dec_ref(x_633); + x_663 = lean_box(0); +} +if (lean_is_scalar(x_663)) { + x_664 = lean_alloc_ctor(1, 2, 0); +} else { + x_664 = x_663; +} +lean_ctor_set(x_664, 0, x_661); +lean_ctor_set(x_664, 1, x_662); +return x_664; +} +} +else +{ +lean_object* x_665; +lean_dec(x_2); +x_665 = lean_box(0); +x_624 = x_665; +goto block_630; } } case 1: { -lean_dec(x_632); -if (lean_obj_tag(x_3) == 2) +lean_dec(x_631); +if (lean_obj_tag(x_2) == 2) { -lean_object* x_667; lean_object* x_668; -lean_dec(x_69); -x_667 = lean_ctor_get(x_3, 1); -lean_inc(x_667); -lean_dec(x_3); -lean_inc(x_4); -x_668 = l_Lean_Elab_Term_inferType(x_1, x_667, x_4, x_624); -if (lean_obj_tag(x_668) == 0) +lean_object* x_666; lean_object* x_667; +lean_dec(x_68); +x_666 = lean_ctor_get(x_2, 1); +lean_inc(x_666); +lean_dec(x_2); +lean_inc(x_3); +x_667 = l_Lean_Elab_Term_inferType(x_666, x_3, x_623); +if (lean_obj_tag(x_667) == 0) { -lean_object* x_669; lean_object* x_670; lean_object* x_671; -x_669 = lean_ctor_get(x_668, 0); +lean_object* x_668; lean_object* x_669; lean_object* x_670; +x_668 = lean_ctor_get(x_667, 0); +lean_inc(x_668); +x_669 = lean_ctor_get(x_667, 1); lean_inc(x_669); -x_670 = lean_ctor_get(x_668, 1); -lean_inc(x_670); -lean_dec(x_668); -lean_inc(x_4); -x_671 = l_Lean_Elab_Term_whnf(x_1, x_669, x_4, x_670); -if (lean_obj_tag(x_671) == 0) +lean_dec(x_667); +lean_inc(x_3); +x_670 = l_Lean_Elab_Term_whnf(x_668, x_3, x_669); +if (lean_obj_tag(x_670) == 0) { -lean_object* x_672; lean_object* x_673; lean_object* x_674; lean_object* x_675; -x_672 = lean_ctor_get(x_671, 0); +lean_object* x_671; lean_object* x_672; lean_object* x_673; lean_object* x_674; +x_671 = lean_ctor_get(x_670, 0); +lean_inc(x_671); +x_672 = lean_ctor_get(x_670, 1); lean_inc(x_672); -x_673 = lean_ctor_get(x_671, 1); -lean_inc(x_673); +lean_dec(x_670); +x_673 = l_Lean_Expr_getAppFn___main(x_671); +x_674 = l_Lean_Elab_Term_tryPostponeIfMVar(x_671, x_3, x_672); +if (lean_obj_tag(x_674) == 0) +{ +lean_object* x_675; lean_object* x_676; lean_object* x_677; +x_675 = lean_ctor_get(x_674, 1); +lean_inc(x_675); +if (lean_is_exclusive(x_674)) { + lean_ctor_release(x_674, 0); + lean_ctor_release(x_674, 1); + x_676 = x_674; +} else { + lean_dec_ref(x_674); + x_676 = lean_box(0); +} +if (lean_obj_tag(x_673) == 4) +{ +lean_object* x_684; lean_object* x_685; lean_dec(x_671); -x_674 = l_Lean_Expr_getAppFn___main(x_672); -x_675 = l_Lean_Elab_Term_tryPostponeIfMVar(x_672, x_4, x_673); -if (lean_obj_tag(x_675) == 0) -{ -lean_object* x_676; lean_object* x_677; lean_object* x_678; -x_676 = lean_ctor_get(x_675, 1); -lean_inc(x_676); -if (lean_is_exclusive(x_675)) { - lean_ctor_release(x_675, 0); - lean_ctor_release(x_675, 1); - x_677 = x_675; -} else { - lean_dec_ref(x_675); - x_677 = lean_box(0); -} -if (lean_obj_tag(x_674) == 4) -{ -lean_object* x_685; lean_object* x_686; -lean_dec(x_672); -lean_dec(x_4); -x_685 = lean_ctor_get(x_674, 0); -lean_inc(x_685); -lean_dec(x_674); -if (lean_is_scalar(x_677)) { - x_686 = lean_alloc_ctor(0, 2, 0); -} else { - x_686 = x_677; -} -lean_ctor_set(x_686, 0, x_685); -lean_ctor_set(x_686, 1, x_676); -return x_686; -} -else -{ -lean_object* x_687; -lean_dec(x_677); -lean_dec(x_674); -x_687 = lean_box(0); -x_678 = x_687; -goto block_684; -} -block_684: -{ -lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; -lean_dec(x_678); -x_679 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_679, 0, x_672); -x_680 = l_Lean_indentExpr(x_679); -x_681 = l___private_Lean_Elab_StructInst_5__getStructName___closed__6; -x_682 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_682, 0, x_681); -lean_ctor_set(x_682, 1, x_680); -x_683 = l_Lean_Elab_Term_throwError___rarg(x_1, x_682, x_4, x_676); -return x_683; -} -} -else -{ -lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; -lean_dec(x_674); -lean_dec(x_672); -lean_dec(x_4); -x_688 = lean_ctor_get(x_675, 0); -lean_inc(x_688); -x_689 = lean_ctor_get(x_675, 1); -lean_inc(x_689); -if (lean_is_exclusive(x_675)) { - lean_ctor_release(x_675, 0); - lean_ctor_release(x_675, 1); - x_690 = x_675; -} else { - lean_dec_ref(x_675); - x_690 = lean_box(0); -} -if (lean_is_scalar(x_690)) { - x_691 = lean_alloc_ctor(1, 2, 0); -} else { - x_691 = x_690; -} -lean_ctor_set(x_691, 0, x_688); -lean_ctor_set(x_691, 1, x_689); -return x_691; -} -} -else -{ -lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; -lean_dec(x_4); -x_692 = lean_ctor_get(x_671, 0); -lean_inc(x_692); -x_693 = lean_ctor_get(x_671, 1); -lean_inc(x_693); -if (lean_is_exclusive(x_671)) { - lean_ctor_release(x_671, 0); - lean_ctor_release(x_671, 1); - x_694 = x_671; -} else { - lean_dec_ref(x_671); - x_694 = lean_box(0); -} -if (lean_is_scalar(x_694)) { - x_695 = lean_alloc_ctor(1, 2, 0); -} else { - x_695 = x_694; -} -lean_ctor_set(x_695, 0, x_692); -lean_ctor_set(x_695, 1, x_693); -return x_695; -} -} -else -{ -lean_object* x_696; lean_object* x_697; lean_object* x_698; lean_object* x_699; -lean_dec(x_4); -x_696 = lean_ctor_get(x_668, 0); -lean_inc(x_696); -x_697 = lean_ctor_get(x_668, 1); -lean_inc(x_697); -if (lean_is_exclusive(x_668)) { - lean_ctor_release(x_668, 0); - lean_ctor_release(x_668, 1); - x_698 = x_668; -} else { - lean_dec_ref(x_668); - x_698 = lean_box(0); -} -if (lean_is_scalar(x_698)) { - x_699 = lean_alloc_ctor(1, 2, 0); -} else { - x_699 = x_698; -} -lean_ctor_set(x_699, 0, x_696); -lean_ctor_set(x_699, 1, x_697); -return x_699; -} -} -else -{ -lean_object* x_700; lean_dec(x_3); -x_700 = lean_box(0); -x_625 = x_700; -goto block_631; +x_684 = lean_ctor_get(x_673, 0); +lean_inc(x_684); +lean_dec(x_673); +if (lean_is_scalar(x_676)) { + x_685 = lean_alloc_ctor(0, 2, 0); +} else { + x_685 = x_676; +} +lean_ctor_set(x_685, 0, x_684); +lean_ctor_set(x_685, 1, x_675); +return x_685; +} +else +{ +lean_object* x_686; +lean_dec(x_676); +lean_dec(x_673); +x_686 = lean_box(0); +x_677 = x_686; +goto block_683; +} +block_683: +{ +lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; +lean_dec(x_677); +x_678 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_678, 0, x_671); +x_679 = l_Lean_indentExpr(x_678); +x_680 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6; +x_681 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_681, 0, x_680); +lean_ctor_set(x_681, 1, x_679); +x_682 = l_Lean_Elab_Term_throwError___rarg(x_681, x_3, x_675); +return x_682; +} +} +else +{ +lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; +lean_dec(x_673); +lean_dec(x_671); +lean_dec(x_3); +x_687 = lean_ctor_get(x_674, 0); +lean_inc(x_687); +x_688 = lean_ctor_get(x_674, 1); +lean_inc(x_688); +if (lean_is_exclusive(x_674)) { + lean_ctor_release(x_674, 0); + lean_ctor_release(x_674, 1); + x_689 = x_674; +} else { + lean_dec_ref(x_674); + x_689 = lean_box(0); +} +if (lean_is_scalar(x_689)) { + x_690 = lean_alloc_ctor(1, 2, 0); +} else { + x_690 = x_689; +} +lean_ctor_set(x_690, 0, x_687); +lean_ctor_set(x_690, 1, x_688); +return x_690; +} +} +else +{ +lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; +lean_dec(x_3); +x_691 = lean_ctor_get(x_670, 0); +lean_inc(x_691); +x_692 = lean_ctor_get(x_670, 1); +lean_inc(x_692); +if (lean_is_exclusive(x_670)) { + lean_ctor_release(x_670, 0); + lean_ctor_release(x_670, 1); + x_693 = x_670; +} else { + lean_dec_ref(x_670); + x_693 = lean_box(0); +} +if (lean_is_scalar(x_693)) { + x_694 = lean_alloc_ctor(1, 2, 0); +} else { + x_694 = x_693; +} +lean_ctor_set(x_694, 0, x_691); +lean_ctor_set(x_694, 1, x_692); +return x_694; +} +} +else +{ +lean_object* x_695; lean_object* x_696; lean_object* x_697; lean_object* x_698; +lean_dec(x_3); +x_695 = lean_ctor_get(x_667, 0); +lean_inc(x_695); +x_696 = lean_ctor_get(x_667, 1); +lean_inc(x_696); +if (lean_is_exclusive(x_667)) { + lean_ctor_release(x_667, 0); + lean_ctor_release(x_667, 1); + x_697 = x_667; +} else { + lean_dec_ref(x_667); + x_697 = lean_box(0); +} +if (lean_is_scalar(x_697)) { + x_698 = lean_alloc_ctor(1, 2, 0); +} else { + x_698 = x_697; +} +lean_ctor_set(x_698, 0, x_695); +lean_ctor_set(x_698, 1, x_696); +return x_698; +} +} +else +{ +lean_object* x_699; +lean_dec(x_2); +x_699 = lean_box(0); +x_624 = x_699; +goto block_630; } } case 2: { -lean_dec(x_632); -if (lean_obj_tag(x_3) == 2) +lean_dec(x_631); +if (lean_obj_tag(x_2) == 2) { -lean_object* x_701; lean_object* x_702; -lean_dec(x_69); -x_701 = lean_ctor_get(x_3, 1); -lean_inc(x_701); -lean_dec(x_3); -lean_inc(x_4); -x_702 = l_Lean_Elab_Term_inferType(x_1, x_701, x_4, x_624); -if (lean_obj_tag(x_702) == 0) +lean_object* x_700; lean_object* x_701; +lean_dec(x_68); +x_700 = lean_ctor_get(x_2, 1); +lean_inc(x_700); +lean_dec(x_2); +lean_inc(x_3); +x_701 = l_Lean_Elab_Term_inferType(x_700, x_3, x_623); +if (lean_obj_tag(x_701) == 0) { -lean_object* x_703; lean_object* x_704; lean_object* x_705; -x_703 = lean_ctor_get(x_702, 0); +lean_object* x_702; lean_object* x_703; lean_object* x_704; +x_702 = lean_ctor_get(x_701, 0); +lean_inc(x_702); +x_703 = lean_ctor_get(x_701, 1); lean_inc(x_703); -x_704 = lean_ctor_get(x_702, 1); -lean_inc(x_704); -lean_dec(x_702); -lean_inc(x_4); -x_705 = l_Lean_Elab_Term_whnf(x_1, x_703, x_4, x_704); -if (lean_obj_tag(x_705) == 0) +lean_dec(x_701); +lean_inc(x_3); +x_704 = l_Lean_Elab_Term_whnf(x_702, x_3, x_703); +if (lean_obj_tag(x_704) == 0) { -lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; -x_706 = lean_ctor_get(x_705, 0); +lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; +x_705 = lean_ctor_get(x_704, 0); +lean_inc(x_705); +x_706 = lean_ctor_get(x_704, 1); lean_inc(x_706); -x_707 = lean_ctor_get(x_705, 1); -lean_inc(x_707); +lean_dec(x_704); +x_707 = l_Lean_Expr_getAppFn___main(x_705); +x_708 = l_Lean_Elab_Term_tryPostponeIfMVar(x_705, x_3, x_706); +if (lean_obj_tag(x_708) == 0) +{ +lean_object* x_709; lean_object* x_710; lean_object* x_711; +x_709 = lean_ctor_get(x_708, 1); +lean_inc(x_709); +if (lean_is_exclusive(x_708)) { + lean_ctor_release(x_708, 0); + lean_ctor_release(x_708, 1); + x_710 = x_708; +} else { + lean_dec_ref(x_708); + x_710 = lean_box(0); +} +if (lean_obj_tag(x_707) == 4) +{ +lean_object* x_718; lean_object* x_719; lean_dec(x_705); -x_708 = l_Lean_Expr_getAppFn___main(x_706); -x_709 = l_Lean_Elab_Term_tryPostponeIfMVar(x_706, x_4, x_707); -if (lean_obj_tag(x_709) == 0) -{ -lean_object* x_710; lean_object* x_711; lean_object* x_712; -x_710 = lean_ctor_get(x_709, 1); -lean_inc(x_710); -if (lean_is_exclusive(x_709)) { - lean_ctor_release(x_709, 0); - lean_ctor_release(x_709, 1); - x_711 = x_709; -} else { - lean_dec_ref(x_709); - x_711 = lean_box(0); -} -if (lean_obj_tag(x_708) == 4) -{ -lean_object* x_719; lean_object* x_720; -lean_dec(x_706); -lean_dec(x_4); -x_719 = lean_ctor_get(x_708, 0); -lean_inc(x_719); -lean_dec(x_708); -if (lean_is_scalar(x_711)) { - x_720 = lean_alloc_ctor(0, 2, 0); -} else { - x_720 = x_711; -} -lean_ctor_set(x_720, 0, x_719); -lean_ctor_set(x_720, 1, x_710); -return x_720; -} -else -{ -lean_object* x_721; -lean_dec(x_711); -lean_dec(x_708); -x_721 = lean_box(0); -x_712 = x_721; -goto block_718; -} -block_718: -{ -lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; -lean_dec(x_712); -x_713 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_713, 0, x_706); -x_714 = l_Lean_indentExpr(x_713); -x_715 = l___private_Lean_Elab_StructInst_5__getStructName___closed__6; -x_716 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_716, 0, x_715); -lean_ctor_set(x_716, 1, x_714); -x_717 = l_Lean_Elab_Term_throwError___rarg(x_1, x_716, x_4, x_710); -return x_717; -} -} -else -{ -lean_object* x_722; lean_object* x_723; lean_object* x_724; lean_object* x_725; -lean_dec(x_708); -lean_dec(x_706); -lean_dec(x_4); -x_722 = lean_ctor_get(x_709, 0); -lean_inc(x_722); -x_723 = lean_ctor_get(x_709, 1); -lean_inc(x_723); -if (lean_is_exclusive(x_709)) { - lean_ctor_release(x_709, 0); - lean_ctor_release(x_709, 1); - x_724 = x_709; -} else { - lean_dec_ref(x_709); - x_724 = lean_box(0); -} -if (lean_is_scalar(x_724)) { - x_725 = lean_alloc_ctor(1, 2, 0); -} else { - x_725 = x_724; -} -lean_ctor_set(x_725, 0, x_722); -lean_ctor_set(x_725, 1, x_723); -return x_725; -} -} -else -{ -lean_object* x_726; lean_object* x_727; lean_object* x_728; lean_object* x_729; -lean_dec(x_4); -x_726 = lean_ctor_get(x_705, 0); -lean_inc(x_726); -x_727 = lean_ctor_get(x_705, 1); -lean_inc(x_727); -if (lean_is_exclusive(x_705)) { - lean_ctor_release(x_705, 0); - lean_ctor_release(x_705, 1); - x_728 = x_705; -} else { - lean_dec_ref(x_705); - x_728 = lean_box(0); -} -if (lean_is_scalar(x_728)) { - x_729 = lean_alloc_ctor(1, 2, 0); -} else { - x_729 = x_728; -} -lean_ctor_set(x_729, 0, x_726); -lean_ctor_set(x_729, 1, x_727); -return x_729; -} -} -else -{ -lean_object* x_730; lean_object* x_731; lean_object* x_732; lean_object* x_733; -lean_dec(x_4); -x_730 = lean_ctor_get(x_702, 0); -lean_inc(x_730); -x_731 = lean_ctor_get(x_702, 1); -lean_inc(x_731); -if (lean_is_exclusive(x_702)) { - lean_ctor_release(x_702, 0); - lean_ctor_release(x_702, 1); - x_732 = x_702; -} else { - lean_dec_ref(x_702); - x_732 = lean_box(0); -} -if (lean_is_scalar(x_732)) { - x_733 = lean_alloc_ctor(1, 2, 0); -} else { - x_733 = x_732; -} -lean_ctor_set(x_733, 0, x_730); -lean_ctor_set(x_733, 1, x_731); -return x_733; -} -} -else -{ -lean_object* x_734; lean_dec(x_3); -x_734 = lean_box(0); -x_625 = x_734; -goto block_631; +x_718 = lean_ctor_get(x_707, 0); +lean_inc(x_718); +lean_dec(x_707); +if (lean_is_scalar(x_710)) { + x_719 = lean_alloc_ctor(0, 2, 0); +} else { + x_719 = x_710; +} +lean_ctor_set(x_719, 0, x_718); +lean_ctor_set(x_719, 1, x_709); +return x_719; +} +else +{ +lean_object* x_720; +lean_dec(x_710); +lean_dec(x_707); +x_720 = lean_box(0); +x_711 = x_720; +goto block_717; +} +block_717: +{ +lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; +lean_dec(x_711); +x_712 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_712, 0, x_705); +x_713 = l_Lean_indentExpr(x_712); +x_714 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6; +x_715 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_715, 0, x_714); +lean_ctor_set(x_715, 1, x_713); +x_716 = l_Lean_Elab_Term_throwError___rarg(x_715, x_3, x_709); +return x_716; +} +} +else +{ +lean_object* x_721; lean_object* x_722; lean_object* x_723; lean_object* x_724; +lean_dec(x_707); +lean_dec(x_705); +lean_dec(x_3); +x_721 = lean_ctor_get(x_708, 0); +lean_inc(x_721); +x_722 = lean_ctor_get(x_708, 1); +lean_inc(x_722); +if (lean_is_exclusive(x_708)) { + lean_ctor_release(x_708, 0); + lean_ctor_release(x_708, 1); + x_723 = x_708; +} else { + lean_dec_ref(x_708); + x_723 = lean_box(0); +} +if (lean_is_scalar(x_723)) { + x_724 = lean_alloc_ctor(1, 2, 0); +} else { + x_724 = x_723; +} +lean_ctor_set(x_724, 0, x_721); +lean_ctor_set(x_724, 1, x_722); +return x_724; +} +} +else +{ +lean_object* x_725; lean_object* x_726; lean_object* x_727; lean_object* x_728; +lean_dec(x_3); +x_725 = lean_ctor_get(x_704, 0); +lean_inc(x_725); +x_726 = lean_ctor_get(x_704, 1); +lean_inc(x_726); +if (lean_is_exclusive(x_704)) { + lean_ctor_release(x_704, 0); + lean_ctor_release(x_704, 1); + x_727 = x_704; +} else { + lean_dec_ref(x_704); + x_727 = lean_box(0); +} +if (lean_is_scalar(x_727)) { + x_728 = lean_alloc_ctor(1, 2, 0); +} else { + x_728 = x_727; +} +lean_ctor_set(x_728, 0, x_725); +lean_ctor_set(x_728, 1, x_726); +return x_728; +} +} +else +{ +lean_object* x_729; lean_object* x_730; lean_object* x_731; lean_object* x_732; +lean_dec(x_3); +x_729 = lean_ctor_get(x_701, 0); +lean_inc(x_729); +x_730 = lean_ctor_get(x_701, 1); +lean_inc(x_730); +if (lean_is_exclusive(x_701)) { + lean_ctor_release(x_701, 0); + lean_ctor_release(x_701, 1); + x_731 = x_701; +} else { + lean_dec_ref(x_701); + x_731 = lean_box(0); +} +if (lean_is_scalar(x_731)) { + x_732 = lean_alloc_ctor(1, 2, 0); +} else { + x_732 = x_731; +} +lean_ctor_set(x_732, 0, x_729); +lean_ctor_set(x_732, 1, x_730); +return x_732; +} +} +else +{ +lean_object* x_733; +lean_dec(x_2); +x_733 = lean_box(0); +x_624 = x_733; +goto block_630; } } case 3: { -lean_dec(x_632); -if (lean_obj_tag(x_3) == 2) +lean_dec(x_631); +if (lean_obj_tag(x_2) == 2) { -lean_object* x_735; lean_object* x_736; -lean_dec(x_69); -x_735 = lean_ctor_get(x_3, 1); -lean_inc(x_735); -lean_dec(x_3); -lean_inc(x_4); -x_736 = l_Lean_Elab_Term_inferType(x_1, x_735, x_4, x_624); -if (lean_obj_tag(x_736) == 0) +lean_object* x_734; lean_object* x_735; +lean_dec(x_68); +x_734 = lean_ctor_get(x_2, 1); +lean_inc(x_734); +lean_dec(x_2); +lean_inc(x_3); +x_735 = l_Lean_Elab_Term_inferType(x_734, x_3, x_623); +if (lean_obj_tag(x_735) == 0) { -lean_object* x_737; lean_object* x_738; lean_object* x_739; -x_737 = lean_ctor_get(x_736, 0); +lean_object* x_736; lean_object* x_737; lean_object* x_738; +x_736 = lean_ctor_get(x_735, 0); +lean_inc(x_736); +x_737 = lean_ctor_get(x_735, 1); lean_inc(x_737); -x_738 = lean_ctor_get(x_736, 1); -lean_inc(x_738); -lean_dec(x_736); -lean_inc(x_4); -x_739 = l_Lean_Elab_Term_whnf(x_1, x_737, x_4, x_738); -if (lean_obj_tag(x_739) == 0) +lean_dec(x_735); +lean_inc(x_3); +x_738 = l_Lean_Elab_Term_whnf(x_736, x_3, x_737); +if (lean_obj_tag(x_738) == 0) { -lean_object* x_740; lean_object* x_741; lean_object* x_742; lean_object* x_743; -x_740 = lean_ctor_get(x_739, 0); +lean_object* x_739; lean_object* x_740; lean_object* x_741; lean_object* x_742; +x_739 = lean_ctor_get(x_738, 0); +lean_inc(x_739); +x_740 = lean_ctor_get(x_738, 1); lean_inc(x_740); -x_741 = lean_ctor_get(x_739, 1); -lean_inc(x_741); +lean_dec(x_738); +x_741 = l_Lean_Expr_getAppFn___main(x_739); +x_742 = l_Lean_Elab_Term_tryPostponeIfMVar(x_739, x_3, x_740); +if (lean_obj_tag(x_742) == 0) +{ +lean_object* x_743; lean_object* x_744; lean_object* x_745; +x_743 = lean_ctor_get(x_742, 1); +lean_inc(x_743); +if (lean_is_exclusive(x_742)) { + lean_ctor_release(x_742, 0); + lean_ctor_release(x_742, 1); + x_744 = x_742; +} else { + lean_dec_ref(x_742); + x_744 = lean_box(0); +} +if (lean_obj_tag(x_741) == 4) +{ +lean_object* x_752; lean_object* x_753; lean_dec(x_739); -x_742 = l_Lean_Expr_getAppFn___main(x_740); -x_743 = l_Lean_Elab_Term_tryPostponeIfMVar(x_740, x_4, x_741); -if (lean_obj_tag(x_743) == 0) -{ -lean_object* x_744; lean_object* x_745; lean_object* x_746; -x_744 = lean_ctor_get(x_743, 1); -lean_inc(x_744); -if (lean_is_exclusive(x_743)) { - lean_ctor_release(x_743, 0); - lean_ctor_release(x_743, 1); - x_745 = x_743; -} else { - lean_dec_ref(x_743); - x_745 = lean_box(0); -} -if (lean_obj_tag(x_742) == 4) -{ -lean_object* x_753; lean_object* x_754; -lean_dec(x_740); -lean_dec(x_4); -x_753 = lean_ctor_get(x_742, 0); -lean_inc(x_753); -lean_dec(x_742); -if (lean_is_scalar(x_745)) { - x_754 = lean_alloc_ctor(0, 2, 0); -} else { - x_754 = x_745; -} -lean_ctor_set(x_754, 0, x_753); -lean_ctor_set(x_754, 1, x_744); -return x_754; -} -else -{ -lean_object* x_755; -lean_dec(x_745); -lean_dec(x_742); -x_755 = lean_box(0); -x_746 = x_755; -goto block_752; -} -block_752: -{ -lean_object* x_747; lean_object* x_748; lean_object* x_749; lean_object* x_750; lean_object* x_751; -lean_dec(x_746); -x_747 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_747, 0, x_740); -x_748 = l_Lean_indentExpr(x_747); -x_749 = l___private_Lean_Elab_StructInst_5__getStructName___closed__6; -x_750 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_750, 0, x_749); -lean_ctor_set(x_750, 1, x_748); -x_751 = l_Lean_Elab_Term_throwError___rarg(x_1, x_750, x_4, x_744); -return x_751; -} -} -else -{ -lean_object* x_756; lean_object* x_757; lean_object* x_758; lean_object* x_759; -lean_dec(x_742); -lean_dec(x_740); -lean_dec(x_4); -x_756 = lean_ctor_get(x_743, 0); -lean_inc(x_756); -x_757 = lean_ctor_get(x_743, 1); -lean_inc(x_757); -if (lean_is_exclusive(x_743)) { - lean_ctor_release(x_743, 0); - lean_ctor_release(x_743, 1); - x_758 = x_743; -} else { - lean_dec_ref(x_743); - x_758 = lean_box(0); -} -if (lean_is_scalar(x_758)) { - x_759 = lean_alloc_ctor(1, 2, 0); -} else { - x_759 = x_758; -} -lean_ctor_set(x_759, 0, x_756); -lean_ctor_set(x_759, 1, x_757); -return x_759; -} -} -else -{ -lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; -lean_dec(x_4); -x_760 = lean_ctor_get(x_739, 0); -lean_inc(x_760); -x_761 = lean_ctor_get(x_739, 1); -lean_inc(x_761); -if (lean_is_exclusive(x_739)) { - lean_ctor_release(x_739, 0); - lean_ctor_release(x_739, 1); - x_762 = x_739; -} else { - lean_dec_ref(x_739); - x_762 = lean_box(0); -} -if (lean_is_scalar(x_762)) { - x_763 = lean_alloc_ctor(1, 2, 0); -} else { - x_763 = x_762; -} -lean_ctor_set(x_763, 0, x_760); -lean_ctor_set(x_763, 1, x_761); -return x_763; -} -} -else -{ -lean_object* x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; -lean_dec(x_4); -x_764 = lean_ctor_get(x_736, 0); -lean_inc(x_764); -x_765 = lean_ctor_get(x_736, 1); -lean_inc(x_765); -if (lean_is_exclusive(x_736)) { - lean_ctor_release(x_736, 0); - lean_ctor_release(x_736, 1); - x_766 = x_736; -} else { - lean_dec_ref(x_736); - x_766 = lean_box(0); -} -if (lean_is_scalar(x_766)) { - x_767 = lean_alloc_ctor(1, 2, 0); -} else { - x_767 = x_766; -} -lean_ctor_set(x_767, 0, x_764); -lean_ctor_set(x_767, 1, x_765); -return x_767; -} -} -else -{ -lean_object* x_768; lean_dec(x_3); -x_768 = lean_box(0); -x_625 = x_768; -goto block_631; +x_752 = lean_ctor_get(x_741, 0); +lean_inc(x_752); +lean_dec(x_741); +if (lean_is_scalar(x_744)) { + x_753 = lean_alloc_ctor(0, 2, 0); +} else { + x_753 = x_744; +} +lean_ctor_set(x_753, 0, x_752); +lean_ctor_set(x_753, 1, x_743); +return x_753; +} +else +{ +lean_object* x_754; +lean_dec(x_744); +lean_dec(x_741); +x_754 = lean_box(0); +x_745 = x_754; +goto block_751; +} +block_751: +{ +lean_object* x_746; lean_object* x_747; lean_object* x_748; lean_object* x_749; lean_object* x_750; +lean_dec(x_745); +x_746 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_746, 0, x_739); +x_747 = l_Lean_indentExpr(x_746); +x_748 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6; +x_749 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_749, 0, x_748); +lean_ctor_set(x_749, 1, x_747); +x_750 = l_Lean_Elab_Term_throwError___rarg(x_749, x_3, x_743); +return x_750; +} +} +else +{ +lean_object* x_755; lean_object* x_756; lean_object* x_757; lean_object* x_758; +lean_dec(x_741); +lean_dec(x_739); +lean_dec(x_3); +x_755 = lean_ctor_get(x_742, 0); +lean_inc(x_755); +x_756 = lean_ctor_get(x_742, 1); +lean_inc(x_756); +if (lean_is_exclusive(x_742)) { + lean_ctor_release(x_742, 0); + lean_ctor_release(x_742, 1); + x_757 = x_742; +} else { + lean_dec_ref(x_742); + x_757 = lean_box(0); +} +if (lean_is_scalar(x_757)) { + x_758 = lean_alloc_ctor(1, 2, 0); +} else { + x_758 = x_757; +} +lean_ctor_set(x_758, 0, x_755); +lean_ctor_set(x_758, 1, x_756); +return x_758; +} +} +else +{ +lean_object* x_759; lean_object* x_760; lean_object* x_761; lean_object* x_762; +lean_dec(x_3); +x_759 = lean_ctor_get(x_738, 0); +lean_inc(x_759); +x_760 = lean_ctor_get(x_738, 1); +lean_inc(x_760); +if (lean_is_exclusive(x_738)) { + lean_ctor_release(x_738, 0); + lean_ctor_release(x_738, 1); + x_761 = x_738; +} else { + lean_dec_ref(x_738); + x_761 = lean_box(0); +} +if (lean_is_scalar(x_761)) { + x_762 = lean_alloc_ctor(1, 2, 0); +} else { + x_762 = x_761; +} +lean_ctor_set(x_762, 0, x_759); +lean_ctor_set(x_762, 1, x_760); +return x_762; +} +} +else +{ +lean_object* x_763; lean_object* x_764; lean_object* x_765; lean_object* x_766; +lean_dec(x_3); +x_763 = lean_ctor_get(x_735, 0); +lean_inc(x_763); +x_764 = lean_ctor_get(x_735, 1); +lean_inc(x_764); +if (lean_is_exclusive(x_735)) { + lean_ctor_release(x_735, 0); + lean_ctor_release(x_735, 1); + x_765 = x_735; +} else { + lean_dec_ref(x_735); + x_765 = lean_box(0); +} +if (lean_is_scalar(x_765)) { + x_766 = lean_alloc_ctor(1, 2, 0); +} else { + x_766 = x_765; +} +lean_ctor_set(x_766, 0, x_763); +lean_ctor_set(x_766, 1, x_764); +return x_766; +} +} +else +{ +lean_object* x_767; +lean_dec(x_2); +x_767 = lean_box(0); +x_624 = x_767; +goto block_630; } } case 4: { -lean_object* x_769; lean_object* x_770; -lean_dec(x_69); -lean_dec(x_4); +lean_object* x_768; lean_object* x_769; +lean_dec(x_68); lean_dec(x_3); -x_769 = lean_ctor_get(x_632, 0); -lean_inc(x_769); -lean_dec(x_632); -x_770 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_770, 0, x_769); -lean_ctor_set(x_770, 1, x_624); -return x_770; +lean_dec(x_2); +x_768 = lean_ctor_get(x_631, 0); +lean_inc(x_768); +lean_dec(x_631); +x_769 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_769, 0, x_768); +lean_ctor_set(x_769, 1, x_623); +return x_769; } case 5: { -lean_dec(x_632); -if (lean_obj_tag(x_3) == 2) +lean_dec(x_631); +if (lean_obj_tag(x_2) == 2) { -lean_object* x_771; lean_object* x_772; -lean_dec(x_69); -x_771 = lean_ctor_get(x_3, 1); -lean_inc(x_771); -lean_dec(x_3); -lean_inc(x_4); -x_772 = l_Lean_Elab_Term_inferType(x_1, x_771, x_4, x_624); -if (lean_obj_tag(x_772) == 0) +lean_object* x_770; lean_object* x_771; +lean_dec(x_68); +x_770 = lean_ctor_get(x_2, 1); +lean_inc(x_770); +lean_dec(x_2); +lean_inc(x_3); +x_771 = l_Lean_Elab_Term_inferType(x_770, x_3, x_623); +if (lean_obj_tag(x_771) == 0) { -lean_object* x_773; lean_object* x_774; lean_object* x_775; -x_773 = lean_ctor_get(x_772, 0); +lean_object* x_772; lean_object* x_773; lean_object* x_774; +x_772 = lean_ctor_get(x_771, 0); +lean_inc(x_772); +x_773 = lean_ctor_get(x_771, 1); lean_inc(x_773); -x_774 = lean_ctor_get(x_772, 1); -lean_inc(x_774); -lean_dec(x_772); -lean_inc(x_4); -x_775 = l_Lean_Elab_Term_whnf(x_1, x_773, x_4, x_774); -if (lean_obj_tag(x_775) == 0) +lean_dec(x_771); +lean_inc(x_3); +x_774 = l_Lean_Elab_Term_whnf(x_772, x_3, x_773); +if (lean_obj_tag(x_774) == 0) { -lean_object* x_776; lean_object* x_777; lean_object* x_778; lean_object* x_779; -x_776 = lean_ctor_get(x_775, 0); +lean_object* x_775; lean_object* x_776; lean_object* x_777; lean_object* x_778; +x_775 = lean_ctor_get(x_774, 0); +lean_inc(x_775); +x_776 = lean_ctor_get(x_774, 1); lean_inc(x_776); -x_777 = lean_ctor_get(x_775, 1); -lean_inc(x_777); +lean_dec(x_774); +x_777 = l_Lean_Expr_getAppFn___main(x_775); +x_778 = l_Lean_Elab_Term_tryPostponeIfMVar(x_775, x_3, x_776); +if (lean_obj_tag(x_778) == 0) +{ +lean_object* x_779; lean_object* x_780; lean_object* x_781; +x_779 = lean_ctor_get(x_778, 1); +lean_inc(x_779); +if (lean_is_exclusive(x_778)) { + lean_ctor_release(x_778, 0); + lean_ctor_release(x_778, 1); + x_780 = x_778; +} else { + lean_dec_ref(x_778); + x_780 = lean_box(0); +} +if (lean_obj_tag(x_777) == 4) +{ +lean_object* x_788; lean_object* x_789; lean_dec(x_775); -x_778 = l_Lean_Expr_getAppFn___main(x_776); -x_779 = l_Lean_Elab_Term_tryPostponeIfMVar(x_776, x_4, x_777); -if (lean_obj_tag(x_779) == 0) -{ -lean_object* x_780; lean_object* x_781; lean_object* x_782; -x_780 = lean_ctor_get(x_779, 1); -lean_inc(x_780); -if (lean_is_exclusive(x_779)) { - lean_ctor_release(x_779, 0); - lean_ctor_release(x_779, 1); - x_781 = x_779; -} else { - lean_dec_ref(x_779); - x_781 = lean_box(0); -} -if (lean_obj_tag(x_778) == 4) -{ -lean_object* x_789; lean_object* x_790; -lean_dec(x_776); -lean_dec(x_4); -x_789 = lean_ctor_get(x_778, 0); -lean_inc(x_789); -lean_dec(x_778); -if (lean_is_scalar(x_781)) { - x_790 = lean_alloc_ctor(0, 2, 0); -} else { - x_790 = x_781; -} -lean_ctor_set(x_790, 0, x_789); -lean_ctor_set(x_790, 1, x_780); -return x_790; -} -else -{ -lean_object* x_791; -lean_dec(x_781); -lean_dec(x_778); -x_791 = lean_box(0); -x_782 = x_791; -goto block_788; -} -block_788: -{ -lean_object* x_783; lean_object* x_784; lean_object* x_785; lean_object* x_786; lean_object* x_787; -lean_dec(x_782); -x_783 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_783, 0, x_776); -x_784 = l_Lean_indentExpr(x_783); -x_785 = l___private_Lean_Elab_StructInst_5__getStructName___closed__6; -x_786 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_786, 0, x_785); -lean_ctor_set(x_786, 1, x_784); -x_787 = l_Lean_Elab_Term_throwError___rarg(x_1, x_786, x_4, x_780); -return x_787; -} -} -else -{ -lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; -lean_dec(x_778); -lean_dec(x_776); -lean_dec(x_4); -x_792 = lean_ctor_get(x_779, 0); -lean_inc(x_792); -x_793 = lean_ctor_get(x_779, 1); -lean_inc(x_793); -if (lean_is_exclusive(x_779)) { - lean_ctor_release(x_779, 0); - lean_ctor_release(x_779, 1); - x_794 = x_779; -} else { - lean_dec_ref(x_779); - x_794 = lean_box(0); -} -if (lean_is_scalar(x_794)) { - x_795 = lean_alloc_ctor(1, 2, 0); -} else { - x_795 = x_794; -} -lean_ctor_set(x_795, 0, x_792); -lean_ctor_set(x_795, 1, x_793); -return x_795; -} -} -else -{ -lean_object* x_796; lean_object* x_797; lean_object* x_798; lean_object* x_799; -lean_dec(x_4); -x_796 = lean_ctor_get(x_775, 0); -lean_inc(x_796); -x_797 = lean_ctor_get(x_775, 1); -lean_inc(x_797); -if (lean_is_exclusive(x_775)) { - lean_ctor_release(x_775, 0); - lean_ctor_release(x_775, 1); - x_798 = x_775; -} else { - lean_dec_ref(x_775); - x_798 = lean_box(0); -} -if (lean_is_scalar(x_798)) { - x_799 = lean_alloc_ctor(1, 2, 0); -} else { - x_799 = x_798; -} -lean_ctor_set(x_799, 0, x_796); -lean_ctor_set(x_799, 1, x_797); -return x_799; -} -} -else -{ -lean_object* x_800; lean_object* x_801; lean_object* x_802; lean_object* x_803; -lean_dec(x_4); -x_800 = lean_ctor_get(x_772, 0); -lean_inc(x_800); -x_801 = lean_ctor_get(x_772, 1); -lean_inc(x_801); -if (lean_is_exclusive(x_772)) { - lean_ctor_release(x_772, 0); - lean_ctor_release(x_772, 1); - x_802 = x_772; -} else { - lean_dec_ref(x_772); - x_802 = lean_box(0); -} -if (lean_is_scalar(x_802)) { - x_803 = lean_alloc_ctor(1, 2, 0); -} else { - x_803 = x_802; -} -lean_ctor_set(x_803, 0, x_800); -lean_ctor_set(x_803, 1, x_801); -return x_803; -} -} -else -{ -lean_object* x_804; lean_dec(x_3); -x_804 = lean_box(0); -x_625 = x_804; -goto block_631; +x_788 = lean_ctor_get(x_777, 0); +lean_inc(x_788); +lean_dec(x_777); +if (lean_is_scalar(x_780)) { + x_789 = lean_alloc_ctor(0, 2, 0); +} else { + x_789 = x_780; +} +lean_ctor_set(x_789, 0, x_788); +lean_ctor_set(x_789, 1, x_779); +return x_789; +} +else +{ +lean_object* x_790; +lean_dec(x_780); +lean_dec(x_777); +x_790 = lean_box(0); +x_781 = x_790; +goto block_787; +} +block_787: +{ +lean_object* x_782; lean_object* x_783; lean_object* x_784; lean_object* x_785; lean_object* x_786; +lean_dec(x_781); +x_782 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_782, 0, x_775); +x_783 = l_Lean_indentExpr(x_782); +x_784 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6; +x_785 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_785, 0, x_784); +lean_ctor_set(x_785, 1, x_783); +x_786 = l_Lean_Elab_Term_throwError___rarg(x_785, x_3, x_779); +return x_786; +} +} +else +{ +lean_object* x_791; lean_object* x_792; lean_object* x_793; lean_object* x_794; +lean_dec(x_777); +lean_dec(x_775); +lean_dec(x_3); +x_791 = lean_ctor_get(x_778, 0); +lean_inc(x_791); +x_792 = lean_ctor_get(x_778, 1); +lean_inc(x_792); +if (lean_is_exclusive(x_778)) { + lean_ctor_release(x_778, 0); + lean_ctor_release(x_778, 1); + x_793 = x_778; +} else { + lean_dec_ref(x_778); + x_793 = lean_box(0); +} +if (lean_is_scalar(x_793)) { + x_794 = lean_alloc_ctor(1, 2, 0); +} else { + x_794 = x_793; +} +lean_ctor_set(x_794, 0, x_791); +lean_ctor_set(x_794, 1, x_792); +return x_794; +} +} +else +{ +lean_object* x_795; lean_object* x_796; lean_object* x_797; lean_object* x_798; +lean_dec(x_3); +x_795 = lean_ctor_get(x_774, 0); +lean_inc(x_795); +x_796 = lean_ctor_get(x_774, 1); +lean_inc(x_796); +if (lean_is_exclusive(x_774)) { + lean_ctor_release(x_774, 0); + lean_ctor_release(x_774, 1); + x_797 = x_774; +} else { + lean_dec_ref(x_774); + x_797 = lean_box(0); +} +if (lean_is_scalar(x_797)) { + x_798 = lean_alloc_ctor(1, 2, 0); +} else { + x_798 = x_797; +} +lean_ctor_set(x_798, 0, x_795); +lean_ctor_set(x_798, 1, x_796); +return x_798; +} +} +else +{ +lean_object* x_799; lean_object* x_800; lean_object* x_801; lean_object* x_802; +lean_dec(x_3); +x_799 = lean_ctor_get(x_771, 0); +lean_inc(x_799); +x_800 = lean_ctor_get(x_771, 1); +lean_inc(x_800); +if (lean_is_exclusive(x_771)) { + lean_ctor_release(x_771, 0); + lean_ctor_release(x_771, 1); + x_801 = x_771; +} else { + lean_dec_ref(x_771); + x_801 = lean_box(0); +} +if (lean_is_scalar(x_801)) { + x_802 = lean_alloc_ctor(1, 2, 0); +} else { + x_802 = x_801; +} +lean_ctor_set(x_802, 0, x_799); +lean_ctor_set(x_802, 1, x_800); +return x_802; +} +} +else +{ +lean_object* x_803; +lean_dec(x_2); +x_803 = lean_box(0); +x_624 = x_803; +goto block_630; } } case 6: { -lean_dec(x_632); -if (lean_obj_tag(x_3) == 2) +lean_dec(x_631); +if (lean_obj_tag(x_2) == 2) { -lean_object* x_805; lean_object* x_806; -lean_dec(x_69); -x_805 = lean_ctor_get(x_3, 1); -lean_inc(x_805); -lean_dec(x_3); -lean_inc(x_4); -x_806 = l_Lean_Elab_Term_inferType(x_1, x_805, x_4, x_624); -if (lean_obj_tag(x_806) == 0) +lean_object* x_804; lean_object* x_805; +lean_dec(x_68); +x_804 = lean_ctor_get(x_2, 1); +lean_inc(x_804); +lean_dec(x_2); +lean_inc(x_3); +x_805 = l_Lean_Elab_Term_inferType(x_804, x_3, x_623); +if (lean_obj_tag(x_805) == 0) { -lean_object* x_807; lean_object* x_808; lean_object* x_809; -x_807 = lean_ctor_get(x_806, 0); +lean_object* x_806; lean_object* x_807; lean_object* x_808; +x_806 = lean_ctor_get(x_805, 0); +lean_inc(x_806); +x_807 = lean_ctor_get(x_805, 1); lean_inc(x_807); -x_808 = lean_ctor_get(x_806, 1); -lean_inc(x_808); -lean_dec(x_806); -lean_inc(x_4); -x_809 = l_Lean_Elab_Term_whnf(x_1, x_807, x_4, x_808); -if (lean_obj_tag(x_809) == 0) +lean_dec(x_805); +lean_inc(x_3); +x_808 = l_Lean_Elab_Term_whnf(x_806, x_3, x_807); +if (lean_obj_tag(x_808) == 0) { -lean_object* x_810; lean_object* x_811; lean_object* x_812; lean_object* x_813; -x_810 = lean_ctor_get(x_809, 0); +lean_object* x_809; lean_object* x_810; lean_object* x_811; lean_object* x_812; +x_809 = lean_ctor_get(x_808, 0); +lean_inc(x_809); +x_810 = lean_ctor_get(x_808, 1); lean_inc(x_810); -x_811 = lean_ctor_get(x_809, 1); -lean_inc(x_811); +lean_dec(x_808); +x_811 = l_Lean_Expr_getAppFn___main(x_809); +x_812 = l_Lean_Elab_Term_tryPostponeIfMVar(x_809, x_3, x_810); +if (lean_obj_tag(x_812) == 0) +{ +lean_object* x_813; lean_object* x_814; lean_object* x_815; +x_813 = lean_ctor_get(x_812, 1); +lean_inc(x_813); +if (lean_is_exclusive(x_812)) { + lean_ctor_release(x_812, 0); + lean_ctor_release(x_812, 1); + x_814 = x_812; +} else { + lean_dec_ref(x_812); + x_814 = lean_box(0); +} +if (lean_obj_tag(x_811) == 4) +{ +lean_object* x_822; lean_object* x_823; lean_dec(x_809); -x_812 = l_Lean_Expr_getAppFn___main(x_810); -x_813 = l_Lean_Elab_Term_tryPostponeIfMVar(x_810, x_4, x_811); -if (lean_obj_tag(x_813) == 0) -{ -lean_object* x_814; lean_object* x_815; lean_object* x_816; -x_814 = lean_ctor_get(x_813, 1); -lean_inc(x_814); -if (lean_is_exclusive(x_813)) { - lean_ctor_release(x_813, 0); - lean_ctor_release(x_813, 1); - x_815 = x_813; -} else { - lean_dec_ref(x_813); - x_815 = lean_box(0); -} -if (lean_obj_tag(x_812) == 4) -{ -lean_object* x_823; lean_object* x_824; -lean_dec(x_810); -lean_dec(x_4); -x_823 = lean_ctor_get(x_812, 0); -lean_inc(x_823); -lean_dec(x_812); -if (lean_is_scalar(x_815)) { - x_824 = lean_alloc_ctor(0, 2, 0); -} else { - x_824 = x_815; -} -lean_ctor_set(x_824, 0, x_823); -lean_ctor_set(x_824, 1, x_814); -return x_824; -} -else -{ -lean_object* x_825; -lean_dec(x_815); -lean_dec(x_812); -x_825 = lean_box(0); -x_816 = x_825; -goto block_822; -} -block_822: -{ -lean_object* x_817; lean_object* x_818; lean_object* x_819; lean_object* x_820; lean_object* x_821; -lean_dec(x_816); -x_817 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_817, 0, x_810); -x_818 = l_Lean_indentExpr(x_817); -x_819 = l___private_Lean_Elab_StructInst_5__getStructName___closed__6; -x_820 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_820, 0, x_819); -lean_ctor_set(x_820, 1, x_818); -x_821 = l_Lean_Elab_Term_throwError___rarg(x_1, x_820, x_4, x_814); -return x_821; -} -} -else -{ -lean_object* x_826; lean_object* x_827; lean_object* x_828; lean_object* x_829; -lean_dec(x_812); -lean_dec(x_810); -lean_dec(x_4); -x_826 = lean_ctor_get(x_813, 0); -lean_inc(x_826); -x_827 = lean_ctor_get(x_813, 1); -lean_inc(x_827); -if (lean_is_exclusive(x_813)) { - lean_ctor_release(x_813, 0); - lean_ctor_release(x_813, 1); - x_828 = x_813; -} else { - lean_dec_ref(x_813); - x_828 = lean_box(0); -} -if (lean_is_scalar(x_828)) { - x_829 = lean_alloc_ctor(1, 2, 0); -} else { - x_829 = x_828; -} -lean_ctor_set(x_829, 0, x_826); -lean_ctor_set(x_829, 1, x_827); -return x_829; -} -} -else -{ -lean_object* x_830; lean_object* x_831; lean_object* x_832; lean_object* x_833; -lean_dec(x_4); -x_830 = lean_ctor_get(x_809, 0); -lean_inc(x_830); -x_831 = lean_ctor_get(x_809, 1); -lean_inc(x_831); -if (lean_is_exclusive(x_809)) { - lean_ctor_release(x_809, 0); - lean_ctor_release(x_809, 1); - x_832 = x_809; -} else { - lean_dec_ref(x_809); - x_832 = lean_box(0); -} -if (lean_is_scalar(x_832)) { - x_833 = lean_alloc_ctor(1, 2, 0); -} else { - x_833 = x_832; -} -lean_ctor_set(x_833, 0, x_830); -lean_ctor_set(x_833, 1, x_831); -return x_833; -} -} -else -{ -lean_object* x_834; lean_object* x_835; lean_object* x_836; lean_object* x_837; -lean_dec(x_4); -x_834 = lean_ctor_get(x_806, 0); -lean_inc(x_834); -x_835 = lean_ctor_get(x_806, 1); -lean_inc(x_835); -if (lean_is_exclusive(x_806)) { - lean_ctor_release(x_806, 0); - lean_ctor_release(x_806, 1); - x_836 = x_806; -} else { - lean_dec_ref(x_806); - x_836 = lean_box(0); -} -if (lean_is_scalar(x_836)) { - x_837 = lean_alloc_ctor(1, 2, 0); -} else { - x_837 = x_836; -} -lean_ctor_set(x_837, 0, x_834); -lean_ctor_set(x_837, 1, x_835); -return x_837; -} -} -else -{ -lean_object* x_838; lean_dec(x_3); -x_838 = lean_box(0); -x_625 = x_838; -goto block_631; +x_822 = lean_ctor_get(x_811, 0); +lean_inc(x_822); +lean_dec(x_811); +if (lean_is_scalar(x_814)) { + x_823 = lean_alloc_ctor(0, 2, 0); +} else { + x_823 = x_814; +} +lean_ctor_set(x_823, 0, x_822); +lean_ctor_set(x_823, 1, x_813); +return x_823; +} +else +{ +lean_object* x_824; +lean_dec(x_814); +lean_dec(x_811); +x_824 = lean_box(0); +x_815 = x_824; +goto block_821; +} +block_821: +{ +lean_object* x_816; lean_object* x_817; lean_object* x_818; lean_object* x_819; lean_object* x_820; +lean_dec(x_815); +x_816 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_816, 0, x_809); +x_817 = l_Lean_indentExpr(x_816); +x_818 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6; +x_819 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_819, 0, x_818); +lean_ctor_set(x_819, 1, x_817); +x_820 = l_Lean_Elab_Term_throwError___rarg(x_819, x_3, x_813); +return x_820; +} +} +else +{ +lean_object* x_825; lean_object* x_826; lean_object* x_827; lean_object* x_828; +lean_dec(x_811); +lean_dec(x_809); +lean_dec(x_3); +x_825 = lean_ctor_get(x_812, 0); +lean_inc(x_825); +x_826 = lean_ctor_get(x_812, 1); +lean_inc(x_826); +if (lean_is_exclusive(x_812)) { + lean_ctor_release(x_812, 0); + lean_ctor_release(x_812, 1); + x_827 = x_812; +} else { + lean_dec_ref(x_812); + x_827 = lean_box(0); +} +if (lean_is_scalar(x_827)) { + x_828 = lean_alloc_ctor(1, 2, 0); +} else { + x_828 = x_827; +} +lean_ctor_set(x_828, 0, x_825); +lean_ctor_set(x_828, 1, x_826); +return x_828; +} +} +else +{ +lean_object* x_829; lean_object* x_830; lean_object* x_831; lean_object* x_832; +lean_dec(x_3); +x_829 = lean_ctor_get(x_808, 0); +lean_inc(x_829); +x_830 = lean_ctor_get(x_808, 1); +lean_inc(x_830); +if (lean_is_exclusive(x_808)) { + lean_ctor_release(x_808, 0); + lean_ctor_release(x_808, 1); + x_831 = x_808; +} else { + lean_dec_ref(x_808); + x_831 = lean_box(0); +} +if (lean_is_scalar(x_831)) { + x_832 = lean_alloc_ctor(1, 2, 0); +} else { + x_832 = x_831; +} +lean_ctor_set(x_832, 0, x_829); +lean_ctor_set(x_832, 1, x_830); +return x_832; +} +} +else +{ +lean_object* x_833; lean_object* x_834; lean_object* x_835; lean_object* x_836; +lean_dec(x_3); +x_833 = lean_ctor_get(x_805, 0); +lean_inc(x_833); +x_834 = lean_ctor_get(x_805, 1); +lean_inc(x_834); +if (lean_is_exclusive(x_805)) { + lean_ctor_release(x_805, 0); + lean_ctor_release(x_805, 1); + x_835 = x_805; +} else { + lean_dec_ref(x_805); + x_835 = lean_box(0); +} +if (lean_is_scalar(x_835)) { + x_836 = lean_alloc_ctor(1, 2, 0); +} else { + x_836 = x_835; +} +lean_ctor_set(x_836, 0, x_833); +lean_ctor_set(x_836, 1, x_834); +return x_836; +} +} +else +{ +lean_object* x_837; +lean_dec(x_2); +x_837 = lean_box(0); +x_624 = x_837; +goto block_630; } } case 7: { -lean_dec(x_632); -if (lean_obj_tag(x_3) == 2) +lean_dec(x_631); +if (lean_obj_tag(x_2) == 2) { -lean_object* x_839; lean_object* x_840; -lean_dec(x_69); -x_839 = lean_ctor_get(x_3, 1); -lean_inc(x_839); -lean_dec(x_3); -lean_inc(x_4); -x_840 = l_Lean_Elab_Term_inferType(x_1, x_839, x_4, x_624); -if (lean_obj_tag(x_840) == 0) +lean_object* x_838; lean_object* x_839; +lean_dec(x_68); +x_838 = lean_ctor_get(x_2, 1); +lean_inc(x_838); +lean_dec(x_2); +lean_inc(x_3); +x_839 = l_Lean_Elab_Term_inferType(x_838, x_3, x_623); +if (lean_obj_tag(x_839) == 0) { -lean_object* x_841; lean_object* x_842; lean_object* x_843; -x_841 = lean_ctor_get(x_840, 0); +lean_object* x_840; lean_object* x_841; lean_object* x_842; +x_840 = lean_ctor_get(x_839, 0); +lean_inc(x_840); +x_841 = lean_ctor_get(x_839, 1); lean_inc(x_841); -x_842 = lean_ctor_get(x_840, 1); -lean_inc(x_842); -lean_dec(x_840); -lean_inc(x_4); -x_843 = l_Lean_Elab_Term_whnf(x_1, x_841, x_4, x_842); -if (lean_obj_tag(x_843) == 0) +lean_dec(x_839); +lean_inc(x_3); +x_842 = l_Lean_Elab_Term_whnf(x_840, x_3, x_841); +if (lean_obj_tag(x_842) == 0) { -lean_object* x_844; lean_object* x_845; lean_object* x_846; lean_object* x_847; -x_844 = lean_ctor_get(x_843, 0); +lean_object* x_843; lean_object* x_844; lean_object* x_845; lean_object* x_846; +x_843 = lean_ctor_get(x_842, 0); +lean_inc(x_843); +x_844 = lean_ctor_get(x_842, 1); lean_inc(x_844); -x_845 = lean_ctor_get(x_843, 1); -lean_inc(x_845); +lean_dec(x_842); +x_845 = l_Lean_Expr_getAppFn___main(x_843); +x_846 = l_Lean_Elab_Term_tryPostponeIfMVar(x_843, x_3, x_844); +if (lean_obj_tag(x_846) == 0) +{ +lean_object* x_847; lean_object* x_848; lean_object* x_849; +x_847 = lean_ctor_get(x_846, 1); +lean_inc(x_847); +if (lean_is_exclusive(x_846)) { + lean_ctor_release(x_846, 0); + lean_ctor_release(x_846, 1); + x_848 = x_846; +} else { + lean_dec_ref(x_846); + x_848 = lean_box(0); +} +if (lean_obj_tag(x_845) == 4) +{ +lean_object* x_856; lean_object* x_857; lean_dec(x_843); -x_846 = l_Lean_Expr_getAppFn___main(x_844); -x_847 = l_Lean_Elab_Term_tryPostponeIfMVar(x_844, x_4, x_845); -if (lean_obj_tag(x_847) == 0) -{ -lean_object* x_848; lean_object* x_849; lean_object* x_850; -x_848 = lean_ctor_get(x_847, 1); -lean_inc(x_848); -if (lean_is_exclusive(x_847)) { - lean_ctor_release(x_847, 0); - lean_ctor_release(x_847, 1); - x_849 = x_847; -} else { - lean_dec_ref(x_847); - x_849 = lean_box(0); -} -if (lean_obj_tag(x_846) == 4) -{ -lean_object* x_857; lean_object* x_858; -lean_dec(x_844); -lean_dec(x_4); -x_857 = lean_ctor_get(x_846, 0); -lean_inc(x_857); -lean_dec(x_846); -if (lean_is_scalar(x_849)) { - x_858 = lean_alloc_ctor(0, 2, 0); -} else { - x_858 = x_849; -} -lean_ctor_set(x_858, 0, x_857); -lean_ctor_set(x_858, 1, x_848); -return x_858; -} -else -{ -lean_object* x_859; -lean_dec(x_849); -lean_dec(x_846); -x_859 = lean_box(0); -x_850 = x_859; -goto block_856; -} -block_856: -{ -lean_object* x_851; lean_object* x_852; lean_object* x_853; lean_object* x_854; lean_object* x_855; -lean_dec(x_850); -x_851 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_851, 0, x_844); -x_852 = l_Lean_indentExpr(x_851); -x_853 = l___private_Lean_Elab_StructInst_5__getStructName___closed__6; -x_854 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_854, 0, x_853); -lean_ctor_set(x_854, 1, x_852); -x_855 = l_Lean_Elab_Term_throwError___rarg(x_1, x_854, x_4, x_848); -return x_855; -} -} -else -{ -lean_object* x_860; lean_object* x_861; lean_object* x_862; lean_object* x_863; -lean_dec(x_846); -lean_dec(x_844); -lean_dec(x_4); -x_860 = lean_ctor_get(x_847, 0); -lean_inc(x_860); -x_861 = lean_ctor_get(x_847, 1); -lean_inc(x_861); -if (lean_is_exclusive(x_847)) { - lean_ctor_release(x_847, 0); - lean_ctor_release(x_847, 1); - x_862 = x_847; -} else { - lean_dec_ref(x_847); - x_862 = lean_box(0); -} -if (lean_is_scalar(x_862)) { - x_863 = lean_alloc_ctor(1, 2, 0); -} else { - x_863 = x_862; -} -lean_ctor_set(x_863, 0, x_860); -lean_ctor_set(x_863, 1, x_861); -return x_863; -} -} -else -{ -lean_object* x_864; lean_object* x_865; lean_object* x_866; lean_object* x_867; -lean_dec(x_4); -x_864 = lean_ctor_get(x_843, 0); -lean_inc(x_864); -x_865 = lean_ctor_get(x_843, 1); -lean_inc(x_865); -if (lean_is_exclusive(x_843)) { - lean_ctor_release(x_843, 0); - lean_ctor_release(x_843, 1); - x_866 = x_843; -} else { - lean_dec_ref(x_843); - x_866 = lean_box(0); -} -if (lean_is_scalar(x_866)) { - x_867 = lean_alloc_ctor(1, 2, 0); -} else { - x_867 = x_866; -} -lean_ctor_set(x_867, 0, x_864); -lean_ctor_set(x_867, 1, x_865); -return x_867; -} -} -else -{ -lean_object* x_868; lean_object* x_869; lean_object* x_870; lean_object* x_871; -lean_dec(x_4); -x_868 = lean_ctor_get(x_840, 0); -lean_inc(x_868); -x_869 = lean_ctor_get(x_840, 1); -lean_inc(x_869); -if (lean_is_exclusive(x_840)) { - lean_ctor_release(x_840, 0); - lean_ctor_release(x_840, 1); - x_870 = x_840; -} else { - lean_dec_ref(x_840); - x_870 = lean_box(0); -} -if (lean_is_scalar(x_870)) { - x_871 = lean_alloc_ctor(1, 2, 0); -} else { - x_871 = x_870; -} -lean_ctor_set(x_871, 0, x_868); -lean_ctor_set(x_871, 1, x_869); -return x_871; -} -} -else -{ -lean_object* x_872; lean_dec(x_3); -x_872 = lean_box(0); -x_625 = x_872; -goto block_631; +x_856 = lean_ctor_get(x_845, 0); +lean_inc(x_856); +lean_dec(x_845); +if (lean_is_scalar(x_848)) { + x_857 = lean_alloc_ctor(0, 2, 0); +} else { + x_857 = x_848; +} +lean_ctor_set(x_857, 0, x_856); +lean_ctor_set(x_857, 1, x_847); +return x_857; +} +else +{ +lean_object* x_858; +lean_dec(x_848); +lean_dec(x_845); +x_858 = lean_box(0); +x_849 = x_858; +goto block_855; +} +block_855: +{ +lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; lean_object* x_854; +lean_dec(x_849); +x_850 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_850, 0, x_843); +x_851 = l_Lean_indentExpr(x_850); +x_852 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6; +x_853 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_853, 0, x_852); +lean_ctor_set(x_853, 1, x_851); +x_854 = l_Lean_Elab_Term_throwError___rarg(x_853, x_3, x_847); +return x_854; +} +} +else +{ +lean_object* x_859; lean_object* x_860; lean_object* x_861; lean_object* x_862; +lean_dec(x_845); +lean_dec(x_843); +lean_dec(x_3); +x_859 = lean_ctor_get(x_846, 0); +lean_inc(x_859); +x_860 = lean_ctor_get(x_846, 1); +lean_inc(x_860); +if (lean_is_exclusive(x_846)) { + lean_ctor_release(x_846, 0); + lean_ctor_release(x_846, 1); + x_861 = x_846; +} else { + lean_dec_ref(x_846); + x_861 = lean_box(0); +} +if (lean_is_scalar(x_861)) { + x_862 = lean_alloc_ctor(1, 2, 0); +} else { + x_862 = x_861; +} +lean_ctor_set(x_862, 0, x_859); +lean_ctor_set(x_862, 1, x_860); +return x_862; +} +} +else +{ +lean_object* x_863; lean_object* x_864; lean_object* x_865; lean_object* x_866; +lean_dec(x_3); +x_863 = lean_ctor_get(x_842, 0); +lean_inc(x_863); +x_864 = lean_ctor_get(x_842, 1); +lean_inc(x_864); +if (lean_is_exclusive(x_842)) { + lean_ctor_release(x_842, 0); + lean_ctor_release(x_842, 1); + x_865 = x_842; +} else { + lean_dec_ref(x_842); + x_865 = lean_box(0); +} +if (lean_is_scalar(x_865)) { + x_866 = lean_alloc_ctor(1, 2, 0); +} else { + x_866 = x_865; +} +lean_ctor_set(x_866, 0, x_863); +lean_ctor_set(x_866, 1, x_864); +return x_866; +} +} +else +{ +lean_object* x_867; lean_object* x_868; lean_object* x_869; lean_object* x_870; +lean_dec(x_3); +x_867 = lean_ctor_get(x_839, 0); +lean_inc(x_867); +x_868 = lean_ctor_get(x_839, 1); +lean_inc(x_868); +if (lean_is_exclusive(x_839)) { + lean_ctor_release(x_839, 0); + lean_ctor_release(x_839, 1); + x_869 = x_839; +} else { + lean_dec_ref(x_839); + x_869 = lean_box(0); +} +if (lean_is_scalar(x_869)) { + x_870 = lean_alloc_ctor(1, 2, 0); +} else { + x_870 = x_869; +} +lean_ctor_set(x_870, 0, x_867); +lean_ctor_set(x_870, 1, x_868); +return x_870; +} +} +else +{ +lean_object* x_871; +lean_dec(x_2); +x_871 = lean_box(0); +x_624 = x_871; +goto block_630; } } case 8: { -lean_dec(x_632); -if (lean_obj_tag(x_3) == 2) +lean_dec(x_631); +if (lean_obj_tag(x_2) == 2) { -lean_object* x_873; lean_object* x_874; -lean_dec(x_69); -x_873 = lean_ctor_get(x_3, 1); -lean_inc(x_873); -lean_dec(x_3); -lean_inc(x_4); -x_874 = l_Lean_Elab_Term_inferType(x_1, x_873, x_4, x_624); -if (lean_obj_tag(x_874) == 0) +lean_object* x_872; lean_object* x_873; +lean_dec(x_68); +x_872 = lean_ctor_get(x_2, 1); +lean_inc(x_872); +lean_dec(x_2); +lean_inc(x_3); +x_873 = l_Lean_Elab_Term_inferType(x_872, x_3, x_623); +if (lean_obj_tag(x_873) == 0) { -lean_object* x_875; lean_object* x_876; lean_object* x_877; -x_875 = lean_ctor_get(x_874, 0); +lean_object* x_874; lean_object* x_875; lean_object* x_876; +x_874 = lean_ctor_get(x_873, 0); +lean_inc(x_874); +x_875 = lean_ctor_get(x_873, 1); lean_inc(x_875); -x_876 = lean_ctor_get(x_874, 1); -lean_inc(x_876); -lean_dec(x_874); -lean_inc(x_4); -x_877 = l_Lean_Elab_Term_whnf(x_1, x_875, x_4, x_876); -if (lean_obj_tag(x_877) == 0) +lean_dec(x_873); +lean_inc(x_3); +x_876 = l_Lean_Elab_Term_whnf(x_874, x_3, x_875); +if (lean_obj_tag(x_876) == 0) { -lean_object* x_878; lean_object* x_879; lean_object* x_880; lean_object* x_881; -x_878 = lean_ctor_get(x_877, 0); +lean_object* x_877; lean_object* x_878; lean_object* x_879; lean_object* x_880; +x_877 = lean_ctor_get(x_876, 0); +lean_inc(x_877); +x_878 = lean_ctor_get(x_876, 1); lean_inc(x_878); -x_879 = lean_ctor_get(x_877, 1); -lean_inc(x_879); +lean_dec(x_876); +x_879 = l_Lean_Expr_getAppFn___main(x_877); +x_880 = l_Lean_Elab_Term_tryPostponeIfMVar(x_877, x_3, x_878); +if (lean_obj_tag(x_880) == 0) +{ +lean_object* x_881; lean_object* x_882; lean_object* x_883; +x_881 = lean_ctor_get(x_880, 1); +lean_inc(x_881); +if (lean_is_exclusive(x_880)) { + lean_ctor_release(x_880, 0); + lean_ctor_release(x_880, 1); + x_882 = x_880; +} else { + lean_dec_ref(x_880); + x_882 = lean_box(0); +} +if (lean_obj_tag(x_879) == 4) +{ +lean_object* x_890; lean_object* x_891; lean_dec(x_877); -x_880 = l_Lean_Expr_getAppFn___main(x_878); -x_881 = l_Lean_Elab_Term_tryPostponeIfMVar(x_878, x_4, x_879); -if (lean_obj_tag(x_881) == 0) -{ -lean_object* x_882; lean_object* x_883; lean_object* x_884; -x_882 = lean_ctor_get(x_881, 1); -lean_inc(x_882); -if (lean_is_exclusive(x_881)) { - lean_ctor_release(x_881, 0); - lean_ctor_release(x_881, 1); - x_883 = x_881; -} else { - lean_dec_ref(x_881); - x_883 = lean_box(0); -} -if (lean_obj_tag(x_880) == 4) -{ -lean_object* x_891; lean_object* x_892; -lean_dec(x_878); -lean_dec(x_4); -x_891 = lean_ctor_get(x_880, 0); -lean_inc(x_891); -lean_dec(x_880); -if (lean_is_scalar(x_883)) { - x_892 = lean_alloc_ctor(0, 2, 0); -} else { - x_892 = x_883; -} -lean_ctor_set(x_892, 0, x_891); -lean_ctor_set(x_892, 1, x_882); -return x_892; -} -else -{ -lean_object* x_893; -lean_dec(x_883); -lean_dec(x_880); -x_893 = lean_box(0); -x_884 = x_893; -goto block_890; -} -block_890: -{ -lean_object* x_885; lean_object* x_886; lean_object* x_887; lean_object* x_888; lean_object* x_889; -lean_dec(x_884); -x_885 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_885, 0, x_878); -x_886 = l_Lean_indentExpr(x_885); -x_887 = l___private_Lean_Elab_StructInst_5__getStructName___closed__6; -x_888 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_888, 0, x_887); -lean_ctor_set(x_888, 1, x_886); -x_889 = l_Lean_Elab_Term_throwError___rarg(x_1, x_888, x_4, x_882); -return x_889; -} -} -else -{ -lean_object* x_894; lean_object* x_895; lean_object* x_896; lean_object* x_897; -lean_dec(x_880); -lean_dec(x_878); -lean_dec(x_4); -x_894 = lean_ctor_get(x_881, 0); -lean_inc(x_894); -x_895 = lean_ctor_get(x_881, 1); -lean_inc(x_895); -if (lean_is_exclusive(x_881)) { - lean_ctor_release(x_881, 0); - lean_ctor_release(x_881, 1); - x_896 = x_881; -} else { - lean_dec_ref(x_881); - x_896 = lean_box(0); -} -if (lean_is_scalar(x_896)) { - x_897 = lean_alloc_ctor(1, 2, 0); -} else { - x_897 = x_896; -} -lean_ctor_set(x_897, 0, x_894); -lean_ctor_set(x_897, 1, x_895); -return x_897; -} -} -else -{ -lean_object* x_898; lean_object* x_899; lean_object* x_900; lean_object* x_901; -lean_dec(x_4); -x_898 = lean_ctor_get(x_877, 0); -lean_inc(x_898); -x_899 = lean_ctor_get(x_877, 1); -lean_inc(x_899); -if (lean_is_exclusive(x_877)) { - lean_ctor_release(x_877, 0); - lean_ctor_release(x_877, 1); - x_900 = x_877; -} else { - lean_dec_ref(x_877); - x_900 = lean_box(0); -} -if (lean_is_scalar(x_900)) { - x_901 = lean_alloc_ctor(1, 2, 0); -} else { - x_901 = x_900; -} -lean_ctor_set(x_901, 0, x_898); -lean_ctor_set(x_901, 1, x_899); -return x_901; -} -} -else -{ -lean_object* x_902; lean_object* x_903; lean_object* x_904; lean_object* x_905; -lean_dec(x_4); -x_902 = lean_ctor_get(x_874, 0); -lean_inc(x_902); -x_903 = lean_ctor_get(x_874, 1); -lean_inc(x_903); -if (lean_is_exclusive(x_874)) { - lean_ctor_release(x_874, 0); - lean_ctor_release(x_874, 1); - x_904 = x_874; -} else { - lean_dec_ref(x_874); - x_904 = lean_box(0); -} -if (lean_is_scalar(x_904)) { - x_905 = lean_alloc_ctor(1, 2, 0); -} else { - x_905 = x_904; -} -lean_ctor_set(x_905, 0, x_902); -lean_ctor_set(x_905, 1, x_903); -return x_905; -} -} -else -{ -lean_object* x_906; lean_dec(x_3); -x_906 = lean_box(0); -x_625 = x_906; -goto block_631; +x_890 = lean_ctor_get(x_879, 0); +lean_inc(x_890); +lean_dec(x_879); +if (lean_is_scalar(x_882)) { + x_891 = lean_alloc_ctor(0, 2, 0); +} else { + x_891 = x_882; +} +lean_ctor_set(x_891, 0, x_890); +lean_ctor_set(x_891, 1, x_881); +return x_891; +} +else +{ +lean_object* x_892; +lean_dec(x_882); +lean_dec(x_879); +x_892 = lean_box(0); +x_883 = x_892; +goto block_889; +} +block_889: +{ +lean_object* x_884; lean_object* x_885; lean_object* x_886; lean_object* x_887; lean_object* x_888; +lean_dec(x_883); +x_884 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_884, 0, x_877); +x_885 = l_Lean_indentExpr(x_884); +x_886 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6; +x_887 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_887, 0, x_886); +lean_ctor_set(x_887, 1, x_885); +x_888 = l_Lean_Elab_Term_throwError___rarg(x_887, x_3, x_881); +return x_888; +} +} +else +{ +lean_object* x_893; lean_object* x_894; lean_object* x_895; lean_object* x_896; +lean_dec(x_879); +lean_dec(x_877); +lean_dec(x_3); +x_893 = lean_ctor_get(x_880, 0); +lean_inc(x_893); +x_894 = lean_ctor_get(x_880, 1); +lean_inc(x_894); +if (lean_is_exclusive(x_880)) { + lean_ctor_release(x_880, 0); + lean_ctor_release(x_880, 1); + x_895 = x_880; +} else { + lean_dec_ref(x_880); + x_895 = lean_box(0); +} +if (lean_is_scalar(x_895)) { + x_896 = lean_alloc_ctor(1, 2, 0); +} else { + x_896 = x_895; +} +lean_ctor_set(x_896, 0, x_893); +lean_ctor_set(x_896, 1, x_894); +return x_896; +} +} +else +{ +lean_object* x_897; lean_object* x_898; lean_object* x_899; lean_object* x_900; +lean_dec(x_3); +x_897 = lean_ctor_get(x_876, 0); +lean_inc(x_897); +x_898 = lean_ctor_get(x_876, 1); +lean_inc(x_898); +if (lean_is_exclusive(x_876)) { + lean_ctor_release(x_876, 0); + lean_ctor_release(x_876, 1); + x_899 = x_876; +} else { + lean_dec_ref(x_876); + x_899 = lean_box(0); +} +if (lean_is_scalar(x_899)) { + x_900 = lean_alloc_ctor(1, 2, 0); +} else { + x_900 = x_899; +} +lean_ctor_set(x_900, 0, x_897); +lean_ctor_set(x_900, 1, x_898); +return x_900; +} +} +else +{ +lean_object* x_901; lean_object* x_902; lean_object* x_903; lean_object* x_904; +lean_dec(x_3); +x_901 = lean_ctor_get(x_873, 0); +lean_inc(x_901); +x_902 = lean_ctor_get(x_873, 1); +lean_inc(x_902); +if (lean_is_exclusive(x_873)) { + lean_ctor_release(x_873, 0); + lean_ctor_release(x_873, 1); + x_903 = x_873; +} else { + lean_dec_ref(x_873); + x_903 = lean_box(0); +} +if (lean_is_scalar(x_903)) { + x_904 = lean_alloc_ctor(1, 2, 0); +} else { + x_904 = x_903; +} +lean_ctor_set(x_904, 0, x_901); +lean_ctor_set(x_904, 1, x_902); +return x_904; +} +} +else +{ +lean_object* x_905; +lean_dec(x_2); +x_905 = lean_box(0); +x_624 = x_905; +goto block_630; } } case 9: { -lean_dec(x_632); -if (lean_obj_tag(x_3) == 2) +lean_dec(x_631); +if (lean_obj_tag(x_2) == 2) { -lean_object* x_907; lean_object* x_908; -lean_dec(x_69); -x_907 = lean_ctor_get(x_3, 1); -lean_inc(x_907); -lean_dec(x_3); -lean_inc(x_4); -x_908 = l_Lean_Elab_Term_inferType(x_1, x_907, x_4, x_624); -if (lean_obj_tag(x_908) == 0) +lean_object* x_906; lean_object* x_907; +lean_dec(x_68); +x_906 = lean_ctor_get(x_2, 1); +lean_inc(x_906); +lean_dec(x_2); +lean_inc(x_3); +x_907 = l_Lean_Elab_Term_inferType(x_906, x_3, x_623); +if (lean_obj_tag(x_907) == 0) { -lean_object* x_909; lean_object* x_910; lean_object* x_911; -x_909 = lean_ctor_get(x_908, 0); +lean_object* x_908; lean_object* x_909; lean_object* x_910; +x_908 = lean_ctor_get(x_907, 0); +lean_inc(x_908); +x_909 = lean_ctor_get(x_907, 1); lean_inc(x_909); -x_910 = lean_ctor_get(x_908, 1); -lean_inc(x_910); -lean_dec(x_908); -lean_inc(x_4); -x_911 = l_Lean_Elab_Term_whnf(x_1, x_909, x_4, x_910); -if (lean_obj_tag(x_911) == 0) +lean_dec(x_907); +lean_inc(x_3); +x_910 = l_Lean_Elab_Term_whnf(x_908, x_3, x_909); +if (lean_obj_tag(x_910) == 0) { -lean_object* x_912; lean_object* x_913; lean_object* x_914; lean_object* x_915; -x_912 = lean_ctor_get(x_911, 0); +lean_object* x_911; lean_object* x_912; lean_object* x_913; lean_object* x_914; +x_911 = lean_ctor_get(x_910, 0); +lean_inc(x_911); +x_912 = lean_ctor_get(x_910, 1); lean_inc(x_912); -x_913 = lean_ctor_get(x_911, 1); -lean_inc(x_913); +lean_dec(x_910); +x_913 = l_Lean_Expr_getAppFn___main(x_911); +x_914 = l_Lean_Elab_Term_tryPostponeIfMVar(x_911, x_3, x_912); +if (lean_obj_tag(x_914) == 0) +{ +lean_object* x_915; lean_object* x_916; lean_object* x_917; +x_915 = lean_ctor_get(x_914, 1); +lean_inc(x_915); +if (lean_is_exclusive(x_914)) { + lean_ctor_release(x_914, 0); + lean_ctor_release(x_914, 1); + x_916 = x_914; +} else { + lean_dec_ref(x_914); + x_916 = lean_box(0); +} +if (lean_obj_tag(x_913) == 4) +{ +lean_object* x_924; lean_object* x_925; lean_dec(x_911); -x_914 = l_Lean_Expr_getAppFn___main(x_912); -x_915 = l_Lean_Elab_Term_tryPostponeIfMVar(x_912, x_4, x_913); -if (lean_obj_tag(x_915) == 0) -{ -lean_object* x_916; lean_object* x_917; lean_object* x_918; -x_916 = lean_ctor_get(x_915, 1); -lean_inc(x_916); -if (lean_is_exclusive(x_915)) { - lean_ctor_release(x_915, 0); - lean_ctor_release(x_915, 1); - x_917 = x_915; -} else { - lean_dec_ref(x_915); - x_917 = lean_box(0); -} -if (lean_obj_tag(x_914) == 4) -{ -lean_object* x_925; lean_object* x_926; -lean_dec(x_912); -lean_dec(x_4); -x_925 = lean_ctor_get(x_914, 0); -lean_inc(x_925); -lean_dec(x_914); -if (lean_is_scalar(x_917)) { - x_926 = lean_alloc_ctor(0, 2, 0); -} else { - x_926 = x_917; -} -lean_ctor_set(x_926, 0, x_925); -lean_ctor_set(x_926, 1, x_916); -return x_926; -} -else -{ -lean_object* x_927; -lean_dec(x_917); -lean_dec(x_914); -x_927 = lean_box(0); -x_918 = x_927; -goto block_924; -} -block_924: -{ -lean_object* x_919; lean_object* x_920; lean_object* x_921; lean_object* x_922; lean_object* x_923; -lean_dec(x_918); -x_919 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_919, 0, x_912); -x_920 = l_Lean_indentExpr(x_919); -x_921 = l___private_Lean_Elab_StructInst_5__getStructName___closed__6; -x_922 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_922, 0, x_921); -lean_ctor_set(x_922, 1, x_920); -x_923 = l_Lean_Elab_Term_throwError___rarg(x_1, x_922, x_4, x_916); -return x_923; -} -} -else -{ -lean_object* x_928; lean_object* x_929; lean_object* x_930; lean_object* x_931; -lean_dec(x_914); -lean_dec(x_912); -lean_dec(x_4); -x_928 = lean_ctor_get(x_915, 0); -lean_inc(x_928); -x_929 = lean_ctor_get(x_915, 1); -lean_inc(x_929); -if (lean_is_exclusive(x_915)) { - lean_ctor_release(x_915, 0); - lean_ctor_release(x_915, 1); - x_930 = x_915; -} else { - lean_dec_ref(x_915); - x_930 = lean_box(0); -} -if (lean_is_scalar(x_930)) { - x_931 = lean_alloc_ctor(1, 2, 0); -} else { - x_931 = x_930; -} -lean_ctor_set(x_931, 0, x_928); -lean_ctor_set(x_931, 1, x_929); -return x_931; -} -} -else -{ -lean_object* x_932; lean_object* x_933; lean_object* x_934; lean_object* x_935; -lean_dec(x_4); -x_932 = lean_ctor_get(x_911, 0); -lean_inc(x_932); -x_933 = lean_ctor_get(x_911, 1); -lean_inc(x_933); -if (lean_is_exclusive(x_911)) { - lean_ctor_release(x_911, 0); - lean_ctor_release(x_911, 1); - x_934 = x_911; -} else { - lean_dec_ref(x_911); - x_934 = lean_box(0); -} -if (lean_is_scalar(x_934)) { - x_935 = lean_alloc_ctor(1, 2, 0); -} else { - x_935 = x_934; -} -lean_ctor_set(x_935, 0, x_932); -lean_ctor_set(x_935, 1, x_933); -return x_935; -} -} -else -{ -lean_object* x_936; lean_object* x_937; lean_object* x_938; lean_object* x_939; -lean_dec(x_4); -x_936 = lean_ctor_get(x_908, 0); -lean_inc(x_936); -x_937 = lean_ctor_get(x_908, 1); -lean_inc(x_937); -if (lean_is_exclusive(x_908)) { - lean_ctor_release(x_908, 0); - lean_ctor_release(x_908, 1); - x_938 = x_908; -} else { - lean_dec_ref(x_908); - x_938 = lean_box(0); -} -if (lean_is_scalar(x_938)) { - x_939 = lean_alloc_ctor(1, 2, 0); -} else { - x_939 = x_938; -} -lean_ctor_set(x_939, 0, x_936); -lean_ctor_set(x_939, 1, x_937); -return x_939; -} -} -else -{ -lean_object* x_940; lean_dec(x_3); -x_940 = lean_box(0); -x_625 = x_940; -goto block_631; +x_924 = lean_ctor_get(x_913, 0); +lean_inc(x_924); +lean_dec(x_913); +if (lean_is_scalar(x_916)) { + x_925 = lean_alloc_ctor(0, 2, 0); +} else { + x_925 = x_916; +} +lean_ctor_set(x_925, 0, x_924); +lean_ctor_set(x_925, 1, x_915); +return x_925; +} +else +{ +lean_object* x_926; +lean_dec(x_916); +lean_dec(x_913); +x_926 = lean_box(0); +x_917 = x_926; +goto block_923; +} +block_923: +{ +lean_object* x_918; lean_object* x_919; lean_object* x_920; lean_object* x_921; lean_object* x_922; +lean_dec(x_917); +x_918 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_918, 0, x_911); +x_919 = l_Lean_indentExpr(x_918); +x_920 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6; +x_921 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_921, 0, x_920); +lean_ctor_set(x_921, 1, x_919); +x_922 = l_Lean_Elab_Term_throwError___rarg(x_921, x_3, x_915); +return x_922; +} +} +else +{ +lean_object* x_927; lean_object* x_928; lean_object* x_929; lean_object* x_930; +lean_dec(x_913); +lean_dec(x_911); +lean_dec(x_3); +x_927 = lean_ctor_get(x_914, 0); +lean_inc(x_927); +x_928 = lean_ctor_get(x_914, 1); +lean_inc(x_928); +if (lean_is_exclusive(x_914)) { + lean_ctor_release(x_914, 0); + lean_ctor_release(x_914, 1); + x_929 = x_914; +} else { + lean_dec_ref(x_914); + x_929 = lean_box(0); +} +if (lean_is_scalar(x_929)) { + x_930 = lean_alloc_ctor(1, 2, 0); +} else { + x_930 = x_929; +} +lean_ctor_set(x_930, 0, x_927); +lean_ctor_set(x_930, 1, x_928); +return x_930; +} +} +else +{ +lean_object* x_931; lean_object* x_932; lean_object* x_933; lean_object* x_934; +lean_dec(x_3); +x_931 = lean_ctor_get(x_910, 0); +lean_inc(x_931); +x_932 = lean_ctor_get(x_910, 1); +lean_inc(x_932); +if (lean_is_exclusive(x_910)) { + lean_ctor_release(x_910, 0); + lean_ctor_release(x_910, 1); + x_933 = x_910; +} else { + lean_dec_ref(x_910); + x_933 = lean_box(0); +} +if (lean_is_scalar(x_933)) { + x_934 = lean_alloc_ctor(1, 2, 0); +} else { + x_934 = x_933; +} +lean_ctor_set(x_934, 0, x_931); +lean_ctor_set(x_934, 1, x_932); +return x_934; +} +} +else +{ +lean_object* x_935; lean_object* x_936; lean_object* x_937; lean_object* x_938; +lean_dec(x_3); +x_935 = lean_ctor_get(x_907, 0); +lean_inc(x_935); +x_936 = lean_ctor_get(x_907, 1); +lean_inc(x_936); +if (lean_is_exclusive(x_907)) { + lean_ctor_release(x_907, 0); + lean_ctor_release(x_907, 1); + x_937 = x_907; +} else { + lean_dec_ref(x_907); + x_937 = lean_box(0); +} +if (lean_is_scalar(x_937)) { + x_938 = lean_alloc_ctor(1, 2, 0); +} else { + x_938 = x_937; +} +lean_ctor_set(x_938, 0, x_935); +lean_ctor_set(x_938, 1, x_936); +return x_938; +} +} +else +{ +lean_object* x_939; +lean_dec(x_2); +x_939 = lean_box(0); +x_624 = x_939; +goto block_630; } } case 10: { -lean_dec(x_632); -if (lean_obj_tag(x_3) == 2) +lean_dec(x_631); +if (lean_obj_tag(x_2) == 2) { -lean_object* x_941; lean_object* x_942; -lean_dec(x_69); -x_941 = lean_ctor_get(x_3, 1); -lean_inc(x_941); -lean_dec(x_3); -lean_inc(x_4); -x_942 = l_Lean_Elab_Term_inferType(x_1, x_941, x_4, x_624); -if (lean_obj_tag(x_942) == 0) +lean_object* x_940; lean_object* x_941; +lean_dec(x_68); +x_940 = lean_ctor_get(x_2, 1); +lean_inc(x_940); +lean_dec(x_2); +lean_inc(x_3); +x_941 = l_Lean_Elab_Term_inferType(x_940, x_3, x_623); +if (lean_obj_tag(x_941) == 0) { -lean_object* x_943; lean_object* x_944; lean_object* x_945; -x_943 = lean_ctor_get(x_942, 0); +lean_object* x_942; lean_object* x_943; lean_object* x_944; +x_942 = lean_ctor_get(x_941, 0); +lean_inc(x_942); +x_943 = lean_ctor_get(x_941, 1); lean_inc(x_943); -x_944 = lean_ctor_get(x_942, 1); -lean_inc(x_944); -lean_dec(x_942); -lean_inc(x_4); -x_945 = l_Lean_Elab_Term_whnf(x_1, x_943, x_4, x_944); -if (lean_obj_tag(x_945) == 0) +lean_dec(x_941); +lean_inc(x_3); +x_944 = l_Lean_Elab_Term_whnf(x_942, x_3, x_943); +if (lean_obj_tag(x_944) == 0) { -lean_object* x_946; lean_object* x_947; lean_object* x_948; lean_object* x_949; -x_946 = lean_ctor_get(x_945, 0); +lean_object* x_945; lean_object* x_946; lean_object* x_947; lean_object* x_948; +x_945 = lean_ctor_get(x_944, 0); +lean_inc(x_945); +x_946 = lean_ctor_get(x_944, 1); lean_inc(x_946); -x_947 = lean_ctor_get(x_945, 1); -lean_inc(x_947); +lean_dec(x_944); +x_947 = l_Lean_Expr_getAppFn___main(x_945); +x_948 = l_Lean_Elab_Term_tryPostponeIfMVar(x_945, x_3, x_946); +if (lean_obj_tag(x_948) == 0) +{ +lean_object* x_949; lean_object* x_950; lean_object* x_951; +x_949 = lean_ctor_get(x_948, 1); +lean_inc(x_949); +if (lean_is_exclusive(x_948)) { + lean_ctor_release(x_948, 0); + lean_ctor_release(x_948, 1); + x_950 = x_948; +} else { + lean_dec_ref(x_948); + x_950 = lean_box(0); +} +if (lean_obj_tag(x_947) == 4) +{ +lean_object* x_958; lean_object* x_959; lean_dec(x_945); -x_948 = l_Lean_Expr_getAppFn___main(x_946); -x_949 = l_Lean_Elab_Term_tryPostponeIfMVar(x_946, x_4, x_947); -if (lean_obj_tag(x_949) == 0) -{ -lean_object* x_950; lean_object* x_951; lean_object* x_952; -x_950 = lean_ctor_get(x_949, 1); -lean_inc(x_950); -if (lean_is_exclusive(x_949)) { - lean_ctor_release(x_949, 0); - lean_ctor_release(x_949, 1); - x_951 = x_949; -} else { - lean_dec_ref(x_949); - x_951 = lean_box(0); -} -if (lean_obj_tag(x_948) == 4) -{ -lean_object* x_959; lean_object* x_960; -lean_dec(x_946); -lean_dec(x_4); -x_959 = lean_ctor_get(x_948, 0); -lean_inc(x_959); -lean_dec(x_948); -if (lean_is_scalar(x_951)) { - x_960 = lean_alloc_ctor(0, 2, 0); -} else { - x_960 = x_951; -} -lean_ctor_set(x_960, 0, x_959); -lean_ctor_set(x_960, 1, x_950); -return x_960; -} -else -{ -lean_object* x_961; -lean_dec(x_951); -lean_dec(x_948); -x_961 = lean_box(0); -x_952 = x_961; -goto block_958; -} -block_958: -{ -lean_object* x_953; lean_object* x_954; lean_object* x_955; lean_object* x_956; lean_object* x_957; -lean_dec(x_952); -x_953 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_953, 0, x_946); -x_954 = l_Lean_indentExpr(x_953); -x_955 = l___private_Lean_Elab_StructInst_5__getStructName___closed__6; -x_956 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_956, 0, x_955); -lean_ctor_set(x_956, 1, x_954); -x_957 = l_Lean_Elab_Term_throwError___rarg(x_1, x_956, x_4, x_950); -return x_957; -} -} -else -{ -lean_object* x_962; lean_object* x_963; lean_object* x_964; lean_object* x_965; -lean_dec(x_948); -lean_dec(x_946); -lean_dec(x_4); -x_962 = lean_ctor_get(x_949, 0); -lean_inc(x_962); -x_963 = lean_ctor_get(x_949, 1); -lean_inc(x_963); -if (lean_is_exclusive(x_949)) { - lean_ctor_release(x_949, 0); - lean_ctor_release(x_949, 1); - x_964 = x_949; -} else { - lean_dec_ref(x_949); - x_964 = lean_box(0); -} -if (lean_is_scalar(x_964)) { - x_965 = lean_alloc_ctor(1, 2, 0); -} else { - x_965 = x_964; -} -lean_ctor_set(x_965, 0, x_962); -lean_ctor_set(x_965, 1, x_963); -return x_965; -} -} -else -{ -lean_object* x_966; lean_object* x_967; lean_object* x_968; lean_object* x_969; -lean_dec(x_4); -x_966 = lean_ctor_get(x_945, 0); -lean_inc(x_966); -x_967 = lean_ctor_get(x_945, 1); -lean_inc(x_967); -if (lean_is_exclusive(x_945)) { - lean_ctor_release(x_945, 0); - lean_ctor_release(x_945, 1); - x_968 = x_945; -} else { - lean_dec_ref(x_945); - x_968 = lean_box(0); -} -if (lean_is_scalar(x_968)) { - x_969 = lean_alloc_ctor(1, 2, 0); -} else { - x_969 = x_968; -} -lean_ctor_set(x_969, 0, x_966); -lean_ctor_set(x_969, 1, x_967); -return x_969; -} -} -else -{ -lean_object* x_970; lean_object* x_971; lean_object* x_972; lean_object* x_973; -lean_dec(x_4); -x_970 = lean_ctor_get(x_942, 0); -lean_inc(x_970); -x_971 = lean_ctor_get(x_942, 1); -lean_inc(x_971); -if (lean_is_exclusive(x_942)) { - lean_ctor_release(x_942, 0); - lean_ctor_release(x_942, 1); - x_972 = x_942; -} else { - lean_dec_ref(x_942); - x_972 = lean_box(0); -} -if (lean_is_scalar(x_972)) { - x_973 = lean_alloc_ctor(1, 2, 0); -} else { - x_973 = x_972; -} -lean_ctor_set(x_973, 0, x_970); -lean_ctor_set(x_973, 1, x_971); -return x_973; -} -} -else -{ -lean_object* x_974; lean_dec(x_3); -x_974 = lean_box(0); -x_625 = x_974; -goto block_631; +x_958 = lean_ctor_get(x_947, 0); +lean_inc(x_958); +lean_dec(x_947); +if (lean_is_scalar(x_950)) { + x_959 = lean_alloc_ctor(0, 2, 0); +} else { + x_959 = x_950; +} +lean_ctor_set(x_959, 0, x_958); +lean_ctor_set(x_959, 1, x_949); +return x_959; +} +else +{ +lean_object* x_960; +lean_dec(x_950); +lean_dec(x_947); +x_960 = lean_box(0); +x_951 = x_960; +goto block_957; +} +block_957: +{ +lean_object* x_952; lean_object* x_953; lean_object* x_954; lean_object* x_955; lean_object* x_956; +lean_dec(x_951); +x_952 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_952, 0, x_945); +x_953 = l_Lean_indentExpr(x_952); +x_954 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6; +x_955 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_955, 0, x_954); +lean_ctor_set(x_955, 1, x_953); +x_956 = l_Lean_Elab_Term_throwError___rarg(x_955, x_3, x_949); +return x_956; +} +} +else +{ +lean_object* x_961; lean_object* x_962; lean_object* x_963; lean_object* x_964; +lean_dec(x_947); +lean_dec(x_945); +lean_dec(x_3); +x_961 = lean_ctor_get(x_948, 0); +lean_inc(x_961); +x_962 = lean_ctor_get(x_948, 1); +lean_inc(x_962); +if (lean_is_exclusive(x_948)) { + lean_ctor_release(x_948, 0); + lean_ctor_release(x_948, 1); + x_963 = x_948; +} else { + lean_dec_ref(x_948); + x_963 = lean_box(0); +} +if (lean_is_scalar(x_963)) { + x_964 = lean_alloc_ctor(1, 2, 0); +} else { + x_964 = x_963; +} +lean_ctor_set(x_964, 0, x_961); +lean_ctor_set(x_964, 1, x_962); +return x_964; +} +} +else +{ +lean_object* x_965; lean_object* x_966; lean_object* x_967; lean_object* x_968; +lean_dec(x_3); +x_965 = lean_ctor_get(x_944, 0); +lean_inc(x_965); +x_966 = lean_ctor_get(x_944, 1); +lean_inc(x_966); +if (lean_is_exclusive(x_944)) { + lean_ctor_release(x_944, 0); + lean_ctor_release(x_944, 1); + x_967 = x_944; +} else { + lean_dec_ref(x_944); + x_967 = lean_box(0); +} +if (lean_is_scalar(x_967)) { + x_968 = lean_alloc_ctor(1, 2, 0); +} else { + x_968 = x_967; +} +lean_ctor_set(x_968, 0, x_965); +lean_ctor_set(x_968, 1, x_966); +return x_968; +} +} +else +{ +lean_object* x_969; lean_object* x_970; lean_object* x_971; lean_object* x_972; +lean_dec(x_3); +x_969 = lean_ctor_get(x_941, 0); +lean_inc(x_969); +x_970 = lean_ctor_get(x_941, 1); +lean_inc(x_970); +if (lean_is_exclusive(x_941)) { + lean_ctor_release(x_941, 0); + lean_ctor_release(x_941, 1); + x_971 = x_941; +} else { + lean_dec_ref(x_941); + x_971 = lean_box(0); +} +if (lean_is_scalar(x_971)) { + x_972 = lean_alloc_ctor(1, 2, 0); +} else { + x_972 = x_971; +} +lean_ctor_set(x_972, 0, x_969); +lean_ctor_set(x_972, 1, x_970); +return x_972; +} +} +else +{ +lean_object* x_973; +lean_dec(x_2); +x_973 = lean_box(0); +x_624 = x_973; +goto block_630; } } case 11: { -lean_dec(x_632); -if (lean_obj_tag(x_3) == 2) +lean_dec(x_631); +if (lean_obj_tag(x_2) == 2) { -lean_object* x_975; lean_object* x_976; -lean_dec(x_69); -x_975 = lean_ctor_get(x_3, 1); -lean_inc(x_975); -lean_dec(x_3); -lean_inc(x_4); -x_976 = l_Lean_Elab_Term_inferType(x_1, x_975, x_4, x_624); -if (lean_obj_tag(x_976) == 0) +lean_object* x_974; lean_object* x_975; +lean_dec(x_68); +x_974 = lean_ctor_get(x_2, 1); +lean_inc(x_974); +lean_dec(x_2); +lean_inc(x_3); +x_975 = l_Lean_Elab_Term_inferType(x_974, x_3, x_623); +if (lean_obj_tag(x_975) == 0) { -lean_object* x_977; lean_object* x_978; lean_object* x_979; -x_977 = lean_ctor_get(x_976, 0); +lean_object* x_976; lean_object* x_977; lean_object* x_978; +x_976 = lean_ctor_get(x_975, 0); +lean_inc(x_976); +x_977 = lean_ctor_get(x_975, 1); lean_inc(x_977); -x_978 = lean_ctor_get(x_976, 1); -lean_inc(x_978); -lean_dec(x_976); -lean_inc(x_4); -x_979 = l_Lean_Elab_Term_whnf(x_1, x_977, x_4, x_978); -if (lean_obj_tag(x_979) == 0) +lean_dec(x_975); +lean_inc(x_3); +x_978 = l_Lean_Elab_Term_whnf(x_976, x_3, x_977); +if (lean_obj_tag(x_978) == 0) { -lean_object* x_980; lean_object* x_981; lean_object* x_982; lean_object* x_983; -x_980 = lean_ctor_get(x_979, 0); +lean_object* x_979; lean_object* x_980; lean_object* x_981; lean_object* x_982; +x_979 = lean_ctor_get(x_978, 0); +lean_inc(x_979); +x_980 = lean_ctor_get(x_978, 1); lean_inc(x_980); -x_981 = lean_ctor_get(x_979, 1); -lean_inc(x_981); +lean_dec(x_978); +x_981 = l_Lean_Expr_getAppFn___main(x_979); +x_982 = l_Lean_Elab_Term_tryPostponeIfMVar(x_979, x_3, x_980); +if (lean_obj_tag(x_982) == 0) +{ +lean_object* x_983; lean_object* x_984; lean_object* x_985; +x_983 = lean_ctor_get(x_982, 1); +lean_inc(x_983); +if (lean_is_exclusive(x_982)) { + lean_ctor_release(x_982, 0); + lean_ctor_release(x_982, 1); + x_984 = x_982; +} else { + lean_dec_ref(x_982); + x_984 = lean_box(0); +} +if (lean_obj_tag(x_981) == 4) +{ +lean_object* x_992; lean_object* x_993; lean_dec(x_979); -x_982 = l_Lean_Expr_getAppFn___main(x_980); -x_983 = l_Lean_Elab_Term_tryPostponeIfMVar(x_980, x_4, x_981); -if (lean_obj_tag(x_983) == 0) -{ -lean_object* x_984; lean_object* x_985; lean_object* x_986; -x_984 = lean_ctor_get(x_983, 1); -lean_inc(x_984); -if (lean_is_exclusive(x_983)) { - lean_ctor_release(x_983, 0); - lean_ctor_release(x_983, 1); - x_985 = x_983; -} else { - lean_dec_ref(x_983); - x_985 = lean_box(0); -} -if (lean_obj_tag(x_982) == 4) -{ -lean_object* x_993; lean_object* x_994; -lean_dec(x_980); -lean_dec(x_4); -x_993 = lean_ctor_get(x_982, 0); -lean_inc(x_993); -lean_dec(x_982); -if (lean_is_scalar(x_985)) { - x_994 = lean_alloc_ctor(0, 2, 0); -} else { - x_994 = x_985; -} -lean_ctor_set(x_994, 0, x_993); -lean_ctor_set(x_994, 1, x_984); -return x_994; -} -else -{ -lean_object* x_995; -lean_dec(x_985); -lean_dec(x_982); -x_995 = lean_box(0); -x_986 = x_995; -goto block_992; -} -block_992: -{ -lean_object* x_987; lean_object* x_988; lean_object* x_989; lean_object* x_990; lean_object* x_991; -lean_dec(x_986); -x_987 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_987, 0, x_980); -x_988 = l_Lean_indentExpr(x_987); -x_989 = l___private_Lean_Elab_StructInst_5__getStructName___closed__6; -x_990 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_990, 0, x_989); -lean_ctor_set(x_990, 1, x_988); -x_991 = l_Lean_Elab_Term_throwError___rarg(x_1, x_990, x_4, x_984); -return x_991; -} -} -else -{ -lean_object* x_996; lean_object* x_997; lean_object* x_998; lean_object* x_999; -lean_dec(x_982); -lean_dec(x_980); -lean_dec(x_4); -x_996 = lean_ctor_get(x_983, 0); -lean_inc(x_996); -x_997 = lean_ctor_get(x_983, 1); -lean_inc(x_997); -if (lean_is_exclusive(x_983)) { - lean_ctor_release(x_983, 0); - lean_ctor_release(x_983, 1); - x_998 = x_983; -} else { - lean_dec_ref(x_983); - x_998 = lean_box(0); -} -if (lean_is_scalar(x_998)) { - x_999 = lean_alloc_ctor(1, 2, 0); -} else { - x_999 = x_998; -} -lean_ctor_set(x_999, 0, x_996); -lean_ctor_set(x_999, 1, x_997); -return x_999; -} -} -else -{ -lean_object* x_1000; lean_object* x_1001; lean_object* x_1002; lean_object* x_1003; -lean_dec(x_4); -x_1000 = lean_ctor_get(x_979, 0); -lean_inc(x_1000); -x_1001 = lean_ctor_get(x_979, 1); -lean_inc(x_1001); -if (lean_is_exclusive(x_979)) { - lean_ctor_release(x_979, 0); - lean_ctor_release(x_979, 1); - x_1002 = x_979; -} else { - lean_dec_ref(x_979); - x_1002 = lean_box(0); -} -if (lean_is_scalar(x_1002)) { - x_1003 = lean_alloc_ctor(1, 2, 0); -} else { - x_1003 = x_1002; -} -lean_ctor_set(x_1003, 0, x_1000); -lean_ctor_set(x_1003, 1, x_1001); -return x_1003; -} -} -else -{ -lean_object* x_1004; lean_object* x_1005; lean_object* x_1006; lean_object* x_1007; -lean_dec(x_4); -x_1004 = lean_ctor_get(x_976, 0); -lean_inc(x_1004); -x_1005 = lean_ctor_get(x_976, 1); -lean_inc(x_1005); -if (lean_is_exclusive(x_976)) { - lean_ctor_release(x_976, 0); - lean_ctor_release(x_976, 1); - x_1006 = x_976; -} else { - lean_dec_ref(x_976); - x_1006 = lean_box(0); -} -if (lean_is_scalar(x_1006)) { - x_1007 = lean_alloc_ctor(1, 2, 0); -} else { - x_1007 = x_1006; -} -lean_ctor_set(x_1007, 0, x_1004); -lean_ctor_set(x_1007, 1, x_1005); -return x_1007; -} -} -else -{ -lean_object* x_1008; lean_dec(x_3); -x_1008 = lean_box(0); -x_625 = x_1008; -goto block_631; +x_992 = lean_ctor_get(x_981, 0); +lean_inc(x_992); +lean_dec(x_981); +if (lean_is_scalar(x_984)) { + x_993 = lean_alloc_ctor(0, 2, 0); +} else { + x_993 = x_984; +} +lean_ctor_set(x_993, 0, x_992); +lean_ctor_set(x_993, 1, x_983); +return x_993; +} +else +{ +lean_object* x_994; +lean_dec(x_984); +lean_dec(x_981); +x_994 = lean_box(0); +x_985 = x_994; +goto block_991; +} +block_991: +{ +lean_object* x_986; lean_object* x_987; lean_object* x_988; lean_object* x_989; lean_object* x_990; +lean_dec(x_985); +x_986 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_986, 0, x_979); +x_987 = l_Lean_indentExpr(x_986); +x_988 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6; +x_989 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_989, 0, x_988); +lean_ctor_set(x_989, 1, x_987); +x_990 = l_Lean_Elab_Term_throwError___rarg(x_989, x_3, x_983); +return x_990; +} +} +else +{ +lean_object* x_995; lean_object* x_996; lean_object* x_997; lean_object* x_998; +lean_dec(x_981); +lean_dec(x_979); +lean_dec(x_3); +x_995 = lean_ctor_get(x_982, 0); +lean_inc(x_995); +x_996 = lean_ctor_get(x_982, 1); +lean_inc(x_996); +if (lean_is_exclusive(x_982)) { + lean_ctor_release(x_982, 0); + lean_ctor_release(x_982, 1); + x_997 = x_982; +} else { + lean_dec_ref(x_982); + x_997 = lean_box(0); +} +if (lean_is_scalar(x_997)) { + x_998 = lean_alloc_ctor(1, 2, 0); +} else { + x_998 = x_997; +} +lean_ctor_set(x_998, 0, x_995); +lean_ctor_set(x_998, 1, x_996); +return x_998; +} +} +else +{ +lean_object* x_999; lean_object* x_1000; lean_object* x_1001; lean_object* x_1002; +lean_dec(x_3); +x_999 = lean_ctor_get(x_978, 0); +lean_inc(x_999); +x_1000 = lean_ctor_get(x_978, 1); +lean_inc(x_1000); +if (lean_is_exclusive(x_978)) { + lean_ctor_release(x_978, 0); + lean_ctor_release(x_978, 1); + x_1001 = x_978; +} else { + lean_dec_ref(x_978); + x_1001 = lean_box(0); +} +if (lean_is_scalar(x_1001)) { + x_1002 = lean_alloc_ctor(1, 2, 0); +} else { + x_1002 = x_1001; +} +lean_ctor_set(x_1002, 0, x_999); +lean_ctor_set(x_1002, 1, x_1000); +return x_1002; +} +} +else +{ +lean_object* x_1003; lean_object* x_1004; lean_object* x_1005; lean_object* x_1006; +lean_dec(x_3); +x_1003 = lean_ctor_get(x_975, 0); +lean_inc(x_1003); +x_1004 = lean_ctor_get(x_975, 1); +lean_inc(x_1004); +if (lean_is_exclusive(x_975)) { + lean_ctor_release(x_975, 0); + lean_ctor_release(x_975, 1); + x_1005 = x_975; +} else { + lean_dec_ref(x_975); + x_1005 = lean_box(0); +} +if (lean_is_scalar(x_1005)) { + x_1006 = lean_alloc_ctor(1, 2, 0); +} else { + x_1006 = x_1005; +} +lean_ctor_set(x_1006, 0, x_1003); +lean_ctor_set(x_1006, 1, x_1004); +return x_1006; +} +} +else +{ +lean_object* x_1007; +lean_dec(x_2); +x_1007 = lean_box(0); +x_624 = x_1007; +goto block_630; } } default: { -lean_dec(x_632); -if (lean_obj_tag(x_3) == 2) +lean_dec(x_631); +if (lean_obj_tag(x_2) == 2) { -lean_object* x_1009; lean_object* x_1010; -lean_dec(x_69); -x_1009 = lean_ctor_get(x_3, 1); -lean_inc(x_1009); -lean_dec(x_3); -lean_inc(x_4); -x_1010 = l_Lean_Elab_Term_inferType(x_1, x_1009, x_4, x_624); -if (lean_obj_tag(x_1010) == 0) +lean_object* x_1008; lean_object* x_1009; +lean_dec(x_68); +x_1008 = lean_ctor_get(x_2, 1); +lean_inc(x_1008); +lean_dec(x_2); +lean_inc(x_3); +x_1009 = l_Lean_Elab_Term_inferType(x_1008, x_3, x_623); +if (lean_obj_tag(x_1009) == 0) { -lean_object* x_1011; lean_object* x_1012; lean_object* x_1013; -x_1011 = lean_ctor_get(x_1010, 0); +lean_object* x_1010; lean_object* x_1011; lean_object* x_1012; +x_1010 = lean_ctor_get(x_1009, 0); +lean_inc(x_1010); +x_1011 = lean_ctor_get(x_1009, 1); lean_inc(x_1011); -x_1012 = lean_ctor_get(x_1010, 1); -lean_inc(x_1012); -lean_dec(x_1010); -lean_inc(x_4); -x_1013 = l_Lean_Elab_Term_whnf(x_1, x_1011, x_4, x_1012); -if (lean_obj_tag(x_1013) == 0) +lean_dec(x_1009); +lean_inc(x_3); +x_1012 = l_Lean_Elab_Term_whnf(x_1010, x_3, x_1011); +if (lean_obj_tag(x_1012) == 0) { -lean_object* x_1014; lean_object* x_1015; lean_object* x_1016; lean_object* x_1017; -x_1014 = lean_ctor_get(x_1013, 0); +lean_object* x_1013; lean_object* x_1014; lean_object* x_1015; lean_object* x_1016; +x_1013 = lean_ctor_get(x_1012, 0); +lean_inc(x_1013); +x_1014 = lean_ctor_get(x_1012, 1); lean_inc(x_1014); -x_1015 = lean_ctor_get(x_1013, 1); -lean_inc(x_1015); +lean_dec(x_1012); +x_1015 = l_Lean_Expr_getAppFn___main(x_1013); +x_1016 = l_Lean_Elab_Term_tryPostponeIfMVar(x_1013, x_3, x_1014); +if (lean_obj_tag(x_1016) == 0) +{ +lean_object* x_1017; lean_object* x_1018; lean_object* x_1019; +x_1017 = lean_ctor_get(x_1016, 1); +lean_inc(x_1017); +if (lean_is_exclusive(x_1016)) { + lean_ctor_release(x_1016, 0); + lean_ctor_release(x_1016, 1); + x_1018 = x_1016; +} else { + lean_dec_ref(x_1016); + x_1018 = lean_box(0); +} +if (lean_obj_tag(x_1015) == 4) +{ +lean_object* x_1026; lean_object* x_1027; lean_dec(x_1013); -x_1016 = l_Lean_Expr_getAppFn___main(x_1014); -x_1017 = l_Lean_Elab_Term_tryPostponeIfMVar(x_1014, x_4, x_1015); -if (lean_obj_tag(x_1017) == 0) -{ -lean_object* x_1018; lean_object* x_1019; lean_object* x_1020; -x_1018 = lean_ctor_get(x_1017, 1); -lean_inc(x_1018); -if (lean_is_exclusive(x_1017)) { - lean_ctor_release(x_1017, 0); - lean_ctor_release(x_1017, 1); - x_1019 = x_1017; +lean_dec(x_3); +x_1026 = lean_ctor_get(x_1015, 0); +lean_inc(x_1026); +lean_dec(x_1015); +if (lean_is_scalar(x_1018)) { + x_1027 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_1017); - x_1019 = lean_box(0); + x_1027 = x_1018; } -if (lean_obj_tag(x_1016) == 4) -{ -lean_object* x_1027; lean_object* x_1028; -lean_dec(x_1014); -lean_dec(x_4); -x_1027 = lean_ctor_get(x_1016, 0); -lean_inc(x_1027); -lean_dec(x_1016); -if (lean_is_scalar(x_1019)) { - x_1028 = lean_alloc_ctor(0, 2, 0); -} else { - x_1028 = x_1019; -} -lean_ctor_set(x_1028, 0, x_1027); -lean_ctor_set(x_1028, 1, x_1018); -return x_1028; +lean_ctor_set(x_1027, 0, x_1026); +lean_ctor_set(x_1027, 1, x_1017); +return x_1027; } else { -lean_object* x_1029; +lean_object* x_1028; +lean_dec(x_1018); +lean_dec(x_1015); +x_1028 = lean_box(0); +x_1019 = x_1028; +goto block_1025; +} +block_1025: +{ +lean_object* x_1020; lean_object* x_1021; lean_object* x_1022; lean_object* x_1023; lean_object* x_1024; lean_dec(x_1019); -lean_dec(x_1016); -x_1029 = lean_box(0); -x_1020 = x_1029; -goto block_1026; -} -block_1026: -{ -lean_object* x_1021; lean_object* x_1022; lean_object* x_1023; lean_object* x_1024; lean_object* x_1025; -lean_dec(x_1020); -x_1021 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1021, 0, x_1014); -x_1022 = l_Lean_indentExpr(x_1021); -x_1023 = l___private_Lean_Elab_StructInst_5__getStructName___closed__6; -x_1024 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1024, 0, x_1023); -lean_ctor_set(x_1024, 1, x_1022); -x_1025 = l_Lean_Elab_Term_throwError___rarg(x_1, x_1024, x_4, x_1018); -return x_1025; +x_1020 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1020, 0, x_1013); +x_1021 = l_Lean_indentExpr(x_1020); +x_1022 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6; +x_1023 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1023, 0, x_1022); +lean_ctor_set(x_1023, 1, x_1021); +x_1024 = l_Lean_Elab_Term_throwError___rarg(x_1023, x_3, x_1017); +return x_1024; } } else { -lean_object* x_1030; lean_object* x_1031; lean_object* x_1032; lean_object* x_1033; -lean_dec(x_1016); -lean_dec(x_1014); -lean_dec(x_4); -x_1030 = lean_ctor_get(x_1017, 0); +lean_object* x_1029; lean_object* x_1030; lean_object* x_1031; lean_object* x_1032; +lean_dec(x_1015); +lean_dec(x_1013); +lean_dec(x_3); +x_1029 = lean_ctor_get(x_1016, 0); +lean_inc(x_1029); +x_1030 = lean_ctor_get(x_1016, 1); lean_inc(x_1030); -x_1031 = lean_ctor_get(x_1017, 1); -lean_inc(x_1031); -if (lean_is_exclusive(x_1017)) { - lean_ctor_release(x_1017, 0); - lean_ctor_release(x_1017, 1); - x_1032 = x_1017; +if (lean_is_exclusive(x_1016)) { + lean_ctor_release(x_1016, 0); + lean_ctor_release(x_1016, 1); + x_1031 = x_1016; } else { - lean_dec_ref(x_1017); - x_1032 = lean_box(0); + lean_dec_ref(x_1016); + x_1031 = lean_box(0); } -if (lean_is_scalar(x_1032)) { - x_1033 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1031)) { + x_1032 = lean_alloc_ctor(1, 2, 0); } else { - x_1033 = x_1032; + x_1032 = x_1031; } -lean_ctor_set(x_1033, 0, x_1030); -lean_ctor_set(x_1033, 1, x_1031); -return x_1033; +lean_ctor_set(x_1032, 0, x_1029); +lean_ctor_set(x_1032, 1, x_1030); +return x_1032; } } else { -lean_object* x_1034; lean_object* x_1035; lean_object* x_1036; lean_object* x_1037; -lean_dec(x_4); -x_1034 = lean_ctor_get(x_1013, 0); +lean_object* x_1033; lean_object* x_1034; lean_object* x_1035; lean_object* x_1036; +lean_dec(x_3); +x_1033 = lean_ctor_get(x_1012, 0); +lean_inc(x_1033); +x_1034 = lean_ctor_get(x_1012, 1); lean_inc(x_1034); -x_1035 = lean_ctor_get(x_1013, 1); -lean_inc(x_1035); -if (lean_is_exclusive(x_1013)) { - lean_ctor_release(x_1013, 0); - lean_ctor_release(x_1013, 1); - x_1036 = x_1013; +if (lean_is_exclusive(x_1012)) { + lean_ctor_release(x_1012, 0); + lean_ctor_release(x_1012, 1); + x_1035 = x_1012; } else { - lean_dec_ref(x_1013); - x_1036 = lean_box(0); + lean_dec_ref(x_1012); + x_1035 = lean_box(0); } -if (lean_is_scalar(x_1036)) { - x_1037 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1035)) { + x_1036 = lean_alloc_ctor(1, 2, 0); } else { - x_1037 = x_1036; + x_1036 = x_1035; } -lean_ctor_set(x_1037, 0, x_1034); -lean_ctor_set(x_1037, 1, x_1035); -return x_1037; +lean_ctor_set(x_1036, 0, x_1033); +lean_ctor_set(x_1036, 1, x_1034); +return x_1036; } } else { -lean_object* x_1038; lean_object* x_1039; lean_object* x_1040; lean_object* x_1041; -lean_dec(x_4); -x_1038 = lean_ctor_get(x_1010, 0); +lean_object* x_1037; lean_object* x_1038; lean_object* x_1039; lean_object* x_1040; +lean_dec(x_3); +x_1037 = lean_ctor_get(x_1009, 0); +lean_inc(x_1037); +x_1038 = lean_ctor_get(x_1009, 1); lean_inc(x_1038); -x_1039 = lean_ctor_get(x_1010, 1); -lean_inc(x_1039); -if (lean_is_exclusive(x_1010)) { - lean_ctor_release(x_1010, 0); - lean_ctor_release(x_1010, 1); - x_1040 = x_1010; +if (lean_is_exclusive(x_1009)) { + lean_ctor_release(x_1009, 0); + lean_ctor_release(x_1009, 1); + x_1039 = x_1009; } else { - lean_dec_ref(x_1010); - x_1040 = lean_box(0); + lean_dec_ref(x_1009); + x_1039 = lean_box(0); } -if (lean_is_scalar(x_1040)) { - x_1041 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1039)) { + x_1040 = lean_alloc_ctor(1, 2, 0); } else { - x_1041 = x_1040; + x_1040 = x_1039; } -lean_ctor_set(x_1041, 0, x_1038); -lean_ctor_set(x_1041, 1, x_1039); -return x_1041; +lean_ctor_set(x_1040, 0, x_1037); +lean_ctor_set(x_1040, 1, x_1038); +return x_1040; } } else { -lean_object* x_1042; +lean_object* x_1041; +lean_dec(x_2); +x_1041 = lean_box(0); +x_624 = x_1041; +goto block_630; +} +} +} +block_630: +{ +lean_object* x_625; lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; +lean_dec(x_624); +x_625 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_625, 0, x_68); +x_626 = l_Lean_indentExpr(x_625); +x_627 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__3; +x_628 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_628, 0, x_627); +lean_ctor_set(x_628, 1, x_626); +x_629 = l_Lean_Elab_Term_throwError___rarg(x_628, x_3, x_623); +return x_629; +} +} +} +else +{ +uint8_t x_1042; +lean_dec(x_68); lean_dec(x_3); -x_1042 = lean_box(0); -x_625 = x_1042; -goto block_631; -} -} -} -block_631: +lean_dec(x_2); +x_1042 = !lean_is_exclusive(x_69); +if (x_1042 == 0) { -lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; -lean_dec(x_625); -x_626 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_626, 0, x_69); -x_627 = l_Lean_indentExpr(x_626); -x_628 = l___private_Lean_Elab_StructInst_5__getStructName___closed__3; -x_629 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_629, 0, x_628); -lean_ctor_set(x_629, 1, x_627); -x_630 = l_Lean_Elab_Term_throwError___rarg(x_1, x_629, x_4, x_624); -return x_630; -} -} +return x_69; } else { -uint8_t x_1043; -lean_dec(x_69); -lean_dec(x_4); -lean_dec(x_3); -x_1043 = !lean_is_exclusive(x_70); -if (x_1043 == 0) -{ -return x_70; -} -else -{ -lean_object* x_1044; lean_object* x_1045; lean_object* x_1046; -x_1044 = lean_ctor_get(x_70, 0); -x_1045 = lean_ctor_get(x_70, 1); -lean_inc(x_1045); +lean_object* x_1043; lean_object* x_1044; lean_object* x_1045; +x_1043 = lean_ctor_get(x_69, 0); +x_1044 = lean_ctor_get(x_69, 1); lean_inc(x_1044); -lean_dec(x_70); -x_1046 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1046, 0, x_1044); -lean_ctor_set(x_1046, 1, x_1045); -return x_1046; +lean_inc(x_1043); +lean_dec(x_69); +x_1045 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1045, 0, x_1043); +lean_ctor_set(x_1045, 1, x_1044); +return x_1045; } } } -block_23: +block_22: { -lean_dec(x_8); -if (lean_obj_tag(x_2) == 0) +lean_dec(x_7); +if (lean_obj_tag(x_1) == 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; -x_9 = l_Lean_Expr_Inhabited; -x_10 = l_Option_get_x21___rarg___closed__3; -x_11 = lean_panic_fn(x_9, x_10); -x_12 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_12, 0, x_11); -x_13 = l_Lean_indentExpr(x_12); -x_14 = l___private_Lean_Elab_StructInst_5__getStructName___closed__3; -x_15 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_13); -x_16 = l_Lean_Elab_Term_throwError___rarg(x_1, x_15, x_4, x_7); -return x_16; +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_8 = l_Lean_Expr_Inhabited; +x_9 = l_Option_get_x21___rarg___closed__3; +x_10 = lean_panic_fn(x_8, x_9); +x_11 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_11, 0, x_10); +x_12 = l_Lean_indentExpr(x_11); +x_13 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__3; +x_14 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_12); +x_15 = l_Lean_Elab_Term_throwError___rarg(x_14, x_3, x_6); +return x_15; } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_17 = lean_ctor_get(x_2, 0); -lean_inc(x_17); -lean_dec(x_2); -x_18 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_18, 0, x_17); -x_19 = l_Lean_indentExpr(x_18); -x_20 = l___private_Lean_Elab_StructInst_5__getStructName___closed__3; -x_21 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_19); -x_22 = l_Lean_Elab_Term_throwError___rarg(x_1, x_21, x_4, x_7); -return x_22; +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_16 = lean_ctor_get(x_1, 0); +lean_inc(x_16); +lean_dec(x_1); +x_17 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_17, 0, x_16); +x_18 = l_Lean_indentExpr(x_17); +x_19 = l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__3; +x_20 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +x_21 = l_Lean_Elab_Term_throwError___rarg(x_20, x_3, x_6); +return x_21; } } } else { -uint8_t x_1047; -lean_dec(x_4); +uint8_t x_1046; lean_dec(x_3); lean_dec(x_2); -x_1047 = !lean_is_exclusive(x_6); -if (x_1047 == 0) +lean_dec(x_1); +x_1046 = !lean_is_exclusive(x_5); +if (x_1046 == 0) { -return x_6; +return x_5; } else { -lean_object* x_1048; lean_object* x_1049; lean_object* x_1050; -x_1048 = lean_ctor_get(x_6, 0); -x_1049 = lean_ctor_get(x_6, 1); -lean_inc(x_1049); +lean_object* x_1047; lean_object* x_1048; lean_object* x_1049; +x_1047 = lean_ctor_get(x_5, 0); +x_1048 = lean_ctor_get(x_5, 1); lean_inc(x_1048); -lean_dec(x_6); -x_1050 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1050, 0, x_1048); -lean_ctor_set(x_1050, 1, x_1049); -return x_1050; +lean_inc(x_1047); +lean_dec(x_5); +x_1049 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1049, 0, x_1047); +lean_ctor_set(x_1049, 1, x_1048); +return x_1049; } } } } -lean_object* l___private_Lean_Elab_StructInst_5__getStructName___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_StructInst_5__getStructName(lean_object* x_1) { _start: { -lean_object* x_6; -x_6 = l___private_Lean_Elab_StructInst_5__getStructName(x_1, x_2, x_3, x_4, x_5); +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_5__getStructName___rarg), 4, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_StructInst_5__getStructName___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l___private_Lean_Elab_StructInst_5__getStructName(x_1); lean_dec(x_1); -return x_6; +return x_2; } } lean_object* _init_l_Lean_Elab_Term_StructInst_FieldLHS_inhabited___closed__1() { @@ -10143,7 +10316,7 @@ x_51 = l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFie x_52 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_52, 0, x_50); lean_ctor_set(x_52, 1, x_51); -x_53 = l_Lean_Elab_Term_throwError___rarg(x_36, x_52, x_3, x_4); +x_53 = l_Lean_Elab_Term_throwErrorAt___rarg(x_36, x_52, x_3, x_4); lean_dec(x_36); x_54 = !lean_is_exclusive(x_53); if (x_54 == 0) @@ -10179,7 +10352,7 @@ lean_dec(x_28); lean_dec(x_9); lean_dec(x_8); x_58 = l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__9; -x_59 = l_Lean_Elab_Term_throwError___rarg(x_36, x_58, x_3, x_4); +x_59 = l_Lean_Elab_Term_throwErrorAt___rarg(x_36, x_58, x_3, x_4); lean_dec(x_36); x_60 = !lean_is_exclusive(x_59); if (x_60 == 0) @@ -10259,7 +10432,7 @@ x_80 = l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFie x_81 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_81, 0, x_79); lean_ctor_set(x_81, 1, x_80); -x_82 = l_Lean_Elab_Term_throwError___rarg(x_64, x_81, x_3, x_4); +x_82 = l_Lean_Elab_Term_throwErrorAt___rarg(x_64, x_81, x_3, x_4); lean_dec(x_64); x_83 = lean_ctor_get(x_82, 0); lean_inc(x_83); @@ -10296,7 +10469,7 @@ lean_dec(x_28); lean_dec(x_9); lean_dec(x_8); x_87 = l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__9; -x_88 = l_Lean_Elab_Term_throwError___rarg(x_64, x_87, x_3, x_4); +x_88 = l_Lean_Elab_Term_throwErrorAt___rarg(x_64, x_87, x_3, x_4); lean_dec(x_64); x_89 = lean_ctor_get(x_88, 0); lean_inc(x_89); @@ -10397,7 +10570,7 @@ x_112 = l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFi x_113 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_113, 0, x_111); lean_ctor_set(x_113, 1, x_112); -x_114 = l_Lean_Elab_Term_throwError___rarg(x_94, x_113, x_3, x_4); +x_114 = l_Lean_Elab_Term_throwErrorAt___rarg(x_94, x_113, x_3, x_4); lean_dec(x_94); x_115 = lean_ctor_get(x_114, 0); lean_inc(x_115); @@ -10434,7 +10607,7 @@ lean_dec(x_28); lean_dec(x_9); lean_dec(x_8); x_119 = l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__9; -x_120 = l_Lean_Elab_Term_throwError___rarg(x_94, x_119, x_3, x_4); +x_120 = l_Lean_Elab_Term_throwErrorAt___rarg(x_94, x_119, x_3, x_4); lean_dec(x_94); x_121 = lean_ctor_get(x_120, 0); lean_inc(x_121); @@ -10557,7 +10730,7 @@ x_149 = l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFi x_150 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_150, 0, x_148); lean_ctor_set(x_150, 1, x_149); -x_151 = l_Lean_Elab_Term_throwError___rarg(x_130, x_150, x_3, x_4); +x_151 = l_Lean_Elab_Term_throwErrorAt___rarg(x_130, x_150, x_3, x_4); lean_dec(x_130); x_152 = lean_ctor_get(x_151, 0); lean_inc(x_152); @@ -10594,7 +10767,7 @@ lean_dec(x_125); lean_dec(x_9); lean_dec(x_8); x_156 = l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__9; -x_157 = l_Lean_Elab_Term_throwError___rarg(x_130, x_156, x_3, x_4); +x_157 = l_Lean_Elab_Term_throwErrorAt___rarg(x_130, x_156, x_3, x_4); lean_dec(x_130); x_158 = lean_ctor_get(x_157, 0); lean_inc(x_158); @@ -11147,7 +11320,7 @@ lean_ctor_set(x_41, 1, x_40); x_42 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_42, 0, x_41); lean_ctor_set(x_42, 1, x_36); -x_43 = l_Lean_Elab_Term_throwError___rarg(x_31, x_42, x_4, x_5); +x_43 = l_Lean_Elab_Term_throwErrorAt___rarg(x_31, x_42, x_4, x_5); lean_dec(x_31); x_44 = !lean_is_exclusive(x_43); if (x_44 == 0) @@ -11214,7 +11387,7 @@ x_59 = l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFi x_60 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_60, 0, x_58); lean_ctor_set(x_60, 1, x_59); -x_61 = l_Lean_Elab_Term_throwError___rarg(x_31, x_60, x_4, x_5); +x_61 = l_Lean_Elab_Term_throwErrorAt___rarg(x_31, x_60, x_4, x_5); lean_dec(x_31); x_62 = !lean_is_exclusive(x_61); if (x_62 == 0) @@ -11277,7 +11450,7 @@ x_73 = l_List_mapM___main___at___private_Lean_Elab_StructInst_10__expandParentFi x_74 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_74, 0, x_72); lean_ctor_set(x_74, 1, x_73); -x_75 = l_Lean_Elab_Term_throwError___rarg(x_31, x_74, x_4, x_5); +x_75 = l_Lean_Elab_Term_throwErrorAt___rarg(x_31, x_74, x_4, x_5); lean_dec(x_31); x_76 = lean_ctor_get(x_75, 0); lean_inc(x_76); @@ -12021,7 +12194,7 @@ x_40 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap__ x_41 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_41, 0, x_39); lean_ctor_set(x_41, 1, x_40); -x_42 = l_Lean_Elab_Term_throwError___rarg(x_36, x_41, x_3, x_4); +x_42 = l_Lean_Elab_Term_throwErrorAt___rarg(x_36, x_41, x_3, x_4); lean_dec(x_36); x_43 = !lean_is_exclusive(x_42); if (x_43 == 0) @@ -12064,7 +12237,7 @@ x_51 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap__ x_52 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_52, 0, x_50); lean_ctor_set(x_52, 1, x_51); -x_53 = l_Lean_Elab_Term_throwError___rarg(x_47, x_52, x_3, x_4); +x_53 = l_Lean_Elab_Term_throwErrorAt___rarg(x_47, x_52, x_3, x_4); lean_dec(x_47); x_54 = !lean_is_exclusive(x_53); if (x_54 == 0) @@ -12227,7 +12400,7 @@ x_91 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap__ x_92 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_92, 0, x_90); lean_ctor_set(x_92, 1, x_91); -x_93 = l_Lean_Elab_Term_throwError___rarg(x_87, x_92, x_3, x_4); +x_93 = l_Lean_Elab_Term_throwErrorAt___rarg(x_87, x_92, x_3, x_4); lean_dec(x_87); x_94 = lean_ctor_get(x_93, 0); lean_inc(x_94); @@ -12271,7 +12444,7 @@ x_102 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap_ x_103 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_103, 0, x_101); lean_ctor_set(x_103, 1, x_102); -x_104 = l_Lean_Elab_Term_throwError___rarg(x_98, x_103, x_3, x_4); +x_104 = l_Lean_Elab_Term_throwErrorAt___rarg(x_98, x_103, x_3, x_4); lean_dec(x_98); x_105 = lean_ctor_get(x_104, 0); lean_inc(x_105); @@ -12522,50 +12695,50 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_StructInst_14__getFieldIdx(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* l___private_Lean_Elab_StructInst_14__getFieldIdx(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_7; lean_object* x_8; -x_7 = lean_unsigned_to_nat(0u); -x_8 = l_Array_findIdxAux___main___at___private_Lean_Elab_StructInst_14__getFieldIdx___spec__1(x_4, x_3, x_7); -if (lean_obj_tag(x_8) == 0) +lean_object* x_6; lean_object* x_7; +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Array_findIdxAux___main___at___private_Lean_Elab_StructInst_14__getFieldIdx___spec__1(x_3, x_2, x_6); +if (lean_obj_tag(x_7) == 0) { -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_9 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_9, 0, x_4); -x_10 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__3; -x_11 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_11, 0, x_10); -lean_ctor_set(x_11, 1, x_9); -x_12 = l___private_Lean_Elab_StructInst_14__getFieldIdx___closed__3; -x_13 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_13, 0, x_11); -lean_ctor_set(x_13, 1, x_12); -x_14 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_14, 0, x_2); -x_15 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_15, 0, x_13); -lean_ctor_set(x_15, 1, x_14); -x_16 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; -x_17 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_17, 0, x_15); -lean_ctor_set(x_17, 1, x_16); -x_18 = l_Lean_Elab_Term_throwError___rarg(x_1, x_17, x_5, x_6); -return x_18; +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_8 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_8, 0, x_3); +x_9 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__3; +x_10 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_8); +x_11 = l___private_Lean_Elab_StructInst_14__getFieldIdx___closed__3; +x_12 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_11); +x_13 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_13, 0, x_1); +x_14 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_13); +x_15 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; +x_16 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_16, 1, x_15); +x_17 = l_Lean_Elab_Term_throwError___rarg(x_16, x_4, x_5); +return x_17; } else { -lean_object* x_19; lean_object* x_20; -lean_dec(x_5); +lean_object* x_18; lean_object* x_19; lean_dec(x_4); -lean_dec(x_2); -x_19 = lean_ctor_get(x_8, 0); -lean_inc(x_19); -lean_dec(x_8); -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_6); -return x_20; +lean_dec(x_3); +lean_dec(x_1); +x_18 = lean_ctor_get(x_7, 0); +lean_inc(x_18); +lean_dec(x_7); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_5); +return x_19; } } } @@ -12579,14 +12752,13 @@ lean_dec(x_1); return x_4; } } -lean_object* l___private_Lean_Elab_StructInst_14__getFieldIdx___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* l___private_Lean_Elab_StructInst_14__getFieldIdx___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_7; -x_7 = l___private_Lean_Elab_StructInst_14__getFieldIdx(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_3); -lean_dec(x_1); -return x_7; +lean_object* x_6; +x_6 = l___private_Lean_Elab_StructInst_14__getFieldIdx(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_2); +return x_6; } } lean_object* l___private_Lean_Elab_StructInst_15__mkProjStx(lean_object* x_1, lean_object* x_2) { @@ -12607,387 +12779,386 @@ lean_ctor_set(x_11, 1, x_9); return x_11; } } -lean_object* l___private_Lean_Elab_StructInst_16__mkSubstructSource(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* l___private_Lean_Elab_StructInst_16__mkSubstructSource(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: { -if (lean_obj_tag(x_5) == 2) +if (lean_obj_tag(x_4) == 2) { -uint8_t x_8; -x_8 = !lean_is_exclusive(x_5); -if (x_8 == 0) +uint8_t x_7; +x_7 = !lean_is_exclusive(x_4); +if (x_7 == 0) { -lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_9 = lean_ctor_get(x_5, 0); -x_10 = lean_ctor_get(x_5, 1); -lean_inc(x_4); -lean_inc(x_2); -x_11 = l___private_Lean_Elab_StructInst_14__getFieldIdx(x_1, x_2, x_3, x_4, x_6, x_7); -if (lean_obj_tag(x_11) == 0) +lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_8 = lean_ctor_get(x_4, 0); +x_9 = lean_ctor_get(x_4, 1); +lean_inc(x_3); +lean_inc(x_1); +x_10 = l___private_Lean_Elab_StructInst_14__getFieldIdx(x_1, x_2, x_3, x_5, x_6); +if (lean_obj_tag(x_10) == 0) { -uint8_t x_12; -x_12 = !lean_is_exclusive(x_11); -if (x_12 == 0) +uint8_t x_11; +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) { -lean_object* x_13; lean_object* x_14; -x_13 = lean_ctor_get(x_11, 0); -x_14 = l_Lean_mkProj(x_2, x_13, x_10); -if (lean_obj_tag(x_9) == 1) +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_10, 0); +x_13 = l_Lean_mkProj(x_1, x_12, x_9); +if (lean_obj_tag(x_8) == 1) { -uint8_t x_15; -x_15 = !lean_is_exclusive(x_9); -if (x_15 == 0) +uint8_t x_14; +x_14 = !lean_is_exclusive(x_8); +if (x_14 == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; -x_16 = lean_ctor_get(x_9, 1); -x_17 = lean_array_get_size(x_16); -x_18 = lean_unsigned_to_nat(0u); -x_19 = lean_nat_dec_lt(x_18, x_17); -lean_dec(x_17); -if (x_19 == 0) +lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_15 = lean_ctor_get(x_8, 1); +x_16 = lean_array_get_size(x_15); +x_17 = lean_unsigned_to_nat(0u); +x_18 = lean_nat_dec_lt(x_17, x_16); +lean_dec(x_16); +if (x_18 == 0) { -lean_dec(x_4); -lean_ctor_set(x_5, 1, x_14); -lean_ctor_set(x_11, 0, x_5); -return x_11; +lean_dec(x_3); +lean_ctor_set(x_4, 1, x_13); +lean_ctor_set(x_10, 0, x_4); +return x_10; } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_20 = lean_array_fget(x_16, x_18); -x_21 = lean_box(0); -x_22 = lean_array_fset(x_16, x_18, x_21); -x_23 = l___private_Lean_Elab_StructInst_15__mkProjStx(x_20, x_4); -x_24 = lean_array_fset(x_22, x_18, x_23); -lean_ctor_set(x_9, 1, x_24); -lean_ctor_set(x_5, 1, x_14); -lean_ctor_set(x_11, 0, x_5); -return x_11; +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_19 = lean_array_fget(x_15, x_17); +x_20 = lean_box(0); +x_21 = lean_array_fset(x_15, x_17, x_20); +x_22 = l___private_Lean_Elab_StructInst_15__mkProjStx(x_19, x_3); +x_23 = lean_array_fset(x_21, x_17, x_22); +lean_ctor_set(x_8, 1, x_23); +lean_ctor_set(x_4, 1, x_13); +lean_ctor_set(x_10, 0, x_4); +return x_10; } } else { -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; -x_25 = lean_ctor_get(x_9, 0); -x_26 = lean_ctor_get(x_9, 1); -lean_inc(x_26); +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_24 = lean_ctor_get(x_8, 0); +x_25 = lean_ctor_get(x_8, 1); lean_inc(x_25); -lean_dec(x_9); -x_27 = lean_array_get_size(x_26); -x_28 = lean_unsigned_to_nat(0u); -x_29 = lean_nat_dec_lt(x_28, x_27); -lean_dec(x_27); -if (x_29 == 0) +lean_inc(x_24); +lean_dec(x_8); +x_26 = lean_array_get_size(x_25); +x_27 = lean_unsigned_to_nat(0u); +x_28 = lean_nat_dec_lt(x_27, x_26); +lean_dec(x_26); +if (x_28 == 0) { -lean_object* x_30; -lean_dec(x_4); -x_30 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_30, 0, x_25); -lean_ctor_set(x_30, 1, x_26); -lean_ctor_set(x_5, 1, x_14); -lean_ctor_set(x_5, 0, x_30); -lean_ctor_set(x_11, 0, x_5); -return x_11; +lean_object* x_29; +lean_dec(x_3); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_24); +lean_ctor_set(x_29, 1, x_25); +lean_ctor_set(x_4, 1, x_13); +lean_ctor_set(x_4, 0, x_29); +lean_ctor_set(x_10, 0, x_4); +return x_10; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_31 = lean_array_fget(x_26, x_28); -x_32 = lean_box(0); -x_33 = lean_array_fset(x_26, x_28, x_32); -x_34 = l___private_Lean_Elab_StructInst_15__mkProjStx(x_31, x_4); -x_35 = lean_array_fset(x_33, x_28, x_34); -x_36 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_25); -lean_ctor_set(x_36, 1, x_35); -lean_ctor_set(x_5, 1, x_14); -lean_ctor_set(x_5, 0, x_36); -lean_ctor_set(x_11, 0, x_5); -return x_11; +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_30 = lean_array_fget(x_25, x_27); +x_31 = lean_box(0); +x_32 = lean_array_fset(x_25, x_27, x_31); +x_33 = l___private_Lean_Elab_StructInst_15__mkProjStx(x_30, x_3); +x_34 = lean_array_fset(x_32, x_27, x_33); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_24); +lean_ctor_set(x_35, 1, x_34); +lean_ctor_set(x_4, 1, x_13); +lean_ctor_set(x_4, 0, x_35); +lean_ctor_set(x_10, 0, x_4); +return x_10; } } } else { -lean_dec(x_4); -lean_ctor_set(x_5, 1, x_14); -lean_ctor_set(x_11, 0, x_5); -return x_11; +lean_dec(x_3); +lean_ctor_set(x_4, 1, x_13); +lean_ctor_set(x_10, 0, x_4); +return x_10; } } else { -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_11, 0); -x_38 = lean_ctor_get(x_11, 1); -lean_inc(x_38); +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_10, 0); +x_37 = lean_ctor_get(x_10, 1); lean_inc(x_37); -lean_dec(x_11); -x_39 = l_Lean_mkProj(x_2, x_37, x_10); -if (lean_obj_tag(x_9) == 1) +lean_inc(x_36); +lean_dec(x_10); +x_38 = l_Lean_mkProj(x_1, x_36, x_9); +if (lean_obj_tag(x_8) == 1) { -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; -x_40 = lean_ctor_get(x_9, 0); +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_39 = lean_ctor_get(x_8, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_8, 1); lean_inc(x_40); -x_41 = lean_ctor_get(x_9, 1); -lean_inc(x_41); -if (lean_is_exclusive(x_9)) { - lean_ctor_release(x_9, 0); - lean_ctor_release(x_9, 1); - x_42 = x_9; +if (lean_is_exclusive(x_8)) { + lean_ctor_release(x_8, 0); + lean_ctor_release(x_8, 1); + x_41 = x_8; } else { - lean_dec_ref(x_9); - x_42 = lean_box(0); + lean_dec_ref(x_8); + x_41 = lean_box(0); } -x_43 = lean_array_get_size(x_41); -x_44 = lean_unsigned_to_nat(0u); -x_45 = lean_nat_dec_lt(x_44, x_43); -lean_dec(x_43); -if (x_45 == 0) +x_42 = lean_array_get_size(x_40); +x_43 = lean_unsigned_to_nat(0u); +x_44 = lean_nat_dec_lt(x_43, x_42); +lean_dec(x_42); +if (x_44 == 0) { -lean_object* x_46; lean_object* x_47; -lean_dec(x_4); -if (lean_is_scalar(x_42)) { - x_46 = lean_alloc_ctor(1, 2, 0); +lean_object* x_45; lean_object* x_46; +lean_dec(x_3); +if (lean_is_scalar(x_41)) { + x_45 = lean_alloc_ctor(1, 2, 0); } else { - x_46 = x_42; + x_45 = x_41; } -lean_ctor_set(x_46, 0, x_40); -lean_ctor_set(x_46, 1, x_41); -lean_ctor_set(x_5, 1, x_39); -lean_ctor_set(x_5, 0, x_46); -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_5); -lean_ctor_set(x_47, 1, x_38); -return x_47; +lean_ctor_set(x_45, 0, x_39); +lean_ctor_set(x_45, 1, x_40); +lean_ctor_set(x_4, 1, x_38); +lean_ctor_set(x_4, 0, x_45); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_4); +lean_ctor_set(x_46, 1, x_37); +return x_46; } else { -lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_48 = lean_array_fget(x_41, x_44); -x_49 = lean_box(0); -x_50 = lean_array_fset(x_41, x_44, x_49); -x_51 = l___private_Lean_Elab_StructInst_15__mkProjStx(x_48, x_4); -x_52 = lean_array_fset(x_50, x_44, x_51); -if (lean_is_scalar(x_42)) { - x_53 = lean_alloc_ctor(1, 2, 0); +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_47 = lean_array_fget(x_40, x_43); +x_48 = lean_box(0); +x_49 = lean_array_fset(x_40, x_43, x_48); +x_50 = l___private_Lean_Elab_StructInst_15__mkProjStx(x_47, x_3); +x_51 = lean_array_fset(x_49, x_43, x_50); +if (lean_is_scalar(x_41)) { + x_52 = lean_alloc_ctor(1, 2, 0); } else { - x_53 = x_42; + x_52 = x_41; } -lean_ctor_set(x_53, 0, x_40); -lean_ctor_set(x_53, 1, x_52); -lean_ctor_set(x_5, 1, x_39); -lean_ctor_set(x_5, 0, x_53); +lean_ctor_set(x_52, 0, x_39); +lean_ctor_set(x_52, 1, x_51); +lean_ctor_set(x_4, 1, x_38); +lean_ctor_set(x_4, 0, x_52); +x_53 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_53, 0, x_4); +lean_ctor_set(x_53, 1, x_37); +return x_53; +} +} +else +{ +lean_object* x_54; +lean_dec(x_3); +lean_ctor_set(x_4, 1, x_38); x_54 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_54, 0, x_5); -lean_ctor_set(x_54, 1, x_38); +lean_ctor_set(x_54, 0, x_4); +lean_ctor_set(x_54, 1, x_37); return x_54; } } -else -{ -lean_object* x_55; -lean_dec(x_4); -lean_ctor_set(x_5, 1, x_39); -x_55 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_55, 0, x_5); -lean_ctor_set(x_55, 1, x_38); -return x_55; -} -} } else { -uint8_t x_56; -lean_free_object(x_5); -lean_dec(x_10); +uint8_t x_55; +lean_free_object(x_4); lean_dec(x_9); -lean_dec(x_4); -lean_dec(x_2); -x_56 = !lean_is_exclusive(x_11); -if (x_56 == 0) +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_1); +x_55 = !lean_is_exclusive(x_10); +if (x_55 == 0) { -return x_11; +return x_10; } else { -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_11, 0); -x_58 = lean_ctor_get(x_11, 1); -lean_inc(x_58); +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_10, 0); +x_57 = lean_ctor_get(x_10, 1); lean_inc(x_57); -lean_dec(x_11); -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; +lean_inc(x_56); +lean_dec(x_10); +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_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_5, 0); -x_61 = lean_ctor_get(x_5, 1); -lean_inc(x_61); +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_4, 0); +x_60 = lean_ctor_get(x_4, 1); lean_inc(x_60); -lean_dec(x_5); -lean_inc(x_4); -lean_inc(x_2); -x_62 = l___private_Lean_Elab_StructInst_14__getFieldIdx(x_1, x_2, x_3, x_4, x_6, x_7); -if (lean_obj_tag(x_62) == 0) +lean_inc(x_59); +lean_dec(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_61 = l___private_Lean_Elab_StructInst_14__getFieldIdx(x_1, x_2, x_3, x_5, x_6); +if (lean_obj_tag(x_61) == 0) { -lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_63 = lean_ctor_get(x_62, 0); +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_62 = lean_ctor_get(x_61, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_61, 1); lean_inc(x_63); -x_64 = lean_ctor_get(x_62, 1); -lean_inc(x_64); -if (lean_is_exclusive(x_62)) { - lean_ctor_release(x_62, 0); - lean_ctor_release(x_62, 1); - x_65 = x_62; +if (lean_is_exclusive(x_61)) { + lean_ctor_release(x_61, 0); + lean_ctor_release(x_61, 1); + x_64 = x_61; } else { - lean_dec_ref(x_62); - x_65 = lean_box(0); + lean_dec_ref(x_61); + x_64 = lean_box(0); } -x_66 = l_Lean_mkProj(x_2, x_63, x_61); -if (lean_obj_tag(x_60) == 1) +x_65 = l_Lean_mkProj(x_1, x_62, x_60); +if (lean_obj_tag(x_59) == 1) { -lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; uint8_t x_72; -x_67 = lean_ctor_get(x_60, 0); +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; +x_66 = lean_ctor_get(x_59, 0); +lean_inc(x_66); +x_67 = lean_ctor_get(x_59, 1); lean_inc(x_67); -x_68 = lean_ctor_get(x_60, 1); -lean_inc(x_68); -if (lean_is_exclusive(x_60)) { - lean_ctor_release(x_60, 0); - lean_ctor_release(x_60, 1); - x_69 = x_60; +if (lean_is_exclusive(x_59)) { + lean_ctor_release(x_59, 0); + lean_ctor_release(x_59, 1); + x_68 = x_59; } else { - lean_dec_ref(x_60); - x_69 = lean_box(0); + lean_dec_ref(x_59); + x_68 = lean_box(0); } -x_70 = lean_array_get_size(x_68); -x_71 = lean_unsigned_to_nat(0u); -x_72 = lean_nat_dec_lt(x_71, x_70); -lean_dec(x_70); -if (x_72 == 0) +x_69 = lean_array_get_size(x_67); +x_70 = lean_unsigned_to_nat(0u); +x_71 = lean_nat_dec_lt(x_70, x_69); +lean_dec(x_69); +if (x_71 == 0) { -lean_object* x_73; lean_object* x_74; lean_object* x_75; -lean_dec(x_4); -if (lean_is_scalar(x_69)) { - x_73 = lean_alloc_ctor(1, 2, 0); +lean_object* x_72; lean_object* x_73; lean_object* x_74; +lean_dec(x_3); +if (lean_is_scalar(x_68)) { + x_72 = lean_alloc_ctor(1, 2, 0); } else { - x_73 = x_69; + x_72 = x_68; +} +lean_ctor_set(x_72, 0, x_66); +lean_ctor_set(x_72, 1, x_67); +x_73 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_73, 0, x_72); +lean_ctor_set(x_73, 1, x_65); +if (lean_is_scalar(x_64)) { + x_74 = lean_alloc_ctor(0, 2, 0); +} else { + x_74 = x_64; } -lean_ctor_set(x_73, 0, x_67); -lean_ctor_set(x_73, 1, x_68); -x_74 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_74, 0, x_73); -lean_ctor_set(x_74, 1, x_66); -if (lean_is_scalar(x_65)) { - x_75 = lean_alloc_ctor(0, 2, 0); -} else { - x_75 = x_65; -} -lean_ctor_set(x_75, 0, x_74); -lean_ctor_set(x_75, 1, x_64); -return x_75; +lean_ctor_set(x_74, 1, x_63); +return x_74; } else { -lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_76 = lean_array_fget(x_68, x_71); -x_77 = lean_box(0); -x_78 = lean_array_fset(x_68, x_71, x_77); -x_79 = l___private_Lean_Elab_StructInst_15__mkProjStx(x_76, x_4); -x_80 = lean_array_fset(x_78, x_71, x_79); -if (lean_is_scalar(x_69)) { - x_81 = lean_alloc_ctor(1, 2, 0); +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_75 = lean_array_fget(x_67, x_70); +x_76 = lean_box(0); +x_77 = lean_array_fset(x_67, x_70, x_76); +x_78 = l___private_Lean_Elab_StructInst_15__mkProjStx(x_75, x_3); +x_79 = lean_array_fset(x_77, x_70, x_78); +if (lean_is_scalar(x_68)) { + x_80 = lean_alloc_ctor(1, 2, 0); } else { - x_81 = x_69; + x_80 = x_68; +} +lean_ctor_set(x_80, 0, x_66); +lean_ctor_set(x_80, 1, x_79); +x_81 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_81, 0, x_80); +lean_ctor_set(x_81, 1, x_65); +if (lean_is_scalar(x_64)) { + x_82 = lean_alloc_ctor(0, 2, 0); +} else { + x_82 = x_64; } -lean_ctor_set(x_81, 0, x_67); -lean_ctor_set(x_81, 1, x_80); -x_82 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_82, 0, x_81); -lean_ctor_set(x_82, 1, x_66); -if (lean_is_scalar(x_65)) { - x_83 = lean_alloc_ctor(0, 2, 0); -} else { - x_83 = x_65; -} -lean_ctor_set(x_83, 0, x_82); -lean_ctor_set(x_83, 1, x_64); -return x_83; +lean_ctor_set(x_82, 1, x_63); +return x_82; } } else { -lean_object* x_84; lean_object* x_85; -lean_dec(x_4); -x_84 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_84, 0, x_60); -lean_ctor_set(x_84, 1, x_66); -if (lean_is_scalar(x_65)) { - x_85 = lean_alloc_ctor(0, 2, 0); +lean_object* x_83; lean_object* x_84; +lean_dec(x_3); +x_83 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_83, 0, x_59); +lean_ctor_set(x_83, 1, x_65); +if (lean_is_scalar(x_64)) { + x_84 = lean_alloc_ctor(0, 2, 0); } else { - x_85 = x_65; + x_84 = x_64; } -lean_ctor_set(x_85, 0, x_84); -lean_ctor_set(x_85, 1, x_64); -return x_85; +lean_ctor_set(x_84, 0, x_83); +lean_ctor_set(x_84, 1, x_63); +return x_84; } } else { -lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; -lean_dec(x_61); +lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_dec(x_60); -lean_dec(x_4); -lean_dec(x_2); -x_86 = lean_ctor_get(x_62, 0); +lean_dec(x_59); +lean_dec(x_3); +lean_dec(x_1); +x_85 = lean_ctor_get(x_61, 0); +lean_inc(x_85); +x_86 = lean_ctor_get(x_61, 1); lean_inc(x_86); -x_87 = lean_ctor_get(x_62, 1); -lean_inc(x_87); -if (lean_is_exclusive(x_62)) { - lean_ctor_release(x_62, 0); - lean_ctor_release(x_62, 1); - x_88 = x_62; +if (lean_is_exclusive(x_61)) { + lean_ctor_release(x_61, 0); + lean_ctor_release(x_61, 1); + x_87 = x_61; } else { - lean_dec_ref(x_62); - x_88 = lean_box(0); + lean_dec_ref(x_61); + x_87 = lean_box(0); } -if (lean_is_scalar(x_88)) { - x_89 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_87)) { + x_88 = lean_alloc_ctor(1, 2, 0); } else { - x_89 = x_88; + x_88 = x_87; } -lean_ctor_set(x_89, 0, x_86); -lean_ctor_set(x_89, 1, 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_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_89 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_89, 0, x_4); +lean_ctor_set(x_89, 1, x_6); return x_89; } } } -else -{ -lean_object* x_90; -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -x_90 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_90, 0, x_5); -lean_ctor_set(x_90, 1, x_7); -return x_90; -} -} -} -lean_object* l___private_Lean_Elab_StructInst_16__mkSubstructSource___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* l___private_Lean_Elab_StructInst_16__mkSubstructSource___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_8; -x_8 = l___private_Lean_Elab_StructInst_16__mkSubstructSource(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_3); -lean_dec(x_1); -return x_8; +lean_object* x_7; +x_7 = l___private_Lean_Elab_StructInst_16__mkSubstructSource(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_2); +return x_7; } } lean_object* l___private_Lean_Elab_StructInst_17__groupFields___lambda__1(lean_object* x_1) { @@ -13059,28 +13230,27 @@ x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_17__groupField return x_1; } } -lean_object* l___private_Lean_Elab_StructInst_17__groupFields___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* l___private_Lean_Elab_StructInst_17__groupFields___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_9; lean_object* x_10; lean_object* x_11; -x_9 = lean_ctor_get(x_6, 0); -lean_inc(x_9); -x_10 = lean_ctor_get(x_6, 1); +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_7, 0); lean_inc(x_10); -lean_dec(x_6); -x_11 = l___private_Lean_Elab_StructInst_13__isSimpleField_x3f(x_10); -if (lean_obj_tag(x_11) == 0) +x_11 = lean_ctor_get(x_7, 1); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l___private_Lean_Elab_StructInst_13__isSimpleField_x3f(x_11); +if (lean_obj_tag(x_12) == 0) { -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_12 = l___private_Lean_Elab_StructInst_17__groupFields___lambda__3___closed__1; -lean_inc(x_10); -x_13 = l_List_map___main___rarg(x_12, x_10); -x_14 = l_Lean_Elab_Term_StructInst_Struct_ref(x_1); +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_13 = l___private_Lean_Elab_StructInst_17__groupFields___lambda__3___closed__1; +lean_inc(x_11); +x_14 = l_List_map___main___rarg(x_13, x_11); x_15 = l_Lean_Elab_Term_StructInst_Struct_source(x_1); -lean_inc(x_7); -lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_10); lean_inc(x_2); -x_16 = l___private_Lean_Elab_StructInst_16__mkSubstructSource(x_14, x_2, x_3, x_9, x_15, x_7, x_8); +x_16 = l___private_Lean_Elab_StructInst_16__mkSubstructSource(x_2, x_3, x_10, x_15, x_8, x_9); if (lean_obj_tag(x_16) == 0) { uint8_t x_17; @@ -13091,22 +13261,22 @@ lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean x_18 = lean_ctor_get(x_16, 0); x_19 = lean_ctor_get(x_16, 1); x_20 = l___private_Lean_Elab_StructInst_17__groupFields___lambda__3___closed__2; -x_21 = l_List_head_x21___rarg(x_20, x_10); -lean_dec(x_10); -x_22 = l_Lean_isSubobjectField_x3f(x_4, x_2, x_9); +x_21 = l_List_head_x21___rarg(x_20, x_11); +lean_dec(x_11); +x_22 = l_Lean_isSubobjectField_x3f(x_4, x_2, 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; 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; uint8_t x_41; -lean_dec(x_7); -lean_dec(x_5); +lean_dec(x_8); +lean_dec(x_6); x_23 = lean_unsigned_to_nat(4u); x_24 = l_Lean_mkOptionalNode___closed__1; -lean_inc(x_14); -x_25 = l_Lean_Syntax_setArg(x_14, x_23, x_24); -x_26 = l_List_redLength___main___rarg(x_13); +lean_inc(x_5); +x_25 = l_Lean_Syntax_setArg(x_5, x_23, x_24); +x_26 = l_List_redLength___main___rarg(x_14); x_27 = lean_mk_empty_array_with_capacity(x_26); lean_dec(x_26); -x_28 = l_List_toArrayAux___main___rarg(x_13, x_27); +x_28 = l_List_toArrayAux___main___rarg(x_14, x_27); x_29 = x_28; x_30 = l_Id_monad; x_31 = l___private_Lean_Elab_StructInst_17__groupFields___lambda__3___closed__3; @@ -13114,8 +13284,8 @@ x_32 = lean_unsigned_to_nat(0u); x_33 = l_Array_umapMAux___main___rarg(x_30, lean_box(0), x_31, x_32, x_29); x_34 = x_33; x_35 = l_Lean_List_format___rarg___closed__2; -x_36 = l_Lean_mkAtomFrom(x_14, x_35); -lean_dec(x_14); +x_36 = l_Lean_mkAtomFrom(x_5, x_35); +lean_dec(x_5); x_37 = l_Lean_mkSepStx(x_34, x_36); lean_dec(x_34); x_38 = lean_unsigned_to_nat(2u); @@ -13178,11 +13348,11 @@ x_58 = lean_ctor_get(x_22, 0); lean_inc(x_58); lean_dec(x_22); x_59 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_59, 0, x_14); +lean_ctor_set(x_59, 0, x_5); lean_ctor_set(x_59, 1, x_58); -lean_ctor_set(x_59, 2, x_13); +lean_ctor_set(x_59, 2, x_14); lean_ctor_set(x_59, 3, x_18); -x_60 = lean_apply_3(x_5, x_59, x_7, x_19); +x_60 = lean_apply_3(x_6, x_59, x_8, x_19); if (lean_obj_tag(x_60) == 0) { uint8_t x_61; @@ -13323,22 +13493,22 @@ lean_inc(x_99); lean_inc(x_98); lean_dec(x_16); x_100 = l___private_Lean_Elab_StructInst_17__groupFields___lambda__3___closed__2; -x_101 = l_List_head_x21___rarg(x_100, x_10); -lean_dec(x_10); -x_102 = l_Lean_isSubobjectField_x3f(x_4, x_2, x_9); +x_101 = l_List_head_x21___rarg(x_100, x_11); +lean_dec(x_11); +x_102 = l_Lean_isSubobjectField_x3f(x_4, x_2, x_10); if (lean_obj_tag(x_102) == 0) { lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; -lean_dec(x_7); -lean_dec(x_5); +lean_dec(x_8); +lean_dec(x_6); x_103 = lean_unsigned_to_nat(4u); x_104 = l_Lean_mkOptionalNode___closed__1; -lean_inc(x_14); -x_105 = l_Lean_Syntax_setArg(x_14, x_103, x_104); -x_106 = l_List_redLength___main___rarg(x_13); +lean_inc(x_5); +x_105 = l_Lean_Syntax_setArg(x_5, x_103, x_104); +x_106 = l_List_redLength___main___rarg(x_14); x_107 = lean_mk_empty_array_with_capacity(x_106); lean_dec(x_106); -x_108 = l_List_toArrayAux___main___rarg(x_13, x_107); +x_108 = l_List_toArrayAux___main___rarg(x_14, x_107); x_109 = x_108; x_110 = l_Id_monad; x_111 = l___private_Lean_Elab_StructInst_17__groupFields___lambda__3___closed__3; @@ -13346,8 +13516,8 @@ x_112 = lean_unsigned_to_nat(0u); x_113 = l_Array_umapMAux___main___rarg(x_110, lean_box(0), x_111, x_112, x_109); x_114 = x_113; x_115 = l_Lean_List_format___rarg___closed__2; -x_116 = l_Lean_mkAtomFrom(x_14, x_115); -lean_dec(x_14); +x_116 = l_Lean_mkAtomFrom(x_5, x_115); +lean_dec(x_5); x_117 = l_Lean_mkSepStx(x_114, x_116); lean_dec(x_114); x_118 = lean_unsigned_to_nat(2u); @@ -13399,11 +13569,11 @@ x_132 = lean_ctor_get(x_102, 0); lean_inc(x_132); lean_dec(x_102); x_133 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_133, 0, x_14); +lean_ctor_set(x_133, 0, x_5); lean_ctor_set(x_133, 1, x_132); -lean_ctor_set(x_133, 2, x_13); +lean_ctor_set(x_133, 2, x_14); lean_ctor_set(x_133, 3, x_98); -x_134 = lean_apply_3(x_5, x_133, x_7, x_99); +x_134 = lean_apply_3(x_6, x_133, x_8, x_99); if (lean_obj_tag(x_134) == 0) { lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; @@ -13494,10 +13664,10 @@ else { uint8_t x_153; lean_dec(x_14); -lean_dec(x_13); +lean_dec(x_11); lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_7); +lean_dec(x_8); +lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); @@ -13524,75 +13694,78 @@ return x_156; else { lean_object* x_157; lean_object* x_158; +lean_dec(x_11); lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_7); +lean_dec(x_8); +lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_157 = lean_ctor_get(x_11, 0); +x_157 = lean_ctor_get(x_12, 0); lean_inc(x_157); -lean_dec(x_11); +lean_dec(x_12); x_158 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_158, 0, x_157); -lean_ctor_set(x_158, 1, x_8); +lean_ctor_set(x_158, 1, x_9); return x_158; } } } -lean_object* l___private_Lean_Elab_StructInst_17__groupFields___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_StructInst_17__groupFields___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -lean_object* x_10; -lean_inc(x_8); -x_10 = l___private_Lean_Elab_StructInst_12__mkFieldMap(x_7, x_8, x_9); -if (lean_obj_tag(x_10) == 0) +lean_object* x_11; +lean_inc(x_9); +x_11 = l___private_Lean_Elab_StructInst_12__mkFieldMap(x_8, x_9, x_10); +if (lean_obj_tag(x_11) == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -x_12 = lean_ctor_get(x_10, 1); +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); -lean_dec(x_10); -x_13 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_17__groupFields___lambda__3___boxed), 8, 5); -lean_closure_set(x_13, 0, x_1); -lean_closure_set(x_13, 1, x_2); -lean_closure_set(x_13, 2, x_3); -lean_closure_set(x_13, 3, x_4); -lean_closure_set(x_13, 4, x_5); -x_14 = l_Std_HashMap_toList___rarg(x_11); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); lean_dec(x_11); -x_15 = l_List_mapM___main___rarg(x_6, lean_box(0), lean_box(0), x_13, x_14); -x_16 = lean_apply_2(x_15, x_8, x_12); -return x_16; +x_14 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_17__groupFields___lambda__3___boxed), 9, 6); +lean_closure_set(x_14, 0, x_1); +lean_closure_set(x_14, 1, x_2); +lean_closure_set(x_14, 2, x_3); +lean_closure_set(x_14, 3, x_4); +lean_closure_set(x_14, 4, x_5); +lean_closure_set(x_14, 5, x_6); +x_15 = l_Std_HashMap_toList___rarg(x_12); +lean_dec(x_12); +x_16 = l_List_mapM___main___rarg(x_7, lean_box(0), lean_box(0), x_14, x_15); +x_17 = lean_apply_2(x_16, x_9, x_13); +return x_17; } else { -uint8_t x_17; -lean_dec(x_8); +uint8_t x_18; +lean_dec(x_9); +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); -x_17 = !lean_is_exclusive(x_10); -if (x_17 == 0) +x_18 = !lean_is_exclusive(x_11); +if (x_18 == 0) { -return x_10; +return x_11; } else { -lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_18 = lean_ctor_get(x_10, 0); -x_19 = lean_ctor_get(x_10, 1); +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_inc(x_18); -lean_dec(x_10); -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_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; } } } @@ -13600,7 +13773,7 @@ return x_20; lean_object* l___private_Lean_Elab_StructInst_17__groupFields(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +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; uint8_t x_13; x_5 = l_Lean_Elab_Term_getEnv___rarg(x_4); x_6 = lean_ctor_get(x_5, 0); lean_inc(x_6); @@ -13611,18 +13784,75 @@ x_8 = l_Lean_Elab_Term_StructInst_Struct_structName(x_2); lean_inc(x_8); lean_inc(x_6); x_9 = l_Lean_getStructureFields(x_6, x_8); -x_10 = l_Lean_MetavarContext_MkBinding_mkBinding___closed__1; +x_10 = l_Lean_Elab_Term_StructInst_Struct_ref(x_2); +x_11 = l_Lean_MetavarContext_MkBinding_mkBinding___closed__1; +lean_inc(x_10); lean_inc(x_2); -x_11 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_17__groupFields___lambda__4), 9, 6); -lean_closure_set(x_11, 0, x_2); -lean_closure_set(x_11, 1, x_8); -lean_closure_set(x_11, 2, x_9); -lean_closure_set(x_11, 3, x_6); -lean_closure_set(x_11, 4, x_1); -lean_closure_set(x_11, 5, x_10); -x_12 = l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM___rarg(x_10, x_2, x_11); -x_13 = lean_apply_2(x_12, x_3, x_7); -return x_13; +x_12 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_17__groupFields___lambda__4), 10, 7); +lean_closure_set(x_12, 0, x_2); +lean_closure_set(x_12, 1, x_8); +lean_closure_set(x_12, 2, x_9); +lean_closure_set(x_12, 3, x_6); +lean_closure_set(x_12, 4, x_10); +lean_closure_set(x_12, 5, x_1); +lean_closure_set(x_12, 6, x_11); +x_13 = !lean_is_exclusive(x_3); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_3, 10); +lean_dec(x_14); +lean_ctor_set(x_3, 10, x_10); +x_15 = l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM___rarg(x_11, x_2, x_12); +x_16 = lean_apply_2(x_15, x_3, x_7); +return x_16; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; uint8_t x_28; uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_17 = lean_ctor_get(x_3, 0); +x_18 = lean_ctor_get(x_3, 1); +x_19 = lean_ctor_get(x_3, 2); +x_20 = lean_ctor_get(x_3, 3); +x_21 = lean_ctor_get(x_3, 4); +x_22 = lean_ctor_get(x_3, 5); +x_23 = lean_ctor_get(x_3, 6); +x_24 = lean_ctor_get(x_3, 7); +x_25 = lean_ctor_get(x_3, 8); +x_26 = lean_ctor_get(x_3, 9); +x_27 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_28 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_29 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +lean_inc(x_26); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_3); +x_30 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_30, 0, x_17); +lean_ctor_set(x_30, 1, x_18); +lean_ctor_set(x_30, 2, x_19); +lean_ctor_set(x_30, 3, x_20); +lean_ctor_set(x_30, 4, x_21); +lean_ctor_set(x_30, 5, x_22); +lean_ctor_set(x_30, 6, x_23); +lean_ctor_set(x_30, 7, x_24); +lean_ctor_set(x_30, 8, x_25); +lean_ctor_set(x_30, 9, x_26); +lean_ctor_set(x_30, 10, x_10); +lean_ctor_set_uint8(x_30, sizeof(void*)*11, x_27); +lean_ctor_set_uint8(x_30, sizeof(void*)*11 + 1, x_28); +lean_ctor_set_uint8(x_30, sizeof(void*)*11 + 2, x_29); +x_31 = l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM___rarg(x_11, x_2, x_12); +x_32 = lean_apply_2(x_31, x_30, x_7); +return x_32; +} } } lean_object* l___private_Lean_Elab_StructInst_17__groupFields___lambda__2___boxed(lean_object* x_1, lean_object* x_2) { @@ -13634,14 +13864,14 @@ lean_dec(x_1); return x_3; } } -lean_object* l___private_Lean_Elab_StructInst_17__groupFields___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* l___private_Lean_Elab_StructInst_17__groupFields___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_9; -x_9 = l___private_Lean_Elab_StructInst_17__groupFields___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_object* x_10; +x_10 = l___private_Lean_Elab_StructInst_17__groupFields___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_3); lean_dec(x_1); -return x_9; +return x_10; } } uint8_t l_Lean_Elab_Term_StructInst_findField_x3f___lambda__1(lean_object* x_1, lean_object* x_2) { @@ -13828,7 +14058,7 @@ lean_dec(x_15); x_45 = l_Lean_Elab_Term_StructInst_Struct_source(x_1); lean_inc(x_11); lean_inc(x_9); -x_46 = l___private_Lean_Elab_StructInst_16__mkSubstructSource(x_4, x_3, x_6, x_9, x_45, x_11, x_12); +x_46 = l___private_Lean_Elab_StructInst_16__mkSubstructSource(x_3, x_6, x_9, x_45, x_11, x_12); if (lean_obj_tag(x_46) == 0) { lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; @@ -13990,7 +14220,7 @@ return x_78; lean_object* l___private_Lean_Elab_StructInst_18__addMissingFields(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_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_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; uint8_t x_13; x_5 = l_Lean_Elab_Term_getEnv___rarg(x_4); x_6 = lean_ctor_get(x_5, 0); lean_inc(x_6); @@ -14004,6 +14234,7 @@ x_9 = l_Lean_getStructureFields(x_6, x_8); x_10 = l_Lean_Elab_Term_StructInst_Struct_ref(x_2); x_11 = lean_box(0); lean_inc(x_9); +lean_inc(x_10); lean_inc(x_2); x_12 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_18__addMissingFields___lambda__1___boxed), 12, 7); lean_closure_set(x_12, 0, x_2); @@ -14013,60 +14244,166 @@ lean_closure_set(x_12, 3, x_10); lean_closure_set(x_12, 4, x_11); lean_closure_set(x_12, 5, x_9); lean_closure_set(x_12, 6, x_1); -x_13 = l_Lean_MetavarContext_MkBinding_mkBinding___closed__1; -x_14 = lean_unsigned_to_nat(0u); -x_15 = l_Array_iterateMAux___main___rarg(x_13, lean_box(0), x_9, x_12, x_14, x_11); -x_16 = lean_apply_2(x_15, x_3, x_7); -if (lean_obj_tag(x_16) == 0) +x_13 = !lean_is_exclusive(x_3); +if (x_13 == 0) { -uint8_t x_17; -x_17 = !lean_is_exclusive(x_16); -if (x_17 == 0) +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_14 = lean_ctor_get(x_3, 10); +lean_dec(x_14); +lean_ctor_set(x_3, 10, x_10); +x_15 = l_Lean_MetavarContext_MkBinding_mkBinding___closed__1; +x_16 = lean_unsigned_to_nat(0u); +x_17 = l_Array_iterateMAux___main___rarg(x_15, lean_box(0), x_9, x_12, x_16, x_11); +x_18 = lean_apply_2(x_17, x_3, x_7); +if (lean_obj_tag(x_18) == 0) { -lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_18 = lean_ctor_get(x_16, 0); -x_19 = l_List_reverse___rarg(x_18); -x_20 = l_Lean_Elab_Term_StructInst_Struct_setFields(x_2, x_19); -lean_ctor_set(x_16, 0, x_20); -return x_16; +uint8_t x_19; +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_18, 0); +x_21 = l_List_reverse___rarg(x_20); +x_22 = l_Lean_Elab_Term_StructInst_Struct_setFields(x_2, x_21); +lean_ctor_set(x_18, 0, x_22); +return x_18; } else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_21 = lean_ctor_get(x_16, 0); -x_22 = lean_ctor_get(x_16, 1); -lean_inc(x_22); -lean_inc(x_21); -lean_dec(x_16); -x_23 = l_List_reverse___rarg(x_21); -x_24 = l_Lean_Elab_Term_StructInst_Struct_setFields(x_2, 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_22); -return x_25; +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_23 = lean_ctor_get(x_18, 0); +x_24 = lean_ctor_get(x_18, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_18); +x_25 = l_List_reverse___rarg(x_23); +x_26 = l_Lean_Elab_Term_StructInst_Struct_setFields(x_2, x_25); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_24); +return x_27; } } else { -uint8_t x_26; +uint8_t x_28; lean_dec(x_2); -x_26 = !lean_is_exclusive(x_16); -if (x_26 == 0) +x_28 = !lean_is_exclusive(x_18); +if (x_28 == 0) { -return x_16; +return x_18; } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_16, 0); -x_28 = lean_ctor_get(x_16, 1); -lean_inc(x_28); -lean_inc(x_27); -lean_dec(x_16); -x_29 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_29, 0, x_27); -lean_ctor_set(x_29, 1, x_28); -return x_29; +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_18, 0); +x_30 = lean_ctor_get(x_18, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_18); +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; +} +} +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; uint8_t x_43; uint8_t x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_32 = lean_ctor_get(x_3, 0); +x_33 = lean_ctor_get(x_3, 1); +x_34 = lean_ctor_get(x_3, 2); +x_35 = lean_ctor_get(x_3, 3); +x_36 = lean_ctor_get(x_3, 4); +x_37 = lean_ctor_get(x_3, 5); +x_38 = lean_ctor_get(x_3, 6); +x_39 = lean_ctor_get(x_3, 7); +x_40 = lean_ctor_get(x_3, 8); +x_41 = lean_ctor_get(x_3, 9); +x_42 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_43 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_44 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +lean_inc(x_41); +lean_inc(x_40); +lean_inc(x_39); +lean_inc(x_38); +lean_inc(x_37); +lean_inc(x_36); +lean_inc(x_35); +lean_inc(x_34); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_3); +x_45 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_45, 0, x_32); +lean_ctor_set(x_45, 1, x_33); +lean_ctor_set(x_45, 2, x_34); +lean_ctor_set(x_45, 3, x_35); +lean_ctor_set(x_45, 4, x_36); +lean_ctor_set(x_45, 5, x_37); +lean_ctor_set(x_45, 6, x_38); +lean_ctor_set(x_45, 7, x_39); +lean_ctor_set(x_45, 8, x_40); +lean_ctor_set(x_45, 9, x_41); +lean_ctor_set(x_45, 10, x_10); +lean_ctor_set_uint8(x_45, sizeof(void*)*11, x_42); +lean_ctor_set_uint8(x_45, sizeof(void*)*11 + 1, x_43); +lean_ctor_set_uint8(x_45, sizeof(void*)*11 + 2, x_44); +x_46 = l_Lean_MetavarContext_MkBinding_mkBinding___closed__1; +x_47 = lean_unsigned_to_nat(0u); +x_48 = l_Array_iterateMAux___main___rarg(x_46, lean_box(0), x_9, x_12, x_47, x_11); +x_49 = lean_apply_2(x_48, x_45, x_7); +if (lean_obj_tag(x_49) == 0) +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_50 = lean_ctor_get(x_49, 0); +lean_inc(x_50); +x_51 = lean_ctor_get(x_49, 1); +lean_inc(x_51); +if (lean_is_exclusive(x_49)) { + lean_ctor_release(x_49, 0); + lean_ctor_release(x_49, 1); + x_52 = x_49; +} else { + lean_dec_ref(x_49); + x_52 = lean_box(0); +} +x_53 = l_List_reverse___rarg(x_50); +x_54 = l_Lean_Elab_Term_StructInst_Struct_setFields(x_2, x_53); +if (lean_is_scalar(x_52)) { + x_55 = lean_alloc_ctor(0, 2, 0); +} else { + x_55 = x_52; +} +lean_ctor_set(x_55, 0, x_54); +lean_ctor_set(x_55, 1, x_51); +return x_55; +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +lean_dec(x_2); +x_56 = lean_ctor_get(x_49, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_49, 1); +lean_inc(x_57); +if (lean_is_exclusive(x_49)) { + lean_ctor_release(x_49, 0); + lean_ctor_release(x_49, 1); + x_58 = x_49; +} else { + lean_dec_ref(x_49); + x_58 = lean_box(0); +} +if (lean_is_scalar(x_58)) { + x_59 = lean_alloc_ctor(1, 2, 0); +} else { + x_59 = x_58; +} +lean_ctor_set(x_59, 0, x_56); +lean_ctor_set(x_59, 1, x_57); +return x_59; } } } @@ -14322,47 +14659,47 @@ x_5 = l_Array_iterateMAux___main___at___private_Lean_Elab_StructInst_19__expandS return x_5; } } -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__9(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* l_List_mapM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__9(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_5) == 0) +if (lean_obj_tag(x_6) == 0) { -lean_object* x_8; lean_object* x_9; -lean_dec(x_6); +lean_object* x_9; lean_object* x_10; +lean_dec(x_7); +lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_8 = lean_box(0); -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_8); -lean_ctor_set(x_9, 1, x_7); -return x_9; +x_9 = lean_box(0); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_8); +return x_10; } else { -uint8_t x_10; -x_10 = !lean_is_exclusive(x_5); -if (x_10 == 0) +uint8_t x_11; +x_11 = !lean_is_exclusive(x_6); +if (x_11 == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_11 = lean_ctor_get(x_5, 0); -x_12 = lean_ctor_get(x_5, 1); -x_13 = lean_ctor_get(x_11, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_11, 1); +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_12 = lean_ctor_get(x_6, 0); +x_13 = lean_ctor_get(x_6, 1); +x_14 = lean_ctor_get(x_12, 0); lean_inc(x_14); -lean_dec(x_11); -x_15 = l___private_Lean_Elab_StructInst_13__isSimpleField_x3f(x_14); -if (lean_obj_tag(x_15) == 0) +x_15 = lean_ctor_get(x_12, 1); +lean_inc(x_15); +lean_dec(x_12); +x_16 = l___private_Lean_Elab_StructInst_13__isSimpleField_x3f(x_15); +if (lean_obj_tag(x_16) == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -lean_inc(x_14); -x_16 = l_List_map___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__2(x_14); -x_17 = l_Lean_Elab_Term_StructInst_Struct_ref(x_1); +lean_object* x_17; lean_object* x_18; lean_object* x_19; +lean_inc(x_15); +x_17 = l_List_map___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__2(x_15); x_18 = l_Lean_Elab_Term_StructInst_Struct_source(x_1); -lean_inc(x_6); -lean_inc(x_13); +lean_inc(x_7); +lean_inc(x_14); lean_inc(x_3); -x_19 = l___private_Lean_Elab_StructInst_16__mkSubstructSource(x_17, x_3, x_4, x_13, x_18, x_6, x_7); +x_19 = l___private_Lean_Elab_StructInst_16__mkSubstructSource(x_3, x_4, x_14, x_18, x_7, x_8); if (lean_obj_tag(x_19) == 0) { lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; @@ -14371,29 +14708,28 @@ lean_inc(x_20); x_21 = lean_ctor_get(x_19, 1); lean_inc(x_21); lean_dec(x_19); -x_22 = l_List_head_x21___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__3(x_14); -lean_dec(x_14); +x_22 = l_List_head_x21___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__3(x_15); +lean_dec(x_15); lean_inc(x_3); lean_inc(x_2); -x_23 = l_Lean_isSubobjectField_x3f(x_2, x_3, x_13); +x_23 = l_Lean_isSubobjectField_x3f(x_2, x_3, x_14); 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; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; x_24 = lean_unsigned_to_nat(4u); x_25 = l_Lean_mkOptionalNode___closed__1; -lean_inc(x_17); -x_26 = l_Lean_Syntax_setArg(x_17, x_24, x_25); -x_27 = l_List_redLength___main___rarg(x_16); +lean_inc(x_5); +x_26 = l_Lean_Syntax_setArg(x_5, x_24, x_25); +x_27 = l_List_redLength___main___rarg(x_17); x_28 = lean_mk_empty_array_with_capacity(x_27); lean_dec(x_27); -x_29 = l_List_toArrayAux___main___rarg(x_16, x_28); +x_29 = l_List_toArrayAux___main___rarg(x_17, x_28); x_30 = x_29; x_31 = lean_unsigned_to_nat(0u); x_32 = l_Array_umapMAux___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__4(x_31, x_30); x_33 = x_32; x_34 = l_Lean_List_format___rarg___closed__2; -x_35 = l_Lean_mkAtomFrom(x_17, x_34); -lean_dec(x_17); +x_35 = l_Lean_mkAtomFrom(x_5, x_34); x_36 = l_Lean_mkSepStx(x_33, x_35); lean_dec(x_33); x_37 = lean_unsigned_to_nat(2u); @@ -14409,13 +14745,13 @@ lean_dec(x_42); x_43 = l_List_head_x21___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__5(x_41); lean_dec(x_41); x_44 = lean_box(0); -lean_ctor_set(x_5, 1, x_44); -lean_ctor_set(x_5, 0, x_43); +lean_ctor_set(x_6, 1, x_44); +lean_ctor_set(x_6, 0, x_43); x_45 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_45, 0, x_39); lean_ctor_set(x_22, 2, x_45); -lean_ctor_set(x_22, 1, x_5); -x_46 = l_List_mapM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__9(x_1, x_2, x_3, x_4, x_12, x_6, x_21); +lean_ctor_set(x_22, 1, x_6); +x_46 = l_List_mapM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__9(x_1, x_2, x_3, x_4, x_5, x_13, x_7, x_21); if (lean_obj_tag(x_46) == 0) { uint8_t x_47; @@ -14484,16 +14820,16 @@ lean_dec(x_22); x_61 = l_List_head_x21___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__5(x_59); lean_dec(x_59); x_62 = lean_box(0); -lean_ctor_set(x_5, 1, x_62); -lean_ctor_set(x_5, 0, x_61); +lean_ctor_set(x_6, 1, x_62); +lean_ctor_set(x_6, 0, x_61); x_63 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_63, 0, x_39); x_64 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_64, 0, x_58); -lean_ctor_set(x_64, 1, x_5); +lean_ctor_set(x_64, 1, x_6); lean_ctor_set(x_64, 2, x_63); lean_ctor_set(x_64, 3, x_60); -x_65 = l_List_mapM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__9(x_1, x_2, x_3, x_4, x_12, x_6, x_21); +x_65 = l_List_mapM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__9(x_1, x_2, x_3, x_4, x_5, x_13, x_7, x_21); if (lean_obj_tag(x_65) == 0) { lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; @@ -14554,13 +14890,14 @@ lean_object* x_75; lean_object* x_76; lean_object* x_77; x_75 = lean_ctor_get(x_23, 0); lean_inc(x_75); lean_dec(x_23); +lean_inc(x_5); x_76 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_76, 0, x_17); +lean_ctor_set(x_76, 0, x_5); lean_ctor_set(x_76, 1, x_75); -lean_ctor_set(x_76, 2, x_16); +lean_ctor_set(x_76, 2, x_17); lean_ctor_set(x_76, 3, x_20); -lean_inc(x_6); -x_77 = l___private_Lean_Elab_StructInst_19__expandStruct___main(x_76, x_6, x_21); +lean_inc(x_7); +x_77 = l___private_Lean_Elab_StructInst_19__expandStruct___main(x_76, x_7, x_21); if (lean_obj_tag(x_77) == 0) { lean_object* x_78; lean_object* x_79; uint8_t x_80; @@ -14579,13 +14916,13 @@ lean_dec(x_82); x_83 = l_List_head_x21___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__5(x_81); lean_dec(x_81); x_84 = lean_box(0); -lean_ctor_set(x_5, 1, x_84); -lean_ctor_set(x_5, 0, x_83); +lean_ctor_set(x_6, 1, x_84); +lean_ctor_set(x_6, 0, x_83); x_85 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_85, 0, x_78); lean_ctor_set(x_22, 2, x_85); -lean_ctor_set(x_22, 1, x_5); -x_86 = l_List_mapM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__9(x_1, x_2, x_3, x_4, x_12, x_6, x_79); +lean_ctor_set(x_22, 1, x_6); +x_86 = l_List_mapM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__9(x_1, x_2, x_3, x_4, x_5, x_13, x_7, x_79); if (lean_obj_tag(x_86) == 0) { uint8_t x_87; @@ -14654,16 +14991,16 @@ lean_dec(x_22); x_101 = l_List_head_x21___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__5(x_99); lean_dec(x_99); x_102 = lean_box(0); -lean_ctor_set(x_5, 1, x_102); -lean_ctor_set(x_5, 0, x_101); +lean_ctor_set(x_6, 1, x_102); +lean_ctor_set(x_6, 0, x_101); x_103 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_103, 0, x_78); x_104 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_104, 0, x_98); -lean_ctor_set(x_104, 1, x_5); +lean_ctor_set(x_104, 1, x_6); lean_ctor_set(x_104, 2, x_103); lean_ctor_set(x_104, 3, x_100); -x_105 = l_List_mapM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__9(x_1, x_2, x_3, x_4, x_12, x_6, x_79); +x_105 = l_List_mapM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__9(x_1, x_2, x_3, x_4, x_5, x_13, x_7, x_79); if (lean_obj_tag(x_105) == 0) { lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; @@ -14722,9 +15059,10 @@ else { uint8_t x_115; lean_dec(x_22); -lean_free_object(x_5); -lean_dec(x_12); -lean_dec(x_6); +lean_free_object(x_6); +lean_dec(x_13); +lean_dec(x_7); +lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); x_115 = !lean_is_exclusive(x_77); @@ -14752,12 +15090,12 @@ else { uint8_t x_119; lean_dec(x_17); -lean_dec(x_16); +lean_dec(x_15); lean_dec(x_14); +lean_free_object(x_6); lean_dec(x_13); -lean_free_object(x_5); -lean_dec(x_12); -lean_dec(x_6); +lean_dec(x_7); +lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); x_119 = !lean_is_exclusive(x_19); @@ -14783,12 +15121,12 @@ return x_122; else { lean_object* x_123; lean_object* x_124; -lean_dec(x_14); -lean_dec(x_13); -x_123 = lean_ctor_get(x_15, 0); -lean_inc(x_123); lean_dec(x_15); -x_124 = l_List_mapM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__9(x_1, x_2, x_3, x_4, x_12, x_6, x_7); +lean_dec(x_14); +x_123 = lean_ctor_get(x_16, 0); +lean_inc(x_123); +lean_dec(x_16); +x_124 = l_List_mapM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__9(x_1, x_2, x_3, x_4, x_5, x_13, x_7, x_8); if (lean_obj_tag(x_124) == 0) { uint8_t x_125; @@ -14797,9 +15135,9 @@ if (x_125 == 0) { lean_object* x_126; x_126 = lean_ctor_get(x_124, 0); -lean_ctor_set(x_5, 1, x_126); -lean_ctor_set(x_5, 0, x_123); -lean_ctor_set(x_124, 0, x_5); +lean_ctor_set(x_6, 1, x_126); +lean_ctor_set(x_6, 0, x_123); +lean_ctor_set(x_124, 0, x_6); return x_124; } else @@ -14810,10 +15148,10 @@ x_128 = lean_ctor_get(x_124, 1); lean_inc(x_128); lean_inc(x_127); lean_dec(x_124); -lean_ctor_set(x_5, 1, x_127); -lean_ctor_set(x_5, 0, x_123); +lean_ctor_set(x_6, 1, x_127); +lean_ctor_set(x_6, 0, x_123); x_129 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_129, 0, x_5); +lean_ctor_set(x_129, 0, x_6); lean_ctor_set(x_129, 1, x_128); return x_129; } @@ -14822,7 +15160,7 @@ else { uint8_t x_130; lean_dec(x_123); -lean_free_object(x_5); +lean_free_object(x_6); x_130 = !lean_is_exclusive(x_124); if (x_130 == 0) { @@ -14847,11 +15185,11 @@ return x_133; else { lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; -x_134 = lean_ctor_get(x_5, 0); -x_135 = lean_ctor_get(x_5, 1); +x_134 = lean_ctor_get(x_6, 0); +x_135 = lean_ctor_get(x_6, 1); lean_inc(x_135); lean_inc(x_134); -lean_dec(x_5); +lean_dec(x_6); x_136 = lean_ctor_get(x_134, 0); lean_inc(x_136); x_137 = lean_ctor_get(x_134, 1); @@ -14860,418 +15198,419 @@ lean_dec(x_134); x_138 = l___private_Lean_Elab_StructInst_13__isSimpleField_x3f(x_137); if (lean_obj_tag(x_138) == 0) { -lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; +lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_inc(x_137); x_139 = l_List_map___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__2(x_137); -x_140 = l_Lean_Elab_Term_StructInst_Struct_ref(x_1); -x_141 = l_Lean_Elab_Term_StructInst_Struct_source(x_1); -lean_inc(x_6); +x_140 = l_Lean_Elab_Term_StructInst_Struct_source(x_1); +lean_inc(x_7); lean_inc(x_136); lean_inc(x_3); -x_142 = l___private_Lean_Elab_StructInst_16__mkSubstructSource(x_140, x_3, x_4, x_136, x_141, x_6, x_7); -if (lean_obj_tag(x_142) == 0) +x_141 = l___private_Lean_Elab_StructInst_16__mkSubstructSource(x_3, x_4, x_136, x_140, x_7, x_8); +if (lean_obj_tag(x_141) == 0) { -lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; -x_143 = lean_ctor_get(x_142, 0); +lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; +x_142 = lean_ctor_get(x_141, 0); +lean_inc(x_142); +x_143 = lean_ctor_get(x_141, 1); lean_inc(x_143); -x_144 = lean_ctor_get(x_142, 1); -lean_inc(x_144); -lean_dec(x_142); -x_145 = l_List_head_x21___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__3(x_137); +lean_dec(x_141); +x_144 = l_List_head_x21___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__3(x_137); lean_dec(x_137); lean_inc(x_3); lean_inc(x_2); -x_146 = l_Lean_isSubobjectField_x3f(x_2, x_3, x_136); -if (lean_obj_tag(x_146) == 0) +x_145 = l_Lean_isSubobjectField_x3f(x_2, x_3, x_136); +if (lean_obj_tag(x_145) == 0) { -lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; -x_147 = lean_unsigned_to_nat(4u); -x_148 = l_Lean_mkOptionalNode___closed__1; -lean_inc(x_140); -x_149 = l_Lean_Syntax_setArg(x_140, x_147, x_148); -x_150 = l_List_redLength___main___rarg(x_139); -x_151 = lean_mk_empty_array_with_capacity(x_150); -lean_dec(x_150); -x_152 = l_List_toArrayAux___main___rarg(x_139, x_151); -x_153 = x_152; -x_154 = lean_unsigned_to_nat(0u); -x_155 = l_Array_umapMAux___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__4(x_154, x_153); -x_156 = x_155; -x_157 = l_Lean_List_format___rarg___closed__2; -x_158 = l_Lean_mkAtomFrom(x_140, x_157); -lean_dec(x_140); -x_159 = l_Lean_mkSepStx(x_156, x_158); -lean_dec(x_156); -x_160 = lean_unsigned_to_nat(2u); -x_161 = l_Lean_Syntax_setArg(x_149, x_160, x_159); -x_162 = l_Lean_Elab_Term_StructInst_setStructSourceSyntax(x_161, x_143); -x_163 = lean_ctor_get(x_145, 0); +lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; +x_146 = lean_unsigned_to_nat(4u); +x_147 = l_Lean_mkOptionalNode___closed__1; +lean_inc(x_5); +x_148 = l_Lean_Syntax_setArg(x_5, x_146, x_147); +x_149 = l_List_redLength___main___rarg(x_139); +x_150 = lean_mk_empty_array_with_capacity(x_149); +lean_dec(x_149); +x_151 = l_List_toArrayAux___main___rarg(x_139, x_150); +x_152 = x_151; +x_153 = lean_unsigned_to_nat(0u); +x_154 = l_Array_umapMAux___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__4(x_153, x_152); +x_155 = x_154; +x_156 = l_Lean_List_format___rarg___closed__2; +x_157 = l_Lean_mkAtomFrom(x_5, x_156); +x_158 = l_Lean_mkSepStx(x_155, x_157); +lean_dec(x_155); +x_159 = lean_unsigned_to_nat(2u); +x_160 = l_Lean_Syntax_setArg(x_148, x_159, x_158); +x_161 = l_Lean_Elab_Term_StructInst_setStructSourceSyntax(x_160, x_142); +x_162 = lean_ctor_get(x_144, 0); +lean_inc(x_162); +x_163 = lean_ctor_get(x_144, 1); lean_inc(x_163); -x_164 = lean_ctor_get(x_145, 1); +x_164 = lean_ctor_get(x_144, 3); lean_inc(x_164); -x_165 = lean_ctor_get(x_145, 3); -lean_inc(x_165); -if (lean_is_exclusive(x_145)) { - lean_ctor_release(x_145, 0); - lean_ctor_release(x_145, 1); - lean_ctor_release(x_145, 2); - lean_ctor_release(x_145, 3); - x_166 = x_145; +if (lean_is_exclusive(x_144)) { + lean_ctor_release(x_144, 0); + lean_ctor_release(x_144, 1); + lean_ctor_release(x_144, 2); + lean_ctor_release(x_144, 3); + x_165 = x_144; } else { - lean_dec_ref(x_145); - x_166 = lean_box(0); + lean_dec_ref(x_144); + x_165 = lean_box(0); +} +x_166 = l_List_head_x21___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__5(x_163); +lean_dec(x_163); +x_167 = lean_box(0); +x_168 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_168, 0, x_166); +lean_ctor_set(x_168, 1, x_167); +x_169 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_169, 0, x_161); +if (lean_is_scalar(x_165)) { + x_170 = lean_alloc_ctor(0, 4, 0); +} else { + x_170 = x_165; } -x_167 = l_List_head_x21___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__5(x_164); -lean_dec(x_164); -x_168 = lean_box(0); -x_169 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_169, 0, x_167); -lean_ctor_set(x_169, 1, x_168); -x_170 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_170, 0, x_162); -if (lean_is_scalar(x_166)) { - x_171 = lean_alloc_ctor(0, 4, 0); -} else { - x_171 = x_166; -} -lean_ctor_set(x_171, 0, x_163); -lean_ctor_set(x_171, 1, x_169); -lean_ctor_set(x_171, 2, x_170); -lean_ctor_set(x_171, 3, x_165); -x_172 = l_List_mapM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__9(x_1, x_2, x_3, x_4, x_135, x_6, x_144); -if (lean_obj_tag(x_172) == 0) +lean_ctor_set(x_170, 1, x_168); +lean_ctor_set(x_170, 2, x_169); +lean_ctor_set(x_170, 3, x_164); +x_171 = l_List_mapM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__9(x_1, x_2, x_3, x_4, x_5, x_135, x_7, x_143); +if (lean_obj_tag(x_171) == 0) { -lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; -x_173 = lean_ctor_get(x_172, 0); +lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; +x_172 = lean_ctor_get(x_171, 0); +lean_inc(x_172); +x_173 = lean_ctor_get(x_171, 1); lean_inc(x_173); -x_174 = lean_ctor_get(x_172, 1); -lean_inc(x_174); -if (lean_is_exclusive(x_172)) { - lean_ctor_release(x_172, 0); - lean_ctor_release(x_172, 1); - x_175 = x_172; +if (lean_is_exclusive(x_171)) { + lean_ctor_release(x_171, 0); + lean_ctor_release(x_171, 1); + x_174 = x_171; } else { - lean_dec_ref(x_172); - x_175 = lean_box(0); + lean_dec_ref(x_171); + x_174 = lean_box(0); } -x_176 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_176, 0, x_171); +x_175 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_175, 0, x_170); +lean_ctor_set(x_175, 1, x_172); +if (lean_is_scalar(x_174)) { + x_176 = lean_alloc_ctor(0, 2, 0); +} else { + x_176 = x_174; +} +lean_ctor_set(x_176, 0, x_175); lean_ctor_set(x_176, 1, x_173); -if (lean_is_scalar(x_175)) { - x_177 = lean_alloc_ctor(0, 2, 0); -} else { - x_177 = x_175; -} -lean_ctor_set(x_177, 0, x_176); -lean_ctor_set(x_177, 1, x_174); -return x_177; +return x_176; } else { -lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; -lean_dec(x_171); -x_178 = lean_ctor_get(x_172, 0); +lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; +lean_dec(x_170); +x_177 = lean_ctor_get(x_171, 0); +lean_inc(x_177); +x_178 = lean_ctor_get(x_171, 1); lean_inc(x_178); -x_179 = lean_ctor_get(x_172, 1); -lean_inc(x_179); -if (lean_is_exclusive(x_172)) { - lean_ctor_release(x_172, 0); - lean_ctor_release(x_172, 1); - x_180 = x_172; +if (lean_is_exclusive(x_171)) { + lean_ctor_release(x_171, 0); + lean_ctor_release(x_171, 1); + x_179 = x_171; } else { - lean_dec_ref(x_172); - x_180 = lean_box(0); + lean_dec_ref(x_171); + x_179 = lean_box(0); } -if (lean_is_scalar(x_180)) { - x_181 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_179)) { + x_180 = lean_alloc_ctor(1, 2, 0); } else { - x_181 = x_180; + x_180 = x_179; } -lean_ctor_set(x_181, 0, x_178); -lean_ctor_set(x_181, 1, x_179); -return x_181; +lean_ctor_set(x_180, 0, x_177); +lean_ctor_set(x_180, 1, x_178); +return x_180; } } else { -lean_object* x_182; lean_object* x_183; lean_object* x_184; -x_182 = lean_ctor_get(x_146, 0); -lean_inc(x_182); -lean_dec(x_146); -x_183 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_183, 0, x_140); -lean_ctor_set(x_183, 1, x_182); -lean_ctor_set(x_183, 2, x_139); -lean_ctor_set(x_183, 3, x_143); -lean_inc(x_6); -x_184 = l___private_Lean_Elab_StructInst_19__expandStruct___main(x_183, x_6, x_144); -if (lean_obj_tag(x_184) == 0) -{ -lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; -x_185 = lean_ctor_get(x_184, 0); -lean_inc(x_185); -x_186 = lean_ctor_get(x_184, 1); -lean_inc(x_186); -lean_dec(x_184); -x_187 = lean_ctor_get(x_145, 0); -lean_inc(x_187); -x_188 = lean_ctor_get(x_145, 1); -lean_inc(x_188); -x_189 = lean_ctor_get(x_145, 3); -lean_inc(x_189); -if (lean_is_exclusive(x_145)) { - lean_ctor_release(x_145, 0); - lean_ctor_release(x_145, 1); - lean_ctor_release(x_145, 2); - lean_ctor_release(x_145, 3); - x_190 = x_145; -} else { - lean_dec_ref(x_145); - x_190 = lean_box(0); -} -x_191 = l_List_head_x21___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__5(x_188); -lean_dec(x_188); -x_192 = lean_box(0); -x_193 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_193, 0, x_191); -lean_ctor_set(x_193, 1, x_192); -x_194 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_194, 0, x_185); -if (lean_is_scalar(x_190)) { - x_195 = lean_alloc_ctor(0, 4, 0); -} else { - x_195 = x_190; -} -lean_ctor_set(x_195, 0, x_187); -lean_ctor_set(x_195, 1, x_193); -lean_ctor_set(x_195, 2, x_194); -lean_ctor_set(x_195, 3, x_189); -x_196 = l_List_mapM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__9(x_1, x_2, x_3, x_4, x_135, x_6, x_186); -if (lean_obj_tag(x_196) == 0) -{ -lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; -x_197 = lean_ctor_get(x_196, 0); -lean_inc(x_197); -x_198 = lean_ctor_get(x_196, 1); -lean_inc(x_198); -if (lean_is_exclusive(x_196)) { - lean_ctor_release(x_196, 0); - lean_ctor_release(x_196, 1); - x_199 = x_196; -} else { - lean_dec_ref(x_196); - x_199 = lean_box(0); -} -x_200 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_200, 0, x_195); -lean_ctor_set(x_200, 1, x_197); -if (lean_is_scalar(x_199)) { - x_201 = lean_alloc_ctor(0, 2, 0); -} else { - x_201 = x_199; -} -lean_ctor_set(x_201, 0, x_200); -lean_ctor_set(x_201, 1, x_198); -return x_201; -} -else -{ -lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; -lean_dec(x_195); -x_202 = lean_ctor_get(x_196, 0); -lean_inc(x_202); -x_203 = lean_ctor_get(x_196, 1); -lean_inc(x_203); -if (lean_is_exclusive(x_196)) { - lean_ctor_release(x_196, 0); - lean_ctor_release(x_196, 1); - x_204 = x_196; -} else { - lean_dec_ref(x_196); - x_204 = lean_box(0); -} -if (lean_is_scalar(x_204)) { - x_205 = lean_alloc_ctor(1, 2, 0); -} else { - x_205 = x_204; -} -lean_ctor_set(x_205, 0, x_202); -lean_ctor_set(x_205, 1, x_203); -return x_205; -} -} -else -{ -lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; +lean_object* x_181; lean_object* x_182; lean_object* x_183; +x_181 = lean_ctor_get(x_145, 0); +lean_inc(x_181); lean_dec(x_145); +lean_inc(x_5); +x_182 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_182, 0, x_5); +lean_ctor_set(x_182, 1, x_181); +lean_ctor_set(x_182, 2, x_139); +lean_ctor_set(x_182, 3, x_142); +lean_inc(x_7); +x_183 = l___private_Lean_Elab_StructInst_19__expandStruct___main(x_182, x_7, x_143); +if (lean_obj_tag(x_183) == 0) +{ +lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; +x_184 = lean_ctor_get(x_183, 0); +lean_inc(x_184); +x_185 = lean_ctor_get(x_183, 1); +lean_inc(x_185); +lean_dec(x_183); +x_186 = lean_ctor_get(x_144, 0); +lean_inc(x_186); +x_187 = lean_ctor_get(x_144, 1); +lean_inc(x_187); +x_188 = lean_ctor_get(x_144, 3); +lean_inc(x_188); +if (lean_is_exclusive(x_144)) { + lean_ctor_release(x_144, 0); + lean_ctor_release(x_144, 1); + lean_ctor_release(x_144, 2); + lean_ctor_release(x_144, 3); + x_189 = x_144; +} else { + lean_dec_ref(x_144); + x_189 = lean_box(0); +} +x_190 = l_List_head_x21___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__5(x_187); +lean_dec(x_187); +x_191 = lean_box(0); +x_192 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_192, 0, x_190); +lean_ctor_set(x_192, 1, x_191); +x_193 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_193, 0, x_184); +if (lean_is_scalar(x_189)) { + x_194 = lean_alloc_ctor(0, 4, 0); +} else { + x_194 = x_189; +} +lean_ctor_set(x_194, 0, x_186); +lean_ctor_set(x_194, 1, x_192); +lean_ctor_set(x_194, 2, x_193); +lean_ctor_set(x_194, 3, x_188); +x_195 = l_List_mapM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__9(x_1, x_2, x_3, x_4, x_5, x_135, x_7, x_185); +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_195, 0); +lean_inc(x_196); +x_197 = lean_ctor_get(x_195, 1); +lean_inc(x_197); +if (lean_is_exclusive(x_195)) { + lean_ctor_release(x_195, 0); + lean_ctor_release(x_195, 1); + x_198 = x_195; +} else { + lean_dec_ref(x_195); + x_198 = lean_box(0); +} +x_199 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_199, 0, x_194); +lean_ctor_set(x_199, 1, x_196); +if (lean_is_scalar(x_198)) { + x_200 = lean_alloc_ctor(0, 2, 0); +} else { + x_200 = x_198; +} +lean_ctor_set(x_200, 0, x_199); +lean_ctor_set(x_200, 1, x_197); +return x_200; +} +else +{ +lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; +lean_dec(x_194); +x_201 = lean_ctor_get(x_195, 0); +lean_inc(x_201); +x_202 = lean_ctor_get(x_195, 1); +lean_inc(x_202); +if (lean_is_exclusive(x_195)) { + lean_ctor_release(x_195, 0); + lean_ctor_release(x_195, 1); + x_203 = x_195; +} else { + lean_dec_ref(x_195); + x_203 = lean_box(0); +} +if (lean_is_scalar(x_203)) { + x_204 = lean_alloc_ctor(1, 2, 0); +} else { + x_204 = x_203; +} +lean_ctor_set(x_204, 0, x_201); +lean_ctor_set(x_204, 1, x_202); +return x_204; +} +} +else +{ +lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; +lean_dec(x_144); lean_dec(x_135); -lean_dec(x_6); +lean_dec(x_7); +lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_206 = lean_ctor_get(x_184, 0); +x_205 = lean_ctor_get(x_183, 0); +lean_inc(x_205); +x_206 = lean_ctor_get(x_183, 1); lean_inc(x_206); -x_207 = lean_ctor_get(x_184, 1); -lean_inc(x_207); -if (lean_is_exclusive(x_184)) { - lean_ctor_release(x_184, 0); - lean_ctor_release(x_184, 1); - x_208 = x_184; +if (lean_is_exclusive(x_183)) { + lean_ctor_release(x_183, 0); + lean_ctor_release(x_183, 1); + x_207 = x_183; } else { - lean_dec_ref(x_184); - x_208 = lean_box(0); + lean_dec_ref(x_183); + x_207 = lean_box(0); } -if (lean_is_scalar(x_208)) { - x_209 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_207)) { + x_208 = lean_alloc_ctor(1, 2, 0); } else { - x_209 = x_208; + x_208 = x_207; } -lean_ctor_set(x_209, 0, x_206); -lean_ctor_set(x_209, 1, x_207); -return x_209; +lean_ctor_set(x_208, 0, x_205); +lean_ctor_set(x_208, 1, x_206); +return x_208; } } } else { -lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; -lean_dec(x_140); +lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_dec(x_139); lean_dec(x_137); lean_dec(x_136); lean_dec(x_135); -lean_dec(x_6); +lean_dec(x_7); +lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_210 = lean_ctor_get(x_142, 0); +x_209 = lean_ctor_get(x_141, 0); +lean_inc(x_209); +x_210 = lean_ctor_get(x_141, 1); lean_inc(x_210); -x_211 = lean_ctor_get(x_142, 1); -lean_inc(x_211); -if (lean_is_exclusive(x_142)) { - lean_ctor_release(x_142, 0); - lean_ctor_release(x_142, 1); - x_212 = x_142; +if (lean_is_exclusive(x_141)) { + lean_ctor_release(x_141, 0); + lean_ctor_release(x_141, 1); + x_211 = x_141; } else { - lean_dec_ref(x_142); - x_212 = lean_box(0); + lean_dec_ref(x_141); + x_211 = lean_box(0); } -if (lean_is_scalar(x_212)) { - x_213 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_211)) { + x_212 = lean_alloc_ctor(1, 2, 0); } else { - x_213 = x_212; + x_212 = x_211; } -lean_ctor_set(x_213, 0, x_210); -lean_ctor_set(x_213, 1, x_211); -return x_213; +lean_ctor_set(x_212, 0, x_209); +lean_ctor_set(x_212, 1, x_210); +return x_212; } } else { -lean_object* x_214; lean_object* x_215; +lean_object* x_213; lean_object* x_214; lean_dec(x_137); lean_dec(x_136); -x_214 = lean_ctor_get(x_138, 0); -lean_inc(x_214); +x_213 = lean_ctor_get(x_138, 0); +lean_inc(x_213); lean_dec(x_138); -x_215 = l_List_mapM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__9(x_1, x_2, x_3, x_4, x_135, x_6, x_7); -if (lean_obj_tag(x_215) == 0) +x_214 = l_List_mapM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__9(x_1, x_2, x_3, x_4, x_5, x_135, x_7, x_8); +if (lean_obj_tag(x_214) == 0) { -lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; -x_216 = lean_ctor_get(x_215, 0); +lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; +x_215 = lean_ctor_get(x_214, 0); +lean_inc(x_215); +x_216 = lean_ctor_get(x_214, 1); lean_inc(x_216); -x_217 = lean_ctor_get(x_215, 1); -lean_inc(x_217); -if (lean_is_exclusive(x_215)) { - lean_ctor_release(x_215, 0); - lean_ctor_release(x_215, 1); - x_218 = x_215; +if (lean_is_exclusive(x_214)) { + lean_ctor_release(x_214, 0); + lean_ctor_release(x_214, 1); + x_217 = x_214; } else { - lean_dec_ref(x_215); - x_218 = lean_box(0); + lean_dec_ref(x_214); + x_217 = lean_box(0); } -x_219 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_219, 0, x_214); +x_218 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_218, 0, x_213); +lean_ctor_set(x_218, 1, x_215); +if (lean_is_scalar(x_217)) { + x_219 = lean_alloc_ctor(0, 2, 0); +} else { + x_219 = x_217; +} +lean_ctor_set(x_219, 0, x_218); lean_ctor_set(x_219, 1, x_216); -if (lean_is_scalar(x_218)) { - x_220 = lean_alloc_ctor(0, 2, 0); -} else { - x_220 = x_218; -} -lean_ctor_set(x_220, 0, x_219); -lean_ctor_set(x_220, 1, x_217); -return x_220; +return x_219; } else { -lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; -lean_dec(x_214); -x_221 = lean_ctor_get(x_215, 0); +lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; +lean_dec(x_213); +x_220 = lean_ctor_get(x_214, 0); +lean_inc(x_220); +x_221 = lean_ctor_get(x_214, 1); lean_inc(x_221); -x_222 = lean_ctor_get(x_215, 1); -lean_inc(x_222); -if (lean_is_exclusive(x_215)) { - lean_ctor_release(x_215, 0); - lean_ctor_release(x_215, 1); - x_223 = x_215; +if (lean_is_exclusive(x_214)) { + lean_ctor_release(x_214, 0); + lean_ctor_release(x_214, 1); + x_222 = x_214; } else { - lean_dec_ref(x_215); - x_223 = lean_box(0); + lean_dec_ref(x_214); + x_222 = lean_box(0); } -if (lean_is_scalar(x_223)) { - x_224 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_222)) { + x_223 = lean_alloc_ctor(1, 2, 0); } else { - x_224 = x_223; + x_223 = x_222; } -lean_ctor_set(x_224, 0, x_221); -lean_ctor_set(x_224, 1, x_222); -return x_224; +lean_ctor_set(x_223, 0, x_220); +lean_ctor_set(x_223, 1, x_221); +return x_223; } } } } } } -lean_object* l___private_Lean_Elab_StructInst_17__groupFields___at___private_Lean_Elab_StructInst_19__expandStruct___main___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* l___private_Lean_Elab_StructInst_17__groupFields___at___private_Lean_Elab_StructInst_19__expandStruct___main___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) { _start: { -lean_object* x_8; -lean_inc(x_6); -x_8 = l___private_Lean_Elab_StructInst_12__mkFieldMap(x_5, x_6, x_7); -if (lean_obj_tag(x_8) == 0) +lean_object* x_9; +lean_inc(x_7); +x_9 = l___private_Lean_Elab_StructInst_12__mkFieldMap(x_6, x_7, x_8); +if (lean_obj_tag(x_9) == 0) { -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_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); -lean_dec(x_8); -x_11 = l_Std_HashMap_toList___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__6(x_9); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); lean_dec(x_9); -x_12 = l_List_mapM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__9(x_1, x_2, x_3, x_4, x_11, x_6, x_10); -return x_12; +x_12 = l_Std_HashMap_toList___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__6(x_10); +lean_dec(x_10); +x_13 = l_List_mapM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__9(x_1, x_2, x_3, x_4, x_5, x_12, x_7, x_11); +return x_13; } else { -uint8_t x_13; -lean_dec(x_6); +uint8_t x_14; +lean_dec(x_7); +lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_13 = !lean_is_exclusive(x_8); -if (x_13 == 0) +x_14 = !lean_is_exclusive(x_9); +if (x_14 == 0) { -return x_8; +return x_9; } else { -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_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_9, 0); +x_16 = lean_ctor_get(x_9, 1); +lean_inc(x_16); 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; +lean_dec(x_9); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +return x_17; } } } @@ -15279,7 +15618,7 @@ return x_16; lean_object* l___private_Lean_Elab_StructInst_17__groupFields___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; x_4 = l_Lean_Elab_Term_getEnv___rarg(x_3); x_5 = lean_ctor_get(x_4, 0); lean_inc(x_5); @@ -15290,14 +15629,70 @@ x_7 = l_Lean_Elab_Term_StructInst_Struct_structName(x_1); lean_inc(x_7); lean_inc(x_5); x_8 = l_Lean_getStructureFields(x_5, x_7); +x_9 = l_Lean_Elab_Term_StructInst_Struct_ref(x_1); +lean_inc(x_9); lean_inc(x_1); -x_9 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_17__groupFields___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__1___lambda__1___boxed), 7, 4); -lean_closure_set(x_9, 0, x_1); -lean_closure_set(x_9, 1, x_5); -lean_closure_set(x_9, 2, x_7); -lean_closure_set(x_9, 3, x_8); -x_10 = l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__2(x_1, x_9, x_2, x_6); -return x_10; +x_10 = lean_alloc_closure((void*)(l___private_Lean_Elab_StructInst_17__groupFields___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__1___lambda__1___boxed), 8, 5); +lean_closure_set(x_10, 0, x_1); +lean_closure_set(x_10, 1, x_5); +lean_closure_set(x_10, 2, x_7); +lean_closure_set(x_10, 3, x_8); +lean_closure_set(x_10, 4, x_9); +x_11 = !lean_is_exclusive(x_2); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_2, 10); +lean_dec(x_12); +lean_ctor_set(x_2, 10, x_9); +x_13 = l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__2(x_1, x_10, x_2, x_6); +return x_13; +} +else +{ +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; lean_object* x_23; uint8_t x_24; uint8_t x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; +x_14 = lean_ctor_get(x_2, 0); +x_15 = lean_ctor_get(x_2, 1); +x_16 = lean_ctor_get(x_2, 2); +x_17 = lean_ctor_get(x_2, 3); +x_18 = lean_ctor_get(x_2, 4); +x_19 = lean_ctor_get(x_2, 5); +x_20 = lean_ctor_get(x_2, 6); +x_21 = lean_ctor_get(x_2, 7); +x_22 = lean_ctor_get(x_2, 8); +x_23 = lean_ctor_get(x_2, 9); +x_24 = lean_ctor_get_uint8(x_2, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 1); +x_26 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 2); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_2); +x_27 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_27, 0, x_14); +lean_ctor_set(x_27, 1, x_15); +lean_ctor_set(x_27, 2, x_16); +lean_ctor_set(x_27, 3, x_17); +lean_ctor_set(x_27, 4, x_18); +lean_ctor_set(x_27, 5, x_19); +lean_ctor_set(x_27, 6, x_20); +lean_ctor_set(x_27, 7, x_21); +lean_ctor_set(x_27, 8, x_22); +lean_ctor_set(x_27, 9, x_23); +lean_ctor_set(x_27, 10, x_9); +lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_24); +lean_ctor_set_uint8(x_27, sizeof(void*)*11 + 1, x_25); +lean_ctor_set_uint8(x_27, sizeof(void*)*11 + 2, x_26); +x_28 = l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__2(x_1, x_10, x_27, x_6); +return x_28; +} } } lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__11(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) { @@ -15447,7 +15842,7 @@ x_53 = l_Lean_Elab_Term_StructInst_Struct_source(x_1); lean_inc(x_10); lean_inc(x_15); lean_inc(x_3); -x_54 = l___private_Lean_Elab_StructInst_16__mkSubstructSource(x_5, x_3, x_4, x_15, x_53, x_10, x_11); +x_54 = l___private_Lean_Elab_StructInst_16__mkSubstructSource(x_3, x_4, x_15, x_53, x_10, x_11); if (lean_obj_tag(x_54) == 0) { lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; @@ -15582,7 +15977,7 @@ goto _start; lean_object* l___private_Lean_Elab_StructInst_18__addMissingFields___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; x_4 = l_Lean_Elab_Term_getEnv___rarg(x_3); x_5 = lean_ctor_get(x_4, 0); lean_inc(x_5); @@ -15595,59 +15990,166 @@ lean_inc(x_5); x_8 = l_Lean_getStructureFields(x_5, x_7); x_9 = l_Lean_Elab_Term_StructInst_Struct_ref(x_1); x_10 = lean_box(0); -x_11 = lean_unsigned_to_nat(0u); -x_12 = l_Array_iterateMAux___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__11(x_1, x_5, x_7, x_8, x_9, x_10, x_8, x_11, x_10, x_2, x_6); +x_11 = !lean_is_exclusive(x_2); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_2, 10); +lean_dec(x_12); +lean_inc(x_9); +lean_ctor_set(x_2, 10, x_9); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Array_iterateMAux___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__11(x_1, x_5, x_7, x_8, x_9, x_10, x_8, x_13, x_10, x_2, x_6); lean_dec(x_8); -if (lean_obj_tag(x_12) == 0) +if (lean_obj_tag(x_14) == 0) { -uint8_t x_13; -x_13 = !lean_is_exclusive(x_12); -if (x_13 == 0) +uint8_t x_15; +x_15 = !lean_is_exclusive(x_14); +if (x_15 == 0) { -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_12, 0); -x_15 = l_List_reverse___rarg(x_14); -x_16 = l_Lean_Elab_Term_StructInst_Struct_setFields(x_1, x_15); -lean_ctor_set(x_12, 0, x_16); -return x_12; +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_14, 0); +x_17 = l_List_reverse___rarg(x_16); +x_18 = l_Lean_Elab_Term_StructInst_Struct_setFields(x_1, x_17); +lean_ctor_set(x_14, 0, x_18); +return x_14; } else { -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_12, 0); -x_18 = lean_ctor_get(x_12, 1); -lean_inc(x_18); -lean_inc(x_17); -lean_dec(x_12); -x_19 = l_List_reverse___rarg(x_17); -x_20 = l_Lean_Elab_Term_StructInst_Struct_setFields(x_1, x_19); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_18); -return x_21; +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_19 = lean_ctor_get(x_14, 0); +x_20 = lean_ctor_get(x_14, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_14); +x_21 = l_List_reverse___rarg(x_19); +x_22 = l_Lean_Elab_Term_StructInst_Struct_setFields(x_1, 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 { -uint8_t x_22; +uint8_t x_24; lean_dec(x_1); -x_22 = !lean_is_exclusive(x_12); -if (x_22 == 0) +x_24 = !lean_is_exclusive(x_14); +if (x_24 == 0) { -return x_12; +return x_14; } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_12, 0); -x_24 = lean_ctor_get(x_12, 1); -lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_12); -x_25 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_25, 0, x_23); -lean_ctor_set(x_25, 1, x_24); -return x_25; +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_14, 0); +x_26 = lean_ctor_get(x_14, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_14); +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 +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; uint8_t x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_28 = lean_ctor_get(x_2, 0); +x_29 = lean_ctor_get(x_2, 1); +x_30 = lean_ctor_get(x_2, 2); +x_31 = lean_ctor_get(x_2, 3); +x_32 = lean_ctor_get(x_2, 4); +x_33 = lean_ctor_get(x_2, 5); +x_34 = lean_ctor_get(x_2, 6); +x_35 = lean_ctor_get(x_2, 7); +x_36 = lean_ctor_get(x_2, 8); +x_37 = lean_ctor_get(x_2, 9); +x_38 = lean_ctor_get_uint8(x_2, sizeof(void*)*11); +x_39 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 1); +x_40 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 2); +lean_inc(x_37); +lean_inc(x_36); +lean_inc(x_35); +lean_inc(x_34); +lean_inc(x_33); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_2); +lean_inc(x_9); +x_41 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_41, 0, x_28); +lean_ctor_set(x_41, 1, x_29); +lean_ctor_set(x_41, 2, x_30); +lean_ctor_set(x_41, 3, x_31); +lean_ctor_set(x_41, 4, x_32); +lean_ctor_set(x_41, 5, x_33); +lean_ctor_set(x_41, 6, x_34); +lean_ctor_set(x_41, 7, x_35); +lean_ctor_set(x_41, 8, x_36); +lean_ctor_set(x_41, 9, x_37); +lean_ctor_set(x_41, 10, x_9); +lean_ctor_set_uint8(x_41, sizeof(void*)*11, x_38); +lean_ctor_set_uint8(x_41, sizeof(void*)*11 + 1, x_39); +lean_ctor_set_uint8(x_41, sizeof(void*)*11 + 2, x_40); +x_42 = lean_unsigned_to_nat(0u); +x_43 = l_Array_iterateMAux___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__11(x_1, x_5, x_7, x_8, x_9, x_10, x_8, x_42, x_10, x_41, x_6); +lean_dec(x_8); +if (lean_obj_tag(x_43) == 0) +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_44 = lean_ctor_get(x_43, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + lean_ctor_release(x_43, 1); + x_46 = x_43; +} else { + lean_dec_ref(x_43); + x_46 = lean_box(0); +} +x_47 = l_List_reverse___rarg(x_44); +x_48 = l_Lean_Elab_Term_StructInst_Struct_setFields(x_1, x_47); +if (lean_is_scalar(x_46)) { + x_49 = lean_alloc_ctor(0, 2, 0); +} else { + x_49 = x_46; +} +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_45); +return x_49; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +lean_dec(x_1); +x_50 = lean_ctor_get(x_43, 0); +lean_inc(x_50); +x_51 = lean_ctor_get(x_43, 1); +lean_inc(x_51); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + lean_ctor_release(x_43, 1); + x_52 = x_43; +} else { + lean_dec_ref(x_43); + x_52 = lean_box(0); +} +if (lean_is_scalar(x_52)) { + x_53 = lean_alloc_ctor(1, 2, 0); +} else { + x_53 = x_52; +} +lean_ctor_set(x_53, 0, x_50); +lean_ctor_set(x_53, 1, x_51); +return x_53; } } } @@ -15810,24 +16312,24 @@ lean_dec(x_1); return x_2; } } -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__9___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* l_List_mapM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__9___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_8; -x_8 = l_List_mapM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__9(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_object* x_9; +x_9 = l_List_mapM___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__9(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_4); lean_dec(x_1); -return x_8; +return x_9; } } -lean_object* l___private_Lean_Elab_StructInst_17__groupFields___at___private_Lean_Elab_StructInst_19__expandStruct___main___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* l___private_Lean_Elab_StructInst_17__groupFields___at___private_Lean_Elab_StructInst_19__expandStruct___main___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) { _start: { -lean_object* x_8; -x_8 = l___private_Lean_Elab_StructInst_17__groupFields___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_object* x_9; +x_9 = l___private_Lean_Elab_StructInst_17__groupFields___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_4); lean_dec(x_1); -return x_8; +return x_9; } } lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__11___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) { @@ -15877,182 +16379,164 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main(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* l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main(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_8; uint8_t x_9; -x_8 = lean_unsigned_to_nat(0u); -x_9 = lean_nat_dec_eq(x_2, x_8); -if (x_9 == 0) +lean_object* x_7; uint8_t x_8; +x_7 = lean_unsigned_to_nat(0u); +x_8 = lean_nat_dec_eq(x_1, x_7); +if (x_8 == 0) { -lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_10 = lean_unsigned_to_nat(1u); -x_11 = lean_nat_sub(x_2, x_10); -lean_dec(x_2); -lean_inc(x_6); -x_12 = l_Lean_Elab_Term_whnfForall(x_1, x_3, x_6, x_7); -if (lean_obj_tag(x_12) == 0) +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_unsigned_to_nat(1u); +x_10 = lean_nat_sub(x_1, x_9); +lean_dec(x_1); +lean_inc(x_5); +x_11 = l_Lean_Elab_Term_whnfForall(x_2, x_5, x_6); +if (lean_obj_tag(x_11) == 0) { -lean_object* x_13; -x_13 = lean_ctor_get(x_12, 0); +lean_object* x_12; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +if (lean_obj_tag(x_12) == 7) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; uint64_t x_16; lean_object* x_17; uint8_t x_28; lean_object* x_29; +x_13 = lean_ctor_get(x_11, 1); lean_inc(x_13); -if (lean_obj_tag(x_13) == 7) -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; uint64_t x_17; lean_object* x_18; uint8_t x_29; lean_object* x_30; +lean_dec(x_11); x_14 = lean_ctor_get(x_12, 1); lean_inc(x_14); -lean_dec(x_12); -x_15 = lean_ctor_get(x_13, 1); +x_15 = lean_ctor_get(x_12, 2); lean_inc(x_15); -x_16 = lean_ctor_get(x_13, 2); -lean_inc(x_16); -x_17 = lean_ctor_get_uint64(x_13, sizeof(void*)*3); -lean_dec(x_13); -x_29 = (uint8_t)((x_17 << 24) >> 61); -x_30 = lean_box(x_29); -if (lean_obj_tag(x_30) == 3) +x_16 = lean_ctor_get_uint64(x_12, sizeof(void*)*3); +lean_dec(x_12); +x_28 = (uint8_t)((x_16 << 24) >> 61); +x_29 = lean_box(x_28); +if (lean_obj_tag(x_29) == 3) { -lean_object* x_31; uint8_t x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_31 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_31, 0, x_15); -x_32 = 1; -x_33 = lean_box(0); -lean_inc(x_6); -x_34 = l_Lean_Elab_Term_mkFreshExprMVar(x_1, x_31, x_32, x_33, x_6, x_14); -x_35 = lean_ctor_get(x_34, 0); +lean_object* x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_30 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_30, 0, x_14); +x_31 = 1; +x_32 = lean_box(0); +lean_inc(x_5); +x_33 = l_Lean_Elab_Term_mkFreshExprMVar(x_30, x_31, x_32, x_5, x_13); +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_33, 1); lean_inc(x_35); -x_36 = lean_ctor_get(x_34, 1); -lean_inc(x_36); +lean_dec(x_33); +x_36 = lean_expr_instantiate1(x_15, x_34); +lean_dec(x_15); +lean_inc(x_34); +x_37 = l_Lean_mkApp(x_3, x_34); +x_38 = l_Lean_Expr_mvarId_x21(x_34); lean_dec(x_34); -x_37 = lean_expr_instantiate1(x_16, x_35); -lean_dec(x_16); -lean_inc(x_35); -x_38 = l_Lean_mkApp(x_4, x_35); -x_39 = l_Lean_Expr_mvarId_x21(x_35); -lean_dec(x_35); -x_40 = lean_array_push(x_5, x_39); -x_2 = x_11; +x_39 = lean_array_push(x_4, x_38); +x_1 = x_10; +x_2 = x_36; x_3 = x_37; -x_4 = x_38; -x_5 = x_40; -x_7 = x_36; +x_4 = x_39; +x_6 = x_35; goto _start; } else { -lean_object* x_42; -lean_dec(x_30); -x_42 = lean_box(0); -x_18 = x_42; -goto block_28; +lean_object* x_41; +lean_dec(x_29); +x_41 = lean_box(0); +x_17 = x_41; +goto block_27; } -block_28: +block_27: { -lean_object* x_19; uint8_t 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_dec(x_18); -x_19 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_19, 0, x_15); -x_20 = 0; -x_21 = lean_box(0); -lean_inc(x_6); -x_22 = l_Lean_Elab_Term_mkFreshExprMVar(x_1, x_19, x_20, x_21, x_6, x_14); -x_23 = lean_ctor_get(x_22, 0); +lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_dec(x_17); +x_18 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_18, 0, x_14); +x_19 = 0; +x_20 = lean_box(0); +lean_inc(x_5); +x_21 = l_Lean_Elab_Term_mkFreshExprMVar(x_18, x_19, x_20, x_5, x_13); +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_21, 1); lean_inc(x_23); -x_24 = lean_ctor_get(x_22, 1); -lean_inc(x_24); -lean_dec(x_22); -x_25 = lean_expr_instantiate1(x_16, x_23); -lean_dec(x_16); -x_26 = l_Lean_mkApp(x_4, x_23); -x_2 = x_11; +lean_dec(x_21); +x_24 = lean_expr_instantiate1(x_15, x_22); +lean_dec(x_15); +x_25 = l_Lean_mkApp(x_3, x_22); +x_1 = x_10; +x_2 = x_24; x_3 = x_25; -x_4 = x_26; -x_7 = x_24; +x_6 = x_23; goto _start; } } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; -lean_dec(x_13); -lean_dec(x_11); -lean_dec(x_5); -lean_dec(x_4); -x_43 = lean_ctor_get(x_12, 1); -lean_inc(x_43); +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_dec(x_12); -x_44 = l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___closed__3; -x_45 = l_Lean_Elab_Term_throwError___rarg(x_1, x_44, x_6, x_43); -return x_45; +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_3); +x_42 = lean_ctor_get(x_11, 1); +lean_inc(x_42); +lean_dec(x_11); +x_43 = l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___closed__3; +x_44 = l_Lean_Elab_Term_throwError___rarg(x_43, x_5, x_42); +return x_44; } } else { -uint8_t x_46; -lean_dec(x_11); -lean_dec(x_6); +uint8_t x_45; +lean_dec(x_10); lean_dec(x_5); lean_dec(x_4); -x_46 = !lean_is_exclusive(x_12); -if (x_46 == 0) +lean_dec(x_3); +x_45 = !lean_is_exclusive(x_11); +if (x_45 == 0) { -return x_12; +return x_11; } else { -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = lean_ctor_get(x_12, 0); -x_48 = lean_ctor_get(x_12, 1); -lean_inc(x_48); +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_11, 0); +x_47 = lean_ctor_get(x_11, 1); lean_inc(x_47); -lean_dec(x_12); -x_49 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -return x_49; +lean_inc(x_46); +lean_dec(x_11); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; } } } else { -lean_object* x_50; lean_object* x_51; -lean_dec(x_6); -lean_dec(x_2); -x_50 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_50, 0, x_4); -lean_ctor_set(x_50, 1, x_3); -lean_ctor_set(x_50, 2, x_5); -x_51 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_51, 0, x_50); -lean_ctor_set(x_51, 1, x_7); -return x_51; -} -} -} -lean_object* l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___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_Elab_StructInst_20__mkCtorHeaderAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_object* x_49; lean_object* x_50; +lean_dec(x_5); lean_dec(x_1); -return x_8; +x_49 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_49, 0, x_3); +lean_ctor_set(x_49, 1, x_2); +lean_ctor_set(x_49, 2, x_4); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_6); +return x_50; } } -lean_object* l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux(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* l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux(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_8; -x_8 = l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -return x_8; -} -} -lean_object* l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___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_Elab_StructInst_20__mkCtorHeaderAux(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_1); -return x_8; +lean_object* x_7; +x_7 = l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main(x_1, x_2, x_3, x_4, x_5, x_6); +return x_7; } } lean_object* l___private_Lean_Elab_StructInst_21__getForallBody___main(lean_object* x_1, lean_object* x_2) { @@ -16103,391 +16587,371 @@ x_3 = l___private_Lean_Elab_StructInst_21__getForallBody___main(x_1, x_2); return x_3; } } -lean_object* l___private_Lean_Elab_StructInst_22__propagateExpectedType(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* l___private_Lean_Elab_StructInst_22__propagateExpectedType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -if (lean_obj_tag(x_4) == 0) +if (lean_obj_tag(x_3) == 0) { -lean_object* x_7; lean_object* x_8; -lean_dec(x_5); -lean_dec(x_3); +lean_object* x_6; lean_object* x_7; +lean_dec(x_4); lean_dec(x_2); -x_7 = lean_box(0); -x_8 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_8, 0, x_7); -lean_ctor_set(x_8, 1, x_6); -return x_8; +lean_dec(x_1); +x_6 = lean_box(0); +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_5); +return x_7; } else { -lean_object* x_9; lean_object* x_10; -x_9 = lean_ctor_get(x_4, 0); -lean_inc(x_9); -lean_dec(x_4); -x_10 = l___private_Lean_Elab_StructInst_21__getForallBody___main(x_3, x_2); -if (lean_obj_tag(x_10) == 0) +lean_object* x_8; lean_object* x_9; +x_8 = lean_ctor_get(x_3, 0); +lean_inc(x_8); +lean_dec(x_3); +x_9 = l___private_Lean_Elab_StructInst_21__getForallBody___main(x_2, x_1); +if (lean_obj_tag(x_9) == 0) { -lean_object* x_11; lean_object* x_12; +lean_object* x_10; lean_object* x_11; +lean_dec(x_8); +lean_dec(x_4); +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_5); +return x_11; +} +else +{ +lean_object* x_12; uint8_t x_13; +x_12 = lean_ctor_get(x_9, 0); +lean_inc(x_12); lean_dec(x_9); -lean_dec(x_5); -x_11 = lean_box(0); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_6); +x_13 = l_Lean_Expr_hasLooseBVars(x_12); +if (x_13 == 0) +{ +lean_object* x_14; +x_14 = l_Lean_Elab_Term_isDefEq(x_8, x_12, x_4, x_5); +if (lean_obj_tag(x_14) == 0) +{ +uint8_t x_15; +x_15 = !lean_is_exclusive(x_14); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_14, 0); +lean_dec(x_16); +x_17 = lean_box(0); +lean_ctor_set(x_14, 0, x_17); +return x_14; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_14, 1); +lean_inc(x_18); +lean_dec(x_14); +x_19 = lean_box(0); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +return x_20; +} +} +else +{ +uint8_t x_21; +x_21 = !lean_is_exclusive(x_14); +if (x_21 == 0) +{ +return x_14; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_14, 0); +x_23 = lean_ctor_get(x_14, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_14); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +return x_24; +} +} +} +else +{ +lean_object* x_25; lean_object* x_26; +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_4); +x_25 = lean_box(0); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_5); +return x_26; +} +} +} +} +} +lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_23__mkCtorHeader___spec__1(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_2); +x_4 = lean_box(0); +x_5 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_5, 0, x_4); +lean_ctor_set(x_5, 1, x_3); +return x_5; +} +else +{ +uint8_t x_6; +x_6 = !lean_is_exclusive(x_1); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_7 = lean_ctor_get(x_1, 1); +x_8 = lean_ctor_get(x_1, 0); +lean_dec(x_8); +lean_inc(x_2); +x_9 = l_Lean_Elab_Term_mkFreshLevelMVar(x_2, x_3); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec(x_9); +x_12 = l_List_mapM___main___at___private_Lean_Elab_StructInst_23__mkCtorHeader___spec__1(x_7, x_2, x_11); +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; +x_14 = lean_ctor_get(x_12, 0); +lean_ctor_set(x_1, 1, x_14); +lean_ctor_set(x_1, 0, x_10); +lean_ctor_set(x_12, 0, x_1); return x_12; } else { -lean_object* x_13; uint8_t x_14; -x_13 = lean_ctor_get(x_10, 0); -lean_inc(x_13); -lean_dec(x_10); -x_14 = l_Lean_Expr_hasLooseBVars(x_13); -if (x_14 == 0) -{ -lean_object* x_15; -x_15 = l_Lean_Elab_Term_isDefEq(x_1, x_9, x_13, x_5, x_6); -if (lean_obj_tag(x_15) == 0) -{ -uint8_t x_16; -x_16 = !lean_is_exclusive(x_15); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_15, 0); -lean_dec(x_17); -x_18 = lean_box(0); -lean_ctor_set(x_15, 0, x_18); -return x_15; -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_15, 1); -lean_inc(x_19); -lean_dec(x_15); -x_20 = lean_box(0); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_19); -return x_21; +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_12, 0); +x_16 = lean_ctor_get(x_12, 1); +lean_inc(x_16); +lean_inc(x_15); +lean_dec(x_12); +lean_ctor_set(x_1, 1, x_15); +lean_ctor_set(x_1, 0, x_10); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_1); +lean_ctor_set(x_17, 1, x_16); +return x_17; } } else { -uint8_t x_22; -x_22 = !lean_is_exclusive(x_15); -if (x_22 == 0) -{ -return x_15; -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_15, 0); -x_24 = lean_ctor_get(x_15, 1); -lean_inc(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; +x_18 = lean_ctor_get(x_1, 1); +lean_inc(x_18); +lean_dec(x_1); +lean_inc(x_2); +x_19 = l_Lean_Elab_Term_mkFreshLevelMVar(x_2, x_3); +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = l_List_mapM___main___at___private_Lean_Elab_StructInst_23__mkCtorHeader___spec__1(x_18, x_2, x_21); +x_23 = lean_ctor_get(x_22, 0); lean_inc(x_23); -lean_dec(x_15); -x_25 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_25, 0, x_23); -lean_ctor_set(x_25, 1, x_24); -return x_25; +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +if (lean_is_exclusive(x_22)) { + lean_ctor_release(x_22, 0); + lean_ctor_release(x_22, 1); + x_25 = x_22; +} else { + lean_dec_ref(x_22); + x_25 = lean_box(0); } +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_20); +lean_ctor_set(x_26, 1, x_23); +if (lean_is_scalar(x_25)) { + x_27 = lean_alloc_ctor(0, 2, 0); +} else { + x_27 = x_25; } -} -else -{ -lean_object* x_26; lean_object* x_27; -lean_dec(x_13); -lean_dec(x_9); -lean_dec(x_5); -x_26 = lean_box(0); -x_27 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_6); +lean_ctor_set(x_27, 1, x_24); return x_27; } } } } -} -lean_object* l___private_Lean_Elab_StructInst_22__propagateExpectedType___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* l___private_Lean_Elab_StructInst_23__mkCtorHeader(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_7; -x_7 = l___private_Lean_Elab_StructInst_22__propagateExpectedType(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_1); -return x_7; -} -} -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_23__mkCtorHeader___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_5; lean_object* x_6; -lean_dec(x_3); -x_5 = lean_box(0); -x_6 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_6, 0, x_5); -lean_ctor_set(x_6, 1, x_4); -return x_6; -} -else -{ -uint8_t x_7; -x_7 = !lean_is_exclusive(x_2); -if (x_7 == 0) -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_8 = lean_ctor_get(x_2, 1); -x_9 = lean_ctor_get(x_2, 0); -lean_dec(x_9); -lean_inc(x_3); -x_10 = l_Lean_Elab_Term_mkFreshLevelMVar(x_1, x_3, x_4); -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_List_mapM___main___at___private_Lean_Elab_StructInst_23__mkCtorHeader___spec__1(x_1, x_8, x_3, x_12); -x_14 = !lean_is_exclusive(x_13); -if (x_14 == 0) -{ -lean_object* x_15; -x_15 = lean_ctor_get(x_13, 0); -lean_ctor_set(x_2, 1, x_15); -lean_ctor_set(x_2, 0, x_11); -lean_ctor_set(x_13, 0, x_2); -return x_13; -} -else -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = lean_ctor_get(x_13, 0); -x_17 = lean_ctor_get(x_13, 1); -lean_inc(x_17); -lean_inc(x_16); -lean_dec(x_13); -lean_ctor_set(x_2, 1, x_16); -lean_ctor_set(x_2, 0, x_11); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_2); -lean_ctor_set(x_18, 1, x_17); -return x_18; -} -} -else -{ -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; -x_19 = lean_ctor_get(x_2, 1); -lean_inc(x_19); -lean_dec(x_2); -lean_inc(x_3); -x_20 = l_Lean_Elab_Term_mkFreshLevelMVar(x_1, x_3, x_4); -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -x_22 = lean_ctor_get(x_20, 1); -lean_inc(x_22); -lean_dec(x_20); -x_23 = l_List_mapM___main___at___private_Lean_Elab_StructInst_23__mkCtorHeader___spec__1(x_1, x_19, x_3, x_22); -x_24 = lean_ctor_get(x_23, 0); -lean_inc(x_24); -x_25 = lean_ctor_get(x_23, 1); -lean_inc(x_25); -if (lean_is_exclusive(x_23)) { - lean_ctor_release(x_23, 0); - lean_ctor_release(x_23, 1); - x_26 = x_23; -} else { - lean_dec_ref(x_23); - x_26 = lean_box(0); -} -x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_21); -lean_ctor_set(x_27, 1, x_24); -if (lean_is_scalar(x_26)) { - x_28 = lean_alloc_ctor(0, 2, 0); -} else { - x_28 = x_26; -} -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_25); -return x_28; -} -} -} -} -lean_object* l___private_Lean_Elab_StructInst_23__mkCtorHeader(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; lean_object* x_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; -x_6 = lean_ctor_get(x_2, 0); +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; +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_5, 1); lean_inc(x_6); -x_7 = lean_ctor_get(x_6, 1); -lean_inc(x_7); -lean_inc(x_4); -x_8 = l_List_mapM___main___at___private_Lean_Elab_StructInst_23__mkCtorHeader___spec__1(x_1, x_7, x_4, x_5); -x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_3); +x_7 = l_List_mapM___main___at___private_Lean_Elab_StructInst_23__mkCtorHeader___spec__1(x_6, x_3, x_4); +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_7, 1); lean_inc(x_9); -x_10 = lean_ctor_get(x_8, 1); +lean_dec(x_7); +x_10 = lean_ctor_get(x_5, 0); lean_inc(x_10); +lean_dec(x_5); +lean_inc(x_8); +x_11 = l_Lean_mkConst(x_10, x_8); +lean_inc(x_1); +x_12 = lean_alloc_ctor(6, 1, 0); +lean_ctor_set(x_12, 0, x_1); +x_13 = lean_instantiate_type_lparams(x_12, x_8); lean_dec(x_8); -x_11 = lean_ctor_get(x_6, 0); -lean_inc(x_11); -lean_dec(x_6); -lean_inc(x_9); -x_12 = l_Lean_mkConst(x_11, x_9); -lean_inc(x_2); -x_13 = lean_alloc_ctor(6, 1, 0); -lean_ctor_set(x_13, 0, x_2); -x_14 = lean_instantiate_type_lparams(x_13, x_9); -lean_dec(x_9); -lean_dec(x_13); -x_15 = lean_ctor_get(x_2, 3); -lean_inc(x_15); -x_16 = l_Array_empty___closed__1; -lean_inc(x_4); -x_17 = l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main(x_1, x_15, x_14, x_12, x_16, x_4, x_10); -if (lean_obj_tag(x_17) == 0) +lean_dec(x_12); +x_14 = lean_ctor_get(x_1, 3); +lean_inc(x_14); +x_15 = l_Array_empty___closed__1; +lean_inc(x_3); +x_16 = l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main(x_14, x_13, x_11, x_15, x_3, x_9); +if (lean_obj_tag(x_16) == 0) { -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_17, 0); +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_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 = lean_ctor_get(x_17, 1); lean_inc(x_19); -lean_dec(x_17); -x_20 = lean_ctor_get(x_18, 1); +x_20 = lean_ctor_get(x_1, 4); lean_inc(x_20); -x_21 = lean_ctor_get(x_2, 4); -lean_inc(x_21); -lean_dec(x_2); -x_22 = lean_ctor_get(x_18, 2); -lean_inc(x_22); -lean_inc(x_4); -x_23 = l___private_Lean_Elab_StructInst_22__propagateExpectedType(x_1, x_20, x_21, x_3, x_4, x_19); -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, 1); -lean_inc(x_24); -lean_dec(x_23); -x_25 = lean_unsigned_to_nat(0u); -x_26 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_1, x_22, x_25, x_4, x_24); -lean_dec(x_22); -if (lean_obj_tag(x_26) == 0) -{ -uint8_t x_27; -x_27 = !lean_is_exclusive(x_26); -if (x_27 == 0) -{ -lean_object* x_28; -x_28 = lean_ctor_get(x_26, 0); -lean_dec(x_28); -lean_ctor_set(x_26, 0, x_18); -return x_26; -} -else -{ -lean_object* x_29; lean_object* x_30; -x_29 = lean_ctor_get(x_26, 1); -lean_inc(x_29); -lean_dec(x_26); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_18); -lean_ctor_set(x_30, 1, x_29); -return x_30; -} -} -else -{ -uint8_t x_31; -lean_dec(x_18); -x_31 = !lean_is_exclusive(x_26); -if (x_31 == 0) -{ -return x_26; -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_26, 0); -x_33 = lean_ctor_get(x_26, 1); -lean_inc(x_33); -lean_inc(x_32); -lean_dec(x_26); -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; -} -} -} -else -{ -uint8_t x_35; -lean_dec(x_22); -lean_dec(x_18); -lean_dec(x_4); lean_dec(x_1); -x_35 = !lean_is_exclusive(x_23); -if (x_35 == 0) +x_21 = lean_ctor_get(x_17, 2); +lean_inc(x_21); +lean_inc(x_3); +x_22 = l___private_Lean_Elab_StructInst_22__propagateExpectedType(x_19, x_20, x_2, x_3, x_18); +if (lean_obj_tag(x_22) == 0) { -return x_23; +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_22, 1); +lean_inc(x_23); +lean_dec(x_22); +x_24 = lean_unsigned_to_nat(0u); +x_25 = l_Array_forMAux___main___at_Lean_Elab_Term_synthesizeAppInstMVars___spec__1(x_21, x_24, x_3, x_23); +lean_dec(x_21); +if (lean_obj_tag(x_25) == 0) +{ +uint8_t x_26; +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 0) +{ +lean_object* x_27; +x_27 = lean_ctor_get(x_25, 0); +lean_dec(x_27); +lean_ctor_set(x_25, 0, x_17); +return x_25; } else { -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_23, 0); -x_37 = lean_ctor_get(x_23, 1); -lean_inc(x_37); +lean_object* x_28; lean_object* x_29; +x_28 = lean_ctor_get(x_25, 1); +lean_inc(x_28); +lean_dec(x_25); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_17); +lean_ctor_set(x_29, 1, x_28); +return x_29; +} +} +else +{ +uint8_t x_30; +lean_dec(x_17); +x_30 = !lean_is_exclusive(x_25); +if (x_30 == 0) +{ +return x_25; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_25, 0); +x_32 = lean_ctor_get(x_25, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_25); +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_21); +lean_dec(x_17); +lean_dec(x_3); +x_34 = !lean_is_exclusive(x_22); +if (x_34 == 0) +{ +return x_22; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_22, 0); +x_36 = lean_ctor_get(x_22, 1); lean_inc(x_36); -lean_dec(x_23); -x_38 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_38, 0, x_36); -lean_ctor_set(x_38, 1, x_37); -return x_38; +lean_inc(x_35); +lean_dec(x_22); +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; } } } else { -uint8_t x_39; -lean_dec(x_4); +uint8_t x_38; lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_39 = !lean_is_exclusive(x_17); -if (x_39 == 0) +x_38 = !lean_is_exclusive(x_16); +if (x_38 == 0) { -return x_17; +return x_16; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_17, 0); -x_41 = lean_ctor_get(x_17, 1); -lean_inc(x_41); +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_16, 0); +x_40 = lean_ctor_get(x_16, 1); lean_inc(x_40); -lean_dec(x_17); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -return x_42; +lean_inc(x_39); +lean_dec(x_16); +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; } } } } -lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_23__mkCtorHeader___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_List_mapM___main___at___private_Lean_Elab_StructInst_23__mkCtorHeader___spec__1(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} lean_object* _init_l_Lean_Elab_Term_StructInst_markDefaultMissing___closed__1() { _start: { @@ -16589,53 +17053,44 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg(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* l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_7 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_7, 0, x_2); -x_8 = l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__3; -x_9 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_9, 0, x_8); -lean_ctor_set(x_9, 1, x_7); -x_10 = l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__6; -x_11 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_11, 0, x_9); -lean_ctor_set(x_11, 1, x_10); -x_12 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_12, 0, x_3); -x_13 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_13, 0, x_11); -lean_ctor_set(x_13, 1, x_12); -x_14 = l_Lean_MessageData_arrayExpr_toMessageData___main___closed__2; +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; +x_6 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_6, 0, x_1); +x_7 = l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__3; +x_8 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_8, 0, x_7); +lean_ctor_set(x_8, 1, x_6); +x_9 = l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__6; +x_10 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_10, 0, x_8); +lean_ctor_set(x_10, 1, x_9); +x_11 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_11, 0, x_2); +x_12 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_11); +x_13 = l_Lean_MessageData_arrayExpr_toMessageData___main___closed__2; +x_14 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_13); x_15 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_15, 0, x_13); -lean_ctor_set(x_15, 1, x_14); -x_16 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_4); -x_17 = l_Lean_Elab_Term_throwError___rarg(x_1, x_16, x_5, x_6); -return x_17; +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_3); +x_16 = l_Lean_Elab_Term_throwError___rarg(x_15, x_4, x_5); +return x_16; } } lean_object* l_Lean_Elab_Term_StructInst_throwFailedToElabField(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___boxed), 6, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg), 5, 0); return x_2; } } -lean_object* l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___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_Elab_Term_StructInst_throwFailedToElabField___rarg(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_1); -return x_7; -} -} lean_object* _init_l_List_foldlM___main___at___private_Lean_Elab_StructInst_24__elabStruct___main___spec__1___closed__1() { _start: { @@ -16740,7 +17195,7 @@ x_40 = lean_ctor_get(x_27, 1); lean_inc(x_40); lean_dec(x_27); lean_inc(x_4); -x_41 = l_Lean_Elab_Term_whnfForall(x_36, x_34, x_4, x_5); +x_41 = l_Lean_Elab_Term_whnfForall(x_34, x_4, x_5); if (lean_obj_tag(x_41) == 0) { lean_object* x_42; lean_object* x_43; lean_object* x_44; @@ -16755,271 +17210,181 @@ lean_dec(x_40); switch (lean_obj_tag(x_37)) { case 0: { -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; lean_object* x_56; -x_51 = lean_ctor_get(x_42, 1); -lean_inc(x_51); -x_52 = lean_ctor_get(x_42, 2); -lean_inc(x_52); -lean_dec(x_42); -x_53 = lean_ctor_get(x_37, 0); -lean_inc(x_53); -x_54 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_54, 0, x_51); -x_55 = 1; -lean_inc(x_4); -lean_inc(x_53); -lean_inc(x_54); -x_56 = l_Lean_Elab_Term_elabTermAux___main(x_54, x_55, x_55, x_53, x_4, x_43); -if (lean_obj_tag(x_56) == 0) -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_56, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_56, 1); -lean_inc(x_58); -lean_dec(x_56); -lean_inc(x_4); -x_59 = l_Lean_Elab_Term_ensureHasType(x_53, x_54, x_57, x_4, x_58); -if (lean_obj_tag(x_59) == 0) -{ -uint8_t x_60; -x_60 = !lean_is_exclusive(x_59); -if (x_60 == 0) -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_61 = lean_ctor_get(x_59, 0); -lean_inc(x_61); -x_62 = l_Lean_mkApp(x_30, x_61); -x_63 = lean_expr_instantiate1(x_52, x_61); -lean_dec(x_52); -x_64 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_64, 0, x_61); -lean_ctor_set(x_8, 3, x_64); -lean_ctor_set(x_3, 1, x_35); -lean_ctor_set(x_24, 1, x_3); -lean_ctor_set(x_24, 0, x_63); -lean_ctor_set(x_2, 0, x_62); -lean_ctor_set(x_59, 0, x_2); -x_10 = x_59; -goto block_18; -} -else -{ -lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_65 = lean_ctor_get(x_59, 0); -x_66 = lean_ctor_get(x_59, 1); +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; lean_object* x_70; +x_65 = lean_ctor_get(x_42, 1); +lean_inc(x_65); +x_66 = lean_ctor_get(x_42, 2); lean_inc(x_66); -lean_inc(x_65); -lean_dec(x_59); -lean_inc(x_65); -x_67 = l_Lean_mkApp(x_30, x_65); -x_68 = lean_expr_instantiate1(x_52, x_65); -lean_dec(x_52); -x_69 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_69, 0, x_65); -lean_ctor_set(x_8, 3, x_69); +lean_dec(x_42); +x_67 = lean_ctor_get(x_37, 0); +lean_inc(x_67); +x_68 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_68, 0, x_65); +x_69 = 1; +lean_inc(x_4); +lean_inc(x_68); +lean_inc(x_67); +x_70 = l_Lean_Elab_Term_elabTerm(x_67, x_68, x_69, x_4, x_43); +if (lean_obj_tag(x_70) == 0) +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; uint8_t x_84; uint8_t x_85; lean_object* x_86; lean_object* x_87; +x_71 = lean_ctor_get(x_70, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_70, 1); +lean_inc(x_72); +lean_dec(x_70); +x_73 = lean_ctor_get(x_4, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_4, 1); +lean_inc(x_74); +x_75 = lean_ctor_get(x_4, 2); +lean_inc(x_75); +x_76 = lean_ctor_get(x_4, 3); +lean_inc(x_76); +x_77 = lean_ctor_get(x_4, 4); +lean_inc(x_77); +x_78 = lean_ctor_get(x_4, 5); +lean_inc(x_78); +x_79 = lean_ctor_get(x_4, 6); +lean_inc(x_79); +x_80 = lean_ctor_get(x_4, 7); +lean_inc(x_80); +x_81 = lean_ctor_get(x_4, 8); +lean_inc(x_81); +x_82 = lean_ctor_get(x_4, 9); +lean_inc(x_82); +x_83 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_84 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_85 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +x_86 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_86, 0, x_73); +lean_ctor_set(x_86, 1, x_74); +lean_ctor_set(x_86, 2, x_75); +lean_ctor_set(x_86, 3, x_76); +lean_ctor_set(x_86, 4, x_77); +lean_ctor_set(x_86, 5, x_78); +lean_ctor_set(x_86, 6, x_79); +lean_ctor_set(x_86, 7, x_80); +lean_ctor_set(x_86, 8, x_81); +lean_ctor_set(x_86, 9, x_82); +lean_ctor_set(x_86, 10, x_67); +lean_ctor_set_uint8(x_86, sizeof(void*)*11, x_83); +lean_ctor_set_uint8(x_86, sizeof(void*)*11 + 1, x_84); +lean_ctor_set_uint8(x_86, sizeof(void*)*11 + 2, x_85); +x_87 = l_Lean_Elab_Term_ensureHasType(x_68, x_71, x_86, x_72); +if (lean_obj_tag(x_87) == 0) +{ +uint8_t x_88; +x_88 = !lean_is_exclusive(x_87); +if (x_88 == 0) +{ +lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; +x_89 = lean_ctor_get(x_87, 0); +lean_inc(x_89); +x_90 = l_Lean_mkApp(x_30, x_89); +x_91 = lean_expr_instantiate1(x_66, x_89); +lean_dec(x_66); +x_92 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_92, 0, x_89); +lean_ctor_set(x_8, 3, x_92); lean_ctor_set(x_3, 1, x_35); lean_ctor_set(x_24, 1, x_3); -lean_ctor_set(x_24, 0, x_68); -lean_ctor_set(x_2, 0, x_67); -x_70 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_70, 0, x_2); -lean_ctor_set(x_70, 1, x_66); -x_10 = x_70; -goto block_18; -} -} -else -{ -uint8_t x_71; -lean_dec(x_52); -lean_free_object(x_8); -lean_dec(x_37); -lean_dec(x_36); -lean_free_object(x_24); -lean_dec(x_35); -lean_free_object(x_2); -lean_dec(x_30); -lean_dec(x_25); -lean_free_object(x_3); -x_71 = !lean_is_exclusive(x_59); -if (x_71 == 0) -{ -x_10 = x_59; +lean_ctor_set(x_24, 0, x_91); +lean_ctor_set(x_2, 0, x_90); +lean_ctor_set(x_87, 0, x_2); +x_10 = x_87; goto block_18; } else { -lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_72 = lean_ctor_get(x_59, 0); -x_73 = lean_ctor_get(x_59, 1); -lean_inc(x_73); -lean_inc(x_72); -lean_dec(x_59); -x_74 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_74, 0, x_72); -lean_ctor_set(x_74, 1, x_73); -x_10 = x_74; -goto block_18; -} -} -} -else -{ -uint8_t x_75; -lean_dec(x_54); -lean_dec(x_53); -lean_dec(x_52); -lean_free_object(x_8); -lean_dec(x_37); -lean_dec(x_36); -lean_free_object(x_24); -lean_dec(x_35); -lean_free_object(x_2); -lean_dec(x_30); -lean_dec(x_25); -lean_free_object(x_3); -x_75 = !lean_is_exclusive(x_56); -if (x_75 == 0) -{ -x_10 = x_56; -goto block_18; -} -else -{ -lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_76 = lean_ctor_get(x_56, 0); -x_77 = lean_ctor_get(x_56, 1); -lean_inc(x_77); -lean_inc(x_76); -lean_dec(x_56); -x_78 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_78, 0, x_76); -lean_ctor_set(x_78, 1, x_77); -x_10 = x_78; -goto block_18; -} -} -} -case 1: -{ -lean_object* x_79; lean_object* x_80; uint8_t x_81; -lean_free_object(x_2); -x_79 = lean_ctor_get(x_42, 1); -lean_inc(x_79); -x_80 = lean_ctor_get(x_42, 2); -lean_inc(x_80); -lean_dec(x_42); -x_81 = !lean_is_exclusive(x_37); -if (x_81 == 0) -{ -lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_82 = lean_ctor_get(x_37, 0); -x_83 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_83, 0, x_79); -lean_inc(x_4); -lean_inc(x_83); -lean_inc(x_82); -x_84 = l___private_Lean_Elab_StructInst_24__elabStruct___main(x_82, x_83, x_4, x_43); -if (lean_obj_tag(x_84) == 0) -{ -lean_object* x_85; lean_object* x_86; uint8_t x_87; -x_85 = lean_ctor_get(x_84, 0); -lean_inc(x_85); -x_86 = lean_ctor_get(x_84, 1); -lean_inc(x_86); -lean_dec(x_84); -x_87 = !lean_is_exclusive(x_85); -if (x_87 == 0) -{ -lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_88 = lean_ctor_get(x_85, 0); -x_89 = lean_ctor_get(x_85, 1); -x_90 = l_Lean_Elab_Term_StructInst_Struct_ref(x_82); -lean_dec(x_82); -lean_inc(x_4); -x_91 = l_Lean_Elab_Term_ensureHasType(x_90, x_83, x_88, x_4, x_86); -if (lean_obj_tag(x_91) == 0) -{ -uint8_t x_92; -x_92 = !lean_is_exclusive(x_91); -if (x_92 == 0) -{ -lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; -x_93 = lean_ctor_get(x_91, 0); -lean_ctor_set(x_37, 0, x_89); +lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_93 = lean_ctor_get(x_87, 0); +x_94 = lean_ctor_get(x_87, 1); +lean_inc(x_94); lean_inc(x_93); -x_94 = l_Lean_mkApp(x_30, x_93); -x_95 = lean_expr_instantiate1(x_80, x_93); -lean_dec(x_80); -x_96 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_96, 0, x_93); -lean_ctor_set(x_8, 3, x_96); +lean_dec(x_87); +lean_inc(x_93); +x_95 = l_Lean_mkApp(x_30, x_93); +x_96 = lean_expr_instantiate1(x_66, x_93); +lean_dec(x_66); +x_97 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_97, 0, x_93); +lean_ctor_set(x_8, 3, x_97); lean_ctor_set(x_3, 1, x_35); -lean_ctor_set(x_85, 1, x_3); -lean_ctor_set(x_85, 0, x_95); -lean_ctor_set(x_24, 1, x_85); -lean_ctor_set(x_24, 0, x_94); -lean_ctor_set(x_91, 0, x_24); -x_10 = x_91; +lean_ctor_set(x_24, 1, x_3); +lean_ctor_set(x_24, 0, x_96); +lean_ctor_set(x_2, 0, x_95); +x_98 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_98, 0, x_2); +lean_ctor_set(x_98, 1, x_94); +x_10 = x_98; +goto block_18; +} +} +else +{ +uint8_t x_99; +lean_dec(x_66); +lean_free_object(x_8); +lean_dec(x_37); +lean_dec(x_36); +lean_free_object(x_24); +lean_dec(x_35); +lean_free_object(x_2); +lean_dec(x_30); +lean_dec(x_25); +lean_free_object(x_3); +x_99 = !lean_is_exclusive(x_87); +if (x_99 == 0) +{ +x_10 = x_87; goto block_18; } else { -lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; -x_97 = lean_ctor_get(x_91, 0); -x_98 = lean_ctor_get(x_91, 1); -lean_inc(x_98); -lean_inc(x_97); -lean_dec(x_91); -lean_ctor_set(x_37, 0, x_89); -lean_inc(x_97); -x_99 = l_Lean_mkApp(x_30, x_97); -x_100 = lean_expr_instantiate1(x_80, x_97); -lean_dec(x_80); -x_101 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_101, 0, x_97); -lean_ctor_set(x_8, 3, x_101); -lean_ctor_set(x_3, 1, x_35); -lean_ctor_set(x_85, 1, x_3); -lean_ctor_set(x_85, 0, x_100); -lean_ctor_set(x_24, 1, x_85); -lean_ctor_set(x_24, 0, x_99); -x_102 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_102, 0, x_24); -lean_ctor_set(x_102, 1, x_98); +lean_object* x_100; lean_object* x_101; lean_object* x_102; +x_100 = lean_ctor_get(x_87, 0); +x_101 = lean_ctor_get(x_87, 1); +lean_inc(x_101); +lean_inc(x_100); +lean_dec(x_87); +x_102 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_102, 0, x_100); +lean_ctor_set(x_102, 1, x_101); x_10 = x_102; goto block_18; } } +} else { uint8_t x_103; -lean_free_object(x_85); -lean_dec(x_89); -lean_free_object(x_37); -lean_dec(x_80); +lean_dec(x_68); +lean_dec(x_67); +lean_dec(x_66); lean_free_object(x_8); +lean_dec(x_37); lean_dec(x_36); lean_free_object(x_24); lean_dec(x_35); +lean_free_object(x_2); lean_dec(x_30); lean_dec(x_25); lean_free_object(x_3); -x_103 = !lean_is_exclusive(x_91); +x_103 = !lean_is_exclusive(x_70); if (x_103 == 0) { -x_10 = x_91; +x_10 = x_70; goto block_18; } else { lean_object* x_104; lean_object* x_105; lean_object* x_106; -x_104 = lean_ctor_get(x_91, 0); -x_105 = lean_ctor_get(x_91, 1); +x_104 = lean_ctor_get(x_70, 0); +x_105 = lean_ctor_get(x_70, 1); lean_inc(x_105); lean_inc(x_104); -lean_dec(x_91); +lean_dec(x_70); x_106 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_106, 0, x_104); lean_ctor_set(x_106, 1, x_105); @@ -17028,169 +17393,143 @@ goto block_18; } } } -else +case 1: { -lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; -x_107 = lean_ctor_get(x_85, 0); -x_108 = lean_ctor_get(x_85, 1); -lean_inc(x_108); +lean_object* x_107; lean_object* x_108; uint8_t x_109; +lean_free_object(x_2); +x_107 = lean_ctor_get(x_42, 1); lean_inc(x_107); -lean_dec(x_85); -x_109 = l_Lean_Elab_Term_StructInst_Struct_ref(x_82); -lean_dec(x_82); -lean_inc(x_4); -x_110 = l_Lean_Elab_Term_ensureHasType(x_109, x_83, x_107, x_4, x_86); -if (lean_obj_tag(x_110) == 0) +x_108 = lean_ctor_get(x_42, 2); +lean_inc(x_108); +lean_dec(x_42); +x_109 = !lean_is_exclusive(x_37); +if (x_109 == 0) { -lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; -x_111 = lean_ctor_get(x_110, 0); +lean_object* x_110; lean_object* x_111; lean_object* x_112; +x_110 = lean_ctor_get(x_37, 0); +x_111 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_111, 0, x_107); +lean_inc(x_4); lean_inc(x_111); -x_112 = lean_ctor_get(x_110, 1); -lean_inc(x_112); -if (lean_is_exclusive(x_110)) { - lean_ctor_release(x_110, 0); - lean_ctor_release(x_110, 1); - x_113 = x_110; -} else { - lean_dec_ref(x_110); - x_113 = lean_box(0); -} -lean_ctor_set(x_37, 0, x_108); -lean_inc(x_111); -x_114 = l_Lean_mkApp(x_30, x_111); -x_115 = lean_expr_instantiate1(x_80, x_111); -lean_dec(x_80); -x_116 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_116, 0, x_111); -lean_ctor_set(x_8, 3, x_116); +x_112 = l___private_Lean_Elab_StructInst_24__elabStruct___main(x_110, x_111, x_4, x_43); +if (lean_obj_tag(x_112) == 0) +{ +lean_object* x_113; lean_object* x_114; uint8_t x_115; +x_113 = lean_ctor_get(x_112, 0); +lean_inc(x_113); +x_114 = lean_ctor_get(x_112, 1); +lean_inc(x_114); +lean_dec(x_112); +x_115 = !lean_is_exclusive(x_113); +if (x_115 == 0) +{ +lean_object* x_116; lean_object* x_117; lean_object* x_118; +x_116 = lean_ctor_get(x_113, 0); +x_117 = lean_ctor_get(x_113, 1); +lean_inc(x_4); +x_118 = l_Lean_Elab_Term_ensureHasType(x_111, x_116, x_4, x_114); +if (lean_obj_tag(x_118) == 0) +{ +uint8_t x_119; +x_119 = !lean_is_exclusive(x_118); +if (x_119 == 0) +{ +lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; +x_120 = lean_ctor_get(x_118, 0); +lean_ctor_set(x_37, 0, x_117); +lean_inc(x_120); +x_121 = l_Lean_mkApp(x_30, x_120); +x_122 = lean_expr_instantiate1(x_108, x_120); +lean_dec(x_108); +x_123 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_123, 0, x_120); +lean_ctor_set(x_8, 3, x_123); lean_ctor_set(x_3, 1, x_35); -x_117 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_117, 0, x_115); -lean_ctor_set(x_117, 1, x_3); -lean_ctor_set(x_24, 1, x_117); -lean_ctor_set(x_24, 0, x_114); -if (lean_is_scalar(x_113)) { - x_118 = lean_alloc_ctor(0, 2, 0); -} else { - x_118 = x_113; -} +lean_ctor_set(x_113, 1, x_3); +lean_ctor_set(x_113, 0, x_122); +lean_ctor_set(x_24, 1, x_113); +lean_ctor_set(x_24, 0, x_121); lean_ctor_set(x_118, 0, x_24); -lean_ctor_set(x_118, 1, x_112); x_10 = x_118; goto block_18; } else { -lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; -lean_dec(x_108); -lean_free_object(x_37); -lean_dec(x_80); -lean_free_object(x_8); -lean_dec(x_36); -lean_free_object(x_24); -lean_dec(x_35); -lean_dec(x_30); -lean_dec(x_25); -lean_free_object(x_3); -x_119 = lean_ctor_get(x_110, 0); -lean_inc(x_119); -x_120 = lean_ctor_get(x_110, 1); -lean_inc(x_120); -if (lean_is_exclusive(x_110)) { - lean_ctor_release(x_110, 0); - lean_ctor_release(x_110, 1); - x_121 = x_110; -} else { - lean_dec_ref(x_110); - x_121 = lean_box(0); -} -if (lean_is_scalar(x_121)) { - x_122 = lean_alloc_ctor(1, 2, 0); -} else { - x_122 = x_121; -} -lean_ctor_set(x_122, 0, x_119); -lean_ctor_set(x_122, 1, x_120); -x_10 = x_122; -goto block_18; -} -} -} -else -{ -uint8_t x_123; -lean_dec(x_83); -lean_free_object(x_37); -lean_dec(x_82); -lean_dec(x_80); -lean_free_object(x_8); -lean_dec(x_36); -lean_free_object(x_24); -lean_dec(x_35); -lean_dec(x_30); -lean_dec(x_25); -lean_free_object(x_3); -x_123 = !lean_is_exclusive(x_84); -if (x_123 == 0) -{ -x_10 = x_84; -goto block_18; -} -else -{ -lean_object* x_124; lean_object* x_125; lean_object* x_126; -x_124 = lean_ctor_get(x_84, 0); -x_125 = lean_ctor_get(x_84, 1); +lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; +x_124 = lean_ctor_get(x_118, 0); +x_125 = lean_ctor_get(x_118, 1); lean_inc(x_125); lean_inc(x_124); -lean_dec(x_84); -x_126 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_126, 0, x_124); -lean_ctor_set(x_126, 1, x_125); -x_10 = x_126; +lean_dec(x_118); +lean_ctor_set(x_37, 0, x_117); +lean_inc(x_124); +x_126 = l_Lean_mkApp(x_30, x_124); +x_127 = lean_expr_instantiate1(x_108, x_124); +lean_dec(x_108); +x_128 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_128, 0, x_124); +lean_ctor_set(x_8, 3, x_128); +lean_ctor_set(x_3, 1, x_35); +lean_ctor_set(x_113, 1, x_3); +lean_ctor_set(x_113, 0, x_127); +lean_ctor_set(x_24, 1, x_113); +lean_ctor_set(x_24, 0, x_126); +x_129 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_129, 0, x_24); +lean_ctor_set(x_129, 1, x_125); +x_10 = x_129; +goto block_18; +} +} +else +{ +uint8_t x_130; +lean_free_object(x_113); +lean_dec(x_117); +lean_free_object(x_37); +lean_dec(x_108); +lean_free_object(x_8); +lean_dec(x_36); +lean_free_object(x_24); +lean_dec(x_35); +lean_dec(x_30); +lean_dec(x_25); +lean_free_object(x_3); +x_130 = !lean_is_exclusive(x_118); +if (x_130 == 0) +{ +x_10 = x_118; +goto block_18; +} +else +{ +lean_object* x_131; lean_object* x_132; lean_object* x_133; +x_131 = lean_ctor_get(x_118, 0); +x_132 = lean_ctor_get(x_118, 1); +lean_inc(x_132); +lean_inc(x_131); +lean_dec(x_118); +x_133 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_133, 0, x_131); +lean_ctor_set(x_133, 1, x_132); +x_10 = x_133; goto block_18; } } } else { -lean_object* x_127; lean_object* x_128; lean_object* x_129; -x_127 = lean_ctor_get(x_37, 0); -lean_inc(x_127); -lean_dec(x_37); -x_128 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_128, 0, x_79); +lean_object* x_134; lean_object* x_135; lean_object* x_136; +x_134 = lean_ctor_get(x_113, 0); +x_135 = lean_ctor_get(x_113, 1); +lean_inc(x_135); +lean_inc(x_134); +lean_dec(x_113); lean_inc(x_4); -lean_inc(x_128); -lean_inc(x_127); -x_129 = l___private_Lean_Elab_StructInst_24__elabStruct___main(x_127, x_128, x_4, x_43); -if (lean_obj_tag(x_129) == 0) -{ -lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; -x_130 = lean_ctor_get(x_129, 0); -lean_inc(x_130); -x_131 = lean_ctor_get(x_129, 1); -lean_inc(x_131); -lean_dec(x_129); -x_132 = lean_ctor_get(x_130, 0); -lean_inc(x_132); -x_133 = lean_ctor_get(x_130, 1); -lean_inc(x_133); -if (lean_is_exclusive(x_130)) { - lean_ctor_release(x_130, 0); - lean_ctor_release(x_130, 1); - x_134 = x_130; -} else { - lean_dec_ref(x_130); - x_134 = lean_box(0); -} -x_135 = l_Lean_Elab_Term_StructInst_Struct_ref(x_127); -lean_dec(x_127); -lean_inc(x_4); -x_136 = l_Lean_Elab_Term_ensureHasType(x_135, x_128, x_132, x_4, x_131); +x_136 = l_Lean_Elab_Term_ensureHasType(x_111, x_134, x_4, x_114); if (lean_obj_tag(x_136) == 0) { -lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; +lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; x_137 = lean_ctor_get(x_136, 0); lean_inc(x_137); x_138 = lean_ctor_get(x_136, 1); @@ -17203,42 +17542,36 @@ if (lean_is_exclusive(x_136)) { lean_dec_ref(x_136); x_139 = lean_box(0); } -x_140 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_140, 0, x_133); +lean_ctor_set(x_37, 0, x_135); lean_inc(x_137); -x_141 = l_Lean_mkApp(x_30, x_137); -x_142 = lean_expr_instantiate1(x_80, x_137); -lean_dec(x_80); -x_143 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_143, 0, x_137); -lean_ctor_set(x_8, 3, x_143); -lean_ctor_set(x_8, 2, x_140); +x_140 = l_Lean_mkApp(x_30, x_137); +x_141 = lean_expr_instantiate1(x_108, x_137); +lean_dec(x_108); +x_142 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_142, 0, x_137); +lean_ctor_set(x_8, 3, x_142); lean_ctor_set(x_3, 1, x_35); -if (lean_is_scalar(x_134)) { +x_143 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_143, 0, x_141); +lean_ctor_set(x_143, 1, x_3); +lean_ctor_set(x_24, 1, x_143); +lean_ctor_set(x_24, 0, x_140); +if (lean_is_scalar(x_139)) { x_144 = lean_alloc_ctor(0, 2, 0); } else { - x_144 = x_134; + x_144 = x_139; } -lean_ctor_set(x_144, 0, x_142); -lean_ctor_set(x_144, 1, x_3); -lean_ctor_set(x_24, 1, x_144); -lean_ctor_set(x_24, 0, x_141); -if (lean_is_scalar(x_139)) { - x_145 = lean_alloc_ctor(0, 2, 0); -} else { - x_145 = x_139; -} -lean_ctor_set(x_145, 0, x_24); -lean_ctor_set(x_145, 1, x_138); -x_10 = x_145; +lean_ctor_set(x_144, 0, x_24); +lean_ctor_set(x_144, 1, x_138); +x_10 = x_144; goto block_18; } else { -lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; -lean_dec(x_134); -lean_dec(x_133); -lean_dec(x_80); +lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; +lean_dec(x_135); +lean_free_object(x_37); +lean_dec(x_108); lean_free_object(x_8); lean_dec(x_36); lean_free_object(x_24); @@ -17246,35 +17579,36 @@ lean_dec(x_35); lean_dec(x_30); lean_dec(x_25); lean_free_object(x_3); -x_146 = lean_ctor_get(x_136, 0); +x_145 = lean_ctor_get(x_136, 0); +lean_inc(x_145); +x_146 = lean_ctor_get(x_136, 1); lean_inc(x_146); -x_147 = lean_ctor_get(x_136, 1); -lean_inc(x_147); if (lean_is_exclusive(x_136)) { lean_ctor_release(x_136, 0); lean_ctor_release(x_136, 1); - x_148 = x_136; + x_147 = x_136; } else { lean_dec_ref(x_136); - x_148 = lean_box(0); + x_147 = lean_box(0); } -if (lean_is_scalar(x_148)) { - x_149 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_147)) { + x_148 = lean_alloc_ctor(1, 2, 0); } else { - x_149 = x_148; + x_148 = x_147; } -lean_ctor_set(x_149, 0, x_146); -lean_ctor_set(x_149, 1, x_147); -x_10 = x_149; +lean_ctor_set(x_148, 0, x_145); +lean_ctor_set(x_148, 1, x_146); +x_10 = x_148; goto block_18; } } +} else { -lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; -lean_dec(x_128); -lean_dec(x_127); -lean_dec(x_80); +uint8_t x_149; +lean_dec(x_111); +lean_free_object(x_37); +lean_dec(x_108); lean_free_object(x_8); lean_dec(x_36); lean_free_object(x_24); @@ -17282,89 +17616,275 @@ lean_dec(x_35); lean_dec(x_30); lean_dec(x_25); lean_free_object(x_3); -x_150 = lean_ctor_get(x_129, 0); -lean_inc(x_150); -x_151 = lean_ctor_get(x_129, 1); +x_149 = !lean_is_exclusive(x_112); +if (x_149 == 0) +{ +x_10 = x_112; +goto block_18; +} +else +{ +lean_object* x_150; lean_object* x_151; lean_object* x_152; +x_150 = lean_ctor_get(x_112, 0); +x_151 = lean_ctor_get(x_112, 1); lean_inc(x_151); -if (lean_is_exclusive(x_129)) { - lean_ctor_release(x_129, 0); - lean_ctor_release(x_129, 1); - x_152 = x_129; -} else { - lean_dec_ref(x_129); - x_152 = lean_box(0); +lean_inc(x_150); +lean_dec(x_112); +x_152 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_152, 0, x_150); +lean_ctor_set(x_152, 1, x_151); +x_10 = x_152; +goto block_18; } -if (lean_is_scalar(x_152)) { - x_153 = lean_alloc_ctor(1, 2, 0); -} else { - x_153 = x_152; } -lean_ctor_set(x_153, 0, x_150); -lean_ctor_set(x_153, 1, x_151); -x_10 = x_153; +} +else +{ +lean_object* x_153; lean_object* x_154; lean_object* x_155; +x_153 = lean_ctor_get(x_37, 0); +lean_inc(x_153); +lean_dec(x_37); +x_154 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_154, 0, x_107); +lean_inc(x_4); +lean_inc(x_154); +x_155 = l___private_Lean_Elab_StructInst_24__elabStruct___main(x_153, x_154, x_4, x_43); +if (lean_obj_tag(x_155) == 0) +{ +lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; +x_156 = lean_ctor_get(x_155, 0); +lean_inc(x_156); +x_157 = lean_ctor_get(x_155, 1); +lean_inc(x_157); +lean_dec(x_155); +x_158 = lean_ctor_get(x_156, 0); +lean_inc(x_158); +x_159 = lean_ctor_get(x_156, 1); +lean_inc(x_159); +if (lean_is_exclusive(x_156)) { + lean_ctor_release(x_156, 0); + lean_ctor_release(x_156, 1); + x_160 = x_156; +} else { + lean_dec_ref(x_156); + x_160 = lean_box(0); +} +lean_inc(x_4); +x_161 = l_Lean_Elab_Term_ensureHasType(x_154, x_158, x_4, x_157); +if (lean_obj_tag(x_161) == 0) +{ +lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; +x_162 = lean_ctor_get(x_161, 0); +lean_inc(x_162); +x_163 = lean_ctor_get(x_161, 1); +lean_inc(x_163); +if (lean_is_exclusive(x_161)) { + lean_ctor_release(x_161, 0); + lean_ctor_release(x_161, 1); + x_164 = x_161; +} else { + lean_dec_ref(x_161); + x_164 = lean_box(0); +} +x_165 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_165, 0, x_159); +lean_inc(x_162); +x_166 = l_Lean_mkApp(x_30, x_162); +x_167 = lean_expr_instantiate1(x_108, x_162); +lean_dec(x_108); +x_168 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_168, 0, x_162); +lean_ctor_set(x_8, 3, x_168); +lean_ctor_set(x_8, 2, x_165); +lean_ctor_set(x_3, 1, x_35); +if (lean_is_scalar(x_160)) { + x_169 = lean_alloc_ctor(0, 2, 0); +} else { + x_169 = x_160; +} +lean_ctor_set(x_169, 0, x_167); +lean_ctor_set(x_169, 1, x_3); +lean_ctor_set(x_24, 1, x_169); +lean_ctor_set(x_24, 0, x_166); +if (lean_is_scalar(x_164)) { + x_170 = lean_alloc_ctor(0, 2, 0); +} else { + x_170 = x_164; +} +lean_ctor_set(x_170, 0, x_24); +lean_ctor_set(x_170, 1, x_163); +x_10 = x_170; +goto block_18; +} +else +{ +lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; +lean_dec(x_160); +lean_dec(x_159); +lean_dec(x_108); +lean_free_object(x_8); +lean_dec(x_36); +lean_free_object(x_24); +lean_dec(x_35); +lean_dec(x_30); +lean_dec(x_25); +lean_free_object(x_3); +x_171 = lean_ctor_get(x_161, 0); +lean_inc(x_171); +x_172 = lean_ctor_get(x_161, 1); +lean_inc(x_172); +if (lean_is_exclusive(x_161)) { + lean_ctor_release(x_161, 0); + lean_ctor_release(x_161, 1); + x_173 = x_161; +} else { + lean_dec_ref(x_161); + x_173 = lean_box(0); +} +if (lean_is_scalar(x_173)) { + x_174 = lean_alloc_ctor(1, 2, 0); +} else { + x_174 = x_173; +} +lean_ctor_set(x_174, 0, x_171); +lean_ctor_set(x_174, 1, x_172); +x_10 = x_174; +goto block_18; +} +} +else +{ +lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; +lean_dec(x_154); +lean_dec(x_108); +lean_free_object(x_8); +lean_dec(x_36); +lean_free_object(x_24); +lean_dec(x_35); +lean_dec(x_30); +lean_dec(x_25); +lean_free_object(x_3); +x_175 = lean_ctor_get(x_155, 0); +lean_inc(x_175); +x_176 = lean_ctor_get(x_155, 1); +lean_inc(x_176); +if (lean_is_exclusive(x_155)) { + lean_ctor_release(x_155, 0); + lean_ctor_release(x_155, 1); + x_177 = x_155; +} else { + lean_dec_ref(x_155); + x_177 = lean_box(0); +} +if (lean_is_scalar(x_177)) { + x_178 = lean_alloc_ctor(1, 2, 0); +} else { + x_178 = x_177; +} +lean_ctor_set(x_178, 0, x_175); +lean_ctor_set(x_178, 1, x_176); +x_10 = x_178; goto block_18; } } } default: { -lean_object* x_154; lean_object* x_155; lean_object* x_156; uint8_t x_157; lean_object* x_158; lean_object* x_159; uint8_t x_160; -x_154 = lean_ctor_get(x_42, 1); -lean_inc(x_154); -x_155 = lean_ctor_get(x_42, 2); -lean_inc(x_155); +lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; uint8_t x_192; uint8_t x_193; uint8_t x_194; lean_object* x_195; uint8_t x_196; lean_object* x_197; lean_object* x_198; uint8_t x_199; +x_179 = lean_ctor_get(x_42, 1); +lean_inc(x_179); +x_180 = lean_ctor_get(x_42, 2); +lean_inc(x_180); lean_dec(x_42); -x_156 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_156, 0, x_154); -x_157 = 0; -x_158 = lean_box(0); -lean_inc(x_4); -x_159 = l_Lean_Elab_Term_mkFreshExprMVar(x_36, x_156, x_157, x_158, x_4, x_43); -x_160 = !lean_is_exclusive(x_159); -if (x_160 == 0) +x_181 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_181, 0, x_179); +x_182 = lean_ctor_get(x_4, 0); +lean_inc(x_182); +x_183 = lean_ctor_get(x_4, 1); +lean_inc(x_183); +x_184 = lean_ctor_get(x_4, 2); +lean_inc(x_184); +x_185 = lean_ctor_get(x_4, 3); +lean_inc(x_185); +x_186 = lean_ctor_get(x_4, 4); +lean_inc(x_186); +x_187 = lean_ctor_get(x_4, 5); +lean_inc(x_187); +x_188 = lean_ctor_get(x_4, 6); +lean_inc(x_188); +x_189 = lean_ctor_get(x_4, 7); +lean_inc(x_189); +x_190 = lean_ctor_get(x_4, 8); +lean_inc(x_190); +x_191 = lean_ctor_get(x_4, 9); +lean_inc(x_191); +x_192 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_193 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_194 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +lean_inc(x_36); +x_195 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_195, 0, x_182); +lean_ctor_set(x_195, 1, x_183); +lean_ctor_set(x_195, 2, x_184); +lean_ctor_set(x_195, 3, x_185); +lean_ctor_set(x_195, 4, x_186); +lean_ctor_set(x_195, 5, x_187); +lean_ctor_set(x_195, 6, x_188); +lean_ctor_set(x_195, 7, x_189); +lean_ctor_set(x_195, 8, x_190); +lean_ctor_set(x_195, 9, x_191); +lean_ctor_set(x_195, 10, x_36); +lean_ctor_set_uint8(x_195, sizeof(void*)*11, x_192); +lean_ctor_set_uint8(x_195, sizeof(void*)*11 + 1, x_193); +lean_ctor_set_uint8(x_195, sizeof(void*)*11 + 2, x_194); +x_196 = 0; +x_197 = lean_box(0); +x_198 = l_Lean_Elab_Term_mkFreshExprMVar(x_181, x_196, x_197, x_195, x_43); +x_199 = !lean_is_exclusive(x_198); +if (x_199 == 0) { -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_159, 0); -x_162 = l_Lean_Elab_Term_StructInst_markDefaultMissing(x_161); -lean_inc(x_162); -x_163 = l_Lean_mkApp(x_30, x_162); -x_164 = lean_expr_instantiate1(x_155, x_162); -lean_dec(x_155); -x_165 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_165, 0, x_162); -lean_ctor_set(x_8, 3, x_165); +lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; +x_200 = lean_ctor_get(x_198, 0); +x_201 = l_Lean_Elab_Term_StructInst_markDefaultMissing(x_200); +lean_inc(x_201); +x_202 = l_Lean_mkApp(x_30, x_201); +x_203 = lean_expr_instantiate1(x_180, x_201); +lean_dec(x_180); +x_204 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_204, 0, x_201); +lean_ctor_set(x_8, 3, x_204); lean_ctor_set(x_3, 1, x_35); lean_ctor_set(x_24, 1, x_3); -lean_ctor_set(x_24, 0, x_164); -lean_ctor_set(x_2, 0, x_163); -lean_ctor_set(x_159, 0, x_2); -x_10 = x_159; +lean_ctor_set(x_24, 0, x_203); +lean_ctor_set(x_2, 0, x_202); +lean_ctor_set(x_198, 0, x_2); +x_10 = x_198; goto block_18; } else { -lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; -x_166 = lean_ctor_get(x_159, 0); -x_167 = lean_ctor_get(x_159, 1); -lean_inc(x_167); -lean_inc(x_166); -lean_dec(x_159); -x_168 = l_Lean_Elab_Term_StructInst_markDefaultMissing(x_166); -lean_inc(x_168); -x_169 = l_Lean_mkApp(x_30, x_168); -x_170 = lean_expr_instantiate1(x_155, x_168); -lean_dec(x_155); -x_171 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_171, 0, x_168); -lean_ctor_set(x_8, 3, x_171); +lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; +x_205 = lean_ctor_get(x_198, 0); +x_206 = lean_ctor_get(x_198, 1); +lean_inc(x_206); +lean_inc(x_205); +lean_dec(x_198); +x_207 = l_Lean_Elab_Term_StructInst_markDefaultMissing(x_205); +lean_inc(x_207); +x_208 = l_Lean_mkApp(x_30, x_207); +x_209 = lean_expr_instantiate1(x_180, x_207); +lean_dec(x_180); +x_210 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_210, 0, x_207); +lean_ctor_set(x_8, 3, x_210); lean_ctor_set(x_3, 1, x_35); lean_ctor_set(x_24, 1, x_3); -lean_ctor_set(x_24, 0, x_170); -lean_ctor_set(x_2, 0, x_169); -x_172 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_172, 0, x_2); -lean_ctor_set(x_172, 1, x_167); -x_10 = x_172; +lean_ctor_set(x_24, 0, x_209); +lean_ctor_set(x_2, 0, x_208); +x_211 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_211, 0, x_2); +lean_ctor_set(x_211, 1, x_206); +x_10 = x_211; goto block_18; } } @@ -17372,7 +17892,7 @@ goto block_18; } else { -lean_object* x_173; +lean_object* x_212; lean_free_object(x_8); lean_dec(x_37); lean_free_object(x_24); @@ -17381,13 +17901,13 @@ lean_free_object(x_2); lean_dec(x_30); lean_dec(x_25); lean_free_object(x_3); -x_173 = lean_box(0); -x_44 = x_173; -goto block_50; +x_212 = lean_box(0); +x_44 = x_212; +goto block_64; } -block_50: +block_64: { -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +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; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; uint8_t x_60; uint8_t x_61; lean_object* x_62; lean_object* x_63; lean_dec(x_44); x_45 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_45, 0, x_42); @@ -17396,17 +17916,53 @@ x_47 = l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___closed__3; x_48 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_48, 0, x_47); lean_ctor_set(x_48, 1, x_46); -lean_inc(x_4); +x_49 = lean_ctor_get(x_4, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_4, 1); +lean_inc(x_50); +x_51 = lean_ctor_get(x_4, 2); +lean_inc(x_51); +x_52 = lean_ctor_get(x_4, 3); +lean_inc(x_52); +x_53 = lean_ctor_get(x_4, 4); +lean_inc(x_53); +x_54 = lean_ctor_get(x_4, 5); +lean_inc(x_54); +x_55 = lean_ctor_get(x_4, 6); +lean_inc(x_55); +x_56 = lean_ctor_get(x_4, 7); +lean_inc(x_56); +x_57 = lean_ctor_get(x_4, 8); +lean_inc(x_57); +x_58 = lean_ctor_get(x_4, 9); +lean_inc(x_58); +x_59 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_60 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_61 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +x_62 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_62, 0, x_49); +lean_ctor_set(x_62, 1, x_50); +lean_ctor_set(x_62, 2, x_51); +lean_ctor_set(x_62, 3, x_52); +lean_ctor_set(x_62, 4, x_53); +lean_ctor_set(x_62, 5, x_54); +lean_ctor_set(x_62, 6, x_55); +lean_ctor_set(x_62, 7, x_56); +lean_ctor_set(x_62, 8, x_57); +lean_ctor_set(x_62, 9, x_58); +lean_ctor_set(x_62, 10, x_36); +lean_ctor_set_uint8(x_62, sizeof(void*)*11, x_59); +lean_ctor_set_uint8(x_62, sizeof(void*)*11 + 1, x_60); +lean_ctor_set_uint8(x_62, sizeof(void*)*11 + 2, x_61); lean_inc(x_1); -x_49 = l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg(x_36, x_40, x_1, x_48, x_4, x_43); -lean_dec(x_36); -x_10 = x_49; +x_63 = l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg(x_40, x_1, x_48, x_62, x_43); +x_10 = x_63; goto block_18; } } else { -uint8_t x_174; +uint8_t x_213; lean_dec(x_40); lean_free_object(x_8); lean_dec(x_37); @@ -17417,664 +17973,353 @@ lean_free_object(x_2); lean_dec(x_30); lean_dec(x_25); lean_free_object(x_3); -x_174 = !lean_is_exclusive(x_41); -if (x_174 == 0) +x_213 = !lean_is_exclusive(x_41); +if (x_213 == 0) { x_10 = x_41; goto block_18; } else { -lean_object* x_175; lean_object* x_176; lean_object* x_177; -x_175 = lean_ctor_get(x_41, 0); -x_176 = lean_ctor_get(x_41, 1); -lean_inc(x_176); -lean_inc(x_175); +lean_object* x_214; lean_object* x_215; lean_object* x_216; +x_214 = lean_ctor_get(x_41, 0); +x_215 = lean_ctor_get(x_41, 1); +lean_inc(x_215); +lean_inc(x_214); lean_dec(x_41); -x_177 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_177, 0, x_175); -lean_ctor_set(x_177, 1, x_176); -x_10 = x_177; +x_216 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_216, 0, x_214); +lean_ctor_set(x_216, 1, x_215); +x_10 = x_216; goto block_18; } } } 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; -x_178 = lean_ctor_get(x_24, 0); -x_179 = lean_ctor_get(x_24, 1); -x_180 = lean_ctor_get(x_8, 0); -x_181 = lean_ctor_get(x_8, 2); -lean_inc(x_181); -lean_inc(x_180); +lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; +x_217 = lean_ctor_get(x_24, 0); +x_218 = lean_ctor_get(x_24, 1); +x_219 = lean_ctor_get(x_8, 0); +x_220 = lean_ctor_get(x_8, 2); +lean_inc(x_220); +lean_inc(x_219); lean_dec(x_8); -x_182 = lean_ctor_get(x_27, 1); -lean_inc(x_182); +x_221 = lean_ctor_get(x_27, 1); +lean_inc(x_221); lean_dec(x_27); lean_inc(x_4); -x_183 = l_Lean_Elab_Term_whnfForall(x_180, x_178, x_4, x_5); -if (lean_obj_tag(x_183) == 0) +x_222 = l_Lean_Elab_Term_whnfForall(x_217, x_4, x_5); +if (lean_obj_tag(x_222) == 0) { -lean_object* x_184; lean_object* x_185; lean_object* x_186; -x_184 = lean_ctor_get(x_183, 0); -lean_inc(x_184); -x_185 = lean_ctor_get(x_183, 1); -lean_inc(x_185); -lean_dec(x_183); -if (lean_obj_tag(x_184) == 7) +lean_object* x_223; lean_object* x_224; lean_object* x_225; +x_223 = lean_ctor_get(x_222, 0); +lean_inc(x_223); +x_224 = lean_ctor_get(x_222, 1); +lean_inc(x_224); +lean_dec(x_222); +if (lean_obj_tag(x_223) == 7) { -lean_dec(x_182); -switch (lean_obj_tag(x_181)) { +lean_dec(x_221); +switch (lean_obj_tag(x_220)) { case 0: { -lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; uint8_t x_197; lean_object* x_198; -x_193 = lean_ctor_get(x_184, 1); -lean_inc(x_193); -x_194 = lean_ctor_get(x_184, 2); -lean_inc(x_194); -lean_dec(x_184); -x_195 = lean_ctor_get(x_181, 0); -lean_inc(x_195); -x_196 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_196, 0, x_193); -x_197 = 1; +lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; uint8_t x_250; lean_object* x_251; +x_246 = lean_ctor_get(x_223, 1); +lean_inc(x_246); +x_247 = lean_ctor_get(x_223, 2); +lean_inc(x_247); +lean_dec(x_223); +x_248 = lean_ctor_get(x_220, 0); +lean_inc(x_248); +x_249 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_249, 0, x_246); +x_250 = 1; lean_inc(x_4); -lean_inc(x_195); -lean_inc(x_196); -x_198 = l_Lean_Elab_Term_elabTermAux___main(x_196, x_197, x_197, x_195, x_4, x_185); -if (lean_obj_tag(x_198) == 0) +lean_inc(x_249); +lean_inc(x_248); +x_251 = l_Lean_Elab_Term_elabTerm(x_248, x_249, x_250, x_4, x_224); +if (lean_obj_tag(x_251) == 0) { -lean_object* x_199; lean_object* x_200; lean_object* x_201; -x_199 = lean_ctor_get(x_198, 0); -lean_inc(x_199); -x_200 = lean_ctor_get(x_198, 1); -lean_inc(x_200); -lean_dec(x_198); -lean_inc(x_4); -x_201 = l_Lean_Elab_Term_ensureHasType(x_195, x_196, x_199, x_4, x_200); -if (lean_obj_tag(x_201) == 0) +lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; uint8_t x_264; uint8_t x_265; uint8_t x_266; lean_object* x_267; lean_object* x_268; +x_252 = lean_ctor_get(x_251, 0); +lean_inc(x_252); +x_253 = lean_ctor_get(x_251, 1); +lean_inc(x_253); +lean_dec(x_251); +x_254 = lean_ctor_get(x_4, 0); +lean_inc(x_254); +x_255 = lean_ctor_get(x_4, 1); +lean_inc(x_255); +x_256 = lean_ctor_get(x_4, 2); +lean_inc(x_256); +x_257 = lean_ctor_get(x_4, 3); +lean_inc(x_257); +x_258 = lean_ctor_get(x_4, 4); +lean_inc(x_258); +x_259 = lean_ctor_get(x_4, 5); +lean_inc(x_259); +x_260 = lean_ctor_get(x_4, 6); +lean_inc(x_260); +x_261 = lean_ctor_get(x_4, 7); +lean_inc(x_261); +x_262 = lean_ctor_get(x_4, 8); +lean_inc(x_262); +x_263 = lean_ctor_get(x_4, 9); +lean_inc(x_263); +x_264 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_265 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_266 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +x_267 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_267, 0, x_254); +lean_ctor_set(x_267, 1, x_255); +lean_ctor_set(x_267, 2, x_256); +lean_ctor_set(x_267, 3, x_257); +lean_ctor_set(x_267, 4, x_258); +lean_ctor_set(x_267, 5, x_259); +lean_ctor_set(x_267, 6, x_260); +lean_ctor_set(x_267, 7, x_261); +lean_ctor_set(x_267, 8, x_262); +lean_ctor_set(x_267, 9, x_263); +lean_ctor_set(x_267, 10, x_248); +lean_ctor_set_uint8(x_267, sizeof(void*)*11, x_264); +lean_ctor_set_uint8(x_267, sizeof(void*)*11 + 1, x_265); +lean_ctor_set_uint8(x_267, sizeof(void*)*11 + 2, x_266); +x_268 = l_Lean_Elab_Term_ensureHasType(x_249, x_252, x_267, x_253); +if (lean_obj_tag(x_268) == 0) { -lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; -x_202 = lean_ctor_get(x_201, 0); -lean_inc(x_202); -x_203 = lean_ctor_get(x_201, 1); -lean_inc(x_203); -if (lean_is_exclusive(x_201)) { - lean_ctor_release(x_201, 0); - lean_ctor_release(x_201, 1); - x_204 = x_201; +lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; +x_269 = lean_ctor_get(x_268, 0); +lean_inc(x_269); +x_270 = lean_ctor_get(x_268, 1); +lean_inc(x_270); +if (lean_is_exclusive(x_268)) { + lean_ctor_release(x_268, 0); + lean_ctor_release(x_268, 1); + x_271 = x_268; } else { - lean_dec_ref(x_201); - x_204 = lean_box(0); + lean_dec_ref(x_268); + x_271 = lean_box(0); } -lean_inc(x_202); -x_205 = l_Lean_mkApp(x_30, x_202); -x_206 = lean_expr_instantiate1(x_194, x_202); -lean_dec(x_194); -x_207 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_207, 0, x_202); -x_208 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_208, 0, x_180); -lean_ctor_set(x_208, 1, x_25); -lean_ctor_set(x_208, 2, x_181); -lean_ctor_set(x_208, 3, x_207); -lean_ctor_set(x_3, 1, x_179); -lean_ctor_set(x_3, 0, x_208); +lean_inc(x_269); +x_272 = l_Lean_mkApp(x_30, x_269); +x_273 = lean_expr_instantiate1(x_247, x_269); +lean_dec(x_247); +x_274 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_274, 0, x_269); +x_275 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_275, 0, x_219); +lean_ctor_set(x_275, 1, x_25); +lean_ctor_set(x_275, 2, x_220); +lean_ctor_set(x_275, 3, x_274); +lean_ctor_set(x_3, 1, x_218); +lean_ctor_set(x_3, 0, x_275); lean_ctor_set(x_24, 1, x_3); -lean_ctor_set(x_24, 0, x_206); -lean_ctor_set(x_2, 0, x_205); -if (lean_is_scalar(x_204)) { - x_209 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_273); +lean_ctor_set(x_2, 0, x_272); +if (lean_is_scalar(x_271)) { + x_276 = lean_alloc_ctor(0, 2, 0); } else { - x_209 = x_204; + x_276 = x_271; } -lean_ctor_set(x_209, 0, x_2); -lean_ctor_set(x_209, 1, x_203); -x_10 = x_209; +lean_ctor_set(x_276, 0, x_2); +lean_ctor_set(x_276, 1, x_270); +x_10 = x_276; goto block_18; } else { -lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; -lean_dec(x_194); -lean_dec(x_181); -lean_dec(x_180); +lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; +lean_dec(x_247); +lean_dec(x_220); +lean_dec(x_219); lean_free_object(x_24); -lean_dec(x_179); +lean_dec(x_218); lean_free_object(x_2); lean_dec(x_30); lean_dec(x_25); lean_free_object(x_3); -x_210 = lean_ctor_get(x_201, 0); -lean_inc(x_210); -x_211 = lean_ctor_get(x_201, 1); -lean_inc(x_211); -if (lean_is_exclusive(x_201)) { - lean_ctor_release(x_201, 0); - lean_ctor_release(x_201, 1); - x_212 = x_201; +x_277 = lean_ctor_get(x_268, 0); +lean_inc(x_277); +x_278 = lean_ctor_get(x_268, 1); +lean_inc(x_278); +if (lean_is_exclusive(x_268)) { + lean_ctor_release(x_268, 0); + lean_ctor_release(x_268, 1); + x_279 = x_268; } else { - lean_dec_ref(x_201); - x_212 = lean_box(0); + lean_dec_ref(x_268); + x_279 = lean_box(0); } -if (lean_is_scalar(x_212)) { - x_213 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_279)) { + x_280 = lean_alloc_ctor(1, 2, 0); } else { - x_213 = x_212; + x_280 = x_279; } -lean_ctor_set(x_213, 0, x_210); -lean_ctor_set(x_213, 1, x_211); -x_10 = x_213; +lean_ctor_set(x_280, 0, x_277); +lean_ctor_set(x_280, 1, x_278); +x_10 = x_280; goto block_18; } } else { -lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; -lean_dec(x_196); -lean_dec(x_195); -lean_dec(x_194); -lean_dec(x_181); -lean_dec(x_180); +lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; +lean_dec(x_249); +lean_dec(x_248); +lean_dec(x_247); +lean_dec(x_220); +lean_dec(x_219); lean_free_object(x_24); -lean_dec(x_179); +lean_dec(x_218); lean_free_object(x_2); lean_dec(x_30); lean_dec(x_25); lean_free_object(x_3); -x_214 = lean_ctor_get(x_198, 0); -lean_inc(x_214); -x_215 = lean_ctor_get(x_198, 1); -lean_inc(x_215); -if (lean_is_exclusive(x_198)) { - lean_ctor_release(x_198, 0); - lean_ctor_release(x_198, 1); - x_216 = x_198; +x_281 = lean_ctor_get(x_251, 0); +lean_inc(x_281); +x_282 = lean_ctor_get(x_251, 1); +lean_inc(x_282); +if (lean_is_exclusive(x_251)) { + lean_ctor_release(x_251, 0); + lean_ctor_release(x_251, 1); + x_283 = x_251; } else { - lean_dec_ref(x_198); - x_216 = lean_box(0); + lean_dec_ref(x_251); + x_283 = lean_box(0); } -if (lean_is_scalar(x_216)) { - x_217 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_283)) { + x_284 = lean_alloc_ctor(1, 2, 0); } else { - x_217 = x_216; + x_284 = x_283; } -lean_ctor_set(x_217, 0, x_214); -lean_ctor_set(x_217, 1, x_215); -x_10 = x_217; +lean_ctor_set(x_284, 0, x_281); +lean_ctor_set(x_284, 1, x_282); +x_10 = x_284; goto block_18; } } case 1: { -lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; +lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_free_object(x_2); -x_218 = lean_ctor_get(x_184, 1); -lean_inc(x_218); -x_219 = lean_ctor_get(x_184, 2); -lean_inc(x_219); -lean_dec(x_184); -x_220 = lean_ctor_get(x_181, 0); -lean_inc(x_220); -if (lean_is_exclusive(x_181)) { - lean_ctor_release(x_181, 0); - x_221 = x_181; -} else { - lean_dec_ref(x_181); - x_221 = lean_box(0); -} -x_222 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_222, 0, x_218); -lean_inc(x_4); -lean_inc(x_222); -lean_inc(x_220); -x_223 = l___private_Lean_Elab_StructInst_24__elabStruct___main(x_220, x_222, x_4, x_185); -if (lean_obj_tag(x_223) == 0) -{ -lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; -x_224 = lean_ctor_get(x_223, 0); -lean_inc(x_224); -x_225 = lean_ctor_get(x_223, 1); -lean_inc(x_225); -lean_dec(x_223); -x_226 = lean_ctor_get(x_224, 0); -lean_inc(x_226); -x_227 = lean_ctor_get(x_224, 1); -lean_inc(x_227); -if (lean_is_exclusive(x_224)) { - lean_ctor_release(x_224, 0); - lean_ctor_release(x_224, 1); - x_228 = x_224; -} else { - lean_dec_ref(x_224); - x_228 = lean_box(0); -} -x_229 = l_Lean_Elab_Term_StructInst_Struct_ref(x_220); -lean_dec(x_220); -lean_inc(x_4); -x_230 = l_Lean_Elab_Term_ensureHasType(x_229, x_222, x_226, x_4, x_225); -if (lean_obj_tag(x_230) == 0) -{ -lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; -x_231 = lean_ctor_get(x_230, 0); -lean_inc(x_231); -x_232 = lean_ctor_get(x_230, 1); -lean_inc(x_232); -if (lean_is_exclusive(x_230)) { - lean_ctor_release(x_230, 0); - lean_ctor_release(x_230, 1); - x_233 = x_230; -} else { - lean_dec_ref(x_230); - x_233 = lean_box(0); -} -if (lean_is_scalar(x_221)) { - x_234 = lean_alloc_ctor(1, 1, 0); -} else { - x_234 = x_221; -} -lean_ctor_set(x_234, 0, x_227); -lean_inc(x_231); -x_235 = l_Lean_mkApp(x_30, x_231); -x_236 = lean_expr_instantiate1(x_219, x_231); -lean_dec(x_219); -x_237 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_237, 0, x_231); -x_238 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_238, 0, x_180); -lean_ctor_set(x_238, 1, x_25); -lean_ctor_set(x_238, 2, x_234); -lean_ctor_set(x_238, 3, x_237); -lean_ctor_set(x_3, 1, x_179); -lean_ctor_set(x_3, 0, x_238); -if (lean_is_scalar(x_228)) { - x_239 = lean_alloc_ctor(0, 2, 0); -} else { - x_239 = x_228; -} -lean_ctor_set(x_239, 0, x_236); -lean_ctor_set(x_239, 1, x_3); -lean_ctor_set(x_24, 1, x_239); -lean_ctor_set(x_24, 0, x_235); -if (lean_is_scalar(x_233)) { - x_240 = lean_alloc_ctor(0, 2, 0); -} else { - x_240 = x_233; -} -lean_ctor_set(x_240, 0, x_24); -lean_ctor_set(x_240, 1, x_232); -x_10 = x_240; -goto block_18; -} -else -{ -lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; -lean_dec(x_228); -lean_dec(x_227); -lean_dec(x_221); -lean_dec(x_219); -lean_dec(x_180); -lean_free_object(x_24); -lean_dec(x_179); -lean_dec(x_30); -lean_dec(x_25); -lean_free_object(x_3); -x_241 = lean_ctor_get(x_230, 0); -lean_inc(x_241); -x_242 = lean_ctor_get(x_230, 1); -lean_inc(x_242); -if (lean_is_exclusive(x_230)) { - lean_ctor_release(x_230, 0); - lean_ctor_release(x_230, 1); - x_243 = x_230; -} else { - lean_dec_ref(x_230); - x_243 = lean_box(0); -} -if (lean_is_scalar(x_243)) { - x_244 = lean_alloc_ctor(1, 2, 0); -} else { - x_244 = x_243; -} -lean_ctor_set(x_244, 0, x_241); -lean_ctor_set(x_244, 1, x_242); -x_10 = x_244; -goto block_18; -} -} -else -{ -lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; -lean_dec(x_222); -lean_dec(x_221); -lean_dec(x_220); -lean_dec(x_219); -lean_dec(x_180); -lean_free_object(x_24); -lean_dec(x_179); -lean_dec(x_30); -lean_dec(x_25); -lean_free_object(x_3); -x_245 = lean_ctor_get(x_223, 0); -lean_inc(x_245); -x_246 = lean_ctor_get(x_223, 1); -lean_inc(x_246); -if (lean_is_exclusive(x_223)) { - lean_ctor_release(x_223, 0); - lean_ctor_release(x_223, 1); - x_247 = x_223; -} else { - lean_dec_ref(x_223); - x_247 = lean_box(0); -} -if (lean_is_scalar(x_247)) { - x_248 = lean_alloc_ctor(1, 2, 0); -} else { - x_248 = x_247; -} -lean_ctor_set(x_248, 0, x_245); -lean_ctor_set(x_248, 1, x_246); -x_10 = x_248; -goto block_18; -} -} -default: -{ -lean_object* x_249; lean_object* x_250; lean_object* x_251; uint8_t x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; -x_249 = lean_ctor_get(x_184, 1); -lean_inc(x_249); -x_250 = lean_ctor_get(x_184, 2); -lean_inc(x_250); -lean_dec(x_184); -x_251 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_251, 0, x_249); -x_252 = 0; -x_253 = lean_box(0); -lean_inc(x_4); -x_254 = l_Lean_Elab_Term_mkFreshExprMVar(x_180, x_251, x_252, x_253, x_4, x_185); -x_255 = lean_ctor_get(x_254, 0); -lean_inc(x_255); -x_256 = lean_ctor_get(x_254, 1); -lean_inc(x_256); -if (lean_is_exclusive(x_254)) { - lean_ctor_release(x_254, 0); - lean_ctor_release(x_254, 1); - x_257 = x_254; -} else { - lean_dec_ref(x_254); - x_257 = lean_box(0); -} -x_258 = l_Lean_Elab_Term_StructInst_markDefaultMissing(x_255); -lean_inc(x_258); -x_259 = l_Lean_mkApp(x_30, x_258); -x_260 = lean_expr_instantiate1(x_250, x_258); -lean_dec(x_250); -x_261 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_261, 0, x_258); -x_262 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_262, 0, x_180); -lean_ctor_set(x_262, 1, x_25); -lean_ctor_set(x_262, 2, x_181); -lean_ctor_set(x_262, 3, x_261); -lean_ctor_set(x_3, 1, x_179); -lean_ctor_set(x_3, 0, x_262); -lean_ctor_set(x_24, 1, x_3); -lean_ctor_set(x_24, 0, x_260); -lean_ctor_set(x_2, 0, x_259); -if (lean_is_scalar(x_257)) { - x_263 = lean_alloc_ctor(0, 2, 0); -} else { - x_263 = x_257; -} -lean_ctor_set(x_263, 0, x_2); -lean_ctor_set(x_263, 1, x_256); -x_10 = x_263; -goto block_18; -} -} -} -else -{ -lean_object* x_264; -lean_dec(x_181); -lean_free_object(x_24); -lean_dec(x_179); -lean_free_object(x_2); -lean_dec(x_30); -lean_dec(x_25); -lean_free_object(x_3); -x_264 = lean_box(0); -x_186 = x_264; -goto block_192; -} -block_192: -{ -lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; -lean_dec(x_186); -x_187 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_187, 0, x_184); -x_188 = l_Lean_indentExpr(x_187); -x_189 = l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___closed__3; -x_190 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_190, 0, x_189); -lean_ctor_set(x_190, 1, x_188); -lean_inc(x_4); -lean_inc(x_1); -x_191 = l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg(x_180, x_182, x_1, x_190, x_4, x_185); -lean_dec(x_180); -x_10 = x_191; -goto block_18; -} -} -else -{ -lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; -lean_dec(x_182); -lean_dec(x_181); -lean_dec(x_180); -lean_free_object(x_24); -lean_dec(x_179); -lean_free_object(x_2); -lean_dec(x_30); -lean_dec(x_25); -lean_free_object(x_3); -x_265 = lean_ctor_get(x_183, 0); -lean_inc(x_265); -x_266 = lean_ctor_get(x_183, 1); -lean_inc(x_266); -if (lean_is_exclusive(x_183)) { - lean_ctor_release(x_183, 0); - lean_ctor_release(x_183, 1); - x_267 = x_183; -} else { - lean_dec_ref(x_183); - x_267 = lean_box(0); -} -if (lean_is_scalar(x_267)) { - x_268 = lean_alloc_ctor(1, 2, 0); -} else { - x_268 = x_267; -} -lean_ctor_set(x_268, 0, x_265); -lean_ctor_set(x_268, 1, x_266); -x_10 = x_268; -goto block_18; -} -} -} -else -{ -lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; -x_269 = lean_ctor_get(x_24, 0); -x_270 = lean_ctor_get(x_24, 1); -lean_inc(x_270); -lean_inc(x_269); -lean_dec(x_24); -x_271 = lean_ctor_get(x_8, 0); -lean_inc(x_271); -x_272 = lean_ctor_get(x_8, 2); -lean_inc(x_272); -if (lean_is_exclusive(x_8)) { - lean_ctor_release(x_8, 0); - lean_ctor_release(x_8, 1); - lean_ctor_release(x_8, 2); - lean_ctor_release(x_8, 3); - x_273 = x_8; -} else { - lean_dec_ref(x_8); - x_273 = lean_box(0); -} -x_274 = lean_ctor_get(x_27, 1); -lean_inc(x_274); -lean_dec(x_27); -lean_inc(x_4); -x_275 = l_Lean_Elab_Term_whnfForall(x_271, x_269, x_4, x_5); -if (lean_obj_tag(x_275) == 0) -{ -lean_object* x_276; lean_object* x_277; lean_object* x_278; -x_276 = lean_ctor_get(x_275, 0); -lean_inc(x_276); -x_277 = lean_ctor_get(x_275, 1); -lean_inc(x_277); -lean_dec(x_275); -if (lean_obj_tag(x_276) == 7) -{ -lean_dec(x_274); -switch (lean_obj_tag(x_272)) { -case 0: -{ -lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; uint8_t x_289; lean_object* x_290; -x_285 = lean_ctor_get(x_276, 1); +x_285 = lean_ctor_get(x_223, 1); lean_inc(x_285); -x_286 = lean_ctor_get(x_276, 2); +x_286 = lean_ctor_get(x_223, 2); lean_inc(x_286); -lean_dec(x_276); -x_287 = lean_ctor_get(x_272, 0); +lean_dec(x_223); +x_287 = lean_ctor_get(x_220, 0); lean_inc(x_287); -x_288 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_288, 0, x_285); -x_289 = 1; +if (lean_is_exclusive(x_220)) { + lean_ctor_release(x_220, 0); + x_288 = x_220; +} else { + lean_dec_ref(x_220); + x_288 = lean_box(0); +} +x_289 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_289, 0, x_285); lean_inc(x_4); -lean_inc(x_287); -lean_inc(x_288); -x_290 = l_Lean_Elab_Term_elabTermAux___main(x_288, x_289, x_289, x_287, x_4, x_277); +lean_inc(x_289); +x_290 = l___private_Lean_Elab_StructInst_24__elabStruct___main(x_287, x_289, x_4, x_224); if (lean_obj_tag(x_290) == 0) { -lean_object* x_291; lean_object* x_292; lean_object* x_293; +lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; x_291 = lean_ctor_get(x_290, 0); lean_inc(x_291); x_292 = lean_ctor_get(x_290, 1); lean_inc(x_292); lean_dec(x_290); +x_293 = lean_ctor_get(x_291, 0); +lean_inc(x_293); +x_294 = lean_ctor_get(x_291, 1); +lean_inc(x_294); +if (lean_is_exclusive(x_291)) { + lean_ctor_release(x_291, 0); + lean_ctor_release(x_291, 1); + x_295 = x_291; +} else { + lean_dec_ref(x_291); + x_295 = lean_box(0); +} lean_inc(x_4); -x_293 = l_Lean_Elab_Term_ensureHasType(x_287, x_288, x_291, x_4, x_292); -if (lean_obj_tag(x_293) == 0) +x_296 = l_Lean_Elab_Term_ensureHasType(x_289, x_293, x_4, x_292); +if (lean_obj_tag(x_296) == 0) { -lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; -x_294 = lean_ctor_get(x_293, 0); -lean_inc(x_294); -x_295 = lean_ctor_get(x_293, 1); -lean_inc(x_295); -if (lean_is_exclusive(x_293)) { - lean_ctor_release(x_293, 0); - lean_ctor_release(x_293, 1); - x_296 = x_293; +lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; +x_297 = lean_ctor_get(x_296, 0); +lean_inc(x_297); +x_298 = lean_ctor_get(x_296, 1); +lean_inc(x_298); +if (lean_is_exclusive(x_296)) { + lean_ctor_release(x_296, 0); + lean_ctor_release(x_296, 1); + x_299 = x_296; } else { - lean_dec_ref(x_293); - x_296 = lean_box(0); + lean_dec_ref(x_296); + x_299 = lean_box(0); } -lean_inc(x_294); -x_297 = l_Lean_mkApp(x_30, x_294); -x_298 = lean_expr_instantiate1(x_286, x_294); +if (lean_is_scalar(x_288)) { + x_300 = lean_alloc_ctor(1, 1, 0); +} else { + x_300 = x_288; +} +lean_ctor_set(x_300, 0, x_294); +lean_inc(x_297); +x_301 = l_Lean_mkApp(x_30, x_297); +x_302 = lean_expr_instantiate1(x_286, x_297); lean_dec(x_286); -x_299 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_299, 0, x_294); -if (lean_is_scalar(x_273)) { - x_300 = lean_alloc_ctor(0, 4, 0); +x_303 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_303, 0, x_297); +x_304 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_304, 0, x_219); +lean_ctor_set(x_304, 1, x_25); +lean_ctor_set(x_304, 2, x_300); +lean_ctor_set(x_304, 3, x_303); +lean_ctor_set(x_3, 1, x_218); +lean_ctor_set(x_3, 0, x_304); +if (lean_is_scalar(x_295)) { + x_305 = lean_alloc_ctor(0, 2, 0); } else { - x_300 = x_273; + x_305 = x_295; } -lean_ctor_set(x_300, 0, x_271); -lean_ctor_set(x_300, 1, x_25); -lean_ctor_set(x_300, 2, x_272); -lean_ctor_set(x_300, 3, x_299); -lean_ctor_set(x_3, 1, x_270); -lean_ctor_set(x_3, 0, x_300); -x_301 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_301, 0, x_298); -lean_ctor_set(x_301, 1, x_3); -lean_ctor_set(x_2, 1, x_301); -lean_ctor_set(x_2, 0, x_297); -if (lean_is_scalar(x_296)) { - x_302 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_305, 0, x_302); +lean_ctor_set(x_305, 1, x_3); +lean_ctor_set(x_24, 1, x_305); +lean_ctor_set(x_24, 0, x_301); +if (lean_is_scalar(x_299)) { + x_306 = lean_alloc_ctor(0, 2, 0); } else { - x_302 = x_296; + x_306 = x_299; } -lean_ctor_set(x_302, 0, x_2); -lean_ctor_set(x_302, 1, x_295); -x_10 = x_302; -goto block_18; -} -else -{ -lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; -lean_dec(x_286); -lean_dec(x_273); -lean_dec(x_272); -lean_dec(x_271); -lean_dec(x_270); -lean_free_object(x_2); -lean_dec(x_30); -lean_dec(x_25); -lean_free_object(x_3); -x_303 = lean_ctor_get(x_293, 0); -lean_inc(x_303); -x_304 = lean_ctor_get(x_293, 1); -lean_inc(x_304); -if (lean_is_exclusive(x_293)) { - lean_ctor_release(x_293, 0); - lean_ctor_release(x_293, 1); - x_305 = x_293; -} else { - lean_dec_ref(x_293); - x_305 = lean_box(0); -} -if (lean_is_scalar(x_305)) { - x_306 = lean_alloc_ctor(1, 2, 0); -} else { - x_306 = x_305; -} -lean_ctor_set(x_306, 0, x_303); -lean_ctor_set(x_306, 1, x_304); +lean_ctor_set(x_306, 0, x_24); +lean_ctor_set(x_306, 1, x_298); x_10 = x_306; goto block_18; } -} else { lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; +lean_dec(x_295); +lean_dec(x_294); lean_dec(x_288); -lean_dec(x_287); lean_dec(x_286); -lean_dec(x_273); -lean_dec(x_272); -lean_dec(x_271); -lean_dec(x_270); -lean_free_object(x_2); +lean_dec(x_219); +lean_free_object(x_24); +lean_dec(x_218); lean_dec(x_30); lean_dec(x_25); lean_free_object(x_3); -x_307 = lean_ctor_get(x_290, 0); +x_307 = lean_ctor_get(x_296, 0); lean_inc(x_307); -x_308 = lean_ctor_get(x_290, 1); +x_308 = lean_ctor_get(x_296, 1); lean_inc(x_308); -if (lean_is_exclusive(x_290)) { - lean_ctor_release(x_290, 0); - lean_ctor_release(x_290, 1); - x_309 = x_290; +if (lean_is_exclusive(x_296)) { + lean_ctor_release(x_296, 0); + lean_ctor_release(x_296, 1); + x_309 = x_296; } else { - lean_dec_ref(x_290); + lean_dec_ref(x_296); x_309 = lean_box(0); } if (lean_is_scalar(x_309)) { @@ -18088,856 +18333,1488 @@ x_10 = x_310; goto block_18; } } -case 1: +else { -lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; -lean_free_object(x_2); -x_311 = lean_ctor_get(x_276, 1); +lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; +lean_dec(x_289); +lean_dec(x_288); +lean_dec(x_286); +lean_dec(x_219); +lean_free_object(x_24); +lean_dec(x_218); +lean_dec(x_30); +lean_dec(x_25); +lean_free_object(x_3); +x_311 = lean_ctor_get(x_290, 0); lean_inc(x_311); -x_312 = lean_ctor_get(x_276, 2); +x_312 = lean_ctor_get(x_290, 1); lean_inc(x_312); -lean_dec(x_276); -x_313 = lean_ctor_get(x_272, 0); -lean_inc(x_313); -if (lean_is_exclusive(x_272)) { - lean_ctor_release(x_272, 0); - x_314 = x_272; +if (lean_is_exclusive(x_290)) { + lean_ctor_release(x_290, 0); + lean_ctor_release(x_290, 1); + x_313 = x_290; } else { - lean_dec_ref(x_272); - x_314 = lean_box(0); + lean_dec_ref(x_290); + x_313 = lean_box(0); } -x_315 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_315, 0, x_311); -lean_inc(x_4); -lean_inc(x_315); -lean_inc(x_313); -x_316 = l___private_Lean_Elab_StructInst_24__elabStruct___main(x_313, x_315, x_4, x_277); -if (lean_obj_tag(x_316) == 0) -{ -lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; -x_317 = lean_ctor_get(x_316, 0); -lean_inc(x_317); -x_318 = lean_ctor_get(x_316, 1); -lean_inc(x_318); -lean_dec(x_316); -x_319 = lean_ctor_get(x_317, 0); -lean_inc(x_319); -x_320 = lean_ctor_get(x_317, 1); -lean_inc(x_320); -if (lean_is_exclusive(x_317)) { - lean_ctor_release(x_317, 0); - lean_ctor_release(x_317, 1); - x_321 = x_317; +if (lean_is_scalar(x_313)) { + x_314 = lean_alloc_ctor(1, 2, 0); } else { - lean_dec_ref(x_317); - x_321 = lean_box(0); + x_314 = x_313; } -x_322 = l_Lean_Elab_Term_StructInst_Struct_ref(x_313); -lean_dec(x_313); -lean_inc(x_4); -x_323 = l_Lean_Elab_Term_ensureHasType(x_322, x_315, x_319, x_4, x_318); -if (lean_obj_tag(x_323) == 0) -{ -lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; -x_324 = lean_ctor_get(x_323, 0); -lean_inc(x_324); -x_325 = lean_ctor_get(x_323, 1); -lean_inc(x_325); -if (lean_is_exclusive(x_323)) { - lean_ctor_release(x_323, 0); - lean_ctor_release(x_323, 1); - x_326 = x_323; -} else { - lean_dec_ref(x_323); - x_326 = lean_box(0); -} -if (lean_is_scalar(x_314)) { - x_327 = lean_alloc_ctor(1, 1, 0); -} else { - x_327 = x_314; -} -lean_ctor_set(x_327, 0, x_320); -lean_inc(x_324); -x_328 = l_Lean_mkApp(x_30, x_324); -x_329 = lean_expr_instantiate1(x_312, x_324); -lean_dec(x_312); -x_330 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_330, 0, x_324); -if (lean_is_scalar(x_273)) { - x_331 = lean_alloc_ctor(0, 4, 0); -} else { - x_331 = x_273; -} -lean_ctor_set(x_331, 0, x_271); -lean_ctor_set(x_331, 1, x_25); -lean_ctor_set(x_331, 2, x_327); -lean_ctor_set(x_331, 3, x_330); -lean_ctor_set(x_3, 1, x_270); -lean_ctor_set(x_3, 0, x_331); -if (lean_is_scalar(x_321)) { - x_332 = lean_alloc_ctor(0, 2, 0); -} else { - x_332 = x_321; -} -lean_ctor_set(x_332, 0, x_329); -lean_ctor_set(x_332, 1, x_3); -x_333 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_333, 0, x_328); -lean_ctor_set(x_333, 1, x_332); -if (lean_is_scalar(x_326)) { - x_334 = lean_alloc_ctor(0, 2, 0); -} else { - x_334 = x_326; -} -lean_ctor_set(x_334, 0, x_333); -lean_ctor_set(x_334, 1, x_325); -x_10 = x_334; -goto block_18; -} -else -{ -lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; -lean_dec(x_321); -lean_dec(x_320); -lean_dec(x_314); -lean_dec(x_312); -lean_dec(x_273); -lean_dec(x_271); -lean_dec(x_270); -lean_dec(x_30); -lean_dec(x_25); -lean_free_object(x_3); -x_335 = lean_ctor_get(x_323, 0); -lean_inc(x_335); -x_336 = lean_ctor_get(x_323, 1); -lean_inc(x_336); -if (lean_is_exclusive(x_323)) { - lean_ctor_release(x_323, 0); - lean_ctor_release(x_323, 1); - x_337 = x_323; -} else { - lean_dec_ref(x_323); - x_337 = lean_box(0); -} -if (lean_is_scalar(x_337)) { - x_338 = lean_alloc_ctor(1, 2, 0); -} else { - x_338 = x_337; -} -lean_ctor_set(x_338, 0, x_335); -lean_ctor_set(x_338, 1, x_336); -x_10 = x_338; -goto block_18; -} -} -else -{ -lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; -lean_dec(x_315); -lean_dec(x_314); -lean_dec(x_313); -lean_dec(x_312); -lean_dec(x_273); -lean_dec(x_271); -lean_dec(x_270); -lean_dec(x_30); -lean_dec(x_25); -lean_free_object(x_3); -x_339 = lean_ctor_get(x_316, 0); -lean_inc(x_339); -x_340 = lean_ctor_get(x_316, 1); -lean_inc(x_340); -if (lean_is_exclusive(x_316)) { - lean_ctor_release(x_316, 0); - lean_ctor_release(x_316, 1); - x_341 = x_316; -} else { - lean_dec_ref(x_316); - x_341 = lean_box(0); -} -if (lean_is_scalar(x_341)) { - x_342 = lean_alloc_ctor(1, 2, 0); -} else { - x_342 = x_341; -} -lean_ctor_set(x_342, 0, x_339); -lean_ctor_set(x_342, 1, x_340); -x_10 = x_342; +lean_ctor_set(x_314, 0, x_311); +lean_ctor_set(x_314, 1, x_312); +x_10 = x_314; goto block_18; } } default: { -lean_object* x_343; lean_object* x_344; lean_object* x_345; uint8_t x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; -x_343 = lean_ctor_get(x_276, 1); -lean_inc(x_343); -x_344 = lean_ctor_get(x_276, 2); -lean_inc(x_344); -lean_dec(x_276); -x_345 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_345, 0, x_343); -x_346 = 0; -x_347 = lean_box(0); -lean_inc(x_4); -x_348 = l_Lean_Elab_Term_mkFreshExprMVar(x_271, x_345, x_346, x_347, x_4, x_277); -x_349 = lean_ctor_get(x_348, 0); -lean_inc(x_349); -x_350 = lean_ctor_get(x_348, 1); -lean_inc(x_350); -if (lean_is_exclusive(x_348)) { - lean_ctor_release(x_348, 0); - lean_ctor_release(x_348, 1); - x_351 = x_348; +lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; uint8_t x_328; uint8_t x_329; uint8_t x_330; lean_object* x_331; uint8_t x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; +x_315 = lean_ctor_get(x_223, 1); +lean_inc(x_315); +x_316 = lean_ctor_get(x_223, 2); +lean_inc(x_316); +lean_dec(x_223); +x_317 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_317, 0, x_315); +x_318 = lean_ctor_get(x_4, 0); +lean_inc(x_318); +x_319 = lean_ctor_get(x_4, 1); +lean_inc(x_319); +x_320 = lean_ctor_get(x_4, 2); +lean_inc(x_320); +x_321 = lean_ctor_get(x_4, 3); +lean_inc(x_321); +x_322 = lean_ctor_get(x_4, 4); +lean_inc(x_322); +x_323 = lean_ctor_get(x_4, 5); +lean_inc(x_323); +x_324 = lean_ctor_get(x_4, 6); +lean_inc(x_324); +x_325 = lean_ctor_get(x_4, 7); +lean_inc(x_325); +x_326 = lean_ctor_get(x_4, 8); +lean_inc(x_326); +x_327 = lean_ctor_get(x_4, 9); +lean_inc(x_327); +x_328 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_329 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_330 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +lean_inc(x_219); +x_331 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_331, 0, x_318); +lean_ctor_set(x_331, 1, x_319); +lean_ctor_set(x_331, 2, x_320); +lean_ctor_set(x_331, 3, x_321); +lean_ctor_set(x_331, 4, x_322); +lean_ctor_set(x_331, 5, x_323); +lean_ctor_set(x_331, 6, x_324); +lean_ctor_set(x_331, 7, x_325); +lean_ctor_set(x_331, 8, x_326); +lean_ctor_set(x_331, 9, x_327); +lean_ctor_set(x_331, 10, x_219); +lean_ctor_set_uint8(x_331, sizeof(void*)*11, x_328); +lean_ctor_set_uint8(x_331, sizeof(void*)*11 + 1, x_329); +lean_ctor_set_uint8(x_331, sizeof(void*)*11 + 2, x_330); +x_332 = 0; +x_333 = lean_box(0); +x_334 = l_Lean_Elab_Term_mkFreshExprMVar(x_317, x_332, x_333, x_331, x_224); +x_335 = lean_ctor_get(x_334, 0); +lean_inc(x_335); +x_336 = lean_ctor_get(x_334, 1); +lean_inc(x_336); +if (lean_is_exclusive(x_334)) { + lean_ctor_release(x_334, 0); + lean_ctor_release(x_334, 1); + x_337 = x_334; } else { - lean_dec_ref(x_348); - x_351 = lean_box(0); + lean_dec_ref(x_334); + x_337 = lean_box(0); } -x_352 = l_Lean_Elab_Term_StructInst_markDefaultMissing(x_349); -lean_inc(x_352); -x_353 = l_Lean_mkApp(x_30, x_352); -x_354 = lean_expr_instantiate1(x_344, x_352); -lean_dec(x_344); -x_355 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_355, 0, x_352); -if (lean_is_scalar(x_273)) { - x_356 = lean_alloc_ctor(0, 4, 0); +x_338 = l_Lean_Elab_Term_StructInst_markDefaultMissing(x_335); +lean_inc(x_338); +x_339 = l_Lean_mkApp(x_30, x_338); +x_340 = lean_expr_instantiate1(x_316, x_338); +lean_dec(x_316); +x_341 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_341, 0, x_338); +x_342 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_342, 0, x_219); +lean_ctor_set(x_342, 1, x_25); +lean_ctor_set(x_342, 2, x_220); +lean_ctor_set(x_342, 3, x_341); +lean_ctor_set(x_3, 1, x_218); +lean_ctor_set(x_3, 0, x_342); +lean_ctor_set(x_24, 1, x_3); +lean_ctor_set(x_24, 0, x_340); +lean_ctor_set(x_2, 0, x_339); +if (lean_is_scalar(x_337)) { + x_343 = lean_alloc_ctor(0, 2, 0); } else { - x_356 = x_273; + x_343 = x_337; } -lean_ctor_set(x_356, 0, x_271); -lean_ctor_set(x_356, 1, x_25); -lean_ctor_set(x_356, 2, x_272); -lean_ctor_set(x_356, 3, x_355); -lean_ctor_set(x_3, 1, x_270); -lean_ctor_set(x_3, 0, x_356); -x_357 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_357, 0, x_354); -lean_ctor_set(x_357, 1, x_3); -lean_ctor_set(x_2, 1, x_357); -lean_ctor_set(x_2, 0, x_353); -if (lean_is_scalar(x_351)) { - x_358 = lean_alloc_ctor(0, 2, 0); -} else { - x_358 = x_351; -} -lean_ctor_set(x_358, 0, x_2); -lean_ctor_set(x_358, 1, x_350); -x_10 = x_358; +lean_ctor_set(x_343, 0, x_2); +lean_ctor_set(x_343, 1, x_336); +x_10 = x_343; goto block_18; } } } else { -lean_object* x_359; -lean_dec(x_273); -lean_dec(x_272); -lean_dec(x_270); +lean_object* x_344; +lean_dec(x_220); +lean_free_object(x_24); +lean_dec(x_218); lean_free_object(x_2); lean_dec(x_30); lean_dec(x_25); lean_free_object(x_3); -x_359 = lean_box(0); -x_278 = x_359; -goto block_284; +x_344 = lean_box(0); +x_225 = x_344; +goto block_245; } -block_284: +block_245: { -lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; -lean_dec(x_278); -x_279 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_279, 0, x_276); -x_280 = l_Lean_indentExpr(x_279); -x_281 = l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___closed__3; -x_282 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_282, 0, x_281); -lean_ctor_set(x_282, 1, x_280); -lean_inc(x_4); +lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; uint8_t x_240; uint8_t x_241; uint8_t x_242; lean_object* x_243; lean_object* x_244; +lean_dec(x_225); +x_226 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_226, 0, x_223); +x_227 = l_Lean_indentExpr(x_226); +x_228 = l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___closed__3; +x_229 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_229, 0, x_228); +lean_ctor_set(x_229, 1, x_227); +x_230 = lean_ctor_get(x_4, 0); +lean_inc(x_230); +x_231 = lean_ctor_get(x_4, 1); +lean_inc(x_231); +x_232 = lean_ctor_get(x_4, 2); +lean_inc(x_232); +x_233 = lean_ctor_get(x_4, 3); +lean_inc(x_233); +x_234 = lean_ctor_get(x_4, 4); +lean_inc(x_234); +x_235 = lean_ctor_get(x_4, 5); +lean_inc(x_235); +x_236 = lean_ctor_get(x_4, 6); +lean_inc(x_236); +x_237 = lean_ctor_get(x_4, 7); +lean_inc(x_237); +x_238 = lean_ctor_get(x_4, 8); +lean_inc(x_238); +x_239 = lean_ctor_get(x_4, 9); +lean_inc(x_239); +x_240 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_241 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_242 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +x_243 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_243, 0, x_230); +lean_ctor_set(x_243, 1, x_231); +lean_ctor_set(x_243, 2, x_232); +lean_ctor_set(x_243, 3, x_233); +lean_ctor_set(x_243, 4, x_234); +lean_ctor_set(x_243, 5, x_235); +lean_ctor_set(x_243, 6, x_236); +lean_ctor_set(x_243, 7, x_237); +lean_ctor_set(x_243, 8, x_238); +lean_ctor_set(x_243, 9, x_239); +lean_ctor_set(x_243, 10, x_219); +lean_ctor_set_uint8(x_243, sizeof(void*)*11, x_240); +lean_ctor_set_uint8(x_243, sizeof(void*)*11 + 1, x_241); +lean_ctor_set_uint8(x_243, sizeof(void*)*11 + 2, x_242); lean_inc(x_1); -x_283 = l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg(x_271, x_274, x_1, x_282, x_4, x_277); -lean_dec(x_271); -x_10 = x_283; +x_244 = l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg(x_221, x_1, x_229, x_243, x_224); +x_10 = x_244; goto block_18; } } else { -lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; -lean_dec(x_274); -lean_dec(x_273); -lean_dec(x_272); -lean_dec(x_271); -lean_dec(x_270); +lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; +lean_dec(x_221); +lean_dec(x_220); +lean_dec(x_219); +lean_free_object(x_24); +lean_dec(x_218); lean_free_object(x_2); lean_dec(x_30); lean_dec(x_25); lean_free_object(x_3); -x_360 = lean_ctor_get(x_275, 0); -lean_inc(x_360); -x_361 = lean_ctor_get(x_275, 1); -lean_inc(x_361); -if (lean_is_exclusive(x_275)) { - lean_ctor_release(x_275, 0); - lean_ctor_release(x_275, 1); - x_362 = x_275; +x_345 = lean_ctor_get(x_222, 0); +lean_inc(x_345); +x_346 = lean_ctor_get(x_222, 1); +lean_inc(x_346); +if (lean_is_exclusive(x_222)) { + lean_ctor_release(x_222, 0); + lean_ctor_release(x_222, 1); + x_347 = x_222; } else { - lean_dec_ref(x_275); - x_362 = lean_box(0); + lean_dec_ref(x_222); + x_347 = lean_box(0); } -if (lean_is_scalar(x_362)) { - x_363 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_347)) { + x_348 = lean_alloc_ctor(1, 2, 0); } else { - x_363 = x_362; + x_348 = x_347; } -lean_ctor_set(x_363, 0, x_360); -lean_ctor_set(x_363, 1, x_361); -x_10 = x_363; +lean_ctor_set(x_348, 0, x_345); +lean_ctor_set(x_348, 1, x_346); +x_10 = x_348; goto block_18; } } } else { -lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; -x_364 = lean_ctor_get(x_2, 0); -lean_inc(x_364); -lean_dec(x_2); -x_365 = lean_ctor_get(x_24, 0); -lean_inc(x_365); -x_366 = lean_ctor_get(x_24, 1); -lean_inc(x_366); -if (lean_is_exclusive(x_24)) { - lean_ctor_release(x_24, 0); - lean_ctor_release(x_24, 1); - x_367 = x_24; -} else { - lean_dec_ref(x_24); - x_367 = lean_box(0); -} -x_368 = lean_ctor_get(x_8, 0); -lean_inc(x_368); -x_369 = lean_ctor_get(x_8, 2); -lean_inc(x_369); +lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; +x_349 = lean_ctor_get(x_24, 0); +x_350 = lean_ctor_get(x_24, 1); +lean_inc(x_350); +lean_inc(x_349); +lean_dec(x_24); +x_351 = lean_ctor_get(x_8, 0); +lean_inc(x_351); +x_352 = lean_ctor_get(x_8, 2); +lean_inc(x_352); if (lean_is_exclusive(x_8)) { lean_ctor_release(x_8, 0); lean_ctor_release(x_8, 1); lean_ctor_release(x_8, 2); lean_ctor_release(x_8, 3); - x_370 = x_8; + x_353 = x_8; } else { lean_dec_ref(x_8); - x_370 = lean_box(0); + x_353 = lean_box(0); } -x_371 = lean_ctor_get(x_27, 1); -lean_inc(x_371); +x_354 = lean_ctor_get(x_27, 1); +lean_inc(x_354); lean_dec(x_27); lean_inc(x_4); -x_372 = l_Lean_Elab_Term_whnfForall(x_368, x_365, x_4, x_5); -if (lean_obj_tag(x_372) == 0) +x_355 = l_Lean_Elab_Term_whnfForall(x_349, x_4, x_5); +if (lean_obj_tag(x_355) == 0) { -lean_object* x_373; lean_object* x_374; lean_object* x_375; -x_373 = lean_ctor_get(x_372, 0); -lean_inc(x_373); -x_374 = lean_ctor_get(x_372, 1); -lean_inc(x_374); -lean_dec(x_372); -if (lean_obj_tag(x_373) == 7) +lean_object* x_356; lean_object* x_357; lean_object* x_358; +x_356 = lean_ctor_get(x_355, 0); +lean_inc(x_356); +x_357 = lean_ctor_get(x_355, 1); +lean_inc(x_357); +lean_dec(x_355); +if (lean_obj_tag(x_356) == 7) { -lean_dec(x_371); -switch (lean_obj_tag(x_369)) { +lean_dec(x_354); +switch (lean_obj_tag(x_352)) { case 0: { -lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; uint8_t x_386; lean_object* x_387; -x_382 = lean_ctor_get(x_373, 1); +lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; uint8_t x_383; lean_object* x_384; +x_379 = lean_ctor_get(x_356, 1); +lean_inc(x_379); +x_380 = lean_ctor_get(x_356, 2); +lean_inc(x_380); +lean_dec(x_356); +x_381 = lean_ctor_get(x_352, 0); +lean_inc(x_381); +x_382 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_382, 0, x_379); +x_383 = 1; +lean_inc(x_4); lean_inc(x_382); -x_383 = lean_ctor_get(x_373, 2); -lean_inc(x_383); -lean_dec(x_373); -x_384 = lean_ctor_get(x_369, 0); -lean_inc(x_384); -x_385 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_385, 0, x_382); -x_386 = 1; -lean_inc(x_4); -lean_inc(x_384); +lean_inc(x_381); +x_384 = l_Lean_Elab_Term_elabTerm(x_381, x_382, x_383, x_4, x_357); +if (lean_obj_tag(x_384) == 0) +{ +lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; uint8_t x_397; uint8_t x_398; uint8_t x_399; lean_object* x_400; lean_object* x_401; +x_385 = lean_ctor_get(x_384, 0); lean_inc(x_385); -x_387 = l_Lean_Elab_Term_elabTermAux___main(x_385, x_386, x_386, x_384, x_4, x_374); -if (lean_obj_tag(x_387) == 0) -{ -lean_object* x_388; lean_object* x_389; lean_object* x_390; -x_388 = lean_ctor_get(x_387, 0); -lean_inc(x_388); -x_389 = lean_ctor_get(x_387, 1); -lean_inc(x_389); -lean_dec(x_387); -lean_inc(x_4); -x_390 = l_Lean_Elab_Term_ensureHasType(x_384, x_385, x_388, x_4, x_389); -if (lean_obj_tag(x_390) == 0) -{ -lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; -x_391 = lean_ctor_get(x_390, 0); -lean_inc(x_391); -x_392 = lean_ctor_get(x_390, 1); -lean_inc(x_392); -if (lean_is_exclusive(x_390)) { - lean_ctor_release(x_390, 0); - lean_ctor_release(x_390, 1); - x_393 = x_390; -} else { - lean_dec_ref(x_390); - x_393 = lean_box(0); -} -lean_inc(x_391); -x_394 = l_Lean_mkApp(x_364, x_391); -x_395 = lean_expr_instantiate1(x_383, x_391); -lean_dec(x_383); -x_396 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_396, 0, x_391); -if (lean_is_scalar(x_370)) { - x_397 = lean_alloc_ctor(0, 4, 0); -} else { - x_397 = x_370; -} -lean_ctor_set(x_397, 0, x_368); -lean_ctor_set(x_397, 1, x_25); -lean_ctor_set(x_397, 2, x_369); -lean_ctor_set(x_397, 3, x_396); -lean_ctor_set(x_3, 1, x_366); -lean_ctor_set(x_3, 0, x_397); -if (lean_is_scalar(x_367)) { - x_398 = lean_alloc_ctor(0, 2, 0); -} else { - x_398 = x_367; -} -lean_ctor_set(x_398, 0, x_395); -lean_ctor_set(x_398, 1, x_3); -x_399 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_399, 0, x_394); -lean_ctor_set(x_399, 1, x_398); -if (lean_is_scalar(x_393)) { - x_400 = lean_alloc_ctor(0, 2, 0); -} else { - x_400 = x_393; -} -lean_ctor_set(x_400, 0, x_399); -lean_ctor_set(x_400, 1, x_392); -x_10 = x_400; -goto block_18; -} -else -{ -lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; -lean_dec(x_383); -lean_dec(x_370); -lean_dec(x_369); -lean_dec(x_368); -lean_dec(x_367); -lean_dec(x_366); -lean_dec(x_364); -lean_dec(x_25); -lean_free_object(x_3); -x_401 = lean_ctor_get(x_390, 0); -lean_inc(x_401); -x_402 = lean_ctor_get(x_390, 1); -lean_inc(x_402); -if (lean_is_exclusive(x_390)) { - lean_ctor_release(x_390, 0); - lean_ctor_release(x_390, 1); - x_403 = x_390; -} else { - lean_dec_ref(x_390); - x_403 = lean_box(0); -} -if (lean_is_scalar(x_403)) { - x_404 = lean_alloc_ctor(1, 2, 0); -} else { - x_404 = x_403; -} -lean_ctor_set(x_404, 0, x_401); -lean_ctor_set(x_404, 1, x_402); -x_10 = x_404; -goto block_18; -} -} -else -{ -lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; -lean_dec(x_385); +x_386 = lean_ctor_get(x_384, 1); +lean_inc(x_386); lean_dec(x_384); -lean_dec(x_383); -lean_dec(x_370); -lean_dec(x_369); -lean_dec(x_368); -lean_dec(x_367); -lean_dec(x_366); -lean_dec(x_364); +x_387 = lean_ctor_get(x_4, 0); +lean_inc(x_387); +x_388 = lean_ctor_get(x_4, 1); +lean_inc(x_388); +x_389 = lean_ctor_get(x_4, 2); +lean_inc(x_389); +x_390 = lean_ctor_get(x_4, 3); +lean_inc(x_390); +x_391 = lean_ctor_get(x_4, 4); +lean_inc(x_391); +x_392 = lean_ctor_get(x_4, 5); +lean_inc(x_392); +x_393 = lean_ctor_get(x_4, 6); +lean_inc(x_393); +x_394 = lean_ctor_get(x_4, 7); +lean_inc(x_394); +x_395 = lean_ctor_get(x_4, 8); +lean_inc(x_395); +x_396 = lean_ctor_get(x_4, 9); +lean_inc(x_396); +x_397 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_398 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_399 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +x_400 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_400, 0, x_387); +lean_ctor_set(x_400, 1, x_388); +lean_ctor_set(x_400, 2, x_389); +lean_ctor_set(x_400, 3, x_390); +lean_ctor_set(x_400, 4, x_391); +lean_ctor_set(x_400, 5, x_392); +lean_ctor_set(x_400, 6, x_393); +lean_ctor_set(x_400, 7, x_394); +lean_ctor_set(x_400, 8, x_395); +lean_ctor_set(x_400, 9, x_396); +lean_ctor_set(x_400, 10, x_381); +lean_ctor_set_uint8(x_400, sizeof(void*)*11, x_397); +lean_ctor_set_uint8(x_400, sizeof(void*)*11 + 1, x_398); +lean_ctor_set_uint8(x_400, sizeof(void*)*11 + 2, x_399); +x_401 = l_Lean_Elab_Term_ensureHasType(x_382, x_385, x_400, x_386); +if (lean_obj_tag(x_401) == 0) +{ +lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; +x_402 = lean_ctor_get(x_401, 0); +lean_inc(x_402); +x_403 = lean_ctor_get(x_401, 1); +lean_inc(x_403); +if (lean_is_exclusive(x_401)) { + lean_ctor_release(x_401, 0); + lean_ctor_release(x_401, 1); + x_404 = x_401; +} else { + lean_dec_ref(x_401); + x_404 = lean_box(0); +} +lean_inc(x_402); +x_405 = l_Lean_mkApp(x_30, x_402); +x_406 = lean_expr_instantiate1(x_380, x_402); +lean_dec(x_380); +x_407 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_407, 0, x_402); +if (lean_is_scalar(x_353)) { + x_408 = lean_alloc_ctor(0, 4, 0); +} else { + x_408 = x_353; +} +lean_ctor_set(x_408, 0, x_351); +lean_ctor_set(x_408, 1, x_25); +lean_ctor_set(x_408, 2, x_352); +lean_ctor_set(x_408, 3, x_407); +lean_ctor_set(x_3, 1, x_350); +lean_ctor_set(x_3, 0, x_408); +x_409 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_409, 0, x_406); +lean_ctor_set(x_409, 1, x_3); +lean_ctor_set(x_2, 1, x_409); +lean_ctor_set(x_2, 0, x_405); +if (lean_is_scalar(x_404)) { + x_410 = lean_alloc_ctor(0, 2, 0); +} else { + x_410 = x_404; +} +lean_ctor_set(x_410, 0, x_2); +lean_ctor_set(x_410, 1, x_403); +x_10 = x_410; +goto block_18; +} +else +{ +lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; +lean_dec(x_380); +lean_dec(x_353); +lean_dec(x_352); +lean_dec(x_351); +lean_dec(x_350); +lean_free_object(x_2); +lean_dec(x_30); lean_dec(x_25); lean_free_object(x_3); -x_405 = lean_ctor_get(x_387, 0); -lean_inc(x_405); -x_406 = lean_ctor_get(x_387, 1); -lean_inc(x_406); -if (lean_is_exclusive(x_387)) { - lean_ctor_release(x_387, 0); - lean_ctor_release(x_387, 1); - x_407 = x_387; +x_411 = lean_ctor_get(x_401, 0); +lean_inc(x_411); +x_412 = lean_ctor_get(x_401, 1); +lean_inc(x_412); +if (lean_is_exclusive(x_401)) { + lean_ctor_release(x_401, 0); + lean_ctor_release(x_401, 1); + x_413 = x_401; } else { - lean_dec_ref(x_387); - x_407 = lean_box(0); + lean_dec_ref(x_401); + x_413 = lean_box(0); } -if (lean_is_scalar(x_407)) { - x_408 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_413)) { + x_414 = lean_alloc_ctor(1, 2, 0); } else { - x_408 = x_407; + x_414 = x_413; } -lean_ctor_set(x_408, 0, x_405); -lean_ctor_set(x_408, 1, x_406); -x_10 = x_408; +lean_ctor_set(x_414, 0, x_411); +lean_ctor_set(x_414, 1, x_412); +x_10 = x_414; +goto block_18; +} +} +else +{ +lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; +lean_dec(x_382); +lean_dec(x_381); +lean_dec(x_380); +lean_dec(x_353); +lean_dec(x_352); +lean_dec(x_351); +lean_dec(x_350); +lean_free_object(x_2); +lean_dec(x_30); +lean_dec(x_25); +lean_free_object(x_3); +x_415 = lean_ctor_get(x_384, 0); +lean_inc(x_415); +x_416 = lean_ctor_get(x_384, 1); +lean_inc(x_416); +if (lean_is_exclusive(x_384)) { + lean_ctor_release(x_384, 0); + lean_ctor_release(x_384, 1); + x_417 = x_384; +} else { + lean_dec_ref(x_384); + x_417 = lean_box(0); +} +if (lean_is_scalar(x_417)) { + x_418 = lean_alloc_ctor(1, 2, 0); +} else { + x_418 = x_417; +} +lean_ctor_set(x_418, 0, x_415); +lean_ctor_set(x_418, 1, x_416); +x_10 = x_418; goto block_18; } } case 1: { -lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; -x_409 = lean_ctor_get(x_373, 1); -lean_inc(x_409); -x_410 = lean_ctor_get(x_373, 2); -lean_inc(x_410); -lean_dec(x_373); -x_411 = lean_ctor_get(x_369, 0); -lean_inc(x_411); -if (lean_is_exclusive(x_369)) { - lean_ctor_release(x_369, 0); - x_412 = x_369; +lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; +lean_free_object(x_2); +x_419 = lean_ctor_get(x_356, 1); +lean_inc(x_419); +x_420 = lean_ctor_get(x_356, 2); +lean_inc(x_420); +lean_dec(x_356); +x_421 = lean_ctor_get(x_352, 0); +lean_inc(x_421); +if (lean_is_exclusive(x_352)) { + lean_ctor_release(x_352, 0); + x_422 = x_352; } else { - lean_dec_ref(x_369); - x_412 = lean_box(0); + lean_dec_ref(x_352); + x_422 = lean_box(0); } -x_413 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_413, 0, x_409); +x_423 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_423, 0, x_419); lean_inc(x_4); -lean_inc(x_413); -lean_inc(x_411); -x_414 = l___private_Lean_Elab_StructInst_24__elabStruct___main(x_411, x_413, x_4, x_374); -if (lean_obj_tag(x_414) == 0) -{ -lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; -x_415 = lean_ctor_get(x_414, 0); -lean_inc(x_415); -x_416 = lean_ctor_get(x_414, 1); -lean_inc(x_416); -lean_dec(x_414); -x_417 = lean_ctor_get(x_415, 0); -lean_inc(x_417); -x_418 = lean_ctor_get(x_415, 1); -lean_inc(x_418); -if (lean_is_exclusive(x_415)) { - lean_ctor_release(x_415, 0); - lean_ctor_release(x_415, 1); - x_419 = x_415; -} else { - lean_dec_ref(x_415); - x_419 = lean_box(0); -} -x_420 = l_Lean_Elab_Term_StructInst_Struct_ref(x_411); -lean_dec(x_411); -lean_inc(x_4); -x_421 = l_Lean_Elab_Term_ensureHasType(x_420, x_413, x_417, x_4, x_416); -if (lean_obj_tag(x_421) == 0) -{ -lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; -x_422 = lean_ctor_get(x_421, 0); -lean_inc(x_422); -x_423 = lean_ctor_get(x_421, 1); lean_inc(x_423); -if (lean_is_exclusive(x_421)) { - lean_ctor_release(x_421, 0); - lean_ctor_release(x_421, 1); - x_424 = x_421; +x_424 = l___private_Lean_Elab_StructInst_24__elabStruct___main(x_421, x_423, x_4, x_357); +if (lean_obj_tag(x_424) == 0) +{ +lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; +x_425 = lean_ctor_get(x_424, 0); +lean_inc(x_425); +x_426 = lean_ctor_get(x_424, 1); +lean_inc(x_426); +lean_dec(x_424); +x_427 = lean_ctor_get(x_425, 0); +lean_inc(x_427); +x_428 = lean_ctor_get(x_425, 1); +lean_inc(x_428); +if (lean_is_exclusive(x_425)) { + lean_ctor_release(x_425, 0); + lean_ctor_release(x_425, 1); + x_429 = x_425; } else { - lean_dec_ref(x_421); - x_424 = lean_box(0); + lean_dec_ref(x_425); + x_429 = lean_box(0); } -if (lean_is_scalar(x_412)) { - x_425 = lean_alloc_ctor(1, 1, 0); +lean_inc(x_4); +x_430 = l_Lean_Elab_Term_ensureHasType(x_423, x_427, x_4, x_426); +if (lean_obj_tag(x_430) == 0) +{ +lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; +x_431 = lean_ctor_get(x_430, 0); +lean_inc(x_431); +x_432 = lean_ctor_get(x_430, 1); +lean_inc(x_432); +if (lean_is_exclusive(x_430)) { + lean_ctor_release(x_430, 0); + lean_ctor_release(x_430, 1); + x_433 = x_430; } else { - x_425 = x_412; + lean_dec_ref(x_430); + x_433 = lean_box(0); } -lean_ctor_set(x_425, 0, x_418); -lean_inc(x_422); -x_426 = l_Lean_mkApp(x_364, x_422); -x_427 = lean_expr_instantiate1(x_410, x_422); -lean_dec(x_410); -x_428 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_428, 0, x_422); -if (lean_is_scalar(x_370)) { - x_429 = lean_alloc_ctor(0, 4, 0); +if (lean_is_scalar(x_422)) { + x_434 = lean_alloc_ctor(1, 1, 0); } else { - x_429 = x_370; + x_434 = x_422; } -lean_ctor_set(x_429, 0, x_368); -lean_ctor_set(x_429, 1, x_25); -lean_ctor_set(x_429, 2, x_425); -lean_ctor_set(x_429, 3, x_428); -lean_ctor_set(x_3, 1, x_366); -lean_ctor_set(x_3, 0, x_429); -if (lean_is_scalar(x_419)) { - x_430 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_434, 0, x_428); +lean_inc(x_431); +x_435 = l_Lean_mkApp(x_30, x_431); +x_436 = lean_expr_instantiate1(x_420, x_431); +lean_dec(x_420); +x_437 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_437, 0, x_431); +if (lean_is_scalar(x_353)) { + x_438 = lean_alloc_ctor(0, 4, 0); } else { - x_430 = x_419; + x_438 = x_353; } -lean_ctor_set(x_430, 0, x_427); -lean_ctor_set(x_430, 1, x_3); -if (lean_is_scalar(x_367)) { - x_431 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_438, 0, x_351); +lean_ctor_set(x_438, 1, x_25); +lean_ctor_set(x_438, 2, x_434); +lean_ctor_set(x_438, 3, x_437); +lean_ctor_set(x_3, 1, x_350); +lean_ctor_set(x_3, 0, x_438); +if (lean_is_scalar(x_429)) { + x_439 = lean_alloc_ctor(0, 2, 0); } else { - x_431 = x_367; + x_439 = x_429; } -lean_ctor_set(x_431, 0, x_426); -lean_ctor_set(x_431, 1, x_430); -if (lean_is_scalar(x_424)) { - x_432 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_439, 0, x_436); +lean_ctor_set(x_439, 1, x_3); +x_440 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_440, 0, x_435); +lean_ctor_set(x_440, 1, x_439); +if (lean_is_scalar(x_433)) { + x_441 = lean_alloc_ctor(0, 2, 0); } else { - x_432 = x_424; + x_441 = x_433; } -lean_ctor_set(x_432, 0, x_431); -lean_ctor_set(x_432, 1, x_423); -x_10 = x_432; +lean_ctor_set(x_441, 0, x_440); +lean_ctor_set(x_441, 1, x_432); +x_10 = x_441; goto block_18; } else { -lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; -lean_dec(x_419); -lean_dec(x_418); -lean_dec(x_412); -lean_dec(x_410); -lean_dec(x_370); -lean_dec(x_368); -lean_dec(x_367); -lean_dec(x_366); -lean_dec(x_364); +lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; +lean_dec(x_429); +lean_dec(x_428); +lean_dec(x_422); +lean_dec(x_420); +lean_dec(x_353); +lean_dec(x_351); +lean_dec(x_350); +lean_dec(x_30); lean_dec(x_25); lean_free_object(x_3); -x_433 = lean_ctor_get(x_421, 0); -lean_inc(x_433); -x_434 = lean_ctor_get(x_421, 1); -lean_inc(x_434); -if (lean_is_exclusive(x_421)) { - lean_ctor_release(x_421, 0); - lean_ctor_release(x_421, 1); - x_435 = x_421; +x_442 = lean_ctor_get(x_430, 0); +lean_inc(x_442); +x_443 = lean_ctor_get(x_430, 1); +lean_inc(x_443); +if (lean_is_exclusive(x_430)) { + lean_ctor_release(x_430, 0); + lean_ctor_release(x_430, 1); + x_444 = x_430; } else { - lean_dec_ref(x_421); - x_435 = lean_box(0); + lean_dec_ref(x_430); + x_444 = lean_box(0); } -if (lean_is_scalar(x_435)) { - x_436 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_444)) { + x_445 = lean_alloc_ctor(1, 2, 0); } else { - x_436 = x_435; + x_445 = x_444; } -lean_ctor_set(x_436, 0, x_433); -lean_ctor_set(x_436, 1, x_434); -x_10 = x_436; +lean_ctor_set(x_445, 0, x_442); +lean_ctor_set(x_445, 1, x_443); +x_10 = x_445; goto block_18; } } else { -lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; -lean_dec(x_413); -lean_dec(x_412); -lean_dec(x_411); -lean_dec(x_410); -lean_dec(x_370); -lean_dec(x_368); -lean_dec(x_367); -lean_dec(x_366); -lean_dec(x_364); +lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; +lean_dec(x_423); +lean_dec(x_422); +lean_dec(x_420); +lean_dec(x_353); +lean_dec(x_351); +lean_dec(x_350); +lean_dec(x_30); lean_dec(x_25); lean_free_object(x_3); -x_437 = lean_ctor_get(x_414, 0); -lean_inc(x_437); -x_438 = lean_ctor_get(x_414, 1); -lean_inc(x_438); -if (lean_is_exclusive(x_414)) { - lean_ctor_release(x_414, 0); - lean_ctor_release(x_414, 1); - x_439 = x_414; +x_446 = lean_ctor_get(x_424, 0); +lean_inc(x_446); +x_447 = lean_ctor_get(x_424, 1); +lean_inc(x_447); +if (lean_is_exclusive(x_424)) { + lean_ctor_release(x_424, 0); + lean_ctor_release(x_424, 1); + x_448 = x_424; } else { - lean_dec_ref(x_414); - x_439 = lean_box(0); + lean_dec_ref(x_424); + x_448 = lean_box(0); } -if (lean_is_scalar(x_439)) { - x_440 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_448)) { + x_449 = lean_alloc_ctor(1, 2, 0); } else { - x_440 = x_439; + x_449 = x_448; } -lean_ctor_set(x_440, 0, x_437); -lean_ctor_set(x_440, 1, x_438); -x_10 = x_440; +lean_ctor_set(x_449, 0, x_446); +lean_ctor_set(x_449, 1, x_447); +x_10 = x_449; goto block_18; } } default: { -lean_object* x_441; lean_object* x_442; lean_object* x_443; uint8_t x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; -x_441 = lean_ctor_get(x_373, 1); -lean_inc(x_441); -x_442 = lean_ctor_get(x_373, 2); -lean_inc(x_442); -lean_dec(x_373); -x_443 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_443, 0, x_441); -x_444 = 0; -x_445 = lean_box(0); -lean_inc(x_4); -x_446 = l_Lean_Elab_Term_mkFreshExprMVar(x_368, x_443, x_444, x_445, x_4, x_374); -x_447 = lean_ctor_get(x_446, 0); -lean_inc(x_447); -x_448 = lean_ctor_get(x_446, 1); -lean_inc(x_448); -if (lean_is_exclusive(x_446)) { - lean_ctor_release(x_446, 0); - lean_ctor_release(x_446, 1); - x_449 = x_446; -} else { - lean_dec_ref(x_446); - x_449 = lean_box(0); -} -x_450 = l_Lean_Elab_Term_StructInst_markDefaultMissing(x_447); +lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; uint8_t x_463; uint8_t x_464; uint8_t x_465; lean_object* x_466; uint8_t x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; +x_450 = lean_ctor_get(x_356, 1); lean_inc(x_450); -x_451 = l_Lean_mkApp(x_364, x_450); -x_452 = lean_expr_instantiate1(x_442, x_450); -lean_dec(x_442); -x_453 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_453, 0, x_450); -if (lean_is_scalar(x_370)) { - x_454 = lean_alloc_ctor(0, 4, 0); -} else { - x_454 = x_370; -} -lean_ctor_set(x_454, 0, x_368); -lean_ctor_set(x_454, 1, x_25); -lean_ctor_set(x_454, 2, x_369); -lean_ctor_set(x_454, 3, x_453); -lean_ctor_set(x_3, 1, x_366); -lean_ctor_set(x_3, 0, x_454); -if (lean_is_scalar(x_367)) { - x_455 = lean_alloc_ctor(0, 2, 0); -} else { - x_455 = x_367; -} -lean_ctor_set(x_455, 0, x_452); -lean_ctor_set(x_455, 1, x_3); -x_456 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_456, 0, x_451); -lean_ctor_set(x_456, 1, x_455); -if (lean_is_scalar(x_449)) { - x_457 = lean_alloc_ctor(0, 2, 0); -} else { - x_457 = x_449; -} -lean_ctor_set(x_457, 0, x_456); -lean_ctor_set(x_457, 1, x_448); -x_10 = x_457; -goto block_18; -} -} -} -else -{ -lean_object* x_458; -lean_dec(x_370); -lean_dec(x_369); -lean_dec(x_367); -lean_dec(x_366); -lean_dec(x_364); -lean_dec(x_25); -lean_free_object(x_3); -x_458 = lean_box(0); -x_375 = x_458; -goto block_381; -} -block_381: -{ -lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; -lean_dec(x_375); -x_376 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_376, 0, x_373); -x_377 = l_Lean_indentExpr(x_376); -x_378 = l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___closed__3; -x_379 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_379, 0, x_378); -lean_ctor_set(x_379, 1, x_377); -lean_inc(x_4); -lean_inc(x_1); -x_380 = l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg(x_368, x_371, x_1, x_379, x_4, x_374); -lean_dec(x_368); -x_10 = x_380; -goto block_18; -} -} -else -{ -lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; -lean_dec(x_371); -lean_dec(x_370); -lean_dec(x_369); -lean_dec(x_368); -lean_dec(x_367); -lean_dec(x_366); -lean_dec(x_364); -lean_dec(x_25); -lean_free_object(x_3); -x_459 = lean_ctor_get(x_372, 0); +x_451 = lean_ctor_get(x_356, 2); +lean_inc(x_451); +lean_dec(x_356); +x_452 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_452, 0, x_450); +x_453 = lean_ctor_get(x_4, 0); +lean_inc(x_453); +x_454 = lean_ctor_get(x_4, 1); +lean_inc(x_454); +x_455 = lean_ctor_get(x_4, 2); +lean_inc(x_455); +x_456 = lean_ctor_get(x_4, 3); +lean_inc(x_456); +x_457 = lean_ctor_get(x_4, 4); +lean_inc(x_457); +x_458 = lean_ctor_get(x_4, 5); +lean_inc(x_458); +x_459 = lean_ctor_get(x_4, 6); lean_inc(x_459); -x_460 = lean_ctor_get(x_372, 1); +x_460 = lean_ctor_get(x_4, 7); lean_inc(x_460); -if (lean_is_exclusive(x_372)) { - lean_ctor_release(x_372, 0); - lean_ctor_release(x_372, 1); - x_461 = x_372; +x_461 = lean_ctor_get(x_4, 8); +lean_inc(x_461); +x_462 = lean_ctor_get(x_4, 9); +lean_inc(x_462); +x_463 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_464 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_465 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +lean_inc(x_351); +x_466 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_466, 0, x_453); +lean_ctor_set(x_466, 1, x_454); +lean_ctor_set(x_466, 2, x_455); +lean_ctor_set(x_466, 3, x_456); +lean_ctor_set(x_466, 4, x_457); +lean_ctor_set(x_466, 5, x_458); +lean_ctor_set(x_466, 6, x_459); +lean_ctor_set(x_466, 7, x_460); +lean_ctor_set(x_466, 8, x_461); +lean_ctor_set(x_466, 9, x_462); +lean_ctor_set(x_466, 10, x_351); +lean_ctor_set_uint8(x_466, sizeof(void*)*11, x_463); +lean_ctor_set_uint8(x_466, sizeof(void*)*11 + 1, x_464); +lean_ctor_set_uint8(x_466, sizeof(void*)*11 + 2, x_465); +x_467 = 0; +x_468 = lean_box(0); +x_469 = l_Lean_Elab_Term_mkFreshExprMVar(x_452, x_467, x_468, x_466, x_357); +x_470 = lean_ctor_get(x_469, 0); +lean_inc(x_470); +x_471 = lean_ctor_get(x_469, 1); +lean_inc(x_471); +if (lean_is_exclusive(x_469)) { + lean_ctor_release(x_469, 0); + lean_ctor_release(x_469, 1); + x_472 = x_469; } else { - lean_dec_ref(x_372); - x_461 = lean_box(0); + lean_dec_ref(x_469); + x_472 = lean_box(0); } -if (lean_is_scalar(x_461)) { - x_462 = lean_alloc_ctor(1, 2, 0); +x_473 = l_Lean_Elab_Term_StructInst_markDefaultMissing(x_470); +lean_inc(x_473); +x_474 = l_Lean_mkApp(x_30, x_473); +x_475 = lean_expr_instantiate1(x_451, x_473); +lean_dec(x_451); +x_476 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_476, 0, x_473); +if (lean_is_scalar(x_353)) { + x_477 = lean_alloc_ctor(0, 4, 0); } else { - x_462 = x_461; + x_477 = x_353; } -lean_ctor_set(x_462, 0, x_459); -lean_ctor_set(x_462, 1, x_460); -x_10 = x_462; +lean_ctor_set(x_477, 0, x_351); +lean_ctor_set(x_477, 1, x_25); +lean_ctor_set(x_477, 2, x_352); +lean_ctor_set(x_477, 3, x_476); +lean_ctor_set(x_3, 1, x_350); +lean_ctor_set(x_3, 0, x_477); +x_478 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_478, 0, x_475); +lean_ctor_set(x_478, 1, x_3); +lean_ctor_set(x_2, 1, x_478); +lean_ctor_set(x_2, 0, x_474); +if (lean_is_scalar(x_472)) { + x_479 = lean_alloc_ctor(0, 2, 0); +} else { + x_479 = x_472; +} +lean_ctor_set(x_479, 0, x_2); +lean_ctor_set(x_479, 1, x_471); +x_10 = x_479; goto block_18; } } } else { -lean_object* x_463; +lean_object* x_480; +lean_dec(x_353); +lean_dec(x_352); +lean_dec(x_350); +lean_free_object(x_2); +lean_dec(x_30); +lean_dec(x_25); +lean_free_object(x_3); +x_480 = lean_box(0); +x_358 = x_480; +goto block_378; +} +block_378: +{ +lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; uint8_t x_373; uint8_t x_374; uint8_t x_375; lean_object* x_376; lean_object* x_377; +lean_dec(x_358); +x_359 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_359, 0, x_356); +x_360 = l_Lean_indentExpr(x_359); +x_361 = l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___closed__3; +x_362 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_362, 0, x_361); +lean_ctor_set(x_362, 1, x_360); +x_363 = lean_ctor_get(x_4, 0); +lean_inc(x_363); +x_364 = lean_ctor_get(x_4, 1); +lean_inc(x_364); +x_365 = lean_ctor_get(x_4, 2); +lean_inc(x_365); +x_366 = lean_ctor_get(x_4, 3); +lean_inc(x_366); +x_367 = lean_ctor_get(x_4, 4); +lean_inc(x_367); +x_368 = lean_ctor_get(x_4, 5); +lean_inc(x_368); +x_369 = lean_ctor_get(x_4, 6); +lean_inc(x_369); +x_370 = lean_ctor_get(x_4, 7); +lean_inc(x_370); +x_371 = lean_ctor_get(x_4, 8); +lean_inc(x_371); +x_372 = lean_ctor_get(x_4, 9); +lean_inc(x_372); +x_373 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_374 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_375 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +x_376 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_376, 0, x_363); +lean_ctor_set(x_376, 1, x_364); +lean_ctor_set(x_376, 2, x_365); +lean_ctor_set(x_376, 3, x_366); +lean_ctor_set(x_376, 4, x_367); +lean_ctor_set(x_376, 5, x_368); +lean_ctor_set(x_376, 6, x_369); +lean_ctor_set(x_376, 7, x_370); +lean_ctor_set(x_376, 8, x_371); +lean_ctor_set(x_376, 9, x_372); +lean_ctor_set(x_376, 10, x_351); +lean_ctor_set_uint8(x_376, sizeof(void*)*11, x_373); +lean_ctor_set_uint8(x_376, sizeof(void*)*11 + 1, x_374); +lean_ctor_set_uint8(x_376, sizeof(void*)*11 + 2, x_375); +lean_inc(x_1); +x_377 = l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg(x_354, x_1, x_362, x_376, x_357); +x_10 = x_377; +goto block_18; +} +} +else +{ +lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; +lean_dec(x_354); +lean_dec(x_353); +lean_dec(x_352); +lean_dec(x_351); +lean_dec(x_350); +lean_free_object(x_2); +lean_dec(x_30); +lean_dec(x_25); +lean_free_object(x_3); +x_481 = lean_ctor_get(x_355, 0); +lean_inc(x_481); +x_482 = lean_ctor_get(x_355, 1); +lean_inc(x_482); +if (lean_is_exclusive(x_355)) { + lean_ctor_release(x_355, 0); + lean_ctor_release(x_355, 1); + x_483 = x_355; +} else { + lean_dec_ref(x_355); + x_483 = lean_box(0); +} +if (lean_is_scalar(x_483)) { + x_484 = lean_alloc_ctor(1, 2, 0); +} else { + x_484 = x_483; +} +lean_ctor_set(x_484, 0, x_481); +lean_ctor_set(x_484, 1, x_482); +x_10 = x_484; +goto block_18; +} +} +} +else +{ +lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; +x_485 = lean_ctor_get(x_2, 0); +lean_inc(x_485); +lean_dec(x_2); +x_486 = lean_ctor_get(x_24, 0); +lean_inc(x_486); +x_487 = lean_ctor_get(x_24, 1); +lean_inc(x_487); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + lean_ctor_release(x_24, 1); + x_488 = x_24; +} else { + lean_dec_ref(x_24); + x_488 = lean_box(0); +} +x_489 = lean_ctor_get(x_8, 0); +lean_inc(x_489); +x_490 = lean_ctor_get(x_8, 2); +lean_inc(x_490); +if (lean_is_exclusive(x_8)) { + lean_ctor_release(x_8, 0); + lean_ctor_release(x_8, 1); + lean_ctor_release(x_8, 2); + lean_ctor_release(x_8, 3); + x_491 = x_8; +} else { + lean_dec_ref(x_8); + x_491 = lean_box(0); +} +x_492 = lean_ctor_get(x_27, 1); +lean_inc(x_492); +lean_dec(x_27); +lean_inc(x_4); +x_493 = l_Lean_Elab_Term_whnfForall(x_486, x_4, x_5); +if (lean_obj_tag(x_493) == 0) +{ +lean_object* x_494; lean_object* x_495; lean_object* x_496; +x_494 = lean_ctor_get(x_493, 0); +lean_inc(x_494); +x_495 = lean_ctor_get(x_493, 1); +lean_inc(x_495); +lean_dec(x_493); +if (lean_obj_tag(x_494) == 7) +{ +lean_dec(x_492); +switch (lean_obj_tag(x_490)) { +case 0: +{ +lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; uint8_t x_521; lean_object* x_522; +x_517 = lean_ctor_get(x_494, 1); +lean_inc(x_517); +x_518 = lean_ctor_get(x_494, 2); +lean_inc(x_518); +lean_dec(x_494); +x_519 = lean_ctor_get(x_490, 0); +lean_inc(x_519); +x_520 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_520, 0, x_517); +x_521 = 1; +lean_inc(x_4); +lean_inc(x_520); +lean_inc(x_519); +x_522 = l_Lean_Elab_Term_elabTerm(x_519, x_520, x_521, x_4, x_495); +if (lean_obj_tag(x_522) == 0) +{ +lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; uint8_t x_535; uint8_t x_536; uint8_t x_537; lean_object* x_538; lean_object* x_539; +x_523 = lean_ctor_get(x_522, 0); +lean_inc(x_523); +x_524 = lean_ctor_get(x_522, 1); +lean_inc(x_524); +lean_dec(x_522); +x_525 = lean_ctor_get(x_4, 0); +lean_inc(x_525); +x_526 = lean_ctor_get(x_4, 1); +lean_inc(x_526); +x_527 = lean_ctor_get(x_4, 2); +lean_inc(x_527); +x_528 = lean_ctor_get(x_4, 3); +lean_inc(x_528); +x_529 = lean_ctor_get(x_4, 4); +lean_inc(x_529); +x_530 = lean_ctor_get(x_4, 5); +lean_inc(x_530); +x_531 = lean_ctor_get(x_4, 6); +lean_inc(x_531); +x_532 = lean_ctor_get(x_4, 7); +lean_inc(x_532); +x_533 = lean_ctor_get(x_4, 8); +lean_inc(x_533); +x_534 = lean_ctor_get(x_4, 9); +lean_inc(x_534); +x_535 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_536 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_537 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +x_538 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_538, 0, x_525); +lean_ctor_set(x_538, 1, x_526); +lean_ctor_set(x_538, 2, x_527); +lean_ctor_set(x_538, 3, x_528); +lean_ctor_set(x_538, 4, x_529); +lean_ctor_set(x_538, 5, x_530); +lean_ctor_set(x_538, 6, x_531); +lean_ctor_set(x_538, 7, x_532); +lean_ctor_set(x_538, 8, x_533); +lean_ctor_set(x_538, 9, x_534); +lean_ctor_set(x_538, 10, x_519); +lean_ctor_set_uint8(x_538, sizeof(void*)*11, x_535); +lean_ctor_set_uint8(x_538, sizeof(void*)*11 + 1, x_536); +lean_ctor_set_uint8(x_538, sizeof(void*)*11 + 2, x_537); +x_539 = l_Lean_Elab_Term_ensureHasType(x_520, x_523, x_538, x_524); +if (lean_obj_tag(x_539) == 0) +{ +lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; +x_540 = lean_ctor_get(x_539, 0); +lean_inc(x_540); +x_541 = lean_ctor_get(x_539, 1); +lean_inc(x_541); +if (lean_is_exclusive(x_539)) { + lean_ctor_release(x_539, 0); + lean_ctor_release(x_539, 1); + x_542 = x_539; +} else { + lean_dec_ref(x_539); + x_542 = lean_box(0); +} +lean_inc(x_540); +x_543 = l_Lean_mkApp(x_485, x_540); +x_544 = lean_expr_instantiate1(x_518, x_540); +lean_dec(x_518); +x_545 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_545, 0, x_540); +if (lean_is_scalar(x_491)) { + x_546 = lean_alloc_ctor(0, 4, 0); +} else { + x_546 = x_491; +} +lean_ctor_set(x_546, 0, x_489); +lean_ctor_set(x_546, 1, x_25); +lean_ctor_set(x_546, 2, x_490); +lean_ctor_set(x_546, 3, x_545); +lean_ctor_set(x_3, 1, x_487); +lean_ctor_set(x_3, 0, x_546); +if (lean_is_scalar(x_488)) { + x_547 = lean_alloc_ctor(0, 2, 0); +} else { + x_547 = x_488; +} +lean_ctor_set(x_547, 0, x_544); +lean_ctor_set(x_547, 1, x_3); +x_548 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_548, 0, x_543); +lean_ctor_set(x_548, 1, x_547); +if (lean_is_scalar(x_542)) { + x_549 = lean_alloc_ctor(0, 2, 0); +} else { + x_549 = x_542; +} +lean_ctor_set(x_549, 0, x_548); +lean_ctor_set(x_549, 1, x_541); +x_10 = x_549; +goto block_18; +} +else +{ +lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; +lean_dec(x_518); +lean_dec(x_491); +lean_dec(x_490); +lean_dec(x_489); +lean_dec(x_488); +lean_dec(x_487); +lean_dec(x_485); +lean_dec(x_25); +lean_free_object(x_3); +x_550 = lean_ctor_get(x_539, 0); +lean_inc(x_550); +x_551 = lean_ctor_get(x_539, 1); +lean_inc(x_551); +if (lean_is_exclusive(x_539)) { + lean_ctor_release(x_539, 0); + lean_ctor_release(x_539, 1); + x_552 = x_539; +} else { + lean_dec_ref(x_539); + x_552 = lean_box(0); +} +if (lean_is_scalar(x_552)) { + x_553 = lean_alloc_ctor(1, 2, 0); +} else { + x_553 = x_552; +} +lean_ctor_set(x_553, 0, x_550); +lean_ctor_set(x_553, 1, x_551); +x_10 = x_553; +goto block_18; +} +} +else +{ +lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; +lean_dec(x_520); +lean_dec(x_519); +lean_dec(x_518); +lean_dec(x_491); +lean_dec(x_490); +lean_dec(x_489); +lean_dec(x_488); +lean_dec(x_487); +lean_dec(x_485); +lean_dec(x_25); +lean_free_object(x_3); +x_554 = lean_ctor_get(x_522, 0); +lean_inc(x_554); +x_555 = lean_ctor_get(x_522, 1); +lean_inc(x_555); +if (lean_is_exclusive(x_522)) { + lean_ctor_release(x_522, 0); + lean_ctor_release(x_522, 1); + x_556 = x_522; +} else { + lean_dec_ref(x_522); + x_556 = lean_box(0); +} +if (lean_is_scalar(x_556)) { + x_557 = lean_alloc_ctor(1, 2, 0); +} else { + x_557 = x_556; +} +lean_ctor_set(x_557, 0, x_554); +lean_ctor_set(x_557, 1, x_555); +x_10 = x_557; +goto block_18; +} +} +case 1: +{ +lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; +x_558 = lean_ctor_get(x_494, 1); +lean_inc(x_558); +x_559 = lean_ctor_get(x_494, 2); +lean_inc(x_559); +lean_dec(x_494); +x_560 = lean_ctor_get(x_490, 0); +lean_inc(x_560); +if (lean_is_exclusive(x_490)) { + lean_ctor_release(x_490, 0); + x_561 = x_490; +} else { + lean_dec_ref(x_490); + x_561 = lean_box(0); +} +x_562 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_562, 0, x_558); +lean_inc(x_4); +lean_inc(x_562); +x_563 = l___private_Lean_Elab_StructInst_24__elabStruct___main(x_560, x_562, x_4, x_495); +if (lean_obj_tag(x_563) == 0) +{ +lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; +x_564 = lean_ctor_get(x_563, 0); +lean_inc(x_564); +x_565 = lean_ctor_get(x_563, 1); +lean_inc(x_565); +lean_dec(x_563); +x_566 = lean_ctor_get(x_564, 0); +lean_inc(x_566); +x_567 = lean_ctor_get(x_564, 1); +lean_inc(x_567); +if (lean_is_exclusive(x_564)) { + lean_ctor_release(x_564, 0); + lean_ctor_release(x_564, 1); + x_568 = x_564; +} else { + lean_dec_ref(x_564); + x_568 = lean_box(0); +} +lean_inc(x_4); +x_569 = l_Lean_Elab_Term_ensureHasType(x_562, x_566, x_4, x_565); +if (lean_obj_tag(x_569) == 0) +{ +lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; +x_570 = lean_ctor_get(x_569, 0); +lean_inc(x_570); +x_571 = lean_ctor_get(x_569, 1); +lean_inc(x_571); +if (lean_is_exclusive(x_569)) { + lean_ctor_release(x_569, 0); + lean_ctor_release(x_569, 1); + x_572 = x_569; +} else { + lean_dec_ref(x_569); + x_572 = lean_box(0); +} +if (lean_is_scalar(x_561)) { + x_573 = lean_alloc_ctor(1, 1, 0); +} else { + x_573 = x_561; +} +lean_ctor_set(x_573, 0, x_567); +lean_inc(x_570); +x_574 = l_Lean_mkApp(x_485, x_570); +x_575 = lean_expr_instantiate1(x_559, x_570); +lean_dec(x_559); +x_576 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_576, 0, x_570); +if (lean_is_scalar(x_491)) { + x_577 = lean_alloc_ctor(0, 4, 0); +} else { + x_577 = x_491; +} +lean_ctor_set(x_577, 0, x_489); +lean_ctor_set(x_577, 1, x_25); +lean_ctor_set(x_577, 2, x_573); +lean_ctor_set(x_577, 3, x_576); +lean_ctor_set(x_3, 1, x_487); +lean_ctor_set(x_3, 0, x_577); +if (lean_is_scalar(x_568)) { + x_578 = lean_alloc_ctor(0, 2, 0); +} else { + x_578 = x_568; +} +lean_ctor_set(x_578, 0, x_575); +lean_ctor_set(x_578, 1, x_3); +if (lean_is_scalar(x_488)) { + x_579 = lean_alloc_ctor(0, 2, 0); +} else { + x_579 = x_488; +} +lean_ctor_set(x_579, 0, x_574); +lean_ctor_set(x_579, 1, x_578); +if (lean_is_scalar(x_572)) { + x_580 = lean_alloc_ctor(0, 2, 0); +} else { + x_580 = x_572; +} +lean_ctor_set(x_580, 0, x_579); +lean_ctor_set(x_580, 1, x_571); +x_10 = x_580; +goto block_18; +} +else +{ +lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; +lean_dec(x_568); +lean_dec(x_567); +lean_dec(x_561); +lean_dec(x_559); +lean_dec(x_491); +lean_dec(x_489); +lean_dec(x_488); +lean_dec(x_487); +lean_dec(x_485); +lean_dec(x_25); +lean_free_object(x_3); +x_581 = lean_ctor_get(x_569, 0); +lean_inc(x_581); +x_582 = lean_ctor_get(x_569, 1); +lean_inc(x_582); +if (lean_is_exclusive(x_569)) { + lean_ctor_release(x_569, 0); + lean_ctor_release(x_569, 1); + x_583 = x_569; +} else { + lean_dec_ref(x_569); + x_583 = lean_box(0); +} +if (lean_is_scalar(x_583)) { + x_584 = lean_alloc_ctor(1, 2, 0); +} else { + x_584 = x_583; +} +lean_ctor_set(x_584, 0, x_581); +lean_ctor_set(x_584, 1, x_582); +x_10 = x_584; +goto block_18; +} +} +else +{ +lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; +lean_dec(x_562); +lean_dec(x_561); +lean_dec(x_559); +lean_dec(x_491); +lean_dec(x_489); +lean_dec(x_488); +lean_dec(x_487); +lean_dec(x_485); +lean_dec(x_25); +lean_free_object(x_3); +x_585 = lean_ctor_get(x_563, 0); +lean_inc(x_585); +x_586 = lean_ctor_get(x_563, 1); +lean_inc(x_586); +if (lean_is_exclusive(x_563)) { + lean_ctor_release(x_563, 0); + lean_ctor_release(x_563, 1); + x_587 = x_563; +} else { + lean_dec_ref(x_563); + x_587 = lean_box(0); +} +if (lean_is_scalar(x_587)) { + x_588 = lean_alloc_ctor(1, 2, 0); +} else { + x_588 = x_587; +} +lean_ctor_set(x_588, 0, x_585); +lean_ctor_set(x_588, 1, x_586); +x_10 = x_588; +goto block_18; +} +} +default: +{ +lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; lean_object* x_601; uint8_t x_602; uint8_t x_603; uint8_t x_604; lean_object* x_605; uint8_t x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; lean_object* x_619; +x_589 = lean_ctor_get(x_494, 1); +lean_inc(x_589); +x_590 = lean_ctor_get(x_494, 2); +lean_inc(x_590); +lean_dec(x_494); +x_591 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_591, 0, x_589); +x_592 = lean_ctor_get(x_4, 0); +lean_inc(x_592); +x_593 = lean_ctor_get(x_4, 1); +lean_inc(x_593); +x_594 = lean_ctor_get(x_4, 2); +lean_inc(x_594); +x_595 = lean_ctor_get(x_4, 3); +lean_inc(x_595); +x_596 = lean_ctor_get(x_4, 4); +lean_inc(x_596); +x_597 = lean_ctor_get(x_4, 5); +lean_inc(x_597); +x_598 = lean_ctor_get(x_4, 6); +lean_inc(x_598); +x_599 = lean_ctor_get(x_4, 7); +lean_inc(x_599); +x_600 = lean_ctor_get(x_4, 8); +lean_inc(x_600); +x_601 = lean_ctor_get(x_4, 9); +lean_inc(x_601); +x_602 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_603 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_604 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +lean_inc(x_489); +x_605 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_605, 0, x_592); +lean_ctor_set(x_605, 1, x_593); +lean_ctor_set(x_605, 2, x_594); +lean_ctor_set(x_605, 3, x_595); +lean_ctor_set(x_605, 4, x_596); +lean_ctor_set(x_605, 5, x_597); +lean_ctor_set(x_605, 6, x_598); +lean_ctor_set(x_605, 7, x_599); +lean_ctor_set(x_605, 8, x_600); +lean_ctor_set(x_605, 9, x_601); +lean_ctor_set(x_605, 10, x_489); +lean_ctor_set_uint8(x_605, sizeof(void*)*11, x_602); +lean_ctor_set_uint8(x_605, sizeof(void*)*11 + 1, x_603); +lean_ctor_set_uint8(x_605, sizeof(void*)*11 + 2, x_604); +x_606 = 0; +x_607 = lean_box(0); +x_608 = l_Lean_Elab_Term_mkFreshExprMVar(x_591, x_606, x_607, x_605, x_495); +x_609 = lean_ctor_get(x_608, 0); +lean_inc(x_609); +x_610 = lean_ctor_get(x_608, 1); +lean_inc(x_610); +if (lean_is_exclusive(x_608)) { + lean_ctor_release(x_608, 0); + lean_ctor_release(x_608, 1); + x_611 = x_608; +} else { + lean_dec_ref(x_608); + x_611 = lean_box(0); +} +x_612 = l_Lean_Elab_Term_StructInst_markDefaultMissing(x_609); +lean_inc(x_612); +x_613 = l_Lean_mkApp(x_485, x_612); +x_614 = lean_expr_instantiate1(x_590, x_612); +lean_dec(x_590); +x_615 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_615, 0, x_612); +if (lean_is_scalar(x_491)) { + x_616 = lean_alloc_ctor(0, 4, 0); +} else { + x_616 = x_491; +} +lean_ctor_set(x_616, 0, x_489); +lean_ctor_set(x_616, 1, x_25); +lean_ctor_set(x_616, 2, x_490); +lean_ctor_set(x_616, 3, x_615); +lean_ctor_set(x_3, 1, x_487); +lean_ctor_set(x_3, 0, x_616); +if (lean_is_scalar(x_488)) { + x_617 = lean_alloc_ctor(0, 2, 0); +} else { + x_617 = x_488; +} +lean_ctor_set(x_617, 0, x_614); +lean_ctor_set(x_617, 1, x_3); +x_618 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_618, 0, x_613); +lean_ctor_set(x_618, 1, x_617); +if (lean_is_scalar(x_611)) { + x_619 = lean_alloc_ctor(0, 2, 0); +} else { + x_619 = x_611; +} +lean_ctor_set(x_619, 0, x_618); +lean_ctor_set(x_619, 1, x_610); +x_10 = x_619; +goto block_18; +} +} +} +else +{ +lean_object* x_620; +lean_dec(x_491); +lean_dec(x_490); +lean_dec(x_488); +lean_dec(x_487); +lean_dec(x_485); +lean_dec(x_25); +lean_free_object(x_3); +x_620 = lean_box(0); +x_496 = x_620; +goto block_516; +} +block_516: +{ +lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; uint8_t x_511; uint8_t x_512; uint8_t x_513; lean_object* x_514; lean_object* x_515; +lean_dec(x_496); +x_497 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_497, 0, x_494); +x_498 = l_Lean_indentExpr(x_497); +x_499 = l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___closed__3; +x_500 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_500, 0, x_499); +lean_ctor_set(x_500, 1, x_498); +x_501 = lean_ctor_get(x_4, 0); +lean_inc(x_501); +x_502 = lean_ctor_get(x_4, 1); +lean_inc(x_502); +x_503 = lean_ctor_get(x_4, 2); +lean_inc(x_503); +x_504 = lean_ctor_get(x_4, 3); +lean_inc(x_504); +x_505 = lean_ctor_get(x_4, 4); +lean_inc(x_505); +x_506 = lean_ctor_get(x_4, 5); +lean_inc(x_506); +x_507 = lean_ctor_get(x_4, 6); +lean_inc(x_507); +x_508 = lean_ctor_get(x_4, 7); +lean_inc(x_508); +x_509 = lean_ctor_get(x_4, 8); +lean_inc(x_509); +x_510 = lean_ctor_get(x_4, 9); +lean_inc(x_510); +x_511 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_512 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_513 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +x_514 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_514, 0, x_501); +lean_ctor_set(x_514, 1, x_502); +lean_ctor_set(x_514, 2, x_503); +lean_ctor_set(x_514, 3, x_504); +lean_ctor_set(x_514, 4, x_505); +lean_ctor_set(x_514, 5, x_506); +lean_ctor_set(x_514, 6, x_507); +lean_ctor_set(x_514, 7, x_508); +lean_ctor_set(x_514, 8, x_509); +lean_ctor_set(x_514, 9, x_510); +lean_ctor_set(x_514, 10, x_489); +lean_ctor_set_uint8(x_514, sizeof(void*)*11, x_511); +lean_ctor_set_uint8(x_514, sizeof(void*)*11 + 1, x_512); +lean_ctor_set_uint8(x_514, sizeof(void*)*11 + 2, x_513); +lean_inc(x_1); +x_515 = l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg(x_492, x_1, x_500, x_514, x_495); +x_10 = x_515; +goto block_18; +} +} +else +{ +lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; +lean_dec(x_492); +lean_dec(x_491); +lean_dec(x_490); +lean_dec(x_489); +lean_dec(x_488); +lean_dec(x_487); +lean_dec(x_485); +lean_dec(x_25); +lean_free_object(x_3); +x_621 = lean_ctor_get(x_493, 0); +lean_inc(x_621); +x_622 = lean_ctor_get(x_493, 1); +lean_inc(x_622); +if (lean_is_exclusive(x_493)) { + lean_ctor_release(x_493, 0); + lean_ctor_release(x_493, 1); + x_623 = x_493; +} else { + lean_dec_ref(x_493); + x_623 = lean_box(0); +} +if (lean_is_scalar(x_623)) { + x_624 = lean_alloc_ctor(1, 2, 0); +} else { + x_624 = x_623; +} +lean_ctor_set(x_624, 0, x_621); +lean_ctor_set(x_624, 1, x_622); +x_10 = x_624; +goto block_18; +} +} +} +else +{ +lean_object* x_625; lean_dec(x_28); lean_dec(x_27); lean_dec(x_25); lean_dec(x_24); lean_free_object(x_3); lean_dec(x_2); -x_463 = lean_box(0); -x_19 = x_463; +x_625 = lean_box(0); +x_19 = x_625; goto block_23; } } else { -lean_object* x_464; +lean_object* x_626; lean_dec(x_27); lean_dec(x_25); lean_dec(x_24); lean_free_object(x_3); lean_dec(x_2); -x_464 = lean_box(0); -x_19 = x_464; +x_626 = lean_box(0); +x_19 = x_626; goto block_23; } } @@ -18991,7 +19868,7 @@ lean_inc(x_20); lean_dec(x_8); x_21 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_24__elabStruct___main___spec__1___closed__3; lean_inc(x_4); -x_22 = l_Lean_Elab_Term_throwError___rarg(x_20, x_21, x_4, x_5); +x_22 = l_Lean_Elab_Term_throwErrorAt___rarg(x_20, x_21, x_4, x_5); lean_dec(x_20); x_10 = x_22; goto block_18; @@ -18999,650 +19876,757 @@ goto block_18; } else { -lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_476; lean_object* x_481; lean_object* x_482; -x_465 = lean_ctor_get(x_3, 0); -x_466 = lean_ctor_get(x_3, 1); -lean_inc(x_466); -lean_inc(x_465); +lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_638; lean_object* x_643; lean_object* x_644; +x_627 = lean_ctor_get(x_3, 0); +x_628 = lean_ctor_get(x_3, 1); +lean_inc(x_628); +lean_inc(x_627); lean_dec(x_3); -x_481 = lean_ctor_get(x_2, 1); -lean_inc(x_481); -x_482 = lean_ctor_get(x_465, 1); -lean_inc(x_482); -if (lean_obj_tag(x_482) == 0) +x_643 = lean_ctor_get(x_2, 1); +lean_inc(x_643); +x_644 = lean_ctor_get(x_627, 1); +lean_inc(x_644); +if (lean_obj_tag(x_644) == 0) { -lean_object* x_483; -lean_dec(x_481); +lean_object* x_645; +lean_dec(x_643); lean_dec(x_2); -x_483 = lean_box(0); -x_476 = x_483; -goto block_480; +x_645 = lean_box(0); +x_638 = x_645; +goto block_642; } else { -lean_object* x_484; -x_484 = lean_ctor_get(x_482, 0); -lean_inc(x_484); -if (lean_obj_tag(x_484) == 0) +lean_object* x_646; +x_646 = lean_ctor_get(x_644, 0); +lean_inc(x_646); +if (lean_obj_tag(x_646) == 0) { -lean_object* x_485; -x_485 = lean_ctor_get(x_482, 1); -lean_inc(x_485); -if (lean_obj_tag(x_485) == 0) +lean_object* x_647; +x_647 = lean_ctor_get(x_644, 1); +lean_inc(x_647); +if (lean_obj_tag(x_647) == 0) { -lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; -x_486 = lean_ctor_get(x_2, 0); -lean_inc(x_486); +lean_object* x_648; lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; lean_object* x_653; lean_object* x_654; lean_object* x_655; lean_object* x_656; lean_object* x_657; +x_648 = lean_ctor_get(x_2, 0); +lean_inc(x_648); if (lean_is_exclusive(x_2)) { lean_ctor_release(x_2, 0); lean_ctor_release(x_2, 1); - x_487 = x_2; + x_649 = x_2; } else { lean_dec_ref(x_2); - x_487 = lean_box(0); + x_649 = lean_box(0); } -x_488 = lean_ctor_get(x_481, 0); -lean_inc(x_488); -x_489 = lean_ctor_get(x_481, 1); -lean_inc(x_489); -if (lean_is_exclusive(x_481)) { - lean_ctor_release(x_481, 0); - lean_ctor_release(x_481, 1); - x_490 = x_481; +x_650 = lean_ctor_get(x_643, 0); +lean_inc(x_650); +x_651 = lean_ctor_get(x_643, 1); +lean_inc(x_651); +if (lean_is_exclusive(x_643)) { + lean_ctor_release(x_643, 0); + lean_ctor_release(x_643, 1); + x_652 = x_643; } else { - lean_dec_ref(x_481); - x_490 = lean_box(0); + lean_dec_ref(x_643); + x_652 = lean_box(0); } -x_491 = lean_ctor_get(x_465, 0); -lean_inc(x_491); -x_492 = lean_ctor_get(x_465, 2); -lean_inc(x_492); -if (lean_is_exclusive(x_465)) { - lean_ctor_release(x_465, 0); - lean_ctor_release(x_465, 1); - lean_ctor_release(x_465, 2); - lean_ctor_release(x_465, 3); - x_493 = x_465; +x_653 = lean_ctor_get(x_627, 0); +lean_inc(x_653); +x_654 = lean_ctor_get(x_627, 2); +lean_inc(x_654); +if (lean_is_exclusive(x_627)) { + lean_ctor_release(x_627, 0); + lean_ctor_release(x_627, 1); + lean_ctor_release(x_627, 2); + lean_ctor_release(x_627, 3); + x_655 = x_627; } else { - lean_dec_ref(x_465); - x_493 = lean_box(0); + lean_dec_ref(x_627); + x_655 = lean_box(0); } -x_494 = lean_ctor_get(x_484, 1); -lean_inc(x_494); -lean_dec(x_484); +x_656 = lean_ctor_get(x_646, 1); +lean_inc(x_656); +lean_dec(x_646); lean_inc(x_4); -x_495 = l_Lean_Elab_Term_whnfForall(x_491, x_488, x_4, x_5); -if (lean_obj_tag(x_495) == 0) +x_657 = l_Lean_Elab_Term_whnfForall(x_650, x_4, x_5); +if (lean_obj_tag(x_657) == 0) { -lean_object* x_496; lean_object* x_497; lean_object* x_498; -x_496 = lean_ctor_get(x_495, 0); -lean_inc(x_496); -x_497 = lean_ctor_get(x_495, 1); -lean_inc(x_497); -lean_dec(x_495); -if (lean_obj_tag(x_496) == 7) +lean_object* x_658; lean_object* x_659; lean_object* x_660; +x_658 = lean_ctor_get(x_657, 0); +lean_inc(x_658); +x_659 = lean_ctor_get(x_657, 1); +lean_inc(x_659); +lean_dec(x_657); +if (lean_obj_tag(x_658) == 7) { -lean_dec(x_494); -switch (lean_obj_tag(x_492)) { +lean_dec(x_656); +switch (lean_obj_tag(x_654)) { case 0: { -lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; uint8_t x_509; lean_object* x_510; -x_505 = lean_ctor_get(x_496, 1); -lean_inc(x_505); -x_506 = lean_ctor_get(x_496, 2); -lean_inc(x_506); -lean_dec(x_496); -x_507 = lean_ctor_get(x_492, 0); -lean_inc(x_507); -x_508 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_508, 0, x_505); -x_509 = 1; +lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; uint8_t x_685; lean_object* x_686; +x_681 = lean_ctor_get(x_658, 1); +lean_inc(x_681); +x_682 = lean_ctor_get(x_658, 2); +lean_inc(x_682); +lean_dec(x_658); +x_683 = lean_ctor_get(x_654, 0); +lean_inc(x_683); +x_684 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_684, 0, x_681); +x_685 = 1; lean_inc(x_4); -lean_inc(x_507); -lean_inc(x_508); -x_510 = l_Lean_Elab_Term_elabTermAux___main(x_508, x_509, x_509, x_507, x_4, x_497); -if (lean_obj_tag(x_510) == 0) +lean_inc(x_684); +lean_inc(x_683); +x_686 = l_Lean_Elab_Term_elabTerm(x_683, x_684, x_685, x_4, x_659); +if (lean_obj_tag(x_686) == 0) { -lean_object* x_511; lean_object* x_512; lean_object* x_513; -x_511 = lean_ctor_get(x_510, 0); -lean_inc(x_511); -x_512 = lean_ctor_get(x_510, 1); -lean_inc(x_512); -lean_dec(x_510); -lean_inc(x_4); -x_513 = l_Lean_Elab_Term_ensureHasType(x_507, x_508, x_511, x_4, x_512); -if (lean_obj_tag(x_513) == 0) +lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; lean_object* x_698; uint8_t x_699; uint8_t x_700; uint8_t x_701; lean_object* x_702; lean_object* x_703; +x_687 = lean_ctor_get(x_686, 0); +lean_inc(x_687); +x_688 = lean_ctor_get(x_686, 1); +lean_inc(x_688); +lean_dec(x_686); +x_689 = lean_ctor_get(x_4, 0); +lean_inc(x_689); +x_690 = lean_ctor_get(x_4, 1); +lean_inc(x_690); +x_691 = lean_ctor_get(x_4, 2); +lean_inc(x_691); +x_692 = lean_ctor_get(x_4, 3); +lean_inc(x_692); +x_693 = lean_ctor_get(x_4, 4); +lean_inc(x_693); +x_694 = lean_ctor_get(x_4, 5); +lean_inc(x_694); +x_695 = lean_ctor_get(x_4, 6); +lean_inc(x_695); +x_696 = lean_ctor_get(x_4, 7); +lean_inc(x_696); +x_697 = lean_ctor_get(x_4, 8); +lean_inc(x_697); +x_698 = lean_ctor_get(x_4, 9); +lean_inc(x_698); +x_699 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_700 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_701 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +x_702 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_702, 0, x_689); +lean_ctor_set(x_702, 1, x_690); +lean_ctor_set(x_702, 2, x_691); +lean_ctor_set(x_702, 3, x_692); +lean_ctor_set(x_702, 4, x_693); +lean_ctor_set(x_702, 5, x_694); +lean_ctor_set(x_702, 6, x_695); +lean_ctor_set(x_702, 7, x_696); +lean_ctor_set(x_702, 8, x_697); +lean_ctor_set(x_702, 9, x_698); +lean_ctor_set(x_702, 10, x_683); +lean_ctor_set_uint8(x_702, sizeof(void*)*11, x_699); +lean_ctor_set_uint8(x_702, sizeof(void*)*11 + 1, x_700); +lean_ctor_set_uint8(x_702, sizeof(void*)*11 + 2, x_701); +x_703 = l_Lean_Elab_Term_ensureHasType(x_684, x_687, x_702, x_688); +if (lean_obj_tag(x_703) == 0) { -lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; -x_514 = lean_ctor_get(x_513, 0); -lean_inc(x_514); -x_515 = lean_ctor_get(x_513, 1); -lean_inc(x_515); -if (lean_is_exclusive(x_513)) { - lean_ctor_release(x_513, 0); - lean_ctor_release(x_513, 1); - x_516 = x_513; +lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; +x_704 = lean_ctor_get(x_703, 0); +lean_inc(x_704); +x_705 = lean_ctor_get(x_703, 1); +lean_inc(x_705); +if (lean_is_exclusive(x_703)) { + lean_ctor_release(x_703, 0); + lean_ctor_release(x_703, 1); + x_706 = x_703; } else { - lean_dec_ref(x_513); - x_516 = lean_box(0); + lean_dec_ref(x_703); + x_706 = lean_box(0); } -lean_inc(x_514); -x_517 = l_Lean_mkApp(x_486, x_514); -x_518 = lean_expr_instantiate1(x_506, x_514); -lean_dec(x_506); -x_519 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_519, 0, x_514); -if (lean_is_scalar(x_493)) { - x_520 = lean_alloc_ctor(0, 4, 0); +lean_inc(x_704); +x_707 = l_Lean_mkApp(x_648, x_704); +x_708 = lean_expr_instantiate1(x_682, x_704); +lean_dec(x_682); +x_709 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_709, 0, x_704); +if (lean_is_scalar(x_655)) { + x_710 = lean_alloc_ctor(0, 4, 0); } else { - x_520 = x_493; + x_710 = x_655; } -lean_ctor_set(x_520, 0, x_491); -lean_ctor_set(x_520, 1, x_482); -lean_ctor_set(x_520, 2, x_492); -lean_ctor_set(x_520, 3, x_519); -x_521 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_521, 0, x_520); -lean_ctor_set(x_521, 1, x_489); -if (lean_is_scalar(x_490)) { - x_522 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_710, 0, x_653); +lean_ctor_set(x_710, 1, x_644); +lean_ctor_set(x_710, 2, x_654); +lean_ctor_set(x_710, 3, x_709); +x_711 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_711, 0, x_710); +lean_ctor_set(x_711, 1, x_651); +if (lean_is_scalar(x_652)) { + x_712 = lean_alloc_ctor(0, 2, 0); } else { - x_522 = x_490; + x_712 = x_652; } -lean_ctor_set(x_522, 0, x_518); -lean_ctor_set(x_522, 1, x_521); -if (lean_is_scalar(x_487)) { - x_523 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_712, 0, x_708); +lean_ctor_set(x_712, 1, x_711); +if (lean_is_scalar(x_649)) { + x_713 = lean_alloc_ctor(0, 2, 0); } else { - x_523 = x_487; + x_713 = x_649; } -lean_ctor_set(x_523, 0, x_517); -lean_ctor_set(x_523, 1, x_522); -if (lean_is_scalar(x_516)) { - x_524 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_713, 0, x_707); +lean_ctor_set(x_713, 1, x_712); +if (lean_is_scalar(x_706)) { + x_714 = lean_alloc_ctor(0, 2, 0); } else { - x_524 = x_516; + x_714 = x_706; } -lean_ctor_set(x_524, 0, x_523); -lean_ctor_set(x_524, 1, x_515); -x_467 = x_524; -goto block_475; +lean_ctor_set(x_714, 0, x_713); +lean_ctor_set(x_714, 1, x_705); +x_629 = x_714; +goto block_637; } else { -lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; -lean_dec(x_506); -lean_dec(x_493); -lean_dec(x_492); -lean_dec(x_491); -lean_dec(x_490); -lean_dec(x_489); -lean_dec(x_487); -lean_dec(x_486); -lean_dec(x_482); -x_525 = lean_ctor_get(x_513, 0); -lean_inc(x_525); -x_526 = lean_ctor_get(x_513, 1); -lean_inc(x_526); -if (lean_is_exclusive(x_513)) { - lean_ctor_release(x_513, 0); - lean_ctor_release(x_513, 1); - x_527 = x_513; +lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; +lean_dec(x_682); +lean_dec(x_655); +lean_dec(x_654); +lean_dec(x_653); +lean_dec(x_652); +lean_dec(x_651); +lean_dec(x_649); +lean_dec(x_648); +lean_dec(x_644); +x_715 = lean_ctor_get(x_703, 0); +lean_inc(x_715); +x_716 = lean_ctor_get(x_703, 1); +lean_inc(x_716); +if (lean_is_exclusive(x_703)) { + lean_ctor_release(x_703, 0); + lean_ctor_release(x_703, 1); + x_717 = x_703; } else { - lean_dec_ref(x_513); - x_527 = lean_box(0); + lean_dec_ref(x_703); + x_717 = lean_box(0); } -if (lean_is_scalar(x_527)) { - x_528 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_717)) { + x_718 = lean_alloc_ctor(1, 2, 0); } else { - x_528 = x_527; + x_718 = x_717; } -lean_ctor_set(x_528, 0, x_525); -lean_ctor_set(x_528, 1, x_526); -x_467 = x_528; -goto block_475; +lean_ctor_set(x_718, 0, x_715); +lean_ctor_set(x_718, 1, x_716); +x_629 = x_718; +goto block_637; } } else { -lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; -lean_dec(x_508); -lean_dec(x_507); -lean_dec(x_506); -lean_dec(x_493); -lean_dec(x_492); -lean_dec(x_491); -lean_dec(x_490); -lean_dec(x_489); -lean_dec(x_487); -lean_dec(x_486); -lean_dec(x_482); -x_529 = lean_ctor_get(x_510, 0); -lean_inc(x_529); -x_530 = lean_ctor_get(x_510, 1); -lean_inc(x_530); -if (lean_is_exclusive(x_510)) { - lean_ctor_release(x_510, 0); - lean_ctor_release(x_510, 1); - x_531 = x_510; +lean_object* x_719; lean_object* x_720; lean_object* x_721; lean_object* x_722; +lean_dec(x_684); +lean_dec(x_683); +lean_dec(x_682); +lean_dec(x_655); +lean_dec(x_654); +lean_dec(x_653); +lean_dec(x_652); +lean_dec(x_651); +lean_dec(x_649); +lean_dec(x_648); +lean_dec(x_644); +x_719 = lean_ctor_get(x_686, 0); +lean_inc(x_719); +x_720 = lean_ctor_get(x_686, 1); +lean_inc(x_720); +if (lean_is_exclusive(x_686)) { + lean_ctor_release(x_686, 0); + lean_ctor_release(x_686, 1); + x_721 = x_686; } else { - lean_dec_ref(x_510); - x_531 = lean_box(0); + lean_dec_ref(x_686); + x_721 = lean_box(0); } -if (lean_is_scalar(x_531)) { - x_532 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_721)) { + x_722 = lean_alloc_ctor(1, 2, 0); } else { - x_532 = x_531; + x_722 = x_721; } -lean_ctor_set(x_532, 0, x_529); -lean_ctor_set(x_532, 1, x_530); -x_467 = x_532; -goto block_475; +lean_ctor_set(x_722, 0, x_719); +lean_ctor_set(x_722, 1, x_720); +x_629 = x_722; +goto block_637; } } case 1: { -lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; -lean_dec(x_487); -x_533 = lean_ctor_get(x_496, 1); -lean_inc(x_533); -x_534 = lean_ctor_get(x_496, 2); -lean_inc(x_534); -lean_dec(x_496); -x_535 = lean_ctor_get(x_492, 0); -lean_inc(x_535); -if (lean_is_exclusive(x_492)) { - lean_ctor_release(x_492, 0); - x_536 = x_492; +lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_726; lean_object* x_727; lean_object* x_728; +lean_dec(x_649); +x_723 = lean_ctor_get(x_658, 1); +lean_inc(x_723); +x_724 = lean_ctor_get(x_658, 2); +lean_inc(x_724); +lean_dec(x_658); +x_725 = lean_ctor_get(x_654, 0); +lean_inc(x_725); +if (lean_is_exclusive(x_654)) { + lean_ctor_release(x_654, 0); + x_726 = x_654; } else { - lean_dec_ref(x_492); - x_536 = lean_box(0); + lean_dec_ref(x_654); + x_726 = lean_box(0); } -x_537 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_537, 0, x_533); +x_727 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_727, 0, x_723); lean_inc(x_4); -lean_inc(x_537); -lean_inc(x_535); -x_538 = l___private_Lean_Elab_StructInst_24__elabStruct___main(x_535, x_537, x_4, x_497); -if (lean_obj_tag(x_538) == 0) +lean_inc(x_727); +x_728 = l___private_Lean_Elab_StructInst_24__elabStruct___main(x_725, x_727, x_4, x_659); +if (lean_obj_tag(x_728) == 0) { -lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; -x_539 = lean_ctor_get(x_538, 0); -lean_inc(x_539); -x_540 = lean_ctor_get(x_538, 1); -lean_inc(x_540); -lean_dec(x_538); -x_541 = lean_ctor_get(x_539, 0); -lean_inc(x_541); -x_542 = lean_ctor_get(x_539, 1); -lean_inc(x_542); -if (lean_is_exclusive(x_539)) { - lean_ctor_release(x_539, 0); - lean_ctor_release(x_539, 1); - x_543 = x_539; +lean_object* x_729; lean_object* x_730; lean_object* x_731; lean_object* x_732; lean_object* x_733; lean_object* x_734; +x_729 = lean_ctor_get(x_728, 0); +lean_inc(x_729); +x_730 = lean_ctor_get(x_728, 1); +lean_inc(x_730); +lean_dec(x_728); +x_731 = lean_ctor_get(x_729, 0); +lean_inc(x_731); +x_732 = lean_ctor_get(x_729, 1); +lean_inc(x_732); +if (lean_is_exclusive(x_729)) { + lean_ctor_release(x_729, 0); + lean_ctor_release(x_729, 1); + x_733 = x_729; } else { - lean_dec_ref(x_539); - x_543 = lean_box(0); + lean_dec_ref(x_729); + x_733 = lean_box(0); } -x_544 = l_Lean_Elab_Term_StructInst_Struct_ref(x_535); -lean_dec(x_535); lean_inc(x_4); -x_545 = l_Lean_Elab_Term_ensureHasType(x_544, x_537, x_541, x_4, x_540); -if (lean_obj_tag(x_545) == 0) +x_734 = l_Lean_Elab_Term_ensureHasType(x_727, x_731, x_4, x_730); +if (lean_obj_tag(x_734) == 0) { -lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; -x_546 = lean_ctor_get(x_545, 0); -lean_inc(x_546); -x_547 = lean_ctor_get(x_545, 1); -lean_inc(x_547); -if (lean_is_exclusive(x_545)) { - lean_ctor_release(x_545, 0); - lean_ctor_release(x_545, 1); - x_548 = x_545; +lean_object* x_735; lean_object* x_736; lean_object* x_737; lean_object* x_738; lean_object* x_739; lean_object* x_740; lean_object* x_741; lean_object* x_742; lean_object* x_743; lean_object* x_744; lean_object* x_745; lean_object* x_746; +x_735 = lean_ctor_get(x_734, 0); +lean_inc(x_735); +x_736 = lean_ctor_get(x_734, 1); +lean_inc(x_736); +if (lean_is_exclusive(x_734)) { + lean_ctor_release(x_734, 0); + lean_ctor_release(x_734, 1); + x_737 = x_734; } else { - lean_dec_ref(x_545); - x_548 = lean_box(0); + lean_dec_ref(x_734); + x_737 = lean_box(0); } -if (lean_is_scalar(x_536)) { - x_549 = lean_alloc_ctor(1, 1, 0); +if (lean_is_scalar(x_726)) { + x_738 = lean_alloc_ctor(1, 1, 0); } else { - x_549 = x_536; + x_738 = x_726; } -lean_ctor_set(x_549, 0, x_542); -lean_inc(x_546); -x_550 = l_Lean_mkApp(x_486, x_546); -x_551 = lean_expr_instantiate1(x_534, x_546); -lean_dec(x_534); -x_552 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_552, 0, x_546); -if (lean_is_scalar(x_493)) { - x_553 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_738, 0, x_732); +lean_inc(x_735); +x_739 = l_Lean_mkApp(x_648, x_735); +x_740 = lean_expr_instantiate1(x_724, x_735); +lean_dec(x_724); +x_741 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_741, 0, x_735); +if (lean_is_scalar(x_655)) { + x_742 = lean_alloc_ctor(0, 4, 0); } else { - x_553 = x_493; + x_742 = x_655; } -lean_ctor_set(x_553, 0, x_491); -lean_ctor_set(x_553, 1, x_482); -lean_ctor_set(x_553, 2, x_549); -lean_ctor_set(x_553, 3, x_552); -x_554 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_554, 0, x_553); -lean_ctor_set(x_554, 1, x_489); -if (lean_is_scalar(x_543)) { - x_555 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_742, 0, x_653); +lean_ctor_set(x_742, 1, x_644); +lean_ctor_set(x_742, 2, x_738); +lean_ctor_set(x_742, 3, x_741); +x_743 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_743, 0, x_742); +lean_ctor_set(x_743, 1, x_651); +if (lean_is_scalar(x_733)) { + x_744 = lean_alloc_ctor(0, 2, 0); } else { - x_555 = x_543; + x_744 = x_733; } -lean_ctor_set(x_555, 0, x_551); -lean_ctor_set(x_555, 1, x_554); -if (lean_is_scalar(x_490)) { - x_556 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_744, 0, x_740); +lean_ctor_set(x_744, 1, x_743); +if (lean_is_scalar(x_652)) { + x_745 = lean_alloc_ctor(0, 2, 0); } else { - x_556 = x_490; + x_745 = x_652; } -lean_ctor_set(x_556, 0, x_550); -lean_ctor_set(x_556, 1, x_555); -if (lean_is_scalar(x_548)) { - x_557 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_745, 0, x_739); +lean_ctor_set(x_745, 1, x_744); +if (lean_is_scalar(x_737)) { + x_746 = lean_alloc_ctor(0, 2, 0); } else { - x_557 = x_548; + x_746 = x_737; } -lean_ctor_set(x_557, 0, x_556); -lean_ctor_set(x_557, 1, x_547); -x_467 = x_557; -goto block_475; +lean_ctor_set(x_746, 0, x_745); +lean_ctor_set(x_746, 1, x_736); +x_629 = x_746; +goto block_637; } else { -lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; -lean_dec(x_543); -lean_dec(x_542); -lean_dec(x_536); -lean_dec(x_534); -lean_dec(x_493); -lean_dec(x_491); -lean_dec(x_490); -lean_dec(x_489); -lean_dec(x_486); -lean_dec(x_482); -x_558 = lean_ctor_get(x_545, 0); -lean_inc(x_558); -x_559 = lean_ctor_get(x_545, 1); -lean_inc(x_559); -if (lean_is_exclusive(x_545)) { - lean_ctor_release(x_545, 0); - lean_ctor_release(x_545, 1); - x_560 = x_545; +lean_object* x_747; lean_object* x_748; lean_object* x_749; lean_object* x_750; +lean_dec(x_733); +lean_dec(x_732); +lean_dec(x_726); +lean_dec(x_724); +lean_dec(x_655); +lean_dec(x_653); +lean_dec(x_652); +lean_dec(x_651); +lean_dec(x_648); +lean_dec(x_644); +x_747 = lean_ctor_get(x_734, 0); +lean_inc(x_747); +x_748 = lean_ctor_get(x_734, 1); +lean_inc(x_748); +if (lean_is_exclusive(x_734)) { + lean_ctor_release(x_734, 0); + lean_ctor_release(x_734, 1); + x_749 = x_734; } else { - lean_dec_ref(x_545); - x_560 = lean_box(0); + lean_dec_ref(x_734); + x_749 = lean_box(0); } -if (lean_is_scalar(x_560)) { - x_561 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_749)) { + x_750 = lean_alloc_ctor(1, 2, 0); } else { - x_561 = x_560; + x_750 = x_749; } -lean_ctor_set(x_561, 0, x_558); -lean_ctor_set(x_561, 1, x_559); -x_467 = x_561; -goto block_475; +lean_ctor_set(x_750, 0, x_747); +lean_ctor_set(x_750, 1, x_748); +x_629 = x_750; +goto block_637; } } else { -lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; -lean_dec(x_537); -lean_dec(x_536); -lean_dec(x_535); -lean_dec(x_534); -lean_dec(x_493); -lean_dec(x_491); -lean_dec(x_490); -lean_dec(x_489); -lean_dec(x_486); -lean_dec(x_482); -x_562 = lean_ctor_get(x_538, 0); -lean_inc(x_562); -x_563 = lean_ctor_get(x_538, 1); -lean_inc(x_563); -if (lean_is_exclusive(x_538)) { - lean_ctor_release(x_538, 0); - lean_ctor_release(x_538, 1); - x_564 = x_538; +lean_object* x_751; lean_object* x_752; lean_object* x_753; lean_object* x_754; +lean_dec(x_727); +lean_dec(x_726); +lean_dec(x_724); +lean_dec(x_655); +lean_dec(x_653); +lean_dec(x_652); +lean_dec(x_651); +lean_dec(x_648); +lean_dec(x_644); +x_751 = lean_ctor_get(x_728, 0); +lean_inc(x_751); +x_752 = lean_ctor_get(x_728, 1); +lean_inc(x_752); +if (lean_is_exclusive(x_728)) { + lean_ctor_release(x_728, 0); + lean_ctor_release(x_728, 1); + x_753 = x_728; } else { - lean_dec_ref(x_538); - x_564 = lean_box(0); + lean_dec_ref(x_728); + x_753 = lean_box(0); } -if (lean_is_scalar(x_564)) { - x_565 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_753)) { + x_754 = lean_alloc_ctor(1, 2, 0); } else { - x_565 = x_564; + x_754 = x_753; } -lean_ctor_set(x_565, 0, x_562); -lean_ctor_set(x_565, 1, x_563); -x_467 = x_565; -goto block_475; +lean_ctor_set(x_754, 0, x_751); +lean_ctor_set(x_754, 1, x_752); +x_629 = x_754; +goto block_637; } } default: { -lean_object* x_566; lean_object* x_567; lean_object* x_568; uint8_t x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; -x_566 = lean_ctor_get(x_496, 1); -lean_inc(x_566); -x_567 = lean_ctor_get(x_496, 2); -lean_inc(x_567); -lean_dec(x_496); -x_568 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_568, 0, x_566); -x_569 = 0; -x_570 = lean_box(0); -lean_inc(x_4); -x_571 = l_Lean_Elab_Term_mkFreshExprMVar(x_491, x_568, x_569, x_570, x_4, x_497); -x_572 = lean_ctor_get(x_571, 0); -lean_inc(x_572); -x_573 = lean_ctor_get(x_571, 1); -lean_inc(x_573); -if (lean_is_exclusive(x_571)) { - lean_ctor_release(x_571, 0); - lean_ctor_release(x_571, 1); - x_574 = x_571; +lean_object* x_755; lean_object* x_756; lean_object* x_757; lean_object* x_758; lean_object* x_759; lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; lean_object* x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; uint8_t x_768; uint8_t x_769; uint8_t x_770; lean_object* x_771; uint8_t x_772; lean_object* x_773; lean_object* x_774; lean_object* x_775; lean_object* x_776; lean_object* x_777; lean_object* x_778; lean_object* x_779; lean_object* x_780; lean_object* x_781; lean_object* x_782; lean_object* x_783; lean_object* x_784; lean_object* x_785; lean_object* x_786; +x_755 = lean_ctor_get(x_658, 1); +lean_inc(x_755); +x_756 = lean_ctor_get(x_658, 2); +lean_inc(x_756); +lean_dec(x_658); +x_757 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_757, 0, x_755); +x_758 = lean_ctor_get(x_4, 0); +lean_inc(x_758); +x_759 = lean_ctor_get(x_4, 1); +lean_inc(x_759); +x_760 = lean_ctor_get(x_4, 2); +lean_inc(x_760); +x_761 = lean_ctor_get(x_4, 3); +lean_inc(x_761); +x_762 = lean_ctor_get(x_4, 4); +lean_inc(x_762); +x_763 = lean_ctor_get(x_4, 5); +lean_inc(x_763); +x_764 = lean_ctor_get(x_4, 6); +lean_inc(x_764); +x_765 = lean_ctor_get(x_4, 7); +lean_inc(x_765); +x_766 = lean_ctor_get(x_4, 8); +lean_inc(x_766); +x_767 = lean_ctor_get(x_4, 9); +lean_inc(x_767); +x_768 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_769 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_770 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +lean_inc(x_653); +x_771 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_771, 0, x_758); +lean_ctor_set(x_771, 1, x_759); +lean_ctor_set(x_771, 2, x_760); +lean_ctor_set(x_771, 3, x_761); +lean_ctor_set(x_771, 4, x_762); +lean_ctor_set(x_771, 5, x_763); +lean_ctor_set(x_771, 6, x_764); +lean_ctor_set(x_771, 7, x_765); +lean_ctor_set(x_771, 8, x_766); +lean_ctor_set(x_771, 9, x_767); +lean_ctor_set(x_771, 10, x_653); +lean_ctor_set_uint8(x_771, sizeof(void*)*11, x_768); +lean_ctor_set_uint8(x_771, sizeof(void*)*11 + 1, x_769); +lean_ctor_set_uint8(x_771, sizeof(void*)*11 + 2, x_770); +x_772 = 0; +x_773 = lean_box(0); +x_774 = l_Lean_Elab_Term_mkFreshExprMVar(x_757, x_772, x_773, x_771, x_659); +x_775 = lean_ctor_get(x_774, 0); +lean_inc(x_775); +x_776 = lean_ctor_get(x_774, 1); +lean_inc(x_776); +if (lean_is_exclusive(x_774)) { + lean_ctor_release(x_774, 0); + lean_ctor_release(x_774, 1); + x_777 = x_774; } else { - lean_dec_ref(x_571); - x_574 = lean_box(0); + lean_dec_ref(x_774); + x_777 = lean_box(0); } -x_575 = l_Lean_Elab_Term_StructInst_markDefaultMissing(x_572); -lean_inc(x_575); -x_576 = l_Lean_mkApp(x_486, x_575); -x_577 = lean_expr_instantiate1(x_567, x_575); -lean_dec(x_567); -x_578 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_578, 0, x_575); -if (lean_is_scalar(x_493)) { - x_579 = lean_alloc_ctor(0, 4, 0); +x_778 = l_Lean_Elab_Term_StructInst_markDefaultMissing(x_775); +lean_inc(x_778); +x_779 = l_Lean_mkApp(x_648, x_778); +x_780 = lean_expr_instantiate1(x_756, x_778); +lean_dec(x_756); +x_781 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_781, 0, x_778); +if (lean_is_scalar(x_655)) { + x_782 = lean_alloc_ctor(0, 4, 0); } else { - x_579 = x_493; + x_782 = x_655; } -lean_ctor_set(x_579, 0, x_491); -lean_ctor_set(x_579, 1, x_482); -lean_ctor_set(x_579, 2, x_492); -lean_ctor_set(x_579, 3, x_578); -x_580 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_580, 0, x_579); -lean_ctor_set(x_580, 1, x_489); -if (lean_is_scalar(x_490)) { - x_581 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_782, 0, x_653); +lean_ctor_set(x_782, 1, x_644); +lean_ctor_set(x_782, 2, x_654); +lean_ctor_set(x_782, 3, x_781); +x_783 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_783, 0, x_782); +lean_ctor_set(x_783, 1, x_651); +if (lean_is_scalar(x_652)) { + x_784 = lean_alloc_ctor(0, 2, 0); } else { - x_581 = x_490; + x_784 = x_652; } -lean_ctor_set(x_581, 0, x_577); -lean_ctor_set(x_581, 1, x_580); -if (lean_is_scalar(x_487)) { - x_582 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_784, 0, x_780); +lean_ctor_set(x_784, 1, x_783); +if (lean_is_scalar(x_649)) { + x_785 = lean_alloc_ctor(0, 2, 0); } else { - x_582 = x_487; + x_785 = x_649; } -lean_ctor_set(x_582, 0, x_576); -lean_ctor_set(x_582, 1, x_581); -if (lean_is_scalar(x_574)) { - x_583 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_785, 0, x_779); +lean_ctor_set(x_785, 1, x_784); +if (lean_is_scalar(x_777)) { + x_786 = lean_alloc_ctor(0, 2, 0); } else { - x_583 = x_574; + x_786 = x_777; } -lean_ctor_set(x_583, 0, x_582); -lean_ctor_set(x_583, 1, x_573); -x_467 = x_583; -goto block_475; +lean_ctor_set(x_786, 0, x_785); +lean_ctor_set(x_786, 1, x_776); +x_629 = x_786; +goto block_637; } } } else { -lean_object* x_584; -lean_dec(x_493); -lean_dec(x_492); -lean_dec(x_490); -lean_dec(x_489); -lean_dec(x_487); -lean_dec(x_486); -lean_dec(x_482); -x_584 = lean_box(0); -x_498 = x_584; -goto block_504; +lean_object* x_787; +lean_dec(x_655); +lean_dec(x_654); +lean_dec(x_652); +lean_dec(x_651); +lean_dec(x_649); +lean_dec(x_648); +lean_dec(x_644); +x_787 = lean_box(0); +x_660 = x_787; +goto block_680; } -block_504: +block_680: { -lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; -lean_dec(x_498); -x_499 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_499, 0, x_496); -x_500 = l_Lean_indentExpr(x_499); -x_501 = l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___closed__3; -x_502 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_502, 0, x_501); -lean_ctor_set(x_502, 1, x_500); -lean_inc(x_4); +lean_object* x_661; lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; lean_object* x_674; uint8_t x_675; uint8_t x_676; uint8_t x_677; lean_object* x_678; lean_object* x_679; +lean_dec(x_660); +x_661 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_661, 0, x_658); +x_662 = l_Lean_indentExpr(x_661); +x_663 = l___private_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___closed__3; +x_664 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_664, 0, x_663); +lean_ctor_set(x_664, 1, x_662); +x_665 = lean_ctor_get(x_4, 0); +lean_inc(x_665); +x_666 = lean_ctor_get(x_4, 1); +lean_inc(x_666); +x_667 = lean_ctor_get(x_4, 2); +lean_inc(x_667); +x_668 = lean_ctor_get(x_4, 3); +lean_inc(x_668); +x_669 = lean_ctor_get(x_4, 4); +lean_inc(x_669); +x_670 = lean_ctor_get(x_4, 5); +lean_inc(x_670); +x_671 = lean_ctor_get(x_4, 6); +lean_inc(x_671); +x_672 = lean_ctor_get(x_4, 7); +lean_inc(x_672); +x_673 = lean_ctor_get(x_4, 8); +lean_inc(x_673); +x_674 = lean_ctor_get(x_4, 9); +lean_inc(x_674); +x_675 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_676 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_677 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +x_678 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_678, 0, x_665); +lean_ctor_set(x_678, 1, x_666); +lean_ctor_set(x_678, 2, x_667); +lean_ctor_set(x_678, 3, x_668); +lean_ctor_set(x_678, 4, x_669); +lean_ctor_set(x_678, 5, x_670); +lean_ctor_set(x_678, 6, x_671); +lean_ctor_set(x_678, 7, x_672); +lean_ctor_set(x_678, 8, x_673); +lean_ctor_set(x_678, 9, x_674); +lean_ctor_set(x_678, 10, x_653); +lean_ctor_set_uint8(x_678, sizeof(void*)*11, x_675); +lean_ctor_set_uint8(x_678, sizeof(void*)*11 + 1, x_676); +lean_ctor_set_uint8(x_678, sizeof(void*)*11 + 2, x_677); lean_inc(x_1); -x_503 = l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg(x_491, x_494, x_1, x_502, x_4, x_497); -lean_dec(x_491); -x_467 = x_503; -goto block_475; +x_679 = l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg(x_656, x_1, x_664, x_678, x_659); +x_629 = x_679; +goto block_637; } } else { -lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; -lean_dec(x_494); -lean_dec(x_493); -lean_dec(x_492); -lean_dec(x_491); -lean_dec(x_490); -lean_dec(x_489); -lean_dec(x_487); -lean_dec(x_486); -lean_dec(x_482); -x_585 = lean_ctor_get(x_495, 0); -lean_inc(x_585); -x_586 = lean_ctor_get(x_495, 1); -lean_inc(x_586); -if (lean_is_exclusive(x_495)) { - lean_ctor_release(x_495, 0); - lean_ctor_release(x_495, 1); - x_587 = x_495; +lean_object* x_788; lean_object* x_789; lean_object* x_790; lean_object* x_791; +lean_dec(x_656); +lean_dec(x_655); +lean_dec(x_654); +lean_dec(x_653); +lean_dec(x_652); +lean_dec(x_651); +lean_dec(x_649); +lean_dec(x_648); +lean_dec(x_644); +x_788 = lean_ctor_get(x_657, 0); +lean_inc(x_788); +x_789 = lean_ctor_get(x_657, 1); +lean_inc(x_789); +if (lean_is_exclusive(x_657)) { + lean_ctor_release(x_657, 0); + lean_ctor_release(x_657, 1); + x_790 = x_657; } else { - lean_dec_ref(x_495); - x_587 = lean_box(0); + lean_dec_ref(x_657); + x_790 = lean_box(0); } -if (lean_is_scalar(x_587)) { - x_588 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_790)) { + x_791 = lean_alloc_ctor(1, 2, 0); } else { - x_588 = x_587; + x_791 = x_790; } -lean_ctor_set(x_588, 0, x_585); -lean_ctor_set(x_588, 1, x_586); -x_467 = x_588; -goto block_475; +lean_ctor_set(x_791, 0, x_788); +lean_ctor_set(x_791, 1, x_789); +x_629 = x_791; +goto block_637; } } else { -lean_object* x_589; -lean_dec(x_485); -lean_dec(x_484); -lean_dec(x_482); -lean_dec(x_481); +lean_object* x_792; +lean_dec(x_647); +lean_dec(x_646); +lean_dec(x_644); +lean_dec(x_643); lean_dec(x_2); -x_589 = lean_box(0); -x_476 = x_589; -goto block_480; +x_792 = lean_box(0); +x_638 = x_792; +goto block_642; } } else { -lean_object* x_590; -lean_dec(x_484); -lean_dec(x_482); -lean_dec(x_481); +lean_object* x_793; +lean_dec(x_646); +lean_dec(x_644); +lean_dec(x_643); lean_dec(x_2); -x_590 = lean_box(0); -x_476 = x_590; -goto block_480; +x_793 = lean_box(0); +x_638 = x_793; +goto block_642; } } -block_475: +block_637: { -if (lean_obj_tag(x_467) == 0) +if (lean_obj_tag(x_629) == 0) { -lean_object* x_468; lean_object* x_469; -x_468 = lean_ctor_get(x_467, 0); -lean_inc(x_468); -x_469 = lean_ctor_get(x_467, 1); -lean_inc(x_469); -lean_dec(x_467); -x_2 = x_468; -x_3 = x_466; -x_5 = x_469; +lean_object* x_630; lean_object* x_631; +x_630 = lean_ctor_get(x_629, 0); +lean_inc(x_630); +x_631 = lean_ctor_get(x_629, 1); +lean_inc(x_631); +lean_dec(x_629); +x_2 = x_630; +x_3 = x_628; +x_5 = x_631; goto _start; } else { -lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; -lean_dec(x_466); +lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; +lean_dec(x_628); lean_dec(x_4); lean_dec(x_1); -x_471 = lean_ctor_get(x_467, 0); -lean_inc(x_471); -x_472 = lean_ctor_get(x_467, 1); -lean_inc(x_472); -if (lean_is_exclusive(x_467)) { - lean_ctor_release(x_467, 0); - lean_ctor_release(x_467, 1); - x_473 = x_467; +x_633 = lean_ctor_get(x_629, 0); +lean_inc(x_633); +x_634 = lean_ctor_get(x_629, 1); +lean_inc(x_634); +if (lean_is_exclusive(x_629)) { + lean_ctor_release(x_629, 0); + lean_ctor_release(x_629, 1); + x_635 = x_629; } else { - lean_dec_ref(x_467); - x_473 = lean_box(0); + lean_dec_ref(x_629); + x_635 = lean_box(0); } -if (lean_is_scalar(x_473)) { - x_474 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_635)) { + x_636 = lean_alloc_ctor(1, 2, 0); } else { - x_474 = x_473; + x_636 = x_635; } -lean_ctor_set(x_474, 0, x_471); -lean_ctor_set(x_474, 1, x_472); -return x_474; +lean_ctor_set(x_636, 0, x_633); +lean_ctor_set(x_636, 1, x_634); +return x_636; } } -block_480: +block_642: { -lean_object* x_477; lean_object* x_478; lean_object* x_479; -lean_dec(x_476); -x_477 = lean_ctor_get(x_465, 0); -lean_inc(x_477); -lean_dec(x_465); -x_478 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_24__elabStruct___main___spec__1___closed__3; +lean_object* x_639; lean_object* x_640; lean_object* x_641; +lean_dec(x_638); +x_639 = lean_ctor_get(x_627, 0); +lean_inc(x_639); +lean_dec(x_627); +x_640 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_24__elabStruct___main___spec__1___closed__3; lean_inc(x_4); -x_479 = l_Lean_Elab_Term_throwError___rarg(x_477, x_478, x_4, x_5); -lean_dec(x_477); -x_467 = x_479; -goto block_475; +x_641 = l_Lean_Elab_Term_throwErrorAt___rarg(x_639, x_640, x_4, x_5); +lean_dec(x_639); +x_629 = x_641; +goto block_637; } } } @@ -19651,167 +20635,352 @@ goto block_475; lean_object* l___private_Lean_Elab_StructInst_24__elabStruct___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_5 = l_Lean_Elab_Term_getEnv___rarg(x_4); -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = lean_ctor_get(x_5, 1); -lean_inc(x_7); -lean_dec(x_5); -x_8 = l_Lean_Elab_Term_StructInst_Struct_structName(x_1); -lean_inc(x_8); -x_9 = l_Lean_getStructureCtor(x_6, x_8); -x_10 = l_Lean_Elab_Term_StructInst_Struct_ref(x_1); +lean_object* x_5; uint8_t x_6; +x_5 = l_Lean_Elab_Term_StructInst_Struct_ref(x_1); +x_6 = !lean_is_exclusive(x_3); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_7 = lean_ctor_get(x_3, 10); +lean_dec(x_7); +lean_ctor_set(x_3, 10, x_5); +x_8 = l_Lean_Elab_Term_getEnv___rarg(x_4); +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 = l_Lean_Elab_Term_StructInst_Struct_structName(x_1); +lean_inc(x_11); +x_12 = l_Lean_getStructureCtor(x_9, x_11); lean_inc(x_3); -x_11 = l___private_Lean_Elab_StructInst_23__mkCtorHeader(x_10, x_9, x_2, x_3, x_7); -if (lean_obj_tag(x_11) == 0) +x_13 = l___private_Lean_Elab_StructInst_23__mkCtorHeader(x_12, x_2, x_3, x_10); +if (lean_obj_tag(x_13) == 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; lean_object* x_18; lean_object* x_19; lean_object* x_20; -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_ctor_get(x_12, 0); +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_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); -x_15 = lean_ctor_get(x_12, 1); +x_15 = lean_ctor_get(x_13, 1); lean_inc(x_15); -lean_dec(x_12); -x_16 = lean_box(0); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_15); -lean_ctor_set(x_17, 1, x_16); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_14); -lean_ctor_set(x_18, 1, x_17); -x_19 = l_Lean_Elab_Term_StructInst_Struct_fields(x_1); -x_20 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_24__elabStruct___main___spec__1(x_8, x_18, x_19, x_3, x_13); -if (lean_obj_tag(x_20) == 0) +lean_dec(x_13); +x_16 = lean_ctor_get(x_14, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_14, 1); +lean_inc(x_17); +lean_dec(x_14); +x_18 = lean_box(0); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_16); +lean_ctor_set(x_20, 1, x_19); +x_21 = l_Lean_Elab_Term_StructInst_Struct_fields(x_1); +x_22 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_24__elabStruct___main___spec__1(x_11, x_20, x_21, x_3, x_15); +if (lean_obj_tag(x_22) == 0) { -lean_object* x_21; lean_object* x_22; uint8_t x_23; -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -x_22 = lean_ctor_get(x_21, 1); -lean_inc(x_22); -x_23 = !lean_is_exclusive(x_20); -if (x_23 == 0) +lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_23, 1); +lean_inc(x_24); +x_25 = !lean_is_exclusive(x_22); +if (x_25 == 0) { -lean_object* x_24; lean_object* x_25; uint8_t x_26; -x_24 = lean_ctor_get(x_20, 0); +lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_26 = lean_ctor_get(x_22, 0); +lean_dec(x_26); +x_27 = lean_ctor_get(x_23, 0); +lean_inc(x_27); +lean_dec(x_23); +x_28 = !lean_is_exclusive(x_24); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_29 = lean_ctor_get(x_24, 1); +x_30 = lean_ctor_get(x_24, 0); +lean_dec(x_30); +x_31 = l_List_reverse___rarg(x_29); +x_32 = l_Lean_Elab_Term_StructInst_Struct_setFields(x_1, x_31); +lean_ctor_set(x_24, 1, x_32); +lean_ctor_set(x_24, 0, x_27); +lean_ctor_set(x_22, 0, x_24); +return x_22; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_33 = lean_ctor_get(x_24, 1); +lean_inc(x_33); lean_dec(x_24); -x_25 = lean_ctor_get(x_21, 0); -lean_inc(x_25); -lean_dec(x_21); -x_26 = !lean_is_exclusive(x_22); -if (x_26 == 0) -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_27 = lean_ctor_get(x_22, 1); -x_28 = lean_ctor_get(x_22, 0); -lean_dec(x_28); -x_29 = l_List_reverse___rarg(x_27); -x_30 = l_Lean_Elab_Term_StructInst_Struct_setFields(x_1, x_29); -lean_ctor_set(x_22, 1, x_30); -lean_ctor_set(x_22, 0, x_25); -lean_ctor_set(x_20, 0, x_22); -return x_20; -} -else -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_31 = lean_ctor_get(x_22, 1); -lean_inc(x_31); -lean_dec(x_22); -x_32 = l_List_reverse___rarg(x_31); -x_33 = l_Lean_Elab_Term_StructInst_Struct_setFields(x_1, x_32); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_25); -lean_ctor_set(x_34, 1, x_33); -lean_ctor_set(x_20, 0, x_34); -return x_20; +x_34 = l_List_reverse___rarg(x_33); +x_35 = l_Lean_Elab_Term_StructInst_Struct_setFields(x_1, x_34); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_27); +lean_ctor_set(x_36, 1, x_35); +lean_ctor_set(x_22, 0, x_36); +return x_22; } } else { -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_35 = lean_ctor_get(x_20, 1); -lean_inc(x_35); -lean_dec(x_20); -x_36 = lean_ctor_get(x_21, 0); -lean_inc(x_36); -lean_dec(x_21); +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; x_37 = lean_ctor_get(x_22, 1); lean_inc(x_37); -if (lean_is_exclusive(x_22)) { - lean_ctor_release(x_22, 0); - lean_ctor_release(x_22, 1); - x_38 = x_22; +lean_dec(x_22); +x_38 = lean_ctor_get(x_23, 0); +lean_inc(x_38); +lean_dec(x_23); +x_39 = lean_ctor_get(x_24, 1); +lean_inc(x_39); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + lean_ctor_release(x_24, 1); + x_40 = x_24; } else { - lean_dec_ref(x_22); - x_38 = lean_box(0); + lean_dec_ref(x_24); + x_40 = lean_box(0); } -x_39 = l_List_reverse___rarg(x_37); -x_40 = l_Lean_Elab_Term_StructInst_Struct_setFields(x_1, x_39); -if (lean_is_scalar(x_38)) { - x_41 = lean_alloc_ctor(0, 2, 0); +x_41 = l_List_reverse___rarg(x_39); +x_42 = l_Lean_Elab_Term_StructInst_Struct_setFields(x_1, x_41); +if (lean_is_scalar(x_40)) { + x_43 = lean_alloc_ctor(0, 2, 0); } else { - x_41 = x_38; + x_43 = x_40; } -lean_ctor_set(x_41, 0, x_36); -lean_ctor_set(x_41, 1, x_40); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_35); -return x_42; +lean_ctor_set(x_43, 0, x_38); +lean_ctor_set(x_43, 1, x_42); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_37); +return x_44; } } else { -uint8_t x_43; +uint8_t x_45; lean_dec(x_1); -x_43 = !lean_is_exclusive(x_20); -if (x_43 == 0) +x_45 = !lean_is_exclusive(x_22); +if (x_45 == 0) { -return x_20; +return x_22; } else { -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_20, 0); -x_45 = lean_ctor_get(x_20, 1); -lean_inc(x_45); -lean_inc(x_44); -lean_dec(x_20); -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; +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_22, 0); +x_47 = lean_ctor_get(x_22, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_22); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; } } } else { -uint8_t x_47; -lean_dec(x_8); +uint8_t x_49; +lean_dec(x_11); lean_dec(x_3); lean_dec(x_1); -x_47 = !lean_is_exclusive(x_11); -if (x_47 == 0) +x_49 = !lean_is_exclusive(x_13); +if (x_49 == 0) { -return x_11; +return x_13; } else { -lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_48 = lean_ctor_get(x_11, 0); -x_49 = lean_ctor_get(x_11, 1); -lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_11); -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; +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_13, 0); +x_51 = lean_ctor_get(x_13, 1); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_13); +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +return x_52; +} +} +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; uint8_t x_64; uint8_t x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_53 = lean_ctor_get(x_3, 0); +x_54 = lean_ctor_get(x_3, 1); +x_55 = lean_ctor_get(x_3, 2); +x_56 = lean_ctor_get(x_3, 3); +x_57 = lean_ctor_get(x_3, 4); +x_58 = lean_ctor_get(x_3, 5); +x_59 = lean_ctor_get(x_3, 6); +x_60 = lean_ctor_get(x_3, 7); +x_61 = lean_ctor_get(x_3, 8); +x_62 = lean_ctor_get(x_3, 9); +x_63 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_64 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_65 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +lean_inc(x_62); +lean_inc(x_61); +lean_inc(x_60); +lean_inc(x_59); +lean_inc(x_58); +lean_inc(x_57); +lean_inc(x_56); +lean_inc(x_55); +lean_inc(x_54); +lean_inc(x_53); +lean_dec(x_3); +x_66 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_66, 0, x_53); +lean_ctor_set(x_66, 1, x_54); +lean_ctor_set(x_66, 2, x_55); +lean_ctor_set(x_66, 3, x_56); +lean_ctor_set(x_66, 4, x_57); +lean_ctor_set(x_66, 5, x_58); +lean_ctor_set(x_66, 6, x_59); +lean_ctor_set(x_66, 7, x_60); +lean_ctor_set(x_66, 8, x_61); +lean_ctor_set(x_66, 9, x_62); +lean_ctor_set(x_66, 10, x_5); +lean_ctor_set_uint8(x_66, sizeof(void*)*11, x_63); +lean_ctor_set_uint8(x_66, sizeof(void*)*11 + 1, x_64); +lean_ctor_set_uint8(x_66, sizeof(void*)*11 + 2, x_65); +x_67 = l_Lean_Elab_Term_getEnv___rarg(x_4); +x_68 = lean_ctor_get(x_67, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_67, 1); +lean_inc(x_69); +lean_dec(x_67); +x_70 = l_Lean_Elab_Term_StructInst_Struct_structName(x_1); +lean_inc(x_70); +x_71 = l_Lean_getStructureCtor(x_68, x_70); +lean_inc(x_66); +x_72 = l___private_Lean_Elab_StructInst_23__mkCtorHeader(x_71, x_2, x_66, x_69); +if (lean_obj_tag(x_72) == 0) +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_73 = lean_ctor_get(x_72, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_72, 1); +lean_inc(x_74); +lean_dec(x_72); +x_75 = lean_ctor_get(x_73, 0); +lean_inc(x_75); +x_76 = lean_ctor_get(x_73, 1); +lean_inc(x_76); +lean_dec(x_73); +x_77 = lean_box(0); +x_78 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_78, 0, x_76); +lean_ctor_set(x_78, 1, x_77); +x_79 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_79, 0, x_75); +lean_ctor_set(x_79, 1, x_78); +x_80 = l_Lean_Elab_Term_StructInst_Struct_fields(x_1); +x_81 = l_List_foldlM___main___at___private_Lean_Elab_StructInst_24__elabStruct___main___spec__1(x_70, x_79, x_80, x_66, x_74); +if (lean_obj_tag(x_81) == 0) +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; +x_82 = lean_ctor_get(x_81, 0); +lean_inc(x_82); +x_83 = lean_ctor_get(x_82, 1); +lean_inc(x_83); +x_84 = lean_ctor_get(x_81, 1); +lean_inc(x_84); +if (lean_is_exclusive(x_81)) { + lean_ctor_release(x_81, 0); + lean_ctor_release(x_81, 1); + x_85 = x_81; +} else { + lean_dec_ref(x_81); + x_85 = lean_box(0); +} +x_86 = lean_ctor_get(x_82, 0); +lean_inc(x_86); +lean_dec(x_82); +x_87 = lean_ctor_get(x_83, 1); +lean_inc(x_87); +if (lean_is_exclusive(x_83)) { + lean_ctor_release(x_83, 0); + lean_ctor_release(x_83, 1); + x_88 = x_83; +} else { + lean_dec_ref(x_83); + x_88 = lean_box(0); +} +x_89 = l_List_reverse___rarg(x_87); +x_90 = l_Lean_Elab_Term_StructInst_Struct_setFields(x_1, x_89); +if (lean_is_scalar(x_88)) { + x_91 = lean_alloc_ctor(0, 2, 0); +} else { + x_91 = x_88; +} +lean_ctor_set(x_91, 0, x_86); +lean_ctor_set(x_91, 1, x_90); +if (lean_is_scalar(x_85)) { + x_92 = lean_alloc_ctor(0, 2, 0); +} else { + x_92 = x_85; +} +lean_ctor_set(x_92, 0, x_91); +lean_ctor_set(x_92, 1, x_84); +return x_92; +} +else +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; +lean_dec(x_1); +x_93 = lean_ctor_get(x_81, 0); +lean_inc(x_93); +x_94 = lean_ctor_get(x_81, 1); +lean_inc(x_94); +if (lean_is_exclusive(x_81)) { + lean_ctor_release(x_81, 0); + lean_ctor_release(x_81, 1); + x_95 = x_81; +} else { + lean_dec_ref(x_81); + x_95 = lean_box(0); +} +if (lean_is_scalar(x_95)) { + x_96 = lean_alloc_ctor(1, 2, 0); +} else { + x_96 = x_95; +} +lean_ctor_set(x_96, 0, x_93); +lean_ctor_set(x_96, 1, x_94); +return x_96; +} +} +else +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; +lean_dec(x_70); +lean_dec(x_66); +lean_dec(x_1); +x_97 = lean_ctor_get(x_72, 0); +lean_inc(x_97); +x_98 = lean_ctor_get(x_72, 1); +lean_inc(x_98); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_99 = x_72; +} else { + lean_dec_ref(x_72); + 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); +return x_100; } } } @@ -20320,7 +21489,7 @@ _start: lean_object* x_5; if (lean_obj_tag(x_2) == 6) { -lean_object* x_15; lean_object* x_16; lean_object* x_17; uint64_t x_18; lean_object* x_19; uint8_t x_20; uint8_t x_21; +lean_object* x_15; lean_object* x_16; lean_object* x_17; uint64_t x_18; lean_object* x_19; uint8_t x_20; uint8_t x_21; uint8_t x_22; x_15 = lean_ctor_get(x_2, 0); lean_inc(x_15); x_16 = lean_ctor_get(x_2, 1); @@ -20332,166 +21501,169 @@ lean_dec(x_2); x_19 = l_Lean_Elab_Term_StructInst_Struct_ref(x_1); x_20 = (uint8_t)((x_18 << 24) >> 61); x_21 = l_Lean_BinderInfo_isExplicit(x_20); +x_22 = !lean_is_exclusive(x_3); +if (x_22 == 0) +{ +lean_object* x_23; +x_23 = lean_ctor_get(x_3, 10); +lean_dec(x_23); +lean_ctor_set(x_3, 10, x_19); if (x_21 == 0) { -lean_object* x_22; uint8_t 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_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_dec(x_15); -x_22 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_22, 0, x_16); -x_23 = 0; -x_24 = lean_box(0); +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_16); +x_25 = 0; +x_26 = lean_box(0); lean_inc(x_3); -x_25 = l_Lean_Elab_Term_mkFreshExprMVar(x_19, x_22, x_23, x_24, x_3, x_4); -lean_dec(x_19); -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); -x_28 = lean_expr_instantiate1(x_17, x_26); -lean_dec(x_26); +x_27 = l_Lean_Elab_Term_mkFreshExprMVar(x_24, x_25, x_26, x_3, x_4); +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); +lean_dec(x_27); +x_30 = lean_expr_instantiate1(x_17, x_28); +lean_dec(x_28); lean_dec(x_17); -x_2 = x_28; -x_4 = x_27; +x_2 = x_30; +x_4 = x_29; goto _start; } else { -lean_object* x_30; -x_30 = l_Lean_Elab_Term_StructInst_DefaultFields_getFieldValue_x3f(x_1, x_15); -if (lean_obj_tag(x_30) == 0) +lean_object* x_32; +x_32 = l_Lean_Elab_Term_StructInst_DefaultFields_getFieldValue_x3f(x_1, x_15); +if (lean_obj_tag(x_32) == 0) { -lean_object* x_31; -lean_dec(x_19); +lean_object* x_33; +lean_dec(x_3); lean_dec(x_17); lean_dec(x_16); -lean_dec(x_3); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_4); -return x_31; -} -else -{ -lean_object* x_32; lean_object* x_33; -x_32 = lean_ctor_get(x_30, 0); -lean_inc(x_32); -lean_dec(x_30); -lean_inc(x_3); -lean_inc(x_32); -x_33 = l_Lean_Elab_Term_inferType(x_19, x_32, x_3, x_4); -if (lean_obj_tag(x_33) == 0) -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; -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); -lean_inc(x_3); -x_36 = l_Lean_Elab_Term_isDefEq(x_19, x_34, x_16, x_3, x_35); -lean_dec(x_19); -if (lean_obj_tag(x_36) == 0) -{ -lean_object* x_37; uint8_t x_38; -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -x_38 = lean_unbox(x_37); -lean_dec(x_37); -if (x_38 == 0) -{ -uint8_t x_39; -lean_dec(x_32); -lean_dec(x_17); -lean_dec(x_3); -x_39 = !lean_is_exclusive(x_36); -if (x_39 == 0) -{ -lean_object* x_40; lean_object* x_41; -x_40 = lean_ctor_get(x_36, 0); -lean_dec(x_40); -x_41 = lean_box(0); -lean_ctor_set(x_36, 0, x_41); -return x_36; -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_36, 1); -lean_inc(x_42); -lean_dec(x_36); -x_43 = lean_box(0); -x_44 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_44, 0, x_43); -lean_ctor_set(x_44, 1, x_42); -return x_44; -} -} -else -{ -lean_object* x_45; lean_object* x_46; -x_45 = lean_ctor_get(x_36, 1); -lean_inc(x_45); -lean_dec(x_36); -x_46 = lean_expr_instantiate1(x_17, x_32); -lean_dec(x_32); -lean_dec(x_17); -x_2 = x_46; -x_4 = x_45; -goto _start; -} -} -else -{ -uint8_t x_48; -lean_dec(x_32); -lean_dec(x_17); -lean_dec(x_3); -x_48 = !lean_is_exclusive(x_36); -if (x_48 == 0) -{ -return x_36; -} -else -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_36, 0); -x_50 = lean_ctor_get(x_36, 1); -lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_36); -x_51 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_51, 0, x_49); -lean_ctor_set(x_51, 1, x_50); -return x_51; -} -} -} -else -{ -uint8_t x_52; -lean_dec(x_32); -lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_3); -x_52 = !lean_is_exclusive(x_33); -if (x_52 == 0) -{ +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_4); return x_33; } else { -lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_33, 0); -x_54 = lean_ctor_get(x_33, 1); -lean_inc(x_54); -lean_inc(x_53); -lean_dec(x_33); -x_55 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_55, 0, x_53); -lean_ctor_set(x_55, 1, x_54); -return x_55; +lean_object* x_34; lean_object* x_35; +x_34 = lean_ctor_get(x_32, 0); +lean_inc(x_34); +lean_dec(x_32); +lean_inc(x_3); +lean_inc(x_34); +x_35 = l_Lean_Elab_Term_inferType(x_34, x_3, x_4); +if (lean_obj_tag(x_35) == 0) +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_35, 1); +lean_inc(x_37); +lean_dec(x_35); +lean_inc(x_3); +x_38 = l_Lean_Elab_Term_isDefEq(x_36, x_16, x_3, x_37); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; uint8_t x_40; +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = lean_unbox(x_39); +lean_dec(x_39); +if (x_40 == 0) +{ +uint8_t x_41; +lean_dec(x_34); +lean_dec(x_3); +lean_dec(x_17); +x_41 = !lean_is_exclusive(x_38); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; +x_42 = lean_ctor_get(x_38, 0); +lean_dec(x_42); +x_43 = lean_box(0); +lean_ctor_set(x_38, 0, x_43); +return x_38; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_38, 1); +lean_inc(x_44); +lean_dec(x_38); +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_44); +return x_46; +} +} +else +{ +lean_object* x_47; lean_object* x_48; +x_47 = lean_ctor_get(x_38, 1); +lean_inc(x_47); +lean_dec(x_38); +x_48 = lean_expr_instantiate1(x_17, x_34); +lean_dec(x_34); +lean_dec(x_17); +x_2 = x_48; +x_4 = x_47; +goto _start; +} +} +else +{ +uint8_t x_50; +lean_dec(x_34); +lean_dec(x_3); +lean_dec(x_17); +x_50 = !lean_is_exclusive(x_38); +if (x_50 == 0) +{ +return x_38; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_38, 0); +x_52 = lean_ctor_get(x_38, 1); +lean_inc(x_52); +lean_inc(x_51); +lean_dec(x_38); +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +return x_53; +} +} +} +else +{ +uint8_t x_54; +lean_dec(x_34); +lean_dec(x_3); +lean_dec(x_17); +lean_dec(x_16); +x_54 = !lean_is_exclusive(x_35); +if (x_54 == 0) +{ +return x_35; +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_35, 0); +x_56 = lean_ctor_get(x_35, 1); +lean_inc(x_56); +lean_inc(x_55); +lean_dec(x_35); +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; } } } @@ -20499,10 +21671,217 @@ return x_55; } else { -lean_object* x_56; +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; uint8_t x_69; uint8_t x_70; lean_object* x_71; +x_58 = lean_ctor_get(x_3, 0); +x_59 = lean_ctor_get(x_3, 1); +x_60 = lean_ctor_get(x_3, 2); +x_61 = lean_ctor_get(x_3, 3); +x_62 = lean_ctor_get(x_3, 4); +x_63 = lean_ctor_get(x_3, 5); +x_64 = lean_ctor_get(x_3, 6); +x_65 = lean_ctor_get(x_3, 7); +x_66 = lean_ctor_get(x_3, 8); +x_67 = lean_ctor_get(x_3, 9); +x_68 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_69 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_70 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +lean_inc(x_67); +lean_inc(x_66); +lean_inc(x_65); +lean_inc(x_64); +lean_inc(x_63); +lean_inc(x_62); +lean_inc(x_61); +lean_inc(x_60); +lean_inc(x_59); +lean_inc(x_58); lean_dec(x_3); -x_56 = lean_box(0); -x_5 = x_56; +x_71 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_71, 0, x_58); +lean_ctor_set(x_71, 1, x_59); +lean_ctor_set(x_71, 2, x_60); +lean_ctor_set(x_71, 3, x_61); +lean_ctor_set(x_71, 4, x_62); +lean_ctor_set(x_71, 5, x_63); +lean_ctor_set(x_71, 6, x_64); +lean_ctor_set(x_71, 7, x_65); +lean_ctor_set(x_71, 8, x_66); +lean_ctor_set(x_71, 9, x_67); +lean_ctor_set(x_71, 10, x_19); +lean_ctor_set_uint8(x_71, sizeof(void*)*11, x_68); +lean_ctor_set_uint8(x_71, sizeof(void*)*11 + 1, x_69); +lean_ctor_set_uint8(x_71, sizeof(void*)*11 + 2, x_70); +if (x_21 == 0) +{ +lean_object* x_72; uint8_t x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; +lean_dec(x_15); +x_72 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_72, 0, x_16); +x_73 = 0; +x_74 = lean_box(0); +lean_inc(x_71); +x_75 = l_Lean_Elab_Term_mkFreshExprMVar(x_72, x_73, x_74, x_71, x_4); +x_76 = lean_ctor_get(x_75, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_75, 1); +lean_inc(x_77); +lean_dec(x_75); +x_78 = lean_expr_instantiate1(x_17, x_76); +lean_dec(x_76); +lean_dec(x_17); +x_2 = x_78; +x_3 = x_71; +x_4 = x_77; +goto _start; +} +else +{ +lean_object* x_80; +x_80 = l_Lean_Elab_Term_StructInst_DefaultFields_getFieldValue_x3f(x_1, x_15); +if (lean_obj_tag(x_80) == 0) +{ +lean_object* x_81; +lean_dec(x_71); +lean_dec(x_17); +lean_dec(x_16); +x_81 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_81, 0, x_80); +lean_ctor_set(x_81, 1, x_4); +return x_81; +} +else +{ +lean_object* x_82; lean_object* x_83; +x_82 = lean_ctor_get(x_80, 0); +lean_inc(x_82); +lean_dec(x_80); +lean_inc(x_71); +lean_inc(x_82); +x_83 = l_Lean_Elab_Term_inferType(x_82, x_71, x_4); +if (lean_obj_tag(x_83) == 0) +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; +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); +lean_inc(x_71); +x_86 = l_Lean_Elab_Term_isDefEq(x_84, x_16, x_71, x_85); +if (lean_obj_tag(x_86) == 0) +{ +lean_object* x_87; uint8_t x_88; +x_87 = lean_ctor_get(x_86, 0); +lean_inc(x_87); +x_88 = lean_unbox(x_87); +lean_dec(x_87); +if (x_88 == 0) +{ +lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; +lean_dec(x_82); +lean_dec(x_71); +lean_dec(x_17); +x_89 = lean_ctor_get(x_86, 1); +lean_inc(x_89); +if (lean_is_exclusive(x_86)) { + lean_ctor_release(x_86, 0); + lean_ctor_release(x_86, 1); + x_90 = x_86; +} else { + lean_dec_ref(x_86); + x_90 = lean_box(0); +} +x_91 = lean_box(0); +if (lean_is_scalar(x_90)) { + x_92 = lean_alloc_ctor(0, 2, 0); +} else { + x_92 = x_90; +} +lean_ctor_set(x_92, 0, x_91); +lean_ctor_set(x_92, 1, x_89); +return x_92; +} +else +{ +lean_object* x_93; lean_object* x_94; +x_93 = lean_ctor_get(x_86, 1); +lean_inc(x_93); +lean_dec(x_86); +x_94 = lean_expr_instantiate1(x_17, x_82); +lean_dec(x_82); +lean_dec(x_17); +x_2 = x_94; +x_3 = x_71; +x_4 = x_93; +goto _start; +} +} +else +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; +lean_dec(x_82); +lean_dec(x_71); +lean_dec(x_17); +x_96 = lean_ctor_get(x_86, 0); +lean_inc(x_96); +x_97 = lean_ctor_get(x_86, 1); +lean_inc(x_97); +if (lean_is_exclusive(x_86)) { + lean_ctor_release(x_86, 0); + lean_ctor_release(x_86, 1); + x_98 = x_86; +} else { + lean_dec_ref(x_86); + x_98 = lean_box(0); +} +if (lean_is_scalar(x_98)) { + x_99 = lean_alloc_ctor(1, 2, 0); +} else { + x_99 = x_98; +} +lean_ctor_set(x_99, 0, x_96); +lean_ctor_set(x_99, 1, x_97); +return x_99; +} +} +else +{ +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; +lean_dec(x_82); +lean_dec(x_71); +lean_dec(x_17); +lean_dec(x_16); +x_100 = lean_ctor_get(x_83, 0); +lean_inc(x_100); +x_101 = lean_ctor_get(x_83, 1); +lean_inc(x_101); +if (lean_is_exclusive(x_83)) { + lean_ctor_release(x_83, 0); + lean_ctor_release(x_83, 1); + x_102 = x_83; +} else { + lean_dec_ref(x_83); + x_102 = lean_box(0); +} +if (lean_is_scalar(x_102)) { + x_103 = lean_alloc_ctor(1, 2, 0); +} else { + x_103 = x_102; +} +lean_ctor_set(x_103, 0, x_100); +lean_ctor_set(x_103, 1, x_101); +return x_103; +} +} +} +} +} +else +{ +lean_object* x_104; +lean_dec(x_3); +x_104 = lean_box(0); +x_5 = x_104; goto block_14; } block_14: @@ -20563,132 +21942,86 @@ lean_dec(x_1); return x_5; } } -lean_object* l_List_mapM___main___at_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValue_x3f___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValue_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_5; lean_object* x_6; -lean_dec(x_3); -x_5 = lean_box(0); -x_6 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_6, 0, x_5); -lean_ctor_set(x_6, 1, x_4); -return x_6; -} -else -{ -uint8_t x_7; -x_7 = !lean_is_exclusive(x_2); +lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_5 = l_Lean_Elab_Term_StructInst_Struct_ref(x_1); +x_6 = l_Lean_ConstantInfo_lparams(x_2); +x_7 = !lean_is_exclusive(x_3); if (x_7 == 0) { -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_8 = lean_ctor_get(x_2, 1); -x_9 = lean_ctor_get(x_2, 0); -lean_dec(x_9); +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_8 = lean_ctor_get(x_3, 10); +lean_dec(x_8); +lean_ctor_set(x_3, 10, x_5); lean_inc(x_3); -x_10 = l_Lean_Elab_Term_mkFreshLevelMVar(x_1, x_3, x_4); -x_11 = lean_ctor_get(x_10, 0); +x_9 = l_List_mapM___main___at___private_Lean_Elab_StructInst_23__mkCtorHeader___spec__1(x_6, x_3, x_4); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); lean_inc(x_11); -x_12 = lean_ctor_get(x_10, 1); -lean_inc(x_12); +lean_dec(x_9); +x_12 = lean_instantiate_value_lparams(x_2, x_10); lean_dec(x_10); -x_13 = l_List_mapM___main___at_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValue_x3f___spec__1(x_1, x_8, x_3, x_12); -x_14 = !lean_is_exclusive(x_13); -if (x_14 == 0) -{ -lean_object* x_15; -x_15 = lean_ctor_get(x_13, 0); -lean_ctor_set(x_2, 1, x_15); -lean_ctor_set(x_2, 0, x_11); -lean_ctor_set(x_13, 0, x_2); +x_13 = l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f___main(x_1, x_12, x_3, x_11); return x_13; } else { -lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = lean_ctor_get(x_13, 0); -x_17 = lean_ctor_get(x_13, 1); +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; lean_object* x_23; uint8_t x_24; uint8_t x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_14 = lean_ctor_get(x_3, 0); +x_15 = lean_ctor_get(x_3, 1); +x_16 = lean_ctor_get(x_3, 2); +x_17 = lean_ctor_get(x_3, 3); +x_18 = lean_ctor_get(x_3, 4); +x_19 = lean_ctor_get(x_3, 5); +x_20 = lean_ctor_get(x_3, 6); +x_21 = lean_ctor_get(x_3, 7); +x_22 = lean_ctor_get(x_3, 8); +x_23 = lean_ctor_get(x_3, 9); +x_24 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_26 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); -lean_dec(x_13); -lean_ctor_set(x_2, 1, x_16); -lean_ctor_set(x_2, 0, x_11); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_2); -lean_ctor_set(x_18, 1, x_17); -return x_18; +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_3); +x_27 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_27, 0, x_14); +lean_ctor_set(x_27, 1, x_15); +lean_ctor_set(x_27, 2, x_16); +lean_ctor_set(x_27, 3, x_17); +lean_ctor_set(x_27, 4, x_18); +lean_ctor_set(x_27, 5, x_19); +lean_ctor_set(x_27, 6, x_20); +lean_ctor_set(x_27, 7, x_21); +lean_ctor_set(x_27, 8, x_22); +lean_ctor_set(x_27, 9, x_23); +lean_ctor_set(x_27, 10, x_5); +lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_24); +lean_ctor_set_uint8(x_27, sizeof(void*)*11 + 1, x_25); +lean_ctor_set_uint8(x_27, sizeof(void*)*11 + 2, x_26); +lean_inc(x_27); +x_28 = l_List_mapM___main___at___private_Lean_Elab_StructInst_23__mkCtorHeader___spec__1(x_6, x_27, x_4); +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_31 = lean_instantiate_value_lparams(x_2, x_29); +lean_dec(x_29); +x_32 = l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f___main(x_1, x_31, x_27, x_30); +return x_32; } } -else -{ -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; -x_19 = lean_ctor_get(x_2, 1); -lean_inc(x_19); -lean_dec(x_2); -lean_inc(x_3); -x_20 = l_Lean_Elab_Term_mkFreshLevelMVar(x_1, x_3, x_4); -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -x_22 = lean_ctor_get(x_20, 1); -lean_inc(x_22); -lean_dec(x_20); -x_23 = l_List_mapM___main___at_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValue_x3f___spec__1(x_1, x_19, x_3, x_22); -x_24 = lean_ctor_get(x_23, 0); -lean_inc(x_24); -x_25 = lean_ctor_get(x_23, 1); -lean_inc(x_25); -if (lean_is_exclusive(x_23)) { - lean_ctor_release(x_23, 0); - lean_ctor_release(x_23, 1); - x_26 = x_23; -} else { - lean_dec_ref(x_23); - x_26 = lean_box(0); -} -x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_21); -lean_ctor_set(x_27, 1, x_24); -if (lean_is_scalar(x_26)) { - x_28 = lean_alloc_ctor(0, 2, 0); -} else { - x_28 = x_26; -} -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_25); -return x_28; -} -} -} -} -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValue_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_5 = l_Lean_Elab_Term_StructInst_Struct_ref(x_1); -x_6 = l_Lean_ConstantInfo_lparams(x_2); -lean_inc(x_3); -x_7 = l_List_mapM___main___at_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValue_x3f___spec__1(x_5, x_6, x_3, x_4); -lean_dec(x_5); -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_instantiate_value_lparams(x_2, x_8); -lean_dec(x_8); -x_11 = l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f___main(x_1, x_10, x_3, x_9); -return x_11; -} -} -lean_object* l_List_mapM___main___at_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValue_x3f___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_List_mapM___main___at_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValue_x3f___spec__1(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} } lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValue_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: @@ -21960,726 +23293,708 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main(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_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -uint8_t x_11; -x_11 = lean_nat_dec_lt(x_4, x_8); -if (x_11 == 0) +uint8_t x_10; +x_10 = lean_nat_dec_lt(x_3, x_7); +if (x_10 == 0) { -lean_object* x_12; uint8_t x_13; -x_12 = lean_array_get_size(x_2); -x_13 = lean_nat_dec_lt(x_7, x_12); -lean_dec(x_12); -if (x_13 == 0) +lean_object* x_11; uint8_t x_12; +x_11 = lean_array_get_size(x_1); +x_12 = lean_nat_dec_lt(x_6, x_11); +lean_dec(x_11); +if (x_12 == 0) { -uint8_t x_14; lean_object* x_15; lean_object* x_16; -lean_dec(x_9); +uint8_t x_13; lean_object* x_14; lean_object* x_15; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_1); -x_14 = 0; -x_15 = lean_box(x_14); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_10); -return x_16; +lean_dec(x_4); +lean_dec(x_2); +x_13 = 0; +x_14 = lean_box(x_13); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_9); +return x_15; } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_17 = lean_array_fget(x_2, x_7); -x_18 = l_Lean_Elab_Term_StructInst_Struct_structName(x_17); -lean_inc(x_5); -x_19 = l_Lean_Name_append___main(x_18, x_5); -lean_dec(x_18); -x_20 = l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___closed__2; -x_21 = l_Lean_Name_append___main(x_19, x_20); -lean_dec(x_19); -x_22 = l_Lean_Elab_Term_getEnv___rarg(x_10); -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -x_24 = lean_ctor_get(x_22, 1); -lean_inc(x_24); -lean_dec(x_22); -x_25 = lean_environment_find(x_23, x_21); -if (lean_obj_tag(x_25) == 0) -{ -lean_object* x_26; lean_object* x_27; +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_16 = lean_array_fget(x_1, x_6); +x_17 = l_Lean_Elab_Term_StructInst_Struct_structName(x_16); +lean_inc(x_4); +x_18 = l_Lean_Name_append___main(x_17, x_4); lean_dec(x_17); -x_26 = lean_unsigned_to_nat(1u); -x_27 = lean_nat_add(x_7, x_26); -lean_dec(x_7); -x_7 = x_27; -x_10 = x_24; +x_19 = l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___closed__2; +x_20 = l_Lean_Name_append___main(x_18, x_19); +lean_dec(x_18); +x_21 = l_Lean_Elab_Term_getEnv___rarg(x_9); +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_environment_find(x_22, x_20); +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_25; lean_object* x_26; +lean_dec(x_16); +x_25 = lean_unsigned_to_nat(1u); +x_26 = lean_nat_add(x_6, x_25); +lean_dec(x_6); +x_6 = x_26; +x_9 = x_23; goto _start; } else { -lean_object* x_29; -x_29 = lean_ctor_get(x_25, 0); -lean_inc(x_29); -lean_dec(x_25); -if (lean_obj_tag(x_29) == 1) +lean_object* x_28; +x_28 = lean_ctor_get(x_24, 0); +lean_inc(x_28); +lean_dec(x_24); +if (lean_obj_tag(x_28) == 1) { -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_30 = l_Lean_Elab_Term_getMCtx___rarg(x_24); -x_31 = lean_ctor_get(x_30, 0); +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_29 = l_Lean_Elab_Term_getMCtx___rarg(x_23); +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_29, 1); lean_inc(x_31); -x_32 = lean_ctor_get(x_30, 1); -lean_inc(x_32); -lean_dec(x_30); -lean_inc(x_9); -x_33 = l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValue_x3f(x_17, x_29, x_9, x_32); lean_dec(x_29); +lean_inc(x_8); +x_32 = l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValue_x3f(x_16, x_28, x_8, x_31); +lean_dec(x_28); +lean_dec(x_16); +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_33; +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); if (lean_obj_tag(x_33) == 0) { -lean_object* x_34; -x_34 = lean_ctor_get(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; +x_34 = lean_ctor_get(x_32, 1); lean_inc(x_34); -if (lean_obj_tag(x_34) == 0) -{ -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_dec(x_17); -x_35 = lean_ctor_get(x_33, 1); -lean_inc(x_35); -lean_dec(x_33); -x_36 = lean_unsigned_to_nat(1u); -x_37 = lean_nat_add(x_7, x_36); +lean_dec(x_32); +x_35 = lean_unsigned_to_nat(1u); +x_36 = lean_nat_add(x_6, x_35); +lean_dec(x_6); +x_37 = lean_nat_add(x_7, x_35); lean_dec(x_7); -x_38 = lean_nat_add(x_8, x_36); -lean_dec(x_8); -x_39 = l_Lean_Elab_Term_setMCtx(x_31, x_9, x_35); -x_40 = lean_ctor_get(x_39, 1); -lean_inc(x_40); -lean_dec(x_39); +x_38 = l_Lean_Elab_Term_setMCtx(x_30, x_8, x_34); +x_39 = lean_ctor_get(x_38, 1); +lean_inc(x_39); +lean_dec(x_38); +x_6 = x_36; x_7 = x_37; -x_8 = x_38; -x_10 = x_40; +x_9 = x_39; goto _start; } else { -lean_object* x_42; uint8_t x_43; -x_42 = lean_ctor_get(x_33, 1); +lean_object* x_41; lean_object* x_42; uint8_t x_43; +x_41 = lean_ctor_get(x_32, 1); +lean_inc(x_41); +lean_dec(x_32); +x_42 = lean_ctor_get(x_41, 0); lean_inc(x_42); -lean_dec(x_33); -x_43 = !lean_is_exclusive(x_34); +x_43 = !lean_is_exclusive(x_33); if (x_43 == 0) { -lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; -x_44 = lean_ctor_get(x_34, 0); -x_45 = l_Lean_Elab_Term_StructInst_Struct_ref(x_17); -lean_dec(x_17); -x_46 = lean_ctor_get(x_42, 0); -lean_inc(x_46); -x_47 = !lean_is_exclusive(x_46); -if (x_47 == 0) +uint8_t x_44; +x_44 = !lean_is_exclusive(x_42); +if (x_44 == 0) { -lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_48 = lean_ctor_get(x_46, 4); -x_49 = lean_ctor_get(x_9, 0); -lean_inc(x_49); -x_50 = l_Lean_TraceState_Inhabited___closed__1; -lean_ctor_set(x_46, 4, x_50); -lean_inc(x_3); -x_51 = l_Lean_Elab_Term_StructInst_DefaultFields_reduce___main(x_3, x_44, x_49, x_46); -if (lean_obj_tag(x_51) == 0) +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_45 = lean_ctor_get(x_33, 0); +x_46 = lean_ctor_get(x_42, 4); +x_47 = lean_ctor_get(x_8, 0); +lean_inc(x_47); +x_48 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_42, 4, x_48); +lean_inc(x_2); +x_49 = l_Lean_Elab_Term_StructInst_DefaultFields_reduce___main(x_2, x_45, x_47, x_42); +if (lean_obj_tag(x_49) == 0) { -lean_object* x_52; lean_object* x_53; lean_object* x_54; size_t x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -x_53 = lean_ctor_get(x_51, 1); -lean_inc(x_53); -lean_dec(x_51); -lean_inc(x_9); -x_54 = l___private_Lean_Elab_Term_3__fromMetaState(x_45, x_9, x_42, x_53, x_48); -lean_dec(x_45); -x_55 = 8192; -x_56 = l_Lean_Expr_FindImpl_initCache; -lean_inc(x_52); -x_57 = l_Lean_Expr_FindImpl_findM_x3f___main___at_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___spec__1(x_55, x_52, x_56); +lean_object* x_50; lean_object* x_51; lean_object* x_52; size_t x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +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_8); +x_52 = l___private_Lean_Elab_Term_3__fromMetaState(x_8, x_41, x_51, x_46); +x_53 = 8192; +x_54 = l_Lean_Expr_FindImpl_initCache; +lean_inc(x_50); +x_55 = l_Lean_Expr_FindImpl_findM_x3f___main___at_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___spec__1(x_53, x_50, x_54); +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +lean_dec(x_55); +if (lean_obj_tag(x_56) == 0) +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +lean_dec(x_30); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +x_57 = l_Lean_Elab_Term_getMVarDecl(x_5, x_8, x_52); 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); -if (lean_obj_tag(x_58) == 0) -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; -lean_dec(x_31); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_3); -x_59 = l_Lean_Elab_Term_getMVarDecl(x_6, x_9, x_54); -x_60 = lean_ctor_get(x_59, 0); +x_60 = lean_ctor_get(x_58, 2); lean_inc(x_60); -x_61 = lean_ctor_get(x_59, 1); -lean_inc(x_61); -lean_dec(x_59); -x_62 = lean_ctor_get(x_60, 2); -lean_inc(x_62); -lean_dec(x_60); -lean_ctor_set(x_34, 0, x_62); -lean_inc(x_9); -x_63 = l_Lean_Elab_Term_ensureHasType(x_1, x_34, x_52, x_9, x_61); -if (lean_obj_tag(x_63) == 0) -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; -x_64 = lean_ctor_get(x_63, 0); -lean_inc(x_64); -x_65 = lean_ctor_get(x_63, 1); -lean_inc(x_65); -lean_dec(x_63); -x_66 = l_Lean_Elab_Term_assignExprMVar(x_6, x_64, x_9, x_65); -lean_dec(x_9); -x_67 = !lean_is_exclusive(x_66); -if (x_67 == 0) -{ -lean_object* x_68; uint8_t x_69; lean_object* x_70; -x_68 = lean_ctor_get(x_66, 0); -lean_dec(x_68); -x_69 = 1; -x_70 = lean_box(x_69); -lean_ctor_set(x_66, 0, x_70); -return x_66; -} -else -{ -lean_object* x_71; uint8_t x_72; lean_object* x_73; lean_object* x_74; -x_71 = lean_ctor_get(x_66, 1); -lean_inc(x_71); -lean_dec(x_66); -x_72 = 1; -x_73 = lean_box(x_72); -x_74 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_74, 0, x_73); -lean_ctor_set(x_74, 1, x_71); -return x_74; -} -} -else -{ -uint8_t x_75; -lean_dec(x_9); -lean_dec(x_6); -x_75 = !lean_is_exclusive(x_63); -if (x_75 == 0) -{ -return x_63; -} -else -{ -lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_76 = lean_ctor_get(x_63, 0); -x_77 = lean_ctor_get(x_63, 1); -lean_inc(x_77); -lean_inc(x_76); -lean_dec(x_63); -x_78 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_78, 0, x_76); -lean_ctor_set(x_78, 1, x_77); -return x_78; -} -} -} -else -{ -lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_dec(x_58); -lean_dec(x_52); -lean_free_object(x_34); -x_79 = lean_unsigned_to_nat(1u); -x_80 = lean_nat_add(x_7, x_79); -lean_dec(x_7); -x_81 = lean_nat_add(x_8, x_79); +lean_ctor_set(x_33, 0, x_60); +lean_inc(x_8); +x_61 = l_Lean_Elab_Term_ensureHasType(x_33, x_50, x_8, x_59); +if (lean_obj_tag(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_61, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_61, 1); +lean_inc(x_63); +lean_dec(x_61); +x_64 = l_Lean_Elab_Term_assignExprMVar(x_5, x_62, x_8, x_63); lean_dec(x_8); -x_82 = l_Lean_Elab_Term_setMCtx(x_31, x_9, x_54); -x_83 = lean_ctor_get(x_82, 1); -lean_inc(x_83); -lean_dec(x_82); -x_7 = x_80; -x_8 = x_81; -x_10 = x_83; +x_65 = !lean_is_exclusive(x_64); +if (x_65 == 0) +{ +lean_object* x_66; uint8_t x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_64, 0); +lean_dec(x_66); +x_67 = 1; +x_68 = lean_box(x_67); +lean_ctor_set(x_64, 0, x_68); +return x_64; +} +else +{ +lean_object* x_69; uint8_t x_70; lean_object* x_71; lean_object* x_72; +x_69 = lean_ctor_get(x_64, 1); +lean_inc(x_69); +lean_dec(x_64); +x_70 = 1; +x_71 = lean_box(x_70); +x_72 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_72, 0, x_71); +lean_ctor_set(x_72, 1, x_69); +return x_72; +} +} +else +{ +uint8_t x_73; +lean_dec(x_8); +lean_dec(x_5); +x_73 = !lean_is_exclusive(x_61); +if (x_73 == 0) +{ +return x_61; +} +else +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_61, 0); +x_75 = lean_ctor_get(x_61, 1); +lean_inc(x_75); +lean_inc(x_74); +lean_dec(x_61); +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; +} +} +} +else +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +lean_dec(x_56); +lean_dec(x_50); +lean_free_object(x_33); +x_77 = lean_unsigned_to_nat(1u); +x_78 = lean_nat_add(x_6, x_77); +lean_dec(x_6); +x_79 = lean_nat_add(x_7, x_77); +lean_dec(x_7); +x_80 = l_Lean_Elab_Term_setMCtx(x_30, x_8, x_52); +x_81 = lean_ctor_get(x_80, 1); +lean_inc(x_81); +lean_dec(x_80); +x_6 = x_78; +x_7 = x_79; +x_9 = x_81; goto _start; } } else { -uint8_t x_85; -lean_free_object(x_34); -lean_dec(x_31); -lean_dec(x_8); +uint8_t x_83; +lean_free_object(x_33); +lean_dec(x_30); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_1); -x_85 = !lean_is_exclusive(x_51); -if (x_85 == 0) +lean_dec(x_4); +lean_dec(x_2); +x_83 = !lean_is_exclusive(x_49); +if (x_83 == 0) { -lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_86 = lean_ctor_get(x_51, 0); -x_87 = lean_ctor_get(x_51, 1); -lean_inc(x_9); -x_88 = l___private_Lean_Elab_Term_2__fromMetaException(x_9, x_45, x_86); -x_89 = l___private_Lean_Elab_Term_3__fromMetaState(x_45, x_9, x_42, x_87, x_48); -lean_dec(x_45); -lean_ctor_set(x_51, 1, x_89); -lean_ctor_set(x_51, 0, x_88); -return x_51; +lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_84 = lean_ctor_get(x_49, 0); +x_85 = lean_ctor_get(x_49, 1); +lean_inc(x_8); +x_86 = l___private_Lean_Elab_Term_2__fromMetaException(x_8, x_84); +x_87 = l___private_Lean_Elab_Term_3__fromMetaState(x_8, x_41, x_85, x_46); +lean_ctor_set(x_49, 1, x_87); +lean_ctor_set(x_49, 0, x_86); +return x_49; } else { -lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_90 = lean_ctor_get(x_51, 0); -x_91 = lean_ctor_get(x_51, 1); -lean_inc(x_91); -lean_inc(x_90); -lean_dec(x_51); -lean_inc(x_9); -x_92 = l___private_Lean_Elab_Term_2__fromMetaException(x_9, x_45, x_90); -x_93 = l___private_Lean_Elab_Term_3__fromMetaState(x_45, x_9, x_42, x_91, x_48); -lean_dec(x_45); -x_94 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_94, 0, x_92); -lean_ctor_set(x_94, 1, x_93); -return x_94; +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; +x_88 = lean_ctor_get(x_49, 0); +x_89 = lean_ctor_get(x_49, 1); +lean_inc(x_89); +lean_inc(x_88); +lean_dec(x_49); +lean_inc(x_8); +x_90 = l___private_Lean_Elab_Term_2__fromMetaException(x_8, x_88); +x_91 = l___private_Lean_Elab_Term_3__fromMetaState(x_8, x_41, x_89, x_46); +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; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_95 = lean_ctor_get(x_46, 0); -x_96 = lean_ctor_get(x_46, 1); -x_97 = lean_ctor_get(x_46, 2); -x_98 = lean_ctor_get(x_46, 3); -x_99 = lean_ctor_get(x_46, 4); -x_100 = lean_ctor_get(x_46, 5); -lean_inc(x_100); +lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; +x_93 = lean_ctor_get(x_33, 0); +x_94 = lean_ctor_get(x_42, 0); +x_95 = lean_ctor_get(x_42, 1); +x_96 = lean_ctor_get(x_42, 2); +x_97 = lean_ctor_get(x_42, 3); +x_98 = lean_ctor_get(x_42, 4); +x_99 = lean_ctor_get(x_42, 5); lean_inc(x_99); lean_inc(x_98); lean_inc(x_97); lean_inc(x_96); lean_inc(x_95); -lean_dec(x_46); -x_101 = lean_ctor_get(x_9, 0); -lean_inc(x_101); -x_102 = l_Lean_TraceState_Inhabited___closed__1; -x_103 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_103, 0, x_95); -lean_ctor_set(x_103, 1, x_96); -lean_ctor_set(x_103, 2, x_97); -lean_ctor_set(x_103, 3, x_98); -lean_ctor_set(x_103, 4, x_102); -lean_ctor_set(x_103, 5, x_100); -lean_inc(x_3); -x_104 = l_Lean_Elab_Term_StructInst_DefaultFields_reduce___main(x_3, x_44, x_101, x_103); -if (lean_obj_tag(x_104) == 0) +lean_inc(x_94); +lean_dec(x_42); +x_100 = lean_ctor_get(x_8, 0); +lean_inc(x_100); +x_101 = l_Lean_TraceState_Inhabited___closed__1; +x_102 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_102, 0, x_94); +lean_ctor_set(x_102, 1, x_95); +lean_ctor_set(x_102, 2, x_96); +lean_ctor_set(x_102, 3, x_97); +lean_ctor_set(x_102, 4, x_101); +lean_ctor_set(x_102, 5, x_99); +lean_inc(x_2); +x_103 = l_Lean_Elab_Term_StructInst_DefaultFields_reduce___main(x_2, x_93, x_100, x_102); +if (lean_obj_tag(x_103) == 0) { -lean_object* x_105; lean_object* x_106; lean_object* x_107; size_t x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; -x_105 = lean_ctor_get(x_104, 0); +lean_object* x_104; lean_object* x_105; lean_object* x_106; size_t x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; +x_104 = lean_ctor_get(x_103, 0); +lean_inc(x_104); +x_105 = lean_ctor_get(x_103, 1); lean_inc(x_105); -x_106 = lean_ctor_get(x_104, 1); -lean_inc(x_106); -lean_dec(x_104); -lean_inc(x_9); -x_107 = l___private_Lean_Elab_Term_3__fromMetaState(x_45, x_9, x_42, x_106, x_99); -lean_dec(x_45); -x_108 = 8192; -x_109 = l_Lean_Expr_FindImpl_initCache; -lean_inc(x_105); -x_110 = l_Lean_Expr_FindImpl_findM_x3f___main___at_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___spec__1(x_108, x_105, x_109); -x_111 = lean_ctor_get(x_110, 0); -lean_inc(x_111); -lean_dec(x_110); -if (lean_obj_tag(x_111) == 0) +lean_dec(x_103); +lean_inc(x_8); +x_106 = l___private_Lean_Elab_Term_3__fromMetaState(x_8, x_41, x_105, x_98); +x_107 = 8192; +x_108 = l_Lean_Expr_FindImpl_initCache; +lean_inc(x_104); +x_109 = l_Lean_Expr_FindImpl_findM_x3f___main___at_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___spec__1(x_107, x_104, x_108); +x_110 = lean_ctor_get(x_109, 0); +lean_inc(x_110); +lean_dec(x_109); +if (lean_obj_tag(x_110) == 0) { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; -lean_dec(x_31); -lean_dec(x_8); +lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; +lean_dec(x_30); lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_3); -x_112 = l_Lean_Elab_Term_getMVarDecl(x_6, x_9, x_107); -x_113 = lean_ctor_get(x_112, 0); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +x_111 = l_Lean_Elab_Term_getMVarDecl(x_5, x_8, x_106); +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_dec(x_111); +x_114 = lean_ctor_get(x_112, 2); lean_inc(x_114); lean_dec(x_112); -x_115 = lean_ctor_get(x_113, 2); -lean_inc(x_115); -lean_dec(x_113); -lean_ctor_set(x_34, 0, x_115); -lean_inc(x_9); -x_116 = l_Lean_Elab_Term_ensureHasType(x_1, x_34, x_105, x_9, x_114); -if (lean_obj_tag(x_116) == 0) +lean_ctor_set(x_33, 0, x_114); +lean_inc(x_8); +x_115 = l_Lean_Elab_Term_ensureHasType(x_33, x_104, x_8, x_113); +if (lean_obj_tag(x_115) == 0) { -lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; uint8_t x_122; lean_object* x_123; lean_object* x_124; -x_117 = lean_ctor_get(x_116, 0); +lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_object* x_122; lean_object* x_123; +x_116 = lean_ctor_get(x_115, 0); +lean_inc(x_116); +x_117 = lean_ctor_get(x_115, 1); lean_inc(x_117); -x_118 = lean_ctor_get(x_116, 1); -lean_inc(x_118); -lean_dec(x_116); -x_119 = l_Lean_Elab_Term_assignExprMVar(x_6, x_117, x_9, x_118); -lean_dec(x_9); -x_120 = lean_ctor_get(x_119, 1); -lean_inc(x_120); -if (lean_is_exclusive(x_119)) { - lean_ctor_release(x_119, 0); - lean_ctor_release(x_119, 1); - x_121 = x_119; -} else { - lean_dec_ref(x_119); - x_121 = lean_box(0); -} -x_122 = 1; -x_123 = lean_box(x_122); -if (lean_is_scalar(x_121)) { - x_124 = lean_alloc_ctor(0, 2, 0); -} else { - x_124 = x_121; -} -lean_ctor_set(x_124, 0, x_123); -lean_ctor_set(x_124, 1, x_120); -return x_124; -} -else -{ -lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; -lean_dec(x_9); -lean_dec(x_6); -x_125 = lean_ctor_get(x_116, 0); -lean_inc(x_125); -x_126 = lean_ctor_get(x_116, 1); -lean_inc(x_126); -if (lean_is_exclusive(x_116)) { - lean_ctor_release(x_116, 0); - lean_ctor_release(x_116, 1); - x_127 = x_116; -} else { - lean_dec_ref(x_116); - 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_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; -lean_dec(x_111); -lean_dec(x_105); -lean_free_object(x_34); -x_129 = lean_unsigned_to_nat(1u); -x_130 = lean_nat_add(x_7, x_129); -lean_dec(x_7); -x_131 = lean_nat_add(x_8, x_129); +lean_dec(x_115); +x_118 = l_Lean_Elab_Term_assignExprMVar(x_5, x_116, x_8, x_117); lean_dec(x_8); -x_132 = l_Lean_Elab_Term_setMCtx(x_31, x_9, x_107); -x_133 = lean_ctor_get(x_132, 1); -lean_inc(x_133); -lean_dec(x_132); +x_119 = lean_ctor_get(x_118, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_118)) { + lean_ctor_release(x_118, 0); + lean_ctor_release(x_118, 1); + x_120 = x_118; +} else { + lean_dec_ref(x_118); + x_120 = lean_box(0); +} +x_121 = 1; +x_122 = lean_box(x_121); +if (lean_is_scalar(x_120)) { + x_123 = lean_alloc_ctor(0, 2, 0); +} else { + x_123 = x_120; +} +lean_ctor_set(x_123, 0, x_122); +lean_ctor_set(x_123, 1, x_119); +return x_123; +} +else +{ +lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; +lean_dec(x_8); +lean_dec(x_5); +x_124 = lean_ctor_get(x_115, 0); +lean_inc(x_124); +x_125 = lean_ctor_get(x_115, 1); +lean_inc(x_125); +if (lean_is_exclusive(x_115)) { + lean_ctor_release(x_115, 0); + lean_ctor_release(x_115, 1); + x_126 = x_115; +} else { + lean_dec_ref(x_115); + x_126 = lean_box(0); +} +if (lean_is_scalar(x_126)) { + x_127 = lean_alloc_ctor(1, 2, 0); +} else { + x_127 = x_126; +} +lean_ctor_set(x_127, 0, x_124); +lean_ctor_set(x_127, 1, x_125); +return x_127; +} +} +else +{ +lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; +lean_dec(x_110); +lean_dec(x_104); +lean_free_object(x_33); +x_128 = lean_unsigned_to_nat(1u); +x_129 = lean_nat_add(x_6, x_128); +lean_dec(x_6); +x_130 = lean_nat_add(x_7, x_128); +lean_dec(x_7); +x_131 = l_Lean_Elab_Term_setMCtx(x_30, x_8, x_106); +x_132 = lean_ctor_get(x_131, 1); +lean_inc(x_132); +lean_dec(x_131); +x_6 = x_129; x_7 = x_130; -x_8 = x_131; -x_10 = x_133; +x_9 = x_132; goto _start; } } else { -lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; -lean_free_object(x_34); -lean_dec(x_31); -lean_dec(x_8); +lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; +lean_free_object(x_33); +lean_dec(x_30); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_1); -x_135 = lean_ctor_get(x_104, 0); +lean_dec(x_4); +lean_dec(x_2); +x_134 = lean_ctor_get(x_103, 0); +lean_inc(x_134); +x_135 = lean_ctor_get(x_103, 1); lean_inc(x_135); -x_136 = lean_ctor_get(x_104, 1); -lean_inc(x_136); -if (lean_is_exclusive(x_104)) { - lean_ctor_release(x_104, 0); - lean_ctor_release(x_104, 1); - x_137 = x_104; +if (lean_is_exclusive(x_103)) { + lean_ctor_release(x_103, 0); + lean_ctor_release(x_103, 1); + x_136 = x_103; } else { - lean_dec_ref(x_104); - x_137 = lean_box(0); + lean_dec_ref(x_103); + x_136 = lean_box(0); } -lean_inc(x_9); -x_138 = l___private_Lean_Elab_Term_2__fromMetaException(x_9, x_45, x_135); -x_139 = l___private_Lean_Elab_Term_3__fromMetaState(x_45, x_9, x_42, x_136, x_99); -lean_dec(x_45); -if (lean_is_scalar(x_137)) { - x_140 = lean_alloc_ctor(1, 2, 0); +lean_inc(x_8); +x_137 = l___private_Lean_Elab_Term_2__fromMetaException(x_8, x_134); +x_138 = l___private_Lean_Elab_Term_3__fromMetaState(x_8, x_41, x_135, x_98); +if (lean_is_scalar(x_136)) { + x_139 = lean_alloc_ctor(1, 2, 0); } else { - x_140 = x_137; + x_139 = x_136; } -lean_ctor_set(x_140, 0, x_138); -lean_ctor_set(x_140, 1, x_139); -return x_140; +lean_ctor_set(x_139, 0, x_137); +lean_ctor_set(x_139, 1, x_138); +return x_139; } } } else { -lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; -x_141 = lean_ctor_get(x_34, 0); +lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; +x_140 = lean_ctor_get(x_33, 0); +lean_inc(x_140); +lean_dec(x_33); +x_141 = lean_ctor_get(x_42, 0); lean_inc(x_141); -lean_dec(x_34); -x_142 = l_Lean_Elab_Term_StructInst_Struct_ref(x_17); -lean_dec(x_17); -x_143 = lean_ctor_get(x_42, 0); +x_142 = lean_ctor_get(x_42, 1); +lean_inc(x_142); +x_143 = lean_ctor_get(x_42, 2); lean_inc(x_143); -x_144 = lean_ctor_get(x_143, 0); +x_144 = lean_ctor_get(x_42, 3); lean_inc(x_144); -x_145 = lean_ctor_get(x_143, 1); +x_145 = lean_ctor_get(x_42, 4); lean_inc(x_145); -x_146 = lean_ctor_get(x_143, 2); +x_146 = lean_ctor_get(x_42, 5); lean_inc(x_146); -x_147 = lean_ctor_get(x_143, 3); -lean_inc(x_147); -x_148 = lean_ctor_get(x_143, 4); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + lean_ctor_release(x_42, 4); + lean_ctor_release(x_42, 5); + x_147 = x_42; +} else { + lean_dec_ref(x_42); + x_147 = lean_box(0); +} +x_148 = lean_ctor_get(x_8, 0); lean_inc(x_148); -x_149 = lean_ctor_get(x_143, 5); -lean_inc(x_149); -if (lean_is_exclusive(x_143)) { - lean_ctor_release(x_143, 0); - lean_ctor_release(x_143, 1); - lean_ctor_release(x_143, 2); - lean_ctor_release(x_143, 3); - lean_ctor_release(x_143, 4); - lean_ctor_release(x_143, 5); - x_150 = x_143; +x_149 = l_Lean_TraceState_Inhabited___closed__1; +if (lean_is_scalar(x_147)) { + x_150 = lean_alloc_ctor(0, 6, 0); } else { - lean_dec_ref(x_143); - x_150 = lean_box(0); + x_150 = x_147; } -x_151 = lean_ctor_get(x_9, 0); -lean_inc(x_151); -x_152 = l_Lean_TraceState_Inhabited___closed__1; -if (lean_is_scalar(x_150)) { - x_153 = lean_alloc_ctor(0, 6, 0); -} else { - x_153 = x_150; -} -lean_ctor_set(x_153, 0, x_144); -lean_ctor_set(x_153, 1, x_145); -lean_ctor_set(x_153, 2, x_146); -lean_ctor_set(x_153, 3, x_147); -lean_ctor_set(x_153, 4, x_152); -lean_ctor_set(x_153, 5, x_149); -lean_inc(x_3); -x_154 = l_Lean_Elab_Term_StructInst_DefaultFields_reduce___main(x_3, x_141, x_151, x_153); -if (lean_obj_tag(x_154) == 0) +lean_ctor_set(x_150, 0, x_141); +lean_ctor_set(x_150, 1, x_142); +lean_ctor_set(x_150, 2, x_143); +lean_ctor_set(x_150, 3, x_144); +lean_ctor_set(x_150, 4, x_149); +lean_ctor_set(x_150, 5, x_146); +lean_inc(x_2); +x_151 = l_Lean_Elab_Term_StructInst_DefaultFields_reduce___main(x_2, x_140, x_148, x_150); +if (lean_obj_tag(x_151) == 0) { -lean_object* x_155; lean_object* x_156; lean_object* x_157; size_t x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; -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); -lean_inc(x_9); -x_157 = l___private_Lean_Elab_Term_3__fromMetaState(x_142, x_9, x_42, x_156, x_148); -lean_dec(x_142); -x_158 = 8192; -x_159 = l_Lean_Expr_FindImpl_initCache; -lean_inc(x_155); -x_160 = l_Lean_Expr_FindImpl_findM_x3f___main___at_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___spec__1(x_158, x_155, x_159); -x_161 = lean_ctor_get(x_160, 0); -lean_inc(x_161); -lean_dec(x_160); -if (lean_obj_tag(x_161) == 0) +lean_object* x_152; lean_object* x_153; lean_object* x_154; size_t x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; +x_152 = lean_ctor_get(x_151, 0); +lean_inc(x_152); +x_153 = lean_ctor_get(x_151, 1); +lean_inc(x_153); +lean_dec(x_151); +lean_inc(x_8); +x_154 = l___private_Lean_Elab_Term_3__fromMetaState(x_8, x_41, x_153, x_145); +x_155 = 8192; +x_156 = l_Lean_Expr_FindImpl_initCache; +lean_inc(x_152); +x_157 = l_Lean_Expr_FindImpl_findM_x3f___main___at_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___spec__1(x_155, x_152, x_156); +x_158 = lean_ctor_get(x_157, 0); +lean_inc(x_158); +lean_dec(x_157); +if (lean_obj_tag(x_158) == 0) { -lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; -lean_dec(x_31); -lean_dec(x_8); +lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; +lean_dec(x_30); lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_3); -x_162 = l_Lean_Elab_Term_getMVarDecl(x_6, x_9, x_157); -x_163 = lean_ctor_get(x_162, 0); -lean_inc(x_163); -x_164 = lean_ctor_get(x_162, 1); -lean_inc(x_164); -lean_dec(x_162); -x_165 = lean_ctor_get(x_163, 2); -lean_inc(x_165); -lean_dec(x_163); -x_166 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_166, 0, x_165); -lean_inc(x_9); -x_167 = l_Lean_Elab_Term_ensureHasType(x_1, x_166, x_155, x_9, x_164); -if (lean_obj_tag(x_167) == 0) -{ -lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; uint8_t x_173; lean_object* x_174; lean_object* x_175; -x_168 = lean_ctor_get(x_167, 0); -lean_inc(x_168); -x_169 = lean_ctor_get(x_167, 1); -lean_inc(x_169); -lean_dec(x_167); -x_170 = l_Lean_Elab_Term_assignExprMVar(x_6, x_168, x_9, x_169); -lean_dec(x_9); -x_171 = lean_ctor_get(x_170, 1); -lean_inc(x_171); -if (lean_is_exclusive(x_170)) { - lean_ctor_release(x_170, 0); - lean_ctor_release(x_170, 1); - x_172 = x_170; -} else { - lean_dec_ref(x_170); - x_172 = lean_box(0); -} -x_173 = 1; -x_174 = lean_box(x_173); -if (lean_is_scalar(x_172)) { - x_175 = lean_alloc_ctor(0, 2, 0); -} else { - x_175 = x_172; -} -lean_ctor_set(x_175, 0, x_174); -lean_ctor_set(x_175, 1, x_171); -return x_175; -} -else -{ -lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; -lean_dec(x_9); lean_dec(x_6); -x_176 = lean_ctor_get(x_167, 0); -lean_inc(x_176); -x_177 = lean_ctor_get(x_167, 1); -lean_inc(x_177); +lean_dec(x_4); +lean_dec(x_2); +x_159 = l_Lean_Elab_Term_getMVarDecl(x_5, x_8, x_154); +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_162 = lean_ctor_get(x_160, 2); +lean_inc(x_162); +lean_dec(x_160); +x_163 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_163, 0, x_162); +lean_inc(x_8); +x_164 = l_Lean_Elab_Term_ensureHasType(x_163, x_152, x_8, x_161); +if (lean_obj_tag(x_164) == 0) +{ +lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; uint8_t x_170; lean_object* x_171; lean_object* x_172; +x_165 = lean_ctor_get(x_164, 0); +lean_inc(x_165); +x_166 = lean_ctor_get(x_164, 1); +lean_inc(x_166); +lean_dec(x_164); +x_167 = l_Lean_Elab_Term_assignExprMVar(x_5, x_165, x_8, x_166); +lean_dec(x_8); +x_168 = lean_ctor_get(x_167, 1); +lean_inc(x_168); if (lean_is_exclusive(x_167)) { lean_ctor_release(x_167, 0); lean_ctor_release(x_167, 1); - x_178 = x_167; + x_169 = x_167; } else { lean_dec_ref(x_167); - x_178 = lean_box(0); + x_169 = lean_box(0); } -if (lean_is_scalar(x_178)) { - x_179 = lean_alloc_ctor(1, 2, 0); +x_170 = 1; +x_171 = lean_box(x_170); +if (lean_is_scalar(x_169)) { + x_172 = lean_alloc_ctor(0, 2, 0); } else { - x_179 = x_178; + x_172 = x_169; } -lean_ctor_set(x_179, 0, x_176); -lean_ctor_set(x_179, 1, x_177); -return x_179; +lean_ctor_set(x_172, 0, x_171); +lean_ctor_set(x_172, 1, x_168); +return x_172; +} +else +{ +lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; +lean_dec(x_8); +lean_dec(x_5); +x_173 = lean_ctor_get(x_164, 0); +lean_inc(x_173); +x_174 = lean_ctor_get(x_164, 1); +lean_inc(x_174); +if (lean_is_exclusive(x_164)) { + lean_ctor_release(x_164, 0); + lean_ctor_release(x_164, 1); + x_175 = x_164; +} else { + lean_dec_ref(x_164); + x_175 = lean_box(0); +} +if (lean_is_scalar(x_175)) { + x_176 = lean_alloc_ctor(1, 2, 0); +} else { + x_176 = x_175; +} +lean_ctor_set(x_176, 0, x_173); +lean_ctor_set(x_176, 1, x_174); +return x_176; } } else { -lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; -lean_dec(x_161); -lean_dec(x_155); -x_180 = lean_unsigned_to_nat(1u); -x_181 = lean_nat_add(x_7, x_180); +lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; +lean_dec(x_158); +lean_dec(x_152); +x_177 = lean_unsigned_to_nat(1u); +x_178 = lean_nat_add(x_6, x_177); +lean_dec(x_6); +x_179 = lean_nat_add(x_7, x_177); lean_dec(x_7); -x_182 = lean_nat_add(x_8, x_180); -lean_dec(x_8); -x_183 = l_Lean_Elab_Term_setMCtx(x_31, x_9, x_157); -x_184 = lean_ctor_get(x_183, 1); +x_180 = l_Lean_Elab_Term_setMCtx(x_30, x_8, x_154); +x_181 = lean_ctor_get(x_180, 1); +lean_inc(x_181); +lean_dec(x_180); +x_6 = x_178; +x_7 = x_179; +x_9 = x_181; +goto _start; +} +} +else +{ +lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; +lean_dec(x_30); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_183 = lean_ctor_get(x_151, 0); +lean_inc(x_183); +x_184 = lean_ctor_get(x_151, 1); lean_inc(x_184); -lean_dec(x_183); -x_7 = x_181; -x_8 = x_182; -x_10 = x_184; -goto _start; +if (lean_is_exclusive(x_151)) { + lean_ctor_release(x_151, 0); + lean_ctor_release(x_151, 1); + x_185 = x_151; +} else { + lean_dec_ref(x_151); + x_185 = lean_box(0); +} +lean_inc(x_8); +x_186 = l___private_Lean_Elab_Term_2__fromMetaException(x_8, x_183); +x_187 = l___private_Lean_Elab_Term_3__fromMetaState(x_8, x_41, x_184, x_145); +if (lean_is_scalar(x_185)) { + x_188 = lean_alloc_ctor(1, 2, 0); +} else { + x_188 = x_185; +} +lean_ctor_set(x_188, 0, x_186); +lean_ctor_set(x_188, 1, x_187); +return x_188; +} +} } } else { -lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; -lean_dec(x_31); +uint8_t x_189; +lean_dec(x_30); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_1); -x_186 = lean_ctor_get(x_154, 0); -lean_inc(x_186); -x_187 = lean_ctor_get(x_154, 1); -lean_inc(x_187); -if (lean_is_exclusive(x_154)) { - lean_ctor_release(x_154, 0); - lean_ctor_release(x_154, 1); - x_188 = x_154; -} else { - lean_dec_ref(x_154); - x_188 = lean_box(0); -} -lean_inc(x_9); -x_189 = l___private_Lean_Elab_Term_2__fromMetaException(x_9, x_142, x_186); -x_190 = l___private_Lean_Elab_Term_3__fromMetaState(x_142, x_9, x_42, x_187, x_148); -lean_dec(x_142); -if (lean_is_scalar(x_188)) { - x_191 = lean_alloc_ctor(1, 2, 0); -} else { - x_191 = x_188; -} -lean_ctor_set(x_191, 0, x_189); -lean_ctor_set(x_191, 1, x_190); -return x_191; +lean_dec(x_4); +lean_dec(x_2); +x_189 = !lean_is_exclusive(x_32); +if (x_189 == 0) +{ +return x_32; } +else +{ +lean_object* x_190; lean_object* x_191; lean_object* x_192; +x_190 = lean_ctor_get(x_32, 0); +x_191 = lean_ctor_get(x_32, 1); +lean_inc(x_191); +lean_inc(x_190); +lean_dec(x_32); +x_192 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_192, 0, x_190); +lean_ctor_set(x_192, 1, x_191); +return x_192; } } } else { -uint8_t x_192; -lean_dec(x_31); -lean_dec(x_17); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); +lean_object* x_193; lean_object* x_194; +lean_dec(x_28); +lean_dec(x_16); +x_193 = lean_unsigned_to_nat(1u); +x_194 = lean_nat_add(x_6, x_193); lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_1); -x_192 = !lean_is_exclusive(x_33); -if (x_192 == 0) -{ -return x_33; -} -else -{ -lean_object* x_193; lean_object* x_194; lean_object* x_195; -x_193 = lean_ctor_get(x_33, 0); -x_194 = lean_ctor_get(x_33, 1); -lean_inc(x_194); -lean_inc(x_193); -lean_dec(x_33); -x_195 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_195, 0, x_193); -lean_ctor_set(x_195, 1, x_194); -return x_195; -} -} -} -else -{ -lean_object* x_196; lean_object* x_197; -lean_dec(x_29); -lean_dec(x_17); -x_196 = lean_unsigned_to_nat(1u); -x_197 = lean_nat_add(x_7, x_196); -lean_dec(x_7); -x_7 = x_197; -x_10 = x_24; +x_6 = x_194; +x_9 = x_23; goto _start; } } @@ -22687,20 +24002,19 @@ goto _start; } else { -uint8_t x_199; lean_object* x_200; lean_object* x_201; -lean_dec(x_9); +uint8_t x_196; lean_object* x_197; lean_object* x_198; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_1); -x_199 = 0; -x_200 = lean_box(x_199); -x_201 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_201, 0, x_200); -lean_ctor_set(x_201, 1, x_10); -return x_201; +lean_dec(x_4); +lean_dec(x_2); +x_196 = 0; +x_197 = lean_box(x_196); +x_198 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_198, 0, x_197); +lean_ctor_set(x_198, 1, x_9); +return x_198; } } } @@ -22714,79 +24028,79 @@ x_5 = l_Lean_Expr_FindImpl_findM_x3f___main___at_Lean_Elab_Term_StructInst_Defau return x_5; } } -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___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_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___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_11; -x_11 = l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_4); -lean_dec(x_2); -return x_11; -} -} -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux(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_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_11; -} -} -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___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_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_4); -lean_dec(x_2); -return x_11; -} -} -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault(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; -x_9 = lean_unsigned_to_nat(0u); -x_10 = l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_9, x_9, x_7, x_8); +lean_object* x_10; +x_10 = l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_3); +lean_dec(x_1); return x_10; } } -lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault___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_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux(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_9; -x_9 = l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_4); -lean_dec(x_2); +lean_object* x_10; +x_10 = l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_10; +} +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___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_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_3); +lean_dec(x_1); +return x_10; +} +} +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault(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; lean_object* x_9; +x_8 = lean_unsigned_to_nat(0u); +x_9 = l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main(x_1, x_2, x_3, x_4, x_5, x_8, x_8, x_6, x_7); return x_9; } } +lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault___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_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_3); +lean_dec(x_1); +return x_8; +} +} lean_object* l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___main___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) { _start: { -lean_object* x_7; lean_object* x_65; -x_65 = lean_ctor_get(x_1, 2); -lean_inc(x_65); -if (lean_obj_tag(x_65) == 1) +lean_object* x_7; lean_object* x_99; +x_99 = lean_ctor_get(x_1, 2); +lean_inc(x_99); +if (lean_obj_tag(x_99) == 1) { -lean_object* x_66; lean_object* x_67; +lean_object* x_100; lean_object* x_101; lean_dec(x_2); lean_dec(x_1); -x_66 = lean_ctor_get(x_65, 0); -lean_inc(x_66); -lean_dec(x_65); -x_67 = l_Lean_Elab_Term_StructInst_DefaultFields_step___main(x_66, x_3, x_4, x_5, x_6); -return x_67; +x_100 = lean_ctor_get(x_99, 0); +lean_inc(x_100); +lean_dec(x_99); +x_101 = l_Lean_Elab_Term_StructInst_DefaultFields_step___main(x_100, x_3, x_4, x_5, x_6); +return x_101; } else { -lean_object* x_68; -lean_dec(x_65); -x_68 = lean_box(0); -x_7 = x_68; -goto block_64; +lean_object* x_102; +lean_dec(x_99); +x_102 = lean_box(0); +x_7 = x_102; +goto block_98; } -block_64: +block_98: { lean_object* x_8; lean_dec(x_7); @@ -22846,7 +24160,7 @@ x_22 = lean_unbox(x_21); lean_dec(x_21); if (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_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; x_23 = lean_ctor_get(x_20, 1); lean_inc(x_23); lean_dec(x_20); @@ -22861,159 +24175,300 @@ lean_inc(x_27); lean_dec(x_3); x_28 = l_Lean_Elab_Term_StructInst_DefaultFields_getFieldName(x_1); lean_dec(x_1); -x_29 = lean_unsigned_to_nat(0u); -x_30 = l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main(x_24, x_25, x_26, x_27, x_28, x_19, x_29, x_29, x_5, x_23); +x_29 = !lean_is_exclusive(x_5); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_5, 10); +lean_dec(x_30); +lean_ctor_set(x_5, 10, x_24); +x_31 = lean_unsigned_to_nat(0u); +x_32 = l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main(x_25, x_26, x_27, x_28, x_19, x_31, x_31, x_5, x_23); lean_dec(x_27); lean_dec(x_25); -if (lean_obj_tag(x_30) == 0) +if (lean_obj_tag(x_32) == 0) { -lean_object* x_31; uint8_t x_32; -x_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); -x_32 = lean_unbox(x_31); -if (x_32 == 0) +lean_object* x_33; uint8_t x_34; +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +x_34 = lean_unbox(x_33); +if (x_34 == 0) { -uint8_t x_33; -lean_dec(x_31); -x_33 = !lean_is_exclusive(x_30); -if (x_33 == 0) +uint8_t x_35; +lean_dec(x_33); +x_35 = !lean_is_exclusive(x_32); +if (x_35 == 0) { -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_30, 0); -lean_dec(x_34); -x_35 = lean_box(0); -x_36 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_4); -lean_ctor_set(x_30, 0, x_36); -return x_30; +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_32, 0); +lean_dec(x_36); +x_37 = lean_box(0); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_4); +lean_ctor_set(x_32, 0, x_38); +return x_32; } else { -lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_37 = lean_ctor_get(x_30, 1); -lean_inc(x_37); -lean_dec(x_30); -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_4); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_37); -return x_40; +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_39 = lean_ctor_get(x_32, 1); +lean_inc(x_39); +lean_dec(x_32); +x_40 = lean_box(0); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_4); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_39); +return x_42; } } else { -uint8_t x_41; +uint8_t x_43; lean_dec(x_4); -x_41 = !lean_is_exclusive(x_30); -if (x_41 == 0) +x_43 = !lean_is_exclusive(x_32); +if (x_43 == 0) { -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_30, 0); -lean_dec(x_42); -x_43 = lean_box(0); -x_44 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_44, 0, x_43); -lean_ctor_set(x_44, 1, x_31); -lean_ctor_set(x_30, 0, x_44); -return x_30; +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_32, 0); +lean_dec(x_44); +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_33); +lean_ctor_set(x_32, 0, x_46); +return x_32; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_45 = lean_ctor_get(x_30, 1); -lean_inc(x_45); -lean_dec(x_30); -x_46 = lean_box(0); -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_31); -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_45); -return x_48; +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_47 = lean_ctor_get(x_32, 1); +lean_inc(x_47); +lean_dec(x_32); +x_48 = lean_box(0); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_33); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_47); +return x_50; } } } else { -uint8_t x_49; +uint8_t x_51; lean_dec(x_4); -x_49 = !lean_is_exclusive(x_30); -if (x_49 == 0) +x_51 = !lean_is_exclusive(x_32); +if (x_51 == 0) { -return x_30; +return x_32; } else { -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_30, 0); -x_51 = lean_ctor_get(x_30, 1); -lean_inc(x_51); -lean_inc(x_50); -lean_dec(x_30); -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_50); -lean_ctor_set(x_52, 1, x_51); -return x_52; +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_32, 0); +x_53 = lean_ctor_get(x_32, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_32); +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_53; +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; uint8_t x_66; uint8_t x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_55 = lean_ctor_get(x_5, 0); +x_56 = lean_ctor_get(x_5, 1); +x_57 = lean_ctor_get(x_5, 2); +x_58 = lean_ctor_get(x_5, 3); +x_59 = lean_ctor_get(x_5, 4); +x_60 = lean_ctor_get(x_5, 5); +x_61 = lean_ctor_get(x_5, 6); +x_62 = lean_ctor_get(x_5, 7); +x_63 = lean_ctor_get(x_5, 8); +x_64 = lean_ctor_get(x_5, 9); +x_65 = lean_ctor_get_uint8(x_5, sizeof(void*)*11); +x_66 = lean_ctor_get_uint8(x_5, sizeof(void*)*11 + 1); +x_67 = lean_ctor_get_uint8(x_5, sizeof(void*)*11 + 2); +lean_inc(x_64); +lean_inc(x_63); +lean_inc(x_62); +lean_inc(x_61); +lean_inc(x_60); +lean_inc(x_59); +lean_inc(x_58); +lean_inc(x_57); +lean_inc(x_56); +lean_inc(x_55); +lean_dec(x_5); +x_68 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_68, 0, x_55); +lean_ctor_set(x_68, 1, x_56); +lean_ctor_set(x_68, 2, x_57); +lean_ctor_set(x_68, 3, x_58); +lean_ctor_set(x_68, 4, x_59); +lean_ctor_set(x_68, 5, x_60); +lean_ctor_set(x_68, 6, x_61); +lean_ctor_set(x_68, 7, x_62); +lean_ctor_set(x_68, 8, x_63); +lean_ctor_set(x_68, 9, x_64); +lean_ctor_set(x_68, 10, x_24); +lean_ctor_set_uint8(x_68, sizeof(void*)*11, x_65); +lean_ctor_set_uint8(x_68, sizeof(void*)*11 + 1, x_66); +lean_ctor_set_uint8(x_68, sizeof(void*)*11 + 2, x_67); +x_69 = lean_unsigned_to_nat(0u); +x_70 = l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main(x_25, x_26, x_27, x_28, x_19, x_69, x_69, x_68, x_23); +lean_dec(x_27); +lean_dec(x_25); +if (lean_obj_tag(x_70) == 0) +{ +lean_object* x_71; uint8_t x_72; +x_71 = lean_ctor_get(x_70, 0); +lean_inc(x_71); +x_72 = lean_unbox(x_71); +if (x_72 == 0) +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +lean_dec(x_71); +x_73 = lean_ctor_get(x_70, 1); +lean_inc(x_73); +if (lean_is_exclusive(x_70)) { + lean_ctor_release(x_70, 0); + lean_ctor_release(x_70, 1); + x_74 = x_70; +} else { + lean_dec_ref(x_70); + x_74 = lean_box(0); +} +x_75 = lean_box(0); +x_76 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_76, 0, x_75); +lean_ctor_set(x_76, 1, x_4); +if (lean_is_scalar(x_74)) { + x_77 = lean_alloc_ctor(0, 2, 0); +} else { + x_77 = x_74; +} +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_73); +return x_77; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; +lean_dec(x_4); +x_78 = lean_ctor_get(x_70, 1); +lean_inc(x_78); +if (lean_is_exclusive(x_70)) { + lean_ctor_release(x_70, 0); + lean_ctor_release(x_70, 1); + x_79 = x_70; +} else { + lean_dec_ref(x_70); + x_79 = lean_box(0); +} +x_80 = lean_box(0); +x_81 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_81, 0, x_80); +lean_ctor_set(x_81, 1, x_71); +if (lean_is_scalar(x_79)) { + x_82 = lean_alloc_ctor(0, 2, 0); +} else { + x_82 = x_79; +} +lean_ctor_set(x_82, 0, x_81); +lean_ctor_set(x_82, 1, x_78); +return x_82; +} +} +else +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; +lean_dec(x_4); +x_83 = lean_ctor_get(x_70, 0); +lean_inc(x_83); +x_84 = lean_ctor_get(x_70, 1); +lean_inc(x_84); +if (lean_is_exclusive(x_70)) { + lean_ctor_release(x_70, 0); + lean_ctor_release(x_70, 1); + x_85 = x_70; +} else { + lean_dec_ref(x_70); + x_85 = lean_box(0); +} +if (lean_is_scalar(x_85)) { + x_86 = lean_alloc_ctor(1, 2, 0); +} else { + x_86 = x_85; +} +lean_ctor_set(x_86, 0, x_83); +lean_ctor_set(x_86, 1, x_84); +return x_86; +} +} +} +else +{ +uint8_t x_87; lean_dec(x_19); lean_dec(x_5); lean_dec(x_3); lean_dec(x_1); -x_53 = !lean_is_exclusive(x_20); -if (x_53 == 0) +x_87 = !lean_is_exclusive(x_20); +if (x_87 == 0) { -lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_54 = lean_ctor_get(x_20, 0); -lean_dec(x_54); -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_4); -lean_ctor_set(x_20, 0, x_56); +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_20, 0); +lean_dec(x_88); +x_89 = lean_box(0); +x_90 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_90, 1, x_4); +lean_ctor_set(x_20, 0, x_90); return x_20; } else { -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_57 = lean_ctor_get(x_20, 1); -lean_inc(x_57); +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_91 = lean_ctor_get(x_20, 1); +lean_inc(x_91); lean_dec(x_20); -x_58 = lean_box(0); -x_59 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_59, 0, x_58); -lean_ctor_set(x_59, 1, x_4); -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_59); -lean_ctor_set(x_60, 1, x_57); -return x_60; +x_92 = lean_box(0); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_92); +lean_ctor_set(x_93, 1, x_4); +x_94 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_94, 0, x_93); +lean_ctor_set(x_94, 1, x_91); +return x_94; } } } else { -lean_object* x_61; lean_object* x_62; lean_object* x_63; +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_dec(x_18); lean_dec(x_5); lean_dec(x_3); lean_dec(x_1); -x_61 = lean_box(0); -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_61); -lean_ctor_set(x_62, 1, x_4); -x_63 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_63, 0, x_62); -lean_ctor_set(x_63, 1, x_6); -return x_63; +x_95 = lean_box(0); +x_96 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_96, 0, x_95); +lean_ctor_set(x_96, 1, x_4); +x_97 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_97, 0, x_96); +lean_ctor_set(x_97, 1, x_6); +return x_97; } } } @@ -23442,7 +24897,7 @@ x_61 = l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___closed__ x_62 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_62, 0, x_60); lean_ctor_set(x_62, 1, x_61); -x_63 = l_Lean_Elab_Term_throwError___rarg(x_56, x_62, x_6, x_11); +x_63 = l_Lean_Elab_Term_throwErrorAt___rarg(x_56, x_62, x_6, x_11); lean_dec(x_56); x_64 = !lean_is_exclusive(x_63); if (x_64 == 0) @@ -23618,7 +25073,7 @@ x_102 = l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___closed_ x_103 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_103, 0, x_101); lean_ctor_set(x_103, 1, x_102); -x_104 = l_Lean_Elab_Term_throwError___rarg(x_97, x_103, x_6, x_69); +x_104 = l_Lean_Elab_Term_throwErrorAt___rarg(x_97, x_103, x_6, x_69); lean_dec(x_97); x_105 = lean_ctor_get(x_104, 0); lean_inc(x_105); @@ -23805,7 +25260,7 @@ lean_object* x_6; lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_6 = l___private_Lean_Elab_StructInst_5__getStructName(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Lean_Elab_StructInst_5__getStructName___rarg(x_2, x_3, x_4, x_5); if (lean_obj_tag(x_6) == 0) { lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14; @@ -23823,51 +25278,49 @@ lean_dec(x_9); lean_inc(x_7); x_12 = l_Lean_isStructureLike(x_10, x_7); lean_inc(x_7); -lean_inc(x_1); x_13 = l___private_Lean_Elab_StructInst_7__mkStructView(x_1, x_7, x_3); if (x_12 == 0) { -lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t x_82; +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; lean_dec(x_13); lean_dec(x_2); -x_76 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_76, 0, x_7); -x_77 = l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__3; -x_78 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_78, 0, x_77); -lean_ctor_set(x_78, 1, x_76); -x_79 = l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__6; -x_80 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_80, 0, x_78); -lean_ctor_set(x_80, 1, x_79); -x_81 = l_Lean_Elab_Term_throwError___rarg(x_1, x_80, x_4, x_11); -lean_dec(x_1); -x_82 = !lean_is_exclusive(x_81); -if (x_82 == 0) +x_63 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_63, 0, x_7); +x_64 = l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__3; +x_65 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_63); +x_66 = l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__6; +x_67 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_67, 0, x_65); +lean_ctor_set(x_67, 1, x_66); +x_68 = l_Lean_Elab_Term_throwError___rarg(x_67, x_4, x_11); +x_69 = !lean_is_exclusive(x_68); +if (x_69 == 0) { -return x_81; +return x_68; } else { -lean_object* x_83; lean_object* x_84; lean_object* x_85; -x_83 = lean_ctor_get(x_81, 0); -x_84 = lean_ctor_get(x_81, 1); -lean_inc(x_84); -lean_inc(x_83); -lean_dec(x_81); -x_85 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_85, 0, x_83); -lean_ctor_set(x_85, 1, x_84); -return x_85; +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_68, 0); +x_71 = lean_ctor_get(x_68, 1); +lean_inc(x_71); +lean_inc(x_70); +lean_dec(x_68); +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 { lean_dec(x_7); x_14 = x_11; -goto block_75; +goto block_62; } -block_75: +block_62: { if (lean_obj_tag(x_13) == 0) { @@ -23880,8 +25333,7 @@ x_16 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_16, 0, x_15); x_17 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_17, 0, x_16); -x_18 = l_Lean_Elab_Term_throwError___rarg(x_1, x_17, x_4, x_14); -lean_dec(x_1); +x_18 = l_Lean_Elab_Term_throwError___rarg(x_17, x_4, x_14); return x_18; } else @@ -23894,82 +25346,137 @@ lean_inc(x_4); x_20 = l___private_Lean_Elab_StructInst_19__expandStruct___main(x_19, x_4, x_14); if (lean_obj_tag(x_20) == 0) { -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; x_21 = lean_ctor_get(x_20, 0); lean_inc(x_21); x_22 = lean_ctor_get(x_20, 1); lean_inc(x_22); lean_dec(x_20); -x_23 = l_Lean_Elab_Term_getOptions(x_4, x_22); -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___private_Lean_Elab_StructInst_4__elabModifyOp___closed__2; -x_27 = l_Lean_checkTraceOption(x_24, x_26); -lean_dec(x_24); -if (x_27 == 0) +x_43 = l_Lean_Elab_Term_getOptions(x_4, x_22); +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_Lean_Elab_Term_getCurrRef(x_4, x_45); +x_47 = lean_ctor_get(x_46, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_46, 1); +lean_inc(x_48); +lean_dec(x_46); +x_49 = l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__2; +x_50 = l_Lean_checkTraceOption(x_44, x_49); +lean_dec(x_44); +if (x_50 == 0) { -lean_object* x_28; -lean_dec(x_1); -lean_inc(x_4); -x_28 = l___private_Lean_Elab_StructInst_24__elabStruct___main(x_21, x_2, x_4, x_25); -if (lean_obj_tag(x_28) == 0) -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; -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_31 = lean_ctor_get(x_29, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_29, 1); -lean_inc(x_32); -lean_dec(x_29); -x_33 = l_Lean_Elab_Term_StructInst_DefaultFields_propagate(x_32, x_4, x_30); -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; -x_35 = lean_ctor_get(x_33, 0); -lean_dec(x_35); -lean_ctor_set(x_33, 0, x_31); -return x_33; +lean_dec(x_47); +x_23 = x_48; +goto block_42; } else { -lean_object* x_36; lean_object* x_37; -x_36 = lean_ctor_get(x_33, 1); +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +lean_inc(x_21); +x_51 = l_Lean_Elab_Term_StructInst_formatStruct___main(x_21); +x_52 = l_Lean_Options_empty; +x_53 = l_Lean_Format_pretty(x_51, x_52); +x_54 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_54, 0, x_53); +x_55 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_55, 0, x_54); +lean_inc(x_4); +x_56 = l_Lean_Elab_Term_logTrace(x_49, x_47, x_55, x_4, x_48); +lean_dec(x_47); +x_57 = lean_ctor_get(x_56, 1); +lean_inc(x_57); +lean_dec(x_56); +x_23 = x_57; +goto block_42; +} +block_42: +{ +lean_object* x_24; +lean_inc(x_4); +x_24 = l___private_Lean_Elab_StructInst_24__elabStruct___main(x_21, x_2, x_4, x_23); +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +x_27 = lean_ctor_get(x_25, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_25, 1); +lean_inc(x_28); +lean_dec(x_25); +x_29 = l_Lean_Elab_Term_StructInst_DefaultFields_propagate(x_28, x_4, x_26); +if (lean_obj_tag(x_29) == 0) +{ +uint8_t x_30; +x_30 = !lean_is_exclusive(x_29); +if (x_30 == 0) +{ +lean_object* x_31; +x_31 = lean_ctor_get(x_29, 0); +lean_dec(x_31); +lean_ctor_set(x_29, 0, x_27); +return x_29; +} +else +{ +lean_object* x_32; lean_object* x_33; +x_32 = lean_ctor_get(x_29, 1); +lean_inc(x_32); +lean_dec(x_29); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_27); +lean_ctor_set(x_33, 1, x_32); +return x_33; +} +} +else +{ +uint8_t x_34; +lean_dec(x_27); +x_34 = !lean_is_exclusive(x_29); +if (x_34 == 0) +{ +return x_29; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_29, 0); +x_36 = lean_ctor_get(x_29, 1); lean_inc(x_36); -lean_dec(x_33); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_31); +lean_inc(x_35); +lean_dec(x_29); +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; } } +} else { uint8_t x_38; -lean_dec(x_31); -x_38 = !lean_is_exclusive(x_33); +lean_dec(x_4); +x_38 = !lean_is_exclusive(x_24); if (x_38 == 0) { -return x_33; +return x_24; } else { lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_33, 0); -x_40 = lean_ctor_get(x_33, 1); +x_39 = lean_ctor_get(x_24, 0); +x_40 = lean_ctor_get(x_24, 1); lean_inc(x_40); lean_inc(x_39); -lean_dec(x_33); +lean_dec(x_24); x_41 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_41, 0, x_39); lean_ctor_set(x_41, 1, x_40); @@ -23977,159 +25484,29 @@ return x_41; } } } -else -{ -uint8_t x_42; -lean_dec(x_4); -x_42 = !lean_is_exclusive(x_28); -if (x_42 == 0) -{ -return x_28; } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_28, 0); -x_44 = lean_ctor_get(x_28, 1); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_28); -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_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; -lean_inc(x_21); -x_46 = l_Lean_Elab_Term_StructInst_formatStruct___main(x_21); -x_47 = l_Lean_Options_empty; -x_48 = l_Lean_Format_pretty(x_46, x_47); -x_49 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_49, 0, x_48); -x_50 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_50, 0, x_49); -lean_inc(x_4); -x_51 = l_Lean_Elab_Term_logTrace(x_26, x_1, x_50, x_4, x_25); -lean_dec(x_1); -x_52 = lean_ctor_get(x_51, 1); -lean_inc(x_52); -lean_dec(x_51); -lean_inc(x_4); -x_53 = l___private_Lean_Elab_StructInst_24__elabStruct___main(x_21, x_2, x_4, x_52); -if (lean_obj_tag(x_53) == 0) -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_54 = lean_ctor_get(x_53, 0); -lean_inc(x_54); -x_55 = lean_ctor_get(x_53, 1); -lean_inc(x_55); -lean_dec(x_53); -x_56 = lean_ctor_get(x_54, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_54, 1); -lean_inc(x_57); -lean_dec(x_54); -x_58 = l_Lean_Elab_Term_StructInst_DefaultFields_propagate(x_57, x_4, x_55); -if (lean_obj_tag(x_58) == 0) -{ -uint8_t x_59; -x_59 = !lean_is_exclusive(x_58); -if (x_59 == 0) -{ -lean_object* x_60; -x_60 = lean_ctor_get(x_58, 0); -lean_dec(x_60); -lean_ctor_set(x_58, 0, x_56); -return x_58; -} -else -{ -lean_object* x_61; lean_object* x_62; -x_61 = lean_ctor_get(x_58, 1); -lean_inc(x_61); -lean_dec(x_58); -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_56); -lean_ctor_set(x_62, 1, x_61); -return x_62; -} -} -else -{ -uint8_t x_63; -lean_dec(x_56); -x_63 = !lean_is_exclusive(x_58); -if (x_63 == 0) -{ -return x_58; -} -else -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_58, 0); -x_65 = lean_ctor_get(x_58, 1); -lean_inc(x_65); -lean_inc(x_64); -lean_dec(x_58); -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_67; -lean_dec(x_4); -x_67 = !lean_is_exclusive(x_53); -if (x_67 == 0) -{ -return x_53; -} -else -{ -lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_68 = lean_ctor_get(x_53, 0); -x_69 = lean_ctor_get(x_53, 1); -lean_inc(x_69); -lean_inc(x_68); -lean_dec(x_53); -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; -} -} -} -} -else -{ -uint8_t x_71; +uint8_t x_58; lean_dec(x_4); lean_dec(x_2); -lean_dec(x_1); -x_71 = !lean_is_exclusive(x_20); -if (x_71 == 0) +x_58 = !lean_is_exclusive(x_20); +if (x_58 == 0) { return x_20; } else { -lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_72 = lean_ctor_get(x_20, 0); -x_73 = lean_ctor_get(x_20, 1); -lean_inc(x_73); -lean_inc(x_72); +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_20, 0); +x_60 = lean_ctor_get(x_20, 1); +lean_inc(x_60); +lean_inc(x_59); lean_dec(x_20); -x_74 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_74, 0, x_72); -lean_ctor_set(x_74, 1, x_73); -return x_74; +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_60); +return x_61; } } } @@ -24137,28 +25514,28 @@ return x_74; } else { -uint8_t x_86; +uint8_t x_73; lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_86 = !lean_is_exclusive(x_6); -if (x_86 == 0) +x_73 = !lean_is_exclusive(x_6); +if (x_73 == 0) { return x_6; } else { -lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_87 = lean_ctor_get(x_6, 0); -x_88 = lean_ctor_get(x_6, 1); -lean_inc(x_88); -lean_inc(x_87); +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_6, 0); +x_75 = lean_ctor_get(x_6, 1); +lean_inc(x_75); +lean_inc(x_74); lean_dec(x_6); -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; +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; } } } @@ -24263,99 +25640,99 @@ return x_2; lean_object* l_Lean_Elab_Term_StructInst_elabStructInst(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; -x_84 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); -x_85 = lean_ctor_get(x_84, 0); -lean_inc(x_85); -x_86 = lean_ctor_get(x_84, 1); -lean_inc(x_86); -lean_dec(x_84); -x_87 = l_Lean_Elab_Term_getEnv___rarg(x_86); -x_88 = lean_ctor_get(x_87, 1); +lean_object* x_5; lean_object* x_6; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; uint8_t x_92; +x_86 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); +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_ctor_get(x_87, 0); -lean_inc(x_89); -lean_dec(x_87); -x_90 = !lean_is_exclusive(x_88); -if (x_90 == 0) +lean_dec(x_86); +x_89 = l_Lean_Elab_Term_getEnv___rarg(x_88); +x_90 = lean_ctor_get(x_89, 1); +lean_inc(x_90); +x_91 = lean_ctor_get(x_89, 0); +lean_inc(x_91); +lean_dec(x_89); +x_92 = !lean_is_exclusive(x_90); +if (x_92 == 0) { -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_91 = lean_ctor_get(x_88, 5); -x_92 = lean_ctor_get(x_3, 0); -lean_inc(x_92); -x_93 = lean_ctor_get(x_92, 3); -lean_inc(x_93); -x_94 = lean_ctor_get(x_92, 4); +lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_93 = lean_ctor_get(x_90, 5); +x_94 = lean_ctor_get(x_3, 0); lean_inc(x_94); -lean_dec(x_92); -x_95 = lean_environment_main_module(x_89); -x_96 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_96, 0, x_95); -lean_ctor_set(x_96, 1, x_85); -lean_ctor_set(x_96, 2, x_93); -lean_ctor_set(x_96, 3, x_94); +x_95 = lean_ctor_get(x_94, 3); +lean_inc(x_95); +x_96 = lean_ctor_get(x_94, 4); +lean_inc(x_96); +lean_dec(x_94); +x_97 = lean_environment_main_module(x_91); +x_98 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_98, 0, x_97); +lean_ctor_set(x_98, 1, x_87); +lean_ctor_set(x_98, 2, x_95); +lean_ctor_set(x_98, 3, x_96); lean_inc(x_1); -x_97 = l___private_Lean_Elab_StructInst_26__expandStructInstExpectedType(x_1, x_96, x_91); -lean_dec(x_96); -x_98 = lean_ctor_get(x_97, 0); -lean_inc(x_98); -x_99 = lean_ctor_get(x_97, 1); -lean_inc(x_99); -lean_dec(x_97); -lean_ctor_set(x_88, 5, x_99); -x_5 = x_98; -x_6 = x_88; -goto block_83; +x_99 = l___private_Lean_Elab_StructInst_26__expandStructInstExpectedType(x_1, x_98, x_93); +lean_dec(x_98); +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); +lean_ctor_set(x_90, 5, x_101); +x_5 = x_100; +x_6 = x_90; +goto block_85; } else { -lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; -x_100 = lean_ctor_get(x_88, 0); -x_101 = lean_ctor_get(x_88, 1); -x_102 = lean_ctor_get(x_88, 2); -x_103 = lean_ctor_get(x_88, 3); -x_104 = lean_ctor_get(x_88, 4); -x_105 = lean_ctor_get(x_88, 5); +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; +x_102 = lean_ctor_get(x_90, 0); +x_103 = lean_ctor_get(x_90, 1); +x_104 = lean_ctor_get(x_90, 2); +x_105 = lean_ctor_get(x_90, 3); +x_106 = lean_ctor_get(x_90, 4); +x_107 = lean_ctor_get(x_90, 5); +lean_inc(x_107); +lean_inc(x_106); lean_inc(x_105); lean_inc(x_104); lean_inc(x_103); lean_inc(x_102); -lean_inc(x_101); -lean_inc(x_100); -lean_dec(x_88); -x_106 = lean_ctor_get(x_3, 0); -lean_inc(x_106); -x_107 = lean_ctor_get(x_106, 3); -lean_inc(x_107); -x_108 = lean_ctor_get(x_106, 4); +lean_dec(x_90); +x_108 = lean_ctor_get(x_3, 0); lean_inc(x_108); -lean_dec(x_106); -x_109 = lean_environment_main_module(x_89); -x_110 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_110, 0, x_109); -lean_ctor_set(x_110, 1, x_85); -lean_ctor_set(x_110, 2, x_107); -lean_ctor_set(x_110, 3, x_108); +x_109 = lean_ctor_get(x_108, 3); +lean_inc(x_109); +x_110 = lean_ctor_get(x_108, 4); +lean_inc(x_110); +lean_dec(x_108); +x_111 = lean_environment_main_module(x_91); +x_112 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_112, 0, x_111); +lean_ctor_set(x_112, 1, x_87); +lean_ctor_set(x_112, 2, x_109); +lean_ctor_set(x_112, 3, x_110); lean_inc(x_1); -x_111 = l___private_Lean_Elab_StructInst_26__expandStructInstExpectedType(x_1, x_110, x_105); -lean_dec(x_110); -x_112 = lean_ctor_get(x_111, 0); -lean_inc(x_112); -x_113 = lean_ctor_get(x_111, 1); -lean_inc(x_113); -lean_dec(x_111); -x_114 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_114, 0, x_100); -lean_ctor_set(x_114, 1, x_101); -lean_ctor_set(x_114, 2, x_102); -lean_ctor_set(x_114, 3, x_103); -lean_ctor_set(x_114, 4, x_104); -lean_ctor_set(x_114, 5, x_113); -x_5 = x_112; -x_6 = x_114; -goto block_83; +x_113 = l___private_Lean_Elab_StructInst_26__expandStructInstExpectedType(x_1, x_112, x_107); +lean_dec(x_112); +x_114 = lean_ctor_get(x_113, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_113, 1); +lean_inc(x_115); +lean_dec(x_113); +x_116 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_116, 0, x_102); +lean_ctor_set(x_116, 1, x_103); +lean_ctor_set(x_116, 2, x_104); +lean_ctor_set(x_116, 3, x_105); +lean_ctor_set(x_116, 4, x_106); +lean_ctor_set(x_116, 5, x_115); +x_5 = x_114; +x_6 = x_116; +goto block_85; } -block_83: +block_85: { if (lean_obj_tag(x_5) == 0) { @@ -24372,6 +25749,7 @@ x_9 = lean_ctor_get(x_7, 1); lean_inc(x_9); lean_dec(x_7); lean_inc(x_3); +lean_inc(x_1); x_10 = l___private_Lean_Elab_StructInst_2__getStructSource(x_1, x_3, x_9); if (lean_obj_tag(x_10) == 0) { @@ -24420,12 +25798,12 @@ lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_dec(x_14); lean_dec(x_11); lean_dec(x_2); +lean_dec(x_1); x_21 = lean_ctor_get(x_13, 1); lean_inc(x_21); lean_dec(x_13); x_22 = l_Lean_Elab_Term_StructInst_elabStructInst___closed__3; -x_23 = l_Lean_Elab_Term_throwError___rarg(x_1, x_22, x_3, x_21); -lean_dec(x_1); +x_23 = l_Lean_Elab_Term_throwError___rarg(x_22, x_3, x_21); return x_23; } } @@ -24506,12 +25884,12 @@ lean_ctor_set(x_37, 0, x_36); lean_ctor_set(x_37, 1, x_35); lean_ctor_set(x_3, 8, x_37); x_38 = 1; -x_39 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_38, x_38, x_33, x_3, x_32); +x_39 = l_Lean_Elab_Term_elabTerm(x_33, x_2, x_38, x_3, x_32); return x_39; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; uint8_t x_51; uint8_t x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; lean_object* x_57; +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; uint8_t x_51; uint8_t x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; lean_object* x_58; x_40 = lean_ctor_get(x_3, 0); x_41 = lean_ctor_get(x_3, 1); x_42 = lean_ctor_get(x_3, 2); @@ -24522,9 +25900,11 @@ x_46 = lean_ctor_get(x_3, 6); x_47 = lean_ctor_get(x_3, 7); x_48 = lean_ctor_get(x_3, 8); x_49 = lean_ctor_get(x_3, 9); -x_50 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); -x_51 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); -x_52 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); +x_50 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_51 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_52 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +x_53 = lean_ctor_get(x_3, 10); +lean_inc(x_53); lean_inc(x_49); lean_inc(x_48); lean_inc(x_47); @@ -24537,71 +25917,75 @@ lean_inc(x_41); lean_inc(x_40); lean_dec(x_3); lean_inc(x_33); -x_53 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_53, 0, x_1); -lean_ctor_set(x_53, 1, x_33); -x_54 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_54, 1, x_48); -x_55 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_55, 0, x_40); -lean_ctor_set(x_55, 1, x_41); -lean_ctor_set(x_55, 2, x_42); -lean_ctor_set(x_55, 3, x_43); -lean_ctor_set(x_55, 4, x_44); -lean_ctor_set(x_55, 5, x_45); -lean_ctor_set(x_55, 6, x_46); -lean_ctor_set(x_55, 7, x_47); -lean_ctor_set(x_55, 8, x_54); -lean_ctor_set(x_55, 9, x_49); -lean_ctor_set_uint8(x_55, sizeof(void*)*10, x_50); -lean_ctor_set_uint8(x_55, sizeof(void*)*10 + 1, x_51); -lean_ctor_set_uint8(x_55, sizeof(void*)*10 + 2, x_52); -x_56 = 1; -x_57 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_56, x_56, x_33, x_55, x_32); -return x_57; +x_54 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_54, 0, x_1); +lean_ctor_set(x_54, 1, x_33); +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_54); +lean_ctor_set(x_55, 1, x_48); +x_56 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_56, 0, x_40); +lean_ctor_set(x_56, 1, x_41); +lean_ctor_set(x_56, 2, x_42); +lean_ctor_set(x_56, 3, x_43); +lean_ctor_set(x_56, 4, x_44); +lean_ctor_set(x_56, 5, x_45); +lean_ctor_set(x_56, 6, x_46); +lean_ctor_set(x_56, 7, x_47); +lean_ctor_set(x_56, 8, x_55); +lean_ctor_set(x_56, 9, x_49); +lean_ctor_set(x_56, 10, x_53); +lean_ctor_set_uint8(x_56, sizeof(void*)*11, x_50); +lean_ctor_set_uint8(x_56, sizeof(void*)*11 + 1, x_51); +lean_ctor_set_uint8(x_56, sizeof(void*)*11 + 2, x_52); +x_57 = 1; +x_58 = l_Lean_Elab_Term_elabTerm(x_33, x_2, x_57, x_56, x_32); +return x_58; } } } else { -lean_object* x_58; uint8_t x_59; -x_58 = lean_ctor_get(x_5, 0); -lean_inc(x_58); +lean_object* x_59; uint8_t x_60; +x_59 = lean_ctor_get(x_5, 0); +lean_inc(x_59); lean_dec(x_5); -x_59 = !lean_is_exclusive(x_3); -if (x_59 == 0) +x_60 = !lean_is_exclusive(x_3); +if (x_60 == 0) { -lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; lean_object* x_64; -x_60 = lean_ctor_get(x_3, 8); -lean_inc(x_58); -x_61 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_61, 0, x_1); -lean_ctor_set(x_61, 1, x_58); -x_62 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_62, 0, x_61); -lean_ctor_set(x_62, 1, x_60); -lean_ctor_set(x_3, 8, x_62); -x_63 = 1; -x_64 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_63, x_63, x_58, x_3, x_6); -return x_64; +lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; lean_object* x_65; +x_61 = lean_ctor_get(x_3, 8); +lean_inc(x_59); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_1); +lean_ctor_set(x_62, 1, x_59); +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_61); +lean_ctor_set(x_3, 8, x_63); +x_64 = 1; +x_65 = l_Lean_Elab_Term_elabTerm(x_59, x_2, x_64, x_3, x_6); +return x_65; } else { -lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; uint8_t x_75; uint8_t x_76; uint8_t x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; lean_object* x_82; -x_65 = lean_ctor_get(x_3, 0); -x_66 = lean_ctor_get(x_3, 1); -x_67 = lean_ctor_get(x_3, 2); -x_68 = lean_ctor_get(x_3, 3); -x_69 = lean_ctor_get(x_3, 4); -x_70 = lean_ctor_get(x_3, 5); -x_71 = lean_ctor_get(x_3, 6); -x_72 = lean_ctor_get(x_3, 7); -x_73 = lean_ctor_get(x_3, 8); -x_74 = lean_ctor_get(x_3, 9); -x_75 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); -x_76 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); -x_77 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_t x_76; uint8_t x_77; uint8_t x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; lean_object* x_84; +x_66 = lean_ctor_get(x_3, 0); +x_67 = lean_ctor_get(x_3, 1); +x_68 = lean_ctor_get(x_3, 2); +x_69 = lean_ctor_get(x_3, 3); +x_70 = lean_ctor_get(x_3, 4); +x_71 = lean_ctor_get(x_3, 5); +x_72 = lean_ctor_get(x_3, 6); +x_73 = lean_ctor_get(x_3, 7); +x_74 = lean_ctor_get(x_3, 8); +x_75 = lean_ctor_get(x_3, 9); +x_76 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_77 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_78 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +x_79 = lean_ctor_get(x_3, 10); +lean_inc(x_79); +lean_inc(x_75); lean_inc(x_74); lean_inc(x_73); lean_inc(x_72); @@ -24611,32 +25995,32 @@ lean_inc(x_69); lean_inc(x_68); lean_inc(x_67); lean_inc(x_66); -lean_inc(x_65); lean_dec(x_3); -lean_inc(x_58); -x_78 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_78, 0, x_1); -lean_ctor_set(x_78, 1, x_58); -x_79 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_79, 0, x_78); -lean_ctor_set(x_79, 1, x_73); -x_80 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_80, 0, x_65); -lean_ctor_set(x_80, 1, x_66); -lean_ctor_set(x_80, 2, x_67); -lean_ctor_set(x_80, 3, x_68); -lean_ctor_set(x_80, 4, x_69); -lean_ctor_set(x_80, 5, x_70); -lean_ctor_set(x_80, 6, x_71); -lean_ctor_set(x_80, 7, x_72); -lean_ctor_set(x_80, 8, x_79); -lean_ctor_set(x_80, 9, x_74); -lean_ctor_set_uint8(x_80, sizeof(void*)*10, x_75); -lean_ctor_set_uint8(x_80, sizeof(void*)*10 + 1, x_76); -lean_ctor_set_uint8(x_80, sizeof(void*)*10 + 2, x_77); -x_81 = 1; -x_82 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_81, x_81, x_58, x_80, x_6); -return x_82; +lean_inc(x_59); +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_1); +lean_ctor_set(x_80, 1, x_59); +x_81 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_81, 0, x_80); +lean_ctor_set(x_81, 1, x_74); +x_82 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_82, 0, x_66); +lean_ctor_set(x_82, 1, x_67); +lean_ctor_set(x_82, 2, x_68); +lean_ctor_set(x_82, 3, x_69); +lean_ctor_set(x_82, 4, x_70); +lean_ctor_set(x_82, 5, x_71); +lean_ctor_set(x_82, 6, x_72); +lean_ctor_set(x_82, 7, x_73); +lean_ctor_set(x_82, 8, x_81); +lean_ctor_set(x_82, 9, x_75); +lean_ctor_set(x_82, 10, x_79); +lean_ctor_set_uint8(x_82, sizeof(void*)*11, x_76); +lean_ctor_set_uint8(x_82, sizeof(void*)*11 + 1, x_77); +lean_ctor_set_uint8(x_82, sizeof(void*)*11 + 2, x_78); +x_83 = 1; +x_84 = l_Lean_Elab_Term_elabTerm(x_59, x_2, x_83, x_82, x_6); +return x_84; } } } @@ -24826,18 +26210,18 @@ l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__27 = _init_l___privat lean_mark_persistent(l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__27); l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__28 = _init_l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__28(); lean_mark_persistent(l___private_Lean_Elab_StructInst_4__elabModifyOp___closed__28); -l___private_Lean_Elab_StructInst_5__getStructName___closed__1 = _init_l___private_Lean_Elab_StructInst_5__getStructName___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_5__getStructName___closed__1); -l___private_Lean_Elab_StructInst_5__getStructName___closed__2 = _init_l___private_Lean_Elab_StructInst_5__getStructName___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_5__getStructName___closed__2); -l___private_Lean_Elab_StructInst_5__getStructName___closed__3 = _init_l___private_Lean_Elab_StructInst_5__getStructName___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_5__getStructName___closed__3); -l___private_Lean_Elab_StructInst_5__getStructName___closed__4 = _init_l___private_Lean_Elab_StructInst_5__getStructName___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_5__getStructName___closed__4); -l___private_Lean_Elab_StructInst_5__getStructName___closed__5 = _init_l___private_Lean_Elab_StructInst_5__getStructName___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_5__getStructName___closed__5); -l___private_Lean_Elab_StructInst_5__getStructName___closed__6 = _init_l___private_Lean_Elab_StructInst_5__getStructName___closed__6(); -lean_mark_persistent(l___private_Lean_Elab_StructInst_5__getStructName___closed__6); +l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__1 = _init_l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__1); +l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__2 = _init_l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__2); +l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__3 = _init_l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__3); +l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__4 = _init_l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__4); +l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__5 = _init_l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__5); +l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6 = _init_l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6(); +lean_mark_persistent(l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__6); l_Lean_Elab_Term_StructInst_FieldLHS_inhabited___closed__1 = _init_l_Lean_Elab_Term_StructInst_FieldLHS_inhabited___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_StructInst_FieldLHS_inhabited___closed__1); l_Lean_Elab_Term_StructInst_FieldLHS_inhabited = _init_l_Lean_Elab_Term_StructInst_FieldLHS_inhabited(); diff --git a/stage0/stdlib/Lean/Elab/Structure.c b/stage0/stdlib/Lean/Elab/Structure.c index fd33dcc236..4031181c0d 100644 --- a/stage0/stdlib/Lean/Elab/Structure.c +++ b/stage0/stdlib/Lean/Elab/Structure.c @@ -17,37 +17,37 @@ extern lean_object* l_Lean_mkHole___closed__3; lean_object* l_Lean_Elab_Term_getEnv___rarg(lean_object*); extern lean_object* l_Lean_Name_toString___closed__1; lean_object* l_Lean_Elab_Command_elabStructure___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* l_Lean_Elab_Term_mkForall(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_removeUnused(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_18__collectUniversesFromFields___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkForall(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_removeUnused(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_18__collectUniversesFromFields___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_throwErrorAt___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_cases_on(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_6__findFieldInfo_x3f___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_expandOptDeclSig(lean_object*); lean_object* l___private_Lean_Elab_Structure_10__withFields___main___rarg___closed__1; extern lean_object* l_Lean_Expr_eq_x3f___closed__2; lean_object* l___private_Lean_Elab_Structure_10__withFields___main___rarg___closed__3; -lean_object* l___private_Lean_Elab_Structure_23__addCtorFields___boxed(lean_object*); +lean_object* l___private_Lean_Elab_Structure_23__addCtorFields___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_StructFieldInfo_inhabited; lean_object* l_Lean_Name_eraseMacroScopes(lean_object*); lean_object* l___private_Lean_Elab_Structure_28__mkAuxConstructions___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at___private_Lean_Elab_Structure_25__elabStructureView___spec__2(lean_object*); -lean_object* l_Lean_Elab_Command_addDecl(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_addDecl(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_instantiateMVars(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__4; lean_object* l_Lean_LocalDecl_userName(lean_object*); lean_object* l_unreachable_x21___rarg(lean_object*); -lean_object* l___private_Lean_Elab_Structure_17__levelMVarToParam___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_17__levelMVarToParam___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_9__withParents___main___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_10__withFields___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_22__collectLevelParamsInStructure___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_inferType(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_22__collectLevelParamsInStructure___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_inferType(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabStructure___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidFieldModifier___closed__14; lean_object* l_Lean_Elab_Command_checkValidFieldModifier___closed__5; uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_10__withFields___main___rarg___closed__9; extern lean_object* l_Option_get_x21___rarg___closed__3; -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Structure_25__elabStructureView___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getIdAt(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidFieldModifier___closed__3; lean_object* l___private_Lean_Elab_Structure_9__withParents___main___rarg___closed__1; @@ -55,20 +55,22 @@ lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Structure_25__elab lean_object* lean_array_fswap(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_type___elambda__1___closed__2; lean_object* l___private_Lean_Elab_Structure_2__expandCtor___closed__4; +lean_object* l___private_Lean_Elab_Structure_29__addDefaults___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_withDeclId___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Structure_25__elabStructureView___spec__6___closed__1; -lean_object* l___private_Lean_Elab_Structure_12__removeUnused(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_12__removeUnused(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; -lean_object* l___private_Lean_Elab_Structure_14__levelMVarToParamFVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_14__levelMVarToParamFVar(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Command_6__mkTermContext(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_9__withParents___main___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* l___private_Lean_Elab_Structure_16__levelMVarToParamAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_9__withParents___main___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___private_Lean_Elab_Structure_16__levelMVarToParamAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_23__addCtorFields___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_addInstance(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Command_3__setState(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_21__collectLevelParamsInFVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_29__addDefaults___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_21__collectLevelParamsInFVars(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_filterAux___main___at___private_Lean_Elab_Structure_25__elabStructureView___spec__5(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_mkLambda(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkLambda(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_instantiate1(lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); @@ -79,32 +81,32 @@ lean_object* l_Lean_Expr_getAppFn___main(lean_object*); lean_object* l_Lean_Elab_Command_checkValidFieldModifier___closed__7; lean_object* l___private_Lean_Elab_Structure_11__getResultUniverse___closed__3; lean_object* l_Lean_Elab_Term_withLocalContext___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_shouldInferResultUniverse(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_shouldInferResultUniverse(lean_object*, lean_object*, lean_object*); lean_object* l_Array_filterMAux___main___at___private_Lean_Elab_Structure_25__elabStructureView___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_11__synthesizeSyntheticMVarsAux___main(uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_25__elabStructureView___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__1(lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_withLetDecl___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_withLetDecl___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Command_structExplicitBinder___elambda__1___closed__2; lean_object* l_Lean_Elab_Command_applyVisibility(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_4__validStructType___boxed(lean_object*); lean_object* l___private_Lean_Elab_Structure_10__withFields___main___rarg___closed__8; -lean_object* l___private_Lean_Elab_Term_3__fromMetaState(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Term_3__fromMetaState(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_ensureHasType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_ensureHasType(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__4; -lean_object* l___private_Lean_Elab_Structure_22__collectLevelParamsInStructure(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_22__collectLevelParamsInStructure(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabStructure___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_whnf(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_whnf(lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___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*); lean_object* l_Lean_Elab_Command_StructFieldInfo_isFromParent___boxed(lean_object*); lean_object* l___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__2; -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_12__removeUnused___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_12__removeUnused___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__1___closed__1; lean_object* l_Lean_Elab_Command_mkDeclName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_10__withFields___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_5__checkParentIsStructure___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_5__checkParentIsStructure___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidFieldModifier___closed__12; lean_object* l___private_Lean_Elab_Structure_10__withFields___main(lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__1___closed__2; @@ -116,34 +118,34 @@ uint8_t l___private_Lean_Elab_Structure_7__containsFieldName(lean_object*, lean_ lean_object* l_Lean_Level_getLevelOffset___main(lean_object*); lean_object* l___private_Lean_Elab_Structure_13__withUsed(lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_12__removeUnused___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_12__removeUnused___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__1; extern lean_object* l_Lean_Expr_Inhabited___closed__1; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_8__processSubfields(lean_object*); -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Structure_15__levelMVarToParamFVars___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Structure_15__levelMVarToParamFVars___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_DepElim_getUnusedLevelParam___closed__1; extern lean_object* l_Lean_Parser_Term_type___elambda__1___closed__5; uint8_t l_Lean_Elab_Command_StructFieldInfo_isSubobject(lean_object*); -lean_object* l_Lean_Elab_Term_getLevel(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_getLevel(lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_Name_append___main(lean_object*, lean_object*); lean_object* l_Array_shrink___main___rarg(lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_21__collectLevelParamsInFVars___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_13__withUsed___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_21__collectLevelParamsInFVars___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_13__withUsed___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getStructureFieldsFlattened(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Command_throwAlreadyDeclaredUniverseLevel___rarg___closed__5; lean_object* l_Lean_Elab_Command_elabStructure___closed__8; -lean_object* l___private_Lean_Elab_Structure_11__getResultUniverse___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_11__getResultUniverse___closed__1; extern lean_object* l_Lean_Expr_heq_x3f___closed__2; -lean_object* l___private_Lean_Elab_Structure_8__processSubfields___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_8__processSubfields___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getFVarLocalDecl_x21(lean_object*, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_StructFieldInfo_inhabited___closed__1; -lean_object* l___private_Lean_Elab_Structure_16__levelMVarToParamAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_16__levelMVarToParamAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_fvarId_x21(lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Structure_25__elabStructureView___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Structure_25__elabStructureView___spec__6(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_addGlobalInstance___spec__1(lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidFieldModifier___closed__15; @@ -155,41 +157,38 @@ lean_object* l_Lean_Meta_mkId(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_10__withFields___main___rarg___closed__2; lean_object* l___private_Lean_Elab_Structure_1__defaultCtorName; lean_object* l___private_Lean_Elab_Structure_2__expandCtor___closed__2; -lean_object* l_Lean_Elab_Term_elabTermAux___main(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabStructure___lambda__3(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_LocalDecl_binderInfo(lean_object*); lean_object* l___private_Lean_Elab_Structure_2__expandCtor___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Structure_15__levelMVarToParamFVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_11__getResultUniverse(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Structure_15__levelMVarToParamFVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_11__getResultUniverse(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getId(lean_object*); -lean_object* l___private_Lean_Elab_Structure_25__elabStructureView___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_23__addCtorFields___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_14__levelMVarToParamFVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_25__elabStructureView___lambda__3(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_Array_iterateMAux___main___at___private_Lean_Elab_Structure_21__collectLevelParamsInFVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_throwError___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_21__collectLevelParamsInFVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_throwError___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_List_forM___main___at_Lean_Elab_Command_elabStructure___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__3; lean_object* l_Lean_Elab_Command_elabStructure___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___private_Lean_Elab_Structure_2__expandCtor___closed__1; -lean_object* l___private_Lean_Elab_Structure_5__checkParentIsStructure(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_5__checkParentIsStructure(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_StructFieldInfo_isSubobject___boxed(lean_object*); lean_object* l___private_Lean_Elab_Structure_11__getResultUniverse___closed__2; lean_object* l_Lean_Elab_Command_throwError___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at___private_Lean_Elab_Structure_25__elabStructureView___spec__4(lean_object*); uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_20__collectLevelParamsInFVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_withLocalDecl___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_withLocalDecl___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; lean_object* l_Lean_Level_getOffsetAux___main(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_8__processSubfields___main___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* l___private_Lean_Elab_Structure_8__processSubfields___main___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* l_Lean_Elab_Command_elabStructure___closed__5; -lean_object* l___private_Lean_Elab_Structure_25__elabStructureView___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_25__elabStructureView___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_29__addDefaults___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_9__withParents___main(lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_18__collectUniversesFromFields___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_18__collectUniversesFromFields___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_25__elabStructureView___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_13__withUsed___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_15__levelMVarToParamFVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_13__withUsed___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_15__levelMVarToParamFVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_isEmpty___rarg(lean_object*); lean_object* lean_mk_no_confusion(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidFieldModifier___closed__9; @@ -198,22 +197,21 @@ uint8_t l___private_Lean_Elab_Structure_4__validStructType(lean_object*); lean_object* l_Lean_Elab_Command_elabStructure___closed__3; lean_object* l_Lean_Elab_Command_accLevelAtCtor___main(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getLocalInsts(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_collectUsedFVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_collectUsedFVars(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_BinderInfo_isInstImplicit(uint8_t); lean_object* l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Inductive_34__mkAuxConstructions___closed__2; lean_object* l___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__5; -lean_object* l___private_Lean_Elab_Structure_19__updateResultingUniverse(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_19__updateResultingUniverse(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__7; extern lean_object* l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; -lean_object* l___private_Lean_Elab_Structure_17__levelMVarToParam(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_17__levelMVarToParam(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_registerClassAttr___closed__2; lean_object* l_Lean_LocalContext_updateBinderInfo(lean_object*, lean_object*, uint8_t); lean_object* l_Lean_Elab_Command_sortDeclLevelParams(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_12__removeUnused___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_12__removeUnused___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidFieldModifier___closed__11; extern lean_object* l___private_Lean_Elab_Quotation_5__explodeHeadPat___lambda__1___closed__2; -lean_object* l___private_Lean_Elab_Structure_29__addDefaults___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Command_2__getState(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__5; lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_25__elabStructureView___spec__8(lean_object*, lean_object*, lean_object*, lean_object*); @@ -226,13 +224,13 @@ lean_object* l___private_Lean_Elab_Structure_10__withFields___main___rarg___clos extern lean_object* l_Lean_Parser_Level_hole___elambda__1___closed__1; lean_object* lean_mk_projections(lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l___private_Lean_Elab_Structure_25__elabStructureView(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_12__removeUnused___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_12__removeUnused___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_type(lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__8; lean_object* l_Lean_Elab_Term_levelMVarToParam_x27(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Syntax_inhabited; lean_object* l_Lean_Name_getString_x21(lean_object*); -lean_object* l___private_Lean_Elab_Structure_23__addCtorFields(lean_object*); +lean_object* l___private_Lean_Elab_Structure_23__addCtorFields(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_19__updateResultingUniverse___closed__2; lean_object* l_Lean_Elab_Command_elabStructure___closed__6; lean_object* l___private_Lean_Elab_Structure_3__expandFields___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -241,7 +239,7 @@ lean_object* l_Lean_Elab_Term_setMCtx(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getLCtx(lean_object*, lean_object*); lean_object* l_Array_findMAux___main___at___private_Lean_Elab_Structure_6__findFieldInfo_x3f___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_1__defaultCtorName___closed__1; -lean_object* l___private_Lean_Elab_Structure_8__processSubfields___main___rarg(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_Structure_8__processSubfields___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_25__elabStructureView___closed__2; lean_object* l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__3; lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__2; @@ -261,13 +259,14 @@ lean_object* lean_panic_fn(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__1; lean_object* l_Lean_Elab_Command_elabStructure___closed__1; lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_22__collectLevelParamsInStructure___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_22__collectLevelParamsInStructure___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__6; lean_object* l_Lean_Elab_Command_checkValidFieldModifier___closed__4; lean_object* l_Lean_Elab_Command_elabStructure(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_Modifiers_addAttribute(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Command_structInstBinder___elambda__1___closed__2; -lean_object* l___private_Lean_Elab_Structure_25__elabStructureView___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_29__addDefaults___boxed(lean_object*); +lean_object* l___private_Lean_Elab_Structure_25__elabStructureView___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_expandDeclSig(lean_object*); lean_object* l_Lean_Elab_Command_checkValidFieldModifier___closed__2; lean_object* l___private_Lean_Elab_Structure_10__withFields___main___rarg___closed__11; @@ -278,8 +277,8 @@ lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__ex lean_object* l_Lean_mkForall(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Array_filterAux___main___at___private_Lean_Elab_Structure_25__elabStructureView___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_2__expandCtor___closed__6; -lean_object* l___private_Lean_Elab_Structure_29__addDefaults(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_20__collectLevelParamsInFVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_29__addDefaults(lean_object*); +lean_object* l___private_Lean_Elab_Structure_20__collectLevelParamsInFVar(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Command_8__getVarDecls(lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isNone(lean_object*); @@ -300,11 +299,11 @@ lean_object* l_Array_toList___rarg(lean_object*); extern lean_object* l_Lean_Expr_Inhabited; extern lean_object* l_Lean_Elab_Command_CtorView_inhabited___closed__1; lean_object* l___private_Lean_Elab_Structure_9__withParents___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_19__updateResultingUniverse___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_19__updateResultingUniverse___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__6; -lean_object* l___private_Lean_Elab_Structure_22__collectLevelParamsInStructure___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_22__collectLevelParamsInStructure___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_abstract(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_8__processSubfields___main___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* l___private_Lean_Elab_Structure_8__processSubfields___main___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* l_Lean_Elab_Command_checkValidFieldModifier___closed__13; lean_object* l___private_Lean_Elab_Structure_8__processSubfields___main(lean_object*); lean_object* l___private_Lean_Elab_Structure_23__addCtorFields___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -313,30 +312,27 @@ lean_object* l_Lean_Elab_Command_setEnv(lean_object*, lean_object*, lean_object* extern lean_object* l_Lean_Meta_mkProjection___main___closed__7; lean_object* l_List_forM___main___at_Lean_Elab_Command_elabStructure___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_10__withFields___main___rarg___closed__12; -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Structure_29__addDefaults___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Structure_29__addDefaults___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Elab_Command_Modifiers_isProtected(lean_object*); lean_object* l_Lean_Elab_Command_checkValidFieldModifier___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidFieldModifier___closed__1; -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Structure_16__levelMVarToParamAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Elab_Command_Modifiers_isPrivate(lean_object*); -lean_object* l_Lean_Elab_Term_mkAuxDefinition(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkAuxDefinition(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_27__addProjections___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_10__withFields(lean_object*); -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Structure_29__addDefaults___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_23__addCtorFields___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Structure_29__addDefaults___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); lean_object* l_Lean_Name_appendBefore(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_15__levelMVarToParamFVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_15__levelMVarToParamFVars(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkOptionalNode___closed__2; lean_object* l___private_Lean_Elab_Structure_27__addProjections(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_21__collectLevelParamsInFVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_21__collectLevelParamsInFVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_inferImplicit___main(lean_object*, lean_object*, uint8_t); lean_object* l___private_Lean_Elab_Structure_9__withParents___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_2__expandCtor___closed__3; lean_object* l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__1; lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__1___closed__3; -lean_object* l___private_Lean_Elab_Structure_12__removeUnused___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_29__addDefaults___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_12__removeUnused___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidCtorModifier(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__9; @@ -344,7 +340,7 @@ lean_object* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(lean_object*, lean_object* l_Lean_Name_toStringWithSep___main(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabStructure___closed__7; lean_object* l_Lean_Level_mkNaryMax___main(lean_object*); -lean_object* l___private_Lean_Elab_Structure_25__elabStructureView___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_25__elabStructureView___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__2; extern lean_object* l_Lean_Parser_Command_structImplicitBinder___elambda__1___closed__2; lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__4; @@ -353,12 +349,12 @@ lean_object* l___private_Lean_Elab_Structure_7__containsFieldName___boxed(lean_o lean_object* l___private_Lean_Elab_Structure_10__withFields___main___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___private_Lean_Elab_Structure_9__withParents___main___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_24__mkCtor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Structure_16__levelMVarToParamAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Structure_16__levelMVarToParamAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidFieldModifier(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Term_2__fromMetaException(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Term_2__fromMetaException(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidInductiveModifier(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_instantiateLevelMVars(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_instantiateLevelMVars(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_CollectLevelParams_main___main(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Command_liftTermElabM___rarg___closed__1; lean_object* l_Array_findMAux___main___at___private_Lean_Elab_Structure_6__findFieldInfo_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*); @@ -366,12 +362,12 @@ extern lean_object* l_Lean_Parser_Command_classTk___elambda__1___closed__2; lean_object* l_Lean_Elab_Command_checkValidFieldModifier___closed__6; lean_object* l_Lean_Elab_Term_getMCtx___rarg(lean_object*); uint8_t lean_is_class(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_18__collectUniversesFromFields___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_18__collectUniversesFromFields___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabStructure___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* l___private_Lean_Elab_Structure_25__elabStructureView___closed__3; uint8_t l_Lean_isStructure(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_28__mkAuxConstructions(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Structure_18__collectUniversesFromFields(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_18__collectUniversesFromFields(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* _init_l_Lean_Elab_Command_StructFieldInfo_inhabited___closed__1() { _start: @@ -2305,149 +2301,148 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Structure_5__checkParentIsStructure(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Structure_5__checkParentIsStructure(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; -x_5 = l_Lean_Expr_getAppFn___main(x_2); -if (lean_obj_tag(x_5) == 4) +lean_object* x_4; +x_4 = l_Lean_Expr_getAppFn___main(x_1); +if (lean_obj_tag(x_4) == 4) { -lean_object* x_6; lean_object* x_7; uint8_t x_8; -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -lean_dec(x_5); -x_7 = l_Lean_Elab_Term_getEnv___rarg(x_4); -x_8 = !lean_is_exclusive(x_7); -if (x_8 == 0) +lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +lean_dec(x_4); +x_6 = l_Lean_Elab_Term_getEnv___rarg(x_3); +x_7 = !lean_is_exclusive(x_6); +if (x_7 == 0) { -lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_9 = lean_ctor_get(x_7, 0); -x_10 = lean_ctor_get(x_7, 1); -lean_inc(x_6); -x_11 = l_Lean_isStructure(x_9, x_6); -if (x_11 == 0) +lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_8 = lean_ctor_get(x_6, 0); +x_9 = lean_ctor_get(x_6, 1); +lean_inc(x_5); +x_10 = l_Lean_isStructure(x_8, x_5); +if (x_10 == 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; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; -lean_free_object(x_7); -x_12 = l_Lean_Name_toString___closed__1; -x_13 = l_Lean_Name_toStringWithSep___main(x_12, x_6); -x_14 = lean_alloc_ctor(2, 1, 0); +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +lean_free_object(x_6); +x_11 = l_Lean_Name_toString___closed__1; +x_12 = l_Lean_Name_toStringWithSep___main(x_11, x_5); +x_13 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_13, 0, x_12); +x_14 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_14, 0, x_13); -x_15 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_15, 0, x_14); -x_16 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; -x_17 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_15); -x_18 = l___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__6; -x_19 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_19, 0, x_17); -lean_ctor_set(x_19, 1, x_18); -x_20 = l_Lean_Elab_Term_throwError___rarg(x_1, x_19, x_3, x_10); -x_21 = !lean_is_exclusive(x_20); -if (x_21 == 0) +x_15 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; +x_16 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_14); +x_17 = l___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__6; +x_18 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +x_19 = l_Lean_Elab_Term_throwError___rarg(x_18, x_2, x_9); +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) { -return x_20; +return x_19; } else { -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_20, 0); -x_23 = lean_ctor_get(x_20, 1); -lean_inc(x_23); +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_dec(x_20); -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -return x_24; +lean_inc(x_21); +lean_dec(x_19); +x_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +return x_23; } } else { -lean_dec(x_3); -lean_ctor_set(x_7, 0, x_6); -return x_7; +lean_dec(x_2); +lean_ctor_set(x_6, 0, x_5); +return x_6; } } else { -lean_object* x_25; lean_object* x_26; uint8_t x_27; -x_25 = lean_ctor_get(x_7, 0); -x_26 = lean_ctor_get(x_7, 1); -lean_inc(x_26); +lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_24 = lean_ctor_get(x_6, 0); +x_25 = lean_ctor_get(x_6, 1); lean_inc(x_25); -lean_dec(x_7); -lean_inc(x_6); -x_27 = l_Lean_isStructure(x_25, x_6); -if (x_27 == 0) +lean_inc(x_24); +lean_dec(x_6); +lean_inc(x_5); +x_26 = l_Lean_isStructure(x_24, x_5); +if (x_26 == 0) { -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_28 = l_Lean_Name_toString___closed__1; -x_29 = l_Lean_Name_toStringWithSep___main(x_28, x_6); -x_30 = lean_alloc_ctor(2, 1, 0); +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_27 = l_Lean_Name_toString___closed__1; +x_28 = l_Lean_Name_toStringWithSep___main(x_27, x_5); +x_29 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_29, 0, x_28); +x_30 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_30, 0, x_29); -x_31 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_31, 0, x_30); -x_32 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; -x_33 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_31); -x_34 = l___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__6; -x_35 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_35, 0, x_33); -lean_ctor_set(x_35, 1, x_34); -x_36 = l_Lean_Elab_Term_throwError___rarg(x_1, x_35, x_3, x_26); -x_37 = lean_ctor_get(x_36, 0); +x_31 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; +x_32 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_32, 1, x_30); +x_33 = l___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__6; +x_34 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +x_35 = l_Lean_Elab_Term_throwError___rarg(x_34, x_2, x_25); +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_35, 1); lean_inc(x_37); -x_38 = lean_ctor_get(x_36, 1); -lean_inc(x_38); -if (lean_is_exclusive(x_36)) { - lean_ctor_release(x_36, 0); - lean_ctor_release(x_36, 1); - x_39 = x_36; +if (lean_is_exclusive(x_35)) { + lean_ctor_release(x_35, 0); + lean_ctor_release(x_35, 1); + x_38 = x_35; } else { - lean_dec_ref(x_36); - x_39 = lean_box(0); + lean_dec_ref(x_35); + x_38 = lean_box(0); } -if (lean_is_scalar(x_39)) { - x_40 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_38)) { + x_39 = lean_alloc_ctor(1, 2, 0); } else { - x_40 = x_39; + x_39 = x_38; } -lean_ctor_set(x_40, 0, x_37); -lean_ctor_set(x_40, 1, x_38); +lean_ctor_set(x_39, 0, x_36); +lean_ctor_set(x_39, 1, x_37); +return x_39; +} +else +{ +lean_object* x_40; +lean_dec(x_2); +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_5); +lean_ctor_set(x_40, 1, x_25); return x_40; } -else -{ -lean_object* x_41; -lean_dec(x_3); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_6); -lean_ctor_set(x_41, 1, x_26); -return x_41; -} } } else { -lean_object* x_42; lean_object* x_43; -lean_dec(x_5); -x_42 = l___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__3; -x_43 = l_Lean_Elab_Term_throwError___rarg(x_1, x_42, x_3, x_4); -return x_43; +lean_object* x_41; lean_object* x_42; +lean_dec(x_4); +x_41 = l___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__3; +x_42 = l_Lean_Elab_Term_throwError___rarg(x_41, x_2, x_3); +return x_42; } } } -lean_object* l___private_Lean_Elab_Structure_5__checkParentIsStructure___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Structure_5__checkParentIsStructure___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; -x_5 = l___private_Lean_Elab_Structure_5__checkParentIsStructure(x_1, x_2, x_3, x_4); -lean_dec(x_2); +lean_object* x_4; +x_4 = l___private_Lean_Elab_Structure_5__checkParentIsStructure(x_1, x_2, x_3); lean_dec(x_1); -return x_5; +return x_4; } } lean_object* l_Array_findMAux___main___at___private_Lean_Elab_Structure_6__findFieldInfo_x3f___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { @@ -2554,27 +2549,27 @@ x_4 = lean_box(x_3); return x_4; } } -lean_object* l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___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* l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___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) { _start: { -lean_object* x_13; lean_object* x_14; uint8_t x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +lean_object* x_12; lean_object* x_13; uint8_t x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_inc(x_2); -x_13 = l_Lean_Name_append___main(x_1, x_2); -x_14 = lean_box(0); -x_15 = 1; -x_16 = 0; -x_17 = lean_alloc_ctor(0, 4, 2); -lean_ctor_set(x_17, 0, x_2); -lean_ctor_set(x_17, 1, x_13); -lean_ctor_set(x_17, 2, x_10); -lean_ctor_set(x_17, 3, x_14); -lean_ctor_set_uint8(x_17, sizeof(void*)*4, x_15); -lean_ctor_set_uint8(x_17, sizeof(void*)*4 + 1, x_16); -x_18 = lean_array_push(x_3, x_17); -x_19 = lean_unsigned_to_nat(1u); -x_20 = lean_nat_add(x_4, x_19); -x_21 = l___private_Lean_Elab_Structure_8__processSubfields___main___rarg(x_5, x_1, x_6, x_7, x_8, x_20, x_18, x_9, x_11, x_12); -return x_21; +x_12 = l_Lean_Name_append___main(x_1, x_2); +x_13 = lean_box(0); +x_14 = 1; +x_15 = 0; +x_16 = lean_alloc_ctor(0, 4, 2); +lean_ctor_set(x_16, 0, x_2); +lean_ctor_set(x_16, 1, x_12); +lean_ctor_set(x_16, 2, x_9); +lean_ctor_set(x_16, 3, x_13); +lean_ctor_set_uint8(x_16, sizeof(void*)*4, x_14); +lean_ctor_set_uint8(x_16, sizeof(void*)*4 + 1, x_15); +x_17 = lean_array_push(x_3, x_16); +x_18 = lean_unsigned_to_nat(1u); +x_19 = lean_nat_add(x_4, x_18); +x_20 = l___private_Lean_Elab_Structure_8__processSubfields___main___rarg(x_1, x_5, x_6, x_7, x_19, x_17, x_8, x_10, x_11); +return x_20; } } lean_object* _init_l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__1() { @@ -2633,292 +2628,280 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Structure_8__processSubfields___main___rarg(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___private_Lean_Elab_Structure_8__processSubfields___main___rarg(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_11; uint8_t x_12; -x_11 = lean_array_get_size(x_5); -x_12 = lean_nat_dec_lt(x_6, x_11); -lean_dec(x_11); -if (x_12 == 0) +lean_object* x_10; uint8_t x_11; +x_10 = lean_array_get_size(x_4); +x_11 = lean_nat_dec_lt(x_5, x_10); +lean_dec(x_10); +if (x_11 == 0) { -lean_object* x_13; -lean_dec(x_6); +lean_object* x_12; lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_13 = lean_apply_3(x_8, x_7, x_9, x_10); -return x_13; +x_12 = lean_apply_3(x_7, x_6, x_8, x_9); +return x_12; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; -x_14 = lean_array_fget(x_5, x_6); -x_15 = l_Lean_Elab_Term_getEnv___rarg(x_10); -x_16 = lean_ctor_get(x_15, 1); -lean_inc(x_16); -lean_dec(x_15); -x_17 = l___private_Lean_Elab_Structure_7__containsFieldName(x_7, x_14); -if (x_17 == 0) +lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; +x_13 = lean_array_fget(x_4, x_5); +x_14 = l_Lean_Elab_Term_getEnv___rarg(x_9); +x_15 = lean_ctor_get(x_14, 1); +lean_inc(x_15); +lean_dec(x_14); +x_16 = l___private_Lean_Elab_Structure_7__containsFieldName(x_6, x_13); +if (x_16 == 0) { -x_18 = x_16; -goto block_75; +x_17 = x_15; +goto block_74; } else { -lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; -lean_dec(x_8); +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_3); +lean_dec(x_4); lean_dec(x_2); -x_76 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_76, 0, x_14); -x_77 = l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__3; -x_78 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_78, 0, x_77); -lean_ctor_set(x_78, 1, x_76); -x_79 = l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__6; -x_80 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_80, 0, x_78); -lean_ctor_set(x_80, 1, x_79); -x_81 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_81, 0, x_4); -x_82 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_82, 0, x_80); -lean_ctor_set(x_82, 1, x_81); -x_83 = l_Lean_Elab_Command_throwAlreadyDeclaredUniverseLevel___rarg___closed__5; -x_84 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_84, 0, x_82); -lean_ctor_set(x_84, 1, x_83); -x_85 = l_Lean_Elab_Term_throwError___rarg(x_1, x_84, x_9, x_16); lean_dec(x_1); -x_86 = !lean_is_exclusive(x_85); -if (x_86 == 0) +x_75 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_75, 0, x_13); +x_76 = l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__3; +x_77 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_75); +x_78 = l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__6; +x_79 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_79, 0, x_77); +lean_ctor_set(x_79, 1, x_78); +x_80 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_80, 0, x_3); +x_81 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_81, 0, x_79); +lean_ctor_set(x_81, 1, x_80); +x_82 = l_Lean_Elab_Command_throwAlreadyDeclaredUniverseLevel___rarg___closed__5; +x_83 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_83, 0, x_81); +lean_ctor_set(x_83, 1, x_82); +x_84 = l_Lean_Elab_Term_throwError___rarg(x_83, x_8, x_15); +x_85 = !lean_is_exclusive(x_84); +if (x_85 == 0) { -return x_85; +return x_84; } else { -lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_87 = lean_ctor_get(x_85, 0); -x_88 = lean_ctor_get(x_85, 1); -lean_inc(x_88); +lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_86 = lean_ctor_get(x_84, 0); +x_87 = lean_ctor_get(x_84, 1); lean_inc(x_87); -lean_dec(x_85); -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; +lean_inc(x_86); +lean_dec(x_84); +x_88 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_88, 0, x_86); +lean_ctor_set(x_88, 1, x_87); +return x_88; } } -block_75: +block_74: { -lean_object* x_19; uint8_t x_20; -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = !lean_is_exclusive(x_19); -if (x_20 == 0) +lean_object* x_18; uint8_t x_19; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) { -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_21 = lean_ctor_get(x_19, 4); -x_22 = lean_ctor_get(x_9, 0); -lean_inc(x_22); -x_23 = l_Lean_TraceState_Inhabited___closed__1; -lean_ctor_set(x_19, 4, x_23); -lean_inc(x_14); -lean_inc(x_3); -x_24 = l_Lean_Meta_mkProjection___main(x_3, x_14, x_22, x_19); -if (lean_obj_tag(x_24) == 0) +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_20 = lean_ctor_get(x_18, 4); +x_21 = lean_ctor_get(x_8, 0); +lean_inc(x_21); +x_22 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_18, 4, x_22); +lean_inc(x_13); +lean_inc(x_2); +x_23 = l_Lean_Meta_mkProjection___main(x_2, x_13, x_21, x_18); +if (lean_obj_tag(x_23) == 0) { -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_25 = lean_ctor_get(x_24, 0); +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); -lean_dec(x_24); -lean_inc(x_9); -x_27 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_9, x_18, x_26, x_21); -lean_inc(x_9); -lean_inc(x_25); -x_28 = l_Lean_Elab_Term_inferType(x_1, x_25, x_9, x_27); -if (lean_obj_tag(x_28) == 0) +lean_dec(x_23); +lean_inc(x_8); +x_26 = l___private_Lean_Elab_Term_3__fromMetaState(x_8, x_17, x_25, x_20); +lean_inc(x_8); +lean_inc(x_24); +x_27 = l_Lean_Elab_Term_inferType(x_24, x_8, x_26); +if (lean_obj_tag(x_27) == 0) { -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_29 = lean_ctor_get(x_28, 0); +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_27, 1); lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); -lean_inc(x_30); -lean_dec(x_28); -lean_inc(x_1); -lean_inc(x_14); -x_31 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___lambda__1___boxed), 12, 9); -lean_closure_set(x_31, 0, x_2); -lean_closure_set(x_31, 1, x_14); -lean_closure_set(x_31, 2, x_7); -lean_closure_set(x_31, 3, x_6); -lean_closure_set(x_31, 4, x_1); -lean_closure_set(x_31, 5, x_3); -lean_closure_set(x_31, 6, x_4); -lean_closure_set(x_31, 7, x_5); -lean_closure_set(x_31, 8, x_8); -x_32 = l_Lean_Elab_Term_withLetDecl___rarg(x_1, x_14, x_29, x_25, x_31, x_9, x_30); -lean_dec(x_1); -return x_32; +lean_dec(x_27); +lean_inc(x_13); +x_30 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___lambda__1___boxed), 11, 8); +lean_closure_set(x_30, 0, x_1); +lean_closure_set(x_30, 1, x_13); +lean_closure_set(x_30, 2, x_6); +lean_closure_set(x_30, 3, x_5); +lean_closure_set(x_30, 4, x_2); +lean_closure_set(x_30, 5, x_3); +lean_closure_set(x_30, 6, x_4); +lean_closure_set(x_30, 7, x_7); +x_31 = l_Lean_Elab_Term_withLetDecl___rarg(x_13, x_28, x_24, x_30, x_8, x_29); +return x_31; } else { -uint8_t x_33; -lean_dec(x_25); -lean_dec(x_14); -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); -x_33 = !lean_is_exclusive(x_28); -if (x_33 == 0) -{ -return x_28; -} -else -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_28, 0); -x_35 = lean_ctor_get(x_28, 1); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_28); -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; -} -} -} -else -{ -uint8_t x_37; -lean_dec(x_14); -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); -x_37 = !lean_is_exclusive(x_24); -if (x_37 == 0) -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_38 = lean_ctor_get(x_24, 0); -x_39 = lean_ctor_get(x_24, 1); -lean_inc(x_9); -x_40 = l___private_Lean_Elab_Term_2__fromMetaException(x_9, x_1, x_38); -x_41 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_9, x_18, x_39, x_21); -lean_dec(x_1); -lean_ctor_set(x_24, 1, x_41); -lean_ctor_set(x_24, 0, x_40); -return x_24; -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_42 = lean_ctor_get(x_24, 0); -x_43 = lean_ctor_get(x_24, 1); -lean_inc(x_43); -lean_inc(x_42); +uint8_t x_32; lean_dec(x_24); -lean_inc(x_9); -x_44 = l___private_Lean_Elab_Term_2__fromMetaException(x_9, x_1, x_42); -x_45 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_9, x_18, x_43, x_21); +lean_dec(x_13); +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); -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; +x_32 = !lean_is_exclusive(x_27); +if (x_32 == 0) +{ +return x_27; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_27, 0); +x_34 = lean_ctor_get(x_27, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_27); +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 { -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_47 = lean_ctor_get(x_19, 0); -x_48 = lean_ctor_get(x_19, 1); -x_49 = lean_ctor_get(x_19, 2); -x_50 = lean_ctor_get(x_19, 3); -x_51 = lean_ctor_get(x_19, 4); -x_52 = lean_ctor_get(x_19, 5); -lean_inc(x_52); +uint8_t x_36; +lean_dec(x_13); +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); +x_36 = !lean_is_exclusive(x_23); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_37 = lean_ctor_get(x_23, 0); +x_38 = lean_ctor_get(x_23, 1); +lean_inc(x_8); +x_39 = l___private_Lean_Elab_Term_2__fromMetaException(x_8, x_37); +x_40 = l___private_Lean_Elab_Term_3__fromMetaState(x_8, x_17, x_38, x_20); +lean_ctor_set(x_23, 1, x_40); +lean_ctor_set(x_23, 0, x_39); +return x_23; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_41 = lean_ctor_get(x_23, 0); +x_42 = lean_ctor_get(x_23, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_23); +lean_inc(x_8); +x_43 = l___private_Lean_Elab_Term_2__fromMetaException(x_8, x_41); +x_44 = l___private_Lean_Elab_Term_3__fromMetaState(x_8, x_17, x_42, x_20); +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_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_46 = lean_ctor_get(x_18, 0); +x_47 = lean_ctor_get(x_18, 1); +x_48 = lean_ctor_get(x_18, 2); +x_49 = lean_ctor_get(x_18, 3); +x_50 = lean_ctor_get(x_18, 4); +x_51 = lean_ctor_get(x_18, 5); lean_inc(x_51); lean_inc(x_50); lean_inc(x_49); lean_inc(x_48); lean_inc(x_47); -lean_dec(x_19); -x_53 = lean_ctor_get(x_9, 0); -lean_inc(x_53); -x_54 = l_Lean_TraceState_Inhabited___closed__1; -x_55 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_55, 0, x_47); -lean_ctor_set(x_55, 1, x_48); -lean_ctor_set(x_55, 2, x_49); -lean_ctor_set(x_55, 3, x_50); -lean_ctor_set(x_55, 4, x_54); -lean_ctor_set(x_55, 5, x_52); -lean_inc(x_14); -lean_inc(x_3); -x_56 = l_Lean_Meta_mkProjection___main(x_3, x_14, x_53, x_55); -if (lean_obj_tag(x_56) == 0) +lean_inc(x_46); +lean_dec(x_18); +x_52 = lean_ctor_get(x_8, 0); +lean_inc(x_52); +x_53 = l_Lean_TraceState_Inhabited___closed__1; +x_54 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_54, 0, x_46); +lean_ctor_set(x_54, 1, x_47); +lean_ctor_set(x_54, 2, x_48); +lean_ctor_set(x_54, 3, x_49); +lean_ctor_set(x_54, 4, x_53); +lean_ctor_set(x_54, 5, x_51); +lean_inc(x_13); +lean_inc(x_2); +x_55 = l_Lean_Meta_mkProjection___main(x_2, x_13, x_52, x_54); +if (lean_obj_tag(x_55) == 0) { -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_57 = lean_ctor_get(x_56, 0); +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_55, 1); lean_inc(x_57); -x_58 = lean_ctor_get(x_56, 1); -lean_inc(x_58); -lean_dec(x_56); -lean_inc(x_9); -x_59 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_9, x_18, x_58, x_51); -lean_inc(x_9); -lean_inc(x_57); -x_60 = l_Lean_Elab_Term_inferType(x_1, x_57, x_9, x_59); -if (lean_obj_tag(x_60) == 0) +lean_dec(x_55); +lean_inc(x_8); +x_58 = l___private_Lean_Elab_Term_3__fromMetaState(x_8, x_17, x_57, x_50); +lean_inc(x_8); +lean_inc(x_56); +x_59 = l_Lean_Elab_Term_inferType(x_56, x_8, x_58); +if (lean_obj_tag(x_59) == 0) { -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_61 = lean_ctor_get(x_60, 0); +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_59, 1); lean_inc(x_61); -x_62 = lean_ctor_get(x_60, 1); -lean_inc(x_62); -lean_dec(x_60); -lean_inc(x_1); -lean_inc(x_14); -x_63 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___lambda__1___boxed), 12, 9); -lean_closure_set(x_63, 0, x_2); -lean_closure_set(x_63, 1, x_14); -lean_closure_set(x_63, 2, x_7); -lean_closure_set(x_63, 3, x_6); -lean_closure_set(x_63, 4, x_1); -lean_closure_set(x_63, 5, x_3); -lean_closure_set(x_63, 6, x_4); -lean_closure_set(x_63, 7, x_5); -lean_closure_set(x_63, 8, x_8); -x_64 = l_Lean_Elab_Term_withLetDecl___rarg(x_1, x_14, x_61, x_57, x_63, x_9, x_62); -lean_dec(x_1); -return x_64; +lean_dec(x_59); +lean_inc(x_13); +x_62 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___lambda__1___boxed), 11, 8); +lean_closure_set(x_62, 0, x_1); +lean_closure_set(x_62, 1, x_13); +lean_closure_set(x_62, 2, x_6); +lean_closure_set(x_62, 3, x_5); +lean_closure_set(x_62, 4, x_2); +lean_closure_set(x_62, 5, x_3); +lean_closure_set(x_62, 6, x_4); +lean_closure_set(x_62, 7, x_7); +x_63 = l_Lean_Elab_Term_withLetDecl___rarg(x_13, x_60, x_56, x_62, x_8, x_61); +return x_63; } else { -lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; -lean_dec(x_57); -lean_dec(x_14); -lean_dec(x_9); +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +lean_dec(x_56); +lean_dec(x_13); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -2927,63 +2910,62 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_65 = lean_ctor_get(x_60, 0); +x_64 = lean_ctor_get(x_59, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_59, 1); lean_inc(x_65); -x_66 = lean_ctor_get(x_60, 1); -lean_inc(x_66); -if (lean_is_exclusive(x_60)) { - lean_ctor_release(x_60, 0); - lean_ctor_release(x_60, 1); - x_67 = x_60; +if (lean_is_exclusive(x_59)) { + lean_ctor_release(x_59, 0); + lean_ctor_release(x_59, 1); + x_66 = x_59; } else { - lean_dec_ref(x_60); - x_67 = lean_box(0); + lean_dec_ref(x_59); + x_66 = lean_box(0); } -if (lean_is_scalar(x_67)) { - x_68 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_66)) { + x_67 = lean_alloc_ctor(1, 2, 0); } else { - x_68 = x_67; + x_67 = x_66; } -lean_ctor_set(x_68, 0, x_65); -lean_ctor_set(x_68, 1, x_66); -return x_68; +lean_ctor_set(x_67, 0, x_64); +lean_ctor_set(x_67, 1, x_65); +return x_67; } } 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_dec(x_14); -lean_dec(x_8); +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +lean_dec(x_13); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_69 = lean_ctor_get(x_56, 0); -lean_inc(x_69); -x_70 = lean_ctor_get(x_56, 1); -lean_inc(x_70); -if (lean_is_exclusive(x_56)) { - lean_ctor_release(x_56, 0); - lean_ctor_release(x_56, 1); - x_71 = x_56; -} else { - lean_dec_ref(x_56); - x_71 = lean_box(0); -} -lean_inc(x_9); -x_72 = l___private_Lean_Elab_Term_2__fromMetaException(x_9, x_1, x_69); -x_73 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_9, x_18, x_70, x_51); lean_dec(x_1); -if (lean_is_scalar(x_71)) { - x_74 = lean_alloc_ctor(1, 2, 0); +x_68 = lean_ctor_get(x_55, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_55, 1); +lean_inc(x_69); +if (lean_is_exclusive(x_55)) { + lean_ctor_release(x_55, 0); + lean_ctor_release(x_55, 1); + x_70 = x_55; } else { - x_74 = x_71; + lean_dec_ref(x_55); + x_70 = lean_box(0); } -lean_ctor_set(x_74, 0, x_72); -lean_ctor_set(x_74, 1, x_73); -return x_74; +lean_inc(x_8); +x_71 = l___private_Lean_Elab_Term_2__fromMetaException(x_8, x_68); +x_72 = l___private_Lean_Elab_Term_3__fromMetaState(x_8, x_17, x_69, x_50); +if (lean_is_scalar(x_70)) { + x_73 = lean_alloc_ctor(1, 2, 0); +} else { + x_73 = x_70; +} +lean_ctor_set(x_73, 0, x_71); +lean_ctor_set(x_73, 1, x_72); +return x_73; } } } @@ -2994,32 +2976,32 @@ lean_object* l___private_Lean_Elab_Structure_8__processSubfields___main(lean_obj _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_8__processSubfields___main___rarg), 10, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_8__processSubfields___main___rarg), 9, 0); return x_2; } } -lean_object* l___private_Lean_Elab_Structure_8__processSubfields___main___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* l___private_Lean_Elab_Structure_8__processSubfields___main___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) { _start: { -lean_object* x_13; -x_13 = l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___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); +lean_object* x_12; +x_12 = l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___lambda__1(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_4); -return x_13; +return x_12; } } -lean_object* l___private_Lean_Elab_Structure_8__processSubfields___rarg(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___private_Lean_Elab_Structure_8__processSubfields___rarg(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_11; -x_11 = l___private_Lean_Elab_Structure_8__processSubfields___main___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_11; +lean_object* x_10; +x_10 = l___private_Lean_Elab_Structure_8__processSubfields___main___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_10; } } lean_object* l___private_Lean_Elab_Structure_8__processSubfields(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_8__processSubfields___rarg), 10, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_8__processSubfields___rarg), 9, 0); return x_2; } } @@ -3033,35 +3015,35 @@ x_9 = l___private_Lean_Elab_Structure_9__withParents___main___rarg(x_2, x_8, x_4 return x_9; } } -lean_object* l___private_Lean_Elab_Structure_9__withParents___main___rarg___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* l___private_Lean_Elab_Structure_9__withParents___main___rarg___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) { _start: { -lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_12 = lean_ctor_get(x_1, 4); -lean_inc(x_12); +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_11 = lean_ctor_get(x_1, 4); +lean_inc(x_11); lean_inc(x_2); -x_13 = l_Lean_Name_append___main(x_12, x_2); -x_14 = lean_box(0); -x_15 = 2; -x_16 = 0; -lean_inc(x_9); -x_17 = lean_alloc_ctor(0, 4, 2); -lean_ctor_set(x_17, 0, x_2); -lean_ctor_set(x_17, 1, x_13); -lean_ctor_set(x_17, 2, x_9); -lean_ctor_set(x_17, 3, x_14); -lean_ctor_set_uint8(x_17, sizeof(void*)*4, x_15); -lean_ctor_set_uint8(x_17, sizeof(void*)*4 + 1, x_16); -x_18 = lean_array_push(x_3, x_17); +x_12 = l_Lean_Name_append___main(x_11, x_2); +x_13 = lean_box(0); +x_14 = 2; +x_15 = 0; +lean_inc(x_8); +x_16 = lean_alloc_ctor(0, 4, 2); +lean_ctor_set(x_16, 0, x_2); +lean_ctor_set(x_16, 1, x_12); +lean_ctor_set(x_16, 2, x_8); +lean_ctor_set(x_16, 3, x_13); +lean_ctor_set_uint8(x_16, sizeof(void*)*4, x_14); +lean_ctor_set_uint8(x_16, sizeof(void*)*4 + 1, x_15); +x_17 = lean_array_push(x_3, x_16); lean_inc(x_5); -x_19 = l_Lean_getStructureFieldsFlattened(x_4, x_5); -x_20 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_9__withParents___main___rarg___lambda__1___boxed), 6, 3); -lean_closure_set(x_20, 0, x_6); -lean_closure_set(x_20, 1, x_1); -lean_closure_set(x_20, 2, x_7); -x_21 = lean_unsigned_to_nat(0u); -x_22 = l___private_Lean_Elab_Structure_8__processSubfields___main___rarg(x_8, x_12, x_9, x_5, x_19, x_21, x_18, x_20, x_10, x_11); -return x_22; +x_18 = l_Lean_getStructureFieldsFlattened(x_4, x_5); +x_19 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_9__withParents___main___rarg___lambda__1___boxed), 6, 3); +lean_closure_set(x_19, 0, x_6); +lean_closure_set(x_19, 1, x_1); +lean_closure_set(x_19, 2, x_7); +x_20 = lean_unsigned_to_nat(0u); +x_21 = l___private_Lean_Elab_Structure_8__processSubfields___main___rarg(x_11, x_8, x_5, x_18, x_20, x_17, x_19, x_9, x_10); +return x_21; } } lean_object* _init_l___private_Lean_Elab_Structure_9__withParents___main___rarg___closed__1() { @@ -3092,191 +3074,426 @@ return x_10; } else { -lean_object* x_11; lean_object* x_12; +lean_object* x_11; uint8_t x_12; x_11 = lean_array_fget(x_7, x_2); lean_dec(x_7); +x_12 = !lean_is_exclusive(x_5); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_ctor_get(x_5, 10); +lean_dec(x_13); +lean_inc(x_11); +lean_ctor_set(x_5, 10, x_11); lean_inc(x_5); lean_inc(x_11); -x_12 = l_Lean_Elab_Term_elabType(x_11, x_5, x_6); -if (lean_obj_tag(x_12) == 0) +x_14 = l_Lean_Elab_Term_elabType(x_11, x_5, x_6); +if (lean_obj_tag(x_14) == 0) { -lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); -lean_inc(x_14); -lean_dec(x_12); -lean_inc(x_5); -x_15 = l___private_Lean_Elab_Structure_5__checkParentIsStructure(x_11, x_13, x_5, x_14); -if (lean_obj_tag(x_15) == 0) -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; -x_16 = lean_ctor_get(x_15, 0); +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); -lean_inc(x_17); -lean_dec(x_15); -x_18 = l_Lean_Name_eraseMacroScopes(x_16); -x_19 = l_Lean_Name_getString_x21(x_18); +lean_dec(x_14); +lean_inc(x_5); +x_17 = l___private_Lean_Elab_Structure_5__checkParentIsStructure(x_15, x_5, x_16); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = l_Lean_Name_eraseMacroScopes(x_18); +x_21 = l_Lean_Name_getString_x21(x_20); +lean_dec(x_20); +x_22 = l___private_Lean_Elab_Structure_9__withParents___main___rarg___closed__1; +x_23 = lean_string_append(x_22, x_21); +lean_dec(x_21); +x_24 = lean_box(0); +x_25 = lean_name_mk_string(x_24, x_23); +x_26 = l___private_Lean_Elab_Structure_7__containsFieldName(x_3, x_25); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; +lean_dec(x_11); +x_27 = l_Lean_Elab_Term_getEnv___rarg(x_19); +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); +lean_dec(x_27); +x_30 = lean_ctor_get_uint8(x_1, sizeof(void*)*11); +lean_inc(x_18); +lean_inc(x_28); +lean_inc(x_25); +x_31 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_9__withParents___main___rarg___lambda__2), 10, 7); +lean_closure_set(x_31, 0, x_1); +lean_closure_set(x_31, 1, x_25); +lean_closure_set(x_31, 2, x_3); +lean_closure_set(x_31, 3, x_28); +lean_closure_set(x_31, 4, x_18); +lean_closure_set(x_31, 5, x_2); +lean_closure_set(x_31, 6, x_4); +if (x_30 == 0) +{ +uint8_t x_32; lean_object* x_33; +lean_dec(x_28); lean_dec(x_18); -x_20 = l___private_Lean_Elab_Structure_9__withParents___main___rarg___closed__1; -x_21 = lean_string_append(x_20, x_19); -lean_dec(x_19); -x_22 = lean_box(0); -x_23 = lean_name_mk_string(x_22, x_21); -x_24 = l___private_Lean_Elab_Structure_7__containsFieldName(x_3, x_23); -if (x_24 == 0) -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; lean_object* x_29; -x_25 = l_Lean_Elab_Term_getEnv___rarg(x_17); -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); -x_28 = lean_ctor_get_uint8(x_1, sizeof(void*)*11); -lean_inc(x_11); -lean_inc(x_16); -lean_inc(x_26); -lean_inc(x_23); -x_29 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_9__withParents___main___rarg___lambda__2), 11, 8); -lean_closure_set(x_29, 0, x_1); -lean_closure_set(x_29, 1, x_23); -lean_closure_set(x_29, 2, x_3); -lean_closure_set(x_29, 3, x_26); -lean_closure_set(x_29, 4, x_16); -lean_closure_set(x_29, 5, x_2); -lean_closure_set(x_29, 6, x_4); -lean_closure_set(x_29, 7, x_11); -if (x_28 == 0) -{ -uint8_t x_30; lean_object* x_31; -lean_dec(x_26); -lean_dec(x_16); -x_30 = 0; -x_31 = l_Lean_Elab_Term_withLocalDecl___rarg(x_11, x_23, x_30, x_13, x_29, x_5, x_27); -lean_dec(x_11); -return x_31; +x_32 = 0; +x_33 = l_Lean_Elab_Term_withLocalDecl___rarg(x_25, x_32, x_15, x_31, x_5, x_29); +return x_33; } else { -uint8_t x_32; -x_32 = lean_is_class(x_26, x_16); -if (x_32 == 0) -{ -uint8_t x_33; lean_object* x_34; -x_33 = 0; -x_34 = l_Lean_Elab_Term_withLocalDecl___rarg(x_11, x_23, x_33, x_13, x_29, x_5, x_27); -lean_dec(x_11); -return x_34; -} -else +uint8_t x_34; +x_34 = lean_is_class(x_28, x_18); +if (x_34 == 0) { uint8_t x_35; lean_object* x_36; -x_35 = 3; -x_36 = l_Lean_Elab_Term_withLocalDecl___rarg(x_11, x_23, x_35, x_13, x_29, x_5, x_27); -lean_dec(x_11); +x_35 = 0; +x_36 = l_Lean_Elab_Term_withLocalDecl___rarg(x_25, x_35, x_15, x_31, x_5, x_29); return x_36; } -} -} else { -lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; -lean_dec(x_16); -lean_dec(x_13); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_37 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_37, 0, x_23); -x_38 = l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__3; -x_39 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_39, 0, x_38); -lean_ctor_set(x_39, 1, x_37); -x_40 = l_Lean_Elab_Command_throwAlreadyDeclaredUniverseLevel___rarg___closed__5; -x_41 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_41, 0, x_39); -lean_ctor_set(x_41, 1, x_40); -x_42 = l_Lean_Elab_Term_throwError___rarg(x_11, x_41, x_5, x_17); -lean_dec(x_11); -x_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) -{ -return x_42; -} -else -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_42, 0); -x_45 = lean_ctor_get(x_42, 1); -lean_inc(x_45); -lean_inc(x_44); -lean_dec(x_42); -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; +uint8_t x_37; lean_object* x_38; +x_37 = 3; +x_38 = l_Lean_Elab_Term_withLocalDecl___rarg(x_25, x_37, x_15, x_31, x_5, x_29); +return x_38; } } } else { -uint8_t x_47; -lean_dec(x_13); -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_47 = !lean_is_exclusive(x_15); -if (x_47 == 0) -{ -return x_15; -} -else -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_48 = lean_ctor_get(x_15, 0); -x_49 = lean_ctor_get(x_15, 1); -lean_inc(x_49); -lean_inc(x_48); +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; +lean_dec(x_18); lean_dec(x_15); -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_11); -lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_51 = !lean_is_exclusive(x_12); -if (x_51 == 0) +x_39 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_39, 0, x_25); +x_40 = l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__3; +x_41 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_39); +x_42 = l_Lean_Elab_Command_throwAlreadyDeclaredUniverseLevel___rarg___closed__5; +x_43 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +x_44 = l_Lean_Elab_Term_throwErrorAt___rarg(x_11, x_43, x_5, x_19); +lean_dec(x_11); +x_45 = !lean_is_exclusive(x_44); +if (x_45 == 0) { -return x_12; +return x_44; } else { -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_12, 0); -x_53 = lean_ctor_get(x_12, 1); -lean_inc(x_53); -lean_inc(x_52); -lean_dec(x_12); -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; +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_44, 0); +x_47 = lean_ctor_get(x_44, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_44); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; +} +} +} +else +{ +uint8_t x_49; +lean_dec(x_15); +lean_dec(x_5); +lean_dec(x_11); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_49 = !lean_is_exclusive(x_17); +if (x_49 == 0) +{ +return x_17; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_17, 0); +x_51 = lean_ctor_get(x_17, 1); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_17); +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +return x_52; +} +} +} +else +{ +uint8_t x_53; +lean_dec(x_5); +lean_dec(x_11); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_53 = !lean_is_exclusive(x_14); +if (x_53 == 0) +{ +return x_14; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_14, 0); +x_55 = lean_ctor_get(x_14, 1); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_14); +x_56 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_56, 0, x_54); +lean_ctor_set(x_56, 1, x_55); +return x_56; +} +} +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; uint8_t x_68; uint8_t x_69; lean_object* x_70; lean_object* x_71; +x_57 = lean_ctor_get(x_5, 0); +x_58 = lean_ctor_get(x_5, 1); +x_59 = lean_ctor_get(x_5, 2); +x_60 = lean_ctor_get(x_5, 3); +x_61 = lean_ctor_get(x_5, 4); +x_62 = lean_ctor_get(x_5, 5); +x_63 = lean_ctor_get(x_5, 6); +x_64 = lean_ctor_get(x_5, 7); +x_65 = lean_ctor_get(x_5, 8); +x_66 = lean_ctor_get(x_5, 9); +x_67 = lean_ctor_get_uint8(x_5, sizeof(void*)*11); +x_68 = lean_ctor_get_uint8(x_5, sizeof(void*)*11 + 1); +x_69 = lean_ctor_get_uint8(x_5, sizeof(void*)*11 + 2); +lean_inc(x_66); +lean_inc(x_65); +lean_inc(x_64); +lean_inc(x_63); +lean_inc(x_62); +lean_inc(x_61); +lean_inc(x_60); +lean_inc(x_59); +lean_inc(x_58); +lean_inc(x_57); +lean_dec(x_5); +lean_inc(x_11); +x_70 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_70, 0, x_57); +lean_ctor_set(x_70, 1, x_58); +lean_ctor_set(x_70, 2, x_59); +lean_ctor_set(x_70, 3, x_60); +lean_ctor_set(x_70, 4, x_61); +lean_ctor_set(x_70, 5, x_62); +lean_ctor_set(x_70, 6, x_63); +lean_ctor_set(x_70, 7, x_64); +lean_ctor_set(x_70, 8, x_65); +lean_ctor_set(x_70, 9, x_66); +lean_ctor_set(x_70, 10, x_11); +lean_ctor_set_uint8(x_70, sizeof(void*)*11, x_67); +lean_ctor_set_uint8(x_70, sizeof(void*)*11 + 1, x_68); +lean_ctor_set_uint8(x_70, sizeof(void*)*11 + 2, x_69); +lean_inc(x_70); +lean_inc(x_11); +x_71 = l_Lean_Elab_Term_elabType(x_11, x_70, x_6); +if (lean_obj_tag(x_71) == 0) +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_71, 1); +lean_inc(x_73); +lean_dec(x_71); +lean_inc(x_70); +x_74 = l___private_Lean_Elab_Structure_5__checkParentIsStructure(x_72, x_70, x_73); +if (lean_obj_tag(x_74) == 0) +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; +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 = l_Lean_Name_eraseMacroScopes(x_75); +x_78 = l_Lean_Name_getString_x21(x_77); +lean_dec(x_77); +x_79 = l___private_Lean_Elab_Structure_9__withParents___main___rarg___closed__1; +x_80 = lean_string_append(x_79, x_78); +lean_dec(x_78); +x_81 = lean_box(0); +x_82 = lean_name_mk_string(x_81, x_80); +x_83 = l___private_Lean_Elab_Structure_7__containsFieldName(x_3, x_82); +if (x_83 == 0) +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; lean_object* x_88; +lean_dec(x_11); +x_84 = l_Lean_Elab_Term_getEnv___rarg(x_76); +x_85 = lean_ctor_get(x_84, 0); +lean_inc(x_85); +x_86 = lean_ctor_get(x_84, 1); +lean_inc(x_86); +lean_dec(x_84); +x_87 = lean_ctor_get_uint8(x_1, sizeof(void*)*11); +lean_inc(x_75); +lean_inc(x_85); +lean_inc(x_82); +x_88 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_9__withParents___main___rarg___lambda__2), 10, 7); +lean_closure_set(x_88, 0, x_1); +lean_closure_set(x_88, 1, x_82); +lean_closure_set(x_88, 2, x_3); +lean_closure_set(x_88, 3, x_85); +lean_closure_set(x_88, 4, x_75); +lean_closure_set(x_88, 5, x_2); +lean_closure_set(x_88, 6, x_4); +if (x_87 == 0) +{ +uint8_t x_89; lean_object* x_90; +lean_dec(x_85); +lean_dec(x_75); +x_89 = 0; +x_90 = l_Lean_Elab_Term_withLocalDecl___rarg(x_82, x_89, x_72, x_88, x_70, x_86); +return x_90; +} +else +{ +uint8_t x_91; +x_91 = lean_is_class(x_85, x_75); +if (x_91 == 0) +{ +uint8_t x_92; lean_object* x_93; +x_92 = 0; +x_93 = l_Lean_Elab_Term_withLocalDecl___rarg(x_82, x_92, x_72, x_88, x_70, x_86); +return x_93; +} +else +{ +uint8_t x_94; lean_object* x_95; +x_94 = 3; +x_95 = l_Lean_Elab_Term_withLocalDecl___rarg(x_82, x_94, x_72, x_88, x_70, x_86); +return x_95; +} +} +} +else +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +lean_dec(x_75); +lean_dec(x_72); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_96 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_96, 0, x_82); +x_97 = l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__3; +x_98 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_98, 0, x_97); +lean_ctor_set(x_98, 1, x_96); +x_99 = l_Lean_Elab_Command_throwAlreadyDeclaredUniverseLevel___rarg___closed__5; +x_100 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_100, 0, x_98); +lean_ctor_set(x_100, 1, x_99); +x_101 = l_Lean_Elab_Term_throwErrorAt___rarg(x_11, x_100, x_70, x_76); +lean_dec(x_11); +x_102 = lean_ctor_get(x_101, 0); +lean_inc(x_102); +x_103 = lean_ctor_get(x_101, 1); +lean_inc(x_103); +if (lean_is_exclusive(x_101)) { + lean_ctor_release(x_101, 0); + lean_ctor_release(x_101, 1); + x_104 = x_101; +} else { + lean_dec_ref(x_101); + x_104 = lean_box(0); +} +if (lean_is_scalar(x_104)) { + x_105 = lean_alloc_ctor(1, 2, 0); +} else { + x_105 = x_104; +} +lean_ctor_set(x_105, 0, x_102); +lean_ctor_set(x_105, 1, x_103); +return x_105; +} +} +else +{ +lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; +lean_dec(x_72); +lean_dec(x_70); +lean_dec(x_11); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_106 = lean_ctor_get(x_74, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_74, 1); +lean_inc(x_107); +if (lean_is_exclusive(x_74)) { + lean_ctor_release(x_74, 0); + lean_ctor_release(x_74, 1); + x_108 = x_74; +} else { + lean_dec_ref(x_74); + x_108 = lean_box(0); +} +if (lean_is_scalar(x_108)) { + x_109 = lean_alloc_ctor(1, 2, 0); +} else { + x_109 = x_108; +} +lean_ctor_set(x_109, 0, x_106); +lean_ctor_set(x_109, 1, x_107); +return x_109; +} +} +else +{ +lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; +lean_dec(x_70); +lean_dec(x_11); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_110 = lean_ctor_get(x_71, 0); +lean_inc(x_110); +x_111 = lean_ctor_get(x_71, 1); +lean_inc(x_111); +if (lean_is_exclusive(x_71)) { + lean_ctor_release(x_71, 0); + lean_ctor_release(x_71, 1); + x_112 = x_71; +} else { + lean_dec_ref(x_71); + x_112 = lean_box(0); +} +if (lean_is_scalar(x_112)) { + x_113 = lean_alloc_ctor(1, 2, 0); +} else { + x_113 = x_112; +} +lean_ctor_set(x_113, 0, x_110); +lean_ctor_set(x_113, 1, x_111); +return x_113; } } } @@ -3318,202 +3535,196 @@ return x_2; lean_object* l___private_Lean_Elab_Structure_10__withFields___main___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_68; -x_68 = lean_ctor_get(x_1, 5); -lean_inc(x_68); -if (lean_obj_tag(x_68) == 0) +lean_object* x_5; lean_object* x_6; lean_object* x_109; +x_109 = lean_ctor_get(x_1, 5); +lean_inc(x_109); +if (lean_obj_tag(x_109) == 0) { -lean_object* x_69; -x_69 = lean_box(0); -x_5 = x_69; +lean_object* x_110; +x_110 = lean_box(0); +x_5 = x_110; x_6 = x_4; -goto block_67; +goto block_108; } else { -uint8_t x_70; -x_70 = !lean_is_exclusive(x_68); -if (x_70 == 0) +uint8_t x_111; +x_111 = !lean_is_exclusive(x_109); +if (x_111 == 0) { -lean_object* x_71; lean_object* x_72; -x_71 = lean_ctor_get(x_68, 0); +lean_object* x_112; lean_object* x_113; +x_112 = lean_ctor_get(x_109, 0); lean_inc(x_3); -lean_inc(x_71); -x_72 = l_Lean_Elab_Term_elabType(x_71, x_3, x_4); -if (lean_obj_tag(x_72) == 0) +x_113 = l_Lean_Elab_Term_elabType(x_112, x_3, x_4); +if (lean_obj_tag(x_113) == 0) { -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_72, 0); -lean_inc(x_73); -x_74 = lean_ctor_get(x_72, 1); -lean_inc(x_74); -lean_dec(x_72); +lean_object* x_114; lean_object* x_115; lean_object* x_116; +x_114 = lean_ctor_get(x_113, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_113, 1); +lean_inc(x_115); +lean_dec(x_113); lean_inc(x_3); lean_inc(x_2); -x_75 = l_Lean_Elab_Term_mkForall(x_71, x_2, x_73, x_3, x_74); -lean_dec(x_71); -if (lean_obj_tag(x_75) == 0) +x_116 = l_Lean_Elab_Term_mkForall(x_2, x_114, x_3, x_115); +if (lean_obj_tag(x_116) == 0) { -lean_object* x_76; lean_object* x_77; -x_76 = lean_ctor_get(x_75, 0); -lean_inc(x_76); -x_77 = lean_ctor_get(x_75, 1); -lean_inc(x_77); -lean_dec(x_75); -lean_ctor_set(x_68, 0, x_76); -x_5 = x_68; -x_6 = x_77; -goto block_67; +lean_object* x_117; lean_object* x_118; +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); +lean_ctor_set(x_109, 0, x_117); +x_5 = x_109; +x_6 = x_118; +goto block_108; } else { -uint8_t x_78; -lean_free_object(x_68); +uint8_t x_119; +lean_free_object(x_109); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_78 = !lean_is_exclusive(x_75); -if (x_78 == 0) +x_119 = !lean_is_exclusive(x_116); +if (x_119 == 0) { -return x_75; +return x_116; } else { -lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_79 = lean_ctor_get(x_75, 0); -x_80 = lean_ctor_get(x_75, 1); -lean_inc(x_80); -lean_inc(x_79); -lean_dec(x_75); -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; +lean_object* x_120; lean_object* x_121; lean_object* x_122; +x_120 = lean_ctor_get(x_116, 0); +x_121 = lean_ctor_get(x_116, 1); +lean_inc(x_121); +lean_inc(x_120); +lean_dec(x_116); +x_122 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_122, 0, x_120); +lean_ctor_set(x_122, 1, x_121); +return x_122; } } } else { -uint8_t x_82; -lean_free_object(x_68); -lean_dec(x_71); +uint8_t x_123; +lean_free_object(x_109); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_82 = !lean_is_exclusive(x_72); -if (x_82 == 0) +x_123 = !lean_is_exclusive(x_113); +if (x_123 == 0) { -return x_72; +return x_113; } else { -lean_object* x_83; lean_object* x_84; lean_object* x_85; -x_83 = lean_ctor_get(x_72, 0); -x_84 = lean_ctor_get(x_72, 1); -lean_inc(x_84); -lean_inc(x_83); -lean_dec(x_72); -x_85 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_85, 0, x_83); -lean_ctor_set(x_85, 1, x_84); -return x_85; +lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_124 = lean_ctor_get(x_113, 0); +x_125 = lean_ctor_get(x_113, 1); +lean_inc(x_125); +lean_inc(x_124); +lean_dec(x_113); +x_126 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +return x_126; } } } else { -lean_object* x_86; lean_object* x_87; -x_86 = lean_ctor_get(x_68, 0); -lean_inc(x_86); -lean_dec(x_68); +lean_object* x_127; lean_object* x_128; +x_127 = lean_ctor_get(x_109, 0); +lean_inc(x_127); +lean_dec(x_109); lean_inc(x_3); -lean_inc(x_86); -x_87 = l_Lean_Elab_Term_elabType(x_86, x_3, x_4); -if (lean_obj_tag(x_87) == 0) +x_128 = l_Lean_Elab_Term_elabType(x_127, x_3, x_4); +if (lean_obj_tag(x_128) == 0) { -lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_88 = lean_ctor_get(x_87, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_87, 1); -lean_inc(x_89); -lean_dec(x_87); +lean_object* x_129; lean_object* x_130; lean_object* x_131; +x_129 = lean_ctor_get(x_128, 0); +lean_inc(x_129); +x_130 = lean_ctor_get(x_128, 1); +lean_inc(x_130); +lean_dec(x_128); lean_inc(x_3); lean_inc(x_2); -x_90 = l_Lean_Elab_Term_mkForall(x_86, x_2, x_88, x_3, x_89); -lean_dec(x_86); -if (lean_obj_tag(x_90) == 0) +x_131 = l_Lean_Elab_Term_mkForall(x_2, x_129, x_3, x_130); +if (lean_obj_tag(x_131) == 0) { -lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_91 = lean_ctor_get(x_90, 0); -lean_inc(x_91); -x_92 = lean_ctor_get(x_90, 1); -lean_inc(x_92); -lean_dec(x_90); -x_93 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_93, 0, x_91); -x_5 = x_93; -x_6 = x_92; -goto block_67; +lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_132 = lean_ctor_get(x_131, 0); +lean_inc(x_132); +x_133 = lean_ctor_get(x_131, 1); +lean_inc(x_133); +lean_dec(x_131); +x_134 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_134, 0, x_132); +x_5 = x_134; +x_6 = x_133; +goto block_108; } else { -lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_94 = lean_ctor_get(x_90, 0); -lean_inc(x_94); -x_95 = lean_ctor_get(x_90, 1); -lean_inc(x_95); -if (lean_is_exclusive(x_90)) { - lean_ctor_release(x_90, 0); - lean_ctor_release(x_90, 1); - x_96 = x_90; +x_135 = lean_ctor_get(x_131, 0); +lean_inc(x_135); +x_136 = lean_ctor_get(x_131, 1); +lean_inc(x_136); +if (lean_is_exclusive(x_131)) { + lean_ctor_release(x_131, 0); + lean_ctor_release(x_131, 1); + x_137 = x_131; } else { - lean_dec_ref(x_90); - x_96 = lean_box(0); + lean_dec_ref(x_131); + x_137 = lean_box(0); } -if (lean_is_scalar(x_96)) { - x_97 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_137)) { + x_138 = lean_alloc_ctor(1, 2, 0); } else { - x_97 = x_96; + x_138 = x_137; } -lean_ctor_set(x_97, 0, x_94); -lean_ctor_set(x_97, 1, x_95); -return x_97; +lean_ctor_set(x_138, 0, x_135); +lean_ctor_set(x_138, 1, x_136); +return x_138; } } else { -lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; -lean_dec(x_86); +lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_98 = lean_ctor_get(x_87, 0); -lean_inc(x_98); -x_99 = lean_ctor_get(x_87, 1); -lean_inc(x_99); -if (lean_is_exclusive(x_87)) { - lean_ctor_release(x_87, 0); - lean_ctor_release(x_87, 1); - x_100 = x_87; +x_139 = lean_ctor_get(x_128, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_128, 1); +lean_inc(x_140); +if (lean_is_exclusive(x_128)) { + lean_ctor_release(x_128, 0); + lean_ctor_release(x_128, 1); + x_141 = x_128; } else { - lean_dec_ref(x_87); - x_100 = lean_box(0); + lean_dec_ref(x_128); + x_141 = lean_box(0); } -if (lean_is_scalar(x_100)) { - x_101 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_141)) { + x_142 = lean_alloc_ctor(1, 2, 0); } else { - x_101 = x_100; + x_142 = x_141; } -lean_ctor_set(x_101, 0, x_98); -lean_ctor_set(x_101, 1, x_99); -return x_101; +lean_ctor_set(x_142, 0, x_139); +lean_ctor_set(x_142, 1, x_140); +return x_142; } } } -block_67: +block_108: { lean_object* x_7; x_7 = lean_ctor_get(x_1, 6); @@ -3543,9 +3754,9 @@ lean_object* x_12; uint8_t x_13; lean_object* x_14; x_12 = lean_ctor_get(x_7, 0); x_13 = 1; lean_inc(x_3); -lean_inc(x_12); lean_inc(x_5); -x_14 = l_Lean_Elab_Term_elabTermAux___main(x_5, x_13, x_13, x_12, x_3, x_6); +lean_inc(x_12); +x_14 = l_Lean_Elab_Term_elabTerm(x_12, x_5, x_13, x_3, x_6); if (lean_obj_tag(x_14) == 0) { lean_object* x_15; lean_object* x_16; lean_object* x_17; @@ -3555,164 +3766,129 @@ x_16 = lean_ctor_get(x_14, 1); lean_inc(x_16); lean_dec(x_14); lean_inc(x_3); -x_17 = l_Lean_Elab_Term_mkLambda(x_12, x_2, x_15, x_3, x_16); +x_17 = l_Lean_Elab_Term_mkLambda(x_2, x_15, x_3, x_16); if (lean_obj_tag(x_17) == 0) { -lean_object* x_18; lean_object* x_19; lean_object* x_20; +lean_object* x_18; lean_object* x_19; uint8_t x_20; x_18 = lean_ctor_get(x_17, 0); lean_inc(x_18); x_19 = lean_ctor_get(x_17, 1); lean_inc(x_19); lean_dec(x_17); +x_20 = !lean_is_exclusive(x_3); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_3, 10); +lean_dec(x_21); +lean_ctor_set(x_3, 10, x_12); lean_inc(x_5); -x_20 = l_Lean_Elab_Term_ensureHasType(x_12, x_5, x_18, x_3, x_19); -if (lean_obj_tag(x_20) == 0) +x_22 = l_Lean_Elab_Term_ensureHasType(x_5, x_18, x_3, x_19); +if (lean_obj_tag(x_22) == 0) { -uint8_t x_21; -x_21 = !lean_is_exclusive(x_20); -if (x_21 == 0) +uint8_t x_23; +x_23 = !lean_is_exclusive(x_22); +if (x_23 == 0) { -lean_object* x_22; lean_object* x_23; -x_22 = lean_ctor_get(x_20, 0); -lean_ctor_set(x_7, 0, x_22); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_5); -lean_ctor_set(x_23, 1, x_7); -lean_ctor_set(x_20, 0, x_23); -return x_20; -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_24 = lean_ctor_get(x_20, 0); -x_25 = lean_ctor_get(x_20, 1); -lean_inc(x_25); -lean_inc(x_24); -lean_dec(x_20); +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_22, 0); lean_ctor_set(x_7, 0, x_24); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_5); -lean_ctor_set(x_26, 1, x_7); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_25); -return x_27; +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_5); +lean_ctor_set(x_25, 1, x_7); +lean_ctor_set(x_22, 0, x_25); +return x_22; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_26 = lean_ctor_get(x_22, 0); +x_27 = lean_ctor_get(x_22, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_22); +lean_ctor_set(x_7, 0, x_26); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_5); +lean_ctor_set(x_28, 1, x_7); +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; } } else { -uint8_t x_28; +uint8_t x_30; lean_free_object(x_7); lean_dec(x_5); -x_28 = !lean_is_exclusive(x_20); -if (x_28 == 0) +x_30 = !lean_is_exclusive(x_22); +if (x_30 == 0) { -return x_20; +return x_22; } else { -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_20, 0); -x_30 = lean_ctor_get(x_20, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_20); -x_31 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_31, 0, x_29); -lean_ctor_set(x_31, 1, x_30); -return x_31; +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_22, 0); +x_32 = lean_ctor_get(x_22, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_22); +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_32; -lean_free_object(x_7); -lean_dec(x_12); -lean_dec(x_5); -lean_dec(x_3); -x_32 = !lean_is_exclusive(x_17); -if (x_32 == 0) -{ -return x_17; -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_17, 0); -x_34 = lean_ctor_get(x_17, 1); -lean_inc(x_34); -lean_inc(x_33); -lean_dec(x_17); -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; -lean_free_object(x_7); -lean_dec(x_12); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_36 = !lean_is_exclusive(x_14); -if (x_36 == 0) -{ -return x_14; -} -else -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_14, 0); -x_38 = lean_ctor_get(x_14, 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; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; uint8_t x_45; uint8_t x_46; lean_object* x_47; lean_object* x_48; +x_34 = lean_ctor_get(x_3, 0); +x_35 = lean_ctor_get(x_3, 1); +x_36 = lean_ctor_get(x_3, 2); +x_37 = lean_ctor_get(x_3, 3); +x_38 = lean_ctor_get(x_3, 4); +x_39 = lean_ctor_get(x_3, 5); +x_40 = lean_ctor_get(x_3, 6); +x_41 = lean_ctor_get(x_3, 7); +x_42 = lean_ctor_get(x_3, 8); +x_43 = lean_ctor_get(x_3, 9); +x_44 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_45 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_46 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +lean_inc(x_43); +lean_inc(x_42); +lean_inc(x_41); +lean_inc(x_40); +lean_inc(x_39); lean_inc(x_38); lean_inc(x_37); -lean_dec(x_14); -x_39 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_39, 0, x_37); -lean_ctor_set(x_39, 1, x_38); -return x_39; -} -} -} -else -{ -lean_object* x_40; uint8_t x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_7, 0); -lean_inc(x_40); -lean_dec(x_7); -x_41 = 1; -lean_inc(x_3); -lean_inc(x_40); +lean_inc(x_36); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_3); +x_47 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_47, 0, x_34); +lean_ctor_set(x_47, 1, x_35); +lean_ctor_set(x_47, 2, x_36); +lean_ctor_set(x_47, 3, x_37); +lean_ctor_set(x_47, 4, x_38); +lean_ctor_set(x_47, 5, x_39); +lean_ctor_set(x_47, 6, x_40); +lean_ctor_set(x_47, 7, x_41); +lean_ctor_set(x_47, 8, x_42); +lean_ctor_set(x_47, 9, x_43); +lean_ctor_set(x_47, 10, x_12); +lean_ctor_set_uint8(x_47, sizeof(void*)*11, x_44); +lean_ctor_set_uint8(x_47, sizeof(void*)*11 + 1, x_45); +lean_ctor_set_uint8(x_47, sizeof(void*)*11 + 2, x_46); lean_inc(x_5); -x_42 = l_Lean_Elab_Term_elabTermAux___main(x_5, x_41, x_41, x_40, x_3, x_6); -if (lean_obj_tag(x_42) == 0) -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_42, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_42, 1); -lean_inc(x_44); -lean_dec(x_42); -lean_inc(x_3); -x_45 = l_Lean_Elab_Term_mkLambda(x_40, x_2, x_43, x_3, x_44); -if (lean_obj_tag(x_45) == 0) -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_45, 0); -lean_inc(x_46); -x_47 = lean_ctor_get(x_45, 1); -lean_inc(x_47); -lean_dec(x_45); -lean_inc(x_5); -x_48 = l_Lean_Elab_Term_ensureHasType(x_40, x_5, x_46, x_3, x_47); +x_48 = l_Lean_Elab_Term_ensureHasType(x_5, x_18, x_47, x_19); if (lean_obj_tag(x_48) == 0) { -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; x_49 = lean_ctor_get(x_48, 0); lean_inc(x_49); x_50 = lean_ctor_get(x_48, 1); @@ -3725,101 +3901,302 @@ if (lean_is_exclusive(x_48)) { lean_dec_ref(x_48); x_51 = lean_box(0); } -x_52 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_52, 0, x_49); -x_53 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_53, 0, x_5); -lean_ctor_set(x_53, 1, x_52); +lean_ctor_set(x_7, 0, x_49); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_5); +lean_ctor_set(x_52, 1, x_7); if (lean_is_scalar(x_51)) { - x_54 = lean_alloc_ctor(0, 2, 0); + x_53 = lean_alloc_ctor(0, 2, 0); } else { - x_54 = x_51; + x_53 = x_51; } -lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_54, 1, x_50); -return x_54; +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_50); +return x_53; } else { -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +lean_free_object(x_7); lean_dec(x_5); -x_55 = lean_ctor_get(x_48, 0); +x_54 = lean_ctor_get(x_48, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_48, 1); lean_inc(x_55); -x_56 = lean_ctor_get(x_48, 1); -lean_inc(x_56); if (lean_is_exclusive(x_48)) { lean_ctor_release(x_48, 0); lean_ctor_release(x_48, 1); - x_57 = x_48; + x_56 = x_48; } else { lean_dec_ref(x_48); - x_57 = lean_box(0); + x_56 = lean_box(0); } -if (lean_is_scalar(x_57)) { - x_58 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_56)) { + x_57 = lean_alloc_ctor(1, 2, 0); } else { - x_58 = x_57; + x_57 = x_56; +} +lean_ctor_set(x_57, 0, x_54); +lean_ctor_set(x_57, 1, x_55); +return x_57; } -lean_ctor_set(x_58, 0, x_55); -lean_ctor_set(x_58, 1, x_56); -return x_58; } } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; -lean_dec(x_40); +uint8_t x_58; +lean_free_object(x_7); +lean_dec(x_12); lean_dec(x_5); lean_dec(x_3); -x_59 = lean_ctor_get(x_45, 0); -lean_inc(x_59); -x_60 = lean_ctor_get(x_45, 1); +x_58 = !lean_is_exclusive(x_17); +if (x_58 == 0) +{ +return x_17; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_17, 0); +x_60 = lean_ctor_get(x_17, 1); lean_inc(x_60); -if (lean_is_exclusive(x_45)) { - lean_ctor_release(x_45, 0); - lean_ctor_release(x_45, 1); - x_61 = x_45; -} else { - lean_dec_ref(x_45); - x_61 = lean_box(0); +lean_inc(x_59); +lean_dec(x_17); +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_60); +return x_61; } -if (lean_is_scalar(x_61)) { - x_62 = lean_alloc_ctor(1, 2, 0); -} else { - x_62 = x_61; -} -lean_ctor_set(x_62, 0, x_59); -lean_ctor_set(x_62, 1, x_60); -return x_62; } } else { -lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; -lean_dec(x_40); +uint8_t x_62; +lean_free_object(x_7); +lean_dec(x_12); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_63 = lean_ctor_get(x_42, 0); -lean_inc(x_63); -x_64 = lean_ctor_get(x_42, 1); +x_62 = !lean_is_exclusive(x_14); +if (x_62 == 0) +{ +return x_14; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_14, 0); +x_64 = lean_ctor_get(x_14, 1); lean_inc(x_64); -if (lean_is_exclusive(x_42)) { - lean_ctor_release(x_42, 0); - lean_ctor_release(x_42, 1); - x_65 = x_42; -} else { - lean_dec_ref(x_42); - x_65 = lean_box(0); +lean_inc(x_63); +lean_dec(x_14); +x_65 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_65, 0, x_63); +lean_ctor_set(x_65, 1, x_64); +return x_65; } -if (lean_is_scalar(x_65)) { - x_66 = lean_alloc_ctor(1, 2, 0); -} else { - x_66 = x_65; } -lean_ctor_set(x_66, 0, x_63); -lean_ctor_set(x_66, 1, x_64); -return x_66; +} +else +{ +lean_object* x_66; uint8_t x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_7, 0); +lean_inc(x_66); +lean_dec(x_7); +x_67 = 1; +lean_inc(x_3); +lean_inc(x_5); +lean_inc(x_66); +x_68 = l_Lean_Elab_Term_elabTerm(x_66, x_5, x_67, x_3, x_6); +if (lean_obj_tag(x_68) == 0) +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_68, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_68, 1); +lean_inc(x_70); +lean_dec(x_68); +lean_inc(x_3); +x_71 = l_Lean_Elab_Term_mkLambda(x_2, x_69, x_3, x_70); +if (lean_obj_tag(x_71) == 0) +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; uint8_t x_85; uint8_t x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_71, 1); +lean_inc(x_73); +lean_dec(x_71); +x_74 = lean_ctor_get(x_3, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_3, 1); +lean_inc(x_75); +x_76 = lean_ctor_get(x_3, 2); +lean_inc(x_76); +x_77 = lean_ctor_get(x_3, 3); +lean_inc(x_77); +x_78 = lean_ctor_get(x_3, 4); +lean_inc(x_78); +x_79 = lean_ctor_get(x_3, 5); +lean_inc(x_79); +x_80 = lean_ctor_get(x_3, 6); +lean_inc(x_80); +x_81 = lean_ctor_get(x_3, 7); +lean_inc(x_81); +x_82 = lean_ctor_get(x_3, 8); +lean_inc(x_82); +x_83 = lean_ctor_get(x_3, 9); +lean_inc(x_83); +x_84 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_85 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_86 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +if (lean_is_exclusive(x_3)) { + lean_ctor_release(x_3, 0); + lean_ctor_release(x_3, 1); + lean_ctor_release(x_3, 2); + lean_ctor_release(x_3, 3); + lean_ctor_release(x_3, 4); + lean_ctor_release(x_3, 5); + lean_ctor_release(x_3, 6); + lean_ctor_release(x_3, 7); + lean_ctor_release(x_3, 8); + lean_ctor_release(x_3, 9); + lean_ctor_release(x_3, 10); + x_87 = x_3; +} else { + lean_dec_ref(x_3); + x_87 = lean_box(0); +} +if (lean_is_scalar(x_87)) { + x_88 = lean_alloc_ctor(0, 11, 3); +} else { + x_88 = x_87; +} +lean_ctor_set(x_88, 0, x_74); +lean_ctor_set(x_88, 1, x_75); +lean_ctor_set(x_88, 2, x_76); +lean_ctor_set(x_88, 3, x_77); +lean_ctor_set(x_88, 4, x_78); +lean_ctor_set(x_88, 5, x_79); +lean_ctor_set(x_88, 6, x_80); +lean_ctor_set(x_88, 7, x_81); +lean_ctor_set(x_88, 8, x_82); +lean_ctor_set(x_88, 9, x_83); +lean_ctor_set(x_88, 10, x_66); +lean_ctor_set_uint8(x_88, sizeof(void*)*11, x_84); +lean_ctor_set_uint8(x_88, sizeof(void*)*11 + 1, x_85); +lean_ctor_set_uint8(x_88, sizeof(void*)*11 + 2, x_86); +lean_inc(x_5); +x_89 = l_Lean_Elab_Term_ensureHasType(x_5, x_72, x_88, x_73); +if (lean_obj_tag(x_89) == 0) +{ +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_89, 0); +lean_inc(x_90); +x_91 = lean_ctor_get(x_89, 1); +lean_inc(x_91); +if (lean_is_exclusive(x_89)) { + lean_ctor_release(x_89, 0); + lean_ctor_release(x_89, 1); + x_92 = x_89; +} else { + lean_dec_ref(x_89); + x_92 = lean_box(0); +} +x_93 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_93, 0, x_90); +x_94 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_94, 0, x_5); +lean_ctor_set(x_94, 1, x_93); +if (lean_is_scalar(x_92)) { + x_95 = lean_alloc_ctor(0, 2, 0); +} else { + x_95 = x_92; +} +lean_ctor_set(x_95, 0, x_94); +lean_ctor_set(x_95, 1, x_91); +return x_95; +} +else +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; +lean_dec(x_5); +x_96 = lean_ctor_get(x_89, 0); +lean_inc(x_96); +x_97 = lean_ctor_get(x_89, 1); +lean_inc(x_97); +if (lean_is_exclusive(x_89)) { + lean_ctor_release(x_89, 0); + lean_ctor_release(x_89, 1); + x_98 = x_89; +} else { + lean_dec_ref(x_89); + x_98 = lean_box(0); +} +if (lean_is_scalar(x_98)) { + x_99 = lean_alloc_ctor(1, 2, 0); +} else { + x_99 = x_98; +} +lean_ctor_set(x_99, 0, x_96); +lean_ctor_set(x_99, 1, x_97); +return x_99; +} +} +else +{ +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; +lean_dec(x_66); +lean_dec(x_5); +lean_dec(x_3); +x_100 = lean_ctor_get(x_71, 0); +lean_inc(x_100); +x_101 = lean_ctor_get(x_71, 1); +lean_inc(x_101); +if (lean_is_exclusive(x_71)) { + lean_ctor_release(x_71, 0); + lean_ctor_release(x_71, 1); + x_102 = x_71; +} else { + lean_dec_ref(x_71); + x_102 = lean_box(0); +} +if (lean_is_scalar(x_102)) { + x_103 = lean_alloc_ctor(1, 2, 0); +} else { + x_103 = x_102; +} +lean_ctor_set(x_103, 0, x_100); +lean_ctor_set(x_103, 1, x_101); +return x_103; +} +} +else +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; +lean_dec(x_66); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_104 = lean_ctor_get(x_68, 0); +lean_inc(x_104); +x_105 = lean_ctor_get(x_68, 1); +lean_inc(x_105); +if (lean_is_exclusive(x_68)) { + lean_ctor_release(x_68, 0); + lean_ctor_release(x_68, 1); + x_106 = x_68; +} else { + lean_dec_ref(x_68); + x_106 = lean_box(0); +} +if (lean_is_scalar(x_106)) { + x_107 = lean_alloc_ctor(1, 2, 0); +} else { + x_107 = x_106; +} +lean_ctor_set(x_107, 0, x_104); +lean_ctor_set(x_107, 1, x_105); +return x_107; } } } @@ -3977,599 +4354,685 @@ return x_9; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; x_10 = lean_array_fget(x_1, x_2); -x_11 = lean_ctor_get(x_10, 3); +x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); -x_12 = lean_unsigned_to_nat(0u); -x_13 = l_Array_findMAux___main___at___private_Lean_Elab_Structure_6__findFieldInfo_x3f___spec__1(x_11, x_3, x_12); -if (lean_obj_tag(x_13) == 0) +x_12 = lean_ctor_get(x_10, 3); +lean_inc(x_12); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Array_findMAux___main___at___private_Lean_Elab_Structure_6__findFieldInfo_x3f___spec__1(x_12, x_3, x_13); +x_15 = !lean_is_exclusive(x_5); +if (x_15 == 0) { -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_14 = lean_ctor_get(x_10, 4); -lean_inc(x_14); -x_15 = l_Lean_Syntax_getArgs(x_14); -lean_dec(x_14); -lean_inc(x_10); -x_16 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_10__withFields___main___rarg___lambda__1), 4, 1); -lean_closure_set(x_16, 0, x_10); -lean_inc(x_5); -x_17 = l_Lean_Elab_Term_elabBinders___rarg(x_15, x_16, x_5, x_6); -lean_dec(x_15); -if (lean_obj_tag(x_17) == 0) -{ -lean_object* x_18; lean_object* x_19; -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -if (lean_obj_tag(x_19) == 0) -{ -lean_object* x_20; -x_20 = lean_ctor_get(x_18, 1); +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; uint8_t x_27; uint8_t x_28; lean_object* x_29; +x_16 = lean_ctor_get(x_5, 0); +x_17 = lean_ctor_get(x_5, 1); +x_18 = lean_ctor_get(x_5, 2); +x_19 = lean_ctor_get(x_5, 3); +x_20 = lean_ctor_get(x_5, 4); +x_21 = lean_ctor_get(x_5, 5); +x_22 = lean_ctor_get(x_5, 6); +x_23 = lean_ctor_get(x_5, 7); +x_24 = lean_ctor_get(x_5, 8); +x_25 = lean_ctor_get(x_5, 9); +x_26 = lean_ctor_get_uint8(x_5, sizeof(void*)*11); +x_27 = lean_ctor_get_uint8(x_5, sizeof(void*)*11 + 1); +x_28 = lean_ctor_get_uint8(x_5, sizeof(void*)*11 + 2); +x_29 = lean_ctor_get(x_5, 10); +lean_dec(x_29); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); lean_inc(x_20); -lean_dec(x_18); -if (lean_obj_tag(x_20) == 0) +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_ctor_set(x_5, 10, x_11); +if (lean_obj_tag(x_14) == 0) { -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -lean_dec(x_11); +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +lean_dec(x_25); +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +x_30 = lean_ctor_get(x_10, 4); +lean_inc(x_30); +x_31 = l_Lean_Syntax_getArgs(x_30); +lean_dec(x_30); +lean_inc(x_10); +x_32 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_10__withFields___main___rarg___lambda__1), 4, 1); +lean_closure_set(x_32, 0, x_10); +lean_inc(x_5); +x_33 = l_Lean_Elab_Term_elabBinders___rarg(x_31, x_32, x_5, x_6); +lean_dec(x_31); +if (lean_obj_tag(x_33) == 0) +{ +lean_object* x_34; lean_object* x_35; +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +if (lean_obj_tag(x_35) == 0) +{ +lean_object* x_36; +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +lean_dec(x_34); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +lean_dec(x_12); +lean_dec(x_10); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_21 = lean_ctor_get(x_17, 1); -lean_inc(x_21); -lean_dec(x_17); -x_22 = lean_ctor_get(x_10, 0); -lean_inc(x_22); -lean_dec(x_10); -x_23 = l___private_Lean_Elab_Structure_10__withFields___main___rarg___closed__3; -x_24 = l_Lean_Elab_Term_throwError___rarg(x_22, x_23, x_5, x_21); -lean_dec(x_22); -return x_24; +x_37 = lean_ctor_get(x_33, 1); +lean_inc(x_37); +lean_dec(x_33); +x_38 = l___private_Lean_Elab_Structure_10__withFields___main___rarg___closed__3; +x_39 = l_Lean_Elab_Term_throwError___rarg(x_38, x_5, x_37); +return x_39; } else { -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_25 = lean_ctor_get(x_17, 1); -lean_inc(x_25); -lean_dec(x_17); -x_26 = lean_ctor_get(x_20, 0); -lean_inc(x_26); -lean_dec(x_20); -x_27 = lean_ctor_get(x_10, 0); -lean_inc(x_27); +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_33, 1); +lean_inc(x_40); +lean_dec(x_33); +x_41 = lean_ctor_get(x_36, 0); +lean_inc(x_41); +lean_dec(x_36); lean_inc(x_5); -x_28 = l_Lean_Elab_Term_inferType(x_27, x_26, x_5, x_25); -if (lean_obj_tag(x_28) == 0) +x_42 = l_Lean_Elab_Term_inferType(x_41, x_5, x_40); +if (lean_obj_tag(x_42) == 0) +{ +lean_object* x_43; lean_object* x_44; uint8_t x_45; lean_object* x_46; lean_object* x_47; +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_42, 1); +lean_inc(x_44); +lean_dec(x_42); +x_45 = lean_ctor_get_uint8(x_10, sizeof(void*)*7); +lean_inc(x_12); +x_46 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_10__withFields___main___rarg___lambda__2___boxed), 10, 7); +lean_closure_set(x_46, 0, x_10); +lean_closure_set(x_46, 1, x_12); +lean_closure_set(x_46, 2, x_35); +lean_closure_set(x_46, 3, x_3); +lean_closure_set(x_46, 4, x_2); +lean_closure_set(x_46, 5, x_1); +lean_closure_set(x_46, 6, x_4); +x_47 = l_Lean_Elab_Term_withLocalDecl___rarg(x_12, x_45, x_43, x_46, x_5, x_44); +return x_47; +} +else +{ +uint8_t x_48; +lean_dec(x_5); +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_48 = !lean_is_exclusive(x_42); +if (x_48 == 0) +{ +return x_42; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_42, 0); +x_50 = lean_ctor_get(x_42, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_42); +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +return x_51; +} +} +} +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; lean_object* x_56; lean_object* x_57; +x_52 = lean_ctor_get(x_33, 1); +lean_inc(x_52); +lean_dec(x_33); +x_53 = lean_ctor_get(x_34, 1); +lean_inc(x_53); +lean_dec(x_34); +x_54 = lean_ctor_get(x_35, 0); +lean_inc(x_54); +lean_dec(x_35); +x_55 = lean_ctor_get_uint8(x_10, sizeof(void*)*7); +lean_inc(x_12); +x_56 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_10__withFields___main___rarg___lambda__2___boxed), 10, 7); +lean_closure_set(x_56, 0, x_10); +lean_closure_set(x_56, 1, x_12); +lean_closure_set(x_56, 2, x_53); +lean_closure_set(x_56, 3, x_3); +lean_closure_set(x_56, 4, x_2); +lean_closure_set(x_56, 5, x_1); +lean_closure_set(x_56, 6, x_4); +x_57 = l_Lean_Elab_Term_withLocalDecl___rarg(x_12, x_55, x_54, x_56, x_5, x_52); +return x_57; +} +} +else +{ +uint8_t x_58; +lean_dec(x_5); +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_58 = !lean_is_exclusive(x_33); +if (x_58 == 0) { -lean_object* x_29; lean_object* x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33; -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_31 = lean_ctor_get_uint8(x_10, sizeof(void*)*7); -lean_inc(x_11); -x_32 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_10__withFields___main___rarg___lambda__2___boxed), 10, 7); -lean_closure_set(x_32, 0, x_10); -lean_closure_set(x_32, 1, x_11); -lean_closure_set(x_32, 2, x_19); -lean_closure_set(x_32, 3, x_3); -lean_closure_set(x_32, 4, x_2); -lean_closure_set(x_32, 5, x_1); -lean_closure_set(x_32, 6, x_4); -x_33 = l_Lean_Elab_Term_withLocalDecl___rarg(x_27, x_11, x_31, x_29, x_32, x_5, x_30); -lean_dec(x_27); return x_33; } else { -uint8_t x_34; -lean_dec(x_27); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_34 = !lean_is_exclusive(x_28); -if (x_34 == 0) -{ -return x_28; -} -else -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_28, 0); -x_36 = lean_ctor_get(x_28, 1); -lean_inc(x_36); -lean_inc(x_35); -lean_dec(x_28); -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; -} -} -} -} -else -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; lean_object* x_44; -x_38 = lean_ctor_get(x_17, 1); -lean_inc(x_38); -lean_dec(x_17); -x_39 = lean_ctor_get(x_18, 1); -lean_inc(x_39); -lean_dec(x_18); -x_40 = lean_ctor_get(x_19, 0); -lean_inc(x_40); -lean_dec(x_19); -x_41 = lean_ctor_get(x_10, 0); -lean_inc(x_41); -x_42 = lean_ctor_get_uint8(x_10, sizeof(void*)*7); -lean_inc(x_11); -x_43 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_10__withFields___main___rarg___lambda__2___boxed), 10, 7); -lean_closure_set(x_43, 0, x_10); -lean_closure_set(x_43, 1, x_11); -lean_closure_set(x_43, 2, x_39); -lean_closure_set(x_43, 3, x_3); -lean_closure_set(x_43, 4, x_2); -lean_closure_set(x_43, 5, x_1); -lean_closure_set(x_43, 6, x_4); -x_44 = l_Lean_Elab_Term_withLocalDecl___rarg(x_41, x_11, x_42, x_40, x_43, x_5, x_38); -lean_dec(x_41); -return x_44; -} -} -else -{ -uint8_t x_45; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_45 = !lean_is_exclusive(x_17); -if (x_45 == 0) -{ -return x_17; -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_17, 0); -x_47 = lean_ctor_get(x_17, 1); -lean_inc(x_47); -lean_inc(x_46); -lean_dec(x_17); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_33, 0); +x_60 = lean_ctor_get(x_33, 1); +lean_inc(x_60); +lean_inc(x_59); +lean_dec(x_33); +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_60); +return x_61; } } } else { -lean_object* x_49; lean_object* x_50; uint8_t x_51; -x_49 = lean_ctor_get(x_13, 0); -lean_inc(x_49); -if (lean_is_exclusive(x_13)) { - lean_ctor_release(x_13, 0); - x_50 = x_13; +lean_object* x_62; lean_object* x_63; uint8_t x_64; +x_62 = lean_ctor_get(x_14, 0); +lean_inc(x_62); +if (lean_is_exclusive(x_14)) { + lean_ctor_release(x_14, 0); + x_63 = x_14; } else { - lean_dec_ref(x_13); - x_50 = lean_box(0); + lean_dec_ref(x_14); + x_63 = lean_box(0); } -x_51 = lean_ctor_get_uint8(x_49, sizeof(void*)*4); -switch (x_51) { +x_64 = lean_ctor_get_uint8(x_62, sizeof(void*)*4); +switch (x_64) { case 0: { -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; -lean_dec(x_50); -lean_dec(x_49); +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; +lean_dec(x_63); +lean_dec(x_62); +lean_dec(x_25); +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_10); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_52 = lean_ctor_get(x_10, 0); -lean_inc(x_52); -lean_dec(x_10); -x_53 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_53, 0, x_11); -x_54 = l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__3; -x_55 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_55, 0, x_54); -lean_ctor_set(x_55, 1, x_53); -x_56 = l_Lean_Elab_Command_throwAlreadyDeclaredUniverseLevel___rarg___closed__5; -x_57 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_57, 0, x_55); -lean_ctor_set(x_57, 1, x_56); -x_58 = l_Lean_Elab_Term_throwError___rarg(x_52, x_57, x_5, x_6); -lean_dec(x_52); -return x_58; +x_65 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_65, 0, x_12); +x_66 = l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__3; +x_67 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_67, 0, x_66); +lean_ctor_set(x_67, 1, x_65); +x_68 = l_Lean_Elab_Command_throwAlreadyDeclaredUniverseLevel___rarg___closed__5; +x_69 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_69, 0, x_67); +lean_ctor_set(x_69, 1, x_68); +x_70 = l_Lean_Elab_Term_throwError___rarg(x_69, x_5, x_6); +return x_70; } case 1: { -lean_object* x_59; -x_59 = lean_ctor_get(x_10, 6); -lean_inc(x_59); -if (lean_obj_tag(x_59) == 0) +lean_object* x_71; +x_71 = lean_ctor_get(x_10, 6); +lean_inc(x_71); +if (lean_obj_tag(x_71) == 0) { -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; -lean_dec(x_50); -lean_dec(x_49); +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_dec(x_63); +lean_dec(x_62); +lean_dec(x_25); +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_10); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_60 = lean_ctor_get(x_10, 0); -lean_inc(x_60); -lean_dec(x_10); -x_61 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_61, 0, x_11); -x_62 = l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__3; -x_63 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_63, 0, x_62); -lean_ctor_set(x_63, 1, x_61); -x_64 = l___private_Lean_Elab_Structure_10__withFields___main___rarg___closed__6; -x_65 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_65, 0, x_63); -lean_ctor_set(x_65, 1, x_64); -x_66 = l_Lean_Elab_Term_throwError___rarg(x_60, x_65, x_5, x_6); -lean_dec(x_60); -return x_66; +x_72 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_72, 0, x_12); +x_73 = l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__3; +x_74 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_74, 0, x_73); +lean_ctor_set(x_74, 1, x_72); +x_75 = l___private_Lean_Elab_Structure_10__withFields___main___rarg___closed__6; +x_76 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_76, 0, x_74); +lean_ctor_set(x_76, 1, x_75); +x_77 = l_Lean_Elab_Term_throwError___rarg(x_76, x_5, x_6); +return x_77; } else { -lean_object* x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_t x_76; lean_object* x_77; uint8_t x_78; -x_67 = lean_ctor_get(x_49, 0); -lean_inc(x_67); -x_68 = lean_ctor_get(x_49, 1); -lean_inc(x_68); -x_69 = lean_ctor_get(x_49, 2); -lean_inc(x_69); -x_70 = lean_ctor_get_uint8(x_49, sizeof(void*)*4 + 1); -if (lean_is_exclusive(x_49)) { - lean_ctor_release(x_49, 0); - lean_ctor_release(x_49, 1); - lean_ctor_release(x_49, 2); - lean_ctor_release(x_49, 3); - x_71 = x_49; +lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; uint8_t x_88; +x_78 = lean_ctor_get(x_62, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_62, 1); +lean_inc(x_79); +x_80 = lean_ctor_get(x_62, 2); +lean_inc(x_80); +x_81 = lean_ctor_get_uint8(x_62, sizeof(void*)*4 + 1); +if (lean_is_exclusive(x_62)) { + lean_ctor_release(x_62, 0); + lean_ctor_release(x_62, 1); + lean_ctor_release(x_62, 2); + lean_ctor_release(x_62, 3); + x_82 = x_62; } else { - lean_dec_ref(x_49); - x_71 = lean_box(0); + lean_dec_ref(x_62); + x_82 = lean_box(0); } -x_72 = lean_ctor_get(x_59, 0); -lean_inc(x_72); -if (lean_is_exclusive(x_59)) { - lean_ctor_release(x_59, 0); - x_73 = x_59; -} else { - lean_dec_ref(x_59); - x_73 = lean_box(0); -} -x_74 = lean_ctor_get(x_10, 4); -lean_inc(x_74); -x_75 = l_Lean_Syntax_getArgs(x_74); -lean_dec(x_74); -x_76 = l_Array_isEmpty___rarg(x_75); -lean_dec(x_75); -x_77 = lean_ctor_get(x_10, 0); -lean_inc(x_77); -if (x_76 == 0) -{ -uint8_t x_135; -x_135 = 1; -x_78 = x_135; -goto block_134; -} -else -{ -lean_object* x_136; -x_136 = lean_ctor_get(x_10, 5); -lean_inc(x_136); -if (lean_obj_tag(x_136) == 0) -{ -uint8_t x_137; -x_137 = 0; -x_78 = x_137; -goto block_134; -} -else -{ -uint8_t x_138; -lean_dec(x_136); -x_138 = 1; -x_78 = x_138; -goto block_134; -} -} -block_134: -{ -uint8_t x_79; -if (x_78 == 0) -{ -uint8_t x_132; -x_132 = 0; -x_79 = x_132; -goto block_131; -} -else -{ -uint8_t x_133; -x_133 = 1; -x_79 = x_133; -goto block_131; -} -block_131: -{ -lean_object* x_80; -if (x_79 == 0) -{ -lean_dec(x_11); -lean_dec(x_10); -x_80 = x_6; -goto block_110; -} -else -{ -lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; -lean_dec(x_77); -lean_dec(x_73); -lean_dec(x_72); -lean_dec(x_71); -lean_dec(x_69); -lean_dec(x_68); -lean_dec(x_67); -lean_dec(x_50); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_111 = lean_ctor_get(x_10, 5); -lean_inc(x_111); -lean_dec(x_10); -x_112 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_112, 0, x_11); -x_113 = l___private_Lean_Elab_Structure_10__withFields___main___rarg___closed__9; -x_114 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_114, 0, x_113); -lean_ctor_set(x_114, 1, x_112); -x_115 = l___private_Lean_Elab_Structure_10__withFields___main___rarg___closed__12; -x_116 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_116, 0, x_114); -lean_ctor_set(x_116, 1, x_115); -if (lean_obj_tag(x_111) == 0) -{ -lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; -x_117 = l_Lean_Syntax_inhabited; -x_118 = l_Option_get_x21___rarg___closed__3; -x_119 = lean_panic_fn(x_117, x_118); -x_120 = l_Lean_Elab_Term_throwError___rarg(x_119, x_116, x_5, x_6); -lean_dec(x_119); -x_121 = !lean_is_exclusive(x_120); -if (x_121 == 0) -{ -return x_120; -} -else -{ -lean_object* x_122; lean_object* x_123; lean_object* x_124; -x_122 = lean_ctor_get(x_120, 0); -x_123 = lean_ctor_get(x_120, 1); -lean_inc(x_123); -lean_inc(x_122); -lean_dec(x_120); -x_124 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_124, 0, x_122); -lean_ctor_set(x_124, 1, x_123); -return x_124; -} -} -else -{ -lean_object* x_125; lean_object* x_126; uint8_t x_127; -x_125 = lean_ctor_get(x_111, 0); -lean_inc(x_125); -lean_dec(x_111); -x_126 = l_Lean_Elab_Term_throwError___rarg(x_125, x_116, x_5, x_6); -lean_dec(x_125); -x_127 = !lean_is_exclusive(x_126); -if (x_127 == 0) -{ -return x_126; -} -else -{ -lean_object* x_128; lean_object* x_129; lean_object* x_130; -x_128 = lean_ctor_get(x_126, 0); -x_129 = lean_ctor_get(x_126, 1); -lean_inc(x_129); -lean_inc(x_128); -lean_dec(x_126); -x_130 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_130, 0, x_128); -lean_ctor_set(x_130, 1, x_129); -return x_130; -} -} -} -block_110: -{ -lean_object* x_81; -lean_inc(x_5); -lean_inc(x_69); -x_81 = l_Lean_Elab_Term_inferType(x_77, x_69, x_5, x_80); -lean_dec(x_77); -if (lean_obj_tag(x_81) == 0) -{ -lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; lean_object* x_86; -x_82 = lean_ctor_get(x_81, 0); -lean_inc(x_82); -x_83 = lean_ctor_get(x_81, 1); +x_83 = lean_ctor_get(x_71, 0); lean_inc(x_83); -lean_dec(x_81); -if (lean_is_scalar(x_73)) { - x_84 = lean_alloc_ctor(1, 1, 0); +if (lean_is_exclusive(x_71)) { + lean_ctor_release(x_71, 0); + x_84 = x_71; } else { - x_84 = x_73; + lean_dec_ref(x_71); + x_84 = lean_box(0); } -lean_ctor_set(x_84, 0, x_82); -x_85 = 1; -lean_inc(x_5); -lean_inc(x_72); -lean_inc(x_84); -x_86 = l_Lean_Elab_Term_elabTermAux___main(x_84, x_85, x_85, x_72, x_5, x_83); -if (lean_obj_tag(x_86) == 0) -{ -lean_object* x_87; lean_object* x_88; lean_object* x_89; -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_85 = lean_ctor_get(x_10, 4); +lean_inc(x_85); +x_86 = l_Lean_Syntax_getArgs(x_85); +lean_dec(x_85); +x_87 = l_Array_isEmpty___rarg(x_86); lean_dec(x_86); -lean_inc(x_5); -x_89 = l_Lean_Elab_Term_ensureHasType(x_72, x_84, x_87, x_5, x_88); -if (lean_obj_tag(x_89) == 0) +if (x_87 == 0) { -lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; -x_90 = lean_ctor_get(x_89, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_89, 1); -lean_inc(x_91); -lean_dec(x_89); -if (lean_is_scalar(x_50)) { - x_92 = lean_alloc_ctor(1, 1, 0); -} else { - x_92 = x_50; +uint8_t x_146; +x_146 = 1; +x_88 = x_146; +goto block_145; } -lean_ctor_set(x_92, 0, x_90); -if (lean_is_scalar(x_71)) { - x_93 = lean_alloc_ctor(0, 4, 2); -} else { - x_93 = x_71; +else +{ +lean_object* x_147; +x_147 = lean_ctor_get(x_10, 5); +lean_inc(x_147); +if (lean_obj_tag(x_147) == 0) +{ +uint8_t x_148; +x_148 = 0; +x_88 = x_148; +goto block_145; } -lean_ctor_set(x_93, 0, x_67); -lean_ctor_set(x_93, 1, x_68); -lean_ctor_set(x_93, 2, x_69); -lean_ctor_set(x_93, 3, x_92); -lean_ctor_set_uint8(x_93, sizeof(void*)*4, x_51); -lean_ctor_set_uint8(x_93, sizeof(void*)*4 + 1, x_70); -x_94 = lean_array_push(x_3, x_93); -x_95 = lean_unsigned_to_nat(1u); -x_96 = lean_nat_add(x_2, x_95); +else +{ +uint8_t x_149; +lean_dec(x_147); +x_149 = 1; +x_88 = x_149; +goto block_145; +} +} +block_145: +{ +uint8_t x_89; +if (x_88 == 0) +{ +uint8_t x_143; +x_143 = 0; +x_89 = x_143; +goto block_142; +} +else +{ +uint8_t x_144; +x_144 = 1; +x_89 = x_144; +goto block_142; +} +block_142: +{ +lean_object* x_90; +if (x_89 == 0) +{ +lean_dec(x_12); +lean_dec(x_10); +x_90 = x_6; +goto block_121; +} +else +{ +lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; +lean_dec(x_84); +lean_dec(x_83); +lean_dec(x_82); +lean_dec(x_80); +lean_dec(x_79); +lean_dec(x_78); +lean_dec(x_63); +lean_dec(x_25); +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_4); +lean_dec(x_3); lean_dec(x_2); -x_2 = x_96; -x_3 = x_94; -x_6 = x_91; +lean_dec(x_1); +x_122 = lean_ctor_get(x_10, 5); +lean_inc(x_122); +lean_dec(x_10); +x_123 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_123, 0, x_12); +x_124 = l___private_Lean_Elab_Structure_10__withFields___main___rarg___closed__9; +x_125 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_125, 0, x_124); +lean_ctor_set(x_125, 1, x_123); +x_126 = l___private_Lean_Elab_Structure_10__withFields___main___rarg___closed__12; +x_127 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_127, 0, x_125); +lean_ctor_set(x_127, 1, x_126); +if (lean_obj_tag(x_122) == 0) +{ +lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; uint8_t x_132; +x_128 = l_Lean_Syntax_inhabited; +x_129 = l_Option_get_x21___rarg___closed__3; +x_130 = lean_panic_fn(x_128, x_129); +x_131 = l_Lean_Elab_Term_throwErrorAt___rarg(x_130, x_127, x_5, x_6); +lean_dec(x_130); +x_132 = !lean_is_exclusive(x_131); +if (x_132 == 0) +{ +return x_131; +} +else +{ +lean_object* x_133; lean_object* x_134; lean_object* x_135; +x_133 = lean_ctor_get(x_131, 0); +x_134 = lean_ctor_get(x_131, 1); +lean_inc(x_134); +lean_inc(x_133); +lean_dec(x_131); +x_135 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_135, 0, x_133); +lean_ctor_set(x_135, 1, x_134); +return x_135; +} +} +else +{ +lean_object* x_136; lean_object* x_137; uint8_t x_138; +x_136 = lean_ctor_get(x_122, 0); +lean_inc(x_136); +lean_dec(x_122); +x_137 = l_Lean_Elab_Term_throwErrorAt___rarg(x_136, x_127, x_5, x_6); +lean_dec(x_136); +x_138 = !lean_is_exclusive(x_137); +if (x_138 == 0) +{ +return x_137; +} +else +{ +lean_object* x_139; lean_object* x_140; lean_object* x_141; +x_139 = lean_ctor_get(x_137, 0); +x_140 = lean_ctor_get(x_137, 1); +lean_inc(x_140); +lean_inc(x_139); +lean_dec(x_137); +x_141 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_141, 0, x_139); +lean_ctor_set(x_141, 1, x_140); +return x_141; +} +} +} +block_121: +{ +lean_object* x_91; +lean_inc(x_5); +lean_inc(x_80); +x_91 = l_Lean_Elab_Term_inferType(x_80, x_5, x_90); +if (lean_obj_tag(x_91) == 0) +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; uint8_t x_95; lean_object* x_96; +x_92 = lean_ctor_get(x_91, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_91, 1); +lean_inc(x_93); +lean_dec(x_91); +if (lean_is_scalar(x_84)) { + x_94 = lean_alloc_ctor(1, 1, 0); +} else { + x_94 = x_84; +} +lean_ctor_set(x_94, 0, x_92); +x_95 = 1; +lean_inc(x_5); +lean_inc(x_94); +lean_inc(x_83); +x_96 = l_Lean_Elab_Term_elabTerm(x_83, x_94, x_95, x_5, x_93); +if (lean_obj_tag(x_96) == 0) +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_97 = lean_ctor_get(x_96, 0); +lean_inc(x_97); +x_98 = lean_ctor_get(x_96, 1); +lean_inc(x_98); +lean_dec(x_96); +x_99 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_99, 0, x_16); +lean_ctor_set(x_99, 1, x_17); +lean_ctor_set(x_99, 2, x_18); +lean_ctor_set(x_99, 3, x_19); +lean_ctor_set(x_99, 4, x_20); +lean_ctor_set(x_99, 5, x_21); +lean_ctor_set(x_99, 6, x_22); +lean_ctor_set(x_99, 7, x_23); +lean_ctor_set(x_99, 8, x_24); +lean_ctor_set(x_99, 9, x_25); +lean_ctor_set(x_99, 10, x_83); +lean_ctor_set_uint8(x_99, sizeof(void*)*11, x_26); +lean_ctor_set_uint8(x_99, sizeof(void*)*11 + 1, x_27); +lean_ctor_set_uint8(x_99, sizeof(void*)*11 + 2, x_28); +x_100 = l_Lean_Elab_Term_ensureHasType(x_94, x_97, x_99, x_98); +if (lean_obj_tag(x_100) == 0) +{ +lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; +x_101 = lean_ctor_get(x_100, 0); +lean_inc(x_101); +x_102 = lean_ctor_get(x_100, 1); +lean_inc(x_102); +lean_dec(x_100); +if (lean_is_scalar(x_63)) { + x_103 = lean_alloc_ctor(1, 1, 0); +} else { + x_103 = x_63; +} +lean_ctor_set(x_103, 0, x_101); +if (lean_is_scalar(x_82)) { + x_104 = lean_alloc_ctor(0, 4, 2); +} else { + x_104 = x_82; +} +lean_ctor_set(x_104, 0, x_78); +lean_ctor_set(x_104, 1, x_79); +lean_ctor_set(x_104, 2, x_80); +lean_ctor_set(x_104, 3, x_103); +lean_ctor_set_uint8(x_104, sizeof(void*)*4, x_64); +lean_ctor_set_uint8(x_104, sizeof(void*)*4 + 1, x_81); +x_105 = lean_array_push(x_3, x_104); +x_106 = lean_unsigned_to_nat(1u); +x_107 = lean_nat_add(x_2, x_106); +lean_dec(x_2); +x_2 = x_107; +x_3 = x_105; +x_6 = x_102; goto _start; } else { -uint8_t x_98; -lean_dec(x_71); -lean_dec(x_69); -lean_dec(x_68); -lean_dec(x_67); -lean_dec(x_50); +uint8_t x_109; +lean_dec(x_82); +lean_dec(x_80); +lean_dec(x_79); +lean_dec(x_78); +lean_dec(x_63); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_98 = !lean_is_exclusive(x_89); -if (x_98 == 0) +x_109 = !lean_is_exclusive(x_100); +if (x_109 == 0) { -return x_89; +return x_100; } else { -lean_object* x_99; lean_object* x_100; lean_object* x_101; -x_99 = lean_ctor_get(x_89, 0); -x_100 = lean_ctor_get(x_89, 1); -lean_inc(x_100); -lean_inc(x_99); -lean_dec(x_89); -x_101 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_101, 0, x_99); -lean_ctor_set(x_101, 1, x_100); -return x_101; +lean_object* x_110; lean_object* x_111; lean_object* x_112; +x_110 = lean_ctor_get(x_100, 0); +x_111 = lean_ctor_get(x_100, 1); +lean_inc(x_111); +lean_inc(x_110); +lean_dec(x_100); +x_112 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_112, 0, x_110); +lean_ctor_set(x_112, 1, x_111); +return x_112; } } } else { -uint8_t x_102; +uint8_t x_113; +lean_dec(x_94); +lean_dec(x_83); +lean_dec(x_82); +lean_dec(x_80); +lean_dec(x_79); +lean_dec(x_78); +lean_dec(x_63); +lean_dec(x_5); +lean_dec(x_25); +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_113 = !lean_is_exclusive(x_96); +if (x_113 == 0) +{ +return x_96; +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; +x_114 = lean_ctor_get(x_96, 0); +x_115 = lean_ctor_get(x_96, 1); +lean_inc(x_115); +lean_inc(x_114); +lean_dec(x_96); +x_116 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_116, 0, x_114); +lean_ctor_set(x_116, 1, x_115); +return x_116; +} +} +} +else +{ +uint8_t x_117; lean_dec(x_84); -lean_dec(x_72); -lean_dec(x_71); -lean_dec(x_69); -lean_dec(x_68); -lean_dec(x_67); -lean_dec(x_50); +lean_dec(x_83); +lean_dec(x_82); +lean_dec(x_80); +lean_dec(x_79); +lean_dec(x_78); +lean_dec(x_63); lean_dec(x_5); +lean_dec(x_25); +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_102 = !lean_is_exclusive(x_86); -if (x_102 == 0) +x_117 = !lean_is_exclusive(x_91); +if (x_117 == 0) { -return x_86; +return x_91; } else { -lean_object* x_103; lean_object* x_104; lean_object* x_105; -x_103 = lean_ctor_get(x_86, 0); -x_104 = lean_ctor_get(x_86, 1); -lean_inc(x_104); -lean_inc(x_103); -lean_dec(x_86); -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 -{ -uint8_t x_106; -lean_dec(x_73); -lean_dec(x_72); -lean_dec(x_71); -lean_dec(x_69); -lean_dec(x_68); -lean_dec(x_67); -lean_dec(x_50); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_106 = !lean_is_exclusive(x_81); -if (x_106 == 0) -{ -return x_81; -} -else -{ -lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_107 = lean_ctor_get(x_81, 0); -x_108 = lean_ctor_get(x_81, 1); -lean_inc(x_108); -lean_inc(x_107); -lean_dec(x_81); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_107); -lean_ctor_set(x_109, 1, x_108); -return x_109; +lean_object* x_118; lean_object* x_119; lean_object* x_120; +x_118 = lean_ctor_get(x_91, 0); +x_119 = lean_ctor_get(x_91, 1); +lean_inc(x_119); +lean_inc(x_118); +lean_dec(x_91); +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; } } } @@ -4579,19 +5042,774 @@ return x_109; } default: { -lean_object* x_139; lean_object* x_140; lean_object* x_141; -lean_dec(x_50); -lean_dec(x_49); -lean_dec(x_11); +lean_object* x_150; lean_object* x_151; lean_object* x_152; +lean_dec(x_63); +lean_dec(x_62); +lean_dec(x_25); +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_12); lean_dec(x_10); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_139 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; -x_140 = l_unreachable_x21___rarg(x_139); -x_141 = lean_apply_2(x_140, x_5, x_6); -return x_141; +x_150 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; +x_151 = l_unreachable_x21___rarg(x_150); +x_152 = lean_apply_2(x_151, x_5, x_6); +return x_152; +} +} +} +} +else +{ +lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; uint8_t x_163; uint8_t x_164; uint8_t x_165; lean_object* x_166; +x_153 = lean_ctor_get(x_5, 0); +x_154 = lean_ctor_get(x_5, 1); +x_155 = lean_ctor_get(x_5, 2); +x_156 = lean_ctor_get(x_5, 3); +x_157 = lean_ctor_get(x_5, 4); +x_158 = lean_ctor_get(x_5, 5); +x_159 = lean_ctor_get(x_5, 6); +x_160 = lean_ctor_get(x_5, 7); +x_161 = lean_ctor_get(x_5, 8); +x_162 = lean_ctor_get(x_5, 9); +x_163 = lean_ctor_get_uint8(x_5, sizeof(void*)*11); +x_164 = lean_ctor_get_uint8(x_5, sizeof(void*)*11 + 1); +x_165 = lean_ctor_get_uint8(x_5, sizeof(void*)*11 + 2); +lean_inc(x_162); +lean_inc(x_161); +lean_inc(x_160); +lean_inc(x_159); +lean_inc(x_158); +lean_inc(x_157); +lean_inc(x_156); +lean_inc(x_155); +lean_inc(x_154); +lean_inc(x_153); +lean_dec(x_5); +lean_inc(x_162); +lean_inc(x_161); +lean_inc(x_160); +lean_inc(x_159); +lean_inc(x_158); +lean_inc(x_157); +lean_inc(x_156); +lean_inc(x_155); +lean_inc(x_154); +lean_inc(x_153); +x_166 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_166, 0, x_153); +lean_ctor_set(x_166, 1, x_154); +lean_ctor_set(x_166, 2, x_155); +lean_ctor_set(x_166, 3, x_156); +lean_ctor_set(x_166, 4, x_157); +lean_ctor_set(x_166, 5, x_158); +lean_ctor_set(x_166, 6, x_159); +lean_ctor_set(x_166, 7, x_160); +lean_ctor_set(x_166, 8, x_161); +lean_ctor_set(x_166, 9, x_162); +lean_ctor_set(x_166, 10, x_11); +lean_ctor_set_uint8(x_166, sizeof(void*)*11, x_163); +lean_ctor_set_uint8(x_166, sizeof(void*)*11 + 1, x_164); +lean_ctor_set_uint8(x_166, sizeof(void*)*11 + 2, x_165); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; +lean_dec(x_162); +lean_dec(x_161); +lean_dec(x_160); +lean_dec(x_159); +lean_dec(x_158); +lean_dec(x_157); +lean_dec(x_156); +lean_dec(x_155); +lean_dec(x_154); +lean_dec(x_153); +x_167 = lean_ctor_get(x_10, 4); +lean_inc(x_167); +x_168 = l_Lean_Syntax_getArgs(x_167); +lean_dec(x_167); +lean_inc(x_10); +x_169 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_10__withFields___main___rarg___lambda__1), 4, 1); +lean_closure_set(x_169, 0, x_10); +lean_inc(x_166); +x_170 = l_Lean_Elab_Term_elabBinders___rarg(x_168, x_169, x_166, x_6); +lean_dec(x_168); +if (lean_obj_tag(x_170) == 0) +{ +lean_object* x_171; lean_object* x_172; +x_171 = lean_ctor_get(x_170, 0); +lean_inc(x_171); +x_172 = lean_ctor_get(x_171, 0); +lean_inc(x_172); +if (lean_obj_tag(x_172) == 0) +{ +lean_object* x_173; +x_173 = lean_ctor_get(x_171, 1); +lean_inc(x_173); +lean_dec(x_171); +if (lean_obj_tag(x_173) == 0) +{ +lean_object* x_174; lean_object* x_175; lean_object* x_176; +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_174 = lean_ctor_get(x_170, 1); +lean_inc(x_174); +lean_dec(x_170); +x_175 = l___private_Lean_Elab_Structure_10__withFields___main___rarg___closed__3; +x_176 = l_Lean_Elab_Term_throwError___rarg(x_175, x_166, x_174); +return x_176; +} +else +{ +lean_object* x_177; lean_object* x_178; lean_object* x_179; +x_177 = lean_ctor_get(x_170, 1); +lean_inc(x_177); +lean_dec(x_170); +x_178 = lean_ctor_get(x_173, 0); +lean_inc(x_178); +lean_dec(x_173); +lean_inc(x_166); +x_179 = l_Lean_Elab_Term_inferType(x_178, x_166, x_177); +if (lean_obj_tag(x_179) == 0) +{ +lean_object* x_180; lean_object* x_181; uint8_t x_182; lean_object* x_183; lean_object* x_184; +x_180 = lean_ctor_get(x_179, 0); +lean_inc(x_180); +x_181 = lean_ctor_get(x_179, 1); +lean_inc(x_181); +lean_dec(x_179); +x_182 = lean_ctor_get_uint8(x_10, sizeof(void*)*7); +lean_inc(x_12); +x_183 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_10__withFields___main___rarg___lambda__2___boxed), 10, 7); +lean_closure_set(x_183, 0, x_10); +lean_closure_set(x_183, 1, x_12); +lean_closure_set(x_183, 2, x_172); +lean_closure_set(x_183, 3, x_3); +lean_closure_set(x_183, 4, x_2); +lean_closure_set(x_183, 5, x_1); +lean_closure_set(x_183, 6, x_4); +x_184 = l_Lean_Elab_Term_withLocalDecl___rarg(x_12, x_182, x_180, x_183, x_166, x_181); +return x_184; +} +else +{ +lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; +lean_dec(x_166); +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_185 = lean_ctor_get(x_179, 0); +lean_inc(x_185); +x_186 = lean_ctor_get(x_179, 1); +lean_inc(x_186); +if (lean_is_exclusive(x_179)) { + lean_ctor_release(x_179, 0); + lean_ctor_release(x_179, 1); + x_187 = x_179; +} else { + lean_dec_ref(x_179); + 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; uint8_t x_192; lean_object* x_193; lean_object* x_194; +x_189 = lean_ctor_get(x_170, 1); +lean_inc(x_189); +lean_dec(x_170); +x_190 = lean_ctor_get(x_171, 1); +lean_inc(x_190); +lean_dec(x_171); +x_191 = lean_ctor_get(x_172, 0); +lean_inc(x_191); +lean_dec(x_172); +x_192 = lean_ctor_get_uint8(x_10, sizeof(void*)*7); +lean_inc(x_12); +x_193 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_10__withFields___main___rarg___lambda__2___boxed), 10, 7); +lean_closure_set(x_193, 0, x_10); +lean_closure_set(x_193, 1, x_12); +lean_closure_set(x_193, 2, x_190); +lean_closure_set(x_193, 3, x_3); +lean_closure_set(x_193, 4, x_2); +lean_closure_set(x_193, 5, x_1); +lean_closure_set(x_193, 6, x_4); +x_194 = l_Lean_Elab_Term_withLocalDecl___rarg(x_12, x_192, x_191, x_193, x_166, x_189); +return x_194; +} +} +else +{ +lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; +lean_dec(x_166); +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_195 = lean_ctor_get(x_170, 0); +lean_inc(x_195); +x_196 = lean_ctor_get(x_170, 1); +lean_inc(x_196); +if (lean_is_exclusive(x_170)) { + lean_ctor_release(x_170, 0); + lean_ctor_release(x_170, 1); + x_197 = x_170; +} else { + lean_dec_ref(x_170); + x_197 = lean_box(0); +} +if (lean_is_scalar(x_197)) { + x_198 = lean_alloc_ctor(1, 2, 0); +} else { + x_198 = x_197; +} +lean_ctor_set(x_198, 0, x_195); +lean_ctor_set(x_198, 1, x_196); +return x_198; +} +} +else +{ +lean_object* x_199; lean_object* x_200; uint8_t x_201; +x_199 = lean_ctor_get(x_14, 0); +lean_inc(x_199); +if (lean_is_exclusive(x_14)) { + lean_ctor_release(x_14, 0); + x_200 = x_14; +} else { + lean_dec_ref(x_14); + x_200 = lean_box(0); +} +x_201 = lean_ctor_get_uint8(x_199, sizeof(void*)*4); +switch (x_201) { +case 0: +{ +lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; +lean_dec(x_200); +lean_dec(x_199); +lean_dec(x_162); +lean_dec(x_161); +lean_dec(x_160); +lean_dec(x_159); +lean_dec(x_158); +lean_dec(x_157); +lean_dec(x_156); +lean_dec(x_155); +lean_dec(x_154); +lean_dec(x_153); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_202 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_202, 0, x_12); +x_203 = l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__3; +x_204 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_204, 0, x_203); +lean_ctor_set(x_204, 1, x_202); +x_205 = l_Lean_Elab_Command_throwAlreadyDeclaredUniverseLevel___rarg___closed__5; +x_206 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_206, 0, x_204); +lean_ctor_set(x_206, 1, x_205); +x_207 = l_Lean_Elab_Term_throwError___rarg(x_206, x_166, x_6); +return x_207; +} +case 1: +{ +lean_object* x_208; +x_208 = lean_ctor_get(x_10, 6); +lean_inc(x_208); +if (lean_obj_tag(x_208) == 0) +{ +lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; +lean_dec(x_200); +lean_dec(x_199); +lean_dec(x_162); +lean_dec(x_161); +lean_dec(x_160); +lean_dec(x_159); +lean_dec(x_158); +lean_dec(x_157); +lean_dec(x_156); +lean_dec(x_155); +lean_dec(x_154); +lean_dec(x_153); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_209 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_209, 0, x_12); +x_210 = l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__3; +x_211 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_211, 0, x_210); +lean_ctor_set(x_211, 1, x_209); +x_212 = l___private_Lean_Elab_Structure_10__withFields___main___rarg___closed__6; +x_213 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_213, 0, x_211); +lean_ctor_set(x_213, 1, x_212); +x_214 = l_Lean_Elab_Term_throwError___rarg(x_213, x_166, x_6); +return x_214; +} +else +{ +lean_object* x_215; lean_object* x_216; lean_object* x_217; uint8_t x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; uint8_t x_224; uint8_t x_225; +x_215 = lean_ctor_get(x_199, 0); +lean_inc(x_215); +x_216 = lean_ctor_get(x_199, 1); +lean_inc(x_216); +x_217 = lean_ctor_get(x_199, 2); +lean_inc(x_217); +x_218 = lean_ctor_get_uint8(x_199, sizeof(void*)*4 + 1); +if (lean_is_exclusive(x_199)) { + lean_ctor_release(x_199, 0); + lean_ctor_release(x_199, 1); + lean_ctor_release(x_199, 2); + lean_ctor_release(x_199, 3); + x_219 = x_199; +} else { + lean_dec_ref(x_199); + x_219 = lean_box(0); +} +x_220 = lean_ctor_get(x_208, 0); +lean_inc(x_220); +if (lean_is_exclusive(x_208)) { + lean_ctor_release(x_208, 0); + x_221 = x_208; +} else { + lean_dec_ref(x_208); + x_221 = lean_box(0); +} +x_222 = lean_ctor_get(x_10, 4); +lean_inc(x_222); +x_223 = l_Lean_Syntax_getArgs(x_222); +lean_dec(x_222); +x_224 = l_Array_isEmpty___rarg(x_223); +lean_dec(x_223); +if (x_224 == 0) +{ +uint8_t x_283; +x_283 = 1; +x_225 = x_283; +goto block_282; +} +else +{ +lean_object* x_284; +x_284 = lean_ctor_get(x_10, 5); +lean_inc(x_284); +if (lean_obj_tag(x_284) == 0) +{ +uint8_t x_285; +x_285 = 0; +x_225 = x_285; +goto block_282; +} +else +{ +uint8_t x_286; +lean_dec(x_284); +x_286 = 1; +x_225 = x_286; +goto block_282; +} +} +block_282: +{ +uint8_t x_226; +if (x_225 == 0) +{ +uint8_t x_280; +x_280 = 0; +x_226 = x_280; +goto block_279; +} +else +{ +uint8_t x_281; +x_281 = 1; +x_226 = x_281; +goto block_279; +} +block_279: +{ +lean_object* x_227; +if (x_226 == 0) +{ +lean_dec(x_12); +lean_dec(x_10); +x_227 = x_6; +goto block_258; +} +else +{ +lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; +lean_dec(x_221); +lean_dec(x_220); +lean_dec(x_219); +lean_dec(x_217); +lean_dec(x_216); +lean_dec(x_215); +lean_dec(x_200); +lean_dec(x_162); +lean_dec(x_161); +lean_dec(x_160); +lean_dec(x_159); +lean_dec(x_158); +lean_dec(x_157); +lean_dec(x_156); +lean_dec(x_155); +lean_dec(x_154); +lean_dec(x_153); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_259 = lean_ctor_get(x_10, 5); +lean_inc(x_259); +lean_dec(x_10); +x_260 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_260, 0, x_12); +x_261 = l___private_Lean_Elab_Structure_10__withFields___main___rarg___closed__9; +x_262 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_262, 0, x_261); +lean_ctor_set(x_262, 1, x_260); +x_263 = l___private_Lean_Elab_Structure_10__withFields___main___rarg___closed__12; +x_264 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_264, 0, x_262); +lean_ctor_set(x_264, 1, x_263); +if (lean_obj_tag(x_259) == 0) +{ +lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; +x_265 = l_Lean_Syntax_inhabited; +x_266 = l_Option_get_x21___rarg___closed__3; +x_267 = lean_panic_fn(x_265, x_266); +x_268 = l_Lean_Elab_Term_throwErrorAt___rarg(x_267, x_264, x_166, x_6); +lean_dec(x_267); +x_269 = lean_ctor_get(x_268, 0); +lean_inc(x_269); +x_270 = lean_ctor_get(x_268, 1); +lean_inc(x_270); +if (lean_is_exclusive(x_268)) { + lean_ctor_release(x_268, 0); + lean_ctor_release(x_268, 1); + x_271 = x_268; +} else { + lean_dec_ref(x_268); + x_271 = lean_box(0); +} +if (lean_is_scalar(x_271)) { + x_272 = lean_alloc_ctor(1, 2, 0); +} else { + x_272 = x_271; +} +lean_ctor_set(x_272, 0, x_269); +lean_ctor_set(x_272, 1, x_270); +return x_272; +} +else +{ +lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; +x_273 = lean_ctor_get(x_259, 0); +lean_inc(x_273); +lean_dec(x_259); +x_274 = l_Lean_Elab_Term_throwErrorAt___rarg(x_273, x_264, x_166, x_6); +lean_dec(x_273); +x_275 = lean_ctor_get(x_274, 0); +lean_inc(x_275); +x_276 = lean_ctor_get(x_274, 1); +lean_inc(x_276); +if (lean_is_exclusive(x_274)) { + lean_ctor_release(x_274, 0); + lean_ctor_release(x_274, 1); + x_277 = x_274; +} else { + lean_dec_ref(x_274); + x_277 = lean_box(0); +} +if (lean_is_scalar(x_277)) { + x_278 = lean_alloc_ctor(1, 2, 0); +} else { + x_278 = x_277; +} +lean_ctor_set(x_278, 0, x_275); +lean_ctor_set(x_278, 1, x_276); +return x_278; +} +} +block_258: +{ +lean_object* x_228; +lean_inc(x_166); +lean_inc(x_217); +x_228 = l_Lean_Elab_Term_inferType(x_217, x_166, x_227); +if (lean_obj_tag(x_228) == 0) +{ +lean_object* x_229; lean_object* x_230; lean_object* x_231; uint8_t x_232; lean_object* x_233; +x_229 = lean_ctor_get(x_228, 0); +lean_inc(x_229); +x_230 = lean_ctor_get(x_228, 1); +lean_inc(x_230); +lean_dec(x_228); +if (lean_is_scalar(x_221)) { + x_231 = lean_alloc_ctor(1, 1, 0); +} else { + x_231 = x_221; +} +lean_ctor_set(x_231, 0, x_229); +x_232 = 1; +lean_inc(x_166); +lean_inc(x_231); +lean_inc(x_220); +x_233 = l_Lean_Elab_Term_elabTerm(x_220, x_231, x_232, x_166, x_230); +if (lean_obj_tag(x_233) == 0) +{ +lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; +x_234 = lean_ctor_get(x_233, 0); +lean_inc(x_234); +x_235 = lean_ctor_get(x_233, 1); +lean_inc(x_235); +lean_dec(x_233); +x_236 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_236, 0, x_153); +lean_ctor_set(x_236, 1, x_154); +lean_ctor_set(x_236, 2, x_155); +lean_ctor_set(x_236, 3, x_156); +lean_ctor_set(x_236, 4, x_157); +lean_ctor_set(x_236, 5, x_158); +lean_ctor_set(x_236, 6, x_159); +lean_ctor_set(x_236, 7, x_160); +lean_ctor_set(x_236, 8, x_161); +lean_ctor_set(x_236, 9, x_162); +lean_ctor_set(x_236, 10, x_220); +lean_ctor_set_uint8(x_236, sizeof(void*)*11, x_163); +lean_ctor_set_uint8(x_236, sizeof(void*)*11 + 1, x_164); +lean_ctor_set_uint8(x_236, sizeof(void*)*11 + 2, x_165); +x_237 = l_Lean_Elab_Term_ensureHasType(x_231, x_234, x_236, x_235); +if (lean_obj_tag(x_237) == 0) +{ +lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; +x_238 = lean_ctor_get(x_237, 0); +lean_inc(x_238); +x_239 = lean_ctor_get(x_237, 1); +lean_inc(x_239); +lean_dec(x_237); +if (lean_is_scalar(x_200)) { + x_240 = lean_alloc_ctor(1, 1, 0); +} else { + x_240 = x_200; +} +lean_ctor_set(x_240, 0, x_238); +if (lean_is_scalar(x_219)) { + x_241 = lean_alloc_ctor(0, 4, 2); +} else { + x_241 = x_219; +} +lean_ctor_set(x_241, 0, x_215); +lean_ctor_set(x_241, 1, x_216); +lean_ctor_set(x_241, 2, x_217); +lean_ctor_set(x_241, 3, x_240); +lean_ctor_set_uint8(x_241, sizeof(void*)*4, x_201); +lean_ctor_set_uint8(x_241, sizeof(void*)*4 + 1, x_218); +x_242 = lean_array_push(x_3, x_241); +x_243 = lean_unsigned_to_nat(1u); +x_244 = lean_nat_add(x_2, x_243); +lean_dec(x_2); +x_2 = x_244; +x_3 = x_242; +x_5 = x_166; +x_6 = x_239; +goto _start; +} +else +{ +lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; +lean_dec(x_219); +lean_dec(x_217); +lean_dec(x_216); +lean_dec(x_215); +lean_dec(x_200); +lean_dec(x_166); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_246 = lean_ctor_get(x_237, 0); +lean_inc(x_246); +x_247 = lean_ctor_get(x_237, 1); +lean_inc(x_247); +if (lean_is_exclusive(x_237)) { + lean_ctor_release(x_237, 0); + lean_ctor_release(x_237, 1); + x_248 = x_237; +} else { + lean_dec_ref(x_237); + 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; +} +} +else +{ +lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; +lean_dec(x_231); +lean_dec(x_220); +lean_dec(x_219); +lean_dec(x_217); +lean_dec(x_216); +lean_dec(x_215); +lean_dec(x_200); +lean_dec(x_166); +lean_dec(x_162); +lean_dec(x_161); +lean_dec(x_160); +lean_dec(x_159); +lean_dec(x_158); +lean_dec(x_157); +lean_dec(x_156); +lean_dec(x_155); +lean_dec(x_154); +lean_dec(x_153); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_250 = lean_ctor_get(x_233, 0); +lean_inc(x_250); +x_251 = lean_ctor_get(x_233, 1); +lean_inc(x_251); +if (lean_is_exclusive(x_233)) { + lean_ctor_release(x_233, 0); + lean_ctor_release(x_233, 1); + x_252 = x_233; +} else { + lean_dec_ref(x_233); + x_252 = lean_box(0); +} +if (lean_is_scalar(x_252)) { + x_253 = lean_alloc_ctor(1, 2, 0); +} else { + x_253 = x_252; +} +lean_ctor_set(x_253, 0, x_250); +lean_ctor_set(x_253, 1, x_251); +return x_253; +} +} +else +{ +lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; +lean_dec(x_221); +lean_dec(x_220); +lean_dec(x_219); +lean_dec(x_217); +lean_dec(x_216); +lean_dec(x_215); +lean_dec(x_200); +lean_dec(x_166); +lean_dec(x_162); +lean_dec(x_161); +lean_dec(x_160); +lean_dec(x_159); +lean_dec(x_158); +lean_dec(x_157); +lean_dec(x_156); +lean_dec(x_155); +lean_dec(x_154); +lean_dec(x_153); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_254 = lean_ctor_get(x_228, 0); +lean_inc(x_254); +x_255 = lean_ctor_get(x_228, 1); +lean_inc(x_255); +if (lean_is_exclusive(x_228)) { + lean_ctor_release(x_228, 0); + lean_ctor_release(x_228, 1); + x_256 = x_228; +} else { + lean_dec_ref(x_228); + x_256 = lean_box(0); +} +if (lean_is_scalar(x_256)) { + x_257 = lean_alloc_ctor(1, 2, 0); +} else { + x_257 = x_256; +} +lean_ctor_set(x_257, 0, x_254); +lean_ctor_set(x_257, 1, x_255); +return x_257; +} +} +} +} +} +} +default: +{ +lean_object* x_287; lean_object* x_288; lean_object* x_289; +lean_dec(x_200); +lean_dec(x_199); +lean_dec(x_162); +lean_dec(x_161); +lean_dec(x_160); +lean_dec(x_159); +lean_dec(x_158); +lean_dec(x_157); +lean_dec(x_156); +lean_dec(x_155); +lean_dec(x_154); +lean_dec(x_153); +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_287 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; +x_288 = l_unreachable_x21___rarg(x_287); +x_289 = lean_apply_2(x_288, x_166, x_6); +return x_289; +} } } } @@ -4660,345 +5878,150 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Structure_11__getResultUniverse(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Structure_11__getResultUniverse(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { +lean_object* x_4; +lean_inc(x_2); +x_4 = l_Lean_Elab_Term_whnf(x_1, x_2, x_3); +if (lean_obj_tag(x_4) == 0) +{ lean_object* x_5; -lean_inc(x_3); -x_5 = l_Lean_Elab_Term_whnf(x_1, x_2, x_3, x_4); -if (lean_obj_tag(x_5) == 0) +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +if (lean_obj_tag(x_5) == 3) { -lean_object* x_6; -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -if (lean_obj_tag(x_6) == 3) +uint8_t x_6; +lean_dec(x_2); +x_6 = !lean_is_exclusive(x_4); +if (x_6 == 0) { -uint8_t x_7; -lean_dec(x_3); -x_7 = !lean_is_exclusive(x_5); -if (x_7 == 0) -{ -lean_object* x_8; lean_object* x_9; +lean_object* x_7; lean_object* x_8; +x_7 = lean_ctor_get(x_4, 0); +lean_dec(x_7); x_8 = lean_ctor_get(x_5, 0); -lean_dec(x_8); -x_9 = lean_ctor_get(x_6, 0); -lean_inc(x_9); -lean_dec(x_6); -lean_ctor_set(x_5, 0, x_9); -return x_5; +lean_inc(x_8); +lean_dec(x_5); +lean_ctor_set(x_4, 0, x_8); +return x_4; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_10 = lean_ctor_get(x_5, 1); +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_ctor_get(x_4, 1); +lean_inc(x_9); +lean_dec(x_4); +x_10 = lean_ctor_get(x_5, 0); lean_inc(x_10); lean_dec(x_5); -x_11 = lean_ctor_get(x_6, 0); -lean_inc(x_11); -lean_dec(x_6); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_10); -return x_12; +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_9); +return x_11; } } else { -lean_object* x_13; lean_object* x_14; lean_object* x_15; -lean_dec(x_6); -x_13 = lean_ctor_get(x_5, 1); -lean_inc(x_13); +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_dec(x_5); -x_14 = l___private_Lean_Elab_Structure_11__getResultUniverse___closed__3; -x_15 = l_Lean_Elab_Term_throwError___rarg(x_1, x_14, x_3, x_13); -return x_15; -} -} -else -{ -uint8_t x_16; -lean_dec(x_3); -x_16 = !lean_is_exclusive(x_5); -if (x_16 == 0) -{ -return x_5; -} -else -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_5, 0); -x_18 = lean_ctor_get(x_5, 1); -lean_inc(x_18); -lean_inc(x_17); -lean_dec(x_5); -x_19 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_19, 0, x_17); -lean_ctor_set(x_19, 1, x_18); -return x_19; -} -} -} -} -lean_object* l___private_Lean_Elab_Structure_11__getResultUniverse___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l___private_Lean_Elab_Structure_11__getResultUniverse(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_12__removeUnused___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) { -_start: -{ -lean_object* x_8; uint8_t x_9; -x_8 = lean_array_get_size(x_3); -x_9 = lean_nat_dec_lt(x_4, x_8); -lean_dec(x_8); -if (x_9 == 0) -{ -lean_object* x_10; -lean_dec(x_6); +x_12 = lean_ctor_get(x_4, 1); +lean_inc(x_12); lean_dec(x_4); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_5); -lean_ctor_set(x_10, 1, x_7); -return x_10; -} -else -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_11 = lean_array_fget(x_3, x_4); -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_add(x_4, x_12); -lean_dec(x_4); -lean_inc(x_6); -x_14 = l_Lean_Elab_Term_inferType(x_1, x_11, x_6, x_7); -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); -lean_inc(x_6); -x_17 = l_Lean_Elab_Term_collectUsedFVars(x_1, x_5, x_15, x_6, x_16); -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); -x_19 = lean_ctor_get(x_17, 1); -lean_inc(x_19); -lean_dec(x_17); -x_4 = x_13; -x_5 = x_18; -x_7 = x_19; -goto _start; -} -else -{ -uint8_t x_21; -lean_dec(x_13); -lean_dec(x_6); -lean_dec(x_5); -x_21 = !lean_is_exclusive(x_14); -if (x_21 == 0) -{ +x_13 = l___private_Lean_Elab_Structure_11__getResultUniverse___closed__3; +x_14 = l_Lean_Elab_Term_throwError___rarg(x_13, x_2, x_12); return x_14; } -else -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_14, 0); -x_23 = lean_ctor_get(x_14, 1); -lean_inc(x_23); -lean_inc(x_22); -lean_dec(x_14); -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -return x_24; -} -} -} -} -} -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_12__removeUnused___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) { -_start: -{ -lean_object* x_8; uint8_t x_9; -x_8 = lean_array_get_size(x_3); -x_9 = lean_nat_dec_lt(x_4, x_8); -lean_dec(x_8); -if (x_9 == 0) -{ -lean_object* x_10; -lean_dec(x_6); -lean_dec(x_4); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_5); -lean_ctor_set(x_10, 1, x_7); -return x_10; } else { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_11 = lean_array_fget(x_3, x_4); -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_add(x_4, x_12); -lean_dec(x_4); -x_14 = lean_ctor_get(x_11, 2); -lean_inc(x_14); -lean_inc(x_6); -x_15 = l_Lean_Elab_Term_inferType(x_1, x_14, x_6, x_7); -if (lean_obj_tag(x_15) == 0) +uint8_t x_15; +lean_dec(x_2); +x_15 = !lean_is_exclusive(x_4); +if (x_15 == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_16 = lean_ctor_get(x_15, 0); +return x_4; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_4, 0); +x_17 = lean_ctor_get(x_4, 1); +lean_inc(x_17); lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); -lean_inc(x_17); -lean_dec(x_15); -lean_inc(x_6); -x_18 = l_Lean_Elab_Term_collectUsedFVars(x_1, x_5, x_16, x_6, x_17); -x_19 = lean_ctor_get(x_11, 3); -lean_inc(x_19); -lean_dec(x_11); -if (lean_obj_tag(x_19) == 0) -{ -lean_object* x_20; lean_object* x_21; -x_20 = lean_ctor_get(x_18, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_18, 1); -lean_inc(x_21); -lean_dec(x_18); -x_4 = x_13; -x_5 = x_20; -x_7 = x_21; -goto _start; -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_23 = lean_ctor_get(x_18, 0); -lean_inc(x_23); -x_24 = lean_ctor_get(x_18, 1); -lean_inc(x_24); -lean_dec(x_18); -x_25 = lean_ctor_get(x_19, 0); -lean_inc(x_25); -lean_dec(x_19); -lean_inc(x_6); -x_26 = l_Lean_Elab_Term_collectUsedFVars(x_1, x_23, x_25, x_6, 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_4 = x_13; -x_5 = x_27; -x_7 = x_28; -goto _start; -} -} -else -{ -uint8_t x_30; -lean_dec(x_13); -lean_dec(x_11); -lean_dec(x_6); -lean_dec(x_5); -x_30 = !lean_is_exclusive(x_15); -if (x_30 == 0) -{ -return x_15; -} -else -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_15, 0); -x_32 = lean_ctor_get(x_15, 1); -lean_inc(x_32); -lean_inc(x_31); -lean_dec(x_15); -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_dec(x_4); +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +return x_18; } } } } -} -lean_object* l___private_Lean_Elab_Structure_12__removeUnused(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* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_12__removeUnused___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_object* x_8; lean_object* x_9; -x_7 = lean_unsigned_to_nat(0u); -x_8 = l___private_Lean_Elab_Definition_1__removeUnused___closed__1; -lean_inc(x_5); -x_9 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_12__removeUnused___spec__1(x_1, x_3, x_3, x_7, x_8, x_5, x_6); -if (lean_obj_tag(x_9) == 0) +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_get_size(x_2); +x_8 = lean_nat_dec_lt(x_3, x_7); +lean_dec(x_7); +if (x_8 == 0) { -lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_9, 1); -lean_inc(x_11); -lean_dec(x_9); -lean_inc(x_5); -x_12 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_12__removeUnused___spec__2(x_1, x_4, x_4, x_7, x_10, x_5, x_11); -if (lean_obj_tag(x_12) == 0) -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); -lean_inc(x_14); -lean_dec(x_12); -x_15 = l_Lean_Elab_Term_removeUnused(x_1, x_2, x_13, x_5, x_14); -return x_15; -} -else -{ -uint8_t x_16; +lean_object* x_9; lean_dec(x_5); -x_16 = !lean_is_exclusive(x_12); -if (x_16 == 0) -{ -return x_12; -} -else -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_12, 0); -x_18 = lean_ctor_get(x_12, 1); -lean_inc(x_18); -lean_inc(x_17); -lean_dec(x_12); -x_19 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_19, 0, x_17); -lean_ctor_set(x_19, 1, x_18); -return x_19; -} -} -} -else -{ -uint8_t x_20; -lean_dec(x_5); -x_20 = !lean_is_exclusive(x_9); -if (x_20 == 0) -{ +lean_dec(x_3); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_4); +lean_ctor_set(x_9, 1, x_6); return x_9; } else { +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_10 = lean_array_fget(x_2, x_3); +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_add(x_3, x_11); +lean_dec(x_3); +lean_inc(x_5); +x_13 = l_Lean_Elab_Term_inferType(x_10, x_5, x_6); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +lean_inc(x_5); +x_16 = l_Lean_Elab_Term_collectUsedFVars(x_4, x_14, x_5, x_15); +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_3 = x_12; +x_4 = x_17; +x_6 = x_18; +goto _start; +} +else +{ +uint8_t x_20; +lean_dec(x_12); +lean_dec(x_5); +lean_dec(x_4); +x_20 = !lean_is_exclusive(x_13); +if (x_20 == 0) +{ +return x_13; +} +else +{ lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_9, 0); -x_22 = lean_ctor_get(x_9, 1); +x_21 = lean_ctor_get(x_13, 0); +x_22 = lean_ctor_get(x_13, 1); lean_inc(x_22); lean_inc(x_21); -lean_dec(x_9); +lean_dec(x_13); x_23 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_23, 0, x_21); lean_ctor_set(x_23, 1, x_22); @@ -5007,122 +6030,306 @@ return x_23; } } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_12__removeUnused___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* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_12__removeUnused___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_8; -x_8 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_12__removeUnused___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_get_size(x_2); +x_8 = lean_nat_dec_lt(x_3, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +lean_object* x_9; +lean_dec(x_5); lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_8; +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_4); +lean_ctor_set(x_9, 1, x_6); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_10 = lean_array_fget(x_2, x_3); +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_add(x_3, x_11); +lean_dec(x_3); +x_13 = lean_ctor_get(x_10, 2); +lean_inc(x_13); +lean_inc(x_5); +x_14 = l_Lean_Elab_Term_inferType(x_13, x_5, x_6); +if (lean_obj_tag(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_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +lean_inc(x_5); +x_17 = l_Lean_Elab_Term_collectUsedFVars(x_4, x_15, x_5, x_16); +x_18 = lean_ctor_get(x_10, 3); +lean_inc(x_18); +lean_dec(x_10); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_17, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_17, 1); +lean_inc(x_20); +lean_dec(x_17); +x_3 = x_12; +x_4 = x_19; +x_6 = x_20; +goto _start; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_22 = lean_ctor_get(x_17, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_17, 1); +lean_inc(x_23); +lean_dec(x_17); +x_24 = lean_ctor_get(x_18, 0); +lean_inc(x_24); +lean_dec(x_18); +lean_inc(x_5); +x_25 = l_Lean_Elab_Term_collectUsedFVars(x_22, x_24, x_5, x_23); +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); +x_3 = x_12; +x_4 = x_26; +x_6 = x_27; +goto _start; } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_12__removeUnused___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) { +else +{ +uint8_t x_29; +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_5); +lean_dec(x_4); +x_29 = !lean_is_exclusive(x_14); +if (x_29 == 0) +{ +return x_14; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_14, 0); +x_31 = lean_ctor_get(x_14, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_14); +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; +} +} +} +} +} +lean_object* l___private_Lean_Elab_Structure_12__removeUnused(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_8; -x_8 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_12__removeUnused___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); +lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_6 = lean_unsigned_to_nat(0u); +x_7 = l___private_Lean_Elab_Definition_1__removeUnused___closed__1; +lean_inc(x_4); +x_8 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_12__removeUnused___spec__1(x_2, x_2, x_6, x_7, x_4, x_5); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +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); +lean_inc(x_4); +x_11 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_12__removeUnused___spec__2(x_3, x_3, x_6, x_9, x_4, x_10); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +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 = l_Lean_Elab_Term_removeUnused(x_1, x_12, x_4, x_13); +return x_14; +} +else +{ +uint8_t x_15; +lean_dec(x_4); +x_15 = !lean_is_exclusive(x_11); +if (x_15 == 0) +{ +return x_11; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_11, 0); +x_17 = lean_ctor_get(x_11, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_11); +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +return x_18; +} +} +} +else +{ +uint8_t x_19; +lean_dec(x_4); +x_19 = !lean_is_exclusive(x_8); +if (x_19 == 0) +{ return x_8; } +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_8, 0); +x_21 = lean_ctor_get(x_8, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_8); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +return x_22; } -lean_object* l___private_Lean_Elab_Structure_12__removeUnused___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* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_12__removeUnused___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___private_Lean_Elab_Structure_12__removeUnused(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_4); -lean_dec(x_3); +x_7 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_12__removeUnused___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_2); lean_dec(x_1); return x_7; } } -lean_object* l___private_Lean_Elab_Structure_13__withUsed___rarg(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* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_12__removeUnused___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_8; -lean_inc(x_6); -x_8 = l___private_Lean_Elab_Structure_12__removeUnused(x_1, x_2, x_3, x_4, x_6, x_7); -if (lean_obj_tag(x_8) == 0) +lean_object* x_7; +x_7 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_12__removeUnused___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_2); +lean_dec(x_1); +return x_7; +} +} +lean_object* l___private_Lean_Elab_Structure_12__removeUnused___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: { -lean_object* x_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; uint8_t x_16; -x_9 = lean_ctor_get(x_8, 0); +lean_object* x_6; +x_6 = l___private_Lean_Elab_Structure_12__removeUnused(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_6; +} +} +lean_object* l___private_Lean_Elab_Structure_13__withUsed___rarg(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_5); +x_7 = l___private_Lean_Elab_Structure_12__removeUnused(x_1, x_2, x_3, x_5, x_6); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_8, 1); lean_inc(x_9); -x_10 = lean_ctor_get(x_9, 1); +x_10 = lean_ctor_get(x_5, 0); lean_inc(x_10); -x_11 = lean_ctor_get(x_6, 0); +x_11 = lean_ctor_get(x_7, 1); lean_inc(x_11); -x_12 = lean_ctor_get(x_8, 1); +lean_dec(x_7); +x_12 = lean_ctor_get(x_8, 0); lean_inc(x_12); lean_dec(x_8); x_13 = lean_ctor_get(x_9, 0); lean_inc(x_13); -lean_dec(x_9); -x_14 = lean_ctor_get(x_10, 0); +x_14 = lean_ctor_get(x_9, 1); lean_inc(x_14); -x_15 = lean_ctor_get(x_10, 1); -lean_inc(x_15); -lean_dec(x_10); -x_16 = !lean_is_exclusive(x_6); -if (x_16 == 0) +lean_dec(x_9); +x_15 = !lean_is_exclusive(x_5); +if (x_15 == 0) { -lean_object* x_17; uint8_t x_18; -x_17 = lean_ctor_get(x_6, 0); -lean_dec(x_17); -x_18 = !lean_is_exclusive(x_11); -if (x_18 == 0) +lean_object* x_16; uint8_t x_17; +x_16 = lean_ctor_get(x_5, 0); +lean_dec(x_16); +x_17 = !lean_is_exclusive(x_10); +if (x_17 == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_11, 2); +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_10, 2); +lean_dec(x_18); +x_19 = lean_ctor_get(x_10, 1); lean_dec(x_19); -x_20 = lean_ctor_get(x_11, 1); -lean_dec(x_20); -lean_ctor_set(x_11, 2, x_14); -lean_ctor_set(x_11, 1, x_13); -x_21 = lean_apply_3(x_5, x_15, x_6, x_12); -return x_21; +lean_ctor_set(x_10, 2, x_13); +lean_ctor_set(x_10, 1, x_12); +x_20 = lean_apply_3(x_4, x_14, x_5, x_11); +return x_20; } else { -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_22 = lean_ctor_get(x_11, 0); -x_23 = lean_ctor_get(x_11, 3); -x_24 = lean_ctor_get(x_11, 4); -lean_inc(x_24); +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_21 = lean_ctor_get(x_10, 0); +x_22 = lean_ctor_get(x_10, 3); +x_23 = lean_ctor_get(x_10, 4); lean_inc(x_23); lean_inc(x_22); -lean_dec(x_11); -x_25 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_25, 0, x_22); -lean_ctor_set(x_25, 1, x_13); -lean_ctor_set(x_25, 2, x_14); -lean_ctor_set(x_25, 3, x_23); -lean_ctor_set(x_25, 4, x_24); -lean_ctor_set(x_6, 0, x_25); -x_26 = lean_apply_3(x_5, x_15, x_6, x_12); -return x_26; +lean_inc(x_21); +lean_dec(x_10); +x_24 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_24, 0, x_21); +lean_ctor_set(x_24, 1, x_12); +lean_ctor_set(x_24, 2, x_13); +lean_ctor_set(x_24, 3, x_22); +lean_ctor_set(x_24, 4, x_23); +lean_ctor_set(x_5, 0, x_24); +x_25 = lean_apply_3(x_4, x_14, x_5, x_11); +return x_25; } } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; uint8_t x_37; uint8_t x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_27 = lean_ctor_get(x_6, 1); -x_28 = lean_ctor_get(x_6, 2); -x_29 = lean_ctor_get(x_6, 3); -x_30 = lean_ctor_get(x_6, 4); -x_31 = lean_ctor_get(x_6, 5); -x_32 = lean_ctor_get(x_6, 6); -x_33 = lean_ctor_get(x_6, 7); -x_34 = lean_ctor_get(x_6, 8); -x_35 = lean_ctor_get(x_6, 9); -x_36 = lean_ctor_get_uint8(x_6, sizeof(void*)*10); -x_37 = lean_ctor_get_uint8(x_6, sizeof(void*)*10 + 1); -x_38 = lean_ctor_get_uint8(x_6, sizeof(void*)*10 + 2); -lean_inc(x_35); +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; uint8_t x_36; uint8_t x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_26 = lean_ctor_get(x_5, 1); +x_27 = lean_ctor_get(x_5, 2); +x_28 = lean_ctor_get(x_5, 3); +x_29 = lean_ctor_get(x_5, 4); +x_30 = lean_ctor_get(x_5, 5); +x_31 = lean_ctor_get(x_5, 6); +x_32 = lean_ctor_get(x_5, 7); +x_33 = lean_ctor_get(x_5, 8); +x_34 = lean_ctor_get(x_5, 9); +x_35 = lean_ctor_get_uint8(x_5, sizeof(void*)*11); +x_36 = lean_ctor_get_uint8(x_5, sizeof(void*)*11 + 1); +x_37 = lean_ctor_get_uint8(x_5, sizeof(void*)*11 + 2); +x_38 = lean_ctor_get(x_5, 10); +lean_inc(x_38); lean_inc(x_34); lean_inc(x_33); lean_inc(x_32); @@ -5131,22 +6338,23 @@ lean_inc(x_30); lean_inc(x_29); lean_inc(x_28); lean_inc(x_27); -lean_dec(x_6); -x_39 = lean_ctor_get(x_11, 0); +lean_inc(x_26); +lean_dec(x_5); +x_39 = lean_ctor_get(x_10, 0); lean_inc(x_39); -x_40 = lean_ctor_get(x_11, 3); +x_40 = lean_ctor_get(x_10, 3); lean_inc(x_40); -x_41 = lean_ctor_get(x_11, 4); +x_41 = lean_ctor_get(x_10, 4); lean_inc(x_41); -if (lean_is_exclusive(x_11)) { - lean_ctor_release(x_11, 0); - lean_ctor_release(x_11, 1); - lean_ctor_release(x_11, 2); - lean_ctor_release(x_11, 3); - lean_ctor_release(x_11, 4); - x_42 = x_11; +if (lean_is_exclusive(x_10)) { + lean_ctor_release(x_10, 0); + lean_ctor_release(x_10, 1); + lean_ctor_release(x_10, 2); + lean_ctor_release(x_10, 3); + lean_ctor_release(x_10, 4); + x_42 = x_10; } else { - lean_dec_ref(x_11); + lean_dec_ref(x_10); x_42 = lean_box(0); } if (lean_is_scalar(x_42)) { @@ -5155,46 +6363,47 @@ if (lean_is_scalar(x_42)) { x_43 = x_42; } lean_ctor_set(x_43, 0, x_39); -lean_ctor_set(x_43, 1, x_13); -lean_ctor_set(x_43, 2, x_14); +lean_ctor_set(x_43, 1, x_12); +lean_ctor_set(x_43, 2, x_13); lean_ctor_set(x_43, 3, x_40); lean_ctor_set(x_43, 4, x_41); -x_44 = lean_alloc_ctor(0, 10, 3); +x_44 = lean_alloc_ctor(0, 11, 3); lean_ctor_set(x_44, 0, x_43); -lean_ctor_set(x_44, 1, x_27); -lean_ctor_set(x_44, 2, x_28); -lean_ctor_set(x_44, 3, x_29); -lean_ctor_set(x_44, 4, x_30); -lean_ctor_set(x_44, 5, x_31); -lean_ctor_set(x_44, 6, x_32); -lean_ctor_set(x_44, 7, x_33); -lean_ctor_set(x_44, 8, x_34); -lean_ctor_set(x_44, 9, x_35); -lean_ctor_set_uint8(x_44, sizeof(void*)*10, x_36); -lean_ctor_set_uint8(x_44, sizeof(void*)*10 + 1, x_37); -lean_ctor_set_uint8(x_44, sizeof(void*)*10 + 2, x_38); -x_45 = lean_apply_3(x_5, x_15, x_44, x_12); +lean_ctor_set(x_44, 1, x_26); +lean_ctor_set(x_44, 2, x_27); +lean_ctor_set(x_44, 3, x_28); +lean_ctor_set(x_44, 4, x_29); +lean_ctor_set(x_44, 5, x_30); +lean_ctor_set(x_44, 6, x_31); +lean_ctor_set(x_44, 7, x_32); +lean_ctor_set(x_44, 8, x_33); +lean_ctor_set(x_44, 9, x_34); +lean_ctor_set(x_44, 10, x_38); +lean_ctor_set_uint8(x_44, sizeof(void*)*11, x_35); +lean_ctor_set_uint8(x_44, sizeof(void*)*11 + 1, x_36); +lean_ctor_set_uint8(x_44, sizeof(void*)*11 + 2, x_37); +x_45 = lean_apply_3(x_4, x_14, x_44, x_11); return x_45; } } else { uint8_t x_46; -lean_dec(x_6); lean_dec(x_5); -x_46 = !lean_is_exclusive(x_8); +lean_dec(x_4); +x_46 = !lean_is_exclusive(x_7); if (x_46 == 0) { -return x_8; +return x_7; } else { lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = lean_ctor_get(x_8, 0); -x_48 = lean_ctor_get(x_8, 1); +x_47 = lean_ctor_get(x_7, 0); +x_48 = lean_ctor_get(x_7, 1); lean_inc(x_48); lean_inc(x_47); -lean_dec(x_8); +lean_dec(x_7); x_49 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_49, 0, x_47); lean_ctor_set(x_49, 1, x_48); @@ -5207,197 +6416,522 @@ lean_object* l___private_Lean_Elab_Structure_13__withUsed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_13__withUsed___rarg___boxed), 7, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_13__withUsed___rarg___boxed), 6, 0); return x_2; } } -lean_object* l___private_Lean_Elab_Structure_13__withUsed___rarg___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* l___private_Lean_Elab_Structure_13__withUsed___rarg___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_8; -x_8 = l___private_Lean_Elab_Structure_13__withUsed___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_4); +lean_object* x_7; +x_7 = l___private_Lean_Elab_Structure_13__withUsed___rarg(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); +return x_7; +} +} +lean_object* l___private_Lean_Elab_Structure_14__levelMVarToParamFVar(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +lean_inc(x_3); +x_5 = l_Lean_Elab_Term_inferType(x_1, x_3, x_4); +if (lean_obj_tag(x_5) == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); +lean_dec(x_5); +x_8 = l_Lean_Elab_Term_levelMVarToParam_x27(x_6, x_2, x_3, x_7); +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) +{ +lean_object* x_10; uint8_t x_11; +x_10 = lean_ctor_get(x_8, 0); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_10, 0); +lean_dec(x_12); +x_13 = lean_box(0); +lean_ctor_set(x_10, 0, x_13); +return x_8; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_10, 1); +lean_inc(x_14); +lean_dec(x_10); +x_15 = lean_box(0); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_14); +lean_ctor_set(x_8, 0, x_16); return x_8; } } -lean_object* l___private_Lean_Elab_Structure_14__levelMVarToParamFVar(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -lean_inc(x_4); -x_6 = l_Lean_Elab_Term_inferType(x_1, x_2, x_4, x_5); -if (lean_obj_tag(x_6) == 0) -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; -x_7 = lean_ctor_get(x_6, 0); -lean_inc(x_7); -x_8 = lean_ctor_get(x_6, 1); -lean_inc(x_8); -lean_dec(x_6); -x_9 = l_Lean_Elab_Term_levelMVarToParam_x27(x_7, x_3, x_4, x_8); -x_10 = !lean_is_exclusive(x_9); -if (x_10 == 0) -{ -lean_object* x_11; uint8_t x_12; -x_11 = lean_ctor_get(x_9, 0); -x_12 = !lean_is_exclusive(x_11); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; -x_13 = lean_ctor_get(x_11, 0); -lean_dec(x_13); -x_14 = lean_box(0); -lean_ctor_set(x_11, 0, x_14); -return x_9; -} else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_11, 1); -lean_inc(x_15); -lean_dec(x_11); -x_16 = lean_box(0); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_15); -lean_ctor_set(x_9, 0, x_17); -return x_9; -} -} -else -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_18 = lean_ctor_get(x_9, 0); -x_19 = lean_ctor_get(x_9, 1); -lean_inc(x_19); +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; +x_17 = lean_ctor_get(x_8, 0); +x_18 = lean_ctor_get(x_8, 1); lean_inc(x_18); -lean_dec(x_9); -x_20 = lean_ctor_get(x_18, 1); -lean_inc(x_20); -if (lean_is_exclusive(x_18)) { - lean_ctor_release(x_18, 0); - lean_ctor_release(x_18, 1); - x_21 = x_18; +lean_inc(x_17); +lean_dec(x_8); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +if (lean_is_exclusive(x_17)) { + lean_ctor_release(x_17, 0); + lean_ctor_release(x_17, 1); + x_20 = x_17; } else { - lean_dec_ref(x_18); - x_21 = lean_box(0); + lean_dec_ref(x_17); + x_20 = lean_box(0); } -x_22 = lean_box(0); -if (lean_is_scalar(x_21)) { - x_23 = lean_alloc_ctor(0, 2, 0); +x_21 = lean_box(0); +if (lean_is_scalar(x_20)) { + x_22 = lean_alloc_ctor(0, 2, 0); } else { - x_23 = x_21; + x_22 = x_20; } +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_19); +x_23 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_20); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_19); -return x_24; +lean_ctor_set(x_23, 1, x_18); +return x_23; } } else { -uint8_t x_25; -lean_dec(x_4); +uint8_t x_24; lean_dec(x_3); -x_25 = !lean_is_exclusive(x_6); -if (x_25 == 0) +lean_dec(x_2); +x_24 = !lean_is_exclusive(x_5); +if (x_24 == 0) { -return x_6; +return x_5; } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_6, 0); -x_27 = lean_ctor_get(x_6, 1); -lean_inc(x_27); +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_5, 0); +x_26 = lean_ctor_get(x_5, 1); lean_inc(x_26); -lean_dec(x_6); -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; -} -} -} -} -lean_object* l___private_Lean_Elab_Structure_14__levelMVarToParamFVar___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l___private_Lean_Elab_Structure_14__levelMVarToParamFVar(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_1); -return x_6; -} -} -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Structure_15__levelMVarToParamFVars___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; uint8_t x_8; -x_7 = lean_array_get_size(x_2); -x_8 = lean_nat_dec_lt(x_3, x_7); -lean_dec(x_7); -if (x_8 == 0) -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; +lean_inc(x_25); lean_dec(x_5); -lean_dec(x_3); -x_9 = lean_box(0); +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_Array_forMAux___main___at___private_Lean_Elab_Structure_15__levelMVarToParamFVars___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; uint8_t x_7; +x_6 = lean_array_get_size(x_1); +x_7 = lean_nat_dec_lt(x_2, x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +lean_dec(x_4); +lean_dec(x_2); +x_8 = lean_box(0); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_3); x_10 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_10, 0, x_9); -lean_ctor_set(x_10, 1, x_4); -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_10); -lean_ctor_set(x_11, 1, x_6); -return x_11; +lean_ctor_set(x_10, 1, x_5); +return x_10; } else { -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_12 = lean_array_fget(x_2, x_3); -x_13 = lean_unsigned_to_nat(1u); -x_14 = lean_nat_add(x_3, x_13); -lean_dec(x_3); -lean_inc(x_5); -x_15 = l___private_Lean_Elab_Structure_14__levelMVarToParamFVar(x_1, x_12, x_4, x_5, x_6); -if (lean_obj_tag(x_15) == 0) +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = lean_array_fget(x_1, x_2); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_2, x_12); +lean_dec(x_2); +lean_inc(x_4); +x_14 = l___private_Lean_Elab_Structure_14__levelMVarToParamFVar(x_11, x_3, x_4, x_5); +if (lean_obj_tag(x_14) == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = lean_ctor_get(x_15, 0); +lean_object* x_15; lean_object* x_16; lean_object* x_17; +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, 1); lean_inc(x_17); lean_dec(x_15); -x_18 = lean_ctor_get(x_16, 1); -lean_inc(x_18); -lean_dec(x_16); -x_3 = x_14; -x_4 = x_18; -x_6 = x_17; +x_2 = x_13; +x_3 = x_17; +x_5 = x_16; goto _start; } else { -uint8_t x_20; +uint8_t x_19; +lean_dec(x_13); +lean_dec(x_4); +x_19 = !lean_is_exclusive(x_14); +if (x_19 == 0) +{ +return x_14; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_14, 0); +x_21 = lean_ctor_get(x_14, 1); +lean_inc(x_21); +lean_inc(x_20); lean_dec(x_14); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +} +} +} +lean_object* l___private_Lean_Elab_Structure_15__levelMVarToParamFVars(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; +x_5 = lean_unsigned_to_nat(0u); +x_6 = l_Array_forMAux___main___at___private_Lean_Elab_Structure_15__levelMVarToParamFVars___spec__1(x_1, x_5, x_2, x_3, x_4); +return x_6; +} +} +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Structure_15__levelMVarToParamFVars___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Array_forMAux___main___at___private_Lean_Elab_Structure_15__levelMVarToParamFVars___spec__1(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_1); +return x_6; +} +} +lean_object* l___private_Lean_Elab_Structure_15__levelMVarToParamFVars___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l___private_Lean_Elab_Structure_15__levelMVarToParamFVars(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Structure_16__levelMVarToParamAux___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; uint8_t x_7; +x_6 = lean_array_get_size(x_2); +x_7 = lean_nat_dec_lt(x_1, x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +lean_dec(x_4); +lean_dec(x_1); +x_8 = x_2; +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_3); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_5); +return x_10; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; +x_11 = lean_array_fget(x_2, x_1); +x_12 = lean_unsigned_to_nat(0u); +x_13 = lean_array_fset(x_2, x_1, x_12); +x_14 = x_11; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +x_17 = lean_ctor_get(x_14, 2); +lean_inc(x_17); +x_18 = lean_ctor_get_uint8(x_14, sizeof(void*)*4); +x_19 = lean_ctor_get_uint8(x_14, sizeof(void*)*4 + 1); +x_20 = lean_ctor_get(x_14, 3); +lean_inc(x_20); +lean_inc(x_4); +lean_inc(x_17); +x_21 = l___private_Lean_Elab_Structure_14__levelMVarToParamFVar(x_17, x_3, x_4, x_5); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +if (lean_obj_tag(x_20) == 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_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +x_23 = lean_ctor_get(x_21, 1); +lean_inc(x_23); +lean_dec(x_21); +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +x_25 = lean_unsigned_to_nat(1u); +x_26 = lean_nat_add(x_1, x_25); +x_27 = x_14; +x_28 = lean_array_fset(x_13, x_1, x_27); +lean_dec(x_1); +x_1 = x_26; +x_2 = x_28; +x_3 = x_24; +x_5 = x_23; +goto _start; +} +else +{ +uint8_t x_30; +x_30 = !lean_is_exclusive(x_14); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_31 = lean_ctor_get(x_14, 3); +lean_dec(x_31); +x_32 = lean_ctor_get(x_14, 2); +lean_dec(x_32); +x_33 = lean_ctor_get(x_14, 1); +lean_dec(x_33); +x_34 = lean_ctor_get(x_14, 0); +lean_dec(x_34); +x_35 = lean_ctor_get(x_21, 1); +lean_inc(x_35); +lean_dec(x_21); +x_36 = lean_ctor_get(x_22, 1); +lean_inc(x_36); +lean_dec(x_22); +x_37 = !lean_is_exclusive(x_20); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_38 = lean_ctor_get(x_20, 0); +lean_inc(x_4); +x_39 = l_Lean_Elab_Term_levelMVarToParam_x27(x_38, x_36, x_4, x_35); +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_39, 1); +lean_inc(x_41); +lean_dec(x_39); +x_42 = lean_ctor_get(x_40, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_40, 1); +lean_inc(x_43); +lean_dec(x_40); +lean_ctor_set(x_20, 0, x_42); +x_44 = lean_unsigned_to_nat(1u); +x_45 = lean_nat_add(x_1, x_44); +x_46 = x_14; +x_47 = lean_array_fset(x_13, x_1, x_46); +lean_dec(x_1); +x_1 = x_45; +x_2 = x_47; +x_3 = x_43; +x_5 = x_41; +goto _start; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_49 = lean_ctor_get(x_20, 0); +lean_inc(x_49); +lean_dec(x_20); +lean_inc(x_4); +x_50 = l_Lean_Elab_Term_levelMVarToParam_x27(x_49, x_36, x_4, x_35); +x_51 = lean_ctor_get(x_50, 0); +lean_inc(x_51); +x_52 = lean_ctor_get(x_50, 1); +lean_inc(x_52); +lean_dec(x_50); +x_53 = lean_ctor_get(x_51, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_51, 1); +lean_inc(x_54); +lean_dec(x_51); +x_55 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_55, 0, x_53); +lean_ctor_set(x_14, 3, x_55); +x_56 = lean_unsigned_to_nat(1u); +x_57 = lean_nat_add(x_1, x_56); +x_58 = x_14; +x_59 = lean_array_fset(x_13, x_1, x_58); +lean_dec(x_1); +x_1 = x_57; +x_2 = x_59; +x_3 = x_54; +x_5 = x_52; +goto _start; +} +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; +lean_dec(x_14); +x_61 = lean_ctor_get(x_21, 1); +lean_inc(x_61); +lean_dec(x_21); +x_62 = lean_ctor_get(x_22, 1); +lean_inc(x_62); +lean_dec(x_22); +x_63 = lean_ctor_get(x_20, 0); +lean_inc(x_63); +if (lean_is_exclusive(x_20)) { + lean_ctor_release(x_20, 0); + x_64 = x_20; +} else { + lean_dec_ref(x_20); + x_64 = lean_box(0); +} +lean_inc(x_4); +x_65 = l_Lean_Elab_Term_levelMVarToParam_x27(x_63, x_62, x_4, x_61); +x_66 = lean_ctor_get(x_65, 0); +lean_inc(x_66); +x_67 = lean_ctor_get(x_65, 1); +lean_inc(x_67); +lean_dec(x_65); +x_68 = lean_ctor_get(x_66, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_66, 1); +lean_inc(x_69); +lean_dec(x_66); +if (lean_is_scalar(x_64)) { + x_70 = lean_alloc_ctor(1, 1, 0); +} else { + x_70 = x_64; +} +lean_ctor_set(x_70, 0, x_68); +x_71 = lean_alloc_ctor(0, 4, 2); +lean_ctor_set(x_71, 0, x_15); +lean_ctor_set(x_71, 1, x_16); +lean_ctor_set(x_71, 2, x_17); +lean_ctor_set(x_71, 3, x_70); +lean_ctor_set_uint8(x_71, sizeof(void*)*4, x_18); +lean_ctor_set_uint8(x_71, sizeof(void*)*4 + 1, x_19); +x_72 = lean_unsigned_to_nat(1u); +x_73 = lean_nat_add(x_1, x_72); +x_74 = x_71; +x_75 = lean_array_fset(x_13, x_1, x_74); +lean_dec(x_1); +x_1 = x_73; +x_2 = x_75; +x_3 = x_69; +x_5 = x_67; +goto _start; +} +} +} +else +{ +uint8_t x_77; +lean_dec(x_20); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_4); +lean_dec(x_1); +x_77 = !lean_is_exclusive(x_21); +if (x_77 == 0) +{ +return x_21; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_78 = lean_ctor_get(x_21, 0); +x_79 = lean_ctor_get(x_21, 1); +lean_inc(x_79); +lean_inc(x_78); +lean_dec(x_21); +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* l___private_Lean_Elab_Structure_16__levelMVarToParamAux(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; +x_7 = x_3; +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Structure_16__levelMVarToParamAux___spec__1), 5, 2); +lean_closure_set(x_9, 0, x_8); +lean_closure_set(x_9, 1, x_7); +lean_inc(x_5); +x_10 = l_Array_forMAux___main___at___private_Lean_Elab_Structure_15__levelMVarToParamFVars___spec__1(x_1, x_8, x_4, x_5, x_6); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +lean_inc(x_5); +x_14 = l_Array_forMAux___main___at___private_Lean_Elab_Structure_15__levelMVarToParamFVars___spec__1(x_2, x_8, x_13, x_5, x_12); +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, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = x_9; +x_19 = lean_apply_3(x_18, x_17, x_5, x_16); +return x_19; +} +else +{ +uint8_t x_20; +lean_dec(x_9); lean_dec(x_5); -x_20 = !lean_is_exclusive(x_15); +x_20 = !lean_is_exclusive(x_14); if (x_20 == 0) { -return x_15; +return x_14; } else { lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_15, 0); -x_22 = lean_ctor_get(x_15, 1); +x_21 = lean_ctor_get(x_14, 0); +x_22 = lean_ctor_get(x_14, 1); lean_inc(x_22); lean_inc(x_21); -lean_dec(x_15); +lean_dec(x_14); x_23 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_23, 0, x_21); lean_ctor_set(x_23, 1, x_22); @@ -5405,651 +6939,299 @@ return x_23; } } } -} -} -lean_object* l___private_Lean_Elab_Structure_15__levelMVarToParamFVars(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: +else { -lean_object* x_6; lean_object* x_7; -x_6 = lean_unsigned_to_nat(0u); -x_7 = l_Array_forMAux___main___at___private_Lean_Elab_Structure_15__levelMVarToParamFVars___spec__1(x_1, x_2, x_6, x_3, x_4, x_5); -return x_7; +uint8_t x_24; +lean_dec(x_9); +lean_dec(x_5); +x_24 = !lean_is_exclusive(x_10); +if (x_24 == 0) +{ +return x_10; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_10, 0); +x_26 = lean_ctor_get(x_10, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_10); +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_Array_forMAux___main___at___private_Lean_Elab_Structure_15__levelMVarToParamFVars___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* l___private_Lean_Elab_Structure_16__levelMVarToParamAux___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_Array_forMAux___main___at___private_Lean_Elab_Structure_15__levelMVarToParamFVars___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l___private_Lean_Elab_Structure_16__levelMVarToParamAux(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_2); lean_dec(x_1); return x_7; } } -lean_object* l___private_Lean_Elab_Structure_15__levelMVarToParamFVars___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_Structure_17__levelMVarToParam(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; +x_6 = lean_unsigned_to_nat(1u); +x_7 = l___private_Lean_Elab_Structure_16__levelMVarToParamAux(x_1, x_2, x_3, x_6, x_4, x_5); +if (lean_obj_tag(x_7) == 0) +{ +uint8_t x_8; +x_8 = !lean_is_exclusive(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_ctor_get(x_7, 0); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +lean_dec(x_9); +lean_ctor_set(x_7, 0, x_10); +return x_7; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = lean_ctor_get(x_7, 0); +x_12 = lean_ctor_get(x_7, 1); +lean_inc(x_12); +lean_inc(x_11); +lean_dec(x_7); +x_13 = lean_ctor_get(x_11, 0); +lean_inc(x_13); +lean_dec(x_11); +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 +{ +uint8_t x_15; +x_15 = !lean_is_exclusive(x_7); +if (x_15 == 0) +{ +return x_7; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_7, 0); +x_17 = lean_ctor_get(x_7, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_7); +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +return x_18; +} +} +} +} +lean_object* l___private_Lean_Elab_Structure_17__levelMVarToParam___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l___private_Lean_Elab_Structure_15__levelMVarToParamFVars(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Lean_Elab_Structure_17__levelMVarToParam(x_1, x_2, x_3, x_4, x_5); lean_dec(x_2); lean_dec(x_1); return x_6; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Structure_16__levelMVarToParamAux___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* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_18__collectUniversesFromFields___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) { _start: { -lean_object* x_7; uint8_t x_8; -x_7 = lean_array_get_size(x_3); -x_8 = lean_nat_dec_lt(x_2, x_7); -lean_dec(x_7); -if (x_8 == 0) +lean_object* x_9; uint8_t x_10; +x_9 = lean_array_get_size(x_4); +x_10 = lean_nat_dec_lt(x_5, x_9); +lean_dec(x_9); +if (x_10 == 0) { -lean_object* x_9; lean_object* x_10; lean_object* x_11; +lean_object* x_11; +lean_dec(x_7); lean_dec(x_5); lean_dec(x_2); -x_9 = x_3; -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_9); -lean_ctor_set(x_10, 1, x_4); x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_10); -lean_ctor_set(x_11, 1, x_6); +lean_ctor_set(x_11, 0, x_6); +lean_ctor_set(x_11, 1, x_8); return x_11; } else { -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; -x_12 = lean_array_fget(x_3, x_2); -x_13 = lean_unsigned_to_nat(0u); -x_14 = lean_array_fset(x_3, x_2, x_13); -x_15 = x_12; -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); -lean_inc(x_17); -x_18 = lean_ctor_get(x_15, 2); -lean_inc(x_18); -x_19 = lean_ctor_get_uint8(x_15, sizeof(void*)*4); -x_20 = lean_ctor_get_uint8(x_15, sizeof(void*)*4 + 1); -x_21 = lean_ctor_get(x_15, 3); -lean_inc(x_21); -lean_inc(x_5); -lean_inc(x_18); -x_22 = l___private_Lean_Elab_Structure_14__levelMVarToParamFVar(x_1, x_18, x_4, x_5, x_6); -if (lean_obj_tag(x_22) == 0) -{ -lean_object* x_23; -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -if (lean_obj_tag(x_21) == 0) -{ -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_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -x_24 = lean_ctor_get(x_22, 1); -lean_inc(x_24); -lean_dec(x_22); -x_25 = lean_ctor_get(x_23, 1); -lean_inc(x_25); -lean_dec(x_23); -x_26 = lean_unsigned_to_nat(1u); -x_27 = lean_nat_add(x_2, x_26); -x_28 = x_15; -x_29 = lean_array_fset(x_14, x_2, x_28); -lean_dec(x_2); -x_2 = x_27; -x_3 = x_29; -x_4 = x_25; -x_6 = x_24; -goto _start; -} -else -{ -uint8_t x_31; -x_31 = !lean_is_exclusive(x_15); -if (x_31 == 0) -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; -x_32 = lean_ctor_get(x_15, 3); -lean_dec(x_32); -x_33 = lean_ctor_get(x_15, 2); -lean_dec(x_33); -x_34 = lean_ctor_get(x_15, 1); -lean_dec(x_34); -x_35 = lean_ctor_get(x_15, 0); -lean_dec(x_35); -x_36 = lean_ctor_get(x_22, 1); -lean_inc(x_36); -lean_dec(x_22); -x_37 = lean_ctor_get(x_23, 1); -lean_inc(x_37); -lean_dec(x_23); -x_38 = !lean_is_exclusive(x_21); -if (x_38 == 0) -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_39 = lean_ctor_get(x_21, 0); -lean_inc(x_5); -x_40 = l_Lean_Elab_Term_levelMVarToParam_x27(x_39, x_37, x_5, x_36); -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_43 = lean_ctor_get(x_41, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_41, 1); -lean_inc(x_44); -lean_dec(x_41); -lean_ctor_set(x_21, 0, x_43); -x_45 = lean_unsigned_to_nat(1u); -x_46 = lean_nat_add(x_2, x_45); -x_47 = x_15; -x_48 = lean_array_fset(x_14, x_2, x_47); -lean_dec(x_2); -x_2 = x_46; -x_3 = x_48; -x_4 = x_44; -x_6 = x_42; -goto _start; -} -else -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_50 = lean_ctor_get(x_21, 0); -lean_inc(x_50); -lean_dec(x_21); -lean_inc(x_5); -x_51 = l_Lean_Elab_Term_levelMVarToParam_x27(x_50, x_37, x_5, x_36); -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -x_53 = lean_ctor_get(x_51, 1); -lean_inc(x_53); -lean_dec(x_51); -x_54 = lean_ctor_get(x_52, 0); -lean_inc(x_54); -x_55 = lean_ctor_get(x_52, 1); -lean_inc(x_55); -lean_dec(x_52); -x_56 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_56, 0, x_54); -lean_ctor_set(x_15, 3, x_56); -x_57 = lean_unsigned_to_nat(1u); -x_58 = lean_nat_add(x_2, x_57); -x_59 = x_15; -x_60 = lean_array_fset(x_14, x_2, x_59); -lean_dec(x_2); -x_2 = x_58; -x_3 = x_60; -x_4 = x_55; -x_6 = x_53; -goto _start; -} -} -else -{ -lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; -lean_dec(x_15); -x_62 = lean_ctor_get(x_22, 1); -lean_inc(x_62); -lean_dec(x_22); -x_63 = lean_ctor_get(x_23, 1); -lean_inc(x_63); -lean_dec(x_23); -x_64 = lean_ctor_get(x_21, 0); -lean_inc(x_64); -if (lean_is_exclusive(x_21)) { - lean_ctor_release(x_21, 0); - x_65 = x_21; -} else { - lean_dec_ref(x_21); - x_65 = lean_box(0); -} -lean_inc(x_5); -x_66 = l_Lean_Elab_Term_levelMVarToParam_x27(x_64, x_63, x_5, x_62); -x_67 = lean_ctor_get(x_66, 0); -lean_inc(x_67); -x_68 = lean_ctor_get(x_66, 1); -lean_inc(x_68); -lean_dec(x_66); -x_69 = lean_ctor_get(x_67, 0); -lean_inc(x_69); -x_70 = lean_ctor_get(x_67, 1); -lean_inc(x_70); -lean_dec(x_67); -if (lean_is_scalar(x_65)) { - x_71 = lean_alloc_ctor(1, 1, 0); -} else { - x_71 = x_65; -} -lean_ctor_set(x_71, 0, x_69); -x_72 = lean_alloc_ctor(0, 4, 2); -lean_ctor_set(x_72, 0, x_16); -lean_ctor_set(x_72, 1, x_17); -lean_ctor_set(x_72, 2, x_18); -lean_ctor_set(x_72, 3, x_71); -lean_ctor_set_uint8(x_72, sizeof(void*)*4, x_19); -lean_ctor_set_uint8(x_72, sizeof(void*)*4 + 1, x_20); -x_73 = lean_unsigned_to_nat(1u); -x_74 = lean_nat_add(x_2, x_73); -x_75 = x_72; -x_76 = lean_array_fset(x_14, x_2, x_75); -lean_dec(x_2); -x_2 = x_74; -x_3 = x_76; -x_4 = x_70; -x_6 = x_68; -goto _start; -} -} -} -else -{ -uint8_t x_78; -lean_dec(x_21); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_12 = lean_array_fget(x_4, x_5); +x_13 = lean_unsigned_to_nat(1u); +x_14 = lean_nat_add(x_5, x_13); lean_dec(x_5); -lean_dec(x_2); -x_78 = !lean_is_exclusive(x_22); -if (x_78 == 0) -{ -return x_22; -} -else -{ -lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_79 = lean_ctor_get(x_22, 0); -x_80 = lean_ctor_get(x_22, 1); -lean_inc(x_80); -lean_inc(x_79); -lean_dec(x_22); -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; -} -} -} -} -} -lean_object* l___private_Lean_Elab_Structure_16__levelMVarToParamAux(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; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_8 = x_4; -x_9 = lean_unsigned_to_nat(0u); -lean_inc(x_1); -x_10 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Structure_16__levelMVarToParamAux___spec__1___boxed), 6, 3); -lean_closure_set(x_10, 0, x_1); -lean_closure_set(x_10, 1, x_9); -lean_closure_set(x_10, 2, x_8); -lean_inc(x_6); -x_11 = l_Array_forMAux___main___at___private_Lean_Elab_Structure_15__levelMVarToParamFVars___spec__1(x_1, x_2, x_9, x_5, x_6, x_7); -if (lean_obj_tag(x_11) == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_11, 1); -lean_inc(x_13); -lean_dec(x_11); -x_14 = lean_ctor_get(x_12, 1); -lean_inc(x_14); +x_15 = lean_ctor_get(x_12, 2); +lean_inc(x_15); lean_dec(x_12); -lean_inc(x_6); -x_15 = l_Array_forMAux___main___at___private_Lean_Elab_Structure_15__levelMVarToParamFVars___spec__1(x_1, x_3, x_9, x_14, x_6, x_13); -lean_dec(x_1); -if (lean_obj_tag(x_15) == 0) +lean_inc(x_7); +x_16 = l_Lean_Elab_Term_inferType(x_15, x_7, x_8); +if (lean_obj_tag(x_16) == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); -lean_dec(x_15); x_18 = lean_ctor_get(x_16, 1); lean_inc(x_18); lean_dec(x_16); -x_19 = x_10; -x_20 = lean_apply_3(x_19, x_18, x_6, x_17); -return x_20; -} -else +lean_inc(x_7); +x_19 = l_Lean_Elab_Term_getLevel(x_17, x_7, x_18); +if (lean_obj_tag(x_19) == 0) { -uint8_t x_21; -lean_dec(x_10); -lean_dec(x_6); -x_21 = !lean_is_exclusive(x_15); -if (x_21 == 0) -{ -return x_15; -} -else -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_15, 0); -x_23 = lean_ctor_get(x_15, 1); -lean_inc(x_23); -lean_inc(x_22); -lean_dec(x_15); -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -return x_24; -} -} -} -else -{ -uint8_t x_25; -lean_dec(x_10); -lean_dec(x_6); -lean_dec(x_1); -x_25 = !lean_is_exclusive(x_11); -if (x_25 == 0) -{ -return x_11; -} -else -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_11, 0); -x_27 = lean_ctor_get(x_11, 1); -lean_inc(x_27); -lean_inc(x_26); -lean_dec(x_11); -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; -} -} -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Structure_16__levelMVarToParamAux___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_Array_umapMAux___main___at___private_Lean_Elab_Structure_16__levelMVarToParamAux___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_1); -return x_7; -} -} -lean_object* l___private_Lean_Elab_Structure_16__levelMVarToParamAux___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_Elab_Structure_16__levelMVarToParamAux(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_3); -lean_dec(x_2); -return x_8; -} -} -lean_object* l___private_Lean_Elab_Structure_17__levelMVarToParam(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; -x_7 = lean_unsigned_to_nat(1u); -x_8 = l___private_Lean_Elab_Structure_16__levelMVarToParamAux(x_1, x_2, x_3, x_4, x_7, x_5, x_6); -if (lean_obj_tag(x_8) == 0) -{ -uint8_t x_9; -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); -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -lean_dec(x_10); -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); -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 -{ -uint8_t x_16; -x_16 = !lean_is_exclusive(x_8); -if (x_16 == 0) -{ -return x_8; -} -else -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_8, 0); -x_18 = lean_ctor_get(x_8, 1); -lean_inc(x_18); -lean_inc(x_17); -lean_dec(x_8); -x_19 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_19, 0, x_17); -lean_ctor_set(x_19, 1, x_18); -return x_19; -} -} -} -} -lean_object* l___private_Lean_Elab_Structure_17__levelMVarToParam___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___private_Lean_Elab_Structure_17__levelMVarToParam(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_3); -lean_dec(x_2); -return x_7; -} -} -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_18__collectUniversesFromFields___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: -{ -lean_object* x_10; uint8_t x_11; -x_10 = lean_array_get_size(x_5); -x_11 = lean_nat_dec_lt(x_6, x_10); -lean_dec(x_10); -if (x_11 == 0) -{ -lean_object* x_12; -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_3); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_7); -lean_ctor_set(x_12, 1, x_9); -return x_12; -} -else -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_13 = lean_array_fget(x_5, x_6); -x_14 = lean_unsigned_to_nat(1u); -x_15 = lean_nat_add(x_6, x_14); -lean_dec(x_6); -x_16 = lean_ctor_get(x_13, 2); -lean_inc(x_16); -lean_dec(x_13); -lean_inc(x_8); -x_17 = l_Lean_Elab_Term_inferType(x_1, x_16, x_8, x_9); -if (lean_obj_tag(x_17) == 0) -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); -x_19 = lean_ctor_get(x_17, 1); -lean_inc(x_19); -lean_dec(x_17); -lean_inc(x_8); -x_20 = l_Lean_Elab_Term_getLevel(x_1, x_18, x_8, x_19); -if (lean_obj_tag(x_20) == 0) -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_21 = lean_ctor_get(x_20, 0); +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); lean_inc(x_21); -x_22 = lean_ctor_get(x_20, 1); -lean_inc(x_22); -lean_dec(x_20); -lean_inc(x_8); -x_23 = l_Lean_Elab_Term_instantiateLevelMVars(x_1, x_21, x_8, x_22); -x_24 = lean_ctor_get(x_23, 0); +lean_dec(x_19); +lean_inc(x_7); +x_22 = l_Lean_Elab_Term_instantiateLevelMVars(x_20, x_7, x_21); +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 = lean_ctor_get(x_23, 1); -lean_inc(x_25); -lean_dec(x_23); -lean_inc(x_3); -x_26 = l_Lean_Elab_Command_accLevelAtCtor___main(x_24, x_2, x_3, x_7); -if (lean_obj_tag(x_26) == 0) +lean_dec(x_22); +lean_inc(x_2); +x_25 = l_Lean_Elab_Command_accLevelAtCtor___main(x_23, x_1, x_2, x_6); +if (lean_obj_tag(x_25) == 0) { -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; -lean_dec(x_15); -lean_dec(x_3); -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -lean_dec(x_26); -x_28 = lean_alloc_ctor(2, 1, 0); +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; +lean_dec(x_14); +lean_dec(x_2); +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +lean_dec(x_25); +x_27 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_27, 0, x_26); +x_28 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_28, 0, x_27); -x_29 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_29, 0, x_28); -x_30 = l_Lean_Elab_Term_throwError___rarg(x_1, x_29, x_8, x_25); -x_31 = !lean_is_exclusive(x_30); -if (x_31 == 0) +x_29 = l_Lean_Elab_Term_throwError___rarg(x_28, x_7, x_24); +x_30 = !lean_is_exclusive(x_29); +if (x_30 == 0) { -return x_30; +return x_29; } else { -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_30, 0); -x_33 = lean_ctor_get(x_30, 1); -lean_inc(x_33); +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_29, 0); +x_32 = lean_ctor_get(x_29, 1); lean_inc(x_32); -lean_dec(x_30); -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_inc(x_31); +lean_dec(x_29); +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 { -lean_object* x_35; -x_35 = lean_ctor_get(x_26, 0); -lean_inc(x_35); -lean_dec(x_26); -x_6 = x_15; -x_7 = x_35; -x_9 = x_25; +lean_object* x_34; +x_34 = lean_ctor_get(x_25, 0); +lean_inc(x_34); +lean_dec(x_25); +x_5 = x_14; +x_6 = x_34; +x_8 = x_24; goto _start; } } else { -uint8_t x_37; -lean_dec(x_15); -lean_dec(x_8); +uint8_t x_36; +lean_dec(x_14); lean_dec(x_7); -lean_dec(x_3); -x_37 = !lean_is_exclusive(x_20); -if (x_37 == 0) +lean_dec(x_6); +lean_dec(x_2); +x_36 = !lean_is_exclusive(x_19); +if (x_36 == 0) { -return x_20; +return x_19; } else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_20, 0); -x_39 = lean_ctor_get(x_20, 1); -lean_inc(x_39); +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_19, 0); +x_38 = lean_ctor_get(x_19, 1); lean_inc(x_38); -lean_dec(x_20); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -return x_40; +lean_inc(x_37); +lean_dec(x_19); +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_37); +lean_ctor_set(x_39, 1, x_38); +return x_39; } } } else { -uint8_t x_41; -lean_dec(x_15); -lean_dec(x_8); +uint8_t x_40; +lean_dec(x_14); lean_dec(x_7); -lean_dec(x_3); -x_41 = !lean_is_exclusive(x_17); -if (x_41 == 0) +lean_dec(x_6); +lean_dec(x_2); +x_40 = !lean_is_exclusive(x_16); +if (x_40 == 0) { -return x_17; +return x_16; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_17, 0); -x_43 = lean_ctor_get(x_17, 1); -lean_inc(x_43); +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_16, 0); +x_42 = lean_ctor_get(x_16, 1); lean_inc(x_42); -lean_dec(x_17); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -return x_44; +lean_inc(x_41); +lean_dec(x_16); +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; } } } } } -lean_object* l___private_Lean_Elab_Structure_18__collectUniversesFromFields(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* l___private_Lean_Elab_Structure_18__collectUniversesFromFields(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_7 = lean_unsigned_to_nat(0u); -x_8 = l_Array_empty___closed__1; -x_9 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_18__collectUniversesFromFields___spec__1(x_1, x_2, x_3, x_4, x_4, x_7, x_8, x_5, x_6); +lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Array_empty___closed__1; +x_8 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_18__collectUniversesFromFields___spec__1(x_1, x_2, x_3, x_3, x_6, x_7, x_4, x_5); +return x_8; +} +} +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_18__collectUniversesFromFields___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) { +_start: +{ +lean_object* x_9; +x_9 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_18__collectUniversesFromFields___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); return x_9; } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_18__collectUniversesFromFields___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* l___private_Lean_Elab_Structure_18__collectUniversesFromFields___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_10; -x_10 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_18__collectUniversesFromFields___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); +lean_object* x_6; +x_6 = l___private_Lean_Elab_Structure_18__collectUniversesFromFields(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_3); lean_dec(x_1); -return x_10; -} -} -lean_object* l___private_Lean_Elab_Structure_18__collectUniversesFromFields___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___private_Lean_Elab_Structure_18__collectUniversesFromFields(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -return x_7; +return x_6; } } lean_object* _init_l___private_Lean_Elab_Structure_19__updateResultingUniverse___closed__1() { @@ -6080,181 +7262,245 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Structure_19__updateResultingUniverse(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_Structure_19__updateResultingUniverse(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_6; -lean_inc(x_4); +lean_object* x_5; lean_inc(x_3); -x_6 = l___private_Lean_Elab_Structure_11__getResultUniverse(x_1, x_3, x_4, x_5); -if (lean_obj_tag(x_6) == 0) +lean_inc(x_2); +x_5 = l___private_Lean_Elab_Structure_11__getResultUniverse(x_2, x_3, x_4); +if (lean_obj_tag(x_5) == 0) { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_7 = lean_ctor_get(x_6, 0); +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); lean_inc(x_7); -x_8 = lean_ctor_get(x_6, 1); -lean_inc(x_8); +lean_dec(x_5); +x_8 = lean_unsigned_to_nat(0u); +x_9 = l_Lean_Level_getOffsetAux___main(x_6, x_8); +x_10 = l_Lean_Level_getLevelOffset___main(x_6); lean_dec(x_6); -x_9 = lean_unsigned_to_nat(0u); -x_10 = l_Lean_Level_getOffsetAux___main(x_7, x_9); -x_11 = l_Lean_Level_getLevelOffset___main(x_7); -lean_dec(x_7); -if (lean_obj_tag(x_11) == 5) +if (lean_obj_tag(x_10) == 5) { -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -lean_inc(x_4); -x_13 = l___private_Lean_Elab_Structure_18__collectUniversesFromFields(x_1, x_11, x_10, x_2, x_4, x_8); +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +lean_inc(x_3); +x_12 = l___private_Lean_Elab_Structure_18__collectUniversesFromFields(x_10, x_9, x_1, x_3, x_7); +lean_dec(x_10); +if (lean_obj_tag(x_12) == 0) +{ +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_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = l_Array_toList___rarg(x_13); +lean_dec(x_13); +x_16 = l_Lean_Level_mkNaryMax___main(x_15); +x_17 = l_Lean_Elab_Term_assignLevelMVar(x_11, x_16, x_3, x_14); +x_18 = lean_ctor_get(x_17, 1); +lean_inc(x_18); +lean_dec(x_17); +x_19 = l_Lean_Elab_Term_instantiateMVars(x_2, x_3, x_18); +return x_19; +} +else +{ +uint8_t x_20; lean_dec(x_11); +lean_dec(x_3); +lean_dec(x_2); +x_20 = !lean_is_exclusive(x_12); +if (x_20 == 0) +{ +return x_12; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_12, 0); +x_22 = lean_ctor_get(x_12, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_12); +x_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +return x_23; +} +} +} +else +{ +lean_object* x_24; lean_object* x_25; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_2); +x_24 = l___private_Lean_Elab_Structure_19__updateResultingUniverse___closed__3; +x_25 = l_Lean_Elab_Term_throwError___rarg(x_24, x_3, x_7); +return x_25; +} +} +else +{ +uint8_t x_26; +lean_dec(x_3); +lean_dec(x_2); +x_26 = !lean_is_exclusive(x_5); +if (x_26 == 0) +{ +return x_5; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_5, 0); +x_28 = lean_ctor_get(x_5, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_5); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +return x_29; +} +} +} +} +lean_object* l___private_Lean_Elab_Structure_19__updateResultingUniverse___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l___private_Lean_Elab_Structure_19__updateResultingUniverse(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} +lean_object* l___private_Lean_Elab_Structure_20__collectLevelParamsInFVar(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +lean_inc(x_3); +x_5 = l_Lean_Elab_Term_inferType(x_2, x_3, x_4); +if (lean_obj_tag(x_5) == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); +lean_dec(x_5); +x_8 = l_Lean_Elab_Term_instantiateMVars(x_6, x_3, x_7); +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); +x_11 = l_Lean_CollectLevelParams_main___main(x_10, x_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); +x_14 = l_Lean_CollectLevelParams_main___main(x_12, x_1); +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 +{ +uint8_t x_16; +lean_dec(x_3); +lean_dec(x_1); +x_16 = !lean_is_exclusive(x_5); +if (x_16 == 0) +{ +return x_5; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_5, 0); +x_18 = lean_ctor_get(x_5, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_5); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +return x_19; +} +} +} +} +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_21__collectLevelParamsInFVars___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; uint8_t x_8; +x_7 = lean_array_get_size(x_2); +x_8 = lean_nat_dec_lt(x_3, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +lean_object* x_9; +lean_dec(x_5); +lean_dec(x_3); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_4); +lean_ctor_set(x_9, 1, x_6); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_10 = lean_array_fget(x_2, x_3); +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_add(x_3, x_11); +lean_dec(x_3); +lean_inc(x_5); +x_13 = l___private_Lean_Elab_Structure_20__collectLevelParamsInFVar(x_4, x_10, x_5, x_6); if (lean_obj_tag(x_13) == 0) { -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_14; lean_object* x_15; x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); x_15 = lean_ctor_get(x_13, 1); lean_inc(x_15); lean_dec(x_13); -x_16 = l_Array_toList___rarg(x_14); -lean_dec(x_14); -x_17 = l_Lean_Level_mkNaryMax___main(x_16); -x_18 = l_Lean_Elab_Term_assignLevelMVar(x_12, x_17, x_4, x_15); -x_19 = lean_ctor_get(x_18, 1); -lean_inc(x_19); -lean_dec(x_18); -x_20 = l_Lean_Elab_Term_instantiateMVars(x_1, x_3, x_4, x_19); -return x_20; +x_3 = x_12; +x_4 = x_14; +x_6 = x_15; +goto _start; } else { -uint8_t x_21; +uint8_t x_17; lean_dec(x_12); -lean_dec(x_4); -lean_dec(x_3); -x_21 = !lean_is_exclusive(x_13); -if (x_21 == 0) +lean_dec(x_5); +x_17 = !lean_is_exclusive(x_13); +if (x_17 == 0) { return x_13; } else { -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_13, 0); -x_23 = lean_ctor_get(x_13, 1); -lean_inc(x_23); -lean_inc(x_22); -lean_dec(x_13); -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -return x_24; -} -} -} -else -{ -lean_object* x_25; lean_object* x_26; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_3); -x_25 = l___private_Lean_Elab_Structure_19__updateResultingUniverse___closed__3; -x_26 = l_Lean_Elab_Term_throwError___rarg(x_1, x_25, x_4, x_8); -return x_26; -} -} -else -{ -uint8_t x_27; -lean_dec(x_4); -lean_dec(x_3); -x_27 = !lean_is_exclusive(x_6); -if (x_27 == 0) -{ -return x_6; -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_6, 0); -x_29 = lean_ctor_get(x_6, 1); -lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_6); -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___private_Lean_Elab_Structure_19__updateResultingUniverse___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l___private_Lean_Elab_Structure_19__updateResultingUniverse(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_2); -lean_dec(x_1); -return x_6; -} -} -lean_object* l___private_Lean_Elab_Structure_20__collectLevelParamsInFVar(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -lean_inc(x_4); -x_6 = l_Lean_Elab_Term_inferType(x_1, x_3, x_4, x_5); -if (lean_obj_tag(x_6) == 0) -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; -x_7 = lean_ctor_get(x_6, 0); -lean_inc(x_7); -x_8 = lean_ctor_get(x_6, 1); -lean_inc(x_8); -lean_dec(x_6); -x_9 = l_Lean_Elab_Term_instantiateMVars(x_1, x_7, x_4, x_8); -x_10 = !lean_is_exclusive(x_9); -if (x_10 == 0) -{ -lean_object* x_11; lean_object* x_12; -x_11 = lean_ctor_get(x_9, 0); -x_12 = l_Lean_CollectLevelParams_main___main(x_11, x_2); -lean_ctor_set(x_9, 0, x_12); -return x_9; -} -else -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_13 = lean_ctor_get(x_9, 0); -x_14 = lean_ctor_get(x_9, 1); -lean_inc(x_14); -lean_inc(x_13); -lean_dec(x_9); -x_15 = l_Lean_CollectLevelParams_main___main(x_13, x_2); -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 -{ -uint8_t x_17; -lean_dec(x_4); -lean_dec(x_2); -x_17 = !lean_is_exclusive(x_6); -if (x_17 == 0) -{ -return x_6; -} -else -{ lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_18 = lean_ctor_get(x_6, 0); -x_19 = lean_ctor_get(x_6, 1); +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_6); +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); @@ -6263,41 +7509,64 @@ return x_20; } } } -lean_object* l___private_Lean_Elab_Structure_20__collectLevelParamsInFVar___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +} +lean_object* l___private_Lean_Elab_Structure_21__collectLevelParamsInFVars(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_6; -x_6 = l___private_Lean_Elab_Structure_20__collectLevelParamsInFVar(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_1); +lean_object* x_5; lean_object* x_6; +x_5 = lean_unsigned_to_nat(0u); +x_6 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_21__collectLevelParamsInFVars___spec__1(x_1, x_1, x_5, x_2, x_3, x_4); return x_6; } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_21__collectLevelParamsInFVars___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* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_21__collectLevelParamsInFVars___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_8; uint8_t x_9; -x_8 = lean_array_get_size(x_3); -x_9 = lean_nat_dec_lt(x_4, x_8); -lean_dec(x_8); -if (x_9 == 0) +lean_object* x_7; +x_7 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_21__collectLevelParamsInFVars___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_2); +lean_dec(x_1); +return x_7; +} +} +lean_object* l___private_Lean_Elab_Structure_21__collectLevelParamsInFVars___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: { -lean_object* x_10; -lean_dec(x_6); -lean_dec(x_4); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_5); -lean_ctor_set(x_10, 1, x_7); -return x_10; +lean_object* x_5; +x_5 = l___private_Lean_Elab_Structure_21__collectLevelParamsInFVars(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_22__collectLevelParamsInStructure___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; uint8_t x_8; +x_7 = lean_array_get_size(x_2); +x_8 = lean_nat_dec_lt(x_3, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +lean_object* x_9; +lean_dec(x_5); +lean_dec(x_3); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_4); +lean_ctor_set(x_9, 1, x_6); +return x_9; } else { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_11 = lean_array_fget(x_3, x_4); -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_add(x_4, x_12); -lean_dec(x_4); -lean_inc(x_6); -x_14 = l___private_Lean_Elab_Structure_20__collectLevelParamsInFVar(x_1, x_5, x_11, x_6, x_7); +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_10 = lean_array_fget(x_2, x_3); +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_add(x_3, x_11); +lean_dec(x_3); +x_13 = lean_ctor_get(x_10, 2); +lean_inc(x_13); +lean_dec(x_10); +lean_inc(x_5); +x_14 = l___private_Lean_Elab_Structure_20__collectLevelParamsInFVar(x_4, x_13, x_5, x_6); if (lean_obj_tag(x_14) == 0) { lean_object* x_15; lean_object* x_16; @@ -6306,16 +7575,16 @@ lean_inc(x_15); x_16 = lean_ctor_get(x_14, 1); lean_inc(x_16); lean_dec(x_14); -x_4 = x_13; -x_5 = x_15; -x_7 = x_16; +x_3 = x_12; +x_4 = x_15; +x_6 = x_16; goto _start; } else { uint8_t x_18; -lean_dec(x_13); -lean_dec(x_6); +lean_dec(x_12); +lean_dec(x_5); x_18 = !lean_is_exclusive(x_14); if (x_18 == 0) { @@ -6338,258 +7607,157 @@ return x_21; } } } -lean_object* l___private_Lean_Elab_Structure_21__collectLevelParamsInFVars(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_Structure_22__collectLevelParamsInStructure(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_6; lean_object* x_7; +lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = lean_unsigned_to_nat(0u); -x_7 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_21__collectLevelParamsInFVars___spec__1(x_1, x_2, x_2, x_6, x_3, x_4, x_5); -return x_7; -} -} -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_21__collectLevelParamsInFVars___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: +x_7 = l_Lean_Meta_DepElim_getUnusedLevelParam___closed__1; +lean_inc(x_4); +x_8 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_21__collectLevelParamsInFVars___spec__1(x_1, x_1, x_6, x_7, x_4, x_5); +if (lean_obj_tag(x_8) == 0) { -lean_object* x_8; -x_8 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_21__collectLevelParamsInFVars___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_8; -} -} -lean_object* l___private_Lean_Elab_Structure_21__collectLevelParamsInFVars___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l___private_Lean_Elab_Structure_21__collectLevelParamsInFVars(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_2); -lean_dec(x_1); -return x_6; -} -} -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_22__collectLevelParamsInStructure___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) { -_start: -{ -lean_object* x_8; uint8_t x_9; -x_8 = lean_array_get_size(x_3); -x_9 = lean_nat_dec_lt(x_4, x_8); +lean_object* x_9; lean_object* x_10; lean_object* x_11; +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); -if (x_9 == 0) +lean_inc(x_4); +x_11 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_21__collectLevelParamsInFVars___spec__1(x_2, x_2, x_6, x_9, x_4, x_10); +if (lean_obj_tag(x_11) == 0) { -lean_object* x_10; -lean_dec(x_6); -lean_dec(x_4); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_5); -lean_ctor_set(x_10, 1, x_7); -return x_10; -} -else -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_11 = lean_array_fget(x_3, x_4); -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_add(x_4, x_12); -lean_dec(x_4); -x_14 = lean_ctor_get(x_11, 2); -lean_inc(x_14); +lean_object* x_12; lean_object* x_13; lean_object* x_14; +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); -lean_inc(x_6); -x_15 = l___private_Lean_Elab_Structure_20__collectLevelParamsInFVar(x_1, x_5, x_14, x_6, x_7); -if (lean_obj_tag(x_15) == 0) +x_14 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_22__collectLevelParamsInStructure___spec__1(x_3, x_3, x_6, x_12, x_4, x_13); +if (lean_obj_tag(x_14) == 0) +{ +uint8_t x_15; +x_15 = !lean_is_exclusive(x_14); +if (x_15 == 0) { lean_object* x_16; lean_object* x_17; -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); +x_16 = lean_ctor_get(x_14, 0); +x_17 = lean_ctor_get(x_16, 2); lean_inc(x_17); -lean_dec(x_15); -x_4 = x_13; -x_5 = x_16; -x_7 = x_17; -goto _start; +lean_dec(x_16); +lean_ctor_set(x_14, 0, x_17); +return x_14; } else { -uint8_t x_19; -lean_dec(x_13); -lean_dec(x_6); -x_19 = !lean_is_exclusive(x_15); -if (x_19 == 0) -{ -return x_15; -} -else -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_15, 0); -x_21 = lean_ctor_get(x_15, 1); -lean_inc(x_21); -lean_inc(x_20); -lean_dec(x_15); -x_22 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_22, 0, x_20); -lean_ctor_set(x_22, 1, x_21); -return x_22; -} -} -} -} -} -lean_object* l___private_Lean_Elab_Structure_22__collectLevelParamsInStructure(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_unsigned_to_nat(0u); -x_8 = l_Lean_Meta_DepElim_getUnusedLevelParam___closed__1; -lean_inc(x_5); -x_9 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_21__collectLevelParamsInFVars___spec__1(x_1, x_2, x_2, x_7, x_8, x_5, x_6); -if (lean_obj_tag(x_9) == 0) -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_9, 1); -lean_inc(x_11); -lean_dec(x_9); -lean_inc(x_5); -x_12 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_21__collectLevelParamsInFVars___spec__1(x_1, x_3, x_3, x_7, x_10, x_5, x_11); -if (lean_obj_tag(x_12) == 0) -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); -lean_inc(x_14); -lean_dec(x_12); -x_15 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_22__collectLevelParamsInStructure___spec__1(x_1, x_4, x_4, x_7, x_13, x_5, x_14); -if (lean_obj_tag(x_15) == 0) -{ -uint8_t x_16; -x_16 = !lean_is_exclusive(x_15); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_15, 0); -x_18 = lean_ctor_get(x_17, 2); -lean_inc(x_18); -lean_dec(x_17); -lean_ctor_set(x_15, 0, x_18); -return x_15; -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_15, 0); -x_20 = lean_ctor_get(x_15, 1); -lean_inc(x_20); +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_14, 0); +x_19 = lean_ctor_get(x_14, 1); lean_inc(x_19); -lean_dec(x_15); -x_21 = lean_ctor_get(x_19, 2); -lean_inc(x_21); -lean_dec(x_19); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_20); -return x_22; +lean_inc(x_18); +lean_dec(x_14); +x_20 = lean_ctor_get(x_18, 2); +lean_inc(x_20); +lean_dec(x_18); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_19); +return x_21; } } else { -uint8_t x_23; -x_23 = !lean_is_exclusive(x_15); -if (x_23 == 0) +uint8_t x_22; +x_22 = !lean_is_exclusive(x_14); +if (x_22 == 0) { -return x_15; +return x_14; } else { -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_15, 0); -x_25 = lean_ctor_get(x_15, 1); -lean_inc(x_25); +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_14, 0); +x_24 = lean_ctor_get(x_14, 1); lean_inc(x_24); -lean_dec(x_15); -x_26 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_26, 0, x_24); -lean_ctor_set(x_26, 1, x_25); -return x_26; +lean_inc(x_23); +lean_dec(x_14); +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +return x_25; } } } else { -uint8_t x_27; -lean_dec(x_5); -x_27 = !lean_is_exclusive(x_12); -if (x_27 == 0) +uint8_t x_26; +lean_dec(x_4); +x_26 = !lean_is_exclusive(x_11); +if (x_26 == 0) { -return x_12; +return x_11; } else { -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_12, 0); -x_29 = lean_ctor_get(x_12, 1); -lean_inc(x_29); +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); lean_inc(x_28); -lean_dec(x_12); -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_inc(x_27); +lean_dec(x_11); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +return x_29; } } } else { -uint8_t x_31; -lean_dec(x_5); -x_31 = !lean_is_exclusive(x_9); -if (x_31 == 0) +uint8_t x_30; +lean_dec(x_4); +x_30 = !lean_is_exclusive(x_8); +if (x_30 == 0) { -return x_9; -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_9, 0); -x_33 = lean_ctor_get(x_9, 1); -lean_inc(x_33); -lean_inc(x_32); -lean_dec(x_9); -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_Array_iterateMAux___main___at___private_Lean_Elab_Structure_22__collectLevelParamsInStructure___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; -x_8 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_22__collectLevelParamsInStructure___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); return x_8; } +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_8, 0); +x_32 = lean_ctor_get(x_8, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_8); +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___private_Lean_Elab_Structure_22__collectLevelParamsInStructure___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* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_22__collectLevelParamsInStructure___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___private_Lean_Elab_Structure_22__collectLevelParamsInStructure(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_4); -lean_dec(x_3); +x_7 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_22__collectLevelParamsInStructure___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_2); lean_dec(x_1); return x_7; } } +lean_object* l___private_Lean_Elab_Structure_22__collectLevelParamsInStructure___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l___private_Lean_Elab_Structure_22__collectLevelParamsInStructure(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_6; +} +} lean_object* l___private_Lean_Elab_Structure_23__addCtorFields___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { @@ -6718,7 +7886,7 @@ lean_dec(x_1); return x_6; } } -lean_object* l___private_Lean_Elab_Structure_23__addCtorFields___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_Structure_23__addCtorFields(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; @@ -6726,211 +7894,380 @@ x_6 = l___private_Lean_Elab_Structure_23__addCtorFields___main(x_1, x_2, x_3, x_ return x_6; } } -lean_object* l___private_Lean_Elab_Structure_23__addCtorFields(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_23__addCtorFields___rarg___boxed), 5, 0); -return x_2; -} -} -lean_object* l___private_Lean_Elab_Structure_23__addCtorFields___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_Structure_23__addCtorFields___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l___private_Lean_Elab_Structure_23__addCtorFields___rarg(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Lean_Elab_Structure_23__addCtorFields(x_1, x_2, x_3, x_4, x_5); lean_dec(x_1); return x_6; } } -lean_object* l___private_Lean_Elab_Structure_23__addCtorFields___boxed(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l___private_Lean_Elab_Structure_23__addCtorFields(x_1); -lean_dec(x_1); -return x_2; -} -} lean_object* l___private_Lean_Elab_Structure_24__mkCtor(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; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_7 = lean_ctor_get(x_1, 4); +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; uint8_t x_14; +x_7 = lean_ctor_get(x_1, 0); lean_inc(x_7); -x_8 = l_List_map___main___at_Lean_Meta_addGlobalInstance___spec__1(x_2); -x_9 = l_Lean_mkConst(x_7, x_8); -x_10 = lean_unsigned_to_nat(0u); -x_11 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_3, x_3, x_10, x_9); -x_12 = lean_ctor_get(x_1, 0); -lean_inc(x_12); +x_8 = lean_ctor_get(x_1, 4); +lean_inc(x_8); +x_9 = l_List_map___main___at_Lean_Meta_addGlobalInstance___spec__1(x_2); +x_10 = l_Lean_mkConst(x_8, x_9); +x_11 = lean_unsigned_to_nat(0u); +x_12 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_3, x_3, x_11, x_10); x_13 = lean_array_get_size(x_4); -lean_inc(x_5); -x_14 = l___private_Lean_Elab_Structure_23__addCtorFields___main(x_4, x_13, x_11, x_5, x_6); -if (lean_obj_tag(x_14) == 0) +x_14 = !lean_is_exclusive(x_5); +if (x_14 == 0) { -lean_object* x_15; lean_object* x_16; lean_object* x_17; -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); +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_5, 10); +lean_dec(x_15); +lean_ctor_set(x_5, 10, x_7); +lean_inc(x_5); +x_16 = l___private_Lean_Elab_Structure_23__addCtorFields___main(x_4, x_13, x_12, x_5, x_6); +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_5); lean_inc(x_3); -x_17 = l_Lean_Elab_Term_mkForall(x_12, x_3, x_15, x_5, x_16); -if (lean_obj_tag(x_17) == 0) +x_19 = l_Lean_Elab_Term_mkForall(x_3, x_17, x_5, x_18); +if (lean_obj_tag(x_19) == 0) { -lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); -x_19 = lean_ctor_get(x_17, 1); -lean_inc(x_19); -lean_dec(x_17); -x_20 = l_Lean_Elab_Term_instantiateMVars(x_12, x_18, x_5, x_19); -lean_dec(x_12); -x_21 = !lean_is_exclusive(x_20); -if (x_21 == 0) +lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = l_Lean_Elab_Term_instantiateMVars(x_20, x_5, x_21); +x_23 = !lean_is_exclusive(x_22); +if (x_23 == 0) { -lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; -x_22 = lean_ctor_get(x_20, 0); -x_23 = lean_array_get_size(x_3); +lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_24 = lean_ctor_get(x_22, 0); +x_25 = lean_array_get_size(x_3); lean_dec(x_3); -x_24 = lean_ctor_get(x_1, 9); -lean_inc(x_24); -lean_dec(x_1); -x_25 = lean_ctor_get_uint8(x_24, sizeof(void*)*4); -if (x_25 == 0) -{ -lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; -x_26 = lean_ctor_get(x_24, 3); +x_26 = lean_ctor_get(x_1, 9); lean_inc(x_26); -lean_dec(x_24); -x_27 = 1; -x_28 = l_Lean_Expr_inferImplicit___main(x_22, x_23, x_27); -lean_dec(x_23); -x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_26); -lean_ctor_set(x_29, 1, x_28); -lean_ctor_set(x_20, 0, x_29); -return x_20; +lean_dec(x_1); +x_27 = lean_ctor_get_uint8(x_26, sizeof(void*)*4); +if (x_27 == 0) +{ +lean_object* x_28; uint8_t x_29; lean_object* x_30; lean_object* x_31; +x_28 = lean_ctor_get(x_26, 3); +lean_inc(x_28); +lean_dec(x_26); +x_29 = 1; +x_30 = l_Lean_Expr_inferImplicit___main(x_24, x_25, x_29); +lean_dec(x_25); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_28); +lean_ctor_set(x_31, 1, x_30); +lean_ctor_set(x_22, 0, x_31); +return x_22; } else { -lean_object* x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33; -x_30 = lean_ctor_get(x_24, 3); -lean_inc(x_30); -lean_dec(x_24); -x_31 = 0; -x_32 = l_Lean_Expr_inferImplicit___main(x_22, x_23, x_31); -lean_dec(x_23); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_30); -lean_ctor_set(x_33, 1, x_32); -lean_ctor_set(x_20, 0, x_33); -return x_20; +lean_object* x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35; +x_32 = lean_ctor_get(x_26, 3); +lean_inc(x_32); +lean_dec(x_26); +x_33 = 0; +x_34 = l_Lean_Expr_inferImplicit___main(x_24, x_25, x_33); +lean_dec(x_25); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_32); +lean_ctor_set(x_35, 1, x_34); +lean_ctor_set(x_22, 0, x_35); +return x_22; } } else { -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; -x_34 = lean_ctor_get(x_20, 0); -x_35 = lean_ctor_get(x_20, 1); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_20); -x_36 = lean_array_get_size(x_3); -lean_dec(x_3); -x_37 = lean_ctor_get(x_1, 9); +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; +x_36 = lean_ctor_get(x_22, 0); +x_37 = lean_ctor_get(x_22, 1); lean_inc(x_37); -lean_dec(x_1); -x_38 = lean_ctor_get_uint8(x_37, sizeof(void*)*4); -if (x_38 == 0) -{ -lean_object* x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_39 = lean_ctor_get(x_37, 3); +lean_inc(x_36); +lean_dec(x_22); +x_38 = lean_array_get_size(x_3); +lean_dec(x_3); +x_39 = lean_ctor_get(x_1, 9); lean_inc(x_39); -lean_dec(x_37); -x_40 = 1; -x_41 = l_Lean_Expr_inferImplicit___main(x_34, x_36, x_40); -lean_dec(x_36); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_39); -lean_ctor_set(x_42, 1, x_41); -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_35); -return x_43; +lean_dec(x_1); +x_40 = lean_ctor_get_uint8(x_39, sizeof(void*)*4); +if (x_40 == 0) +{ +lean_object* x_41; uint8_t x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_41 = lean_ctor_get(x_39, 3); +lean_inc(x_41); +lean_dec(x_39); +x_42 = 1; +x_43 = l_Lean_Expr_inferImplicit___main(x_36, x_38, x_42); +lean_dec(x_38); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_41); +lean_ctor_set(x_44, 1, x_43); +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_44); +lean_ctor_set(x_45, 1, x_37); +return x_45; } else { -lean_object* x_44; uint8_t x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_44 = lean_ctor_get(x_37, 3); -lean_inc(x_44); -lean_dec(x_37); -x_45 = 0; -x_46 = l_Lean_Expr_inferImplicit___main(x_34, x_36, x_45); -lean_dec(x_36); -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_44); -lean_ctor_set(x_47, 1, x_46); -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_35); -return x_48; +lean_object* x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_46 = lean_ctor_get(x_39, 3); +lean_inc(x_46); +lean_dec(x_39); +x_47 = 0; +x_48 = l_Lean_Expr_inferImplicit___main(x_36, x_38, x_47); +lean_dec(x_38); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_46); +lean_ctor_set(x_49, 1, x_48); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_37); +return x_50; } } } else { -uint8_t x_49; -lean_dec(x_12); +uint8_t x_51; lean_dec(x_5); lean_dec(x_3); lean_dec(x_1); -x_49 = !lean_is_exclusive(x_17); -if (x_49 == 0) +x_51 = !lean_is_exclusive(x_19); +if (x_51 == 0) { -return x_17; +return x_19; } else { -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_17, 0); -x_51 = lean_ctor_get(x_17, 1); -lean_inc(x_51); -lean_inc(x_50); -lean_dec(x_17); -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_50); -lean_ctor_set(x_52, 1, x_51); -return x_52; +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_19, 0); +x_53 = lean_ctor_get(x_19, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_19); +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_53; -lean_dec(x_12); +uint8_t x_55; lean_dec(x_5); lean_dec(x_3); lean_dec(x_1); -x_53 = !lean_is_exclusive(x_14); -if (x_53 == 0) +x_55 = !lean_is_exclusive(x_16); +if (x_55 == 0) { -return x_14; +return x_16; } else { -lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_54 = lean_ctor_get(x_14, 0); -x_55 = lean_ctor_get(x_14, 1); -lean_inc(x_55); -lean_inc(x_54); -lean_dec(x_14); -x_56 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_56, 0, x_54); -lean_ctor_set(x_56, 1, x_55); -return x_56; +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_16, 0); +x_57 = lean_ctor_get(x_16, 1); +lean_inc(x_57); +lean_inc(x_56); +lean_dec(x_16); +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_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; uint8_t x_70; uint8_t x_71; lean_object* x_72; lean_object* x_73; +x_59 = lean_ctor_get(x_5, 0); +x_60 = lean_ctor_get(x_5, 1); +x_61 = lean_ctor_get(x_5, 2); +x_62 = lean_ctor_get(x_5, 3); +x_63 = lean_ctor_get(x_5, 4); +x_64 = lean_ctor_get(x_5, 5); +x_65 = lean_ctor_get(x_5, 6); +x_66 = lean_ctor_get(x_5, 7); +x_67 = lean_ctor_get(x_5, 8); +x_68 = lean_ctor_get(x_5, 9); +x_69 = lean_ctor_get_uint8(x_5, sizeof(void*)*11); +x_70 = lean_ctor_get_uint8(x_5, sizeof(void*)*11 + 1); +x_71 = lean_ctor_get_uint8(x_5, sizeof(void*)*11 + 2); +lean_inc(x_68); +lean_inc(x_67); +lean_inc(x_66); +lean_inc(x_65); +lean_inc(x_64); +lean_inc(x_63); +lean_inc(x_62); +lean_inc(x_61); +lean_inc(x_60); +lean_inc(x_59); +lean_dec(x_5); +x_72 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_72, 0, x_59); +lean_ctor_set(x_72, 1, x_60); +lean_ctor_set(x_72, 2, x_61); +lean_ctor_set(x_72, 3, x_62); +lean_ctor_set(x_72, 4, x_63); +lean_ctor_set(x_72, 5, x_64); +lean_ctor_set(x_72, 6, x_65); +lean_ctor_set(x_72, 7, x_66); +lean_ctor_set(x_72, 8, x_67); +lean_ctor_set(x_72, 9, x_68); +lean_ctor_set(x_72, 10, x_7); +lean_ctor_set_uint8(x_72, sizeof(void*)*11, x_69); +lean_ctor_set_uint8(x_72, sizeof(void*)*11 + 1, x_70); +lean_ctor_set_uint8(x_72, sizeof(void*)*11 + 2, x_71); +lean_inc(x_72); +x_73 = l___private_Lean_Elab_Structure_23__addCtorFields___main(x_4, x_13, x_12, x_72, x_6); +if (lean_obj_tag(x_73) == 0) +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; +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_72); +lean_inc(x_3); +x_76 = l_Lean_Elab_Term_mkForall(x_3, x_74, x_72, x_75); +if (lean_obj_tag(x_76) == 0) +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; +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_instantiateMVars(x_77, x_72, 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); +if (lean_is_exclusive(x_79)) { + lean_ctor_release(x_79, 0); + lean_ctor_release(x_79, 1); + x_82 = x_79; +} else { + lean_dec_ref(x_79); + x_82 = lean_box(0); +} +x_83 = lean_array_get_size(x_3); +lean_dec(x_3); +x_84 = lean_ctor_get(x_1, 9); +lean_inc(x_84); +lean_dec(x_1); +x_85 = lean_ctor_get_uint8(x_84, sizeof(void*)*4); +if (x_85 == 0) +{ +lean_object* x_86; uint8_t x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_86 = lean_ctor_get(x_84, 3); +lean_inc(x_86); +lean_dec(x_84); +x_87 = 1; +x_88 = l_Lean_Expr_inferImplicit___main(x_80, x_83, x_87); +lean_dec(x_83); +x_89 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_89, 0, x_86); +lean_ctor_set(x_89, 1, x_88); +if (lean_is_scalar(x_82)) { + x_90 = lean_alloc_ctor(0, 2, 0); +} else { + x_90 = x_82; +} +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_90, 1, x_81); +return x_90; +} +else +{ +lean_object* x_91; uint8_t x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_91 = lean_ctor_get(x_84, 3); +lean_inc(x_91); +lean_dec(x_84); +x_92 = 0; +x_93 = l_Lean_Expr_inferImplicit___main(x_80, x_83, x_92); +lean_dec(x_83); +x_94 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_94, 0, x_91); +lean_ctor_set(x_94, 1, x_93); +if (lean_is_scalar(x_82)) { + x_95 = lean_alloc_ctor(0, 2, 0); +} else { + x_95 = x_82; +} +lean_ctor_set(x_95, 0, x_94); +lean_ctor_set(x_95, 1, x_81); +return x_95; +} +} +else +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; +lean_dec(x_72); +lean_dec(x_3); +lean_dec(x_1); +x_96 = lean_ctor_get(x_76, 0); +lean_inc(x_96); +x_97 = lean_ctor_get(x_76, 1); +lean_inc(x_97); +if (lean_is_exclusive(x_76)) { + lean_ctor_release(x_76, 0); + lean_ctor_release(x_76, 1); + x_98 = x_76; +} else { + lean_dec_ref(x_76); + x_98 = lean_box(0); +} +if (lean_is_scalar(x_98)) { + x_99 = lean_alloc_ctor(1, 2, 0); +} else { + x_99 = x_98; +} +lean_ctor_set(x_99, 0, x_96); +lean_ctor_set(x_99, 1, x_97); +return x_99; +} +} +else +{ +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; +lean_dec(x_72); +lean_dec(x_3); +lean_dec(x_1); +x_100 = lean_ctor_get(x_73, 0); +lean_inc(x_100); +x_101 = lean_ctor_get(x_73, 1); +lean_inc(x_101); +if (lean_is_exclusive(x_73)) { + lean_ctor_release(x_73, 0); + lean_ctor_release(x_73, 1); + x_102 = x_73; +} else { + lean_dec_ref(x_73); + x_102 = lean_box(0); +} +if (lean_is_scalar(x_102)) { + x_103 = lean_alloc_ctor(1, 2, 0); +} else { + x_103 = x_102; +} +lean_ctor_set(x_103, 0, x_100); +lean_ctor_set(x_103, 1, x_101); +return x_103; } } } @@ -7326,120 +8663,120 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Structure_25__elabStructureView___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Structure_25__elabStructureView___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_6; uint8_t x_7; -x_6 = lean_array_get_size(x_3); -x_7 = lean_nat_dec_lt(x_2, x_6); -lean_dec(x_6); -if (x_7 == 0) +lean_object* x_5; uint8_t x_6; +x_5 = lean_array_get_size(x_2); +x_6 = lean_nat_dec_lt(x_1, x_5); +lean_dec(x_5); +if (x_6 == 0) { -lean_object* x_8; lean_object* x_9; -lean_dec(x_4); -lean_dec(x_2); -x_8 = x_3; -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_8); -lean_ctor_set(x_9, 1, x_5); -return x_9; +lean_object* x_7; lean_object* x_8; +lean_dec(x_3); +lean_dec(x_1); +x_7 = x_2; +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_7); +lean_ctor_set(x_8, 1, x_4); +return x_8; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_10 = lean_array_fget(x_3, x_2); -x_11 = lean_unsigned_to_nat(0u); -x_12 = lean_array_fset(x_3, x_2, x_11); -x_13 = x_10; -x_14 = lean_ctor_get(x_13, 2); -lean_inc(x_14); -lean_inc(x_4); -x_15 = l_Lean_Elab_Term_inferType(x_1, x_14, x_4, x_5); -if (lean_obj_tag(x_15) == 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; +x_9 = lean_array_fget(x_2, x_1); +x_10 = lean_unsigned_to_nat(0u); +x_11 = lean_array_fset(x_2, x_1, x_10); +x_12 = x_9; +x_13 = lean_ctor_get(x_12, 2); +lean_inc(x_13); +lean_inc(x_3); +x_14 = l_Lean_Elab_Term_inferType(x_13, x_3, x_4); +if (lean_obj_tag(x_14) == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_16 = lean_ctor_get(x_15, 0); +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); +lean_dec(x_14); +x_17 = lean_ctor_get(x_12, 1); lean_inc(x_17); -lean_dec(x_15); -x_18 = lean_ctor_get(x_13, 1); -lean_inc(x_18); -x_19 = l_Array_umapMAux___main___at___private_Lean_Elab_Structure_25__elabStructureView___spec__6___closed__2; -x_20 = l_Lean_Name_append___main(x_18, x_19); -lean_dec(x_18); -x_21 = lean_ctor_get(x_13, 3); -lean_inc(x_21); -lean_dec(x_13); -if (lean_obj_tag(x_21) == 0) -{ -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; -x_22 = l_Lean_Expr_Inhabited; -x_23 = l_Option_get_x21___rarg___closed__3; -x_24 = lean_panic_fn(x_22, x_23); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_16); -lean_ctor_set(x_25, 1, x_24); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_20); -lean_ctor_set(x_26, 1, x_25); -x_27 = lean_unsigned_to_nat(1u); -x_28 = lean_nat_add(x_2, x_27); -x_29 = x_26; -x_30 = lean_array_fset(x_12, x_2, x_29); -lean_dec(x_2); -x_2 = x_28; -x_3 = x_30; -x_5 = x_17; -goto _start; -} -else -{ -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; -x_32 = lean_ctor_get(x_21, 0); -lean_inc(x_32); -lean_dec(x_21); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_16); -lean_ctor_set(x_33, 1, x_32); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_20); -lean_ctor_set(x_34, 1, x_33); -x_35 = lean_unsigned_to_nat(1u); -x_36 = lean_nat_add(x_2, x_35); -x_37 = x_34; -x_38 = lean_array_fset(x_12, x_2, x_37); -lean_dec(x_2); -x_2 = x_36; -x_3 = x_38; -x_5 = x_17; -goto _start; -} -} -else -{ -uint8_t x_40; -lean_dec(x_13); +x_18 = l_Array_umapMAux___main___at___private_Lean_Elab_Structure_25__elabStructureView___spec__6___closed__2; +x_19 = l_Lean_Name_append___main(x_17, x_18); +lean_dec(x_17); +x_20 = lean_ctor_get(x_12, 3); +lean_inc(x_20); lean_dec(x_12); -lean_dec(x_4); -lean_dec(x_2); -x_40 = !lean_is_exclusive(x_15); -if (x_40 == 0) +if (lean_obj_tag(x_20) == 0) { -return x_15; +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; +x_21 = l_Lean_Expr_Inhabited; +x_22 = l_Option_get_x21___rarg___closed__3; +x_23 = lean_panic_fn(x_21, x_22); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_15); +lean_ctor_set(x_24, 1, x_23); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_19); +lean_ctor_set(x_25, 1, x_24); +x_26 = lean_unsigned_to_nat(1u); +x_27 = lean_nat_add(x_1, x_26); +x_28 = x_25; +x_29 = lean_array_fset(x_11, x_1, x_28); +lean_dec(x_1); +x_1 = x_27; +x_2 = x_29; +x_4 = x_16; +goto _start; } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_15, 0); -x_42 = lean_ctor_get(x_15, 1); -lean_inc(x_42); +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_31 = lean_ctor_get(x_20, 0); +lean_inc(x_31); +lean_dec(x_20); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_15); +lean_ctor_set(x_32, 1, x_31); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_19); +lean_ctor_set(x_33, 1, x_32); +x_34 = lean_unsigned_to_nat(1u); +x_35 = lean_nat_add(x_1, x_34); +x_36 = x_33; +x_37 = lean_array_fset(x_11, x_1, x_36); +lean_dec(x_1); +x_1 = x_35; +x_2 = x_37; +x_4 = x_16; +goto _start; +} +} +else +{ +uint8_t x_39; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_3); +lean_dec(x_1); +x_39 = !lean_is_exclusive(x_14); +if (x_39 == 0) +{ +return x_14; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_14, 0); +x_41 = lean_ctor_get(x_14, 1); lean_inc(x_41); -lean_dec(x_15); -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; +lean_inc(x_40); +lean_dec(x_14); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; } } } @@ -7517,613 +8854,597 @@ goto _start; } } } -lean_object* l___private_Lean_Elab_Structure_25__elabStructureView___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Elab_Structure_25__elabStructureView___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { -lean_object* x_10; -lean_inc(x_8); -lean_inc(x_1); -x_10 = l___private_Lean_Elab_Structure_17__levelMVarToParam(x_1, x_7, x_2, x_3, x_8, x_9); -if (lean_obj_tag(x_10) == 0) -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -x_12 = lean_ctor_get(x_10, 1); -lean_inc(x_12); -lean_dec(x_10); -if (x_5 == 0) -{ -x_13 = x_6; -x_14 = x_12; -goto block_99; -} -else -{ -lean_object* x_100; -lean_inc(x_8); -x_100 = l___private_Lean_Elab_Structure_19__updateResultingUniverse(x_1, x_11, x_6, x_8, x_12); -if (lean_obj_tag(x_100) == 0) -{ -lean_object* x_101; lean_object* x_102; -x_101 = lean_ctor_get(x_100, 0); -lean_inc(x_101); -x_102 = lean_ctor_get(x_100, 1); -lean_inc(x_102); -lean_dec(x_100); -x_13 = x_101; -x_14 = x_102; -goto block_99; -} -else -{ -uint8_t x_103; -lean_dec(x_11); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_4); -lean_dec(x_1); -x_103 = !lean_is_exclusive(x_100); -if (x_103 == 0) -{ -return x_100; -} -else -{ -lean_object* x_104; lean_object* x_105; lean_object* x_106; -x_104 = lean_ctor_get(x_100, 0); -x_105 = lean_ctor_get(x_100, 1); -lean_inc(x_105); -lean_inc(x_104); -lean_dec(x_100); -x_106 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_106, 0, x_104); -lean_ctor_set(x_106, 1, x_105); -return x_106; -} -} -} -block_99: -{ -lean_object* x_15; -lean_inc(x_8); -x_15 = l___private_Lean_Elab_Structure_22__collectLevelParamsInStructure(x_1, x_7, x_2, x_11, x_8, x_14); -if (lean_obj_tag(x_15) == 0) -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); -lean_inc(x_17); -lean_dec(x_15); -x_18 = lean_ctor_get(x_4, 2); -lean_inc(x_18); -x_19 = lean_ctor_get(x_4, 3); -lean_inc(x_19); -x_20 = l_Lean_Elab_Command_sortDeclLevelParams(x_18, x_19, x_16); -if (lean_obj_tag(x_20) == 0) -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -lean_dec(x_13); -lean_dec(x_11); -lean_dec(x_7); -lean_dec(x_4); -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -lean_dec(x_20); -x_22 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_22, 0, x_21); -x_23 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_23, 0, x_22); -x_24 = l_Lean_Elab_Term_throwError___rarg(x_1, x_23, x_8, x_17); -lean_dec(x_1); -return x_24; -} -else -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_25 = lean_ctor_get(x_20, 0); -lean_inc(x_25); -lean_dec(x_20); -x_26 = lean_unsigned_to_nat(0u); +lean_object* x_9; lean_inc(x_7); -x_27 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_2, x_2, x_26, x_7); -lean_inc(x_8); -lean_inc(x_27); -lean_inc(x_25); +x_9 = l___private_Lean_Elab_Structure_17__levelMVarToParam(x_6, x_1, x_2, 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; +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec(x_9); +if (x_4 == 0) +{ +x_12 = x_5; +x_13 = x_11; +goto block_98; +} +else +{ +lean_object* x_99; +lean_inc(x_7); +x_99 = l___private_Lean_Elab_Structure_19__updateResultingUniverse(x_10, x_5, x_7, x_11); +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_12 = x_100; +x_13 = x_101; +goto block_98; +} +else +{ +uint8_t x_102; +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +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; +} +} +} +block_98: +{ +lean_object* x_14; +lean_inc(x_7); +x_14 = l___private_Lean_Elab_Structure_22__collectLevelParamsInStructure(x_6, x_1, x_10, x_7, x_13); +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_3, 2); +lean_inc(x_17); +x_18 = lean_ctor_get(x_3, 3); +lean_inc(x_18); +x_19 = l_Lean_Elab_Command_sortDeclLevelParams(x_17, x_18, x_15); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_3); +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +lean_dec(x_19); +x_21 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_21, 0, x_20); +x_22 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_22, 0, x_21); +x_23 = l_Lean_Elab_Term_throwError___rarg(x_22, x_7, x_16); +return x_23; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_24 = lean_ctor_get(x_19, 0); +lean_inc(x_24); +lean_dec(x_19); +x_25 = lean_unsigned_to_nat(0u); +lean_inc(x_6); +x_26 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1, x_1, x_25, x_6); +lean_inc(x_7); +lean_inc(x_26); +lean_inc(x_24); +lean_inc(x_3); +x_27 = l___private_Lean_Elab_Structure_24__mkCtor(x_3, x_24, x_26, x_10, x_7, x_16); +if (lean_obj_tag(x_27) == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); +lean_dec(x_27); +lean_inc(x_7); +lean_inc(x_26); +x_30 = l_Lean_Elab_Term_mkForall(x_26, x_12, x_7, x_29); +if (lean_obj_tag(x_30) == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_30, 1); +lean_inc(x_32); +lean_dec(x_30); +lean_inc(x_7); +x_33 = l_Lean_Elab_Term_instantiateMVars(x_31, x_7, x_32); +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_ctor_get(x_3, 4); +lean_inc(x_36); +x_37 = lean_box(0); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_28); +lean_ctor_set(x_38, 1, x_37); +x_39 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_39, 0, x_36); +lean_ctor_set(x_39, 1, x_34); +lean_ctor_set(x_39, 2, x_38); +x_40 = lean_array_get_size(x_26); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_37); +x_42 = lean_ctor_get(x_3, 1); +lean_inc(x_42); +x_43 = lean_ctor_get_uint8(x_42, sizeof(void*)*2 + 3); +lean_dec(x_42); +x_44 = lean_alloc_ctor(6, 3, 1); +lean_ctor_set(x_44, 0, x_24); +lean_ctor_set(x_44, 1, x_40); +lean_ctor_set(x_44, 2, x_41); +lean_ctor_set_uint8(x_44, sizeof(void*)*3, x_43); +lean_inc(x_10); +x_45 = l_Array_filterAux___main___at___private_Lean_Elab_Structure_25__elabStructureView___spec__1(x_10, x_25, x_25); +x_46 = l_Array_toList___rarg(x_45); +lean_dec(x_45); +x_47 = l_List_map___main___at___private_Lean_Elab_Structure_25__elabStructureView___spec__2(x_46); +lean_inc(x_7); +lean_inc(x_10); +x_48 = l_Array_filterMAux___main___at___private_Lean_Elab_Structure_25__elabStructureView___spec__3(x_10, x_25, x_25, x_7, x_35); +if (lean_obj_tag(x_48) == 0) +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +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 = l_Array_toList___rarg(x_49); +lean_dec(x_49); +x_52 = l_List_map___main___at___private_Lean_Elab_Structure_25__elabStructureView___spec__4(x_51); +x_53 = l_Lean_Elab_Term_getMCtx___rarg(x_50); +x_54 = lean_ctor_get(x_53, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_53, 1); +lean_inc(x_55); +lean_dec(x_53); +x_56 = l_Lean_Elab_Term_getLCtx(x_7, x_55); +x_57 = lean_ctor_get(x_56, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_56, 1); +lean_inc(x_58); +lean_dec(x_56); +x_59 = l_Lean_Elab_Term_getLocalInsts(x_7, x_58); +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_59, 1); +lean_inc(x_61); +lean_dec(x_59); +lean_inc(x_10); +x_62 = l_Array_filterAux___main___at___private_Lean_Elab_Structure_25__elabStructureView___spec__5(x_10, x_25, x_25); +x_63 = x_62; +x_64 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Structure_25__elabStructureView___spec__6), 4, 2); +lean_closure_set(x_64, 0, x_25); +lean_closure_set(x_64, 1, x_63); +x_65 = x_64; +x_66 = lean_apply_2(x_65, x_7, x_61); +if (lean_obj_tag(x_66) == 0) +{ +uint8_t x_67; +x_67 = !lean_is_exclusive(x_66); +if (x_67 == 0) +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_68 = lean_ctor_get(x_66, 0); +x_69 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_25__elabStructureView___spec__7(x_3, x_6, x_26, x_25, x_57); +lean_dec(x_26); +lean_dec(x_6); +lean_dec(x_3); +x_70 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_25__elabStructureView___spec__8(x_10, x_10, x_25, x_69); +lean_dec(x_10); +x_71 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_71, 0, x_44); +lean_ctor_set(x_71, 1, x_47); +lean_ctor_set(x_71, 2, x_52); +lean_ctor_set(x_71, 3, x_54); +lean_ctor_set(x_71, 4, x_70); +lean_ctor_set(x_71, 5, x_60); +lean_ctor_set(x_71, 6, x_68); +lean_ctor_set(x_66, 0, x_71); +return x_66; +} +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; +x_72 = lean_ctor_get(x_66, 0); +x_73 = lean_ctor_get(x_66, 1); +lean_inc(x_73); +lean_inc(x_72); +lean_dec(x_66); +x_74 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_25__elabStructureView___spec__7(x_3, x_6, x_26, x_25, x_57); +lean_dec(x_26); +lean_dec(x_6); +lean_dec(x_3); +x_75 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_25__elabStructureView___spec__8(x_10, x_10, x_25, x_74); +lean_dec(x_10); +x_76 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_76, 0, x_44); +lean_ctor_set(x_76, 1, x_47); +lean_ctor_set(x_76, 2, x_52); +lean_ctor_set(x_76, 3, x_54); +lean_ctor_set(x_76, 4, x_75); +lean_ctor_set(x_76, 5, x_60); +lean_ctor_set(x_76, 6, x_72); +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_73); +return x_77; +} +} +else +{ +uint8_t x_78; +lean_dec(x_60); +lean_dec(x_57); +lean_dec(x_54); +lean_dec(x_52); +lean_dec(x_47); +lean_dec(x_44); +lean_dec(x_26); +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_3); +x_78 = !lean_is_exclusive(x_66); +if (x_78 == 0) +{ +return x_66; +} +else +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_79 = lean_ctor_get(x_66, 0); +x_80 = lean_ctor_get(x_66, 1); +lean_inc(x_80); +lean_inc(x_79); +lean_dec(x_66); +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; +} +} +} +else +{ +uint8_t x_82; +lean_dec(x_47); +lean_dec(x_44); +lean_dec(x_26); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +x_82 = !lean_is_exclusive(x_48); +if (x_82 == 0) +{ +return x_48; +} +else +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_83 = lean_ctor_get(x_48, 0); +x_84 = lean_ctor_get(x_48, 1); +lean_inc(x_84); +lean_inc(x_83); +lean_dec(x_48); +x_85 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_85, 0, x_83); +lean_ctor_set(x_85, 1, x_84); +return x_85; +} +} +} +else +{ +uint8_t x_86; +lean_dec(x_28); +lean_dec(x_26); +lean_dec(x_24); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +x_86 = !lean_is_exclusive(x_30); +if (x_86 == 0) +{ +return x_30; +} +else +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_87 = lean_ctor_get(x_30, 0); +x_88 = lean_ctor_get(x_30, 1); +lean_inc(x_88); +lean_inc(x_87); +lean_dec(x_30); +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 +{ +uint8_t x_90; +lean_dec(x_26); +lean_dec(x_24); +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +x_90 = !lean_is_exclusive(x_27); +if (x_90 == 0) +{ +return x_27; +} +else +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_27, 0); +x_92 = lean_ctor_get(x_27, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_27); +x_93 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_92); +return x_93; +} +} +} +} +else +{ +uint8_t x_94; +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +x_94 = !lean_is_exclusive(x_14); +if (x_94 == 0) +{ +return x_14; +} +else +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_95 = lean_ctor_get(x_14, 0); +x_96 = lean_ctor_get(x_14, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_14); +x_97 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_97, 0, x_95); +lean_ctor_set(x_97, 1, x_96); +return x_97; +} +} +} +} +else +{ +uint8_t x_106; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_106 = !lean_is_exclusive(x_9); +if (x_106 == 0) +{ +return x_9; +} +else +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_107 = lean_ctor_get(x_9, 0); +x_108 = lean_ctor_get(x_9, 1); +lean_inc(x_108); +lean_inc(x_107); +lean_dec(x_9); +x_109 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_109, 0, x_107); +lean_ctor_set(x_109, 1, x_108); +return x_109; +} +} +} +} +lean_object* l___private_Lean_Elab_Structure_25__elabStructureView___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) { +_start: +{ +uint8_t x_7; lean_object* x_8; lean_object* x_9; +x_7 = 0; +x_8 = lean_box(0); +lean_inc(x_5); +x_9 = l___private_Lean_Elab_SyntheticMVars_11__synthesizeSyntheticMVarsAux___main(x_7, x_8, x_5, x_6); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_9, 1); +lean_inc(x_10); +lean_dec(x_9); +lean_inc(x_5); +lean_inc(x_1); +x_11 = l___private_Lean_Elab_Structure_11__getResultUniverse(x_1, x_5, x_10); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +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); +lean_inc(x_5); +x_14 = l_Lean_Elab_Command_shouldInferResultUniverse(x_12, x_5, x_13); +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_2, 5); +lean_inc(x_17); lean_inc(x_4); -x_28 = l___private_Lean_Elab_Structure_24__mkCtor(x_4, x_25, x_27, x_11, x_8, x_17); -if (lean_obj_tag(x_28) == 0) +lean_inc(x_3); +x_18 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_25__elabStructureView___lambda__1___boxed), 8, 5); +lean_closure_set(x_18, 0, x_3); +lean_closure_set(x_18, 1, x_4); +lean_closure_set(x_18, 2, x_2); +lean_closure_set(x_18, 3, x_15); +lean_closure_set(x_18, 4, x_1); +x_19 = l___private_Lean_Elab_Structure_13__withUsed___rarg(x_17, x_3, x_4, x_18, x_5, x_16); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_17); +return x_19; +} +else +{ +uint8_t x_20; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_20 = !lean_is_exclusive(x_14); +if (x_20 == 0) +{ +return x_14; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_14, 0); +x_22 = lean_ctor_get(x_14, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_14); +x_23 = lean_alloc_ctor(1, 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; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_24 = !lean_is_exclusive(x_11); +if (x_24 == 0) +{ +return x_11; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_11, 0); +x_26 = lean_ctor_get(x_11, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_11); +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_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_28 = !lean_is_exclusive(x_9); +if (x_28 == 0) +{ +return x_9; +} +else { 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); +x_29 = lean_ctor_get(x_9, 0); +x_30 = lean_ctor_get(x_9, 1); lean_inc(x_30); -lean_dec(x_28); -lean_inc(x_8); -lean_inc(x_27); -x_31 = l_Lean_Elab_Term_mkForall(x_1, x_27, x_13, x_8, 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; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -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_8); -x_34 = l_Lean_Elab_Term_instantiateMVars(x_1, x_32, x_8, 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 = lean_ctor_get(x_4, 4); -lean_inc(x_37); -x_38 = lean_box(0); -x_39 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_39, 0, x_29); -lean_ctor_set(x_39, 1, x_38); -x_40 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_40, 0, x_37); -lean_ctor_set(x_40, 1, x_35); -lean_ctor_set(x_40, 2, x_39); -x_41 = lean_array_get_size(x_27); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_38); -x_43 = lean_ctor_get(x_4, 1); -lean_inc(x_43); -x_44 = lean_ctor_get_uint8(x_43, sizeof(void*)*2 + 3); -lean_dec(x_43); -x_45 = lean_alloc_ctor(6, 3, 1); -lean_ctor_set(x_45, 0, x_25); -lean_ctor_set(x_45, 1, x_41); -lean_ctor_set(x_45, 2, x_42); -lean_ctor_set_uint8(x_45, sizeof(void*)*3, x_44); -lean_inc(x_11); -x_46 = l_Array_filterAux___main___at___private_Lean_Elab_Structure_25__elabStructureView___spec__1(x_11, x_26, x_26); -x_47 = l_Array_toList___rarg(x_46); -lean_dec(x_46); -x_48 = l_List_map___main___at___private_Lean_Elab_Structure_25__elabStructureView___spec__2(x_47); -lean_inc(x_8); -lean_inc(x_11); -x_49 = l_Array_filterMAux___main___at___private_Lean_Elab_Structure_25__elabStructureView___spec__3(x_11, x_26, x_26, x_8, x_36); -if (lean_obj_tag(x_49) == 0) -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -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); -x_52 = l_Array_toList___rarg(x_50); -lean_dec(x_50); -x_53 = l_List_map___main___at___private_Lean_Elab_Structure_25__elabStructureView___spec__4(x_52); -x_54 = l_Lean_Elab_Term_getMCtx___rarg(x_51); -x_55 = lean_ctor_get(x_54, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_54, 1); -lean_inc(x_56); -lean_dec(x_54); -x_57 = l_Lean_Elab_Term_getLCtx(x_8, x_56); -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_getLocalInsts(x_8, 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); -lean_dec(x_60); -lean_inc(x_11); -x_63 = l_Array_filterAux___main___at___private_Lean_Elab_Structure_25__elabStructureView___spec__5(x_11, x_26, x_26); -x_64 = x_63; -x_65 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Structure_25__elabStructureView___spec__6___boxed), 5, 3); -lean_closure_set(x_65, 0, x_1); -lean_closure_set(x_65, 1, x_26); -lean_closure_set(x_65, 2, x_64); -x_66 = x_65; -x_67 = lean_apply_2(x_66, x_8, x_62); -if (lean_obj_tag(x_67) == 0) -{ -uint8_t x_68; -x_68 = !lean_is_exclusive(x_67); -if (x_68 == 0) -{ -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_69 = lean_ctor_get(x_67, 0); -x_70 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_25__elabStructureView___spec__7(x_4, x_7, x_27, x_26, x_58); -lean_dec(x_27); -lean_dec(x_7); -lean_dec(x_4); -x_71 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_25__elabStructureView___spec__8(x_11, x_11, x_26, x_70); -lean_dec(x_11); -x_72 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_72, 0, x_45); -lean_ctor_set(x_72, 1, x_48); -lean_ctor_set(x_72, 2, x_53); -lean_ctor_set(x_72, 3, x_55); -lean_ctor_set(x_72, 4, x_71); -lean_ctor_set(x_72, 5, x_61); -lean_ctor_set(x_72, 6, x_69); -lean_ctor_set(x_67, 0, x_72); -return x_67; -} -else -{ -lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_73 = lean_ctor_get(x_67, 0); -x_74 = lean_ctor_get(x_67, 1); -lean_inc(x_74); -lean_inc(x_73); -lean_dec(x_67); -x_75 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_25__elabStructureView___spec__7(x_4, x_7, x_27, x_26, x_58); -lean_dec(x_27); -lean_dec(x_7); -lean_dec(x_4); -x_76 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_25__elabStructureView___spec__8(x_11, x_11, x_26, x_75); -lean_dec(x_11); -x_77 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_77, 0, x_45); -lean_ctor_set(x_77, 1, x_48); -lean_ctor_set(x_77, 2, x_53); -lean_ctor_set(x_77, 3, x_55); -lean_ctor_set(x_77, 4, x_76); -lean_ctor_set(x_77, 5, x_61); -lean_ctor_set(x_77, 6, x_73); -x_78 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_78, 0, x_77); -lean_ctor_set(x_78, 1, x_74); -return x_78; -} -} -else -{ -uint8_t x_79; -lean_dec(x_61); -lean_dec(x_58); -lean_dec(x_55); -lean_dec(x_53); -lean_dec(x_48); -lean_dec(x_45); -lean_dec(x_27); -lean_dec(x_11); -lean_dec(x_7); -lean_dec(x_4); -x_79 = !lean_is_exclusive(x_67); -if (x_79 == 0) -{ -return x_67; -} -else -{ -lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_80 = lean_ctor_get(x_67, 0); -x_81 = lean_ctor_get(x_67, 1); -lean_inc(x_81); -lean_inc(x_80); -lean_dec(x_67); -x_82 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_82, 0, x_80); -lean_ctor_set(x_82, 1, x_81); -return x_82; -} -} -} -else -{ -uint8_t x_83; -lean_dec(x_48); -lean_dec(x_45); -lean_dec(x_27); -lean_dec(x_11); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_4); -lean_dec(x_1); -x_83 = !lean_is_exclusive(x_49); -if (x_83 == 0) -{ -return x_49; -} -else -{ -lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_84 = lean_ctor_get(x_49, 0); -x_85 = lean_ctor_get(x_49, 1); -lean_inc(x_85); -lean_inc(x_84); -lean_dec(x_49); -x_86 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_86, 0, x_84); -lean_ctor_set(x_86, 1, x_85); -return x_86; -} -} -} -else -{ -uint8_t x_87; -lean_dec(x_29); -lean_dec(x_27); -lean_dec(x_25); -lean_dec(x_11); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_4); -lean_dec(x_1); -x_87 = !lean_is_exclusive(x_31); -if (x_87 == 0) -{ +lean_inc(x_29); +lean_dec(x_9); +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; } -else -{ -lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_88 = lean_ctor_get(x_31, 0); -x_89 = lean_ctor_get(x_31, 1); -lean_inc(x_89); -lean_inc(x_88); -lean_dec(x_31); -x_90 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_90, 0, x_88); -lean_ctor_set(x_90, 1, x_89); -return x_90; } } } -else -{ -uint8_t x_91; -lean_dec(x_27); -lean_dec(x_25); -lean_dec(x_13); -lean_dec(x_11); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_4); -lean_dec(x_1); -x_91 = !lean_is_exclusive(x_28); -if (x_91 == 0) -{ -return x_28; -} -else -{ -lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_92 = lean_ctor_get(x_28, 0); -x_93 = lean_ctor_get(x_28, 1); -lean_inc(x_93); -lean_inc(x_92); -lean_dec(x_28); -x_94 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_94, 0, x_92); -lean_ctor_set(x_94, 1, x_93); -return x_94; -} -} -} -} -else -{ -uint8_t x_95; -lean_dec(x_13); -lean_dec(x_11); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_4); -lean_dec(x_1); -x_95 = !lean_is_exclusive(x_15); -if (x_95 == 0) -{ -return x_15; -} -else -{ -lean_object* x_96; lean_object* x_97; lean_object* x_98; -x_96 = lean_ctor_get(x_15, 0); -x_97 = lean_ctor_get(x_15, 1); -lean_inc(x_97); -lean_inc(x_96); -lean_dec(x_15); -x_98 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_98, 0, x_96); -lean_ctor_set(x_98, 1, x_97); -return x_98; -} -} -} -} -else -{ -uint8_t x_107; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_1); -x_107 = !lean_is_exclusive(x_10); -if (x_107 == 0) -{ -return x_10; -} -else -{ -lean_object* x_108; lean_object* x_109; lean_object* x_110; -x_108 = lean_ctor_get(x_10, 0); -x_109 = lean_ctor_get(x_10, 1); -lean_inc(x_109); -lean_inc(x_108); -lean_dec(x_10); -x_110 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_110, 0, x_108); -lean_ctor_set(x_110, 1, x_109); -return x_110; -} -} -} -} -lean_object* l___private_Lean_Elab_Structure_25__elabStructureView___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* l___private_Lean_Elab_Structure_25__elabStructureView___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) { _start: { -uint8_t x_8; lean_object* x_9; lean_object* x_10; -x_8 = 0; -x_9 = lean_box(0); -lean_inc(x_6); -x_10 = l___private_Lean_Elab_SyntheticMVars_11__synthesizeSyntheticMVarsAux___main(x_8, x_9, x_6, x_7); -if (lean_obj_tag(x_10) == 0) -{ -lean_object* x_11; lean_object* x_12; -x_11 = lean_ctor_get(x_10, 1); -lean_inc(x_11); -lean_dec(x_10); -lean_inc(x_6); -lean_inc(x_2); -x_12 = l___private_Lean_Elab_Structure_11__getResultUniverse(x_1, x_2, x_6, x_11); -if (lean_obj_tag(x_12) == 0) -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); -lean_inc(x_14); -lean_dec(x_12); -lean_inc(x_6); -x_15 = l_Lean_Elab_Command_shouldInferResultUniverse(x_1, x_13, x_6, x_14); -if (lean_obj_tag(x_15) == 0) -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); -lean_inc(x_17); -lean_dec(x_15); -x_18 = lean_ctor_get(x_3, 5); -lean_inc(x_18); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_1); -x_19 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_25__elabStructureView___lambda__1___boxed), 9, 6); -lean_closure_set(x_19, 0, x_1); -lean_closure_set(x_19, 1, x_4); -lean_closure_set(x_19, 2, x_5); -lean_closure_set(x_19, 3, x_3); -lean_closure_set(x_19, 4, x_16); -lean_closure_set(x_19, 5, x_2); -x_20 = l___private_Lean_Elab_Structure_13__withUsed___rarg(x_1, x_18, x_4, x_5, x_19, x_6, x_17); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_18); -lean_dec(x_1); -return x_20; -} -else -{ -uint8_t x_21; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_21 = !lean_is_exclusive(x_15); -if (x_21 == 0) -{ -return x_15; -} -else -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_15, 0); -x_23 = lean_ctor_get(x_15, 1); -lean_inc(x_23); -lean_inc(x_22); -lean_dec(x_15); -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -return x_24; -} -} -} -else -{ -uint8_t x_25; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_25 = !lean_is_exclusive(x_12); -if (x_25 == 0) -{ -return x_12; -} -else -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_12, 0); -x_27 = lean_ctor_get(x_12, 1); -lean_inc(x_27); -lean_inc(x_26); -lean_dec(x_12); -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; -} -} -} -else -{ -uint8_t x_29; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_29 = !lean_is_exclusive(x_10); -if (x_29 == 0) -{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_7 = lean_ctor_get(x_1, 10); +lean_inc(x_7); +x_8 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_25__elabStructureView___lambda__2), 6, 3); +lean_closure_set(x_8, 0, x_2); +lean_closure_set(x_8, 1, x_1); +lean_closure_set(x_8, 2, x_3); +x_9 = lean_unsigned_to_nat(0u); +x_10 = l___private_Lean_Elab_Structure_10__withFields___main___rarg(x_7, x_9, x_4, x_8, x_5, x_6); return x_10; } -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_10, 0); -x_31 = lean_ctor_get(x_10, 1); -lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_10); -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; -} -} -} -} -lean_object* l___private_Lean_Elab_Structure_25__elabStructureView___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) { -_start: -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_8 = lean_ctor_get(x_1, 10); -lean_inc(x_8); -x_9 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_25__elabStructureView___lambda__2), 7, 4); -lean_closure_set(x_9, 0, x_2); -lean_closure_set(x_9, 1, x_3); -lean_closure_set(x_9, 2, x_1); -lean_closure_set(x_9, 3, x_4); -x_10 = lean_unsigned_to_nat(0u); -x_11 = l___private_Lean_Elab_Structure_10__withFields___main___rarg(x_8, x_10, x_5, x_9, x_6, x_7); -return x_11; -} } lean_object* _init_l___private_Lean_Elab_Structure_25__elabStructureView___closed__1() { _start: @@ -8176,18 +9497,18 @@ x_9 = l___private_Lean_Elab_Structure_4__validStructType(x_7); x_10 = lean_ctor_get(x_1, 0); lean_inc(x_10); lean_inc(x_1); -x_11 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_25__elabStructureView___lambda__3), 7, 4); +x_11 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_25__elabStructureView___lambda__3), 6, 3); lean_closure_set(x_11, 0, x_1); -lean_closure_set(x_11, 1, x_10); -lean_closure_set(x_11, 2, x_7); -lean_closure_set(x_11, 3, x_4); +lean_closure_set(x_11, 1, x_7); +lean_closure_set(x_11, 2, x_4); if (x_9 == 0) { lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_dec(x_11); +lean_dec(x_10); lean_dec(x_1); x_12 = l___private_Lean_Elab_Structure_25__elabStructureView___closed__3; -x_13 = l_Lean_Elab_Term_throwError___rarg(x_5, x_12, x_2, x_8); +x_13 = l_Lean_Elab_Term_throwErrorAt___rarg(x_5, x_12, x_2, x_8); lean_dec(x_5); x_14 = !lean_is_exclusive(x_13); if (x_14 == 0) @@ -8210,51 +9531,97 @@ return x_17; } else { -lean_object* x_18; lean_object* x_19; lean_object* x_20; +uint8_t x_18; lean_dec(x_5); -x_18 = lean_unsigned_to_nat(0u); -x_19 = l_Array_empty___closed__1; -x_20 = l___private_Lean_Elab_Structure_9__withParents___main___rarg(x_1, x_18, x_19, x_11, x_2, x_8); -return x_20; +x_18 = !lean_is_exclusive(x_2); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_19 = lean_ctor_get(x_2, 10); +lean_dec(x_19); +lean_ctor_set(x_2, 10, x_10); +x_20 = lean_unsigned_to_nat(0u); +x_21 = l_Array_empty___closed__1; +x_22 = l___private_Lean_Elab_Structure_9__withParents___main___rarg(x_1, x_20, x_21, x_11, x_2, x_8); +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_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; uint8_t x_34; uint8_t x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_23 = lean_ctor_get(x_2, 0); +x_24 = lean_ctor_get(x_2, 1); +x_25 = lean_ctor_get(x_2, 2); +x_26 = lean_ctor_get(x_2, 3); +x_27 = lean_ctor_get(x_2, 4); +x_28 = lean_ctor_get(x_2, 5); +x_29 = lean_ctor_get(x_2, 6); +x_30 = lean_ctor_get(x_2, 7); +x_31 = lean_ctor_get(x_2, 8); +x_32 = lean_ctor_get(x_2, 9); +x_33 = lean_ctor_get_uint8(x_2, sizeof(void*)*11); +x_34 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 1); +x_35 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 2); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_inc(x_26); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_2); +x_36 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_36, 0, x_23); +lean_ctor_set(x_36, 1, x_24); +lean_ctor_set(x_36, 2, x_25); +lean_ctor_set(x_36, 3, x_26); +lean_ctor_set(x_36, 4, x_27); +lean_ctor_set(x_36, 5, x_28); +lean_ctor_set(x_36, 6, x_29); +lean_ctor_set(x_36, 7, x_30); +lean_ctor_set(x_36, 8, x_31); +lean_ctor_set(x_36, 9, x_32); +lean_ctor_set(x_36, 10, x_10); +lean_ctor_set_uint8(x_36, sizeof(void*)*11, x_33); +lean_ctor_set_uint8(x_36, sizeof(void*)*11 + 1, x_34); +lean_ctor_set_uint8(x_36, sizeof(void*)*11 + 2, x_35); +x_37 = lean_unsigned_to_nat(0u); +x_38 = l_Array_empty___closed__1; +x_39 = l___private_Lean_Elab_Structure_9__withParents___main___rarg(x_1, x_37, x_38, x_11, x_36, x_8); +return x_39; +} } } else { -uint8_t x_21; +uint8_t x_40; lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_21 = !lean_is_exclusive(x_6); -if (x_21 == 0) +x_40 = !lean_is_exclusive(x_6); +if (x_40 == 0) { return x_6; } else { -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_6, 0); -x_23 = lean_ctor_get(x_6, 1); -lean_inc(x_23); -lean_inc(x_22); +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_6, 0); +x_42 = lean_ctor_get(x_6, 1); +lean_inc(x_42); +lean_inc(x_41); lean_dec(x_6); -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -return x_24; +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; } } } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Structure_25__elabStructureView___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_Array_umapMAux___main___at___private_Lean_Elab_Structure_25__elabStructureView___spec__6(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_1); -return x_6; -} -} lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_25__elabStructureView___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { @@ -8276,15 +9643,15 @@ lean_dec(x_1); return x_5; } } -lean_object* l___private_Lean_Elab_Structure_25__elabStructureView___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* l___private_Lean_Elab_Structure_25__elabStructureView___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: { -uint8_t x_10; lean_object* x_11; -x_10 = lean_unbox(x_5); -lean_dec(x_5); -x_11 = l___private_Lean_Elab_Structure_25__elabStructureView___lambda__1(x_1, x_2, x_3, x_4, x_10, x_6, x_7, x_8, x_9); -lean_dec(x_2); -return x_11; +uint8_t x_9; lean_object* x_10; +x_9 = lean_unbox(x_4); +lean_dec(x_4); +x_10 = l___private_Lean_Elab_Structure_25__elabStructureView___lambda__1(x_1, x_2, x_3, x_9, x_5, x_6, x_7, x_8); +lean_dec(x_1); +return x_10; } } lean_object* l___private_Lean_Elab_Structure_26__mkProjections___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { @@ -9097,743 +10464,242 @@ lean_dec(x_1); return x_4; } } -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Structure_29__addDefaults___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Structure_29__addDefaults___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_6; uint8_t x_7; -x_6 = lean_array_get_size(x_2); -x_7 = lean_nat_dec_lt(x_3, x_6); -lean_dec(x_6); -if (x_7 == 0) +lean_object* x_5; uint8_t x_6; +x_5 = lean_array_get_size(x_1); +x_6 = lean_nat_dec_lt(x_2, x_5); +lean_dec(x_5); +if (x_6 == 0) { -lean_object* x_8; lean_object* x_9; -lean_dec(x_4); +lean_object* x_7; lean_object* x_8; lean_dec(x_3); -x_8 = lean_box(0); -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_8); -lean_ctor_set(x_9, 1, x_5); -return x_9; +lean_dec(x_2); +x_7 = lean_box(0); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_7); +lean_ctor_set(x_8, 1, x_4); +return x_8; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; -x_10 = lean_array_fget(x_2, x_3); -x_11 = lean_unsigned_to_nat(1u); -x_12 = lean_nat_add(x_3, x_11); -lean_dec(x_3); -x_13 = lean_ctor_get(x_10, 1); +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_9 = lean_array_fget(x_1, x_2); +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_add(x_2, x_10); +lean_dec(x_2); +x_12 = lean_ctor_get(x_9, 1); +lean_inc(x_12); +x_13 = lean_ctor_get(x_4, 0); lean_inc(x_13); -x_14 = lean_ctor_get(x_5, 0); +x_14 = lean_ctor_get(x_9, 0); lean_inc(x_14); -x_15 = lean_ctor_get(x_10, 0); +lean_dec(x_9); +x_15 = lean_ctor_get(x_12, 0); lean_inc(x_15); -lean_dec(x_10); -x_16 = lean_ctor_get(x_13, 0); +x_16 = lean_ctor_get(x_12, 1); lean_inc(x_16); -x_17 = lean_ctor_get(x_13, 1); -lean_inc(x_17); -lean_dec(x_13); -x_18 = !lean_is_exclusive(x_14); -if (x_18 == 0) +lean_dec(x_12); +x_17 = !lean_is_exclusive(x_13); +if (x_17 == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_14, 4); -x_20 = lean_ctor_get(x_4, 0); -lean_inc(x_20); -x_21 = l_Lean_TraceState_Inhabited___closed__1; -lean_ctor_set(x_14, 4, x_21); -x_22 = l_Lean_Meta_mkId(x_17, x_20, x_14); -if (lean_obj_tag(x_22) == 0) +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_13, 4); +x_19 = lean_ctor_get(x_3, 0); +lean_inc(x_19); +x_20 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_13, 4, x_20); +x_21 = l_Lean_Meta_mkId(x_16, x_19, x_13); +if (lean_obj_tag(x_21) == 0) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; lean_object* x_27; -x_23 = lean_ctor_get(x_22, 0); +lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_21, 1); lean_inc(x_23); -x_24 = lean_ctor_get(x_22, 1); -lean_inc(x_24); -lean_dec(x_22); -lean_inc(x_4); -x_25 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_24, x_19); -x_26 = 1; -lean_inc(x_4); -lean_inc(x_15); -x_27 = l_Lean_Elab_Term_mkAuxDefinition(x_1, x_15, x_16, x_23, x_26, x_4, x_25); -if (lean_obj_tag(x_27) == 0) +lean_dec(x_21); +lean_inc(x_3); +x_24 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_23, x_18); +x_25 = 1; +lean_inc(x_3); +lean_inc(x_14); +x_26 = l_Lean_Elab_Term_mkAuxDefinition(x_14, x_15, x_22, x_25, x_3, x_24); +if (lean_obj_tag(x_26) == 0) { -lean_object* x_28; uint8_t x_29; -x_28 = lean_ctor_get(x_27, 1); -lean_inc(x_28); -lean_dec(x_27); -x_29 = !lean_is_exclusive(x_28); -if (x_29 == 0) +lean_object* x_27; uint8_t x_28; +x_27 = lean_ctor_get(x_26, 1); +lean_inc(x_27); +lean_dec(x_26); +x_28 = !lean_is_exclusive(x_27); +if (x_28 == 0) { -lean_object* x_30; uint8_t x_31; -x_30 = lean_ctor_get(x_28, 0); -x_31 = !lean_is_exclusive(x_30); -if (x_31 == 0) +lean_object* x_29; uint8_t x_30; +x_29 = lean_ctor_get(x_27, 0); +x_30 = !lean_is_exclusive(x_29); +if (x_30 == 0) { -lean_object* x_32; uint8_t x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_30, 0); -x_33 = 0; -x_34 = lean_set_reducibility_status(x_32, x_15, x_33); -lean_ctor_set(x_30, 0, x_34); -x_3 = x_12; -x_5 = x_28; +lean_object* x_31; uint8_t x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_29, 0); +x_32 = 0; +x_33 = lean_set_reducibility_status(x_31, x_14, x_32); +lean_ctor_set(x_29, 0, x_33); +x_2 = x_11; +x_4 = x_27; goto _start; } else { -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; lean_object* x_44; -x_36 = lean_ctor_get(x_30, 0); -x_37 = lean_ctor_get(x_30, 1); -x_38 = lean_ctor_get(x_30, 2); -x_39 = lean_ctor_get(x_30, 3); -x_40 = lean_ctor_get(x_30, 4); -x_41 = lean_ctor_get(x_30, 5); -lean_inc(x_41); +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; +x_35 = lean_ctor_get(x_29, 0); +x_36 = lean_ctor_get(x_29, 1); +x_37 = lean_ctor_get(x_29, 2); +x_38 = lean_ctor_get(x_29, 3); +x_39 = lean_ctor_get(x_29, 4); +x_40 = lean_ctor_get(x_29, 5); lean_inc(x_40); lean_inc(x_39); lean_inc(x_38); lean_inc(x_37); lean_inc(x_36); -lean_dec(x_30); -x_42 = 0; -x_43 = lean_set_reducibility_status(x_36, x_15, x_42); -x_44 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_44, 0, x_43); -lean_ctor_set(x_44, 1, x_37); -lean_ctor_set(x_44, 2, x_38); -lean_ctor_set(x_44, 3, x_39); -lean_ctor_set(x_44, 4, x_40); -lean_ctor_set(x_44, 5, x_41); -lean_ctor_set(x_28, 0, x_44); -x_3 = x_12; -x_5 = x_28; +lean_inc(x_35); +lean_dec(x_29); +x_41 = 0; +x_42 = lean_set_reducibility_status(x_35, x_14, x_41); +x_43 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_36); +lean_ctor_set(x_43, 2, x_37); +lean_ctor_set(x_43, 3, x_38); +lean_ctor_set(x_43, 4, x_39); +lean_ctor_set(x_43, 5, x_40); +lean_ctor_set(x_27, 0, x_43); +x_2 = x_11; +x_4 = x_27; goto _start; } } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_46 = lean_ctor_get(x_28, 0); -x_47 = lean_ctor_get(x_28, 1); -x_48 = lean_ctor_get(x_28, 2); -x_49 = lean_ctor_get(x_28, 3); -x_50 = lean_ctor_get(x_28, 4); -x_51 = lean_ctor_get(x_28, 5); -lean_inc(x_51); +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; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_45 = lean_ctor_get(x_27, 0); +x_46 = lean_ctor_get(x_27, 1); +x_47 = lean_ctor_get(x_27, 2); +x_48 = lean_ctor_get(x_27, 3); +x_49 = lean_ctor_get(x_27, 4); +x_50 = lean_ctor_get(x_27, 5); lean_inc(x_50); lean_inc(x_49); lean_inc(x_48); lean_inc(x_47); lean_inc(x_46); -lean_dec(x_28); -x_52 = lean_ctor_get(x_46, 0); -lean_inc(x_52); -x_53 = lean_ctor_get(x_46, 1); -lean_inc(x_53); -x_54 = lean_ctor_get(x_46, 2); -lean_inc(x_54); -x_55 = lean_ctor_get(x_46, 3); -lean_inc(x_55); -x_56 = lean_ctor_get(x_46, 4); -lean_inc(x_56); -x_57 = lean_ctor_get(x_46, 5); -lean_inc(x_57); -if (lean_is_exclusive(x_46)) { - lean_ctor_release(x_46, 0); - lean_ctor_release(x_46, 1); - lean_ctor_release(x_46, 2); - lean_ctor_release(x_46, 3); - lean_ctor_release(x_46, 4); - lean_ctor_release(x_46, 5); - x_58 = x_46; -} else { - lean_dec_ref(x_46); - x_58 = lean_box(0); -} -x_59 = 0; -x_60 = lean_set_reducibility_status(x_52, x_15, x_59); -if (lean_is_scalar(x_58)) { - x_61 = lean_alloc_ctor(0, 6, 0); -} else { - x_61 = x_58; -} -lean_ctor_set(x_61, 0, x_60); -lean_ctor_set(x_61, 1, x_53); -lean_ctor_set(x_61, 2, x_54); -lean_ctor_set(x_61, 3, x_55); -lean_ctor_set(x_61, 4, x_56); -lean_ctor_set(x_61, 5, x_57); -x_62 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_62, 0, x_61); -lean_ctor_set(x_62, 1, x_47); -lean_ctor_set(x_62, 2, x_48); -lean_ctor_set(x_62, 3, x_49); -lean_ctor_set(x_62, 4, x_50); -lean_ctor_set(x_62, 5, x_51); -x_3 = x_12; -x_5 = x_62; -goto _start; -} -} -else -{ -uint8_t x_64; -lean_dec(x_15); -lean_dec(x_12); -lean_dec(x_4); -x_64 = !lean_is_exclusive(x_27); -if (x_64 == 0) -{ -return x_27; -} -else -{ -lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_65 = lean_ctor_get(x_27, 0); -x_66 = lean_ctor_get(x_27, 1); -lean_inc(x_66); -lean_inc(x_65); +lean_inc(x_45); lean_dec(x_27); -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_16); -lean_dec(x_15); -lean_dec(x_12); -x_68 = !lean_is_exclusive(x_22); -if (x_68 == 0) -{ -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_69 = lean_ctor_get(x_22, 0); -x_70 = lean_ctor_get(x_22, 1); -lean_inc(x_4); -x_71 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_1, x_69); -x_72 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_70, x_19); -lean_ctor_set(x_22, 1, x_72); -lean_ctor_set(x_22, 0, x_71); -return x_22; -} -else -{ -lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_73 = lean_ctor_get(x_22, 0); -x_74 = lean_ctor_get(x_22, 1); -lean_inc(x_74); -lean_inc(x_73); -lean_dec(x_22); -lean_inc(x_4); -x_75 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_1, x_73); -x_76 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_74, x_19); -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; -} -} -} -else -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_78 = lean_ctor_get(x_14, 0); -x_79 = lean_ctor_get(x_14, 1); -x_80 = lean_ctor_get(x_14, 2); -x_81 = lean_ctor_get(x_14, 3); -x_82 = lean_ctor_get(x_14, 4); -x_83 = lean_ctor_get(x_14, 5); -lean_inc(x_83); -lean_inc(x_82); -lean_inc(x_81); -lean_inc(x_80); -lean_inc(x_79); -lean_inc(x_78); -lean_dec(x_14); -x_84 = lean_ctor_get(x_4, 0); -lean_inc(x_84); -x_85 = l_Lean_TraceState_Inhabited___closed__1; -x_86 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_86, 0, x_78); -lean_ctor_set(x_86, 1, x_79); -lean_ctor_set(x_86, 2, x_80); -lean_ctor_set(x_86, 3, x_81); -lean_ctor_set(x_86, 4, x_85); -lean_ctor_set(x_86, 5, x_83); -x_87 = l_Lean_Meta_mkId(x_17, x_84, x_86); -if (lean_obj_tag(x_87) == 0) -{ -lean_object* x_88; lean_object* x_89; lean_object* x_90; uint8_t x_91; lean_object* x_92; -x_88 = lean_ctor_get(x_87, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_87, 1); -lean_inc(x_89); -lean_dec(x_87); -lean_inc(x_4); -x_90 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_89, x_82); -x_91 = 1; -lean_inc(x_4); -lean_inc(x_15); -x_92 = l_Lean_Elab_Term_mkAuxDefinition(x_1, x_15, x_16, x_88, x_91, x_4, x_90); -if (lean_obj_tag(x_92) == 0) -{ -lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; uint8_t x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; -x_93 = lean_ctor_get(x_92, 1); -lean_inc(x_93); -lean_dec(x_92); -x_94 = lean_ctor_get(x_93, 0); -lean_inc(x_94); -x_95 = lean_ctor_get(x_93, 1); -lean_inc(x_95); -x_96 = lean_ctor_get(x_93, 2); -lean_inc(x_96); -x_97 = lean_ctor_get(x_93, 3); -lean_inc(x_97); -x_98 = lean_ctor_get(x_93, 4); -lean_inc(x_98); -x_99 = lean_ctor_get(x_93, 5); -lean_inc(x_99); -if (lean_is_exclusive(x_93)) { - lean_ctor_release(x_93, 0); - lean_ctor_release(x_93, 1); - lean_ctor_release(x_93, 2); - lean_ctor_release(x_93, 3); - lean_ctor_release(x_93, 4); - lean_ctor_release(x_93, 5); - x_100 = x_93; -} else { - lean_dec_ref(x_93); - x_100 = lean_box(0); -} -x_101 = lean_ctor_get(x_94, 0); -lean_inc(x_101); -x_102 = lean_ctor_get(x_94, 1); -lean_inc(x_102); -x_103 = lean_ctor_get(x_94, 2); -lean_inc(x_103); -x_104 = lean_ctor_get(x_94, 3); -lean_inc(x_104); -x_105 = lean_ctor_get(x_94, 4); -lean_inc(x_105); -x_106 = lean_ctor_get(x_94, 5); -lean_inc(x_106); -if (lean_is_exclusive(x_94)) { - lean_ctor_release(x_94, 0); - lean_ctor_release(x_94, 1); - lean_ctor_release(x_94, 2); - lean_ctor_release(x_94, 3); - lean_ctor_release(x_94, 4); - lean_ctor_release(x_94, 5); - x_107 = x_94; -} else { - lean_dec_ref(x_94); - x_107 = lean_box(0); -} -x_108 = 0; -x_109 = lean_set_reducibility_status(x_101, x_15, x_108); -if (lean_is_scalar(x_107)) { - x_110 = lean_alloc_ctor(0, 6, 0); -} else { - x_110 = x_107; -} -lean_ctor_set(x_110, 0, x_109); -lean_ctor_set(x_110, 1, x_102); -lean_ctor_set(x_110, 2, x_103); -lean_ctor_set(x_110, 3, x_104); -lean_ctor_set(x_110, 4, x_105); -lean_ctor_set(x_110, 5, x_106); -if (lean_is_scalar(x_100)) { - x_111 = lean_alloc_ctor(0, 6, 0); -} else { - x_111 = x_100; -} -lean_ctor_set(x_111, 0, x_110); -lean_ctor_set(x_111, 1, x_95); -lean_ctor_set(x_111, 2, x_96); -lean_ctor_set(x_111, 3, x_97); -lean_ctor_set(x_111, 4, x_98); -lean_ctor_set(x_111, 5, x_99); -x_3 = x_12; -x_5 = x_111; -goto _start; -} -else -{ -lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; -lean_dec(x_15); -lean_dec(x_12); -lean_dec(x_4); -x_113 = lean_ctor_get(x_92, 0); -lean_inc(x_113); -x_114 = lean_ctor_get(x_92, 1); -lean_inc(x_114); -if (lean_is_exclusive(x_92)) { - lean_ctor_release(x_92, 0); - lean_ctor_release(x_92, 1); - x_115 = x_92; -} else { - lean_dec_ref(x_92); - 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_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_12); -x_117 = lean_ctor_get(x_87, 0); -lean_inc(x_117); -x_118 = lean_ctor_get(x_87, 1); -lean_inc(x_118); -if (lean_is_exclusive(x_87)) { - lean_ctor_release(x_87, 0); - lean_ctor_release(x_87, 1); - x_119 = x_87; -} else { - lean_dec_ref(x_87); - x_119 = lean_box(0); -} -lean_inc(x_4); -x_120 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_1, x_117); -x_121 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_118, x_82); -if (lean_is_scalar(x_119)) { - x_122 = lean_alloc_ctor(1, 2, 0); -} else { - x_122 = x_119; -} -lean_ctor_set(x_122, 0, x_120); -lean_ctor_set(x_122, 1, x_121); -return x_122; -} -} -} -} -} -lean_object* l___private_Lean_Elab_Structure_29__addDefaults___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_6 = l_Lean_Elab_Term_setMCtx(x_1, x_4, x_5); -x_7 = lean_ctor_get(x_6, 1); -lean_inc(x_7); -lean_dec(x_6); -x_8 = lean_unsigned_to_nat(0u); -x_9 = l_Array_forMAux___main___at___private_Lean_Elab_Structure_29__addDefaults___spec__1(x_2, x_3, x_8, x_4, x_7); -return x_9; -} -} -lean_object* l___private_Lean_Elab_Structure_29__addDefaults(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; lean_object* x_9; lean_object* x_10; -x_8 = lean_box(0); -x_9 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_29__addDefaults___lambda__1___boxed), 5, 3); -lean_closure_set(x_9, 0, x_2); -lean_closure_set(x_9, 1, x_1); -lean_closure_set(x_9, 2, x_5); -lean_inc(x_6); -x_10 = l___private_Lean_Elab_Command_2__getState(x_6, x_7); -if (lean_obj_tag(x_10) == 0) -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_11 = lean_ctor_get(x_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___private_Lean_Elab_Command_6__mkTermContext(x_6, x_11, x_8); -x_14 = l___private_Lean_Elab_Command_7__mkTermState(x_11); -lean_dec(x_11); -x_15 = l_Lean_Elab_Term_withLocalContext___rarg(x_3, x_4, x_9, x_13, x_14); -if (lean_obj_tag(x_15) == 0) -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); -lean_inc(x_17); -lean_dec(x_15); -lean_inc(x_6); -x_18 = l___private_Lean_Elab_Command_2__getState(x_6, x_12); -if (lean_obj_tag(x_18) == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; -x_19 = lean_ctor_get(x_17, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_18, 1); -lean_inc(x_21); -lean_dec(x_18); -x_22 = lean_ctor_get(x_19, 0); -lean_inc(x_22); -x_23 = lean_ctor_get(x_19, 3); -lean_inc(x_23); -lean_dec(x_19); -x_24 = lean_ctor_get(x_17, 2); -lean_inc(x_24); -lean_dec(x_17); -x_25 = !lean_is_exclusive(x_20); -if (x_25 == 0) -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_26 = lean_ctor_get(x_20, 5); -lean_dec(x_26); -x_27 = lean_ctor_get(x_20, 1); -lean_dec(x_27); -x_28 = lean_ctor_get(x_20, 0); -lean_dec(x_28); -lean_ctor_set(x_20, 5, x_23); -lean_ctor_set(x_20, 1, x_24); -lean_ctor_set(x_20, 0, x_22); -x_29 = l___private_Lean_Elab_Command_3__setState(x_20, x_6, x_21); -if (lean_obj_tag(x_29) == 0) -{ -uint8_t x_30; -x_30 = !lean_is_exclusive(x_29); -if (x_30 == 0) -{ -lean_object* x_31; -x_31 = lean_ctor_get(x_29, 0); -lean_dec(x_31); -lean_ctor_set(x_29, 0, x_16); -return x_29; -} -else -{ -lean_object* x_32; lean_object* x_33; -x_32 = lean_ctor_get(x_29, 1); -lean_inc(x_32); -lean_dec(x_29); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_16); -lean_ctor_set(x_33, 1, x_32); -return x_33; -} -} -else -{ -uint8_t x_34; -lean_dec(x_16); -x_34 = !lean_is_exclusive(x_29); -if (x_34 == 0) -{ -return x_29; -} -else -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_29, 0); -x_36 = lean_ctor_get(x_29, 1); -lean_inc(x_36); -lean_inc(x_35); -lean_dec(x_29); -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; -} -} -} -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_20, 2); -x_39 = lean_ctor_get(x_20, 3); -x_40 = lean_ctor_get(x_20, 4); -lean_inc(x_40); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_20); -x_41 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_41, 0, x_22); -lean_ctor_set(x_41, 1, x_24); -lean_ctor_set(x_41, 2, x_38); -lean_ctor_set(x_41, 3, x_39); -lean_ctor_set(x_41, 4, x_40); -lean_ctor_set(x_41, 5, x_23); -x_42 = l___private_Lean_Elab_Command_3__setState(x_41, x_6, x_21); -if (lean_obj_tag(x_42) == 0) -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_42, 1); -lean_inc(x_43); -if (lean_is_exclusive(x_42)) { - lean_ctor_release(x_42, 0); - lean_ctor_release(x_42, 1); - x_44 = x_42; -} else { - lean_dec_ref(x_42); - x_44 = lean_box(0); -} -if (lean_is_scalar(x_44)) { - x_45 = lean_alloc_ctor(0, 2, 0); -} else { - x_45 = x_44; -} -lean_ctor_set(x_45, 0, x_16); -lean_ctor_set(x_45, 1, x_43); -return x_45; -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -lean_dec(x_16); -x_46 = lean_ctor_get(x_42, 0); -lean_inc(x_46); -x_47 = lean_ctor_get(x_42, 1); -lean_inc(x_47); -if (lean_is_exclusive(x_42)) { - lean_ctor_release(x_42, 0); - lean_ctor_release(x_42, 1); - x_48 = x_42; -} else { - lean_dec_ref(x_42); - x_48 = lean_box(0); -} -if (lean_is_scalar(x_48)) { - x_49 = lean_alloc_ctor(1, 2, 0); -} else { - x_49 = x_48; -} -lean_ctor_set(x_49, 0, x_46); -lean_ctor_set(x_49, 1, x_47); -return x_49; -} -} -} -else -{ -uint8_t x_50; -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_6); -x_50 = !lean_is_exclusive(x_18); -if (x_50 == 0) -{ -return x_18; -} -else -{ -lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_18, 0); -x_52 = lean_ctor_get(x_18, 1); -lean_inc(x_52); +x_51 = lean_ctor_get(x_45, 0); lean_inc(x_51); -lean_dec(x_18); -x_53 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_53, 0, x_51); -lean_ctor_set(x_53, 1, x_52); -return x_53; -} -} -} -else -{ -lean_object* x_54; -x_54 = lean_ctor_get(x_15, 0); +x_52 = lean_ctor_get(x_45, 1); +lean_inc(x_52); +x_53 = lean_ctor_get(x_45, 2); +lean_inc(x_53); +x_54 = lean_ctor_get(x_45, 3); lean_inc(x_54); -if (lean_obj_tag(x_54) == 0) -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_15, 1); +x_55 = lean_ctor_get(x_45, 4); lean_inc(x_55); -lean_dec(x_15); -x_56 = lean_ctor_get(x_54, 0); +x_56 = lean_ctor_get(x_45, 5); lean_inc(x_56); -lean_dec(x_54); -lean_inc(x_6); -x_57 = l___private_Lean_Elab_Command_2__getState(x_6, x_12); -if (lean_obj_tag(x_57) == 0) -{ -lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; -x_58 = lean_ctor_get(x_55, 0); -lean_inc(x_58); -x_59 = lean_ctor_get(x_57, 0); -lean_inc(x_59); -x_60 = lean_ctor_get(x_57, 1); -lean_inc(x_60); -lean_dec(x_57); -x_61 = lean_ctor_get(x_58, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_58, 3); -lean_inc(x_62); -lean_dec(x_58); -x_63 = lean_ctor_get(x_55, 2); -lean_inc(x_63); -lean_dec(x_55); -x_64 = !lean_is_exclusive(x_59); -if (x_64 == 0) -{ -lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_65 = lean_ctor_get(x_59, 5); -lean_dec(x_65); -x_66 = lean_ctor_get(x_59, 1); -lean_dec(x_66); -x_67 = lean_ctor_get(x_59, 0); -lean_dec(x_67); -lean_ctor_set(x_59, 5, x_62); -lean_ctor_set(x_59, 1, x_63); -lean_ctor_set(x_59, 0, x_61); -x_68 = l___private_Lean_Elab_Command_3__setState(x_59, x_6, x_60); -if (lean_obj_tag(x_68) == 0) -{ -uint8_t x_69; -x_69 = !lean_is_exclusive(x_68); -if (x_69 == 0) -{ -lean_object* x_70; -x_70 = lean_ctor_get(x_68, 0); -lean_dec(x_70); -lean_ctor_set_tag(x_68, 1); -lean_ctor_set(x_68, 0, x_56); -return x_68; +if (lean_is_exclusive(x_45)) { + lean_ctor_release(x_45, 0); + lean_ctor_release(x_45, 1); + lean_ctor_release(x_45, 2); + lean_ctor_release(x_45, 3); + lean_ctor_release(x_45, 4); + lean_ctor_release(x_45, 5); + x_57 = x_45; +} else { + lean_dec_ref(x_45); + x_57 = lean_box(0); } -else -{ -lean_object* x_71; lean_object* x_72; -x_71 = lean_ctor_get(x_68, 1); -lean_inc(x_71); -lean_dec(x_68); -x_72 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_72, 0, x_56); -lean_ctor_set(x_72, 1, x_71); -return x_72; +x_58 = 0; +x_59 = lean_set_reducibility_status(x_51, x_14, x_58); +if (lean_is_scalar(x_57)) { + x_60 = lean_alloc_ctor(0, 6, 0); +} else { + x_60 = x_57; +} +lean_ctor_set(x_60, 0, x_59); +lean_ctor_set(x_60, 1, x_52); +lean_ctor_set(x_60, 2, x_53); +lean_ctor_set(x_60, 3, x_54); +lean_ctor_set(x_60, 4, x_55); +lean_ctor_set(x_60, 5, x_56); +x_61 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_46); +lean_ctor_set(x_61, 2, x_47); +lean_ctor_set(x_61, 3, x_48); +lean_ctor_set(x_61, 4, x_49); +lean_ctor_set(x_61, 5, x_50); +x_2 = x_11; +x_4 = x_61; +goto _start; } } else { -uint8_t x_73; -lean_dec(x_56); -x_73 = !lean_is_exclusive(x_68); -if (x_73 == 0) +uint8_t x_63; +lean_dec(x_14); +lean_dec(x_11); +lean_dec(x_3); +x_63 = !lean_is_exclusive(x_26); +if (x_63 == 0) { -return x_68; +return x_26; } else { -lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_74 = lean_ctor_get(x_68, 0); -x_75 = lean_ctor_get(x_68, 1); -lean_inc(x_75); -lean_inc(x_74); -lean_dec(x_68); +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_26, 0); +x_65 = lean_ctor_get(x_26, 1); +lean_inc(x_65); +lean_inc(x_64); +lean_dec(x_26); +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_67; +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_11); +x_67 = !lean_is_exclusive(x_21); +if (x_67 == 0) +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_68 = lean_ctor_get(x_21, 0); +x_69 = lean_ctor_get(x_21, 1); +lean_inc(x_3); +x_70 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_68); +x_71 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_69, x_18); +lean_ctor_set(x_21, 1, x_71); +lean_ctor_set(x_21, 0, x_70); +return x_21; +} +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_72 = lean_ctor_get(x_21, 0); +x_73 = lean_ctor_get(x_21, 1); +lean_inc(x_73); +lean_inc(x_72); +lean_dec(x_21); +lean_inc(x_3); +x_74 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_72); +x_75 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_73, x_18); x_76 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_76, 0, x_74); lean_ctor_set(x_76, 1, x_75); @@ -9843,155 +10709,670 @@ return x_76; } else { -lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_77 = lean_ctor_get(x_59, 2); -x_78 = lean_ctor_get(x_59, 3); -x_79 = lean_ctor_get(x_59, 4); +lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_77 = lean_ctor_get(x_13, 0); +x_78 = lean_ctor_get(x_13, 1); +x_79 = lean_ctor_get(x_13, 2); +x_80 = lean_ctor_get(x_13, 3); +x_81 = lean_ctor_get(x_13, 4); +x_82 = lean_ctor_get(x_13, 5); +lean_inc(x_82); +lean_inc(x_81); +lean_inc(x_80); lean_inc(x_79); lean_inc(x_78); lean_inc(x_77); -lean_dec(x_59); -x_80 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_80, 0, x_61); -lean_ctor_set(x_80, 1, x_63); -lean_ctor_set(x_80, 2, x_77); -lean_ctor_set(x_80, 3, x_78); -lean_ctor_set(x_80, 4, x_79); -lean_ctor_set(x_80, 5, x_62); -x_81 = l___private_Lean_Elab_Command_3__setState(x_80, x_6, x_60); -if (lean_obj_tag(x_81) == 0) +lean_dec(x_13); +x_83 = lean_ctor_get(x_3, 0); +lean_inc(x_83); +x_84 = l_Lean_TraceState_Inhabited___closed__1; +x_85 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_85, 0, x_77); +lean_ctor_set(x_85, 1, x_78); +lean_ctor_set(x_85, 2, x_79); +lean_ctor_set(x_85, 3, x_80); +lean_ctor_set(x_85, 4, x_84); +lean_ctor_set(x_85, 5, x_82); +x_86 = l_Lean_Meta_mkId(x_16, x_83, x_85); +if (lean_obj_tag(x_86) == 0) { -lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_82 = lean_ctor_get(x_81, 1); -lean_inc(x_82); -if (lean_is_exclusive(x_81)) { - lean_ctor_release(x_81, 0); - lean_ctor_release(x_81, 1); - x_83 = x_81; -} else { - lean_dec_ref(x_81); - 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_tag(x_84, 1); -} -lean_ctor_set(x_84, 0, x_56); -lean_ctor_set(x_84, 1, x_82); -return x_84; -} -else +lean_object* x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; lean_object* x_91; +x_87 = lean_ctor_get(x_86, 0); +lean_inc(x_87); +x_88 = lean_ctor_get(x_86, 1); +lean_inc(x_88); +lean_dec(x_86); +lean_inc(x_3); +x_89 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_88, x_81); +x_90 = 1; +lean_inc(x_3); +lean_inc(x_14); +x_91 = l_Lean_Elab_Term_mkAuxDefinition(x_14, x_15, x_87, x_90, x_3, x_89); +if (lean_obj_tag(x_91) == 0) { -lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; -lean_dec(x_56); -x_85 = lean_ctor_get(x_81, 0); -lean_inc(x_85); -x_86 = lean_ctor_get(x_81, 1); -lean_inc(x_86); -if (lean_is_exclusive(x_81)) { - lean_ctor_release(x_81, 0); - lean_ctor_release(x_81, 1); - x_87 = x_81; -} else { - lean_dec_ref(x_81); - 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 -{ -uint8_t x_89; -lean_dec(x_56); -lean_dec(x_55); -lean_dec(x_6); -x_89 = !lean_is_exclusive(x_57); -if (x_89 == 0) -{ -return x_57; -} -else -{ -lean_object* x_90; lean_object* x_91; lean_object* x_92; -x_90 = lean_ctor_get(x_57, 0); -x_91 = lean_ctor_get(x_57, 1); -lean_inc(x_91); -lean_inc(x_90); -lean_dec(x_57); -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_93; lean_object* x_94; lean_object* x_95; -lean_dec(x_15); -x_93 = l_Lean_Elab_Command_liftTermElabM___rarg___closed__1; -x_94 = l_unreachable_x21___rarg(x_93); -x_95 = lean_apply_2(x_94, x_6, x_12); -return x_95; -} -} -} -else -{ -uint8_t x_96; -lean_dec(x_9); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_3); -x_96 = !lean_is_exclusive(x_10); -if (x_96 == 0) -{ -return x_10; -} -else -{ -lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_97 = lean_ctor_get(x_10, 0); -x_98 = lean_ctor_get(x_10, 1); -lean_inc(x_98); +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; uint8_t x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; +x_92 = lean_ctor_get(x_91, 1); +lean_inc(x_92); +lean_dec(x_91); +x_93 = lean_ctor_get(x_92, 0); +lean_inc(x_93); +x_94 = lean_ctor_get(x_92, 1); +lean_inc(x_94); +x_95 = lean_ctor_get(x_92, 2); +lean_inc(x_95); +x_96 = lean_ctor_get(x_92, 3); +lean_inc(x_96); +x_97 = lean_ctor_get(x_92, 4); lean_inc(x_97); +x_98 = lean_ctor_get(x_92, 5); +lean_inc(x_98); +if (lean_is_exclusive(x_92)) { + lean_ctor_release(x_92, 0); + lean_ctor_release(x_92, 1); + lean_ctor_release(x_92, 2); + lean_ctor_release(x_92, 3); + lean_ctor_release(x_92, 4); + lean_ctor_release(x_92, 5); + x_99 = x_92; +} else { + lean_dec_ref(x_92); + x_99 = lean_box(0); +} +x_100 = lean_ctor_get(x_93, 0); +lean_inc(x_100); +x_101 = lean_ctor_get(x_93, 1); +lean_inc(x_101); +x_102 = lean_ctor_get(x_93, 2); +lean_inc(x_102); +x_103 = lean_ctor_get(x_93, 3); +lean_inc(x_103); +x_104 = lean_ctor_get(x_93, 4); +lean_inc(x_104); +x_105 = lean_ctor_get(x_93, 5); +lean_inc(x_105); +if (lean_is_exclusive(x_93)) { + lean_ctor_release(x_93, 0); + lean_ctor_release(x_93, 1); + lean_ctor_release(x_93, 2); + lean_ctor_release(x_93, 3); + lean_ctor_release(x_93, 4); + lean_ctor_release(x_93, 5); + x_106 = x_93; +} else { + lean_dec_ref(x_93); + x_106 = lean_box(0); +} +x_107 = 0; +x_108 = lean_set_reducibility_status(x_100, x_14, x_107); +if (lean_is_scalar(x_106)) { + x_109 = lean_alloc_ctor(0, 6, 0); +} else { + x_109 = x_106; +} +lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 1, x_101); +lean_ctor_set(x_109, 2, x_102); +lean_ctor_set(x_109, 3, x_103); +lean_ctor_set(x_109, 4, x_104); +lean_ctor_set(x_109, 5, x_105); +if (lean_is_scalar(x_99)) { + x_110 = lean_alloc_ctor(0, 6, 0); +} else { + x_110 = x_99; +} +lean_ctor_set(x_110, 0, x_109); +lean_ctor_set(x_110, 1, x_94); +lean_ctor_set(x_110, 2, x_95); +lean_ctor_set(x_110, 3, x_96); +lean_ctor_set(x_110, 4, x_97); +lean_ctor_set(x_110, 5, x_98); +x_2 = x_11; +x_4 = x_110; +goto _start; +} +else +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; +lean_dec(x_14); +lean_dec(x_11); +lean_dec(x_3); +x_112 = lean_ctor_get(x_91, 0); +lean_inc(x_112); +x_113 = lean_ctor_get(x_91, 1); +lean_inc(x_113); +if (lean_is_exclusive(x_91)) { + lean_ctor_release(x_91, 0); + lean_ctor_release(x_91, 1); + x_114 = x_91; +} else { + lean_dec_ref(x_91); + x_114 = lean_box(0); +} +if (lean_is_scalar(x_114)) { + x_115 = lean_alloc_ctor(1, 2, 0); +} else { + x_115 = x_114; +} +lean_ctor_set(x_115, 0, x_112); +lean_ctor_set(x_115, 1, x_113); +return x_115; +} +} +else +{ +lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_11); +x_116 = lean_ctor_get(x_86, 0); +lean_inc(x_116); +x_117 = lean_ctor_get(x_86, 1); +lean_inc(x_117); +if (lean_is_exclusive(x_86)) { + lean_ctor_release(x_86, 0); + lean_ctor_release(x_86, 1); + x_118 = x_86; +} else { + lean_dec_ref(x_86); + x_118 = lean_box(0); +} +lean_inc(x_3); +x_119 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_116); +x_120 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_117, x_81); +if (lean_is_scalar(x_118)) { + x_121 = lean_alloc_ctor(1, 2, 0); +} else { + x_121 = x_118; +} +lean_ctor_set(x_121, 0, x_119); +lean_ctor_set(x_121, 1, x_120); +return x_121; +} +} +} +} +} +lean_object* l___private_Lean_Elab_Structure_29__addDefaults___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_5 = l_Lean_Elab_Term_setMCtx(x_1, x_3, x_4); +x_6 = lean_ctor_get(x_5, 1); +lean_inc(x_6); +lean_dec(x_5); +x_7 = lean_unsigned_to_nat(0u); +x_8 = l_Array_forMAux___main___at___private_Lean_Elab_Structure_29__addDefaults___spec__1(x_2, x_7, x_3, x_6); +return x_8; +} +} +lean_object* l___private_Lean_Elab_Structure_29__addDefaults___rarg(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_box(0); +x_8 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_29__addDefaults___rarg___lambda__1___boxed), 4, 2); +lean_closure_set(x_8, 0, x_1); +lean_closure_set(x_8, 1, x_4); +lean_inc(x_5); +x_9 = l___private_Lean_Elab_Command_2__getState(x_5, x_6); +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; +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec(x_9); +x_12 = l___private_Lean_Elab_Command_6__mkTermContext(x_5, x_10, x_7); +x_13 = l___private_Lean_Elab_Command_7__mkTermState(x_10); lean_dec(x_10); -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; -} -} -} -} -lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Structure_29__addDefaults___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: +x_14 = l_Lean_Elab_Term_withLocalContext___rarg(x_2, x_3, x_8, x_12, x_13); +if (lean_obj_tag(x_14) == 0) { -lean_object* x_6; -x_6 = l_Array_forMAux___main___at___private_Lean_Elab_Structure_29__addDefaults___spec__1(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_2); -lean_dec(x_1); -return x_6; -} -} -lean_object* l___private_Lean_Elab_Structure_29__addDefaults___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: +lean_object* x_15; lean_object* x_16; lean_object* x_17; +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); +lean_inc(x_5); +x_17 = l___private_Lean_Elab_Command_2__getState(x_5, x_11); +if (lean_obj_tag(x_17) == 0) { -lean_object* x_6; -x_6 = l___private_Lean_Elab_Structure_29__addDefaults___lambda__1(x_1, x_2, x_3, x_4, x_5); +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; +x_18 = lean_ctor_get(x_16, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_17, 1); +lean_inc(x_20); +lean_dec(x_17); +x_21 = lean_ctor_get(x_18, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_18, 3); +lean_inc(x_22); +lean_dec(x_18); +x_23 = lean_ctor_get(x_16, 2); +lean_inc(x_23); +lean_dec(x_16); +x_24 = !lean_is_exclusive(x_19); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_25 = lean_ctor_get(x_19, 5); +lean_dec(x_25); +x_26 = lean_ctor_get(x_19, 1); +lean_dec(x_26); +x_27 = lean_ctor_get(x_19, 0); +lean_dec(x_27); +lean_ctor_set(x_19, 5, x_22); +lean_ctor_set(x_19, 1, x_23); +lean_ctor_set(x_19, 0, x_21); +x_28 = l___private_Lean_Elab_Command_3__setState(x_19, x_5, x_20); +if (lean_obj_tag(x_28) == 0) +{ +uint8_t x_29; +x_29 = !lean_is_exclusive(x_28); +if (x_29 == 0) +{ +lean_object* x_30; +x_30 = lean_ctor_get(x_28, 0); +lean_dec(x_30); +lean_ctor_set(x_28, 0, x_15); +return x_28; +} +else +{ +lean_object* x_31; lean_object* x_32; +x_31 = lean_ctor_get(x_28, 1); +lean_inc(x_31); +lean_dec(x_28); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_15); +lean_ctor_set(x_32, 1, x_31); +return x_32; +} +} +else +{ +uint8_t x_33; +lean_dec(x_15); +x_33 = !lean_is_exclusive(x_28); +if (x_33 == 0) +{ +return x_28; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_28, 0); +x_35 = lean_ctor_get(x_28, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_28); +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; +} +} +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_37 = lean_ctor_get(x_19, 2); +x_38 = lean_ctor_get(x_19, 3); +x_39 = lean_ctor_get(x_19, 4); +lean_inc(x_39); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_19); +x_40 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_40, 0, x_21); +lean_ctor_set(x_40, 1, x_23); +lean_ctor_set(x_40, 2, x_37); +lean_ctor_set(x_40, 3, x_38); +lean_ctor_set(x_40, 4, x_39); +lean_ctor_set(x_40, 5, x_22); +x_41 = l___private_Lean_Elab_Command_3__setState(x_40, x_5, x_20); +if (lean_obj_tag(x_41) == 0) +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +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(0, 2, 0); +} else { + x_44 = x_43; +} +lean_ctor_set(x_44, 0, x_15); +lean_ctor_set(x_44, 1, x_42); +return x_44; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +lean_dec(x_15); +x_45 = lean_ctor_get(x_41, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_41, 1); +lean_inc(x_46); +if (lean_is_exclusive(x_41)) { + lean_ctor_release(x_41, 0); + lean_ctor_release(x_41, 1); + x_47 = x_41; +} else { + lean_dec_ref(x_41); + x_47 = lean_box(0); +} +if (lean_is_scalar(x_47)) { + x_48 = lean_alloc_ctor(1, 2, 0); +} else { + x_48 = x_47; +} +lean_ctor_set(x_48, 0, x_45); +lean_ctor_set(x_48, 1, x_46); +return x_48; +} +} +} +else +{ +uint8_t x_49; +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_5); +x_49 = !lean_is_exclusive(x_17); +if (x_49 == 0) +{ +return x_17; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_17, 0); +x_51 = lean_ctor_get(x_17, 1); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_17); +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +return x_52; +} +} +} +else +{ +lean_object* x_53; +x_53 = lean_ctor_get(x_14, 0); +lean_inc(x_53); +if (lean_obj_tag(x_53) == 0) +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_14, 1); +lean_inc(x_54); +lean_dec(x_14); +x_55 = lean_ctor_get(x_53, 0); +lean_inc(x_55); +lean_dec(x_53); +lean_inc(x_5); +x_56 = l___private_Lean_Elab_Command_2__getState(x_5, x_11); +if (lean_obj_tag(x_56) == 0) +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; +x_57 = lean_ctor_get(x_54, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_56, 0); +lean_inc(x_58); +x_59 = lean_ctor_get(x_56, 1); +lean_inc(x_59); +lean_dec(x_56); +x_60 = lean_ctor_get(x_57, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_57, 3); +lean_inc(x_61); +lean_dec(x_57); +x_62 = lean_ctor_get(x_54, 2); +lean_inc(x_62); +lean_dec(x_54); +x_63 = !lean_is_exclusive(x_58); +if (x_63 == 0) +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_64 = lean_ctor_get(x_58, 5); +lean_dec(x_64); +x_65 = lean_ctor_get(x_58, 1); +lean_dec(x_65); +x_66 = lean_ctor_get(x_58, 0); +lean_dec(x_66); +lean_ctor_set(x_58, 5, x_61); +lean_ctor_set(x_58, 1, x_62); +lean_ctor_set(x_58, 0, x_60); +x_67 = l___private_Lean_Elab_Command_3__setState(x_58, x_5, x_59); +if (lean_obj_tag(x_67) == 0) +{ +uint8_t x_68; +x_68 = !lean_is_exclusive(x_67); +if (x_68 == 0) +{ +lean_object* x_69; +x_69 = lean_ctor_get(x_67, 0); +lean_dec(x_69); +lean_ctor_set_tag(x_67, 1); +lean_ctor_set(x_67, 0, x_55); +return x_67; +} +else +{ +lean_object* x_70; lean_object* x_71; +x_70 = lean_ctor_get(x_67, 1); +lean_inc(x_70); +lean_dec(x_67); +x_71 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_71, 0, x_55); +lean_ctor_set(x_71, 1, x_70); +return x_71; +} +} +else +{ +uint8_t x_72; +lean_dec(x_55); +x_72 = !lean_is_exclusive(x_67); +if (x_72 == 0) +{ +return x_67; +} +else +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_67, 0); +x_74 = lean_ctor_get(x_67, 1); +lean_inc(x_74); +lean_inc(x_73); +lean_dec(x_67); +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; lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_76 = lean_ctor_get(x_58, 2); +x_77 = lean_ctor_get(x_58, 3); +x_78 = lean_ctor_get(x_58, 4); +lean_inc(x_78); +lean_inc(x_77); +lean_inc(x_76); +lean_dec(x_58); +x_79 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_79, 0, x_60); +lean_ctor_set(x_79, 1, x_62); +lean_ctor_set(x_79, 2, x_76); +lean_ctor_set(x_79, 3, x_77); +lean_ctor_set(x_79, 4, x_78); +lean_ctor_set(x_79, 5, x_61); +x_80 = l___private_Lean_Elab_Command_3__setState(x_79, x_5, x_59); +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, 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); +} +if (lean_is_scalar(x_82)) { + x_83 = lean_alloc_ctor(1, 2, 0); +} else { + x_83 = x_82; + lean_ctor_set_tag(x_83, 1); +} +lean_ctor_set(x_83, 0, x_55); +lean_ctor_set(x_83, 1, x_81); +return x_83; +} +else +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; +lean_dec(x_55); +x_84 = lean_ctor_get(x_80, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_80, 1); +lean_inc(x_85); +if (lean_is_exclusive(x_80)) { + lean_ctor_release(x_80, 0); + lean_ctor_release(x_80, 1); + x_86 = x_80; +} else { + lean_dec_ref(x_80); + x_86 = lean_box(0); +} +if (lean_is_scalar(x_86)) { + x_87 = lean_alloc_ctor(1, 2, 0); +} else { + x_87 = x_86; +} +lean_ctor_set(x_87, 0, x_84); +lean_ctor_set(x_87, 1, x_85); +return x_87; +} +} +} +else +{ +uint8_t x_88; +lean_dec(x_55); +lean_dec(x_54); +lean_dec(x_5); +x_88 = !lean_is_exclusive(x_56); +if (x_88 == 0) +{ +return x_56; +} +else +{ +lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_89 = lean_ctor_get(x_56, 0); +x_90 = lean_ctor_get(x_56, 1); +lean_inc(x_90); +lean_inc(x_89); +lean_dec(x_56); +x_91 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_91, 0, x_89); +lean_ctor_set(x_91, 1, x_90); +return x_91; +} +} +} +else +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; +lean_dec(x_14); +x_92 = l_Lean_Elab_Command_liftTermElabM___rarg___closed__1; +x_93 = l_unreachable_x21___rarg(x_92); +x_94 = lean_apply_2(x_93, x_5, x_11); +return x_94; +} +} +} +else +{ +uint8_t x_95; +lean_dec(x_8); +lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -return x_6; +x_95 = !lean_is_exclusive(x_9); +if (x_95 == 0) +{ +return x_9; +} +else +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_96 = lean_ctor_get(x_9, 0); +x_97 = lean_ctor_get(x_9, 1); +lean_inc(x_97); +lean_inc(x_96); +lean_dec(x_9); +x_98 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_98, 0, x_96); +lean_ctor_set(x_98, 1, x_97); +return x_98; +} +} +} +} +lean_object* l___private_Lean_Elab_Structure_29__addDefaults(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_29__addDefaults___rarg), 6, 0); +return x_2; +} +} +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Structure_29__addDefaults___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Array_forMAux___main___at___private_Lean_Elab_Structure_29__addDefaults___spec__1(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} +lean_object* l___private_Lean_Elab_Structure_29__addDefaults___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l___private_Lean_Elab_Structure_29__addDefaults___rarg___lambda__1(x_1, x_2, x_3, x_4); +lean_dec(x_2); +return x_5; +} +} +lean_object* l___private_Lean_Elab_Structure_29__addDefaults___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l___private_Lean_Elab_Structure_29__addDefaults(x_1); +lean_dec(x_1); +return x_2; } } lean_object* l_List_forM___main___at_Lean_Elab_Command_elabStructure___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { @@ -10251,7 +11632,6 @@ lean_dec(x_13); lean_dec(x_10); lean_dec(x_4); lean_dec(x_2); -lean_dec(x_1); x_106 = !lean_is_exclusive(x_104); if (x_106 == 0) { @@ -10309,7 +11689,6 @@ lean_dec(x_13); lean_dec(x_10); lean_dec(x_4); lean_dec(x_2); -lean_dec(x_1); x_116 = lean_ctor_get(x_114, 0); lean_inc(x_116); x_117 = lean_ctor_get(x_114, 1); @@ -10342,7 +11721,6 @@ lean_dec(x_13); lean_dec(x_10); lean_dec(x_4); lean_dec(x_2); -lean_dec(x_1); x_120 = !lean_is_exclusive(x_93); if (x_120 == 0) { @@ -10374,7 +11752,6 @@ lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_dec(x_13); lean_dec(x_4); lean_dec(x_2); -lean_dec(x_1); x_125 = lean_ctor_get(x_90, 1); lean_inc(x_125); lean_dec(x_90); @@ -10585,7 +11962,6 @@ lean_dec(x_13); lean_dec(x_10); lean_dec(x_4); lean_dec(x_2); -lean_dec(x_1); x_168 = !lean_is_exclusive(x_165); if (x_168 == 0) { @@ -10618,7 +11994,6 @@ lean_dec(x_13); lean_dec(x_10); lean_dec(x_4); lean_dec(x_2); -lean_dec(x_1); x_172 = !lean_is_exclusive(x_85); if (x_172 == 0) { @@ -10648,7 +12023,6 @@ lean_dec(x_13); lean_dec(x_10); lean_dec(x_4); lean_dec(x_2); -lean_dec(x_1); x_176 = !lean_is_exclusive(x_81); if (x_176 == 0) { @@ -10682,7 +12056,6 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -lean_dec(x_1); x_180 = !lean_is_exclusive(x_75); if (x_180 == 0) { @@ -10715,7 +12088,6 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -lean_dec(x_1); x_184 = !lean_is_exclusive(x_72); if (x_184 == 0) { @@ -10747,7 +12119,6 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -lean_dec(x_1); x_188 = !lean_is_exclusive(x_69); if (x_188 == 0) { @@ -10789,7 +12160,7 @@ x_24 = lean_ctor_get(x_15, 6); lean_inc(x_24); lean_dec(x_15); lean_inc(x_10); -x_25 = l_Lean_Elab_Command_addDecl(x_1, x_17, x_10, x_16); +x_25 = l_Lean_Elab_Command_addDecl(x_17, x_10, x_16); lean_dec(x_17); if (lean_obj_tag(x_25) == 0) { @@ -10834,7 +12205,7 @@ lean_object* x_36; lean_object* x_37; x_36 = lean_ctor_get(x_35, 1); lean_inc(x_36); lean_dec(x_35); -x_37 = l___private_Lean_Elab_Structure_29__addDefaults(x_1, x_21, x_22, x_23, x_24, x_10, x_36); +x_37 = l___private_Lean_Elab_Structure_29__addDefaults___rarg(x_21, x_22, x_23, x_24, x_10, x_36); if (lean_obj_tag(x_37) == 0) { uint8_t x_38; @@ -10892,7 +12263,6 @@ lean_dec(x_23); lean_dec(x_22); lean_dec(x_21); lean_dec(x_10); -lean_dec(x_1); x_48 = !lean_is_exclusive(x_35); if (x_48 == 0) { @@ -10923,7 +12293,6 @@ lean_dec(x_21); lean_dec(x_20); lean_dec(x_10); lean_dec(x_4); -lean_dec(x_1); x_52 = !lean_is_exclusive(x_33); if (x_52 == 0) { @@ -10956,7 +12325,6 @@ lean_dec(x_19); lean_dec(x_13); lean_dec(x_10); lean_dec(x_4); -lean_dec(x_1); x_56 = !lean_is_exclusive(x_29); if (x_56 == 0) { @@ -10989,7 +12357,6 @@ lean_dec(x_19); lean_dec(x_13); lean_dec(x_10); lean_dec(x_4); -lean_dec(x_1); x_60 = !lean_is_exclusive(x_27); if (x_60 == 0) { @@ -11023,7 +12390,6 @@ lean_dec(x_18); lean_dec(x_13); lean_dec(x_10); lean_dec(x_4); -lean_dec(x_1); x_64 = !lean_is_exclusive(x_25); if (x_64 == 0) { @@ -11055,7 +12421,6 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -lean_dec(x_1); x_192 = !lean_is_exclusive(x_12); if (x_192 == 0) { @@ -11482,6 +12847,7 @@ uint8_t x_12; lean_object* x_13; x_12 = lean_unbox(x_3); lean_dec(x_3); x_13 = l_Lean_Elab_Command_elabStructure___lambda__3(x_1, x_2, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_1); return x_13; } } diff --git a/stage0/stdlib/Lean/Elab/Syntax.c b/stage0/stdlib/Lean/Elab/Syntax.c index 5679ca5b6e..c94bb9a5d2 100644 --- a/stage0/stdlib/Lean/Elab/Syntax.c +++ b/stage0/stdlib/Lean/Elab/Syntax.c @@ -26,6 +26,7 @@ lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__6; lean_object* l_Lean_Elab_Command_elabNoKindMacroRulesAux(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__29; lean_object* l_Lean_Elab_Command_elabMacroRules___lambda__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_throwErrorAt___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__79; lean_object* l___private_Lean_Elab_Syntax_7__elabKind(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_andthen___elambda__1___closed__1; @@ -104,7 +105,7 @@ lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__23; lean_object* l_Lean_Elab_Command_elabSyntax___closed__7; lean_object* l_Lean_Elab_Command_expandMacroArgIntoPattern(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_withExpectedType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_withExpectedType(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Syntax_orelse___elambda__1___closed__1; lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__30; lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__101; @@ -347,7 +348,7 @@ lean_object* lean_name_mk_string(lean_object*, lean_object*); extern lean_object* l_Lean_choiceKind; lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__4; lean_object* l_Lean_Elab_Command_elabNoKindMacroRulesAux___closed__1; -lean_object* l_Lean_Elab_Term_throwError___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_throwError___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__33; extern lean_object* l_Lean_Parser_maxPrec; lean_object* l_Lean_Elab_Command_elabSyntax___closed__22; @@ -358,7 +359,6 @@ lean_object* l___regBuiltin_Lean_Elab_Command_expandMacro(lean_object*); lean_object* l_Lean_Elab_Command_elabNoKindMacroRulesAux___closed__2; lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_toParserDescrAux___main___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Command_elab___elambda__1___closed__2; -lean_object* l_Lean_Elab_Command_withExpectedType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getCurrMacroScope(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__63; lean_object* l_Lean_Elab_Term_checkLeftRec___closed__2; @@ -1407,7 +1407,7 @@ lean_object* x_71; lean_object* x_72; uint8_t x_73; lean_dec(x_22); lean_dec(x_1); x_71 = l_Lean_Elab_Term_checkLeftRec___closed__9; -x_72 = l_Lean_Elab_Term_throwError___rarg(x_31, x_71, x_4, x_5); +x_72 = l_Lean_Elab_Term_throwErrorAt___rarg(x_31, x_71, x_4, x_5); lean_dec(x_31); x_73 = !lean_is_exclusive(x_72); if (x_73 == 0) @@ -1460,7 +1460,7 @@ x_44 = l_Lean_Elab_Term_checkLeftRec___closed__6; x_45 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_45, 0, x_43); lean_ctor_set(x_45, 1, x_44); -x_46 = l_Lean_Elab_Term_throwError___rarg(x_40, x_45, x_4, x_38); +x_46 = l_Lean_Elab_Term_throwErrorAt___rarg(x_40, x_45, x_4, x_38); lean_dec(x_40); x_47 = !lean_is_exclusive(x_46); if (x_47 == 0) @@ -3770,7 +3770,7 @@ x_42 = l_Lean_Elab_Term_toParserDescrAux___main___closed__3; x_43 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_43, 0, x_42); lean_ctor_set(x_43, 1, x_41); -x_44 = l_Lean_Elab_Term_throwError___rarg(x_1, x_43, x_4, x_5); +x_44 = l_Lean_Elab_Term_throwErrorAt___rarg(x_1, x_43, x_4, x_5); lean_dec(x_1); x_45 = !lean_is_exclusive(x_44); if (x_45 == 0) @@ -7491,7 +7491,7 @@ else lean_object* x_1717; lean_object* x_1718; uint8_t x_1719; lean_dec(x_1498); x_1717 = l_Lean_Elab_Term_toParserDescrAux___main___closed__136; -x_1718 = l_Lean_Elab_Term_throwError___rarg(x_1, x_1717, x_4, x_5); +x_1718 = l_Lean_Elab_Term_throwErrorAt___rarg(x_1, x_1717, x_4, x_5); lean_dec(x_1); x_1719 = !lean_is_exclusive(x_1718); if (x_1719 == 0) @@ -7558,7 +7558,7 @@ x_1589 = l_Lean_Elab_Term_toParserDescrAux___main___closed__120; x_1590 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_1590, 0, x_1588); lean_ctor_set(x_1590, 1, x_1589); -x_1591 = l_Lean_Elab_Term_throwError___rarg(x_1585, x_1590, x_4, x_1580); +x_1591 = l_Lean_Elab_Term_throwErrorAt___rarg(x_1585, x_1590, x_4, x_1580); lean_dec(x_1585); x_1592 = !lean_is_exclusive(x_1591); if (x_1592 == 0) @@ -7624,7 +7624,7 @@ x_1703 = l_Lean_Elab_Term_toParserDescrAux___main___closed__133; x_1704 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_1704, 0, x_1703); lean_ctor_set(x_1704, 1, x_1702); -x_1705 = l_Lean_Elab_Term_throwError___rarg(x_1699, x_1704, x_4, x_1580); +x_1705 = l_Lean_Elab_Term_throwErrorAt___rarg(x_1699, x_1704, x_4, x_1580); lean_dec(x_1699); x_1706 = !lean_is_exclusive(x_1705); if (x_1706 == 0) @@ -7673,7 +7673,7 @@ x_1679 = lean_unsigned_to_nat(3u); x_1680 = l_Lean_Syntax_getArg(x_1, x_1679); lean_dec(x_1); x_1681 = l_Lean_Elab_Term_toParserDescrAux___main___closed__130; -x_1682 = l_Lean_Elab_Term_throwError___rarg(x_1680, x_1681, x_4, x_1580); +x_1682 = l_Lean_Elab_Term_throwErrorAt___rarg(x_1680, x_1681, x_4, x_1580); lean_dec(x_1680); x_1683 = !lean_is_exclusive(x_1682); if (x_1683 == 0) @@ -8438,7 +8438,7 @@ lean_dec(x_1780); lean_dec(x_1774); lean_dec(x_2); x_1815 = l_Lean_Elab_Term_toParserDescrAux___main___closed__136; -x_1816 = l_Lean_Elab_Term_throwError___rarg(x_1, x_1815, x_4, x_1773); +x_1816 = l_Lean_Elab_Term_throwErrorAt___rarg(x_1, x_1815, x_4, x_1773); lean_dec(x_1); x_1817 = !lean_is_exclusive(x_1816); if (x_1817 == 0) @@ -17788,73 +17788,64 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Lean_Elab_Command_withExpectedType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_Elab_Command_withExpectedType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_6; -x_6 = l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(x_2, x_4, x_5); -if (lean_obj_tag(x_6) == 0) +lean_object* x_5; +x_5 = l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(x_1, x_3, x_4); +if (lean_obj_tag(x_5) == 0) { -if (lean_obj_tag(x_2) == 0) +if (lean_obj_tag(x_1) == 0) { -lean_object* x_7; lean_object* x_8; lean_object* x_9; -lean_dec(x_3); -x_7 = lean_ctor_get(x_6, 1); -lean_inc(x_7); -lean_dec(x_6); -x_8 = l_Lean_Elab_Command_withExpectedType___closed__3; -x_9 = l_Lean_Elab_Term_throwError___rarg(x_1, x_8, x_4, x_7); -return x_9; +lean_object* x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_2); +x_6 = lean_ctor_get(x_5, 1); +lean_inc(x_6); +lean_dec(x_5); +x_7 = l_Lean_Elab_Command_withExpectedType___closed__3; +x_8 = l_Lean_Elab_Term_throwError___rarg(x_7, x_3, x_6); +return x_8; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_10 = lean_ctor_get(x_6, 1); +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_ctor_get(x_5, 1); +lean_inc(x_9); +lean_dec(x_5); +x_10 = lean_ctor_get(x_1, 0); lean_inc(x_10); -lean_dec(x_6); -x_11 = lean_ctor_get(x_2, 0); -lean_inc(x_11); -lean_dec(x_2); -x_12 = lean_apply_3(x_3, x_11, x_4, x_10); -return x_12; +lean_dec(x_1); +x_11 = lean_apply_3(x_2, x_10, x_3, x_9); +return x_11; } } else { -uint8_t x_13; -lean_dec(x_4); +uint8_t x_12; lean_dec(x_3); lean_dec(x_2); -x_13 = !lean_is_exclusive(x_6); -if (x_13 == 0) +lean_dec(x_1); +x_12 = !lean_is_exclusive(x_5); +if (x_12 == 0) { -return x_6; +return x_5; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_6, 0); -x_15 = lean_ctor_get(x_6, 1); -lean_inc(x_15); +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_5, 0); +x_14 = lean_ctor_get(x_5, 1); lean_inc(x_14); -lean_dec(x_6); -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; +lean_inc(x_13); +lean_dec(x_5); +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_13); +lean_ctor_set(x_15, 1, x_14); +return x_15; } } } } -lean_object* l_Lean_Elab_Command_withExpectedType___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_Lean_Elab_Command_withExpectedType(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_1); -return x_6; -} -} lean_object* _init_l_Lean_Elab_Command_expandElab___closed__1() { _start: { @@ -19406,7 +19397,7 @@ return x_519; } else { -lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; lean_object* x_653; lean_object* x_654; lean_object* x_655; lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; lean_object* x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; +lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; lean_object* x_653; lean_object* x_654; lean_object* x_655; lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; lean_object* x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; lean_object* x_698; lean_dec(x_18); x_520 = l_Lean_Syntax_getArg(x_15, x_4); lean_dec(x_15); @@ -19579,8 +19570,8 @@ x_617 = lean_array_push(x_616, x_567); x_618 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_618, 0, x_592); lean_ctor_set(x_618, 1, x_617); +lean_inc(x_618); x_619 = lean_array_push(x_611, x_618); -lean_inc(x_619); x_620 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_620, 0, x_525); lean_ctor_set(x_620, 1, x_619); @@ -19625,1242 +19616,1244 @@ x_648 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_648, 0, x_592); lean_ctor_set(x_648, 1, x_647); x_649 = lean_array_push(x_523, x_648); -x_650 = lean_array_push(x_523, x_520); -x_651 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_651, 0, x_525); -lean_ctor_set(x_651, 1, x_650); -x_652 = lean_array_push(x_621, x_651); -x_653 = lean_array_push(x_652, x_623); -x_654 = lean_array_push(x_653, x_17); -x_655 = l_Lean_Parser_Term_fun___elambda__1___closed__2; -x_656 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_656, 0, x_655); -lean_ctor_set(x_656, 1, x_654); -x_657 = lean_array_push(x_619, x_656); -x_658 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_658, 0, x_525); -lean_ctor_set(x_658, 1, x_657); -x_659 = lean_array_push(x_649, x_658); -x_660 = l_Lean_mkAppStx___closed__8; -x_661 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_661, 0, x_660); -lean_ctor_set(x_661, 1, x_659); -x_662 = lean_array_push(x_640, x_661); -x_663 = l_Lean_Parser_Term_matchAlt___closed__2; -x_664 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_664, 0, x_663); -lean_ctor_set(x_664, 1, x_662); -x_665 = lean_array_push(x_523, x_664); -x_666 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__5; -x_667 = lean_array_push(x_665, x_666); -x_668 = l_Lean_Elab_Command_expandElab___closed__45; -x_669 = l_Lean_addMacroScope(x_522, x_668, x_521); -x_670 = l_Lean_Elab_Command_expandElab___closed__44; -x_671 = l_Lean_Elab_Command_expandElab___closed__47; -x_672 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_672, 0, x_547); -lean_ctor_set(x_672, 1, x_670); -lean_ctor_set(x_672, 2, x_669); -lean_ctor_set(x_672, 3, x_671); -x_673 = lean_array_push(x_523, x_672); -x_674 = lean_array_push(x_673, x_567); -x_675 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_675, 0, x_592); -lean_ctor_set(x_675, 1, x_674); -x_676 = l_Lean_Elab_Command_elabMacroRulesAux___closed__19; -x_677 = lean_array_push(x_676, x_675); -x_678 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_678, 0, x_663); -lean_ctor_set(x_678, 1, x_677); -x_679 = lean_array_push(x_667, x_678); -x_680 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_680, 0, x_525); -lean_ctor_set(x_680, 1, x_679); -x_681 = lean_array_push(x_630, x_680); -x_682 = l_Lean_Parser_Term_match__syntax___elambda__1___closed__2; -x_683 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_683, 0, x_682); -lean_ctor_set(x_683, 1, x_681); -x_684 = lean_array_push(x_624, x_683); -x_685 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_685, 0, x_655); -lean_ctor_set(x_685, 1, x_684); -x_686 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__16; -x_687 = lean_array_push(x_686, x_685); -x_688 = l_Lean_Parser_Command_declValSimple___elambda__1___closed__2; -x_689 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_689, 0, x_688); -lean_ctor_set(x_689, 1, x_687); -x_690 = lean_array_push(x_603, x_689); -x_691 = l_Lean_Parser_Command_def___elambda__1___closed__2; -x_692 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_692, 0, x_691); -lean_ctor_set(x_692, 1, x_690); -x_693 = lean_array_push(x_574, x_692); -x_694 = l_Lean_Parser_Command_declaration___elambda__1___closed__2; -x_695 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_695, 0, x_694); -lean_ctor_set(x_695, 1, x_693); -x_696 = lean_array_push(x_543, x_695); -x_697 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_697, 0, x_525); -lean_ctor_set(x_697, 1, x_696); -lean_ctor_set(x_41, 0, x_697); +x_650 = lean_array_push(x_523, x_618); +x_651 = lean_array_push(x_523, x_520); +x_652 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_652, 0, x_525); +lean_ctor_set(x_652, 1, x_651); +x_653 = lean_array_push(x_621, x_652); +x_654 = lean_array_push(x_653, x_623); +x_655 = lean_array_push(x_654, x_17); +x_656 = l_Lean_Parser_Term_fun___elambda__1___closed__2; +x_657 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_657, 0, x_656); +lean_ctor_set(x_657, 1, x_655); +x_658 = lean_array_push(x_650, x_657); +x_659 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_659, 0, x_525); +lean_ctor_set(x_659, 1, x_658); +x_660 = lean_array_push(x_649, x_659); +x_661 = l_Lean_mkAppStx___closed__8; +x_662 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_662, 0, x_661); +lean_ctor_set(x_662, 1, x_660); +x_663 = lean_array_push(x_640, x_662); +x_664 = l_Lean_Parser_Term_matchAlt___closed__2; +x_665 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_665, 0, x_664); +lean_ctor_set(x_665, 1, x_663); +x_666 = lean_array_push(x_523, x_665); +x_667 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__5; +x_668 = lean_array_push(x_666, x_667); +x_669 = l_Lean_Elab_Command_expandElab___closed__45; +x_670 = l_Lean_addMacroScope(x_522, x_669, x_521); +x_671 = l_Lean_Elab_Command_expandElab___closed__44; +x_672 = l_Lean_Elab_Command_expandElab___closed__47; +x_673 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_673, 0, x_547); +lean_ctor_set(x_673, 1, x_671); +lean_ctor_set(x_673, 2, x_670); +lean_ctor_set(x_673, 3, x_672); +x_674 = lean_array_push(x_523, x_673); +x_675 = lean_array_push(x_674, x_567); +x_676 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_676, 0, x_592); +lean_ctor_set(x_676, 1, x_675); +x_677 = l_Lean_Elab_Command_elabMacroRulesAux___closed__19; +x_678 = lean_array_push(x_677, x_676); +x_679 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_679, 0, x_664); +lean_ctor_set(x_679, 1, x_678); +x_680 = lean_array_push(x_668, x_679); +x_681 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_681, 0, x_525); +lean_ctor_set(x_681, 1, x_680); +x_682 = lean_array_push(x_630, x_681); +x_683 = l_Lean_Parser_Term_match__syntax___elambda__1___closed__2; +x_684 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_684, 0, x_683); +lean_ctor_set(x_684, 1, x_682); +x_685 = lean_array_push(x_624, x_684); +x_686 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_686, 0, x_656); +lean_ctor_set(x_686, 1, x_685); +x_687 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__16; +x_688 = lean_array_push(x_687, x_686); +x_689 = l_Lean_Parser_Command_declValSimple___elambda__1___closed__2; +x_690 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_690, 0, x_689); +lean_ctor_set(x_690, 1, x_688); +x_691 = lean_array_push(x_603, x_690); +x_692 = l_Lean_Parser_Command_def___elambda__1___closed__2; +x_693 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_693, 0, x_692); +lean_ctor_set(x_693, 1, x_691); +x_694 = lean_array_push(x_574, x_693); +x_695 = l_Lean_Parser_Command_declaration___elambda__1___closed__2; +x_696 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_696, 0, x_695); +lean_ctor_set(x_696, 1, x_694); +x_697 = lean_array_push(x_543, x_696); +x_698 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_698, 0, x_525); +lean_ctor_set(x_698, 1, x_697); +lean_ctor_set(x_41, 0, x_698); return x_41; } } } else { -lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; uint8_t x_704; -x_698 = lean_ctor_get(x_41, 0); -x_699 = lean_ctor_get(x_41, 1); +lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; uint8_t x_705; +x_699 = lean_ctor_get(x_41, 0); +x_700 = lean_ctor_get(x_41, 1); +lean_inc(x_700); lean_inc(x_699); -lean_inc(x_698); lean_dec(x_41); -x_700 = lean_array_push(x_33, x_37); -x_701 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_698, x_698, x_27, x_700); -lean_dec(x_698); +x_701 = lean_array_push(x_33, x_37); +x_702 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_699, x_699, x_27, x_701); +lean_dec(x_699); lean_inc(x_21); -x_702 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_702, 0, x_21); -lean_ctor_set(x_702, 1, x_701); -x_703 = l_Lean_mkIdentFrom(x_1, x_21); -x_704 = l_Lean_Syntax_hasArgs(x_15); -if (x_704 == 0) +x_703 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_703, 0, x_21); +lean_ctor_set(x_703, 1, x_702); +x_704 = l_Lean_mkIdentFrom(x_1, x_21); +x_705 = l_Lean_Syntax_hasArgs(x_15); +if (x_705 == 0) { -lean_object* x_705; uint8_t x_706; +lean_object* x_706; uint8_t x_707; lean_dec(x_15); -x_705 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___closed__2; -x_706 = lean_name_eq(x_18, x_705); -if (x_706 == 0) +x_706 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___closed__2; +x_707 = lean_name_eq(x_18, x_706); +if (x_707 == 0) { -lean_object* x_707; uint8_t x_708; -x_707 = l_Lean_PrettyPrinter_parenthesizeCommand___closed__2; -x_708 = lean_name_eq(x_18, x_707); -if (x_708 == 0) +lean_object* x_708; uint8_t x_709; +x_708 = l_Lean_PrettyPrinter_parenthesizeCommand___closed__2; +x_709 = lean_name_eq(x_18, x_708); +if (x_709 == 0) { -lean_object* x_709; uint8_t x_710; -x_709 = l_Lean_PrettyPrinter_Parenthesizer_tacticParser_parenthesizer___closed__2; -x_710 = lean_name_eq(x_18, x_709); -if (x_710 == 0) +lean_object* x_710; uint8_t x_711; +x_710 = l_Lean_PrettyPrinter_Parenthesizer_tacticParser_parenthesizer___closed__2; +x_711 = lean_name_eq(x_18, x_710); +if (x_711 == 0) { -lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; +lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; +lean_dec(x_704); lean_dec(x_703); -lean_dec(x_702); lean_dec(x_35); lean_dec(x_17); lean_dec(x_13); lean_dec(x_6); -x_711 = l_Lean_Name_toString___closed__1; -x_712 = l_Lean_Name_toStringWithSep___main(x_711, x_18); -x_713 = l_Lean_Elab_Command_expandElab___closed__1; -x_714 = lean_string_append(x_713, x_712); -lean_dec(x_712); -x_715 = l_Char_HasRepr___closed__1; -x_716 = lean_string_append(x_714, x_715); -x_717 = l_Lean_Macro_throwError___rarg(x_1, x_716, x_2, x_699); +x_712 = l_Lean_Name_toString___closed__1; +x_713 = l_Lean_Name_toStringWithSep___main(x_712, x_18); +x_714 = l_Lean_Elab_Command_expandElab___closed__1; +x_715 = lean_string_append(x_714, x_713); +lean_dec(x_713); +x_716 = l_Char_HasRepr___closed__1; +x_717 = lean_string_append(x_715, x_716); +x_718 = l_Lean_Macro_throwError___rarg(x_1, x_717, x_2, x_700); lean_dec(x_2); -return x_717; +return x_718; } else { -lean_object* x_718; lean_object* x_719; lean_object* x_720; lean_object* x_721; lean_object* x_722; lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_726; lean_object* x_727; lean_object* x_728; lean_object* x_729; lean_object* x_730; lean_object* x_731; lean_object* x_732; lean_object* x_733; lean_object* x_734; lean_object* x_735; lean_object* x_736; lean_object* x_737; lean_object* x_738; lean_object* x_739; lean_object* x_740; lean_object* x_741; lean_object* x_742; lean_object* x_743; lean_object* x_744; lean_object* x_745; lean_object* x_746; lean_object* x_747; lean_object* x_748; lean_object* x_749; lean_object* x_750; lean_object* x_751; lean_object* x_752; lean_object* x_753; lean_object* x_754; lean_object* x_755; lean_object* x_756; lean_object* x_757; lean_object* x_758; lean_object* x_759; lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; lean_object* x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; lean_object* x_768; lean_object* x_769; lean_object* x_770; lean_object* x_771; lean_object* x_772; lean_object* x_773; lean_object* x_774; lean_object* x_775; lean_object* x_776; lean_object* x_777; lean_object* x_778; lean_object* x_779; lean_object* x_780; lean_object* x_781; lean_object* x_782; lean_object* x_783; lean_object* x_784; lean_object* x_785; lean_object* x_786; lean_object* x_787; lean_object* x_788; lean_object* x_789; lean_object* x_790; lean_object* x_791; lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; lean_object* x_796; lean_object* x_797; lean_object* x_798; lean_object* x_799; lean_object* x_800; lean_object* x_801; lean_object* x_802; lean_object* x_803; lean_object* x_804; lean_object* x_805; lean_object* x_806; lean_object* x_807; lean_object* x_808; lean_object* x_809; lean_object* x_810; lean_object* x_811; lean_object* x_812; lean_object* x_813; lean_object* x_814; lean_object* x_815; lean_object* x_816; lean_object* x_817; lean_object* x_818; lean_object* x_819; lean_object* x_820; lean_object* x_821; lean_object* x_822; lean_object* x_823; lean_object* x_824; lean_object* x_825; lean_object* x_826; lean_object* x_827; lean_object* x_828; lean_object* x_829; lean_object* x_830; lean_object* x_831; lean_object* x_832; lean_object* x_833; lean_object* x_834; lean_object* x_835; lean_object* x_836; lean_object* x_837; lean_object* x_838; lean_object* x_839; lean_object* x_840; lean_object* x_841; lean_object* x_842; lean_object* x_843; lean_object* x_844; lean_object* x_845; lean_object* x_846; lean_object* x_847; lean_object* x_848; lean_object* x_849; lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; lean_object* x_854; lean_object* x_855; lean_object* x_856; lean_object* x_857; lean_object* x_858; lean_object* x_859; lean_object* x_860; lean_object* x_861; lean_object* x_862; lean_object* x_863; lean_object* x_864; lean_object* x_865; lean_object* x_866; +lean_object* x_719; lean_object* x_720; lean_object* x_721; lean_object* x_722; lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_726; lean_object* x_727; lean_object* x_728; lean_object* x_729; lean_object* x_730; lean_object* x_731; lean_object* x_732; lean_object* x_733; lean_object* x_734; lean_object* x_735; lean_object* x_736; lean_object* x_737; lean_object* x_738; lean_object* x_739; lean_object* x_740; lean_object* x_741; lean_object* x_742; lean_object* x_743; lean_object* x_744; lean_object* x_745; lean_object* x_746; lean_object* x_747; lean_object* x_748; lean_object* x_749; lean_object* x_750; lean_object* x_751; lean_object* x_752; lean_object* x_753; lean_object* x_754; lean_object* x_755; lean_object* x_756; lean_object* x_757; lean_object* x_758; lean_object* x_759; lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; lean_object* x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; lean_object* x_768; lean_object* x_769; lean_object* x_770; lean_object* x_771; lean_object* x_772; lean_object* x_773; lean_object* x_774; lean_object* x_775; lean_object* x_776; lean_object* x_777; lean_object* x_778; lean_object* x_779; lean_object* x_780; lean_object* x_781; lean_object* x_782; lean_object* x_783; lean_object* x_784; lean_object* x_785; lean_object* x_786; lean_object* x_787; lean_object* x_788; lean_object* x_789; lean_object* x_790; lean_object* x_791; lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; lean_object* x_796; lean_object* x_797; lean_object* x_798; lean_object* x_799; lean_object* x_800; lean_object* x_801; lean_object* x_802; lean_object* x_803; lean_object* x_804; lean_object* x_805; lean_object* x_806; lean_object* x_807; lean_object* x_808; lean_object* x_809; lean_object* x_810; lean_object* x_811; lean_object* x_812; lean_object* x_813; lean_object* x_814; lean_object* x_815; lean_object* x_816; lean_object* x_817; lean_object* x_818; lean_object* x_819; lean_object* x_820; lean_object* x_821; lean_object* x_822; lean_object* x_823; lean_object* x_824; lean_object* x_825; lean_object* x_826; lean_object* x_827; lean_object* x_828; lean_object* x_829; lean_object* x_830; lean_object* x_831; lean_object* x_832; lean_object* x_833; lean_object* x_834; lean_object* x_835; lean_object* x_836; lean_object* x_837; lean_object* x_838; lean_object* x_839; lean_object* x_840; lean_object* x_841; lean_object* x_842; lean_object* x_843; lean_object* x_844; lean_object* x_845; lean_object* x_846; lean_object* x_847; lean_object* x_848; lean_object* x_849; lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; lean_object* x_854; lean_object* x_855; lean_object* x_856; lean_object* x_857; lean_object* x_858; lean_object* x_859; lean_object* x_860; lean_object* x_861; lean_object* x_862; lean_object* x_863; lean_object* x_864; lean_object* x_865; lean_object* x_866; lean_object* x_867; lean_dec(x_18); lean_dec(x_1); -x_718 = lean_ctor_get(x_2, 1); -lean_inc(x_718); -x_719 = lean_ctor_get(x_2, 0); +x_719 = lean_ctor_get(x_2, 1); lean_inc(x_719); +x_720 = lean_ctor_get(x_2, 0); +lean_inc(x_720); lean_dec(x_2); -x_720 = l_Array_empty___closed__1; -x_721 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_6, x_6, x_27, x_720); +x_721 = l_Array_empty___closed__1; +x_722 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_6, x_6, x_27, x_721); lean_dec(x_6); -x_722 = l_Lean_nullKind___closed__2; -x_723 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_723, 0, x_722); -lean_ctor_set(x_723, 1, x_721); -x_724 = l___private_Lean_Elab_Syntax_9__expandNotationAux___closed__2; -x_725 = lean_array_push(x_724, x_723); -x_726 = l_Lean_Elab_Term_expandArrayLit___closed__8; -lean_inc(x_703); -x_727 = lean_array_push(x_726, x_703); -x_728 = l_Lean_Elab_Term_expandArrayLit___closed__9; -x_729 = lean_array_push(x_727, x_728); -x_730 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_730, 0, x_722); -lean_ctor_set(x_730, 1, x_729); -x_731 = lean_array_push(x_725, x_730); -x_732 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_35, x_35, x_27, x_720); +x_723 = l_Lean_nullKind___closed__2; +x_724 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_724, 0, x_723); +lean_ctor_set(x_724, 1, x_722); +x_725 = l___private_Lean_Elab_Syntax_9__expandNotationAux___closed__2; +x_726 = lean_array_push(x_725, x_724); +x_727 = l_Lean_Elab_Term_expandArrayLit___closed__8; +lean_inc(x_704); +x_728 = lean_array_push(x_727, x_704); +x_729 = l_Lean_Elab_Term_expandArrayLit___closed__9; +x_730 = lean_array_push(x_728, x_729); +x_731 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_731, 0, x_723); +lean_ctor_set(x_731, 1, x_730); +x_732 = lean_array_push(x_726, x_731); +x_733 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_35, x_35, x_27, x_721); lean_dec(x_35); -x_733 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_733, 0, x_722); -lean_ctor_set(x_733, 1, x_732); -x_734 = lean_array_push(x_731, x_733); -x_735 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__3; -x_736 = lean_array_push(x_734, x_735); -x_737 = lean_array_push(x_736, x_13); -x_738 = l_Lean_Parser_Command_syntax___elambda__1___closed__1; -x_739 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_739, 0, x_738); -lean_ctor_set(x_739, 1, x_737); -x_740 = lean_array_push(x_720, x_739); -lean_inc(x_718); +x_734 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_734, 0, x_723); +lean_ctor_set(x_734, 1, x_733); +x_735 = lean_array_push(x_732, x_734); +x_736 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__3; +x_737 = lean_array_push(x_735, x_736); +x_738 = lean_array_push(x_737, x_13); +x_739 = l_Lean_Parser_Command_syntax___elambda__1___closed__1; +x_740 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_740, 0, x_739); +lean_ctor_set(x_740, 1, x_738); +x_741 = lean_array_push(x_721, x_740); lean_inc(x_719); -x_741 = l_Lean_addMacroScope(x_719, x_709, x_718); -x_742 = lean_box(0); -x_743 = l_Lean_SourceInfo_inhabited___closed__1; -x_744 = l_Lean_Elab_Command_expandElab___closed__3; -x_745 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_745, 0, x_743); -lean_ctor_set(x_745, 1, x_744); -lean_ctor_set(x_745, 2, x_741); -lean_ctor_set(x_745, 3, x_742); -x_746 = lean_array_push(x_720, x_745); -x_747 = lean_array_push(x_720, x_703); -x_748 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_748, 0, x_722); -lean_ctor_set(x_748, 1, x_747); -x_749 = lean_array_push(x_746, x_748); -x_750 = l_Lean_Parser_Command_attrInstance___elambda__1___closed__2; -x_751 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_751, 0, x_750); -lean_ctor_set(x_751, 1, x_749); -x_752 = lean_array_push(x_720, x_751); -x_753 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_753, 0, x_722); -lean_ctor_set(x_753, 1, x_752); -x_754 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__2; -x_755 = lean_array_push(x_754, x_753); -x_756 = lean_array_push(x_755, x_728); -x_757 = l_Lean_Parser_Command_attributes___elambda__1___closed__2; -x_758 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_758, 0, x_757); -lean_ctor_set(x_758, 1, x_756); -x_759 = lean_array_push(x_720, x_758); -x_760 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_760, 0, x_722); -lean_ctor_set(x_760, 1, x_759); -x_761 = l_Lean_Elab_Term_elabLetDecl___closed__3; -x_762 = lean_array_push(x_761, x_760); -x_763 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__17; -x_764 = lean_array_push(x_762, x_763); -x_765 = lean_array_push(x_764, x_763); -x_766 = lean_array_push(x_765, x_763); -x_767 = lean_array_push(x_766, x_763); -x_768 = l_Lean_Parser_Command_declModifiers___elambda__1___closed__2; -x_769 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_769, 0, x_768); -lean_ctor_set(x_769, 1, x_767); -x_770 = lean_array_push(x_720, x_769); -x_771 = l_Lean_Elab_Command_expandElab___closed__7; -lean_inc(x_718); +lean_inc(x_720); +x_742 = l_Lean_addMacroScope(x_720, x_710, x_719); +x_743 = lean_box(0); +x_744 = l_Lean_SourceInfo_inhabited___closed__1; +x_745 = l_Lean_Elab_Command_expandElab___closed__3; +x_746 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_746, 0, x_744); +lean_ctor_set(x_746, 1, x_745); +lean_ctor_set(x_746, 2, x_742); +lean_ctor_set(x_746, 3, x_743); +x_747 = lean_array_push(x_721, x_746); +x_748 = lean_array_push(x_721, x_704); +x_749 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_749, 0, x_723); +lean_ctor_set(x_749, 1, x_748); +x_750 = lean_array_push(x_747, x_749); +x_751 = l_Lean_Parser_Command_attrInstance___elambda__1___closed__2; +x_752 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_752, 0, x_751); +lean_ctor_set(x_752, 1, x_750); +x_753 = lean_array_push(x_721, x_752); +x_754 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_754, 0, x_723); +lean_ctor_set(x_754, 1, x_753); +x_755 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__2; +x_756 = lean_array_push(x_755, x_754); +x_757 = lean_array_push(x_756, x_729); +x_758 = l_Lean_Parser_Command_attributes___elambda__1___closed__2; +x_759 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_759, 0, x_758); +lean_ctor_set(x_759, 1, x_757); +x_760 = lean_array_push(x_721, x_759); +x_761 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_761, 0, x_723); +lean_ctor_set(x_761, 1, x_760); +x_762 = l_Lean_Elab_Term_elabLetDecl___closed__3; +x_763 = lean_array_push(x_762, x_761); +x_764 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__17; +x_765 = lean_array_push(x_763, x_764); +x_766 = lean_array_push(x_765, x_764); +x_767 = lean_array_push(x_766, x_764); +x_768 = lean_array_push(x_767, x_764); +x_769 = l_Lean_Parser_Command_declModifiers___elambda__1___closed__2; +x_770 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_770, 0, x_769); +lean_ctor_set(x_770, 1, x_768); +x_771 = lean_array_push(x_721, x_770); +x_772 = l_Lean_Elab_Command_expandElab___closed__7; lean_inc(x_719); -x_772 = l_Lean_addMacroScope(x_719, x_771, x_718); -x_773 = l_Lean_Elab_Command_expandElab___closed__6; -x_774 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_774, 0, x_743); -lean_ctor_set(x_774, 1, x_773); -lean_ctor_set(x_774, 2, x_772); -lean_ctor_set(x_774, 3, x_742); -x_775 = lean_array_push(x_720, x_774); -x_776 = lean_array_push(x_775, x_763); -x_777 = l_Lean_Parser_Command_declId___elambda__1___closed__2; -x_778 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_778, 0, x_777); -lean_ctor_set(x_778, 1, x_776); -x_779 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__6; -x_780 = lean_array_push(x_779, x_778); -x_781 = l_Lean_Elab_Tactic_mkTacticAttribute___closed__6; -lean_inc(x_718); +lean_inc(x_720); +x_773 = l_Lean_addMacroScope(x_720, x_772, x_719); +x_774 = l_Lean_Elab_Command_expandElab___closed__6; +x_775 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_775, 0, x_744); +lean_ctor_set(x_775, 1, x_774); +lean_ctor_set(x_775, 2, x_773); +lean_ctor_set(x_775, 3, x_743); +x_776 = lean_array_push(x_721, x_775); +x_777 = lean_array_push(x_776, x_764); +x_778 = l_Lean_Parser_Command_declId___elambda__1___closed__2; +x_779 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_779, 0, x_778); +lean_ctor_set(x_779, 1, x_777); +x_780 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__6; +x_781 = lean_array_push(x_780, x_779); +x_782 = l_Lean_Elab_Tactic_mkTacticAttribute___closed__6; lean_inc(x_719); -x_782 = l_Lean_addMacroScope(x_719, x_781, x_718); -x_783 = l_Lean_Elab_Command_expandElab___closed__10; -x_784 = l_Lean_Elab_Command_expandElab___closed__12; -x_785 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_785, 0, x_743); -lean_ctor_set(x_785, 1, x_783); -lean_ctor_set(x_785, 2, x_782); -lean_ctor_set(x_785, 3, x_784); -x_786 = lean_array_push(x_720, x_785); -x_787 = lean_array_push(x_786, x_763); -x_788 = l_Lean_mkTermIdFromIdent___closed__2; -x_789 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_789, 0, x_788); -lean_ctor_set(x_789, 1, x_787); -x_790 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__4; -x_791 = lean_array_push(x_790, x_789); -x_792 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__2; -x_793 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_793, 0, x_792); -lean_ctor_set(x_793, 1, x_791); -x_794 = lean_array_push(x_720, x_793); -x_795 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_795, 0, x_722); -lean_ctor_set(x_795, 1, x_794); -x_796 = lean_array_push(x_761, x_795); -x_797 = l_Lean_Parser_Command_optDeclSig___elambda__1___closed__2; -x_798 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_798, 0, x_797); -lean_ctor_set(x_798, 1, x_796); -x_799 = lean_array_push(x_780, x_798); -x_800 = l_Lean_Elab_Command_elabMacroRulesAux___closed__15; -lean_inc(x_718); +lean_inc(x_720); +x_783 = l_Lean_addMacroScope(x_720, x_782, x_719); +x_784 = l_Lean_Elab_Command_expandElab___closed__10; +x_785 = l_Lean_Elab_Command_expandElab___closed__12; +x_786 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_786, 0, x_744); +lean_ctor_set(x_786, 1, x_784); +lean_ctor_set(x_786, 2, x_783); +lean_ctor_set(x_786, 3, x_785); +x_787 = lean_array_push(x_721, x_786); +x_788 = lean_array_push(x_787, x_764); +x_789 = l_Lean_mkTermIdFromIdent___closed__2; +x_790 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_790, 0, x_789); +lean_ctor_set(x_790, 1, x_788); +x_791 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__4; +x_792 = lean_array_push(x_791, x_790); +x_793 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__2; +x_794 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_794, 0, x_793); +lean_ctor_set(x_794, 1, x_792); +x_795 = lean_array_push(x_721, x_794); +x_796 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_796, 0, x_723); +lean_ctor_set(x_796, 1, x_795); +x_797 = lean_array_push(x_762, x_796); +x_798 = l_Lean_Parser_Command_optDeclSig___elambda__1___closed__2; +x_799 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_799, 0, x_798); +lean_ctor_set(x_799, 1, x_797); +x_800 = lean_array_push(x_781, x_799); +x_801 = l_Lean_Elab_Command_elabMacroRulesAux___closed__15; lean_inc(x_719); -x_801 = l_Lean_addMacroScope(x_719, x_800, x_718); -x_802 = l_Lean_Elab_Command_elabMacroRulesAux___closed__14; -x_803 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_803, 0, x_743); -lean_ctor_set(x_803, 1, x_802); -lean_ctor_set(x_803, 2, x_801); -lean_ctor_set(x_803, 3, x_742); -x_804 = lean_array_push(x_720, x_803); -x_805 = lean_array_push(x_804, x_763); -x_806 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_806, 0, x_788); -lean_ctor_set(x_806, 1, x_805); -lean_inc(x_806); -x_807 = lean_array_push(x_720, x_806); -x_808 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_808, 0, x_722); -lean_ctor_set(x_808, 1, x_807); -x_809 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; -x_810 = lean_array_push(x_809, x_808); -x_811 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; -x_812 = lean_array_push(x_810, x_811); -x_813 = l_Lean_Elab_Command_elabMacroRulesAux___closed__17; -x_814 = lean_array_push(x_813, x_806); -x_815 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__4; -x_816 = lean_array_push(x_814, x_815); -x_817 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__7; -x_818 = lean_array_push(x_816, x_817); -x_819 = l_Lean_Elab_Command_expandElab___closed__14; -x_820 = lean_array_push(x_819, x_702); -x_821 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__6; -x_822 = lean_array_push(x_820, x_821); -x_823 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; -x_824 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_824, 0, x_823); -lean_ctor_set(x_824, 1, x_822); -x_825 = lean_array_push(x_720, x_824); -x_826 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_826, 0, x_722); -lean_ctor_set(x_826, 1, x_825); -x_827 = lean_array_push(x_720, x_826); -x_828 = lean_array_push(x_827, x_811); -x_829 = lean_array_push(x_828, x_17); -x_830 = l_Lean_Parser_Term_matchAlt___closed__2; -x_831 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_831, 0, x_830); -lean_ctor_set(x_831, 1, x_829); -x_832 = lean_array_push(x_720, x_831); -x_833 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__5; -x_834 = lean_array_push(x_832, x_833); -x_835 = l_Lean_Elab_Command_expandElab___closed__19; -x_836 = l_Lean_addMacroScope(x_719, x_835, x_718); -x_837 = l_Lean_Elab_Command_expandElab___closed__17; -x_838 = l_Lean_Elab_Command_expandElab___closed__21; -x_839 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_839, 0, x_743); -lean_ctor_set(x_839, 1, x_837); -lean_ctor_set(x_839, 2, x_836); -lean_ctor_set(x_839, 3, x_838); -x_840 = lean_array_push(x_720, x_839); -x_841 = lean_array_push(x_840, x_763); -x_842 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_842, 0, x_788); -lean_ctor_set(x_842, 1, x_841); -x_843 = l_Lean_Elab_Command_elabMacroRulesAux___closed__19; -x_844 = lean_array_push(x_843, x_842); -x_845 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_845, 0, x_830); -lean_ctor_set(x_845, 1, x_844); -x_846 = lean_array_push(x_834, x_845); -x_847 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_847, 0, x_722); -lean_ctor_set(x_847, 1, x_846); -x_848 = lean_array_push(x_818, x_847); -x_849 = l_Lean_Parser_Term_match__syntax___elambda__1___closed__2; -x_850 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_850, 0, x_849); -lean_ctor_set(x_850, 1, x_848); -x_851 = lean_array_push(x_812, x_850); -x_852 = l_Lean_Parser_Term_fun___elambda__1___closed__2; -x_853 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_853, 0, x_852); -lean_ctor_set(x_853, 1, x_851); -x_854 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__16; -x_855 = lean_array_push(x_854, x_853); -x_856 = l_Lean_Parser_Command_declValSimple___elambda__1___closed__2; -x_857 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_857, 0, x_856); -lean_ctor_set(x_857, 1, x_855); -x_858 = lean_array_push(x_799, x_857); -x_859 = l_Lean_Parser_Command_def___elambda__1___closed__2; -x_860 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_860, 0, x_859); -lean_ctor_set(x_860, 1, x_858); -x_861 = lean_array_push(x_770, x_860); -x_862 = l_Lean_Parser_Command_declaration___elambda__1___closed__2; -x_863 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_863, 0, x_862); -lean_ctor_set(x_863, 1, x_861); -x_864 = lean_array_push(x_740, x_863); -x_865 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_865, 0, x_722); -lean_ctor_set(x_865, 1, x_864); -x_866 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_866, 0, x_865); -lean_ctor_set(x_866, 1, x_699); -return x_866; +lean_inc(x_720); +x_802 = l_Lean_addMacroScope(x_720, x_801, x_719); +x_803 = l_Lean_Elab_Command_elabMacroRulesAux___closed__14; +x_804 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_804, 0, x_744); +lean_ctor_set(x_804, 1, x_803); +lean_ctor_set(x_804, 2, x_802); +lean_ctor_set(x_804, 3, x_743); +x_805 = lean_array_push(x_721, x_804); +x_806 = lean_array_push(x_805, x_764); +x_807 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_807, 0, x_789); +lean_ctor_set(x_807, 1, x_806); +lean_inc(x_807); +x_808 = lean_array_push(x_721, x_807); +x_809 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_809, 0, x_723); +lean_ctor_set(x_809, 1, x_808); +x_810 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; +x_811 = lean_array_push(x_810, x_809); +x_812 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; +x_813 = lean_array_push(x_811, x_812); +x_814 = l_Lean_Elab_Command_elabMacroRulesAux___closed__17; +x_815 = lean_array_push(x_814, x_807); +x_816 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__4; +x_817 = lean_array_push(x_815, x_816); +x_818 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__7; +x_819 = lean_array_push(x_817, x_818); +x_820 = l_Lean_Elab_Command_expandElab___closed__14; +x_821 = lean_array_push(x_820, x_703); +x_822 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__6; +x_823 = lean_array_push(x_821, x_822); +x_824 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; +x_825 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_825, 0, x_824); +lean_ctor_set(x_825, 1, x_823); +x_826 = lean_array_push(x_721, x_825); +x_827 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_827, 0, x_723); +lean_ctor_set(x_827, 1, x_826); +x_828 = lean_array_push(x_721, x_827); +x_829 = lean_array_push(x_828, x_812); +x_830 = lean_array_push(x_829, x_17); +x_831 = l_Lean_Parser_Term_matchAlt___closed__2; +x_832 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_832, 0, x_831); +lean_ctor_set(x_832, 1, x_830); +x_833 = lean_array_push(x_721, x_832); +x_834 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__5; +x_835 = lean_array_push(x_833, x_834); +x_836 = l_Lean_Elab_Command_expandElab___closed__19; +x_837 = l_Lean_addMacroScope(x_720, x_836, x_719); +x_838 = l_Lean_Elab_Command_expandElab___closed__17; +x_839 = l_Lean_Elab_Command_expandElab___closed__21; +x_840 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_840, 0, x_744); +lean_ctor_set(x_840, 1, x_838); +lean_ctor_set(x_840, 2, x_837); +lean_ctor_set(x_840, 3, x_839); +x_841 = lean_array_push(x_721, x_840); +x_842 = lean_array_push(x_841, x_764); +x_843 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_843, 0, x_789); +lean_ctor_set(x_843, 1, x_842); +x_844 = l_Lean_Elab_Command_elabMacroRulesAux___closed__19; +x_845 = lean_array_push(x_844, x_843); +x_846 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_846, 0, x_831); +lean_ctor_set(x_846, 1, x_845); +x_847 = lean_array_push(x_835, x_846); +x_848 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_848, 0, x_723); +lean_ctor_set(x_848, 1, x_847); +x_849 = lean_array_push(x_819, x_848); +x_850 = l_Lean_Parser_Term_match__syntax___elambda__1___closed__2; +x_851 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_851, 0, x_850); +lean_ctor_set(x_851, 1, x_849); +x_852 = lean_array_push(x_813, x_851); +x_853 = l_Lean_Parser_Term_fun___elambda__1___closed__2; +x_854 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_854, 0, x_853); +lean_ctor_set(x_854, 1, x_852); +x_855 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__16; +x_856 = lean_array_push(x_855, x_854); +x_857 = l_Lean_Parser_Command_declValSimple___elambda__1___closed__2; +x_858 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_858, 0, x_857); +lean_ctor_set(x_858, 1, x_856); +x_859 = lean_array_push(x_800, x_858); +x_860 = l_Lean_Parser_Command_def___elambda__1___closed__2; +x_861 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_861, 0, x_860); +lean_ctor_set(x_861, 1, x_859); +x_862 = lean_array_push(x_771, x_861); +x_863 = l_Lean_Parser_Command_declaration___elambda__1___closed__2; +x_864 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_864, 0, x_863); +lean_ctor_set(x_864, 1, x_862); +x_865 = lean_array_push(x_741, x_864); +x_866 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_866, 0, x_723); +lean_ctor_set(x_866, 1, x_865); +x_867 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_867, 0, x_866); +lean_ctor_set(x_867, 1, x_700); +return x_867; } } else { -lean_object* x_867; lean_object* x_868; lean_object* x_869; lean_object* x_870; lean_object* x_871; lean_object* x_872; lean_object* x_873; lean_object* x_874; lean_object* x_875; lean_object* x_876; lean_object* x_877; lean_object* x_878; lean_object* x_879; lean_object* x_880; lean_object* x_881; lean_object* x_882; lean_object* x_883; lean_object* x_884; lean_object* x_885; lean_object* x_886; lean_object* x_887; lean_object* x_888; lean_object* x_889; lean_object* x_890; lean_object* x_891; lean_object* x_892; lean_object* x_893; lean_object* x_894; lean_object* x_895; lean_object* x_896; lean_object* x_897; lean_object* x_898; lean_object* x_899; lean_object* x_900; lean_object* x_901; lean_object* x_902; lean_object* x_903; lean_object* x_904; lean_object* x_905; lean_object* x_906; lean_object* x_907; lean_object* x_908; lean_object* x_909; lean_object* x_910; lean_object* x_911; lean_object* x_912; lean_object* x_913; lean_object* x_914; lean_object* x_915; lean_object* x_916; lean_object* x_917; lean_object* x_918; lean_object* x_919; lean_object* x_920; lean_object* x_921; lean_object* x_922; lean_object* x_923; lean_object* x_924; lean_object* x_925; lean_object* x_926; lean_object* x_927; lean_object* x_928; lean_object* x_929; lean_object* x_930; lean_object* x_931; lean_object* x_932; lean_object* x_933; lean_object* x_934; lean_object* x_935; lean_object* x_936; lean_object* x_937; lean_object* x_938; lean_object* x_939; lean_object* x_940; lean_object* x_941; lean_object* x_942; lean_object* x_943; lean_object* x_944; lean_object* x_945; lean_object* x_946; lean_object* x_947; lean_object* x_948; lean_object* x_949; lean_object* x_950; lean_object* x_951; lean_object* x_952; lean_object* x_953; lean_object* x_954; lean_object* x_955; lean_object* x_956; lean_object* x_957; lean_object* x_958; lean_object* x_959; lean_object* x_960; lean_object* x_961; lean_object* x_962; lean_object* x_963; lean_object* x_964; lean_object* x_965; lean_object* x_966; lean_object* x_967; lean_object* x_968; lean_object* x_969; lean_object* x_970; lean_object* x_971; lean_object* x_972; lean_object* x_973; lean_object* x_974; lean_object* x_975; lean_object* x_976; lean_object* x_977; lean_object* x_978; lean_object* x_979; lean_object* x_980; lean_object* x_981; lean_object* x_982; lean_object* x_983; lean_object* x_984; lean_object* x_985; lean_object* x_986; lean_object* x_987; lean_object* x_988; lean_object* x_989; lean_object* x_990; lean_object* x_991; lean_object* x_992; lean_object* x_993; lean_object* x_994; lean_object* x_995; lean_object* x_996; lean_object* x_997; lean_object* x_998; lean_object* x_999; lean_object* x_1000; lean_object* x_1001; lean_object* x_1002; lean_object* x_1003; lean_object* x_1004; lean_object* x_1005; lean_object* x_1006; lean_object* x_1007; lean_object* x_1008; lean_object* x_1009; lean_object* x_1010; lean_object* x_1011; lean_object* x_1012; lean_object* x_1013; lean_object* x_1014; lean_object* x_1015; lean_object* x_1016; +lean_object* x_868; lean_object* x_869; lean_object* x_870; lean_object* x_871; lean_object* x_872; lean_object* x_873; lean_object* x_874; lean_object* x_875; lean_object* x_876; lean_object* x_877; lean_object* x_878; lean_object* x_879; lean_object* x_880; lean_object* x_881; lean_object* x_882; lean_object* x_883; lean_object* x_884; lean_object* x_885; lean_object* x_886; lean_object* x_887; lean_object* x_888; lean_object* x_889; lean_object* x_890; lean_object* x_891; lean_object* x_892; lean_object* x_893; lean_object* x_894; lean_object* x_895; lean_object* x_896; lean_object* x_897; lean_object* x_898; lean_object* x_899; lean_object* x_900; lean_object* x_901; lean_object* x_902; lean_object* x_903; lean_object* x_904; lean_object* x_905; lean_object* x_906; lean_object* x_907; lean_object* x_908; lean_object* x_909; lean_object* x_910; lean_object* x_911; lean_object* x_912; lean_object* x_913; lean_object* x_914; lean_object* x_915; lean_object* x_916; lean_object* x_917; lean_object* x_918; lean_object* x_919; lean_object* x_920; lean_object* x_921; lean_object* x_922; lean_object* x_923; lean_object* x_924; lean_object* x_925; lean_object* x_926; lean_object* x_927; lean_object* x_928; lean_object* x_929; lean_object* x_930; lean_object* x_931; lean_object* x_932; lean_object* x_933; lean_object* x_934; lean_object* x_935; lean_object* x_936; lean_object* x_937; lean_object* x_938; lean_object* x_939; lean_object* x_940; lean_object* x_941; lean_object* x_942; lean_object* x_943; lean_object* x_944; lean_object* x_945; lean_object* x_946; lean_object* x_947; lean_object* x_948; lean_object* x_949; lean_object* x_950; lean_object* x_951; lean_object* x_952; lean_object* x_953; lean_object* x_954; lean_object* x_955; lean_object* x_956; lean_object* x_957; lean_object* x_958; lean_object* x_959; lean_object* x_960; lean_object* x_961; lean_object* x_962; lean_object* x_963; lean_object* x_964; lean_object* x_965; lean_object* x_966; lean_object* x_967; lean_object* x_968; lean_object* x_969; lean_object* x_970; lean_object* x_971; lean_object* x_972; lean_object* x_973; lean_object* x_974; lean_object* x_975; lean_object* x_976; lean_object* x_977; lean_object* x_978; lean_object* x_979; lean_object* x_980; lean_object* x_981; lean_object* x_982; lean_object* x_983; lean_object* x_984; lean_object* x_985; lean_object* x_986; lean_object* x_987; lean_object* x_988; lean_object* x_989; lean_object* x_990; lean_object* x_991; lean_object* x_992; lean_object* x_993; lean_object* x_994; lean_object* x_995; lean_object* x_996; lean_object* x_997; lean_object* x_998; lean_object* x_999; lean_object* x_1000; lean_object* x_1001; lean_object* x_1002; lean_object* x_1003; lean_object* x_1004; lean_object* x_1005; lean_object* x_1006; lean_object* x_1007; lean_object* x_1008; lean_object* x_1009; lean_object* x_1010; lean_object* x_1011; lean_object* x_1012; lean_object* x_1013; lean_object* x_1014; lean_object* x_1015; lean_object* x_1016; lean_object* x_1017; lean_dec(x_18); lean_dec(x_1); -x_867 = lean_ctor_get(x_2, 1); -lean_inc(x_867); -x_868 = lean_ctor_get(x_2, 0); +x_868 = lean_ctor_get(x_2, 1); lean_inc(x_868); +x_869 = lean_ctor_get(x_2, 0); +lean_inc(x_869); lean_dec(x_2); -x_869 = l_Array_empty___closed__1; -x_870 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_6, x_6, x_27, x_869); +x_870 = l_Array_empty___closed__1; +x_871 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_6, x_6, x_27, x_870); lean_dec(x_6); -x_871 = l_Lean_nullKind___closed__2; -x_872 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_872, 0, x_871); -lean_ctor_set(x_872, 1, x_870); -x_873 = l___private_Lean_Elab_Syntax_9__expandNotationAux___closed__2; -x_874 = lean_array_push(x_873, x_872); -x_875 = l_Lean_Elab_Term_expandArrayLit___closed__8; -lean_inc(x_703); -x_876 = lean_array_push(x_875, x_703); -x_877 = l_Lean_Elab_Term_expandArrayLit___closed__9; -x_878 = lean_array_push(x_876, x_877); -x_879 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_879, 0, x_871); -lean_ctor_set(x_879, 1, x_878); -x_880 = lean_array_push(x_874, x_879); -x_881 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_35, x_35, x_27, x_869); +x_872 = l_Lean_nullKind___closed__2; +x_873 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_873, 0, x_872); +lean_ctor_set(x_873, 1, x_871); +x_874 = l___private_Lean_Elab_Syntax_9__expandNotationAux___closed__2; +x_875 = lean_array_push(x_874, x_873); +x_876 = l_Lean_Elab_Term_expandArrayLit___closed__8; +lean_inc(x_704); +x_877 = lean_array_push(x_876, x_704); +x_878 = l_Lean_Elab_Term_expandArrayLit___closed__9; +x_879 = lean_array_push(x_877, x_878); +x_880 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_880, 0, x_872); +lean_ctor_set(x_880, 1, x_879); +x_881 = lean_array_push(x_875, x_880); +x_882 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_35, x_35, x_27, x_870); lean_dec(x_35); -x_882 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_882, 0, x_871); -lean_ctor_set(x_882, 1, x_881); -x_883 = lean_array_push(x_880, x_882); -x_884 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__3; -x_885 = lean_array_push(x_883, x_884); -x_886 = lean_array_push(x_885, x_13); -x_887 = l_Lean_Parser_Command_syntax___elambda__1___closed__1; -x_888 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_888, 0, x_887); -lean_ctor_set(x_888, 1, x_886); -x_889 = lean_array_push(x_869, x_888); -x_890 = l_Lean_Elab_Command_mkCommandElabAttribute___closed__7; -lean_inc(x_867); +x_883 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_883, 0, x_872); +lean_ctor_set(x_883, 1, x_882); +x_884 = lean_array_push(x_881, x_883); +x_885 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__3; +x_886 = lean_array_push(x_884, x_885); +x_887 = lean_array_push(x_886, x_13); +x_888 = l_Lean_Parser_Command_syntax___elambda__1___closed__1; +x_889 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_889, 0, x_888); +lean_ctor_set(x_889, 1, x_887); +x_890 = lean_array_push(x_870, x_889); +x_891 = l_Lean_Elab_Command_mkCommandElabAttribute___closed__7; lean_inc(x_868); -x_891 = l_Lean_addMacroScope(x_868, x_890, x_867); -x_892 = lean_box(0); -x_893 = l_Lean_SourceInfo_inhabited___closed__1; -x_894 = l_Lean_Elab_Command_expandElab___closed__23; -x_895 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_895, 0, x_893); -lean_ctor_set(x_895, 1, x_894); -lean_ctor_set(x_895, 2, x_891); -lean_ctor_set(x_895, 3, x_892); -x_896 = lean_array_push(x_869, x_895); -x_897 = lean_array_push(x_869, x_703); -x_898 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_898, 0, x_871); -lean_ctor_set(x_898, 1, x_897); -x_899 = lean_array_push(x_896, x_898); -x_900 = l_Lean_Parser_Command_attrInstance___elambda__1___closed__2; -x_901 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_901, 0, x_900); -lean_ctor_set(x_901, 1, x_899); -x_902 = lean_array_push(x_869, x_901); -x_903 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_903, 0, x_871); -lean_ctor_set(x_903, 1, x_902); -x_904 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__2; -x_905 = lean_array_push(x_904, x_903); -x_906 = lean_array_push(x_905, x_877); -x_907 = l_Lean_Parser_Command_attributes___elambda__1___closed__2; -x_908 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_908, 0, x_907); -lean_ctor_set(x_908, 1, x_906); -x_909 = lean_array_push(x_869, x_908); -x_910 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_910, 0, x_871); -lean_ctor_set(x_910, 1, x_909); -x_911 = l_Lean_Elab_Term_elabLetDecl___closed__3; -x_912 = lean_array_push(x_911, x_910); -x_913 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__17; -x_914 = lean_array_push(x_912, x_913); -x_915 = lean_array_push(x_914, x_913); -x_916 = lean_array_push(x_915, x_913); -x_917 = lean_array_push(x_916, x_913); -x_918 = l_Lean_Parser_Command_declModifiers___elambda__1___closed__2; -x_919 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_919, 0, x_918); -lean_ctor_set(x_919, 1, x_917); -x_920 = lean_array_push(x_869, x_919); -x_921 = l_Lean_Elab_Command_expandElab___closed__7; -lean_inc(x_867); +lean_inc(x_869); +x_892 = l_Lean_addMacroScope(x_869, x_891, x_868); +x_893 = lean_box(0); +x_894 = l_Lean_SourceInfo_inhabited___closed__1; +x_895 = l_Lean_Elab_Command_expandElab___closed__23; +x_896 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_896, 0, x_894); +lean_ctor_set(x_896, 1, x_895); +lean_ctor_set(x_896, 2, x_892); +lean_ctor_set(x_896, 3, x_893); +x_897 = lean_array_push(x_870, x_896); +x_898 = lean_array_push(x_870, x_704); +x_899 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_899, 0, x_872); +lean_ctor_set(x_899, 1, x_898); +x_900 = lean_array_push(x_897, x_899); +x_901 = l_Lean_Parser_Command_attrInstance___elambda__1___closed__2; +x_902 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_902, 0, x_901); +lean_ctor_set(x_902, 1, x_900); +x_903 = lean_array_push(x_870, x_902); +x_904 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_904, 0, x_872); +lean_ctor_set(x_904, 1, x_903); +x_905 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__2; +x_906 = lean_array_push(x_905, x_904); +x_907 = lean_array_push(x_906, x_878); +x_908 = l_Lean_Parser_Command_attributes___elambda__1___closed__2; +x_909 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_909, 0, x_908); +lean_ctor_set(x_909, 1, x_907); +x_910 = lean_array_push(x_870, x_909); +x_911 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_911, 0, x_872); +lean_ctor_set(x_911, 1, x_910); +x_912 = l_Lean_Elab_Term_elabLetDecl___closed__3; +x_913 = lean_array_push(x_912, x_911); +x_914 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__17; +x_915 = lean_array_push(x_913, x_914); +x_916 = lean_array_push(x_915, x_914); +x_917 = lean_array_push(x_916, x_914); +x_918 = lean_array_push(x_917, x_914); +x_919 = l_Lean_Parser_Command_declModifiers___elambda__1___closed__2; +x_920 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_920, 0, x_919); +lean_ctor_set(x_920, 1, x_918); +x_921 = lean_array_push(x_870, x_920); +x_922 = l_Lean_Elab_Command_expandElab___closed__7; lean_inc(x_868); -x_922 = l_Lean_addMacroScope(x_868, x_921, x_867); -x_923 = l_Lean_Elab_Command_expandElab___closed__6; -x_924 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_924, 0, x_893); -lean_ctor_set(x_924, 1, x_923); -lean_ctor_set(x_924, 2, x_922); -lean_ctor_set(x_924, 3, x_892); -x_925 = lean_array_push(x_869, x_924); -x_926 = lean_array_push(x_925, x_913); -x_927 = l_Lean_Parser_Command_declId___elambda__1___closed__2; -x_928 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_928, 0, x_927); -lean_ctor_set(x_928, 1, x_926); -x_929 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__6; -x_930 = lean_array_push(x_929, x_928); -x_931 = l_Lean_Elab_Command_mkCommandElabAttribute___closed__9; -lean_inc(x_867); +lean_inc(x_869); +x_923 = l_Lean_addMacroScope(x_869, x_922, x_868); +x_924 = l_Lean_Elab_Command_expandElab___closed__6; +x_925 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_925, 0, x_894); +lean_ctor_set(x_925, 1, x_924); +lean_ctor_set(x_925, 2, x_923); +lean_ctor_set(x_925, 3, x_893); +x_926 = lean_array_push(x_870, x_925); +x_927 = lean_array_push(x_926, x_914); +x_928 = l_Lean_Parser_Command_declId___elambda__1___closed__2; +x_929 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_929, 0, x_928); +lean_ctor_set(x_929, 1, x_927); +x_930 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__6; +x_931 = lean_array_push(x_930, x_929); +x_932 = l_Lean_Elab_Command_mkCommandElabAttribute___closed__9; lean_inc(x_868); -x_932 = l_Lean_addMacroScope(x_868, x_931, x_867); -x_933 = l_Lean_Elab_Command_expandElab___closed__26; -x_934 = l_Lean_Elab_Command_expandElab___closed__28; -x_935 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_935, 0, x_893); -lean_ctor_set(x_935, 1, x_933); -lean_ctor_set(x_935, 2, x_932); -lean_ctor_set(x_935, 3, x_934); -x_936 = lean_array_push(x_869, x_935); -x_937 = lean_array_push(x_936, x_913); -x_938 = l_Lean_mkTermIdFromIdent___closed__2; -x_939 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_939, 0, x_938); -lean_ctor_set(x_939, 1, x_937); -x_940 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__4; -x_941 = lean_array_push(x_940, x_939); -x_942 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__2; -x_943 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_943, 0, x_942); -lean_ctor_set(x_943, 1, x_941); -x_944 = lean_array_push(x_869, x_943); -x_945 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_945, 0, x_871); -lean_ctor_set(x_945, 1, x_944); -x_946 = lean_array_push(x_911, x_945); -x_947 = l_Lean_Parser_Command_optDeclSig___elambda__1___closed__2; -x_948 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_948, 0, x_947); -lean_ctor_set(x_948, 1, x_946); -x_949 = lean_array_push(x_930, x_948); -x_950 = l_Lean_Elab_Command_elabMacroRulesAux___closed__15; -lean_inc(x_867); +lean_inc(x_869); +x_933 = l_Lean_addMacroScope(x_869, x_932, x_868); +x_934 = l_Lean_Elab_Command_expandElab___closed__26; +x_935 = l_Lean_Elab_Command_expandElab___closed__28; +x_936 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_936, 0, x_894); +lean_ctor_set(x_936, 1, x_934); +lean_ctor_set(x_936, 2, x_933); +lean_ctor_set(x_936, 3, x_935); +x_937 = lean_array_push(x_870, x_936); +x_938 = lean_array_push(x_937, x_914); +x_939 = l_Lean_mkTermIdFromIdent___closed__2; +x_940 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_940, 0, x_939); +lean_ctor_set(x_940, 1, x_938); +x_941 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__4; +x_942 = lean_array_push(x_941, x_940); +x_943 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__2; +x_944 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_944, 0, x_943); +lean_ctor_set(x_944, 1, x_942); +x_945 = lean_array_push(x_870, x_944); +x_946 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_946, 0, x_872); +lean_ctor_set(x_946, 1, x_945); +x_947 = lean_array_push(x_912, x_946); +x_948 = l_Lean_Parser_Command_optDeclSig___elambda__1___closed__2; +x_949 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_949, 0, x_948); +lean_ctor_set(x_949, 1, x_947); +x_950 = lean_array_push(x_931, x_949); +x_951 = l_Lean_Elab_Command_elabMacroRulesAux___closed__15; lean_inc(x_868); -x_951 = l_Lean_addMacroScope(x_868, x_950, x_867); -x_952 = l_Lean_Elab_Command_elabMacroRulesAux___closed__14; -x_953 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_953, 0, x_893); -lean_ctor_set(x_953, 1, x_952); -lean_ctor_set(x_953, 2, x_951); -lean_ctor_set(x_953, 3, x_892); -x_954 = lean_array_push(x_869, x_953); -x_955 = lean_array_push(x_954, x_913); -x_956 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_956, 0, x_938); -lean_ctor_set(x_956, 1, x_955); -lean_inc(x_956); -x_957 = lean_array_push(x_869, x_956); -x_958 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_958, 0, x_871); -lean_ctor_set(x_958, 1, x_957); -x_959 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; -x_960 = lean_array_push(x_959, x_958); -x_961 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; -x_962 = lean_array_push(x_960, x_961); -x_963 = l_Lean_Elab_Command_elabMacroRulesAux___closed__17; -x_964 = lean_array_push(x_963, x_956); -x_965 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__4; -x_966 = lean_array_push(x_964, x_965); -x_967 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__7; -x_968 = lean_array_push(x_966, x_967); -x_969 = l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__8; -x_970 = lean_array_push(x_969, x_702); -x_971 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__6; -x_972 = lean_array_push(x_970, x_971); -x_973 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; -x_974 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_974, 0, x_973); -lean_ctor_set(x_974, 1, x_972); -x_975 = lean_array_push(x_869, x_974); -x_976 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_976, 0, x_871); -lean_ctor_set(x_976, 1, x_975); -x_977 = lean_array_push(x_869, x_976); -x_978 = lean_array_push(x_977, x_961); -x_979 = lean_array_push(x_978, x_17); -x_980 = l_Lean_Parser_Term_matchAlt___closed__2; -x_981 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_981, 0, x_980); -lean_ctor_set(x_981, 1, x_979); -x_982 = lean_array_push(x_869, x_981); -x_983 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__5; -x_984 = lean_array_push(x_982, x_983); -x_985 = l_Lean_Elab_Command_expandElab___closed__32; -x_986 = l_Lean_addMacroScope(x_868, x_985, x_867); -x_987 = l_Lean_Elab_Command_expandElab___closed__31; -x_988 = l_Lean_Elab_Command_expandElab___closed__34; -x_989 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_989, 0, x_893); -lean_ctor_set(x_989, 1, x_987); -lean_ctor_set(x_989, 2, x_986); -lean_ctor_set(x_989, 3, x_988); -x_990 = lean_array_push(x_869, x_989); -x_991 = lean_array_push(x_990, x_913); -x_992 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_992, 0, x_938); -lean_ctor_set(x_992, 1, x_991); -x_993 = l_Lean_Elab_Command_elabMacroRulesAux___closed__19; -x_994 = lean_array_push(x_993, x_992); -x_995 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_995, 0, x_980); -lean_ctor_set(x_995, 1, x_994); -x_996 = lean_array_push(x_984, x_995); -x_997 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_997, 0, x_871); -lean_ctor_set(x_997, 1, x_996); -x_998 = lean_array_push(x_968, x_997); -x_999 = l_Lean_Parser_Term_match__syntax___elambda__1___closed__2; -x_1000 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1000, 0, x_999); -lean_ctor_set(x_1000, 1, x_998); -x_1001 = lean_array_push(x_962, x_1000); -x_1002 = l_Lean_Parser_Term_fun___elambda__1___closed__2; -x_1003 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1003, 0, x_1002); -lean_ctor_set(x_1003, 1, x_1001); -x_1004 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__16; -x_1005 = lean_array_push(x_1004, x_1003); -x_1006 = l_Lean_Parser_Command_declValSimple___elambda__1___closed__2; -x_1007 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1007, 0, x_1006); -lean_ctor_set(x_1007, 1, x_1005); -x_1008 = lean_array_push(x_949, x_1007); -x_1009 = l_Lean_Parser_Command_def___elambda__1___closed__2; -x_1010 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1010, 0, x_1009); -lean_ctor_set(x_1010, 1, x_1008); -x_1011 = lean_array_push(x_920, x_1010); -x_1012 = l_Lean_Parser_Command_declaration___elambda__1___closed__2; -x_1013 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1013, 0, x_1012); -lean_ctor_set(x_1013, 1, x_1011); -x_1014 = lean_array_push(x_889, x_1013); -x_1015 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1015, 0, x_871); -lean_ctor_set(x_1015, 1, x_1014); -x_1016 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1016, 0, x_1015); -lean_ctor_set(x_1016, 1, x_699); -return x_1016; +lean_inc(x_869); +x_952 = l_Lean_addMacroScope(x_869, x_951, x_868); +x_953 = l_Lean_Elab_Command_elabMacroRulesAux___closed__14; +x_954 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_954, 0, x_894); +lean_ctor_set(x_954, 1, x_953); +lean_ctor_set(x_954, 2, x_952); +lean_ctor_set(x_954, 3, x_893); +x_955 = lean_array_push(x_870, x_954); +x_956 = lean_array_push(x_955, x_914); +x_957 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_957, 0, x_939); +lean_ctor_set(x_957, 1, x_956); +lean_inc(x_957); +x_958 = lean_array_push(x_870, x_957); +x_959 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_959, 0, x_872); +lean_ctor_set(x_959, 1, x_958); +x_960 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; +x_961 = lean_array_push(x_960, x_959); +x_962 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; +x_963 = lean_array_push(x_961, x_962); +x_964 = l_Lean_Elab_Command_elabMacroRulesAux___closed__17; +x_965 = lean_array_push(x_964, x_957); +x_966 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__4; +x_967 = lean_array_push(x_965, x_966); +x_968 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__7; +x_969 = lean_array_push(x_967, x_968); +x_970 = l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__8; +x_971 = lean_array_push(x_970, x_703); +x_972 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__6; +x_973 = lean_array_push(x_971, x_972); +x_974 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; +x_975 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_975, 0, x_974); +lean_ctor_set(x_975, 1, x_973); +x_976 = lean_array_push(x_870, x_975); +x_977 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_977, 0, x_872); +lean_ctor_set(x_977, 1, x_976); +x_978 = lean_array_push(x_870, x_977); +x_979 = lean_array_push(x_978, x_962); +x_980 = lean_array_push(x_979, x_17); +x_981 = l_Lean_Parser_Term_matchAlt___closed__2; +x_982 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_982, 0, x_981); +lean_ctor_set(x_982, 1, x_980); +x_983 = lean_array_push(x_870, x_982); +x_984 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__5; +x_985 = lean_array_push(x_983, x_984); +x_986 = l_Lean_Elab_Command_expandElab___closed__32; +x_987 = l_Lean_addMacroScope(x_869, x_986, x_868); +x_988 = l_Lean_Elab_Command_expandElab___closed__31; +x_989 = l_Lean_Elab_Command_expandElab___closed__34; +x_990 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_990, 0, x_894); +lean_ctor_set(x_990, 1, x_988); +lean_ctor_set(x_990, 2, x_987); +lean_ctor_set(x_990, 3, x_989); +x_991 = lean_array_push(x_870, x_990); +x_992 = lean_array_push(x_991, x_914); +x_993 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_993, 0, x_939); +lean_ctor_set(x_993, 1, x_992); +x_994 = l_Lean_Elab_Command_elabMacroRulesAux___closed__19; +x_995 = lean_array_push(x_994, x_993); +x_996 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_996, 0, x_981); +lean_ctor_set(x_996, 1, x_995); +x_997 = lean_array_push(x_985, x_996); +x_998 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_998, 0, x_872); +lean_ctor_set(x_998, 1, x_997); +x_999 = lean_array_push(x_969, x_998); +x_1000 = l_Lean_Parser_Term_match__syntax___elambda__1___closed__2; +x_1001 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1001, 0, x_1000); +lean_ctor_set(x_1001, 1, x_999); +x_1002 = lean_array_push(x_963, x_1001); +x_1003 = l_Lean_Parser_Term_fun___elambda__1___closed__2; +x_1004 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1004, 0, x_1003); +lean_ctor_set(x_1004, 1, x_1002); +x_1005 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__16; +x_1006 = lean_array_push(x_1005, x_1004); +x_1007 = l_Lean_Parser_Command_declValSimple___elambda__1___closed__2; +x_1008 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1008, 0, x_1007); +lean_ctor_set(x_1008, 1, x_1006); +x_1009 = lean_array_push(x_950, x_1008); +x_1010 = l_Lean_Parser_Command_def___elambda__1___closed__2; +x_1011 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1011, 0, x_1010); +lean_ctor_set(x_1011, 1, x_1009); +x_1012 = lean_array_push(x_921, x_1011); +x_1013 = l_Lean_Parser_Command_declaration___elambda__1___closed__2; +x_1014 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1014, 0, x_1013); +lean_ctor_set(x_1014, 1, x_1012); +x_1015 = lean_array_push(x_890, x_1014); +x_1016 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1016, 0, x_872); +lean_ctor_set(x_1016, 1, x_1015); +x_1017 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1017, 0, x_1016); +lean_ctor_set(x_1017, 1, x_700); +return x_1017; } } else { -lean_object* x_1017; lean_object* x_1018; lean_object* x_1019; lean_object* x_1020; lean_object* x_1021; lean_object* x_1022; lean_object* x_1023; lean_object* x_1024; lean_object* x_1025; lean_object* x_1026; lean_object* x_1027; lean_object* x_1028; lean_object* x_1029; lean_object* x_1030; lean_object* x_1031; lean_object* x_1032; lean_object* x_1033; lean_object* x_1034; lean_object* x_1035; lean_object* x_1036; lean_object* x_1037; lean_object* x_1038; lean_object* x_1039; lean_object* x_1040; lean_object* x_1041; lean_object* x_1042; lean_object* x_1043; lean_object* x_1044; lean_object* x_1045; lean_object* x_1046; lean_object* x_1047; lean_object* x_1048; lean_object* x_1049; lean_object* x_1050; lean_object* x_1051; lean_object* x_1052; lean_object* x_1053; lean_object* x_1054; lean_object* x_1055; lean_object* x_1056; lean_object* x_1057; lean_object* x_1058; lean_object* x_1059; lean_object* x_1060; lean_object* x_1061; lean_object* x_1062; lean_object* x_1063; lean_object* x_1064; lean_object* x_1065; lean_object* x_1066; lean_object* x_1067; lean_object* x_1068; lean_object* x_1069; lean_object* x_1070; lean_object* x_1071; lean_object* x_1072; lean_object* x_1073; lean_object* x_1074; lean_object* x_1075; lean_object* x_1076; lean_object* x_1077; lean_object* x_1078; lean_object* x_1079; lean_object* x_1080; lean_object* x_1081; lean_object* x_1082; lean_object* x_1083; lean_object* x_1084; lean_object* x_1085; lean_object* x_1086; lean_object* x_1087; lean_object* x_1088; lean_object* x_1089; lean_object* x_1090; lean_object* x_1091; lean_object* x_1092; lean_object* x_1093; lean_object* x_1094; lean_object* x_1095; lean_object* x_1096; lean_object* x_1097; lean_object* x_1098; lean_object* x_1099; lean_object* x_1100; lean_object* x_1101; lean_object* x_1102; lean_object* x_1103; lean_object* x_1104; lean_object* x_1105; lean_object* x_1106; lean_object* x_1107; lean_object* x_1108; lean_object* x_1109; lean_object* x_1110; lean_object* x_1111; lean_object* x_1112; lean_object* x_1113; lean_object* x_1114; lean_object* x_1115; lean_object* x_1116; lean_object* x_1117; lean_object* x_1118; lean_object* x_1119; lean_object* x_1120; lean_object* x_1121; lean_object* x_1122; lean_object* x_1123; lean_object* x_1124; lean_object* x_1125; lean_object* x_1126; lean_object* x_1127; lean_object* x_1128; lean_object* x_1129; lean_object* x_1130; lean_object* x_1131; lean_object* x_1132; lean_object* x_1133; lean_object* x_1134; lean_object* x_1135; lean_object* x_1136; lean_object* x_1137; lean_object* x_1138; lean_object* x_1139; lean_object* x_1140; lean_object* x_1141; lean_object* x_1142; lean_object* x_1143; lean_object* x_1144; lean_object* x_1145; lean_object* x_1146; lean_object* x_1147; lean_object* x_1148; lean_object* x_1149; lean_object* x_1150; lean_object* x_1151; lean_object* x_1152; lean_object* x_1153; lean_object* x_1154; lean_object* x_1155; lean_object* x_1156; lean_object* x_1157; lean_object* x_1158; lean_object* x_1159; lean_object* x_1160; lean_object* x_1161; lean_object* x_1162; lean_object* x_1163; lean_object* x_1164; lean_object* x_1165; lean_object* x_1166; lean_object* x_1167; lean_object* x_1168; +lean_object* x_1018; lean_object* x_1019; lean_object* x_1020; lean_object* x_1021; lean_object* x_1022; lean_object* x_1023; lean_object* x_1024; lean_object* x_1025; lean_object* x_1026; lean_object* x_1027; lean_object* x_1028; lean_object* x_1029; lean_object* x_1030; lean_object* x_1031; lean_object* x_1032; lean_object* x_1033; lean_object* x_1034; lean_object* x_1035; lean_object* x_1036; lean_object* x_1037; lean_object* x_1038; lean_object* x_1039; lean_object* x_1040; lean_object* x_1041; lean_object* x_1042; lean_object* x_1043; lean_object* x_1044; lean_object* x_1045; lean_object* x_1046; lean_object* x_1047; lean_object* x_1048; lean_object* x_1049; lean_object* x_1050; lean_object* x_1051; lean_object* x_1052; lean_object* x_1053; lean_object* x_1054; lean_object* x_1055; lean_object* x_1056; lean_object* x_1057; lean_object* x_1058; lean_object* x_1059; lean_object* x_1060; lean_object* x_1061; lean_object* x_1062; lean_object* x_1063; lean_object* x_1064; lean_object* x_1065; lean_object* x_1066; lean_object* x_1067; lean_object* x_1068; lean_object* x_1069; lean_object* x_1070; lean_object* x_1071; lean_object* x_1072; lean_object* x_1073; lean_object* x_1074; lean_object* x_1075; lean_object* x_1076; lean_object* x_1077; lean_object* x_1078; lean_object* x_1079; lean_object* x_1080; lean_object* x_1081; lean_object* x_1082; lean_object* x_1083; lean_object* x_1084; lean_object* x_1085; lean_object* x_1086; lean_object* x_1087; lean_object* x_1088; lean_object* x_1089; lean_object* x_1090; lean_object* x_1091; lean_object* x_1092; lean_object* x_1093; lean_object* x_1094; lean_object* x_1095; lean_object* x_1096; lean_object* x_1097; lean_object* x_1098; lean_object* x_1099; lean_object* x_1100; lean_object* x_1101; lean_object* x_1102; lean_object* x_1103; lean_object* x_1104; lean_object* x_1105; lean_object* x_1106; lean_object* x_1107; lean_object* x_1108; lean_object* x_1109; lean_object* x_1110; lean_object* x_1111; lean_object* x_1112; lean_object* x_1113; lean_object* x_1114; lean_object* x_1115; lean_object* x_1116; lean_object* x_1117; lean_object* x_1118; lean_object* x_1119; lean_object* x_1120; lean_object* x_1121; lean_object* x_1122; lean_object* x_1123; lean_object* x_1124; lean_object* x_1125; lean_object* x_1126; lean_object* x_1127; lean_object* x_1128; lean_object* x_1129; lean_object* x_1130; lean_object* x_1131; lean_object* x_1132; lean_object* x_1133; lean_object* x_1134; lean_object* x_1135; lean_object* x_1136; lean_object* x_1137; lean_object* x_1138; lean_object* x_1139; lean_object* x_1140; lean_object* x_1141; lean_object* x_1142; lean_object* x_1143; lean_object* x_1144; lean_object* x_1145; lean_object* x_1146; lean_object* x_1147; lean_object* x_1148; lean_object* x_1149; lean_object* x_1150; lean_object* x_1151; lean_object* x_1152; lean_object* x_1153; lean_object* x_1154; lean_object* x_1155; lean_object* x_1156; lean_object* x_1157; lean_object* x_1158; lean_object* x_1159; lean_object* x_1160; lean_object* x_1161; lean_object* x_1162; lean_object* x_1163; lean_object* x_1164; lean_object* x_1165; lean_object* x_1166; lean_object* x_1167; lean_object* x_1168; lean_object* x_1169; lean_dec(x_18); lean_dec(x_1); -x_1017 = lean_ctor_get(x_2, 1); -lean_inc(x_1017); -x_1018 = lean_ctor_get(x_2, 0); +x_1018 = lean_ctor_get(x_2, 1); lean_inc(x_1018); +x_1019 = lean_ctor_get(x_2, 0); +lean_inc(x_1019); lean_dec(x_2); -x_1019 = l_Array_empty___closed__1; -x_1020 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_6, x_6, x_27, x_1019); +x_1020 = l_Array_empty___closed__1; +x_1021 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_6, x_6, x_27, x_1020); lean_dec(x_6); -x_1021 = l_Lean_nullKind___closed__2; -x_1022 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1022, 0, x_1021); -lean_ctor_set(x_1022, 1, x_1020); -x_1023 = l___private_Lean_Elab_Syntax_9__expandNotationAux___closed__2; -x_1024 = lean_array_push(x_1023, x_1022); -x_1025 = l_Lean_Elab_Term_expandArrayLit___closed__8; -lean_inc(x_703); -x_1026 = lean_array_push(x_1025, x_703); -x_1027 = l_Lean_Elab_Term_expandArrayLit___closed__9; -x_1028 = lean_array_push(x_1026, x_1027); -x_1029 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1029, 0, x_1021); -lean_ctor_set(x_1029, 1, x_1028); -x_1030 = lean_array_push(x_1024, x_1029); -x_1031 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_35, x_35, x_27, x_1019); +x_1022 = l_Lean_nullKind___closed__2; +x_1023 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1023, 0, x_1022); +lean_ctor_set(x_1023, 1, x_1021); +x_1024 = l___private_Lean_Elab_Syntax_9__expandNotationAux___closed__2; +x_1025 = lean_array_push(x_1024, x_1023); +x_1026 = l_Lean_Elab_Term_expandArrayLit___closed__8; +lean_inc(x_704); +x_1027 = lean_array_push(x_1026, x_704); +x_1028 = l_Lean_Elab_Term_expandArrayLit___closed__9; +x_1029 = lean_array_push(x_1027, x_1028); +x_1030 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1030, 0, x_1022); +lean_ctor_set(x_1030, 1, x_1029); +x_1031 = lean_array_push(x_1025, x_1030); +x_1032 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_35, x_35, x_27, x_1020); lean_dec(x_35); -x_1032 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1032, 0, x_1021); -lean_ctor_set(x_1032, 1, x_1031); -x_1033 = lean_array_push(x_1030, x_1032); -x_1034 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__3; -x_1035 = lean_array_push(x_1033, x_1034); -x_1036 = lean_array_push(x_1035, x_13); -x_1037 = l_Lean_Parser_Command_syntax___elambda__1___closed__1; -x_1038 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1038, 0, x_1037); -lean_ctor_set(x_1038, 1, x_1036); -x_1039 = lean_array_push(x_1019, x_1038); -x_1040 = l_Lean_Elab_Term_mkTermElabAttribute___closed__7; -lean_inc(x_1017); +x_1033 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1033, 0, x_1022); +lean_ctor_set(x_1033, 1, x_1032); +x_1034 = lean_array_push(x_1031, x_1033); +x_1035 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__3; +x_1036 = lean_array_push(x_1034, x_1035); +x_1037 = lean_array_push(x_1036, x_13); +x_1038 = l_Lean_Parser_Command_syntax___elambda__1___closed__1; +x_1039 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1039, 0, x_1038); +lean_ctor_set(x_1039, 1, x_1037); +x_1040 = lean_array_push(x_1020, x_1039); +x_1041 = l_Lean_Elab_Term_mkTermElabAttribute___closed__7; lean_inc(x_1018); -x_1041 = l_Lean_addMacroScope(x_1018, x_1040, x_1017); -x_1042 = lean_box(0); -x_1043 = l_Lean_SourceInfo_inhabited___closed__1; -x_1044 = l_Lean_Elab_Command_expandElab___closed__36; -x_1045 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1045, 0, x_1043); -lean_ctor_set(x_1045, 1, x_1044); -lean_ctor_set(x_1045, 2, x_1041); -lean_ctor_set(x_1045, 3, x_1042); -x_1046 = lean_array_push(x_1019, x_1045); -x_1047 = lean_array_push(x_1019, x_703); -x_1048 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1048, 0, x_1021); -lean_ctor_set(x_1048, 1, x_1047); -x_1049 = lean_array_push(x_1046, x_1048); -x_1050 = l_Lean_Parser_Command_attrInstance___elambda__1___closed__2; -x_1051 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1051, 0, x_1050); -lean_ctor_set(x_1051, 1, x_1049); -x_1052 = lean_array_push(x_1019, x_1051); -x_1053 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1053, 0, x_1021); -lean_ctor_set(x_1053, 1, x_1052); -x_1054 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__2; -x_1055 = lean_array_push(x_1054, x_1053); -x_1056 = lean_array_push(x_1055, x_1027); -x_1057 = l_Lean_Parser_Command_attributes___elambda__1___closed__2; -x_1058 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1058, 0, x_1057); -lean_ctor_set(x_1058, 1, x_1056); -x_1059 = lean_array_push(x_1019, x_1058); -x_1060 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1060, 0, x_1021); -lean_ctor_set(x_1060, 1, x_1059); -x_1061 = l_Lean_Elab_Term_elabLetDecl___closed__3; -x_1062 = lean_array_push(x_1061, x_1060); -x_1063 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__17; -x_1064 = lean_array_push(x_1062, x_1063); -x_1065 = lean_array_push(x_1064, x_1063); -x_1066 = lean_array_push(x_1065, x_1063); -x_1067 = lean_array_push(x_1066, x_1063); -x_1068 = l_Lean_Parser_Command_declModifiers___elambda__1___closed__2; -x_1069 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1069, 0, x_1068); -lean_ctor_set(x_1069, 1, x_1067); -x_1070 = lean_array_push(x_1019, x_1069); -x_1071 = l_Lean_Elab_Command_expandElab___closed__7; -lean_inc(x_1017); +lean_inc(x_1019); +x_1042 = l_Lean_addMacroScope(x_1019, x_1041, x_1018); +x_1043 = lean_box(0); +x_1044 = l_Lean_SourceInfo_inhabited___closed__1; +x_1045 = l_Lean_Elab_Command_expandElab___closed__36; +x_1046 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1046, 0, x_1044); +lean_ctor_set(x_1046, 1, x_1045); +lean_ctor_set(x_1046, 2, x_1042); +lean_ctor_set(x_1046, 3, x_1043); +x_1047 = lean_array_push(x_1020, x_1046); +x_1048 = lean_array_push(x_1020, x_704); +x_1049 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1049, 0, x_1022); +lean_ctor_set(x_1049, 1, x_1048); +x_1050 = lean_array_push(x_1047, x_1049); +x_1051 = l_Lean_Parser_Command_attrInstance___elambda__1___closed__2; +x_1052 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1052, 0, x_1051); +lean_ctor_set(x_1052, 1, x_1050); +x_1053 = lean_array_push(x_1020, x_1052); +x_1054 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1054, 0, x_1022); +lean_ctor_set(x_1054, 1, x_1053); +x_1055 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__2; +x_1056 = lean_array_push(x_1055, x_1054); +x_1057 = lean_array_push(x_1056, x_1028); +x_1058 = l_Lean_Parser_Command_attributes___elambda__1___closed__2; +x_1059 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1059, 0, x_1058); +lean_ctor_set(x_1059, 1, x_1057); +x_1060 = lean_array_push(x_1020, x_1059); +x_1061 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1061, 0, x_1022); +lean_ctor_set(x_1061, 1, x_1060); +x_1062 = l_Lean_Elab_Term_elabLetDecl___closed__3; +x_1063 = lean_array_push(x_1062, x_1061); +x_1064 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__17; +x_1065 = lean_array_push(x_1063, x_1064); +x_1066 = lean_array_push(x_1065, x_1064); +x_1067 = lean_array_push(x_1066, x_1064); +x_1068 = lean_array_push(x_1067, x_1064); +x_1069 = l_Lean_Parser_Command_declModifiers___elambda__1___closed__2; +x_1070 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1070, 0, x_1069); +lean_ctor_set(x_1070, 1, x_1068); +x_1071 = lean_array_push(x_1020, x_1070); +x_1072 = l_Lean_Elab_Command_expandElab___closed__7; lean_inc(x_1018); -x_1072 = l_Lean_addMacroScope(x_1018, x_1071, x_1017); -x_1073 = l_Lean_Elab_Command_expandElab___closed__6; -x_1074 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1074, 0, x_1043); -lean_ctor_set(x_1074, 1, x_1073); -lean_ctor_set(x_1074, 2, x_1072); -lean_ctor_set(x_1074, 3, x_1042); -x_1075 = lean_array_push(x_1019, x_1074); -x_1076 = lean_array_push(x_1075, x_1063); -x_1077 = l_Lean_Parser_Command_declId___elambda__1___closed__2; -x_1078 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1078, 0, x_1077); -lean_ctor_set(x_1078, 1, x_1076); -x_1079 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__6; -x_1080 = lean_array_push(x_1079, x_1078); -x_1081 = l_Lean_Elab_Term_mkTermElabAttribute___closed__9; -lean_inc(x_1017); +lean_inc(x_1019); +x_1073 = l_Lean_addMacroScope(x_1019, x_1072, x_1018); +x_1074 = l_Lean_Elab_Command_expandElab___closed__6; +x_1075 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1075, 0, x_1044); +lean_ctor_set(x_1075, 1, x_1074); +lean_ctor_set(x_1075, 2, x_1073); +lean_ctor_set(x_1075, 3, x_1043); +x_1076 = lean_array_push(x_1020, x_1075); +x_1077 = lean_array_push(x_1076, x_1064); +x_1078 = l_Lean_Parser_Command_declId___elambda__1___closed__2; +x_1079 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1079, 0, x_1078); +lean_ctor_set(x_1079, 1, x_1077); +x_1080 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__6; +x_1081 = lean_array_push(x_1080, x_1079); +x_1082 = l_Lean_Elab_Term_mkTermElabAttribute___closed__9; lean_inc(x_1018); -x_1082 = l_Lean_addMacroScope(x_1018, x_1081, x_1017); -x_1083 = l_Lean_Elab_Command_expandElab___closed__39; -x_1084 = l_Lean_Elab_Command_expandElab___closed__41; -x_1085 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1085, 0, x_1043); -lean_ctor_set(x_1085, 1, x_1083); -lean_ctor_set(x_1085, 2, x_1082); -lean_ctor_set(x_1085, 3, x_1084); -x_1086 = lean_array_push(x_1019, x_1085); -x_1087 = lean_array_push(x_1086, x_1063); -x_1088 = l_Lean_mkTermIdFromIdent___closed__2; -x_1089 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1089, 0, x_1088); -lean_ctor_set(x_1089, 1, x_1087); -x_1090 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__4; -x_1091 = lean_array_push(x_1090, x_1089); -x_1092 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__2; -x_1093 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1093, 0, x_1092); -lean_ctor_set(x_1093, 1, x_1091); -x_1094 = lean_array_push(x_1019, x_1093); -x_1095 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1095, 0, x_1021); -lean_ctor_set(x_1095, 1, x_1094); -x_1096 = lean_array_push(x_1061, x_1095); -x_1097 = l_Lean_Parser_Command_optDeclSig___elambda__1___closed__2; -x_1098 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1098, 0, x_1097); -lean_ctor_set(x_1098, 1, x_1096); -x_1099 = lean_array_push(x_1080, x_1098); -x_1100 = l_Lean_Elab_Command_elabMacroRulesAux___closed__15; -lean_inc(x_1017); +lean_inc(x_1019); +x_1083 = l_Lean_addMacroScope(x_1019, x_1082, x_1018); +x_1084 = l_Lean_Elab_Command_expandElab___closed__39; +x_1085 = l_Lean_Elab_Command_expandElab___closed__41; +x_1086 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1086, 0, x_1044); +lean_ctor_set(x_1086, 1, x_1084); +lean_ctor_set(x_1086, 2, x_1083); +lean_ctor_set(x_1086, 3, x_1085); +x_1087 = lean_array_push(x_1020, x_1086); +x_1088 = lean_array_push(x_1087, x_1064); +x_1089 = l_Lean_mkTermIdFromIdent___closed__2; +x_1090 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1090, 0, x_1089); +lean_ctor_set(x_1090, 1, x_1088); +x_1091 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__4; +x_1092 = lean_array_push(x_1091, x_1090); +x_1093 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__2; +x_1094 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1094, 0, x_1093); +lean_ctor_set(x_1094, 1, x_1092); +x_1095 = lean_array_push(x_1020, x_1094); +x_1096 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1096, 0, x_1022); +lean_ctor_set(x_1096, 1, x_1095); +x_1097 = lean_array_push(x_1062, x_1096); +x_1098 = l_Lean_Parser_Command_optDeclSig___elambda__1___closed__2; +x_1099 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1099, 0, x_1098); +lean_ctor_set(x_1099, 1, x_1097); +x_1100 = lean_array_push(x_1081, x_1099); +x_1101 = l_Lean_Elab_Command_elabMacroRulesAux___closed__15; lean_inc(x_1018); -x_1101 = l_Lean_addMacroScope(x_1018, x_1100, x_1017); -x_1102 = l_Lean_Elab_Command_elabMacroRulesAux___closed__14; -x_1103 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1103, 0, x_1043); -lean_ctor_set(x_1103, 1, x_1102); -lean_ctor_set(x_1103, 2, x_1101); -lean_ctor_set(x_1103, 3, x_1042); -x_1104 = lean_array_push(x_1019, x_1103); -x_1105 = lean_array_push(x_1104, x_1063); -x_1106 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1106, 0, x_1088); -lean_ctor_set(x_1106, 1, x_1105); -lean_inc(x_1106); -x_1107 = lean_array_push(x_1019, x_1106); -x_1108 = l___private_Lean_Elab_Quotation_5__explodeHeadPat___lambda__1___closed__3; -x_1109 = lean_array_push(x_1107, x_1108); -x_1110 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1110, 0, x_1021); -lean_ctor_set(x_1110, 1, x_1109); -x_1111 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; -x_1112 = lean_array_push(x_1111, x_1110); -x_1113 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; -x_1114 = lean_array_push(x_1112, x_1113); -x_1115 = l_Lean_Elab_Command_elabMacroRulesAux___closed__17; -x_1116 = lean_array_push(x_1115, x_1106); -x_1117 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__4; -x_1118 = lean_array_push(x_1116, x_1117); -x_1119 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__7; -x_1120 = lean_array_push(x_1118, x_1119); -x_1121 = l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__8; -x_1122 = lean_array_push(x_1121, x_702); -x_1123 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__6; -x_1124 = lean_array_push(x_1122, x_1123); -x_1125 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; -x_1126 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1126, 0, x_1125); -lean_ctor_set(x_1126, 1, x_1124); -x_1127 = lean_array_push(x_1019, x_1126); -x_1128 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1128, 0, x_1021); -lean_ctor_set(x_1128, 1, x_1127); -x_1129 = lean_array_push(x_1019, x_1128); -x_1130 = lean_array_push(x_1129, x_1113); -x_1131 = lean_array_push(x_1130, x_17); -x_1132 = l_Lean_Parser_Term_matchAlt___closed__2; -x_1133 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1133, 0, x_1132); -lean_ctor_set(x_1133, 1, x_1131); -x_1134 = lean_array_push(x_1019, x_1133); -x_1135 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__5; -x_1136 = lean_array_push(x_1134, x_1135); -x_1137 = l_Lean_Elab_Command_expandElab___closed__45; -x_1138 = l_Lean_addMacroScope(x_1018, x_1137, x_1017); -x_1139 = l_Lean_Elab_Command_expandElab___closed__44; -x_1140 = l_Lean_Elab_Command_expandElab___closed__47; -x_1141 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1141, 0, x_1043); -lean_ctor_set(x_1141, 1, x_1139); -lean_ctor_set(x_1141, 2, x_1138); -lean_ctor_set(x_1141, 3, x_1140); -x_1142 = lean_array_push(x_1019, x_1141); -x_1143 = lean_array_push(x_1142, x_1063); -x_1144 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1144, 0, x_1088); -lean_ctor_set(x_1144, 1, x_1143); -x_1145 = l_Lean_Elab_Command_elabMacroRulesAux___closed__19; -x_1146 = lean_array_push(x_1145, x_1144); -x_1147 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1147, 0, x_1132); -lean_ctor_set(x_1147, 1, x_1146); -x_1148 = lean_array_push(x_1136, x_1147); -x_1149 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1149, 0, x_1021); -lean_ctor_set(x_1149, 1, x_1148); -x_1150 = lean_array_push(x_1120, x_1149); -x_1151 = l_Lean_Parser_Term_match__syntax___elambda__1___closed__2; -x_1152 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1152, 0, x_1151); -lean_ctor_set(x_1152, 1, x_1150); -x_1153 = lean_array_push(x_1114, x_1152); -x_1154 = l_Lean_Parser_Term_fun___elambda__1___closed__2; -x_1155 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1155, 0, x_1154); -lean_ctor_set(x_1155, 1, x_1153); -x_1156 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__16; -x_1157 = lean_array_push(x_1156, x_1155); -x_1158 = l_Lean_Parser_Command_declValSimple___elambda__1___closed__2; -x_1159 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1159, 0, x_1158); -lean_ctor_set(x_1159, 1, x_1157); -x_1160 = lean_array_push(x_1099, x_1159); -x_1161 = l_Lean_Parser_Command_def___elambda__1___closed__2; -x_1162 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1162, 0, x_1161); -lean_ctor_set(x_1162, 1, x_1160); -x_1163 = lean_array_push(x_1070, x_1162); -x_1164 = l_Lean_Parser_Command_declaration___elambda__1___closed__2; -x_1165 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1165, 0, x_1164); -lean_ctor_set(x_1165, 1, x_1163); -x_1166 = lean_array_push(x_1039, x_1165); -x_1167 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1167, 0, x_1021); -lean_ctor_set(x_1167, 1, x_1166); -x_1168 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1168, 0, x_1167); -lean_ctor_set(x_1168, 1, x_699); -return x_1168; +lean_inc(x_1019); +x_1102 = l_Lean_addMacroScope(x_1019, x_1101, x_1018); +x_1103 = l_Lean_Elab_Command_elabMacroRulesAux___closed__14; +x_1104 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1104, 0, x_1044); +lean_ctor_set(x_1104, 1, x_1103); +lean_ctor_set(x_1104, 2, x_1102); +lean_ctor_set(x_1104, 3, x_1043); +x_1105 = lean_array_push(x_1020, x_1104); +x_1106 = lean_array_push(x_1105, x_1064); +x_1107 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1107, 0, x_1089); +lean_ctor_set(x_1107, 1, x_1106); +lean_inc(x_1107); +x_1108 = lean_array_push(x_1020, x_1107); +x_1109 = l___private_Lean_Elab_Quotation_5__explodeHeadPat___lambda__1___closed__3; +x_1110 = lean_array_push(x_1108, x_1109); +x_1111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1111, 0, x_1022); +lean_ctor_set(x_1111, 1, x_1110); +x_1112 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; +x_1113 = lean_array_push(x_1112, x_1111); +x_1114 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; +x_1115 = lean_array_push(x_1113, x_1114); +x_1116 = l_Lean_Elab_Command_elabMacroRulesAux___closed__17; +x_1117 = lean_array_push(x_1116, x_1107); +x_1118 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__4; +x_1119 = lean_array_push(x_1117, x_1118); +x_1120 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__7; +x_1121 = lean_array_push(x_1119, x_1120); +x_1122 = l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__8; +x_1123 = lean_array_push(x_1122, x_703); +x_1124 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__6; +x_1125 = lean_array_push(x_1123, x_1124); +x_1126 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; +x_1127 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1127, 0, x_1126); +lean_ctor_set(x_1127, 1, x_1125); +x_1128 = lean_array_push(x_1020, x_1127); +x_1129 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1129, 0, x_1022); +lean_ctor_set(x_1129, 1, x_1128); +x_1130 = lean_array_push(x_1020, x_1129); +x_1131 = lean_array_push(x_1130, x_1114); +x_1132 = lean_array_push(x_1131, x_17); +x_1133 = l_Lean_Parser_Term_matchAlt___closed__2; +x_1134 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1134, 0, x_1133); +lean_ctor_set(x_1134, 1, x_1132); +x_1135 = lean_array_push(x_1020, x_1134); +x_1136 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__5; +x_1137 = lean_array_push(x_1135, x_1136); +x_1138 = l_Lean_Elab_Command_expandElab___closed__45; +x_1139 = l_Lean_addMacroScope(x_1019, x_1138, x_1018); +x_1140 = l_Lean_Elab_Command_expandElab___closed__44; +x_1141 = l_Lean_Elab_Command_expandElab___closed__47; +x_1142 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1142, 0, x_1044); +lean_ctor_set(x_1142, 1, x_1140); +lean_ctor_set(x_1142, 2, x_1139); +lean_ctor_set(x_1142, 3, x_1141); +x_1143 = lean_array_push(x_1020, x_1142); +x_1144 = lean_array_push(x_1143, x_1064); +x_1145 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1145, 0, x_1089); +lean_ctor_set(x_1145, 1, x_1144); +x_1146 = l_Lean_Elab_Command_elabMacroRulesAux___closed__19; +x_1147 = lean_array_push(x_1146, x_1145); +x_1148 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1148, 0, x_1133); +lean_ctor_set(x_1148, 1, x_1147); +x_1149 = lean_array_push(x_1137, x_1148); +x_1150 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1150, 0, x_1022); +lean_ctor_set(x_1150, 1, x_1149); +x_1151 = lean_array_push(x_1121, x_1150); +x_1152 = l_Lean_Parser_Term_match__syntax___elambda__1___closed__2; +x_1153 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1153, 0, x_1152); +lean_ctor_set(x_1153, 1, x_1151); +x_1154 = lean_array_push(x_1115, x_1153); +x_1155 = l_Lean_Parser_Term_fun___elambda__1___closed__2; +x_1156 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1156, 0, x_1155); +lean_ctor_set(x_1156, 1, x_1154); +x_1157 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__16; +x_1158 = lean_array_push(x_1157, x_1156); +x_1159 = l_Lean_Parser_Command_declValSimple___elambda__1___closed__2; +x_1160 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1160, 0, x_1159); +lean_ctor_set(x_1160, 1, x_1158); +x_1161 = lean_array_push(x_1100, x_1160); +x_1162 = l_Lean_Parser_Command_def___elambda__1___closed__2; +x_1163 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1163, 0, x_1162); +lean_ctor_set(x_1163, 1, x_1161); +x_1164 = lean_array_push(x_1071, x_1163); +x_1165 = l_Lean_Parser_Command_declaration___elambda__1___closed__2; +x_1166 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1166, 0, x_1165); +lean_ctor_set(x_1166, 1, x_1164); +x_1167 = lean_array_push(x_1040, x_1166); +x_1168 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1168, 0, x_1022); +lean_ctor_set(x_1168, 1, x_1167); +x_1169 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1169, 0, x_1168); +lean_ctor_set(x_1169, 1, x_700); +return x_1169; } } else { -lean_object* x_1169; uint8_t x_1170; +lean_object* x_1170; uint8_t x_1171; lean_dec(x_1); -x_1169 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___closed__2; -x_1170 = lean_name_eq(x_18, x_1169); -if (x_1170 == 0) +x_1170 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___closed__2; +x_1171 = lean_name_eq(x_18, x_1170); +if (x_1171 == 0) { -lean_object* x_1171; lean_object* x_1172; lean_object* x_1173; lean_object* x_1174; lean_object* x_1175; lean_object* x_1176; lean_object* x_1177; +lean_object* x_1172; lean_object* x_1173; lean_object* x_1174; lean_object* x_1175; lean_object* x_1176; lean_object* x_1177; lean_object* x_1178; +lean_dec(x_704); lean_dec(x_703); -lean_dec(x_702); lean_dec(x_35); lean_dec(x_17); lean_dec(x_13); lean_dec(x_6); -x_1171 = l_Lean_Name_toString___closed__1; -x_1172 = l_Lean_Name_toStringWithSep___main(x_1171, x_18); -x_1173 = l_Lean_Elab_Command_expandElab___closed__48; -x_1174 = lean_string_append(x_1173, x_1172); -lean_dec(x_1172); -x_1175 = l_Lean_Elab_Command_expandElab___closed__49; -x_1176 = lean_string_append(x_1174, x_1175); -x_1177 = l_Lean_Macro_throwError___rarg(x_15, x_1176, x_2, x_699); +x_1172 = l_Lean_Name_toString___closed__1; +x_1173 = l_Lean_Name_toStringWithSep___main(x_1172, x_18); +x_1174 = l_Lean_Elab_Command_expandElab___closed__48; +x_1175 = lean_string_append(x_1174, x_1173); +lean_dec(x_1173); +x_1176 = l_Lean_Elab_Command_expandElab___closed__49; +x_1177 = lean_string_append(x_1175, x_1176); +x_1178 = l_Lean_Macro_throwError___rarg(x_15, x_1177, x_2, x_700); lean_dec(x_2); -return x_1177; +return x_1178; } else { -lean_object* x_1178; lean_object* x_1179; lean_object* x_1180; lean_object* x_1181; lean_object* x_1182; lean_object* x_1183; lean_object* x_1184; lean_object* x_1185; lean_object* x_1186; lean_object* x_1187; lean_object* x_1188; lean_object* x_1189; lean_object* x_1190; lean_object* x_1191; lean_object* x_1192; lean_object* x_1193; lean_object* x_1194; lean_object* x_1195; lean_object* x_1196; lean_object* x_1197; lean_object* x_1198; lean_object* x_1199; lean_object* x_1200; lean_object* x_1201; lean_object* x_1202; lean_object* x_1203; lean_object* x_1204; lean_object* x_1205; lean_object* x_1206; lean_object* x_1207; lean_object* x_1208; lean_object* x_1209; lean_object* x_1210; lean_object* x_1211; lean_object* x_1212; lean_object* x_1213; lean_object* x_1214; lean_object* x_1215; lean_object* x_1216; lean_object* x_1217; lean_object* x_1218; lean_object* x_1219; lean_object* x_1220; lean_object* x_1221; lean_object* x_1222; lean_object* x_1223; lean_object* x_1224; lean_object* x_1225; lean_object* x_1226; lean_object* x_1227; lean_object* x_1228; lean_object* x_1229; lean_object* x_1230; lean_object* x_1231; lean_object* x_1232; lean_object* x_1233; lean_object* x_1234; lean_object* x_1235; lean_object* x_1236; lean_object* x_1237; lean_object* x_1238; lean_object* x_1239; lean_object* x_1240; lean_object* x_1241; lean_object* x_1242; lean_object* x_1243; lean_object* x_1244; lean_object* x_1245; lean_object* x_1246; lean_object* x_1247; lean_object* x_1248; lean_object* x_1249; lean_object* x_1250; lean_object* x_1251; lean_object* x_1252; lean_object* x_1253; lean_object* x_1254; lean_object* x_1255; lean_object* x_1256; lean_object* x_1257; lean_object* x_1258; lean_object* x_1259; lean_object* x_1260; lean_object* x_1261; lean_object* x_1262; lean_object* x_1263; lean_object* x_1264; lean_object* x_1265; lean_object* x_1266; lean_object* x_1267; lean_object* x_1268; lean_object* x_1269; lean_object* x_1270; lean_object* x_1271; lean_object* x_1272; lean_object* x_1273; lean_object* x_1274; lean_object* x_1275; lean_object* x_1276; lean_object* x_1277; lean_object* x_1278; lean_object* x_1279; lean_object* x_1280; lean_object* x_1281; lean_object* x_1282; lean_object* x_1283; lean_object* x_1284; lean_object* x_1285; lean_object* x_1286; lean_object* x_1287; lean_object* x_1288; lean_object* x_1289; lean_object* x_1290; lean_object* x_1291; lean_object* x_1292; lean_object* x_1293; lean_object* x_1294; lean_object* x_1295; lean_object* x_1296; lean_object* x_1297; lean_object* x_1298; lean_object* x_1299; lean_object* x_1300; lean_object* x_1301; lean_object* x_1302; lean_object* x_1303; lean_object* x_1304; lean_object* x_1305; lean_object* x_1306; lean_object* x_1307; lean_object* x_1308; lean_object* x_1309; lean_object* x_1310; lean_object* x_1311; lean_object* x_1312; lean_object* x_1313; lean_object* x_1314; lean_object* x_1315; lean_object* x_1316; lean_object* x_1317; lean_object* x_1318; lean_object* x_1319; lean_object* x_1320; lean_object* x_1321; lean_object* x_1322; lean_object* x_1323; lean_object* x_1324; lean_object* x_1325; lean_object* x_1326; lean_object* x_1327; lean_object* x_1328; lean_object* x_1329; lean_object* x_1330; lean_object* x_1331; lean_object* x_1332; lean_object* x_1333; lean_object* x_1334; lean_object* x_1335; lean_object* x_1336; lean_object* x_1337; lean_object* x_1338; lean_object* x_1339; lean_object* x_1340; lean_object* x_1341; lean_object* x_1342; lean_object* x_1343; lean_object* x_1344; lean_object* x_1345; lean_object* x_1346; lean_object* x_1347; lean_object* x_1348; lean_object* x_1349; lean_object* x_1350; lean_object* x_1351; lean_object* x_1352; lean_object* x_1353; lean_object* x_1354; lean_object* x_1355; lean_object* x_1356; +lean_object* x_1179; lean_object* x_1180; lean_object* x_1181; lean_object* x_1182; lean_object* x_1183; lean_object* x_1184; lean_object* x_1185; lean_object* x_1186; lean_object* x_1187; lean_object* x_1188; lean_object* x_1189; lean_object* x_1190; lean_object* x_1191; lean_object* x_1192; lean_object* x_1193; lean_object* x_1194; lean_object* x_1195; lean_object* x_1196; lean_object* x_1197; lean_object* x_1198; lean_object* x_1199; lean_object* x_1200; lean_object* x_1201; lean_object* x_1202; lean_object* x_1203; lean_object* x_1204; lean_object* x_1205; lean_object* x_1206; lean_object* x_1207; lean_object* x_1208; lean_object* x_1209; lean_object* x_1210; lean_object* x_1211; lean_object* x_1212; lean_object* x_1213; lean_object* x_1214; lean_object* x_1215; lean_object* x_1216; lean_object* x_1217; lean_object* x_1218; lean_object* x_1219; lean_object* x_1220; lean_object* x_1221; lean_object* x_1222; lean_object* x_1223; lean_object* x_1224; lean_object* x_1225; lean_object* x_1226; lean_object* x_1227; lean_object* x_1228; lean_object* x_1229; lean_object* x_1230; lean_object* x_1231; lean_object* x_1232; lean_object* x_1233; lean_object* x_1234; lean_object* x_1235; lean_object* x_1236; lean_object* x_1237; lean_object* x_1238; lean_object* x_1239; lean_object* x_1240; lean_object* x_1241; lean_object* x_1242; lean_object* x_1243; lean_object* x_1244; lean_object* x_1245; lean_object* x_1246; lean_object* x_1247; lean_object* x_1248; lean_object* x_1249; lean_object* x_1250; lean_object* x_1251; lean_object* x_1252; lean_object* x_1253; lean_object* x_1254; lean_object* x_1255; lean_object* x_1256; lean_object* x_1257; lean_object* x_1258; lean_object* x_1259; lean_object* x_1260; lean_object* x_1261; lean_object* x_1262; lean_object* x_1263; lean_object* x_1264; lean_object* x_1265; lean_object* x_1266; lean_object* x_1267; lean_object* x_1268; lean_object* x_1269; lean_object* x_1270; lean_object* x_1271; lean_object* x_1272; lean_object* x_1273; lean_object* x_1274; lean_object* x_1275; lean_object* x_1276; lean_object* x_1277; lean_object* x_1278; lean_object* x_1279; lean_object* x_1280; lean_object* x_1281; lean_object* x_1282; lean_object* x_1283; lean_object* x_1284; lean_object* x_1285; lean_object* x_1286; lean_object* x_1287; lean_object* x_1288; lean_object* x_1289; lean_object* x_1290; lean_object* x_1291; lean_object* x_1292; lean_object* x_1293; lean_object* x_1294; lean_object* x_1295; lean_object* x_1296; lean_object* x_1297; lean_object* x_1298; lean_object* x_1299; lean_object* x_1300; lean_object* x_1301; lean_object* x_1302; lean_object* x_1303; lean_object* x_1304; lean_object* x_1305; lean_object* x_1306; lean_object* x_1307; lean_object* x_1308; lean_object* x_1309; lean_object* x_1310; lean_object* x_1311; lean_object* x_1312; lean_object* x_1313; lean_object* x_1314; lean_object* x_1315; lean_object* x_1316; lean_object* x_1317; lean_object* x_1318; lean_object* x_1319; lean_object* x_1320; lean_object* x_1321; lean_object* x_1322; lean_object* x_1323; lean_object* x_1324; lean_object* x_1325; lean_object* x_1326; lean_object* x_1327; lean_object* x_1328; lean_object* x_1329; lean_object* x_1330; lean_object* x_1331; lean_object* x_1332; lean_object* x_1333; lean_object* x_1334; lean_object* x_1335; lean_object* x_1336; lean_object* x_1337; lean_object* x_1338; lean_object* x_1339; lean_object* x_1340; lean_object* x_1341; lean_object* x_1342; lean_object* x_1343; lean_object* x_1344; lean_object* x_1345; lean_object* x_1346; lean_object* x_1347; lean_object* x_1348; lean_object* x_1349; lean_object* x_1350; lean_object* x_1351; lean_object* x_1352; lean_object* x_1353; lean_object* x_1354; lean_object* x_1355; lean_object* x_1356; lean_object* x_1357; lean_object* x_1358; lean_dec(x_18); -x_1178 = l_Lean_Syntax_getArg(x_15, x_4); +x_1179 = l_Lean_Syntax_getArg(x_15, x_4); lean_dec(x_15); -x_1179 = lean_ctor_get(x_2, 1); -lean_inc(x_1179); -x_1180 = lean_ctor_get(x_2, 0); +x_1180 = lean_ctor_get(x_2, 1); lean_inc(x_1180); +x_1181 = lean_ctor_get(x_2, 0); +lean_inc(x_1181); lean_dec(x_2); -x_1181 = l_Array_empty___closed__1; -x_1182 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_6, x_6, x_27, x_1181); +x_1182 = l_Array_empty___closed__1; +x_1183 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_6, x_6, x_27, x_1182); lean_dec(x_6); -x_1183 = l_Lean_nullKind___closed__2; -x_1184 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1184, 0, x_1183); -lean_ctor_set(x_1184, 1, x_1182); -x_1185 = l___private_Lean_Elab_Syntax_9__expandNotationAux___closed__2; -x_1186 = lean_array_push(x_1185, x_1184); -x_1187 = l_Lean_Elab_Term_expandArrayLit___closed__8; -lean_inc(x_703); -x_1188 = lean_array_push(x_1187, x_703); -x_1189 = l_Lean_Elab_Term_expandArrayLit___closed__9; -x_1190 = lean_array_push(x_1188, x_1189); -x_1191 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1191, 0, x_1183); -lean_ctor_set(x_1191, 1, x_1190); -x_1192 = lean_array_push(x_1186, x_1191); -x_1193 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_35, x_35, x_27, x_1181); +x_1184 = l_Lean_nullKind___closed__2; +x_1185 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1185, 0, x_1184); +lean_ctor_set(x_1185, 1, x_1183); +x_1186 = l___private_Lean_Elab_Syntax_9__expandNotationAux___closed__2; +x_1187 = lean_array_push(x_1186, x_1185); +x_1188 = l_Lean_Elab_Term_expandArrayLit___closed__8; +lean_inc(x_704); +x_1189 = lean_array_push(x_1188, x_704); +x_1190 = l_Lean_Elab_Term_expandArrayLit___closed__9; +x_1191 = lean_array_push(x_1189, x_1190); +x_1192 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1192, 0, x_1184); +lean_ctor_set(x_1192, 1, x_1191); +x_1193 = lean_array_push(x_1187, x_1192); +x_1194 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_35, x_35, x_27, x_1182); lean_dec(x_35); -x_1194 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1194, 0, x_1183); -lean_ctor_set(x_1194, 1, x_1193); -x_1195 = lean_array_push(x_1192, x_1194); -x_1196 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__3; -x_1197 = lean_array_push(x_1195, x_1196); -x_1198 = lean_array_push(x_1197, x_13); -x_1199 = l_Lean_Parser_Command_syntax___elambda__1___closed__1; -x_1200 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1200, 0, x_1199); -lean_ctor_set(x_1200, 1, x_1198); -x_1201 = lean_array_push(x_1181, x_1200); -x_1202 = l_Lean_Elab_Term_mkTermElabAttribute___closed__7; -lean_inc(x_1179); +x_1195 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1195, 0, x_1184); +lean_ctor_set(x_1195, 1, x_1194); +x_1196 = lean_array_push(x_1193, x_1195); +x_1197 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__3; +x_1198 = lean_array_push(x_1196, x_1197); +x_1199 = lean_array_push(x_1198, x_13); +x_1200 = l_Lean_Parser_Command_syntax___elambda__1___closed__1; +x_1201 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1201, 0, x_1200); +lean_ctor_set(x_1201, 1, x_1199); +x_1202 = lean_array_push(x_1182, x_1201); +x_1203 = l_Lean_Elab_Term_mkTermElabAttribute___closed__7; lean_inc(x_1180); -x_1203 = l_Lean_addMacroScope(x_1180, x_1202, x_1179); -x_1204 = lean_box(0); -x_1205 = l_Lean_SourceInfo_inhabited___closed__1; -x_1206 = l_Lean_Elab_Command_expandElab___closed__36; -x_1207 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1207, 0, x_1205); -lean_ctor_set(x_1207, 1, x_1206); -lean_ctor_set(x_1207, 2, x_1203); -lean_ctor_set(x_1207, 3, x_1204); -x_1208 = lean_array_push(x_1181, x_1207); -x_1209 = lean_array_push(x_1181, x_703); -x_1210 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1210, 0, x_1183); -lean_ctor_set(x_1210, 1, x_1209); -x_1211 = lean_array_push(x_1208, x_1210); -x_1212 = l_Lean_Parser_Command_attrInstance___elambda__1___closed__2; -x_1213 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1213, 0, x_1212); -lean_ctor_set(x_1213, 1, x_1211); -x_1214 = lean_array_push(x_1181, x_1213); -x_1215 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1215, 0, x_1183); -lean_ctor_set(x_1215, 1, x_1214); -x_1216 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__2; -x_1217 = lean_array_push(x_1216, x_1215); -x_1218 = lean_array_push(x_1217, x_1189); -x_1219 = l_Lean_Parser_Command_attributes___elambda__1___closed__2; -x_1220 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1220, 0, x_1219); -lean_ctor_set(x_1220, 1, x_1218); -x_1221 = lean_array_push(x_1181, x_1220); -x_1222 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1222, 0, x_1183); -lean_ctor_set(x_1222, 1, x_1221); -x_1223 = l_Lean_Elab_Term_elabLetDecl___closed__3; -x_1224 = lean_array_push(x_1223, x_1222); -x_1225 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__17; -x_1226 = lean_array_push(x_1224, x_1225); -x_1227 = lean_array_push(x_1226, x_1225); -x_1228 = lean_array_push(x_1227, x_1225); -x_1229 = lean_array_push(x_1228, x_1225); -x_1230 = l_Lean_Parser_Command_declModifiers___elambda__1___closed__2; -x_1231 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1231, 0, x_1230); -lean_ctor_set(x_1231, 1, x_1229); -x_1232 = lean_array_push(x_1181, x_1231); -x_1233 = l_Lean_Elab_Command_expandElab___closed__7; -lean_inc(x_1179); +lean_inc(x_1181); +x_1204 = l_Lean_addMacroScope(x_1181, x_1203, x_1180); +x_1205 = lean_box(0); +x_1206 = l_Lean_SourceInfo_inhabited___closed__1; +x_1207 = l_Lean_Elab_Command_expandElab___closed__36; +x_1208 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1208, 0, x_1206); +lean_ctor_set(x_1208, 1, x_1207); +lean_ctor_set(x_1208, 2, x_1204); +lean_ctor_set(x_1208, 3, x_1205); +x_1209 = lean_array_push(x_1182, x_1208); +x_1210 = lean_array_push(x_1182, x_704); +x_1211 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1211, 0, x_1184); +lean_ctor_set(x_1211, 1, x_1210); +x_1212 = lean_array_push(x_1209, x_1211); +x_1213 = l_Lean_Parser_Command_attrInstance___elambda__1___closed__2; +x_1214 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1214, 0, x_1213); +lean_ctor_set(x_1214, 1, x_1212); +x_1215 = lean_array_push(x_1182, x_1214); +x_1216 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1216, 0, x_1184); +lean_ctor_set(x_1216, 1, x_1215); +x_1217 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__2; +x_1218 = lean_array_push(x_1217, x_1216); +x_1219 = lean_array_push(x_1218, x_1190); +x_1220 = l_Lean_Parser_Command_attributes___elambda__1___closed__2; +x_1221 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1221, 0, x_1220); +lean_ctor_set(x_1221, 1, x_1219); +x_1222 = lean_array_push(x_1182, x_1221); +x_1223 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1223, 0, x_1184); +lean_ctor_set(x_1223, 1, x_1222); +x_1224 = l_Lean_Elab_Term_elabLetDecl___closed__3; +x_1225 = lean_array_push(x_1224, x_1223); +x_1226 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__17; +x_1227 = lean_array_push(x_1225, x_1226); +x_1228 = lean_array_push(x_1227, x_1226); +x_1229 = lean_array_push(x_1228, x_1226); +x_1230 = lean_array_push(x_1229, x_1226); +x_1231 = l_Lean_Parser_Command_declModifiers___elambda__1___closed__2; +x_1232 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1232, 0, x_1231); +lean_ctor_set(x_1232, 1, x_1230); +x_1233 = lean_array_push(x_1182, x_1232); +x_1234 = l_Lean_Elab_Command_expandElab___closed__7; lean_inc(x_1180); -x_1234 = l_Lean_addMacroScope(x_1180, x_1233, x_1179); -x_1235 = l_Lean_Elab_Command_expandElab___closed__6; -x_1236 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1236, 0, x_1205); -lean_ctor_set(x_1236, 1, x_1235); -lean_ctor_set(x_1236, 2, x_1234); -lean_ctor_set(x_1236, 3, x_1204); -x_1237 = lean_array_push(x_1181, x_1236); -x_1238 = lean_array_push(x_1237, x_1225); -x_1239 = l_Lean_Parser_Command_declId___elambda__1___closed__2; -x_1240 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1240, 0, x_1239); -lean_ctor_set(x_1240, 1, x_1238); -x_1241 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__6; -x_1242 = lean_array_push(x_1241, x_1240); -x_1243 = l_Lean_Elab_Term_mkTermElabAttribute___closed__9; -lean_inc(x_1179); +lean_inc(x_1181); +x_1235 = l_Lean_addMacroScope(x_1181, x_1234, x_1180); +x_1236 = l_Lean_Elab_Command_expandElab___closed__6; +x_1237 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1237, 0, x_1206); +lean_ctor_set(x_1237, 1, x_1236); +lean_ctor_set(x_1237, 2, x_1235); +lean_ctor_set(x_1237, 3, x_1205); +x_1238 = lean_array_push(x_1182, x_1237); +x_1239 = lean_array_push(x_1238, x_1226); +x_1240 = l_Lean_Parser_Command_declId___elambda__1___closed__2; +x_1241 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1241, 0, x_1240); +lean_ctor_set(x_1241, 1, x_1239); +x_1242 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__6; +x_1243 = lean_array_push(x_1242, x_1241); +x_1244 = l_Lean_Elab_Term_mkTermElabAttribute___closed__9; lean_inc(x_1180); -x_1244 = l_Lean_addMacroScope(x_1180, x_1243, x_1179); -x_1245 = l_Lean_Elab_Command_expandElab___closed__39; -x_1246 = l_Lean_Elab_Command_expandElab___closed__41; -x_1247 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1247, 0, x_1205); -lean_ctor_set(x_1247, 1, x_1245); -lean_ctor_set(x_1247, 2, x_1244); -lean_ctor_set(x_1247, 3, x_1246); -x_1248 = lean_array_push(x_1181, x_1247); -x_1249 = lean_array_push(x_1248, x_1225); -x_1250 = l_Lean_mkTermIdFromIdent___closed__2; -x_1251 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1251, 0, x_1250); -lean_ctor_set(x_1251, 1, x_1249); -x_1252 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__4; -x_1253 = lean_array_push(x_1252, x_1251); -x_1254 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__2; -x_1255 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1255, 0, x_1254); -lean_ctor_set(x_1255, 1, x_1253); -x_1256 = lean_array_push(x_1181, x_1255); -x_1257 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1257, 0, x_1183); -lean_ctor_set(x_1257, 1, x_1256); -x_1258 = lean_array_push(x_1223, x_1257); -x_1259 = l_Lean_Parser_Command_optDeclSig___elambda__1___closed__2; -x_1260 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1260, 0, x_1259); -lean_ctor_set(x_1260, 1, x_1258); -x_1261 = lean_array_push(x_1242, x_1260); -x_1262 = l_Lean_Elab_Command_elabMacroRulesAux___closed__15; -lean_inc(x_1179); +lean_inc(x_1181); +x_1245 = l_Lean_addMacroScope(x_1181, x_1244, x_1180); +x_1246 = l_Lean_Elab_Command_expandElab___closed__39; +x_1247 = l_Lean_Elab_Command_expandElab___closed__41; +x_1248 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1248, 0, x_1206); +lean_ctor_set(x_1248, 1, x_1246); +lean_ctor_set(x_1248, 2, x_1245); +lean_ctor_set(x_1248, 3, x_1247); +x_1249 = lean_array_push(x_1182, x_1248); +x_1250 = lean_array_push(x_1249, x_1226); +x_1251 = l_Lean_mkTermIdFromIdent___closed__2; +x_1252 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1252, 0, x_1251); +lean_ctor_set(x_1252, 1, x_1250); +x_1253 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__4; +x_1254 = lean_array_push(x_1253, x_1252); +x_1255 = l_Lean_Parser_Term_typeSpec___elambda__1___closed__2; +x_1256 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1256, 0, x_1255); +lean_ctor_set(x_1256, 1, x_1254); +x_1257 = lean_array_push(x_1182, x_1256); +x_1258 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1258, 0, x_1184); +lean_ctor_set(x_1258, 1, x_1257); +x_1259 = lean_array_push(x_1224, x_1258); +x_1260 = l_Lean_Parser_Command_optDeclSig___elambda__1___closed__2; +x_1261 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1261, 0, x_1260); +lean_ctor_set(x_1261, 1, x_1259); +x_1262 = lean_array_push(x_1243, x_1261); +x_1263 = l_Lean_Elab_Command_elabMacroRulesAux___closed__15; lean_inc(x_1180); -x_1263 = l_Lean_addMacroScope(x_1180, x_1262, x_1179); -x_1264 = l_Lean_Elab_Command_elabMacroRulesAux___closed__14; -x_1265 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1265, 0, x_1205); -lean_ctor_set(x_1265, 1, x_1264); -lean_ctor_set(x_1265, 2, x_1263); -lean_ctor_set(x_1265, 3, x_1204); -x_1266 = lean_array_push(x_1181, x_1265); -x_1267 = lean_array_push(x_1266, x_1225); -x_1268 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1268, 0, x_1250); -lean_ctor_set(x_1268, 1, x_1267); -lean_inc(x_1268); -x_1269 = lean_array_push(x_1181, x_1268); -x_1270 = l_Lean_Elab_Command_expandElab___closed__53; -lean_inc(x_1179); +lean_inc(x_1181); +x_1264 = l_Lean_addMacroScope(x_1181, x_1263, x_1180); +x_1265 = l_Lean_Elab_Command_elabMacroRulesAux___closed__14; +x_1266 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1266, 0, x_1206); +lean_ctor_set(x_1266, 1, x_1265); +lean_ctor_set(x_1266, 2, x_1264); +lean_ctor_set(x_1266, 3, x_1205); +x_1267 = lean_array_push(x_1182, x_1266); +x_1268 = lean_array_push(x_1267, x_1226); +x_1269 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1269, 0, x_1251); +lean_ctor_set(x_1269, 1, x_1268); +lean_inc(x_1269); +x_1270 = lean_array_push(x_1182, x_1269); +x_1271 = l_Lean_Elab_Command_expandElab___closed__53; lean_inc(x_1180); -x_1271 = l_Lean_addMacroScope(x_1180, x_1270, x_1179); -x_1272 = l_Lean_Elab_Command_expandElab___closed__52; -x_1273 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1273, 0, x_1205); -lean_ctor_set(x_1273, 1, x_1272); -lean_ctor_set(x_1273, 2, x_1271); -lean_ctor_set(x_1273, 3, x_1204); -x_1274 = lean_array_push(x_1181, x_1273); -x_1275 = lean_array_push(x_1274, x_1225); -x_1276 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1276, 0, x_1250); -lean_ctor_set(x_1276, 1, x_1275); -x_1277 = lean_array_push(x_1269, x_1276); +lean_inc(x_1181); +x_1272 = l_Lean_addMacroScope(x_1181, x_1271, x_1180); +x_1273 = l_Lean_Elab_Command_expandElab___closed__52; +x_1274 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1274, 0, x_1206); +lean_ctor_set(x_1274, 1, x_1273); +lean_ctor_set(x_1274, 2, x_1272); +lean_ctor_set(x_1274, 3, x_1205); +x_1275 = lean_array_push(x_1182, x_1274); +x_1276 = lean_array_push(x_1275, x_1226); +x_1277 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1277, 0, x_1251); +lean_ctor_set(x_1277, 1, x_1276); lean_inc(x_1277); -x_1278 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1278, 0, x_1183); -lean_ctor_set(x_1278, 1, x_1277); -x_1279 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; -x_1280 = lean_array_push(x_1279, x_1278); -x_1281 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; -x_1282 = lean_array_push(x_1280, x_1281); -x_1283 = l_Lean_Elab_Command_elabMacroRulesAux___closed__17; -x_1284 = lean_array_push(x_1283, x_1268); -x_1285 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__4; -x_1286 = lean_array_push(x_1284, x_1285); -x_1287 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__7; -x_1288 = lean_array_push(x_1286, x_1287); -x_1289 = l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__8; -x_1290 = lean_array_push(x_1289, x_702); -x_1291 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__6; -x_1292 = lean_array_push(x_1290, x_1291); -x_1293 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; -x_1294 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1294, 0, x_1293); -lean_ctor_set(x_1294, 1, x_1292); -x_1295 = lean_array_push(x_1181, x_1294); -x_1296 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1296, 0, x_1183); -lean_ctor_set(x_1296, 1, x_1295); -x_1297 = lean_array_push(x_1181, x_1296); -x_1298 = lean_array_push(x_1297, x_1281); -x_1299 = l_Lean_Elab_Command_expandElab___closed__58; -lean_inc(x_1179); +x_1278 = lean_array_push(x_1270, x_1277); +x_1279 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1279, 0, x_1184); +lean_ctor_set(x_1279, 1, x_1278); +x_1280 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; +x_1281 = lean_array_push(x_1280, x_1279); +x_1282 = l_Lean_Elab_Term_expandCDot_x3f___closed__4; +x_1283 = lean_array_push(x_1281, x_1282); +x_1284 = l_Lean_Elab_Command_elabMacroRulesAux___closed__17; +x_1285 = lean_array_push(x_1284, x_1269); +x_1286 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__4; +x_1287 = lean_array_push(x_1285, x_1286); +x_1288 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__7; +x_1289 = lean_array_push(x_1287, x_1288); +x_1290 = l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__8; +x_1291 = lean_array_push(x_1290, x_703); +x_1292 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__6; +x_1293 = lean_array_push(x_1291, x_1292); +x_1294 = l_Lean_Parser_Term_tacticStxQuot___elambda__1___closed__2; +x_1295 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1295, 0, x_1294); +lean_ctor_set(x_1295, 1, x_1293); +x_1296 = lean_array_push(x_1182, x_1295); +x_1297 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1297, 0, x_1184); +lean_ctor_set(x_1297, 1, x_1296); +x_1298 = lean_array_push(x_1182, x_1297); +x_1299 = lean_array_push(x_1298, x_1282); +x_1300 = l_Lean_Elab_Command_expandElab___closed__58; lean_inc(x_1180); -x_1300 = l_Lean_addMacroScope(x_1180, x_1299, x_1179); -x_1301 = l_Lean_Elab_Command_expandElab___closed__56; -x_1302 = l_Lean_Elab_Command_expandElab___closed__60; -x_1303 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1303, 0, x_1205); -lean_ctor_set(x_1303, 1, x_1301); -lean_ctor_set(x_1303, 2, x_1300); -lean_ctor_set(x_1303, 3, x_1302); -x_1304 = lean_array_push(x_1181, x_1303); -x_1305 = lean_array_push(x_1304, x_1225); -x_1306 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1306, 0, x_1250); -lean_ctor_set(x_1306, 1, x_1305); -x_1307 = lean_array_push(x_1181, x_1306); -x_1308 = lean_array_push(x_1181, x_1178); -x_1309 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1309, 0, x_1183); -lean_ctor_set(x_1309, 1, x_1308); -x_1310 = lean_array_push(x_1279, x_1309); -x_1311 = lean_array_push(x_1310, x_1281); -x_1312 = lean_array_push(x_1311, x_17); -x_1313 = l_Lean_Parser_Term_fun___elambda__1___closed__2; -x_1314 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1314, 0, x_1313); -lean_ctor_set(x_1314, 1, x_1312); -x_1315 = lean_array_push(x_1277, x_1314); +lean_inc(x_1181); +x_1301 = l_Lean_addMacroScope(x_1181, x_1300, x_1180); +x_1302 = l_Lean_Elab_Command_expandElab___closed__56; +x_1303 = l_Lean_Elab_Command_expandElab___closed__60; +x_1304 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1304, 0, x_1206); +lean_ctor_set(x_1304, 1, x_1302); +lean_ctor_set(x_1304, 2, x_1301); +lean_ctor_set(x_1304, 3, x_1303); +x_1305 = lean_array_push(x_1182, x_1304); +x_1306 = lean_array_push(x_1305, x_1226); +x_1307 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1307, 0, x_1251); +lean_ctor_set(x_1307, 1, x_1306); +x_1308 = lean_array_push(x_1182, x_1307); +x_1309 = lean_array_push(x_1182, x_1277); +x_1310 = lean_array_push(x_1182, x_1179); +x_1311 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1311, 0, x_1184); +lean_ctor_set(x_1311, 1, x_1310); +x_1312 = lean_array_push(x_1280, x_1311); +x_1313 = lean_array_push(x_1312, x_1282); +x_1314 = lean_array_push(x_1313, x_17); +x_1315 = l_Lean_Parser_Term_fun___elambda__1___closed__2; x_1316 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1316, 0, x_1183); -lean_ctor_set(x_1316, 1, x_1315); -x_1317 = lean_array_push(x_1307, x_1316); -x_1318 = l_Lean_mkAppStx___closed__8; -x_1319 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1319, 0, x_1318); -lean_ctor_set(x_1319, 1, x_1317); -x_1320 = lean_array_push(x_1298, x_1319); -x_1321 = l_Lean_Parser_Term_matchAlt___closed__2; -x_1322 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1322, 0, x_1321); -lean_ctor_set(x_1322, 1, x_1320); -x_1323 = lean_array_push(x_1181, x_1322); -x_1324 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__5; -x_1325 = lean_array_push(x_1323, x_1324); -x_1326 = l_Lean_Elab_Command_expandElab___closed__45; -x_1327 = l_Lean_addMacroScope(x_1180, x_1326, x_1179); -x_1328 = l_Lean_Elab_Command_expandElab___closed__44; -x_1329 = l_Lean_Elab_Command_expandElab___closed__47; -x_1330 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1330, 0, x_1205); -lean_ctor_set(x_1330, 1, x_1328); -lean_ctor_set(x_1330, 2, x_1327); -lean_ctor_set(x_1330, 3, x_1329); -x_1331 = lean_array_push(x_1181, x_1330); -x_1332 = lean_array_push(x_1331, x_1225); -x_1333 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1333, 0, x_1250); -lean_ctor_set(x_1333, 1, x_1332); -x_1334 = l_Lean_Elab_Command_elabMacroRulesAux___closed__19; -x_1335 = lean_array_push(x_1334, x_1333); -x_1336 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1336, 0, x_1321); -lean_ctor_set(x_1336, 1, x_1335); -x_1337 = lean_array_push(x_1325, x_1336); +lean_ctor_set(x_1316, 0, x_1315); +lean_ctor_set(x_1316, 1, x_1314); +x_1317 = lean_array_push(x_1309, x_1316); +x_1318 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1318, 0, x_1184); +lean_ctor_set(x_1318, 1, x_1317); +x_1319 = lean_array_push(x_1308, x_1318); +x_1320 = l_Lean_mkAppStx___closed__8; +x_1321 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1321, 0, x_1320); +lean_ctor_set(x_1321, 1, x_1319); +x_1322 = lean_array_push(x_1299, x_1321); +x_1323 = l_Lean_Parser_Term_matchAlt___closed__2; +x_1324 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1324, 0, x_1323); +lean_ctor_set(x_1324, 1, x_1322); +x_1325 = lean_array_push(x_1182, x_1324); +x_1326 = l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__5; +x_1327 = lean_array_push(x_1325, x_1326); +x_1328 = l_Lean_Elab_Command_expandElab___closed__45; +x_1329 = l_Lean_addMacroScope(x_1181, x_1328, x_1180); +x_1330 = l_Lean_Elab_Command_expandElab___closed__44; +x_1331 = l_Lean_Elab_Command_expandElab___closed__47; +x_1332 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1332, 0, x_1206); +lean_ctor_set(x_1332, 1, x_1330); +lean_ctor_set(x_1332, 2, x_1329); +lean_ctor_set(x_1332, 3, x_1331); +x_1333 = lean_array_push(x_1182, x_1332); +x_1334 = lean_array_push(x_1333, x_1226); +x_1335 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1335, 0, x_1251); +lean_ctor_set(x_1335, 1, x_1334); +x_1336 = l_Lean_Elab_Command_elabMacroRulesAux___closed__19; +x_1337 = lean_array_push(x_1336, x_1335); x_1338 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1338, 0, x_1183); +lean_ctor_set(x_1338, 0, x_1323); lean_ctor_set(x_1338, 1, x_1337); -x_1339 = lean_array_push(x_1288, x_1338); -x_1340 = l_Lean_Parser_Term_match__syntax___elambda__1___closed__2; -x_1341 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1341, 0, x_1340); -lean_ctor_set(x_1341, 1, x_1339); -x_1342 = lean_array_push(x_1282, x_1341); +x_1339 = lean_array_push(x_1327, x_1338); +x_1340 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1340, 0, x_1184); +lean_ctor_set(x_1340, 1, x_1339); +x_1341 = lean_array_push(x_1289, x_1340); +x_1342 = l_Lean_Parser_Term_match__syntax___elambda__1___closed__2; x_1343 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1343, 0, x_1313); -lean_ctor_set(x_1343, 1, x_1342); -x_1344 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__16; -x_1345 = lean_array_push(x_1344, x_1343); -x_1346 = l_Lean_Parser_Command_declValSimple___elambda__1___closed__2; -x_1347 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1347, 0, x_1346); -lean_ctor_set(x_1347, 1, x_1345); -x_1348 = lean_array_push(x_1261, x_1347); -x_1349 = l_Lean_Parser_Command_def___elambda__1___closed__2; -x_1350 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1350, 0, x_1349); -lean_ctor_set(x_1350, 1, x_1348); -x_1351 = lean_array_push(x_1232, x_1350); -x_1352 = l_Lean_Parser_Command_declaration___elambda__1___closed__2; -x_1353 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1353, 0, x_1352); -lean_ctor_set(x_1353, 1, x_1351); -x_1354 = lean_array_push(x_1201, x_1353); +lean_ctor_set(x_1343, 0, x_1342); +lean_ctor_set(x_1343, 1, x_1341); +x_1344 = lean_array_push(x_1283, x_1343); +x_1345 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1345, 0, x_1315); +lean_ctor_set(x_1345, 1, x_1344); +x_1346 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__16; +x_1347 = lean_array_push(x_1346, x_1345); +x_1348 = l_Lean_Parser_Command_declValSimple___elambda__1___closed__2; +x_1349 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1349, 0, x_1348); +lean_ctor_set(x_1349, 1, x_1347); +x_1350 = lean_array_push(x_1262, x_1349); +x_1351 = l_Lean_Parser_Command_def___elambda__1___closed__2; +x_1352 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1352, 0, x_1351); +lean_ctor_set(x_1352, 1, x_1350); +x_1353 = lean_array_push(x_1233, x_1352); +x_1354 = l_Lean_Parser_Command_declaration___elambda__1___closed__2; x_1355 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1355, 0, x_1183); -lean_ctor_set(x_1355, 1, x_1354); -x_1356 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1356, 0, x_1355); -lean_ctor_set(x_1356, 1, x_699); -return x_1356; +lean_ctor_set(x_1355, 0, x_1354); +lean_ctor_set(x_1355, 1, x_1353); +x_1356 = lean_array_push(x_1202, x_1355); +x_1357 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1357, 0, x_1184); +lean_ctor_set(x_1357, 1, x_1356); +x_1358 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1358, 0, x_1357); +lean_ctor_set(x_1358, 1, x_700); +return x_1358; } } } } else { -uint8_t x_1357; +uint8_t x_1359; lean_dec(x_37); lean_dec(x_35); lean_dec(x_21); @@ -20871,29 +20864,29 @@ lean_dec(x_13); lean_dec(x_6); lean_dec(x_2); lean_dec(x_1); -x_1357 = !lean_is_exclusive(x_41); -if (x_1357 == 0) +x_1359 = !lean_is_exclusive(x_41); +if (x_1359 == 0) { return x_41; } else { -lean_object* x_1358; lean_object* x_1359; lean_object* x_1360; -x_1358 = lean_ctor_get(x_41, 0); -x_1359 = lean_ctor_get(x_41, 1); -lean_inc(x_1359); -lean_inc(x_1358); +lean_object* x_1360; lean_object* x_1361; lean_object* x_1362; +x_1360 = lean_ctor_get(x_41, 0); +x_1361 = lean_ctor_get(x_41, 1); +lean_inc(x_1361); +lean_inc(x_1360); lean_dec(x_41); -x_1360 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1360, 0, x_1358); -lean_ctor_set(x_1360, 1, x_1359); -return x_1360; +x_1362 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1362, 0, x_1360); +lean_ctor_set(x_1362, 1, x_1361); +return x_1362; } } } else { -uint8_t x_1361; +uint8_t x_1363; lean_dec(x_35); lean_dec(x_26); lean_dec(x_21); @@ -20904,29 +20897,29 @@ lean_dec(x_13); lean_dec(x_6); lean_dec(x_2); lean_dec(x_1); -x_1361 = !lean_is_exclusive(x_36); -if (x_1361 == 0) +x_1363 = !lean_is_exclusive(x_36); +if (x_1363 == 0) { return x_36; } else { -lean_object* x_1362; lean_object* x_1363; lean_object* x_1364; -x_1362 = lean_ctor_get(x_36, 0); -x_1363 = lean_ctor_get(x_36, 1); -lean_inc(x_1363); -lean_inc(x_1362); +lean_object* x_1364; lean_object* x_1365; lean_object* x_1366; +x_1364 = lean_ctor_get(x_36, 0); +x_1365 = lean_ctor_get(x_36, 1); +lean_inc(x_1365); +lean_inc(x_1364); lean_dec(x_36); -x_1364 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1364, 0, x_1362); -lean_ctor_set(x_1364, 1, x_1363); -return x_1364; +x_1366 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1366, 0, x_1364); +lean_ctor_set(x_1366, 1, x_1365); +return x_1366; } } } else { -uint8_t x_1365; +uint8_t x_1367; lean_dec(x_26); lean_dec(x_24); lean_dec(x_21); @@ -20938,29 +20931,29 @@ lean_dec(x_8); lean_dec(x_6); lean_dec(x_2); lean_dec(x_1); -x_1365 = !lean_is_exclusive(x_30); -if (x_1365 == 0) +x_1367 = !lean_is_exclusive(x_30); +if (x_1367 == 0) { return x_30; } else { -lean_object* x_1366; lean_object* x_1367; lean_object* x_1368; -x_1366 = lean_ctor_get(x_30, 0); -x_1367 = lean_ctor_get(x_30, 1); -lean_inc(x_1367); -lean_inc(x_1366); +lean_object* x_1368; lean_object* x_1369; lean_object* x_1370; +x_1368 = lean_ctor_get(x_30, 0); +x_1369 = lean_ctor_get(x_30, 1); +lean_inc(x_1369); +lean_inc(x_1368); lean_dec(x_30); -x_1368 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1368, 0, x_1366); -lean_ctor_set(x_1368, 1, x_1367); -return x_1368; +x_1370 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1370, 0, x_1368); +lean_ctor_set(x_1370, 1, x_1369); +return x_1370; } } } else { -uint8_t x_1369; +uint8_t x_1371; lean_dec(x_21); lean_dec(x_18); lean_dec(x_17); @@ -20971,23 +20964,23 @@ lean_dec(x_8); lean_dec(x_6); lean_dec(x_2); lean_dec(x_1); -x_1369 = !lean_is_exclusive(x_23); -if (x_1369 == 0) +x_1371 = !lean_is_exclusive(x_23); +if (x_1371 == 0) { return x_23; } else { -lean_object* x_1370; lean_object* x_1371; lean_object* x_1372; -x_1370 = lean_ctor_get(x_23, 0); -x_1371 = lean_ctor_get(x_23, 1); -lean_inc(x_1371); -lean_inc(x_1370); +lean_object* x_1372; lean_object* x_1373; lean_object* x_1374; +x_1372 = lean_ctor_get(x_23, 0); +x_1373 = lean_ctor_get(x_23, 1); +lean_inc(x_1373); +lean_inc(x_1372); lean_dec(x_23); -x_1372 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1372, 0, x_1370); -lean_ctor_set(x_1372, 1, x_1371); -return x_1372; +x_1374 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1374, 0, x_1372); +lean_ctor_set(x_1374, 1, x_1373); +return x_1374; } } } diff --git a/stage0/stdlib/Lean/Elab/SyntheticMVars.c b/stage0/stdlib/Lean/Elab/SyntheticMVars.c index 30a9e24d39..828f3f9659 100644 --- a/stage0/stdlib/Lean/Elab/SyntheticMVars.c +++ b/stage0/stdlib/Lean/Elab/SyntheticMVars.c @@ -22,16 +22,15 @@ lean_object* l_List_filterAuxM___main___at___private_Lean_Elab_SyntheticMVars_7_ lean_object* l___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep___closed__9; lean_object* l___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep(uint8_t, uint8_t, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_6__synthesizeSyntheticMVar(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_instantiateMVars(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep___closed__8; lean_object* l_unreachable_x21___rarg(lean_object*); -lean_object* l_Lean_Elab_Term_liftTacticElabM___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_liftTacticElabM___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_runTactic___lambda__1(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_ensureAssignmentHasNoMVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_forM___main___at___private_Lean_Elab_SyntheticMVars_9__reportStuckSyntheticMVars___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_filterAuxM___main___at___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep___spec__2___closed__8; lean_object* l_Lean_mkMVar(lean_object*); -lean_object* l_Lean_Elab_Term_liftTacticElabM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_liftTacticElabM___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep___closed__10; lean_object* l___private_Lean_Elab_SyntheticMVars_2__resumePostponed___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabTermAndSynthesize(lean_object*, lean_object*, lean_object*, lean_object*); @@ -42,18 +41,18 @@ lean_object* l_Lean_Elab_Term_getMVarDecl(lean_object*, lean_object*, lean_objec lean_object* l_List_find_x3f___main___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_2__resumePostponed___lambda__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn___main(lean_object*); -lean_object* l___private_Lean_Elab_SyntheticMVars_3__synthesizePendingInstMVar___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_forM___main___at___private_Lean_Elab_SyntheticMVars_9__reportStuckSyntheticMVars___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_List_filterAuxM___main___at___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep___spec__2___closed__1; lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars(uint8_t, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_11__synthesizeSyntheticMVarsAux___main(uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_assignExprMVar(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_SyntheticMVars_3__synthesizePendingInstMVar(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_SyntheticMVars_3__synthesizePendingInstMVar(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_2__resumePostponed___closed__1; lean_object* l___private_Lean_Elab_SyntheticMVars_2__resumePostponed___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_ensureHasType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_ensureHasType(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getOptions(lean_object*, lean_object*); -lean_object* l_List_forM___main___at___private_Lean_Elab_SyntheticMVars_9__reportStuckSyntheticMVars___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_forM___main___at___private_Lean_Elab_SyntheticMVars_9__reportStuckSyntheticMVars___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Format_repr___main___closed__13; lean_object* l___private_Lean_Elab_SyntheticMVars_10__getSomeSynthethicMVarsRef___boxed(lean_object*); lean_object* l_List_filterAuxM___main___at___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep___spec__2___closed__2; @@ -63,11 +62,10 @@ lean_object* l_List_forM___main___at___private_Lean_Elab_SyntheticMVars_9__repor lean_object* l_Lean_Elab_Term_ensureAssignmentHasNoMVars___closed__3; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_11__synthesizeSyntheticMVarsAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_SyntheticMVars_5__checkWithDefault___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_filterAuxM___main___at___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep___spec__2(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_SyntheticMVars_4__synthesizePendingCoeInstMVar___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_SyntheticMVars_8__synthesizeUsingDefault___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_10__getSomeSynthethicMVarsRef(lean_object*); -lean_object* l_List_filterAuxM___main___at___private_Lean_Elab_SyntheticMVars_8__synthesizeUsingDefault___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_List_filterAuxM___main___at___private_Lean_Elab_SyntheticMVars_8__synthesizeUsingDefault___spec__1___lambda__1___closed__1; uint8_t l_Lean_Expr_hasExprMVar(lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep___closed__5; @@ -77,17 +75,16 @@ lean_object* l_List_lengthAux___main___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_getUnsolvedGoals(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep___closed__3; lean_object* l_List_filterAuxM___main___at___private_Lean_Elab_SyntheticMVars_8__synthesizeUsingDefault___spec__1___lambda__1___closed__2; -lean_object* l_Lean_Elab_Term_elabTermAux___main(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_logTrace(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_throwError___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_SyntheticMVars_3__synthesizePendingInstMVar___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_throwError___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_SyntheticMVars_3__synthesizePendingInstMVar___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_8__synthesizeUsingDefault(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_SyntheticMVars_4__synthesizePendingCoeInstMVar___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_SyntheticMVars_4__synthesizePendingCoeInstMVar___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_withIncRecDepth___rarg___closed__2; -lean_object* l___private_Lean_Elab_SyntheticMVars_5__checkWithDefault(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_filterAuxM___main___at___private_Lean_Elab_SyntheticMVars_8__synthesizeUsingDefault___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_SyntheticMVars_5__checkWithDefault(lean_object*, lean_object*, lean_object*); +lean_object* l_List_filterAuxM___main___at___private_Lean_Elab_SyntheticMVars_8__synthesizeUsingDefault___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_11__synthesizeSyntheticMVarsAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_1__resumeElabTerm___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Util_4__regTraceClasses___closed__1; @@ -95,30 +92,35 @@ lean_object* l_Lean_Elab_Term_liftTacticElabM(lean_object*); lean_object* l_ReaderT_bind___at_Lean_Elab_Term_monadLog___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withMVarContext___rarg(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; -lean_object* l_Lean_Elab_Term_runTactic(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_runTactic(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_forM___main___at___private_Lean_Elab_SyntheticMVars_9__reportStuckSyntheticMVars___spec__1___lambda__1___closed__1; -lean_object* l_Lean_Elab_Term_isDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_isDefEq(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_forM___main___at___private_Lean_Elab_SyntheticMVars_9__reportStuckSyntheticMVars___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_filterAuxM___main___at___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep___spec__2___closed__3; lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* l_List_filterAuxM___main___at___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep___spec__2___closed__5; +lean_object* l___private_Lean_Elab_SyntheticMVars_9__reportStuckSyntheticMVars___boxed(lean_object*, lean_object*); lean_object* l_List_filterAuxM___main___at___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep___spec__2___closed__6; uint8_t l_Lean_Expr_isMVar(lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_10__getSomeSynthethicMVarsRef___rarg___lambda__1___boxed(lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_9__reportStuckSyntheticMVars(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalTactic___main(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_withSynthesize(lean_object*); lean_object* l_Lean_Elab_log___at_Lean_Elab_Term_logTrace___spec__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabTerm___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep___closed__7; lean_object* l___private_Lean_Elab_SyntheticMVars_6__synthesizeSyntheticMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_filterAuxM___main___at___private_Lean_Elab_SyntheticMVars_8__synthesizeUsingDefault___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_getCurrRef(lean_object*, lean_object*); lean_object* l_List_forM___main___at___private_Lean_Elab_SyntheticMVars_9__reportStuckSyntheticMVars___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getPos(lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_2__resumePostponed(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_instantiateMVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_reportUnsolvedGoals(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_withSynthesize___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_reportUnsolvedGoals(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getTailWithPos___main(lean_object*); -lean_object* l_Lean_Elab_Term_throwTypeMismatchError___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_throwTypeMismatchError___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep___closed__1; lean_object* l___private_Lean_Elab_SyntheticMVars_11__synthesizeSyntheticMVarsAux(uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_instantiateMVarDeclMVars(lean_object*, lean_object*); @@ -129,261 +131,261 @@ lean_object* l_List_filterAuxM___main___at___private_Lean_Elab_SyntheticMVars_8_ uint8_t l_List_isEmpty___rarg(lean_object*); lean_object* l_List_filterAuxM___main___at___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep___spec__2___closed__7; lean_object* l___private_Lean_Elab_SyntheticMVars_10__getSomeSynthethicMVarsRef___rarg(lean_object*); -lean_object* l_List_forM___main___at___private_Lean_Elab_SyntheticMVars_9__reportStuckSyntheticMVars___spec__1___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_forM___main___at___private_Lean_Elab_SyntheticMVars_9__reportStuckSyntheticMVars___spec__1___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_indentExpr(lean_object*); extern lean_object* l_Lean_Format_repr___main___closed__16; lean_object* l_Lean_fmt___at___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep___spec__3___boxed(lean_object*); -lean_object* l___private_Lean_Elab_SyntheticMVars_4__synthesizePendingCoeInstMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_SyntheticMVars_4__synthesizePendingCoeInstMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_EStateM_MonadState___closed__2; lean_object* l___private_Lean_Elab_SyntheticMVars_10__getSomeSynthethicMVarsRef___rarg___closed__1; lean_object* l_List_filterAuxM___main___at___private_Lean_Elab_SyntheticMVars_8__synthesizeUsingDefault___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_fmt___at___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep___spec__3(uint8_t); lean_object* l___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep___closed__6; lean_object* l_List_forM___main___at___private_Lean_Elab_SyntheticMVars_9__reportStuckSyntheticMVars___spec__1___lambda__1___closed__3; -lean_object* l_Lean_Elab_Term_ensureAssignmentHasNoMVars(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_liftTacticElabM___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_Elab_Term_ensureAssignmentHasNoMVars(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_liftTacticElabM___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { +uint8_t x_5; +x_5 = !lean_is_exclusive(x_4); +if (x_5 == 0) +{ uint8_t x_6; -x_6 = !lean_is_exclusive(x_5); +x_6 = !lean_is_exclusive(x_3); if (x_6 == 0) { -uint8_t x_7; -x_7 = !lean_is_exclusive(x_4); -if (x_7 == 0) -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_8 = lean_ctor_get(x_5, 1); +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_7 = lean_ctor_get(x_4, 1); lean_inc(x_1); -x_9 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_9, 0, x_4); -lean_ctor_set(x_9, 1, x_1); -lean_ctor_set(x_9, 2, x_2); -x_10 = lean_box(0); -lean_ctor_set(x_5, 1, x_10); -x_11 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_11, 0, x_1); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_3); +lean_ctor_set(x_8, 1, x_1); +x_9 = lean_box(0); +lean_ctor_set(x_4, 1, x_9); +x_10 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_10, 0, x_1); +lean_ctor_set(x_10, 1, x_9); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_4); lean_ctor_set(x_11, 1, x_10); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_5); -lean_ctor_set(x_12, 1, x_11); -x_13 = lean_apply_2(x_3, x_9, x_12); -if (lean_obj_tag(x_13) == 0) +x_12 = lean_apply_2(x_2, x_8, x_11); +if (lean_obj_tag(x_12) == 0) { -lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_14 = lean_ctor_get(x_13, 1); +lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +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); -x_16 = !lean_is_exclusive(x_13); -if (x_16 == 0) +lean_dec(x_13); +x_15 = !lean_is_exclusive(x_12); +if (x_15 == 0) { -lean_object* x_17; uint8_t x_18; -x_17 = lean_ctor_get(x_13, 1); -lean_dec(x_17); -x_18 = !lean_is_exclusive(x_15); -if (x_18 == 0) +lean_object* x_16; uint8_t x_17; +x_16 = lean_ctor_get(x_12, 1); +lean_dec(x_16); +x_17 = !lean_is_exclusive(x_14); +if (x_17 == 0) { -lean_object* x_19; -x_19 = lean_ctor_get(x_15, 1); -lean_dec(x_19); -lean_ctor_set(x_15, 1, x_8); -lean_ctor_set(x_13, 1, x_15); -return x_13; +lean_object* x_18; +x_18 = lean_ctor_get(x_14, 1); +lean_dec(x_18); +lean_ctor_set(x_14, 1, x_7); +lean_ctor_set(x_12, 1, x_14); +return x_12; } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_20 = lean_ctor_get(x_15, 0); -x_21 = lean_ctor_get(x_15, 2); -x_22 = lean_ctor_get(x_15, 3); -x_23 = lean_ctor_get(x_15, 4); -x_24 = lean_ctor_get(x_15, 5); -lean_inc(x_24); +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_19 = lean_ctor_get(x_14, 0); +x_20 = lean_ctor_get(x_14, 2); +x_21 = lean_ctor_get(x_14, 3); +x_22 = lean_ctor_get(x_14, 4); +x_23 = lean_ctor_get(x_14, 5); lean_inc(x_23); lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); -lean_dec(x_15); -x_25 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_25, 0, x_20); -lean_ctor_set(x_25, 1, x_8); -lean_ctor_set(x_25, 2, x_21); -lean_ctor_set(x_25, 3, x_22); -lean_ctor_set(x_25, 4, x_23); -lean_ctor_set(x_25, 5, x_24); -lean_ctor_set(x_13, 1, x_25); -return x_13; +lean_inc(x_19); +lean_dec(x_14); +x_24 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_24, 0, x_19); +lean_ctor_set(x_24, 1, x_7); +lean_ctor_set(x_24, 2, x_20); +lean_ctor_set(x_24, 3, x_21); +lean_ctor_set(x_24, 4, x_22); +lean_ctor_set(x_24, 5, x_23); +lean_ctor_set(x_12, 1, x_24); +return x_12; } } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_26 = lean_ctor_get(x_13, 0); +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_25 = lean_ctor_get(x_12, 0); +lean_inc(x_25); +lean_dec(x_12); +x_26 = lean_ctor_get(x_14, 0); lean_inc(x_26); -lean_dec(x_13); -x_27 = lean_ctor_get(x_15, 0); +x_27 = lean_ctor_get(x_14, 2); lean_inc(x_27); -x_28 = lean_ctor_get(x_15, 2); +x_28 = lean_ctor_get(x_14, 3); lean_inc(x_28); -x_29 = lean_ctor_get(x_15, 3); +x_29 = lean_ctor_get(x_14, 4); lean_inc(x_29); -x_30 = lean_ctor_get(x_15, 4); +x_30 = lean_ctor_get(x_14, 5); lean_inc(x_30); -x_31 = lean_ctor_get(x_15, 5); -lean_inc(x_31); -if (lean_is_exclusive(x_15)) { - lean_ctor_release(x_15, 0); - lean_ctor_release(x_15, 1); - lean_ctor_release(x_15, 2); - lean_ctor_release(x_15, 3); - lean_ctor_release(x_15, 4); - lean_ctor_release(x_15, 5); - x_32 = x_15; +if (lean_is_exclusive(x_14)) { + lean_ctor_release(x_14, 0); + lean_ctor_release(x_14, 1); + lean_ctor_release(x_14, 2); + lean_ctor_release(x_14, 3); + lean_ctor_release(x_14, 4); + lean_ctor_release(x_14, 5); + x_31 = x_14; } else { - lean_dec_ref(x_15); - x_32 = lean_box(0); + lean_dec_ref(x_14); + x_31 = lean_box(0); } -if (lean_is_scalar(x_32)) { - x_33 = lean_alloc_ctor(0, 6, 0); +if (lean_is_scalar(x_31)) { + x_32 = lean_alloc_ctor(0, 6, 0); } else { - x_33 = x_32; + x_32 = x_31; } -lean_ctor_set(x_33, 0, x_27); -lean_ctor_set(x_33, 1, x_8); -lean_ctor_set(x_33, 2, x_28); -lean_ctor_set(x_33, 3, x_29); -lean_ctor_set(x_33, 4, x_30); -lean_ctor_set(x_33, 5, x_31); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_26); -lean_ctor_set(x_34, 1, x_33); -return x_34; +lean_ctor_set(x_32, 0, x_26); +lean_ctor_set(x_32, 1, x_7); +lean_ctor_set(x_32, 2, x_27); +lean_ctor_set(x_32, 3, x_28); +lean_ctor_set(x_32, 4, x_29); +lean_ctor_set(x_32, 5, x_30); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_25); +lean_ctor_set(x_33, 1, x_32); +return x_33; } } else { -uint8_t x_35; -x_35 = !lean_is_exclusive(x_13); -if (x_35 == 0) +uint8_t x_34; +x_34 = !lean_is_exclusive(x_12); +if (x_34 == 0) { -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; -x_36 = lean_ctor_get(x_13, 0); -x_37 = lean_ctor_get(x_13, 1); -x_38 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_38, 0, x_36); -x_39 = lean_ctor_get(x_37, 0); -lean_inc(x_39); -lean_dec(x_37); -x_40 = !lean_is_exclusive(x_39); -if (x_40 == 0) +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_35 = lean_ctor_get(x_12, 0); +x_36 = lean_ctor_get(x_12, 1); +x_37 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_37, 0, x_35); +x_38 = lean_ctor_get(x_36, 0); +lean_inc(x_38); +lean_dec(x_36); +x_39 = !lean_is_exclusive(x_38); +if (x_39 == 0) { -lean_object* x_41; -x_41 = lean_ctor_get(x_39, 1); -lean_dec(x_41); -lean_ctor_set(x_39, 1, x_8); -lean_ctor_set(x_13, 1, x_39); -lean_ctor_set(x_13, 0, x_38); -return x_13; +lean_object* x_40; +x_40 = lean_ctor_get(x_38, 1); +lean_dec(x_40); +lean_ctor_set(x_38, 1, x_7); +lean_ctor_set(x_12, 1, x_38); +lean_ctor_set(x_12, 0, x_37); +return x_12; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_42 = lean_ctor_get(x_39, 0); -x_43 = lean_ctor_get(x_39, 2); -x_44 = lean_ctor_get(x_39, 3); -x_45 = lean_ctor_get(x_39, 4); -x_46 = lean_ctor_get(x_39, 5); -lean_inc(x_46); +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_41 = lean_ctor_get(x_38, 0); +x_42 = lean_ctor_get(x_38, 2); +x_43 = lean_ctor_get(x_38, 3); +x_44 = lean_ctor_get(x_38, 4); +x_45 = lean_ctor_get(x_38, 5); lean_inc(x_45); lean_inc(x_44); lean_inc(x_43); lean_inc(x_42); -lean_dec(x_39); -x_47 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_47, 0, x_42); -lean_ctor_set(x_47, 1, x_8); -lean_ctor_set(x_47, 2, x_43); -lean_ctor_set(x_47, 3, x_44); -lean_ctor_set(x_47, 4, x_45); -lean_ctor_set(x_47, 5, x_46); -lean_ctor_set(x_13, 1, x_47); -lean_ctor_set(x_13, 0, x_38); -return x_13; +lean_inc(x_41); +lean_dec(x_38); +x_46 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_46, 0, x_41); +lean_ctor_set(x_46, 1, x_7); +lean_ctor_set(x_46, 2, x_42); +lean_ctor_set(x_46, 3, x_43); +lean_ctor_set(x_46, 4, x_44); +lean_ctor_set(x_46, 5, x_45); +lean_ctor_set(x_12, 1, x_46); +lean_ctor_set(x_12, 0, x_37); +return x_12; } } else { -lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_48 = lean_ctor_get(x_13, 0); -x_49 = lean_ctor_get(x_13, 1); -lean_inc(x_49); +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_47 = lean_ctor_get(x_12, 0); +x_48 = lean_ctor_get(x_12, 1); lean_inc(x_48); -lean_dec(x_13); -x_50 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_50, 0, x_48); -x_51 = lean_ctor_get(x_49, 0); +lean_inc(x_47); +lean_dec(x_12); +x_49 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_49, 0, x_47); +x_50 = lean_ctor_get(x_48, 0); +lean_inc(x_50); +lean_dec(x_48); +x_51 = lean_ctor_get(x_50, 0); lean_inc(x_51); -lean_dec(x_49); -x_52 = lean_ctor_get(x_51, 0); +x_52 = lean_ctor_get(x_50, 2); lean_inc(x_52); -x_53 = lean_ctor_get(x_51, 2); +x_53 = lean_ctor_get(x_50, 3); lean_inc(x_53); -x_54 = lean_ctor_get(x_51, 3); +x_54 = lean_ctor_get(x_50, 4); lean_inc(x_54); -x_55 = lean_ctor_get(x_51, 4); +x_55 = lean_ctor_get(x_50, 5); lean_inc(x_55); -x_56 = lean_ctor_get(x_51, 5); -lean_inc(x_56); -if (lean_is_exclusive(x_51)) { - lean_ctor_release(x_51, 0); - lean_ctor_release(x_51, 1); - lean_ctor_release(x_51, 2); - lean_ctor_release(x_51, 3); - lean_ctor_release(x_51, 4); - lean_ctor_release(x_51, 5); - x_57 = x_51; +if (lean_is_exclusive(x_50)) { + lean_ctor_release(x_50, 0); + lean_ctor_release(x_50, 1); + lean_ctor_release(x_50, 2); + lean_ctor_release(x_50, 3); + lean_ctor_release(x_50, 4); + lean_ctor_release(x_50, 5); + x_56 = x_50; } else { - lean_dec_ref(x_51); - x_57 = lean_box(0); + lean_dec_ref(x_50); + x_56 = lean_box(0); } -if (lean_is_scalar(x_57)) { - x_58 = lean_alloc_ctor(0, 6, 0); +if (lean_is_scalar(x_56)) { + x_57 = lean_alloc_ctor(0, 6, 0); } else { - x_58 = x_57; + x_57 = x_56; } -lean_ctor_set(x_58, 0, x_52); -lean_ctor_set(x_58, 1, x_8); -lean_ctor_set(x_58, 2, x_53); -lean_ctor_set(x_58, 3, x_54); -lean_ctor_set(x_58, 4, x_55); -lean_ctor_set(x_58, 5, x_56); -x_59 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_59, 0, x_50); -lean_ctor_set(x_59, 1, x_58); -return x_59; +lean_ctor_set(x_57, 0, x_51); +lean_ctor_set(x_57, 1, x_7); +lean_ctor_set(x_57, 2, x_52); +lean_ctor_set(x_57, 3, x_53); +lean_ctor_set(x_57, 4, x_54); +lean_ctor_set(x_57, 5, x_55); +x_58 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_58, 0, x_49); +lean_ctor_set(x_58, 1, x_57); +return x_58; } } } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; uint8_t x_72; uint8_t 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_60 = lean_ctor_get(x_5, 1); -x_61 = lean_ctor_get(x_4, 0); -x_62 = lean_ctor_get(x_4, 1); -x_63 = lean_ctor_get(x_4, 2); -x_64 = lean_ctor_get(x_4, 3); -x_65 = lean_ctor_get(x_4, 4); -x_66 = lean_ctor_get(x_4, 5); -x_67 = lean_ctor_get(x_4, 6); -x_68 = lean_ctor_get(x_4, 7); -x_69 = lean_ctor_get(x_4, 8); -x_70 = lean_ctor_get(x_4, 9); -x_71 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); -x_72 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); -x_73 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 2); -lean_inc(x_70); +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; uint8_t x_71; uint8_t 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_59 = lean_ctor_get(x_4, 1); +x_60 = lean_ctor_get(x_3, 0); +x_61 = lean_ctor_get(x_3, 1); +x_62 = lean_ctor_get(x_3, 2); +x_63 = lean_ctor_get(x_3, 3); +x_64 = lean_ctor_get(x_3, 4); +x_65 = lean_ctor_get(x_3, 5); +x_66 = lean_ctor_get(x_3, 6); +x_67 = lean_ctor_get(x_3, 7); +x_68 = lean_ctor_get(x_3, 8); +x_69 = lean_ctor_get(x_3, 9); +x_70 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_71 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_72 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +x_73 = lean_ctor_get(x_3, 10); +lean_inc(x_73); lean_inc(x_69); lean_inc(x_68); lean_inc(x_67); @@ -393,35 +395,36 @@ lean_inc(x_64); lean_inc(x_63); lean_inc(x_62); lean_inc(x_61); -lean_dec(x_4); -x_74 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_74, 0, x_61); -lean_ctor_set(x_74, 1, x_62); -lean_ctor_set(x_74, 2, x_63); -lean_ctor_set(x_74, 3, x_64); -lean_ctor_set(x_74, 4, x_65); -lean_ctor_set(x_74, 5, x_66); -lean_ctor_set(x_74, 6, x_67); -lean_ctor_set(x_74, 7, x_68); -lean_ctor_set(x_74, 8, x_69); -lean_ctor_set(x_74, 9, x_70); -lean_ctor_set_uint8(x_74, sizeof(void*)*10, x_71); -lean_ctor_set_uint8(x_74, sizeof(void*)*10 + 1, x_72); -lean_ctor_set_uint8(x_74, sizeof(void*)*10 + 2, x_73); +lean_inc(x_60); +lean_dec(x_3); +x_74 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_74, 0, x_60); +lean_ctor_set(x_74, 1, x_61); +lean_ctor_set(x_74, 2, x_62); +lean_ctor_set(x_74, 3, x_63); +lean_ctor_set(x_74, 4, x_64); +lean_ctor_set(x_74, 5, x_65); +lean_ctor_set(x_74, 6, x_66); +lean_ctor_set(x_74, 7, x_67); +lean_ctor_set(x_74, 8, x_68); +lean_ctor_set(x_74, 9, x_69); +lean_ctor_set(x_74, 10, x_73); +lean_ctor_set_uint8(x_74, sizeof(void*)*11, x_70); +lean_ctor_set_uint8(x_74, sizeof(void*)*11 + 1, x_71); +lean_ctor_set_uint8(x_74, sizeof(void*)*11 + 2, x_72); lean_inc(x_1); -x_75 = lean_alloc_ctor(0, 3, 0); +x_75 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_75, 0, x_74); lean_ctor_set(x_75, 1, x_1); -lean_ctor_set(x_75, 2, x_2); x_76 = lean_box(0); -lean_ctor_set(x_5, 1, x_76); +lean_ctor_set(x_4, 1, x_76); x_77 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_77, 0, x_1); lean_ctor_set(x_77, 1, x_76); x_78 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_78, 0, x_5); +lean_ctor_set(x_78, 0, x_4); lean_ctor_set(x_78, 1, x_77); -x_79 = lean_apply_2(x_3, x_75, x_78); +x_79 = lean_apply_2(x_2, x_75, x_78); if (lean_obj_tag(x_79) == 0) { lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; @@ -468,7 +471,7 @@ if (lean_is_scalar(x_89)) { x_90 = x_89; } lean_ctor_set(x_90, 0, x_84); -lean_ctor_set(x_90, 1, x_60); +lean_ctor_set(x_90, 1, x_59); lean_ctor_set(x_90, 2, x_85); lean_ctor_set(x_90, 3, x_86); lean_ctor_set(x_90, 4, x_87); @@ -530,7 +533,7 @@ if (lean_is_scalar(x_102)) { x_103 = x_102; } lean_ctor_set(x_103, 0, x_97); -lean_ctor_set(x_103, 1, x_60); +lean_ctor_set(x_103, 1, x_59); lean_ctor_set(x_103, 2, x_98); lean_ctor_set(x_103, 3, x_99); lean_ctor_set(x_103, 4, x_100); @@ -548,241 +551,243 @@ return x_104; } else { -lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; uint8_t x_122; uint8_t x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; -x_105 = lean_ctor_get(x_5, 0); -x_106 = lean_ctor_get(x_5, 1); -x_107 = lean_ctor_get(x_5, 2); -x_108 = lean_ctor_get(x_5, 3); -x_109 = lean_ctor_get(x_5, 4); -x_110 = lean_ctor_get(x_5, 5); +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; uint8_t x_122; uint8_t x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; +x_105 = lean_ctor_get(x_4, 0); +x_106 = lean_ctor_get(x_4, 1); +x_107 = lean_ctor_get(x_4, 2); +x_108 = lean_ctor_get(x_4, 3); +x_109 = lean_ctor_get(x_4, 4); +x_110 = lean_ctor_get(x_4, 5); lean_inc(x_110); lean_inc(x_109); lean_inc(x_108); lean_inc(x_107); lean_inc(x_106); lean_inc(x_105); -lean_dec(x_5); -x_111 = lean_ctor_get(x_4, 0); +lean_dec(x_4); +x_111 = lean_ctor_get(x_3, 0); lean_inc(x_111); -x_112 = lean_ctor_get(x_4, 1); +x_112 = lean_ctor_get(x_3, 1); lean_inc(x_112); -x_113 = lean_ctor_get(x_4, 2); +x_113 = lean_ctor_get(x_3, 2); lean_inc(x_113); -x_114 = lean_ctor_get(x_4, 3); +x_114 = lean_ctor_get(x_3, 3); lean_inc(x_114); -x_115 = lean_ctor_get(x_4, 4); +x_115 = lean_ctor_get(x_3, 4); lean_inc(x_115); -x_116 = lean_ctor_get(x_4, 5); +x_116 = lean_ctor_get(x_3, 5); lean_inc(x_116); -x_117 = lean_ctor_get(x_4, 6); +x_117 = lean_ctor_get(x_3, 6); lean_inc(x_117); -x_118 = lean_ctor_get(x_4, 7); +x_118 = lean_ctor_get(x_3, 7); lean_inc(x_118); -x_119 = lean_ctor_get(x_4, 8); +x_119 = lean_ctor_get(x_3, 8); lean_inc(x_119); -x_120 = lean_ctor_get(x_4, 9); +x_120 = lean_ctor_get(x_3, 9); lean_inc(x_120); -x_121 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); -x_122 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); -x_123 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 2); -if (lean_is_exclusive(x_4)) { - lean_ctor_release(x_4, 0); - lean_ctor_release(x_4, 1); - lean_ctor_release(x_4, 2); - lean_ctor_release(x_4, 3); - lean_ctor_release(x_4, 4); - lean_ctor_release(x_4, 5); - lean_ctor_release(x_4, 6); - lean_ctor_release(x_4, 7); - lean_ctor_release(x_4, 8); - lean_ctor_release(x_4, 9); - x_124 = x_4; +x_121 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_122 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_123 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +x_124 = lean_ctor_get(x_3, 10); +lean_inc(x_124); +if (lean_is_exclusive(x_3)) { + lean_ctor_release(x_3, 0); + lean_ctor_release(x_3, 1); + lean_ctor_release(x_3, 2); + lean_ctor_release(x_3, 3); + lean_ctor_release(x_3, 4); + lean_ctor_release(x_3, 5); + lean_ctor_release(x_3, 6); + lean_ctor_release(x_3, 7); + lean_ctor_release(x_3, 8); + lean_ctor_release(x_3, 9); + lean_ctor_release(x_3, 10); + x_125 = x_3; } else { - lean_dec_ref(x_4); - x_124 = lean_box(0); + lean_dec_ref(x_3); + x_125 = lean_box(0); } -if (lean_is_scalar(x_124)) { - x_125 = lean_alloc_ctor(0, 10, 3); +if (lean_is_scalar(x_125)) { + x_126 = lean_alloc_ctor(0, 11, 3); } else { - x_125 = x_124; + x_126 = x_125; } -lean_ctor_set(x_125, 0, x_111); -lean_ctor_set(x_125, 1, x_112); -lean_ctor_set(x_125, 2, x_113); -lean_ctor_set(x_125, 3, x_114); -lean_ctor_set(x_125, 4, x_115); -lean_ctor_set(x_125, 5, x_116); -lean_ctor_set(x_125, 6, x_117); -lean_ctor_set(x_125, 7, x_118); -lean_ctor_set(x_125, 8, x_119); -lean_ctor_set(x_125, 9, x_120); -lean_ctor_set_uint8(x_125, sizeof(void*)*10, x_121); -lean_ctor_set_uint8(x_125, sizeof(void*)*10 + 1, x_122); -lean_ctor_set_uint8(x_125, sizeof(void*)*10 + 2, x_123); +lean_ctor_set(x_126, 0, x_111); +lean_ctor_set(x_126, 1, x_112); +lean_ctor_set(x_126, 2, x_113); +lean_ctor_set(x_126, 3, x_114); +lean_ctor_set(x_126, 4, x_115); +lean_ctor_set(x_126, 5, x_116); +lean_ctor_set(x_126, 6, x_117); +lean_ctor_set(x_126, 7, x_118); +lean_ctor_set(x_126, 8, x_119); +lean_ctor_set(x_126, 9, x_120); +lean_ctor_set(x_126, 10, x_124); +lean_ctor_set_uint8(x_126, sizeof(void*)*11, x_121); +lean_ctor_set_uint8(x_126, sizeof(void*)*11 + 1, x_122); +lean_ctor_set_uint8(x_126, sizeof(void*)*11 + 2, x_123); lean_inc(x_1); -x_126 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_1); -lean_ctor_set(x_126, 2, x_2); -x_127 = lean_box(0); -x_128 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_128, 0, x_105); -lean_ctor_set(x_128, 1, x_127); -lean_ctor_set(x_128, 2, x_107); -lean_ctor_set(x_128, 3, x_108); -lean_ctor_set(x_128, 4, x_109); -lean_ctor_set(x_128, 5, x_110); -x_129 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_129, 0, x_1); -lean_ctor_set(x_129, 1, x_127); -x_130 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_130, 0, x_128); -lean_ctor_set(x_130, 1, x_129); -x_131 = lean_apply_2(x_3, x_126, x_130); -if (lean_obj_tag(x_131) == 0) +x_127 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_127, 0, x_126); +lean_ctor_set(x_127, 1, x_1); +x_128 = lean_box(0); +x_129 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_129, 0, x_105); +lean_ctor_set(x_129, 1, x_128); +lean_ctor_set(x_129, 2, x_107); +lean_ctor_set(x_129, 3, x_108); +lean_ctor_set(x_129, 4, x_109); +lean_ctor_set(x_129, 5, x_110); +x_130 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_130, 0, x_1); +lean_ctor_set(x_130, 1, x_128); +x_131 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_131, 0, x_129); +lean_ctor_set(x_131, 1, x_130); +x_132 = lean_apply_2(x_2, x_127, x_131); +if (lean_obj_tag(x_132) == 0) { -lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; -x_132 = lean_ctor_get(x_131, 1); -lean_inc(x_132); -x_133 = lean_ctor_get(x_132, 0); +lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; +x_133 = lean_ctor_get(x_132, 1); lean_inc(x_133); -lean_dec(x_132); -x_134 = lean_ctor_get(x_131, 0); +x_134 = lean_ctor_get(x_133, 0); lean_inc(x_134); -if (lean_is_exclusive(x_131)) { - lean_ctor_release(x_131, 0); - lean_ctor_release(x_131, 1); - x_135 = x_131; +lean_dec(x_133); +x_135 = lean_ctor_get(x_132, 0); +lean_inc(x_135); +if (lean_is_exclusive(x_132)) { + lean_ctor_release(x_132, 0); + lean_ctor_release(x_132, 1); + x_136 = x_132; } else { - lean_dec_ref(x_131); - x_135 = lean_box(0); + lean_dec_ref(x_132); + x_136 = lean_box(0); } -x_136 = lean_ctor_get(x_133, 0); -lean_inc(x_136); -x_137 = lean_ctor_get(x_133, 2); +x_137 = lean_ctor_get(x_134, 0); lean_inc(x_137); -x_138 = lean_ctor_get(x_133, 3); +x_138 = lean_ctor_get(x_134, 2); lean_inc(x_138); -x_139 = lean_ctor_get(x_133, 4); +x_139 = lean_ctor_get(x_134, 3); lean_inc(x_139); -x_140 = lean_ctor_get(x_133, 5); +x_140 = lean_ctor_get(x_134, 4); lean_inc(x_140); -if (lean_is_exclusive(x_133)) { - lean_ctor_release(x_133, 0); - lean_ctor_release(x_133, 1); - lean_ctor_release(x_133, 2); - lean_ctor_release(x_133, 3); - lean_ctor_release(x_133, 4); - lean_ctor_release(x_133, 5); - x_141 = x_133; +x_141 = lean_ctor_get(x_134, 5); +lean_inc(x_141); +if (lean_is_exclusive(x_134)) { + lean_ctor_release(x_134, 0); + lean_ctor_release(x_134, 1); + lean_ctor_release(x_134, 2); + lean_ctor_release(x_134, 3); + lean_ctor_release(x_134, 4); + lean_ctor_release(x_134, 5); + x_142 = x_134; } else { - lean_dec_ref(x_133); - x_141 = lean_box(0); + lean_dec_ref(x_134); + x_142 = lean_box(0); } -if (lean_is_scalar(x_141)) { - x_142 = lean_alloc_ctor(0, 6, 0); +if (lean_is_scalar(x_142)) { + x_143 = lean_alloc_ctor(0, 6, 0); } else { - x_142 = x_141; + x_143 = x_142; } -lean_ctor_set(x_142, 0, x_136); -lean_ctor_set(x_142, 1, x_106); -lean_ctor_set(x_142, 2, x_137); -lean_ctor_set(x_142, 3, x_138); -lean_ctor_set(x_142, 4, x_139); -lean_ctor_set(x_142, 5, x_140); -if (lean_is_scalar(x_135)) { - x_143 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_143, 0, x_137); +lean_ctor_set(x_143, 1, x_106); +lean_ctor_set(x_143, 2, x_138); +lean_ctor_set(x_143, 3, x_139); +lean_ctor_set(x_143, 4, x_140); +lean_ctor_set(x_143, 5, x_141); +if (lean_is_scalar(x_136)) { + x_144 = lean_alloc_ctor(0, 2, 0); } else { - x_143 = x_135; + x_144 = x_136; } -lean_ctor_set(x_143, 0, x_134); -lean_ctor_set(x_143, 1, x_142); -return x_143; +lean_ctor_set(x_144, 0, x_135); +lean_ctor_set(x_144, 1, x_143); +return x_144; } else { -lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; -x_144 = lean_ctor_get(x_131, 0); -lean_inc(x_144); -x_145 = lean_ctor_get(x_131, 1); +lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; +x_145 = lean_ctor_get(x_132, 0); lean_inc(x_145); -if (lean_is_exclusive(x_131)) { - lean_ctor_release(x_131, 0); - lean_ctor_release(x_131, 1); - x_146 = x_131; +x_146 = lean_ctor_get(x_132, 1); +lean_inc(x_146); +if (lean_is_exclusive(x_132)) { + lean_ctor_release(x_132, 0); + lean_ctor_release(x_132, 1); + x_147 = x_132; } else { - lean_dec_ref(x_131); - x_146 = lean_box(0); + lean_dec_ref(x_132); + x_147 = lean_box(0); } -x_147 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_147, 0, x_144); -x_148 = lean_ctor_get(x_145, 0); -lean_inc(x_148); -lean_dec(x_145); -x_149 = lean_ctor_get(x_148, 0); +x_148 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_148, 0, x_145); +x_149 = lean_ctor_get(x_146, 0); lean_inc(x_149); -x_150 = lean_ctor_get(x_148, 2); +lean_dec(x_146); +x_150 = lean_ctor_get(x_149, 0); lean_inc(x_150); -x_151 = lean_ctor_get(x_148, 3); +x_151 = lean_ctor_get(x_149, 2); lean_inc(x_151); -x_152 = lean_ctor_get(x_148, 4); +x_152 = lean_ctor_get(x_149, 3); lean_inc(x_152); -x_153 = lean_ctor_get(x_148, 5); +x_153 = lean_ctor_get(x_149, 4); lean_inc(x_153); -if (lean_is_exclusive(x_148)) { - lean_ctor_release(x_148, 0); - lean_ctor_release(x_148, 1); - lean_ctor_release(x_148, 2); - lean_ctor_release(x_148, 3); - lean_ctor_release(x_148, 4); - lean_ctor_release(x_148, 5); - x_154 = x_148; +x_154 = lean_ctor_get(x_149, 5); +lean_inc(x_154); +if (lean_is_exclusive(x_149)) { + lean_ctor_release(x_149, 0); + lean_ctor_release(x_149, 1); + lean_ctor_release(x_149, 2); + lean_ctor_release(x_149, 3); + lean_ctor_release(x_149, 4); + lean_ctor_release(x_149, 5); + x_155 = x_149; } else { - lean_dec_ref(x_148); - x_154 = lean_box(0); + lean_dec_ref(x_149); + x_155 = lean_box(0); } -if (lean_is_scalar(x_154)) { - x_155 = lean_alloc_ctor(0, 6, 0); +if (lean_is_scalar(x_155)) { + x_156 = lean_alloc_ctor(0, 6, 0); } else { - x_155 = x_154; + x_156 = x_155; } -lean_ctor_set(x_155, 0, x_149); -lean_ctor_set(x_155, 1, x_106); -lean_ctor_set(x_155, 2, x_150); -lean_ctor_set(x_155, 3, x_151); -lean_ctor_set(x_155, 4, x_152); -lean_ctor_set(x_155, 5, x_153); -if (lean_is_scalar(x_146)) { - x_156 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_156, 0, x_150); +lean_ctor_set(x_156, 1, x_106); +lean_ctor_set(x_156, 2, x_151); +lean_ctor_set(x_156, 3, x_152); +lean_ctor_set(x_156, 4, x_153); +lean_ctor_set(x_156, 5, x_154); +if (lean_is_scalar(x_147)) { + x_157 = lean_alloc_ctor(1, 2, 0); } else { - x_156 = x_146; + x_157 = x_147; } -lean_ctor_set(x_156, 0, x_147); -lean_ctor_set(x_156, 1, x_155); -return x_156; +lean_ctor_set(x_157, 0, x_148); +lean_ctor_set(x_157, 1, x_156); +return x_157; } } } } -lean_object* l_Lean_Elab_Term_liftTacticElabM___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_Elab_Term_liftTacticElabM___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_6; lean_object* x_7; -lean_inc(x_2); -x_6 = lean_alloc_closure((void*)(l_Lean_Elab_Term_liftTacticElabM___rarg___lambda__1), 5, 3); -lean_closure_set(x_6, 0, x_2); -lean_closure_set(x_6, 1, x_1); -lean_closure_set(x_6, 2, x_3); -x_7 = l_Lean_Elab_Term_withMVarContext___rarg(x_2, x_6, x_4, x_5); -lean_dec(x_2); -return x_7; +lean_object* x_5; lean_object* x_6; +lean_inc(x_1); +x_5 = lean_alloc_closure((void*)(l_Lean_Elab_Term_liftTacticElabM___rarg___lambda__1), 4, 2); +lean_closure_set(x_5, 0, x_1); +lean_closure_set(x_5, 1, x_2); +x_6 = l_Lean_Elab_Term_withMVarContext___rarg(x_1, x_5, x_3, x_4); +lean_dec(x_1); +return x_6; } } lean_object* l_Lean_Elab_Term_liftTacticElabM(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_liftTacticElabM___rarg), 5, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_liftTacticElabM___rarg), 4, 0); return x_2; } } @@ -814,88 +819,79 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Lean_Elab_Term_ensureAssignmentHasNoMVars(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Term_ensureAssignmentHasNoMVars(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; lean_object* x_6; uint8_t x_7; -x_5 = l_Lean_mkMVar(x_2); -lean_inc(x_3); -x_6 = l_Lean_Elab_Term_instantiateMVars(x_1, x_5, x_3, x_4); -x_7 = !lean_is_exclusive(x_6); -if (x_7 == 0) +lean_object* x_4; lean_object* x_5; uint8_t x_6; +x_4 = l_Lean_mkMVar(x_1); +lean_inc(x_2); +x_5 = l_Lean_Elab_Term_instantiateMVars(x_4, x_2, x_3); +x_6 = !lean_is_exclusive(x_5); +if (x_6 == 0) { -lean_object* x_8; lean_object* x_9; uint8_t x_10; -x_8 = lean_ctor_get(x_6, 0); -x_9 = lean_ctor_get(x_6, 1); -x_10 = l_Lean_Expr_hasExprMVar(x_8); -if (x_10 == 0) +lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_7 = lean_ctor_get(x_5, 0); +x_8 = lean_ctor_get(x_5, 1); +x_9 = l_Lean_Expr_hasExprMVar(x_7); +if (x_9 == 0) { -lean_object* x_11; -lean_dec(x_8); -lean_dec(x_3); -x_11 = lean_box(0); -lean_ctor_set(x_6, 0, x_11); -return x_6; -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -lean_free_object(x_6); -x_12 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_12, 0, x_8); -x_13 = l_Lean_indentExpr(x_12); -x_14 = l_Lean_Elab_Term_ensureAssignmentHasNoMVars___closed__3; -x_15 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_13); -x_16 = l_Lean_Elab_Term_throwError___rarg(x_1, x_15, x_3, x_9); -return x_16; -} -} -else -{ -lean_object* x_17; lean_object* x_18; uint8_t x_19; -x_17 = lean_ctor_get(x_6, 0); -x_18 = lean_ctor_get(x_6, 1); -lean_inc(x_18); -lean_inc(x_17); -lean_dec(x_6); -x_19 = l_Lean_Expr_hasExprMVar(x_17); -if (x_19 == 0) -{ -lean_object* x_20; lean_object* x_21; -lean_dec(x_17); -lean_dec(x_3); -x_20 = lean_box(0); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_18); -return x_21; -} -else -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_22 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_22, 0, x_17); -x_23 = l_Lean_indentExpr(x_22); -x_24 = l_Lean_Elab_Term_ensureAssignmentHasNoMVars___closed__3; -x_25 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, x_23); -x_26 = l_Lean_Elab_Term_throwError___rarg(x_1, x_25, x_3, x_18); -return x_26; -} -} -} -} -lean_object* l_Lean_Elab_Term_ensureAssignmentHasNoMVars___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_Elab_Term_ensureAssignmentHasNoMVars(x_1, x_2, x_3, x_4); -lean_dec(x_1); +lean_object* x_10; +lean_dec(x_7); +lean_dec(x_2); +x_10 = lean_box(0); +lean_ctor_set(x_5, 0, x_10); return x_5; } +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +lean_free_object(x_5); +x_11 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_11, 0, x_7); +x_12 = l_Lean_indentExpr(x_11); +x_13 = l_Lean_Elab_Term_ensureAssignmentHasNoMVars___closed__3; +x_14 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_12); +x_15 = l_Lean_Elab_Term_throwError___rarg(x_14, x_2, x_8); +return x_15; +} +} +else +{ +lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_16 = lean_ctor_get(x_5, 0); +x_17 = lean_ctor_get(x_5, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_5); +x_18 = l_Lean_Expr_hasExprMVar(x_16); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; +lean_dec(x_16); +lean_dec(x_2); +x_19 = lean_box(0); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_17); +return x_20; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_21 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_21, 0, x_16); +x_22 = l_Lean_indentExpr(x_21); +x_23 = l_Lean_Elab_Term_ensureAssignmentHasNoMVars___closed__3; +x_24 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_22); +x_25 = l_Lean_Elab_Term_throwError___rarg(x_24, x_2, x_17); +return x_25; +} +} +} } lean_object* l_Lean_Elab_Term_runTactic___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: @@ -937,479 +933,889 @@ return x_10; } } } -lean_object* l_Lean_Elab_Term_runTactic(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_Elab_Term_runTactic(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_6; uint8_t x_7; -x_6 = lean_alloc_closure((void*)(l_Lean_Elab_Term_runTactic___lambda__1), 3, 1); -lean_closure_set(x_6, 0, x_3); -x_7 = !lean_is_exclusive(x_5); -if (x_7 == 0) +lean_object* x_5; uint8_t x_6; +x_5 = lean_alloc_closure((void*)(l_Lean_Elab_Term_runTactic___lambda__1), 3, 1); +lean_closure_set(x_5, 0, x_2); +x_6 = !lean_is_exclusive(x_4); +if (x_6 == 0) { -lean_object* x_8; uint8_t x_9; -x_8 = lean_ctor_get(x_5, 0); -x_9 = !lean_is_exclusive(x_8); -if (x_9 == 0) +lean_object* x_7; uint8_t x_8; +x_7 = lean_ctor_get(x_4, 0); +x_8 = !lean_is_exclusive(x_7); +if (x_8 == 0) { -lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_10 = lean_ctor_get(x_8, 1); -lean_inc(x_2); -x_11 = l_Lean_MetavarContext_instantiateMVarDeclMVars(x_10, x_2); -lean_ctor_set(x_8, 1, x_11); -lean_inc(x_4); -lean_inc(x_2); +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_ctor_get(x_7, 1); lean_inc(x_1); -x_12 = l_Lean_Elab_Term_liftTacticElabM___rarg(x_1, x_2, x_6, x_4, x_5); -if (lean_obj_tag(x_12) == 0) +x_10 = l_Lean_MetavarContext_instantiateMVarDeclMVars(x_9, x_1); +lean_ctor_set(x_7, 1, x_10); +lean_inc(x_3); +lean_inc(x_1); +x_11 = l_Lean_Elab_Term_liftTacticElabM___rarg(x_1, x_5, x_3, x_4); +if (lean_obj_tag(x_11) == 0) { -lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_13 = lean_ctor_get(x_12, 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; uint8_t x_18; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); -lean_inc(x_14); -lean_dec(x_12); -lean_inc(x_1); -x_15 = l_Lean_Syntax_getTailWithPos___main(x_1); -x_16 = l_List_isEmpty___rarg(x_13); -if (lean_obj_tag(x_15) == 0) +lean_dec(x_11); +x_14 = l_Lean_Elab_Term_getCurrRef(x_3, x_13); +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); +lean_inc(x_15); +x_17 = l_Lean_Syntax_getTailWithPos___main(x_15); +x_18 = l_List_isEmpty___rarg(x_12); +if (lean_obj_tag(x_17) == 0) { -if (x_16 == 0) +uint8_t x_19; +x_19 = !lean_is_exclusive(x_3); +if (x_19 == 0) { -lean_object* x_17; uint8_t x_18; -lean_dec(x_2); -x_17 = l_Lean_Elab_Term_reportUnsolvedGoals(x_1, x_13, x_4, x_14); -x_18 = !lean_is_exclusive(x_17); +lean_object* x_20; +x_20 = lean_ctor_get(x_3, 10); +lean_dec(x_20); +lean_ctor_set(x_3, 10, x_15); if (x_18 == 0) { -return x_17; -} -else +lean_object* x_21; uint8_t x_22; +lean_dec(x_1); +x_21 = l_Lean_Elab_Term_reportUnsolvedGoals(x_12, x_3, x_16); +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_17, 0); -x_20 = lean_ctor_get(x_17, 1); -lean_inc(x_20); -lean_inc(x_19); -lean_dec(x_17); -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; } -} else { -lean_object* x_22; -lean_dec(x_13); -x_22 = l_Lean_Elab_Term_ensureAssignmentHasNoMVars(x_1, x_2, x_4, x_14); -lean_dec(x_1); -return x_22; -} -} -else -{ -lean_dec(x_1); -if (x_16 == 0) -{ -lean_object* x_23; lean_object* x_24; uint8_t x_25; -lean_dec(x_2); -x_23 = lean_ctor_get(x_15, 0); +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_21, 0); +x_24 = lean_ctor_get(x_21, 1); +lean_inc(x_24); lean_inc(x_23); -lean_dec(x_15); -x_24 = l_Lean_Elab_Term_reportUnsolvedGoals(x_23, x_13, x_4, x_14); -x_25 = !lean_is_exclusive(x_24); -if (x_25 == 0) -{ -return x_24; -} -else -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_24, 0); -x_27 = lean_ctor_get(x_24, 1); -lean_inc(x_27); -lean_inc(x_26); -lean_dec(x_24); -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; +lean_dec(x_21); +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +return x_25; } } else { -lean_object* x_29; lean_object* x_30; -lean_dec(x_13); -x_29 = lean_ctor_get(x_15, 0); -lean_inc(x_29); -lean_dec(x_15); -x_30 = l_Lean_Elab_Term_ensureAssignmentHasNoMVars(x_29, x_2, x_4, x_14); -lean_dec(x_29); -return x_30; -} -} -} -else -{ -uint8_t x_31; -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_31 = !lean_is_exclusive(x_12); -if (x_31 == 0) -{ -return x_12; -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_12, 0); -x_33 = lean_ctor_get(x_12, 1); -lean_inc(x_33); -lean_inc(x_32); +lean_object* x_26; lean_dec(x_12); -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; -} +x_26 = l_Lean_Elab_Term_ensureAssignmentHasNoMVars(x_1, x_3, x_16); +return x_26; } } else { -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; -x_35 = lean_ctor_get(x_8, 0); -x_36 = lean_ctor_get(x_8, 1); -x_37 = lean_ctor_get(x_8, 2); -x_38 = lean_ctor_get(x_8, 3); -x_39 = lean_ctor_get(x_8, 4); -x_40 = lean_ctor_get(x_8, 5); -lean_inc(x_40); -lean_inc(x_39); -lean_inc(x_38); -lean_inc(x_37); +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; uint8_t x_38; uint8_t x_39; lean_object* x_40; +x_27 = lean_ctor_get(x_3, 0); +x_28 = lean_ctor_get(x_3, 1); +x_29 = lean_ctor_get(x_3, 2); +x_30 = lean_ctor_get(x_3, 3); +x_31 = lean_ctor_get(x_3, 4); +x_32 = lean_ctor_get(x_3, 5); +x_33 = lean_ctor_get(x_3, 6); +x_34 = lean_ctor_get(x_3, 7); +x_35 = lean_ctor_get(x_3, 8); +x_36 = lean_ctor_get(x_3, 9); +x_37 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_38 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_39 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); lean_inc(x_36); lean_inc(x_35); -lean_dec(x_8); -lean_inc(x_2); -x_41 = l_Lean_MetavarContext_instantiateMVarDeclMVars(x_36, x_2); -x_42 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_42, 0, x_35); -lean_ctor_set(x_42, 1, x_41); -lean_ctor_set(x_42, 2, x_37); -lean_ctor_set(x_42, 3, x_38); -lean_ctor_set(x_42, 4, x_39); -lean_ctor_set(x_42, 5, x_40); -lean_ctor_set(x_5, 0, x_42); -lean_inc(x_4); -lean_inc(x_2); -lean_inc(x_1); -x_43 = l_Lean_Elab_Term_liftTacticElabM___rarg(x_1, x_2, x_6, x_4, x_5); -if (lean_obj_tag(x_43) == 0) +lean_inc(x_34); +lean_inc(x_33); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_3); +x_40 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_40, 0, x_27); +lean_ctor_set(x_40, 1, x_28); +lean_ctor_set(x_40, 2, x_29); +lean_ctor_set(x_40, 3, x_30); +lean_ctor_set(x_40, 4, x_31); +lean_ctor_set(x_40, 5, x_32); +lean_ctor_set(x_40, 6, x_33); +lean_ctor_set(x_40, 7, x_34); +lean_ctor_set(x_40, 8, x_35); +lean_ctor_set(x_40, 9, x_36); +lean_ctor_set(x_40, 10, x_15); +lean_ctor_set_uint8(x_40, sizeof(void*)*11, x_37); +lean_ctor_set_uint8(x_40, sizeof(void*)*11 + 1, x_38); +lean_ctor_set_uint8(x_40, sizeof(void*)*11 + 2, x_39); +if (x_18 == 0) { -lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; -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); -lean_inc(x_1); -x_46 = l_Lean_Syntax_getTailWithPos___main(x_1); -x_47 = l_List_isEmpty___rarg(x_44); -if (lean_obj_tag(x_46) == 0) +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +lean_dec(x_1); +x_41 = l_Lean_Elab_Term_reportUnsolvedGoals(x_12, x_40, x_16); +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_41, 1); +lean_inc(x_43); +if (lean_is_exclusive(x_41)) { + lean_ctor_release(x_41, 0); + lean_ctor_release(x_41, 1); + x_44 = x_41; +} else { + lean_dec_ref(x_41); + x_44 = lean_box(0); +} +if (lean_is_scalar(x_44)) { + x_45 = lean_alloc_ctor(1, 2, 0); +} else { + x_45 = x_44; +} +lean_ctor_set(x_45, 0, x_42); +lean_ctor_set(x_45, 1, x_43); +return x_45; +} +else { +lean_object* x_46; +lean_dec(x_12); +x_46 = l_Lean_Elab_Term_ensureAssignmentHasNoMVars(x_1, x_40, x_16); +return x_46; +} +} +} +else +{ +uint8_t x_47; +lean_dec(x_15); +x_47 = !lean_is_exclusive(x_3); if (x_47 == 0) { -lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -lean_dec(x_2); -x_48 = l_Lean_Elab_Term_reportUnsolvedGoals(x_1, x_44, x_4, x_45); -x_49 = lean_ctor_get(x_48, 0); +lean_object* x_48; lean_object* x_49; +x_48 = lean_ctor_get(x_3, 10); +lean_dec(x_48); +x_49 = lean_ctor_get(x_17, 0); lean_inc(x_49); -x_50 = lean_ctor_get(x_48, 1); -lean_inc(x_50); -if (lean_is_exclusive(x_48)) { - lean_ctor_release(x_48, 0); - lean_ctor_release(x_48, 1); - x_51 = x_48; -} else { - lean_dec_ref(x_48); - x_51 = lean_box(0); -} -if (lean_is_scalar(x_51)) { - x_52 = lean_alloc_ctor(1, 2, 0); -} else { - x_52 = x_51; -} -lean_ctor_set(x_52, 0, x_49); -lean_ctor_set(x_52, 1, x_50); -return x_52; -} -else +lean_dec(x_17); +lean_ctor_set(x_3, 10, x_49); +if (x_18 == 0) { -lean_object* x_53; -lean_dec(x_44); -x_53 = l_Lean_Elab_Term_ensureAssignmentHasNoMVars(x_1, x_2, x_4, x_45); +lean_object* x_50; uint8_t x_51; lean_dec(x_1); -return x_53; +x_50 = l_Lean_Elab_Term_reportUnsolvedGoals(x_12, x_3, x_16); +x_51 = !lean_is_exclusive(x_50); +if (x_51 == 0) +{ +return x_50; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_50, 0); +x_53 = lean_ctor_get(x_50, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_50); +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 { -lean_dec(x_1); -if (x_47 == 0) -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; -lean_dec(x_2); -x_54 = lean_ctor_get(x_46, 0); -lean_inc(x_54); -lean_dec(x_46); -x_55 = l_Lean_Elab_Term_reportUnsolvedGoals(x_54, x_44, x_4, x_45); -x_56 = lean_ctor_get(x_55, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_55, 1); -lean_inc(x_57); -if (lean_is_exclusive(x_55)) { - lean_ctor_release(x_55, 0); - lean_ctor_release(x_55, 1); - x_58 = x_55; -} else { - lean_dec_ref(x_55); - x_58 = lean_box(0); -} -if (lean_is_scalar(x_58)) { - x_59 = lean_alloc_ctor(1, 2, 0); -} else { - x_59 = x_58; -} -lean_ctor_set(x_59, 0, x_56); -lean_ctor_set(x_59, 1, x_57); -return x_59; -} -else -{ -lean_object* x_60; lean_object* x_61; -lean_dec(x_44); -x_60 = lean_ctor_get(x_46, 0); -lean_inc(x_60); -lean_dec(x_46); -x_61 = l_Lean_Elab_Term_ensureAssignmentHasNoMVars(x_60, x_2, x_4, x_45); -lean_dec(x_60); -return x_61; -} +lean_object* x_55; +lean_dec(x_12); +x_55 = l_Lean_Elab_Term_ensureAssignmentHasNoMVars(x_1, x_3, x_16); +return x_55; } } else { -lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_62 = lean_ctor_get(x_43, 0); -lean_inc(x_62); -x_63 = lean_ctor_get(x_43, 1); +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t x_66; uint8_t x_67; uint8_t x_68; lean_object* x_69; lean_object* x_70; +x_56 = lean_ctor_get(x_3, 0); +x_57 = lean_ctor_get(x_3, 1); +x_58 = lean_ctor_get(x_3, 2); +x_59 = lean_ctor_get(x_3, 3); +x_60 = lean_ctor_get(x_3, 4); +x_61 = lean_ctor_get(x_3, 5); +x_62 = lean_ctor_get(x_3, 6); +x_63 = lean_ctor_get(x_3, 7); +x_64 = lean_ctor_get(x_3, 8); +x_65 = lean_ctor_get(x_3, 9); +x_66 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_67 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_68 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +lean_inc(x_65); +lean_inc(x_64); lean_inc(x_63); -if (lean_is_exclusive(x_43)) { - lean_ctor_release(x_43, 0); - lean_ctor_release(x_43, 1); - x_64 = x_43; -} else { - lean_dec_ref(x_43); - x_64 = lean_box(0); -} -if (lean_is_scalar(x_64)) { - x_65 = lean_alloc_ctor(1, 2, 0); -} else { - x_65 = x_64; -} -lean_ctor_set(x_65, 0, x_62); -lean_ctor_set(x_65, 1, x_63); -return x_65; -} -} -} -else -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_66 = lean_ctor_get(x_5, 0); -x_67 = lean_ctor_get(x_5, 1); -x_68 = lean_ctor_get(x_5, 2); -x_69 = lean_ctor_get(x_5, 3); -x_70 = lean_ctor_get(x_5, 4); -x_71 = lean_ctor_get(x_5, 5); -lean_inc(x_71); -lean_inc(x_70); +lean_inc(x_62); +lean_inc(x_61); +lean_inc(x_60); +lean_inc(x_59); +lean_inc(x_58); +lean_inc(x_57); +lean_inc(x_56); +lean_dec(x_3); +x_69 = lean_ctor_get(x_17, 0); lean_inc(x_69); -lean_inc(x_68); -lean_inc(x_67); -lean_inc(x_66); -lean_dec(x_5); -x_72 = lean_ctor_get(x_66, 0); +lean_dec(x_17); +x_70 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_70, 0, x_56); +lean_ctor_set(x_70, 1, x_57); +lean_ctor_set(x_70, 2, x_58); +lean_ctor_set(x_70, 3, x_59); +lean_ctor_set(x_70, 4, x_60); +lean_ctor_set(x_70, 5, x_61); +lean_ctor_set(x_70, 6, x_62); +lean_ctor_set(x_70, 7, x_63); +lean_ctor_set(x_70, 8, x_64); +lean_ctor_set(x_70, 9, x_65); +lean_ctor_set(x_70, 10, x_69); +lean_ctor_set_uint8(x_70, sizeof(void*)*11, x_66); +lean_ctor_set_uint8(x_70, sizeof(void*)*11 + 1, x_67); +lean_ctor_set_uint8(x_70, sizeof(void*)*11 + 2, x_68); +if (x_18 == 0) +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; +lean_dec(x_1); +x_71 = l_Lean_Elab_Term_reportUnsolvedGoals(x_12, x_70, x_16); +x_72 = lean_ctor_get(x_71, 0); lean_inc(x_72); -x_73 = lean_ctor_get(x_66, 1); +x_73 = lean_ctor_get(x_71, 1); lean_inc(x_73); -x_74 = lean_ctor_get(x_66, 2); -lean_inc(x_74); -x_75 = lean_ctor_get(x_66, 3); -lean_inc(x_75); -x_76 = lean_ctor_get(x_66, 4); -lean_inc(x_76); -x_77 = lean_ctor_get(x_66, 5); -lean_inc(x_77); -if (lean_is_exclusive(x_66)) { - lean_ctor_release(x_66, 0); - lean_ctor_release(x_66, 1); - lean_ctor_release(x_66, 2); - lean_ctor_release(x_66, 3); - lean_ctor_release(x_66, 4); - lean_ctor_release(x_66, 5); - x_78 = x_66; +if (lean_is_exclusive(x_71)) { + lean_ctor_release(x_71, 0); + lean_ctor_release(x_71, 1); + x_74 = x_71; } else { - lean_dec_ref(x_66); - x_78 = lean_box(0); + lean_dec_ref(x_71); + x_74 = lean_box(0); } -lean_inc(x_2); -x_79 = l_Lean_MetavarContext_instantiateMVarDeclMVars(x_73, x_2); -if (lean_is_scalar(x_78)) { - x_80 = lean_alloc_ctor(0, 6, 0); +if (lean_is_scalar(x_74)) { + x_75 = lean_alloc_ctor(1, 2, 0); } else { - x_80 = x_78; + x_75 = x_74; } -lean_ctor_set(x_80, 0, x_72); +lean_ctor_set(x_75, 0, x_72); +lean_ctor_set(x_75, 1, x_73); +return x_75; +} +else +{ +lean_object* x_76; +lean_dec(x_12); +x_76 = l_Lean_Elab_Term_ensureAssignmentHasNoMVars(x_1, x_70, x_16); +return x_76; +} +} +} +} +else +{ +uint8_t x_77; +lean_dec(x_3); +lean_dec(x_1); +x_77 = !lean_is_exclusive(x_11); +if (x_77 == 0) +{ +return x_11; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_78 = lean_ctor_get(x_11, 0); +x_79 = lean_ctor_get(x_11, 1); +lean_inc(x_79); +lean_inc(x_78); +lean_dec(x_11); +x_80 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_80, 0, x_78); lean_ctor_set(x_80, 1, x_79); -lean_ctor_set(x_80, 2, x_74); -lean_ctor_set(x_80, 3, x_75); -lean_ctor_set(x_80, 4, x_76); -lean_ctor_set(x_80, 5, x_77); -x_81 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_81, 0, x_80); -lean_ctor_set(x_81, 1, x_67); -lean_ctor_set(x_81, 2, x_68); -lean_ctor_set(x_81, 3, x_69); -lean_ctor_set(x_81, 4, x_70); -lean_ctor_set(x_81, 5, x_71); -lean_inc(x_4); -lean_inc(x_2); -lean_inc(x_1); -x_82 = l_Lean_Elab_Term_liftTacticElabM___rarg(x_1, x_2, x_6, x_4, x_81); -if (lean_obj_tag(x_82) == 0) +return x_80; +} +} +} +else { -lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; -x_83 = lean_ctor_get(x_82, 0); -lean_inc(x_83); -x_84 = lean_ctor_get(x_82, 1); +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_81 = lean_ctor_get(x_7, 0); +x_82 = lean_ctor_get(x_7, 1); +x_83 = lean_ctor_get(x_7, 2); +x_84 = lean_ctor_get(x_7, 3); +x_85 = lean_ctor_get(x_7, 4); +x_86 = lean_ctor_get(x_7, 5); +lean_inc(x_86); +lean_inc(x_85); lean_inc(x_84); -lean_dec(x_82); +lean_inc(x_83); +lean_inc(x_82); +lean_inc(x_81); +lean_dec(x_7); lean_inc(x_1); -x_85 = l_Lean_Syntax_getTailWithPos___main(x_1); -x_86 = l_List_isEmpty___rarg(x_83); -if (lean_obj_tag(x_85) == 0) +x_87 = l_Lean_MetavarContext_instantiateMVarDeclMVars(x_82, x_1); +x_88 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_88, 0, x_81); +lean_ctor_set(x_88, 1, x_87); +lean_ctor_set(x_88, 2, x_83); +lean_ctor_set(x_88, 3, x_84); +lean_ctor_set(x_88, 4, x_85); +lean_ctor_set(x_88, 5, x_86); +lean_ctor_set(x_4, 0, x_88); +lean_inc(x_3); +lean_inc(x_1); +x_89 = l_Lean_Elab_Term_liftTacticElabM___rarg(x_1, x_5, x_3, x_4); +if (lean_obj_tag(x_89) == 0) { -if (x_86 == 0) -{ -lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; -lean_dec(x_2); -x_87 = l_Lean_Elab_Term_reportUnsolvedGoals(x_1, x_83, x_4, x_84); -x_88 = lean_ctor_get(x_87, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_87, 1); -lean_inc(x_89); -if (lean_is_exclusive(x_87)) { - lean_ctor_release(x_87, 0); - lean_ctor_release(x_87, 1); - x_90 = x_87; -} else { - lean_dec_ref(x_87); - x_90 = lean_box(0); -} -if (lean_is_scalar(x_90)) { - x_91 = lean_alloc_ctor(1, 2, 0); -} else { - x_91 = x_90; -} -lean_ctor_set(x_91, 0, x_88); -lean_ctor_set(x_91, 1, x_89); -return x_91; -} -else -{ -lean_object* x_92; -lean_dec(x_83); -x_92 = l_Lean_Elab_Term_ensureAssignmentHasNoMVars(x_1, x_2, x_4, x_84); -lean_dec(x_1); -return x_92; -} -} -else -{ -lean_dec(x_1); -if (x_86 == 0) -{ -lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; -lean_dec(x_2); -x_93 = lean_ctor_get(x_85, 0); +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_96; +x_90 = lean_ctor_get(x_89, 0); +lean_inc(x_90); +x_91 = lean_ctor_get(x_89, 1); +lean_inc(x_91); +lean_dec(x_89); +x_92 = l_Lean_Elab_Term_getCurrRef(x_3, x_91); +x_93 = lean_ctor_get(x_92, 0); lean_inc(x_93); -lean_dec(x_85); -x_94 = l_Lean_Elab_Term_reportUnsolvedGoals(x_93, x_83, x_4, x_84); -x_95 = lean_ctor_get(x_94, 0); -lean_inc(x_95); -x_96 = lean_ctor_get(x_94, 1); -lean_inc(x_96); -if (lean_is_exclusive(x_94)) { - lean_ctor_release(x_94, 0); - lean_ctor_release(x_94, 1); - x_97 = x_94; -} else { - lean_dec_ref(x_94); - x_97 = lean_box(0); -} -if (lean_is_scalar(x_97)) { - x_98 = lean_alloc_ctor(1, 2, 0); -} else { - x_98 = x_97; -} -lean_ctor_set(x_98, 0, x_95); -lean_ctor_set(x_98, 1, x_96); -return x_98; -} -else +x_94 = lean_ctor_get(x_92, 1); +lean_inc(x_94); +lean_dec(x_92); +lean_inc(x_93); +x_95 = l_Lean_Syntax_getTailWithPos___main(x_93); +x_96 = l_List_isEmpty___rarg(x_90); +if (lean_obj_tag(x_95) == 0) { -lean_object* x_99; lean_object* x_100; -lean_dec(x_83); -x_99 = lean_ctor_get(x_85, 0); +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; uint8_t x_107; uint8_t x_108; uint8_t x_109; lean_object* x_110; lean_object* x_111; +x_97 = lean_ctor_get(x_3, 0); +lean_inc(x_97); +x_98 = lean_ctor_get(x_3, 1); +lean_inc(x_98); +x_99 = lean_ctor_get(x_3, 2); lean_inc(x_99); -lean_dec(x_85); -x_100 = l_Lean_Elab_Term_ensureAssignmentHasNoMVars(x_99, x_2, x_4, x_84); -lean_dec(x_99); -return x_100; +x_100 = lean_ctor_get(x_3, 3); +lean_inc(x_100); +x_101 = lean_ctor_get(x_3, 4); +lean_inc(x_101); +x_102 = lean_ctor_get(x_3, 5); +lean_inc(x_102); +x_103 = lean_ctor_get(x_3, 6); +lean_inc(x_103); +x_104 = lean_ctor_get(x_3, 7); +lean_inc(x_104); +x_105 = lean_ctor_get(x_3, 8); +lean_inc(x_105); +x_106 = lean_ctor_get(x_3, 9); +lean_inc(x_106); +x_107 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_108 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_109 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +if (lean_is_exclusive(x_3)) { + lean_ctor_release(x_3, 0); + lean_ctor_release(x_3, 1); + lean_ctor_release(x_3, 2); + lean_ctor_release(x_3, 3); + lean_ctor_release(x_3, 4); + lean_ctor_release(x_3, 5); + lean_ctor_release(x_3, 6); + lean_ctor_release(x_3, 7); + lean_ctor_release(x_3, 8); + lean_ctor_release(x_3, 9); + lean_ctor_release(x_3, 10); + x_110 = x_3; +} else { + lean_dec_ref(x_3); + x_110 = lean_box(0); +} +if (lean_is_scalar(x_110)) { + x_111 = lean_alloc_ctor(0, 11, 3); +} else { + x_111 = x_110; +} +lean_ctor_set(x_111, 0, x_97); +lean_ctor_set(x_111, 1, x_98); +lean_ctor_set(x_111, 2, x_99); +lean_ctor_set(x_111, 3, x_100); +lean_ctor_set(x_111, 4, x_101); +lean_ctor_set(x_111, 5, x_102); +lean_ctor_set(x_111, 6, x_103); +lean_ctor_set(x_111, 7, x_104); +lean_ctor_set(x_111, 8, x_105); +lean_ctor_set(x_111, 9, x_106); +lean_ctor_set(x_111, 10, x_93); +lean_ctor_set_uint8(x_111, sizeof(void*)*11, x_107); +lean_ctor_set_uint8(x_111, sizeof(void*)*11 + 1, x_108); +lean_ctor_set_uint8(x_111, sizeof(void*)*11 + 2, x_109); +if (x_96 == 0) +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; +lean_dec(x_1); +x_112 = l_Lean_Elab_Term_reportUnsolvedGoals(x_90, x_111, x_94); +x_113 = lean_ctor_get(x_112, 0); +lean_inc(x_113); +x_114 = lean_ctor_get(x_112, 1); +lean_inc(x_114); +if (lean_is_exclusive(x_112)) { + lean_ctor_release(x_112, 0); + lean_ctor_release(x_112, 1); + x_115 = x_112; +} else { + lean_dec_ref(x_112); + 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_dec(x_90); +x_117 = l_Lean_Elab_Term_ensureAssignmentHasNoMVars(x_1, x_111, x_94); +return x_117; +} +} +else +{ +lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; uint8_t x_128; uint8_t x_129; uint8_t x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; +lean_dec(x_93); +x_118 = lean_ctor_get(x_3, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_3, 1); +lean_inc(x_119); +x_120 = lean_ctor_get(x_3, 2); +lean_inc(x_120); +x_121 = lean_ctor_get(x_3, 3); +lean_inc(x_121); +x_122 = lean_ctor_get(x_3, 4); +lean_inc(x_122); +x_123 = lean_ctor_get(x_3, 5); +lean_inc(x_123); +x_124 = lean_ctor_get(x_3, 6); +lean_inc(x_124); +x_125 = lean_ctor_get(x_3, 7); +lean_inc(x_125); +x_126 = lean_ctor_get(x_3, 8); +lean_inc(x_126); +x_127 = lean_ctor_get(x_3, 9); +lean_inc(x_127); +x_128 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_129 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_130 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +if (lean_is_exclusive(x_3)) { + lean_ctor_release(x_3, 0); + lean_ctor_release(x_3, 1); + lean_ctor_release(x_3, 2); + lean_ctor_release(x_3, 3); + lean_ctor_release(x_3, 4); + lean_ctor_release(x_3, 5); + lean_ctor_release(x_3, 6); + lean_ctor_release(x_3, 7); + lean_ctor_release(x_3, 8); + lean_ctor_release(x_3, 9); + lean_ctor_release(x_3, 10); + x_131 = x_3; +} else { + lean_dec_ref(x_3); + x_131 = lean_box(0); +} +x_132 = lean_ctor_get(x_95, 0); +lean_inc(x_132); +lean_dec(x_95); +if (lean_is_scalar(x_131)) { + x_133 = lean_alloc_ctor(0, 11, 3); +} else { + x_133 = x_131; +} +lean_ctor_set(x_133, 0, x_118); +lean_ctor_set(x_133, 1, x_119); +lean_ctor_set(x_133, 2, x_120); +lean_ctor_set(x_133, 3, x_121); +lean_ctor_set(x_133, 4, x_122); +lean_ctor_set(x_133, 5, x_123); +lean_ctor_set(x_133, 6, x_124); +lean_ctor_set(x_133, 7, x_125); +lean_ctor_set(x_133, 8, x_126); +lean_ctor_set(x_133, 9, x_127); +lean_ctor_set(x_133, 10, x_132); +lean_ctor_set_uint8(x_133, sizeof(void*)*11, x_128); +lean_ctor_set_uint8(x_133, sizeof(void*)*11 + 1, x_129); +lean_ctor_set_uint8(x_133, sizeof(void*)*11 + 2, x_130); +if (x_96 == 0) +{ +lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; +lean_dec(x_1); +x_134 = l_Lean_Elab_Term_reportUnsolvedGoals(x_90, x_133, x_94); +x_135 = lean_ctor_get(x_134, 0); +lean_inc(x_135); +x_136 = lean_ctor_get(x_134, 1); +lean_inc(x_136); +if (lean_is_exclusive(x_134)) { + lean_ctor_release(x_134, 0); + lean_ctor_release(x_134, 1); + x_137 = x_134; +} else { + lean_dec_ref(x_134); + 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_dec(x_90); +x_139 = l_Lean_Elab_Term_ensureAssignmentHasNoMVars(x_1, x_133, x_94); +return x_139; } } } else { -lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; -lean_dec(x_4); -lean_dec(x_2); +lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; +lean_dec(x_3); lean_dec(x_1); -x_101 = lean_ctor_get(x_82, 0); -lean_inc(x_101); -x_102 = lean_ctor_get(x_82, 1); -lean_inc(x_102); -if (lean_is_exclusive(x_82)) { - lean_ctor_release(x_82, 0); - lean_ctor_release(x_82, 1); - x_103 = x_82; +x_140 = lean_ctor_get(x_89, 0); +lean_inc(x_140); +x_141 = lean_ctor_get(x_89, 1); +lean_inc(x_141); +if (lean_is_exclusive(x_89)) { + lean_ctor_release(x_89, 0); + lean_ctor_release(x_89, 1); + x_142 = x_89; } else { - lean_dec_ref(x_82); - x_103 = lean_box(0); + lean_dec_ref(x_89); + x_142 = lean_box(0); } -if (lean_is_scalar(x_103)) { - x_104 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_142)) { + x_143 = lean_alloc_ctor(1, 2, 0); } else { - x_104 = x_103; + x_143 = x_142; } -lean_ctor_set(x_104, 0, x_101); -lean_ctor_set(x_104, 1, x_102); -return x_104; +lean_ctor_set(x_143, 0, x_140); +lean_ctor_set(x_143, 1, x_141); +return x_143; +} +} +} +else +{ +lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; +x_144 = lean_ctor_get(x_4, 0); +x_145 = lean_ctor_get(x_4, 1); +x_146 = lean_ctor_get(x_4, 2); +x_147 = lean_ctor_get(x_4, 3); +x_148 = lean_ctor_get(x_4, 4); +x_149 = lean_ctor_get(x_4, 5); +lean_inc(x_149); +lean_inc(x_148); +lean_inc(x_147); +lean_inc(x_146); +lean_inc(x_145); +lean_inc(x_144); +lean_dec(x_4); +x_150 = lean_ctor_get(x_144, 0); +lean_inc(x_150); +x_151 = lean_ctor_get(x_144, 1); +lean_inc(x_151); +x_152 = lean_ctor_get(x_144, 2); +lean_inc(x_152); +x_153 = lean_ctor_get(x_144, 3); +lean_inc(x_153); +x_154 = lean_ctor_get(x_144, 4); +lean_inc(x_154); +x_155 = lean_ctor_get(x_144, 5); +lean_inc(x_155); +if (lean_is_exclusive(x_144)) { + lean_ctor_release(x_144, 0); + lean_ctor_release(x_144, 1); + lean_ctor_release(x_144, 2); + lean_ctor_release(x_144, 3); + lean_ctor_release(x_144, 4); + lean_ctor_release(x_144, 5); + x_156 = x_144; +} else { + lean_dec_ref(x_144); + x_156 = lean_box(0); +} +lean_inc(x_1); +x_157 = l_Lean_MetavarContext_instantiateMVarDeclMVars(x_151, x_1); +if (lean_is_scalar(x_156)) { + x_158 = lean_alloc_ctor(0, 6, 0); +} else { + x_158 = x_156; +} +lean_ctor_set(x_158, 0, x_150); +lean_ctor_set(x_158, 1, x_157); +lean_ctor_set(x_158, 2, x_152); +lean_ctor_set(x_158, 3, x_153); +lean_ctor_set(x_158, 4, x_154); +lean_ctor_set(x_158, 5, x_155); +x_159 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_159, 0, x_158); +lean_ctor_set(x_159, 1, x_145); +lean_ctor_set(x_159, 2, x_146); +lean_ctor_set(x_159, 3, x_147); +lean_ctor_set(x_159, 4, x_148); +lean_ctor_set(x_159, 5, x_149); +lean_inc(x_3); +lean_inc(x_1); +x_160 = l_Lean_Elab_Term_liftTacticElabM___rarg(x_1, x_5, x_3, x_159); +if (lean_obj_tag(x_160) == 0) +{ +lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; uint8_t x_167; +x_161 = lean_ctor_get(x_160, 0); +lean_inc(x_161); +x_162 = lean_ctor_get(x_160, 1); +lean_inc(x_162); +lean_dec(x_160); +x_163 = l_Lean_Elab_Term_getCurrRef(x_3, x_162); +x_164 = lean_ctor_get(x_163, 0); +lean_inc(x_164); +x_165 = lean_ctor_get(x_163, 1); +lean_inc(x_165); +lean_dec(x_163); +lean_inc(x_164); +x_166 = l_Lean_Syntax_getTailWithPos___main(x_164); +x_167 = l_List_isEmpty___rarg(x_161); +if (lean_obj_tag(x_166) == 0) +{ +lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; uint8_t x_178; uint8_t x_179; uint8_t x_180; lean_object* x_181; lean_object* x_182; +x_168 = lean_ctor_get(x_3, 0); +lean_inc(x_168); +x_169 = lean_ctor_get(x_3, 1); +lean_inc(x_169); +x_170 = lean_ctor_get(x_3, 2); +lean_inc(x_170); +x_171 = lean_ctor_get(x_3, 3); +lean_inc(x_171); +x_172 = lean_ctor_get(x_3, 4); +lean_inc(x_172); +x_173 = lean_ctor_get(x_3, 5); +lean_inc(x_173); +x_174 = lean_ctor_get(x_3, 6); +lean_inc(x_174); +x_175 = lean_ctor_get(x_3, 7); +lean_inc(x_175); +x_176 = lean_ctor_get(x_3, 8); +lean_inc(x_176); +x_177 = lean_ctor_get(x_3, 9); +lean_inc(x_177); +x_178 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_179 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_180 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +if (lean_is_exclusive(x_3)) { + lean_ctor_release(x_3, 0); + lean_ctor_release(x_3, 1); + lean_ctor_release(x_3, 2); + lean_ctor_release(x_3, 3); + lean_ctor_release(x_3, 4); + lean_ctor_release(x_3, 5); + lean_ctor_release(x_3, 6); + lean_ctor_release(x_3, 7); + lean_ctor_release(x_3, 8); + lean_ctor_release(x_3, 9); + lean_ctor_release(x_3, 10); + x_181 = x_3; +} else { + lean_dec_ref(x_3); + x_181 = lean_box(0); +} +if (lean_is_scalar(x_181)) { + x_182 = lean_alloc_ctor(0, 11, 3); +} else { + x_182 = x_181; +} +lean_ctor_set(x_182, 0, x_168); +lean_ctor_set(x_182, 1, x_169); +lean_ctor_set(x_182, 2, x_170); +lean_ctor_set(x_182, 3, x_171); +lean_ctor_set(x_182, 4, x_172); +lean_ctor_set(x_182, 5, x_173); +lean_ctor_set(x_182, 6, x_174); +lean_ctor_set(x_182, 7, x_175); +lean_ctor_set(x_182, 8, x_176); +lean_ctor_set(x_182, 9, x_177); +lean_ctor_set(x_182, 10, x_164); +lean_ctor_set_uint8(x_182, sizeof(void*)*11, x_178); +lean_ctor_set_uint8(x_182, sizeof(void*)*11 + 1, x_179); +lean_ctor_set_uint8(x_182, sizeof(void*)*11 + 2, x_180); +if (x_167 == 0) +{ +lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; +lean_dec(x_1); +x_183 = l_Lean_Elab_Term_reportUnsolvedGoals(x_161, x_182, x_165); +x_184 = lean_ctor_get(x_183, 0); +lean_inc(x_184); +x_185 = lean_ctor_get(x_183, 1); +lean_inc(x_185); +if (lean_is_exclusive(x_183)) { + lean_ctor_release(x_183, 0); + lean_ctor_release(x_183, 1); + x_186 = x_183; +} else { + lean_dec_ref(x_183); + x_186 = lean_box(0); +} +if (lean_is_scalar(x_186)) { + x_187 = lean_alloc_ctor(1, 2, 0); +} else { + x_187 = x_186; +} +lean_ctor_set(x_187, 0, x_184); +lean_ctor_set(x_187, 1, x_185); +return x_187; +} +else +{ +lean_object* x_188; +lean_dec(x_161); +x_188 = l_Lean_Elab_Term_ensureAssignmentHasNoMVars(x_1, x_182, x_165); +return x_188; +} +} +else +{ +lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; uint8_t x_199; uint8_t x_200; uint8_t x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; +lean_dec(x_164); +x_189 = lean_ctor_get(x_3, 0); +lean_inc(x_189); +x_190 = lean_ctor_get(x_3, 1); +lean_inc(x_190); +x_191 = lean_ctor_get(x_3, 2); +lean_inc(x_191); +x_192 = lean_ctor_get(x_3, 3); +lean_inc(x_192); +x_193 = lean_ctor_get(x_3, 4); +lean_inc(x_193); +x_194 = lean_ctor_get(x_3, 5); +lean_inc(x_194); +x_195 = lean_ctor_get(x_3, 6); +lean_inc(x_195); +x_196 = lean_ctor_get(x_3, 7); +lean_inc(x_196); +x_197 = lean_ctor_get(x_3, 8); +lean_inc(x_197); +x_198 = lean_ctor_get(x_3, 9); +lean_inc(x_198); +x_199 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_200 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_201 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +if (lean_is_exclusive(x_3)) { + lean_ctor_release(x_3, 0); + lean_ctor_release(x_3, 1); + lean_ctor_release(x_3, 2); + lean_ctor_release(x_3, 3); + lean_ctor_release(x_3, 4); + lean_ctor_release(x_3, 5); + lean_ctor_release(x_3, 6); + lean_ctor_release(x_3, 7); + lean_ctor_release(x_3, 8); + lean_ctor_release(x_3, 9); + lean_ctor_release(x_3, 10); + x_202 = x_3; +} else { + lean_dec_ref(x_3); + x_202 = lean_box(0); +} +x_203 = lean_ctor_get(x_166, 0); +lean_inc(x_203); +lean_dec(x_166); +if (lean_is_scalar(x_202)) { + x_204 = lean_alloc_ctor(0, 11, 3); +} else { + x_204 = x_202; +} +lean_ctor_set(x_204, 0, x_189); +lean_ctor_set(x_204, 1, x_190); +lean_ctor_set(x_204, 2, x_191); +lean_ctor_set(x_204, 3, x_192); +lean_ctor_set(x_204, 4, x_193); +lean_ctor_set(x_204, 5, x_194); +lean_ctor_set(x_204, 6, x_195); +lean_ctor_set(x_204, 7, x_196); +lean_ctor_set(x_204, 8, x_197); +lean_ctor_set(x_204, 9, x_198); +lean_ctor_set(x_204, 10, x_203); +lean_ctor_set_uint8(x_204, sizeof(void*)*11, x_199); +lean_ctor_set_uint8(x_204, sizeof(void*)*11 + 1, x_200); +lean_ctor_set_uint8(x_204, sizeof(void*)*11 + 2, x_201); +if (x_167 == 0) +{ +lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; +lean_dec(x_1); +x_205 = l_Lean_Elab_Term_reportUnsolvedGoals(x_161, x_204, x_165); +x_206 = lean_ctor_get(x_205, 0); +lean_inc(x_206); +x_207 = lean_ctor_get(x_205, 1); +lean_inc(x_207); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + x_208 = x_205; +} else { + lean_dec_ref(x_205); + x_208 = lean_box(0); +} +if (lean_is_scalar(x_208)) { + x_209 = lean_alloc_ctor(1, 2, 0); +} else { + x_209 = x_208; +} +lean_ctor_set(x_209, 0, x_206); +lean_ctor_set(x_209, 1, x_207); +return x_209; +} +else +{ +lean_object* x_210; +lean_dec(x_161); +x_210 = l_Lean_Elab_Term_ensureAssignmentHasNoMVars(x_1, x_204, x_165); +return x_210; +} +} +} +else +{ +lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; +lean_dec(x_3); +lean_dec(x_1); +x_211 = lean_ctor_get(x_160, 0); +lean_inc(x_211); +x_212 = lean_ctor_get(x_160, 1); +lean_inc(x_212); +if (lean_is_exclusive(x_160)) { + lean_ctor_release(x_160, 0); + lean_ctor_release(x_160, 1); + x_213 = x_160; +} else { + lean_dec_ref(x_160); + x_213 = lean_box(0); +} +if (lean_is_scalar(x_213)) { + x_214 = lean_alloc_ctor(1, 2, 0); +} else { + x_214 = x_213; +} +lean_ctor_set(x_214, 0, x_211); +lean_ctor_set(x_214, 1, x_212); +return x_214; } } } @@ -1418,36 +1824,36 @@ lean_object* l___private_Lean_Elab_SyntheticMVars_1__resumeElabTerm(lean_object* _start: { uint8_t x_6; -x_6 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); +x_6 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); if (x_6 == 0) { uint8_t x_7; x_7 = !lean_is_exclusive(x_4); if (x_7 == 0) { -uint8_t x_8; uint8_t x_9; lean_object* x_10; +uint8_t x_8; lean_object* x_9; x_8 = 0; -lean_ctor_set_uint8(x_4, sizeof(void*)*10 + 1, x_8); -x_9 = 1; -x_10 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_8, x_9, x_1, x_4, x_5); -return x_10; +lean_ctor_set_uint8(x_4, sizeof(void*)*11 + 1, x_8); +x_9 = l_Lean_Elab_Term_elabTerm(x_1, x_2, x_8, x_4, x_5); +return x_9; } else { -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; uint8_t x_21; uint8_t x_22; uint8_t x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; -x_11 = lean_ctor_get(x_4, 0); -x_12 = lean_ctor_get(x_4, 1); -x_13 = lean_ctor_get(x_4, 2); -x_14 = lean_ctor_get(x_4, 3); -x_15 = lean_ctor_get(x_4, 4); -x_16 = lean_ctor_get(x_4, 5); -x_17 = lean_ctor_get(x_4, 6); -x_18 = lean_ctor_get(x_4, 7); -x_19 = lean_ctor_get(x_4, 8); -x_20 = lean_ctor_get(x_4, 9); -x_21 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); -x_22 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 2); -lean_inc(x_20); +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; uint8_t x_20; uint8_t x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; +x_10 = lean_ctor_get(x_4, 0); +x_11 = lean_ctor_get(x_4, 1); +x_12 = lean_ctor_get(x_4, 2); +x_13 = lean_ctor_get(x_4, 3); +x_14 = lean_ctor_get(x_4, 4); +x_15 = lean_ctor_get(x_4, 5); +x_16 = lean_ctor_get(x_4, 6); +x_17 = lean_ctor_get(x_4, 7); +x_18 = lean_ctor_get(x_4, 8); +x_19 = lean_ctor_get(x_4, 9); +x_20 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_21 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +x_22 = lean_ctor_get(x_4, 10); +lean_inc(x_22); lean_inc(x_19); lean_inc(x_18); lean_inc(x_17); @@ -1457,57 +1863,57 @@ lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); +lean_inc(x_10); lean_dec(x_4); x_23 = 0; -x_24 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_24, 0, x_11); -lean_ctor_set(x_24, 1, x_12); -lean_ctor_set(x_24, 2, x_13); -lean_ctor_set(x_24, 3, x_14); -lean_ctor_set(x_24, 4, x_15); -lean_ctor_set(x_24, 5, x_16); -lean_ctor_set(x_24, 6, x_17); -lean_ctor_set(x_24, 7, x_18); -lean_ctor_set(x_24, 8, x_19); -lean_ctor_set(x_24, 9, x_20); -lean_ctor_set_uint8(x_24, sizeof(void*)*10, x_21); -lean_ctor_set_uint8(x_24, sizeof(void*)*10 + 1, x_23); -lean_ctor_set_uint8(x_24, sizeof(void*)*10 + 2, x_22); -x_25 = 1; -x_26 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_23, x_25, x_1, x_24, x_5); -return x_26; +x_24 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_24, 0, x_10); +lean_ctor_set(x_24, 1, x_11); +lean_ctor_set(x_24, 2, x_12); +lean_ctor_set(x_24, 3, x_13); +lean_ctor_set(x_24, 4, x_14); +lean_ctor_set(x_24, 5, x_15); +lean_ctor_set(x_24, 6, x_16); +lean_ctor_set(x_24, 7, x_17); +lean_ctor_set(x_24, 8, x_18); +lean_ctor_set(x_24, 9, x_19); +lean_ctor_set(x_24, 10, x_22); +lean_ctor_set_uint8(x_24, sizeof(void*)*11, x_20); +lean_ctor_set_uint8(x_24, sizeof(void*)*11 + 1, x_23); +lean_ctor_set_uint8(x_24, sizeof(void*)*11 + 2, x_21); +x_25 = l_Lean_Elab_Term_elabTerm(x_1, x_2, x_23, x_24, x_5); +return x_25; } } else { -uint8_t x_27; -x_27 = !lean_is_exclusive(x_4); -if (x_27 == 0) +uint8_t x_26; +x_26 = !lean_is_exclusive(x_4); +if (x_26 == 0) { -uint8_t x_28; uint8_t x_29; lean_object* x_30; -lean_ctor_set_uint8(x_4, sizeof(void*)*10 + 1, x_3); -x_28 = 0; -x_29 = 1; -x_30 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_28, x_29, x_1, x_4, x_5); -return x_30; +uint8_t x_27; lean_object* x_28; +lean_ctor_set_uint8(x_4, sizeof(void*)*11 + 1, x_3); +x_27 = 0; +x_28 = l_Lean_Elab_Term_elabTerm(x_1, x_2, x_27, x_4, x_5); +return x_28; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; uint8_t x_42; lean_object* x_43; uint8_t x_44; uint8_t x_45; lean_object* x_46; -x_31 = lean_ctor_get(x_4, 0); -x_32 = lean_ctor_get(x_4, 1); -x_33 = lean_ctor_get(x_4, 2); -x_34 = lean_ctor_get(x_4, 3); -x_35 = lean_ctor_get(x_4, 4); -x_36 = lean_ctor_get(x_4, 5); -x_37 = lean_ctor_get(x_4, 6); -x_38 = lean_ctor_get(x_4, 7); -x_39 = lean_ctor_get(x_4, 8); -x_40 = lean_ctor_get(x_4, 9); -x_41 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); -x_42 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 2); -lean_inc(x_40); -lean_inc(x_39); +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; lean_object* x_44; +x_29 = lean_ctor_get(x_4, 0); +x_30 = lean_ctor_get(x_4, 1); +x_31 = lean_ctor_get(x_4, 2); +x_32 = lean_ctor_get(x_4, 3); +x_33 = lean_ctor_get(x_4, 4); +x_34 = lean_ctor_get(x_4, 5); +x_35 = lean_ctor_get(x_4, 6); +x_36 = lean_ctor_get(x_4, 7); +x_37 = lean_ctor_get(x_4, 8); +x_38 = lean_ctor_get(x_4, 9); +x_39 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_40 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +x_41 = lean_ctor_get(x_4, 10); +lean_inc(x_41); lean_inc(x_38); lean_inc(x_37); lean_inc(x_36); @@ -1516,25 +1922,27 @@ lean_inc(x_34); lean_inc(x_33); lean_inc(x_32); lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); lean_dec(x_4); -x_43 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_43, 0, x_31); -lean_ctor_set(x_43, 1, x_32); -lean_ctor_set(x_43, 2, x_33); -lean_ctor_set(x_43, 3, x_34); -lean_ctor_set(x_43, 4, x_35); -lean_ctor_set(x_43, 5, x_36); -lean_ctor_set(x_43, 6, x_37); -lean_ctor_set(x_43, 7, x_38); -lean_ctor_set(x_43, 8, x_39); -lean_ctor_set(x_43, 9, x_40); -lean_ctor_set_uint8(x_43, sizeof(void*)*10, x_41); -lean_ctor_set_uint8(x_43, sizeof(void*)*10 + 1, x_3); -lean_ctor_set_uint8(x_43, sizeof(void*)*10 + 2, x_42); -x_44 = 0; -x_45 = 1; -x_46 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_44, x_45, x_1, x_43, x_5); -return x_46; +x_42 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_42, 0, x_29); +lean_ctor_set(x_42, 1, x_30); +lean_ctor_set(x_42, 2, x_31); +lean_ctor_set(x_42, 3, x_32); +lean_ctor_set(x_42, 4, x_33); +lean_ctor_set(x_42, 5, x_34); +lean_ctor_set(x_42, 6, x_35); +lean_ctor_set(x_42, 7, x_36); +lean_ctor_set(x_42, 8, x_37); +lean_ctor_set(x_42, 9, x_38); +lean_ctor_set(x_42, 10, x_41); +lean_ctor_set_uint8(x_42, sizeof(void*)*11, x_39); +lean_ctor_set_uint8(x_42, sizeof(void*)*11 + 1, x_3); +lean_ctor_set_uint8(x_42, sizeof(void*)*11 + 2, x_40); +x_43 = 0; +x_44 = l_Lean_Elab_Term_elabTerm(x_1, x_2, x_43, x_42, x_5); +return x_44; } } } @@ -1552,7 +1960,7 @@ return x_7; lean_object* l___private_Lean_Elab_SyntheticMVars_2__resumePostponed___lambda__1(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) { _start: { -lean_object* x_8; lean_object* x_9; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; uint8_t x_49; uint8_t x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +lean_object* x_8; lean_object* x_9; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; uint8_t x_49; uint8_t x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; x_39 = lean_ctor_get(x_6, 0); lean_inc(x_39); x_40 = lean_ctor_get(x_6, 1); @@ -1571,210 +1979,209 @@ x_46 = lean_ctor_get(x_6, 7); lean_inc(x_46); x_47 = lean_ctor_get(x_6, 9); lean_inc(x_47); -x_48 = lean_ctor_get_uint8(x_6, sizeof(void*)*10); -x_49 = lean_ctor_get_uint8(x_6, sizeof(void*)*10 + 1); -x_50 = lean_ctor_get_uint8(x_6, sizeof(void*)*10 + 2); -x_51 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_51, 0, x_39); -lean_ctor_set(x_51, 1, x_40); -lean_ctor_set(x_51, 2, x_41); -lean_ctor_set(x_51, 3, x_42); -lean_ctor_set(x_51, 4, x_43); -lean_ctor_set(x_51, 5, x_44); -lean_ctor_set(x_51, 6, x_45); -lean_ctor_set(x_51, 7, x_46); -lean_ctor_set(x_51, 8, x_2); -lean_ctor_set(x_51, 9, x_47); -lean_ctor_set_uint8(x_51, sizeof(void*)*10, x_48); -lean_ctor_set_uint8(x_51, sizeof(void*)*10 + 1, x_49); -lean_ctor_set_uint8(x_51, sizeof(void*)*10 + 2, x_50); -x_52 = l_Lean_Elab_Term_getMVarDecl(x_3, x_51, x_7); -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -x_54 = lean_ctor_get(x_52, 1); +x_48 = lean_ctor_get_uint8(x_6, sizeof(void*)*11); +x_49 = lean_ctor_get_uint8(x_6, sizeof(void*)*11 + 1); +x_50 = lean_ctor_get_uint8(x_6, sizeof(void*)*11 + 2); +x_51 = lean_ctor_get(x_6, 10); +lean_inc(x_51); +x_52 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_52, 0, x_39); +lean_ctor_set(x_52, 1, x_40); +lean_ctor_set(x_52, 2, x_41); +lean_ctor_set(x_52, 3, x_42); +lean_ctor_set(x_52, 4, x_43); +lean_ctor_set(x_52, 5, x_44); +lean_ctor_set(x_52, 6, x_45); +lean_ctor_set(x_52, 7, x_46); +lean_ctor_set(x_52, 8, x_2); +lean_ctor_set(x_52, 9, x_47); +lean_ctor_set(x_52, 10, x_51); +lean_ctor_set_uint8(x_52, sizeof(void*)*11, x_48); +lean_ctor_set_uint8(x_52, sizeof(void*)*11 + 1, x_49); +lean_ctor_set_uint8(x_52, sizeof(void*)*11 + 2, x_50); +x_53 = l_Lean_Elab_Term_getMVarDecl(x_3, x_52, x_7); +x_54 = lean_ctor_get(x_53, 0); lean_inc(x_54); -lean_dec(x_52); -x_55 = lean_ctor_get(x_53, 2); +x_55 = lean_ctor_get(x_53, 1); lean_inc(x_55); lean_dec(x_53); -lean_inc(x_51); -x_56 = l_Lean_Elab_Term_instantiateMVars(x_4, x_55, x_51, x_54); -x_57 = lean_ctor_get(x_56, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_56, 1); +x_56 = lean_ctor_get(x_54, 2); +lean_inc(x_56); +lean_dec(x_54); +lean_inc(x_52); +x_57 = l_Lean_Elab_Term_instantiateMVars(x_56, x_52, x_55); +x_58 = lean_ctor_get(x_57, 0); lean_inc(x_58); -lean_dec(x_56); -x_59 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_59, 0, x_57); +x_59 = lean_ctor_get(x_57, 1); +lean_inc(x_59); +lean_dec(x_57); +x_60 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_60, 0, x_58); if (x_1 == 0) { -uint8_t x_60; lean_object* x_61; -x_60 = 1; -lean_inc(x_51); -lean_inc(x_59); -lean_inc(x_4); -x_61 = l___private_Lean_Elab_SyntheticMVars_1__resumeElabTerm(x_4, x_59, x_60, x_51, x_58); -if (lean_obj_tag(x_61) == 0) +uint8_t x_61; lean_object* x_62; +x_61 = 1; +lean_inc(x_52); +lean_inc(x_60); +x_62 = l___private_Lean_Elab_SyntheticMVars_1__resumeElabTerm(x_4, x_60, x_61, x_52, x_59); +if (lean_obj_tag(x_62) == 0) { -lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_62 = lean_ctor_get(x_61, 0); -lean_inc(x_62); -x_63 = lean_ctor_get(x_61, 1); +lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_62, 0); lean_inc(x_63); -lean_dec(x_61); -lean_inc(x_51); -x_64 = l_Lean_Elab_Term_ensureHasType(x_4, x_59, x_62, x_51, x_63); -if (lean_obj_tag(x_64) == 0) +x_64 = lean_ctor_get(x_62, 1); +lean_inc(x_64); +lean_dec(x_62); +lean_inc(x_52); +x_65 = l_Lean_Elab_Term_ensureHasType(x_60, x_63, x_52, x_64); +if (lean_obj_tag(x_65) == 0) { -lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; +lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; lean_dec(x_6); lean_dec(x_5); -x_65 = lean_ctor_get(x_64, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_64, 1); +x_66 = lean_ctor_get(x_65, 0); lean_inc(x_66); -lean_dec(x_64); -x_67 = l_Lean_Elab_Term_assignExprMVar(x_3, x_65, x_51, x_66); -lean_dec(x_51); -x_68 = !lean_is_exclusive(x_67); -if (x_68 == 0) +x_67 = lean_ctor_get(x_65, 1); +lean_inc(x_67); +lean_dec(x_65); +x_68 = l_Lean_Elab_Term_assignExprMVar(x_3, x_66, x_52, x_67); +lean_dec(x_52); +x_69 = !lean_is_exclusive(x_68); +if (x_69 == 0) { -lean_object* x_69; lean_object* x_70; -x_69 = lean_ctor_get(x_67, 0); -lean_dec(x_69); -x_70 = lean_box(x_60); -lean_ctor_set(x_67, 0, x_70); -return x_67; +lean_object* x_70; lean_object* x_71; +x_70 = lean_ctor_get(x_68, 0); +lean_dec(x_70); +x_71 = lean_box(x_61); +lean_ctor_set(x_68, 0, x_71); +return x_68; } else { -lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_71 = lean_ctor_get(x_67, 1); -lean_inc(x_71); -lean_dec(x_67); -x_72 = lean_box(x_60); -x_73 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_73, 0, x_72); -lean_ctor_set(x_73, 1, x_71); -return x_73; +lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_72 = lean_ctor_get(x_68, 1); +lean_inc(x_72); +lean_dec(x_68); +x_73 = lean_box(x_61); +x_74 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_74, 0, x_73); +lean_ctor_set(x_74, 1, x_72); +return x_74; } } else { -lean_object* x_74; lean_object* x_75; -lean_dec(x_51); +lean_object* x_75; lean_object* x_76; +lean_dec(x_52); lean_dec(x_3); -x_74 = lean_ctor_get(x_64, 0); -lean_inc(x_74); -x_75 = lean_ctor_get(x_64, 1); +x_75 = lean_ctor_get(x_65, 0); lean_inc(x_75); -lean_dec(x_64); -x_8 = x_74; -x_9 = x_75; -goto block_38; -} -} -else -{ -lean_object* x_76; lean_object* x_77; -lean_dec(x_59); -lean_dec(x_51); -lean_dec(x_4); -lean_dec(x_3); -x_76 = lean_ctor_get(x_61, 0); +x_76 = lean_ctor_get(x_65, 1); lean_inc(x_76); -x_77 = lean_ctor_get(x_61, 1); -lean_inc(x_77); -lean_dec(x_61); -x_8 = x_76; -x_9 = x_77; +lean_dec(x_65); +x_8 = x_75; +x_9 = x_76; goto block_38; } } else { -uint8_t x_78; lean_object* x_79; -x_78 = 0; -lean_inc(x_51); -lean_inc(x_59); -lean_inc(x_4); -x_79 = l___private_Lean_Elab_SyntheticMVars_1__resumeElabTerm(x_4, x_59, x_78, x_51, x_58); -if (lean_obj_tag(x_79) == 0) +lean_object* x_77; lean_object* x_78; +lean_dec(x_60); +lean_dec(x_52); +lean_dec(x_3); +x_77 = lean_ctor_get(x_62, 0); +lean_inc(x_77); +x_78 = lean_ctor_get(x_62, 1); +lean_inc(x_78); +lean_dec(x_62); +x_8 = x_77; +x_9 = x_78; +goto block_38; +} +} +else { -lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_80 = lean_ctor_get(x_79, 0); -lean_inc(x_80); -x_81 = lean_ctor_get(x_79, 1); +uint8_t x_79; lean_object* x_80; +x_79 = 0; +lean_inc(x_52); +lean_inc(x_60); +x_80 = l___private_Lean_Elab_SyntheticMVars_1__resumeElabTerm(x_4, x_60, x_79, x_52, x_59); +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); -lean_dec(x_79); -lean_inc(x_51); -x_82 = l_Lean_Elab_Term_ensureHasType(x_4, x_59, x_80, x_51, x_81); -if (lean_obj_tag(x_82) == 0) +x_82 = lean_ctor_get(x_80, 1); +lean_inc(x_82); +lean_dec(x_80); +lean_inc(x_52); +x_83 = l_Lean_Elab_Term_ensureHasType(x_60, x_81, x_52, x_82); +if (lean_obj_tag(x_83) == 0) { -lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; +lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; lean_dec(x_6); lean_dec(x_5); -x_83 = lean_ctor_get(x_82, 0); -lean_inc(x_83); -x_84 = lean_ctor_get(x_82, 1); +x_84 = lean_ctor_get(x_83, 0); lean_inc(x_84); -lean_dec(x_82); -x_85 = l_Lean_Elab_Term_assignExprMVar(x_3, x_83, x_51, x_84); -lean_dec(x_51); -x_86 = !lean_is_exclusive(x_85); -if (x_86 == 0) +x_85 = lean_ctor_get(x_83, 1); +lean_inc(x_85); +lean_dec(x_83); +x_86 = l_Lean_Elab_Term_assignExprMVar(x_3, x_84, x_52, x_85); +lean_dec(x_52); +x_87 = !lean_is_exclusive(x_86); +if (x_87 == 0) { -lean_object* x_87; uint8_t x_88; lean_object* x_89; -x_87 = lean_ctor_get(x_85, 0); -lean_dec(x_87); -x_88 = 1; -x_89 = lean_box(x_88); -lean_ctor_set(x_85, 0, x_89); -return x_85; +lean_object* x_88; uint8_t x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_86, 0); +lean_dec(x_88); +x_89 = 1; +x_90 = lean_box(x_89); +lean_ctor_set(x_86, 0, x_90); +return x_86; } else { -lean_object* x_90; uint8_t x_91; lean_object* x_92; lean_object* x_93; -x_90 = lean_ctor_get(x_85, 1); -lean_inc(x_90); -lean_dec(x_85); -x_91 = 1; -x_92 = lean_box(x_91); -x_93 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_93, 0, x_92); -lean_ctor_set(x_93, 1, x_90); -return x_93; +lean_object* x_91; uint8_t x_92; lean_object* x_93; lean_object* x_94; +x_91 = lean_ctor_get(x_86, 1); +lean_inc(x_91); +lean_dec(x_86); +x_92 = 1; +x_93 = lean_box(x_92); +x_94 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_94, 0, x_93); +lean_ctor_set(x_94, 1, x_91); +return x_94; } } else { -lean_object* x_94; lean_object* x_95; -lean_dec(x_51); +lean_object* x_95; lean_object* x_96; +lean_dec(x_52); lean_dec(x_3); -x_94 = lean_ctor_get(x_82, 0); -lean_inc(x_94); -x_95 = lean_ctor_get(x_82, 1); +x_95 = lean_ctor_get(x_83, 0); lean_inc(x_95); -lean_dec(x_82); -x_8 = x_94; -x_9 = x_95; +x_96 = lean_ctor_get(x_83, 1); +lean_inc(x_96); +lean_dec(x_83); +x_8 = x_95; +x_9 = x_96; goto block_38; } } else { -lean_object* x_96; lean_object* x_97; -lean_dec(x_59); -lean_dec(x_51); -lean_dec(x_4); +lean_object* x_97; lean_object* x_98; +lean_dec(x_60); +lean_dec(x_52); lean_dec(x_3); -x_96 = lean_ctor_get(x_79, 0); -lean_inc(x_96); -x_97 = lean_ctor_get(x_79, 1); +x_97 = lean_ctor_get(x_80, 0); lean_inc(x_97); -lean_dec(x_79); -x_8 = x_96; -x_9 = x_97; +x_98 = lean_ctor_get(x_80, 1); +lean_inc(x_98); +lean_dec(x_80); +x_8 = x_97; +x_9 = x_98; goto block_38; } } @@ -1893,8 +2300,9 @@ return x_2; lean_object* l___private_Lean_Elab_SyntheticMVars_2__resumePostponed(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; x_7 = lean_box(x_4); +lean_inc(x_2); lean_inc(x_3); x_8 = lean_alloc_closure((void*)(l___private_Lean_Elab_SyntheticMVars_2__resumePostponed___lambda__1___boxed), 7, 4); lean_closure_set(x_8, 0, x_7); @@ -1905,9 +2313,63 @@ x_9 = l___private_Lean_Elab_SyntheticMVars_2__resumePostponed___closed__1; x_10 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Term_monadLog___spec__2___rarg), 4, 2); lean_closure_set(x_10, 0, x_9); lean_closure_set(x_10, 1, x_8); -x_11 = l_Lean_Elab_Term_withMVarContext___rarg(x_3, x_10, x_5, x_6); +x_11 = !lean_is_exclusive(x_5); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_5, 10); +lean_dec(x_12); +lean_ctor_set(x_5, 10, x_2); +x_13 = l_Lean_Elab_Term_withMVarContext___rarg(x_3, x_10, x_5, x_6); lean_dec(x_3); -return x_11; +return x_13; +} +else +{ +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; lean_object* x_23; uint8_t x_24; uint8_t x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; +x_14 = lean_ctor_get(x_5, 0); +x_15 = lean_ctor_get(x_5, 1); +x_16 = lean_ctor_get(x_5, 2); +x_17 = lean_ctor_get(x_5, 3); +x_18 = lean_ctor_get(x_5, 4); +x_19 = lean_ctor_get(x_5, 5); +x_20 = lean_ctor_get(x_5, 6); +x_21 = lean_ctor_get(x_5, 7); +x_22 = lean_ctor_get(x_5, 8); +x_23 = lean_ctor_get(x_5, 9); +x_24 = lean_ctor_get_uint8(x_5, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_5, sizeof(void*)*11 + 1); +x_26 = lean_ctor_get_uint8(x_5, sizeof(void*)*11 + 2); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_5); +x_27 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_27, 0, x_14); +lean_ctor_set(x_27, 1, x_15); +lean_ctor_set(x_27, 2, x_16); +lean_ctor_set(x_27, 3, x_17); +lean_ctor_set(x_27, 4, x_18); +lean_ctor_set(x_27, 5, x_19); +lean_ctor_set(x_27, 6, x_20); +lean_ctor_set(x_27, 7, x_21); +lean_ctor_set(x_27, 8, x_22); +lean_ctor_set(x_27, 9, x_23); +lean_ctor_set(x_27, 10, x_2); +lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_24); +lean_ctor_set_uint8(x_27, sizeof(void*)*11 + 1, x_25); +lean_ctor_set_uint8(x_27, sizeof(void*)*11 + 2, x_26); +x_28 = l_Lean_Elab_Term_withMVarContext___rarg(x_3, x_10, x_27, x_6); +lean_dec(x_3); +return x_28; +} } } lean_object* l___private_Lean_Elab_SyntheticMVars_2__resumePostponed___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) { @@ -1930,433 +2392,411 @@ x_8 = l___private_Lean_Elab_SyntheticMVars_2__resumePostponed(x_1, x_2, x_3, x_7 return x_8; } } -lean_object* l___private_Lean_Elab_SyntheticMVars_3__synthesizePendingInstMVar___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_SyntheticMVars_3__synthesizePendingInstMVar___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; -lean_inc(x_3); -x_5 = l_Lean_Elab_Term_synthesizeInstMVarCore(x_1, x_2, x_3, x_4); -if (lean_obj_tag(x_5) == 0) +lean_object* x_4; +lean_inc(x_2); +x_4 = l_Lean_Elab_Term_synthesizeInstMVarCore(x_1, x_2, x_3); +if (lean_obj_tag(x_4) == 0) { -lean_dec(x_3); -return x_5; +lean_dec(x_2); +return x_4; } else { +lean_object* x_5; +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +if (lean_obj_tag(x_5) == 0) +{ lean_object* x_6; x_6 = lean_ctor_get(x_5, 0); lean_inc(x_6); +lean_dec(x_5); if (lean_obj_tag(x_6) == 0) { -lean_object* x_7; -x_7 = lean_ctor_get(x_6, 0); -lean_inc(x_7); +uint8_t x_7; +lean_dec(x_2); +x_7 = !lean_is_exclusive(x_4); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_8 = lean_ctor_get(x_4, 1); +x_9 = lean_ctor_get(x_4, 0); +lean_dec(x_9); +x_10 = lean_ctor_get(x_6, 0); +lean_inc(x_10); lean_dec(x_6); -if (lean_obj_tag(x_7) == 0) +x_11 = !lean_is_exclusive(x_8); +if (x_11 == 0) { -uint8_t x_8; -lean_dec(x_3); -x_8 = !lean_is_exclusive(x_5); -if (x_8 == 0) -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_9 = lean_ctor_get(x_5, 1); -x_10 = lean_ctor_get(x_5, 0); -lean_dec(x_10); -x_11 = lean_ctor_get(x_7, 0); -lean_inc(x_11); -lean_dec(x_7); -x_12 = !lean_is_exclusive(x_9); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; -x_13 = lean_ctor_get(x_9, 2); -x_14 = l_Std_PersistentArray_push___rarg(x_13, x_11); -lean_ctor_set(x_9, 2, x_14); -x_15 = 1; -x_16 = lean_box(x_15); -lean_ctor_set_tag(x_5, 0); -lean_ctor_set(x_5, 0, x_16); -return x_5; +lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; +x_12 = lean_ctor_get(x_8, 2); +x_13 = l_Std_PersistentArray_push___rarg(x_12, x_10); +lean_ctor_set(x_8, 2, x_13); +x_14 = 1; +x_15 = lean_box(x_14); +lean_ctor_set_tag(x_4, 0); +lean_ctor_set(x_4, 0, x_15); +return x_4; } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; -x_17 = lean_ctor_get(x_9, 0); -x_18 = lean_ctor_get(x_9, 1); -x_19 = lean_ctor_get(x_9, 2); -x_20 = lean_ctor_get(x_9, 3); -x_21 = lean_ctor_get(x_9, 4); -x_22 = lean_ctor_get(x_9, 5); -lean_inc(x_22); +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; +x_16 = lean_ctor_get(x_8, 0); +x_17 = lean_ctor_get(x_8, 1); +x_18 = lean_ctor_get(x_8, 2); +x_19 = lean_ctor_get(x_8, 3); +x_20 = lean_ctor_get(x_8, 4); +x_21 = lean_ctor_get(x_8, 5); lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); lean_inc(x_17); -lean_dec(x_9); -x_23 = l_Std_PersistentArray_push___rarg(x_19, x_11); -x_24 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_24, 0, x_17); -lean_ctor_set(x_24, 1, x_18); -lean_ctor_set(x_24, 2, x_23); -lean_ctor_set(x_24, 3, x_20); -lean_ctor_set(x_24, 4, x_21); -lean_ctor_set(x_24, 5, x_22); -x_25 = 1; -x_26 = lean_box(x_25); -lean_ctor_set_tag(x_5, 0); -lean_ctor_set(x_5, 1, x_24); -lean_ctor_set(x_5, 0, x_26); -return x_5; +lean_inc(x_16); +lean_dec(x_8); +x_22 = l_Std_PersistentArray_push___rarg(x_18, x_10); +x_23 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_23, 0, x_16); +lean_ctor_set(x_23, 1, x_17); +lean_ctor_set(x_23, 2, x_22); +lean_ctor_set(x_23, 3, x_19); +lean_ctor_set(x_23, 4, x_20); +lean_ctor_set(x_23, 5, x_21); +x_24 = 1; +x_25 = lean_box(x_24); +lean_ctor_set_tag(x_4, 0); +lean_ctor_set(x_4, 1, x_23); +lean_ctor_set(x_4, 0, x_25); +return x_4; } } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; lean_object* x_40; -x_27 = lean_ctor_get(x_5, 1); +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; lean_object* x_38; lean_object* x_39; +x_26 = lean_ctor_get(x_4, 1); +lean_inc(x_26); +lean_dec(x_4); +x_27 = lean_ctor_get(x_6, 0); lean_inc(x_27); -lean_dec(x_5); -x_28 = lean_ctor_get(x_7, 0); +lean_dec(x_6); +x_28 = lean_ctor_get(x_26, 0); lean_inc(x_28); -lean_dec(x_7); -x_29 = lean_ctor_get(x_27, 0); +x_29 = lean_ctor_get(x_26, 1); lean_inc(x_29); -x_30 = lean_ctor_get(x_27, 1); +x_30 = lean_ctor_get(x_26, 2); lean_inc(x_30); -x_31 = lean_ctor_get(x_27, 2); +x_31 = lean_ctor_get(x_26, 3); lean_inc(x_31); -x_32 = lean_ctor_get(x_27, 3); +x_32 = lean_ctor_get(x_26, 4); lean_inc(x_32); -x_33 = lean_ctor_get(x_27, 4); +x_33 = lean_ctor_get(x_26, 5); lean_inc(x_33); -x_34 = lean_ctor_get(x_27, 5); -lean_inc(x_34); -if (lean_is_exclusive(x_27)) { - lean_ctor_release(x_27, 0); - lean_ctor_release(x_27, 1); - lean_ctor_release(x_27, 2); - lean_ctor_release(x_27, 3); - lean_ctor_release(x_27, 4); - lean_ctor_release(x_27, 5); - x_35 = x_27; +if (lean_is_exclusive(x_26)) { + lean_ctor_release(x_26, 0); + lean_ctor_release(x_26, 1); + lean_ctor_release(x_26, 2); + lean_ctor_release(x_26, 3); + lean_ctor_release(x_26, 4); + lean_ctor_release(x_26, 5); + x_34 = x_26; } else { - lean_dec_ref(x_27); - x_35 = lean_box(0); + lean_dec_ref(x_26); + x_34 = lean_box(0); } -x_36 = l_Std_PersistentArray_push___rarg(x_31, x_28); -if (lean_is_scalar(x_35)) { - x_37 = lean_alloc_ctor(0, 6, 0); +x_35 = l_Std_PersistentArray_push___rarg(x_30, x_27); +if (lean_is_scalar(x_34)) { + x_36 = lean_alloc_ctor(0, 6, 0); } else { - x_37 = x_35; + x_36 = x_34; } -lean_ctor_set(x_37, 0, x_29); -lean_ctor_set(x_37, 1, x_30); -lean_ctor_set(x_37, 2, x_36); -lean_ctor_set(x_37, 3, x_32); -lean_ctor_set(x_37, 4, x_33); -lean_ctor_set(x_37, 5, x_34); -x_38 = 1; -x_39 = lean_box(x_38); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_37); -return x_40; +lean_ctor_set(x_36, 0, x_28); +lean_ctor_set(x_36, 1, x_29); +lean_ctor_set(x_36, 2, x_35); +lean_ctor_set(x_36, 3, x_31); +lean_ctor_set(x_36, 4, x_32); +lean_ctor_set(x_36, 5, x_33); +x_37 = 1; +x_38 = lean_box(x_37); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_36); +return x_39; } } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_41 = lean_ctor_get(x_5, 1); -lean_inc(x_41); -lean_dec(x_5); -x_42 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; -x_43 = l_unreachable_x21___rarg(x_42); -x_44 = lean_apply_2(x_43, x_3, x_41); -return x_44; +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_40 = lean_ctor_get(x_4, 1); +lean_inc(x_40); +lean_dec(x_4); +x_41 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; +x_42 = l_unreachable_x21___rarg(x_41); +x_43 = lean_apply_2(x_42, x_2, x_40); +return x_43; } } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_45 = lean_ctor_get(x_5, 1); -lean_inc(x_45); -lean_dec(x_5); -x_46 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; -x_47 = l_unreachable_x21___rarg(x_46); -x_48 = lean_apply_2(x_47, x_3, x_45); -return x_48; +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_44 = lean_ctor_get(x_4, 1); +lean_inc(x_44); +lean_dec(x_4); +x_45 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; +x_46 = l_unreachable_x21___rarg(x_45); +x_47 = lean_apply_2(x_46, x_2, x_44); +return x_47; } } } } -lean_object* l___private_Lean_Elab_SyntheticMVars_3__synthesizePendingInstMVar(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_SyntheticMVars_3__synthesizePendingInstMVar(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; lean_object* x_6; -lean_inc(x_2); -x_5 = lean_alloc_closure((void*)(l___private_Lean_Elab_SyntheticMVars_3__synthesizePendingInstMVar___lambda__1___boxed), 4, 2); -lean_closure_set(x_5, 0, x_1); -lean_closure_set(x_5, 1, x_2); -x_6 = l_Lean_Elab_Term_withMVarContext___rarg(x_2, x_5, x_3, x_4); -lean_dec(x_2); -return x_6; -} -} -lean_object* l___private_Lean_Elab_SyntheticMVars_3__synthesizePendingInstMVar___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l___private_Lean_Elab_SyntheticMVars_3__synthesizePendingInstMVar___lambda__1(x_1, x_2, x_3, x_4); +lean_object* x_4; lean_object* x_5; +lean_inc(x_1); +x_4 = lean_alloc_closure((void*)(l___private_Lean_Elab_SyntheticMVars_3__synthesizePendingInstMVar___lambda__1), 3, 1); +lean_closure_set(x_4, 0, x_1); +x_5 = l_Lean_Elab_Term_withMVarContext___rarg(x_1, x_4, x_2, x_3); lean_dec(x_1); return x_5; } } -lean_object* l___private_Lean_Elab_SyntheticMVars_4__synthesizePendingCoeInstMVar___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* l___private_Lean_Elab_SyntheticMVars_4__synthesizePendingCoeInstMVar___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) { _start: { -lean_object* x_9; -lean_inc(x_7); -x_9 = l_Lean_Elab_Term_synthesizeInstMVarCore(x_1, x_2, x_7, x_8); -if (lean_obj_tag(x_9) == 0) +lean_object* x_8; +lean_inc(x_6); +x_8 = l_Lean_Elab_Term_synthesizeInstMVarCore(x_1, x_6, x_7); +if (lean_obj_tag(x_8) == 0) { -lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_9; +lean_dec(x_2); +return x_8; } else { +lean_object* x_9; +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +if (lean_obj_tag(x_9) == 0) +{ lean_object* x_10; x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); +lean_dec(x_9); if (lean_obj_tag(x_10) == 0) { -lean_object* x_11; -x_11 = lean_ctor_get(x_10, 0); +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_11 = lean_ctor_get(x_8, 1); lean_inc(x_11); -lean_dec(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; -x_12 = lean_ctor_get(x_9, 1); +lean_dec(x_8); +x_12 = lean_ctor_get(x_10, 0); lean_inc(x_12); -lean_dec(x_9); -x_13 = lean_ctor_get(x_11, 0); +lean_dec(x_10); +x_13 = lean_ctor_get(x_12, 4); lean_inc(x_13); -lean_dec(x_11); -x_14 = lean_ctor_get(x_13, 4); -lean_inc(x_14); -lean_dec(x_13); -x_15 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_15, 0, x_14); -x_16 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_3, x_4, x_5, x_6, x_15, x_7, x_12); -lean_dec(x_15); -return x_16; +lean_dec(x_12); +x_14 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_14, 0, x_13); +x_15 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_2, x_3, x_4, x_5, x_14, x_6, x_11); +lean_dec(x_14); +return x_15; } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -lean_dec(x_6); +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_17 = lean_ctor_get(x_9, 1); -lean_inc(x_17); -lean_dec(x_9); -x_18 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; -x_19 = l_unreachable_x21___rarg(x_18); -x_20 = lean_apply_2(x_19, x_7, x_17); -return x_20; -} -} -else -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_21 = lean_ctor_get(x_9, 1); -lean_inc(x_21); -lean_dec(x_9); -x_22 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; -x_23 = l_unreachable_x21___rarg(x_22); -x_24 = lean_apply_2(x_23, x_7, x_21); -return x_24; -} -} -} -} -lean_object* l___private_Lean_Elab_SyntheticMVars_4__synthesizePendingCoeInstMVar(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; -lean_inc(x_2); -x_9 = lean_alloc_closure((void*)(l___private_Lean_Elab_SyntheticMVars_4__synthesizePendingCoeInstMVar___lambda__1___boxed), 8, 6); -lean_closure_set(x_9, 0, x_1); -lean_closure_set(x_9, 1, x_2); -lean_closure_set(x_9, 2, x_3); -lean_closure_set(x_9, 3, x_4); -lean_closure_set(x_9, 4, x_5); -lean_closure_set(x_9, 5, x_6); -x_10 = l_Lean_Elab_Term_withMVarContext___rarg(x_2, x_9, x_7, x_8); lean_dec(x_2); -return x_10; +x_16 = lean_ctor_get(x_8, 1); +lean_inc(x_16); +lean_dec(x_8); +x_17 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; +x_18 = l_unreachable_x21___rarg(x_17); +x_19 = lean_apply_2(x_18, x_6, x_16); +return x_19; } } -lean_object* l___private_Lean_Elab_SyntheticMVars_4__synthesizePendingCoeInstMVar___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) { +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_20 = lean_ctor_get(x_8, 1); +lean_inc(x_20); +lean_dec(x_8); +x_21 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; +x_22 = l_unreachable_x21___rarg(x_21); +x_23 = lean_apply_2(x_22, x_6, x_20); +return x_23; +} +} +} +} +lean_object* l___private_Lean_Elab_SyntheticMVars_4__synthesizePendingCoeInstMVar(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_9; -x_9 = l___private_Lean_Elab_SyntheticMVars_4__synthesizePendingCoeInstMVar___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_object* x_8; lean_object* x_9; +lean_inc(x_1); +x_8 = lean_alloc_closure((void*)(l___private_Lean_Elab_SyntheticMVars_4__synthesizePendingCoeInstMVar___lambda__1), 7, 5); +lean_closure_set(x_8, 0, x_1); +lean_closure_set(x_8, 1, x_2); +lean_closure_set(x_8, 2, x_3); +lean_closure_set(x_8, 3, x_4); +lean_closure_set(x_8, 4, x_5); +x_9 = l_Lean_Elab_Term_withMVarContext___rarg(x_1, x_8, x_6, x_7); lean_dec(x_1); return x_9; } } -lean_object* l___private_Lean_Elab_SyntheticMVars_5__checkWithDefault(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_SyntheticMVars_5__checkWithDefault(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; lean_object* x_6; uint8_t x_7; -x_5 = l_Lean_mkMVar(x_2); -x_6 = l_Lean_Elab_Term_instantiateMVars(x_1, x_5, x_3, x_4); -x_7 = !lean_is_exclusive(x_6); -if (x_7 == 0) +lean_object* x_4; lean_object* x_5; uint8_t x_6; +x_4 = l_Lean_mkMVar(x_1); +x_5 = l_Lean_Elab_Term_instantiateMVars(x_4, x_2, x_3); +x_6 = !lean_is_exclusive(x_5); +if (x_6 == 0) { -lean_object* x_8; lean_object* x_9; uint8_t x_10; -x_8 = lean_ctor_get(x_6, 0); -x_9 = l_Lean_Expr_getAppFn___main(x_8); +lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_7 = lean_ctor_get(x_5, 0); +x_8 = l_Lean_Expr_getAppFn___main(x_7); +lean_dec(x_7); +x_9 = l_Lean_Expr_isMVar(x_8); lean_dec(x_8); -x_10 = l_Lean_Expr_isMVar(x_9); -lean_dec(x_9); -if (x_10 == 0) +if (x_9 == 0) { -uint8_t x_11; lean_object* x_12; -x_11 = 1; -x_12 = lean_box(x_11); -lean_ctor_set(x_6, 0, x_12); -return x_6; -} -else -{ -uint8_t x_13; lean_object* x_14; -x_13 = 0; -x_14 = lean_box(x_13); -lean_ctor_set(x_6, 0, x_14); -return x_6; -} -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; -x_15 = lean_ctor_get(x_6, 0); -x_16 = lean_ctor_get(x_6, 1); -lean_inc(x_16); -lean_inc(x_15); -lean_dec(x_6); -x_17 = l_Lean_Expr_getAppFn___main(x_15); -lean_dec(x_15); -x_18 = l_Lean_Expr_isMVar(x_17); -lean_dec(x_17); -if (x_18 == 0) -{ -uint8_t x_19; lean_object* x_20; lean_object* x_21; -x_19 = 1; -x_20 = lean_box(x_19); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_16); -return x_21; -} -else -{ -uint8_t x_22; lean_object* x_23; lean_object* x_24; -x_22 = 0; -x_23 = lean_box(x_22); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_16); -return x_24; -} -} -} -} -lean_object* l___private_Lean_Elab_SyntheticMVars_5__checkWithDefault___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l___private_Lean_Elab_SyntheticMVars_5__checkWithDefault(x_1, x_2, x_3, x_4); -lean_dec(x_1); +uint8_t x_10; lean_object* x_11; +x_10 = 1; +x_11 = lean_box(x_10); +lean_ctor_set(x_5, 0, x_11); return x_5; } +else +{ +uint8_t x_12; lean_object* x_13; +x_12 = 0; +x_13 = lean_box(x_12); +lean_ctor_set(x_5, 0, x_13); +return x_5; +} +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_14 = lean_ctor_get(x_5, 0); +x_15 = lean_ctor_get(x_5, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_5); +x_16 = l_Lean_Expr_getAppFn___main(x_14); +lean_dec(x_14); +x_17 = l_Lean_Expr_isMVar(x_16); +lean_dec(x_16); +if (x_17 == 0) +{ +uint8_t x_18; lean_object* x_19; lean_object* x_20; +x_18 = 1; +x_19 = lean_box(x_18); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_15); +return x_20; +} +else +{ +uint8_t x_21; lean_object* x_22; lean_object* x_23; +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_15); +return x_23; +} +} +} } lean_object* l___private_Lean_Elab_SyntheticMVars_6__synthesizeSyntheticMVar(lean_object* x_1, uint8_t x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_6; -x_6 = lean_ctor_get(x_1, 2); +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_1, 1); lean_inc(x_6); -switch (lean_obj_tag(x_6)) { +x_7 = lean_ctor_get(x_1, 2); +lean_inc(x_7); +x_8 = !lean_is_exclusive(x_4); +if (x_8 == 0) +{ +lean_object* x_9; +x_9 = lean_ctor_get(x_4, 10); +lean_dec(x_9); +lean_inc(x_6); +lean_ctor_set(x_4, 10, x_6); +switch (lean_obj_tag(x_7)) { case 0: { -lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_7 = lean_ctor_get(x_1, 1); -lean_inc(x_7); -x_8 = lean_ctor_get(x_1, 0); -lean_inc(x_8); +lean_object* x_10; lean_object* x_11; +lean_dec(x_6); +x_10 = lean_ctor_get(x_1, 0); +lean_inc(x_10); lean_dec(x_1); -x_9 = l___private_Lean_Elab_SyntheticMVars_3__synthesizePendingInstMVar(x_7, x_8, x_4, x_5); -return x_9; +x_11 = l___private_Lean_Elab_SyntheticMVars_3__synthesizePendingInstMVar(x_10, x_4, x_5); +return x_11; } case 1: { -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; -x_10 = lean_ctor_get(x_6, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_6, 1); -lean_inc(x_11); -x_12 = lean_ctor_get(x_6, 2); -lean_inc(x_12); -x_13 = lean_ctor_get(x_6, 3); -lean_inc(x_13); +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_dec(x_6); -x_14 = lean_ctor_get(x_1, 1); +x_12 = lean_ctor_get(x_7, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_7, 1); +lean_inc(x_13); +x_14 = lean_ctor_get(x_7, 2); lean_inc(x_14); -x_15 = lean_ctor_get(x_1, 0); +x_15 = lean_ctor_get(x_7, 3); lean_inc(x_15); +lean_dec(x_7); +x_16 = lean_ctor_get(x_1, 0); +lean_inc(x_16); lean_dec(x_1); -x_16 = l___private_Lean_Elab_SyntheticMVars_4__synthesizePendingCoeInstMVar(x_14, x_15, x_10, x_11, x_12, x_13, x_4, x_5); -return x_16; +x_17 = l___private_Lean_Elab_SyntheticMVars_4__synthesizePendingCoeInstMVar(x_16, x_12, x_13, x_14, x_15, x_4, x_5); +return x_17; } case 2: { +lean_dec(x_6); if (x_3 == 0) { -uint8_t x_17; lean_object* x_18; lean_object* x_19; -lean_dec(x_6); +uint8_t x_18; lean_object* x_19; lean_object* x_20; lean_dec(x_4); +lean_dec(x_7); lean_dec(x_1); -x_17 = 0; -x_18 = lean_box(x_17); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_5); -return x_19; +x_18 = 0; +x_19 = lean_box(x_18); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_5); +return x_20; } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_20 = lean_ctor_get(x_6, 0); -lean_inc(x_20); -lean_dec(x_6); -x_21 = lean_ctor_get(x_1, 1); +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_7, 0); lean_inc(x_21); +lean_dec(x_7); x_22 = lean_ctor_get(x_1, 0); lean_inc(x_22); lean_dec(x_1); -x_23 = l_Lean_Elab_Term_runTactic(x_21, x_22, x_20, x_4, x_5); +x_23 = l_Lean_Elab_Term_runTactic(x_22, x_21, x_4, x_5); if (lean_obj_tag(x_23) == 0) { uint8_t x_24; @@ -2411,30 +2851,201 @@ return x_35; } case 3: { -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_36 = lean_ctor_get(x_6, 0); +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_7, 0); lean_inc(x_36); -lean_dec(x_6); -x_37 = lean_ctor_get(x_1, 1); +lean_dec(x_7); +x_37 = lean_ctor_get(x_1, 0); lean_inc(x_37); -x_38 = lean_ctor_get(x_1, 0); -lean_inc(x_38); lean_dec(x_1); -x_39 = l___private_Lean_Elab_SyntheticMVars_2__resumePostponed(x_36, x_37, x_38, x_2, x_4, x_5); -return x_39; +x_38 = l___private_Lean_Elab_SyntheticMVars_2__resumePostponed(x_36, x_6, x_37, x_2, x_4, x_5); +return x_38; } default: { -lean_object* x_40; lean_object* x_41; lean_object* x_42; +lean_object* x_39; lean_object* x_40; +lean_dec(x_7); lean_dec(x_6); -x_40 = lean_ctor_get(x_1, 1); -lean_inc(x_40); -x_41 = lean_ctor_get(x_1, 0); -lean_inc(x_41); +x_39 = lean_ctor_get(x_1, 0); +lean_inc(x_39); lean_dec(x_1); -x_42 = l___private_Lean_Elab_SyntheticMVars_5__checkWithDefault(x_40, x_41, x_4, x_5); -lean_dec(x_40); -return x_42; +x_40 = l___private_Lean_Elab_SyntheticMVars_5__checkWithDefault(x_39, x_4, x_5); +return x_40; +} +} +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; uint8_t x_52; uint8_t x_53; lean_object* x_54; +x_41 = lean_ctor_get(x_4, 0); +x_42 = lean_ctor_get(x_4, 1); +x_43 = lean_ctor_get(x_4, 2); +x_44 = lean_ctor_get(x_4, 3); +x_45 = lean_ctor_get(x_4, 4); +x_46 = lean_ctor_get(x_4, 5); +x_47 = lean_ctor_get(x_4, 6); +x_48 = lean_ctor_get(x_4, 7); +x_49 = lean_ctor_get(x_4, 8); +x_50 = lean_ctor_get(x_4, 9); +x_51 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_52 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_53 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +lean_inc(x_50); +lean_inc(x_49); +lean_inc(x_48); +lean_inc(x_47); +lean_inc(x_46); +lean_inc(x_45); +lean_inc(x_44); +lean_inc(x_43); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_4); +lean_inc(x_6); +x_54 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_54, 0, x_41); +lean_ctor_set(x_54, 1, x_42); +lean_ctor_set(x_54, 2, x_43); +lean_ctor_set(x_54, 3, x_44); +lean_ctor_set(x_54, 4, x_45); +lean_ctor_set(x_54, 5, x_46); +lean_ctor_set(x_54, 6, x_47); +lean_ctor_set(x_54, 7, x_48); +lean_ctor_set(x_54, 8, x_49); +lean_ctor_set(x_54, 9, x_50); +lean_ctor_set(x_54, 10, x_6); +lean_ctor_set_uint8(x_54, sizeof(void*)*11, x_51); +lean_ctor_set_uint8(x_54, sizeof(void*)*11 + 1, x_52); +lean_ctor_set_uint8(x_54, sizeof(void*)*11 + 2, x_53); +switch (lean_obj_tag(x_7)) { +case 0: +{ +lean_object* x_55; lean_object* x_56; +lean_dec(x_6); +x_55 = lean_ctor_get(x_1, 0); +lean_inc(x_55); +lean_dec(x_1); +x_56 = l___private_Lean_Elab_SyntheticMVars_3__synthesizePendingInstMVar(x_55, x_54, x_5); +return x_56; +} +case 1: +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +lean_dec(x_6); +x_57 = lean_ctor_get(x_7, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_7, 1); +lean_inc(x_58); +x_59 = lean_ctor_get(x_7, 2); +lean_inc(x_59); +x_60 = lean_ctor_get(x_7, 3); +lean_inc(x_60); +lean_dec(x_7); +x_61 = lean_ctor_get(x_1, 0); +lean_inc(x_61); +lean_dec(x_1); +x_62 = l___private_Lean_Elab_SyntheticMVars_4__synthesizePendingCoeInstMVar(x_61, x_57, x_58, x_59, x_60, x_54, x_5); +return x_62; +} +case 2: +{ +lean_dec(x_6); +if (x_3 == 0) +{ +uint8_t x_63; lean_object* x_64; lean_object* x_65; +lean_dec(x_54); +lean_dec(x_7); +lean_dec(x_1); +x_63 = 0; +x_64 = lean_box(x_63); +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_5); +return x_65; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_7, 0); +lean_inc(x_66); +lean_dec(x_7); +x_67 = lean_ctor_get(x_1, 0); +lean_inc(x_67); +lean_dec(x_1); +x_68 = l_Lean_Elab_Term_runTactic(x_67, x_66, x_54, x_5); +if (lean_obj_tag(x_68) == 0) +{ +lean_object* x_69; lean_object* x_70; uint8_t x_71; lean_object* x_72; lean_object* x_73; +x_69 = lean_ctor_get(x_68, 1); +lean_inc(x_69); +if (lean_is_exclusive(x_68)) { + lean_ctor_release(x_68, 0); + lean_ctor_release(x_68, 1); + x_70 = x_68; +} else { + lean_dec_ref(x_68); + x_70 = lean_box(0); +} +x_71 = 1; +x_72 = lean_box(x_71); +if (lean_is_scalar(x_70)) { + x_73 = lean_alloc_ctor(0, 2, 0); +} else { + x_73 = x_70; +} +lean_ctor_set(x_73, 0, x_72); +lean_ctor_set(x_73, 1, x_69); +return x_73; +} +else +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_74 = lean_ctor_get(x_68, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_68, 1); +lean_inc(x_75); +if (lean_is_exclusive(x_68)) { + lean_ctor_release(x_68, 0); + lean_ctor_release(x_68, 1); + x_76 = x_68; +} else { + lean_dec_ref(x_68); + x_76 = lean_box(0); +} +if (lean_is_scalar(x_76)) { + x_77 = lean_alloc_ctor(1, 2, 0); +} else { + x_77 = x_76; +} +lean_ctor_set(x_77, 0, x_74); +lean_ctor_set(x_77, 1, x_75); +return x_77; +} +} +} +case 3: +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_78 = lean_ctor_get(x_7, 0); +lean_inc(x_78); +lean_dec(x_7); +x_79 = lean_ctor_get(x_1, 0); +lean_inc(x_79); +lean_dec(x_1); +x_80 = l___private_Lean_Elab_SyntheticMVars_2__resumePostponed(x_78, x_6, x_79, x_2, x_54, x_5); +return x_80; +} +default: +{ +lean_object* x_81; lean_object* x_82; +lean_dec(x_7); +lean_dec(x_6); +x_81 = lean_ctor_get(x_1, 0); +lean_inc(x_81); +lean_dec(x_1); +x_82 = l___private_Lean_Elab_SyntheticMVars_5__checkWithDefault(x_81, x_54, x_5); +return x_82; +} } } } @@ -2559,7 +3170,7 @@ return x_8; } else { -lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; +lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; x_9 = lean_ctor_get(x_4, 0); lean_inc(x_9); x_10 = lean_ctor_get(x_4, 1); @@ -2575,42 +3186,47 @@ if (lean_is_exclusive(x_4)) { x_18 = l___private_Lean_Elab_Term_10__postponeElabTerm___closed__1; lean_inc(x_3); x_19 = lean_name_mk_string(x_3, x_18); -x_20 = lean_ctor_get(x_9, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_9, 1); -lean_inc(x_21); -x_49 = l_Lean_Elab_Term_getOptions(x_6, x_7); -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); +x_53 = l_Lean_Elab_Term_getOptions(x_6, x_7); +x_54 = lean_ctor_get(x_53, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_53, 1); +lean_inc(x_55); +lean_dec(x_53); +x_56 = l_Lean_Elab_Term_getCurrRef(x_6, x_55); +x_57 = lean_ctor_get(x_56, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_56, 1); +lean_inc(x_58); +lean_dec(x_56); lean_inc(x_19); -x_52 = l_Lean_checkTraceOption(x_50, x_19); -lean_dec(x_50); -if (x_52 == 0) +x_59 = l_Lean_checkTraceOption(x_54, x_19); +lean_dec(x_54); +if (x_59 == 0) { -lean_dec(x_20); -x_22 = x_51; -goto block_48; +lean_dec(x_57); +x_20 = x_58; +goto block_52; } else { -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_53 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_53, 0, x_20); -x_54 = l_List_filterAuxM___main___at___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep___spec__2___closed__9; -x_55 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_55, 0, x_54); -lean_ctor_set(x_55, 1, x_53); +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_60 = lean_ctor_get(x_9, 0); +lean_inc(x_60); +x_61 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_61, 0, x_60); +x_62 = l_List_filterAuxM___main___at___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep___spec__2___closed__9; +x_63 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_61); lean_inc(x_6); lean_inc(x_19); -x_56 = l_Lean_Elab_Term_logTrace(x_19, x_21, x_55, x_6, x_51); -x_57 = lean_ctor_get(x_56, 1); -lean_inc(x_57); -lean_dec(x_56); -x_22 = x_57; -goto block_48; +x_64 = l_Lean_Elab_Term_logTrace(x_19, x_57, x_63, x_6, x_58); +lean_dec(x_57); +x_65 = lean_ctor_get(x_64, 1); +lean_inc(x_65); +lean_dec(x_64); +x_20 = x_65; +goto block_52; } block_17: { @@ -2638,102 +3254,113 @@ x_7 = x_13; goto _start; } } -block_48: +block_52: { -lean_object* x_23; +lean_object* x_21; lean_inc(x_6); lean_inc(x_9); -x_23 = l___private_Lean_Elab_SyntheticMVars_6__synthesizeSyntheticMVar(x_9, x_1, x_2, x_6, x_22); -if (lean_obj_tag(x_23) == 0) +x_21 = l___private_Lean_Elab_SyntheticMVars_6__synthesizeSyntheticMVar(x_9, x_1, x_2, x_6, x_20); +if (lean_obj_tag(x_21) == 0) { -lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; -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_Lean_Elab_Term_getOptions(x_6, x_25); -x_27 = lean_unbox(x_24); +lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; +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 = l_Lean_Elab_Term_getOptions(x_6, x_23); +x_25 = lean_unbox(x_22); +lean_dec(x_22); +if (x_25 == 0) +{ +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_24, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_24, 1); +lean_inc(x_27); lean_dec(x_24); -if (x_27 == 0) -{ -lean_object* x_28; lean_object* x_29; uint8_t x_30; -x_28 = lean_ctor_get(x_26, 0); -lean_inc(x_28); -x_29 = lean_ctor_get(x_26, 1); +x_28 = l_Lean_Elab_Term_getCurrRef(x_6, x_27); +x_29 = lean_ctor_get(x_28, 0); lean_inc(x_29); -lean_dec(x_26); -lean_inc(x_19); -x_30 = l_Lean_checkTraceOption(x_28, x_19); +x_30 = lean_ctor_get(x_28, 1); +lean_inc(x_30); lean_dec(x_28); -if (x_30 == 0) -{ -uint8_t x_31; -lean_dec(x_21); -lean_dec(x_19); -x_31 = 1; -x_12 = x_31; -x_13 = x_29; -goto block_17; -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; -x_32 = l_List_filterAuxM___main___at___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep___spec__2___closed__3; -lean_inc(x_6); -x_33 = l_Lean_Elab_Term_logTrace(x_19, x_21, x_32, x_6, x_29); -lean_dec(x_21); -x_34 = lean_ctor_get(x_33, 1); -lean_inc(x_34); -lean_dec(x_33); -x_35 = 1; -x_12 = x_35; -x_13 = x_34; -goto block_17; -} -} -else -{ -lean_object* x_36; lean_object* x_37; uint8_t x_38; -x_36 = lean_ctor_get(x_26, 0); -lean_inc(x_36); -x_37 = lean_ctor_get(x_26, 1); -lean_inc(x_37); -lean_dec(x_26); lean_inc(x_19); -x_38 = l_Lean_checkTraceOption(x_36, x_19); -lean_dec(x_36); -if (x_38 == 0) +x_31 = l_Lean_checkTraceOption(x_26, x_19); +lean_dec(x_26); +if (x_31 == 0) { -uint8_t x_39; -lean_dec(x_21); +uint8_t x_32; +lean_dec(x_29); lean_dec(x_19); -x_39 = 0; -x_12 = x_39; -x_13 = x_37; +x_32 = 1; +x_12 = x_32; +x_13 = x_30; goto block_17; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; -x_40 = l_List_filterAuxM___main___at___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep___spec__2___closed__6; +lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_33 = l_List_filterAuxM___main___at___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep___spec__2___closed__3; lean_inc(x_6); -x_41 = l_Lean_Elab_Term_logTrace(x_19, x_21, x_40, x_6, x_37); -lean_dec(x_21); -x_42 = lean_ctor_get(x_41, 1); -lean_inc(x_42); -lean_dec(x_41); +x_34 = l_Lean_Elab_Term_logTrace(x_19, x_29, x_33, x_6, x_30); +lean_dec(x_29); +x_35 = lean_ctor_get(x_34, 1); +lean_inc(x_35); +lean_dec(x_34); +x_36 = 1; +x_12 = x_36; +x_13 = x_35; +goto block_17; +} +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; +x_37 = lean_ctor_get(x_24, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_24, 1); +lean_inc(x_38); +lean_dec(x_24); +x_39 = l_Lean_Elab_Term_getCurrRef(x_6, x_38); +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_39, 1); +lean_inc(x_41); +lean_dec(x_39); +lean_inc(x_19); +x_42 = l_Lean_checkTraceOption(x_37, x_19); +lean_dec(x_37); +if (x_42 == 0) +{ +uint8_t x_43; +lean_dec(x_40); +lean_dec(x_19); x_43 = 0; x_12 = x_43; -x_13 = x_42; +x_13 = x_41; +goto block_17; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; +x_44 = l_List_filterAuxM___main___at___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep___spec__2___closed__6; +lean_inc(x_6); +x_45 = l_Lean_Elab_Term_logTrace(x_19, x_40, x_44, x_6, x_41); +lean_dec(x_40); +x_46 = lean_ctor_get(x_45, 1); +lean_inc(x_46); +lean_dec(x_45); +x_47 = 0; +x_12 = x_47; +x_13 = x_46; goto block_17; } } } else { -uint8_t x_44; -lean_dec(x_21); +uint8_t x_48; lean_dec(x_19); lean_dec(x_11); lean_dec(x_10); @@ -2741,23 +3368,23 @@ lean_dec(x_9); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_44 = !lean_is_exclusive(x_23); -if (x_44 == 0) +x_48 = !lean_is_exclusive(x_21); +if (x_48 == 0) { -return x_23; +return x_21; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_23, 0); -x_46 = lean_ctor_get(x_23, 1); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_23); -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; +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_21, 0); +x_50 = lean_ctor_get(x_21, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_21); +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +return x_51; } } } @@ -2878,66 +3505,110 @@ return x_2; lean_object* l___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep(uint8_t x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; uint8_t x_103; -x_99 = l_Lean_Elab_Term_getOptions(x_3, x_4); -x_100 = lean_ctor_get(x_99, 0); +lean_object* x_5; 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; lean_object* x_106; lean_object* x_107; lean_object* x_108; uint8_t x_109; uint8_t x_110; uint8_t x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; +x_99 = lean_ctor_get(x_3, 0); +lean_inc(x_99); +x_100 = lean_ctor_get(x_3, 1); lean_inc(x_100); -x_101 = lean_ctor_get(x_99, 1); +x_101 = lean_ctor_get(x_3, 2); lean_inc(x_101); -lean_dec(x_99); -x_102 = l___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep___closed__2; -x_103 = l_Lean_checkTraceOption(x_100, x_102); -lean_dec(x_100); -if (x_103 == 0) +x_102 = lean_ctor_get(x_3, 3); +lean_inc(x_102); +x_103 = lean_ctor_get(x_3, 4); +lean_inc(x_103); +x_104 = lean_ctor_get(x_3, 5); +lean_inc(x_104); +x_105 = lean_ctor_get(x_3, 6); +lean_inc(x_105); +x_106 = lean_ctor_get(x_3, 7); +lean_inc(x_106); +x_107 = lean_ctor_get(x_3, 8); +lean_inc(x_107); +x_108 = lean_ctor_get(x_3, 9); +lean_inc(x_108); +x_109 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_110 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_111 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +x_112 = lean_box(0); +x_113 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_113, 0, x_99); +lean_ctor_set(x_113, 1, x_100); +lean_ctor_set(x_113, 2, x_101); +lean_ctor_set(x_113, 3, x_102); +lean_ctor_set(x_113, 4, x_103); +lean_ctor_set(x_113, 5, x_104); +lean_ctor_set(x_113, 6, x_105); +lean_ctor_set(x_113, 7, x_106); +lean_ctor_set(x_113, 8, x_107); +lean_ctor_set(x_113, 9, x_108); +lean_ctor_set(x_113, 10, x_112); +lean_ctor_set_uint8(x_113, sizeof(void*)*11, x_109); +lean_ctor_set_uint8(x_113, sizeof(void*)*11 + 1, x_110); +lean_ctor_set_uint8(x_113, sizeof(void*)*11 + 2, x_111); +x_114 = l_Lean_Elab_Term_getOptions(x_113, x_4); +x_115 = lean_ctor_get(x_114, 0); +lean_inc(x_115); +x_116 = lean_ctor_get(x_114, 1); +lean_inc(x_116); +lean_dec(x_114); +x_117 = l_Lean_Elab_Term_getCurrRef(x_113, x_116); +x_118 = lean_ctor_get(x_117, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); +lean_dec(x_117); +x_120 = l___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep___closed__2; +x_121 = l_Lean_checkTraceOption(x_115, x_120); +lean_dec(x_115); +if (x_121 == 0) { -x_5 = x_101; +lean_dec(x_118); +lean_dec(x_113); +x_5 = x_119; goto block_98; } else { -uint8_t x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; -x_104 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); -x_105 = l_Lean_fmt___at___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep___spec__3(x_104); -x_106 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_106, 0, x_105); -x_107 = l___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep___closed__5; -x_108 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_108, 0, x_107); -lean_ctor_set(x_108, 1, x_106); -x_109 = l___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep___closed__8; -x_110 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_110, 0, x_108); -lean_ctor_set(x_110, 1, x_109); +lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; +x_122 = l_Lean_fmt___at___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep___spec__3(x_109); +x_123 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_123, 0, x_122); +x_124 = l___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep___closed__5; +x_125 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_125, 0, x_124); +lean_ctor_set(x_125, 1, x_123); +x_126 = l___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep___closed__8; +x_127 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_127, 0, x_125); +lean_ctor_set(x_127, 1, x_126); if (x_1 == 0) { -lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_111 = l___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep___closed__9; -x_112 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_112, 0, x_110); -lean_ctor_set(x_112, 1, x_111); -x_113 = lean_box(0); -lean_inc(x_3); -x_114 = l_Lean_Elab_Term_logTrace(x_102, x_113, x_112, x_3, x_101); -x_115 = lean_ctor_get(x_114, 1); -lean_inc(x_115); -lean_dec(x_114); -x_5 = x_115; +lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; +x_128 = l___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep___closed__9; +x_129 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_129, 0, x_127); +lean_ctor_set(x_129, 1, x_128); +x_130 = l_Lean_Elab_Term_logTrace(x_120, x_118, x_129, x_113, x_119); +lean_dec(x_118); +x_131 = lean_ctor_get(x_130, 1); +lean_inc(x_131); +lean_dec(x_130); +x_5 = x_131; goto block_98; } else { -lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; -x_116 = l___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep___closed__10; -x_117 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_117, 0, x_110); -lean_ctor_set(x_117, 1, x_116); -x_118 = lean_box(0); -lean_inc(x_3); -x_119 = l_Lean_Elab_Term_logTrace(x_102, x_118, x_117, x_3, x_101); -x_120 = lean_ctor_get(x_119, 1); -lean_inc(x_120); -lean_dec(x_119); -x_5 = x_120; +lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; +x_132 = l___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep___closed__10; +x_133 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_133, 0, x_127); +lean_ctor_set(x_133, 1, x_132); +x_134 = l_Lean_Elab_Term_logTrace(x_120, x_118, x_133, x_113, x_119); +lean_dec(x_118); +x_135 = lean_ctor_get(x_134, 1); +lean_inc(x_135); +lean_dec(x_134); +x_5 = x_135; goto block_98; } } @@ -3335,116 +4006,116 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_List_filterAuxM___main___at___private_Lean_Elab_SyntheticMVars_8__synthesizeUsingDefault___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* l_List_filterAuxM___main___at___private_Lean_Elab_SyntheticMVars_8__synthesizeUsingDefault___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_6; uint8_t x_7; -x_6 = l_Lean_Expr_getAppFn___main(x_3); -x_7 = l_Lean_Expr_isMVar(x_6); -lean_dec(x_6); -if (x_7 == 0) +lean_object* x_5; uint8_t x_6; +x_5 = l_Lean_Expr_getAppFn___main(x_2); +x_6 = l_Lean_Expr_isMVar(x_5); +lean_dec(x_5); +if (x_6 == 0) { -uint8_t x_8; lean_object* x_9; lean_object* x_10; -lean_dec(x_4); +uint8_t x_7; lean_object* x_8; lean_object* x_9; lean_dec(x_3); lean_dec(x_2); -x_8 = 0; -x_9 = lean_box(x_8); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_9); -lean_ctor_set(x_10, 1, x_5); +lean_dec(x_1); +x_7 = 0; +x_8 = lean_box(x_7); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_4); +return x_9; +} +else +{ +lean_object* x_10; +lean_inc(x_3); +x_10 = l_Lean_Elab_Term_isDefEq(x_2, x_1, x_3, x_4); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; uint8_t x_12; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_unbox(x_11); +lean_dec(x_11); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_13 = lean_ctor_get(x_10, 1); +lean_inc(x_13); +lean_dec(x_10); +x_14 = l_List_filterAuxM___main___at___private_Lean_Elab_SyntheticMVars_8__synthesizeUsingDefault___spec__1___lambda__1___closed__3; +x_15 = l_Lean_Elab_Term_throwError___rarg(x_14, x_3, x_13); +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) +{ +return x_15; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_15, 0); +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_15); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +return x_19; +} +} +else +{ +uint8_t x_20; +lean_dec(x_3); +x_20 = !lean_is_exclusive(x_10); +if (x_20 == 0) +{ +lean_object* x_21; uint8_t x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_10, 0); +lean_dec(x_21); +x_22 = 0; +x_23 = lean_box(x_22); +lean_ctor_set(x_10, 0, x_23); return x_10; } else { -lean_object* x_11; -lean_inc(x_4); -x_11 = l_Lean_Elab_Term_isDefEq(x_1, x_3, x_2, x_4, x_5); -if (lean_obj_tag(x_11) == 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); -if (x_13 == 0) -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_14 = lean_ctor_get(x_11, 1); -lean_inc(x_14); -lean_dec(x_11); -x_15 = l_List_filterAuxM___main___at___private_Lean_Elab_SyntheticMVars_8__synthesizeUsingDefault___spec__1___lambda__1___closed__3; -x_16 = l_Lean_Elab_Term_throwError___rarg(x_1, x_15, x_4, x_14); -x_17 = !lean_is_exclusive(x_16); -if (x_17 == 0) -{ -return x_16; -} -else -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_18 = lean_ctor_get(x_16, 0); -x_19 = lean_ctor_get(x_16, 1); -lean_inc(x_19); -lean_inc(x_18); -lean_dec(x_16); -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; -} -} -else -{ -uint8_t x_21; -lean_dec(x_4); -x_21 = !lean_is_exclusive(x_11); -if (x_21 == 0) -{ -lean_object* x_22; uint8_t x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_11, 0); -lean_dec(x_22); -x_23 = 0; -x_24 = lean_box(x_23); -lean_ctor_set(x_11, 0, x_24); -return x_11; -} -else -{ -lean_object* x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; -x_25 = lean_ctor_get(x_11, 1); -lean_inc(x_25); -lean_dec(x_11); -x_26 = 0; -x_27 = lean_box(x_26); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_25); -return x_28; +lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; +x_24 = lean_ctor_get(x_10, 1); +lean_inc(x_24); +lean_dec(x_10); +x_25 = 0; +x_26 = lean_box(x_25); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_24); +return x_27; } } } else { -uint8_t x_29; -lean_dec(x_4); -x_29 = !lean_is_exclusive(x_11); -if (x_29 == 0) +uint8_t x_28; +lean_dec(x_3); +x_28 = !lean_is_exclusive(x_10); +if (x_28 == 0) { -return x_11; +return x_10; } else { -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_11, 0); -x_31 = lean_ctor_get(x_11, 1); -lean_inc(x_31); +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_10, 0); +x_30 = lean_ctor_get(x_10, 1); lean_inc(x_30); -lean_dec(x_11); -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; +lean_inc(x_29); +lean_dec(x_10); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +return x_31; } } } @@ -3456,7 +4127,6 @@ _start: if (lean_obj_tag(x_1) == 0) { lean_object* x_5; -lean_dec(x_3); x_5 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_5, 0, x_2); lean_ctor_set(x_5, 1, x_4); @@ -3475,62 +4145,96 @@ uint8_t x_8; x_8 = !lean_is_exclusive(x_1); if (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; lean_object* x_17; lean_object* x_18; +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; uint8_t x_23; uint8_t x_24; uint8_t 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; x_9 = lean_ctor_get(x_1, 1); x_10 = lean_ctor_get(x_1, 0); lean_dec(x_10); x_11 = lean_ctor_get(x_7, 0); lean_inc(x_11); lean_dec(x_7); -x_12 = lean_ctor_get(x_6, 0); +x_12 = lean_ctor_get(x_6, 1); lean_inc(x_12); -x_13 = lean_ctor_get(x_6, 1); -lean_inc(x_13); -lean_inc(x_12); -x_14 = l_Lean_mkMVar(x_12); -lean_inc(x_13); -x_15 = lean_alloc_closure((void*)(l_Lean_Elab_Term_instantiateMVars___boxed), 4, 2); -lean_closure_set(x_15, 0, x_13); -lean_closure_set(x_15, 1, x_14); -x_16 = lean_alloc_closure((void*)(l_List_filterAuxM___main___at___private_Lean_Elab_SyntheticMVars_8__synthesizeUsingDefault___spec__1___lambda__1___boxed), 5, 2); -lean_closure_set(x_16, 0, x_13); -lean_closure_set(x_16, 1, x_11); -x_17 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Term_monadLog___spec__2___rarg), 4, 2); -lean_closure_set(x_17, 0, x_15); -lean_closure_set(x_17, 1, x_16); -lean_inc(x_3); -x_18 = l_Lean_Elab_Term_withMVarContext___rarg(x_12, x_17, x_3, x_4); -lean_dec(x_12); -if (lean_obj_tag(x_18) == 0) -{ -lean_object* x_19; uint8_t x_20; -x_19 = lean_ctor_get(x_18, 0); +x_13 = lean_ctor_get(x_3, 0); +x_14 = lean_ctor_get(x_3, 1); +x_15 = lean_ctor_get(x_3, 2); +x_16 = lean_ctor_get(x_3, 3); +x_17 = lean_ctor_get(x_3, 4); +x_18 = lean_ctor_get(x_3, 5); +x_19 = lean_ctor_get(x_3, 6); +x_20 = lean_ctor_get(x_3, 7); +x_21 = lean_ctor_get(x_3, 8); +x_22 = lean_ctor_get(x_3, 9); +x_23 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_24 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_25 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); lean_inc(x_19); -x_20 = lean_unbox(x_19); -lean_dec(x_19); -if (x_20 == 0) +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +x_26 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_26, 0, x_13); +lean_ctor_set(x_26, 1, x_14); +lean_ctor_set(x_26, 2, x_15); +lean_ctor_set(x_26, 3, x_16); +lean_ctor_set(x_26, 4, x_17); +lean_ctor_set(x_26, 5, x_18); +lean_ctor_set(x_26, 6, x_19); +lean_ctor_set(x_26, 7, x_20); +lean_ctor_set(x_26, 8, x_21); +lean_ctor_set(x_26, 9, x_22); +lean_ctor_set(x_26, 10, x_12); +lean_ctor_set_uint8(x_26, sizeof(void*)*11, x_23); +lean_ctor_set_uint8(x_26, sizeof(void*)*11 + 1, x_24); +lean_ctor_set_uint8(x_26, sizeof(void*)*11 + 2, x_25); +x_27 = lean_ctor_get(x_6, 0); +lean_inc(x_27); +lean_inc(x_27); +x_28 = l_Lean_mkMVar(x_27); +x_29 = lean_alloc_closure((void*)(l_Lean_Elab_Term_instantiateMVars), 3, 1); +lean_closure_set(x_29, 0, x_28); +x_30 = lean_alloc_closure((void*)(l_List_filterAuxM___main___at___private_Lean_Elab_SyntheticMVars_8__synthesizeUsingDefault___spec__1___lambda__1), 4, 1); +lean_closure_set(x_30, 0, x_11); +x_31 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Term_monadLog___spec__2___rarg), 4, 2); +lean_closure_set(x_31, 0, x_29); +lean_closure_set(x_31, 1, x_30); +x_32 = l_Lean_Elab_Term_withMVarContext___rarg(x_27, x_31, x_26, x_4); +lean_dec(x_27); +if (lean_obj_tag(x_32) == 0) { -lean_object* x_21; +lean_object* x_33; uint8_t x_34; +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +x_34 = lean_unbox(x_33); +lean_dec(x_33); +if (x_34 == 0) +{ +lean_object* x_35; lean_free_object(x_1); lean_dec(x_6); -x_21 = lean_ctor_get(x_18, 1); -lean_inc(x_21); -lean_dec(x_18); +x_35 = lean_ctor_get(x_32, 1); +lean_inc(x_35); +lean_dec(x_32); x_1 = x_9; -x_4 = x_21; +x_4 = x_35; goto _start; } else { -lean_object* x_23; -x_23 = lean_ctor_get(x_18, 1); -lean_inc(x_23); -lean_dec(x_18); +lean_object* x_37; +x_37 = lean_ctor_get(x_32, 1); +lean_inc(x_37); +lean_dec(x_32); lean_ctor_set(x_1, 1, x_2); { lean_object* _tmp_0 = x_9; lean_object* _tmp_1 = x_1; -lean_object* _tmp_3 = x_23; +lean_object* _tmp_3 = x_37; x_1 = _tmp_0; x_2 = _tmp_1; x_4 = _tmp_3; @@ -3540,137 +4244,169 @@ goto _start; } else { -uint8_t x_25; +uint8_t x_39; lean_free_object(x_1); lean_dec(x_9); lean_dec(x_6); -lean_dec(x_3); lean_dec(x_2); -x_25 = !lean_is_exclusive(x_18); -if (x_25 == 0) -{ -return x_18; -} -else -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_18, 0); -x_27 = lean_ctor_get(x_18, 1); -lean_inc(x_27); -lean_inc(x_26); -lean_dec(x_18); -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; -} -} -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_29 = lean_ctor_get(x_1, 1); -lean_inc(x_29); -lean_dec(x_1); -x_30 = lean_ctor_get(x_7, 0); -lean_inc(x_30); -lean_dec(x_7); -x_31 = lean_ctor_get(x_6, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_6, 1); -lean_inc(x_32); -lean_inc(x_31); -x_33 = l_Lean_mkMVar(x_31); -lean_inc(x_32); -x_34 = lean_alloc_closure((void*)(l_Lean_Elab_Term_instantiateMVars___boxed), 4, 2); -lean_closure_set(x_34, 0, x_32); -lean_closure_set(x_34, 1, x_33); -x_35 = lean_alloc_closure((void*)(l_List_filterAuxM___main___at___private_Lean_Elab_SyntheticMVars_8__synthesizeUsingDefault___spec__1___lambda__1___boxed), 5, 2); -lean_closure_set(x_35, 0, x_32); -lean_closure_set(x_35, 1, x_30); -x_36 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Term_monadLog___spec__2___rarg), 4, 2); -lean_closure_set(x_36, 0, x_34); -lean_closure_set(x_36, 1, x_35); -lean_inc(x_3); -x_37 = l_Lean_Elab_Term_withMVarContext___rarg(x_31, x_36, x_3, x_4); -lean_dec(x_31); -if (lean_obj_tag(x_37) == 0) -{ -lean_object* x_38; uint8_t x_39; -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -x_39 = lean_unbox(x_38); -lean_dec(x_38); +x_39 = !lean_is_exclusive(x_32); if (x_39 == 0) { -lean_object* x_40; -lean_dec(x_6); -x_40 = lean_ctor_get(x_37, 1); +return x_32; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_32, 0); +x_41 = lean_ctor_get(x_32, 1); +lean_inc(x_41); lean_inc(x_40); -lean_dec(x_37); -x_1 = x_29; -x_4 = x_40; -goto _start; -} -else -{ -lean_object* x_42; lean_object* x_43; -x_42 = lean_ctor_get(x_37, 1); -lean_inc(x_42); -lean_dec(x_37); -x_43 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_43, 0, x_6); -lean_ctor_set(x_43, 1, x_2); -x_1 = x_29; -x_2 = x_43; -x_4 = x_42; -goto _start; -} -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -lean_dec(x_29); -lean_dec(x_6); -lean_dec(x_3); -lean_dec(x_2); -x_45 = lean_ctor_get(x_37, 0); -lean_inc(x_45); -x_46 = lean_ctor_get(x_37, 1); -lean_inc(x_46); -if (lean_is_exclusive(x_37)) { - lean_ctor_release(x_37, 0); - lean_ctor_release(x_37, 1); - x_47 = x_37; -} else { - lean_dec_ref(x_37); - x_47 = lean_box(0); -} -if (lean_is_scalar(x_47)) { - x_48 = lean_alloc_ctor(1, 2, 0); -} else { - x_48 = x_47; -} -lean_ctor_set(x_48, 0, x_45); -lean_ctor_set(x_48, 1, x_46); -return x_48; +lean_dec(x_32); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; } } } else { -uint8_t x_49; +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; uint8_t x_57; uint8_t x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_43 = lean_ctor_get(x_1, 1); +lean_inc(x_43); +lean_dec(x_1); +x_44 = lean_ctor_get(x_7, 0); +lean_inc(x_44); lean_dec(x_7); -x_49 = !lean_is_exclusive(x_1); -if (x_49 == 0) +x_45 = lean_ctor_get(x_6, 1); +lean_inc(x_45); +x_46 = lean_ctor_get(x_3, 0); +x_47 = lean_ctor_get(x_3, 1); +x_48 = lean_ctor_get(x_3, 2); +x_49 = lean_ctor_get(x_3, 3); +x_50 = lean_ctor_get(x_3, 4); +x_51 = lean_ctor_get(x_3, 5); +x_52 = lean_ctor_get(x_3, 6); +x_53 = lean_ctor_get(x_3, 7); +x_54 = lean_ctor_get(x_3, 8); +x_55 = lean_ctor_get(x_3, 9); +x_56 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_57 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_58 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +lean_inc(x_55); +lean_inc(x_54); +lean_inc(x_53); +lean_inc(x_52); +lean_inc(x_51); +lean_inc(x_50); +lean_inc(x_49); +lean_inc(x_48); +lean_inc(x_47); +lean_inc(x_46); +x_59 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_59, 0, x_46); +lean_ctor_set(x_59, 1, x_47); +lean_ctor_set(x_59, 2, x_48); +lean_ctor_set(x_59, 3, x_49); +lean_ctor_set(x_59, 4, x_50); +lean_ctor_set(x_59, 5, x_51); +lean_ctor_set(x_59, 6, x_52); +lean_ctor_set(x_59, 7, x_53); +lean_ctor_set(x_59, 8, x_54); +lean_ctor_set(x_59, 9, x_55); +lean_ctor_set(x_59, 10, x_45); +lean_ctor_set_uint8(x_59, sizeof(void*)*11, x_56); +lean_ctor_set_uint8(x_59, sizeof(void*)*11 + 1, x_57); +lean_ctor_set_uint8(x_59, sizeof(void*)*11 + 2, x_58); +x_60 = lean_ctor_get(x_6, 0); +lean_inc(x_60); +lean_inc(x_60); +x_61 = l_Lean_mkMVar(x_60); +x_62 = lean_alloc_closure((void*)(l_Lean_Elab_Term_instantiateMVars), 3, 1); +lean_closure_set(x_62, 0, x_61); +x_63 = lean_alloc_closure((void*)(l_List_filterAuxM___main___at___private_Lean_Elab_SyntheticMVars_8__synthesizeUsingDefault___spec__1___lambda__1), 4, 1); +lean_closure_set(x_63, 0, x_44); +x_64 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Term_monadLog___spec__2___rarg), 4, 2); +lean_closure_set(x_64, 0, x_62); +lean_closure_set(x_64, 1, x_63); +x_65 = l_Lean_Elab_Term_withMVarContext___rarg(x_60, x_64, x_59, x_4); +lean_dec(x_60); +if (lean_obj_tag(x_65) == 0) { -lean_object* x_50; lean_object* x_51; -x_50 = lean_ctor_get(x_1, 1); -x_51 = lean_ctor_get(x_1, 0); -lean_dec(x_51); +lean_object* x_66; uint8_t x_67; +x_66 = lean_ctor_get(x_65, 0); +lean_inc(x_66); +x_67 = lean_unbox(x_66); +lean_dec(x_66); +if (x_67 == 0) +{ +lean_object* x_68; +lean_dec(x_6); +x_68 = lean_ctor_get(x_65, 1); +lean_inc(x_68); +lean_dec(x_65); +x_1 = x_43; +x_4 = x_68; +goto _start; +} +else +{ +lean_object* x_70; lean_object* x_71; +x_70 = lean_ctor_get(x_65, 1); +lean_inc(x_70); +lean_dec(x_65); +x_71 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_71, 0, x_6); +lean_ctor_set(x_71, 1, x_2); +x_1 = x_43; +x_2 = x_71; +x_4 = x_70; +goto _start; +} +} +else +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +lean_dec(x_43); +lean_dec(x_6); +lean_dec(x_2); +x_73 = lean_ctor_get(x_65, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_65, 1); +lean_inc(x_74); +if (lean_is_exclusive(x_65)) { + lean_ctor_release(x_65, 0); + lean_ctor_release(x_65, 1); + x_75 = x_65; +} else { + lean_dec_ref(x_65); + x_75 = lean_box(0); +} +if (lean_is_scalar(x_75)) { + x_76 = lean_alloc_ctor(1, 2, 0); +} else { + x_76 = x_75; +} +lean_ctor_set(x_76, 0, x_73); +lean_ctor_set(x_76, 1, x_74); +return x_76; +} +} +} +else +{ +uint8_t x_77; +lean_dec(x_7); +x_77 = !lean_is_exclusive(x_1); +if (x_77 == 0) +{ +lean_object* x_78; lean_object* x_79; +x_78 = lean_ctor_get(x_1, 1); +x_79 = lean_ctor_get(x_1, 0); +lean_dec(x_79); lean_ctor_set(x_1, 1, x_2); { -lean_object* _tmp_0 = x_50; +lean_object* _tmp_0 = x_78; lean_object* _tmp_1 = x_1; x_1 = _tmp_0; x_2 = _tmp_1; @@ -3679,15 +4415,15 @@ goto _start; } else { -lean_object* x_53; lean_object* x_54; -x_53 = lean_ctor_get(x_1, 1); -lean_inc(x_53); +lean_object* x_81; lean_object* x_82; +x_81 = lean_ctor_get(x_1, 1); +lean_inc(x_81); lean_dec(x_1); -x_54 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_54, 0, x_6); -lean_ctor_set(x_54, 1, x_2); -x_1 = x_53; -x_2 = x_54; +x_82 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_82, 0, x_6); +lean_ctor_set(x_82, 1, x_2); +x_1 = x_81; +x_2 = x_82; goto _start; } } @@ -3876,13 +4612,22 @@ return x_51; } } } -lean_object* l_List_filterAuxM___main___at___private_Lean_Elab_SyntheticMVars_8__synthesizeUsingDefault___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* l_List_filterAuxM___main___at___private_Lean_Elab_SyntheticMVars_8__synthesizeUsingDefault___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_6; -x_6 = l_List_filterAuxM___main___at___private_Lean_Elab_SyntheticMVars_8__synthesizeUsingDefault___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5); +lean_object* x_5; +x_5 = l_List_filterAuxM___main___at___private_Lean_Elab_SyntheticMVars_8__synthesizeUsingDefault___spec__1(x_1, x_2, x_3, x_4); +lean_dec(x_3); +return x_5; +} +} +lean_object* l___private_Lean_Elab_SyntheticMVars_8__synthesizeUsingDefault___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l___private_Lean_Elab_SyntheticMVars_8__synthesizeUsingDefault(x_1, x_2); lean_dec(x_1); -return x_6; +return x_3; } } lean_object* _init_l_List_forM___main___at___private_Lean_Elab_SyntheticMVars_9__reportStuckSyntheticMVars___spec__1___lambda__1___closed__1() { @@ -3916,41 +4661,39 @@ return x_2; lean_object* l_List_forM___main___at___private_Lean_Elab_SyntheticMVars_9__reportStuckSyntheticMVars___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; -x_5 = lean_ctor_get(x_1, 1); -x_6 = lean_ctor_get(x_2, 2); -lean_inc(x_6); -x_7 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_7, 0, x_6); -x_8 = l_Lean_indentExpr(x_7); -x_9 = l_List_forM___main___at___private_Lean_Elab_SyntheticMVars_9__reportStuckSyntheticMVars___spec__1___lambda__1___closed__3; -x_10 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_10, 0, x_9); -lean_ctor_set(x_10, 1, x_8); -x_11 = 2; -x_12 = l_Lean_Elab_log___at_Lean_Elab_Term_logTrace___spec__1(x_5, x_11, x_10, x_3, x_4); -return x_12; +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; +x_5 = lean_ctor_get(x_2, 2); +lean_inc(x_5); +x_6 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_6, 0, x_5); +x_7 = l_Lean_indentExpr(x_6); +x_8 = l_List_forM___main___at___private_Lean_Elab_SyntheticMVars_9__reportStuckSyntheticMVars___spec__1___lambda__1___closed__3; +x_9 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_7); +x_10 = 2; +x_11 = l_Lean_Elab_log___at_Lean_Elab_Term_logTrace___spec__1(x_1, x_10, x_9, x_3, x_4); +return x_11; } } -lean_object* l_List_forM___main___at___private_Lean_Elab_SyntheticMVars_9__reportStuckSyntheticMVars___spec__1___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* l_List_forM___main___at___private_Lean_Elab_SyntheticMVars_9__reportStuckSyntheticMVars___spec__1___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) { _start: { -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_9 = lean_ctor_get(x_1, 1); -x_10 = lean_ctor_get(x_6, 2); -lean_inc(x_10); -x_11 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_11, 0, x_10); -x_12 = l_Lean_indentExpr(x_11); -x_13 = l_List_forM___main___at___private_Lean_Elab_SyntheticMVars_9__reportStuckSyntheticMVars___spec__1___lambda__1___closed__3; -x_14 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_14, 0, x_13); -lean_ctor_set(x_14, 1, x_12); -x_15 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_15, 0, x_14); -x_16 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_9, x_2, x_3, x_4, x_5, x_15, x_7, x_8); -lean_dec(x_15); -return x_16; +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; +x_8 = lean_ctor_get(x_5, 2); +lean_inc(x_8); +x_9 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_9, 0, x_8); +x_10 = l_Lean_indentExpr(x_9); +x_11 = l_List_forM___main___at___private_Lean_Elab_SyntheticMVars_9__reportStuckSyntheticMVars___spec__1___lambda__1___closed__3; +x_12 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_10); +x_13 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_13, 0, x_12); +x_14 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_2, x_3, x_4, x_13, x_6, x_7); +lean_dec(x_13); +return x_14; } } lean_object* l_List_forM___main___at___private_Lean_Elab_SyntheticMVars_9__reportStuckSyntheticMVars___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { @@ -3959,7 +4702,6 @@ _start: if (lean_obj_tag(x_1) == 0) { lean_object* x_4; lean_object* x_5; -lean_dec(x_2); x_4 = lean_box(0); x_5 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_5, 0, x_4); @@ -3968,177 +4710,209 @@ return x_5; } else { -lean_object* x_6; lean_object* x_7; +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* x_18; lean_object* x_19; uint8_t x_20; uint8_t x_21; uint8_t x_22; lean_object* x_23; x_6 = lean_ctor_get(x_1, 0); lean_inc(x_6); -x_7 = lean_ctor_get(x_6, 2); +x_7 = lean_ctor_get(x_1, 1); lean_inc(x_7); -switch (lean_obj_tag(x_7)) { +lean_dec(x_1); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +x_9 = lean_ctor_get(x_6, 2); +lean_inc(x_9); +x_10 = lean_ctor_get(x_2, 0); +x_11 = lean_ctor_get(x_2, 1); +x_12 = lean_ctor_get(x_2, 2); +x_13 = lean_ctor_get(x_2, 3); +x_14 = lean_ctor_get(x_2, 4); +x_15 = lean_ctor_get(x_2, 5); +x_16 = lean_ctor_get(x_2, 6); +x_17 = lean_ctor_get(x_2, 7); +x_18 = lean_ctor_get(x_2, 8); +x_19 = lean_ctor_get(x_2, 9); +x_20 = lean_ctor_get_uint8(x_2, sizeof(void*)*11); +x_21 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 1); +x_22 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 2); +lean_inc(x_8); +lean_inc(x_19); +lean_inc(x_18); +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_11); +lean_inc(x_10); +x_23 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_23, 0, x_10); +lean_ctor_set(x_23, 1, x_11); +lean_ctor_set(x_23, 2, x_12); +lean_ctor_set(x_23, 3, x_13); +lean_ctor_set(x_23, 4, x_14); +lean_ctor_set(x_23, 5, x_15); +lean_ctor_set(x_23, 6, x_16); +lean_ctor_set(x_23, 7, x_17); +lean_ctor_set(x_23, 8, x_18); +lean_ctor_set(x_23, 9, x_19); +lean_ctor_set(x_23, 10, x_8); +lean_ctor_set_uint8(x_23, sizeof(void*)*11, x_20); +lean_ctor_set_uint8(x_23, sizeof(void*)*11 + 1, x_21); +lean_ctor_set_uint8(x_23, sizeof(void*)*11 + 2, x_22); +switch (lean_obj_tag(x_9)) { case 0: { -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_8 = lean_ctor_get(x_1, 1); -lean_inc(x_8); -lean_dec(x_1); -x_9 = lean_ctor_get(x_6, 0); -lean_inc(x_9); -lean_inc(x_9); -x_10 = lean_alloc_closure((void*)(l_Lean_Elab_Term_getMVarDecl___boxed), 3, 1); -lean_closure_set(x_10, 0, x_9); -x_11 = lean_alloc_closure((void*)(l_List_forM___main___at___private_Lean_Elab_SyntheticMVars_9__reportStuckSyntheticMVars___spec__1___lambda__1___boxed), 4, 1); -lean_closure_set(x_11, 0, x_6); -x_12 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Term_monadLog___spec__2___rarg), 4, 2); -lean_closure_set(x_12, 0, x_10); -lean_closure_set(x_12, 1, x_11); -lean_inc(x_2); -x_13 = l_Lean_Elab_Term_withMVarContext___rarg(x_9, x_12, x_2, x_3); -lean_dec(x_9); -if (lean_obj_tag(x_13) == 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_6, 0); +lean_inc(x_24); +lean_dec(x_6); +lean_inc(x_24); +x_25 = lean_alloc_closure((void*)(l_Lean_Elab_Term_getMVarDecl___boxed), 3, 1); +lean_closure_set(x_25, 0, x_24); +x_26 = lean_alloc_closure((void*)(l_List_forM___main___at___private_Lean_Elab_SyntheticMVars_9__reportStuckSyntheticMVars___spec__1___lambda__1___boxed), 4, 1); +lean_closure_set(x_26, 0, x_8); +x_27 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Term_monadLog___spec__2___rarg), 4, 2); +lean_closure_set(x_27, 0, x_25); +lean_closure_set(x_27, 1, x_26); +x_28 = l_Lean_Elab_Term_withMVarContext___rarg(x_24, x_27, x_23, x_3); +lean_dec(x_24); +if (lean_obj_tag(x_28) == 0) { -lean_object* x_14; -x_14 = lean_ctor_get(x_13, 1); -lean_inc(x_14); -lean_dec(x_13); -x_1 = x_8; -x_3 = x_14; +lean_object* x_29; +x_29 = lean_ctor_get(x_28, 1); +lean_inc(x_29); +lean_dec(x_28); +x_1 = x_7; +x_3 = x_29; goto _start; } else { -uint8_t x_16; -lean_dec(x_8); -lean_dec(x_2); -x_16 = !lean_is_exclusive(x_13); -if (x_16 == 0) +uint8_t x_31; +lean_dec(x_7); +x_31 = !lean_is_exclusive(x_28); +if (x_31 == 0) { -return x_13; +return x_28; } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_13, 0); -x_18 = lean_ctor_get(x_13, 1); -lean_inc(x_18); -lean_inc(x_17); -lean_dec(x_13); -x_19 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_19, 0, x_17); -lean_ctor_set(x_19, 1, x_18); -return x_19; +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_28, 0); +x_33 = lean_ctor_get(x_28, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_28); +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; } } } case 1: { -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; -x_20 = lean_ctor_get(x_1, 1); -lean_inc(x_20); -lean_dec(x_1); -x_21 = lean_ctor_get(x_7, 0); -lean_inc(x_21); -x_22 = lean_ctor_get(x_7, 1); -lean_inc(x_22); -x_23 = lean_ctor_get(x_7, 2); -lean_inc(x_23); -x_24 = lean_ctor_get(x_7, 3); -lean_inc(x_24); -lean_dec(x_7); -x_25 = lean_ctor_get(x_6, 0); -lean_inc(x_25); -lean_inc(x_25); -x_26 = lean_alloc_closure((void*)(l_Lean_Elab_Term_getMVarDecl___boxed), 3, 1); -lean_closure_set(x_26, 0, x_25); -x_27 = lean_alloc_closure((void*)(l_List_forM___main___at___private_Lean_Elab_SyntheticMVars_9__reportStuckSyntheticMVars___spec__1___lambda__2___boxed), 8, 5); -lean_closure_set(x_27, 0, x_6); -lean_closure_set(x_27, 1, x_21); -lean_closure_set(x_27, 2, x_22); -lean_closure_set(x_27, 3, x_23); -lean_closure_set(x_27, 4, x_24); -x_28 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Term_monadLog___spec__2___rarg), 4, 2); -lean_closure_set(x_28, 0, x_26); -lean_closure_set(x_28, 1, x_27); -lean_inc(x_2); -x_29 = l_Lean_Elab_Term_withMVarContext___rarg(x_25, x_28, x_2, x_3); -lean_dec(x_25); -if (lean_obj_tag(x_29) == 0) +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_dec(x_8); +x_35 = lean_ctor_get(x_9, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_9, 1); +lean_inc(x_36); +x_37 = lean_ctor_get(x_9, 2); +lean_inc(x_37); +x_38 = lean_ctor_get(x_9, 3); +lean_inc(x_38); +lean_dec(x_9); +x_39 = lean_ctor_get(x_6, 0); +lean_inc(x_39); +lean_dec(x_6); +lean_inc(x_39); +x_40 = lean_alloc_closure((void*)(l_Lean_Elab_Term_getMVarDecl___boxed), 3, 1); +lean_closure_set(x_40, 0, x_39); +x_41 = lean_alloc_closure((void*)(l_List_forM___main___at___private_Lean_Elab_SyntheticMVars_9__reportStuckSyntheticMVars___spec__1___lambda__2___boxed), 7, 4); +lean_closure_set(x_41, 0, x_35); +lean_closure_set(x_41, 1, x_36); +lean_closure_set(x_41, 2, x_37); +lean_closure_set(x_41, 3, x_38); +x_42 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Term_monadLog___spec__2___rarg), 4, 2); +lean_closure_set(x_42, 0, x_40); +lean_closure_set(x_42, 1, x_41); +x_43 = l_Lean_Elab_Term_withMVarContext___rarg(x_39, x_42, x_23, x_3); +lean_dec(x_39); +if (lean_obj_tag(x_43) == 0) { -lean_object* x_30; -x_30 = lean_ctor_get(x_29, 1); -lean_inc(x_30); -lean_dec(x_29); -x_1 = x_20; -x_3 = x_30; +lean_object* x_44; +x_44 = lean_ctor_get(x_43, 1); +lean_inc(x_44); +lean_dec(x_43); +x_1 = x_7; +x_3 = x_44; goto _start; } else { -uint8_t x_32; -lean_dec(x_20); -lean_dec(x_2); -x_32 = !lean_is_exclusive(x_29); -if (x_32 == 0) +uint8_t x_46; +lean_dec(x_7); +x_46 = !lean_is_exclusive(x_43); +if (x_46 == 0) { -return x_29; +return x_43; } else { -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_29, 0); -x_34 = lean_ctor_get(x_29, 1); -lean_inc(x_34); -lean_inc(x_33); -lean_dec(x_29); -x_35 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_35, 0, x_33); -lean_ctor_set(x_35, 1, x_34); -return x_35; +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_43, 0); +x_48 = lean_ctor_get(x_43, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_43); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +return x_49; } } } default: { -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; -lean_dec(x_7); +lean_object* x_50; lean_object* x_51; lean_object* x_52; +lean_dec(x_9); +lean_dec(x_8); lean_dec(x_6); -x_36 = lean_ctor_get(x_1, 1); -lean_inc(x_36); -lean_dec(x_1); -x_37 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; -x_38 = l_unreachable_x21___rarg(x_37); -lean_inc(x_2); -x_39 = lean_apply_2(x_38, x_2, x_3); -if (lean_obj_tag(x_39) == 0) +x_50 = l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; +x_51 = l_unreachable_x21___rarg(x_50); +x_52 = lean_apply_2(x_51, x_23, x_3); +if (lean_obj_tag(x_52) == 0) { -lean_object* x_40; -x_40 = lean_ctor_get(x_39, 1); -lean_inc(x_40); -lean_dec(x_39); -x_1 = x_36; -x_3 = x_40; +lean_object* x_53; +x_53 = lean_ctor_get(x_52, 1); +lean_inc(x_53); +lean_dec(x_52); +x_1 = x_7; +x_3 = x_53; goto _start; } else { -uint8_t x_42; -lean_dec(x_36); -lean_dec(x_2); -x_42 = !lean_is_exclusive(x_39); -if (x_42 == 0) +uint8_t x_55; +lean_dec(x_7); +x_55 = !lean_is_exclusive(x_52); +if (x_55 == 0) { -return x_39; +return x_52; } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_39, 0); -x_44 = lean_ctor_get(x_39, 1); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_39); -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; +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_52, 0); +x_57 = lean_ctor_get(x_52, 1); +lean_inc(x_57); +lean_inc(x_56); +lean_dec(x_52); +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; } } } @@ -4166,14 +4940,31 @@ lean_dec(x_1); return x_5; } } -lean_object* l_List_forM___main___at___private_Lean_Elab_SyntheticMVars_9__reportStuckSyntheticMVars___spec__1___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* l_List_forM___main___at___private_Lean_Elab_SyntheticMVars_9__reportStuckSyntheticMVars___spec__1___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) { _start: { -lean_object* x_9; -x_9 = l_List_forM___main___at___private_Lean_Elab_SyntheticMVars_9__reportStuckSyntheticMVars___spec__1___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_6); +lean_object* x_8; +x_8 = l_List_forM___main___at___private_Lean_Elab_SyntheticMVars_9__reportStuckSyntheticMVars___spec__1___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_5); +return x_8; +} +} +lean_object* l_List_forM___main___at___private_Lean_Elab_SyntheticMVars_9__reportStuckSyntheticMVars___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_List_forM___main___at___private_Lean_Elab_SyntheticMVars_9__reportStuckSyntheticMVars___spec__1(x_1, x_2, x_3); +lean_dec(x_2); +return x_4; +} +} +lean_object* l___private_Lean_Elab_SyntheticMVars_9__reportStuckSyntheticMVars___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l___private_Lean_Elab_SyntheticMVars_9__reportStuckSyntheticMVars(x_1, x_2); lean_dec(x_1); -return x_9; +return x_3; } } uint8_t l___private_Lean_Elab_SyntheticMVars_10__getSomeSynthethicMVarsRef___rarg___lambda__1(lean_object* x_1) { @@ -4268,160 +5059,69 @@ return x_2; lean_object* l___private_Lean_Elab_SyntheticMVars_11__synthesizeSyntheticMVarsAux___main(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_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* x_18; uint8_t x_19; uint8_t x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_dec(x_2); x_5 = l___private_Lean_Elab_SyntheticMVars_10__getSomeSynthethicMVarsRef___rarg(x_4); -x_6 = lean_ctor_get(x_3, 0); +x_6 = lean_ctor_get(x_5, 0); lean_inc(x_6); -x_7 = lean_ctor_get(x_5, 0); +x_7 = lean_ctor_get(x_5, 1); lean_inc(x_7); -x_8 = lean_ctor_get(x_5, 1); -lean_inc(x_8); if (lean_is_exclusive(x_5)) { lean_ctor_release(x_5, 0); lean_ctor_release(x_5, 1); - x_9 = x_5; + x_8 = x_5; } else { lean_dec_ref(x_5); - x_9 = lean_box(0); + x_8 = lean_box(0); } -x_10 = lean_ctor_get(x_3, 1); -lean_inc(x_10); -x_11 = lean_ctor_get(x_3, 2); -lean_inc(x_11); -x_12 = lean_ctor_get(x_3, 3); -lean_inc(x_12); -x_13 = lean_ctor_get(x_3, 4); -lean_inc(x_13); -x_14 = lean_ctor_get(x_3, 5); -lean_inc(x_14); -x_15 = lean_ctor_get(x_3, 6); -lean_inc(x_15); -x_16 = lean_ctor_get(x_3, 7); -lean_inc(x_16); -x_17 = lean_ctor_get(x_3, 8); -lean_inc(x_17); -x_18 = lean_ctor_get(x_3, 9); -lean_inc(x_18); -x_19 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); -x_20 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); -x_21 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); -x_22 = lean_ctor_get(x_6, 3); -lean_inc(x_22); -x_23 = lean_ctor_get(x_6, 4); -lean_inc(x_23); -x_24 = lean_nat_dec_eq(x_22, x_23); -if (x_24 == 0) +x_9 = !lean_is_exclusive(x_3); +if (x_9 == 0) { -lean_dec(x_7); -lean_dec(x_3); -x_25 = x_8; -goto block_183; -} -else -{ -lean_object* x_184; lean_object* x_185; uint8_t x_186; +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; uint8_t x_20; uint8_t x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; lean_object* x_27; +x_10 = lean_ctor_get(x_3, 0); +x_11 = lean_ctor_get(x_3, 1); +x_12 = lean_ctor_get(x_3, 2); +x_13 = lean_ctor_get(x_3, 3); +x_14 = lean_ctor_get(x_3, 4); +x_15 = lean_ctor_get(x_3, 5); +x_16 = lean_ctor_get(x_3, 6); +x_17 = lean_ctor_get(x_3, 7); +x_18 = lean_ctor_get(x_3, 8); +x_19 = lean_ctor_get(x_3, 9); +x_20 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_21 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_22 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +x_23 = lean_ctor_get(x_3, 10); lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -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_9); -lean_dec(x_6); -x_184 = l_Lean_Meta_withIncRecDepth___rarg___closed__2; -x_185 = l_Lean_Elab_Term_throwError___rarg(x_7, x_184, x_3, x_8); -lean_dec(x_7); -x_186 = !lean_is_exclusive(x_185); -if (x_186 == 0) -{ -return x_185; -} -else -{ -lean_object* x_187; lean_object* x_188; lean_object* x_189; -x_187 = lean_ctor_get(x_185, 0); -x_188 = lean_ctor_get(x_185, 1); -lean_inc(x_188); -lean_inc(x_187); -lean_dec(x_185); -x_189 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_189, 0, x_187); -lean_ctor_set(x_189, 1, x_188); -return x_189; -} -} -block_183: -{ -uint8_t x_26; -x_26 = !lean_is_exclusive(x_6); +lean_inc(x_6); +lean_inc(x_19); +lean_inc(x_18); +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_11); +lean_inc(x_10); +lean_ctor_set(x_3, 10, x_6); +x_24 = lean_ctor_get(x_10, 3); +lean_inc(x_24); +x_25 = lean_ctor_get(x_10, 4); +lean_inc(x_25); +x_26 = lean_nat_dec_eq(x_24, x_25); if (x_26 == 0) { -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_object* x_99; uint8_t x_100; -x_27 = lean_ctor_get(x_6, 4); -lean_dec(x_27); -x_28 = lean_ctor_get(x_6, 3); -lean_dec(x_28); -x_29 = lean_unsigned_to_nat(1u); -x_30 = lean_nat_add(x_22, x_29); -lean_dec(x_22); -lean_ctor_set(x_6, 3, x_30); -lean_inc(x_18); -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_11); -lean_inc(x_10); -lean_inc(x_6); -x_31 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_31, 0, x_6); -lean_ctor_set(x_31, 1, x_10); -lean_ctor_set(x_31, 2, x_11); -lean_ctor_set(x_31, 3, x_12); -lean_ctor_set(x_31, 4, x_13); -lean_ctor_set(x_31, 5, x_14); -lean_ctor_set(x_31, 6, x_15); -lean_ctor_set(x_31, 7, x_16); -lean_ctor_set(x_31, 8, x_17); -lean_ctor_set(x_31, 9, x_18); -lean_ctor_set_uint8(x_31, sizeof(void*)*10, x_19); -lean_ctor_set_uint8(x_31, sizeof(void*)*10 + 1, x_20); -lean_ctor_set_uint8(x_31, sizeof(void*)*10 + 2, x_21); -x_99 = lean_ctor_get(x_25, 1); -lean_inc(x_99); -x_100 = l_List_isEmpty___rarg(x_99); -lean_dec(x_99); -if (x_100 == 0) -{ -lean_dec(x_9); -if (x_1 == 0) -{ -uint8_t x_101; -x_101 = 0; -x_32 = x_101; -goto block_98; +lean_dec(x_3); +x_27 = x_7; +goto block_185; } else { -uint8_t x_102; -x_102 = 1; -x_32 = x_102; -goto block_98; -} -} -else -{ -lean_object* x_103; lean_object* x_104; -lean_dec(x_31); -lean_dec(x_6); +lean_object* x_186; lean_object* x_187; uint8_t x_188; +lean_dec(x_25); +lean_dec(x_24); +lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); @@ -4431,271 +5131,374 @@ lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); -x_103 = lean_box(0); -if (lean_is_scalar(x_9)) { - x_104 = lean_alloc_ctor(0, 2, 0); -} else { - x_104 = x_9; -} -lean_ctor_set(x_104, 0, x_103); -lean_ctor_set(x_104, 1, x_25); -return x_104; -} -block_98: +lean_dec(x_8); +lean_dec(x_6); +x_186 = l_Lean_Meta_withIncRecDepth___rarg___closed__2; +x_187 = l_Lean_Elab_Term_throwError___rarg(x_186, x_3, x_7); +x_188 = !lean_is_exclusive(x_187); +if (x_188 == 0) { -uint8_t x_33; lean_object* x_34; -x_33 = 0; -lean_inc(x_31); -x_34 = l___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep(x_33, x_33, x_31, x_25); -if (lean_obj_tag(x_34) == 0) -{ -lean_object* x_35; uint8_t x_36; -x_35 = lean_ctor_get(x_34, 0); -lean_inc(x_35); -x_36 = lean_unbox(x_35); -lean_dec(x_35); -if (x_36 == 0) -{ -if (x_32 == 0) -{ -lean_object* x_37; lean_object* x_38; uint8_t x_39; lean_object* x_40; -x_37 = lean_ctor_get(x_34, 1); -lean_inc(x_37); -lean_dec(x_34); -x_38 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_38, 0, x_6); -lean_ctor_set(x_38, 1, x_10); -lean_ctor_set(x_38, 2, x_11); -lean_ctor_set(x_38, 3, x_12); -lean_ctor_set(x_38, 4, x_13); -lean_ctor_set(x_38, 5, x_14); -lean_ctor_set(x_38, 6, x_15); -lean_ctor_set(x_38, 7, x_16); -lean_ctor_set(x_38, 8, x_17); -lean_ctor_set(x_38, 9, x_18); -lean_ctor_set_uint8(x_38, sizeof(void*)*10, x_33); -lean_ctor_set_uint8(x_38, sizeof(void*)*10 + 1, x_20); -lean_ctor_set_uint8(x_38, sizeof(void*)*10 + 2, x_21); -x_39 = 1; -lean_inc(x_38); -x_40 = l___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep(x_39, x_33, x_38, x_37); -if (lean_obj_tag(x_40) == 0) -{ -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); -lean_inc(x_31); -x_44 = l___private_Lean_Elab_SyntheticMVars_8__synthesizeUsingDefault(x_31, x_43); -if (lean_obj_tag(x_44) == 0) -{ -lean_object* x_45; uint8_t x_46; -x_45 = lean_ctor_get(x_44, 0); -lean_inc(x_45); -x_46 = lean_unbox(x_45); -lean_dec(x_45); -if (x_46 == 0) -{ -lean_object* x_47; lean_object* x_48; -x_47 = lean_ctor_get(x_44, 1); -lean_inc(x_47); -lean_dec(x_44); -x_48 = l___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep(x_33, x_33, x_38, x_47); -if (lean_obj_tag(x_48) == 0) -{ -lean_object* x_49; uint8_t x_50; -x_49 = lean_ctor_get(x_48, 0); -lean_inc(x_49); -x_50 = lean_unbox(x_49); -lean_dec(x_49); -if (x_50 == 0) -{ -lean_object* x_51; lean_object* x_52; -x_51 = lean_ctor_get(x_48, 1); -lean_inc(x_51); -lean_dec(x_48); -lean_inc(x_31); -x_52 = l___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep(x_33, x_39, x_31, x_51); -if (lean_obj_tag(x_52) == 0) -{ -lean_object* x_53; uint8_t x_54; -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -x_54 = lean_unbox(x_53); -lean_dec(x_53); -if (x_54 == 0) -{ -lean_object* x_55; lean_object* x_56; -x_55 = lean_ctor_get(x_52, 1); -lean_inc(x_55); -lean_dec(x_52); -x_56 = l___private_Lean_Elab_SyntheticMVars_9__reportStuckSyntheticMVars(x_31, x_55); -return x_56; +return x_187; } else { +lean_object* x_189; lean_object* x_190; lean_object* x_191; +x_189 = lean_ctor_get(x_187, 0); +x_190 = lean_ctor_get(x_187, 1); +lean_inc(x_190); +lean_inc(x_189); +lean_dec(x_187); +x_191 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_191, 0, x_189); +lean_ctor_set(x_191, 1, x_190); +return x_191; +} +} +block_185: +{ +uint8_t x_28; +x_28 = !lean_is_exclusive(x_10); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; lean_object* x_101; uint8_t x_102; +x_29 = lean_ctor_get(x_10, 4); +lean_dec(x_29); +x_30 = lean_ctor_get(x_10, 3); +lean_dec(x_30); +x_31 = lean_unsigned_to_nat(1u); +x_32 = lean_nat_add(x_24, x_31); +lean_dec(x_24); +lean_ctor_set(x_10, 3, x_32); +lean_inc(x_6); +lean_inc(x_19); +lean_inc(x_18); +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_11); +lean_inc(x_10); +x_33 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_33, 0, x_10); +lean_ctor_set(x_33, 1, x_11); +lean_ctor_set(x_33, 2, x_12); +lean_ctor_set(x_33, 3, x_13); +lean_ctor_set(x_33, 4, x_14); +lean_ctor_set(x_33, 5, x_15); +lean_ctor_set(x_33, 6, x_16); +lean_ctor_set(x_33, 7, x_17); +lean_ctor_set(x_33, 8, x_18); +lean_ctor_set(x_33, 9, x_19); +lean_ctor_set(x_33, 10, x_6); +lean_ctor_set_uint8(x_33, sizeof(void*)*11, x_20); +lean_ctor_set_uint8(x_33, sizeof(void*)*11 + 1, x_21); +lean_ctor_set_uint8(x_33, sizeof(void*)*11 + 2, x_22); +x_101 = lean_ctor_get(x_27, 1); +lean_inc(x_101); +x_102 = l_List_isEmpty___rarg(x_101); +lean_dec(x_101); +if (x_102 == 0) +{ +lean_dec(x_8); +if (x_1 == 0) +{ +uint8_t x_103; +x_103 = 0; +x_34 = x_103; +goto block_100; +} +else +{ +uint8_t x_104; +x_104 = 1; +x_34 = x_104; +goto block_100; +} +} +else +{ +lean_object* x_105; lean_object* x_106; +lean_dec(x_33); +lean_dec(x_10); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_6); +x_105 = lean_box(0); +if (lean_is_scalar(x_8)) { + x_106 = lean_alloc_ctor(0, 2, 0); +} else { + x_106 = x_8; +} +lean_ctor_set(x_106, 0, x_105); +lean_ctor_set(x_106, 1, x_27); +return x_106; +} +block_100: +{ +uint8_t x_35; lean_object* x_36; +x_35 = 0; +lean_inc(x_33); +x_36 = l___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep(x_35, x_35, x_33, x_27); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; uint8_t x_38; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_unbox(x_37); +lean_dec(x_37); +if (x_38 == 0) +{ +if (x_34 == 0) +{ +lean_object* x_39; lean_object* x_40; uint8_t x_41; lean_object* x_42; +x_39 = lean_ctor_get(x_36, 1); +lean_inc(x_39); +lean_dec(x_36); +x_40 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_40, 0, x_10); +lean_ctor_set(x_40, 1, x_11); +lean_ctor_set(x_40, 2, x_12); +lean_ctor_set(x_40, 3, x_13); +lean_ctor_set(x_40, 4, x_14); +lean_ctor_set(x_40, 5, x_15); +lean_ctor_set(x_40, 6, x_16); +lean_ctor_set(x_40, 7, x_17); +lean_ctor_set(x_40, 8, x_18); +lean_ctor_set(x_40, 9, x_19); +lean_ctor_set(x_40, 10, x_6); +lean_ctor_set_uint8(x_40, sizeof(void*)*11, x_35); +lean_ctor_set_uint8(x_40, sizeof(void*)*11 + 1, x_21); +lean_ctor_set_uint8(x_40, sizeof(void*)*11 + 2, x_22); +x_41 = 1; +lean_inc(x_40); +x_42 = l___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep(x_41, x_35, x_40, x_39); +if (lean_obj_tag(x_42) == 0) +{ +lean_object* x_43; uint8_t x_44; +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +x_44 = lean_unbox(x_43); +lean_dec(x_43); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; +x_45 = lean_ctor_get(x_42, 1); +lean_inc(x_45); +lean_dec(x_42); +x_46 = l___private_Lean_Elab_SyntheticMVars_8__synthesizeUsingDefault(x_33, x_45); +if (lean_obj_tag(x_46) == 0) +{ +lean_object* x_47; uint8_t x_48; +x_47 = lean_ctor_get(x_46, 0); +lean_inc(x_47); +x_48 = lean_unbox(x_47); +lean_dec(x_47); +if (x_48 == 0) +{ +lean_object* x_49; lean_object* x_50; +x_49 = lean_ctor_get(x_46, 1); +lean_inc(x_49); +lean_dec(x_46); +x_50 = l___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep(x_35, x_35, x_40, x_49); +if (lean_obj_tag(x_50) == 0) +{ +lean_object* x_51; uint8_t x_52; +x_51 = lean_ctor_get(x_50, 0); +lean_inc(x_51); +x_52 = lean_unbox(x_51); +lean_dec(x_51); +if (x_52 == 0) +{ +lean_object* x_53; lean_object* x_54; +x_53 = lean_ctor_get(x_50, 1); +lean_inc(x_53); +lean_dec(x_50); +lean_inc(x_33); +x_54 = l___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep(x_35, x_41, x_33, x_53); +if (lean_obj_tag(x_54) == 0) +{ +lean_object* x_55; uint8_t x_56; +x_55 = lean_ctor_get(x_54, 0); +lean_inc(x_55); +x_56 = lean_unbox(x_55); +lean_dec(x_55); +if (x_56 == 0) +{ lean_object* x_57; lean_object* x_58; -x_57 = lean_ctor_get(x_52, 1); +x_57 = lean_ctor_get(x_54, 1); lean_inc(x_57); -lean_dec(x_52); -x_58 = lean_box(0); -x_2 = x_58; -x_3 = x_31; -x_4 = x_57; +lean_dec(x_54); +x_58 = l___private_Lean_Elab_SyntheticMVars_9__reportStuckSyntheticMVars(x_33, x_57); +lean_dec(x_33); +return x_58; +} +else +{ +lean_object* x_59; lean_object* x_60; +x_59 = lean_ctor_get(x_54, 1); +lean_inc(x_59); +lean_dec(x_54); +x_60 = lean_box(0); +x_2 = x_60; +x_3 = x_33; +x_4 = x_59; goto _start; } } else { -uint8_t x_60; -lean_dec(x_31); -x_60 = !lean_is_exclusive(x_52); -if (x_60 == 0) +uint8_t x_62; +lean_dec(x_33); +x_62 = !lean_is_exclusive(x_54); +if (x_62 == 0) { -return x_52; +return x_54; } else { -lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_61 = lean_ctor_get(x_52, 0); -x_62 = lean_ctor_get(x_52, 1); -lean_inc(x_62); -lean_inc(x_61); -lean_dec(x_52); -x_63 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_63, 0, x_61); -lean_ctor_set(x_63, 1, x_62); -return x_63; -} -} -} -else -{ -lean_object* x_64; lean_object* x_65; -x_64 = lean_ctor_get(x_48, 1); +lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_54, 0); +x_64 = lean_ctor_get(x_54, 1); lean_inc(x_64); -lean_dec(x_48); -x_65 = lean_box(0); -x_2 = x_65; -x_3 = x_31; -x_4 = x_64; +lean_inc(x_63); +lean_dec(x_54); +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; +} +} +} +else +{ +lean_object* x_66; lean_object* x_67; +x_66 = lean_ctor_get(x_50, 1); +lean_inc(x_66); +lean_dec(x_50); +x_67 = lean_box(0); +x_2 = x_67; +x_3 = x_33; +x_4 = x_66; goto _start; } } else { -uint8_t x_67; -lean_dec(x_31); -x_67 = !lean_is_exclusive(x_48); -if (x_67 == 0) +uint8_t x_69; +lean_dec(x_33); +x_69 = !lean_is_exclusive(x_50); +if (x_69 == 0) { -return x_48; +return x_50; } else { -lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_68 = lean_ctor_get(x_48, 0); -x_69 = lean_ctor_get(x_48, 1); -lean_inc(x_69); -lean_inc(x_68); -lean_dec(x_48); -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; -} -} -} -else -{ -lean_object* x_71; lean_object* x_72; -lean_dec(x_38); -x_71 = lean_ctor_get(x_44, 1); +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_50, 0); +x_71 = lean_ctor_get(x_50, 1); lean_inc(x_71); -lean_dec(x_44); -x_72 = lean_box(0); -x_2 = x_72; -x_3 = x_31; -x_4 = x_71; +lean_inc(x_70); +lean_dec(x_50); +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 +{ +lean_object* x_73; lean_object* x_74; +lean_dec(x_40); +x_73 = lean_ctor_get(x_46, 1); +lean_inc(x_73); +lean_dec(x_46); +x_74 = lean_box(0); +x_2 = x_74; +x_3 = x_33; +x_4 = x_73; goto _start; } } else { -uint8_t x_74; -lean_dec(x_38); -lean_dec(x_31); -x_74 = !lean_is_exclusive(x_44); -if (x_74 == 0) +uint8_t x_76; +lean_dec(x_40); +lean_dec(x_33); +x_76 = !lean_is_exclusive(x_46); +if (x_76 == 0) { -return x_44; +return x_46; } else { -lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_75 = lean_ctor_get(x_44, 0); -x_76 = lean_ctor_get(x_44, 1); -lean_inc(x_76); -lean_inc(x_75); -lean_dec(x_44); -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; -} -} -} -else -{ -lean_object* x_78; lean_object* x_79; -lean_dec(x_38); -x_78 = lean_ctor_get(x_40, 1); +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_46, 0); +x_78 = lean_ctor_get(x_46, 1); lean_inc(x_78); +lean_inc(x_77); +lean_dec(x_46); +x_79 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_79, 0, x_77); +lean_ctor_set(x_79, 1, x_78); +return x_79; +} +} +} +else +{ +lean_object* x_80; lean_object* x_81; lean_dec(x_40); -x_79 = lean_box(0); -x_2 = x_79; -x_3 = x_31; -x_4 = x_78; +x_80 = lean_ctor_get(x_42, 1); +lean_inc(x_80); +lean_dec(x_42); +x_81 = lean_box(0); +x_2 = x_81; +x_3 = x_33; +x_4 = x_80; goto _start; } } else { -uint8_t x_81; -lean_dec(x_38); -lean_dec(x_31); -x_81 = !lean_is_exclusive(x_40); -if (x_81 == 0) -{ -return x_40; -} -else -{ -lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_82 = lean_ctor_get(x_40, 0); -x_83 = lean_ctor_get(x_40, 1); -lean_inc(x_83); -lean_inc(x_82); +uint8_t x_83; lean_dec(x_40); -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; +lean_dec(x_33); +x_83 = !lean_is_exclusive(x_42); +if (x_83 == 0) +{ +return x_42; +} +else +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_84 = lean_ctor_get(x_42, 0); +x_85 = lean_ctor_get(x_42, 1); +lean_inc(x_85); +lean_inc(x_84); +lean_dec(x_42); +x_86 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_86, 0, x_84); +lean_ctor_set(x_86, 1, x_85); +return x_86; } } } else { -uint8_t x_85; -lean_dec(x_31); -lean_dec(x_6); +uint8_t x_87; +lean_dec(x_33); +lean_dec(x_10); +lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); @@ -4704,35 +5507,36 @@ lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); -lean_dec(x_10); -x_85 = !lean_is_exclusive(x_34); -if (x_85 == 0) +lean_dec(x_6); +x_87 = !lean_is_exclusive(x_36); +if (x_87 == 0) { -lean_object* x_86; lean_object* x_87; -x_86 = lean_ctor_get(x_34, 0); -lean_dec(x_86); -x_87 = lean_box(0); -lean_ctor_set(x_34, 0, x_87); -return x_34; -} -else -{ -lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_88 = lean_ctor_get(x_34, 1); -lean_inc(x_88); -lean_dec(x_34); +lean_object* x_88; lean_object* x_89; +x_88 = lean_ctor_get(x_36, 0); +lean_dec(x_88); x_89 = lean_box(0); -x_90 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_90, 0, x_89); -lean_ctor_set(x_90, 1, x_88); -return x_90; +lean_ctor_set(x_36, 0, x_89); +return x_36; +} +else +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; +x_90 = lean_ctor_get(x_36, 1); +lean_inc(x_90); +lean_dec(x_36); +x_91 = lean_box(0); +x_92 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_92, 0, x_91); +lean_ctor_set(x_92, 1, x_90); +return x_92; } } } else { -lean_object* x_91; lean_object* x_92; -lean_dec(x_6); +lean_object* x_93; lean_object* x_94; +lean_dec(x_10); +lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); @@ -4741,22 +5545,23 @@ lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); -lean_dec(x_10); -x_91 = lean_ctor_get(x_34, 1); -lean_inc(x_91); -lean_dec(x_34); -x_92 = lean_box(0); -x_2 = x_92; -x_3 = x_31; -x_4 = x_91; +lean_dec(x_6); +x_93 = lean_ctor_get(x_36, 1); +lean_inc(x_93); +lean_dec(x_36); +x_94 = lean_box(0); +x_2 = x_94; +x_3 = x_33; +x_4 = x_93; goto _start; } } else { -uint8_t x_94; -lean_dec(x_31); -lean_dec(x_6); +uint8_t x_96; +lean_dec(x_33); +lean_dec(x_10); +lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); @@ -4765,47 +5570,49 @@ lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); -lean_dec(x_10); -x_94 = !lean_is_exclusive(x_34); -if (x_94 == 0) -{ -return x_34; -} -else -{ -lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_95 = lean_ctor_get(x_34, 0); -x_96 = lean_ctor_get(x_34, 1); -lean_inc(x_96); -lean_inc(x_95); -lean_dec(x_34); -x_97 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_97, 0, x_95); -lean_ctor_set(x_97, 1, x_96); -return x_97; -} -} -} -} -else -{ -lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; uint8_t x_112; lean_object* x_177; uint8_t x_178; -x_105 = lean_ctor_get(x_6, 0); -x_106 = lean_ctor_get(x_6, 1); -x_107 = lean_ctor_get(x_6, 2); -lean_inc(x_107); -lean_inc(x_106); -lean_inc(x_105); lean_dec(x_6); -x_108 = lean_unsigned_to_nat(1u); -x_109 = lean_nat_add(x_22, x_108); -lean_dec(x_22); -x_110 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_110, 0, x_105); -lean_ctor_set(x_110, 1, x_106); -lean_ctor_set(x_110, 2, x_107); -lean_ctor_set(x_110, 3, x_109); -lean_ctor_set(x_110, 4, x_23); +x_96 = !lean_is_exclusive(x_36); +if (x_96 == 0) +{ +return x_36; +} +else +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_97 = lean_ctor_get(x_36, 0); +x_98 = lean_ctor_get(x_36, 1); +lean_inc(x_98); +lean_inc(x_97); +lean_dec(x_36); +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_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; uint8_t x_114; lean_object* x_179; uint8_t x_180; +x_107 = lean_ctor_get(x_10, 0); +x_108 = lean_ctor_get(x_10, 1); +x_109 = lean_ctor_get(x_10, 2); +lean_inc(x_109); +lean_inc(x_108); +lean_inc(x_107); +lean_dec(x_10); +x_110 = lean_unsigned_to_nat(1u); +x_111 = lean_nat_add(x_24, x_110); +lean_dec(x_24); +x_112 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_112, 0, x_107); +lean_ctor_set(x_112, 1, x_108); +lean_ctor_set(x_112, 2, x_109); +lean_ctor_set(x_112, 3, x_111); +lean_ctor_set(x_112, 4, x_25); +lean_inc(x_6); +lean_inc(x_19); lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); @@ -4814,49 +5621,50 @@ lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_110); -x_111 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_111, 0, x_110); -lean_ctor_set(x_111, 1, x_10); -lean_ctor_set(x_111, 2, x_11); -lean_ctor_set(x_111, 3, x_12); -lean_ctor_set(x_111, 4, x_13); -lean_ctor_set(x_111, 5, x_14); -lean_ctor_set(x_111, 6, x_15); -lean_ctor_set(x_111, 7, x_16); -lean_ctor_set(x_111, 8, x_17); -lean_ctor_set(x_111, 9, x_18); -lean_ctor_set_uint8(x_111, sizeof(void*)*10, x_19); -lean_ctor_set_uint8(x_111, sizeof(void*)*10 + 1, x_20); -lean_ctor_set_uint8(x_111, sizeof(void*)*10 + 2, x_21); -x_177 = lean_ctor_get(x_25, 1); -lean_inc(x_177); -x_178 = l_List_isEmpty___rarg(x_177); -lean_dec(x_177); -if (x_178 == 0) +lean_inc(x_112); +x_113 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_113, 0, x_112); +lean_ctor_set(x_113, 1, x_11); +lean_ctor_set(x_113, 2, x_12); +lean_ctor_set(x_113, 3, x_13); +lean_ctor_set(x_113, 4, x_14); +lean_ctor_set(x_113, 5, x_15); +lean_ctor_set(x_113, 6, x_16); +lean_ctor_set(x_113, 7, x_17); +lean_ctor_set(x_113, 8, x_18); +lean_ctor_set(x_113, 9, x_19); +lean_ctor_set(x_113, 10, x_6); +lean_ctor_set_uint8(x_113, sizeof(void*)*11, x_20); +lean_ctor_set_uint8(x_113, sizeof(void*)*11 + 1, x_21); +lean_ctor_set_uint8(x_113, sizeof(void*)*11 + 2, x_22); +x_179 = lean_ctor_get(x_27, 1); +lean_inc(x_179); +x_180 = l_List_isEmpty___rarg(x_179); +lean_dec(x_179); +if (x_180 == 0) { -lean_dec(x_9); +lean_dec(x_8); if (x_1 == 0) { -uint8_t x_179; -x_179 = 0; -x_112 = x_179; -goto block_176; +uint8_t x_181; +x_181 = 0; +x_114 = x_181; +goto block_178; } else { -uint8_t x_180; -x_180 = 1; -x_112 = x_180; -goto block_176; +uint8_t x_182; +x_182 = 1; +x_114 = x_182; +goto block_178; } } else { -lean_object* x_181; lean_object* x_182; -lean_dec(x_111); -lean_dec(x_110); +lean_object* x_183; lean_object* x_184; +lean_dec(x_113); +lean_dec(x_112); +lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); @@ -4865,338 +5673,282 @@ lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); -lean_dec(x_10); -x_181 = lean_box(0); -if (lean_is_scalar(x_9)) { - x_182 = lean_alloc_ctor(0, 2, 0); +lean_dec(x_6); +x_183 = lean_box(0); +if (lean_is_scalar(x_8)) { + x_184 = lean_alloc_ctor(0, 2, 0); } else { - x_182 = x_9; + x_184 = x_8; } -lean_ctor_set(x_182, 0, x_181); -lean_ctor_set(x_182, 1, x_25); -return x_182; +lean_ctor_set(x_184, 0, x_183); +lean_ctor_set(x_184, 1, x_27); +return x_184; } -block_176: +block_178: { -uint8_t x_113; lean_object* x_114; -x_113 = 0; -lean_inc(x_111); -x_114 = l___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep(x_113, x_113, x_111, x_25); -if (lean_obj_tag(x_114) == 0) +uint8_t x_115; lean_object* x_116; +x_115 = 0; +lean_inc(x_113); +x_116 = l___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep(x_115, x_115, x_113, x_27); +if (lean_obj_tag(x_116) == 0) { -lean_object* x_115; uint8_t x_116; -x_115 = lean_ctor_get(x_114, 0); -lean_inc(x_115); -x_116 = lean_unbox(x_115); -lean_dec(x_115); -if (x_116 == 0) -{ -if (x_112 == 0) -{ -lean_object* x_117; lean_object* x_118; uint8_t x_119; lean_object* x_120; -x_117 = lean_ctor_get(x_114, 1); +lean_object* x_117; uint8_t x_118; +x_117 = lean_ctor_get(x_116, 0); lean_inc(x_117); -lean_dec(x_114); -x_118 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_118, 0, x_110); -lean_ctor_set(x_118, 1, x_10); -lean_ctor_set(x_118, 2, x_11); -lean_ctor_set(x_118, 3, x_12); -lean_ctor_set(x_118, 4, x_13); -lean_ctor_set(x_118, 5, x_14); -lean_ctor_set(x_118, 6, x_15); -lean_ctor_set(x_118, 7, x_16); -lean_ctor_set(x_118, 8, x_17); -lean_ctor_set(x_118, 9, x_18); -lean_ctor_set_uint8(x_118, sizeof(void*)*10, x_113); -lean_ctor_set_uint8(x_118, sizeof(void*)*10 + 1, x_20); -lean_ctor_set_uint8(x_118, sizeof(void*)*10 + 2, x_21); -x_119 = 1; -lean_inc(x_118); -x_120 = l___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep(x_119, x_113, x_118, x_117); -if (lean_obj_tag(x_120) == 0) +x_118 = lean_unbox(x_117); +lean_dec(x_117); +if (x_118 == 0) { -lean_object* x_121; uint8_t x_122; -x_121 = lean_ctor_get(x_120, 0); -lean_inc(x_121); -x_122 = lean_unbox(x_121); -lean_dec(x_121); -if (x_122 == 0) +if (x_114 == 0) { -lean_object* x_123; lean_object* x_124; -x_123 = lean_ctor_get(x_120, 1); +lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_object* x_122; +x_119 = lean_ctor_get(x_116, 1); +lean_inc(x_119); +lean_dec(x_116); +x_120 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_120, 0, x_112); +lean_ctor_set(x_120, 1, x_11); +lean_ctor_set(x_120, 2, x_12); +lean_ctor_set(x_120, 3, x_13); +lean_ctor_set(x_120, 4, x_14); +lean_ctor_set(x_120, 5, x_15); +lean_ctor_set(x_120, 6, x_16); +lean_ctor_set(x_120, 7, x_17); +lean_ctor_set(x_120, 8, x_18); +lean_ctor_set(x_120, 9, x_19); +lean_ctor_set(x_120, 10, x_6); +lean_ctor_set_uint8(x_120, sizeof(void*)*11, x_115); +lean_ctor_set_uint8(x_120, sizeof(void*)*11 + 1, x_21); +lean_ctor_set_uint8(x_120, sizeof(void*)*11 + 2, x_22); +x_121 = 1; +lean_inc(x_120); +x_122 = l___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep(x_121, x_115, x_120, x_119); +if (lean_obj_tag(x_122) == 0) +{ +lean_object* x_123; uint8_t x_124; +x_123 = lean_ctor_get(x_122, 0); lean_inc(x_123); -lean_dec(x_120); -lean_inc(x_111); -x_124 = l___private_Lean_Elab_SyntheticMVars_8__synthesizeUsingDefault(x_111, x_123); -if (lean_obj_tag(x_124) == 0) +x_124 = lean_unbox(x_123); +lean_dec(x_123); +if (x_124 == 0) { -lean_object* x_125; uint8_t x_126; -x_125 = lean_ctor_get(x_124, 0); +lean_object* x_125; lean_object* x_126; +x_125 = lean_ctor_get(x_122, 1); lean_inc(x_125); -x_126 = lean_unbox(x_125); -lean_dec(x_125); -if (x_126 == 0) +lean_dec(x_122); +x_126 = l___private_Lean_Elab_SyntheticMVars_8__synthesizeUsingDefault(x_113, x_125); +if (lean_obj_tag(x_126) == 0) { -lean_object* x_127; lean_object* x_128; -x_127 = lean_ctor_get(x_124, 1); +lean_object* x_127; uint8_t x_128; +x_127 = lean_ctor_get(x_126, 0); lean_inc(x_127); -lean_dec(x_124); -x_128 = l___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep(x_113, x_113, x_118, x_127); -if (lean_obj_tag(x_128) == 0) +x_128 = lean_unbox(x_127); +lean_dec(x_127); +if (x_128 == 0) { -lean_object* x_129; uint8_t x_130; -x_129 = lean_ctor_get(x_128, 0); +lean_object* x_129; lean_object* x_130; +x_129 = lean_ctor_get(x_126, 1); lean_inc(x_129); -x_130 = lean_unbox(x_129); -lean_dec(x_129); -if (x_130 == 0) +lean_dec(x_126); +x_130 = l___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep(x_115, x_115, x_120, x_129); +if (lean_obj_tag(x_130) == 0) { -lean_object* x_131; lean_object* x_132; -x_131 = lean_ctor_get(x_128, 1); +lean_object* x_131; uint8_t x_132; +x_131 = lean_ctor_get(x_130, 0); lean_inc(x_131); -lean_dec(x_128); -lean_inc(x_111); -x_132 = l___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep(x_113, x_119, x_111, x_131); -if (lean_obj_tag(x_132) == 0) +x_132 = lean_unbox(x_131); +lean_dec(x_131); +if (x_132 == 0) { -lean_object* x_133; uint8_t x_134; -x_133 = lean_ctor_get(x_132, 0); +lean_object* x_133; lean_object* x_134; +x_133 = lean_ctor_get(x_130, 1); lean_inc(x_133); -x_134 = lean_unbox(x_133); -lean_dec(x_133); -if (x_134 == 0) +lean_dec(x_130); +lean_inc(x_113); +x_134 = l___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep(x_115, x_121, x_113, x_133); +if (lean_obj_tag(x_134) == 0) { -lean_object* x_135; lean_object* x_136; -x_135 = lean_ctor_get(x_132, 1); +lean_object* x_135; uint8_t x_136; +x_135 = lean_ctor_get(x_134, 0); lean_inc(x_135); -lean_dec(x_132); -x_136 = l___private_Lean_Elab_SyntheticMVars_9__reportStuckSyntheticMVars(x_111, x_135); -return x_136; -} -else +x_136 = lean_unbox(x_135); +lean_dec(x_135); +if (x_136 == 0) { lean_object* x_137; lean_object* x_138; -x_137 = lean_ctor_get(x_132, 1); +x_137 = lean_ctor_get(x_134, 1); lean_inc(x_137); -lean_dec(x_132); -x_138 = lean_box(0); -x_2 = x_138; -x_3 = x_111; -x_4 = x_137; +lean_dec(x_134); +x_138 = l___private_Lean_Elab_SyntheticMVars_9__reportStuckSyntheticMVars(x_113, x_137); +lean_dec(x_113); +return x_138; +} +else +{ +lean_object* x_139; lean_object* x_140; +x_139 = lean_ctor_get(x_134, 1); +lean_inc(x_139); +lean_dec(x_134); +x_140 = lean_box(0); +x_2 = x_140; +x_3 = x_113; +x_4 = x_139; goto _start; } } else { -lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; -lean_dec(x_111); -x_140 = lean_ctor_get(x_132, 0); -lean_inc(x_140); -x_141 = lean_ctor_get(x_132, 1); -lean_inc(x_141); -if (lean_is_exclusive(x_132)) { - lean_ctor_release(x_132, 0); - lean_ctor_release(x_132, 1); - x_142 = x_132; +lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; +lean_dec(x_113); +x_142 = lean_ctor_get(x_134, 0); +lean_inc(x_142); +x_143 = lean_ctor_get(x_134, 1); +lean_inc(x_143); +if (lean_is_exclusive(x_134)) { + lean_ctor_release(x_134, 0); + lean_ctor_release(x_134, 1); + x_144 = x_134; } else { - lean_dec_ref(x_132); - x_142 = lean_box(0); + lean_dec_ref(x_134); + x_144 = lean_box(0); } -if (lean_is_scalar(x_142)) { - x_143 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_144)) { + x_145 = lean_alloc_ctor(1, 2, 0); } else { - x_143 = x_142; + x_145 = x_144; } -lean_ctor_set(x_143, 0, x_140); -lean_ctor_set(x_143, 1, x_141); -return x_143; +lean_ctor_set(x_145, 0, x_142); +lean_ctor_set(x_145, 1, x_143); +return x_145; } } else { -lean_object* x_144; lean_object* x_145; -x_144 = lean_ctor_get(x_128, 1); -lean_inc(x_144); -lean_dec(x_128); -x_145 = lean_box(0); -x_2 = x_145; -x_3 = x_111; -x_4 = x_144; +lean_object* x_146; lean_object* x_147; +x_146 = lean_ctor_get(x_130, 1); +lean_inc(x_146); +lean_dec(x_130); +x_147 = lean_box(0); +x_2 = x_147; +x_3 = x_113; +x_4 = x_146; goto _start; } } else { -lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; -lean_dec(x_111); -x_147 = lean_ctor_get(x_128, 0); -lean_inc(x_147); -x_148 = lean_ctor_get(x_128, 1); -lean_inc(x_148); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_149 = x_128; +lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; +lean_dec(x_113); +x_149 = lean_ctor_get(x_130, 0); +lean_inc(x_149); +x_150 = lean_ctor_get(x_130, 1); +lean_inc(x_150); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_151 = x_130; } else { - lean_dec_ref(x_128); - x_149 = lean_box(0); + lean_dec_ref(x_130); + x_151 = lean_box(0); } -if (lean_is_scalar(x_149)) { - x_150 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_151)) { + x_152 = lean_alloc_ctor(1, 2, 0); } else { - x_150 = x_149; + x_152 = x_151; } -lean_ctor_set(x_150, 0, x_147); -lean_ctor_set(x_150, 1, x_148); -return x_150; +lean_ctor_set(x_152, 0, x_149); +lean_ctor_set(x_152, 1, x_150); +return x_152; } } else { -lean_object* x_151; lean_object* x_152; -lean_dec(x_118); -x_151 = lean_ctor_get(x_124, 1); -lean_inc(x_151); -lean_dec(x_124); -x_152 = lean_box(0); -x_2 = x_152; -x_3 = x_111; -x_4 = x_151; -goto _start; -} -} -else -{ -lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; -lean_dec(x_118); -lean_dec(x_111); -x_154 = lean_ctor_get(x_124, 0); -lean_inc(x_154); -x_155 = lean_ctor_get(x_124, 1); -lean_inc(x_155); -if (lean_is_exclusive(x_124)) { - lean_ctor_release(x_124, 0); - lean_ctor_release(x_124, 1); - x_156 = x_124; -} else { - lean_dec_ref(x_124); - x_156 = lean_box(0); -} -if (lean_is_scalar(x_156)) { - x_157 = lean_alloc_ctor(1, 2, 0); -} else { - x_157 = x_156; -} -lean_ctor_set(x_157, 0, x_154); -lean_ctor_set(x_157, 1, x_155); -return x_157; -} -} -else -{ -lean_object* x_158; lean_object* x_159; -lean_dec(x_118); -x_158 = lean_ctor_get(x_120, 1); -lean_inc(x_158); +lean_object* x_153; lean_object* x_154; lean_dec(x_120); -x_159 = lean_box(0); -x_2 = x_159; -x_3 = x_111; -x_4 = x_158; +x_153 = lean_ctor_get(x_126, 1); +lean_inc(x_153); +lean_dec(x_126); +x_154 = lean_box(0); +x_2 = x_154; +x_3 = x_113; +x_4 = x_153; goto _start; } } else { -lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; -lean_dec(x_118); -lean_dec(x_111); -x_161 = lean_ctor_get(x_120, 0); -lean_inc(x_161); -x_162 = lean_ctor_get(x_120, 1); -lean_inc(x_162); -if (lean_is_exclusive(x_120)) { - lean_ctor_release(x_120, 0); - lean_ctor_release(x_120, 1); - x_163 = x_120; +lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; +lean_dec(x_120); +lean_dec(x_113); +x_156 = lean_ctor_get(x_126, 0); +lean_inc(x_156); +x_157 = lean_ctor_get(x_126, 1); +lean_inc(x_157); +if (lean_is_exclusive(x_126)) { + lean_ctor_release(x_126, 0); + lean_ctor_release(x_126, 1); + x_158 = x_126; } else { - lean_dec_ref(x_120); - x_163 = lean_box(0); + lean_dec_ref(x_126); + x_158 = lean_box(0); } -if (lean_is_scalar(x_163)) { - x_164 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_158)) { + x_159 = lean_alloc_ctor(1, 2, 0); } else { - x_164 = x_163; + x_159 = x_158; } -lean_ctor_set(x_164, 0, x_161); -lean_ctor_set(x_164, 1, x_162); -return x_164; +lean_ctor_set(x_159, 0, x_156); +lean_ctor_set(x_159, 1, x_157); +return x_159; } } else { -lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; -lean_dec(x_111); -lean_dec(x_110); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -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_165 = lean_ctor_get(x_114, 1); -lean_inc(x_165); -if (lean_is_exclusive(x_114)) { - lean_ctor_release(x_114, 0); - lean_ctor_release(x_114, 1); - x_166 = x_114; -} else { - lean_dec_ref(x_114); - x_166 = lean_box(0); -} -x_167 = lean_box(0); -if (lean_is_scalar(x_166)) { - x_168 = lean_alloc_ctor(0, 2, 0); -} else { - x_168 = x_166; -} -lean_ctor_set(x_168, 0, x_167); -lean_ctor_set(x_168, 1, x_165); -return x_168; -} -} -else -{ -lean_object* x_169; lean_object* x_170; -lean_dec(x_110); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -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_169 = lean_ctor_get(x_114, 1); -lean_inc(x_169); -lean_dec(x_114); -x_170 = lean_box(0); -x_2 = x_170; -x_3 = x_111; -x_4 = x_169; +lean_object* x_160; lean_object* x_161; +lean_dec(x_120); +x_160 = lean_ctor_get(x_122, 1); +lean_inc(x_160); +lean_dec(x_122); +x_161 = lean_box(0); +x_2 = x_161; +x_3 = x_113; +x_4 = x_160; goto _start; } } else { -lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; -lean_dec(x_111); -lean_dec(x_110); +lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; +lean_dec(x_120); +lean_dec(x_113); +x_163 = lean_ctor_get(x_122, 0); +lean_inc(x_163); +x_164 = lean_ctor_get(x_122, 1); +lean_inc(x_164); +if (lean_is_exclusive(x_122)) { + lean_ctor_release(x_122, 0); + lean_ctor_release(x_122, 1); + x_165 = x_122; +} else { + lean_dec_ref(x_122); + x_165 = lean_box(0); +} +if (lean_is_scalar(x_165)) { + x_166 = lean_alloc_ctor(1, 2, 0); +} else { + x_166 = x_165; +} +lean_ctor_set(x_166, 0, x_163); +lean_ctor_set(x_166, 1, x_164); +return x_166; +} +} +else +{ +lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; +lean_dec(x_113); +lean_dec(x_112); +lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); @@ -5205,27 +5957,656 @@ lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); -lean_dec(x_10); -x_172 = lean_ctor_get(x_114, 0); -lean_inc(x_172); -x_173 = lean_ctor_get(x_114, 1); -lean_inc(x_173); -if (lean_is_exclusive(x_114)) { - lean_ctor_release(x_114, 0); - lean_ctor_release(x_114, 1); - x_174 = x_114; +lean_dec(x_6); +x_167 = lean_ctor_get(x_116, 1); +lean_inc(x_167); +if (lean_is_exclusive(x_116)) { + lean_ctor_release(x_116, 0); + lean_ctor_release(x_116, 1); + x_168 = x_116; } else { - lean_dec_ref(x_114); - x_174 = lean_box(0); + lean_dec_ref(x_116); + x_168 = lean_box(0); } -if (lean_is_scalar(x_174)) { - x_175 = lean_alloc_ctor(1, 2, 0); +x_169 = lean_box(0); +if (lean_is_scalar(x_168)) { + x_170 = lean_alloc_ctor(0, 2, 0); } else { - x_175 = x_174; + x_170 = x_168; } -lean_ctor_set(x_175, 0, x_172); -lean_ctor_set(x_175, 1, x_173); -return x_175; +lean_ctor_set(x_170, 0, x_169); +lean_ctor_set(x_170, 1, x_167); +return x_170; +} +} +else +{ +lean_object* x_171; lean_object* x_172; +lean_dec(x_112); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_6); +x_171 = lean_ctor_get(x_116, 1); +lean_inc(x_171); +lean_dec(x_116); +x_172 = lean_box(0); +x_2 = x_172; +x_3 = x_113; +x_4 = x_171; +goto _start; +} +} +else +{ +lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; +lean_dec(x_113); +lean_dec(x_112); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_6); +x_174 = lean_ctor_get(x_116, 0); +lean_inc(x_174); +x_175 = lean_ctor_get(x_116, 1); +lean_inc(x_175); +if (lean_is_exclusive(x_116)) { + lean_ctor_release(x_116, 0); + lean_ctor_release(x_116, 1); + x_176 = x_116; +} else { + lean_dec_ref(x_116); + x_176 = lean_box(0); +} +if (lean_is_scalar(x_176)) { + x_177 = lean_alloc_ctor(1, 2, 0); +} else { + x_177 = x_176; +} +lean_ctor_set(x_177, 0, x_174); +lean_ctor_set(x_177, 1, x_175); +return x_177; +} +} +} +} +} +else +{ +lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; uint8_t x_202; uint8_t x_203; uint8_t x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; uint8_t x_208; lean_object* x_209; +x_192 = lean_ctor_get(x_3, 0); +x_193 = lean_ctor_get(x_3, 1); +x_194 = lean_ctor_get(x_3, 2); +x_195 = lean_ctor_get(x_3, 3); +x_196 = lean_ctor_get(x_3, 4); +x_197 = lean_ctor_get(x_3, 5); +x_198 = lean_ctor_get(x_3, 6); +x_199 = lean_ctor_get(x_3, 7); +x_200 = lean_ctor_get(x_3, 8); +x_201 = lean_ctor_get(x_3, 9); +x_202 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_203 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_204 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +lean_inc(x_201); +lean_inc(x_200); +lean_inc(x_199); +lean_inc(x_198); +lean_inc(x_197); +lean_inc(x_196); +lean_inc(x_195); +lean_inc(x_194); +lean_inc(x_193); +lean_inc(x_192); +lean_dec(x_3); +lean_inc(x_6); +lean_inc(x_201); +lean_inc(x_200); +lean_inc(x_199); +lean_inc(x_198); +lean_inc(x_197); +lean_inc(x_196); +lean_inc(x_195); +lean_inc(x_194); +lean_inc(x_193); +lean_inc(x_192); +x_205 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_205, 0, x_192); +lean_ctor_set(x_205, 1, x_193); +lean_ctor_set(x_205, 2, x_194); +lean_ctor_set(x_205, 3, x_195); +lean_ctor_set(x_205, 4, x_196); +lean_ctor_set(x_205, 5, x_197); +lean_ctor_set(x_205, 6, x_198); +lean_ctor_set(x_205, 7, x_199); +lean_ctor_set(x_205, 8, x_200); +lean_ctor_set(x_205, 9, x_201); +lean_ctor_set(x_205, 10, x_6); +lean_ctor_set_uint8(x_205, sizeof(void*)*11, x_202); +lean_ctor_set_uint8(x_205, sizeof(void*)*11 + 1, x_203); +lean_ctor_set_uint8(x_205, sizeof(void*)*11 + 2, x_204); +x_206 = lean_ctor_get(x_192, 3); +lean_inc(x_206); +x_207 = lean_ctor_get(x_192, 4); +lean_inc(x_207); +x_208 = lean_nat_dec_eq(x_206, x_207); +if (x_208 == 0) +{ +lean_dec(x_205); +x_209 = x_7; +goto block_289; +} +else +{ +lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; +lean_dec(x_207); +lean_dec(x_206); +lean_dec(x_201); +lean_dec(x_200); +lean_dec(x_199); +lean_dec(x_198); +lean_dec(x_197); +lean_dec(x_196); +lean_dec(x_195); +lean_dec(x_194); +lean_dec(x_193); +lean_dec(x_192); +lean_dec(x_8); +lean_dec(x_6); +x_290 = l_Lean_Meta_withIncRecDepth___rarg___closed__2; +x_291 = l_Lean_Elab_Term_throwError___rarg(x_290, x_205, x_7); +x_292 = lean_ctor_get(x_291, 0); +lean_inc(x_292); +x_293 = lean_ctor_get(x_291, 1); +lean_inc(x_293); +if (lean_is_exclusive(x_291)) { + lean_ctor_release(x_291, 0); + lean_ctor_release(x_291, 1); + x_294 = x_291; +} else { + lean_dec_ref(x_291); + x_294 = lean_box(0); +} +if (lean_is_scalar(x_294)) { + x_295 = lean_alloc_ctor(1, 2, 0); +} else { + x_295 = x_294; +} +lean_ctor_set(x_295, 0, x_292); +lean_ctor_set(x_295, 1, x_293); +return x_295; +} +block_289: +{ +lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; uint8_t x_218; lean_object* x_283; uint8_t x_284; +x_210 = lean_ctor_get(x_192, 0); +lean_inc(x_210); +x_211 = lean_ctor_get(x_192, 1); +lean_inc(x_211); +x_212 = lean_ctor_get(x_192, 2); +lean_inc(x_212); +if (lean_is_exclusive(x_192)) { + lean_ctor_release(x_192, 0); + lean_ctor_release(x_192, 1); + lean_ctor_release(x_192, 2); + lean_ctor_release(x_192, 3); + lean_ctor_release(x_192, 4); + x_213 = x_192; +} else { + lean_dec_ref(x_192); + x_213 = lean_box(0); +} +x_214 = lean_unsigned_to_nat(1u); +x_215 = lean_nat_add(x_206, x_214); +lean_dec(x_206); +if (lean_is_scalar(x_213)) { + x_216 = lean_alloc_ctor(0, 5, 0); +} else { + x_216 = x_213; +} +lean_ctor_set(x_216, 0, x_210); +lean_ctor_set(x_216, 1, x_211); +lean_ctor_set(x_216, 2, x_212); +lean_ctor_set(x_216, 3, x_215); +lean_ctor_set(x_216, 4, x_207); +lean_inc(x_6); +lean_inc(x_201); +lean_inc(x_200); +lean_inc(x_199); +lean_inc(x_198); +lean_inc(x_197); +lean_inc(x_196); +lean_inc(x_195); +lean_inc(x_194); +lean_inc(x_193); +lean_inc(x_216); +x_217 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_217, 0, x_216); +lean_ctor_set(x_217, 1, x_193); +lean_ctor_set(x_217, 2, x_194); +lean_ctor_set(x_217, 3, x_195); +lean_ctor_set(x_217, 4, x_196); +lean_ctor_set(x_217, 5, x_197); +lean_ctor_set(x_217, 6, x_198); +lean_ctor_set(x_217, 7, x_199); +lean_ctor_set(x_217, 8, x_200); +lean_ctor_set(x_217, 9, x_201); +lean_ctor_set(x_217, 10, x_6); +lean_ctor_set_uint8(x_217, sizeof(void*)*11, x_202); +lean_ctor_set_uint8(x_217, sizeof(void*)*11 + 1, x_203); +lean_ctor_set_uint8(x_217, sizeof(void*)*11 + 2, x_204); +x_283 = lean_ctor_get(x_209, 1); +lean_inc(x_283); +x_284 = l_List_isEmpty___rarg(x_283); +lean_dec(x_283); +if (x_284 == 0) +{ +lean_dec(x_8); +if (x_1 == 0) +{ +uint8_t x_285; +x_285 = 0; +x_218 = x_285; +goto block_282; +} +else +{ +uint8_t x_286; +x_286 = 1; +x_218 = x_286; +goto block_282; +} +} +else +{ +lean_object* x_287; lean_object* x_288; +lean_dec(x_217); +lean_dec(x_216); +lean_dec(x_201); +lean_dec(x_200); +lean_dec(x_199); +lean_dec(x_198); +lean_dec(x_197); +lean_dec(x_196); +lean_dec(x_195); +lean_dec(x_194); +lean_dec(x_193); +lean_dec(x_6); +x_287 = lean_box(0); +if (lean_is_scalar(x_8)) { + x_288 = lean_alloc_ctor(0, 2, 0); +} else { + x_288 = x_8; +} +lean_ctor_set(x_288, 0, x_287); +lean_ctor_set(x_288, 1, x_209); +return x_288; +} +block_282: +{ +uint8_t x_219; lean_object* x_220; +x_219 = 0; +lean_inc(x_217); +x_220 = l___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep(x_219, x_219, x_217, x_209); +if (lean_obj_tag(x_220) == 0) +{ +lean_object* x_221; uint8_t x_222; +x_221 = lean_ctor_get(x_220, 0); +lean_inc(x_221); +x_222 = lean_unbox(x_221); +lean_dec(x_221); +if (x_222 == 0) +{ +if (x_218 == 0) +{ +lean_object* x_223; lean_object* x_224; uint8_t x_225; lean_object* x_226; +x_223 = lean_ctor_get(x_220, 1); +lean_inc(x_223); +lean_dec(x_220); +x_224 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_224, 0, x_216); +lean_ctor_set(x_224, 1, x_193); +lean_ctor_set(x_224, 2, x_194); +lean_ctor_set(x_224, 3, x_195); +lean_ctor_set(x_224, 4, x_196); +lean_ctor_set(x_224, 5, x_197); +lean_ctor_set(x_224, 6, x_198); +lean_ctor_set(x_224, 7, x_199); +lean_ctor_set(x_224, 8, x_200); +lean_ctor_set(x_224, 9, x_201); +lean_ctor_set(x_224, 10, x_6); +lean_ctor_set_uint8(x_224, sizeof(void*)*11, x_219); +lean_ctor_set_uint8(x_224, sizeof(void*)*11 + 1, x_203); +lean_ctor_set_uint8(x_224, sizeof(void*)*11 + 2, x_204); +x_225 = 1; +lean_inc(x_224); +x_226 = l___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep(x_225, x_219, x_224, x_223); +if (lean_obj_tag(x_226) == 0) +{ +lean_object* x_227; uint8_t x_228; +x_227 = lean_ctor_get(x_226, 0); +lean_inc(x_227); +x_228 = lean_unbox(x_227); +lean_dec(x_227); +if (x_228 == 0) +{ +lean_object* x_229; lean_object* x_230; +x_229 = lean_ctor_get(x_226, 1); +lean_inc(x_229); +lean_dec(x_226); +x_230 = l___private_Lean_Elab_SyntheticMVars_8__synthesizeUsingDefault(x_217, x_229); +if (lean_obj_tag(x_230) == 0) +{ +lean_object* x_231; uint8_t x_232; +x_231 = lean_ctor_get(x_230, 0); +lean_inc(x_231); +x_232 = lean_unbox(x_231); +lean_dec(x_231); +if (x_232 == 0) +{ +lean_object* x_233; lean_object* x_234; +x_233 = lean_ctor_get(x_230, 1); +lean_inc(x_233); +lean_dec(x_230); +x_234 = l___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep(x_219, x_219, x_224, x_233); +if (lean_obj_tag(x_234) == 0) +{ +lean_object* x_235; uint8_t x_236; +x_235 = lean_ctor_get(x_234, 0); +lean_inc(x_235); +x_236 = lean_unbox(x_235); +lean_dec(x_235); +if (x_236 == 0) +{ +lean_object* x_237; lean_object* x_238; +x_237 = lean_ctor_get(x_234, 1); +lean_inc(x_237); +lean_dec(x_234); +lean_inc(x_217); +x_238 = l___private_Lean_Elab_SyntheticMVars_7__synthesizeSyntheticMVarsStep(x_219, x_225, x_217, x_237); +if (lean_obj_tag(x_238) == 0) +{ +lean_object* x_239; uint8_t x_240; +x_239 = lean_ctor_get(x_238, 0); +lean_inc(x_239); +x_240 = lean_unbox(x_239); +lean_dec(x_239); +if (x_240 == 0) +{ +lean_object* x_241; lean_object* x_242; +x_241 = lean_ctor_get(x_238, 1); +lean_inc(x_241); +lean_dec(x_238); +x_242 = l___private_Lean_Elab_SyntheticMVars_9__reportStuckSyntheticMVars(x_217, x_241); +lean_dec(x_217); +return x_242; +} +else +{ +lean_object* x_243; lean_object* x_244; +x_243 = lean_ctor_get(x_238, 1); +lean_inc(x_243); +lean_dec(x_238); +x_244 = lean_box(0); +x_2 = x_244; +x_3 = x_217; +x_4 = x_243; +goto _start; +} +} +else +{ +lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; +lean_dec(x_217); +x_246 = lean_ctor_get(x_238, 0); +lean_inc(x_246); +x_247 = lean_ctor_get(x_238, 1); +lean_inc(x_247); +if (lean_is_exclusive(x_238)) { + lean_ctor_release(x_238, 0); + lean_ctor_release(x_238, 1); + x_248 = x_238; +} else { + lean_dec_ref(x_238); + 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; +} +} +else +{ +lean_object* x_250; lean_object* x_251; +x_250 = lean_ctor_get(x_234, 1); +lean_inc(x_250); +lean_dec(x_234); +x_251 = lean_box(0); +x_2 = x_251; +x_3 = x_217; +x_4 = x_250; +goto _start; +} +} +else +{ +lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; +lean_dec(x_217); +x_253 = lean_ctor_get(x_234, 0); +lean_inc(x_253); +x_254 = lean_ctor_get(x_234, 1); +lean_inc(x_254); +if (lean_is_exclusive(x_234)) { + lean_ctor_release(x_234, 0); + lean_ctor_release(x_234, 1); + x_255 = x_234; +} else { + lean_dec_ref(x_234); + x_255 = lean_box(0); +} +if (lean_is_scalar(x_255)) { + x_256 = lean_alloc_ctor(1, 2, 0); +} else { + x_256 = x_255; +} +lean_ctor_set(x_256, 0, x_253); +lean_ctor_set(x_256, 1, x_254); +return x_256; +} +} +else +{ +lean_object* x_257; lean_object* x_258; +lean_dec(x_224); +x_257 = lean_ctor_get(x_230, 1); +lean_inc(x_257); +lean_dec(x_230); +x_258 = lean_box(0); +x_2 = x_258; +x_3 = x_217; +x_4 = x_257; +goto _start; +} +} +else +{ +lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; +lean_dec(x_224); +lean_dec(x_217); +x_260 = lean_ctor_get(x_230, 0); +lean_inc(x_260); +x_261 = lean_ctor_get(x_230, 1); +lean_inc(x_261); +if (lean_is_exclusive(x_230)) { + lean_ctor_release(x_230, 0); + lean_ctor_release(x_230, 1); + x_262 = x_230; +} else { + lean_dec_ref(x_230); + x_262 = lean_box(0); +} +if (lean_is_scalar(x_262)) { + x_263 = lean_alloc_ctor(1, 2, 0); +} else { + x_263 = x_262; +} +lean_ctor_set(x_263, 0, x_260); +lean_ctor_set(x_263, 1, x_261); +return x_263; +} +} +else +{ +lean_object* x_264; lean_object* x_265; +lean_dec(x_224); +x_264 = lean_ctor_get(x_226, 1); +lean_inc(x_264); +lean_dec(x_226); +x_265 = lean_box(0); +x_2 = x_265; +x_3 = x_217; +x_4 = x_264; +goto _start; +} +} +else +{ +lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; +lean_dec(x_224); +lean_dec(x_217); +x_267 = lean_ctor_get(x_226, 0); +lean_inc(x_267); +x_268 = lean_ctor_get(x_226, 1); +lean_inc(x_268); +if (lean_is_exclusive(x_226)) { + lean_ctor_release(x_226, 0); + lean_ctor_release(x_226, 1); + x_269 = x_226; +} else { + lean_dec_ref(x_226); + x_269 = lean_box(0); +} +if (lean_is_scalar(x_269)) { + x_270 = lean_alloc_ctor(1, 2, 0); +} else { + x_270 = x_269; +} +lean_ctor_set(x_270, 0, x_267); +lean_ctor_set(x_270, 1, x_268); +return x_270; +} +} +else +{ +lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; +lean_dec(x_217); +lean_dec(x_216); +lean_dec(x_201); +lean_dec(x_200); +lean_dec(x_199); +lean_dec(x_198); +lean_dec(x_197); +lean_dec(x_196); +lean_dec(x_195); +lean_dec(x_194); +lean_dec(x_193); +lean_dec(x_6); +x_271 = lean_ctor_get(x_220, 1); +lean_inc(x_271); +if (lean_is_exclusive(x_220)) { + lean_ctor_release(x_220, 0); + lean_ctor_release(x_220, 1); + x_272 = x_220; +} else { + lean_dec_ref(x_220); + x_272 = lean_box(0); +} +x_273 = lean_box(0); +if (lean_is_scalar(x_272)) { + x_274 = lean_alloc_ctor(0, 2, 0); +} else { + x_274 = x_272; +} +lean_ctor_set(x_274, 0, x_273); +lean_ctor_set(x_274, 1, x_271); +return x_274; +} +} +else +{ +lean_object* x_275; lean_object* x_276; +lean_dec(x_216); +lean_dec(x_201); +lean_dec(x_200); +lean_dec(x_199); +lean_dec(x_198); +lean_dec(x_197); +lean_dec(x_196); +lean_dec(x_195); +lean_dec(x_194); +lean_dec(x_193); +lean_dec(x_6); +x_275 = lean_ctor_get(x_220, 1); +lean_inc(x_275); +lean_dec(x_220); +x_276 = lean_box(0); +x_2 = x_276; +x_3 = x_217; +x_4 = x_275; +goto _start; +} +} +else +{ +lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; +lean_dec(x_217); +lean_dec(x_216); +lean_dec(x_201); +lean_dec(x_200); +lean_dec(x_199); +lean_dec(x_198); +lean_dec(x_197); +lean_dec(x_196); +lean_dec(x_195); +lean_dec(x_194); +lean_dec(x_193); +lean_dec(x_6); +x_278 = lean_ctor_get(x_220, 0); +lean_inc(x_278); +x_279 = lean_ctor_get(x_220, 1); +lean_inc(x_279); +if (lean_is_exclusive(x_220)) { + lean_ctor_release(x_220, 0); + lean_ctor_release(x_220, 1); + x_280 = x_220; +} else { + lean_dec_ref(x_220); + x_280 = lean_box(0); +} +if (lean_is_scalar(x_280)) { + x_281 = lean_alloc_ctor(1, 2, 0); +} else { + x_281 = x_280; +} +lean_ctor_set(x_281, 0, x_278); +lean_ctor_set(x_281, 1, x_279); +return x_281; } } } @@ -5279,560 +6660,684 @@ x_5 = l_Lean_Elab_Term_synthesizeSyntheticMVars(x_4, x_2, x_3); return x_5; } } -lean_object* l_Lean_Elab_Term_elabTermAndSynthesize(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Term_withSynthesize___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -uint8_t x_5; -x_5 = !lean_is_exclusive(x_4); -if (x_5 == 0) +uint8_t x_4; +x_4 = !lean_is_exclusive(x_3); +if (x_4 == 0) { -lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; -x_6 = lean_ctor_get(x_4, 1); -x_7 = lean_box(0); -lean_ctor_set(x_4, 1, x_7); -x_8 = 1; -lean_inc(x_3); -lean_inc(x_1); -x_9 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_8, x_8, x_1, x_3, x_4); -if (lean_obj_tag(x_9) == 0) +lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_5 = lean_ctor_get(x_3, 1); +x_6 = lean_box(0); +lean_ctor_set(x_3, 1, x_6); +lean_inc(x_2); +x_7 = lean_apply_2(x_1, x_2, x_3); +if (lean_obj_tag(x_7) == 0) { -lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14; -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_9, 1); -lean_inc(x_11); -lean_dec(x_9); -x_12 = 0; -x_13 = lean_box(0); -lean_inc(x_3); -x_14 = l___private_Lean_Elab_SyntheticMVars_11__synthesizeSyntheticMVarsAux___main(x_12, x_13, x_3, x_11); -if (lean_obj_tag(x_14) == 0) +lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; lean_object* x_12; +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 = 0; +x_11 = lean_box(0); +x_12 = l___private_Lean_Elab_SyntheticMVars_11__synthesizeSyntheticMVarsAux___main(x_10, x_11, x_2, x_9); +if (lean_obj_tag(x_12) == 0) { -lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_15 = lean_ctor_get(x_14, 1); -lean_inc(x_15); -lean_dec(x_14); -x_16 = l_Lean_Elab_Term_instantiateMVars(x_1, x_10, x_3, x_15); -lean_dec(x_1); -x_17 = !lean_is_exclusive(x_16); -if (x_17 == 0) +uint8_t x_13; +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) { -lean_object* x_18; uint8_t x_19; -x_18 = lean_ctor_get(x_16, 1); -x_19 = !lean_is_exclusive(x_18); -if (x_19 == 0) +lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_14 = lean_ctor_get(x_12, 1); +x_15 = lean_ctor_get(x_12, 0); +lean_dec(x_15); +x_16 = !lean_is_exclusive(x_14); +if (x_16 == 0) { -lean_object* x_20; lean_object* x_21; -x_20 = lean_ctor_get(x_18, 1); -x_21 = l_List_append___rarg(x_20, x_6); -lean_ctor_set(x_18, 1, x_21); -return x_16; +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_14, 1); +x_18 = l_List_append___rarg(x_17, x_5); +lean_ctor_set(x_14, 1, x_18); +lean_ctor_set(x_12, 0, x_8); +return x_12; } else { -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_22 = lean_ctor_get(x_18, 0); -x_23 = lean_ctor_get(x_18, 1); -x_24 = lean_ctor_get(x_18, 2); -x_25 = lean_ctor_get(x_18, 3); -x_26 = lean_ctor_get(x_18, 4); -x_27 = lean_ctor_get(x_18, 5); +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; +x_19 = lean_ctor_get(x_14, 0); +x_20 = lean_ctor_get(x_14, 1); +x_21 = lean_ctor_get(x_14, 2); +x_22 = lean_ctor_get(x_14, 3); +x_23 = lean_ctor_get(x_14, 4); +x_24 = lean_ctor_get(x_14, 5); +lean_inc(x_24); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_14); +x_25 = l_List_append___rarg(x_20, x_5); +x_26 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_26, 0, x_19); +lean_ctor_set(x_26, 1, x_25); +lean_ctor_set(x_26, 2, x_21); +lean_ctor_set(x_26, 3, x_22); +lean_ctor_set(x_26, 4, x_23); +lean_ctor_set(x_26, 5, x_24); +lean_ctor_set(x_12, 1, x_26); +lean_ctor_set(x_12, 0, x_8); +return x_12; +} +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_27 = lean_ctor_get(x_12, 1); +lean_inc(x_27); +lean_dec(x_12); +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); +x_30 = lean_ctor_get(x_27, 2); +lean_inc(x_30); +x_31 = lean_ctor_get(x_27, 3); +lean_inc(x_31); +x_32 = lean_ctor_get(x_27, 4); +lean_inc(x_32); +x_33 = lean_ctor_get(x_27, 5); +lean_inc(x_33); +if (lean_is_exclusive(x_27)) { + lean_ctor_release(x_27, 0); + lean_ctor_release(x_27, 1); + lean_ctor_release(x_27, 2); + lean_ctor_release(x_27, 3); + lean_ctor_release(x_27, 4); + lean_ctor_release(x_27, 5); + x_34 = x_27; +} else { + lean_dec_ref(x_27); + x_34 = lean_box(0); +} +x_35 = l_List_append___rarg(x_29, x_5); +if (lean_is_scalar(x_34)) { + x_36 = lean_alloc_ctor(0, 6, 0); +} else { + x_36 = x_34; +} +lean_ctor_set(x_36, 0, x_28); +lean_ctor_set(x_36, 1, x_35); +lean_ctor_set(x_36, 2, x_30); +lean_ctor_set(x_36, 3, x_31); +lean_ctor_set(x_36, 4, x_32); +lean_ctor_set(x_36, 5, x_33); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_8); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +else +{ +uint8_t x_38; +lean_dec(x_8); +x_38 = !lean_is_exclusive(x_12); +if (x_38 == 0) +{ +lean_object* x_39; uint8_t x_40; +x_39 = lean_ctor_get(x_12, 1); +x_40 = !lean_is_exclusive(x_39); +if (x_40 == 0) +{ +lean_object* x_41; lean_object* x_42; +x_41 = lean_ctor_get(x_39, 1); +x_42 = l_List_append___rarg(x_41, x_5); +lean_ctor_set(x_39, 1, x_42); +return x_12; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_43 = lean_ctor_get(x_39, 0); +x_44 = lean_ctor_get(x_39, 1); +x_45 = lean_ctor_get(x_39, 2); +x_46 = lean_ctor_get(x_39, 3); +x_47 = lean_ctor_get(x_39, 4); +x_48 = lean_ctor_get(x_39, 5); +lean_inc(x_48); +lean_inc(x_47); +lean_inc(x_46); +lean_inc(x_45); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_39); +x_49 = l_List_append___rarg(x_44, x_5); +x_50 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_50, 0, x_43); +lean_ctor_set(x_50, 1, x_49); +lean_ctor_set(x_50, 2, x_45); +lean_ctor_set(x_50, 3, x_46); +lean_ctor_set(x_50, 4, x_47); +lean_ctor_set(x_50, 5, x_48); +lean_ctor_set(x_12, 1, x_50); +return x_12; +} +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_51 = lean_ctor_get(x_12, 1); +x_52 = lean_ctor_get(x_12, 0); +lean_inc(x_51); +lean_inc(x_52); +lean_dec(x_12); +x_53 = lean_ctor_get(x_51, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_51, 1); +lean_inc(x_54); +x_55 = lean_ctor_get(x_51, 2); +lean_inc(x_55); +x_56 = lean_ctor_get(x_51, 3); +lean_inc(x_56); +x_57 = lean_ctor_get(x_51, 4); +lean_inc(x_57); +x_58 = lean_ctor_get(x_51, 5); +lean_inc(x_58); +if (lean_is_exclusive(x_51)) { + lean_ctor_release(x_51, 0); + lean_ctor_release(x_51, 1); + lean_ctor_release(x_51, 2); + lean_ctor_release(x_51, 3); + lean_ctor_release(x_51, 4); + lean_ctor_release(x_51, 5); + x_59 = x_51; +} else { + lean_dec_ref(x_51); + x_59 = lean_box(0); +} +x_60 = l_List_append___rarg(x_54, x_5); +if (lean_is_scalar(x_59)) { + x_61 = lean_alloc_ctor(0, 6, 0); +} else { + x_61 = x_59; +} +lean_ctor_set(x_61, 0, x_53); +lean_ctor_set(x_61, 1, x_60); +lean_ctor_set(x_61, 2, x_55); +lean_ctor_set(x_61, 3, x_56); +lean_ctor_set(x_61, 4, x_57); +lean_ctor_set(x_61, 5, x_58); +x_62 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_62, 0, x_52); +lean_ctor_set(x_62, 1, x_61); +return x_62; +} +} +} +else +{ +uint8_t x_63; +lean_dec(x_2); +x_63 = !lean_is_exclusive(x_7); +if (x_63 == 0) +{ +lean_object* x_64; uint8_t x_65; +x_64 = lean_ctor_get(x_7, 1); +x_65 = !lean_is_exclusive(x_64); +if (x_65 == 0) +{ +lean_object* x_66; lean_object* x_67; +x_66 = lean_ctor_get(x_64, 1); +x_67 = l_List_append___rarg(x_66, x_5); +lean_ctor_set(x_64, 1, x_67); +return x_7; +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_68 = lean_ctor_get(x_64, 0); +x_69 = lean_ctor_get(x_64, 1); +x_70 = lean_ctor_get(x_64, 2); +x_71 = lean_ctor_get(x_64, 3); +x_72 = lean_ctor_get(x_64, 4); +x_73 = lean_ctor_get(x_64, 5); +lean_inc(x_73); +lean_inc(x_72); +lean_inc(x_71); +lean_inc(x_70); +lean_inc(x_69); +lean_inc(x_68); +lean_dec(x_64); +x_74 = l_List_append___rarg(x_69, x_5); +x_75 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_75, 0, x_68); +lean_ctor_set(x_75, 1, x_74); +lean_ctor_set(x_75, 2, x_70); +lean_ctor_set(x_75, 3, x_71); +lean_ctor_set(x_75, 4, x_72); +lean_ctor_set(x_75, 5, x_73); +lean_ctor_set(x_7, 1, x_75); +return x_7; +} +} +else +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_76 = lean_ctor_get(x_7, 1); +x_77 = lean_ctor_get(x_7, 0); +lean_inc(x_76); +lean_inc(x_77); +lean_dec(x_7); +x_78 = lean_ctor_get(x_76, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_76, 1); +lean_inc(x_79); +x_80 = lean_ctor_get(x_76, 2); +lean_inc(x_80); +x_81 = lean_ctor_get(x_76, 3); +lean_inc(x_81); +x_82 = lean_ctor_get(x_76, 4); +lean_inc(x_82); +x_83 = lean_ctor_get(x_76, 5); +lean_inc(x_83); +if (lean_is_exclusive(x_76)) { + lean_ctor_release(x_76, 0); + lean_ctor_release(x_76, 1); + lean_ctor_release(x_76, 2); + lean_ctor_release(x_76, 3); + lean_ctor_release(x_76, 4); + lean_ctor_release(x_76, 5); + x_84 = x_76; +} else { + lean_dec_ref(x_76); + x_84 = lean_box(0); +} +x_85 = l_List_append___rarg(x_79, x_5); +if (lean_is_scalar(x_84)) { + x_86 = lean_alloc_ctor(0, 6, 0); +} else { + x_86 = x_84; +} +lean_ctor_set(x_86, 0, x_78); +lean_ctor_set(x_86, 1, x_85); +lean_ctor_set(x_86, 2, x_80); +lean_ctor_set(x_86, 3, x_81); +lean_ctor_set(x_86, 4, x_82); +lean_ctor_set(x_86, 5, x_83); +x_87 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_87, 0, x_77); +lean_ctor_set(x_87, 1, x_86); +return x_87; +} +} +} +else +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_88 = lean_ctor_get(x_3, 0); +x_89 = lean_ctor_get(x_3, 1); +x_90 = lean_ctor_get(x_3, 2); +x_91 = lean_ctor_get(x_3, 3); +x_92 = lean_ctor_get(x_3, 4); +x_93 = lean_ctor_get(x_3, 5); +lean_inc(x_93); +lean_inc(x_92); +lean_inc(x_91); +lean_inc(x_90); +lean_inc(x_89); +lean_inc(x_88); +lean_dec(x_3); +x_94 = lean_box(0); +x_95 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_95, 0, x_88); +lean_ctor_set(x_95, 1, x_94); +lean_ctor_set(x_95, 2, x_90); +lean_ctor_set(x_95, 3, x_91); +lean_ctor_set(x_95, 4, x_92); +lean_ctor_set(x_95, 5, x_93); +lean_inc(x_2); +x_96 = lean_apply_2(x_1, x_2, x_95); +if (lean_obj_tag(x_96) == 0) +{ +lean_object* x_97; lean_object* x_98; uint8_t x_99; lean_object* x_100; lean_object* x_101; +x_97 = lean_ctor_get(x_96, 0); +lean_inc(x_97); +x_98 = lean_ctor_get(x_96, 1); +lean_inc(x_98); +lean_dec(x_96); +x_99 = 0; +x_100 = lean_box(0); +x_101 = l___private_Lean_Elab_SyntheticMVars_11__synthesizeSyntheticMVarsAux___main(x_99, x_100, x_2, x_98); +if (lean_obj_tag(x_101) == 0) +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; +x_102 = lean_ctor_get(x_101, 1); +lean_inc(x_102); +if (lean_is_exclusive(x_101)) { + lean_ctor_release(x_101, 0); + lean_ctor_release(x_101, 1); + x_103 = x_101; +} else { + lean_dec_ref(x_101); + x_103 = lean_box(0); +} +x_104 = lean_ctor_get(x_102, 0); +lean_inc(x_104); +x_105 = lean_ctor_get(x_102, 1); +lean_inc(x_105); +x_106 = lean_ctor_get(x_102, 2); +lean_inc(x_106); +x_107 = lean_ctor_get(x_102, 3); +lean_inc(x_107); +x_108 = lean_ctor_get(x_102, 4); +lean_inc(x_108); +x_109 = lean_ctor_get(x_102, 5); +lean_inc(x_109); +if (lean_is_exclusive(x_102)) { + lean_ctor_release(x_102, 0); + lean_ctor_release(x_102, 1); + lean_ctor_release(x_102, 2); + lean_ctor_release(x_102, 3); + lean_ctor_release(x_102, 4); + lean_ctor_release(x_102, 5); + x_110 = x_102; +} else { + lean_dec_ref(x_102); + x_110 = lean_box(0); +} +x_111 = l_List_append___rarg(x_105, x_89); +if (lean_is_scalar(x_110)) { + x_112 = lean_alloc_ctor(0, 6, 0); +} else { + x_112 = x_110; +} +lean_ctor_set(x_112, 0, x_104); +lean_ctor_set(x_112, 1, x_111); +lean_ctor_set(x_112, 2, x_106); +lean_ctor_set(x_112, 3, x_107); +lean_ctor_set(x_112, 4, x_108); +lean_ctor_set(x_112, 5, x_109); +if (lean_is_scalar(x_103)) { + x_113 = lean_alloc_ctor(0, 2, 0); +} else { + x_113 = x_103; +} +lean_ctor_set(x_113, 0, x_97); +lean_ctor_set(x_113, 1, x_112); +return x_113; +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; +lean_dec(x_97); +x_114 = lean_ctor_get(x_101, 1); +lean_inc(x_114); +x_115 = lean_ctor_get(x_101, 0); +lean_inc(x_115); +if (lean_is_exclusive(x_101)) { + lean_ctor_release(x_101, 0); + lean_ctor_release(x_101, 1); + x_116 = x_101; +} else { + lean_dec_ref(x_101); + x_116 = lean_box(0); +} +x_117 = lean_ctor_get(x_114, 0); +lean_inc(x_117); +x_118 = lean_ctor_get(x_114, 1); +lean_inc(x_118); +x_119 = lean_ctor_get(x_114, 2); +lean_inc(x_119); +x_120 = lean_ctor_get(x_114, 3); +lean_inc(x_120); +x_121 = lean_ctor_get(x_114, 4); +lean_inc(x_121); +x_122 = lean_ctor_get(x_114, 5); +lean_inc(x_122); +if (lean_is_exclusive(x_114)) { + lean_ctor_release(x_114, 0); + lean_ctor_release(x_114, 1); + lean_ctor_release(x_114, 2); + lean_ctor_release(x_114, 3); + lean_ctor_release(x_114, 4); + lean_ctor_release(x_114, 5); + x_123 = x_114; +} else { + lean_dec_ref(x_114); + x_123 = lean_box(0); +} +x_124 = l_List_append___rarg(x_118, x_89); +if (lean_is_scalar(x_123)) { + x_125 = lean_alloc_ctor(0, 6, 0); +} else { + x_125 = x_123; +} +lean_ctor_set(x_125, 0, x_117); +lean_ctor_set(x_125, 1, x_124); +lean_ctor_set(x_125, 2, x_119); +lean_ctor_set(x_125, 3, x_120); +lean_ctor_set(x_125, 4, x_121); +lean_ctor_set(x_125, 5, x_122); +if (lean_is_scalar(x_116)) { + x_126 = lean_alloc_ctor(1, 2, 0); +} else { + x_126 = x_116; +} +lean_ctor_set(x_126, 0, x_115); +lean_ctor_set(x_126, 1, x_125); +return x_126; +} +} +else +{ +lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; +lean_dec(x_2); +x_127 = lean_ctor_get(x_96, 1); +lean_inc(x_127); +x_128 = lean_ctor_get(x_96, 0); +lean_inc(x_128); +if (lean_is_exclusive(x_96)) { + lean_ctor_release(x_96, 0); + lean_ctor_release(x_96, 1); + x_129 = x_96; +} else { + lean_dec_ref(x_96); + x_129 = lean_box(0); +} +x_130 = lean_ctor_get(x_127, 0); +lean_inc(x_130); +x_131 = lean_ctor_get(x_127, 1); +lean_inc(x_131); +x_132 = lean_ctor_get(x_127, 2); +lean_inc(x_132); +x_133 = lean_ctor_get(x_127, 3); +lean_inc(x_133); +x_134 = lean_ctor_get(x_127, 4); +lean_inc(x_134); +x_135 = lean_ctor_get(x_127, 5); +lean_inc(x_135); +if (lean_is_exclusive(x_127)) { + lean_ctor_release(x_127, 0); + lean_ctor_release(x_127, 1); + lean_ctor_release(x_127, 2); + lean_ctor_release(x_127, 3); + lean_ctor_release(x_127, 4); + lean_ctor_release(x_127, 5); + x_136 = x_127; +} else { + lean_dec_ref(x_127); + x_136 = lean_box(0); +} +x_137 = l_List_append___rarg(x_131, x_89); +if (lean_is_scalar(x_136)) { + x_138 = lean_alloc_ctor(0, 6, 0); +} else { + x_138 = x_136; +} +lean_ctor_set(x_138, 0, x_130); +lean_ctor_set(x_138, 1, x_137); +lean_ctor_set(x_138, 2, x_132); +lean_ctor_set(x_138, 3, x_133); +lean_ctor_set(x_138, 4, x_134); +lean_ctor_set(x_138, 5, x_135); +if (lean_is_scalar(x_129)) { + x_139 = lean_alloc_ctor(1, 2, 0); +} else { + x_139 = x_129; +} +lean_ctor_set(x_139, 0, x_128); +lean_ctor_set(x_139, 1, x_138); +return x_139; +} +} +} +} +lean_object* l_Lean_Elab_Term_withSynthesize(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withSynthesize___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_elabTermAndSynthesize(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_5 = 1; +x_6 = lean_box(x_5); +lean_inc(x_1); +x_7 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTerm___boxed), 5, 3); +lean_closure_set(x_7, 0, x_1); +lean_closure_set(x_7, 1, x_2); +lean_closure_set(x_7, 2, x_6); +x_8 = !lean_is_exclusive(x_3); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_ctor_get(x_3, 10); +lean_dec(x_9); +lean_ctor_set(x_3, 10, x_1); +lean_inc(x_3); +x_10 = l_Lean_Elab_Term_withSynthesize___rarg(x_7, x_3, x_4); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +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_Elab_Term_instantiateMVars(x_11, x_3, x_12); +return x_13; +} +else +{ +uint8_t x_14; +lean_dec(x_3); +x_14 = !lean_is_exclusive(x_10); +if (x_14 == 0) +{ +return x_10; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_10, 0); +x_16 = lean_ctor_get(x_10, 1); +lean_inc(x_16); +lean_inc(x_15); +lean_dec(x_10); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +} +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; +x_18 = lean_ctor_get(x_3, 0); +x_19 = lean_ctor_get(x_3, 1); +x_20 = lean_ctor_get(x_3, 2); +x_21 = lean_ctor_get(x_3, 3); +x_22 = lean_ctor_get(x_3, 4); +x_23 = lean_ctor_get(x_3, 5); +x_24 = lean_ctor_get(x_3, 6); +x_25 = lean_ctor_get(x_3, 7); +x_26 = lean_ctor_get(x_3, 8); +x_27 = lean_ctor_get(x_3, 9); +x_28 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_29 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_30 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); lean_inc(x_27); lean_inc(x_26); lean_inc(x_25); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); -lean_dec(x_18); -x_28 = l_List_append___rarg(x_23, x_6); -x_29 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_29, 0, x_22); -lean_ctor_set(x_29, 1, x_28); -lean_ctor_set(x_29, 2, x_24); -lean_ctor_set(x_29, 3, x_25); -lean_ctor_set(x_29, 4, x_26); -lean_ctor_set(x_29, 5, x_27); -lean_ctor_set(x_16, 1, x_29); -return x_16; -} +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_3); +x_31 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_31, 0, x_18); +lean_ctor_set(x_31, 1, x_19); +lean_ctor_set(x_31, 2, x_20); +lean_ctor_set(x_31, 3, x_21); +lean_ctor_set(x_31, 4, x_22); +lean_ctor_set(x_31, 5, x_23); +lean_ctor_set(x_31, 6, x_24); +lean_ctor_set(x_31, 7, x_25); +lean_ctor_set(x_31, 8, x_26); +lean_ctor_set(x_31, 9, x_27); +lean_ctor_set(x_31, 10, x_1); +lean_ctor_set_uint8(x_31, sizeof(void*)*11, x_28); +lean_ctor_set_uint8(x_31, sizeof(void*)*11 + 1, x_29); +lean_ctor_set_uint8(x_31, sizeof(void*)*11 + 2, x_30); +lean_inc(x_31); +x_32 = l_Lean_Elab_Term_withSynthesize___rarg(x_7, x_31, x_4); +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_32, 1); +lean_inc(x_34); +lean_dec(x_32); +x_35 = l_Lean_Elab_Term_instantiateMVars(x_33, x_31, x_34); +return x_35; } else { -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_30 = lean_ctor_get(x_16, 1); -x_31 = lean_ctor_get(x_16, 0); -lean_inc(x_30); -lean_inc(x_31); -lean_dec(x_16); -x_32 = lean_ctor_get(x_30, 0); -lean_inc(x_32); -x_33 = lean_ctor_get(x_30, 1); -lean_inc(x_33); -x_34 = lean_ctor_get(x_30, 2); -lean_inc(x_34); -x_35 = lean_ctor_get(x_30, 3); -lean_inc(x_35); -x_36 = lean_ctor_get(x_30, 4); +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +lean_dec(x_31); +x_36 = lean_ctor_get(x_32, 0); lean_inc(x_36); -x_37 = lean_ctor_get(x_30, 5); +x_37 = lean_ctor_get(x_32, 1); lean_inc(x_37); -if (lean_is_exclusive(x_30)) { - lean_ctor_release(x_30, 0); - lean_ctor_release(x_30, 1); - lean_ctor_release(x_30, 2); - lean_ctor_release(x_30, 3); - lean_ctor_release(x_30, 4); - lean_ctor_release(x_30, 5); - x_38 = x_30; +if (lean_is_exclusive(x_32)) { + lean_ctor_release(x_32, 0); + lean_ctor_release(x_32, 1); + x_38 = x_32; } else { - lean_dec_ref(x_30); + lean_dec_ref(x_32); x_38 = lean_box(0); } -x_39 = l_List_append___rarg(x_33, x_6); if (lean_is_scalar(x_38)) { - x_40 = lean_alloc_ctor(0, 6, 0); + x_39 = lean_alloc_ctor(1, 2, 0); } else { - x_40 = x_38; + x_39 = x_38; } -lean_ctor_set(x_40, 0, x_32); -lean_ctor_set(x_40, 1, x_39); -lean_ctor_set(x_40, 2, x_34); -lean_ctor_set(x_40, 3, x_35); -lean_ctor_set(x_40, 4, x_36); -lean_ctor_set(x_40, 5, x_37); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_31); -lean_ctor_set(x_41, 1, x_40); -return x_41; -} -} -else -{ -uint8_t x_42; -lean_dec(x_10); -lean_dec(x_3); -lean_dec(x_1); -x_42 = !lean_is_exclusive(x_14); -if (x_42 == 0) -{ -lean_object* x_43; uint8_t x_44; -x_43 = lean_ctor_get(x_14, 1); -x_44 = !lean_is_exclusive(x_43); -if (x_44 == 0) -{ -lean_object* x_45; lean_object* x_46; -x_45 = lean_ctor_get(x_43, 1); -x_46 = l_List_append___rarg(x_45, x_6); -lean_ctor_set(x_43, 1, x_46); -return x_14; -} -else -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_47 = lean_ctor_get(x_43, 0); -x_48 = lean_ctor_get(x_43, 1); -x_49 = lean_ctor_get(x_43, 2); -x_50 = lean_ctor_get(x_43, 3); -x_51 = lean_ctor_get(x_43, 4); -x_52 = lean_ctor_get(x_43, 5); -lean_inc(x_52); -lean_inc(x_51); -lean_inc(x_50); -lean_inc(x_49); -lean_inc(x_48); -lean_inc(x_47); -lean_dec(x_43); -x_53 = l_List_append___rarg(x_48, x_6); -x_54 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_54, 0, x_47); -lean_ctor_set(x_54, 1, x_53); -lean_ctor_set(x_54, 2, x_49); -lean_ctor_set(x_54, 3, x_50); -lean_ctor_set(x_54, 4, x_51); -lean_ctor_set(x_54, 5, x_52); -lean_ctor_set(x_14, 1, x_54); -return x_14; -} -} -else -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_55 = lean_ctor_get(x_14, 1); -x_56 = lean_ctor_get(x_14, 0); -lean_inc(x_55); -lean_inc(x_56); -lean_dec(x_14); -x_57 = lean_ctor_get(x_55, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_55, 1); -lean_inc(x_58); -x_59 = lean_ctor_get(x_55, 2); -lean_inc(x_59); -x_60 = lean_ctor_get(x_55, 3); -lean_inc(x_60); -x_61 = lean_ctor_get(x_55, 4); -lean_inc(x_61); -x_62 = lean_ctor_get(x_55, 5); -lean_inc(x_62); -if (lean_is_exclusive(x_55)) { - lean_ctor_release(x_55, 0); - lean_ctor_release(x_55, 1); - lean_ctor_release(x_55, 2); - lean_ctor_release(x_55, 3); - lean_ctor_release(x_55, 4); - lean_ctor_release(x_55, 5); - x_63 = x_55; -} else { - lean_dec_ref(x_55); - x_63 = lean_box(0); -} -x_64 = l_List_append___rarg(x_58, x_6); -if (lean_is_scalar(x_63)) { - x_65 = lean_alloc_ctor(0, 6, 0); -} else { - x_65 = x_63; -} -lean_ctor_set(x_65, 0, x_57); -lean_ctor_set(x_65, 1, x_64); -lean_ctor_set(x_65, 2, x_59); -lean_ctor_set(x_65, 3, x_60); -lean_ctor_set(x_65, 4, x_61); -lean_ctor_set(x_65, 5, x_62); -x_66 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_66, 0, x_56); -lean_ctor_set(x_66, 1, x_65); -return x_66; -} -} -} -else -{ -uint8_t x_67; -lean_dec(x_3); -lean_dec(x_1); -x_67 = !lean_is_exclusive(x_9); -if (x_67 == 0) -{ -lean_object* x_68; uint8_t x_69; -x_68 = lean_ctor_get(x_9, 1); -x_69 = !lean_is_exclusive(x_68); -if (x_69 == 0) -{ -lean_object* x_70; lean_object* x_71; -x_70 = lean_ctor_get(x_68, 1); -x_71 = l_List_append___rarg(x_70, x_6); -lean_ctor_set(x_68, 1, x_71); -return x_9; -} -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_68, 0); -x_73 = lean_ctor_get(x_68, 1); -x_74 = lean_ctor_get(x_68, 2); -x_75 = lean_ctor_get(x_68, 3); -x_76 = lean_ctor_get(x_68, 4); -x_77 = lean_ctor_get(x_68, 5); -lean_inc(x_77); -lean_inc(x_76); -lean_inc(x_75); -lean_inc(x_74); -lean_inc(x_73); -lean_inc(x_72); -lean_dec(x_68); -x_78 = l_List_append___rarg(x_73, x_6); -x_79 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_79, 0, x_72); -lean_ctor_set(x_79, 1, x_78); -lean_ctor_set(x_79, 2, x_74); -lean_ctor_set(x_79, 3, x_75); -lean_ctor_set(x_79, 4, x_76); -lean_ctor_set(x_79, 5, x_77); -lean_ctor_set(x_9, 1, x_79); -return x_9; -} -} -else -{ -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_80 = lean_ctor_get(x_9, 1); -x_81 = lean_ctor_get(x_9, 0); -lean_inc(x_80); -lean_inc(x_81); -lean_dec(x_9); -x_82 = lean_ctor_get(x_80, 0); -lean_inc(x_82); -x_83 = lean_ctor_get(x_80, 1); -lean_inc(x_83); -x_84 = lean_ctor_get(x_80, 2); -lean_inc(x_84); -x_85 = lean_ctor_get(x_80, 3); -lean_inc(x_85); -x_86 = lean_ctor_get(x_80, 4); -lean_inc(x_86); -x_87 = lean_ctor_get(x_80, 5); -lean_inc(x_87); -if (lean_is_exclusive(x_80)) { - lean_ctor_release(x_80, 0); - lean_ctor_release(x_80, 1); - lean_ctor_release(x_80, 2); - lean_ctor_release(x_80, 3); - lean_ctor_release(x_80, 4); - lean_ctor_release(x_80, 5); - x_88 = x_80; -} else { - lean_dec_ref(x_80); - x_88 = lean_box(0); -} -x_89 = l_List_append___rarg(x_83, x_6); -if (lean_is_scalar(x_88)) { - x_90 = lean_alloc_ctor(0, 6, 0); -} else { - x_90 = x_88; -} -lean_ctor_set(x_90, 0, x_82); -lean_ctor_set(x_90, 1, x_89); -lean_ctor_set(x_90, 2, x_84); -lean_ctor_set(x_90, 3, x_85); -lean_ctor_set(x_90, 4, x_86); -lean_ctor_set(x_90, 5, x_87); -x_91 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_91, 0, x_81); -lean_ctor_set(x_91, 1, x_90); -return x_91; -} -} -} -else -{ -lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; uint8_t x_100; lean_object* x_101; -x_92 = lean_ctor_get(x_4, 0); -x_93 = lean_ctor_get(x_4, 1); -x_94 = lean_ctor_get(x_4, 2); -x_95 = lean_ctor_get(x_4, 3); -x_96 = lean_ctor_get(x_4, 4); -x_97 = lean_ctor_get(x_4, 5); -lean_inc(x_97); -lean_inc(x_96); -lean_inc(x_95); -lean_inc(x_94); -lean_inc(x_93); -lean_inc(x_92); -lean_dec(x_4); -x_98 = lean_box(0); -x_99 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_99, 0, x_92); -lean_ctor_set(x_99, 1, x_98); -lean_ctor_set(x_99, 2, x_94); -lean_ctor_set(x_99, 3, x_95); -lean_ctor_set(x_99, 4, x_96); -lean_ctor_set(x_99, 5, x_97); -x_100 = 1; -lean_inc(x_3); -lean_inc(x_1); -x_101 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_100, x_100, x_1, x_3, x_99); -if (lean_obj_tag(x_101) == 0) -{ -lean_object* x_102; lean_object* x_103; uint8_t x_104; lean_object* x_105; lean_object* x_106; -x_102 = lean_ctor_get(x_101, 0); -lean_inc(x_102); -x_103 = lean_ctor_get(x_101, 1); -lean_inc(x_103); -lean_dec(x_101); -x_104 = 0; -x_105 = lean_box(0); -lean_inc(x_3); -x_106 = l___private_Lean_Elab_SyntheticMVars_11__synthesizeSyntheticMVarsAux___main(x_104, x_105, x_3, x_103); -if (lean_obj_tag(x_106) == 0) -{ -lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; -x_107 = lean_ctor_get(x_106, 1); -lean_inc(x_107); -lean_dec(x_106); -x_108 = l_Lean_Elab_Term_instantiateMVars(x_1, x_102, x_3, x_107); -lean_dec(x_1); -x_109 = lean_ctor_get(x_108, 1); -lean_inc(x_109); -x_110 = lean_ctor_get(x_108, 0); -lean_inc(x_110); -if (lean_is_exclusive(x_108)) { - lean_ctor_release(x_108, 0); - lean_ctor_release(x_108, 1); - x_111 = x_108; -} else { - lean_dec_ref(x_108); - x_111 = lean_box(0); -} -x_112 = lean_ctor_get(x_109, 0); -lean_inc(x_112); -x_113 = lean_ctor_get(x_109, 1); -lean_inc(x_113); -x_114 = lean_ctor_get(x_109, 2); -lean_inc(x_114); -x_115 = lean_ctor_get(x_109, 3); -lean_inc(x_115); -x_116 = lean_ctor_get(x_109, 4); -lean_inc(x_116); -x_117 = lean_ctor_get(x_109, 5); -lean_inc(x_117); -if (lean_is_exclusive(x_109)) { - lean_ctor_release(x_109, 0); - lean_ctor_release(x_109, 1); - lean_ctor_release(x_109, 2); - lean_ctor_release(x_109, 3); - lean_ctor_release(x_109, 4); - lean_ctor_release(x_109, 5); - x_118 = x_109; -} else { - lean_dec_ref(x_109); - x_118 = lean_box(0); -} -x_119 = l_List_append___rarg(x_113, x_93); -if (lean_is_scalar(x_118)) { - x_120 = lean_alloc_ctor(0, 6, 0); -} else { - x_120 = x_118; -} -lean_ctor_set(x_120, 0, x_112); -lean_ctor_set(x_120, 1, x_119); -lean_ctor_set(x_120, 2, x_114); -lean_ctor_set(x_120, 3, x_115); -lean_ctor_set(x_120, 4, x_116); -lean_ctor_set(x_120, 5, x_117); -if (lean_is_scalar(x_111)) { - x_121 = lean_alloc_ctor(0, 2, 0); -} else { - x_121 = x_111; -} -lean_ctor_set(x_121, 0, x_110); -lean_ctor_set(x_121, 1, x_120); -return x_121; -} -else -{ -lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; -lean_dec(x_102); -lean_dec(x_3); -lean_dec(x_1); -x_122 = lean_ctor_get(x_106, 1); -lean_inc(x_122); -x_123 = lean_ctor_get(x_106, 0); -lean_inc(x_123); -if (lean_is_exclusive(x_106)) { - lean_ctor_release(x_106, 0); - lean_ctor_release(x_106, 1); - x_124 = x_106; -} else { - lean_dec_ref(x_106); - x_124 = lean_box(0); -} -x_125 = lean_ctor_get(x_122, 0); -lean_inc(x_125); -x_126 = lean_ctor_get(x_122, 1); -lean_inc(x_126); -x_127 = lean_ctor_get(x_122, 2); -lean_inc(x_127); -x_128 = lean_ctor_get(x_122, 3); -lean_inc(x_128); -x_129 = lean_ctor_get(x_122, 4); -lean_inc(x_129); -x_130 = lean_ctor_get(x_122, 5); -lean_inc(x_130); -if (lean_is_exclusive(x_122)) { - lean_ctor_release(x_122, 0); - lean_ctor_release(x_122, 1); - lean_ctor_release(x_122, 2); - lean_ctor_release(x_122, 3); - lean_ctor_release(x_122, 4); - lean_ctor_release(x_122, 5); - x_131 = x_122; -} else { - lean_dec_ref(x_122); - x_131 = lean_box(0); -} -x_132 = l_List_append___rarg(x_126, x_93); -if (lean_is_scalar(x_131)) { - x_133 = lean_alloc_ctor(0, 6, 0); -} else { - x_133 = x_131; -} -lean_ctor_set(x_133, 0, x_125); -lean_ctor_set(x_133, 1, x_132); -lean_ctor_set(x_133, 2, x_127); -lean_ctor_set(x_133, 3, x_128); -lean_ctor_set(x_133, 4, x_129); -lean_ctor_set(x_133, 5, x_130); -if (lean_is_scalar(x_124)) { - x_134 = lean_alloc_ctor(1, 2, 0); -} else { - x_134 = x_124; -} -lean_ctor_set(x_134, 0, x_123); -lean_ctor_set(x_134, 1, x_133); -return x_134; -} -} -else -{ -lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; -lean_dec(x_3); -lean_dec(x_1); -x_135 = lean_ctor_get(x_101, 1); -lean_inc(x_135); -x_136 = lean_ctor_get(x_101, 0); -lean_inc(x_136); -if (lean_is_exclusive(x_101)) { - lean_ctor_release(x_101, 0); - lean_ctor_release(x_101, 1); - x_137 = x_101; -} else { - lean_dec_ref(x_101); - x_137 = lean_box(0); -} -x_138 = lean_ctor_get(x_135, 0); -lean_inc(x_138); -x_139 = lean_ctor_get(x_135, 1); -lean_inc(x_139); -x_140 = lean_ctor_get(x_135, 2); -lean_inc(x_140); -x_141 = lean_ctor_get(x_135, 3); -lean_inc(x_141); -x_142 = lean_ctor_get(x_135, 4); -lean_inc(x_142); -x_143 = lean_ctor_get(x_135, 5); -lean_inc(x_143); -if (lean_is_exclusive(x_135)) { - lean_ctor_release(x_135, 0); - lean_ctor_release(x_135, 1); - lean_ctor_release(x_135, 2); - lean_ctor_release(x_135, 3); - lean_ctor_release(x_135, 4); - lean_ctor_release(x_135, 5); - x_144 = x_135; -} else { - lean_dec_ref(x_135); - x_144 = lean_box(0); -} -x_145 = l_List_append___rarg(x_139, x_93); -if (lean_is_scalar(x_144)) { - x_146 = lean_alloc_ctor(0, 6, 0); -} else { - x_146 = x_144; -} -lean_ctor_set(x_146, 0, x_138); -lean_ctor_set(x_146, 1, x_145); -lean_ctor_set(x_146, 2, x_140); -lean_ctor_set(x_146, 3, x_141); -lean_ctor_set(x_146, 4, x_142); -lean_ctor_set(x_146, 5, x_143); -if (lean_is_scalar(x_137)) { - x_147 = lean_alloc_ctor(1, 2, 0); -} else { - x_147 = x_137; -} -lean_ctor_set(x_147, 0, x_136); -lean_ctor_set(x_147, 1, x_146); -return x_147; +lean_ctor_set(x_39, 0, x_36); +lean_ctor_set(x_39, 1, x_37); +return x_39; } } } diff --git a/stage0/stdlib/Lean/Elab/Tactic/Basic.c b/stage0/stdlib/Lean/Elab/Tactic/Basic.c index 4b918aa6b6..368479520e 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Basic.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Basic.c @@ -16,9 +16,11 @@ extern "C" { lean_object* l_List_reverse___rarg(lean_object*); lean_object* l_Lean_SMap_find_x3f___at_Lean_Elab_Tactic_evalTactic___main___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Tactic_evalTraceState___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_withIncRecDepth___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_withIncRecDepth___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_monadLog; extern lean_object* l_Lean_Name_toString___closed__1; +lean_object* l_Lean_Elab_Tactic_evalAssumption___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_throwErrorAt___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_getLocalInsts___boxed(lean_object*, lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_withMVarContext___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -27,8 +29,9 @@ lean_object* l_Lean_Elab_Tactic_Lean_Elab_MonadMacroAdapter___closed__7; lean_object* l_Lean_Elab_Tactic_evalTactic___main___closed__3; lean_object* l___private_Lean_Elab_Tactic_Basic_1__evalTacticUsing___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_findAux___main___at_Lean_Elab_Tactic_evalTactic___main___spec__3(lean_object*, size_t, lean_object*); -lean_object* l_Lean_Elab_Tactic_withMainMVarContext___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_withMainMVarContext___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_mkTacticAttribute___closed__3; +lean_object* l_Lean_Elab_Term_instantiateMVars(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_monadLog___lambda__4(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_monadQuotation; lean_object* l_Lean_Elab_Tactic_withMainMVarContext(lean_object*); @@ -44,6 +47,7 @@ lean_object* l_Lean_Meta_introN(lean_object*, lean_object*, lean_object*, uint8_ extern lean_object* l_Lean_MessageData_ofList___closed__3; lean_object* lean_array_uget(lean_object*, size_t); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRevert___closed__1; +lean_object* l_Lean_Elab_Term_inferType(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_assignExprMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_pruneSolvedGoals(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalChoiceAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -51,12 +55,12 @@ lean_object* l_Lean_Elab_Tactic_evalIntro___lambda__1(lean_object*, lean_object* lean_object* l_Lean_Elab_Tactic_getEnv(lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalSkip(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_focus___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_reportUnsolvedGoals(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_focus___rarg___lambda__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_reportUnsolvedGoals(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalClear(lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_lift___at_Lean_Elab_Tactic_Lean_Elab_MonadMacroAdapter___spec__1___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Tactic_subst___elambda__1___closed__1; -lean_object* l_Lean_Elab_Tactic_trace(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_trace(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_appendGoals___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_focus(lean_object*); lean_object* l_Lean_Elab_Tactic_getLCtx___boxed(lean_object*, lean_object*); @@ -64,45 +68,46 @@ lean_object* l_Lean_Elab_Tactic_monadQuotation___closed__2; lean_object* l_Lean_Elab_Tactic_mkTacticAttribute___closed__6; lean_object* l_Lean_Elab_Tactic_evalIntro___lambda__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_resolveGlobalName(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_liftMetaM___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_liftMetaM___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalCase___closed__1; -lean_object* l_Lean_Elab_Tactic_done(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_done(lean_object*, lean_object*); lean_object* l_List_filterAuxM___main___at_Lean_Elab_Tactic_pruneSolvedGoals___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; lean_object* l_Lean_Elab_Tactic_resettingSynthInstanceCacheWhen(lean_object*); lean_object* l_Lean_Elab_Tactic_monadQuotation___closed__1; -lean_object* l_Lean_Elab_Tactic_forEachVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_forEachVar(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_dbg_trace(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_restore(lean_object*, lean_object*); lean_object* l_Lean_SMap_empty___at_Lean_Elab_Tactic_tacticElabAttribute___spec__1___closed__1; lean_object* l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_append___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_unfoldDefinition_x3f(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_clear___lambda__1___closed__6; lean_object* l_Lean_Elab_Tactic_evalTactic(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_goalsToMessageData___closed__1; -lean_object* l_Array_forMAux___main___at_Lean_Elab_Tactic_forEachVar___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forMAux___main___at_Lean_Elab_Tactic_forEachVar___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCase___closed__1; -lean_object* l_Array_forMAux___main___at_Lean_Elab_Tactic_forEachVar___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forMAux___main___at_Lean_Elab_Tactic_forEachVar___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_SMap_empty___at_Lean_Elab_Tactic_tacticElabAttribute___spec__1; lean_object* l_Lean_Elab_Tactic_resettingSynthInstanceCacheWhen___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalIntro(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_unfoldDefinition_x3f(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_unfoldDefinition_x3f(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalCase___closed__3; lean_object* l_Std_AssocList_find_x3f___main___at_Lean_Elab_Tactic_evalTactic___main___spec__6___boxed(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l___private_Lean_Elab_Tactic_Basic_1__evalTacticUsing(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_setGoals___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_inferType___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_Lean_Elab_MonadMacroAdapter___closed__11; lean_object* l_Lean_Elab_Tactic_getMCtx___boxed(lean_object*); lean_object* l_Lean_Elab_Tactic_getGoals___boxed(lean_object*); +lean_object* l_Lean_Elab_Tactic_withRef___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_find_x3f___at_Lean_Elab_Tactic_evalTactic___main___spec__2(lean_object*, lean_object*); extern lean_object* l_String_splitAux___main___closed__1; lean_object* l_Lean_Elab_Term_logTrace___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_withFreshMacroScope(lean_object*); lean_object* l_Lean_MetavarContext_renameMVar(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; -lean_object* l_Lean_Elab_Tactic_inferType(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_inferType(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_mkTacticAttribute___closed__4; extern lean_object* l_Lean_Parser_Tactic_failIfSuccess___elambda__1___closed__2; size_t l_USize_shiftRight(size_t, size_t); @@ -115,20 +120,21 @@ lean_object* l_Lean_Elab_Tactic_mkTacticAttribute___closed__1; lean_object* l_Lean_Elab_Tactic_restore___boxed(lean_object*, lean_object*); extern lean_object* l_Lean_LocalContext_Inhabited___closed__1; lean_object* l_Lean_Elab_Tactic_liftMetaMAtMain(lean_object*); -lean_object* l_Lean_Elab_Term_trace___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_mkMessageAt___at_Lean_Elab_Tactic_evalTraceState___spec__4(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_tacticElabAttribute___closed__2; +lean_object* l_Lean_Elab_Tactic_evalAssumption___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_clear___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_liftMetaTacticAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_liftMetaTacticAux___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_collectMVars___closed__1; lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Elab_Tactic_evalTactic___main___spec__5(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_ensureHasType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_whnfCore(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_ensureHasType(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_whnfCore(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_Lean_Elab_MonadMacroAdapter___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_getMainGoal___closed__2; extern lean_object* l_Lean_PrettyPrinter_Parenthesizer_tacticParser_parenthesizer___lambda__1___closed__4; +lean_object* l_Lean_Elab_Term_whnf(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_monadLog___closed__3; extern lean_object* l___private_Lean_Elab_Term_11__elabUsingElabFnsAux___main___closed__3; lean_object* l___regBuiltin_Lean_Elab_Tactic_evalClear(lean_object*); @@ -137,6 +143,7 @@ lean_object* l___regBuiltin_Lean_Elab_Tactic_evalIntros___closed__1; lean_object* l_Std_PersistentHashMap_empty___at_Lean_Elab_Tactic_tacticElabAttribute___spec__3; extern lean_object* l_Lean_PersistentEnvExtension_inhabited___rarg___closed__1; lean_object* l_Lean_Meta_intro(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_evalNestedTacticBlock___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_tagUntaggedGoals___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalAssumption(lean_object*); lean_object* l_Lean_Elab_Tactic_liftMetaTactic___closed__1; @@ -155,6 +162,7 @@ lean_object* l___regBuiltin_Lean_Elab_Tactic_evalClear___closed__1; lean_object* l_Lean_SMap_find_x3f___at_Lean_Elab_Tactic_evalTactic___main___spec__1___boxed(lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalNestedTacticBlockCurly(lean_object*); +lean_object* l_Lean_Elab_Term_throwErrorAt___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarType(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_addContext___boxed(lean_object*, lean_object*, lean_object*); @@ -165,8 +173,8 @@ lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTraceState(lean_object*); extern lean_object* l_Lean_Meta_Exception_toMessageData___closed__48; extern lean_object* l_Lean_Parser_Tactic_nestedTacticBlockCurly___elambda__1___closed__2; lean_object* l___regBuiltin_Lean_Elab_Tactic_evalChoice(lean_object*); -lean_object* l_Array_forMAux___main___at_Lean_Elab_Tactic_forEachVar___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_focus___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forMAux___main___at_Lean_Elab_Tactic_forEachVar___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_focus___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_SMap_find_x3f___at_Lean_Elab_getMacros___spec__1(lean_object*, lean_object*); extern lean_object* l_Lean_choiceKind___closed__2; lean_object* l_Lean_Elab_Tactic_monadLog___closed__5; @@ -219,11 +227,11 @@ lean_object* l_Lean_Syntax_prettyPrint(lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Basic_2__expandTacticMacroFns___main___at_Lean_Elab_Tactic_evalTactic___main___spec__7(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_tacticElabAttribute___closed__4; -lean_object* l_Lean_Elab_Term_throwError___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_throwError___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_revert___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_monadLog___lambda__4___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalChoice___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_liftMetaMAtMain___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_liftMetaMAtMain___rarg(lean_object*, lean_object*, lean_object*); extern size_t l_Std_PersistentHashMap_insertAux___main___rarg___closed__2; lean_object* l_Lean_Elab_Tactic_State_inhabited___closed__1; lean_object* l_Lean_collectMVars(lean_object*, lean_object*); @@ -233,7 +241,7 @@ lean_object* l_Lean_Elab_Tactic_Lean_Elab_MonadMacroAdapter___lambda__3___boxed( extern lean_object* l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; extern lean_object* l_Lean_Meta_withIncRecDepth___rarg___closed__2; lean_object* l_Lean_Elab_Term_throwUnsupportedSyntax___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_getMainGoal(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_getMainGoal(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSubst(lean_object*); lean_object* l_Array_foldlStepMAux___main___at_Lean_Elab_Tactic_evalTactic___main___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_monadLog___closed__8; @@ -254,12 +262,12 @@ lean_object* l_Lean_Meta_subst___boxed(lean_object*, lean_object*, lean_object*, lean_object* l_Lean_Elab_Tactic_Lean_Elab_MonadMacroAdapter___closed__9; extern lean_object* l___private_Lean_Elab_Util_4__regTraceClasses___closed__2; lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_withRef(lean_object*); lean_object* l_Lean_Elab_Tactic_monadLog___closed__1; lean_object* l_Lean_Meta_assumption(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_mkElabAttribute___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Elab_Tactic_evalTactic___main___spec__5___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_save___boxed(lean_object*); -lean_object* l_Lean_Elab_Term_whnfCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalFailIfSuccess___closed__2; lean_object* l___private_Lean_Elab_Tactic_Basic_3__getIntrosSize___boxed(lean_object*); extern lean_object* l___private_Lean_Elab_Util_4__regTraceClasses___closed__1; @@ -267,7 +275,7 @@ lean_object* l_Lean_Elab_Term_reportUnsolvedGoals___closed__1; lean_object* l___regBuiltin_Lean_Elab_Tactic_evalOrelse___closed__1; lean_object* l_Lean_Elab_Term_reportUnsolvedGoals___closed__4; extern lean_object* l_Lean_PrettyPrinter_Parenthesizer_tacticParser_parenthesizer___lambda__1___closed__2; -lean_object* l_Lean_Elab_Tactic_whnf(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_whnf(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Tactic_case___elambda__1___closed__1; extern lean_object* l_Lean_PersistentEnvExtension_inhabited___rarg___closed__3; lean_object* l_Lean_Elab_Tactic_liftMetaM(lean_object*); @@ -280,14 +288,15 @@ lean_object* l___private_Lean_Elab_Tactic_Basic_3__getIntrosSize___main(lean_obj lean_object* l_Std_mkHashMap___at_Lean_Elab_Tactic_tacticElabAttribute___spec__2(lean_object*); size_t l_USize_land(size_t, size_t); lean_object* l_Lean_Elab_Tactic_evalOrelse(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_forEachVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_evalAssumption___boxed(lean_object*); +lean_object* l_Lean_Elab_Tactic_forEachVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Basic_2__expandTacticMacroFns___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_nullKind___closed__2; lean_object* l_Lean_Elab_Tactic_monadLog___lambda__1(lean_object*, lean_object*, lean_object*); extern lean_object* l_Std_HashSet_Inhabited___closed__1; lean_object* l_Lean_Elab_Tactic_evalRevert(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_evalAssumption___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_liftMetaTactic___lambda__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_throwErrorAt(lean_object*); lean_object* l_Lean_Elab_Tactic_evalIntros___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_appendGoals(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSubst___closed__1; @@ -295,13 +304,12 @@ lean_object* l_Lean_Elab_Tactic_throwUnsupportedSyntax(lean_object*); lean_object* l_Lean_Elab_Tactic_withLCtx(lean_object*); lean_object* l_Lean_Elab_log___at_Lean_Elab_Tactic_evalTraceState___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_goalsToMessageData(lean_object*); -lean_object* l_Lean_Elab_Term_liftMetaM___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); uint8_t l_Lean_MetavarContext_isAnonymousMVar(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_evalFailIfSuccess___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Tactic_assumption___elambda__1___closed__1; lean_object* l_Lean_Elab_Tactic_Lean_Elab_MonadMacroAdapter___closed__5; lean_object* l_Lean_Elab_Tactic_evalFailIfSuccess___closed__1; -lean_object* l_Lean_Elab_Tactic_evalAssumption___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlStepMAux___main___at_Lean_Elab_Tactic_evalTactic___main___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Exception_inhabited; lean_object* l_Lean_Elab_Tactic_Lean_Elab_MonadMacroAdapter___closed__3; @@ -311,7 +319,7 @@ lean_object* l_Lean_Elab_Tactic_modifyMCtx___boxed(lean_object*, lean_object*, l lean_object* l_Lean_Elab_Tactic_evalParen(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_Lean_Elab_MonadMacroAdapter___closed__10; extern lean_object* l_Lean_Elab_macroAttribute; -lean_object* l_Lean_Elab_Tactic_liftMetaTactic(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_liftMetaTactic(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalTactic___main___closed__1; lean_object* l___regBuiltin_Lean_Elab_Tactic_evalNestedTacticBlock(lean_object*); lean_object* l_Lean_Elab_Term_traceAtCmdPos(lean_object*, lean_object*, lean_object*, lean_object*); @@ -326,7 +334,6 @@ lean_object* l_Lean_Elab_Tactic_liftMetaTactic___lambda__1___boxed(lean_object*, lean_object* l_Lean_Elab_Tactic_focusAux(lean_object*); lean_object* l_Lean_Elab_Tactic_evalTactic___main(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_hasMVar(lean_object*); -lean_object* l_Lean_Elab_Term_throwError___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArgs(lean_object*); lean_object* l_Lean_Elab_Tactic_monadLog___closed__6; lean_object* l_Lean_Elab_Tactic_evalSeq(lean_object*, lean_object*, lean_object*); @@ -334,7 +341,7 @@ lean_object* l_Lean_Syntax_getKind(lean_object*); lean_object* l_Lean_Elab_Tactic_getFVarId(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_ensureHasNoMVars___closed__1; lean_object* l_Lean_Elab_Tactic_resettingSynthInstanceCache(lean_object*); -lean_object* l_Lean_Elab_Tactic_evalAssumption(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_evalAssumption(lean_object*); lean_object* l_Lean_Elab_Tactic_save(lean_object*); lean_object* l_Lean_Elab_Tactic_evalCase___closed__2; lean_object* l_Lean_Elab_Tactic_monadLog___closed__2; @@ -343,34 +350,35 @@ lean_object* l_Lean_Elab_Tactic_setGoals(lean_object*, lean_object*, lean_object lean_object* l_Lean_Elab_Tactic_modifyMCtx(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_tagUntaggedGoals(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Tactic_clear___elambda__1___closed__1; +lean_object* l_Lean_Elab_Term_whnfCore(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Tactic_orelse___elambda__1___closed__1; lean_object* l_Lean_Elab_Tactic_getOptions___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_resolveGlobalName___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_getCurrRef(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_withMVarContext___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Name_isSuffixOf___main(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_logTrace(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalFailIfSuccess(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_whnf___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_unfoldDefinition_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalChoiceAux(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_withFreshMacroScope___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___spec__1(lean_object*, lean_object*); +lean_object* l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_throwError(lean_object*); lean_object* l_Lean_Syntax_getPos(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalParen___closed__1; lean_object* l_Lean_Elab_Tactic_assignExprMVar(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRevert(lean_object*); -lean_object* l_Lean_Elab_Tactic_ensureHasNoMVars(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_instantiateMVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_ensureHasNoMVars(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_EStateM_Backtrackable___closed__1; lean_object* l_Array_umapMAux___main___at_Lean_Elab_Tactic_evalIntros___spec__1(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_evalAssumption___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_liftTermElabM___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_getOptions(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_tacticElabAttribute___closed__5; lean_object* l_Lean_Elab_Tactic_liftMetaTacticAux(lean_object*); lean_object* l_Lean_Elab_Tactic_Lean_Elab_MonadMacroAdapter___closed__6; lean_object* l_Lean_Elab_Tactic_adaptExpander(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_focusAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_throwErrorAt___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_focusAux___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Basic_3__getIntrosSize(lean_object*); lean_object* l_Lean_Elab_Tactic_getFVarIds(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_log___at_Lean_Elab_Tactic_evalTraceState___spec__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); @@ -378,12 +386,12 @@ lean_object* l_Lean_Elab_Tactic_getEnv___rarg(lean_object*); lean_object* l_Lean_Meta_intro1(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_EStateM_Backtrackable___closed__2; lean_object* l_Array_toList___rarg(lean_object*); -lean_object* l_Lean_Elab_Tactic_ensureHasType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_ensureHasType(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalNestedTacticBlockCurly___closed__1; lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_withMacroExpansion___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_reportUnsolvedGoals(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_instantiateMVars(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_reportUnsolvedGoals(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_PrettyPrinter_Parenthesizer_tacticParser_parenthesizer___closed__2; lean_object* l_Lean_Elab_Tactic_monadLog___lambda__3(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); @@ -393,7 +401,7 @@ lean_object* l_Lean_Syntax_getTailWithPos___main(lean_object*); lean_object* l_Lean_Elab_Tactic_tacticElabAttribute___closed__3; lean_object* l___regBuiltin_Lean_Elab_Tactic_evalIntro(lean_object*); lean_object* l_Lean_Elab_Tactic_evalIntro___lambda__2(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_evalRevert___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_evalRevert___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_Lean_Elab_MonadMacroAdapter___lambda__3(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_findAtAux___main___at_Lean_Elab_Tactic_evalTactic___main___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_throwUnsupportedSyntax___rarg(lean_object*, lean_object*); @@ -409,7 +417,7 @@ lean_object* l_Lean_Elab_Tactic_monadLog___closed__11; lean_object* l_ReaderT_lift___at_Lean_Elab_Tactic_Lean_Elab_MonadMacroAdapter___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Tactic_evalTraceState___spec__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalSubst(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_collectMVars(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_collectMVars(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_LocalInstance_beq(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalIntro___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalChoiceAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -427,6 +435,7 @@ lean_object* l___regBuiltin_Lean_Elab_Tactic_evalOrelse(lean_object*); lean_object* l_Lean_Elab_Tactic_dbgTrace(lean_object*); lean_object* l_Lean_Name_toStringWithSep___main(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Basic_4__regTraceClasses___closed__1; +lean_object* l_Lean_Elab_Tactic_focus___rarg___closed__1; lean_object* l_Lean_Elab_Tactic_monadLog___lambda__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_EStateM_Backtrackable___closed__3; lean_object* lean_usize_to_nat(size_t); @@ -440,6 +449,7 @@ lean_object* l___private_Lean_Elab_Tactic_Basic_2__expandTacticMacroFns(lean_obj lean_object* l_List_foldl___main___at_Lean_Elab_Tactic_tagUntaggedGoals___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_indentExpr(lean_object*); extern lean_object* l___private_Lean_Meta_Tactic_Util_1__regTraceClasses___closed__1; +lean_object* l_Lean_Elab_Term_trace(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_getMainModule___boxed(lean_object*); extern lean_object* l_Lean_Parser_Tactic_traceState___elambda__1___closed__2; lean_object* l_Lean_Elab_Tactic_monadQuotation___closed__3; @@ -452,6 +462,7 @@ lean_object* l_Lean_Elab_Term_reportUnsolvedGoals___closed__2; extern lean_object* l_Lean_PersistentEnvExtension_inhabited___rarg___closed__4; lean_object* l_Lean_Elab_Tactic_traceAtCmdPos(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_EStateM_MonadState___closed__2; +lean_object* l_Lean_Elab_Tactic_evalNestedTacticBlockCurly___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_getLCtx(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_expandTacticMacro(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_Lean_Elab_MonadMacroAdapter___lambda__2(lean_object*, lean_object*, lean_object*); @@ -460,10 +471,11 @@ extern lean_object* l_Lean_Parser_Tactic_nestedTacticBlock___elambda__1___closed lean_object* l_Lean_Elab_mkMessageAt___at_Lean_Elab_Tactic_evalTraceState___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalParen(lean_object*); +lean_object* l_Lean_Elab_Term_liftMetaM___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_Lean_Elab_MonadMacroAdapter___lambda__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_monadLog___closed__4; lean_object* l_Lean_Elab_Tactic_getMCtx(lean_object*); -lean_object* l_Lean_Elab_Tactic_throwError___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_throwError___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_isLocalTermId_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_monadLog___closed__9; lean_object* l_Lean_Elab_Tactic_evalIntros___lambda__2___boxed(lean_object*, lean_object*, lean_object*); @@ -576,34 +588,40 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* l_Lean_Elab_Term_reportUnsolvedGoals(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Term_reportUnsolvedGoals(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; -lean_inc(x_1); -x_5 = l_Lean_Syntax_getTailWithPos___main(x_1); -x_6 = l_Lean_Elab_goalsToMessageData(x_2); -x_7 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__4; -x_8 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_8, 0, x_7); -lean_ctor_set(x_8, 1, x_6); -if (lean_obj_tag(x_5) == 0) +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_4 = l_Lean_Elab_Term_getCurrRef(x_2, x_3); +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_4, 1); +lean_inc(x_6); +lean_dec(x_4); +lean_inc(x_5); +x_7 = l_Lean_Syntax_getTailWithPos___main(x_5); +x_8 = l_Lean_Elab_goalsToMessageData(x_1); +x_9 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__4; +x_10 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_8); +if (lean_obj_tag(x_7) == 0) { -lean_object* x_9; -x_9 = l_Lean_Elab_Term_throwError___rarg(x_1, x_8, x_3, x_4); -lean_dec(x_1); -return x_9; +lean_object* x_11; +x_11 = l_Lean_Elab_Term_throwErrorAt___rarg(x_5, x_10, x_2, x_6); +lean_dec(x_5); +return x_11; } else { -lean_object* x_10; lean_object* x_11; -lean_dec(x_1); -x_10 = lean_ctor_get(x_5, 0); -lean_inc(x_10); +lean_object* x_12; lean_object* x_13; lean_dec(x_5); -x_11 = l_Lean_Elab_Term_throwError___rarg(x_10, x_8, x_3, x_4); -lean_dec(x_10); -return x_11; +x_12 = lean_ctor_get(x_7, 0); +lean_inc(x_12); +lean_dec(x_7); +x_13 = l_Lean_Elab_Term_throwErrorAt___rarg(x_12, x_10, x_2, x_6); +lean_dec(x_12); +return x_13; } } } @@ -1024,22 +1042,170 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftTermElabM___rarg), 3, 0) return x_2; } } -lean_object* l_Lean_Elab_Tactic_liftMetaM___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Tactic_liftMetaM___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; lean_object* x_6; -x_5 = lean_alloc_closure((void*)(l_Lean_Elab_Term_liftMetaM___rarg___boxed), 4, 2); -lean_closure_set(x_5, 0, x_1); -lean_closure_set(x_5, 1, x_2); -x_6 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_5, x_3, x_4); -return x_6; +lean_object* x_4; lean_object* x_5; +x_4 = lean_alloc_closure((void*)(l_Lean_Elab_Term_liftMetaM___rarg), 3, 1); +lean_closure_set(x_4, 0, x_1); +x_5 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_4, x_2, x_3); +return x_5; } } lean_object* l_Lean_Elab_Tactic_liftMetaM(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 4, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Tactic_withRef___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_3); +if (x_5 == 0) +{ +lean_object* x_6; uint8_t x_7; +x_6 = lean_ctor_get(x_3, 0); +x_7 = !lean_is_exclusive(x_6); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_ctor_get(x_6, 10); +lean_dec(x_8); +lean_ctor_set(x_6, 10, x_1); +x_9 = lean_apply_2(x_2, x_3, x_4); +return x_9; +} +else +{ +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; uint8_t x_20; uint8_t x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; +x_10 = lean_ctor_get(x_6, 0); +x_11 = lean_ctor_get(x_6, 1); +x_12 = lean_ctor_get(x_6, 2); +x_13 = lean_ctor_get(x_6, 3); +x_14 = lean_ctor_get(x_6, 4); +x_15 = lean_ctor_get(x_6, 5); +x_16 = lean_ctor_get(x_6, 6); +x_17 = lean_ctor_get(x_6, 7); +x_18 = lean_ctor_get(x_6, 8); +x_19 = lean_ctor_get(x_6, 9); +x_20 = lean_ctor_get_uint8(x_6, sizeof(void*)*11); +x_21 = lean_ctor_get_uint8(x_6, sizeof(void*)*11 + 1); +x_22 = lean_ctor_get_uint8(x_6, sizeof(void*)*11 + 2); +lean_inc(x_19); +lean_inc(x_18); +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_11); +lean_inc(x_10); +lean_dec(x_6); +x_23 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_23, 0, x_10); +lean_ctor_set(x_23, 1, x_11); +lean_ctor_set(x_23, 2, x_12); +lean_ctor_set(x_23, 3, x_13); +lean_ctor_set(x_23, 4, x_14); +lean_ctor_set(x_23, 5, x_15); +lean_ctor_set(x_23, 6, x_16); +lean_ctor_set(x_23, 7, x_17); +lean_ctor_set(x_23, 8, x_18); +lean_ctor_set(x_23, 9, x_19); +lean_ctor_set(x_23, 10, x_1); +lean_ctor_set_uint8(x_23, sizeof(void*)*11, x_20); +lean_ctor_set_uint8(x_23, sizeof(void*)*11 + 1, x_21); +lean_ctor_set_uint8(x_23, sizeof(void*)*11 + 2, x_22); +lean_ctor_set(x_3, 0, x_23); +x_24 = lean_apply_2(x_2, x_3, x_4); +return x_24; +} +} +else +{ +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_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; uint8_t x_38; uint8_t x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_25 = lean_ctor_get(x_3, 0); +x_26 = lean_ctor_get(x_3, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_3); +x_27 = lean_ctor_get(x_25, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_25, 1); +lean_inc(x_28); +x_29 = lean_ctor_get(x_25, 2); +lean_inc(x_29); +x_30 = lean_ctor_get(x_25, 3); +lean_inc(x_30); +x_31 = lean_ctor_get(x_25, 4); +lean_inc(x_31); +x_32 = lean_ctor_get(x_25, 5); +lean_inc(x_32); +x_33 = lean_ctor_get(x_25, 6); +lean_inc(x_33); +x_34 = lean_ctor_get(x_25, 7); +lean_inc(x_34); +x_35 = lean_ctor_get(x_25, 8); +lean_inc(x_35); +x_36 = lean_ctor_get(x_25, 9); +lean_inc(x_36); +x_37 = lean_ctor_get_uint8(x_25, sizeof(void*)*11); +x_38 = lean_ctor_get_uint8(x_25, sizeof(void*)*11 + 1); +x_39 = lean_ctor_get_uint8(x_25, sizeof(void*)*11 + 2); +if (lean_is_exclusive(x_25)) { + lean_ctor_release(x_25, 0); + lean_ctor_release(x_25, 1); + lean_ctor_release(x_25, 2); + lean_ctor_release(x_25, 3); + lean_ctor_release(x_25, 4); + lean_ctor_release(x_25, 5); + lean_ctor_release(x_25, 6); + lean_ctor_release(x_25, 7); + lean_ctor_release(x_25, 8); + lean_ctor_release(x_25, 9); + lean_ctor_release(x_25, 10); + x_40 = x_25; +} else { + lean_dec_ref(x_25); + x_40 = lean_box(0); +} +if (lean_is_scalar(x_40)) { + x_41 = lean_alloc_ctor(0, 11, 3); +} else { + x_41 = x_40; +} +lean_ctor_set(x_41, 0, x_27); +lean_ctor_set(x_41, 1, x_28); +lean_ctor_set(x_41, 2, x_29); +lean_ctor_set(x_41, 3, x_30); +lean_ctor_set(x_41, 4, x_31); +lean_ctor_set(x_41, 5, x_32); +lean_ctor_set(x_41, 6, x_33); +lean_ctor_set(x_41, 7, x_34); +lean_ctor_set(x_41, 8, x_35); +lean_ctor_set(x_41, 9, x_36); +lean_ctor_set(x_41, 10, x_1); +lean_ctor_set_uint8(x_41, sizeof(void*)*11, x_37); +lean_ctor_set_uint8(x_41, sizeof(void*)*11 + 1, x_38); +lean_ctor_set_uint8(x_41, sizeof(void*)*11 + 2, x_39); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_26); +x_43 = lean_apply_2(x_2, x_42, x_4); +return x_43; +} +} +} +lean_object* l_Lean_Elab_Tactic_withRef(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_withRef___rarg), 4, 0); return x_2; } } @@ -1448,15 +1614,14 @@ lean_dec(x_1); return x_4; } } -lean_object* l_Lean_Elab_Tactic_instantiateMVars(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Tactic_instantiateMVars(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; lean_object* x_6; -x_5 = lean_alloc_closure((void*)(l_Lean_Elab_Term_instantiateMVars___boxed), 4, 2); -lean_closure_set(x_5, 0, x_1); -lean_closure_set(x_5, 1, x_2); -x_6 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_5, x_3, x_4); -return x_6; +lean_object* x_4; lean_object* x_5; +x_4 = lean_alloc_closure((void*)(l_Lean_Elab_Term_instantiateMVars), 3, 1); +lean_closure_set(x_4, 0, x_1); +x_5 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_4, x_2, x_3); +return x_5; } } lean_object* l_Lean_Elab_Tactic_addContext(lean_object* x_1, lean_object* x_2, lean_object* x_3) { @@ -1490,71 +1655,65 @@ x_6 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_5, x_3, x_4); return x_6; } } -lean_object* l_Lean_Elab_Tactic_ensureHasType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; lean_object* x_7; -x_6 = lean_alloc_closure((void*)(l_Lean_Elab_Term_ensureHasType), 5, 3); -lean_closure_set(x_6, 0, x_1); -lean_closure_set(x_6, 1, x_2); -lean_closure_set(x_6, 2, x_3); -x_7 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_6, x_4, x_5); -return x_7; -} -} -lean_object* l_Lean_Elab_Tactic_reportUnsolvedGoals(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Tactic_ensureHasType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; -x_5 = lean_alloc_closure((void*)(l_Lean_Elab_Term_reportUnsolvedGoals), 4, 2); +x_5 = lean_alloc_closure((void*)(l_Lean_Elab_Term_ensureHasType), 4, 2); lean_closure_set(x_5, 0, x_1); lean_closure_set(x_5, 1, x_2); x_6 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_5, x_3, x_4); return x_6; } } -lean_object* l_Lean_Elab_Tactic_inferType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Tactic_reportUnsolvedGoals(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; lean_object* x_6; -x_5 = lean_alloc_closure((void*)(l_Lean_Elab_Term_inferType___boxed), 4, 2); -lean_closure_set(x_5, 0, x_1); -lean_closure_set(x_5, 1, x_2); -x_6 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_5, x_3, x_4); -return x_6; +lean_object* x_4; lean_object* x_5; +x_4 = lean_alloc_closure((void*)(l_Lean_Elab_Term_reportUnsolvedGoals), 3, 1); +lean_closure_set(x_4, 0, x_1); +x_5 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_4, x_2, x_3); +return x_5; } } -lean_object* l_Lean_Elab_Tactic_whnf(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Tactic_inferType(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; lean_object* x_6; -x_5 = lean_alloc_closure((void*)(l_Lean_Elab_Term_whnf___boxed), 4, 2); -lean_closure_set(x_5, 0, x_1); -lean_closure_set(x_5, 1, x_2); -x_6 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_5, x_3, x_4); -return x_6; +lean_object* x_4; lean_object* x_5; +x_4 = lean_alloc_closure((void*)(l_Lean_Elab_Term_inferType), 3, 1); +lean_closure_set(x_4, 0, x_1); +x_5 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_4, x_2, x_3); +return x_5; } } -lean_object* l_Lean_Elab_Tactic_whnfCore(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Tactic_whnf(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; lean_object* x_6; -x_5 = lean_alloc_closure((void*)(l_Lean_Elab_Term_whnfCore___boxed), 4, 2); -lean_closure_set(x_5, 0, x_1); -lean_closure_set(x_5, 1, x_2); -x_6 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_5, x_3, x_4); -return x_6; +lean_object* x_4; lean_object* x_5; +x_4 = lean_alloc_closure((void*)(l_Lean_Elab_Term_whnf), 3, 1); +lean_closure_set(x_4, 0, x_1); +x_5 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_4, x_2, x_3); +return x_5; } } -lean_object* l_Lean_Elab_Tactic_unfoldDefinition_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Tactic_whnfCore(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; lean_object* x_6; -x_5 = lean_alloc_closure((void*)(l_Lean_Elab_Term_unfoldDefinition_x3f___boxed), 4, 2); -lean_closure_set(x_5, 0, x_1); -lean_closure_set(x_5, 1, x_2); -x_6 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_5, x_3, x_4); -return x_6; +lean_object* x_4; lean_object* x_5; +x_4 = lean_alloc_closure((void*)(l_Lean_Elab_Term_whnfCore), 3, 1); +lean_closure_set(x_4, 0, x_1); +x_5 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_4, x_2, x_3); +return x_5; +} +} +lean_object* l_Lean_Elab_Tactic_unfoldDefinition_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; +x_4 = lean_alloc_closure((void*)(l_Lean_Elab_Term_unfoldDefinition_x3f), 3, 1); +lean_closure_set(x_4, 0, x_1); +x_5 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_4, x_2, x_3); +return x_5; } } lean_object* l_Lean_Elab_Tactic_resolveGlobalName(lean_object* x_1, lean_object* x_2, lean_object* x_3) { @@ -1579,70 +1738,70 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* l_Lean_Elab_Tactic_collectMVars(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Tactic_collectMVars(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; -x_5 = l_Lean_Elab_Tactic_instantiateMVars(x_1, x_2, x_3, x_4); -if (lean_obj_tag(x_5) == 0) +lean_object* x_4; +x_4 = l_Lean_Elab_Tactic_instantiateMVars(x_1, x_2, x_3); +if (lean_obj_tag(x_4) == 0) { -uint8_t x_6; -x_6 = !lean_is_exclusive(x_5); -if (x_6 == 0) +uint8_t x_5; +x_5 = !lean_is_exclusive(x_4); +if (x_5 == 0) { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_7 = lean_ctor_get(x_5, 0); -x_8 = l_Lean_Elab_Tactic_collectMVars___closed__1; -x_9 = l_Lean_collectMVars(x_8, x_7); -x_10 = lean_ctor_get(x_9, 1); -lean_inc(x_10); +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_6 = lean_ctor_get(x_4, 0); +x_7 = l_Lean_Elab_Tactic_collectMVars___closed__1; +x_8 = l_Lean_collectMVars(x_7, x_6); +x_9 = lean_ctor_get(x_8, 1); +lean_inc(x_9); +lean_dec(x_8); +x_10 = l_Array_toList___rarg(x_9); lean_dec(x_9); -x_11 = l_Array_toList___rarg(x_10); -lean_dec(x_10); -lean_ctor_set(x_5, 0, x_11); -return x_5; +lean_ctor_set(x_4, 0, x_10); +return x_4; } else { -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_12 = lean_ctor_get(x_5, 0); -x_13 = lean_ctor_get(x_5, 1); -lean_inc(x_13); +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_11 = lean_ctor_get(x_4, 0); +x_12 = lean_ctor_get(x_4, 1); lean_inc(x_12); -lean_dec(x_5); -x_14 = l_Lean_Elab_Tactic_collectMVars___closed__1; -x_15 = l_Lean_collectMVars(x_14, x_12); -x_16 = lean_ctor_get(x_15, 1); -lean_inc(x_16); +lean_inc(x_11); +lean_dec(x_4); +x_13 = l_Lean_Elab_Tactic_collectMVars___closed__1; +x_14 = l_Lean_collectMVars(x_13, x_11); +x_15 = lean_ctor_get(x_14, 1); +lean_inc(x_15); +lean_dec(x_14); +x_16 = l_Array_toList___rarg(x_15); lean_dec(x_15); -x_17 = l_Array_toList___rarg(x_16); -lean_dec(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_13); -return x_18; +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_12); +return x_17; } } else { -uint8_t x_19; -x_19 = !lean_is_exclusive(x_5); -if (x_19 == 0) +uint8_t x_18; +x_18 = !lean_is_exclusive(x_4); +if (x_18 == 0) { -return x_5; +return x_4; } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_5, 0); -x_21 = lean_ctor_get(x_5, 1); -lean_inc(x_21); +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_4, 0); +x_20 = lean_ctor_get(x_4, 1); lean_inc(x_20); -lean_dec(x_5); -x_22 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_22, 0, x_20); -lean_ctor_set(x_22, 1, x_21); -return x_22; +lean_inc(x_19); +lean_dec(x_4); +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; } } } @@ -2015,40 +2174,40 @@ lean_dec(x_2); return x_4; } } -lean_object* l_Lean_Elab_Tactic_throwError___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Tactic_throwErrorAt___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; -x_5 = l_Lean_Syntax_getPos(x_1); -if (lean_obj_tag(x_5) == 0) -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; -lean_dec(x_1); -x_6 = lean_ctor_get(x_3, 2); -lean_inc(x_6); -x_7 = lean_alloc_closure((void*)(l_Lean_Elab_Term_throwError___rarg___boxed), 4, 2); -lean_closure_set(x_7, 0, x_6); -lean_closure_set(x_7, 1, x_2); -x_8 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_7, x_3, x_4); -return x_8; +lean_object* x_5; lean_object* x_6; +x_5 = lean_alloc_closure((void*)(l_Lean_Elab_Term_throwErrorAt___rarg___boxed), 4, 2); +lean_closure_set(x_5, 0, x_1); +lean_closure_set(x_5, 1, x_2); +x_6 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_5, x_3, x_4); +return x_6; } -else -{ -lean_object* x_9; lean_object* x_10; -lean_dec(x_5); -x_9 = lean_alloc_closure((void*)(l_Lean_Elab_Term_throwError___rarg___boxed), 4, 2); -lean_closure_set(x_9, 0, x_1); -lean_closure_set(x_9, 1, x_2); -x_10 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_9, x_3, x_4); -return x_10; } +lean_object* l_Lean_Elab_Tactic_throwErrorAt(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_throwErrorAt___rarg), 4, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Tactic_throwError___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; +x_4 = lean_alloc_closure((void*)(l_Lean_Elab_Term_throwError___rarg), 3, 1); +lean_closure_set(x_4, 0, x_1); +x_5 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_4, x_2, x_3); +return x_5; } } lean_object* l_Lean_Elab_Tactic_throwError(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_throwError___rarg), 4, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_throwError___rarg), 3, 0); return x_2; } } @@ -2078,89 +2237,88 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_throwUnsupportedSyntax___rar return x_2; } } -lean_object* l_Lean_Elab_Tactic_withIncRecDepth___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Tactic_withIncRecDepth___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; uint8_t x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; -x_5 = lean_ctor_get(x_3, 0); +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; uint8_t x_16; uint8_t x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; +x_4 = lean_ctor_get(x_2, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_4, 0); lean_inc(x_5); -x_6 = lean_ctor_get(x_5, 0); +x_6 = lean_ctor_get(x_2, 1); lean_inc(x_6); -x_7 = lean_ctor_get(x_3, 1); +x_7 = lean_ctor_get(x_4, 1); lean_inc(x_7); -x_8 = lean_ctor_get(x_3, 2); +x_8 = lean_ctor_get(x_4, 2); lean_inc(x_8); -x_9 = lean_ctor_get(x_5, 1); +x_9 = lean_ctor_get(x_4, 3); lean_inc(x_9); -x_10 = lean_ctor_get(x_5, 2); +x_10 = lean_ctor_get(x_4, 4); lean_inc(x_10); -x_11 = lean_ctor_get(x_5, 3); +x_11 = lean_ctor_get(x_4, 5); lean_inc(x_11); -x_12 = lean_ctor_get(x_5, 4); +x_12 = lean_ctor_get(x_4, 6); lean_inc(x_12); -x_13 = lean_ctor_get(x_5, 5); +x_13 = lean_ctor_get(x_4, 7); lean_inc(x_13); -x_14 = lean_ctor_get(x_5, 6); +x_14 = lean_ctor_get(x_4, 8); lean_inc(x_14); -x_15 = lean_ctor_get(x_5, 7); +x_15 = lean_ctor_get(x_4, 9); lean_inc(x_15); -x_16 = lean_ctor_get(x_5, 8); -lean_inc(x_16); -x_17 = lean_ctor_get(x_5, 9); -lean_inc(x_17); -x_18 = lean_ctor_get_uint8(x_5, sizeof(void*)*10); -x_19 = lean_ctor_get_uint8(x_5, sizeof(void*)*10 + 1); -x_20 = lean_ctor_get_uint8(x_5, sizeof(void*)*10 + 2); -if (lean_is_exclusive(x_5)) { - lean_ctor_release(x_5, 0); - lean_ctor_release(x_5, 1); - lean_ctor_release(x_5, 2); - lean_ctor_release(x_5, 3); - lean_ctor_release(x_5, 4); - lean_ctor_release(x_5, 5); - lean_ctor_release(x_5, 6); - lean_ctor_release(x_5, 7); - lean_ctor_release(x_5, 8); - lean_ctor_release(x_5, 9); - x_21 = x_5; +x_16 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_17 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_18 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +x_19 = lean_ctor_get(x_4, 10); +lean_inc(x_19); +if (lean_is_exclusive(x_4)) { + lean_ctor_release(x_4, 0); + lean_ctor_release(x_4, 1); + lean_ctor_release(x_4, 2); + lean_ctor_release(x_4, 3); + lean_ctor_release(x_4, 4); + lean_ctor_release(x_4, 5); + lean_ctor_release(x_4, 6); + lean_ctor_release(x_4, 7); + lean_ctor_release(x_4, 8); + lean_ctor_release(x_4, 9); + lean_ctor_release(x_4, 10); + x_20 = x_4; } else { - lean_dec_ref(x_5); - x_21 = lean_box(0); + lean_dec_ref(x_4); + x_20 = lean_box(0); } -x_22 = lean_ctor_get(x_6, 3); +x_21 = lean_ctor_get(x_5, 3); +lean_inc(x_21); +x_22 = lean_ctor_get(x_5, 4); lean_inc(x_22); -x_23 = lean_ctor_get(x_6, 4); -lean_inc(x_23); -x_24 = lean_nat_dec_eq(x_22, x_23); -if (x_24 == 0) +x_23 = lean_nat_dec_eq(x_21, x_22); +if (x_23 == 0) { -lean_dec(x_3); -lean_dec(x_1); -x_25 = x_4; -goto block_43; +lean_dec(x_2); +x_24 = x_3; +goto block_42; } else { -lean_object* x_44; lean_object* x_45; -x_44 = l_Lean_Meta_withIncRecDepth___rarg___closed__2; -x_45 = l_Lean_Elab_Tactic_throwError___rarg(x_1, x_44, x_3, x_4); -if (lean_obj_tag(x_45) == 0) +lean_object* x_43; lean_object* x_44; +x_43 = l_Lean_Meta_withIncRecDepth___rarg___closed__2; +x_44 = l_Lean_Elab_Tactic_throwError___rarg(x_43, x_2, x_3); +if (lean_obj_tag(x_44) == 0) { -lean_object* x_46; -x_46 = lean_ctor_get(x_45, 1); -lean_inc(x_46); -lean_dec(x_45); -x_25 = x_46; -goto block_43; +lean_object* x_45; +x_45 = lean_ctor_get(x_44, 1); +lean_inc(x_45); +lean_dec(x_44); +x_24 = x_45; +goto block_42; } else { -uint8_t x_47; -lean_dec(x_23); +uint8_t x_46; lean_dec(x_22); lean_dec(x_21); -lean_dec(x_17); -lean_dec(x_16); +lean_dec(x_20); +lean_dec(x_19); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -2171,110 +2329,111 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_2); -x_47 = !lean_is_exclusive(x_45); -if (x_47 == 0) +lean_dec(x_5); +lean_dec(x_1); +x_46 = !lean_is_exclusive(x_44); +if (x_46 == 0) { -return x_45; +return x_44; } else { -lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_48 = lean_ctor_get(x_45, 0); -x_49 = lean_ctor_get(x_45, 1); -lean_inc(x_49); +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_44, 0); +x_48 = lean_ctor_get(x_44, 1); lean_inc(x_48); -lean_dec(x_45); -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; +lean_inc(x_47); +lean_dec(x_44); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +return x_49; } } } -block_43: +block_42: { -uint8_t x_26; -x_26 = !lean_is_exclusive(x_6); -if (x_26 == 0) +uint8_t x_25; +x_25 = !lean_is_exclusive(x_5); +if (x_25 == 0) { -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_27 = lean_ctor_get(x_6, 4); +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; +x_26 = lean_ctor_get(x_5, 4); +lean_dec(x_26); +x_27 = lean_ctor_get(x_5, 3); lean_dec(x_27); -x_28 = lean_ctor_get(x_6, 3); -lean_dec(x_28); -x_29 = lean_unsigned_to_nat(1u); -x_30 = lean_nat_add(x_22, x_29); -lean_dec(x_22); -lean_ctor_set(x_6, 3, x_30); -if (lean_is_scalar(x_21)) { - x_31 = lean_alloc_ctor(0, 10, 3); +x_28 = lean_unsigned_to_nat(1u); +x_29 = lean_nat_add(x_21, x_28); +lean_dec(x_21); +lean_ctor_set(x_5, 3, x_29); +if (lean_is_scalar(x_20)) { + x_30 = lean_alloc_ctor(0, 11, 3); } else { - x_31 = x_21; + x_30 = x_20; } -lean_ctor_set(x_31, 0, x_6); -lean_ctor_set(x_31, 1, x_9); -lean_ctor_set(x_31, 2, x_10); -lean_ctor_set(x_31, 3, x_11); -lean_ctor_set(x_31, 4, x_12); -lean_ctor_set(x_31, 5, x_13); -lean_ctor_set(x_31, 6, x_14); -lean_ctor_set(x_31, 7, x_15); -lean_ctor_set(x_31, 8, x_16); -lean_ctor_set(x_31, 9, x_17); -lean_ctor_set_uint8(x_31, sizeof(void*)*10, x_18); -lean_ctor_set_uint8(x_31, sizeof(void*)*10 + 1, x_19); -lean_ctor_set_uint8(x_31, sizeof(void*)*10 + 2, x_20); -x_32 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_7); -lean_ctor_set(x_32, 2, x_8); -x_33 = lean_apply_2(x_2, x_32, x_25); -return x_33; +lean_ctor_set(x_30, 0, x_5); +lean_ctor_set(x_30, 1, x_7); +lean_ctor_set(x_30, 2, x_8); +lean_ctor_set(x_30, 3, x_9); +lean_ctor_set(x_30, 4, x_10); +lean_ctor_set(x_30, 5, x_11); +lean_ctor_set(x_30, 6, x_12); +lean_ctor_set(x_30, 7, x_13); +lean_ctor_set(x_30, 8, x_14); +lean_ctor_set(x_30, 9, x_15); +lean_ctor_set(x_30, 10, x_19); +lean_ctor_set_uint8(x_30, sizeof(void*)*11, x_16); +lean_ctor_set_uint8(x_30, sizeof(void*)*11 + 1, x_17); +lean_ctor_set_uint8(x_30, sizeof(void*)*11 + 2, x_18); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_6); +x_32 = lean_apply_2(x_1, x_31, x_24); +return x_32; } else { -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_6, 0); -x_35 = lean_ctor_get(x_6, 1); -x_36 = lean_ctor_get(x_6, 2); -lean_inc(x_36); +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_33 = lean_ctor_get(x_5, 0); +x_34 = lean_ctor_get(x_5, 1); +x_35 = lean_ctor_get(x_5, 2); lean_inc(x_35); lean_inc(x_34); -lean_dec(x_6); -x_37 = lean_unsigned_to_nat(1u); -x_38 = lean_nat_add(x_22, x_37); -lean_dec(x_22); -x_39 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_39, 0, x_34); -lean_ctor_set(x_39, 1, x_35); -lean_ctor_set(x_39, 2, x_36); -lean_ctor_set(x_39, 3, x_38); -lean_ctor_set(x_39, 4, x_23); -if (lean_is_scalar(x_21)) { - x_40 = lean_alloc_ctor(0, 10, 3); +lean_inc(x_33); +lean_dec(x_5); +x_36 = lean_unsigned_to_nat(1u); +x_37 = lean_nat_add(x_21, x_36); +lean_dec(x_21); +x_38 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_38, 0, x_33); +lean_ctor_set(x_38, 1, x_34); +lean_ctor_set(x_38, 2, x_35); +lean_ctor_set(x_38, 3, x_37); +lean_ctor_set(x_38, 4, x_22); +if (lean_is_scalar(x_20)) { + x_39 = lean_alloc_ctor(0, 11, 3); } else { - x_40 = x_21; + x_39 = x_20; } +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_7); +lean_ctor_set(x_39, 2, x_8); +lean_ctor_set(x_39, 3, x_9); +lean_ctor_set(x_39, 4, x_10); +lean_ctor_set(x_39, 5, x_11); +lean_ctor_set(x_39, 6, x_12); +lean_ctor_set(x_39, 7, x_13); +lean_ctor_set(x_39, 8, x_14); +lean_ctor_set(x_39, 9, x_15); +lean_ctor_set(x_39, 10, x_19); +lean_ctor_set_uint8(x_39, sizeof(void*)*11, x_16); +lean_ctor_set_uint8(x_39, sizeof(void*)*11 + 1, x_17); +lean_ctor_set_uint8(x_39, sizeof(void*)*11 + 2, x_18); +x_40 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_9); -lean_ctor_set(x_40, 2, x_10); -lean_ctor_set(x_40, 3, x_11); -lean_ctor_set(x_40, 4, x_12); -lean_ctor_set(x_40, 5, x_13); -lean_ctor_set(x_40, 6, x_14); -lean_ctor_set(x_40, 7, x_15); -lean_ctor_set(x_40, 8, x_16); -lean_ctor_set(x_40, 9, x_17); -lean_ctor_set_uint8(x_40, sizeof(void*)*10, x_18); -lean_ctor_set_uint8(x_40, sizeof(void*)*10 + 1, x_19); -lean_ctor_set_uint8(x_40, sizeof(void*)*10 + 2, x_20); -x_41 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_7); -lean_ctor_set(x_41, 2, x_8); -x_42 = lean_apply_2(x_2, x_41, x_25); -return x_42; +lean_ctor_set(x_40, 1, x_6); +x_41 = lean_apply_2(x_1, x_40, x_24); +return x_41; } } } @@ -2283,7 +2442,7 @@ lean_object* l_Lean_Elab_Tactic_withIncRecDepth(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_withIncRecDepth___rarg), 4, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_withIncRecDepth___rarg), 3, 0); return x_2; } } @@ -2390,7 +2549,7 @@ return x_14; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; uint8_t x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; uint8_t x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; x_15 = lean_ctor_get(x_11, 0); x_16 = lean_ctor_get(x_11, 1); x_17 = lean_ctor_get(x_11, 2); @@ -2400,9 +2559,11 @@ x_20 = lean_ctor_get(x_11, 5); x_21 = lean_ctor_get(x_11, 6); x_22 = lean_ctor_get(x_11, 7); x_23 = lean_ctor_get(x_11, 8); -x_24 = lean_ctor_get_uint8(x_11, sizeof(void*)*10); -x_25 = lean_ctor_get_uint8(x_11, sizeof(void*)*10 + 1); -x_26 = lean_ctor_get_uint8(x_11, sizeof(void*)*10 + 2); +x_24 = lean_ctor_get_uint8(x_11, sizeof(void*)*11); +x_25 = lean_ctor_get_uint8(x_11, sizeof(void*)*11 + 1); +x_26 = lean_ctor_get_uint8(x_11, sizeof(void*)*11 + 2); +x_27 = lean_ctor_get(x_11, 10); +lean_inc(x_27); lean_inc(x_23); lean_inc(x_22); lean_inc(x_21); @@ -2413,334 +2574,336 @@ lean_inc(x_17); lean_inc(x_16); lean_inc(x_15); lean_dec(x_11); -x_27 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_27, 0, x_15); -lean_ctor_set(x_27, 1, x_16); -lean_ctor_set(x_27, 2, x_17); -lean_ctor_set(x_27, 3, x_18); -lean_ctor_set(x_27, 4, x_19); -lean_ctor_set(x_27, 5, x_20); -lean_ctor_set(x_27, 6, x_21); -lean_ctor_set(x_27, 7, x_22); -lean_ctor_set(x_27, 8, x_23); -lean_ctor_set(x_27, 9, x_7); -lean_ctor_set_uint8(x_27, sizeof(void*)*10, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*10 + 1, x_25); -lean_ctor_set_uint8(x_27, sizeof(void*)*10 + 2, x_26); -lean_ctor_set(x_2, 0, x_27); -x_28 = lean_apply_2(x_1, x_2, x_3); -return x_28; +x_28 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_28, 0, x_15); +lean_ctor_set(x_28, 1, x_16); +lean_ctor_set(x_28, 2, x_17); +lean_ctor_set(x_28, 3, x_18); +lean_ctor_set(x_28, 4, x_19); +lean_ctor_set(x_28, 5, x_20); +lean_ctor_set(x_28, 6, x_21); +lean_ctor_set(x_28, 7, x_22); +lean_ctor_set(x_28, 8, x_23); +lean_ctor_set(x_28, 9, x_7); +lean_ctor_set(x_28, 10, x_27); +lean_ctor_set_uint8(x_28, sizeof(void*)*11, x_24); +lean_ctor_set_uint8(x_28, sizeof(void*)*11 + 1, x_25); +lean_ctor_set_uint8(x_28, sizeof(void*)*11 + 2, x_26); +lean_ctor_set(x_2, 0, x_28); +x_29 = lean_apply_2(x_1, x_2, x_3); +return x_29; } } else { -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; uint8_t x_42; uint8_t x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_29 = lean_ctor_get(x_2, 0); -x_30 = lean_ctor_get(x_2, 1); -x_31 = lean_ctor_get(x_2, 2); +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; uint8_t x_42; uint8_t x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_30 = lean_ctor_get(x_2, 0); +x_31 = lean_ctor_get(x_2, 1); lean_inc(x_31); lean_inc(x_30); -lean_inc(x_29); lean_dec(x_2); -x_32 = lean_ctor_get(x_29, 0); +x_32 = lean_ctor_get(x_30, 0); lean_inc(x_32); -x_33 = lean_ctor_get(x_29, 1); +x_33 = lean_ctor_get(x_30, 1); lean_inc(x_33); -x_34 = lean_ctor_get(x_29, 2); +x_34 = lean_ctor_get(x_30, 2); lean_inc(x_34); -x_35 = lean_ctor_get(x_29, 3); +x_35 = lean_ctor_get(x_30, 3); lean_inc(x_35); -x_36 = lean_ctor_get(x_29, 4); +x_36 = lean_ctor_get(x_30, 4); lean_inc(x_36); -x_37 = lean_ctor_get(x_29, 5); +x_37 = lean_ctor_get(x_30, 5); lean_inc(x_37); -x_38 = lean_ctor_get(x_29, 6); +x_38 = lean_ctor_get(x_30, 6); lean_inc(x_38); -x_39 = lean_ctor_get(x_29, 7); +x_39 = lean_ctor_get(x_30, 7); lean_inc(x_39); -x_40 = lean_ctor_get(x_29, 8); +x_40 = lean_ctor_get(x_30, 8); lean_inc(x_40); -x_41 = lean_ctor_get_uint8(x_29, sizeof(void*)*10); -x_42 = lean_ctor_get_uint8(x_29, sizeof(void*)*10 + 1); -x_43 = lean_ctor_get_uint8(x_29, sizeof(void*)*10 + 2); -if (lean_is_exclusive(x_29)) { - lean_ctor_release(x_29, 0); - lean_ctor_release(x_29, 1); - lean_ctor_release(x_29, 2); - lean_ctor_release(x_29, 3); - lean_ctor_release(x_29, 4); - lean_ctor_release(x_29, 5); - lean_ctor_release(x_29, 6); - lean_ctor_release(x_29, 7); - lean_ctor_release(x_29, 8); - lean_ctor_release(x_29, 9); - x_44 = x_29; +x_41 = lean_ctor_get_uint8(x_30, sizeof(void*)*11); +x_42 = lean_ctor_get_uint8(x_30, sizeof(void*)*11 + 1); +x_43 = lean_ctor_get_uint8(x_30, sizeof(void*)*11 + 2); +x_44 = lean_ctor_get(x_30, 10); +lean_inc(x_44); +if (lean_is_exclusive(x_30)) { + lean_ctor_release(x_30, 0); + lean_ctor_release(x_30, 1); + lean_ctor_release(x_30, 2); + lean_ctor_release(x_30, 3); + lean_ctor_release(x_30, 4); + lean_ctor_release(x_30, 5); + lean_ctor_release(x_30, 6); + lean_ctor_release(x_30, 7); + lean_ctor_release(x_30, 8); + lean_ctor_release(x_30, 9); + lean_ctor_release(x_30, 10); + x_45 = x_30; } else { - lean_dec_ref(x_29); - x_44 = lean_box(0); + lean_dec_ref(x_30); + x_45 = lean_box(0); } -if (lean_is_scalar(x_44)) { - x_45 = lean_alloc_ctor(0, 10, 3); +if (lean_is_scalar(x_45)) { + x_46 = lean_alloc_ctor(0, 11, 3); } else { - x_45 = x_44; + x_46 = x_45; } -lean_ctor_set(x_45, 0, x_32); -lean_ctor_set(x_45, 1, x_33); -lean_ctor_set(x_45, 2, x_34); -lean_ctor_set(x_45, 3, x_35); -lean_ctor_set(x_45, 4, x_36); -lean_ctor_set(x_45, 5, x_37); -lean_ctor_set(x_45, 6, x_38); -lean_ctor_set(x_45, 7, x_39); -lean_ctor_set(x_45, 8, x_40); -lean_ctor_set(x_45, 9, x_7); -lean_ctor_set_uint8(x_45, sizeof(void*)*10, x_41); -lean_ctor_set_uint8(x_45, sizeof(void*)*10 + 1, x_42); -lean_ctor_set_uint8(x_45, sizeof(void*)*10 + 2, x_43); -x_46 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_46, 0, x_45); -lean_ctor_set(x_46, 1, x_30); -lean_ctor_set(x_46, 2, x_31); -x_47 = lean_apply_2(x_1, x_46, x_3); -return x_47; +lean_ctor_set(x_46, 0, x_32); +lean_ctor_set(x_46, 1, x_33); +lean_ctor_set(x_46, 2, x_34); +lean_ctor_set(x_46, 3, x_35); +lean_ctor_set(x_46, 4, x_36); +lean_ctor_set(x_46, 5, x_37); +lean_ctor_set(x_46, 6, x_38); +lean_ctor_set(x_46, 7, x_39); +lean_ctor_set(x_46, 8, x_40); +lean_ctor_set(x_46, 9, x_7); +lean_ctor_set(x_46, 10, x_44); +lean_ctor_set_uint8(x_46, sizeof(void*)*11, x_41); +lean_ctor_set_uint8(x_46, sizeof(void*)*11 + 1, x_42); +lean_ctor_set_uint8(x_46, sizeof(void*)*11 + 2, x_43); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_31); +x_48 = lean_apply_2(x_1, x_47, x_3); +return x_48; } } else { -lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; uint8_t x_71; uint8_t x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_48 = lean_ctor_get(x_5, 0); -x_49 = lean_ctor_get(x_5, 1); -x_50 = lean_ctor_get(x_5, 2); -x_51 = lean_ctor_get(x_5, 3); -x_52 = lean_ctor_get(x_5, 4); -x_53 = lean_ctor_get(x_5, 5); +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; uint8_t x_71; uint8_t x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_49 = lean_ctor_get(x_5, 0); +x_50 = lean_ctor_get(x_5, 1); +x_51 = lean_ctor_get(x_5, 2); +x_52 = lean_ctor_get(x_5, 3); +x_53 = lean_ctor_get(x_5, 4); +x_54 = lean_ctor_get(x_5, 5); +lean_inc(x_54); lean_inc(x_53); lean_inc(x_52); lean_inc(x_51); lean_inc(x_50); lean_inc(x_49); -lean_inc(x_48); lean_dec(x_5); -x_54 = lean_unsigned_to_nat(1u); -x_55 = lean_nat_add(x_53, x_54); -x_56 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_56, 0, x_48); -lean_ctor_set(x_56, 1, x_49); -lean_ctor_set(x_56, 2, x_50); -lean_ctor_set(x_56, 3, x_51); -lean_ctor_set(x_56, 4, x_52); -lean_ctor_set(x_56, 5, x_55); -lean_ctor_set(x_3, 0, x_56); -x_57 = lean_ctor_get(x_2, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_2, 1); +x_55 = lean_unsigned_to_nat(1u); +x_56 = lean_nat_add(x_54, x_55); +x_57 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_57, 0, x_49); +lean_ctor_set(x_57, 1, x_50); +lean_ctor_set(x_57, 2, x_51); +lean_ctor_set(x_57, 3, x_52); +lean_ctor_set(x_57, 4, x_53); +lean_ctor_set(x_57, 5, x_56); +lean_ctor_set(x_3, 0, x_57); +x_58 = lean_ctor_get(x_2, 0); lean_inc(x_58); -x_59 = lean_ctor_get(x_2, 2); +x_59 = lean_ctor_get(x_2, 1); lean_inc(x_59); if (lean_is_exclusive(x_2)) { lean_ctor_release(x_2, 0); lean_ctor_release(x_2, 1); - lean_ctor_release(x_2, 2); x_60 = x_2; } else { lean_dec_ref(x_2); x_60 = lean_box(0); } -x_61 = lean_ctor_get(x_57, 0); +x_61 = lean_ctor_get(x_58, 0); lean_inc(x_61); -x_62 = lean_ctor_get(x_57, 1); +x_62 = lean_ctor_get(x_58, 1); lean_inc(x_62); -x_63 = lean_ctor_get(x_57, 2); +x_63 = lean_ctor_get(x_58, 2); lean_inc(x_63); -x_64 = lean_ctor_get(x_57, 3); +x_64 = lean_ctor_get(x_58, 3); lean_inc(x_64); -x_65 = lean_ctor_get(x_57, 4); +x_65 = lean_ctor_get(x_58, 4); lean_inc(x_65); -x_66 = lean_ctor_get(x_57, 5); +x_66 = lean_ctor_get(x_58, 5); lean_inc(x_66); -x_67 = lean_ctor_get(x_57, 6); +x_67 = lean_ctor_get(x_58, 6); lean_inc(x_67); -x_68 = lean_ctor_get(x_57, 7); +x_68 = lean_ctor_get(x_58, 7); lean_inc(x_68); -x_69 = lean_ctor_get(x_57, 8); +x_69 = lean_ctor_get(x_58, 8); lean_inc(x_69); -x_70 = lean_ctor_get_uint8(x_57, sizeof(void*)*10); -x_71 = lean_ctor_get_uint8(x_57, sizeof(void*)*10 + 1); -x_72 = lean_ctor_get_uint8(x_57, sizeof(void*)*10 + 2); -if (lean_is_exclusive(x_57)) { - lean_ctor_release(x_57, 0); - lean_ctor_release(x_57, 1); - lean_ctor_release(x_57, 2); - lean_ctor_release(x_57, 3); - lean_ctor_release(x_57, 4); - lean_ctor_release(x_57, 5); - lean_ctor_release(x_57, 6); - lean_ctor_release(x_57, 7); - lean_ctor_release(x_57, 8); - lean_ctor_release(x_57, 9); - x_73 = x_57; +x_70 = lean_ctor_get_uint8(x_58, sizeof(void*)*11); +x_71 = lean_ctor_get_uint8(x_58, sizeof(void*)*11 + 1); +x_72 = lean_ctor_get_uint8(x_58, sizeof(void*)*11 + 2); +x_73 = lean_ctor_get(x_58, 10); +lean_inc(x_73); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + lean_ctor_release(x_58, 2); + lean_ctor_release(x_58, 3); + lean_ctor_release(x_58, 4); + lean_ctor_release(x_58, 5); + lean_ctor_release(x_58, 6); + lean_ctor_release(x_58, 7); + lean_ctor_release(x_58, 8); + lean_ctor_release(x_58, 9); + lean_ctor_release(x_58, 10); + x_74 = x_58; } else { - lean_dec_ref(x_57); - x_73 = lean_box(0); + lean_dec_ref(x_58); + x_74 = lean_box(0); } -if (lean_is_scalar(x_73)) { - x_74 = lean_alloc_ctor(0, 10, 3); +if (lean_is_scalar(x_74)) { + x_75 = lean_alloc_ctor(0, 11, 3); } else { - x_74 = x_73; + x_75 = x_74; } -lean_ctor_set(x_74, 0, x_61); -lean_ctor_set(x_74, 1, x_62); -lean_ctor_set(x_74, 2, x_63); -lean_ctor_set(x_74, 3, x_64); -lean_ctor_set(x_74, 4, x_65); -lean_ctor_set(x_74, 5, x_66); -lean_ctor_set(x_74, 6, x_67); -lean_ctor_set(x_74, 7, x_68); -lean_ctor_set(x_74, 8, x_69); -lean_ctor_set(x_74, 9, x_53); -lean_ctor_set_uint8(x_74, sizeof(void*)*10, x_70); -lean_ctor_set_uint8(x_74, sizeof(void*)*10 + 1, x_71); -lean_ctor_set_uint8(x_74, sizeof(void*)*10 + 2, x_72); +lean_ctor_set(x_75, 0, x_61); +lean_ctor_set(x_75, 1, x_62); +lean_ctor_set(x_75, 2, x_63); +lean_ctor_set(x_75, 3, x_64); +lean_ctor_set(x_75, 4, x_65); +lean_ctor_set(x_75, 5, x_66); +lean_ctor_set(x_75, 6, x_67); +lean_ctor_set(x_75, 7, x_68); +lean_ctor_set(x_75, 8, x_69); +lean_ctor_set(x_75, 9, x_54); +lean_ctor_set(x_75, 10, x_73); +lean_ctor_set_uint8(x_75, sizeof(void*)*11, x_70); +lean_ctor_set_uint8(x_75, sizeof(void*)*11 + 1, x_71); +lean_ctor_set_uint8(x_75, sizeof(void*)*11 + 2, x_72); if (lean_is_scalar(x_60)) { - x_75 = lean_alloc_ctor(0, 3, 0); + x_76 = lean_alloc_ctor(0, 2, 0); } else { - x_75 = x_60; + x_76 = x_60; } -lean_ctor_set(x_75, 0, x_74); -lean_ctor_set(x_75, 1, x_58); -lean_ctor_set(x_75, 2, x_59); -x_76 = lean_apply_2(x_1, x_75, x_3); -return x_76; +lean_ctor_set(x_76, 0, x_75); +lean_ctor_set(x_76, 1, x_59); +x_77 = lean_apply_2(x_1, x_76, x_3); +return x_77; } } else { -lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; uint8_t x_103; uint8_t x_104; uint8_t x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_77 = lean_ctor_get(x_3, 0); -x_78 = lean_ctor_get(x_3, 1); -lean_inc(x_78); -lean_inc(x_77); -lean_dec(x_3); -x_79 = lean_ctor_get(x_77, 0); +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; uint8_t x_103; uint8_t x_104; uint8_t x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; +x_78 = lean_ctor_get(x_3, 0); +x_79 = lean_ctor_get(x_3, 1); lean_inc(x_79); -x_80 = lean_ctor_get(x_77, 1); +lean_inc(x_78); +lean_dec(x_3); +x_80 = lean_ctor_get(x_78, 0); lean_inc(x_80); -x_81 = lean_ctor_get(x_77, 2); +x_81 = lean_ctor_get(x_78, 1); lean_inc(x_81); -x_82 = lean_ctor_get(x_77, 3); +x_82 = lean_ctor_get(x_78, 2); lean_inc(x_82); -x_83 = lean_ctor_get(x_77, 4); +x_83 = lean_ctor_get(x_78, 3); lean_inc(x_83); -x_84 = lean_ctor_get(x_77, 5); +x_84 = lean_ctor_get(x_78, 4); lean_inc(x_84); -if (lean_is_exclusive(x_77)) { - lean_ctor_release(x_77, 0); - lean_ctor_release(x_77, 1); - lean_ctor_release(x_77, 2); - lean_ctor_release(x_77, 3); - lean_ctor_release(x_77, 4); - lean_ctor_release(x_77, 5); - x_85 = x_77; +x_85 = lean_ctor_get(x_78, 5); +lean_inc(x_85); +if (lean_is_exclusive(x_78)) { + lean_ctor_release(x_78, 0); + lean_ctor_release(x_78, 1); + lean_ctor_release(x_78, 2); + lean_ctor_release(x_78, 3); + lean_ctor_release(x_78, 4); + lean_ctor_release(x_78, 5); + x_86 = x_78; } else { - lean_dec_ref(x_77); - x_85 = lean_box(0); + lean_dec_ref(x_78); + x_86 = lean_box(0); } -x_86 = lean_unsigned_to_nat(1u); -x_87 = lean_nat_add(x_84, x_86); -if (lean_is_scalar(x_85)) { - x_88 = lean_alloc_ctor(0, 6, 0); +x_87 = lean_unsigned_to_nat(1u); +x_88 = lean_nat_add(x_85, x_87); +if (lean_is_scalar(x_86)) { + x_89 = lean_alloc_ctor(0, 6, 0); } else { - x_88 = x_85; + x_89 = x_86; } -lean_ctor_set(x_88, 0, x_79); -lean_ctor_set(x_88, 1, x_80); -lean_ctor_set(x_88, 2, x_81); -lean_ctor_set(x_88, 3, x_82); -lean_ctor_set(x_88, 4, x_83); -lean_ctor_set(x_88, 5, x_87); -x_89 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_89, 0, x_88); -lean_ctor_set(x_89, 1, x_78); -x_90 = lean_ctor_get(x_2, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_2, 1); +lean_ctor_set(x_89, 0, x_80); +lean_ctor_set(x_89, 1, x_81); +lean_ctor_set(x_89, 2, x_82); +lean_ctor_set(x_89, 3, x_83); +lean_ctor_set(x_89, 4, x_84); +lean_ctor_set(x_89, 5, x_88); +x_90 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_90, 1, x_79); +x_91 = lean_ctor_get(x_2, 0); lean_inc(x_91); -x_92 = lean_ctor_get(x_2, 2); +x_92 = lean_ctor_get(x_2, 1); lean_inc(x_92); if (lean_is_exclusive(x_2)) { lean_ctor_release(x_2, 0); lean_ctor_release(x_2, 1); - lean_ctor_release(x_2, 2); x_93 = x_2; } else { lean_dec_ref(x_2); x_93 = lean_box(0); } -x_94 = lean_ctor_get(x_90, 0); +x_94 = lean_ctor_get(x_91, 0); lean_inc(x_94); -x_95 = lean_ctor_get(x_90, 1); +x_95 = lean_ctor_get(x_91, 1); lean_inc(x_95); -x_96 = lean_ctor_get(x_90, 2); +x_96 = lean_ctor_get(x_91, 2); lean_inc(x_96); -x_97 = lean_ctor_get(x_90, 3); +x_97 = lean_ctor_get(x_91, 3); lean_inc(x_97); -x_98 = lean_ctor_get(x_90, 4); +x_98 = lean_ctor_get(x_91, 4); lean_inc(x_98); -x_99 = lean_ctor_get(x_90, 5); +x_99 = lean_ctor_get(x_91, 5); lean_inc(x_99); -x_100 = lean_ctor_get(x_90, 6); +x_100 = lean_ctor_get(x_91, 6); lean_inc(x_100); -x_101 = lean_ctor_get(x_90, 7); +x_101 = lean_ctor_get(x_91, 7); lean_inc(x_101); -x_102 = lean_ctor_get(x_90, 8); +x_102 = lean_ctor_get(x_91, 8); lean_inc(x_102); -x_103 = lean_ctor_get_uint8(x_90, sizeof(void*)*10); -x_104 = lean_ctor_get_uint8(x_90, sizeof(void*)*10 + 1); -x_105 = lean_ctor_get_uint8(x_90, sizeof(void*)*10 + 2); -if (lean_is_exclusive(x_90)) { - lean_ctor_release(x_90, 0); - lean_ctor_release(x_90, 1); - lean_ctor_release(x_90, 2); - lean_ctor_release(x_90, 3); - lean_ctor_release(x_90, 4); - lean_ctor_release(x_90, 5); - lean_ctor_release(x_90, 6); - lean_ctor_release(x_90, 7); - lean_ctor_release(x_90, 8); - lean_ctor_release(x_90, 9); - x_106 = x_90; +x_103 = lean_ctor_get_uint8(x_91, sizeof(void*)*11); +x_104 = lean_ctor_get_uint8(x_91, sizeof(void*)*11 + 1); +x_105 = lean_ctor_get_uint8(x_91, sizeof(void*)*11 + 2); +x_106 = lean_ctor_get(x_91, 10); +lean_inc(x_106); +if (lean_is_exclusive(x_91)) { + lean_ctor_release(x_91, 0); + lean_ctor_release(x_91, 1); + lean_ctor_release(x_91, 2); + lean_ctor_release(x_91, 3); + lean_ctor_release(x_91, 4); + lean_ctor_release(x_91, 5); + lean_ctor_release(x_91, 6); + lean_ctor_release(x_91, 7); + lean_ctor_release(x_91, 8); + lean_ctor_release(x_91, 9); + lean_ctor_release(x_91, 10); + x_107 = x_91; } else { - lean_dec_ref(x_90); - x_106 = lean_box(0); + lean_dec_ref(x_91); + x_107 = lean_box(0); } -if (lean_is_scalar(x_106)) { - x_107 = lean_alloc_ctor(0, 10, 3); +if (lean_is_scalar(x_107)) { + x_108 = lean_alloc_ctor(0, 11, 3); } else { - x_107 = x_106; + x_108 = x_107; } -lean_ctor_set(x_107, 0, x_94); -lean_ctor_set(x_107, 1, x_95); -lean_ctor_set(x_107, 2, x_96); -lean_ctor_set(x_107, 3, x_97); -lean_ctor_set(x_107, 4, x_98); -lean_ctor_set(x_107, 5, x_99); -lean_ctor_set(x_107, 6, x_100); -lean_ctor_set(x_107, 7, x_101); -lean_ctor_set(x_107, 8, x_102); -lean_ctor_set(x_107, 9, x_84); -lean_ctor_set_uint8(x_107, sizeof(void*)*10, x_103); -lean_ctor_set_uint8(x_107, sizeof(void*)*10 + 1, x_104); -lean_ctor_set_uint8(x_107, sizeof(void*)*10 + 2, x_105); +lean_ctor_set(x_108, 0, x_94); +lean_ctor_set(x_108, 1, x_95); +lean_ctor_set(x_108, 2, x_96); +lean_ctor_set(x_108, 3, x_97); +lean_ctor_set(x_108, 4, x_98); +lean_ctor_set(x_108, 5, x_99); +lean_ctor_set(x_108, 6, x_100); +lean_ctor_set(x_108, 7, x_101); +lean_ctor_set(x_108, 8, x_102); +lean_ctor_set(x_108, 9, x_85); +lean_ctor_set(x_108, 10, x_106); +lean_ctor_set_uint8(x_108, sizeof(void*)*11, x_103); +lean_ctor_set_uint8(x_108, sizeof(void*)*11 + 1, x_104); +lean_ctor_set_uint8(x_108, sizeof(void*)*11 + 2, x_105); if (lean_is_scalar(x_93)) { - x_108 = lean_alloc_ctor(0, 3, 0); + x_109 = lean_alloc_ctor(0, 2, 0); } else { - x_108 = x_93; + x_109 = x_93; } -lean_ctor_set(x_108, 0, x_107); -lean_ctor_set(x_108, 1, x_91); -lean_ctor_set(x_108, 2, x_92); -x_109 = lean_apply_2(x_1, x_108, x_89); -return x_109; +lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 1, x_92); +x_110 = lean_apply_2(x_1, x_109, x_90); +return x_110; } } } @@ -2997,16 +3160,15 @@ x_7 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_6, x_4, x_5); return x_7; } } -lean_object* l_Lean_Elab_Tactic_trace(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_Elab_Tactic_trace(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_6; lean_object* x_7; -x_6 = lean_alloc_closure((void*)(l_Lean_Elab_Term_trace___boxed), 5, 3); -lean_closure_set(x_6, 0, x_1); -lean_closure_set(x_6, 1, x_2); -lean_closure_set(x_6, 2, x_3); -x_7 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_6, x_4, x_5); -return x_7; +lean_object* x_5; lean_object* x_6; +x_5 = lean_alloc_closure((void*)(l_Lean_Elab_Term_trace), 4, 2); +lean_closure_set(x_5, 0, x_1); +lean_closure_set(x_5, 1, x_2); +x_6 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_5, x_3, x_4); +return x_6; } } lean_object* l_Lean_Elab_Tactic_traceAtCmdPos(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { @@ -3062,7 +3224,7 @@ x_12 = l___private_Lean_Elab_Term_11__elabUsingElabFnsAux___main___closed__3; x_13 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_13, 0, x_12); lean_ctor_set(x_13, 1, x_11); -x_14 = l_Lean_Elab_Tactic_throwError___rarg(x_2, x_13, x_4, x_5); +x_14 = l_Lean_Elab_Tactic_throwErrorAt___rarg(x_2, x_13, x_4, x_5); return x_14; } else @@ -3191,7 +3353,7 @@ return x_12; } else { -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; uint8_t x_23; uint8_t x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +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; uint8_t x_23; uint8_t x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_13 = lean_ctor_get(x_7, 0); x_14 = lean_ctor_get(x_7, 1); x_15 = lean_ctor_get(x_7, 2); @@ -3202,9 +3364,11 @@ x_19 = lean_ctor_get(x_7, 6); x_20 = lean_ctor_get(x_7, 7); x_21 = lean_ctor_get(x_7, 8); x_22 = lean_ctor_get(x_7, 9); -x_23 = lean_ctor_get_uint8(x_7, sizeof(void*)*10); -x_24 = lean_ctor_get_uint8(x_7, sizeof(void*)*10 + 1); -x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*10 + 2); +x_23 = lean_ctor_get_uint8(x_7, sizeof(void*)*11); +x_24 = lean_ctor_get_uint8(x_7, sizeof(void*)*11 + 1); +x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*11 + 2); +x_26 = lean_ctor_get(x_7, 10); +lean_inc(x_26); lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); @@ -3216,110 +3380,112 @@ lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_dec(x_7); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_1); -lean_ctor_set(x_26, 1, x_2); -x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_21); -x_28 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_28, 0, x_13); -lean_ctor_set(x_28, 1, x_14); -lean_ctor_set(x_28, 2, x_15); -lean_ctor_set(x_28, 3, x_16); -lean_ctor_set(x_28, 4, x_17); -lean_ctor_set(x_28, 5, x_18); -lean_ctor_set(x_28, 6, x_19); -lean_ctor_set(x_28, 7, x_20); -lean_ctor_set(x_28, 8, x_27); -lean_ctor_set(x_28, 9, x_22); -lean_ctor_set_uint8(x_28, sizeof(void*)*10, x_23); -lean_ctor_set_uint8(x_28, sizeof(void*)*10 + 1, x_24); -lean_ctor_set_uint8(x_28, sizeof(void*)*10 + 2, x_25); -lean_ctor_set(x_4, 0, x_28); -x_29 = lean_apply_2(x_3, x_4, x_5); -return x_29; +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_1); +lean_ctor_set(x_27, 1, x_2); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_21); +x_29 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_29, 0, x_13); +lean_ctor_set(x_29, 1, x_14); +lean_ctor_set(x_29, 2, x_15); +lean_ctor_set(x_29, 3, x_16); +lean_ctor_set(x_29, 4, x_17); +lean_ctor_set(x_29, 5, x_18); +lean_ctor_set(x_29, 6, x_19); +lean_ctor_set(x_29, 7, x_20); +lean_ctor_set(x_29, 8, x_28); +lean_ctor_set(x_29, 9, x_22); +lean_ctor_set(x_29, 10, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*11, x_23); +lean_ctor_set_uint8(x_29, sizeof(void*)*11 + 1, x_24); +lean_ctor_set_uint8(x_29, sizeof(void*)*11 + 2, x_25); +lean_ctor_set(x_4, 0, x_29); +x_30 = lean_apply_2(x_3, x_4, x_5); +return x_30; } } else { -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; uint8_t x_44; uint8_t x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_30 = lean_ctor_get(x_4, 0); -x_31 = lean_ctor_get(x_4, 1); -x_32 = lean_ctor_get(x_4, 2); +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; uint8_t x_44; uint8_t x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_31 = lean_ctor_get(x_4, 0); +x_32 = lean_ctor_get(x_4, 1); lean_inc(x_32); lean_inc(x_31); -lean_inc(x_30); lean_dec(x_4); -x_33 = lean_ctor_get(x_30, 0); +x_33 = lean_ctor_get(x_31, 0); lean_inc(x_33); -x_34 = lean_ctor_get(x_30, 1); +x_34 = lean_ctor_get(x_31, 1); lean_inc(x_34); -x_35 = lean_ctor_get(x_30, 2); +x_35 = lean_ctor_get(x_31, 2); lean_inc(x_35); -x_36 = lean_ctor_get(x_30, 3); +x_36 = lean_ctor_get(x_31, 3); lean_inc(x_36); -x_37 = lean_ctor_get(x_30, 4); +x_37 = lean_ctor_get(x_31, 4); lean_inc(x_37); -x_38 = lean_ctor_get(x_30, 5); +x_38 = lean_ctor_get(x_31, 5); lean_inc(x_38); -x_39 = lean_ctor_get(x_30, 6); +x_39 = lean_ctor_get(x_31, 6); lean_inc(x_39); -x_40 = lean_ctor_get(x_30, 7); +x_40 = lean_ctor_get(x_31, 7); lean_inc(x_40); -x_41 = lean_ctor_get(x_30, 8); +x_41 = lean_ctor_get(x_31, 8); lean_inc(x_41); -x_42 = lean_ctor_get(x_30, 9); +x_42 = lean_ctor_get(x_31, 9); lean_inc(x_42); -x_43 = lean_ctor_get_uint8(x_30, sizeof(void*)*10); -x_44 = lean_ctor_get_uint8(x_30, sizeof(void*)*10 + 1); -x_45 = lean_ctor_get_uint8(x_30, sizeof(void*)*10 + 2); -if (lean_is_exclusive(x_30)) { - lean_ctor_release(x_30, 0); - lean_ctor_release(x_30, 1); - lean_ctor_release(x_30, 2); - lean_ctor_release(x_30, 3); - lean_ctor_release(x_30, 4); - lean_ctor_release(x_30, 5); - lean_ctor_release(x_30, 6); - lean_ctor_release(x_30, 7); - lean_ctor_release(x_30, 8); - lean_ctor_release(x_30, 9); - x_46 = x_30; +x_43 = lean_ctor_get_uint8(x_31, sizeof(void*)*11); +x_44 = lean_ctor_get_uint8(x_31, sizeof(void*)*11 + 1); +x_45 = lean_ctor_get_uint8(x_31, sizeof(void*)*11 + 2); +x_46 = lean_ctor_get(x_31, 10); +lean_inc(x_46); +if (lean_is_exclusive(x_31)) { + lean_ctor_release(x_31, 0); + lean_ctor_release(x_31, 1); + lean_ctor_release(x_31, 2); + lean_ctor_release(x_31, 3); + lean_ctor_release(x_31, 4); + lean_ctor_release(x_31, 5); + lean_ctor_release(x_31, 6); + lean_ctor_release(x_31, 7); + lean_ctor_release(x_31, 8); + lean_ctor_release(x_31, 9); + lean_ctor_release(x_31, 10); + x_47 = x_31; } else { - lean_dec_ref(x_30); - x_46 = lean_box(0); + lean_dec_ref(x_31); + x_47 = lean_box(0); } -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_1); -lean_ctor_set(x_47, 1, x_2); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_41); -if (lean_is_scalar(x_46)) { - x_49 = lean_alloc_ctor(0, 10, 3); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_1); +lean_ctor_set(x_48, 1, x_2); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_41); +if (lean_is_scalar(x_47)) { + x_50 = lean_alloc_ctor(0, 11, 3); } else { - x_49 = x_46; + x_50 = x_47; } -lean_ctor_set(x_49, 0, x_33); -lean_ctor_set(x_49, 1, x_34); -lean_ctor_set(x_49, 2, x_35); -lean_ctor_set(x_49, 3, x_36); -lean_ctor_set(x_49, 4, x_37); -lean_ctor_set(x_49, 5, x_38); -lean_ctor_set(x_49, 6, x_39); -lean_ctor_set(x_49, 7, x_40); -lean_ctor_set(x_49, 8, x_48); -lean_ctor_set(x_49, 9, x_42); -lean_ctor_set_uint8(x_49, sizeof(void*)*10, x_43); -lean_ctor_set_uint8(x_49, sizeof(void*)*10 + 1, x_44); -lean_ctor_set_uint8(x_49, sizeof(void*)*10 + 2, x_45); -x_50 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_50, 0, x_49); -lean_ctor_set(x_50, 1, x_31); -lean_ctor_set(x_50, 2, x_32); -x_51 = lean_apply_2(x_3, x_50, x_5); -return x_51; +lean_ctor_set(x_50, 0, x_33); +lean_ctor_set(x_50, 1, x_34); +lean_ctor_set(x_50, 2, x_35); +lean_ctor_set(x_50, 3, x_36); +lean_ctor_set(x_50, 4, x_37); +lean_ctor_set(x_50, 5, x_38); +lean_ctor_set(x_50, 6, x_39); +lean_ctor_set(x_50, 7, x_40); +lean_ctor_set(x_50, 8, x_49); +lean_ctor_set(x_50, 9, x_42); +lean_ctor_set(x_50, 10, x_46); +lean_ctor_set_uint8(x_50, sizeof(void*)*11, x_43); +lean_ctor_set_uint8(x_50, sizeof(void*)*11 + 1, x_44); +lean_ctor_set_uint8(x_50, sizeof(void*)*11 + 2, x_45); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_32); +x_52 = lean_apply_2(x_3, x_51, x_5); +return x_52; } } } @@ -3581,7 +3747,7 @@ lean_object* _init_l_Lean_Elab_Tactic_Lean_Elab_MonadMacroAdapter___closed__10() _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_throwError), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_throwErrorAt), 1, 0); return x_1; } } @@ -3696,7 +3862,7 @@ x_13 = l_Lean_Elab_Term_elabUsingElabFns___closed__6; x_14 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_14, 0, x_12); lean_ctor_set(x_14, 1, x_13); -x_15 = l_Lean_Elab_Tactic_throwError___rarg(x_2, x_14, x_4, x_5); +x_15 = l_Lean_Elab_Tactic_throwErrorAt___rarg(x_2, x_14, x_4, x_5); return x_15; } else @@ -3821,7 +3987,7 @@ lean_ctor_set(x_68, 0, x_67); x_69 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_69, 0, x_68); lean_inc(x_4); -x_70 = l_Lean_Elab_Tactic_throwError___rarg(x_66, x_69, x_4, x_39); +x_70 = l_Lean_Elab_Tactic_throwErrorAt___rarg(x_66, x_69, x_4, x_39); if (lean_obj_tag(x_70) == 0) { lean_object* x_71; lean_object* x_72; @@ -4064,7 +4230,7 @@ lean_ctor_set(x_117, 0, x_116); x_118 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_118, 0, x_117); lean_inc(x_4); -x_119 = l_Lean_Elab_Tactic_throwError___rarg(x_115, x_118, x_4, x_39); +x_119 = l_Lean_Elab_Tactic_throwErrorAt___rarg(x_115, x_118, x_4, x_39); if (lean_obj_tag(x_119) == 0) { lean_object* x_120; lean_object* x_121; @@ -4546,7 +4712,7 @@ x_12 = l_Lean_Elab_Term_elabUsingElabFns___closed__6; x_13 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); -x_14 = l_Lean_Elab_Tactic_throwError___rarg(x_1, x_13, x_3, x_4); +x_14 = l_Lean_Elab_Tactic_throwErrorAt___rarg(x_1, x_13, x_3, x_4); return x_14; } else @@ -4671,7 +4837,7 @@ lean_ctor_set(x_67, 0, x_66); x_68 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_68, 0, x_67); lean_inc(x_3); -x_69 = l_Lean_Elab_Tactic_throwError___rarg(x_65, x_68, x_3, x_38); +x_69 = l_Lean_Elab_Tactic_throwErrorAt___rarg(x_65, x_68, x_3, x_38); if (lean_obj_tag(x_69) == 0) { lean_object* x_70; lean_object* x_71; @@ -4910,7 +5076,7 @@ lean_ctor_set(x_116, 0, x_115); x_117 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_117, 0, x_116); lean_inc(x_3); -x_118 = l_Lean_Elab_Tactic_throwError___rarg(x_114, x_117, x_3, x_38); +x_118 = l_Lean_Elab_Tactic_throwErrorAt___rarg(x_114, x_117, x_3, x_38); if (lean_obj_tag(x_118) == 0) { lean_object* x_119; lean_object* x_120; @@ -5203,82 +5369,74 @@ return x_2; lean_object* l_Lean_Elab_Tactic_evalTactic___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; uint8_t x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; -x_4 = lean_ctor_get(x_2, 0); -lean_inc(x_4); -x_5 = lean_ctor_get(x_4, 0); -lean_inc(x_5); -x_6 = lean_ctor_get(x_2, 1); -lean_inc(x_6); -x_7 = lean_ctor_get(x_2, 2); -lean_inc(x_7); -x_8 = lean_ctor_get(x_4, 1); -lean_inc(x_8); -x_9 = lean_ctor_get(x_4, 2); -lean_inc(x_9); -x_10 = lean_ctor_get(x_4, 3); -lean_inc(x_10); -x_11 = lean_ctor_get(x_4, 4); -lean_inc(x_11); -x_12 = lean_ctor_get(x_4, 5); -lean_inc(x_12); -x_13 = lean_ctor_get(x_4, 6); -lean_inc(x_13); -x_14 = lean_ctor_get(x_4, 7); -lean_inc(x_14); -x_15 = lean_ctor_get(x_4, 8); +uint8_t x_4; +x_4 = !lean_is_exclusive(x_2); +if (x_4 == 0) +{ +lean_object* x_5; uint8_t x_6; +x_5 = lean_ctor_get(x_2, 0); +x_6 = !lean_is_exclusive(x_5); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; uint8_t x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; +x_7 = lean_ctor_get(x_2, 1); +x_8 = lean_ctor_get(x_5, 0); +x_9 = lean_ctor_get(x_5, 1); +x_10 = lean_ctor_get(x_5, 2); +x_11 = lean_ctor_get(x_5, 3); +x_12 = lean_ctor_get(x_5, 4); +x_13 = lean_ctor_get(x_5, 5); +x_14 = lean_ctor_get(x_5, 6); +x_15 = lean_ctor_get(x_5, 7); +x_16 = lean_ctor_get(x_5, 8); +x_17 = lean_ctor_get_uint8(x_5, sizeof(void*)*11); +x_18 = lean_ctor_get_uint8(x_5, sizeof(void*)*11 + 1); +x_19 = lean_ctor_get_uint8(x_5, sizeof(void*)*11 + 2); +x_20 = lean_ctor_get(x_5, 10); +lean_dec(x_20); +lean_inc(x_1); +lean_inc(x_16); lean_inc(x_15); -x_16 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); -x_17 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); -x_18 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 2); -if (lean_is_exclusive(x_4)) { - lean_ctor_release(x_4, 0); - lean_ctor_release(x_4, 1); - lean_ctor_release(x_4, 2); - lean_ctor_release(x_4, 3); - lean_ctor_release(x_4, 4); - lean_ctor_release(x_4, 5); - lean_ctor_release(x_4, 6); - lean_ctor_release(x_4, 7); - lean_ctor_release(x_4, 8); - lean_ctor_release(x_4, 9); - x_19 = x_4; -} else { - lean_dec_ref(x_4); - x_19 = lean_box(0); -} -x_20 = lean_ctor_get(x_5, 3); -lean_inc(x_20); -x_21 = lean_ctor_get(x_5, 4); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_ctor_set(x_5, 10, x_1); +lean_inc(x_7); +x_21 = lean_ctor_get(x_8, 3); lean_inc(x_21); -x_22 = lean_nat_dec_eq(x_20, x_21); -if (x_22 == 0) +x_22 = lean_ctor_get(x_8, 4); +lean_inc(x_22); +x_23 = lean_nat_dec_eq(x_21, x_22); +if (x_23 == 0) { lean_dec(x_2); -x_23 = x_3; -goto block_249; +x_24 = x_3; +goto block_250; } else { -lean_object* x_250; lean_object* x_251; -x_250 = l_Lean_Meta_withIncRecDepth___rarg___closed__2; -lean_inc(x_1); -x_251 = l_Lean_Elab_Tactic_throwError___rarg(x_1, x_250, x_2, x_3); -if (lean_obj_tag(x_251) == 0) +lean_object* x_251; lean_object* x_252; +x_251 = l_Lean_Meta_withIncRecDepth___rarg___closed__2; +x_252 = l_Lean_Elab_Tactic_throwError___rarg(x_251, x_2, x_3); +if (lean_obj_tag(x_252) == 0) { -lean_object* x_252; -x_252 = lean_ctor_get(x_251, 1); -lean_inc(x_252); -lean_dec(x_251); -x_23 = x_252; -goto block_249; +lean_object* x_253; +x_253 = lean_ctor_get(x_252, 1); +lean_inc(x_253); +lean_dec(x_252); +x_24 = x_253; +goto block_250; } else { -uint8_t x_253; +uint8_t x_254; +lean_dec(x_22); lean_dec(x_21); -lean_dec(x_20); -lean_dec(x_19); +lean_dec(x_16); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -5288,868 +5446,1618 @@ 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_1); -x_253 = !lean_is_exclusive(x_251); -if (x_253 == 0) +x_254 = !lean_is_exclusive(x_252); +if (x_254 == 0) { -return x_251; +return x_252; } else { -lean_object* x_254; lean_object* x_255; lean_object* x_256; -x_254 = lean_ctor_get(x_251, 0); -x_255 = lean_ctor_get(x_251, 1); +lean_object* x_255; lean_object* x_256; lean_object* x_257; +x_255 = lean_ctor_get(x_252, 0); +x_256 = lean_ctor_get(x_252, 1); +lean_inc(x_256); lean_inc(x_255); -lean_inc(x_254); -lean_dec(x_251); -x_256 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_256, 0, x_254); -lean_ctor_set(x_256, 1, x_255); -return x_256; +lean_dec(x_252); +x_257 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_257, 0, x_255); +lean_ctor_set(x_257, 1, x_256); +return x_257; } } } -block_249: +block_250: { -uint8_t x_24; -x_24 = !lean_is_exclusive(x_5); -if (x_24 == 0) +uint8_t x_25; +x_25 = !lean_is_exclusive(x_8); +if (x_25 == 0) { -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; -x_25 = lean_ctor_get(x_5, 4); -lean_dec(x_25); -x_26 = lean_ctor_get(x_5, 3); +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; +x_26 = lean_ctor_get(x_8, 4); lean_dec(x_26); -x_27 = lean_unsigned_to_nat(1u); -x_28 = lean_nat_add(x_20, x_27); -lean_dec(x_20); -lean_ctor_set(x_5, 3, x_28); -x_29 = !lean_is_exclusive(x_23); -if (x_29 == 0) +x_27 = lean_ctor_get(x_8, 3); +lean_dec(x_27); +x_28 = lean_unsigned_to_nat(1u); +x_29 = lean_nat_add(x_21, x_28); +lean_dec(x_21); +lean_ctor_set(x_8, 3, x_29); +x_30 = !lean_is_exclusive(x_24); +if (x_30 == 0) { -lean_object* x_30; uint8_t x_31; -x_30 = lean_ctor_get(x_23, 0); -x_31 = !lean_is_exclusive(x_30); -if (x_31 == 0) +lean_object* x_31; uint8_t x_32; +x_31 = lean_ctor_get(x_24, 0); +x_32 = !lean_is_exclusive(x_31); +if (x_32 == 0) { -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_32 = lean_ctor_get(x_30, 5); -x_33 = lean_nat_add(x_32, x_27); -lean_ctor_set(x_30, 5, x_33); -if (lean_is_scalar(x_19)) { - x_34 = lean_alloc_ctor(0, 10, 3); -} else { - x_34 = x_19; -} -lean_ctor_set(x_34, 0, x_5); -lean_ctor_set(x_34, 1, x_8); -lean_ctor_set(x_34, 2, x_9); -lean_ctor_set(x_34, 3, x_10); -lean_ctor_set(x_34, 4, x_11); -lean_ctor_set(x_34, 5, x_12); -lean_ctor_set(x_34, 6, x_13); -lean_ctor_set(x_34, 7, x_14); -lean_ctor_set(x_34, 8, x_15); -lean_ctor_set(x_34, 9, x_32); -lean_ctor_set_uint8(x_34, sizeof(void*)*10, x_16); -lean_ctor_set_uint8(x_34, sizeof(void*)*10 + 1, x_17); -lean_ctor_set_uint8(x_34, sizeof(void*)*10 + 2, x_18); -x_35 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_6); -lean_ctor_set(x_35, 2, x_7); +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_33 = lean_ctor_get(x_31, 5); +x_34 = lean_nat_add(x_33, x_28); +lean_ctor_set(x_31, 5, x_34); +lean_inc(x_1); +x_35 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_35, 0, x_8); +lean_ctor_set(x_35, 1, x_9); +lean_ctor_set(x_35, 2, x_10); +lean_ctor_set(x_35, 3, x_11); +lean_ctor_set(x_35, 4, x_12); +lean_ctor_set(x_35, 5, x_13); +lean_ctor_set(x_35, 6, x_14); +lean_ctor_set(x_35, 7, x_15); +lean_ctor_set(x_35, 8, x_16); +lean_ctor_set(x_35, 9, x_33); +lean_ctor_set(x_35, 10, x_1); +lean_ctor_set_uint8(x_35, sizeof(void*)*11, x_17); +lean_ctor_set_uint8(x_35, sizeof(void*)*11 + 1, x_18); +lean_ctor_set_uint8(x_35, sizeof(void*)*11 + 2, x_19); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_7); if (lean_obj_tag(x_1) == 1) { -lean_object* x_36; lean_object* x_37; uint8_t x_38; -x_36 = lean_ctor_get(x_1, 0); +lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_37 = lean_ctor_get(x_1, 0); +lean_inc(x_37); +x_38 = l_Lean_nullKind; +x_39 = lean_name_eq(x_37, x_38); +lean_dec(x_37); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +lean_inc(x_1); +x_40 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic___main___lambda__1___boxed), 2, 1); +lean_closure_set(x_40, 0, x_1); +x_41 = l___private_Lean_Elab_Util_4__regTraceClasses___closed__2; +x_42 = lean_alloc_closure((void*)(l_Lean_Elab_Term_trace), 4, 2); +lean_closure_set(x_42, 0, x_41); +lean_closure_set(x_42, 1, x_40); lean_inc(x_36); -x_37 = l_Lean_nullKind; -x_38 = lean_name_eq(x_36, x_37); -lean_dec(x_36); -if (x_38 == 0) +x_43 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_42, x_36, x_24); +if (lean_obj_tag(x_43) == 0) { -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -lean_inc(x_1); -x_39 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic___main___lambda__1___boxed), 2, 1); -lean_closure_set(x_39, 0, x_1); -x_40 = l___private_Lean_Elab_Util_4__regTraceClasses___closed__2; -lean_inc(x_1); -x_41 = lean_alloc_closure((void*)(l_Lean_Elab_Term_trace___boxed), 5, 3); -lean_closure_set(x_41, 0, x_40); -lean_closure_set(x_41, 1, x_1); -lean_closure_set(x_41, 2, x_39); -lean_inc(x_35); -x_42 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_41, x_35, x_23); -if (lean_obj_tag(x_42) == 0) -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_43 = lean_ctor_get(x_42, 1); -lean_inc(x_43); -lean_dec(x_42); -x_44 = l_Lean_Elab_Tactic_tacticElabAttribute; -x_45 = lean_ctor_get(x_44, 1); -lean_inc(x_45); -x_46 = lean_ctor_get(x_43, 0); +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_44 = lean_ctor_get(x_43, 1); +lean_inc(x_44); +lean_dec(x_43); +x_45 = l_Lean_Elab_Tactic_tacticElabAttribute; +x_46 = lean_ctor_get(x_45, 1); lean_inc(x_46); -x_47 = lean_ctor_get(x_46, 0); +x_47 = lean_ctor_get(x_44, 0); lean_inc(x_47); -lean_dec(x_46); x_48 = lean_ctor_get(x_47, 0); lean_inc(x_48); lean_dec(x_47); -x_49 = l_Lean_PersistentEnvExtension_getState___rarg(x_45, x_48); +x_49 = lean_ctor_get(x_48, 0); +lean_inc(x_49); lean_dec(x_48); -lean_dec(x_45); -x_50 = lean_ctor_get(x_49, 1); -lean_inc(x_50); +x_50 = l_Lean_PersistentEnvExtension_getState___rarg(x_46, x_49); lean_dec(x_49); +lean_dec(x_46); +x_51 = lean_ctor_get(x_50, 1); +lean_inc(x_51); +lean_dec(x_50); lean_inc(x_1); -x_51 = l_Lean_Syntax_getKind(x_1); -x_52 = l_Lean_SMap_find_x3f___at_Lean_Elab_Tactic_evalTactic___main___spec__1(x_50, x_51); -if (lean_obj_tag(x_52) == 0) +x_52 = l_Lean_Syntax_getKind(x_1); +x_53 = l_Lean_SMap_find_x3f___at_Lean_Elab_Tactic_evalTactic___main___spec__1(x_51, x_52); +if (lean_obj_tag(x_53) == 0) { -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_53 = l_Lean_Elab_Tactic_getEnv___rarg(x_43); -x_54 = lean_ctor_get(x_53, 0); -lean_inc(x_54); -x_55 = lean_ctor_get(x_53, 1); +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_54 = l_Lean_Elab_Tactic_getEnv___rarg(x_44); +x_55 = lean_ctor_get(x_54, 0); lean_inc(x_55); -lean_dec(x_53); -x_56 = l_Lean_Elab_macroAttribute; -x_57 = lean_ctor_get(x_56, 1); -lean_inc(x_57); -x_58 = l_Lean_PersistentEnvExtension_getState___rarg(x_57, x_54); +x_56 = lean_ctor_get(x_54, 1); +lean_inc(x_56); lean_dec(x_54); -lean_dec(x_57); -x_59 = lean_ctor_get(x_58, 1); -lean_inc(x_59); +x_57 = l_Lean_Elab_macroAttribute; +x_58 = lean_ctor_get(x_57, 1); +lean_inc(x_58); +x_59 = l_Lean_PersistentEnvExtension_getState___rarg(x_58, x_55); +lean_dec(x_55); lean_dec(x_58); -x_60 = l_Lean_SMap_find_x3f___at_Lean_Elab_getMacros___spec__1(x_59, x_51); -lean_dec(x_51); -if (lean_obj_tag(x_60) == 0) -{ -lean_object* x_61; lean_object* x_62; -x_61 = lean_box(0); -x_62 = l___private_Lean_Elab_Tactic_Basic_2__expandTacticMacroFns___main___at_Lean_Elab_Tactic_evalTactic___main___spec__7(x_1, x_61, x_35, x_55); -return x_62; -} -else -{ -lean_object* x_63; lean_object* x_64; -x_63 = lean_ctor_get(x_60, 0); -lean_inc(x_63); -lean_dec(x_60); -x_64 = l___private_Lean_Elab_Tactic_Basic_2__expandTacticMacroFns___main___at_Lean_Elab_Tactic_evalTactic___main___spec__7(x_1, x_63, x_35, x_55); -return x_64; -} -} -else -{ -lean_object* x_65; lean_object* x_66; -lean_dec(x_51); -x_65 = lean_ctor_get(x_52, 0); -lean_inc(x_65); +x_60 = lean_ctor_get(x_59, 1); +lean_inc(x_60); +lean_dec(x_59); +x_61 = l_Lean_SMap_find_x3f___at_Lean_Elab_getMacros___spec__1(x_60, x_52); lean_dec(x_52); -lean_inc(x_43); -x_66 = l___private_Lean_Elab_Tactic_Basic_1__evalTacticUsing___main(x_43, x_1, x_65, x_35, x_43); -return x_66; +if (lean_obj_tag(x_61) == 0) +{ +lean_object* x_62; lean_object* x_63; +x_62 = lean_box(0); +x_63 = l___private_Lean_Elab_Tactic_Basic_2__expandTacticMacroFns___main___at_Lean_Elab_Tactic_evalTactic___main___spec__7(x_1, x_62, x_36, x_56); +return x_63; +} +else +{ +lean_object* x_64; lean_object* x_65; +x_64 = lean_ctor_get(x_61, 0); +lean_inc(x_64); +lean_dec(x_61); +x_65 = l___private_Lean_Elab_Tactic_Basic_2__expandTacticMacroFns___main___at_Lean_Elab_Tactic_evalTactic___main___spec__7(x_1, x_64, x_36, x_56); +return x_65; } } else { -uint8_t x_67; -lean_dec(x_35); +lean_object* x_66; lean_object* x_67; +lean_dec(x_52); +x_66 = lean_ctor_get(x_53, 0); +lean_inc(x_66); +lean_dec(x_53); +lean_inc(x_44); +x_67 = l___private_Lean_Elab_Tactic_Basic_1__evalTacticUsing___main(x_44, x_1, x_66, x_36, x_44); +return x_67; +} +} +else +{ +uint8_t x_68; +lean_dec(x_36); lean_dec(x_1); -x_67 = !lean_is_exclusive(x_42); -if (x_67 == 0) +x_68 = !lean_is_exclusive(x_43); +if (x_68 == 0) { -return x_42; +return x_43; } else { -lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_68 = lean_ctor_get(x_42, 0); -x_69 = lean_ctor_get(x_42, 1); +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_43, 0); +x_70 = lean_ctor_get(x_43, 1); +lean_inc(x_70); lean_inc(x_69); -lean_inc(x_68); -lean_dec(x_42); -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_dec(x_43); +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_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_71 = l_Lean_Syntax_getArgs(x_1); +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_72 = l_Lean_Syntax_getArgs(x_1); lean_dec(x_1); -x_72 = lean_unsigned_to_nat(2u); -x_73 = lean_unsigned_to_nat(0u); -x_74 = lean_box(0); -x_75 = l_Array_foldlStepMAux___main___at_Lean_Elab_Tactic_evalTactic___main___spec__8(x_72, x_71, x_73, x_74, x_35, x_23); -lean_dec(x_71); -return x_75; +x_73 = lean_unsigned_to_nat(2u); +x_74 = lean_unsigned_to_nat(0u); +x_75 = lean_box(0); +x_76 = l_Array_foldlStepMAux___main___at_Lean_Elab_Tactic_evalTactic___main___spec__8(x_73, x_72, x_74, x_75, x_36, x_24); +lean_dec(x_72); +return x_76; } } else { -lean_object* x_76; lean_object* x_77; -x_76 = l_Lean_Elab_Tactic_evalTactic___main___closed__3; -x_77 = l_Lean_Elab_Tactic_throwError___rarg(x_1, x_76, x_35, x_23); -return x_77; +lean_object* x_77; lean_object* x_78; +lean_dec(x_1); +x_77 = l_Lean_Elab_Tactic_evalTactic___main___closed__3; +x_78 = l_Lean_Elab_Tactic_throwError___rarg(x_77, x_36, x_24); +return x_78; } } else { -lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_78 = lean_ctor_get(x_30, 0); -x_79 = lean_ctor_get(x_30, 1); -x_80 = lean_ctor_get(x_30, 2); -x_81 = lean_ctor_get(x_30, 3); -x_82 = lean_ctor_get(x_30, 4); -x_83 = lean_ctor_get(x_30, 5); +lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_79 = lean_ctor_get(x_31, 0); +x_80 = lean_ctor_get(x_31, 1); +x_81 = lean_ctor_get(x_31, 2); +x_82 = lean_ctor_get(x_31, 3); +x_83 = lean_ctor_get(x_31, 4); +x_84 = lean_ctor_get(x_31, 5); +lean_inc(x_84); lean_inc(x_83); lean_inc(x_82); lean_inc(x_81); lean_inc(x_80); lean_inc(x_79); -lean_inc(x_78); -lean_dec(x_30); -x_84 = lean_nat_add(x_83, x_27); -x_85 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_85, 0, x_78); -lean_ctor_set(x_85, 1, x_79); -lean_ctor_set(x_85, 2, x_80); -lean_ctor_set(x_85, 3, x_81); -lean_ctor_set(x_85, 4, x_82); -lean_ctor_set(x_85, 5, x_84); -lean_ctor_set(x_23, 0, x_85); -if (lean_is_scalar(x_19)) { - x_86 = lean_alloc_ctor(0, 10, 3); -} else { - x_86 = x_19; -} -lean_ctor_set(x_86, 0, x_5); -lean_ctor_set(x_86, 1, x_8); -lean_ctor_set(x_86, 2, x_9); -lean_ctor_set(x_86, 3, x_10); -lean_ctor_set(x_86, 4, x_11); -lean_ctor_set(x_86, 5, x_12); -lean_ctor_set(x_86, 6, x_13); -lean_ctor_set(x_86, 7, x_14); -lean_ctor_set(x_86, 8, x_15); -lean_ctor_set(x_86, 9, x_83); -lean_ctor_set_uint8(x_86, sizeof(void*)*10, x_16); -lean_ctor_set_uint8(x_86, sizeof(void*)*10 + 1, x_17); -lean_ctor_set_uint8(x_86, sizeof(void*)*10 + 2, x_18); -x_87 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_87, 0, x_86); -lean_ctor_set(x_87, 1, x_6); -lean_ctor_set(x_87, 2, x_7); +lean_dec(x_31); +x_85 = lean_nat_add(x_84, x_28); +x_86 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_86, 0, x_79); +lean_ctor_set(x_86, 1, x_80); +lean_ctor_set(x_86, 2, x_81); +lean_ctor_set(x_86, 3, x_82); +lean_ctor_set(x_86, 4, x_83); +lean_ctor_set(x_86, 5, x_85); +lean_ctor_set(x_24, 0, x_86); +lean_inc(x_1); +x_87 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_87, 0, x_8); +lean_ctor_set(x_87, 1, x_9); +lean_ctor_set(x_87, 2, x_10); +lean_ctor_set(x_87, 3, x_11); +lean_ctor_set(x_87, 4, x_12); +lean_ctor_set(x_87, 5, x_13); +lean_ctor_set(x_87, 6, x_14); +lean_ctor_set(x_87, 7, x_15); +lean_ctor_set(x_87, 8, x_16); +lean_ctor_set(x_87, 9, x_84); +lean_ctor_set(x_87, 10, x_1); +lean_ctor_set_uint8(x_87, sizeof(void*)*11, x_17); +lean_ctor_set_uint8(x_87, sizeof(void*)*11 + 1, x_18); +lean_ctor_set_uint8(x_87, sizeof(void*)*11 + 2, x_19); +x_88 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_88, 0, x_87); +lean_ctor_set(x_88, 1, x_7); if (lean_obj_tag(x_1) == 1) { -lean_object* x_88; lean_object* x_89; uint8_t x_90; -x_88 = lean_ctor_get(x_1, 0); +lean_object* x_89; lean_object* x_90; uint8_t x_91; +x_89 = lean_ctor_get(x_1, 0); +lean_inc(x_89); +x_90 = l_Lean_nullKind; +x_91 = lean_name_eq(x_89, x_90); +lean_dec(x_89); +if (x_91 == 0) +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +lean_inc(x_1); +x_92 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic___main___lambda__1___boxed), 2, 1); +lean_closure_set(x_92, 0, x_1); +x_93 = l___private_Lean_Elab_Util_4__regTraceClasses___closed__2; +x_94 = lean_alloc_closure((void*)(l_Lean_Elab_Term_trace), 4, 2); +lean_closure_set(x_94, 0, x_93); +lean_closure_set(x_94, 1, x_92); lean_inc(x_88); -x_89 = l_Lean_nullKind; -x_90 = lean_name_eq(x_88, x_89); -lean_dec(x_88); -if (x_90 == 0) +x_95 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_94, x_88, x_24); +if (lean_obj_tag(x_95) == 0) { -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; -lean_inc(x_1); -x_91 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic___main___lambda__1___boxed), 2, 1); -lean_closure_set(x_91, 0, x_1); -x_92 = l___private_Lean_Elab_Util_4__regTraceClasses___closed__2; -lean_inc(x_1); -x_93 = lean_alloc_closure((void*)(l_Lean_Elab_Term_trace___boxed), 5, 3); -lean_closure_set(x_93, 0, x_92); -lean_closure_set(x_93, 1, x_1); -lean_closure_set(x_93, 2, x_91); -lean_inc(x_87); -x_94 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_93, x_87, x_23); -if (lean_obj_tag(x_94) == 0) -{ -lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_95 = lean_ctor_get(x_94, 1); -lean_inc(x_95); -lean_dec(x_94); -x_96 = l_Lean_Elab_Tactic_tacticElabAttribute; -x_97 = lean_ctor_get(x_96, 1); -lean_inc(x_97); -x_98 = lean_ctor_get(x_95, 0); +lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +x_96 = lean_ctor_get(x_95, 1); +lean_inc(x_96); +lean_dec(x_95); +x_97 = l_Lean_Elab_Tactic_tacticElabAttribute; +x_98 = lean_ctor_get(x_97, 1); lean_inc(x_98); -x_99 = lean_ctor_get(x_98, 0); +x_99 = lean_ctor_get(x_96, 0); lean_inc(x_99); -lean_dec(x_98); x_100 = lean_ctor_get(x_99, 0); lean_inc(x_100); lean_dec(x_99); -x_101 = l_Lean_PersistentEnvExtension_getState___rarg(x_97, x_100); +x_101 = lean_ctor_get(x_100, 0); +lean_inc(x_101); lean_dec(x_100); -lean_dec(x_97); -x_102 = lean_ctor_get(x_101, 1); -lean_inc(x_102); +x_102 = l_Lean_PersistentEnvExtension_getState___rarg(x_98, x_101); lean_dec(x_101); +lean_dec(x_98); +x_103 = lean_ctor_get(x_102, 1); +lean_inc(x_103); +lean_dec(x_102); lean_inc(x_1); -x_103 = l_Lean_Syntax_getKind(x_1); -x_104 = l_Lean_SMap_find_x3f___at_Lean_Elab_Tactic_evalTactic___main___spec__1(x_102, x_103); -if (lean_obj_tag(x_104) == 0) +x_104 = l_Lean_Syntax_getKind(x_1); +x_105 = l_Lean_SMap_find_x3f___at_Lean_Elab_Tactic_evalTactic___main___spec__1(x_103, x_104); +if (lean_obj_tag(x_105) == 0) { -lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; -x_105 = l_Lean_Elab_Tactic_getEnv___rarg(x_95); -x_106 = lean_ctor_get(x_105, 0); -lean_inc(x_106); -x_107 = lean_ctor_get(x_105, 1); +lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; +x_106 = l_Lean_Elab_Tactic_getEnv___rarg(x_96); +x_107 = lean_ctor_get(x_106, 0); lean_inc(x_107); -lean_dec(x_105); -x_108 = l_Lean_Elab_macroAttribute; -x_109 = lean_ctor_get(x_108, 1); -lean_inc(x_109); -x_110 = l_Lean_PersistentEnvExtension_getState___rarg(x_109, x_106); +x_108 = lean_ctor_get(x_106, 1); +lean_inc(x_108); lean_dec(x_106); -lean_dec(x_109); -x_111 = lean_ctor_get(x_110, 1); -lean_inc(x_111); +x_109 = l_Lean_Elab_macroAttribute; +x_110 = lean_ctor_get(x_109, 1); +lean_inc(x_110); +x_111 = l_Lean_PersistentEnvExtension_getState___rarg(x_110, x_107); +lean_dec(x_107); lean_dec(x_110); -x_112 = l_Lean_SMap_find_x3f___at_Lean_Elab_getMacros___spec__1(x_111, x_103); -lean_dec(x_103); -if (lean_obj_tag(x_112) == 0) -{ -lean_object* x_113; lean_object* x_114; -x_113 = lean_box(0); -x_114 = l___private_Lean_Elab_Tactic_Basic_2__expandTacticMacroFns___main___at_Lean_Elab_Tactic_evalTactic___main___spec__7(x_1, x_113, x_87, x_107); -return x_114; -} -else -{ -lean_object* x_115; lean_object* x_116; -x_115 = lean_ctor_get(x_112, 0); -lean_inc(x_115); -lean_dec(x_112); -x_116 = l___private_Lean_Elab_Tactic_Basic_2__expandTacticMacroFns___main___at_Lean_Elab_Tactic_evalTactic___main___spec__7(x_1, x_115, x_87, x_107); -return x_116; -} -} -else -{ -lean_object* x_117; lean_object* x_118; -lean_dec(x_103); -x_117 = lean_ctor_get(x_104, 0); -lean_inc(x_117); +x_112 = lean_ctor_get(x_111, 1); +lean_inc(x_112); +lean_dec(x_111); +x_113 = l_Lean_SMap_find_x3f___at_Lean_Elab_getMacros___spec__1(x_112, x_104); lean_dec(x_104); -lean_inc(x_95); -x_118 = l___private_Lean_Elab_Tactic_Basic_1__evalTacticUsing___main(x_95, x_1, x_117, x_87, x_95); -return x_118; +if (lean_obj_tag(x_113) == 0) +{ +lean_object* x_114; lean_object* x_115; +x_114 = lean_box(0); +x_115 = l___private_Lean_Elab_Tactic_Basic_2__expandTacticMacroFns___main___at_Lean_Elab_Tactic_evalTactic___main___spec__7(x_1, x_114, x_88, x_108); +return x_115; +} +else +{ +lean_object* x_116; lean_object* x_117; +x_116 = lean_ctor_get(x_113, 0); +lean_inc(x_116); +lean_dec(x_113); +x_117 = l___private_Lean_Elab_Tactic_Basic_2__expandTacticMacroFns___main___at_Lean_Elab_Tactic_evalTactic___main___spec__7(x_1, x_116, x_88, x_108); +return x_117; } } else { -lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; -lean_dec(x_87); +lean_object* x_118; lean_object* x_119; +lean_dec(x_104); +x_118 = lean_ctor_get(x_105, 0); +lean_inc(x_118); +lean_dec(x_105); +lean_inc(x_96); +x_119 = l___private_Lean_Elab_Tactic_Basic_1__evalTacticUsing___main(x_96, x_1, x_118, x_88, x_96); +return x_119; +} +} +else +{ +lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; +lean_dec(x_88); lean_dec(x_1); -x_119 = lean_ctor_get(x_94, 0); -lean_inc(x_119); -x_120 = lean_ctor_get(x_94, 1); +x_120 = lean_ctor_get(x_95, 0); lean_inc(x_120); -if (lean_is_exclusive(x_94)) { - lean_ctor_release(x_94, 0); - lean_ctor_release(x_94, 1); - x_121 = x_94; +x_121 = lean_ctor_get(x_95, 1); +lean_inc(x_121); +if (lean_is_exclusive(x_95)) { + lean_ctor_release(x_95, 0); + lean_ctor_release(x_95, 1); + x_122 = x_95; } else { - lean_dec_ref(x_94); - x_121 = lean_box(0); + lean_dec_ref(x_95); + x_122 = lean_box(0); } -if (lean_is_scalar(x_121)) { - x_122 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_122)) { + x_123 = lean_alloc_ctor(1, 2, 0); } else { - x_122 = x_121; + x_123 = x_122; } -lean_ctor_set(x_122, 0, x_119); -lean_ctor_set(x_122, 1, x_120); -return x_122; +lean_ctor_set(x_123, 0, x_120); +lean_ctor_set(x_123, 1, x_121); +return x_123; } } else { -lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; -x_123 = l_Lean_Syntax_getArgs(x_1); +lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; +x_124 = l_Lean_Syntax_getArgs(x_1); lean_dec(x_1); -x_124 = lean_unsigned_to_nat(2u); -x_125 = lean_unsigned_to_nat(0u); -x_126 = lean_box(0); -x_127 = l_Array_foldlStepMAux___main___at_Lean_Elab_Tactic_evalTactic___main___spec__8(x_124, x_123, x_125, x_126, x_87, x_23); -lean_dec(x_123); -return x_127; +x_125 = lean_unsigned_to_nat(2u); +x_126 = lean_unsigned_to_nat(0u); +x_127 = lean_box(0); +x_128 = l_Array_foldlStepMAux___main___at_Lean_Elab_Tactic_evalTactic___main___spec__8(x_125, x_124, x_126, x_127, x_88, x_24); +lean_dec(x_124); +return x_128; } } else { -lean_object* x_128; lean_object* x_129; -x_128 = l_Lean_Elab_Tactic_evalTactic___main___closed__3; -x_129 = l_Lean_Elab_Tactic_throwError___rarg(x_1, x_128, x_87, x_23); -return x_129; +lean_object* x_129; lean_object* x_130; +lean_dec(x_1); +x_129 = l_Lean_Elab_Tactic_evalTactic___main___closed__3; +x_130 = l_Lean_Elab_Tactic_throwError___rarg(x_129, x_88, x_24); +return x_130; } } } else { -lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; -x_130 = lean_ctor_get(x_23, 0); -x_131 = lean_ctor_get(x_23, 1); -lean_inc(x_131); -lean_inc(x_130); -lean_dec(x_23); -x_132 = lean_ctor_get(x_130, 0); +lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; +x_131 = lean_ctor_get(x_24, 0); +x_132 = lean_ctor_get(x_24, 1); lean_inc(x_132); -x_133 = lean_ctor_get(x_130, 1); +lean_inc(x_131); +lean_dec(x_24); +x_133 = lean_ctor_get(x_131, 0); lean_inc(x_133); -x_134 = lean_ctor_get(x_130, 2); +x_134 = lean_ctor_get(x_131, 1); lean_inc(x_134); -x_135 = lean_ctor_get(x_130, 3); +x_135 = lean_ctor_get(x_131, 2); lean_inc(x_135); -x_136 = lean_ctor_get(x_130, 4); +x_136 = lean_ctor_get(x_131, 3); lean_inc(x_136); -x_137 = lean_ctor_get(x_130, 5); +x_137 = lean_ctor_get(x_131, 4); lean_inc(x_137); -if (lean_is_exclusive(x_130)) { - lean_ctor_release(x_130, 0); - lean_ctor_release(x_130, 1); - lean_ctor_release(x_130, 2); - lean_ctor_release(x_130, 3); - lean_ctor_release(x_130, 4); - lean_ctor_release(x_130, 5); - x_138 = x_130; +x_138 = lean_ctor_get(x_131, 5); +lean_inc(x_138); +if (lean_is_exclusive(x_131)) { + lean_ctor_release(x_131, 0); + lean_ctor_release(x_131, 1); + lean_ctor_release(x_131, 2); + lean_ctor_release(x_131, 3); + lean_ctor_release(x_131, 4); + lean_ctor_release(x_131, 5); + x_139 = x_131; } else { - lean_dec_ref(x_130); - x_138 = lean_box(0); + lean_dec_ref(x_131); + x_139 = lean_box(0); } -x_139 = lean_nat_add(x_137, x_27); -if (lean_is_scalar(x_138)) { - x_140 = lean_alloc_ctor(0, 6, 0); +x_140 = lean_nat_add(x_138, x_28); +if (lean_is_scalar(x_139)) { + x_141 = lean_alloc_ctor(0, 6, 0); } else { - x_140 = x_138; + x_141 = x_139; } -lean_ctor_set(x_140, 0, x_132); -lean_ctor_set(x_140, 1, x_133); -lean_ctor_set(x_140, 2, x_134); -lean_ctor_set(x_140, 3, x_135); -lean_ctor_set(x_140, 4, x_136); -lean_ctor_set(x_140, 5, x_139); -x_141 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_141, 0, x_140); -lean_ctor_set(x_141, 1, x_131); -if (lean_is_scalar(x_19)) { - x_142 = lean_alloc_ctor(0, 10, 3); -} else { - x_142 = x_19; -} -lean_ctor_set(x_142, 0, x_5); -lean_ctor_set(x_142, 1, x_8); -lean_ctor_set(x_142, 2, x_9); -lean_ctor_set(x_142, 3, x_10); -lean_ctor_set(x_142, 4, x_11); -lean_ctor_set(x_142, 5, x_12); -lean_ctor_set(x_142, 6, x_13); -lean_ctor_set(x_142, 7, x_14); -lean_ctor_set(x_142, 8, x_15); -lean_ctor_set(x_142, 9, x_137); -lean_ctor_set_uint8(x_142, sizeof(void*)*10, x_16); -lean_ctor_set_uint8(x_142, sizeof(void*)*10 + 1, x_17); -lean_ctor_set_uint8(x_142, sizeof(void*)*10 + 2, x_18); -x_143 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_143, 0, x_142); -lean_ctor_set(x_143, 1, x_6); -lean_ctor_set(x_143, 2, x_7); +lean_ctor_set(x_141, 0, x_133); +lean_ctor_set(x_141, 1, x_134); +lean_ctor_set(x_141, 2, x_135); +lean_ctor_set(x_141, 3, x_136); +lean_ctor_set(x_141, 4, x_137); +lean_ctor_set(x_141, 5, x_140); +x_142 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_142, 0, x_141); +lean_ctor_set(x_142, 1, x_132); +lean_inc(x_1); +x_143 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_143, 0, x_8); +lean_ctor_set(x_143, 1, x_9); +lean_ctor_set(x_143, 2, x_10); +lean_ctor_set(x_143, 3, x_11); +lean_ctor_set(x_143, 4, x_12); +lean_ctor_set(x_143, 5, x_13); +lean_ctor_set(x_143, 6, x_14); +lean_ctor_set(x_143, 7, x_15); +lean_ctor_set(x_143, 8, x_16); +lean_ctor_set(x_143, 9, x_138); +lean_ctor_set(x_143, 10, x_1); +lean_ctor_set_uint8(x_143, sizeof(void*)*11, x_17); +lean_ctor_set_uint8(x_143, sizeof(void*)*11 + 1, x_18); +lean_ctor_set_uint8(x_143, sizeof(void*)*11 + 2, x_19); +x_144 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_144, 0, x_143); +lean_ctor_set(x_144, 1, x_7); if (lean_obj_tag(x_1) == 1) { -lean_object* x_144; lean_object* x_145; uint8_t x_146; -x_144 = lean_ctor_get(x_1, 0); +lean_object* x_145; lean_object* x_146; uint8_t x_147; +x_145 = lean_ctor_get(x_1, 0); +lean_inc(x_145); +x_146 = l_Lean_nullKind; +x_147 = lean_name_eq(x_145, x_146); +lean_dec(x_145); +if (x_147 == 0) +{ +lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; +lean_inc(x_1); +x_148 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic___main___lambda__1___boxed), 2, 1); +lean_closure_set(x_148, 0, x_1); +x_149 = l___private_Lean_Elab_Util_4__regTraceClasses___closed__2; +x_150 = lean_alloc_closure((void*)(l_Lean_Elab_Term_trace), 4, 2); +lean_closure_set(x_150, 0, x_149); +lean_closure_set(x_150, 1, x_148); lean_inc(x_144); -x_145 = l_Lean_nullKind; -x_146 = lean_name_eq(x_144, x_145); -lean_dec(x_144); -if (x_146 == 0) +x_151 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_150, x_144, x_142); +if (lean_obj_tag(x_151) == 0) { -lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; -lean_inc(x_1); -x_147 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic___main___lambda__1___boxed), 2, 1); -lean_closure_set(x_147, 0, x_1); -x_148 = l___private_Lean_Elab_Util_4__regTraceClasses___closed__2; -lean_inc(x_1); -x_149 = lean_alloc_closure((void*)(l_Lean_Elab_Term_trace___boxed), 5, 3); -lean_closure_set(x_149, 0, x_148); -lean_closure_set(x_149, 1, x_1); -lean_closure_set(x_149, 2, x_147); -lean_inc(x_143); -x_150 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_149, x_143, x_141); -if (lean_obj_tag(x_150) == 0) -{ -lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; -x_151 = lean_ctor_get(x_150, 1); -lean_inc(x_151); -lean_dec(x_150); -x_152 = l_Lean_Elab_Tactic_tacticElabAttribute; -x_153 = lean_ctor_get(x_152, 1); -lean_inc(x_153); -x_154 = lean_ctor_get(x_151, 0); +lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; +x_152 = lean_ctor_get(x_151, 1); +lean_inc(x_152); +lean_dec(x_151); +x_153 = l_Lean_Elab_Tactic_tacticElabAttribute; +x_154 = lean_ctor_get(x_153, 1); lean_inc(x_154); -x_155 = lean_ctor_get(x_154, 0); +x_155 = lean_ctor_get(x_152, 0); lean_inc(x_155); -lean_dec(x_154); x_156 = lean_ctor_get(x_155, 0); lean_inc(x_156); lean_dec(x_155); -x_157 = l_Lean_PersistentEnvExtension_getState___rarg(x_153, x_156); +x_157 = lean_ctor_get(x_156, 0); +lean_inc(x_157); lean_dec(x_156); -lean_dec(x_153); -x_158 = lean_ctor_get(x_157, 1); -lean_inc(x_158); +x_158 = l_Lean_PersistentEnvExtension_getState___rarg(x_154, x_157); lean_dec(x_157); +lean_dec(x_154); +x_159 = lean_ctor_get(x_158, 1); +lean_inc(x_159); +lean_dec(x_158); lean_inc(x_1); -x_159 = l_Lean_Syntax_getKind(x_1); -x_160 = l_Lean_SMap_find_x3f___at_Lean_Elab_Tactic_evalTactic___main___spec__1(x_158, x_159); -if (lean_obj_tag(x_160) == 0) +x_160 = l_Lean_Syntax_getKind(x_1); +x_161 = l_Lean_SMap_find_x3f___at_Lean_Elab_Tactic_evalTactic___main___spec__1(x_159, x_160); +if (lean_obj_tag(x_161) == 0) { -lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; -x_161 = l_Lean_Elab_Tactic_getEnv___rarg(x_151); -x_162 = lean_ctor_get(x_161, 0); -lean_inc(x_162); -x_163 = lean_ctor_get(x_161, 1); +lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; +x_162 = l_Lean_Elab_Tactic_getEnv___rarg(x_152); +x_163 = lean_ctor_get(x_162, 0); lean_inc(x_163); -lean_dec(x_161); -x_164 = l_Lean_Elab_macroAttribute; -x_165 = lean_ctor_get(x_164, 1); -lean_inc(x_165); -x_166 = l_Lean_PersistentEnvExtension_getState___rarg(x_165, x_162); +x_164 = lean_ctor_get(x_162, 1); +lean_inc(x_164); lean_dec(x_162); -lean_dec(x_165); -x_167 = lean_ctor_get(x_166, 1); -lean_inc(x_167); +x_165 = l_Lean_Elab_macroAttribute; +x_166 = lean_ctor_get(x_165, 1); +lean_inc(x_166); +x_167 = l_Lean_PersistentEnvExtension_getState___rarg(x_166, x_163); +lean_dec(x_163); lean_dec(x_166); -x_168 = l_Lean_SMap_find_x3f___at_Lean_Elab_getMacros___spec__1(x_167, x_159); -lean_dec(x_159); -if (lean_obj_tag(x_168) == 0) -{ -lean_object* x_169; lean_object* x_170; -x_169 = lean_box(0); -x_170 = l___private_Lean_Elab_Tactic_Basic_2__expandTacticMacroFns___main___at_Lean_Elab_Tactic_evalTactic___main___spec__7(x_1, x_169, x_143, x_163); -return x_170; -} -else -{ -lean_object* x_171; lean_object* x_172; -x_171 = lean_ctor_get(x_168, 0); -lean_inc(x_171); -lean_dec(x_168); -x_172 = l___private_Lean_Elab_Tactic_Basic_2__expandTacticMacroFns___main___at_Lean_Elab_Tactic_evalTactic___main___spec__7(x_1, x_171, x_143, x_163); -return x_172; -} -} -else -{ -lean_object* x_173; lean_object* x_174; -lean_dec(x_159); -x_173 = lean_ctor_get(x_160, 0); -lean_inc(x_173); +x_168 = lean_ctor_get(x_167, 1); +lean_inc(x_168); +lean_dec(x_167); +x_169 = l_Lean_SMap_find_x3f___at_Lean_Elab_getMacros___spec__1(x_168, x_160); lean_dec(x_160); -lean_inc(x_151); -x_174 = l___private_Lean_Elab_Tactic_Basic_1__evalTacticUsing___main(x_151, x_1, x_173, x_143, x_151); -return x_174; +if (lean_obj_tag(x_169) == 0) +{ +lean_object* x_170; lean_object* x_171; +x_170 = lean_box(0); +x_171 = l___private_Lean_Elab_Tactic_Basic_2__expandTacticMacroFns___main___at_Lean_Elab_Tactic_evalTactic___main___spec__7(x_1, x_170, x_144, x_164); +return x_171; +} +else +{ +lean_object* x_172; lean_object* x_173; +x_172 = lean_ctor_get(x_169, 0); +lean_inc(x_172); +lean_dec(x_169); +x_173 = l___private_Lean_Elab_Tactic_Basic_2__expandTacticMacroFns___main___at_Lean_Elab_Tactic_evalTactic___main___spec__7(x_1, x_172, x_144, x_164); +return x_173; } } else { -lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; -lean_dec(x_143); +lean_object* x_174; lean_object* x_175; +lean_dec(x_160); +x_174 = lean_ctor_get(x_161, 0); +lean_inc(x_174); +lean_dec(x_161); +lean_inc(x_152); +x_175 = l___private_Lean_Elab_Tactic_Basic_1__evalTacticUsing___main(x_152, x_1, x_174, x_144, x_152); +return x_175; +} +} +else +{ +lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; +lean_dec(x_144); lean_dec(x_1); -x_175 = lean_ctor_get(x_150, 0); -lean_inc(x_175); -x_176 = lean_ctor_get(x_150, 1); +x_176 = lean_ctor_get(x_151, 0); lean_inc(x_176); -if (lean_is_exclusive(x_150)) { - lean_ctor_release(x_150, 0); - lean_ctor_release(x_150, 1); - x_177 = x_150; +x_177 = lean_ctor_get(x_151, 1); +lean_inc(x_177); +if (lean_is_exclusive(x_151)) { + lean_ctor_release(x_151, 0); + lean_ctor_release(x_151, 1); + x_178 = x_151; } else { - lean_dec_ref(x_150); - x_177 = lean_box(0); + lean_dec_ref(x_151); + x_178 = lean_box(0); } -if (lean_is_scalar(x_177)) { - x_178 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_178)) { + x_179 = lean_alloc_ctor(1, 2, 0); } else { - x_178 = x_177; + x_179 = x_178; } -lean_ctor_set(x_178, 0, x_175); -lean_ctor_set(x_178, 1, x_176); -return x_178; +lean_ctor_set(x_179, 0, x_176); +lean_ctor_set(x_179, 1, x_177); +return x_179; } } else { -lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; -x_179 = l_Lean_Syntax_getArgs(x_1); +lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; +x_180 = l_Lean_Syntax_getArgs(x_1); lean_dec(x_1); -x_180 = lean_unsigned_to_nat(2u); -x_181 = lean_unsigned_to_nat(0u); -x_182 = lean_box(0); -x_183 = l_Array_foldlStepMAux___main___at_Lean_Elab_Tactic_evalTactic___main___spec__8(x_180, x_179, x_181, x_182, x_143, x_141); -lean_dec(x_179); -return x_183; +x_181 = lean_unsigned_to_nat(2u); +x_182 = lean_unsigned_to_nat(0u); +x_183 = lean_box(0); +x_184 = l_Array_foldlStepMAux___main___at_Lean_Elab_Tactic_evalTactic___main___spec__8(x_181, x_180, x_182, x_183, x_144, x_142); +lean_dec(x_180); +return x_184; } } else { -lean_object* x_184; lean_object* x_185; -x_184 = l_Lean_Elab_Tactic_evalTactic___main___closed__3; -x_185 = l_Lean_Elab_Tactic_throwError___rarg(x_1, x_184, x_143, x_141); -return x_185; +lean_object* x_185; lean_object* x_186; +lean_dec(x_1); +x_185 = l_Lean_Elab_Tactic_evalTactic___main___closed__3; +x_186 = l_Lean_Elab_Tactic_throwError___rarg(x_185, x_144, x_142); +return x_186; } } } else { -lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; -x_186 = lean_ctor_get(x_5, 0); -x_187 = lean_ctor_get(x_5, 1); -x_188 = lean_ctor_get(x_5, 2); +lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; +x_187 = lean_ctor_get(x_8, 0); +x_188 = lean_ctor_get(x_8, 1); +x_189 = lean_ctor_get(x_8, 2); +lean_inc(x_189); lean_inc(x_188); lean_inc(x_187); -lean_inc(x_186); -lean_dec(x_5); -x_189 = lean_unsigned_to_nat(1u); -x_190 = lean_nat_add(x_20, x_189); -lean_dec(x_20); -x_191 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_191, 0, x_186); -lean_ctor_set(x_191, 1, x_187); -lean_ctor_set(x_191, 2, x_188); -lean_ctor_set(x_191, 3, x_190); -lean_ctor_set(x_191, 4, x_21); -x_192 = lean_ctor_get(x_23, 0); -lean_inc(x_192); -x_193 = lean_ctor_get(x_23, 1); +lean_dec(x_8); +x_190 = lean_unsigned_to_nat(1u); +x_191 = lean_nat_add(x_21, x_190); +lean_dec(x_21); +x_192 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_192, 0, x_187); +lean_ctor_set(x_192, 1, x_188); +lean_ctor_set(x_192, 2, x_189); +lean_ctor_set(x_192, 3, x_191); +lean_ctor_set(x_192, 4, x_22); +x_193 = lean_ctor_get(x_24, 0); lean_inc(x_193); -if (lean_is_exclusive(x_23)) { - lean_ctor_release(x_23, 0); - lean_ctor_release(x_23, 1); - x_194 = x_23; +x_194 = lean_ctor_get(x_24, 1); +lean_inc(x_194); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + lean_ctor_release(x_24, 1); + x_195 = x_24; } else { - lean_dec_ref(x_23); - x_194 = lean_box(0); + lean_dec_ref(x_24); + x_195 = lean_box(0); } -x_195 = lean_ctor_get(x_192, 0); -lean_inc(x_195); -x_196 = lean_ctor_get(x_192, 1); +x_196 = lean_ctor_get(x_193, 0); lean_inc(x_196); -x_197 = lean_ctor_get(x_192, 2); +x_197 = lean_ctor_get(x_193, 1); lean_inc(x_197); -x_198 = lean_ctor_get(x_192, 3); +x_198 = lean_ctor_get(x_193, 2); lean_inc(x_198); -x_199 = lean_ctor_get(x_192, 4); +x_199 = lean_ctor_get(x_193, 3); lean_inc(x_199); -x_200 = lean_ctor_get(x_192, 5); +x_200 = lean_ctor_get(x_193, 4); lean_inc(x_200); -if (lean_is_exclusive(x_192)) { - lean_ctor_release(x_192, 0); - lean_ctor_release(x_192, 1); - lean_ctor_release(x_192, 2); - lean_ctor_release(x_192, 3); - lean_ctor_release(x_192, 4); - lean_ctor_release(x_192, 5); - x_201 = x_192; +x_201 = lean_ctor_get(x_193, 5); +lean_inc(x_201); +if (lean_is_exclusive(x_193)) { + lean_ctor_release(x_193, 0); + lean_ctor_release(x_193, 1); + lean_ctor_release(x_193, 2); + lean_ctor_release(x_193, 3); + lean_ctor_release(x_193, 4); + lean_ctor_release(x_193, 5); + x_202 = x_193; } else { - lean_dec_ref(x_192); - x_201 = lean_box(0); + lean_dec_ref(x_193); + x_202 = lean_box(0); } -x_202 = lean_nat_add(x_200, x_189); -if (lean_is_scalar(x_201)) { - x_203 = lean_alloc_ctor(0, 6, 0); +x_203 = lean_nat_add(x_201, x_190); +if (lean_is_scalar(x_202)) { + x_204 = lean_alloc_ctor(0, 6, 0); } else { - x_203 = x_201; + x_204 = x_202; } -lean_ctor_set(x_203, 0, x_195); -lean_ctor_set(x_203, 1, x_196); -lean_ctor_set(x_203, 2, x_197); -lean_ctor_set(x_203, 3, x_198); -lean_ctor_set(x_203, 4, x_199); -lean_ctor_set(x_203, 5, x_202); -if (lean_is_scalar(x_194)) { - x_204 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_204, 0, x_196); +lean_ctor_set(x_204, 1, x_197); +lean_ctor_set(x_204, 2, x_198); +lean_ctor_set(x_204, 3, x_199); +lean_ctor_set(x_204, 4, x_200); +lean_ctor_set(x_204, 5, x_203); +if (lean_is_scalar(x_195)) { + x_205 = lean_alloc_ctor(0, 2, 0); } else { - x_204 = x_194; + x_205 = x_195; } -lean_ctor_set(x_204, 0, x_203); -lean_ctor_set(x_204, 1, x_193); -if (lean_is_scalar(x_19)) { - x_205 = lean_alloc_ctor(0, 10, 3); -} else { - x_205 = x_19; -} -lean_ctor_set(x_205, 0, x_191); -lean_ctor_set(x_205, 1, x_8); -lean_ctor_set(x_205, 2, x_9); -lean_ctor_set(x_205, 3, x_10); -lean_ctor_set(x_205, 4, x_11); -lean_ctor_set(x_205, 5, x_12); -lean_ctor_set(x_205, 6, x_13); -lean_ctor_set(x_205, 7, x_14); -lean_ctor_set(x_205, 8, x_15); -lean_ctor_set(x_205, 9, x_200); -lean_ctor_set_uint8(x_205, sizeof(void*)*10, x_16); -lean_ctor_set_uint8(x_205, sizeof(void*)*10 + 1, x_17); -lean_ctor_set_uint8(x_205, sizeof(void*)*10 + 2, x_18); -x_206 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_206, 0, x_205); -lean_ctor_set(x_206, 1, x_6); -lean_ctor_set(x_206, 2, x_7); +lean_ctor_set(x_205, 0, x_204); +lean_ctor_set(x_205, 1, x_194); +lean_inc(x_1); +x_206 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_206, 0, x_192); +lean_ctor_set(x_206, 1, x_9); +lean_ctor_set(x_206, 2, x_10); +lean_ctor_set(x_206, 3, x_11); +lean_ctor_set(x_206, 4, x_12); +lean_ctor_set(x_206, 5, x_13); +lean_ctor_set(x_206, 6, x_14); +lean_ctor_set(x_206, 7, x_15); +lean_ctor_set(x_206, 8, x_16); +lean_ctor_set(x_206, 9, x_201); +lean_ctor_set(x_206, 10, x_1); +lean_ctor_set_uint8(x_206, sizeof(void*)*11, x_17); +lean_ctor_set_uint8(x_206, sizeof(void*)*11 + 1, x_18); +lean_ctor_set_uint8(x_206, sizeof(void*)*11 + 2, x_19); +x_207 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_207, 0, x_206); +lean_ctor_set(x_207, 1, x_7); if (lean_obj_tag(x_1) == 1) { -lean_object* x_207; lean_object* x_208; uint8_t x_209; -x_207 = lean_ctor_get(x_1, 0); +lean_object* x_208; lean_object* x_209; uint8_t x_210; +x_208 = lean_ctor_get(x_1, 0); +lean_inc(x_208); +x_209 = l_Lean_nullKind; +x_210 = lean_name_eq(x_208, x_209); +lean_dec(x_208); +if (x_210 == 0) +{ +lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; +lean_inc(x_1); +x_211 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic___main___lambda__1___boxed), 2, 1); +lean_closure_set(x_211, 0, x_1); +x_212 = l___private_Lean_Elab_Util_4__regTraceClasses___closed__2; +x_213 = lean_alloc_closure((void*)(l_Lean_Elab_Term_trace), 4, 2); +lean_closure_set(x_213, 0, x_212); +lean_closure_set(x_213, 1, x_211); lean_inc(x_207); -x_208 = l_Lean_nullKind; -x_209 = lean_name_eq(x_207, x_208); -lean_dec(x_207); -if (x_209 == 0) +x_214 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_213, x_207, x_205); +if (lean_obj_tag(x_214) == 0) { -lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; -lean_inc(x_1); -x_210 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic___main___lambda__1___boxed), 2, 1); -lean_closure_set(x_210, 0, x_1); -x_211 = l___private_Lean_Elab_Util_4__regTraceClasses___closed__2; -lean_inc(x_1); -x_212 = lean_alloc_closure((void*)(l_Lean_Elab_Term_trace___boxed), 5, 3); -lean_closure_set(x_212, 0, x_211); -lean_closure_set(x_212, 1, x_1); -lean_closure_set(x_212, 2, x_210); -lean_inc(x_206); -x_213 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_212, x_206, x_204); -if (lean_obj_tag(x_213) == 0) -{ -lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; -x_214 = lean_ctor_get(x_213, 1); -lean_inc(x_214); -lean_dec(x_213); -x_215 = l_Lean_Elab_Tactic_tacticElabAttribute; -x_216 = lean_ctor_get(x_215, 1); -lean_inc(x_216); -x_217 = lean_ctor_get(x_214, 0); +lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; +x_215 = lean_ctor_get(x_214, 1); +lean_inc(x_215); +lean_dec(x_214); +x_216 = l_Lean_Elab_Tactic_tacticElabAttribute; +x_217 = lean_ctor_get(x_216, 1); lean_inc(x_217); -x_218 = lean_ctor_get(x_217, 0); +x_218 = lean_ctor_get(x_215, 0); lean_inc(x_218); -lean_dec(x_217); x_219 = lean_ctor_get(x_218, 0); lean_inc(x_219); lean_dec(x_218); -x_220 = l_Lean_PersistentEnvExtension_getState___rarg(x_216, x_219); +x_220 = lean_ctor_get(x_219, 0); +lean_inc(x_220); lean_dec(x_219); -lean_dec(x_216); -x_221 = lean_ctor_get(x_220, 1); -lean_inc(x_221); +x_221 = l_Lean_PersistentEnvExtension_getState___rarg(x_217, x_220); lean_dec(x_220); +lean_dec(x_217); +x_222 = lean_ctor_get(x_221, 1); +lean_inc(x_222); +lean_dec(x_221); lean_inc(x_1); -x_222 = l_Lean_Syntax_getKind(x_1); -x_223 = l_Lean_SMap_find_x3f___at_Lean_Elab_Tactic_evalTactic___main___spec__1(x_221, x_222); -if (lean_obj_tag(x_223) == 0) +x_223 = l_Lean_Syntax_getKind(x_1); +x_224 = l_Lean_SMap_find_x3f___at_Lean_Elab_Tactic_evalTactic___main___spec__1(x_222, x_223); +if (lean_obj_tag(x_224) == 0) { -lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; -x_224 = l_Lean_Elab_Tactic_getEnv___rarg(x_214); -x_225 = lean_ctor_get(x_224, 0); -lean_inc(x_225); -x_226 = lean_ctor_get(x_224, 1); +lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; +x_225 = l_Lean_Elab_Tactic_getEnv___rarg(x_215); +x_226 = lean_ctor_get(x_225, 0); lean_inc(x_226); -lean_dec(x_224); -x_227 = l_Lean_Elab_macroAttribute; -x_228 = lean_ctor_get(x_227, 1); -lean_inc(x_228); -x_229 = l_Lean_PersistentEnvExtension_getState___rarg(x_228, x_225); +x_227 = lean_ctor_get(x_225, 1); +lean_inc(x_227); lean_dec(x_225); -lean_dec(x_228); -x_230 = lean_ctor_get(x_229, 1); -lean_inc(x_230); +x_228 = l_Lean_Elab_macroAttribute; +x_229 = lean_ctor_get(x_228, 1); +lean_inc(x_229); +x_230 = l_Lean_PersistentEnvExtension_getState___rarg(x_229, x_226); +lean_dec(x_226); lean_dec(x_229); -x_231 = l_Lean_SMap_find_x3f___at_Lean_Elab_getMacros___spec__1(x_230, x_222); -lean_dec(x_222); -if (lean_obj_tag(x_231) == 0) -{ -lean_object* x_232; lean_object* x_233; -x_232 = lean_box(0); -x_233 = l___private_Lean_Elab_Tactic_Basic_2__expandTacticMacroFns___main___at_Lean_Elab_Tactic_evalTactic___main___spec__7(x_1, x_232, x_206, x_226); -return x_233; -} -else -{ -lean_object* x_234; lean_object* x_235; -x_234 = lean_ctor_get(x_231, 0); -lean_inc(x_234); -lean_dec(x_231); -x_235 = l___private_Lean_Elab_Tactic_Basic_2__expandTacticMacroFns___main___at_Lean_Elab_Tactic_evalTactic___main___spec__7(x_1, x_234, x_206, x_226); -return x_235; -} -} -else -{ -lean_object* x_236; lean_object* x_237; -lean_dec(x_222); -x_236 = lean_ctor_get(x_223, 0); -lean_inc(x_236); +x_231 = lean_ctor_get(x_230, 1); +lean_inc(x_231); +lean_dec(x_230); +x_232 = l_Lean_SMap_find_x3f___at_Lean_Elab_getMacros___spec__1(x_231, x_223); lean_dec(x_223); -lean_inc(x_214); -x_237 = l___private_Lean_Elab_Tactic_Basic_1__evalTacticUsing___main(x_214, x_1, x_236, x_206, x_214); -return x_237; +if (lean_obj_tag(x_232) == 0) +{ +lean_object* x_233; lean_object* x_234; +x_233 = lean_box(0); +x_234 = l___private_Lean_Elab_Tactic_Basic_2__expandTacticMacroFns___main___at_Lean_Elab_Tactic_evalTactic___main___spec__7(x_1, x_233, x_207, x_227); +return x_234; +} +else +{ +lean_object* x_235; lean_object* x_236; +x_235 = lean_ctor_get(x_232, 0); +lean_inc(x_235); +lean_dec(x_232); +x_236 = l___private_Lean_Elab_Tactic_Basic_2__expandTacticMacroFns___main___at_Lean_Elab_Tactic_evalTactic___main___spec__7(x_1, x_235, x_207, x_227); +return x_236; } } else { -lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; -lean_dec(x_206); +lean_object* x_237; lean_object* x_238; +lean_dec(x_223); +x_237 = lean_ctor_get(x_224, 0); +lean_inc(x_237); +lean_dec(x_224); +lean_inc(x_215); +x_238 = l___private_Lean_Elab_Tactic_Basic_1__evalTacticUsing___main(x_215, x_1, x_237, x_207, x_215); +return x_238; +} +} +else +{ +lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; +lean_dec(x_207); lean_dec(x_1); -x_238 = lean_ctor_get(x_213, 0); -lean_inc(x_238); -x_239 = lean_ctor_get(x_213, 1); +x_239 = lean_ctor_get(x_214, 0); lean_inc(x_239); -if (lean_is_exclusive(x_213)) { - lean_ctor_release(x_213, 0); - lean_ctor_release(x_213, 1); - x_240 = x_213; +x_240 = lean_ctor_get(x_214, 1); +lean_inc(x_240); +if (lean_is_exclusive(x_214)) { + lean_ctor_release(x_214, 0); + lean_ctor_release(x_214, 1); + x_241 = x_214; } else { - lean_dec_ref(x_213); - x_240 = lean_box(0); + lean_dec_ref(x_214); + x_241 = lean_box(0); } -if (lean_is_scalar(x_240)) { - x_241 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_241)) { + x_242 = lean_alloc_ctor(1, 2, 0); } else { - x_241 = x_240; + x_242 = x_241; } -lean_ctor_set(x_241, 0, x_238); -lean_ctor_set(x_241, 1, x_239); -return 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_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; -x_242 = l_Lean_Syntax_getArgs(x_1); +lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; +x_243 = l_Lean_Syntax_getArgs(x_1); lean_dec(x_1); -x_243 = lean_unsigned_to_nat(2u); -x_244 = lean_unsigned_to_nat(0u); -x_245 = lean_box(0); -x_246 = l_Array_foldlStepMAux___main___at_Lean_Elab_Tactic_evalTactic___main___spec__8(x_243, x_242, x_244, x_245, x_206, x_204); -lean_dec(x_242); -return x_246; +x_244 = lean_unsigned_to_nat(2u); +x_245 = lean_unsigned_to_nat(0u); +x_246 = lean_box(0); +x_247 = l_Array_foldlStepMAux___main___at_Lean_Elab_Tactic_evalTactic___main___spec__8(x_244, x_243, x_245, x_246, x_207, x_205); +lean_dec(x_243); +return x_247; } } else { -lean_object* x_247; lean_object* x_248; -x_247 = l_Lean_Elab_Tactic_evalTactic___main___closed__3; -x_248 = l_Lean_Elab_Tactic_throwError___rarg(x_1, x_247, x_206, x_204); -return x_248; +lean_object* x_248; lean_object* x_249; +lean_dec(x_1); +x_248 = l_Lean_Elab_Tactic_evalTactic___main___closed__3; +x_249 = l_Lean_Elab_Tactic_throwError___rarg(x_248, x_207, x_205); +return x_249; +} +} +} +} +else +{ +lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; uint8_t x_269; uint8_t x_270; uint8_t x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; uint8_t x_275; lean_object* x_276; +x_258 = lean_ctor_get(x_2, 1); +x_259 = lean_ctor_get(x_5, 0); +x_260 = lean_ctor_get(x_5, 1); +x_261 = lean_ctor_get(x_5, 2); +x_262 = lean_ctor_get(x_5, 3); +x_263 = lean_ctor_get(x_5, 4); +x_264 = lean_ctor_get(x_5, 5); +x_265 = lean_ctor_get(x_5, 6); +x_266 = lean_ctor_get(x_5, 7); +x_267 = lean_ctor_get(x_5, 8); +x_268 = lean_ctor_get(x_5, 9); +x_269 = lean_ctor_get_uint8(x_5, sizeof(void*)*11); +x_270 = lean_ctor_get_uint8(x_5, sizeof(void*)*11 + 1); +x_271 = lean_ctor_get_uint8(x_5, sizeof(void*)*11 + 2); +lean_inc(x_268); +lean_inc(x_267); +lean_inc(x_266); +lean_inc(x_265); +lean_inc(x_264); +lean_inc(x_263); +lean_inc(x_262); +lean_inc(x_261); +lean_inc(x_260); +lean_inc(x_259); +lean_dec(x_5); +lean_inc(x_1); +lean_inc(x_267); +lean_inc(x_266); +lean_inc(x_265); +lean_inc(x_264); +lean_inc(x_263); +lean_inc(x_262); +lean_inc(x_261); +lean_inc(x_260); +lean_inc(x_259); +x_272 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_272, 0, x_259); +lean_ctor_set(x_272, 1, x_260); +lean_ctor_set(x_272, 2, x_261); +lean_ctor_set(x_272, 3, x_262); +lean_ctor_set(x_272, 4, x_263); +lean_ctor_set(x_272, 5, x_264); +lean_ctor_set(x_272, 6, x_265); +lean_ctor_set(x_272, 7, x_266); +lean_ctor_set(x_272, 8, x_267); +lean_ctor_set(x_272, 9, x_268); +lean_ctor_set(x_272, 10, x_1); +lean_ctor_set_uint8(x_272, sizeof(void*)*11, x_269); +lean_ctor_set_uint8(x_272, sizeof(void*)*11 + 1, x_270); +lean_ctor_set_uint8(x_272, sizeof(void*)*11 + 2, x_271); +lean_inc(x_258); +lean_ctor_set(x_2, 0, x_272); +x_273 = lean_ctor_get(x_259, 3); +lean_inc(x_273); +x_274 = lean_ctor_get(x_259, 4); +lean_inc(x_274); +x_275 = lean_nat_dec_eq(x_273, x_274); +if (x_275 == 0) +{ +lean_dec(x_2); +x_276 = x_3; +goto block_341; +} +else +{ +lean_object* x_342; lean_object* x_343; +x_342 = l_Lean_Meta_withIncRecDepth___rarg___closed__2; +x_343 = l_Lean_Elab_Tactic_throwError___rarg(x_342, x_2, x_3); +if (lean_obj_tag(x_343) == 0) +{ +lean_object* x_344; +x_344 = lean_ctor_get(x_343, 1); +lean_inc(x_344); +lean_dec(x_343); +x_276 = x_344; +goto block_341; +} +else +{ +lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; +lean_dec(x_274); +lean_dec(x_273); +lean_dec(x_267); +lean_dec(x_266); +lean_dec(x_265); +lean_dec(x_264); +lean_dec(x_263); +lean_dec(x_262); +lean_dec(x_261); +lean_dec(x_260); +lean_dec(x_259); +lean_dec(x_258); +lean_dec(x_1); +x_345 = lean_ctor_get(x_343, 0); +lean_inc(x_345); +x_346 = lean_ctor_get(x_343, 1); +lean_inc(x_346); +if (lean_is_exclusive(x_343)) { + lean_ctor_release(x_343, 0); + lean_ctor_release(x_343, 1); + x_347 = x_343; +} else { + lean_dec_ref(x_343); + x_347 = lean_box(0); +} +if (lean_is_scalar(x_347)) { + x_348 = lean_alloc_ctor(1, 2, 0); +} else { + x_348 = x_347; +} +lean_ctor_set(x_348, 0, x_345); +lean_ctor_set(x_348, 1, x_346); +return x_348; +} +} +block_341: +{ +lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; +x_277 = lean_ctor_get(x_259, 0); +lean_inc(x_277); +x_278 = lean_ctor_get(x_259, 1); +lean_inc(x_278); +x_279 = lean_ctor_get(x_259, 2); +lean_inc(x_279); +if (lean_is_exclusive(x_259)) { + lean_ctor_release(x_259, 0); + lean_ctor_release(x_259, 1); + lean_ctor_release(x_259, 2); + lean_ctor_release(x_259, 3); + lean_ctor_release(x_259, 4); + x_280 = x_259; +} else { + lean_dec_ref(x_259); + x_280 = lean_box(0); +} +x_281 = lean_unsigned_to_nat(1u); +x_282 = lean_nat_add(x_273, x_281); +lean_dec(x_273); +if (lean_is_scalar(x_280)) { + x_283 = lean_alloc_ctor(0, 5, 0); +} else { + x_283 = x_280; +} +lean_ctor_set(x_283, 0, x_277); +lean_ctor_set(x_283, 1, x_278); +lean_ctor_set(x_283, 2, x_279); +lean_ctor_set(x_283, 3, x_282); +lean_ctor_set(x_283, 4, x_274); +x_284 = lean_ctor_get(x_276, 0); +lean_inc(x_284); +x_285 = lean_ctor_get(x_276, 1); +lean_inc(x_285); +if (lean_is_exclusive(x_276)) { + lean_ctor_release(x_276, 0); + lean_ctor_release(x_276, 1); + x_286 = x_276; +} else { + lean_dec_ref(x_276); + x_286 = lean_box(0); +} +x_287 = lean_ctor_get(x_284, 0); +lean_inc(x_287); +x_288 = lean_ctor_get(x_284, 1); +lean_inc(x_288); +x_289 = lean_ctor_get(x_284, 2); +lean_inc(x_289); +x_290 = lean_ctor_get(x_284, 3); +lean_inc(x_290); +x_291 = lean_ctor_get(x_284, 4); +lean_inc(x_291); +x_292 = lean_ctor_get(x_284, 5); +lean_inc(x_292); +if (lean_is_exclusive(x_284)) { + lean_ctor_release(x_284, 0); + lean_ctor_release(x_284, 1); + lean_ctor_release(x_284, 2); + lean_ctor_release(x_284, 3); + lean_ctor_release(x_284, 4); + lean_ctor_release(x_284, 5); + x_293 = x_284; +} else { + lean_dec_ref(x_284); + x_293 = lean_box(0); +} +x_294 = lean_nat_add(x_292, x_281); +if (lean_is_scalar(x_293)) { + x_295 = lean_alloc_ctor(0, 6, 0); +} else { + x_295 = x_293; +} +lean_ctor_set(x_295, 0, x_287); +lean_ctor_set(x_295, 1, x_288); +lean_ctor_set(x_295, 2, x_289); +lean_ctor_set(x_295, 3, x_290); +lean_ctor_set(x_295, 4, x_291); +lean_ctor_set(x_295, 5, x_294); +if (lean_is_scalar(x_286)) { + x_296 = lean_alloc_ctor(0, 2, 0); +} else { + x_296 = x_286; +} +lean_ctor_set(x_296, 0, x_295); +lean_ctor_set(x_296, 1, x_285); +lean_inc(x_1); +x_297 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_297, 0, x_283); +lean_ctor_set(x_297, 1, x_260); +lean_ctor_set(x_297, 2, x_261); +lean_ctor_set(x_297, 3, x_262); +lean_ctor_set(x_297, 4, x_263); +lean_ctor_set(x_297, 5, x_264); +lean_ctor_set(x_297, 6, x_265); +lean_ctor_set(x_297, 7, x_266); +lean_ctor_set(x_297, 8, x_267); +lean_ctor_set(x_297, 9, x_292); +lean_ctor_set(x_297, 10, x_1); +lean_ctor_set_uint8(x_297, sizeof(void*)*11, x_269); +lean_ctor_set_uint8(x_297, sizeof(void*)*11 + 1, x_270); +lean_ctor_set_uint8(x_297, sizeof(void*)*11 + 2, x_271); +x_298 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_298, 0, x_297); +lean_ctor_set(x_298, 1, x_258); +if (lean_obj_tag(x_1) == 1) +{ +lean_object* x_299; lean_object* x_300; uint8_t x_301; +x_299 = lean_ctor_get(x_1, 0); +lean_inc(x_299); +x_300 = l_Lean_nullKind; +x_301 = lean_name_eq(x_299, x_300); +lean_dec(x_299); +if (x_301 == 0) +{ +lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; +lean_inc(x_1); +x_302 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic___main___lambda__1___boxed), 2, 1); +lean_closure_set(x_302, 0, x_1); +x_303 = l___private_Lean_Elab_Util_4__regTraceClasses___closed__2; +x_304 = lean_alloc_closure((void*)(l_Lean_Elab_Term_trace), 4, 2); +lean_closure_set(x_304, 0, x_303); +lean_closure_set(x_304, 1, x_302); +lean_inc(x_298); +x_305 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_304, x_298, x_296); +if (lean_obj_tag(x_305) == 0) +{ +lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; +x_306 = lean_ctor_get(x_305, 1); +lean_inc(x_306); +lean_dec(x_305); +x_307 = l_Lean_Elab_Tactic_tacticElabAttribute; +x_308 = lean_ctor_get(x_307, 1); +lean_inc(x_308); +x_309 = lean_ctor_get(x_306, 0); +lean_inc(x_309); +x_310 = lean_ctor_get(x_309, 0); +lean_inc(x_310); +lean_dec(x_309); +x_311 = lean_ctor_get(x_310, 0); +lean_inc(x_311); +lean_dec(x_310); +x_312 = l_Lean_PersistentEnvExtension_getState___rarg(x_308, x_311); +lean_dec(x_311); +lean_dec(x_308); +x_313 = lean_ctor_get(x_312, 1); +lean_inc(x_313); +lean_dec(x_312); +lean_inc(x_1); +x_314 = l_Lean_Syntax_getKind(x_1); +x_315 = l_Lean_SMap_find_x3f___at_Lean_Elab_Tactic_evalTactic___main___spec__1(x_313, x_314); +if (lean_obj_tag(x_315) == 0) +{ +lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; +x_316 = l_Lean_Elab_Tactic_getEnv___rarg(x_306); +x_317 = lean_ctor_get(x_316, 0); +lean_inc(x_317); +x_318 = lean_ctor_get(x_316, 1); +lean_inc(x_318); +lean_dec(x_316); +x_319 = l_Lean_Elab_macroAttribute; +x_320 = lean_ctor_get(x_319, 1); +lean_inc(x_320); +x_321 = l_Lean_PersistentEnvExtension_getState___rarg(x_320, x_317); +lean_dec(x_317); +lean_dec(x_320); +x_322 = lean_ctor_get(x_321, 1); +lean_inc(x_322); +lean_dec(x_321); +x_323 = l_Lean_SMap_find_x3f___at_Lean_Elab_getMacros___spec__1(x_322, x_314); +lean_dec(x_314); +if (lean_obj_tag(x_323) == 0) +{ +lean_object* x_324; lean_object* x_325; +x_324 = lean_box(0); +x_325 = l___private_Lean_Elab_Tactic_Basic_2__expandTacticMacroFns___main___at_Lean_Elab_Tactic_evalTactic___main___spec__7(x_1, x_324, x_298, x_318); +return x_325; +} +else +{ +lean_object* x_326; lean_object* x_327; +x_326 = lean_ctor_get(x_323, 0); +lean_inc(x_326); +lean_dec(x_323); +x_327 = l___private_Lean_Elab_Tactic_Basic_2__expandTacticMacroFns___main___at_Lean_Elab_Tactic_evalTactic___main___spec__7(x_1, x_326, x_298, x_318); +return x_327; +} +} +else +{ +lean_object* x_328; lean_object* x_329; +lean_dec(x_314); +x_328 = lean_ctor_get(x_315, 0); +lean_inc(x_328); +lean_dec(x_315); +lean_inc(x_306); +x_329 = l___private_Lean_Elab_Tactic_Basic_1__evalTacticUsing___main(x_306, x_1, x_328, x_298, x_306); +return x_329; +} +} +else +{ +lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; +lean_dec(x_298); +lean_dec(x_1); +x_330 = lean_ctor_get(x_305, 0); +lean_inc(x_330); +x_331 = lean_ctor_get(x_305, 1); +lean_inc(x_331); +if (lean_is_exclusive(x_305)) { + lean_ctor_release(x_305, 0); + lean_ctor_release(x_305, 1); + x_332 = x_305; +} else { + lean_dec_ref(x_305); + x_332 = lean_box(0); +} +if (lean_is_scalar(x_332)) { + x_333 = lean_alloc_ctor(1, 2, 0); +} else { + x_333 = x_332; +} +lean_ctor_set(x_333, 0, x_330); +lean_ctor_set(x_333, 1, x_331); +return x_333; +} +} +else +{ +lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; +x_334 = l_Lean_Syntax_getArgs(x_1); +lean_dec(x_1); +x_335 = lean_unsigned_to_nat(2u); +x_336 = lean_unsigned_to_nat(0u); +x_337 = lean_box(0); +x_338 = l_Array_foldlStepMAux___main___at_Lean_Elab_Tactic_evalTactic___main___spec__8(x_335, x_334, x_336, x_337, x_298, x_296); +lean_dec(x_334); +return x_338; +} +} +else +{ +lean_object* x_339; lean_object* x_340; +lean_dec(x_1); +x_339 = l_Lean_Elab_Tactic_evalTactic___main___closed__3; +x_340 = l_Lean_Elab_Tactic_throwError___rarg(x_339, x_298, x_296); +return x_340; +} +} +} +} +else +{ +lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; uint8_t x_361; uint8_t x_362; uint8_t x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; uint8_t x_369; lean_object* x_370; +x_349 = lean_ctor_get(x_2, 0); +x_350 = lean_ctor_get(x_2, 1); +lean_inc(x_350); +lean_inc(x_349); +lean_dec(x_2); +x_351 = lean_ctor_get(x_349, 0); +lean_inc(x_351); +x_352 = lean_ctor_get(x_349, 1); +lean_inc(x_352); +x_353 = lean_ctor_get(x_349, 2); +lean_inc(x_353); +x_354 = lean_ctor_get(x_349, 3); +lean_inc(x_354); +x_355 = lean_ctor_get(x_349, 4); +lean_inc(x_355); +x_356 = lean_ctor_get(x_349, 5); +lean_inc(x_356); +x_357 = lean_ctor_get(x_349, 6); +lean_inc(x_357); +x_358 = lean_ctor_get(x_349, 7); +lean_inc(x_358); +x_359 = lean_ctor_get(x_349, 8); +lean_inc(x_359); +x_360 = lean_ctor_get(x_349, 9); +lean_inc(x_360); +x_361 = lean_ctor_get_uint8(x_349, sizeof(void*)*11); +x_362 = lean_ctor_get_uint8(x_349, sizeof(void*)*11 + 1); +x_363 = lean_ctor_get_uint8(x_349, sizeof(void*)*11 + 2); +if (lean_is_exclusive(x_349)) { + lean_ctor_release(x_349, 0); + lean_ctor_release(x_349, 1); + lean_ctor_release(x_349, 2); + lean_ctor_release(x_349, 3); + lean_ctor_release(x_349, 4); + lean_ctor_release(x_349, 5); + lean_ctor_release(x_349, 6); + lean_ctor_release(x_349, 7); + lean_ctor_release(x_349, 8); + lean_ctor_release(x_349, 9); + lean_ctor_release(x_349, 10); + x_364 = x_349; +} else { + lean_dec_ref(x_349); + x_364 = lean_box(0); +} +lean_inc(x_1); +lean_inc(x_359); +lean_inc(x_358); +lean_inc(x_357); +lean_inc(x_356); +lean_inc(x_355); +lean_inc(x_354); +lean_inc(x_353); +lean_inc(x_352); +lean_inc(x_351); +if (lean_is_scalar(x_364)) { + x_365 = lean_alloc_ctor(0, 11, 3); +} else { + x_365 = x_364; +} +lean_ctor_set(x_365, 0, x_351); +lean_ctor_set(x_365, 1, x_352); +lean_ctor_set(x_365, 2, x_353); +lean_ctor_set(x_365, 3, x_354); +lean_ctor_set(x_365, 4, x_355); +lean_ctor_set(x_365, 5, x_356); +lean_ctor_set(x_365, 6, x_357); +lean_ctor_set(x_365, 7, x_358); +lean_ctor_set(x_365, 8, x_359); +lean_ctor_set(x_365, 9, x_360); +lean_ctor_set(x_365, 10, x_1); +lean_ctor_set_uint8(x_365, sizeof(void*)*11, x_361); +lean_ctor_set_uint8(x_365, sizeof(void*)*11 + 1, x_362); +lean_ctor_set_uint8(x_365, sizeof(void*)*11 + 2, x_363); +lean_inc(x_350); +x_366 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_366, 0, x_365); +lean_ctor_set(x_366, 1, x_350); +x_367 = lean_ctor_get(x_351, 3); +lean_inc(x_367); +x_368 = lean_ctor_get(x_351, 4); +lean_inc(x_368); +x_369 = lean_nat_dec_eq(x_367, x_368); +if (x_369 == 0) +{ +lean_dec(x_366); +x_370 = x_3; +goto block_435; +} +else +{ +lean_object* x_436; lean_object* x_437; +x_436 = l_Lean_Meta_withIncRecDepth___rarg___closed__2; +x_437 = l_Lean_Elab_Tactic_throwError___rarg(x_436, x_366, x_3); +if (lean_obj_tag(x_437) == 0) +{ +lean_object* x_438; +x_438 = lean_ctor_get(x_437, 1); +lean_inc(x_438); +lean_dec(x_437); +x_370 = x_438; +goto block_435; +} +else +{ +lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; +lean_dec(x_368); +lean_dec(x_367); +lean_dec(x_359); +lean_dec(x_358); +lean_dec(x_357); +lean_dec(x_356); +lean_dec(x_355); +lean_dec(x_354); +lean_dec(x_353); +lean_dec(x_352); +lean_dec(x_351); +lean_dec(x_350); +lean_dec(x_1); +x_439 = lean_ctor_get(x_437, 0); +lean_inc(x_439); +x_440 = lean_ctor_get(x_437, 1); +lean_inc(x_440); +if (lean_is_exclusive(x_437)) { + lean_ctor_release(x_437, 0); + lean_ctor_release(x_437, 1); + x_441 = x_437; +} else { + lean_dec_ref(x_437); + x_441 = lean_box(0); +} +if (lean_is_scalar(x_441)) { + x_442 = lean_alloc_ctor(1, 2, 0); +} else { + x_442 = x_441; +} +lean_ctor_set(x_442, 0, x_439); +lean_ctor_set(x_442, 1, x_440); +return x_442; +} +} +block_435: +{ +lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; +x_371 = lean_ctor_get(x_351, 0); +lean_inc(x_371); +x_372 = lean_ctor_get(x_351, 1); +lean_inc(x_372); +x_373 = lean_ctor_get(x_351, 2); +lean_inc(x_373); +if (lean_is_exclusive(x_351)) { + lean_ctor_release(x_351, 0); + lean_ctor_release(x_351, 1); + lean_ctor_release(x_351, 2); + lean_ctor_release(x_351, 3); + lean_ctor_release(x_351, 4); + x_374 = x_351; +} else { + lean_dec_ref(x_351); + x_374 = lean_box(0); +} +x_375 = lean_unsigned_to_nat(1u); +x_376 = lean_nat_add(x_367, x_375); +lean_dec(x_367); +if (lean_is_scalar(x_374)) { + x_377 = lean_alloc_ctor(0, 5, 0); +} else { + x_377 = x_374; +} +lean_ctor_set(x_377, 0, x_371); +lean_ctor_set(x_377, 1, x_372); +lean_ctor_set(x_377, 2, x_373); +lean_ctor_set(x_377, 3, x_376); +lean_ctor_set(x_377, 4, x_368); +x_378 = lean_ctor_get(x_370, 0); +lean_inc(x_378); +x_379 = lean_ctor_get(x_370, 1); +lean_inc(x_379); +if (lean_is_exclusive(x_370)) { + lean_ctor_release(x_370, 0); + lean_ctor_release(x_370, 1); + x_380 = x_370; +} else { + lean_dec_ref(x_370); + x_380 = lean_box(0); +} +x_381 = lean_ctor_get(x_378, 0); +lean_inc(x_381); +x_382 = lean_ctor_get(x_378, 1); +lean_inc(x_382); +x_383 = lean_ctor_get(x_378, 2); +lean_inc(x_383); +x_384 = lean_ctor_get(x_378, 3); +lean_inc(x_384); +x_385 = lean_ctor_get(x_378, 4); +lean_inc(x_385); +x_386 = lean_ctor_get(x_378, 5); +lean_inc(x_386); +if (lean_is_exclusive(x_378)) { + lean_ctor_release(x_378, 0); + lean_ctor_release(x_378, 1); + lean_ctor_release(x_378, 2); + lean_ctor_release(x_378, 3); + lean_ctor_release(x_378, 4); + lean_ctor_release(x_378, 5); + x_387 = x_378; +} else { + lean_dec_ref(x_378); + x_387 = lean_box(0); +} +x_388 = lean_nat_add(x_386, x_375); +if (lean_is_scalar(x_387)) { + x_389 = lean_alloc_ctor(0, 6, 0); +} else { + x_389 = x_387; +} +lean_ctor_set(x_389, 0, x_381); +lean_ctor_set(x_389, 1, x_382); +lean_ctor_set(x_389, 2, x_383); +lean_ctor_set(x_389, 3, x_384); +lean_ctor_set(x_389, 4, x_385); +lean_ctor_set(x_389, 5, x_388); +if (lean_is_scalar(x_380)) { + x_390 = lean_alloc_ctor(0, 2, 0); +} else { + x_390 = x_380; +} +lean_ctor_set(x_390, 0, x_389); +lean_ctor_set(x_390, 1, x_379); +lean_inc(x_1); +x_391 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_391, 0, x_377); +lean_ctor_set(x_391, 1, x_352); +lean_ctor_set(x_391, 2, x_353); +lean_ctor_set(x_391, 3, x_354); +lean_ctor_set(x_391, 4, x_355); +lean_ctor_set(x_391, 5, x_356); +lean_ctor_set(x_391, 6, x_357); +lean_ctor_set(x_391, 7, x_358); +lean_ctor_set(x_391, 8, x_359); +lean_ctor_set(x_391, 9, x_386); +lean_ctor_set(x_391, 10, x_1); +lean_ctor_set_uint8(x_391, sizeof(void*)*11, x_361); +lean_ctor_set_uint8(x_391, sizeof(void*)*11 + 1, x_362); +lean_ctor_set_uint8(x_391, sizeof(void*)*11 + 2, x_363); +x_392 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_392, 0, x_391); +lean_ctor_set(x_392, 1, x_350); +if (lean_obj_tag(x_1) == 1) +{ +lean_object* x_393; lean_object* x_394; uint8_t x_395; +x_393 = lean_ctor_get(x_1, 0); +lean_inc(x_393); +x_394 = l_Lean_nullKind; +x_395 = lean_name_eq(x_393, x_394); +lean_dec(x_393); +if (x_395 == 0) +{ +lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; +lean_inc(x_1); +x_396 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic___main___lambda__1___boxed), 2, 1); +lean_closure_set(x_396, 0, x_1); +x_397 = l___private_Lean_Elab_Util_4__regTraceClasses___closed__2; +x_398 = lean_alloc_closure((void*)(l_Lean_Elab_Term_trace), 4, 2); +lean_closure_set(x_398, 0, x_397); +lean_closure_set(x_398, 1, x_396); +lean_inc(x_392); +x_399 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_398, x_392, x_390); +if (lean_obj_tag(x_399) == 0) +{ +lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; +x_400 = lean_ctor_get(x_399, 1); +lean_inc(x_400); +lean_dec(x_399); +x_401 = l_Lean_Elab_Tactic_tacticElabAttribute; +x_402 = lean_ctor_get(x_401, 1); +lean_inc(x_402); +x_403 = lean_ctor_get(x_400, 0); +lean_inc(x_403); +x_404 = lean_ctor_get(x_403, 0); +lean_inc(x_404); +lean_dec(x_403); +x_405 = lean_ctor_get(x_404, 0); +lean_inc(x_405); +lean_dec(x_404); +x_406 = l_Lean_PersistentEnvExtension_getState___rarg(x_402, x_405); +lean_dec(x_405); +lean_dec(x_402); +x_407 = lean_ctor_get(x_406, 1); +lean_inc(x_407); +lean_dec(x_406); +lean_inc(x_1); +x_408 = l_Lean_Syntax_getKind(x_1); +x_409 = l_Lean_SMap_find_x3f___at_Lean_Elab_Tactic_evalTactic___main___spec__1(x_407, x_408); +if (lean_obj_tag(x_409) == 0) +{ +lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; +x_410 = l_Lean_Elab_Tactic_getEnv___rarg(x_400); +x_411 = lean_ctor_get(x_410, 0); +lean_inc(x_411); +x_412 = lean_ctor_get(x_410, 1); +lean_inc(x_412); +lean_dec(x_410); +x_413 = l_Lean_Elab_macroAttribute; +x_414 = lean_ctor_get(x_413, 1); +lean_inc(x_414); +x_415 = l_Lean_PersistentEnvExtension_getState___rarg(x_414, x_411); +lean_dec(x_411); +lean_dec(x_414); +x_416 = lean_ctor_get(x_415, 1); +lean_inc(x_416); +lean_dec(x_415); +x_417 = l_Lean_SMap_find_x3f___at_Lean_Elab_getMacros___spec__1(x_416, x_408); +lean_dec(x_408); +if (lean_obj_tag(x_417) == 0) +{ +lean_object* x_418; lean_object* x_419; +x_418 = lean_box(0); +x_419 = l___private_Lean_Elab_Tactic_Basic_2__expandTacticMacroFns___main___at_Lean_Elab_Tactic_evalTactic___main___spec__7(x_1, x_418, x_392, x_412); +return x_419; +} +else +{ +lean_object* x_420; lean_object* x_421; +x_420 = lean_ctor_get(x_417, 0); +lean_inc(x_420); +lean_dec(x_417); +x_421 = l___private_Lean_Elab_Tactic_Basic_2__expandTacticMacroFns___main___at_Lean_Elab_Tactic_evalTactic___main___spec__7(x_1, x_420, x_392, x_412); +return x_421; +} +} +else +{ +lean_object* x_422; lean_object* x_423; +lean_dec(x_408); +x_422 = lean_ctor_get(x_409, 0); +lean_inc(x_422); +lean_dec(x_409); +lean_inc(x_400); +x_423 = l___private_Lean_Elab_Tactic_Basic_1__evalTacticUsing___main(x_400, x_1, x_422, x_392, x_400); +return x_423; +} +} +else +{ +lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; +lean_dec(x_392); +lean_dec(x_1); +x_424 = lean_ctor_get(x_399, 0); +lean_inc(x_424); +x_425 = lean_ctor_get(x_399, 1); +lean_inc(x_425); +if (lean_is_exclusive(x_399)) { + lean_ctor_release(x_399, 0); + lean_ctor_release(x_399, 1); + x_426 = x_399; +} else { + lean_dec_ref(x_399); + x_426 = lean_box(0); +} +if (lean_is_scalar(x_426)) { + x_427 = lean_alloc_ctor(1, 2, 0); +} else { + x_427 = x_426; +} +lean_ctor_set(x_427, 0, x_424); +lean_ctor_set(x_427, 1, x_425); +return x_427; +} +} +else +{ +lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; +x_428 = l_Lean_Syntax_getArgs(x_1); +lean_dec(x_1); +x_429 = lean_unsigned_to_nat(2u); +x_430 = lean_unsigned_to_nat(0u); +x_431 = lean_box(0); +x_432 = l_Array_foldlStepMAux___main___at_Lean_Elab_Tactic_evalTactic___main___spec__8(x_429, x_428, x_430, x_431, x_392, x_390); +lean_dec(x_428); +return x_432; +} +} +else +{ +lean_object* x_433; lean_object* x_434; +lean_dec(x_1); +x_433 = l_Lean_Elab_Tactic_evalTactic___main___closed__3; +x_434 = l_Lean_Elab_Tactic_throwError___rarg(x_433, x_392, x_390); +return x_434; } } } @@ -6283,7 +7191,7 @@ return x_15; } else { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; uint8_t x_27; uint8_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; uint8_t x_27; uint8_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; x_16 = lean_ctor_get(x_6, 0); x_17 = lean_ctor_get(x_6, 1); x_18 = lean_ctor_get(x_6, 2); @@ -6294,9 +7202,11 @@ x_22 = lean_ctor_get(x_6, 6); x_23 = lean_ctor_get(x_6, 7); x_24 = lean_ctor_get(x_6, 8); x_25 = lean_ctor_get(x_6, 9); -x_26 = lean_ctor_get_uint8(x_6, sizeof(void*)*10); -x_27 = lean_ctor_get_uint8(x_6, sizeof(void*)*10 + 1); -x_28 = lean_ctor_get_uint8(x_6, sizeof(void*)*10 + 2); +x_26 = lean_ctor_get_uint8(x_6, sizeof(void*)*11); +x_27 = lean_ctor_get_uint8(x_6, sizeof(void*)*11 + 1); +x_28 = lean_ctor_get_uint8(x_6, sizeof(void*)*11 + 2); +x_29 = lean_ctor_get(x_6, 10); +lean_inc(x_29); lean_inc(x_25); lean_inc(x_24); lean_inc(x_23); @@ -6309,38 +7219,37 @@ lean_inc(x_17); lean_inc(x_16); lean_dec(x_6); lean_inc(x_7); -x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_2); -lean_ctor_set(x_29, 1, x_7); -x_30 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_24); -x_31 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_31, 0, x_16); -lean_ctor_set(x_31, 1, x_17); -lean_ctor_set(x_31, 2, x_18); -lean_ctor_set(x_31, 3, x_19); -lean_ctor_set(x_31, 4, x_20); -lean_ctor_set(x_31, 5, x_21); -lean_ctor_set(x_31, 6, x_22); -lean_ctor_set(x_31, 7, x_23); -lean_ctor_set(x_31, 8, x_30); -lean_ctor_set(x_31, 9, x_25); -lean_ctor_set_uint8(x_31, sizeof(void*)*10, x_26); -lean_ctor_set_uint8(x_31, sizeof(void*)*10 + 1, x_27); -lean_ctor_set_uint8(x_31, sizeof(void*)*10 + 2, x_28); -lean_ctor_set(x_3, 0, x_31); -x_32 = l_Lean_Elab_Tactic_evalTactic___main(x_7, x_3, x_8); -return x_32; +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_2); +lean_ctor_set(x_30, 1, x_7); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_24); +x_32 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_32, 0, x_16); +lean_ctor_set(x_32, 1, x_17); +lean_ctor_set(x_32, 2, x_18); +lean_ctor_set(x_32, 3, x_19); +lean_ctor_set(x_32, 4, x_20); +lean_ctor_set(x_32, 5, x_21); +lean_ctor_set(x_32, 6, x_22); +lean_ctor_set(x_32, 7, x_23); +lean_ctor_set(x_32, 8, x_31); +lean_ctor_set(x_32, 9, x_25); +lean_ctor_set(x_32, 10, x_29); +lean_ctor_set_uint8(x_32, sizeof(void*)*11, x_26); +lean_ctor_set_uint8(x_32, sizeof(void*)*11 + 1, x_27); +lean_ctor_set_uint8(x_32, sizeof(void*)*11 + 2, x_28); +lean_ctor_set(x_3, 0, x_32); +x_33 = l_Lean_Elab_Tactic_evalTactic___main(x_7, x_3, x_8); +return x_33; } } else { -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; uint8_t x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_33 = lean_ctor_get(x_3, 1); -x_34 = lean_ctor_get(x_3, 2); +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; uint8_t x_45; uint8_t x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_34 = lean_ctor_get(x_3, 1); lean_inc(x_34); -lean_inc(x_33); lean_dec(x_3); x_35 = lean_ctor_get(x_6, 0); lean_inc(x_35); @@ -6362,9 +7271,11 @@ x_43 = lean_ctor_get(x_6, 8); lean_inc(x_43); x_44 = lean_ctor_get(x_6, 9); lean_inc(x_44); -x_45 = lean_ctor_get_uint8(x_6, sizeof(void*)*10); -x_46 = lean_ctor_get_uint8(x_6, sizeof(void*)*10 + 1); -x_47 = lean_ctor_get_uint8(x_6, sizeof(void*)*10 + 2); +x_45 = lean_ctor_get_uint8(x_6, sizeof(void*)*11); +x_46 = lean_ctor_get_uint8(x_6, sizeof(void*)*11 + 1); +x_47 = lean_ctor_get_uint8(x_6, sizeof(void*)*11 + 2); +x_48 = lean_ctor_get(x_6, 10); +lean_inc(x_48); if (lean_is_exclusive(x_6)) { lean_ctor_release(x_6, 0); lean_ctor_release(x_6, 1); @@ -6376,66 +7287,67 @@ if (lean_is_exclusive(x_6)) { lean_ctor_release(x_6, 7); lean_ctor_release(x_6, 8); lean_ctor_release(x_6, 9); - x_48 = x_6; + lean_ctor_release(x_6, 10); + x_49 = x_6; } else { lean_dec_ref(x_6); - x_48 = lean_box(0); + x_49 = lean_box(0); } lean_inc(x_7); -x_49 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_49, 0, x_2); -lean_ctor_set(x_49, 1, x_7); -x_50 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_50, 0, x_49); -lean_ctor_set(x_50, 1, x_43); -if (lean_is_scalar(x_48)) { - x_51 = lean_alloc_ctor(0, 10, 3); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_2); +lean_ctor_set(x_50, 1, x_7); +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_43); +if (lean_is_scalar(x_49)) { + x_52 = lean_alloc_ctor(0, 11, 3); } else { - x_51 = x_48; + x_52 = x_49; } -lean_ctor_set(x_51, 0, x_35); -lean_ctor_set(x_51, 1, x_36); -lean_ctor_set(x_51, 2, x_37); -lean_ctor_set(x_51, 3, x_38); -lean_ctor_set(x_51, 4, x_39); -lean_ctor_set(x_51, 5, x_40); -lean_ctor_set(x_51, 6, x_41); -lean_ctor_set(x_51, 7, x_42); -lean_ctor_set(x_51, 8, x_50); -lean_ctor_set(x_51, 9, x_44); -lean_ctor_set_uint8(x_51, sizeof(void*)*10, x_45); -lean_ctor_set_uint8(x_51, sizeof(void*)*10 + 1, x_46); -lean_ctor_set_uint8(x_51, sizeof(void*)*10 + 2, x_47); -x_52 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_52, 1, x_33); -lean_ctor_set(x_52, 2, x_34); -x_53 = l_Lean_Elab_Tactic_evalTactic___main(x_7, x_52, x_8); -return x_53; +lean_ctor_set(x_52, 0, x_35); +lean_ctor_set(x_52, 1, x_36); +lean_ctor_set(x_52, 2, x_37); +lean_ctor_set(x_52, 3, x_38); +lean_ctor_set(x_52, 4, x_39); +lean_ctor_set(x_52, 5, x_40); +lean_ctor_set(x_52, 6, x_41); +lean_ctor_set(x_52, 7, x_42); +lean_ctor_set(x_52, 8, x_51); +lean_ctor_set(x_52, 9, x_44); +lean_ctor_set(x_52, 10, x_48); +lean_ctor_set_uint8(x_52, sizeof(void*)*11, x_45); +lean_ctor_set_uint8(x_52, sizeof(void*)*11 + 1, x_46); +lean_ctor_set_uint8(x_52, sizeof(void*)*11 + 2, x_47); +x_53 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_34); +x_54 = l_Lean_Elab_Tactic_evalTactic___main(x_7, x_53, x_8); +return x_54; } } else { -uint8_t x_54; +uint8_t x_55; lean_dec(x_3); lean_dec(x_2); -x_54 = !lean_is_exclusive(x_5); -if (x_54 == 0) +x_55 = !lean_is_exclusive(x_5); +if (x_55 == 0) { return x_5; } else { -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_5, 0); -x_56 = lean_ctor_get(x_5, 1); +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_5, 0); +x_57 = lean_ctor_get(x_5, 1); +lean_inc(x_57); lean_inc(x_56); -lean_inc(x_55); lean_dec(x_5); -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; +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; } } } @@ -6496,7 +7408,7 @@ return x_20; } else { -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; uint8_t x_30; uint8_t x_31; uint8_t x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +lean_object* x_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; uint8_t x_30; uint8_t x_31; uint8_t x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; x_21 = lean_ctor_get(x_6, 1); x_22 = lean_ctor_get(x_6, 2); x_23 = lean_ctor_get(x_6, 3); @@ -6506,9 +7418,11 @@ x_26 = lean_ctor_get(x_6, 6); x_27 = lean_ctor_get(x_6, 7); x_28 = lean_ctor_get(x_6, 8); x_29 = lean_ctor_get(x_6, 9); -x_30 = lean_ctor_get_uint8(x_6, sizeof(void*)*10); -x_31 = lean_ctor_get_uint8(x_6, sizeof(void*)*10 + 1); -x_32 = lean_ctor_get_uint8(x_6, sizeof(void*)*10 + 2); +x_30 = lean_ctor_get_uint8(x_6, sizeof(void*)*11); +x_31 = lean_ctor_get_uint8(x_6, sizeof(void*)*11 + 1); +x_32 = lean_ctor_get_uint8(x_6, sizeof(void*)*11 + 2); +x_33 = lean_ctor_get(x_6, 10); +lean_inc(x_33); lean_inc(x_29); lean_inc(x_28); lean_inc(x_27); @@ -6519,59 +7433,58 @@ lean_inc(x_23); lean_inc(x_22); lean_inc(x_21); lean_dec(x_6); -x_33 = lean_ctor_get(x_7, 0); -lean_inc(x_33); -x_34 = lean_ctor_get(x_7, 3); +x_34 = lean_ctor_get(x_7, 0); lean_inc(x_34); -x_35 = lean_ctor_get(x_7, 4); +x_35 = lean_ctor_get(x_7, 3); lean_inc(x_35); +x_36 = lean_ctor_get(x_7, 4); +lean_inc(x_36); if (lean_is_exclusive(x_7)) { lean_ctor_release(x_7, 0); lean_ctor_release(x_7, 1); lean_ctor_release(x_7, 2); lean_ctor_release(x_7, 3); lean_ctor_release(x_7, 4); - x_36 = x_7; + x_37 = x_7; } else { lean_dec_ref(x_7); - x_36 = lean_box(0); + x_37 = lean_box(0); } -if (lean_is_scalar(x_36)) { - x_37 = lean_alloc_ctor(0, 5, 0); +if (lean_is_scalar(x_37)) { + x_38 = lean_alloc_ctor(0, 5, 0); } else { - x_37 = x_36; + x_38 = x_37; } -lean_ctor_set(x_37, 0, x_33); -lean_ctor_set(x_37, 1, x_1); -lean_ctor_set(x_37, 2, x_2); -lean_ctor_set(x_37, 3, x_34); -lean_ctor_set(x_37, 4, x_35); -x_38 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_21); -lean_ctor_set(x_38, 2, x_22); -lean_ctor_set(x_38, 3, x_23); -lean_ctor_set(x_38, 4, x_24); -lean_ctor_set(x_38, 5, x_25); -lean_ctor_set(x_38, 6, x_26); -lean_ctor_set(x_38, 7, x_27); -lean_ctor_set(x_38, 8, x_28); -lean_ctor_set(x_38, 9, x_29); -lean_ctor_set_uint8(x_38, sizeof(void*)*10, x_30); -lean_ctor_set_uint8(x_38, sizeof(void*)*10 + 1, x_31); -lean_ctor_set_uint8(x_38, sizeof(void*)*10 + 2, x_32); -lean_ctor_set(x_4, 0, x_38); -x_39 = lean_apply_2(x_3, x_4, x_5); -return x_39; +lean_ctor_set(x_38, 0, x_34); +lean_ctor_set(x_38, 1, x_1); +lean_ctor_set(x_38, 2, x_2); +lean_ctor_set(x_38, 3, x_35); +lean_ctor_set(x_38, 4, x_36); +x_39 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_21); +lean_ctor_set(x_39, 2, x_22); +lean_ctor_set(x_39, 3, x_23); +lean_ctor_set(x_39, 4, x_24); +lean_ctor_set(x_39, 5, x_25); +lean_ctor_set(x_39, 6, x_26); +lean_ctor_set(x_39, 7, x_27); +lean_ctor_set(x_39, 8, x_28); +lean_ctor_set(x_39, 9, x_29); +lean_ctor_set(x_39, 10, x_33); +lean_ctor_set_uint8(x_39, sizeof(void*)*11, x_30); +lean_ctor_set_uint8(x_39, sizeof(void*)*11 + 1, x_31); +lean_ctor_set_uint8(x_39, sizeof(void*)*11 + 2, x_32); +lean_ctor_set(x_4, 0, x_39); +x_40 = lean_apply_2(x_3, x_4, x_5); +return x_40; } } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; uint8_t x_52; uint8_t x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_40 = lean_ctor_get(x_4, 1); -x_41 = lean_ctor_get(x_4, 2); +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; uint8_t x_52; uint8_t x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_41 = lean_ctor_get(x_4, 1); lean_inc(x_41); -lean_inc(x_40); lean_dec(x_4); x_42 = lean_ctor_get(x_6, 1); lean_inc(x_42); @@ -6591,9 +7504,11 @@ x_49 = lean_ctor_get(x_6, 8); lean_inc(x_49); x_50 = lean_ctor_get(x_6, 9); lean_inc(x_50); -x_51 = lean_ctor_get_uint8(x_6, sizeof(void*)*10); -x_52 = lean_ctor_get_uint8(x_6, sizeof(void*)*10 + 1); -x_53 = lean_ctor_get_uint8(x_6, sizeof(void*)*10 + 2); +x_51 = lean_ctor_get_uint8(x_6, sizeof(void*)*11); +x_52 = lean_ctor_get_uint8(x_6, sizeof(void*)*11 + 1); +x_53 = lean_ctor_get_uint8(x_6, sizeof(void*)*11 + 2); +x_54 = lean_ctor_get(x_6, 10); +lean_inc(x_54); if (lean_is_exclusive(x_6)) { lean_ctor_release(x_6, 0); lean_ctor_release(x_6, 1); @@ -6605,62 +7520,63 @@ if (lean_is_exclusive(x_6)) { lean_ctor_release(x_6, 7); lean_ctor_release(x_6, 8); lean_ctor_release(x_6, 9); - x_54 = x_6; + lean_ctor_release(x_6, 10); + x_55 = x_6; } else { lean_dec_ref(x_6); - x_54 = lean_box(0); + x_55 = lean_box(0); } -x_55 = lean_ctor_get(x_7, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_7, 3); +x_56 = lean_ctor_get(x_7, 0); lean_inc(x_56); -x_57 = lean_ctor_get(x_7, 4); +x_57 = lean_ctor_get(x_7, 3); lean_inc(x_57); +x_58 = lean_ctor_get(x_7, 4); +lean_inc(x_58); if (lean_is_exclusive(x_7)) { lean_ctor_release(x_7, 0); lean_ctor_release(x_7, 1); lean_ctor_release(x_7, 2); lean_ctor_release(x_7, 3); lean_ctor_release(x_7, 4); - x_58 = x_7; + x_59 = x_7; } else { lean_dec_ref(x_7); - x_58 = lean_box(0); + x_59 = lean_box(0); } -if (lean_is_scalar(x_58)) { - x_59 = lean_alloc_ctor(0, 5, 0); +if (lean_is_scalar(x_59)) { + x_60 = lean_alloc_ctor(0, 5, 0); } else { - x_59 = x_58; + x_60 = x_59; } -lean_ctor_set(x_59, 0, x_55); -lean_ctor_set(x_59, 1, x_1); -lean_ctor_set(x_59, 2, x_2); -lean_ctor_set(x_59, 3, x_56); -lean_ctor_set(x_59, 4, x_57); -if (lean_is_scalar(x_54)) { - x_60 = lean_alloc_ctor(0, 10, 3); +lean_ctor_set(x_60, 0, x_56); +lean_ctor_set(x_60, 1, x_1); +lean_ctor_set(x_60, 2, x_2); +lean_ctor_set(x_60, 3, x_57); +lean_ctor_set(x_60, 4, x_58); +if (lean_is_scalar(x_55)) { + x_61 = lean_alloc_ctor(0, 11, 3); } else { - x_60 = x_54; + x_61 = x_55; } -lean_ctor_set(x_60, 0, x_59); -lean_ctor_set(x_60, 1, x_42); -lean_ctor_set(x_60, 2, x_43); -lean_ctor_set(x_60, 3, x_44); -lean_ctor_set(x_60, 4, x_45); -lean_ctor_set(x_60, 5, x_46); -lean_ctor_set(x_60, 6, x_47); -lean_ctor_set(x_60, 7, x_48); -lean_ctor_set(x_60, 8, x_49); -lean_ctor_set(x_60, 9, x_50); -lean_ctor_set_uint8(x_60, sizeof(void*)*10, x_51); -lean_ctor_set_uint8(x_60, sizeof(void*)*10 + 1, x_52); -lean_ctor_set_uint8(x_60, sizeof(void*)*10 + 2, x_53); -x_61 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_61, 0, x_60); -lean_ctor_set(x_61, 1, x_40); -lean_ctor_set(x_61, 2, x_41); -x_62 = lean_apply_2(x_3, x_61, x_5); -return x_62; +lean_ctor_set(x_61, 1, x_42); +lean_ctor_set(x_61, 2, x_43); +lean_ctor_set(x_61, 3, x_44); +lean_ctor_set(x_61, 4, x_45); +lean_ctor_set(x_61, 5, x_46); +lean_ctor_set(x_61, 6, x_47); +lean_ctor_set(x_61, 7, x_48); +lean_ctor_set(x_61, 8, x_49); +lean_ctor_set(x_61, 9, x_50); +lean_ctor_set(x_61, 10, x_54); +lean_ctor_set_uint8(x_61, sizeof(void*)*11, x_51); +lean_ctor_set_uint8(x_61, sizeof(void*)*11 + 1, x_52); +lean_ctor_set_uint8(x_61, sizeof(void*)*11 + 2, x_53); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_41); +x_63 = lean_apply_2(x_3, x_62, x_5); +return x_63; } } } @@ -8241,7 +9157,7 @@ goto _start; lean_object* l_Lean_Elab_Tactic_withMVarContext___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +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; uint8_t x_12; x_5 = l_Lean_Elab_Tactic_getMVarDecl(x_1, x_3, x_4); x_6 = lean_ctor_get(x_3, 0); lean_inc(x_6); @@ -8261,399 +9177,309 @@ if (lean_is_exclusive(x_5)) { } x_11 = lean_ctor_get(x_3, 1); lean_inc(x_11); -x_12 = lean_ctor_get(x_3, 2); -lean_inc(x_12); -x_13 = !lean_is_exclusive(x_6); -if (x_13 == 0) +x_12 = !lean_is_exclusive(x_6); +if (x_12 == 0) { -lean_object* x_14; uint8_t x_15; -x_14 = lean_ctor_get(x_6, 0); -lean_dec(x_14); -x_15 = !lean_is_exclusive(x_7); -if (x_15 == 0) +lean_object* x_13; uint8_t x_14; +x_13 = lean_ctor_get(x_6, 0); +lean_dec(x_13); +x_14 = !lean_is_exclusive(x_7); +if (x_14 == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; -x_16 = lean_ctor_get(x_7, 2); -x_17 = lean_ctor_get(x_7, 1); -lean_dec(x_17); -x_18 = lean_ctor_get(x_8, 1); +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; +x_15 = lean_ctor_get(x_7, 2); +x_16 = lean_ctor_get(x_7, 1); +lean_dec(x_16); +x_17 = lean_ctor_get(x_8, 1); +lean_inc(x_17); +x_18 = lean_ctor_get(x_8, 4); lean_inc(x_18); -x_19 = lean_ctor_get(x_8, 4); -lean_inc(x_19); -x_20 = lean_array_get_size(x_16); -x_21 = lean_array_get_size(x_19); -x_22 = lean_nat_dec_eq(x_20, x_21); -lean_dec(x_21); +x_19 = lean_array_get_size(x_15); +x_20 = lean_array_get_size(x_18); +x_21 = lean_nat_dec_eq(x_19, x_20); lean_dec(x_20); -lean_inc(x_19); -lean_ctor_set(x_7, 2, x_19); -lean_ctor_set(x_7, 1, x_18); -x_23 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_23, 0, x_6); -lean_ctor_set(x_23, 1, x_11); -lean_ctor_set(x_23, 2, x_12); -if (x_22 == 0) -{ -lean_object* x_24; lean_dec(x_19); -lean_dec(x_16); +lean_inc(x_18); +lean_ctor_set(x_7, 2, x_18); +lean_ctor_set(x_7, 1, x_17); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_6); +lean_ctor_set(x_22, 1, x_11); +if (x_21 == 0) +{ +lean_object* x_23; +lean_dec(x_18); +lean_dec(x_15); lean_dec(x_10); lean_dec(x_8); lean_dec(x_3); -x_24 = lean_apply_2(x_2, x_23, x_9); -return x_24; +x_23 = lean_apply_2(x_2, x_22, x_9); +return x_23; } else { -lean_object* x_25; uint8_t x_26; -x_25 = lean_unsigned_to_nat(0u); -x_26 = l_Array_isEqvAux___main___at_Lean_Elab_Tactic_withMVarContext___spec__1(x_3, x_8, lean_box(0), x_16, x_19, x_25); -lean_dec(x_19); -lean_dec(x_16); +lean_object* x_24; uint8_t x_25; +x_24 = lean_unsigned_to_nat(0u); +x_25 = l_Array_isEqvAux___main___at_Lean_Elab_Tactic_withMVarContext___spec__1(x_3, x_8, lean_box(0), x_15, x_18, x_24); +lean_dec(x_18); +lean_dec(x_15); lean_dec(x_8); lean_dec(x_3); -if (x_26 == 0) +if (x_25 == 0) { -lean_object* x_27; +lean_object* x_26; lean_dec(x_10); -x_27 = lean_apply_2(x_2, x_23, x_9); -return x_27; +x_26 = lean_apply_2(x_2, x_22, x_9); +return x_26; } else { -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_185; lean_object* x_186; -x_28 = lean_ctor_get(x_9, 0); +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_184; lean_object* x_185; +x_27 = lean_ctor_get(x_9, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_27, 0); lean_inc(x_28); -x_29 = lean_ctor_get(x_28, 0); +lean_dec(x_27); +x_29 = lean_ctor_get(x_28, 2); lean_inc(x_29); lean_dec(x_28); x_30 = lean_ctor_get(x_29, 2); lean_inc(x_30); lean_dec(x_29); -x_31 = lean_ctor_get(x_30, 2); -lean_inc(x_31); -lean_dec(x_30); -x_185 = l_Lean_Elab_Tactic_resetSynthInstanceCache___closed__1; -lean_inc(x_23); -x_186 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_185, x_23, x_9); -if (lean_obj_tag(x_186) == 0) +x_184 = l_Lean_Elab_Tactic_resetSynthInstanceCache___closed__1; +lean_inc(x_22); +x_185 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_184, x_22, x_9); +if (lean_obj_tag(x_185) == 0) { -lean_object* x_187; lean_object* x_188; lean_object* x_189; -x_187 = lean_ctor_get(x_186, 1); -lean_inc(x_187); -lean_dec(x_186); -x_188 = l_Lean_Elab_Tactic_save(x_187); -x_189 = lean_apply_2(x_2, x_23, x_187); -if (lean_obj_tag(x_189) == 0) +lean_object* x_186; lean_object* x_187; lean_object* x_188; +x_186 = lean_ctor_get(x_185, 1); +lean_inc(x_186); +lean_dec(x_185); +x_187 = l_Lean_Elab_Tactic_save(x_186); +x_188 = lean_apply_2(x_2, x_22, x_186); +if (lean_obj_tag(x_188) == 0) { -lean_object* x_190; lean_object* x_191; lean_object* x_192; -lean_dec(x_188); -x_190 = lean_ctor_get(x_189, 0); +lean_object* x_189; lean_object* x_190; lean_object* x_191; +lean_dec(x_187); +x_189 = lean_ctor_get(x_188, 0); +lean_inc(x_189); +x_190 = lean_ctor_get(x_188, 1); lean_inc(x_190); -x_191 = lean_ctor_get(x_189, 1); -lean_inc(x_191); -lean_dec(x_189); -x_192 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_192, 0, x_190); -x_32 = x_192; -x_33 = x_191; -goto block_184; -} -else -{ -lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; -x_193 = lean_ctor_get(x_189, 0); -lean_inc(x_193); -x_194 = lean_ctor_get(x_189, 1); -lean_inc(x_194); -lean_dec(x_189); -x_195 = l_Lean_Elab_Tactic_restore(x_194, x_188); lean_dec(x_188); -x_196 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_196, 0, x_193); -x_32 = x_196; -x_33 = x_195; -goto block_184; +x_191 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_191, 0, x_189); +x_31 = x_191; +x_32 = x_190; +goto block_183; +} +else +{ +lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; +x_192 = lean_ctor_get(x_188, 0); +lean_inc(x_192); +x_193 = lean_ctor_get(x_188, 1); +lean_inc(x_193); +lean_dec(x_188); +x_194 = l_Lean_Elab_Tactic_restore(x_193, x_187); +lean_dec(x_187); +x_195 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_195, 0, x_192); +x_31 = x_195; +x_32 = x_194; +goto block_183; } } else { -uint8_t x_197; -lean_dec(x_31); -lean_dec(x_23); +uint8_t x_196; +lean_dec(x_30); +lean_dec(x_22); lean_dec(x_10); lean_dec(x_2); -x_197 = !lean_is_exclusive(x_186); -if (x_197 == 0) +x_196 = !lean_is_exclusive(x_185); +if (x_196 == 0) { -return x_186; +return x_185; } else { -lean_object* x_198; lean_object* x_199; lean_object* x_200; -x_198 = lean_ctor_get(x_186, 0); -x_199 = lean_ctor_get(x_186, 1); -lean_inc(x_199); +lean_object* x_197; lean_object* x_198; lean_object* x_199; +x_197 = lean_ctor_get(x_185, 0); +x_198 = lean_ctor_get(x_185, 1); lean_inc(x_198); -lean_dec(x_186); -x_200 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_200, 0, x_198); -lean_ctor_set(x_200, 1, x_199); -return x_200; +lean_inc(x_197); +lean_dec(x_185); +x_199 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_199, 0, x_197); +lean_ctor_set(x_199, 1, x_198); +return x_199; } } -block_184: +block_183: { -if (lean_obj_tag(x_32) == 0) +if (lean_obj_tag(x_31) == 0) { -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); x_34 = lean_ctor_get(x_33, 0); lean_inc(x_34); -x_35 = lean_ctor_get(x_34, 0); +x_35 = lean_ctor_get(x_34, 2); lean_inc(x_35); -x_36 = lean_ctor_get(x_35, 2); +x_36 = lean_ctor_get(x_31, 0); lean_inc(x_36); -x_37 = lean_ctor_get(x_32, 0); -lean_inc(x_37); -lean_dec(x_32); -x_38 = !lean_is_exclusive(x_33); -if (x_38 == 0) +lean_dec(x_31); +x_37 = !lean_is_exclusive(x_32); +if (x_37 == 0) { -lean_object* x_39; uint8_t x_40; -x_39 = lean_ctor_get(x_33, 0); -lean_dec(x_39); -x_40 = !lean_is_exclusive(x_34); -if (x_40 == 0) +lean_object* x_38; uint8_t x_39; +x_38 = lean_ctor_get(x_32, 0); +lean_dec(x_38); +x_39 = !lean_is_exclusive(x_33); +if (x_39 == 0) { -lean_object* x_41; uint8_t x_42; -x_41 = lean_ctor_get(x_34, 0); -lean_dec(x_41); -x_42 = !lean_is_exclusive(x_35); -if (x_42 == 0) +lean_object* x_40; uint8_t x_41; +x_40 = lean_ctor_get(x_33, 0); +lean_dec(x_40); +x_41 = !lean_is_exclusive(x_34); +if (x_41 == 0) { -lean_object* x_43; uint8_t x_44; -x_43 = lean_ctor_get(x_35, 2); -lean_dec(x_43); -x_44 = !lean_is_exclusive(x_36); -if (x_44 == 0) +lean_object* x_42; uint8_t x_43; +x_42 = lean_ctor_get(x_34, 2); +lean_dec(x_42); +x_43 = !lean_is_exclusive(x_35); +if (x_43 == 0) { -lean_object* x_45; lean_object* x_46; -x_45 = lean_ctor_get(x_36, 2); -lean_dec(x_45); -lean_ctor_set(x_36, 2, x_31); +lean_object* x_44; lean_object* x_45; +x_44 = lean_ctor_get(x_35, 2); +lean_dec(x_44); +lean_ctor_set(x_35, 2, x_30); if (lean_is_scalar(x_10)) { - x_46 = lean_alloc_ctor(1, 2, 0); + x_45 = lean_alloc_ctor(1, 2, 0); } else { - x_46 = x_10; - lean_ctor_set_tag(x_46, 1); + x_45 = x_10; + lean_ctor_set_tag(x_45, 1); } -lean_ctor_set(x_46, 0, x_37); -lean_ctor_set(x_46, 1, x_33); -return x_46; +lean_ctor_set(x_45, 0, x_36); +lean_ctor_set(x_45, 1, x_32); +return x_45; } else { -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_47 = lean_ctor_get(x_36, 0); -x_48 = lean_ctor_get(x_36, 1); -x_49 = lean_ctor_get(x_36, 3); -x_50 = lean_ctor_get(x_36, 4); -lean_inc(x_50); +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_46 = lean_ctor_get(x_35, 0); +x_47 = lean_ctor_get(x_35, 1); +x_48 = lean_ctor_get(x_35, 3); +x_49 = lean_ctor_get(x_35, 4); lean_inc(x_49); lean_inc(x_48); lean_inc(x_47); -lean_dec(x_36); -x_51 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_51, 0, x_47); -lean_ctor_set(x_51, 1, x_48); -lean_ctor_set(x_51, 2, x_31); -lean_ctor_set(x_51, 3, x_49); -lean_ctor_set(x_51, 4, x_50); -lean_ctor_set(x_35, 2, x_51); +lean_inc(x_46); +lean_dec(x_35); +x_50 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_50, 0, x_46); +lean_ctor_set(x_50, 1, x_47); +lean_ctor_set(x_50, 2, x_30); +lean_ctor_set(x_50, 3, x_48); +lean_ctor_set(x_50, 4, x_49); +lean_ctor_set(x_34, 2, x_50); if (lean_is_scalar(x_10)) { - x_52 = lean_alloc_ctor(1, 2, 0); + x_51 = lean_alloc_ctor(1, 2, 0); } else { - x_52 = x_10; - lean_ctor_set_tag(x_52, 1); + x_51 = x_10; + lean_ctor_set_tag(x_51, 1); } -lean_ctor_set(x_52, 0, x_37); -lean_ctor_set(x_52, 1, x_33); -return x_52; +lean_ctor_set(x_51, 0, x_36); +lean_ctor_set(x_51, 1, x_32); +return x_51; } } else { -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_53 = lean_ctor_get(x_35, 0); -x_54 = lean_ctor_get(x_35, 1); -x_55 = lean_ctor_get(x_35, 3); -x_56 = lean_ctor_get(x_35, 4); -x_57 = lean_ctor_get(x_35, 5); -lean_inc(x_57); +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_52 = lean_ctor_get(x_34, 0); +x_53 = lean_ctor_get(x_34, 1); +x_54 = lean_ctor_get(x_34, 3); +x_55 = lean_ctor_get(x_34, 4); +x_56 = lean_ctor_get(x_34, 5); lean_inc(x_56); lean_inc(x_55); lean_inc(x_54); lean_inc(x_53); -lean_dec(x_35); -x_58 = lean_ctor_get(x_36, 0); -lean_inc(x_58); -x_59 = lean_ctor_get(x_36, 1); -lean_inc(x_59); -x_60 = lean_ctor_get(x_36, 3); -lean_inc(x_60); -x_61 = lean_ctor_get(x_36, 4); -lean_inc(x_61); -if (lean_is_exclusive(x_36)) { - lean_ctor_release(x_36, 0); - lean_ctor_release(x_36, 1); - lean_ctor_release(x_36, 2); - lean_ctor_release(x_36, 3); - lean_ctor_release(x_36, 4); - x_62 = x_36; -} else { - lean_dec_ref(x_36); - x_62 = lean_box(0); -} -if (lean_is_scalar(x_62)) { - x_63 = lean_alloc_ctor(0, 5, 0); -} else { - x_63 = x_62; -} -lean_ctor_set(x_63, 0, x_58); -lean_ctor_set(x_63, 1, x_59); -lean_ctor_set(x_63, 2, x_31); -lean_ctor_set(x_63, 3, x_60); -lean_ctor_set(x_63, 4, x_61); -x_64 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_64, 0, x_53); -lean_ctor_set(x_64, 1, x_54); -lean_ctor_set(x_64, 2, x_63); -lean_ctor_set(x_64, 3, x_55); -lean_ctor_set(x_64, 4, x_56); -lean_ctor_set(x_64, 5, x_57); -lean_ctor_set(x_34, 0, x_64); -if (lean_is_scalar(x_10)) { - x_65 = lean_alloc_ctor(1, 2, 0); -} else { - x_65 = x_10; - lean_ctor_set_tag(x_65, 1); -} -lean_ctor_set(x_65, 0, x_37); -lean_ctor_set(x_65, 1, x_33); -return x_65; -} -} -else -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; -x_66 = lean_ctor_get(x_34, 1); -x_67 = lean_ctor_get(x_34, 2); -x_68 = lean_ctor_get(x_34, 3); -x_69 = lean_ctor_get(x_34, 4); -x_70 = lean_ctor_get(x_34, 5); -lean_inc(x_70); -lean_inc(x_69); -lean_inc(x_68); -lean_inc(x_67); -lean_inc(x_66); +lean_inc(x_52); lean_dec(x_34); -x_71 = lean_ctor_get(x_35, 0); -lean_inc(x_71); -x_72 = lean_ctor_get(x_35, 1); -lean_inc(x_72); -x_73 = lean_ctor_get(x_35, 3); -lean_inc(x_73); -x_74 = lean_ctor_get(x_35, 4); -lean_inc(x_74); -x_75 = lean_ctor_get(x_35, 5); -lean_inc(x_75); +x_57 = lean_ctor_get(x_35, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_35, 1); +lean_inc(x_58); +x_59 = lean_ctor_get(x_35, 3); +lean_inc(x_59); +x_60 = lean_ctor_get(x_35, 4); +lean_inc(x_60); if (lean_is_exclusive(x_35)) { lean_ctor_release(x_35, 0); lean_ctor_release(x_35, 1); lean_ctor_release(x_35, 2); lean_ctor_release(x_35, 3); lean_ctor_release(x_35, 4); - lean_ctor_release(x_35, 5); - x_76 = x_35; + x_61 = x_35; } else { lean_dec_ref(x_35); - x_76 = lean_box(0); + x_61 = lean_box(0); } -x_77 = lean_ctor_get(x_36, 0); -lean_inc(x_77); -x_78 = lean_ctor_get(x_36, 1); -lean_inc(x_78); -x_79 = lean_ctor_get(x_36, 3); -lean_inc(x_79); -x_80 = lean_ctor_get(x_36, 4); -lean_inc(x_80); -if (lean_is_exclusive(x_36)) { - lean_ctor_release(x_36, 0); - lean_ctor_release(x_36, 1); - lean_ctor_release(x_36, 2); - lean_ctor_release(x_36, 3); - lean_ctor_release(x_36, 4); - x_81 = x_36; +if (lean_is_scalar(x_61)) { + x_62 = lean_alloc_ctor(0, 5, 0); } else { - lean_dec_ref(x_36); - x_81 = lean_box(0); + x_62 = x_61; } -if (lean_is_scalar(x_81)) { - x_82 = lean_alloc_ctor(0, 5, 0); -} else { - x_82 = x_81; -} -lean_ctor_set(x_82, 0, x_77); -lean_ctor_set(x_82, 1, x_78); -lean_ctor_set(x_82, 2, x_31); -lean_ctor_set(x_82, 3, x_79); -lean_ctor_set(x_82, 4, x_80); -if (lean_is_scalar(x_76)) { - x_83 = lean_alloc_ctor(0, 6, 0); -} else { - x_83 = x_76; -} -lean_ctor_set(x_83, 0, x_71); -lean_ctor_set(x_83, 1, x_72); -lean_ctor_set(x_83, 2, x_82); -lean_ctor_set(x_83, 3, x_73); -lean_ctor_set(x_83, 4, x_74); -lean_ctor_set(x_83, 5, x_75); -x_84 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_66); -lean_ctor_set(x_84, 2, x_67); -lean_ctor_set(x_84, 3, x_68); -lean_ctor_set(x_84, 4, x_69); -lean_ctor_set(x_84, 5, x_70); -lean_ctor_set(x_33, 0, x_84); +lean_ctor_set(x_62, 0, x_57); +lean_ctor_set(x_62, 1, x_58); +lean_ctor_set(x_62, 2, x_30); +lean_ctor_set(x_62, 3, x_59); +lean_ctor_set(x_62, 4, x_60); +x_63 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_63, 0, x_52); +lean_ctor_set(x_63, 1, x_53); +lean_ctor_set(x_63, 2, x_62); +lean_ctor_set(x_63, 3, x_54); +lean_ctor_set(x_63, 4, x_55); +lean_ctor_set(x_63, 5, x_56); +lean_ctor_set(x_33, 0, x_63); if (lean_is_scalar(x_10)) { - x_85 = lean_alloc_ctor(1, 2, 0); + x_64 = lean_alloc_ctor(1, 2, 0); } else { - x_85 = x_10; - lean_ctor_set_tag(x_85, 1); + x_64 = x_10; + lean_ctor_set_tag(x_64, 1); } -lean_ctor_set(x_85, 0, x_37); -lean_ctor_set(x_85, 1, x_33); -return x_85; +lean_ctor_set(x_64, 0, x_36); +lean_ctor_set(x_64, 1, x_32); +return x_64; } } else { -lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_86 = lean_ctor_get(x_33, 1); -lean_inc(x_86); +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_65 = lean_ctor_get(x_33, 1); +x_66 = lean_ctor_get(x_33, 2); +x_67 = lean_ctor_get(x_33, 3); +x_68 = lean_ctor_get(x_33, 4); +x_69 = lean_ctor_get(x_33, 5); +lean_inc(x_69); +lean_inc(x_68); +lean_inc(x_67); +lean_inc(x_66); +lean_inc(x_65); lean_dec(x_33); -x_87 = lean_ctor_get(x_34, 1); -lean_inc(x_87); -x_88 = lean_ctor_get(x_34, 2); -lean_inc(x_88); -x_89 = lean_ctor_get(x_34, 3); -lean_inc(x_89); -x_90 = lean_ctor_get(x_34, 4); -lean_inc(x_90); -x_91 = lean_ctor_get(x_34, 5); -lean_inc(x_91); +x_70 = lean_ctor_get(x_34, 0); +lean_inc(x_70); +x_71 = lean_ctor_get(x_34, 1); +lean_inc(x_71); +x_72 = lean_ctor_get(x_34, 3); +lean_inc(x_72); +x_73 = lean_ctor_get(x_34, 4); +lean_inc(x_73); +x_74 = lean_ctor_get(x_34, 5); +lean_inc(x_74); if (lean_is_exclusive(x_34)) { lean_ctor_release(x_34, 0); lean_ctor_release(x_34, 1); @@ -8661,344 +9487,345 @@ if (lean_is_exclusive(x_34)) { lean_ctor_release(x_34, 3); lean_ctor_release(x_34, 4); lean_ctor_release(x_34, 5); - x_92 = x_34; + x_75 = x_34; } else { lean_dec_ref(x_34); - x_92 = lean_box(0); + x_75 = lean_box(0); } -x_93 = lean_ctor_get(x_35, 0); -lean_inc(x_93); -x_94 = lean_ctor_get(x_35, 1); -lean_inc(x_94); -x_95 = lean_ctor_get(x_35, 3); -lean_inc(x_95); -x_96 = lean_ctor_get(x_35, 4); -lean_inc(x_96); -x_97 = lean_ctor_get(x_35, 5); -lean_inc(x_97); +x_76 = lean_ctor_get(x_35, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_35, 1); +lean_inc(x_77); +x_78 = lean_ctor_get(x_35, 3); +lean_inc(x_78); +x_79 = lean_ctor_get(x_35, 4); +lean_inc(x_79); if (lean_is_exclusive(x_35)) { lean_ctor_release(x_35, 0); lean_ctor_release(x_35, 1); lean_ctor_release(x_35, 2); lean_ctor_release(x_35, 3); lean_ctor_release(x_35, 4); - lean_ctor_release(x_35, 5); - x_98 = x_35; + x_80 = x_35; } else { lean_dec_ref(x_35); - x_98 = lean_box(0); + x_80 = lean_box(0); } -x_99 = lean_ctor_get(x_36, 0); +if (lean_is_scalar(x_80)) { + x_81 = lean_alloc_ctor(0, 5, 0); +} else { + x_81 = x_80; +} +lean_ctor_set(x_81, 0, x_76); +lean_ctor_set(x_81, 1, x_77); +lean_ctor_set(x_81, 2, x_30); +lean_ctor_set(x_81, 3, x_78); +lean_ctor_set(x_81, 4, x_79); +if (lean_is_scalar(x_75)) { + x_82 = lean_alloc_ctor(0, 6, 0); +} else { + x_82 = x_75; +} +lean_ctor_set(x_82, 0, x_70); +lean_ctor_set(x_82, 1, x_71); +lean_ctor_set(x_82, 2, x_81); +lean_ctor_set(x_82, 3, x_72); +lean_ctor_set(x_82, 4, x_73); +lean_ctor_set(x_82, 5, x_74); +x_83 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_83, 0, x_82); +lean_ctor_set(x_83, 1, x_65); +lean_ctor_set(x_83, 2, x_66); +lean_ctor_set(x_83, 3, x_67); +lean_ctor_set(x_83, 4, x_68); +lean_ctor_set(x_83, 5, x_69); +lean_ctor_set(x_32, 0, x_83); +if (lean_is_scalar(x_10)) { + x_84 = lean_alloc_ctor(1, 2, 0); +} else { + x_84 = x_10; + lean_ctor_set_tag(x_84, 1); +} +lean_ctor_set(x_84, 0, x_36); +lean_ctor_set(x_84, 1, x_32); +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; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; +x_85 = lean_ctor_get(x_32, 1); +lean_inc(x_85); +lean_dec(x_32); +x_86 = lean_ctor_get(x_33, 1); +lean_inc(x_86); +x_87 = lean_ctor_get(x_33, 2); +lean_inc(x_87); +x_88 = lean_ctor_get(x_33, 3); +lean_inc(x_88); +x_89 = lean_ctor_get(x_33, 4); +lean_inc(x_89); +x_90 = lean_ctor_get(x_33, 5); +lean_inc(x_90); +if (lean_is_exclusive(x_33)) { + lean_ctor_release(x_33, 0); + lean_ctor_release(x_33, 1); + lean_ctor_release(x_33, 2); + lean_ctor_release(x_33, 3); + lean_ctor_release(x_33, 4); + lean_ctor_release(x_33, 5); + x_91 = x_33; +} else { + lean_dec_ref(x_33); + x_91 = lean_box(0); +} +x_92 = lean_ctor_get(x_34, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_34, 1); +lean_inc(x_93); +x_94 = lean_ctor_get(x_34, 3); +lean_inc(x_94); +x_95 = lean_ctor_get(x_34, 4); +lean_inc(x_95); +x_96 = lean_ctor_get(x_34, 5); +lean_inc(x_96); +if (lean_is_exclusive(x_34)) { + lean_ctor_release(x_34, 0); + lean_ctor_release(x_34, 1); + lean_ctor_release(x_34, 2); + lean_ctor_release(x_34, 3); + lean_ctor_release(x_34, 4); + lean_ctor_release(x_34, 5); + x_97 = x_34; +} else { + lean_dec_ref(x_34); + x_97 = lean_box(0); +} +x_98 = lean_ctor_get(x_35, 0); +lean_inc(x_98); +x_99 = lean_ctor_get(x_35, 1); lean_inc(x_99); -x_100 = lean_ctor_get(x_36, 1); +x_100 = lean_ctor_get(x_35, 3); lean_inc(x_100); -x_101 = lean_ctor_get(x_36, 3); +x_101 = lean_ctor_get(x_35, 4); lean_inc(x_101); -x_102 = lean_ctor_get(x_36, 4); -lean_inc(x_102); -if (lean_is_exclusive(x_36)) { - lean_ctor_release(x_36, 0); - lean_ctor_release(x_36, 1); - lean_ctor_release(x_36, 2); - lean_ctor_release(x_36, 3); - lean_ctor_release(x_36, 4); - x_103 = x_36; +if (lean_is_exclusive(x_35)) { + lean_ctor_release(x_35, 0); + lean_ctor_release(x_35, 1); + lean_ctor_release(x_35, 2); + lean_ctor_release(x_35, 3); + lean_ctor_release(x_35, 4); + x_102 = x_35; } else { - lean_dec_ref(x_36); - x_103 = lean_box(0); + lean_dec_ref(x_35); + x_102 = lean_box(0); } -if (lean_is_scalar(x_103)) { - x_104 = lean_alloc_ctor(0, 5, 0); +if (lean_is_scalar(x_102)) { + x_103 = lean_alloc_ctor(0, 5, 0); } else { - x_104 = x_103; + x_103 = x_102; } -lean_ctor_set(x_104, 0, x_99); -lean_ctor_set(x_104, 1, x_100); -lean_ctor_set(x_104, 2, x_31); -lean_ctor_set(x_104, 3, x_101); -lean_ctor_set(x_104, 4, x_102); -if (lean_is_scalar(x_98)) { +lean_ctor_set(x_103, 0, x_98); +lean_ctor_set(x_103, 1, x_99); +lean_ctor_set(x_103, 2, x_30); +lean_ctor_set(x_103, 3, x_100); +lean_ctor_set(x_103, 4, x_101); +if (lean_is_scalar(x_97)) { + x_104 = lean_alloc_ctor(0, 6, 0); +} else { + x_104 = x_97; +} +lean_ctor_set(x_104, 0, x_92); +lean_ctor_set(x_104, 1, x_93); +lean_ctor_set(x_104, 2, x_103); +lean_ctor_set(x_104, 3, x_94); +lean_ctor_set(x_104, 4, x_95); +lean_ctor_set(x_104, 5, x_96); +if (lean_is_scalar(x_91)) { x_105 = lean_alloc_ctor(0, 6, 0); } else { - x_105 = x_98; -} -lean_ctor_set(x_105, 0, x_93); -lean_ctor_set(x_105, 1, x_94); -lean_ctor_set(x_105, 2, x_104); -lean_ctor_set(x_105, 3, x_95); -lean_ctor_set(x_105, 4, x_96); -lean_ctor_set(x_105, 5, x_97); -if (lean_is_scalar(x_92)) { - x_106 = lean_alloc_ctor(0, 6, 0); -} else { - x_106 = x_92; + x_105 = x_91; } +lean_ctor_set(x_105, 0, x_104); +lean_ctor_set(x_105, 1, x_86); +lean_ctor_set(x_105, 2, x_87); +lean_ctor_set(x_105, 3, x_88); +lean_ctor_set(x_105, 4, x_89); +lean_ctor_set(x_105, 5, x_90); +x_106 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_106, 0, x_105); -lean_ctor_set(x_106, 1, x_87); -lean_ctor_set(x_106, 2, x_88); -lean_ctor_set(x_106, 3, x_89); -lean_ctor_set(x_106, 4, x_90); -lean_ctor_set(x_106, 5, x_91); -x_107 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_107, 0, x_106); -lean_ctor_set(x_107, 1, x_86); +lean_ctor_set(x_106, 1, x_85); if (lean_is_scalar(x_10)) { - x_108 = lean_alloc_ctor(1, 2, 0); + x_107 = lean_alloc_ctor(1, 2, 0); } else { - x_108 = x_10; - lean_ctor_set_tag(x_108, 1); + x_107 = x_10; + lean_ctor_set_tag(x_107, 1); } -lean_ctor_set(x_108, 0, x_37); -lean_ctor_set(x_108, 1, x_107); -return x_108; +lean_ctor_set(x_107, 0, x_36); +lean_ctor_set(x_107, 1, x_106); +return x_107; } } else { -lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; -x_109 = lean_ctor_get(x_33, 0); +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; uint8_t x_112; +x_108 = lean_ctor_get(x_32, 0); +lean_inc(x_108); +x_109 = lean_ctor_get(x_108, 0); lean_inc(x_109); -x_110 = lean_ctor_get(x_109, 0); +x_110 = lean_ctor_get(x_109, 2); lean_inc(x_110); -x_111 = lean_ctor_get(x_110, 2); +x_111 = lean_ctor_get(x_31, 0); lean_inc(x_111); -x_112 = lean_ctor_get(x_32, 0); -lean_inc(x_112); -lean_dec(x_32); -x_113 = !lean_is_exclusive(x_33); -if (x_113 == 0) +lean_dec(x_31); +x_112 = !lean_is_exclusive(x_32); +if (x_112 == 0) { -lean_object* x_114; uint8_t x_115; -x_114 = lean_ctor_get(x_33, 0); -lean_dec(x_114); -x_115 = !lean_is_exclusive(x_109); -if (x_115 == 0) +lean_object* x_113; uint8_t x_114; +x_113 = lean_ctor_get(x_32, 0); +lean_dec(x_113); +x_114 = !lean_is_exclusive(x_108); +if (x_114 == 0) { -lean_object* x_116; uint8_t x_117; -x_116 = lean_ctor_get(x_109, 0); -lean_dec(x_116); -x_117 = !lean_is_exclusive(x_110); -if (x_117 == 0) +lean_object* x_115; uint8_t x_116; +x_115 = lean_ctor_get(x_108, 0); +lean_dec(x_115); +x_116 = !lean_is_exclusive(x_109); +if (x_116 == 0) { -lean_object* x_118; uint8_t x_119; -x_118 = lean_ctor_get(x_110, 2); -lean_dec(x_118); -x_119 = !lean_is_exclusive(x_111); -if (x_119 == 0) +lean_object* x_117; uint8_t x_118; +x_117 = lean_ctor_get(x_109, 2); +lean_dec(x_117); +x_118 = !lean_is_exclusive(x_110); +if (x_118 == 0) { -lean_object* x_120; lean_object* x_121; -x_120 = lean_ctor_get(x_111, 2); -lean_dec(x_120); -lean_ctor_set(x_111, 2, x_31); +lean_object* x_119; lean_object* x_120; +x_119 = lean_ctor_get(x_110, 2); +lean_dec(x_119); +lean_ctor_set(x_110, 2, x_30); if (lean_is_scalar(x_10)) { - x_121 = lean_alloc_ctor(0, 2, 0); + x_120 = lean_alloc_ctor(0, 2, 0); } else { - x_121 = x_10; + x_120 = x_10; } -lean_ctor_set(x_121, 0, x_112); -lean_ctor_set(x_121, 1, x_33); -return x_121; +lean_ctor_set(x_120, 0, x_111); +lean_ctor_set(x_120, 1, x_32); +return x_120; } else { -lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; -x_122 = lean_ctor_get(x_111, 0); -x_123 = lean_ctor_get(x_111, 1); -x_124 = lean_ctor_get(x_111, 3); -x_125 = lean_ctor_get(x_111, 4); -lean_inc(x_125); +lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_121 = lean_ctor_get(x_110, 0); +x_122 = lean_ctor_get(x_110, 1); +x_123 = lean_ctor_get(x_110, 3); +x_124 = lean_ctor_get(x_110, 4); lean_inc(x_124); lean_inc(x_123); lean_inc(x_122); -lean_dec(x_111); -x_126 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_126, 0, x_122); -lean_ctor_set(x_126, 1, x_123); -lean_ctor_set(x_126, 2, x_31); -lean_ctor_set(x_126, 3, x_124); -lean_ctor_set(x_126, 4, x_125); -lean_ctor_set(x_110, 2, x_126); +lean_inc(x_121); +lean_dec(x_110); +x_125 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_125, 0, x_121); +lean_ctor_set(x_125, 1, x_122); +lean_ctor_set(x_125, 2, x_30); +lean_ctor_set(x_125, 3, x_123); +lean_ctor_set(x_125, 4, x_124); +lean_ctor_set(x_109, 2, x_125); if (lean_is_scalar(x_10)) { - x_127 = lean_alloc_ctor(0, 2, 0); + x_126 = lean_alloc_ctor(0, 2, 0); } else { - x_127 = x_10; + x_126 = x_10; } -lean_ctor_set(x_127, 0, x_112); -lean_ctor_set(x_127, 1, x_33); -return x_127; +lean_ctor_set(x_126, 0, x_111); +lean_ctor_set(x_126, 1, x_32); +return x_126; } } else { -lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; -x_128 = lean_ctor_get(x_110, 0); -x_129 = lean_ctor_get(x_110, 1); -x_130 = lean_ctor_get(x_110, 3); -x_131 = lean_ctor_get(x_110, 4); -x_132 = lean_ctor_get(x_110, 5); -lean_inc(x_132); +lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; +x_127 = lean_ctor_get(x_109, 0); +x_128 = lean_ctor_get(x_109, 1); +x_129 = lean_ctor_get(x_109, 3); +x_130 = lean_ctor_get(x_109, 4); +x_131 = lean_ctor_get(x_109, 5); lean_inc(x_131); lean_inc(x_130); lean_inc(x_129); lean_inc(x_128); -lean_dec(x_110); -x_133 = lean_ctor_get(x_111, 0); -lean_inc(x_133); -x_134 = lean_ctor_get(x_111, 1); -lean_inc(x_134); -x_135 = lean_ctor_get(x_111, 3); -lean_inc(x_135); -x_136 = lean_ctor_get(x_111, 4); -lean_inc(x_136); -if (lean_is_exclusive(x_111)) { - lean_ctor_release(x_111, 0); - lean_ctor_release(x_111, 1); - lean_ctor_release(x_111, 2); - lean_ctor_release(x_111, 3); - lean_ctor_release(x_111, 4); - x_137 = x_111; -} else { - lean_dec_ref(x_111); - x_137 = lean_box(0); -} -if (lean_is_scalar(x_137)) { - x_138 = lean_alloc_ctor(0, 5, 0); -} else { - x_138 = x_137; -} -lean_ctor_set(x_138, 0, x_133); -lean_ctor_set(x_138, 1, x_134); -lean_ctor_set(x_138, 2, x_31); -lean_ctor_set(x_138, 3, x_135); -lean_ctor_set(x_138, 4, x_136); -x_139 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_139, 0, x_128); -lean_ctor_set(x_139, 1, x_129); -lean_ctor_set(x_139, 2, x_138); -lean_ctor_set(x_139, 3, x_130); -lean_ctor_set(x_139, 4, x_131); -lean_ctor_set(x_139, 5, x_132); -lean_ctor_set(x_109, 0, x_139); -if (lean_is_scalar(x_10)) { - x_140 = lean_alloc_ctor(0, 2, 0); -} else { - x_140 = x_10; -} -lean_ctor_set(x_140, 0, x_112); -lean_ctor_set(x_140, 1, x_33); -return x_140; -} -} -else -{ -lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; -x_141 = lean_ctor_get(x_109, 1); -x_142 = lean_ctor_get(x_109, 2); -x_143 = lean_ctor_get(x_109, 3); -x_144 = lean_ctor_get(x_109, 4); -x_145 = lean_ctor_get(x_109, 5); -lean_inc(x_145); -lean_inc(x_144); -lean_inc(x_143); -lean_inc(x_142); -lean_inc(x_141); +lean_inc(x_127); lean_dec(x_109); -x_146 = lean_ctor_get(x_110, 0); -lean_inc(x_146); -x_147 = lean_ctor_get(x_110, 1); -lean_inc(x_147); -x_148 = lean_ctor_get(x_110, 3); -lean_inc(x_148); -x_149 = lean_ctor_get(x_110, 4); -lean_inc(x_149); -x_150 = lean_ctor_get(x_110, 5); -lean_inc(x_150); +x_132 = lean_ctor_get(x_110, 0); +lean_inc(x_132); +x_133 = lean_ctor_get(x_110, 1); +lean_inc(x_133); +x_134 = lean_ctor_get(x_110, 3); +lean_inc(x_134); +x_135 = lean_ctor_get(x_110, 4); +lean_inc(x_135); if (lean_is_exclusive(x_110)) { lean_ctor_release(x_110, 0); lean_ctor_release(x_110, 1); lean_ctor_release(x_110, 2); lean_ctor_release(x_110, 3); lean_ctor_release(x_110, 4); - lean_ctor_release(x_110, 5); - x_151 = x_110; + x_136 = x_110; } else { lean_dec_ref(x_110); - x_151 = lean_box(0); + x_136 = lean_box(0); } -x_152 = lean_ctor_get(x_111, 0); -lean_inc(x_152); -x_153 = lean_ctor_get(x_111, 1); -lean_inc(x_153); -x_154 = lean_ctor_get(x_111, 3); -lean_inc(x_154); -x_155 = lean_ctor_get(x_111, 4); -lean_inc(x_155); -if (lean_is_exclusive(x_111)) { - lean_ctor_release(x_111, 0); - lean_ctor_release(x_111, 1); - lean_ctor_release(x_111, 2); - lean_ctor_release(x_111, 3); - lean_ctor_release(x_111, 4); - x_156 = x_111; +if (lean_is_scalar(x_136)) { + x_137 = lean_alloc_ctor(0, 5, 0); } else { - lean_dec_ref(x_111); - x_156 = lean_box(0); + x_137 = x_136; } -if (lean_is_scalar(x_156)) { - x_157 = lean_alloc_ctor(0, 5, 0); -} else { - x_157 = x_156; -} -lean_ctor_set(x_157, 0, x_152); -lean_ctor_set(x_157, 1, x_153); -lean_ctor_set(x_157, 2, x_31); -lean_ctor_set(x_157, 3, x_154); -lean_ctor_set(x_157, 4, x_155); -if (lean_is_scalar(x_151)) { - x_158 = lean_alloc_ctor(0, 6, 0); -} else { - x_158 = x_151; -} -lean_ctor_set(x_158, 0, x_146); -lean_ctor_set(x_158, 1, x_147); -lean_ctor_set(x_158, 2, x_157); -lean_ctor_set(x_158, 3, x_148); -lean_ctor_set(x_158, 4, x_149); -lean_ctor_set(x_158, 5, x_150); -x_159 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_159, 0, x_158); -lean_ctor_set(x_159, 1, x_141); -lean_ctor_set(x_159, 2, x_142); -lean_ctor_set(x_159, 3, x_143); -lean_ctor_set(x_159, 4, x_144); -lean_ctor_set(x_159, 5, x_145); -lean_ctor_set(x_33, 0, x_159); +lean_ctor_set(x_137, 0, x_132); +lean_ctor_set(x_137, 1, x_133); +lean_ctor_set(x_137, 2, x_30); +lean_ctor_set(x_137, 3, x_134); +lean_ctor_set(x_137, 4, x_135); +x_138 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_138, 0, x_127); +lean_ctor_set(x_138, 1, x_128); +lean_ctor_set(x_138, 2, x_137); +lean_ctor_set(x_138, 3, x_129); +lean_ctor_set(x_138, 4, x_130); +lean_ctor_set(x_138, 5, x_131); +lean_ctor_set(x_108, 0, x_138); if (lean_is_scalar(x_10)) { - x_160 = lean_alloc_ctor(0, 2, 0); + x_139 = lean_alloc_ctor(0, 2, 0); } else { - x_160 = x_10; + x_139 = x_10; } -lean_ctor_set(x_160, 0, x_112); -lean_ctor_set(x_160, 1, x_33); -return x_160; +lean_ctor_set(x_139, 0, x_111); +lean_ctor_set(x_139, 1, x_32); +return x_139; } } else { -lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; -x_161 = lean_ctor_get(x_33, 1); -lean_inc(x_161); -lean_dec(x_33); -x_162 = lean_ctor_get(x_109, 1); -lean_inc(x_162); -x_163 = lean_ctor_get(x_109, 2); -lean_inc(x_163); -x_164 = lean_ctor_get(x_109, 3); -lean_inc(x_164); -x_165 = lean_ctor_get(x_109, 4); -lean_inc(x_165); -x_166 = lean_ctor_get(x_109, 5); -lean_inc(x_166); +lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; +x_140 = lean_ctor_get(x_108, 1); +x_141 = lean_ctor_get(x_108, 2); +x_142 = lean_ctor_get(x_108, 3); +x_143 = lean_ctor_get(x_108, 4); +x_144 = lean_ctor_get(x_108, 5); +lean_inc(x_144); +lean_inc(x_143); +lean_inc(x_142); +lean_inc(x_141); +lean_inc(x_140); +lean_dec(x_108); +x_145 = lean_ctor_get(x_109, 0); +lean_inc(x_145); +x_146 = lean_ctor_get(x_109, 1); +lean_inc(x_146); +x_147 = lean_ctor_get(x_109, 3); +lean_inc(x_147); +x_148 = lean_ctor_get(x_109, 4); +lean_inc(x_148); +x_149 = lean_ctor_get(x_109, 5); +lean_inc(x_149); if (lean_is_exclusive(x_109)) { lean_ctor_release(x_109, 0); lean_ctor_release(x_109, 1); @@ -9006,95 +9833,181 @@ if (lean_is_exclusive(x_109)) { lean_ctor_release(x_109, 3); lean_ctor_release(x_109, 4); lean_ctor_release(x_109, 5); - x_167 = x_109; + x_150 = x_109; } else { lean_dec_ref(x_109); - x_167 = lean_box(0); + x_150 = lean_box(0); } -x_168 = lean_ctor_get(x_110, 0); -lean_inc(x_168); -x_169 = lean_ctor_get(x_110, 1); -lean_inc(x_169); -x_170 = lean_ctor_get(x_110, 3); -lean_inc(x_170); -x_171 = lean_ctor_get(x_110, 4); -lean_inc(x_171); -x_172 = lean_ctor_get(x_110, 5); -lean_inc(x_172); +x_151 = lean_ctor_get(x_110, 0); +lean_inc(x_151); +x_152 = lean_ctor_get(x_110, 1); +lean_inc(x_152); +x_153 = lean_ctor_get(x_110, 3); +lean_inc(x_153); +x_154 = lean_ctor_get(x_110, 4); +lean_inc(x_154); if (lean_is_exclusive(x_110)) { lean_ctor_release(x_110, 0); lean_ctor_release(x_110, 1); lean_ctor_release(x_110, 2); lean_ctor_release(x_110, 3); lean_ctor_release(x_110, 4); - lean_ctor_release(x_110, 5); - x_173 = x_110; + x_155 = x_110; } else { lean_dec_ref(x_110); - x_173 = lean_box(0); + x_155 = lean_box(0); } -x_174 = lean_ctor_get(x_111, 0); +if (lean_is_scalar(x_155)) { + x_156 = lean_alloc_ctor(0, 5, 0); +} else { + x_156 = x_155; +} +lean_ctor_set(x_156, 0, x_151); +lean_ctor_set(x_156, 1, x_152); +lean_ctor_set(x_156, 2, x_30); +lean_ctor_set(x_156, 3, x_153); +lean_ctor_set(x_156, 4, x_154); +if (lean_is_scalar(x_150)) { + x_157 = lean_alloc_ctor(0, 6, 0); +} else { + x_157 = x_150; +} +lean_ctor_set(x_157, 0, x_145); +lean_ctor_set(x_157, 1, x_146); +lean_ctor_set(x_157, 2, x_156); +lean_ctor_set(x_157, 3, x_147); +lean_ctor_set(x_157, 4, x_148); +lean_ctor_set(x_157, 5, x_149); +x_158 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_158, 0, x_157); +lean_ctor_set(x_158, 1, x_140); +lean_ctor_set(x_158, 2, x_141); +lean_ctor_set(x_158, 3, x_142); +lean_ctor_set(x_158, 4, x_143); +lean_ctor_set(x_158, 5, x_144); +lean_ctor_set(x_32, 0, x_158); +if (lean_is_scalar(x_10)) { + x_159 = lean_alloc_ctor(0, 2, 0); +} else { + x_159 = x_10; +} +lean_ctor_set(x_159, 0, x_111); +lean_ctor_set(x_159, 1, x_32); +return x_159; +} +} +else +{ +lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; 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_160 = lean_ctor_get(x_32, 1); +lean_inc(x_160); +lean_dec(x_32); +x_161 = lean_ctor_get(x_108, 1); +lean_inc(x_161); +x_162 = lean_ctor_get(x_108, 2); +lean_inc(x_162); +x_163 = lean_ctor_get(x_108, 3); +lean_inc(x_163); +x_164 = lean_ctor_get(x_108, 4); +lean_inc(x_164); +x_165 = lean_ctor_get(x_108, 5); +lean_inc(x_165); +if (lean_is_exclusive(x_108)) { + lean_ctor_release(x_108, 0); + lean_ctor_release(x_108, 1); + lean_ctor_release(x_108, 2); + lean_ctor_release(x_108, 3); + lean_ctor_release(x_108, 4); + lean_ctor_release(x_108, 5); + x_166 = x_108; +} else { + lean_dec_ref(x_108); + x_166 = lean_box(0); +} +x_167 = lean_ctor_get(x_109, 0); +lean_inc(x_167); +x_168 = lean_ctor_get(x_109, 1); +lean_inc(x_168); +x_169 = lean_ctor_get(x_109, 3); +lean_inc(x_169); +x_170 = lean_ctor_get(x_109, 4); +lean_inc(x_170); +x_171 = lean_ctor_get(x_109, 5); +lean_inc(x_171); +if (lean_is_exclusive(x_109)) { + lean_ctor_release(x_109, 0); + lean_ctor_release(x_109, 1); + lean_ctor_release(x_109, 2); + lean_ctor_release(x_109, 3); + lean_ctor_release(x_109, 4); + lean_ctor_release(x_109, 5); + x_172 = x_109; +} else { + lean_dec_ref(x_109); + x_172 = lean_box(0); +} +x_173 = lean_ctor_get(x_110, 0); +lean_inc(x_173); +x_174 = lean_ctor_get(x_110, 1); lean_inc(x_174); -x_175 = lean_ctor_get(x_111, 1); +x_175 = lean_ctor_get(x_110, 3); lean_inc(x_175); -x_176 = lean_ctor_get(x_111, 3); +x_176 = lean_ctor_get(x_110, 4); lean_inc(x_176); -x_177 = lean_ctor_get(x_111, 4); -lean_inc(x_177); -if (lean_is_exclusive(x_111)) { - lean_ctor_release(x_111, 0); - lean_ctor_release(x_111, 1); - lean_ctor_release(x_111, 2); - lean_ctor_release(x_111, 3); - lean_ctor_release(x_111, 4); - x_178 = x_111; +if (lean_is_exclusive(x_110)) { + lean_ctor_release(x_110, 0); + lean_ctor_release(x_110, 1); + lean_ctor_release(x_110, 2); + lean_ctor_release(x_110, 3); + lean_ctor_release(x_110, 4); + x_177 = x_110; } else { - lean_dec_ref(x_111); - x_178 = lean_box(0); + lean_dec_ref(x_110); + x_177 = lean_box(0); } -if (lean_is_scalar(x_178)) { - x_179 = lean_alloc_ctor(0, 5, 0); +if (lean_is_scalar(x_177)) { + x_178 = lean_alloc_ctor(0, 5, 0); } else { - x_179 = x_178; + x_178 = x_177; } -lean_ctor_set(x_179, 0, x_174); -lean_ctor_set(x_179, 1, x_175); -lean_ctor_set(x_179, 2, x_31); -lean_ctor_set(x_179, 3, x_176); -lean_ctor_set(x_179, 4, x_177); -if (lean_is_scalar(x_173)) { +lean_ctor_set(x_178, 0, x_173); +lean_ctor_set(x_178, 1, x_174); +lean_ctor_set(x_178, 2, x_30); +lean_ctor_set(x_178, 3, x_175); +lean_ctor_set(x_178, 4, x_176); +if (lean_is_scalar(x_172)) { + x_179 = lean_alloc_ctor(0, 6, 0); +} else { + x_179 = x_172; +} +lean_ctor_set(x_179, 0, x_167); +lean_ctor_set(x_179, 1, x_168); +lean_ctor_set(x_179, 2, x_178); +lean_ctor_set(x_179, 3, x_169); +lean_ctor_set(x_179, 4, x_170); +lean_ctor_set(x_179, 5, x_171); +if (lean_is_scalar(x_166)) { x_180 = lean_alloc_ctor(0, 6, 0); } else { - x_180 = x_173; -} -lean_ctor_set(x_180, 0, x_168); -lean_ctor_set(x_180, 1, x_169); -lean_ctor_set(x_180, 2, x_179); -lean_ctor_set(x_180, 3, x_170); -lean_ctor_set(x_180, 4, x_171); -lean_ctor_set(x_180, 5, x_172); -if (lean_is_scalar(x_167)) { - x_181 = lean_alloc_ctor(0, 6, 0); -} else { - x_181 = x_167; + x_180 = x_166; } +lean_ctor_set(x_180, 0, x_179); +lean_ctor_set(x_180, 1, x_161); +lean_ctor_set(x_180, 2, x_162); +lean_ctor_set(x_180, 3, x_163); +lean_ctor_set(x_180, 4, x_164); +lean_ctor_set(x_180, 5, x_165); +x_181 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_181, 0, x_180); -lean_ctor_set(x_181, 1, x_162); -lean_ctor_set(x_181, 2, x_163); -lean_ctor_set(x_181, 3, x_164); -lean_ctor_set(x_181, 4, x_165); -lean_ctor_set(x_181, 5, x_166); -x_182 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_182, 0, x_181); -lean_ctor_set(x_182, 1, x_161); +lean_ctor_set(x_181, 1, x_160); if (lean_is_scalar(x_10)) { - x_183 = lean_alloc_ctor(0, 2, 0); + x_182 = lean_alloc_ctor(0, 2, 0); } else { - x_183 = x_10; + x_182 = x_10; } -lean_ctor_set(x_183, 0, x_112); -lean_ctor_set(x_183, 1, x_182); -return x_183; +lean_ctor_set(x_182, 0, x_111); +lean_ctor_set(x_182, 1, x_181); +return x_182; } } } @@ -9103,183 +10016,204 @@ return x_183; } else { -lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; uint8_t x_209; lean_object* x_210; lean_object* x_211; -x_201 = lean_ctor_get(x_7, 0); -x_202 = lean_ctor_get(x_7, 2); -x_203 = lean_ctor_get(x_7, 3); -x_204 = lean_ctor_get(x_7, 4); -lean_inc(x_204); +lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; uint8_t x_208; lean_object* x_209; lean_object* x_210; +x_200 = lean_ctor_get(x_7, 0); +x_201 = lean_ctor_get(x_7, 2); +x_202 = lean_ctor_get(x_7, 3); +x_203 = lean_ctor_get(x_7, 4); lean_inc(x_203); lean_inc(x_202); lean_inc(x_201); +lean_inc(x_200); lean_dec(x_7); -x_205 = lean_ctor_get(x_8, 1); +x_204 = lean_ctor_get(x_8, 1); +lean_inc(x_204); +x_205 = lean_ctor_get(x_8, 4); lean_inc(x_205); -x_206 = lean_ctor_get(x_8, 4); -lean_inc(x_206); -x_207 = lean_array_get_size(x_202); -x_208 = lean_array_get_size(x_206); -x_209 = lean_nat_dec_eq(x_207, x_208); -lean_dec(x_208); +x_206 = lean_array_get_size(x_201); +x_207 = lean_array_get_size(x_205); +x_208 = lean_nat_dec_eq(x_206, x_207); lean_dec(x_207); -lean_inc(x_206); -x_210 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_210, 0, x_201); -lean_ctor_set(x_210, 1, x_205); -lean_ctor_set(x_210, 2, x_206); -lean_ctor_set(x_210, 3, x_203); -lean_ctor_set(x_210, 4, x_204); -lean_ctor_set(x_6, 0, x_210); -x_211 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_211, 0, x_6); -lean_ctor_set(x_211, 1, x_11); -lean_ctor_set(x_211, 2, x_12); -if (x_209 == 0) -{ -lean_object* x_212; lean_dec(x_206); -lean_dec(x_202); +lean_inc(x_205); +x_209 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_209, 0, x_200); +lean_ctor_set(x_209, 1, x_204); +lean_ctor_set(x_209, 2, x_205); +lean_ctor_set(x_209, 3, x_202); +lean_ctor_set(x_209, 4, x_203); +lean_ctor_set(x_6, 0, x_209); +x_210 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_210, 0, x_6); +lean_ctor_set(x_210, 1, x_11); +if (x_208 == 0) +{ +lean_object* x_211; +lean_dec(x_205); +lean_dec(x_201); lean_dec(x_10); lean_dec(x_8); lean_dec(x_3); -x_212 = lean_apply_2(x_2, x_211, x_9); -return x_212; +x_211 = lean_apply_2(x_2, x_210, x_9); +return x_211; } else { -lean_object* x_213; uint8_t x_214; -x_213 = lean_unsigned_to_nat(0u); -x_214 = l_Array_isEqvAux___main___at_Lean_Elab_Tactic_withMVarContext___spec__1(x_3, x_8, lean_box(0), x_202, x_206, x_213); -lean_dec(x_206); -lean_dec(x_202); +lean_object* x_212; uint8_t x_213; +x_212 = lean_unsigned_to_nat(0u); +x_213 = l_Array_isEqvAux___main___at_Lean_Elab_Tactic_withMVarContext___spec__1(x_3, x_8, lean_box(0), x_201, x_205, x_212); +lean_dec(x_205); +lean_dec(x_201); lean_dec(x_8); lean_dec(x_3); -if (x_214 == 0) +if (x_213 == 0) { -lean_object* x_215; +lean_object* x_214; lean_dec(x_10); -x_215 = lean_apply_2(x_2, x_211, x_9); -return x_215; +x_214 = lean_apply_2(x_2, x_210, x_9); +return x_214; } else { -lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_279; lean_object* x_280; -x_216 = lean_ctor_get(x_9, 0); +lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_278; lean_object* x_279; +x_215 = lean_ctor_get(x_9, 0); +lean_inc(x_215); +x_216 = lean_ctor_get(x_215, 0); lean_inc(x_216); -x_217 = lean_ctor_get(x_216, 0); +lean_dec(x_215); +x_217 = lean_ctor_get(x_216, 2); lean_inc(x_217); lean_dec(x_216); x_218 = lean_ctor_get(x_217, 2); lean_inc(x_218); lean_dec(x_217); -x_219 = lean_ctor_get(x_218, 2); -lean_inc(x_219); -lean_dec(x_218); -x_279 = l_Lean_Elab_Tactic_resetSynthInstanceCache___closed__1; -lean_inc(x_211); -x_280 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_279, x_211, x_9); -if (lean_obj_tag(x_280) == 0) +x_278 = l_Lean_Elab_Tactic_resetSynthInstanceCache___closed__1; +lean_inc(x_210); +x_279 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_278, x_210, x_9); +if (lean_obj_tag(x_279) == 0) { -lean_object* x_281; lean_object* x_282; lean_object* x_283; -x_281 = lean_ctor_get(x_280, 1); -lean_inc(x_281); -lean_dec(x_280); -x_282 = l_Lean_Elab_Tactic_save(x_281); -x_283 = lean_apply_2(x_2, x_211, x_281); -if (lean_obj_tag(x_283) == 0) +lean_object* x_280; lean_object* x_281; lean_object* x_282; +x_280 = lean_ctor_get(x_279, 1); +lean_inc(x_280); +lean_dec(x_279); +x_281 = l_Lean_Elab_Tactic_save(x_280); +x_282 = lean_apply_2(x_2, x_210, x_280); +if (lean_obj_tag(x_282) == 0) { -lean_object* x_284; lean_object* x_285; lean_object* x_286; -lean_dec(x_282); -x_284 = lean_ctor_get(x_283, 0); +lean_object* x_283; lean_object* x_284; lean_object* x_285; +lean_dec(x_281); +x_283 = lean_ctor_get(x_282, 0); +lean_inc(x_283); +x_284 = lean_ctor_get(x_282, 1); lean_inc(x_284); -x_285 = lean_ctor_get(x_283, 1); -lean_inc(x_285); -lean_dec(x_283); -x_286 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_286, 0, x_284); -x_220 = x_286; -x_221 = x_285; -goto block_278; -} -else -{ -lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; -x_287 = lean_ctor_get(x_283, 0); -lean_inc(x_287); -x_288 = lean_ctor_get(x_283, 1); -lean_inc(x_288); -lean_dec(x_283); -x_289 = l_Lean_Elab_Tactic_restore(x_288, x_282); lean_dec(x_282); -x_290 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_290, 0, x_287); -x_220 = x_290; -x_221 = x_289; -goto block_278; +x_285 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_285, 0, x_283); +x_219 = x_285; +x_220 = x_284; +goto block_277; +} +else +{ +lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; +x_286 = lean_ctor_get(x_282, 0); +lean_inc(x_286); +x_287 = lean_ctor_get(x_282, 1); +lean_inc(x_287); +lean_dec(x_282); +x_288 = l_Lean_Elab_Tactic_restore(x_287, x_281); +lean_dec(x_281); +x_289 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_289, 0, x_286); +x_219 = x_289; +x_220 = x_288; +goto block_277; } } else { -lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; -lean_dec(x_219); -lean_dec(x_211); +lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; +lean_dec(x_218); +lean_dec(x_210); lean_dec(x_10); lean_dec(x_2); -x_291 = lean_ctor_get(x_280, 0); +x_290 = lean_ctor_get(x_279, 0); +lean_inc(x_290); +x_291 = lean_ctor_get(x_279, 1); lean_inc(x_291); -x_292 = lean_ctor_get(x_280, 1); -lean_inc(x_292); -if (lean_is_exclusive(x_280)) { - lean_ctor_release(x_280, 0); - lean_ctor_release(x_280, 1); - x_293 = x_280; +if (lean_is_exclusive(x_279)) { + lean_ctor_release(x_279, 0); + lean_ctor_release(x_279, 1); + x_292 = x_279; } else { - lean_dec_ref(x_280); - x_293 = lean_box(0); + lean_dec_ref(x_279); + x_292 = lean_box(0); } -if (lean_is_scalar(x_293)) { - x_294 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_292)) { + x_293 = lean_alloc_ctor(1, 2, 0); } else { - x_294 = x_293; + x_293 = x_292; } -lean_ctor_set(x_294, 0, x_291); -lean_ctor_set(x_294, 1, x_292); -return x_294; +lean_ctor_set(x_293, 0, x_290); +lean_ctor_set(x_293, 1, x_291); +return x_293; } -block_278: +block_277: { -if (lean_obj_tag(x_220) == 0) +if (lean_obj_tag(x_219) == 0) { -lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; +lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; +x_221 = lean_ctor_get(x_220, 0); +lean_inc(x_221); x_222 = lean_ctor_get(x_221, 0); lean_inc(x_222); -x_223 = lean_ctor_get(x_222, 0); +x_223 = lean_ctor_get(x_222, 2); lean_inc(x_223); -x_224 = lean_ctor_get(x_223, 2); +x_224 = lean_ctor_get(x_219, 0); lean_inc(x_224); -x_225 = lean_ctor_get(x_220, 0); +lean_dec(x_219); +x_225 = lean_ctor_get(x_220, 1); lean_inc(x_225); -lean_dec(x_220); -x_226 = lean_ctor_get(x_221, 1); -lean_inc(x_226); +if (lean_is_exclusive(x_220)) { + lean_ctor_release(x_220, 0); + lean_ctor_release(x_220, 1); + x_226 = x_220; +} else { + lean_dec_ref(x_220); + x_226 = lean_box(0); +} +x_227 = lean_ctor_get(x_221, 1); +lean_inc(x_227); +x_228 = lean_ctor_get(x_221, 2); +lean_inc(x_228); +x_229 = lean_ctor_get(x_221, 3); +lean_inc(x_229); +x_230 = lean_ctor_get(x_221, 4); +lean_inc(x_230); +x_231 = lean_ctor_get(x_221, 5); +lean_inc(x_231); if (lean_is_exclusive(x_221)) { lean_ctor_release(x_221, 0); lean_ctor_release(x_221, 1); - x_227 = x_221; + lean_ctor_release(x_221, 2); + lean_ctor_release(x_221, 3); + lean_ctor_release(x_221, 4); + lean_ctor_release(x_221, 5); + x_232 = x_221; } else { lean_dec_ref(x_221); - x_227 = lean_box(0); + x_232 = lean_box(0); } -x_228 = lean_ctor_get(x_222, 1); -lean_inc(x_228); -x_229 = lean_ctor_get(x_222, 2); -lean_inc(x_229); -x_230 = lean_ctor_get(x_222, 3); -lean_inc(x_230); -x_231 = lean_ctor_get(x_222, 4); -lean_inc(x_231); -x_232 = lean_ctor_get(x_222, 5); -lean_inc(x_232); +x_233 = lean_ctor_get(x_222, 0); +lean_inc(x_233); +x_234 = lean_ctor_get(x_222, 1); +lean_inc(x_234); +x_235 = lean_ctor_get(x_222, 3); +lean_inc(x_235); +x_236 = lean_ctor_get(x_222, 4); +lean_inc(x_236); +x_237 = lean_ctor_get(x_222, 5); +lean_inc(x_237); if (lean_is_exclusive(x_222)) { lean_ctor_release(x_222, 0); lean_ctor_release(x_222, 1); @@ -9287,133 +10221,133 @@ if (lean_is_exclusive(x_222)) { lean_ctor_release(x_222, 3); lean_ctor_release(x_222, 4); lean_ctor_release(x_222, 5); - x_233 = x_222; + x_238 = x_222; } else { lean_dec_ref(x_222); - x_233 = lean_box(0); + x_238 = lean_box(0); } -x_234 = lean_ctor_get(x_223, 0); -lean_inc(x_234); -x_235 = lean_ctor_get(x_223, 1); -lean_inc(x_235); -x_236 = lean_ctor_get(x_223, 3); -lean_inc(x_236); -x_237 = lean_ctor_get(x_223, 4); -lean_inc(x_237); -x_238 = lean_ctor_get(x_223, 5); -lean_inc(x_238); +x_239 = lean_ctor_get(x_223, 0); +lean_inc(x_239); +x_240 = lean_ctor_get(x_223, 1); +lean_inc(x_240); +x_241 = lean_ctor_get(x_223, 3); +lean_inc(x_241); +x_242 = lean_ctor_get(x_223, 4); +lean_inc(x_242); if (lean_is_exclusive(x_223)) { lean_ctor_release(x_223, 0); lean_ctor_release(x_223, 1); lean_ctor_release(x_223, 2); lean_ctor_release(x_223, 3); lean_ctor_release(x_223, 4); - lean_ctor_release(x_223, 5); - x_239 = x_223; + x_243 = x_223; } else { lean_dec_ref(x_223); - x_239 = lean_box(0); + x_243 = lean_box(0); } -x_240 = lean_ctor_get(x_224, 0); -lean_inc(x_240); -x_241 = lean_ctor_get(x_224, 1); -lean_inc(x_241); -x_242 = lean_ctor_get(x_224, 3); -lean_inc(x_242); -x_243 = lean_ctor_get(x_224, 4); -lean_inc(x_243); -if (lean_is_exclusive(x_224)) { - lean_ctor_release(x_224, 0); - lean_ctor_release(x_224, 1); - lean_ctor_release(x_224, 2); - lean_ctor_release(x_224, 3); - lean_ctor_release(x_224, 4); - x_244 = x_224; +if (lean_is_scalar(x_243)) { + x_244 = lean_alloc_ctor(0, 5, 0); } else { - lean_dec_ref(x_224); - x_244 = lean_box(0); + x_244 = x_243; } -if (lean_is_scalar(x_244)) { - x_245 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_244, 0, x_239); +lean_ctor_set(x_244, 1, x_240); +lean_ctor_set(x_244, 2, x_218); +lean_ctor_set(x_244, 3, x_241); +lean_ctor_set(x_244, 4, x_242); +if (lean_is_scalar(x_238)) { + x_245 = lean_alloc_ctor(0, 6, 0); } else { - x_245 = x_244; + x_245 = x_238; } -lean_ctor_set(x_245, 0, x_240); -lean_ctor_set(x_245, 1, x_241); -lean_ctor_set(x_245, 2, x_219); -lean_ctor_set(x_245, 3, x_242); -lean_ctor_set(x_245, 4, x_243); -if (lean_is_scalar(x_239)) { +lean_ctor_set(x_245, 0, x_233); +lean_ctor_set(x_245, 1, x_234); +lean_ctor_set(x_245, 2, x_244); +lean_ctor_set(x_245, 3, x_235); +lean_ctor_set(x_245, 4, x_236); +lean_ctor_set(x_245, 5, x_237); +if (lean_is_scalar(x_232)) { x_246 = lean_alloc_ctor(0, 6, 0); } else { - x_246 = x_239; + x_246 = x_232; } -lean_ctor_set(x_246, 0, x_234); -lean_ctor_set(x_246, 1, x_235); -lean_ctor_set(x_246, 2, x_245); -lean_ctor_set(x_246, 3, x_236); -lean_ctor_set(x_246, 4, x_237); -lean_ctor_set(x_246, 5, x_238); -if (lean_is_scalar(x_233)) { - x_247 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_246, 0, x_245); +lean_ctor_set(x_246, 1, x_227); +lean_ctor_set(x_246, 2, x_228); +lean_ctor_set(x_246, 3, x_229); +lean_ctor_set(x_246, 4, x_230); +lean_ctor_set(x_246, 5, x_231); +if (lean_is_scalar(x_226)) { + x_247 = lean_alloc_ctor(0, 2, 0); } else { - x_247 = x_233; + x_247 = x_226; } lean_ctor_set(x_247, 0, x_246); -lean_ctor_set(x_247, 1, x_228); -lean_ctor_set(x_247, 2, x_229); -lean_ctor_set(x_247, 3, x_230); -lean_ctor_set(x_247, 4, x_231); -lean_ctor_set(x_247, 5, x_232); -if (lean_is_scalar(x_227)) { - x_248 = lean_alloc_ctor(0, 2, 0); -} else { - x_248 = x_227; -} -lean_ctor_set(x_248, 0, x_247); -lean_ctor_set(x_248, 1, x_226); +lean_ctor_set(x_247, 1, x_225); if (lean_is_scalar(x_10)) { - x_249 = lean_alloc_ctor(1, 2, 0); + x_248 = lean_alloc_ctor(1, 2, 0); } else { - x_249 = x_10; - lean_ctor_set_tag(x_249, 1); + x_248 = x_10; + lean_ctor_set_tag(x_248, 1); } -lean_ctor_set(x_249, 0, x_225); -lean_ctor_set(x_249, 1, x_248); -return x_249; +lean_ctor_set(x_248, 0, x_224); +lean_ctor_set(x_248, 1, x_247); +return x_248; } else { -lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; -x_250 = lean_ctor_get(x_221, 0); +lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; +x_249 = lean_ctor_get(x_220, 0); +lean_inc(x_249); +x_250 = lean_ctor_get(x_249, 0); lean_inc(x_250); -x_251 = lean_ctor_get(x_250, 0); +x_251 = lean_ctor_get(x_250, 2); lean_inc(x_251); -x_252 = lean_ctor_get(x_251, 2); +x_252 = lean_ctor_get(x_219, 0); lean_inc(x_252); -x_253 = lean_ctor_get(x_220, 0); +lean_dec(x_219); +x_253 = lean_ctor_get(x_220, 1); lean_inc(x_253); -lean_dec(x_220); -x_254 = lean_ctor_get(x_221, 1); -lean_inc(x_254); -if (lean_is_exclusive(x_221)) { - lean_ctor_release(x_221, 0); - lean_ctor_release(x_221, 1); - x_255 = x_221; +if (lean_is_exclusive(x_220)) { + lean_ctor_release(x_220, 0); + lean_ctor_release(x_220, 1); + x_254 = x_220; } else { - lean_dec_ref(x_221); - x_255 = lean_box(0); + lean_dec_ref(x_220); + x_254 = lean_box(0); } -x_256 = lean_ctor_get(x_250, 1); +x_255 = lean_ctor_get(x_249, 1); +lean_inc(x_255); +x_256 = lean_ctor_get(x_249, 2); lean_inc(x_256); -x_257 = lean_ctor_get(x_250, 2); +x_257 = lean_ctor_get(x_249, 3); lean_inc(x_257); -x_258 = lean_ctor_get(x_250, 3); +x_258 = lean_ctor_get(x_249, 4); lean_inc(x_258); -x_259 = lean_ctor_get(x_250, 4); +x_259 = lean_ctor_get(x_249, 5); lean_inc(x_259); -x_260 = lean_ctor_get(x_250, 5); -lean_inc(x_260); +if (lean_is_exclusive(x_249)) { + lean_ctor_release(x_249, 0); + lean_ctor_release(x_249, 1); + lean_ctor_release(x_249, 2); + lean_ctor_release(x_249, 3); + lean_ctor_release(x_249, 4); + lean_ctor_release(x_249, 5); + x_260 = x_249; +} else { + lean_dec_ref(x_249); + x_260 = lean_box(0); +} +x_261 = lean_ctor_get(x_250, 0); +lean_inc(x_261); +x_262 = lean_ctor_get(x_250, 1); +lean_inc(x_262); +x_263 = lean_ctor_get(x_250, 3); +lean_inc(x_263); +x_264 = lean_ctor_get(x_250, 4); +lean_inc(x_264); +x_265 = lean_ctor_get(x_250, 5); +lean_inc(x_265); if (lean_is_exclusive(x_250)) { lean_ctor_release(x_250, 0); lean_ctor_release(x_250, 1); @@ -9421,99 +10355,77 @@ if (lean_is_exclusive(x_250)) { lean_ctor_release(x_250, 3); lean_ctor_release(x_250, 4); lean_ctor_release(x_250, 5); - x_261 = x_250; + x_266 = x_250; } else { lean_dec_ref(x_250); - x_261 = lean_box(0); + x_266 = lean_box(0); } -x_262 = lean_ctor_get(x_251, 0); -lean_inc(x_262); -x_263 = lean_ctor_get(x_251, 1); -lean_inc(x_263); -x_264 = lean_ctor_get(x_251, 3); -lean_inc(x_264); -x_265 = lean_ctor_get(x_251, 4); -lean_inc(x_265); -x_266 = lean_ctor_get(x_251, 5); -lean_inc(x_266); +x_267 = lean_ctor_get(x_251, 0); +lean_inc(x_267); +x_268 = lean_ctor_get(x_251, 1); +lean_inc(x_268); +x_269 = lean_ctor_get(x_251, 3); +lean_inc(x_269); +x_270 = lean_ctor_get(x_251, 4); +lean_inc(x_270); if (lean_is_exclusive(x_251)) { lean_ctor_release(x_251, 0); lean_ctor_release(x_251, 1); lean_ctor_release(x_251, 2); lean_ctor_release(x_251, 3); lean_ctor_release(x_251, 4); - lean_ctor_release(x_251, 5); - x_267 = x_251; + x_271 = x_251; } else { lean_dec_ref(x_251); - x_267 = lean_box(0); + x_271 = lean_box(0); } -x_268 = lean_ctor_get(x_252, 0); -lean_inc(x_268); -x_269 = lean_ctor_get(x_252, 1); -lean_inc(x_269); -x_270 = lean_ctor_get(x_252, 3); -lean_inc(x_270); -x_271 = lean_ctor_get(x_252, 4); -lean_inc(x_271); -if (lean_is_exclusive(x_252)) { - lean_ctor_release(x_252, 0); - lean_ctor_release(x_252, 1); - lean_ctor_release(x_252, 2); - lean_ctor_release(x_252, 3); - lean_ctor_release(x_252, 4); - x_272 = x_252; +if (lean_is_scalar(x_271)) { + x_272 = lean_alloc_ctor(0, 5, 0); } else { - lean_dec_ref(x_252); - x_272 = lean_box(0); + x_272 = x_271; } -if (lean_is_scalar(x_272)) { - x_273 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_272, 0, x_267); +lean_ctor_set(x_272, 1, x_268); +lean_ctor_set(x_272, 2, x_218); +lean_ctor_set(x_272, 3, x_269); +lean_ctor_set(x_272, 4, x_270); +if (lean_is_scalar(x_266)) { + x_273 = lean_alloc_ctor(0, 6, 0); } else { - x_273 = x_272; + x_273 = x_266; } -lean_ctor_set(x_273, 0, x_268); -lean_ctor_set(x_273, 1, x_269); -lean_ctor_set(x_273, 2, x_219); -lean_ctor_set(x_273, 3, x_270); -lean_ctor_set(x_273, 4, x_271); -if (lean_is_scalar(x_267)) { +lean_ctor_set(x_273, 0, x_261); +lean_ctor_set(x_273, 1, x_262); +lean_ctor_set(x_273, 2, x_272); +lean_ctor_set(x_273, 3, x_263); +lean_ctor_set(x_273, 4, x_264); +lean_ctor_set(x_273, 5, x_265); +if (lean_is_scalar(x_260)) { x_274 = lean_alloc_ctor(0, 6, 0); } else { - x_274 = x_267; + x_274 = x_260; } -lean_ctor_set(x_274, 0, x_262); -lean_ctor_set(x_274, 1, x_263); -lean_ctor_set(x_274, 2, x_273); -lean_ctor_set(x_274, 3, x_264); -lean_ctor_set(x_274, 4, x_265); -lean_ctor_set(x_274, 5, x_266); -if (lean_is_scalar(x_261)) { - x_275 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_274, 0, x_273); +lean_ctor_set(x_274, 1, x_255); +lean_ctor_set(x_274, 2, x_256); +lean_ctor_set(x_274, 3, x_257); +lean_ctor_set(x_274, 4, x_258); +lean_ctor_set(x_274, 5, x_259); +if (lean_is_scalar(x_254)) { + x_275 = lean_alloc_ctor(0, 2, 0); } else { - x_275 = x_261; + x_275 = x_254; } lean_ctor_set(x_275, 0, x_274); -lean_ctor_set(x_275, 1, x_256); -lean_ctor_set(x_275, 2, x_257); -lean_ctor_set(x_275, 3, x_258); -lean_ctor_set(x_275, 4, x_259); -lean_ctor_set(x_275, 5, x_260); -if (lean_is_scalar(x_255)) { +lean_ctor_set(x_275, 1, x_253); +if (lean_is_scalar(x_10)) { x_276 = lean_alloc_ctor(0, 2, 0); } else { - x_276 = x_255; + x_276 = x_10; } -lean_ctor_set(x_276, 0, x_275); -lean_ctor_set(x_276, 1, x_254); -if (lean_is_scalar(x_10)) { - x_277 = lean_alloc_ctor(0, 2, 0); -} else { - x_277 = x_10; -} -lean_ctor_set(x_277, 0, x_253); -lean_ctor_set(x_277, 1, x_276); -return x_277; +lean_ctor_set(x_276, 0, x_252); +lean_ctor_set(x_276, 1, x_275); +return x_276; } } } @@ -9522,20 +10434,21 @@ return x_277; } else { -lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; uint8_t x_304; uint8_t x_305; uint8_t x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; uint8_t x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; -x_295 = lean_ctor_get(x_6, 1); -x_296 = lean_ctor_get(x_6, 2); -x_297 = lean_ctor_get(x_6, 3); -x_298 = lean_ctor_get(x_6, 4); -x_299 = lean_ctor_get(x_6, 5); -x_300 = lean_ctor_get(x_6, 6); -x_301 = lean_ctor_get(x_6, 7); -x_302 = lean_ctor_get(x_6, 8); -x_303 = lean_ctor_get(x_6, 9); -x_304 = lean_ctor_get_uint8(x_6, sizeof(void*)*10); -x_305 = lean_ctor_get_uint8(x_6, sizeof(void*)*10 + 1); -x_306 = lean_ctor_get_uint8(x_6, sizeof(void*)*10 + 2); -lean_inc(x_303); +lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; uint8_t x_303; uint8_t x_304; uint8_t x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; uint8_t x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; +x_294 = lean_ctor_get(x_6, 1); +x_295 = lean_ctor_get(x_6, 2); +x_296 = lean_ctor_get(x_6, 3); +x_297 = lean_ctor_get(x_6, 4); +x_298 = lean_ctor_get(x_6, 5); +x_299 = lean_ctor_get(x_6, 6); +x_300 = lean_ctor_get(x_6, 7); +x_301 = lean_ctor_get(x_6, 8); +x_302 = lean_ctor_get(x_6, 9); +x_303 = lean_ctor_get_uint8(x_6, sizeof(void*)*11); +x_304 = lean_ctor_get_uint8(x_6, sizeof(void*)*11 + 1); +x_305 = lean_ctor_get_uint8(x_6, sizeof(void*)*11 + 2); +x_306 = lean_ctor_get(x_6, 10); +lean_inc(x_306); lean_inc(x_302); lean_inc(x_301); lean_inc(x_300); @@ -9544,6 +10457,7 @@ lean_inc(x_298); lean_inc(x_297); lean_inc(x_296); lean_inc(x_295); +lean_inc(x_294); lean_dec(x_6); x_307 = lean_ctor_get(x_7, 0); lean_inc(x_307); @@ -9584,24 +10498,24 @@ lean_ctor_set(x_317, 1, x_312); lean_ctor_set(x_317, 2, x_313); lean_ctor_set(x_317, 3, x_309); lean_ctor_set(x_317, 4, x_310); -x_318 = lean_alloc_ctor(0, 10, 3); +x_318 = lean_alloc_ctor(0, 11, 3); lean_ctor_set(x_318, 0, x_317); -lean_ctor_set(x_318, 1, x_295); -lean_ctor_set(x_318, 2, x_296); -lean_ctor_set(x_318, 3, x_297); -lean_ctor_set(x_318, 4, x_298); -lean_ctor_set(x_318, 5, x_299); -lean_ctor_set(x_318, 6, x_300); -lean_ctor_set(x_318, 7, x_301); -lean_ctor_set(x_318, 8, x_302); -lean_ctor_set(x_318, 9, x_303); -lean_ctor_set_uint8(x_318, sizeof(void*)*10, x_304); -lean_ctor_set_uint8(x_318, sizeof(void*)*10 + 1, x_305); -lean_ctor_set_uint8(x_318, sizeof(void*)*10 + 2, x_306); -x_319 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_318, 1, x_294); +lean_ctor_set(x_318, 2, x_295); +lean_ctor_set(x_318, 3, x_296); +lean_ctor_set(x_318, 4, x_297); +lean_ctor_set(x_318, 5, x_298); +lean_ctor_set(x_318, 6, x_299); +lean_ctor_set(x_318, 7, x_300); +lean_ctor_set(x_318, 8, x_301); +lean_ctor_set(x_318, 9, x_302); +lean_ctor_set(x_318, 10, x_306); +lean_ctor_set_uint8(x_318, sizeof(void*)*11, x_303); +lean_ctor_set_uint8(x_318, sizeof(void*)*11 + 1, x_304); +lean_ctor_set_uint8(x_318, sizeof(void*)*11 + 2, x_305); +x_319 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_319, 0, x_318); lean_ctor_set(x_319, 1, x_11); -lean_ctor_set(x_319, 2, x_12); if (x_316 == 0) { lean_object* x_320; @@ -10419,92 +11333,90 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Lean_Elab_Tactic_getMainGoal(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Elab_Tactic_getMainGoal(lean_object* x_1, lean_object* x_2) { _start: { +lean_object* x_3; +lean_inc(x_1); +x_3 = l_Lean_Elab_Tactic_getUnsolvedGoals(x_1, x_2); +if (lean_obj_tag(x_3) == 0) +{ lean_object* x_4; -lean_inc(x_2); -x_4 = l_Lean_Elab_Tactic_getUnsolvedGoals(x_2, x_3); +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); if (lean_obj_tag(x_4) == 0) { -lean_object* x_5; -x_5 = lean_ctor_get(x_4, 0); +lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_5 = lean_ctor_get(x_3, 1); lean_inc(x_5); -if (lean_obj_tag(x_5) == 0) -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_6 = lean_ctor_get(x_4, 1); -lean_inc(x_6); -lean_dec(x_4); -x_7 = l_Lean_Elab_Tactic_getMainGoal___closed__3; -x_8 = l_Lean_Elab_Tactic_throwError___rarg(x_1, x_7, x_2, x_6); -return x_8; +lean_dec(x_3); +x_6 = l_Lean_Elab_Tactic_getMainGoal___closed__3; +x_7 = l_Lean_Elab_Tactic_throwError___rarg(x_6, x_1, x_5); +return x_7; } else { -uint8_t x_9; -lean_dec(x_2); +uint8_t x_8; lean_dec(x_1); -x_9 = !lean_is_exclusive(x_4); -if (x_9 == 0) +x_8 = !lean_is_exclusive(x_3); +if (x_8 == 0) { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_9 = lean_ctor_get(x_3, 0); +lean_dec(x_9); x_10 = lean_ctor_get(x_4, 0); -lean_dec(x_10); -x_11 = lean_ctor_get(x_5, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_4, 1); lean_inc(x_11); -x_12 = lean_ctor_get(x_5, 1); -lean_inc(x_12); -lean_dec(x_5); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_11); -lean_ctor_set(x_13, 1, x_12); -lean_ctor_set(x_4, 0, x_13); -return x_4; +lean_dec(x_4); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_11); +lean_ctor_set(x_3, 0, x_12); +return x_3; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_14 = lean_ctor_get(x_4, 1); +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_13 = lean_ctor_get(x_3, 1); +lean_inc(x_13); +lean_dec(x_3); +x_14 = lean_ctor_get(x_4, 0); lean_inc(x_14); -lean_dec(x_4); -x_15 = lean_ctor_get(x_5, 0); +x_15 = lean_ctor_get(x_4, 1); lean_inc(x_15); -x_16 = lean_ctor_get(x_5, 1); -lean_inc(x_16); -lean_dec(x_5); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_15); -lean_ctor_set(x_17, 1, 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_14); -return x_18; -} -} -} -else -{ -uint8_t x_19; -lean_dec(x_2); -lean_dec(x_1); -x_19 = !lean_is_exclusive(x_4); -if (x_19 == 0) -{ -return x_4; -} -else -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_4, 0); -x_21 = lean_ctor_get(x_4, 1); -lean_inc(x_21); -lean_inc(x_20); lean_dec(x_4); -x_22 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_22, 0, x_20); -lean_ctor_set(x_22, 1, x_21); -return x_22; +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_16, 1, 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_13); +return x_17; +} +} +} +else +{ +uint8_t x_18; +lean_dec(x_1); +x_18 = !lean_is_exclusive(x_3); +if (x_18 == 0) +{ +return x_3; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_3, 0); +x_20 = lean_ctor_get(x_3, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_3); +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; } } } @@ -10537,153 +11449,149 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Lean_Elab_Tactic_ensureHasNoMVars(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Tactic_ensureHasNoMVars(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; -lean_inc(x_3); -lean_inc(x_1); -x_5 = l_Lean_Elab_Tactic_instantiateMVars(x_1, x_2, x_3, x_4); -if (lean_obj_tag(x_5) == 0) +lean_object* x_4; +lean_inc(x_2); +x_4 = l_Lean_Elab_Tactic_instantiateMVars(x_1, x_2, x_3); +if (lean_obj_tag(x_4) == 0) { -uint8_t x_6; -x_6 = !lean_is_exclusive(x_5); -if (x_6 == 0) +uint8_t x_5; +x_5 = !lean_is_exclusive(x_4); +if (x_5 == 0) { -lean_object* x_7; lean_object* x_8; uint8_t x_9; -x_7 = lean_ctor_get(x_5, 0); -x_8 = lean_ctor_get(x_5, 1); -x_9 = l_Lean_Expr_hasMVar(x_7); -if (x_9 == 0) +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_4, 0); +x_7 = lean_ctor_get(x_4, 1); +x_8 = l_Lean_Expr_hasMVar(x_6); +if (x_8 == 0) { -lean_object* x_10; -lean_dec(x_7); -lean_dec(x_3); -lean_dec(x_1); -x_10 = lean_box(0); -lean_ctor_set(x_5, 0, x_10); -return x_5; +lean_object* x_9; +lean_dec(x_6); +lean_dec(x_2); +x_9 = lean_box(0); +lean_ctor_set(x_4, 0, x_9); +return x_4; } else { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -lean_free_object(x_5); -x_11 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_11, 0, x_7); -x_12 = l_Lean_indentExpr(x_11); -x_13 = l_Lean_Elab_Tactic_ensureHasNoMVars___closed__3; -x_14 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_14, 0, x_13); -lean_ctor_set(x_14, 1, x_12); -x_15 = l_Lean_Elab_Tactic_throwError___rarg(x_1, x_14, x_3, x_8); -return x_15; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_free_object(x_4); +x_10 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_10, 0, x_6); +x_11 = l_Lean_indentExpr(x_10); +x_12 = l_Lean_Elab_Tactic_ensureHasNoMVars___closed__3; +x_13 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_11); +x_14 = l_Lean_Elab_Tactic_throwError___rarg(x_13, x_2, x_7); +return x_14; } } else { -lean_object* x_16; lean_object* x_17; uint8_t x_18; -x_16 = lean_ctor_get(x_5, 0); -x_17 = lean_ctor_get(x_5, 1); -lean_inc(x_17); +lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_15 = lean_ctor_get(x_4, 0); +x_16 = lean_ctor_get(x_4, 1); lean_inc(x_16); -lean_dec(x_5); -x_18 = l_Lean_Expr_hasMVar(x_16); -if (x_18 == 0) +lean_inc(x_15); +lean_dec(x_4); +x_17 = l_Lean_Expr_hasMVar(x_15); +if (x_17 == 0) { -lean_object* x_19; lean_object* x_20; -lean_dec(x_16); -lean_dec(x_3); -lean_dec(x_1); -x_19 = lean_box(0); -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_17); -return x_20; +lean_object* x_18; lean_object* x_19; +lean_dec(x_15); +lean_dec(x_2); +x_18 = lean_box(0); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_16); +return x_19; } else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_21 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_21, 0, x_16); -x_22 = l_Lean_indentExpr(x_21); -x_23 = l_Lean_Elab_Tactic_ensureHasNoMVars___closed__3; -x_24 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_22); -x_25 = l_Lean_Elab_Tactic_throwError___rarg(x_1, x_24, x_3, x_17); -return x_25; +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_20 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_20, 0, x_15); +x_21 = l_Lean_indentExpr(x_20); +x_22 = l_Lean_Elab_Tactic_ensureHasNoMVars___closed__3; +x_23 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_21); +x_24 = l_Lean_Elab_Tactic_throwError___rarg(x_23, x_2, x_16); +return x_24; } } } else { -uint8_t x_26; -lean_dec(x_3); -lean_dec(x_1); -x_26 = !lean_is_exclusive(x_5); -if (x_26 == 0) +uint8_t x_25; +lean_dec(x_2); +x_25 = !lean_is_exclusive(x_4); +if (x_25 == 0) { -return x_5; +return x_4; } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_5, 0); -x_28 = lean_ctor_get(x_5, 1); -lean_inc(x_28); +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_4, 0); +x_27 = lean_ctor_get(x_4, 1); lean_inc(x_27); -lean_dec(x_5); -x_29 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_29, 0, x_27); -lean_ctor_set(x_29, 1, x_28); -return x_29; +lean_inc(x_26); +lean_dec(x_4); +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; } } } } -lean_object* l_Lean_Elab_Tactic_withMainMVarContext___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Tactic_withMainMVarContext___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; -lean_inc(x_3); -x_5 = l_Lean_Elab_Tactic_getMainGoal(x_1, x_3, x_4); -if (lean_obj_tag(x_5) == 0) +lean_object* x_4; +lean_inc(x_2); +x_4 = l_Lean_Elab_Tactic_getMainGoal(x_2, x_3); +if (lean_obj_tag(x_4) == 0) { -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_6 = lean_ctor_get(x_5, 0); +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_4, 1); lean_inc(x_6); -x_7 = lean_ctor_get(x_5, 1); +lean_dec(x_4); +x_7 = lean_ctor_get(x_5, 0); lean_inc(x_7); lean_dec(x_5); -x_8 = lean_ctor_get(x_6, 0); -lean_inc(x_8); -lean_dec(x_6); -x_9 = l_Lean_Elab_Tactic_withMVarContext___rarg(x_8, x_2, x_3, x_7); -lean_dec(x_8); -return x_9; +x_8 = l_Lean_Elab_Tactic_withMVarContext___rarg(x_7, x_1, x_2, x_6); +lean_dec(x_7); +return x_8; } else { -uint8_t x_10; -lean_dec(x_3); +uint8_t x_9; lean_dec(x_2); -x_10 = !lean_is_exclusive(x_5); -if (x_10 == 0) +lean_dec(x_1); +x_9 = !lean_is_exclusive(x_4); +if (x_9 == 0) { -return x_5; +return x_4; } else { -lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_11 = lean_ctor_get(x_5, 0); -x_12 = lean_ctor_get(x_5, 1); -lean_inc(x_12); +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_dec(x_5); -x_13 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_13, 0, x_11); -lean_ctor_set(x_13, 1, x_12); -return x_13; +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; } } } @@ -10692,60 +11600,57 @@ lean_object* l_Lean_Elab_Tactic_withMainMVarContext(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_withMainMVarContext___rarg), 4, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_withMainMVarContext___rarg), 3, 0); return x_2; } } -lean_object* l_Lean_Elab_Tactic_liftMetaMAtMain___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Tactic_liftMetaMAtMain___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; -lean_inc(x_3); -lean_inc(x_1); -x_5 = l_Lean_Elab_Tactic_getMainGoal(x_1, x_3, x_4); -if (lean_obj_tag(x_5) == 0) +lean_object* x_4; +lean_inc(x_2); +x_4 = l_Lean_Elab_Tactic_getMainGoal(x_2, x_3); +if (lean_obj_tag(x_4) == 0) { -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_6 = lean_ctor_get(x_5, 0); +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_4, 1); lean_inc(x_6); -x_7 = lean_ctor_get(x_5, 1); +lean_dec(x_4); +x_7 = lean_ctor_get(x_5, 0); lean_inc(x_7); lean_dec(x_5); -x_8 = lean_ctor_get(x_6, 0); -lean_inc(x_8); -lean_dec(x_6); -lean_inc(x_8); -x_9 = lean_apply_1(x_2, x_8); -x_10 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 4, 2); -lean_closure_set(x_10, 0, x_1); -lean_closure_set(x_10, 1, x_9); -x_11 = l_Lean_Elab_Tactic_withMVarContext___rarg(x_8, x_10, x_3, x_7); -lean_dec(x_8); -return x_11; +lean_inc(x_7); +x_8 = lean_apply_1(x_1, x_7); +x_9 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 3, 1); +lean_closure_set(x_9, 0, x_8); +x_10 = l_Lean_Elab_Tactic_withMVarContext___rarg(x_7, x_9, x_2, x_6); +lean_dec(x_7); +return x_10; } else { -uint8_t x_12; -lean_dec(x_3); +uint8_t x_11; lean_dec(x_2); lean_dec(x_1); -x_12 = !lean_is_exclusive(x_5); -if (x_12 == 0) +x_11 = !lean_is_exclusive(x_4); +if (x_11 == 0) { -return x_5; +return x_4; } else { -lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_13 = lean_ctor_get(x_5, 0); -x_14 = lean_ctor_get(x_5, 1); -lean_inc(x_14); +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_4, 0); +x_13 = lean_ctor_get(x_4, 1); lean_inc(x_13); -lean_dec(x_5); -x_15 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_15, 0, x_13); -lean_ctor_set(x_15, 1, x_14); -return x_15; +lean_inc(x_12); +lean_dec(x_4); +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_13); +return x_14; } } } @@ -10754,7 +11659,7 @@ lean_object* l_Lean_Elab_Tactic_liftMetaMAtMain(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaMAtMain___rarg), 4, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaMAtMain___rarg), 3, 0); return x_2; } } @@ -10791,63 +11696,60 @@ return x_12; } } } -lean_object* l_Lean_Elab_Tactic_liftMetaTacticAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Tactic_liftMetaTacticAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; -lean_inc(x_3); -lean_inc(x_1); -x_5 = l_Lean_Elab_Tactic_getMainGoal(x_1, x_3, x_4); -if (lean_obj_tag(x_5) == 0) +lean_object* x_4; +lean_inc(x_2); +x_4 = l_Lean_Elab_Tactic_getMainGoal(x_2, x_3); +if (lean_obj_tag(x_4) == 0) { -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_6 = lean_ctor_get(x_5, 0); +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_4, 1); lean_inc(x_6); -x_7 = lean_ctor_get(x_5, 1); +lean_dec(x_4); +x_7 = lean_ctor_get(x_5, 0); lean_inc(x_7); +x_8 = lean_ctor_get(x_5, 1); +lean_inc(x_8); lean_dec(x_5); -x_8 = lean_ctor_get(x_6, 0); -lean_inc(x_8); -x_9 = lean_ctor_get(x_6, 1); -lean_inc(x_9); -lean_dec(x_6); -lean_inc(x_8); -x_10 = lean_apply_1(x_2, x_8); -x_11 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 4, 2); -lean_closure_set(x_11, 0, x_1); -lean_closure_set(x_11, 1, x_10); -x_12 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__1___boxed), 4, 1); -lean_closure_set(x_12, 0, x_9); -x_13 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_monadLog___spec__2___rarg), 4, 2); -lean_closure_set(x_13, 0, x_11); -lean_closure_set(x_13, 1, x_12); -x_14 = l_Lean_Elab_Tactic_withMVarContext___rarg(x_8, x_13, x_3, x_7); -lean_dec(x_8); -return x_14; +lean_inc(x_7); +x_9 = lean_apply_1(x_1, x_7); +x_10 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 3, 1); +lean_closure_set(x_10, 0, x_9); +x_11 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__1___boxed), 4, 1); +lean_closure_set(x_11, 0, x_8); +x_12 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_monadLog___spec__2___rarg), 4, 2); +lean_closure_set(x_12, 0, x_10); +lean_closure_set(x_12, 1, x_11); +x_13 = l_Lean_Elab_Tactic_withMVarContext___rarg(x_7, x_12, x_2, x_6); +lean_dec(x_7); +return x_13; } else { -uint8_t x_15; -lean_dec(x_3); +uint8_t x_14; lean_dec(x_2); lean_dec(x_1); -x_15 = !lean_is_exclusive(x_5); -if (x_15 == 0) +x_14 = !lean_is_exclusive(x_4); +if (x_14 == 0) { -return x_5; +return x_4; } else { -lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = lean_ctor_get(x_5, 0); -x_17 = lean_ctor_get(x_5, 1); -lean_inc(x_17); +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_4, 0); +x_16 = lean_ctor_get(x_4, 1); lean_inc(x_16); -lean_dec(x_5); -x_18 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_18, 0, x_16); -lean_ctor_set(x_18, 1, x_17); -return x_18; +lean_inc(x_15); +lean_dec(x_4); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +return x_17; } } } @@ -10856,7 +11758,7 @@ lean_object* l_Lean_Elab_Tactic_liftMetaTacticAux(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg), 4, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg), 3, 0); return x_2; } } @@ -10891,67 +11793,64 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTactic___lambda__1__ return x_1; } } -lean_object* l_Lean_Elab_Tactic_liftMetaTactic(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Tactic_liftMetaTactic(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; -lean_inc(x_3); -lean_inc(x_1); -x_5 = l_Lean_Elab_Tactic_getMainGoal(x_1, x_3, x_4); -if (lean_obj_tag(x_5) == 0) +lean_object* x_4; +lean_inc(x_2); +x_4 = l_Lean_Elab_Tactic_getMainGoal(x_2, x_3); +if (lean_obj_tag(x_4) == 0) { -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_6 = lean_ctor_get(x_5, 0); +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_4, 1); lean_inc(x_6); -x_7 = lean_ctor_get(x_5, 1); +lean_dec(x_4); +x_7 = lean_ctor_get(x_5, 0); lean_inc(x_7); +x_8 = lean_ctor_get(x_5, 1); +lean_inc(x_8); lean_dec(x_5); -x_8 = lean_ctor_get(x_6, 0); -lean_inc(x_8); -x_9 = lean_ctor_get(x_6, 1); -lean_inc(x_9); -lean_dec(x_6); -lean_inc(x_8); -x_10 = lean_apply_1(x_2, x_8); -x_11 = l_Lean_Elab_Tactic_liftMetaTactic___closed__1; -x_12 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg), 4, 2); -lean_closure_set(x_12, 0, x_10); -lean_closure_set(x_12, 1, x_11); -x_13 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 4, 2); -lean_closure_set(x_13, 0, x_1); -lean_closure_set(x_13, 1, x_12); -x_14 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__1___boxed), 4, 1); -lean_closure_set(x_14, 0, x_9); -x_15 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_monadLog___spec__2___rarg), 4, 2); -lean_closure_set(x_15, 0, x_13); -lean_closure_set(x_15, 1, x_14); -x_16 = l_Lean_Elab_Tactic_withMVarContext___rarg(x_8, x_15, x_3, x_7); -lean_dec(x_8); -return x_16; +lean_inc(x_7); +x_9 = lean_apply_1(x_1, x_7); +x_10 = l_Lean_Elab_Tactic_liftMetaTactic___closed__1; +x_11 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg), 4, 2); +lean_closure_set(x_11, 0, x_9); +lean_closure_set(x_11, 1, x_10); +x_12 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 3, 1); +lean_closure_set(x_12, 0, x_11); +x_13 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__1___boxed), 4, 1); +lean_closure_set(x_13, 0, x_8); +x_14 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_monadLog___spec__2___rarg), 4, 2); +lean_closure_set(x_14, 0, x_12); +lean_closure_set(x_14, 1, x_13); +x_15 = l_Lean_Elab_Tactic_withMVarContext___rarg(x_7, x_14, x_2, x_6); +lean_dec(x_7); +return x_15; } else { -uint8_t x_17; -lean_dec(x_3); +uint8_t x_16; lean_dec(x_2); lean_dec(x_1); -x_17 = !lean_is_exclusive(x_5); -if (x_17 == 0) +x_16 = !lean_is_exclusive(x_4); +if (x_16 == 0) { -return x_5; +return x_4; } else { -lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_18 = lean_ctor_get(x_5, 0); -x_19 = lean_ctor_get(x_5, 1); -lean_inc(x_19); +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_4, 0); +x_18 = lean_ctor_get(x_4, 1); lean_inc(x_18); -lean_dec(x_5); -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_inc(x_17); +lean_dec(x_4); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +return x_19; } } } @@ -10965,209 +11864,206 @@ lean_dec(x_2); return x_4; } } -lean_object* l_Lean_Elab_Tactic_done(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Elab_Tactic_done(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +lean_inc(x_1); +x_3 = l_Lean_Elab_Tactic_getUnsolvedGoals(x_1, x_2); +if (lean_obj_tag(x_3) == 0) +{ +uint8_t x_4; +x_4 = !lean_is_exclusive(x_3); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_5 = lean_ctor_get(x_3, 0); +x_6 = lean_ctor_get(x_3, 1); +x_7 = l_List_isEmpty___rarg(x_5); +if (x_7 == 0) +{ +lean_object* x_8; +lean_free_object(x_3); +x_8 = l_Lean_Elab_Tactic_reportUnsolvedGoals(x_5, x_1, x_6); +return x_8; +} +else +{ +lean_object* x_9; +lean_dec(x_5); +lean_dec(x_1); +x_9 = lean_box(0); +lean_ctor_set(x_3, 0, x_9); +return x_3; +} +} +else +{ +lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_10 = lean_ctor_get(x_3, 0); +x_11 = lean_ctor_get(x_3, 1); +lean_inc(x_11); +lean_inc(x_10); +lean_dec(x_3); +x_12 = l_List_isEmpty___rarg(x_10); +if (x_12 == 0) +{ +lean_object* x_13; +x_13 = l_Lean_Elab_Tactic_reportUnsolvedGoals(x_10, x_1, x_11); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; +lean_dec(x_10); +lean_dec(x_1); +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_11); +return x_15; +} +} +} +else +{ +uint8_t x_16; +lean_dec(x_1); +x_16 = !lean_is_exclusive(x_3); +if (x_16 == 0) +{ +return x_3; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_3, 0); +x_18 = lean_ctor_get(x_3, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_3); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +return x_19; +} +} +} +} +lean_object* l_Lean_Elab_Tactic_focusAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_inc(x_2); -x_4 = l_Lean_Elab_Tactic_getUnsolvedGoals(x_2, x_3); +x_4 = l_Lean_Elab_Tactic_getMainGoal(x_2, x_3); if (lean_obj_tag(x_4) == 0) { -uint8_t x_5; -x_5 = !lean_is_exclusive(x_4); -if (x_5 == 0) -{ -lean_object* x_6; lean_object* x_7; uint8_t x_8; -x_6 = lean_ctor_get(x_4, 0); -x_7 = lean_ctor_get(x_4, 1); -x_8 = l_List_isEmpty___rarg(x_6); -if (x_8 == 0) -{ -lean_object* x_9; -lean_free_object(x_4); -x_9 = l_Lean_Elab_Tactic_reportUnsolvedGoals(x_1, x_6, x_2, x_7); -return x_9; -} -else -{ -lean_object* x_10; -lean_dec(x_6); -lean_dec(x_2); -lean_dec(x_1); -x_10 = lean_box(0); -lean_ctor_set(x_4, 0, x_10); -return x_4; -} -} -else -{ -lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_11 = lean_ctor_get(x_4, 0); -x_12 = lean_ctor_get(x_4, 1); +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_4, 1); +lean_inc(x_6); +lean_dec(x_4); +x_7 = lean_ctor_get(x_5, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_5, 1); +lean_inc(x_8); +lean_dec(x_5); +x_9 = lean_box(0); +x_10 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_10, 0, x_7); +lean_ctor_set(x_10, 1, x_9); +x_11 = l_Lean_Elab_Tactic_setGoals(x_10, x_2, x_6); +x_12 = lean_ctor_get(x_11, 1); lean_inc(x_12); -lean_inc(x_11); -lean_dec(x_4); -x_13 = l_List_isEmpty___rarg(x_11); -if (x_13 == 0) -{ -lean_object* x_14; -x_14 = l_Lean_Elab_Tactic_reportUnsolvedGoals(x_1, x_11, x_2, x_12); -return x_14; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_dec(x_11); -lean_dec(x_2); -lean_dec(x_1); -x_15 = lean_box(0); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_12); -return x_16; -} -} -} -else +lean_inc(x_2); +x_13 = lean_apply_2(x_1, x_2, x_12); +if (lean_obj_tag(x_13) == 0) { -uint8_t x_17; -lean_dec(x_2); -lean_dec(x_1); -x_17 = !lean_is_exclusive(x_4); -if (x_17 == 0) -{ -return x_4; -} -else -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_18 = lean_ctor_get(x_4, 0); -x_19 = lean_ctor_get(x_4, 1); -lean_inc(x_19); +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; uint8_t x_21; +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = l_Lean_Elab_Tactic_getGoals___rarg(x_15); +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_4); -x_20 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_20, 0, x_18); -lean_ctor_set(x_20, 1, x_19); +lean_dec(x_16); +x_19 = l_List_append___rarg(x_17, x_8); +x_20 = l_Lean_Elab_Tactic_setGoals(x_19, x_2, x_18); +lean_dec(x_2); +x_21 = !lean_is_exclusive(x_20); +if (x_21 == 0) +{ +lean_object* x_22; +x_22 = lean_ctor_get(x_20, 0); +lean_dec(x_22); +lean_ctor_set(x_20, 0, x_14); return x_20; } -} -} -} -lean_object* l_Lean_Elab_Tactic_focusAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -lean_inc(x_3); -x_5 = l_Lean_Elab_Tactic_getMainGoal(x_1, x_3, x_4); -if (lean_obj_tag(x_5) == 0) -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = lean_ctor_get(x_5, 1); -lean_inc(x_7); -lean_dec(x_5); -x_8 = lean_ctor_get(x_6, 0); -lean_inc(x_8); -x_9 = lean_ctor_get(x_6, 1); -lean_inc(x_9); -lean_dec(x_6); -x_10 = lean_box(0); -x_11 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_11, 0, x_8); -lean_ctor_set(x_11, 1, x_10); -x_12 = l_Lean_Elab_Tactic_setGoals(x_11, x_3, x_7); -x_13 = lean_ctor_get(x_12, 1); -lean_inc(x_13); -lean_dec(x_12); -lean_inc(x_3); -x_14 = lean_apply_2(x_2, x_3, x_13); -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; lean_object* x_20; lean_object* x_21; uint8_t x_22; -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 = l_Lean_Elab_Tactic_getGoals___rarg(x_16); -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); -x_19 = lean_ctor_get(x_17, 1); -lean_inc(x_19); -lean_dec(x_17); -x_20 = l_List_append___rarg(x_18, x_9); -x_21 = l_Lean_Elab_Tactic_setGoals(x_20, x_3, x_19); -lean_dec(x_3); -x_22 = !lean_is_exclusive(x_21); -if (x_22 == 0) -{ -lean_object* x_23; -x_23 = lean_ctor_get(x_21, 0); -lean_dec(x_23); -lean_ctor_set(x_21, 0, x_15); -return x_21; -} else { -lean_object* x_24; lean_object* x_25; -x_24 = lean_ctor_get(x_21, 1); -lean_inc(x_24); -lean_dec(x_21); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_15); -lean_ctor_set(x_25, 1, x_24); -return x_25; +lean_object* x_23; lean_object* x_24; +x_23 = lean_ctor_get(x_20, 1); +lean_inc(x_23); +lean_dec(x_20); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_14); +lean_ctor_set(x_24, 1, x_23); +return x_24; } } else { -uint8_t x_26; -lean_dec(x_9); -lean_dec(x_3); -x_26 = !lean_is_exclusive(x_14); -if (x_26 == 0) -{ -return x_14; -} -else -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_14, 0); -x_28 = lean_ctor_get(x_14, 1); -lean_inc(x_28); -lean_inc(x_27); -lean_dec(x_14); -x_29 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_29, 0, x_27); -lean_ctor_set(x_29, 1, x_28); -return x_29; -} -} -} -else -{ -uint8_t x_30; -lean_dec(x_3); +uint8_t x_25; +lean_dec(x_8); lean_dec(x_2); -x_30 = !lean_is_exclusive(x_5); -if (x_30 == 0) +x_25 = !lean_is_exclusive(x_13); +if (x_25 == 0) { -return x_5; +return x_13; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_5, 0); -x_32 = lean_ctor_get(x_5, 1); -lean_inc(x_32); +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_13, 0); +x_27 = lean_ctor_get(x_13, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_13); +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; +} +} +} +else +{ +uint8_t x_29; +lean_dec(x_2); +lean_dec(x_1); +x_29 = !lean_is_exclusive(x_4); +if (x_29 == 0) +{ +return x_4; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_4, 0); +x_31 = lean_ctor_get(x_4, 1); lean_inc(x_31); -lean_dec(x_5); -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_inc(x_30); +lean_dec(x_4); +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; } } } @@ -11176,83 +12072,89 @@ lean_object* l_Lean_Elab_Tactic_focusAux(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_focusAux___rarg), 4, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_focusAux___rarg), 3, 0); return x_2; } } -lean_object* l_Lean_Elab_Tactic_focus___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Tactic_focus___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; -x_5 = l_Lean_Elab_Tactic_done(x_1, x_3, x_4); -if (lean_obj_tag(x_5) == 0) +lean_object* x_4; +x_4 = l_Lean_Elab_Tactic_done(x_2, x_3); +if (lean_obj_tag(x_4) == 0) { -uint8_t x_6; -x_6 = !lean_is_exclusive(x_5); -if (x_6 == 0) +uint8_t x_5; +x_5 = !lean_is_exclusive(x_4); +if (x_5 == 0) { -lean_object* x_7; -x_7 = lean_ctor_get(x_5, 0); -lean_dec(x_7); -lean_ctor_set(x_5, 0, x_2); -return x_5; +lean_object* x_6; +x_6 = lean_ctor_get(x_4, 0); +lean_dec(x_6); +lean_ctor_set(x_4, 0, x_1); +return x_4; } else { -lean_object* x_8; lean_object* x_9; -x_8 = lean_ctor_get(x_5, 1); -lean_inc(x_8); -lean_dec(x_5); -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_2); -lean_ctor_set(x_9, 1, x_8); -return x_9; +lean_object* x_7; lean_object* x_8; +x_7 = lean_ctor_get(x_4, 1); +lean_inc(x_7); +lean_dec(x_4); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_1); +lean_ctor_set(x_8, 1, x_7); +return x_8; } } else { -uint8_t x_10; -lean_dec(x_2); -x_10 = !lean_is_exclusive(x_5); -if (x_10 == 0) +uint8_t x_9; +lean_dec(x_1); +x_9 = !lean_is_exclusive(x_4); +if (x_9 == 0) { -return x_5; +return x_4; } else { -lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_11 = lean_ctor_get(x_5, 0); -x_12 = lean_ctor_get(x_5, 1); -lean_inc(x_12); +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_dec(x_5); -x_13 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_13, 0, x_11); -lean_ctor_set(x_13, 1, x_12); -return x_13; +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; } } } } -lean_object* l_Lean_Elab_Tactic_focus___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* _init_l_Lean_Elab_Tactic_focus___rarg___closed__1() { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; -lean_inc(x_1); -x_5 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_focus___rarg___lambda__1), 4, 1); +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_focus___rarg___lambda__1), 3, 0); +return x_1; +} +} +lean_object* l_Lean_Elab_Tactic_focus___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_4 = l_Lean_Elab_Tactic_focus___rarg___closed__1; +x_5 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_monadLog___spec__2___rarg), 4, 2); lean_closure_set(x_5, 0, x_1); -x_6 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_monadLog___spec__2___rarg), 4, 2); -lean_closure_set(x_6, 0, x_2); -lean_closure_set(x_6, 1, x_5); -x_7 = l_Lean_Elab_Tactic_focusAux___rarg(x_1, x_6, x_3, x_4); -return x_7; +lean_closure_set(x_5, 1, x_4); +x_6 = l_Lean_Elab_Tactic_focusAux___rarg(x_5, x_2, x_3); +return x_6; } } lean_object* l_Lean_Elab_Tactic_focus(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_focus___rarg), 4, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_focus___rarg), 3, 0); return x_2; } } @@ -12290,14 +13192,13 @@ x_8 = lean_ctor_get(x_7, 1); lean_inc(x_8); lean_dec(x_7); x_9 = l_Lean_Elab_Tactic_evalFailIfSuccess___closed__3; -x_10 = l_Lean_Elab_Tactic_throwError___rarg(x_1, x_9, x_2, x_8); +x_10 = l_Lean_Elab_Tactic_throwError___rarg(x_9, x_2, x_8); return x_10; } else { uint8_t x_11; lean_dec(x_2); -lean_dec(x_1); x_11 = !lean_is_exclusive(x_7); if (x_11 == 0) { @@ -12330,11 +13231,20 @@ return x_19; } } } +lean_object* l_Lean_Elab_Tactic_evalFailIfSuccess___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Elab_Tactic_evalFailIfSuccess(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalFailIfSuccess___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalFailIfSuccess), 3, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalFailIfSuccess___boxed), 3, 0); return x_1; } } @@ -12886,7 +13796,7 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* l_Lean_Elab_Tactic_evalAssumption___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Tactic_evalAssumption___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; @@ -12940,87 +13850,101 @@ return x_13; } } } -lean_object* l_Lean_Elab_Tactic_evalAssumption(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Elab_Tactic_evalAssumption___rarg(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_4; -lean_inc(x_2); +lean_object* x_3; lean_inc(x_1); -x_4 = l_Lean_Elab_Tactic_getMainGoal(x_1, x_2, x_3); -if (lean_obj_tag(x_4) == 0) +x_3 = l_Lean_Elab_Tactic_getMainGoal(x_1, x_2); +if (lean_obj_tag(x_3) == 0) { -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; -x_5 = lean_ctor_get(x_4, 0); +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_3, 1); lean_inc(x_5); -x_6 = lean_ctor_get(x_4, 1); +lean_dec(x_3); +x_6 = lean_ctor_get(x_4, 0); lean_inc(x_6); +x_7 = lean_ctor_get(x_4, 1); +lean_inc(x_7); lean_dec(x_4); -x_7 = lean_ctor_get(x_5, 0); -lean_inc(x_7); -x_8 = lean_ctor_get(x_5, 1); -lean_inc(x_8); -lean_dec(x_5); -x_9 = lean_box(0); -lean_inc(x_7); -x_10 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalAssumption___lambda__1___boxed), 4, 2); -lean_closure_set(x_10, 0, x_7); -lean_closure_set(x_10, 1, x_9); -x_11 = l_Lean_Elab_Tactic_liftMetaTactic___closed__1; -x_12 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg), 4, 2); -lean_closure_set(x_12, 0, x_10); -lean_closure_set(x_12, 1, x_11); -x_13 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 4, 2); -lean_closure_set(x_13, 0, x_1); -lean_closure_set(x_13, 1, x_12); -x_14 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__1___boxed), 4, 1); -lean_closure_set(x_14, 0, x_8); -x_15 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_monadLog___spec__2___rarg), 4, 2); -lean_closure_set(x_15, 0, x_13); -lean_closure_set(x_15, 1, x_14); -x_16 = l_Lean_Elab_Tactic_withMVarContext___rarg(x_7, x_15, x_2, x_6); -lean_dec(x_7); -return x_16; +x_8 = lean_box(0); +lean_inc(x_6); +x_9 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalAssumption___rarg___lambda__1___boxed), 4, 2); +lean_closure_set(x_9, 0, x_6); +lean_closure_set(x_9, 1, x_8); +x_10 = l_Lean_Elab_Tactic_liftMetaTactic___closed__1; +x_11 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg), 4, 2); +lean_closure_set(x_11, 0, x_9); +lean_closure_set(x_11, 1, x_10); +x_12 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 3, 1); +lean_closure_set(x_12, 0, x_11); +x_13 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__1___boxed), 4, 1); +lean_closure_set(x_13, 0, x_7); +x_14 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_monadLog___spec__2___rarg), 4, 2); +lean_closure_set(x_14, 0, x_12); +lean_closure_set(x_14, 1, x_13); +x_15 = l_Lean_Elab_Tactic_withMVarContext___rarg(x_6, x_14, x_1, x_5); +lean_dec(x_6); +return x_15; } else { -uint8_t x_17; -lean_dec(x_2); +uint8_t x_16; lean_dec(x_1); -x_17 = !lean_is_exclusive(x_4); -if (x_17 == 0) +x_16 = !lean_is_exclusive(x_3); +if (x_16 == 0) { -return x_4; +return x_3; } else { -lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_18 = lean_ctor_get(x_4, 0); -x_19 = lean_ctor_get(x_4, 1); -lean_inc(x_19); +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_3, 0); +x_18 = lean_ctor_get(x_3, 1); lean_inc(x_18); -lean_dec(x_4); -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_inc(x_17); +lean_dec(x_3); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +return x_19; } } } } -lean_object* l_Lean_Elab_Tactic_evalAssumption___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Tactic_evalAssumption(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalAssumption___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Tactic_evalAssumption___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Elab_Tactic_evalAssumption___lambda__1(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Elab_Tactic_evalAssumption___rarg___lambda__1(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } +lean_object* l_Lean_Elab_Tactic_evalAssumption___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Elab_Tactic_evalAssumption(x_1); +lean_dec(x_1); +return x_2; +} +} lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalAssumption___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalAssumption), 3, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalAssumption___boxed), 1, 0); return x_1; } } @@ -13213,6 +14137,7 @@ else lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; uint8_t x_10; x_6 = lean_unsigned_to_nat(1u); x_7 = l_Lean_Syntax_getArg(x_1, x_6); +lean_dec(x_1); x_8 = l_Lean_nullKind___closed__2; lean_inc(x_7); x_9 = l_Lean_Syntax_isOfKind(x_7, x_8); @@ -13243,7 +14168,6 @@ if (x_9 == 0) { lean_object* x_11; lean_dec(x_7); -lean_dec(x_1); x_11 = l_Lean_Elab_Tactic_throwUnsupportedSyntax___rarg(x_2, x_3); return x_11; } @@ -13259,7 +14183,6 @@ if (x_14 == 0) { lean_object* x_15; lean_dec(x_7); -lean_dec(x_1); x_15 = l_Lean_Elab_Tactic_throwUnsupportedSyntax___rarg(x_2, x_3); return x_15; } @@ -13270,8 +14193,7 @@ x_16 = lean_unsigned_to_nat(0u); x_17 = l_Lean_Syntax_getArg(x_7, x_16); lean_dec(x_7); lean_inc(x_2); -lean_inc(x_1); -x_18 = l_Lean_Elab_Tactic_getMainGoal(x_1, x_2, x_3); +x_18 = l_Lean_Elab_Tactic_getMainGoal(x_2, x_3); if (lean_obj_tag(x_18) == 0) { 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; @@ -13293,9 +14215,8 @@ x_24 = l_Lean_Elab_Tactic_liftMetaTactic___closed__1; x_25 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg), 4, 2); lean_closure_set(x_25, 0, x_23); lean_closure_set(x_25, 1, x_24); -x_26 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 4, 2); -lean_closure_set(x_26, 0, x_1); -lean_closure_set(x_26, 1, x_25); +x_26 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 3, 1); +lean_closure_set(x_26, 0, x_25); x_27 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__1___boxed), 4, 1); lean_closure_set(x_27, 0, x_22); x_28 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_monadLog___spec__2___rarg), 4, 2); @@ -13310,7 +14231,6 @@ else uint8_t x_30; lean_dec(x_17); lean_dec(x_2); -lean_dec(x_1); x_30 = !lean_is_exclusive(x_18); if (x_30 == 0) { @@ -13338,8 +14258,7 @@ else lean_object* x_34; lean_dec(x_7); lean_inc(x_2); -lean_inc(x_1); -x_34 = l_Lean_Elab_Tactic_getMainGoal(x_1, x_2, x_3); +x_34 = l_Lean_Elab_Tactic_getMainGoal(x_2, x_3); if (lean_obj_tag(x_34) == 0) { lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; @@ -13360,9 +14279,8 @@ x_40 = l_Lean_Elab_Tactic_liftMetaTactic___closed__1; x_41 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg), 4, 2); lean_closure_set(x_41, 0, x_39); lean_closure_set(x_41, 1, x_40); -x_42 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 4, 2); -lean_closure_set(x_42, 0, x_1); -lean_closure_set(x_42, 1, x_41); +x_42 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 3, 1); +lean_closure_set(x_42, 0, x_41); x_43 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__1___boxed), 4, 1); lean_closure_set(x_43, 0, x_38); x_44 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_monadLog___spec__2___rarg), 4, 2); @@ -13376,7 +14294,6 @@ else { uint8_t x_46; lean_dec(x_2); -lean_dec(x_1); x_46 = !lean_is_exclusive(x_34); if (x_46 == 0) { @@ -13759,6 +14676,7 @@ else lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_43; uint8_t x_44; x_6 = lean_unsigned_to_nat(1u); x_7 = l_Lean_Syntax_getArg(x_1, x_6); +lean_dec(x_1); x_43 = l_Lean_nullKind___closed__2; lean_inc(x_7); x_44 = l_Lean_Syntax_isOfKind(x_7, x_43); @@ -13789,8 +14707,7 @@ lean_object* x_9; lean_object* x_10; x_9 = l_Lean_Syntax_getArgs(x_7); lean_dec(x_7); lean_inc(x_2); -lean_inc(x_1); -x_10 = l_Lean_Elab_Tactic_getMainGoal(x_1, x_2, x_3); +x_10 = l_Lean_Elab_Tactic_getMainGoal(x_2, x_3); if (lean_obj_tag(x_10) == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; @@ -13812,9 +14729,8 @@ x_16 = l_Lean_Elab_Tactic_liftMetaTactic___closed__1; x_17 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg), 4, 2); lean_closure_set(x_17, 0, x_15); lean_closure_set(x_17, 1, x_16); -x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 4, 2); -lean_closure_set(x_18, 0, x_1); -lean_closure_set(x_18, 1, x_17); +x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 3, 1); +lean_closure_set(x_18, 0, x_17); x_19 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__1___boxed), 4, 1); lean_closure_set(x_19, 0, x_14); x_20 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_monadLog___spec__2___rarg), 4, 2); @@ -13829,7 +14745,6 @@ else uint8_t x_22; lean_dec(x_9); lean_dec(x_2); -lean_dec(x_1); x_22 = !lean_is_exclusive(x_10); if (x_22 == 0) { @@ -13855,8 +14770,7 @@ else lean_object* x_26; lean_dec(x_7); lean_inc(x_2); -lean_inc(x_1); -x_26 = l_Lean_Elab_Tactic_getMainGoal(x_1, x_2, x_3); +x_26 = l_Lean_Elab_Tactic_getMainGoal(x_2, x_3); if (lean_obj_tag(x_26) == 0) { lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; @@ -13877,9 +14791,8 @@ x_32 = l_Lean_Elab_Tactic_liftMetaTactic___closed__1; x_33 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg), 4, 2); lean_closure_set(x_33, 0, x_31); lean_closure_set(x_33, 1, x_32); -x_34 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 4, 2); -lean_closure_set(x_34, 0, x_1); -lean_closure_set(x_34, 1, x_33); +x_34 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 3, 1); +lean_closure_set(x_34, 0, x_33); x_35 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__1___boxed), 4, 1); lean_closure_set(x_35, 0, x_30); x_36 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_monadLog___spec__2___rarg), 4, 2); @@ -13893,7 +14806,6 @@ else { uint8_t x_38; lean_dec(x_2); -lean_dec(x_1); x_38 = !lean_is_exclusive(x_26); if (x_38 == 0) { @@ -13959,103 +14871,412 @@ return x_5; lean_object* l_Lean_Elab_Tactic_getFVarId(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +uint8_t x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; x_4 = 1; x_5 = lean_box(x_4); lean_inc(x_1); x_6 = lean_alloc_closure((void*)(l_Lean_Elab_Term_isLocalTermId_x3f___boxed), 4, 2); lean_closure_set(x_6, 0, x_1); lean_closure_set(x_6, 1, x_5); +x_7 = !lean_is_exclusive(x_2); +if (x_7 == 0) +{ +lean_object* x_8; uint8_t x_9; +x_8 = lean_ctor_get(x_2, 0); +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, 10); +lean_dec(x_10); +lean_inc(x_1); +lean_ctor_set(x_8, 10, x_1); lean_inc(x_2); -x_7 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_6, x_2, x_3); -if (lean_obj_tag(x_7) == 0) +x_11 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_6, x_2, x_3); +if (lean_obj_tag(x_11) == 0) { -lean_object* x_8; -x_8 = lean_ctor_get(x_7, 0); -lean_inc(x_8); -if (lean_obj_tag(x_8) == 0) +lean_object* x_12; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +if (lean_obj_tag(x_12) == 0) { -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_9 = lean_ctor_get(x_7, 1); -lean_inc(x_9); -lean_dec(x_7); -x_10 = l_Lean_Syntax_getId(x_1); -x_11 = l_Lean_Name_toString___closed__1; -x_12 = l_Lean_Name_toStringWithSep___main(x_11, x_10); -x_13 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_13, 0, x_12); -x_14 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_14, 0, x_13); -x_15 = l_Lean_Meta_clear___lambda__1___closed__6; -x_16 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_14); -x_17 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; -x_18 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_18, 0, x_16); -lean_ctor_set(x_18, 1, x_17); -x_19 = l_Lean_Elab_Tactic_throwError___rarg(x_1, x_18, x_2, x_9); -return x_19; +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; lean_object* x_23; +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = l_Lean_Syntax_getId(x_1); +lean_dec(x_1); +x_15 = l_Lean_Name_toString___closed__1; +x_16 = l_Lean_Name_toStringWithSep___main(x_15, x_14); +x_17 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_17, 0, x_16); +x_18 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_18, 0, x_17); +x_19 = l_Lean_Meta_clear___lambda__1___closed__6; +x_20 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +x_21 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; +x_22 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +x_23 = l_Lean_Elab_Tactic_throwError___rarg(x_22, x_2, x_13); +return x_23; } else { -uint8_t x_20; +uint8_t x_24; lean_dec(x_2); lean_dec(x_1); -x_20 = !lean_is_exclusive(x_7); -if (x_20 == 0) +x_24 = !lean_is_exclusive(x_11); +if (x_24 == 0) { -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_7, 0); -lean_dec(x_21); -x_22 = lean_ctor_get(x_8, 0); -lean_inc(x_22); -lean_dec(x_8); -x_23 = l_Lean_Expr_fvarId_x21(x_22); -lean_dec(x_22); -lean_ctor_set(x_7, 0, x_23); -return x_7; -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_24 = lean_ctor_get(x_7, 1); -lean_inc(x_24); -lean_dec(x_7); -x_25 = lean_ctor_get(x_8, 0); -lean_inc(x_25); -lean_dec(x_8); -x_26 = l_Lean_Expr_fvarId_x21(x_25); +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_11, 0); lean_dec(x_25); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_24); -return x_27; +x_26 = lean_ctor_get(x_12, 0); +lean_inc(x_26); +lean_dec(x_12); +x_27 = l_Lean_Expr_fvarId_x21(x_26); +lean_dec(x_26); +lean_ctor_set(x_11, 0, x_27); +return x_11; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_28 = lean_ctor_get(x_11, 1); +lean_inc(x_28); +lean_dec(x_11); +x_29 = lean_ctor_get(x_12, 0); +lean_inc(x_29); +lean_dec(x_12); +x_30 = l_Lean_Expr_fvarId_x21(x_29); +lean_dec(x_29); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_28); +return x_31; } } } else { -uint8_t x_28; +uint8_t x_32; lean_dec(x_2); lean_dec(x_1); -x_28 = !lean_is_exclusive(x_7); -if (x_28 == 0) +x_32 = !lean_is_exclusive(x_11); +if (x_32 == 0) { -return x_7; +return x_11; } else { -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_7, 0); -x_30 = lean_ctor_get(x_7, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_7); -x_31 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_31, 0, x_29); -lean_ctor_set(x_31, 1, x_30); -return x_31; +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_11, 0); +x_34 = lean_ctor_get(x_11, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_11); +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 +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; uint8_t x_47; uint8_t x_48; lean_object* x_49; lean_object* x_50; +x_36 = lean_ctor_get(x_8, 0); +x_37 = lean_ctor_get(x_8, 1); +x_38 = lean_ctor_get(x_8, 2); +x_39 = lean_ctor_get(x_8, 3); +x_40 = lean_ctor_get(x_8, 4); +x_41 = lean_ctor_get(x_8, 5); +x_42 = lean_ctor_get(x_8, 6); +x_43 = lean_ctor_get(x_8, 7); +x_44 = lean_ctor_get(x_8, 8); +x_45 = lean_ctor_get(x_8, 9); +x_46 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); +x_47 = lean_ctor_get_uint8(x_8, sizeof(void*)*11 + 1); +x_48 = lean_ctor_get_uint8(x_8, sizeof(void*)*11 + 2); +lean_inc(x_45); +lean_inc(x_44); +lean_inc(x_43); +lean_inc(x_42); +lean_inc(x_41); +lean_inc(x_40); +lean_inc(x_39); +lean_inc(x_38); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_8); +lean_inc(x_1); +x_49 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_49, 0, x_36); +lean_ctor_set(x_49, 1, x_37); +lean_ctor_set(x_49, 2, x_38); +lean_ctor_set(x_49, 3, x_39); +lean_ctor_set(x_49, 4, x_40); +lean_ctor_set(x_49, 5, x_41); +lean_ctor_set(x_49, 6, x_42); +lean_ctor_set(x_49, 7, x_43); +lean_ctor_set(x_49, 8, x_44); +lean_ctor_set(x_49, 9, x_45); +lean_ctor_set(x_49, 10, x_1); +lean_ctor_set_uint8(x_49, sizeof(void*)*11, x_46); +lean_ctor_set_uint8(x_49, sizeof(void*)*11 + 1, x_47); +lean_ctor_set_uint8(x_49, sizeof(void*)*11 + 2, x_48); +lean_ctor_set(x_2, 0, x_49); +lean_inc(x_2); +x_50 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_6, x_2, x_3); +if (lean_obj_tag(x_50) == 0) +{ +lean_object* x_51; +x_51 = lean_ctor_get(x_50, 0); +lean_inc(x_51); +if (lean_obj_tag(x_51) == 0) +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_52 = lean_ctor_get(x_50, 1); +lean_inc(x_52); +lean_dec(x_50); +x_53 = l_Lean_Syntax_getId(x_1); +lean_dec(x_1); +x_54 = l_Lean_Name_toString___closed__1; +x_55 = l_Lean_Name_toStringWithSep___main(x_54, x_53); +x_56 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_56, 0, x_55); +x_57 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_57, 0, x_56); +x_58 = l_Lean_Meta_clear___lambda__1___closed__6; +x_59 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_57); +x_60 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; +x_61 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_60); +x_62 = l_Lean_Elab_Tactic_throwError___rarg(x_61, x_2, x_52); +return x_62; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +lean_dec(x_2); +lean_dec(x_1); +x_63 = lean_ctor_get(x_50, 1); +lean_inc(x_63); +if (lean_is_exclusive(x_50)) { + lean_ctor_release(x_50, 0); + lean_ctor_release(x_50, 1); + x_64 = x_50; +} else { + lean_dec_ref(x_50); + x_64 = lean_box(0); +} +x_65 = lean_ctor_get(x_51, 0); +lean_inc(x_65); +lean_dec(x_51); +x_66 = l_Lean_Expr_fvarId_x21(x_65); +lean_dec(x_65); +if (lean_is_scalar(x_64)) { + x_67 = lean_alloc_ctor(0, 2, 0); +} else { + x_67 = x_64; +} +lean_ctor_set(x_67, 0, x_66); +lean_ctor_set(x_67, 1, x_63); +return x_67; +} +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +lean_dec(x_2); +lean_dec(x_1); +x_68 = lean_ctor_get(x_50, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_50, 1); +lean_inc(x_69); +if (lean_is_exclusive(x_50)) { + lean_ctor_release(x_50, 0); + lean_ctor_release(x_50, 1); + x_70 = x_50; +} else { + lean_dec_ref(x_50); + x_70 = lean_box(0); +} +if (lean_is_scalar(x_70)) { + x_71 = lean_alloc_ctor(1, 2, 0); +} else { + x_71 = x_70; +} +lean_ctor_set(x_71, 0, x_68); +lean_ctor_set(x_71, 1, x_69); +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_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; uint8_t x_85; uint8_t x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_72 = lean_ctor_get(x_2, 0); +x_73 = lean_ctor_get(x_2, 1); +lean_inc(x_73); +lean_inc(x_72); +lean_dec(x_2); +x_74 = lean_ctor_get(x_72, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_72, 1); +lean_inc(x_75); +x_76 = lean_ctor_get(x_72, 2); +lean_inc(x_76); +x_77 = lean_ctor_get(x_72, 3); +lean_inc(x_77); +x_78 = lean_ctor_get(x_72, 4); +lean_inc(x_78); +x_79 = lean_ctor_get(x_72, 5); +lean_inc(x_79); +x_80 = lean_ctor_get(x_72, 6); +lean_inc(x_80); +x_81 = lean_ctor_get(x_72, 7); +lean_inc(x_81); +x_82 = lean_ctor_get(x_72, 8); +lean_inc(x_82); +x_83 = lean_ctor_get(x_72, 9); +lean_inc(x_83); +x_84 = lean_ctor_get_uint8(x_72, sizeof(void*)*11); +x_85 = lean_ctor_get_uint8(x_72, sizeof(void*)*11 + 1); +x_86 = lean_ctor_get_uint8(x_72, sizeof(void*)*11 + 2); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + lean_ctor_release(x_72, 2); + lean_ctor_release(x_72, 3); + lean_ctor_release(x_72, 4); + lean_ctor_release(x_72, 5); + lean_ctor_release(x_72, 6); + lean_ctor_release(x_72, 7); + lean_ctor_release(x_72, 8); + lean_ctor_release(x_72, 9); + lean_ctor_release(x_72, 10); + x_87 = x_72; +} else { + lean_dec_ref(x_72); + x_87 = lean_box(0); +} +lean_inc(x_1); +if (lean_is_scalar(x_87)) { + x_88 = lean_alloc_ctor(0, 11, 3); +} else { + x_88 = x_87; +} +lean_ctor_set(x_88, 0, x_74); +lean_ctor_set(x_88, 1, x_75); +lean_ctor_set(x_88, 2, x_76); +lean_ctor_set(x_88, 3, x_77); +lean_ctor_set(x_88, 4, x_78); +lean_ctor_set(x_88, 5, x_79); +lean_ctor_set(x_88, 6, x_80); +lean_ctor_set(x_88, 7, x_81); +lean_ctor_set(x_88, 8, x_82); +lean_ctor_set(x_88, 9, x_83); +lean_ctor_set(x_88, 10, x_1); +lean_ctor_set_uint8(x_88, sizeof(void*)*11, x_84); +lean_ctor_set_uint8(x_88, sizeof(void*)*11 + 1, x_85); +lean_ctor_set_uint8(x_88, sizeof(void*)*11 + 2, x_86); +x_89 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_89, 0, x_88); +lean_ctor_set(x_89, 1, x_73); +lean_inc(x_89); +x_90 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_6, x_89, x_3); +if (lean_obj_tag(x_90) == 0) +{ +lean_object* x_91; +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; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; +x_92 = lean_ctor_get(x_90, 1); +lean_inc(x_92); +lean_dec(x_90); +x_93 = l_Lean_Syntax_getId(x_1); +lean_dec(x_1); +x_94 = l_Lean_Name_toString___closed__1; +x_95 = l_Lean_Name_toStringWithSep___main(x_94, x_93); +x_96 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_96, 0, x_95); +x_97 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_97, 0, x_96); +x_98 = l_Lean_Meta_clear___lambda__1___closed__6; +x_99 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_99, 0, x_98); +lean_ctor_set(x_99, 1, x_97); +x_100 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; +x_101 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_101, 0, x_99); +lean_ctor_set(x_101, 1, x_100); +x_102 = l_Lean_Elab_Tactic_throwError___rarg(x_101, x_89, x_92); +return x_102; +} +else +{ +lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; +lean_dec(x_89); +lean_dec(x_1); +x_103 = lean_ctor_get(x_90, 1); +lean_inc(x_103); +if (lean_is_exclusive(x_90)) { + lean_ctor_release(x_90, 0); + lean_ctor_release(x_90, 1); + x_104 = x_90; +} else { + lean_dec_ref(x_90); + x_104 = lean_box(0); +} +x_105 = lean_ctor_get(x_91, 0); +lean_inc(x_105); +lean_dec(x_91); +x_106 = l_Lean_Expr_fvarId_x21(x_105); +lean_dec(x_105); +if (lean_is_scalar(x_104)) { + x_107 = lean_alloc_ctor(0, 2, 0); +} else { + x_107 = x_104; +} +lean_ctor_set(x_107, 0, x_106); +lean_ctor_set(x_107, 1, x_103); +return x_107; +} +} +else +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +lean_dec(x_89); +lean_dec(x_1); +x_108 = lean_ctor_get(x_90, 0); +lean_inc(x_108); +x_109 = lean_ctor_get(x_90, 1); +lean_inc(x_109); +if (lean_is_exclusive(x_90)) { + lean_ctor_release(x_90, 0); + lean_ctor_release(x_90, 1); + x_110 = x_90; +} else { + lean_dec_ref(x_90); + x_110 = lean_box(0); +} +if (lean_is_scalar(x_110)) { + x_111 = lean_alloc_ctor(1, 2, 0); +} else { + x_111 = x_110; +} +lean_ctor_set(x_111, 0, x_108); +lean_ctor_set(x_111, 1, x_109); +return x_111; } } } @@ -14147,58 +15368,58 @@ x_8 = lean_apply_2(x_7, x_2, x_3); return x_8; } } -lean_object* l_Lean_Elab_Tactic_evalRevert___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* l_Lean_Elab_Tactic_evalRevert___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -uint8_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_7 = 0; -x_8 = lean_box(x_7); -x_9 = lean_alloc_closure((void*)(l_Lean_Meta_revert___boxed), 5, 3); -lean_closure_set(x_9, 0, x_1); -lean_closure_set(x_9, 1, x_4); -lean_closure_set(x_9, 2, x_8); -lean_inc(x_5); -x_10 = l_Lean_Elab_Tactic_liftMetaM___rarg(x_2, x_9, x_5, x_6); -if (lean_obj_tag(x_10) == 0) +uint8_t x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = 0; +x_7 = lean_box(x_6); +x_8 = lean_alloc_closure((void*)(l_Lean_Meta_revert___boxed), 5, 3); +lean_closure_set(x_8, 0, x_1); +lean_closure_set(x_8, 1, x_3); +lean_closure_set(x_8, 2, x_7); +lean_inc(x_4); +x_9 = l_Lean_Elab_Tactic_liftMetaM___rarg(x_8, x_4, x_5); +if (lean_obj_tag(x_9) == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_11 = lean_ctor_get(x_10, 0); +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); lean_inc(x_11); +lean_dec(x_9); x_12 = lean_ctor_get(x_10, 1); lean_inc(x_12); lean_dec(x_10); -x_13 = lean_ctor_get(x_11, 1); -lean_inc(x_13); -lean_dec(x_11); -x_14 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_14, 0, x_13); -lean_ctor_set(x_14, 1, x_3); -x_15 = l_Lean_Elab_Tactic_setGoals(x_14, x_5, x_12); -lean_dec(x_5); -return x_15; +x_13 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_2); +x_14 = l_Lean_Elab_Tactic_setGoals(x_13, x_4, x_11); +lean_dec(x_4); +return x_14; } else { -uint8_t x_16; -lean_dec(x_5); -lean_dec(x_3); -x_16 = !lean_is_exclusive(x_10); -if (x_16 == 0) +uint8_t x_15; +lean_dec(x_4); +lean_dec(x_2); +x_15 = !lean_is_exclusive(x_9); +if (x_15 == 0) { -return x_10; +return x_9; } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_10, 0); -x_18 = lean_ctor_get(x_10, 1); -lean_inc(x_18); +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_9, 0); +x_17 = lean_ctor_get(x_9, 1); lean_inc(x_17); -lean_dec(x_10); -x_19 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_19, 0, x_17); -lean_ctor_set(x_19, 1, x_18); -return x_19; +lean_inc(x_16); +lean_dec(x_9); +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +return x_18; } } } @@ -14238,11 +15459,11 @@ else lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; x_12 = lean_unsigned_to_nat(1u); x_13 = l_Lean_Syntax_getArg(x_1, x_12); +lean_dec(x_1); x_14 = l_Lean_Syntax_getArgs(x_13); lean_dec(x_13); lean_inc(x_2); -lean_inc(x_1); -x_15 = l_Lean_Elab_Tactic_getMainGoal(x_1, x_2, x_3); +x_15 = l_Lean_Elab_Tactic_getMainGoal(x_2, x_3); if (lean_obj_tag(x_15) == 0) { 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; @@ -14259,10 +15480,9 @@ lean_dec(x_16); x_20 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_getFVarIds), 3, 1); lean_closure_set(x_20, 0, x_14); lean_inc(x_18); -x_21 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalRevert___lambda__1), 6, 3); +x_21 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalRevert___lambda__1), 5, 2); lean_closure_set(x_21, 0, x_18); -lean_closure_set(x_21, 1, x_1); -lean_closure_set(x_21, 2, x_19); +lean_closure_set(x_21, 1, x_19); x_22 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_monadLog___spec__2___rarg), 4, 2); lean_closure_set(x_22, 0, x_20); lean_closure_set(x_22, 1, x_21); @@ -14275,7 +15495,6 @@ else uint8_t x_24; lean_dec(x_14); lean_dec(x_2); -lean_dec(x_1); x_24 = !lean_is_exclusive(x_15); if (x_24 == 0) { @@ -14318,207 +15537,201 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* l_Array_forMAux___main___at_Lean_Elab_Tactic_forEachVar___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* l_Array_forMAux___main___at_Lean_Elab_Tactic_forEachVar___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) { _start: { -lean_object* x_8; lean_object* x_9; -x_8 = lean_apply_2(x_1, x_2, x_5); -lean_inc(x_6); -x_9 = l_Lean_Elab_Tactic_liftMetaM___rarg(x_3, x_8, x_6, x_7); -if (lean_obj_tag(x_9) == 0) +lean_object* x_7; lean_object* x_8; +x_7 = lean_apply_2(x_1, x_2, x_4); +lean_inc(x_5); +x_8 = l_Lean_Elab_Tactic_liftMetaM___rarg(x_7, x_5, x_6); +if (lean_obj_tag(x_8) == 0) { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_10 = lean_ctor_get(x_9, 0); +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); -x_11 = lean_ctor_get(x_9, 1); -lean_inc(x_11); -lean_dec(x_9); -x_12 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_12, 0, x_10); -lean_ctor_set(x_12, 1, x_4); -x_13 = l_Lean_Elab_Tactic_setGoals(x_12, x_6, x_11); -lean_dec(x_6); -return x_13; +lean_dec(x_8); +x_11 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_11, 0, x_9); +lean_ctor_set(x_11, 1, x_3); +x_12 = l_Lean_Elab_Tactic_setGoals(x_11, x_5, x_10); +lean_dec(x_5); +return x_12; } else { -uint8_t x_14; -lean_dec(x_6); -lean_dec(x_4); -x_14 = !lean_is_exclusive(x_9); -if (x_14 == 0) +uint8_t x_13; +lean_dec(x_5); +lean_dec(x_3); +x_13 = !lean_is_exclusive(x_8); +if (x_13 == 0) { +return x_8; +} +else +{ +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; +} +} +} +} +lean_object* l_Array_forMAux___main___at_Lean_Elab_Tactic_forEachVar___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; uint8_t x_7; +x_6 = lean_array_get_size(x_2); +x_7 = lean_nat_dec_lt(x_3, x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_8 = lean_box(0); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_5); return x_9; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_9, 0); -x_16 = lean_ctor_get(x_9, 1); -lean_inc(x_16); +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_10 = lean_array_fget(x_2, x_3); +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_add(x_3, x_11); +lean_dec(x_3); +lean_inc(x_4); +x_13 = l_Lean_Elab_Tactic_getMainGoal(x_4, x_5); +if (lean_obj_tag(x_13) == 0) +{ +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; +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); lean_inc(x_15); -lean_dec(x_9); -x_17 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_17, 0, x_15); -lean_ctor_set(x_17, 1, x_16); -return x_17; -} -} -} -} -lean_object* l_Array_forMAux___main___at_Lean_Elab_Tactic_forEachVar___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; uint8_t x_8; -x_7 = lean_array_get_size(x_3); -x_8 = lean_nat_dec_lt(x_4, x_7); -lean_dec(x_7); -if (x_8 == 0) -{ -lean_object* x_9; lean_object* x_10; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_9 = lean_box(0); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_9); -lean_ctor_set(x_10, 1, x_6); -return x_10; -} -else -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_11 = lean_array_fget(x_3, x_4); -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_add(x_4, x_12); -lean_dec(x_4); -lean_inc(x_5); -lean_inc(x_1); -x_14 = l_Lean_Elab_Tactic_getMainGoal(x_1, x_5, x_6); -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; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -x_16 = lean_ctor_get(x_14, 1); +lean_dec(x_13); +x_16 = lean_ctor_get(x_14, 0); lean_inc(x_16); +x_17 = lean_ctor_get(x_14, 1); +lean_inc(x_17); lean_dec(x_14); -x_17 = lean_ctor_get(x_15, 0); -lean_inc(x_17); -x_18 = lean_ctor_get(x_15, 1); -lean_inc(x_18); -lean_dec(x_15); -x_19 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_getFVarId), 3, 1); -lean_closure_set(x_19, 0, x_11); +x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_getFVarId), 3, 1); +lean_closure_set(x_18, 0, x_10); +lean_inc(x_16); lean_inc(x_1); -lean_inc(x_17); -lean_inc(x_2); -x_20 = lean_alloc_closure((void*)(l_Array_forMAux___main___at_Lean_Elab_Tactic_forEachVar___spec__1___lambda__1), 7, 4); -lean_closure_set(x_20, 0, x_2); -lean_closure_set(x_20, 1, x_17); -lean_closure_set(x_20, 2, x_1); -lean_closure_set(x_20, 3, x_18); -x_21 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_monadLog___spec__2___rarg), 4, 2); -lean_closure_set(x_21, 0, x_19); -lean_closure_set(x_21, 1, x_20); -lean_inc(x_5); -x_22 = l_Lean_Elab_Tactic_withMVarContext___rarg(x_17, x_21, x_5, x_16); -lean_dec(x_17); -if (lean_obj_tag(x_22) == 0) +x_19 = lean_alloc_closure((void*)(l_Array_forMAux___main___at_Lean_Elab_Tactic_forEachVar___spec__1___lambda__1), 6, 3); +lean_closure_set(x_19, 0, x_1); +lean_closure_set(x_19, 1, x_16); +lean_closure_set(x_19, 2, x_17); +x_20 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_monadLog___spec__2___rarg), 4, 2); +lean_closure_set(x_20, 0, x_18); +lean_closure_set(x_20, 1, x_19); +lean_inc(x_4); +x_21 = l_Lean_Elab_Tactic_withMVarContext___rarg(x_16, x_20, x_4, x_15); +lean_dec(x_16); +if (lean_obj_tag(x_21) == 0) { -lean_object* x_23; -x_23 = lean_ctor_get(x_22, 1); -lean_inc(x_23); -lean_dec(x_22); -x_4 = x_13; -x_6 = x_23; +lean_object* x_22; +x_22 = lean_ctor_get(x_21, 1); +lean_inc(x_22); +lean_dec(x_21); +x_3 = x_12; +x_5 = x_22; goto _start; } else { -uint8_t x_25; -lean_dec(x_13); -lean_dec(x_5); -lean_dec(x_2); +uint8_t x_24; +lean_dec(x_12); +lean_dec(x_4); lean_dec(x_1); -x_25 = !lean_is_exclusive(x_22); -if (x_25 == 0) +x_24 = !lean_is_exclusive(x_21); +if (x_24 == 0) { -return x_22; +return x_21; } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_22, 0); -x_27 = lean_ctor_get(x_22, 1); -lean_inc(x_27); +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_21, 0); +x_26 = lean_ctor_get(x_21, 1); lean_inc(x_26); -lean_dec(x_22); -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; +lean_inc(x_25); +lean_dec(x_21); +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_29; -lean_dec(x_13); -lean_dec(x_11); -lean_dec(x_5); -lean_dec(x_2); +uint8_t x_28; +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_4); lean_dec(x_1); -x_29 = !lean_is_exclusive(x_14); -if (x_29 == 0) +x_28 = !lean_is_exclusive(x_13); +if (x_28 == 0) { -return x_14; +return x_13; } else { -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_14, 0); -x_31 = lean_ctor_get(x_14, 1); -lean_inc(x_31); +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_13, 0); +x_30 = lean_ctor_get(x_13, 1); lean_inc(x_30); -lean_dec(x_14); -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; +lean_inc(x_29); +lean_dec(x_13); +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_Lean_Elab_Tactic_forEachVar(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_Elab_Tactic_forEachVar(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_6; lean_object* x_7; -x_6 = lean_unsigned_to_nat(0u); -x_7 = l_Array_forMAux___main___at_Lean_Elab_Tactic_forEachVar___spec__1(x_1, x_3, x_2, x_6, x_4, x_5); -return x_7; +lean_object* x_5; lean_object* x_6; +x_5 = lean_unsigned_to_nat(0u); +x_6 = l_Array_forMAux___main___at_Lean_Elab_Tactic_forEachVar___spec__1(x_2, x_1, x_5, x_3, x_4); +return x_6; } } -lean_object* l_Array_forMAux___main___at_Lean_Elab_Tactic_forEachVar___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_Array_forMAux___main___at_Lean_Elab_Tactic_forEachVar___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_3); -return x_7; -} -} -lean_object* l_Lean_Elab_Tactic_forEachVar___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Array_forMAux___main___at_Lean_Elab_Tactic_forEachVar___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l_Lean_Elab_Tactic_forEachVar(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Array_forMAux___main___at_Lean_Elab_Tactic_forEachVar___spec__1(x_1, x_2, x_3, x_4, x_5); lean_dec(x_2); return x_6; } } +lean_object* l_Lean_Elab_Tactic_forEachVar___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_Elab_Tactic_forEachVar(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} lean_object* _init_l_Lean_Elab_Tactic_evalClear___closed__1() { _start: { @@ -14562,11 +15775,12 @@ else 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_unsigned_to_nat(1u); x_13 = l_Lean_Syntax_getArg(x_1, x_12); +lean_dec(x_1); x_14 = l_Lean_Syntax_getArgs(x_13); lean_dec(x_13); x_15 = l_Lean_Elab_Tactic_evalClear___closed__1; x_16 = lean_unsigned_to_nat(0u); -x_17 = l_Array_forMAux___main___at_Lean_Elab_Tactic_forEachVar___spec__1(x_1, x_15, x_14, x_16, x_2, x_3); +x_17 = l_Array_forMAux___main___at_Lean_Elab_Tactic_forEachVar___spec__1(x_15, x_14, x_16, x_2, x_3); lean_dec(x_14); return x_17; } @@ -14635,11 +15849,12 @@ else 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_unsigned_to_nat(1u); x_13 = l_Lean_Syntax_getArg(x_1, x_12); +lean_dec(x_1); x_14 = l_Lean_Syntax_getArgs(x_13); lean_dec(x_13); x_15 = l_Lean_Elab_Tactic_evalSubst___closed__1; x_16 = lean_unsigned_to_nat(0u); -x_17 = l_Array_forMAux___main___at_Lean_Elab_Tactic_forEachVar___spec__1(x_1, x_15, x_14, x_16, x_2, x_3); +x_17 = l_Array_forMAux___main___at_Lean_Elab_Tactic_forEachVar___spec__1(x_15, x_14, x_16, x_2, x_3); lean_dec(x_14); return x_17; } @@ -14711,15 +15926,24 @@ x_4 = lean_unsigned_to_nat(1u); x_5 = l_Lean_Syntax_getArg(x_1, x_4); x_6 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic), 3, 1); lean_closure_set(x_6, 0, x_5); -x_7 = l_Lean_Elab_Tactic_focus___rarg(x_1, x_6, x_2, x_3); +x_7 = l_Lean_Elab_Tactic_focus___rarg(x_6, x_2, x_3); return x_7; } } +lean_object* l_Lean_Elab_Tactic_evalNestedTacticBlock___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Elab_Tactic_evalNestedTacticBlock(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalNestedTacticBlock___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalNestedTacticBlock), 3, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalNestedTacticBlock___boxed), 3, 0); return x_1; } } @@ -14742,11 +15966,20 @@ x_4 = l_Lean_Elab_Tactic_evalNestedTacticBlock(x_1, x_2, x_3); return x_4; } } +lean_object* l_Lean_Elab_Tactic_evalNestedTacticBlockCurly___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Elab_Tactic_evalNestedTacticBlockCurly(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalNestedTacticBlockCurly___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalNestedTacticBlockCurly), 3, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalNestedTacticBlockCurly___boxed), 3, 0); return x_1; } } @@ -14911,6 +16144,7 @@ x_6 = lean_unsigned_to_nat(1u); x_7 = l_Lean_Syntax_getArg(x_1, x_6); x_8 = lean_unsigned_to_nat(2u); x_9 = l_Lean_Syntax_getArg(x_1, x_8); +lean_dec(x_1); x_10 = l_Lean_Syntax_getId(x_7); lean_dec(x_7); lean_inc(x_2); @@ -14936,7 +16170,7 @@ x_16 = lean_ctor_get(x_14, 1); lean_inc(x_16); lean_dec(x_14); x_17 = l_Lean_Elab_Tactic_evalCase___closed__3; -x_18 = l_Lean_Elab_Tactic_throwError___rarg(x_1, x_17, x_2, x_16); +x_18 = l_Lean_Elab_Tactic_throwError___rarg(x_17, x_2, x_16); return x_18; } else @@ -14948,7 +16182,7 @@ lean_dec(x_14); x_20 = lean_ctor_get(x_15, 0); lean_inc(x_20); lean_dec(x_15); -x_21 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___spec__1(x_12, x_20); +x_21 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__1(x_12, x_20); x_22 = lean_box(0); x_23 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_23, 0, x_20); @@ -14966,7 +16200,7 @@ x_27 = lean_ctor_get(x_26, 1); lean_inc(x_27); lean_dec(x_26); lean_inc(x_2); -x_28 = l_Lean_Elab_Tactic_done(x_1, x_2, x_27); +x_28 = l_Lean_Elab_Tactic_done(x_2, x_27); if (lean_obj_tag(x_28) == 0) { lean_object* x_29; lean_object* x_30; @@ -15007,7 +16241,6 @@ else uint8_t x_35; lean_dec(x_21); lean_dec(x_2); -lean_dec(x_1); x_35 = !lean_is_exclusive(x_26); if (x_35 == 0) { @@ -15035,7 +16268,6 @@ uint8_t x_39; lean_dec(x_10); lean_dec(x_9); lean_dec(x_2); -lean_dec(x_1); x_39 = !lean_is_exclusive(x_11); if (x_39 == 0) { @@ -15423,6 +16655,8 @@ l_Lean_Elab_Tactic_ensureHasNoMVars___closed__3 = _init_l_Lean_Elab_Tactic_ensur lean_mark_persistent(l_Lean_Elab_Tactic_ensureHasNoMVars___closed__3); l_Lean_Elab_Tactic_liftMetaTactic___closed__1 = _init_l_Lean_Elab_Tactic_liftMetaTactic___closed__1(); lean_mark_persistent(l_Lean_Elab_Tactic_liftMetaTactic___closed__1); +l_Lean_Elab_Tactic_focus___rarg___closed__1 = _init_l_Lean_Elab_Tactic_focus___rarg___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_focus___rarg___closed__1); l___regBuiltin_Lean_Elab_Tactic_evalSeq___closed__1 = _init_l___regBuiltin_Lean_Elab_Tactic_evalSeq___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalSeq___closed__1); res = l___regBuiltin_Lean_Elab_Tactic_evalSeq(lean_io_mk_world()); diff --git a/stage0/stdlib/Lean/Elab/Tactic/ElabTerm.c b/stage0/stdlib/Lean/Elab/Tactic/ElabTerm.c index f7ab975860..923e2761a2 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/ElabTerm.c +++ b/stage0/stdlib/Lean/Elab/Tactic/ElabTerm.c @@ -15,37 +15,37 @@ extern "C" { #endif lean_object* l_Lean_Elab_Tactic_elabAsFVar___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_withMVarContext___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_instantiateMVars(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalExact(lean_object*); lean_object* l_Lean_Meta_assert___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_liftMetaM___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_liftMetaM___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_append___rarg(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_Lean_Elab_Tactic_elabAsFVar___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalApply(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_inferType(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_inferType(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_SyntheticMVars_11__synthesizeSyntheticMVarsAux___main(uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalRefine(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_elabTerm___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_ReaderT_bind___at_Lean_Elab_Tactic_monadLog___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Meta_apply___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_caseValue___closed__2; -lean_object* l_Lean_Elab_Tactic_evalApply___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_elabTermAux___main(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_elabAsFVar___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_evalApply___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_elabAsFVar___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Tactic_apply___elambda__1___closed__1; lean_object* l_Lean_Elab_Tactic_getMVarDecl___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_getMainGoal(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_getMainGoal(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_elabAsFVar___lambda__2(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_evalApply___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_evalApply___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Tactic_tacticElabAttribute; -lean_object* l_Lean_Elab_Tactic_evalExact___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_evalExact___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_evalExact___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_evalExact___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalRefine___lambda__1___closed__1; lean_object* l_Lean_Elab_Tactic_elabTerm___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_elabAsFVar___lambda__3___closed__1; @@ -54,24 +54,24 @@ lean_object* l_Lean_Elab_Tactic_elabAsFVar___lambda__2___boxed(lean_object*, lea lean_object* l_Lean_Elab_Tactic_elabAsFVar___lambda__3___closed__2; lean_object* l_Lean_Elab_Tactic_evalApply___lambda__1___closed__1; lean_object* l_Lean_Syntax_getArgs(lean_object*); -lean_object* l_Lean_Elab_Tactic_evalRefine___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_evalRefine___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_setGoals(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_tagUntaggedGoals(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_elabAsFVar(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalApply___closed__1; lean_object* l_Lean_Elab_Tactic_assignExprMVar(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_ensureHasNoMVars(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_ensureHasNoMVars(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_elabTerm(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalApply(lean_object*); lean_object* l_Lean_Elab_Tactic_liftTermElabM___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Tactic_exact___elambda__1___closed__2; lean_object* l_Lean_Meta_intro1(lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_ensureHasType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_ensureHasType(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_throwUnsupportedSyntax___rarg(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRefine___closed__1; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_collectMVars(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_collectMVars(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRefine(lean_object*); extern lean_object* l_Lean_Parser_Tactic_refine___elambda__1___closed__1; extern lean_object* l_Lean_Parser_Tactic_refine___elambda__1___closed__2; @@ -86,11 +86,10 @@ if (x_6 == 0) { uint8_t x_7; uint8_t x_8; lean_object* x_9; x_7 = 0; -lean_ctor_set_uint8(x_4, sizeof(void*)*10 + 1, x_7); +lean_ctor_set_uint8(x_4, sizeof(void*)*11 + 1, x_7); x_8 = 1; lean_inc(x_4); -lean_inc(x_2); -x_9 = l_Lean_Elab_Term_elabTermAux___main(x_1, x_8, x_8, x_2, x_4, x_5); +x_9 = l_Lean_Elab_Term_elabTerm(x_1, x_2, x_8, x_4, x_5); if (lean_obj_tag(x_9) == 0) { lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; @@ -108,8 +107,7 @@ 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 = l_Lean_Elab_Term_instantiateMVars(x_2, x_10, x_4, x_14); -lean_dec(x_2); +x_15 = l_Lean_Elab_Term_instantiateMVars(x_10, x_4, x_14); return x_15; } else @@ -117,7 +115,6 @@ else uint8_t x_16; lean_dec(x_10); lean_dec(x_4); -lean_dec(x_2); x_16 = !lean_is_exclusive(x_13); if (x_16 == 0) { @@ -142,7 +139,6 @@ else { uint8_t x_20; lean_dec(x_4); -lean_dec(x_2); x_20 = !lean_is_exclusive(x_9); if (x_20 == 0) { @@ -165,7 +161,7 @@ return x_23; } else { -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; uint8_t x_34; uint8_t x_35; uint8_t x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; +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; uint8_t x_34; uint8_t x_35; lean_object* x_36; uint8_t x_37; lean_object* x_38; uint8_t x_39; lean_object* x_40; x_24 = lean_ctor_get(x_4, 0); x_25 = lean_ctor_get(x_4, 1); x_26 = lean_ctor_get(x_4, 2); @@ -176,8 +172,10 @@ x_30 = lean_ctor_get(x_4, 6); x_31 = lean_ctor_get(x_4, 7); x_32 = lean_ctor_get(x_4, 8); x_33 = lean_ctor_get(x_4, 9); -x_34 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); -x_35 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 2); +x_34 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_35 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +x_36 = lean_ctor_get(x_4, 10); +lean_inc(x_36); lean_inc(x_33); lean_inc(x_32); lean_inc(x_31); @@ -189,99 +187,96 @@ lean_inc(x_26); lean_inc(x_25); lean_inc(x_24); lean_dec(x_4); -x_36 = 0; -x_37 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_37, 0, x_24); -lean_ctor_set(x_37, 1, x_25); -lean_ctor_set(x_37, 2, x_26); -lean_ctor_set(x_37, 3, x_27); -lean_ctor_set(x_37, 4, x_28); -lean_ctor_set(x_37, 5, x_29); -lean_ctor_set(x_37, 6, x_30); -lean_ctor_set(x_37, 7, x_31); -lean_ctor_set(x_37, 8, x_32); -lean_ctor_set(x_37, 9, x_33); -lean_ctor_set_uint8(x_37, sizeof(void*)*10, x_34); -lean_ctor_set_uint8(x_37, sizeof(void*)*10 + 1, x_36); -lean_ctor_set_uint8(x_37, sizeof(void*)*10 + 2, x_35); -x_38 = 1; -lean_inc(x_37); -lean_inc(x_2); -x_39 = l_Lean_Elab_Term_elabTermAux___main(x_1, x_38, x_38, x_2, x_37, x_5); -if (lean_obj_tag(x_39) == 0) +x_37 = 0; +x_38 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_38, 0, x_24); +lean_ctor_set(x_38, 1, x_25); +lean_ctor_set(x_38, 2, x_26); +lean_ctor_set(x_38, 3, x_27); +lean_ctor_set(x_38, 4, x_28); +lean_ctor_set(x_38, 5, x_29); +lean_ctor_set(x_38, 6, x_30); +lean_ctor_set(x_38, 7, x_31); +lean_ctor_set(x_38, 8, x_32); +lean_ctor_set(x_38, 9, x_33); +lean_ctor_set(x_38, 10, x_36); +lean_ctor_set_uint8(x_38, sizeof(void*)*11, x_34); +lean_ctor_set_uint8(x_38, sizeof(void*)*11 + 1, x_37); +lean_ctor_set_uint8(x_38, sizeof(void*)*11 + 2, x_35); +x_39 = 1; +lean_inc(x_38); +x_40 = l_Lean_Elab_Term_elabTerm(x_1, x_2, x_39, x_38, x_5); +if (lean_obj_tag(x_40) == 0) { -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_40 = lean_ctor_get(x_39, 0); -lean_inc(x_40); -x_41 = lean_ctor_get(x_39, 1); +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_41 = lean_ctor_get(x_40, 0); lean_inc(x_41); -lean_dec(x_39); -x_42 = lean_box(0); -lean_inc(x_37); -x_43 = l___private_Lean_Elab_SyntheticMVars_11__synthesizeSyntheticMVarsAux___main(x_3, x_42, x_37, x_41); -if (lean_obj_tag(x_43) == 0) -{ -lean_object* x_44; lean_object* x_45; -x_44 = lean_ctor_get(x_43, 1); -lean_inc(x_44); -lean_dec(x_43); -x_45 = l_Lean_Elab_Term_instantiateMVars(x_2, x_40, x_37, x_44); -lean_dec(x_2); -return x_45; -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); lean_dec(x_40); -lean_dec(x_37); -lean_dec(x_2); -x_46 = lean_ctor_get(x_43, 0); -lean_inc(x_46); -x_47 = lean_ctor_get(x_43, 1); +x_43 = lean_box(0); +lean_inc(x_38); +x_44 = l___private_Lean_Elab_SyntheticMVars_11__synthesizeSyntheticMVarsAux___main(x_3, x_43, x_38, x_42); +if (lean_obj_tag(x_44) == 0) +{ +lean_object* x_45; lean_object* x_46; +x_45 = lean_ctor_get(x_44, 1); +lean_inc(x_45); +lean_dec(x_44); +x_46 = l_Lean_Elab_Term_instantiateMVars(x_41, x_38, x_45); +return x_46; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +lean_dec(x_41); +lean_dec(x_38); +x_47 = lean_ctor_get(x_44, 0); lean_inc(x_47); -if (lean_is_exclusive(x_43)) { - lean_ctor_release(x_43, 0); - lean_ctor_release(x_43, 1); - x_48 = x_43; +x_48 = lean_ctor_get(x_44, 1); +lean_inc(x_48); +if (lean_is_exclusive(x_44)) { + lean_ctor_release(x_44, 0); + lean_ctor_release(x_44, 1); + x_49 = x_44; } else { - lean_dec_ref(x_43); - x_48 = lean_box(0); + lean_dec_ref(x_44); + x_49 = lean_box(0); } -if (lean_is_scalar(x_48)) { - x_49 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_49)) { + x_50 = lean_alloc_ctor(1, 2, 0); } else { - x_49 = x_48; + x_50 = x_49; } -lean_ctor_set(x_49, 0, x_46); -lean_ctor_set(x_49, 1, x_47); -return x_49; +lean_ctor_set(x_50, 0, x_47); +lean_ctor_set(x_50, 1, x_48); +return x_50; } } else { -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; -lean_dec(x_37); -lean_dec(x_2); -x_50 = lean_ctor_get(x_39, 0); -lean_inc(x_50); -x_51 = lean_ctor_get(x_39, 1); +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +lean_dec(x_38); +x_51 = lean_ctor_get(x_40, 0); lean_inc(x_51); -if (lean_is_exclusive(x_39)) { - lean_ctor_release(x_39, 0); - lean_ctor_release(x_39, 1); - x_52 = x_39; +x_52 = lean_ctor_get(x_40, 1); +lean_inc(x_52); +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + x_53 = x_40; } else { - lean_dec_ref(x_39); - x_52 = lean_box(0); + lean_dec_ref(x_40); + x_53 = lean_box(0); } -if (lean_is_scalar(x_52)) { - x_53 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_53)) { + x_54 = lean_alloc_ctor(1, 2, 0); } else { - x_53 = x_52; + x_54 = x_53; } -lean_ctor_set(x_53, 0, x_50); -lean_ctor_set(x_53, 1, x_51); -return x_53; +lean_ctor_set(x_54, 0, x_51); +lean_ctor_set(x_54, 1, x_52); +return x_54; } } } @@ -289,14 +284,148 @@ return x_53; lean_object* l_Lean_Elab_Tactic_elabTerm(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_6; lean_object* x_7; lean_object* x_8; +lean_object* x_6; lean_object* x_7; uint8_t x_8; x_6 = lean_box(x_3); +lean_inc(x_1); x_7 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_elabTerm___lambda__1___boxed), 5, 3); -lean_closure_set(x_7, 0, x_2); -lean_closure_set(x_7, 1, x_1); +lean_closure_set(x_7, 0, x_1); +lean_closure_set(x_7, 1, x_2); lean_closure_set(x_7, 2, x_6); -x_8 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_7, x_4, x_5); -return x_8; +x_8 = !lean_is_exclusive(x_4); +if (x_8 == 0) +{ +lean_object* x_9; uint8_t x_10; +x_9 = lean_ctor_get(x_4, 0); +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_9, 10); +lean_dec(x_11); +lean_ctor_set(x_9, 10, x_1); +x_12 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_7, x_4, x_5); +return x_12; +} +else +{ +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; uint8_t x_23; uint8_t x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; +x_13 = lean_ctor_get(x_9, 0); +x_14 = lean_ctor_get(x_9, 1); +x_15 = lean_ctor_get(x_9, 2); +x_16 = lean_ctor_get(x_9, 3); +x_17 = lean_ctor_get(x_9, 4); +x_18 = lean_ctor_get(x_9, 5); +x_19 = lean_ctor_get(x_9, 6); +x_20 = lean_ctor_get(x_9, 7); +x_21 = lean_ctor_get(x_9, 8); +x_22 = lean_ctor_get(x_9, 9); +x_23 = lean_ctor_get_uint8(x_9, sizeof(void*)*11); +x_24 = lean_ctor_get_uint8(x_9, sizeof(void*)*11 + 1); +x_25 = lean_ctor_get_uint8(x_9, sizeof(void*)*11 + 2); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_9); +x_26 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_26, 0, x_13); +lean_ctor_set(x_26, 1, x_14); +lean_ctor_set(x_26, 2, x_15); +lean_ctor_set(x_26, 3, x_16); +lean_ctor_set(x_26, 4, x_17); +lean_ctor_set(x_26, 5, x_18); +lean_ctor_set(x_26, 6, x_19); +lean_ctor_set(x_26, 7, x_20); +lean_ctor_set(x_26, 8, x_21); +lean_ctor_set(x_26, 9, x_22); +lean_ctor_set(x_26, 10, x_1); +lean_ctor_set_uint8(x_26, sizeof(void*)*11, x_23); +lean_ctor_set_uint8(x_26, sizeof(void*)*11 + 1, x_24); +lean_ctor_set_uint8(x_26, sizeof(void*)*11 + 2, x_25); +lean_ctor_set(x_4, 0, x_26); +x_27 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_7, x_4, x_5); +return x_27; +} +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; uint8_t x_41; uint8_t x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_28 = lean_ctor_get(x_4, 0); +x_29 = lean_ctor_get(x_4, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_4); +x_30 = lean_ctor_get(x_28, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_28, 1); +lean_inc(x_31); +x_32 = lean_ctor_get(x_28, 2); +lean_inc(x_32); +x_33 = lean_ctor_get(x_28, 3); +lean_inc(x_33); +x_34 = lean_ctor_get(x_28, 4); +lean_inc(x_34); +x_35 = lean_ctor_get(x_28, 5); +lean_inc(x_35); +x_36 = lean_ctor_get(x_28, 6); +lean_inc(x_36); +x_37 = lean_ctor_get(x_28, 7); +lean_inc(x_37); +x_38 = lean_ctor_get(x_28, 8); +lean_inc(x_38); +x_39 = lean_ctor_get(x_28, 9); +lean_inc(x_39); +x_40 = lean_ctor_get_uint8(x_28, sizeof(void*)*11); +x_41 = lean_ctor_get_uint8(x_28, sizeof(void*)*11 + 1); +x_42 = lean_ctor_get_uint8(x_28, sizeof(void*)*11 + 2); +if (lean_is_exclusive(x_28)) { + lean_ctor_release(x_28, 0); + lean_ctor_release(x_28, 1); + lean_ctor_release(x_28, 2); + lean_ctor_release(x_28, 3); + lean_ctor_release(x_28, 4); + lean_ctor_release(x_28, 5); + lean_ctor_release(x_28, 6); + lean_ctor_release(x_28, 7); + lean_ctor_release(x_28, 8); + lean_ctor_release(x_28, 9); + lean_ctor_release(x_28, 10); + x_43 = x_28; +} else { + lean_dec_ref(x_28); + x_43 = lean_box(0); +} +if (lean_is_scalar(x_43)) { + x_44 = lean_alloc_ctor(0, 11, 3); +} else { + x_44 = x_43; +} +lean_ctor_set(x_44, 0, x_30); +lean_ctor_set(x_44, 1, x_31); +lean_ctor_set(x_44, 2, x_32); +lean_ctor_set(x_44, 3, x_33); +lean_ctor_set(x_44, 4, x_34); +lean_ctor_set(x_44, 5, x_35); +lean_ctor_set(x_44, 6, x_36); +lean_ctor_set(x_44, 7, x_37); +lean_ctor_set(x_44, 8, x_38); +lean_ctor_set(x_44, 9, x_39); +lean_ctor_set(x_44, 10, x_1); +lean_ctor_set_uint8(x_44, sizeof(void*)*11, x_40); +lean_ctor_set_uint8(x_44, sizeof(void*)*11 + 1, x_41); +lean_ctor_set_uint8(x_44, sizeof(void*)*11 + 2, x_42); +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_44); +lean_ctor_set(x_45, 1, x_29); +x_46 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_7, x_45, x_5); +return x_46; +} } } lean_object* l_Lean_Elab_Tactic_elabTerm___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { @@ -319,125 +448,122 @@ x_7 = l_Lean_Elab_Tactic_elabTerm(x_1, x_2, x_6, x_4, x_5); return x_7; } } -lean_object* l_Lean_Elab_Tactic_evalExact___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* l_Lean_Elab_Tactic_evalExact___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_10; -x_7 = lean_ctor_get(x_4, 2); +lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; +x_6 = lean_ctor_get(x_3, 2); +lean_inc(x_6); +x_7 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_7, 0, x_6); +x_8 = 0; +lean_inc(x_4); lean_inc(x_7); -x_8 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_8, 0, x_7); -x_9 = 0; -lean_inc(x_5); -lean_inc(x_8); -x_10 = l_Lean_Elab_Tactic_elabTerm(x_1, x_8, x_9, x_5, x_6); -if (lean_obj_tag(x_10) == 0) +x_9 = l_Lean_Elab_Tactic_elabTerm(x_1, x_7, x_8, x_4, x_5); +if (lean_obj_tag(x_9) == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_11 = lean_ctor_get(x_10, 0); +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); lean_inc(x_11); -x_12 = lean_ctor_get(x_10, 1); -lean_inc(x_12); -lean_dec(x_10); -lean_inc(x_5); -lean_inc(x_2); -x_13 = l_Lean_Elab_Tactic_ensureHasType(x_2, x_8, x_11, x_5, x_12); -if (lean_obj_tag(x_13) == 0) +lean_dec(x_9); +lean_inc(x_4); +x_12 = l_Lean_Elab_Tactic_ensureHasType(x_7, x_10, x_4, x_11); +if (lean_obj_tag(x_12) == 0) { -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_13, 0); +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); lean_inc(x_14); -x_15 = lean_ctor_get(x_13, 1); -lean_inc(x_15); +lean_dec(x_12); +lean_inc(x_4); +lean_inc(x_13); +x_15 = l_Lean_Elab_Tactic_ensureHasNoMVars(x_13, x_4, x_14); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +lean_dec(x_15); +x_17 = l_Lean_Elab_Tactic_assignExprMVar(x_2, x_13, x_4, x_16); +return x_17; +} +else +{ +uint8_t x_18; lean_dec(x_13); -lean_inc(x_5); -lean_inc(x_14); -x_16 = l_Lean_Elab_Tactic_ensureHasNoMVars(x_2, x_14, x_5, x_15); -if (lean_obj_tag(x_16) == 0) +lean_dec(x_4); +lean_dec(x_2); +x_18 = !lean_is_exclusive(x_15); +if (x_18 == 0) { -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_16, 1); -lean_inc(x_17); -lean_dec(x_16); -x_18 = l_Lean_Elab_Tactic_assignExprMVar(x_3, x_14, x_5, x_17); -return x_18; +return x_15; } else { -uint8_t x_19; -lean_dec(x_14); -lean_dec(x_5); -lean_dec(x_3); -x_19 = !lean_is_exclusive(x_16); -if (x_19 == 0) -{ -return x_16; -} -else -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_16, 0); -x_21 = lean_ctor_get(x_16, 1); -lean_inc(x_21); +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_15, 0); +x_20 = lean_ctor_get(x_15, 1); lean_inc(x_20); -lean_dec(x_16); -x_22 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_22, 0, x_20); -lean_ctor_set(x_22, 1, x_21); -return x_22; +lean_inc(x_19); +lean_dec(x_15); +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; } } } else { -uint8_t x_23; -lean_dec(x_5); -lean_dec(x_3); +uint8_t x_22; +lean_dec(x_4); lean_dec(x_2); -x_23 = !lean_is_exclusive(x_13); -if (x_23 == 0) +x_22 = !lean_is_exclusive(x_12); +if (x_22 == 0) { -return x_13; +return x_12; } else { -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_13, 0); -x_25 = lean_ctor_get(x_13, 1); -lean_inc(x_25); +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_12, 0); +x_24 = lean_ctor_get(x_12, 1); lean_inc(x_24); -lean_dec(x_13); -x_26 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_26, 0, x_24); -lean_ctor_set(x_26, 1, x_25); -return x_26; +lean_inc(x_23); +lean_dec(x_12); +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +return x_25; } } } else { -uint8_t x_27; -lean_dec(x_8); -lean_dec(x_5); -lean_dec(x_3); +uint8_t x_26; +lean_dec(x_7); +lean_dec(x_4); lean_dec(x_2); -x_27 = !lean_is_exclusive(x_10); -if (x_27 == 0) +x_26 = !lean_is_exclusive(x_9); +if (x_26 == 0) { -return x_10; +return x_9; } else { -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_10, 0); -x_29 = lean_ctor_get(x_10, 1); -lean_inc(x_29); +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_9, 0); +x_28 = lean_ctor_get(x_9, 1); lean_inc(x_28); -lean_dec(x_10); -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_inc(x_27); +lean_dec(x_9); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +return x_29; } } } @@ -482,9 +608,9 @@ else lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = lean_unsigned_to_nat(1u); x_7 = l_Lean_Syntax_getArg(x_1, x_6); +lean_dec(x_1); lean_inc(x_2); -lean_inc(x_1); -x_8 = l_Lean_Elab_Tactic_getMainGoal(x_1, x_2, x_3); +x_8 = l_Lean_Elab_Tactic_getMainGoal(x_2, 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; @@ -502,10 +628,9 @@ lean_inc(x_11); x_13 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_getMVarDecl___boxed), 3, 1); lean_closure_set(x_13, 0, x_11); lean_inc(x_11); -x_14 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalExact___lambda__1___boxed), 6, 3); +x_14 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalExact___lambda__1___boxed), 5, 2); lean_closure_set(x_14, 0, x_7); -lean_closure_set(x_14, 1, x_1); -lean_closure_set(x_14, 2, x_11); +lean_closure_set(x_14, 1, x_11); x_15 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_monadLog___spec__2___rarg), 4, 2); lean_closure_set(x_15, 0, x_13); lean_closure_set(x_15, 1, x_14); @@ -552,7 +677,6 @@ else uint8_t x_23; lean_dec(x_7); lean_dec(x_2); -lean_dec(x_1); x_23 = !lean_is_exclusive(x_8); if (x_23 == 0) { @@ -576,13 +700,13 @@ return x_26; } } } -lean_object* l_Lean_Elab_Tactic_evalExact___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* l_Lean_Elab_Tactic_evalExact___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_7; -x_7 = l_Lean_Elab_Tactic_evalExact___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_4); -return x_7; +lean_object* x_6; +x_6 = l_Lean_Elab_Tactic_evalExact___lambda__1(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_3); +return x_6; } } lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalExact___closed__1() { @@ -614,188 +738,184 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_Lean_Elab_Tactic_evalRefine___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* l_Lean_Elab_Tactic_evalRefine___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_10; -x_7 = lean_ctor_get(x_4, 2); +lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; +x_6 = lean_ctor_get(x_3, 2); +lean_inc(x_6); +x_7 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_7, 0, x_6); +x_8 = 0; +lean_inc(x_4); lean_inc(x_7); -x_8 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_8, 0, x_7); -x_9 = 0; -lean_inc(x_5); -lean_inc(x_8); -x_10 = l_Lean_Elab_Tactic_elabTerm(x_1, x_8, x_9, x_5, x_6); -if (lean_obj_tag(x_10) == 0) +x_9 = l_Lean_Elab_Tactic_elabTerm(x_1, x_7, x_8, x_4, x_5); +if (lean_obj_tag(x_9) == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_11 = lean_ctor_get(x_10, 0); +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); lean_inc(x_11); -x_12 = lean_ctor_get(x_10, 1); -lean_inc(x_12); -lean_dec(x_10); -lean_inc(x_5); -lean_inc(x_2); -x_13 = l_Lean_Elab_Tactic_ensureHasType(x_2, x_8, x_11, x_5, x_12); -if (lean_obj_tag(x_13) == 0) +lean_dec(x_9); +lean_inc(x_4); +x_12 = l_Lean_Elab_Tactic_ensureHasType(x_7, x_10, x_4, x_11); +if (lean_obj_tag(x_12) == 0) { -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_13, 0); +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); lean_inc(x_14); -x_15 = lean_ctor_get(x_13, 1); -lean_inc(x_15); -lean_dec(x_13); -lean_inc(x_5); -lean_inc(x_14); -x_16 = l_Lean_Elab_Tactic_assignExprMVar(x_3, x_14, x_5, x_15); -if (lean_obj_tag(x_16) == 0) +lean_dec(x_12); +lean_inc(x_4); +lean_inc(x_13); +x_15 = l_Lean_Elab_Tactic_assignExprMVar(x_2, x_13, x_4, x_14); +if (lean_obj_tag(x_15) == 0) { -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_16, 1); -lean_inc(x_17); -lean_dec(x_16); -lean_inc(x_5); -x_18 = l_Lean_Elab_Tactic_collectMVars(x_2, x_14, x_5, x_17); -if (lean_obj_tag(x_18) == 0) +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +lean_dec(x_15); +lean_inc(x_4); +x_17 = l_Lean_Elab_Tactic_collectMVars(x_13, x_4, x_16); +if (lean_obj_tag(x_17) == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; -x_19 = lean_ctor_get(x_18, 0); +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); +lean_dec(x_17); +x_20 = lean_ctor_get(x_3, 0); lean_inc(x_20); -lean_dec(x_18); -x_21 = lean_ctor_get(x_4, 0); -lean_inc(x_21); +lean_dec(x_3); +x_21 = l_Lean_Elab_Tactic_evalRefine___lambda__1___closed__1; +lean_inc(x_18); +x_22 = l_Lean_Elab_Tactic_tagUntaggedGoals(x_20, x_21, x_18, x_4, x_19); lean_dec(x_4); -x_22 = l_Lean_Elab_Tactic_evalRefine___lambda__1___closed__1; -lean_inc(x_19); -x_23 = l_Lean_Elab_Tactic_tagUntaggedGoals(x_21, x_22, x_19, x_5, x_20); -lean_dec(x_5); -x_24 = !lean_is_exclusive(x_23); -if (x_24 == 0) +x_23 = !lean_is_exclusive(x_22); +if (x_23 == 0) { -lean_object* x_25; -x_25 = lean_ctor_get(x_23, 0); -lean_dec(x_25); -lean_ctor_set(x_23, 0, x_19); -return x_23; +lean_object* x_24; +x_24 = lean_ctor_get(x_22, 0); +lean_dec(x_24); +lean_ctor_set(x_22, 0, x_18); +return x_22; } else { -lean_object* x_26; lean_object* x_27; -x_26 = lean_ctor_get(x_23, 1); -lean_inc(x_26); -lean_dec(x_23); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_19); -lean_ctor_set(x_27, 1, x_26); -return x_27; +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_22, 1); +lean_inc(x_25); +lean_dec(x_22); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_18); +lean_ctor_set(x_26, 1, x_25); +return x_26; } } else { -uint8_t x_28; -lean_dec(x_5); +uint8_t x_27; lean_dec(x_4); -x_28 = !lean_is_exclusive(x_18); -if (x_28 == 0) +lean_dec(x_3); +x_27 = !lean_is_exclusive(x_17); +if (x_27 == 0) { -return x_18; +return x_17; } else { -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_18, 0); -x_30 = lean_ctor_get(x_18, 1); -lean_inc(x_30); +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_17, 0); +x_29 = lean_ctor_get(x_17, 1); lean_inc(x_29); -lean_dec(x_18); -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_inc(x_28); +lean_dec(x_17); +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; } } } else { -uint8_t x_32; -lean_dec(x_14); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_32 = !lean_is_exclusive(x_16); -if (x_32 == 0) -{ -return x_16; -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_16, 0); -x_34 = lean_ctor_get(x_16, 1); -lean_inc(x_34); -lean_inc(x_33); -lean_dec(x_16); -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; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_36 = !lean_is_exclusive(x_13); -if (x_36 == 0) -{ -return x_13; -} -else -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_13, 0); -x_38 = lean_ctor_get(x_13, 1); -lean_inc(x_38); -lean_inc(x_37); +uint8_t x_31; lean_dec(x_13); -x_39 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_39, 0, x_37); -lean_ctor_set(x_39, 1, x_38); -return x_39; +lean_dec(x_4); +lean_dec(x_3); +x_31 = !lean_is_exclusive(x_15); +if (x_31 == 0) +{ +return x_15; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_15, 0); +x_33 = lean_ctor_get(x_15, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_15); +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; } } } else { -uint8_t x_40; -lean_dec(x_8); -lean_dec(x_5); +uint8_t x_35; lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_40 = !lean_is_exclusive(x_10); -if (x_40 == 0) +x_35 = !lean_is_exclusive(x_12); +if (x_35 == 0) { -return x_10; +return x_12; } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_10, 0); -x_42 = lean_ctor_get(x_10, 1); -lean_inc(x_42); +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_12, 0); +x_37 = lean_ctor_get(x_12, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_12); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +return x_38; +} +} +} +else +{ +uint8_t x_39; +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_39 = !lean_is_exclusive(x_9); +if (x_39 == 0) +{ +return x_9; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_9, 0); +x_41 = lean_ctor_get(x_9, 1); lean_inc(x_41); -lean_dec(x_10); -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; +lean_inc(x_40); +lean_dec(x_9); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; } } } @@ -840,9 +960,9 @@ else lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = lean_unsigned_to_nat(1u); x_7 = l_Lean_Syntax_getArg(x_1, x_6); +lean_dec(x_1); lean_inc(x_2); -lean_inc(x_1); -x_8 = l_Lean_Elab_Tactic_getMainGoal(x_1, x_2, x_3); +x_8 = l_Lean_Elab_Tactic_getMainGoal(x_2, 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; @@ -860,10 +980,9 @@ lean_inc(x_11); x_13 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_getMVarDecl___boxed), 3, 1); lean_closure_set(x_13, 0, x_11); lean_inc(x_11); -x_14 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalRefine___lambda__1), 6, 3); +x_14 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalRefine___lambda__1), 5, 2); lean_closure_set(x_14, 0, x_7); -lean_closure_set(x_14, 1, x_1); -lean_closure_set(x_14, 2, x_11); +lean_closure_set(x_14, 1, x_11); x_15 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_monadLog___spec__2___rarg), 4, 2); lean_closure_set(x_15, 0, x_13); lean_closure_set(x_15, 1, x_14); @@ -913,7 +1032,6 @@ else uint8_t x_25; lean_dec(x_7); lean_dec(x_2); -lean_dec(x_1); x_25 = !lean_is_exclusive(x_8); if (x_25 == 0) { @@ -967,132 +1085,131 @@ lean_closure_set(x_3, 0, x_2); return x_3; } } -lean_object* l_Lean_Elab_Tactic_evalApply___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* l_Lean_Elab_Tactic_evalApply___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_7; uint8_t x_8; lean_object* x_9; -x_7 = lean_box(0); -x_8 = 1; -lean_inc(x_5); -x_9 = l_Lean_Elab_Tactic_elabTerm(x_1, x_7, x_8, x_5, x_6); -if (lean_obj_tag(x_9) == 0) +lean_object* x_6; uint8_t x_7; lean_object* x_8; +x_6 = lean_box(0); +x_7 = 1; +lean_inc(x_4); +x_8 = l_Lean_Elab_Tactic_elabTerm(x_1, x_6, x_7, x_4, x_5); +if (lean_obj_tag(x_8) == 0) { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_10 = lean_ctor_get(x_9, 0); +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); -x_11 = lean_ctor_get(x_9, 1); -lean_inc(x_11); -lean_dec(x_9); -x_12 = lean_alloc_closure((void*)(l_Lean_Meta_apply___boxed), 4, 2); -lean_closure_set(x_12, 0, x_2); -lean_closure_set(x_12, 1, x_10); -lean_inc(x_5); -x_13 = l_Lean_Elab_Tactic_liftMetaM___rarg(x_3, x_12, x_5, x_11); -if (lean_obj_tag(x_13) == 0) +lean_dec(x_8); +x_11 = lean_alloc_closure((void*)(l_Lean_Meta_apply___boxed), 4, 2); +lean_closure_set(x_11, 0, x_2); +lean_closure_set(x_11, 1, x_9); +lean_inc(x_4); +x_12 = l_Lean_Elab_Tactic_liftMetaM___rarg(x_11, x_4, x_10); +if (lean_obj_tag(x_12) == 0) { -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_14 = lean_ctor_get(x_13, 0); +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); lean_inc(x_14); -x_15 = lean_ctor_get(x_13, 1); -lean_inc(x_15); +lean_dec(x_12); +x_15 = l_Lean_Elab_Tactic_evalApply___lambda__1___closed__1; +x_16 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_15, x_4, x_14); +if (lean_obj_tag(x_16) == 0) +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +lean_object* x_18; +x_18 = lean_ctor_get(x_16, 0); +lean_dec(x_18); +lean_ctor_set(x_16, 0, x_13); +return x_16; +} +else +{ +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_16, 1); +lean_inc(x_19); +lean_dec(x_16); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_13); +lean_ctor_set(x_20, 1, x_19); +return x_20; +} +} +else +{ +uint8_t x_21; lean_dec(x_13); -x_16 = l_Lean_Elab_Tactic_evalApply___lambda__1___closed__1; -x_17 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_16, x_5, x_15); -if (lean_obj_tag(x_17) == 0) +x_21 = !lean_is_exclusive(x_16); +if (x_21 == 0) { -uint8_t x_18; -x_18 = !lean_is_exclusive(x_17); -if (x_18 == 0) -{ -lean_object* x_19; -x_19 = lean_ctor_get(x_17, 0); -lean_dec(x_19); -lean_ctor_set(x_17, 0, x_14); -return x_17; +return x_16; } else { -lean_object* x_20; lean_object* x_21; -x_20 = lean_ctor_get(x_17, 1); -lean_inc(x_20); -lean_dec(x_17); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_14); -lean_ctor_set(x_21, 1, x_20); -return x_21; -} -} -else -{ -uint8_t x_22; -lean_dec(x_14); -x_22 = !lean_is_exclusive(x_17); -if (x_22 == 0) -{ -return x_17; -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_17, 0); -x_24 = lean_ctor_get(x_17, 1); -lean_inc(x_24); +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_16, 0); +x_23 = lean_ctor_get(x_16, 1); lean_inc(x_23); -lean_dec(x_17); -x_25 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_25, 0, x_23); -lean_ctor_set(x_25, 1, x_24); -return x_25; +lean_inc(x_22); +lean_dec(x_16); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +return x_24; } } } else { -uint8_t x_26; -lean_dec(x_5); -x_26 = !lean_is_exclusive(x_13); -if (x_26 == 0) +uint8_t x_25; +lean_dec(x_4); +x_25 = !lean_is_exclusive(x_12); +if (x_25 == 0) { -return x_13; +return x_12; } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_13, 0); -x_28 = lean_ctor_get(x_13, 1); -lean_inc(x_28); +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_12, 0); +x_27 = lean_ctor_get(x_12, 1); lean_inc(x_27); -lean_dec(x_13); -x_29 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_29, 0, x_27); -lean_ctor_set(x_29, 1, x_28); -return x_29; +lean_inc(x_26); +lean_dec(x_12); +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; } } } else { -uint8_t x_30; -lean_dec(x_5); -lean_dec(x_3); +uint8_t x_29; +lean_dec(x_4); lean_dec(x_2); -x_30 = !lean_is_exclusive(x_9); -if (x_30 == 0) +x_29 = !lean_is_exclusive(x_8); +if (x_29 == 0) { -return x_9; +return x_8; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_9, 0); -x_32 = lean_ctor_get(x_9, 1); -lean_inc(x_32); +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_8, 0); +x_31 = lean_ctor_get(x_8, 1); lean_inc(x_31); -lean_dec(x_9); -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_inc(x_30); +lean_dec(x_8); +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; } } } @@ -1137,9 +1254,9 @@ else lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = lean_unsigned_to_nat(1u); x_7 = l_Lean_Syntax_getArg(x_1, x_6); +lean_dec(x_1); lean_inc(x_2); -lean_inc(x_1); -x_8 = l_Lean_Elab_Tactic_getMainGoal(x_1, x_2, x_3); +x_8 = l_Lean_Elab_Tactic_getMainGoal(x_2, 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; @@ -1157,10 +1274,9 @@ lean_inc(x_11); x_13 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_getMVarDecl___boxed), 3, 1); lean_closure_set(x_13, 0, x_11); lean_inc(x_11); -x_14 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalApply___lambda__1___boxed), 6, 3); +x_14 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalApply___lambda__1___boxed), 5, 2); lean_closure_set(x_14, 0, x_7); lean_closure_set(x_14, 1, x_11); -lean_closure_set(x_14, 2, x_1); x_15 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_monadLog___spec__2___rarg), 4, 2); lean_closure_set(x_15, 0, x_13); lean_closure_set(x_15, 1, x_14); @@ -1210,7 +1326,6 @@ else uint8_t x_25; lean_dec(x_7); lean_dec(x_2); -lean_dec(x_1); x_25 = !lean_is_exclusive(x_8); if (x_25 == 0) { @@ -1234,13 +1349,13 @@ return x_28; } } } -lean_object* l_Lean_Elab_Tactic_evalApply___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* l_Lean_Elab_Tactic_evalApply___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_7; -x_7 = l_Lean_Elab_Tactic_evalApply___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_4); -return x_7; +lean_object* x_6; +x_6 = l_Lean_Elab_Tactic_evalApply___lambda__1(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_3); +return x_6; } } lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalApply___closed__1() { @@ -1296,240 +1411,237 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_elabAsFVar___lambda__2___box return x_1; } } -lean_object* l_Lean_Elab_Tactic_elabAsFVar___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* l_Lean_Elab_Tactic_elabAsFVar___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) { _start: { +lean_object* x_7; +if (lean_obj_tag(x_4) == 1) +{ +lean_object* x_56; lean_object* x_57; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_56 = lean_ctor_get(x_4, 0); +lean_inc(x_56); +lean_dec(x_4); +x_57 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_57, 0, x_56); +lean_ctor_set(x_57, 1, x_6); +return x_57; +} +else +{ +lean_object* x_58; +x_58 = lean_box(0); +x_7 = x_58; +goto block_55; +} +block_55: +{ lean_object* x_8; -if (lean_obj_tag(x_5) == 1) -{ -lean_object* x_57; lean_object* x_58; -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_57 = lean_ctor_get(x_5, 0); -lean_inc(x_57); -lean_dec(x_5); -x_58 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_58, 0, x_57); -lean_ctor_set(x_58, 1, x_7); -return x_58; -} -else -{ -lean_object* x_59; -x_59 = lean_box(0); -x_8 = x_59; -goto block_56; -} -block_56: -{ -lean_object* x_9; -lean_dec(x_8); -lean_inc(x_6); +lean_dec(x_7); lean_inc(x_5); -lean_inc(x_1); -x_9 = l_Lean_Elab_Tactic_inferType(x_1, x_5, x_6, x_7); -if (lean_obj_tag(x_9) == 0) +lean_inc(x_4); +x_8 = l_Lean_Elab_Tactic_inferType(x_4, x_5, x_6); +if (lean_obj_tag(x_8) == 0) { -if (lean_obj_tag(x_2) == 0) +if (lean_obj_tag(x_1) == 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; -x_10 = lean_ctor_get(x_9, 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; +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_8, 1); lean_inc(x_10); -x_11 = lean_ctor_get(x_9, 1); -lean_inc(x_11); -lean_dec(x_9); -x_12 = l_Lean_Meta_caseValue___closed__2; -x_13 = lean_alloc_closure((void*)(l_Lean_Meta_assert___boxed), 6, 4); -lean_closure_set(x_13, 0, x_3); -lean_closure_set(x_13, 1, x_12); -lean_closure_set(x_13, 2, x_10); -lean_closure_set(x_13, 3, x_5); -x_14 = l_Lean_Elab_Tactic_elabAsFVar___lambda__3___closed__1; -x_15 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg), 4, 2); -lean_closure_set(x_15, 0, x_13); -lean_closure_set(x_15, 1, x_14); -lean_inc(x_6); -x_16 = l_Lean_Elab_Tactic_liftMetaM___rarg(x_1, x_15, x_6, x_11); -if (lean_obj_tag(x_16) == 0) +lean_dec(x_8); +x_11 = l_Lean_Meta_caseValue___closed__2; +x_12 = lean_alloc_closure((void*)(l_Lean_Meta_assert___boxed), 6, 4); +lean_closure_set(x_12, 0, x_2); +lean_closure_set(x_12, 1, x_11); +lean_closure_set(x_12, 2, x_9); +lean_closure_set(x_12, 3, x_4); +x_13 = l_Lean_Elab_Tactic_elabAsFVar___lambda__3___closed__1; +x_14 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg), 4, 2); +lean_closure_set(x_14, 0, x_12); +lean_closure_set(x_14, 1, x_13); +lean_inc(x_5); +x_15 = l_Lean_Elab_Tactic_liftMetaM___rarg(x_14, x_5, x_10); +if (lean_obj_tag(x_15) == 0) { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; -x_17 = lean_ctor_get(x_16, 0); +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); lean_inc(x_17); -x_18 = lean_ctor_get(x_16, 1); +lean_dec(x_15); +x_18 = lean_ctor_get(x_16, 0); lean_inc(x_18); -lean_dec(x_16); -x_19 = lean_ctor_get(x_17, 0); +x_19 = lean_ctor_get(x_16, 1); lean_inc(x_19); -x_20 = lean_ctor_get(x_17, 1); -lean_inc(x_20); -lean_dec(x_17); -x_21 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_4); -x_22 = l_Lean_Elab_Tactic_setGoals(x_21, x_6, x_18); -lean_dec(x_6); -x_23 = !lean_is_exclusive(x_22); -if (x_23 == 0) -{ -lean_object* x_24; -x_24 = lean_ctor_get(x_22, 0); -lean_dec(x_24); -lean_ctor_set(x_22, 0, x_19); -return x_22; -} -else -{ -lean_object* x_25; lean_object* x_26; -x_25 = lean_ctor_get(x_22, 1); -lean_inc(x_25); -lean_dec(x_22); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_19); -lean_ctor_set(x_26, 1, x_25); -return x_26; -} -} -else -{ -uint8_t x_27; -lean_dec(x_6); -lean_dec(x_4); -x_27 = !lean_is_exclusive(x_16); -if (x_27 == 0) -{ -return x_16; -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_16, 0); -x_29 = lean_ctor_get(x_16, 1); -lean_inc(x_29); -lean_inc(x_28); lean_dec(x_16); -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; +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_3); +x_21 = l_Lean_Elab_Tactic_setGoals(x_20, x_5, x_17); +lean_dec(x_5); +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) +{ +lean_object* x_23; +x_23 = lean_ctor_get(x_21, 0); +lean_dec(x_23); +lean_ctor_set(x_21, 0, x_18); +return x_21; +} +else +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_21, 1); +lean_inc(x_24); +lean_dec(x_21); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_18); +lean_ctor_set(x_25, 1, x_24); +return x_25; +} +} +else +{ +uint8_t x_26; +lean_dec(x_5); +lean_dec(x_3); +x_26 = !lean_is_exclusive(x_15); +if (x_26 == 0) +{ +return x_15; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_15, 0); +x_28 = lean_ctor_get(x_15, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_15); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +return x_29; } } } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_31 = lean_ctor_get(x_9, 0); +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_30 = lean_ctor_get(x_8, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_8, 1); lean_inc(x_31); -x_32 = lean_ctor_get(x_9, 1); +lean_dec(x_8); +x_32 = lean_ctor_get(x_1, 0); lean_inc(x_32); -lean_dec(x_9); -x_33 = lean_ctor_get(x_2, 0); -lean_inc(x_33); -lean_dec(x_2); -x_34 = lean_alloc_closure((void*)(l_Lean_Meta_assert___boxed), 6, 4); -lean_closure_set(x_34, 0, x_3); -lean_closure_set(x_34, 1, x_33); -lean_closure_set(x_34, 2, x_31); -lean_closure_set(x_34, 3, x_5); -x_35 = l_Lean_Elab_Tactic_elabAsFVar___lambda__3___closed__2; -x_36 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg), 4, 2); -lean_closure_set(x_36, 0, x_34); -lean_closure_set(x_36, 1, x_35); -lean_inc(x_6); -x_37 = l_Lean_Elab_Tactic_liftMetaM___rarg(x_1, x_36, x_6, x_32); -if (lean_obj_tag(x_37) == 0) +lean_dec(x_1); +x_33 = lean_alloc_closure((void*)(l_Lean_Meta_assert___boxed), 6, 4); +lean_closure_set(x_33, 0, x_2); +lean_closure_set(x_33, 1, x_32); +lean_closure_set(x_33, 2, x_30); +lean_closure_set(x_33, 3, x_4); +x_34 = l_Lean_Elab_Tactic_elabAsFVar___lambda__3___closed__2; +x_35 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg), 4, 2); +lean_closure_set(x_35, 0, x_33); +lean_closure_set(x_35, 1, x_34); +lean_inc(x_5); +x_36 = l_Lean_Elab_Tactic_liftMetaM___rarg(x_35, x_5, x_31); +if (lean_obj_tag(x_36) == 0) { -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; -x_38 = lean_ctor_get(x_37, 0); +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_36, 1); lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); +lean_dec(x_36); +x_39 = lean_ctor_get(x_37, 0); lean_inc(x_39); -lean_dec(x_37); -x_40 = lean_ctor_get(x_38, 0); +x_40 = lean_ctor_get(x_37, 1); lean_inc(x_40); -x_41 = lean_ctor_get(x_38, 1); -lean_inc(x_41); -lean_dec(x_38); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_4); -x_43 = l_Lean_Elab_Tactic_setGoals(x_42, x_6, x_39); -lean_dec(x_6); -x_44 = !lean_is_exclusive(x_43); -if (x_44 == 0) -{ -lean_object* x_45; -x_45 = lean_ctor_get(x_43, 0); -lean_dec(x_45); -lean_ctor_set(x_43, 0, x_40); -return x_43; -} -else -{ -lean_object* x_46; lean_object* x_47; -x_46 = lean_ctor_get(x_43, 1); -lean_inc(x_46); -lean_dec(x_43); -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_40); -lean_ctor_set(x_47, 1, x_46); -return x_47; -} -} -else -{ -uint8_t x_48; -lean_dec(x_6); -lean_dec(x_4); -x_48 = !lean_is_exclusive(x_37); -if (x_48 == 0) -{ -return x_37; -} -else -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_37, 0); -x_50 = lean_ctor_get(x_37, 1); -lean_inc(x_50); -lean_inc(x_49); lean_dec(x_37); -x_51 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_51, 0, x_49); -lean_ctor_set(x_51, 1, x_50); -return x_51; +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_3); +x_42 = l_Lean_Elab_Tactic_setGoals(x_41, x_5, x_38); +lean_dec(x_5); +x_43 = !lean_is_exclusive(x_42); +if (x_43 == 0) +{ +lean_object* x_44; +x_44 = lean_ctor_get(x_42, 0); +lean_dec(x_44); +lean_ctor_set(x_42, 0, x_39); +return x_42; +} +else +{ +lean_object* x_45; lean_object* x_46; +x_45 = lean_ctor_get(x_42, 1); +lean_inc(x_45); +lean_dec(x_42); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_39); +lean_ctor_set(x_46, 1, x_45); +return x_46; +} +} +else +{ +uint8_t x_47; +lean_dec(x_5); +lean_dec(x_3); +x_47 = !lean_is_exclusive(x_36); +if (x_47 == 0) +{ +return x_36; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_36, 0); +x_49 = lean_ctor_get(x_36, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_36); +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_52; -lean_dec(x_6); +uint8_t x_51; lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_52 = !lean_is_exclusive(x_9); -if (x_52 == 0) +x_51 = !lean_is_exclusive(x_8); +if (x_51 == 0) { -return x_9; +return x_8; } else { -lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_9, 0); -x_54 = lean_ctor_get(x_9, 1); -lean_inc(x_54); +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_8, 0); +x_53 = lean_ctor_get(x_8, 1); lean_inc(x_53); -lean_dec(x_9); -x_55 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_55, 0, x_53); -lean_ctor_set(x_55, 1, x_54); -return x_55; +lean_inc(x_52); +lean_dec(x_8); +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; } } } @@ -1540,8 +1652,7 @@ _start: { lean_object* x_5; lean_inc(x_3); -lean_inc(x_1); -x_5 = l_Lean_Elab_Tactic_getMainGoal(x_1, x_3, x_4); +x_5 = l_Lean_Elab_Tactic_getMainGoal(x_3, x_4); if (lean_obj_tag(x_5) == 0) { lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; @@ -1558,17 +1669,15 @@ lean_dec(x_6); x_10 = lean_box(0); x_11 = 0; x_12 = lean_box(x_11); -lean_inc(x_1); x_13 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_elabTerm___boxed), 5, 3); lean_closure_set(x_13, 0, x_1); lean_closure_set(x_13, 1, x_10); lean_closure_set(x_13, 2, x_12); lean_inc(x_8); -x_14 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_elabAsFVar___lambda__3), 7, 4); -lean_closure_set(x_14, 0, x_1); -lean_closure_set(x_14, 1, x_2); -lean_closure_set(x_14, 2, x_8); -lean_closure_set(x_14, 3, x_9); +x_14 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_elabAsFVar___lambda__3), 6, 3); +lean_closure_set(x_14, 0, x_2); +lean_closure_set(x_14, 1, x_8); +lean_closure_set(x_14, 2, x_9); x_15 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_monadLog___spec__2___rarg), 4, 2); lean_closure_set(x_15, 0, x_13); lean_closure_set(x_15, 1, x_14); diff --git a/stage0/stdlib/Lean/Elab/Tactic/Generalize.c b/stage0/stdlib/Lean/Elab/Tactic/Generalize.c index ecff2c042e..c707b683c9 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Generalize.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Generalize.c @@ -21,7 +21,7 @@ lean_object* l_Lean_Meta_introN(lean_object*, lean_object*, lean_object*, uint8_ lean_object* l___private_Lean_Elab_Tactic_Generalize_1__getAuxHypothesisName___boxed(lean_object*); lean_object* l_Lean_Syntax_getIdAt(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalGeneralizeAux___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_liftMetaM___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_liftMetaM___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarTag(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_restore(lean_object*, lean_object*); lean_object* l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -32,7 +32,7 @@ lean_object* l___private_Lean_Elab_Tactic_Generalize_3__evalGeneralizeFinalize(l lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Generalize_4__evalGeneralizeWithEq___lambda__1___closed__4; extern lean_object* l_Lean_Elab_Tactic_liftMetaTactic___closed__1; -lean_object* l___private_Lean_Elab_Tactic_Generalize_5__evalGeneralizeFallback(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Tactic_Generalize_5__evalGeneralizeFallback(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Generalize_2__getVarName___boxed(lean_object*); lean_object* l___private_Lean_Elab_Tactic_Generalize_4__evalGeneralizeWithEq___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Generalize_4__evalGeneralizeWithEq___lambda__1___closed__1; @@ -40,11 +40,12 @@ lean_object* l_Lean_Meta_getMVarType(lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_bind___at_Lean_Elab_Tactic_monadLog___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_generalize(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalGeneralizeAux___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_getMainGoal(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_getMainGoal(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_evalGeneralize___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalGeneralize(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Tactic_tacticElabAttribute; extern lean_object* l_Lean_Meta_mkEqRefl___closed__2; -lean_object* l_Lean_Elab_Tactic_evalGeneralizeAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_evalGeneralizeAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_assignExprMVar(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_assertExt___lambda__1___closed__1; lean_object* l_Lean_Meta_mkFreshExprMVar(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); @@ -59,7 +60,7 @@ lean_object* l_Lean_Meta_inferType(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_intro1(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarDecl(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Generalize_4__evalGeneralizeWithEq___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Tactic_Generalize_4__evalGeneralizeWithEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Tactic_Generalize_4__evalGeneralizeWithEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalGeneralize___closed__1; extern lean_object* l_Lean_Parser_Tactic_generalize___elambda__1___closed__1; @@ -618,81 +619,78 @@ return x_57; } } } -lean_object* l___private_Lean_Elab_Tactic_Generalize_4__evalGeneralizeWithEq(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* l___private_Lean_Elab_Tactic_Generalize_4__evalGeneralizeWithEq(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_7; -lean_inc(x_5); -lean_inc(x_1); -x_7 = l_Lean_Elab_Tactic_getMainGoal(x_1, x_5, x_6); -if (lean_obj_tag(x_7) == 0) -{ -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* x_18; lean_object* x_19; lean_object* x_20; -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); -x_11 = lean_ctor_get(x_8, 1); -lean_inc(x_11); -lean_dec(x_8); +lean_object* x_6; lean_inc(x_4); -lean_inc(x_3); +x_6 = l_Lean_Elab_Tactic_getMainGoal(x_4, x_5); +if (lean_obj_tag(x_6) == 0) +{ +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* x_18; lean_object* x_19; +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +x_9 = lean_ctor_get(x_7, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_7, 1); lean_inc(x_10); -x_12 = lean_alloc_closure((void*)(l_Lean_Meta_generalize___boxed), 5, 3); -lean_closure_set(x_12, 0, x_10); -lean_closure_set(x_12, 1, x_3); -lean_closure_set(x_12, 2, x_4); -x_13 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Generalize_4__evalGeneralizeWithEq___lambda__1___boxed), 6, 3); -lean_closure_set(x_13, 0, x_3); -lean_closure_set(x_13, 1, x_2); -lean_closure_set(x_13, 2, x_4); -x_14 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg), 4, 2); -lean_closure_set(x_14, 0, x_12); -lean_closure_set(x_14, 1, x_13); -x_15 = l_Lean_Elab_Tactic_liftMetaTactic___closed__1; -x_16 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg), 4, 2); -lean_closure_set(x_16, 0, x_14); -lean_closure_set(x_16, 1, x_15); -x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 4, 2); -lean_closure_set(x_17, 0, x_1); -lean_closure_set(x_17, 1, x_16); -x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__1___boxed), 4, 1); -lean_closure_set(x_18, 0, x_11); -x_19 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_monadLog___spec__2___rarg), 4, 2); -lean_closure_set(x_19, 0, x_17); -lean_closure_set(x_19, 1, x_18); -x_20 = l_Lean_Elab_Tactic_withMVarContext___rarg(x_10, x_19, x_5, x_9); -lean_dec(x_10); -return x_20; +lean_dec(x_7); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_9); +x_11 = lean_alloc_closure((void*)(l_Lean_Meta_generalize___boxed), 5, 3); +lean_closure_set(x_11, 0, x_9); +lean_closure_set(x_11, 1, x_2); +lean_closure_set(x_11, 2, x_3); +x_12 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Generalize_4__evalGeneralizeWithEq___lambda__1___boxed), 6, 3); +lean_closure_set(x_12, 0, x_2); +lean_closure_set(x_12, 1, x_1); +lean_closure_set(x_12, 2, x_3); +x_13 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg), 4, 2); +lean_closure_set(x_13, 0, x_11); +lean_closure_set(x_13, 1, x_12); +x_14 = l_Lean_Elab_Tactic_liftMetaTactic___closed__1; +x_15 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg), 4, 2); +lean_closure_set(x_15, 0, x_13); +lean_closure_set(x_15, 1, x_14); +x_16 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 3, 1); +lean_closure_set(x_16, 0, x_15); +x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__1___boxed), 4, 1); +lean_closure_set(x_17, 0, x_10); +x_18 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_monadLog___spec__2___rarg), 4, 2); +lean_closure_set(x_18, 0, x_16); +lean_closure_set(x_18, 1, x_17); +x_19 = l_Lean_Elab_Tactic_withMVarContext___rarg(x_9, x_18, x_4, x_8); +lean_dec(x_9); +return x_19; } else { -uint8_t x_21; -lean_dec(x_5); +uint8_t x_20; lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_21 = !lean_is_exclusive(x_7); -if (x_21 == 0) +x_20 = !lean_is_exclusive(x_6); +if (x_20 == 0) { -return x_7; +return x_6; } else { -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_7, 0); -x_23 = lean_ctor_get(x_7, 1); -lean_inc(x_23); +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_6, 0); +x_22 = lean_ctor_get(x_6, 1); lean_inc(x_22); -lean_dec(x_7); -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -return x_24; +lean_inc(x_21); +lean_dec(x_6); +x_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +return x_23; } } } @@ -804,79 +802,76 @@ return x_31; } } } -lean_object* l___private_Lean_Elab_Tactic_Generalize_5__evalGeneralizeFallback(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* l___private_Lean_Elab_Tactic_Generalize_5__evalGeneralizeFallback(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_7; -lean_inc(x_5); -lean_inc(x_1); -x_7 = l_Lean_Elab_Tactic_getMainGoal(x_1, x_5, x_6); -if (lean_obj_tag(x_7) == 0) +lean_object* x_6; +lean_inc(x_4); +x_6 = l_Lean_Elab_Tactic_getMainGoal(x_4, x_5); +if (lean_obj_tag(x_6) == 0) { -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* x_18; lean_object* x_19; lean_object* x_20; -x_8 = lean_ctor_get(x_7, 0); +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* x_18; lean_object* x_19; +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); lean_inc(x_8); -x_9 = lean_ctor_get(x_7, 1); +lean_dec(x_6); +x_9 = lean_ctor_get(x_7, 0); lean_inc(x_9); +x_10 = lean_ctor_get(x_7, 1); +lean_inc(x_10); lean_dec(x_7); -x_10 = lean_ctor_get(x_8, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_8, 1); -lean_inc(x_11); -lean_dec(x_8); -lean_inc(x_3); -x_12 = lean_alloc_closure((void*)(l_Lean_Meta_inferType), 3, 1); -lean_closure_set(x_12, 0, x_3); -lean_inc(x_10); -x_13 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Generalize_5__evalGeneralizeFallback___lambda__1___boxed), 7, 4); -lean_closure_set(x_13, 0, x_10); -lean_closure_set(x_13, 1, x_3); -lean_closure_set(x_13, 2, x_2); -lean_closure_set(x_13, 3, x_4); -x_14 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg), 4, 2); -lean_closure_set(x_14, 0, x_12); -lean_closure_set(x_14, 1, x_13); -x_15 = l_Lean_Elab_Tactic_liftMetaTactic___closed__1; -x_16 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg), 4, 2); -lean_closure_set(x_16, 0, x_14); -lean_closure_set(x_16, 1, x_15); -x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 4, 2); -lean_closure_set(x_17, 0, x_1); -lean_closure_set(x_17, 1, x_16); -x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__1___boxed), 4, 1); -lean_closure_set(x_18, 0, x_11); -x_19 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_monadLog___spec__2___rarg), 4, 2); -lean_closure_set(x_19, 0, x_17); -lean_closure_set(x_19, 1, x_18); -x_20 = l_Lean_Elab_Tactic_withMVarContext___rarg(x_10, x_19, x_5, x_9); -lean_dec(x_10); -return x_20; +lean_inc(x_2); +x_11 = lean_alloc_closure((void*)(l_Lean_Meta_inferType), 3, 1); +lean_closure_set(x_11, 0, x_2); +lean_inc(x_9); +x_12 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Generalize_5__evalGeneralizeFallback___lambda__1___boxed), 7, 4); +lean_closure_set(x_12, 0, x_9); +lean_closure_set(x_12, 1, x_2); +lean_closure_set(x_12, 2, x_1); +lean_closure_set(x_12, 3, x_3); +x_13 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg), 4, 2); +lean_closure_set(x_13, 0, x_11); +lean_closure_set(x_13, 1, x_12); +x_14 = l_Lean_Elab_Tactic_liftMetaTactic___closed__1; +x_15 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg), 4, 2); +lean_closure_set(x_15, 0, x_13); +lean_closure_set(x_15, 1, x_14); +x_16 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 3, 1); +lean_closure_set(x_16, 0, x_15); +x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__1___boxed), 4, 1); +lean_closure_set(x_17, 0, x_10); +x_18 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_monadLog___spec__2___rarg), 4, 2); +lean_closure_set(x_18, 0, x_16); +lean_closure_set(x_18, 1, x_17); +x_19 = l_Lean_Elab_Tactic_withMVarContext___rarg(x_9, x_18, x_4, x_8); +lean_dec(x_9); +return x_19; } else { -uint8_t x_21; -lean_dec(x_5); +uint8_t x_20; lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_21 = !lean_is_exclusive(x_7); -if (x_21 == 0) +x_20 = !lean_is_exclusive(x_6); +if (x_20 == 0) { -return x_7; +return x_6; } else { -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_7, 0); -x_23 = lean_ctor_get(x_7, 1); -lean_inc(x_23); +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_6, 0); +x_22 = lean_ctor_get(x_6, 1); lean_inc(x_22); -lean_dec(x_7); -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -return x_24; +lean_inc(x_21); +lean_dec(x_6); +x_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +return x_23; } } } @@ -992,109 +987,104 @@ return x_29; } } } -lean_object* l_Lean_Elab_Tactic_evalGeneralizeAux(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* l_Lean_Elab_Tactic_evalGeneralizeAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -if (lean_obj_tag(x_2) == 0) +if (lean_obj_tag(x_1) == 0) { -lean_object* x_7; -lean_inc(x_5); -lean_inc(x_1); -x_7 = l_Lean_Elab_Tactic_getMainGoal(x_1, x_5, x_6); -if (lean_obj_tag(x_7) == 0) +lean_object* x_6; +lean_inc(x_4); +x_6 = l_Lean_Elab_Tactic_getMainGoal(x_4, x_5); +if (lean_obj_tag(x_6) == 0) { -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* x_18; -x_8 = lean_ctor_get(x_7, 0); +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; +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); lean_inc(x_8); -x_9 = lean_ctor_get(x_7, 1); +lean_dec(x_6); +x_9 = lean_ctor_get(x_7, 0); lean_inc(x_9); +x_10 = lean_ctor_get(x_7, 1); +lean_inc(x_10); lean_dec(x_7); -x_10 = lean_ctor_get(x_8, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_8, 1); -lean_inc(x_11); -lean_dec(x_8); -lean_inc(x_10); -x_12 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalGeneralizeAux___lambda__1___boxed), 5, 3); -lean_closure_set(x_12, 0, x_10); -lean_closure_set(x_12, 1, x_3); -lean_closure_set(x_12, 2, x_4); -x_13 = l_Lean_Elab_Tactic_liftMetaTactic___closed__1; -x_14 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg), 4, 2); -lean_closure_set(x_14, 0, x_12); -lean_closure_set(x_14, 1, x_13); -x_15 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 4, 2); -lean_closure_set(x_15, 0, x_1); -lean_closure_set(x_15, 1, x_14); -x_16 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__1___boxed), 4, 1); -lean_closure_set(x_16, 0, x_11); -x_17 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_monadLog___spec__2___rarg), 4, 2); -lean_closure_set(x_17, 0, x_15); -lean_closure_set(x_17, 1, x_16); -x_18 = l_Lean_Elab_Tactic_withMVarContext___rarg(x_10, x_17, x_5, x_9); -lean_dec(x_10); -return x_18; +lean_inc(x_9); +x_11 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalGeneralizeAux___lambda__1___boxed), 5, 3); +lean_closure_set(x_11, 0, x_9); +lean_closure_set(x_11, 1, x_2); +lean_closure_set(x_11, 2, x_3); +x_12 = l_Lean_Elab_Tactic_liftMetaTactic___closed__1; +x_13 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg), 4, 2); +lean_closure_set(x_13, 0, x_11); +lean_closure_set(x_13, 1, x_12); +x_14 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 3, 1); +lean_closure_set(x_14, 0, x_13); +x_15 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__1___boxed), 4, 1); +lean_closure_set(x_15, 0, x_10); +x_16 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_monadLog___spec__2___rarg), 4, 2); +lean_closure_set(x_16, 0, x_14); +lean_closure_set(x_16, 1, x_15); +x_17 = l_Lean_Elab_Tactic_withMVarContext___rarg(x_9, x_16, x_4, x_8); +lean_dec(x_9); +return x_17; } else { -uint8_t x_19; -lean_dec(x_5); +uint8_t x_18; lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_19 = !lean_is_exclusive(x_7); -if (x_19 == 0) -{ -return x_7; -} -else -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_7, 0); -x_21 = lean_ctor_get(x_7, 1); -lean_inc(x_21); -lean_inc(x_20); -lean_dec(x_7); -x_22 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_22, 0, x_20); -lean_ctor_set(x_22, 1, x_21); -return x_22; -} -} -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_2, 0); -lean_inc(x_23); lean_dec(x_2); -x_24 = l_Lean_Elab_Tactic_save(x_6); -lean_inc(x_5); +x_18 = !lean_is_exclusive(x_6); +if (x_18 == 0) +{ +return x_6; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_6, 0); +x_20 = lean_ctor_get(x_6, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_6); +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; +} +} +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_1, 0); +lean_inc(x_22); +lean_dec(x_1); +x_23 = l_Lean_Elab_Tactic_save(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_23); -lean_inc(x_1); -x_25 = l___private_Lean_Elab_Tactic_Generalize_4__evalGeneralizeWithEq(x_1, x_23, x_3, x_4, x_5, x_6); -if (lean_obj_tag(x_25) == 0) +lean_inc(x_2); +lean_inc(x_22); +x_24 = l___private_Lean_Elab_Tactic_Generalize_4__evalGeneralizeWithEq(x_22, x_2, x_3, x_4, x_5); +if (lean_obj_tag(x_24) == 0) { -lean_dec(x_24); lean_dec(x_23); -lean_dec(x_5); +lean_dec(x_22); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -return x_25; +lean_dec(x_2); +return x_24; } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_25, 1); -lean_inc(x_26); -lean_dec(x_25); -x_27 = l_Lean_Elab_Tactic_restore(x_26, x_24); +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_24, 1); +lean_inc(x_25); lean_dec(x_24); -x_28 = l___private_Lean_Elab_Tactic_Generalize_5__evalGeneralizeFallback(x_1, x_23, x_3, x_4, x_5, x_27); -return x_28; +x_26 = l_Lean_Elab_Tactic_restore(x_25, x_23); +lean_dec(x_23); +x_27 = l___private_Lean_Elab_Tactic_Generalize_5__evalGeneralizeFallback(x_22, x_2, x_3, x_4, x_26); +return x_27; } } } @@ -1129,7 +1119,7 @@ lean_inc(x_12); x_13 = lean_ctor_get(x_11, 1); lean_inc(x_13); lean_dec(x_11); -x_14 = l_Lean_Elab_Tactic_evalGeneralizeAux(x_1, x_4, x_12, x_6, x_2, x_13); +x_14 = l_Lean_Elab_Tactic_evalGeneralizeAux(x_4, x_12, x_6, x_2, x_13); return x_14; } else @@ -1138,7 +1128,6 @@ uint8_t x_15; lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); -lean_dec(x_1); x_15 = !lean_is_exclusive(x_11); if (x_15 == 0) { @@ -1160,11 +1149,20 @@ return x_18; } } } +lean_object* l_Lean_Elab_Tactic_evalGeneralize___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Elab_Tactic_evalGeneralize(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalGeneralize___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalGeneralize), 3, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalGeneralize___boxed), 3, 0); return x_1; } } diff --git a/stage0/stdlib/Lean/Elab/Tactic/Induction.c b/stage0/stdlib/Lean/Elab/Tactic/Induction.c index c2bee9c75c..e05950a467 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Induction.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Induction.c @@ -26,15 +26,15 @@ lean_object* l_Lean_Name_eraseMacroScopes(lean_object*); lean_object* l_List_foldlM___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__3___closed__2; lean_object* l_Lean_Elab_Tactic_withMVarContext___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_local_ctx_get_unused_name(lean_object*, lean_object*); -lean_object* l_Nat_foldMAux___main___at___private_Lean_Elab_Tactic_Induction_14__getRecInfo___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_foldMAux___main___at___private_Lean_Elab_Tactic_Induction_14__getRecInfo___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); -lean_object* l_Lean_Elab_Tactic_withMainMVarContext___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_withMainMVarContext___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_12__getRecFromUsingLoop___main___lambda__1(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Tactic_Induction_18__checkCasesResult(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Tactic_Induction_18__checkCasesResult(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___closed__2; lean_object* l_Lean_Elab_Tactic_getRecFromUsing___closed__3; -lean_object* l___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Tactic_Induction_18__checkCasesResult___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Tactic_Induction_18__checkCasesResult___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_eraseIdx___rarg(lean_object*, lean_object*); lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Tactic_Induction_11__checkAltCtorNames___spec__2___closed__2; lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_Tactic_Induction_14__getRecInfo___spec__1(lean_object*, lean_object*, lean_object*); @@ -42,14 +42,14 @@ lean_object* l_Nat_foldMAux___main___at___private_Lean_Elab_Tactic_Induction_14_ lean_object* l_Lean_Elab_Tactic_evalInduction___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getIdAt(lean_object*, lean_object*); -lean_object* l_Nat_foldMAux___main___at___private_Lean_Elab_Tactic_Induction_14__getRecInfo___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_foldMAux___main___at___private_Lean_Elab_Tactic_Induction_14__getRecInfo___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_getLCtx___boxed(lean_object*, lean_object*); lean_object* lean_array_fswap(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_17__checkCasesResultAux___main___closed__7; lean_object* l_Lean_Elab_Tactic_resolveGlobalName(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalCases___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_liftMetaM___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_done(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_liftMetaM___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_done(lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; lean_object* lean_environment_find(lean_object*, lean_object*); lean_object* l_List_foldlM___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__3___closed__6; @@ -59,28 +59,28 @@ lean_object* l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___r lean_object* l_List_append___rarg(lean_object*, lean_object*); uint8_t l_Lean_Meta_RecursorInfo_isMinor(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_1__getAuxHypothesisName___boxed(lean_object*); -lean_object* l_Lean_Elab_Tactic_unfoldDefinition_x3f(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_unfoldDefinition_x3f(lean_object*, lean_object*, lean_object*); lean_object* lean_local_ctx_find_from_user_name(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_getInductiveValFromMajor___lambda__1___closed__2; lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_10__getAltRHS(lean_object*); +lean_object* l_Lean_Elab_Tactic_withRef___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn___main(lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_5__getGeneralizingFVarIds(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Name_inhabited; lean_object* l_Lean_Elab_Tactic_getInductiveValFromMajor___lambda__1___closed__1; -lean_object* l_Lean_Elab_Tactic_inferType(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_inferType(lean_object*, lean_object*, lean_object*); lean_object* l_List_foldlM___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__3___closed__1; -lean_object* l_List_foldlM___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Tactic_Induction_17__checkCasesResultAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldlM___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Tactic_Induction_17__checkCasesResultAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_17__checkCasesResultAux___main___closed__5; lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Tactic_Induction_12__getRecFromUsingLoop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_trace___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Tactic_Induction_12__getRecFromUsingLoop(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_6__generalizeVars(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); uint8_t l___private_Lean_Elab_Tactic_Induction_15__isTermRHS(lean_object*); -lean_object* l_Lean_Elab_Tactic_whnfCore(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_whnfCore(lean_object*, lean_object*, lean_object*); lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Tactic_Induction_11__checkAltCtorNames___spec__2___closed__3; extern lean_object* l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__8; lean_object* l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); @@ -98,13 +98,13 @@ lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Tactic_Induction_11 lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_6__generalizeVars___lambda__1___closed__2; lean_object* l___private_Lean_Elab_Tactic_Induction_3__elabMajor___lambda__1___closed__3; -lean_object* l___private_Lean_Elab_Tactic_Induction_3__elabMajor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Tactic_Induction_3__elabMajor(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_append___main(lean_object*, lean_object*); lean_object* l_Array_shrink___main___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_3__elabMajor___lambda__2___closed__1; lean_object* l___private_Lean_Elab_Tactic_Induction_2__getMajor(lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(lean_object*); -lean_object* l_Lean_Elab_Tactic_getInductiveValFromMajor(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_getInductiveValFromMajor(lean_object*, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_getRecFromUsing___closed__6; lean_object* l_Lean_Expr_fvarId_x21(lean_object*); @@ -119,16 +119,16 @@ lean_object* l_Lean_Syntax_getId(lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_Meta_revert___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_foldMAux___main___at___private_Lean_Elab_Tactic_Induction_16__processResult___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_getRecFromUsing(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_getRecFromUsing(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_foldMAux___main___at___private_Lean_Elab_Tactic_Induction_16__processResult___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_withIncRecDepth___rarg___closed__2; -lean_object* l_Lean_Elab_Tactic_getMainGoal(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_getMainGoal(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_getInductiveValFromMajor___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkRecFor___closed__1; lean_object* l___private_Lean_Elab_Tactic_Induction_16__processResult___closed__3; lean_object* l___private_Lean_Elab_Tactic_Induction_8__getAltName(lean_object*); lean_object* l_Nat_foldMAux___main___at___private_Lean_Elab_Tactic_Induction_16__processResult___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Tactic_Induction_3__elabMajor___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Tactic_Induction_3__elabMajor___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_isEmpty___rarg(lean_object*); lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_toExpr(lean_object*); @@ -143,7 +143,7 @@ lean_object* l___private_Lean_Elab_Tactic_Induction_17__checkCasesResultAux___ma lean_object* l___private_Lean_Elab_Tactic_Induction_6__generalizeVars___lambda__1___closed__1; lean_object* l___private_Lean_Elab_Tactic_Induction_4__generalizeMajor___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Tactic_Induction_11__checkAltCtorNames___spec__2___lambda__1(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Tactic_Induction_17__checkCasesResultAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Tactic_Induction_17__checkCasesResultAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_mkAuxName___closed__1; lean_object* l_Lean_Meta_mkRecursorInfo(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_6__generalizeVars___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -152,25 +152,26 @@ lean_object* l___private_Lean_Elab_Tactic_Induction_17__checkCasesResultAux___ma uint8_t l_Lean_Syntax_isMissing(lean_object*); lean_object* l_Lean_Meta_throwTacticEx___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_DepElim_Pattern_toMessageData___main___closed__4; -lean_object* l___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_evalGeneralizeAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_evalGeneralizeAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_contains___at___private_Lean_Class_1__checkOutParam___main___spec__1(lean_object*, lean_object*); lean_object* l_Nat_foldMAux___main___at___private_Lean_Elab_Tactic_Induction_16__processResult___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Syntax_inhabited; lean_object* l___private_Lean_Elab_Tactic_Induction_12__getRecFromUsingLoop___main___lambda__1___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Tactic_Induction_16__processResult(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Tactic_Induction_16__processResult(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_6__generalizeVars___lambda__1___closed__3; extern lean_object* l___private_Lean_Meta_Tactic_Induction_2__addRecParams___main___closed__1; lean_object* l___private_Lean_Elab_Tactic_Induction_5__getGeneralizingFVarIds___closed__1; lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_Tactic_Induction_14__getRecInfo___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_16__processResult___closed__6; +lean_object* l_Lean_Elab_Tactic_evalCases___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_foldr___main___at___private_Lean_Elab_Tactic_Induction_11__checkAltCtorNames___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalTactic___main___lambda__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_getRecFromUsing___closed__7; lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Tactic_Induction_11__checkAltCtorNames___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalTactic___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArgs(lean_object*); -lean_object* l___private_Lean_Elab_Tactic_Induction_12__getRecFromUsingLoop___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Tactic_Induction_12__getRecFromUsingLoop___main(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_save(lean_object*); lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalInduction(lean_object*, lean_object*, lean_object*); @@ -179,7 +180,7 @@ lean_object* l_Lean_Elab_Tactic_setGoals(lean_object*, lean_object*, lean_object lean_object* l___private_Lean_Elab_Tactic_Induction_16__processResult___closed__2; lean_object* l_Lean_Elab_Tactic_tagUntaggedGoals(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Name_isSuffixOf___main(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Tactic_Induction_3__elabMajor___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Tactic_Induction_3__elabMajor___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_foldMAux___main___at___private_Lean_Elab_Tactic_Induction_14__getRecInfo___spec__2___closed__3; lean_object* l_Lean_Elab_Tactic_getInductiveValFromMajor___lambda__1___closed__3; lean_object* l_List_map___main___at_Lean_Elab_Tactic_getRecFromUsing___spec__1(lean_object*); @@ -194,8 +195,9 @@ uint8_t l_Lean_Syntax_isNone(lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_Elab_Tactic_evalIntros___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Meta_inferType(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_liftTermElabM___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Tactic_Induction_5__getGeneralizingFVarIds___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_focusAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Tactic_Induction_5__getGeneralizingFVarIds___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_throwErrorAt___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_focusAux___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_getFVarIds(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_1__getAuxHypothesisName(lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___closed__3; @@ -205,7 +207,7 @@ lean_object* l_Lean_Meta_intro1(lean_object*, uint8_t, lean_object*, lean_object lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCases___closed__1; lean_object* l___private_Lean_Elab_Tactic_Induction_14__getRecInfo(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_toList___rarg(lean_object*); -lean_object* l_Lean_Elab_Tactic_ensureHasType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_ensureHasType(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_16__processResult___closed__9; lean_object* l___private_Lean_Elab_Tactic_Induction_16__processResult___closed__1; uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); @@ -214,7 +216,7 @@ extern lean_object* l_Lean_MessageData_arrayExpr_toMessageData___main___closed__ lean_object* l_Lean_Elab_Tactic_getRecFromUsing___closed__4; extern lean_object* l_Lean_mkHole___closed__2; lean_object* l___private_Lean_Elab_Tactic_Induction_3__elabMajor___lambda__1___closed__1; -lean_object* l_List_foldlM___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldlM___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__3(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at___private_Lean_Elab_Tactic_Induction_16__processResult___spec__3(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCases(lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_11__checkAltCtorNames___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -222,8 +224,8 @@ lean_object* l_Lean_Elab_Tactic_getRecFromUsing___closed__1; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); lean_object* l_List_foldlM___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__3___closed__3; lean_object* l___regBuiltin_Lean_Elab_Tactic_evalInduction___closed__1; -lean_object* l___private_Lean_Elab_Tactic_Induction_16__processResult___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_collectMVars(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Tactic_Induction_16__processResult___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_collectMVars(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_17__checkCasesResultAux___main___closed__6; lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Tactic_Induction_11__checkAltCtorNames___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_List_toArrayAux___main___rarg(lean_object*, lean_object*); @@ -234,15 +236,16 @@ lean_object* l_Lean_Name_toStringWithSep___main(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames___boxed(lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_17__checkCasesResultAux___main___closed__1; lean_object* l_Lean_Meta_getParamNames(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Tactic_Induction_17__checkCasesResultAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Tactic_Induction_17__checkCasesResultAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Tactic_Induction_11__checkAltCtorNames___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_InductionSubgoal_inhabited; lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Tactic_Induction_11__checkAltCtorNames___spec__2___closed__1; extern lean_object* l_Lean_registerTagAttribute___lambda__4___closed__4; lean_object* l_Lean_indentExpr(lean_object*); +lean_object* l_Lean_Elab_Term_trace(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_2__getMajor___boxed(lean_object*); -lean_object* l___private_Lean_Elab_Tactic_Induction_4__generalizeMajor(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Tactic_Induction_17__checkCasesResultAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Tactic_Induction_4__generalizeMajor(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Tactic_Induction_17__checkCasesResultAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_17__checkCasesResultAux___main___closed__8; lean_object* l_Lean_Elab_Tactic_elabTerm___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_8__getAltName___boxed(lean_object*); @@ -250,7 +253,7 @@ lean_object* l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__1___boxed(lea lean_object* l___private_Lean_Elab_Tactic_Induction_16__processResult___closed__8; extern lean_object* l_Lean_Parser_Tactic_induction___elambda__1___closed__1; lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Tactic_Induction_11__checkAltCtorNames___spec__2___closed__4; -lean_object* l_Lean_Elab_Tactic_throwError___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_throwError___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_4__generalizeMajor___lambda__1(lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_12__getRecFromUsingLoop___main___closed__1; @@ -342,32 +345,31 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Tactic_Induction_3__elabMajor___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_Tactic_Induction_3__elabMajor___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_6; -x_6 = lean_local_ctx_find_from_user_name(x_3, x_1); -if (lean_obj_tag(x_6) == 0) +lean_object* x_5; +x_5 = lean_local_ctx_find_from_user_name(x_2, x_1); +if (lean_obj_tag(x_5) == 0) { -lean_object* x_7; lean_object* x_8; -x_7 = l___private_Lean_Elab_Tactic_Induction_3__elabMajor___lambda__1___closed__3; -x_8 = l_Lean_Elab_Tactic_throwError___rarg(x_2, x_7, x_4, x_5); -return x_8; +lean_object* x_6; lean_object* x_7; +x_6 = l___private_Lean_Elab_Tactic_Induction_3__elabMajor___lambda__1___closed__3; +x_7 = l_Lean_Elab_Tactic_throwError___rarg(x_6, x_3, x_4); +return x_7; } else { -lean_object* x_9; lean_object* x_10; lean_object* x_11; -lean_dec(x_4); -lean_dec(x_2); -x_9 = lean_ctor_get(x_6, 0); -lean_inc(x_9); -lean_dec(x_6); -x_10 = l_Lean_LocalDecl_toExpr(x_9); -lean_dec(x_9); -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_10); -lean_ctor_set(x_11, 1, x_5); -return x_11; +lean_object* x_8; lean_object* x_9; lean_object* x_10; +lean_dec(x_3); +x_8 = lean_ctor_get(x_5, 0); +lean_inc(x_8); +lean_dec(x_5); +x_9 = l_Lean_LocalDecl_toExpr(x_8); +lean_dec(x_8); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_4); +return x_10; } } } @@ -379,129 +381,122 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_getLCtx___boxed), 2, 0); return x_1; } } -lean_object* l___private_Lean_Elab_Tactic_Induction_3__elabMajor___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* l___private_Lean_Elab_Tactic_Induction_3__elabMajor___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; -x_7 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; -x_8 = lean_local_ctx_get_unused_name(x_4, x_7); -x_9 = lean_box(0); -x_10 = 0; -lean_inc(x_5); -x_11 = l_Lean_Elab_Tactic_elabTerm(x_1, x_9, x_10, x_5, x_6); -if (lean_obj_tag(x_11) == 0) +lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_10; +x_6 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; +x_7 = lean_local_ctx_get_unused_name(x_3, x_6); +x_8 = lean_box(0); +x_9 = 0; +lean_inc(x_4); +x_10 = l_Lean_Elab_Tactic_elabTerm(x_1, x_8, x_9, x_4, x_5); +if (lean_obj_tag(x_10) == 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_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); lean_inc(x_12); -x_13 = lean_ctor_get(x_11, 1); -lean_inc(x_13); -lean_dec(x_11); -lean_inc(x_2); -lean_inc(x_8); -x_14 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Induction_3__elabMajor___lambda__1), 5, 2); -lean_closure_set(x_14, 0, x_8); -lean_closure_set(x_14, 1, x_2); -x_15 = l___private_Lean_Elab_Tactic_Induction_3__elabMajor___lambda__2___closed__1; -x_16 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_monadLog___spec__2___rarg), 4, 2); -lean_closure_set(x_16, 0, x_15); -lean_closure_set(x_16, 1, x_14); -lean_inc(x_5); -lean_inc(x_2); -x_17 = l_Lean_Elab_Tactic_evalGeneralizeAux(x_2, x_3, x_12, x_8, x_5, x_13); -if (lean_obj_tag(x_17) == 0) +lean_dec(x_10); +lean_inc(x_7); +x_13 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Induction_3__elabMajor___lambda__1), 4, 1); +lean_closure_set(x_13, 0, x_7); +x_14 = l___private_Lean_Elab_Tactic_Induction_3__elabMajor___lambda__2___closed__1; +x_15 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_monadLog___spec__2___rarg), 4, 2); +lean_closure_set(x_15, 0, x_14); +lean_closure_set(x_15, 1, x_13); +lean_inc(x_4); +x_16 = l_Lean_Elab_Tactic_evalGeneralizeAux(x_2, x_11, x_7, x_4, x_12); +if (lean_obj_tag(x_16) == 0) { -lean_object* x_18; lean_object* x_19; -x_18 = lean_ctor_get(x_17, 1); -lean_inc(x_18); -lean_dec(x_17); -x_19 = l_Lean_Elab_Tactic_withMainMVarContext___rarg(x_2, x_16, x_5, x_18); -return x_19; -} -else -{ -uint8_t x_20; +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); lean_dec(x_16); -lean_dec(x_5); -lean_dec(x_2); -x_20 = !lean_is_exclusive(x_17); -if (x_20 == 0) -{ -return x_17; +x_18 = l_Lean_Elab_Tactic_withMainMVarContext___rarg(x_15, x_4, x_17); +return x_18; } else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_17, 0); -x_22 = lean_ctor_get(x_17, 1); -lean_inc(x_22); +uint8_t x_19; +lean_dec(x_15); +lean_dec(x_4); +x_19 = !lean_is_exclusive(x_16); +if (x_19 == 0) +{ +return x_16; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_16, 0); +x_21 = lean_ctor_get(x_16, 1); lean_inc(x_21); -lean_dec(x_17); -x_23 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_23, 0, x_21); -lean_ctor_set(x_23, 1, x_22); -return x_23; +lean_inc(x_20); +lean_dec(x_16); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +return x_22; } } } else { -uint8_t x_24; -lean_dec(x_8); -lean_dec(x_5); -lean_dec(x_3); +uint8_t x_23; +lean_dec(x_7); +lean_dec(x_4); lean_dec(x_2); -x_24 = !lean_is_exclusive(x_11); -if (x_24 == 0) +x_23 = !lean_is_exclusive(x_10); +if (x_23 == 0) { -return x_11; -} -else -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_11, 0); -x_26 = lean_ctor_get(x_11, 1); -lean_inc(x_26); -lean_inc(x_25); -lean_dec(x_11); -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___private_Lean_Elab_Tactic_Induction_3__elabMajor(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_6; uint8_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_6 = lean_box(0); -x_7 = 0; -x_8 = lean_box(x_7); -x_9 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_elabTerm___boxed), 5, 3); -lean_closure_set(x_9, 0, x_3); -lean_closure_set(x_9, 1, x_6); -lean_closure_set(x_9, 2, x_8); -x_10 = l_Lean_Elab_Tactic_withMainMVarContext___rarg(x_1, x_9, x_4, x_5); return x_10; } else { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -lean_inc(x_1); -x_11 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Induction_3__elabMajor___lambda__2), 6, 3); -lean_closure_set(x_11, 0, x_3); -lean_closure_set(x_11, 1, x_1); -lean_closure_set(x_11, 2, x_2); -x_12 = l___private_Lean_Elab_Tactic_Induction_3__elabMajor___lambda__2___closed__1; -x_13 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_monadLog___spec__2___rarg), 4, 2); -lean_closure_set(x_13, 0, x_12); -lean_closure_set(x_13, 1, x_11); -x_14 = l_Lean_Elab_Tactic_withMainMVarContext___rarg(x_1, x_13, x_4, x_5); -return x_14; +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_10, 0); +x_25 = lean_ctor_get(x_10, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_10); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; +} +} +} +} +lean_object* l___private_Lean_Elab_Tactic_Induction_3__elabMajor(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_5; uint8_t x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_5 = lean_box(0); +x_6 = 0; +x_7 = lean_box(x_6); +x_8 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_elabTerm___boxed), 5, 3); +lean_closure_set(x_8, 0, x_2); +lean_closure_set(x_8, 1, x_5); +lean_closure_set(x_8, 2, x_7); +x_9 = l_Lean_Elab_Tactic_withMainMVarContext___rarg(x_8, x_3, x_4); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_10 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Induction_3__elabMajor___lambda__2), 5, 2); +lean_closure_set(x_10, 0, x_2); +lean_closure_set(x_10, 1, x_1); +x_11 = l___private_Lean_Elab_Tactic_Induction_3__elabMajor___lambda__2___closed__1; +x_12 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_monadLog___spec__2___rarg), 4, 2); +lean_closure_set(x_12, 0, x_11); +lean_closure_set(x_12, 1, x_10); +x_13 = l_Lean_Elab_Tactic_withMainMVarContext___rarg(x_12, x_3, x_4); +return x_13; } } } @@ -624,92 +619,88 @@ x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Induction_4__gener return x_1; } } -lean_object* l___private_Lean_Elab_Tactic_Induction_4__generalizeMajor(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Tactic_Induction_4__generalizeMajor(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; -if (lean_obj_tag(x_2) == 1) +lean_object* x_4; +if (lean_obj_tag(x_1) == 1) +{ +lean_object* x_23; +lean_dec(x_2); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_1); +lean_ctor_set(x_23, 1, x_3); +return x_23; +} +else { lean_object* x_24; -lean_dec(x_3); -lean_dec(x_1); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_2); -lean_ctor_set(x_24, 1, x_4); -return x_24; +x_24 = lean_box(0); +x_4 = x_24; +goto block_22; } -else +block_22: { -lean_object* x_25; -x_25 = lean_box(0); -x_5 = x_25; -goto block_23; -} -block_23: +lean_object* x_5; +lean_dec(x_4); +lean_inc(x_2); +x_5 = l_Lean_Elab_Tactic_getMainGoal(x_2, x_3); +if (lean_obj_tag(x_5) == 0) { -lean_object* x_6; -lean_dec(x_5); -lean_inc(x_3); -lean_inc(x_1); -x_6 = l_Lean_Elab_Tactic_getMainGoal(x_1, x_3, x_4); -if (lean_obj_tag(x_6) == 0) -{ -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* x_18; -x_7 = lean_ctor_get(x_6, 0); +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); lean_inc(x_7); -x_8 = lean_ctor_get(x_6, 1); +lean_dec(x_5); +x_8 = lean_ctor_get(x_6, 0); lean_inc(x_8); +x_9 = lean_ctor_get(x_6, 1); +lean_inc(x_9); lean_dec(x_6); -x_9 = lean_ctor_get(x_7, 0); -lean_inc(x_9); -x_10 = lean_ctor_get(x_7, 1); -lean_inc(x_10); -lean_dec(x_7); -x_11 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; -lean_inc(x_9); -x_12 = lean_alloc_closure((void*)(l_Lean_Meta_generalize___boxed), 5, 3); -lean_closure_set(x_12, 0, x_9); -lean_closure_set(x_12, 1, x_2); -lean_closure_set(x_12, 2, x_11); -x_13 = l___private_Lean_Elab_Tactic_Induction_4__generalizeMajor___closed__1; -x_14 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg), 4, 2); -lean_closure_set(x_14, 0, x_12); -lean_closure_set(x_14, 1, x_13); -x_15 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 4, 2); -lean_closure_set(x_15, 0, x_1); -lean_closure_set(x_15, 1, x_14); -x_16 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__1___boxed), 4, 1); -lean_closure_set(x_16, 0, x_10); -x_17 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_monadLog___spec__2___rarg), 4, 2); -lean_closure_set(x_17, 0, x_15); -lean_closure_set(x_17, 1, x_16); -x_18 = l_Lean_Elab_Tactic_withMVarContext___rarg(x_9, x_17, x_3, x_8); -lean_dec(x_9); -return x_18; +x_10 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; +lean_inc(x_8); +x_11 = lean_alloc_closure((void*)(l_Lean_Meta_generalize___boxed), 5, 3); +lean_closure_set(x_11, 0, x_8); +lean_closure_set(x_11, 1, x_1); +lean_closure_set(x_11, 2, x_10); +x_12 = l___private_Lean_Elab_Tactic_Induction_4__generalizeMajor___closed__1; +x_13 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg), 4, 2); +lean_closure_set(x_13, 0, x_11); +lean_closure_set(x_13, 1, x_12); +x_14 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 3, 1); +lean_closure_set(x_14, 0, x_13); +x_15 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__1___boxed), 4, 1); +lean_closure_set(x_15, 0, x_9); +x_16 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_monadLog___spec__2___rarg), 4, 2); +lean_closure_set(x_16, 0, x_14); +lean_closure_set(x_16, 1, x_15); +x_17 = l_Lean_Elab_Tactic_withMVarContext___rarg(x_8, x_16, x_2, x_7); +lean_dec(x_8); +return x_17; } else { -uint8_t x_19; -lean_dec(x_3); +uint8_t x_18; lean_dec(x_2); lean_dec(x_1); -x_19 = !lean_is_exclusive(x_6); -if (x_19 == 0) +x_18 = !lean_is_exclusive(x_5); +if (x_18 == 0) { -return x_6; +return x_5; } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_6, 0); -x_21 = lean_ctor_get(x_6, 1); -lean_inc(x_21); +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_5, 0); +x_20 = lean_ctor_get(x_5, 1); lean_inc(x_20); -lean_dec(x_6); -x_22 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_22, 0, x_20); -lean_ctor_set(x_22, 1, x_21); -return x_22; +lean_inc(x_19); +lean_dec(x_5); +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; } } } @@ -724,47 +715,46 @@ lean_dec(x_2); return x_4; } } -lean_object* l___private_Lean_Elab_Tactic_Induction_5__getGeneralizingFVarIds___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* l___private_Lean_Elab_Tactic_Induction_5__getGeneralizingFVarIds___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_7; lean_object* x_8; -x_7 = lean_alloc_closure((void*)(l_Lean_Elab_Term_trace___boxed), 5, 3); -lean_closure_set(x_7, 0, x_1); -lean_closure_set(x_7, 1, x_2); -lean_closure_set(x_7, 2, x_3); -lean_inc(x_5); -x_8 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_7, x_5, x_6); -if (lean_obj_tag(x_8) == 0) +lean_object* x_6; lean_object* x_7; +x_6 = lean_alloc_closure((void*)(l_Lean_Elab_Term_trace), 4, 2); +lean_closure_set(x_6, 0, x_1); +lean_closure_set(x_6, 1, x_2); +lean_inc(x_4); +x_7 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_6, x_4, x_5); +if (lean_obj_tag(x_7) == 0) { -lean_object* x_9; lean_object* x_10; -x_9 = lean_ctor_get(x_8, 1); -lean_inc(x_9); -lean_dec(x_8); -x_10 = l_Lean_Elab_Tactic_getFVarIds(x_4, x_5, x_9); -return x_10; +lean_object* x_8; lean_object* x_9; +x_8 = lean_ctor_get(x_7, 1); +lean_inc(x_8); +lean_dec(x_7); +x_9 = l_Lean_Elab_Tactic_getFVarIds(x_3, x_4, x_8); +return x_9; } else { -uint8_t x_11; -lean_dec(x_5); +uint8_t x_10; lean_dec(x_4); -x_11 = !lean_is_exclusive(x_8); -if (x_11 == 0) +lean_dec(x_3); +x_10 = !lean_is_exclusive(x_7); +if (x_10 == 0) { -return x_8; +return x_7; } else { -lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_12 = lean_ctor_get(x_8, 0); -x_13 = lean_ctor_get(x_8, 1); -lean_inc(x_13); +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_7, 0); +x_12 = lean_ctor_get(x_7, 1); lean_inc(x_12); -lean_dec(x_8); -x_14 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_14, 0, x_12); -lean_ctor_set(x_14, 1, x_13); -return x_14; +lean_inc(x_11); +lean_dec(x_7); +x_13 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_13, 0, x_11); +lean_ctor_set(x_13, 1, x_12); +return x_13; } } } @@ -788,36 +778,193 @@ x_5 = l_Lean_Syntax_getArg(x_1, x_4); x_6 = l_Lean_Syntax_isNone(x_5); if (x_6 == 0) { -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; +uint8_t x_7; +x_7 = !lean_is_exclusive(x_2); +if (x_7 == 0) +{ +lean_object* x_8; uint8_t x_9; +x_8 = lean_ctor_get(x_2, 0); +x_9 = !lean_is_exclusive(x_8); +if (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_8, 10); +lean_dec(x_10); +lean_ctor_set(x_8, 10, x_1); lean_inc(x_5); -x_7 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic___main___lambda__1___boxed), 2, 1); -lean_closure_set(x_7, 0, x_5); -x_8 = lean_unsigned_to_nat(1u); -x_9 = l_Lean_Syntax_getArg(x_5, x_8); +x_11 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic___main___lambda__1___boxed), 2, 1); +lean_closure_set(x_11, 0, x_5); +x_12 = lean_unsigned_to_nat(1u); +x_13 = l_Lean_Syntax_getArg(x_5, x_12); lean_dec(x_5); -x_10 = l_Lean_Syntax_getArgs(x_9); -lean_dec(x_9); -x_11 = l___private_Lean_Elab_Tactic_Induction_5__getGeneralizingFVarIds___closed__1; -lean_inc(x_1); -x_12 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Induction_5__getGeneralizingFVarIds___lambda__1), 6, 4); -lean_closure_set(x_12, 0, x_11); -lean_closure_set(x_12, 1, x_1); -lean_closure_set(x_12, 2, x_7); -lean_closure_set(x_12, 3, x_10); -x_13 = l_Lean_Elab_Tactic_withMainMVarContext___rarg(x_1, x_12, x_2, x_3); -return x_13; +x_14 = l_Lean_Syntax_getArgs(x_13); +lean_dec(x_13); +x_15 = l___private_Lean_Elab_Tactic_Induction_5__getGeneralizingFVarIds___closed__1; +x_16 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Induction_5__getGeneralizingFVarIds___lambda__1), 5, 3); +lean_closure_set(x_16, 0, x_15); +lean_closure_set(x_16, 1, x_11); +lean_closure_set(x_16, 2, x_14); +x_17 = l_Lean_Elab_Tactic_withMainMVarContext___rarg(x_16, x_2, x_3); +return x_17; } else { -lean_object* x_14; lean_object* x_15; +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_18 = lean_ctor_get(x_8, 0); +x_19 = lean_ctor_get(x_8, 1); +x_20 = lean_ctor_get(x_8, 2); +x_21 = lean_ctor_get(x_8, 3); +x_22 = lean_ctor_get(x_8, 4); +x_23 = lean_ctor_get(x_8, 5); +x_24 = lean_ctor_get(x_8, 6); +x_25 = lean_ctor_get(x_8, 7); +x_26 = lean_ctor_get(x_8, 8); +x_27 = lean_ctor_get(x_8, 9); +x_28 = lean_ctor_get_uint8(x_8, sizeof(void*)*11); +x_29 = lean_ctor_get_uint8(x_8, sizeof(void*)*11 + 1); +x_30 = lean_ctor_get_uint8(x_8, sizeof(void*)*11 + 2); +lean_inc(x_27); +lean_inc(x_26); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_8); +x_31 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_31, 0, x_18); +lean_ctor_set(x_31, 1, x_19); +lean_ctor_set(x_31, 2, x_20); +lean_ctor_set(x_31, 3, x_21); +lean_ctor_set(x_31, 4, x_22); +lean_ctor_set(x_31, 5, x_23); +lean_ctor_set(x_31, 6, x_24); +lean_ctor_set(x_31, 7, x_25); +lean_ctor_set(x_31, 8, x_26); +lean_ctor_set(x_31, 9, x_27); +lean_ctor_set(x_31, 10, x_1); +lean_ctor_set_uint8(x_31, sizeof(void*)*11, x_28); +lean_ctor_set_uint8(x_31, sizeof(void*)*11 + 1, x_29); +lean_ctor_set_uint8(x_31, sizeof(void*)*11 + 2, x_30); +lean_ctor_set(x_2, 0, x_31); +lean_inc(x_5); +x_32 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic___main___lambda__1___boxed), 2, 1); +lean_closure_set(x_32, 0, x_5); +x_33 = lean_unsigned_to_nat(1u); +x_34 = l_Lean_Syntax_getArg(x_5, x_33); +lean_dec(x_5); +x_35 = l_Lean_Syntax_getArgs(x_34); +lean_dec(x_34); +x_36 = l___private_Lean_Elab_Tactic_Induction_5__getGeneralizingFVarIds___closed__1; +x_37 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Induction_5__getGeneralizingFVarIds___lambda__1), 5, 3); +lean_closure_set(x_37, 0, x_36); +lean_closure_set(x_37, 1, x_32); +lean_closure_set(x_37, 2, x_35); +x_38 = l_Lean_Elab_Tactic_withMainMVarContext___rarg(x_37, x_2, x_3); +return x_38; +} +} +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; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; uint8_t x_52; uint8_t x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_39 = lean_ctor_get(x_2, 0); +x_40 = lean_ctor_get(x_2, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_2); +x_41 = lean_ctor_get(x_39, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_39, 1); +lean_inc(x_42); +x_43 = lean_ctor_get(x_39, 2); +lean_inc(x_43); +x_44 = lean_ctor_get(x_39, 3); +lean_inc(x_44); +x_45 = lean_ctor_get(x_39, 4); +lean_inc(x_45); +x_46 = lean_ctor_get(x_39, 5); +lean_inc(x_46); +x_47 = lean_ctor_get(x_39, 6); +lean_inc(x_47); +x_48 = lean_ctor_get(x_39, 7); +lean_inc(x_48); +x_49 = lean_ctor_get(x_39, 8); +lean_inc(x_49); +x_50 = lean_ctor_get(x_39, 9); +lean_inc(x_50); +x_51 = lean_ctor_get_uint8(x_39, sizeof(void*)*11); +x_52 = lean_ctor_get_uint8(x_39, sizeof(void*)*11 + 1); +x_53 = lean_ctor_get_uint8(x_39, sizeof(void*)*11 + 2); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + lean_ctor_release(x_39, 2); + lean_ctor_release(x_39, 3); + lean_ctor_release(x_39, 4); + lean_ctor_release(x_39, 5); + lean_ctor_release(x_39, 6); + lean_ctor_release(x_39, 7); + lean_ctor_release(x_39, 8); + lean_ctor_release(x_39, 9); + lean_ctor_release(x_39, 10); + x_54 = x_39; +} else { + lean_dec_ref(x_39); + x_54 = lean_box(0); +} +if (lean_is_scalar(x_54)) { + x_55 = lean_alloc_ctor(0, 11, 3); +} else { + x_55 = x_54; +} +lean_ctor_set(x_55, 0, x_41); +lean_ctor_set(x_55, 1, x_42); +lean_ctor_set(x_55, 2, x_43); +lean_ctor_set(x_55, 3, x_44); +lean_ctor_set(x_55, 4, x_45); +lean_ctor_set(x_55, 5, x_46); +lean_ctor_set(x_55, 6, x_47); +lean_ctor_set(x_55, 7, x_48); +lean_ctor_set(x_55, 8, x_49); +lean_ctor_set(x_55, 9, x_50); +lean_ctor_set(x_55, 10, x_1); +lean_ctor_set_uint8(x_55, sizeof(void*)*11, x_51); +lean_ctor_set_uint8(x_55, sizeof(void*)*11 + 1, x_52); +lean_ctor_set_uint8(x_55, sizeof(void*)*11 + 2, x_53); +x_56 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_40); +lean_inc(x_5); +x_57 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalTactic___main___lambda__1___boxed), 2, 1); +lean_closure_set(x_57, 0, x_5); +x_58 = lean_unsigned_to_nat(1u); +x_59 = l_Lean_Syntax_getArg(x_5, x_58); +lean_dec(x_5); +x_60 = l_Lean_Syntax_getArgs(x_59); +lean_dec(x_59); +x_61 = l___private_Lean_Elab_Tactic_Induction_5__getGeneralizingFVarIds___closed__1; +x_62 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Induction_5__getGeneralizingFVarIds___lambda__1), 5, 3); +lean_closure_set(x_62, 0, x_61); +lean_closure_set(x_62, 1, x_57); +lean_closure_set(x_62, 2, x_60); +x_63 = l_Lean_Elab_Tactic_withMainMVarContext___rarg(x_62, x_56, x_3); +return x_63; +} +} +else +{ +lean_object* x_64; lean_object* x_65; lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); -x_14 = l_Array_empty___closed__1; -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_3); -return x_15; +x_64 = l_Array_empty___closed__1; +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_3); +return x_65; } } } @@ -973,7 +1120,6 @@ _start: { lean_object* x_5; lean_inc(x_3); -lean_inc(x_1); x_5 = l___private_Lean_Elab_Tactic_Induction_5__getGeneralizingFVarIds(x_1, x_3, x_4); if (lean_obj_tag(x_5) == 0) { @@ -984,8 +1130,7 @@ x_7 = lean_ctor_get(x_5, 1); lean_inc(x_7); lean_dec(x_5); lean_inc(x_3); -lean_inc(x_1); -x_8 = l_Lean_Elab_Tactic_getMainGoal(x_1, x_3, x_7); +x_8 = l_Lean_Elab_Tactic_getMainGoal(x_3, x_7); if (lean_obj_tag(x_8) == 0) { lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_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; @@ -1013,9 +1158,8 @@ lean_closure_set(x_16, 1, x_11); x_17 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg), 4, 2); lean_closure_set(x_17, 0, x_15); lean_closure_set(x_17, 1, x_16); -x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 4, 2); -lean_closure_set(x_18, 0, x_1); -lean_closure_set(x_18, 1, x_17); +x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 3, 1); +lean_closure_set(x_18, 0, x_17); x_19 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaTacticAux___rarg___lambda__1___boxed), 4, 1); lean_closure_set(x_19, 0, x_12); x_20 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_monadLog___spec__2___rarg), 4, 2); @@ -1031,7 +1175,6 @@ uint8_t x_22; lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); x_22 = !lean_is_exclusive(x_8); if (x_22 == 0) { @@ -1057,7 +1200,6 @@ else uint8_t x_26; lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); x_26 = !lean_is_exclusive(x_5); if (x_26 == 0) { @@ -1288,7 +1430,7 @@ return x_9; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; x_10 = lean_array_fget(x_2, x_3); x_11 = lean_unsigned_to_nat(1u); x_12 = lean_nat_add(x_3, x_11); @@ -1301,144 +1443,156 @@ lean_closure_set(x_14, 0, x_13); lean_closure_set(x_14, 1, x_10); x_15 = l_Lean_Meta_mkAuxName___closed__1; x_16 = lean_name_eq(x_13, x_15); -x_17 = l_Array_forMAux___main___at___private_Lean_Elab_Tactic_Induction_11__checkAltCtorNames___spec__2___closed__2; +x_17 = lean_ctor_get(x_4, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_4, 1); +lean_inc(x_18); +x_19 = !lean_is_exclusive(x_17); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_20 = lean_ctor_get(x_17, 10); +lean_dec(x_20); lean_inc(x_10); -x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Term_trace___boxed), 5, 3); -lean_closure_set(x_18, 0, x_17); -lean_closure_set(x_18, 1, x_10); -lean_closure_set(x_18, 2, x_14); -lean_inc(x_4); -x_19 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_18, x_4, x_5); +lean_ctor_set(x_17, 10, x_10); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_17); +lean_ctor_set(x_21, 1, x_18); +x_22 = l_Array_forMAux___main___at___private_Lean_Elab_Tactic_Induction_11__checkAltCtorNames___spec__2___closed__2; +x_23 = lean_alloc_closure((void*)(l_Lean_Elab_Term_trace), 4, 2); +lean_closure_set(x_23, 0, x_22); +lean_closure_set(x_23, 1, x_14); +x_24 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_23, x_21, x_5); if (x_16 == 0) { -uint8_t x_20; uint8_t x_21; -x_20 = 0; -x_21 = l_List_foldr___main___at___private_Lean_Elab_Tactic_Induction_11__checkAltCtorNames___spec__1(x_13, x_20, x_1); -if (x_21 == 0) +uint8_t x_25; uint8_t x_26; +x_25 = 0; +x_26 = l_List_foldr___main___at___private_Lean_Elab_Tactic_Induction_11__checkAltCtorNames___spec__1(x_13, x_25, x_1); +if (x_26 == 0) { -if (lean_obj_tag(x_19) == 0) +if (lean_obj_tag(x_24) == 0) { -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; -x_22 = lean_ctor_get(x_19, 1); -lean_inc(x_22); -lean_dec(x_19); -x_23 = lean_unsigned_to_nat(0u); -x_24 = l_Lean_Syntax_getArg(x_10, x_23); +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_27 = lean_ctor_get(x_24, 1); +lean_inc(x_27); +lean_dec(x_24); +x_28 = lean_unsigned_to_nat(0u); +x_29 = l_Lean_Syntax_getArg(x_10, x_28); lean_dec(x_10); -x_25 = l_Lean_Name_toString___closed__1; -x_26 = l_Lean_Name_toStringWithSep___main(x_25, x_13); -x_27 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_27, 0, x_26); -x_28 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_28, 0, x_27); -x_29 = l_Array_forMAux___main___at___private_Lean_Elab_Tactic_Induction_11__checkAltCtorNames___spec__2___closed__5; -x_30 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_28); -x_31 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__8; -x_32 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_32, 0, x_30); -lean_ctor_set(x_32, 1, x_31); +x_30 = l_Lean_Name_toString___closed__1; +x_31 = l_Lean_Name_toStringWithSep___main(x_30, x_13); +x_32 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_32, 0, x_31); +x_33 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_33, 0, x_32); +x_34 = l_Array_forMAux___main___at___private_Lean_Elab_Tactic_Induction_11__checkAltCtorNames___spec__2___closed__5; +x_35 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_33); +x_36 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__8; +x_37 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); lean_inc(x_4); -x_33 = l_Lean_Elab_Tactic_throwError___rarg(x_24, x_32, x_4, x_22); -if (lean_obj_tag(x_33) == 0) +x_38 = l_Lean_Elab_Tactic_throwErrorAt___rarg(x_29, x_37, x_4, x_27); +if (lean_obj_tag(x_38) == 0) { -lean_object* x_34; -x_34 = lean_ctor_get(x_33, 1); -lean_inc(x_34); -lean_dec(x_33); +lean_object* x_39; +x_39 = lean_ctor_get(x_38, 1); +lean_inc(x_39); +lean_dec(x_38); x_3 = x_12; -x_5 = x_34; +x_5 = x_39; goto _start; } else { -uint8_t x_36; +uint8_t x_41; lean_dec(x_12); lean_dec(x_4); -x_36 = !lean_is_exclusive(x_33); -if (x_36 == 0) +x_41 = !lean_is_exclusive(x_38); +if (x_41 == 0) { -return x_33; +return x_38; } else { -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_33, 0); -x_38 = lean_ctor_get(x_33, 1); -lean_inc(x_38); -lean_inc(x_37); -lean_dec(x_33); -x_39 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_39, 0, x_37); -lean_ctor_set(x_39, 1, x_38); -return x_39; -} -} -} -else -{ -uint8_t x_40; -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_10); -lean_dec(x_4); -x_40 = !lean_is_exclusive(x_19); -if (x_40 == 0) -{ -return x_19; -} -else -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_19, 0); -x_42 = lean_ctor_get(x_19, 1); +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_38, 0); +x_43 = lean_ctor_get(x_38, 1); +lean_inc(x_43); lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_19); -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; +lean_dec(x_38); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_42); +lean_ctor_set(x_44, 1, x_43); +return x_44; } } } else { +uint8_t x_45; lean_dec(x_13); -lean_dec(x_10); -if (lean_obj_tag(x_19) == 0) -{ -lean_object* x_44; -x_44 = lean_ctor_get(x_19, 1); -lean_inc(x_44); -lean_dec(x_19); -x_3 = x_12; -x_5 = x_44; -goto _start; -} -else -{ -uint8_t x_46; lean_dec(x_12); +lean_dec(x_10); lean_dec(x_4); -x_46 = !lean_is_exclusive(x_19); -if (x_46 == 0) +x_45 = !lean_is_exclusive(x_24); +if (x_45 == 0) { -return x_19; +return x_24; } else { -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = lean_ctor_get(x_19, 0); -x_48 = lean_ctor_get(x_19, 1); -lean_inc(x_48); +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_24, 0); +x_47 = lean_ctor_get(x_24, 1); lean_inc(x_47); -lean_dec(x_19); -x_49 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -return x_49; +lean_inc(x_46); +lean_dec(x_24); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; +} +} +} +else +{ +lean_dec(x_13); +lean_dec(x_10); +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_49; +x_49 = lean_ctor_get(x_24, 1); +lean_inc(x_49); +lean_dec(x_24); +x_3 = x_12; +x_5 = x_49; +goto _start; +} +else +{ +uint8_t x_51; +lean_dec(x_12); +lean_dec(x_4); +x_51 = !lean_is_exclusive(x_24); +if (x_51 == 0) +{ +return x_24; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_24, 0); +x_53 = lean_ctor_get(x_24, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_24); +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; } } } @@ -1447,38 +1601,272 @@ else { lean_dec(x_13); lean_dec(x_10); -if (lean_obj_tag(x_19) == 0) +if (lean_obj_tag(x_24) == 0) { -lean_object* x_50; -x_50 = lean_ctor_get(x_19, 1); -lean_inc(x_50); -lean_dec(x_19); +lean_object* x_55; +x_55 = lean_ctor_get(x_24, 1); +lean_inc(x_55); +lean_dec(x_24); x_3 = x_12; -x_5 = x_50; +x_5 = x_55; goto _start; } else { -uint8_t x_52; +uint8_t x_57; lean_dec(x_12); lean_dec(x_4); -x_52 = !lean_is_exclusive(x_19); -if (x_52 == 0) +x_57 = !lean_is_exclusive(x_24); +if (x_57 == 0) { -return x_19; +return x_24; } else { -lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_19, 0); -x_54 = lean_ctor_get(x_19, 1); -lean_inc(x_54); -lean_inc(x_53); -lean_dec(x_19); -x_55 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_55, 0, x_53); -lean_ctor_set(x_55, 1, x_54); -return x_55; +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_24, 0); +x_59 = lean_ctor_get(x_24, 1); +lean_inc(x_59); +lean_inc(x_58); +lean_dec(x_24); +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 +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; uint8_t x_72; uint8_t x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_61 = lean_ctor_get(x_17, 0); +x_62 = lean_ctor_get(x_17, 1); +x_63 = lean_ctor_get(x_17, 2); +x_64 = lean_ctor_get(x_17, 3); +x_65 = lean_ctor_get(x_17, 4); +x_66 = lean_ctor_get(x_17, 5); +x_67 = lean_ctor_get(x_17, 6); +x_68 = lean_ctor_get(x_17, 7); +x_69 = lean_ctor_get(x_17, 8); +x_70 = lean_ctor_get(x_17, 9); +x_71 = lean_ctor_get_uint8(x_17, sizeof(void*)*11); +x_72 = lean_ctor_get_uint8(x_17, sizeof(void*)*11 + 1); +x_73 = lean_ctor_get_uint8(x_17, sizeof(void*)*11 + 2); +lean_inc(x_70); +lean_inc(x_69); +lean_inc(x_68); +lean_inc(x_67); +lean_inc(x_66); +lean_inc(x_65); +lean_inc(x_64); +lean_inc(x_63); +lean_inc(x_62); +lean_inc(x_61); +lean_dec(x_17); +lean_inc(x_10); +x_74 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_74, 0, x_61); +lean_ctor_set(x_74, 1, x_62); +lean_ctor_set(x_74, 2, x_63); +lean_ctor_set(x_74, 3, x_64); +lean_ctor_set(x_74, 4, x_65); +lean_ctor_set(x_74, 5, x_66); +lean_ctor_set(x_74, 6, x_67); +lean_ctor_set(x_74, 7, x_68); +lean_ctor_set(x_74, 8, x_69); +lean_ctor_set(x_74, 9, x_70); +lean_ctor_set(x_74, 10, x_10); +lean_ctor_set_uint8(x_74, sizeof(void*)*11, x_71); +lean_ctor_set_uint8(x_74, sizeof(void*)*11 + 1, x_72); +lean_ctor_set_uint8(x_74, sizeof(void*)*11 + 2, x_73); +x_75 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_75, 1, x_18); +x_76 = l_Array_forMAux___main___at___private_Lean_Elab_Tactic_Induction_11__checkAltCtorNames___spec__2___closed__2; +x_77 = lean_alloc_closure((void*)(l_Lean_Elab_Term_trace), 4, 2); +lean_closure_set(x_77, 0, x_76); +lean_closure_set(x_77, 1, x_14); +x_78 = l_Lean_Elab_Tactic_liftTermElabM___rarg(x_77, x_75, x_5); +if (x_16 == 0) +{ +uint8_t x_79; uint8_t x_80; +x_79 = 0; +x_80 = l_List_foldr___main___at___private_Lean_Elab_Tactic_Induction_11__checkAltCtorNames___spec__1(x_13, x_79, x_1); +if (x_80 == 0) +{ +if (lean_obj_tag(x_78) == 0) +{ +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; +x_81 = lean_ctor_get(x_78, 1); +lean_inc(x_81); +lean_dec(x_78); +x_82 = lean_unsigned_to_nat(0u); +x_83 = l_Lean_Syntax_getArg(x_10, x_82); +lean_dec(x_10); +x_84 = l_Lean_Name_toString___closed__1; +x_85 = l_Lean_Name_toStringWithSep___main(x_84, x_13); +x_86 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_86, 0, x_85); +x_87 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_87, 0, x_86); +x_88 = l_Array_forMAux___main___at___private_Lean_Elab_Tactic_Induction_11__checkAltCtorNames___spec__2___closed__5; +x_89 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_89, 0, x_88); +lean_ctor_set(x_89, 1, x_87); +x_90 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__8; +x_91 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_91, 0, x_89); +lean_ctor_set(x_91, 1, x_90); +lean_inc(x_4); +x_92 = l_Lean_Elab_Tactic_throwErrorAt___rarg(x_83, x_91, x_4, x_81); +if (lean_obj_tag(x_92) == 0) +{ +lean_object* x_93; +x_93 = lean_ctor_get(x_92, 1); +lean_inc(x_93); +lean_dec(x_92); +x_3 = x_12; +x_5 = x_93; +goto _start; +} +else +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; +lean_dec(x_12); +lean_dec(x_4); +x_95 = lean_ctor_get(x_92, 0); +lean_inc(x_95); +x_96 = lean_ctor_get(x_92, 1); +lean_inc(x_96); +if (lean_is_exclusive(x_92)) { + lean_ctor_release(x_92, 0); + lean_ctor_release(x_92, 1); + x_97 = x_92; +} else { + lean_dec_ref(x_92); + x_97 = lean_box(0); +} +if (lean_is_scalar(x_97)) { + x_98 = lean_alloc_ctor(1, 2, 0); +} else { + x_98 = x_97; +} +lean_ctor_set(x_98, 0, x_95); +lean_ctor_set(x_98, 1, x_96); +return x_98; +} +} +else +{ +lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_4); +x_99 = lean_ctor_get(x_78, 0); +lean_inc(x_99); +x_100 = lean_ctor_get(x_78, 1); +lean_inc(x_100); +if (lean_is_exclusive(x_78)) { + lean_ctor_release(x_78, 0); + lean_ctor_release(x_78, 1); + x_101 = x_78; +} else { + lean_dec_ref(x_78); + x_101 = lean_box(0); +} +if (lean_is_scalar(x_101)) { + x_102 = lean_alloc_ctor(1, 2, 0); +} else { + x_102 = x_101; +} +lean_ctor_set(x_102, 0, x_99); +lean_ctor_set(x_102, 1, x_100); +return x_102; +} +} +else +{ +lean_dec(x_13); +lean_dec(x_10); +if (lean_obj_tag(x_78) == 0) +{ +lean_object* x_103; +x_103 = lean_ctor_get(x_78, 1); +lean_inc(x_103); +lean_dec(x_78); +x_3 = x_12; +x_5 = x_103; +goto _start; +} +else +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +lean_dec(x_12); +lean_dec(x_4); +x_105 = lean_ctor_get(x_78, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_78, 1); +lean_inc(x_106); +if (lean_is_exclusive(x_78)) { + lean_ctor_release(x_78, 0); + lean_ctor_release(x_78, 1); + x_107 = x_78; +} else { + lean_dec_ref(x_78); + 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_dec(x_13); +lean_dec(x_10); +if (lean_obj_tag(x_78) == 0) +{ +lean_object* x_109; +x_109 = lean_ctor_get(x_78, 1); +lean_inc(x_109); +lean_dec(x_78); +x_3 = x_12; +x_5 = x_109; +goto _start; +} +else +{ +lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; +lean_dec(x_12); +lean_dec(x_4); +x_111 = lean_ctor_get(x_78, 0); +lean_inc(x_111); +x_112 = lean_ctor_get(x_78, 1); +lean_inc(x_112); +if (lean_is_exclusive(x_78)) { + lean_ctor_release(x_78, 0); + lean_ctor_release(x_78, 1); + x_113 = x_78; +} else { + lean_dec_ref(x_78); + x_113 = lean_box(0); +} +if (lean_is_scalar(x_113)) { + x_114 = lean_alloc_ctor(1, 2, 0); +} else { + x_114 = x_113; +} +lean_ctor_set(x_114, 0, x_111); +lean_ctor_set(x_114, 1, x_112); +return x_114; } } } @@ -1761,62 +2149,59 @@ return x_51; } } } -lean_object* l_Lean_Elab_Tactic_getInductiveValFromMajor(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Tactic_getInductiveValFromMajor(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; -lean_inc(x_3); -lean_inc(x_1); -x_5 = l_Lean_Elab_Tactic_getMainGoal(x_1, x_3, x_4); -if (lean_obj_tag(x_5) == 0) +lean_object* x_4; +lean_inc(x_2); +x_4 = l_Lean_Elab_Tactic_getMainGoal(x_2, x_3); +if (lean_obj_tag(x_4) == 0) { -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_6 = lean_ctor_get(x_5, 0); +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; +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_4, 1); lean_inc(x_6); -x_7 = lean_ctor_get(x_5, 1); +lean_dec(x_4); +x_7 = lean_ctor_get(x_5, 0); lean_inc(x_7); lean_dec(x_5); -x_8 = lean_ctor_get(x_6, 0); -lean_inc(x_8); -lean_dec(x_6); -x_9 = lean_alloc_closure((void*)(l_Lean_Meta_inferType), 3, 1); -lean_closure_set(x_9, 0, x_2); -lean_inc(x_8); -x_10 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_getInductiveValFromMajor___lambda__1), 4, 1); +x_8 = lean_alloc_closure((void*)(l_Lean_Meta_inferType), 3, 1); +lean_closure_set(x_8, 0, x_1); +lean_inc(x_7); +x_9 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_getInductiveValFromMajor___lambda__1), 4, 1); +lean_closure_set(x_9, 0, x_7); +x_10 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg), 4, 2); lean_closure_set(x_10, 0, x_8); -x_11 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg), 4, 2); -lean_closure_set(x_11, 0, x_9); -lean_closure_set(x_11, 1, x_10); -x_12 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 4, 2); -lean_closure_set(x_12, 0, x_1); -lean_closure_set(x_12, 1, x_11); -x_13 = l_Lean_Elab_Tactic_withMVarContext___rarg(x_8, x_12, x_3, x_7); -lean_dec(x_8); -return x_13; +lean_closure_set(x_10, 1, x_9); +x_11 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 3, 1); +lean_closure_set(x_11, 0, x_10); +x_12 = l_Lean_Elab_Tactic_withMVarContext___rarg(x_7, x_11, x_2, x_6); +lean_dec(x_7); +return x_12; } else { -uint8_t x_14; -lean_dec(x_3); +uint8_t x_13; lean_dec(x_2); lean_dec(x_1); -x_14 = !lean_is_exclusive(x_5); -if (x_14 == 0) +x_13 = !lean_is_exclusive(x_4); +if (x_13 == 0) { -return x_5; +return x_4; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_5, 0); -x_16 = lean_ctor_get(x_5, 1); -lean_inc(x_16); +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_4, 0); +x_15 = lean_ctor_get(x_4, 1); lean_inc(x_15); -lean_dec(x_5); -x_17 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_17, 0, x_15); -lean_ctor_set(x_17, 1, x_16); -return x_17; +lean_inc(x_14); +lean_dec(x_4); +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; } } } @@ -1841,152 +2226,148 @@ x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Induction_12__getR return x_1; } } -lean_object* l___private_Lean_Elab_Tactic_Induction_12__getRecFromUsingLoop___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_Tactic_Induction_12__getRecFromUsingLoop___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_6; -lean_inc(x_4); -lean_inc(x_1); -x_6 = l_Lean_Elab_Tactic_whnfCore(x_1, x_3, x_4, x_5); -if (lean_obj_tag(x_6) == 0) +lean_object* x_5; +lean_inc(x_3); +x_5 = l_Lean_Elab_Tactic_whnfCore(x_2, x_3, x_4); +if (lean_obj_tag(x_5) == 0) { -lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_7 = lean_ctor_get(x_6, 0); +lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); lean_inc(x_7); -x_8 = lean_ctor_get(x_6, 1); -lean_inc(x_8); -lean_dec(x_6); -x_9 = l_Lean_Expr_getAppFn___main(x_7); -switch (lean_obj_tag(x_9)) { +lean_dec(x_5); +x_8 = l_Lean_Expr_getAppFn___main(x_6); +switch (lean_obj_tag(x_8)) { case 0: { +lean_object* x_9; +lean_dec(x_8); +lean_inc(x_3); +x_9 = l_Lean_Elab_Tactic_unfoldDefinition_x3f(x_6, x_3, x_7); +if (lean_obj_tag(x_9) == 0) +{ lean_object* x_10; -lean_dec(x_9); -lean_inc(x_4); -lean_inc(x_1); -x_10 = l_Lean_Elab_Tactic_unfoldDefinition_x3f(x_1, x_7, x_4, x_8); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); if (lean_obj_tag(x_10) == 0) { -lean_object* x_11; -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -if (lean_obj_tag(x_11) == 0) -{ -uint8_t x_12; -lean_dec(x_4); -lean_dec(x_2); +uint8_t x_11; +lean_dec(x_3); lean_dec(x_1); -x_12 = !lean_is_exclusive(x_10); -if (x_12 == 0) +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 0) { -lean_object* x_13; lean_object* x_14; -x_13 = lean_ctor_get(x_10, 0); -lean_dec(x_13); -x_14 = lean_box(0); -lean_ctor_set(x_10, 0, x_14); -return x_10; +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_9, 0); +lean_dec(x_12); +x_13 = lean_box(0); +lean_ctor_set(x_9, 0, x_13); +return x_9; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_10, 1); -lean_inc(x_15); -lean_dec(x_10); -x_16 = lean_box(0); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_15); -return x_17; +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_9, 1); +lean_inc(x_14); +lean_dec(x_9); +x_15 = lean_box(0); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_14); +return x_16; } } else { -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; uint8_t x_34; uint8_t x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; lean_object* x_40; -x_18 = lean_ctor_get(x_4, 0); +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; uint8_t x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; +x_17 = lean_ctor_get(x_3, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_17, 0); lean_inc(x_18); -x_19 = lean_ctor_get(x_18, 0); +x_19 = lean_ctor_get(x_9, 1); lean_inc(x_19); -x_20 = lean_ctor_get(x_10, 1); +lean_dec(x_9); +x_20 = lean_ctor_get(x_10, 0); lean_inc(x_20); lean_dec(x_10); -x_21 = lean_ctor_get(x_11, 0); +x_21 = lean_ctor_get(x_3, 1); lean_inc(x_21); -lean_dec(x_11); -x_22 = lean_ctor_get(x_4, 1); +x_22 = lean_ctor_get(x_17, 1); lean_inc(x_22); -x_23 = lean_ctor_get(x_4, 2); +x_23 = lean_ctor_get(x_17, 2); lean_inc(x_23); -x_24 = lean_ctor_get(x_18, 1); +x_24 = lean_ctor_get(x_17, 3); lean_inc(x_24); -x_25 = lean_ctor_get(x_18, 2); +x_25 = lean_ctor_get(x_17, 4); lean_inc(x_25); -x_26 = lean_ctor_get(x_18, 3); +x_26 = lean_ctor_get(x_17, 5); lean_inc(x_26); -x_27 = lean_ctor_get(x_18, 4); +x_27 = lean_ctor_get(x_17, 6); lean_inc(x_27); -x_28 = lean_ctor_get(x_18, 5); +x_28 = lean_ctor_get(x_17, 7); lean_inc(x_28); -x_29 = lean_ctor_get(x_18, 6); +x_29 = lean_ctor_get(x_17, 8); lean_inc(x_29); -x_30 = lean_ctor_get(x_18, 7); +x_30 = lean_ctor_get(x_17, 9); lean_inc(x_30); -x_31 = lean_ctor_get(x_18, 8); -lean_inc(x_31); -x_32 = lean_ctor_get(x_18, 9); -lean_inc(x_32); -x_33 = lean_ctor_get_uint8(x_18, sizeof(void*)*10); -x_34 = lean_ctor_get_uint8(x_18, sizeof(void*)*10 + 1); -x_35 = lean_ctor_get_uint8(x_18, sizeof(void*)*10 + 2); -if (lean_is_exclusive(x_18)) { - lean_ctor_release(x_18, 0); - lean_ctor_release(x_18, 1); - lean_ctor_release(x_18, 2); - lean_ctor_release(x_18, 3); - lean_ctor_release(x_18, 4); - lean_ctor_release(x_18, 5); - lean_ctor_release(x_18, 6); - lean_ctor_release(x_18, 7); - lean_ctor_release(x_18, 8); - lean_ctor_release(x_18, 9); - x_36 = x_18; +x_31 = lean_ctor_get_uint8(x_17, sizeof(void*)*11); +x_32 = lean_ctor_get_uint8(x_17, sizeof(void*)*11 + 1); +x_33 = lean_ctor_get_uint8(x_17, sizeof(void*)*11 + 2); +x_34 = lean_ctor_get(x_17, 10); +lean_inc(x_34); +if (lean_is_exclusive(x_17)) { + lean_ctor_release(x_17, 0); + lean_ctor_release(x_17, 1); + lean_ctor_release(x_17, 2); + lean_ctor_release(x_17, 3); + lean_ctor_release(x_17, 4); + lean_ctor_release(x_17, 5); + lean_ctor_release(x_17, 6); + lean_ctor_release(x_17, 7); + lean_ctor_release(x_17, 8); + lean_ctor_release(x_17, 9); + lean_ctor_release(x_17, 10); + x_35 = x_17; } else { - lean_dec_ref(x_18); - x_36 = lean_box(0); + lean_dec_ref(x_17); + x_35 = lean_box(0); } -x_37 = lean_ctor_get(x_19, 3); +x_36 = lean_ctor_get(x_18, 3); +lean_inc(x_36); +x_37 = lean_ctor_get(x_18, 4); lean_inc(x_37); -x_38 = lean_ctor_get(x_19, 4); -lean_inc(x_38); -x_39 = lean_nat_dec_eq(x_37, x_38); -if (x_39 == 0) +x_38 = lean_nat_dec_eq(x_36, x_37); +if (x_38 == 0) { -lean_dec(x_4); -x_40 = x_20; -goto block_58; +lean_dec(x_3); +x_39 = x_19; +goto block_57; } else { -lean_object* x_59; lean_object* x_60; -x_59 = l_Lean_Meta_withIncRecDepth___rarg___closed__2; -lean_inc(x_1); -x_60 = l_Lean_Elab_Tactic_throwError___rarg(x_1, x_59, x_4, x_20); -if (lean_obj_tag(x_60) == 0) +lean_object* x_58; lean_object* x_59; +x_58 = l_Lean_Meta_withIncRecDepth___rarg___closed__2; +x_59 = l_Lean_Elab_Tactic_throwError___rarg(x_58, x_3, x_19); +if (lean_obj_tag(x_59) == 0) { -lean_object* x_61; -x_61 = lean_ctor_get(x_60, 1); -lean_inc(x_61); -lean_dec(x_60); -x_40 = x_61; -goto block_58; +lean_object* x_60; +x_60 = lean_ctor_get(x_59, 1); +lean_inc(x_60); +lean_dec(x_59); +x_39 = x_60; +goto block_57; } else { -uint8_t x_62; -lean_dec(x_38); +uint8_t x_61; lean_dec(x_37); lean_dec(x_36); -lean_dec(x_32); -lean_dec(x_31); +lean_dec(x_35); +lean_dec(x_34); lean_dec(x_30); lean_dec(x_29); lean_dec(x_28); @@ -1997,115 +2378,115 @@ lean_dec(x_24); lean_dec(x_23); lean_dec(x_22); lean_dec(x_21); -lean_dec(x_19); -lean_dec(x_2); +lean_dec(x_20); +lean_dec(x_18); lean_dec(x_1); -x_62 = !lean_is_exclusive(x_60); -if (x_62 == 0) +x_61 = !lean_is_exclusive(x_59); +if (x_61 == 0) { -return x_60; +return x_59; } else { -lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_63 = lean_ctor_get(x_60, 0); -x_64 = lean_ctor_get(x_60, 1); -lean_inc(x_64); +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_59, 0); +x_63 = lean_ctor_get(x_59, 1); lean_inc(x_63); -lean_dec(x_60); -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_inc(x_62); +lean_dec(x_59); +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; } } } -block_58: +block_57: { -uint8_t x_41; -x_41 = !lean_is_exclusive(x_19); -if (x_41 == 0) +uint8_t x_40; +x_40 = !lean_is_exclusive(x_18); +if (x_40 == 0) { -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_42 = lean_ctor_get(x_19, 4); +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_41 = lean_ctor_get(x_18, 4); +lean_dec(x_41); +x_42 = lean_ctor_get(x_18, 3); lean_dec(x_42); -x_43 = lean_ctor_get(x_19, 3); -lean_dec(x_43); -x_44 = lean_unsigned_to_nat(1u); -x_45 = lean_nat_add(x_37, x_44); -lean_dec(x_37); -lean_ctor_set(x_19, 3, x_45); -if (lean_is_scalar(x_36)) { - x_46 = lean_alloc_ctor(0, 10, 3); +x_43 = lean_unsigned_to_nat(1u); +x_44 = lean_nat_add(x_36, x_43); +lean_dec(x_36); +lean_ctor_set(x_18, 3, x_44); +if (lean_is_scalar(x_35)) { + x_45 = lean_alloc_ctor(0, 11, 3); } else { - x_46 = x_36; + x_45 = x_35; } -lean_ctor_set(x_46, 0, x_19); -lean_ctor_set(x_46, 1, x_24); -lean_ctor_set(x_46, 2, x_25); -lean_ctor_set(x_46, 3, x_26); -lean_ctor_set(x_46, 4, x_27); -lean_ctor_set(x_46, 5, x_28); -lean_ctor_set(x_46, 6, x_29); -lean_ctor_set(x_46, 7, x_30); -lean_ctor_set(x_46, 8, x_31); -lean_ctor_set(x_46, 9, x_32); -lean_ctor_set_uint8(x_46, sizeof(void*)*10, x_33); -lean_ctor_set_uint8(x_46, sizeof(void*)*10 + 1, x_34); -lean_ctor_set_uint8(x_46, sizeof(void*)*10 + 2, x_35); -x_47 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_22); -lean_ctor_set(x_47, 2, x_23); -x_3 = x_21; -x_4 = x_47; -x_5 = x_40; +lean_ctor_set(x_45, 0, x_18); +lean_ctor_set(x_45, 1, x_22); +lean_ctor_set(x_45, 2, x_23); +lean_ctor_set(x_45, 3, x_24); +lean_ctor_set(x_45, 4, x_25); +lean_ctor_set(x_45, 5, x_26); +lean_ctor_set(x_45, 6, x_27); +lean_ctor_set(x_45, 7, x_28); +lean_ctor_set(x_45, 8, x_29); +lean_ctor_set(x_45, 9, x_30); +lean_ctor_set(x_45, 10, x_34); +lean_ctor_set_uint8(x_45, sizeof(void*)*11, x_31); +lean_ctor_set_uint8(x_45, sizeof(void*)*11 + 1, x_32); +lean_ctor_set_uint8(x_45, sizeof(void*)*11 + 2, x_33); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_21); +x_2 = x_20; +x_3 = x_46; +x_4 = x_39; goto _start; } else { -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_49 = lean_ctor_get(x_19, 0); -x_50 = lean_ctor_get(x_19, 1); -x_51 = lean_ctor_get(x_19, 2); -lean_inc(x_51); +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_48 = lean_ctor_get(x_18, 0); +x_49 = lean_ctor_get(x_18, 1); +x_50 = lean_ctor_get(x_18, 2); lean_inc(x_50); lean_inc(x_49); -lean_dec(x_19); -x_52 = lean_unsigned_to_nat(1u); -x_53 = lean_nat_add(x_37, x_52); -lean_dec(x_37); -x_54 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_54, 0, x_49); -lean_ctor_set(x_54, 1, x_50); -lean_ctor_set(x_54, 2, x_51); -lean_ctor_set(x_54, 3, x_53); -lean_ctor_set(x_54, 4, x_38); -if (lean_is_scalar(x_36)) { - x_55 = lean_alloc_ctor(0, 10, 3); +lean_inc(x_48); +lean_dec(x_18); +x_51 = lean_unsigned_to_nat(1u); +x_52 = lean_nat_add(x_36, x_51); +lean_dec(x_36); +x_53 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_53, 0, x_48); +lean_ctor_set(x_53, 1, x_49); +lean_ctor_set(x_53, 2, x_50); +lean_ctor_set(x_53, 3, x_52); +lean_ctor_set(x_53, 4, x_37); +if (lean_is_scalar(x_35)) { + x_54 = lean_alloc_ctor(0, 11, 3); } else { - x_55 = x_36; + x_54 = x_35; } +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_22); +lean_ctor_set(x_54, 2, x_23); +lean_ctor_set(x_54, 3, x_24); +lean_ctor_set(x_54, 4, x_25); +lean_ctor_set(x_54, 5, x_26); +lean_ctor_set(x_54, 6, x_27); +lean_ctor_set(x_54, 7, x_28); +lean_ctor_set(x_54, 8, x_29); +lean_ctor_set(x_54, 9, x_30); +lean_ctor_set(x_54, 10, x_34); +lean_ctor_set_uint8(x_54, sizeof(void*)*11, x_31); +lean_ctor_set_uint8(x_54, sizeof(void*)*11 + 1, x_32); +lean_ctor_set_uint8(x_54, sizeof(void*)*11 + 2, x_33); +x_55 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_55, 0, x_54); -lean_ctor_set(x_55, 1, x_24); -lean_ctor_set(x_55, 2, x_25); -lean_ctor_set(x_55, 3, x_26); -lean_ctor_set(x_55, 4, x_27); -lean_ctor_set(x_55, 5, x_28); -lean_ctor_set(x_55, 6, x_29); -lean_ctor_set(x_55, 7, x_30); -lean_ctor_set(x_55, 8, x_31); -lean_ctor_set(x_55, 9, x_32); -lean_ctor_set_uint8(x_55, sizeof(void*)*10, x_33); -lean_ctor_set_uint8(x_55, sizeof(void*)*10 + 1, x_34); -lean_ctor_set_uint8(x_55, sizeof(void*)*10 + 2, x_35); -x_56 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_56, 0, x_55); -lean_ctor_set(x_56, 1, x_22); -lean_ctor_set(x_56, 2, x_23); -x_3 = x_21; -x_4 = x_56; -x_5 = x_40; +lean_ctor_set(x_55, 1, x_21); +x_2 = x_20; +x_3 = x_55; +x_4 = x_39; goto _start; } } @@ -2113,159 +2494,155 @@ goto _start; } else { -uint8_t x_66; -lean_dec(x_4); -lean_dec(x_2); +uint8_t x_65; +lean_dec(x_3); lean_dec(x_1); -x_66 = !lean_is_exclusive(x_10); -if (x_66 == 0) +x_65 = !lean_is_exclusive(x_9); +if (x_65 == 0) { -return x_10; +return x_9; } else { -lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_67 = lean_ctor_get(x_10, 0); -x_68 = lean_ctor_get(x_10, 1); -lean_inc(x_68); +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_9, 0); +x_67 = lean_ctor_get(x_9, 1); lean_inc(x_67); -lean_dec(x_10); -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; +lean_inc(x_66); +lean_dec(x_9); +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; } } } case 1: { +lean_object* x_69; +lean_dec(x_8); +lean_inc(x_3); +x_69 = l_Lean_Elab_Tactic_unfoldDefinition_x3f(x_6, x_3, x_7); +if (lean_obj_tag(x_69) == 0) +{ lean_object* x_70; -lean_dec(x_9); -lean_inc(x_4); -lean_inc(x_1); -x_70 = l_Lean_Elab_Tactic_unfoldDefinition_x3f(x_1, x_7, x_4, x_8); +x_70 = lean_ctor_get(x_69, 0); +lean_inc(x_70); if (lean_obj_tag(x_70) == 0) { -lean_object* x_71; -x_71 = lean_ctor_get(x_70, 0); -lean_inc(x_71); -if (lean_obj_tag(x_71) == 0) -{ -uint8_t x_72; -lean_dec(x_4); -lean_dec(x_2); +uint8_t x_71; +lean_dec(x_3); lean_dec(x_1); -x_72 = !lean_is_exclusive(x_70); -if (x_72 == 0) +x_71 = !lean_is_exclusive(x_69); +if (x_71 == 0) { -lean_object* x_73; lean_object* x_74; -x_73 = lean_ctor_get(x_70, 0); -lean_dec(x_73); -x_74 = lean_box(0); -lean_ctor_set(x_70, 0, x_74); -return x_70; +lean_object* x_72; lean_object* x_73; +x_72 = lean_ctor_get(x_69, 0); +lean_dec(x_72); +x_73 = lean_box(0); +lean_ctor_set(x_69, 0, x_73); +return x_69; } else { -lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_75 = lean_ctor_get(x_70, 1); -lean_inc(x_75); -lean_dec(x_70); -x_76 = lean_box(0); -x_77 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_77, 0, x_76); -lean_ctor_set(x_77, 1, x_75); -return x_77; +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_69, 1); +lean_inc(x_74); +lean_dec(x_69); +x_75 = lean_box(0); +x_76 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_76, 0, x_75); +lean_ctor_set(x_76, 1, x_74); +return x_76; } } else { -lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; uint8_t x_93; uint8_t x_94; uint8_t x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; uint8_t x_99; lean_object* x_100; -x_78 = lean_ctor_get(x_4, 0); +lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; uint8_t x_91; uint8_t x_92; uint8_t x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; uint8_t x_98; lean_object* x_99; +x_77 = lean_ctor_get(x_3, 0); +lean_inc(x_77); +x_78 = lean_ctor_get(x_77, 0); lean_inc(x_78); -x_79 = lean_ctor_get(x_78, 0); +x_79 = lean_ctor_get(x_69, 1); lean_inc(x_79); -x_80 = lean_ctor_get(x_70, 1); +lean_dec(x_69); +x_80 = lean_ctor_get(x_70, 0); lean_inc(x_80); lean_dec(x_70); -x_81 = lean_ctor_get(x_71, 0); +x_81 = lean_ctor_get(x_3, 1); lean_inc(x_81); -lean_dec(x_71); -x_82 = lean_ctor_get(x_4, 1); +x_82 = lean_ctor_get(x_77, 1); lean_inc(x_82); -x_83 = lean_ctor_get(x_4, 2); +x_83 = lean_ctor_get(x_77, 2); lean_inc(x_83); -x_84 = lean_ctor_get(x_78, 1); +x_84 = lean_ctor_get(x_77, 3); lean_inc(x_84); -x_85 = lean_ctor_get(x_78, 2); +x_85 = lean_ctor_get(x_77, 4); lean_inc(x_85); -x_86 = lean_ctor_get(x_78, 3); +x_86 = lean_ctor_get(x_77, 5); lean_inc(x_86); -x_87 = lean_ctor_get(x_78, 4); +x_87 = lean_ctor_get(x_77, 6); lean_inc(x_87); -x_88 = lean_ctor_get(x_78, 5); +x_88 = lean_ctor_get(x_77, 7); lean_inc(x_88); -x_89 = lean_ctor_get(x_78, 6); +x_89 = lean_ctor_get(x_77, 8); lean_inc(x_89); -x_90 = lean_ctor_get(x_78, 7); +x_90 = lean_ctor_get(x_77, 9); lean_inc(x_90); -x_91 = lean_ctor_get(x_78, 8); -lean_inc(x_91); -x_92 = lean_ctor_get(x_78, 9); -lean_inc(x_92); -x_93 = lean_ctor_get_uint8(x_78, sizeof(void*)*10); -x_94 = lean_ctor_get_uint8(x_78, sizeof(void*)*10 + 1); -x_95 = lean_ctor_get_uint8(x_78, sizeof(void*)*10 + 2); -if (lean_is_exclusive(x_78)) { - lean_ctor_release(x_78, 0); - lean_ctor_release(x_78, 1); - lean_ctor_release(x_78, 2); - lean_ctor_release(x_78, 3); - lean_ctor_release(x_78, 4); - lean_ctor_release(x_78, 5); - lean_ctor_release(x_78, 6); - lean_ctor_release(x_78, 7); - lean_ctor_release(x_78, 8); - lean_ctor_release(x_78, 9); - x_96 = x_78; +x_91 = lean_ctor_get_uint8(x_77, sizeof(void*)*11); +x_92 = lean_ctor_get_uint8(x_77, sizeof(void*)*11 + 1); +x_93 = lean_ctor_get_uint8(x_77, sizeof(void*)*11 + 2); +x_94 = lean_ctor_get(x_77, 10); +lean_inc(x_94); +if (lean_is_exclusive(x_77)) { + lean_ctor_release(x_77, 0); + lean_ctor_release(x_77, 1); + lean_ctor_release(x_77, 2); + lean_ctor_release(x_77, 3); + lean_ctor_release(x_77, 4); + lean_ctor_release(x_77, 5); + lean_ctor_release(x_77, 6); + lean_ctor_release(x_77, 7); + lean_ctor_release(x_77, 8); + lean_ctor_release(x_77, 9); + lean_ctor_release(x_77, 10); + x_95 = x_77; } else { - lean_dec_ref(x_78); - x_96 = lean_box(0); + lean_dec_ref(x_77); + x_95 = lean_box(0); } -x_97 = lean_ctor_get(x_79, 3); +x_96 = lean_ctor_get(x_78, 3); +lean_inc(x_96); +x_97 = lean_ctor_get(x_78, 4); lean_inc(x_97); -x_98 = lean_ctor_get(x_79, 4); -lean_inc(x_98); -x_99 = lean_nat_dec_eq(x_97, x_98); -if (x_99 == 0) +x_98 = lean_nat_dec_eq(x_96, x_97); +if (x_98 == 0) { -lean_dec(x_4); -x_100 = x_80; -goto block_118; +lean_dec(x_3); +x_99 = x_79; +goto block_117; } else { -lean_object* x_119; lean_object* x_120; -x_119 = l_Lean_Meta_withIncRecDepth___rarg___closed__2; -lean_inc(x_1); -x_120 = l_Lean_Elab_Tactic_throwError___rarg(x_1, x_119, x_4, x_80); -if (lean_obj_tag(x_120) == 0) +lean_object* x_118; lean_object* x_119; +x_118 = l_Lean_Meta_withIncRecDepth___rarg___closed__2; +x_119 = l_Lean_Elab_Tactic_throwError___rarg(x_118, x_3, x_79); +if (lean_obj_tag(x_119) == 0) { -lean_object* x_121; -x_121 = lean_ctor_get(x_120, 1); -lean_inc(x_121); -lean_dec(x_120); -x_100 = x_121; -goto block_118; +lean_object* x_120; +x_120 = lean_ctor_get(x_119, 1); +lean_inc(x_120); +lean_dec(x_119); +x_99 = x_120; +goto block_117; } else { -uint8_t x_122; -lean_dec(x_98); +uint8_t x_121; lean_dec(x_97); lean_dec(x_96); -lean_dec(x_92); -lean_dec(x_91); +lean_dec(x_95); +lean_dec(x_94); lean_dec(x_90); lean_dec(x_89); lean_dec(x_88); @@ -2276,115 +2653,115 @@ lean_dec(x_84); lean_dec(x_83); lean_dec(x_82); lean_dec(x_81); -lean_dec(x_79); -lean_dec(x_2); +lean_dec(x_80); +lean_dec(x_78); lean_dec(x_1); -x_122 = !lean_is_exclusive(x_120); -if (x_122 == 0) +x_121 = !lean_is_exclusive(x_119); +if (x_121 == 0) { -return x_120; +return x_119; } else { -lean_object* x_123; lean_object* x_124; lean_object* x_125; -x_123 = lean_ctor_get(x_120, 0); -x_124 = lean_ctor_get(x_120, 1); -lean_inc(x_124); +lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_122 = lean_ctor_get(x_119, 0); +x_123 = lean_ctor_get(x_119, 1); lean_inc(x_123); -lean_dec(x_120); -x_125 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_125, 0, x_123); -lean_ctor_set(x_125, 1, x_124); -return x_125; +lean_inc(x_122); +lean_dec(x_119); +x_124 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_124, 0, x_122); +lean_ctor_set(x_124, 1, x_123); +return x_124; } } } -block_118: +block_117: { -uint8_t x_101; -x_101 = !lean_is_exclusive(x_79); -if (x_101 == 0) +uint8_t x_100; +x_100 = !lean_is_exclusive(x_78); +if (x_100 == 0) { -lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_102 = lean_ctor_get(x_79, 4); +lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_101 = lean_ctor_get(x_78, 4); +lean_dec(x_101); +x_102 = lean_ctor_get(x_78, 3); lean_dec(x_102); -x_103 = lean_ctor_get(x_79, 3); -lean_dec(x_103); -x_104 = lean_unsigned_to_nat(1u); -x_105 = lean_nat_add(x_97, x_104); -lean_dec(x_97); -lean_ctor_set(x_79, 3, x_105); -if (lean_is_scalar(x_96)) { - x_106 = lean_alloc_ctor(0, 10, 3); +x_103 = lean_unsigned_to_nat(1u); +x_104 = lean_nat_add(x_96, x_103); +lean_dec(x_96); +lean_ctor_set(x_78, 3, x_104); +if (lean_is_scalar(x_95)) { + x_105 = lean_alloc_ctor(0, 11, 3); } else { - x_106 = x_96; + x_105 = x_95; } -lean_ctor_set(x_106, 0, x_79); -lean_ctor_set(x_106, 1, x_84); -lean_ctor_set(x_106, 2, x_85); -lean_ctor_set(x_106, 3, x_86); -lean_ctor_set(x_106, 4, x_87); -lean_ctor_set(x_106, 5, x_88); -lean_ctor_set(x_106, 6, x_89); -lean_ctor_set(x_106, 7, x_90); -lean_ctor_set(x_106, 8, x_91); -lean_ctor_set(x_106, 9, x_92); -lean_ctor_set_uint8(x_106, sizeof(void*)*10, x_93); -lean_ctor_set_uint8(x_106, sizeof(void*)*10 + 1, x_94); -lean_ctor_set_uint8(x_106, sizeof(void*)*10 + 2, x_95); -x_107 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_107, 0, x_106); -lean_ctor_set(x_107, 1, x_82); -lean_ctor_set(x_107, 2, x_83); -x_3 = x_81; -x_4 = x_107; -x_5 = x_100; +lean_ctor_set(x_105, 0, x_78); +lean_ctor_set(x_105, 1, x_82); +lean_ctor_set(x_105, 2, x_83); +lean_ctor_set(x_105, 3, x_84); +lean_ctor_set(x_105, 4, x_85); +lean_ctor_set(x_105, 5, x_86); +lean_ctor_set(x_105, 6, x_87); +lean_ctor_set(x_105, 7, x_88); +lean_ctor_set(x_105, 8, x_89); +lean_ctor_set(x_105, 9, x_90); +lean_ctor_set(x_105, 10, x_94); +lean_ctor_set_uint8(x_105, sizeof(void*)*11, x_91); +lean_ctor_set_uint8(x_105, sizeof(void*)*11 + 1, x_92); +lean_ctor_set_uint8(x_105, sizeof(void*)*11 + 2, x_93); +x_106 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_106, 0, x_105); +lean_ctor_set(x_106, 1, x_81); +x_2 = x_80; +x_3 = x_106; +x_4 = x_99; goto _start; } else { -lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; -x_109 = lean_ctor_get(x_79, 0); -x_110 = lean_ctor_get(x_79, 1); -x_111 = lean_ctor_get(x_79, 2); -lean_inc(x_111); +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; +x_108 = lean_ctor_get(x_78, 0); +x_109 = lean_ctor_get(x_78, 1); +x_110 = lean_ctor_get(x_78, 2); lean_inc(x_110); lean_inc(x_109); -lean_dec(x_79); -x_112 = lean_unsigned_to_nat(1u); -x_113 = lean_nat_add(x_97, x_112); -lean_dec(x_97); -x_114 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_114, 0, x_109); -lean_ctor_set(x_114, 1, x_110); -lean_ctor_set(x_114, 2, x_111); -lean_ctor_set(x_114, 3, x_113); -lean_ctor_set(x_114, 4, x_98); -if (lean_is_scalar(x_96)) { - x_115 = lean_alloc_ctor(0, 10, 3); +lean_inc(x_108); +lean_dec(x_78); +x_111 = lean_unsigned_to_nat(1u); +x_112 = lean_nat_add(x_96, x_111); +lean_dec(x_96); +x_113 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_113, 0, x_108); +lean_ctor_set(x_113, 1, x_109); +lean_ctor_set(x_113, 2, x_110); +lean_ctor_set(x_113, 3, x_112); +lean_ctor_set(x_113, 4, x_97); +if (lean_is_scalar(x_95)) { + x_114 = lean_alloc_ctor(0, 11, 3); } else { - x_115 = x_96; + x_114 = x_95; } +lean_ctor_set(x_114, 0, x_113); +lean_ctor_set(x_114, 1, x_82); +lean_ctor_set(x_114, 2, x_83); +lean_ctor_set(x_114, 3, x_84); +lean_ctor_set(x_114, 4, x_85); +lean_ctor_set(x_114, 5, x_86); +lean_ctor_set(x_114, 6, x_87); +lean_ctor_set(x_114, 7, x_88); +lean_ctor_set(x_114, 8, x_89); +lean_ctor_set(x_114, 9, x_90); +lean_ctor_set(x_114, 10, x_94); +lean_ctor_set_uint8(x_114, sizeof(void*)*11, x_91); +lean_ctor_set_uint8(x_114, sizeof(void*)*11 + 1, x_92); +lean_ctor_set_uint8(x_114, sizeof(void*)*11 + 2, x_93); +x_115 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_115, 0, x_114); -lean_ctor_set(x_115, 1, x_84); -lean_ctor_set(x_115, 2, x_85); -lean_ctor_set(x_115, 3, x_86); -lean_ctor_set(x_115, 4, x_87); -lean_ctor_set(x_115, 5, x_88); -lean_ctor_set(x_115, 6, x_89); -lean_ctor_set(x_115, 7, x_90); -lean_ctor_set(x_115, 8, x_91); -lean_ctor_set(x_115, 9, x_92); -lean_ctor_set_uint8(x_115, sizeof(void*)*10, x_93); -lean_ctor_set_uint8(x_115, sizeof(void*)*10 + 1, x_94); -lean_ctor_set_uint8(x_115, sizeof(void*)*10 + 2, x_95); -x_116 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_116, 0, x_115); -lean_ctor_set(x_116, 1, x_82); -lean_ctor_set(x_116, 2, x_83); -x_3 = x_81; -x_4 = x_116; -x_5 = x_100; +lean_ctor_set(x_115, 1, x_81); +x_2 = x_80; +x_3 = x_115; +x_4 = x_99; goto _start; } } @@ -2392,159 +2769,155 @@ goto _start; } else { -uint8_t x_126; -lean_dec(x_4); -lean_dec(x_2); +uint8_t x_125; +lean_dec(x_3); lean_dec(x_1); -x_126 = !lean_is_exclusive(x_70); -if (x_126 == 0) +x_125 = !lean_is_exclusive(x_69); +if (x_125 == 0) { -return x_70; +return x_69; } else { -lean_object* x_127; lean_object* x_128; lean_object* x_129; -x_127 = lean_ctor_get(x_70, 0); -x_128 = lean_ctor_get(x_70, 1); -lean_inc(x_128); +lean_object* x_126; lean_object* x_127; lean_object* x_128; +x_126 = lean_ctor_get(x_69, 0); +x_127 = lean_ctor_get(x_69, 1); lean_inc(x_127); -lean_dec(x_70); -x_129 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_129, 0, x_127); -lean_ctor_set(x_129, 1, x_128); -return x_129; +lean_inc(x_126); +lean_dec(x_69); +x_128 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_128, 0, x_126); +lean_ctor_set(x_128, 1, x_127); +return x_128; } } } case 2: { +lean_object* x_129; +lean_dec(x_8); +lean_inc(x_3); +x_129 = l_Lean_Elab_Tactic_unfoldDefinition_x3f(x_6, x_3, x_7); +if (lean_obj_tag(x_129) == 0) +{ lean_object* x_130; -lean_dec(x_9); -lean_inc(x_4); -lean_inc(x_1); -x_130 = l_Lean_Elab_Tactic_unfoldDefinition_x3f(x_1, x_7, x_4, x_8); +x_130 = lean_ctor_get(x_129, 0); +lean_inc(x_130); if (lean_obj_tag(x_130) == 0) { -lean_object* x_131; -x_131 = lean_ctor_get(x_130, 0); -lean_inc(x_131); -if (lean_obj_tag(x_131) == 0) -{ -uint8_t x_132; -lean_dec(x_4); -lean_dec(x_2); +uint8_t x_131; +lean_dec(x_3); lean_dec(x_1); -x_132 = !lean_is_exclusive(x_130); -if (x_132 == 0) +x_131 = !lean_is_exclusive(x_129); +if (x_131 == 0) { -lean_object* x_133; lean_object* x_134; -x_133 = lean_ctor_get(x_130, 0); -lean_dec(x_133); -x_134 = lean_box(0); -lean_ctor_set(x_130, 0, x_134); -return x_130; +lean_object* x_132; lean_object* x_133; +x_132 = lean_ctor_get(x_129, 0); +lean_dec(x_132); +x_133 = lean_box(0); +lean_ctor_set(x_129, 0, x_133); +return x_129; } else { -lean_object* x_135; lean_object* x_136; lean_object* x_137; -x_135 = lean_ctor_get(x_130, 1); -lean_inc(x_135); -lean_dec(x_130); -x_136 = lean_box(0); -x_137 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_137, 0, x_136); -lean_ctor_set(x_137, 1, x_135); -return x_137; +lean_object* x_134; lean_object* x_135; lean_object* x_136; +x_134 = lean_ctor_get(x_129, 1); +lean_inc(x_134); +lean_dec(x_129); +x_135 = lean_box(0); +x_136 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_134); +return x_136; } } else { -lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; uint8_t x_153; uint8_t x_154; uint8_t x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; uint8_t x_159; lean_object* x_160; -x_138 = lean_ctor_get(x_4, 0); +lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; uint8_t x_151; uint8_t x_152; uint8_t x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t x_158; lean_object* x_159; +x_137 = lean_ctor_get(x_3, 0); +lean_inc(x_137); +x_138 = lean_ctor_get(x_137, 0); lean_inc(x_138); -x_139 = lean_ctor_get(x_138, 0); +x_139 = lean_ctor_get(x_129, 1); lean_inc(x_139); -x_140 = lean_ctor_get(x_130, 1); +lean_dec(x_129); +x_140 = lean_ctor_get(x_130, 0); lean_inc(x_140); lean_dec(x_130); -x_141 = lean_ctor_get(x_131, 0); +x_141 = lean_ctor_get(x_3, 1); lean_inc(x_141); -lean_dec(x_131); -x_142 = lean_ctor_get(x_4, 1); +x_142 = lean_ctor_get(x_137, 1); lean_inc(x_142); -x_143 = lean_ctor_get(x_4, 2); +x_143 = lean_ctor_get(x_137, 2); lean_inc(x_143); -x_144 = lean_ctor_get(x_138, 1); +x_144 = lean_ctor_get(x_137, 3); lean_inc(x_144); -x_145 = lean_ctor_get(x_138, 2); +x_145 = lean_ctor_get(x_137, 4); lean_inc(x_145); -x_146 = lean_ctor_get(x_138, 3); +x_146 = lean_ctor_get(x_137, 5); lean_inc(x_146); -x_147 = lean_ctor_get(x_138, 4); +x_147 = lean_ctor_get(x_137, 6); lean_inc(x_147); -x_148 = lean_ctor_get(x_138, 5); +x_148 = lean_ctor_get(x_137, 7); lean_inc(x_148); -x_149 = lean_ctor_get(x_138, 6); +x_149 = lean_ctor_get(x_137, 8); lean_inc(x_149); -x_150 = lean_ctor_get(x_138, 7); +x_150 = lean_ctor_get(x_137, 9); lean_inc(x_150); -x_151 = lean_ctor_get(x_138, 8); -lean_inc(x_151); -x_152 = lean_ctor_get(x_138, 9); -lean_inc(x_152); -x_153 = lean_ctor_get_uint8(x_138, sizeof(void*)*10); -x_154 = lean_ctor_get_uint8(x_138, sizeof(void*)*10 + 1); -x_155 = lean_ctor_get_uint8(x_138, sizeof(void*)*10 + 2); -if (lean_is_exclusive(x_138)) { - lean_ctor_release(x_138, 0); - lean_ctor_release(x_138, 1); - lean_ctor_release(x_138, 2); - lean_ctor_release(x_138, 3); - lean_ctor_release(x_138, 4); - lean_ctor_release(x_138, 5); - lean_ctor_release(x_138, 6); - lean_ctor_release(x_138, 7); - lean_ctor_release(x_138, 8); - lean_ctor_release(x_138, 9); - x_156 = x_138; +x_151 = lean_ctor_get_uint8(x_137, sizeof(void*)*11); +x_152 = lean_ctor_get_uint8(x_137, sizeof(void*)*11 + 1); +x_153 = lean_ctor_get_uint8(x_137, sizeof(void*)*11 + 2); +x_154 = lean_ctor_get(x_137, 10); +lean_inc(x_154); +if (lean_is_exclusive(x_137)) { + lean_ctor_release(x_137, 0); + lean_ctor_release(x_137, 1); + lean_ctor_release(x_137, 2); + lean_ctor_release(x_137, 3); + lean_ctor_release(x_137, 4); + lean_ctor_release(x_137, 5); + lean_ctor_release(x_137, 6); + lean_ctor_release(x_137, 7); + lean_ctor_release(x_137, 8); + lean_ctor_release(x_137, 9); + lean_ctor_release(x_137, 10); + x_155 = x_137; } else { - lean_dec_ref(x_138); - x_156 = lean_box(0); + lean_dec_ref(x_137); + x_155 = lean_box(0); } -x_157 = lean_ctor_get(x_139, 3); +x_156 = lean_ctor_get(x_138, 3); +lean_inc(x_156); +x_157 = lean_ctor_get(x_138, 4); lean_inc(x_157); -x_158 = lean_ctor_get(x_139, 4); -lean_inc(x_158); -x_159 = lean_nat_dec_eq(x_157, x_158); -if (x_159 == 0) +x_158 = lean_nat_dec_eq(x_156, x_157); +if (x_158 == 0) { -lean_dec(x_4); -x_160 = x_140; -goto block_178; +lean_dec(x_3); +x_159 = x_139; +goto block_177; } else { -lean_object* x_179; lean_object* x_180; -x_179 = l_Lean_Meta_withIncRecDepth___rarg___closed__2; -lean_inc(x_1); -x_180 = l_Lean_Elab_Tactic_throwError___rarg(x_1, x_179, x_4, x_140); -if (lean_obj_tag(x_180) == 0) +lean_object* x_178; lean_object* x_179; +x_178 = l_Lean_Meta_withIncRecDepth___rarg___closed__2; +x_179 = l_Lean_Elab_Tactic_throwError___rarg(x_178, x_3, x_139); +if (lean_obj_tag(x_179) == 0) { -lean_object* x_181; -x_181 = lean_ctor_get(x_180, 1); -lean_inc(x_181); -lean_dec(x_180); -x_160 = x_181; -goto block_178; +lean_object* x_180; +x_180 = lean_ctor_get(x_179, 1); +lean_inc(x_180); +lean_dec(x_179); +x_159 = x_180; +goto block_177; } else { -uint8_t x_182; -lean_dec(x_158); +uint8_t x_181; lean_dec(x_157); lean_dec(x_156); -lean_dec(x_152); -lean_dec(x_151); +lean_dec(x_155); +lean_dec(x_154); lean_dec(x_150); lean_dec(x_149); lean_dec(x_148); @@ -2555,115 +2928,115 @@ lean_dec(x_144); lean_dec(x_143); lean_dec(x_142); lean_dec(x_141); -lean_dec(x_139); -lean_dec(x_2); +lean_dec(x_140); +lean_dec(x_138); lean_dec(x_1); -x_182 = !lean_is_exclusive(x_180); -if (x_182 == 0) +x_181 = !lean_is_exclusive(x_179); +if (x_181 == 0) { -return x_180; +return x_179; } else { -lean_object* x_183; lean_object* x_184; lean_object* x_185; -x_183 = lean_ctor_get(x_180, 0); -x_184 = lean_ctor_get(x_180, 1); -lean_inc(x_184); +lean_object* x_182; lean_object* x_183; lean_object* x_184; +x_182 = lean_ctor_get(x_179, 0); +x_183 = lean_ctor_get(x_179, 1); lean_inc(x_183); -lean_dec(x_180); -x_185 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_185, 0, x_183); -lean_ctor_set(x_185, 1, x_184); -return x_185; +lean_inc(x_182); +lean_dec(x_179); +x_184 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_184, 0, x_182); +lean_ctor_set(x_184, 1, x_183); +return x_184; } } } -block_178: +block_177: { -uint8_t x_161; -x_161 = !lean_is_exclusive(x_139); -if (x_161 == 0) +uint8_t x_160; +x_160 = !lean_is_exclusive(x_138); +if (x_160 == 0) { -lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; -x_162 = lean_ctor_get(x_139, 4); +lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; +x_161 = lean_ctor_get(x_138, 4); +lean_dec(x_161); +x_162 = lean_ctor_get(x_138, 3); lean_dec(x_162); -x_163 = lean_ctor_get(x_139, 3); -lean_dec(x_163); -x_164 = lean_unsigned_to_nat(1u); -x_165 = lean_nat_add(x_157, x_164); -lean_dec(x_157); -lean_ctor_set(x_139, 3, x_165); -if (lean_is_scalar(x_156)) { - x_166 = lean_alloc_ctor(0, 10, 3); +x_163 = lean_unsigned_to_nat(1u); +x_164 = lean_nat_add(x_156, x_163); +lean_dec(x_156); +lean_ctor_set(x_138, 3, x_164); +if (lean_is_scalar(x_155)) { + x_165 = lean_alloc_ctor(0, 11, 3); } else { - x_166 = x_156; + x_165 = x_155; } -lean_ctor_set(x_166, 0, x_139); -lean_ctor_set(x_166, 1, x_144); -lean_ctor_set(x_166, 2, x_145); -lean_ctor_set(x_166, 3, x_146); -lean_ctor_set(x_166, 4, x_147); -lean_ctor_set(x_166, 5, x_148); -lean_ctor_set(x_166, 6, x_149); -lean_ctor_set(x_166, 7, x_150); -lean_ctor_set(x_166, 8, x_151); -lean_ctor_set(x_166, 9, x_152); -lean_ctor_set_uint8(x_166, sizeof(void*)*10, x_153); -lean_ctor_set_uint8(x_166, sizeof(void*)*10 + 1, x_154); -lean_ctor_set_uint8(x_166, sizeof(void*)*10 + 2, x_155); -x_167 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_167, 0, x_166); -lean_ctor_set(x_167, 1, x_142); -lean_ctor_set(x_167, 2, x_143); -x_3 = x_141; -x_4 = x_167; -x_5 = x_160; +lean_ctor_set(x_165, 0, x_138); +lean_ctor_set(x_165, 1, x_142); +lean_ctor_set(x_165, 2, x_143); +lean_ctor_set(x_165, 3, x_144); +lean_ctor_set(x_165, 4, x_145); +lean_ctor_set(x_165, 5, x_146); +lean_ctor_set(x_165, 6, x_147); +lean_ctor_set(x_165, 7, x_148); +lean_ctor_set(x_165, 8, x_149); +lean_ctor_set(x_165, 9, x_150); +lean_ctor_set(x_165, 10, x_154); +lean_ctor_set_uint8(x_165, sizeof(void*)*11, x_151); +lean_ctor_set_uint8(x_165, sizeof(void*)*11 + 1, x_152); +lean_ctor_set_uint8(x_165, sizeof(void*)*11 + 2, x_153); +x_166 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_166, 0, x_165); +lean_ctor_set(x_166, 1, x_141); +x_2 = x_140; +x_3 = x_166; +x_4 = x_159; goto _start; } else { -lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; -x_169 = lean_ctor_get(x_139, 0); -x_170 = lean_ctor_get(x_139, 1); -x_171 = lean_ctor_get(x_139, 2); -lean_inc(x_171); +lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; +x_168 = lean_ctor_get(x_138, 0); +x_169 = lean_ctor_get(x_138, 1); +x_170 = lean_ctor_get(x_138, 2); lean_inc(x_170); lean_inc(x_169); -lean_dec(x_139); -x_172 = lean_unsigned_to_nat(1u); -x_173 = lean_nat_add(x_157, x_172); -lean_dec(x_157); -x_174 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_174, 0, x_169); -lean_ctor_set(x_174, 1, x_170); -lean_ctor_set(x_174, 2, x_171); -lean_ctor_set(x_174, 3, x_173); -lean_ctor_set(x_174, 4, x_158); -if (lean_is_scalar(x_156)) { - x_175 = lean_alloc_ctor(0, 10, 3); +lean_inc(x_168); +lean_dec(x_138); +x_171 = lean_unsigned_to_nat(1u); +x_172 = lean_nat_add(x_156, x_171); +lean_dec(x_156); +x_173 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_173, 0, x_168); +lean_ctor_set(x_173, 1, x_169); +lean_ctor_set(x_173, 2, x_170); +lean_ctor_set(x_173, 3, x_172); +lean_ctor_set(x_173, 4, x_157); +if (lean_is_scalar(x_155)) { + x_174 = lean_alloc_ctor(0, 11, 3); } else { - x_175 = x_156; + x_174 = x_155; } +lean_ctor_set(x_174, 0, x_173); +lean_ctor_set(x_174, 1, x_142); +lean_ctor_set(x_174, 2, x_143); +lean_ctor_set(x_174, 3, x_144); +lean_ctor_set(x_174, 4, x_145); +lean_ctor_set(x_174, 5, x_146); +lean_ctor_set(x_174, 6, x_147); +lean_ctor_set(x_174, 7, x_148); +lean_ctor_set(x_174, 8, x_149); +lean_ctor_set(x_174, 9, x_150); +lean_ctor_set(x_174, 10, x_154); +lean_ctor_set_uint8(x_174, sizeof(void*)*11, x_151); +lean_ctor_set_uint8(x_174, sizeof(void*)*11 + 1, x_152); +lean_ctor_set_uint8(x_174, sizeof(void*)*11 + 2, x_153); +x_175 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_175, 0, x_174); -lean_ctor_set(x_175, 1, x_144); -lean_ctor_set(x_175, 2, x_145); -lean_ctor_set(x_175, 3, x_146); -lean_ctor_set(x_175, 4, x_147); -lean_ctor_set(x_175, 5, x_148); -lean_ctor_set(x_175, 6, x_149); -lean_ctor_set(x_175, 7, x_150); -lean_ctor_set(x_175, 8, x_151); -lean_ctor_set(x_175, 9, x_152); -lean_ctor_set_uint8(x_175, sizeof(void*)*10, x_153); -lean_ctor_set_uint8(x_175, sizeof(void*)*10 + 1, x_154); -lean_ctor_set_uint8(x_175, sizeof(void*)*10 + 2, x_155); -x_176 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_176, 0, x_175); -lean_ctor_set(x_176, 1, x_142); -lean_ctor_set(x_176, 2, x_143); -x_3 = x_141; -x_4 = x_176; -x_5 = x_160; +lean_ctor_set(x_175, 1, x_141); +x_2 = x_140; +x_3 = x_175; +x_4 = x_159; goto _start; } } @@ -2671,159 +3044,155 @@ goto _start; } else { -uint8_t x_186; -lean_dec(x_4); -lean_dec(x_2); +uint8_t x_185; +lean_dec(x_3); lean_dec(x_1); -x_186 = !lean_is_exclusive(x_130); -if (x_186 == 0) +x_185 = !lean_is_exclusive(x_129); +if (x_185 == 0) { -return x_130; +return x_129; } else { -lean_object* x_187; lean_object* x_188; lean_object* x_189; -x_187 = lean_ctor_get(x_130, 0); -x_188 = lean_ctor_get(x_130, 1); -lean_inc(x_188); +lean_object* x_186; lean_object* x_187; lean_object* x_188; +x_186 = lean_ctor_get(x_129, 0); +x_187 = lean_ctor_get(x_129, 1); lean_inc(x_187); -lean_dec(x_130); -x_189 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_189, 0, x_187); -lean_ctor_set(x_189, 1, x_188); -return x_189; +lean_inc(x_186); +lean_dec(x_129); +x_188 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_188, 0, x_186); +lean_ctor_set(x_188, 1, x_187); +return x_188; } } } case 3: { +lean_object* x_189; +lean_dec(x_8); +lean_inc(x_3); +x_189 = l_Lean_Elab_Tactic_unfoldDefinition_x3f(x_6, x_3, x_7); +if (lean_obj_tag(x_189) == 0) +{ lean_object* x_190; -lean_dec(x_9); -lean_inc(x_4); -lean_inc(x_1); -x_190 = l_Lean_Elab_Tactic_unfoldDefinition_x3f(x_1, x_7, x_4, x_8); +x_190 = lean_ctor_get(x_189, 0); +lean_inc(x_190); if (lean_obj_tag(x_190) == 0) { -lean_object* x_191; -x_191 = lean_ctor_get(x_190, 0); -lean_inc(x_191); -if (lean_obj_tag(x_191) == 0) -{ -uint8_t x_192; -lean_dec(x_4); -lean_dec(x_2); +uint8_t x_191; +lean_dec(x_3); lean_dec(x_1); -x_192 = !lean_is_exclusive(x_190); -if (x_192 == 0) +x_191 = !lean_is_exclusive(x_189); +if (x_191 == 0) { -lean_object* x_193; lean_object* x_194; -x_193 = lean_ctor_get(x_190, 0); -lean_dec(x_193); -x_194 = lean_box(0); -lean_ctor_set(x_190, 0, x_194); -return x_190; +lean_object* x_192; lean_object* x_193; +x_192 = lean_ctor_get(x_189, 0); +lean_dec(x_192); +x_193 = lean_box(0); +lean_ctor_set(x_189, 0, x_193); +return x_189; } else { -lean_object* x_195; lean_object* x_196; lean_object* x_197; -x_195 = lean_ctor_get(x_190, 1); -lean_inc(x_195); -lean_dec(x_190); -x_196 = lean_box(0); -x_197 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_197, 0, x_196); -lean_ctor_set(x_197, 1, x_195); -return x_197; +lean_object* x_194; lean_object* x_195; lean_object* x_196; +x_194 = lean_ctor_get(x_189, 1); +lean_inc(x_194); +lean_dec(x_189); +x_195 = lean_box(0); +x_196 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_196, 0, x_195); +lean_ctor_set(x_196, 1, x_194); +return x_196; } } else { -lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; uint8_t x_213; uint8_t x_214; uint8_t x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; uint8_t x_219; lean_object* x_220; -x_198 = lean_ctor_get(x_4, 0); +lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; uint8_t x_211; uint8_t x_212; uint8_t x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; uint8_t x_218; lean_object* x_219; +x_197 = lean_ctor_get(x_3, 0); +lean_inc(x_197); +x_198 = lean_ctor_get(x_197, 0); lean_inc(x_198); -x_199 = lean_ctor_get(x_198, 0); +x_199 = lean_ctor_get(x_189, 1); lean_inc(x_199); -x_200 = lean_ctor_get(x_190, 1); +lean_dec(x_189); +x_200 = lean_ctor_get(x_190, 0); lean_inc(x_200); lean_dec(x_190); -x_201 = lean_ctor_get(x_191, 0); +x_201 = lean_ctor_get(x_3, 1); lean_inc(x_201); -lean_dec(x_191); -x_202 = lean_ctor_get(x_4, 1); +x_202 = lean_ctor_get(x_197, 1); lean_inc(x_202); -x_203 = lean_ctor_get(x_4, 2); +x_203 = lean_ctor_get(x_197, 2); lean_inc(x_203); -x_204 = lean_ctor_get(x_198, 1); +x_204 = lean_ctor_get(x_197, 3); lean_inc(x_204); -x_205 = lean_ctor_get(x_198, 2); +x_205 = lean_ctor_get(x_197, 4); lean_inc(x_205); -x_206 = lean_ctor_get(x_198, 3); +x_206 = lean_ctor_get(x_197, 5); lean_inc(x_206); -x_207 = lean_ctor_get(x_198, 4); +x_207 = lean_ctor_get(x_197, 6); lean_inc(x_207); -x_208 = lean_ctor_get(x_198, 5); +x_208 = lean_ctor_get(x_197, 7); lean_inc(x_208); -x_209 = lean_ctor_get(x_198, 6); +x_209 = lean_ctor_get(x_197, 8); lean_inc(x_209); -x_210 = lean_ctor_get(x_198, 7); +x_210 = lean_ctor_get(x_197, 9); lean_inc(x_210); -x_211 = lean_ctor_get(x_198, 8); -lean_inc(x_211); -x_212 = lean_ctor_get(x_198, 9); -lean_inc(x_212); -x_213 = lean_ctor_get_uint8(x_198, sizeof(void*)*10); -x_214 = lean_ctor_get_uint8(x_198, sizeof(void*)*10 + 1); -x_215 = lean_ctor_get_uint8(x_198, sizeof(void*)*10 + 2); -if (lean_is_exclusive(x_198)) { - lean_ctor_release(x_198, 0); - lean_ctor_release(x_198, 1); - lean_ctor_release(x_198, 2); - lean_ctor_release(x_198, 3); - lean_ctor_release(x_198, 4); - lean_ctor_release(x_198, 5); - lean_ctor_release(x_198, 6); - lean_ctor_release(x_198, 7); - lean_ctor_release(x_198, 8); - lean_ctor_release(x_198, 9); - x_216 = x_198; +x_211 = lean_ctor_get_uint8(x_197, sizeof(void*)*11); +x_212 = lean_ctor_get_uint8(x_197, sizeof(void*)*11 + 1); +x_213 = lean_ctor_get_uint8(x_197, sizeof(void*)*11 + 2); +x_214 = lean_ctor_get(x_197, 10); +lean_inc(x_214); +if (lean_is_exclusive(x_197)) { + lean_ctor_release(x_197, 0); + lean_ctor_release(x_197, 1); + lean_ctor_release(x_197, 2); + lean_ctor_release(x_197, 3); + lean_ctor_release(x_197, 4); + lean_ctor_release(x_197, 5); + lean_ctor_release(x_197, 6); + lean_ctor_release(x_197, 7); + lean_ctor_release(x_197, 8); + lean_ctor_release(x_197, 9); + lean_ctor_release(x_197, 10); + x_215 = x_197; } else { - lean_dec_ref(x_198); - x_216 = lean_box(0); + lean_dec_ref(x_197); + x_215 = lean_box(0); } -x_217 = lean_ctor_get(x_199, 3); +x_216 = lean_ctor_get(x_198, 3); +lean_inc(x_216); +x_217 = lean_ctor_get(x_198, 4); lean_inc(x_217); -x_218 = lean_ctor_get(x_199, 4); -lean_inc(x_218); -x_219 = lean_nat_dec_eq(x_217, x_218); -if (x_219 == 0) +x_218 = lean_nat_dec_eq(x_216, x_217); +if (x_218 == 0) { -lean_dec(x_4); -x_220 = x_200; -goto block_238; +lean_dec(x_3); +x_219 = x_199; +goto block_237; } else { -lean_object* x_239; lean_object* x_240; -x_239 = l_Lean_Meta_withIncRecDepth___rarg___closed__2; -lean_inc(x_1); -x_240 = l_Lean_Elab_Tactic_throwError___rarg(x_1, x_239, x_4, x_200); -if (lean_obj_tag(x_240) == 0) +lean_object* x_238; lean_object* x_239; +x_238 = l_Lean_Meta_withIncRecDepth___rarg___closed__2; +x_239 = l_Lean_Elab_Tactic_throwError___rarg(x_238, x_3, x_199); +if (lean_obj_tag(x_239) == 0) { -lean_object* x_241; -x_241 = lean_ctor_get(x_240, 1); -lean_inc(x_241); -lean_dec(x_240); -x_220 = x_241; -goto block_238; +lean_object* x_240; +x_240 = lean_ctor_get(x_239, 1); +lean_inc(x_240); +lean_dec(x_239); +x_219 = x_240; +goto block_237; } else { -uint8_t x_242; -lean_dec(x_218); +uint8_t x_241; lean_dec(x_217); lean_dec(x_216); -lean_dec(x_212); -lean_dec(x_211); +lean_dec(x_215); +lean_dec(x_214); lean_dec(x_210); lean_dec(x_209); lean_dec(x_208); @@ -2834,115 +3203,115 @@ lean_dec(x_204); lean_dec(x_203); lean_dec(x_202); lean_dec(x_201); -lean_dec(x_199); -lean_dec(x_2); +lean_dec(x_200); +lean_dec(x_198); lean_dec(x_1); -x_242 = !lean_is_exclusive(x_240); -if (x_242 == 0) +x_241 = !lean_is_exclusive(x_239); +if (x_241 == 0) { -return x_240; +return x_239; } else { -lean_object* x_243; lean_object* x_244; lean_object* x_245; -x_243 = lean_ctor_get(x_240, 0); -x_244 = lean_ctor_get(x_240, 1); -lean_inc(x_244); +lean_object* x_242; lean_object* x_243; lean_object* x_244; +x_242 = lean_ctor_get(x_239, 0); +x_243 = lean_ctor_get(x_239, 1); lean_inc(x_243); -lean_dec(x_240); -x_245 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_245, 0, x_243); -lean_ctor_set(x_245, 1, x_244); -return x_245; +lean_inc(x_242); +lean_dec(x_239); +x_244 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_244, 0, x_242); +lean_ctor_set(x_244, 1, x_243); +return x_244; } } } -block_238: +block_237: { -uint8_t x_221; -x_221 = !lean_is_exclusive(x_199); -if (x_221 == 0) +uint8_t x_220; +x_220 = !lean_is_exclusive(x_198); +if (x_220 == 0) { -lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; -x_222 = lean_ctor_get(x_199, 4); +lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; +x_221 = lean_ctor_get(x_198, 4); +lean_dec(x_221); +x_222 = lean_ctor_get(x_198, 3); lean_dec(x_222); -x_223 = lean_ctor_get(x_199, 3); -lean_dec(x_223); -x_224 = lean_unsigned_to_nat(1u); -x_225 = lean_nat_add(x_217, x_224); -lean_dec(x_217); -lean_ctor_set(x_199, 3, x_225); -if (lean_is_scalar(x_216)) { - x_226 = lean_alloc_ctor(0, 10, 3); +x_223 = lean_unsigned_to_nat(1u); +x_224 = lean_nat_add(x_216, x_223); +lean_dec(x_216); +lean_ctor_set(x_198, 3, x_224); +if (lean_is_scalar(x_215)) { + x_225 = lean_alloc_ctor(0, 11, 3); } else { - x_226 = x_216; + x_225 = x_215; } -lean_ctor_set(x_226, 0, x_199); -lean_ctor_set(x_226, 1, x_204); -lean_ctor_set(x_226, 2, x_205); -lean_ctor_set(x_226, 3, x_206); -lean_ctor_set(x_226, 4, x_207); -lean_ctor_set(x_226, 5, x_208); -lean_ctor_set(x_226, 6, x_209); -lean_ctor_set(x_226, 7, x_210); -lean_ctor_set(x_226, 8, x_211); -lean_ctor_set(x_226, 9, x_212); -lean_ctor_set_uint8(x_226, sizeof(void*)*10, x_213); -lean_ctor_set_uint8(x_226, sizeof(void*)*10 + 1, x_214); -lean_ctor_set_uint8(x_226, sizeof(void*)*10 + 2, x_215); -x_227 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_227, 0, x_226); -lean_ctor_set(x_227, 1, x_202); -lean_ctor_set(x_227, 2, x_203); -x_3 = x_201; -x_4 = x_227; -x_5 = x_220; +lean_ctor_set(x_225, 0, x_198); +lean_ctor_set(x_225, 1, x_202); +lean_ctor_set(x_225, 2, x_203); +lean_ctor_set(x_225, 3, x_204); +lean_ctor_set(x_225, 4, x_205); +lean_ctor_set(x_225, 5, x_206); +lean_ctor_set(x_225, 6, x_207); +lean_ctor_set(x_225, 7, x_208); +lean_ctor_set(x_225, 8, x_209); +lean_ctor_set(x_225, 9, x_210); +lean_ctor_set(x_225, 10, x_214); +lean_ctor_set_uint8(x_225, sizeof(void*)*11, x_211); +lean_ctor_set_uint8(x_225, sizeof(void*)*11 + 1, x_212); +lean_ctor_set_uint8(x_225, sizeof(void*)*11 + 2, x_213); +x_226 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_226, 0, x_225); +lean_ctor_set(x_226, 1, x_201); +x_2 = x_200; +x_3 = x_226; +x_4 = x_219; goto _start; } else { -lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; -x_229 = lean_ctor_get(x_199, 0); -x_230 = lean_ctor_get(x_199, 1); -x_231 = lean_ctor_get(x_199, 2); -lean_inc(x_231); +lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; +x_228 = lean_ctor_get(x_198, 0); +x_229 = lean_ctor_get(x_198, 1); +x_230 = lean_ctor_get(x_198, 2); lean_inc(x_230); lean_inc(x_229); -lean_dec(x_199); -x_232 = lean_unsigned_to_nat(1u); -x_233 = lean_nat_add(x_217, x_232); -lean_dec(x_217); -x_234 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_234, 0, x_229); -lean_ctor_set(x_234, 1, x_230); -lean_ctor_set(x_234, 2, x_231); -lean_ctor_set(x_234, 3, x_233); -lean_ctor_set(x_234, 4, x_218); -if (lean_is_scalar(x_216)) { - x_235 = lean_alloc_ctor(0, 10, 3); +lean_inc(x_228); +lean_dec(x_198); +x_231 = lean_unsigned_to_nat(1u); +x_232 = lean_nat_add(x_216, x_231); +lean_dec(x_216); +x_233 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_233, 0, x_228); +lean_ctor_set(x_233, 1, x_229); +lean_ctor_set(x_233, 2, x_230); +lean_ctor_set(x_233, 3, x_232); +lean_ctor_set(x_233, 4, x_217); +if (lean_is_scalar(x_215)) { + x_234 = lean_alloc_ctor(0, 11, 3); } else { - x_235 = x_216; + x_234 = x_215; } +lean_ctor_set(x_234, 0, x_233); +lean_ctor_set(x_234, 1, x_202); +lean_ctor_set(x_234, 2, x_203); +lean_ctor_set(x_234, 3, x_204); +lean_ctor_set(x_234, 4, x_205); +lean_ctor_set(x_234, 5, x_206); +lean_ctor_set(x_234, 6, x_207); +lean_ctor_set(x_234, 7, x_208); +lean_ctor_set(x_234, 8, x_209); +lean_ctor_set(x_234, 9, x_210); +lean_ctor_set(x_234, 10, x_214); +lean_ctor_set_uint8(x_234, sizeof(void*)*11, x_211); +lean_ctor_set_uint8(x_234, sizeof(void*)*11 + 1, x_212); +lean_ctor_set_uint8(x_234, sizeof(void*)*11 + 2, x_213); +x_235 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_235, 0, x_234); -lean_ctor_set(x_235, 1, x_204); -lean_ctor_set(x_235, 2, x_205); -lean_ctor_set(x_235, 3, x_206); -lean_ctor_set(x_235, 4, x_207); -lean_ctor_set(x_235, 5, x_208); -lean_ctor_set(x_235, 6, x_209); -lean_ctor_set(x_235, 7, x_210); -lean_ctor_set(x_235, 8, x_211); -lean_ctor_set(x_235, 9, x_212); -lean_ctor_set_uint8(x_235, sizeof(void*)*10, x_213); -lean_ctor_set_uint8(x_235, sizeof(void*)*10 + 1, x_214); -lean_ctor_set_uint8(x_235, sizeof(void*)*10 + 2, x_215); -x_236 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_236, 0, x_235); -lean_ctor_set(x_236, 1, x_202); -lean_ctor_set(x_236, 2, x_203); -x_3 = x_201; -x_4 = x_236; -x_5 = x_220; +lean_ctor_set(x_235, 1, x_201); +x_2 = x_200; +x_3 = x_235; +x_4 = x_219; goto _start; } } @@ -2950,176 +3319,172 @@ goto _start; } else { -uint8_t x_246; -lean_dec(x_4); -lean_dec(x_2); +uint8_t x_245; +lean_dec(x_3); lean_dec(x_1); -x_246 = !lean_is_exclusive(x_190); -if (x_246 == 0) +x_245 = !lean_is_exclusive(x_189); +if (x_245 == 0) { -return x_190; +return x_189; } else { -lean_object* x_247; lean_object* x_248; lean_object* x_249; -x_247 = lean_ctor_get(x_190, 0); -x_248 = lean_ctor_get(x_190, 1); -lean_inc(x_248); +lean_object* x_246; lean_object* x_247; lean_object* x_248; +x_246 = lean_ctor_get(x_189, 0); +x_247 = lean_ctor_get(x_189, 1); lean_inc(x_247); -lean_dec(x_190); -x_249 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_249, 0, x_247); -lean_ctor_set(x_249, 1, x_248); -return x_249; +lean_inc(x_246); +lean_dec(x_189); +x_248 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_248, 0, x_246); +lean_ctor_set(x_248, 1, x_247); +return x_248; } } } case 4: { -lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; -x_250 = lean_ctor_get(x_9, 0); -lean_inc(x_250); -lean_dec(x_9); -lean_inc(x_2); -x_251 = l_Lean_Name_append___main(x_250, x_2); -lean_dec(x_250); -x_252 = l_Lean_Elab_Tactic_getEnv___rarg(x_8); -x_253 = lean_ctor_get(x_252, 0); +lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; +x_249 = lean_ctor_get(x_8, 0); +lean_inc(x_249); +lean_dec(x_8); +lean_inc(x_1); +x_250 = l_Lean_Name_append___main(x_249, x_1); +lean_dec(x_249); +x_251 = l_Lean_Elab_Tactic_getEnv___rarg(x_7); +x_252 = lean_ctor_get(x_251, 0); +lean_inc(x_252); +x_253 = lean_ctor_get(x_251, 1); lean_inc(x_253); -x_254 = lean_ctor_get(x_252, 1); -lean_inc(x_254); -lean_dec(x_252); -lean_inc(x_251); -x_255 = lean_environment_find(x_253, x_251); +lean_dec(x_251); +lean_inc(x_250); +x_254 = lean_environment_find(x_252, x_250); +if (lean_obj_tag(x_254) == 0) +{ +lean_object* x_255; +lean_dec(x_250); +lean_inc(x_3); +x_255 = l_Lean_Elab_Tactic_unfoldDefinition_x3f(x_6, x_3, x_253); if (lean_obj_tag(x_255) == 0) { lean_object* x_256; -lean_dec(x_251); -lean_inc(x_4); -lean_inc(x_1); -x_256 = l_Lean_Elab_Tactic_unfoldDefinition_x3f(x_1, x_7, x_4, x_254); +x_256 = lean_ctor_get(x_255, 0); +lean_inc(x_256); if (lean_obj_tag(x_256) == 0) { -lean_object* x_257; -x_257 = lean_ctor_get(x_256, 0); -lean_inc(x_257); -if (lean_obj_tag(x_257) == 0) -{ -uint8_t x_258; -lean_dec(x_4); -lean_dec(x_2); +uint8_t x_257; +lean_dec(x_3); lean_dec(x_1); -x_258 = !lean_is_exclusive(x_256); -if (x_258 == 0) +x_257 = !lean_is_exclusive(x_255); +if (x_257 == 0) { -lean_object* x_259; lean_object* x_260; -x_259 = lean_ctor_get(x_256, 0); -lean_dec(x_259); -x_260 = lean_box(0); -lean_ctor_set(x_256, 0, x_260); -return x_256; +lean_object* x_258; lean_object* x_259; +x_258 = lean_ctor_get(x_255, 0); +lean_dec(x_258); +x_259 = lean_box(0); +lean_ctor_set(x_255, 0, x_259); +return x_255; } else { -lean_object* x_261; lean_object* x_262; lean_object* x_263; -x_261 = lean_ctor_get(x_256, 1); -lean_inc(x_261); -lean_dec(x_256); -x_262 = lean_box(0); -x_263 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_263, 0, x_262); -lean_ctor_set(x_263, 1, x_261); -return x_263; +lean_object* x_260; lean_object* x_261; lean_object* x_262; +x_260 = lean_ctor_get(x_255, 1); +lean_inc(x_260); +lean_dec(x_255); +x_261 = lean_box(0); +x_262 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_262, 0, x_261); +lean_ctor_set(x_262, 1, x_260); +return x_262; } } else { -lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; uint8_t x_279; uint8_t x_280; uint8_t x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; uint8_t x_285; lean_object* x_286; -x_264 = lean_ctor_get(x_4, 0); +lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; uint8_t x_277; uint8_t x_278; uint8_t x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; uint8_t x_284; lean_object* x_285; +x_263 = lean_ctor_get(x_3, 0); +lean_inc(x_263); +x_264 = lean_ctor_get(x_263, 0); lean_inc(x_264); -x_265 = lean_ctor_get(x_264, 0); +x_265 = lean_ctor_get(x_255, 1); lean_inc(x_265); -x_266 = lean_ctor_get(x_256, 1); +lean_dec(x_255); +x_266 = lean_ctor_get(x_256, 0); lean_inc(x_266); lean_dec(x_256); -x_267 = lean_ctor_get(x_257, 0); +x_267 = lean_ctor_get(x_3, 1); lean_inc(x_267); -lean_dec(x_257); -x_268 = lean_ctor_get(x_4, 1); +x_268 = lean_ctor_get(x_263, 1); lean_inc(x_268); -x_269 = lean_ctor_get(x_4, 2); +x_269 = lean_ctor_get(x_263, 2); lean_inc(x_269); -x_270 = lean_ctor_get(x_264, 1); +x_270 = lean_ctor_get(x_263, 3); lean_inc(x_270); -x_271 = lean_ctor_get(x_264, 2); +x_271 = lean_ctor_get(x_263, 4); lean_inc(x_271); -x_272 = lean_ctor_get(x_264, 3); +x_272 = lean_ctor_get(x_263, 5); lean_inc(x_272); -x_273 = lean_ctor_get(x_264, 4); +x_273 = lean_ctor_get(x_263, 6); lean_inc(x_273); -x_274 = lean_ctor_get(x_264, 5); +x_274 = lean_ctor_get(x_263, 7); lean_inc(x_274); -x_275 = lean_ctor_get(x_264, 6); +x_275 = lean_ctor_get(x_263, 8); lean_inc(x_275); -x_276 = lean_ctor_get(x_264, 7); +x_276 = lean_ctor_get(x_263, 9); lean_inc(x_276); -x_277 = lean_ctor_get(x_264, 8); -lean_inc(x_277); -x_278 = lean_ctor_get(x_264, 9); -lean_inc(x_278); -x_279 = lean_ctor_get_uint8(x_264, sizeof(void*)*10); -x_280 = lean_ctor_get_uint8(x_264, sizeof(void*)*10 + 1); -x_281 = lean_ctor_get_uint8(x_264, sizeof(void*)*10 + 2); -if (lean_is_exclusive(x_264)) { - lean_ctor_release(x_264, 0); - lean_ctor_release(x_264, 1); - lean_ctor_release(x_264, 2); - lean_ctor_release(x_264, 3); - lean_ctor_release(x_264, 4); - lean_ctor_release(x_264, 5); - lean_ctor_release(x_264, 6); - lean_ctor_release(x_264, 7); - lean_ctor_release(x_264, 8); - lean_ctor_release(x_264, 9); - x_282 = x_264; +x_277 = lean_ctor_get_uint8(x_263, sizeof(void*)*11); +x_278 = lean_ctor_get_uint8(x_263, sizeof(void*)*11 + 1); +x_279 = lean_ctor_get_uint8(x_263, sizeof(void*)*11 + 2); +x_280 = lean_ctor_get(x_263, 10); +lean_inc(x_280); +if (lean_is_exclusive(x_263)) { + lean_ctor_release(x_263, 0); + lean_ctor_release(x_263, 1); + lean_ctor_release(x_263, 2); + lean_ctor_release(x_263, 3); + lean_ctor_release(x_263, 4); + lean_ctor_release(x_263, 5); + lean_ctor_release(x_263, 6); + lean_ctor_release(x_263, 7); + lean_ctor_release(x_263, 8); + lean_ctor_release(x_263, 9); + lean_ctor_release(x_263, 10); + x_281 = x_263; } else { - lean_dec_ref(x_264); - x_282 = lean_box(0); + lean_dec_ref(x_263); + x_281 = lean_box(0); } -x_283 = lean_ctor_get(x_265, 3); +x_282 = lean_ctor_get(x_264, 3); +lean_inc(x_282); +x_283 = lean_ctor_get(x_264, 4); lean_inc(x_283); -x_284 = lean_ctor_get(x_265, 4); -lean_inc(x_284); -x_285 = lean_nat_dec_eq(x_283, x_284); -if (x_285 == 0) +x_284 = lean_nat_dec_eq(x_282, x_283); +if (x_284 == 0) { -lean_dec(x_4); -x_286 = x_266; -goto block_304; +lean_dec(x_3); +x_285 = x_265; +goto block_303; } else { -lean_object* x_305; lean_object* x_306; -x_305 = l_Lean_Meta_withIncRecDepth___rarg___closed__2; -lean_inc(x_1); -x_306 = l_Lean_Elab_Tactic_throwError___rarg(x_1, x_305, x_4, x_266); -if (lean_obj_tag(x_306) == 0) +lean_object* x_304; lean_object* x_305; +x_304 = l_Lean_Meta_withIncRecDepth___rarg___closed__2; +x_305 = l_Lean_Elab_Tactic_throwError___rarg(x_304, x_3, x_265); +if (lean_obj_tag(x_305) == 0) { -lean_object* x_307; -x_307 = lean_ctor_get(x_306, 1); -lean_inc(x_307); -lean_dec(x_306); -x_286 = x_307; -goto block_304; +lean_object* x_306; +x_306 = lean_ctor_get(x_305, 1); +lean_inc(x_306); +lean_dec(x_305); +x_285 = x_306; +goto block_303; } else { -uint8_t x_308; -lean_dec(x_284); +uint8_t x_307; lean_dec(x_283); lean_dec(x_282); -lean_dec(x_278); -lean_dec(x_277); +lean_dec(x_281); +lean_dec(x_280); lean_dec(x_276); lean_dec(x_275); lean_dec(x_274); @@ -3130,115 +3495,115 @@ lean_dec(x_270); lean_dec(x_269); lean_dec(x_268); lean_dec(x_267); -lean_dec(x_265); -lean_dec(x_2); +lean_dec(x_266); +lean_dec(x_264); lean_dec(x_1); -x_308 = !lean_is_exclusive(x_306); -if (x_308 == 0) +x_307 = !lean_is_exclusive(x_305); +if (x_307 == 0) { -return x_306; +return x_305; } else { -lean_object* x_309; lean_object* x_310; lean_object* x_311; -x_309 = lean_ctor_get(x_306, 0); -x_310 = lean_ctor_get(x_306, 1); -lean_inc(x_310); +lean_object* x_308; lean_object* x_309; lean_object* x_310; +x_308 = lean_ctor_get(x_305, 0); +x_309 = lean_ctor_get(x_305, 1); lean_inc(x_309); -lean_dec(x_306); -x_311 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_311, 0, x_309); -lean_ctor_set(x_311, 1, x_310); -return x_311; +lean_inc(x_308); +lean_dec(x_305); +x_310 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_310, 0, x_308); +lean_ctor_set(x_310, 1, x_309); +return x_310; } } } -block_304: +block_303: { -uint8_t x_287; -x_287 = !lean_is_exclusive(x_265); -if (x_287 == 0) +uint8_t x_286; +x_286 = !lean_is_exclusive(x_264); +if (x_286 == 0) { -lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; -x_288 = lean_ctor_get(x_265, 4); +lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; +x_287 = lean_ctor_get(x_264, 4); +lean_dec(x_287); +x_288 = lean_ctor_get(x_264, 3); lean_dec(x_288); -x_289 = lean_ctor_get(x_265, 3); -lean_dec(x_289); -x_290 = lean_unsigned_to_nat(1u); -x_291 = lean_nat_add(x_283, x_290); -lean_dec(x_283); -lean_ctor_set(x_265, 3, x_291); -if (lean_is_scalar(x_282)) { - x_292 = lean_alloc_ctor(0, 10, 3); +x_289 = lean_unsigned_to_nat(1u); +x_290 = lean_nat_add(x_282, x_289); +lean_dec(x_282); +lean_ctor_set(x_264, 3, x_290); +if (lean_is_scalar(x_281)) { + x_291 = lean_alloc_ctor(0, 11, 3); } else { - x_292 = x_282; + x_291 = x_281; } -lean_ctor_set(x_292, 0, x_265); -lean_ctor_set(x_292, 1, x_270); -lean_ctor_set(x_292, 2, x_271); -lean_ctor_set(x_292, 3, x_272); -lean_ctor_set(x_292, 4, x_273); -lean_ctor_set(x_292, 5, x_274); -lean_ctor_set(x_292, 6, x_275); -lean_ctor_set(x_292, 7, x_276); -lean_ctor_set(x_292, 8, x_277); -lean_ctor_set(x_292, 9, x_278); -lean_ctor_set_uint8(x_292, sizeof(void*)*10, x_279); -lean_ctor_set_uint8(x_292, sizeof(void*)*10 + 1, x_280); -lean_ctor_set_uint8(x_292, sizeof(void*)*10 + 2, x_281); -x_293 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_293, 0, x_292); -lean_ctor_set(x_293, 1, x_268); -lean_ctor_set(x_293, 2, x_269); -x_3 = x_267; -x_4 = x_293; -x_5 = x_286; +lean_ctor_set(x_291, 0, x_264); +lean_ctor_set(x_291, 1, x_268); +lean_ctor_set(x_291, 2, x_269); +lean_ctor_set(x_291, 3, x_270); +lean_ctor_set(x_291, 4, x_271); +lean_ctor_set(x_291, 5, x_272); +lean_ctor_set(x_291, 6, x_273); +lean_ctor_set(x_291, 7, x_274); +lean_ctor_set(x_291, 8, x_275); +lean_ctor_set(x_291, 9, x_276); +lean_ctor_set(x_291, 10, x_280); +lean_ctor_set_uint8(x_291, sizeof(void*)*11, x_277); +lean_ctor_set_uint8(x_291, sizeof(void*)*11 + 1, x_278); +lean_ctor_set_uint8(x_291, sizeof(void*)*11 + 2, x_279); +x_292 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_292, 0, x_291); +lean_ctor_set(x_292, 1, x_267); +x_2 = x_266; +x_3 = x_292; +x_4 = x_285; goto _start; } else { -lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; -x_295 = lean_ctor_get(x_265, 0); -x_296 = lean_ctor_get(x_265, 1); -x_297 = lean_ctor_get(x_265, 2); -lean_inc(x_297); +lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; +x_294 = lean_ctor_get(x_264, 0); +x_295 = lean_ctor_get(x_264, 1); +x_296 = lean_ctor_get(x_264, 2); lean_inc(x_296); lean_inc(x_295); -lean_dec(x_265); -x_298 = lean_unsigned_to_nat(1u); -x_299 = lean_nat_add(x_283, x_298); -lean_dec(x_283); -x_300 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_300, 0, x_295); -lean_ctor_set(x_300, 1, x_296); -lean_ctor_set(x_300, 2, x_297); -lean_ctor_set(x_300, 3, x_299); -lean_ctor_set(x_300, 4, x_284); -if (lean_is_scalar(x_282)) { - x_301 = lean_alloc_ctor(0, 10, 3); +lean_inc(x_294); +lean_dec(x_264); +x_297 = lean_unsigned_to_nat(1u); +x_298 = lean_nat_add(x_282, x_297); +lean_dec(x_282); +x_299 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_299, 0, x_294); +lean_ctor_set(x_299, 1, x_295); +lean_ctor_set(x_299, 2, x_296); +lean_ctor_set(x_299, 3, x_298); +lean_ctor_set(x_299, 4, x_283); +if (lean_is_scalar(x_281)) { + x_300 = lean_alloc_ctor(0, 11, 3); } else { - x_301 = x_282; + x_300 = x_281; } +lean_ctor_set(x_300, 0, x_299); +lean_ctor_set(x_300, 1, x_268); +lean_ctor_set(x_300, 2, x_269); +lean_ctor_set(x_300, 3, x_270); +lean_ctor_set(x_300, 4, x_271); +lean_ctor_set(x_300, 5, x_272); +lean_ctor_set(x_300, 6, x_273); +lean_ctor_set(x_300, 7, x_274); +lean_ctor_set(x_300, 8, x_275); +lean_ctor_set(x_300, 9, x_276); +lean_ctor_set(x_300, 10, x_280); +lean_ctor_set_uint8(x_300, sizeof(void*)*11, x_277); +lean_ctor_set_uint8(x_300, sizeof(void*)*11 + 1, x_278); +lean_ctor_set_uint8(x_300, sizeof(void*)*11 + 2, x_279); +x_301 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_301, 0, x_300); -lean_ctor_set(x_301, 1, x_270); -lean_ctor_set(x_301, 2, x_271); -lean_ctor_set(x_301, 3, x_272); -lean_ctor_set(x_301, 4, x_273); -lean_ctor_set(x_301, 5, x_274); -lean_ctor_set(x_301, 6, x_275); -lean_ctor_set(x_301, 7, x_276); -lean_ctor_set(x_301, 8, x_277); -lean_ctor_set(x_301, 9, x_278); -lean_ctor_set_uint8(x_301, sizeof(void*)*10, x_279); -lean_ctor_set_uint8(x_301, sizeof(void*)*10 + 1, x_280); -lean_ctor_set_uint8(x_301, sizeof(void*)*10 + 2, x_281); -x_302 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_302, 0, x_301); -lean_ctor_set(x_302, 1, x_268); -lean_ctor_set(x_302, 2, x_269); -x_3 = x_267; -x_4 = x_302; -x_5 = x_286; +lean_ctor_set(x_301, 1, x_267); +x_2 = x_266; +x_3 = x_301; +x_4 = x_285; goto _start; } } @@ -3246,223 +3611,215 @@ goto _start; } else { -uint8_t x_312; -lean_dec(x_4); -lean_dec(x_2); +uint8_t x_311; +lean_dec(x_3); lean_dec(x_1); -x_312 = !lean_is_exclusive(x_256); -if (x_312 == 0) +x_311 = !lean_is_exclusive(x_255); +if (x_311 == 0) { -return x_256; +return x_255; } else { -lean_object* x_313; lean_object* x_314; lean_object* x_315; -x_313 = lean_ctor_get(x_256, 0); -x_314 = lean_ctor_get(x_256, 1); -lean_inc(x_314); +lean_object* x_312; lean_object* x_313; lean_object* x_314; +x_312 = lean_ctor_get(x_255, 0); +x_313 = lean_ctor_get(x_255, 1); lean_inc(x_313); -lean_dec(x_256); -x_315 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_315, 0, x_313); -lean_ctor_set(x_315, 1, x_314); -return x_315; +lean_inc(x_312); +lean_dec(x_255); +x_314 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_314, 0, x_312); +lean_ctor_set(x_314, 1, x_313); +return x_314; } } } else { -lean_object* x_316; lean_object* x_317; lean_object* x_380; -lean_dec(x_255); -x_316 = l_Lean_Elab_Tactic_save(x_254); -lean_inc(x_4); -lean_inc(x_1); -x_380 = l_Lean_Elab_Tactic_getMainGoal(x_1, x_4, x_254); -if (lean_obj_tag(x_380) == 0) +lean_object* x_315; lean_object* x_316; lean_object* x_379; +lean_dec(x_254); +x_315 = l_Lean_Elab_Tactic_save(x_253); +lean_inc(x_3); +x_379 = l_Lean_Elab_Tactic_getMainGoal(x_3, x_253); +if (lean_obj_tag(x_379) == 0) { -lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; -x_381 = lean_ctor_get(x_380, 0); +lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; +x_380 = lean_ctor_get(x_379, 0); +lean_inc(x_380); +x_381 = lean_ctor_get(x_379, 1); lean_inc(x_381); -x_382 = lean_ctor_get(x_380, 1); +lean_dec(x_379); +x_382 = lean_ctor_get(x_380, 0); lean_inc(x_382); lean_dec(x_380); -x_383 = lean_ctor_get(x_381, 0); -lean_inc(x_383); -lean_dec(x_381); -x_384 = lean_box(0); -x_385 = lean_alloc_closure((void*)(l_Lean_Meta_mkRecursorInfo), 4, 2); -lean_closure_set(x_385, 0, x_251); -lean_closure_set(x_385, 1, x_384); -x_386 = l___private_Lean_Elab_Tactic_Induction_12__getRecFromUsingLoop___main___closed__1; -x_387 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg), 4, 2); -lean_closure_set(x_387, 0, x_385); -lean_closure_set(x_387, 1, x_386); -lean_inc(x_1); -x_388 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 4, 2); -lean_closure_set(x_388, 0, x_1); -lean_closure_set(x_388, 1, x_387); -lean_inc(x_4); -x_389 = l_Lean_Elab_Tactic_withMVarContext___rarg(x_383, x_388, x_4, x_382); -lean_dec(x_383); -if (lean_obj_tag(x_389) == 0) +x_383 = lean_box(0); +x_384 = lean_alloc_closure((void*)(l_Lean_Meta_mkRecursorInfo), 4, 2); +lean_closure_set(x_384, 0, x_250); +lean_closure_set(x_384, 1, x_383); +x_385 = l___private_Lean_Elab_Tactic_Induction_12__getRecFromUsingLoop___main___closed__1; +x_386 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg), 4, 2); +lean_closure_set(x_386, 0, x_384); +lean_closure_set(x_386, 1, x_385); +x_387 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 3, 1); +lean_closure_set(x_387, 0, x_386); +lean_inc(x_3); +x_388 = l_Lean_Elab_Tactic_withMVarContext___rarg(x_382, x_387, x_3, x_381); +lean_dec(x_382); +if (lean_obj_tag(x_388) == 0) { -lean_dec(x_316); -lean_dec(x_7); -lean_dec(x_4); -lean_dec(x_2); +lean_dec(x_315); +lean_dec(x_6); +lean_dec(x_3); lean_dec(x_1); -return x_389; +return x_388; +} +else +{ +lean_object* x_389; +x_389 = lean_ctor_get(x_388, 1); +lean_inc(x_389); +lean_dec(x_388); +x_316 = x_389; +goto block_378; +} } else { lean_object* x_390; -x_390 = lean_ctor_get(x_389, 1); +lean_dec(x_250); +x_390 = lean_ctor_get(x_379, 1); lean_inc(x_390); -lean_dec(x_389); -x_317 = x_390; -goto block_379; +lean_dec(x_379); +x_316 = x_390; +goto block_378; } -} -else +block_378: { -lean_object* x_391; -lean_dec(x_251); -x_391 = lean_ctor_get(x_380, 1); -lean_inc(x_391); -lean_dec(x_380); -x_317 = x_391; -goto block_379; -} -block_379: +lean_object* x_317; lean_object* x_318; +x_317 = l_Lean_Elab_Tactic_restore(x_316, x_315); +lean_dec(x_315); +lean_inc(x_3); +x_318 = l_Lean_Elab_Tactic_unfoldDefinition_x3f(x_6, x_3, x_317); +if (lean_obj_tag(x_318) == 0) { -lean_object* x_318; lean_object* x_319; -x_318 = l_Lean_Elab_Tactic_restore(x_317, x_316); -lean_dec(x_316); -lean_inc(x_4); -lean_inc(x_1); -x_319 = l_Lean_Elab_Tactic_unfoldDefinition_x3f(x_1, x_7, x_4, x_318); +lean_object* x_319; +x_319 = lean_ctor_get(x_318, 0); +lean_inc(x_319); if (lean_obj_tag(x_319) == 0) { -lean_object* x_320; -x_320 = lean_ctor_get(x_319, 0); -lean_inc(x_320); -if (lean_obj_tag(x_320) == 0) -{ -uint8_t x_321; -lean_dec(x_4); -lean_dec(x_2); +uint8_t x_320; +lean_dec(x_3); lean_dec(x_1); -x_321 = !lean_is_exclusive(x_319); -if (x_321 == 0) +x_320 = !lean_is_exclusive(x_318); +if (x_320 == 0) { -lean_object* x_322; lean_object* x_323; -x_322 = lean_ctor_get(x_319, 0); -lean_dec(x_322); -x_323 = lean_box(0); -lean_ctor_set(x_319, 0, x_323); -return x_319; +lean_object* x_321; lean_object* x_322; +x_321 = lean_ctor_get(x_318, 0); +lean_dec(x_321); +x_322 = lean_box(0); +lean_ctor_set(x_318, 0, x_322); +return x_318; } else { -lean_object* x_324; lean_object* x_325; lean_object* x_326; -x_324 = lean_ctor_get(x_319, 1); -lean_inc(x_324); -lean_dec(x_319); -x_325 = lean_box(0); -x_326 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_326, 0, x_325); -lean_ctor_set(x_326, 1, x_324); -return x_326; +lean_object* x_323; lean_object* x_324; lean_object* x_325; +x_323 = lean_ctor_get(x_318, 1); +lean_inc(x_323); +lean_dec(x_318); +x_324 = lean_box(0); +x_325 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_325, 0, x_324); +lean_ctor_set(x_325, 1, x_323); +return x_325; } } else { -lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; uint8_t x_342; uint8_t x_343; uint8_t x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; uint8_t x_348; lean_object* x_349; -x_327 = lean_ctor_get(x_4, 0); +lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; uint8_t x_340; uint8_t x_341; uint8_t x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; uint8_t x_347; lean_object* x_348; +x_326 = lean_ctor_get(x_3, 0); +lean_inc(x_326); +x_327 = lean_ctor_get(x_326, 0); lean_inc(x_327); -x_328 = lean_ctor_get(x_327, 0); +x_328 = lean_ctor_get(x_318, 1); lean_inc(x_328); -x_329 = lean_ctor_get(x_319, 1); +lean_dec(x_318); +x_329 = lean_ctor_get(x_319, 0); lean_inc(x_329); lean_dec(x_319); -x_330 = lean_ctor_get(x_320, 0); +x_330 = lean_ctor_get(x_3, 1); lean_inc(x_330); -lean_dec(x_320); -x_331 = lean_ctor_get(x_4, 1); +x_331 = lean_ctor_get(x_326, 1); lean_inc(x_331); -x_332 = lean_ctor_get(x_4, 2); +x_332 = lean_ctor_get(x_326, 2); lean_inc(x_332); -x_333 = lean_ctor_get(x_327, 1); +x_333 = lean_ctor_get(x_326, 3); lean_inc(x_333); -x_334 = lean_ctor_get(x_327, 2); +x_334 = lean_ctor_get(x_326, 4); lean_inc(x_334); -x_335 = lean_ctor_get(x_327, 3); +x_335 = lean_ctor_get(x_326, 5); lean_inc(x_335); -x_336 = lean_ctor_get(x_327, 4); +x_336 = lean_ctor_get(x_326, 6); lean_inc(x_336); -x_337 = lean_ctor_get(x_327, 5); +x_337 = lean_ctor_get(x_326, 7); lean_inc(x_337); -x_338 = lean_ctor_get(x_327, 6); +x_338 = lean_ctor_get(x_326, 8); lean_inc(x_338); -x_339 = lean_ctor_get(x_327, 7); +x_339 = lean_ctor_get(x_326, 9); lean_inc(x_339); -x_340 = lean_ctor_get(x_327, 8); -lean_inc(x_340); -x_341 = lean_ctor_get(x_327, 9); -lean_inc(x_341); -x_342 = lean_ctor_get_uint8(x_327, sizeof(void*)*10); -x_343 = lean_ctor_get_uint8(x_327, sizeof(void*)*10 + 1); -x_344 = lean_ctor_get_uint8(x_327, sizeof(void*)*10 + 2); -if (lean_is_exclusive(x_327)) { - lean_ctor_release(x_327, 0); - lean_ctor_release(x_327, 1); - lean_ctor_release(x_327, 2); - lean_ctor_release(x_327, 3); - lean_ctor_release(x_327, 4); - lean_ctor_release(x_327, 5); - lean_ctor_release(x_327, 6); - lean_ctor_release(x_327, 7); - lean_ctor_release(x_327, 8); - lean_ctor_release(x_327, 9); - x_345 = x_327; +x_340 = lean_ctor_get_uint8(x_326, sizeof(void*)*11); +x_341 = lean_ctor_get_uint8(x_326, sizeof(void*)*11 + 1); +x_342 = lean_ctor_get_uint8(x_326, sizeof(void*)*11 + 2); +x_343 = lean_ctor_get(x_326, 10); +lean_inc(x_343); +if (lean_is_exclusive(x_326)) { + lean_ctor_release(x_326, 0); + lean_ctor_release(x_326, 1); + lean_ctor_release(x_326, 2); + lean_ctor_release(x_326, 3); + lean_ctor_release(x_326, 4); + lean_ctor_release(x_326, 5); + lean_ctor_release(x_326, 6); + lean_ctor_release(x_326, 7); + lean_ctor_release(x_326, 8); + lean_ctor_release(x_326, 9); + lean_ctor_release(x_326, 10); + x_344 = x_326; } else { - lean_dec_ref(x_327); - x_345 = lean_box(0); + lean_dec_ref(x_326); + x_344 = lean_box(0); } -x_346 = lean_ctor_get(x_328, 3); +x_345 = lean_ctor_get(x_327, 3); +lean_inc(x_345); +x_346 = lean_ctor_get(x_327, 4); lean_inc(x_346); -x_347 = lean_ctor_get(x_328, 4); -lean_inc(x_347); -x_348 = lean_nat_dec_eq(x_346, x_347); -if (x_348 == 0) +x_347 = lean_nat_dec_eq(x_345, x_346); +if (x_347 == 0) { -lean_dec(x_4); -x_349 = x_329; -goto block_367; +lean_dec(x_3); +x_348 = x_328; +goto block_366; } else { -lean_object* x_368; lean_object* x_369; -x_368 = l_Lean_Meta_withIncRecDepth___rarg___closed__2; -lean_inc(x_1); -x_369 = l_Lean_Elab_Tactic_throwError___rarg(x_1, x_368, x_4, x_329); -if (lean_obj_tag(x_369) == 0) +lean_object* x_367; lean_object* x_368; +x_367 = l_Lean_Meta_withIncRecDepth___rarg___closed__2; +x_368 = l_Lean_Elab_Tactic_throwError___rarg(x_367, x_3, x_328); +if (lean_obj_tag(x_368) == 0) { -lean_object* x_370; -x_370 = lean_ctor_get(x_369, 1); -lean_inc(x_370); -lean_dec(x_369); -x_349 = x_370; -goto block_367; +lean_object* x_369; +x_369 = lean_ctor_get(x_368, 1); +lean_inc(x_369); +lean_dec(x_368); +x_348 = x_369; +goto block_366; } else { -uint8_t x_371; -lean_dec(x_347); +uint8_t x_370; lean_dec(x_346); lean_dec(x_345); -lean_dec(x_341); -lean_dec(x_340); +lean_dec(x_344); +lean_dec(x_343); lean_dec(x_339); lean_dec(x_338); lean_dec(x_337); @@ -3473,115 +3830,115 @@ lean_dec(x_333); lean_dec(x_332); lean_dec(x_331); lean_dec(x_330); -lean_dec(x_328); -lean_dec(x_2); +lean_dec(x_329); +lean_dec(x_327); lean_dec(x_1); -x_371 = !lean_is_exclusive(x_369); -if (x_371 == 0) +x_370 = !lean_is_exclusive(x_368); +if (x_370 == 0) { -return x_369; +return x_368; } else { -lean_object* x_372; lean_object* x_373; lean_object* x_374; -x_372 = lean_ctor_get(x_369, 0); -x_373 = lean_ctor_get(x_369, 1); -lean_inc(x_373); +lean_object* x_371; lean_object* x_372; lean_object* x_373; +x_371 = lean_ctor_get(x_368, 0); +x_372 = lean_ctor_get(x_368, 1); lean_inc(x_372); -lean_dec(x_369); -x_374 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_374, 0, x_372); -lean_ctor_set(x_374, 1, x_373); -return x_374; +lean_inc(x_371); +lean_dec(x_368); +x_373 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_373, 0, x_371); +lean_ctor_set(x_373, 1, x_372); +return x_373; } } } -block_367: +block_366: { -uint8_t x_350; -x_350 = !lean_is_exclusive(x_328); -if (x_350 == 0) +uint8_t x_349; +x_349 = !lean_is_exclusive(x_327); +if (x_349 == 0) { -lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; -x_351 = lean_ctor_get(x_328, 4); +lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; +x_350 = lean_ctor_get(x_327, 4); +lean_dec(x_350); +x_351 = lean_ctor_get(x_327, 3); lean_dec(x_351); -x_352 = lean_ctor_get(x_328, 3); -lean_dec(x_352); -x_353 = lean_unsigned_to_nat(1u); -x_354 = lean_nat_add(x_346, x_353); -lean_dec(x_346); -lean_ctor_set(x_328, 3, x_354); -if (lean_is_scalar(x_345)) { - x_355 = lean_alloc_ctor(0, 10, 3); +x_352 = lean_unsigned_to_nat(1u); +x_353 = lean_nat_add(x_345, x_352); +lean_dec(x_345); +lean_ctor_set(x_327, 3, x_353); +if (lean_is_scalar(x_344)) { + x_354 = lean_alloc_ctor(0, 11, 3); } else { - x_355 = x_345; + x_354 = x_344; } -lean_ctor_set(x_355, 0, x_328); -lean_ctor_set(x_355, 1, x_333); -lean_ctor_set(x_355, 2, x_334); -lean_ctor_set(x_355, 3, x_335); -lean_ctor_set(x_355, 4, x_336); -lean_ctor_set(x_355, 5, x_337); -lean_ctor_set(x_355, 6, x_338); -lean_ctor_set(x_355, 7, x_339); -lean_ctor_set(x_355, 8, x_340); -lean_ctor_set(x_355, 9, x_341); -lean_ctor_set_uint8(x_355, sizeof(void*)*10, x_342); -lean_ctor_set_uint8(x_355, sizeof(void*)*10 + 1, x_343); -lean_ctor_set_uint8(x_355, sizeof(void*)*10 + 2, x_344); -x_356 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_356, 0, x_355); -lean_ctor_set(x_356, 1, x_331); -lean_ctor_set(x_356, 2, x_332); -x_3 = x_330; -x_4 = x_356; -x_5 = x_349; +lean_ctor_set(x_354, 0, x_327); +lean_ctor_set(x_354, 1, x_331); +lean_ctor_set(x_354, 2, x_332); +lean_ctor_set(x_354, 3, x_333); +lean_ctor_set(x_354, 4, x_334); +lean_ctor_set(x_354, 5, x_335); +lean_ctor_set(x_354, 6, x_336); +lean_ctor_set(x_354, 7, x_337); +lean_ctor_set(x_354, 8, x_338); +lean_ctor_set(x_354, 9, x_339); +lean_ctor_set(x_354, 10, x_343); +lean_ctor_set_uint8(x_354, sizeof(void*)*11, x_340); +lean_ctor_set_uint8(x_354, sizeof(void*)*11 + 1, x_341); +lean_ctor_set_uint8(x_354, sizeof(void*)*11 + 2, x_342); +x_355 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_355, 0, x_354); +lean_ctor_set(x_355, 1, x_330); +x_2 = x_329; +x_3 = x_355; +x_4 = x_348; goto _start; } else { -lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; -x_358 = lean_ctor_get(x_328, 0); -x_359 = lean_ctor_get(x_328, 1); -x_360 = lean_ctor_get(x_328, 2); -lean_inc(x_360); +lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; +x_357 = lean_ctor_get(x_327, 0); +x_358 = lean_ctor_get(x_327, 1); +x_359 = lean_ctor_get(x_327, 2); lean_inc(x_359); lean_inc(x_358); -lean_dec(x_328); -x_361 = lean_unsigned_to_nat(1u); -x_362 = lean_nat_add(x_346, x_361); -lean_dec(x_346); -x_363 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_363, 0, x_358); -lean_ctor_set(x_363, 1, x_359); -lean_ctor_set(x_363, 2, x_360); -lean_ctor_set(x_363, 3, x_362); -lean_ctor_set(x_363, 4, x_347); -if (lean_is_scalar(x_345)) { - x_364 = lean_alloc_ctor(0, 10, 3); +lean_inc(x_357); +lean_dec(x_327); +x_360 = lean_unsigned_to_nat(1u); +x_361 = lean_nat_add(x_345, x_360); +lean_dec(x_345); +x_362 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_362, 0, x_357); +lean_ctor_set(x_362, 1, x_358); +lean_ctor_set(x_362, 2, x_359); +lean_ctor_set(x_362, 3, x_361); +lean_ctor_set(x_362, 4, x_346); +if (lean_is_scalar(x_344)) { + x_363 = lean_alloc_ctor(0, 11, 3); } else { - x_364 = x_345; + x_363 = x_344; } +lean_ctor_set(x_363, 0, x_362); +lean_ctor_set(x_363, 1, x_331); +lean_ctor_set(x_363, 2, x_332); +lean_ctor_set(x_363, 3, x_333); +lean_ctor_set(x_363, 4, x_334); +lean_ctor_set(x_363, 5, x_335); +lean_ctor_set(x_363, 6, x_336); +lean_ctor_set(x_363, 7, x_337); +lean_ctor_set(x_363, 8, x_338); +lean_ctor_set(x_363, 9, x_339); +lean_ctor_set(x_363, 10, x_343); +lean_ctor_set_uint8(x_363, sizeof(void*)*11, x_340); +lean_ctor_set_uint8(x_363, sizeof(void*)*11 + 1, x_341); +lean_ctor_set_uint8(x_363, sizeof(void*)*11 + 2, x_342); +x_364 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_364, 0, x_363); -lean_ctor_set(x_364, 1, x_333); -lean_ctor_set(x_364, 2, x_334); -lean_ctor_set(x_364, 3, x_335); -lean_ctor_set(x_364, 4, x_336); -lean_ctor_set(x_364, 5, x_337); -lean_ctor_set(x_364, 6, x_338); -lean_ctor_set(x_364, 7, x_339); -lean_ctor_set(x_364, 8, x_340); -lean_ctor_set(x_364, 9, x_341); -lean_ctor_set_uint8(x_364, sizeof(void*)*10, x_342); -lean_ctor_set_uint8(x_364, sizeof(void*)*10 + 1, x_343); -lean_ctor_set_uint8(x_364, sizeof(void*)*10 + 2, x_344); -x_365 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_365, 0, x_364); -lean_ctor_set(x_365, 1, x_331); -lean_ctor_set(x_365, 2, x_332); -x_3 = x_330; -x_4 = x_365; -x_5 = x_349; +lean_ctor_set(x_364, 1, x_330); +x_2 = x_329; +x_3 = x_364; +x_4 = x_348; goto _start; } } @@ -3589,27 +3946,26 @@ goto _start; } else { -uint8_t x_375; -lean_dec(x_4); -lean_dec(x_2); +uint8_t x_374; +lean_dec(x_3); lean_dec(x_1); -x_375 = !lean_is_exclusive(x_319); -if (x_375 == 0) +x_374 = !lean_is_exclusive(x_318); +if (x_374 == 0) { -return x_319; +return x_318; } else { -lean_object* x_376; lean_object* x_377; lean_object* x_378; -x_376 = lean_ctor_get(x_319, 0); -x_377 = lean_ctor_get(x_319, 1); -lean_inc(x_377); +lean_object* x_375; lean_object* x_376; lean_object* x_377; +x_375 = lean_ctor_get(x_318, 0); +x_376 = lean_ctor_get(x_318, 1); lean_inc(x_376); -lean_dec(x_319); -x_378 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_378, 0, x_376); -lean_ctor_set(x_378, 1, x_377); -return x_378; +lean_inc(x_375); +lean_dec(x_318); +x_377 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_377, 0, x_375); +lean_ctor_set(x_377, 1, x_376); +return x_377; } } } @@ -3617,133 +3973,130 @@ return x_378; } case 5: { +lean_object* x_391; +lean_dec(x_8); +lean_inc(x_3); +x_391 = l_Lean_Elab_Tactic_unfoldDefinition_x3f(x_6, x_3, x_7); +if (lean_obj_tag(x_391) == 0) +{ lean_object* x_392; -lean_dec(x_9); -lean_inc(x_4); -lean_inc(x_1); -x_392 = l_Lean_Elab_Tactic_unfoldDefinition_x3f(x_1, x_7, x_4, x_8); +x_392 = lean_ctor_get(x_391, 0); +lean_inc(x_392); if (lean_obj_tag(x_392) == 0) { -lean_object* x_393; -x_393 = lean_ctor_get(x_392, 0); -lean_inc(x_393); -if (lean_obj_tag(x_393) == 0) -{ -uint8_t x_394; -lean_dec(x_4); -lean_dec(x_2); +uint8_t x_393; +lean_dec(x_3); lean_dec(x_1); -x_394 = !lean_is_exclusive(x_392); -if (x_394 == 0) +x_393 = !lean_is_exclusive(x_391); +if (x_393 == 0) { -lean_object* x_395; lean_object* x_396; -x_395 = lean_ctor_get(x_392, 0); -lean_dec(x_395); -x_396 = lean_box(0); -lean_ctor_set(x_392, 0, x_396); -return x_392; +lean_object* x_394; lean_object* x_395; +x_394 = lean_ctor_get(x_391, 0); +lean_dec(x_394); +x_395 = lean_box(0); +lean_ctor_set(x_391, 0, x_395); +return x_391; } else { -lean_object* x_397; lean_object* x_398; lean_object* x_399; -x_397 = lean_ctor_get(x_392, 1); -lean_inc(x_397); -lean_dec(x_392); -x_398 = lean_box(0); -x_399 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_399, 0, x_398); -lean_ctor_set(x_399, 1, x_397); -return x_399; +lean_object* x_396; lean_object* x_397; lean_object* x_398; +x_396 = lean_ctor_get(x_391, 1); +lean_inc(x_396); +lean_dec(x_391); +x_397 = lean_box(0); +x_398 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_398, 0, x_397); +lean_ctor_set(x_398, 1, x_396); +return x_398; } } else { -lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; uint8_t x_415; uint8_t x_416; uint8_t x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; uint8_t x_421; lean_object* x_422; -x_400 = lean_ctor_get(x_4, 0); +lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; uint8_t x_413; uint8_t x_414; uint8_t x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; uint8_t x_420; lean_object* x_421; +x_399 = lean_ctor_get(x_3, 0); +lean_inc(x_399); +x_400 = lean_ctor_get(x_399, 0); lean_inc(x_400); -x_401 = lean_ctor_get(x_400, 0); +x_401 = lean_ctor_get(x_391, 1); lean_inc(x_401); -x_402 = lean_ctor_get(x_392, 1); +lean_dec(x_391); +x_402 = lean_ctor_get(x_392, 0); lean_inc(x_402); lean_dec(x_392); -x_403 = lean_ctor_get(x_393, 0); +x_403 = lean_ctor_get(x_3, 1); lean_inc(x_403); -lean_dec(x_393); -x_404 = lean_ctor_get(x_4, 1); +x_404 = lean_ctor_get(x_399, 1); lean_inc(x_404); -x_405 = lean_ctor_get(x_4, 2); +x_405 = lean_ctor_get(x_399, 2); lean_inc(x_405); -x_406 = lean_ctor_get(x_400, 1); +x_406 = lean_ctor_get(x_399, 3); lean_inc(x_406); -x_407 = lean_ctor_get(x_400, 2); +x_407 = lean_ctor_get(x_399, 4); lean_inc(x_407); -x_408 = lean_ctor_get(x_400, 3); +x_408 = lean_ctor_get(x_399, 5); lean_inc(x_408); -x_409 = lean_ctor_get(x_400, 4); +x_409 = lean_ctor_get(x_399, 6); lean_inc(x_409); -x_410 = lean_ctor_get(x_400, 5); +x_410 = lean_ctor_get(x_399, 7); lean_inc(x_410); -x_411 = lean_ctor_get(x_400, 6); +x_411 = lean_ctor_get(x_399, 8); lean_inc(x_411); -x_412 = lean_ctor_get(x_400, 7); +x_412 = lean_ctor_get(x_399, 9); lean_inc(x_412); -x_413 = lean_ctor_get(x_400, 8); -lean_inc(x_413); -x_414 = lean_ctor_get(x_400, 9); -lean_inc(x_414); -x_415 = lean_ctor_get_uint8(x_400, sizeof(void*)*10); -x_416 = lean_ctor_get_uint8(x_400, sizeof(void*)*10 + 1); -x_417 = lean_ctor_get_uint8(x_400, sizeof(void*)*10 + 2); -if (lean_is_exclusive(x_400)) { - lean_ctor_release(x_400, 0); - lean_ctor_release(x_400, 1); - lean_ctor_release(x_400, 2); - lean_ctor_release(x_400, 3); - lean_ctor_release(x_400, 4); - lean_ctor_release(x_400, 5); - lean_ctor_release(x_400, 6); - lean_ctor_release(x_400, 7); - lean_ctor_release(x_400, 8); - lean_ctor_release(x_400, 9); - x_418 = x_400; +x_413 = lean_ctor_get_uint8(x_399, sizeof(void*)*11); +x_414 = lean_ctor_get_uint8(x_399, sizeof(void*)*11 + 1); +x_415 = lean_ctor_get_uint8(x_399, sizeof(void*)*11 + 2); +x_416 = lean_ctor_get(x_399, 10); +lean_inc(x_416); +if (lean_is_exclusive(x_399)) { + lean_ctor_release(x_399, 0); + lean_ctor_release(x_399, 1); + lean_ctor_release(x_399, 2); + lean_ctor_release(x_399, 3); + lean_ctor_release(x_399, 4); + lean_ctor_release(x_399, 5); + lean_ctor_release(x_399, 6); + lean_ctor_release(x_399, 7); + lean_ctor_release(x_399, 8); + lean_ctor_release(x_399, 9); + lean_ctor_release(x_399, 10); + x_417 = x_399; } else { - lean_dec_ref(x_400); - x_418 = lean_box(0); + lean_dec_ref(x_399); + x_417 = lean_box(0); } -x_419 = lean_ctor_get(x_401, 3); +x_418 = lean_ctor_get(x_400, 3); +lean_inc(x_418); +x_419 = lean_ctor_get(x_400, 4); lean_inc(x_419); -x_420 = lean_ctor_get(x_401, 4); -lean_inc(x_420); -x_421 = lean_nat_dec_eq(x_419, x_420); -if (x_421 == 0) +x_420 = lean_nat_dec_eq(x_418, x_419); +if (x_420 == 0) { -lean_dec(x_4); -x_422 = x_402; -goto block_440; +lean_dec(x_3); +x_421 = x_401; +goto block_439; } else { -lean_object* x_441; lean_object* x_442; -x_441 = l_Lean_Meta_withIncRecDepth___rarg___closed__2; -lean_inc(x_1); -x_442 = l_Lean_Elab_Tactic_throwError___rarg(x_1, x_441, x_4, x_402); -if (lean_obj_tag(x_442) == 0) +lean_object* x_440; lean_object* x_441; +x_440 = l_Lean_Meta_withIncRecDepth___rarg___closed__2; +x_441 = l_Lean_Elab_Tactic_throwError___rarg(x_440, x_3, x_401); +if (lean_obj_tag(x_441) == 0) { -lean_object* x_443; -x_443 = lean_ctor_get(x_442, 1); -lean_inc(x_443); -lean_dec(x_442); -x_422 = x_443; -goto block_440; +lean_object* x_442; +x_442 = lean_ctor_get(x_441, 1); +lean_inc(x_442); +lean_dec(x_441); +x_421 = x_442; +goto block_439; } else { -uint8_t x_444; -lean_dec(x_420); +uint8_t x_443; lean_dec(x_419); lean_dec(x_418); -lean_dec(x_414); -lean_dec(x_413); +lean_dec(x_417); +lean_dec(x_416); lean_dec(x_412); lean_dec(x_411); lean_dec(x_410); @@ -3754,115 +4107,115 @@ lean_dec(x_406); lean_dec(x_405); lean_dec(x_404); lean_dec(x_403); -lean_dec(x_401); -lean_dec(x_2); +lean_dec(x_402); +lean_dec(x_400); lean_dec(x_1); -x_444 = !lean_is_exclusive(x_442); -if (x_444 == 0) +x_443 = !lean_is_exclusive(x_441); +if (x_443 == 0) { -return x_442; +return x_441; } else { -lean_object* x_445; lean_object* x_446; lean_object* x_447; -x_445 = lean_ctor_get(x_442, 0); -x_446 = lean_ctor_get(x_442, 1); -lean_inc(x_446); +lean_object* x_444; lean_object* x_445; lean_object* x_446; +x_444 = lean_ctor_get(x_441, 0); +x_445 = lean_ctor_get(x_441, 1); lean_inc(x_445); -lean_dec(x_442); -x_447 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_447, 0, x_445); -lean_ctor_set(x_447, 1, x_446); -return x_447; +lean_inc(x_444); +lean_dec(x_441); +x_446 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_446, 0, x_444); +lean_ctor_set(x_446, 1, x_445); +return x_446; } } } -block_440: +block_439: { -uint8_t x_423; -x_423 = !lean_is_exclusive(x_401); -if (x_423 == 0) +uint8_t x_422; +x_422 = !lean_is_exclusive(x_400); +if (x_422 == 0) { -lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; -x_424 = lean_ctor_get(x_401, 4); +lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; +x_423 = lean_ctor_get(x_400, 4); +lean_dec(x_423); +x_424 = lean_ctor_get(x_400, 3); lean_dec(x_424); -x_425 = lean_ctor_get(x_401, 3); -lean_dec(x_425); -x_426 = lean_unsigned_to_nat(1u); -x_427 = lean_nat_add(x_419, x_426); -lean_dec(x_419); -lean_ctor_set(x_401, 3, x_427); -if (lean_is_scalar(x_418)) { - x_428 = lean_alloc_ctor(0, 10, 3); +x_425 = lean_unsigned_to_nat(1u); +x_426 = lean_nat_add(x_418, x_425); +lean_dec(x_418); +lean_ctor_set(x_400, 3, x_426); +if (lean_is_scalar(x_417)) { + x_427 = lean_alloc_ctor(0, 11, 3); } else { - x_428 = x_418; + x_427 = x_417; } -lean_ctor_set(x_428, 0, x_401); -lean_ctor_set(x_428, 1, x_406); -lean_ctor_set(x_428, 2, x_407); -lean_ctor_set(x_428, 3, x_408); -lean_ctor_set(x_428, 4, x_409); -lean_ctor_set(x_428, 5, x_410); -lean_ctor_set(x_428, 6, x_411); -lean_ctor_set(x_428, 7, x_412); -lean_ctor_set(x_428, 8, x_413); -lean_ctor_set(x_428, 9, x_414); -lean_ctor_set_uint8(x_428, sizeof(void*)*10, x_415); -lean_ctor_set_uint8(x_428, sizeof(void*)*10 + 1, x_416); -lean_ctor_set_uint8(x_428, sizeof(void*)*10 + 2, x_417); -x_429 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_429, 0, x_428); -lean_ctor_set(x_429, 1, x_404); -lean_ctor_set(x_429, 2, x_405); -x_3 = x_403; -x_4 = x_429; -x_5 = x_422; +lean_ctor_set(x_427, 0, x_400); +lean_ctor_set(x_427, 1, x_404); +lean_ctor_set(x_427, 2, x_405); +lean_ctor_set(x_427, 3, x_406); +lean_ctor_set(x_427, 4, x_407); +lean_ctor_set(x_427, 5, x_408); +lean_ctor_set(x_427, 6, x_409); +lean_ctor_set(x_427, 7, x_410); +lean_ctor_set(x_427, 8, x_411); +lean_ctor_set(x_427, 9, x_412); +lean_ctor_set(x_427, 10, x_416); +lean_ctor_set_uint8(x_427, sizeof(void*)*11, x_413); +lean_ctor_set_uint8(x_427, sizeof(void*)*11 + 1, x_414); +lean_ctor_set_uint8(x_427, sizeof(void*)*11 + 2, x_415); +x_428 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_428, 0, x_427); +lean_ctor_set(x_428, 1, x_403); +x_2 = x_402; +x_3 = x_428; +x_4 = x_421; goto _start; } else { -lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; -x_431 = lean_ctor_get(x_401, 0); -x_432 = lean_ctor_get(x_401, 1); -x_433 = lean_ctor_get(x_401, 2); -lean_inc(x_433); +lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; +x_430 = lean_ctor_get(x_400, 0); +x_431 = lean_ctor_get(x_400, 1); +x_432 = lean_ctor_get(x_400, 2); lean_inc(x_432); lean_inc(x_431); -lean_dec(x_401); -x_434 = lean_unsigned_to_nat(1u); -x_435 = lean_nat_add(x_419, x_434); -lean_dec(x_419); -x_436 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_436, 0, x_431); -lean_ctor_set(x_436, 1, x_432); -lean_ctor_set(x_436, 2, x_433); -lean_ctor_set(x_436, 3, x_435); -lean_ctor_set(x_436, 4, x_420); -if (lean_is_scalar(x_418)) { - x_437 = lean_alloc_ctor(0, 10, 3); +lean_inc(x_430); +lean_dec(x_400); +x_433 = lean_unsigned_to_nat(1u); +x_434 = lean_nat_add(x_418, x_433); +lean_dec(x_418); +x_435 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_435, 0, x_430); +lean_ctor_set(x_435, 1, x_431); +lean_ctor_set(x_435, 2, x_432); +lean_ctor_set(x_435, 3, x_434); +lean_ctor_set(x_435, 4, x_419); +if (lean_is_scalar(x_417)) { + x_436 = lean_alloc_ctor(0, 11, 3); } else { - x_437 = x_418; + x_436 = x_417; } +lean_ctor_set(x_436, 0, x_435); +lean_ctor_set(x_436, 1, x_404); +lean_ctor_set(x_436, 2, x_405); +lean_ctor_set(x_436, 3, x_406); +lean_ctor_set(x_436, 4, x_407); +lean_ctor_set(x_436, 5, x_408); +lean_ctor_set(x_436, 6, x_409); +lean_ctor_set(x_436, 7, x_410); +lean_ctor_set(x_436, 8, x_411); +lean_ctor_set(x_436, 9, x_412); +lean_ctor_set(x_436, 10, x_416); +lean_ctor_set_uint8(x_436, sizeof(void*)*11, x_413); +lean_ctor_set_uint8(x_436, sizeof(void*)*11 + 1, x_414); +lean_ctor_set_uint8(x_436, sizeof(void*)*11 + 2, x_415); +x_437 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_437, 0, x_436); -lean_ctor_set(x_437, 1, x_406); -lean_ctor_set(x_437, 2, x_407); -lean_ctor_set(x_437, 3, x_408); -lean_ctor_set(x_437, 4, x_409); -lean_ctor_set(x_437, 5, x_410); -lean_ctor_set(x_437, 6, x_411); -lean_ctor_set(x_437, 7, x_412); -lean_ctor_set(x_437, 8, x_413); -lean_ctor_set(x_437, 9, x_414); -lean_ctor_set_uint8(x_437, sizeof(void*)*10, x_415); -lean_ctor_set_uint8(x_437, sizeof(void*)*10 + 1, x_416); -lean_ctor_set_uint8(x_437, sizeof(void*)*10 + 2, x_417); -x_438 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_438, 0, x_437); -lean_ctor_set(x_438, 1, x_404); -lean_ctor_set(x_438, 2, x_405); -x_3 = x_403; -x_4 = x_438; -x_5 = x_422; +lean_ctor_set(x_437, 1, x_403); +x_2 = x_402; +x_3 = x_437; +x_4 = x_421; goto _start; } } @@ -3870,159 +4223,155 @@ goto _start; } else { -uint8_t x_448; -lean_dec(x_4); -lean_dec(x_2); +uint8_t x_447; +lean_dec(x_3); lean_dec(x_1); -x_448 = !lean_is_exclusive(x_392); -if (x_448 == 0) +x_447 = !lean_is_exclusive(x_391); +if (x_447 == 0) { -return x_392; +return x_391; } else { -lean_object* x_449; lean_object* x_450; lean_object* x_451; -x_449 = lean_ctor_get(x_392, 0); -x_450 = lean_ctor_get(x_392, 1); -lean_inc(x_450); +lean_object* x_448; lean_object* x_449; lean_object* x_450; +x_448 = lean_ctor_get(x_391, 0); +x_449 = lean_ctor_get(x_391, 1); lean_inc(x_449); -lean_dec(x_392); -x_451 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_451, 0, x_449); -lean_ctor_set(x_451, 1, x_450); -return x_451; +lean_inc(x_448); +lean_dec(x_391); +x_450 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_450, 0, x_448); +lean_ctor_set(x_450, 1, x_449); +return x_450; } } } case 6: { +lean_object* x_451; +lean_dec(x_8); +lean_inc(x_3); +x_451 = l_Lean_Elab_Tactic_unfoldDefinition_x3f(x_6, x_3, x_7); +if (lean_obj_tag(x_451) == 0) +{ lean_object* x_452; -lean_dec(x_9); -lean_inc(x_4); -lean_inc(x_1); -x_452 = l_Lean_Elab_Tactic_unfoldDefinition_x3f(x_1, x_7, x_4, x_8); +x_452 = lean_ctor_get(x_451, 0); +lean_inc(x_452); if (lean_obj_tag(x_452) == 0) { -lean_object* x_453; -x_453 = lean_ctor_get(x_452, 0); -lean_inc(x_453); -if (lean_obj_tag(x_453) == 0) -{ -uint8_t x_454; -lean_dec(x_4); -lean_dec(x_2); +uint8_t x_453; +lean_dec(x_3); lean_dec(x_1); -x_454 = !lean_is_exclusive(x_452); -if (x_454 == 0) +x_453 = !lean_is_exclusive(x_451); +if (x_453 == 0) { -lean_object* x_455; lean_object* x_456; -x_455 = lean_ctor_get(x_452, 0); -lean_dec(x_455); -x_456 = lean_box(0); -lean_ctor_set(x_452, 0, x_456); -return x_452; +lean_object* x_454; lean_object* x_455; +x_454 = lean_ctor_get(x_451, 0); +lean_dec(x_454); +x_455 = lean_box(0); +lean_ctor_set(x_451, 0, x_455); +return x_451; } else { -lean_object* x_457; lean_object* x_458; lean_object* x_459; -x_457 = lean_ctor_get(x_452, 1); -lean_inc(x_457); -lean_dec(x_452); -x_458 = lean_box(0); -x_459 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_459, 0, x_458); -lean_ctor_set(x_459, 1, x_457); -return x_459; +lean_object* x_456; lean_object* x_457; lean_object* x_458; +x_456 = lean_ctor_get(x_451, 1); +lean_inc(x_456); +lean_dec(x_451); +x_457 = lean_box(0); +x_458 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_458, 0, x_457); +lean_ctor_set(x_458, 1, x_456); +return x_458; } } else { -lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; uint8_t x_475; uint8_t x_476; uint8_t x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; uint8_t x_481; lean_object* x_482; -x_460 = lean_ctor_get(x_4, 0); +lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; uint8_t x_473; uint8_t x_474; uint8_t x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; uint8_t x_480; lean_object* x_481; +x_459 = lean_ctor_get(x_3, 0); +lean_inc(x_459); +x_460 = lean_ctor_get(x_459, 0); lean_inc(x_460); -x_461 = lean_ctor_get(x_460, 0); +x_461 = lean_ctor_get(x_451, 1); lean_inc(x_461); -x_462 = lean_ctor_get(x_452, 1); +lean_dec(x_451); +x_462 = lean_ctor_get(x_452, 0); lean_inc(x_462); lean_dec(x_452); -x_463 = lean_ctor_get(x_453, 0); +x_463 = lean_ctor_get(x_3, 1); lean_inc(x_463); -lean_dec(x_453); -x_464 = lean_ctor_get(x_4, 1); +x_464 = lean_ctor_get(x_459, 1); lean_inc(x_464); -x_465 = lean_ctor_get(x_4, 2); +x_465 = lean_ctor_get(x_459, 2); lean_inc(x_465); -x_466 = lean_ctor_get(x_460, 1); +x_466 = lean_ctor_get(x_459, 3); lean_inc(x_466); -x_467 = lean_ctor_get(x_460, 2); +x_467 = lean_ctor_get(x_459, 4); lean_inc(x_467); -x_468 = lean_ctor_get(x_460, 3); +x_468 = lean_ctor_get(x_459, 5); lean_inc(x_468); -x_469 = lean_ctor_get(x_460, 4); +x_469 = lean_ctor_get(x_459, 6); lean_inc(x_469); -x_470 = lean_ctor_get(x_460, 5); +x_470 = lean_ctor_get(x_459, 7); lean_inc(x_470); -x_471 = lean_ctor_get(x_460, 6); +x_471 = lean_ctor_get(x_459, 8); lean_inc(x_471); -x_472 = lean_ctor_get(x_460, 7); +x_472 = lean_ctor_get(x_459, 9); lean_inc(x_472); -x_473 = lean_ctor_get(x_460, 8); -lean_inc(x_473); -x_474 = lean_ctor_get(x_460, 9); -lean_inc(x_474); -x_475 = lean_ctor_get_uint8(x_460, sizeof(void*)*10); -x_476 = lean_ctor_get_uint8(x_460, sizeof(void*)*10 + 1); -x_477 = lean_ctor_get_uint8(x_460, sizeof(void*)*10 + 2); -if (lean_is_exclusive(x_460)) { - lean_ctor_release(x_460, 0); - lean_ctor_release(x_460, 1); - lean_ctor_release(x_460, 2); - lean_ctor_release(x_460, 3); - lean_ctor_release(x_460, 4); - lean_ctor_release(x_460, 5); - lean_ctor_release(x_460, 6); - lean_ctor_release(x_460, 7); - lean_ctor_release(x_460, 8); - lean_ctor_release(x_460, 9); - x_478 = x_460; +x_473 = lean_ctor_get_uint8(x_459, sizeof(void*)*11); +x_474 = lean_ctor_get_uint8(x_459, sizeof(void*)*11 + 1); +x_475 = lean_ctor_get_uint8(x_459, sizeof(void*)*11 + 2); +x_476 = lean_ctor_get(x_459, 10); +lean_inc(x_476); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + lean_ctor_release(x_459, 3); + lean_ctor_release(x_459, 4); + lean_ctor_release(x_459, 5); + lean_ctor_release(x_459, 6); + lean_ctor_release(x_459, 7); + lean_ctor_release(x_459, 8); + lean_ctor_release(x_459, 9); + lean_ctor_release(x_459, 10); + x_477 = x_459; } else { - lean_dec_ref(x_460); - x_478 = lean_box(0); + lean_dec_ref(x_459); + x_477 = lean_box(0); } -x_479 = lean_ctor_get(x_461, 3); +x_478 = lean_ctor_get(x_460, 3); +lean_inc(x_478); +x_479 = lean_ctor_get(x_460, 4); lean_inc(x_479); -x_480 = lean_ctor_get(x_461, 4); -lean_inc(x_480); -x_481 = lean_nat_dec_eq(x_479, x_480); -if (x_481 == 0) +x_480 = lean_nat_dec_eq(x_478, x_479); +if (x_480 == 0) { -lean_dec(x_4); -x_482 = x_462; -goto block_500; +lean_dec(x_3); +x_481 = x_461; +goto block_499; } else { -lean_object* x_501; lean_object* x_502; -x_501 = l_Lean_Meta_withIncRecDepth___rarg___closed__2; -lean_inc(x_1); -x_502 = l_Lean_Elab_Tactic_throwError___rarg(x_1, x_501, x_4, x_462); -if (lean_obj_tag(x_502) == 0) +lean_object* x_500; lean_object* x_501; +x_500 = l_Lean_Meta_withIncRecDepth___rarg___closed__2; +x_501 = l_Lean_Elab_Tactic_throwError___rarg(x_500, x_3, x_461); +if (lean_obj_tag(x_501) == 0) { -lean_object* x_503; -x_503 = lean_ctor_get(x_502, 1); -lean_inc(x_503); -lean_dec(x_502); -x_482 = x_503; -goto block_500; +lean_object* x_502; +x_502 = lean_ctor_get(x_501, 1); +lean_inc(x_502); +lean_dec(x_501); +x_481 = x_502; +goto block_499; } else { -uint8_t x_504; -lean_dec(x_480); +uint8_t x_503; lean_dec(x_479); lean_dec(x_478); -lean_dec(x_474); -lean_dec(x_473); +lean_dec(x_477); +lean_dec(x_476); lean_dec(x_472); lean_dec(x_471); lean_dec(x_470); @@ -4033,115 +4382,115 @@ lean_dec(x_466); lean_dec(x_465); lean_dec(x_464); lean_dec(x_463); -lean_dec(x_461); -lean_dec(x_2); +lean_dec(x_462); +lean_dec(x_460); lean_dec(x_1); -x_504 = !lean_is_exclusive(x_502); -if (x_504 == 0) +x_503 = !lean_is_exclusive(x_501); +if (x_503 == 0) { -return x_502; +return x_501; } else { -lean_object* x_505; lean_object* x_506; lean_object* x_507; -x_505 = lean_ctor_get(x_502, 0); -x_506 = lean_ctor_get(x_502, 1); -lean_inc(x_506); +lean_object* x_504; lean_object* x_505; lean_object* x_506; +x_504 = lean_ctor_get(x_501, 0); +x_505 = lean_ctor_get(x_501, 1); lean_inc(x_505); -lean_dec(x_502); -x_507 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_507, 0, x_505); -lean_ctor_set(x_507, 1, x_506); -return x_507; +lean_inc(x_504); +lean_dec(x_501); +x_506 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_506, 0, x_504); +lean_ctor_set(x_506, 1, x_505); +return x_506; } } } -block_500: +block_499: { -uint8_t x_483; -x_483 = !lean_is_exclusive(x_461); -if (x_483 == 0) +uint8_t x_482; +x_482 = !lean_is_exclusive(x_460); +if (x_482 == 0) { -lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; -x_484 = lean_ctor_get(x_461, 4); +lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; +x_483 = lean_ctor_get(x_460, 4); +lean_dec(x_483); +x_484 = lean_ctor_get(x_460, 3); lean_dec(x_484); -x_485 = lean_ctor_get(x_461, 3); -lean_dec(x_485); -x_486 = lean_unsigned_to_nat(1u); -x_487 = lean_nat_add(x_479, x_486); -lean_dec(x_479); -lean_ctor_set(x_461, 3, x_487); -if (lean_is_scalar(x_478)) { - x_488 = lean_alloc_ctor(0, 10, 3); +x_485 = lean_unsigned_to_nat(1u); +x_486 = lean_nat_add(x_478, x_485); +lean_dec(x_478); +lean_ctor_set(x_460, 3, x_486); +if (lean_is_scalar(x_477)) { + x_487 = lean_alloc_ctor(0, 11, 3); } else { - x_488 = x_478; + x_487 = x_477; } -lean_ctor_set(x_488, 0, x_461); -lean_ctor_set(x_488, 1, x_466); -lean_ctor_set(x_488, 2, x_467); -lean_ctor_set(x_488, 3, x_468); -lean_ctor_set(x_488, 4, x_469); -lean_ctor_set(x_488, 5, x_470); -lean_ctor_set(x_488, 6, x_471); -lean_ctor_set(x_488, 7, x_472); -lean_ctor_set(x_488, 8, x_473); -lean_ctor_set(x_488, 9, x_474); -lean_ctor_set_uint8(x_488, sizeof(void*)*10, x_475); -lean_ctor_set_uint8(x_488, sizeof(void*)*10 + 1, x_476); -lean_ctor_set_uint8(x_488, sizeof(void*)*10 + 2, x_477); -x_489 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_489, 0, x_488); -lean_ctor_set(x_489, 1, x_464); -lean_ctor_set(x_489, 2, x_465); -x_3 = x_463; -x_4 = x_489; -x_5 = x_482; +lean_ctor_set(x_487, 0, x_460); +lean_ctor_set(x_487, 1, x_464); +lean_ctor_set(x_487, 2, x_465); +lean_ctor_set(x_487, 3, x_466); +lean_ctor_set(x_487, 4, x_467); +lean_ctor_set(x_487, 5, x_468); +lean_ctor_set(x_487, 6, x_469); +lean_ctor_set(x_487, 7, x_470); +lean_ctor_set(x_487, 8, x_471); +lean_ctor_set(x_487, 9, x_472); +lean_ctor_set(x_487, 10, x_476); +lean_ctor_set_uint8(x_487, sizeof(void*)*11, x_473); +lean_ctor_set_uint8(x_487, sizeof(void*)*11 + 1, x_474); +lean_ctor_set_uint8(x_487, sizeof(void*)*11 + 2, x_475); +x_488 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_488, 0, x_487); +lean_ctor_set(x_488, 1, x_463); +x_2 = x_462; +x_3 = x_488; +x_4 = x_481; goto _start; } else { -lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; -x_491 = lean_ctor_get(x_461, 0); -x_492 = lean_ctor_get(x_461, 1); -x_493 = lean_ctor_get(x_461, 2); -lean_inc(x_493); +lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; +x_490 = lean_ctor_get(x_460, 0); +x_491 = lean_ctor_get(x_460, 1); +x_492 = lean_ctor_get(x_460, 2); lean_inc(x_492); lean_inc(x_491); -lean_dec(x_461); -x_494 = lean_unsigned_to_nat(1u); -x_495 = lean_nat_add(x_479, x_494); -lean_dec(x_479); -x_496 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_496, 0, x_491); -lean_ctor_set(x_496, 1, x_492); -lean_ctor_set(x_496, 2, x_493); -lean_ctor_set(x_496, 3, x_495); -lean_ctor_set(x_496, 4, x_480); -if (lean_is_scalar(x_478)) { - x_497 = lean_alloc_ctor(0, 10, 3); +lean_inc(x_490); +lean_dec(x_460); +x_493 = lean_unsigned_to_nat(1u); +x_494 = lean_nat_add(x_478, x_493); +lean_dec(x_478); +x_495 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_495, 0, x_490); +lean_ctor_set(x_495, 1, x_491); +lean_ctor_set(x_495, 2, x_492); +lean_ctor_set(x_495, 3, x_494); +lean_ctor_set(x_495, 4, x_479); +if (lean_is_scalar(x_477)) { + x_496 = lean_alloc_ctor(0, 11, 3); } else { - x_497 = x_478; + x_496 = x_477; } +lean_ctor_set(x_496, 0, x_495); +lean_ctor_set(x_496, 1, x_464); +lean_ctor_set(x_496, 2, x_465); +lean_ctor_set(x_496, 3, x_466); +lean_ctor_set(x_496, 4, x_467); +lean_ctor_set(x_496, 5, x_468); +lean_ctor_set(x_496, 6, x_469); +lean_ctor_set(x_496, 7, x_470); +lean_ctor_set(x_496, 8, x_471); +lean_ctor_set(x_496, 9, x_472); +lean_ctor_set(x_496, 10, x_476); +lean_ctor_set_uint8(x_496, sizeof(void*)*11, x_473); +lean_ctor_set_uint8(x_496, sizeof(void*)*11 + 1, x_474); +lean_ctor_set_uint8(x_496, sizeof(void*)*11 + 2, x_475); +x_497 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_497, 0, x_496); -lean_ctor_set(x_497, 1, x_466); -lean_ctor_set(x_497, 2, x_467); -lean_ctor_set(x_497, 3, x_468); -lean_ctor_set(x_497, 4, x_469); -lean_ctor_set(x_497, 5, x_470); -lean_ctor_set(x_497, 6, x_471); -lean_ctor_set(x_497, 7, x_472); -lean_ctor_set(x_497, 8, x_473); -lean_ctor_set(x_497, 9, x_474); -lean_ctor_set_uint8(x_497, sizeof(void*)*10, x_475); -lean_ctor_set_uint8(x_497, sizeof(void*)*10 + 1, x_476); -lean_ctor_set_uint8(x_497, sizeof(void*)*10 + 2, x_477); -x_498 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_498, 0, x_497); -lean_ctor_set(x_498, 1, x_464); -lean_ctor_set(x_498, 2, x_465); -x_3 = x_463; -x_4 = x_498; -x_5 = x_482; +lean_ctor_set(x_497, 1, x_463); +x_2 = x_462; +x_3 = x_497; +x_4 = x_481; goto _start; } } @@ -4149,159 +4498,155 @@ goto _start; } else { -uint8_t x_508; -lean_dec(x_4); -lean_dec(x_2); +uint8_t x_507; +lean_dec(x_3); lean_dec(x_1); -x_508 = !lean_is_exclusive(x_452); -if (x_508 == 0) +x_507 = !lean_is_exclusive(x_451); +if (x_507 == 0) { -return x_452; +return x_451; } else { -lean_object* x_509; lean_object* x_510; lean_object* x_511; -x_509 = lean_ctor_get(x_452, 0); -x_510 = lean_ctor_get(x_452, 1); -lean_inc(x_510); +lean_object* x_508; lean_object* x_509; lean_object* x_510; +x_508 = lean_ctor_get(x_451, 0); +x_509 = lean_ctor_get(x_451, 1); lean_inc(x_509); -lean_dec(x_452); -x_511 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_511, 0, x_509); -lean_ctor_set(x_511, 1, x_510); -return x_511; +lean_inc(x_508); +lean_dec(x_451); +x_510 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_510, 0, x_508); +lean_ctor_set(x_510, 1, x_509); +return x_510; } } } case 7: { +lean_object* x_511; +lean_dec(x_8); +lean_inc(x_3); +x_511 = l_Lean_Elab_Tactic_unfoldDefinition_x3f(x_6, x_3, x_7); +if (lean_obj_tag(x_511) == 0) +{ lean_object* x_512; -lean_dec(x_9); -lean_inc(x_4); -lean_inc(x_1); -x_512 = l_Lean_Elab_Tactic_unfoldDefinition_x3f(x_1, x_7, x_4, x_8); +x_512 = lean_ctor_get(x_511, 0); +lean_inc(x_512); if (lean_obj_tag(x_512) == 0) { -lean_object* x_513; -x_513 = lean_ctor_get(x_512, 0); -lean_inc(x_513); -if (lean_obj_tag(x_513) == 0) -{ -uint8_t x_514; -lean_dec(x_4); -lean_dec(x_2); +uint8_t x_513; +lean_dec(x_3); lean_dec(x_1); -x_514 = !lean_is_exclusive(x_512); -if (x_514 == 0) +x_513 = !lean_is_exclusive(x_511); +if (x_513 == 0) { -lean_object* x_515; lean_object* x_516; -x_515 = lean_ctor_get(x_512, 0); -lean_dec(x_515); -x_516 = lean_box(0); -lean_ctor_set(x_512, 0, x_516); -return x_512; +lean_object* x_514; lean_object* x_515; +x_514 = lean_ctor_get(x_511, 0); +lean_dec(x_514); +x_515 = lean_box(0); +lean_ctor_set(x_511, 0, x_515); +return x_511; } else { -lean_object* x_517; lean_object* x_518; lean_object* x_519; -x_517 = lean_ctor_get(x_512, 1); -lean_inc(x_517); -lean_dec(x_512); -x_518 = lean_box(0); -x_519 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_519, 0, x_518); -lean_ctor_set(x_519, 1, x_517); -return x_519; +lean_object* x_516; lean_object* x_517; lean_object* x_518; +x_516 = lean_ctor_get(x_511, 1); +lean_inc(x_516); +lean_dec(x_511); +x_517 = lean_box(0); +x_518 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_518, 0, x_517); +lean_ctor_set(x_518, 1, x_516); +return x_518; } } else { -lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; uint8_t x_535; uint8_t x_536; uint8_t x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; uint8_t x_541; lean_object* x_542; -x_520 = lean_ctor_get(x_4, 0); +lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; uint8_t x_533; uint8_t x_534; uint8_t x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; uint8_t x_540; lean_object* x_541; +x_519 = lean_ctor_get(x_3, 0); +lean_inc(x_519); +x_520 = lean_ctor_get(x_519, 0); lean_inc(x_520); -x_521 = lean_ctor_get(x_520, 0); +x_521 = lean_ctor_get(x_511, 1); lean_inc(x_521); -x_522 = lean_ctor_get(x_512, 1); +lean_dec(x_511); +x_522 = lean_ctor_get(x_512, 0); lean_inc(x_522); lean_dec(x_512); -x_523 = lean_ctor_get(x_513, 0); +x_523 = lean_ctor_get(x_3, 1); lean_inc(x_523); -lean_dec(x_513); -x_524 = lean_ctor_get(x_4, 1); +x_524 = lean_ctor_get(x_519, 1); lean_inc(x_524); -x_525 = lean_ctor_get(x_4, 2); +x_525 = lean_ctor_get(x_519, 2); lean_inc(x_525); -x_526 = lean_ctor_get(x_520, 1); +x_526 = lean_ctor_get(x_519, 3); lean_inc(x_526); -x_527 = lean_ctor_get(x_520, 2); +x_527 = lean_ctor_get(x_519, 4); lean_inc(x_527); -x_528 = lean_ctor_get(x_520, 3); +x_528 = lean_ctor_get(x_519, 5); lean_inc(x_528); -x_529 = lean_ctor_get(x_520, 4); +x_529 = lean_ctor_get(x_519, 6); lean_inc(x_529); -x_530 = lean_ctor_get(x_520, 5); +x_530 = lean_ctor_get(x_519, 7); lean_inc(x_530); -x_531 = lean_ctor_get(x_520, 6); +x_531 = lean_ctor_get(x_519, 8); lean_inc(x_531); -x_532 = lean_ctor_get(x_520, 7); +x_532 = lean_ctor_get(x_519, 9); lean_inc(x_532); -x_533 = lean_ctor_get(x_520, 8); -lean_inc(x_533); -x_534 = lean_ctor_get(x_520, 9); -lean_inc(x_534); -x_535 = lean_ctor_get_uint8(x_520, sizeof(void*)*10); -x_536 = lean_ctor_get_uint8(x_520, sizeof(void*)*10 + 1); -x_537 = lean_ctor_get_uint8(x_520, sizeof(void*)*10 + 2); -if (lean_is_exclusive(x_520)) { - lean_ctor_release(x_520, 0); - lean_ctor_release(x_520, 1); - lean_ctor_release(x_520, 2); - lean_ctor_release(x_520, 3); - lean_ctor_release(x_520, 4); - lean_ctor_release(x_520, 5); - lean_ctor_release(x_520, 6); - lean_ctor_release(x_520, 7); - lean_ctor_release(x_520, 8); - lean_ctor_release(x_520, 9); - x_538 = x_520; +x_533 = lean_ctor_get_uint8(x_519, sizeof(void*)*11); +x_534 = lean_ctor_get_uint8(x_519, sizeof(void*)*11 + 1); +x_535 = lean_ctor_get_uint8(x_519, sizeof(void*)*11 + 2); +x_536 = lean_ctor_get(x_519, 10); +lean_inc(x_536); +if (lean_is_exclusive(x_519)) { + lean_ctor_release(x_519, 0); + lean_ctor_release(x_519, 1); + lean_ctor_release(x_519, 2); + lean_ctor_release(x_519, 3); + lean_ctor_release(x_519, 4); + lean_ctor_release(x_519, 5); + lean_ctor_release(x_519, 6); + lean_ctor_release(x_519, 7); + lean_ctor_release(x_519, 8); + lean_ctor_release(x_519, 9); + lean_ctor_release(x_519, 10); + x_537 = x_519; } else { - lean_dec_ref(x_520); - x_538 = lean_box(0); + lean_dec_ref(x_519); + x_537 = lean_box(0); } -x_539 = lean_ctor_get(x_521, 3); +x_538 = lean_ctor_get(x_520, 3); +lean_inc(x_538); +x_539 = lean_ctor_get(x_520, 4); lean_inc(x_539); -x_540 = lean_ctor_get(x_521, 4); -lean_inc(x_540); -x_541 = lean_nat_dec_eq(x_539, x_540); -if (x_541 == 0) +x_540 = lean_nat_dec_eq(x_538, x_539); +if (x_540 == 0) { -lean_dec(x_4); -x_542 = x_522; -goto block_560; +lean_dec(x_3); +x_541 = x_521; +goto block_559; } else { -lean_object* x_561; lean_object* x_562; -x_561 = l_Lean_Meta_withIncRecDepth___rarg___closed__2; -lean_inc(x_1); -x_562 = l_Lean_Elab_Tactic_throwError___rarg(x_1, x_561, x_4, x_522); -if (lean_obj_tag(x_562) == 0) +lean_object* x_560; lean_object* x_561; +x_560 = l_Lean_Meta_withIncRecDepth___rarg___closed__2; +x_561 = l_Lean_Elab_Tactic_throwError___rarg(x_560, x_3, x_521); +if (lean_obj_tag(x_561) == 0) { -lean_object* x_563; -x_563 = lean_ctor_get(x_562, 1); -lean_inc(x_563); -lean_dec(x_562); -x_542 = x_563; -goto block_560; +lean_object* x_562; +x_562 = lean_ctor_get(x_561, 1); +lean_inc(x_562); +lean_dec(x_561); +x_541 = x_562; +goto block_559; } else { -uint8_t x_564; -lean_dec(x_540); +uint8_t x_563; lean_dec(x_539); lean_dec(x_538); -lean_dec(x_534); -lean_dec(x_533); +lean_dec(x_537); +lean_dec(x_536); lean_dec(x_532); lean_dec(x_531); lean_dec(x_530); @@ -4312,115 +4657,115 @@ lean_dec(x_526); lean_dec(x_525); lean_dec(x_524); lean_dec(x_523); -lean_dec(x_521); -lean_dec(x_2); +lean_dec(x_522); +lean_dec(x_520); lean_dec(x_1); -x_564 = !lean_is_exclusive(x_562); -if (x_564 == 0) +x_563 = !lean_is_exclusive(x_561); +if (x_563 == 0) { -return x_562; +return x_561; } else { -lean_object* x_565; lean_object* x_566; lean_object* x_567; -x_565 = lean_ctor_get(x_562, 0); -x_566 = lean_ctor_get(x_562, 1); -lean_inc(x_566); +lean_object* x_564; lean_object* x_565; lean_object* x_566; +x_564 = lean_ctor_get(x_561, 0); +x_565 = lean_ctor_get(x_561, 1); lean_inc(x_565); -lean_dec(x_562); -x_567 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_567, 0, x_565); -lean_ctor_set(x_567, 1, x_566); -return x_567; +lean_inc(x_564); +lean_dec(x_561); +x_566 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_566, 0, x_564); +lean_ctor_set(x_566, 1, x_565); +return x_566; } } } -block_560: +block_559: { -uint8_t x_543; -x_543 = !lean_is_exclusive(x_521); -if (x_543 == 0) +uint8_t x_542; +x_542 = !lean_is_exclusive(x_520); +if (x_542 == 0) { -lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; -x_544 = lean_ctor_get(x_521, 4); +lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; +x_543 = lean_ctor_get(x_520, 4); +lean_dec(x_543); +x_544 = lean_ctor_get(x_520, 3); lean_dec(x_544); -x_545 = lean_ctor_get(x_521, 3); -lean_dec(x_545); -x_546 = lean_unsigned_to_nat(1u); -x_547 = lean_nat_add(x_539, x_546); -lean_dec(x_539); -lean_ctor_set(x_521, 3, x_547); -if (lean_is_scalar(x_538)) { - x_548 = lean_alloc_ctor(0, 10, 3); +x_545 = lean_unsigned_to_nat(1u); +x_546 = lean_nat_add(x_538, x_545); +lean_dec(x_538); +lean_ctor_set(x_520, 3, x_546); +if (lean_is_scalar(x_537)) { + x_547 = lean_alloc_ctor(0, 11, 3); } else { - x_548 = x_538; + x_547 = x_537; } -lean_ctor_set(x_548, 0, x_521); -lean_ctor_set(x_548, 1, x_526); -lean_ctor_set(x_548, 2, x_527); -lean_ctor_set(x_548, 3, x_528); -lean_ctor_set(x_548, 4, x_529); -lean_ctor_set(x_548, 5, x_530); -lean_ctor_set(x_548, 6, x_531); -lean_ctor_set(x_548, 7, x_532); -lean_ctor_set(x_548, 8, x_533); -lean_ctor_set(x_548, 9, x_534); -lean_ctor_set_uint8(x_548, sizeof(void*)*10, x_535); -lean_ctor_set_uint8(x_548, sizeof(void*)*10 + 1, x_536); -lean_ctor_set_uint8(x_548, sizeof(void*)*10 + 2, x_537); -x_549 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_549, 0, x_548); -lean_ctor_set(x_549, 1, x_524); -lean_ctor_set(x_549, 2, x_525); -x_3 = x_523; -x_4 = x_549; -x_5 = x_542; +lean_ctor_set(x_547, 0, x_520); +lean_ctor_set(x_547, 1, x_524); +lean_ctor_set(x_547, 2, x_525); +lean_ctor_set(x_547, 3, x_526); +lean_ctor_set(x_547, 4, x_527); +lean_ctor_set(x_547, 5, x_528); +lean_ctor_set(x_547, 6, x_529); +lean_ctor_set(x_547, 7, x_530); +lean_ctor_set(x_547, 8, x_531); +lean_ctor_set(x_547, 9, x_532); +lean_ctor_set(x_547, 10, x_536); +lean_ctor_set_uint8(x_547, sizeof(void*)*11, x_533); +lean_ctor_set_uint8(x_547, sizeof(void*)*11 + 1, x_534); +lean_ctor_set_uint8(x_547, sizeof(void*)*11 + 2, x_535); +x_548 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_548, 0, x_547); +lean_ctor_set(x_548, 1, x_523); +x_2 = x_522; +x_3 = x_548; +x_4 = x_541; goto _start; } else { -lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; -x_551 = lean_ctor_get(x_521, 0); -x_552 = lean_ctor_get(x_521, 1); -x_553 = lean_ctor_get(x_521, 2); -lean_inc(x_553); +lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; +x_550 = lean_ctor_get(x_520, 0); +x_551 = lean_ctor_get(x_520, 1); +x_552 = lean_ctor_get(x_520, 2); lean_inc(x_552); lean_inc(x_551); -lean_dec(x_521); -x_554 = lean_unsigned_to_nat(1u); -x_555 = lean_nat_add(x_539, x_554); -lean_dec(x_539); -x_556 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_556, 0, x_551); -lean_ctor_set(x_556, 1, x_552); -lean_ctor_set(x_556, 2, x_553); -lean_ctor_set(x_556, 3, x_555); -lean_ctor_set(x_556, 4, x_540); -if (lean_is_scalar(x_538)) { - x_557 = lean_alloc_ctor(0, 10, 3); +lean_inc(x_550); +lean_dec(x_520); +x_553 = lean_unsigned_to_nat(1u); +x_554 = lean_nat_add(x_538, x_553); +lean_dec(x_538); +x_555 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_555, 0, x_550); +lean_ctor_set(x_555, 1, x_551); +lean_ctor_set(x_555, 2, x_552); +lean_ctor_set(x_555, 3, x_554); +lean_ctor_set(x_555, 4, x_539); +if (lean_is_scalar(x_537)) { + x_556 = lean_alloc_ctor(0, 11, 3); } else { - x_557 = x_538; + x_556 = x_537; } +lean_ctor_set(x_556, 0, x_555); +lean_ctor_set(x_556, 1, x_524); +lean_ctor_set(x_556, 2, x_525); +lean_ctor_set(x_556, 3, x_526); +lean_ctor_set(x_556, 4, x_527); +lean_ctor_set(x_556, 5, x_528); +lean_ctor_set(x_556, 6, x_529); +lean_ctor_set(x_556, 7, x_530); +lean_ctor_set(x_556, 8, x_531); +lean_ctor_set(x_556, 9, x_532); +lean_ctor_set(x_556, 10, x_536); +lean_ctor_set_uint8(x_556, sizeof(void*)*11, x_533); +lean_ctor_set_uint8(x_556, sizeof(void*)*11 + 1, x_534); +lean_ctor_set_uint8(x_556, sizeof(void*)*11 + 2, x_535); +x_557 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_557, 0, x_556); -lean_ctor_set(x_557, 1, x_526); -lean_ctor_set(x_557, 2, x_527); -lean_ctor_set(x_557, 3, x_528); -lean_ctor_set(x_557, 4, x_529); -lean_ctor_set(x_557, 5, x_530); -lean_ctor_set(x_557, 6, x_531); -lean_ctor_set(x_557, 7, x_532); -lean_ctor_set(x_557, 8, x_533); -lean_ctor_set(x_557, 9, x_534); -lean_ctor_set_uint8(x_557, sizeof(void*)*10, x_535); -lean_ctor_set_uint8(x_557, sizeof(void*)*10 + 1, x_536); -lean_ctor_set_uint8(x_557, sizeof(void*)*10 + 2, x_537); -x_558 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_558, 0, x_557); -lean_ctor_set(x_558, 1, x_524); -lean_ctor_set(x_558, 2, x_525); -x_3 = x_523; -x_4 = x_558; -x_5 = x_542; +lean_ctor_set(x_557, 1, x_523); +x_2 = x_522; +x_3 = x_557; +x_4 = x_541; goto _start; } } @@ -4428,159 +4773,155 @@ goto _start; } else { -uint8_t x_568; -lean_dec(x_4); -lean_dec(x_2); +uint8_t x_567; +lean_dec(x_3); lean_dec(x_1); -x_568 = !lean_is_exclusive(x_512); -if (x_568 == 0) +x_567 = !lean_is_exclusive(x_511); +if (x_567 == 0) { -return x_512; +return x_511; } else { -lean_object* x_569; lean_object* x_570; lean_object* x_571; -x_569 = lean_ctor_get(x_512, 0); -x_570 = lean_ctor_get(x_512, 1); -lean_inc(x_570); +lean_object* x_568; lean_object* x_569; lean_object* x_570; +x_568 = lean_ctor_get(x_511, 0); +x_569 = lean_ctor_get(x_511, 1); lean_inc(x_569); -lean_dec(x_512); -x_571 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_571, 0, x_569); -lean_ctor_set(x_571, 1, x_570); -return x_571; +lean_inc(x_568); +lean_dec(x_511); +x_570 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_570, 0, x_568); +lean_ctor_set(x_570, 1, x_569); +return x_570; } } } case 8: { +lean_object* x_571; +lean_dec(x_8); +lean_inc(x_3); +x_571 = l_Lean_Elab_Tactic_unfoldDefinition_x3f(x_6, x_3, x_7); +if (lean_obj_tag(x_571) == 0) +{ lean_object* x_572; -lean_dec(x_9); -lean_inc(x_4); -lean_inc(x_1); -x_572 = l_Lean_Elab_Tactic_unfoldDefinition_x3f(x_1, x_7, x_4, x_8); +x_572 = lean_ctor_get(x_571, 0); +lean_inc(x_572); if (lean_obj_tag(x_572) == 0) { -lean_object* x_573; -x_573 = lean_ctor_get(x_572, 0); -lean_inc(x_573); -if (lean_obj_tag(x_573) == 0) -{ -uint8_t x_574; -lean_dec(x_4); -lean_dec(x_2); +uint8_t x_573; +lean_dec(x_3); lean_dec(x_1); -x_574 = !lean_is_exclusive(x_572); -if (x_574 == 0) +x_573 = !lean_is_exclusive(x_571); +if (x_573 == 0) { -lean_object* x_575; lean_object* x_576; -x_575 = lean_ctor_get(x_572, 0); -lean_dec(x_575); -x_576 = lean_box(0); -lean_ctor_set(x_572, 0, x_576); -return x_572; +lean_object* x_574; lean_object* x_575; +x_574 = lean_ctor_get(x_571, 0); +lean_dec(x_574); +x_575 = lean_box(0); +lean_ctor_set(x_571, 0, x_575); +return x_571; } else { -lean_object* x_577; lean_object* x_578; lean_object* x_579; -x_577 = lean_ctor_get(x_572, 1); -lean_inc(x_577); -lean_dec(x_572); -x_578 = lean_box(0); -x_579 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_579, 0, x_578); -lean_ctor_set(x_579, 1, x_577); -return x_579; +lean_object* x_576; lean_object* x_577; lean_object* x_578; +x_576 = lean_ctor_get(x_571, 1); +lean_inc(x_576); +lean_dec(x_571); +x_577 = lean_box(0); +x_578 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_578, 0, x_577); +lean_ctor_set(x_578, 1, x_576); +return x_578; } } else { -lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; uint8_t x_595; uint8_t x_596; uint8_t x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; uint8_t x_601; lean_object* x_602; -x_580 = lean_ctor_get(x_4, 0); +lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; uint8_t x_593; uint8_t x_594; uint8_t x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; uint8_t x_600; lean_object* x_601; +x_579 = lean_ctor_get(x_3, 0); +lean_inc(x_579); +x_580 = lean_ctor_get(x_579, 0); lean_inc(x_580); -x_581 = lean_ctor_get(x_580, 0); +x_581 = lean_ctor_get(x_571, 1); lean_inc(x_581); -x_582 = lean_ctor_get(x_572, 1); +lean_dec(x_571); +x_582 = lean_ctor_get(x_572, 0); lean_inc(x_582); lean_dec(x_572); -x_583 = lean_ctor_get(x_573, 0); +x_583 = lean_ctor_get(x_3, 1); lean_inc(x_583); -lean_dec(x_573); -x_584 = lean_ctor_get(x_4, 1); +x_584 = lean_ctor_get(x_579, 1); lean_inc(x_584); -x_585 = lean_ctor_get(x_4, 2); +x_585 = lean_ctor_get(x_579, 2); lean_inc(x_585); -x_586 = lean_ctor_get(x_580, 1); +x_586 = lean_ctor_get(x_579, 3); lean_inc(x_586); -x_587 = lean_ctor_get(x_580, 2); +x_587 = lean_ctor_get(x_579, 4); lean_inc(x_587); -x_588 = lean_ctor_get(x_580, 3); +x_588 = lean_ctor_get(x_579, 5); lean_inc(x_588); -x_589 = lean_ctor_get(x_580, 4); +x_589 = lean_ctor_get(x_579, 6); lean_inc(x_589); -x_590 = lean_ctor_get(x_580, 5); +x_590 = lean_ctor_get(x_579, 7); lean_inc(x_590); -x_591 = lean_ctor_get(x_580, 6); +x_591 = lean_ctor_get(x_579, 8); lean_inc(x_591); -x_592 = lean_ctor_get(x_580, 7); +x_592 = lean_ctor_get(x_579, 9); lean_inc(x_592); -x_593 = lean_ctor_get(x_580, 8); -lean_inc(x_593); -x_594 = lean_ctor_get(x_580, 9); -lean_inc(x_594); -x_595 = lean_ctor_get_uint8(x_580, sizeof(void*)*10); -x_596 = lean_ctor_get_uint8(x_580, sizeof(void*)*10 + 1); -x_597 = lean_ctor_get_uint8(x_580, sizeof(void*)*10 + 2); -if (lean_is_exclusive(x_580)) { - lean_ctor_release(x_580, 0); - lean_ctor_release(x_580, 1); - lean_ctor_release(x_580, 2); - lean_ctor_release(x_580, 3); - lean_ctor_release(x_580, 4); - lean_ctor_release(x_580, 5); - lean_ctor_release(x_580, 6); - lean_ctor_release(x_580, 7); - lean_ctor_release(x_580, 8); - lean_ctor_release(x_580, 9); - x_598 = x_580; +x_593 = lean_ctor_get_uint8(x_579, sizeof(void*)*11); +x_594 = lean_ctor_get_uint8(x_579, sizeof(void*)*11 + 1); +x_595 = lean_ctor_get_uint8(x_579, sizeof(void*)*11 + 2); +x_596 = lean_ctor_get(x_579, 10); +lean_inc(x_596); +if (lean_is_exclusive(x_579)) { + lean_ctor_release(x_579, 0); + lean_ctor_release(x_579, 1); + lean_ctor_release(x_579, 2); + lean_ctor_release(x_579, 3); + lean_ctor_release(x_579, 4); + lean_ctor_release(x_579, 5); + lean_ctor_release(x_579, 6); + lean_ctor_release(x_579, 7); + lean_ctor_release(x_579, 8); + lean_ctor_release(x_579, 9); + lean_ctor_release(x_579, 10); + x_597 = x_579; } else { - lean_dec_ref(x_580); - x_598 = lean_box(0); + lean_dec_ref(x_579); + x_597 = lean_box(0); } -x_599 = lean_ctor_get(x_581, 3); +x_598 = lean_ctor_get(x_580, 3); +lean_inc(x_598); +x_599 = lean_ctor_get(x_580, 4); lean_inc(x_599); -x_600 = lean_ctor_get(x_581, 4); -lean_inc(x_600); -x_601 = lean_nat_dec_eq(x_599, x_600); -if (x_601 == 0) +x_600 = lean_nat_dec_eq(x_598, x_599); +if (x_600 == 0) { -lean_dec(x_4); -x_602 = x_582; -goto block_620; +lean_dec(x_3); +x_601 = x_581; +goto block_619; } else { -lean_object* x_621; lean_object* x_622; -x_621 = l_Lean_Meta_withIncRecDepth___rarg___closed__2; -lean_inc(x_1); -x_622 = l_Lean_Elab_Tactic_throwError___rarg(x_1, x_621, x_4, x_582); -if (lean_obj_tag(x_622) == 0) +lean_object* x_620; lean_object* x_621; +x_620 = l_Lean_Meta_withIncRecDepth___rarg___closed__2; +x_621 = l_Lean_Elab_Tactic_throwError___rarg(x_620, x_3, x_581); +if (lean_obj_tag(x_621) == 0) { -lean_object* x_623; -x_623 = lean_ctor_get(x_622, 1); -lean_inc(x_623); -lean_dec(x_622); -x_602 = x_623; -goto block_620; +lean_object* x_622; +x_622 = lean_ctor_get(x_621, 1); +lean_inc(x_622); +lean_dec(x_621); +x_601 = x_622; +goto block_619; } else { -uint8_t x_624; -lean_dec(x_600); +uint8_t x_623; lean_dec(x_599); lean_dec(x_598); -lean_dec(x_594); -lean_dec(x_593); +lean_dec(x_597); +lean_dec(x_596); lean_dec(x_592); lean_dec(x_591); lean_dec(x_590); @@ -4591,115 +4932,115 @@ lean_dec(x_586); lean_dec(x_585); lean_dec(x_584); lean_dec(x_583); -lean_dec(x_581); -lean_dec(x_2); +lean_dec(x_582); +lean_dec(x_580); lean_dec(x_1); -x_624 = !lean_is_exclusive(x_622); -if (x_624 == 0) +x_623 = !lean_is_exclusive(x_621); +if (x_623 == 0) { -return x_622; +return x_621; } else { -lean_object* x_625; lean_object* x_626; lean_object* x_627; -x_625 = lean_ctor_get(x_622, 0); -x_626 = lean_ctor_get(x_622, 1); -lean_inc(x_626); +lean_object* x_624; lean_object* x_625; lean_object* x_626; +x_624 = lean_ctor_get(x_621, 0); +x_625 = lean_ctor_get(x_621, 1); lean_inc(x_625); -lean_dec(x_622); -x_627 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_627, 0, x_625); -lean_ctor_set(x_627, 1, x_626); -return x_627; +lean_inc(x_624); +lean_dec(x_621); +x_626 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_626, 0, x_624); +lean_ctor_set(x_626, 1, x_625); +return x_626; } } } -block_620: +block_619: { -uint8_t x_603; -x_603 = !lean_is_exclusive(x_581); -if (x_603 == 0) +uint8_t x_602; +x_602 = !lean_is_exclusive(x_580); +if (x_602 == 0) { -lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; -x_604 = lean_ctor_get(x_581, 4); +lean_object* x_603; lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; +x_603 = lean_ctor_get(x_580, 4); +lean_dec(x_603); +x_604 = lean_ctor_get(x_580, 3); lean_dec(x_604); -x_605 = lean_ctor_get(x_581, 3); -lean_dec(x_605); -x_606 = lean_unsigned_to_nat(1u); -x_607 = lean_nat_add(x_599, x_606); -lean_dec(x_599); -lean_ctor_set(x_581, 3, x_607); -if (lean_is_scalar(x_598)) { - x_608 = lean_alloc_ctor(0, 10, 3); +x_605 = lean_unsigned_to_nat(1u); +x_606 = lean_nat_add(x_598, x_605); +lean_dec(x_598); +lean_ctor_set(x_580, 3, x_606); +if (lean_is_scalar(x_597)) { + x_607 = lean_alloc_ctor(0, 11, 3); } else { - x_608 = x_598; + x_607 = x_597; } -lean_ctor_set(x_608, 0, x_581); -lean_ctor_set(x_608, 1, x_586); -lean_ctor_set(x_608, 2, x_587); -lean_ctor_set(x_608, 3, x_588); -lean_ctor_set(x_608, 4, x_589); -lean_ctor_set(x_608, 5, x_590); -lean_ctor_set(x_608, 6, x_591); -lean_ctor_set(x_608, 7, x_592); -lean_ctor_set(x_608, 8, x_593); -lean_ctor_set(x_608, 9, x_594); -lean_ctor_set_uint8(x_608, sizeof(void*)*10, x_595); -lean_ctor_set_uint8(x_608, sizeof(void*)*10 + 1, x_596); -lean_ctor_set_uint8(x_608, sizeof(void*)*10 + 2, x_597); -x_609 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_609, 0, x_608); -lean_ctor_set(x_609, 1, x_584); -lean_ctor_set(x_609, 2, x_585); -x_3 = x_583; -x_4 = x_609; -x_5 = x_602; +lean_ctor_set(x_607, 0, x_580); +lean_ctor_set(x_607, 1, x_584); +lean_ctor_set(x_607, 2, x_585); +lean_ctor_set(x_607, 3, x_586); +lean_ctor_set(x_607, 4, x_587); +lean_ctor_set(x_607, 5, x_588); +lean_ctor_set(x_607, 6, x_589); +lean_ctor_set(x_607, 7, x_590); +lean_ctor_set(x_607, 8, x_591); +lean_ctor_set(x_607, 9, x_592); +lean_ctor_set(x_607, 10, x_596); +lean_ctor_set_uint8(x_607, sizeof(void*)*11, x_593); +lean_ctor_set_uint8(x_607, sizeof(void*)*11 + 1, x_594); +lean_ctor_set_uint8(x_607, sizeof(void*)*11 + 2, x_595); +x_608 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_608, 0, x_607); +lean_ctor_set(x_608, 1, x_583); +x_2 = x_582; +x_3 = x_608; +x_4 = x_601; goto _start; } else { -lean_object* x_611; lean_object* x_612; lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; -x_611 = lean_ctor_get(x_581, 0); -x_612 = lean_ctor_get(x_581, 1); -x_613 = lean_ctor_get(x_581, 2); -lean_inc(x_613); +lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; +x_610 = lean_ctor_get(x_580, 0); +x_611 = lean_ctor_get(x_580, 1); +x_612 = lean_ctor_get(x_580, 2); lean_inc(x_612); lean_inc(x_611); -lean_dec(x_581); -x_614 = lean_unsigned_to_nat(1u); -x_615 = lean_nat_add(x_599, x_614); -lean_dec(x_599); -x_616 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_616, 0, x_611); -lean_ctor_set(x_616, 1, x_612); -lean_ctor_set(x_616, 2, x_613); -lean_ctor_set(x_616, 3, x_615); -lean_ctor_set(x_616, 4, x_600); -if (lean_is_scalar(x_598)) { - x_617 = lean_alloc_ctor(0, 10, 3); +lean_inc(x_610); +lean_dec(x_580); +x_613 = lean_unsigned_to_nat(1u); +x_614 = lean_nat_add(x_598, x_613); +lean_dec(x_598); +x_615 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_615, 0, x_610); +lean_ctor_set(x_615, 1, x_611); +lean_ctor_set(x_615, 2, x_612); +lean_ctor_set(x_615, 3, x_614); +lean_ctor_set(x_615, 4, x_599); +if (lean_is_scalar(x_597)) { + x_616 = lean_alloc_ctor(0, 11, 3); } else { - x_617 = x_598; + x_616 = x_597; } +lean_ctor_set(x_616, 0, x_615); +lean_ctor_set(x_616, 1, x_584); +lean_ctor_set(x_616, 2, x_585); +lean_ctor_set(x_616, 3, x_586); +lean_ctor_set(x_616, 4, x_587); +lean_ctor_set(x_616, 5, x_588); +lean_ctor_set(x_616, 6, x_589); +lean_ctor_set(x_616, 7, x_590); +lean_ctor_set(x_616, 8, x_591); +lean_ctor_set(x_616, 9, x_592); +lean_ctor_set(x_616, 10, x_596); +lean_ctor_set_uint8(x_616, sizeof(void*)*11, x_593); +lean_ctor_set_uint8(x_616, sizeof(void*)*11 + 1, x_594); +lean_ctor_set_uint8(x_616, sizeof(void*)*11 + 2, x_595); +x_617 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_617, 0, x_616); -lean_ctor_set(x_617, 1, x_586); -lean_ctor_set(x_617, 2, x_587); -lean_ctor_set(x_617, 3, x_588); -lean_ctor_set(x_617, 4, x_589); -lean_ctor_set(x_617, 5, x_590); -lean_ctor_set(x_617, 6, x_591); -lean_ctor_set(x_617, 7, x_592); -lean_ctor_set(x_617, 8, x_593); -lean_ctor_set(x_617, 9, x_594); -lean_ctor_set_uint8(x_617, sizeof(void*)*10, x_595); -lean_ctor_set_uint8(x_617, sizeof(void*)*10 + 1, x_596); -lean_ctor_set_uint8(x_617, sizeof(void*)*10 + 2, x_597); -x_618 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_618, 0, x_617); -lean_ctor_set(x_618, 1, x_584); -lean_ctor_set(x_618, 2, x_585); -x_3 = x_583; -x_4 = x_618; -x_5 = x_602; +lean_ctor_set(x_617, 1, x_583); +x_2 = x_582; +x_3 = x_617; +x_4 = x_601; goto _start; } } @@ -4707,159 +5048,155 @@ goto _start; } else { -uint8_t x_628; -lean_dec(x_4); -lean_dec(x_2); +uint8_t x_627; +lean_dec(x_3); lean_dec(x_1); -x_628 = !lean_is_exclusive(x_572); -if (x_628 == 0) +x_627 = !lean_is_exclusive(x_571); +if (x_627 == 0) { -return x_572; +return x_571; } else { -lean_object* x_629; lean_object* x_630; lean_object* x_631; -x_629 = lean_ctor_get(x_572, 0); -x_630 = lean_ctor_get(x_572, 1); -lean_inc(x_630); +lean_object* x_628; lean_object* x_629; lean_object* x_630; +x_628 = lean_ctor_get(x_571, 0); +x_629 = lean_ctor_get(x_571, 1); lean_inc(x_629); -lean_dec(x_572); -x_631 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_631, 0, x_629); -lean_ctor_set(x_631, 1, x_630); -return x_631; +lean_inc(x_628); +lean_dec(x_571); +x_630 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_630, 0, x_628); +lean_ctor_set(x_630, 1, x_629); +return x_630; } } } case 9: { +lean_object* x_631; +lean_dec(x_8); +lean_inc(x_3); +x_631 = l_Lean_Elab_Tactic_unfoldDefinition_x3f(x_6, x_3, x_7); +if (lean_obj_tag(x_631) == 0) +{ lean_object* x_632; -lean_dec(x_9); -lean_inc(x_4); -lean_inc(x_1); -x_632 = l_Lean_Elab_Tactic_unfoldDefinition_x3f(x_1, x_7, x_4, x_8); +x_632 = lean_ctor_get(x_631, 0); +lean_inc(x_632); if (lean_obj_tag(x_632) == 0) { -lean_object* x_633; -x_633 = lean_ctor_get(x_632, 0); -lean_inc(x_633); -if (lean_obj_tag(x_633) == 0) -{ -uint8_t x_634; -lean_dec(x_4); -lean_dec(x_2); +uint8_t x_633; +lean_dec(x_3); lean_dec(x_1); -x_634 = !lean_is_exclusive(x_632); -if (x_634 == 0) +x_633 = !lean_is_exclusive(x_631); +if (x_633 == 0) { -lean_object* x_635; lean_object* x_636; -x_635 = lean_ctor_get(x_632, 0); -lean_dec(x_635); -x_636 = lean_box(0); -lean_ctor_set(x_632, 0, x_636); -return x_632; +lean_object* x_634; lean_object* x_635; +x_634 = lean_ctor_get(x_631, 0); +lean_dec(x_634); +x_635 = lean_box(0); +lean_ctor_set(x_631, 0, x_635); +return x_631; } else { -lean_object* x_637; lean_object* x_638; lean_object* x_639; -x_637 = lean_ctor_get(x_632, 1); -lean_inc(x_637); -lean_dec(x_632); -x_638 = lean_box(0); -x_639 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_639, 0, x_638); -lean_ctor_set(x_639, 1, x_637); -return x_639; +lean_object* x_636; lean_object* x_637; lean_object* x_638; +x_636 = lean_ctor_get(x_631, 1); +lean_inc(x_636); +lean_dec(x_631); +x_637 = lean_box(0); +x_638 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_638, 0, x_637); +lean_ctor_set(x_638, 1, x_636); +return x_638; } } else { -lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; lean_object* x_653; lean_object* x_654; uint8_t x_655; uint8_t x_656; uint8_t x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; uint8_t x_661; lean_object* x_662; -x_640 = lean_ctor_get(x_4, 0); +lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; uint8_t x_653; uint8_t x_654; uint8_t x_655; lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; uint8_t x_660; lean_object* x_661; +x_639 = lean_ctor_get(x_3, 0); +lean_inc(x_639); +x_640 = lean_ctor_get(x_639, 0); lean_inc(x_640); -x_641 = lean_ctor_get(x_640, 0); +x_641 = lean_ctor_get(x_631, 1); lean_inc(x_641); -x_642 = lean_ctor_get(x_632, 1); +lean_dec(x_631); +x_642 = lean_ctor_get(x_632, 0); lean_inc(x_642); lean_dec(x_632); -x_643 = lean_ctor_get(x_633, 0); +x_643 = lean_ctor_get(x_3, 1); lean_inc(x_643); -lean_dec(x_633); -x_644 = lean_ctor_get(x_4, 1); +x_644 = lean_ctor_get(x_639, 1); lean_inc(x_644); -x_645 = lean_ctor_get(x_4, 2); +x_645 = lean_ctor_get(x_639, 2); lean_inc(x_645); -x_646 = lean_ctor_get(x_640, 1); +x_646 = lean_ctor_get(x_639, 3); lean_inc(x_646); -x_647 = lean_ctor_get(x_640, 2); +x_647 = lean_ctor_get(x_639, 4); lean_inc(x_647); -x_648 = lean_ctor_get(x_640, 3); +x_648 = lean_ctor_get(x_639, 5); lean_inc(x_648); -x_649 = lean_ctor_get(x_640, 4); +x_649 = lean_ctor_get(x_639, 6); lean_inc(x_649); -x_650 = lean_ctor_get(x_640, 5); +x_650 = lean_ctor_get(x_639, 7); lean_inc(x_650); -x_651 = lean_ctor_get(x_640, 6); +x_651 = lean_ctor_get(x_639, 8); lean_inc(x_651); -x_652 = lean_ctor_get(x_640, 7); +x_652 = lean_ctor_get(x_639, 9); lean_inc(x_652); -x_653 = lean_ctor_get(x_640, 8); -lean_inc(x_653); -x_654 = lean_ctor_get(x_640, 9); -lean_inc(x_654); -x_655 = lean_ctor_get_uint8(x_640, sizeof(void*)*10); -x_656 = lean_ctor_get_uint8(x_640, sizeof(void*)*10 + 1); -x_657 = lean_ctor_get_uint8(x_640, sizeof(void*)*10 + 2); -if (lean_is_exclusive(x_640)) { - lean_ctor_release(x_640, 0); - lean_ctor_release(x_640, 1); - lean_ctor_release(x_640, 2); - lean_ctor_release(x_640, 3); - lean_ctor_release(x_640, 4); - lean_ctor_release(x_640, 5); - lean_ctor_release(x_640, 6); - lean_ctor_release(x_640, 7); - lean_ctor_release(x_640, 8); - lean_ctor_release(x_640, 9); - x_658 = x_640; +x_653 = lean_ctor_get_uint8(x_639, sizeof(void*)*11); +x_654 = lean_ctor_get_uint8(x_639, sizeof(void*)*11 + 1); +x_655 = lean_ctor_get_uint8(x_639, sizeof(void*)*11 + 2); +x_656 = lean_ctor_get(x_639, 10); +lean_inc(x_656); +if (lean_is_exclusive(x_639)) { + lean_ctor_release(x_639, 0); + lean_ctor_release(x_639, 1); + lean_ctor_release(x_639, 2); + lean_ctor_release(x_639, 3); + lean_ctor_release(x_639, 4); + lean_ctor_release(x_639, 5); + lean_ctor_release(x_639, 6); + lean_ctor_release(x_639, 7); + lean_ctor_release(x_639, 8); + lean_ctor_release(x_639, 9); + lean_ctor_release(x_639, 10); + x_657 = x_639; } else { - lean_dec_ref(x_640); - x_658 = lean_box(0); + lean_dec_ref(x_639); + x_657 = lean_box(0); } -x_659 = lean_ctor_get(x_641, 3); +x_658 = lean_ctor_get(x_640, 3); +lean_inc(x_658); +x_659 = lean_ctor_get(x_640, 4); lean_inc(x_659); -x_660 = lean_ctor_get(x_641, 4); -lean_inc(x_660); -x_661 = lean_nat_dec_eq(x_659, x_660); -if (x_661 == 0) +x_660 = lean_nat_dec_eq(x_658, x_659); +if (x_660 == 0) { -lean_dec(x_4); -x_662 = x_642; -goto block_680; +lean_dec(x_3); +x_661 = x_641; +goto block_679; } else { -lean_object* x_681; lean_object* x_682; -x_681 = l_Lean_Meta_withIncRecDepth___rarg___closed__2; -lean_inc(x_1); -x_682 = l_Lean_Elab_Tactic_throwError___rarg(x_1, x_681, x_4, x_642); -if (lean_obj_tag(x_682) == 0) +lean_object* x_680; lean_object* x_681; +x_680 = l_Lean_Meta_withIncRecDepth___rarg___closed__2; +x_681 = l_Lean_Elab_Tactic_throwError___rarg(x_680, x_3, x_641); +if (lean_obj_tag(x_681) == 0) { -lean_object* x_683; -x_683 = lean_ctor_get(x_682, 1); -lean_inc(x_683); -lean_dec(x_682); -x_662 = x_683; -goto block_680; +lean_object* x_682; +x_682 = lean_ctor_get(x_681, 1); +lean_inc(x_682); +lean_dec(x_681); +x_661 = x_682; +goto block_679; } else { -uint8_t x_684; -lean_dec(x_660); +uint8_t x_683; lean_dec(x_659); lean_dec(x_658); -lean_dec(x_654); -lean_dec(x_653); +lean_dec(x_657); +lean_dec(x_656); lean_dec(x_652); lean_dec(x_651); lean_dec(x_650); @@ -4870,115 +5207,115 @@ lean_dec(x_646); lean_dec(x_645); lean_dec(x_644); lean_dec(x_643); -lean_dec(x_641); -lean_dec(x_2); +lean_dec(x_642); +lean_dec(x_640); lean_dec(x_1); -x_684 = !lean_is_exclusive(x_682); -if (x_684 == 0) +x_683 = !lean_is_exclusive(x_681); +if (x_683 == 0) { -return x_682; +return x_681; } else { -lean_object* x_685; lean_object* x_686; lean_object* x_687; -x_685 = lean_ctor_get(x_682, 0); -x_686 = lean_ctor_get(x_682, 1); -lean_inc(x_686); +lean_object* x_684; lean_object* x_685; lean_object* x_686; +x_684 = lean_ctor_get(x_681, 0); +x_685 = lean_ctor_get(x_681, 1); lean_inc(x_685); -lean_dec(x_682); -x_687 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_687, 0, x_685); -lean_ctor_set(x_687, 1, x_686); -return x_687; +lean_inc(x_684); +lean_dec(x_681); +x_686 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_686, 0, x_684); +lean_ctor_set(x_686, 1, x_685); +return x_686; } } } -block_680: +block_679: { -uint8_t x_663; -x_663 = !lean_is_exclusive(x_641); -if (x_663 == 0) +uint8_t x_662; +x_662 = !lean_is_exclusive(x_640); +if (x_662 == 0) { -lean_object* x_664; lean_object* x_665; lean_object* x_666; lean_object* x_667; lean_object* x_668; lean_object* x_669; -x_664 = lean_ctor_get(x_641, 4); +lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; lean_object* x_667; lean_object* x_668; +x_663 = lean_ctor_get(x_640, 4); +lean_dec(x_663); +x_664 = lean_ctor_get(x_640, 3); lean_dec(x_664); -x_665 = lean_ctor_get(x_641, 3); -lean_dec(x_665); -x_666 = lean_unsigned_to_nat(1u); -x_667 = lean_nat_add(x_659, x_666); -lean_dec(x_659); -lean_ctor_set(x_641, 3, x_667); -if (lean_is_scalar(x_658)) { - x_668 = lean_alloc_ctor(0, 10, 3); +x_665 = lean_unsigned_to_nat(1u); +x_666 = lean_nat_add(x_658, x_665); +lean_dec(x_658); +lean_ctor_set(x_640, 3, x_666); +if (lean_is_scalar(x_657)) { + x_667 = lean_alloc_ctor(0, 11, 3); } else { - x_668 = x_658; + x_667 = x_657; } -lean_ctor_set(x_668, 0, x_641); -lean_ctor_set(x_668, 1, x_646); -lean_ctor_set(x_668, 2, x_647); -lean_ctor_set(x_668, 3, x_648); -lean_ctor_set(x_668, 4, x_649); -lean_ctor_set(x_668, 5, x_650); -lean_ctor_set(x_668, 6, x_651); -lean_ctor_set(x_668, 7, x_652); -lean_ctor_set(x_668, 8, x_653); -lean_ctor_set(x_668, 9, x_654); -lean_ctor_set_uint8(x_668, sizeof(void*)*10, x_655); -lean_ctor_set_uint8(x_668, sizeof(void*)*10 + 1, x_656); -lean_ctor_set_uint8(x_668, sizeof(void*)*10 + 2, x_657); -x_669 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_669, 0, x_668); -lean_ctor_set(x_669, 1, x_644); -lean_ctor_set(x_669, 2, x_645); -x_3 = x_643; -x_4 = x_669; -x_5 = x_662; +lean_ctor_set(x_667, 0, x_640); +lean_ctor_set(x_667, 1, x_644); +lean_ctor_set(x_667, 2, x_645); +lean_ctor_set(x_667, 3, x_646); +lean_ctor_set(x_667, 4, x_647); +lean_ctor_set(x_667, 5, x_648); +lean_ctor_set(x_667, 6, x_649); +lean_ctor_set(x_667, 7, x_650); +lean_ctor_set(x_667, 8, x_651); +lean_ctor_set(x_667, 9, x_652); +lean_ctor_set(x_667, 10, x_656); +lean_ctor_set_uint8(x_667, sizeof(void*)*11, x_653); +lean_ctor_set_uint8(x_667, sizeof(void*)*11 + 1, x_654); +lean_ctor_set_uint8(x_667, sizeof(void*)*11 + 2, x_655); +x_668 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_668, 0, x_667); +lean_ctor_set(x_668, 1, x_643); +x_2 = x_642; +x_3 = x_668; +x_4 = x_661; goto _start; } else { -lean_object* x_671; lean_object* x_672; lean_object* x_673; lean_object* x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; -x_671 = lean_ctor_get(x_641, 0); -x_672 = lean_ctor_get(x_641, 1); -x_673 = lean_ctor_get(x_641, 2); -lean_inc(x_673); +lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; lean_object* x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; +x_670 = lean_ctor_get(x_640, 0); +x_671 = lean_ctor_get(x_640, 1); +x_672 = lean_ctor_get(x_640, 2); lean_inc(x_672); lean_inc(x_671); -lean_dec(x_641); -x_674 = lean_unsigned_to_nat(1u); -x_675 = lean_nat_add(x_659, x_674); -lean_dec(x_659); -x_676 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_676, 0, x_671); -lean_ctor_set(x_676, 1, x_672); -lean_ctor_set(x_676, 2, x_673); -lean_ctor_set(x_676, 3, x_675); -lean_ctor_set(x_676, 4, x_660); -if (lean_is_scalar(x_658)) { - x_677 = lean_alloc_ctor(0, 10, 3); +lean_inc(x_670); +lean_dec(x_640); +x_673 = lean_unsigned_to_nat(1u); +x_674 = lean_nat_add(x_658, x_673); +lean_dec(x_658); +x_675 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_675, 0, x_670); +lean_ctor_set(x_675, 1, x_671); +lean_ctor_set(x_675, 2, x_672); +lean_ctor_set(x_675, 3, x_674); +lean_ctor_set(x_675, 4, x_659); +if (lean_is_scalar(x_657)) { + x_676 = lean_alloc_ctor(0, 11, 3); } else { - x_677 = x_658; + x_676 = x_657; } +lean_ctor_set(x_676, 0, x_675); +lean_ctor_set(x_676, 1, x_644); +lean_ctor_set(x_676, 2, x_645); +lean_ctor_set(x_676, 3, x_646); +lean_ctor_set(x_676, 4, x_647); +lean_ctor_set(x_676, 5, x_648); +lean_ctor_set(x_676, 6, x_649); +lean_ctor_set(x_676, 7, x_650); +lean_ctor_set(x_676, 8, x_651); +lean_ctor_set(x_676, 9, x_652); +lean_ctor_set(x_676, 10, x_656); +lean_ctor_set_uint8(x_676, sizeof(void*)*11, x_653); +lean_ctor_set_uint8(x_676, sizeof(void*)*11 + 1, x_654); +lean_ctor_set_uint8(x_676, sizeof(void*)*11 + 2, x_655); +x_677 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_677, 0, x_676); -lean_ctor_set(x_677, 1, x_646); -lean_ctor_set(x_677, 2, x_647); -lean_ctor_set(x_677, 3, x_648); -lean_ctor_set(x_677, 4, x_649); -lean_ctor_set(x_677, 5, x_650); -lean_ctor_set(x_677, 6, x_651); -lean_ctor_set(x_677, 7, x_652); -lean_ctor_set(x_677, 8, x_653); -lean_ctor_set(x_677, 9, x_654); -lean_ctor_set_uint8(x_677, sizeof(void*)*10, x_655); -lean_ctor_set_uint8(x_677, sizeof(void*)*10 + 1, x_656); -lean_ctor_set_uint8(x_677, sizeof(void*)*10 + 2, x_657); -x_678 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_678, 0, x_677); -lean_ctor_set(x_678, 1, x_644); -lean_ctor_set(x_678, 2, x_645); -x_3 = x_643; -x_4 = x_678; -x_5 = x_662; +lean_ctor_set(x_677, 1, x_643); +x_2 = x_642; +x_3 = x_677; +x_4 = x_661; goto _start; } } @@ -4986,159 +5323,155 @@ goto _start; } else { -uint8_t x_688; -lean_dec(x_4); -lean_dec(x_2); +uint8_t x_687; +lean_dec(x_3); lean_dec(x_1); -x_688 = !lean_is_exclusive(x_632); -if (x_688 == 0) +x_687 = !lean_is_exclusive(x_631); +if (x_687 == 0) { -return x_632; +return x_631; } else { -lean_object* x_689; lean_object* x_690; lean_object* x_691; -x_689 = lean_ctor_get(x_632, 0); -x_690 = lean_ctor_get(x_632, 1); -lean_inc(x_690); +lean_object* x_688; lean_object* x_689; lean_object* x_690; +x_688 = lean_ctor_get(x_631, 0); +x_689 = lean_ctor_get(x_631, 1); lean_inc(x_689); -lean_dec(x_632); -x_691 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_691, 0, x_689); -lean_ctor_set(x_691, 1, x_690); -return x_691; +lean_inc(x_688); +lean_dec(x_631); +x_690 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_690, 0, x_688); +lean_ctor_set(x_690, 1, x_689); +return x_690; } } } case 10: { +lean_object* x_691; +lean_dec(x_8); +lean_inc(x_3); +x_691 = l_Lean_Elab_Tactic_unfoldDefinition_x3f(x_6, x_3, x_7); +if (lean_obj_tag(x_691) == 0) +{ lean_object* x_692; -lean_dec(x_9); -lean_inc(x_4); -lean_inc(x_1); -x_692 = l_Lean_Elab_Tactic_unfoldDefinition_x3f(x_1, x_7, x_4, x_8); +x_692 = lean_ctor_get(x_691, 0); +lean_inc(x_692); if (lean_obj_tag(x_692) == 0) { -lean_object* x_693; -x_693 = lean_ctor_get(x_692, 0); -lean_inc(x_693); -if (lean_obj_tag(x_693) == 0) -{ -uint8_t x_694; -lean_dec(x_4); -lean_dec(x_2); +uint8_t x_693; +lean_dec(x_3); lean_dec(x_1); -x_694 = !lean_is_exclusive(x_692); -if (x_694 == 0) +x_693 = !lean_is_exclusive(x_691); +if (x_693 == 0) { -lean_object* x_695; lean_object* x_696; -x_695 = lean_ctor_get(x_692, 0); -lean_dec(x_695); -x_696 = lean_box(0); -lean_ctor_set(x_692, 0, x_696); -return x_692; +lean_object* x_694; lean_object* x_695; +x_694 = lean_ctor_get(x_691, 0); +lean_dec(x_694); +x_695 = lean_box(0); +lean_ctor_set(x_691, 0, x_695); +return x_691; } else { -lean_object* x_697; lean_object* x_698; lean_object* x_699; -x_697 = lean_ctor_get(x_692, 1); -lean_inc(x_697); -lean_dec(x_692); -x_698 = lean_box(0); -x_699 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_699, 0, x_698); -lean_ctor_set(x_699, 1, x_697); -return x_699; +lean_object* x_696; lean_object* x_697; lean_object* x_698; +x_696 = lean_ctor_get(x_691, 1); +lean_inc(x_696); +lean_dec(x_691); +x_697 = lean_box(0); +x_698 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_698, 0, x_697); +lean_ctor_set(x_698, 1, x_696); +return x_698; } } else { -lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; uint8_t x_715; uint8_t x_716; uint8_t x_717; lean_object* x_718; lean_object* x_719; lean_object* x_720; uint8_t x_721; lean_object* x_722; -x_700 = lean_ctor_get(x_4, 0); +lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; uint8_t x_713; uint8_t x_714; uint8_t x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; lean_object* x_719; uint8_t x_720; lean_object* x_721; +x_699 = lean_ctor_get(x_3, 0); +lean_inc(x_699); +x_700 = lean_ctor_get(x_699, 0); lean_inc(x_700); -x_701 = lean_ctor_get(x_700, 0); +x_701 = lean_ctor_get(x_691, 1); lean_inc(x_701); -x_702 = lean_ctor_get(x_692, 1); +lean_dec(x_691); +x_702 = lean_ctor_get(x_692, 0); lean_inc(x_702); lean_dec(x_692); -x_703 = lean_ctor_get(x_693, 0); +x_703 = lean_ctor_get(x_3, 1); lean_inc(x_703); -lean_dec(x_693); -x_704 = lean_ctor_get(x_4, 1); +x_704 = lean_ctor_get(x_699, 1); lean_inc(x_704); -x_705 = lean_ctor_get(x_4, 2); +x_705 = lean_ctor_get(x_699, 2); lean_inc(x_705); -x_706 = lean_ctor_get(x_700, 1); +x_706 = lean_ctor_get(x_699, 3); lean_inc(x_706); -x_707 = lean_ctor_get(x_700, 2); +x_707 = lean_ctor_get(x_699, 4); lean_inc(x_707); -x_708 = lean_ctor_get(x_700, 3); +x_708 = lean_ctor_get(x_699, 5); lean_inc(x_708); -x_709 = lean_ctor_get(x_700, 4); +x_709 = lean_ctor_get(x_699, 6); lean_inc(x_709); -x_710 = lean_ctor_get(x_700, 5); +x_710 = lean_ctor_get(x_699, 7); lean_inc(x_710); -x_711 = lean_ctor_get(x_700, 6); +x_711 = lean_ctor_get(x_699, 8); lean_inc(x_711); -x_712 = lean_ctor_get(x_700, 7); +x_712 = lean_ctor_get(x_699, 9); lean_inc(x_712); -x_713 = lean_ctor_get(x_700, 8); -lean_inc(x_713); -x_714 = lean_ctor_get(x_700, 9); -lean_inc(x_714); -x_715 = lean_ctor_get_uint8(x_700, sizeof(void*)*10); -x_716 = lean_ctor_get_uint8(x_700, sizeof(void*)*10 + 1); -x_717 = lean_ctor_get_uint8(x_700, sizeof(void*)*10 + 2); -if (lean_is_exclusive(x_700)) { - lean_ctor_release(x_700, 0); - lean_ctor_release(x_700, 1); - lean_ctor_release(x_700, 2); - lean_ctor_release(x_700, 3); - lean_ctor_release(x_700, 4); - lean_ctor_release(x_700, 5); - lean_ctor_release(x_700, 6); - lean_ctor_release(x_700, 7); - lean_ctor_release(x_700, 8); - lean_ctor_release(x_700, 9); - x_718 = x_700; +x_713 = lean_ctor_get_uint8(x_699, sizeof(void*)*11); +x_714 = lean_ctor_get_uint8(x_699, sizeof(void*)*11 + 1); +x_715 = lean_ctor_get_uint8(x_699, sizeof(void*)*11 + 2); +x_716 = lean_ctor_get(x_699, 10); +lean_inc(x_716); +if (lean_is_exclusive(x_699)) { + lean_ctor_release(x_699, 0); + lean_ctor_release(x_699, 1); + lean_ctor_release(x_699, 2); + lean_ctor_release(x_699, 3); + lean_ctor_release(x_699, 4); + lean_ctor_release(x_699, 5); + lean_ctor_release(x_699, 6); + lean_ctor_release(x_699, 7); + lean_ctor_release(x_699, 8); + lean_ctor_release(x_699, 9); + lean_ctor_release(x_699, 10); + x_717 = x_699; } else { - lean_dec_ref(x_700); - x_718 = lean_box(0); + lean_dec_ref(x_699); + x_717 = lean_box(0); } -x_719 = lean_ctor_get(x_701, 3); +x_718 = lean_ctor_get(x_700, 3); +lean_inc(x_718); +x_719 = lean_ctor_get(x_700, 4); lean_inc(x_719); -x_720 = lean_ctor_get(x_701, 4); -lean_inc(x_720); -x_721 = lean_nat_dec_eq(x_719, x_720); -if (x_721 == 0) +x_720 = lean_nat_dec_eq(x_718, x_719); +if (x_720 == 0) { -lean_dec(x_4); -x_722 = x_702; -goto block_740; +lean_dec(x_3); +x_721 = x_701; +goto block_739; } else { -lean_object* x_741; lean_object* x_742; -x_741 = l_Lean_Meta_withIncRecDepth___rarg___closed__2; -lean_inc(x_1); -x_742 = l_Lean_Elab_Tactic_throwError___rarg(x_1, x_741, x_4, x_702); -if (lean_obj_tag(x_742) == 0) +lean_object* x_740; lean_object* x_741; +x_740 = l_Lean_Meta_withIncRecDepth___rarg___closed__2; +x_741 = l_Lean_Elab_Tactic_throwError___rarg(x_740, x_3, x_701); +if (lean_obj_tag(x_741) == 0) { -lean_object* x_743; -x_743 = lean_ctor_get(x_742, 1); -lean_inc(x_743); -lean_dec(x_742); -x_722 = x_743; -goto block_740; +lean_object* x_742; +x_742 = lean_ctor_get(x_741, 1); +lean_inc(x_742); +lean_dec(x_741); +x_721 = x_742; +goto block_739; } else { -uint8_t x_744; -lean_dec(x_720); +uint8_t x_743; lean_dec(x_719); lean_dec(x_718); -lean_dec(x_714); -lean_dec(x_713); +lean_dec(x_717); +lean_dec(x_716); lean_dec(x_712); lean_dec(x_711); lean_dec(x_710); @@ -5149,115 +5482,115 @@ lean_dec(x_706); lean_dec(x_705); lean_dec(x_704); lean_dec(x_703); -lean_dec(x_701); -lean_dec(x_2); +lean_dec(x_702); +lean_dec(x_700); lean_dec(x_1); -x_744 = !lean_is_exclusive(x_742); -if (x_744 == 0) +x_743 = !lean_is_exclusive(x_741); +if (x_743 == 0) { -return x_742; +return x_741; } else { -lean_object* x_745; lean_object* x_746; lean_object* x_747; -x_745 = lean_ctor_get(x_742, 0); -x_746 = lean_ctor_get(x_742, 1); -lean_inc(x_746); +lean_object* x_744; lean_object* x_745; lean_object* x_746; +x_744 = lean_ctor_get(x_741, 0); +x_745 = lean_ctor_get(x_741, 1); lean_inc(x_745); -lean_dec(x_742); -x_747 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_747, 0, x_745); -lean_ctor_set(x_747, 1, x_746); -return x_747; +lean_inc(x_744); +lean_dec(x_741); +x_746 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_746, 0, x_744); +lean_ctor_set(x_746, 1, x_745); +return x_746; } } } -block_740: +block_739: { -uint8_t x_723; -x_723 = !lean_is_exclusive(x_701); -if (x_723 == 0) +uint8_t x_722; +x_722 = !lean_is_exclusive(x_700); +if (x_722 == 0) { -lean_object* x_724; lean_object* x_725; lean_object* x_726; lean_object* x_727; lean_object* x_728; lean_object* x_729; -x_724 = lean_ctor_get(x_701, 4); +lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_726; lean_object* x_727; lean_object* x_728; +x_723 = lean_ctor_get(x_700, 4); +lean_dec(x_723); +x_724 = lean_ctor_get(x_700, 3); lean_dec(x_724); -x_725 = lean_ctor_get(x_701, 3); -lean_dec(x_725); -x_726 = lean_unsigned_to_nat(1u); -x_727 = lean_nat_add(x_719, x_726); -lean_dec(x_719); -lean_ctor_set(x_701, 3, x_727); -if (lean_is_scalar(x_718)) { - x_728 = lean_alloc_ctor(0, 10, 3); +x_725 = lean_unsigned_to_nat(1u); +x_726 = lean_nat_add(x_718, x_725); +lean_dec(x_718); +lean_ctor_set(x_700, 3, x_726); +if (lean_is_scalar(x_717)) { + x_727 = lean_alloc_ctor(0, 11, 3); } else { - x_728 = x_718; + x_727 = x_717; } -lean_ctor_set(x_728, 0, x_701); -lean_ctor_set(x_728, 1, x_706); -lean_ctor_set(x_728, 2, x_707); -lean_ctor_set(x_728, 3, x_708); -lean_ctor_set(x_728, 4, x_709); -lean_ctor_set(x_728, 5, x_710); -lean_ctor_set(x_728, 6, x_711); -lean_ctor_set(x_728, 7, x_712); -lean_ctor_set(x_728, 8, x_713); -lean_ctor_set(x_728, 9, x_714); -lean_ctor_set_uint8(x_728, sizeof(void*)*10, x_715); -lean_ctor_set_uint8(x_728, sizeof(void*)*10 + 1, x_716); -lean_ctor_set_uint8(x_728, sizeof(void*)*10 + 2, x_717); -x_729 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_729, 0, x_728); -lean_ctor_set(x_729, 1, x_704); -lean_ctor_set(x_729, 2, x_705); -x_3 = x_703; -x_4 = x_729; -x_5 = x_722; +lean_ctor_set(x_727, 0, x_700); +lean_ctor_set(x_727, 1, x_704); +lean_ctor_set(x_727, 2, x_705); +lean_ctor_set(x_727, 3, x_706); +lean_ctor_set(x_727, 4, x_707); +lean_ctor_set(x_727, 5, x_708); +lean_ctor_set(x_727, 6, x_709); +lean_ctor_set(x_727, 7, x_710); +lean_ctor_set(x_727, 8, x_711); +lean_ctor_set(x_727, 9, x_712); +lean_ctor_set(x_727, 10, x_716); +lean_ctor_set_uint8(x_727, sizeof(void*)*11, x_713); +lean_ctor_set_uint8(x_727, sizeof(void*)*11 + 1, x_714); +lean_ctor_set_uint8(x_727, sizeof(void*)*11 + 2, x_715); +x_728 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_728, 0, x_727); +lean_ctor_set(x_728, 1, x_703); +x_2 = x_702; +x_3 = x_728; +x_4 = x_721; goto _start; } else { -lean_object* x_731; lean_object* x_732; lean_object* x_733; lean_object* x_734; lean_object* x_735; lean_object* x_736; lean_object* x_737; lean_object* x_738; -x_731 = lean_ctor_get(x_701, 0); -x_732 = lean_ctor_get(x_701, 1); -x_733 = lean_ctor_get(x_701, 2); -lean_inc(x_733); +lean_object* x_730; lean_object* x_731; lean_object* x_732; lean_object* x_733; lean_object* x_734; lean_object* x_735; lean_object* x_736; lean_object* x_737; +x_730 = lean_ctor_get(x_700, 0); +x_731 = lean_ctor_get(x_700, 1); +x_732 = lean_ctor_get(x_700, 2); lean_inc(x_732); lean_inc(x_731); -lean_dec(x_701); -x_734 = lean_unsigned_to_nat(1u); -x_735 = lean_nat_add(x_719, x_734); -lean_dec(x_719); -x_736 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_736, 0, x_731); -lean_ctor_set(x_736, 1, x_732); -lean_ctor_set(x_736, 2, x_733); -lean_ctor_set(x_736, 3, x_735); -lean_ctor_set(x_736, 4, x_720); -if (lean_is_scalar(x_718)) { - x_737 = lean_alloc_ctor(0, 10, 3); +lean_inc(x_730); +lean_dec(x_700); +x_733 = lean_unsigned_to_nat(1u); +x_734 = lean_nat_add(x_718, x_733); +lean_dec(x_718); +x_735 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_735, 0, x_730); +lean_ctor_set(x_735, 1, x_731); +lean_ctor_set(x_735, 2, x_732); +lean_ctor_set(x_735, 3, x_734); +lean_ctor_set(x_735, 4, x_719); +if (lean_is_scalar(x_717)) { + x_736 = lean_alloc_ctor(0, 11, 3); } else { - x_737 = x_718; + x_736 = x_717; } +lean_ctor_set(x_736, 0, x_735); +lean_ctor_set(x_736, 1, x_704); +lean_ctor_set(x_736, 2, x_705); +lean_ctor_set(x_736, 3, x_706); +lean_ctor_set(x_736, 4, x_707); +lean_ctor_set(x_736, 5, x_708); +lean_ctor_set(x_736, 6, x_709); +lean_ctor_set(x_736, 7, x_710); +lean_ctor_set(x_736, 8, x_711); +lean_ctor_set(x_736, 9, x_712); +lean_ctor_set(x_736, 10, x_716); +lean_ctor_set_uint8(x_736, sizeof(void*)*11, x_713); +lean_ctor_set_uint8(x_736, sizeof(void*)*11 + 1, x_714); +lean_ctor_set_uint8(x_736, sizeof(void*)*11 + 2, x_715); +x_737 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_737, 0, x_736); -lean_ctor_set(x_737, 1, x_706); -lean_ctor_set(x_737, 2, x_707); -lean_ctor_set(x_737, 3, x_708); -lean_ctor_set(x_737, 4, x_709); -lean_ctor_set(x_737, 5, x_710); -lean_ctor_set(x_737, 6, x_711); -lean_ctor_set(x_737, 7, x_712); -lean_ctor_set(x_737, 8, x_713); -lean_ctor_set(x_737, 9, x_714); -lean_ctor_set_uint8(x_737, sizeof(void*)*10, x_715); -lean_ctor_set_uint8(x_737, sizeof(void*)*10 + 1, x_716); -lean_ctor_set_uint8(x_737, sizeof(void*)*10 + 2, x_717); -x_738 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_738, 0, x_737); -lean_ctor_set(x_738, 1, x_704); -lean_ctor_set(x_738, 2, x_705); -x_3 = x_703; -x_4 = x_738; -x_5 = x_722; +lean_ctor_set(x_737, 1, x_703); +x_2 = x_702; +x_3 = x_737; +x_4 = x_721; goto _start; } } @@ -5265,159 +5598,155 @@ goto _start; } else { -uint8_t x_748; -lean_dec(x_4); -lean_dec(x_2); +uint8_t x_747; +lean_dec(x_3); lean_dec(x_1); -x_748 = !lean_is_exclusive(x_692); -if (x_748 == 0) +x_747 = !lean_is_exclusive(x_691); +if (x_747 == 0) { -return x_692; +return x_691; } else { -lean_object* x_749; lean_object* x_750; lean_object* x_751; -x_749 = lean_ctor_get(x_692, 0); -x_750 = lean_ctor_get(x_692, 1); -lean_inc(x_750); +lean_object* x_748; lean_object* x_749; lean_object* x_750; +x_748 = lean_ctor_get(x_691, 0); +x_749 = lean_ctor_get(x_691, 1); lean_inc(x_749); -lean_dec(x_692); -x_751 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_751, 0, x_749); -lean_ctor_set(x_751, 1, x_750); -return x_751; +lean_inc(x_748); +lean_dec(x_691); +x_750 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_750, 0, x_748); +lean_ctor_set(x_750, 1, x_749); +return x_750; } } } case 11: { +lean_object* x_751; +lean_dec(x_8); +lean_inc(x_3); +x_751 = l_Lean_Elab_Tactic_unfoldDefinition_x3f(x_6, x_3, x_7); +if (lean_obj_tag(x_751) == 0) +{ lean_object* x_752; -lean_dec(x_9); -lean_inc(x_4); -lean_inc(x_1); -x_752 = l_Lean_Elab_Tactic_unfoldDefinition_x3f(x_1, x_7, x_4, x_8); +x_752 = lean_ctor_get(x_751, 0); +lean_inc(x_752); if (lean_obj_tag(x_752) == 0) { -lean_object* x_753; -x_753 = lean_ctor_get(x_752, 0); -lean_inc(x_753); -if (lean_obj_tag(x_753) == 0) -{ -uint8_t x_754; -lean_dec(x_4); -lean_dec(x_2); +uint8_t x_753; +lean_dec(x_3); lean_dec(x_1); -x_754 = !lean_is_exclusive(x_752); -if (x_754 == 0) +x_753 = !lean_is_exclusive(x_751); +if (x_753 == 0) { -lean_object* x_755; lean_object* x_756; -x_755 = lean_ctor_get(x_752, 0); -lean_dec(x_755); -x_756 = lean_box(0); -lean_ctor_set(x_752, 0, x_756); -return x_752; +lean_object* x_754; lean_object* x_755; +x_754 = lean_ctor_get(x_751, 0); +lean_dec(x_754); +x_755 = lean_box(0); +lean_ctor_set(x_751, 0, x_755); +return x_751; } else { -lean_object* x_757; lean_object* x_758; lean_object* x_759; -x_757 = lean_ctor_get(x_752, 1); -lean_inc(x_757); -lean_dec(x_752); -x_758 = lean_box(0); -x_759 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_759, 0, x_758); -lean_ctor_set(x_759, 1, x_757); -return x_759; +lean_object* x_756; lean_object* x_757; lean_object* x_758; +x_756 = lean_ctor_get(x_751, 1); +lean_inc(x_756); +lean_dec(x_751); +x_757 = lean_box(0); +x_758 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_758, 0, x_757); +lean_ctor_set(x_758, 1, x_756); +return x_758; } } else { -lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; lean_object* x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; lean_object* x_768; lean_object* x_769; lean_object* x_770; lean_object* x_771; lean_object* x_772; lean_object* x_773; lean_object* x_774; uint8_t x_775; uint8_t x_776; uint8_t x_777; lean_object* x_778; lean_object* x_779; lean_object* x_780; uint8_t x_781; lean_object* x_782; -x_760 = lean_ctor_get(x_4, 0); +lean_object* x_759; lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; lean_object* x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; lean_object* x_768; lean_object* x_769; lean_object* x_770; lean_object* x_771; lean_object* x_772; uint8_t x_773; uint8_t x_774; uint8_t x_775; lean_object* x_776; lean_object* x_777; lean_object* x_778; lean_object* x_779; uint8_t x_780; lean_object* x_781; +x_759 = lean_ctor_get(x_3, 0); +lean_inc(x_759); +x_760 = lean_ctor_get(x_759, 0); lean_inc(x_760); -x_761 = lean_ctor_get(x_760, 0); +x_761 = lean_ctor_get(x_751, 1); lean_inc(x_761); -x_762 = lean_ctor_get(x_752, 1); +lean_dec(x_751); +x_762 = lean_ctor_get(x_752, 0); lean_inc(x_762); lean_dec(x_752); -x_763 = lean_ctor_get(x_753, 0); +x_763 = lean_ctor_get(x_3, 1); lean_inc(x_763); -lean_dec(x_753); -x_764 = lean_ctor_get(x_4, 1); +x_764 = lean_ctor_get(x_759, 1); lean_inc(x_764); -x_765 = lean_ctor_get(x_4, 2); +x_765 = lean_ctor_get(x_759, 2); lean_inc(x_765); -x_766 = lean_ctor_get(x_760, 1); +x_766 = lean_ctor_get(x_759, 3); lean_inc(x_766); -x_767 = lean_ctor_get(x_760, 2); +x_767 = lean_ctor_get(x_759, 4); lean_inc(x_767); -x_768 = lean_ctor_get(x_760, 3); +x_768 = lean_ctor_get(x_759, 5); lean_inc(x_768); -x_769 = lean_ctor_get(x_760, 4); +x_769 = lean_ctor_get(x_759, 6); lean_inc(x_769); -x_770 = lean_ctor_get(x_760, 5); +x_770 = lean_ctor_get(x_759, 7); lean_inc(x_770); -x_771 = lean_ctor_get(x_760, 6); +x_771 = lean_ctor_get(x_759, 8); lean_inc(x_771); -x_772 = lean_ctor_get(x_760, 7); +x_772 = lean_ctor_get(x_759, 9); lean_inc(x_772); -x_773 = lean_ctor_get(x_760, 8); -lean_inc(x_773); -x_774 = lean_ctor_get(x_760, 9); -lean_inc(x_774); -x_775 = lean_ctor_get_uint8(x_760, sizeof(void*)*10); -x_776 = lean_ctor_get_uint8(x_760, sizeof(void*)*10 + 1); -x_777 = lean_ctor_get_uint8(x_760, sizeof(void*)*10 + 2); -if (lean_is_exclusive(x_760)) { - lean_ctor_release(x_760, 0); - lean_ctor_release(x_760, 1); - lean_ctor_release(x_760, 2); - lean_ctor_release(x_760, 3); - lean_ctor_release(x_760, 4); - lean_ctor_release(x_760, 5); - lean_ctor_release(x_760, 6); - lean_ctor_release(x_760, 7); - lean_ctor_release(x_760, 8); - lean_ctor_release(x_760, 9); - x_778 = x_760; +x_773 = lean_ctor_get_uint8(x_759, sizeof(void*)*11); +x_774 = lean_ctor_get_uint8(x_759, sizeof(void*)*11 + 1); +x_775 = lean_ctor_get_uint8(x_759, sizeof(void*)*11 + 2); +x_776 = lean_ctor_get(x_759, 10); +lean_inc(x_776); +if (lean_is_exclusive(x_759)) { + lean_ctor_release(x_759, 0); + lean_ctor_release(x_759, 1); + lean_ctor_release(x_759, 2); + lean_ctor_release(x_759, 3); + lean_ctor_release(x_759, 4); + lean_ctor_release(x_759, 5); + lean_ctor_release(x_759, 6); + lean_ctor_release(x_759, 7); + lean_ctor_release(x_759, 8); + lean_ctor_release(x_759, 9); + lean_ctor_release(x_759, 10); + x_777 = x_759; } else { - lean_dec_ref(x_760); - x_778 = lean_box(0); + lean_dec_ref(x_759); + x_777 = lean_box(0); } -x_779 = lean_ctor_get(x_761, 3); +x_778 = lean_ctor_get(x_760, 3); +lean_inc(x_778); +x_779 = lean_ctor_get(x_760, 4); lean_inc(x_779); -x_780 = lean_ctor_get(x_761, 4); -lean_inc(x_780); -x_781 = lean_nat_dec_eq(x_779, x_780); -if (x_781 == 0) +x_780 = lean_nat_dec_eq(x_778, x_779); +if (x_780 == 0) { -lean_dec(x_4); -x_782 = x_762; -goto block_800; +lean_dec(x_3); +x_781 = x_761; +goto block_799; } else { -lean_object* x_801; lean_object* x_802; -x_801 = l_Lean_Meta_withIncRecDepth___rarg___closed__2; -lean_inc(x_1); -x_802 = l_Lean_Elab_Tactic_throwError___rarg(x_1, x_801, x_4, x_762); -if (lean_obj_tag(x_802) == 0) +lean_object* x_800; lean_object* x_801; +x_800 = l_Lean_Meta_withIncRecDepth___rarg___closed__2; +x_801 = l_Lean_Elab_Tactic_throwError___rarg(x_800, x_3, x_761); +if (lean_obj_tag(x_801) == 0) { -lean_object* x_803; -x_803 = lean_ctor_get(x_802, 1); -lean_inc(x_803); -lean_dec(x_802); -x_782 = x_803; -goto block_800; +lean_object* x_802; +x_802 = lean_ctor_get(x_801, 1); +lean_inc(x_802); +lean_dec(x_801); +x_781 = x_802; +goto block_799; } else { -uint8_t x_804; -lean_dec(x_780); +uint8_t x_803; lean_dec(x_779); lean_dec(x_778); -lean_dec(x_774); -lean_dec(x_773); +lean_dec(x_777); +lean_dec(x_776); lean_dec(x_772); lean_dec(x_771); lean_dec(x_770); @@ -5428,115 +5757,115 @@ lean_dec(x_766); lean_dec(x_765); lean_dec(x_764); lean_dec(x_763); -lean_dec(x_761); -lean_dec(x_2); +lean_dec(x_762); +lean_dec(x_760); lean_dec(x_1); -x_804 = !lean_is_exclusive(x_802); -if (x_804 == 0) +x_803 = !lean_is_exclusive(x_801); +if (x_803 == 0) { -return x_802; +return x_801; } else { -lean_object* x_805; lean_object* x_806; lean_object* x_807; -x_805 = lean_ctor_get(x_802, 0); -x_806 = lean_ctor_get(x_802, 1); -lean_inc(x_806); +lean_object* x_804; lean_object* x_805; lean_object* x_806; +x_804 = lean_ctor_get(x_801, 0); +x_805 = lean_ctor_get(x_801, 1); lean_inc(x_805); -lean_dec(x_802); -x_807 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_807, 0, x_805); -lean_ctor_set(x_807, 1, x_806); -return x_807; +lean_inc(x_804); +lean_dec(x_801); +x_806 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_806, 0, x_804); +lean_ctor_set(x_806, 1, x_805); +return x_806; } } } -block_800: +block_799: { -uint8_t x_783; -x_783 = !lean_is_exclusive(x_761); -if (x_783 == 0) +uint8_t x_782; +x_782 = !lean_is_exclusive(x_760); +if (x_782 == 0) { -lean_object* x_784; lean_object* x_785; lean_object* x_786; lean_object* x_787; lean_object* x_788; lean_object* x_789; -x_784 = lean_ctor_get(x_761, 4); +lean_object* x_783; lean_object* x_784; lean_object* x_785; lean_object* x_786; lean_object* x_787; lean_object* x_788; +x_783 = lean_ctor_get(x_760, 4); +lean_dec(x_783); +x_784 = lean_ctor_get(x_760, 3); lean_dec(x_784); -x_785 = lean_ctor_get(x_761, 3); -lean_dec(x_785); -x_786 = lean_unsigned_to_nat(1u); -x_787 = lean_nat_add(x_779, x_786); -lean_dec(x_779); -lean_ctor_set(x_761, 3, x_787); -if (lean_is_scalar(x_778)) { - x_788 = lean_alloc_ctor(0, 10, 3); +x_785 = lean_unsigned_to_nat(1u); +x_786 = lean_nat_add(x_778, x_785); +lean_dec(x_778); +lean_ctor_set(x_760, 3, x_786); +if (lean_is_scalar(x_777)) { + x_787 = lean_alloc_ctor(0, 11, 3); } else { - x_788 = x_778; + x_787 = x_777; } -lean_ctor_set(x_788, 0, x_761); -lean_ctor_set(x_788, 1, x_766); -lean_ctor_set(x_788, 2, x_767); -lean_ctor_set(x_788, 3, x_768); -lean_ctor_set(x_788, 4, x_769); -lean_ctor_set(x_788, 5, x_770); -lean_ctor_set(x_788, 6, x_771); -lean_ctor_set(x_788, 7, x_772); -lean_ctor_set(x_788, 8, x_773); -lean_ctor_set(x_788, 9, x_774); -lean_ctor_set_uint8(x_788, sizeof(void*)*10, x_775); -lean_ctor_set_uint8(x_788, sizeof(void*)*10 + 1, x_776); -lean_ctor_set_uint8(x_788, sizeof(void*)*10 + 2, x_777); -x_789 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_789, 0, x_788); -lean_ctor_set(x_789, 1, x_764); -lean_ctor_set(x_789, 2, x_765); -x_3 = x_763; -x_4 = x_789; -x_5 = x_782; +lean_ctor_set(x_787, 0, x_760); +lean_ctor_set(x_787, 1, x_764); +lean_ctor_set(x_787, 2, x_765); +lean_ctor_set(x_787, 3, x_766); +lean_ctor_set(x_787, 4, x_767); +lean_ctor_set(x_787, 5, x_768); +lean_ctor_set(x_787, 6, x_769); +lean_ctor_set(x_787, 7, x_770); +lean_ctor_set(x_787, 8, x_771); +lean_ctor_set(x_787, 9, x_772); +lean_ctor_set(x_787, 10, x_776); +lean_ctor_set_uint8(x_787, sizeof(void*)*11, x_773); +lean_ctor_set_uint8(x_787, sizeof(void*)*11 + 1, x_774); +lean_ctor_set_uint8(x_787, sizeof(void*)*11 + 2, x_775); +x_788 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_788, 0, x_787); +lean_ctor_set(x_788, 1, x_763); +x_2 = x_762; +x_3 = x_788; +x_4 = x_781; goto _start; } else { -lean_object* x_791; lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; lean_object* x_796; lean_object* x_797; lean_object* x_798; -x_791 = lean_ctor_get(x_761, 0); -x_792 = lean_ctor_get(x_761, 1); -x_793 = lean_ctor_get(x_761, 2); -lean_inc(x_793); +lean_object* x_790; lean_object* x_791; lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; lean_object* x_796; lean_object* x_797; +x_790 = lean_ctor_get(x_760, 0); +x_791 = lean_ctor_get(x_760, 1); +x_792 = lean_ctor_get(x_760, 2); lean_inc(x_792); lean_inc(x_791); -lean_dec(x_761); -x_794 = lean_unsigned_to_nat(1u); -x_795 = lean_nat_add(x_779, x_794); -lean_dec(x_779); -x_796 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_796, 0, x_791); -lean_ctor_set(x_796, 1, x_792); -lean_ctor_set(x_796, 2, x_793); -lean_ctor_set(x_796, 3, x_795); -lean_ctor_set(x_796, 4, x_780); -if (lean_is_scalar(x_778)) { - x_797 = lean_alloc_ctor(0, 10, 3); +lean_inc(x_790); +lean_dec(x_760); +x_793 = lean_unsigned_to_nat(1u); +x_794 = lean_nat_add(x_778, x_793); +lean_dec(x_778); +x_795 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_795, 0, x_790); +lean_ctor_set(x_795, 1, x_791); +lean_ctor_set(x_795, 2, x_792); +lean_ctor_set(x_795, 3, x_794); +lean_ctor_set(x_795, 4, x_779); +if (lean_is_scalar(x_777)) { + x_796 = lean_alloc_ctor(0, 11, 3); } else { - x_797 = x_778; + x_796 = x_777; } +lean_ctor_set(x_796, 0, x_795); +lean_ctor_set(x_796, 1, x_764); +lean_ctor_set(x_796, 2, x_765); +lean_ctor_set(x_796, 3, x_766); +lean_ctor_set(x_796, 4, x_767); +lean_ctor_set(x_796, 5, x_768); +lean_ctor_set(x_796, 6, x_769); +lean_ctor_set(x_796, 7, x_770); +lean_ctor_set(x_796, 8, x_771); +lean_ctor_set(x_796, 9, x_772); +lean_ctor_set(x_796, 10, x_776); +lean_ctor_set_uint8(x_796, sizeof(void*)*11, x_773); +lean_ctor_set_uint8(x_796, sizeof(void*)*11 + 1, x_774); +lean_ctor_set_uint8(x_796, sizeof(void*)*11 + 2, x_775); +x_797 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_797, 0, x_796); -lean_ctor_set(x_797, 1, x_766); -lean_ctor_set(x_797, 2, x_767); -lean_ctor_set(x_797, 3, x_768); -lean_ctor_set(x_797, 4, x_769); -lean_ctor_set(x_797, 5, x_770); -lean_ctor_set(x_797, 6, x_771); -lean_ctor_set(x_797, 7, x_772); -lean_ctor_set(x_797, 8, x_773); -lean_ctor_set(x_797, 9, x_774); -lean_ctor_set_uint8(x_797, sizeof(void*)*10, x_775); -lean_ctor_set_uint8(x_797, sizeof(void*)*10 + 1, x_776); -lean_ctor_set_uint8(x_797, sizeof(void*)*10 + 2, x_777); -x_798 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_798, 0, x_797); -lean_ctor_set(x_798, 1, x_764); -lean_ctor_set(x_798, 2, x_765); -x_3 = x_763; -x_4 = x_798; -x_5 = x_782; +lean_ctor_set(x_797, 1, x_763); +x_2 = x_762; +x_3 = x_797; +x_4 = x_781; goto _start; } } @@ -5544,159 +5873,155 @@ goto _start; } else { -uint8_t x_808; -lean_dec(x_4); -lean_dec(x_2); +uint8_t x_807; +lean_dec(x_3); lean_dec(x_1); -x_808 = !lean_is_exclusive(x_752); -if (x_808 == 0) +x_807 = !lean_is_exclusive(x_751); +if (x_807 == 0) { -return x_752; +return x_751; } else { -lean_object* x_809; lean_object* x_810; lean_object* x_811; -x_809 = lean_ctor_get(x_752, 0); -x_810 = lean_ctor_get(x_752, 1); -lean_inc(x_810); +lean_object* x_808; lean_object* x_809; lean_object* x_810; +x_808 = lean_ctor_get(x_751, 0); +x_809 = lean_ctor_get(x_751, 1); lean_inc(x_809); -lean_dec(x_752); -x_811 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_811, 0, x_809); -lean_ctor_set(x_811, 1, x_810); -return x_811; +lean_inc(x_808); +lean_dec(x_751); +x_810 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_810, 0, x_808); +lean_ctor_set(x_810, 1, x_809); +return x_810; } } } default: { +lean_object* x_811; +lean_dec(x_8); +lean_inc(x_3); +x_811 = l_Lean_Elab_Tactic_unfoldDefinition_x3f(x_6, x_3, x_7); +if (lean_obj_tag(x_811) == 0) +{ lean_object* x_812; -lean_dec(x_9); -lean_inc(x_4); -lean_inc(x_1); -x_812 = l_Lean_Elab_Tactic_unfoldDefinition_x3f(x_1, x_7, x_4, x_8); +x_812 = lean_ctor_get(x_811, 0); +lean_inc(x_812); if (lean_obj_tag(x_812) == 0) { -lean_object* x_813; -x_813 = lean_ctor_get(x_812, 0); -lean_inc(x_813); -if (lean_obj_tag(x_813) == 0) -{ -uint8_t x_814; -lean_dec(x_4); -lean_dec(x_2); +uint8_t x_813; +lean_dec(x_3); lean_dec(x_1); -x_814 = !lean_is_exclusive(x_812); -if (x_814 == 0) +x_813 = !lean_is_exclusive(x_811); +if (x_813 == 0) { -lean_object* x_815; lean_object* x_816; -x_815 = lean_ctor_get(x_812, 0); -lean_dec(x_815); -x_816 = lean_box(0); -lean_ctor_set(x_812, 0, x_816); -return x_812; +lean_object* x_814; lean_object* x_815; +x_814 = lean_ctor_get(x_811, 0); +lean_dec(x_814); +x_815 = lean_box(0); +lean_ctor_set(x_811, 0, x_815); +return x_811; } else { -lean_object* x_817; lean_object* x_818; lean_object* x_819; -x_817 = lean_ctor_get(x_812, 1); -lean_inc(x_817); -lean_dec(x_812); -x_818 = lean_box(0); -x_819 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_819, 0, x_818); -lean_ctor_set(x_819, 1, x_817); -return x_819; +lean_object* x_816; lean_object* x_817; lean_object* x_818; +x_816 = lean_ctor_get(x_811, 1); +lean_inc(x_816); +lean_dec(x_811); +x_817 = lean_box(0); +x_818 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_818, 0, x_817); +lean_ctor_set(x_818, 1, x_816); +return x_818; } } else { -lean_object* x_820; lean_object* x_821; lean_object* x_822; lean_object* x_823; lean_object* x_824; lean_object* x_825; lean_object* x_826; lean_object* x_827; lean_object* x_828; lean_object* x_829; lean_object* x_830; lean_object* x_831; lean_object* x_832; lean_object* x_833; lean_object* x_834; uint8_t x_835; uint8_t x_836; uint8_t x_837; lean_object* x_838; lean_object* x_839; lean_object* x_840; uint8_t x_841; lean_object* x_842; -x_820 = lean_ctor_get(x_4, 0); +lean_object* x_819; lean_object* x_820; lean_object* x_821; lean_object* x_822; lean_object* x_823; lean_object* x_824; lean_object* x_825; lean_object* x_826; lean_object* x_827; lean_object* x_828; lean_object* x_829; lean_object* x_830; lean_object* x_831; lean_object* x_832; uint8_t x_833; uint8_t x_834; uint8_t x_835; lean_object* x_836; lean_object* x_837; lean_object* x_838; lean_object* x_839; uint8_t x_840; lean_object* x_841; +x_819 = lean_ctor_get(x_3, 0); +lean_inc(x_819); +x_820 = lean_ctor_get(x_819, 0); lean_inc(x_820); -x_821 = lean_ctor_get(x_820, 0); +x_821 = lean_ctor_get(x_811, 1); lean_inc(x_821); -x_822 = lean_ctor_get(x_812, 1); +lean_dec(x_811); +x_822 = lean_ctor_get(x_812, 0); lean_inc(x_822); lean_dec(x_812); -x_823 = lean_ctor_get(x_813, 0); +x_823 = lean_ctor_get(x_3, 1); lean_inc(x_823); -lean_dec(x_813); -x_824 = lean_ctor_get(x_4, 1); +x_824 = lean_ctor_get(x_819, 1); lean_inc(x_824); -x_825 = lean_ctor_get(x_4, 2); +x_825 = lean_ctor_get(x_819, 2); lean_inc(x_825); -x_826 = lean_ctor_get(x_820, 1); +x_826 = lean_ctor_get(x_819, 3); lean_inc(x_826); -x_827 = lean_ctor_get(x_820, 2); +x_827 = lean_ctor_get(x_819, 4); lean_inc(x_827); -x_828 = lean_ctor_get(x_820, 3); +x_828 = lean_ctor_get(x_819, 5); lean_inc(x_828); -x_829 = lean_ctor_get(x_820, 4); +x_829 = lean_ctor_get(x_819, 6); lean_inc(x_829); -x_830 = lean_ctor_get(x_820, 5); +x_830 = lean_ctor_get(x_819, 7); lean_inc(x_830); -x_831 = lean_ctor_get(x_820, 6); +x_831 = lean_ctor_get(x_819, 8); lean_inc(x_831); -x_832 = lean_ctor_get(x_820, 7); +x_832 = lean_ctor_get(x_819, 9); lean_inc(x_832); -x_833 = lean_ctor_get(x_820, 8); -lean_inc(x_833); -x_834 = lean_ctor_get(x_820, 9); -lean_inc(x_834); -x_835 = lean_ctor_get_uint8(x_820, sizeof(void*)*10); -x_836 = lean_ctor_get_uint8(x_820, sizeof(void*)*10 + 1); -x_837 = lean_ctor_get_uint8(x_820, sizeof(void*)*10 + 2); -if (lean_is_exclusive(x_820)) { - lean_ctor_release(x_820, 0); - lean_ctor_release(x_820, 1); - lean_ctor_release(x_820, 2); - lean_ctor_release(x_820, 3); - lean_ctor_release(x_820, 4); - lean_ctor_release(x_820, 5); - lean_ctor_release(x_820, 6); - lean_ctor_release(x_820, 7); - lean_ctor_release(x_820, 8); - lean_ctor_release(x_820, 9); - x_838 = x_820; +x_833 = lean_ctor_get_uint8(x_819, sizeof(void*)*11); +x_834 = lean_ctor_get_uint8(x_819, sizeof(void*)*11 + 1); +x_835 = lean_ctor_get_uint8(x_819, sizeof(void*)*11 + 2); +x_836 = lean_ctor_get(x_819, 10); +lean_inc(x_836); +if (lean_is_exclusive(x_819)) { + lean_ctor_release(x_819, 0); + lean_ctor_release(x_819, 1); + lean_ctor_release(x_819, 2); + lean_ctor_release(x_819, 3); + lean_ctor_release(x_819, 4); + lean_ctor_release(x_819, 5); + lean_ctor_release(x_819, 6); + lean_ctor_release(x_819, 7); + lean_ctor_release(x_819, 8); + lean_ctor_release(x_819, 9); + lean_ctor_release(x_819, 10); + x_837 = x_819; } else { - lean_dec_ref(x_820); - x_838 = lean_box(0); + lean_dec_ref(x_819); + x_837 = lean_box(0); } -x_839 = lean_ctor_get(x_821, 3); +x_838 = lean_ctor_get(x_820, 3); +lean_inc(x_838); +x_839 = lean_ctor_get(x_820, 4); lean_inc(x_839); -x_840 = lean_ctor_get(x_821, 4); -lean_inc(x_840); -x_841 = lean_nat_dec_eq(x_839, x_840); -if (x_841 == 0) +x_840 = lean_nat_dec_eq(x_838, x_839); +if (x_840 == 0) { -lean_dec(x_4); -x_842 = x_822; -goto block_860; +lean_dec(x_3); +x_841 = x_821; +goto block_859; } else { -lean_object* x_861; lean_object* x_862; -x_861 = l_Lean_Meta_withIncRecDepth___rarg___closed__2; -lean_inc(x_1); -x_862 = l_Lean_Elab_Tactic_throwError___rarg(x_1, x_861, x_4, x_822); -if (lean_obj_tag(x_862) == 0) +lean_object* x_860; lean_object* x_861; +x_860 = l_Lean_Meta_withIncRecDepth___rarg___closed__2; +x_861 = l_Lean_Elab_Tactic_throwError___rarg(x_860, x_3, x_821); +if (lean_obj_tag(x_861) == 0) { -lean_object* x_863; -x_863 = lean_ctor_get(x_862, 1); -lean_inc(x_863); -lean_dec(x_862); -x_842 = x_863; -goto block_860; +lean_object* x_862; +x_862 = lean_ctor_get(x_861, 1); +lean_inc(x_862); +lean_dec(x_861); +x_841 = x_862; +goto block_859; } else { -uint8_t x_864; -lean_dec(x_840); +uint8_t x_863; lean_dec(x_839); lean_dec(x_838); -lean_dec(x_834); -lean_dec(x_833); +lean_dec(x_837); +lean_dec(x_836); lean_dec(x_832); lean_dec(x_831); lean_dec(x_830); @@ -5707,115 +6032,115 @@ lean_dec(x_826); lean_dec(x_825); lean_dec(x_824); lean_dec(x_823); -lean_dec(x_821); -lean_dec(x_2); +lean_dec(x_822); +lean_dec(x_820); lean_dec(x_1); -x_864 = !lean_is_exclusive(x_862); -if (x_864 == 0) +x_863 = !lean_is_exclusive(x_861); +if (x_863 == 0) { -return x_862; +return x_861; } else { -lean_object* x_865; lean_object* x_866; lean_object* x_867; -x_865 = lean_ctor_get(x_862, 0); -x_866 = lean_ctor_get(x_862, 1); -lean_inc(x_866); +lean_object* x_864; lean_object* x_865; lean_object* x_866; +x_864 = lean_ctor_get(x_861, 0); +x_865 = lean_ctor_get(x_861, 1); lean_inc(x_865); -lean_dec(x_862); -x_867 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_867, 0, x_865); -lean_ctor_set(x_867, 1, x_866); -return x_867; +lean_inc(x_864); +lean_dec(x_861); +x_866 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_866, 0, x_864); +lean_ctor_set(x_866, 1, x_865); +return x_866; } } } -block_860: +block_859: { -uint8_t x_843; -x_843 = !lean_is_exclusive(x_821); -if (x_843 == 0) +uint8_t x_842; +x_842 = !lean_is_exclusive(x_820); +if (x_842 == 0) { -lean_object* x_844; lean_object* x_845; lean_object* x_846; lean_object* x_847; lean_object* x_848; lean_object* x_849; -x_844 = lean_ctor_get(x_821, 4); +lean_object* x_843; lean_object* x_844; lean_object* x_845; lean_object* x_846; lean_object* x_847; lean_object* x_848; +x_843 = lean_ctor_get(x_820, 4); +lean_dec(x_843); +x_844 = lean_ctor_get(x_820, 3); lean_dec(x_844); -x_845 = lean_ctor_get(x_821, 3); -lean_dec(x_845); -x_846 = lean_unsigned_to_nat(1u); -x_847 = lean_nat_add(x_839, x_846); -lean_dec(x_839); -lean_ctor_set(x_821, 3, x_847); -if (lean_is_scalar(x_838)) { - x_848 = lean_alloc_ctor(0, 10, 3); +x_845 = lean_unsigned_to_nat(1u); +x_846 = lean_nat_add(x_838, x_845); +lean_dec(x_838); +lean_ctor_set(x_820, 3, x_846); +if (lean_is_scalar(x_837)) { + x_847 = lean_alloc_ctor(0, 11, 3); } else { - x_848 = x_838; + x_847 = x_837; } -lean_ctor_set(x_848, 0, x_821); -lean_ctor_set(x_848, 1, x_826); -lean_ctor_set(x_848, 2, x_827); -lean_ctor_set(x_848, 3, x_828); -lean_ctor_set(x_848, 4, x_829); -lean_ctor_set(x_848, 5, x_830); -lean_ctor_set(x_848, 6, x_831); -lean_ctor_set(x_848, 7, x_832); -lean_ctor_set(x_848, 8, x_833); -lean_ctor_set(x_848, 9, x_834); -lean_ctor_set_uint8(x_848, sizeof(void*)*10, x_835); -lean_ctor_set_uint8(x_848, sizeof(void*)*10 + 1, x_836); -lean_ctor_set_uint8(x_848, sizeof(void*)*10 + 2, x_837); -x_849 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_849, 0, x_848); -lean_ctor_set(x_849, 1, x_824); -lean_ctor_set(x_849, 2, x_825); -x_3 = x_823; -x_4 = x_849; -x_5 = x_842; +lean_ctor_set(x_847, 0, x_820); +lean_ctor_set(x_847, 1, x_824); +lean_ctor_set(x_847, 2, x_825); +lean_ctor_set(x_847, 3, x_826); +lean_ctor_set(x_847, 4, x_827); +lean_ctor_set(x_847, 5, x_828); +lean_ctor_set(x_847, 6, x_829); +lean_ctor_set(x_847, 7, x_830); +lean_ctor_set(x_847, 8, x_831); +lean_ctor_set(x_847, 9, x_832); +lean_ctor_set(x_847, 10, x_836); +lean_ctor_set_uint8(x_847, sizeof(void*)*11, x_833); +lean_ctor_set_uint8(x_847, sizeof(void*)*11 + 1, x_834); +lean_ctor_set_uint8(x_847, sizeof(void*)*11 + 2, x_835); +x_848 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_848, 0, x_847); +lean_ctor_set(x_848, 1, x_823); +x_2 = x_822; +x_3 = x_848; +x_4 = x_841; goto _start; } else { -lean_object* x_851; lean_object* x_852; lean_object* x_853; lean_object* x_854; lean_object* x_855; lean_object* x_856; lean_object* x_857; lean_object* x_858; -x_851 = lean_ctor_get(x_821, 0); -x_852 = lean_ctor_get(x_821, 1); -x_853 = lean_ctor_get(x_821, 2); -lean_inc(x_853); +lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; lean_object* x_854; lean_object* x_855; lean_object* x_856; lean_object* x_857; +x_850 = lean_ctor_get(x_820, 0); +x_851 = lean_ctor_get(x_820, 1); +x_852 = lean_ctor_get(x_820, 2); lean_inc(x_852); lean_inc(x_851); -lean_dec(x_821); -x_854 = lean_unsigned_to_nat(1u); -x_855 = lean_nat_add(x_839, x_854); -lean_dec(x_839); -x_856 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_856, 0, x_851); -lean_ctor_set(x_856, 1, x_852); -lean_ctor_set(x_856, 2, x_853); -lean_ctor_set(x_856, 3, x_855); -lean_ctor_set(x_856, 4, x_840); -if (lean_is_scalar(x_838)) { - x_857 = lean_alloc_ctor(0, 10, 3); +lean_inc(x_850); +lean_dec(x_820); +x_853 = lean_unsigned_to_nat(1u); +x_854 = lean_nat_add(x_838, x_853); +lean_dec(x_838); +x_855 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_855, 0, x_850); +lean_ctor_set(x_855, 1, x_851); +lean_ctor_set(x_855, 2, x_852); +lean_ctor_set(x_855, 3, x_854); +lean_ctor_set(x_855, 4, x_839); +if (lean_is_scalar(x_837)) { + x_856 = lean_alloc_ctor(0, 11, 3); } else { - x_857 = x_838; + x_856 = x_837; } +lean_ctor_set(x_856, 0, x_855); +lean_ctor_set(x_856, 1, x_824); +lean_ctor_set(x_856, 2, x_825); +lean_ctor_set(x_856, 3, x_826); +lean_ctor_set(x_856, 4, x_827); +lean_ctor_set(x_856, 5, x_828); +lean_ctor_set(x_856, 6, x_829); +lean_ctor_set(x_856, 7, x_830); +lean_ctor_set(x_856, 8, x_831); +lean_ctor_set(x_856, 9, x_832); +lean_ctor_set(x_856, 10, x_836); +lean_ctor_set_uint8(x_856, sizeof(void*)*11, x_833); +lean_ctor_set_uint8(x_856, sizeof(void*)*11 + 1, x_834); +lean_ctor_set_uint8(x_856, sizeof(void*)*11 + 2, x_835); +x_857 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_857, 0, x_856); -lean_ctor_set(x_857, 1, x_826); -lean_ctor_set(x_857, 2, x_827); -lean_ctor_set(x_857, 3, x_828); -lean_ctor_set(x_857, 4, x_829); -lean_ctor_set(x_857, 5, x_830); -lean_ctor_set(x_857, 6, x_831); -lean_ctor_set(x_857, 7, x_832); -lean_ctor_set(x_857, 8, x_833); -lean_ctor_set(x_857, 9, x_834); -lean_ctor_set_uint8(x_857, sizeof(void*)*10, x_835); -lean_ctor_set_uint8(x_857, sizeof(void*)*10 + 1, x_836); -lean_ctor_set_uint8(x_857, sizeof(void*)*10 + 2, x_837); -x_858 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_858, 0, x_857); -lean_ctor_set(x_858, 1, x_824); -lean_ctor_set(x_858, 2, x_825); -x_3 = x_823; -x_4 = x_858; -x_5 = x_842; +lean_ctor_set(x_857, 1, x_823); +x_2 = x_822; +x_3 = x_857; +x_4 = x_841; goto _start; } } @@ -5823,27 +6148,26 @@ goto _start; } else { -uint8_t x_868; -lean_dec(x_4); -lean_dec(x_2); +uint8_t x_867; +lean_dec(x_3); lean_dec(x_1); -x_868 = !lean_is_exclusive(x_812); -if (x_868 == 0) +x_867 = !lean_is_exclusive(x_811); +if (x_867 == 0) { -return x_812; +return x_811; } else { -lean_object* x_869; lean_object* x_870; lean_object* x_871; -x_869 = lean_ctor_get(x_812, 0); -x_870 = lean_ctor_get(x_812, 1); -lean_inc(x_870); +lean_object* x_868; lean_object* x_869; lean_object* x_870; +x_868 = lean_ctor_get(x_811, 0); +x_869 = lean_ctor_get(x_811, 1); lean_inc(x_869); -lean_dec(x_812); -x_871 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_871, 0, x_869); -lean_ctor_set(x_871, 1, x_870); -return x_871; +lean_inc(x_868); +lean_dec(x_811); +x_870 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_870, 0, x_868); +lean_ctor_set(x_870, 1, x_869); +return x_870; } } } @@ -5851,27 +6175,26 @@ return x_871; } else { -uint8_t x_872; -lean_dec(x_4); -lean_dec(x_2); +uint8_t x_871; +lean_dec(x_3); lean_dec(x_1); -x_872 = !lean_is_exclusive(x_6); -if (x_872 == 0) +x_871 = !lean_is_exclusive(x_5); +if (x_871 == 0) { -return x_6; +return x_5; } else { -lean_object* x_873; lean_object* x_874; lean_object* x_875; -x_873 = lean_ctor_get(x_6, 0); -x_874 = lean_ctor_get(x_6, 1); -lean_inc(x_874); +lean_object* x_872; lean_object* x_873; lean_object* x_874; +x_872 = lean_ctor_get(x_5, 0); +x_873 = lean_ctor_get(x_5, 1); lean_inc(x_873); -lean_dec(x_6); -x_875 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_875, 0, x_873); -lean_ctor_set(x_875, 1, x_874); -return x_875; +lean_inc(x_872); +lean_dec(x_5); +x_874 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_874, 0, x_872); +lean_ctor_set(x_874, 1, x_873); +return x_874; } } } @@ -5885,12 +6208,12 @@ lean_dec(x_2); return x_4; } } -lean_object* l___private_Lean_Elab_Tactic_Induction_12__getRecFromUsingLoop(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_Tactic_Induction_12__getRecFromUsingLoop(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_6; -x_6 = l___private_Lean_Elab_Tactic_Induction_12__getRecFromUsingLoop___main(x_1, x_2, x_3, x_4, x_5); -return x_6; +lean_object* x_5; +x_5 = l___private_Lean_Elab_Tactic_Induction_12__getRecFromUsingLoop___main(x_1, x_2, x_3, x_4); +return x_5; } } lean_object* l_List_map___main___at_Lean_Elab_Tactic_getRecFromUsing___spec__1(lean_object* x_1) { @@ -6015,340 +6338,330 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Lean_Elab_Tactic_getRecFromUsing(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_Elab_Tactic_getRecFromUsing(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_6; -lean_inc(x_4); -lean_inc(x_1); -x_6 = l_Lean_Elab_Tactic_inferType(x_1, x_2, x_4, x_5); -if (lean_obj_tag(x_6) == 0) -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_7 = lean_ctor_get(x_6, 0); -lean_inc(x_7); -x_8 = lean_ctor_get(x_6, 1); -lean_inc(x_8); -lean_dec(x_6); -lean_inc(x_4); +lean_object* x_5; lean_inc(x_3); -lean_inc(x_1); -x_9 = l___private_Lean_Elab_Tactic_Induction_12__getRecFromUsingLoop___main(x_1, x_3, x_7, x_4, x_8); +x_5 = l_Lean_Elab_Tactic_inferType(x_1, x_3, x_4); +if (lean_obj_tag(x_5) == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); +lean_dec(x_5); +lean_inc(x_3); +lean_inc(x_2); +x_8 = l___private_Lean_Elab_Tactic_Induction_12__getRecFromUsingLoop___main(x_2, x_6, x_3, 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) { -lean_object* x_10; -x_10 = lean_ctor_get(x_9, 0); +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_8, 1); lean_inc(x_10); -if (lean_obj_tag(x_10) == 0) -{ -lean_object* x_11; lean_object* x_12; -x_11 = lean_ctor_get(x_9, 1); -lean_inc(x_11); -lean_dec(x_9); -lean_inc(x_4); +lean_dec(x_8); lean_inc(x_3); -x_12 = l_Lean_Elab_Tactic_resolveGlobalName(x_3, x_4, x_11); +lean_inc(x_2); +x_11 = l_Lean_Elab_Tactic_resolveGlobalName(x_2, x_3, x_10); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_22; +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); if (lean_obj_tag(x_12) == 0) { -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_23; -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); -lean_inc(x_14); -lean_dec(x_12); -if (lean_obj_tag(x_13) == 0) -{ -lean_object* x_36; -x_36 = lean_box(0); -x_15 = x_36; -goto block_22; +lean_object* x_35; +x_35 = lean_box(0); +x_14 = x_35; +goto block_21; } else { -lean_object* x_37; lean_object* x_38; -x_37 = lean_ctor_get(x_13, 0); +lean_object* x_36; lean_object* x_37; +x_36 = lean_ctor_get(x_12, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_36, 1); lean_inc(x_37); -x_38 = lean_ctor_get(x_37, 1); +if (lean_obj_tag(x_37) == 0) +{ +lean_object* x_38; +x_38 = lean_ctor_get(x_12, 1); lean_inc(x_38); if (lean_obj_tag(x_38) == 0) { -lean_object* x_39; -x_39 = lean_ctor_get(x_13, 1); +lean_object* x_39; lean_object* x_40; lean_object* x_41; +lean_dec(x_12); +x_39 = lean_ctor_get(x_36, 0); lean_inc(x_39); -if (lean_obj_tag(x_39) == 0) +lean_dec(x_36); +x_40 = l_Lean_Elab_Tactic_save(x_13); +lean_inc(x_3); +x_41 = l_Lean_Elab_Tactic_getMainGoal(x_3, x_13); +if (lean_obj_tag(x_41) == 0) { -lean_object* x_40; lean_object* x_41; lean_object* x_42; -lean_dec(x_13); -x_40 = lean_ctor_get(x_37, 0); -lean_inc(x_40); -lean_dec(x_37); -x_41 = l_Lean_Elab_Tactic_save(x_14); -lean_inc(x_4); -lean_inc(x_1); -x_42 = l_Lean_Elab_Tactic_getMainGoal(x_1, x_4, x_14); -if (lean_obj_tag(x_42) == 0) -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_43 = lean_ctor_get(x_42, 0); +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_41, 1); lean_inc(x_43); -x_44 = lean_ctor_get(x_42, 1); +lean_dec(x_41); +x_44 = lean_ctor_get(x_42, 0); lean_inc(x_44); lean_dec(x_42); -x_45 = lean_ctor_get(x_43, 0); -lean_inc(x_45); -lean_dec(x_43); -x_46 = lean_box(0); -x_47 = lean_alloc_closure((void*)(l_Lean_Meta_mkRecursorInfo), 4, 2); -lean_closure_set(x_47, 0, x_40); -lean_closure_set(x_47, 1, x_46); -lean_inc(x_1); -x_48 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 4, 2); -lean_closure_set(x_48, 0, x_1); -lean_closure_set(x_48, 1, x_47); -lean_inc(x_4); -x_49 = l_Lean_Elab_Tactic_withMVarContext___rarg(x_45, x_48, x_4, x_44); -lean_dec(x_45); -if (lean_obj_tag(x_49) == 0) +x_45 = lean_box(0); +x_46 = lean_alloc_closure((void*)(l_Lean_Meta_mkRecursorInfo), 4, 2); +lean_closure_set(x_46, 0, x_39); +lean_closure_set(x_46, 1, x_45); +x_47 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 3, 1); +lean_closure_set(x_47, 0, x_46); +lean_inc(x_3); +x_48 = l_Lean_Elab_Tactic_withMVarContext___rarg(x_44, x_47, x_3, x_43); +lean_dec(x_44); +if (lean_obj_tag(x_48) == 0) { -lean_dec(x_41); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_49; -} -else -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_50 = lean_ctor_get(x_49, 1); -lean_inc(x_50); -lean_dec(x_49); -x_51 = l_Lean_Elab_Tactic_restore(x_50, x_41); -lean_dec(x_41); -x_52 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_52, 0, x_3); -x_53 = l_Lean_Elab_Tactic_getRecFromUsing___closed__3; -x_54 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_54, 1, x_52); -x_55 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__8; -x_56 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_56, 0, x_54); -lean_ctor_set(x_56, 1, x_55); -x_57 = l_Lean_Elab_Tactic_throwError___rarg(x_1, x_56, x_4, x_51); -return x_57; -} -} -else -{ -lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_dec(x_40); -x_58 = lean_ctor_get(x_42, 1); -lean_inc(x_58); -lean_dec(x_42); -x_59 = l_Lean_Elab_Tactic_restore(x_58, x_41); +lean_dec(x_3); +lean_dec(x_2); +return x_48; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_49 = lean_ctor_get(x_48, 1); +lean_inc(x_49); +lean_dec(x_48); +x_50 = l_Lean_Elab_Tactic_restore(x_49, x_40); +lean_dec(x_40); +x_51 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_51, 0, x_2); +x_52 = l_Lean_Elab_Tactic_getRecFromUsing___closed__3; +x_53 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_51); +x_54 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__8; +x_55 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_55, 0, x_53); +lean_ctor_set(x_55, 1, x_54); +x_56 = l_Lean_Elab_Tactic_throwError___rarg(x_55, x_3, x_50); +return x_56; +} +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +lean_dec(x_39); +x_57 = lean_ctor_get(x_41, 1); +lean_inc(x_57); lean_dec(x_41); -x_60 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_60, 0, x_3); -x_61 = l_Lean_Elab_Tactic_getRecFromUsing___closed__3; -x_62 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_62, 0, x_61); -lean_ctor_set(x_62, 1, x_60); -x_63 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__8; -x_64 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_64, 0, x_62); -lean_ctor_set(x_64, 1, x_63); -x_65 = l_Lean_Elab_Tactic_throwError___rarg(x_1, x_64, x_4, x_59); -return x_65; +x_58 = l_Lean_Elab_Tactic_restore(x_57, x_40); +lean_dec(x_40); +x_59 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_59, 0, x_2); +x_60 = l_Lean_Elab_Tactic_getRecFromUsing___closed__3; +x_61 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_59); +x_62 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__8; +x_63 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_63, 0, x_61); +lean_ctor_set(x_63, 1, x_62); +x_64 = l_Lean_Elab_Tactic_throwError___rarg(x_63, x_3, x_58); +return x_64; +} +} +else +{ +lean_object* x_65; +lean_dec(x_38); +lean_dec(x_36); +x_65 = lean_box(0); +x_22 = x_65; +goto block_34; } } else { lean_object* x_66; -lean_dec(x_39); lean_dec(x_37); -x_66 = lean_box(0); -x_23 = x_66; -goto block_35; -} -} -else +lean_dec(x_36); +x_66 = lean_ctor_get(x_12, 1); +lean_inc(x_66); +if (lean_obj_tag(x_66) == 0) { lean_object* x_67; -lean_dec(x_38); -lean_dec(x_37); -x_67 = lean_ctor_get(x_13, 1); -lean_inc(x_67); -if (lean_obj_tag(x_67) == 0) +lean_dec(x_12); +x_67 = lean_box(0); +x_14 = x_67; +goto block_21; +} +else { lean_object* x_68; -lean_dec(x_13); +lean_dec(x_66); x_68 = lean_box(0); -x_15 = x_68; -goto block_22; +x_22 = x_68; +goto block_34; } -else +} +} +block_21: { -lean_object* x_69; -lean_dec(x_67); -x_69 = lean_box(0); -x_23 = x_69; -goto block_35; +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_dec(x_14); +x_15 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_15, 0, x_2); +x_16 = l_Lean_Elab_Tactic_getRecFromUsing___closed__3; +x_17 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_15); +x_18 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__8; +x_19 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +x_20 = l_Lean_Elab_Tactic_throwError___rarg(x_19, x_3, x_13); +return x_20; } -} -} -block_22: +block_34: { -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_dec(x_15); -x_16 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_16, 0, x_3); -x_17 = l_Lean_Elab_Tactic_getRecFromUsing___closed__3; -x_18 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_16); -x_19 = l_Array_forMAux___main___at_Lean_Meta_clear___spec__5___closed__8; -x_20 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_20, 0, x_18); -lean_ctor_set(x_20, 1, x_19); -x_21 = l_Lean_Elab_Tactic_throwError___rarg(x_1, x_20, x_4, x_14); -return x_21; -} -block_35: -{ -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_34; -lean_dec(x_23); -x_24 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_24, 0, x_3); -x_25 = l_Lean_Elab_Tactic_getRecFromUsing___closed__6; -x_26 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, x_24); -x_27 = l_Lean_Elab_Tactic_getRecFromUsing___closed__8; -x_28 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_28, 0, x_26); -lean_ctor_set(x_28, 1, x_27); -x_29 = l_List_map___main___at_Lean_Elab_Tactic_getRecFromUsing___spec__1(x_13); -x_30 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_29); -x_31 = lean_alloc_ctor(2, 1, 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; +lean_dec(x_22); +x_23 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_23, 0, x_2); +x_24 = l_Lean_Elab_Tactic_getRecFromUsing___closed__6; +x_25 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_23); +x_26 = l_Lean_Elab_Tactic_getRecFromUsing___closed__8; +x_27 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +x_28 = l_List_map___main___at_Lean_Elab_Tactic_getRecFromUsing___spec__1(x_12); +x_29 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_28); +x_30 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_30, 0, x_29); +x_31 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_31, 0, x_30); -x_32 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_32, 0, x_31); -x_33 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_33, 0, x_28); -lean_ctor_set(x_33, 1, x_32); -x_34 = l_Lean_Elab_Tactic_throwError___rarg(x_1, x_33, x_4, x_14); -return x_34; +x_32 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_32, 0, x_27); +lean_ctor_set(x_32, 1, x_31); +x_33 = l_Lean_Elab_Tactic_throwError___rarg(x_32, x_3, x_13); +return x_33; } } else { -uint8_t x_70; -lean_dec(x_4); +uint8_t x_69; lean_dec(x_3); -lean_dec(x_1); -x_70 = !lean_is_exclusive(x_12); -if (x_70 == 0) +lean_dec(x_2); +x_69 = !lean_is_exclusive(x_11); +if (x_69 == 0) { -return x_12; +return x_11; } else { -lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_71 = lean_ctor_get(x_12, 0); -x_72 = lean_ctor_get(x_12, 1); -lean_inc(x_72); +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_11, 0); +x_71 = lean_ctor_get(x_11, 1); lean_inc(x_71); -lean_dec(x_12); -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; +lean_inc(x_70); +lean_dec(x_11); +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_74; -lean_dec(x_4); +uint8_t x_73; lean_dec(x_3); -lean_dec(x_1); -x_74 = !lean_is_exclusive(x_9); -if (x_74 == 0) +lean_dec(x_2); +x_73 = !lean_is_exclusive(x_8); +if (x_73 == 0) { -lean_object* x_75; lean_object* x_76; +lean_object* x_74; lean_object* x_75; +x_74 = lean_ctor_get(x_8, 0); +lean_dec(x_74); x_75 = lean_ctor_get(x_9, 0); -lean_dec(x_75); -x_76 = lean_ctor_get(x_10, 0); -lean_inc(x_76); -lean_dec(x_10); -lean_ctor_set(x_9, 0, x_76); -return x_9; +lean_inc(x_75); +lean_dec(x_9); +lean_ctor_set(x_8, 0, x_75); +return x_8; } else { -lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_77 = lean_ctor_get(x_9, 1); +lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_76 = lean_ctor_get(x_8, 1); +lean_inc(x_76); +lean_dec(x_8); +x_77 = lean_ctor_get(x_9, 0); lean_inc(x_77); lean_dec(x_9); -x_78 = lean_ctor_get(x_10, 0); -lean_inc(x_78); -lean_dec(x_10); -x_79 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_79, 0, x_78); -lean_ctor_set(x_79, 1, x_77); -return x_79; +x_78 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_78, 0, x_77); +lean_ctor_set(x_78, 1, x_76); +return x_78; } } } else { -uint8_t x_80; -lean_dec(x_4); +uint8_t x_79; lean_dec(x_3); -lean_dec(x_1); -x_80 = !lean_is_exclusive(x_9); -if (x_80 == 0) +lean_dec(x_2); +x_79 = !lean_is_exclusive(x_8); +if (x_79 == 0) { -return x_9; +return x_8; } else { -lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_81 = lean_ctor_get(x_9, 0); -x_82 = lean_ctor_get(x_9, 1); -lean_inc(x_82); +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_ctor_get(x_8, 0); +x_81 = lean_ctor_get(x_8, 1); lean_inc(x_81); -lean_dec(x_9); -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; +lean_inc(x_80); +lean_dec(x_8); +x_82 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_82, 0, x_80); +lean_ctor_set(x_82, 1, x_81); +return x_82; } } } else { -uint8_t x_84; -lean_dec(x_4); +uint8_t x_83; lean_dec(x_3); -lean_dec(x_1); -x_84 = !lean_is_exclusive(x_6); -if (x_84 == 0) +lean_dec(x_2); +x_83 = !lean_is_exclusive(x_5); +if (x_83 == 0) { -return x_6; +return x_5; } else { -lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_85 = lean_ctor_get(x_6, 0); -x_86 = lean_ctor_get(x_6, 1); -lean_inc(x_86); +lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_84 = lean_ctor_get(x_5, 0); +x_85 = lean_ctor_get(x_5, 1); lean_inc(x_85); -lean_dec(x_6); -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; +lean_inc(x_84); +lean_dec(x_5); +x_86 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_86, 0, x_84); +lean_ctor_set(x_86, 1, x_85); +return x_86; } } } @@ -6492,809 +6805,802 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_List_foldlM___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__3(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_List_foldlM___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__3(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -if (lean_obj_tag(x_4) == 0) +if (lean_obj_tag(x_3) == 0) { -lean_object* x_7; -lean_dec(x_5); -lean_dec(x_1); -x_7 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_7, 0, x_3); -lean_ctor_set(x_7, 1, x_6); -return x_7; +lean_object* x_6; +lean_dec(x_4); +x_6 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_2); +lean_ctor_set(x_6, 1, x_5); +return x_6; } else { -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_8 = lean_ctor_get(x_3, 1); +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_7 = lean_ctor_get(x_2, 1); +lean_inc(x_7); +x_8 = lean_ctor_get(x_7, 1); lean_inc(x_8); -x_9 = lean_ctor_get(x_8, 1); +x_9 = lean_ctor_get(x_3, 0); lean_inc(x_9); -x_10 = lean_ctor_get(x_4, 0); +x_10 = lean_ctor_get(x_3, 1); lean_inc(x_10); -x_11 = lean_ctor_get(x_4, 1); -lean_inc(x_11); -lean_dec(x_4); -x_12 = !lean_is_exclusive(x_3); -if (x_12 == 0) +lean_dec(x_3); +x_11 = !lean_is_exclusive(x_2); +if (x_11 == 0) { -lean_object* x_13; lean_object* x_14; uint8_t x_15; -x_13 = lean_ctor_get(x_3, 0); -x_14 = lean_ctor_get(x_3, 1); -lean_dec(x_14); -x_15 = !lean_is_exclusive(x_8); -if (x_15 == 0) +lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_12 = lean_ctor_get(x_2, 0); +x_13 = lean_ctor_get(x_2, 1); +lean_dec(x_13); +x_14 = !lean_is_exclusive(x_7); +if (x_14 == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_16 = lean_ctor_get(x_8, 0); -x_17 = lean_ctor_get(x_8, 1); -lean_dec(x_17); -x_18 = lean_ctor_get(x_9, 0); +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_15 = lean_ctor_get(x_7, 0); +x_16 = lean_ctor_get(x_7, 1); +lean_dec(x_16); +x_17 = lean_ctor_get(x_8, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_8, 1); lean_inc(x_18); -x_19 = lean_ctor_get(x_9, 1); -lean_inc(x_19); -x_20 = lean_unsigned_to_nat(0u); -x_21 = l_Array_findIdxAux___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__1(x_10, x_18, x_20); +x_19 = lean_unsigned_to_nat(0u); +x_20 = l_Array_findIdxAux___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__1(x_9, x_17, x_19); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; +x_21 = l_Array_findIdxAux___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__2(x_17, x_19); if (lean_obj_tag(x_21) == 0) { -lean_object* x_22; -x_22 = l_Array_findIdxAux___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__2(x_18, x_20); -if (lean_obj_tag(x_22) == 0) +lean_dec(x_17); +if (lean_obj_tag(x_18) == 0) { -lean_dec(x_18); -if (lean_obj_tag(x_19) == 0) +if (x_1 == 0) { -if (x_2 == 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_free_object(x_8); -lean_dec(x_16); -lean_free_object(x_3); -lean_dec(x_13); -lean_dec(x_9); -x_23 = l_Lean_Name_toString___closed__1; -x_24 = l_Lean_Name_toStringWithSep___main(x_23, x_10); -x_25 = lean_alloc_ctor(2, 1, 0); +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_free_object(x_7); +lean_dec(x_15); +lean_free_object(x_2); +lean_dec(x_12); +lean_dec(x_8); +x_22 = l_Lean_Name_toString___closed__1; +x_23 = l_Lean_Name_toStringWithSep___main(x_22, x_9); +x_24 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_24, 0, x_23); +x_25 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_25, 0, x_24); -x_26 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_26, 0, x_25); -x_27 = l_List_foldlM___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__3___closed__3; -x_28 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_26); -x_29 = l_List_foldlM___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__3___closed__6; -x_30 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_30, 0, x_28); -lean_ctor_set(x_30, 1, x_29); -lean_inc(x_5); -lean_inc(x_1); -x_31 = l_Lean_Elab_Tactic_throwError___rarg(x_1, x_30, x_5, x_6); -if (lean_obj_tag(x_31) == 0) +x_26 = l_List_foldlM___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__3___closed__3; +x_27 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_25); +x_28 = l_List_foldlM___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__3___closed__6; +x_29 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +lean_inc(x_4); +x_30 = l_Lean_Elab_Tactic_throwError___rarg(x_29, x_4, x_5); +if (lean_obj_tag(x_30) == 0) { -lean_object* x_32; lean_object* x_33; -x_32 = lean_ctor_get(x_31, 0); +lean_object* x_31; lean_object* x_32; +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_30, 1); lean_inc(x_32); -x_33 = lean_ctor_get(x_31, 1); -lean_inc(x_33); -lean_dec(x_31); -x_3 = x_32; -x_4 = x_11; -x_6 = x_33; +lean_dec(x_30); +x_2 = x_31; +x_3 = x_10; +x_5 = x_32; goto _start; } else { -uint8_t x_35; -lean_dec(x_11); -lean_dec(x_5); -lean_dec(x_1); -x_35 = !lean_is_exclusive(x_31); -if (x_35 == 0) +uint8_t x_34; +lean_dec(x_10); +lean_dec(x_4); +x_34 = !lean_is_exclusive(x_30); +if (x_34 == 0) { -return x_31; +return x_30; } else { -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_31, 0); -x_37 = lean_ctor_get(x_31, 1); -lean_inc(x_37); +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_30, 0); +x_36 = lean_ctor_get(x_30, 1); lean_inc(x_36); -lean_dec(x_31); -x_38 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_38, 0, x_36); -lean_ctor_set(x_38, 1, x_37); -return x_38; +lean_inc(x_35); +lean_dec(x_30); +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; } } } else { -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -lean_dec(x_10); -x_39 = lean_box(0); -x_40 = lean_array_push(x_13, x_39); -x_41 = lean_box(0); -x_42 = lean_array_push(x_16, x_41); -lean_ctor_set(x_8, 0, x_42); -lean_ctor_set(x_3, 0, x_40); -x_4 = x_11; +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +lean_dec(x_9); +x_38 = lean_box(0); +x_39 = lean_array_push(x_12, x_38); +x_40 = lean_box(0); +x_41 = lean_array_push(x_15, x_40); +lean_ctor_set(x_7, 0, x_41); +lean_ctor_set(x_2, 0, x_39); +x_3 = x_10; goto _start; } } else { -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; -lean_dec(x_10); -x_44 = lean_ctor_get(x_19, 0); -lean_inc(x_44); -lean_dec(x_19); -x_45 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_44); -x_46 = l_Array_toList___rarg(x_45); -lean_dec(x_45); -x_47 = lean_array_push(x_13, x_46); -x_48 = lean_unsigned_to_nat(3u); -x_49 = l_Lean_Syntax_getArg(x_44, x_48); +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +lean_dec(x_9); +x_43 = lean_ctor_get(x_18, 0); +lean_inc(x_43); +lean_dec(x_18); +x_44 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_43); +x_45 = l_Array_toList___rarg(x_44); lean_dec(x_44); -x_50 = lean_array_push(x_16, x_49); -lean_ctor_set(x_8, 0, x_50); -lean_ctor_set(x_3, 0, x_47); -x_4 = x_11; +x_46 = lean_array_push(x_12, x_45); +x_47 = lean_unsigned_to_nat(3u); +x_48 = l_Lean_Syntax_getArg(x_43, x_47); +lean_dec(x_43); +x_49 = lean_array_push(x_15, x_48); +lean_ctor_set(x_7, 0, x_49); +lean_ctor_set(x_2, 0, x_46); +x_3 = x_10; goto _start; } } else { -uint8_t x_52; -lean_dec(x_19); -lean_dec(x_10); -x_52 = !lean_is_exclusive(x_9); -if (x_52 == 0) +uint8_t x_51; +lean_dec(x_18); +lean_dec(x_9); +x_51 = !lean_is_exclusive(x_8); +if (x_51 == 0) { -lean_object* x_53; lean_object* x_54; uint8_t x_55; -x_53 = lean_ctor_get(x_9, 1); +lean_object* x_52; lean_object* x_53; uint8_t x_54; +x_52 = lean_ctor_get(x_8, 1); +lean_dec(x_52); +x_53 = lean_ctor_get(x_8, 0); lean_dec(x_53); -x_54 = lean_ctor_get(x_9, 0); -lean_dec(x_54); -x_55 = !lean_is_exclusive(x_22); -if (x_55 == 0) +x_54 = !lean_is_exclusive(x_21); +if (x_54 == 0) { -lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_56 = lean_ctor_get(x_22, 0); -x_57 = l_Lean_Syntax_inhabited; -x_58 = lean_array_get(x_57, x_18, x_56); -x_59 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_58); -x_60 = l_Array_toList___rarg(x_59); -lean_dec(x_59); -x_61 = lean_array_push(x_13, x_60); -x_62 = lean_unsigned_to_nat(3u); -x_63 = l_Lean_Syntax_getArg(x_58, x_62); -x_64 = lean_array_push(x_16, x_63); -x_65 = l_Array_eraseIdx___rarg(x_18, x_56); -lean_dec(x_56); -lean_ctor_set(x_22, 0, x_58); -lean_ctor_set(x_9, 1, x_22); -lean_ctor_set(x_9, 0, x_65); +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_55 = lean_ctor_get(x_21, 0); +x_56 = l_Lean_Syntax_inhabited; +x_57 = lean_array_get(x_56, x_17, x_55); +x_58 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_57); +x_59 = l_Array_toList___rarg(x_58); +lean_dec(x_58); +x_60 = lean_array_push(x_12, x_59); +x_61 = lean_unsigned_to_nat(3u); +x_62 = l_Lean_Syntax_getArg(x_57, x_61); +x_63 = lean_array_push(x_15, x_62); +x_64 = l_Array_eraseIdx___rarg(x_17, x_55); +lean_dec(x_55); +lean_ctor_set(x_21, 0, x_57); +lean_ctor_set(x_8, 1, x_21); lean_ctor_set(x_8, 0, x_64); -lean_ctor_set(x_3, 0, x_61); -x_4 = x_11; +lean_ctor_set(x_7, 0, x_63); +lean_ctor_set(x_2, 0, x_60); +x_3 = x_10; goto _start; } else { -lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_67 = lean_ctor_get(x_22, 0); -lean_inc(x_67); -lean_dec(x_22); -x_68 = l_Lean_Syntax_inhabited; -x_69 = lean_array_get(x_68, x_18, x_67); -x_70 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_69); -x_71 = l_Array_toList___rarg(x_70); -lean_dec(x_70); -x_72 = lean_array_push(x_13, x_71); -x_73 = lean_unsigned_to_nat(3u); -x_74 = l_Lean_Syntax_getArg(x_69, x_73); -x_75 = lean_array_push(x_16, x_74); -x_76 = l_Array_eraseIdx___rarg(x_18, x_67); -lean_dec(x_67); -x_77 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_77, 0, x_69); -lean_ctor_set(x_9, 1, x_77); -lean_ctor_set(x_9, 0, x_76); +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_66 = lean_ctor_get(x_21, 0); +lean_inc(x_66); +lean_dec(x_21); +x_67 = l_Lean_Syntax_inhabited; +x_68 = lean_array_get(x_67, x_17, x_66); +x_69 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_68); +x_70 = l_Array_toList___rarg(x_69); +lean_dec(x_69); +x_71 = lean_array_push(x_12, x_70); +x_72 = lean_unsigned_to_nat(3u); +x_73 = l_Lean_Syntax_getArg(x_68, x_72); +x_74 = lean_array_push(x_15, x_73); +x_75 = l_Array_eraseIdx___rarg(x_17, x_66); +lean_dec(x_66); +x_76 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_76, 0, x_68); +lean_ctor_set(x_8, 1, x_76); lean_ctor_set(x_8, 0, x_75); -lean_ctor_set(x_3, 0, x_72); -x_4 = x_11; +lean_ctor_set(x_7, 0, x_74); +lean_ctor_set(x_2, 0, x_71); +x_3 = x_10; goto _start; } } else { -lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; +lean_dec(x_8); +x_78 = lean_ctor_get(x_21, 0); +lean_inc(x_78); +if (lean_is_exclusive(x_21)) { + lean_ctor_release(x_21, 0); + x_79 = x_21; +} else { + lean_dec_ref(x_21); + x_79 = lean_box(0); +} +x_80 = l_Lean_Syntax_inhabited; +x_81 = lean_array_get(x_80, x_17, x_78); +x_82 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_81); +x_83 = l_Array_toList___rarg(x_82); +lean_dec(x_82); +x_84 = lean_array_push(x_12, x_83); +x_85 = lean_unsigned_to_nat(3u); +x_86 = l_Lean_Syntax_getArg(x_81, x_85); +x_87 = lean_array_push(x_15, x_86); +x_88 = l_Array_eraseIdx___rarg(x_17, x_78); +lean_dec(x_78); +if (lean_is_scalar(x_79)) { + x_89 = lean_alloc_ctor(1, 1, 0); +} else { + x_89 = x_79; +} +lean_ctor_set(x_89, 0, x_81); +x_90 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_90, 0, x_88); +lean_ctor_set(x_90, 1, x_89); +lean_ctor_set(x_7, 1, x_90); +lean_ctor_set(x_7, 0, x_87); +lean_ctor_set(x_2, 0, x_84); +x_3 = x_10; +goto _start; +} +} +} +else +{ +uint8_t x_92; lean_dec(x_9); -x_79 = lean_ctor_get(x_22, 0); -lean_inc(x_79); -if (lean_is_exclusive(x_22)) { - lean_ctor_release(x_22, 0); - x_80 = x_22; -} else { - lean_dec_ref(x_22); - x_80 = lean_box(0); -} -x_81 = l_Lean_Syntax_inhabited; -x_82 = lean_array_get(x_81, x_18, x_79); -x_83 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_82); -x_84 = l_Array_toList___rarg(x_83); -lean_dec(x_83); -x_85 = lean_array_push(x_13, x_84); -x_86 = lean_unsigned_to_nat(3u); -x_87 = l_Lean_Syntax_getArg(x_82, x_86); -x_88 = lean_array_push(x_16, x_87); -x_89 = l_Array_eraseIdx___rarg(x_18, x_79); -lean_dec(x_79); -if (lean_is_scalar(x_80)) { - x_90 = lean_alloc_ctor(1, 1, 0); -} else { - x_90 = x_80; -} -lean_ctor_set(x_90, 0, x_82); -x_91 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_90); -lean_ctor_set(x_8, 1, x_91); -lean_ctor_set(x_8, 0, x_88); -lean_ctor_set(x_3, 0, x_85); -x_4 = x_11; -goto _start; -} -} -} -else +x_92 = !lean_is_exclusive(x_8); +if (x_92 == 0) { -uint8_t x_93; -lean_dec(x_10); -x_93 = !lean_is_exclusive(x_9); -if (x_93 == 0) -{ -lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; -x_94 = lean_ctor_get(x_9, 1); +lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_93 = lean_ctor_get(x_8, 1); +lean_dec(x_93); +x_94 = lean_ctor_get(x_8, 0); lean_dec(x_94); -x_95 = lean_ctor_get(x_9, 0); -lean_dec(x_95); -x_96 = lean_ctor_get(x_21, 0); -lean_inc(x_96); -lean_dec(x_21); -x_97 = l_Lean_Syntax_inhabited; -x_98 = lean_array_get(x_97, x_18, x_96); -x_99 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_98); -x_100 = l_Array_toList___rarg(x_99); -lean_dec(x_99); -x_101 = lean_array_push(x_13, x_100); -x_102 = lean_unsigned_to_nat(3u); -x_103 = l_Lean_Syntax_getArg(x_98, x_102); +x_95 = lean_ctor_get(x_20, 0); +lean_inc(x_95); +lean_dec(x_20); +x_96 = l_Lean_Syntax_inhabited; +x_97 = lean_array_get(x_96, x_17, x_95); +x_98 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_97); +x_99 = l_Array_toList___rarg(x_98); lean_dec(x_98); -x_104 = lean_array_push(x_16, x_103); -x_105 = l_Array_eraseIdx___rarg(x_18, x_96); -lean_dec(x_96); -lean_ctor_set(x_9, 0, x_105); +x_100 = lean_array_push(x_12, x_99); +x_101 = lean_unsigned_to_nat(3u); +x_102 = l_Lean_Syntax_getArg(x_97, x_101); +lean_dec(x_97); +x_103 = lean_array_push(x_15, x_102); +x_104 = l_Array_eraseIdx___rarg(x_17, x_95); +lean_dec(x_95); lean_ctor_set(x_8, 0, x_104); -lean_ctor_set(x_3, 0, x_101); -x_4 = x_11; +lean_ctor_set(x_7, 0, x_103); +lean_ctor_set(x_2, 0, x_100); +x_3 = x_10; goto _start; } else { -lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; -lean_dec(x_9); -x_107 = lean_ctor_get(x_21, 0); -lean_inc(x_107); -lean_dec(x_21); -x_108 = l_Lean_Syntax_inhabited; -x_109 = lean_array_get(x_108, x_18, x_107); -x_110 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_109); -x_111 = l_Array_toList___rarg(x_110); -lean_dec(x_110); -x_112 = lean_array_push(x_13, x_111); -x_113 = lean_unsigned_to_nat(3u); -x_114 = l_Lean_Syntax_getArg(x_109, x_113); +lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; +lean_dec(x_8); +x_106 = lean_ctor_get(x_20, 0); +lean_inc(x_106); +lean_dec(x_20); +x_107 = l_Lean_Syntax_inhabited; +x_108 = lean_array_get(x_107, x_17, x_106); +x_109 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_108); +x_110 = l_Array_toList___rarg(x_109); lean_dec(x_109); -x_115 = lean_array_push(x_16, x_114); -x_116 = l_Array_eraseIdx___rarg(x_18, x_107); -lean_dec(x_107); -x_117 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_117, 0, x_116); -lean_ctor_set(x_117, 1, x_19); -lean_ctor_set(x_8, 1, x_117); -lean_ctor_set(x_8, 0, x_115); -lean_ctor_set(x_3, 0, x_112); -x_4 = x_11; +x_111 = lean_array_push(x_12, x_110); +x_112 = lean_unsigned_to_nat(3u); +x_113 = l_Lean_Syntax_getArg(x_108, x_112); +lean_dec(x_108); +x_114 = lean_array_push(x_15, x_113); +x_115 = l_Array_eraseIdx___rarg(x_17, x_106); +lean_dec(x_106); +x_116 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_116, 0, x_115); +lean_ctor_set(x_116, 1, x_18); +lean_ctor_set(x_7, 1, x_116); +lean_ctor_set(x_7, 0, x_114); +lean_ctor_set(x_2, 0, x_111); +x_3 = x_10; goto _start; } } } else { -lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; +lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; +x_118 = lean_ctor_get(x_7, 0); +lean_inc(x_118); +lean_dec(x_7); x_119 = lean_ctor_get(x_8, 0); lean_inc(x_119); -lean_dec(x_8); -x_120 = lean_ctor_get(x_9, 0); +x_120 = lean_ctor_get(x_8, 1); lean_inc(x_120); -x_121 = lean_ctor_get(x_9, 1); -lean_inc(x_121); -x_122 = lean_unsigned_to_nat(0u); -x_123 = l_Array_findIdxAux___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__1(x_10, x_120, x_122); +x_121 = lean_unsigned_to_nat(0u); +x_122 = l_Array_findIdxAux___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__1(x_9, x_119, x_121); +if (lean_obj_tag(x_122) == 0) +{ +lean_object* x_123; +x_123 = l_Array_findIdxAux___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__2(x_119, x_121); if (lean_obj_tag(x_123) == 0) { -lean_object* x_124; -x_124 = l_Array_findIdxAux___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__2(x_120, x_122); -if (lean_obj_tag(x_124) == 0) -{ -lean_dec(x_120); -if (lean_obj_tag(x_121) == 0) -{ -if (x_2 == 0) -{ -lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_dec(x_119); -lean_free_object(x_3); -lean_dec(x_13); -lean_dec(x_9); -x_125 = l_Lean_Name_toString___closed__1; -x_126 = l_Lean_Name_toStringWithSep___main(x_125, x_10); -x_127 = lean_alloc_ctor(2, 1, 0); +if (lean_obj_tag(x_120) == 0) +{ +if (x_1 == 0) +{ +lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; +lean_dec(x_118); +lean_free_object(x_2); +lean_dec(x_12); +lean_dec(x_8); +x_124 = l_Lean_Name_toString___closed__1; +x_125 = l_Lean_Name_toStringWithSep___main(x_124, x_9); +x_126 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_126, 0, x_125); +x_127 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_127, 0, x_126); -x_128 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_128, 0, x_127); -x_129 = l_List_foldlM___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__3___closed__3; -x_130 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_130, 0, x_129); -lean_ctor_set(x_130, 1, x_128); -x_131 = l_List_foldlM___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__3___closed__6; -x_132 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_132, 0, x_130); -lean_ctor_set(x_132, 1, x_131); -lean_inc(x_5); -lean_inc(x_1); -x_133 = l_Lean_Elab_Tactic_throwError___rarg(x_1, x_132, x_5, x_6); -if (lean_obj_tag(x_133) == 0) +x_128 = l_List_foldlM___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__3___closed__3; +x_129 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_129, 0, x_128); +lean_ctor_set(x_129, 1, x_127); +x_130 = l_List_foldlM___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__3___closed__6; +x_131 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_131, 0, x_129); +lean_ctor_set(x_131, 1, x_130); +lean_inc(x_4); +x_132 = l_Lean_Elab_Tactic_throwError___rarg(x_131, x_4, x_5); +if (lean_obj_tag(x_132) == 0) { -lean_object* x_134; lean_object* x_135; -x_134 = lean_ctor_get(x_133, 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); -x_135 = lean_ctor_get(x_133, 1); -lean_inc(x_135); -lean_dec(x_133); -x_3 = x_134; -x_4 = x_11; -x_6 = x_135; +lean_dec(x_132); +x_2 = x_133; +x_3 = x_10; +x_5 = x_134; goto _start; } else { -lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; -lean_dec(x_11); -lean_dec(x_5); -lean_dec(x_1); -x_137 = lean_ctor_get(x_133, 0); +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; +lean_dec(x_10); +lean_dec(x_4); +x_136 = lean_ctor_get(x_132, 0); +lean_inc(x_136); +x_137 = lean_ctor_get(x_132, 1); lean_inc(x_137); -x_138 = lean_ctor_get(x_133, 1); -lean_inc(x_138); -if (lean_is_exclusive(x_133)) { - lean_ctor_release(x_133, 0); - lean_ctor_release(x_133, 1); - x_139 = x_133; +if (lean_is_exclusive(x_132)) { + lean_ctor_release(x_132, 0); + lean_ctor_release(x_132, 1); + x_138 = x_132; } else { - lean_dec_ref(x_133); - x_139 = lean_box(0); + lean_dec_ref(x_132); + x_138 = lean_box(0); } -if (lean_is_scalar(x_139)) { - x_140 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_138)) { + x_139 = lean_alloc_ctor(1, 2, 0); } else { - x_140 = x_139; + x_139 = x_138; } -lean_ctor_set(x_140, 0, x_137); -lean_ctor_set(x_140, 1, x_138); -return x_140; +lean_ctor_set(x_139, 0, x_136); +lean_ctor_set(x_139, 1, x_137); +return x_139; } } else { -lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; -lean_dec(x_10); -x_141 = lean_box(0); -x_142 = lean_array_push(x_13, x_141); -x_143 = lean_box(0); -x_144 = lean_array_push(x_119, x_143); -x_145 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_145, 0, x_144); -lean_ctor_set(x_145, 1, x_9); -lean_ctor_set(x_3, 1, x_145); -lean_ctor_set(x_3, 0, x_142); -x_4 = x_11; +lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; +lean_dec(x_9); +x_140 = lean_box(0); +x_141 = lean_array_push(x_12, x_140); +x_142 = lean_box(0); +x_143 = lean_array_push(x_118, x_142); +x_144 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_144, 0, x_143); +lean_ctor_set(x_144, 1, x_8); +lean_ctor_set(x_2, 1, x_144); +lean_ctor_set(x_2, 0, x_141); +x_3 = x_10; goto _start; } } else { -lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; -lean_dec(x_10); -x_147 = lean_ctor_get(x_121, 0); -lean_inc(x_147); -lean_dec(x_121); -x_148 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_147); -x_149 = l_Array_toList___rarg(x_148); -lean_dec(x_148); -x_150 = lean_array_push(x_13, x_149); -x_151 = lean_unsigned_to_nat(3u); -x_152 = l_Lean_Syntax_getArg(x_147, x_151); +lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; +lean_dec(x_9); +x_146 = lean_ctor_get(x_120, 0); +lean_inc(x_146); +lean_dec(x_120); +x_147 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_146); +x_148 = l_Array_toList___rarg(x_147); lean_dec(x_147); -x_153 = lean_array_push(x_119, x_152); -x_154 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_154, 0, x_153); -lean_ctor_set(x_154, 1, x_9); -lean_ctor_set(x_3, 1, x_154); -lean_ctor_set(x_3, 0, x_150); -x_4 = x_11; +x_149 = lean_array_push(x_12, x_148); +x_150 = lean_unsigned_to_nat(3u); +x_151 = l_Lean_Syntax_getArg(x_146, x_150); +lean_dec(x_146); +x_152 = lean_array_push(x_118, x_151); +x_153 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_153, 0, x_152); +lean_ctor_set(x_153, 1, x_8); +lean_ctor_set(x_2, 1, x_153); +lean_ctor_set(x_2, 0, x_149); +x_3 = x_10; goto _start; } } else { -lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; -lean_dec(x_121); -lean_dec(x_10); -if (lean_is_exclusive(x_9)) { - lean_ctor_release(x_9, 0); - lean_ctor_release(x_9, 1); - x_156 = x_9; -} else { - lean_dec_ref(x_9); - x_156 = lean_box(0); -} -x_157 = lean_ctor_get(x_124, 0); -lean_inc(x_157); -if (lean_is_exclusive(x_124)) { - lean_ctor_release(x_124, 0); - x_158 = x_124; -} else { - lean_dec_ref(x_124); - x_158 = lean_box(0); -} -x_159 = l_Lean_Syntax_inhabited; -x_160 = lean_array_get(x_159, x_120, x_157); -x_161 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_160); -x_162 = l_Array_toList___rarg(x_161); -lean_dec(x_161); -x_163 = lean_array_push(x_13, x_162); -x_164 = lean_unsigned_to_nat(3u); -x_165 = l_Lean_Syntax_getArg(x_160, x_164); -x_166 = lean_array_push(x_119, x_165); -x_167 = l_Array_eraseIdx___rarg(x_120, x_157); -lean_dec(x_157); -if (lean_is_scalar(x_158)) { - x_168 = lean_alloc_ctor(1, 1, 0); -} else { - x_168 = x_158; -} -lean_ctor_set(x_168, 0, x_160); -if (lean_is_scalar(x_156)) { - x_169 = lean_alloc_ctor(0, 2, 0); -} else { - x_169 = x_156; -} -lean_ctor_set(x_169, 0, x_167); -lean_ctor_set(x_169, 1, x_168); -x_170 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_170, 0, x_166); -lean_ctor_set(x_170, 1, x_169); -lean_ctor_set(x_3, 1, x_170); -lean_ctor_set(x_3, 0, x_163); -x_4 = x_11; -goto _start; -} -} -else -{ -lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; -lean_dec(x_10); -if (lean_is_exclusive(x_9)) { - lean_ctor_release(x_9, 0); - lean_ctor_release(x_9, 1); - x_172 = x_9; -} else { - lean_dec_ref(x_9); - x_172 = lean_box(0); -} -x_173 = lean_ctor_get(x_123, 0); -lean_inc(x_173); -lean_dec(x_123); -x_174 = l_Lean_Syntax_inhabited; -x_175 = lean_array_get(x_174, x_120, x_173); -x_176 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_175); -x_177 = l_Array_toList___rarg(x_176); -lean_dec(x_176); -x_178 = lean_array_push(x_13, x_177); -x_179 = lean_unsigned_to_nat(3u); -x_180 = l_Lean_Syntax_getArg(x_175, x_179); -lean_dec(x_175); -x_181 = lean_array_push(x_119, x_180); -x_182 = l_Array_eraseIdx___rarg(x_120, x_173); -lean_dec(x_173); -if (lean_is_scalar(x_172)) { - x_183 = lean_alloc_ctor(0, 2, 0); -} else { - x_183 = x_172; -} -lean_ctor_set(x_183, 0, x_182); -lean_ctor_set(x_183, 1, x_121); -x_184 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_184, 0, x_181); -lean_ctor_set(x_184, 1, x_183); -lean_ctor_set(x_3, 1, x_184); -lean_ctor_set(x_3, 0, x_178); -x_4 = x_11; -goto _start; -} -} -} -else -{ -lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; -x_186 = lean_ctor_get(x_3, 0); -lean_inc(x_186); -lean_dec(x_3); -x_187 = lean_ctor_get(x_8, 0); -lean_inc(x_187); +lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; +lean_dec(x_120); +lean_dec(x_9); if (lean_is_exclusive(x_8)) { lean_ctor_release(x_8, 0); lean_ctor_release(x_8, 1); - x_188 = x_8; + x_155 = x_8; } else { lean_dec_ref(x_8); - x_188 = lean_box(0); + x_155 = lean_box(0); } -x_189 = lean_ctor_get(x_9, 0); +x_156 = lean_ctor_get(x_123, 0); +lean_inc(x_156); +if (lean_is_exclusive(x_123)) { + lean_ctor_release(x_123, 0); + x_157 = x_123; +} else { + lean_dec_ref(x_123); + x_157 = lean_box(0); +} +x_158 = l_Lean_Syntax_inhabited; +x_159 = lean_array_get(x_158, x_119, x_156); +x_160 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_159); +x_161 = l_Array_toList___rarg(x_160); +lean_dec(x_160); +x_162 = lean_array_push(x_12, x_161); +x_163 = lean_unsigned_to_nat(3u); +x_164 = l_Lean_Syntax_getArg(x_159, x_163); +x_165 = lean_array_push(x_118, x_164); +x_166 = l_Array_eraseIdx___rarg(x_119, x_156); +lean_dec(x_156); +if (lean_is_scalar(x_157)) { + x_167 = lean_alloc_ctor(1, 1, 0); +} else { + x_167 = x_157; +} +lean_ctor_set(x_167, 0, x_159); +if (lean_is_scalar(x_155)) { + x_168 = lean_alloc_ctor(0, 2, 0); +} else { + x_168 = x_155; +} +lean_ctor_set(x_168, 0, x_166); +lean_ctor_set(x_168, 1, x_167); +x_169 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_169, 0, x_165); +lean_ctor_set(x_169, 1, x_168); +lean_ctor_set(x_2, 1, x_169); +lean_ctor_set(x_2, 0, x_162); +x_3 = x_10; +goto _start; +} +} +else +{ +lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; +lean_dec(x_9); +if (lean_is_exclusive(x_8)) { + lean_ctor_release(x_8, 0); + lean_ctor_release(x_8, 1); + x_171 = x_8; +} else { + lean_dec_ref(x_8); + x_171 = lean_box(0); +} +x_172 = lean_ctor_get(x_122, 0); +lean_inc(x_172); +lean_dec(x_122); +x_173 = l_Lean_Syntax_inhabited; +x_174 = lean_array_get(x_173, x_119, x_172); +x_175 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_174); +x_176 = l_Array_toList___rarg(x_175); +lean_dec(x_175); +x_177 = lean_array_push(x_12, x_176); +x_178 = lean_unsigned_to_nat(3u); +x_179 = l_Lean_Syntax_getArg(x_174, x_178); +lean_dec(x_174); +x_180 = lean_array_push(x_118, x_179); +x_181 = l_Array_eraseIdx___rarg(x_119, x_172); +lean_dec(x_172); +if (lean_is_scalar(x_171)) { + x_182 = lean_alloc_ctor(0, 2, 0); +} else { + x_182 = x_171; +} +lean_ctor_set(x_182, 0, x_181); +lean_ctor_set(x_182, 1, x_120); +x_183 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_183, 0, x_180); +lean_ctor_set(x_183, 1, x_182); +lean_ctor_set(x_2, 1, x_183); +lean_ctor_set(x_2, 0, x_177); +x_3 = x_10; +goto _start; +} +} +} +else +{ +lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; +x_185 = lean_ctor_get(x_2, 0); +lean_inc(x_185); +lean_dec(x_2); +x_186 = lean_ctor_get(x_7, 0); +lean_inc(x_186); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + x_187 = x_7; +} else { + lean_dec_ref(x_7); + x_187 = lean_box(0); +} +x_188 = lean_ctor_get(x_8, 0); +lean_inc(x_188); +x_189 = lean_ctor_get(x_8, 1); lean_inc(x_189); -x_190 = lean_ctor_get(x_9, 1); -lean_inc(x_190); -x_191 = lean_unsigned_to_nat(0u); -x_192 = l_Array_findIdxAux___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__1(x_10, x_189, x_191); +x_190 = lean_unsigned_to_nat(0u); +x_191 = l_Array_findIdxAux___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__1(x_9, x_188, x_190); +if (lean_obj_tag(x_191) == 0) +{ +lean_object* x_192; +x_192 = l_Array_findIdxAux___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__2(x_188, x_190); if (lean_obj_tag(x_192) == 0) { -lean_object* x_193; -x_193 = l_Array_findIdxAux___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__2(x_189, x_191); -if (lean_obj_tag(x_193) == 0) -{ -lean_dec(x_189); -if (lean_obj_tag(x_190) == 0) -{ -if (x_2 == 0) -{ -lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_dec(x_188); +if (lean_obj_tag(x_189) == 0) +{ +if (x_1 == 0) +{ +lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_dec(x_187); lean_dec(x_186); -lean_dec(x_9); -x_194 = l_Lean_Name_toString___closed__1; -x_195 = l_Lean_Name_toStringWithSep___main(x_194, x_10); -x_196 = lean_alloc_ctor(2, 1, 0); +lean_dec(x_185); +lean_dec(x_8); +x_193 = l_Lean_Name_toString___closed__1; +x_194 = l_Lean_Name_toStringWithSep___main(x_193, x_9); +x_195 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_195, 0, x_194); +x_196 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_196, 0, x_195); -x_197 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_197, 0, x_196); -x_198 = l_List_foldlM___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__3___closed__3; -x_199 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_199, 0, x_198); -lean_ctor_set(x_199, 1, x_197); -x_200 = l_List_foldlM___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__3___closed__6; -x_201 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_201, 0, x_199); -lean_ctor_set(x_201, 1, x_200); -lean_inc(x_5); -lean_inc(x_1); -x_202 = l_Lean_Elab_Tactic_throwError___rarg(x_1, x_201, x_5, x_6); -if (lean_obj_tag(x_202) == 0) +x_197 = l_List_foldlM___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__3___closed__3; +x_198 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_198, 0, x_197); +lean_ctor_set(x_198, 1, x_196); +x_199 = l_List_foldlM___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__3___closed__6; +x_200 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_200, 0, x_198); +lean_ctor_set(x_200, 1, x_199); +lean_inc(x_4); +x_201 = l_Lean_Elab_Tactic_throwError___rarg(x_200, x_4, x_5); +if (lean_obj_tag(x_201) == 0) { -lean_object* x_203; lean_object* x_204; -x_203 = lean_ctor_get(x_202, 0); +lean_object* x_202; lean_object* x_203; +x_202 = lean_ctor_get(x_201, 0); +lean_inc(x_202); +x_203 = lean_ctor_get(x_201, 1); lean_inc(x_203); -x_204 = lean_ctor_get(x_202, 1); -lean_inc(x_204); -lean_dec(x_202); -x_3 = x_203; -x_4 = x_11; -x_6 = x_204; +lean_dec(x_201); +x_2 = x_202; +x_3 = x_10; +x_5 = x_203; goto _start; } else { -lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; -lean_dec(x_11); -lean_dec(x_5); -lean_dec(x_1); -x_206 = lean_ctor_get(x_202, 0); +lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; +lean_dec(x_10); +lean_dec(x_4); +x_205 = lean_ctor_get(x_201, 0); +lean_inc(x_205); +x_206 = lean_ctor_get(x_201, 1); lean_inc(x_206); -x_207 = lean_ctor_get(x_202, 1); -lean_inc(x_207); -if (lean_is_exclusive(x_202)) { - lean_ctor_release(x_202, 0); - lean_ctor_release(x_202, 1); - x_208 = x_202; +if (lean_is_exclusive(x_201)) { + lean_ctor_release(x_201, 0); + lean_ctor_release(x_201, 1); + x_207 = x_201; } else { - lean_dec_ref(x_202); - x_208 = lean_box(0); + lean_dec_ref(x_201); + x_207 = lean_box(0); } -if (lean_is_scalar(x_208)) { - x_209 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_207)) { + x_208 = lean_alloc_ctor(1, 2, 0); } else { - x_209 = x_208; + x_208 = x_207; } -lean_ctor_set(x_209, 0, x_206); -lean_ctor_set(x_209, 1, x_207); -return x_209; +lean_ctor_set(x_208, 0, x_205); +lean_ctor_set(x_208, 1, x_206); +return x_208; } } else { -lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; -lean_dec(x_10); -x_210 = lean_box(0); -x_211 = lean_array_push(x_186, x_210); -x_212 = lean_box(0); -x_213 = lean_array_push(x_187, x_212); -if (lean_is_scalar(x_188)) { - x_214 = lean_alloc_ctor(0, 2, 0); +lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; +lean_dec(x_9); +x_209 = lean_box(0); +x_210 = lean_array_push(x_185, x_209); +x_211 = lean_box(0); +x_212 = lean_array_push(x_186, x_211); +if (lean_is_scalar(x_187)) { + x_213 = lean_alloc_ctor(0, 2, 0); } else { - x_214 = x_188; + x_213 = x_187; } -lean_ctor_set(x_214, 0, x_213); -lean_ctor_set(x_214, 1, x_9); -x_215 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_215, 0, x_211); -lean_ctor_set(x_215, 1, x_214); -x_3 = x_215; -x_4 = x_11; +lean_ctor_set(x_213, 0, x_212); +lean_ctor_set(x_213, 1, x_8); +x_214 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_214, 0, x_210); +lean_ctor_set(x_214, 1, x_213); +x_2 = x_214; +x_3 = x_10; goto _start; } } else { -lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; -lean_dec(x_10); -x_217 = lean_ctor_get(x_190, 0); -lean_inc(x_217); -lean_dec(x_190); -x_218 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_217); -x_219 = l_Array_toList___rarg(x_218); -lean_dec(x_218); -x_220 = lean_array_push(x_186, x_219); -x_221 = lean_unsigned_to_nat(3u); -x_222 = l_Lean_Syntax_getArg(x_217, x_221); +lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; +lean_dec(x_9); +x_216 = lean_ctor_get(x_189, 0); +lean_inc(x_216); +lean_dec(x_189); +x_217 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_216); +x_218 = l_Array_toList___rarg(x_217); lean_dec(x_217); -x_223 = lean_array_push(x_187, x_222); -if (lean_is_scalar(x_188)) { - x_224 = lean_alloc_ctor(0, 2, 0); +x_219 = lean_array_push(x_185, x_218); +x_220 = lean_unsigned_to_nat(3u); +x_221 = l_Lean_Syntax_getArg(x_216, x_220); +lean_dec(x_216); +x_222 = lean_array_push(x_186, x_221); +if (lean_is_scalar(x_187)) { + x_223 = lean_alloc_ctor(0, 2, 0); } else { - x_224 = x_188; + x_223 = x_187; } -lean_ctor_set(x_224, 0, x_223); -lean_ctor_set(x_224, 1, x_9); -x_225 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_225, 0, x_220); -lean_ctor_set(x_225, 1, x_224); -x_3 = x_225; -x_4 = x_11; +lean_ctor_set(x_223, 0, x_222); +lean_ctor_set(x_223, 1, x_8); +x_224 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_224, 0, x_219); +lean_ctor_set(x_224, 1, x_223); +x_2 = x_224; +x_3 = x_10; goto _start; } } else { -lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; -lean_dec(x_190); -lean_dec(x_10); -if (lean_is_exclusive(x_9)) { - lean_ctor_release(x_9, 0); - lean_ctor_release(x_9, 1); - x_227 = x_9; +lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; +lean_dec(x_189); +lean_dec(x_9); +if (lean_is_exclusive(x_8)) { + lean_ctor_release(x_8, 0); + lean_ctor_release(x_8, 1); + x_226 = x_8; } else { - lean_dec_ref(x_9); - x_227 = lean_box(0); + lean_dec_ref(x_8); + x_226 = lean_box(0); } -x_228 = lean_ctor_get(x_193, 0); -lean_inc(x_228); -if (lean_is_exclusive(x_193)) { - lean_ctor_release(x_193, 0); - x_229 = x_193; +x_227 = lean_ctor_get(x_192, 0); +lean_inc(x_227); +if (lean_is_exclusive(x_192)) { + lean_ctor_release(x_192, 0); + x_228 = x_192; } else { - lean_dec_ref(x_193); - x_229 = lean_box(0); + lean_dec_ref(x_192); + x_228 = lean_box(0); } -x_230 = l_Lean_Syntax_inhabited; -x_231 = lean_array_get(x_230, x_189, x_228); -x_232 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_231); -x_233 = l_Array_toList___rarg(x_232); -lean_dec(x_232); -x_234 = lean_array_push(x_186, x_233); -x_235 = lean_unsigned_to_nat(3u); -x_236 = l_Lean_Syntax_getArg(x_231, x_235); -x_237 = lean_array_push(x_187, x_236); -x_238 = l_Array_eraseIdx___rarg(x_189, x_228); -lean_dec(x_228); -if (lean_is_scalar(x_229)) { - x_239 = lean_alloc_ctor(1, 1, 0); +x_229 = l_Lean_Syntax_inhabited; +x_230 = lean_array_get(x_229, x_188, x_227); +x_231 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_230); +x_232 = l_Array_toList___rarg(x_231); +lean_dec(x_231); +x_233 = lean_array_push(x_185, x_232); +x_234 = lean_unsigned_to_nat(3u); +x_235 = l_Lean_Syntax_getArg(x_230, x_234); +x_236 = lean_array_push(x_186, x_235); +x_237 = l_Array_eraseIdx___rarg(x_188, x_227); +lean_dec(x_227); +if (lean_is_scalar(x_228)) { + x_238 = lean_alloc_ctor(1, 1, 0); } else { - x_239 = x_229; + x_238 = x_228; } -lean_ctor_set(x_239, 0, x_231); -if (lean_is_scalar(x_227)) { +lean_ctor_set(x_238, 0, x_230); +if (lean_is_scalar(x_226)) { + x_239 = lean_alloc_ctor(0, 2, 0); +} else { + x_239 = x_226; +} +lean_ctor_set(x_239, 0, x_237); +lean_ctor_set(x_239, 1, x_238); +if (lean_is_scalar(x_187)) { x_240 = lean_alloc_ctor(0, 2, 0); } else { - x_240 = x_227; + x_240 = x_187; } -lean_ctor_set(x_240, 0, x_238); +lean_ctor_set(x_240, 0, x_236); lean_ctor_set(x_240, 1, x_239); -if (lean_is_scalar(x_188)) { - x_241 = lean_alloc_ctor(0, 2, 0); -} else { - x_241 = x_188; -} -lean_ctor_set(x_241, 0, x_237); +x_241 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_241, 0, x_233); lean_ctor_set(x_241, 1, x_240); -x_242 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_242, 0, x_234); -lean_ctor_set(x_242, 1, x_241); -x_3 = x_242; -x_4 = x_11; +x_2 = x_241; +x_3 = x_10; goto _start; } } else { -lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; -lean_dec(x_10); -if (lean_is_exclusive(x_9)) { - lean_ctor_release(x_9, 0); - lean_ctor_release(x_9, 1); - x_244 = x_9; +lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; +lean_dec(x_9); +if (lean_is_exclusive(x_8)) { + lean_ctor_release(x_8, 0); + lean_ctor_release(x_8, 1); + x_243 = x_8; } else { - lean_dec_ref(x_9); - x_244 = lean_box(0); + lean_dec_ref(x_8); + x_243 = lean_box(0); } -x_245 = lean_ctor_get(x_192, 0); -lean_inc(x_245); -lean_dec(x_192); -x_246 = l_Lean_Syntax_inhabited; -x_247 = lean_array_get(x_246, x_189, x_245); -x_248 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_247); -x_249 = l_Array_toList___rarg(x_248); -lean_dec(x_248); -x_250 = lean_array_push(x_186, x_249); -x_251 = lean_unsigned_to_nat(3u); -x_252 = l_Lean_Syntax_getArg(x_247, x_251); +x_244 = lean_ctor_get(x_191, 0); +lean_inc(x_244); +lean_dec(x_191); +x_245 = l_Lean_Syntax_inhabited; +x_246 = lean_array_get(x_245, x_188, x_244); +x_247 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_246); +x_248 = l_Array_toList___rarg(x_247); lean_dec(x_247); -x_253 = lean_array_push(x_187, x_252); -x_254 = l_Array_eraseIdx___rarg(x_189, x_245); -lean_dec(x_245); -if (lean_is_scalar(x_244)) { +x_249 = lean_array_push(x_185, x_248); +x_250 = lean_unsigned_to_nat(3u); +x_251 = l_Lean_Syntax_getArg(x_246, x_250); +lean_dec(x_246); +x_252 = lean_array_push(x_186, x_251); +x_253 = l_Array_eraseIdx___rarg(x_188, x_244); +lean_dec(x_244); +if (lean_is_scalar(x_243)) { + x_254 = lean_alloc_ctor(0, 2, 0); +} else { + x_254 = x_243; +} +lean_ctor_set(x_254, 0, x_253); +lean_ctor_set(x_254, 1, x_189); +if (lean_is_scalar(x_187)) { x_255 = lean_alloc_ctor(0, 2, 0); } else { - x_255 = x_244; + x_255 = x_187; } -lean_ctor_set(x_255, 0, x_254); -lean_ctor_set(x_255, 1, x_190); -if (lean_is_scalar(x_188)) { - x_256 = lean_alloc_ctor(0, 2, 0); -} else { - x_256 = x_188; -} -lean_ctor_set(x_256, 0, x_253); +lean_ctor_set(x_255, 0, x_252); +lean_ctor_set(x_255, 1, x_254); +x_256 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_256, 0, x_249); lean_ctor_set(x_256, 1, x_255); -x_257 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_257, 0, x_250); -lean_ctor_set(x_257, 1, x_256); -x_3 = x_257; -x_4 = x_11; +x_2 = x_256; +x_3 = x_10; goto _start; } } @@ -7329,256 +7635,258 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_7; -lean_inc(x_5); -lean_inc(x_1); -x_7 = l_Lean_Elab_Tactic_getInductiveValFromMajor(x_1, x_2, x_5, x_6); -if (lean_obj_tag(x_7) == 0) +lean_object* x_6; +lean_inc(x_4); +x_6 = l_Lean_Elab_Tactic_getInductiveValFromMajor(x_1, x_4, x_5); +if (lean_obj_tag(x_6) == 0) { -uint8_t x_8; -x_8 = !lean_is_exclusive(x_7); -if (x_8 == 0) +uint8_t x_7; +x_7 = !lean_is_exclusive(x_6); +if (x_7 == 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; uint8_t x_15; -x_9 = lean_ctor_get(x_7, 0); -x_10 = lean_ctor_get(x_7, 1); -x_11 = lean_ctor_get(x_9, 0); +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_8 = lean_ctor_get(x_6, 0); +x_9 = lean_ctor_get(x_6, 1); +x_10 = lean_ctor_get(x_8, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -lean_dec(x_11); -x_13 = l_Lean_mkRecFor___closed__1; -x_14 = lean_name_mk_string(x_12, x_13); -x_15 = l_Lean_Syntax_isNone(x_3); -if (x_15 == 0) +lean_dec(x_10); +x_12 = l_Lean_mkRecFor___closed__1; +x_13 = lean_name_mk_string(x_11, x_12); +x_14 = l_Lean_Syntax_isNone(x_2); +if (x_14 == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -lean_free_object(x_7); -x_16 = lean_ctor_get(x_9, 4); +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_free_object(x_6); +x_15 = lean_ctor_get(x_8, 4); +lean_inc(x_15); +lean_dec(x_8); +x_16 = l___private_Lean_Elab_Tactic_Induction_7__getAlts(x_2); +x_17 = lean_box(0); lean_inc(x_16); -lean_dec(x_9); -x_17 = l___private_Lean_Elab_Tactic_Induction_7__getAlts(x_3); -x_18 = lean_box(0); -lean_inc(x_17); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_17); -lean_ctor_set(x_19, 1, x_18); -x_20 = l_Array_empty___closed__1; +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +x_19 = l_Array_empty___closed__1; +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_19); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_20); -lean_ctor_set(x_22, 1, x_21); -x_23 = lean_unsigned_to_nat(0u); -lean_inc(x_5); -x_24 = l_Array_forMAux___main___at___private_Lean_Elab_Tactic_Induction_11__checkAltCtorNames___spec__2(x_16, x_17, x_23, x_5, x_10); -lean_dec(x_17); -if (lean_obj_tag(x_24) == 0) +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_20); +x_22 = lean_unsigned_to_nat(0u); +lean_inc(x_4); +x_23 = l_Array_forMAux___main___at___private_Lean_Elab_Tactic_Induction_11__checkAltCtorNames___spec__2(x_15, x_16, x_22, x_4, x_9); +lean_dec(x_16); +if (lean_obj_tag(x_23) == 0) { -lean_object* x_25; lean_object* x_26; -x_25 = lean_ctor_get(x_24, 1); -lean_inc(x_25); -lean_dec(x_24); -lean_inc(x_5); -lean_inc(x_16); -x_26 = l_List_foldlM___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__3(x_1, x_4, x_22, x_16, x_5, x_25); -if (lean_obj_tag(x_26) == 0) +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_23, 1); +lean_inc(x_24); +lean_dec(x_23); +lean_inc(x_4); +lean_inc(x_15); +x_25 = l_List_foldlM___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__3(x_3, x_21, x_15, x_4, x_24); +if (lean_obj_tag(x_25) == 0) { -lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; -x_27 = lean_ctor_get(x_26, 0); +lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_26, 1); lean_inc(x_27); x_28 = lean_ctor_get(x_27, 1); lean_inc(x_28); -x_29 = lean_ctor_get(x_28, 1); -lean_inc(x_29); -x_30 = !lean_is_exclusive(x_26); -if (x_30 == 0) +x_29 = !lean_is_exclusive(x_25); +if (x_29 == 0) { -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; -x_31 = lean_ctor_get(x_26, 1); +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_30 = lean_ctor_get(x_25, 1); +x_31 = lean_ctor_get(x_25, 0); +lean_dec(x_31); x_32 = lean_ctor_get(x_26, 0); -lean_dec(x_32); +lean_inc(x_32); +lean_dec(x_26); x_33 = lean_ctor_get(x_27, 0); lean_inc(x_33); lean_dec(x_27); -x_34 = lean_ctor_get(x_28, 0); -lean_inc(x_34); +x_34 = !lean_is_exclusive(x_28); +if (x_34 == 0) +{ +lean_object* x_35; lean_object* x_36; uint8_t x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_35 = lean_ctor_get(x_28, 0); +x_36 = lean_ctor_get(x_28, 1); +lean_dec(x_36); +x_37 = l_Array_isEmpty___rarg(x_35); +x_38 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_38, 0, x_13); +lean_ctor_set(x_38, 1, x_32); +lean_ctor_set(x_38, 2, x_33); +x_39 = l_List_redLength___main___rarg(x_15); +x_40 = lean_mk_empty_array_with_capacity(x_39); +lean_dec(x_39); +x_41 = l_List_toArrayAux___main___rarg(x_15, x_40); +lean_ctor_set(x_28, 1, x_41); +lean_ctor_set(x_28, 0, x_38); +if (x_37 == 0) +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +lean_free_object(x_25); +x_42 = l_Lean_Syntax_inhabited; +x_43 = lean_array_get(x_42, x_35, x_22); +lean_dec(x_35); +x_44 = l___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___closed__3; +x_45 = l_Lean_Elab_Tactic_throwErrorAt___rarg(x_43, x_44, x_4, x_30); +if (lean_obj_tag(x_45) == 0) +{ +uint8_t x_46; +x_46 = !lean_is_exclusive(x_45); +if (x_46 == 0) +{ +lean_object* x_47; +x_47 = lean_ctor_get(x_45, 0); +lean_dec(x_47); +lean_ctor_set(x_45, 0, x_28); +return x_45; +} +else +{ +lean_object* x_48; lean_object* x_49; +x_48 = lean_ctor_get(x_45, 1); +lean_inc(x_48); +lean_dec(x_45); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_28); +lean_ctor_set(x_49, 1, x_48); +return x_49; +} +} +else +{ +uint8_t x_50; lean_dec(x_28); -x_35 = !lean_is_exclusive(x_29); -if (x_35 == 0) +x_50 = !lean_is_exclusive(x_45); +if (x_50 == 0) { -lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_36 = lean_ctor_get(x_29, 0); -x_37 = lean_ctor_get(x_29, 1); -lean_dec(x_37); -x_38 = l_Array_isEmpty___rarg(x_36); -x_39 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_39, 0, x_14); -lean_ctor_set(x_39, 1, x_33); -lean_ctor_set(x_39, 2, x_34); -x_40 = l_List_redLength___main___rarg(x_16); -x_41 = lean_mk_empty_array_with_capacity(x_40); -lean_dec(x_40); -x_42 = l_List_toArrayAux___main___rarg(x_16, x_41); -lean_ctor_set(x_29, 1, x_42); -lean_ctor_set(x_29, 0, x_39); -if (x_38 == 0) -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; -lean_free_object(x_26); -x_43 = l_Lean_Syntax_inhabited; -x_44 = lean_array_get(x_43, x_36, x_23); -lean_dec(x_36); -x_45 = l___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___closed__3; -x_46 = l_Lean_Elab_Tactic_throwError___rarg(x_44, x_45, x_5, x_31); -if (lean_obj_tag(x_46) == 0) -{ -uint8_t x_47; -x_47 = !lean_is_exclusive(x_46); -if (x_47 == 0) -{ -lean_object* x_48; -x_48 = lean_ctor_get(x_46, 0); -lean_dec(x_48); -lean_ctor_set(x_46, 0, x_29); -return x_46; +return x_45; } else { -lean_object* x_49; lean_object* x_50; -x_49 = lean_ctor_get(x_46, 1); -lean_inc(x_49); -lean_dec(x_46); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_29); -lean_ctor_set(x_50, 1, x_49); -return x_50; -} -} -else -{ -uint8_t x_51; -lean_dec(x_29); -x_51 = !lean_is_exclusive(x_46); -if (x_51 == 0) -{ -return x_46; -} -else -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_46, 0); -x_53 = lean_ctor_get(x_46, 1); -lean_inc(x_53); +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_45, 0); +x_52 = lean_ctor_get(x_45, 1); lean_inc(x_52); -lean_dec(x_46); -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; +lean_inc(x_51); +lean_dec(x_45); +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +return x_53; } } } else { -lean_dec(x_36); -lean_dec(x_5); -lean_ctor_set(x_26, 0, x_29); -return x_26; +lean_dec(x_35); +lean_dec(x_4); +lean_ctor_set(x_25, 0, x_28); +return x_25; } } else { -lean_object* x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_55 = lean_ctor_get(x_29, 0); -lean_inc(x_55); -lean_dec(x_29); -x_56 = l_Array_isEmpty___rarg(x_55); -x_57 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_57, 0, x_14); -lean_ctor_set(x_57, 1, x_33); -lean_ctor_set(x_57, 2, x_34); -x_58 = l_List_redLength___main___rarg(x_16); -x_59 = lean_mk_empty_array_with_capacity(x_58); -lean_dec(x_58); -x_60 = l_List_toArrayAux___main___rarg(x_16, x_59); -x_61 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_61, 0, x_57); -lean_ctor_set(x_61, 1, x_60); -if (x_56 == 0) +lean_object* x_54; uint8_t x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_54 = lean_ctor_get(x_28, 0); +lean_inc(x_54); +lean_dec(x_28); +x_55 = l_Array_isEmpty___rarg(x_54); +x_56 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_56, 0, x_13); +lean_ctor_set(x_56, 1, x_32); +lean_ctor_set(x_56, 2, x_33); +x_57 = l_List_redLength___main___rarg(x_15); +x_58 = lean_mk_empty_array_with_capacity(x_57); +lean_dec(x_57); +x_59 = l_List_toArrayAux___main___rarg(x_15, x_58); +x_60 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_60, 0, x_56); +lean_ctor_set(x_60, 1, x_59); +if (x_55 == 0) { -lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; -lean_free_object(x_26); -x_62 = l_Lean_Syntax_inhabited; -x_63 = lean_array_get(x_62, x_55, x_23); -lean_dec(x_55); -x_64 = l___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___closed__3; -x_65 = l_Lean_Elab_Tactic_throwError___rarg(x_63, x_64, x_5, x_31); -if (lean_obj_tag(x_65) == 0) +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +lean_free_object(x_25); +x_61 = l_Lean_Syntax_inhabited; +x_62 = lean_array_get(x_61, x_54, x_22); +lean_dec(x_54); +x_63 = l___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___closed__3; +x_64 = l_Lean_Elab_Tactic_throwErrorAt___rarg(x_62, x_63, x_4, x_30); +if (lean_obj_tag(x_64) == 0) { -lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_66 = lean_ctor_get(x_65, 1); -lean_inc(x_66); -if (lean_is_exclusive(x_65)) { - lean_ctor_release(x_65, 0); - lean_ctor_release(x_65, 1); - x_67 = x_65; +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_64, 1); +lean_inc(x_65); +if (lean_is_exclusive(x_64)) { + lean_ctor_release(x_64, 0); + lean_ctor_release(x_64, 1); + x_66 = x_64; } else { - lean_dec_ref(x_65); - x_67 = lean_box(0); + lean_dec_ref(x_64); + x_66 = lean_box(0); } -if (lean_is_scalar(x_67)) { - x_68 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_66)) { + x_67 = lean_alloc_ctor(0, 2, 0); } else { - x_68 = x_67; + x_67 = x_66; } -lean_ctor_set(x_68, 0, x_61); -lean_ctor_set(x_68, 1, x_66); -return x_68; +lean_ctor_set(x_67, 0, x_60); +lean_ctor_set(x_67, 1, x_65); +return x_67; } else { -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; -lean_dec(x_61); -x_69 = lean_ctor_get(x_65, 0); +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +lean_dec(x_60); +x_68 = lean_ctor_get(x_64, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_64, 1); lean_inc(x_69); -x_70 = lean_ctor_get(x_65, 1); -lean_inc(x_70); -if (lean_is_exclusive(x_65)) { - lean_ctor_release(x_65, 0); - lean_ctor_release(x_65, 1); - x_71 = x_65; +if (lean_is_exclusive(x_64)) { + lean_ctor_release(x_64, 0); + lean_ctor_release(x_64, 1); + x_70 = x_64; } else { - lean_dec_ref(x_65); - x_71 = lean_box(0); + lean_dec_ref(x_64); + x_70 = lean_box(0); } -if (lean_is_scalar(x_71)) { - x_72 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_70)) { + x_71 = lean_alloc_ctor(1, 2, 0); } else { - x_72 = x_71; + x_71 = x_70; } -lean_ctor_set(x_72, 0, x_69); -lean_ctor_set(x_72, 1, x_70); -return x_72; +lean_ctor_set(x_71, 0, x_68); +lean_ctor_set(x_71, 1, x_69); +return x_71; } } else { -lean_dec(x_55); -lean_dec(x_5); -lean_ctor_set(x_26, 0, x_61); -return x_26; +lean_dec(x_54); +lean_dec(x_4); +lean_ctor_set(x_25, 0, x_60); +return x_25; } } } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; uint8_t x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_73 = lean_ctor_get(x_26, 1); +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; uint8_t x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_72 = lean_ctor_get(x_25, 1); +lean_inc(x_72); +lean_dec(x_25); +x_73 = lean_ctor_get(x_26, 0); lean_inc(x_73); lean_dec(x_26); x_74 = lean_ctor_get(x_27, 0); @@ -7586,445 +7894,437 @@ lean_inc(x_74); lean_dec(x_27); x_75 = lean_ctor_get(x_28, 0); lean_inc(x_75); -lean_dec(x_28); -x_76 = lean_ctor_get(x_29, 0); -lean_inc(x_76); -if (lean_is_exclusive(x_29)) { - lean_ctor_release(x_29, 0); - lean_ctor_release(x_29, 1); - x_77 = x_29; +if (lean_is_exclusive(x_28)) { + lean_ctor_release(x_28, 0); + lean_ctor_release(x_28, 1); + x_76 = x_28; } else { - lean_dec_ref(x_29); - x_77 = lean_box(0); + lean_dec_ref(x_28); + x_76 = lean_box(0); } -x_78 = l_Array_isEmpty___rarg(x_76); -x_79 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_79, 0, x_14); -lean_ctor_set(x_79, 1, x_74); -lean_ctor_set(x_79, 2, x_75); -x_80 = l_List_redLength___main___rarg(x_16); -x_81 = lean_mk_empty_array_with_capacity(x_80); -lean_dec(x_80); -x_82 = l_List_toArrayAux___main___rarg(x_16, x_81); -if (lean_is_scalar(x_77)) { - x_83 = lean_alloc_ctor(0, 2, 0); +x_77 = l_Array_isEmpty___rarg(x_75); +x_78 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_78, 0, x_13); +lean_ctor_set(x_78, 1, x_73); +lean_ctor_set(x_78, 2, x_74); +x_79 = l_List_redLength___main___rarg(x_15); +x_80 = lean_mk_empty_array_with_capacity(x_79); +lean_dec(x_79); +x_81 = l_List_toArrayAux___main___rarg(x_15, x_80); +if (lean_is_scalar(x_76)) { + x_82 = lean_alloc_ctor(0, 2, 0); } else { - x_83 = x_77; + x_82 = x_76; } -lean_ctor_set(x_83, 0, x_79); -lean_ctor_set(x_83, 1, x_82); -if (x_78 == 0) +lean_ctor_set(x_82, 0, x_78); +lean_ctor_set(x_82, 1, x_81); +if (x_77 == 0) { -lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_84 = l_Lean_Syntax_inhabited; -x_85 = lean_array_get(x_84, x_76, x_23); -lean_dec(x_76); -x_86 = l___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___closed__3; -x_87 = l_Lean_Elab_Tactic_throwError___rarg(x_85, x_86, x_5, x_73); -if (lean_obj_tag(x_87) == 0) +lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_83 = l_Lean_Syntax_inhabited; +x_84 = lean_array_get(x_83, x_75, x_22); +lean_dec(x_75); +x_85 = l___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___closed__3; +x_86 = l_Lean_Elab_Tactic_throwErrorAt___rarg(x_84, x_85, x_4, x_72); +if (lean_obj_tag(x_86) == 0) { -lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_88 = lean_ctor_get(x_87, 1); -lean_inc(x_88); -if (lean_is_exclusive(x_87)) { - lean_ctor_release(x_87, 0); - lean_ctor_release(x_87, 1); - x_89 = x_87; +lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_87 = lean_ctor_get(x_86, 1); +lean_inc(x_87); +if (lean_is_exclusive(x_86)) { + lean_ctor_release(x_86, 0); + lean_ctor_release(x_86, 1); + x_88 = x_86; } else { - lean_dec_ref(x_87); - x_89 = lean_box(0); + lean_dec_ref(x_86); + x_88 = lean_box(0); } -if (lean_is_scalar(x_89)) { - x_90 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_88)) { + x_89 = lean_alloc_ctor(0, 2, 0); } else { - x_90 = x_89; + x_89 = x_88; } -lean_ctor_set(x_90, 0, x_83); -lean_ctor_set(x_90, 1, x_88); -return x_90; +lean_ctor_set(x_89, 0, x_82); +lean_ctor_set(x_89, 1, x_87); +return x_89; } else { -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; -lean_dec(x_83); -x_91 = lean_ctor_get(x_87, 0); +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; +lean_dec(x_82); +x_90 = lean_ctor_get(x_86, 0); +lean_inc(x_90); +x_91 = lean_ctor_get(x_86, 1); lean_inc(x_91); -x_92 = lean_ctor_get(x_87, 1); -lean_inc(x_92); -if (lean_is_exclusive(x_87)) { - lean_ctor_release(x_87, 0); - lean_ctor_release(x_87, 1); - x_93 = x_87; +if (lean_is_exclusive(x_86)) { + lean_ctor_release(x_86, 0); + lean_ctor_release(x_86, 1); + x_92 = x_86; } else { - lean_dec_ref(x_87); - x_93 = lean_box(0); + lean_dec_ref(x_86); + x_92 = lean_box(0); } -if (lean_is_scalar(x_93)) { - x_94 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_92)) { + x_93 = lean_alloc_ctor(1, 2, 0); } else { - x_94 = x_93; + x_93 = x_92; } -lean_ctor_set(x_94, 0, x_91); -lean_ctor_set(x_94, 1, x_92); +lean_ctor_set(x_93, 0, x_90); +lean_ctor_set(x_93, 1, x_91); +return x_93; +} +} +else +{ +lean_object* x_94; +lean_dec(x_75); +lean_dec(x_4); +x_94 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_94, 0, x_82); +lean_ctor_set(x_94, 1, x_72); return x_94; } } -else -{ -lean_object* x_95; -lean_dec(x_76); -lean_dec(x_5); -x_95 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_95, 0, x_83); -lean_ctor_set(x_95, 1, x_73); -return x_95; -} -} } else { -uint8_t x_96; -lean_dec(x_16); -lean_dec(x_14); -lean_dec(x_5); -x_96 = !lean_is_exclusive(x_26); -if (x_96 == 0) +uint8_t x_95; +lean_dec(x_15); +lean_dec(x_13); +lean_dec(x_4); +x_95 = !lean_is_exclusive(x_25); +if (x_95 == 0) { -return x_26; +return x_25; } else { -lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_97 = lean_ctor_get(x_26, 0); -x_98 = lean_ctor_get(x_26, 1); -lean_inc(x_98); +lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_96 = lean_ctor_get(x_25, 0); +x_97 = lean_ctor_get(x_25, 1); lean_inc(x_97); -lean_dec(x_26); -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; +lean_inc(x_96); +lean_dec(x_25); +x_98 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_98, 0, x_96); +lean_ctor_set(x_98, 1, x_97); +return x_98; } } } else { -uint8_t x_100; -lean_dec(x_22); -lean_dec(x_16); -lean_dec(x_14); -lean_dec(x_5); -lean_dec(x_1); -x_100 = !lean_is_exclusive(x_24); -if (x_100 == 0) +uint8_t x_99; +lean_dec(x_21); +lean_dec(x_15); +lean_dec(x_13); +lean_dec(x_4); +x_99 = !lean_is_exclusive(x_23); +if (x_99 == 0) { -return x_24; +return x_23; } else { -lean_object* x_101; lean_object* x_102; lean_object* x_103; -x_101 = lean_ctor_get(x_24, 0); -x_102 = lean_ctor_get(x_24, 1); -lean_inc(x_102); +lean_object* x_100; lean_object* x_101; lean_object* x_102; +x_100 = lean_ctor_get(x_23, 0); +x_101 = lean_ctor_get(x_23, 1); lean_inc(x_101); -lean_dec(x_24); -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; +lean_inc(x_100); +lean_dec(x_23); +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; } } } else { -lean_object* x_104; lean_object* x_105; lean_object* x_106; -lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_1); -x_104 = l_Array_empty___closed__1; -x_105 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_105, 0, x_14); -lean_ctor_set(x_105, 1, x_104); -lean_ctor_set(x_105, 2, x_104); -x_106 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_106, 0, x_105); -lean_ctor_set(x_106, 1, x_104); -lean_ctor_set(x_7, 0, x_106); -return x_7; +lean_object* x_103; lean_object* x_104; lean_object* x_105; +lean_dec(x_8); +lean_dec(x_4); +x_103 = l_Array_empty___closed__1; +x_104 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_104, 0, x_13); +lean_ctor_set(x_104, 1, x_103); +lean_ctor_set(x_104, 2, 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_103); +lean_ctor_set(x_6, 0, x_105); +return x_6; } } else { -lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; -x_107 = lean_ctor_get(x_7, 0); -x_108 = lean_ctor_get(x_7, 1); -lean_inc(x_108); +lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; uint8_t x_112; +x_106 = lean_ctor_get(x_6, 0); +x_107 = lean_ctor_get(x_6, 1); lean_inc(x_107); -lean_dec(x_7); -x_109 = lean_ctor_get(x_107, 0); +lean_inc(x_106); +lean_dec(x_6); +x_108 = lean_ctor_get(x_106, 0); +lean_inc(x_108); +x_109 = lean_ctor_get(x_108, 0); lean_inc(x_109); -x_110 = lean_ctor_get(x_109, 0); -lean_inc(x_110); -lean_dec(x_109); -x_111 = l_Lean_mkRecFor___closed__1; -x_112 = lean_name_mk_string(x_110, x_111); -x_113 = l_Lean_Syntax_isNone(x_3); -if (x_113 == 0) +lean_dec(x_108); +x_110 = l_Lean_mkRecFor___closed__1; +x_111 = lean_name_mk_string(x_109, x_110); +x_112 = l_Lean_Syntax_isNone(x_2); +if (x_112 == 0) { -lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; -x_114 = lean_ctor_get(x_107, 4); +lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; +x_113 = lean_ctor_get(x_106, 4); +lean_inc(x_113); +lean_dec(x_106); +x_114 = l___private_Lean_Elab_Tactic_Induction_7__getAlts(x_2); +x_115 = lean_box(0); lean_inc(x_114); -lean_dec(x_107); -x_115 = l___private_Lean_Elab_Tactic_Induction_7__getAlts(x_3); -x_116 = lean_box(0); -lean_inc(x_115); -x_117 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_117, 0, x_115); -lean_ctor_set(x_117, 1, x_116); -x_118 = l_Array_empty___closed__1; +x_116 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_116, 0, x_114); +lean_ctor_set(x_116, 1, x_115); +x_117 = l_Array_empty___closed__1; +x_118 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_118, 0, x_117); +lean_ctor_set(x_118, 1, x_116); x_119 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_119, 0, x_118); -lean_ctor_set(x_119, 1, x_117); -x_120 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_120, 0, x_118); -lean_ctor_set(x_120, 1, x_119); -x_121 = lean_unsigned_to_nat(0u); -lean_inc(x_5); -x_122 = l_Array_forMAux___main___at___private_Lean_Elab_Tactic_Induction_11__checkAltCtorNames___spec__2(x_114, x_115, x_121, x_5, x_108); -lean_dec(x_115); -if (lean_obj_tag(x_122) == 0) +lean_ctor_set(x_119, 0, x_117); +lean_ctor_set(x_119, 1, x_118); +x_120 = lean_unsigned_to_nat(0u); +lean_inc(x_4); +x_121 = l_Array_forMAux___main___at___private_Lean_Elab_Tactic_Induction_11__checkAltCtorNames___spec__2(x_113, x_114, x_120, x_4, x_107); +lean_dec(x_114); +if (lean_obj_tag(x_121) == 0) { -lean_object* x_123; lean_object* x_124; -x_123 = lean_ctor_get(x_122, 1); -lean_inc(x_123); -lean_dec(x_122); -lean_inc(x_5); -lean_inc(x_114); -x_124 = l_List_foldlM___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__3(x_1, x_4, x_120, x_114, x_5, x_123); -if (lean_obj_tag(x_124) == 0) +lean_object* x_122; lean_object* x_123; +x_122 = lean_ctor_get(x_121, 1); +lean_inc(x_122); +lean_dec(x_121); +lean_inc(x_4); +lean_inc(x_113); +x_123 = l_List_foldlM___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__3(x_3, x_119, x_113, x_4, x_122); +if (lean_obj_tag(x_123) == 0) { -lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; uint8_t x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; -x_125 = lean_ctor_get(x_124, 0); +lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; uint8_t x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; +x_124 = lean_ctor_get(x_123, 0); +lean_inc(x_124); +x_125 = lean_ctor_get(x_124, 1); lean_inc(x_125); x_126 = lean_ctor_get(x_125, 1); lean_inc(x_126); -x_127 = lean_ctor_get(x_126, 1); +x_127 = lean_ctor_get(x_123, 1); lean_inc(x_127); -x_128 = lean_ctor_get(x_124, 1); -lean_inc(x_128); -if (lean_is_exclusive(x_124)) { - lean_ctor_release(x_124, 0); - lean_ctor_release(x_124, 1); - x_129 = x_124; +if (lean_is_exclusive(x_123)) { + lean_ctor_release(x_123, 0); + lean_ctor_release(x_123, 1); + x_128 = x_123; } else { - lean_dec_ref(x_124); - x_129 = lean_box(0); + lean_dec_ref(x_123); + x_128 = lean_box(0); } +x_129 = lean_ctor_get(x_124, 0); +lean_inc(x_129); +lean_dec(x_124); x_130 = lean_ctor_get(x_125, 0); lean_inc(x_130); lean_dec(x_125); x_131 = lean_ctor_get(x_126, 0); lean_inc(x_131); -lean_dec(x_126); -x_132 = lean_ctor_get(x_127, 0); -lean_inc(x_132); -if (lean_is_exclusive(x_127)) { - lean_ctor_release(x_127, 0); - lean_ctor_release(x_127, 1); - x_133 = x_127; +if (lean_is_exclusive(x_126)) { + lean_ctor_release(x_126, 0); + lean_ctor_release(x_126, 1); + x_132 = x_126; } else { - lean_dec_ref(x_127); - x_133 = lean_box(0); + lean_dec_ref(x_126); + x_132 = lean_box(0); } -x_134 = l_Array_isEmpty___rarg(x_132); -x_135 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_135, 0, x_112); -lean_ctor_set(x_135, 1, x_130); -lean_ctor_set(x_135, 2, x_131); -x_136 = l_List_redLength___main___rarg(x_114); -x_137 = lean_mk_empty_array_with_capacity(x_136); -lean_dec(x_136); -x_138 = l_List_toArrayAux___main___rarg(x_114, x_137); -if (lean_is_scalar(x_133)) { - x_139 = lean_alloc_ctor(0, 2, 0); +x_133 = l_Array_isEmpty___rarg(x_131); +x_134 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_134, 0, x_111); +lean_ctor_set(x_134, 1, x_129); +lean_ctor_set(x_134, 2, x_130); +x_135 = l_List_redLength___main___rarg(x_113); +x_136 = lean_mk_empty_array_with_capacity(x_135); +lean_dec(x_135); +x_137 = l_List_toArrayAux___main___rarg(x_113, x_136); +if (lean_is_scalar(x_132)) { + x_138 = lean_alloc_ctor(0, 2, 0); } else { - x_139 = x_133; + x_138 = x_132; } -lean_ctor_set(x_139, 0, x_135); -lean_ctor_set(x_139, 1, x_138); -if (x_134 == 0) +lean_ctor_set(x_138, 0, x_134); +lean_ctor_set(x_138, 1, x_137); +if (x_133 == 0) { -lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; -lean_dec(x_129); -x_140 = l_Lean_Syntax_inhabited; -x_141 = lean_array_get(x_140, x_132, x_121); -lean_dec(x_132); -x_142 = l___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___closed__3; -x_143 = l_Lean_Elab_Tactic_throwError___rarg(x_141, x_142, x_5, x_128); -if (lean_obj_tag(x_143) == 0) +lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; +lean_dec(x_128); +x_139 = l_Lean_Syntax_inhabited; +x_140 = lean_array_get(x_139, x_131, x_120); +lean_dec(x_131); +x_141 = l___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___closed__3; +x_142 = l_Lean_Elab_Tactic_throwErrorAt___rarg(x_140, x_141, x_4, x_127); +if (lean_obj_tag(x_142) == 0) { -lean_object* x_144; lean_object* x_145; lean_object* x_146; -x_144 = lean_ctor_get(x_143, 1); -lean_inc(x_144); -if (lean_is_exclusive(x_143)) { - lean_ctor_release(x_143, 0); - lean_ctor_release(x_143, 1); - x_145 = x_143; +lean_object* x_143; lean_object* x_144; lean_object* x_145; +x_143 = lean_ctor_get(x_142, 1); +lean_inc(x_143); +if (lean_is_exclusive(x_142)) { + lean_ctor_release(x_142, 0); + lean_ctor_release(x_142, 1); + x_144 = x_142; } else { - lean_dec_ref(x_143); - x_145 = lean_box(0); + lean_dec_ref(x_142); + x_144 = lean_box(0); } -if (lean_is_scalar(x_145)) { - x_146 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_144)) { + x_145 = lean_alloc_ctor(0, 2, 0); } else { - x_146 = x_145; + x_145 = x_144; } -lean_ctor_set(x_146, 0, x_139); -lean_ctor_set(x_146, 1, x_144); -return x_146; +lean_ctor_set(x_145, 0, x_138); +lean_ctor_set(x_145, 1, x_143); +return x_145; } else { -lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; -lean_dec(x_139); -x_147 = lean_ctor_get(x_143, 0); +lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; +lean_dec(x_138); +x_146 = lean_ctor_get(x_142, 0); +lean_inc(x_146); +x_147 = lean_ctor_get(x_142, 1); 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; +if (lean_is_exclusive(x_142)) { + lean_ctor_release(x_142, 0); + lean_ctor_release(x_142, 1); + x_148 = x_142; } else { - lean_dec_ref(x_143); - x_149 = lean_box(0); + lean_dec_ref(x_142); + x_148 = lean_box(0); } -if (lean_is_scalar(x_149)) { - x_150 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_148)) { + x_149 = lean_alloc_ctor(1, 2, 0); } else { - x_150 = x_149; + x_149 = x_148; } -lean_ctor_set(x_150, 0, x_147); -lean_ctor_set(x_150, 1, x_148); +lean_ctor_set(x_149, 0, x_146); +lean_ctor_set(x_149, 1, x_147); +return x_149; +} +} +else +{ +lean_object* x_150; +lean_dec(x_131); +lean_dec(x_4); +if (lean_is_scalar(x_128)) { + x_150 = lean_alloc_ctor(0, 2, 0); +} else { + x_150 = x_128; +} +lean_ctor_set(x_150, 0, x_138); +lean_ctor_set(x_150, 1, x_127); return x_150; } } else { -lean_object* x_151; -lean_dec(x_132); -lean_dec(x_5); -if (lean_is_scalar(x_129)) { - x_151 = lean_alloc_ctor(0, 2, 0); -} else { - x_151 = x_129; -} -lean_ctor_set(x_151, 0, x_139); -lean_ctor_set(x_151, 1, x_128); -return x_151; -} -} -else -{ -lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; -lean_dec(x_114); -lean_dec(x_112); -lean_dec(x_5); -x_152 = lean_ctor_get(x_124, 0); +lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; +lean_dec(x_113); +lean_dec(x_111); +lean_dec(x_4); +x_151 = lean_ctor_get(x_123, 0); +lean_inc(x_151); +x_152 = lean_ctor_get(x_123, 1); lean_inc(x_152); -x_153 = lean_ctor_get(x_124, 1); -lean_inc(x_153); -if (lean_is_exclusive(x_124)) { - lean_ctor_release(x_124, 0); - lean_ctor_release(x_124, 1); - x_154 = x_124; +if (lean_is_exclusive(x_123)) { + lean_ctor_release(x_123, 0); + lean_ctor_release(x_123, 1); + x_153 = x_123; } else { - lean_dec_ref(x_124); - x_154 = lean_box(0); + lean_dec_ref(x_123); + x_153 = lean_box(0); } -if (lean_is_scalar(x_154)) { - x_155 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_153)) { + x_154 = lean_alloc_ctor(1, 2, 0); } else { - x_155 = x_154; + x_154 = x_153; } -lean_ctor_set(x_155, 0, x_152); -lean_ctor_set(x_155, 1, x_153); -return x_155; +lean_ctor_set(x_154, 0, x_151); +lean_ctor_set(x_154, 1, x_152); +return x_154; } } else { -lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; -lean_dec(x_120); -lean_dec(x_114); -lean_dec(x_112); -lean_dec(x_5); -lean_dec(x_1); -x_156 = lean_ctor_get(x_122, 0); +lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; +lean_dec(x_119); +lean_dec(x_113); +lean_dec(x_111); +lean_dec(x_4); +x_155 = lean_ctor_get(x_121, 0); +lean_inc(x_155); +x_156 = lean_ctor_get(x_121, 1); lean_inc(x_156); -x_157 = lean_ctor_get(x_122, 1); -lean_inc(x_157); -if (lean_is_exclusive(x_122)) { - lean_ctor_release(x_122, 0); - lean_ctor_release(x_122, 1); - x_158 = x_122; +if (lean_is_exclusive(x_121)) { + lean_ctor_release(x_121, 0); + lean_ctor_release(x_121, 1); + x_157 = x_121; } else { - lean_dec_ref(x_122); - x_158 = lean_box(0); + lean_dec_ref(x_121); + x_157 = lean_box(0); } -if (lean_is_scalar(x_158)) { - x_159 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_157)) { + x_158 = lean_alloc_ctor(1, 2, 0); } else { - x_159 = x_158; + x_158 = x_157; } -lean_ctor_set(x_159, 0, x_156); -lean_ctor_set(x_159, 1, x_157); -return x_159; +lean_ctor_set(x_158, 0, x_155); +lean_ctor_set(x_158, 1, x_156); +return x_158; } } else { -lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; -lean_dec(x_107); -lean_dec(x_5); -lean_dec(x_1); -x_160 = l_Array_empty___closed__1; -x_161 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_161, 0, x_112); -lean_ctor_set(x_161, 1, x_160); -lean_ctor_set(x_161, 2, x_160); +lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; +lean_dec(x_106); +lean_dec(x_4); +x_159 = l_Array_empty___closed__1; +x_160 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_160, 0, x_111); +lean_ctor_set(x_160, 1, x_159); +lean_ctor_set(x_160, 2, x_159); +x_161 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_161, 0, x_160); +lean_ctor_set(x_161, 1, x_159); x_162 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_162, 0, x_161); -lean_ctor_set(x_162, 1, x_160); -x_163 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_163, 0, x_162); -lean_ctor_set(x_163, 1, x_108); -return x_163; +lean_ctor_set(x_162, 1, x_107); +return x_162; } } } else { -uint8_t x_164; -lean_dec(x_5); -lean_dec(x_1); -x_164 = !lean_is_exclusive(x_7); -if (x_164 == 0) +uint8_t x_163; +lean_dec(x_4); +x_163 = !lean_is_exclusive(x_6); +if (x_163 == 0) { -return x_7; +return x_6; } else { -lean_object* x_165; lean_object* x_166; lean_object* x_167; -x_165 = lean_ctor_get(x_7, 0); -x_166 = lean_ctor_get(x_7, 1); -lean_inc(x_166); +lean_object* x_164; lean_object* x_165; lean_object* x_166; +x_164 = lean_ctor_get(x_6, 0); +x_165 = lean_ctor_get(x_6, 1); lean_inc(x_165); -lean_dec(x_7); -x_167 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_167, 0, x_165); -lean_ctor_set(x_167, 1, x_166); -return x_167; +lean_inc(x_164); +lean_dec(x_6); +x_166 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_166, 0, x_164); +lean_ctor_set(x_166, 1, x_165); +return x_166; } } } @@ -8048,25 +8348,25 @@ lean_dec(x_1); return x_3; } } -lean_object* l_List_foldlM___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___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* l_List_foldlM___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -uint8_t x_7; lean_object* x_8; -x_7 = lean_unbox(x_2); -lean_dec(x_2); -x_8 = l_List_foldlM___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__3(x_1, x_7, x_3, x_4, x_5, x_6); -return x_8; +uint8_t x_6; lean_object* x_7; +x_6 = lean_unbox(x_1); +lean_dec(x_1); +x_7 = l_List_foldlM___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__3(x_6, x_2, x_3, x_4, x_5); +return x_7; } } -lean_object* l___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___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* l___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -uint8_t x_7; lean_object* x_8; -x_7 = lean_unbox(x_4); -lean_dec(x_4); -x_8 = l___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault(x_1, x_2, x_3, x_7, x_5, x_6); +uint8_t x_6; lean_object* x_7; +x_6 = lean_unbox(x_3); lean_dec(x_3); -return x_8; +x_7 = l___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault(x_1, x_2, x_6, x_4, x_5); +lean_dec(x_2); +return x_7; } } lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_Tactic_Induction_14__getRecInfo___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { @@ -8138,753 +8438,747 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Nat_foldMAux___main___at___private_Lean_Elab_Tactic_Induction_14__getRecInfo___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) { +lean_object* l_Nat_foldMAux___main___at___private_Lean_Elab_Tactic_Induction_14__getRecInfo___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) { _start: { -lean_object* x_9; uint8_t x_10; -x_9 = lean_unsigned_to_nat(0u); -x_10 = lean_nat_dec_eq(x_5, x_9); -if (x_10 == 0) +lean_object* x_8; uint8_t x_9; +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_nat_dec_eq(x_4, x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_sub(x_4, x_10); +lean_dec(x_4); +x_12 = lean_nat_sub(x_3, x_11); +x_13 = lean_nat_sub(x_12, x_10); +lean_dec(x_12); +x_14 = l_Lean_Meta_RecursorInfo_isMinor(x_1, x_13); +if (x_14 == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; -x_11 = lean_unsigned_to_nat(1u); -x_12 = lean_nat_sub(x_5, x_11); -lean_dec(x_5); -x_13 = lean_nat_sub(x_4, x_12); -x_14 = lean_nat_sub(x_13, x_11); lean_dec(x_13); -x_15 = l_Lean_Meta_RecursorInfo_isMinor(x_2, x_14); -if (x_15 == 0) -{ -lean_dec(x_14); -x_5 = x_12; +x_4 = x_11; goto _start; } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_17 = l_Lean_Name_inhabited; -x_18 = lean_array_get(x_17, x_3, x_14); -lean_dec(x_14); -x_19 = lean_ctor_get(x_6, 1); +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_16 = l_Lean_Name_inhabited; +x_17 = lean_array_get(x_16, x_2, x_13); +lean_dec(x_13); +x_18 = lean_ctor_get(x_5, 1); +lean_inc(x_18); +x_19 = lean_ctor_get(x_18, 1); lean_inc(x_19); -x_20 = lean_ctor_get(x_19, 1); -lean_inc(x_20); -x_21 = !lean_is_exclusive(x_6); -if (x_21 == 0) +x_20 = !lean_is_exclusive(x_5); +if (x_20 == 0) { -lean_object* x_22; lean_object* x_23; uint8_t x_24; -x_22 = lean_ctor_get(x_6, 0); -x_23 = lean_ctor_get(x_6, 1); -lean_dec(x_23); -x_24 = !lean_is_exclusive(x_19); -if (x_24 == 0) +lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_21 = lean_ctor_get(x_5, 0); +x_22 = lean_ctor_get(x_5, 1); +lean_dec(x_22); +x_23 = !lean_is_exclusive(x_18); +if (x_23 == 0) { -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_25 = lean_ctor_get(x_19, 0); -x_26 = lean_ctor_get(x_19, 1); -lean_dec(x_26); -x_27 = lean_ctor_get(x_20, 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_18, 0); +x_25 = lean_ctor_get(x_18, 1); +lean_dec(x_25); +x_26 = lean_ctor_get(x_19, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_19, 1); lean_inc(x_27); -x_28 = lean_ctor_get(x_20, 1); -lean_inc(x_28); -x_29 = l_Array_findIdxAux___main___at___private_Lean_Elab_Tactic_Induction_14__getRecInfo___spec__1(x_18, x_27, x_9); -if (lean_obj_tag(x_29) == 0) -{ -lean_object* x_30; -x_30 = l_Array_findIdxAux___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__2(x_27, x_9); -if (lean_obj_tag(x_30) == 0) -{ -lean_dec(x_27); +x_28 = l_Array_findIdxAux___main___at___private_Lean_Elab_Tactic_Induction_14__getRecInfo___spec__1(x_17, x_26, x_8); if (lean_obj_tag(x_28) == 0) { -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; -lean_free_object(x_19); -lean_dec(x_25); -lean_free_object(x_6); -lean_dec(x_22); -lean_dec(x_20); -x_31 = l_Lean_Name_toString___closed__1; -x_32 = l_Lean_Name_toStringWithSep___main(x_31, x_18); -x_33 = lean_alloc_ctor(2, 1, 0); +lean_object* x_29; +x_29 = l_Array_findIdxAux___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__2(x_26, x_8); +if (lean_obj_tag(x_29) == 0) +{ +lean_dec(x_26); +if (lean_obj_tag(x_27) == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +lean_free_object(x_18); +lean_dec(x_24); +lean_free_object(x_5); +lean_dec(x_21); +lean_dec(x_19); +x_30 = l_Lean_Name_toString___closed__1; +x_31 = l_Lean_Name_toStringWithSep___main(x_30, x_17); +x_32 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_32, 0, x_31); +x_33 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_33, 0, x_32); -x_34 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_34, 0, x_33); -x_35 = l_Nat_foldMAux___main___at___private_Lean_Elab_Tactic_Induction_14__getRecInfo___spec__2___closed__3; -x_36 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_34); -x_37 = l_List_foldlM___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__3___closed__6; -x_38 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_38, 0, x_36); -lean_ctor_set(x_38, 1, x_37); -lean_inc(x_7); -lean_inc(x_1); -x_39 = l_Lean_Elab_Tactic_throwError___rarg(x_1, x_38, x_7, x_8); -if (lean_obj_tag(x_39) == 0) +x_34 = l_Nat_foldMAux___main___at___private_Lean_Elab_Tactic_Induction_14__getRecInfo___spec__2___closed__3; +x_35 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_33); +x_36 = l_List_foldlM___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__3___closed__6; +x_37 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +lean_inc(x_6); +x_38 = l_Lean_Elab_Tactic_throwError___rarg(x_37, x_6, x_7); +if (lean_obj_tag(x_38) == 0) { -lean_object* x_40; lean_object* x_41; -x_40 = lean_ctor_get(x_39, 0); +lean_object* x_39; lean_object* x_40; +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_38, 1); lean_inc(x_40); -x_41 = lean_ctor_get(x_39, 1); -lean_inc(x_41); -lean_dec(x_39); -x_5 = x_12; -x_6 = x_40; -x_8 = x_41; +lean_dec(x_38); +x_4 = x_11; +x_5 = x_39; +x_7 = x_40; goto _start; } else { -uint8_t x_43; -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_1); -x_43 = !lean_is_exclusive(x_39); -if (x_43 == 0) +uint8_t x_42; +lean_dec(x_11); +lean_dec(x_6); +x_42 = !lean_is_exclusive(x_38); +if (x_42 == 0) { -return x_39; +return x_38; } else { -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_39, 0); -x_45 = lean_ctor_get(x_39, 1); -lean_inc(x_45); +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_38, 0); +x_44 = lean_ctor_get(x_38, 1); lean_inc(x_44); -lean_dec(x_39); -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; +lean_inc(x_43); +lean_dec(x_38); +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_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; -lean_dec(x_18); -x_47 = lean_ctor_get(x_28, 0); -lean_inc(x_47); -lean_dec(x_28); -x_48 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_47); -x_49 = l_Array_toList___rarg(x_48); -lean_dec(x_48); -x_50 = lean_array_push(x_22, x_49); -x_51 = lean_unsigned_to_nat(3u); -x_52 = l_Lean_Syntax_getArg(x_47, x_51); +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_dec(x_17); +x_46 = lean_ctor_get(x_27, 0); +lean_inc(x_46); +lean_dec(x_27); +x_47 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_46); +x_48 = l_Array_toList___rarg(x_47); lean_dec(x_47); -x_53 = lean_array_push(x_25, x_52); -lean_ctor_set(x_19, 0, x_53); -lean_ctor_set(x_6, 0, x_50); -x_5 = x_12; +x_49 = lean_array_push(x_21, x_48); +x_50 = lean_unsigned_to_nat(3u); +x_51 = l_Lean_Syntax_getArg(x_46, x_50); +lean_dec(x_46); +x_52 = lean_array_push(x_24, x_51); +lean_ctor_set(x_18, 0, x_52); +lean_ctor_set(x_5, 0, x_49); +x_4 = x_11; goto _start; } } else { -uint8_t x_55; -lean_dec(x_28); -lean_dec(x_18); -x_55 = !lean_is_exclusive(x_20); -if (x_55 == 0) +uint8_t x_54; +lean_dec(x_27); +lean_dec(x_17); +x_54 = !lean_is_exclusive(x_19); +if (x_54 == 0) { -lean_object* x_56; lean_object* x_57; uint8_t x_58; -x_56 = lean_ctor_get(x_20, 1); +lean_object* x_55; lean_object* x_56; uint8_t x_57; +x_55 = lean_ctor_get(x_19, 1); +lean_dec(x_55); +x_56 = lean_ctor_get(x_19, 0); lean_dec(x_56); -x_57 = lean_ctor_get(x_20, 0); -lean_dec(x_57); -x_58 = !lean_is_exclusive(x_30); -if (x_58 == 0) +x_57 = !lean_is_exclusive(x_29); +if (x_57 == 0) { -lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_59 = lean_ctor_get(x_30, 0); -x_60 = l_Lean_Syntax_inhabited; -x_61 = lean_array_get(x_60, x_27, x_59); -x_62 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_61); -x_63 = l_Array_toList___rarg(x_62); -lean_dec(x_62); -x_64 = lean_array_push(x_22, x_63); -x_65 = lean_unsigned_to_nat(3u); -x_66 = l_Lean_Syntax_getArg(x_61, x_65); -x_67 = lean_array_push(x_25, x_66); -x_68 = l_Array_eraseIdx___rarg(x_27, x_59); -lean_dec(x_59); -lean_ctor_set(x_30, 0, x_61); -lean_ctor_set(x_20, 1, x_30); -lean_ctor_set(x_20, 0, x_68); +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_58 = lean_ctor_get(x_29, 0); +x_59 = l_Lean_Syntax_inhabited; +x_60 = lean_array_get(x_59, x_26, x_58); +x_61 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_60); +x_62 = l_Array_toList___rarg(x_61); +lean_dec(x_61); +x_63 = lean_array_push(x_21, x_62); +x_64 = lean_unsigned_to_nat(3u); +x_65 = l_Lean_Syntax_getArg(x_60, x_64); +x_66 = lean_array_push(x_24, x_65); +x_67 = l_Array_eraseIdx___rarg(x_26, x_58); +lean_dec(x_58); +lean_ctor_set(x_29, 0, x_60); +lean_ctor_set(x_19, 1, x_29); lean_ctor_set(x_19, 0, x_67); -lean_ctor_set(x_6, 0, x_64); -x_5 = x_12; +lean_ctor_set(x_18, 0, x_66); +lean_ctor_set(x_5, 0, x_63); +x_4 = x_11; goto _start; } else { -lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_70 = lean_ctor_get(x_30, 0); -lean_inc(x_70); -lean_dec(x_30); -x_71 = l_Lean_Syntax_inhabited; -x_72 = lean_array_get(x_71, x_27, x_70); -x_73 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_72); -x_74 = l_Array_toList___rarg(x_73); -lean_dec(x_73); -x_75 = lean_array_push(x_22, x_74); -x_76 = lean_unsigned_to_nat(3u); -x_77 = l_Lean_Syntax_getArg(x_72, x_76); -x_78 = lean_array_push(x_25, x_77); -x_79 = l_Array_eraseIdx___rarg(x_27, x_70); -lean_dec(x_70); -x_80 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_80, 0, x_72); -lean_ctor_set(x_20, 1, x_80); -lean_ctor_set(x_20, 0, x_79); +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_69 = lean_ctor_get(x_29, 0); +lean_inc(x_69); +lean_dec(x_29); +x_70 = l_Lean_Syntax_inhabited; +x_71 = lean_array_get(x_70, x_26, x_69); +x_72 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_71); +x_73 = l_Array_toList___rarg(x_72); +lean_dec(x_72); +x_74 = lean_array_push(x_21, x_73); +x_75 = lean_unsigned_to_nat(3u); +x_76 = l_Lean_Syntax_getArg(x_71, x_75); +x_77 = lean_array_push(x_24, x_76); +x_78 = l_Array_eraseIdx___rarg(x_26, x_69); +lean_dec(x_69); +x_79 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_79, 0, x_71); +lean_ctor_set(x_19, 1, x_79); lean_ctor_set(x_19, 0, x_78); -lean_ctor_set(x_6, 0, x_75); -x_5 = x_12; +lean_ctor_set(x_18, 0, x_77); +lean_ctor_set(x_5, 0, x_74); +x_4 = x_11; goto _start; } } else { -lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; -lean_dec(x_20); -x_82 = lean_ctor_get(x_30, 0); -lean_inc(x_82); -if (lean_is_exclusive(x_30)) { - lean_ctor_release(x_30, 0); - x_83 = x_30; +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; +lean_dec(x_19); +x_81 = lean_ctor_get(x_29, 0); +lean_inc(x_81); +if (lean_is_exclusive(x_29)) { + lean_ctor_release(x_29, 0); + x_82 = x_29; } else { - lean_dec_ref(x_30); - x_83 = lean_box(0); + lean_dec_ref(x_29); + x_82 = lean_box(0); } -x_84 = l_Lean_Syntax_inhabited; -x_85 = lean_array_get(x_84, x_27, x_82); -x_86 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_85); -x_87 = l_Array_toList___rarg(x_86); -lean_dec(x_86); -x_88 = lean_array_push(x_22, x_87); -x_89 = lean_unsigned_to_nat(3u); -x_90 = l_Lean_Syntax_getArg(x_85, x_89); -x_91 = lean_array_push(x_25, x_90); -x_92 = l_Array_eraseIdx___rarg(x_27, x_82); -lean_dec(x_82); -if (lean_is_scalar(x_83)) { - x_93 = lean_alloc_ctor(1, 1, 0); +x_83 = l_Lean_Syntax_inhabited; +x_84 = lean_array_get(x_83, x_26, x_81); +x_85 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_84); +x_86 = l_Array_toList___rarg(x_85); +lean_dec(x_85); +x_87 = lean_array_push(x_21, x_86); +x_88 = lean_unsigned_to_nat(3u); +x_89 = l_Lean_Syntax_getArg(x_84, x_88); +x_90 = lean_array_push(x_24, x_89); +x_91 = l_Array_eraseIdx___rarg(x_26, x_81); +lean_dec(x_81); +if (lean_is_scalar(x_82)) { + x_92 = lean_alloc_ctor(1, 1, 0); } else { - x_93 = x_83; + x_92 = x_82; } -lean_ctor_set(x_93, 0, x_85); -x_94 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_94, 0, x_92); -lean_ctor_set(x_94, 1, x_93); -lean_ctor_set(x_19, 1, x_94); -lean_ctor_set(x_19, 0, x_91); -lean_ctor_set(x_6, 0, x_88); -x_5 = x_12; +lean_ctor_set(x_92, 0, x_84); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_92); +lean_ctor_set(x_18, 1, x_93); +lean_ctor_set(x_18, 0, x_90); +lean_ctor_set(x_5, 0, x_87); +x_4 = x_11; goto _start; } } } else { -uint8_t x_96; -lean_dec(x_18); -x_96 = !lean_is_exclusive(x_20); -if (x_96 == 0) +uint8_t x_95; +lean_dec(x_17); +x_95 = !lean_is_exclusive(x_19); +if (x_95 == 0) { -lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_97 = lean_ctor_get(x_20, 1); +lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; +x_96 = lean_ctor_get(x_19, 1); +lean_dec(x_96); +x_97 = lean_ctor_get(x_19, 0); lean_dec(x_97); -x_98 = lean_ctor_get(x_20, 0); -lean_dec(x_98); -x_99 = lean_ctor_get(x_29, 0); -lean_inc(x_99); -lean_dec(x_29); -x_100 = l_Lean_Syntax_inhabited; -x_101 = lean_array_get(x_100, x_27, x_99); -x_102 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_101); -x_103 = l_Array_toList___rarg(x_102); -lean_dec(x_102); -x_104 = lean_array_push(x_22, x_103); -x_105 = lean_unsigned_to_nat(3u); -x_106 = l_Lean_Syntax_getArg(x_101, x_105); +x_98 = lean_ctor_get(x_28, 0); +lean_inc(x_98); +lean_dec(x_28); +x_99 = l_Lean_Syntax_inhabited; +x_100 = lean_array_get(x_99, x_26, x_98); +x_101 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_100); +x_102 = l_Array_toList___rarg(x_101); lean_dec(x_101); -x_107 = lean_array_push(x_25, x_106); -x_108 = l_Array_eraseIdx___rarg(x_27, x_99); -lean_dec(x_99); -lean_ctor_set(x_20, 0, x_108); +x_103 = lean_array_push(x_21, x_102); +x_104 = lean_unsigned_to_nat(3u); +x_105 = l_Lean_Syntax_getArg(x_100, x_104); +lean_dec(x_100); +x_106 = lean_array_push(x_24, x_105); +x_107 = l_Array_eraseIdx___rarg(x_26, x_98); +lean_dec(x_98); lean_ctor_set(x_19, 0, x_107); -lean_ctor_set(x_6, 0, x_104); -x_5 = x_12; +lean_ctor_set(x_18, 0, x_106); +lean_ctor_set(x_5, 0, x_103); +x_4 = x_11; goto _start; } else { -lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; -lean_dec(x_20); -x_110 = lean_ctor_get(x_29, 0); -lean_inc(x_110); -lean_dec(x_29); -x_111 = l_Lean_Syntax_inhabited; -x_112 = lean_array_get(x_111, x_27, x_110); -x_113 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_112); -x_114 = l_Array_toList___rarg(x_113); -lean_dec(x_113); -x_115 = lean_array_push(x_22, x_114); -x_116 = lean_unsigned_to_nat(3u); -x_117 = l_Lean_Syntax_getArg(x_112, x_116); +lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; +lean_dec(x_19); +x_109 = lean_ctor_get(x_28, 0); +lean_inc(x_109); +lean_dec(x_28); +x_110 = l_Lean_Syntax_inhabited; +x_111 = lean_array_get(x_110, x_26, x_109); +x_112 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_111); +x_113 = l_Array_toList___rarg(x_112); lean_dec(x_112); -x_118 = lean_array_push(x_25, x_117); -x_119 = l_Array_eraseIdx___rarg(x_27, x_110); -lean_dec(x_110); -x_120 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_120, 0, x_119); -lean_ctor_set(x_120, 1, x_28); -lean_ctor_set(x_19, 1, x_120); -lean_ctor_set(x_19, 0, x_118); -lean_ctor_set(x_6, 0, x_115); -x_5 = x_12; +x_114 = lean_array_push(x_21, x_113); +x_115 = lean_unsigned_to_nat(3u); +x_116 = l_Lean_Syntax_getArg(x_111, x_115); +lean_dec(x_111); +x_117 = lean_array_push(x_24, x_116); +x_118 = l_Array_eraseIdx___rarg(x_26, x_109); +lean_dec(x_109); +x_119 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_119, 0, x_118); +lean_ctor_set(x_119, 1, x_27); +lean_ctor_set(x_18, 1, x_119); +lean_ctor_set(x_18, 0, x_117); +lean_ctor_set(x_5, 0, x_114); +x_4 = x_11; goto _start; } } } else { -lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; +lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_121 = lean_ctor_get(x_18, 0); +lean_inc(x_121); +lean_dec(x_18); x_122 = lean_ctor_get(x_19, 0); lean_inc(x_122); -lean_dec(x_19); -x_123 = lean_ctor_get(x_20, 0); +x_123 = lean_ctor_get(x_19, 1); lean_inc(x_123); -x_124 = lean_ctor_get(x_20, 1); -lean_inc(x_124); -x_125 = l_Array_findIdxAux___main___at___private_Lean_Elab_Tactic_Induction_14__getRecInfo___spec__1(x_18, x_123, x_9); -if (lean_obj_tag(x_125) == 0) -{ -lean_object* x_126; -x_126 = l_Array_findIdxAux___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__2(x_123, x_9); -if (lean_obj_tag(x_126) == 0) -{ -lean_dec(x_123); +x_124 = l_Array_findIdxAux___main___at___private_Lean_Elab_Tactic_Induction_14__getRecInfo___spec__1(x_17, x_122, x_8); if (lean_obj_tag(x_124) == 0) { -lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; +lean_object* x_125; +x_125 = l_Array_findIdxAux___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__2(x_122, x_8); +if (lean_obj_tag(x_125) == 0) +{ lean_dec(x_122); -lean_free_object(x_6); -lean_dec(x_22); -lean_dec(x_20); -x_127 = l_Lean_Name_toString___closed__1; -x_128 = l_Lean_Name_toStringWithSep___main(x_127, x_18); -x_129 = lean_alloc_ctor(2, 1, 0); +if (lean_obj_tag(x_123) == 0) +{ +lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +lean_dec(x_121); +lean_free_object(x_5); +lean_dec(x_21); +lean_dec(x_19); +x_126 = l_Lean_Name_toString___closed__1; +x_127 = l_Lean_Name_toStringWithSep___main(x_126, x_17); +x_128 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_128, 0, x_127); +x_129 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_129, 0, x_128); -x_130 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_130, 0, x_129); -x_131 = l_Nat_foldMAux___main___at___private_Lean_Elab_Tactic_Induction_14__getRecInfo___spec__2___closed__3; -x_132 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_132, 0, x_131); -lean_ctor_set(x_132, 1, x_130); -x_133 = l_List_foldlM___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__3___closed__6; -x_134 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_134, 0, x_132); -lean_ctor_set(x_134, 1, x_133); -lean_inc(x_7); -lean_inc(x_1); -x_135 = l_Lean_Elab_Tactic_throwError___rarg(x_1, x_134, x_7, x_8); -if (lean_obj_tag(x_135) == 0) +x_130 = l_Nat_foldMAux___main___at___private_Lean_Elab_Tactic_Induction_14__getRecInfo___spec__2___closed__3; +x_131 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_131, 0, x_130); +lean_ctor_set(x_131, 1, x_129); +x_132 = l_List_foldlM___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__3___closed__6; +x_133 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_133, 0, x_131); +lean_ctor_set(x_133, 1, x_132); +lean_inc(x_6); +x_134 = l_Lean_Elab_Tactic_throwError___rarg(x_133, x_6, x_7); +if (lean_obj_tag(x_134) == 0) { -lean_object* x_136; lean_object* x_137; -x_136 = lean_ctor_get(x_135, 0); +lean_object* x_135; lean_object* x_136; +x_135 = lean_ctor_get(x_134, 0); +lean_inc(x_135); +x_136 = lean_ctor_get(x_134, 1); lean_inc(x_136); -x_137 = lean_ctor_get(x_135, 1); -lean_inc(x_137); -lean_dec(x_135); -x_5 = x_12; -x_6 = x_136; -x_8 = x_137; +lean_dec(x_134); +x_4 = x_11; +x_5 = x_135; +x_7 = x_136; goto _start; } else { -lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_1); -x_139 = lean_ctor_get(x_135, 0); -lean_inc(x_139); -x_140 = lean_ctor_get(x_135, 1); -lean_inc(x_140); -if (lean_is_exclusive(x_135)) { - lean_ctor_release(x_135, 0); - lean_ctor_release(x_135, 1); - x_141 = x_135; -} else { - lean_dec_ref(x_135); - x_141 = lean_box(0); -} -if (lean_is_scalar(x_141)) { - x_142 = lean_alloc_ctor(1, 2, 0); -} else { - x_142 = x_141; -} -lean_ctor_set(x_142, 0, x_139); -lean_ctor_set(x_142, 1, x_140); -return x_142; -} -} -else -{ -lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; -lean_dec(x_18); -x_143 = lean_ctor_get(x_124, 0); -lean_inc(x_143); -lean_dec(x_124); -x_144 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_143); -x_145 = l_Array_toList___rarg(x_144); -lean_dec(x_144); -x_146 = lean_array_push(x_22, x_145); -x_147 = lean_unsigned_to_nat(3u); -x_148 = l_Lean_Syntax_getArg(x_143, x_147); -lean_dec(x_143); -x_149 = lean_array_push(x_122, x_148); -x_150 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_150, 0, x_149); -lean_ctor_set(x_150, 1, x_20); -lean_ctor_set(x_6, 1, x_150); -lean_ctor_set(x_6, 0, x_146); -x_5 = x_12; -goto _start; -} -} -else -{ -lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; -lean_dec(x_124); -lean_dec(x_18); -if (lean_is_exclusive(x_20)) { - lean_ctor_release(x_20, 0); - lean_ctor_release(x_20, 1); - x_152 = x_20; -} else { - lean_dec_ref(x_20); - x_152 = lean_box(0); -} -x_153 = lean_ctor_get(x_126, 0); -lean_inc(x_153); -if (lean_is_exclusive(x_126)) { - lean_ctor_release(x_126, 0); - x_154 = x_126; -} else { - lean_dec_ref(x_126); - x_154 = lean_box(0); -} -x_155 = l_Lean_Syntax_inhabited; -x_156 = lean_array_get(x_155, x_123, x_153); -x_157 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_156); -x_158 = l_Array_toList___rarg(x_157); -lean_dec(x_157); -x_159 = lean_array_push(x_22, x_158); -x_160 = lean_unsigned_to_nat(3u); -x_161 = l_Lean_Syntax_getArg(x_156, x_160); -x_162 = lean_array_push(x_122, x_161); -x_163 = l_Array_eraseIdx___rarg(x_123, x_153); -lean_dec(x_153); -if (lean_is_scalar(x_154)) { - x_164 = lean_alloc_ctor(1, 1, 0); -} else { - x_164 = x_154; -} -lean_ctor_set(x_164, 0, x_156); -if (lean_is_scalar(x_152)) { - x_165 = lean_alloc_ctor(0, 2, 0); -} else { - x_165 = x_152; -} -lean_ctor_set(x_165, 0, x_163); -lean_ctor_set(x_165, 1, x_164); -x_166 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_166, 0, x_162); -lean_ctor_set(x_166, 1, x_165); -lean_ctor_set(x_6, 1, x_166); -lean_ctor_set(x_6, 0, x_159); -x_5 = x_12; -goto _start; -} -} -else -{ -lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; -lean_dec(x_18); -if (lean_is_exclusive(x_20)) { - lean_ctor_release(x_20, 0); - lean_ctor_release(x_20, 1); - x_168 = x_20; -} else { - lean_dec_ref(x_20); - x_168 = lean_box(0); -} -x_169 = lean_ctor_get(x_125, 0); -lean_inc(x_169); -lean_dec(x_125); -x_170 = l_Lean_Syntax_inhabited; -x_171 = lean_array_get(x_170, x_123, x_169); -x_172 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_171); -x_173 = l_Array_toList___rarg(x_172); -lean_dec(x_172); -x_174 = lean_array_push(x_22, x_173); -x_175 = lean_unsigned_to_nat(3u); -x_176 = l_Lean_Syntax_getArg(x_171, x_175); -lean_dec(x_171); -x_177 = lean_array_push(x_122, x_176); -x_178 = l_Array_eraseIdx___rarg(x_123, x_169); -lean_dec(x_169); -if (lean_is_scalar(x_168)) { - x_179 = lean_alloc_ctor(0, 2, 0); -} else { - x_179 = x_168; -} -lean_ctor_set(x_179, 0, x_178); -lean_ctor_set(x_179, 1, x_124); -x_180 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_180, 0, x_177); -lean_ctor_set(x_180, 1, x_179); -lean_ctor_set(x_6, 1, x_180); -lean_ctor_set(x_6, 0, x_174); -x_5 = x_12; -goto _start; -} -} -} -else -{ -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_182 = lean_ctor_get(x_6, 0); -lean_inc(x_182); +lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; +lean_dec(x_11); lean_dec(x_6); -x_183 = lean_ctor_get(x_19, 0); -lean_inc(x_183); +x_138 = lean_ctor_get(x_134, 0); +lean_inc(x_138); +x_139 = lean_ctor_get(x_134, 1); +lean_inc(x_139); +if (lean_is_exclusive(x_134)) { + lean_ctor_release(x_134, 0); + lean_ctor_release(x_134, 1); + x_140 = x_134; +} else { + lean_dec_ref(x_134); + x_140 = lean_box(0); +} +if (lean_is_scalar(x_140)) { + x_141 = lean_alloc_ctor(1, 2, 0); +} else { + x_141 = x_140; +} +lean_ctor_set(x_141, 0, x_138); +lean_ctor_set(x_141, 1, x_139); +return x_141; +} +} +else +{ +lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; +lean_dec(x_17); +x_142 = lean_ctor_get(x_123, 0); +lean_inc(x_142); +lean_dec(x_123); +x_143 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_142); +x_144 = l_Array_toList___rarg(x_143); +lean_dec(x_143); +x_145 = lean_array_push(x_21, x_144); +x_146 = lean_unsigned_to_nat(3u); +x_147 = l_Lean_Syntax_getArg(x_142, x_146); +lean_dec(x_142); +x_148 = lean_array_push(x_121, x_147); +x_149 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_149, 0, x_148); +lean_ctor_set(x_149, 1, x_19); +lean_ctor_set(x_5, 1, x_149); +lean_ctor_set(x_5, 0, x_145); +x_4 = x_11; +goto _start; +} +} +else +{ +lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; +lean_dec(x_123); +lean_dec(x_17); if (lean_is_exclusive(x_19)) { lean_ctor_release(x_19, 0); lean_ctor_release(x_19, 1); - x_184 = x_19; + x_151 = x_19; } else { lean_dec_ref(x_19); - x_184 = lean_box(0); + x_151 = lean_box(0); } -x_185 = lean_ctor_get(x_20, 0); +x_152 = lean_ctor_get(x_125, 0); +lean_inc(x_152); +if (lean_is_exclusive(x_125)) { + lean_ctor_release(x_125, 0); + x_153 = x_125; +} else { + lean_dec_ref(x_125); + x_153 = lean_box(0); +} +x_154 = l_Lean_Syntax_inhabited; +x_155 = lean_array_get(x_154, x_122, x_152); +x_156 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_155); +x_157 = l_Array_toList___rarg(x_156); +lean_dec(x_156); +x_158 = lean_array_push(x_21, x_157); +x_159 = lean_unsigned_to_nat(3u); +x_160 = l_Lean_Syntax_getArg(x_155, x_159); +x_161 = lean_array_push(x_121, x_160); +x_162 = l_Array_eraseIdx___rarg(x_122, x_152); +lean_dec(x_152); +if (lean_is_scalar(x_153)) { + x_163 = lean_alloc_ctor(1, 1, 0); +} else { + x_163 = x_153; +} +lean_ctor_set(x_163, 0, x_155); +if (lean_is_scalar(x_151)) { + x_164 = lean_alloc_ctor(0, 2, 0); +} else { + x_164 = x_151; +} +lean_ctor_set(x_164, 0, x_162); +lean_ctor_set(x_164, 1, x_163); +x_165 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_165, 0, x_161); +lean_ctor_set(x_165, 1, x_164); +lean_ctor_set(x_5, 1, x_165); +lean_ctor_set(x_5, 0, x_158); +x_4 = x_11; +goto _start; +} +} +else +{ +lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; +lean_dec(x_17); +if (lean_is_exclusive(x_19)) { + lean_ctor_release(x_19, 0); + lean_ctor_release(x_19, 1); + x_167 = x_19; +} else { + lean_dec_ref(x_19); + x_167 = lean_box(0); +} +x_168 = lean_ctor_get(x_124, 0); +lean_inc(x_168); +lean_dec(x_124); +x_169 = l_Lean_Syntax_inhabited; +x_170 = lean_array_get(x_169, x_122, x_168); +x_171 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_170); +x_172 = l_Array_toList___rarg(x_171); +lean_dec(x_171); +x_173 = lean_array_push(x_21, x_172); +x_174 = lean_unsigned_to_nat(3u); +x_175 = l_Lean_Syntax_getArg(x_170, x_174); +lean_dec(x_170); +x_176 = lean_array_push(x_121, x_175); +x_177 = l_Array_eraseIdx___rarg(x_122, x_168); +lean_dec(x_168); +if (lean_is_scalar(x_167)) { + x_178 = lean_alloc_ctor(0, 2, 0); +} else { + x_178 = x_167; +} +lean_ctor_set(x_178, 0, x_177); +lean_ctor_set(x_178, 1, x_123); +x_179 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_179, 0, x_176); +lean_ctor_set(x_179, 1, x_178); +lean_ctor_set(x_5, 1, x_179); +lean_ctor_set(x_5, 0, x_173); +x_4 = x_11; +goto _start; +} +} +} +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; +x_181 = lean_ctor_get(x_5, 0); +lean_inc(x_181); +lean_dec(x_5); +x_182 = lean_ctor_get(x_18, 0); +lean_inc(x_182); +if (lean_is_exclusive(x_18)) { + lean_ctor_release(x_18, 0); + lean_ctor_release(x_18, 1); + x_183 = x_18; +} else { + lean_dec_ref(x_18); + x_183 = lean_box(0); +} +x_184 = lean_ctor_get(x_19, 0); +lean_inc(x_184); +x_185 = lean_ctor_get(x_19, 1); lean_inc(x_185); -x_186 = lean_ctor_get(x_20, 1); -lean_inc(x_186); -x_187 = l_Array_findIdxAux___main___at___private_Lean_Elab_Tactic_Induction_14__getRecInfo___spec__1(x_18, x_185, x_9); -if (lean_obj_tag(x_187) == 0) -{ -lean_object* x_188; -x_188 = l_Array_findIdxAux___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__2(x_185, x_9); -if (lean_obj_tag(x_188) == 0) -{ -lean_dec(x_185); +x_186 = l_Array_findIdxAux___main___at___private_Lean_Elab_Tactic_Induction_14__getRecInfo___spec__1(x_17, x_184, x_8); if (lean_obj_tag(x_186) == 0) { -lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; +lean_object* x_187; +x_187 = l_Array_findIdxAux___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__2(x_184, x_8); +if (lean_obj_tag(x_187) == 0) +{ lean_dec(x_184); +if (lean_obj_tag(x_185) == 0) +{ +lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_dec(x_183); lean_dec(x_182); -lean_dec(x_20); -x_189 = l_Lean_Name_toString___closed__1; -x_190 = l_Lean_Name_toStringWithSep___main(x_189, x_18); -x_191 = lean_alloc_ctor(2, 1, 0); +lean_dec(x_181); +lean_dec(x_19); +x_188 = l_Lean_Name_toString___closed__1; +x_189 = l_Lean_Name_toStringWithSep___main(x_188, x_17); +x_190 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_190, 0, x_189); +x_191 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_191, 0, x_190); -x_192 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_192, 0, x_191); -x_193 = l_Nat_foldMAux___main___at___private_Lean_Elab_Tactic_Induction_14__getRecInfo___spec__2___closed__3; -x_194 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_194, 0, x_193); -lean_ctor_set(x_194, 1, x_192); -x_195 = l_List_foldlM___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__3___closed__6; -x_196 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_196, 0, x_194); -lean_ctor_set(x_196, 1, x_195); -lean_inc(x_7); -lean_inc(x_1); -x_197 = l_Lean_Elab_Tactic_throwError___rarg(x_1, x_196, x_7, x_8); -if (lean_obj_tag(x_197) == 0) +x_192 = l_Nat_foldMAux___main___at___private_Lean_Elab_Tactic_Induction_14__getRecInfo___spec__2___closed__3; +x_193 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_193, 0, x_192); +lean_ctor_set(x_193, 1, x_191); +x_194 = l_List_foldlM___main___at___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___spec__3___closed__6; +x_195 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_195, 0, x_193); +lean_ctor_set(x_195, 1, x_194); +lean_inc(x_6); +x_196 = l_Lean_Elab_Tactic_throwError___rarg(x_195, x_6, x_7); +if (lean_obj_tag(x_196) == 0) { -lean_object* x_198; lean_object* x_199; -x_198 = lean_ctor_get(x_197, 0); +lean_object* x_197; lean_object* x_198; +x_197 = lean_ctor_get(x_196, 0); +lean_inc(x_197); +x_198 = lean_ctor_get(x_196, 1); lean_inc(x_198); -x_199 = lean_ctor_get(x_197, 1); -lean_inc(x_199); -lean_dec(x_197); -x_5 = x_12; -x_6 = x_198; -x_8 = x_199; +lean_dec(x_196); +x_4 = x_11; +x_5 = x_197; +x_7 = x_198; goto _start; } else { -lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; -lean_dec(x_12); -lean_dec(x_7); -lean_dec(x_1); -x_201 = lean_ctor_get(x_197, 0); +lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; +lean_dec(x_11); +lean_dec(x_6); +x_200 = lean_ctor_get(x_196, 0); +lean_inc(x_200); +x_201 = lean_ctor_get(x_196, 1); lean_inc(x_201); -x_202 = lean_ctor_get(x_197, 1); -lean_inc(x_202); -if (lean_is_exclusive(x_197)) { - lean_ctor_release(x_197, 0); - lean_ctor_release(x_197, 1); - x_203 = x_197; +if (lean_is_exclusive(x_196)) { + lean_ctor_release(x_196, 0); + lean_ctor_release(x_196, 1); + x_202 = x_196; } else { - lean_dec_ref(x_197); - x_203 = lean_box(0); + lean_dec_ref(x_196); + x_202 = lean_box(0); } -if (lean_is_scalar(x_203)) { - x_204 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_202)) { + x_203 = lean_alloc_ctor(1, 2, 0); } else { - x_204 = x_203; + x_203 = x_202; } -lean_ctor_set(x_204, 0, x_201); -lean_ctor_set(x_204, 1, x_202); -return x_204; +lean_ctor_set(x_203, 0, x_200); +lean_ctor_set(x_203, 1, x_201); +return x_203; } } else { -lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; -lean_dec(x_18); -x_205 = lean_ctor_get(x_186, 0); -lean_inc(x_205); -lean_dec(x_186); -x_206 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_205); -x_207 = l_Array_toList___rarg(x_206); -lean_dec(x_206); -x_208 = lean_array_push(x_182, x_207); -x_209 = lean_unsigned_to_nat(3u); -x_210 = l_Lean_Syntax_getArg(x_205, x_209); +lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; +lean_dec(x_17); +x_204 = lean_ctor_get(x_185, 0); +lean_inc(x_204); +lean_dec(x_185); +x_205 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_204); +x_206 = l_Array_toList___rarg(x_205); lean_dec(x_205); -x_211 = lean_array_push(x_183, x_210); -if (lean_is_scalar(x_184)) { - x_212 = lean_alloc_ctor(0, 2, 0); +x_207 = lean_array_push(x_181, x_206); +x_208 = lean_unsigned_to_nat(3u); +x_209 = l_Lean_Syntax_getArg(x_204, x_208); +lean_dec(x_204); +x_210 = lean_array_push(x_182, x_209); +if (lean_is_scalar(x_183)) { + x_211 = lean_alloc_ctor(0, 2, 0); } else { - x_212 = x_184; + x_211 = x_183; } -lean_ctor_set(x_212, 0, x_211); -lean_ctor_set(x_212, 1, x_20); -x_213 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_213, 0, x_208); -lean_ctor_set(x_213, 1, x_212); -x_5 = x_12; -x_6 = x_213; +lean_ctor_set(x_211, 0, x_210); +lean_ctor_set(x_211, 1, x_19); +x_212 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_212, 0, x_207); +lean_ctor_set(x_212, 1, x_211); +x_4 = x_11; +x_5 = x_212; goto _start; } } else { -lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; -lean_dec(x_186); -lean_dec(x_18); -if (lean_is_exclusive(x_20)) { - lean_ctor_release(x_20, 0); - lean_ctor_release(x_20, 1); - x_215 = x_20; +lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; +lean_dec(x_185); +lean_dec(x_17); +if (lean_is_exclusive(x_19)) { + lean_ctor_release(x_19, 0); + lean_ctor_release(x_19, 1); + x_214 = x_19; } else { - lean_dec_ref(x_20); - x_215 = lean_box(0); + lean_dec_ref(x_19); + x_214 = lean_box(0); } -x_216 = lean_ctor_get(x_188, 0); -lean_inc(x_216); -if (lean_is_exclusive(x_188)) { - lean_ctor_release(x_188, 0); - x_217 = x_188; +x_215 = lean_ctor_get(x_187, 0); +lean_inc(x_215); +if (lean_is_exclusive(x_187)) { + lean_ctor_release(x_187, 0); + x_216 = x_187; } else { - lean_dec_ref(x_188); - x_217 = lean_box(0); + lean_dec_ref(x_187); + x_216 = lean_box(0); } -x_218 = l_Lean_Syntax_inhabited; -x_219 = lean_array_get(x_218, x_185, x_216); -x_220 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_219); -x_221 = l_Array_toList___rarg(x_220); -lean_dec(x_220); -x_222 = lean_array_push(x_182, x_221); -x_223 = lean_unsigned_to_nat(3u); -x_224 = l_Lean_Syntax_getArg(x_219, x_223); -x_225 = lean_array_push(x_183, x_224); -x_226 = l_Array_eraseIdx___rarg(x_185, x_216); -lean_dec(x_216); -if (lean_is_scalar(x_217)) { - x_227 = lean_alloc_ctor(1, 1, 0); +x_217 = l_Lean_Syntax_inhabited; +x_218 = lean_array_get(x_217, x_184, x_215); +x_219 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_218); +x_220 = l_Array_toList___rarg(x_219); +lean_dec(x_219); +x_221 = lean_array_push(x_181, x_220); +x_222 = lean_unsigned_to_nat(3u); +x_223 = l_Lean_Syntax_getArg(x_218, x_222); +x_224 = lean_array_push(x_182, x_223); +x_225 = l_Array_eraseIdx___rarg(x_184, x_215); +lean_dec(x_215); +if (lean_is_scalar(x_216)) { + x_226 = lean_alloc_ctor(1, 1, 0); } else { - x_227 = x_217; + x_226 = x_216; } -lean_ctor_set(x_227, 0, x_219); -if (lean_is_scalar(x_215)) { +lean_ctor_set(x_226, 0, x_218); +if (lean_is_scalar(x_214)) { + x_227 = lean_alloc_ctor(0, 2, 0); +} else { + x_227 = x_214; +} +lean_ctor_set(x_227, 0, x_225); +lean_ctor_set(x_227, 1, x_226); +if (lean_is_scalar(x_183)) { x_228 = lean_alloc_ctor(0, 2, 0); } else { - x_228 = x_215; + x_228 = x_183; } -lean_ctor_set(x_228, 0, x_226); +lean_ctor_set(x_228, 0, x_224); lean_ctor_set(x_228, 1, x_227); -if (lean_is_scalar(x_184)) { - x_229 = lean_alloc_ctor(0, 2, 0); -} else { - x_229 = x_184; -} -lean_ctor_set(x_229, 0, x_225); +x_229 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_229, 0, x_221); lean_ctor_set(x_229, 1, x_228); -x_230 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_230, 0, x_222); -lean_ctor_set(x_230, 1, x_229); -x_5 = x_12; -x_6 = x_230; +x_4 = x_11; +x_5 = x_229; goto _start; } } else { -lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; -lean_dec(x_18); -if (lean_is_exclusive(x_20)) { - lean_ctor_release(x_20, 0); - lean_ctor_release(x_20, 1); - x_232 = x_20; +lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; +lean_dec(x_17); +if (lean_is_exclusive(x_19)) { + lean_ctor_release(x_19, 0); + lean_ctor_release(x_19, 1); + x_231 = x_19; } else { - lean_dec_ref(x_20); - x_232 = lean_box(0); + lean_dec_ref(x_19); + x_231 = lean_box(0); } -x_233 = lean_ctor_get(x_187, 0); -lean_inc(x_233); -lean_dec(x_187); -x_234 = l_Lean_Syntax_inhabited; -x_235 = lean_array_get(x_234, x_185, x_233); -x_236 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_235); -x_237 = l_Array_toList___rarg(x_236); -lean_dec(x_236); -x_238 = lean_array_push(x_182, x_237); -x_239 = lean_unsigned_to_nat(3u); -x_240 = l_Lean_Syntax_getArg(x_235, x_239); +x_232 = lean_ctor_get(x_186, 0); +lean_inc(x_232); +lean_dec(x_186); +x_233 = l_Lean_Syntax_inhabited; +x_234 = lean_array_get(x_233, x_184, x_232); +x_235 = l___private_Lean_Elab_Tactic_Induction_9__getAltVarNames(x_234); +x_236 = l_Array_toList___rarg(x_235); lean_dec(x_235); -x_241 = lean_array_push(x_183, x_240); -x_242 = l_Array_eraseIdx___rarg(x_185, x_233); -lean_dec(x_233); -if (lean_is_scalar(x_232)) { +x_237 = lean_array_push(x_181, x_236); +x_238 = lean_unsigned_to_nat(3u); +x_239 = l_Lean_Syntax_getArg(x_234, x_238); +lean_dec(x_234); +x_240 = lean_array_push(x_182, x_239); +x_241 = l_Array_eraseIdx___rarg(x_184, x_232); +lean_dec(x_232); +if (lean_is_scalar(x_231)) { + x_242 = lean_alloc_ctor(0, 2, 0); +} else { + x_242 = x_231; +} +lean_ctor_set(x_242, 0, x_241); +lean_ctor_set(x_242, 1, x_185); +if (lean_is_scalar(x_183)) { x_243 = lean_alloc_ctor(0, 2, 0); } else { - x_243 = x_232; + x_243 = x_183; } -lean_ctor_set(x_243, 0, x_242); -lean_ctor_set(x_243, 1, x_186); -if (lean_is_scalar(x_184)) { - x_244 = lean_alloc_ctor(0, 2, 0); -} else { - x_244 = x_184; -} -lean_ctor_set(x_244, 0, x_241); +lean_ctor_set(x_243, 0, x_240); +lean_ctor_set(x_243, 1, x_242); +x_244 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_244, 0, x_237); lean_ctor_set(x_244, 1, x_243); -x_245 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_245, 0, x_238); -lean_ctor_set(x_245, 1, x_244); -x_5 = x_12; -x_6 = x_245; +x_4 = x_11; +x_5 = x_244; goto _start; } } @@ -8892,314 +9186,296 @@ goto _start; } else { -lean_object* x_247; -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_1); -x_247 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_247, 0, x_6); -lean_ctor_set(x_247, 1, x_8); -return x_247; +lean_object* x_246; +lean_dec(x_6); +lean_dec(x_4); +x_246 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_246, 0, x_5); +lean_ctor_set(x_246, 1, x_7); +return x_246; } } } lean_object* l___private_Lean_Elab_Tactic_Induction_14__getRecInfo(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; uint8_t x_10; x_5 = lean_unsigned_to_nat(2u); x_6 = l_Lean_Syntax_getArg(x_1, x_5); x_7 = lean_unsigned_to_nat(4u); x_8 = l_Lean_Syntax_getArg(x_1, x_7); x_9 = l_Lean_Syntax_isNone(x_6); +x_10 = !lean_is_exclusive(x_3); +if (x_10 == 0) +{ +lean_object* x_11; uint8_t x_12; +x_11 = lean_ctor_get(x_3, 0); +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) +{ +lean_object* x_13; +x_13 = lean_ctor_get(x_11, 10); +lean_dec(x_13); +lean_ctor_set(x_11, 10, x_1); if (x_9 == 0) { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_10 = lean_unsigned_to_nat(1u); -x_11 = l_Lean_Syntax_getIdAt(x_6, x_10); +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_14 = lean_unsigned_to_nat(1u); +x_15 = l_Lean_Syntax_getIdAt(x_6, x_14); lean_dec(x_6); -x_12 = l_Lean_Name_eraseMacroScopes(x_11); -lean_dec(x_11); +x_16 = l_Lean_Name_eraseMacroScopes(x_15); +lean_dec(x_15); lean_inc(x_3); -lean_inc(x_1); -x_13 = l_Lean_Elab_Tactic_getRecFromUsing(x_1, x_2, x_12, x_3, x_4); -if (lean_obj_tag(x_13) == 0) +x_17 = l_Lean_Elab_Tactic_getRecFromUsing(x_2, x_16, x_3, x_4); +if (lean_obj_tag(x_17) == 0) { -uint8_t x_14; -x_14 = !lean_is_exclusive(x_13); -if (x_14 == 0) -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; -x_15 = lean_ctor_get(x_13, 0); -x_16 = lean_ctor_get(x_13, 1); -x_17 = lean_ctor_get(x_15, 0); -lean_inc(x_17); -x_18 = l_Lean_Syntax_isNone(x_8); +uint8_t x_18; +x_18 = !lean_is_exclusive(x_17); if (x_18 == 0) { -lean_object* x_19; lean_object* x_20; -lean_free_object(x_13); -x_19 = l___private_Lean_Elab_Tactic_Induction_7__getAlts(x_8); +lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_19 = lean_ctor_get(x_17, 0); +x_20 = lean_ctor_get(x_17, 1); +x_21 = lean_ctor_get(x_19, 0); +lean_inc(x_21); +x_22 = l_Lean_Syntax_isNone(x_8); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; +lean_free_object(x_17); +x_23 = l___private_Lean_Elab_Tactic_Induction_7__getAlts(x_8); lean_dec(x_8); lean_inc(x_3); -lean_inc(x_1); -x_20 = l_Lean_Elab_Tactic_getMainGoal(x_1, x_3, x_16); -if (lean_obj_tag(x_20) == 0) +x_24 = l_Lean_Elab_Tactic_getMainGoal(x_3, x_20); +if (lean_obj_tag(x_24) == 0) { -lean_object* x_21; lean_object* x_22; uint8_t x_23; -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -x_22 = lean_ctor_get(x_20, 1); -lean_inc(x_22); -lean_dec(x_20); -x_23 = !lean_is_exclusive(x_21); -if (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_21, 0); -x_25 = lean_ctor_get(x_21, 1); -lean_dec(x_25); -lean_inc(x_17); -x_26 = lean_alloc_closure((void*)(l_Lean_Meta_getParamNames), 3, 1); -lean_closure_set(x_26, 0, x_17); -lean_inc(x_1); -x_27 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 4, 2); -lean_closure_set(x_27, 0, x_1); -lean_closure_set(x_27, 1, x_26); -lean_inc(x_3); -x_28 = l_Lean_Elab_Tactic_withMVarContext___rarg(x_24, x_27, x_3, x_22); +lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); lean_dec(x_24); -if (lean_obj_tag(x_28) == 0) +x_27 = !lean_is_exclusive(x_25); +if (x_27 == 0) { -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -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_31 = lean_box(0); -lean_ctor_set(x_21, 1, x_31); -lean_ctor_set(x_21, 0, x_19); -x_32 = l_Array_empty___closed__1; -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_21); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_32); -lean_ctor_set(x_34, 1, x_33); -x_35 = lean_array_get_size(x_29); -lean_inc(x_3); -lean_inc(x_35); -x_36 = l_Nat_foldMAux___main___at___private_Lean_Elab_Tactic_Induction_14__getRecInfo___spec__2(x_1, x_15, x_29, x_35, x_35, x_34, x_3, x_30); -lean_dec(x_35); +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_28 = lean_ctor_get(x_25, 0); +x_29 = lean_ctor_get(x_25, 1); lean_dec(x_29); -lean_dec(x_15); -if (lean_obj_tag(x_36) == 0) +lean_inc(x_21); +x_30 = lean_alloc_closure((void*)(l_Lean_Meta_getParamNames), 3, 1); +lean_closure_set(x_30, 0, x_21); +x_31 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 3, 1); +lean_closure_set(x_31, 0, x_30); +lean_inc(x_3); +x_32 = l_Lean_Elab_Tactic_withMVarContext___rarg(x_28, x_31, x_3, x_26); +lean_dec(x_28); +if (lean_obj_tag(x_32) == 0) { -lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -x_38 = lean_ctor_get(x_37, 1); -lean_inc(x_38); -x_39 = lean_ctor_get(x_38, 1); +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_32, 1); +lean_inc(x_34); +lean_dec(x_32); +x_35 = lean_box(0); +lean_ctor_set(x_25, 1, x_35); +lean_ctor_set(x_25, 0, x_23); +x_36 = l_Array_empty___closed__1; +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_25); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +x_39 = lean_array_get_size(x_33); +lean_inc(x_3); lean_inc(x_39); -x_40 = !lean_is_exclusive(x_36); -if (x_40 == 0) -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; lean_object* x_47; -x_41 = lean_ctor_get(x_36, 1); -x_42 = lean_ctor_get(x_36, 0); -lean_dec(x_42); -x_43 = lean_ctor_get(x_37, 0); -lean_inc(x_43); -lean_dec(x_37); -x_44 = lean_ctor_get(x_38, 0); -lean_inc(x_44); -lean_dec(x_38); -x_45 = lean_ctor_get(x_39, 0); -lean_inc(x_45); +x_40 = l_Nat_foldMAux___main___at___private_Lean_Elab_Tactic_Induction_14__getRecInfo___spec__2(x_19, x_33, x_39, x_39, x_38, x_3, x_34); lean_dec(x_39); -x_46 = l_Array_isEmpty___rarg(x_45); -x_47 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_47, 0, x_17); -lean_ctor_set(x_47, 1, x_43); -lean_ctor_set(x_47, 2, x_44); -if (x_46 == 0) +lean_dec(x_33); +lean_dec(x_19); +if (lean_obj_tag(x_40) == 0) { -lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -lean_free_object(x_36); -x_48 = l_Lean_Syntax_inhabited; -x_49 = lean_unsigned_to_nat(0u); -x_50 = lean_array_get(x_48, x_45, x_49); -lean_dec(x_45); -x_51 = l___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___closed__3; -x_52 = l_Lean_Elab_Tactic_throwError___rarg(x_50, x_51, x_3, x_41); -if (lean_obj_tag(x_52) == 0) +lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_41, 1); +lean_inc(x_42); +x_43 = lean_ctor_get(x_42, 1); +lean_inc(x_43); +x_44 = !lean_is_exclusive(x_40); +if (x_44 == 0) { -uint8_t x_53; -x_53 = !lean_is_exclusive(x_52); -if (x_53 == 0) +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; lean_object* x_51; +x_45 = lean_ctor_get(x_40, 1); +x_46 = lean_ctor_get(x_40, 0); +lean_dec(x_46); +x_47 = lean_ctor_get(x_41, 0); +lean_inc(x_47); +lean_dec(x_41); +x_48 = lean_ctor_get(x_42, 0); +lean_inc(x_48); +lean_dec(x_42); +x_49 = lean_ctor_get(x_43, 0); +lean_inc(x_49); +lean_dec(x_43); +x_50 = l_Array_isEmpty___rarg(x_49); +x_51 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_51, 0, x_21); +lean_ctor_set(x_51, 1, x_47); +lean_ctor_set(x_51, 2, x_48); +if (x_50 == 0) { -lean_object* x_54; -x_54 = lean_ctor_get(x_52, 0); -lean_dec(x_54); -lean_ctor_set(x_52, 0, x_47); -return x_52; -} -else -{ -lean_object* x_55; lean_object* x_56; -x_55 = lean_ctor_get(x_52, 1); -lean_inc(x_55); -lean_dec(x_52); -x_56 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_56, 0, x_47); -lean_ctor_set(x_56, 1, x_55); -return x_56; -} -} -else +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +lean_free_object(x_40); +x_52 = l_Lean_Syntax_inhabited; +x_53 = lean_unsigned_to_nat(0u); +x_54 = lean_array_get(x_52, x_49, x_53); +lean_dec(x_49); +x_55 = l___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___closed__3; +x_56 = l_Lean_Elab_Tactic_throwErrorAt___rarg(x_54, x_55, x_3, x_45); +if (lean_obj_tag(x_56) == 0) { uint8_t x_57; -lean_dec(x_47); -x_57 = !lean_is_exclusive(x_52); +x_57 = !lean_is_exclusive(x_56); if (x_57 == 0) { -return x_52; +lean_object* x_58; +x_58 = lean_ctor_get(x_56, 0); +lean_dec(x_58); +lean_ctor_set(x_56, 0, x_51); +return x_56; } else { -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_52, 0); -x_59 = lean_ctor_get(x_52, 1); +lean_object* x_59; lean_object* x_60; +x_59 = lean_ctor_get(x_56, 1); lean_inc(x_59); -lean_inc(x_58); -lean_dec(x_52); -x_60 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_60, 0, x_58); +lean_dec(x_56); +x_60 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_60, 0, x_51); lean_ctor_set(x_60, 1, x_59); return x_60; } } +else +{ +uint8_t x_61; +lean_dec(x_51); +x_61 = !lean_is_exclusive(x_56); +if (x_61 == 0) +{ +return x_56; } else { -lean_dec(x_45); -lean_dec(x_3); -lean_ctor_set(x_36, 0, x_47); -return x_36; -} -} -else -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; lean_object* x_66; -x_61 = lean_ctor_get(x_36, 1); -lean_inc(x_61); -lean_dec(x_36); -x_62 = lean_ctor_get(x_37, 0); -lean_inc(x_62); -lean_dec(x_37); -x_63 = lean_ctor_get(x_38, 0); +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_56, 0); +x_63 = lean_ctor_get(x_56, 1); lean_inc(x_63); -lean_dec(x_38); -x_64 = lean_ctor_get(x_39, 0); -lean_inc(x_64); -lean_dec(x_39); -x_65 = l_Array_isEmpty___rarg(x_64); -x_66 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_66, 0, x_17); -lean_ctor_set(x_66, 1, x_62); -lean_ctor_set(x_66, 2, x_63); -if (x_65 == 0) -{ -lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_67 = l_Lean_Syntax_inhabited; -x_68 = lean_unsigned_to_nat(0u); -x_69 = lean_array_get(x_67, x_64, x_68); -lean_dec(x_64); -x_70 = l___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___closed__3; -x_71 = l_Lean_Elab_Tactic_throwError___rarg(x_69, x_70, x_3, x_61); -if (lean_obj_tag(x_71) == 0) -{ -lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_72 = lean_ctor_get(x_71, 1); -lean_inc(x_72); -if (lean_is_exclusive(x_71)) { - lean_ctor_release(x_71, 0); - lean_ctor_release(x_71, 1); - x_73 = x_71; -} else { - lean_dec_ref(x_71); - x_73 = lean_box(0); +lean_inc(x_62); +lean_dec(x_56); +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; } -if (lean_is_scalar(x_73)) { - x_74 = lean_alloc_ctor(0, 2, 0); -} else { - x_74 = x_73; } -lean_ctor_set(x_74, 0, x_66); -lean_ctor_set(x_74, 1, x_72); -return x_74; } else { -lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; -lean_dec(x_66); -x_75 = lean_ctor_get(x_71, 0); -lean_inc(x_75); -x_76 = lean_ctor_get(x_71, 1); +lean_dec(x_49); +lean_dec(x_3); +lean_ctor_set(x_40, 0, x_51); +return x_40; +} +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; lean_object* x_70; +x_65 = lean_ctor_get(x_40, 1); +lean_inc(x_65); +lean_dec(x_40); +x_66 = lean_ctor_get(x_41, 0); +lean_inc(x_66); +lean_dec(x_41); +x_67 = lean_ctor_get(x_42, 0); +lean_inc(x_67); +lean_dec(x_42); +x_68 = lean_ctor_get(x_43, 0); +lean_inc(x_68); +lean_dec(x_43); +x_69 = l_Array_isEmpty___rarg(x_68); +x_70 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_70, 0, x_21); +lean_ctor_set(x_70, 1, x_66); +lean_ctor_set(x_70, 2, x_67); +if (x_69 == 0) +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_71 = l_Lean_Syntax_inhabited; +x_72 = lean_unsigned_to_nat(0u); +x_73 = lean_array_get(x_71, x_68, x_72); +lean_dec(x_68); +x_74 = l___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___closed__3; +x_75 = l_Lean_Elab_Tactic_throwErrorAt___rarg(x_73, x_74, x_3, x_65); +if (lean_obj_tag(x_75) == 0) +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_76 = lean_ctor_get(x_75, 1); lean_inc(x_76); -if (lean_is_exclusive(x_71)) { - lean_ctor_release(x_71, 0); - lean_ctor_release(x_71, 1); - x_77 = x_71; +if (lean_is_exclusive(x_75)) { + lean_ctor_release(x_75, 0); + lean_ctor_release(x_75, 1); + x_77 = x_75; } else { - lean_dec_ref(x_71); + lean_dec_ref(x_75); x_77 = lean_box(0); } if (lean_is_scalar(x_77)) { - x_78 = lean_alloc_ctor(1, 2, 0); + x_78 = lean_alloc_ctor(0, 2, 0); } else { x_78 = x_77; } -lean_ctor_set(x_78, 0, x_75); +lean_ctor_set(x_78, 0, x_70); lean_ctor_set(x_78, 1, x_76); return x_78; } +else +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; +lean_dec(x_70); +x_79 = lean_ctor_get(x_75, 0); +lean_inc(x_79); +x_80 = lean_ctor_get(x_75, 1); +lean_inc(x_80); +if (lean_is_exclusive(x_75)) { + lean_ctor_release(x_75, 0); + lean_ctor_release(x_75, 1); + x_81 = x_75; +} else { + lean_dec_ref(x_75); + x_81 = lean_box(0); +} +if (lean_is_scalar(x_81)) { + x_82 = lean_alloc_ctor(1, 2, 0); +} else { + x_82 = x_81; +} +lean_ctor_set(x_82, 0, x_79); +lean_ctor_set(x_82, 1, x_80); +return x_82; +} } else { -lean_object* x_79; -lean_dec(x_64); +lean_object* x_83; +lean_dec(x_68); lean_dec(x_3); -x_79 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_79, 0, x_66); -lean_ctor_set(x_79, 1, x_61); -return x_79; -} -} -} -else -{ -uint8_t x_80; -lean_dec(x_17); -lean_dec(x_3); -x_80 = !lean_is_exclusive(x_36); -if (x_80 == 0) -{ -return x_36; -} -else -{ -lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_81 = lean_ctor_get(x_36, 0); -x_82 = lean_ctor_get(x_36, 1); -lean_inc(x_82); -lean_inc(x_81); -lean_dec(x_36); -x_83 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_83, 0, x_81); -lean_ctor_set(x_83, 1, x_82); +x_83 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_83, 0, x_70); +lean_ctor_set(x_83, 1, x_65); return x_83; } } @@ -9207,25 +9483,21 @@ return x_83; else { uint8_t x_84; -lean_free_object(x_21); -lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_15); +lean_dec(x_21); lean_dec(x_3); -lean_dec(x_1); -x_84 = !lean_is_exclusive(x_28); +x_84 = !lean_is_exclusive(x_40); if (x_84 == 0) { -return x_28; +return x_40; } else { lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_85 = lean_ctor_get(x_28, 0); -x_86 = lean_ctor_get(x_28, 1); +x_85 = lean_ctor_get(x_40, 0); +x_86 = lean_ctor_get(x_40, 1); lean_inc(x_86); lean_inc(x_85); -lean_dec(x_28); +lean_dec(x_40); x_87 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_87, 0, x_85); lean_ctor_set(x_87, 1, x_86); @@ -9235,197 +9507,193 @@ return x_87; } else { -lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_88 = lean_ctor_get(x_21, 0); -lean_inc(x_88); +uint8_t x_88; +lean_free_object(x_25); +lean_dec(x_23); lean_dec(x_21); -lean_inc(x_17); -x_89 = lean_alloc_closure((void*)(l_Lean_Meta_getParamNames), 3, 1); -lean_closure_set(x_89, 0, x_17); -lean_inc(x_1); -x_90 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 4, 2); -lean_closure_set(x_90, 0, x_1); -lean_closure_set(x_90, 1, x_89); -lean_inc(x_3); -x_91 = l_Lean_Elab_Tactic_withMVarContext___rarg(x_88, x_90, x_3, x_22); -lean_dec(x_88); -if (lean_obj_tag(x_91) == 0) +lean_dec(x_19); +lean_dec(x_3); +x_88 = !lean_is_exclusive(x_32); +if (x_88 == 0) { -lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; -x_92 = lean_ctor_get(x_91, 0); -lean_inc(x_92); -x_93 = lean_ctor_get(x_91, 1); -lean_inc(x_93); -lean_dec(x_91); -x_94 = lean_box(0); -x_95 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_95, 0, x_19); -lean_ctor_set(x_95, 1, x_94); -x_96 = l_Array_empty___closed__1; -x_97 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_97, 0, x_96); -lean_ctor_set(x_97, 1, x_95); -x_98 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_98, 0, x_96); -lean_ctor_set(x_98, 1, x_97); -x_99 = lean_array_get_size(x_92); -lean_inc(x_3); -lean_inc(x_99); -x_100 = l_Nat_foldMAux___main___at___private_Lean_Elab_Tactic_Induction_14__getRecInfo___spec__2(x_1, x_15, x_92, x_99, x_99, x_98, x_3, x_93); -lean_dec(x_99); -lean_dec(x_92); -lean_dec(x_15); -if (lean_obj_tag(x_100) == 0) -{ -lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; uint8_t x_109; lean_object* x_110; -x_101 = lean_ctor_get(x_100, 0); -lean_inc(x_101); -x_102 = lean_ctor_get(x_101, 1); -lean_inc(x_102); -x_103 = lean_ctor_get(x_102, 1); -lean_inc(x_103); -x_104 = lean_ctor_get(x_100, 1); -lean_inc(x_104); -if (lean_is_exclusive(x_100)) { - lean_ctor_release(x_100, 0); - lean_ctor_release(x_100, 1); - x_105 = x_100; -} else { - lean_dec_ref(x_100); - x_105 = lean_box(0); -} -x_106 = lean_ctor_get(x_101, 0); -lean_inc(x_106); -lean_dec(x_101); -x_107 = lean_ctor_get(x_102, 0); -lean_inc(x_107); -lean_dec(x_102); -x_108 = lean_ctor_get(x_103, 0); -lean_inc(x_108); -lean_dec(x_103); -x_109 = l_Array_isEmpty___rarg(x_108); -x_110 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_110, 0, x_17); -lean_ctor_set(x_110, 1, x_106); -lean_ctor_set(x_110, 2, x_107); -if (x_109 == 0) -{ -lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -lean_dec(x_105); -x_111 = l_Lean_Syntax_inhabited; -x_112 = lean_unsigned_to_nat(0u); -x_113 = lean_array_get(x_111, x_108, x_112); -lean_dec(x_108); -x_114 = l___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___closed__3; -x_115 = l_Lean_Elab_Tactic_throwError___rarg(x_113, x_114, x_3, x_104); -if (lean_obj_tag(x_115) == 0) -{ -lean_object* x_116; lean_object* x_117; lean_object* x_118; -x_116 = lean_ctor_get(x_115, 1); -lean_inc(x_116); -if (lean_is_exclusive(x_115)) { - lean_ctor_release(x_115, 0); - lean_ctor_release(x_115, 1); - x_117 = x_115; -} else { - lean_dec_ref(x_115); - x_117 = lean_box(0); -} -if (lean_is_scalar(x_117)) { - x_118 = lean_alloc_ctor(0, 2, 0); -} else { - x_118 = x_117; -} -lean_ctor_set(x_118, 0, x_110); -lean_ctor_set(x_118, 1, x_116); -return x_118; +return x_32; } else { -lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; -lean_dec(x_110); -x_119 = lean_ctor_get(x_115, 0); -lean_inc(x_119); -x_120 = lean_ctor_get(x_115, 1); -lean_inc(x_120); -if (lean_is_exclusive(x_115)) { - lean_ctor_release(x_115, 0); - lean_ctor_release(x_115, 1); - x_121 = x_115; +lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_89 = lean_ctor_get(x_32, 0); +x_90 = lean_ctor_get(x_32, 1); +lean_inc(x_90); +lean_inc(x_89); +lean_dec(x_32); +x_91 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_91, 0, x_89); +lean_ctor_set(x_91, 1, x_90); +return x_91; +} +} +} +else +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_92 = lean_ctor_get(x_25, 0); +lean_inc(x_92); +lean_dec(x_25); +lean_inc(x_21); +x_93 = lean_alloc_closure((void*)(l_Lean_Meta_getParamNames), 3, 1); +lean_closure_set(x_93, 0, x_21); +x_94 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 3, 1); +lean_closure_set(x_94, 0, x_93); +lean_inc(x_3); +x_95 = l_Lean_Elab_Tactic_withMVarContext___rarg(x_92, x_94, x_3, x_26); +lean_dec(x_92); +if (lean_obj_tag(x_95) == 0) +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_96 = lean_ctor_get(x_95, 0); +lean_inc(x_96); +x_97 = lean_ctor_get(x_95, 1); +lean_inc(x_97); +lean_dec(x_95); +x_98 = lean_box(0); +x_99 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_99, 0, x_23); +lean_ctor_set(x_99, 1, x_98); +x_100 = l_Array_empty___closed__1; +x_101 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_101, 1, x_99); +x_102 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_102, 0, x_100); +lean_ctor_set(x_102, 1, x_101); +x_103 = lean_array_get_size(x_96); +lean_inc(x_3); +lean_inc(x_103); +x_104 = l_Nat_foldMAux___main___at___private_Lean_Elab_Tactic_Induction_14__getRecInfo___spec__2(x_19, x_96, x_103, x_103, x_102, x_3, x_97); +lean_dec(x_103); +lean_dec(x_96); +lean_dec(x_19); +if (lean_obj_tag(x_104) == 0) +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; lean_object* x_114; +x_105 = lean_ctor_get(x_104, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_105, 1); +lean_inc(x_106); +x_107 = lean_ctor_get(x_106, 1); +lean_inc(x_107); +x_108 = lean_ctor_get(x_104, 1); +lean_inc(x_108); +if (lean_is_exclusive(x_104)) { + lean_ctor_release(x_104, 0); + lean_ctor_release(x_104, 1); + x_109 = x_104; } else { - lean_dec_ref(x_115); + lean_dec_ref(x_104); + x_109 = lean_box(0); +} +x_110 = lean_ctor_get(x_105, 0); +lean_inc(x_110); +lean_dec(x_105); +x_111 = lean_ctor_get(x_106, 0); +lean_inc(x_111); +lean_dec(x_106); +x_112 = lean_ctor_get(x_107, 0); +lean_inc(x_112); +lean_dec(x_107); +x_113 = l_Array_isEmpty___rarg(x_112); +x_114 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_114, 0, x_21); +lean_ctor_set(x_114, 1, x_110); +lean_ctor_set(x_114, 2, x_111); +if (x_113 == 0) +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; +lean_dec(x_109); +x_115 = l_Lean_Syntax_inhabited; +x_116 = lean_unsigned_to_nat(0u); +x_117 = lean_array_get(x_115, x_112, x_116); +lean_dec(x_112); +x_118 = l___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___closed__3; +x_119 = l_Lean_Elab_Tactic_throwErrorAt___rarg(x_117, x_118, x_3, x_108); +if (lean_obj_tag(x_119) == 0) +{ +lean_object* x_120; lean_object* x_121; lean_object* x_122; +x_120 = lean_ctor_get(x_119, 1); +lean_inc(x_120); +if (lean_is_exclusive(x_119)) { + lean_ctor_release(x_119, 0); + lean_ctor_release(x_119, 1); + x_121 = x_119; +} else { + lean_dec_ref(x_119); x_121 = lean_box(0); } if (lean_is_scalar(x_121)) { - x_122 = lean_alloc_ctor(1, 2, 0); + x_122 = lean_alloc_ctor(0, 2, 0); } else { x_122 = x_121; } -lean_ctor_set(x_122, 0, x_119); +lean_ctor_set(x_122, 0, x_114); lean_ctor_set(x_122, 1, x_120); return x_122; } -} else { -lean_object* x_123; -lean_dec(x_108); -lean_dec(x_3); -if (lean_is_scalar(x_105)) { - x_123 = lean_alloc_ctor(0, 2, 0); -} else { - x_123 = x_105; -} -lean_ctor_set(x_123, 0, x_110); -lean_ctor_set(x_123, 1, x_104); -return x_123; -} -} -else -{ -lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; -lean_dec(x_17); -lean_dec(x_3); -x_124 = lean_ctor_get(x_100, 0); +lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; +lean_dec(x_114); +x_123 = lean_ctor_get(x_119, 0); +lean_inc(x_123); +x_124 = lean_ctor_get(x_119, 1); lean_inc(x_124); -x_125 = lean_ctor_get(x_100, 1); -lean_inc(x_125); -if (lean_is_exclusive(x_100)) { - lean_ctor_release(x_100, 0); - lean_ctor_release(x_100, 1); - x_126 = x_100; +if (lean_is_exclusive(x_119)) { + lean_ctor_release(x_119, 0); + lean_ctor_release(x_119, 1); + x_125 = x_119; } else { - lean_dec_ref(x_100); - x_126 = lean_box(0); + lean_dec_ref(x_119); + x_125 = lean_box(0); } -if (lean_is_scalar(x_126)) { - x_127 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_125)) { + x_126 = lean_alloc_ctor(1, 2, 0); } else { - x_127 = x_126; + x_126 = x_125; } -lean_ctor_set(x_127, 0, x_124); -lean_ctor_set(x_127, 1, x_125); +lean_ctor_set(x_126, 0, x_123); +lean_ctor_set(x_126, 1, x_124); +return x_126; +} +} +else +{ +lean_object* x_127; +lean_dec(x_112); +lean_dec(x_3); +if (lean_is_scalar(x_109)) { + x_127 = lean_alloc_ctor(0, 2, 0); +} else { + x_127 = x_109; +} +lean_ctor_set(x_127, 0, x_114); +lean_ctor_set(x_127, 1, x_108); return x_127; } } else { lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; -lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_15); +lean_dec(x_21); lean_dec(x_3); -lean_dec(x_1); -x_128 = lean_ctor_get(x_91, 0); +x_128 = lean_ctor_get(x_104, 0); lean_inc(x_128); -x_129 = lean_ctor_get(x_91, 1); +x_129 = lean_ctor_get(x_104, 1); lean_inc(x_129); -if (lean_is_exclusive(x_91)) { - lean_ctor_release(x_91, 0); - lean_ctor_release(x_91, 1); - x_130 = x_91; +if (lean_is_exclusive(x_104)) { + lean_ctor_release(x_104, 0); + lean_ctor_release(x_104, 1); + x_130 = x_104; } else { - lean_dec_ref(x_91); + lean_dec_ref(x_104); x_130 = lean_box(0); } if (lean_is_scalar(x_130)) { @@ -9438,280 +9706,273 @@ lean_ctor_set(x_131, 1, x_129); return x_131; } } -} else { -uint8_t x_132; +lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; +lean_dec(x_23); +lean_dec(x_21); lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_15); lean_dec(x_3); -lean_dec(x_1); -x_132 = !lean_is_exclusive(x_20); -if (x_132 == 0) -{ -return x_20; -} -else -{ -lean_object* x_133; lean_object* x_134; lean_object* x_135; -x_133 = lean_ctor_get(x_20, 0); -x_134 = lean_ctor_get(x_20, 1); -lean_inc(x_134); +x_132 = lean_ctor_get(x_95, 0); +lean_inc(x_132); +x_133 = lean_ctor_get(x_95, 1); lean_inc(x_133); -lean_dec(x_20); -x_135 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_135, 0, x_133); -lean_ctor_set(x_135, 1, x_134); +if (lean_is_exclusive(x_95)) { + lean_ctor_release(x_95, 0); + lean_ctor_release(x_95, 1); + x_134 = x_95; +} else { + lean_dec_ref(x_95); + x_134 = lean_box(0); +} +if (lean_is_scalar(x_134)) { + x_135 = lean_alloc_ctor(1, 2, 0); +} else { + x_135 = x_134; +} +lean_ctor_set(x_135, 0, x_132); +lean_ctor_set(x_135, 1, x_133); return x_135; } } } else { -lean_object* x_136; lean_object* x_137; -lean_dec(x_15); -lean_dec(x_8); +uint8_t x_136; +lean_dec(x_23); +lean_dec(x_21); +lean_dec(x_19); lean_dec(x_3); -lean_dec(x_1); -x_136 = l_Array_empty___closed__1; -x_137 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_137, 0, x_17); -lean_ctor_set(x_137, 1, x_136); -lean_ctor_set(x_137, 2, x_136); -lean_ctor_set(x_13, 0, x_137); -return x_13; +x_136 = !lean_is_exclusive(x_24); +if (x_136 == 0) +{ +return x_24; +} +else +{ +lean_object* x_137; lean_object* x_138; lean_object* x_139; +x_137 = lean_ctor_get(x_24, 0); +x_138 = lean_ctor_get(x_24, 1); +lean_inc(x_138); +lean_inc(x_137); +lean_dec(x_24); +x_139 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_139, 0, x_137); +lean_ctor_set(x_139, 1, x_138); +return x_139; +} } } else { -lean_object* x_138; lean_object* x_139; lean_object* x_140; uint8_t x_141; -x_138 = lean_ctor_get(x_13, 0); -x_139 = lean_ctor_get(x_13, 1); -lean_inc(x_139); -lean_inc(x_138); -lean_dec(x_13); -x_140 = lean_ctor_get(x_138, 0); -lean_inc(x_140); -x_141 = l_Lean_Syntax_isNone(x_8); -if (x_141 == 0) +lean_object* x_140; lean_object* x_141; +lean_dec(x_19); +lean_dec(x_3); +lean_dec(x_8); +x_140 = l_Array_empty___closed__1; +x_141 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_141, 0, x_21); +lean_ctor_set(x_141, 1, x_140); +lean_ctor_set(x_141, 2, x_140); +lean_ctor_set(x_17, 0, x_141); +return x_17; +} +} +else { -lean_object* x_142; lean_object* x_143; -x_142 = l___private_Lean_Elab_Tactic_Induction_7__getAlts(x_8); +lean_object* x_142; lean_object* x_143; lean_object* x_144; uint8_t x_145; +x_142 = lean_ctor_get(x_17, 0); +x_143 = lean_ctor_get(x_17, 1); +lean_inc(x_143); +lean_inc(x_142); +lean_dec(x_17); +x_144 = lean_ctor_get(x_142, 0); +lean_inc(x_144); +x_145 = l_Lean_Syntax_isNone(x_8); +if (x_145 == 0) +{ +lean_object* x_146; lean_object* x_147; +x_146 = l___private_Lean_Elab_Tactic_Induction_7__getAlts(x_8); lean_dec(x_8); lean_inc(x_3); -lean_inc(x_1); -x_143 = l_Lean_Elab_Tactic_getMainGoal(x_1, x_3, x_139); -if (lean_obj_tag(x_143) == 0) +x_147 = l_Lean_Elab_Tactic_getMainGoal(x_3, x_143); +if (lean_obj_tag(x_147) == 0) { -lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; -x_144 = lean_ctor_get(x_143, 0); +lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; +x_148 = lean_ctor_get(x_147, 0); +lean_inc(x_148); +x_149 = lean_ctor_get(x_147, 1); +lean_inc(x_149); +lean_dec(x_147); +x_150 = lean_ctor_get(x_148, 0); +lean_inc(x_150); +if (lean_is_exclusive(x_148)) { + lean_ctor_release(x_148, 0); + lean_ctor_release(x_148, 1); + x_151 = x_148; +} else { + lean_dec_ref(x_148); + x_151 = lean_box(0); +} lean_inc(x_144); -x_145 = lean_ctor_get(x_143, 1); -lean_inc(x_145); -lean_dec(x_143); -x_146 = lean_ctor_get(x_144, 0); -lean_inc(x_146); -if (lean_is_exclusive(x_144)) { - lean_ctor_release(x_144, 0); - lean_ctor_release(x_144, 1); - x_147 = x_144; -} else { - lean_dec_ref(x_144); - x_147 = lean_box(0); -} -lean_inc(x_140); -x_148 = lean_alloc_closure((void*)(l_Lean_Meta_getParamNames), 3, 1); -lean_closure_set(x_148, 0, x_140); -lean_inc(x_1); -x_149 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 4, 2); -lean_closure_set(x_149, 0, x_1); -lean_closure_set(x_149, 1, x_148); +x_152 = lean_alloc_closure((void*)(l_Lean_Meta_getParamNames), 3, 1); +lean_closure_set(x_152, 0, x_144); +x_153 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 3, 1); +lean_closure_set(x_153, 0, x_152); lean_inc(x_3); -x_150 = l_Lean_Elab_Tactic_withMVarContext___rarg(x_146, x_149, x_3, x_145); -lean_dec(x_146); -if (lean_obj_tag(x_150) == 0) -{ -lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; -x_151 = lean_ctor_get(x_150, 0); -lean_inc(x_151); -x_152 = lean_ctor_get(x_150, 1); -lean_inc(x_152); +x_154 = l_Lean_Elab_Tactic_withMVarContext___rarg(x_150, x_153, x_3, x_149); lean_dec(x_150); -x_153 = lean_box(0); -if (lean_is_scalar(x_147)) { - x_154 = lean_alloc_ctor(0, 2, 0); +if (lean_obj_tag(x_154) == 0) +{ +lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; +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_157 = lean_box(0); +if (lean_is_scalar(x_151)) { + x_158 = lean_alloc_ctor(0, 2, 0); } else { - x_154 = x_147; + x_158 = x_151; } -lean_ctor_set(x_154, 0, x_142); -lean_ctor_set(x_154, 1, x_153); -x_155 = l_Array_empty___closed__1; -x_156 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_156, 0, x_155); -lean_ctor_set(x_156, 1, x_154); -x_157 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_157, 0, x_155); -lean_ctor_set(x_157, 1, x_156); -x_158 = lean_array_get_size(x_151); +lean_ctor_set(x_158, 0, x_146); +lean_ctor_set(x_158, 1, x_157); +x_159 = l_Array_empty___closed__1; +x_160 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_160, 0, x_159); +lean_ctor_set(x_160, 1, x_158); +x_161 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_161, 0, x_159); +lean_ctor_set(x_161, 1, x_160); +x_162 = lean_array_get_size(x_155); lean_inc(x_3); -lean_inc(x_158); -x_159 = l_Nat_foldMAux___main___at___private_Lean_Elab_Tactic_Induction_14__getRecInfo___spec__2(x_1, x_138, x_151, x_158, x_158, x_157, x_3, x_152); -lean_dec(x_158); -lean_dec(x_151); -lean_dec(x_138); -if (lean_obj_tag(x_159) == 0) -{ -lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; uint8_t x_168; lean_object* x_169; -x_160 = lean_ctor_get(x_159, 0); -lean_inc(x_160); -x_161 = lean_ctor_get(x_160, 1); -lean_inc(x_161); -x_162 = lean_ctor_get(x_161, 1); 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); -} -x_165 = lean_ctor_get(x_160, 0); -lean_inc(x_165); -lean_dec(x_160); -x_166 = lean_ctor_get(x_161, 0); -lean_inc(x_166); -lean_dec(x_161); -x_167 = lean_ctor_get(x_162, 0); -lean_inc(x_167); +x_163 = l_Nat_foldMAux___main___at___private_Lean_Elab_Tactic_Induction_14__getRecInfo___spec__2(x_142, x_155, x_162, x_162, x_161, x_3, x_156); lean_dec(x_162); -x_168 = l_Array_isEmpty___rarg(x_167); -x_169 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_169, 0, x_140); -lean_ctor_set(x_169, 1, x_165); -lean_ctor_set(x_169, 2, x_166); -if (x_168 == 0) +lean_dec(x_155); +lean_dec(x_142); +if (lean_obj_tag(x_163) == 0) { -lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; +lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; uint8_t x_172; lean_object* x_173; +x_164 = lean_ctor_get(x_163, 0); +lean_inc(x_164); +x_165 = lean_ctor_get(x_164, 1); +lean_inc(x_165); +x_166 = lean_ctor_get(x_165, 1); +lean_inc(x_166); +x_167 = lean_ctor_get(x_163, 1); +lean_inc(x_167); +if (lean_is_exclusive(x_163)) { + lean_ctor_release(x_163, 0); + lean_ctor_release(x_163, 1); + x_168 = x_163; +} else { + lean_dec_ref(x_163); + x_168 = lean_box(0); +} +x_169 = lean_ctor_get(x_164, 0); +lean_inc(x_169); lean_dec(x_164); -x_170 = l_Lean_Syntax_inhabited; -x_171 = lean_unsigned_to_nat(0u); -x_172 = lean_array_get(x_170, x_167, x_171); -lean_dec(x_167); -x_173 = l___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___closed__3; -x_174 = l_Lean_Elab_Tactic_throwError___rarg(x_172, x_173, x_3, x_163); -if (lean_obj_tag(x_174) == 0) +x_170 = lean_ctor_get(x_165, 0); +lean_inc(x_170); +lean_dec(x_165); +x_171 = lean_ctor_get(x_166, 0); +lean_inc(x_171); +lean_dec(x_166); +x_172 = l_Array_isEmpty___rarg(x_171); +x_173 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_173, 0, x_144); +lean_ctor_set(x_173, 1, x_169); +lean_ctor_set(x_173, 2, x_170); +if (x_172 == 0) { -lean_object* x_175; lean_object* x_176; lean_object* x_177; -x_175 = lean_ctor_get(x_174, 1); -lean_inc(x_175); -if (lean_is_exclusive(x_174)) { - lean_ctor_release(x_174, 0); - lean_ctor_release(x_174, 1); - x_176 = x_174; -} else { - lean_dec_ref(x_174); - x_176 = lean_box(0); -} -if (lean_is_scalar(x_176)) { - x_177 = lean_alloc_ctor(0, 2, 0); -} else { - x_177 = x_176; -} -lean_ctor_set(x_177, 0, x_169); -lean_ctor_set(x_177, 1, x_175); -return x_177; -} -else +lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; +lean_dec(x_168); +x_174 = l_Lean_Syntax_inhabited; +x_175 = lean_unsigned_to_nat(0u); +x_176 = lean_array_get(x_174, x_171, x_175); +lean_dec(x_171); +x_177 = l___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___closed__3; +x_178 = l_Lean_Elab_Tactic_throwErrorAt___rarg(x_176, x_177, x_3, x_167); +if (lean_obj_tag(x_178) == 0) { -lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; -lean_dec(x_169); -x_178 = lean_ctor_get(x_174, 0); -lean_inc(x_178); -x_179 = lean_ctor_get(x_174, 1); +lean_object* x_179; lean_object* x_180; lean_object* x_181; +x_179 = lean_ctor_get(x_178, 1); lean_inc(x_179); -if (lean_is_exclusive(x_174)) { - lean_ctor_release(x_174, 0); - lean_ctor_release(x_174, 1); - x_180 = x_174; +if (lean_is_exclusive(x_178)) { + lean_ctor_release(x_178, 0); + lean_ctor_release(x_178, 1); + x_180 = x_178; } else { - lean_dec_ref(x_174); + lean_dec_ref(x_178); x_180 = lean_box(0); } if (lean_is_scalar(x_180)) { - x_181 = lean_alloc_ctor(1, 2, 0); + x_181 = lean_alloc_ctor(0, 2, 0); } else { x_181 = x_180; } -lean_ctor_set(x_181, 0, x_178); +lean_ctor_set(x_181, 0, x_173); lean_ctor_set(x_181, 1, x_179); return x_181; } -} else { -lean_object* x_182; -lean_dec(x_167); -lean_dec(x_3); -if (lean_is_scalar(x_164)) { - x_182 = lean_alloc_ctor(0, 2, 0); -} else { - x_182 = x_164; -} -lean_ctor_set(x_182, 0, x_169); -lean_ctor_set(x_182, 1, x_163); -return x_182; -} -} -else -{ -lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; -lean_dec(x_140); -lean_dec(x_3); -x_183 = lean_ctor_get(x_159, 0); +lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; +lean_dec(x_173); +x_182 = lean_ctor_get(x_178, 0); +lean_inc(x_182); +x_183 = lean_ctor_get(x_178, 1); lean_inc(x_183); -x_184 = lean_ctor_get(x_159, 1); -lean_inc(x_184); -if (lean_is_exclusive(x_159)) { - lean_ctor_release(x_159, 0); - lean_ctor_release(x_159, 1); - x_185 = x_159; +if (lean_is_exclusive(x_178)) { + lean_ctor_release(x_178, 0); + lean_ctor_release(x_178, 1); + x_184 = x_178; } else { - lean_dec_ref(x_159); - x_185 = lean_box(0); + lean_dec_ref(x_178); + x_184 = lean_box(0); } -if (lean_is_scalar(x_185)) { - x_186 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_184)) { + x_185 = lean_alloc_ctor(1, 2, 0); } else { - x_186 = x_185; + x_185 = x_184; } -lean_ctor_set(x_186, 0, x_183); -lean_ctor_set(x_186, 1, x_184); +lean_ctor_set(x_185, 0, x_182); +lean_ctor_set(x_185, 1, x_183); +return x_185; +} +} +else +{ +lean_object* x_186; +lean_dec(x_171); +lean_dec(x_3); +if (lean_is_scalar(x_168)) { + x_186 = lean_alloc_ctor(0, 2, 0); +} else { + x_186 = x_168; +} +lean_ctor_set(x_186, 0, x_173); +lean_ctor_set(x_186, 1, x_167); return x_186; } } else { lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; -lean_dec(x_147); -lean_dec(x_142); -lean_dec(x_140); -lean_dec(x_138); +lean_dec(x_144); lean_dec(x_3); -lean_dec(x_1); -x_187 = lean_ctor_get(x_150, 0); +x_187 = lean_ctor_get(x_163, 0); lean_inc(x_187); -x_188 = lean_ctor_get(x_150, 1); +x_188 = lean_ctor_get(x_163, 1); lean_inc(x_188); -if (lean_is_exclusive(x_150)) { - lean_ctor_release(x_150, 0); - lean_ctor_release(x_150, 1); - x_189 = x_150; +if (lean_is_exclusive(x_163)) { + lean_ctor_release(x_163, 0); + lean_ctor_release(x_163, 1); + x_189 = x_163; } else { - lean_dec_ref(x_150); + lean_dec_ref(x_163); x_189 = lean_box(0); } if (lean_is_scalar(x_189)) { @@ -9727,21 +9988,21 @@ return x_190; else { lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; +lean_dec(x_151); +lean_dec(x_146); +lean_dec(x_144); lean_dec(x_142); -lean_dec(x_140); -lean_dec(x_138); lean_dec(x_3); -lean_dec(x_1); -x_191 = lean_ctor_get(x_143, 0); +x_191 = lean_ctor_get(x_154, 0); lean_inc(x_191); -x_192 = lean_ctor_get(x_143, 1); +x_192 = lean_ctor_get(x_154, 1); lean_inc(x_192); -if (lean_is_exclusive(x_143)) { - lean_ctor_release(x_143, 0); - lean_ctor_release(x_143, 1); - x_193 = x_143; +if (lean_is_exclusive(x_154)) { + lean_ctor_release(x_154, 0); + lean_ctor_release(x_154, 1); + x_193 = x_154; } else { - lean_dec_ref(x_143); + lean_dec_ref(x_154); x_193 = lean_box(0); } if (lean_is_scalar(x_193)) { @@ -9756,109 +10017,1035 @@ return x_194; } else { -lean_object* x_195; lean_object* x_196; lean_object* x_197; -lean_dec(x_138); -lean_dec(x_8); +lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; +lean_dec(x_146); +lean_dec(x_144); +lean_dec(x_142); lean_dec(x_3); -lean_dec(x_1); -x_195 = l_Array_empty___closed__1; -x_196 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_196, 0, x_140); -lean_ctor_set(x_196, 1, x_195); -lean_ctor_set(x_196, 2, x_195); -x_197 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_197, 0, x_196); -lean_ctor_set(x_197, 1, x_139); -return x_197; +x_195 = lean_ctor_get(x_147, 0); +lean_inc(x_195); +x_196 = lean_ctor_get(x_147, 1); +lean_inc(x_196); +if (lean_is_exclusive(x_147)) { + lean_ctor_release(x_147, 0); + lean_ctor_release(x_147, 1); + x_197 = x_147; +} else { + lean_dec_ref(x_147); + x_197 = lean_box(0); } +if (lean_is_scalar(x_197)) { + x_198 = lean_alloc_ctor(1, 2, 0); +} else { + x_198 = x_197; } +lean_ctor_set(x_198, 0, x_195); +lean_ctor_set(x_198, 1, x_196); +return x_198; } -else -{ -uint8_t x_198; -lean_dec(x_8); -lean_dec(x_3); -lean_dec(x_1); -x_198 = !lean_is_exclusive(x_13); -if (x_198 == 0) -{ -return x_13; } else { lean_object* x_199; lean_object* x_200; lean_object* x_201; -x_199 = lean_ctor_get(x_13, 0); -x_200 = lean_ctor_get(x_13, 1); -lean_inc(x_200); -lean_inc(x_199); -lean_dec(x_13); -x_201 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_201, 0, x_199); -lean_ctor_set(x_201, 1, x_200); +lean_dec(x_142); +lean_dec(x_3); +lean_dec(x_8); +x_199 = l_Array_empty___closed__1; +x_200 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_200, 0, x_144); +lean_ctor_set(x_200, 1, x_199); +lean_ctor_set(x_200, 2, x_199); +x_201 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_201, 0, x_200); +lean_ctor_set(x_201, 1, x_143); return x_201; } } } else { -uint8_t x_202; lean_object* x_203; -lean_dec(x_6); -x_202 = 0; -x_203 = l___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault(x_1, x_2, x_8, x_202, x_3, x_4); +uint8_t x_202; +lean_dec(x_3); lean_dec(x_8); -if (lean_obj_tag(x_203) == 0) +x_202 = !lean_is_exclusive(x_17); +if (x_202 == 0) { -uint8_t x_204; -x_204 = !lean_is_exclusive(x_203); -if (x_204 == 0) -{ -lean_object* x_205; lean_object* x_206; -x_205 = lean_ctor_get(x_203, 0); -x_206 = lean_ctor_get(x_205, 0); -lean_inc(x_206); -lean_dec(x_205); -lean_ctor_set(x_203, 0, x_206); -return x_203; +return x_17; } else { -lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; -x_207 = lean_ctor_get(x_203, 0); -x_208 = lean_ctor_get(x_203, 1); -lean_inc(x_208); -lean_inc(x_207); -lean_dec(x_203); +lean_object* x_203; lean_object* x_204; lean_object* x_205; +x_203 = lean_ctor_get(x_17, 0); +x_204 = lean_ctor_get(x_17, 1); +lean_inc(x_204); +lean_inc(x_203); +lean_dec(x_17); +x_205 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_205, 0, x_203); +lean_ctor_set(x_205, 1, x_204); +return x_205; +} +} +} +else +{ +uint8_t x_206; lean_object* x_207; +lean_dec(x_6); +x_206 = 0; +x_207 = l___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault(x_2, x_8, x_206, x_3, x_4); +lean_dec(x_8); +if (lean_obj_tag(x_207) == 0) +{ +uint8_t x_208; +x_208 = !lean_is_exclusive(x_207); +if (x_208 == 0) +{ +lean_object* x_209; lean_object* x_210; x_209 = lean_ctor_get(x_207, 0); -lean_inc(x_209); -lean_dec(x_207); -x_210 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_210, 0, x_209); -lean_ctor_set(x_210, 1, x_208); -return x_210; -} +x_210 = lean_ctor_get(x_209, 0); +lean_inc(x_210); +lean_dec(x_209); +lean_ctor_set(x_207, 0, x_210); +return x_207; } else { -uint8_t x_211; -x_211 = !lean_is_exclusive(x_203); -if (x_211 == 0) -{ -return x_203; -} -else -{ -lean_object* x_212; lean_object* x_213; lean_object* x_214; -x_212 = lean_ctor_get(x_203, 0); -x_213 = lean_ctor_get(x_203, 1); -lean_inc(x_213); +lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; +x_211 = lean_ctor_get(x_207, 0); +x_212 = lean_ctor_get(x_207, 1); lean_inc(x_212); -lean_dec(x_203); -x_214 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_214, 0, x_212); -lean_ctor_set(x_214, 1, x_213); +lean_inc(x_211); +lean_dec(x_207); +x_213 = lean_ctor_get(x_211, 0); +lean_inc(x_213); +lean_dec(x_211); +x_214 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_214, 0, x_213); +lean_ctor_set(x_214, 1, x_212); return x_214; } } +else +{ +uint8_t x_215; +x_215 = !lean_is_exclusive(x_207); +if (x_215 == 0) +{ +return x_207; +} +else +{ +lean_object* x_216; lean_object* x_217; lean_object* x_218; +x_216 = lean_ctor_get(x_207, 0); +x_217 = lean_ctor_get(x_207, 1); +lean_inc(x_217); +lean_inc(x_216); +lean_dec(x_207); +x_218 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_218, 0, x_216); +lean_ctor_set(x_218, 1, x_217); +return x_218; +} +} +} +} +else +{ +lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; uint8_t x_229; uint8_t x_230; uint8_t x_231; lean_object* x_232; +x_219 = lean_ctor_get(x_11, 0); +x_220 = lean_ctor_get(x_11, 1); +x_221 = lean_ctor_get(x_11, 2); +x_222 = lean_ctor_get(x_11, 3); +x_223 = lean_ctor_get(x_11, 4); +x_224 = lean_ctor_get(x_11, 5); +x_225 = lean_ctor_get(x_11, 6); +x_226 = lean_ctor_get(x_11, 7); +x_227 = lean_ctor_get(x_11, 8); +x_228 = lean_ctor_get(x_11, 9); +x_229 = lean_ctor_get_uint8(x_11, sizeof(void*)*11); +x_230 = lean_ctor_get_uint8(x_11, sizeof(void*)*11 + 1); +x_231 = lean_ctor_get_uint8(x_11, sizeof(void*)*11 + 2); +lean_inc(x_228); +lean_inc(x_227); +lean_inc(x_226); +lean_inc(x_225); +lean_inc(x_224); +lean_inc(x_223); +lean_inc(x_222); +lean_inc(x_221); +lean_inc(x_220); +lean_inc(x_219); +lean_dec(x_11); +x_232 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_232, 0, x_219); +lean_ctor_set(x_232, 1, x_220); +lean_ctor_set(x_232, 2, x_221); +lean_ctor_set(x_232, 3, x_222); +lean_ctor_set(x_232, 4, x_223); +lean_ctor_set(x_232, 5, x_224); +lean_ctor_set(x_232, 6, x_225); +lean_ctor_set(x_232, 7, x_226); +lean_ctor_set(x_232, 8, x_227); +lean_ctor_set(x_232, 9, x_228); +lean_ctor_set(x_232, 10, x_1); +lean_ctor_set_uint8(x_232, sizeof(void*)*11, x_229); +lean_ctor_set_uint8(x_232, sizeof(void*)*11 + 1, x_230); +lean_ctor_set_uint8(x_232, sizeof(void*)*11 + 2, x_231); +lean_ctor_set(x_3, 0, x_232); +if (x_9 == 0) +{ +lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; +x_233 = lean_unsigned_to_nat(1u); +x_234 = l_Lean_Syntax_getIdAt(x_6, x_233); +lean_dec(x_6); +x_235 = l_Lean_Name_eraseMacroScopes(x_234); +lean_dec(x_234); +lean_inc(x_3); +x_236 = l_Lean_Elab_Tactic_getRecFromUsing(x_2, x_235, x_3, x_4); +if (lean_obj_tag(x_236) == 0) +{ +lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; uint8_t x_241; +x_237 = lean_ctor_get(x_236, 0); +lean_inc(x_237); +x_238 = lean_ctor_get(x_236, 1); +lean_inc(x_238); +if (lean_is_exclusive(x_236)) { + lean_ctor_release(x_236, 0); + lean_ctor_release(x_236, 1); + x_239 = x_236; +} else { + lean_dec_ref(x_236); + x_239 = lean_box(0); +} +x_240 = lean_ctor_get(x_237, 0); +lean_inc(x_240); +x_241 = l_Lean_Syntax_isNone(x_8); +if (x_241 == 0) +{ +lean_object* x_242; lean_object* x_243; +lean_dec(x_239); +x_242 = l___private_Lean_Elab_Tactic_Induction_7__getAlts(x_8); +lean_dec(x_8); +lean_inc(x_3); +x_243 = l_Lean_Elab_Tactic_getMainGoal(x_3, x_238); +if (lean_obj_tag(x_243) == 0) +{ +lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; +x_244 = lean_ctor_get(x_243, 0); +lean_inc(x_244); +x_245 = lean_ctor_get(x_243, 1); +lean_inc(x_245); +lean_dec(x_243); +x_246 = lean_ctor_get(x_244, 0); +lean_inc(x_246); +if (lean_is_exclusive(x_244)) { + lean_ctor_release(x_244, 0); + lean_ctor_release(x_244, 1); + x_247 = x_244; +} else { + lean_dec_ref(x_244); + x_247 = lean_box(0); +} +lean_inc(x_240); +x_248 = lean_alloc_closure((void*)(l_Lean_Meta_getParamNames), 3, 1); +lean_closure_set(x_248, 0, x_240); +x_249 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 3, 1); +lean_closure_set(x_249, 0, x_248); +lean_inc(x_3); +x_250 = l_Lean_Elab_Tactic_withMVarContext___rarg(x_246, x_249, x_3, x_245); +lean_dec(x_246); +if (lean_obj_tag(x_250) == 0) +{ +lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; +x_251 = lean_ctor_get(x_250, 0); +lean_inc(x_251); +x_252 = lean_ctor_get(x_250, 1); +lean_inc(x_252); +lean_dec(x_250); +x_253 = lean_box(0); +if (lean_is_scalar(x_247)) { + x_254 = lean_alloc_ctor(0, 2, 0); +} else { + x_254 = x_247; +} +lean_ctor_set(x_254, 0, x_242); +lean_ctor_set(x_254, 1, x_253); +x_255 = l_Array_empty___closed__1; +x_256 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_256, 0, x_255); +lean_ctor_set(x_256, 1, x_254); +x_257 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_257, 0, x_255); +lean_ctor_set(x_257, 1, x_256); +x_258 = lean_array_get_size(x_251); +lean_inc(x_3); +lean_inc(x_258); +x_259 = l_Nat_foldMAux___main___at___private_Lean_Elab_Tactic_Induction_14__getRecInfo___spec__2(x_237, x_251, x_258, x_258, x_257, x_3, x_252); +lean_dec(x_258); +lean_dec(x_251); +lean_dec(x_237); +if (lean_obj_tag(x_259) == 0) +{ +lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; uint8_t x_268; lean_object* x_269; +x_260 = lean_ctor_get(x_259, 0); +lean_inc(x_260); +x_261 = lean_ctor_get(x_260, 1); +lean_inc(x_261); +x_262 = lean_ctor_get(x_261, 1); +lean_inc(x_262); +x_263 = lean_ctor_get(x_259, 1); +lean_inc(x_263); +if (lean_is_exclusive(x_259)) { + lean_ctor_release(x_259, 0); + lean_ctor_release(x_259, 1); + x_264 = x_259; +} else { + lean_dec_ref(x_259); + x_264 = lean_box(0); +} +x_265 = lean_ctor_get(x_260, 0); +lean_inc(x_265); +lean_dec(x_260); +x_266 = lean_ctor_get(x_261, 0); +lean_inc(x_266); +lean_dec(x_261); +x_267 = lean_ctor_get(x_262, 0); +lean_inc(x_267); +lean_dec(x_262); +x_268 = l_Array_isEmpty___rarg(x_267); +x_269 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_269, 0, x_240); +lean_ctor_set(x_269, 1, x_265); +lean_ctor_set(x_269, 2, x_266); +if (x_268 == 0) +{ +lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; +lean_dec(x_264); +x_270 = l_Lean_Syntax_inhabited; +x_271 = lean_unsigned_to_nat(0u); +x_272 = lean_array_get(x_270, x_267, x_271); +lean_dec(x_267); +x_273 = l___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___closed__3; +x_274 = l_Lean_Elab_Tactic_throwErrorAt___rarg(x_272, x_273, x_3, x_263); +if (lean_obj_tag(x_274) == 0) +{ +lean_object* x_275; lean_object* x_276; lean_object* x_277; +x_275 = lean_ctor_get(x_274, 1); +lean_inc(x_275); +if (lean_is_exclusive(x_274)) { + lean_ctor_release(x_274, 0); + lean_ctor_release(x_274, 1); + x_276 = x_274; +} else { + lean_dec_ref(x_274); + x_276 = lean_box(0); +} +if (lean_is_scalar(x_276)) { + x_277 = lean_alloc_ctor(0, 2, 0); +} else { + x_277 = x_276; +} +lean_ctor_set(x_277, 0, x_269); +lean_ctor_set(x_277, 1, x_275); +return x_277; +} +else +{ +lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; +lean_dec(x_269); +x_278 = lean_ctor_get(x_274, 0); +lean_inc(x_278); +x_279 = lean_ctor_get(x_274, 1); +lean_inc(x_279); +if (lean_is_exclusive(x_274)) { + lean_ctor_release(x_274, 0); + lean_ctor_release(x_274, 1); + x_280 = x_274; +} else { + lean_dec_ref(x_274); + x_280 = lean_box(0); +} +if (lean_is_scalar(x_280)) { + x_281 = lean_alloc_ctor(1, 2, 0); +} else { + x_281 = x_280; +} +lean_ctor_set(x_281, 0, x_278); +lean_ctor_set(x_281, 1, x_279); +return x_281; +} +} +else +{ +lean_object* x_282; +lean_dec(x_267); +lean_dec(x_3); +if (lean_is_scalar(x_264)) { + x_282 = lean_alloc_ctor(0, 2, 0); +} else { + x_282 = x_264; +} +lean_ctor_set(x_282, 0, x_269); +lean_ctor_set(x_282, 1, x_263); +return x_282; +} +} +else +{ +lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; +lean_dec(x_240); +lean_dec(x_3); +x_283 = lean_ctor_get(x_259, 0); +lean_inc(x_283); +x_284 = lean_ctor_get(x_259, 1); +lean_inc(x_284); +if (lean_is_exclusive(x_259)) { + lean_ctor_release(x_259, 0); + lean_ctor_release(x_259, 1); + x_285 = x_259; +} else { + lean_dec_ref(x_259); + x_285 = lean_box(0); +} +if (lean_is_scalar(x_285)) { + x_286 = lean_alloc_ctor(1, 2, 0); +} else { + x_286 = x_285; +} +lean_ctor_set(x_286, 0, x_283); +lean_ctor_set(x_286, 1, x_284); +return x_286; +} +} +else +{ +lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; +lean_dec(x_247); +lean_dec(x_242); +lean_dec(x_240); +lean_dec(x_237); +lean_dec(x_3); +x_287 = lean_ctor_get(x_250, 0); +lean_inc(x_287); +x_288 = lean_ctor_get(x_250, 1); +lean_inc(x_288); +if (lean_is_exclusive(x_250)) { + lean_ctor_release(x_250, 0); + lean_ctor_release(x_250, 1); + x_289 = x_250; +} else { + lean_dec_ref(x_250); + x_289 = lean_box(0); +} +if (lean_is_scalar(x_289)) { + x_290 = lean_alloc_ctor(1, 2, 0); +} else { + x_290 = x_289; +} +lean_ctor_set(x_290, 0, x_287); +lean_ctor_set(x_290, 1, x_288); +return x_290; +} +} +else +{ +lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; +lean_dec(x_242); +lean_dec(x_240); +lean_dec(x_237); +lean_dec(x_3); +x_291 = lean_ctor_get(x_243, 0); +lean_inc(x_291); +x_292 = lean_ctor_get(x_243, 1); +lean_inc(x_292); +if (lean_is_exclusive(x_243)) { + lean_ctor_release(x_243, 0); + lean_ctor_release(x_243, 1); + x_293 = x_243; +} else { + lean_dec_ref(x_243); + x_293 = lean_box(0); +} +if (lean_is_scalar(x_293)) { + x_294 = lean_alloc_ctor(1, 2, 0); +} else { + x_294 = x_293; +} +lean_ctor_set(x_294, 0, x_291); +lean_ctor_set(x_294, 1, x_292); +return x_294; +} +} +else +{ +lean_object* x_295; lean_object* x_296; lean_object* x_297; +lean_dec(x_237); +lean_dec(x_3); +lean_dec(x_8); +x_295 = l_Array_empty___closed__1; +x_296 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_296, 0, x_240); +lean_ctor_set(x_296, 1, x_295); +lean_ctor_set(x_296, 2, x_295); +if (lean_is_scalar(x_239)) { + x_297 = lean_alloc_ctor(0, 2, 0); +} else { + x_297 = x_239; +} +lean_ctor_set(x_297, 0, x_296); +lean_ctor_set(x_297, 1, x_238); +return x_297; +} +} +else +{ +lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; +lean_dec(x_3); +lean_dec(x_8); +x_298 = lean_ctor_get(x_236, 0); +lean_inc(x_298); +x_299 = lean_ctor_get(x_236, 1); +lean_inc(x_299); +if (lean_is_exclusive(x_236)) { + lean_ctor_release(x_236, 0); + lean_ctor_release(x_236, 1); + x_300 = x_236; +} else { + lean_dec_ref(x_236); + x_300 = lean_box(0); +} +if (lean_is_scalar(x_300)) { + x_301 = lean_alloc_ctor(1, 2, 0); +} else { + x_301 = x_300; +} +lean_ctor_set(x_301, 0, x_298); +lean_ctor_set(x_301, 1, x_299); +return x_301; +} +} +else +{ +uint8_t x_302; lean_object* x_303; +lean_dec(x_6); +x_302 = 0; +x_303 = l___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault(x_2, x_8, x_302, x_3, x_4); +lean_dec(x_8); +if (lean_obj_tag(x_303) == 0) +{ +lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; +x_304 = lean_ctor_get(x_303, 0); +lean_inc(x_304); +x_305 = lean_ctor_get(x_303, 1); +lean_inc(x_305); +if (lean_is_exclusive(x_303)) { + lean_ctor_release(x_303, 0); + lean_ctor_release(x_303, 1); + x_306 = x_303; +} else { + lean_dec_ref(x_303); + x_306 = lean_box(0); +} +x_307 = lean_ctor_get(x_304, 0); +lean_inc(x_307); +lean_dec(x_304); +if (lean_is_scalar(x_306)) { + x_308 = lean_alloc_ctor(0, 2, 0); +} else { + x_308 = x_306; +} +lean_ctor_set(x_308, 0, x_307); +lean_ctor_set(x_308, 1, x_305); +return x_308; +} +else +{ +lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; +x_309 = lean_ctor_get(x_303, 0); +lean_inc(x_309); +x_310 = lean_ctor_get(x_303, 1); +lean_inc(x_310); +if (lean_is_exclusive(x_303)) { + lean_ctor_release(x_303, 0); + lean_ctor_release(x_303, 1); + x_311 = x_303; +} else { + lean_dec_ref(x_303); + x_311 = lean_box(0); +} +if (lean_is_scalar(x_311)) { + x_312 = lean_alloc_ctor(1, 2, 0); +} else { + x_312 = x_311; +} +lean_ctor_set(x_312, 0, x_309); +lean_ctor_set(x_312, 1, x_310); +return x_312; +} +} +} +} +else +{ +lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; uint8_t x_325; uint8_t x_326; uint8_t x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; +x_313 = lean_ctor_get(x_3, 0); +x_314 = lean_ctor_get(x_3, 1); +lean_inc(x_314); +lean_inc(x_313); +lean_dec(x_3); +x_315 = lean_ctor_get(x_313, 0); +lean_inc(x_315); +x_316 = lean_ctor_get(x_313, 1); +lean_inc(x_316); +x_317 = lean_ctor_get(x_313, 2); +lean_inc(x_317); +x_318 = lean_ctor_get(x_313, 3); +lean_inc(x_318); +x_319 = lean_ctor_get(x_313, 4); +lean_inc(x_319); +x_320 = lean_ctor_get(x_313, 5); +lean_inc(x_320); +x_321 = lean_ctor_get(x_313, 6); +lean_inc(x_321); +x_322 = lean_ctor_get(x_313, 7); +lean_inc(x_322); +x_323 = lean_ctor_get(x_313, 8); +lean_inc(x_323); +x_324 = lean_ctor_get(x_313, 9); +lean_inc(x_324); +x_325 = lean_ctor_get_uint8(x_313, sizeof(void*)*11); +x_326 = lean_ctor_get_uint8(x_313, sizeof(void*)*11 + 1); +x_327 = lean_ctor_get_uint8(x_313, sizeof(void*)*11 + 2); +if (lean_is_exclusive(x_313)) { + lean_ctor_release(x_313, 0); + lean_ctor_release(x_313, 1); + lean_ctor_release(x_313, 2); + lean_ctor_release(x_313, 3); + lean_ctor_release(x_313, 4); + lean_ctor_release(x_313, 5); + lean_ctor_release(x_313, 6); + lean_ctor_release(x_313, 7); + lean_ctor_release(x_313, 8); + lean_ctor_release(x_313, 9); + lean_ctor_release(x_313, 10); + x_328 = x_313; +} else { + lean_dec_ref(x_313); + x_328 = lean_box(0); +} +if (lean_is_scalar(x_328)) { + x_329 = lean_alloc_ctor(0, 11, 3); +} else { + x_329 = x_328; +} +lean_ctor_set(x_329, 0, x_315); +lean_ctor_set(x_329, 1, x_316); +lean_ctor_set(x_329, 2, x_317); +lean_ctor_set(x_329, 3, x_318); +lean_ctor_set(x_329, 4, x_319); +lean_ctor_set(x_329, 5, x_320); +lean_ctor_set(x_329, 6, x_321); +lean_ctor_set(x_329, 7, x_322); +lean_ctor_set(x_329, 8, x_323); +lean_ctor_set(x_329, 9, x_324); +lean_ctor_set(x_329, 10, x_1); +lean_ctor_set_uint8(x_329, sizeof(void*)*11, x_325); +lean_ctor_set_uint8(x_329, sizeof(void*)*11 + 1, x_326); +lean_ctor_set_uint8(x_329, sizeof(void*)*11 + 2, x_327); +x_330 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_330, 0, x_329); +lean_ctor_set(x_330, 1, x_314); +if (x_9 == 0) +{ +lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; +x_331 = lean_unsigned_to_nat(1u); +x_332 = l_Lean_Syntax_getIdAt(x_6, x_331); +lean_dec(x_6); +x_333 = l_Lean_Name_eraseMacroScopes(x_332); +lean_dec(x_332); +lean_inc(x_330); +x_334 = l_Lean_Elab_Tactic_getRecFromUsing(x_2, x_333, x_330, x_4); +if (lean_obj_tag(x_334) == 0) +{ +lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; uint8_t x_339; +x_335 = lean_ctor_get(x_334, 0); +lean_inc(x_335); +x_336 = lean_ctor_get(x_334, 1); +lean_inc(x_336); +if (lean_is_exclusive(x_334)) { + lean_ctor_release(x_334, 0); + lean_ctor_release(x_334, 1); + x_337 = x_334; +} else { + lean_dec_ref(x_334); + x_337 = lean_box(0); +} +x_338 = lean_ctor_get(x_335, 0); +lean_inc(x_338); +x_339 = l_Lean_Syntax_isNone(x_8); +if (x_339 == 0) +{ +lean_object* x_340; lean_object* x_341; +lean_dec(x_337); +x_340 = l___private_Lean_Elab_Tactic_Induction_7__getAlts(x_8); +lean_dec(x_8); +lean_inc(x_330); +x_341 = l_Lean_Elab_Tactic_getMainGoal(x_330, x_336); +if (lean_obj_tag(x_341) == 0) +{ +lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; +x_342 = lean_ctor_get(x_341, 0); +lean_inc(x_342); +x_343 = lean_ctor_get(x_341, 1); +lean_inc(x_343); +lean_dec(x_341); +x_344 = lean_ctor_get(x_342, 0); +lean_inc(x_344); +if (lean_is_exclusive(x_342)) { + lean_ctor_release(x_342, 0); + lean_ctor_release(x_342, 1); + x_345 = x_342; +} else { + lean_dec_ref(x_342); + x_345 = lean_box(0); +} +lean_inc(x_338); +x_346 = lean_alloc_closure((void*)(l_Lean_Meta_getParamNames), 3, 1); +lean_closure_set(x_346, 0, x_338); +x_347 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 3, 1); +lean_closure_set(x_347, 0, x_346); +lean_inc(x_330); +x_348 = l_Lean_Elab_Tactic_withMVarContext___rarg(x_344, x_347, x_330, x_343); +lean_dec(x_344); +if (lean_obj_tag(x_348) == 0) +{ +lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; +x_349 = lean_ctor_get(x_348, 0); +lean_inc(x_349); +x_350 = lean_ctor_get(x_348, 1); +lean_inc(x_350); +lean_dec(x_348); +x_351 = lean_box(0); +if (lean_is_scalar(x_345)) { + x_352 = lean_alloc_ctor(0, 2, 0); +} else { + x_352 = x_345; +} +lean_ctor_set(x_352, 0, x_340); +lean_ctor_set(x_352, 1, x_351); +x_353 = l_Array_empty___closed__1; +x_354 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_354, 0, x_353); +lean_ctor_set(x_354, 1, x_352); +x_355 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_355, 0, x_353); +lean_ctor_set(x_355, 1, x_354); +x_356 = lean_array_get_size(x_349); +lean_inc(x_330); +lean_inc(x_356); +x_357 = l_Nat_foldMAux___main___at___private_Lean_Elab_Tactic_Induction_14__getRecInfo___spec__2(x_335, x_349, x_356, x_356, x_355, x_330, x_350); +lean_dec(x_356); +lean_dec(x_349); +lean_dec(x_335); +if (lean_obj_tag(x_357) == 0) +{ +lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; uint8_t x_366; lean_object* x_367; +x_358 = lean_ctor_get(x_357, 0); +lean_inc(x_358); +x_359 = lean_ctor_get(x_358, 1); +lean_inc(x_359); +x_360 = lean_ctor_get(x_359, 1); +lean_inc(x_360); +x_361 = lean_ctor_get(x_357, 1); +lean_inc(x_361); +if (lean_is_exclusive(x_357)) { + lean_ctor_release(x_357, 0); + lean_ctor_release(x_357, 1); + x_362 = x_357; +} else { + lean_dec_ref(x_357); + x_362 = lean_box(0); +} +x_363 = lean_ctor_get(x_358, 0); +lean_inc(x_363); +lean_dec(x_358); +x_364 = lean_ctor_get(x_359, 0); +lean_inc(x_364); +lean_dec(x_359); +x_365 = lean_ctor_get(x_360, 0); +lean_inc(x_365); +lean_dec(x_360); +x_366 = l_Array_isEmpty___rarg(x_365); +x_367 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_367, 0, x_338); +lean_ctor_set(x_367, 1, x_363); +lean_ctor_set(x_367, 2, x_364); +if (x_366 == 0) +{ +lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; +lean_dec(x_362); +x_368 = l_Lean_Syntax_inhabited; +x_369 = lean_unsigned_to_nat(0u); +x_370 = lean_array_get(x_368, x_365, x_369); +lean_dec(x_365); +x_371 = l___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___closed__3; +x_372 = l_Lean_Elab_Tactic_throwErrorAt___rarg(x_370, x_371, x_330, x_361); +if (lean_obj_tag(x_372) == 0) +{ +lean_object* x_373; lean_object* x_374; lean_object* x_375; +x_373 = lean_ctor_get(x_372, 1); +lean_inc(x_373); +if (lean_is_exclusive(x_372)) { + lean_ctor_release(x_372, 0); + lean_ctor_release(x_372, 1); + x_374 = x_372; +} else { + lean_dec_ref(x_372); + x_374 = lean_box(0); +} +if (lean_is_scalar(x_374)) { + x_375 = lean_alloc_ctor(0, 2, 0); +} else { + x_375 = x_374; +} +lean_ctor_set(x_375, 0, x_367); +lean_ctor_set(x_375, 1, x_373); +return x_375; +} +else +{ +lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; +lean_dec(x_367); +x_376 = lean_ctor_get(x_372, 0); +lean_inc(x_376); +x_377 = lean_ctor_get(x_372, 1); +lean_inc(x_377); +if (lean_is_exclusive(x_372)) { + lean_ctor_release(x_372, 0); + lean_ctor_release(x_372, 1); + x_378 = x_372; +} else { + lean_dec_ref(x_372); + x_378 = lean_box(0); +} +if (lean_is_scalar(x_378)) { + x_379 = lean_alloc_ctor(1, 2, 0); +} else { + x_379 = x_378; +} +lean_ctor_set(x_379, 0, x_376); +lean_ctor_set(x_379, 1, x_377); +return x_379; +} +} +else +{ +lean_object* x_380; +lean_dec(x_365); +lean_dec(x_330); +if (lean_is_scalar(x_362)) { + x_380 = lean_alloc_ctor(0, 2, 0); +} else { + x_380 = x_362; +} +lean_ctor_set(x_380, 0, x_367); +lean_ctor_set(x_380, 1, x_361); +return x_380; +} +} +else +{ +lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; +lean_dec(x_338); +lean_dec(x_330); +x_381 = lean_ctor_get(x_357, 0); +lean_inc(x_381); +x_382 = lean_ctor_get(x_357, 1); +lean_inc(x_382); +if (lean_is_exclusive(x_357)) { + lean_ctor_release(x_357, 0); + lean_ctor_release(x_357, 1); + x_383 = x_357; +} else { + lean_dec_ref(x_357); + x_383 = lean_box(0); +} +if (lean_is_scalar(x_383)) { + x_384 = lean_alloc_ctor(1, 2, 0); +} else { + x_384 = x_383; +} +lean_ctor_set(x_384, 0, x_381); +lean_ctor_set(x_384, 1, x_382); +return x_384; +} +} +else +{ +lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; +lean_dec(x_345); +lean_dec(x_340); +lean_dec(x_338); +lean_dec(x_335); +lean_dec(x_330); +x_385 = lean_ctor_get(x_348, 0); +lean_inc(x_385); +x_386 = lean_ctor_get(x_348, 1); +lean_inc(x_386); +if (lean_is_exclusive(x_348)) { + lean_ctor_release(x_348, 0); + lean_ctor_release(x_348, 1); + x_387 = x_348; +} else { + lean_dec_ref(x_348); + x_387 = lean_box(0); +} +if (lean_is_scalar(x_387)) { + x_388 = lean_alloc_ctor(1, 2, 0); +} else { + x_388 = x_387; +} +lean_ctor_set(x_388, 0, x_385); +lean_ctor_set(x_388, 1, x_386); +return x_388; +} +} +else +{ +lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; +lean_dec(x_340); +lean_dec(x_338); +lean_dec(x_335); +lean_dec(x_330); +x_389 = lean_ctor_get(x_341, 0); +lean_inc(x_389); +x_390 = lean_ctor_get(x_341, 1); +lean_inc(x_390); +if (lean_is_exclusive(x_341)) { + lean_ctor_release(x_341, 0); + lean_ctor_release(x_341, 1); + x_391 = x_341; +} else { + lean_dec_ref(x_341); + x_391 = lean_box(0); +} +if (lean_is_scalar(x_391)) { + x_392 = lean_alloc_ctor(1, 2, 0); +} else { + x_392 = x_391; +} +lean_ctor_set(x_392, 0, x_389); +lean_ctor_set(x_392, 1, x_390); +return x_392; +} +} +else +{ +lean_object* x_393; lean_object* x_394; lean_object* x_395; +lean_dec(x_335); +lean_dec(x_330); +lean_dec(x_8); +x_393 = l_Array_empty___closed__1; +x_394 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_394, 0, x_338); +lean_ctor_set(x_394, 1, x_393); +lean_ctor_set(x_394, 2, x_393); +if (lean_is_scalar(x_337)) { + x_395 = lean_alloc_ctor(0, 2, 0); +} else { + x_395 = x_337; +} +lean_ctor_set(x_395, 0, x_394); +lean_ctor_set(x_395, 1, x_336); +return x_395; +} +} +else +{ +lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; +lean_dec(x_330); +lean_dec(x_8); +x_396 = lean_ctor_get(x_334, 0); +lean_inc(x_396); +x_397 = lean_ctor_get(x_334, 1); +lean_inc(x_397); +if (lean_is_exclusive(x_334)) { + lean_ctor_release(x_334, 0); + lean_ctor_release(x_334, 1); + x_398 = x_334; +} else { + lean_dec_ref(x_334); + x_398 = lean_box(0); +} +if (lean_is_scalar(x_398)) { + x_399 = lean_alloc_ctor(1, 2, 0); +} else { + x_399 = x_398; +} +lean_ctor_set(x_399, 0, x_396); +lean_ctor_set(x_399, 1, x_397); +return x_399; +} +} +else +{ +uint8_t x_400; lean_object* x_401; +lean_dec(x_6); +x_400 = 0; +x_401 = l___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault(x_2, x_8, x_400, x_330, x_4); +lean_dec(x_8); +if (lean_obj_tag(x_401) == 0) +{ +lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; +x_402 = lean_ctor_get(x_401, 0); +lean_inc(x_402); +x_403 = lean_ctor_get(x_401, 1); +lean_inc(x_403); +if (lean_is_exclusive(x_401)) { + lean_ctor_release(x_401, 0); + lean_ctor_release(x_401, 1); + x_404 = x_401; +} else { + lean_dec_ref(x_401); + x_404 = lean_box(0); +} +x_405 = lean_ctor_get(x_402, 0); +lean_inc(x_405); +lean_dec(x_402); +if (lean_is_scalar(x_404)) { + x_406 = lean_alloc_ctor(0, 2, 0); +} else { + x_406 = x_404; +} +lean_ctor_set(x_406, 0, x_405); +lean_ctor_set(x_406, 1, x_403); +return x_406; +} +else +{ +lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; +x_407 = lean_ctor_get(x_401, 0); +lean_inc(x_407); +x_408 = lean_ctor_get(x_401, 1); +lean_inc(x_408); +if (lean_is_exclusive(x_401)) { + lean_ctor_release(x_401, 0); + lean_ctor_release(x_401, 1); + x_409 = x_401; +} else { + lean_dec_ref(x_401); + x_409 = lean_box(0); +} +if (lean_is_scalar(x_409)) { + x_410 = lean_alloc_ctor(1, 2, 0); +} else { + x_410 = x_409; +} +lean_ctor_set(x_410, 0, x_407); +lean_ctor_set(x_410, 1, x_408); +return x_410; +} +} } } } @@ -9872,15 +11059,15 @@ lean_dec(x_1); return x_4; } } -lean_object* l_Nat_foldMAux___main___at___private_Lean_Elab_Tactic_Induction_14__getRecInfo___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* l_Nat_foldMAux___main___at___private_Lean_Elab_Tactic_Induction_14__getRecInfo___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) { _start: { -lean_object* x_9; -x_9 = l_Nat_foldMAux___main___at___private_Lean_Elab_Tactic_Induction_14__getRecInfo___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_4); +lean_object* x_8; +x_8 = l_Nat_foldMAux___main___at___private_Lean_Elab_Tactic_Induction_14__getRecInfo___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_3); lean_dec(x_2); -return x_9; +lean_dec(x_1); +return x_8; } } uint8_t l___private_Lean_Elab_Tactic_Induction_15__isTermRHS(lean_object* x_1) { @@ -9926,7 +11113,6 @@ lean_ctor_set(x_8, 0, x_7); x_9 = 0; lean_inc(x_5); lean_inc(x_8); -lean_inc(x_1); x_10 = l_Lean_Elab_Tactic_elabTerm(x_1, x_8, x_9, x_5, x_6); if (lean_obj_tag(x_10) == 0) { @@ -9937,8 +11123,7 @@ x_12 = lean_ctor_get(x_10, 1); lean_inc(x_12); lean_dec(x_10); lean_inc(x_5); -lean_inc(x_1); -x_13 = l_Lean_Elab_Tactic_ensureHasType(x_1, x_8, x_11, x_5, x_12); +x_13 = l_Lean_Elab_Tactic_ensureHasType(x_8, x_11, x_5, x_12); if (lean_obj_tag(x_13) == 0) { lean_object* x_14; lean_object* x_15; lean_object* x_16; @@ -9957,7 +11142,7 @@ x_17 = lean_ctor_get(x_16, 1); lean_inc(x_17); lean_dec(x_16); lean_inc(x_5); -x_18 = l_Lean_Elab_Tactic_collectMVars(x_1, x_14, x_5, x_17); +x_18 = l_Lean_Elab_Tactic_collectMVars(x_14, x_5, x_17); if (lean_obj_tag(x_18) == 0) { lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; @@ -10028,7 +11213,6 @@ lean_dec(x_14); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); x_33 = !lean_is_exclusive(x_16); if (x_33 == 0) { @@ -10056,7 +11240,6 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); x_37 = !lean_is_exclusive(x_13); if (x_37 == 0) { @@ -10085,7 +11268,6 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); x_41 = !lean_is_exclusive(x_10); if (x_41 == 0) { @@ -10144,7 +11326,6 @@ x_23 = lean_ctor_get(x_22, 1); lean_inc(x_23); lean_dec(x_22); lean_inc(x_6); -lean_inc(x_17); x_24 = l_Lean_Elab_Tactic_evalTactic___main(x_17, x_6, x_23); if (lean_obj_tag(x_24) == 0) { @@ -10153,7 +11334,7 @@ x_25 = lean_ctor_get(x_24, 1); lean_inc(x_25); lean_dec(x_24); lean_inc(x_6); -x_26 = l_Lean_Elab_Tactic_done(x_17, x_6, x_25); +x_26 = l_Lean_Elab_Tactic_done(x_6, x_25); if (lean_obj_tag(x_26) == 0) { lean_object* x_27; @@ -10193,7 +11374,6 @@ return x_32; else { uint8_t x_33; -lean_dec(x_17); lean_dec(x_11); lean_dec(x_6); lean_dec(x_5); @@ -10219,11 +11399,12 @@ return x_36; } else { -lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_inc(x_18); x_37 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_getMVarDecl___boxed), 3, 1); lean_closure_set(x_37, 0, x_18); lean_inc(x_18); +lean_inc(x_17); x_38 = lean_alloc_closure((void*)(l_Nat_foldMAux___main___at___private_Lean_Elab_Tactic_Induction_16__processResult___spec__1___lambda__1), 6, 3); lean_closure_set(x_38, 0, x_17); lean_closure_set(x_38, 1, x_18); @@ -10231,57 +11412,60 @@ lean_closure_set(x_38, 2, x_5); x_39 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_monadLog___spec__2___rarg), 4, 2); lean_closure_set(x_39, 0, x_37); lean_closure_set(x_39, 1, x_38); +x_40 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_withRef___rarg), 4, 2); +lean_closure_set(x_40, 0, x_17); +lean_closure_set(x_40, 1, x_39); lean_inc(x_6); -x_40 = l_Lean_Elab_Tactic_withMVarContext___rarg(x_18, x_39, x_6, x_7); +x_41 = l_Lean_Elab_Tactic_withMVarContext___rarg(x_18, x_40, x_6, x_7); lean_dec(x_18); -if (lean_obj_tag(x_40) == 0) +if (lean_obj_tag(x_41) == 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_object* x_42; lean_object* x_43; +x_42 = lean_ctor_get(x_41, 0); lean_inc(x_42); -lean_dec(x_40); +x_43 = lean_ctor_get(x_41, 1); +lean_inc(x_43); +lean_dec(x_41); x_4 = x_11; -x_5 = x_41; -x_7 = x_42; +x_5 = x_42; +x_7 = x_43; goto _start; } else { -uint8_t x_44; +uint8_t x_45; lean_dec(x_11); lean_dec(x_6); -x_44 = !lean_is_exclusive(x_40); -if (x_44 == 0) +x_45 = !lean_is_exclusive(x_41); +if (x_45 == 0) { -return x_40; +return x_41; } 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_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_41, 0); +x_47 = lean_ctor_get(x_41, 1); +lean_inc(x_47); 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; +lean_dec(x_41); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; } } } } else { -lean_object* x_48; +lean_object* x_49; lean_dec(x_6); lean_dec(x_4); -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_5); -lean_ctor_set(x_48, 1, x_7); -return x_48; +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_5); +lean_ctor_set(x_49, 1, x_7); +return x_49; } } } @@ -10322,7 +11506,6 @@ x_23 = lean_ctor_get(x_22, 1); lean_inc(x_23); lean_dec(x_22); lean_inc(x_6); -lean_inc(x_17); x_24 = l_Lean_Elab_Tactic_evalTactic___main(x_17, x_6, x_23); if (lean_obj_tag(x_24) == 0) { @@ -10331,7 +11514,7 @@ x_25 = lean_ctor_get(x_24, 1); lean_inc(x_25); lean_dec(x_24); lean_inc(x_6); -x_26 = l_Lean_Elab_Tactic_done(x_17, x_6, x_25); +x_26 = l_Lean_Elab_Tactic_done(x_6, x_25); if (lean_obj_tag(x_26) == 0) { lean_object* x_27; @@ -10371,7 +11554,6 @@ return x_32; else { uint8_t x_33; -lean_dec(x_17); lean_dec(x_11); lean_dec(x_6); lean_dec(x_5); @@ -10397,11 +11579,12 @@ return x_36; } else { -lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_inc(x_18); x_37 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_getMVarDecl___boxed), 3, 1); lean_closure_set(x_37, 0, x_18); lean_inc(x_18); +lean_inc(x_17); x_38 = lean_alloc_closure((void*)(l_Nat_foldMAux___main___at___private_Lean_Elab_Tactic_Induction_16__processResult___spec__1___lambda__1), 6, 3); lean_closure_set(x_38, 0, x_17); lean_closure_set(x_38, 1, x_18); @@ -10409,57 +11592,60 @@ lean_closure_set(x_38, 2, x_5); x_39 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_monadLog___spec__2___rarg), 4, 2); lean_closure_set(x_39, 0, x_37); lean_closure_set(x_39, 1, x_38); +x_40 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_withRef___rarg), 4, 2); +lean_closure_set(x_40, 0, x_17); +lean_closure_set(x_40, 1, x_39); lean_inc(x_6); -x_40 = l_Lean_Elab_Tactic_withMVarContext___rarg(x_18, x_39, x_6, x_7); +x_41 = l_Lean_Elab_Tactic_withMVarContext___rarg(x_18, x_40, x_6, x_7); lean_dec(x_18); -if (lean_obj_tag(x_40) == 0) +if (lean_obj_tag(x_41) == 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_object* x_42; lean_object* x_43; +x_42 = lean_ctor_get(x_41, 0); lean_inc(x_42); -lean_dec(x_40); +x_43 = lean_ctor_get(x_41, 1); +lean_inc(x_43); +lean_dec(x_41); x_4 = x_11; -x_5 = x_41; -x_7 = x_42; +x_5 = x_42; +x_7 = x_43; goto _start; } else { -uint8_t x_44; +uint8_t x_45; lean_dec(x_11); lean_dec(x_6); -x_44 = !lean_is_exclusive(x_40); -if (x_44 == 0) +x_45 = !lean_is_exclusive(x_41); +if (x_45 == 0) { -return x_40; +return x_41; } 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_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_41, 0); +x_47 = lean_ctor_get(x_41, 1); +lean_inc(x_47); 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; +lean_dec(x_41); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; } } } } else { -lean_object* x_48; +lean_object* x_49; lean_dec(x_6); lean_dec(x_4); -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_5); -lean_ctor_set(x_48, 1, x_7); -return x_48; +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_5); +lean_ctor_set(x_49, 1, x_7); +return x_49; } } } @@ -10593,179 +11779,177 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Tactic_Induction_16__processResult(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_Tactic_Induction_16__processResult(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -uint8_t x_6; -x_6 = l_Array_isEmpty___rarg(x_2); -if (x_6 == 0) +uint8_t x_5; +x_5 = l_Array_isEmpty___rarg(x_1); +if (x_5 == 0) { -lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_10; +lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; +x_6 = lean_array_get_size(x_1); x_7 = lean_array_get_size(x_2); -x_8 = lean_array_get_size(x_3); -x_9 = lean_nat_dec_eq(x_7, x_8); -x_10 = lean_box(0); -if (x_9 == 0) +x_8 = lean_nat_dec_eq(x_6, x_7); +x_9 = lean_box(0); +if (x_8 == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 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_inc(x_8); -x_11 = l_Nat_repr(x_8); -x_12 = lean_alloc_ctor(2, 1, 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; 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_inc(x_7); +x_10 = l_Nat_repr(x_7); +x_11 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_11, 0, x_10); +x_12 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_12, 0, x_11); -x_13 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_13, 0, x_12); -x_14 = l___private_Lean_Elab_Tactic_Induction_16__processResult___closed__3; -x_15 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_13); -x_16 = l___private_Lean_Elab_Tactic_Induction_16__processResult___closed__6; -x_17 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_17, 0, x_15); -lean_ctor_set(x_17, 1, x_16); -x_18 = l___private_Lean_Elab_Tactic_Induction_16__processResult___closed__9; -x_19 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_19, 0, x_17); -lean_ctor_set(x_19, 1, x_18); -x_20 = l_Nat_repr(x_7); -x_21 = lean_alloc_ctor(2, 1, 0); +x_13 = l___private_Lean_Elab_Tactic_Induction_16__processResult___closed__3; +x_14 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_12); +x_15 = l___private_Lean_Elab_Tactic_Induction_16__processResult___closed__6; +x_16 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_16, 1, x_15); +x_17 = l___private_Lean_Elab_Tactic_Induction_16__processResult___closed__9; +x_18 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +x_19 = l_Nat_repr(x_6); +x_20 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_20, 0, x_19); +x_21 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_21, 0, x_20); -x_22 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_22, 0, x_21); -x_23 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_23, 0, x_19); -lean_ctor_set(x_23, 1, x_22); -x_24 = l_Lean_Meta_DepElim_Pattern_toMessageData___main___closed__4; -x_25 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_25, 0, x_23); -lean_ctor_set(x_25, 1, x_24); -lean_inc(x_4); -x_26 = l_Lean_Elab_Tactic_throwError___rarg(x_1, x_25, x_4, x_5); -if (lean_obj_tag(x_26) == 0) +x_22 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_22, 0, x_18); +lean_ctor_set(x_22, 1, x_21); +x_23 = l_Lean_Meta_DepElim_Pattern_toMessageData___main___closed__4; +x_24 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +lean_inc(x_3); +x_25 = l_Lean_Elab_Tactic_throwError___rarg(x_24, x_3, x_4); +if (lean_obj_tag(x_25) == 0) { -lean_object* x_27; lean_object* x_28; -x_27 = lean_ctor_get(x_26, 1); -lean_inc(x_27); -lean_dec(x_26); -lean_inc(x_4); -lean_inc(x_8); -x_28 = l_Nat_foldMAux___main___at___private_Lean_Elab_Tactic_Induction_16__processResult___spec__1(x_2, x_3, x_8, x_8, x_10, x_4, x_27); -lean_dec(x_8); -if (lean_obj_tag(x_28) == 0) +lean_object* x_26; lean_object* x_27; +x_26 = lean_ctor_get(x_25, 1); +lean_inc(x_26); +lean_dec(x_25); +lean_inc(x_3); +lean_inc(x_7); +x_27 = l_Nat_foldMAux___main___at___private_Lean_Elab_Tactic_Induction_16__processResult___spec__1(x_1, x_2, x_7, x_7, x_9, x_3, x_26); +lean_dec(x_7); +if (lean_obj_tag(x_27) == 0) { -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_28, 0); +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_27, 1); lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); -lean_inc(x_30); -lean_dec(x_28); -x_31 = l_Lean_Elab_Tactic_setGoals(x_29, x_4, x_30); -lean_dec(x_4); -return x_31; +lean_dec(x_27); +x_30 = l_Lean_Elab_Tactic_setGoals(x_28, x_3, x_29); +lean_dec(x_3); +return x_30; } else { -uint8_t x_32; -lean_dec(x_4); -x_32 = !lean_is_exclusive(x_28); -if (x_32 == 0) +uint8_t x_31; +lean_dec(x_3); +x_31 = !lean_is_exclusive(x_27); +if (x_31 == 0) { -return x_28; +return x_27; } 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_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_27, 0); +x_33 = lean_ctor_get(x_27, 1); 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; +lean_inc(x_32); +lean_dec(x_27); +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; } } } else { -uint8_t x_36; -lean_dec(x_8); -lean_dec(x_4); -x_36 = !lean_is_exclusive(x_26); -if (x_36 == 0) +uint8_t x_35; +lean_dec(x_7); +lean_dec(x_3); +x_35 = !lean_is_exclusive(x_25); +if (x_35 == 0) { -return x_26; +return x_25; } else { -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_26, 0); -x_38 = lean_ctor_get(x_26, 1); -lean_inc(x_38); +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_25, 0); +x_37 = lean_ctor_get(x_25, 1); lean_inc(x_37); -lean_dec(x_26); -x_39 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_39, 0, x_37); -lean_ctor_set(x_39, 1, x_38); +lean_inc(x_36); +lean_dec(x_25); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +return x_38; +} +} +} +else +{ +lean_object* x_39; +lean_dec(x_6); +lean_inc(x_3); +lean_inc(x_7); +x_39 = l_Nat_foldMAux___main___at___private_Lean_Elab_Tactic_Induction_16__processResult___spec__2(x_1, x_2, x_7, x_7, x_9, x_3, x_4); +lean_dec(x_7); +if (lean_obj_tag(x_39) == 0) +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_39, 1); +lean_inc(x_41); +lean_dec(x_39); +x_42 = l_Lean_Elab_Tactic_setGoals(x_40, x_3, x_41); +lean_dec(x_3); +return x_42; +} +else +{ +uint8_t x_43; +lean_dec(x_3); +x_43 = !lean_is_exclusive(x_39); +if (x_43 == 0) +{ return x_39; } -} -} else { -lean_object* x_40; -lean_dec(x_7); -lean_dec(x_1); -lean_inc(x_4); -lean_inc(x_8); -x_40 = l_Nat_foldMAux___main___at___private_Lean_Elab_Tactic_Induction_16__processResult___spec__2(x_2, x_3, x_8, x_8, x_10, x_4, x_5); -lean_dec(x_8); -if (lean_obj_tag(x_40) == 0) -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; -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_43 = l_Lean_Elab_Tactic_setGoals(x_41, x_4, x_42); -lean_dec(x_4); -return x_43; -} -else -{ -uint8_t x_44; -lean_dec(x_4); -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_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_39, 0); +x_45 = lean_ctor_get(x_39, 1); 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; +lean_inc(x_44); +lean_dec(x_39); +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 { -lean_object* x_48; lean_object* x_49; lean_object* x_50; -lean_dec(x_1); -x_48 = l_Array_toList___rarg(x_3); -x_49 = l_List_map___main___at___private_Lean_Elab_Tactic_Induction_16__processResult___spec__3(x_48); -x_50 = l_Lean_Elab_Tactic_setGoals(x_49, x_4, x_5); -lean_dec(x_4); -return x_50; +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = l_Array_toList___rarg(x_2); +x_48 = l_List_map___main___at___private_Lean_Elab_Tactic_Induction_16__processResult___spec__3(x_47); +x_49 = l_Lean_Elab_Tactic_setGoals(x_48, x_3, x_4); +lean_dec(x_3); +return x_49; } } } @@ -10791,14 +11975,14 @@ lean_dec(x_1); return x_8; } } -lean_object* l___private_Lean_Elab_Tactic_Induction_16__processResult___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_Tactic_Induction_16__processResult___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_6; -x_6 = l___private_Lean_Elab_Tactic_Induction_16__processResult(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_3); +lean_object* x_5; +x_5 = l___private_Lean_Elab_Tactic_Induction_16__processResult(x_1, x_2, x_3, x_4); lean_dec(x_2); -return x_6; +lean_dec(x_1); +return x_5; } } lean_object* l_Lean_Elab_Tactic_evalInduction___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { @@ -10806,8 +11990,7 @@ _start: { lean_object* x_5; lean_inc(x_3); -lean_inc(x_1); -x_5 = l___private_Lean_Elab_Tactic_Induction_4__generalizeMajor(x_1, x_2, x_3, x_4); +x_5 = l___private_Lean_Elab_Tactic_Induction_4__generalizeMajor(x_2, x_3, x_4); if (lean_obj_tag(x_5) == 0) { lean_object* x_6; lean_object* x_7; lean_object* x_8; @@ -10828,7 +12011,6 @@ lean_inc(x_9); lean_dec(x_8); lean_inc(x_3); lean_inc(x_6); -lean_inc(x_1); x_10 = l___private_Lean_Elab_Tactic_Induction_14__getRecInfo(x_1, x_6, x_3, x_9); if (lean_obj_tag(x_10) == 0) { @@ -10839,8 +12021,7 @@ x_12 = lean_ctor_get(x_10, 1); lean_inc(x_12); lean_dec(x_10); lean_inc(x_3); -lean_inc(x_1); -x_13 = l_Lean_Elab_Tactic_getMainGoal(x_1, x_3, x_12); +x_13 = l_Lean_Elab_Tactic_getMainGoal(x_3, x_12); if (lean_obj_tag(x_13) == 0) { lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; @@ -10867,8 +12048,7 @@ lean_closure_set(x_22, 2, x_18); lean_closure_set(x_22, 3, x_19); lean_closure_set(x_22, 4, x_21); lean_inc(x_3); -lean_inc(x_1); -x_23 = l_Lean_Elab_Tactic_liftMetaM___rarg(x_1, x_22, x_3, x_15); +x_23 = l_Lean_Elab_Tactic_liftMetaM___rarg(x_22, x_3, x_15); if (lean_obj_tag(x_23) == 0) { lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; @@ -10880,7 +12060,7 @@ lean_dec(x_23); x_26 = lean_ctor_get(x_11, 2); lean_inc(x_26); lean_dec(x_11); -x_27 = l___private_Lean_Elab_Tactic_Induction_16__processResult(x_1, x_26, x_24, x_3, x_25); +x_27 = l___private_Lean_Elab_Tactic_Induction_16__processResult(x_26, x_24, x_3, x_25); lean_dec(x_24); lean_dec(x_26); return x_27; @@ -10890,7 +12070,6 @@ else uint8_t x_28; lean_dec(x_11); lean_dec(x_3); -lean_dec(x_1); x_28 = !lean_is_exclusive(x_23); if (x_28 == 0) { @@ -10917,7 +12096,6 @@ uint8_t x_32; lean_dec(x_11); lean_dec(x_6); lean_dec(x_3); -lean_dec(x_1); x_32 = !lean_is_exclusive(x_13); if (x_32 == 0) { @@ -10943,7 +12121,6 @@ else uint8_t x_36; lean_dec(x_6); lean_dec(x_3); -lean_dec(x_1); x_36 = !lean_is_exclusive(x_10); if (x_36 == 0) { @@ -11022,18 +12199,15 @@ _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; x_4 = l___private_Lean_Elab_Tactic_Induction_1__getAuxHypothesisName(x_1); x_5 = l___private_Lean_Elab_Tactic_Induction_2__getMajor(x_1); -lean_inc(x_1); -x_6 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Induction_3__elabMajor), 5, 3); -lean_closure_set(x_6, 0, x_1); -lean_closure_set(x_6, 1, x_4); -lean_closure_set(x_6, 2, x_5); -lean_inc(x_1); +x_6 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Induction_3__elabMajor), 4, 2); +lean_closure_set(x_6, 0, x_4); +lean_closure_set(x_6, 1, x_5); x_7 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalInduction___lambda__1), 4, 1); lean_closure_set(x_7, 0, x_1); x_8 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_monadLog___spec__2___rarg), 4, 2); lean_closure_set(x_8, 0, x_6); lean_closure_set(x_8, 1, x_7); -x_9 = l_Lean_Elab_Tactic_focusAux___rarg(x_1, x_8, x_2, x_3); +x_9 = l_Lean_Elab_Tactic_focusAux___rarg(x_8, x_2, x_3); return x_9; } } @@ -11140,204 +12314,202 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Tactic_Induction_17__checkCasesResultAux___main(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_Elab_Tactic_Induction_17__checkCasesResultAux___main(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_9; uint8_t x_10; -x_9 = lean_array_get_size(x_4); -x_10 = lean_nat_dec_lt(x_6, x_9); -lean_dec(x_9); -if (x_10 == 0) +lean_object* x_8; uint8_t x_9; +x_8 = lean_array_get_size(x_3); +x_9 = lean_nat_dec_lt(x_5, x_8); +lean_dec(x_8); +if (x_9 == 0) { -lean_object* x_11; uint8_t x_12; +lean_object* x_10; uint8_t x_11; +lean_dec(x_5); +x_10 = lean_array_get_size(x_1); +x_11 = lean_nat_dec_lt(x_4, x_10); +lean_dec(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_dec(x_6); -x_11 = lean_array_get_size(x_2); -x_12 = lean_nat_dec_lt(x_5, x_11); -lean_dec(x_11); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_1); -x_13 = lean_box(0); -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_13); -lean_ctor_set(x_14, 1, x_8); -return x_14; +lean_dec(x_4); +x_12 = lean_box(0); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_7); +return x_13; } 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; -x_15 = lean_array_fget(x_2, x_5); -lean_dec(x_5); -x_16 = lean_ctor_get(x_15, 1); -lean_inc(x_16); -lean_dec(x_15); -x_17 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_17, 0, x_16); -x_18 = l___private_Lean_Elab_Tactic_Induction_17__checkCasesResultAux___main___closed__3; -x_19 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_17); -x_20 = l___private_Lean_Elab_Tactic_Induction_17__checkCasesResultAux___main___closed__6; -x_21 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_21, 0, x_19); -lean_ctor_set(x_21, 1, x_20); -x_22 = l_Lean_Elab_Tactic_throwError___rarg(x_1, x_21, x_7, x_8); -return x_22; +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; +x_14 = lean_array_fget(x_1, x_4); +lean_dec(x_4); +x_15 = lean_ctor_get(x_14, 1); +lean_inc(x_15); +lean_dec(x_14); +x_16 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_16, 0, x_15); +x_17 = l___private_Lean_Elab_Tactic_Induction_17__checkCasesResultAux___main___closed__3; +x_18 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_16); +x_19 = l___private_Lean_Elab_Tactic_Induction_17__checkCasesResultAux___main___closed__6; +x_20 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_19); +x_21 = l_Lean_Elab_Tactic_throwError___rarg(x_20, x_6, x_7); +return x_21; } } else { -lean_object* x_23; uint8_t x_24; -x_23 = lean_array_fget(x_4, x_6); -x_24 = l_Lean_Syntax_isMissing(x_23); -lean_dec(x_23); -if (x_24 == 0) +lean_object* x_22; uint8_t x_23; +x_22 = lean_array_fget(x_3, x_5); +x_23 = l_Lean_Syntax_isMissing(x_22); +lean_dec(x_22); +if (x_23 == 0) { -lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_25 = l_Lean_Name_inhabited; -x_26 = lean_array_get(x_25, x_3, x_6); -x_27 = lean_array_get_size(x_2); -x_28 = lean_nat_dec_lt(x_5, x_27); -lean_dec(x_27); -if (x_28 == 0) -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -lean_dec(x_6); -lean_dec(x_5); -x_29 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_29, 0, x_26); -x_30 = l___private_Lean_Elab_Tactic_Induction_17__checkCasesResultAux___main___closed__3; -x_31 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_29); -x_32 = l___private_Lean_Elab_Tactic_Induction_17__checkCasesResultAux___main___closed__9; -x_33 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_33, 0, x_31); -lean_ctor_set(x_33, 1, x_32); -x_34 = l_Lean_Elab_Tactic_throwError___rarg(x_1, x_33, x_7, x_8); -return x_34; -} -else -{ -lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_35 = lean_array_fget(x_2, x_5); -x_36 = lean_ctor_get(x_35, 1); -lean_inc(x_36); -lean_dec(x_35); -x_37 = lean_name_eq(x_26, x_36); +lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_24 = l_Lean_Name_inhabited; +x_25 = lean_array_get(x_24, x_2, x_5); +x_26 = lean_array_get_size(x_1); +x_27 = lean_nat_dec_lt(x_4, x_26); lean_dec(x_26); -if (x_37 == 0) +if (x_27 == 0) { -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_dec(x_6); +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_dec(x_5); -x_38 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_38, 0, x_36); -x_39 = l___private_Lean_Elab_Tactic_Induction_17__checkCasesResultAux___main___closed__3; -x_40 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_38); -x_41 = l___private_Lean_Elab_Tactic_Induction_17__checkCasesResultAux___main___closed__6; -x_42 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -x_43 = l_Lean_Elab_Tactic_throwError___rarg(x_1, x_42, x_7, x_8); -return x_43; +lean_dec(x_4); +x_28 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_28, 0, x_25); +x_29 = l___private_Lean_Elab_Tactic_Induction_17__checkCasesResultAux___main___closed__3; +x_30 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_28); +x_31 = l___private_Lean_Elab_Tactic_Induction_17__checkCasesResultAux___main___closed__9; +x_32 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_32, 0, x_30); +lean_ctor_set(x_32, 1, x_31); +x_33 = l_Lean_Elab_Tactic_throwError___rarg(x_32, x_6, x_7); +return x_33; } else { -lean_object* x_44; lean_object* x_45; lean_object* x_46; -lean_dec(x_36); -x_44 = lean_unsigned_to_nat(1u); -x_45 = lean_nat_add(x_5, x_44); +lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_34 = lean_array_fget(x_1, x_4); +x_35 = lean_ctor_get(x_34, 1); +lean_inc(x_35); +lean_dec(x_34); +x_36 = lean_name_eq(x_25, x_35); +lean_dec(x_25); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_dec(x_5); -x_46 = lean_nat_add(x_6, x_44); -lean_dec(x_6); +lean_dec(x_4); +x_37 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_37, 0, x_35); +x_38 = l___private_Lean_Elab_Tactic_Induction_17__checkCasesResultAux___main___closed__3; +x_39 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_37); +x_40 = l___private_Lean_Elab_Tactic_Induction_17__checkCasesResultAux___main___closed__6; +x_41 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +x_42 = l_Lean_Elab_Tactic_throwError___rarg(x_41, x_6, x_7); +return x_42; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +lean_dec(x_35); +x_43 = lean_unsigned_to_nat(1u); +x_44 = lean_nat_add(x_4, x_43); +lean_dec(x_4); +x_45 = lean_nat_add(x_5, x_43); +lean_dec(x_5); +x_4 = x_44; x_5 = x_45; -x_6 = x_46; goto _start; } } } else { -lean_object* x_48; lean_object* x_49; -x_48 = lean_unsigned_to_nat(1u); -x_49 = lean_nat_add(x_6, x_48); -lean_dec(x_6); -x_6 = x_49; -goto _start; -} -} -} -} -lean_object* l___private_Lean_Elab_Tactic_Induction_17__checkCasesResultAux___main___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_Elab_Tactic_Induction_17__checkCasesResultAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_9; -} -} -lean_object* l___private_Lean_Elab_Tactic_Induction_17__checkCasesResultAux(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_Elab_Tactic_Induction_17__checkCasesResultAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -return x_9; -} -} -lean_object* l___private_Lean_Elab_Tactic_Induction_17__checkCasesResultAux___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_Elab_Tactic_Induction_17__checkCasesResultAux(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_9; -} -} -lean_object* l___private_Lean_Elab_Tactic_Induction_18__checkCasesResult(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -uint8_t x_7; -x_7 = l_Array_isEmpty___rarg(x_4); -if (x_7 == 0) -{ -lean_object* x_8; lean_object* x_9; -x_8 = lean_unsigned_to_nat(0u); -x_9 = l___private_Lean_Elab_Tactic_Induction_17__checkCasesResultAux___main(x_1, x_2, x_3, x_4, x_8, x_8, x_5, x_6); -return x_9; -} -else -{ -lean_object* x_10; lean_object* x_11; +lean_object* x_47; lean_object* x_48; +x_47 = lean_unsigned_to_nat(1u); +x_48 = lean_nat_add(x_5, x_47); lean_dec(x_5); -lean_dec(x_1); -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_6); -return x_11; +x_5 = x_48; +goto _start; } } } -lean_object* l___private_Lean_Elab_Tactic_Induction_18__checkCasesResult___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* l___private_Lean_Elab_Tactic_Induction_17__checkCasesResultAux___main___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_7; -x_7 = l___private_Lean_Elab_Tactic_Induction_18__checkCasesResult(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_4); +lean_object* x_8; +x_8 = l___private_Lean_Elab_Tactic_Induction_17__checkCasesResultAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_3); lean_dec(x_2); -return x_7; +lean_dec(x_1); +return x_8; +} +} +lean_object* l___private_Lean_Elab_Tactic_Induction_17__checkCasesResultAux(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_Elab_Tactic_Induction_17__checkCasesResultAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +return x_8; +} +} +lean_object* l___private_Lean_Elab_Tactic_Induction_17__checkCasesResultAux___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_Elab_Tactic_Induction_17__checkCasesResultAux(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_8; +} +} +lean_object* l___private_Lean_Elab_Tactic_Induction_18__checkCasesResult(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; +x_6 = l_Array_isEmpty___rarg(x_3); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; +x_7 = lean_unsigned_to_nat(0u); +x_8 = l___private_Lean_Elab_Tactic_Induction_17__checkCasesResultAux___main(x_1, x_2, x_3, x_7, x_7, x_4, x_5); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; +lean_dec(x_4); +x_9 = lean_box(0); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_5); +return x_10; +} +} +} +lean_object* l___private_Lean_Elab_Tactic_Induction_18__checkCasesResult___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l___private_Lean_Elab_Tactic_Induction_18__checkCasesResult(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_6; } } lean_object* l_Array_umapMAux___main___at_Lean_Elab_Tactic_evalCases___spec__1(lean_object* x_1, lean_object* x_2) { @@ -11444,8 +12616,7 @@ _start: { lean_object* x_5; lean_inc(x_3); -lean_inc(x_1); -x_5 = l___private_Lean_Elab_Tactic_Induction_4__generalizeMajor(x_1, x_2, x_3, x_4); +x_5 = l___private_Lean_Elab_Tactic_Induction_4__generalizeMajor(x_2, x_3, x_4); if (lean_obj_tag(x_5) == 0) { lean_object* x_6; lean_object* x_7; lean_object* x_8; @@ -11455,8 +12626,7 @@ x_7 = lean_ctor_get(x_5, 1); lean_inc(x_7); lean_dec(x_5); lean_inc(x_3); -lean_inc(x_1); -x_8 = l_Lean_Elab_Tactic_getMainGoal(x_1, x_3, x_7); +x_8 = l_Lean_Elab_Tactic_getMainGoal(x_3, x_7); 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; uint8_t x_14; lean_object* x_15; @@ -11473,8 +12643,7 @@ x_13 = l_Lean_Syntax_getArg(x_1, x_12); x_14 = 1; lean_inc(x_3); lean_inc(x_6); -lean_inc(x_1); -x_15 = l___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault(x_1, x_6, x_13, x_14, x_3, x_10); +x_15 = l___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault(x_6, x_13, x_14, x_3, x_10); lean_dec(x_13); if (lean_obj_tag(x_15) == 0) { @@ -11501,8 +12670,7 @@ lean_closure_set(x_24, 1, x_20); lean_closure_set(x_24, 2, x_21); lean_closure_set(x_24, 3, x_23); lean_inc(x_3); -lean_inc(x_1); -x_25 = l_Lean_Elab_Tactic_liftMetaM___rarg(x_1, x_24, x_3, x_17); +x_25 = l_Lean_Elab_Tactic_liftMetaM___rarg(x_24, x_3, x_17); if (lean_obj_tag(x_25) == 0) { lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; @@ -11522,8 +12690,7 @@ x_32 = x_31; lean_inc(x_28); x_33 = l_Array_filterAux___main___at_Lean_Elab_Tactic_evalCases___spec__2(x_28, x_30, x_30); lean_inc(x_3); -lean_inc(x_1); -x_34 = l___private_Lean_Elab_Tactic_Induction_18__checkCasesResult(x_1, x_26, x_19, x_28, x_3, x_27); +x_34 = l___private_Lean_Elab_Tactic_Induction_18__checkCasesResult(x_26, x_19, x_28, x_3, x_27); lean_dec(x_28); lean_dec(x_19); lean_dec(x_26); @@ -11533,7 +12700,7 @@ lean_object* x_35; lean_object* x_36; x_35 = lean_ctor_get(x_34, 1); lean_inc(x_35); lean_dec(x_34); -x_36 = l___private_Lean_Elab_Tactic_Induction_16__processResult(x_1, x_33, x_32, x_3, x_35); +x_36 = l___private_Lean_Elab_Tactic_Induction_16__processResult(x_33, x_32, x_3, x_35); lean_dec(x_32); lean_dec(x_33); return x_36; @@ -11544,7 +12711,6 @@ uint8_t x_37; lean_dec(x_33); lean_dec(x_32); lean_dec(x_3); -lean_dec(x_1); x_37 = !lean_is_exclusive(x_34); if (x_37 == 0) { @@ -11571,7 +12737,6 @@ uint8_t x_41; lean_dec(x_19); lean_dec(x_18); lean_dec(x_3); -lean_dec(x_1); x_41 = !lean_is_exclusive(x_25); if (x_41 == 0) { @@ -11598,7 +12763,6 @@ uint8_t x_45; lean_dec(x_11); lean_dec(x_6); lean_dec(x_3); -lean_dec(x_1); x_45 = !lean_is_exclusive(x_15); if (x_45 == 0) { @@ -11624,7 +12788,6 @@ else uint8_t x_49; lean_dec(x_6); lean_dec(x_3); -lean_dec(x_1); x_49 = !lean_is_exclusive(x_8); if (x_49 == 0) { @@ -11649,7 +12812,6 @@ else { uint8_t x_53; lean_dec(x_3); -lean_dec(x_1); x_53 = !lean_is_exclusive(x_5); if (x_53 == 0) { @@ -11677,21 +12839,27 @@ _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; x_4 = l___private_Lean_Elab_Tactic_Induction_1__getAuxHypothesisName(x_1); x_5 = l___private_Lean_Elab_Tactic_Induction_2__getMajor(x_1); -lean_inc(x_1); -x_6 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Induction_3__elabMajor), 5, 3); -lean_closure_set(x_6, 0, x_1); -lean_closure_set(x_6, 1, x_4); -lean_closure_set(x_6, 2, x_5); -lean_inc(x_1); -x_7 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalCases___lambda__1), 4, 1); +x_6 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Induction_3__elabMajor), 4, 2); +lean_closure_set(x_6, 0, x_4); +lean_closure_set(x_6, 1, x_5); +x_7 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalCases___lambda__1___boxed), 4, 1); lean_closure_set(x_7, 0, x_1); x_8 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_monadLog___spec__2___rarg), 4, 2); lean_closure_set(x_8, 0, x_6); lean_closure_set(x_8, 1, x_7); -x_9 = l_Lean_Elab_Tactic_focusAux___rarg(x_1, x_8, x_2, x_3); +x_9 = l_Lean_Elab_Tactic_focusAux___rarg(x_8, x_2, x_3); return x_9; } } +lean_object* l_Lean_Elab_Tactic_evalCases___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_Elab_Tactic_evalCases___lambda__1(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalCases___closed__1() { _start: { diff --git a/stage0/stdlib/Lean/Elab/Tactic/Injection.c b/stage0/stdlib/Lean/Elab/Tactic/Injection.c index 04940b7065..4688e8db5f 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Injection.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Injection.c @@ -16,7 +16,7 @@ extern "C" { lean_object* l___private_Lean_Elab_Tactic_Injection_1__getInjectionNewIds___boxed(lean_object*); lean_object* l___private_Lean_Elab_Tactic_Injection_2__checkUnusedIds___closed__3; lean_object* l_Lean_Elab_Tactic_withMVarContext___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_liftMetaM___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_liftMetaM___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Tactic_liftMetaTactic___closed__1; @@ -25,7 +25,8 @@ lean_object* l___regBuiltin_Lean_Elab_Tactic_evalInjection(lean_object*); lean_object* l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(lean_object*); lean_object* l_ReaderT_bind___at_Lean_Elab_Tactic_monadLog___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getId(lean_object*); -lean_object* l_Lean_Elab_Tactic_getMainGoal(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_getMainGoal(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_evalInjection___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Tactic_tacticElabAttribute; extern lean_object* l_Lean_Parser_Tactic_injection___elambda__1___closed__1; lean_object* l_Lean_Meta_throwTacticEx___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -338,8 +339,7 @@ x_11 = l_Lean_Syntax_getArg(x_1, x_10); x_12 = l___private_Lean_Elab_Tactic_Injection_1__getInjectionNewIds(x_11); lean_dec(x_11); lean_inc(x_2); -lean_inc(x_1); -x_13 = l_Lean_Elab_Tactic_getMainGoal(x_1, x_2, x_9); +x_13 = l_Lean_Elab_Tactic_getMainGoal(x_2, x_9); if (lean_obj_tag(x_13) == 0) { lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; @@ -379,9 +379,8 @@ x_25 = l_Lean_Elab_Tactic_liftMetaTactic___closed__1; x_26 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg), 4, 2); lean_closure_set(x_26, 0, x_24); lean_closure_set(x_26, 1, x_25); -x_27 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 4, 2); -lean_closure_set(x_27, 0, x_1); -lean_closure_set(x_27, 1, x_26); +x_27 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 3, 1); +lean_closure_set(x_27, 0, x_26); x_28 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_monadLog___spec__2___rarg), 4, 2); lean_closure_set(x_28, 0, x_27); lean_closure_set(x_28, 1, x_20); @@ -407,9 +406,8 @@ x_34 = l_Lean_Elab_Tactic_liftMetaTactic___closed__1; x_35 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg), 4, 2); lean_closure_set(x_35, 0, x_33); lean_closure_set(x_35, 1, x_34); -x_36 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 4, 2); -lean_closure_set(x_36, 0, x_1); -lean_closure_set(x_36, 1, x_35); +x_36 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_liftMetaM___rarg), 3, 1); +lean_closure_set(x_36, 0, x_35); x_37 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_monadLog___spec__2___rarg), 4, 2); lean_closure_set(x_37, 0, x_36); lean_closure_set(x_37, 1, x_20); @@ -424,7 +422,6 @@ uint8_t x_39; lean_dec(x_12); lean_dec(x_8); lean_dec(x_2); -lean_dec(x_1); x_39 = !lean_is_exclusive(x_13); if (x_39 == 0) { @@ -449,7 +446,6 @@ else { uint8_t x_43; lean_dec(x_2); -lean_dec(x_1); x_43 = !lean_is_exclusive(x_7); if (x_43 == 0) { @@ -480,11 +476,20 @@ lean_dec(x_4); return x_6; } } +lean_object* l_Lean_Elab_Tactic_evalInjection___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Elab_Tactic_evalInjection(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalInjection___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalInjection), 3, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalInjection___boxed), 3, 0); return x_1; } } diff --git a/stage0/stdlib/Lean/Elab/Term.c b/stage0/stdlib/Lean/Elab/Term.c index 91aaf25272..69291c45de 100644 --- a/stage0/stdlib/Lean/Elab/Term.c +++ b/stage0/stdlib/Lean/Elab/Term.c @@ -13,16 +13,15 @@ #ifdef __cplusplus extern "C" { #endif -lean_object* l_Lean_Elab_mkMessage___at_Lean_Elab_Term_throwError___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getLevelNames(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___closed__4; lean_object* l_Lean_Elab_Term_elabChar(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_mkAppM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Term_6__isTypeApp_x3f(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkAppM(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Term_6__isTypeApp_x3f(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getEnv___rarg(lean_object*); uint8_t l___private_Lean_Elab_Term_4__hasCDot(lean_object*); extern lean_object* l_Lean_Name_toString___closed__1; -lean_object* l_Lean_Elab_Term_mkForall(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkForall(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabImplicitLambdaAux___closed__2; lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___closed__1; extern lean_object* l_Lean_Expr_prod_x3f___closed__2; @@ -33,8 +32,8 @@ extern lean_object* l_Lean_Closure_mkNewLevelParam___closed__2; lean_object* l___regBuiltin_Lean_Elab_Term_elabTypeStx___closed__1; lean_object* l_Lean_extractMacroScopes(lean_object*); lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___closed__8; -lean_object* l_Lean_Elab_Term_instantiateLevelMVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_MessageData_hasSyntheticSorry___main(lean_object*); +lean_object* l_Lean_Elab_Term_throwErrorAt___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabImplicitLambdaAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabStr(lean_object*); lean_object* l_Lean_Expr_mvarId_x21(lean_object*); @@ -50,24 +49,24 @@ lean_object* l_Lean_Elab_Term_elabNum___boxed(lean_object*, lean_object*, lean_o lean_object* l_Lean_Elab_Term_State_inhabited; lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Lean_mkSort(lean_object*); -lean_object* l_Lean_Elab_Term_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_instantiateMVars(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_20__resolveLocalNameAux___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___closed__9; -lean_object* l_Lean_Elab_Term_mkFreshExprMVar(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkFreshExprMVar(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Nat_HasQuote___closed__2; lean_object* l_unreachable_x21___rarg(lean_object*); extern lean_object* l_Lean_nullKind; lean_object* l_Lean_Meta_whnfForall(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabHole___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_monadLog___lambda__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkTermElabAttribute___closed__8; -lean_object* l_Lean_Elab_Term_isDefEqNoConstantApprox(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_isDefEqNoConstantApprox(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_MessageData_ofList___closed__3; lean_object* lean_array_uget(lean_object*, size_t); lean_object* l_Lean_Elab_Term_tryPostpone___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_inferType(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_inferType(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkTermElabAttribute___closed__7; lean_object* l_Lean_Elab_Term_assignExprMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_ppGoal___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getFVarLocalDecl_x21___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabUsingElabFns___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkTermElabAttribute___closed__3; @@ -92,17 +91,15 @@ lean_object* lean_local_ctx_mk_let_decl(lean_object*, lean_object*, lean_object* lean_object* l_Lean_Elab_Term_expandArrayLit___closed__7; lean_object* l_Lean_Elab_Term_getLocalInsts___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_resettingSynthInstanceCacheWhen___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_getPos___at_Lean_Elab_Term_throwError___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_15__tryCoeSort___closed__7; uint8_t l_List_elem___main___at_Lean_NameHashSet_insert___spec__2(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_18__mkPairsAux___main___closed__5; -lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_type___elambda__1___closed__2; extern lean_object* l_Prod_HasRepr___rarg___closed__1; -lean_object* l___private_Lean_Elab_Term_22__mkFreshLevelMVars(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Term_22__mkFreshLevelMVars(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabUsingElabFns___closed__2; lean_object* l_Lean_Elab_Term_elabQuotedName___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MacroScopesView_format(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_setMCtx___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Exception_toMessageData(lean_object*); @@ -128,45 +125,41 @@ extern lean_object* l_Lean_charLitKind___closed__2; lean_object* l_List_append___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_Exception_mkAppTypeMismatchMessage(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_throwUnsupportedSyntax___rarg___closed__1; -lean_object* l_Lean_Elab_Term_unfoldDefinition_x3f(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_unfoldDefinition_x3f(lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_AppBuilder_8__getDecLevel___closed__6; -lean_object* l_Lean_Elab_Term_mkForallUsedOnly___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___closed__6; -lean_object* l_Lean_Elab_Term_getDecLevel(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_getDecLevel(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_monadQuotation___closed__2; lean_object* l_Lean_Meta_instantiateLevelMVars(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkIdentFrom(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_declareBuiltinParser___closed__3; lean_object* l_Lean_Elab_Term_withoutPostponing(lean_object*); lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___closed__13; -lean_object* l_Lean_Elab_Term_decLevel(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Term_15__tryCoeSort(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_compileDecl(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_decLevel(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Term_15__tryCoeSort(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_compileDecl(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabRawStrLit___closed__2; lean_object* l_Lean_Elab_Term_elabParen___closed__3; lean_object* lean_local_ctx_find_from_user_name(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getMVarDecl(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_mkLambda(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Term_6__isTypeApp_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkLambda(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; lean_object* lean_expr_instantiate1(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_compileDecl___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Term_9__exceptionToSorry___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_compileDecl___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Literal_type___closed__3; lean_object* l___regBuiltin_Lean_Elab_Term_elabBadCDot___closed__1; lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_Lean_Elab_Term_mkAuxName___closed__3; lean_object* l_Lean_Elab_Term_resetSynthInstanceCache(lean_object*); -lean_object* l_Lean_Elab_Term_mkForallUsedOnly(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_inferType___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkForallUsedOnly(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_monadLog___closed__7; lean_object* l___private_Lean_Elab_Term_18__mkPairsAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabProp(lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); extern lean_object* l_Lean_Meta_Exception_toStr___closed__1; -lean_object* l_Lean_Elab_Term_ensureType(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_elabBadCDot___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_ensureType(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabBadCDot___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_15__tryCoeSort___closed__3; extern lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1___closed__2; lean_object* l_Lean_Expr_getAppFn___main(lean_object*); @@ -175,12 +168,13 @@ extern lean_object* l_String_splitAux___main___closed__1; lean_object* l_Lean_Elab_Term_logTrace___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_getAppArgs___closed__1; lean_object* l___private_Lean_Elab_Term_21__resolveLocalName___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_isTypeFormer(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_isTypeFormer(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withIncRecDepth(lean_object*); lean_object* l_Lean_Elab_Level_elabLevel(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_mkAuxName(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkAuxName(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_WHNF_unfoldDefinitionAux___at_Lean_Meta_unfoldDefinition_x3f___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabRawCharLit(lean_object*); +lean_object* l_Lean_Elab_Term_elabRawNumLit___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_List_repr___rarg___closed__3; extern lean_object* l_Lean_unitToExpr___lambda__1___closed__3; lean_object* l___private_Lean_Elab_Term_18__mkPairsAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -192,7 +186,7 @@ lean_object* l_Lean_Elab_Term_getMCtx(lean_object*); size_t l_USize_shiftRight(size_t, size_t); lean_object* l_Lean_Elab_Term_withLCtx___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_15__tryCoeSort___closed__5; -lean_object* l_Lean_Elab_Term_synthesizeInst(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_synthesizeInst(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_empty___at_Lean_Elab_Term_termElabAttribute___spec__3; lean_object* l_Lean_Elab_Term_monadLog___closed__10; lean_object* l_Lean_Elab_Term_resolveName___closed__6; @@ -205,7 +199,7 @@ lean_object* l_Lean_Elab_Term_dbgTrace___rarg(lean_object*, lean_object*, lean_o lean_object* l_Lean_Elab_Term_elabRawStrLit___closed__3; extern lean_object* l_Lean_Parser_Term_sort___elambda__1___closed__2; lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_withLetDecl___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_withLetDecl___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_assignExprMVar(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getMainModule___rarg(lean_object*); lean_object* l_Lean_Elab_Term_Exception_hasToString(lean_object*); @@ -213,49 +207,46 @@ lean_object* l_Lean_Elab_Term_elabParen___closed__5; lean_object* l_Lean_Elab_Term_mkTermElabAttribute___closed__5; extern lean_object* l_Lean_LocalContext_Inhabited___closed__1; lean_object* l_Lean_Elab_Term_resolveName___closed__5; -lean_object* l_Lean_Elab_Term_mkFreshExprMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Term_23__mkConsts___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkFreshExprMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_LVal_hasToString(lean_object*); lean_object* l_Lean_Elab_Term_elabImplicitLambda___main(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Lean_Elab_MonadMacroAdapter___closed__7; -lean_object* l_Lean_Elab_Term_trace___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkAppStx___closed__8; -lean_object* l_Lean_Elab_Term_elabBadCDot___closed__1; lean_object* l_Lean_Elab_Term_MetaHasEval___rarg___closed__6; extern lean_object* l_Lean_levelZero; -lean_object* l_Lean_Elab_Term_mkExpectedTypeHint(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkExpectedTypeHint(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_TermElabResult_inhabited___closed__1; lean_object* l_Lean_Elab_Term_expandCDot_x3f___closed__4; -lean_object* l___private_Lean_Elab_Term_3__fromMetaState(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Term_3__fromMetaState(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_findAtAux___main___at_Lean_Elab_Term_elabUsingElabFns___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_ppGoal(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkFreshInstanceName___rarg___closed__1; lean_object* l_Lean_Elab_Term_termElabAttribute___closed__2; -lean_object* l_Lean_Elab_Term_ensureHasType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_ensureHasType(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getTraceState(lean_object*); lean_object* l_Lean_SMap_empty___at_Lean_Elab_Term_termElabAttribute___spec__1; lean_object* l_Array_foldlStepMAux___main___at_Lean_Syntax_foldSepRevArgsM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_mkFreshTypeMVar(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Term_15__tryCoeSort___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Term_9__exceptionToSorry(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkFreshTypeMVar(uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Term_9__exceptionToSorry(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabTermAux___main___closed__1; lean_object* l_Lean_Elab_Term_withConfig(lean_object*); -lean_object* l___private_Lean_Elab_Term_7__isMonad_x3f(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Term_7__isMonad_x3f(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabBadCDot___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkFreshAnonymousIdent(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabParen___closed__2; -lean_object* l_Lean_Elab_Term_mkLet(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkLet(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabTermAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabImplicitLambdaAux(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_whnf(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_whnf(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_caseValueAux___lambda__2___closed__8; lean_object* l_Lean_Elab_Term_getOptions(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_monadLog___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_7__isMonad_x3f___closed__1; lean_object* l___private_Lean_Elab_Term_11__elabUsingElabFnsAux___main___closed__3; lean_object* l_Lean_Elab_Term_elabParen___closed__1; -lean_object* l_Lean_Elab_Term_addDecl(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_addDecl(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_24__regTraceClasses___closed__1; lean_object* l___private_Lean_Elab_Term_15__tryCoeSort___closed__1; extern lean_object* l_Lean_mkTermIdFromIdent___closed__2; @@ -263,7 +254,7 @@ lean_object* l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__ lean_object* l_Lean_Elab_Term_liftMetaM(lean_object*); extern lean_object* l_Lean_PersistentEnvExtension_inhabited___rarg___closed__1; lean_object* l___private_Lean_Elab_Term_7__isMonad_x3f___closed__2; -lean_object* l_Lean_Elab_Term_isTypeFormerType(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_isTypeFormerType(lean_object*, lean_object*, lean_object*); uint8_t lean_metavar_ctx_is_expr_assigned(lean_object*, lean_object*); extern lean_object* l_Lean_LocalContext_Inhabited___closed__2; lean_object* l_Lean_Meta_isClass(lean_object*, lean_object*, lean_object*); @@ -271,7 +262,6 @@ lean_object* l___regBuiltin_Lean_Elab_Term_elabHole(lean_object*); lean_object* l_Lean_Elab_Term_withTransparency(lean_object*); extern lean_object* l_Lean_Parser_Term_byTactic___elambda__1___closed__2; extern lean_object* l_Lean_Meta_run___rarg___closed__5; -lean_object* l___private_Lean_Elab_Term_7__isMonad_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Lean_Elab_MonadMacroAdapter___lambda__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withConfig___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_tryCoe___closed__4; @@ -279,14 +269,13 @@ lean_object* l_Lean_mkAuxDefinition(lean_object*, lean_object*, lean_object*, le lean_object* l_Lean_Elab_Term_mkFreshAnonymousName___boxed(lean_object*); extern lean_object* l_Lean_Meta_dbgTrace___rarg___closed__1; lean_object* l_Lean_Elab_Term_monadLog___closed__5; -lean_object* l_Lean_Elab_Term_withIncRecDepth___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_tryCoe(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_tryCoe(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_17__elabOptLevel___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_18__mkPairsAux___main___closed__3; lean_object* l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabParen___closed__4; +lean_object* l_Lean_Elab_Term_throwErrorAt(lean_object*); lean_object* l_Lean_Elab_Term_elabLevel(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_Exception_getRef(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabNamedHole(lean_object*); lean_object* l_Lean_Elab_Term_Lean_Elab_MonadMacroAdapter___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_monadLog___closed__1; @@ -294,14 +283,15 @@ lean_object* l___private_Lean_Elab_Term_18__mkPairsAux___main(lean_object*, lean lean_object* l_Lean_Syntax_isCharLit_x3f(lean_object*); lean_object* l_Array_isEqvAux___main___at_Lean_Elab_Term_withMVarContext___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlM___at___private_Lean_Elab_Term_3__fromMetaState___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlM___at___private_Lean_Elab_Term_3__fromMetaState___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___closed__5; lean_object* l_Lean_Elab_Term_elabRawCharLit(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_AppBuilder_8__getDecLevel___closed__3; -lean_object* l_Std_PersistentArray_foldlMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkFreshAnonymousName___rarg(lean_object*); lean_object* l_Lean_Elab_Term_MetaHasEval___rarg___closed__2; extern lean_object* l_Lean_Expr_Inhabited___closed__1; +lean_object* l_Lean_Elab_Term_throwErrorAt___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withMVarContext(lean_object*); lean_object* l_Lean_Elab_Term_termElabAttribute___closed__4; @@ -309,9 +299,8 @@ lean_object* l_Lean_Elab_Term_addContext___boxed(lean_object*, lean_object*, lea lean_object* l_Lean_Elab_Term_levelMVarToParam(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_Term_14__isLambdaWithImplicit___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabByTactic(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_observing(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_mkLet___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withoutMacroStackAtErr(lean_object*); lean_object* l_Lean_Elab_Term_withMacroExpansion(lean_object*); lean_object* l_Lean_Elab_Term_getTraceState___rarg(lean_object*); @@ -319,17 +308,14 @@ lean_object* l_Lean_Elab_Term_State_inhabited___closed__1; lean_object* l_Lean_Elab_Term_MetaHasEval___rarg___closed__4; extern lean_object* l_Lean_EnvExtension_Inhabited___rarg___closed__1; lean_object* l_Lean_Elab_Term_dbgTrace(lean_object*); -lean_object* l___private_Lean_Elab_Term_22__mkFreshLevelMVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_decLevel_x3f(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_decLevel_x3f(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_numLitKind; lean_object* l_Lean_Elab_Term_elabTermWithoutImplicitLambdas(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_levelMVarToParam(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkFreshFVarId___rarg(lean_object*); -lean_object* l_Lean_Elab_Term_mkLambda___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_getLevel(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_getLevel(lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_tryCoe___closed__1; -lean_object* l_Lean_Elab_Term_mkConst___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getCurrNamespace(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Lean_Elab_MonadMacroAdapter___lambda__3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(lean_object*); @@ -341,7 +327,7 @@ lean_object* l_Lean_Elab_Term_elabProp___rarg(lean_object*); lean_object* l_Lean_Syntax_isStrLit_x3f(lean_object*); lean_object* l___private_Lean_Elab_Term_15__tryCoeSort___closed__2; lean_object* l_Std_AssocList_find_x3f___main___at_Lean_Elab_Term_elabUsingElabFns___spec__6___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Term_23__mkConsts(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Term_23__mkConsts(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_termElabAttribute___closed__1; lean_object* l___private_Lean_Elab_Term_5__expandCDot___main___closed__3; lean_object* l_Lean_Elab_Term_mkFreshInstanceName(lean_object*); @@ -361,17 +347,18 @@ lean_object* l_Lean_Elab_Term_elabStr___boxed(lean_object*, lean_object*, lean_o lean_object* l_Lean_Elab_Term_Lean_Elab_MonadMacroAdapter___lambda__3___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_Term_14__isLambdaWithImplicit___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkConst___closed__2; -lean_object* l_Lean_Elab_Term_isType(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_isType(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_setEnv___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_5__expandCDot___main(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabQuotedName(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_tryLiftAndCoe___closed__1; lean_object* l_Lean_Elab_Term_TermElabM_inhabited(lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_foldlM___at___private_Lean_Elab_Term_3__fromMetaState___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_mkInstMVar(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlM___at___private_Lean_Elab_Term_3__fromMetaState___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkInstMVar(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getFVarLocalDecl_x21(lean_object*, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabTacticBlock___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_levelMVarToParam___lambda__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_SMap_empty___at_Lean_Elab_Term_termElabAttribute___spec__1___closed__1; lean_object* l_Lean_Elab_Term_withTransparency___rarg(uint8_t, lean_object*, lean_object*, lean_object*); @@ -395,13 +382,14 @@ lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Elab_Term_elabUsingElabFns___sp lean_object* l_Lean_Elab_Term_blockImplicitLambda___boxed(lean_object*); lean_object* l_Lean_Elab_Term_monadQuotation___closed__1; lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_Term_4__hasCDot___main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_mkAuxDefinition___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkAuxDefinition___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_5__expandCDot___main___closed__2; uint8_t l_Lean_Elab_Term_blockImplicitLambda(lean_object*); lean_object* l_Lean_Elab_Term_elabTypeStx(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_assignLevelMVar(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_findAux___main___at_Lean_Elab_Term_elabUsingElabFns___spec__3(lean_object*, size_t, lean_object*); lean_object* l_Lean_Elab_Term_throwTypeMismatchError___rarg___closed__3; +lean_object* l_Lean_Elab_mkMessage___at_Lean_Elab_Term_throwErrorAt___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Lean_Elab_MonadMacroAdapter___lambda__4(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_monadLog___closed__6; extern lean_object* l_Lean_strLitKind___closed__2; @@ -411,7 +399,7 @@ lean_object* l_Lean_Elab_Term_elabUsingElabFns___closed__1; lean_object* l_Lean_Elab_Term_withFreshMacroScope(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabByTactic___closed__1; lean_object* l_Lean_Elab_Term_resolveName___closed__7; -lean_object* l_Lean_Elab_Term_addDecl___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_addDecl___boxed(lean_object*, lean_object*, lean_object*); size_t l_Lean_Name_hash(lean_object*); lean_object* l_Lean_Elab_Term_elabTermAux___main(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_termElabAttribute___closed__3; @@ -421,12 +409,13 @@ lean_object* l_Lean_Elab_Term_State_inhabited___closed__2; lean_object* l_Lean_Elab_Term_elabUsingElabFns___closed__6; lean_object* l_Lean_Elab_Term_elabImplicitLambda(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_throwErrorIfErrors___closed__3; +lean_object* l_Lean_Elab_Term_getLocalDecl(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_getMacros(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandCDot_x3f___closed__3; lean_object* l_Lean_Elab_Term_logTrace(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_namedHole___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_Lean_Elab_MonadMacroAdapter___closed__12; -lean_object* l_Lean_Elab_Term_trySynthInstance(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_trySynthInstance(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_liftLevelM___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_explicitBinder___elambda__1___closed__2; lean_object* l___regBuiltin_Lean_Elab_Term_elabParen___closed__1; @@ -435,34 +424,31 @@ lean_object* l_Lean_Syntax_prettyPrint(lean_object*); lean_object* l_Lean_Elab_Term_Lean_Elab_MonadMacroAdapter; lean_object* l_Lean_Elab_Term_elabRawStrLit___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_mkHashMap___at_Lean_Elab_Term_termElabAttribute___spec__2(lean_object*); -lean_object* l_Lean_Elab_Term_whnfForall___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_instBinder___elambda__1___closed__1; lean_object* lean_name_mk_string(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_getLevel___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_List_repr___rarg___closed__2; -lean_object* l_Lean_Elab_Term_trySynthInstance___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_10__postponeElabTerm(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_isClass___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_throwError___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_throwError___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_log___at_Lean_Elab_Term_logTrace___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__5; lean_object* l_Lean_Elab_Term_monadLog___lambda__2___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_fun___elambda__1___closed__2; extern lean_object* l_Lean_Elab_Exception_hasToString___closed__1; lean_object* l___private_Lean_Elab_Term_5__expandCDot___main___closed__1; -lean_object* l_Lean_Elab_Term_resolveName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_resolveName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabRawNumLit(lean_object*); extern size_t l_Std_PersistentHashMap_insertAux___main___rarg___closed__2; lean_object* l_Lean_Elab_Term_elabProp___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_isEqvAux___main___at_Lean_Elab_Term_withLocalContext___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getCurrMacroScope(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_assignExpr(lean_object*, lean_object*, lean_object*); -lean_object* l_Nat_foldMAux___main___at___private_Lean_Elab_Term_22__mkFreshLevelMVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_mkMessageAt___at_Lean_Elab_Term_throwErrorAt___spec__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_foldMAux___main___at___private_Lean_Elab_Term_22__mkFreshLevelMVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withLocalContext(lean_object*); uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_applyResult___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_monadQuotation___closed__4; -lean_object* l_Lean_Elab_Term_withLocalDecl___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_withLocalDecl___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; lean_object* l_Lean_Elab_Term_getMainModule(lean_object*); extern lean_object* l_Lean_Meta_withIncRecDepth___rarg___closed__2; @@ -475,7 +461,7 @@ lean_object* l_Lean_Elab_Term_MetaHasEval___rarg___lambda__1(lean_object*, lean_ lean_object* l_Lean_Elab_Term_elabTacticBlock___closed__2; extern lean_object* l_Lean_Parser_Term_fun___elambda__1___closed__1; lean_object* l_Lean_Elab_Term_monadLog___lambda__1(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_mkAppM___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkAppM___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getCurrMacroScope___boxed(lean_object*, lean_object*); extern lean_object* l_Lean_mkAppStx___closed__6; lean_object* l_Lean_Meta_isTypeFormerType___main(lean_object*, lean_object*, lean_object*); @@ -501,25 +487,23 @@ lean_object* l_Lean_Elab_addMacroStack(lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_toExpr(lean_object*); extern lean_object* l_Lean_firstFrontendMacroScope; lean_object* l_Lean_Elab_Term_elabTermAux(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_isLevelDefEq___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_termElabAttribute___closed__5; lean_object* l_Lean_Elab_Term_expandArrayLit___closed__8; lean_object* l_Lean_Elab_mkElabAttribute___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabRawNumLit___closed__1; lean_object* l_Lean_Meta_mkFreshId___rarg(lean_object*); -lean_object* l_Std_PersistentArray_foldlMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_mkMessageAt___at_Lean_Elab_Term_throwError___spec__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_getCurrRef___boxed(lean_object*, lean_object*); +lean_object* l_Std_PersistentArray_foldlMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___spec__2___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_mkMessage___at_Lean_Elab_Term_throwErrorAt___spec__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_expandListLit___closed__1; -lean_object* l_Lean_Elab_Term_whnfCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getCurrNamespace___boxed(lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Util_4__regTraceClasses___closed__1; -lean_object* l___private_Lean_Elab_Term_1__mkMessageAux(lean_object*, lean_object*, lean_object*, uint8_t); +lean_object* l___private_Lean_Elab_Term_1__mkMessageAux(lean_object*, lean_object*, uint8_t); lean_object* l_Lean_Elab_Term_getLocalInsts(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkFreshInstanceName___rarg(lean_object*); lean_object* l_Lean_Meta_whnf(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Lean_Elab_MonadMacroAdapter___lambda__4___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_isTypeFormerType___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_isClass(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_isClass(lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_bind___at_Lean_Elab_Term_monadLog___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_TermElabResult_inhabited; @@ -537,11 +521,11 @@ lean_object* l_Lean_Elab_Term_elabRawNumLit(lean_object*, lean_object*, lean_obj lean_object* l_Lean_SMap_find_x3f___at_Lean_Elab_Term_elabUsingElabFns___spec__1(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_expandListLit(lean_object*); extern lean_object* l_Lean_PersistentEnvExtension_inhabited___rarg___closed__3; -lean_object* l_Lean_Elab_Term_tryLiftAndCoe(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_tryLiftAndCoe(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_15__tryCoeSort___closed__4; lean_object* l_Lean_Elab_Term_Lean_Elab_MonadMacroAdapter___lambda__1___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_cdot___elambda__1___closed__2; -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_throwTypeMismatchError(lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabSort(lean_object*); @@ -550,7 +534,7 @@ lean_object* l_Lean_Elab_Term_throwUnsupportedSyntax(lean_object*, lean_object*) lean_object* l_Std_AssocList_find_x3f___main___at_Lean_Elab_Term_elabUsingElabFns___spec__6(lean_object*, lean_object*); size_t l_USize_land(size_t, size_t); extern lean_object* l_Lean_String_HasQuote___closed__2; -lean_object* l_Lean_Elab_Term_mkConst(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkConst(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandArrayLit___closed__2; lean_object* l_Lean_Elab_Term_mkConst___closed__3; lean_object* l_Lean_Elab_Term_resolveName___closed__4; @@ -559,7 +543,6 @@ uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_Term_14__isLambdaWi lean_object* l_Lean_Elab_Term_throwTypeMismatchError___rarg___closed__2; lean_object* l_Lean_Elab_Term_expandListLit___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabNamedHole___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_synthesizeInst___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_termElabAttribute; lean_object* l_Lean_Elab_Term_expandCDot_x3f___closed__1; lean_object* l_Lean_Elab_Term_Lean_Elab_MonadMacroAdapter___closed__2; @@ -570,7 +553,7 @@ lean_object* l_Lean_Elab_Term_logDbgTrace___closed__1; lean_object* l___private_Lean_Elab_Term_19__elabCDot(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getDeclName_x3f___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_isDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_isDefEq(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___closed__10; lean_object* l_Std_PersistentArray_forM___at___private_Lean_Parser_Module_4__testModuleParserAux___main___spec__6(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Lean_Elab_MonadMacroAdapter___closed__5; @@ -588,23 +571,22 @@ lean_object* l_Lean_Elab_Term_withoutPostponing___rarg(lean_object*, lean_object extern lean_object* l_Lean_Parser_Term_prop___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_savingMCtx(lean_object*); lean_object* l_Lean_Elab_Term_Exception_inhabited; -lean_object* l_Lean_Elab_Term_elabHole(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabHole(lean_object*); extern lean_object* l_Lean_Meta_assertExt___lambda__1___closed__1; extern lean_object* l_Lean_Syntax_inhabited; lean_object* l___regBuiltin_Lean_Elab_Term_elabNamedHole___closed__1; -lean_object* l_Lean_Elab_Term_elabBadCDot___closed__2; lean_object* l___regBuiltin_Lean_Elab_Term_elabRawStrLit(lean_object*); -lean_object* l_Lean_Elab_Term_liftMetaM___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_withRef(lean_object*); lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_trySynthInstance(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkAppStx___closed__5; lean_object* l___private_Lean_Elab_Term_10__postponeElabTerm___closed__2; extern lean_object* l_Lean_Expr_listLitAux___main___closed__6; lean_object* l_Lean_Elab_Term_MetaHasEval___rarg(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); -lean_object* l_Lean_Elab_Term_isLevelDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_isTypeFormer___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_isLevelDefEq(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_WHNF_whnfCore___main___at_Lean_Meta_whnfCore___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_16__mkAuxNameAux___main(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabBadCDot___rarg___closed__3; lean_object* l_Lean_Elab_Term_setMCtx(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabStr(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_macroAttribute; @@ -613,6 +595,7 @@ lean_object* l_Lean_mkLevelSucc(lean_object*); lean_object* l_Lean_Elab_Term_getLCtx(lean_object*, lean_object*); uint8_t l___private_Lean_Elab_Term_4__hasCDot___main(lean_object*); lean_object* l_Lean_Elab_Term_traceAtCmdPos(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_getLocalDecl(lean_object*, lean_object*, lean_object*); lean_object* lean_environment_main_module(lean_object*); lean_object* l_Lean_Elab_Term_elabTacticBlock___closed__3; extern lean_object* l_Std_PersistentArray_empty___closed__3; @@ -622,28 +605,26 @@ lean_object* l_Lean_Elab_Term_TermElabM_inhabited___rarg(lean_object*); uint8_t l_Lean_Expr_isMVar(lean_object*); lean_object* l_Lean_Elab_Term_monadLog___closed__9; lean_object* l_Lean_Meta_mkFreshExprMVar(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkConst___closed__5; lean_object* l_Lean_mkApp(lean_object*, lean_object*); extern lean_object* l_Lean_SourceInfo_inhabited___closed__1; lean_object* l_Lean_getMaxRecDepth(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabChar(lean_object*); lean_object* l_Lean_Elab_Term_elabUsingElabFns(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_throwError___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_MetaHasEval___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabHole___closed__1; lean_object* l_Lean_Syntax_isTermId_x3f(lean_object*, uint8_t); -lean_object* l_Lean_Elab_Term_ensureType___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArgs(lean_object*); uint8_t l_Lean_BinderInfo_isExplicit(uint8_t); -lean_object* l_Lean_Elab_Term_registerSyntheticMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_registerSyntheticMVar(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getKind(lean_object*); lean_object* l_Lean_Elab_Term_expandArrayLit(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabSort___closed__1; lean_object* l___private_Lean_Elab_Term_4__hasCDot___boxed(lean_object*); lean_object* l_Lean_Elab_Term_Lean_Elab_MonadMacroAdapter___closed__9; lean_object* l_ReaderT_bind___at_Lean_Elab_Term_monadLog___spec__2(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withTransparency___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isLevelDefEq(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_assignLevelMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -653,43 +634,40 @@ lean_object* lean_metavar_ctx_assign_level(lean_object*, lean_object*, lean_obje lean_object* l___private_Lean_Elab_Term_11__elabUsingElabFnsAux(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_tryLiftAndCoe___closed__6; lean_object* l_Lean_Elab_Term_savingMCtx___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_decLevel_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Std_PersistentHashMap_mkCollisionNode___rarg___closed__1; lean_object* l_Lean_Elab_Term_mkFreshFVarId___boxed(lean_object*); lean_object* l_Lean_Elab_Term_elabImplicitLambda___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_log___at_Lean_Elab_Term_logTrace___spec__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabNamedHole(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_getPos___at_Lean_Elab_Term_throwError___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_toExprAux___main(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabBadCDot(lean_object*); lean_object* l_Lean_Elab_Term_elabUsingElabFns___closed__3; lean_object* l_Lean_Elab_Term_elabTerm___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_withRef___rarg(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Elab_Term_14__isLambdaWithImplicit(lean_object*); extern lean_object* l_Lean_EnvExtension_setState___closed__1; lean_object* l_Lean_Elab_Term_liftLevelM___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_modifyEnv(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_tryPostponeIfMVar___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_lift___at_Lean_Elab_Term_Lean_Elab_MonadMacroAdapter___spec__1(lean_object*); -lean_object* l_Lean_Elab_Term_whnfCore(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_whnfCore(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_monadLog___lambda__4___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Init_Util_1__mkPanicMessage___closed__2; -lean_object* l___private_Lean_Elab_Term_1__mkMessageAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Term_1__mkMessageAux___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_resettingSynthInstanceCacheWhen___rarg(uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_modifyEnv___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Term_logTrace___spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_Term_4__hasCDot___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_resolveGlobalName___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_getCurrRef(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandArrayLit___closed__6; lean_object* l___regBuiltin_Lean_Elab_Term_elabProp___closed__1; lean_object* l_Lean_Elab_Term_mkConst___closed__1; lean_object* l_Lean_Elab_Term_isExprMVarAssigned(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_whnf___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_elabHole___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabHole___boxed(lean_object*); extern lean_object* l___private_Lean_Meta_LevelDefEq_10__processPostponedStep___closed__1; -lean_object* l_Lean_Elab_Term_unfoldDefinition_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_evalNat___main___closed__8; lean_object* l_Lean_Elab_Term_mkExplicitBinder(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_isDefEqNoConstantApprox___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabSort(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Elab_Term_levelMVarToParam___lambda__1(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_16__mkAuxNameAux(lean_object*, lean_object*, lean_object*); @@ -700,23 +678,21 @@ lean_object* l_Lean_Elab_Term_tryPostponeIfMVar(lean_object*, lean_object*, lean lean_object* l_Lean_Elab_Term_elabImplicitLambda___main___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_evalNat___main___closed__7; lean_object* l_Lean_Syntax_getPos(lean_object*); -lean_object* l_Lean_Elab_Term_mkExpectedTypeHint___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_withIncRecDepth___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_withIncRecDepth___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_4__hasCDot___main___boxed(lean_object*); lean_object* l_Lean_Elab_Term_elabType(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabQuotedName(lean_object*); lean_object* l_Lean_mkForall(lean_object*, uint8_t, lean_object*, lean_object*); extern lean_object* l_Lean_mkAppStx___closed__9; -lean_object* l_Lean_Elab_Term_whnfForall(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_instantiateMVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_getDecLevel___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_whnfForall(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_mkMessageAt___at_Lean_Elab_Term_throwErrorAt___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withFreshMacroScope___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__2; uint8_t l_Lean_Syntax_isNone(lean_object*); extern lean_object* l_Lean_TraceState_Inhabited___closed__1; lean_object* l_Lean_Meta_inferType(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_resetSynthInstanceCache___rarg(lean_object*); -lean_object* l___private_Lean_Elab_Term_8__tryPureCoe_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Term_8__tryPureCoe_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getEnv(lean_object*); lean_object* l_Lean_Elab_Term_getOpenDecls(lean_object*, lean_object*); @@ -729,11 +705,11 @@ extern lean_object* l_Lean_mkOptionalNode___closed__1; extern lean_object* l_Lean_prodToExpr___rarg___lambda__1___closed__3; lean_object* l_Lean_Elab_Term_logDbgTrace(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_isNameLit_x3f(lean_object*); -lean_object* l_Lean_Elab_Term_mkFreshExprMVarWithId___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkFreshExprMVarWithId___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getMainModule___boxed(lean_object*); lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___closed__12; lean_object* l_Lean_Meta_mkLambda(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_mkFreshExprMVarWithId(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkFreshExprMVarWithId(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Lean_Elab_MonadMacroAdapter___closed__3; extern lean_object* l_Lean_KernelException_toMessageData___closed__12; lean_object* l_Lean_Elab_Term_monadLog___closed__11; @@ -747,16 +723,15 @@ lean_object* l_Lean_Elab_Term_elabImplicitLambda___boxed(lean_object*, lean_obje lean_object* l_Lean_Elab_Term_mkTermElabAttribute___closed__6; uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); lean_object* l_Lean_PersistentEnvExtension_getState___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Elab_getPos___at_Lean_Elab_Term_throwErrorAt___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabByTactic___closed__3; lean_object* l_Lean_Elab_Term_resolveGlobalName(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_withLetDecl___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_mkMessage___at_Lean_Elab_Term_throwError___spec__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getOpenDecls___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getTraceState___boxed(lean_object*); -lean_object* l_List_foldlM___main___at___private_Lean_Elab_Term_23__mkConsts___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_throwTypeMismatchError___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldlM___main___at___private_Lean_Elab_Term_23__mkConsts___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_throwTypeMismatchError___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withLetDecl(lean_object*); -lean_object* l_Lean_Elab_Term_mkFreshLevelMVar(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkFreshLevelMVar(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_expandArrayLit___closed__1; lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__4; lean_object* l_Lean_Elab_Term_withoutMacroStackAtErr___rarg(lean_object*, lean_object*, lean_object*); @@ -764,31 +739,29 @@ extern lean_object* l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer_ lean_object* l_Lean_Elab_Term_resettingSynthInstanceCache___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkHole___closed__2; lean_object* l_Lean_Elab_Term_withLocalDecl(lean_object*); +lean_object* l_Lean_Elab_Term_elabByTactic___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_resolveName___closed__2; extern lean_object* l_Lean_Expr_arrayLit_x3f___closed__2; -lean_object* l_Lean_Elab_Term_withLocalDecl___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_withLocalDecl___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkPairs___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___closed__11; lean_object* l_Lean_Elab_Term_getLevelNames___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_isDefEq___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_decLevel___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getLCtx___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_mkFreshLevelMVar___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabByTactic___closed__1; -lean_object* l_Lean_Elab_Term_ppGoal(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_ppGoal(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkExpectedTypeHint(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_setTraceState(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_tryPostpone(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkPairs(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_throwErrorIfErrors(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_monadLog___lambda__3(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_mkAuxDefinition(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkAuxDefinition(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_10__postponeElabTerm___closed__1; lean_object* l___private_Lean_Elab_Term_15__tryCoeSort___closed__6; lean_object* l_Lean_Elab_Term_monadQuotation___closed__3; -lean_object* l_Nat_foldMAux___main___at___private_Lean_Elab_Term_22__mkFreshLevelMVars___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_foldMAux___main___at___private_Lean_Elab_Term_22__mkFreshLevelMVars___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_setEnv(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkFreshLevelMVar___rarg(lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); extern lean_object* l_Lean_MetavarContext_Inhabited___closed__1; @@ -796,7 +769,6 @@ lean_object* l_Lean_Elab_Term_elabTacticBlock(lean_object*, lean_object*, lean_o extern lean_object* l_Lean_mkOptionalNode___closed__2; lean_object* l_Lean_Elab_Term_monadLog___lambda__4(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabNum(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Term_2__fromMetaException___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Unhygienic_run___rarg___closed__1; extern lean_object* l_Lean_Meta_rewriteCore___lambda__1___closed__5; lean_object* l_Lean_mkNatLit(lean_object*); @@ -816,12 +788,10 @@ lean_object* l_Lean_MetavarContext_getDecl(lean_object*, lean_object*); lean_object* l_Lean_Syntax_formatStxAux___main(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_resetSynthInstanceCache___boxed(lean_object*); uint8_t l_Std_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(lean_object*); -lean_object* l___private_Lean_Elab_Term_3__fromMetaState___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_12__isExplicit___boxed(lean_object*); lean_object* l_Lean_Elab_Term_Lean_Elab_MonadMacroAdapter___lambda__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Lean_Elab_MonadMacroAdapter___closed__1; lean_object* l_Lean_Elab_Term_elabRawCharLit___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_isType___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabChar___closed__1; uint8_t l_List_isEmpty___rarg(lean_object*); @@ -834,7 +804,7 @@ lean_object* l_Lean_Name_toStringWithSep___main(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_18__mkPairsAux___main___closed__2; lean_object* l_Lean_Meta_isTypeFormer(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_MetaHasEval___rarg___closed__3; -lean_object* l_Lean_Elab_Term_mkTacticMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkTacticMVar(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabRawStrLit___closed__1; lean_object* lean_usize_to_nat(size_t); extern lean_object* l_Lean_Elab_mkMacroAttribute___closed__2; @@ -842,24 +812,23 @@ lean_object* l_Lean_Elab_Term_expandArrayLit___closed__3; uint8_t l_Array_isEqvAux___main___at_Lean_Elab_Term_withMVarContext___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_lift___at_Lean_Elab_Term_Lean_Elab_MonadMacroAdapter___spec__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Message_toString(lean_object*); -lean_object* l_Lean_Elab_Term_mkAuxName___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_char___elambda__1___closed__2; lean_object* l___private_Lean_Elab_Term_11__elabUsingElabFnsAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_getPos___at_Lean_Elab_Term_throwErrorAt___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_isLocalTermId_x3f(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(lean_object*); lean_object* l_Lean_Elab_Term_MetaHasEval___rarg___closed__5; lean_object* l_Lean_indentExpr(lean_object*); lean_object* l___private_Lean_Elab_Term_18__mkPairsAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Lean_Elab_MonadMacroAdapter___closed__8; -lean_object* l_Lean_Elab_Term_trace(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_trace(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_isEqvAux___main___at_Lean_Elab_Term_withLocalContext___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabRawCharLit___closed__2; lean_object* l_Lean_Elab_Term_mkFreshInstanceName___boxed(lean_object*); lean_object* l_Lean_Meta_mkFreshExprMVarWithId(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_11__elabUsingElabFnsAux___main___closed__2; -lean_object* l_Lean_Elab_Term_resolveName___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Term_2__fromMetaException(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Term_2__fromMetaException(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_18__mkPairsAux___main___closed__1; lean_object* l_Lean_Elab_Term_resolveName___closed__1; lean_object* l_Lean_Elab_Term_mkAuxName___closed__1; @@ -867,37 +836,34 @@ lean_object* l_Lean_Elab_Term_resettingSynthInstanceCache(lean_object*); lean_object* l_Lean_Elab_Term_MetaHasEval(lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); extern lean_object* l_Lean_MessageData_Inhabited___closed__1; -lean_object* l_Lean_Elab_Term_registerSyntheticMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_registerSyntheticMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withReducible___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_instantiateLevelMVars(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_ensureHasTypeAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_instantiateLevelMVars(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_ensureHasTypeAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_tryLiftAndCoe___closed__5; lean_object* l_Lean_Elab_Term_tryPostponeIfNoneOrMVar___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_uint32_to_nat(uint32_t); lean_object* l_Lean_Elab_Term_throwTypeMismatchError___rarg___closed__1; lean_object* l___private_Lean_Elab_Term_17__elabOptLevel(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkTacticMVar___closed__1; -lean_object* l_Lean_Elab_Term_throwTypeMismatchError___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldlM___main___at___private_Lean_Elab_Term_23__mkConsts___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_throwTypeMismatchError___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_Elab_Term_expandListLit___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_PersistentEnvExtension_inhabited___rarg___closed__4; extern lean_object* l_Lean_Meta_mkSorry___closed__2; extern lean_object* l_EStateM_MonadState___closed__2; extern lean_object* l_Lean_Parser_Term_arrayLit___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_getOptions___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_elabBadCDot___closed__3; lean_object* l_Lean_Elab_Term_tryLiftAndCoe___closed__7; -lean_object* l_Lean_Elab_mkMessageAt___at_Lean_Elab_Term_throwError___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_name_mk_numeral(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandListLit(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_mkForall___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_monadLog; lean_object* l_Lean_Elab_Term_getMCtx___rarg(lean_object*); lean_object* l_Lean_Elab_Term_Lean_Elab_MonadMacroAdapter___closed__4; lean_object* l_Lean_Elab_Term_monadLog___closed__4; +lean_object* l_Lean_Elab_Term_elabBadCDot___rarg___closed__1; lean_object* l_Lean_Meta_isType(lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Elab_Term_elabUsingElabFns___spec__5___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_liftMetaM___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_liftMetaM___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkTermElabAttribute___closed__1; lean_object* l_Lean_Elab_Term_mkFreshInstanceName___rarg___closed__2; lean_object* l_Lean_Elab_Term_elabTermWithoutImplicitLambdas___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -908,8 +874,9 @@ lean_object* l_Lean_Elab_Term_monadLog___lambda__2(lean_object*, lean_object*, l lean_object* l_Lean_Elab_Term_isLocalTermId_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandCDot_x3f(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_NameGenerator_Inhabited___closed__3; -lean_object* l_Lean_Elab_Term_mkFreshTypeMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_elabBadCDot(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkFreshTypeMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabBadCDot___rarg___closed__2; +lean_object* l_Lean_Elab_Term_elabBadCDot(lean_object*, lean_object*); lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_5__expandCDot(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkAuxName___closed__2; @@ -2251,7 +2218,97 @@ lean_dec(x_2); return x_4; } } -lean_object* l_Lean_Elab_getPos___at_Lean_Elab_Term_throwError___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Elab_Term_withRef___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_3); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; +x_6 = lean_ctor_get(x_3, 10); +lean_dec(x_6); +lean_ctor_set(x_3, 10, x_1); +x_7 = lean_apply_2(x_2, x_3, x_4); +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; uint8_t x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; +x_8 = lean_ctor_get(x_3, 0); +x_9 = lean_ctor_get(x_3, 1); +x_10 = lean_ctor_get(x_3, 2); +x_11 = lean_ctor_get(x_3, 3); +x_12 = lean_ctor_get(x_3, 4); +x_13 = lean_ctor_get(x_3, 5); +x_14 = lean_ctor_get(x_3, 6); +x_15 = lean_ctor_get(x_3, 7); +x_16 = lean_ctor_get(x_3, 8); +x_17 = lean_ctor_get(x_3, 9); +x_18 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_19 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_20 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +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_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_dec(x_3); +x_21 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_21, 0, x_8); +lean_ctor_set(x_21, 1, x_9); +lean_ctor_set(x_21, 2, x_10); +lean_ctor_set(x_21, 3, x_11); +lean_ctor_set(x_21, 4, x_12); +lean_ctor_set(x_21, 5, x_13); +lean_ctor_set(x_21, 6, x_14); +lean_ctor_set(x_21, 7, x_15); +lean_ctor_set(x_21, 8, x_16); +lean_ctor_set(x_21, 9, x_17); +lean_ctor_set(x_21, 10, x_1); +lean_ctor_set_uint8(x_21, sizeof(void*)*11, x_18); +lean_ctor_set_uint8(x_21, sizeof(void*)*11 + 1, x_19); +lean_ctor_set_uint8(x_21, sizeof(void*)*11 + 2, x_20); +x_22 = lean_apply_2(x_2, x_21, x_4); +return x_22; +} +} +} +lean_object* l_Lean_Elab_Term_withRef(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withRef___rarg), 4, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_getCurrRef(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; +x_3 = lean_ctor_get(x_1, 10); +lean_inc(x_3); +x_4 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_4, 0, x_3); +lean_ctor_set(x_4, 1, x_2); +return x_4; +} +} +lean_object* l_Lean_Elab_Term_getCurrRef___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Elab_Term_getCurrRef(x_1, x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l_Lean_Elab_getPos___at_Lean_Elab_Term_throwErrorAt___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; @@ -2279,7 +2336,7 @@ return x_8; } } } -lean_object* l_Lean_Elab_mkMessageAt___at_Lean_Elab_Term_throwError___spec__3(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_Elab_mkMessageAt___at_Lean_Elab_Term_throwErrorAt___spec__3(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { if (lean_obj_tag(x_3) == 0) @@ -2391,11 +2448,11 @@ return x_37; } } } -lean_object* l_Lean_Elab_mkMessage___at_Lean_Elab_Term_throwError___spec__1(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_Elab_mkMessage___at_Lean_Elab_Term_throwErrorAt___spec__1(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_6 = l_Lean_Elab_getPos___at_Lean_Elab_Term_throwError___spec__2(x_3, x_4, x_5); +x_6 = l_Lean_Elab_getPos___at_Lean_Elab_Term_throwErrorAt___spec__2(x_3, x_4, x_5); x_7 = lean_ctor_get(x_6, 0); lean_inc(x_7); x_8 = lean_ctor_get(x_6, 1); @@ -2403,11 +2460,11 @@ lean_inc(x_8); lean_dec(x_6); x_9 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_9, 0, x_7); -x_10 = l_Lean_Elab_mkMessageAt___at_Lean_Elab_Term_throwError___spec__3(x_1, x_2, x_9, x_4, x_8); +x_10 = l_Lean_Elab_mkMessageAt___at_Lean_Elab_Term_throwErrorAt___spec__3(x_1, x_2, x_9, x_4, x_8); return x_10; } } -lean_object* l_Lean_Elab_Term_throwError___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Term_throwErrorAt___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; uint8_t x_7; @@ -2415,13 +2472,13 @@ x_5 = lean_ctor_get(x_3, 8); lean_inc(x_5); lean_inc(x_5); x_6 = l_Lean_Elab_getBetterRef(x_1, x_5); -x_7 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); +x_7 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); if (x_7 == 0) { uint8_t x_8; lean_object* x_9; uint8_t x_10; lean_dec(x_5); x_8 = 2; -x_9 = l_Lean_Elab_mkMessage___at_Lean_Elab_Term_throwError___spec__1(x_2, x_8, x_6, x_3, x_4); +x_9 = l_Lean_Elab_mkMessage___at_Lean_Elab_Term_throwErrorAt___spec__1(x_2, x_8, x_6, x_3, x_4); lean_dec(x_6); x_10 = !lean_is_exclusive(x_9); if (x_10 == 0) @@ -2459,7 +2516,7 @@ else lean_object* x_19; uint8_t x_20; lean_object* x_21; uint8_t x_22; x_19 = l_Lean_Elab_addMacroStack(x_2, x_5); x_20 = 2; -x_21 = l_Lean_Elab_mkMessage___at_Lean_Elab_Term_throwError___spec__1(x_19, x_20, x_6, x_3, x_4); +x_21 = l_Lean_Elab_mkMessage___at_Lean_Elab_Term_throwErrorAt___spec__1(x_19, x_20, x_6, x_3, x_4); lean_dec(x_6); x_22 = !lean_is_exclusive(x_21); if (x_22 == 0) @@ -2494,54 +2551,77 @@ return x_30; } } } -lean_object* l_Lean_Elab_Term_throwError(lean_object* x_1) { +lean_object* l_Lean_Elab_Term_throwErrorAt(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_throwError___rarg___boxed), 4, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_throwErrorAt___rarg___boxed), 4, 0); return x_2; } } -lean_object* l_Lean_Elab_getPos___at_Lean_Elab_Term_throwError___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Elab_getPos___at_Lean_Elab_Term_throwErrorAt___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_Elab_getPos___at_Lean_Elab_Term_throwError___spec__2(x_1, x_2, x_3); +x_4 = l_Lean_Elab_getPos___at_Lean_Elab_Term_throwErrorAt___spec__2(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -lean_object* l_Lean_Elab_mkMessageAt___at_Lean_Elab_Term_throwError___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* l_Lean_Elab_mkMessageAt___at_Lean_Elab_Term_throwErrorAt___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { uint8_t x_6; lean_object* x_7; x_6 = lean_unbox(x_2); lean_dec(x_2); -x_7 = l_Lean_Elab_mkMessageAt___at_Lean_Elab_Term_throwError___spec__3(x_1, x_6, x_3, x_4, x_5); +x_7 = l_Lean_Elab_mkMessageAt___at_Lean_Elab_Term_throwErrorAt___spec__3(x_1, x_6, x_3, x_4, x_5); return x_7; } } -lean_object* l_Lean_Elab_mkMessage___at_Lean_Elab_Term_throwError___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* l_Lean_Elab_mkMessage___at_Lean_Elab_Term_throwErrorAt___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { uint8_t x_6; lean_object* x_7; x_6 = lean_unbox(x_2); lean_dec(x_2); -x_7 = l_Lean_Elab_mkMessage___at_Lean_Elab_Term_throwError___spec__1(x_1, x_6, x_3, x_4, x_5); +x_7 = l_Lean_Elab_mkMessage___at_Lean_Elab_Term_throwErrorAt___spec__1(x_1, x_6, x_3, x_4, x_5); lean_dec(x_3); return x_7; } } -lean_object* l_Lean_Elab_Term_throwError___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Term_throwErrorAt___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Elab_Term_throwError___rarg(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Elab_Term_throwErrorAt___rarg(x_1, x_2, x_3, x_4); lean_dec(x_1); return x_5; } } +lean_object* l_Lean_Elab_Term_throwError___rarg(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; +x_4 = l_Lean_Elab_Term_getCurrRef(x_2, x_3); +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_4, 1); +lean_inc(x_6); +lean_dec(x_4); +x_7 = l_Lean_Elab_Term_throwErrorAt___rarg(x_5, x_1, x_2, x_6); +lean_dec(x_5); +return x_7; +} +} +lean_object* l_Lean_Elab_Term_throwError(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_throwError___rarg), 3, 0); +return x_2; +} +} lean_object* _init_l_Lean_Elab_Term_throwUnsupportedSyntax___rarg___closed__1() { _start: { @@ -2580,42 +2660,44 @@ lean_dec(x_2); return x_3; } } -lean_object* l_Lean_Elab_Term_withIncRecDepth___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Term_withIncRecDepth___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; uint8_t x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; -x_5 = lean_ctor_get(x_3, 0); +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; uint8_t x_14; uint8_t x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; +x_4 = lean_ctor_get(x_2, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_2, 1); lean_inc(x_5); -x_6 = lean_ctor_get(x_3, 1); +x_6 = lean_ctor_get(x_2, 2); lean_inc(x_6); -x_7 = lean_ctor_get(x_3, 2); +x_7 = lean_ctor_get(x_2, 3); lean_inc(x_7); -x_8 = lean_ctor_get(x_3, 3); +x_8 = lean_ctor_get(x_2, 4); lean_inc(x_8); -x_9 = lean_ctor_get(x_3, 4); +x_9 = lean_ctor_get(x_2, 5); lean_inc(x_9); -x_10 = lean_ctor_get(x_3, 5); +x_10 = lean_ctor_get(x_2, 6); lean_inc(x_10); -x_11 = lean_ctor_get(x_3, 6); +x_11 = lean_ctor_get(x_2, 7); lean_inc(x_11); -x_12 = lean_ctor_get(x_3, 7); +x_12 = lean_ctor_get(x_2, 8); lean_inc(x_12); -x_13 = lean_ctor_get(x_3, 8); +x_13 = lean_ctor_get(x_2, 9); lean_inc(x_13); -x_14 = lean_ctor_get(x_3, 9); -lean_inc(x_14); -x_15 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); -x_16 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); -x_17 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); -x_18 = lean_ctor_get(x_5, 3); +x_14 = lean_ctor_get_uint8(x_2, sizeof(void*)*11); +x_15 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 1); +x_16 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 2); +x_17 = lean_ctor_get(x_2, 10); +lean_inc(x_17); +x_18 = lean_ctor_get(x_4, 3); lean_inc(x_18); -x_19 = lean_ctor_get(x_5, 4); +x_19 = lean_ctor_get(x_4, 4); lean_inc(x_19); x_20 = lean_nat_dec_eq(x_18, x_19); if (x_20 == 0) { -lean_dec(x_3); -x_21 = x_4; +lean_dec(x_2); +x_21 = x_3; goto block_37; } else @@ -2623,7 +2705,7 @@ else lean_object* x_38; lean_object* x_39; uint8_t x_40; lean_dec(x_19); lean_dec(x_18); -lean_dec(x_14); +lean_dec(x_17); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -2633,9 +2715,10 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_2); +lean_dec(x_4); +lean_dec(x_1); x_38 = l_Lean_Meta_withIncRecDepth___rarg___closed__2; -x_39 = l_Lean_Elab_Term_throwError___rarg(x_1, x_38, x_3, x_4); +x_39 = l_Lean_Elab_Term_throwError___rarg(x_38, x_2, x_3); x_40 = !lean_is_exclusive(x_39); if (x_40 == 0) { @@ -2658,45 +2741,46 @@ return x_43; block_37: { uint8_t x_22; -x_22 = !lean_is_exclusive(x_5); +x_22 = !lean_is_exclusive(x_4); if (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; -x_23 = lean_ctor_get(x_5, 4); +x_23 = lean_ctor_get(x_4, 4); lean_dec(x_23); -x_24 = lean_ctor_get(x_5, 3); +x_24 = lean_ctor_get(x_4, 3); lean_dec(x_24); x_25 = lean_unsigned_to_nat(1u); x_26 = lean_nat_add(x_18, x_25); lean_dec(x_18); -lean_ctor_set(x_5, 3, x_26); -x_27 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_27, 0, x_5); -lean_ctor_set(x_27, 1, x_6); -lean_ctor_set(x_27, 2, x_7); -lean_ctor_set(x_27, 3, x_8); -lean_ctor_set(x_27, 4, x_9); -lean_ctor_set(x_27, 5, x_10); -lean_ctor_set(x_27, 6, x_11); -lean_ctor_set(x_27, 7, x_12); -lean_ctor_set(x_27, 8, x_13); -lean_ctor_set(x_27, 9, x_14); -lean_ctor_set_uint8(x_27, sizeof(void*)*10, x_15); -lean_ctor_set_uint8(x_27, sizeof(void*)*10 + 1, x_16); -lean_ctor_set_uint8(x_27, sizeof(void*)*10 + 2, x_17); -x_28 = lean_apply_2(x_2, x_27, x_21); +lean_ctor_set(x_4, 3, x_26); +x_27 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_27, 0, x_4); +lean_ctor_set(x_27, 1, x_5); +lean_ctor_set(x_27, 2, x_6); +lean_ctor_set(x_27, 3, x_7); +lean_ctor_set(x_27, 4, x_8); +lean_ctor_set(x_27, 5, x_9); +lean_ctor_set(x_27, 6, x_10); +lean_ctor_set(x_27, 7, x_11); +lean_ctor_set(x_27, 8, x_12); +lean_ctor_set(x_27, 9, x_13); +lean_ctor_set(x_27, 10, x_17); +lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_14); +lean_ctor_set_uint8(x_27, sizeof(void*)*11 + 1, x_15); +lean_ctor_set_uint8(x_27, sizeof(void*)*11 + 2, x_16); +x_28 = lean_apply_2(x_1, x_27, x_21); return x_28; } else { lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_29 = lean_ctor_get(x_5, 0); -x_30 = lean_ctor_get(x_5, 1); -x_31 = lean_ctor_get(x_5, 2); +x_29 = lean_ctor_get(x_4, 0); +x_30 = lean_ctor_get(x_4, 1); +x_31 = lean_ctor_get(x_4, 2); lean_inc(x_31); lean_inc(x_30); lean_inc(x_29); -lean_dec(x_5); +lean_dec(x_4); x_32 = lean_unsigned_to_nat(1u); x_33 = lean_nat_add(x_18, x_32); lean_dec(x_18); @@ -2706,21 +2790,22 @@ lean_ctor_set(x_34, 1, x_30); lean_ctor_set(x_34, 2, x_31); lean_ctor_set(x_34, 3, x_33); lean_ctor_set(x_34, 4, x_19); -x_35 = lean_alloc_ctor(0, 10, 3); +x_35 = lean_alloc_ctor(0, 11, 3); lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_6); -lean_ctor_set(x_35, 2, x_7); -lean_ctor_set(x_35, 3, x_8); -lean_ctor_set(x_35, 4, x_9); -lean_ctor_set(x_35, 5, x_10); -lean_ctor_set(x_35, 6, x_11); -lean_ctor_set(x_35, 7, x_12); -lean_ctor_set(x_35, 8, x_13); -lean_ctor_set(x_35, 9, x_14); -lean_ctor_set_uint8(x_35, sizeof(void*)*10, x_15); -lean_ctor_set_uint8(x_35, sizeof(void*)*10 + 1, x_16); -lean_ctor_set_uint8(x_35, sizeof(void*)*10 + 2, x_17); -x_36 = lean_apply_2(x_2, x_35, x_21); +lean_ctor_set(x_35, 1, x_5); +lean_ctor_set(x_35, 2, x_6); +lean_ctor_set(x_35, 3, x_7); +lean_ctor_set(x_35, 4, x_8); +lean_ctor_set(x_35, 5, x_9); +lean_ctor_set(x_35, 6, x_10); +lean_ctor_set(x_35, 7, x_11); +lean_ctor_set(x_35, 8, x_12); +lean_ctor_set(x_35, 9, x_13); +lean_ctor_set(x_35, 10, x_17); +lean_ctor_set_uint8(x_35, sizeof(void*)*11, x_14); +lean_ctor_set_uint8(x_35, sizeof(void*)*11 + 1, x_15); +lean_ctor_set_uint8(x_35, sizeof(void*)*11 + 2, x_16); +x_36 = lean_apply_2(x_1, x_35, x_21); return x_36; } } @@ -2730,19 +2815,10 @@ lean_object* l_Lean_Elab_Term_withIncRecDepth(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withIncRecDepth___rarg___boxed), 4, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withIncRecDepth___rarg), 3, 0); return x_2; } } -lean_object* l_Lean_Elab_Term_withIncRecDepth___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_Elab_Term_withIncRecDepth___rarg(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} lean_object* l_Lean_Elab_Term_getCurrMacroScope(lean_object* x_1, lean_object* x_2) { _start: { @@ -2835,7 +2911,7 @@ return x_10; } else { -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; uint8_t x_20; uint8_t x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; +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; uint8_t x_20; uint8_t x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; x_11 = lean_ctor_get(x_2, 0); x_12 = lean_ctor_get(x_2, 1); x_13 = lean_ctor_get(x_2, 2); @@ -2845,9 +2921,11 @@ x_16 = lean_ctor_get(x_2, 5); x_17 = lean_ctor_get(x_2, 6); x_18 = lean_ctor_get(x_2, 7); x_19 = lean_ctor_get(x_2, 8); -x_20 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_21 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); -x_22 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 2); +x_20 = lean_ctor_get_uint8(x_2, sizeof(void*)*11); +x_21 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 1); +x_22 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 2); +x_23 = lean_ctor_get(x_2, 10); +lean_inc(x_23); lean_inc(x_19); lean_inc(x_18); lean_inc(x_17); @@ -2858,70 +2936,73 @@ lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_dec(x_2); -x_23 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_23, 0, x_11); -lean_ctor_set(x_23, 1, x_12); -lean_ctor_set(x_23, 2, x_13); -lean_ctor_set(x_23, 3, x_14); -lean_ctor_set(x_23, 4, x_15); -lean_ctor_set(x_23, 5, x_16); -lean_ctor_set(x_23, 6, x_17); -lean_ctor_set(x_23, 7, x_18); -lean_ctor_set(x_23, 8, x_19); -lean_ctor_set(x_23, 9, x_5); -lean_ctor_set_uint8(x_23, sizeof(void*)*10, x_20); -lean_ctor_set_uint8(x_23, sizeof(void*)*10 + 1, x_21); -lean_ctor_set_uint8(x_23, sizeof(void*)*10 + 2, x_22); -x_24 = lean_apply_2(x_1, x_23, x_3); -return x_24; +x_24 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_24, 0, x_11); +lean_ctor_set(x_24, 1, x_12); +lean_ctor_set(x_24, 2, x_13); +lean_ctor_set(x_24, 3, x_14); +lean_ctor_set(x_24, 4, x_15); +lean_ctor_set(x_24, 5, x_16); +lean_ctor_set(x_24, 6, x_17); +lean_ctor_set(x_24, 7, x_18); +lean_ctor_set(x_24, 8, x_19); +lean_ctor_set(x_24, 9, x_5); +lean_ctor_set(x_24, 10, x_23); +lean_ctor_set_uint8(x_24, sizeof(void*)*11, x_20); +lean_ctor_set_uint8(x_24, sizeof(void*)*11 + 1, x_21); +lean_ctor_set_uint8(x_24, sizeof(void*)*11 + 2, x_22); +x_25 = lean_apply_2(x_1, x_24, x_3); +return x_25; } } else { -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_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; uint8_t x_43; uint8_t x_44; uint8_t x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_25 = lean_ctor_get(x_3, 0); -x_26 = lean_ctor_get(x_3, 1); -x_27 = lean_ctor_get(x_3, 2); -x_28 = lean_ctor_get(x_3, 3); -x_29 = lean_ctor_get(x_3, 4); -x_30 = lean_ctor_get(x_3, 5); +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; uint8_t x_45; uint8_t x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_26 = lean_ctor_get(x_3, 0); +x_27 = lean_ctor_get(x_3, 1); +x_28 = lean_ctor_get(x_3, 2); +x_29 = lean_ctor_get(x_3, 3); +x_30 = lean_ctor_get(x_3, 4); +x_31 = lean_ctor_get(x_3, 5); +lean_inc(x_31); lean_inc(x_30); lean_inc(x_29); lean_inc(x_28); lean_inc(x_27); lean_inc(x_26); -lean_inc(x_25); lean_dec(x_3); -x_31 = lean_unsigned_to_nat(1u); -x_32 = lean_nat_add(x_30, x_31); -x_33 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_33, 0, x_25); -lean_ctor_set(x_33, 1, x_26); -lean_ctor_set(x_33, 2, x_27); -lean_ctor_set(x_33, 3, x_28); -lean_ctor_set(x_33, 4, x_29); -lean_ctor_set(x_33, 5, x_32); -x_34 = lean_ctor_get(x_2, 0); -lean_inc(x_34); -x_35 = lean_ctor_get(x_2, 1); +x_32 = lean_unsigned_to_nat(1u); +x_33 = lean_nat_add(x_31, x_32); +x_34 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_34, 0, x_26); +lean_ctor_set(x_34, 1, x_27); +lean_ctor_set(x_34, 2, x_28); +lean_ctor_set(x_34, 3, x_29); +lean_ctor_set(x_34, 4, x_30); +lean_ctor_set(x_34, 5, x_33); +x_35 = lean_ctor_get(x_2, 0); lean_inc(x_35); -x_36 = lean_ctor_get(x_2, 2); +x_36 = lean_ctor_get(x_2, 1); lean_inc(x_36); -x_37 = lean_ctor_get(x_2, 3); +x_37 = lean_ctor_get(x_2, 2); lean_inc(x_37); -x_38 = lean_ctor_get(x_2, 4); +x_38 = lean_ctor_get(x_2, 3); lean_inc(x_38); -x_39 = lean_ctor_get(x_2, 5); +x_39 = lean_ctor_get(x_2, 4); lean_inc(x_39); -x_40 = lean_ctor_get(x_2, 6); +x_40 = lean_ctor_get(x_2, 5); lean_inc(x_40); -x_41 = lean_ctor_get(x_2, 7); +x_41 = lean_ctor_get(x_2, 6); lean_inc(x_41); -x_42 = lean_ctor_get(x_2, 8); +x_42 = lean_ctor_get(x_2, 7); lean_inc(x_42); -x_43 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_44 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); -x_45 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 2); +x_43 = lean_ctor_get(x_2, 8); +lean_inc(x_43); +x_44 = lean_ctor_get_uint8(x_2, sizeof(void*)*11); +x_45 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 1); +x_46 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 2); +x_47 = lean_ctor_get(x_2, 10); +lean_inc(x_47); if (lean_is_exclusive(x_2)) { lean_ctor_release(x_2, 0); lean_ctor_release(x_2, 1); @@ -2933,31 +3014,33 @@ if (lean_is_exclusive(x_2)) { lean_ctor_release(x_2, 7); lean_ctor_release(x_2, 8); lean_ctor_release(x_2, 9); - x_46 = x_2; + lean_ctor_release(x_2, 10); + x_48 = x_2; } else { lean_dec_ref(x_2); - x_46 = lean_box(0); + x_48 = lean_box(0); } -if (lean_is_scalar(x_46)) { - x_47 = lean_alloc_ctor(0, 10, 3); +if (lean_is_scalar(x_48)) { + x_49 = lean_alloc_ctor(0, 11, 3); } else { - x_47 = x_46; + x_49 = x_48; } -lean_ctor_set(x_47, 0, x_34); -lean_ctor_set(x_47, 1, x_35); -lean_ctor_set(x_47, 2, x_36); -lean_ctor_set(x_47, 3, x_37); -lean_ctor_set(x_47, 4, x_38); -lean_ctor_set(x_47, 5, x_39); -lean_ctor_set(x_47, 6, x_40); -lean_ctor_set(x_47, 7, x_41); -lean_ctor_set(x_47, 8, x_42); -lean_ctor_set(x_47, 9, x_30); -lean_ctor_set_uint8(x_47, sizeof(void*)*10, x_43); -lean_ctor_set_uint8(x_47, sizeof(void*)*10 + 1, x_44); -lean_ctor_set_uint8(x_47, sizeof(void*)*10 + 2, x_45); -x_48 = lean_apply_2(x_1, x_47, x_33); -return x_48; +lean_ctor_set(x_49, 0, x_35); +lean_ctor_set(x_49, 1, x_36); +lean_ctor_set(x_49, 2, x_37); +lean_ctor_set(x_49, 3, x_38); +lean_ctor_set(x_49, 4, x_39); +lean_ctor_set(x_49, 5, x_40); +lean_ctor_set(x_49, 6, x_41); +lean_ctor_set(x_49, 7, x_42); +lean_ctor_set(x_49, 8, x_43); +lean_ctor_set(x_49, 9, x_31); +lean_ctor_set(x_49, 10, x_47); +lean_ctor_set_uint8(x_49, sizeof(void*)*11, x_44); +lean_ctor_set_uint8(x_49, sizeof(void*)*11 + 1, x_45); +lean_ctor_set_uint8(x_49, sizeof(void*)*11 + 2, x_46); +x_50 = lean_apply_2(x_1, x_49, x_34); +return x_50; } } } @@ -3837,7 +3920,7 @@ _start: lean_object* x_6; lean_object* x_7; uint8_t x_8; x_6 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_6, 0, x_1); -x_7 = l_Lean_Elab_mkMessageAt___at_Lean_Elab_Term_throwError___spec__3(x_3, x_2, x_6, x_4, x_5); +x_7 = l_Lean_Elab_mkMessageAt___at_Lean_Elab_Term_throwErrorAt___spec__3(x_3, x_2, x_6, x_4, x_5); x_8 = !lean_is_exclusive(x_7); if (x_8 == 0) { @@ -3942,7 +4025,7 @@ lean_object* l_Lean_Elab_log___at_Lean_Elab_Term_logTrace___spec__1(lean_object* _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_6 = l_Lean_Elab_getPos___at_Lean_Elab_Term_throwError___spec__2(x_1, x_4, x_5); +x_6 = l_Lean_Elab_getPos___at_Lean_Elab_Term_throwErrorAt___spec__2(x_1, x_4, x_5); x_7 = lean_ctor_get(x_6, 0); lean_inc(x_7); x_8 = lean_ctor_get(x_6, 1); @@ -4019,81 +4102,82 @@ lean_dec(x_2); return x_6; } } -lean_object* l_Lean_Elab_Term_trace(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_Elab_Term_trace(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_6; uint8_t x_7; -x_6 = l_Lean_Elab_Term_getOptions(x_4, x_5); -x_7 = !lean_is_exclusive(x_6); -if (x_7 == 0) +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_5 = l_Lean_Elab_Term_getOptions(x_3, x_4); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); +lean_dec(x_5); +x_8 = l_Lean_Elab_Term_getCurrRef(x_3, x_7); +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) { -lean_object* x_8; lean_object* x_9; uint8_t x_10; -x_8 = lean_ctor_get(x_6, 0); -x_9 = lean_ctor_get(x_6, 1); +lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_10 = lean_ctor_get(x_8, 0); +x_11 = lean_ctor_get(x_8, 1); lean_inc(x_1); -x_10 = l_Lean_checkTraceOption(x_8, x_1); -lean_dec(x_8); -if (x_10 == 0) -{ -lean_object* x_11; -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_11 = lean_box(0); -lean_ctor_set(x_6, 0, x_11); -return x_6; -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; -lean_free_object(x_6); -x_12 = lean_box(0); -x_13 = lean_apply_1(x_3, x_12); -x_14 = l_Lean_Elab_Term_logTrace(x_1, x_2, x_13, x_4, x_9); -return x_14; -} -} -else -{ -lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_15 = lean_ctor_get(x_6, 0); -x_16 = lean_ctor_get(x_6, 1); -lean_inc(x_16); -lean_inc(x_15); +x_12 = l_Lean_checkTraceOption(x_6, x_1); lean_dec(x_6); -lean_inc(x_1); -x_17 = l_Lean_checkTraceOption(x_15, x_1); -lean_dec(x_15); -if (x_17 == 0) +if (x_12 == 0) { -lean_object* x_18; lean_object* x_19; -lean_dec(x_4); +lean_object* x_13; +lean_dec(x_10); lean_dec(x_3); +lean_dec(x_2); lean_dec(x_1); -x_18 = lean_box(0); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_16); -return x_19; +x_13 = lean_box(0); +lean_ctor_set(x_8, 0, x_13); +return x_8; } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_box(0); -x_21 = lean_apply_1(x_3, x_20); -x_22 = l_Lean_Elab_Term_logTrace(x_1, x_2, x_21, x_4, x_16); -return x_22; +lean_object* x_14; lean_object* x_15; lean_object* x_16; +lean_free_object(x_8); +x_14 = lean_box(0); +x_15 = lean_apply_1(x_2, x_14); +x_16 = l_Lean_Elab_Term_logTrace(x_1, x_10, x_15, x_3, x_11); +lean_dec(x_10); +return x_16; } } -} -} -lean_object* l_Lean_Elab_Term_trace___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: +else { -lean_object* x_6; -x_6 = l_Lean_Elab_Term_trace(x_1, x_2, x_3, x_4, x_5); +lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_17 = lean_ctor_get(x_8, 0); +x_18 = lean_ctor_get(x_8, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_8); +lean_inc(x_1); +x_19 = l_Lean_checkTraceOption(x_6, x_1); +lean_dec(x_6); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; +lean_dec(x_17); +lean_dec(x_3); lean_dec(x_2); -return x_6; +lean_dec(x_1); +x_20 = lean_box(0); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_18); +return x_21; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_box(0); +x_23 = lean_apply_1(x_2, x_22); +x_24 = l_Lean_Elab_Term_logTrace(x_1, x_17, x_23, x_3, x_18); +lean_dec(x_17); +return x_24; +} +} } } lean_object* _init_l_Lean_Elab_Term_logDbgTrace___closed__1() { @@ -4109,64 +4193,72 @@ return x_3; lean_object* l_Lean_Elab_Term_logDbgTrace(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_4; uint8_t x_5; +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; x_4 = l_Lean_Elab_Term_getOptions(x_2, x_3); -x_5 = !lean_is_exclusive(x_4); -if (x_5 == 0) -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; -x_6 = lean_ctor_get(x_4, 0); -x_7 = lean_ctor_get(x_4, 1); -x_8 = l_Lean_Elab_Term_logDbgTrace___closed__1; -x_9 = l_Lean_checkTraceOption(x_6, x_8); -lean_dec(x_6); -if (x_9 == 0) -{ -lean_object* x_10; -lean_dec(x_2); -lean_dec(x_1); -x_10 = lean_box(0); -lean_ctor_set(x_4, 0, x_10); -return x_4; -} -else -{ -lean_object* x_11; lean_object* x_12; -lean_free_object(x_4); -x_11 = lean_box(0); -x_12 = l_Lean_Elab_Term_logTrace(x_8, x_11, x_1, x_2, x_7); -return x_12; -} -} -else -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_13 = lean_ctor_get(x_4, 0); -x_14 = lean_ctor_get(x_4, 1); -lean_inc(x_14); -lean_inc(x_13); +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_4, 1); +lean_inc(x_6); lean_dec(x_4); -x_15 = l_Lean_Elab_Term_logDbgTrace___closed__1; -x_16 = l_Lean_checkTraceOption(x_13, x_15); -lean_dec(x_13); -if (x_16 == 0) +x_7 = l_Lean_Elab_Term_getCurrRef(x_2, x_6); +x_8 = !lean_is_exclusive(x_7); +if (x_8 == 0) { -lean_object* x_17; lean_object* x_18; +lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_9 = lean_ctor_get(x_7, 0); +x_10 = lean_ctor_get(x_7, 1); +x_11 = l_Lean_Elab_Term_logDbgTrace___closed__1; +x_12 = l_Lean_checkTraceOption(x_5, x_11); +lean_dec(x_5); +if (x_12 == 0) +{ +lean_object* x_13; +lean_dec(x_9); lean_dec(x_2); lean_dec(x_1); -x_17 = lean_box(0); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_14); -return x_18; +x_13 = lean_box(0); +lean_ctor_set(x_7, 0, x_13); +return x_7; } else { +lean_object* x_14; +lean_free_object(x_7); +x_14 = l_Lean_Elab_Term_logTrace(x_11, x_9, x_1, x_2, x_10); +lean_dec(x_9); +return x_14; +} +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_15 = lean_ctor_get(x_7, 0); +x_16 = lean_ctor_get(x_7, 1); +lean_inc(x_16); +lean_inc(x_15); +lean_dec(x_7); +x_17 = l_Lean_Elab_Term_logDbgTrace___closed__1; +x_18 = l_Lean_checkTraceOption(x_5, x_17); +lean_dec(x_5); +if (x_18 == 0) +{ lean_object* x_19; lean_object* x_20; +lean_dec(x_15); +lean_dec(x_2); +lean_dec(x_1); x_19 = lean_box(0); -x_20 = l_Lean_Elab_Term_logTrace(x_15, x_19, x_1, x_2, x_14); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_16); return x_20; } +else +{ +lean_object* x_21; +x_21 = l_Lean_Elab_Term_logTrace(x_17, x_15, x_1, x_2, x_16); +lean_dec(x_15); +return x_21; +} } } } @@ -4218,80 +4310,189 @@ return x_6; } else { -lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_7 = lean_box(0); -x_8 = l_Lean_Elab_Term_throwErrorIfErrors___closed__3; -x_9 = l_Lean_Elab_Term_throwError___rarg(x_7, x_8, x_1, x_2); -return x_9; +lean_object* x_7; lean_object* x_8; +x_7 = l_Lean_Elab_Term_throwErrorIfErrors___closed__3; +x_8 = l_Lean_Elab_Term_throwError___rarg(x_7, x_1, x_2); +return x_8; } } } lean_object* l_Lean_Elab_Term_traceAtCmdPos(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; uint8_t x_6; -x_5 = l_Lean_Elab_Term_getOptions(x_3, x_4); -x_6 = !lean_is_exclusive(x_5); -if (x_6 == 0) +uint8_t x_5; +x_5 = !lean_is_exclusive(x_3); +if (x_5 == 0) { -lean_object* x_7; lean_object* x_8; uint8_t x_9; -x_7 = lean_ctor_get(x_5, 0); -x_8 = lean_ctor_get(x_5, 1); +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_6 = lean_ctor_get(x_3, 10); +lean_dec(x_6); +x_7 = lean_box(0); +lean_ctor_set(x_3, 10, x_7); +x_8 = l_Lean_Elab_Term_getOptions(x_3, x_4); +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 = l_Lean_Elab_Term_getCurrRef(x_3, x_10); +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_13 = lean_ctor_get(x_11, 0); +x_14 = lean_ctor_get(x_11, 1); lean_inc(x_1); -x_9 = l_Lean_checkTraceOption(x_7, x_1); -lean_dec(x_7); -if (x_9 == 0) +x_15 = l_Lean_checkTraceOption(x_9, x_1); +lean_dec(x_9); +if (x_15 == 0) { -lean_object* x_10; +lean_object* x_16; +lean_dec(x_13); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_10 = lean_box(0); -lean_ctor_set(x_5, 0, x_10); -return x_5; +x_16 = lean_box(0); +lean_ctor_set(x_11, 0, x_16); +return x_11; } else { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -lean_free_object(x_5); -x_11 = lean_box(0); -x_12 = lean_apply_1(x_2, x_11); -x_13 = lean_box(0); -x_14 = l_Lean_Elab_Term_logTrace(x_1, x_13, x_12, x_3, x_8); -return x_14; -} -} -else -{ -lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_15 = lean_ctor_get(x_5, 0); -x_16 = lean_ctor_get(x_5, 1); -lean_inc(x_16); -lean_inc(x_15); -lean_dec(x_5); -lean_inc(x_1); -x_17 = l_Lean_checkTraceOption(x_15, x_1); -lean_dec(x_15); -if (x_17 == 0) -{ -lean_object* x_18; lean_object* x_19; -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_18 = lean_box(0); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_16); +lean_object* x_17; lean_object* x_18; lean_object* x_19; +lean_free_object(x_11); +x_17 = lean_box(0); +x_18 = lean_apply_1(x_2, x_17); +x_19 = l_Lean_Elab_Term_logTrace(x_1, x_13, x_18, x_3, x_14); +lean_dec(x_13); return x_19; } +} else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_20 = lean_box(0); -x_21 = lean_apply_1(x_2, x_20); -x_22 = lean_box(0); -x_23 = l_Lean_Elab_Term_logTrace(x_1, x_22, x_21, x_3, x_16); -return x_23; +lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_20 = lean_ctor_get(x_11, 0); +x_21 = lean_ctor_get(x_11, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_11); +lean_inc(x_1); +x_22 = l_Lean_checkTraceOption(x_9, x_1); +lean_dec(x_9); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; +lean_dec(x_20); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_23 = lean_box(0); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_21); +return x_24; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_box(0); +x_26 = lean_apply_1(x_2, x_25); +x_27 = l_Lean_Elab_Term_logTrace(x_1, x_20, x_26, x_3, x_21); +lean_dec(x_20); +return x_27; +} +} +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; uint8_t x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; +x_28 = lean_ctor_get(x_3, 0); +x_29 = lean_ctor_get(x_3, 1); +x_30 = lean_ctor_get(x_3, 2); +x_31 = lean_ctor_get(x_3, 3); +x_32 = lean_ctor_get(x_3, 4); +x_33 = lean_ctor_get(x_3, 5); +x_34 = lean_ctor_get(x_3, 6); +x_35 = lean_ctor_get(x_3, 7); +x_36 = lean_ctor_get(x_3, 8); +x_37 = lean_ctor_get(x_3, 9); +x_38 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_39 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_40 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +lean_inc(x_37); +lean_inc(x_36); +lean_inc(x_35); +lean_inc(x_34); +lean_inc(x_33); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_3); +x_41 = lean_box(0); +x_42 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_42, 0, x_28); +lean_ctor_set(x_42, 1, x_29); +lean_ctor_set(x_42, 2, x_30); +lean_ctor_set(x_42, 3, x_31); +lean_ctor_set(x_42, 4, x_32); +lean_ctor_set(x_42, 5, x_33); +lean_ctor_set(x_42, 6, x_34); +lean_ctor_set(x_42, 7, x_35); +lean_ctor_set(x_42, 8, x_36); +lean_ctor_set(x_42, 9, x_37); +lean_ctor_set(x_42, 10, x_41); +lean_ctor_set_uint8(x_42, sizeof(void*)*11, x_38); +lean_ctor_set_uint8(x_42, sizeof(void*)*11 + 1, x_39); +lean_ctor_set_uint8(x_42, sizeof(void*)*11 + 2, x_40); +x_43 = l_Lean_Elab_Term_getOptions(x_42, x_4); +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_Lean_Elab_Term_getCurrRef(x_42, x_45); +x_47 = lean_ctor_get(x_46, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_46, 1); +lean_inc(x_48); +if (lean_is_exclusive(x_46)) { + lean_ctor_release(x_46, 0); + lean_ctor_release(x_46, 1); + x_49 = x_46; +} else { + lean_dec_ref(x_46); + x_49 = lean_box(0); +} +lean_inc(x_1); +x_50 = l_Lean_checkTraceOption(x_44, x_1); +lean_dec(x_44); +if (x_50 == 0) +{ +lean_object* x_51; lean_object* x_52; +lean_dec(x_47); +lean_dec(x_42); +lean_dec(x_2); +lean_dec(x_1); +x_51 = lean_box(0); +if (lean_is_scalar(x_49)) { + x_52 = lean_alloc_ctor(0, 2, 0); +} else { + x_52 = x_49; +} +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_48); +return x_52; +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; +lean_dec(x_49); +x_53 = lean_box(0); +x_54 = lean_apply_1(x_2, x_53); +x_55 = l_Lean_Elab_Term_logTrace(x_1, x_47, x_54, x_42, x_48); +lean_dec(x_47); +return x_55; } } } @@ -4315,23 +4516,26 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_dbgTrace___rarg), 4, 0); return x_2; } } -lean_object* l___private_Lean_Elab_Term_1__mkMessageAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4) { +lean_object* l___private_Lean_Elab_Term_1__mkMessageAux(lean_object* x_1, lean_object* x_2, uint8_t x_3) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_5 = lean_ctor_get(x_1, 1); +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 2); lean_inc(x_5); -x_6 = lean_ctor_get(x_1, 2); +x_6 = lean_ctor_get(x_1, 10); lean_inc(x_6); -x_7 = l_Lean_Syntax_getPos(x_2); +x_7 = l_Lean_Syntax_getPos(x_6); +lean_dec(x_6); if (lean_obj_tag(x_7) == 0) { lean_object* x_8; lean_object* x_9; x_8 = lean_ctor_get(x_1, 3); lean_inc(x_8); lean_dec(x_1); -x_9 = l_Lean_Elab_mkMessageCore(x_5, x_6, x_3, x_4, x_8); -lean_dec(x_6); +x_9 = l_Lean_Elab_mkMessageCore(x_4, x_5, x_2, x_3, x_8); +lean_dec(x_5); return x_9; } else @@ -4341,524 +4545,480 @@ lean_dec(x_1); x_10 = lean_ctor_get(x_7, 0); lean_inc(x_10); lean_dec(x_7); -x_11 = l_Lean_Elab_mkMessageCore(x_5, x_6, x_3, x_4, x_10); -lean_dec(x_6); +x_11 = l_Lean_Elab_mkMessageCore(x_4, x_5, x_2, x_3, x_10); +lean_dec(x_5); return x_11; } } } -lean_object* l___private_Lean_Elab_Term_1__mkMessageAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Term_1__mkMessageAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -uint8_t x_5; lean_object* x_6; -x_5 = lean_unbox(x_4); -lean_dec(x_4); -x_6 = l___private_Lean_Elab_Term_1__mkMessageAux(x_1, x_2, x_3, x_5); -lean_dec(x_2); -return x_6; +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_3); +lean_dec(x_3); +x_5 = l___private_Lean_Elab_Term_1__mkMessageAux(x_1, x_2, x_4); +return x_5; } } -lean_object* l___private_Lean_Elab_Term_2__fromMetaException(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Elab_Term_2__fromMetaException(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_4 = l_Lean_Meta_Exception_getRef(x_3); -x_5 = l_Lean_Syntax_getPos(x_4); -x_6 = l_Lean_Meta_Exception_toMessageData(x_3); -if (lean_obj_tag(x_5) == 0) -{ -uint8_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -lean_dec(x_4); -x_7 = 2; -x_8 = l___private_Lean_Elab_Term_1__mkMessageAux(x_1, x_2, x_6, x_7); -x_9 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_9, 0, x_8); -x_10 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_10, 0, x_9); -return x_10; -} -else -{ -uint8_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -lean_dec(x_5); -x_11 = 2; -x_12 = l___private_Lean_Elab_Term_1__mkMessageAux(x_1, x_4, x_6, x_11); -lean_dec(x_4); -x_13 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_13, 0, x_12); -x_14 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_14, 0, x_13); -return x_14; -} -} -} -lean_object* l___private_Lean_Elab_Term_2__fromMetaException___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l___private_Lean_Elab_Term_2__fromMetaException(x_1, x_2, x_3); -lean_dec(x_2); -return x_4; -} -} -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___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; uint8_t x_8; -x_7 = lean_array_get_size(x_4); -x_8 = lean_nat_dec_lt(x_5, x_7); -lean_dec(x_7); -if (x_8 == 0) -{ -lean_dec(x_5); -lean_dec(x_2); -return x_6; -} -else -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_9 = lean_array_fget(x_4, x_5); -lean_inc(x_2); -x_10 = l_Std_PersistentArray_foldlMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___spec__2(x_1, x_2, x_9, x_6); -lean_dec(x_9); -x_11 = lean_unsigned_to_nat(1u); -x_12 = lean_nat_add(x_5, x_11); -lean_dec(x_5); -x_5 = x_12; -x_6 = x_10; -goto _start; -} -} -} -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___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; uint8_t x_8; -x_7 = lean_array_get_size(x_4); -x_8 = lean_nat_dec_lt(x_5, x_7); -lean_dec(x_7); -if (x_8 == 0) -{ -lean_dec(x_5); -lean_dec(x_2); -return x_6; -} -else -{ -lean_object* x_9; uint8_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_9 = lean_array_fget(x_4, x_5); -x_10 = 0; -lean_inc(x_2); -x_11 = l___private_Lean_Elab_Term_1__mkMessageAux(x_2, x_1, x_9, x_10); -x_12 = l_Std_PersistentArray_push___rarg(x_6, x_11); -x_13 = lean_unsigned_to_nat(1u); -x_14 = lean_nat_add(x_5, x_13); -lean_dec(x_5); -x_5 = x_14; -x_6 = x_12; -goto _start; -} -} -} -lean_object* l_Std_PersistentArray_foldlMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -if (lean_obj_tag(x_3) == 0) -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_5 = lean_ctor_get(x_3, 0); -x_6 = lean_unsigned_to_nat(0u); -x_7 = l_Array_iterateMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___spec__3(x_1, x_2, x_5, x_5, x_6, x_4); +lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_3 = l_Lean_Meta_Exception_toMessageData(x_2); +x_4 = 2; +x_5 = l___private_Lean_Elab_Term_1__mkMessageAux(x_1, x_3, x_4); +x_6 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_6, 0, x_5); +x_7 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_7, 0, x_6); return x_7; } -else -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_8 = lean_ctor_get(x_3, 0); -x_9 = lean_unsigned_to_nat(0u); -x_10 = l_Array_iterateMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___spec__4(x_1, x_2, x_8, x_8, x_9, x_4); -return x_10; } -} -} -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___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* l_Array_iterateMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_7; uint8_t x_8; -x_7 = lean_array_get_size(x_4); -x_8 = lean_nat_dec_lt(x_5, x_7); -lean_dec(x_7); -if (x_8 == 0) +lean_object* x_6; uint8_t x_7; +x_6 = lean_array_get_size(x_3); +x_7 = lean_nat_dec_lt(x_4, x_6); +lean_dec(x_6); +if (x_7 == 0) { -lean_dec(x_5); -lean_dec(x_2); -return x_6; +lean_dec(x_4); +lean_dec(x_1); +return x_5; } else { -lean_object* x_9; uint8_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_9 = lean_array_fget(x_4, x_5); -x_10 = 0; -lean_inc(x_2); -x_11 = l___private_Lean_Elab_Term_1__mkMessageAux(x_2, x_1, x_9, x_10); -x_12 = l_Std_PersistentArray_push___rarg(x_6, x_11); -x_13 = lean_unsigned_to_nat(1u); -x_14 = lean_nat_add(x_5, x_13); -lean_dec(x_5); -x_5 = x_14; -x_6 = x_12; +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_8 = lean_array_fget(x_3, x_4); +lean_inc(x_1); +x_9 = l_Std_PersistentArray_foldlMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___spec__2(x_1, x_8, x_5); +lean_dec(x_8); +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_add(x_4, x_10); +lean_dec(x_4); +x_4 = x_11; +x_5 = x_9; goto _start; } } } -lean_object* l_Std_PersistentArray_foldlM___at___private_Lean_Elab_Term_3__fromMetaState___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_5 = lean_ctor_get(x_3, 0); -lean_inc(x_2); -x_6 = l_Std_PersistentArray_foldlMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___spec__2(x_1, x_2, x_5, x_4); -x_7 = lean_ctor_get(x_3, 1); +lean_object* x_6; uint8_t x_7; +x_6 = lean_array_get_size(x_3); +x_7 = lean_nat_dec_lt(x_4, x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +lean_dec(x_4); +lean_dec(x_1); +return x_5; +} +else +{ +lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_8 = lean_array_fget(x_3, x_4); +x_9 = 0; +lean_inc(x_1); +x_10 = l___private_Lean_Elab_Term_1__mkMessageAux(x_1, x_8, x_9); +x_11 = l_Std_PersistentArray_push___rarg(x_5, x_10); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_4, x_12); +lean_dec(x_4); +x_4 = x_13; +x_5 = x_11; +goto _start; +} +} +} +lean_object* l_Std_PersistentArray_foldlMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_4 = lean_ctor_get(x_2, 0); +x_5 = lean_unsigned_to_nat(0u); +x_6 = l_Array_iterateMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___spec__3(x_1, x_4, x_4, x_5, x_3); +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_7 = lean_ctor_get(x_2, 0); x_8 = lean_unsigned_to_nat(0u); -x_9 = l_Array_iterateMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___spec__5(x_1, x_2, x_3, x_7, x_8, x_6); +x_9 = l_Array_iterateMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___spec__4(x_1, x_7, x_7, x_8, x_3); return x_9; } } -lean_object* l___private_Lean_Elab_Term_3__fromMetaState(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +} +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -uint8_t x_6; -x_6 = !lean_is_exclusive(x_4); -if (x_6 == 0) +lean_object* x_6; uint8_t x_7; +x_6 = lean_array_get_size(x_3); +x_7 = lean_nat_dec_lt(x_4, x_6); +lean_dec(x_6); +if (x_7 == 0) { -lean_object* x_7; lean_object* x_8; uint8_t x_9; -x_7 = lean_ctor_get(x_4, 4); -x_8 = lean_ctor_get(x_7, 0); -lean_inc(x_8); -lean_dec(x_7); -x_9 = !lean_is_exclusive(x_3); -if (x_9 == 0) -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_10 = lean_ctor_get(x_3, 2); -x_11 = lean_ctor_get(x_3, 0); -lean_dec(x_11); -x_12 = l_Std_PersistentArray_foldlM___at___private_Lean_Elab_Term_3__fromMetaState___spec__1(x_1, x_2, x_8, x_10); -lean_dec(x_8); -lean_ctor_set(x_4, 4, x_5); -lean_ctor_set(x_3, 2, x_12); -lean_ctor_set(x_3, 0, x_4); -return x_3; +lean_dec(x_4); +lean_dec(x_1); +return x_5; } else { -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_13 = lean_ctor_get(x_3, 1); -x_14 = lean_ctor_get(x_3, 2); -x_15 = lean_ctor_get(x_3, 3); -x_16 = lean_ctor_get(x_3, 4); -x_17 = lean_ctor_get(x_3, 5); -lean_inc(x_17); +lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_8 = lean_array_fget(x_3, x_4); +x_9 = 0; +lean_inc(x_1); +x_10 = l___private_Lean_Elab_Term_1__mkMessageAux(x_1, x_8, x_9); +x_11 = l_Std_PersistentArray_push___rarg(x_5, x_10); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_4, x_12); +lean_dec(x_4); +x_4 = x_13; +x_5 = x_11; +goto _start; +} +} +} +lean_object* l_Std_PersistentArray_foldlM___at___private_Lean_Elab_Term_3__fromMetaState___spec__1(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; +x_4 = lean_ctor_get(x_2, 0); +lean_inc(x_1); +x_5 = l_Std_PersistentArray_foldlMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___spec__2(x_1, x_4, x_3); +x_6 = lean_ctor_get(x_2, 1); +x_7 = lean_unsigned_to_nat(0u); +x_8 = l_Array_iterateMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___spec__5(x_1, x_2, x_6, x_7, x_5); +return x_8; +} +} +lean_object* l___private_Lean_Elab_Term_3__fromMetaState(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_3); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_3, 4); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +lean_dec(x_6); +x_8 = !lean_is_exclusive(x_2); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_ctor_get(x_2, 2); +x_10 = lean_ctor_get(x_2, 0); +lean_dec(x_10); +x_11 = l_Std_PersistentArray_foldlM___at___private_Lean_Elab_Term_3__fromMetaState___spec__1(x_1, x_7, x_9); +lean_dec(x_7); +lean_ctor_set(x_3, 4, x_4); +lean_ctor_set(x_2, 2, x_11); +lean_ctor_set(x_2, 0, x_3); +return x_2; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_12 = lean_ctor_get(x_2, 1); +x_13 = lean_ctor_get(x_2, 2); +x_14 = lean_ctor_get(x_2, 3); +x_15 = lean_ctor_get(x_2, 4); +x_16 = lean_ctor_get(x_2, 5); lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); -lean_dec(x_3); -x_18 = l_Std_PersistentArray_foldlM___at___private_Lean_Elab_Term_3__fromMetaState___spec__1(x_1, x_2, x_8, x_14); -lean_dec(x_8); -lean_ctor_set(x_4, 4, x_5); -x_19 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_19, 0, x_4); -lean_ctor_set(x_19, 1, x_13); -lean_ctor_set(x_19, 2, x_18); -lean_ctor_set(x_19, 3, x_15); -lean_ctor_set(x_19, 4, x_16); -lean_ctor_set(x_19, 5, x_17); -return x_19; +lean_inc(x_12); +lean_dec(x_2); +x_17 = l_Std_PersistentArray_foldlM___at___private_Lean_Elab_Term_3__fromMetaState___spec__1(x_1, x_7, x_13); +lean_dec(x_7); +lean_ctor_set(x_3, 4, x_4); +x_18 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_18, 0, x_3); +lean_ctor_set(x_18, 1, x_12); +lean_ctor_set(x_18, 2, x_17); +lean_ctor_set(x_18, 3, x_14); +lean_ctor_set(x_18, 4, x_15); +lean_ctor_set(x_18, 5, x_16); +return x_18; } } else { -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_34; lean_object* x_35; -x_20 = lean_ctor_get(x_4, 0); -x_21 = lean_ctor_get(x_4, 1); -x_22 = lean_ctor_get(x_4, 2); -x_23 = lean_ctor_get(x_4, 3); -x_24 = lean_ctor_get(x_4, 4); -x_25 = lean_ctor_get(x_4, 5); -lean_inc(x_25); +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_34; +x_19 = lean_ctor_get(x_3, 0); +x_20 = lean_ctor_get(x_3, 1); +x_21 = lean_ctor_get(x_3, 2); +x_22 = lean_ctor_get(x_3, 3); +x_23 = lean_ctor_get(x_3, 4); +x_24 = lean_ctor_get(x_3, 5); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); -lean_dec(x_4); -x_26 = lean_ctor_get(x_24, 0); +lean_inc(x_19); +lean_dec(x_3); +x_25 = lean_ctor_get(x_23, 0); +lean_inc(x_25); +lean_dec(x_23); +x_26 = lean_ctor_get(x_2, 1); lean_inc(x_26); -lean_dec(x_24); -x_27 = lean_ctor_get(x_3, 1); +x_27 = lean_ctor_get(x_2, 2); lean_inc(x_27); -x_28 = lean_ctor_get(x_3, 2); +x_28 = lean_ctor_get(x_2, 3); lean_inc(x_28); -x_29 = lean_ctor_get(x_3, 3); +x_29 = lean_ctor_get(x_2, 4); lean_inc(x_29); -x_30 = lean_ctor_get(x_3, 4); +x_30 = lean_ctor_get(x_2, 5); lean_inc(x_30); -x_31 = lean_ctor_get(x_3, 5); -lean_inc(x_31); -if (lean_is_exclusive(x_3)) { - lean_ctor_release(x_3, 0); - lean_ctor_release(x_3, 1); - lean_ctor_release(x_3, 2); - lean_ctor_release(x_3, 3); - lean_ctor_release(x_3, 4); - lean_ctor_release(x_3, 5); - x_32 = x_3; +if (lean_is_exclusive(x_2)) { + lean_ctor_release(x_2, 0); + lean_ctor_release(x_2, 1); + lean_ctor_release(x_2, 2); + lean_ctor_release(x_2, 3); + lean_ctor_release(x_2, 4); + lean_ctor_release(x_2, 5); + x_31 = x_2; } else { - lean_dec_ref(x_3); - x_32 = lean_box(0); + lean_dec_ref(x_2); + x_31 = lean_box(0); } -x_33 = l_Std_PersistentArray_foldlM___at___private_Lean_Elab_Term_3__fromMetaState___spec__1(x_1, x_2, x_26, x_28); -lean_dec(x_26); -x_34 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_34, 0, x_20); -lean_ctor_set(x_34, 1, x_21); -lean_ctor_set(x_34, 2, x_22); -lean_ctor_set(x_34, 3, x_23); -lean_ctor_set(x_34, 4, x_5); -lean_ctor_set(x_34, 5, x_25); -if (lean_is_scalar(x_32)) { - x_35 = lean_alloc_ctor(0, 6, 0); +x_32 = l_Std_PersistentArray_foldlM___at___private_Lean_Elab_Term_3__fromMetaState___spec__1(x_1, x_25, x_27); +lean_dec(x_25); +x_33 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_33, 0, x_19); +lean_ctor_set(x_33, 1, x_20); +lean_ctor_set(x_33, 2, x_21); +lean_ctor_set(x_33, 3, x_22); +lean_ctor_set(x_33, 4, x_4); +lean_ctor_set(x_33, 5, x_24); +if (lean_is_scalar(x_31)) { + x_34 = lean_alloc_ctor(0, 6, 0); } else { - x_35 = x_32; + x_34 = x_31; } -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_27); -lean_ctor_set(x_35, 2, x_33); -lean_ctor_set(x_35, 3, x_29); -lean_ctor_set(x_35, 4, x_30); -lean_ctor_set(x_35, 5, x_31); -return x_35; +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_26); +lean_ctor_set(x_34, 2, x_32); +lean_ctor_set(x_34, 3, x_28); +lean_ctor_set(x_34, 4, x_29); +lean_ctor_set(x_34, 5, x_30); +return x_34; } } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___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_Array_iterateMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___spec__3(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_7; -} -} -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___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_Array_iterateMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___spec__4(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_7; -} -} -lean_object* l_Std_PersistentArray_foldlMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Std_PersistentArray_foldlMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___spec__2(x_1, x_2, x_3, x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_5; -} -} -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___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_Array_iterateMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___spec__5(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_7; -} -} -lean_object* l_Std_PersistentArray_foldlM___at___private_Lean_Elab_Term_3__fromMetaState___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Std_PersistentArray_foldlM___at___private_Lean_Elab_Term_3__fromMetaState___spec__1(x_1, x_2, x_3, x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_5; -} -} -lean_object* l___private_Lean_Elab_Term_3__fromMetaState___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_1); +x_6 = l_Array_iterateMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___spec__3(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_3); +lean_dec(x_2); return x_6; } } -lean_object* l_Lean_Elab_Term_liftMetaM___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_5; uint8_t x_6; -x_5 = lean_ctor_get(x_4, 0); -lean_inc(x_5); -x_6 = !lean_is_exclusive(x_5); -if (x_6 == 0) +lean_object* x_6; +x_6 = l_Array_iterateMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___spec__4(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_3); +lean_dec(x_2); +return x_6; +} +} +lean_object* l_Std_PersistentArray_foldlMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_7 = lean_ctor_get(x_5, 4); -x_8 = lean_ctor_get(x_3, 0); -lean_inc(x_8); -x_9 = l_Lean_TraceState_Inhabited___closed__1; -lean_ctor_set(x_5, 4, x_9); -x_10 = lean_apply_2(x_2, x_8, x_5); -if (lean_obj_tag(x_10) == 0) +lean_object* x_4; +x_4 = l_Std_PersistentArray_foldlMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___spec__2(x_1, x_2, x_3); +lean_dec(x_2); +return x_4; +} +} +lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: { -uint8_t x_11; -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) +lean_object* x_6; +x_6 = l_Array_iterateMAux___main___at___private_Lean_Elab_Term_3__fromMetaState___spec__5(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_3); +lean_dec(x_2); +return x_6; +} +} +lean_object* l_Std_PersistentArray_foldlM___at___private_Lean_Elab_Term_3__fromMetaState___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: { -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_10, 1); -x_13 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_12, x_7); -lean_ctor_set(x_10, 1, x_13); -return x_10; +lean_object* x_4; +x_4 = l_Std_PersistentArray_foldlM___at___private_Lean_Elab_Term_3__fromMetaState___spec__1(x_1, x_2, x_3); +lean_dec(x_2); +return x_4; +} +} +lean_object* l_Lean_Elab_Term_liftMetaM___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +x_5 = !lean_is_exclusive(x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = lean_ctor_get(x_4, 4); +x_7 = lean_ctor_get(x_2, 0); +lean_inc(x_7); +x_8 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_4, 4, x_8); +x_9 = lean_apply_2(x_1, x_7, x_4); +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_9, 1); +x_12 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_11, x_6); +lean_ctor_set(x_9, 1, x_12); +return x_9; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_14 = lean_ctor_get(x_10, 0); -x_15 = lean_ctor_get(x_10, 1); -lean_inc(x_15); +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_13 = lean_ctor_get(x_9, 0); +x_14 = lean_ctor_get(x_9, 1); lean_inc(x_14); -lean_dec(x_10); -x_16 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_15, x_7); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_14); -lean_ctor_set(x_17, 1, x_16); -return x_17; +lean_inc(x_13); +lean_dec(x_9); +x_15 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_14, x_6); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_13); +lean_ctor_set(x_16, 1, x_15); +return x_16; } } else { -uint8_t x_18; -x_18 = !lean_is_exclusive(x_10); -if (x_18 == 0) +uint8_t x_17; +x_17 = !lean_is_exclusive(x_9); +if (x_17 == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_10, 0); -x_20 = lean_ctor_get(x_10, 1); -lean_inc(x_3); -x_21 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_19); -x_22 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_20, x_7); -lean_ctor_set(x_10, 1, x_22); -lean_ctor_set(x_10, 0, x_21); -return x_10; +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_9, 0); +x_19 = lean_ctor_get(x_9, 1); +lean_inc(x_2); +x_20 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_18); +x_21 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_19, x_6); +lean_ctor_set(x_9, 1, x_21); +lean_ctor_set(x_9, 0, x_20); +return x_9; } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_23 = lean_ctor_get(x_10, 0); -x_24 = lean_ctor_get(x_10, 1); -lean_inc(x_24); +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_22 = lean_ctor_get(x_9, 0); +x_23 = lean_ctor_get(x_9, 1); lean_inc(x_23); -lean_dec(x_10); -lean_inc(x_3); -x_25 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_23); -x_26 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_24, 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_inc(x_22); +lean_dec(x_9); +lean_inc(x_2); +x_24 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_22); +x_25 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_23, x_6); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; } } } else { -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_28 = lean_ctor_get(x_5, 0); -x_29 = lean_ctor_get(x_5, 1); -x_30 = lean_ctor_get(x_5, 2); -x_31 = lean_ctor_get(x_5, 3); -x_32 = lean_ctor_get(x_5, 4); -x_33 = lean_ctor_get(x_5, 5); -lean_inc(x_33); +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_27 = lean_ctor_get(x_4, 0); +x_28 = lean_ctor_get(x_4, 1); +x_29 = lean_ctor_get(x_4, 2); +x_30 = lean_ctor_get(x_4, 3); +x_31 = lean_ctor_get(x_4, 4); +x_32 = lean_ctor_get(x_4, 5); lean_inc(x_32); lean_inc(x_31); lean_inc(x_30); lean_inc(x_29); lean_inc(x_28); -lean_dec(x_5); -x_34 = lean_ctor_get(x_3, 0); -lean_inc(x_34); -x_35 = l_Lean_TraceState_Inhabited___closed__1; -x_36 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_36, 0, x_28); -lean_ctor_set(x_36, 1, x_29); -lean_ctor_set(x_36, 2, x_30); -lean_ctor_set(x_36, 3, x_31); -lean_ctor_set(x_36, 4, x_35); -lean_ctor_set(x_36, 5, x_33); -x_37 = lean_apply_2(x_2, x_34, x_36); -if (lean_obj_tag(x_37) == 0) +lean_inc(x_27); +lean_dec(x_4); +x_33 = lean_ctor_get(x_2, 0); +lean_inc(x_33); +x_34 = l_Lean_TraceState_Inhabited___closed__1; +x_35 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_35, 0, x_27); +lean_ctor_set(x_35, 1, x_28); +lean_ctor_set(x_35, 2, x_29); +lean_ctor_set(x_35, 3, x_30); +lean_ctor_set(x_35, 4, x_34); +lean_ctor_set(x_35, 5, x_32); +x_36 = lean_apply_2(x_1, x_33, x_35); +if (lean_obj_tag(x_36) == 0) { -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_37, 0); +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_36, 1); lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); -if (lean_is_exclusive(x_37)) { - lean_ctor_release(x_37, 0); - lean_ctor_release(x_37, 1); - x_40 = x_37; +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_39 = x_36; } else { - lean_dec_ref(x_37); - x_40 = lean_box(0); + lean_dec_ref(x_36); + x_39 = lean_box(0); } -x_41 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_39, x_32); -if (lean_is_scalar(x_40)) { - x_42 = lean_alloc_ctor(0, 2, 0); +x_40 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_38, x_31); +if (lean_is_scalar(x_39)) { + x_41 = lean_alloc_ctor(0, 2, 0); } else { - x_42 = x_40; + x_41 = x_39; } -lean_ctor_set(x_42, 0, x_38); -lean_ctor_set(x_42, 1, x_41); -return x_42; +lean_ctor_set(x_41, 0, x_37); +lean_ctor_set(x_41, 1, x_40); +return x_41; } else { -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_37, 0); +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_42 = lean_ctor_get(x_36, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_36, 1); lean_inc(x_43); -x_44 = lean_ctor_get(x_37, 1); -lean_inc(x_44); -if (lean_is_exclusive(x_37)) { - lean_ctor_release(x_37, 0); - lean_ctor_release(x_37, 1); - x_45 = x_37; +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_44 = x_36; } else { - lean_dec_ref(x_37); - x_45 = lean_box(0); + lean_dec_ref(x_36); + x_44 = lean_box(0); } -lean_inc(x_3); -x_46 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_43); -x_47 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_44, x_32); -if (lean_is_scalar(x_45)) { - x_48 = lean_alloc_ctor(1, 2, 0); +lean_inc(x_2); +x_45 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_42); +x_46 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_43, x_31); +if (lean_is_scalar(x_44)) { + x_47 = lean_alloc_ctor(1, 2, 0); } else { - x_48 = x_45; + x_47 = x_44; } -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; } } } @@ -4867,1152 +5027,690 @@ lean_object* l_Lean_Elab_Term_liftMetaM(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_liftMetaM___rarg___boxed), 4, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_liftMetaM___rarg), 3, 0); return x_2; } } -lean_object* l_Lean_Elab_Term_liftMetaM___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Term_ppGoal(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; -x_5 = l_Lean_Elab_Term_liftMetaM___rarg(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} -lean_object* l_Lean_Elab_Term_ppGoal(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: +lean_object* x_4; uint8_t x_5; +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +x_5 = !lean_is_exclusive(x_4); +if (x_5 == 0) { -lean_object* x_5; uint8_t x_6; -x_5 = lean_ctor_get(x_4, 0); -lean_inc(x_5); -x_6 = !lean_is_exclusive(x_5); -if (x_6 == 0) +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_6 = lean_ctor_get(x_4, 4); +x_7 = lean_ctor_get(x_2, 0); +lean_inc(x_7); +x_8 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_4, 4, x_8); +x_9 = l_Lean_Meta_ppGoal(x_1, x_7, x_4); +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_7 = lean_ctor_get(x_5, 4); -x_8 = lean_ctor_get(x_3, 0); -lean_inc(x_8); -x_9 = l_Lean_TraceState_Inhabited___closed__1; -lean_ctor_set(x_5, 4, x_9); -x_10 = l_Lean_Meta_ppGoal(x_2, x_8, x_5); -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_10, 1); -x_13 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_12, x_7); -lean_ctor_set(x_10, 1, x_13); -return x_10; +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_9, 1); +x_12 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_11, x_6); +lean_ctor_set(x_9, 1, x_12); +return x_9; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_14 = lean_ctor_get(x_10, 0); -x_15 = lean_ctor_get(x_10, 1); -lean_inc(x_15); +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_13 = lean_ctor_get(x_9, 0); +x_14 = lean_ctor_get(x_9, 1); lean_inc(x_14); -lean_dec(x_10); -x_16 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_15, x_7); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_14); -lean_ctor_set(x_17, 1, x_16); -return x_17; +lean_inc(x_13); +lean_dec(x_9); +x_15 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_14, x_6); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_13); +lean_ctor_set(x_16, 1, x_15); +return x_16; } } else { -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_18 = lean_ctor_get(x_5, 0); -x_19 = lean_ctor_get(x_5, 1); -x_20 = lean_ctor_get(x_5, 2); -x_21 = lean_ctor_get(x_5, 3); -x_22 = lean_ctor_get(x_5, 4); -x_23 = lean_ctor_get(x_5, 5); -lean_inc(x_23); +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_17 = lean_ctor_get(x_4, 0); +x_18 = lean_ctor_get(x_4, 1); +x_19 = lean_ctor_get(x_4, 2); +x_20 = lean_ctor_get(x_4, 3); +x_21 = lean_ctor_get(x_4, 4); +x_22 = lean_ctor_get(x_4, 5); lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); -lean_dec(x_5); -x_24 = lean_ctor_get(x_3, 0); -lean_inc(x_24); -x_25 = l_Lean_TraceState_Inhabited___closed__1; -x_26 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_26, 0, x_18); -lean_ctor_set(x_26, 1, x_19); -lean_ctor_set(x_26, 2, x_20); -lean_ctor_set(x_26, 3, x_21); -lean_ctor_set(x_26, 4, x_25); -lean_ctor_set(x_26, 5, x_23); -x_27 = l_Lean_Meta_ppGoal(x_2, x_24, x_26); -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); -x_29 = lean_ctor_get(x_27, 1); -lean_inc(x_29); -if (lean_is_exclusive(x_27)) { - lean_ctor_release(x_27, 0); - lean_ctor_release(x_27, 1); - x_30 = x_27; -} else { - lean_dec_ref(x_27); - x_30 = lean_box(0); -} -x_31 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_29, x_22); -if (lean_is_scalar(x_30)) { - x_32 = lean_alloc_ctor(0, 2, 0); -} else { - x_32 = x_30; -} -lean_ctor_set(x_32, 0, x_28); -lean_ctor_set(x_32, 1, x_31); -return x_32; -} -} -} -lean_object* l_Lean_Elab_Term_ppGoal___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_Elab_Term_ppGoal(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} -lean_object* l_Lean_Elab_Term_isType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; uint8_t x_6; -x_5 = lean_ctor_get(x_4, 0); -lean_inc(x_5); -x_6 = !lean_is_exclusive(x_5); -if (x_6 == 0) -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_7 = lean_ctor_get(x_5, 4); -x_8 = lean_ctor_get(x_3, 0); -lean_inc(x_8); -x_9 = l_Lean_TraceState_Inhabited___closed__1; -lean_ctor_set(x_5, 4, x_9); -x_10 = l_Lean_Meta_isType(x_2, x_8, x_5); -if (lean_obj_tag(x_10) == 0) -{ -uint8_t x_11; -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_10, 1); -x_13 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_12, x_7); -lean_ctor_set(x_10, 1, x_13); -return x_10; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_14 = lean_ctor_get(x_10, 0); -x_15 = lean_ctor_get(x_10, 1); -lean_inc(x_15); -lean_inc(x_14); -lean_dec(x_10); -x_16 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_15, x_7); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_14); -lean_ctor_set(x_17, 1, x_16); -return x_17; -} -} -else -{ -uint8_t x_18; -x_18 = !lean_is_exclusive(x_10); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_10, 0); -x_20 = lean_ctor_get(x_10, 1); -lean_inc(x_3); -x_21 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_19); -x_22 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_20, x_7); -lean_ctor_set(x_10, 1, x_22); -lean_ctor_set(x_10, 0, x_21); -return x_10; -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_23 = lean_ctor_get(x_10, 0); -x_24 = lean_ctor_get(x_10, 1); -lean_inc(x_24); +lean_inc(x_17); +lean_dec(x_4); +x_23 = lean_ctor_get(x_2, 0); lean_inc(x_23); -lean_dec(x_10); -lean_inc(x_3); -x_25 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_23); -x_26 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_24, 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; -} -} -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_28 = lean_ctor_get(x_5, 0); -x_29 = lean_ctor_get(x_5, 1); -x_30 = lean_ctor_get(x_5, 2); -x_31 = lean_ctor_get(x_5, 3); -x_32 = lean_ctor_get(x_5, 4); -x_33 = lean_ctor_get(x_5, 5); -lean_inc(x_33); -lean_inc(x_32); -lean_inc(x_31); -lean_inc(x_30); -lean_inc(x_29); +x_24 = l_Lean_TraceState_Inhabited___closed__1; +x_25 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_25, 0, x_17); +lean_ctor_set(x_25, 1, x_18); +lean_ctor_set(x_25, 2, x_19); +lean_ctor_set(x_25, 3, x_20); +lean_ctor_set(x_25, 4, x_24); +lean_ctor_set(x_25, 5, x_22); +x_26 = l_Lean_Meta_ppGoal(x_1, x_23, x_25); +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_5); -x_34 = lean_ctor_get(x_3, 0); -lean_inc(x_34); -x_35 = l_Lean_TraceState_Inhabited___closed__1; -x_36 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_36, 0, x_28); -lean_ctor_set(x_36, 1, x_29); -lean_ctor_set(x_36, 2, x_30); -lean_ctor_set(x_36, 3, x_31); -lean_ctor_set(x_36, 4, x_35); -lean_ctor_set(x_36, 5, x_33); -x_37 = l_Lean_Meta_isType(x_2, x_34, x_36); -if (lean_obj_tag(x_37) == 0) +if (lean_is_exclusive(x_26)) { + lean_ctor_release(x_26, 0); + lean_ctor_release(x_26, 1); + x_29 = x_26; +} else { + lean_dec_ref(x_26); + x_29 = lean_box(0); +} +x_30 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_28, x_21); +if (lean_is_scalar(x_29)) { + x_31 = lean_alloc_ctor(0, 2, 0); +} else { + x_31 = x_29; +} +lean_ctor_set(x_31, 0, x_27); +lean_ctor_set(x_31, 1, x_30); +return x_31; +} +} +} +lean_object* l_Lean_Elab_Term_isType(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: { -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_37, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); -if (lean_is_exclusive(x_37)) { - lean_ctor_release(x_37, 0); - lean_ctor_release(x_37, 1); - x_40 = x_37; -} else { - lean_dec_ref(x_37); - x_40 = lean_box(0); -} -x_41 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_39, x_32); -if (lean_is_scalar(x_40)) { - x_42 = lean_alloc_ctor(0, 2, 0); -} else { - x_42 = x_40; -} -lean_ctor_set(x_42, 0, x_38); -lean_ctor_set(x_42, 1, x_41); -return x_42; +lean_object* x_4; uint8_t x_5; +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +x_5 = !lean_is_exclusive(x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = lean_ctor_get(x_4, 4); +x_7 = lean_ctor_get(x_2, 0); +lean_inc(x_7); +x_8 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_4, 4, x_8); +x_9 = l_Lean_Meta_isType(x_1, x_7, x_4); +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_9, 1); +x_12 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_11, x_6); +lean_ctor_set(x_9, 1, x_12); +return x_9; } else { -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_37, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_37, 1); -lean_inc(x_44); -if (lean_is_exclusive(x_37)) { - lean_ctor_release(x_37, 0); - lean_ctor_release(x_37, 1); - x_45 = x_37; -} else { - lean_dec_ref(x_37); - x_45 = lean_box(0); -} -lean_inc(x_3); -x_46 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_43); -x_47 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_44, x_32); -if (lean_is_scalar(x_45)) { - x_48 = lean_alloc_ctor(1, 2, 0); -} else { - x_48 = x_45; -} -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; -} -} -} -} -lean_object* l_Lean_Elab_Term_isType___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_Elab_Term_isType(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} -lean_object* l_Lean_Elab_Term_isTypeFormer(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; uint8_t x_6; -x_5 = lean_ctor_get(x_4, 0); -lean_inc(x_5); -x_6 = !lean_is_exclusive(x_5); -if (x_6 == 0) -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_7 = lean_ctor_get(x_5, 4); -x_8 = lean_ctor_get(x_3, 0); -lean_inc(x_8); -x_9 = l_Lean_TraceState_Inhabited___closed__1; -lean_ctor_set(x_5, 4, x_9); -x_10 = l_Lean_Meta_isTypeFormer(x_2, x_8, x_5); -if (lean_obj_tag(x_10) == 0) -{ -uint8_t x_11; -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_10, 1); -x_13 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_12, x_7); -lean_ctor_set(x_10, 1, x_13); -return x_10; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_14 = lean_ctor_get(x_10, 0); -x_15 = lean_ctor_get(x_10, 1); -lean_inc(x_15); +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_13 = lean_ctor_get(x_9, 0); +x_14 = lean_ctor_get(x_9, 1); lean_inc(x_14); -lean_dec(x_10); -x_16 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_15, x_7); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_14); -lean_ctor_set(x_17, 1, x_16); -return x_17; -} -} -else -{ -uint8_t x_18; -x_18 = !lean_is_exclusive(x_10); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_10, 0); -x_20 = lean_ctor_get(x_10, 1); -lean_inc(x_3); -x_21 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_19); -x_22 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_20, x_7); -lean_ctor_set(x_10, 1, x_22); -lean_ctor_set(x_10, 0, x_21); -return x_10; -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_23 = lean_ctor_get(x_10, 0); -x_24 = lean_ctor_get(x_10, 1); -lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_10); -lean_inc(x_3); -x_25 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_23); -x_26 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_24, 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; -} -} -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_28 = lean_ctor_get(x_5, 0); -x_29 = lean_ctor_get(x_5, 1); -x_30 = lean_ctor_get(x_5, 2); -x_31 = lean_ctor_get(x_5, 3); -x_32 = lean_ctor_get(x_5, 4); -x_33 = lean_ctor_get(x_5, 5); -lean_inc(x_33); -lean_inc(x_32); -lean_inc(x_31); -lean_inc(x_30); -lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_5); -x_34 = lean_ctor_get(x_3, 0); -lean_inc(x_34); -x_35 = l_Lean_TraceState_Inhabited___closed__1; -x_36 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_36, 0, x_28); -lean_ctor_set(x_36, 1, x_29); -lean_ctor_set(x_36, 2, x_30); -lean_ctor_set(x_36, 3, x_31); -lean_ctor_set(x_36, 4, x_35); -lean_ctor_set(x_36, 5, x_33); -x_37 = l_Lean_Meta_isTypeFormer(x_2, x_34, x_36); -if (lean_obj_tag(x_37) == 0) -{ -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_37, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); -if (lean_is_exclusive(x_37)) { - lean_ctor_release(x_37, 0); - lean_ctor_release(x_37, 1); - x_40 = x_37; -} else { - lean_dec_ref(x_37); - x_40 = lean_box(0); -} -x_41 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_39, x_32); -if (lean_is_scalar(x_40)) { - x_42 = lean_alloc_ctor(0, 2, 0); -} else { - x_42 = x_40; -} -lean_ctor_set(x_42, 0, x_38); -lean_ctor_set(x_42, 1, x_41); -return x_42; -} -else -{ -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_37, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_37, 1); -lean_inc(x_44); -if (lean_is_exclusive(x_37)) { - lean_ctor_release(x_37, 0); - lean_ctor_release(x_37, 1); - x_45 = x_37; -} else { - lean_dec_ref(x_37); - x_45 = lean_box(0); -} -lean_inc(x_3); -x_46 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_43); -x_47 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_44, x_32); -if (lean_is_scalar(x_45)) { - x_48 = lean_alloc_ctor(1, 2, 0); -} else { - x_48 = x_45; -} -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; -} -} -} -} -lean_object* l_Lean_Elab_Term_isTypeFormer___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_Elab_Term_isTypeFormer(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} -lean_object* l_Lean_Elab_Term_isTypeFormerType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; uint8_t x_6; -x_5 = lean_ctor_get(x_4, 0); -lean_inc(x_5); -x_6 = !lean_is_exclusive(x_5); -if (x_6 == 0) -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_7 = lean_ctor_get(x_5, 4); -x_8 = lean_ctor_get(x_3, 0); -lean_inc(x_8); -x_9 = l_Lean_TraceState_Inhabited___closed__1; -lean_ctor_set(x_5, 4, x_9); -x_10 = l_Lean_Meta_isTypeFormerType___main(x_2, x_8, x_5); -if (lean_obj_tag(x_10) == 0) -{ -uint8_t x_11; -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_10, 1); -x_13 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_12, x_7); -lean_ctor_set(x_10, 1, x_13); -return x_10; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_14 = lean_ctor_get(x_10, 0); -x_15 = lean_ctor_get(x_10, 1); -lean_inc(x_15); -lean_inc(x_14); -lean_dec(x_10); -x_16 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_15, x_7); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_14); -lean_ctor_set(x_17, 1, x_16); -return x_17; -} -} -else -{ -uint8_t x_18; -x_18 = !lean_is_exclusive(x_10); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_10, 0); -x_20 = lean_ctor_get(x_10, 1); -lean_inc(x_3); -x_21 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_19); -x_22 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_20, x_7); -lean_ctor_set(x_10, 1, x_22); -lean_ctor_set(x_10, 0, x_21); -return x_10; -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_23 = lean_ctor_get(x_10, 0); -x_24 = lean_ctor_get(x_10, 1); -lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_10); -lean_inc(x_3); -x_25 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_23); -x_26 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_24, 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; -} -} -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_28 = lean_ctor_get(x_5, 0); -x_29 = lean_ctor_get(x_5, 1); -x_30 = lean_ctor_get(x_5, 2); -x_31 = lean_ctor_get(x_5, 3); -x_32 = lean_ctor_get(x_5, 4); -x_33 = lean_ctor_get(x_5, 5); -lean_inc(x_33); -lean_inc(x_32); -lean_inc(x_31); -lean_inc(x_30); -lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_5); -x_34 = lean_ctor_get(x_3, 0); -lean_inc(x_34); -x_35 = l_Lean_TraceState_Inhabited___closed__1; -x_36 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_36, 0, x_28); -lean_ctor_set(x_36, 1, x_29); -lean_ctor_set(x_36, 2, x_30); -lean_ctor_set(x_36, 3, x_31); -lean_ctor_set(x_36, 4, x_35); -lean_ctor_set(x_36, 5, x_33); -x_37 = l_Lean_Meta_isTypeFormerType___main(x_2, x_34, x_36); -if (lean_obj_tag(x_37) == 0) -{ -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_37, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); -if (lean_is_exclusive(x_37)) { - lean_ctor_release(x_37, 0); - lean_ctor_release(x_37, 1); - x_40 = x_37; -} else { - lean_dec_ref(x_37); - x_40 = lean_box(0); -} -x_41 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_39, x_32); -if (lean_is_scalar(x_40)) { - x_42 = lean_alloc_ctor(0, 2, 0); -} else { - x_42 = x_40; -} -lean_ctor_set(x_42, 0, x_38); -lean_ctor_set(x_42, 1, x_41); -return x_42; -} -else -{ -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_37, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_37, 1); -lean_inc(x_44); -if (lean_is_exclusive(x_37)) { - lean_ctor_release(x_37, 0); - lean_ctor_release(x_37, 1); - x_45 = x_37; -} else { - lean_dec_ref(x_37); - x_45 = lean_box(0); -} -lean_inc(x_3); -x_46 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_43); -x_47 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_44, x_32); -if (lean_is_scalar(x_45)) { - x_48 = lean_alloc_ctor(1, 2, 0); -} else { - x_48 = x_45; -} -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; -} -} -} -} -lean_object* l_Lean_Elab_Term_isTypeFormerType___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_Elab_Term_isTypeFormerType(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} -lean_object* l_Lean_Elab_Term_isDefEqNoConstantApprox(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; uint8_t x_7; -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = !lean_is_exclusive(x_6); -if (x_7 == 0) -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_8 = lean_ctor_get(x_6, 4); -x_9 = lean_ctor_get(x_4, 0); -lean_inc(x_9); -x_10 = l_Lean_TraceState_Inhabited___closed__1; -lean_ctor_set(x_6, 4, x_10); -x_11 = !lean_is_exclusive(x_9); -if (x_11 == 0) -{ -lean_object* x_12; uint8_t x_13; -x_12 = lean_ctor_get(x_9, 0); -x_13 = !lean_is_exclusive(x_12); -if (x_13 == 0) -{ -uint8_t x_14; lean_object* x_15; -x_14 = 1; -lean_ctor_set_uint8(x_12, sizeof(void*)*1, x_14); -lean_ctor_set_uint8(x_12, sizeof(void*)*1 + 1, x_14); -lean_ctor_set_uint8(x_12, sizeof(void*)*1 + 2, x_14); -x_15 = l_Lean_Meta_isExprDefEq(x_2, x_3, x_9, x_6); -if (lean_obj_tag(x_15) == 0) -{ -uint8_t x_16; -x_16 = !lean_is_exclusive(x_15); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_15, 1); -x_18 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_17, x_8); -lean_ctor_set(x_15, 1, x_18); -return x_15; -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_15, 0); -x_20 = lean_ctor_get(x_15, 1); -lean_inc(x_20); -lean_inc(x_19); -lean_dec(x_15); -x_21 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_20, x_8); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_19); -lean_ctor_set(x_22, 1, x_21); -return x_22; -} -} -else -{ -uint8_t x_23; -x_23 = !lean_is_exclusive(x_15); -if (x_23 == 0) -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_24 = lean_ctor_get(x_15, 0); -x_25 = lean_ctor_get(x_15, 1); -lean_inc(x_4); -x_26 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_1, x_24); -x_27 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_25, x_8); -lean_ctor_set(x_15, 1, x_27); -lean_ctor_set(x_15, 0, x_26); -return x_15; -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_28 = lean_ctor_get(x_15, 0); -x_29 = lean_ctor_get(x_15, 1); -lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_15); -lean_inc(x_4); -x_30 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_1, x_28); -x_31 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_29, x_8); -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 -{ -lean_object* x_33; uint8_t x_34; uint8_t x_35; uint8_t x_36; uint8_t x_37; uint8_t x_38; lean_object* x_39; lean_object* x_40; -x_33 = lean_ctor_get(x_12, 0); -x_34 = lean_ctor_get_uint8(x_12, sizeof(void*)*1 + 3); -x_35 = lean_ctor_get_uint8(x_12, sizeof(void*)*1 + 4); -x_36 = lean_ctor_get_uint8(x_12, sizeof(void*)*1 + 5); -x_37 = lean_ctor_get_uint8(x_12, sizeof(void*)*1 + 6); -lean_inc(x_33); -lean_dec(x_12); -x_38 = 1; -x_39 = lean_alloc_ctor(0, 1, 7); -lean_ctor_set(x_39, 0, x_33); -lean_ctor_set_uint8(x_39, sizeof(void*)*1, x_38); -lean_ctor_set_uint8(x_39, sizeof(void*)*1 + 1, x_38); -lean_ctor_set_uint8(x_39, sizeof(void*)*1 + 2, x_38); -lean_ctor_set_uint8(x_39, sizeof(void*)*1 + 3, x_34); -lean_ctor_set_uint8(x_39, sizeof(void*)*1 + 4, x_35); -lean_ctor_set_uint8(x_39, sizeof(void*)*1 + 5, x_36); -lean_ctor_set_uint8(x_39, sizeof(void*)*1 + 6, x_37); -lean_ctor_set(x_9, 0, x_39); -x_40 = l_Lean_Meta_isExprDefEq(x_2, x_3, x_9, x_6); -if (lean_obj_tag(x_40) == 0) -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_41 = lean_ctor_get(x_40, 0); -lean_inc(x_41); -x_42 = lean_ctor_get(x_40, 1); -lean_inc(x_42); -if (lean_is_exclusive(x_40)) { - lean_ctor_release(x_40, 0); - lean_ctor_release(x_40, 1); - x_43 = x_40; -} else { - lean_dec_ref(x_40); - x_43 = lean_box(0); -} -x_44 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_42, x_8); -if (lean_is_scalar(x_43)) { - x_45 = lean_alloc_ctor(0, 2, 0); -} else { - x_45 = x_43; -} -lean_ctor_set(x_45, 0, x_41); -lean_ctor_set(x_45, 1, x_44); -return x_45; -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_46 = lean_ctor_get(x_40, 0); -lean_inc(x_46); -x_47 = lean_ctor_get(x_40, 1); -lean_inc(x_47); -if (lean_is_exclusive(x_40)) { - lean_ctor_release(x_40, 0); - lean_ctor_release(x_40, 1); - x_48 = x_40; -} else { - lean_dec_ref(x_40); - x_48 = lean_box(0); -} -lean_inc(x_4); -x_49 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_1, x_46); -x_50 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_47, x_8); -if (lean_is_scalar(x_48)) { - x_51 = lean_alloc_ctor(1, 2, 0); -} else { - x_51 = x_48; -} -lean_ctor_set(x_51, 0, x_49); -lean_ctor_set(x_51, 1, x_50); -return x_51; -} -} -} -else -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; uint8_t x_59; uint8_t x_60; uint8_t x_61; lean_object* x_62; uint8_t x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_52 = lean_ctor_get(x_9, 0); -x_53 = lean_ctor_get(x_9, 1); -x_54 = lean_ctor_get(x_9, 2); -x_55 = lean_ctor_get(x_9, 3); -x_56 = lean_ctor_get(x_9, 4); -lean_inc(x_56); -lean_inc(x_55); -lean_inc(x_54); -lean_inc(x_53); -lean_inc(x_52); +lean_inc(x_13); lean_dec(x_9); -x_57 = lean_ctor_get(x_52, 0); -lean_inc(x_57); -x_58 = lean_ctor_get_uint8(x_52, sizeof(void*)*1 + 3); -x_59 = lean_ctor_get_uint8(x_52, sizeof(void*)*1 + 4); -x_60 = lean_ctor_get_uint8(x_52, sizeof(void*)*1 + 5); -x_61 = lean_ctor_get_uint8(x_52, sizeof(void*)*1 + 6); -if (lean_is_exclusive(x_52)) { - lean_ctor_release(x_52, 0); - x_62 = x_52; -} else { - lean_dec_ref(x_52); - x_62 = lean_box(0); +x_15 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_14, x_6); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_13); +lean_ctor_set(x_16, 1, x_15); +return x_16; } -x_63 = 1; -if (lean_is_scalar(x_62)) { - x_64 = lean_alloc_ctor(0, 1, 7); -} else { - x_64 = x_62; -} -lean_ctor_set(x_64, 0, x_57); -lean_ctor_set_uint8(x_64, sizeof(void*)*1, x_63); -lean_ctor_set_uint8(x_64, sizeof(void*)*1 + 1, x_63); -lean_ctor_set_uint8(x_64, sizeof(void*)*1 + 2, x_63); -lean_ctor_set_uint8(x_64, sizeof(void*)*1 + 3, x_58); -lean_ctor_set_uint8(x_64, sizeof(void*)*1 + 4, x_59); -lean_ctor_set_uint8(x_64, sizeof(void*)*1 + 5, x_60); -lean_ctor_set_uint8(x_64, sizeof(void*)*1 + 6, x_61); -x_65 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_65, 0, x_64); -lean_ctor_set(x_65, 1, x_53); -lean_ctor_set(x_65, 2, x_54); -lean_ctor_set(x_65, 3, x_55); -lean_ctor_set(x_65, 4, x_56); -x_66 = l_Lean_Meta_isExprDefEq(x_2, x_3, x_65, x_6); -if (lean_obj_tag(x_66) == 0) -{ -lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_67 = lean_ctor_get(x_66, 0); -lean_inc(x_67); -x_68 = lean_ctor_get(x_66, 1); -lean_inc(x_68); -if (lean_is_exclusive(x_66)) { - lean_ctor_release(x_66, 0); - lean_ctor_release(x_66, 1); - x_69 = x_66; -} else { - lean_dec_ref(x_66); - x_69 = lean_box(0); -} -x_70 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_68, x_8); -if (lean_is_scalar(x_69)) { - x_71 = lean_alloc_ctor(0, 2, 0); -} else { - x_71 = x_69; -} -lean_ctor_set(x_71, 0, x_67); -lean_ctor_set(x_71, 1, x_70); -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_object* x_77; -x_72 = lean_ctor_get(x_66, 0); -lean_inc(x_72); -x_73 = lean_ctor_get(x_66, 1); -lean_inc(x_73); -if (lean_is_exclusive(x_66)) { - lean_ctor_release(x_66, 0); - lean_ctor_release(x_66, 1); - x_74 = x_66; -} else { - lean_dec_ref(x_66); - x_74 = lean_box(0); +uint8_t x_17; +x_17 = !lean_is_exclusive(x_9); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_9, 0); +x_19 = lean_ctor_get(x_9, 1); +lean_inc(x_2); +x_20 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_18); +x_21 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_19, x_6); +lean_ctor_set(x_9, 1, x_21); +lean_ctor_set(x_9, 0, x_20); +return x_9; } -lean_inc(x_4); -x_75 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_1, x_72); -x_76 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_73, x_8); -if (lean_is_scalar(x_74)) { - x_77 = lean_alloc_ctor(1, 2, 0); -} else { - x_77 = x_74; -} -lean_ctor_set(x_77, 0, x_75); -lean_ctor_set(x_77, 1, x_76); -return x_77; +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_22 = lean_ctor_get(x_9, 0); +x_23 = lean_ctor_get(x_9, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_9); +lean_inc(x_2); +x_24 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_22); +x_25 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_23, x_6); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; } } } else { -lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; uint8_t x_94; uint8_t x_95; uint8_t x_96; uint8_t x_97; lean_object* x_98; uint8_t x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; -x_78 = lean_ctor_get(x_6, 0); -x_79 = lean_ctor_get(x_6, 1); -x_80 = lean_ctor_get(x_6, 2); -x_81 = lean_ctor_get(x_6, 3); -x_82 = lean_ctor_get(x_6, 4); -x_83 = lean_ctor_get(x_6, 5); -lean_inc(x_83); -lean_inc(x_82); -lean_inc(x_81); -lean_inc(x_80); -lean_inc(x_79); -lean_inc(x_78); -lean_dec(x_6); -x_84 = lean_ctor_get(x_4, 0); -lean_inc(x_84); -x_85 = l_Lean_TraceState_Inhabited___closed__1; -x_86 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_86, 0, x_78); -lean_ctor_set(x_86, 1, x_79); -lean_ctor_set(x_86, 2, x_80); -lean_ctor_set(x_86, 3, x_81); -lean_ctor_set(x_86, 4, x_85); -lean_ctor_set(x_86, 5, x_83); -x_87 = lean_ctor_get(x_84, 0); -lean_inc(x_87); -x_88 = lean_ctor_get(x_84, 1); -lean_inc(x_88); -x_89 = lean_ctor_get(x_84, 2); -lean_inc(x_89); -x_90 = lean_ctor_get(x_84, 3); -lean_inc(x_90); -x_91 = lean_ctor_get(x_84, 4); -lean_inc(x_91); -if (lean_is_exclusive(x_84)) { - lean_ctor_release(x_84, 0); - lean_ctor_release(x_84, 1); - lean_ctor_release(x_84, 2); - lean_ctor_release(x_84, 3); - lean_ctor_release(x_84, 4); - x_92 = x_84; -} else { - lean_dec_ref(x_84); - x_92 = lean_box(0); -} -x_93 = lean_ctor_get(x_87, 0); -lean_inc(x_93); -x_94 = lean_ctor_get_uint8(x_87, sizeof(void*)*1 + 3); -x_95 = lean_ctor_get_uint8(x_87, sizeof(void*)*1 + 4); -x_96 = lean_ctor_get_uint8(x_87, sizeof(void*)*1 + 5); -x_97 = lean_ctor_get_uint8(x_87, sizeof(void*)*1 + 6); -if (lean_is_exclusive(x_87)) { - lean_ctor_release(x_87, 0); - x_98 = x_87; -} else { - lean_dec_ref(x_87); - x_98 = lean_box(0); -} -x_99 = 1; -if (lean_is_scalar(x_98)) { - x_100 = lean_alloc_ctor(0, 1, 7); -} else { - x_100 = x_98; -} -lean_ctor_set(x_100, 0, x_93); -lean_ctor_set_uint8(x_100, sizeof(void*)*1, x_99); -lean_ctor_set_uint8(x_100, sizeof(void*)*1 + 1, x_99); -lean_ctor_set_uint8(x_100, sizeof(void*)*1 + 2, x_99); -lean_ctor_set_uint8(x_100, sizeof(void*)*1 + 3, x_94); -lean_ctor_set_uint8(x_100, sizeof(void*)*1 + 4, x_95); -lean_ctor_set_uint8(x_100, sizeof(void*)*1 + 5, x_96); -lean_ctor_set_uint8(x_100, sizeof(void*)*1 + 6, x_97); -if (lean_is_scalar(x_92)) { - x_101 = lean_alloc_ctor(0, 5, 0); -} else { - x_101 = x_92; -} -lean_ctor_set(x_101, 0, x_100); -lean_ctor_set(x_101, 1, x_88); -lean_ctor_set(x_101, 2, x_89); -lean_ctor_set(x_101, 3, x_90); -lean_ctor_set(x_101, 4, x_91); -x_102 = l_Lean_Meta_isExprDefEq(x_2, x_3, x_101, x_86); -if (lean_obj_tag(x_102) == 0) -{ -lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_103 = lean_ctor_get(x_102, 0); -lean_inc(x_103); -x_104 = lean_ctor_get(x_102, 1); -lean_inc(x_104); -if (lean_is_exclusive(x_102)) { - lean_ctor_release(x_102, 0); - lean_ctor_release(x_102, 1); - x_105 = x_102; -} else { - lean_dec_ref(x_102); - x_105 = lean_box(0); -} -x_106 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_104, x_82); -if (lean_is_scalar(x_105)) { - x_107 = lean_alloc_ctor(0, 2, 0); -} else { - x_107 = x_105; -} -lean_ctor_set(x_107, 0, x_103); -lean_ctor_set(x_107, 1, x_106); -return x_107; -} -else -{ -lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; -x_108 = lean_ctor_get(x_102, 0); -lean_inc(x_108); -x_109 = lean_ctor_get(x_102, 1); -lean_inc(x_109); -if (lean_is_exclusive(x_102)) { - lean_ctor_release(x_102, 0); - lean_ctor_release(x_102, 1); - x_110 = x_102; -} else { - lean_dec_ref(x_102); - x_110 = lean_box(0); -} -lean_inc(x_4); -x_111 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_1, x_108); -x_112 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_109, x_82); -if (lean_is_scalar(x_110)) { - x_113 = lean_alloc_ctor(1, 2, 0); -} else { - x_113 = x_110; -} -lean_ctor_set(x_113, 0, x_111); -lean_ctor_set(x_113, 1, x_112); -return x_113; -} -} -} -} -lean_object* l_Lean_Elab_Term_isDefEqNoConstantApprox___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_Lean_Elab_Term_isDefEqNoConstantApprox(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_1); -return x_6; -} -} -lean_object* l_Lean_Elab_Term_isDefEq(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; uint8_t x_7; -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = !lean_is_exclusive(x_6); -if (x_7 == 0) -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_8 = lean_ctor_get(x_6, 4); -x_9 = lean_ctor_get(x_4, 0); -lean_inc(x_9); -x_10 = l_Lean_TraceState_Inhabited___closed__1; -lean_ctor_set(x_6, 4, x_10); -x_11 = !lean_is_exclusive(x_9); -if (x_11 == 0) -{ -lean_object* x_12; uint8_t x_13; -x_12 = lean_ctor_get(x_9, 0); -x_13 = !lean_is_exclusive(x_12); -if (x_13 == 0) -{ -uint8_t x_14; lean_object* x_15; -x_14 = 1; -lean_ctor_set_uint8(x_12, sizeof(void*)*1, x_14); -lean_ctor_set_uint8(x_12, sizeof(void*)*1 + 1, x_14); -lean_ctor_set_uint8(x_12, sizeof(void*)*1 + 2, x_14); -lean_ctor_set_uint8(x_12, sizeof(void*)*1 + 3, x_14); -x_15 = l_Lean_Meta_isExprDefEq(x_2, x_3, x_9, x_6); -if (lean_obj_tag(x_15) == 0) -{ -uint8_t x_16; -x_16 = !lean_is_exclusive(x_15); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_15, 1); -x_18 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_17, x_8); -lean_ctor_set(x_15, 1, x_18); -return x_15; -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_15, 0); -x_20 = lean_ctor_get(x_15, 1); -lean_inc(x_20); -lean_inc(x_19); -lean_dec(x_15); -x_21 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_20, x_8); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_19); -lean_ctor_set(x_22, 1, x_21); -return x_22; -} -} -else -{ -uint8_t x_23; -x_23 = !lean_is_exclusive(x_15); -if (x_23 == 0) -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_24 = lean_ctor_get(x_15, 0); -x_25 = lean_ctor_get(x_15, 1); -lean_inc(x_4); -x_26 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_1, x_24); -x_27 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_25, x_8); -lean_ctor_set(x_15, 1, x_27); -lean_ctor_set(x_15, 0, x_26); -return x_15; -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_28 = lean_ctor_get(x_15, 0); -x_29 = lean_ctor_get(x_15, 1); +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_27 = lean_ctor_get(x_4, 0); +x_28 = lean_ctor_get(x_4, 1); +x_29 = lean_ctor_get(x_4, 2); +x_30 = lean_ctor_get(x_4, 3); +x_31 = lean_ctor_get(x_4, 4); +x_32 = lean_ctor_get(x_4, 5); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); lean_inc(x_29); lean_inc(x_28); -lean_dec(x_15); +lean_inc(x_27); +lean_dec(x_4); +x_33 = lean_ctor_get(x_2, 0); +lean_inc(x_33); +x_34 = l_Lean_TraceState_Inhabited___closed__1; +x_35 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_35, 0, x_27); +lean_ctor_set(x_35, 1, x_28); +lean_ctor_set(x_35, 2, x_29); +lean_ctor_set(x_35, 3, x_30); +lean_ctor_set(x_35, 4, x_34); +lean_ctor_set(x_35, 5, x_32); +x_36 = l_Lean_Meta_isType(x_1, x_33, x_35); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_36, 1); +lean_inc(x_38); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_39 = x_36; +} else { + lean_dec_ref(x_36); + x_39 = lean_box(0); +} +x_40 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_38, x_31); +if (lean_is_scalar(x_39)) { + x_41 = lean_alloc_ctor(0, 2, 0); +} else { + x_41 = x_39; +} +lean_ctor_set(x_41, 0, x_37); +lean_ctor_set(x_41, 1, x_40); +return x_41; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_42 = lean_ctor_get(x_36, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_36, 1); +lean_inc(x_43); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_44 = x_36; +} else { + lean_dec_ref(x_36); + x_44 = lean_box(0); +} +lean_inc(x_2); +x_45 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_42); +x_46 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_43, x_31); +if (lean_is_scalar(x_44)) { + x_47 = lean_alloc_ctor(1, 2, 0); +} else { + x_47 = x_44; +} +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +} +lean_object* l_Lean_Elab_Term_isTypeFormer(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_ctor_get(x_3, 0); lean_inc(x_4); -x_30 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_1, x_28); -x_31 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_29, x_8); -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; +x_5 = !lean_is_exclusive(x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = lean_ctor_get(x_4, 4); +x_7 = lean_ctor_get(x_2, 0); +lean_inc(x_7); +x_8 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_4, 4, x_8); +x_9 = l_Lean_Meta_isTypeFormer(x_1, x_7, x_4); +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_9, 1); +x_12 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_11, x_6); +lean_ctor_set(x_9, 1, x_12); +return x_9; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_13 = lean_ctor_get(x_9, 0); +x_14 = lean_ctor_get(x_9, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_9); +x_15 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_14, x_6); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_13); +lean_ctor_set(x_16, 1, x_15); +return x_16; +} +} +else +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_9); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_9, 0); +x_19 = lean_ctor_get(x_9, 1); +lean_inc(x_2); +x_20 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_18); +x_21 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_19, x_6); +lean_ctor_set(x_9, 1, x_21); +lean_ctor_set(x_9, 0, x_20); +return x_9; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_22 = lean_ctor_get(x_9, 0); +x_23 = lean_ctor_get(x_9, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_9); +lean_inc(x_2); +x_24 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_22); +x_25 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_23, x_6); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; } } } else { -lean_object* x_33; uint8_t x_34; uint8_t x_35; uint8_t x_36; uint8_t x_37; lean_object* x_38; lean_object* x_39; -x_33 = lean_ctor_get(x_12, 0); -x_34 = lean_ctor_get_uint8(x_12, sizeof(void*)*1 + 4); -x_35 = lean_ctor_get_uint8(x_12, sizeof(void*)*1 + 5); -x_36 = lean_ctor_get_uint8(x_12, sizeof(void*)*1 + 6); +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_27 = lean_ctor_get(x_4, 0); +x_28 = lean_ctor_get(x_4, 1); +x_29 = lean_ctor_get(x_4, 2); +x_30 = lean_ctor_get(x_4, 3); +x_31 = lean_ctor_get(x_4, 4); +x_32 = lean_ctor_get(x_4, 5); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_4); +x_33 = lean_ctor_get(x_2, 0); lean_inc(x_33); -lean_dec(x_12); +x_34 = l_Lean_TraceState_Inhabited___closed__1; +x_35 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_35, 0, x_27); +lean_ctor_set(x_35, 1, x_28); +lean_ctor_set(x_35, 2, x_29); +lean_ctor_set(x_35, 3, x_30); +lean_ctor_set(x_35, 4, x_34); +lean_ctor_set(x_35, 5, x_32); +x_36 = l_Lean_Meta_isTypeFormer(x_1, x_33, x_35); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_36, 1); +lean_inc(x_38); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_39 = x_36; +} else { + lean_dec_ref(x_36); + x_39 = lean_box(0); +} +x_40 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_38, x_31); +if (lean_is_scalar(x_39)) { + x_41 = lean_alloc_ctor(0, 2, 0); +} else { + x_41 = x_39; +} +lean_ctor_set(x_41, 0, x_37); +lean_ctor_set(x_41, 1, x_40); +return x_41; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_42 = lean_ctor_get(x_36, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_36, 1); +lean_inc(x_43); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_44 = x_36; +} else { + lean_dec_ref(x_36); + x_44 = lean_box(0); +} +lean_inc(x_2); +x_45 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_42); +x_46 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_43, x_31); +if (lean_is_scalar(x_44)) { + x_47 = lean_alloc_ctor(1, 2, 0); +} else { + x_47 = x_44; +} +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +} +lean_object* l_Lean_Elab_Term_isTypeFormerType(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +x_5 = !lean_is_exclusive(x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = lean_ctor_get(x_4, 4); +x_7 = lean_ctor_get(x_2, 0); +lean_inc(x_7); +x_8 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_4, 4, x_8); +x_9 = l_Lean_Meta_isTypeFormerType___main(x_1, x_7, x_4); +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_9, 1); +x_12 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_11, x_6); +lean_ctor_set(x_9, 1, x_12); +return x_9; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_13 = lean_ctor_get(x_9, 0); +x_14 = lean_ctor_get(x_9, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_9); +x_15 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_14, x_6); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_13); +lean_ctor_set(x_16, 1, x_15); +return x_16; +} +} +else +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_9); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_9, 0); +x_19 = lean_ctor_get(x_9, 1); +lean_inc(x_2); +x_20 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_18); +x_21 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_19, x_6); +lean_ctor_set(x_9, 1, x_21); +lean_ctor_set(x_9, 0, x_20); +return x_9; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_22 = lean_ctor_get(x_9, 0); +x_23 = lean_ctor_get(x_9, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_9); +lean_inc(x_2); +x_24 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_22); +x_25 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_23, x_6); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; +} +} +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_27 = lean_ctor_get(x_4, 0); +x_28 = lean_ctor_get(x_4, 1); +x_29 = lean_ctor_get(x_4, 2); +x_30 = lean_ctor_get(x_4, 3); +x_31 = lean_ctor_get(x_4, 4); +x_32 = lean_ctor_get(x_4, 5); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_4); +x_33 = lean_ctor_get(x_2, 0); +lean_inc(x_33); +x_34 = l_Lean_TraceState_Inhabited___closed__1; +x_35 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_35, 0, x_27); +lean_ctor_set(x_35, 1, x_28); +lean_ctor_set(x_35, 2, x_29); +lean_ctor_set(x_35, 3, x_30); +lean_ctor_set(x_35, 4, x_34); +lean_ctor_set(x_35, 5, x_32); +x_36 = l_Lean_Meta_isTypeFormerType___main(x_1, x_33, x_35); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_36, 1); +lean_inc(x_38); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_39 = x_36; +} else { + lean_dec_ref(x_36); + x_39 = lean_box(0); +} +x_40 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_38, x_31); +if (lean_is_scalar(x_39)) { + x_41 = lean_alloc_ctor(0, 2, 0); +} else { + x_41 = x_39; +} +lean_ctor_set(x_41, 0, x_37); +lean_ctor_set(x_41, 1, x_40); +return x_41; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_42 = lean_ctor_get(x_36, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_36, 1); +lean_inc(x_43); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_44 = x_36; +} else { + lean_dec_ref(x_36); + x_44 = lean_box(0); +} +lean_inc(x_2); +x_45 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_42); +x_46 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_43, x_31); +if (lean_is_scalar(x_44)) { + x_47 = lean_alloc_ctor(1, 2, 0); +} else { + x_47 = x_44; +} +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +} +lean_object* l_Lean_Elab_Term_isDefEqNoConstantApprox(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; uint8_t x_6; +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +x_6 = !lean_is_exclusive(x_5); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_7 = lean_ctor_get(x_5, 4); +x_8 = lean_ctor_get(x_3, 0); +lean_inc(x_8); +x_9 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_5, 4, x_9); +x_10 = !lean_is_exclusive(x_8); +if (x_10 == 0) +{ +lean_object* x_11; uint8_t x_12; +x_11 = lean_ctor_get(x_8, 0); +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) +{ +uint8_t x_13; lean_object* x_14; +x_13 = 1; +lean_ctor_set_uint8(x_11, sizeof(void*)*1, x_13); +lean_ctor_set_uint8(x_11, sizeof(void*)*1 + 1, x_13); +lean_ctor_set_uint8(x_11, sizeof(void*)*1 + 2, x_13); +x_14 = l_Lean_Meta_isExprDefEq(x_1, x_2, x_8, x_5); +if (lean_obj_tag(x_14) == 0) +{ +uint8_t x_15; +x_15 = !lean_is_exclusive(x_14); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_14, 1); +x_17 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_16, x_7); +lean_ctor_set(x_14, 1, x_17); +return x_14; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_14, 0); +x_19 = lean_ctor_get(x_14, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_14); +x_20 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_19, x_7); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_18); +lean_ctor_set(x_21, 1, x_20); +return x_21; +} +} +else +{ +uint8_t x_22; +x_22 = !lean_is_exclusive(x_14); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_23 = lean_ctor_get(x_14, 0); +x_24 = lean_ctor_get(x_14, 1); +lean_inc(x_3); +x_25 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_23); +x_26 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_24, x_7); +lean_ctor_set(x_14, 1, x_26); +lean_ctor_set(x_14, 0, x_25); +return x_14; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_27 = lean_ctor_get(x_14, 0); +x_28 = lean_ctor_get(x_14, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_14); +lean_inc(x_3); +x_29 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_27); +x_30 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_28, x_7); +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; +} +} +} +else +{ +lean_object* x_32; uint8_t x_33; uint8_t x_34; uint8_t x_35; uint8_t x_36; uint8_t x_37; lean_object* x_38; lean_object* x_39; +x_32 = lean_ctor_get(x_11, 0); +x_33 = lean_ctor_get_uint8(x_11, sizeof(void*)*1 + 3); +x_34 = lean_ctor_get_uint8(x_11, sizeof(void*)*1 + 4); +x_35 = lean_ctor_get_uint8(x_11, sizeof(void*)*1 + 5); +x_36 = lean_ctor_get_uint8(x_11, sizeof(void*)*1 + 6); +lean_inc(x_32); +lean_dec(x_11); x_37 = 1; x_38 = lean_alloc_ctor(0, 1, 7); -lean_ctor_set(x_38, 0, x_33); +lean_ctor_set(x_38, 0, x_32); lean_ctor_set_uint8(x_38, sizeof(void*)*1, x_37); lean_ctor_set_uint8(x_38, sizeof(void*)*1 + 1, x_37); lean_ctor_set_uint8(x_38, sizeof(void*)*1 + 2, x_37); -lean_ctor_set_uint8(x_38, sizeof(void*)*1 + 3, x_37); +lean_ctor_set_uint8(x_38, sizeof(void*)*1 + 3, x_33); lean_ctor_set_uint8(x_38, sizeof(void*)*1 + 4, x_34); lean_ctor_set_uint8(x_38, sizeof(void*)*1 + 5, x_35); lean_ctor_set_uint8(x_38, sizeof(void*)*1 + 6, x_36); -lean_ctor_set(x_9, 0, x_38); -x_39 = l_Lean_Meta_isExprDefEq(x_2, x_3, x_9, x_6); +lean_ctor_set(x_8, 0, x_38); +x_39 = l_Lean_Meta_isExprDefEq(x_1, x_2, x_8, x_5); if (lean_obj_tag(x_39) == 0) { lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; @@ -6028,7 +5726,7 @@ if (lean_is_exclusive(x_39)) { lean_dec_ref(x_39); x_42 = lean_box(0); } -x_43 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_41, x_8); +x_43 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_41, x_7); if (lean_is_scalar(x_42)) { x_44 = lean_alloc_ctor(0, 2, 0); } else { @@ -6053,9 +5751,9 @@ if (lean_is_exclusive(x_39)) { lean_dec_ref(x_39); x_47 = lean_box(0); } -lean_inc(x_4); -x_48 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_1, x_45); -x_49 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_46, x_8); +lean_inc(x_3); +x_48 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_45); +x_49 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_46, x_7); if (lean_is_scalar(x_47)) { x_50 = lean_alloc_ctor(1, 2, 0); } else { @@ -6069,359 +5767,358 @@ return x_50; } else { -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; uint8_t x_58; uint8_t x_59; lean_object* x_60; uint8_t x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_51 = lean_ctor_get(x_9, 0); -x_52 = lean_ctor_get(x_9, 1); -x_53 = lean_ctor_get(x_9, 2); -x_54 = lean_ctor_get(x_9, 3); -x_55 = lean_ctor_get(x_9, 4); +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; uint8_t x_58; uint8_t x_59; uint8_t x_60; lean_object* x_61; uint8_t x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_51 = lean_ctor_get(x_8, 0); +x_52 = lean_ctor_get(x_8, 1); +x_53 = lean_ctor_get(x_8, 2); +x_54 = lean_ctor_get(x_8, 3); +x_55 = lean_ctor_get(x_8, 4); lean_inc(x_55); lean_inc(x_54); lean_inc(x_53); lean_inc(x_52); lean_inc(x_51); -lean_dec(x_9); +lean_dec(x_8); x_56 = lean_ctor_get(x_51, 0); lean_inc(x_56); -x_57 = lean_ctor_get_uint8(x_51, sizeof(void*)*1 + 4); -x_58 = lean_ctor_get_uint8(x_51, sizeof(void*)*1 + 5); -x_59 = lean_ctor_get_uint8(x_51, sizeof(void*)*1 + 6); +x_57 = lean_ctor_get_uint8(x_51, sizeof(void*)*1 + 3); +x_58 = lean_ctor_get_uint8(x_51, sizeof(void*)*1 + 4); +x_59 = lean_ctor_get_uint8(x_51, sizeof(void*)*1 + 5); +x_60 = lean_ctor_get_uint8(x_51, sizeof(void*)*1 + 6); if (lean_is_exclusive(x_51)) { lean_ctor_release(x_51, 0); - x_60 = x_51; + x_61 = x_51; } else { lean_dec_ref(x_51); - x_60 = lean_box(0); + x_61 = lean_box(0); } -x_61 = 1; -if (lean_is_scalar(x_60)) { - x_62 = lean_alloc_ctor(0, 1, 7); +x_62 = 1; +if (lean_is_scalar(x_61)) { + x_63 = lean_alloc_ctor(0, 1, 7); } else { - x_62 = x_60; + x_63 = x_61; } -lean_ctor_set(x_62, 0, x_56); -lean_ctor_set_uint8(x_62, sizeof(void*)*1, x_61); -lean_ctor_set_uint8(x_62, sizeof(void*)*1 + 1, x_61); -lean_ctor_set_uint8(x_62, sizeof(void*)*1 + 2, x_61); -lean_ctor_set_uint8(x_62, sizeof(void*)*1 + 3, x_61); -lean_ctor_set_uint8(x_62, sizeof(void*)*1 + 4, x_57); -lean_ctor_set_uint8(x_62, sizeof(void*)*1 + 5, x_58); -lean_ctor_set_uint8(x_62, sizeof(void*)*1 + 6, x_59); -x_63 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_63, 0, x_62); -lean_ctor_set(x_63, 1, x_52); -lean_ctor_set(x_63, 2, x_53); -lean_ctor_set(x_63, 3, x_54); -lean_ctor_set(x_63, 4, x_55); -x_64 = l_Lean_Meta_isExprDefEq(x_2, x_3, x_63, x_6); -if (lean_obj_tag(x_64) == 0) +lean_ctor_set(x_63, 0, x_56); +lean_ctor_set_uint8(x_63, sizeof(void*)*1, x_62); +lean_ctor_set_uint8(x_63, sizeof(void*)*1 + 1, x_62); +lean_ctor_set_uint8(x_63, sizeof(void*)*1 + 2, x_62); +lean_ctor_set_uint8(x_63, sizeof(void*)*1 + 3, x_57); +lean_ctor_set_uint8(x_63, sizeof(void*)*1 + 4, x_58); +lean_ctor_set_uint8(x_63, sizeof(void*)*1 + 5, x_59); +lean_ctor_set_uint8(x_63, sizeof(void*)*1 + 6, x_60); +x_64 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_52); +lean_ctor_set(x_64, 2, x_53); +lean_ctor_set(x_64, 3, x_54); +lean_ctor_set(x_64, 4, x_55); +x_65 = l_Lean_Meta_isExprDefEq(x_1, x_2, x_64, x_5); +if (lean_obj_tag(x_65) == 0) { -lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_65 = lean_ctor_get(x_64, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_64, 1); +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_66 = lean_ctor_get(x_65, 0); lean_inc(x_66); -if (lean_is_exclusive(x_64)) { - lean_ctor_release(x_64, 0); - lean_ctor_release(x_64, 1); - x_67 = x_64; +x_67 = lean_ctor_get(x_65, 1); +lean_inc(x_67); +if (lean_is_exclusive(x_65)) { + lean_ctor_release(x_65, 0); + lean_ctor_release(x_65, 1); + x_68 = x_65; } else { - lean_dec_ref(x_64); - x_67 = lean_box(0); + lean_dec_ref(x_65); + x_68 = lean_box(0); } -x_68 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_66, x_8); -if (lean_is_scalar(x_67)) { - x_69 = lean_alloc_ctor(0, 2, 0); +x_69 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_67, x_7); +if (lean_is_scalar(x_68)) { + x_70 = lean_alloc_ctor(0, 2, 0); } else { - x_69 = x_67; + x_70 = x_68; } -lean_ctor_set(x_69, 0, x_65); -lean_ctor_set(x_69, 1, x_68); -return x_69; +lean_ctor_set(x_70, 0, x_66); +lean_ctor_set(x_70, 1, x_69); +return x_70; } else { -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_70 = lean_ctor_get(x_64, 0); -lean_inc(x_70); -x_71 = lean_ctor_get(x_64, 1); +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_71 = lean_ctor_get(x_65, 0); lean_inc(x_71); -if (lean_is_exclusive(x_64)) { - lean_ctor_release(x_64, 0); - lean_ctor_release(x_64, 1); - x_72 = x_64; +x_72 = lean_ctor_get(x_65, 1); +lean_inc(x_72); +if (lean_is_exclusive(x_65)) { + lean_ctor_release(x_65, 0); + lean_ctor_release(x_65, 1); + x_73 = x_65; } else { - lean_dec_ref(x_64); - x_72 = lean_box(0); + lean_dec_ref(x_65); + x_73 = lean_box(0); } -lean_inc(x_4); -x_73 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_1, x_70); -x_74 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_71, x_8); -if (lean_is_scalar(x_72)) { - x_75 = lean_alloc_ctor(1, 2, 0); +lean_inc(x_3); +x_74 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_71); +x_75 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_72, x_7); +if (lean_is_scalar(x_73)) { + x_76 = lean_alloc_ctor(1, 2, 0); } else { - x_75 = x_72; + x_76 = x_73; } -lean_ctor_set(x_75, 0, x_73); -lean_ctor_set(x_75, 1, x_74); -return x_75; +lean_ctor_set(x_76, 0, x_74); +lean_ctor_set(x_76, 1, x_75); +return x_76; } } } else { -lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; uint8_t x_92; uint8_t x_93; uint8_t x_94; lean_object* x_95; uint8_t x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_76 = lean_ctor_get(x_6, 0); -x_77 = lean_ctor_get(x_6, 1); -x_78 = lean_ctor_get(x_6, 2); -x_79 = lean_ctor_get(x_6, 3); -x_80 = lean_ctor_get(x_6, 4); -x_81 = lean_ctor_get(x_6, 5); +lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; uint8_t x_93; uint8_t x_94; uint8_t x_95; uint8_t x_96; lean_object* x_97; uint8_t x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_77 = lean_ctor_get(x_5, 0); +x_78 = lean_ctor_get(x_5, 1); +x_79 = lean_ctor_get(x_5, 2); +x_80 = lean_ctor_get(x_5, 3); +x_81 = lean_ctor_get(x_5, 4); +x_82 = lean_ctor_get(x_5, 5); +lean_inc(x_82); lean_inc(x_81); lean_inc(x_80); lean_inc(x_79); lean_inc(x_78); lean_inc(x_77); -lean_inc(x_76); -lean_dec(x_6); -x_82 = lean_ctor_get(x_4, 0); -lean_inc(x_82); -x_83 = l_Lean_TraceState_Inhabited___closed__1; -x_84 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_84, 0, x_76); -lean_ctor_set(x_84, 1, x_77); -lean_ctor_set(x_84, 2, x_78); -lean_ctor_set(x_84, 3, x_79); -lean_ctor_set(x_84, 4, x_83); -lean_ctor_set(x_84, 5, x_81); -x_85 = lean_ctor_get(x_82, 0); -lean_inc(x_85); -x_86 = lean_ctor_get(x_82, 1); +lean_dec(x_5); +x_83 = lean_ctor_get(x_3, 0); +lean_inc(x_83); +x_84 = l_Lean_TraceState_Inhabited___closed__1; +x_85 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_85, 0, x_77); +lean_ctor_set(x_85, 1, x_78); +lean_ctor_set(x_85, 2, x_79); +lean_ctor_set(x_85, 3, x_80); +lean_ctor_set(x_85, 4, x_84); +lean_ctor_set(x_85, 5, x_82); +x_86 = lean_ctor_get(x_83, 0); lean_inc(x_86); -x_87 = lean_ctor_get(x_82, 2); +x_87 = lean_ctor_get(x_83, 1); lean_inc(x_87); -x_88 = lean_ctor_get(x_82, 3); +x_88 = lean_ctor_get(x_83, 2); lean_inc(x_88); -x_89 = lean_ctor_get(x_82, 4); +x_89 = lean_ctor_get(x_83, 3); lean_inc(x_89); -if (lean_is_exclusive(x_82)) { - lean_ctor_release(x_82, 0); - lean_ctor_release(x_82, 1); - lean_ctor_release(x_82, 2); - lean_ctor_release(x_82, 3); - lean_ctor_release(x_82, 4); - x_90 = x_82; +x_90 = lean_ctor_get(x_83, 4); +lean_inc(x_90); +if (lean_is_exclusive(x_83)) { + lean_ctor_release(x_83, 0); + lean_ctor_release(x_83, 1); + lean_ctor_release(x_83, 2); + lean_ctor_release(x_83, 3); + lean_ctor_release(x_83, 4); + x_91 = x_83; } else { - lean_dec_ref(x_82); - x_90 = lean_box(0); + lean_dec_ref(x_83); + x_91 = lean_box(0); } -x_91 = lean_ctor_get(x_85, 0); -lean_inc(x_91); -x_92 = lean_ctor_get_uint8(x_85, sizeof(void*)*1 + 4); -x_93 = lean_ctor_get_uint8(x_85, sizeof(void*)*1 + 5); -x_94 = lean_ctor_get_uint8(x_85, sizeof(void*)*1 + 6); -if (lean_is_exclusive(x_85)) { - lean_ctor_release(x_85, 0); - x_95 = x_85; +x_92 = lean_ctor_get(x_86, 0); +lean_inc(x_92); +x_93 = lean_ctor_get_uint8(x_86, sizeof(void*)*1 + 3); +x_94 = lean_ctor_get_uint8(x_86, sizeof(void*)*1 + 4); +x_95 = lean_ctor_get_uint8(x_86, sizeof(void*)*1 + 5); +x_96 = lean_ctor_get_uint8(x_86, sizeof(void*)*1 + 6); +if (lean_is_exclusive(x_86)) { + lean_ctor_release(x_86, 0); + x_97 = x_86; } else { - lean_dec_ref(x_85); - x_95 = lean_box(0); + lean_dec_ref(x_86); + x_97 = lean_box(0); } -x_96 = 1; -if (lean_is_scalar(x_95)) { - x_97 = lean_alloc_ctor(0, 1, 7); +x_98 = 1; +if (lean_is_scalar(x_97)) { + x_99 = lean_alloc_ctor(0, 1, 7); } else { - x_97 = x_95; + x_99 = x_97; } -lean_ctor_set(x_97, 0, x_91); -lean_ctor_set_uint8(x_97, sizeof(void*)*1, x_96); -lean_ctor_set_uint8(x_97, sizeof(void*)*1 + 1, x_96); -lean_ctor_set_uint8(x_97, sizeof(void*)*1 + 2, x_96); -lean_ctor_set_uint8(x_97, sizeof(void*)*1 + 3, x_96); -lean_ctor_set_uint8(x_97, sizeof(void*)*1 + 4, x_92); -lean_ctor_set_uint8(x_97, sizeof(void*)*1 + 5, x_93); -lean_ctor_set_uint8(x_97, sizeof(void*)*1 + 6, x_94); -if (lean_is_scalar(x_90)) { - x_98 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_99, 0, x_92); +lean_ctor_set_uint8(x_99, sizeof(void*)*1, x_98); +lean_ctor_set_uint8(x_99, sizeof(void*)*1 + 1, x_98); +lean_ctor_set_uint8(x_99, sizeof(void*)*1 + 2, x_98); +lean_ctor_set_uint8(x_99, sizeof(void*)*1 + 3, x_93); +lean_ctor_set_uint8(x_99, sizeof(void*)*1 + 4, x_94); +lean_ctor_set_uint8(x_99, sizeof(void*)*1 + 5, x_95); +lean_ctor_set_uint8(x_99, sizeof(void*)*1 + 6, x_96); +if (lean_is_scalar(x_91)) { + x_100 = lean_alloc_ctor(0, 5, 0); } else { - x_98 = x_90; + x_100 = x_91; } -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_86); -lean_ctor_set(x_98, 2, x_87); -lean_ctor_set(x_98, 3, x_88); -lean_ctor_set(x_98, 4, x_89); -x_99 = l_Lean_Meta_isExprDefEq(x_2, x_3, x_98, x_84); -if (lean_obj_tag(x_99) == 0) +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_87); +lean_ctor_set(x_100, 2, x_88); +lean_ctor_set(x_100, 3, x_89); +lean_ctor_set(x_100, 4, x_90); +x_101 = l_Lean_Meta_isExprDefEq(x_1, x_2, x_100, x_85); +if (lean_obj_tag(x_101) == 0) { -lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_100 = lean_ctor_get(x_99, 0); -lean_inc(x_100); -x_101 = lean_ctor_get(x_99, 1); -lean_inc(x_101); -if (lean_is_exclusive(x_99)) { - lean_ctor_release(x_99, 0); - lean_ctor_release(x_99, 1); - x_102 = x_99; +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_102 = lean_ctor_get(x_101, 0); +lean_inc(x_102); +x_103 = lean_ctor_get(x_101, 1); +lean_inc(x_103); +if (lean_is_exclusive(x_101)) { + lean_ctor_release(x_101, 0); + lean_ctor_release(x_101, 1); + x_104 = x_101; } else { - lean_dec_ref(x_99); - x_102 = lean_box(0); + lean_dec_ref(x_101); + x_104 = lean_box(0); } -x_103 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_101, x_80); -if (lean_is_scalar(x_102)) { - x_104 = lean_alloc_ctor(0, 2, 0); +x_105 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_103, x_81); +if (lean_is_scalar(x_104)) { + x_106 = lean_alloc_ctor(0, 2, 0); } else { - x_104 = x_102; + x_106 = x_104; } -lean_ctor_set(x_104, 0, x_100); -lean_ctor_set(x_104, 1, x_103); -return x_104; +lean_ctor_set(x_106, 0, x_102); +lean_ctor_set(x_106, 1, x_105); +return x_106; } else { -lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; -x_105 = lean_ctor_get(x_99, 0); -lean_inc(x_105); -x_106 = lean_ctor_get(x_99, 1); -lean_inc(x_106); -if (lean_is_exclusive(x_99)) { - lean_ctor_release(x_99, 0); - lean_ctor_release(x_99, 1); - x_107 = x_99; +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; +x_107 = lean_ctor_get(x_101, 0); +lean_inc(x_107); +x_108 = lean_ctor_get(x_101, 1); +lean_inc(x_108); +if (lean_is_exclusive(x_101)) { + lean_ctor_release(x_101, 0); + lean_ctor_release(x_101, 1); + x_109 = x_101; } else { - lean_dec_ref(x_99); - x_107 = lean_box(0); + lean_dec_ref(x_101); + x_109 = lean_box(0); } -lean_inc(x_4); -x_108 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_1, x_105); -x_109 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_106, x_80); -if (lean_is_scalar(x_107)) { - x_110 = lean_alloc_ctor(1, 2, 0); +lean_inc(x_3); +x_110 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_107); +x_111 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_108, x_81); +if (lean_is_scalar(x_109)) { + x_112 = lean_alloc_ctor(1, 2, 0); } else { - x_110 = x_107; + x_112 = x_109; } -lean_ctor_set(x_110, 0, x_108); -lean_ctor_set(x_110, 1, x_109); -return x_110; +lean_ctor_set(x_112, 0, x_110); +lean_ctor_set(x_112, 1, x_111); +return x_112; } } } } -lean_object* l_Lean_Elab_Term_isDefEq___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_Elab_Term_isDefEq(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_6; -x_6 = l_Lean_Elab_Term_isDefEq(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_1); -return x_6; -} -} -lean_object* l_Lean_Elab_Term_isLevelDefEq(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: +lean_object* x_5; uint8_t x_6; +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +x_6 = !lean_is_exclusive(x_5); +if (x_6 == 0) { -lean_object* x_6; uint8_t x_7; -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = !lean_is_exclusive(x_6); -if (x_7 == 0) +lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_7 = lean_ctor_get(x_5, 4); +x_8 = lean_ctor_get(x_3, 0); +lean_inc(x_8); +x_9 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_5, 4, x_9); +x_10 = !lean_is_exclusive(x_8); +if (x_10 == 0) { -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_8 = lean_ctor_get(x_6, 4); -x_9 = lean_ctor_get(x_4, 0); -lean_inc(x_9); -x_10 = l_Lean_TraceState_Inhabited___closed__1; -lean_ctor_set(x_6, 4, x_10); -x_11 = l_Lean_Meta_isLevelDefEq(x_2, x_3, x_9, x_6); -lean_dec(x_9); -if (lean_obj_tag(x_11) == 0) -{ -uint8_t x_12; +lean_object* x_11; uint8_t x_12; +x_11 = lean_ctor_get(x_8, 0); x_12 = !lean_is_exclusive(x_11); if (x_12 == 0) { -lean_object* x_13; lean_object* x_14; -x_13 = lean_ctor_get(x_11, 1); -x_14 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_13, x_8); -lean_ctor_set(x_11, 1, x_14); -return x_11; +uint8_t x_13; lean_object* x_14; +x_13 = 1; +lean_ctor_set_uint8(x_11, sizeof(void*)*1, x_13); +lean_ctor_set_uint8(x_11, sizeof(void*)*1 + 1, x_13); +lean_ctor_set_uint8(x_11, sizeof(void*)*1 + 2, x_13); +lean_ctor_set_uint8(x_11, sizeof(void*)*1 + 3, x_13); +x_14 = l_Lean_Meta_isExprDefEq(x_1, x_2, x_8, x_5); +if (lean_obj_tag(x_14) == 0) +{ +uint8_t x_15; +x_15 = !lean_is_exclusive(x_14); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_14, 1); +x_17 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_16, x_7); +lean_ctor_set(x_14, 1, x_17); +return x_14; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_15 = lean_ctor_get(x_11, 0); -x_16 = lean_ctor_get(x_11, 1); -lean_inc(x_16); -lean_inc(x_15); -lean_dec(x_11); -x_17 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_16, x_8); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_15); -lean_ctor_set(x_18, 1, x_17); -return x_18; +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_14, 0); +x_19 = lean_ctor_get(x_14, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_14); +x_20 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_19, x_7); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_18); +lean_ctor_set(x_21, 1, x_20); +return x_21; } } else { -uint8_t x_19; -x_19 = !lean_is_exclusive(x_11); -if (x_19 == 0) +uint8_t x_22; +x_22 = !lean_is_exclusive(x_14); +if (x_22 == 0) { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_20 = lean_ctor_get(x_11, 0); -x_21 = lean_ctor_get(x_11, 1); -lean_inc(x_4); -x_22 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_1, x_20); -x_23 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_21, x_8); -lean_ctor_set(x_11, 1, x_23); -lean_ctor_set(x_11, 0, x_22); -return x_11; +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_23 = lean_ctor_get(x_14, 0); +x_24 = lean_ctor_get(x_14, 1); +lean_inc(x_3); +x_25 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_23); +x_26 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_24, x_7); +lean_ctor_set(x_14, 1, x_26); +lean_ctor_set(x_14, 0, x_25); +return x_14; } else { -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_11, 0); -x_25 = lean_ctor_get(x_11, 1); -lean_inc(x_25); -lean_inc(x_24); -lean_dec(x_11); -lean_inc(x_4); -x_26 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_1, x_24); -x_27 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_25, x_8); -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; +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_27 = lean_ctor_get(x_14, 0); +x_28 = lean_ctor_get(x_14, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_14); +lean_inc(x_3); +x_29 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_27); +x_30 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_28, x_7); +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; } } } else { -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_29 = lean_ctor_get(x_6, 0); -x_30 = lean_ctor_get(x_6, 1); -x_31 = lean_ctor_get(x_6, 2); -x_32 = lean_ctor_get(x_6, 3); -x_33 = lean_ctor_get(x_6, 4); -x_34 = lean_ctor_get(x_6, 5); -lean_inc(x_34); -lean_inc(x_33); +lean_object* x_32; uint8_t x_33; uint8_t x_34; uint8_t x_35; uint8_t x_36; lean_object* x_37; lean_object* x_38; +x_32 = lean_ctor_get(x_11, 0); +x_33 = lean_ctor_get_uint8(x_11, sizeof(void*)*1 + 4); +x_34 = lean_ctor_get_uint8(x_11, sizeof(void*)*1 + 5); +x_35 = lean_ctor_get_uint8(x_11, sizeof(void*)*1 + 6); lean_inc(x_32); -lean_inc(x_31); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_6); -x_35 = lean_ctor_get(x_4, 0); -lean_inc(x_35); -x_36 = l_Lean_TraceState_Inhabited___closed__1; -x_37 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_37, 0, x_29); -lean_ctor_set(x_37, 1, x_30); -lean_ctor_set(x_37, 2, x_31); -lean_ctor_set(x_37, 3, x_32); -lean_ctor_set(x_37, 4, x_36); -lean_ctor_set(x_37, 5, x_34); -x_38 = l_Lean_Meta_isLevelDefEq(x_2, x_3, x_35, x_37); -lean_dec(x_35); +lean_dec(x_11); +x_36 = 1; +x_37 = lean_alloc_ctor(0, 1, 7); +lean_ctor_set(x_37, 0, x_32); +lean_ctor_set_uint8(x_37, sizeof(void*)*1, x_36); +lean_ctor_set_uint8(x_37, sizeof(void*)*1 + 1, x_36); +lean_ctor_set_uint8(x_37, sizeof(void*)*1 + 2, x_36); +lean_ctor_set_uint8(x_37, sizeof(void*)*1 + 3, x_36); +lean_ctor_set_uint8(x_37, sizeof(void*)*1 + 4, x_33); +lean_ctor_set_uint8(x_37, sizeof(void*)*1 + 5, x_34); +lean_ctor_set_uint8(x_37, sizeof(void*)*1 + 6, x_35); +lean_ctor_set(x_8, 0, x_37); +x_38 = l_Lean_Meta_isExprDefEq(x_1, x_2, x_8, x_5); if (lean_obj_tag(x_38) == 0) { lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; @@ -6437,7 +6134,7 @@ if (lean_is_exclusive(x_38)) { lean_dec_ref(x_38); x_41 = lean_box(0); } -x_42 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_40, x_33); +x_42 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_40, x_7); if (lean_is_scalar(x_41)) { x_43 = lean_alloc_ctor(0, 2, 0); } else { @@ -6462,9 +6159,9 @@ if (lean_is_exclusive(x_38)) { lean_dec_ref(x_38); x_46 = lean_box(0); } -lean_inc(x_4); -x_47 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_1, x_44); -x_48 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_45, x_33); +lean_inc(x_3); +x_47 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_44); +x_48 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_45, x_7); if (lean_is_scalar(x_46)) { x_49 = lean_alloc_ctor(1, 2, 0); } else { @@ -6476,879 +6173,272 @@ return x_49; } } } -} -lean_object* l_Lean_Elab_Term_isLevelDefEq___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_Lean_Elab_Term_isLevelDefEq(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_1); -return x_6; -} -} -lean_object* l_Lean_Elab_Term_inferType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; uint8_t x_6; -x_5 = lean_ctor_get(x_4, 0); -lean_inc(x_5); -x_6 = !lean_is_exclusive(x_5); -if (x_6 == 0) -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_7 = lean_ctor_get(x_5, 4); -x_8 = lean_ctor_get(x_3, 0); -lean_inc(x_8); -x_9 = l_Lean_TraceState_Inhabited___closed__1; -lean_ctor_set(x_5, 4, x_9); -x_10 = l_Lean_Meta_inferType(x_2, x_8, x_5); -if (lean_obj_tag(x_10) == 0) -{ -uint8_t x_11; -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_10, 1); -x_13 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_12, x_7); -lean_ctor_set(x_10, 1, x_13); -return x_10; -} else { -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_14 = lean_ctor_get(x_10, 0); -x_15 = lean_ctor_get(x_10, 1); -lean_inc(x_15); -lean_inc(x_14); -lean_dec(x_10); -x_16 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_15, x_7); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_14); -lean_ctor_set(x_17, 1, x_16); -return x_17; -} -} -else -{ -uint8_t x_18; -x_18 = !lean_is_exclusive(x_10); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_10, 0); -x_20 = lean_ctor_get(x_10, 1); -lean_inc(x_3); -x_21 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_19); -x_22 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_20, x_7); -lean_ctor_set(x_10, 1, x_22); -lean_ctor_set(x_10, 0, x_21); -return x_10; -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_23 = lean_ctor_get(x_10, 0); -x_24 = lean_ctor_get(x_10, 1); -lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_10); -lean_inc(x_3); -x_25 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_23); -x_26 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_24, 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; -} -} -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_28 = lean_ctor_get(x_5, 0); -x_29 = lean_ctor_get(x_5, 1); -x_30 = lean_ctor_get(x_5, 2); -x_31 = lean_ctor_get(x_5, 3); -x_32 = lean_ctor_get(x_5, 4); -x_33 = lean_ctor_get(x_5, 5); -lean_inc(x_33); -lean_inc(x_32); -lean_inc(x_31); -lean_inc(x_30); -lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_5); -x_34 = lean_ctor_get(x_3, 0); -lean_inc(x_34); -x_35 = l_Lean_TraceState_Inhabited___closed__1; -x_36 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_36, 0, x_28); -lean_ctor_set(x_36, 1, x_29); -lean_ctor_set(x_36, 2, x_30); -lean_ctor_set(x_36, 3, x_31); -lean_ctor_set(x_36, 4, x_35); -lean_ctor_set(x_36, 5, x_33); -x_37 = l_Lean_Meta_inferType(x_2, x_34, x_36); -if (lean_obj_tag(x_37) == 0) -{ -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_37, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); -if (lean_is_exclusive(x_37)) { - lean_ctor_release(x_37, 0); - lean_ctor_release(x_37, 1); - x_40 = x_37; -} else { - lean_dec_ref(x_37); - x_40 = lean_box(0); -} -x_41 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_39, x_32); -if (lean_is_scalar(x_40)) { - x_42 = lean_alloc_ctor(0, 2, 0); -} else { - x_42 = x_40; -} -lean_ctor_set(x_42, 0, x_38); -lean_ctor_set(x_42, 1, x_41); -return x_42; -} -else -{ -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_37, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_37, 1); -lean_inc(x_44); -if (lean_is_exclusive(x_37)) { - lean_ctor_release(x_37, 0); - lean_ctor_release(x_37, 1); - x_45 = x_37; -} else { - lean_dec_ref(x_37); - x_45 = lean_box(0); -} -lean_inc(x_3); -x_46 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_43); -x_47 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_44, x_32); -if (lean_is_scalar(x_45)) { - x_48 = lean_alloc_ctor(1, 2, 0); -} else { - x_48 = x_45; -} -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; -} -} -} -} -lean_object* l_Lean_Elab_Term_inferType___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_Elab_Term_inferType(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} -lean_object* l_Lean_Elab_Term_whnf(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; uint8_t x_6; -x_5 = lean_ctor_get(x_4, 0); -lean_inc(x_5); -x_6 = !lean_is_exclusive(x_5); -if (x_6 == 0) -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_7 = lean_ctor_get(x_5, 4); -x_8 = lean_ctor_get(x_3, 0); -lean_inc(x_8); -x_9 = l_Lean_TraceState_Inhabited___closed__1; -lean_ctor_set(x_5, 4, x_9); -x_10 = l_Lean_Meta_whnf(x_2, x_8, x_5); -if (lean_obj_tag(x_10) == 0) -{ -uint8_t x_11; -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_10, 1); -x_13 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_12, x_7); -lean_ctor_set(x_10, 1, x_13); -return x_10; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_14 = lean_ctor_get(x_10, 0); -x_15 = lean_ctor_get(x_10, 1); -lean_inc(x_15); -lean_inc(x_14); -lean_dec(x_10); -x_16 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_15, x_7); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_14); -lean_ctor_set(x_17, 1, x_16); -return x_17; -} -} -else -{ -uint8_t x_18; -x_18 = !lean_is_exclusive(x_10); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_10, 0); -x_20 = lean_ctor_get(x_10, 1); -lean_inc(x_3); -x_21 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_19); -x_22 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_20, x_7); -lean_ctor_set(x_10, 1, x_22); -lean_ctor_set(x_10, 0, x_21); -return x_10; -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_23 = lean_ctor_get(x_10, 0); -x_24 = lean_ctor_get(x_10, 1); -lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_10); -lean_inc(x_3); -x_25 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_23); -x_26 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_24, 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; -} -} -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_28 = lean_ctor_get(x_5, 0); -x_29 = lean_ctor_get(x_5, 1); -x_30 = lean_ctor_get(x_5, 2); -x_31 = lean_ctor_get(x_5, 3); -x_32 = lean_ctor_get(x_5, 4); -x_33 = lean_ctor_get(x_5, 5); -lean_inc(x_33); -lean_inc(x_32); -lean_inc(x_31); -lean_inc(x_30); -lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_5); -x_34 = lean_ctor_get(x_3, 0); -lean_inc(x_34); -x_35 = l_Lean_TraceState_Inhabited___closed__1; -x_36 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_36, 0, x_28); -lean_ctor_set(x_36, 1, x_29); -lean_ctor_set(x_36, 2, x_30); -lean_ctor_set(x_36, 3, x_31); -lean_ctor_set(x_36, 4, x_35); -lean_ctor_set(x_36, 5, x_33); -x_37 = l_Lean_Meta_whnf(x_2, x_34, x_36); -if (lean_obj_tag(x_37) == 0) -{ -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_37, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); -if (lean_is_exclusive(x_37)) { - lean_ctor_release(x_37, 0); - lean_ctor_release(x_37, 1); - x_40 = x_37; -} else { - lean_dec_ref(x_37); - x_40 = lean_box(0); -} -x_41 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_39, x_32); -if (lean_is_scalar(x_40)) { - x_42 = lean_alloc_ctor(0, 2, 0); -} else { - x_42 = x_40; -} -lean_ctor_set(x_42, 0, x_38); -lean_ctor_set(x_42, 1, x_41); -return x_42; -} -else -{ -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_37, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_37, 1); -lean_inc(x_44); -if (lean_is_exclusive(x_37)) { - lean_ctor_release(x_37, 0); - lean_ctor_release(x_37, 1); - x_45 = x_37; -} else { - lean_dec_ref(x_37); - x_45 = lean_box(0); -} -lean_inc(x_3); -x_46 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_43); -x_47 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_44, x_32); -if (lean_is_scalar(x_45)) { - x_48 = lean_alloc_ctor(1, 2, 0); -} else { - x_48 = x_45; -} -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; -} -} -} -} -lean_object* l_Lean_Elab_Term_whnf___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_Elab_Term_whnf(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} -lean_object* l_Lean_Elab_Term_whnfForall(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; uint8_t x_6; -x_5 = lean_ctor_get(x_4, 0); -lean_inc(x_5); -x_6 = !lean_is_exclusive(x_5); -if (x_6 == 0) -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_7 = lean_ctor_get(x_5, 4); -x_8 = lean_ctor_get(x_3, 0); -lean_inc(x_8); -x_9 = l_Lean_TraceState_Inhabited___closed__1; -lean_ctor_set(x_5, 4, x_9); -x_10 = l_Lean_Meta_whnfForall(x_2, x_8, x_5); -if (lean_obj_tag(x_10) == 0) -{ -uint8_t x_11; -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_10, 1); -x_13 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_12, x_7); -lean_ctor_set(x_10, 1, x_13); -return x_10; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_14 = lean_ctor_get(x_10, 0); -x_15 = lean_ctor_get(x_10, 1); -lean_inc(x_15); -lean_inc(x_14); -lean_dec(x_10); -x_16 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_15, x_7); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_14); -lean_ctor_set(x_17, 1, x_16); -return x_17; -} -} -else -{ -uint8_t x_18; -x_18 = !lean_is_exclusive(x_10); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_10, 0); -x_20 = lean_ctor_get(x_10, 1); -lean_inc(x_3); -x_21 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_19); -x_22 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_20, x_7); -lean_ctor_set(x_10, 1, x_22); -lean_ctor_set(x_10, 0, x_21); -return x_10; -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_23 = lean_ctor_get(x_10, 0); -x_24 = lean_ctor_get(x_10, 1); -lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_10); -lean_inc(x_3); -x_25 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_23); -x_26 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_24, 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; -} -} -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_28 = lean_ctor_get(x_5, 0); -x_29 = lean_ctor_get(x_5, 1); -x_30 = lean_ctor_get(x_5, 2); -x_31 = lean_ctor_get(x_5, 3); -x_32 = lean_ctor_get(x_5, 4); -x_33 = lean_ctor_get(x_5, 5); -lean_inc(x_33); -lean_inc(x_32); -lean_inc(x_31); -lean_inc(x_30); -lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_5); -x_34 = lean_ctor_get(x_3, 0); -lean_inc(x_34); -x_35 = l_Lean_TraceState_Inhabited___closed__1; -x_36 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_36, 0, x_28); -lean_ctor_set(x_36, 1, x_29); -lean_ctor_set(x_36, 2, x_30); -lean_ctor_set(x_36, 3, x_31); -lean_ctor_set(x_36, 4, x_35); -lean_ctor_set(x_36, 5, x_33); -x_37 = l_Lean_Meta_whnfForall(x_2, x_34, x_36); -if (lean_obj_tag(x_37) == 0) -{ -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_37, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); -if (lean_is_exclusive(x_37)) { - lean_ctor_release(x_37, 0); - lean_ctor_release(x_37, 1); - x_40 = x_37; -} else { - lean_dec_ref(x_37); - x_40 = lean_box(0); -} -x_41 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_39, x_32); -if (lean_is_scalar(x_40)) { - x_42 = lean_alloc_ctor(0, 2, 0); -} else { - x_42 = x_40; -} -lean_ctor_set(x_42, 0, x_38); -lean_ctor_set(x_42, 1, x_41); -return x_42; -} -else -{ -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_37, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_37, 1); -lean_inc(x_44); -if (lean_is_exclusive(x_37)) { - lean_ctor_release(x_37, 0); - lean_ctor_release(x_37, 1); - x_45 = x_37; -} else { - lean_dec_ref(x_37); - x_45 = lean_box(0); -} -lean_inc(x_3); -x_46 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_43); -x_47 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_44, x_32); -if (lean_is_scalar(x_45)) { - x_48 = lean_alloc_ctor(1, 2, 0); -} else { - x_48 = x_45; -} -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; -} -} -} -} -lean_object* l_Lean_Elab_Term_whnfForall___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_Elab_Term_whnfForall(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} -lean_object* l_Lean_Elab_Term_whnfCore(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; uint8_t x_6; -x_5 = lean_ctor_get(x_4, 0); -lean_inc(x_5); -x_6 = !lean_is_exclusive(x_5); -if (x_6 == 0) -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_7 = lean_ctor_get(x_5, 4); -x_8 = lean_ctor_get(x_3, 0); -lean_inc(x_8); -x_9 = l_Lean_TraceState_Inhabited___closed__1; -lean_ctor_set(x_5, 4, x_9); -x_10 = l_Lean_WHNF_whnfCore___main___at_Lean_Meta_whnfCore___spec__1(x_2, x_8, x_5); -if (lean_obj_tag(x_10) == 0) -{ -uint8_t x_11; -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_10, 1); -x_13 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_12, x_7); -lean_ctor_set(x_10, 1, x_13); -return x_10; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_14 = lean_ctor_get(x_10, 0); -x_15 = lean_ctor_get(x_10, 1); -lean_inc(x_15); -lean_inc(x_14); -lean_dec(x_10); -x_16 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_15, x_7); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_14); -lean_ctor_set(x_17, 1, x_16); -return x_17; -} -} -else -{ -uint8_t x_18; -x_18 = !lean_is_exclusive(x_10); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_10, 0); -x_20 = lean_ctor_get(x_10, 1); -lean_inc(x_3); -x_21 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_19); -x_22 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_20, x_7); -lean_ctor_set(x_10, 1, x_22); -lean_ctor_set(x_10, 0, x_21); -return x_10; -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_23 = lean_ctor_get(x_10, 0); -x_24 = lean_ctor_get(x_10, 1); -lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_10); -lean_inc(x_3); -x_25 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_23); -x_26 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_24, 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; -} -} -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_28 = lean_ctor_get(x_5, 0); -x_29 = lean_ctor_get(x_5, 1); -x_30 = lean_ctor_get(x_5, 2); -x_31 = lean_ctor_get(x_5, 3); -x_32 = lean_ctor_get(x_5, 4); -x_33 = lean_ctor_get(x_5, 5); -lean_inc(x_33); -lean_inc(x_32); -lean_inc(x_31); -lean_inc(x_30); -lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_5); -x_34 = lean_ctor_get(x_3, 0); -lean_inc(x_34); -x_35 = l_Lean_TraceState_Inhabited___closed__1; -x_36 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_36, 0, x_28); -lean_ctor_set(x_36, 1, x_29); -lean_ctor_set(x_36, 2, x_30); -lean_ctor_set(x_36, 3, x_31); -lean_ctor_set(x_36, 4, x_35); -lean_ctor_set(x_36, 5, x_33); -x_37 = l_Lean_WHNF_whnfCore___main___at_Lean_Meta_whnfCore___spec__1(x_2, x_34, x_36); -if (lean_obj_tag(x_37) == 0) -{ -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_37, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); -if (lean_is_exclusive(x_37)) { - lean_ctor_release(x_37, 0); - lean_ctor_release(x_37, 1); - x_40 = x_37; -} else { - lean_dec_ref(x_37); - x_40 = lean_box(0); -} -x_41 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_39, x_32); -if (lean_is_scalar(x_40)) { - x_42 = lean_alloc_ctor(0, 2, 0); -} else { - x_42 = x_40; -} -lean_ctor_set(x_42, 0, x_38); -lean_ctor_set(x_42, 1, x_41); -return x_42; -} -else -{ -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_37, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_37, 1); -lean_inc(x_44); -if (lean_is_exclusive(x_37)) { - lean_ctor_release(x_37, 0); - lean_ctor_release(x_37, 1); - x_45 = x_37; -} else { - lean_dec_ref(x_37); - x_45 = lean_box(0); -} -lean_inc(x_3); -x_46 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_43); -x_47 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_44, x_32); -if (lean_is_scalar(x_45)) { - x_48 = lean_alloc_ctor(1, 2, 0); -} else { - x_48 = x_45; -} -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; -} -} -} -} -lean_object* l_Lean_Elab_Term_whnfCore___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_Elab_Term_whnfCore(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} -lean_object* l_Lean_Elab_Term_unfoldDefinition_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; uint8_t x_6; -x_5 = lean_ctor_get(x_4, 0); -lean_inc(x_5); -x_6 = !lean_is_exclusive(x_5); -if (x_6 == 0) -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_7 = lean_ctor_get(x_5, 4); -x_8 = lean_ctor_get(x_3, 0); -lean_inc(x_8); -x_9 = l_Lean_TraceState_Inhabited___closed__1; -lean_ctor_set(x_5, 4, x_9); -x_10 = l_Lean_WHNF_unfoldDefinitionAux___at_Lean_Meta_unfoldDefinition_x3f___spec__1(x_2, x_8, x_5); -if (lean_obj_tag(x_10) == 0) -{ -uint8_t x_11; -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_10, 1); -x_13 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_12, x_7); -lean_ctor_set(x_10, 1, x_13); -return x_10; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_14 = lean_ctor_get(x_10, 0); -x_15 = lean_ctor_get(x_10, 1); -lean_inc(x_15); -lean_inc(x_14); -lean_dec(x_10); -x_16 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_15, x_7); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_14); -lean_ctor_set(x_17, 1, x_16); -return x_17; -} -} -else -{ -uint8_t x_18; -x_18 = !lean_is_exclusive(x_10); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_10, 0); -x_20 = lean_ctor_get(x_10, 1); -lean_inc(x_3); -x_21 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_19); -x_22 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_20, x_7); -lean_ctor_set(x_10, 1, x_22); -lean_ctor_set(x_10, 0, x_21); -return x_10; -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_23 = lean_ctor_get(x_10, 0); -x_24 = lean_ctor_get(x_10, 1); -lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_10); -lean_inc(x_3); -x_25 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_23); -x_26 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_24, 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; -} -} -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_28 = lean_ctor_get(x_5, 0); -x_29 = lean_ctor_get(x_5, 1); -x_30 = lean_ctor_get(x_5, 2); -x_31 = lean_ctor_get(x_5, 3); -x_32 = lean_ctor_get(x_5, 4); -x_33 = lean_ctor_get(x_5, 5); -lean_inc(x_33); -lean_inc(x_32); -lean_inc(x_31); -lean_inc(x_30); -lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_5); -x_34 = lean_ctor_get(x_3, 0); -lean_inc(x_34); -x_35 = l_Lean_TraceState_Inhabited___closed__1; -x_36 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_36, 0, x_28); -lean_ctor_set(x_36, 1, x_29); -lean_ctor_set(x_36, 2, x_30); -lean_ctor_set(x_36, 3, x_31); -lean_ctor_set(x_36, 4, x_35); -lean_ctor_set(x_36, 5, x_33); -x_37 = l_Lean_WHNF_unfoldDefinitionAux___at_Lean_Meta_unfoldDefinition_x3f___spec__1(x_2, x_34, x_36); -if (lean_obj_tag(x_37) == 0) -{ -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_37, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); -if (lean_is_exclusive(x_37)) { - lean_ctor_release(x_37, 0); - lean_ctor_release(x_37, 1); - x_40 = x_37; -} else { - lean_dec_ref(x_37); - x_40 = lean_box(0); -} -x_41 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_39, x_32); -if (lean_is_scalar(x_40)) { - x_42 = lean_alloc_ctor(0, 2, 0); -} else { - x_42 = x_40; -} -lean_ctor_set(x_42, 0, x_38); -lean_ctor_set(x_42, 1, x_41); -return x_42; -} -else -{ -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_37, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_37, 1); -lean_inc(x_44); -if (lean_is_exclusive(x_37)) { - lean_ctor_release(x_37, 0); - lean_ctor_release(x_37, 1); - x_45 = x_37; -} else { - lean_dec_ref(x_37); - x_45 = lean_box(0); -} -lean_inc(x_3); -x_46 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_43); -x_47 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_44, x_32); -if (lean_is_scalar(x_45)) { - x_48 = lean_alloc_ctor(1, 2, 0); -} else { - x_48 = x_45; -} -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; -} -} -} -} -lean_object* l_Lean_Elab_Term_unfoldDefinition_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_Elab_Term_unfoldDefinition_x3f(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} -lean_object* l_Lean_Elab_Term_instantiateMVars(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; uint8_t x_6; -x_5 = lean_ctor_get(x_4, 0); -lean_inc(x_5); -x_6 = !lean_is_exclusive(x_5); -if (x_6 == 0) -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_7 = lean_ctor_get(x_5, 4); -x_8 = lean_ctor_get(x_3, 0); -lean_inc(x_8); -x_9 = l_Lean_TraceState_Inhabited___closed__1; -lean_ctor_set(x_5, 4, x_9); -x_10 = l_Lean_Meta_instantiateMVars(x_2, x_8, x_5); +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; uint8_t x_57; uint8_t x_58; lean_object* x_59; uint8_t x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_50 = lean_ctor_get(x_8, 0); +x_51 = lean_ctor_get(x_8, 1); +x_52 = lean_ctor_get(x_8, 2); +x_53 = lean_ctor_get(x_8, 3); +x_54 = lean_ctor_get(x_8, 4); +lean_inc(x_54); +lean_inc(x_53); +lean_inc(x_52); +lean_inc(x_51); +lean_inc(x_50); lean_dec(x_8); +x_55 = lean_ctor_get(x_50, 0); +lean_inc(x_55); +x_56 = lean_ctor_get_uint8(x_50, sizeof(void*)*1 + 4); +x_57 = lean_ctor_get_uint8(x_50, sizeof(void*)*1 + 5); +x_58 = lean_ctor_get_uint8(x_50, sizeof(void*)*1 + 6); +if (lean_is_exclusive(x_50)) { + lean_ctor_release(x_50, 0); + x_59 = x_50; +} else { + lean_dec_ref(x_50); + x_59 = lean_box(0); +} +x_60 = 1; +if (lean_is_scalar(x_59)) { + x_61 = lean_alloc_ctor(0, 1, 7); +} else { + x_61 = x_59; +} +lean_ctor_set(x_61, 0, x_55); +lean_ctor_set_uint8(x_61, sizeof(void*)*1, x_60); +lean_ctor_set_uint8(x_61, sizeof(void*)*1 + 1, x_60); +lean_ctor_set_uint8(x_61, sizeof(void*)*1 + 2, x_60); +lean_ctor_set_uint8(x_61, sizeof(void*)*1 + 3, x_60); +lean_ctor_set_uint8(x_61, sizeof(void*)*1 + 4, x_56); +lean_ctor_set_uint8(x_61, sizeof(void*)*1 + 5, x_57); +lean_ctor_set_uint8(x_61, sizeof(void*)*1 + 6, x_58); +x_62 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_51); +lean_ctor_set(x_62, 2, x_52); +lean_ctor_set(x_62, 3, x_53); +lean_ctor_set(x_62, 4, x_54); +x_63 = l_Lean_Meta_isExprDefEq(x_1, x_2, x_62, x_5); +if (lean_obj_tag(x_63) == 0) +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_64 = lean_ctor_get(x_63, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_63, 1); +lean_inc(x_65); +if (lean_is_exclusive(x_63)) { + lean_ctor_release(x_63, 0); + lean_ctor_release(x_63, 1); + x_66 = x_63; +} else { + lean_dec_ref(x_63); + x_66 = lean_box(0); +} +x_67 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_65, x_7); +if (lean_is_scalar(x_66)) { + x_68 = lean_alloc_ctor(0, 2, 0); +} else { + x_68 = x_66; +} +lean_ctor_set(x_68, 0, x_64); +lean_ctor_set(x_68, 1, x_67); +return x_68; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_69 = lean_ctor_get(x_63, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_63, 1); +lean_inc(x_70); +if (lean_is_exclusive(x_63)) { + lean_ctor_release(x_63, 0); + lean_ctor_release(x_63, 1); + x_71 = x_63; +} else { + lean_dec_ref(x_63); + x_71 = lean_box(0); +} +lean_inc(x_3); +x_72 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_69); +x_73 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_70, x_7); +if (lean_is_scalar(x_71)) { + x_74 = lean_alloc_ctor(1, 2, 0); +} else { + x_74 = x_71; +} +lean_ctor_set(x_74, 0, x_72); +lean_ctor_set(x_74, 1, x_73); +return x_74; +} +} +} +else +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; uint8_t x_91; uint8_t x_92; uint8_t x_93; lean_object* x_94; uint8_t x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_75 = lean_ctor_get(x_5, 0); +x_76 = lean_ctor_get(x_5, 1); +x_77 = lean_ctor_get(x_5, 2); +x_78 = lean_ctor_get(x_5, 3); +x_79 = lean_ctor_get(x_5, 4); +x_80 = lean_ctor_get(x_5, 5); +lean_inc(x_80); +lean_inc(x_79); +lean_inc(x_78); +lean_inc(x_77); +lean_inc(x_76); +lean_inc(x_75); +lean_dec(x_5); +x_81 = lean_ctor_get(x_3, 0); +lean_inc(x_81); +x_82 = l_Lean_TraceState_Inhabited___closed__1; +x_83 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_83, 0, x_75); +lean_ctor_set(x_83, 1, x_76); +lean_ctor_set(x_83, 2, x_77); +lean_ctor_set(x_83, 3, x_78); +lean_ctor_set(x_83, 4, x_82); +lean_ctor_set(x_83, 5, x_80); +x_84 = lean_ctor_get(x_81, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_81, 1); +lean_inc(x_85); +x_86 = lean_ctor_get(x_81, 2); +lean_inc(x_86); +x_87 = lean_ctor_get(x_81, 3); +lean_inc(x_87); +x_88 = lean_ctor_get(x_81, 4); +lean_inc(x_88); +if (lean_is_exclusive(x_81)) { + lean_ctor_release(x_81, 0); + lean_ctor_release(x_81, 1); + lean_ctor_release(x_81, 2); + lean_ctor_release(x_81, 3); + lean_ctor_release(x_81, 4); + x_89 = x_81; +} else { + lean_dec_ref(x_81); + x_89 = lean_box(0); +} +x_90 = lean_ctor_get(x_84, 0); +lean_inc(x_90); +x_91 = lean_ctor_get_uint8(x_84, sizeof(void*)*1 + 4); +x_92 = lean_ctor_get_uint8(x_84, sizeof(void*)*1 + 5); +x_93 = lean_ctor_get_uint8(x_84, sizeof(void*)*1 + 6); +if (lean_is_exclusive(x_84)) { + lean_ctor_release(x_84, 0); + x_94 = x_84; +} else { + lean_dec_ref(x_84); + x_94 = lean_box(0); +} +x_95 = 1; +if (lean_is_scalar(x_94)) { + x_96 = lean_alloc_ctor(0, 1, 7); +} else { + x_96 = x_94; +} +lean_ctor_set(x_96, 0, x_90); +lean_ctor_set_uint8(x_96, sizeof(void*)*1, x_95); +lean_ctor_set_uint8(x_96, sizeof(void*)*1 + 1, x_95); +lean_ctor_set_uint8(x_96, sizeof(void*)*1 + 2, x_95); +lean_ctor_set_uint8(x_96, sizeof(void*)*1 + 3, x_95); +lean_ctor_set_uint8(x_96, sizeof(void*)*1 + 4, x_91); +lean_ctor_set_uint8(x_96, sizeof(void*)*1 + 5, x_92); +lean_ctor_set_uint8(x_96, sizeof(void*)*1 + 6, x_93); +if (lean_is_scalar(x_89)) { + x_97 = lean_alloc_ctor(0, 5, 0); +} else { + x_97 = x_89; +} +lean_ctor_set(x_97, 0, x_96); +lean_ctor_set(x_97, 1, x_85); +lean_ctor_set(x_97, 2, x_86); +lean_ctor_set(x_97, 3, x_87); +lean_ctor_set(x_97, 4, x_88); +x_98 = l_Lean_Meta_isExprDefEq(x_1, x_2, x_97, x_83); +if (lean_obj_tag(x_98) == 0) +{ +lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; +x_99 = lean_ctor_get(x_98, 0); +lean_inc(x_99); +x_100 = lean_ctor_get(x_98, 1); +lean_inc(x_100); +if (lean_is_exclusive(x_98)) { + lean_ctor_release(x_98, 0); + lean_ctor_release(x_98, 1); + x_101 = x_98; +} else { + lean_dec_ref(x_98); + x_101 = lean_box(0); +} +x_102 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_100, x_79); +if (lean_is_scalar(x_101)) { + x_103 = lean_alloc_ctor(0, 2, 0); +} else { + x_103 = x_101; +} +lean_ctor_set(x_103, 0, x_99); +lean_ctor_set(x_103, 1, x_102); +return x_103; +} +else +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_104 = lean_ctor_get(x_98, 0); +lean_inc(x_104); +x_105 = lean_ctor_get(x_98, 1); +lean_inc(x_105); +if (lean_is_exclusive(x_98)) { + lean_ctor_release(x_98, 0); + lean_ctor_release(x_98, 1); + x_106 = x_98; +} else { + lean_dec_ref(x_98); + x_106 = lean_box(0); +} +lean_inc(x_3); +x_107 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_104); +x_108 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_105, x_79); +if (lean_is_scalar(x_106)) { + x_109 = lean_alloc_ctor(1, 2, 0); +} else { + x_109 = x_106; +} +lean_ctor_set(x_109, 0, x_107); +lean_ctor_set(x_109, 1, x_108); +return x_109; +} +} +} +} +lean_object* l_Lean_Elab_Term_isLevelDefEq(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; uint8_t x_6; +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +x_6 = !lean_is_exclusive(x_5); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_7 = lean_ctor_get(x_5, 4); +x_8 = lean_ctor_get(x_3, 0); +lean_inc(x_8); +x_9 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_5, 4, x_9); +x_10 = l_Lean_Meta_isLevelDefEq(x_1, x_2, x_8, x_5); +lean_dec(x_8); +if (lean_obj_tag(x_10) == 0) +{ +uint8_t x_11; x_11 = !lean_is_exclusive(x_10); if (x_11 == 0) { lean_object* x_12; lean_object* x_13; x_12 = lean_ctor_get(x_10, 1); -x_13 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_12, x_7); +x_13 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_12, x_7); lean_ctor_set(x_10, 1, x_13); return x_10; } @@ -7360,7 +6450,7 @@ x_15 = lean_ctor_get(x_10, 1); lean_inc(x_15); lean_inc(x_14); lean_dec(x_10); -x_16 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_15, x_7); +x_16 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_15, x_7); x_17 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_17, 0, x_14); lean_ctor_set(x_17, 1, x_16); @@ -7369,335 +6459,1261 @@ return x_17; } else { -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_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; -x_18 = lean_ctor_get(x_5, 0); -x_19 = lean_ctor_get(x_5, 1); -x_20 = lean_ctor_get(x_5, 2); -x_21 = lean_ctor_get(x_5, 3); -x_22 = lean_ctor_get(x_5, 4); -x_23 = lean_ctor_get(x_5, 5); +uint8_t x_18; +x_18 = !lean_is_exclusive(x_10); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_19 = lean_ctor_get(x_10, 0); +x_20 = lean_ctor_get(x_10, 1); +lean_inc(x_3); +x_21 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_19); +x_22 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_20, x_7); +lean_ctor_set(x_10, 1, x_22); +lean_ctor_set(x_10, 0, x_21); +return x_10; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_23 = lean_ctor_get(x_10, 0); +x_24 = lean_ctor_get(x_10, 1); +lean_inc(x_24); lean_inc(x_23); +lean_dec(x_10); +lean_inc(x_3); +x_25 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_23); +x_26 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_24, 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; +} +} +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_28 = lean_ctor_get(x_5, 0); +x_29 = lean_ctor_get(x_5, 1); +x_30 = lean_ctor_get(x_5, 2); +x_31 = lean_ctor_get(x_5, 3); +x_32 = lean_ctor_get(x_5, 4); +x_33 = lean_ctor_get(x_5, 5); +lean_inc(x_33); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_5); +x_34 = lean_ctor_get(x_3, 0); +lean_inc(x_34); +x_35 = l_Lean_TraceState_Inhabited___closed__1; +x_36 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_36, 0, x_28); +lean_ctor_set(x_36, 1, x_29); +lean_ctor_set(x_36, 2, x_30); +lean_ctor_set(x_36, 3, x_31); +lean_ctor_set(x_36, 4, x_35); +lean_ctor_set(x_36, 5, x_33); +x_37 = l_Lean_Meta_isLevelDefEq(x_1, x_2, x_34, x_36); +lean_dec(x_34); +if (lean_obj_tag(x_37) == 0) +{ +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_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_40 = x_37; +} else { + lean_dec_ref(x_37); + x_40 = lean_box(0); +} +x_41 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_39, x_32); +if (lean_is_scalar(x_40)) { + x_42 = lean_alloc_ctor(0, 2, 0); +} else { + x_42 = x_40; +} +lean_ctor_set(x_42, 0, x_38); +lean_ctor_set(x_42, 1, x_41); +return x_42; +} +else +{ +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_37, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_37, 1); +lean_inc(x_44); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_45 = x_37; +} else { + lean_dec_ref(x_37); + x_45 = lean_box(0); +} +lean_inc(x_3); +x_46 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_43); +x_47 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_44, x_32); +if (lean_is_scalar(x_45)) { + x_48 = lean_alloc_ctor(1, 2, 0); +} else { + x_48 = x_45; +} +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; +} +} +} +} +lean_object* l_Lean_Elab_Term_inferType(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +x_5 = !lean_is_exclusive(x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = lean_ctor_get(x_4, 4); +x_7 = lean_ctor_get(x_2, 0); +lean_inc(x_7); +x_8 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_4, 4, x_8); +x_9 = l_Lean_Meta_inferType(x_1, x_7, x_4); +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_9, 1); +x_12 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_11, x_6); +lean_ctor_set(x_9, 1, x_12); +return x_9; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_13 = lean_ctor_get(x_9, 0); +x_14 = lean_ctor_get(x_9, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_9); +x_15 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_14, x_6); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_13); +lean_ctor_set(x_16, 1, x_15); +return x_16; +} +} +else +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_9); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_9, 0); +x_19 = lean_ctor_get(x_9, 1); +lean_inc(x_2); +x_20 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_18); +x_21 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_19, x_6); +lean_ctor_set(x_9, 1, x_21); +lean_ctor_set(x_9, 0, x_20); +return x_9; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_22 = lean_ctor_get(x_9, 0); +x_23 = lean_ctor_get(x_9, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_9); +lean_inc(x_2); +x_24 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_22); +x_25 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_23, x_6); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; +} +} +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_27 = lean_ctor_get(x_4, 0); +x_28 = lean_ctor_get(x_4, 1); +x_29 = lean_ctor_get(x_4, 2); +x_30 = lean_ctor_get(x_4, 3); +x_31 = lean_ctor_get(x_4, 4); +x_32 = lean_ctor_get(x_4, 5); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_4); +x_33 = lean_ctor_get(x_2, 0); +lean_inc(x_33); +x_34 = l_Lean_TraceState_Inhabited___closed__1; +x_35 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_35, 0, x_27); +lean_ctor_set(x_35, 1, x_28); +lean_ctor_set(x_35, 2, x_29); +lean_ctor_set(x_35, 3, x_30); +lean_ctor_set(x_35, 4, x_34); +lean_ctor_set(x_35, 5, x_32); +x_36 = l_Lean_Meta_inferType(x_1, x_33, x_35); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_36, 1); +lean_inc(x_38); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_39 = x_36; +} else { + lean_dec_ref(x_36); + x_39 = lean_box(0); +} +x_40 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_38, x_31); +if (lean_is_scalar(x_39)) { + x_41 = lean_alloc_ctor(0, 2, 0); +} else { + x_41 = x_39; +} +lean_ctor_set(x_41, 0, x_37); +lean_ctor_set(x_41, 1, x_40); +return x_41; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_42 = lean_ctor_get(x_36, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_36, 1); +lean_inc(x_43); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_44 = x_36; +} else { + lean_dec_ref(x_36); + x_44 = lean_box(0); +} +lean_inc(x_2); +x_45 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_42); +x_46 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_43, x_31); +if (lean_is_scalar(x_44)) { + x_47 = lean_alloc_ctor(1, 2, 0); +} else { + x_47 = x_44; +} +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +} +lean_object* l_Lean_Elab_Term_whnf(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +x_5 = !lean_is_exclusive(x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = lean_ctor_get(x_4, 4); +x_7 = lean_ctor_get(x_2, 0); +lean_inc(x_7); +x_8 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_4, 4, x_8); +x_9 = l_Lean_Meta_whnf(x_1, x_7, x_4); +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_9, 1); +x_12 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_11, x_6); +lean_ctor_set(x_9, 1, x_12); +return x_9; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_13 = lean_ctor_get(x_9, 0); +x_14 = lean_ctor_get(x_9, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_9); +x_15 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_14, x_6); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_13); +lean_ctor_set(x_16, 1, x_15); +return x_16; +} +} +else +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_9); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_9, 0); +x_19 = lean_ctor_get(x_9, 1); +lean_inc(x_2); +x_20 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_18); +x_21 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_19, x_6); +lean_ctor_set(x_9, 1, x_21); +lean_ctor_set(x_9, 0, x_20); +return x_9; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_22 = lean_ctor_get(x_9, 0); +x_23 = lean_ctor_get(x_9, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_9); +lean_inc(x_2); +x_24 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_22); +x_25 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_23, x_6); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; +} +} +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_27 = lean_ctor_get(x_4, 0); +x_28 = lean_ctor_get(x_4, 1); +x_29 = lean_ctor_get(x_4, 2); +x_30 = lean_ctor_get(x_4, 3); +x_31 = lean_ctor_get(x_4, 4); +x_32 = lean_ctor_get(x_4, 5); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_4); +x_33 = lean_ctor_get(x_2, 0); +lean_inc(x_33); +x_34 = l_Lean_TraceState_Inhabited___closed__1; +x_35 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_35, 0, x_27); +lean_ctor_set(x_35, 1, x_28); +lean_ctor_set(x_35, 2, x_29); +lean_ctor_set(x_35, 3, x_30); +lean_ctor_set(x_35, 4, x_34); +lean_ctor_set(x_35, 5, x_32); +x_36 = l_Lean_Meta_whnf(x_1, x_33, x_35); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_36, 1); +lean_inc(x_38); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_39 = x_36; +} else { + lean_dec_ref(x_36); + x_39 = lean_box(0); +} +x_40 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_38, x_31); +if (lean_is_scalar(x_39)) { + x_41 = lean_alloc_ctor(0, 2, 0); +} else { + x_41 = x_39; +} +lean_ctor_set(x_41, 0, x_37); +lean_ctor_set(x_41, 1, x_40); +return x_41; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_42 = lean_ctor_get(x_36, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_36, 1); +lean_inc(x_43); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_44 = x_36; +} else { + lean_dec_ref(x_36); + x_44 = lean_box(0); +} +lean_inc(x_2); +x_45 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_42); +x_46 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_43, x_31); +if (lean_is_scalar(x_44)) { + x_47 = lean_alloc_ctor(1, 2, 0); +} else { + x_47 = x_44; +} +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +} +lean_object* l_Lean_Elab_Term_whnfForall(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +x_5 = !lean_is_exclusive(x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = lean_ctor_get(x_4, 4); +x_7 = lean_ctor_get(x_2, 0); +lean_inc(x_7); +x_8 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_4, 4, x_8); +x_9 = l_Lean_Meta_whnfForall(x_1, x_7, x_4); +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_9, 1); +x_12 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_11, x_6); +lean_ctor_set(x_9, 1, x_12); +return x_9; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_13 = lean_ctor_get(x_9, 0); +x_14 = lean_ctor_get(x_9, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_9); +x_15 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_14, x_6); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_13); +lean_ctor_set(x_16, 1, x_15); +return x_16; +} +} +else +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_9); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_9, 0); +x_19 = lean_ctor_get(x_9, 1); +lean_inc(x_2); +x_20 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_18); +x_21 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_19, x_6); +lean_ctor_set(x_9, 1, x_21); +lean_ctor_set(x_9, 0, x_20); +return x_9; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_22 = lean_ctor_get(x_9, 0); +x_23 = lean_ctor_get(x_9, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_9); +lean_inc(x_2); +x_24 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_22); +x_25 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_23, x_6); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; +} +} +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_27 = lean_ctor_get(x_4, 0); +x_28 = lean_ctor_get(x_4, 1); +x_29 = lean_ctor_get(x_4, 2); +x_30 = lean_ctor_get(x_4, 3); +x_31 = lean_ctor_get(x_4, 4); +x_32 = lean_ctor_get(x_4, 5); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_4); +x_33 = lean_ctor_get(x_2, 0); +lean_inc(x_33); +x_34 = l_Lean_TraceState_Inhabited___closed__1; +x_35 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_35, 0, x_27); +lean_ctor_set(x_35, 1, x_28); +lean_ctor_set(x_35, 2, x_29); +lean_ctor_set(x_35, 3, x_30); +lean_ctor_set(x_35, 4, x_34); +lean_ctor_set(x_35, 5, x_32); +x_36 = l_Lean_Meta_whnfForall(x_1, x_33, x_35); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_36, 1); +lean_inc(x_38); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_39 = x_36; +} else { + lean_dec_ref(x_36); + x_39 = lean_box(0); +} +x_40 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_38, x_31); +if (lean_is_scalar(x_39)) { + x_41 = lean_alloc_ctor(0, 2, 0); +} else { + x_41 = x_39; +} +lean_ctor_set(x_41, 0, x_37); +lean_ctor_set(x_41, 1, x_40); +return x_41; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_42 = lean_ctor_get(x_36, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_36, 1); +lean_inc(x_43); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_44 = x_36; +} else { + lean_dec_ref(x_36); + x_44 = lean_box(0); +} +lean_inc(x_2); +x_45 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_42); +x_46 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_43, x_31); +if (lean_is_scalar(x_44)) { + x_47 = lean_alloc_ctor(1, 2, 0); +} else { + x_47 = x_44; +} +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +} +lean_object* l_Lean_Elab_Term_whnfCore(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +x_5 = !lean_is_exclusive(x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = lean_ctor_get(x_4, 4); +x_7 = lean_ctor_get(x_2, 0); +lean_inc(x_7); +x_8 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_4, 4, x_8); +x_9 = l_Lean_WHNF_whnfCore___main___at_Lean_Meta_whnfCore___spec__1(x_1, x_7, x_4); +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_9, 1); +x_12 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_11, x_6); +lean_ctor_set(x_9, 1, x_12); +return x_9; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_13 = lean_ctor_get(x_9, 0); +x_14 = lean_ctor_get(x_9, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_9); +x_15 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_14, x_6); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_13); +lean_ctor_set(x_16, 1, x_15); +return x_16; +} +} +else +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_9); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_9, 0); +x_19 = lean_ctor_get(x_9, 1); +lean_inc(x_2); +x_20 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_18); +x_21 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_19, x_6); +lean_ctor_set(x_9, 1, x_21); +lean_ctor_set(x_9, 0, x_20); +return x_9; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_22 = lean_ctor_get(x_9, 0); +x_23 = lean_ctor_get(x_9, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_9); +lean_inc(x_2); +x_24 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_22); +x_25 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_23, x_6); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; +} +} +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_27 = lean_ctor_get(x_4, 0); +x_28 = lean_ctor_get(x_4, 1); +x_29 = lean_ctor_get(x_4, 2); +x_30 = lean_ctor_get(x_4, 3); +x_31 = lean_ctor_get(x_4, 4); +x_32 = lean_ctor_get(x_4, 5); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_4); +x_33 = lean_ctor_get(x_2, 0); +lean_inc(x_33); +x_34 = l_Lean_TraceState_Inhabited___closed__1; +x_35 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_35, 0, x_27); +lean_ctor_set(x_35, 1, x_28); +lean_ctor_set(x_35, 2, x_29); +lean_ctor_set(x_35, 3, x_30); +lean_ctor_set(x_35, 4, x_34); +lean_ctor_set(x_35, 5, x_32); +x_36 = l_Lean_WHNF_whnfCore___main___at_Lean_Meta_whnfCore___spec__1(x_1, x_33, x_35); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_36, 1); +lean_inc(x_38); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_39 = x_36; +} else { + lean_dec_ref(x_36); + x_39 = lean_box(0); +} +x_40 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_38, x_31); +if (lean_is_scalar(x_39)) { + x_41 = lean_alloc_ctor(0, 2, 0); +} else { + x_41 = x_39; +} +lean_ctor_set(x_41, 0, x_37); +lean_ctor_set(x_41, 1, x_40); +return x_41; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_42 = lean_ctor_get(x_36, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_36, 1); +lean_inc(x_43); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_44 = x_36; +} else { + lean_dec_ref(x_36); + x_44 = lean_box(0); +} +lean_inc(x_2); +x_45 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_42); +x_46 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_43, x_31); +if (lean_is_scalar(x_44)) { + x_47 = lean_alloc_ctor(1, 2, 0); +} else { + x_47 = x_44; +} +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +} +lean_object* l_Lean_Elab_Term_unfoldDefinition_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +x_5 = !lean_is_exclusive(x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = lean_ctor_get(x_4, 4); +x_7 = lean_ctor_get(x_2, 0); +lean_inc(x_7); +x_8 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_4, 4, x_8); +x_9 = l_Lean_WHNF_unfoldDefinitionAux___at_Lean_Meta_unfoldDefinition_x3f___spec__1(x_1, x_7, x_4); +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_9, 1); +x_12 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_11, x_6); +lean_ctor_set(x_9, 1, x_12); +return x_9; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_13 = lean_ctor_get(x_9, 0); +x_14 = lean_ctor_get(x_9, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_9); +x_15 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_14, x_6); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_13); +lean_ctor_set(x_16, 1, x_15); +return x_16; +} +} +else +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_9); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_9, 0); +x_19 = lean_ctor_get(x_9, 1); +lean_inc(x_2); +x_20 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_18); +x_21 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_19, x_6); +lean_ctor_set(x_9, 1, x_21); +lean_ctor_set(x_9, 0, x_20); +return x_9; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_22 = lean_ctor_get(x_9, 0); +x_23 = lean_ctor_get(x_9, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_9); +lean_inc(x_2); +x_24 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_22); +x_25 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_23, x_6); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; +} +} +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_27 = lean_ctor_get(x_4, 0); +x_28 = lean_ctor_get(x_4, 1); +x_29 = lean_ctor_get(x_4, 2); +x_30 = lean_ctor_get(x_4, 3); +x_31 = lean_ctor_get(x_4, 4); +x_32 = lean_ctor_get(x_4, 5); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_4); +x_33 = lean_ctor_get(x_2, 0); +lean_inc(x_33); +x_34 = l_Lean_TraceState_Inhabited___closed__1; +x_35 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_35, 0, x_27); +lean_ctor_set(x_35, 1, x_28); +lean_ctor_set(x_35, 2, x_29); +lean_ctor_set(x_35, 3, x_30); +lean_ctor_set(x_35, 4, x_34); +lean_ctor_set(x_35, 5, x_32); +x_36 = l_Lean_WHNF_unfoldDefinitionAux___at_Lean_Meta_unfoldDefinition_x3f___spec__1(x_1, x_33, x_35); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_36, 1); +lean_inc(x_38); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_39 = x_36; +} else { + lean_dec_ref(x_36); + x_39 = lean_box(0); +} +x_40 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_38, x_31); +if (lean_is_scalar(x_39)) { + x_41 = lean_alloc_ctor(0, 2, 0); +} else { + x_41 = x_39; +} +lean_ctor_set(x_41, 0, x_37); +lean_ctor_set(x_41, 1, x_40); +return x_41; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_42 = lean_ctor_get(x_36, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_36, 1); +lean_inc(x_43); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_44 = x_36; +} else { + lean_dec_ref(x_36); + x_44 = lean_box(0); +} +lean_inc(x_2); +x_45 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_42); +x_46 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_43, x_31); +if (lean_is_scalar(x_44)) { + x_47 = lean_alloc_ctor(1, 2, 0); +} else { + x_47 = x_44; +} +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +} +lean_object* l_Lean_Elab_Term_instantiateMVars(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +x_5 = !lean_is_exclusive(x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_6 = lean_ctor_get(x_4, 4); +x_7 = lean_ctor_get(x_2, 0); +lean_inc(x_7); +x_8 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_4, 4, x_8); +x_9 = l_Lean_Meta_instantiateMVars(x_1, x_7, x_4); +lean_dec(x_7); +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_9, 1); +x_12 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_11, x_6); +lean_ctor_set(x_9, 1, x_12); +return x_9; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_13 = lean_ctor_get(x_9, 0); +x_14 = lean_ctor_get(x_9, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_9); +x_15 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_14, x_6); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_13); +lean_ctor_set(x_16, 1, x_15); +return x_16; +} +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_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; +x_17 = lean_ctor_get(x_4, 0); +x_18 = lean_ctor_get(x_4, 1); +x_19 = lean_ctor_get(x_4, 2); +x_20 = lean_ctor_get(x_4, 3); +x_21 = lean_ctor_get(x_4, 4); +x_22 = lean_ctor_get(x_4, 5); lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); -lean_dec(x_5); -x_24 = lean_ctor_get(x_3, 0); -lean_inc(x_24); -x_25 = l_Lean_TraceState_Inhabited___closed__1; -x_26 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_26, 0, x_18); -lean_ctor_set(x_26, 1, x_19); -lean_ctor_set(x_26, 2, x_20); -lean_ctor_set(x_26, 3, x_21); -lean_ctor_set(x_26, 4, x_25); -lean_ctor_set(x_26, 5, x_23); -x_27 = l_Lean_Meta_instantiateMVars(x_2, x_24, x_26); -lean_dec(x_24); -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); -x_29 = lean_ctor_get(x_27, 1); -lean_inc(x_29); -if (lean_is_exclusive(x_27)) { - lean_ctor_release(x_27, 0); - lean_ctor_release(x_27, 1); - x_30 = x_27; -} else { - lean_dec_ref(x_27); - x_30 = lean_box(0); -} -x_31 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_29, x_22); -if (lean_is_scalar(x_30)) { - x_32 = lean_alloc_ctor(0, 2, 0); -} else { - x_32 = x_30; -} -lean_ctor_set(x_32, 0, x_28); -lean_ctor_set(x_32, 1, x_31); -return x_32; -} -} -} -lean_object* l_Lean_Elab_Term_instantiateMVars___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_Elab_Term_instantiateMVars(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} -lean_object* l_Lean_Elab_Term_instantiateLevelMVars(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; uint8_t x_6; -x_5 = lean_ctor_get(x_4, 0); -lean_inc(x_5); -x_6 = !lean_is_exclusive(x_5); -if (x_6 == 0) -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_7 = lean_ctor_get(x_5, 4); -x_8 = lean_ctor_get(x_3, 0); -lean_inc(x_8); -x_9 = l_Lean_TraceState_Inhabited___closed__1; -lean_ctor_set(x_5, 4, x_9); -x_10 = l_Lean_Meta_instantiateLevelMVars(x_2, x_8, x_5); -lean_dec(x_8); -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_10, 1); -x_13 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_12, x_7); -lean_ctor_set(x_10, 1, x_13); -return x_10; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_14 = lean_ctor_get(x_10, 0); -x_15 = lean_ctor_get(x_10, 1); -lean_inc(x_15); -lean_inc(x_14); -lean_dec(x_10); -x_16 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_15, x_7); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_14); -lean_ctor_set(x_17, 1, x_16); -return x_17; -} -} -else -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_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; -x_18 = lean_ctor_get(x_5, 0); -x_19 = lean_ctor_get(x_5, 1); -x_20 = lean_ctor_get(x_5, 2); -x_21 = lean_ctor_get(x_5, 3); -x_22 = lean_ctor_get(x_5, 4); -x_23 = lean_ctor_get(x_5, 5); +lean_inc(x_17); +lean_dec(x_4); +x_23 = lean_ctor_get(x_2, 0); lean_inc(x_23); +x_24 = l_Lean_TraceState_Inhabited___closed__1; +x_25 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_25, 0, x_17); +lean_ctor_set(x_25, 1, x_18); +lean_ctor_set(x_25, 2, x_19); +lean_ctor_set(x_25, 3, x_20); +lean_ctor_set(x_25, 4, x_24); +lean_ctor_set(x_25, 5, x_22); +x_26 = l_Lean_Meta_instantiateMVars(x_1, x_23, x_25); +lean_dec(x_23); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +if (lean_is_exclusive(x_26)) { + lean_ctor_release(x_26, 0); + lean_ctor_release(x_26, 1); + x_29 = x_26; +} else { + lean_dec_ref(x_26); + x_29 = lean_box(0); +} +x_30 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_28, x_21); +if (lean_is_scalar(x_29)) { + x_31 = lean_alloc_ctor(0, 2, 0); +} else { + x_31 = x_29; +} +lean_ctor_set(x_31, 0, x_27); +lean_ctor_set(x_31, 1, x_30); +return x_31; +} +} +} +lean_object* l_Lean_Elab_Term_instantiateLevelMVars(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +x_5 = !lean_is_exclusive(x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_6 = lean_ctor_get(x_4, 4); +x_7 = lean_ctor_get(x_2, 0); +lean_inc(x_7); +x_8 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_4, 4, x_8); +x_9 = l_Lean_Meta_instantiateLevelMVars(x_1, x_7, x_4); +lean_dec(x_7); +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_9, 1); +x_12 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_11, x_6); +lean_ctor_set(x_9, 1, x_12); +return x_9; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_13 = lean_ctor_get(x_9, 0); +x_14 = lean_ctor_get(x_9, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_9); +x_15 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_14, x_6); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_13); +lean_ctor_set(x_16, 1, x_15); +return x_16; +} +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_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; +x_17 = lean_ctor_get(x_4, 0); +x_18 = lean_ctor_get(x_4, 1); +x_19 = lean_ctor_get(x_4, 2); +x_20 = lean_ctor_get(x_4, 3); +x_21 = lean_ctor_get(x_4, 4); +x_22 = lean_ctor_get(x_4, 5); lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); -lean_dec(x_5); -x_24 = lean_ctor_get(x_3, 0); -lean_inc(x_24); -x_25 = l_Lean_TraceState_Inhabited___closed__1; -x_26 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_26, 0, x_18); -lean_ctor_set(x_26, 1, x_19); -lean_ctor_set(x_26, 2, x_20); -lean_ctor_set(x_26, 3, x_21); -lean_ctor_set(x_26, 4, x_25); -lean_ctor_set(x_26, 5, x_23); -x_27 = l_Lean_Meta_instantiateLevelMVars(x_2, x_24, x_26); -lean_dec(x_24); -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); -x_29 = lean_ctor_get(x_27, 1); -lean_inc(x_29); -if (lean_is_exclusive(x_27)) { - lean_ctor_release(x_27, 0); - lean_ctor_release(x_27, 1); - x_30 = x_27; -} else { - lean_dec_ref(x_27); - x_30 = lean_box(0); -} -x_31 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_29, x_22); -if (lean_is_scalar(x_30)) { - x_32 = lean_alloc_ctor(0, 2, 0); -} else { - x_32 = x_30; -} -lean_ctor_set(x_32, 0, x_28); -lean_ctor_set(x_32, 1, x_31); -return x_32; -} -} -} -lean_object* l_Lean_Elab_Term_instantiateLevelMVars___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_Elab_Term_instantiateLevelMVars(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} -lean_object* l_Lean_Elab_Term_isClass(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; uint8_t x_6; -x_5 = lean_ctor_get(x_4, 0); -lean_inc(x_5); -x_6 = !lean_is_exclusive(x_5); -if (x_6 == 0) -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_7 = lean_ctor_get(x_5, 4); -x_8 = lean_ctor_get(x_3, 0); -lean_inc(x_8); -x_9 = l_Lean_TraceState_Inhabited___closed__1; -lean_ctor_set(x_5, 4, x_9); -x_10 = l_Lean_Meta_isClass(x_2, x_8, x_5); -if (lean_obj_tag(x_10) == 0) -{ -uint8_t x_11; -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_10, 1); -x_13 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_12, x_7); -lean_ctor_set(x_10, 1, x_13); -return x_10; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_14 = lean_ctor_get(x_10, 0); -x_15 = lean_ctor_get(x_10, 1); -lean_inc(x_15); -lean_inc(x_14); -lean_dec(x_10); -x_16 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_15, x_7); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_14); -lean_ctor_set(x_17, 1, x_16); -return x_17; -} -} -else -{ -uint8_t x_18; -x_18 = !lean_is_exclusive(x_10); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_10, 0); -x_20 = lean_ctor_get(x_10, 1); -lean_inc(x_3); -x_21 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_19); -x_22 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_20, x_7); -lean_ctor_set(x_10, 1, x_22); -lean_ctor_set(x_10, 0, x_21); -return x_10; -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_23 = lean_ctor_get(x_10, 0); -x_24 = lean_ctor_get(x_10, 1); -lean_inc(x_24); +lean_inc(x_17); +lean_dec(x_4); +x_23 = lean_ctor_get(x_2, 0); lean_inc(x_23); -lean_dec(x_10); -lean_inc(x_3); -x_25 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_23); -x_26 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_24, 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; +x_24 = l_Lean_TraceState_Inhabited___closed__1; +x_25 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_25, 0, x_17); +lean_ctor_set(x_25, 1, x_18); +lean_ctor_set(x_25, 2, x_19); +lean_ctor_set(x_25, 3, x_20); +lean_ctor_set(x_25, 4, x_24); +lean_ctor_set(x_25, 5, x_22); +x_26 = l_Lean_Meta_instantiateLevelMVars(x_1, x_23, x_25); +lean_dec(x_23); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +if (lean_is_exclusive(x_26)) { + lean_ctor_release(x_26, 0); + lean_ctor_release(x_26, 1); + x_29 = x_26; +} else { + lean_dec_ref(x_26); + x_29 = lean_box(0); +} +x_30 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_28, x_21); +if (lean_is_scalar(x_29)) { + x_31 = lean_alloc_ctor(0, 2, 0); +} else { + x_31 = x_29; +} +lean_ctor_set(x_31, 0, x_27); +lean_ctor_set(x_31, 1, x_30); +return x_31; +} +} +} +lean_object* l_Lean_Elab_Term_isClass(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +x_5 = !lean_is_exclusive(x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = lean_ctor_get(x_4, 4); +x_7 = lean_ctor_get(x_2, 0); +lean_inc(x_7); +x_8 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_4, 4, x_8); +x_9 = l_Lean_Meta_isClass(x_1, x_7, x_4); +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_9, 1); +x_12 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_11, x_6); +lean_ctor_set(x_9, 1, x_12); +return x_9; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_13 = lean_ctor_get(x_9, 0); +x_14 = lean_ctor_get(x_9, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_9); +x_15 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_14, x_6); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_13); +lean_ctor_set(x_16, 1, x_15); +return x_16; +} +} +else +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_9); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_9, 0); +x_19 = lean_ctor_get(x_9, 1); +lean_inc(x_2); +x_20 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_18); +x_21 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_19, x_6); +lean_ctor_set(x_9, 1, x_21); +lean_ctor_set(x_9, 0, x_20); +return x_9; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_22 = lean_ctor_get(x_9, 0); +x_23 = lean_ctor_get(x_9, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_9); +lean_inc(x_2); +x_24 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_22); +x_25 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_23, x_6); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; } } } else { -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_28 = lean_ctor_get(x_5, 0); -x_29 = lean_ctor_get(x_5, 1); -x_30 = lean_ctor_get(x_5, 2); -x_31 = lean_ctor_get(x_5, 3); -x_32 = lean_ctor_get(x_5, 4); -x_33 = lean_ctor_get(x_5, 5); -lean_inc(x_33); +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_27 = lean_ctor_get(x_4, 0); +x_28 = lean_ctor_get(x_4, 1); +x_29 = lean_ctor_get(x_4, 2); +x_30 = lean_ctor_get(x_4, 3); +x_31 = lean_ctor_get(x_4, 4); +x_32 = lean_ctor_get(x_4, 5); lean_inc(x_32); lean_inc(x_31); lean_inc(x_30); lean_inc(x_29); lean_inc(x_28); -lean_dec(x_5); -x_34 = lean_ctor_get(x_3, 0); -lean_inc(x_34); -x_35 = l_Lean_TraceState_Inhabited___closed__1; -x_36 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_36, 0, x_28); -lean_ctor_set(x_36, 1, x_29); -lean_ctor_set(x_36, 2, x_30); -lean_ctor_set(x_36, 3, x_31); -lean_ctor_set(x_36, 4, x_35); -lean_ctor_set(x_36, 5, x_33); -x_37 = l_Lean_Meta_isClass(x_2, x_34, x_36); -if (lean_obj_tag(x_37) == 0) +lean_inc(x_27); +lean_dec(x_4); +x_33 = lean_ctor_get(x_2, 0); +lean_inc(x_33); +x_34 = l_Lean_TraceState_Inhabited___closed__1; +x_35 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_35, 0, x_27); +lean_ctor_set(x_35, 1, x_28); +lean_ctor_set(x_35, 2, x_29); +lean_ctor_set(x_35, 3, x_30); +lean_ctor_set(x_35, 4, x_34); +lean_ctor_set(x_35, 5, x_32); +x_36 = l_Lean_Meta_isClass(x_1, x_33, x_35); +if (lean_obj_tag(x_36) == 0) { -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_37, 0); +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_36, 1); lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); -if (lean_is_exclusive(x_37)) { - lean_ctor_release(x_37, 0); - lean_ctor_release(x_37, 1); - x_40 = x_37; +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_39 = x_36; } else { - lean_dec_ref(x_37); - x_40 = lean_box(0); + lean_dec_ref(x_36); + x_39 = lean_box(0); } -x_41 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_39, x_32); -if (lean_is_scalar(x_40)) { - x_42 = lean_alloc_ctor(0, 2, 0); +x_40 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_38, x_31); +if (lean_is_scalar(x_39)) { + x_41 = lean_alloc_ctor(0, 2, 0); } else { - x_42 = x_40; + x_41 = x_39; } -lean_ctor_set(x_42, 0, x_38); -lean_ctor_set(x_42, 1, x_41); -return x_42; +lean_ctor_set(x_41, 0, x_37); +lean_ctor_set(x_41, 1, x_40); +return x_41; } else { -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_37, 0); +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_42 = lean_ctor_get(x_36, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_36, 1); lean_inc(x_43); -x_44 = lean_ctor_get(x_37, 1); -lean_inc(x_44); -if (lean_is_exclusive(x_37)) { - lean_ctor_release(x_37, 0); - lean_ctor_release(x_37, 1); - x_45 = x_37; +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_44 = x_36; } else { - lean_dec_ref(x_37); - x_45 = lean_box(0); + lean_dec_ref(x_36); + x_44 = lean_box(0); } -lean_inc(x_3); -x_46 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_43); -x_47 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_44, x_32); -if (lean_is_scalar(x_45)) { - x_48 = lean_alloc_ctor(1, 2, 0); +lean_inc(x_2); +x_45 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_42); +x_46 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_43, x_31); +if (lean_is_scalar(x_44)) { + x_47 = lean_alloc_ctor(1, 2, 0); } else { - x_48 = x_45; + x_47 = x_44; } -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; } } } } -lean_object* l_Lean_Elab_Term_isClass___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_Elab_Term_isClass(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} lean_object* l_Lean_Elab_Term_mkFreshId(lean_object* x_1, lean_object* x_2) { _start: { @@ -7715,176 +7731,392 @@ x_7 = l_Lean_Meta_mkFreshId___rarg(x_3); x_8 = !lean_is_exclusive(x_7); if (x_8 == 0) { -lean_object* x_9; lean_object* x_10; lean_object* x_11; +lean_object* x_9; lean_object* x_10; x_9 = lean_ctor_get(x_7, 1); -x_10 = lean_box(0); -x_11 = l___private_Lean_Elab_Term_3__fromMetaState(x_10, x_1, x_2, x_9, x_5); -lean_ctor_set(x_7, 1, x_11); +x_10 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_2, x_9, x_5); +lean_ctor_set(x_7, 1, x_10); return x_7; } else { -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_12 = lean_ctor_get(x_7, 0); -x_13 = lean_ctor_get(x_7, 1); -lean_inc(x_13); +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = lean_ctor_get(x_7, 0); +x_12 = lean_ctor_get(x_7, 1); lean_inc(x_12); +lean_inc(x_11); lean_dec(x_7); -x_14 = lean_box(0); -x_15 = l___private_Lean_Elab_Term_3__fromMetaState(x_14, x_1, x_2, x_13, x_5); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_12); -lean_ctor_set(x_16, 1, x_15); -return x_16; +x_13 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_2, x_12, x_5); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_11); +lean_ctor_set(x_14, 1, x_13); +return x_14; } } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_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; -x_17 = lean_ctor_get(x_3, 0); -x_18 = lean_ctor_get(x_3, 1); -x_19 = lean_ctor_get(x_3, 2); -x_20 = lean_ctor_get(x_3, 3); -x_21 = lean_ctor_get(x_3, 4); -x_22 = lean_ctor_get(x_3, 5); -lean_inc(x_22); -lean_inc(x_21); -lean_inc(x_20); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_dec(x_3); -x_23 = l_Lean_TraceState_Inhabited___closed__1; -x_24 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_24, 0, x_17); -lean_ctor_set(x_24, 1, x_18); -lean_ctor_set(x_24, 2, x_19); -lean_ctor_set(x_24, 3, x_20); -lean_ctor_set(x_24, 4, x_23); -lean_ctor_set(x_24, 5, x_22); -x_25 = l_Lean_Meta_mkFreshId___rarg(x_24); -x_26 = lean_ctor_get(x_25, 0); -lean_inc(x_26); -x_27 = lean_ctor_get(x_25, 1); -lean_inc(x_27); -if (lean_is_exclusive(x_25)) { - lean_ctor_release(x_25, 0); - lean_ctor_release(x_25, 1); - x_28 = x_25; -} else { - lean_dec_ref(x_25); - x_28 = lean_box(0); -} -x_29 = lean_box(0); -x_30 = l___private_Lean_Elab_Term_3__fromMetaState(x_29, x_1, x_2, x_27, x_21); -if (lean_is_scalar(x_28)) { - x_31 = lean_alloc_ctor(0, 2, 0); -} else { - x_31 = x_28; -} -lean_ctor_set(x_31, 0, x_26); -lean_ctor_set(x_31, 1, x_30); -return x_31; -} -} -} -lean_object* l_Lean_Elab_Term_mkFreshLevelMVar(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_ctor_get(x_3, 0); -lean_inc(x_4); -x_5 = !lean_is_exclusive(x_4); -if (x_5 == 0) -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; -x_6 = lean_ctor_get(x_4, 4); -x_7 = l_Lean_TraceState_Inhabited___closed__1; -lean_ctor_set(x_4, 4, x_7); -x_8 = l_Lean_Meta_mkFreshLevelMVar___rarg(x_4); -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, 1); -x_11 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_2, x_3, x_10, x_6); -lean_ctor_set(x_8, 1, 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); -x_14 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_2, x_3, x_13, x_6); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_12); -lean_ctor_set(x_15, 1, x_14); -return x_15; -} -} -else -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_16 = lean_ctor_get(x_4, 0); -x_17 = lean_ctor_get(x_4, 1); -x_18 = lean_ctor_get(x_4, 2); -x_19 = lean_ctor_get(x_4, 3); -x_20 = lean_ctor_get(x_4, 4); -x_21 = lean_ctor_get(x_4, 5); -lean_inc(x_21); +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_15 = lean_ctor_get(x_3, 0); +x_16 = lean_ctor_get(x_3, 1); +x_17 = lean_ctor_get(x_3, 2); +x_18 = lean_ctor_get(x_3, 3); +x_19 = lean_ctor_get(x_3, 4); +x_20 = lean_ctor_get(x_3, 5); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); -lean_dec(x_4); -x_22 = l_Lean_TraceState_Inhabited___closed__1; -x_23 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_23, 0, x_16); -lean_ctor_set(x_23, 1, x_17); -lean_ctor_set(x_23, 2, x_18); -lean_ctor_set(x_23, 3, x_19); -lean_ctor_set(x_23, 4, x_22); -lean_ctor_set(x_23, 5, x_21); -x_24 = l_Lean_Meta_mkFreshLevelMVar___rarg(x_23); -x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_15); +lean_dec(x_3); +x_21 = l_Lean_TraceState_Inhabited___closed__1; +x_22 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_22, 0, x_15); +lean_ctor_set(x_22, 1, x_16); +lean_ctor_set(x_22, 2, x_17); +lean_ctor_set(x_22, 3, x_18); +lean_ctor_set(x_22, 4, x_21); +lean_ctor_set(x_22, 5, x_20); +x_23 = l_Lean_Meta_mkFreshId___rarg(x_22); +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); -if (lean_is_exclusive(x_24)) { - lean_ctor_release(x_24, 0); - lean_ctor_release(x_24, 1); - x_27 = x_24; +if (lean_is_exclusive(x_23)) { + lean_ctor_release(x_23, 0); + lean_ctor_release(x_23, 1); + x_26 = x_23; } else { - lean_dec_ref(x_24); - x_27 = lean_box(0); + lean_dec_ref(x_23); + x_26 = lean_box(0); } -x_28 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_2, x_3, x_26, x_20); -if (lean_is_scalar(x_27)) { - x_29 = lean_alloc_ctor(0, 2, 0); +x_27 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_2, x_25, x_19); +if (lean_is_scalar(x_26)) { + x_28 = lean_alloc_ctor(0, 2, 0); } else { - x_29 = x_27; + x_28 = x_26; } -lean_ctor_set(x_29, 0, x_25); -lean_ctor_set(x_29, 1, x_28); -return x_29; +lean_ctor_set(x_28, 0, x_24); +lean_ctor_set(x_28, 1, x_27); +return x_28; } } } -lean_object* l_Lean_Elab_Term_mkFreshLevelMVar___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Elab_Term_mkFreshLevelMVar(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_4; -x_4 = l_Lean_Elab_Term_mkFreshLevelMVar(x_1, x_2, x_3); +lean_object* x_3; uint8_t x_4; +x_3 = lean_ctor_get(x_2, 0); +lean_inc(x_3); +x_4 = !lean_is_exclusive(x_3); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_5 = lean_ctor_get(x_3, 4); +x_6 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_3, 4, x_6); +x_7 = l_Lean_Meta_mkFreshLevelMVar___rarg(x_3); +x_8 = !lean_is_exclusive(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_ctor_get(x_7, 1); +x_10 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_2, x_9, x_5); +lean_ctor_set(x_7, 1, x_10); +return x_7; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = lean_ctor_get(x_7, 0); +x_12 = lean_ctor_get(x_7, 1); +lean_inc(x_12); +lean_inc(x_11); +lean_dec(x_7); +x_13 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_2, x_12, x_5); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_11); +lean_ctor_set(x_14, 1, x_13); +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_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_15 = lean_ctor_get(x_3, 0); +x_16 = lean_ctor_get(x_3, 1); +x_17 = lean_ctor_get(x_3, 2); +x_18 = lean_ctor_get(x_3, 3); +x_19 = lean_ctor_get(x_3, 4); +x_20 = lean_ctor_get(x_3, 5); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_dec(x_3); +x_21 = l_Lean_TraceState_Inhabited___closed__1; +x_22 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_22, 0, x_15); +lean_ctor_set(x_22, 1, x_16); +lean_ctor_set(x_22, 2, x_17); +lean_ctor_set(x_22, 3, x_18); +lean_ctor_set(x_22, 4, x_21); +lean_ctor_set(x_22, 5, x_20); +x_23 = l_Lean_Meta_mkFreshLevelMVar___rarg(x_22); +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +if (lean_is_exclusive(x_23)) { + lean_ctor_release(x_23, 0); + lean_ctor_release(x_23, 1); + x_26 = x_23; +} else { + lean_dec_ref(x_23); + x_26 = lean_box(0); +} +x_27 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_2, x_25, x_19); +if (lean_is_scalar(x_26)) { + x_28 = lean_alloc_ctor(0, 2, 0); +} else { + x_28 = x_26; +} +lean_ctor_set(x_28, 0, x_24); +lean_ctor_set(x_28, 1, x_27); +return x_28; +} +} +} +lean_object* l_Lean_Elab_Term_mkFreshExprMVar(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_6; uint8_t x_7; +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = !lean_is_exclusive(x_6); +if (x_7 == 0) +{ +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; uint8_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_8 = lean_ctor_get(x_6, 4); +x_9 = lean_ctor_get(x_4, 0); +lean_inc(x_9); +x_10 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_6, 4, x_10); +x_11 = l_Lean_Meta_mkFreshLevelMVar___rarg(x_6); +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 = l_Lean_mkSort(x_12); +x_15 = lean_box(0); +x_16 = 0; +lean_inc(x_9); +x_17 = l_Lean_Meta_mkFreshExprMVar(x_14, x_15, x_16, x_9, x_13); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = l_Lean_Meta_mkFreshExprMVar(x_18, x_3, x_2, x_9, x_19); +x_21 = !lean_is_exclusive(x_20); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_ctor_get(x_20, 1); +x_23 = l___private_Lean_Elab_Term_3__fromMetaState(x_4, x_5, x_22, x_8); +lean_ctor_set(x_20, 1, x_23); +return x_20; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_24 = lean_ctor_get(x_20, 0); +x_25 = lean_ctor_get(x_20, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_20); +x_26 = l___private_Lean_Elab_Term_3__fromMetaState(x_4, x_5, x_25, x_8); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_24); +lean_ctor_set(x_27, 1, x_26); +return x_27; +} +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_28 = lean_ctor_get(x_6, 0); +x_29 = lean_ctor_get(x_6, 1); +x_30 = lean_ctor_get(x_6, 2); +x_31 = lean_ctor_get(x_6, 3); +x_32 = lean_ctor_get(x_6, 4); +x_33 = lean_ctor_get(x_6, 5); +lean_inc(x_33); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_6); +x_34 = lean_ctor_get(x_4, 0); +lean_inc(x_34); +x_35 = l_Lean_TraceState_Inhabited___closed__1; +x_36 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_36, 0, x_28); +lean_ctor_set(x_36, 1, x_29); +lean_ctor_set(x_36, 2, x_30); +lean_ctor_set(x_36, 3, x_31); +lean_ctor_set(x_36, 4, x_35); +lean_ctor_set(x_36, 5, x_33); +x_37 = l_Lean_Meta_mkFreshLevelMVar___rarg(x_36); +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 = l_Lean_mkSort(x_38); +x_41 = lean_box(0); +x_42 = 0; +lean_inc(x_34); +x_43 = l_Lean_Meta_mkFreshExprMVar(x_40, x_41, x_42, x_34, x_39); +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_Lean_Meta_mkFreshExprMVar(x_44, x_3, x_2, x_34, x_45); +x_47 = lean_ctor_get(x_46, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_46, 1); +lean_inc(x_48); +if (lean_is_exclusive(x_46)) { + lean_ctor_release(x_46, 0); + lean_ctor_release(x_46, 1); + x_49 = x_46; +} else { + lean_dec_ref(x_46); + x_49 = lean_box(0); +} +x_50 = l___private_Lean_Elab_Term_3__fromMetaState(x_4, x_5, x_48, x_32); +if (lean_is_scalar(x_49)) { + x_51 = lean_alloc_ctor(0, 2, 0); +} else { + x_51 = x_49; +} +lean_ctor_set(x_51, 0, x_47); +lean_ctor_set(x_51, 1, x_50); +return x_51; +} +} +else +{ +lean_object* x_52; lean_object* x_53; uint8_t x_54; +x_52 = lean_ctor_get(x_5, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_1, 0); +lean_inc(x_53); lean_dec(x_1); -return x_4; +x_54 = !lean_is_exclusive(x_52); +if (x_54 == 0) +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; +x_55 = lean_ctor_get(x_52, 4); +x_56 = lean_ctor_get(x_4, 0); +lean_inc(x_56); +x_57 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_52, 4, x_57); +x_58 = l_Lean_Meta_mkFreshExprMVar(x_53, x_3, x_2, x_56, x_52); +x_59 = !lean_is_exclusive(x_58); +if (x_59 == 0) +{ +lean_object* x_60; lean_object* x_61; +x_60 = lean_ctor_get(x_58, 1); +x_61 = l___private_Lean_Elab_Term_3__fromMetaState(x_4, x_5, x_60, x_55); +lean_ctor_set(x_58, 1, x_61); +return x_58; +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_62 = lean_ctor_get(x_58, 0); +x_63 = lean_ctor_get(x_58, 1); +lean_inc(x_63); +lean_inc(x_62); +lean_dec(x_58); +x_64 = l___private_Lean_Elab_Term_3__fromMetaState(x_4, x_5, x_63, x_55); +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_62); +lean_ctor_set(x_65, 1, x_64); +return x_65; } } -lean_object* l_Lean_Elab_Term_mkFreshExprMVar(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_66 = lean_ctor_get(x_52, 0); +x_67 = lean_ctor_get(x_52, 1); +x_68 = lean_ctor_get(x_52, 2); +x_69 = lean_ctor_get(x_52, 3); +x_70 = lean_ctor_get(x_52, 4); +x_71 = lean_ctor_get(x_52, 5); +lean_inc(x_71); +lean_inc(x_70); +lean_inc(x_69); +lean_inc(x_68); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_52); +x_72 = lean_ctor_get(x_4, 0); +lean_inc(x_72); +x_73 = l_Lean_TraceState_Inhabited___closed__1; +x_74 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_74, 0, x_66); +lean_ctor_set(x_74, 1, x_67); +lean_ctor_set(x_74, 2, x_68); +lean_ctor_set(x_74, 3, x_69); +lean_ctor_set(x_74, 4, x_73); +lean_ctor_set(x_74, 5, x_71); +x_75 = l_Lean_Meta_mkFreshExprMVar(x_53, x_3, x_2, x_72, x_74); +x_76 = lean_ctor_get(x_75, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_75, 1); +lean_inc(x_77); +if (lean_is_exclusive(x_75)) { + lean_ctor_release(x_75, 0); + lean_ctor_release(x_75, 1); + x_78 = x_75; +} else { + lean_dec_ref(x_75); + x_78 = lean_box(0); +} +x_79 = l___private_Lean_Elab_Term_3__fromMetaState(x_4, x_5, x_77, x_70); +if (lean_is_scalar(x_78)) { + x_80 = lean_alloc_ctor(0, 2, 0); +} else { + x_80 = x_78; +} +lean_ctor_set(x_80, 0, x_76); +lean_ctor_set(x_80, 1, x_79); +return x_80; +} +} +} +} +lean_object* l_Lean_Elab_Term_mkFreshExprMVar___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; lean_object* x_7; +x_6 = lean_unbox(x_2); +lean_dec(x_2); +x_7 = l_Lean_Elab_Term_mkFreshExprMVar(x_1, x_6, x_3, x_4, x_5); +return x_7; +} +} +lean_object* l_Lean_Elab_Term_mkFreshExprMVarWithId(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { if (lean_obj_tag(x_2) == 0) @@ -7917,13 +8149,13 @@ lean_inc(x_19); x_20 = lean_ctor_get(x_18, 1); lean_inc(x_20); lean_dec(x_18); -x_21 = l_Lean_Meta_mkFreshExprMVar(x_19, x_4, x_3, x_10, x_20); +x_21 = l_Lean_Meta_mkFreshExprMVarWithId(x_1, x_19, x_4, x_3, x_10, x_20); x_22 = !lean_is_exclusive(x_21); if (x_22 == 0) { lean_object* x_23; lean_object* x_24; x_23 = lean_ctor_get(x_21, 1); -x_24 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_5, x_6, x_23, x_9); +x_24 = l___private_Lean_Elab_Term_3__fromMetaState(x_5, x_6, x_23, x_9); lean_ctor_set(x_21, 1, x_24); return x_21; } @@ -7935,7 +8167,7 @@ x_26 = lean_ctor_get(x_21, 1); lean_inc(x_26); lean_inc(x_25); lean_dec(x_21); -x_27 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_5, x_6, x_26, x_9); +x_27 = l___private_Lean_Elab_Term_3__fromMetaState(x_5, x_6, x_26, x_9); x_28 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_28, 0, x_25); lean_ctor_set(x_28, 1, x_27); @@ -7984,7 +8216,7 @@ lean_inc(x_45); x_46 = lean_ctor_get(x_44, 1); lean_inc(x_46); lean_dec(x_44); -x_47 = l_Lean_Meta_mkFreshExprMVar(x_45, x_4, x_3, x_35, x_46); +x_47 = l_Lean_Meta_mkFreshExprMVarWithId(x_1, x_45, x_4, x_3, x_35, x_46); x_48 = lean_ctor_get(x_47, 0); lean_inc(x_48); x_49 = lean_ctor_get(x_47, 1); @@ -7997,7 +8229,7 @@ if (lean_is_exclusive(x_47)) { lean_dec_ref(x_47); x_50 = lean_box(0); } -x_51 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_5, x_6, x_49, x_33); +x_51 = l___private_Lean_Elab_Term_3__fromMetaState(x_5, x_6, x_49, x_33); if (lean_is_scalar(x_50)) { x_52 = lean_alloc_ctor(0, 2, 0); } else { @@ -8025,13 +8257,13 @@ x_57 = lean_ctor_get(x_5, 0); lean_inc(x_57); x_58 = l_Lean_TraceState_Inhabited___closed__1; lean_ctor_set(x_53, 4, x_58); -x_59 = l_Lean_Meta_mkFreshExprMVar(x_54, x_4, x_3, x_57, x_53); +x_59 = l_Lean_Meta_mkFreshExprMVarWithId(x_1, x_54, x_4, x_3, x_57, x_53); x_60 = !lean_is_exclusive(x_59); if (x_60 == 0) { lean_object* x_61; lean_object* x_62; x_61 = lean_ctor_get(x_59, 1); -x_62 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_5, x_6, x_61, x_56); +x_62 = l___private_Lean_Elab_Term_3__fromMetaState(x_5, x_6, x_61, x_56); lean_ctor_set(x_59, 1, x_62); return x_59; } @@ -8043,7 +8275,7 @@ x_64 = lean_ctor_get(x_59, 1); lean_inc(x_64); lean_inc(x_63); lean_dec(x_59); -x_65 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_5, x_6, x_64, x_56); +x_65 = l___private_Lean_Elab_Term_3__fromMetaState(x_5, x_6, x_64, x_56); x_66 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_66, 0, x_63); lean_ctor_set(x_66, 1, x_65); @@ -8076,7 +8308,7 @@ lean_ctor_set(x_75, 2, x_69); lean_ctor_set(x_75, 3, x_70); lean_ctor_set(x_75, 4, x_74); lean_ctor_set(x_75, 5, x_72); -x_76 = l_Lean_Meta_mkFreshExprMVar(x_54, x_4, x_3, x_73, x_75); +x_76 = l_Lean_Meta_mkFreshExprMVarWithId(x_1, x_54, x_4, x_3, x_73, x_75); x_77 = lean_ctor_get(x_76, 0); lean_inc(x_77); x_78 = lean_ctor_get(x_76, 1); @@ -8089,7 +8321,7 @@ if (lean_is_exclusive(x_76)) { lean_dec_ref(x_76); x_79 = lean_box(0); } -x_80 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_5, x_6, x_78, x_71); +x_80 = l___private_Lean_Elab_Term_3__fromMetaState(x_5, x_6, x_78, x_71); if (lean_is_scalar(x_79)) { x_81 = lean_alloc_ctor(0, 2, 0); } else { @@ -8102,327 +8334,238 @@ return x_81; } } } -lean_object* l_Lean_Elab_Term_mkFreshExprMVar___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* l_Lean_Elab_Term_mkFreshExprMVarWithId___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { uint8_t x_7; lean_object* x_8; x_7 = lean_unbox(x_3); lean_dec(x_3); -x_8 = l_Lean_Elab_Term_mkFreshExprMVar(x_1, x_2, x_7, x_4, x_5, x_6); -lean_dec(x_1); +x_8 = l_Lean_Elab_Term_mkFreshExprMVarWithId(x_1, x_2, x_7, x_4, x_5, x_6); return x_8; } } -lean_object* l_Lean_Elab_Term_mkFreshExprMVarWithId(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Lean_Elab_Term_mkFreshTypeMVar(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -if (lean_obj_tag(x_3) == 0) +lean_object* x_5; uint8_t x_6; +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +x_6 = !lean_is_exclusive(x_5); +if (x_6 == 0) { -lean_object* x_8; uint8_t x_9; -x_8 = lean_ctor_get(x_7, 0); +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_7 = lean_ctor_get(x_5, 4); +x_8 = lean_ctor_get(x_3, 0); lean_inc(x_8); -x_9 = !lean_is_exclusive(x_8); -if (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; uint8_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; -x_10 = lean_ctor_get(x_8, 4); -x_11 = lean_ctor_get(x_6, 0); +x_9 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_5, 4, x_9); +x_10 = l_Lean_Meta_mkFreshLevelMVar___rarg(x_5); +x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); -x_12 = l_Lean_TraceState_Inhabited___closed__1; -lean_ctor_set(x_8, 4, x_12); -x_13 = l_Lean_Meta_mkFreshLevelMVar___rarg(x_8); -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -x_15 = lean_ctor_get(x_13, 1); -lean_inc(x_15); -lean_dec(x_13); -x_16 = l_Lean_mkSort(x_14); -x_17 = lean_box(0); -x_18 = 0; -lean_inc(x_11); -x_19 = l_Lean_Meta_mkFreshExprMVar(x_16, x_17, x_18, x_11, x_15); -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_19, 1); -lean_inc(x_21); -lean_dec(x_19); -x_22 = l_Lean_Meta_mkFreshExprMVarWithId(x_2, x_20, x_5, x_4, x_11, x_21); -x_23 = !lean_is_exclusive(x_22); -if (x_23 == 0) -{ -lean_object* x_24; lean_object* x_25; -x_24 = lean_ctor_get(x_22, 1); -x_25 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_6, x_7, x_24, x_10); -lean_ctor_set(x_22, 1, x_25); -return x_22; -} -else -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_26 = lean_ctor_get(x_22, 0); -x_27 = lean_ctor_get(x_22, 1); -lean_inc(x_27); -lean_inc(x_26); -lean_dec(x_22); -x_28 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_6, x_7, x_27, x_10); -x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_26); -lean_ctor_set(x_29, 1, x_28); -return x_29; -} -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_30 = lean_ctor_get(x_8, 0); -x_31 = lean_ctor_get(x_8, 1); -x_32 = lean_ctor_get(x_8, 2); -x_33 = lean_ctor_get(x_8, 3); -x_34 = lean_ctor_get(x_8, 4); -x_35 = lean_ctor_get(x_8, 5); -lean_inc(x_35); -lean_inc(x_34); -lean_inc(x_33); -lean_inc(x_32); -lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_8); -x_36 = lean_ctor_get(x_6, 0); -lean_inc(x_36); -x_37 = l_Lean_TraceState_Inhabited___closed__1; -x_38 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_38, 0, x_30); -lean_ctor_set(x_38, 1, x_31); -lean_ctor_set(x_38, 2, x_32); -lean_ctor_set(x_38, 3, x_33); -lean_ctor_set(x_38, 4, x_37); -lean_ctor_set(x_38, 5, x_35); -x_39 = l_Lean_Meta_mkFreshLevelMVar___rarg(x_38); -x_40 = lean_ctor_get(x_39, 0); -lean_inc(x_40); -x_41 = lean_ctor_get(x_39, 1); -lean_inc(x_41); -lean_dec(x_39); -x_42 = l_Lean_mkSort(x_40); -x_43 = lean_box(0); -x_44 = 0; -lean_inc(x_36); -x_45 = l_Lean_Meta_mkFreshExprMVar(x_42, x_43, x_44, x_36, x_41); -x_46 = lean_ctor_get(x_45, 0); -lean_inc(x_46); -x_47 = lean_ctor_get(x_45, 1); -lean_inc(x_47); -lean_dec(x_45); -x_48 = l_Lean_Meta_mkFreshExprMVarWithId(x_2, x_46, x_5, x_4, x_36, x_47); -x_49 = lean_ctor_get(x_48, 0); -lean_inc(x_49); -x_50 = lean_ctor_get(x_48, 1); -lean_inc(x_50); -if (lean_is_exclusive(x_48)) { - lean_ctor_release(x_48, 0); - lean_ctor_release(x_48, 1); - x_51 = x_48; -} else { - lean_dec_ref(x_48); - x_51 = lean_box(0); -} -x_52 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_6, x_7, x_50, x_34); -if (lean_is_scalar(x_51)) { - x_53 = lean_alloc_ctor(0, 2, 0); -} else { - x_53 = x_51; -} -lean_ctor_set(x_53, 0, x_49); -lean_ctor_set(x_53, 1, x_52); -return x_53; -} -} -else -{ -lean_object* x_54; lean_object* x_55; uint8_t x_56; -x_54 = lean_ctor_get(x_7, 0); -lean_inc(x_54); -x_55 = lean_ctor_get(x_3, 0); -lean_inc(x_55); -lean_dec(x_3); -x_56 = !lean_is_exclusive(x_54); -if (x_56 == 0) -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t x_61; -x_57 = lean_ctor_get(x_54, 4); -x_58 = lean_ctor_get(x_6, 0); -lean_inc(x_58); -x_59 = l_Lean_TraceState_Inhabited___closed__1; -lean_ctor_set(x_54, 4, x_59); -x_60 = l_Lean_Meta_mkFreshExprMVarWithId(x_2, x_55, x_5, x_4, x_58, x_54); -x_61 = !lean_is_exclusive(x_60); -if (x_61 == 0) -{ -lean_object* x_62; lean_object* x_63; -x_62 = lean_ctor_get(x_60, 1); -x_63 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_6, x_7, x_62, x_57); -lean_ctor_set(x_60, 1, x_63); -return x_60; -} -else -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_64 = lean_ctor_get(x_60, 0); -x_65 = lean_ctor_get(x_60, 1); -lean_inc(x_65); -lean_inc(x_64); -lean_dec(x_60); -x_66 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_6, x_7, x_65, x_57); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_64); -lean_ctor_set(x_67, 1, x_66); -return x_67; -} -} -else -{ -lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_68 = lean_ctor_get(x_54, 0); -x_69 = lean_ctor_get(x_54, 1); -x_70 = lean_ctor_get(x_54, 2); -x_71 = lean_ctor_get(x_54, 3); -x_72 = lean_ctor_get(x_54, 4); -x_73 = lean_ctor_get(x_54, 5); -lean_inc(x_73); -lean_inc(x_72); -lean_inc(x_71); -lean_inc(x_70); -lean_inc(x_69); -lean_inc(x_68); -lean_dec(x_54); -x_74 = lean_ctor_get(x_6, 0); -lean_inc(x_74); -x_75 = l_Lean_TraceState_Inhabited___closed__1; -x_76 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_76, 0, x_68); -lean_ctor_set(x_76, 1, x_69); -lean_ctor_set(x_76, 2, x_70); -lean_ctor_set(x_76, 3, x_71); -lean_ctor_set(x_76, 4, x_75); -lean_ctor_set(x_76, 5, x_73); -x_77 = l_Lean_Meta_mkFreshExprMVarWithId(x_2, x_55, x_5, x_4, x_74, x_76); -x_78 = lean_ctor_get(x_77, 0); -lean_inc(x_78); -x_79 = lean_ctor_get(x_77, 1); -lean_inc(x_79); -if (lean_is_exclusive(x_77)) { - lean_ctor_release(x_77, 0); - lean_ctor_release(x_77, 1); - x_80 = x_77; -} else { - lean_dec_ref(x_77); - x_80 = lean_box(0); -} -x_81 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_6, x_7, x_79, x_72); -if (lean_is_scalar(x_80)) { - x_82 = lean_alloc_ctor(0, 2, 0); -} else { - x_82 = x_80; -} -lean_ctor_set(x_82, 0, x_78); -lean_ctor_set(x_82, 1, x_81); -return x_82; -} -} -} -} -lean_object* l_Lean_Elab_Term_mkFreshExprMVarWithId___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -uint8_t x_8; lean_object* x_9; -x_8 = lean_unbox(x_4); -lean_dec(x_4); -x_9 = l_Lean_Elab_Term_mkFreshExprMVarWithId(x_1, x_2, x_3, x_8, x_5, x_6, x_7); -lean_dec(x_1); -return x_9; -} -} -lean_object* l_Lean_Elab_Term_mkFreshTypeMVar(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; uint8_t x_7; -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = !lean_is_exclusive(x_6); -if (x_7 == 0) -{ -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; uint8_t x_16; -x_8 = lean_ctor_get(x_6, 4); -x_9 = lean_ctor_get(x_4, 0); -lean_inc(x_9); -x_10 = l_Lean_TraceState_Inhabited___closed__1; -lean_ctor_set(x_6, 4, x_10); -x_11 = l_Lean_Meta_mkFreshLevelMVar___rarg(x_6); -x_12 = lean_ctor_get(x_11, 0); +x_12 = lean_ctor_get(x_10, 1); lean_inc(x_12); -x_13 = lean_ctor_get(x_11, 1); -lean_inc(x_13); -lean_dec(x_11); -x_14 = l_Lean_mkSort(x_12); -x_15 = l_Lean_Meta_mkFreshExprMVar(x_14, x_3, x_2, x_9, x_13); -x_16 = !lean_is_exclusive(x_15); -if (x_16 == 0) +lean_dec(x_10); +x_13 = l_Lean_mkSort(x_11); +x_14 = l_Lean_Meta_mkFreshExprMVar(x_13, x_2, x_1, x_8, x_12); +x_15 = !lean_is_exclusive(x_14); +if (x_15 == 0) { -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_15, 1); -x_18 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_17, x_8); -lean_ctor_set(x_15, 1, x_18); -return x_15; +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_14, 1); +x_17 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_16, x_7); +lean_ctor_set(x_14, 1, x_17); +return x_14; } else { -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_15, 0); -x_20 = lean_ctor_get(x_15, 1); -lean_inc(x_20); +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_14, 0); +x_19 = lean_ctor_get(x_14, 1); lean_inc(x_19); -lean_dec(x_15); -x_21 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_20, x_8); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_19); -lean_ctor_set(x_22, 1, x_21); -return x_22; +lean_inc(x_18); +lean_dec(x_14); +x_20 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_19, x_7); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_18); +lean_ctor_set(x_21, 1, x_20); +return x_21; } } else { -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_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; -x_23 = lean_ctor_get(x_6, 0); -x_24 = lean_ctor_get(x_6, 1); -x_25 = lean_ctor_get(x_6, 2); -x_26 = lean_ctor_get(x_6, 3); -x_27 = lean_ctor_get(x_6, 4); -x_28 = lean_ctor_get(x_6, 5); -lean_inc(x_28); +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_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_22 = lean_ctor_get(x_5, 0); +x_23 = lean_ctor_get(x_5, 1); +x_24 = lean_ctor_get(x_5, 2); +x_25 = lean_ctor_get(x_5, 3); +x_26 = lean_ctor_get(x_5, 4); +x_27 = lean_ctor_get(x_5, 5); lean_inc(x_27); lean_inc(x_26); lean_inc(x_25); lean_inc(x_24); lean_inc(x_23); -lean_dec(x_6); -x_29 = lean_ctor_get(x_4, 0); -lean_inc(x_29); -x_30 = l_Lean_TraceState_Inhabited___closed__1; -x_31 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_31, 0, x_23); -lean_ctor_set(x_31, 1, x_24); -lean_ctor_set(x_31, 2, x_25); -lean_ctor_set(x_31, 3, x_26); -lean_ctor_set(x_31, 4, x_30); -lean_ctor_set(x_31, 5, x_28); -x_32 = l_Lean_Meta_mkFreshLevelMVar___rarg(x_31); -x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_22); +lean_dec(x_5); +x_28 = lean_ctor_get(x_3, 0); +lean_inc(x_28); +x_29 = l_Lean_TraceState_Inhabited___closed__1; +x_30 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_30, 0, x_22); +lean_ctor_set(x_30, 1, x_23); +lean_ctor_set(x_30, 2, x_24); +lean_ctor_set(x_30, 3, x_25); +lean_ctor_set(x_30, 4, x_29); +lean_ctor_set(x_30, 5, x_27); +x_31 = l_Lean_Meta_mkFreshLevelMVar___rarg(x_30); +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_31, 1); lean_inc(x_33); -x_34 = lean_ctor_get(x_32, 1); -lean_inc(x_34); -lean_dec(x_32); -x_35 = l_Lean_mkSort(x_33); -x_36 = l_Lean_Meta_mkFreshExprMVar(x_35, x_3, x_2, x_29, x_34); +lean_dec(x_31); +x_34 = l_Lean_mkSort(x_32); +x_35 = l_Lean_Meta_mkFreshExprMVar(x_34, x_2, x_1, x_28, x_33); +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_35, 1); +lean_inc(x_37); +if (lean_is_exclusive(x_35)) { + lean_ctor_release(x_35, 0); + lean_ctor_release(x_35, 1); + x_38 = x_35; +} else { + lean_dec_ref(x_35); + x_38 = lean_box(0); +} +x_39 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_37, x_26); +if (lean_is_scalar(x_38)) { + x_40 = lean_alloc_ctor(0, 2, 0); +} else { + x_40 = x_38; +} +lean_ctor_set(x_40, 0, x_36); +lean_ctor_set(x_40, 1, x_39); +return x_40; +} +} +} +lean_object* l_Lean_Elab_Term_mkFreshTypeMVar___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; lean_object* x_6; +x_5 = lean_unbox(x_1); +lean_dec(x_1); +x_6 = l_Lean_Elab_Term_mkFreshTypeMVar(x_5, x_2, x_3, x_4); +return x_6; +} +} +lean_object* l_Lean_Elab_Term_getLevel(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +x_5 = !lean_is_exclusive(x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = lean_ctor_get(x_4, 4); +x_7 = lean_ctor_get(x_2, 0); +lean_inc(x_7); +x_8 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_4, 4, x_8); +x_9 = l_Lean_Meta_getLevel(x_1, x_7, x_4); +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_9, 1); +x_12 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_11, x_6); +lean_ctor_set(x_9, 1, x_12); +return x_9; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_13 = lean_ctor_get(x_9, 0); +x_14 = lean_ctor_get(x_9, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_9); +x_15 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_14, x_6); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_13); +lean_ctor_set(x_16, 1, x_15); +return x_16; +} +} +else +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_9); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_9, 0); +x_19 = lean_ctor_get(x_9, 1); +lean_inc(x_2); +x_20 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_18); +x_21 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_19, x_6); +lean_ctor_set(x_9, 1, x_21); +lean_ctor_set(x_9, 0, x_20); +return x_9; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_22 = lean_ctor_get(x_9, 0); +x_23 = lean_ctor_get(x_9, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_9); +lean_inc(x_2); +x_24 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_22); +x_25 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_23, x_6); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; +} +} +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_27 = lean_ctor_get(x_4, 0); +x_28 = lean_ctor_get(x_4, 1); +x_29 = lean_ctor_get(x_4, 2); +x_30 = lean_ctor_get(x_4, 3); +x_31 = lean_ctor_get(x_4, 4); +x_32 = lean_ctor_get(x_4, 5); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_4); +x_33 = lean_ctor_get(x_2, 0); +lean_inc(x_33); +x_34 = l_Lean_TraceState_Inhabited___closed__1; +x_35 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_35, 0, x_27); +lean_ctor_set(x_35, 1, x_28); +lean_ctor_set(x_35, 2, x_29); +lean_ctor_set(x_35, 3, x_30); +lean_ctor_set(x_35, 4, x_34); +lean_ctor_set(x_35, 5, x_32); +x_36 = l_Lean_Meta_getLevel(x_1, x_33, x_35); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; x_37 = lean_ctor_get(x_36, 0); lean_inc(x_37); x_38 = lean_ctor_get(x_36, 1); @@ -8435,7 +8578,7 @@ if (lean_is_exclusive(x_36)) { lean_dec_ref(x_36); x_39 = lean_box(0); } -x_40 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_38, x_27); +x_40 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_38, x_31); if (lean_is_scalar(x_39)) { x_41 = lean_alloc_ctor(0, 2, 0); } else { @@ -8445,1533 +8588,1459 @@ lean_ctor_set(x_41, 0, x_37); lean_ctor_set(x_41, 1, x_40); return x_41; } +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_42 = lean_ctor_get(x_36, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_36, 1); +lean_inc(x_43); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_44 = x_36; +} else { + lean_dec_ref(x_36); + x_44 = lean_box(0); +} +lean_inc(x_2); +x_45 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_42); +x_46 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_43, x_31); +if (lean_is_scalar(x_44)) { + x_47 = lean_alloc_ctor(1, 2, 0); +} else { + x_47 = x_44; +} +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; } } -lean_object* l_Lean_Elab_Term_mkFreshTypeMVar___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +} +} +lean_object* l_Lean_Elab_Term_getLocalDecl(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -uint8_t x_6; lean_object* x_7; -x_6 = lean_unbox(x_2); -lean_dec(x_2); -x_7 = l_Lean_Elab_Term_mkFreshTypeMVar(x_1, x_6, x_3, x_4, x_5); -lean_dec(x_1); +lean_object* x_4; uint8_t x_5; +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +x_5 = !lean_is_exclusive(x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = lean_ctor_get(x_4, 4); +x_7 = lean_ctor_get(x_2, 0); +lean_inc(x_7); +x_8 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_4, 4, x_8); +x_9 = l_Lean_Meta_getLocalDecl(x_1, x_7, x_4); +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_9, 1); +x_12 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_11, x_6); +lean_ctor_set(x_9, 1, x_12); +return x_9; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_13 = lean_ctor_get(x_9, 0); +x_14 = lean_ctor_get(x_9, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_9); +x_15 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_14, x_6); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_13); +lean_ctor_set(x_16, 1, x_15); +return x_16; +} +} +else +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_9); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_9, 0); +x_19 = lean_ctor_get(x_9, 1); +lean_inc(x_2); +x_20 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_18); +x_21 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_19, x_6); +lean_ctor_set(x_9, 1, x_21); +lean_ctor_set(x_9, 0, x_20); +return x_9; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_22 = lean_ctor_get(x_9, 0); +x_23 = lean_ctor_get(x_9, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_9); +lean_inc(x_2); +x_24 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_22); +x_25 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_23, x_6); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; +} +} +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_27 = lean_ctor_get(x_4, 0); +x_28 = lean_ctor_get(x_4, 1); +x_29 = lean_ctor_get(x_4, 2); +x_30 = lean_ctor_get(x_4, 3); +x_31 = lean_ctor_get(x_4, 4); +x_32 = lean_ctor_get(x_4, 5); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_4); +x_33 = lean_ctor_get(x_2, 0); +lean_inc(x_33); +x_34 = l_Lean_TraceState_Inhabited___closed__1; +x_35 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_35, 0, x_27); +lean_ctor_set(x_35, 1, x_28); +lean_ctor_set(x_35, 2, x_29); +lean_ctor_set(x_35, 3, x_30); +lean_ctor_set(x_35, 4, x_34); +lean_ctor_set(x_35, 5, x_32); +x_36 = l_Lean_Meta_getLocalDecl(x_1, x_33, x_35); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_36, 1); +lean_inc(x_38); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_39 = x_36; +} else { + lean_dec_ref(x_36); + x_39 = lean_box(0); +} +x_40 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_38, x_31); +if (lean_is_scalar(x_39)) { + x_41 = lean_alloc_ctor(0, 2, 0); +} else { + x_41 = x_39; +} +lean_ctor_set(x_41, 0, x_37); +lean_ctor_set(x_41, 1, x_40); +return x_41; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_42 = lean_ctor_get(x_36, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_36, 1); +lean_inc(x_43); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_44 = x_36; +} else { + lean_dec_ref(x_36); + x_44 = lean_box(0); +} +lean_inc(x_2); +x_45 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_42); +x_46 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_43, x_31); +if (lean_is_scalar(x_44)) { + x_47 = lean_alloc_ctor(1, 2, 0); +} else { + x_47 = x_44; +} +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +} +lean_object* l_Lean_Elab_Term_mkForall(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; uint8_t x_6; +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +x_6 = !lean_is_exclusive(x_5); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_7 = lean_ctor_get(x_5, 4); +x_8 = lean_ctor_get(x_3, 0); +lean_inc(x_8); +x_9 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_5, 4, x_9); +x_10 = l_Lean_Meta_mkForall(x_1, x_2, x_8, x_5); +if (lean_obj_tag(x_10) == 0) +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_10, 1); +x_13 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_12, x_7); +lean_ctor_set(x_10, 1, x_13); +return x_10; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_14 = lean_ctor_get(x_10, 0); +x_15 = lean_ctor_get(x_10, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_10); +x_16 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_15, x_7); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_14); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +} +else +{ +uint8_t x_18; +x_18 = !lean_is_exclusive(x_10); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_19 = lean_ctor_get(x_10, 0); +x_20 = lean_ctor_get(x_10, 1); +lean_inc(x_3); +x_21 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_19); +x_22 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_20, x_7); +lean_ctor_set(x_10, 1, x_22); +lean_ctor_set(x_10, 0, x_21); +return x_10; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_23 = lean_ctor_get(x_10, 0); +x_24 = lean_ctor_get(x_10, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_10); +lean_inc(x_3); +x_25 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_23); +x_26 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_24, 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; +} +} +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_28 = lean_ctor_get(x_5, 0); +x_29 = lean_ctor_get(x_5, 1); +x_30 = lean_ctor_get(x_5, 2); +x_31 = lean_ctor_get(x_5, 3); +x_32 = lean_ctor_get(x_5, 4); +x_33 = lean_ctor_get(x_5, 5); +lean_inc(x_33); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_5); +x_34 = lean_ctor_get(x_3, 0); +lean_inc(x_34); +x_35 = l_Lean_TraceState_Inhabited___closed__1; +x_36 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_36, 0, x_28); +lean_ctor_set(x_36, 1, x_29); +lean_ctor_set(x_36, 2, x_30); +lean_ctor_set(x_36, 3, x_31); +lean_ctor_set(x_36, 4, x_35); +lean_ctor_set(x_36, 5, x_33); +x_37 = l_Lean_Meta_mkForall(x_1, x_2, x_34, x_36); +if (lean_obj_tag(x_37) == 0) +{ +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_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_40 = x_37; +} else { + lean_dec_ref(x_37); + x_40 = lean_box(0); +} +x_41 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_39, x_32); +if (lean_is_scalar(x_40)) { + x_42 = lean_alloc_ctor(0, 2, 0); +} else { + x_42 = x_40; +} +lean_ctor_set(x_42, 0, x_38); +lean_ctor_set(x_42, 1, x_41); +return x_42; +} +else +{ +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_37, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_37, 1); +lean_inc(x_44); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_45 = x_37; +} else { + lean_dec_ref(x_37); + x_45 = lean_box(0); +} +lean_inc(x_3); +x_46 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_43); +x_47 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_44, x_32); +if (lean_is_scalar(x_45)) { + x_48 = lean_alloc_ctor(1, 2, 0); +} else { + x_48 = x_45; +} +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; +} +} +} +} +lean_object* l_Lean_Elab_Term_mkForallUsedOnly(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; uint8_t x_6; +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +x_6 = !lean_is_exclusive(x_5); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_7 = lean_ctor_get(x_5, 4); +x_8 = lean_ctor_get(x_3, 0); +lean_inc(x_8); +x_9 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_5, 4, x_9); +x_10 = l_Lean_Meta_mkForallUsedOnly(x_1, x_2, x_8, x_5); +if (lean_obj_tag(x_10) == 0) +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_10, 1); +x_13 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_12, x_7); +lean_ctor_set(x_10, 1, x_13); +return x_10; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_14 = lean_ctor_get(x_10, 0); +x_15 = lean_ctor_get(x_10, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_10); +x_16 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_15, x_7); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_14); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +} +else +{ +uint8_t x_18; +x_18 = !lean_is_exclusive(x_10); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_19 = lean_ctor_get(x_10, 0); +x_20 = lean_ctor_get(x_10, 1); +lean_inc(x_3); +x_21 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_19); +x_22 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_20, x_7); +lean_ctor_set(x_10, 1, x_22); +lean_ctor_set(x_10, 0, x_21); +return x_10; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_23 = lean_ctor_get(x_10, 0); +x_24 = lean_ctor_get(x_10, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_10); +lean_inc(x_3); +x_25 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_23); +x_26 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_24, 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; +} +} +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_28 = lean_ctor_get(x_5, 0); +x_29 = lean_ctor_get(x_5, 1); +x_30 = lean_ctor_get(x_5, 2); +x_31 = lean_ctor_get(x_5, 3); +x_32 = lean_ctor_get(x_5, 4); +x_33 = lean_ctor_get(x_5, 5); +lean_inc(x_33); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_5); +x_34 = lean_ctor_get(x_3, 0); +lean_inc(x_34); +x_35 = l_Lean_TraceState_Inhabited___closed__1; +x_36 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_36, 0, x_28); +lean_ctor_set(x_36, 1, x_29); +lean_ctor_set(x_36, 2, x_30); +lean_ctor_set(x_36, 3, x_31); +lean_ctor_set(x_36, 4, x_35); +lean_ctor_set(x_36, 5, x_33); +x_37 = l_Lean_Meta_mkForallUsedOnly(x_1, x_2, x_34, x_36); +if (lean_obj_tag(x_37) == 0) +{ +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_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_40 = x_37; +} else { + lean_dec_ref(x_37); + x_40 = lean_box(0); +} +x_41 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_39, x_32); +if (lean_is_scalar(x_40)) { + x_42 = lean_alloc_ctor(0, 2, 0); +} else { + x_42 = x_40; +} +lean_ctor_set(x_42, 0, x_38); +lean_ctor_set(x_42, 1, x_41); +return x_42; +} +else +{ +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_37, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_37, 1); +lean_inc(x_44); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_45 = x_37; +} else { + lean_dec_ref(x_37); + x_45 = lean_box(0); +} +lean_inc(x_3); +x_46 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_43); +x_47 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_44, x_32); +if (lean_is_scalar(x_45)) { + x_48 = lean_alloc_ctor(1, 2, 0); +} else { + x_48 = x_45; +} +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; +} +} +} +} +lean_object* l_Lean_Elab_Term_mkLambda(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; uint8_t x_6; +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +x_6 = !lean_is_exclusive(x_5); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_7 = lean_ctor_get(x_5, 4); +x_8 = lean_ctor_get(x_3, 0); +lean_inc(x_8); +x_9 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_5, 4, x_9); +x_10 = l_Lean_Meta_mkLambda(x_1, x_2, x_8, x_5); +if (lean_obj_tag(x_10) == 0) +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_10, 1); +x_13 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_12, x_7); +lean_ctor_set(x_10, 1, x_13); +return x_10; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_14 = lean_ctor_get(x_10, 0); +x_15 = lean_ctor_get(x_10, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_10); +x_16 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_15, x_7); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_14); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +} +else +{ +uint8_t x_18; +x_18 = !lean_is_exclusive(x_10); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_19 = lean_ctor_get(x_10, 0); +x_20 = lean_ctor_get(x_10, 1); +lean_inc(x_3); +x_21 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_19); +x_22 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_20, x_7); +lean_ctor_set(x_10, 1, x_22); +lean_ctor_set(x_10, 0, x_21); +return x_10; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_23 = lean_ctor_get(x_10, 0); +x_24 = lean_ctor_get(x_10, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_10); +lean_inc(x_3); +x_25 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_23); +x_26 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_24, 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; +} +} +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_28 = lean_ctor_get(x_5, 0); +x_29 = lean_ctor_get(x_5, 1); +x_30 = lean_ctor_get(x_5, 2); +x_31 = lean_ctor_get(x_5, 3); +x_32 = lean_ctor_get(x_5, 4); +x_33 = lean_ctor_get(x_5, 5); +lean_inc(x_33); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_5); +x_34 = lean_ctor_get(x_3, 0); +lean_inc(x_34); +x_35 = l_Lean_TraceState_Inhabited___closed__1; +x_36 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_36, 0, x_28); +lean_ctor_set(x_36, 1, x_29); +lean_ctor_set(x_36, 2, x_30); +lean_ctor_set(x_36, 3, x_31); +lean_ctor_set(x_36, 4, x_35); +lean_ctor_set(x_36, 5, x_33); +x_37 = l_Lean_Meta_mkLambda(x_1, x_2, x_34, x_36); +if (lean_obj_tag(x_37) == 0) +{ +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_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_40 = x_37; +} else { + lean_dec_ref(x_37); + x_40 = lean_box(0); +} +x_41 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_39, x_32); +if (lean_is_scalar(x_40)) { + x_42 = lean_alloc_ctor(0, 2, 0); +} else { + x_42 = x_40; +} +lean_ctor_set(x_42, 0, x_38); +lean_ctor_set(x_42, 1, x_41); +return x_42; +} +else +{ +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_37, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_37, 1); +lean_inc(x_44); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_45 = x_37; +} else { + lean_dec_ref(x_37); + x_45 = lean_box(0); +} +lean_inc(x_3); +x_46 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_43); +x_47 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_44, x_32); +if (lean_is_scalar(x_45)) { + x_48 = lean_alloc_ctor(1, 2, 0); +} else { + x_48 = x_45; +} +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; +} +} +} +} +lean_object* l_Lean_Elab_Term_mkLet(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_5 = l_Lean_mkOptionalNode___closed__2; +x_6 = lean_array_push(x_5, x_1); +x_7 = l_Lean_Elab_Term_mkLambda(x_6, x_2, x_3, x_4); return x_7; } } -lean_object* l_Lean_Elab_Term_getLevel(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Term_trySynthInstance(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; uint8_t x_6; -x_5 = lean_ctor_get(x_4, 0); -lean_inc(x_5); -x_6 = !lean_is_exclusive(x_5); -if (x_6 == 0) +lean_object* x_4; uint8_t x_5; +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +x_5 = !lean_is_exclusive(x_4); +if (x_5 == 0) { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_7 = lean_ctor_get(x_5, 4); -x_8 = lean_ctor_get(x_3, 0); -lean_inc(x_8); -x_9 = l_Lean_TraceState_Inhabited___closed__1; -lean_ctor_set(x_5, 4, x_9); -x_10 = l_Lean_Meta_getLevel(x_2, x_8, x_5); -if (lean_obj_tag(x_10) == 0) +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = lean_ctor_get(x_4, 4); +x_7 = lean_ctor_get(x_2, 0); +lean_inc(x_7); +x_8 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_4, 4, x_8); +x_9 = l_Lean_Meta_trySynthInstance(x_1, x_7, x_4); +if (lean_obj_tag(x_9) == 0) { -uint8_t x_11; -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) +uint8_t x_10; +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) { -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_10, 1); -x_13 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_12, x_7); -lean_ctor_set(x_10, 1, x_13); -return x_10; +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_9, 1); +x_12 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_11, x_6); +lean_ctor_set(x_9, 1, x_12); +return x_9; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_14 = lean_ctor_get(x_10, 0); -x_15 = lean_ctor_get(x_10, 1); -lean_inc(x_15); +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_13 = lean_ctor_get(x_9, 0); +x_14 = lean_ctor_get(x_9, 1); lean_inc(x_14); -lean_dec(x_10); -x_16 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_15, x_7); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_14); -lean_ctor_set(x_17, 1, x_16); -return x_17; +lean_inc(x_13); +lean_dec(x_9); +x_15 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_14, x_6); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_13); +lean_ctor_set(x_16, 1, x_15); +return x_16; } } else { -uint8_t x_18; -x_18 = !lean_is_exclusive(x_10); -if (x_18 == 0) +uint8_t x_17; +x_17 = !lean_is_exclusive(x_9); +if (x_17 == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_10, 0); -x_20 = lean_ctor_get(x_10, 1); -lean_inc(x_3); -x_21 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_19); -x_22 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_20, x_7); -lean_ctor_set(x_10, 1, x_22); -lean_ctor_set(x_10, 0, x_21); -return x_10; -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_23 = lean_ctor_get(x_10, 0); -x_24 = lean_ctor_get(x_10, 1); -lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_10); -lean_inc(x_3); -x_25 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_23); -x_26 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_24, 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; -} -} -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_28 = lean_ctor_get(x_5, 0); -x_29 = lean_ctor_get(x_5, 1); -x_30 = lean_ctor_get(x_5, 2); -x_31 = lean_ctor_get(x_5, 3); -x_32 = lean_ctor_get(x_5, 4); -x_33 = lean_ctor_get(x_5, 5); -lean_inc(x_33); -lean_inc(x_32); -lean_inc(x_31); -lean_inc(x_30); -lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_5); -x_34 = lean_ctor_get(x_3, 0); -lean_inc(x_34); -x_35 = l_Lean_TraceState_Inhabited___closed__1; -x_36 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_36, 0, x_28); -lean_ctor_set(x_36, 1, x_29); -lean_ctor_set(x_36, 2, x_30); -lean_ctor_set(x_36, 3, x_31); -lean_ctor_set(x_36, 4, x_35); -lean_ctor_set(x_36, 5, x_33); -x_37 = l_Lean_Meta_getLevel(x_2, x_34, x_36); -if (lean_obj_tag(x_37) == 0) -{ -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_37, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); -if (lean_is_exclusive(x_37)) { - lean_ctor_release(x_37, 0); - lean_ctor_release(x_37, 1); - x_40 = x_37; -} else { - lean_dec_ref(x_37); - x_40 = lean_box(0); -} -x_41 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_39, x_32); -if (lean_is_scalar(x_40)) { - x_42 = lean_alloc_ctor(0, 2, 0); -} else { - x_42 = x_40; -} -lean_ctor_set(x_42, 0, x_38); -lean_ctor_set(x_42, 1, x_41); -return x_42; -} -else -{ -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_37, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_37, 1); -lean_inc(x_44); -if (lean_is_exclusive(x_37)) { - lean_ctor_release(x_37, 0); - lean_ctor_release(x_37, 1); - x_45 = x_37; -} else { - lean_dec_ref(x_37); - x_45 = lean_box(0); -} -lean_inc(x_3); -x_46 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_43); -x_47 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_44, x_32); -if (lean_is_scalar(x_45)) { - x_48 = lean_alloc_ctor(1, 2, 0); -} else { - x_48 = x_45; -} -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; -} -} -} -} -lean_object* l_Lean_Elab_Term_getLevel___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_Elab_Term_getLevel(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} -lean_object* l_Lean_Elab_Term_mkForall(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; uint8_t x_7; -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = !lean_is_exclusive(x_6); -if (x_7 == 0) -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_8 = lean_ctor_get(x_6, 4); -x_9 = lean_ctor_get(x_4, 0); -lean_inc(x_9); -x_10 = l_Lean_TraceState_Inhabited___closed__1; -lean_ctor_set(x_6, 4, x_10); -x_11 = l_Lean_Meta_mkForall(x_2, x_3, x_9, x_6); -if (lean_obj_tag(x_11) == 0) -{ -uint8_t x_12; -x_12 = !lean_is_exclusive(x_11); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; -x_13 = lean_ctor_get(x_11, 1); -x_14 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_13, x_8); -lean_ctor_set(x_11, 1, x_14); -return x_11; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_15 = lean_ctor_get(x_11, 0); -x_16 = lean_ctor_get(x_11, 1); -lean_inc(x_16); -lean_inc(x_15); -lean_dec(x_11); -x_17 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_16, x_8); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_15); -lean_ctor_set(x_18, 1, x_17); -return x_18; -} -} -else -{ -uint8_t x_19; -x_19 = !lean_is_exclusive(x_11); -if (x_19 == 0) -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_20 = lean_ctor_get(x_11, 0); -x_21 = lean_ctor_get(x_11, 1); -lean_inc(x_4); -x_22 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_1, x_20); -x_23 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_21, x_8); -lean_ctor_set(x_11, 1, x_23); -lean_ctor_set(x_11, 0, x_22); -return x_11; -} -else -{ -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_11, 0); -x_25 = lean_ctor_get(x_11, 1); -lean_inc(x_25); -lean_inc(x_24); -lean_dec(x_11); -lean_inc(x_4); -x_26 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_1, x_24); -x_27 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_25, x_8); -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; -} -} -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_29 = lean_ctor_get(x_6, 0); -x_30 = lean_ctor_get(x_6, 1); -x_31 = lean_ctor_get(x_6, 2); -x_32 = lean_ctor_get(x_6, 3); -x_33 = lean_ctor_get(x_6, 4); -x_34 = lean_ctor_get(x_6, 5); -lean_inc(x_34); -lean_inc(x_33); -lean_inc(x_32); -lean_inc(x_31); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_6); -x_35 = lean_ctor_get(x_4, 0); -lean_inc(x_35); -x_36 = l_Lean_TraceState_Inhabited___closed__1; -x_37 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_37, 0, x_29); -lean_ctor_set(x_37, 1, x_30); -lean_ctor_set(x_37, 2, x_31); -lean_ctor_set(x_37, 3, x_32); -lean_ctor_set(x_37, 4, x_36); -lean_ctor_set(x_37, 5, x_34); -x_38 = l_Lean_Meta_mkForall(x_2, x_3, x_35, x_37); -if (lean_obj_tag(x_38) == 0) -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_39 = lean_ctor_get(x_38, 0); -lean_inc(x_39); -x_40 = lean_ctor_get(x_38, 1); -lean_inc(x_40); -if (lean_is_exclusive(x_38)) { - lean_ctor_release(x_38, 0); - lean_ctor_release(x_38, 1); - x_41 = x_38; -} else { - lean_dec_ref(x_38); - x_41 = lean_box(0); -} -x_42 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_40, x_33); -if (lean_is_scalar(x_41)) { - x_43 = lean_alloc_ctor(0, 2, 0); -} else { - x_43 = x_41; -} -lean_ctor_set(x_43, 0, x_39); -lean_ctor_set(x_43, 1, x_42); -return x_43; -} -else -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_44 = lean_ctor_get(x_38, 0); -lean_inc(x_44); -x_45 = lean_ctor_get(x_38, 1); -lean_inc(x_45); -if (lean_is_exclusive(x_38)) { - lean_ctor_release(x_38, 0); - lean_ctor_release(x_38, 1); - x_46 = x_38; -} else { - lean_dec_ref(x_38); - x_46 = lean_box(0); -} -lean_inc(x_4); -x_47 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_1, x_44); -x_48 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_45, x_33); -if (lean_is_scalar(x_46)) { - x_49 = lean_alloc_ctor(1, 2, 0); -} else { - x_49 = x_46; -} -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -return x_49; -} -} -} -} -lean_object* l_Lean_Elab_Term_mkForall___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_Lean_Elab_Term_mkForall(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_1); -return x_6; -} -} -lean_object* l_Lean_Elab_Term_mkForallUsedOnly(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; uint8_t x_7; -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = !lean_is_exclusive(x_6); -if (x_7 == 0) -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_8 = lean_ctor_get(x_6, 4); -x_9 = lean_ctor_get(x_4, 0); -lean_inc(x_9); -x_10 = l_Lean_TraceState_Inhabited___closed__1; -lean_ctor_set(x_6, 4, x_10); -x_11 = l_Lean_Meta_mkForallUsedOnly(x_2, x_3, x_9, x_6); -if (lean_obj_tag(x_11) == 0) -{ -uint8_t x_12; -x_12 = !lean_is_exclusive(x_11); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; -x_13 = lean_ctor_get(x_11, 1); -x_14 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_13, x_8); -lean_ctor_set(x_11, 1, x_14); -return x_11; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_15 = lean_ctor_get(x_11, 0); -x_16 = lean_ctor_get(x_11, 1); -lean_inc(x_16); -lean_inc(x_15); -lean_dec(x_11); -x_17 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_16, x_8); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_15); -lean_ctor_set(x_18, 1, x_17); -return x_18; -} -} -else -{ -uint8_t x_19; -x_19 = !lean_is_exclusive(x_11); -if (x_19 == 0) -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_20 = lean_ctor_get(x_11, 0); -x_21 = lean_ctor_get(x_11, 1); -lean_inc(x_4); -x_22 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_1, x_20); -x_23 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_21, x_8); -lean_ctor_set(x_11, 1, x_23); -lean_ctor_set(x_11, 0, x_22); -return x_11; -} -else -{ -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_11, 0); -x_25 = lean_ctor_get(x_11, 1); -lean_inc(x_25); -lean_inc(x_24); -lean_dec(x_11); -lean_inc(x_4); -x_26 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_1, x_24); -x_27 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_25, x_8); -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; -} -} -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_29 = lean_ctor_get(x_6, 0); -x_30 = lean_ctor_get(x_6, 1); -x_31 = lean_ctor_get(x_6, 2); -x_32 = lean_ctor_get(x_6, 3); -x_33 = lean_ctor_get(x_6, 4); -x_34 = lean_ctor_get(x_6, 5); -lean_inc(x_34); -lean_inc(x_33); -lean_inc(x_32); -lean_inc(x_31); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_6); -x_35 = lean_ctor_get(x_4, 0); -lean_inc(x_35); -x_36 = l_Lean_TraceState_Inhabited___closed__1; -x_37 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_37, 0, x_29); -lean_ctor_set(x_37, 1, x_30); -lean_ctor_set(x_37, 2, x_31); -lean_ctor_set(x_37, 3, x_32); -lean_ctor_set(x_37, 4, x_36); -lean_ctor_set(x_37, 5, x_34); -x_38 = l_Lean_Meta_mkForallUsedOnly(x_2, x_3, x_35, x_37); -if (lean_obj_tag(x_38) == 0) -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_39 = lean_ctor_get(x_38, 0); -lean_inc(x_39); -x_40 = lean_ctor_get(x_38, 1); -lean_inc(x_40); -if (lean_is_exclusive(x_38)) { - lean_ctor_release(x_38, 0); - lean_ctor_release(x_38, 1); - x_41 = x_38; -} else { - lean_dec_ref(x_38); - x_41 = lean_box(0); -} -x_42 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_40, x_33); -if (lean_is_scalar(x_41)) { - x_43 = lean_alloc_ctor(0, 2, 0); -} else { - x_43 = x_41; -} -lean_ctor_set(x_43, 0, x_39); -lean_ctor_set(x_43, 1, x_42); -return x_43; -} -else -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_44 = lean_ctor_get(x_38, 0); -lean_inc(x_44); -x_45 = lean_ctor_get(x_38, 1); -lean_inc(x_45); -if (lean_is_exclusive(x_38)) { - lean_ctor_release(x_38, 0); - lean_ctor_release(x_38, 1); - x_46 = x_38; -} else { - lean_dec_ref(x_38); - x_46 = lean_box(0); -} -lean_inc(x_4); -x_47 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_1, x_44); -x_48 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_45, x_33); -if (lean_is_scalar(x_46)) { - x_49 = lean_alloc_ctor(1, 2, 0); -} else { - x_49 = x_46; -} -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -return x_49; -} -} -} -} -lean_object* l_Lean_Elab_Term_mkForallUsedOnly___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_Lean_Elab_Term_mkForallUsedOnly(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_1); -return x_6; -} -} -lean_object* l_Lean_Elab_Term_mkLambda(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; uint8_t x_7; -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = !lean_is_exclusive(x_6); -if (x_7 == 0) -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_8 = lean_ctor_get(x_6, 4); -x_9 = lean_ctor_get(x_4, 0); -lean_inc(x_9); -x_10 = l_Lean_TraceState_Inhabited___closed__1; -lean_ctor_set(x_6, 4, x_10); -x_11 = l_Lean_Meta_mkLambda(x_2, x_3, x_9, x_6); -if (lean_obj_tag(x_11) == 0) -{ -uint8_t x_12; -x_12 = !lean_is_exclusive(x_11); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; -x_13 = lean_ctor_get(x_11, 1); -x_14 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_13, x_8); -lean_ctor_set(x_11, 1, x_14); -return x_11; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_15 = lean_ctor_get(x_11, 0); -x_16 = lean_ctor_get(x_11, 1); -lean_inc(x_16); -lean_inc(x_15); -lean_dec(x_11); -x_17 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_16, x_8); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_15); -lean_ctor_set(x_18, 1, x_17); -return x_18; -} -} -else -{ -uint8_t x_19; -x_19 = !lean_is_exclusive(x_11); -if (x_19 == 0) -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_20 = lean_ctor_get(x_11, 0); -x_21 = lean_ctor_get(x_11, 1); -lean_inc(x_4); -x_22 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_1, x_20); -x_23 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_21, x_8); -lean_ctor_set(x_11, 1, x_23); -lean_ctor_set(x_11, 0, x_22); -return x_11; -} -else -{ -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_11, 0); -x_25 = lean_ctor_get(x_11, 1); -lean_inc(x_25); -lean_inc(x_24); -lean_dec(x_11); -lean_inc(x_4); -x_26 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_1, x_24); -x_27 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_25, x_8); -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; -} -} -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_29 = lean_ctor_get(x_6, 0); -x_30 = lean_ctor_get(x_6, 1); -x_31 = lean_ctor_get(x_6, 2); -x_32 = lean_ctor_get(x_6, 3); -x_33 = lean_ctor_get(x_6, 4); -x_34 = lean_ctor_get(x_6, 5); -lean_inc(x_34); -lean_inc(x_33); -lean_inc(x_32); -lean_inc(x_31); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_6); -x_35 = lean_ctor_get(x_4, 0); -lean_inc(x_35); -x_36 = l_Lean_TraceState_Inhabited___closed__1; -x_37 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_37, 0, x_29); -lean_ctor_set(x_37, 1, x_30); -lean_ctor_set(x_37, 2, x_31); -lean_ctor_set(x_37, 3, x_32); -lean_ctor_set(x_37, 4, x_36); -lean_ctor_set(x_37, 5, x_34); -x_38 = l_Lean_Meta_mkLambda(x_2, x_3, x_35, x_37); -if (lean_obj_tag(x_38) == 0) -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_39 = lean_ctor_get(x_38, 0); -lean_inc(x_39); -x_40 = lean_ctor_get(x_38, 1); -lean_inc(x_40); -if (lean_is_exclusive(x_38)) { - lean_ctor_release(x_38, 0); - lean_ctor_release(x_38, 1); - x_41 = x_38; -} else { - lean_dec_ref(x_38); - x_41 = lean_box(0); -} -x_42 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_40, x_33); -if (lean_is_scalar(x_41)) { - x_43 = lean_alloc_ctor(0, 2, 0); -} else { - x_43 = x_41; -} -lean_ctor_set(x_43, 0, x_39); -lean_ctor_set(x_43, 1, x_42); -return x_43; -} -else -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_44 = lean_ctor_get(x_38, 0); -lean_inc(x_44); -x_45 = lean_ctor_get(x_38, 1); -lean_inc(x_45); -if (lean_is_exclusive(x_38)) { - lean_ctor_release(x_38, 0); - lean_ctor_release(x_38, 1); - x_46 = x_38; -} else { - lean_dec_ref(x_38); - x_46 = lean_box(0); -} -lean_inc(x_4); -x_47 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_1, x_44); -x_48 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_45, x_33); -if (lean_is_scalar(x_46)) { - x_49 = lean_alloc_ctor(1, 2, 0); -} else { - x_49 = x_46; -} -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -return x_49; -} -} -} -} -lean_object* l_Lean_Elab_Term_mkLambda___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_Lean_Elab_Term_mkLambda(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_1); -return x_6; -} -} -lean_object* l_Lean_Elab_Term_mkLet(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_6 = l_Lean_mkOptionalNode___closed__2; -x_7 = lean_array_push(x_6, x_2); -x_8 = l_Lean_Elab_Term_mkLambda(x_1, x_7, x_3, x_4, x_5); -return x_8; -} -} -lean_object* l_Lean_Elab_Term_mkLet___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_Lean_Elab_Term_mkLet(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_1); -return x_6; -} -} -lean_object* l_Lean_Elab_Term_trySynthInstance(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; uint8_t x_6; -x_5 = lean_ctor_get(x_4, 0); -lean_inc(x_5); -x_6 = !lean_is_exclusive(x_5); -if (x_6 == 0) -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_7 = lean_ctor_get(x_5, 4); -x_8 = lean_ctor_get(x_3, 0); -lean_inc(x_8); -x_9 = l_Lean_TraceState_Inhabited___closed__1; -lean_ctor_set(x_5, 4, x_9); -x_10 = l_Lean_Meta_trySynthInstance(x_2, x_8, x_5); -if (lean_obj_tag(x_10) == 0) -{ -uint8_t x_11; -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_10, 1); -x_13 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_12, x_7); -lean_ctor_set(x_10, 1, x_13); -return x_10; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_14 = lean_ctor_get(x_10, 0); -x_15 = lean_ctor_get(x_10, 1); -lean_inc(x_15); -lean_inc(x_14); -lean_dec(x_10); -x_16 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_15, x_7); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_14); -lean_ctor_set(x_17, 1, x_16); -return x_17; -} -} -else -{ -uint8_t x_18; -x_18 = !lean_is_exclusive(x_10); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_10, 0); -x_20 = lean_ctor_get(x_10, 1); -lean_inc(x_3); -x_21 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_19); -x_22 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_20, x_7); -lean_ctor_set(x_10, 1, x_22); -lean_ctor_set(x_10, 0, x_21); -return x_10; -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_23 = lean_ctor_get(x_10, 0); -x_24 = lean_ctor_get(x_10, 1); -lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_10); -lean_inc(x_3); -x_25 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_23); -x_26 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_24, 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; -} -} -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_28 = lean_ctor_get(x_5, 0); -x_29 = lean_ctor_get(x_5, 1); -x_30 = lean_ctor_get(x_5, 2); -x_31 = lean_ctor_get(x_5, 3); -x_32 = lean_ctor_get(x_5, 4); -x_33 = lean_ctor_get(x_5, 5); -lean_inc(x_33); -lean_inc(x_32); -lean_inc(x_31); -lean_inc(x_30); -lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_5); -x_34 = lean_ctor_get(x_3, 0); -lean_inc(x_34); -x_35 = l_Lean_TraceState_Inhabited___closed__1; -x_36 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_36, 0, x_28); -lean_ctor_set(x_36, 1, x_29); -lean_ctor_set(x_36, 2, x_30); -lean_ctor_set(x_36, 3, x_31); -lean_ctor_set(x_36, 4, x_35); -lean_ctor_set(x_36, 5, x_33); -x_37 = l_Lean_Meta_trySynthInstance(x_2, x_34, x_36); -if (lean_obj_tag(x_37) == 0) -{ -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_37, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); -if (lean_is_exclusive(x_37)) { - lean_ctor_release(x_37, 0); - lean_ctor_release(x_37, 1); - x_40 = x_37; -} else { - lean_dec_ref(x_37); - x_40 = lean_box(0); -} -x_41 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_39, x_32); -if (lean_is_scalar(x_40)) { - x_42 = lean_alloc_ctor(0, 2, 0); -} else { - x_42 = x_40; -} -lean_ctor_set(x_42, 0, x_38); -lean_ctor_set(x_42, 1, x_41); -return x_42; -} -else -{ -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_37, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_37, 1); -lean_inc(x_44); -if (lean_is_exclusive(x_37)) { - lean_ctor_release(x_37, 0); - lean_ctor_release(x_37, 1); - x_45 = x_37; -} else { - lean_dec_ref(x_37); - x_45 = lean_box(0); -} -lean_inc(x_3); -x_46 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_43); -x_47 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_44, x_32); -if (lean_is_scalar(x_45)) { - x_48 = lean_alloc_ctor(1, 2, 0); -} else { - x_48 = x_45; -} -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; -} -} -} -} -lean_object* l_Lean_Elab_Term_trySynthInstance___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_Elab_Term_trySynthInstance(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} -lean_object* l_Lean_Elab_Term_mkAppM(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; uint8_t x_7; -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = !lean_is_exclusive(x_6); -if (x_7 == 0) -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_8 = lean_ctor_get(x_6, 4); -x_9 = lean_ctor_get(x_4, 0); -lean_inc(x_9); -x_10 = l_Lean_TraceState_Inhabited___closed__1; -lean_ctor_set(x_6, 4, x_10); -x_11 = l_Lean_Meta_mkAppM(x_2, x_3, x_9, x_6); -if (lean_obj_tag(x_11) == 0) -{ -uint8_t x_12; -x_12 = !lean_is_exclusive(x_11); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; -x_13 = lean_ctor_get(x_11, 1); -x_14 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_13, x_8); -lean_ctor_set(x_11, 1, x_14); -return x_11; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_15 = lean_ctor_get(x_11, 0); -x_16 = lean_ctor_get(x_11, 1); -lean_inc(x_16); -lean_inc(x_15); -lean_dec(x_11); -x_17 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_16, x_8); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_15); -lean_ctor_set(x_18, 1, x_17); -return x_18; -} -} -else -{ -uint8_t x_19; -x_19 = !lean_is_exclusive(x_11); -if (x_19 == 0) -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_20 = lean_ctor_get(x_11, 0); -x_21 = lean_ctor_get(x_11, 1); -lean_inc(x_4); -x_22 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_1, x_20); -x_23 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_21, x_8); -lean_ctor_set(x_11, 1, x_23); -lean_ctor_set(x_11, 0, x_22); -return x_11; -} -else -{ -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_11, 0); -x_25 = lean_ctor_get(x_11, 1); -lean_inc(x_25); -lean_inc(x_24); -lean_dec(x_11); -lean_inc(x_4); -x_26 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_1, x_24); -x_27 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_25, x_8); -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; -} -} -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_29 = lean_ctor_get(x_6, 0); -x_30 = lean_ctor_get(x_6, 1); -x_31 = lean_ctor_get(x_6, 2); -x_32 = lean_ctor_get(x_6, 3); -x_33 = lean_ctor_get(x_6, 4); -x_34 = lean_ctor_get(x_6, 5); -lean_inc(x_34); -lean_inc(x_33); -lean_inc(x_32); -lean_inc(x_31); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_6); -x_35 = lean_ctor_get(x_4, 0); -lean_inc(x_35); -x_36 = l_Lean_TraceState_Inhabited___closed__1; -x_37 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_37, 0, x_29); -lean_ctor_set(x_37, 1, x_30); -lean_ctor_set(x_37, 2, x_31); -lean_ctor_set(x_37, 3, x_32); -lean_ctor_set(x_37, 4, x_36); -lean_ctor_set(x_37, 5, x_34); -x_38 = l_Lean_Meta_mkAppM(x_2, x_3, x_35, x_37); -if (lean_obj_tag(x_38) == 0) -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_39 = lean_ctor_get(x_38, 0); -lean_inc(x_39); -x_40 = lean_ctor_get(x_38, 1); -lean_inc(x_40); -if (lean_is_exclusive(x_38)) { - lean_ctor_release(x_38, 0); - lean_ctor_release(x_38, 1); - x_41 = x_38; -} else { - lean_dec_ref(x_38); - x_41 = lean_box(0); -} -x_42 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_40, x_33); -if (lean_is_scalar(x_41)) { - x_43 = lean_alloc_ctor(0, 2, 0); -} else { - x_43 = x_41; -} -lean_ctor_set(x_43, 0, x_39); -lean_ctor_set(x_43, 1, x_42); -return x_43; -} -else -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_44 = lean_ctor_get(x_38, 0); -lean_inc(x_44); -x_45 = lean_ctor_get(x_38, 1); -lean_inc(x_45); -if (lean_is_exclusive(x_38)) { - lean_ctor_release(x_38, 0); - lean_ctor_release(x_38, 1); - x_46 = x_38; -} else { - lean_dec_ref(x_38); - x_46 = lean_box(0); -} -lean_inc(x_4); -x_47 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_1, x_44); -x_48 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_45, x_33); -if (lean_is_scalar(x_46)) { - x_49 = lean_alloc_ctor(1, 2, 0); -} else { - x_49 = x_46; -} -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -return x_49; -} -} -} -} -lean_object* l_Lean_Elab_Term_mkAppM___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_Lean_Elab_Term_mkAppM(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_3); -lean_dec(x_1); -return x_6; -} -} -lean_object* l_Lean_Elab_Term_mkExpectedTypeHint(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; uint8_t x_7; -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = !lean_is_exclusive(x_6); -if (x_7 == 0) -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_8 = lean_ctor_get(x_6, 4); -x_9 = lean_ctor_get(x_4, 0); -lean_inc(x_9); -x_10 = l_Lean_TraceState_Inhabited___closed__1; -lean_ctor_set(x_6, 4, x_10); -x_11 = l_Lean_Meta_mkExpectedTypeHint(x_2, x_3, x_9, x_6); -if (lean_obj_tag(x_11) == 0) -{ -uint8_t x_12; -x_12 = !lean_is_exclusive(x_11); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; -x_13 = lean_ctor_get(x_11, 1); -x_14 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_13, x_8); -lean_ctor_set(x_11, 1, x_14); -return x_11; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_15 = lean_ctor_get(x_11, 0); -x_16 = lean_ctor_get(x_11, 1); -lean_inc(x_16); -lean_inc(x_15); -lean_dec(x_11); -x_17 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_16, x_8); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_15); -lean_ctor_set(x_18, 1, x_17); -return x_18; -} -} -else -{ -uint8_t x_19; -x_19 = !lean_is_exclusive(x_11); -if (x_19 == 0) -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_20 = lean_ctor_get(x_11, 0); -x_21 = lean_ctor_get(x_11, 1); -lean_inc(x_4); -x_22 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_1, x_20); -x_23 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_21, x_8); -lean_ctor_set(x_11, 1, x_23); -lean_ctor_set(x_11, 0, x_22); -return x_11; -} -else -{ -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_11, 0); -x_25 = lean_ctor_get(x_11, 1); -lean_inc(x_25); -lean_inc(x_24); -lean_dec(x_11); -lean_inc(x_4); -x_26 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_1, x_24); -x_27 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_25, x_8); -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; -} -} -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_29 = lean_ctor_get(x_6, 0); -x_30 = lean_ctor_get(x_6, 1); -x_31 = lean_ctor_get(x_6, 2); -x_32 = lean_ctor_get(x_6, 3); -x_33 = lean_ctor_get(x_6, 4); -x_34 = lean_ctor_get(x_6, 5); -lean_inc(x_34); -lean_inc(x_33); -lean_inc(x_32); -lean_inc(x_31); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_6); -x_35 = lean_ctor_get(x_4, 0); -lean_inc(x_35); -x_36 = l_Lean_TraceState_Inhabited___closed__1; -x_37 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_37, 0, x_29); -lean_ctor_set(x_37, 1, x_30); -lean_ctor_set(x_37, 2, x_31); -lean_ctor_set(x_37, 3, x_32); -lean_ctor_set(x_37, 4, x_36); -lean_ctor_set(x_37, 5, x_34); -x_38 = l_Lean_Meta_mkExpectedTypeHint(x_2, x_3, x_35, x_37); -if (lean_obj_tag(x_38) == 0) -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_39 = lean_ctor_get(x_38, 0); -lean_inc(x_39); -x_40 = lean_ctor_get(x_38, 1); -lean_inc(x_40); -if (lean_is_exclusive(x_38)) { - lean_ctor_release(x_38, 0); - lean_ctor_release(x_38, 1); - x_41 = x_38; -} else { - lean_dec_ref(x_38); - x_41 = lean_box(0); -} -x_42 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_40, x_33); -if (lean_is_scalar(x_41)) { - x_43 = lean_alloc_ctor(0, 2, 0); -} else { - x_43 = x_41; -} -lean_ctor_set(x_43, 0, x_39); -lean_ctor_set(x_43, 1, x_42); -return x_43; -} -else -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_44 = lean_ctor_get(x_38, 0); -lean_inc(x_44); -x_45 = lean_ctor_get(x_38, 1); -lean_inc(x_45); -if (lean_is_exclusive(x_38)) { - lean_ctor_release(x_38, 0); - lean_ctor_release(x_38, 1); - x_46 = x_38; -} else { - lean_dec_ref(x_38); - x_46 = lean_box(0); -} -lean_inc(x_4); -x_47 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_1, x_44); -x_48 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_4, x_5, x_45, x_33); -if (lean_is_scalar(x_46)) { - x_49 = lean_alloc_ctor(1, 2, 0); -} else { - x_49 = x_46; -} -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -return x_49; -} -} -} -} -lean_object* l_Lean_Elab_Term_mkExpectedTypeHint___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_Lean_Elab_Term_mkExpectedTypeHint(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_1); -return x_6; -} -} -lean_object* l_Lean_Elab_Term_decLevel_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; uint8_t x_6; -x_5 = lean_ctor_get(x_4, 0); -lean_inc(x_5); -x_6 = !lean_is_exclusive(x_5); -if (x_6 == 0) -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_7 = lean_ctor_get(x_5, 4); -x_8 = lean_ctor_get(x_3, 0); -lean_inc(x_8); -x_9 = l_Lean_TraceState_Inhabited___closed__1; -lean_ctor_set(x_5, 4, x_9); -x_10 = l_Lean_Meta_decLevel_x3f(x_2, x_8, x_5); -lean_dec(x_8); -if (lean_obj_tag(x_10) == 0) -{ -uint8_t x_11; -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_10, 1); -x_13 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_12, x_7); -lean_ctor_set(x_10, 1, x_13); -return x_10; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_14 = lean_ctor_get(x_10, 0); -x_15 = lean_ctor_get(x_10, 1); -lean_inc(x_15); -lean_inc(x_14); -lean_dec(x_10); -x_16 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_15, x_7); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_14); -lean_ctor_set(x_17, 1, x_16); -return x_17; -} -} -else -{ -uint8_t x_18; -x_18 = !lean_is_exclusive(x_10); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_10, 0); -x_20 = lean_ctor_get(x_10, 1); -lean_inc(x_3); -x_21 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_19); -x_22 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_20, x_7); -lean_ctor_set(x_10, 1, x_22); -lean_ctor_set(x_10, 0, x_21); -return x_10; -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_23 = lean_ctor_get(x_10, 0); -x_24 = lean_ctor_get(x_10, 1); -lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_10); -lean_inc(x_3); -x_25 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_23); -x_26 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_24, 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; -} -} -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_28 = lean_ctor_get(x_5, 0); -x_29 = lean_ctor_get(x_5, 1); -x_30 = lean_ctor_get(x_5, 2); -x_31 = lean_ctor_get(x_5, 3); -x_32 = lean_ctor_get(x_5, 4); -x_33 = lean_ctor_get(x_5, 5); -lean_inc(x_33); -lean_inc(x_32); -lean_inc(x_31); -lean_inc(x_30); -lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_5); -x_34 = lean_ctor_get(x_3, 0); -lean_inc(x_34); -x_35 = l_Lean_TraceState_Inhabited___closed__1; -x_36 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_36, 0, x_28); -lean_ctor_set(x_36, 1, x_29); -lean_ctor_set(x_36, 2, x_30); -lean_ctor_set(x_36, 3, x_31); -lean_ctor_set(x_36, 4, x_35); -lean_ctor_set(x_36, 5, x_33); -x_37 = l_Lean_Meta_decLevel_x3f(x_2, x_34, x_36); -lean_dec(x_34); -if (lean_obj_tag(x_37) == 0) -{ -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_37, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); -if (lean_is_exclusive(x_37)) { - lean_ctor_release(x_37, 0); - lean_ctor_release(x_37, 1); - x_40 = x_37; -} else { - lean_dec_ref(x_37); - x_40 = lean_box(0); -} -x_41 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_39, x_32); -if (lean_is_scalar(x_40)) { - x_42 = lean_alloc_ctor(0, 2, 0); -} else { - x_42 = x_40; -} -lean_ctor_set(x_42, 0, x_38); -lean_ctor_set(x_42, 1, x_41); -return x_42; -} -else -{ -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_37, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_37, 1); -lean_inc(x_44); -if (lean_is_exclusive(x_37)) { - lean_ctor_release(x_37, 0); - lean_ctor_release(x_37, 1); - x_45 = x_37; -} else { - lean_dec_ref(x_37); - x_45 = lean_box(0); -} -lean_inc(x_3); -x_46 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_1, x_43); -x_47 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_3, x_4, x_44, x_32); -if (lean_is_scalar(x_45)) { - x_48 = lean_alloc_ctor(1, 2, 0); -} else { - x_48 = x_45; -} -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; -} -} -} -} -lean_object* l_Lean_Elab_Term_decLevel_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_Elab_Term_decLevel_x3f(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} -lean_object* l_Lean_Elab_Term_decLevel(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -lean_inc(x_3); +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_9, 0); +x_19 = lean_ctor_get(x_9, 1); lean_inc(x_2); -x_5 = l_Lean_Elab_Term_decLevel_x3f(x_1, x_2, x_3, x_4); -if (lean_obj_tag(x_5) == 0) -{ -lean_object* x_6; -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -if (lean_obj_tag(x_6) == 0) -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_7 = lean_ctor_get(x_5, 1); -lean_inc(x_7); -lean_dec(x_5); -x_8 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_8, 0, x_2); -x_9 = l___private_Lean_Meta_AppBuilder_8__getDecLevel___closed__3; -x_10 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_10, 0, x_9); -lean_ctor_set(x_10, 1, x_8); -x_11 = l___private_Lean_Meta_AppBuilder_8__getDecLevel___closed__6; -x_12 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_12, 0, x_10); -lean_ctor_set(x_12, 1, x_11); -x_13 = l_Lean_Elab_Term_throwError___rarg(x_1, x_12, x_3, x_7); -return x_13; +x_20 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_18); +x_21 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_19, x_6); +lean_ctor_set(x_9, 1, x_21); +lean_ctor_set(x_9, 0, x_20); +return x_9; } else { -uint8_t x_14; -lean_dec(x_3); -lean_dec(x_2); -x_14 = !lean_is_exclusive(x_5); -if (x_14 == 0) -{ -lean_object* x_15; lean_object* x_16; -x_15 = lean_ctor_get(x_5, 0); -lean_dec(x_15); -x_16 = lean_ctor_get(x_6, 0); -lean_inc(x_16); -lean_dec(x_6); -lean_ctor_set(x_5, 0, x_16); -return x_5; -} -else -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_5, 1); -lean_inc(x_17); -lean_dec(x_5); -x_18 = lean_ctor_get(x_6, 0); -lean_inc(x_18); -lean_dec(x_6); -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; -} -} -} -else -{ -uint8_t x_20; -lean_dec(x_3); -lean_dec(x_2); -x_20 = !lean_is_exclusive(x_5); -if (x_20 == 0) -{ -return x_5; -} -else -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_5, 0); -x_22 = lean_ctor_get(x_5, 1); +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_22 = lean_ctor_get(x_9, 0); +x_23 = lean_ctor_get(x_9, 1); +lean_inc(x_23); lean_inc(x_22); -lean_inc(x_21); +lean_dec(x_9); +lean_inc(x_2); +x_24 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_22); +x_25 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_23, x_6); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; +} +} +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_27 = lean_ctor_get(x_4, 0); +x_28 = lean_ctor_get(x_4, 1); +x_29 = lean_ctor_get(x_4, 2); +x_30 = lean_ctor_get(x_4, 3); +x_31 = lean_ctor_get(x_4, 4); +x_32 = lean_ctor_get(x_4, 5); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_4); +x_33 = lean_ctor_get(x_2, 0); +lean_inc(x_33); +x_34 = l_Lean_TraceState_Inhabited___closed__1; +x_35 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_35, 0, x_27); +lean_ctor_set(x_35, 1, x_28); +lean_ctor_set(x_35, 2, x_29); +lean_ctor_set(x_35, 3, x_30); +lean_ctor_set(x_35, 4, x_34); +lean_ctor_set(x_35, 5, x_32); +x_36 = l_Lean_Meta_trySynthInstance(x_1, x_33, x_35); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_36, 1); +lean_inc(x_38); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_39 = x_36; +} else { + lean_dec_ref(x_36); + x_39 = lean_box(0); +} +x_40 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_38, x_31); +if (lean_is_scalar(x_39)) { + x_41 = lean_alloc_ctor(0, 2, 0); +} else { + x_41 = x_39; +} +lean_ctor_set(x_41, 0, x_37); +lean_ctor_set(x_41, 1, x_40); +return x_41; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_42 = lean_ctor_get(x_36, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_36, 1); +lean_inc(x_43); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_44 = x_36; +} else { + lean_dec_ref(x_36); + x_44 = lean_box(0); +} +lean_inc(x_2); +x_45 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_42); +x_46 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_43, x_31); +if (lean_is_scalar(x_44)) { + x_47 = lean_alloc_ctor(1, 2, 0); +} else { + x_47 = x_44; +} +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +} +lean_object* l_Lean_Elab_Term_mkAppM(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; uint8_t x_6; +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +x_6 = !lean_is_exclusive(x_5); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_7 = lean_ctor_get(x_5, 4); +x_8 = lean_ctor_get(x_3, 0); +lean_inc(x_8); +x_9 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_5, 4, x_9); +x_10 = l_Lean_Meta_mkAppM(x_1, x_2, x_8, x_5); +if (lean_obj_tag(x_10) == 0) +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_10, 1); +x_13 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_12, x_7); +lean_ctor_set(x_10, 1, x_13); +return x_10; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_14 = lean_ctor_get(x_10, 0); +x_15 = lean_ctor_get(x_10, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_10); +x_16 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_15, x_7); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_14); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +} +else +{ +uint8_t x_18; +x_18 = !lean_is_exclusive(x_10); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_19 = lean_ctor_get(x_10, 0); +x_20 = lean_ctor_get(x_10, 1); +lean_inc(x_3); +x_21 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_19); +x_22 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_20, x_7); +lean_ctor_set(x_10, 1, x_22); +lean_ctor_set(x_10, 0, x_21); +return x_10; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_23 = lean_ctor_get(x_10, 0); +x_24 = lean_ctor_get(x_10, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_10); +lean_inc(x_3); +x_25 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_23); +x_26 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_24, 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; +} +} +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_28 = lean_ctor_get(x_5, 0); +x_29 = lean_ctor_get(x_5, 1); +x_30 = lean_ctor_get(x_5, 2); +x_31 = lean_ctor_get(x_5, 3); +x_32 = lean_ctor_get(x_5, 4); +x_33 = lean_ctor_get(x_5, 5); +lean_inc(x_33); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); lean_dec(x_5); -x_23 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_23, 0, x_21); -lean_ctor_set(x_23, 1, x_22); -return x_23; +x_34 = lean_ctor_get(x_3, 0); +lean_inc(x_34); +x_35 = l_Lean_TraceState_Inhabited___closed__1; +x_36 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_36, 0, x_28); +lean_ctor_set(x_36, 1, x_29); +lean_ctor_set(x_36, 2, x_30); +lean_ctor_set(x_36, 3, x_31); +lean_ctor_set(x_36, 4, x_35); +lean_ctor_set(x_36, 5, x_33); +x_37 = l_Lean_Meta_mkAppM(x_1, x_2, x_34, x_36); +if (lean_obj_tag(x_37) == 0) +{ +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_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_40 = x_37; +} else { + lean_dec_ref(x_37); + x_40 = lean_box(0); +} +x_41 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_39, x_32); +if (lean_is_scalar(x_40)) { + x_42 = lean_alloc_ctor(0, 2, 0); +} else { + x_42 = x_40; +} +lean_ctor_set(x_42, 0, x_38); +lean_ctor_set(x_42, 1, x_41); +return x_42; +} +else +{ +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_37, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_37, 1); +lean_inc(x_44); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_45 = x_37; +} else { + lean_dec_ref(x_37); + x_45 = lean_box(0); +} +lean_inc(x_3); +x_46 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_43); +x_47 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_44, x_32); +if (lean_is_scalar(x_45)) { + x_48 = lean_alloc_ctor(1, 2, 0); +} else { + x_48 = x_45; +} +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; } } } } -lean_object* l_Lean_Elab_Term_decLevel___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Term_mkAppM___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Elab_Term_decLevel(x_1, x_2, x_3, x_4); -lean_dec(x_1); +x_5 = l_Lean_Elab_Term_mkAppM(x_1, x_2, x_3, x_4); +lean_dec(x_2); return x_5; } } -lean_object* l_Lean_Elab_Term_getDecLevel(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Term_mkExpectedTypeHint(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; +lean_object* x_5; uint8_t x_6; +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +x_6 = !lean_is_exclusive(x_5); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_7 = lean_ctor_get(x_5, 4); +x_8 = lean_ctor_get(x_3, 0); +lean_inc(x_8); +x_9 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_5, 4, x_9); +x_10 = l_Lean_Meta_mkExpectedTypeHint(x_1, x_2, x_8, x_5); +if (lean_obj_tag(x_10) == 0) +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_10, 1); +x_13 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_12, x_7); +lean_ctor_set(x_10, 1, x_13); +return x_10; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_14 = lean_ctor_get(x_10, 0); +x_15 = lean_ctor_get(x_10, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_10); +x_16 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_15, x_7); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_14); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +} +else +{ +uint8_t x_18; +x_18 = !lean_is_exclusive(x_10); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_19 = lean_ctor_get(x_10, 0); +x_20 = lean_ctor_get(x_10, 1); lean_inc(x_3); -x_5 = l_Lean_Elab_Term_getLevel(x_1, x_2, x_3, x_4); +x_21 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_19); +x_22 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_20, x_7); +lean_ctor_set(x_10, 1, x_22); +lean_ctor_set(x_10, 0, x_21); +return x_10; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_23 = lean_ctor_get(x_10, 0); +x_24 = lean_ctor_get(x_10, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_10); +lean_inc(x_3); +x_25 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_23); +x_26 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_24, 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; +} +} +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_28 = lean_ctor_get(x_5, 0); +x_29 = lean_ctor_get(x_5, 1); +x_30 = lean_ctor_get(x_5, 2); +x_31 = lean_ctor_get(x_5, 3); +x_32 = lean_ctor_get(x_5, 4); +x_33 = lean_ctor_get(x_5, 5); +lean_inc(x_33); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_5); +x_34 = lean_ctor_get(x_3, 0); +lean_inc(x_34); +x_35 = l_Lean_TraceState_Inhabited___closed__1; +x_36 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_36, 0, x_28); +lean_ctor_set(x_36, 1, x_29); +lean_ctor_set(x_36, 2, x_30); +lean_ctor_set(x_36, 3, x_31); +lean_ctor_set(x_36, 4, x_35); +lean_ctor_set(x_36, 5, x_33); +x_37 = l_Lean_Meta_mkExpectedTypeHint(x_1, x_2, x_34, x_36); +if (lean_obj_tag(x_37) == 0) +{ +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_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_40 = x_37; +} else { + lean_dec_ref(x_37); + x_40 = lean_box(0); +} +x_41 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_39, x_32); +if (lean_is_scalar(x_40)) { + x_42 = lean_alloc_ctor(0, 2, 0); +} else { + x_42 = x_40; +} +lean_ctor_set(x_42, 0, x_38); +lean_ctor_set(x_42, 1, x_41); +return x_42; +} +else +{ +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_37, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_37, 1); +lean_inc(x_44); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_45 = x_37; +} else { + lean_dec_ref(x_37); + x_45 = lean_box(0); +} +lean_inc(x_3); +x_46 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_43); +x_47 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_44, x_32); +if (lean_is_scalar(x_45)) { + x_48 = lean_alloc_ctor(1, 2, 0); +} else { + x_48 = x_45; +} +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; +} +} +} +} +lean_object* l_Lean_Elab_Term_decLevel_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +x_5 = !lean_is_exclusive(x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = lean_ctor_get(x_4, 4); +x_7 = lean_ctor_get(x_2, 0); +lean_inc(x_7); +x_8 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_4, 4, x_8); +x_9 = l_Lean_Meta_decLevel_x3f(x_1, x_7, x_4); +lean_dec(x_7); +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_9, 1); +x_12 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_11, x_6); +lean_ctor_set(x_9, 1, x_12); +return x_9; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_13 = lean_ctor_get(x_9, 0); +x_14 = lean_ctor_get(x_9, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_9); +x_15 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_14, x_6); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_13); +lean_ctor_set(x_16, 1, x_15); +return x_16; +} +} +else +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_9); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_9, 0); +x_19 = lean_ctor_get(x_9, 1); +lean_inc(x_2); +x_20 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_18); +x_21 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_19, x_6); +lean_ctor_set(x_9, 1, x_21); +lean_ctor_set(x_9, 0, x_20); +return x_9; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_22 = lean_ctor_get(x_9, 0); +x_23 = lean_ctor_get(x_9, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_9); +lean_inc(x_2); +x_24 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_22); +x_25 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_23, x_6); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; +} +} +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_27 = lean_ctor_get(x_4, 0); +x_28 = lean_ctor_get(x_4, 1); +x_29 = lean_ctor_get(x_4, 2); +x_30 = lean_ctor_get(x_4, 3); +x_31 = lean_ctor_get(x_4, 4); +x_32 = lean_ctor_get(x_4, 5); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_4); +x_33 = lean_ctor_get(x_2, 0); +lean_inc(x_33); +x_34 = l_Lean_TraceState_Inhabited___closed__1; +x_35 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_35, 0, x_27); +lean_ctor_set(x_35, 1, x_28); +lean_ctor_set(x_35, 2, x_29); +lean_ctor_set(x_35, 3, x_30); +lean_ctor_set(x_35, 4, x_34); +lean_ctor_set(x_35, 5, x_32); +x_36 = l_Lean_Meta_decLevel_x3f(x_1, x_33, x_35); +lean_dec(x_33); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_36, 1); +lean_inc(x_38); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_39 = x_36; +} else { + lean_dec_ref(x_36); + x_39 = lean_box(0); +} +x_40 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_38, x_31); +if (lean_is_scalar(x_39)) { + x_41 = lean_alloc_ctor(0, 2, 0); +} else { + x_41 = x_39; +} +lean_ctor_set(x_41, 0, x_37); +lean_ctor_set(x_41, 1, x_40); +return x_41; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_42 = lean_ctor_get(x_36, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_36, 1); +lean_inc(x_43); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_44 = x_36; +} else { + lean_dec_ref(x_36); + x_44 = lean_box(0); +} +lean_inc(x_2); +x_45 = l___private_Lean_Elab_Term_2__fromMetaException(x_2, x_42); +x_46 = l___private_Lean_Elab_Term_3__fromMetaState(x_2, x_3, x_43, x_31); +if (lean_is_scalar(x_44)) { + x_47 = lean_alloc_ctor(1, 2, 0); +} else { + x_47 = x_44; +} +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +} +lean_object* l_Lean_Elab_Term_decLevel(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +lean_inc(x_2); +lean_inc(x_1); +x_4 = l_Lean_Elab_Term_decLevel_x3f(x_1, x_2, x_3); +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_5; +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); if (lean_obj_tag(x_5) == 0) { -lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_6 = lean_ctor_get(x_5, 0); +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_6 = lean_ctor_get(x_4, 1); lean_inc(x_6); -x_7 = lean_ctor_get(x_5, 1); -lean_inc(x_7); -lean_dec(x_5); -x_8 = l_Lean_Elab_Term_decLevel(x_1, x_6, x_3, x_7); -return x_8; -} -else -{ -uint8_t x_9; -lean_dec(x_3); -x_9 = !lean_is_exclusive(x_5); -if (x_9 == 0) -{ -return x_5; -} -else -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_10 = lean_ctor_get(x_5, 0); -x_11 = lean_ctor_get(x_5, 1); -lean_inc(x_11); -lean_inc(x_10); -lean_dec(x_5); -x_12 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_12, 0, x_10); -lean_ctor_set(x_12, 1, x_11); +lean_dec(x_4); +x_7 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_7, 0, x_1); +x_8 = l___private_Lean_Meta_AppBuilder_8__getDecLevel___closed__3; +x_9 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_7); +x_10 = l___private_Lean_Meta_AppBuilder_8__getDecLevel___closed__6; +x_11 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_11, 0, x_9); +lean_ctor_set(x_11, 1, x_10); +x_12 = l_Lean_Elab_Term_throwError___rarg(x_11, x_2, x_6); return x_12; } +else +{ +uint8_t x_13; +lean_dec(x_2); +lean_dec(x_1); +x_13 = !lean_is_exclusive(x_4); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_4, 0); +lean_dec(x_14); +x_15 = lean_ctor_get(x_5, 0); +lean_inc(x_15); +lean_dec(x_5); +lean_ctor_set(x_4, 0, x_15); +return x_4; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_4, 1); +lean_inc(x_16); +lean_dec(x_4); +x_17 = lean_ctor_get(x_5, 0); +lean_inc(x_17); +lean_dec(x_5); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_16); +return x_18; } } } -lean_object* l_Lean_Elab_Term_getDecLevel___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +else +{ +uint8_t x_19; +lean_dec(x_2); +lean_dec(x_1); +x_19 = !lean_is_exclusive(x_4); +if (x_19 == 0) +{ +return x_4; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_4, 0); +x_21 = lean_ctor_get(x_4, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_4); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +} +} +lean_object* l_Lean_Elab_Term_getDecLevel(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; -x_5 = l_Lean_Elab_Term_getDecLevel(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; +lean_object* x_4; +lean_inc(x_2); +x_4 = l_Lean_Elab_Term_getLevel(x_1, x_2, x_3); +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_4, 1); +lean_inc(x_6); +lean_dec(x_4); +x_7 = l_Lean_Elab_Term_decLevel(x_5, x_2, x_6); +return x_7; +} +else +{ +uint8_t x_8; +lean_dec(x_2); +x_8 = !lean_is_exclusive(x_4); +if (x_8 == 0) +{ +return x_4; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_ctor_get(x_4, 0); +x_10 = lean_ctor_get(x_4, 1); +lean_inc(x_10); +lean_inc(x_9); +lean_dec(x_4); +x_11 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_11, 0, x_9); +lean_ctor_set(x_11, 1, x_10); +return x_11; +} +} } } lean_object* l_Lean_Elab_Term_savingMCtx___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { @@ -10665,7 +10734,7 @@ return x_18; } else { -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; uint8_t x_29; uint8_t x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +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; uint8_t x_29; uint8_t x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; x_19 = lean_ctor_get(x_3, 0); x_20 = lean_ctor_get(x_3, 1); x_21 = lean_ctor_get(x_3, 2); @@ -10676,9 +10745,11 @@ x_25 = lean_ctor_get(x_3, 6); x_26 = lean_ctor_get(x_3, 7); x_27 = lean_ctor_get(x_3, 8); x_28 = lean_ctor_get(x_3, 9); -x_29 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); -x_30 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); -x_31 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); +x_29 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_30 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_31 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +x_32 = lean_ctor_get(x_3, 10); +lean_inc(x_32); lean_inc(x_28); lean_inc(x_27); lean_inc(x_26); @@ -10690,54 +10761,55 @@ lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); lean_dec(x_3); -x_32 = lean_ctor_get(x_19, 0); -lean_inc(x_32); -x_33 = lean_ctor_get(x_19, 1); +x_33 = lean_ctor_get(x_19, 0); lean_inc(x_33); -x_34 = lean_ctor_get(x_19, 2); +x_34 = lean_ctor_get(x_19, 1); lean_inc(x_34); -x_35 = lean_ctor_get(x_19, 3); +x_35 = lean_ctor_get(x_19, 2); lean_inc(x_35); -x_36 = lean_ctor_get(x_19, 4); +x_36 = lean_ctor_get(x_19, 3); lean_inc(x_36); +x_37 = lean_ctor_get(x_19, 4); +lean_inc(x_37); if (lean_is_exclusive(x_19)) { lean_ctor_release(x_19, 0); lean_ctor_release(x_19, 1); lean_ctor_release(x_19, 2); lean_ctor_release(x_19, 3); lean_ctor_release(x_19, 4); - x_37 = x_19; + x_38 = x_19; } else { lean_dec_ref(x_19); - x_37 = lean_box(0); + x_38 = lean_box(0); } -x_38 = lean_apply_1(x_1, x_32); -if (lean_is_scalar(x_37)) { - x_39 = lean_alloc_ctor(0, 5, 0); +x_39 = lean_apply_1(x_1, x_33); +if (lean_is_scalar(x_38)) { + x_40 = lean_alloc_ctor(0, 5, 0); } else { - x_39 = x_37; + x_40 = x_38; } -lean_ctor_set(x_39, 0, x_38); -lean_ctor_set(x_39, 1, x_33); -lean_ctor_set(x_39, 2, x_34); -lean_ctor_set(x_39, 3, x_35); -lean_ctor_set(x_39, 4, x_36); -x_40 = lean_alloc_ctor(0, 10, 3); lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_20); -lean_ctor_set(x_40, 2, x_21); -lean_ctor_set(x_40, 3, x_22); -lean_ctor_set(x_40, 4, x_23); -lean_ctor_set(x_40, 5, x_24); -lean_ctor_set(x_40, 6, x_25); -lean_ctor_set(x_40, 7, x_26); -lean_ctor_set(x_40, 8, x_27); -lean_ctor_set(x_40, 9, x_28); -lean_ctor_set_uint8(x_40, sizeof(void*)*10, x_29); -lean_ctor_set_uint8(x_40, sizeof(void*)*10 + 1, x_30); -lean_ctor_set_uint8(x_40, sizeof(void*)*10 + 2, x_31); -x_41 = lean_apply_2(x_2, x_40, x_4); -return x_41; +lean_ctor_set(x_40, 1, x_34); +lean_ctor_set(x_40, 2, x_35); +lean_ctor_set(x_40, 3, x_36); +lean_ctor_set(x_40, 4, x_37); +x_41 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_20); +lean_ctor_set(x_41, 2, x_21); +lean_ctor_set(x_41, 3, x_22); +lean_ctor_set(x_41, 4, x_23); +lean_ctor_set(x_41, 5, x_24); +lean_ctor_set(x_41, 6, x_25); +lean_ctor_set(x_41, 7, x_26); +lean_ctor_set(x_41, 8, x_27); +lean_ctor_set(x_41, 9, x_28); +lean_ctor_set(x_41, 10, x_32); +lean_ctor_set_uint8(x_41, sizeof(void*)*11, x_29); +lean_ctor_set_uint8(x_41, sizeof(void*)*11 + 1, x_30); +lean_ctor_set_uint8(x_41, sizeof(void*)*11 + 2, x_31); +x_42 = lean_apply_2(x_2, x_41, x_4); +return x_42; } } } @@ -10856,7 +10928,7 @@ return x_36; } else { -lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; uint8_t x_47; uint8_t x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; uint8_t x_56; uint8_t x_57; uint8_t x_58; uint8_t x_59; uint8_t x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; uint8_t x_47; uint8_t x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; uint8_t x_57; uint8_t x_58; uint8_t x_59; uint8_t x_60; uint8_t x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; x_37 = lean_ctor_get(x_3, 1); x_38 = lean_ctor_get(x_3, 2); x_39 = lean_ctor_get(x_3, 3); @@ -10866,9 +10938,11 @@ x_42 = lean_ctor_get(x_3, 6); x_43 = lean_ctor_get(x_3, 7); x_44 = lean_ctor_get(x_3, 8); x_45 = lean_ctor_get(x_3, 9); -x_46 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); -x_47 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); -x_48 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); +x_46 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_47 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_48 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +x_49 = lean_ctor_get(x_3, 10); +lean_inc(x_49); lean_inc(x_45); lean_inc(x_44); lean_inc(x_43); @@ -10879,79 +10953,80 @@ lean_inc(x_39); lean_inc(x_38); lean_inc(x_37); lean_dec(x_3); -x_49 = lean_ctor_get(x_5, 1); -lean_inc(x_49); -x_50 = lean_ctor_get(x_5, 2); +x_50 = lean_ctor_get(x_5, 1); lean_inc(x_50); -x_51 = lean_ctor_get(x_5, 3); +x_51 = lean_ctor_get(x_5, 2); lean_inc(x_51); -x_52 = lean_ctor_get(x_5, 4); +x_52 = lean_ctor_get(x_5, 3); lean_inc(x_52); +x_53 = lean_ctor_get(x_5, 4); +lean_inc(x_53); if (lean_is_exclusive(x_5)) { lean_ctor_release(x_5, 0); lean_ctor_release(x_5, 1); lean_ctor_release(x_5, 2); lean_ctor_release(x_5, 3); lean_ctor_release(x_5, 4); - x_53 = x_5; + x_54 = x_5; } else { lean_dec_ref(x_5); - x_53 = lean_box(0); + x_54 = lean_box(0); } -x_54 = lean_ctor_get(x_6, 0); -lean_inc(x_54); -x_55 = lean_ctor_get_uint8(x_6, sizeof(void*)*1); -x_56 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 1); -x_57 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 2); -x_58 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 3); -x_59 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 4); -x_60 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 5); +x_55 = lean_ctor_get(x_6, 0); +lean_inc(x_55); +x_56 = lean_ctor_get_uint8(x_6, sizeof(void*)*1); +x_57 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 1); +x_58 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 2); +x_59 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 3); +x_60 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 4); +x_61 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 5); if (lean_is_exclusive(x_6)) { lean_ctor_release(x_6, 0); - x_61 = x_6; + x_62 = x_6; } else { lean_dec_ref(x_6); - x_61 = lean_box(0); + x_62 = lean_box(0); } -if (lean_is_scalar(x_61)) { - x_62 = lean_alloc_ctor(0, 1, 7); +if (lean_is_scalar(x_62)) { + x_63 = lean_alloc_ctor(0, 1, 7); } else { - x_62 = x_61; + x_63 = x_62; } -lean_ctor_set(x_62, 0, x_54); -lean_ctor_set_uint8(x_62, sizeof(void*)*1, x_55); -lean_ctor_set_uint8(x_62, sizeof(void*)*1 + 1, x_56); -lean_ctor_set_uint8(x_62, sizeof(void*)*1 + 2, x_57); -lean_ctor_set_uint8(x_62, sizeof(void*)*1 + 3, x_58); -lean_ctor_set_uint8(x_62, sizeof(void*)*1 + 4, x_59); -lean_ctor_set_uint8(x_62, sizeof(void*)*1 + 5, x_60); -lean_ctor_set_uint8(x_62, sizeof(void*)*1 + 6, x_1); -if (lean_is_scalar(x_53)) { - x_63 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_63, 0, x_55); +lean_ctor_set_uint8(x_63, sizeof(void*)*1, x_56); +lean_ctor_set_uint8(x_63, sizeof(void*)*1 + 1, x_57); +lean_ctor_set_uint8(x_63, sizeof(void*)*1 + 2, x_58); +lean_ctor_set_uint8(x_63, sizeof(void*)*1 + 3, x_59); +lean_ctor_set_uint8(x_63, sizeof(void*)*1 + 4, x_60); +lean_ctor_set_uint8(x_63, sizeof(void*)*1 + 5, x_61); +lean_ctor_set_uint8(x_63, sizeof(void*)*1 + 6, x_1); +if (lean_is_scalar(x_54)) { + x_64 = lean_alloc_ctor(0, 5, 0); } else { - x_63 = x_53; + x_64 = x_54; } -lean_ctor_set(x_63, 0, x_62); -lean_ctor_set(x_63, 1, x_49); -lean_ctor_set(x_63, 2, x_50); -lean_ctor_set(x_63, 3, x_51); -lean_ctor_set(x_63, 4, x_52); -x_64 = lean_alloc_ctor(0, 10, 3); lean_ctor_set(x_64, 0, x_63); -lean_ctor_set(x_64, 1, x_37); -lean_ctor_set(x_64, 2, x_38); -lean_ctor_set(x_64, 3, x_39); -lean_ctor_set(x_64, 4, x_40); -lean_ctor_set(x_64, 5, x_41); -lean_ctor_set(x_64, 6, x_42); -lean_ctor_set(x_64, 7, x_43); -lean_ctor_set(x_64, 8, x_44); -lean_ctor_set(x_64, 9, x_45); -lean_ctor_set_uint8(x_64, sizeof(void*)*10, x_46); -lean_ctor_set_uint8(x_64, sizeof(void*)*10 + 1, x_47); -lean_ctor_set_uint8(x_64, sizeof(void*)*10 + 2, x_48); -x_65 = lean_apply_2(x_2, x_64, x_4); -return x_65; +lean_ctor_set(x_64, 1, x_50); +lean_ctor_set(x_64, 2, x_51); +lean_ctor_set(x_64, 3, x_52); +lean_ctor_set(x_64, 4, x_53); +x_65 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_37); +lean_ctor_set(x_65, 2, x_38); +lean_ctor_set(x_65, 3, x_39); +lean_ctor_set(x_65, 4, x_40); +lean_ctor_set(x_65, 5, x_41); +lean_ctor_set(x_65, 6, x_42); +lean_ctor_set(x_65, 7, x_43); +lean_ctor_set(x_65, 8, x_44); +lean_ctor_set(x_65, 9, x_45); +lean_ctor_set(x_65, 10, x_49); +lean_ctor_set_uint8(x_65, sizeof(void*)*11, x_46); +lean_ctor_set_uint8(x_65, sizeof(void*)*11 + 1, x_47); +lean_ctor_set_uint8(x_65, sizeof(void*)*11 + 2, x_48); +x_66 = lean_apply_2(x_2, x_65, x_4); +return x_66; } } } @@ -11083,7 +11158,7 @@ return x_38; } 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; lean_object* x_47; uint8_t x_48; uint8_t x_49; uint8_t x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; uint8_t x_58; uint8_t x_59; uint8_t x_60; uint8_t x_61; uint8_t x_62; lean_object* x_63; uint8_t x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; uint8_t x_49; uint8_t x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; uint8_t x_59; uint8_t x_60; uint8_t x_61; uint8_t x_62; uint8_t x_63; lean_object* x_64; uint8_t x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; x_39 = lean_ctor_get(x_2, 1); x_40 = lean_ctor_get(x_2, 2); x_41 = lean_ctor_get(x_2, 3); @@ -11093,9 +11168,11 @@ x_44 = lean_ctor_get(x_2, 6); x_45 = lean_ctor_get(x_2, 7); x_46 = lean_ctor_get(x_2, 8); x_47 = lean_ctor_get(x_2, 9); -x_48 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_49 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); -x_50 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 2); +x_48 = lean_ctor_get_uint8(x_2, sizeof(void*)*11); +x_49 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 1); +x_50 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 2); +x_51 = lean_ctor_get(x_2, 10); +lean_inc(x_51); lean_inc(x_47); lean_inc(x_46); lean_inc(x_45); @@ -11106,80 +11183,81 @@ lean_inc(x_41); lean_inc(x_40); lean_inc(x_39); lean_dec(x_2); -x_51 = lean_ctor_get(x_4, 1); -lean_inc(x_51); -x_52 = lean_ctor_get(x_4, 2); +x_52 = lean_ctor_get(x_4, 1); lean_inc(x_52); -x_53 = lean_ctor_get(x_4, 3); +x_53 = lean_ctor_get(x_4, 2); lean_inc(x_53); -x_54 = lean_ctor_get(x_4, 4); +x_54 = lean_ctor_get(x_4, 3); lean_inc(x_54); +x_55 = lean_ctor_get(x_4, 4); +lean_inc(x_55); if (lean_is_exclusive(x_4)) { lean_ctor_release(x_4, 0); lean_ctor_release(x_4, 1); lean_ctor_release(x_4, 2); lean_ctor_release(x_4, 3); lean_ctor_release(x_4, 4); - x_55 = x_4; + x_56 = x_4; } else { lean_dec_ref(x_4); - x_55 = lean_box(0); + x_56 = lean_box(0); } -x_56 = lean_ctor_get(x_5, 0); -lean_inc(x_56); -x_57 = lean_ctor_get_uint8(x_5, sizeof(void*)*1); -x_58 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 1); -x_59 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 2); -x_60 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 3); -x_61 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 4); -x_62 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 5); +x_57 = lean_ctor_get(x_5, 0); +lean_inc(x_57); +x_58 = lean_ctor_get_uint8(x_5, sizeof(void*)*1); +x_59 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 1); +x_60 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 2); +x_61 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 3); +x_62 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 4); +x_63 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 5); if (lean_is_exclusive(x_5)) { lean_ctor_release(x_5, 0); - x_63 = x_5; + x_64 = x_5; } else { lean_dec_ref(x_5); - x_63 = lean_box(0); + x_64 = lean_box(0); } -x_64 = 2; -if (lean_is_scalar(x_63)) { - x_65 = lean_alloc_ctor(0, 1, 7); +x_65 = 2; +if (lean_is_scalar(x_64)) { + x_66 = lean_alloc_ctor(0, 1, 7); } else { - x_65 = x_63; + x_66 = x_64; } -lean_ctor_set(x_65, 0, x_56); -lean_ctor_set_uint8(x_65, sizeof(void*)*1, x_57); -lean_ctor_set_uint8(x_65, sizeof(void*)*1 + 1, x_58); -lean_ctor_set_uint8(x_65, sizeof(void*)*1 + 2, x_59); -lean_ctor_set_uint8(x_65, sizeof(void*)*1 + 3, x_60); -lean_ctor_set_uint8(x_65, sizeof(void*)*1 + 4, x_61); -lean_ctor_set_uint8(x_65, sizeof(void*)*1 + 5, x_62); -lean_ctor_set_uint8(x_65, sizeof(void*)*1 + 6, x_64); -if (lean_is_scalar(x_55)) { - x_66 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_66, 0, x_57); +lean_ctor_set_uint8(x_66, sizeof(void*)*1, x_58); +lean_ctor_set_uint8(x_66, sizeof(void*)*1 + 1, x_59); +lean_ctor_set_uint8(x_66, sizeof(void*)*1 + 2, x_60); +lean_ctor_set_uint8(x_66, sizeof(void*)*1 + 3, x_61); +lean_ctor_set_uint8(x_66, sizeof(void*)*1 + 4, x_62); +lean_ctor_set_uint8(x_66, sizeof(void*)*1 + 5, x_63); +lean_ctor_set_uint8(x_66, sizeof(void*)*1 + 6, x_65); +if (lean_is_scalar(x_56)) { + x_67 = lean_alloc_ctor(0, 5, 0); } else { - x_66 = x_55; + x_67 = x_56; } -lean_ctor_set(x_66, 0, x_65); -lean_ctor_set(x_66, 1, x_51); -lean_ctor_set(x_66, 2, x_52); -lean_ctor_set(x_66, 3, x_53); -lean_ctor_set(x_66, 4, x_54); -x_67 = lean_alloc_ctor(0, 10, 3); lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_39); -lean_ctor_set(x_67, 2, x_40); -lean_ctor_set(x_67, 3, x_41); -lean_ctor_set(x_67, 4, x_42); -lean_ctor_set(x_67, 5, x_43); -lean_ctor_set(x_67, 6, x_44); -lean_ctor_set(x_67, 7, x_45); -lean_ctor_set(x_67, 8, x_46); -lean_ctor_set(x_67, 9, x_47); -lean_ctor_set_uint8(x_67, sizeof(void*)*10, x_48); -lean_ctor_set_uint8(x_67, sizeof(void*)*10 + 1, x_49); -lean_ctor_set_uint8(x_67, sizeof(void*)*10 + 2, x_50); -x_68 = lean_apply_2(x_1, x_67, x_3); -return x_68; +lean_ctor_set(x_67, 1, x_52); +lean_ctor_set(x_67, 2, x_53); +lean_ctor_set(x_67, 3, x_54); +lean_ctor_set(x_67, 4, x_55); +x_68 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_39); +lean_ctor_set(x_68, 2, x_40); +lean_ctor_set(x_68, 3, x_41); +lean_ctor_set(x_68, 4, x_42); +lean_ctor_set(x_68, 5, x_43); +lean_ctor_set(x_68, 6, x_44); +lean_ctor_set(x_68, 7, x_45); +lean_ctor_set(x_68, 8, x_46); +lean_ctor_set(x_68, 9, x_47); +lean_ctor_set(x_68, 10, x_51); +lean_ctor_set_uint8(x_68, sizeof(void*)*11, x_48); +lean_ctor_set_uint8(x_68, sizeof(void*)*11 + 1, x_49); +lean_ctor_set_uint8(x_68, sizeof(void*)*11 + 2, x_50); +x_69 = lean_apply_2(x_1, x_68, x_3); +return x_69; } } } @@ -11212,7 +11290,7 @@ return x_10; } else { -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; uint8_t x_21; uint8_t x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +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; uint8_t x_21; uint8_t x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; x_11 = lean_ctor_get(x_4, 0); x_12 = lean_ctor_get(x_4, 1); x_13 = lean_ctor_get(x_4, 2); @@ -11223,9 +11301,11 @@ x_17 = lean_ctor_get(x_4, 6); x_18 = lean_ctor_get(x_4, 7); x_19 = lean_ctor_get(x_4, 8); x_20 = lean_ctor_get(x_4, 9); -x_21 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); -x_22 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); -x_23 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 2); +x_21 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_22 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_23 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +x_24 = lean_ctor_get(x_4, 10); +lean_inc(x_24); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); @@ -11237,28 +11317,29 @@ lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_dec(x_4); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_1); -lean_ctor_set(x_24, 1, x_2); -x_25 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, x_19); -x_26 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_26, 0, x_11); -lean_ctor_set(x_26, 1, x_12); -lean_ctor_set(x_26, 2, x_13); -lean_ctor_set(x_26, 3, x_14); -lean_ctor_set(x_26, 4, x_15); -lean_ctor_set(x_26, 5, x_16); -lean_ctor_set(x_26, 6, x_17); -lean_ctor_set(x_26, 7, x_18); -lean_ctor_set(x_26, 8, x_25); -lean_ctor_set(x_26, 9, x_20); -lean_ctor_set_uint8(x_26, sizeof(void*)*10, x_21); -lean_ctor_set_uint8(x_26, sizeof(void*)*10 + 1, x_22); -lean_ctor_set_uint8(x_26, sizeof(void*)*10 + 2, x_23); -x_27 = lean_apply_2(x_3, x_26, x_5); -return x_27; +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_1); +lean_ctor_set(x_25, 1, x_2); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_19); +x_27 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_27, 0, x_11); +lean_ctor_set(x_27, 1, x_12); +lean_ctor_set(x_27, 2, x_13); +lean_ctor_set(x_27, 3, x_14); +lean_ctor_set(x_27, 4, x_15); +lean_ctor_set(x_27, 5, x_16); +lean_ctor_set(x_27, 6, x_17); +lean_ctor_set(x_27, 7, x_18); +lean_ctor_set(x_27, 8, x_26); +lean_ctor_set(x_27, 9, x_20); +lean_ctor_set(x_27, 10, x_24); +lean_ctor_set_uint8(x_27, sizeof(void*)*11, x_21); +lean_ctor_set_uint8(x_27, sizeof(void*)*11 + 1, x_22); +lean_ctor_set_uint8(x_27, sizeof(void*)*11 + 2, x_23); +x_28 = lean_apply_2(x_3, x_27, x_5); +return x_28; } } } @@ -11270,74 +11351,136 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withMacroExpansion___rarg), 5, return x_2; } } -lean_object* l_Lean_Elab_Term_registerSyntheticMVar(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_Elab_Term_registerSyntheticMVar(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -uint8_t x_6; +lean_object* x_5; uint8_t x_6; +x_5 = l_Lean_Elab_Term_getCurrRef(x_3, x_4); x_6 = !lean_is_exclusive(x_5); if (x_6 == 0) { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +lean_object* x_7; uint8_t x_8; x_7 = lean_ctor_get(x_5, 1); -x_8 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_8, 0, x_2); -lean_ctor_set(x_8, 1, x_1); -lean_ctor_set(x_8, 2, x_3); -x_9 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_9, 0, x_8); -lean_ctor_set(x_9, 1, x_7); -lean_ctor_set(x_5, 1, x_9); -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_5); -return x_11; +x_8 = !lean_is_exclusive(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_9 = lean_ctor_get(x_5, 0); +x_10 = lean_ctor_get(x_7, 1); +x_11 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_11, 0, x_1); +lean_ctor_set(x_11, 1, x_9); +lean_ctor_set(x_11, 2, x_2); +x_12 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_10); +lean_ctor_set(x_7, 1, x_12); +x_13 = lean_box(0); +lean_ctor_set(x_5, 0, x_13); +return x_5; } else { -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_12 = lean_ctor_get(x_5, 0); -x_13 = lean_ctor_get(x_5, 1); -x_14 = lean_ctor_get(x_5, 2); -x_15 = lean_ctor_get(x_5, 3); -x_16 = lean_ctor_get(x_5, 4); -x_17 = lean_ctor_get(x_5, 5); +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; lean_object* x_23; lean_object* x_24; +x_14 = lean_ctor_get(x_5, 0); +x_15 = lean_ctor_get(x_7, 0); +x_16 = lean_ctor_get(x_7, 1); +x_17 = lean_ctor_get(x_7, 2); +x_18 = lean_ctor_get(x_7, 3); +x_19 = lean_ctor_get(x_7, 4); +x_20 = lean_ctor_get(x_7, 5); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); 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_dec(x_5); -x_18 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_18, 0, x_2); -lean_ctor_set(x_18, 1, x_1); -lean_ctor_set(x_18, 2, x_3); -x_19 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_13); -x_20 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_20, 0, x_12); -lean_ctor_set(x_20, 1, x_19); -lean_ctor_set(x_20, 2, x_14); -lean_ctor_set(x_20, 3, x_15); -lean_ctor_set(x_20, 4, x_16); -lean_ctor_set(x_20, 5, x_17); -x_21 = lean_box(0); -x_22 = lean_alloc_ctor(0, 2, 0); +lean_dec(x_7); +x_21 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_21, 0, x_1); +lean_ctor_set(x_21, 1, x_14); +lean_ctor_set(x_21, 2, x_2); +x_22 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_20); -return x_22; +lean_ctor_set(x_22, 1, x_16); +x_23 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_23, 0, x_15); +lean_ctor_set(x_23, 1, x_22); +lean_ctor_set(x_23, 2, x_17); +lean_ctor_set(x_23, 3, x_18); +lean_ctor_set(x_23, 4, x_19); +lean_ctor_set(x_23, 5, x_20); +x_24 = lean_box(0); +lean_ctor_set(x_5, 1, x_23); +lean_ctor_set(x_5, 0, x_24); +return x_5; +} +} +else +{ +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_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_25 = lean_ctor_get(x_5, 1); +x_26 = lean_ctor_get(x_5, 0); +lean_inc(x_25); +lean_inc(x_26); +lean_dec(x_5); +x_27 = lean_ctor_get(x_25, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_25, 1); +lean_inc(x_28); +x_29 = lean_ctor_get(x_25, 2); +lean_inc(x_29); +x_30 = lean_ctor_get(x_25, 3); +lean_inc(x_30); +x_31 = lean_ctor_get(x_25, 4); +lean_inc(x_31); +x_32 = lean_ctor_get(x_25, 5); +lean_inc(x_32); +if (lean_is_exclusive(x_25)) { + lean_ctor_release(x_25, 0); + lean_ctor_release(x_25, 1); + lean_ctor_release(x_25, 2); + lean_ctor_release(x_25, 3); + lean_ctor_release(x_25, 4); + lean_ctor_release(x_25, 5); + x_33 = x_25; +} else { + lean_dec_ref(x_25); + x_33 = lean_box(0); +} +x_34 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_34, 0, x_1); +lean_ctor_set(x_34, 1, x_26); +lean_ctor_set(x_34, 2, x_2); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_28); +if (lean_is_scalar(x_33)) { + x_36 = lean_alloc_ctor(0, 6, 0); +} else { + x_36 = x_33; +} +lean_ctor_set(x_36, 0, x_27); +lean_ctor_set(x_36, 1, x_35); +lean_ctor_set(x_36, 2, x_29); +lean_ctor_set(x_36, 3, x_30); +lean_ctor_set(x_36, 4, x_31); +lean_ctor_set(x_36, 5, x_32); +x_37 = lean_box(0); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_36); +return x_38; } } } -lean_object* l_Lean_Elab_Term_registerSyntheticMVar___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_Elab_Term_registerSyntheticMVar___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_6; -x_6 = l_Lean_Elab_Term_registerSyntheticMVar(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -return x_6; +lean_object* x_5; +x_5 = l_Lean_Elab_Term_registerSyntheticMVar(x_1, x_2, x_3, x_4); +lean_dec(x_3); +return x_5; } } lean_object* l_Lean_Elab_Term_withoutPostponing___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { @@ -11349,13 +11492,13 @@ if (x_4 == 0) { uint8_t x_5; lean_object* x_6; x_5 = 0; -lean_ctor_set_uint8(x_2, sizeof(void*)*10, x_5); +lean_ctor_set_uint8(x_2, sizeof(void*)*11, x_5); x_6 = lean_apply_2(x_1, x_2, x_3); return x_6; } else { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; uint8_t x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; uint8_t x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; x_7 = lean_ctor_get(x_2, 0); x_8 = lean_ctor_get(x_2, 1); x_9 = lean_ctor_get(x_2, 2); @@ -11366,8 +11509,10 @@ x_13 = lean_ctor_get(x_2, 6); x_14 = lean_ctor_get(x_2, 7); x_15 = lean_ctor_get(x_2, 8); x_16 = lean_ctor_get(x_2, 9); -x_17 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); -x_18 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 2); +x_17 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 1); +x_18 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 2); +x_19 = lean_ctor_get(x_2, 10); +lean_inc(x_19); lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); @@ -11379,23 +11524,24 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_dec(x_2); -x_19 = 0; -x_20 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_20, 0, x_7); -lean_ctor_set(x_20, 1, x_8); -lean_ctor_set(x_20, 2, x_9); -lean_ctor_set(x_20, 3, x_10); -lean_ctor_set(x_20, 4, x_11); -lean_ctor_set(x_20, 5, x_12); -lean_ctor_set(x_20, 6, x_13); -lean_ctor_set(x_20, 7, x_14); -lean_ctor_set(x_20, 8, x_15); -lean_ctor_set(x_20, 9, x_16); -lean_ctor_set_uint8(x_20, sizeof(void*)*10, x_19); -lean_ctor_set_uint8(x_20, sizeof(void*)*10 + 1, x_17); -lean_ctor_set_uint8(x_20, sizeof(void*)*10 + 2, x_18); -x_21 = lean_apply_2(x_1, x_20, x_3); -return x_21; +x_20 = 0; +x_21 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_21, 0, x_7); +lean_ctor_set(x_21, 1, x_8); +lean_ctor_set(x_21, 2, x_9); +lean_ctor_set(x_21, 3, x_10); +lean_ctor_set(x_21, 4, x_11); +lean_ctor_set(x_21, 5, x_12); +lean_ctor_set(x_21, 6, x_13); +lean_ctor_set(x_21, 7, x_14); +lean_ctor_set(x_21, 8, x_15); +lean_ctor_set(x_21, 9, x_16); +lean_ctor_set(x_21, 10, x_19); +lean_ctor_set_uint8(x_21, sizeof(void*)*11, x_20); +lean_ctor_set_uint8(x_21, sizeof(void*)*11 + 1, x_17); +lean_ctor_set_uint8(x_21, sizeof(void*)*11 + 2, x_18); +x_22 = lean_apply_2(x_1, x_21, x_3); +return x_22; } } } @@ -12946,125 +13092,129 @@ lean_dec(x_1); return x_2; } } -lean_object* l_Lean_Elab_Term_withLocalDecl___rarg(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Lean_Elab_Term_withLocalDecl___rarg(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_8 = l_Lean_Elab_Term_mkFreshFVarId___rarg(x_7); -x_9 = lean_ctor_get(x_6, 0); +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* x_18; lean_object* x_19; uint8_t x_20; uint8_t x_21; uint8_t x_22; lean_object* x_23; uint8_t x_24; +x_7 = l_Lean_Elab_Term_mkFreshFVarId___rarg(x_6); +x_8 = lean_ctor_get(x_5, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_7, 0); lean_inc(x_9); -x_10 = lean_ctor_get(x_8, 0); +x_10 = lean_ctor_get(x_7, 1); lean_inc(x_10); -x_11 = lean_ctor_get(x_8, 1); +lean_dec(x_7); +x_11 = lean_ctor_get(x_5, 1); lean_inc(x_11); -lean_dec(x_8); -x_12 = lean_ctor_get(x_6, 1); +x_12 = lean_ctor_get(x_5, 2); lean_inc(x_12); -x_13 = lean_ctor_get(x_6, 2); +x_13 = lean_ctor_get(x_5, 3); lean_inc(x_13); -x_14 = lean_ctor_get(x_6, 3); +x_14 = lean_ctor_get(x_5, 4); lean_inc(x_14); -x_15 = lean_ctor_get(x_6, 4); +x_15 = lean_ctor_get(x_5, 5); lean_inc(x_15); -x_16 = lean_ctor_get(x_6, 5); +x_16 = lean_ctor_get(x_5, 6); lean_inc(x_16); -x_17 = lean_ctor_get(x_6, 6); +x_17 = lean_ctor_get(x_5, 7); lean_inc(x_17); -x_18 = lean_ctor_get(x_6, 7); +x_18 = lean_ctor_get(x_5, 8); lean_inc(x_18); -x_19 = lean_ctor_get(x_6, 8); +x_19 = lean_ctor_get(x_5, 9); lean_inc(x_19); -x_20 = lean_ctor_get(x_6, 9); -lean_inc(x_20); -x_21 = !lean_is_exclusive(x_9); -if (x_21 == 0) +x_20 = lean_ctor_get_uint8(x_5, sizeof(void*)*11); +x_21 = lean_ctor_get_uint8(x_5, sizeof(void*)*11 + 1); +x_22 = lean_ctor_get_uint8(x_5, sizeof(void*)*11 + 2); +x_23 = lean_ctor_get(x_5, 10); +lean_inc(x_23); +x_24 = !lean_is_exclusive(x_8); +if (x_24 == 0) { -uint8_t x_22; uint8_t x_23; uint8_t 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; uint8_t x_33; -x_22 = lean_ctor_get_uint8(x_6, sizeof(void*)*10); -x_23 = lean_ctor_get_uint8(x_6, sizeof(void*)*10 + 1); -x_24 = lean_ctor_get_uint8(x_6, sizeof(void*)*10 + 2); -x_25 = lean_ctor_get(x_9, 0); -x_26 = lean_ctor_get(x_9, 1); -x_27 = lean_ctor_get(x_9, 2); -x_28 = lean_ctor_get(x_9, 3); -x_29 = lean_ctor_get(x_9, 4); -lean_inc(x_4); -lean_inc(x_10); -x_30 = lean_local_ctx_mk_local_decl(x_26, x_10, x_2, x_4, x_3); -x_31 = l_Lean_mkFVar(x_10); -lean_inc(x_6); -x_32 = l_Lean_Elab_Term_isClass(x_1, x_4, x_6, x_11); -x_33 = !lean_is_exclusive(x_6); +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; uint8_t x_33; +x_25 = lean_ctor_get(x_8, 0); +x_26 = lean_ctor_get(x_8, 1); +x_27 = lean_ctor_get(x_8, 2); +x_28 = lean_ctor_get(x_8, 3); +x_29 = lean_ctor_get(x_8, 4); +lean_inc(x_3); +lean_inc(x_9); +x_30 = lean_local_ctx_mk_local_decl(x_26, x_9, x_1, x_3, x_2); +x_31 = l_Lean_mkFVar(x_9); +lean_inc(x_5); +x_32 = l_Lean_Elab_Term_isClass(x_3, x_5, x_10); +x_33 = !lean_is_exclusive(x_5); if (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; -x_34 = lean_ctor_get(x_6, 9); +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; +x_34 = lean_ctor_get(x_5, 10); lean_dec(x_34); -x_35 = lean_ctor_get(x_6, 8); +x_35 = lean_ctor_get(x_5, 9); lean_dec(x_35); -x_36 = lean_ctor_get(x_6, 7); +x_36 = lean_ctor_get(x_5, 8); lean_dec(x_36); -x_37 = lean_ctor_get(x_6, 6); +x_37 = lean_ctor_get(x_5, 7); lean_dec(x_37); -x_38 = lean_ctor_get(x_6, 5); +x_38 = lean_ctor_get(x_5, 6); lean_dec(x_38); -x_39 = lean_ctor_get(x_6, 4); +x_39 = lean_ctor_get(x_5, 5); lean_dec(x_39); -x_40 = lean_ctor_get(x_6, 3); +x_40 = lean_ctor_get(x_5, 4); lean_dec(x_40); -x_41 = lean_ctor_get(x_6, 2); +x_41 = lean_ctor_get(x_5, 3); lean_dec(x_41); -x_42 = lean_ctor_get(x_6, 1); +x_42 = lean_ctor_get(x_5, 2); lean_dec(x_42); -x_43 = lean_ctor_get(x_6, 0); +x_43 = lean_ctor_get(x_5, 1); lean_dec(x_43); +x_44 = lean_ctor_get(x_5, 0); +lean_dec(x_44); if (lean_obj_tag(x_32) == 0) { -lean_object* x_44; -x_44 = lean_ctor_get(x_32, 0); -lean_inc(x_44); -if (lean_obj_tag(x_44) == 0) -{ -lean_object* x_45; lean_object* x_46; -x_45 = lean_ctor_get(x_32, 1); +lean_object* x_45; +x_45 = lean_ctor_get(x_32, 0); lean_inc(x_45); +if (lean_obj_tag(x_45) == 0) +{ +lean_object* x_46; lean_object* x_47; +x_46 = lean_ctor_get(x_32, 1); +lean_inc(x_46); lean_dec(x_32); -lean_ctor_set(x_9, 1, x_30); -x_46 = lean_apply_3(x_5, x_31, x_6, x_45); -return x_46; +lean_ctor_set(x_8, 1, x_30); +x_47 = lean_apply_3(x_4, x_31, x_5, x_46); +return x_47; } else { -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_47 = lean_ctor_get(x_32, 1); -lean_inc(x_47); -lean_dec(x_32); -x_48 = lean_ctor_get(x_44, 0); +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_48 = lean_ctor_get(x_32, 1); lean_inc(x_48); -lean_dec(x_44); +lean_dec(x_32); +x_49 = lean_ctor_get(x_45, 0); +lean_inc(x_49); +lean_dec(x_45); lean_inc(x_31); -x_49 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, x_31); -x_50 = lean_array_push(x_27, x_49); -lean_ctor_set(x_9, 2, x_50); -lean_ctor_set(x_9, 1, x_30); -x_51 = lean_apply_3(x_5, x_31, x_6, x_47); -return x_51; +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_31); +x_51 = lean_array_push(x_27, x_50); +lean_ctor_set(x_8, 2, x_51); +lean_ctor_set(x_8, 1, x_30); +x_52 = lean_apply_3(x_4, x_31, x_5, x_48); +return x_52; } } else { -uint8_t x_52; -lean_free_object(x_6); +uint8_t x_53; +lean_free_object(x_5); lean_dec(x_31); lean_dec(x_30); -lean_free_object(x_9); +lean_free_object(x_8); lean_dec(x_29); lean_dec(x_28); lean_dec(x_27); lean_dec(x_25); -lean_dec(x_20); +lean_dec(x_23); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -13073,104 +13223,107 @@ lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); -lean_dec(x_5); -x_52 = !lean_is_exclusive(x_32); -if (x_52 == 0) +lean_dec(x_11); +lean_dec(x_4); +x_53 = !lean_is_exclusive(x_32); +if (x_53 == 0) { return x_32; } else { -lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_32, 0); -x_54 = lean_ctor_get(x_32, 1); +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_32, 0); +x_55 = lean_ctor_get(x_32, 1); +lean_inc(x_55); lean_inc(x_54); -lean_inc(x_53); lean_dec(x_32); -x_55 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_55, 0, x_53); -lean_ctor_set(x_55, 1, x_54); -return x_55; +x_56 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_56, 0, x_54); +lean_ctor_set(x_56, 1, x_55); +return x_56; } } } else { -lean_dec(x_6); +lean_dec(x_5); if (lean_obj_tag(x_32) == 0) { -lean_object* x_56; -x_56 = lean_ctor_get(x_32, 0); -lean_inc(x_56); -if (lean_obj_tag(x_56) == 0) -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_32, 1); +lean_object* x_57; +x_57 = lean_ctor_get(x_32, 0); lean_inc(x_57); +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_32, 1); +lean_inc(x_58); lean_dec(x_32); -lean_ctor_set(x_9, 1, x_30); -x_58 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_58, 0, x_9); -lean_ctor_set(x_58, 1, x_12); -lean_ctor_set(x_58, 2, x_13); -lean_ctor_set(x_58, 3, x_14); -lean_ctor_set(x_58, 4, x_15); -lean_ctor_set(x_58, 5, x_16); -lean_ctor_set(x_58, 6, x_17); -lean_ctor_set(x_58, 7, x_18); -lean_ctor_set(x_58, 8, x_19); -lean_ctor_set(x_58, 9, x_20); -lean_ctor_set_uint8(x_58, sizeof(void*)*10, x_22); -lean_ctor_set_uint8(x_58, sizeof(void*)*10 + 1, x_23); -lean_ctor_set_uint8(x_58, sizeof(void*)*10 + 2, x_24); -x_59 = lean_apply_3(x_5, x_31, x_58, x_57); -return x_59; +lean_ctor_set(x_8, 1, x_30); +x_59 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_59, 0, x_8); +lean_ctor_set(x_59, 1, x_11); +lean_ctor_set(x_59, 2, x_12); +lean_ctor_set(x_59, 3, x_13); +lean_ctor_set(x_59, 4, x_14); +lean_ctor_set(x_59, 5, x_15); +lean_ctor_set(x_59, 6, x_16); +lean_ctor_set(x_59, 7, x_17); +lean_ctor_set(x_59, 8, x_18); +lean_ctor_set(x_59, 9, x_19); +lean_ctor_set(x_59, 10, x_23); +lean_ctor_set_uint8(x_59, sizeof(void*)*11, x_20); +lean_ctor_set_uint8(x_59, sizeof(void*)*11 + 1, x_21); +lean_ctor_set_uint8(x_59, sizeof(void*)*11 + 2, x_22); +x_60 = lean_apply_3(x_4, x_31, x_59, x_58); +return x_60; } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_60 = lean_ctor_get(x_32, 1); -lean_inc(x_60); -lean_dec(x_32); -x_61 = lean_ctor_get(x_56, 0); +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_61 = lean_ctor_get(x_32, 1); lean_inc(x_61); -lean_dec(x_56); +lean_dec(x_32); +x_62 = lean_ctor_get(x_57, 0); +lean_inc(x_62); +lean_dec(x_57); lean_inc(x_31); -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_61); -lean_ctor_set(x_62, 1, x_31); -x_63 = lean_array_push(x_27, x_62); -lean_ctor_set(x_9, 2, x_63); -lean_ctor_set(x_9, 1, x_30); -x_64 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_64, 0, x_9); -lean_ctor_set(x_64, 1, x_12); -lean_ctor_set(x_64, 2, x_13); -lean_ctor_set(x_64, 3, x_14); -lean_ctor_set(x_64, 4, x_15); -lean_ctor_set(x_64, 5, x_16); -lean_ctor_set(x_64, 6, x_17); -lean_ctor_set(x_64, 7, x_18); -lean_ctor_set(x_64, 8, x_19); -lean_ctor_set(x_64, 9, x_20); -lean_ctor_set_uint8(x_64, sizeof(void*)*10, x_22); -lean_ctor_set_uint8(x_64, sizeof(void*)*10 + 1, x_23); -lean_ctor_set_uint8(x_64, sizeof(void*)*10 + 2, x_24); -x_65 = lean_apply_3(x_5, x_31, x_64, x_60); -return x_65; +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_31); +x_64 = lean_array_push(x_27, x_63); +lean_ctor_set(x_8, 2, x_64); +lean_ctor_set(x_8, 1, x_30); +x_65 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_65, 0, x_8); +lean_ctor_set(x_65, 1, x_11); +lean_ctor_set(x_65, 2, x_12); +lean_ctor_set(x_65, 3, x_13); +lean_ctor_set(x_65, 4, x_14); +lean_ctor_set(x_65, 5, x_15); +lean_ctor_set(x_65, 6, x_16); +lean_ctor_set(x_65, 7, x_17); +lean_ctor_set(x_65, 8, x_18); +lean_ctor_set(x_65, 9, x_19); +lean_ctor_set(x_65, 10, x_23); +lean_ctor_set_uint8(x_65, sizeof(void*)*11, x_20); +lean_ctor_set_uint8(x_65, sizeof(void*)*11 + 1, x_21); +lean_ctor_set_uint8(x_65, sizeof(void*)*11 + 2, x_22); +x_66 = lean_apply_3(x_4, x_31, x_65, x_61); +return x_66; } } else { -lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_dec(x_31); lean_dec(x_30); -lean_free_object(x_9); +lean_free_object(x_8); lean_dec(x_29); lean_dec(x_28); lean_dec(x_27); lean_dec(x_25); -lean_dec(x_20); +lean_dec(x_23); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -13179,160 +13332,161 @@ lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); -lean_dec(x_5); -x_66 = lean_ctor_get(x_32, 0); -lean_inc(x_66); -x_67 = lean_ctor_get(x_32, 1); +lean_dec(x_11); +lean_dec(x_4); +x_67 = lean_ctor_get(x_32, 0); lean_inc(x_67); +x_68 = lean_ctor_get(x_32, 1); +lean_inc(x_68); if (lean_is_exclusive(x_32)) { lean_ctor_release(x_32, 0); lean_ctor_release(x_32, 1); - x_68 = x_32; + x_69 = x_32; } else { lean_dec_ref(x_32); - x_68 = lean_box(0); + x_69 = lean_box(0); } -if (lean_is_scalar(x_68)) { - x_69 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_69)) { + x_70 = lean_alloc_ctor(1, 2, 0); } else { - x_69 = x_68; + x_70 = x_69; } -lean_ctor_set(x_69, 0, x_66); -lean_ctor_set(x_69, 1, x_67); -return x_69; +lean_ctor_set(x_70, 0, x_67); +lean_ctor_set(x_70, 1, x_68); +return x_70; } } } else { -uint8_t x_70; uint8_t x_71; uint8_t x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_70 = lean_ctor_get_uint8(x_6, sizeof(void*)*10); -x_71 = lean_ctor_get_uint8(x_6, sizeof(void*)*10 + 1); -x_72 = lean_ctor_get_uint8(x_6, sizeof(void*)*10 + 2); -x_73 = lean_ctor_get(x_9, 0); -x_74 = lean_ctor_get(x_9, 1); -x_75 = lean_ctor_get(x_9, 2); -x_76 = lean_ctor_get(x_9, 3); -x_77 = lean_ctor_get(x_9, 4); -lean_inc(x_77); -lean_inc(x_76); +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_71 = lean_ctor_get(x_8, 0); +x_72 = lean_ctor_get(x_8, 1); +x_73 = lean_ctor_get(x_8, 2); +x_74 = lean_ctor_get(x_8, 3); +x_75 = lean_ctor_get(x_8, 4); lean_inc(x_75); lean_inc(x_74); lean_inc(x_73); -lean_dec(x_9); -lean_inc(x_4); -lean_inc(x_10); -x_78 = lean_local_ctx_mk_local_decl(x_74, x_10, x_2, x_4, x_3); -x_79 = l_Lean_mkFVar(x_10); -lean_inc(x_6); -x_80 = l_Lean_Elab_Term_isClass(x_1, x_4, x_6, x_11); -if (lean_is_exclusive(x_6)) { - lean_ctor_release(x_6, 0); - lean_ctor_release(x_6, 1); - lean_ctor_release(x_6, 2); - lean_ctor_release(x_6, 3); - lean_ctor_release(x_6, 4); - lean_ctor_release(x_6, 5); - lean_ctor_release(x_6, 6); - lean_ctor_release(x_6, 7); - lean_ctor_release(x_6, 8); - lean_ctor_release(x_6, 9); - x_81 = x_6; +lean_inc(x_72); +lean_inc(x_71); +lean_dec(x_8); +lean_inc(x_3); +lean_inc(x_9); +x_76 = lean_local_ctx_mk_local_decl(x_72, x_9, x_1, x_3, x_2); +x_77 = l_Lean_mkFVar(x_9); +lean_inc(x_5); +x_78 = l_Lean_Elab_Term_isClass(x_3, x_5, x_10); +if (lean_is_exclusive(x_5)) { + lean_ctor_release(x_5, 0); + lean_ctor_release(x_5, 1); + lean_ctor_release(x_5, 2); + lean_ctor_release(x_5, 3); + lean_ctor_release(x_5, 4); + lean_ctor_release(x_5, 5); + lean_ctor_release(x_5, 6); + lean_ctor_release(x_5, 7); + lean_ctor_release(x_5, 8); + lean_ctor_release(x_5, 9); + lean_ctor_release(x_5, 10); + x_79 = x_5; } else { - lean_dec_ref(x_6); - x_81 = lean_box(0); + lean_dec_ref(x_5); + x_79 = lean_box(0); } +if (lean_obj_tag(x_78) == 0) +{ +lean_object* x_80; +x_80 = lean_ctor_get(x_78, 0); +lean_inc(x_80); if (lean_obj_tag(x_80) == 0) { -lean_object* x_82; -x_82 = lean_ctor_get(x_80, 0); -lean_inc(x_82); -if (lean_obj_tag(x_82) == 0) -{ -lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_83 = lean_ctor_get(x_80, 1); -lean_inc(x_83); -lean_dec(x_80); -x_84 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_84, 0, x_73); -lean_ctor_set(x_84, 1, x_78); -lean_ctor_set(x_84, 2, x_75); -lean_ctor_set(x_84, 3, x_76); -lean_ctor_set(x_84, 4, x_77); -if (lean_is_scalar(x_81)) { - x_85 = lean_alloc_ctor(0, 10, 3); -} else { - x_85 = x_81; -} -lean_ctor_set(x_85, 0, x_84); -lean_ctor_set(x_85, 1, x_12); -lean_ctor_set(x_85, 2, x_13); -lean_ctor_set(x_85, 3, x_14); -lean_ctor_set(x_85, 4, x_15); -lean_ctor_set(x_85, 5, x_16); -lean_ctor_set(x_85, 6, x_17); -lean_ctor_set(x_85, 7, x_18); -lean_ctor_set(x_85, 8, x_19); -lean_ctor_set(x_85, 9, x_20); -lean_ctor_set_uint8(x_85, sizeof(void*)*10, x_70); -lean_ctor_set_uint8(x_85, sizeof(void*)*10 + 1, x_71); -lean_ctor_set_uint8(x_85, sizeof(void*)*10 + 2, x_72); -x_86 = lean_apply_3(x_5, x_79, x_85, x_83); -return x_86; -} -else -{ -lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_87 = lean_ctor_get(x_80, 1); -lean_inc(x_87); -lean_dec(x_80); -x_88 = lean_ctor_get(x_82, 0); -lean_inc(x_88); -lean_dec(x_82); -lean_inc(x_79); -x_89 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_89, 0, x_88); -lean_ctor_set(x_89, 1, x_79); -x_90 = lean_array_push(x_75, x_89); -x_91 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_91, 0, x_73); -lean_ctor_set(x_91, 1, x_78); -lean_ctor_set(x_91, 2, x_90); -lean_ctor_set(x_91, 3, x_76); -lean_ctor_set(x_91, 4, x_77); -if (lean_is_scalar(x_81)) { - x_92 = lean_alloc_ctor(0, 10, 3); -} else { - x_92 = x_81; -} -lean_ctor_set(x_92, 0, x_91); -lean_ctor_set(x_92, 1, x_12); -lean_ctor_set(x_92, 2, x_13); -lean_ctor_set(x_92, 3, x_14); -lean_ctor_set(x_92, 4, x_15); -lean_ctor_set(x_92, 5, x_16); -lean_ctor_set(x_92, 6, x_17); -lean_ctor_set(x_92, 7, x_18); -lean_ctor_set(x_92, 8, x_19); -lean_ctor_set(x_92, 9, x_20); -lean_ctor_set_uint8(x_92, sizeof(void*)*10, x_70); -lean_ctor_set_uint8(x_92, sizeof(void*)*10 + 1, x_71); -lean_ctor_set_uint8(x_92, sizeof(void*)*10 + 2, x_72); -x_93 = lean_apply_3(x_5, x_79, x_92, x_87); -return x_93; -} -} -else -{ -lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; -lean_dec(x_81); -lean_dec(x_79); +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_81 = lean_ctor_get(x_78, 1); +lean_inc(x_81); lean_dec(x_78); +x_82 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_82, 0, x_71); +lean_ctor_set(x_82, 1, x_76); +lean_ctor_set(x_82, 2, x_73); +lean_ctor_set(x_82, 3, x_74); +lean_ctor_set(x_82, 4, x_75); +if (lean_is_scalar(x_79)) { + x_83 = lean_alloc_ctor(0, 11, 3); +} else { + x_83 = x_79; +} +lean_ctor_set(x_83, 0, x_82); +lean_ctor_set(x_83, 1, x_11); +lean_ctor_set(x_83, 2, x_12); +lean_ctor_set(x_83, 3, x_13); +lean_ctor_set(x_83, 4, x_14); +lean_ctor_set(x_83, 5, x_15); +lean_ctor_set(x_83, 6, x_16); +lean_ctor_set(x_83, 7, x_17); +lean_ctor_set(x_83, 8, x_18); +lean_ctor_set(x_83, 9, x_19); +lean_ctor_set(x_83, 10, x_23); +lean_ctor_set_uint8(x_83, sizeof(void*)*11, x_20); +lean_ctor_set_uint8(x_83, sizeof(void*)*11 + 1, x_21); +lean_ctor_set_uint8(x_83, sizeof(void*)*11 + 2, x_22); +x_84 = lean_apply_3(x_4, x_77, x_83, x_81); +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; lean_object* x_91; +x_85 = lean_ctor_get(x_78, 1); +lean_inc(x_85); +lean_dec(x_78); +x_86 = lean_ctor_get(x_80, 0); +lean_inc(x_86); +lean_dec(x_80); +lean_inc(x_77); +x_87 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_87, 0, x_86); +lean_ctor_set(x_87, 1, x_77); +x_88 = lean_array_push(x_73, x_87); +x_89 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_89, 0, x_71); +lean_ctor_set(x_89, 1, x_76); +lean_ctor_set(x_89, 2, x_88); +lean_ctor_set(x_89, 3, x_74); +lean_ctor_set(x_89, 4, x_75); +if (lean_is_scalar(x_79)) { + x_90 = lean_alloc_ctor(0, 11, 3); +} else { + x_90 = x_79; +} +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_90, 1, x_11); +lean_ctor_set(x_90, 2, x_12); +lean_ctor_set(x_90, 3, x_13); +lean_ctor_set(x_90, 4, x_14); +lean_ctor_set(x_90, 5, x_15); +lean_ctor_set(x_90, 6, x_16); +lean_ctor_set(x_90, 7, x_17); +lean_ctor_set(x_90, 8, x_18); +lean_ctor_set(x_90, 9, x_19); +lean_ctor_set(x_90, 10, x_23); +lean_ctor_set_uint8(x_90, sizeof(void*)*11, x_20); +lean_ctor_set_uint8(x_90, sizeof(void*)*11 + 1, x_21); +lean_ctor_set_uint8(x_90, sizeof(void*)*11 + 2, x_22); +x_91 = lean_apply_3(x_4, x_77, x_90, x_85); +return x_91; +} +} +else +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +lean_dec(x_79); lean_dec(x_77); lean_dec(x_76); lean_dec(x_75); +lean_dec(x_74); lean_dec(x_73); -lean_dec(x_20); +lean_dec(x_71); +lean_dec(x_23); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -13341,27 +13495,28 @@ lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); -lean_dec(x_5); -x_94 = lean_ctor_get(x_80, 0); -lean_inc(x_94); -x_95 = lean_ctor_get(x_80, 1); -lean_inc(x_95); -if (lean_is_exclusive(x_80)) { - lean_ctor_release(x_80, 0); - lean_ctor_release(x_80, 1); - x_96 = x_80; +lean_dec(x_11); +lean_dec(x_4); +x_92 = lean_ctor_get(x_78, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_78, 1); +lean_inc(x_93); +if (lean_is_exclusive(x_78)) { + lean_ctor_release(x_78, 0); + lean_ctor_release(x_78, 1); + x_94 = x_78; } else { - lean_dec_ref(x_80); - x_96 = lean_box(0); + lean_dec_ref(x_78); + x_94 = lean_box(0); } -if (lean_is_scalar(x_96)) { - x_97 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_94)) { + x_95 = lean_alloc_ctor(1, 2, 0); } else { - x_97 = x_96; + x_95 = x_94; } -lean_ctor_set(x_97, 0, x_94); -lean_ctor_set(x_97, 1, x_95); -return x_97; +lean_ctor_set(x_95, 0, x_92); +lean_ctor_set(x_95, 1, x_93); +return x_95; } } } @@ -13370,140 +13525,143 @@ lean_object* l_Lean_Elab_Term_withLocalDecl(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withLocalDecl___rarg___boxed), 7, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withLocalDecl___rarg___boxed), 6, 0); return x_2; } } -lean_object* l_Lean_Elab_Term_withLocalDecl___rarg___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* l_Lean_Elab_Term_withLocalDecl___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -uint8_t x_8; lean_object* x_9; -x_8 = lean_unbox(x_3); -lean_dec(x_3); -x_9 = l_Lean_Elab_Term_withLocalDecl___rarg(x_1, x_2, x_8, x_4, x_5, x_6, x_7); -lean_dec(x_1); -return x_9; +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_2); +lean_dec(x_2); +x_8 = l_Lean_Elab_Term_withLocalDecl___rarg(x_1, x_7, x_3, x_4, x_5, x_6); +return x_8; } } -lean_object* l_Lean_Elab_Term_withLetDecl___rarg(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* l_Lean_Elab_Term_withLetDecl___rarg(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_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* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_8 = l_Lean_Elab_Term_mkFreshFVarId___rarg(x_7); -x_9 = lean_ctor_get(x_6, 0); +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* x_18; lean_object* x_19; uint8_t x_20; uint8_t x_21; uint8_t x_22; lean_object* x_23; uint8_t x_24; +x_7 = l_Lean_Elab_Term_mkFreshFVarId___rarg(x_6); +x_8 = lean_ctor_get(x_5, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_7, 0); lean_inc(x_9); -x_10 = lean_ctor_get(x_8, 0); +x_10 = lean_ctor_get(x_7, 1); lean_inc(x_10); -x_11 = lean_ctor_get(x_8, 1); +lean_dec(x_7); +x_11 = lean_ctor_get(x_5, 1); lean_inc(x_11); -lean_dec(x_8); -x_12 = lean_ctor_get(x_6, 1); +x_12 = lean_ctor_get(x_5, 2); lean_inc(x_12); -x_13 = lean_ctor_get(x_6, 2); +x_13 = lean_ctor_get(x_5, 3); lean_inc(x_13); -x_14 = lean_ctor_get(x_6, 3); +x_14 = lean_ctor_get(x_5, 4); lean_inc(x_14); -x_15 = lean_ctor_get(x_6, 4); +x_15 = lean_ctor_get(x_5, 5); lean_inc(x_15); -x_16 = lean_ctor_get(x_6, 5); +x_16 = lean_ctor_get(x_5, 6); lean_inc(x_16); -x_17 = lean_ctor_get(x_6, 6); +x_17 = lean_ctor_get(x_5, 7); lean_inc(x_17); -x_18 = lean_ctor_get(x_6, 7); +x_18 = lean_ctor_get(x_5, 8); lean_inc(x_18); -x_19 = lean_ctor_get(x_6, 8); +x_19 = lean_ctor_get(x_5, 9); lean_inc(x_19); -x_20 = lean_ctor_get(x_6, 9); -lean_inc(x_20); -x_21 = !lean_is_exclusive(x_9); -if (x_21 == 0) +x_20 = lean_ctor_get_uint8(x_5, sizeof(void*)*11); +x_21 = lean_ctor_get_uint8(x_5, sizeof(void*)*11 + 1); +x_22 = lean_ctor_get_uint8(x_5, sizeof(void*)*11 + 2); +x_23 = lean_ctor_get(x_5, 10); +lean_inc(x_23); +x_24 = !lean_is_exclusive(x_8); +if (x_24 == 0) { -uint8_t x_22; uint8_t x_23; uint8_t 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; uint8_t x_33; -x_22 = lean_ctor_get_uint8(x_6, sizeof(void*)*10); -x_23 = lean_ctor_get_uint8(x_6, sizeof(void*)*10 + 1); -x_24 = lean_ctor_get_uint8(x_6, sizeof(void*)*10 + 2); -x_25 = lean_ctor_get(x_9, 0); -x_26 = lean_ctor_get(x_9, 1); -x_27 = lean_ctor_get(x_9, 2); -x_28 = lean_ctor_get(x_9, 3); -x_29 = lean_ctor_get(x_9, 4); -lean_inc(x_3); -lean_inc(x_10); -x_30 = lean_local_ctx_mk_let_decl(x_26, x_10, x_2, x_3, x_4); -x_31 = l_Lean_mkFVar(x_10); -lean_inc(x_6); -x_32 = l_Lean_Elab_Term_isClass(x_1, x_3, x_6, x_11); -x_33 = !lean_is_exclusive(x_6); +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; uint8_t x_33; +x_25 = lean_ctor_get(x_8, 0); +x_26 = lean_ctor_get(x_8, 1); +x_27 = lean_ctor_get(x_8, 2); +x_28 = lean_ctor_get(x_8, 3); +x_29 = lean_ctor_get(x_8, 4); +lean_inc(x_2); +lean_inc(x_9); +x_30 = lean_local_ctx_mk_let_decl(x_26, x_9, x_1, x_2, x_3); +x_31 = l_Lean_mkFVar(x_9); +lean_inc(x_5); +x_32 = l_Lean_Elab_Term_isClass(x_2, x_5, x_10); +x_33 = !lean_is_exclusive(x_5); if (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; -x_34 = lean_ctor_get(x_6, 9); +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; +x_34 = lean_ctor_get(x_5, 10); lean_dec(x_34); -x_35 = lean_ctor_get(x_6, 8); +x_35 = lean_ctor_get(x_5, 9); lean_dec(x_35); -x_36 = lean_ctor_get(x_6, 7); +x_36 = lean_ctor_get(x_5, 8); lean_dec(x_36); -x_37 = lean_ctor_get(x_6, 6); +x_37 = lean_ctor_get(x_5, 7); lean_dec(x_37); -x_38 = lean_ctor_get(x_6, 5); +x_38 = lean_ctor_get(x_5, 6); lean_dec(x_38); -x_39 = lean_ctor_get(x_6, 4); +x_39 = lean_ctor_get(x_5, 5); lean_dec(x_39); -x_40 = lean_ctor_get(x_6, 3); +x_40 = lean_ctor_get(x_5, 4); lean_dec(x_40); -x_41 = lean_ctor_get(x_6, 2); +x_41 = lean_ctor_get(x_5, 3); lean_dec(x_41); -x_42 = lean_ctor_get(x_6, 1); +x_42 = lean_ctor_get(x_5, 2); lean_dec(x_42); -x_43 = lean_ctor_get(x_6, 0); +x_43 = lean_ctor_get(x_5, 1); lean_dec(x_43); +x_44 = lean_ctor_get(x_5, 0); +lean_dec(x_44); if (lean_obj_tag(x_32) == 0) { -lean_object* x_44; -x_44 = lean_ctor_get(x_32, 0); -lean_inc(x_44); -if (lean_obj_tag(x_44) == 0) -{ -lean_object* x_45; lean_object* x_46; -x_45 = lean_ctor_get(x_32, 1); +lean_object* x_45; +x_45 = lean_ctor_get(x_32, 0); lean_inc(x_45); +if (lean_obj_tag(x_45) == 0) +{ +lean_object* x_46; lean_object* x_47; +x_46 = lean_ctor_get(x_32, 1); +lean_inc(x_46); lean_dec(x_32); -lean_ctor_set(x_9, 1, x_30); -x_46 = lean_apply_3(x_5, x_31, x_6, x_45); -return x_46; +lean_ctor_set(x_8, 1, x_30); +x_47 = lean_apply_3(x_4, x_31, x_5, x_46); +return x_47; } else { -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_47 = lean_ctor_get(x_32, 1); -lean_inc(x_47); -lean_dec(x_32); -x_48 = lean_ctor_get(x_44, 0); +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_48 = lean_ctor_get(x_32, 1); lean_inc(x_48); -lean_dec(x_44); +lean_dec(x_32); +x_49 = lean_ctor_get(x_45, 0); +lean_inc(x_49); +lean_dec(x_45); lean_inc(x_31); -x_49 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, x_31); -x_50 = lean_array_push(x_27, x_49); -lean_ctor_set(x_9, 2, x_50); -lean_ctor_set(x_9, 1, x_30); -x_51 = lean_apply_3(x_5, x_31, x_6, x_47); -return x_51; +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_31); +x_51 = lean_array_push(x_27, x_50); +lean_ctor_set(x_8, 2, x_51); +lean_ctor_set(x_8, 1, x_30); +x_52 = lean_apply_3(x_4, x_31, x_5, x_48); +return x_52; } } else { -uint8_t x_52; -lean_free_object(x_6); +uint8_t x_53; +lean_free_object(x_5); lean_dec(x_31); lean_dec(x_30); -lean_free_object(x_9); +lean_free_object(x_8); lean_dec(x_29); lean_dec(x_28); lean_dec(x_27); lean_dec(x_25); -lean_dec(x_20); +lean_dec(x_23); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -13512,104 +13670,107 @@ lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); -lean_dec(x_5); -x_52 = !lean_is_exclusive(x_32); -if (x_52 == 0) +lean_dec(x_11); +lean_dec(x_4); +x_53 = !lean_is_exclusive(x_32); +if (x_53 == 0) { return x_32; } else { -lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_32, 0); -x_54 = lean_ctor_get(x_32, 1); +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_32, 0); +x_55 = lean_ctor_get(x_32, 1); +lean_inc(x_55); lean_inc(x_54); -lean_inc(x_53); lean_dec(x_32); -x_55 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_55, 0, x_53); -lean_ctor_set(x_55, 1, x_54); -return x_55; +x_56 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_56, 0, x_54); +lean_ctor_set(x_56, 1, x_55); +return x_56; } } } else { -lean_dec(x_6); +lean_dec(x_5); if (lean_obj_tag(x_32) == 0) { -lean_object* x_56; -x_56 = lean_ctor_get(x_32, 0); -lean_inc(x_56); -if (lean_obj_tag(x_56) == 0) -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_32, 1); +lean_object* x_57; +x_57 = lean_ctor_get(x_32, 0); lean_inc(x_57); +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_32, 1); +lean_inc(x_58); lean_dec(x_32); -lean_ctor_set(x_9, 1, x_30); -x_58 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_58, 0, x_9); -lean_ctor_set(x_58, 1, x_12); -lean_ctor_set(x_58, 2, x_13); -lean_ctor_set(x_58, 3, x_14); -lean_ctor_set(x_58, 4, x_15); -lean_ctor_set(x_58, 5, x_16); -lean_ctor_set(x_58, 6, x_17); -lean_ctor_set(x_58, 7, x_18); -lean_ctor_set(x_58, 8, x_19); -lean_ctor_set(x_58, 9, x_20); -lean_ctor_set_uint8(x_58, sizeof(void*)*10, x_22); -lean_ctor_set_uint8(x_58, sizeof(void*)*10 + 1, x_23); -lean_ctor_set_uint8(x_58, sizeof(void*)*10 + 2, x_24); -x_59 = lean_apply_3(x_5, x_31, x_58, x_57); -return x_59; +lean_ctor_set(x_8, 1, x_30); +x_59 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_59, 0, x_8); +lean_ctor_set(x_59, 1, x_11); +lean_ctor_set(x_59, 2, x_12); +lean_ctor_set(x_59, 3, x_13); +lean_ctor_set(x_59, 4, x_14); +lean_ctor_set(x_59, 5, x_15); +lean_ctor_set(x_59, 6, x_16); +lean_ctor_set(x_59, 7, x_17); +lean_ctor_set(x_59, 8, x_18); +lean_ctor_set(x_59, 9, x_19); +lean_ctor_set(x_59, 10, x_23); +lean_ctor_set_uint8(x_59, sizeof(void*)*11, x_20); +lean_ctor_set_uint8(x_59, sizeof(void*)*11 + 1, x_21); +lean_ctor_set_uint8(x_59, sizeof(void*)*11 + 2, x_22); +x_60 = lean_apply_3(x_4, x_31, x_59, x_58); +return x_60; } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_60 = lean_ctor_get(x_32, 1); -lean_inc(x_60); -lean_dec(x_32); -x_61 = lean_ctor_get(x_56, 0); +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_61 = lean_ctor_get(x_32, 1); lean_inc(x_61); -lean_dec(x_56); +lean_dec(x_32); +x_62 = lean_ctor_get(x_57, 0); +lean_inc(x_62); +lean_dec(x_57); lean_inc(x_31); -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_61); -lean_ctor_set(x_62, 1, x_31); -x_63 = lean_array_push(x_27, x_62); -lean_ctor_set(x_9, 2, x_63); -lean_ctor_set(x_9, 1, x_30); -x_64 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_64, 0, x_9); -lean_ctor_set(x_64, 1, x_12); -lean_ctor_set(x_64, 2, x_13); -lean_ctor_set(x_64, 3, x_14); -lean_ctor_set(x_64, 4, x_15); -lean_ctor_set(x_64, 5, x_16); -lean_ctor_set(x_64, 6, x_17); -lean_ctor_set(x_64, 7, x_18); -lean_ctor_set(x_64, 8, x_19); -lean_ctor_set(x_64, 9, x_20); -lean_ctor_set_uint8(x_64, sizeof(void*)*10, x_22); -lean_ctor_set_uint8(x_64, sizeof(void*)*10 + 1, x_23); -lean_ctor_set_uint8(x_64, sizeof(void*)*10 + 2, x_24); -x_65 = lean_apply_3(x_5, x_31, x_64, x_60); -return x_65; +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_31); +x_64 = lean_array_push(x_27, x_63); +lean_ctor_set(x_8, 2, x_64); +lean_ctor_set(x_8, 1, x_30); +x_65 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_65, 0, x_8); +lean_ctor_set(x_65, 1, x_11); +lean_ctor_set(x_65, 2, x_12); +lean_ctor_set(x_65, 3, x_13); +lean_ctor_set(x_65, 4, x_14); +lean_ctor_set(x_65, 5, x_15); +lean_ctor_set(x_65, 6, x_16); +lean_ctor_set(x_65, 7, x_17); +lean_ctor_set(x_65, 8, x_18); +lean_ctor_set(x_65, 9, x_19); +lean_ctor_set(x_65, 10, x_23); +lean_ctor_set_uint8(x_65, sizeof(void*)*11, x_20); +lean_ctor_set_uint8(x_65, sizeof(void*)*11 + 1, x_21); +lean_ctor_set_uint8(x_65, sizeof(void*)*11 + 2, x_22); +x_66 = lean_apply_3(x_4, x_31, x_65, x_61); +return x_66; } } else { -lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_dec(x_31); lean_dec(x_30); -lean_free_object(x_9); +lean_free_object(x_8); lean_dec(x_29); lean_dec(x_28); lean_dec(x_27); lean_dec(x_25); -lean_dec(x_20); +lean_dec(x_23); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -13618,160 +13779,161 @@ lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); -lean_dec(x_5); -x_66 = lean_ctor_get(x_32, 0); -lean_inc(x_66); -x_67 = lean_ctor_get(x_32, 1); +lean_dec(x_11); +lean_dec(x_4); +x_67 = lean_ctor_get(x_32, 0); lean_inc(x_67); +x_68 = lean_ctor_get(x_32, 1); +lean_inc(x_68); if (lean_is_exclusive(x_32)) { lean_ctor_release(x_32, 0); lean_ctor_release(x_32, 1); - x_68 = x_32; + x_69 = x_32; } else { lean_dec_ref(x_32); - x_68 = lean_box(0); + x_69 = lean_box(0); } -if (lean_is_scalar(x_68)) { - x_69 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_69)) { + x_70 = lean_alloc_ctor(1, 2, 0); } else { - x_69 = x_68; + x_70 = x_69; } -lean_ctor_set(x_69, 0, x_66); -lean_ctor_set(x_69, 1, x_67); -return x_69; +lean_ctor_set(x_70, 0, x_67); +lean_ctor_set(x_70, 1, x_68); +return x_70; } } } else { -uint8_t x_70; uint8_t x_71; uint8_t x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_70 = lean_ctor_get_uint8(x_6, sizeof(void*)*10); -x_71 = lean_ctor_get_uint8(x_6, sizeof(void*)*10 + 1); -x_72 = lean_ctor_get_uint8(x_6, sizeof(void*)*10 + 2); -x_73 = lean_ctor_get(x_9, 0); -x_74 = lean_ctor_get(x_9, 1); -x_75 = lean_ctor_get(x_9, 2); -x_76 = lean_ctor_get(x_9, 3); -x_77 = lean_ctor_get(x_9, 4); -lean_inc(x_77); -lean_inc(x_76); +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_71 = lean_ctor_get(x_8, 0); +x_72 = lean_ctor_get(x_8, 1); +x_73 = lean_ctor_get(x_8, 2); +x_74 = lean_ctor_get(x_8, 3); +x_75 = lean_ctor_get(x_8, 4); lean_inc(x_75); lean_inc(x_74); lean_inc(x_73); -lean_dec(x_9); -lean_inc(x_3); -lean_inc(x_10); -x_78 = lean_local_ctx_mk_let_decl(x_74, x_10, x_2, x_3, x_4); -x_79 = l_Lean_mkFVar(x_10); -lean_inc(x_6); -x_80 = l_Lean_Elab_Term_isClass(x_1, x_3, x_6, x_11); -if (lean_is_exclusive(x_6)) { - lean_ctor_release(x_6, 0); - lean_ctor_release(x_6, 1); - lean_ctor_release(x_6, 2); - lean_ctor_release(x_6, 3); - lean_ctor_release(x_6, 4); - lean_ctor_release(x_6, 5); - lean_ctor_release(x_6, 6); - lean_ctor_release(x_6, 7); - lean_ctor_release(x_6, 8); - lean_ctor_release(x_6, 9); - x_81 = x_6; +lean_inc(x_72); +lean_inc(x_71); +lean_dec(x_8); +lean_inc(x_2); +lean_inc(x_9); +x_76 = lean_local_ctx_mk_let_decl(x_72, x_9, x_1, x_2, x_3); +x_77 = l_Lean_mkFVar(x_9); +lean_inc(x_5); +x_78 = l_Lean_Elab_Term_isClass(x_2, x_5, x_10); +if (lean_is_exclusive(x_5)) { + lean_ctor_release(x_5, 0); + lean_ctor_release(x_5, 1); + lean_ctor_release(x_5, 2); + lean_ctor_release(x_5, 3); + lean_ctor_release(x_5, 4); + lean_ctor_release(x_5, 5); + lean_ctor_release(x_5, 6); + lean_ctor_release(x_5, 7); + lean_ctor_release(x_5, 8); + lean_ctor_release(x_5, 9); + lean_ctor_release(x_5, 10); + x_79 = x_5; } else { - lean_dec_ref(x_6); - x_81 = lean_box(0); + lean_dec_ref(x_5); + x_79 = lean_box(0); } +if (lean_obj_tag(x_78) == 0) +{ +lean_object* x_80; +x_80 = lean_ctor_get(x_78, 0); +lean_inc(x_80); if (lean_obj_tag(x_80) == 0) { -lean_object* x_82; -x_82 = lean_ctor_get(x_80, 0); -lean_inc(x_82); -if (lean_obj_tag(x_82) == 0) -{ -lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_83 = lean_ctor_get(x_80, 1); -lean_inc(x_83); -lean_dec(x_80); -x_84 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_84, 0, x_73); -lean_ctor_set(x_84, 1, x_78); -lean_ctor_set(x_84, 2, x_75); -lean_ctor_set(x_84, 3, x_76); -lean_ctor_set(x_84, 4, x_77); -if (lean_is_scalar(x_81)) { - x_85 = lean_alloc_ctor(0, 10, 3); -} else { - x_85 = x_81; -} -lean_ctor_set(x_85, 0, x_84); -lean_ctor_set(x_85, 1, x_12); -lean_ctor_set(x_85, 2, x_13); -lean_ctor_set(x_85, 3, x_14); -lean_ctor_set(x_85, 4, x_15); -lean_ctor_set(x_85, 5, x_16); -lean_ctor_set(x_85, 6, x_17); -lean_ctor_set(x_85, 7, x_18); -lean_ctor_set(x_85, 8, x_19); -lean_ctor_set(x_85, 9, x_20); -lean_ctor_set_uint8(x_85, sizeof(void*)*10, x_70); -lean_ctor_set_uint8(x_85, sizeof(void*)*10 + 1, x_71); -lean_ctor_set_uint8(x_85, sizeof(void*)*10 + 2, x_72); -x_86 = lean_apply_3(x_5, x_79, x_85, x_83); -return x_86; -} -else -{ -lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_87 = lean_ctor_get(x_80, 1); -lean_inc(x_87); -lean_dec(x_80); -x_88 = lean_ctor_get(x_82, 0); -lean_inc(x_88); -lean_dec(x_82); -lean_inc(x_79); -x_89 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_89, 0, x_88); -lean_ctor_set(x_89, 1, x_79); -x_90 = lean_array_push(x_75, x_89); -x_91 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_91, 0, x_73); -lean_ctor_set(x_91, 1, x_78); -lean_ctor_set(x_91, 2, x_90); -lean_ctor_set(x_91, 3, x_76); -lean_ctor_set(x_91, 4, x_77); -if (lean_is_scalar(x_81)) { - x_92 = lean_alloc_ctor(0, 10, 3); -} else { - x_92 = x_81; -} -lean_ctor_set(x_92, 0, x_91); -lean_ctor_set(x_92, 1, x_12); -lean_ctor_set(x_92, 2, x_13); -lean_ctor_set(x_92, 3, x_14); -lean_ctor_set(x_92, 4, x_15); -lean_ctor_set(x_92, 5, x_16); -lean_ctor_set(x_92, 6, x_17); -lean_ctor_set(x_92, 7, x_18); -lean_ctor_set(x_92, 8, x_19); -lean_ctor_set(x_92, 9, x_20); -lean_ctor_set_uint8(x_92, sizeof(void*)*10, x_70); -lean_ctor_set_uint8(x_92, sizeof(void*)*10 + 1, x_71); -lean_ctor_set_uint8(x_92, sizeof(void*)*10 + 2, x_72); -x_93 = lean_apply_3(x_5, x_79, x_92, x_87); -return x_93; -} -} -else -{ -lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; -lean_dec(x_81); -lean_dec(x_79); +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_81 = lean_ctor_get(x_78, 1); +lean_inc(x_81); lean_dec(x_78); +x_82 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_82, 0, x_71); +lean_ctor_set(x_82, 1, x_76); +lean_ctor_set(x_82, 2, x_73); +lean_ctor_set(x_82, 3, x_74); +lean_ctor_set(x_82, 4, x_75); +if (lean_is_scalar(x_79)) { + x_83 = lean_alloc_ctor(0, 11, 3); +} else { + x_83 = x_79; +} +lean_ctor_set(x_83, 0, x_82); +lean_ctor_set(x_83, 1, x_11); +lean_ctor_set(x_83, 2, x_12); +lean_ctor_set(x_83, 3, x_13); +lean_ctor_set(x_83, 4, x_14); +lean_ctor_set(x_83, 5, x_15); +lean_ctor_set(x_83, 6, x_16); +lean_ctor_set(x_83, 7, x_17); +lean_ctor_set(x_83, 8, x_18); +lean_ctor_set(x_83, 9, x_19); +lean_ctor_set(x_83, 10, x_23); +lean_ctor_set_uint8(x_83, sizeof(void*)*11, x_20); +lean_ctor_set_uint8(x_83, sizeof(void*)*11 + 1, x_21); +lean_ctor_set_uint8(x_83, sizeof(void*)*11 + 2, x_22); +x_84 = lean_apply_3(x_4, x_77, x_83, x_81); +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; lean_object* x_91; +x_85 = lean_ctor_get(x_78, 1); +lean_inc(x_85); +lean_dec(x_78); +x_86 = lean_ctor_get(x_80, 0); +lean_inc(x_86); +lean_dec(x_80); +lean_inc(x_77); +x_87 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_87, 0, x_86); +lean_ctor_set(x_87, 1, x_77); +x_88 = lean_array_push(x_73, x_87); +x_89 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_89, 0, x_71); +lean_ctor_set(x_89, 1, x_76); +lean_ctor_set(x_89, 2, x_88); +lean_ctor_set(x_89, 3, x_74); +lean_ctor_set(x_89, 4, x_75); +if (lean_is_scalar(x_79)) { + x_90 = lean_alloc_ctor(0, 11, 3); +} else { + x_90 = x_79; +} +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_90, 1, x_11); +lean_ctor_set(x_90, 2, x_12); +lean_ctor_set(x_90, 3, x_13); +lean_ctor_set(x_90, 4, x_14); +lean_ctor_set(x_90, 5, x_15); +lean_ctor_set(x_90, 6, x_16); +lean_ctor_set(x_90, 7, x_17); +lean_ctor_set(x_90, 8, x_18); +lean_ctor_set(x_90, 9, x_19); +lean_ctor_set(x_90, 10, x_23); +lean_ctor_set_uint8(x_90, sizeof(void*)*11, x_20); +lean_ctor_set_uint8(x_90, sizeof(void*)*11 + 1, x_21); +lean_ctor_set_uint8(x_90, sizeof(void*)*11 + 2, x_22); +x_91 = lean_apply_3(x_4, x_77, x_90, x_85); +return x_91; +} +} +else +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +lean_dec(x_79); lean_dec(x_77); lean_dec(x_76); lean_dec(x_75); +lean_dec(x_74); lean_dec(x_73); -lean_dec(x_20); +lean_dec(x_71); +lean_dec(x_23); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -13780,27 +13942,28 @@ lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); -lean_dec(x_5); -x_94 = lean_ctor_get(x_80, 0); -lean_inc(x_94); -x_95 = lean_ctor_get(x_80, 1); -lean_inc(x_95); -if (lean_is_exclusive(x_80)) { - lean_ctor_release(x_80, 0); - lean_ctor_release(x_80, 1); - x_96 = x_80; +lean_dec(x_11); +lean_dec(x_4); +x_92 = lean_ctor_get(x_78, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_78, 1); +lean_inc(x_93); +if (lean_is_exclusive(x_78)) { + lean_ctor_release(x_78, 0); + lean_ctor_release(x_78, 1); + x_94 = x_78; } else { - lean_dec_ref(x_80); - x_96 = lean_box(0); + lean_dec_ref(x_78); + x_94 = lean_box(0); } -if (lean_is_scalar(x_96)) { - x_97 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_94)) { + x_95 = lean_alloc_ctor(1, 2, 0); } else { - x_97 = x_96; + x_95 = x_94; } -lean_ctor_set(x_97, 0, x_94); -lean_ctor_set(x_97, 1, x_95); -return x_97; +lean_ctor_set(x_95, 0, x_92); +lean_ctor_set(x_95, 1, x_93); +return x_95; } } } @@ -13809,19 +13972,10 @@ lean_object* l_Lean_Elab_Term_withLetDecl(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withLetDecl___rarg___boxed), 7, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withLetDecl___rarg), 6, 0); return x_2; } } -lean_object* l_Lean_Elab_Term_withLetDecl___rarg___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_Lean_Elab_Term_withLetDecl___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_1); -return x_8; -} -} lean_object* _init_l_Lean_Elab_Term_throwTypeMismatchError___rarg___closed__1() { _start: { @@ -13850,166 +14004,166 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Lean_Elab_Term_throwTypeMismatchError___rarg(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_Lean_Elab_Term_throwTypeMismatchError___rarg(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_9; -if (lean_obj_tag(x_6) == 0) -{ +lean_object* x_8; if (lean_obj_tag(x_5) == 0) { -lean_object* x_30; -x_30 = l_Lean_MessageData_Inhabited___closed__1; -x_9 = x_30; -goto block_29; +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_29; +x_29 = l_Lean_MessageData_Inhabited___closed__1; +x_8 = x_29; +goto block_28; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -lean_dec(x_3); +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_dec(x_2); -x_31 = lean_ctor_get(x_5, 0); -lean_inc(x_31); -lean_dec(x_5); -x_32 = l_Lean_Elab_Term_getEnv___rarg(x_8); -x_33 = lean_ctor_get(x_32, 0); +lean_dec(x_1); +x_30 = lean_ctor_get(x_4, 0); +lean_inc(x_30); +lean_dec(x_4); +x_31 = l_Lean_Elab_Term_getEnv___rarg(x_7); +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_31, 1); lean_inc(x_33); -x_34 = lean_ctor_get(x_32, 1); -lean_inc(x_34); -lean_dec(x_32); -x_35 = l_Lean_Elab_Term_getMCtx___rarg(x_34); -x_36 = lean_ctor_get(x_35, 0); +lean_dec(x_31); +x_34 = l_Lean_Elab_Term_getMCtx___rarg(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); -x_37 = lean_ctor_get(x_35, 1); -lean_inc(x_37); -lean_dec(x_35); -x_38 = l_Lean_Elab_Term_getLCtx(x_7, x_37); -x_39 = lean_ctor_get(x_38, 0); +lean_dec(x_34); +x_37 = l_Lean_Elab_Term_getLCtx(x_6, x_36); +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); lean_inc(x_39); -x_40 = lean_ctor_get(x_38, 1); -lean_inc(x_40); -lean_dec(x_38); -x_41 = l_Lean_Elab_Term_getOptions(x_7, x_40); -x_42 = lean_ctor_get(x_41, 0); +lean_dec(x_37); +x_40 = l_Lean_Elab_Term_getOptions(x_6, x_39); +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_40, 1); lean_inc(x_42); -x_43 = lean_ctor_get(x_41, 1); -lean_inc(x_43); -lean_dec(x_41); -x_44 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_44, 0, x_33); -lean_ctor_set(x_44, 1, x_36); -lean_ctor_set(x_44, 2, x_39); -lean_ctor_set(x_44, 3, x_42); -x_45 = l_Lean_Meta_Exception_mkAppTypeMismatchMessage(x_31, x_4, x_44); -x_46 = l_Lean_MessageData_Inhabited___closed__1; -x_47 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -x_48 = l_Lean_Elab_Term_throwError___rarg(x_1, x_47, x_7, x_43); -return x_48; +lean_dec(x_40); +x_43 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_43, 0, x_32); +lean_ctor_set(x_43, 1, x_35); +lean_ctor_set(x_43, 2, x_38); +lean_ctor_set(x_43, 3, x_41); +x_44 = l_Lean_Meta_Exception_mkAppTypeMismatchMessage(x_30, x_3, x_43); +x_45 = l_Lean_MessageData_Inhabited___closed__1; +x_46 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_46, 0, x_44); +lean_ctor_set(x_46, 1, x_45); +x_47 = l_Lean_Elab_Term_throwError___rarg(x_46, x_6, x_42); +return x_47; } } else { -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_6, 0); -x_50 = l_Lean_MessageData_ofList___closed__3; -lean_inc(x_49); -x_51 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_51, 0, x_50); -lean_ctor_set(x_51, 1, x_49); -if (lean_obj_tag(x_5) == 0) +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_5, 0); +x_49 = l_Lean_MessageData_ofList___closed__3; +lean_inc(x_48); +x_50 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_48); +if (lean_obj_tag(x_4) == 0) { -x_9 = x_51; -goto block_29; +x_8 = x_50; +goto block_28; } else { -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; -lean_dec(x_3); +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_dec(x_2); -x_52 = lean_ctor_get(x_5, 0); -lean_inc(x_52); -lean_dec(x_5); -x_53 = l_Lean_Elab_Term_getEnv___rarg(x_8); -x_54 = lean_ctor_get(x_53, 0); +lean_dec(x_1); +x_51 = lean_ctor_get(x_4, 0); +lean_inc(x_51); +lean_dec(x_4); +x_52 = l_Lean_Elab_Term_getEnv___rarg(x_7); +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_52, 1); lean_inc(x_54); -x_55 = lean_ctor_get(x_53, 1); -lean_inc(x_55); -lean_dec(x_53); -x_56 = l_Lean_Elab_Term_getMCtx___rarg(x_55); -x_57 = lean_ctor_get(x_56, 0); +lean_dec(x_52); +x_55 = l_Lean_Elab_Term_getMCtx___rarg(x_54); +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_55, 1); lean_inc(x_57); -x_58 = lean_ctor_get(x_56, 1); -lean_inc(x_58); -lean_dec(x_56); -x_59 = l_Lean_Elab_Term_getLCtx(x_7, x_58); -x_60 = lean_ctor_get(x_59, 0); +lean_dec(x_55); +x_58 = l_Lean_Elab_Term_getLCtx(x_6, x_57); +x_59 = lean_ctor_get(x_58, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_58, 1); lean_inc(x_60); -x_61 = lean_ctor_get(x_59, 1); -lean_inc(x_61); -lean_dec(x_59); -x_62 = l_Lean_Elab_Term_getOptions(x_7, x_61); -x_63 = lean_ctor_get(x_62, 0); +lean_dec(x_58); +x_61 = l_Lean_Elab_Term_getOptions(x_6, x_60); +x_62 = lean_ctor_get(x_61, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_61, 1); lean_inc(x_63); -x_64 = lean_ctor_get(x_62, 1); -lean_inc(x_64); -lean_dec(x_62); -x_65 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_65, 0, x_54); -lean_ctor_set(x_65, 1, x_57); -lean_ctor_set(x_65, 2, x_60); -lean_ctor_set(x_65, 3, x_63); -x_66 = l_Lean_Meta_Exception_mkAppTypeMismatchMessage(x_52, x_4, x_65); -x_67 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_51); -x_68 = l_Lean_Elab_Term_throwError___rarg(x_1, x_67, x_7, x_64); -return x_68; +lean_dec(x_61); +x_64 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_64, 0, x_53); +lean_ctor_set(x_64, 1, x_56); +lean_ctor_set(x_64, 2, x_59); +lean_ctor_set(x_64, 3, x_62); +x_65 = l_Lean_Meta_Exception_mkAppTypeMismatchMessage(x_51, x_3, x_64); +x_66 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_50); +x_67 = l_Lean_Elab_Term_throwError___rarg(x_66, x_6, x_63); +return x_67; } } -block_29: +block_28: { -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; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_10 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_10, 0, x_4); -x_11 = l_Lean_indentExpr(x_10); -x_12 = l_Lean_Elab_Term_throwTypeMismatchError___rarg___closed__3; -x_13 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_11); -x_14 = l_Lean_MessageData_ofList___closed__3; -x_15 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_15, 0, x_13); -lean_ctor_set(x_15, 1, x_14); -x_16 = l_Lean_KernelException_toMessageData___closed__12; -x_17 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_17, 0, x_15); -lean_ctor_set(x_17, 1, x_16); -x_18 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_18, 0, x_3); -x_19 = l_Lean_indentExpr(x_18); +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; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_9 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_9, 0, x_3); +x_10 = l_Lean_indentExpr(x_9); +x_11 = l_Lean_Elab_Term_throwTypeMismatchError___rarg___closed__3; +x_12 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_10); +x_13 = l_Lean_MessageData_ofList___closed__3; +x_14 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_13); +x_15 = l_Lean_KernelException_toMessageData___closed__12; +x_16 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_16, 1, x_15); +x_17 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_17, 0, x_2); +x_18 = l_Lean_indentExpr(x_17); +x_19 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_19, 0, x_16); +lean_ctor_set(x_19, 1, x_18); x_20 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_20, 0, x_17); -lean_ctor_set(x_20, 1, x_19); -x_21 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_14); -x_22 = l_Lean_KernelException_toMessageData___closed__15; -x_23 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_23, 0, x_21); -lean_ctor_set(x_23, 1, x_22); -x_24 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_24, 0, x_2); -x_25 = l_Lean_indentExpr(x_24); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_13); +x_21 = l_Lean_KernelException_toMessageData___closed__15; +x_22 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +x_23 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_23, 0, x_1); +x_24 = l_Lean_indentExpr(x_23); +x_25 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_25, 0, x_22); +lean_ctor_set(x_25, 1, x_24); x_26 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_26, 0, x_23); -lean_ctor_set(x_26, 1, x_25); -x_27 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_9); -x_28 = l_Lean_Elab_Term_throwError___rarg(x_1, x_27, x_7, x_8); -return x_28; +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_8); +x_27 = l_Lean_Elab_Term_throwError___rarg(x_26, x_6, x_7); +return x_27; } } } @@ -14017,18 +14171,17 @@ lean_object* l_Lean_Elab_Term_throwTypeMismatchError(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_throwTypeMismatchError___rarg___boxed), 8, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_throwTypeMismatchError___rarg___boxed), 7, 0); return x_2; } } -lean_object* l_Lean_Elab_Term_throwTypeMismatchError___rarg___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_Lean_Elab_Term_throwTypeMismatchError___rarg___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_9; -x_9 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_6); -lean_dec(x_1); -return x_9; +lean_object* x_8; +x_8 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_5); +return x_8; } } lean_object* l_Lean_Elab_Term_withoutMacroStackAtErr___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { @@ -14040,13 +14193,13 @@ if (x_4 == 0) { uint8_t x_5; lean_object* x_6; x_5 = 0; -lean_ctor_set_uint8(x_2, sizeof(void*)*10 + 2, x_5); +lean_ctor_set_uint8(x_2, sizeof(void*)*11 + 2, x_5); x_6 = lean_apply_2(x_1, x_2, x_3); return x_6; } else { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; uint8_t x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; uint8_t x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; x_7 = lean_ctor_get(x_2, 0); x_8 = lean_ctor_get(x_2, 1); x_9 = lean_ctor_get(x_2, 2); @@ -14057,8 +14210,10 @@ x_13 = lean_ctor_get(x_2, 6); x_14 = lean_ctor_get(x_2, 7); x_15 = lean_ctor_get(x_2, 8); x_16 = lean_ctor_get(x_2, 9); -x_17 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_18 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); +x_17 = lean_ctor_get_uint8(x_2, sizeof(void*)*11); +x_18 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 1); +x_19 = lean_ctor_get(x_2, 10); +lean_inc(x_19); lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); @@ -14070,23 +14225,24 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_dec(x_2); -x_19 = 0; -x_20 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_20, 0, x_7); -lean_ctor_set(x_20, 1, x_8); -lean_ctor_set(x_20, 2, x_9); -lean_ctor_set(x_20, 3, x_10); -lean_ctor_set(x_20, 4, x_11); -lean_ctor_set(x_20, 5, x_12); -lean_ctor_set(x_20, 6, x_13); -lean_ctor_set(x_20, 7, x_14); -lean_ctor_set(x_20, 8, x_15); -lean_ctor_set(x_20, 9, x_16); -lean_ctor_set_uint8(x_20, sizeof(void*)*10, x_17); -lean_ctor_set_uint8(x_20, sizeof(void*)*10 + 1, x_18); -lean_ctor_set_uint8(x_20, sizeof(void*)*10 + 2, x_19); -x_21 = lean_apply_2(x_1, x_20, x_3); -return x_21; +x_20 = 0; +x_21 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_21, 0, x_7); +lean_ctor_set(x_21, 1, x_8); +lean_ctor_set(x_21, 2, x_9); +lean_ctor_set(x_21, 3, x_10); +lean_ctor_set(x_21, 4, x_11); +lean_ctor_set(x_21, 5, x_12); +lean_ctor_set(x_21, 6, x_13); +lean_ctor_set(x_21, 7, x_14); +lean_ctor_set(x_21, 8, x_15); +lean_ctor_set(x_21, 9, x_16); +lean_ctor_set(x_21, 10, x_19); +lean_ctor_set_uint8(x_21, sizeof(void*)*11, x_17); +lean_ctor_set_uint8(x_21, sizeof(void*)*11 + 1, x_18); +lean_ctor_set_uint8(x_21, sizeof(void*)*11 + 2, x_20); +x_22 = lean_apply_2(x_1, x_21, x_3); +return x_22; } } } @@ -14222,299 +14378,290 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_5 = l_Lean_Elab_Term_getMVarDecl(x_2, x_3, x_4); -x_6 = lean_ctor_get(x_5, 0); +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_4 = l_Lean_Elab_Term_getMVarDecl(x_1, x_2, x_3); +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_4, 1); lean_inc(x_6); -x_7 = lean_ctor_get(x_5, 1); +lean_dec(x_4); +x_7 = lean_ctor_get(x_5, 2); lean_inc(x_7); lean_dec(x_5); -x_8 = lean_ctor_get(x_6, 2); -lean_inc(x_8); -lean_dec(x_6); -lean_inc(x_3); -x_9 = l_Lean_Elab_Term_instantiateMVars(x_1, x_8, x_3, x_7); -x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_2); +x_8 = l_Lean_Elab_Term_instantiateMVars(x_7, x_2, x_6); +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_8, 1); lean_inc(x_10); -x_11 = lean_ctor_get(x_9, 1); -lean_inc(x_11); -lean_dec(x_9); -lean_inc(x_3); -lean_inc(x_10); -x_12 = l_Lean_Elab_Term_trySynthInstance(x_1, x_10, x_3, x_11); -if (lean_obj_tag(x_12) == 0) +lean_dec(x_8); +lean_inc(x_2); +lean_inc(x_9); +x_11 = l_Lean_Elab_Term_trySynthInstance(x_9, x_2, x_10); +if (lean_obj_tag(x_11) == 0) { -lean_object* x_13; -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -switch (lean_obj_tag(x_13)) { +lean_object* x_12; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +switch (lean_obj_tag(x_12)) { case 0: { -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_dec(x_2); -x_14 = lean_ctor_get(x_12, 1); -lean_inc(x_14); -lean_dec(x_12); -x_15 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_15, 0, x_10); -x_16 = l_Lean_indentExpr(x_15); -x_17 = l_Lean_Elab_Term_synthesizeInstMVarCore___closed__3; -x_18 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_16); -x_19 = l_Lean_Elab_Term_throwError___rarg(x_1, x_18, x_3, x_14); -return x_19; +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_dec(x_1); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_14, 0, x_9); +x_15 = l_Lean_indentExpr(x_14); +x_16 = l_Lean_Elab_Term_synthesizeInstMVarCore___closed__3; +x_17 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_15); +x_18 = l_Lean_Elab_Term_throwError___rarg(x_17, x_2, x_13); +return x_18; } case 1: { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; -lean_dec(x_10); -x_20 = lean_ctor_get(x_12, 1); +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +lean_dec(x_9); +x_19 = lean_ctor_get(x_11, 1); +lean_inc(x_19); +lean_dec(x_11); +x_20 = lean_ctor_get(x_12, 0); lean_inc(x_20); lean_dec(x_12); -x_21 = lean_ctor_get(x_13, 0); -lean_inc(x_21); -lean_dec(x_13); +lean_inc(x_1); +x_21 = l_Lean_Elab_Term_isExprMVarAssigned(x_1, x_2, x_19); +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +x_23 = lean_unbox(x_22); +lean_dec(x_22); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_24 = lean_ctor_get(x_21, 1); +lean_inc(x_24); +lean_dec(x_21); +x_25 = l_Lean_Elab_Term_assignExprMVar(x_1, x_20, x_2, x_24); +lean_dec(x_2); +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 0) +{ +lean_object* x_27; uint8_t x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_25, 0); +lean_dec(x_27); +x_28 = 1; +x_29 = lean_box(x_28); +lean_ctor_set(x_25, 0, x_29); +return x_25; +} +else +{ +lean_object* x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33; +x_30 = lean_ctor_get(x_25, 1); +lean_inc(x_30); +lean_dec(x_25); +x_31 = 1; +x_32 = lean_box(x_31); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_30); +return x_33; +} +} +else +{ +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_34 = lean_ctor_get(x_21, 1); +lean_inc(x_34); +lean_dec(x_21); +x_35 = l_Lean_mkMVar(x_1); lean_inc(x_2); -x_22 = l_Lean_Elab_Term_isExprMVarAssigned(x_2, x_3, x_20); -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -x_24 = lean_unbox(x_23); -lean_dec(x_23); -if (x_24 == 0) -{ -lean_object* x_25; lean_object* x_26; uint8_t x_27; -x_25 = lean_ctor_get(x_22, 1); -lean_inc(x_25); -lean_dec(x_22); -x_26 = l_Lean_Elab_Term_assignExprMVar(x_2, x_21, x_3, x_25); -lean_dec(x_3); -x_27 = !lean_is_exclusive(x_26); -if (x_27 == 0) -{ -lean_object* x_28; uint8_t x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_26, 0); -lean_dec(x_28); -x_29 = 1; -x_30 = lean_box(x_29); -lean_ctor_set(x_26, 0, x_30); -return x_26; -} -else -{ -lean_object* x_31; uint8_t x_32; lean_object* x_33; lean_object* x_34; -x_31 = lean_ctor_get(x_26, 1); -lean_inc(x_31); -lean_dec(x_26); -x_32 = 1; -x_33 = lean_box(x_32); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_31); -return x_34; -} -} -else -{ -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_35 = lean_ctor_get(x_22, 1); -lean_inc(x_35); -lean_dec(x_22); -x_36 = l_Lean_mkMVar(x_2); -lean_inc(x_3); -x_37 = l_Lean_Elab_Term_instantiateMVars(x_1, x_36, x_3, x_35); -x_38 = lean_ctor_get(x_37, 0); +x_36 = l_Lean_Elab_Term_instantiateMVars(x_35, x_2, x_34); +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_36, 1); lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); -lean_dec(x_37); -lean_inc(x_3); -lean_inc(x_21); -lean_inc(x_38); -x_40 = l_Lean_Elab_Term_isDefEq(x_1, x_38, x_21, x_3, x_39); -if (lean_obj_tag(x_40) == 0) +lean_dec(x_36); +lean_inc(x_2); +lean_inc(x_20); +lean_inc(x_37); +x_39 = l_Lean_Elab_Term_isDefEq(x_37, x_20, x_2, x_38); +if (lean_obj_tag(x_39) == 0) { -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; 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; lean_object* x_54; lean_object* x_55; uint8_t x_56; -x_43 = lean_ctor_get(x_40, 1); -lean_inc(x_43); +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_dec(x_40); -x_44 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_44, 0, x_21); -x_45 = l_Lean_indentExpr(x_44); -x_46 = l_Lean_Elab_Term_synthesizeInstMVarCore___closed__10; -x_47 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -x_48 = l_Lean_MessageData_ofList___closed__3; -x_49 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -x_50 = l_Lean_Elab_Term_synthesizeInstMVarCore___closed__13; -x_51 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_51, 0, x_49); -lean_ctor_set(x_51, 1, x_50); -x_52 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_52, 0, x_38); -x_53 = l_Lean_indentExpr(x_52); -x_54 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_54, 0, x_51); -lean_ctor_set(x_54, 1, x_53); -x_55 = l_Lean_Elab_Term_throwError___rarg(x_1, x_54, x_3, x_43); -x_56 = !lean_is_exclusive(x_55); -if (x_56 == 0) +if (x_41 == 0) { -return x_55; +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; +x_42 = lean_ctor_get(x_39, 1); +lean_inc(x_42); +lean_dec(x_39); +x_43 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_43, 0, x_20); +x_44 = l_Lean_indentExpr(x_43); +x_45 = l_Lean_Elab_Term_synthesizeInstMVarCore___closed__10; +x_46 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_44); +x_47 = l_Lean_MessageData_ofList___closed__3; +x_48 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +x_49 = l_Lean_Elab_Term_synthesizeInstMVarCore___closed__13; +x_50 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +x_51 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_51, 0, x_37); +x_52 = l_Lean_indentExpr(x_51); +x_53 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_53, 0, x_50); +lean_ctor_set(x_53, 1, x_52); +x_54 = l_Lean_Elab_Term_throwError___rarg(x_53, x_2, x_42); +x_55 = !lean_is_exclusive(x_54); +if (x_55 == 0) +{ +return x_54; } else { -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_55, 0); -x_58 = lean_ctor_get(x_55, 1); -lean_inc(x_58); +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_54, 0); +x_57 = lean_ctor_get(x_54, 1); lean_inc(x_57); -lean_dec(x_55); -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; +lean_inc(x_56); +lean_dec(x_54); +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_60; -lean_dec(x_38); -lean_dec(x_21); -lean_dec(x_3); -x_60 = !lean_is_exclusive(x_40); -if (x_60 == 0) +uint8_t x_59; +lean_dec(x_37); +lean_dec(x_20); +lean_dec(x_2); +x_59 = !lean_is_exclusive(x_39); +if (x_59 == 0) { -lean_object* x_61; uint8_t x_62; lean_object* x_63; -x_61 = lean_ctor_get(x_40, 0); -lean_dec(x_61); -x_62 = 1; -x_63 = lean_box(x_62); -lean_ctor_set(x_40, 0, x_63); -return x_40; +lean_object* x_60; uint8_t x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_39, 0); +lean_dec(x_60); +x_61 = 1; +x_62 = lean_box(x_61); +lean_ctor_set(x_39, 0, x_62); +return x_39; } else { -lean_object* x_64; uint8_t x_65; lean_object* x_66; lean_object* x_67; -x_64 = lean_ctor_get(x_40, 1); -lean_inc(x_64); -lean_dec(x_40); -x_65 = 1; -x_66 = lean_box(x_65); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_64); -return x_67; +lean_object* x_63; uint8_t x_64; lean_object* x_65; lean_object* x_66; +x_63 = lean_ctor_get(x_39, 1); +lean_inc(x_63); +lean_dec(x_39); +x_64 = 1; +x_65 = lean_box(x_64); +x_66 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_63); +return x_66; } } } else { -uint8_t x_68; -lean_dec(x_38); -lean_dec(x_21); -lean_dec(x_3); -x_68 = !lean_is_exclusive(x_40); -if (x_68 == 0) +uint8_t x_67; +lean_dec(x_37); +lean_dec(x_20); +lean_dec(x_2); +x_67 = !lean_is_exclusive(x_39); +if (x_67 == 0) { -return x_40; +return x_39; } else { -lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_69 = lean_ctor_get(x_40, 0); -x_70 = lean_ctor_get(x_40, 1); -lean_inc(x_70); +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_39, 0); +x_69 = lean_ctor_get(x_39, 1); lean_inc(x_69); -lean_dec(x_40); -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_inc(x_68); +lean_dec(x_39); +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; } } } } default: { -uint8_t x_72; -lean_dec(x_10); -lean_dec(x_3); +uint8_t x_71; +lean_dec(x_9); lean_dec(x_2); -x_72 = !lean_is_exclusive(x_12); -if (x_72 == 0) -{ -lean_object* x_73; uint8_t x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_12, 0); -lean_dec(x_73); -x_74 = 0; -x_75 = lean_box(x_74); -lean_ctor_set(x_12, 0, x_75); -return x_12; -} -else -{ -lean_object* x_76; uint8_t x_77; lean_object* x_78; lean_object* x_79; -x_76 = lean_ctor_get(x_12, 1); -lean_inc(x_76); -lean_dec(x_12); -x_77 = 0; -x_78 = lean_box(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_76); -return x_79; -} -} -} -} -else -{ -uint8_t x_80; -lean_dec(x_10); -lean_dec(x_3); -lean_dec(x_2); -x_80 = !lean_is_exclusive(x_12); -if (x_80 == 0) -{ -return x_12; -} -else -{ -lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_81 = lean_ctor_get(x_12, 0); -x_82 = lean_ctor_get(x_12, 1); -lean_inc(x_82); -lean_inc(x_81); -lean_dec(x_12); -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; -} -} -} -} -lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_Elab_Term_synthesizeInstMVarCore(x_1, x_2, x_3, x_4); lean_dec(x_1); -return x_5; +x_71 = !lean_is_exclusive(x_11); +if (x_71 == 0) +{ +lean_object* x_72; uint8_t x_73; lean_object* x_74; +x_72 = lean_ctor_get(x_11, 0); +lean_dec(x_72); +x_73 = 0; +x_74 = lean_box(x_73); +lean_ctor_set(x_11, 0, x_74); +return x_11; +} +else +{ +lean_object* x_75; uint8_t x_76; lean_object* x_77; lean_object* x_78; +x_75 = lean_ctor_get(x_11, 1); +lean_inc(x_75); +lean_dec(x_11); +x_76 = 0; +x_77 = lean_box(x_76); +x_78 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_78, 0, x_77); +lean_ctor_set(x_78, 1, x_75); +return x_78; +} +} +} +} +else +{ +uint8_t x_79; +lean_dec(x_9); +lean_dec(x_2); +lean_dec(x_1); +x_79 = !lean_is_exclusive(x_11); +if (x_79 == 0) +{ +return x_11; +} +else +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_ctor_get(x_11, 0); +x_81 = lean_ctor_get(x_11, 1); +lean_inc(x_81); +lean_inc(x_80); +lean_dec(x_11); +x_82 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_82, 0, x_80); +lean_ctor_set(x_82, 1, x_81); +return x_82; +} +} } } lean_object* _init_l_Lean_Elab_Term_tryCoe___closed__1() { @@ -14553,139 +14700,142 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_Lean_Elab_Term_tryCoe(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* l_Lean_Elab_Term_tryCoe(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_8; -lean_inc(x_6); -lean_inc(x_3); +lean_object* x_7; +lean_inc(x_5); lean_inc(x_2); -x_8 = l_Lean_Elab_Term_isDefEq(x_1, x_2, x_3, x_6, x_7); -if (lean_obj_tag(x_8) == 0) +lean_inc(x_1); +x_7 = l_Lean_Elab_Term_isDefEq(x_1, x_2, x_5, x_6); +if (lean_obj_tag(x_7) == 0) { -lean_object* x_9; uint8_t x_10; -x_9 = lean_ctor_get(x_8, 0); -lean_inc(x_9); -x_10 = lean_unbox(x_9); -lean_dec(x_9); -if (x_10 == 0) -{ -lean_object* x_11; lean_object* x_12; -x_11 = lean_ctor_get(x_8, 1); -lean_inc(x_11); +lean_object* x_8; uint8_t x_9; +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +x_9 = lean_unbox(x_8); lean_dec(x_8); -lean_inc(x_6); -lean_inc(x_3); -x_12 = l_Lean_Elab_Term_getLevel(x_1, x_3, x_6, x_11); -if (lean_obj_tag(x_12) == 0) +if (x_9 == 0) { -lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); -lean_inc(x_14); -lean_dec(x_12); -lean_inc(x_6); +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_7, 1); +lean_inc(x_10); +lean_dec(x_7); +lean_inc(x_5); lean_inc(x_2); -x_15 = l_Lean_Elab_Term_getLevel(x_1, x_2, x_6, x_14); -if (lean_obj_tag(x_15) == 0) +x_11 = l_Lean_Elab_Term_getLevel(x_2, x_5, x_10); +if (lean_obj_tag(x_11) == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; uint8_t x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; -x_16 = lean_ctor_get(x_15, 0); +lean_object* x_12; lean_object* x_13; lean_object* x_14; +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); +lean_inc(x_5); +lean_inc(x_1); +x_14 = l_Lean_Elab_Term_getLevel(x_1, x_5, x_13); +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; 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; uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; uint8_t x_54; lean_object* x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); -lean_inc(x_17); -lean_dec(x_15); -x_18 = lean_box(0); +lean_dec(x_14); +x_17 = lean_box(0); +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_15); +lean_ctor_set(x_18, 1, x_17); x_19 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_19, 0, x_16); +lean_ctor_set(x_19, 0, x_12); lean_ctor_set(x_19, 1, x_18); -x_20 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_20, 0, x_13); -lean_ctor_set(x_20, 1, x_19); -x_21 = l_Lean_Elab_Term_tryCoe___closed__2; -lean_inc(x_20); -x_22 = l_Lean_mkConst(x_21, x_20); -x_23 = l___private_Lean_Meta_EqnCompiler_CaseArraySizes_2__introArrayLitAux___main___closed__3; +x_20 = l_Lean_Elab_Term_tryCoe___closed__2; +lean_inc(x_19); +x_21 = l_Lean_mkConst(x_20, x_19); +x_22 = l___private_Lean_Meta_EqnCompiler_CaseArraySizes_2__introArrayLitAux___main___closed__3; +lean_inc(x_2); +x_23 = lean_array_push(x_22, x_2); lean_inc(x_3); x_24 = lean_array_push(x_23, x_3); -lean_inc(x_4); -x_25 = lean_array_push(x_24, x_4); -lean_inc(x_2); -x_26 = lean_array_push(x_25, x_2); -x_27 = lean_unsigned_to_nat(0u); -x_28 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_26, x_26, x_27, x_22); -lean_dec(x_26); -x_29 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_29, 0, x_28); -x_30 = 1; -x_31 = lean_box(0); -lean_inc(x_6); -x_32 = l_Lean_Elab_Term_mkFreshExprMVar(x_1, x_29, x_30, x_31, x_6, x_17); -x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_1); +x_25 = lean_array_push(x_24, x_1); +x_26 = lean_unsigned_to_nat(0u); +x_27 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_25, x_25, x_26, x_21); +lean_dec(x_25); +x_28 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_28, 0, x_27); +x_29 = 1; +x_30 = lean_box(0); +lean_inc(x_5); +x_31 = l_Lean_Elab_Term_mkFreshExprMVar(x_28, x_29, x_30, x_5, x_16); +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_31, 1); lean_inc(x_33); -x_34 = lean_ctor_get(x_32, 1); -lean_inc(x_34); -lean_dec(x_32); -x_35 = l_Lean_Elab_Term_tryCoe___closed__4; -x_36 = l_Lean_mkConst(x_35, x_20); -x_37 = l_Std_PersistentHashMap_mkCollisionNode___rarg___closed__1; +lean_dec(x_31); +x_34 = l_Lean_Elab_Term_tryCoe___closed__4; +x_35 = l_Lean_mkConst(x_34, x_19); +x_36 = l_Std_PersistentHashMap_mkCollisionNode___rarg___closed__1; +lean_inc(x_2); +x_37 = lean_array_push(x_36, x_2); +lean_inc(x_1); +x_38 = lean_array_push(x_37, x_1); lean_inc(x_3); -x_38 = lean_array_push(x_37, x_3); -lean_inc(x_2); -x_39 = lean_array_push(x_38, x_2); -lean_inc(x_4); -x_40 = lean_array_push(x_39, x_4); -lean_inc(x_33); -x_41 = lean_array_push(x_40, x_33); -x_42 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_41, x_41, x_27, x_36); -lean_dec(x_41); -x_43 = l_Lean_Expr_mvarId_x21(x_33); -lean_dec(x_33); -x_44 = lean_ctor_get(x_6, 0); -lean_inc(x_44); -x_45 = lean_ctor_get(x_6, 1); -lean_inc(x_45); -x_46 = lean_ctor_get(x_6, 2); -lean_inc(x_46); -x_47 = lean_ctor_get(x_6, 3); -lean_inc(x_47); -x_48 = lean_ctor_get(x_6, 4); -lean_inc(x_48); -x_49 = lean_ctor_get(x_6, 5); -lean_inc(x_49); -x_50 = lean_ctor_get(x_6, 6); -lean_inc(x_50); -x_51 = lean_ctor_get(x_6, 7); -lean_inc(x_51); -x_52 = lean_ctor_get(x_6, 8); -lean_inc(x_52); -x_53 = lean_ctor_get(x_6, 9); -lean_inc(x_53); -x_54 = lean_ctor_get_uint8(x_6, sizeof(void*)*10); -x_55 = lean_ctor_get_uint8(x_6, sizeof(void*)*10 + 1); -x_56 = 0; -x_57 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_57, 0, x_44); -lean_ctor_set(x_57, 1, x_45); -lean_ctor_set(x_57, 2, x_46); -lean_ctor_set(x_57, 3, x_47); -lean_ctor_set(x_57, 4, x_48); -lean_ctor_set(x_57, 5, x_49); -lean_ctor_set(x_57, 6, x_50); -lean_ctor_set(x_57, 7, x_51); -lean_ctor_set(x_57, 8, x_52); -lean_ctor_set(x_57, 9, x_53); -lean_ctor_set_uint8(x_57, sizeof(void*)*10, x_54); -lean_ctor_set_uint8(x_57, sizeof(void*)*10 + 1, x_55); -lean_ctor_set_uint8(x_57, sizeof(void*)*10 + 2, x_56); -lean_inc(x_57); +x_39 = lean_array_push(x_38, x_3); +lean_inc(x_32); +x_40 = lean_array_push(x_39, x_32); +x_41 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_40, x_40, x_26, x_35); +lean_dec(x_40); +x_42 = l_Lean_Expr_mvarId_x21(x_32); +lean_dec(x_32); +x_43 = lean_ctor_get(x_5, 0); lean_inc(x_43); -x_58 = l_Lean_Elab_Term_synthesizeInstMVarCore(x_1, x_43, x_57, x_34); +x_44 = lean_ctor_get(x_5, 1); +lean_inc(x_44); +x_45 = lean_ctor_get(x_5, 2); +lean_inc(x_45); +x_46 = lean_ctor_get(x_5, 3); +lean_inc(x_46); +x_47 = lean_ctor_get(x_5, 4); +lean_inc(x_47); +x_48 = lean_ctor_get(x_5, 5); +lean_inc(x_48); +x_49 = lean_ctor_get(x_5, 6); +lean_inc(x_49); +x_50 = lean_ctor_get(x_5, 7); +lean_inc(x_50); +x_51 = lean_ctor_get(x_5, 8); +lean_inc(x_51); +x_52 = lean_ctor_get(x_5, 9); +lean_inc(x_52); +x_53 = lean_ctor_get_uint8(x_5, sizeof(void*)*11); +x_54 = lean_ctor_get_uint8(x_5, sizeof(void*)*11 + 1); +x_55 = lean_ctor_get(x_5, 10); +lean_inc(x_55); +x_56 = 0; +x_57 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_57, 0, x_43); +lean_ctor_set(x_57, 1, x_44); +lean_ctor_set(x_57, 2, x_45); +lean_ctor_set(x_57, 3, x_46); +lean_ctor_set(x_57, 4, x_47); +lean_ctor_set(x_57, 5, x_48); +lean_ctor_set(x_57, 6, x_49); +lean_ctor_set(x_57, 7, x_50); +lean_ctor_set(x_57, 8, x_51); +lean_ctor_set(x_57, 9, x_52); +lean_ctor_set(x_57, 10, x_55); +lean_ctor_set_uint8(x_57, sizeof(void*)*11, x_53); +lean_ctor_set_uint8(x_57, sizeof(void*)*11 + 1, x_54); +lean_ctor_set_uint8(x_57, sizeof(void*)*11 + 2, x_56); +lean_inc(x_57); +lean_inc(x_42); +x_58 = l_Lean_Elab_Term_synthesizeInstMVarCore(x_42, x_57, x_33); if (lean_obj_tag(x_58) == 0) { lean_object* x_59; uint8_t x_60; -lean_dec(x_6); +lean_dec(x_5); x_59 = lean_ctor_get(x_58, 0); lean_inc(x_59); x_60 = lean_unbox(x_59); @@ -14697,11 +14847,11 @@ x_61 = lean_ctor_get(x_58, 1); lean_inc(x_61); lean_dec(x_58); x_62 = lean_alloc_ctor(1, 4, 0); -lean_ctor_set(x_62, 0, x_2); -lean_ctor_set(x_62, 1, x_3); -lean_ctor_set(x_62, 2, x_4); -lean_ctor_set(x_62, 3, x_5); -x_63 = l_Lean_Elab_Term_registerSyntheticMVar(x_1, x_43, x_62, x_57, x_61); +lean_ctor_set(x_62, 0, x_1); +lean_ctor_set(x_62, 1, x_2); +lean_ctor_set(x_62, 2, x_3); +lean_ctor_set(x_62, 3, x_4); +x_63 = l_Lean_Elab_Term_registerSyntheticMVar(x_42, x_62, x_57, x_61); lean_dec(x_57); x_64 = !lean_is_exclusive(x_63); if (x_64 == 0) @@ -14709,7 +14859,7 @@ if (x_64 == 0) lean_object* x_65; x_65 = lean_ctor_get(x_63, 0); lean_dec(x_65); -lean_ctor_set(x_63, 0, x_42); +lean_ctor_set(x_63, 0, x_41); return x_63; } else @@ -14719,7 +14869,7 @@ x_66 = lean_ctor_get(x_63, 1); lean_inc(x_66); lean_dec(x_63); x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_42); +lean_ctor_set(x_67, 0, x_41); lean_ctor_set(x_67, 1, x_66); return x_67; } @@ -14728,8 +14878,7 @@ else { uint8_t x_68; lean_dec(x_57); -lean_dec(x_43); -lean_dec(x_5); +lean_dec(x_42); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); @@ -14740,7 +14889,7 @@ if (x_68 == 0) lean_object* x_69; x_69 = lean_ctor_get(x_58, 0); lean_dec(x_69); -lean_ctor_set(x_58, 0, x_42); +lean_ctor_set(x_58, 0, x_41); return x_58; } else @@ -14750,7 +14899,7 @@ x_70 = lean_ctor_get(x_58, 1); lean_inc(x_70); lean_dec(x_58); x_71 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_71, 0, x_42); +lean_ctor_set(x_71, 0, x_41); lean_ctor_set(x_71, 1, x_70); return x_71; } @@ -14760,8 +14909,8 @@ else { lean_object* x_72; lean_dec(x_57); -lean_dec(x_43); lean_dec(x_42); +lean_dec(x_41); x_72 = lean_ctor_get(x_58, 0); lean_inc(x_72); if (lean_obj_tag(x_72) == 0) @@ -14784,9 +14933,8 @@ lean_inc(x_76); lean_dec(x_75); x_77 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_77, 0, x_76); -x_78 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_2, x_3, x_4, x_5, x_77, x_6, x_74); +x_78 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_2, x_3, x_4, x_77, x_5, x_74); lean_dec(x_77); -lean_dec(x_1); return x_78; } else @@ -14796,8 +14944,7 @@ x_79 = lean_ctor_get(x_58, 1); lean_inc(x_79); lean_dec(x_58); x_80 = lean_box(0); -x_81 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_2, x_3, x_4, x_5, x_80, x_6, x_79); -lean_dec(x_1); +x_81 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_2, x_3, x_4, x_80, x_5, x_79); return x_81; } } @@ -14808,8 +14955,7 @@ x_82 = lean_ctor_get(x_58, 1); lean_inc(x_82); lean_dec(x_58); x_83 = lean_box(0); -x_84 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_2, x_3, x_4, x_5, x_83, x_6, x_82); -lean_dec(x_1); +x_84 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_2, x_3, x_4, x_83, x_5, x_82); return x_84; } } @@ -14817,26 +14963,25 @@ return x_84; else { uint8_t x_85; -lean_dec(x_13); -lean_dec(x_6); +lean_dec(x_12); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_85 = !lean_is_exclusive(x_15); +x_85 = !lean_is_exclusive(x_14); if (x_85 == 0) { -return x_15; +return x_14; } else { lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_86 = lean_ctor_get(x_15, 0); -x_87 = lean_ctor_get(x_15, 1); +x_86 = lean_ctor_get(x_14, 0); +x_87 = lean_ctor_get(x_14, 1); lean_inc(x_87); lean_inc(x_86); -lean_dec(x_15); +lean_dec(x_14); x_88 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_88, 0, x_86); lean_ctor_set(x_88, 1, x_87); @@ -14847,25 +14992,24 @@ return x_88; else { uint8_t x_89; -lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_89 = !lean_is_exclusive(x_12); +x_89 = !lean_is_exclusive(x_11); if (x_89 == 0) { -return x_12; +return x_11; } else { lean_object* x_90; lean_object* x_91; lean_object* x_92; -x_90 = lean_ctor_get(x_12, 0); -x_91 = lean_ctor_get(x_12, 1); +x_90 = lean_ctor_get(x_11, 0); +x_91 = lean_ctor_get(x_11, 1); lean_inc(x_91); lean_inc(x_90); -lean_dec(x_12); +lean_dec(x_11); x_92 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_92, 0, x_90); lean_ctor_set(x_92, 1, x_91); @@ -14876,28 +15020,27 @@ return x_92; else { uint8_t x_93; -lean_dec(x_6); lean_dec(x_5); -lean_dec(x_3); +lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_93 = !lean_is_exclusive(x_8); +x_93 = !lean_is_exclusive(x_7); if (x_93 == 0) { lean_object* x_94; -x_94 = lean_ctor_get(x_8, 0); +x_94 = lean_ctor_get(x_7, 0); lean_dec(x_94); -lean_ctor_set(x_8, 0, x_4); -return x_8; +lean_ctor_set(x_7, 0, x_3); +return x_7; } else { lean_object* x_95; lean_object* x_96; -x_95 = lean_ctor_get(x_8, 1); +x_95 = lean_ctor_get(x_7, 1); lean_inc(x_95); -lean_dec(x_8); +lean_dec(x_7); x_96 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_96, 0, x_4); +lean_ctor_set(x_96, 0, x_3); lean_ctor_set(x_96, 1, x_95); return x_96; } @@ -14906,25 +15049,24 @@ return x_96; else { uint8_t x_97; -lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_97 = !lean_is_exclusive(x_8); +x_97 = !lean_is_exclusive(x_7); if (x_97 == 0) { -return x_8; +return x_7; } else { lean_object* x_98; lean_object* x_99; lean_object* x_100; -x_98 = lean_ctor_get(x_8, 0); -x_99 = lean_ctor_get(x_8, 1); +x_98 = lean_ctor_get(x_7, 0); +x_99 = lean_ctor_get(x_7, 1); lean_inc(x_99); lean_inc(x_98); -lean_dec(x_8); +lean_dec(x_7); x_100 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_100, 0, x_98); lean_ctor_set(x_100, 1, x_99); @@ -14933,398 +15075,399 @@ return x_100; } } } -lean_object* l___private_Lean_Elab_Term_6__isTypeApp_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Term_6__isTypeApp_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; lean_object* x_6; uint8_t x_7; -x_5 = lean_ctor_get(x_3, 0); +lean_object* x_4; lean_object* x_5; uint8_t x_6; +x_4 = lean_ctor_get(x_2, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_4, 0); lean_inc(x_5); -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = !lean_is_exclusive(x_3); -if (x_7 == 0) +x_6 = !lean_is_exclusive(x_2); +if (x_6 == 0) { -lean_object* x_8; uint8_t x_9; -x_8 = lean_ctor_get(x_3, 0); -lean_dec(x_8); -x_9 = !lean_is_exclusive(x_5); -if (x_9 == 0) +lean_object* x_7; uint8_t x_8; +x_7 = lean_ctor_get(x_2, 0); +lean_dec(x_7); +x_8 = !lean_is_exclusive(x_4); +if (x_8 == 0) { -lean_object* x_10; uint8_t x_11; -x_10 = lean_ctor_get(x_5, 0); -lean_dec(x_10); -x_11 = !lean_is_exclusive(x_6); -if (x_11 == 0) +lean_object* x_9; uint8_t x_10; +x_9 = lean_ctor_get(x_4, 0); +lean_dec(x_9); +x_10 = !lean_is_exclusive(x_5); +if (x_10 == 0) { -uint8_t x_12; lean_object* x_13; -x_12 = 2; -lean_ctor_set_uint8(x_6, sizeof(void*)*1 + 6, x_12); -x_13 = l_Lean_Elab_Term_whnf(x_1, x_2, x_3, x_4); -if (lean_obj_tag(x_13) == 0) +uint8_t x_11; lean_object* x_12; +x_11 = 2; +lean_ctor_set_uint8(x_5, sizeof(void*)*1 + 6, x_11); +x_12 = l_Lean_Elab_Term_whnf(x_1, x_2, x_3); +if (lean_obj_tag(x_12) == 0) { -lean_object* x_14; -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -if (lean_obj_tag(x_14) == 5) +lean_object* x_13; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +if (lean_obj_tag(x_13) == 5) { -uint8_t x_15; -x_15 = !lean_is_exclusive(x_13); -if (x_15 == 0) +uint8_t x_14; +x_14 = !lean_is_exclusive(x_12); +if (x_14 == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +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_12, 0); +lean_dec(x_15); x_16 = lean_ctor_get(x_13, 0); -lean_dec(x_16); -x_17 = lean_ctor_get(x_14, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_13, 1); lean_inc(x_17); -x_18 = lean_ctor_get(x_14, 1); -lean_inc(x_18); -lean_dec(x_14); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_17); -lean_ctor_set(x_19, 1, x_18); -x_20 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_13, 0, x_20); -return x_13; +lean_dec(x_13); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +x_19 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_12, 0, x_19); +return x_12; } else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_21 = lean_ctor_get(x_13, 1); +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_20 = lean_ctor_get(x_12, 1); +lean_inc(x_20); +lean_dec(x_12); +x_21 = lean_ctor_get(x_13, 0); lean_inc(x_21); -lean_dec(x_13); -x_22 = lean_ctor_get(x_14, 0); +x_22 = lean_ctor_get(x_13, 1); lean_inc(x_22); -x_23 = lean_ctor_get(x_14, 1); -lean_inc(x_23); -lean_dec(x_14); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -x_25 = lean_alloc_ctor(1, 1, 0); +lean_dec(x_13); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_23); +x_25 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_25, 0, x_24); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, x_21); -return x_26; +lean_ctor_set(x_25, 1, x_20); +return x_25; } } else { -uint8_t x_27; -lean_dec(x_14); -x_27 = !lean_is_exclusive(x_13); -if (x_27 == 0) -{ -lean_object* x_28; lean_object* x_29; -x_28 = lean_ctor_get(x_13, 0); -lean_dec(x_28); -x_29 = lean_box(0); -lean_ctor_set(x_13, 0, x_29); -return x_13; -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_13, 1); -lean_inc(x_30); +uint8_t x_26; lean_dec(x_13); -x_31 = lean_box(0); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_30); -return x_32; +x_26 = !lean_is_exclusive(x_12); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_12, 0); +lean_dec(x_27); +x_28 = lean_box(0); +lean_ctor_set(x_12, 0, x_28); +return x_12; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_12, 1); +lean_inc(x_29); +lean_dec(x_12); +x_30 = lean_box(0); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_29); +return x_31; } } } else { -uint8_t x_33; -x_33 = !lean_is_exclusive(x_13); -if (x_33 == 0) +uint8_t x_32; +x_32 = !lean_is_exclusive(x_12); +if (x_32 == 0) { -return x_13; +return x_12; } else { -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_13, 0); -x_35 = lean_ctor_get(x_13, 1); -lean_inc(x_35); +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_12, 0); +x_34 = lean_ctor_get(x_12, 1); lean_inc(x_34); -lean_dec(x_13); -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; +lean_inc(x_33); +lean_dec(x_12); +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 { -lean_object* x_37; uint8_t x_38; uint8_t x_39; uint8_t x_40; uint8_t x_41; uint8_t x_42; uint8_t x_43; uint8_t x_44; lean_object* x_45; lean_object* x_46; -x_37 = lean_ctor_get(x_6, 0); -x_38 = lean_ctor_get_uint8(x_6, sizeof(void*)*1); -x_39 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 1); -x_40 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 2); -x_41 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 3); -x_42 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 4); -x_43 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 5); -lean_inc(x_37); -lean_dec(x_6); -x_44 = 2; -x_45 = lean_alloc_ctor(0, 1, 7); -lean_ctor_set(x_45, 0, x_37); -lean_ctor_set_uint8(x_45, sizeof(void*)*1, x_38); -lean_ctor_set_uint8(x_45, sizeof(void*)*1 + 1, x_39); -lean_ctor_set_uint8(x_45, sizeof(void*)*1 + 2, x_40); -lean_ctor_set_uint8(x_45, sizeof(void*)*1 + 3, x_41); -lean_ctor_set_uint8(x_45, sizeof(void*)*1 + 4, x_42); -lean_ctor_set_uint8(x_45, sizeof(void*)*1 + 5, x_43); -lean_ctor_set_uint8(x_45, sizeof(void*)*1 + 6, x_44); -lean_ctor_set(x_5, 0, x_45); -x_46 = l_Lean_Elab_Term_whnf(x_1, x_2, x_3, x_4); -if (lean_obj_tag(x_46) == 0) +lean_object* x_36; uint8_t x_37; uint8_t x_38; uint8_t x_39; uint8_t x_40; uint8_t x_41; uint8_t x_42; uint8_t x_43; lean_object* x_44; lean_object* x_45; +x_36 = lean_ctor_get(x_5, 0); +x_37 = lean_ctor_get_uint8(x_5, sizeof(void*)*1); +x_38 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 1); +x_39 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 2); +x_40 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 3); +x_41 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 4); +x_42 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 5); +lean_inc(x_36); +lean_dec(x_5); +x_43 = 2; +x_44 = lean_alloc_ctor(0, 1, 7); +lean_ctor_set(x_44, 0, x_36); +lean_ctor_set_uint8(x_44, sizeof(void*)*1, x_37); +lean_ctor_set_uint8(x_44, sizeof(void*)*1 + 1, x_38); +lean_ctor_set_uint8(x_44, sizeof(void*)*1 + 2, x_39); +lean_ctor_set_uint8(x_44, sizeof(void*)*1 + 3, x_40); +lean_ctor_set_uint8(x_44, sizeof(void*)*1 + 4, x_41); +lean_ctor_set_uint8(x_44, sizeof(void*)*1 + 5, x_42); +lean_ctor_set_uint8(x_44, sizeof(void*)*1 + 6, x_43); +lean_ctor_set(x_4, 0, x_44); +x_45 = l_Lean_Elab_Term_whnf(x_1, x_2, x_3); +if (lean_obj_tag(x_45) == 0) { -lean_object* x_47; -x_47 = lean_ctor_get(x_46, 0); +lean_object* x_46; +x_46 = lean_ctor_get(x_45, 0); +lean_inc(x_46); +if (lean_obj_tag(x_46) == 5) +{ +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_47 = lean_ctor_get(x_45, 1); lean_inc(x_47); -if (lean_obj_tag(x_47) == 5) -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_48 = lean_ctor_get(x_46, 1); -lean_inc(x_48); -if (lean_is_exclusive(x_46)) { - lean_ctor_release(x_46, 0); - lean_ctor_release(x_46, 1); - x_49 = x_46; +if (lean_is_exclusive(x_45)) { + lean_ctor_release(x_45, 0); + lean_ctor_release(x_45, 1); + x_48 = x_45; } else { - lean_dec_ref(x_46); - x_49 = lean_box(0); + lean_dec_ref(x_45); + x_48 = lean_box(0); } -x_50 = lean_ctor_get(x_47, 0); +x_49 = lean_ctor_get(x_46, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_46, 1); lean_inc(x_50); -x_51 = lean_ctor_get(x_47, 1); -lean_inc(x_51); -lean_dec(x_47); -x_52 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_52, 0, x_50); -lean_ctor_set(x_52, 1, x_51); -x_53 = lean_alloc_ctor(1, 1, 0); +lean_dec(x_46); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +x_52 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_52, 0, x_51); +if (lean_is_scalar(x_48)) { + x_53 = lean_alloc_ctor(0, 2, 0); +} else { + x_53 = x_48; +} lean_ctor_set(x_53, 0, x_52); -if (lean_is_scalar(x_49)) { - x_54 = lean_alloc_ctor(0, 2, 0); -} else { - x_54 = x_49; -} -lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_54, 1, x_48); -return x_54; +lean_ctor_set(x_53, 1, x_47); +return x_53; } else { -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; -lean_dec(x_47); -x_55 = lean_ctor_get(x_46, 1); -lean_inc(x_55); -if (lean_is_exclusive(x_46)) { - lean_ctor_release(x_46, 0); - lean_ctor_release(x_46, 1); - x_56 = x_46; +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +lean_dec(x_46); +x_54 = lean_ctor_get(x_45, 1); +lean_inc(x_54); +if (lean_is_exclusive(x_45)) { + lean_ctor_release(x_45, 0); + lean_ctor_release(x_45, 1); + x_55 = x_45; } else { - lean_dec_ref(x_46); - x_56 = lean_box(0); + lean_dec_ref(x_45); + x_55 = lean_box(0); } -x_57 = lean_box(0); -if (lean_is_scalar(x_56)) { - x_58 = lean_alloc_ctor(0, 2, 0); +x_56 = lean_box(0); +if (lean_is_scalar(x_55)) { + x_57 = lean_alloc_ctor(0, 2, 0); } else { - x_58 = x_56; + x_57 = x_55; } -lean_ctor_set(x_58, 0, x_57); -lean_ctor_set(x_58, 1, x_55); -return x_58; +lean_ctor_set(x_57, 0, x_56); +lean_ctor_set(x_57, 1, x_54); +return x_57; } } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_59 = lean_ctor_get(x_46, 0); +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_58 = lean_ctor_get(x_45, 0); +lean_inc(x_58); +x_59 = lean_ctor_get(x_45, 1); lean_inc(x_59); -x_60 = lean_ctor_get(x_46, 1); -lean_inc(x_60); -if (lean_is_exclusive(x_46)) { - lean_ctor_release(x_46, 0); - lean_ctor_release(x_46, 1); - x_61 = x_46; +if (lean_is_exclusive(x_45)) { + lean_ctor_release(x_45, 0); + lean_ctor_release(x_45, 1); + x_60 = x_45; } else { - lean_dec_ref(x_46); - x_61 = lean_box(0); + lean_dec_ref(x_45); + x_60 = lean_box(0); } -if (lean_is_scalar(x_61)) { - x_62 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_60)) { + x_61 = lean_alloc_ctor(1, 2, 0); } else { - x_62 = x_61; + x_61 = x_60; } -lean_ctor_set(x_62, 0, x_59); -lean_ctor_set(x_62, 1, x_60); -return x_62; +lean_ctor_set(x_61, 0, x_58); +lean_ctor_set(x_61, 1, x_59); +return x_61; } } } else { -lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; uint8_t x_69; uint8_t x_70; uint8_t x_71; uint8_t x_72; uint8_t x_73; lean_object* x_74; uint8_t x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_63 = lean_ctor_get(x_5, 1); -x_64 = lean_ctor_get(x_5, 2); -x_65 = lean_ctor_get(x_5, 3); -x_66 = lean_ctor_get(x_5, 4); -lean_inc(x_66); +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; uint8_t x_68; uint8_t x_69; uint8_t x_70; uint8_t x_71; uint8_t x_72; lean_object* x_73; uint8_t x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_62 = lean_ctor_get(x_4, 1); +x_63 = lean_ctor_get(x_4, 2); +x_64 = lean_ctor_get(x_4, 3); +x_65 = lean_ctor_get(x_4, 4); lean_inc(x_65); lean_inc(x_64); lean_inc(x_63); -lean_dec(x_5); -x_67 = lean_ctor_get(x_6, 0); -lean_inc(x_67); -x_68 = lean_ctor_get_uint8(x_6, sizeof(void*)*1); -x_69 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 1); -x_70 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 2); -x_71 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 3); -x_72 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 4); -x_73 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 5); -if (lean_is_exclusive(x_6)) { - lean_ctor_release(x_6, 0); - x_74 = x_6; +lean_inc(x_62); +lean_dec(x_4); +x_66 = lean_ctor_get(x_5, 0); +lean_inc(x_66); +x_67 = lean_ctor_get_uint8(x_5, sizeof(void*)*1); +x_68 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 1); +x_69 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 2); +x_70 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 3); +x_71 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 4); +x_72 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 5); +if (lean_is_exclusive(x_5)) { + lean_ctor_release(x_5, 0); + x_73 = x_5; } else { - lean_dec_ref(x_6); - x_74 = lean_box(0); + lean_dec_ref(x_5); + x_73 = lean_box(0); } -x_75 = 2; -if (lean_is_scalar(x_74)) { - x_76 = lean_alloc_ctor(0, 1, 7); +x_74 = 2; +if (lean_is_scalar(x_73)) { + x_75 = lean_alloc_ctor(0, 1, 7); } else { - x_76 = x_74; + x_75 = x_73; } -lean_ctor_set(x_76, 0, x_67); -lean_ctor_set_uint8(x_76, sizeof(void*)*1, x_68); -lean_ctor_set_uint8(x_76, sizeof(void*)*1 + 1, x_69); -lean_ctor_set_uint8(x_76, sizeof(void*)*1 + 2, x_70); -lean_ctor_set_uint8(x_76, sizeof(void*)*1 + 3, x_71); -lean_ctor_set_uint8(x_76, sizeof(void*)*1 + 4, x_72); -lean_ctor_set_uint8(x_76, sizeof(void*)*1 + 5, x_73); -lean_ctor_set_uint8(x_76, sizeof(void*)*1 + 6, x_75); -x_77 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_77, 0, x_76); -lean_ctor_set(x_77, 1, x_63); -lean_ctor_set(x_77, 2, x_64); -lean_ctor_set(x_77, 3, x_65); -lean_ctor_set(x_77, 4, x_66); -lean_ctor_set(x_3, 0, x_77); -x_78 = l_Lean_Elab_Term_whnf(x_1, x_2, x_3, x_4); -if (lean_obj_tag(x_78) == 0) +lean_ctor_set(x_75, 0, x_66); +lean_ctor_set_uint8(x_75, sizeof(void*)*1, x_67); +lean_ctor_set_uint8(x_75, sizeof(void*)*1 + 1, x_68); +lean_ctor_set_uint8(x_75, sizeof(void*)*1 + 2, x_69); +lean_ctor_set_uint8(x_75, sizeof(void*)*1 + 3, x_70); +lean_ctor_set_uint8(x_75, sizeof(void*)*1 + 4, x_71); +lean_ctor_set_uint8(x_75, sizeof(void*)*1 + 5, x_72); +lean_ctor_set_uint8(x_75, sizeof(void*)*1 + 6, x_74); +x_76 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_76, 0, x_75); +lean_ctor_set(x_76, 1, x_62); +lean_ctor_set(x_76, 2, x_63); +lean_ctor_set(x_76, 3, x_64); +lean_ctor_set(x_76, 4, x_65); +lean_ctor_set(x_2, 0, x_76); +x_77 = l_Lean_Elab_Term_whnf(x_1, x_2, x_3); +if (lean_obj_tag(x_77) == 0) { -lean_object* x_79; -x_79 = lean_ctor_get(x_78, 0); +lean_object* x_78; +x_78 = lean_ctor_get(x_77, 0); +lean_inc(x_78); +if (lean_obj_tag(x_78) == 5) +{ +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; +x_79 = lean_ctor_get(x_77, 1); lean_inc(x_79); -if (lean_obj_tag(x_79) == 5) -{ -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_80 = lean_ctor_get(x_78, 1); -lean_inc(x_80); -if (lean_is_exclusive(x_78)) { - lean_ctor_release(x_78, 0); - lean_ctor_release(x_78, 1); - x_81 = x_78; +if (lean_is_exclusive(x_77)) { + lean_ctor_release(x_77, 0); + lean_ctor_release(x_77, 1); + x_80 = x_77; } else { - lean_dec_ref(x_78); - x_81 = lean_box(0); + lean_dec_ref(x_77); + x_80 = lean_box(0); } -x_82 = lean_ctor_get(x_79, 0); +x_81 = lean_ctor_get(x_78, 0); +lean_inc(x_81); +x_82 = lean_ctor_get(x_78, 1); lean_inc(x_82); -x_83 = lean_ctor_get(x_79, 1); -lean_inc(x_83); -lean_dec(x_79); -x_84 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_84, 0, x_82); -lean_ctor_set(x_84, 1, x_83); -x_85 = lean_alloc_ctor(1, 1, 0); +lean_dec(x_78); +x_83 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_83, 0, x_81); +lean_ctor_set(x_83, 1, x_82); +x_84 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_84, 0, x_83); +if (lean_is_scalar(x_80)) { + x_85 = lean_alloc_ctor(0, 2, 0); +} else { + x_85 = x_80; +} lean_ctor_set(x_85, 0, x_84); -if (lean_is_scalar(x_81)) { - x_86 = lean_alloc_ctor(0, 2, 0); -} else { - x_86 = x_81; -} -lean_ctor_set(x_86, 0, x_85); -lean_ctor_set(x_86, 1, x_80); -return x_86; +lean_ctor_set(x_85, 1, x_79); +return x_85; } else { -lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; -lean_dec(x_79); -x_87 = lean_ctor_get(x_78, 1); -lean_inc(x_87); -if (lean_is_exclusive(x_78)) { - lean_ctor_release(x_78, 0); - lean_ctor_release(x_78, 1); - x_88 = x_78; +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +lean_dec(x_78); +x_86 = lean_ctor_get(x_77, 1); +lean_inc(x_86); +if (lean_is_exclusive(x_77)) { + lean_ctor_release(x_77, 0); + lean_ctor_release(x_77, 1); + x_87 = x_77; } else { - lean_dec_ref(x_78); - x_88 = lean_box(0); + lean_dec_ref(x_77); + x_87 = lean_box(0); } -x_89 = lean_box(0); -if (lean_is_scalar(x_88)) { - x_90 = lean_alloc_ctor(0, 2, 0); +x_88 = lean_box(0); +if (lean_is_scalar(x_87)) { + x_89 = lean_alloc_ctor(0, 2, 0); } else { - x_90 = x_88; + x_89 = x_87; } -lean_ctor_set(x_90, 0, x_89); -lean_ctor_set(x_90, 1, x_87); -return x_90; +lean_ctor_set(x_89, 0, x_88); +lean_ctor_set(x_89, 1, x_86); +return x_89; } } else { -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_91 = lean_ctor_get(x_78, 0); +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_90 = lean_ctor_get(x_77, 0); +lean_inc(x_90); +x_91 = lean_ctor_get(x_77, 1); lean_inc(x_91); -x_92 = lean_ctor_get(x_78, 1); -lean_inc(x_92); -if (lean_is_exclusive(x_78)) { - lean_ctor_release(x_78, 0); - lean_ctor_release(x_78, 1); - x_93 = x_78; +if (lean_is_exclusive(x_77)) { + lean_ctor_release(x_77, 0); + lean_ctor_release(x_77, 1); + x_92 = x_77; } else { - lean_dec_ref(x_78); - x_93 = lean_box(0); + lean_dec_ref(x_77); + x_92 = lean_box(0); } -if (lean_is_scalar(x_93)) { - x_94 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_92)) { + x_93 = lean_alloc_ctor(1, 2, 0); } else { - x_94 = x_93; + x_93 = x_92; } -lean_ctor_set(x_94, 0, x_91); -lean_ctor_set(x_94, 1, x_92); -return x_94; +lean_ctor_set(x_93, 0, x_90); +lean_ctor_set(x_93, 1, x_91); +return x_93; } } } else { -lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; uint8_t x_104; uint8_t x_105; uint8_t x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; uint8_t x_114; uint8_t x_115; uint8_t x_116; uint8_t x_117; uint8_t x_118; lean_object* x_119; uint8_t x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; -x_95 = lean_ctor_get(x_3, 1); -x_96 = lean_ctor_get(x_3, 2); -x_97 = lean_ctor_get(x_3, 3); -x_98 = lean_ctor_get(x_3, 4); -x_99 = lean_ctor_get(x_3, 5); -x_100 = lean_ctor_get(x_3, 6); -x_101 = lean_ctor_get(x_3, 7); -x_102 = lean_ctor_get(x_3, 8); -x_103 = lean_ctor_get(x_3, 9); -x_104 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); -x_105 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); -x_106 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); -lean_inc(x_103); +lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; uint8_t x_103; uint8_t x_104; uint8_t x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; uint8_t x_114; uint8_t x_115; uint8_t x_116; uint8_t x_117; uint8_t x_118; lean_object* x_119; uint8_t x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_94 = lean_ctor_get(x_2, 1); +x_95 = lean_ctor_get(x_2, 2); +x_96 = lean_ctor_get(x_2, 3); +x_97 = lean_ctor_get(x_2, 4); +x_98 = lean_ctor_get(x_2, 5); +x_99 = lean_ctor_get(x_2, 6); +x_100 = lean_ctor_get(x_2, 7); +x_101 = lean_ctor_get(x_2, 8); +x_102 = lean_ctor_get(x_2, 9); +x_103 = lean_ctor_get_uint8(x_2, sizeof(void*)*11); +x_104 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 1); +x_105 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 2); +x_106 = lean_ctor_get(x_2, 10); +lean_inc(x_106); lean_inc(x_102); lean_inc(x_101); lean_inc(x_100); @@ -15333,39 +15476,40 @@ lean_inc(x_98); lean_inc(x_97); lean_inc(x_96); lean_inc(x_95); -lean_dec(x_3); -x_107 = lean_ctor_get(x_5, 1); +lean_inc(x_94); +lean_dec(x_2); +x_107 = lean_ctor_get(x_4, 1); lean_inc(x_107); -x_108 = lean_ctor_get(x_5, 2); +x_108 = lean_ctor_get(x_4, 2); lean_inc(x_108); -x_109 = lean_ctor_get(x_5, 3); +x_109 = lean_ctor_get(x_4, 3); lean_inc(x_109); -x_110 = lean_ctor_get(x_5, 4); +x_110 = lean_ctor_get(x_4, 4); lean_inc(x_110); -if (lean_is_exclusive(x_5)) { - lean_ctor_release(x_5, 0); - lean_ctor_release(x_5, 1); - lean_ctor_release(x_5, 2); - lean_ctor_release(x_5, 3); - lean_ctor_release(x_5, 4); - x_111 = x_5; +if (lean_is_exclusive(x_4)) { + lean_ctor_release(x_4, 0); + lean_ctor_release(x_4, 1); + lean_ctor_release(x_4, 2); + lean_ctor_release(x_4, 3); + lean_ctor_release(x_4, 4); + x_111 = x_4; } else { - lean_dec_ref(x_5); + lean_dec_ref(x_4); x_111 = lean_box(0); } -x_112 = lean_ctor_get(x_6, 0); +x_112 = lean_ctor_get(x_5, 0); lean_inc(x_112); -x_113 = lean_ctor_get_uint8(x_6, sizeof(void*)*1); -x_114 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 1); -x_115 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 2); -x_116 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 3); -x_117 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 4); -x_118 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 5); -if (lean_is_exclusive(x_6)) { - lean_ctor_release(x_6, 0); - x_119 = x_6; +x_113 = lean_ctor_get_uint8(x_5, sizeof(void*)*1); +x_114 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 1); +x_115 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 2); +x_116 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 3); +x_117 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 4); +x_118 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 5); +if (lean_is_exclusive(x_5)) { + lean_ctor_release(x_5, 0); + x_119 = x_5; } else { - lean_dec_ref(x_6); + lean_dec_ref(x_5); x_119 = lean_box(0); } x_120 = 2; @@ -15392,21 +15536,22 @@ lean_ctor_set(x_122, 1, x_107); lean_ctor_set(x_122, 2, x_108); lean_ctor_set(x_122, 3, x_109); lean_ctor_set(x_122, 4, x_110); -x_123 = lean_alloc_ctor(0, 10, 3); +x_123 = lean_alloc_ctor(0, 11, 3); lean_ctor_set(x_123, 0, x_122); -lean_ctor_set(x_123, 1, x_95); -lean_ctor_set(x_123, 2, x_96); -lean_ctor_set(x_123, 3, x_97); -lean_ctor_set(x_123, 4, x_98); -lean_ctor_set(x_123, 5, x_99); -lean_ctor_set(x_123, 6, x_100); -lean_ctor_set(x_123, 7, x_101); -lean_ctor_set(x_123, 8, x_102); -lean_ctor_set(x_123, 9, x_103); -lean_ctor_set_uint8(x_123, sizeof(void*)*10, x_104); -lean_ctor_set_uint8(x_123, sizeof(void*)*10 + 1, x_105); -lean_ctor_set_uint8(x_123, sizeof(void*)*10 + 2, x_106); -x_124 = l_Lean_Elab_Term_whnf(x_1, x_2, x_123, x_4); +lean_ctor_set(x_123, 1, x_94); +lean_ctor_set(x_123, 2, x_95); +lean_ctor_set(x_123, 3, x_96); +lean_ctor_set(x_123, 4, x_97); +lean_ctor_set(x_123, 5, x_98); +lean_ctor_set(x_123, 6, x_99); +lean_ctor_set(x_123, 7, x_100); +lean_ctor_set(x_123, 8, x_101); +lean_ctor_set(x_123, 9, x_102); +lean_ctor_set(x_123, 10, x_106); +lean_ctor_set_uint8(x_123, sizeof(void*)*11, x_103); +lean_ctor_set_uint8(x_123, sizeof(void*)*11 + 1, x_104); +lean_ctor_set_uint8(x_123, sizeof(void*)*11 + 2, x_105); +x_124 = l_Lean_Elab_Term_whnf(x_1, x_123, x_3); if (lean_obj_tag(x_124) == 0) { lean_object* x_125; @@ -15496,15 +15641,6 @@ return x_140; } } } -lean_object* l___private_Lean_Elab_Term_6__isTypeApp_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l___private_Lean_Elab_Term_6__isTypeApp_x3f(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} lean_object* _init_l___private_Lean_Elab_Term_7__isMonad_x3f___closed__1() { _start: { @@ -15523,62 +15659,65 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l___private_Lean_Elab_Term_7__isMonad_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Term_7__isMonad_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_5 = lean_ctor_get(x_3, 0); +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; uint8_t x_15; uint8_t x_16; uint8_t x_17; lean_object* x_18; uint8_t x_19; +x_4 = lean_ctor_get(x_2, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_4, 0); lean_inc(x_5); -x_6 = lean_ctor_get(x_5, 0); +x_6 = lean_ctor_get(x_2, 1); lean_inc(x_6); -x_7 = lean_ctor_get(x_3, 1); +x_7 = lean_ctor_get(x_2, 2); lean_inc(x_7); -x_8 = lean_ctor_get(x_3, 2); +x_8 = lean_ctor_get(x_2, 3); lean_inc(x_8); -x_9 = lean_ctor_get(x_3, 3); +x_9 = lean_ctor_get(x_2, 4); lean_inc(x_9); -x_10 = lean_ctor_get(x_3, 4); +x_10 = lean_ctor_get(x_2, 5); lean_inc(x_10); -x_11 = lean_ctor_get(x_3, 5); +x_11 = lean_ctor_get(x_2, 6); lean_inc(x_11); -x_12 = lean_ctor_get(x_3, 6); +x_12 = lean_ctor_get(x_2, 7); lean_inc(x_12); -x_13 = lean_ctor_get(x_3, 7); +x_13 = lean_ctor_get(x_2, 8); lean_inc(x_13); -x_14 = lean_ctor_get(x_3, 8); +x_14 = lean_ctor_get(x_2, 9); lean_inc(x_14); -x_15 = lean_ctor_get(x_3, 9); -lean_inc(x_15); -x_16 = !lean_is_exclusive(x_5); -if (x_16 == 0) +x_15 = lean_ctor_get_uint8(x_2, sizeof(void*)*11); +x_16 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 1); +x_17 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 2); +x_18 = lean_ctor_get(x_2, 10); +lean_inc(x_18); +x_19 = !lean_is_exclusive(x_4); +if (x_19 == 0) { -uint8_t x_17; uint8_t x_18; uint8_t x_19; lean_object* x_20; uint8_t x_21; -x_17 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); -x_18 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); -x_19 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); -x_20 = lean_ctor_get(x_5, 0); +lean_object* x_20; uint8_t x_21; +x_20 = lean_ctor_get(x_4, 0); lean_dec(x_20); -x_21 = !lean_is_exclusive(x_6); +x_21 = !lean_is_exclusive(x_5); if (x_21 == 0) { uint8_t x_22; lean_object* x_23; lean_object* x_24; x_22 = 2; -lean_ctor_set_uint8(x_6, sizeof(void*)*1 + 6, x_22); -x_23 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_23, 0, x_5); -lean_ctor_set(x_23, 1, x_7); -lean_ctor_set(x_23, 2, x_8); -lean_ctor_set(x_23, 3, x_9); -lean_ctor_set(x_23, 4, x_10); -lean_ctor_set(x_23, 5, x_11); -lean_ctor_set(x_23, 6, x_12); -lean_ctor_set(x_23, 7, x_13); -lean_ctor_set(x_23, 8, x_14); -lean_ctor_set(x_23, 9, x_15); -lean_ctor_set_uint8(x_23, sizeof(void*)*10, x_17); -lean_ctor_set_uint8(x_23, sizeof(void*)*10 + 1, x_18); -lean_ctor_set_uint8(x_23, sizeof(void*)*10 + 2, x_19); -x_24 = l_Lean_Elab_Term_whnf(x_1, x_2, x_23, x_4); +lean_ctor_set_uint8(x_5, sizeof(void*)*1 + 6, x_22); +x_23 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_23, 0, x_4); +lean_ctor_set(x_23, 1, x_6); +lean_ctor_set(x_23, 2, x_7); +lean_ctor_set(x_23, 3, x_8); +lean_ctor_set(x_23, 4, x_9); +lean_ctor_set(x_23, 5, x_10); +lean_ctor_set(x_23, 6, x_11); +lean_ctor_set(x_23, 7, x_12); +lean_ctor_set(x_23, 8, x_13); +lean_ctor_set(x_23, 9, x_14); +lean_ctor_set(x_23, 10, x_18); +lean_ctor_set_uint8(x_23, sizeof(void*)*11, x_15); +lean_ctor_set_uint8(x_23, sizeof(void*)*11 + 1, x_16); +lean_ctor_set_uint8(x_23, sizeof(void*)*11 + 2, x_17); +x_24 = l_Lean_Elab_Term_whnf(x_1, x_23, x_3); if (lean_obj_tag(x_24) == 0) { lean_object* x_25; @@ -15599,8 +15738,8 @@ x_29 = l_Lean_mkOptionalNode___closed__2; lean_inc(x_27); x_30 = lean_array_push(x_29, x_27); x_31 = l___private_Lean_Elab_Term_7__isMonad_x3f___closed__2; -lean_inc(x_3); -x_32 = l_Lean_Elab_Term_mkAppM(x_1, x_31, x_30, x_3, x_26); +lean_inc(x_2); +x_32 = l_Lean_Elab_Term_mkAppM(x_31, x_30, x_2, x_26); lean_dec(x_30); if (lean_obj_tag(x_32) == 0) { @@ -15610,7 +15749,7 @@ lean_inc(x_33); x_34 = lean_ctor_get(x_32, 1); lean_inc(x_34); lean_dec(x_32); -x_35 = l_Lean_Elab_Term_trySynthInstance(x_1, x_33, x_3, x_34); +x_35 = l_Lean_Elab_Term_trySynthInstance(x_33, x_2, x_34); if (lean_obj_tag(x_35) == 0) { lean_object* x_36; @@ -15723,7 +15862,7 @@ else uint8_t x_59; lean_dec(x_28); lean_dec(x_27); -lean_dec(x_3); +lean_dec(x_2); x_59 = !lean_is_exclusive(x_32); if (x_59 == 0) { @@ -15753,7 +15892,7 @@ else { uint8_t x_65; lean_dec(x_25); -lean_dec(x_3); +lean_dec(x_2); x_65 = !lean_is_exclusive(x_24); if (x_65 == 0) { @@ -15781,7 +15920,7 @@ return x_70; else { uint8_t x_71; -lean_dec(x_3); +lean_dec(x_2); x_71 = !lean_is_exclusive(x_24); if (x_71 == 0) { @@ -15805,15 +15944,15 @@ return x_74; else { lean_object* x_75; uint8_t x_76; uint8_t x_77; uint8_t x_78; uint8_t x_79; uint8_t x_80; uint8_t x_81; uint8_t x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; -x_75 = lean_ctor_get(x_6, 0); -x_76 = lean_ctor_get_uint8(x_6, sizeof(void*)*1); -x_77 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 1); -x_78 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 2); -x_79 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 3); -x_80 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 4); -x_81 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 5); +x_75 = lean_ctor_get(x_5, 0); +x_76 = lean_ctor_get_uint8(x_5, sizeof(void*)*1); +x_77 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 1); +x_78 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 2); +x_79 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 3); +x_80 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 4); +x_81 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 5); lean_inc(x_75); -lean_dec(x_6); +lean_dec(x_5); x_82 = 2; x_83 = lean_alloc_ctor(0, 1, 7); lean_ctor_set(x_83, 0, x_75); @@ -15824,22 +15963,23 @@ lean_ctor_set_uint8(x_83, sizeof(void*)*1 + 3, x_79); lean_ctor_set_uint8(x_83, sizeof(void*)*1 + 4, x_80); lean_ctor_set_uint8(x_83, sizeof(void*)*1 + 5, x_81); lean_ctor_set_uint8(x_83, sizeof(void*)*1 + 6, x_82); -lean_ctor_set(x_5, 0, x_83); -x_84 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_84, 0, x_5); -lean_ctor_set(x_84, 1, x_7); -lean_ctor_set(x_84, 2, x_8); -lean_ctor_set(x_84, 3, x_9); -lean_ctor_set(x_84, 4, x_10); -lean_ctor_set(x_84, 5, x_11); -lean_ctor_set(x_84, 6, x_12); -lean_ctor_set(x_84, 7, x_13); -lean_ctor_set(x_84, 8, x_14); -lean_ctor_set(x_84, 9, x_15); -lean_ctor_set_uint8(x_84, sizeof(void*)*10, x_17); -lean_ctor_set_uint8(x_84, sizeof(void*)*10 + 1, x_18); -lean_ctor_set_uint8(x_84, sizeof(void*)*10 + 2, x_19); -x_85 = l_Lean_Elab_Term_whnf(x_1, x_2, x_84, x_4); +lean_ctor_set(x_4, 0, x_83); +x_84 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_84, 0, x_4); +lean_ctor_set(x_84, 1, x_6); +lean_ctor_set(x_84, 2, x_7); +lean_ctor_set(x_84, 3, x_8); +lean_ctor_set(x_84, 4, x_9); +lean_ctor_set(x_84, 5, x_10); +lean_ctor_set(x_84, 6, x_11); +lean_ctor_set(x_84, 7, x_12); +lean_ctor_set(x_84, 8, x_13); +lean_ctor_set(x_84, 9, x_14); +lean_ctor_set(x_84, 10, x_18); +lean_ctor_set_uint8(x_84, sizeof(void*)*11, x_15); +lean_ctor_set_uint8(x_84, sizeof(void*)*11 + 1, x_16); +lean_ctor_set_uint8(x_84, sizeof(void*)*11 + 2, x_17); +x_85 = l_Lean_Elab_Term_whnf(x_1, x_84, x_3); if (lean_obj_tag(x_85) == 0) { lean_object* x_86; @@ -15860,8 +16000,8 @@ x_90 = l_Lean_mkOptionalNode___closed__2; lean_inc(x_88); x_91 = lean_array_push(x_90, x_88); x_92 = l___private_Lean_Elab_Term_7__isMonad_x3f___closed__2; -lean_inc(x_3); -x_93 = l_Lean_Elab_Term_mkAppM(x_1, x_92, x_91, x_3, x_87); +lean_inc(x_2); +x_93 = l_Lean_Elab_Term_mkAppM(x_92, x_91, x_2, x_87); lean_dec(x_91); if (lean_obj_tag(x_93) == 0) { @@ -15871,7 +16011,7 @@ lean_inc(x_94); x_95 = lean_ctor_get(x_93, 1); lean_inc(x_95); lean_dec(x_93); -x_96 = l_Lean_Elab_Term_trySynthInstance(x_1, x_94, x_3, x_95); +x_96 = l_Lean_Elab_Term_trySynthInstance(x_94, x_2, x_95); if (lean_obj_tag(x_96) == 0) { lean_object* x_97; @@ -15967,7 +16107,7 @@ else lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_dec(x_89); lean_dec(x_88); -lean_dec(x_3); +lean_dec(x_2); x_112 = lean_ctor_get(x_93, 1); lean_inc(x_112); if (lean_is_exclusive(x_93)) { @@ -15994,7 +16134,7 @@ else { lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_dec(x_86); -lean_dec(x_3); +lean_dec(x_2); x_116 = lean_ctor_get(x_85, 1); lean_inc(x_116); if (lean_is_exclusive(x_85)) { @@ -16019,7 +16159,7 @@ return x_119; else { lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; -lean_dec(x_3); +lean_dec(x_2); x_120 = lean_ctor_get(x_85, 0); lean_inc(x_120); x_121 = lean_ctor_get(x_85, 1); @@ -16045,668 +16185,638 @@ return x_123; } else { -uint8_t x_124; uint8_t x_125; uint8_t x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; uint8_t x_132; uint8_t x_133; uint8_t x_134; uint8_t x_135; uint8_t x_136; uint8_t x_137; lean_object* x_138; uint8_t x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; -x_124 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); -x_125 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); -x_126 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); -x_127 = lean_ctor_get(x_5, 1); -x_128 = lean_ctor_get(x_5, 2); -x_129 = lean_ctor_get(x_5, 3); -x_130 = lean_ctor_get(x_5, 4); -lean_inc(x_130); -lean_inc(x_129); -lean_inc(x_128); +lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; uint8_t x_129; uint8_t x_130; uint8_t x_131; uint8_t x_132; uint8_t x_133; uint8_t x_134; lean_object* x_135; uint8_t x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; +x_124 = lean_ctor_get(x_4, 1); +x_125 = lean_ctor_get(x_4, 2); +x_126 = lean_ctor_get(x_4, 3); +x_127 = lean_ctor_get(x_4, 4); lean_inc(x_127); -lean_dec(x_5); -x_131 = lean_ctor_get(x_6, 0); -lean_inc(x_131); -x_132 = lean_ctor_get_uint8(x_6, sizeof(void*)*1); -x_133 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 1); -x_134 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 2); -x_135 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 3); -x_136 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 4); -x_137 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 5); -if (lean_is_exclusive(x_6)) { - lean_ctor_release(x_6, 0); - x_138 = x_6; +lean_inc(x_126); +lean_inc(x_125); +lean_inc(x_124); +lean_dec(x_4); +x_128 = lean_ctor_get(x_5, 0); +lean_inc(x_128); +x_129 = lean_ctor_get_uint8(x_5, sizeof(void*)*1); +x_130 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 1); +x_131 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 2); +x_132 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 3); +x_133 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 4); +x_134 = lean_ctor_get_uint8(x_5, sizeof(void*)*1 + 5); +if (lean_is_exclusive(x_5)) { + lean_ctor_release(x_5, 0); + x_135 = x_5; } else { - lean_dec_ref(x_6); - x_138 = lean_box(0); + lean_dec_ref(x_5); + x_135 = lean_box(0); } -x_139 = 2; -if (lean_is_scalar(x_138)) { - x_140 = lean_alloc_ctor(0, 1, 7); +x_136 = 2; +if (lean_is_scalar(x_135)) { + x_137 = lean_alloc_ctor(0, 1, 7); } else { - x_140 = x_138; + x_137 = x_135; } -lean_ctor_set(x_140, 0, x_131); -lean_ctor_set_uint8(x_140, sizeof(void*)*1, x_132); -lean_ctor_set_uint8(x_140, sizeof(void*)*1 + 1, x_133); -lean_ctor_set_uint8(x_140, sizeof(void*)*1 + 2, x_134); -lean_ctor_set_uint8(x_140, sizeof(void*)*1 + 3, x_135); -lean_ctor_set_uint8(x_140, sizeof(void*)*1 + 4, x_136); -lean_ctor_set_uint8(x_140, sizeof(void*)*1 + 5, x_137); -lean_ctor_set_uint8(x_140, sizeof(void*)*1 + 6, x_139); -x_141 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_141, 0, x_140); -lean_ctor_set(x_141, 1, x_127); -lean_ctor_set(x_141, 2, x_128); -lean_ctor_set(x_141, 3, x_129); -lean_ctor_set(x_141, 4, x_130); -x_142 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_142, 0, x_141); -lean_ctor_set(x_142, 1, x_7); -lean_ctor_set(x_142, 2, x_8); -lean_ctor_set(x_142, 3, x_9); -lean_ctor_set(x_142, 4, x_10); -lean_ctor_set(x_142, 5, x_11); -lean_ctor_set(x_142, 6, x_12); -lean_ctor_set(x_142, 7, x_13); -lean_ctor_set(x_142, 8, x_14); -lean_ctor_set(x_142, 9, x_15); -lean_ctor_set_uint8(x_142, sizeof(void*)*10, x_124); -lean_ctor_set_uint8(x_142, sizeof(void*)*10 + 1, x_125); -lean_ctor_set_uint8(x_142, sizeof(void*)*10 + 2, x_126); -x_143 = l_Lean_Elab_Term_whnf(x_1, x_2, x_142, x_4); -if (lean_obj_tag(x_143) == 0) +lean_ctor_set(x_137, 0, x_128); +lean_ctor_set_uint8(x_137, sizeof(void*)*1, x_129); +lean_ctor_set_uint8(x_137, sizeof(void*)*1 + 1, x_130); +lean_ctor_set_uint8(x_137, sizeof(void*)*1 + 2, x_131); +lean_ctor_set_uint8(x_137, sizeof(void*)*1 + 3, x_132); +lean_ctor_set_uint8(x_137, sizeof(void*)*1 + 4, x_133); +lean_ctor_set_uint8(x_137, sizeof(void*)*1 + 5, x_134); +lean_ctor_set_uint8(x_137, sizeof(void*)*1 + 6, x_136); +x_138 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_138, 0, x_137); +lean_ctor_set(x_138, 1, x_124); +lean_ctor_set(x_138, 2, x_125); +lean_ctor_set(x_138, 3, x_126); +lean_ctor_set(x_138, 4, x_127); +x_139 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_139, 0, x_138); +lean_ctor_set(x_139, 1, x_6); +lean_ctor_set(x_139, 2, x_7); +lean_ctor_set(x_139, 3, x_8); +lean_ctor_set(x_139, 4, x_9); +lean_ctor_set(x_139, 5, x_10); +lean_ctor_set(x_139, 6, x_11); +lean_ctor_set(x_139, 7, x_12); +lean_ctor_set(x_139, 8, x_13); +lean_ctor_set(x_139, 9, x_14); +lean_ctor_set(x_139, 10, x_18); +lean_ctor_set_uint8(x_139, sizeof(void*)*11, x_15); +lean_ctor_set_uint8(x_139, sizeof(void*)*11 + 1, x_16); +lean_ctor_set_uint8(x_139, sizeof(void*)*11 + 2, x_17); +x_140 = l_Lean_Elab_Term_whnf(x_1, x_139, x_3); +if (lean_obj_tag(x_140) == 0) { -lean_object* x_144; -x_144 = lean_ctor_get(x_143, 0); +lean_object* x_141; +x_141 = lean_ctor_get(x_140, 0); +lean_inc(x_141); +if (lean_obj_tag(x_141) == 5) +{ +lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; +x_142 = lean_ctor_get(x_140, 1); +lean_inc(x_142); +lean_dec(x_140); +x_143 = lean_ctor_get(x_141, 0); +lean_inc(x_143); +x_144 = lean_ctor_get(x_141, 1); lean_inc(x_144); -if (lean_obj_tag(x_144) == 5) +lean_dec(x_141); +x_145 = l_Lean_mkOptionalNode___closed__2; +lean_inc(x_143); +x_146 = lean_array_push(x_145, x_143); +x_147 = l___private_Lean_Elab_Term_7__isMonad_x3f___closed__2; +lean_inc(x_2); +x_148 = l_Lean_Elab_Term_mkAppM(x_147, x_146, x_2, x_142); +lean_dec(x_146); +if (lean_obj_tag(x_148) == 0) { -lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; -x_145 = lean_ctor_get(x_143, 1); -lean_inc(x_145); -lean_dec(x_143); -x_146 = lean_ctor_get(x_144, 0); -lean_inc(x_146); -x_147 = lean_ctor_get(x_144, 1); -lean_inc(x_147); -lean_dec(x_144); -x_148 = l_Lean_mkOptionalNode___closed__2; -lean_inc(x_146); -x_149 = lean_array_push(x_148, x_146); -x_150 = l___private_Lean_Elab_Term_7__isMonad_x3f___closed__2; -lean_inc(x_3); -x_151 = l_Lean_Elab_Term_mkAppM(x_1, x_150, x_149, x_3, x_145); -lean_dec(x_149); +lean_object* x_149; lean_object* x_150; lean_object* x_151; +x_149 = lean_ctor_get(x_148, 0); +lean_inc(x_149); +x_150 = lean_ctor_get(x_148, 1); +lean_inc(x_150); +lean_dec(x_148); +x_151 = l_Lean_Elab_Term_trySynthInstance(x_149, x_2, x_150); if (lean_obj_tag(x_151) == 0) { -lean_object* x_152; lean_object* x_153; lean_object* x_154; +lean_object* x_152; x_152 = lean_ctor_get(x_151, 0); lean_inc(x_152); +if (lean_obj_tag(x_152) == 1) +{ +lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; x_153 = lean_ctor_get(x_151, 1); lean_inc(x_153); -lean_dec(x_151); -x_154 = l_Lean_Elab_Term_trySynthInstance(x_1, x_152, x_3, x_153); -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) == 1) -{ -lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; -x_156 = lean_ctor_get(x_154, 1); -lean_inc(x_156); -if (lean_is_exclusive(x_154)) { - lean_ctor_release(x_154, 0); - lean_ctor_release(x_154, 1); - x_157 = x_154; -} else { - lean_dec_ref(x_154); - x_157 = lean_box(0); -} -x_158 = lean_ctor_get(x_155, 0); -lean_inc(x_158); -lean_dec(x_155); -x_159 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_159, 0, x_146); -lean_ctor_set(x_159, 1, x_147); -lean_ctor_set(x_159, 2, x_158); -x_160 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_160, 0, x_159); -if (lean_is_scalar(x_157)) { - x_161 = lean_alloc_ctor(0, 2, 0); -} else { - x_161 = x_157; -} -lean_ctor_set(x_161, 0, x_160); -lean_ctor_set(x_161, 1, x_156); -return x_161; -} -else -{ -lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; -lean_dec(x_155); -lean_dec(x_147); -lean_dec(x_146); -x_162 = lean_ctor_get(x_154, 1); -lean_inc(x_162); -if (lean_is_exclusive(x_154)) { - lean_ctor_release(x_154, 0); - lean_ctor_release(x_154, 1); - x_163 = x_154; -} else { - lean_dec_ref(x_154); - x_163 = lean_box(0); -} -x_164 = lean_box(0); -if (lean_is_scalar(x_163)) { - x_165 = lean_alloc_ctor(0, 2, 0); -} else { - x_165 = x_163; -} -lean_ctor_set(x_165, 0, x_164); -lean_ctor_set(x_165, 1, x_162); -return x_165; -} -} -else -{ -lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; -lean_dec(x_147); -lean_dec(x_146); -x_166 = lean_ctor_get(x_154, 1); -lean_inc(x_166); -if (lean_is_exclusive(x_154)) { - lean_ctor_release(x_154, 0); - lean_ctor_release(x_154, 1); - x_167 = x_154; -} else { - lean_dec_ref(x_154); - x_167 = lean_box(0); -} -x_168 = lean_box(0); -if (lean_is_scalar(x_167)) { - x_169 = lean_alloc_ctor(0, 2, 0); -} else { - x_169 = x_167; - lean_ctor_set_tag(x_169, 0); -} -lean_ctor_set(x_169, 0, x_168); -lean_ctor_set(x_169, 1, x_166); -return x_169; -} -} -else -{ -lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; -lean_dec(x_147); -lean_dec(x_146); -lean_dec(x_3); -x_170 = lean_ctor_get(x_151, 1); -lean_inc(x_170); if (lean_is_exclusive(x_151)) { lean_ctor_release(x_151, 0); lean_ctor_release(x_151, 1); - x_171 = x_151; + x_154 = x_151; } else { lean_dec_ref(x_151); - x_171 = lean_box(0); + x_154 = lean_box(0); } -x_172 = lean_box(0); -if (lean_is_scalar(x_171)) { - x_173 = lean_alloc_ctor(0, 2, 0); +x_155 = lean_ctor_get(x_152, 0); +lean_inc(x_155); +lean_dec(x_152); +x_156 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_156, 0, x_143); +lean_ctor_set(x_156, 1, x_144); +lean_ctor_set(x_156, 2, x_155); +x_157 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_157, 0, x_156); +if (lean_is_scalar(x_154)) { + x_158 = lean_alloc_ctor(0, 2, 0); } else { - x_173 = x_171; - lean_ctor_set_tag(x_173, 0); -} -lean_ctor_set(x_173, 0, x_172); -lean_ctor_set(x_173, 1, x_170); -return x_173; + x_158 = x_154; } +lean_ctor_set(x_158, 0, x_157); +lean_ctor_set(x_158, 1, x_153); +return x_158; } else { -lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; +lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; +lean_dec(x_152); lean_dec(x_144); -lean_dec(x_3); -x_174 = lean_ctor_get(x_143, 1); -lean_inc(x_174); -if (lean_is_exclusive(x_143)) { - lean_ctor_release(x_143, 0); - lean_ctor_release(x_143, 1); - x_175 = x_143; +lean_dec(x_143); +x_159 = lean_ctor_get(x_151, 1); +lean_inc(x_159); +if (lean_is_exclusive(x_151)) { + lean_ctor_release(x_151, 0); + lean_ctor_release(x_151, 1); + x_160 = x_151; } else { - lean_dec_ref(x_143); - x_175 = lean_box(0); + lean_dec_ref(x_151); + x_160 = lean_box(0); } -x_176 = lean_box(0); -if (lean_is_scalar(x_175)) { - x_177 = lean_alloc_ctor(0, 2, 0); +x_161 = lean_box(0); +if (lean_is_scalar(x_160)) { + x_162 = lean_alloc_ctor(0, 2, 0); } else { - x_177 = x_175; + x_162 = x_160; } -lean_ctor_set(x_177, 0, x_176); -lean_ctor_set(x_177, 1, x_174); -return x_177; +lean_ctor_set(x_162, 0, x_161); +lean_ctor_set(x_162, 1, x_159); +return x_162; } } else { -lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; -lean_dec(x_3); -x_178 = lean_ctor_get(x_143, 0); -lean_inc(x_178); -x_179 = lean_ctor_get(x_143, 1); -lean_inc(x_179); -if (lean_is_exclusive(x_143)) { - lean_ctor_release(x_143, 0); - lean_ctor_release(x_143, 1); - x_180 = x_143; +lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; +lean_dec(x_144); +lean_dec(x_143); +x_163 = lean_ctor_get(x_151, 1); +lean_inc(x_163); +if (lean_is_exclusive(x_151)) { + lean_ctor_release(x_151, 0); + lean_ctor_release(x_151, 1); + x_164 = x_151; } else { - lean_dec_ref(x_143); - x_180 = lean_box(0); + lean_dec_ref(x_151); + x_164 = lean_box(0); } -if (lean_is_scalar(x_180)) { - x_181 = lean_alloc_ctor(1, 2, 0); +x_165 = lean_box(0); +if (lean_is_scalar(x_164)) { + x_166 = lean_alloc_ctor(0, 2, 0); } else { - x_181 = x_180; + x_166 = x_164; + lean_ctor_set_tag(x_166, 0); } -lean_ctor_set(x_181, 0, x_178); -lean_ctor_set(x_181, 1, x_179); -return x_181; +lean_ctor_set(x_166, 0, x_165); +lean_ctor_set(x_166, 1, x_163); +return x_166; +} +} +else +{ +lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; +lean_dec(x_144); +lean_dec(x_143); +lean_dec(x_2); +x_167 = lean_ctor_get(x_148, 1); +lean_inc(x_167); +if (lean_is_exclusive(x_148)) { + lean_ctor_release(x_148, 0); + lean_ctor_release(x_148, 1); + x_168 = x_148; +} else { + lean_dec_ref(x_148); + x_168 = lean_box(0); +} +x_169 = lean_box(0); +if (lean_is_scalar(x_168)) { + x_170 = lean_alloc_ctor(0, 2, 0); +} else { + x_170 = x_168; + lean_ctor_set_tag(x_170, 0); +} +lean_ctor_set(x_170, 0, x_169); +lean_ctor_set(x_170, 1, x_167); +return x_170; +} +} +else +{ +lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; +lean_dec(x_141); +lean_dec(x_2); +x_171 = lean_ctor_get(x_140, 1); +lean_inc(x_171); +if (lean_is_exclusive(x_140)) { + lean_ctor_release(x_140, 0); + lean_ctor_release(x_140, 1); + x_172 = x_140; +} else { + lean_dec_ref(x_140); + x_172 = lean_box(0); +} +x_173 = lean_box(0); +if (lean_is_scalar(x_172)) { + x_174 = lean_alloc_ctor(0, 2, 0); +} else { + x_174 = x_172; +} +lean_ctor_set(x_174, 0, x_173); +lean_ctor_set(x_174, 1, x_171); +return x_174; +} +} +else +{ +lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; +lean_dec(x_2); +x_175 = lean_ctor_get(x_140, 0); +lean_inc(x_175); +x_176 = lean_ctor_get(x_140, 1); +lean_inc(x_176); +if (lean_is_exclusive(x_140)) { + lean_ctor_release(x_140, 0); + lean_ctor_release(x_140, 1); + x_177 = x_140; +} else { + lean_dec_ref(x_140); + x_177 = lean_box(0); +} +if (lean_is_scalar(x_177)) { + x_178 = lean_alloc_ctor(1, 2, 0); +} else { + x_178 = x_177; +} +lean_ctor_set(x_178, 0, x_175); +lean_ctor_set(x_178, 1, x_176); +return x_178; } } } } -lean_object* l___private_Lean_Elab_Term_7__isMonad_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Term_synthesizeInst(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; -x_5 = l___private_Lean_Elab_Term_7__isMonad_x3f(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} -lean_object* l_Lean_Elab_Term_synthesizeInst(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; -lean_inc(x_3); -x_5 = l_Lean_Elab_Term_instantiateMVars(x_1, x_2, x_3, x_4); -x_6 = lean_ctor_get(x_5, 0); +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +lean_inc(x_2); +x_4 = l_Lean_Elab_Term_instantiateMVars(x_1, x_2, x_3); +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_4, 1); lean_inc(x_6); -x_7 = lean_ctor_get(x_5, 1); -lean_inc(x_7); +lean_dec(x_4); +lean_inc(x_2); +lean_inc(x_5); +x_7 = l_Lean_Elab_Term_trySynthInstance(x_5, x_2, x_6); +if (lean_obj_tag(x_7) == 0) +{ +uint8_t x_8; +x_8 = !lean_is_exclusive(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_ctor_get(x_7, 0); +x_10 = lean_ctor_get(x_7, 1); +if (lean_obj_tag(x_9) == 1) +{ +lean_object* x_18; lean_dec(x_5); -lean_inc(x_3); -lean_inc(x_6); -x_8 = l_Lean_Elab_Term_trySynthInstance(x_1, x_6, x_3, x_7); -if (lean_obj_tag(x_8) == 0) -{ -uint8_t x_9; -x_9 = !lean_is_exclusive(x_8); -if (x_9 == 0) -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_10 = lean_ctor_get(x_8, 0); -x_11 = lean_ctor_get(x_8, 1); -if (lean_obj_tag(x_10) == 1) +lean_dec(x_2); +x_18 = lean_ctor_get(x_9, 0); +lean_inc(x_18); +lean_dec(x_9); +lean_ctor_set(x_7, 0, x_18); +return x_7; +} +else { lean_object* x_19; -lean_dec(x_6); -lean_dec(x_3); -x_19 = lean_ctor_get(x_10, 0); -lean_inc(x_19); -lean_dec(x_10); -lean_ctor_set(x_8, 0, x_19); -return x_8; +lean_free_object(x_7); +lean_dec(x_9); +x_19 = lean_box(0); +x_11 = x_19; +goto block_17; } -else +block_17: { -lean_object* x_20; -lean_free_object(x_8); -lean_dec(x_10); -x_20 = lean_box(0); -x_12 = x_20; -goto block_18; -} -block_18: -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -lean_dec(x_12); -x_13 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_13, 0, x_6); -x_14 = l_Lean_indentExpr(x_13); -x_15 = l_Lean_Elab_Term_synthesizeInstMVarCore___closed__3; -x_16 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_14); -x_17 = l_Lean_Elab_Term_throwError___rarg(x_1, x_16, x_3, x_11); -return x_17; +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +lean_dec(x_11); +x_12 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_12, 0, x_5); +x_13 = l_Lean_indentExpr(x_12); +x_14 = l_Lean_Elab_Term_synthesizeInstMVarCore___closed__3; +x_15 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_13); +x_16 = l_Lean_Elab_Term_throwError___rarg(x_15, x_2, x_10); +return x_16; } } else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_8, 0); -x_22 = lean_ctor_get(x_8, 1); -lean_inc(x_22); +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_7, 0); +x_21 = lean_ctor_get(x_7, 1); lean_inc(x_21); -lean_dec(x_8); -if (lean_obj_tag(x_21) == 1) +lean_inc(x_20); +lean_dec(x_7); +if (lean_obj_tag(x_20) == 1) { -lean_object* x_30; lean_object* x_31; -lean_dec(x_6); -lean_dec(x_3); -x_30 = lean_ctor_get(x_21, 0); -lean_inc(x_30); -lean_dec(x_21); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_22); -return x_31; +lean_object* x_29; lean_object* x_30; +lean_dec(x_5); +lean_dec(x_2); +x_29 = lean_ctor_get(x_20, 0); +lean_inc(x_29); +lean_dec(x_20); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_21); +return x_30; } else { -lean_object* x_32; -lean_dec(x_21); -x_32 = lean_box(0); -x_23 = x_32; -goto block_29; +lean_object* x_31; +lean_dec(x_20); +x_31 = lean_box(0); +x_22 = x_31; +goto block_28; } -block_29: +block_28: { -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -lean_dec(x_23); -x_24 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_24, 0, x_6); -x_25 = l_Lean_indentExpr(x_24); -x_26 = l_Lean_Elab_Term_synthesizeInstMVarCore___closed__3; -x_27 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_25); -x_28 = l_Lean_Elab_Term_throwError___rarg(x_1, x_27, x_3, x_22); -return x_28; +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +lean_dec(x_22); +x_23 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_23, 0, x_5); +x_24 = l_Lean_indentExpr(x_23); +x_25 = l_Lean_Elab_Term_synthesizeInstMVarCore___closed__3; +x_26 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_24); +x_27 = l_Lean_Elab_Term_throwError___rarg(x_26, x_2, x_21); +return x_27; } } } else { -uint8_t x_33; -lean_dec(x_6); -lean_dec(x_3); -x_33 = !lean_is_exclusive(x_8); -if (x_33 == 0) -{ -return x_8; -} -else -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_8, 0); -x_35 = lean_ctor_get(x_8, 1); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_8); -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; -} -} -} -} -lean_object* l_Lean_Elab_Term_synthesizeInst___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_Elab_Term_synthesizeInst(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} -lean_object* l___private_Lean_Elab_Term_8__tryPureCoe_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_8; uint8_t x_9; -x_8 = l_Lean_Expr_getAppFn___main(x_3); -x_9 = l_Lean_Expr_isMVar(x_8); -lean_dec(x_8); -if (x_9 == 0) -{ -lean_object* x_10; uint8_t x_11; -x_10 = l_Lean_Expr_getAppFn___main(x_4); -x_11 = l_Lean_Expr_isMVar(x_10); -lean_dec(x_10); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_box(0); -lean_inc(x_6); -lean_inc(x_1); -x_13 = l_Lean_Elab_Term_tryCoe(x_1, x_3, x_4, x_5, x_12, x_6, x_7); -if (lean_obj_tag(x_13) == 0) -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_14 = lean_ctor_get(x_13, 1); -lean_inc(x_14); -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -x_16 = lean_ctor_get(x_13, 0); -lean_inc(x_16); -lean_dec(x_13); -x_17 = !lean_is_exclusive(x_15); -if (x_17 == 0) -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_18 = lean_ctor_get(x_15, 4); -x_19 = lean_ctor_get(x_6, 0); -lean_inc(x_19); -x_20 = l_Lean_TraceState_Inhabited___closed__1; -lean_ctor_set(x_15, 4, x_20); -x_21 = l_Lean_Meta_mkPure(x_2, x_16, x_19, x_15); -if (lean_obj_tag(x_21) == 0) -{ -uint8_t x_22; -x_22 = !lean_is_exclusive(x_21); -if (x_22 == 0) -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_23 = lean_ctor_get(x_21, 0); -x_24 = lean_ctor_get(x_21, 1); -x_25 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_6, x_14, x_24, x_18); -lean_dec(x_1); -x_26 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_26, 0, x_23); -lean_ctor_set(x_21, 1, x_25); -lean_ctor_set(x_21, 0, x_26); -return x_21; -} -else -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_27 = lean_ctor_get(x_21, 0); -x_28 = lean_ctor_get(x_21, 1); -lean_inc(x_28); -lean_inc(x_27); -lean_dec(x_21); -x_29 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_6, x_14, x_28, x_18); -lean_dec(x_1); -x_30 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_30, 0, x_27); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_29); -return x_31; -} -} -else -{ uint8_t x_32; -x_32 = !lean_is_exclusive(x_21); +lean_dec(x_5); +lean_dec(x_2); +x_32 = !lean_is_exclusive(x_7); if (x_32 == 0) { +return x_7; +} +else +{ lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_21, 1); -x_34 = lean_ctor_get(x_21, 0); -lean_dec(x_34); -x_35 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_6, x_14, x_33, x_18); -lean_dec(x_1); -lean_ctor_set_tag(x_21, 0); -lean_ctor_set(x_21, 1, x_35); -lean_ctor_set(x_21, 0, x_12); -return x_21; +x_33 = lean_ctor_get(x_7, 0); +x_34 = lean_ctor_get(x_7, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_7); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +return x_35; +} +} +} +} +lean_object* l___private_Lean_Elab_Term_8__tryPureCoe_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) { +_start: +{ +lean_object* x_7; uint8_t x_8; +x_7 = l_Lean_Expr_getAppFn___main(x_2); +x_8 = l_Lean_Expr_isMVar(x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +lean_object* x_9; uint8_t x_10; +x_9 = l_Lean_Expr_getAppFn___main(x_3); +x_10 = l_Lean_Expr_isMVar(x_9); +lean_dec(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_box(0); +lean_inc(x_5); +x_12 = l_Lean_Elab_Term_tryCoe(x_2, x_3, x_4, x_11, x_5, x_6); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_12, 0); +lean_inc(x_15); +lean_dec(x_12); +x_16 = !lean_is_exclusive(x_14); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_17 = lean_ctor_get(x_14, 4); +x_18 = lean_ctor_get(x_5, 0); +lean_inc(x_18); +x_19 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_14, 4, x_19); +x_20 = l_Lean_Meta_mkPure(x_1, x_15, x_18, x_14); +if (lean_obj_tag(x_20) == 0) +{ +uint8_t x_21; +x_21 = !lean_is_exclusive(x_20); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_22 = lean_ctor_get(x_20, 0); +x_23 = lean_ctor_get(x_20, 1); +x_24 = l___private_Lean_Elab_Term_3__fromMetaState(x_5, x_13, x_23, x_17); +x_25 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_25, 0, x_22); +lean_ctor_set(x_20, 1, x_24); +lean_ctor_set(x_20, 0, x_25); +return x_20; } else { -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_21, 1); -lean_inc(x_36); -lean_dec(x_21); -x_37 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_6, x_14, x_36, x_18); -lean_dec(x_1); -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_12); -lean_ctor_set(x_38, 1, x_37); -return x_38; +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_26 = lean_ctor_get(x_20, 0); +x_27 = lean_ctor_get(x_20, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_20); +x_28 = l___private_Lean_Elab_Term_3__fromMetaState(x_5, x_13, x_27, x_17); +x_29 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_29, 0, x_26); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_28); +return x_30; +} +} +else +{ +uint8_t x_31; +x_31 = !lean_is_exclusive(x_20); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_20, 1); +x_33 = lean_ctor_get(x_20, 0); +lean_dec(x_33); +x_34 = l___private_Lean_Elab_Term_3__fromMetaState(x_5, x_13, x_32, x_17); +lean_ctor_set_tag(x_20, 0); +lean_ctor_set(x_20, 1, x_34); +lean_ctor_set(x_20, 0, x_11); +return x_20; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_20, 1); +lean_inc(x_35); +lean_dec(x_20); +x_36 = l___private_Lean_Elab_Term_3__fromMetaState(x_5, x_13, x_35, x_17); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_11); +lean_ctor_set(x_37, 1, x_36); +return x_37; } } } 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; lean_object* x_47; lean_object* x_48; -x_39 = lean_ctor_get(x_15, 0); -x_40 = lean_ctor_get(x_15, 1); -x_41 = lean_ctor_get(x_15, 2); -x_42 = lean_ctor_get(x_15, 3); -x_43 = lean_ctor_get(x_15, 4); -x_44 = lean_ctor_get(x_15, 5); -lean_inc(x_44); +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_38 = lean_ctor_get(x_14, 0); +x_39 = lean_ctor_get(x_14, 1); +x_40 = lean_ctor_get(x_14, 2); +x_41 = lean_ctor_get(x_14, 3); +x_42 = lean_ctor_get(x_14, 4); +x_43 = lean_ctor_get(x_14, 5); lean_inc(x_43); lean_inc(x_42); lean_inc(x_41); lean_inc(x_40); lean_inc(x_39); -lean_dec(x_15); -x_45 = lean_ctor_get(x_6, 0); -lean_inc(x_45); -x_46 = l_Lean_TraceState_Inhabited___closed__1; -x_47 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_47, 0, x_39); -lean_ctor_set(x_47, 1, x_40); -lean_ctor_set(x_47, 2, x_41); -lean_ctor_set(x_47, 3, x_42); -lean_ctor_set(x_47, 4, x_46); -lean_ctor_set(x_47, 5, x_44); -x_48 = l_Lean_Meta_mkPure(x_2, x_16, x_45, x_47); -if (lean_obj_tag(x_48) == 0) +lean_inc(x_38); +lean_dec(x_14); +x_44 = lean_ctor_get(x_5, 0); +lean_inc(x_44); +x_45 = l_Lean_TraceState_Inhabited___closed__1; +x_46 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_46, 0, x_38); +lean_ctor_set(x_46, 1, x_39); +lean_ctor_set(x_46, 2, x_40); +lean_ctor_set(x_46, 3, x_41); +lean_ctor_set(x_46, 4, x_45); +lean_ctor_set(x_46, 5, x_43); +x_47 = l_Lean_Meta_mkPure(x_1, x_15, x_44, x_46); +if (lean_obj_tag(x_47) == 0) { -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_49 = lean_ctor_get(x_48, 0); +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_48 = lean_ctor_get(x_47, 0); +lean_inc(x_48); +x_49 = lean_ctor_get(x_47, 1); lean_inc(x_49); -x_50 = lean_ctor_get(x_48, 1); -lean_inc(x_50); -if (lean_is_exclusive(x_48)) { - lean_ctor_release(x_48, 0); - lean_ctor_release(x_48, 1); - x_51 = x_48; +if (lean_is_exclusive(x_47)) { + lean_ctor_release(x_47, 0); + lean_ctor_release(x_47, 1); + x_50 = x_47; } else { - lean_dec_ref(x_48); - x_51 = lean_box(0); + lean_dec_ref(x_47); + x_50 = lean_box(0); } -x_52 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_6, x_14, x_50, x_43); +x_51 = l___private_Lean_Elab_Term_3__fromMetaState(x_5, x_13, x_49, x_42); +x_52 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_52, 0, x_48); +if (lean_is_scalar(x_50)) { + x_53 = lean_alloc_ctor(0, 2, 0); +} else { + x_53 = x_50; +} +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_51); +return x_53; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_54 = lean_ctor_get(x_47, 1); +lean_inc(x_54); +if (lean_is_exclusive(x_47)) { + lean_ctor_release(x_47, 0); + lean_ctor_release(x_47, 1); + x_55 = x_47; +} else { + lean_dec_ref(x_47); + x_55 = lean_box(0); +} +x_56 = l___private_Lean_Elab_Term_3__fromMetaState(x_5, x_13, x_54, x_42); +if (lean_is_scalar(x_55)) { + x_57 = lean_alloc_ctor(0, 2, 0); +} else { + x_57 = x_55; + lean_ctor_set_tag(x_57, 0); +} +lean_ctor_set(x_57, 0, x_11); +lean_ctor_set(x_57, 1, x_56); +return x_57; +} +} +} +else +{ +uint8_t x_58; +lean_dec(x_5); lean_dec(x_1); -x_53 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_53, 0, x_49); -if (lean_is_scalar(x_51)) { - x_54 = lean_alloc_ctor(0, 2, 0); -} else { - x_54 = x_51; -} -lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_54, 1, x_52); -return x_54; +x_58 = !lean_is_exclusive(x_12); +if (x_58 == 0) +{ +lean_object* x_59; +x_59 = lean_ctor_get(x_12, 0); +lean_dec(x_59); +lean_ctor_set_tag(x_12, 0); +lean_ctor_set(x_12, 0, x_11); +return x_12; } else { -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_55 = lean_ctor_get(x_48, 1); -lean_inc(x_55); -if (lean_is_exclusive(x_48)) { - lean_ctor_release(x_48, 0); - lean_ctor_release(x_48, 1); - x_56 = x_48; -} else { - lean_dec_ref(x_48); - x_56 = lean_box(0); -} -x_57 = l___private_Lean_Elab_Term_3__fromMetaState(x_1, x_6, x_14, x_55, x_43); -lean_dec(x_1); -if (lean_is_scalar(x_56)) { - x_58 = lean_alloc_ctor(0, 2, 0); -} else { - x_58 = x_56; - lean_ctor_set_tag(x_58, 0); -} -lean_ctor_set(x_58, 0, x_12); -lean_ctor_set(x_58, 1, x_57); -return x_58; +lean_object* x_60; lean_object* x_61; +x_60 = lean_ctor_get(x_12, 1); +lean_inc(x_60); +lean_dec(x_12); +x_61 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_61, 0, x_11); +lean_ctor_set(x_61, 1, x_60); +return x_61; } } } else { -uint8_t x_59; -lean_dec(x_6); -lean_dec(x_2); -lean_dec(x_1); -x_59 = !lean_is_exclusive(x_13); -if (x_59 == 0) -{ -lean_object* x_60; -x_60 = lean_ctor_get(x_13, 0); -lean_dec(x_60); -lean_ctor_set_tag(x_13, 0); -lean_ctor_set(x_13, 0, x_12); -return x_13; -} -else -{ -lean_object* x_61; lean_object* x_62; -x_61 = lean_ctor_get(x_13, 1); -lean_inc(x_61); -lean_dec(x_13); -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_12); -lean_ctor_set(x_62, 1, x_61); -return x_62; -} -} -} -else -{ -lean_object* x_63; lean_object* x_64; -lean_dec(x_6); +lean_object* x_62; lean_object* x_63; 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_7); -return x_64; +x_62 = lean_box(0); +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_6); +return x_63; } } else { -lean_object* x_65; lean_object* x_66; -lean_dec(x_6); +lean_object* x_64; lean_object* x_65; lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_65 = lean_box(0); -x_66 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_66, 0, x_65); -lean_ctor_set(x_66, 1, x_7); -return x_66; +x_64 = lean_box(0); +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_6); +return x_65; } } } @@ -16773,1167 +16883,1133 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -lean_object* l_Lean_Elab_Term_tryLiftAndCoe(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* l_Lean_Elab_Term_tryLiftAndCoe(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_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -lean_inc(x_6); -x_8 = l_Lean_Elab_Term_instantiateMVars(x_1, x_3, x_6, x_7); -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); -lean_inc(x_6); -lean_inc(x_2); -x_11 = l___private_Lean_Elab_Term_7__isMonad_x3f(x_1, x_2, x_6, x_10); -if (lean_obj_tag(x_11) == 0) -{ -lean_object* x_12; -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -if (lean_obj_tag(x_12) == 0) -{ -lean_object* x_13; lean_object* x_14; -x_13 = lean_ctor_get(x_11, 1); -lean_inc(x_13); -lean_dec(x_11); -x_14 = l_Lean_Elab_Term_tryCoe(x_1, x_2, x_9, x_4, x_5, x_6, x_13); -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_object* x_24; -x_15 = lean_ctor_get(x_12, 0); -lean_inc(x_15); -lean_dec(x_12); -x_16 = lean_ctor_get(x_11, 1); -lean_inc(x_16); -lean_dec(x_11); -x_17 = lean_ctor_get(x_15, 0); -lean_inc(x_17); -x_18 = lean_ctor_get(x_15, 1); -lean_inc(x_18); -x_19 = lean_ctor_get(x_15, 2); -lean_inc(x_19); -lean_dec(x_15); -lean_inc(x_6); -x_20 = l_Lean_Elab_Term_instantiateMVars(x_1, x_18, x_6, x_16); -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -x_22 = lean_ctor_get(x_20, 1); -lean_inc(x_22); -lean_dec(x_20); -lean_inc(x_6); -lean_inc(x_4); -lean_inc(x_9); -lean_inc(x_21); -lean_inc(x_17); -lean_inc(x_1); -x_23 = l___private_Lean_Elab_Term_8__tryPureCoe_x3f(x_1, x_17, x_21, x_9, x_4, x_6, x_22); -x_24 = lean_ctor_get(x_23, 0); -lean_inc(x_24); -if (lean_obj_tag(x_24) == 0) -{ -lean_object* x_25; lean_object* x_26; -x_25 = lean_ctor_get(x_23, 1); -lean_inc(x_25); -lean_dec(x_23); -lean_inc(x_6); -lean_inc(x_9); -x_26 = l___private_Lean_Elab_Term_6__isTypeApp_x3f(x_1, x_9, x_6, x_25); -if (lean_obj_tag(x_26) == 0) -{ -lean_object* x_27; -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -if (lean_obj_tag(x_27) == 0) -{ -lean_object* x_28; lean_object* x_29; -lean_dec(x_21); -lean_dec(x_19); -lean_dec(x_17); -x_28 = lean_ctor_get(x_26, 1); -lean_inc(x_28); -lean_dec(x_26); -x_29 = l_Lean_Elab_Term_tryCoe(x_1, x_2, x_9, x_4, x_5, x_6, x_28); -return x_29; -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_30 = lean_ctor_get(x_27, 0); -lean_inc(x_30); -lean_dec(x_27); -x_31 = lean_ctor_get(x_26, 1); -lean_inc(x_31); -lean_dec(x_26); -x_32 = lean_ctor_get(x_30, 0); -lean_inc(x_32); -x_33 = lean_ctor_get(x_30, 1); -lean_inc(x_33); -lean_dec(x_30); -lean_inc(x_6); -lean_inc(x_17); -lean_inc(x_32); -x_34 = l_Lean_Elab_Term_isDefEq(x_1, x_32, x_17, x_6, x_31); -if (lean_obj_tag(x_34) == 0) -{ -lean_object* x_35; uint8_t x_36; -x_35 = lean_ctor_get(x_34, 0); -lean_inc(x_35); -x_36 = lean_unbox(x_35); -lean_dec(x_35); -if (x_36 == 0) -{ -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_37 = lean_ctor_get(x_34, 1); -lean_inc(x_37); -lean_dec(x_34); -x_38 = l_Lean_mkAppStx___closed__9; -lean_inc(x_32); -x_39 = lean_array_push(x_38, x_32); -lean_inc(x_17); -x_40 = lean_array_push(x_39, x_17); -x_41 = l_Lean_Elab_Term_tryLiftAndCoe___closed__2; -lean_inc(x_6); -x_42 = l_Lean_Elab_Term_mkAppM(x_1, x_41, x_40, x_6, x_37); -lean_dec(x_40); -if (lean_obj_tag(x_42) == 0) -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_42, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_42, 1); -lean_inc(x_44); -lean_dec(x_42); -lean_inc(x_6); -x_45 = l_Lean_Elab_Term_synthesizeInst(x_1, x_43, x_6, x_44); -if (lean_obj_tag(x_45) == 0) -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_45, 0); -lean_inc(x_46); -x_47 = lean_ctor_get(x_45, 1); -lean_inc(x_47); -lean_dec(x_45); -lean_inc(x_6); -lean_inc(x_33); -x_48 = l_Lean_Elab_Term_getDecLevel(x_1, x_33, x_6, x_47); -if (lean_obj_tag(x_48) == 0) -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; -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); -lean_inc(x_6); -lean_inc(x_9); -x_51 = l_Lean_Elab_Term_getDecLevel(x_1, x_9, x_6, x_50); -if (lean_obj_tag(x_51) == 0) -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -x_53 = lean_ctor_get(x_51, 1); -lean_inc(x_53); -lean_dec(x_51); -lean_inc(x_6); -lean_inc(x_2); -x_54 = l_Lean_Elab_Term_getDecLevel(x_1, x_2, x_6, x_53); -if (lean_obj_tag(x_54) == 0) -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_55 = lean_ctor_get(x_54, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_54, 1); -lean_inc(x_56); -lean_dec(x_54); -x_57 = lean_box(0); -x_58 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_58, 0, x_55); -lean_ctor_set(x_58, 1, x_57); -x_59 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_59, 0, x_52); -lean_ctor_set(x_59, 1, x_58); -x_60 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_60, 0, x_49); -lean_ctor_set(x_60, 1, x_59); -x_61 = l_Lean_Elab_Term_tryLiftAndCoe___closed__4; -lean_inc(x_60); -x_62 = l_Lean_mkConst(x_61, x_60); -x_63 = l_Lean_Meta_caseValueAux___lambda__2___closed__8; -lean_inc(x_32); -x_64 = lean_array_push(x_63, x_32); -lean_inc(x_17); -x_65 = lean_array_push(x_64, x_17); -lean_inc(x_46); -x_66 = lean_array_push(x_65, x_46); -lean_inc(x_33); -x_67 = lean_array_push(x_66, x_33); -lean_inc(x_4); -x_68 = lean_array_push(x_67, x_4); -x_69 = lean_unsigned_to_nat(0u); -x_70 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_68, x_68, x_69, x_62); -lean_dec(x_68); -lean_inc(x_6); -lean_inc(x_70); -x_71 = l_Lean_Elab_Term_inferType(x_1, x_70, x_6, x_56); -if (lean_obj_tag(x_71) == 0) -{ -lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_72 = lean_ctor_get(x_71, 0); -lean_inc(x_72); -x_73 = lean_ctor_get(x_71, 1); -lean_inc(x_73); -lean_dec(x_71); -lean_inc(x_6); -lean_inc(x_2); -x_74 = l_Lean_Elab_Term_isDefEq(x_1, x_2, x_72, x_6, x_73); -if (lean_obj_tag(x_74) == 0) -{ -lean_object* x_75; uint8_t x_76; -x_75 = lean_ctor_get(x_74, 0); -lean_inc(x_75); -x_76 = lean_unbox(x_75); -lean_dec(x_75); -if (x_76 == 0) -{ -lean_object* x_77; lean_object* x_78; -lean_dec(x_70); -x_77 = lean_ctor_get(x_74, 1); -lean_inc(x_77); -lean_dec(x_74); -lean_inc(x_6); -lean_inc(x_33); -x_78 = l_Lean_Elab_Term_getLevel(x_1, x_33, x_6, x_77); -if (lean_obj_tag(x_78) == 0) -{ -lean_object* x_79; lean_object* x_80; lean_object* x_81; -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); -lean_inc(x_6); -lean_inc(x_21); -x_81 = l_Lean_Elab_Term_getLevel(x_1, x_21, x_6, x_80); -if (lean_obj_tag(x_81) == 0) -{ -lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; uint8_t x_95; lean_object* x_96; lean_object* x_97; -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_alloc_ctor(1, 2, 0); -lean_ctor_set(x_84, 0, x_82); -lean_ctor_set(x_84, 1, x_57); -x_85 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_85, 0, x_79); -lean_ctor_set(x_85, 1, x_84); -x_86 = l_Lean_Elab_Term_tryCoe___closed__2; -x_87 = l_Lean_mkConst(x_86, x_85); -x_88 = l___private_Lean_Meta_EqnCompiler_CaseArraySizes_2__introArrayLitAux___main___closed__3; -lean_inc(x_33); -x_89 = lean_array_push(x_88, x_33); -x_90 = l_Lean_Meta_assertExt___lambda__1___closed__1; -x_91 = lean_array_push(x_89, x_90); -lean_inc(x_21); -x_92 = lean_array_push(x_91, x_21); -x_93 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_92, x_92, x_69, x_87); -lean_dec(x_92); -x_94 = l___private_Lean_Elab_Term_5__expandCDot___main___closed__3; -x_95 = 0; -lean_inc(x_33); -x_96 = l_Lean_mkForall(x_94, x_95, x_33, x_93); -lean_inc(x_6); -x_97 = l_Lean_Elab_Term_synthesizeInst(x_1, x_96, x_6, x_83); -if (lean_obj_tag(x_97) == 0) -{ -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; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; -x_98 = lean_ctor_get(x_97, 0); -lean_inc(x_98); -x_99 = lean_ctor_get(x_97, 1); -lean_inc(x_99); -lean_dec(x_97); -x_100 = l_Lean_Elab_Term_tryLiftAndCoe___closed__6; -x_101 = l_Lean_mkConst(x_100, x_60); -x_102 = l_Lean_Elab_Term_tryLiftAndCoe___closed__7; -x_103 = lean_array_push(x_102, x_32); -x_104 = lean_array_push(x_103, x_17); -x_105 = lean_array_push(x_104, x_33); -x_106 = lean_array_push(x_105, x_21); -x_107 = lean_array_push(x_106, x_46); -x_108 = lean_array_push(x_107, x_98); -x_109 = lean_array_push(x_108, x_19); -lean_inc(x_4); -x_110 = lean_array_push(x_109, x_4); -x_111 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_110, x_110, x_69, x_101); -lean_dec(x_110); -lean_inc(x_6); -lean_inc(x_111); -x_112 = l_Lean_Elab_Term_inferType(x_1, x_111, x_6, x_99); -if (lean_obj_tag(x_112) == 0) -{ -lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_113 = lean_ctor_get(x_112, 0); -lean_inc(x_113); -x_114 = lean_ctor_get(x_112, 1); -lean_inc(x_114); -lean_dec(x_112); -lean_inc(x_6); -lean_inc(x_2); -x_115 = l_Lean_Elab_Term_isDefEq(x_1, x_2, x_113, x_6, x_114); -if (lean_obj_tag(x_115) == 0) -{ -lean_object* x_116; uint8_t x_117; -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); -x_117 = lean_unbox(x_116); -lean_dec(x_116); -if (x_117 == 0) -{ -lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; -lean_dec(x_111); -x_118 = lean_ctor_get(x_115, 1); -lean_inc(x_118); -lean_dec(x_115); -x_119 = lean_box(0); -lean_inc(x_6); +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_9); -lean_inc(x_2); -x_120 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_2, x_9, x_4, x_5, x_119, x_6, x_118); -x_121 = lean_ctor_get(x_120, 1); -lean_inc(x_121); -lean_dec(x_120); -x_122 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_2, x_9, x_4, x_5, x_119, x_6, x_121); -lean_dec(x_1); -return x_122; -} -else -{ -uint8_t x_123; -lean_dec(x_9); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_123 = !lean_is_exclusive(x_115); -if (x_123 == 0) -{ -lean_object* x_124; -x_124 = lean_ctor_get(x_115, 0); -lean_dec(x_124); -lean_ctor_set(x_115, 0, x_111); -return x_115; -} -else -{ -lean_object* x_125; lean_object* x_126; -x_125 = lean_ctor_get(x_115, 1); -lean_inc(x_125); -lean_dec(x_115); -x_126 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_126, 0, x_111); -lean_ctor_set(x_126, 1, x_125); -return x_126; -} -} -} -else -{ -lean_object* x_127; lean_object* x_128; lean_object* x_129; -lean_dec(x_111); -x_127 = lean_ctor_get(x_115, 1); -lean_inc(x_127); -lean_dec(x_115); -x_128 = lean_box(0); -x_129 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_2, x_9, x_4, x_5, x_128, x_6, x_127); -lean_dec(x_1); -return x_129; -} -} -else -{ -lean_object* x_130; lean_object* x_131; lean_object* x_132; -lean_dec(x_111); -x_130 = lean_ctor_get(x_112, 1); -lean_inc(x_130); -lean_dec(x_112); -x_131 = lean_box(0); -x_132 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_2, x_9, x_4, x_5, x_131, x_6, x_130); -lean_dec(x_1); -return x_132; -} -} -else -{ -lean_object* x_133; lean_object* x_134; lean_object* x_135; -lean_dec(x_60); -lean_dec(x_46); -lean_dec(x_33); -lean_dec(x_32); -lean_dec(x_21); -lean_dec(x_19); -lean_dec(x_17); -x_133 = lean_ctor_get(x_97, 1); -lean_inc(x_133); -lean_dec(x_97); -x_134 = lean_box(0); -x_135 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_2, x_9, x_4, x_5, x_134, x_6, x_133); -lean_dec(x_1); -return x_135; -} -} -else -{ -lean_object* x_136; lean_object* x_137; lean_object* x_138; -lean_dec(x_79); -lean_dec(x_60); -lean_dec(x_46); -lean_dec(x_33); -lean_dec(x_32); -lean_dec(x_21); -lean_dec(x_19); -lean_dec(x_17); -x_136 = lean_ctor_get(x_81, 1); -lean_inc(x_136); -lean_dec(x_81); -x_137 = lean_box(0); -x_138 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_2, x_9, x_4, x_5, x_137, x_6, x_136); -lean_dec(x_1); -return x_138; -} -} -else -{ -lean_object* x_139; lean_object* x_140; lean_object* x_141; -lean_dec(x_60); -lean_dec(x_46); -lean_dec(x_33); -lean_dec(x_32); -lean_dec(x_21); -lean_dec(x_19); -lean_dec(x_17); -x_139 = lean_ctor_get(x_78, 1); -lean_inc(x_139); -lean_dec(x_78); -x_140 = lean_box(0); -x_141 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_2, x_9, x_4, x_5, x_140, x_6, x_139); -lean_dec(x_1); -return x_141; -} -} -else -{ -uint8_t x_142; -lean_dec(x_60); -lean_dec(x_46); -lean_dec(x_33); -lean_dec(x_32); -lean_dec(x_21); -lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_9); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_142 = !lean_is_exclusive(x_74); -if (x_142 == 0) -{ -lean_object* x_143; -x_143 = lean_ctor_get(x_74, 0); -lean_dec(x_143); -lean_ctor_set(x_74, 0, x_70); -return x_74; -} -else -{ -lean_object* x_144; lean_object* x_145; -x_144 = lean_ctor_get(x_74, 1); -lean_inc(x_144); -lean_dec(x_74); -x_145 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_145, 0, x_70); -lean_ctor_set(x_145, 1, x_144); -return x_145; -} -} -} -else -{ -lean_object* x_146; lean_object* x_147; lean_object* x_148; -lean_dec(x_70); -lean_dec(x_60); -lean_dec(x_46); -lean_dec(x_33); -lean_dec(x_32); -lean_dec(x_21); -lean_dec(x_19); -lean_dec(x_17); -x_146 = lean_ctor_get(x_74, 1); -lean_inc(x_146); -lean_dec(x_74); -x_147 = lean_box(0); -x_148 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_2, x_9, x_4, x_5, x_147, x_6, x_146); -lean_dec(x_1); -return x_148; -} -} -else -{ -lean_object* x_149; lean_object* x_150; lean_object* x_151; -lean_dec(x_70); -lean_dec(x_60); -lean_dec(x_46); -lean_dec(x_33); -lean_dec(x_32); -lean_dec(x_21); -lean_dec(x_19); -lean_dec(x_17); -x_149 = lean_ctor_get(x_71, 1); -lean_inc(x_149); -lean_dec(x_71); -x_150 = lean_box(0); -x_151 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_2, x_9, x_4, x_5, x_150, x_6, x_149); -lean_dec(x_1); -return x_151; -} -} -else -{ -lean_object* x_152; lean_object* x_153; lean_object* x_154; -lean_dec(x_52); -lean_dec(x_49); -lean_dec(x_46); -lean_dec(x_33); -lean_dec(x_32); -lean_dec(x_21); -lean_dec(x_19); -lean_dec(x_17); -x_152 = lean_ctor_get(x_54, 1); -lean_inc(x_152); -lean_dec(x_54); -x_153 = lean_box(0); -x_154 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_2, x_9, x_4, x_5, x_153, x_6, x_152); -lean_dec(x_1); -return x_154; -} -} -else -{ -lean_object* x_155; lean_object* x_156; lean_object* x_157; -lean_dec(x_49); -lean_dec(x_46); -lean_dec(x_33); -lean_dec(x_32); -lean_dec(x_21); -lean_dec(x_19); -lean_dec(x_17); -x_155 = lean_ctor_get(x_51, 1); -lean_inc(x_155); -lean_dec(x_51); -x_156 = lean_box(0); -x_157 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_2, x_9, x_4, x_5, x_156, x_6, x_155); -lean_dec(x_1); -return x_157; -} -} -else -{ -lean_object* x_158; lean_object* x_159; lean_object* x_160; -lean_dec(x_46); -lean_dec(x_33); -lean_dec(x_32); -lean_dec(x_21); -lean_dec(x_19); -lean_dec(x_17); -x_158 = lean_ctor_get(x_48, 1); -lean_inc(x_158); -lean_dec(x_48); -x_159 = lean_box(0); -x_160 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_2, x_9, x_4, x_5, x_159, x_6, x_158); -lean_dec(x_1); -return x_160; -} -} -else -{ -lean_object* x_161; lean_object* x_162; lean_object* x_163; -lean_dec(x_33); -lean_dec(x_32); -lean_dec(x_21); -lean_dec(x_19); -lean_dec(x_17); -x_161 = lean_ctor_get(x_45, 1); -lean_inc(x_161); -lean_dec(x_45); -x_162 = lean_box(0); -x_163 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_2, x_9, x_4, x_5, x_162, x_6, x_161); -lean_dec(x_1); -return x_163; -} -} -else -{ -lean_object* x_164; lean_object* x_165; lean_object* x_166; -lean_dec(x_33); -lean_dec(x_32); -lean_dec(x_21); -lean_dec(x_19); -lean_dec(x_17); -x_164 = lean_ctor_get(x_42, 1); -lean_inc(x_164); -lean_dec(x_42); -x_165 = lean_box(0); -x_166 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_2, x_9, x_4, x_5, x_165, x_6, x_164); -lean_dec(x_1); -return x_166; -} -} -else -{ -lean_object* x_167; lean_object* x_168; -lean_dec(x_33); -lean_dec(x_32); -lean_dec(x_21); -lean_dec(x_19); -lean_dec(x_17); -x_167 = lean_ctor_get(x_34, 1); -lean_inc(x_167); -lean_dec(x_34); -x_168 = l_Lean_Elab_Term_tryCoe(x_1, x_2, x_9, x_4, x_5, x_6, x_167); -return x_168; -} -} -else -{ -uint8_t x_169; -lean_dec(x_33); -lean_dec(x_32); -lean_dec(x_21); -lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_9); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_169 = !lean_is_exclusive(x_34); -if (x_169 == 0) -{ -return x_34; -} -else -{ -lean_object* x_170; lean_object* x_171; lean_object* x_172; -x_170 = lean_ctor_get(x_34, 0); -x_171 = lean_ctor_get(x_34, 1); -lean_inc(x_171); -lean_inc(x_170); -lean_dec(x_34); -x_172 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_172, 0, x_170); -lean_ctor_set(x_172, 1, x_171); -return x_172; -} -} -} -} -else -{ -uint8_t x_173; -lean_dec(x_21); -lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_9); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_173 = !lean_is_exclusive(x_26); -if (x_173 == 0) -{ -return x_26; -} -else -{ -lean_object* x_174; lean_object* x_175; lean_object* x_176; -x_174 = lean_ctor_get(x_26, 0); -x_175 = lean_ctor_get(x_26, 1); -lean_inc(x_175); -lean_inc(x_174); -lean_dec(x_26); -x_176 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_176, 0, x_174); -lean_ctor_set(x_176, 1, x_175); -return x_176; -} -} -} -else -{ -uint8_t x_177; -lean_dec(x_21); -lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_9); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_177 = !lean_is_exclusive(x_23); -if (x_177 == 0) -{ -lean_object* x_178; lean_object* x_179; -x_178 = lean_ctor_get(x_23, 0); -lean_dec(x_178); -x_179 = lean_ctor_get(x_24, 0); -lean_inc(x_179); -lean_dec(x_24); -lean_ctor_set(x_23, 0, x_179); -return x_23; -} -else -{ -lean_object* x_180; lean_object* x_181; lean_object* x_182; -x_180 = lean_ctor_get(x_23, 1); -lean_inc(x_180); -lean_dec(x_23); -x_181 = lean_ctor_get(x_24, 0); -lean_inc(x_181); -lean_dec(x_24); -x_182 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_182, 0, x_181); -lean_ctor_set(x_182, 1, x_180); -return x_182; -} -} -} -} -else -{ -uint8_t x_183; -lean_dec(x_9); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_183 = !lean_is_exclusive(x_11); -if (x_183 == 0) -{ -return x_11; -} -else -{ -lean_object* x_184; lean_object* x_185; lean_object* x_186; -x_184 = lean_ctor_get(x_11, 0); -x_185 = lean_ctor_get(x_11, 1); -lean_inc(x_185); -lean_inc(x_184); -lean_dec(x_11); -x_186 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_186, 0, x_184); -lean_ctor_set(x_186, 1, x_185); -return x_186; -} -} -} -} -lean_object* l_Lean_Elab_Term_ensureHasTypeAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_8; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_1); -x_8 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_8, 0, x_4); -lean_ctor_set(x_8, 1, x_7); -return x_8; -} -else -{ -lean_object* x_9; lean_object* x_10; -x_9 = lean_ctor_get(x_2, 0); -lean_inc(x_9); -lean_dec(x_2); -lean_inc(x_6); -lean_inc(x_9); -lean_inc(x_3); -x_10 = l_Lean_Elab_Term_isDefEqNoConstantApprox(x_1, x_3, x_9, x_6, x_7); -if (lean_obj_tag(x_10) == 0) -{ -lean_object* x_11; uint8_t x_12; -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -x_12 = lean_unbox(x_11); -lean_dec(x_11); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; -x_13 = lean_ctor_get(x_10, 1); -lean_inc(x_13); -lean_dec(x_10); -x_14 = l_Lean_Elab_Term_tryLiftAndCoe(x_1, x_9, x_3, x_4, x_5, x_6, x_13); -return x_14; -} -else -{ -uint8_t x_15; -lean_dec(x_9); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_1); -x_15 = !lean_is_exclusive(x_10); -if (x_15 == 0) -{ -lean_object* x_16; -x_16 = lean_ctor_get(x_10, 0); -lean_dec(x_16); -lean_ctor_set(x_10, 0, x_4); -return x_10; -} -else -{ -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_10, 1); -lean_inc(x_17); -lean_dec(x_10); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_4); -lean_ctor_set(x_18, 1, x_17); -return x_18; -} -} -} -else -{ -uint8_t x_19; -lean_dec(x_9); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_19 = !lean_is_exclusive(x_10); -if (x_19 == 0) -{ -return x_10; -} -else -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_10, 0); -x_21 = lean_ctor_get(x_10, 1); -lean_inc(x_21); -lean_inc(x_20); -lean_dec(x_10); -x_22 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_22, 0, x_20); -lean_ctor_set(x_22, 1, x_21); -return x_22; -} -} -} -} -} -lean_object* l_Lean_Elab_Term_ensureHasType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_6; -lean_dec(x_4); -lean_dec(x_1); -x_6 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_6, 0, x_3); -lean_ctor_set(x_6, 1, x_5); -return x_6; -} -else -{ -lean_object* x_7; -lean_inc(x_4); -lean_inc(x_3); -x_7 = l_Lean_Elab_Term_inferType(x_1, x_3, x_4, x_5); -if (lean_obj_tag(x_7) == 0) -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_7 = l_Lean_Elab_Term_instantiateMVars(x_2, 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_box(0); -x_11 = l_Lean_Elab_Term_ensureHasTypeAux(x_1, x_2, x_8, x_3, x_10, x_4, x_9); -return x_11; +lean_inc(x_5); +lean_inc(x_1); +x_10 = l___private_Lean_Elab_Term_7__isMonad_x3f(x_1, x_5, x_9); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = l_Lean_Elab_Term_tryCoe(x_1, x_8, x_3, x_4, x_5, x_12); +return x_13; } else { -uint8_t x_12; +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; lean_object* x_23; +x_14 = lean_ctor_get(x_11, 0); +lean_inc(x_14); +lean_dec(x_11); +x_15 = lean_ctor_get(x_10, 1); +lean_inc(x_15); +lean_dec(x_10); +x_16 = lean_ctor_get(x_14, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_14, 1); +lean_inc(x_17); +x_18 = lean_ctor_get(x_14, 2); +lean_inc(x_18); +lean_dec(x_14); +lean_inc(x_5); +x_19 = l_Lean_Elab_Term_instantiateMVars(x_17, x_5, x_15); +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +lean_inc(x_5); +lean_inc(x_3); +lean_inc(x_8); +lean_inc(x_20); +lean_inc(x_16); +x_22 = l___private_Lean_Elab_Term_8__tryPureCoe_x3f(x_16, x_20, x_8, x_3, x_5, x_21); +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +lean_inc(x_5); +lean_inc(x_8); +x_25 = l___private_Lean_Elab_Term_6__isTypeApp_x3f(x_8, x_5, x_24); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +if (lean_obj_tag(x_26) == 0) +{ +lean_object* x_27; lean_object* x_28; +lean_dec(x_20); +lean_dec(x_18); +lean_dec(x_16); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +x_28 = l_Lean_Elab_Term_tryCoe(x_1, x_8, x_3, x_4, x_5, x_27); +return x_28; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_29 = lean_ctor_get(x_26, 0); +lean_inc(x_29); +lean_dec(x_26); +x_30 = lean_ctor_get(x_25, 1); +lean_inc(x_30); +lean_dec(x_25); +x_31 = lean_ctor_get(x_29, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_29, 1); +lean_inc(x_32); +lean_dec(x_29); +lean_inc(x_5); +lean_inc(x_16); +lean_inc(x_31); +x_33 = l_Lean_Elab_Term_isDefEq(x_31, x_16, x_5, x_30); +if (lean_obj_tag(x_33) == 0) +{ +lean_object* x_34; uint8_t x_35; +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_unbox(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; lean_object* x_41; +x_36 = lean_ctor_get(x_33, 1); +lean_inc(x_36); +lean_dec(x_33); +x_37 = l_Lean_mkAppStx___closed__9; +lean_inc(x_31); +x_38 = lean_array_push(x_37, x_31); +lean_inc(x_16); +x_39 = lean_array_push(x_38, x_16); +x_40 = l_Lean_Elab_Term_tryLiftAndCoe___closed__2; +lean_inc(x_5); +x_41 = l_Lean_Elab_Term_mkAppM(x_40, x_39, x_5, x_36); +lean_dec(x_39); +if (lean_obj_tag(x_41) == 0) +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_41, 1); +lean_inc(x_43); +lean_dec(x_41); +lean_inc(x_5); +x_44 = l_Lean_Elab_Term_synthesizeInst(x_42, x_5, x_43); +if (lean_obj_tag(x_44) == 0) +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +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); +lean_inc(x_5); +lean_inc(x_32); +x_47 = l_Lean_Elab_Term_getDecLevel(x_32, x_5, x_46); +if (lean_obj_tag(x_47) == 0) +{ +lean_object* x_48; lean_object* x_49; lean_object* 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_inc(x_5); +lean_inc(x_8); +x_50 = l_Lean_Elab_Term_getDecLevel(x_8, x_5, x_49); +if (lean_obj_tag(x_50) == 0) +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_50, 0); +lean_inc(x_51); +x_52 = lean_ctor_get(x_50, 1); +lean_inc(x_52); +lean_dec(x_50); +lean_inc(x_5); +lean_inc(x_1); +x_53 = l_Lean_Elab_Term_getDecLevel(x_1, x_5, x_52); +if (lean_obj_tag(x_53) == 0) +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_54 = lean_ctor_get(x_53, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_53, 1); +lean_inc(x_55); +lean_dec(x_53); +x_56 = lean_box(0); +x_57 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_57, 0, x_54); +lean_ctor_set(x_57, 1, x_56); +x_58 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_58, 0, x_51); +lean_ctor_set(x_58, 1, x_57); +x_59 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_59, 0, x_48); +lean_ctor_set(x_59, 1, x_58); +x_60 = l_Lean_Elab_Term_tryLiftAndCoe___closed__4; +lean_inc(x_59); +x_61 = l_Lean_mkConst(x_60, x_59); +x_62 = l_Lean_Meta_caseValueAux___lambda__2___closed__8; +lean_inc(x_31); +x_63 = lean_array_push(x_62, x_31); +lean_inc(x_16); +x_64 = lean_array_push(x_63, x_16); +lean_inc(x_45); +x_65 = lean_array_push(x_64, x_45); +lean_inc(x_32); +x_66 = lean_array_push(x_65, x_32); +lean_inc(x_3); +x_67 = lean_array_push(x_66, x_3); +x_68 = lean_unsigned_to_nat(0u); +x_69 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_67, x_67, x_68, x_61); +lean_dec(x_67); +lean_inc(x_5); +lean_inc(x_69); +x_70 = l_Lean_Elab_Term_inferType(x_69, x_5, x_55); +if (lean_obj_tag(x_70) == 0) +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_70, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_70, 1); +lean_inc(x_72); +lean_dec(x_70); +lean_inc(x_5); +lean_inc(x_1); +x_73 = l_Lean_Elab_Term_isDefEq(x_1, x_71, x_5, x_72); +if (lean_obj_tag(x_73) == 0) +{ +lean_object* x_74; uint8_t x_75; +x_74 = lean_ctor_get(x_73, 0); +lean_inc(x_74); +x_75 = lean_unbox(x_74); +lean_dec(x_74); +if (x_75 == 0) +{ +lean_object* x_76; lean_object* x_77; +lean_dec(x_69); +x_76 = lean_ctor_get(x_73, 1); +lean_inc(x_76); +lean_dec(x_73); +lean_inc(x_5); +lean_inc(x_32); +x_77 = l_Lean_Elab_Term_getLevel(x_32, x_5, x_76); +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_inc(x_5); +lean_inc(x_20); +x_80 = l_Lean_Elab_Term_getLevel(x_20, x_5, x_79); +if (lean_obj_tag(x_80) == 0) +{ +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; uint8_t x_94; lean_object* x_95; lean_object* x_96; +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); +x_83 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_83, 0, x_81); +lean_ctor_set(x_83, 1, x_56); +x_84 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_84, 0, x_78); +lean_ctor_set(x_84, 1, x_83); +x_85 = l_Lean_Elab_Term_tryCoe___closed__2; +x_86 = l_Lean_mkConst(x_85, x_84); +x_87 = l___private_Lean_Meta_EqnCompiler_CaseArraySizes_2__introArrayLitAux___main___closed__3; +lean_inc(x_32); +x_88 = lean_array_push(x_87, x_32); +x_89 = l_Lean_Meta_assertExt___lambda__1___closed__1; +x_90 = lean_array_push(x_88, x_89); +lean_inc(x_20); +x_91 = lean_array_push(x_90, x_20); +x_92 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_91, x_91, x_68, x_86); +lean_dec(x_91); +x_93 = l___private_Lean_Elab_Term_5__expandCDot___main___closed__3; +x_94 = 0; +lean_inc(x_32); +x_95 = l_Lean_mkForall(x_93, x_94, x_32, x_92); +lean_inc(x_5); +x_96 = l_Lean_Elab_Term_synthesizeInst(x_95, x_5, x_82); +if (lean_obj_tag(x_96) == 0) +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_97 = lean_ctor_get(x_96, 0); +lean_inc(x_97); +x_98 = lean_ctor_get(x_96, 1); +lean_inc(x_98); +lean_dec(x_96); +x_99 = l_Lean_Elab_Term_tryLiftAndCoe___closed__6; +x_100 = l_Lean_mkConst(x_99, x_59); +x_101 = l_Lean_Elab_Term_tryLiftAndCoe___closed__7; +x_102 = lean_array_push(x_101, x_31); +x_103 = lean_array_push(x_102, x_16); +x_104 = lean_array_push(x_103, x_32); +x_105 = lean_array_push(x_104, x_20); +x_106 = lean_array_push(x_105, x_45); +x_107 = lean_array_push(x_106, x_97); +x_108 = lean_array_push(x_107, x_18); +lean_inc(x_3); +x_109 = lean_array_push(x_108, x_3); +x_110 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_109, x_109, x_68, x_100); +lean_dec(x_109); +lean_inc(x_5); +lean_inc(x_110); +x_111 = l_Lean_Elab_Term_inferType(x_110, x_5, x_98); +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_111, 0); +lean_inc(x_112); +x_113 = lean_ctor_get(x_111, 1); +lean_inc(x_113); +lean_dec(x_111); +lean_inc(x_5); +lean_inc(x_1); +x_114 = l_Lean_Elab_Term_isDefEq(x_1, x_112, x_5, x_113); +if (lean_obj_tag(x_114) == 0) +{ +lean_object* x_115; uint8_t x_116; +x_115 = lean_ctor_get(x_114, 0); +lean_inc(x_115); +x_116 = lean_unbox(x_115); +lean_dec(x_115); +if (x_116 == 0) +{ +lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; +lean_dec(x_110); +x_117 = lean_ctor_get(x_114, 1); +lean_inc(x_117); +lean_dec(x_114); +x_118 = lean_box(0); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_8); +lean_inc(x_1); +x_119 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_8, x_3, x_4, x_118, x_5, x_117); +x_120 = lean_ctor_get(x_119, 1); +lean_inc(x_120); +lean_dec(x_119); +x_121 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_8, x_3, x_4, x_118, x_5, x_120); +return x_121; +} +else +{ +uint8_t x_122; +lean_dec(x_8); +lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_2); lean_dec(x_1); -x_12 = !lean_is_exclusive(x_7); -if (x_12 == 0) +x_122 = !lean_is_exclusive(x_114); +if (x_122 == 0) { +lean_object* x_123; +x_123 = lean_ctor_get(x_114, 0); +lean_dec(x_123); +lean_ctor_set(x_114, 0, x_110); +return x_114; +} +else +{ +lean_object* x_124; lean_object* x_125; +x_124 = lean_ctor_get(x_114, 1); +lean_inc(x_124); +lean_dec(x_114); +x_125 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_125, 0, x_110); +lean_ctor_set(x_125, 1, x_124); +return x_125; +} +} +} +else +{ +lean_object* x_126; lean_object* x_127; lean_object* x_128; +lean_dec(x_110); +x_126 = lean_ctor_get(x_114, 1); +lean_inc(x_126); +lean_dec(x_114); +x_127 = lean_box(0); +x_128 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_8, x_3, x_4, x_127, x_5, x_126); +return x_128; +} +} +else +{ +lean_object* x_129; lean_object* x_130; lean_object* x_131; +lean_dec(x_110); +x_129 = lean_ctor_get(x_111, 1); +lean_inc(x_129); +lean_dec(x_111); +x_130 = lean_box(0); +x_131 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_8, x_3, x_4, x_130, x_5, x_129); +return x_131; +} +} +else +{ +lean_object* x_132; lean_object* x_133; lean_object* x_134; +lean_dec(x_59); +lean_dec(x_45); +lean_dec(x_32); +lean_dec(x_31); +lean_dec(x_20); +lean_dec(x_18); +lean_dec(x_16); +x_132 = lean_ctor_get(x_96, 1); +lean_inc(x_132); +lean_dec(x_96); +x_133 = lean_box(0); +x_134 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_8, x_3, x_4, x_133, x_5, x_132); +return x_134; +} +} +else +{ +lean_object* x_135; lean_object* x_136; lean_object* x_137; +lean_dec(x_78); +lean_dec(x_59); +lean_dec(x_45); +lean_dec(x_32); +lean_dec(x_31); +lean_dec(x_20); +lean_dec(x_18); +lean_dec(x_16); +x_135 = lean_ctor_get(x_80, 1); +lean_inc(x_135); +lean_dec(x_80); +x_136 = lean_box(0); +x_137 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_8, x_3, x_4, x_136, x_5, x_135); +return x_137; +} +} +else +{ +lean_object* x_138; lean_object* x_139; lean_object* x_140; +lean_dec(x_59); +lean_dec(x_45); +lean_dec(x_32); +lean_dec(x_31); +lean_dec(x_20); +lean_dec(x_18); +lean_dec(x_16); +x_138 = lean_ctor_get(x_77, 1); +lean_inc(x_138); +lean_dec(x_77); +x_139 = lean_box(0); +x_140 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_8, x_3, x_4, x_139, x_5, x_138); +return x_140; +} +} +else +{ +uint8_t x_141; +lean_dec(x_59); +lean_dec(x_45); +lean_dec(x_32); +lean_dec(x_31); +lean_dec(x_20); +lean_dec(x_18); +lean_dec(x_16); +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_141 = !lean_is_exclusive(x_73); +if (x_141 == 0) +{ +lean_object* x_142; +x_142 = lean_ctor_get(x_73, 0); +lean_dec(x_142); +lean_ctor_set(x_73, 0, x_69); +return x_73; +} +else +{ +lean_object* x_143; lean_object* x_144; +x_143 = lean_ctor_get(x_73, 1); +lean_inc(x_143); +lean_dec(x_73); +x_144 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_144, 0, x_69); +lean_ctor_set(x_144, 1, x_143); +return x_144; +} +} +} +else +{ +lean_object* x_145; lean_object* x_146; lean_object* x_147; +lean_dec(x_69); +lean_dec(x_59); +lean_dec(x_45); +lean_dec(x_32); +lean_dec(x_31); +lean_dec(x_20); +lean_dec(x_18); +lean_dec(x_16); +x_145 = lean_ctor_get(x_73, 1); +lean_inc(x_145); +lean_dec(x_73); +x_146 = lean_box(0); +x_147 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_8, x_3, x_4, x_146, x_5, x_145); +return x_147; +} +} +else +{ +lean_object* x_148; lean_object* x_149; lean_object* x_150; +lean_dec(x_69); +lean_dec(x_59); +lean_dec(x_45); +lean_dec(x_32); +lean_dec(x_31); +lean_dec(x_20); +lean_dec(x_18); +lean_dec(x_16); +x_148 = lean_ctor_get(x_70, 1); +lean_inc(x_148); +lean_dec(x_70); +x_149 = lean_box(0); +x_150 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_8, x_3, x_4, x_149, x_5, x_148); +return x_150; +} +} +else +{ +lean_object* x_151; lean_object* x_152; lean_object* x_153; +lean_dec(x_51); +lean_dec(x_48); +lean_dec(x_45); +lean_dec(x_32); +lean_dec(x_31); +lean_dec(x_20); +lean_dec(x_18); +lean_dec(x_16); +x_151 = lean_ctor_get(x_53, 1); +lean_inc(x_151); +lean_dec(x_53); +x_152 = lean_box(0); +x_153 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_8, x_3, x_4, x_152, x_5, x_151); +return x_153; +} +} +else +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; +lean_dec(x_48); +lean_dec(x_45); +lean_dec(x_32); +lean_dec(x_31); +lean_dec(x_20); +lean_dec(x_18); +lean_dec(x_16); +x_154 = lean_ctor_get(x_50, 1); +lean_inc(x_154); +lean_dec(x_50); +x_155 = lean_box(0); +x_156 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_8, x_3, x_4, x_155, x_5, x_154); +return x_156; +} +} +else +{ +lean_object* x_157; lean_object* x_158; lean_object* x_159; +lean_dec(x_45); +lean_dec(x_32); +lean_dec(x_31); +lean_dec(x_20); +lean_dec(x_18); +lean_dec(x_16); +x_157 = lean_ctor_get(x_47, 1); +lean_inc(x_157); +lean_dec(x_47); +x_158 = lean_box(0); +x_159 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_8, x_3, x_4, x_158, x_5, x_157); +return x_159; +} +} +else +{ +lean_object* x_160; lean_object* x_161; lean_object* x_162; +lean_dec(x_32); +lean_dec(x_31); +lean_dec(x_20); +lean_dec(x_18); +lean_dec(x_16); +x_160 = lean_ctor_get(x_44, 1); +lean_inc(x_160); +lean_dec(x_44); +x_161 = lean_box(0); +x_162 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_8, x_3, x_4, x_161, x_5, x_160); +return x_162; +} +} +else +{ +lean_object* x_163; lean_object* x_164; lean_object* x_165; +lean_dec(x_32); +lean_dec(x_31); +lean_dec(x_20); +lean_dec(x_18); +lean_dec(x_16); +x_163 = lean_ctor_get(x_41, 1); +lean_inc(x_163); +lean_dec(x_41); +x_164 = lean_box(0); +x_165 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_8, x_3, x_4, x_164, x_5, x_163); +return x_165; +} +} +else +{ +lean_object* x_166; lean_object* x_167; +lean_dec(x_32); +lean_dec(x_31); +lean_dec(x_20); +lean_dec(x_18); +lean_dec(x_16); +x_166 = lean_ctor_get(x_33, 1); +lean_inc(x_166); +lean_dec(x_33); +x_167 = l_Lean_Elab_Term_tryCoe(x_1, x_8, x_3, x_4, x_5, x_166); +return x_167; +} +} +else +{ +uint8_t x_168; +lean_dec(x_32); +lean_dec(x_31); +lean_dec(x_20); +lean_dec(x_18); +lean_dec(x_16); +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_168 = !lean_is_exclusive(x_33); +if (x_168 == 0) +{ +return x_33; +} +else +{ +lean_object* x_169; lean_object* x_170; lean_object* x_171; +x_169 = lean_ctor_get(x_33, 0); +x_170 = lean_ctor_get(x_33, 1); +lean_inc(x_170); +lean_inc(x_169); +lean_dec(x_33); +x_171 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_171, 0, x_169); +lean_ctor_set(x_171, 1, x_170); +return x_171; +} +} +} +} +else +{ +uint8_t x_172; +lean_dec(x_20); +lean_dec(x_18); +lean_dec(x_16); +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_172 = !lean_is_exclusive(x_25); +if (x_172 == 0) +{ +return x_25; +} +else +{ +lean_object* x_173; lean_object* x_174; lean_object* x_175; +x_173 = lean_ctor_get(x_25, 0); +x_174 = lean_ctor_get(x_25, 1); +lean_inc(x_174); +lean_inc(x_173); +lean_dec(x_25); +x_175 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_175, 0, x_173); +lean_ctor_set(x_175, 1, x_174); +return x_175; +} +} +} +else +{ +uint8_t x_176; +lean_dec(x_20); +lean_dec(x_18); +lean_dec(x_16); +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_176 = !lean_is_exclusive(x_22); +if (x_176 == 0) +{ +lean_object* x_177; lean_object* x_178; +x_177 = lean_ctor_get(x_22, 0); +lean_dec(x_177); +x_178 = lean_ctor_get(x_23, 0); +lean_inc(x_178); +lean_dec(x_23); +lean_ctor_set(x_22, 0, x_178); +return x_22; +} +else +{ +lean_object* x_179; lean_object* x_180; lean_object* x_181; +x_179 = lean_ctor_get(x_22, 1); +lean_inc(x_179); +lean_dec(x_22); +x_180 = lean_ctor_get(x_23, 0); +lean_inc(x_180); +lean_dec(x_23); +x_181 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_181, 0, x_180); +lean_ctor_set(x_181, 1, x_179); +return x_181; +} +} +} +} +else +{ +uint8_t x_182; +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_182 = !lean_is_exclusive(x_10); +if (x_182 == 0) +{ +return x_10; +} +else +{ +lean_object* x_183; lean_object* x_184; lean_object* x_185; +x_183 = lean_ctor_get(x_10, 0); +x_184 = lean_ctor_get(x_10, 1); +lean_inc(x_184); +lean_inc(x_183); +lean_dec(x_10); +x_185 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_185, 0, x_183); +lean_ctor_set(x_185, 1, x_184); +return x_185; +} +} +} +} +lean_object* l_Lean_Elab_Term_ensureHasTypeAux(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: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_7; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_3); +lean_ctor_set(x_7, 1, x_6); return x_7; } else { -lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_13 = lean_ctor_get(x_7, 0); -x_14 = lean_ctor_get(x_7, 1); -lean_inc(x_14); -lean_inc(x_13); -lean_dec(x_7); -x_15 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_15, 0, x_13); -lean_ctor_set(x_15, 1, x_14); -return x_15; +lean_object* x_8; lean_object* x_9; +x_8 = lean_ctor_get(x_1, 0); +lean_inc(x_8); +lean_dec(x_1); +lean_inc(x_5); +lean_inc(x_8); +lean_inc(x_2); +x_9 = l_Lean_Elab_Term_isDefEqNoConstantApprox(x_2, x_8, x_5, x_6); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; uint8_t x_11; +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_unbox(x_10); +lean_dec(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_9, 1); +lean_inc(x_12); +lean_dec(x_9); +x_13 = l_Lean_Elab_Term_tryLiftAndCoe(x_8, x_2, x_3, x_4, x_5, x_12); +return x_13; +} +else +{ +uint8_t x_14; +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_14 = !lean_is_exclusive(x_9); +if (x_14 == 0) +{ +lean_object* x_15; +x_15 = lean_ctor_get(x_9, 0); +lean_dec(x_15); +lean_ctor_set(x_9, 0, x_3); +return x_9; +} +else +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_9, 1); +lean_inc(x_16); +lean_dec(x_9); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_3); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +} +} +else +{ +uint8_t x_18; +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +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___private_Lean_Elab_Term_9__exceptionToSorry(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_Elab_Term_ensureHasType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_6; lean_object* x_7; -if (lean_obj_tag(x_3) == 0) +if (lean_obj_tag(x_1) == 0) { -uint8_t x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_57 = 0; -x_58 = lean_box(0); -lean_inc(x_4); -x_59 = l_Lean_Elab_Term_mkFreshTypeMVar(x_1, x_57, x_58, x_4, x_5); -x_60 = lean_ctor_get(x_59, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_59, 1); -lean_inc(x_61); -lean_dec(x_59); -x_6 = x_60; -x_7 = x_61; -goto block_56; +lean_object* x_5; +lean_dec(x_3); +x_5 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_5, 0, x_2); +lean_ctor_set(x_5, 1, x_4); +return x_5; } else { -lean_object* x_62; -x_62 = lean_ctor_get(x_3, 0); -lean_inc(x_62); -lean_dec(x_3); -x_6 = x_62; -x_7 = x_5; -goto block_56; +lean_object* x_6; +lean_inc(x_3); +lean_inc(x_2); +x_6 = l_Lean_Elab_Term_inferType(x_2, x_3, x_4); +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +x_9 = lean_box(0); +x_10 = l_Lean_Elab_Term_ensureHasTypeAux(x_1, x_7, x_2, x_9, x_3, x_8); +return x_10; } -block_56: +else { -lean_object* x_8; -lean_inc(x_6); -x_8 = l_Lean_Elab_Term_getLevel(x_1, x_6, x_4, x_7); -if (lean_obj_tag(x_8) == 0) +uint8_t x_11; +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_11 = !lean_is_exclusive(x_6); +if (x_11 == 0) { -uint8_t x_9; -x_9 = !lean_is_exclusive(x_8); -if (x_9 == 0) +return x_6; +} +else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; -x_10 = lean_ctor_get(x_8, 0); -x_11 = lean_ctor_get(x_8, 1); -x_12 = lean_box(0); -x_13 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_13, 0, x_10); -lean_ctor_set(x_13, 1, x_12); -x_14 = l_Lean_Meta_mkSorry___closed__2; -x_15 = l_Lean_mkConst(x_14, x_13); -x_16 = l_Lean_Meta_mkSorry___closed__4; -x_17 = l_Lean_mkAppB(x_15, x_6, x_16); -x_18 = lean_ctor_get(x_2, 4); -lean_inc(x_18); -x_19 = l_Lean_MessageData_hasSyntheticSorry___main(x_18); -lean_dec(x_18); +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_6, 0); +x_13 = lean_ctor_get(x_6, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_6); +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_13); +return x_14; +} +} +} +} +} +lean_object* l___private_Lean_Elab_Term_9__exceptionToSorry(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_56 = 0; +x_57 = lean_box(0); +lean_inc(x_3); +x_58 = l_Lean_Elab_Term_mkFreshTypeMVar(x_56, x_57, x_3, x_4); +x_59 = lean_ctor_get(x_58, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_58, 1); +lean_inc(x_60); +lean_dec(x_58); +x_5 = x_59; +x_6 = x_60; +goto block_55; +} +else +{ +lean_object* x_61; +x_61 = lean_ctor_get(x_2, 0); +lean_inc(x_61); +lean_dec(x_2); +x_5 = x_61; +x_6 = x_4; +goto block_55; +} +block_55: +{ +lean_object* x_7; +lean_inc(x_5); +x_7 = l_Lean_Elab_Term_getLevel(x_5, x_3, x_6); +if (lean_obj_tag(x_7) == 0) +{ +uint8_t x_8; +x_8 = !lean_is_exclusive(x_7); +if (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; lean_object* x_17; uint8_t x_18; +x_9 = lean_ctor_get(x_7, 0); +x_10 = lean_ctor_get(x_7, 1); +x_11 = lean_box(0); +x_12 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_12, 0, x_9); +lean_ctor_set(x_12, 1, x_11); +x_13 = l_Lean_Meta_mkSorry___closed__2; +x_14 = l_Lean_mkConst(x_13, x_12); +x_15 = l_Lean_Meta_mkSorry___closed__4; +x_16 = l_Lean_mkAppB(x_14, x_5, x_15); +x_17 = lean_ctor_get(x_1, 4); +lean_inc(x_17); +x_18 = l_Lean_MessageData_hasSyntheticSorry___main(x_17); +lean_dec(x_17); +if (x_18 == 0) +{ +uint8_t x_19; +x_19 = !lean_is_exclusive(x_10); if (x_19 == 0) { -uint8_t x_20; -x_20 = !lean_is_exclusive(x_11); -if (x_20 == 0) -{ -lean_object* x_21; lean_object* x_22; -x_21 = lean_ctor_get(x_11, 2); -x_22 = l_Std_PersistentArray_push___rarg(x_21, x_2); -lean_ctor_set(x_11, 2, x_22); -lean_ctor_set(x_8, 0, x_17); -return x_8; +lean_object* x_20; lean_object* x_21; +x_20 = lean_ctor_get(x_10, 2); +x_21 = l_Std_PersistentArray_push___rarg(x_20, x_1); +lean_ctor_set(x_10, 2, x_21); +lean_ctor_set(x_7, 0, x_16); +return x_7; } else { -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; -x_23 = lean_ctor_get(x_11, 0); -x_24 = lean_ctor_get(x_11, 1); -x_25 = lean_ctor_get(x_11, 2); -x_26 = lean_ctor_get(x_11, 3); -x_27 = lean_ctor_get(x_11, 4); -x_28 = lean_ctor_get(x_11, 5); -lean_inc(x_28); +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; +x_22 = lean_ctor_get(x_10, 0); +x_23 = lean_ctor_get(x_10, 1); +x_24 = lean_ctor_get(x_10, 2); +x_25 = lean_ctor_get(x_10, 3); +x_26 = lean_ctor_get(x_10, 4); +x_27 = lean_ctor_get(x_10, 5); lean_inc(x_27); lean_inc(x_26); lean_inc(x_25); lean_inc(x_24); lean_inc(x_23); -lean_dec(x_11); -x_29 = l_Std_PersistentArray_push___rarg(x_25, x_2); -x_30 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_30, 0, x_23); -lean_ctor_set(x_30, 1, x_24); -lean_ctor_set(x_30, 2, x_29); -lean_ctor_set(x_30, 3, x_26); -lean_ctor_set(x_30, 4, x_27); -lean_ctor_set(x_30, 5, x_28); -lean_ctor_set(x_8, 1, x_30); -lean_ctor_set(x_8, 0, x_17); -return x_8; +lean_inc(x_22); +lean_dec(x_10); +x_28 = l_Std_PersistentArray_push___rarg(x_24, x_1); +x_29 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_29, 0, x_22); +lean_ctor_set(x_29, 1, x_23); +lean_ctor_set(x_29, 2, x_28); +lean_ctor_set(x_29, 3, x_25); +lean_ctor_set(x_29, 4, x_26); +lean_ctor_set(x_29, 5, x_27); +lean_ctor_set(x_7, 1, x_29); +lean_ctor_set(x_7, 0, x_16); +return x_7; } } else { -lean_dec(x_2); -lean_ctor_set(x_8, 0, x_17); -return x_8; +lean_dec(x_1); +lean_ctor_set(x_7, 0, x_16); +return x_7; } } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; -x_31 = lean_ctor_get(x_8, 0); -x_32 = lean_ctor_get(x_8, 1); -lean_inc(x_32); +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_30 = lean_ctor_get(x_7, 0); +x_31 = lean_ctor_get(x_7, 1); lean_inc(x_31); -lean_dec(x_8); -x_33 = lean_box(0); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_31); -lean_ctor_set(x_34, 1, x_33); -x_35 = l_Lean_Meta_mkSorry___closed__2; -x_36 = l_Lean_mkConst(x_35, x_34); -x_37 = l_Lean_Meta_mkSorry___closed__4; -x_38 = l_Lean_mkAppB(x_36, x_6, x_37); -x_39 = lean_ctor_get(x_2, 4); -lean_inc(x_39); -x_40 = l_Lean_MessageData_hasSyntheticSorry___main(x_39); -lean_dec(x_39); -if (x_40 == 0) +lean_inc(x_30); +lean_dec(x_7); +x_32 = lean_box(0); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_30); +lean_ctor_set(x_33, 1, x_32); +x_34 = l_Lean_Meta_mkSorry___closed__2; +x_35 = l_Lean_mkConst(x_34, x_33); +x_36 = l_Lean_Meta_mkSorry___closed__4; +x_37 = l_Lean_mkAppB(x_35, x_5, x_36); +x_38 = lean_ctor_get(x_1, 4); +lean_inc(x_38); +x_39 = l_Lean_MessageData_hasSyntheticSorry___main(x_38); +lean_dec(x_38); +if (x_39 == 0) { -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_41 = lean_ctor_get(x_32, 0); +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_40 = lean_ctor_get(x_31, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_31, 1); lean_inc(x_41); -x_42 = lean_ctor_get(x_32, 1); +x_42 = lean_ctor_get(x_31, 2); lean_inc(x_42); -x_43 = lean_ctor_get(x_32, 2); +x_43 = lean_ctor_get(x_31, 3); lean_inc(x_43); -x_44 = lean_ctor_get(x_32, 3); +x_44 = lean_ctor_get(x_31, 4); lean_inc(x_44); -x_45 = lean_ctor_get(x_32, 4); +x_45 = lean_ctor_get(x_31, 5); lean_inc(x_45); -x_46 = lean_ctor_get(x_32, 5); -lean_inc(x_46); -if (lean_is_exclusive(x_32)) { - lean_ctor_release(x_32, 0); - lean_ctor_release(x_32, 1); - lean_ctor_release(x_32, 2); - lean_ctor_release(x_32, 3); - lean_ctor_release(x_32, 4); - lean_ctor_release(x_32, 5); - x_47 = x_32; +if (lean_is_exclusive(x_31)) { + lean_ctor_release(x_31, 0); + lean_ctor_release(x_31, 1); + lean_ctor_release(x_31, 2); + lean_ctor_release(x_31, 3); + lean_ctor_release(x_31, 4); + lean_ctor_release(x_31, 5); + x_46 = x_31; } else { - lean_dec_ref(x_32); - x_47 = lean_box(0); + lean_dec_ref(x_31); + x_46 = lean_box(0); } -x_48 = l_Std_PersistentArray_push___rarg(x_43, x_2); -if (lean_is_scalar(x_47)) { - x_49 = lean_alloc_ctor(0, 6, 0); +x_47 = l_Std_PersistentArray_push___rarg(x_42, x_1); +if (lean_is_scalar(x_46)) { + x_48 = lean_alloc_ctor(0, 6, 0); } else { - x_49 = x_47; + x_48 = x_46; } -lean_ctor_set(x_49, 0, x_41); -lean_ctor_set(x_49, 1, x_42); -lean_ctor_set(x_49, 2, x_48); -lean_ctor_set(x_49, 3, x_44); -lean_ctor_set(x_49, 4, x_45); -lean_ctor_set(x_49, 5, x_46); +lean_ctor_set(x_48, 0, x_40); +lean_ctor_set(x_48, 1, x_41); +lean_ctor_set(x_48, 2, x_47); +lean_ctor_set(x_48, 3, x_43); +lean_ctor_set(x_48, 4, x_44); +lean_ctor_set(x_48, 5, x_45); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_37); +lean_ctor_set(x_49, 1, x_48); +return x_49; +} +else +{ +lean_object* x_50; +lean_dec(x_1); x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_38); -lean_ctor_set(x_50, 1, x_49); +lean_ctor_set(x_50, 0, x_37); +lean_ctor_set(x_50, 1, x_31); return x_50; } -else -{ -lean_object* x_51; -lean_dec(x_2); -x_51 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_51, 0, x_38); -lean_ctor_set(x_51, 1, x_32); -return x_51; -} } } else { -uint8_t x_52; -lean_dec(x_6); -lean_dec(x_2); -x_52 = !lean_is_exclusive(x_8); -if (x_52 == 0) -{ -return x_8; -} -else -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_8, 0); -x_54 = lean_ctor_get(x_8, 1); -lean_inc(x_54); -lean_inc(x_53); -lean_dec(x_8); -x_55 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_55, 0, x_53); -lean_ctor_set(x_55, 1, x_54); -return x_55; -} -} -} -} -} -lean_object* l___private_Lean_Elab_Term_9__exceptionToSorry___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l___private_Lean_Elab_Term_9__exceptionToSorry(x_1, x_2, x_3, x_4, x_5); +uint8_t x_51; +lean_dec(x_5); lean_dec(x_1); -return x_6; +x_51 = !lean_is_exclusive(x_7); +if (x_51 == 0) +{ +return x_7; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_7, 0); +x_53 = lean_ctor_get(x_7, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_7); +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; +} +} +} } } lean_object* l_Lean_Elab_Term_tryPostpone(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; -x_3 = lean_ctor_get_uint8(x_1, sizeof(void*)*10); +x_3 = lean_ctor_get_uint8(x_1, sizeof(void*)*11); if (x_3 == 0) { lean_object* x_4; lean_object* x_5; @@ -18046,103 +18122,186 @@ return x_3; lean_object* l___private_Lean_Elab_Term_10__postponeElabTerm(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; -x_20 = l_Lean_Elab_Term_getOptions(x_3, x_4); -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -x_22 = lean_ctor_get(x_20, 1); -lean_inc(x_22); -lean_dec(x_20); -x_23 = l___private_Lean_Elab_Term_10__postponeElabTerm___closed__2; -x_24 = l_Lean_checkTraceOption(x_21, x_23); -lean_dec(x_21); -if (x_24 == 0) +lean_object* x_5; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; +x_41 = l_Lean_Elab_Term_getOptions(x_3, x_4); +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_41, 1); +lean_inc(x_43); +lean_dec(x_41); +x_44 = l_Lean_Elab_Term_getCurrRef(x_3, x_43); +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 = l___private_Lean_Elab_Term_10__postponeElabTerm___closed__2; +x_48 = l_Lean_checkTraceOption(x_42, x_47); +lean_dec(x_42); +if (x_48 == 0) { -x_5 = x_22; -goto block_19; +lean_dec(x_45); +x_5 = x_46; +goto block_40; } else { -lean_object* x_25; lean_object* x_26; lean_object* x_27; +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_inc(x_1); -x_25 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_25, 0, x_1); -x_26 = l___private_Lean_Meta_ExprDefEq_8__checkTypesAndAssign___closed__7; -x_27 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_27, 0, x_25); -lean_ctor_set(x_27, 1, x_26); +x_49 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_49, 0, x_1); +x_50 = l___private_Lean_Meta_ExprDefEq_8__checkTypesAndAssign___closed__7; +x_51 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); if (lean_obj_tag(x_2) == 0) { -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_28 = l_Lean_MessageData_coeOfOptExpr___closed__1; -x_29 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_29, 0, x_27); -lean_ctor_set(x_29, 1, x_28); +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_52 = l_Lean_MessageData_coeOfOptExpr___closed__1; +x_53 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); lean_inc(x_3); -x_30 = l_Lean_Elab_Term_logTrace(x_23, x_1, x_29, x_3, x_22); -x_31 = lean_ctor_get(x_30, 1); -lean_inc(x_31); -lean_dec(x_30); -x_5 = x_31; -goto block_19; +x_54 = l_Lean_Elab_Term_logTrace(x_47, x_45, x_53, x_3, x_46); +lean_dec(x_45); +x_55 = lean_ctor_get(x_54, 1); +lean_inc(x_55); +lean_dec(x_54); +x_5 = x_55; +goto block_40; } else { -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_32 = lean_ctor_get(x_2, 0); -lean_inc(x_32); -x_33 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_33, 0, x_32); -x_34 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_34, 0, x_27); -lean_ctor_set(x_34, 1, x_33); +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_56 = lean_ctor_get(x_2, 0); +lean_inc(x_56); +x_57 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_57, 0, x_56); +x_58 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_58, 0, x_51); +lean_ctor_set(x_58, 1, x_57); lean_inc(x_3); -x_35 = l_Lean_Elab_Term_logTrace(x_23, x_1, x_34, x_3, x_22); -x_36 = lean_ctor_get(x_35, 1); -lean_inc(x_36); -lean_dec(x_35); -x_5 = x_36; -goto block_19; +x_59 = l_Lean_Elab_Term_logTrace(x_47, x_45, x_58, x_3, x_46); +lean_dec(x_45); +x_60 = lean_ctor_get(x_59, 1); +lean_inc(x_60); +lean_dec(x_59); +x_5 = x_60; +goto block_40; } } -block_19: +block_40: { -uint8_t x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +uint8_t x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; x_6 = 2; x_7 = lean_box(0); lean_inc(x_3); -x_8 = l_Lean_Elab_Term_mkFreshExprMVar(x_1, x_2, x_6, x_7, x_3, x_5); +x_8 = l_Lean_Elab_Term_mkFreshExprMVar(x_2, x_6, x_7, x_3, x_5); 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 = l_Lean_Expr_mvarId_x21(x_9); -x_12 = lean_ctor_get(x_3, 8); -lean_inc(x_12); -x_13 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_13, 0, x_12); -x_14 = l_Lean_Elab_Term_registerSyntheticMVar(x_1, x_11, x_13, x_3, x_10); -lean_dec(x_3); -x_15 = !lean_is_exclusive(x_14); -if (x_15 == 0) +x_12 = !lean_is_exclusive(x_3); +if (x_12 == 0) { -lean_object* x_16; -x_16 = lean_ctor_get(x_14, 0); -lean_dec(x_16); -lean_ctor_set(x_14, 0, x_9); -return x_14; +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_13 = lean_ctor_get(x_3, 8); +x_14 = lean_ctor_get(x_3, 10); +lean_dec(x_14); +lean_inc(x_13); +x_15 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_15, 0, x_13); +lean_ctor_set(x_3, 10, x_1); +x_16 = l_Lean_Elab_Term_registerSyntheticMVar(x_11, x_15, x_3, x_10); +lean_dec(x_3); +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +lean_object* x_18; +x_18 = lean_ctor_get(x_16, 0); +lean_dec(x_18); +lean_ctor_set(x_16, 0, x_9); +return x_16; } else { -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_14, 1); -lean_inc(x_17); -lean_dec(x_14); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_9); -lean_ctor_set(x_18, 1, x_17); -return x_18; +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_16, 1); +lean_inc(x_19); +lean_dec(x_16); +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 +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; uint8_t x_32; uint8_t 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_21 = lean_ctor_get(x_3, 0); +x_22 = lean_ctor_get(x_3, 1); +x_23 = lean_ctor_get(x_3, 2); +x_24 = lean_ctor_get(x_3, 3); +x_25 = lean_ctor_get(x_3, 4); +x_26 = lean_ctor_get(x_3, 5); +x_27 = lean_ctor_get(x_3, 6); +x_28 = lean_ctor_get(x_3, 7); +x_29 = lean_ctor_get(x_3, 8); +x_30 = lean_ctor_get(x_3, 9); +x_31 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_32 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_33 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_inc(x_26); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_3); +lean_inc(x_29); +x_34 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_34, 0, x_29); +x_35 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_35, 0, x_21); +lean_ctor_set(x_35, 1, x_22); +lean_ctor_set(x_35, 2, x_23); +lean_ctor_set(x_35, 3, x_24); +lean_ctor_set(x_35, 4, x_25); +lean_ctor_set(x_35, 5, x_26); +lean_ctor_set(x_35, 6, x_27); +lean_ctor_set(x_35, 7, x_28); +lean_ctor_set(x_35, 8, x_29); +lean_ctor_set(x_35, 9, x_30); +lean_ctor_set(x_35, 10, x_1); +lean_ctor_set_uint8(x_35, sizeof(void*)*11, x_31); +lean_ctor_set_uint8(x_35, sizeof(void*)*11 + 1, x_32); +lean_ctor_set_uint8(x_35, sizeof(void*)*11 + 2, x_33); +x_36 = l_Lean_Elab_Term_registerSyntheticMVar(x_11, x_34, x_35, x_10); +lean_dec(x_35); +x_37 = lean_ctor_get(x_36, 1); +lean_inc(x_37); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_38 = x_36; +} else { + lean_dec_ref(x_36); + x_38 = lean_box(0); +} +if (lean_is_scalar(x_38)) { + x_39 = lean_alloc_ctor(0, 2, 0); +} else { + x_39 = x_38; +} +lean_ctor_set(x_39, 0, x_9); +lean_ctor_set(x_39, 1, x_37); +return x_39; } } } @@ -18183,7 +18342,6 @@ if (lean_obj_tag(x_5) == 0) 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_dec(x_3); lean_dec(x_1); -lean_inc(x_2); x_8 = l_Lean_Syntax_prettyPrint(x_2); x_9 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_9, 0, x_8); @@ -18199,8 +18357,7 @@ x_14 = l___private_Lean_Elab_Term_11__elabUsingElabFnsAux___main___closed__3; x_15 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_15, 0, x_14); lean_ctor_set(x_15, 1, x_13); -x_16 = l_Lean_Elab_Term_throwError___rarg(x_2, x_15, x_6, x_7); -lean_dec(x_2); +x_16 = l_Lean_Elab_Term_throwError___rarg(x_15, x_6, x_7); return x_16; } else @@ -18238,15 +18395,15 @@ if (lean_obj_tag(x_21) == 0) { uint8_t x_22; lean_dec(x_18); +lean_dec(x_2); lean_dec(x_1); -x_22 = lean_ctor_get_uint8(x_6, sizeof(void*)*10 + 1); +x_22 = lean_ctor_get_uint8(x_6, sizeof(void*)*11 + 1); if (x_22 == 0) { uint8_t x_23; lean_dec(x_21); lean_dec(x_6); lean_dec(x_3); -lean_dec(x_2); x_23 = !lean_is_exclusive(x_19); if (x_23 == 0) { @@ -18277,8 +18434,7 @@ lean_dec(x_19); x_28 = lean_ctor_get(x_21, 0); lean_inc(x_28); lean_dec(x_21); -x_29 = l___private_Lean_Elab_Term_9__exceptionToSorry(x_2, x_28, x_3, x_6, x_27); -lean_dec(x_2); +x_29 = l___private_Lean_Elab_Term_9__exceptionToSorry(x_28, x_3, x_6, x_27); return x_29; } } @@ -18665,6 +18821,7 @@ if (lean_obj_tag(x_13) == 0) { 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; lean_dec(x_2); +lean_dec(x_1); x_14 = l_Lean_Name_toString___closed__1; x_15 = l_Lean_Name_toStringWithSep___main(x_14, x_12); x_16 = lean_alloc_ctor(2, 1, 0); @@ -18679,8 +18836,7 @@ x_20 = l_Lean_Elab_Term_elabUsingElabFns___closed__6; x_21 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_21, 0, x_19); lean_ctor_set(x_21, 1, x_20); -x_22 = l_Lean_Elab_Term_throwError___rarg(x_1, x_21, x_4, x_5); -lean_dec(x_1); +x_22 = l_Lean_Elab_Term_throwError___rarg(x_21, x_4, x_5); return x_22; } else @@ -18956,7 +19112,7 @@ lean_object* _init_l_Lean_Elab_Term_Lean_Elab_MonadMacroAdapter___closed__10() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_throwError), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_throwErrorAt), 1, 0); return x_1; } } @@ -19478,7 +19634,6 @@ lean_object* l_Lean_Elab_Term_useImplicitLambda_x3f(lean_object* x_1, lean_objec _start: { uint8_t x_5; -lean_inc(x_1); x_5 = l_Lean_Elab_Term_blockImplicitLambda(x_1); if (x_5 == 0) { @@ -19486,7 +19641,6 @@ if (lean_obj_tag(x_2) == 0) { lean_object* x_6; lean_dec(x_3); -lean_dec(x_1); x_6 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_6, 0, x_2); lean_ctor_set(x_6, 1, x_4); @@ -19500,8 +19654,7 @@ if (x_7 == 0) { lean_object* x_8; lean_object* x_9; x_8 = lean_ctor_get(x_2, 0); -x_9 = l_Lean_Elab_Term_whnfForall(x_1, x_8, x_3, x_4); -lean_dec(x_1); +x_9 = l_Lean_Elab_Term_whnfForall(x_8, x_3, x_4); if (lean_obj_tag(x_9) == 0) { lean_object* x_10; @@ -19625,8 +19778,7 @@ lean_object* x_34; lean_object* x_35; x_34 = lean_ctor_get(x_2, 0); lean_inc(x_34); lean_dec(x_2); -x_35 = l_Lean_Elab_Term_whnfForall(x_1, x_34, x_3, x_4); -lean_dec(x_1); +x_35 = l_Lean_Elab_Term_whnfForall(x_34, x_3, x_4); if (lean_obj_tag(x_35) == 0) { lean_object* x_36; @@ -19734,7 +19886,6 @@ else lean_object* x_54; lean_object* x_55; lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); x_54 = lean_box(0); x_55 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_55, 0, x_54); @@ -19768,7 +19919,6 @@ lean_object* x_7; lean_object* x_8; x_7 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_7, 0, x_3); lean_inc(x_5); -lean_inc(x_1); x_8 = l_Lean_Elab_Term_elabUsingElabFns(x_1, x_7, x_2, x_5, x_6); if (lean_obj_tag(x_8) == 0) { @@ -19779,161 +19929,165 @@ x_10 = lean_ctor_get(x_8, 1); lean_inc(x_10); lean_dec(x_8); lean_inc(x_5); -x_11 = l_Lean_Elab_Term_mkLambda(x_1, x_4, x_9, x_5, x_10); +x_11 = l_Lean_Elab_Term_mkLambda(x_4, x_9, x_5, x_10); if (lean_obj_tag(x_11) == 0) { -lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; 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 = l_Lean_Elab_Term_getOptions(x_5, x_13); -x_15 = !lean_is_exclusive(x_14); -if (x_15 == 0) +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 = l_Lean_Elab_Term_getCurrRef(x_5, x_16); +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; -x_16 = lean_ctor_get(x_14, 0); -x_17 = lean_ctor_get(x_14, 1); -x_18 = l_Lean_Elab_Term_elabImplicitLambdaAux___closed__2; -x_19 = l_Lean_checkTraceOption(x_16, x_18); -lean_dec(x_16); -if (x_19 == 0) -{ -lean_dec(x_5); -lean_dec(x_1); -lean_ctor_set(x_14, 0, x_12); -return x_14; -} -else -{ -lean_object* x_20; lean_object* x_21; uint8_t x_22; -lean_free_object(x_14); -lean_inc(x_12); -x_20 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_20, 0, x_12); -x_21 = l_Lean_Elab_Term_logTrace(x_18, x_1, x_20, x_5, x_17); -lean_dec(x_1); -x_22 = !lean_is_exclusive(x_21); +lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_19 = lean_ctor_get(x_17, 0); +x_20 = lean_ctor_get(x_17, 1); +x_21 = l_Lean_Elab_Term_elabImplicitLambdaAux___closed__2; +x_22 = l_Lean_checkTraceOption(x_15, x_21); +lean_dec(x_15); if (x_22 == 0) { -lean_object* x_23; -x_23 = lean_ctor_get(x_21, 0); -lean_dec(x_23); -lean_ctor_set(x_21, 0, x_12); -return x_21; -} -else -{ -lean_object* x_24; lean_object* x_25; -x_24 = lean_ctor_get(x_21, 1); -lean_inc(x_24); -lean_dec(x_21); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_12); -lean_ctor_set(x_25, 1, x_24); -return x_25; -} -} -} -else -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; -x_26 = lean_ctor_get(x_14, 0); -x_27 = lean_ctor_get(x_14, 1); -lean_inc(x_27); -lean_inc(x_26); -lean_dec(x_14); -x_28 = l_Lean_Elab_Term_elabImplicitLambdaAux___closed__2; -x_29 = l_Lean_checkTraceOption(x_26, x_28); -lean_dec(x_26); -if (x_29 == 0) -{ -lean_object* x_30; +lean_dec(x_19); lean_dec(x_5); -lean_dec(x_1); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_12); -lean_ctor_set(x_30, 1, x_27); -return x_30; +lean_ctor_set(x_17, 0, x_12); +return x_17; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +lean_object* x_23; lean_object* x_24; uint8_t x_25; +lean_free_object(x_17); lean_inc(x_12); -x_31 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_31, 0, x_12); -x_32 = l_Lean_Elab_Term_logTrace(x_28, x_1, x_31, x_5, x_27); -lean_dec(x_1); -x_33 = lean_ctor_get(x_32, 1); -lean_inc(x_33); -if (lean_is_exclusive(x_32)) { - lean_ctor_release(x_32, 0); - lean_ctor_release(x_32, 1); - x_34 = x_32; -} else { - lean_dec_ref(x_32); - x_34 = lean_box(0); +x_23 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_23, 0, x_12); +x_24 = l_Lean_Elab_Term_logTrace(x_21, x_19, x_23, x_5, x_20); +lean_dec(x_19); +x_25 = !lean_is_exclusive(x_24); +if (x_25 == 0) +{ +lean_object* x_26; +x_26 = lean_ctor_get(x_24, 0); +lean_dec(x_26); +lean_ctor_set(x_24, 0, x_12); +return x_24; } -if (lean_is_scalar(x_34)) { - x_35 = lean_alloc_ctor(0, 2, 0); -} else { - x_35 = x_34; -} -lean_ctor_set(x_35, 0, x_12); -lean_ctor_set(x_35, 1, x_33); -return x_35; +else +{ +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_24, 1); +lean_inc(x_27); +lean_dec(x_24); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_12); +lean_ctor_set(x_28, 1, x_27); +return x_28; } } } else { -uint8_t x_36; +lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; +x_29 = lean_ctor_get(x_17, 0); +x_30 = lean_ctor_get(x_17, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_17); +x_31 = l_Lean_Elab_Term_elabImplicitLambdaAux___closed__2; +x_32 = l_Lean_checkTraceOption(x_15, x_31); +lean_dec(x_15); +if (x_32 == 0) +{ +lean_object* x_33; +lean_dec(x_29); lean_dec(x_5); -lean_dec(x_1); -x_36 = !lean_is_exclusive(x_11); -if (x_36 == 0) +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_12); +lean_ctor_set(x_33, 1, x_30); +return x_33; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +lean_inc(x_12); +x_34 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_34, 0, x_12); +x_35 = l_Lean_Elab_Term_logTrace(x_31, x_29, x_34, x_5, x_30); +lean_dec(x_29); +x_36 = lean_ctor_get(x_35, 1); +lean_inc(x_36); +if (lean_is_exclusive(x_35)) { + lean_ctor_release(x_35, 0); + lean_ctor_release(x_35, 1); + x_37 = x_35; +} else { + lean_dec_ref(x_35); + x_37 = lean_box(0); +} +if (lean_is_scalar(x_37)) { + x_38 = lean_alloc_ctor(0, 2, 0); +} else { + x_38 = x_37; +} +lean_ctor_set(x_38, 0, x_12); +lean_ctor_set(x_38, 1, x_36); +return x_38; +} +} +} +else +{ +uint8_t x_39; +lean_dec(x_5); +x_39 = !lean_is_exclusive(x_11); +if (x_39 == 0) { return x_11; } else { -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_11, 0); -x_38 = lean_ctor_get(x_11, 1); -lean_inc(x_38); -lean_inc(x_37); +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_11, 0); +x_41 = lean_ctor_get(x_11, 1); +lean_inc(x_41); +lean_inc(x_40); lean_dec(x_11); -x_39 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_39, 0, x_37); -lean_ctor_set(x_39, 1, x_38); -return x_39; +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; } } } else { -uint8_t x_40; +uint8_t x_43; lean_dec(x_5); lean_dec(x_4); -lean_dec(x_1); -x_40 = !lean_is_exclusive(x_8); -if (x_40 == 0) +x_43 = !lean_is_exclusive(x_8); +if (x_43 == 0) { return x_8; } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_8, 0); -x_42 = lean_ctor_get(x_8, 1); -lean_inc(x_42); -lean_inc(x_41); +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_8, 0); +x_45 = lean_ctor_get(x_8, 1); +lean_inc(x_45); +lean_inc(x_44); lean_dec(x_8); -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; +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; } } } @@ -19954,7 +20108,7 @@ _start: lean_object* x_8; lean_object* x_9; x_8 = lean_expr_instantiate1(x_1, x_5); lean_inc(x_6); -x_9 = l_Lean_Elab_Term_whnfForall(x_2, x_8, x_6, x_7); +x_9 = l_Lean_Elab_Term_whnfForall(x_8, x_6, x_7); if (lean_obj_tag(x_9) == 0) { lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; @@ -19963,8 +20117,8 @@ lean_inc(x_10); x_11 = lean_ctor_get(x_9, 1); lean_inc(x_11); lean_dec(x_9); -x_12 = lean_array_push(x_3, x_5); -x_13 = l_Lean_Elab_Term_elabImplicitLambda___main(x_2, x_4, x_10, x_12, x_6, x_11); +x_12 = lean_array_push(x_2, x_5); +x_13 = l_Lean_Elab_Term_elabImplicitLambda___main(x_3, x_4, x_10, x_12, x_6, x_11); return x_13; } else @@ -20043,19 +20197,17 @@ lean_inc(x_24); lean_dec(x_22); x_25 = l_Lean_addMacroScope(x_20, x_7, x_23); x_26 = lean_box(x_2); -lean_inc(x_1); x_27 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabImplicitLambda___main___lambda__1___boxed), 7, 4); lean_closure_set(x_27, 0, x_9); -lean_closure_set(x_27, 1, x_1); -lean_closure_set(x_27, 2, x_4); +lean_closure_set(x_27, 1, x_4); +lean_closure_set(x_27, 2, x_1); lean_closure_set(x_27, 3, x_26); -x_28 = l_Lean_Elab_Term_withLocalDecl___rarg(x_1, x_25, x_11, x_8, x_27, x_5, x_24); -lean_dec(x_1); +x_28 = l_Lean_Elab_Term_withLocalDecl___rarg(x_25, x_11, x_8, x_27, x_5, x_24); return x_28; } else { -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; uint8_t x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; uint8_t x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; x_29 = lean_ctor_get(x_5, 0); x_30 = lean_ctor_get(x_5, 1); x_31 = lean_ctor_get(x_5, 2); @@ -20065,9 +20217,11 @@ x_34 = lean_ctor_get(x_5, 5); x_35 = lean_ctor_get(x_5, 6); x_36 = lean_ctor_get(x_5, 7); x_37 = lean_ctor_get(x_5, 8); -x_38 = lean_ctor_get_uint8(x_5, sizeof(void*)*10); -x_39 = lean_ctor_get_uint8(x_5, sizeof(void*)*10 + 1); -x_40 = lean_ctor_get_uint8(x_5, sizeof(void*)*10 + 2); +x_38 = lean_ctor_get_uint8(x_5, sizeof(void*)*11); +x_39 = lean_ctor_get_uint8(x_5, sizeof(void*)*11 + 1); +x_40 = lean_ctor_get_uint8(x_5, sizeof(void*)*11 + 2); +x_41 = lean_ctor_get(x_5, 10); +lean_inc(x_41); lean_inc(x_37); lean_inc(x_36); lean_inc(x_35); @@ -20078,91 +20232,92 @@ lean_inc(x_31); lean_inc(x_30); lean_inc(x_29); lean_dec(x_5); -x_41 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_41, 0, x_29); -lean_ctor_set(x_41, 1, x_30); -lean_ctor_set(x_41, 2, x_31); -lean_ctor_set(x_41, 3, x_32); -lean_ctor_set(x_41, 4, x_33); -lean_ctor_set(x_41, 5, x_34); -lean_ctor_set(x_41, 6, x_35); -lean_ctor_set(x_41, 7, x_36); -lean_ctor_set(x_41, 8, x_37); -lean_ctor_set(x_41, 9, x_14); -lean_ctor_set_uint8(x_41, sizeof(void*)*10, x_38); -lean_ctor_set_uint8(x_41, sizeof(void*)*10 + 1, x_39); -lean_ctor_set_uint8(x_41, sizeof(void*)*10 + 2, x_40); -x_42 = l_Lean_Elab_Term_getMainModule___rarg(x_6); -x_43 = lean_ctor_get(x_42, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_42, 1); +x_42 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_42, 0, x_29); +lean_ctor_set(x_42, 1, x_30); +lean_ctor_set(x_42, 2, x_31); +lean_ctor_set(x_42, 3, x_32); +lean_ctor_set(x_42, 4, x_33); +lean_ctor_set(x_42, 5, x_34); +lean_ctor_set(x_42, 6, x_35); +lean_ctor_set(x_42, 7, x_36); +lean_ctor_set(x_42, 8, x_37); +lean_ctor_set(x_42, 9, x_14); +lean_ctor_set(x_42, 10, x_41); +lean_ctor_set_uint8(x_42, sizeof(void*)*11, x_38); +lean_ctor_set_uint8(x_42, sizeof(void*)*11 + 1, x_39); +lean_ctor_set_uint8(x_42, sizeof(void*)*11 + 2, x_40); +x_43 = l_Lean_Elab_Term_getMainModule___rarg(x_6); +x_44 = lean_ctor_get(x_43, 0); lean_inc(x_44); -lean_dec(x_42); -x_45 = l_Lean_Elab_Term_getCurrMacroScope(x_41, x_44); -x_46 = lean_ctor_get(x_45, 0); -lean_inc(x_46); -x_47 = lean_ctor_get(x_45, 1); +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +lean_dec(x_43); +x_46 = l_Lean_Elab_Term_getCurrMacroScope(x_42, x_45); +x_47 = lean_ctor_get(x_46, 0); lean_inc(x_47); -lean_dec(x_45); -x_48 = l_Lean_addMacroScope(x_43, x_7, x_46); -x_49 = lean_box(x_2); -lean_inc(x_1); -x_50 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabImplicitLambda___main___lambda__1___boxed), 7, 4); -lean_closure_set(x_50, 0, x_9); -lean_closure_set(x_50, 1, x_1); -lean_closure_set(x_50, 2, x_4); -lean_closure_set(x_50, 3, x_49); -x_51 = l_Lean_Elab_Term_withLocalDecl___rarg(x_1, x_48, x_11, x_8, x_50, x_41, x_47); -lean_dec(x_1); -return x_51; +x_48 = lean_ctor_get(x_46, 1); +lean_inc(x_48); +lean_dec(x_46); +x_49 = l_Lean_addMacroScope(x_44, x_7, x_47); +x_50 = lean_box(x_2); +x_51 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabImplicitLambda___main___lambda__1___boxed), 7, 4); +lean_closure_set(x_51, 0, x_9); +lean_closure_set(x_51, 1, x_4); +lean_closure_set(x_51, 2, x_1); +lean_closure_set(x_51, 3, x_50); +x_52 = l_Lean_Elab_Term_withLocalDecl___rarg(x_49, x_11, x_8, x_51, x_42, x_48); +return x_52; } } else { -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; uint8_t x_71; uint8_t x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_52 = lean_ctor_get(x_6, 0); -x_53 = lean_ctor_get(x_6, 1); -x_54 = lean_ctor_get(x_6, 2); -x_55 = lean_ctor_get(x_6, 3); -x_56 = lean_ctor_get(x_6, 4); -x_57 = lean_ctor_get(x_6, 5); +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; uint8_t x_72; uint8_t x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_53 = lean_ctor_get(x_6, 0); +x_54 = lean_ctor_get(x_6, 1); +x_55 = lean_ctor_get(x_6, 2); +x_56 = lean_ctor_get(x_6, 3); +x_57 = lean_ctor_get(x_6, 4); +x_58 = lean_ctor_get(x_6, 5); +lean_inc(x_58); lean_inc(x_57); lean_inc(x_56); lean_inc(x_55); lean_inc(x_54); lean_inc(x_53); -lean_inc(x_52); lean_dec(x_6); -x_58 = lean_unsigned_to_nat(1u); -x_59 = lean_nat_add(x_57, x_58); -x_60 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_60, 0, x_52); -lean_ctor_set(x_60, 1, x_53); -lean_ctor_set(x_60, 2, x_54); -lean_ctor_set(x_60, 3, x_55); -lean_ctor_set(x_60, 4, x_56); -lean_ctor_set(x_60, 5, x_59); -x_61 = lean_ctor_get(x_5, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_5, 1); +x_59 = lean_unsigned_to_nat(1u); +x_60 = lean_nat_add(x_58, x_59); +x_61 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_61, 0, x_53); +lean_ctor_set(x_61, 1, x_54); +lean_ctor_set(x_61, 2, x_55); +lean_ctor_set(x_61, 3, x_56); +lean_ctor_set(x_61, 4, x_57); +lean_ctor_set(x_61, 5, x_60); +x_62 = lean_ctor_get(x_5, 0); lean_inc(x_62); -x_63 = lean_ctor_get(x_5, 2); +x_63 = lean_ctor_get(x_5, 1); lean_inc(x_63); -x_64 = lean_ctor_get(x_5, 3); +x_64 = lean_ctor_get(x_5, 2); lean_inc(x_64); -x_65 = lean_ctor_get(x_5, 4); +x_65 = lean_ctor_get(x_5, 3); lean_inc(x_65); -x_66 = lean_ctor_get(x_5, 5); +x_66 = lean_ctor_get(x_5, 4); lean_inc(x_66); -x_67 = lean_ctor_get(x_5, 6); +x_67 = lean_ctor_get(x_5, 5); lean_inc(x_67); -x_68 = lean_ctor_get(x_5, 7); +x_68 = lean_ctor_get(x_5, 6); lean_inc(x_68); -x_69 = lean_ctor_get(x_5, 8); +x_69 = lean_ctor_get(x_5, 7); lean_inc(x_69); -x_70 = lean_ctor_get_uint8(x_5, sizeof(void*)*10); -x_71 = lean_ctor_get_uint8(x_5, sizeof(void*)*10 + 1); -x_72 = lean_ctor_get_uint8(x_5, sizeof(void*)*10 + 2); +x_70 = lean_ctor_get(x_5, 8); +lean_inc(x_70); +x_71 = lean_ctor_get_uint8(x_5, sizeof(void*)*11); +x_72 = lean_ctor_get_uint8(x_5, sizeof(void*)*11 + 1); +x_73 = lean_ctor_get_uint8(x_5, sizeof(void*)*11 + 2); +x_74 = lean_ctor_get(x_5, 10); +lean_inc(x_74); if (lean_is_exclusive(x_5)) { lean_ctor_release(x_5, 0); lean_ctor_release(x_5, 1); @@ -20174,69 +20329,69 @@ if (lean_is_exclusive(x_5)) { lean_ctor_release(x_5, 7); lean_ctor_release(x_5, 8); lean_ctor_release(x_5, 9); - x_73 = x_5; + lean_ctor_release(x_5, 10); + x_75 = x_5; } else { lean_dec_ref(x_5); - x_73 = lean_box(0); + x_75 = lean_box(0); } -if (lean_is_scalar(x_73)) { - x_74 = lean_alloc_ctor(0, 10, 3); +if (lean_is_scalar(x_75)) { + x_76 = lean_alloc_ctor(0, 11, 3); } else { - x_74 = x_73; + x_76 = x_75; } -lean_ctor_set(x_74, 0, x_61); -lean_ctor_set(x_74, 1, x_62); -lean_ctor_set(x_74, 2, x_63); -lean_ctor_set(x_74, 3, x_64); -lean_ctor_set(x_74, 4, x_65); -lean_ctor_set(x_74, 5, x_66); -lean_ctor_set(x_74, 6, x_67); -lean_ctor_set(x_74, 7, x_68); -lean_ctor_set(x_74, 8, x_69); -lean_ctor_set(x_74, 9, x_57); -lean_ctor_set_uint8(x_74, sizeof(void*)*10, x_70); -lean_ctor_set_uint8(x_74, sizeof(void*)*10 + 1, x_71); -lean_ctor_set_uint8(x_74, sizeof(void*)*10 + 2, x_72); -x_75 = l_Lean_Elab_Term_getMainModule___rarg(x_60); -x_76 = lean_ctor_get(x_75, 0); -lean_inc(x_76); -x_77 = lean_ctor_get(x_75, 1); -lean_inc(x_77); -lean_dec(x_75); -x_78 = l_Lean_Elab_Term_getCurrMacroScope(x_74, x_77); -x_79 = lean_ctor_get(x_78, 0); +lean_ctor_set(x_76, 0, x_62); +lean_ctor_set(x_76, 1, x_63); +lean_ctor_set(x_76, 2, x_64); +lean_ctor_set(x_76, 3, x_65); +lean_ctor_set(x_76, 4, x_66); +lean_ctor_set(x_76, 5, x_67); +lean_ctor_set(x_76, 6, x_68); +lean_ctor_set(x_76, 7, x_69); +lean_ctor_set(x_76, 8, x_70); +lean_ctor_set(x_76, 9, x_58); +lean_ctor_set(x_76, 10, x_74); +lean_ctor_set_uint8(x_76, sizeof(void*)*11, x_71); +lean_ctor_set_uint8(x_76, sizeof(void*)*11 + 1, x_72); +lean_ctor_set_uint8(x_76, sizeof(void*)*11 + 2, x_73); +x_77 = l_Lean_Elab_Term_getMainModule___rarg(x_61); +x_78 = lean_ctor_get(x_77, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_77, 1); lean_inc(x_79); -x_80 = lean_ctor_get(x_78, 1); -lean_inc(x_80); -lean_dec(x_78); -x_81 = l_Lean_addMacroScope(x_76, x_7, x_79); -x_82 = lean_box(x_2); -lean_inc(x_1); -x_83 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabImplicitLambda___main___lambda__1___boxed), 7, 4); -lean_closure_set(x_83, 0, x_9); -lean_closure_set(x_83, 1, x_1); -lean_closure_set(x_83, 2, x_4); -lean_closure_set(x_83, 3, x_82); -x_84 = l_Lean_Elab_Term_withLocalDecl___rarg(x_1, x_81, x_11, x_8, x_83, x_74, x_80); -lean_dec(x_1); -return x_84; +lean_dec(x_77); +x_80 = l_Lean_Elab_Term_getCurrMacroScope(x_76, x_79); +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); +x_83 = l_Lean_addMacroScope(x_78, x_7, x_81); +x_84 = lean_box(x_2); +x_85 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabImplicitLambda___main___lambda__1___boxed), 7, 4); +lean_closure_set(x_85, 0, x_9); +lean_closure_set(x_85, 1, x_4); +lean_closure_set(x_85, 2, x_1); +lean_closure_set(x_85, 3, x_84); +x_86 = l_Lean_Elab_Term_withLocalDecl___rarg(x_83, x_11, x_8, x_85, x_76, x_82); +return x_86; } } else { -lean_object* x_85; +lean_object* x_87; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -x_85 = l_Lean_Elab_Term_elabImplicitLambdaAux(x_1, x_2, x_3, x_4, x_5, x_6); -return x_85; +x_87 = l_Lean_Elab_Term_elabImplicitLambdaAux(x_1, x_2, x_3, x_4, x_5, x_6); +return x_87; } } else { -lean_object* x_86; -x_86 = l_Lean_Elab_Term_elabImplicitLambdaAux(x_1, x_2, x_3, x_4, x_5, x_6); -return x_86; +lean_object* x_88; +x_88 = l_Lean_Elab_Term_elabImplicitLambdaAux(x_1, x_2, x_3, x_4, x_5, x_6); +return x_88; } } } @@ -20306,7 +20461,7 @@ lean_ctor_set(x_6, 5, x_10); x_11 = !lean_is_exclusive(x_5); if (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; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; uint8_t x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; +lean_object* x_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; uint8_t x_21; uint8_t x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; lean_object* x_29; x_12 = lean_ctor_get(x_5, 0); x_13 = lean_ctor_get(x_5, 1); x_14 = lean_ctor_get(x_5, 2); @@ -20316,11 +20471,13 @@ x_17 = lean_ctor_get(x_5, 5); x_18 = lean_ctor_get(x_5, 6); x_19 = lean_ctor_get(x_5, 7); x_20 = lean_ctor_get(x_5, 8); -x_21 = lean_ctor_get_uint8(x_5, sizeof(void*)*10); -x_22 = lean_ctor_get_uint8(x_5, sizeof(void*)*10 + 1); -x_23 = lean_ctor_get_uint8(x_5, sizeof(void*)*10 + 2); -x_24 = lean_ctor_get(x_5, 9); -lean_dec(x_24); +x_21 = lean_ctor_get_uint8(x_5, sizeof(void*)*11); +x_22 = lean_ctor_get_uint8(x_5, sizeof(void*)*11 + 1); +x_23 = lean_ctor_get_uint8(x_5, sizeof(void*)*11 + 2); +x_24 = lean_ctor_get(x_5, 10); +x_25 = lean_ctor_get(x_5, 9); +lean_dec(x_25); +lean_inc(x_24); lean_inc(x_8); lean_inc(x_20); lean_inc(x_19); @@ -20332,22 +20489,23 @@ lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_ctor_set(x_5, 9, x_8); -x_25 = lean_ctor_get(x_12, 3); -lean_inc(x_25); -x_26 = lean_ctor_get(x_12, 4); +x_26 = lean_ctor_get(x_12, 3); lean_inc(x_26); -x_27 = lean_nat_dec_eq(x_25, x_26); -if (x_27 == 0) +x_27 = lean_ctor_get(x_12, 4); +lean_inc(x_27); +x_28 = lean_nat_dec_eq(x_26, x_27); +if (x_28 == 0) { lean_dec(x_5); -x_28 = x_6; -goto block_207; +x_29 = x_6; +goto block_214; } else { -lean_object* x_208; lean_object* x_209; uint8_t x_210; +lean_object* x_215; lean_object* x_216; uint8_t x_217; +lean_dec(x_27); lean_dec(x_26); -lean_dec(x_25); +lean_dec(x_24); lean_dec(x_20); lean_dec(x_19); lean_dec(x_18); @@ -20358,45 +20516,46 @@ lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_8); -lean_dec(x_1); -x_208 = l_Lean_Meta_withIncRecDepth___rarg___closed__2; -x_209 = l_Lean_Elab_Term_throwError___rarg(x_4, x_208, x_5, x_6); lean_dec(x_4); -x_210 = !lean_is_exclusive(x_209); -if (x_210 == 0) +lean_dec(x_1); +x_215 = l_Lean_Meta_withIncRecDepth___rarg___closed__2; +x_216 = l_Lean_Elab_Term_throwError___rarg(x_215, x_5, x_6); +x_217 = !lean_is_exclusive(x_216); +if (x_217 == 0) { -return x_209; +return x_216; } else { -lean_object* x_211; lean_object* x_212; lean_object* x_213; -x_211 = lean_ctor_get(x_209, 0); -x_212 = lean_ctor_get(x_209, 1); -lean_inc(x_212); -lean_inc(x_211); -lean_dec(x_209); -x_213 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_213, 0, x_211); -lean_ctor_set(x_213, 1, x_212); -return x_213; +lean_object* x_218; lean_object* x_219; lean_object* x_220; +x_218 = lean_ctor_get(x_216, 0); +x_219 = lean_ctor_get(x_216, 1); +lean_inc(x_219); +lean_inc(x_218); +lean_dec(x_216); +x_220 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_220, 0, x_218); +lean_ctor_set(x_220, 1, x_219); +return x_220; } } -block_207: +block_214: { -uint8_t x_29; -x_29 = !lean_is_exclusive(x_12); -if (x_29 == 0) +uint8_t x_30; +x_30 = !lean_is_exclusive(x_12); +if (x_30 == 0) { -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_55; lean_object* x_56; lean_object* x_61; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; uint8_t x_109; -x_30 = lean_ctor_get(x_12, 4); -lean_dec(x_30); -x_31 = lean_ctor_get(x_12, 3); +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_56; lean_object* x_57; lean_object* x_62; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; +x_31 = lean_ctor_get(x_12, 4); lean_dec(x_31); -x_32 = lean_nat_add(x_25, x_9); -lean_dec(x_25); -lean_inc(x_26); -lean_inc(x_32); -lean_ctor_set(x_12, 3, x_32); +x_32 = lean_ctor_get(x_12, 3); +lean_dec(x_32); +x_33 = lean_nat_add(x_26, x_9); +lean_dec(x_26); +lean_inc(x_27); +lean_inc(x_33); +lean_ctor_set(x_12, 3, x_33); +lean_inc(x_24); lean_inc(x_8); lean_inc(x_20); lean_inc(x_19); @@ -20407,83 +20566,94 @@ lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); -x_33 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_33, 0, x_12); -lean_ctor_set(x_33, 1, x_13); -lean_ctor_set(x_33, 2, x_14); -lean_ctor_set(x_33, 3, x_15); -lean_ctor_set(x_33, 4, x_16); -lean_ctor_set(x_33, 5, x_17); -lean_ctor_set(x_33, 6, x_18); -lean_ctor_set(x_33, 7, x_19); -lean_ctor_set(x_33, 8, x_20); -lean_ctor_set(x_33, 9, x_8); -lean_ctor_set_uint8(x_33, sizeof(void*)*10, x_21); -lean_ctor_set_uint8(x_33, sizeof(void*)*10 + 1, x_22); -lean_ctor_set_uint8(x_33, sizeof(void*)*10 + 2, x_23); -x_105 = l_Lean_Elab_Term_getOptions(x_33, x_28); -x_106 = lean_ctor_get(x_105, 0); -lean_inc(x_106); -x_107 = lean_ctor_get(x_105, 1); +x_34 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_34, 0, x_12); +lean_ctor_set(x_34, 1, x_13); +lean_ctor_set(x_34, 2, x_14); +lean_ctor_set(x_34, 3, x_15); +lean_ctor_set(x_34, 4, x_16); +lean_ctor_set(x_34, 5, x_17); +lean_ctor_set(x_34, 6, x_18); +lean_ctor_set(x_34, 7, x_19); +lean_ctor_set(x_34, 8, x_20); +lean_ctor_set(x_34, 9, x_8); +lean_ctor_set(x_34, 10, x_24); +lean_ctor_set_uint8(x_34, sizeof(void*)*11, x_21); +lean_ctor_set_uint8(x_34, sizeof(void*)*11 + 1, x_22); +lean_ctor_set_uint8(x_34, sizeof(void*)*11 + 2, x_23); +x_106 = l_Lean_Elab_Term_getOptions(x_34, x_29); +x_107 = lean_ctor_get(x_106, 0); lean_inc(x_107); -lean_dec(x_105); -x_108 = l___private_Lean_Elab_Util_4__regTraceClasses___closed__2; -x_109 = l_Lean_checkTraceOption(x_106, x_108); +x_108 = lean_ctor_get(x_106, 1); +lean_inc(x_108); lean_dec(x_106); -if (x_109 == 0) +x_109 = l_Lean_Elab_Term_getCurrRef(x_34, x_108); +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_112 = l___private_Lean_Elab_Util_4__regTraceClasses___closed__2; +x_113 = l_Lean_checkTraceOption(x_107, x_112); +lean_dec(x_107); +if (x_113 == 0) { -x_61 = x_107; -goto block_104; +lean_dec(x_110); +x_62 = x_111; +goto block_105; } else { -lean_object* x_110; +lean_object* x_114; lean_inc(x_4); -x_110 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_110, 0, x_4); +x_114 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_114, 0, x_4); if (lean_obj_tag(x_1) == 0) { -lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; -x_111 = l_Lean_Elab_Term_elabTermAux___main___closed__1; -x_112 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_112, 0, x_111); -lean_ctor_set(x_112, 1, x_110); -lean_inc(x_33); -x_113 = l_Lean_Elab_Term_logTrace(x_108, x_4, x_112, x_33, x_107); -x_114 = lean_ctor_get(x_113, 1); -lean_inc(x_114); -lean_dec(x_113); -x_61 = x_114; -goto block_104; +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; +x_115 = l_Lean_Elab_Term_elabTermAux___main___closed__1; +x_116 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_116, 0, x_115); +lean_ctor_set(x_116, 1, x_114); +lean_inc(x_34); +x_117 = l_Lean_Elab_Term_logTrace(x_112, x_110, x_116, x_34, x_111); +lean_dec(x_110); +x_118 = lean_ctor_get(x_117, 1); +lean_inc(x_118); +lean_dec(x_117); +x_62 = x_118; +goto block_105; } else { -lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; -x_115 = lean_ctor_get(x_1, 0); -lean_inc(x_115); -x_116 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_116, 0, x_115); -x_117 = l_Lean_Meta_Exception_toTraceMessageData___closed__4; -x_118 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_118, 0, x_116); -lean_ctor_set(x_118, 1, x_117); -x_119 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_119, 0, x_118); -lean_ctor_set(x_119, 1, x_110); -lean_inc(x_33); -x_120 = l_Lean_Elab_Term_logTrace(x_108, x_4, x_119, x_33, x_107); -x_121 = lean_ctor_get(x_120, 1); -lean_inc(x_121); -lean_dec(x_120); -x_61 = x_121; -goto block_104; +lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; +x_119 = lean_ctor_get(x_1, 0); +lean_inc(x_119); +x_120 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_120, 0, x_119); +x_121 = l_Lean_Meta_Exception_toTraceMessageData___closed__4; +x_122 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_122, 0, x_120); +lean_ctor_set(x_122, 1, x_121); +x_123 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_123, 0, x_122); +lean_ctor_set(x_123, 1, x_114); +lean_inc(x_34); +x_124 = l_Lean_Elab_Term_logTrace(x_112, x_110, x_123, x_34, x_111); +lean_dec(x_110); +x_125 = lean_ctor_get(x_124, 1); +lean_inc(x_125); +lean_dec(x_124); +x_62 = x_125; +goto block_105; } } -block_54: +block_55: { -if (lean_obj_tag(x_34) == 0) +if (lean_obj_tag(x_35) == 0) { lean_dec(x_12); +lean_dec(x_24); lean_dec(x_20); lean_dec(x_19); lean_dec(x_18); @@ -20495,118 +20665,120 @@ lean_dec(x_13); lean_dec(x_8); if (x_3 == 0) { -lean_object* x_36; -x_36 = l_Lean_Elab_Term_elabUsingElabFns(x_4, x_1, x_2, x_33, x_35); -return x_36; -} -else -{ lean_object* x_37; -lean_inc(x_33); -lean_inc(x_1); -lean_inc(x_4); -x_37 = l_Lean_Elab_Term_useImplicitLambda_x3f(x_4, x_1, x_33, x_35); -if (lean_obj_tag(x_37) == 0) -{ -lean_object* x_38; -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -if (lean_obj_tag(x_38) == 0) -{ -lean_object* x_39; lean_object* x_40; -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); -lean_dec(x_37); -x_40 = l_Lean_Elab_Term_elabUsingElabFns(x_4, x_1, x_2, x_33, x_39); -return x_40; -} -else -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; -lean_dec(x_1); -x_41 = lean_ctor_get(x_37, 1); -lean_inc(x_41); -lean_dec(x_37); -x_42 = lean_ctor_get(x_38, 0); -lean_inc(x_42); -lean_dec(x_38); -x_43 = l_Array_empty___closed__1; -x_44 = l_Lean_Elab_Term_elabImplicitLambda___main(x_4, x_2, x_42, x_43, x_33, x_41); -return x_44; -} -} -else -{ -uint8_t x_45; -lean_dec(x_33); -lean_dec(x_4); -lean_dec(x_1); -x_45 = !lean_is_exclusive(x_37); -if (x_45 == 0) -{ +x_37 = l_Lean_Elab_Term_elabUsingElabFns(x_4, x_1, x_2, x_34, x_36); return x_37; } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_37, 0); -x_47 = lean_ctor_get(x_37, 1); +lean_object* x_38; +lean_inc(x_34); +lean_inc(x_1); +lean_inc(x_4); +x_38 = l_Lean_Elab_Term_useImplicitLambda_x3f(x_4, x_1, x_34, x_36); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +if (lean_obj_tag(x_39) == 0) +{ +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +lean_dec(x_38); +x_41 = l_Lean_Elab_Term_elabUsingElabFns(x_4, x_1, x_2, x_34, x_40); +return x_41; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +lean_dec(x_1); +x_42 = lean_ctor_get(x_38, 1); +lean_inc(x_42); +lean_dec(x_38); +x_43 = lean_ctor_get(x_39, 0); +lean_inc(x_43); +lean_dec(x_39); +x_44 = l_Array_empty___closed__1; +x_45 = l_Lean_Elab_Term_elabImplicitLambda___main(x_4, x_2, x_43, x_44, x_34, x_42); +return x_45; +} +} +else +{ +uint8_t x_46; +lean_dec(x_34); +lean_dec(x_4); +lean_dec(x_1); +x_46 = !lean_is_exclusive(x_38); +if (x_46 == 0) +{ +return x_38; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_38, 0); +x_48 = lean_ctor_get(x_38, 1); +lean_inc(x_48); lean_inc(x_47); -lean_inc(x_46); -lean_dec(x_37); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; +lean_dec(x_38); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +return x_49; } } } } else { -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -lean_dec(x_33); -x_49 = lean_ctor_get(x_34, 0); -lean_inc(x_49); +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_dec(x_34); -lean_inc(x_49); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_4); -lean_ctor_set(x_50, 1, x_49); -x_51 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_51, 0, x_50); -lean_ctor_set(x_51, 1, x_20); -x_52 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_52, 0, x_12); -lean_ctor_set(x_52, 1, x_13); -lean_ctor_set(x_52, 2, x_14); -lean_ctor_set(x_52, 3, x_15); -lean_ctor_set(x_52, 4, x_16); -lean_ctor_set(x_52, 5, x_17); -lean_ctor_set(x_52, 6, x_18); -lean_ctor_set(x_52, 7, x_19); -lean_ctor_set(x_52, 8, x_51); -lean_ctor_set(x_52, 9, x_8); -lean_ctor_set_uint8(x_52, sizeof(void*)*10, x_21); -lean_ctor_set_uint8(x_52, sizeof(void*)*10 + 1, x_22); -lean_ctor_set_uint8(x_52, sizeof(void*)*10 + 2, x_23); -x_4 = x_49; -x_5 = x_52; -x_6 = x_35; +x_50 = lean_ctor_get(x_35, 0); +lean_inc(x_50); +lean_dec(x_35); +lean_inc(x_50); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_4); +lean_ctor_set(x_51, 1, x_50); +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_20); +x_53 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_53, 0, x_12); +lean_ctor_set(x_53, 1, x_13); +lean_ctor_set(x_53, 2, x_14); +lean_ctor_set(x_53, 3, x_15); +lean_ctor_set(x_53, 4, x_16); +lean_ctor_set(x_53, 5, x_17); +lean_ctor_set(x_53, 6, x_18); +lean_ctor_set(x_53, 7, x_19); +lean_ctor_set(x_53, 8, x_52); +lean_ctor_set(x_53, 9, x_8); +lean_ctor_set(x_53, 10, x_24); +lean_ctor_set_uint8(x_53, sizeof(void*)*11, x_21); +lean_ctor_set_uint8(x_53, sizeof(void*)*11 + 1, x_22); +lean_ctor_set_uint8(x_53, sizeof(void*)*11 + 2, x_23); +x_4 = x_50; +x_5 = x_53; +x_6 = x_36; goto _start; } } -block_60: -{ -lean_object* x_57; -x_57 = lean_ctor_get(x_55, 0); -lean_inc(x_57); -if (lean_obj_tag(x_57) == 0) +block_61: { lean_object* x_58; -lean_dec(x_57); -lean_dec(x_33); +x_58 = lean_ctor_get(x_56, 0); +lean_inc(x_58); +if (lean_obj_tag(x_58) == 0) +{ +lean_object* x_59; +lean_dec(x_58); +lean_dec(x_34); lean_dec(x_12); +lean_dec(x_24); lean_dec(x_20); lean_dec(x_19); lean_dec(x_18); @@ -20618,187 +20790,188 @@ lean_dec(x_13); lean_dec(x_8); lean_dec(x_4); lean_dec(x_1); -x_58 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_58, 0, x_55); -lean_ctor_set(x_58, 1, x_56); -return x_58; +x_59 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_59, 0, x_56); +lean_ctor_set(x_59, 1, x_57); +return x_59; } else { -lean_object* x_59; -lean_dec(x_55); -x_59 = lean_box(0); -x_34 = x_59; -x_35 = x_56; -goto block_54; +lean_object* x_60; +lean_dec(x_56); +x_60 = lean_box(0); +x_35 = x_60; +x_36 = x_57; +goto block_55; } } -block_104: +block_105: { -lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_62 = lean_ctor_get(x_61, 0); -lean_inc(x_62); +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; x_63 = lean_ctor_get(x_62, 0); lean_inc(x_63); -lean_dec(x_62); -x_64 = l_Lean_Elab_Term_getCurrMacroScope(x_33, x_61); -x_65 = lean_ctor_get(x_64, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_64, 1); +x_64 = lean_ctor_get(x_63, 0); +lean_inc(x_64); +lean_dec(x_63); +x_65 = l_Lean_Elab_Term_getCurrMacroScope(x_34, x_62); +x_66 = lean_ctor_get(x_65, 0); lean_inc(x_66); -lean_dec(x_64); -x_67 = l_Lean_Elab_Term_getEnv___rarg(x_66); -x_68 = lean_ctor_get(x_67, 1); -lean_inc(x_68); -x_69 = lean_ctor_get(x_67, 0); +x_67 = lean_ctor_get(x_65, 1); +lean_inc(x_67); +lean_dec(x_65); +x_68 = l_Lean_Elab_Term_getEnv___rarg(x_67); +x_69 = lean_ctor_get(x_68, 1); lean_inc(x_69); -lean_dec(x_67); x_70 = lean_ctor_get(x_68, 0); lean_inc(x_70); -x_71 = lean_ctor_get(x_68, 1); -lean_inc(x_71); -x_72 = lean_ctor_get(x_68, 2); -lean_inc(x_72); -x_73 = lean_ctor_get(x_68, 3); -lean_inc(x_73); -x_74 = lean_ctor_get(x_68, 4); -lean_inc(x_74); -x_75 = lean_ctor_get(x_68, 5); -lean_inc(x_75); -x_76 = lean_environment_main_module(x_69); -x_77 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_77, 0, x_76); -lean_ctor_set(x_77, 1, x_65); -lean_ctor_set(x_77, 2, x_32); -lean_ctor_set(x_77, 3, x_26); -lean_inc(x_4); -x_78 = l_Lean_Elab_getMacros(x_63, x_4, x_77, x_75); -lean_dec(x_63); -if (lean_obj_tag(x_78) == 0) -{ -uint8_t x_79; -x_79 = !lean_is_exclusive(x_68); -if (x_79 == 0) -{ -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_80 = lean_ctor_get(x_68, 5); -lean_dec(x_80); -x_81 = lean_ctor_get(x_68, 4); -lean_dec(x_81); -x_82 = lean_ctor_get(x_68, 3); -lean_dec(x_82); -x_83 = lean_ctor_get(x_68, 2); -lean_dec(x_83); -x_84 = lean_ctor_get(x_68, 1); -lean_dec(x_84); -x_85 = lean_ctor_get(x_68, 0); -lean_dec(x_85); -x_86 = lean_ctor_get(x_78, 0); -lean_inc(x_86); -x_87 = lean_ctor_get(x_78, 1); -lean_inc(x_87); -lean_dec(x_78); -lean_ctor_set(x_68, 5, x_87); -x_88 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_88, 0, x_86); -x_34 = x_88; -x_35 = x_68; -goto block_54; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_dec(x_68); -x_89 = lean_ctor_get(x_78, 0); -lean_inc(x_89); -x_90 = lean_ctor_get(x_78, 1); +x_71 = lean_ctor_get(x_69, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_69, 1); +lean_inc(x_72); +x_73 = lean_ctor_get(x_69, 2); +lean_inc(x_73); +x_74 = lean_ctor_get(x_69, 3); +lean_inc(x_74); +x_75 = lean_ctor_get(x_69, 4); +lean_inc(x_75); +x_76 = lean_ctor_get(x_69, 5); +lean_inc(x_76); +x_77 = lean_environment_main_module(x_70); +x_78 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_78, 0, x_77); +lean_ctor_set(x_78, 1, x_66); +lean_ctor_set(x_78, 2, x_33); +lean_ctor_set(x_78, 3, x_27); +lean_inc(x_4); +x_79 = l_Lean_Elab_getMacros(x_64, x_4, x_78, x_76); +lean_dec(x_64); +if (lean_obj_tag(x_79) == 0) +{ +uint8_t x_80; +x_80 = !lean_is_exclusive(x_69); +if (x_80 == 0) +{ +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_81 = lean_ctor_get(x_69, 5); +lean_dec(x_81); +x_82 = lean_ctor_get(x_69, 4); +lean_dec(x_82); +x_83 = lean_ctor_get(x_69, 3); +lean_dec(x_83); +x_84 = lean_ctor_get(x_69, 2); +lean_dec(x_84); +x_85 = lean_ctor_get(x_69, 1); +lean_dec(x_85); +x_86 = lean_ctor_get(x_69, 0); +lean_dec(x_86); +x_87 = lean_ctor_get(x_79, 0); +lean_inc(x_87); +x_88 = lean_ctor_get(x_79, 1); +lean_inc(x_88); +lean_dec(x_79); +lean_ctor_set(x_69, 5, x_88); +x_89 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_89, 0, x_87); +x_35 = x_89; +x_36 = x_69; +goto block_55; +} +else +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; +lean_dec(x_69); +x_90 = lean_ctor_get(x_79, 0); lean_inc(x_90); -lean_dec(x_78); -x_91 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_91, 0, x_70); -lean_ctor_set(x_91, 1, x_71); -lean_ctor_set(x_91, 2, x_72); -lean_ctor_set(x_91, 3, x_73); -lean_ctor_set(x_91, 4, x_74); -lean_ctor_set(x_91, 5, x_90); -x_92 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_92, 0, x_89); -x_34 = x_92; -x_35 = x_91; -goto block_54; +x_91 = lean_ctor_get(x_79, 1); +lean_inc(x_91); +lean_dec(x_79); +x_92 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_92, 0, x_71); +lean_ctor_set(x_92, 1, x_72); +lean_ctor_set(x_92, 2, x_73); +lean_ctor_set(x_92, 3, x_74); +lean_ctor_set(x_92, 4, x_75); +lean_ctor_set(x_92, 5, x_91); +x_93 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_93, 0, x_90); +x_35 = x_93; +x_36 = x_92; +goto block_55; } } else { -lean_object* x_93; +lean_object* x_94; +lean_dec(x_75); lean_dec(x_74); lean_dec(x_73); lean_dec(x_72); lean_dec(x_71); -lean_dec(x_70); -x_93 = lean_ctor_get(x_78, 0); -lean_inc(x_93); -lean_dec(x_78); -if (lean_obj_tag(x_93) == 0) -{ -lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; -x_94 = lean_ctor_get(x_93, 0); +x_94 = lean_ctor_get(x_79, 0); lean_inc(x_94); -x_95 = lean_ctor_get(x_93, 1); +lean_dec(x_79); +if (lean_obj_tag(x_94) == 0) +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_95 = lean_ctor_get(x_94, 0); lean_inc(x_95); -lean_dec(x_93); -x_96 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_96, 0, x_95); -x_97 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_97, 0, x_96); -lean_inc(x_33); -x_98 = l_Lean_Elab_Term_throwError___rarg(x_94, x_97, x_33, x_68); +x_96 = lean_ctor_get(x_94, 1); +lean_inc(x_96); lean_dec(x_94); -x_99 = lean_ctor_get(x_98, 0); -lean_inc(x_99); -x_100 = lean_ctor_get(x_98, 1); +x_97 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_97, 0, x_96); +x_98 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_98, 0, x_97); +lean_inc(x_34); +x_99 = l_Lean_Elab_Term_throwErrorAt___rarg(x_95, x_98, x_34, x_69); +lean_dec(x_95); +x_100 = lean_ctor_get(x_99, 0); lean_inc(x_100); -lean_dec(x_98); -x_55 = x_99; +x_101 = lean_ctor_get(x_99, 1); +lean_inc(x_101); +lean_dec(x_99); x_56 = x_100; -goto block_60; +x_57 = x_101; +goto block_61; } else { -lean_object* x_101; lean_object* x_102; lean_object* x_103; -x_101 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_68); -x_102 = lean_ctor_get(x_101, 0); -lean_inc(x_102); -x_103 = lean_ctor_get(x_101, 1); +lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_102 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_69); +x_103 = lean_ctor_get(x_102, 0); lean_inc(x_103); -lean_dec(x_101); -x_55 = x_102; +x_104 = lean_ctor_get(x_102, 1); +lean_inc(x_104); +lean_dec(x_102); x_56 = x_103; -goto block_60; +x_57 = x_104; +goto block_61; } } } } else { -lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_149; lean_object* x_150; lean_object* x_155; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; uint8_t x_194; -x_122 = lean_ctor_get(x_12, 0); -x_123 = lean_ctor_get(x_12, 1); -x_124 = lean_ctor_get(x_12, 2); -lean_inc(x_124); -lean_inc(x_123); -lean_inc(x_122); +lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_153; lean_object* x_154; lean_object* x_159; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; uint8_t x_201; +x_126 = lean_ctor_get(x_12, 0); +x_127 = lean_ctor_get(x_12, 1); +x_128 = lean_ctor_get(x_12, 2); +lean_inc(x_128); +lean_inc(x_127); +lean_inc(x_126); lean_dec(x_12); -x_125 = lean_nat_add(x_25, x_9); -lean_dec(x_25); -lean_inc(x_26); -lean_inc(x_125); -x_126 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_126, 0, x_122); -lean_ctor_set(x_126, 1, x_123); -lean_ctor_set(x_126, 2, x_124); -lean_ctor_set(x_126, 3, x_125); -lean_ctor_set(x_126, 4, x_26); +x_129 = lean_nat_add(x_26, x_9); +lean_dec(x_26); +lean_inc(x_27); +lean_inc(x_129); +x_130 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_130, 0, x_126); +lean_ctor_set(x_130, 1, x_127); +lean_ctor_set(x_130, 2, x_128); +lean_ctor_set(x_130, 3, x_129); +lean_ctor_set(x_130, 4, x_27); +lean_inc(x_24); lean_inc(x_8); lean_inc(x_20); lean_inc(x_19); @@ -20808,84 +20981,95 @@ lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); -lean_inc(x_126); -x_127 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_127, 0, x_126); -lean_ctor_set(x_127, 1, x_13); -lean_ctor_set(x_127, 2, x_14); -lean_ctor_set(x_127, 3, x_15); -lean_ctor_set(x_127, 4, x_16); -lean_ctor_set(x_127, 5, x_17); -lean_ctor_set(x_127, 6, x_18); -lean_ctor_set(x_127, 7, x_19); -lean_ctor_set(x_127, 8, x_20); -lean_ctor_set(x_127, 9, x_8); -lean_ctor_set_uint8(x_127, sizeof(void*)*10, x_21); -lean_ctor_set_uint8(x_127, sizeof(void*)*10 + 1, x_22); -lean_ctor_set_uint8(x_127, sizeof(void*)*10 + 2, x_23); -x_190 = l_Lean_Elab_Term_getOptions(x_127, x_28); -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___private_Lean_Elab_Util_4__regTraceClasses___closed__2; -x_194 = l_Lean_checkTraceOption(x_191, x_193); -lean_dec(x_191); -if (x_194 == 0) +lean_inc(x_130); +x_131 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_131, 0, x_130); +lean_ctor_set(x_131, 1, x_13); +lean_ctor_set(x_131, 2, x_14); +lean_ctor_set(x_131, 3, x_15); +lean_ctor_set(x_131, 4, x_16); +lean_ctor_set(x_131, 5, x_17); +lean_ctor_set(x_131, 6, x_18); +lean_ctor_set(x_131, 7, x_19); +lean_ctor_set(x_131, 8, x_20); +lean_ctor_set(x_131, 9, x_8); +lean_ctor_set(x_131, 10, x_24); +lean_ctor_set_uint8(x_131, sizeof(void*)*11, x_21); +lean_ctor_set_uint8(x_131, sizeof(void*)*11 + 1, x_22); +lean_ctor_set_uint8(x_131, sizeof(void*)*11 + 2, x_23); +x_194 = l_Lean_Elab_Term_getOptions(x_131, x_29); +x_195 = lean_ctor_get(x_194, 0); +lean_inc(x_195); +x_196 = lean_ctor_get(x_194, 1); +lean_inc(x_196); +lean_dec(x_194); +x_197 = l_Lean_Elab_Term_getCurrRef(x_131, x_196); +x_198 = lean_ctor_get(x_197, 0); +lean_inc(x_198); +x_199 = lean_ctor_get(x_197, 1); +lean_inc(x_199); +lean_dec(x_197); +x_200 = l___private_Lean_Elab_Util_4__regTraceClasses___closed__2; +x_201 = l_Lean_checkTraceOption(x_195, x_200); +lean_dec(x_195); +if (x_201 == 0) { -x_155 = x_192; -goto block_189; +lean_dec(x_198); +x_159 = x_199; +goto block_193; } else { -lean_object* x_195; +lean_object* x_202; lean_inc(x_4); -x_195 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_195, 0, x_4); +x_202 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_202, 0, x_4); if (lean_obj_tag(x_1) == 0) { -lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; -x_196 = l_Lean_Elab_Term_elabTermAux___main___closed__1; -x_197 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_197, 0, x_196); -lean_ctor_set(x_197, 1, x_195); -lean_inc(x_127); -x_198 = l_Lean_Elab_Term_logTrace(x_193, x_4, x_197, x_127, x_192); -x_199 = lean_ctor_get(x_198, 1); -lean_inc(x_199); -lean_dec(x_198); -x_155 = x_199; -goto block_189; -} -else -{ -lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; -x_200 = lean_ctor_get(x_1, 0); -lean_inc(x_200); -x_201 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_201, 0, x_200); -x_202 = l_Lean_Meta_Exception_toTraceMessageData___closed__4; -x_203 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_203, 0, x_201); -lean_ctor_set(x_203, 1, x_202); +lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; +x_203 = l_Lean_Elab_Term_elabTermAux___main___closed__1; x_204 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_204, 0, x_203); -lean_ctor_set(x_204, 1, x_195); -lean_inc(x_127); -x_205 = l_Lean_Elab_Term_logTrace(x_193, x_4, x_204, x_127, x_192); +lean_ctor_set(x_204, 1, x_202); +lean_inc(x_131); +x_205 = l_Lean_Elab_Term_logTrace(x_200, x_198, x_204, x_131, x_199); +lean_dec(x_198); x_206 = lean_ctor_get(x_205, 1); lean_inc(x_206); lean_dec(x_205); -x_155 = x_206; -goto block_189; +x_159 = x_206; +goto block_193; +} +else +{ +lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; +x_207 = lean_ctor_get(x_1, 0); +lean_inc(x_207); +x_208 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_208, 0, x_207); +x_209 = l_Lean_Meta_Exception_toTraceMessageData___closed__4; +x_210 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_210, 0, x_208); +lean_ctor_set(x_210, 1, x_209); +x_211 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_211, 0, x_210); +lean_ctor_set(x_211, 1, x_202); +lean_inc(x_131); +x_212 = l_Lean_Elab_Term_logTrace(x_200, x_198, x_211, x_131, x_199); +lean_dec(x_198); +x_213 = lean_ctor_get(x_212, 1); +lean_inc(x_213); +lean_dec(x_212); +x_159 = x_213; +goto block_193; } } -block_148: +block_152: { -if (lean_obj_tag(x_128) == 0) +if (lean_obj_tag(x_132) == 0) { -lean_dec(x_126); +lean_dec(x_130); +lean_dec(x_24); lean_dec(x_20); lean_dec(x_19); lean_dec(x_18); @@ -20897,120 +21081,122 @@ lean_dec(x_13); lean_dec(x_8); if (x_3 == 0) { -lean_object* x_130; -x_130 = l_Lean_Elab_Term_elabUsingElabFns(x_4, x_1, x_2, x_127, x_129); -return x_130; -} -else -{ -lean_object* x_131; -lean_inc(x_127); -lean_inc(x_1); -lean_inc(x_4); -x_131 = l_Lean_Elab_Term_useImplicitLambda_x3f(x_4, x_1, x_127, x_129); -if (lean_obj_tag(x_131) == 0) -{ -lean_object* x_132; -x_132 = lean_ctor_get(x_131, 0); -lean_inc(x_132); -if (lean_obj_tag(x_132) == 0) -{ -lean_object* x_133; lean_object* x_134; -x_133 = lean_ctor_get(x_131, 1); -lean_inc(x_133); -lean_dec(x_131); -x_134 = l_Lean_Elab_Term_elabUsingElabFns(x_4, x_1, x_2, x_127, x_133); +lean_object* x_134; +x_134 = l_Lean_Elab_Term_elabUsingElabFns(x_4, x_1, x_2, x_131, x_133); return x_134; } else { -lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; -lean_dec(x_1); -x_135 = lean_ctor_get(x_131, 1); -lean_inc(x_135); -lean_dec(x_131); -x_136 = lean_ctor_get(x_132, 0); +lean_object* x_135; +lean_inc(x_131); +lean_inc(x_1); +lean_inc(x_4); +x_135 = l_Lean_Elab_Term_useImplicitLambda_x3f(x_4, x_1, x_131, x_133); +if (lean_obj_tag(x_135) == 0) +{ +lean_object* x_136; +x_136 = lean_ctor_get(x_135, 0); lean_inc(x_136); -lean_dec(x_132); -x_137 = l_Array_empty___closed__1; -x_138 = l_Lean_Elab_Term_elabImplicitLambda___main(x_4, x_2, x_136, x_137, x_127, x_135); +if (lean_obj_tag(x_136) == 0) +{ +lean_object* x_137; lean_object* x_138; +x_137 = lean_ctor_get(x_135, 1); +lean_inc(x_137); +lean_dec(x_135); +x_138 = l_Lean_Elab_Term_elabUsingElabFns(x_4, x_1, x_2, x_131, x_137); return x_138; } -} else { lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; -lean_dec(x_127); -lean_dec(x_4); lean_dec(x_1); -x_139 = lean_ctor_get(x_131, 0); +x_139 = lean_ctor_get(x_135, 1); lean_inc(x_139); -x_140 = lean_ctor_get(x_131, 1); +lean_dec(x_135); +x_140 = lean_ctor_get(x_136, 0); lean_inc(x_140); -if (lean_is_exclusive(x_131)) { - lean_ctor_release(x_131, 0); - lean_ctor_release(x_131, 1); - x_141 = x_131; -} else { - lean_dec_ref(x_131); - x_141 = lean_box(0); -} -if (lean_is_scalar(x_141)) { - x_142 = lean_alloc_ctor(1, 2, 0); -} else { - x_142 = x_141; -} -lean_ctor_set(x_142, 0, x_139); -lean_ctor_set(x_142, 1, x_140); +lean_dec(x_136); +x_141 = l_Array_empty___closed__1; +x_142 = l_Lean_Elab_Term_elabImplicitLambda___main(x_4, x_2, x_140, x_141, x_131, x_139); return x_142; } } -} else { lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; -lean_dec(x_127); -x_143 = lean_ctor_get(x_128, 0); +lean_dec(x_131); +lean_dec(x_4); +lean_dec(x_1); +x_143 = lean_ctor_get(x_135, 0); lean_inc(x_143); -lean_dec(x_128); -lean_inc(x_143); -x_144 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_144, 0, x_4); -lean_ctor_set(x_144, 1, x_143); -x_145 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_145, 0, x_144); -lean_ctor_set(x_145, 1, x_20); -x_146 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_146, 0, x_126); -lean_ctor_set(x_146, 1, x_13); -lean_ctor_set(x_146, 2, x_14); -lean_ctor_set(x_146, 3, x_15); -lean_ctor_set(x_146, 4, x_16); -lean_ctor_set(x_146, 5, x_17); -lean_ctor_set(x_146, 6, x_18); -lean_ctor_set(x_146, 7, x_19); -lean_ctor_set(x_146, 8, x_145); -lean_ctor_set(x_146, 9, x_8); -lean_ctor_set_uint8(x_146, sizeof(void*)*10, x_21); -lean_ctor_set_uint8(x_146, sizeof(void*)*10 + 1, x_22); -lean_ctor_set_uint8(x_146, sizeof(void*)*10 + 2, x_23); -x_4 = x_143; -x_5 = x_146; -x_6 = x_129; +x_144 = lean_ctor_get(x_135, 1); +lean_inc(x_144); +if (lean_is_exclusive(x_135)) { + lean_ctor_release(x_135, 0); + lean_ctor_release(x_135, 1); + x_145 = x_135; +} else { + lean_dec_ref(x_135); + x_145 = lean_box(0); +} +if (lean_is_scalar(x_145)) { + x_146 = lean_alloc_ctor(1, 2, 0); +} else { + x_146 = x_145; +} +lean_ctor_set(x_146, 0, x_143); +lean_ctor_set(x_146, 1, x_144); +return x_146; +} +} +} +else +{ +lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; +lean_dec(x_131); +x_147 = lean_ctor_get(x_132, 0); +lean_inc(x_147); +lean_dec(x_132); +lean_inc(x_147); +x_148 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_148, 0, x_4); +lean_ctor_set(x_148, 1, x_147); +x_149 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_149, 0, x_148); +lean_ctor_set(x_149, 1, x_20); +x_150 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_150, 0, x_130); +lean_ctor_set(x_150, 1, x_13); +lean_ctor_set(x_150, 2, x_14); +lean_ctor_set(x_150, 3, x_15); +lean_ctor_set(x_150, 4, x_16); +lean_ctor_set(x_150, 5, x_17); +lean_ctor_set(x_150, 6, x_18); +lean_ctor_set(x_150, 7, x_19); +lean_ctor_set(x_150, 8, x_149); +lean_ctor_set(x_150, 9, x_8); +lean_ctor_set(x_150, 10, x_24); +lean_ctor_set_uint8(x_150, sizeof(void*)*11, x_21); +lean_ctor_set_uint8(x_150, sizeof(void*)*11 + 1, x_22); +lean_ctor_set_uint8(x_150, sizeof(void*)*11 + 2, x_23); +x_4 = x_147; +x_5 = x_150; +x_6 = x_133; goto _start; } } -block_154: +block_158: { -lean_object* x_151; -x_151 = lean_ctor_get(x_149, 0); -lean_inc(x_151); -if (lean_obj_tag(x_151) == 0) +lean_object* x_155; +x_155 = lean_ctor_get(x_153, 0); +lean_inc(x_155); +if (lean_obj_tag(x_155) == 0) { -lean_object* x_152; -lean_dec(x_151); -lean_dec(x_127); -lean_dec(x_126); +lean_object* x_156; +lean_dec(x_155); +lean_dec(x_131); +lean_dec(x_130); +lean_dec(x_24); lean_dec(x_20); lean_dec(x_19); lean_dec(x_18); @@ -21022,146 +21208,146 @@ lean_dec(x_13); lean_dec(x_8); lean_dec(x_4); lean_dec(x_1); -x_152 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_152, 0, x_149); -lean_ctor_set(x_152, 1, x_150); -return x_152; +x_156 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_156, 0, x_153); +lean_ctor_set(x_156, 1, x_154); +return x_156; } else { -lean_object* x_153; -lean_dec(x_149); -x_153 = lean_box(0); -x_128 = x_153; -x_129 = x_150; -goto block_148; +lean_object* x_157; +lean_dec(x_153); +x_157 = lean_box(0); +x_132 = x_157; +x_133 = x_154; +goto block_152; } } -block_189: +block_193: { -lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; -x_156 = lean_ctor_get(x_155, 0); -lean_inc(x_156); -x_157 = lean_ctor_get(x_156, 0); -lean_inc(x_157); -lean_dec(x_156); -x_158 = l_Lean_Elab_Term_getCurrMacroScope(x_127, x_155); -x_159 = lean_ctor_get(x_158, 0); -lean_inc(x_159); -x_160 = lean_ctor_get(x_158, 1); +lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; +x_160 = lean_ctor_get(x_159, 0); lean_inc(x_160); -lean_dec(x_158); -x_161 = l_Lean_Elab_Term_getEnv___rarg(x_160); -x_162 = lean_ctor_get(x_161, 1); -lean_inc(x_162); -x_163 = lean_ctor_get(x_161, 0); +x_161 = lean_ctor_get(x_160, 0); +lean_inc(x_161); +lean_dec(x_160); +x_162 = l_Lean_Elab_Term_getCurrMacroScope(x_131, x_159); +x_163 = lean_ctor_get(x_162, 0); lean_inc(x_163); -lean_dec(x_161); -x_164 = lean_ctor_get(x_162, 0); +x_164 = lean_ctor_get(x_162, 1); lean_inc(x_164); -x_165 = lean_ctor_get(x_162, 1); -lean_inc(x_165); -x_166 = lean_ctor_get(x_162, 2); +lean_dec(x_162); +x_165 = l_Lean_Elab_Term_getEnv___rarg(x_164); +x_166 = lean_ctor_get(x_165, 1); lean_inc(x_166); -x_167 = lean_ctor_get(x_162, 3); +x_167 = lean_ctor_get(x_165, 0); lean_inc(x_167); -x_168 = lean_ctor_get(x_162, 4); -lean_inc(x_168); -x_169 = lean_ctor_get(x_162, 5); -lean_inc(x_169); -x_170 = lean_environment_main_module(x_163); -x_171 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_171, 0, x_170); -lean_ctor_set(x_171, 1, x_159); -lean_ctor_set(x_171, 2, x_125); -lean_ctor_set(x_171, 3, x_26); -lean_inc(x_4); -x_172 = l_Lean_Elab_getMacros(x_157, x_4, x_171, x_169); -lean_dec(x_157); -if (lean_obj_tag(x_172) == 0) -{ -lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; -if (lean_is_exclusive(x_162)) { - lean_ctor_release(x_162, 0); - lean_ctor_release(x_162, 1); - lean_ctor_release(x_162, 2); - lean_ctor_release(x_162, 3); - lean_ctor_release(x_162, 4); - lean_ctor_release(x_162, 5); - x_173 = x_162; -} else { - lean_dec_ref(x_162); - x_173 = lean_box(0); -} -x_174 = lean_ctor_get(x_172, 0); -lean_inc(x_174); -x_175 = lean_ctor_get(x_172, 1); -lean_inc(x_175); -lean_dec(x_172); -if (lean_is_scalar(x_173)) { - x_176 = lean_alloc_ctor(0, 6, 0); -} else { - x_176 = x_173; -} -lean_ctor_set(x_176, 0, x_164); -lean_ctor_set(x_176, 1, x_165); -lean_ctor_set(x_176, 2, x_166); -lean_ctor_set(x_176, 3, x_167); -lean_ctor_set(x_176, 4, x_168); -lean_ctor_set(x_176, 5, x_175); -x_177 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_177, 0, x_174); -x_128 = x_177; -x_129 = x_176; -goto block_148; -} -else -{ -lean_object* x_178; -lean_dec(x_168); -lean_dec(x_167); -lean_dec(x_166); lean_dec(x_165); -lean_dec(x_164); -x_178 = lean_ctor_get(x_172, 0); +x_168 = lean_ctor_get(x_166, 0); +lean_inc(x_168); +x_169 = lean_ctor_get(x_166, 1); +lean_inc(x_169); +x_170 = lean_ctor_get(x_166, 2); +lean_inc(x_170); +x_171 = lean_ctor_get(x_166, 3); +lean_inc(x_171); +x_172 = lean_ctor_get(x_166, 4); +lean_inc(x_172); +x_173 = lean_ctor_get(x_166, 5); +lean_inc(x_173); +x_174 = lean_environment_main_module(x_167); +x_175 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_175, 0, x_174); +lean_ctor_set(x_175, 1, x_163); +lean_ctor_set(x_175, 2, x_129); +lean_ctor_set(x_175, 3, x_27); +lean_inc(x_4); +x_176 = l_Lean_Elab_getMacros(x_161, x_4, x_175, x_173); +lean_dec(x_161); +if (lean_obj_tag(x_176) == 0) +{ +lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; +if (lean_is_exclusive(x_166)) { + lean_ctor_release(x_166, 0); + lean_ctor_release(x_166, 1); + lean_ctor_release(x_166, 2); + lean_ctor_release(x_166, 3); + lean_ctor_release(x_166, 4); + lean_ctor_release(x_166, 5); + x_177 = x_166; +} else { + lean_dec_ref(x_166); + x_177 = lean_box(0); +} +x_178 = lean_ctor_get(x_176, 0); lean_inc(x_178); -lean_dec(x_172); -if (lean_obj_tag(x_178) == 0) -{ -lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; -x_179 = lean_ctor_get(x_178, 0); +x_179 = lean_ctor_get(x_176, 1); lean_inc(x_179); -x_180 = lean_ctor_get(x_178, 1); -lean_inc(x_180); -lean_dec(x_178); -x_181 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_181, 0, x_180); -x_182 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_182, 0, x_181); -lean_inc(x_127); -x_183 = l_Lean_Elab_Term_throwError___rarg(x_179, x_182, x_127, x_162); -lean_dec(x_179); -x_184 = lean_ctor_get(x_183, 0); +lean_dec(x_176); +if (lean_is_scalar(x_177)) { + x_180 = lean_alloc_ctor(0, 6, 0); +} else { + x_180 = x_177; +} +lean_ctor_set(x_180, 0, x_168); +lean_ctor_set(x_180, 1, x_169); +lean_ctor_set(x_180, 2, x_170); +lean_ctor_set(x_180, 3, x_171); +lean_ctor_set(x_180, 4, x_172); +lean_ctor_set(x_180, 5, x_179); +x_181 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_181, 0, x_178); +x_132 = x_181; +x_133 = x_180; +goto block_152; +} +else +{ +lean_object* x_182; +lean_dec(x_172); +lean_dec(x_171); +lean_dec(x_170); +lean_dec(x_169); +lean_dec(x_168); +x_182 = lean_ctor_get(x_176, 0); +lean_inc(x_182); +lean_dec(x_176); +if (lean_obj_tag(x_182) == 0) +{ +lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; +x_183 = lean_ctor_get(x_182, 0); +lean_inc(x_183); +x_184 = lean_ctor_get(x_182, 1); lean_inc(x_184); -x_185 = lean_ctor_get(x_183, 1); -lean_inc(x_185); +lean_dec(x_182); +x_185 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_185, 0, x_184); +x_186 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_186, 0, x_185); +lean_inc(x_131); +x_187 = l_Lean_Elab_Term_throwErrorAt___rarg(x_183, x_186, x_131, x_166); lean_dec(x_183); -x_149 = x_184; -x_150 = x_185; -goto block_154; -} -else -{ -lean_object* x_186; lean_object* x_187; lean_object* x_188; -x_186 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_162); -x_187 = lean_ctor_get(x_186, 0); -lean_inc(x_187); -x_188 = lean_ctor_get(x_186, 1); +x_188 = lean_ctor_get(x_187, 0); lean_inc(x_188); -lean_dec(x_186); -x_149 = x_187; -x_150 = x_188; -goto block_154; +x_189 = lean_ctor_get(x_187, 1); +lean_inc(x_189); +lean_dec(x_187); +x_153 = x_188; +x_154 = x_189; +goto block_158; +} +else +{ +lean_object* x_190; lean_object* x_191; lean_object* x_192; +x_190 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_166); +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_153 = x_191; +x_154 = x_192; +goto block_158; } } } @@ -21170,501 +21356,520 @@ goto block_154; } else { -lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; uint8_t x_223; uint8_t x_224; uint8_t x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; uint8_t x_229; lean_object* x_230; -x_214 = lean_ctor_get(x_5, 0); -x_215 = lean_ctor_get(x_5, 1); -x_216 = lean_ctor_get(x_5, 2); -x_217 = lean_ctor_get(x_5, 3); -x_218 = lean_ctor_get(x_5, 4); -x_219 = lean_ctor_get(x_5, 5); -x_220 = lean_ctor_get(x_5, 6); -x_221 = lean_ctor_get(x_5, 7); -x_222 = lean_ctor_get(x_5, 8); -x_223 = lean_ctor_get_uint8(x_5, sizeof(void*)*10); -x_224 = lean_ctor_get_uint8(x_5, sizeof(void*)*10 + 1); -x_225 = lean_ctor_get_uint8(x_5, sizeof(void*)*10 + 2); -lean_inc(x_222); -lean_inc(x_221); -lean_inc(x_220); -lean_inc(x_219); -lean_inc(x_218); -lean_inc(x_217); -lean_inc(x_216); -lean_inc(x_215); -lean_inc(x_214); -lean_dec(x_5); -lean_inc(x_8); -lean_inc(x_222); -lean_inc(x_221); -lean_inc(x_220); -lean_inc(x_219); -lean_inc(x_218); -lean_inc(x_217); -lean_inc(x_216); -lean_inc(x_215); -lean_inc(x_214); -x_226 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_226, 0, x_214); -lean_ctor_set(x_226, 1, x_215); -lean_ctor_set(x_226, 2, x_216); -lean_ctor_set(x_226, 3, x_217); -lean_ctor_set(x_226, 4, x_218); -lean_ctor_set(x_226, 5, x_219); -lean_ctor_set(x_226, 6, x_220); -lean_ctor_set(x_226, 7, x_221); -lean_ctor_set(x_226, 8, x_222); -lean_ctor_set(x_226, 9, x_8); -lean_ctor_set_uint8(x_226, sizeof(void*)*10, x_223); -lean_ctor_set_uint8(x_226, sizeof(void*)*10 + 1, x_224); -lean_ctor_set_uint8(x_226, sizeof(void*)*10 + 2, x_225); -x_227 = lean_ctor_get(x_214, 3); -lean_inc(x_227); -x_228 = lean_ctor_get(x_214, 4); +lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; uint8_t x_230; uint8_t x_231; uint8_t x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; uint8_t x_237; lean_object* x_238; +x_221 = lean_ctor_get(x_5, 0); +x_222 = lean_ctor_get(x_5, 1); +x_223 = lean_ctor_get(x_5, 2); +x_224 = lean_ctor_get(x_5, 3); +x_225 = lean_ctor_get(x_5, 4); +x_226 = lean_ctor_get(x_5, 5); +x_227 = lean_ctor_get(x_5, 6); +x_228 = lean_ctor_get(x_5, 7); +x_229 = lean_ctor_get(x_5, 8); +x_230 = lean_ctor_get_uint8(x_5, sizeof(void*)*11); +x_231 = lean_ctor_get_uint8(x_5, sizeof(void*)*11 + 1); +x_232 = lean_ctor_get_uint8(x_5, sizeof(void*)*11 + 2); +x_233 = lean_ctor_get(x_5, 10); +lean_inc(x_233); +lean_inc(x_229); lean_inc(x_228); -x_229 = lean_nat_dec_eq(x_227, x_228); -if (x_229 == 0) +lean_inc(x_227); +lean_inc(x_226); +lean_inc(x_225); +lean_inc(x_224); +lean_inc(x_223); +lean_inc(x_222); +lean_inc(x_221); +lean_dec(x_5); +lean_inc(x_233); +lean_inc(x_8); +lean_inc(x_229); +lean_inc(x_228); +lean_inc(x_227); +lean_inc(x_226); +lean_inc(x_225); +lean_inc(x_224); +lean_inc(x_223); +lean_inc(x_222); +lean_inc(x_221); +x_234 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_234, 0, x_221); +lean_ctor_set(x_234, 1, x_222); +lean_ctor_set(x_234, 2, x_223); +lean_ctor_set(x_234, 3, x_224); +lean_ctor_set(x_234, 4, x_225); +lean_ctor_set(x_234, 5, x_226); +lean_ctor_set(x_234, 6, x_227); +lean_ctor_set(x_234, 7, x_228); +lean_ctor_set(x_234, 8, x_229); +lean_ctor_set(x_234, 9, x_8); +lean_ctor_set(x_234, 10, x_233); +lean_ctor_set_uint8(x_234, sizeof(void*)*11, x_230); +lean_ctor_set_uint8(x_234, sizeof(void*)*11 + 1, x_231); +lean_ctor_set_uint8(x_234, sizeof(void*)*11 + 2, x_232); +x_235 = lean_ctor_get(x_221, 3); +lean_inc(x_235); +x_236 = lean_ctor_get(x_221, 4); +lean_inc(x_236); +x_237 = lean_nat_dec_eq(x_235, x_236); +if (x_237 == 0) { -lean_dec(x_226); -x_230 = x_6; -goto block_317; +lean_dec(x_234); +x_238 = x_6; +goto block_328; } else { -lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; +lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; +lean_dec(x_236); +lean_dec(x_235); +lean_dec(x_233); +lean_dec(x_229); lean_dec(x_228); lean_dec(x_227); +lean_dec(x_226); +lean_dec(x_225); +lean_dec(x_224); +lean_dec(x_223); lean_dec(x_222); lean_dec(x_221); -lean_dec(x_220); -lean_dec(x_219); -lean_dec(x_218); -lean_dec(x_217); -lean_dec(x_216); -lean_dec(x_215); -lean_dec(x_214); lean_dec(x_8); -lean_dec(x_1); -x_318 = l_Lean_Meta_withIncRecDepth___rarg___closed__2; -x_319 = l_Lean_Elab_Term_throwError___rarg(x_4, x_318, x_226, x_6); lean_dec(x_4); -x_320 = lean_ctor_get(x_319, 0); -lean_inc(x_320); -x_321 = lean_ctor_get(x_319, 1); -lean_inc(x_321); -if (lean_is_exclusive(x_319)) { - lean_ctor_release(x_319, 0); - lean_ctor_release(x_319, 1); - x_322 = x_319; +lean_dec(x_1); +x_329 = l_Lean_Meta_withIncRecDepth___rarg___closed__2; +x_330 = l_Lean_Elab_Term_throwError___rarg(x_329, x_234, x_6); +x_331 = lean_ctor_get(x_330, 0); +lean_inc(x_331); +x_332 = lean_ctor_get(x_330, 1); +lean_inc(x_332); +if (lean_is_exclusive(x_330)) { + lean_ctor_release(x_330, 0); + lean_ctor_release(x_330, 1); + x_333 = x_330; } else { - lean_dec_ref(x_319); - x_322 = lean_box(0); + lean_dec_ref(x_330); + x_333 = lean_box(0); } -if (lean_is_scalar(x_322)) { - x_323 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_333)) { + x_334 = lean_alloc_ctor(1, 2, 0); } else { - x_323 = x_322; + x_334 = x_333; } -lean_ctor_set(x_323, 0, x_320); -lean_ctor_set(x_323, 1, x_321); -return x_323; +lean_ctor_set(x_334, 0, x_331); +lean_ctor_set(x_334, 1, x_332); +return x_334; } -block_317: +block_328: { -lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_259; lean_object* x_260; lean_object* x_265; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; uint8_t x_304; -x_231 = lean_ctor_get(x_214, 0); -lean_inc(x_231); -x_232 = lean_ctor_get(x_214, 1); -lean_inc(x_232); -x_233 = lean_ctor_get(x_214, 2); -lean_inc(x_233); -if (lean_is_exclusive(x_214)) { - lean_ctor_release(x_214, 0); - lean_ctor_release(x_214, 1); - lean_ctor_release(x_214, 2); - lean_ctor_release(x_214, 3); - lean_ctor_release(x_214, 4); - x_234 = x_214; +lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_267; lean_object* x_268; lean_object* x_273; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; uint8_t x_315; +x_239 = lean_ctor_get(x_221, 0); +lean_inc(x_239); +x_240 = lean_ctor_get(x_221, 1); +lean_inc(x_240); +x_241 = lean_ctor_get(x_221, 2); +lean_inc(x_241); +if (lean_is_exclusive(x_221)) { + lean_ctor_release(x_221, 0); + lean_ctor_release(x_221, 1); + lean_ctor_release(x_221, 2); + lean_ctor_release(x_221, 3); + lean_ctor_release(x_221, 4); + x_242 = x_221; } else { - lean_dec_ref(x_214); - x_234 = lean_box(0); + lean_dec_ref(x_221); + x_242 = lean_box(0); } -x_235 = lean_nat_add(x_227, x_9); -lean_dec(x_227); -lean_inc(x_228); -lean_inc(x_235); -if (lean_is_scalar(x_234)) { - x_236 = lean_alloc_ctor(0, 5, 0); -} else { - x_236 = x_234; -} -lean_ctor_set(x_236, 0, x_231); -lean_ctor_set(x_236, 1, x_232); -lean_ctor_set(x_236, 2, x_233); -lean_ctor_set(x_236, 3, x_235); -lean_ctor_set(x_236, 4, x_228); -lean_inc(x_8); -lean_inc(x_222); -lean_inc(x_221); -lean_inc(x_220); -lean_inc(x_219); -lean_inc(x_218); -lean_inc(x_217); -lean_inc(x_216); -lean_inc(x_215); +x_243 = lean_nat_add(x_235, x_9); +lean_dec(x_235); lean_inc(x_236); -x_237 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_237, 0, x_236); -lean_ctor_set(x_237, 1, x_215); -lean_ctor_set(x_237, 2, x_216); -lean_ctor_set(x_237, 3, x_217); -lean_ctor_set(x_237, 4, x_218); -lean_ctor_set(x_237, 5, x_219); -lean_ctor_set(x_237, 6, x_220); -lean_ctor_set(x_237, 7, x_221); -lean_ctor_set(x_237, 8, x_222); -lean_ctor_set(x_237, 9, x_8); -lean_ctor_set_uint8(x_237, sizeof(void*)*10, x_223); -lean_ctor_set_uint8(x_237, sizeof(void*)*10 + 1, x_224); -lean_ctor_set_uint8(x_237, sizeof(void*)*10 + 2, x_225); -x_300 = l_Lean_Elab_Term_getOptions(x_237, x_230); -x_301 = lean_ctor_get(x_300, 0); -lean_inc(x_301); -x_302 = lean_ctor_get(x_300, 1); -lean_inc(x_302); -lean_dec(x_300); -x_303 = l___private_Lean_Elab_Util_4__regTraceClasses___closed__2; -x_304 = l_Lean_checkTraceOption(x_301, x_303); -lean_dec(x_301); -if (x_304 == 0) +lean_inc(x_243); +if (lean_is_scalar(x_242)) { + x_244 = lean_alloc_ctor(0, 5, 0); +} else { + x_244 = x_242; +} +lean_ctor_set(x_244, 0, x_239); +lean_ctor_set(x_244, 1, x_240); +lean_ctor_set(x_244, 2, x_241); +lean_ctor_set(x_244, 3, x_243); +lean_ctor_set(x_244, 4, x_236); +lean_inc(x_233); +lean_inc(x_8); +lean_inc(x_229); +lean_inc(x_228); +lean_inc(x_227); +lean_inc(x_226); +lean_inc(x_225); +lean_inc(x_224); +lean_inc(x_223); +lean_inc(x_222); +lean_inc(x_244); +x_245 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_245, 0, x_244); +lean_ctor_set(x_245, 1, x_222); +lean_ctor_set(x_245, 2, x_223); +lean_ctor_set(x_245, 3, x_224); +lean_ctor_set(x_245, 4, x_225); +lean_ctor_set(x_245, 5, x_226); +lean_ctor_set(x_245, 6, x_227); +lean_ctor_set(x_245, 7, x_228); +lean_ctor_set(x_245, 8, x_229); +lean_ctor_set(x_245, 9, x_8); +lean_ctor_set(x_245, 10, x_233); +lean_ctor_set_uint8(x_245, sizeof(void*)*11, x_230); +lean_ctor_set_uint8(x_245, sizeof(void*)*11 + 1, x_231); +lean_ctor_set_uint8(x_245, sizeof(void*)*11 + 2, x_232); +x_308 = l_Lean_Elab_Term_getOptions(x_245, x_238); +x_309 = lean_ctor_get(x_308, 0); +lean_inc(x_309); +x_310 = lean_ctor_get(x_308, 1); +lean_inc(x_310); +lean_dec(x_308); +x_311 = l_Lean_Elab_Term_getCurrRef(x_245, x_310); +x_312 = lean_ctor_get(x_311, 0); +lean_inc(x_312); +x_313 = lean_ctor_get(x_311, 1); +lean_inc(x_313); +lean_dec(x_311); +x_314 = l___private_Lean_Elab_Util_4__regTraceClasses___closed__2; +x_315 = l_Lean_checkTraceOption(x_309, x_314); +lean_dec(x_309); +if (x_315 == 0) { -x_265 = x_302; -goto block_299; +lean_dec(x_312); +x_273 = x_313; +goto block_307; } else { -lean_object* x_305; +lean_object* x_316; lean_inc(x_4); -x_305 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_305, 0, x_4); +x_316 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_316, 0, x_4); if (lean_obj_tag(x_1) == 0) { -lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; -x_306 = l_Lean_Elab_Term_elabTermAux___main___closed__1; -x_307 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_307, 0, x_306); -lean_ctor_set(x_307, 1, x_305); -lean_inc(x_237); -x_308 = l_Lean_Elab_Term_logTrace(x_303, x_4, x_307, x_237, x_302); -x_309 = lean_ctor_get(x_308, 1); -lean_inc(x_309); -lean_dec(x_308); -x_265 = x_309; -goto block_299; +lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; +x_317 = l_Lean_Elab_Term_elabTermAux___main___closed__1; +x_318 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_318, 0, x_317); +lean_ctor_set(x_318, 1, x_316); +lean_inc(x_245); +x_319 = l_Lean_Elab_Term_logTrace(x_314, x_312, x_318, x_245, x_313); +lean_dec(x_312); +x_320 = lean_ctor_get(x_319, 1); +lean_inc(x_320); +lean_dec(x_319); +x_273 = x_320; +goto block_307; } else { -lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; -x_310 = lean_ctor_get(x_1, 0); -lean_inc(x_310); -x_311 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_311, 0, x_310); -x_312 = l_Lean_Meta_Exception_toTraceMessageData___closed__4; -x_313 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_313, 0, x_311); -lean_ctor_set(x_313, 1, x_312); -x_314 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_314, 0, x_313); -lean_ctor_set(x_314, 1, x_305); -lean_inc(x_237); -x_315 = l_Lean_Elab_Term_logTrace(x_303, x_4, x_314, x_237, x_302); -x_316 = lean_ctor_get(x_315, 1); -lean_inc(x_316); -lean_dec(x_315); -x_265 = x_316; -goto block_299; +lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; +x_321 = lean_ctor_get(x_1, 0); +lean_inc(x_321); +x_322 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_322, 0, x_321); +x_323 = l_Lean_Meta_Exception_toTraceMessageData___closed__4; +x_324 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_324, 0, x_322); +lean_ctor_set(x_324, 1, x_323); +x_325 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_325, 0, x_324); +lean_ctor_set(x_325, 1, x_316); +lean_inc(x_245); +x_326 = l_Lean_Elab_Term_logTrace(x_314, x_312, x_325, x_245, x_313); +lean_dec(x_312); +x_327 = lean_ctor_get(x_326, 1); +lean_inc(x_327); +lean_dec(x_326); +x_273 = x_327; +goto block_307; } } -block_258: +block_266: { -if (lean_obj_tag(x_238) == 0) +if (lean_obj_tag(x_246) == 0) { -lean_dec(x_236); +lean_dec(x_244); +lean_dec(x_233); +lean_dec(x_229); +lean_dec(x_228); +lean_dec(x_227); +lean_dec(x_226); +lean_dec(x_225); +lean_dec(x_224); +lean_dec(x_223); lean_dec(x_222); -lean_dec(x_221); -lean_dec(x_220); -lean_dec(x_219); -lean_dec(x_218); -lean_dec(x_217); -lean_dec(x_216); -lean_dec(x_215); lean_dec(x_8); if (x_3 == 0) { -lean_object* x_240; -x_240 = l_Lean_Elab_Term_elabUsingElabFns(x_4, x_1, x_2, x_237, x_239); -return x_240; -} -else -{ -lean_object* x_241; -lean_inc(x_237); -lean_inc(x_1); -lean_inc(x_4); -x_241 = l_Lean_Elab_Term_useImplicitLambda_x3f(x_4, x_1, x_237, x_239); -if (lean_obj_tag(x_241) == 0) -{ -lean_object* x_242; -x_242 = lean_ctor_get(x_241, 0); -lean_inc(x_242); -if (lean_obj_tag(x_242) == 0) -{ -lean_object* x_243; lean_object* x_244; -x_243 = lean_ctor_get(x_241, 1); -lean_inc(x_243); -lean_dec(x_241); -x_244 = l_Lean_Elab_Term_elabUsingElabFns(x_4, x_1, x_2, x_237, x_243); -return x_244; -} -else -{ -lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; -lean_dec(x_1); -x_245 = lean_ctor_get(x_241, 1); -lean_inc(x_245); -lean_dec(x_241); -x_246 = lean_ctor_get(x_242, 0); -lean_inc(x_246); -lean_dec(x_242); -x_247 = l_Array_empty___closed__1; -x_248 = l_Lean_Elab_Term_elabImplicitLambda___main(x_4, x_2, x_246, x_247, x_237, x_245); +lean_object* x_248; +x_248 = l_Lean_Elab_Term_elabUsingElabFns(x_4, x_1, x_2, x_245, x_247); return x_248; } -} else { -lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; -lean_dec(x_237); -lean_dec(x_4); -lean_dec(x_1); -x_249 = lean_ctor_get(x_241, 0); -lean_inc(x_249); -x_250 = lean_ctor_get(x_241, 1); +lean_object* x_249; +lean_inc(x_245); +lean_inc(x_1); +lean_inc(x_4); +x_249 = l_Lean_Elab_Term_useImplicitLambda_x3f(x_4, x_1, x_245, x_247); +if (lean_obj_tag(x_249) == 0) +{ +lean_object* x_250; +x_250 = lean_ctor_get(x_249, 0); lean_inc(x_250); -if (lean_is_exclusive(x_241)) { - lean_ctor_release(x_241, 0); - lean_ctor_release(x_241, 1); - x_251 = x_241; -} else { - lean_dec_ref(x_241); - x_251 = lean_box(0); -} -if (lean_is_scalar(x_251)) { - x_252 = lean_alloc_ctor(1, 2, 0); -} else { - x_252 = x_251; -} -lean_ctor_set(x_252, 0, x_249); -lean_ctor_set(x_252, 1, x_250); +if (lean_obj_tag(x_250) == 0) +{ +lean_object* x_251; lean_object* x_252; +x_251 = lean_ctor_get(x_249, 1); +lean_inc(x_251); +lean_dec(x_249); +x_252 = l_Lean_Elab_Term_elabUsingElabFns(x_4, x_1, x_2, x_245, x_251); return x_252; } -} -} else { lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; -lean_dec(x_237); -x_253 = lean_ctor_get(x_238, 0); +lean_dec(x_1); +x_253 = lean_ctor_get(x_249, 1); lean_inc(x_253); -lean_dec(x_238); -lean_inc(x_253); -x_254 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_254, 0, x_4); -lean_ctor_set(x_254, 1, x_253); -x_255 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_255, 0, x_254); -lean_ctor_set(x_255, 1, x_222); -x_256 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_256, 0, x_236); -lean_ctor_set(x_256, 1, x_215); -lean_ctor_set(x_256, 2, x_216); -lean_ctor_set(x_256, 3, x_217); -lean_ctor_set(x_256, 4, x_218); -lean_ctor_set(x_256, 5, x_219); -lean_ctor_set(x_256, 6, x_220); -lean_ctor_set(x_256, 7, x_221); -lean_ctor_set(x_256, 8, x_255); -lean_ctor_set(x_256, 9, x_8); -lean_ctor_set_uint8(x_256, sizeof(void*)*10, x_223); -lean_ctor_set_uint8(x_256, sizeof(void*)*10 + 1, x_224); -lean_ctor_set_uint8(x_256, sizeof(void*)*10 + 2, x_225); -x_4 = x_253; -x_5 = x_256; -x_6 = x_239; +lean_dec(x_249); +x_254 = lean_ctor_get(x_250, 0); +lean_inc(x_254); +lean_dec(x_250); +x_255 = l_Array_empty___closed__1; +x_256 = l_Lean_Elab_Term_elabImplicitLambda___main(x_4, x_2, x_254, x_255, x_245, x_253); +return x_256; +} +} +else +{ +lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; +lean_dec(x_245); +lean_dec(x_4); +lean_dec(x_1); +x_257 = lean_ctor_get(x_249, 0); +lean_inc(x_257); +x_258 = lean_ctor_get(x_249, 1); +lean_inc(x_258); +if (lean_is_exclusive(x_249)) { + lean_ctor_release(x_249, 0); + lean_ctor_release(x_249, 1); + x_259 = x_249; +} else { + lean_dec_ref(x_249); + x_259 = lean_box(0); +} +if (lean_is_scalar(x_259)) { + x_260 = lean_alloc_ctor(1, 2, 0); +} else { + x_260 = x_259; +} +lean_ctor_set(x_260, 0, x_257); +lean_ctor_set(x_260, 1, x_258); +return x_260; +} +} +} +else +{ +lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; +lean_dec(x_245); +x_261 = lean_ctor_get(x_246, 0); +lean_inc(x_261); +lean_dec(x_246); +lean_inc(x_261); +x_262 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_262, 0, x_4); +lean_ctor_set(x_262, 1, x_261); +x_263 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_263, 0, x_262); +lean_ctor_set(x_263, 1, x_229); +x_264 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_264, 0, x_244); +lean_ctor_set(x_264, 1, x_222); +lean_ctor_set(x_264, 2, x_223); +lean_ctor_set(x_264, 3, x_224); +lean_ctor_set(x_264, 4, x_225); +lean_ctor_set(x_264, 5, x_226); +lean_ctor_set(x_264, 6, x_227); +lean_ctor_set(x_264, 7, x_228); +lean_ctor_set(x_264, 8, x_263); +lean_ctor_set(x_264, 9, x_8); +lean_ctor_set(x_264, 10, x_233); +lean_ctor_set_uint8(x_264, sizeof(void*)*11, x_230); +lean_ctor_set_uint8(x_264, sizeof(void*)*11 + 1, x_231); +lean_ctor_set_uint8(x_264, sizeof(void*)*11 + 2, x_232); +x_4 = x_261; +x_5 = x_264; +x_6 = x_247; goto _start; } } -block_264: +block_272: { -lean_object* x_261; -x_261 = lean_ctor_get(x_259, 0); -lean_inc(x_261); -if (lean_obj_tag(x_261) == 0) +lean_object* x_269; +x_269 = lean_ctor_get(x_267, 0); +lean_inc(x_269); +if (lean_obj_tag(x_269) == 0) { -lean_object* x_262; -lean_dec(x_261); -lean_dec(x_237); -lean_dec(x_236); +lean_object* x_270; +lean_dec(x_269); +lean_dec(x_245); +lean_dec(x_244); +lean_dec(x_233); +lean_dec(x_229); +lean_dec(x_228); +lean_dec(x_227); +lean_dec(x_226); +lean_dec(x_225); +lean_dec(x_224); +lean_dec(x_223); lean_dec(x_222); -lean_dec(x_221); -lean_dec(x_220); -lean_dec(x_219); -lean_dec(x_218); -lean_dec(x_217); -lean_dec(x_216); -lean_dec(x_215); lean_dec(x_8); lean_dec(x_4); lean_dec(x_1); -x_262 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_262, 0, x_259); -lean_ctor_set(x_262, 1, x_260); -return x_262; +x_270 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_270, 0, x_267); +lean_ctor_set(x_270, 1, x_268); +return x_270; } else { -lean_object* x_263; -lean_dec(x_259); -x_263 = lean_box(0); -x_238 = x_263; -x_239 = x_260; -goto block_258; -} -} -block_299: -{ -lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; -x_266 = lean_ctor_get(x_265, 0); -lean_inc(x_266); -x_267 = lean_ctor_get(x_266, 0); -lean_inc(x_267); -lean_dec(x_266); -x_268 = l_Lean_Elab_Term_getCurrMacroScope(x_237, x_265); -x_269 = lean_ctor_get(x_268, 0); -lean_inc(x_269); -x_270 = lean_ctor_get(x_268, 1); -lean_inc(x_270); -lean_dec(x_268); -x_271 = l_Lean_Elab_Term_getEnv___rarg(x_270); -x_272 = lean_ctor_get(x_271, 1); -lean_inc(x_272); -x_273 = lean_ctor_get(x_271, 0); -lean_inc(x_273); -lean_dec(x_271); -x_274 = lean_ctor_get(x_272, 0); -lean_inc(x_274); -x_275 = lean_ctor_get(x_272, 1); -lean_inc(x_275); -x_276 = lean_ctor_get(x_272, 2); -lean_inc(x_276); -x_277 = lean_ctor_get(x_272, 3); -lean_inc(x_277); -x_278 = lean_ctor_get(x_272, 4); -lean_inc(x_278); -x_279 = lean_ctor_get(x_272, 5); -lean_inc(x_279); -x_280 = lean_environment_main_module(x_273); -x_281 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_281, 0, x_280); -lean_ctor_set(x_281, 1, x_269); -lean_ctor_set(x_281, 2, x_235); -lean_ctor_set(x_281, 3, x_228); -lean_inc(x_4); -x_282 = l_Lean_Elab_getMacros(x_267, x_4, x_281, x_279); +lean_object* x_271; lean_dec(x_267); -if (lean_obj_tag(x_282) == 0) +x_271 = lean_box(0); +x_246 = x_271; +x_247 = x_268; +goto block_266; +} +} +block_307: { -lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; -if (lean_is_exclusive(x_272)) { - lean_ctor_release(x_272, 0); - lean_ctor_release(x_272, 1); - lean_ctor_release(x_272, 2); - lean_ctor_release(x_272, 3); - lean_ctor_release(x_272, 4); - lean_ctor_release(x_272, 5); - x_283 = x_272; -} else { - lean_dec_ref(x_272); - x_283 = lean_box(0); -} -x_284 = lean_ctor_get(x_282, 0); -lean_inc(x_284); -x_285 = lean_ctor_get(x_282, 1); -lean_inc(x_285); -lean_dec(x_282); -if (lean_is_scalar(x_283)) { - x_286 = lean_alloc_ctor(0, 6, 0); -} else { - x_286 = x_283; -} -lean_ctor_set(x_286, 0, x_274); -lean_ctor_set(x_286, 1, x_275); -lean_ctor_set(x_286, 2, x_276); -lean_ctor_set(x_286, 3, x_277); -lean_ctor_set(x_286, 4, x_278); -lean_ctor_set(x_286, 5, x_285); -x_287 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_287, 0, x_284); -x_238 = x_287; -x_239 = x_286; -goto block_258; -} -else -{ -lean_object* x_288; -lean_dec(x_278); -lean_dec(x_277); -lean_dec(x_276); -lean_dec(x_275); +lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; +x_274 = lean_ctor_get(x_273, 0); +lean_inc(x_274); +x_275 = lean_ctor_get(x_274, 0); +lean_inc(x_275); lean_dec(x_274); -x_288 = lean_ctor_get(x_282, 0); -lean_inc(x_288); -lean_dec(x_282); -if (lean_obj_tag(x_288) == 0) +x_276 = l_Lean_Elab_Term_getCurrMacroScope(x_245, x_273); +x_277 = lean_ctor_get(x_276, 0); +lean_inc(x_277); +x_278 = lean_ctor_get(x_276, 1); +lean_inc(x_278); +lean_dec(x_276); +x_279 = l_Lean_Elab_Term_getEnv___rarg(x_278); +x_280 = lean_ctor_get(x_279, 1); +lean_inc(x_280); +x_281 = lean_ctor_get(x_279, 0); +lean_inc(x_281); +lean_dec(x_279); +x_282 = lean_ctor_get(x_280, 0); +lean_inc(x_282); +x_283 = lean_ctor_get(x_280, 1); +lean_inc(x_283); +x_284 = lean_ctor_get(x_280, 2); +lean_inc(x_284); +x_285 = lean_ctor_get(x_280, 3); +lean_inc(x_285); +x_286 = lean_ctor_get(x_280, 4); +lean_inc(x_286); +x_287 = lean_ctor_get(x_280, 5); +lean_inc(x_287); +x_288 = lean_environment_main_module(x_281); +x_289 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_289, 0, x_288); +lean_ctor_set(x_289, 1, x_277); +lean_ctor_set(x_289, 2, x_243); +lean_ctor_set(x_289, 3, x_236); +lean_inc(x_4); +x_290 = l_Lean_Elab_getMacros(x_275, x_4, x_289, x_287); +lean_dec(x_275); +if (lean_obj_tag(x_290) == 0) { -lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; -x_289 = lean_ctor_get(x_288, 0); -lean_inc(x_289); -x_290 = lean_ctor_get(x_288, 1); -lean_inc(x_290); -lean_dec(x_288); -x_291 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_291, 0, x_290); -x_292 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_292, 0, x_291); -lean_inc(x_237); -x_293 = l_Lean_Elab_Term_throwError___rarg(x_289, x_292, x_237, x_272); -lean_dec(x_289); -x_294 = lean_ctor_get(x_293, 0); -lean_inc(x_294); -x_295 = lean_ctor_get(x_293, 1); -lean_inc(x_295); -lean_dec(x_293); -x_259 = x_294; -x_260 = x_295; -goto block_264; +lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; +if (lean_is_exclusive(x_280)) { + lean_ctor_release(x_280, 0); + lean_ctor_release(x_280, 1); + lean_ctor_release(x_280, 2); + lean_ctor_release(x_280, 3); + lean_ctor_release(x_280, 4); + lean_ctor_release(x_280, 5); + x_291 = x_280; +} else { + lean_dec_ref(x_280); + x_291 = lean_box(0); +} +x_292 = lean_ctor_get(x_290, 0); +lean_inc(x_292); +x_293 = lean_ctor_get(x_290, 1); +lean_inc(x_293); +lean_dec(x_290); +if (lean_is_scalar(x_291)) { + x_294 = lean_alloc_ctor(0, 6, 0); +} else { + x_294 = x_291; +} +lean_ctor_set(x_294, 0, x_282); +lean_ctor_set(x_294, 1, x_283); +lean_ctor_set(x_294, 2, x_284); +lean_ctor_set(x_294, 3, x_285); +lean_ctor_set(x_294, 4, x_286); +lean_ctor_set(x_294, 5, x_293); +x_295 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_295, 0, x_292); +x_246 = x_295; +x_247 = x_294; +goto block_266; } else { -lean_object* x_296; lean_object* x_297; lean_object* x_298; -x_296 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_272); +lean_object* x_296; +lean_dec(x_286); +lean_dec(x_285); +lean_dec(x_284); +lean_dec(x_283); +lean_dec(x_282); +x_296 = lean_ctor_get(x_290, 0); +lean_inc(x_296); +lean_dec(x_290); +if (lean_obj_tag(x_296) == 0) +{ +lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; x_297 = lean_ctor_get(x_296, 0); lean_inc(x_297); x_298 = lean_ctor_get(x_296, 1); lean_inc(x_298); lean_dec(x_296); -x_259 = x_297; -x_260 = x_298; -goto block_264; +x_299 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_299, 0, x_298); +x_300 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_300, 0, x_299); +lean_inc(x_245); +x_301 = l_Lean_Elab_Term_throwErrorAt___rarg(x_297, x_300, x_245, x_280); +lean_dec(x_297); +x_302 = lean_ctor_get(x_301, 0); +lean_inc(x_302); +x_303 = lean_ctor_get(x_301, 1); +lean_inc(x_303); +lean_dec(x_301); +x_267 = x_302; +x_268 = x_303; +goto block_272; +} +else +{ +lean_object* x_304; lean_object* x_305; lean_object* x_306; +x_304 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_280); +x_305 = lean_ctor_get(x_304, 0); +lean_inc(x_305); +x_306 = lean_ctor_get(x_304, 1); +lean_inc(x_306); +lean_dec(x_304); +x_267 = x_305; +x_268 = x_306; +goto block_272; } } } @@ -21673,50 +21878,52 @@ goto block_264; } else { -lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; uint8_t x_342; uint8_t x_343; uint8_t x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; uint8_t x_349; lean_object* x_350; -x_324 = lean_ctor_get(x_6, 0); -x_325 = lean_ctor_get(x_6, 1); -x_326 = lean_ctor_get(x_6, 2); -x_327 = lean_ctor_get(x_6, 3); -x_328 = lean_ctor_get(x_6, 4); -x_329 = lean_ctor_get(x_6, 5); -lean_inc(x_329); -lean_inc(x_328); -lean_inc(x_327); -lean_inc(x_326); -lean_inc(x_325); -lean_inc(x_324); -lean_dec(x_6); -x_330 = lean_unsigned_to_nat(1u); -x_331 = lean_nat_add(x_329, x_330); -x_332 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_332, 0, x_324); -lean_ctor_set(x_332, 1, x_325); -lean_ctor_set(x_332, 2, x_326); -lean_ctor_set(x_332, 3, x_327); -lean_ctor_set(x_332, 4, x_328); -lean_ctor_set(x_332, 5, x_331); -x_333 = lean_ctor_get(x_5, 0); -lean_inc(x_333); -x_334 = lean_ctor_get(x_5, 1); -lean_inc(x_334); -x_335 = lean_ctor_get(x_5, 2); -lean_inc(x_335); -x_336 = lean_ctor_get(x_5, 3); -lean_inc(x_336); -x_337 = lean_ctor_get(x_5, 4); -lean_inc(x_337); -x_338 = lean_ctor_get(x_5, 5); -lean_inc(x_338); -x_339 = lean_ctor_get(x_5, 6); -lean_inc(x_339); -x_340 = lean_ctor_get(x_5, 7); +lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; uint8_t x_353; uint8_t x_354; uint8_t x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; uint8_t x_361; lean_object* x_362; +x_335 = lean_ctor_get(x_6, 0); +x_336 = lean_ctor_get(x_6, 1); +x_337 = lean_ctor_get(x_6, 2); +x_338 = lean_ctor_get(x_6, 3); +x_339 = lean_ctor_get(x_6, 4); +x_340 = lean_ctor_get(x_6, 5); lean_inc(x_340); -x_341 = lean_ctor_get(x_5, 8); -lean_inc(x_341); -x_342 = lean_ctor_get_uint8(x_5, sizeof(void*)*10); -x_343 = lean_ctor_get_uint8(x_5, sizeof(void*)*10 + 1); -x_344 = lean_ctor_get_uint8(x_5, sizeof(void*)*10 + 2); +lean_inc(x_339); +lean_inc(x_338); +lean_inc(x_337); +lean_inc(x_336); +lean_inc(x_335); +lean_dec(x_6); +x_341 = lean_unsigned_to_nat(1u); +x_342 = lean_nat_add(x_340, x_341); +x_343 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_343, 0, x_335); +lean_ctor_set(x_343, 1, x_336); +lean_ctor_set(x_343, 2, x_337); +lean_ctor_set(x_343, 3, x_338); +lean_ctor_set(x_343, 4, x_339); +lean_ctor_set(x_343, 5, x_342); +x_344 = lean_ctor_get(x_5, 0); +lean_inc(x_344); +x_345 = lean_ctor_get(x_5, 1); +lean_inc(x_345); +x_346 = lean_ctor_get(x_5, 2); +lean_inc(x_346); +x_347 = lean_ctor_get(x_5, 3); +lean_inc(x_347); +x_348 = lean_ctor_get(x_5, 4); +lean_inc(x_348); +x_349 = lean_ctor_get(x_5, 5); +lean_inc(x_349); +x_350 = lean_ctor_get(x_5, 6); +lean_inc(x_350); +x_351 = lean_ctor_get(x_5, 7); +lean_inc(x_351); +x_352 = lean_ctor_get(x_5, 8); +lean_inc(x_352); +x_353 = lean_ctor_get_uint8(x_5, sizeof(void*)*11); +x_354 = lean_ctor_get_uint8(x_5, sizeof(void*)*11 + 1); +x_355 = lean_ctor_get_uint8(x_5, sizeof(void*)*11 + 2); +x_356 = lean_ctor_get(x_5, 10); +lean_inc(x_356); if (lean_is_exclusive(x_5)) { lean_ctor_release(x_5, 0); lean_ctor_release(x_5, 1); @@ -21728,487 +21935,505 @@ if (lean_is_exclusive(x_5)) { lean_ctor_release(x_5, 7); lean_ctor_release(x_5, 8); lean_ctor_release(x_5, 9); - x_345 = x_5; + lean_ctor_release(x_5, 10); + x_357 = x_5; } else { lean_dec_ref(x_5); - x_345 = lean_box(0); + x_357 = lean_box(0); } -lean_inc(x_329); -lean_inc(x_341); +lean_inc(x_356); lean_inc(x_340); -lean_inc(x_339); -lean_inc(x_338); -lean_inc(x_337); -lean_inc(x_336); -lean_inc(x_335); -lean_inc(x_334); -lean_inc(x_333); -if (lean_is_scalar(x_345)) { - x_346 = lean_alloc_ctor(0, 10, 3); -} else { - x_346 = x_345; -} -lean_ctor_set(x_346, 0, x_333); -lean_ctor_set(x_346, 1, x_334); -lean_ctor_set(x_346, 2, x_335); -lean_ctor_set(x_346, 3, x_336); -lean_ctor_set(x_346, 4, x_337); -lean_ctor_set(x_346, 5, x_338); -lean_ctor_set(x_346, 6, x_339); -lean_ctor_set(x_346, 7, x_340); -lean_ctor_set(x_346, 8, x_341); -lean_ctor_set(x_346, 9, x_329); -lean_ctor_set_uint8(x_346, sizeof(void*)*10, x_342); -lean_ctor_set_uint8(x_346, sizeof(void*)*10 + 1, x_343); -lean_ctor_set_uint8(x_346, sizeof(void*)*10 + 2, x_344); -x_347 = lean_ctor_get(x_333, 3); -lean_inc(x_347); -x_348 = lean_ctor_get(x_333, 4); +lean_inc(x_352); +lean_inc(x_351); +lean_inc(x_350); +lean_inc(x_349); lean_inc(x_348); -x_349 = lean_nat_dec_eq(x_347, x_348); -if (x_349 == 0) +lean_inc(x_347); +lean_inc(x_346); +lean_inc(x_345); +lean_inc(x_344); +if (lean_is_scalar(x_357)) { + x_358 = lean_alloc_ctor(0, 11, 3); +} else { + x_358 = x_357; +} +lean_ctor_set(x_358, 0, x_344); +lean_ctor_set(x_358, 1, x_345); +lean_ctor_set(x_358, 2, x_346); +lean_ctor_set(x_358, 3, x_347); +lean_ctor_set(x_358, 4, x_348); +lean_ctor_set(x_358, 5, x_349); +lean_ctor_set(x_358, 6, x_350); +lean_ctor_set(x_358, 7, x_351); +lean_ctor_set(x_358, 8, x_352); +lean_ctor_set(x_358, 9, x_340); +lean_ctor_set(x_358, 10, x_356); +lean_ctor_set_uint8(x_358, sizeof(void*)*11, x_353); +lean_ctor_set_uint8(x_358, sizeof(void*)*11 + 1, x_354); +lean_ctor_set_uint8(x_358, sizeof(void*)*11 + 2, x_355); +x_359 = lean_ctor_get(x_344, 3); +lean_inc(x_359); +x_360 = lean_ctor_get(x_344, 4); +lean_inc(x_360); +x_361 = lean_nat_dec_eq(x_359, x_360); +if (x_361 == 0) { -lean_dec(x_346); -x_350 = x_332; -goto block_437; +lean_dec(x_358); +x_362 = x_343; +goto block_452; } else { -lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; +lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; +lean_dec(x_360); +lean_dec(x_359); +lean_dec(x_356); +lean_dec(x_352); +lean_dec(x_351); +lean_dec(x_350); +lean_dec(x_349); lean_dec(x_348); lean_dec(x_347); -lean_dec(x_341); +lean_dec(x_346); +lean_dec(x_345); +lean_dec(x_344); lean_dec(x_340); -lean_dec(x_339); -lean_dec(x_338); -lean_dec(x_337); -lean_dec(x_336); -lean_dec(x_335); -lean_dec(x_334); -lean_dec(x_333); -lean_dec(x_329); -lean_dec(x_1); -x_438 = l_Lean_Meta_withIncRecDepth___rarg___closed__2; -x_439 = l_Lean_Elab_Term_throwError___rarg(x_4, x_438, x_346, x_332); lean_dec(x_4); -x_440 = lean_ctor_get(x_439, 0); -lean_inc(x_440); -x_441 = lean_ctor_get(x_439, 1); -lean_inc(x_441); -if (lean_is_exclusive(x_439)) { - lean_ctor_release(x_439, 0); - lean_ctor_release(x_439, 1); - x_442 = x_439; +lean_dec(x_1); +x_453 = l_Lean_Meta_withIncRecDepth___rarg___closed__2; +x_454 = l_Lean_Elab_Term_throwError___rarg(x_453, x_358, x_343); +x_455 = lean_ctor_get(x_454, 0); +lean_inc(x_455); +x_456 = lean_ctor_get(x_454, 1); +lean_inc(x_456); +if (lean_is_exclusive(x_454)) { + lean_ctor_release(x_454, 0); + lean_ctor_release(x_454, 1); + x_457 = x_454; } else { - lean_dec_ref(x_439); - x_442 = lean_box(0); + lean_dec_ref(x_454); + x_457 = lean_box(0); } -if (lean_is_scalar(x_442)) { - x_443 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_457)) { + x_458 = lean_alloc_ctor(1, 2, 0); } else { - x_443 = x_442; + x_458 = x_457; } -lean_ctor_set(x_443, 0, x_440); -lean_ctor_set(x_443, 1, x_441); -return x_443; +lean_ctor_set(x_458, 0, x_455); +lean_ctor_set(x_458, 1, x_456); +return x_458; } -block_437: +block_452: { -lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_379; lean_object* x_380; lean_object* x_385; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; uint8_t x_424; -x_351 = lean_ctor_get(x_333, 0); -lean_inc(x_351); -x_352 = lean_ctor_get(x_333, 1); -lean_inc(x_352); -x_353 = lean_ctor_get(x_333, 2); -lean_inc(x_353); -if (lean_is_exclusive(x_333)) { - lean_ctor_release(x_333, 0); - lean_ctor_release(x_333, 1); - lean_ctor_release(x_333, 2); - lean_ctor_release(x_333, 3); - lean_ctor_release(x_333, 4); - x_354 = x_333; +lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_391; lean_object* x_392; lean_object* x_397; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; uint8_t x_439; +x_363 = lean_ctor_get(x_344, 0); +lean_inc(x_363); +x_364 = lean_ctor_get(x_344, 1); +lean_inc(x_364); +x_365 = lean_ctor_get(x_344, 2); +lean_inc(x_365); +if (lean_is_exclusive(x_344)) { + lean_ctor_release(x_344, 0); + lean_ctor_release(x_344, 1); + lean_ctor_release(x_344, 2); + lean_ctor_release(x_344, 3); + lean_ctor_release(x_344, 4); + x_366 = x_344; } else { - lean_dec_ref(x_333); - x_354 = lean_box(0); + lean_dec_ref(x_344); + x_366 = lean_box(0); } -x_355 = lean_nat_add(x_347, x_330); -lean_dec(x_347); -lean_inc(x_348); -lean_inc(x_355); -if (lean_is_scalar(x_354)) { - x_356 = lean_alloc_ctor(0, 5, 0); +x_367 = lean_nat_add(x_359, x_341); +lean_dec(x_359); +lean_inc(x_360); +lean_inc(x_367); +if (lean_is_scalar(x_366)) { + x_368 = lean_alloc_ctor(0, 5, 0); } else { - x_356 = x_354; + x_368 = x_366; } -lean_ctor_set(x_356, 0, x_351); -lean_ctor_set(x_356, 1, x_352); -lean_ctor_set(x_356, 2, x_353); -lean_ctor_set(x_356, 3, x_355); -lean_ctor_set(x_356, 4, x_348); -lean_inc(x_329); -lean_inc(x_341); -lean_inc(x_340); -lean_inc(x_339); -lean_inc(x_338); -lean_inc(x_337); -lean_inc(x_336); -lean_inc(x_335); -lean_inc(x_334); +lean_ctor_set(x_368, 0, x_363); +lean_ctor_set(x_368, 1, x_364); +lean_ctor_set(x_368, 2, x_365); +lean_ctor_set(x_368, 3, x_367); +lean_ctor_set(x_368, 4, x_360); lean_inc(x_356); -x_357 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_357, 0, x_356); -lean_ctor_set(x_357, 1, x_334); -lean_ctor_set(x_357, 2, x_335); -lean_ctor_set(x_357, 3, x_336); -lean_ctor_set(x_357, 4, x_337); -lean_ctor_set(x_357, 5, x_338); -lean_ctor_set(x_357, 6, x_339); -lean_ctor_set(x_357, 7, x_340); -lean_ctor_set(x_357, 8, x_341); -lean_ctor_set(x_357, 9, x_329); -lean_ctor_set_uint8(x_357, sizeof(void*)*10, x_342); -lean_ctor_set_uint8(x_357, sizeof(void*)*10 + 1, x_343); -lean_ctor_set_uint8(x_357, sizeof(void*)*10 + 2, x_344); -x_420 = l_Lean_Elab_Term_getOptions(x_357, x_350); +lean_inc(x_340); +lean_inc(x_352); +lean_inc(x_351); +lean_inc(x_350); +lean_inc(x_349); +lean_inc(x_348); +lean_inc(x_347); +lean_inc(x_346); +lean_inc(x_345); +lean_inc(x_368); +x_369 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_369, 0, x_368); +lean_ctor_set(x_369, 1, x_345); +lean_ctor_set(x_369, 2, x_346); +lean_ctor_set(x_369, 3, x_347); +lean_ctor_set(x_369, 4, x_348); +lean_ctor_set(x_369, 5, x_349); +lean_ctor_set(x_369, 6, x_350); +lean_ctor_set(x_369, 7, x_351); +lean_ctor_set(x_369, 8, x_352); +lean_ctor_set(x_369, 9, x_340); +lean_ctor_set(x_369, 10, x_356); +lean_ctor_set_uint8(x_369, sizeof(void*)*11, x_353); +lean_ctor_set_uint8(x_369, sizeof(void*)*11 + 1, x_354); +lean_ctor_set_uint8(x_369, sizeof(void*)*11 + 2, x_355); +x_432 = l_Lean_Elab_Term_getOptions(x_369, x_362); +x_433 = lean_ctor_get(x_432, 0); +lean_inc(x_433); +x_434 = lean_ctor_get(x_432, 1); +lean_inc(x_434); +lean_dec(x_432); +x_435 = l_Lean_Elab_Term_getCurrRef(x_369, x_434); +x_436 = lean_ctor_get(x_435, 0); +lean_inc(x_436); +x_437 = lean_ctor_get(x_435, 1); +lean_inc(x_437); +lean_dec(x_435); +x_438 = l___private_Lean_Elab_Util_4__regTraceClasses___closed__2; +x_439 = l_Lean_checkTraceOption(x_433, x_438); +lean_dec(x_433); +if (x_439 == 0) +{ +lean_dec(x_436); +x_397 = x_437; +goto block_431; +} +else +{ +lean_object* x_440; +lean_inc(x_4); +x_440 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_440, 0, x_4); +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; +x_441 = l_Lean_Elab_Term_elabTermAux___main___closed__1; +x_442 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_442, 0, x_441); +lean_ctor_set(x_442, 1, x_440); +lean_inc(x_369); +x_443 = l_Lean_Elab_Term_logTrace(x_438, x_436, x_442, x_369, x_437); +lean_dec(x_436); +x_444 = lean_ctor_get(x_443, 1); +lean_inc(x_444); +lean_dec(x_443); +x_397 = x_444; +goto block_431; +} +else +{ +lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; +x_445 = lean_ctor_get(x_1, 0); +lean_inc(x_445); +x_446 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_446, 0, x_445); +x_447 = l_Lean_Meta_Exception_toTraceMessageData___closed__4; +x_448 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_448, 0, x_446); +lean_ctor_set(x_448, 1, x_447); +x_449 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_449, 0, x_448); +lean_ctor_set(x_449, 1, x_440); +lean_inc(x_369); +x_450 = l_Lean_Elab_Term_logTrace(x_438, x_436, x_449, x_369, x_437); +lean_dec(x_436); +x_451 = lean_ctor_get(x_450, 1); +lean_inc(x_451); +lean_dec(x_450); +x_397 = x_451; +goto block_431; +} +} +block_390: +{ +if (lean_obj_tag(x_370) == 0) +{ +lean_dec(x_368); +lean_dec(x_356); +lean_dec(x_352); +lean_dec(x_351); +lean_dec(x_350); +lean_dec(x_349); +lean_dec(x_348); +lean_dec(x_347); +lean_dec(x_346); +lean_dec(x_345); +lean_dec(x_340); +if (x_3 == 0) +{ +lean_object* x_372; +x_372 = l_Lean_Elab_Term_elabUsingElabFns(x_4, x_1, x_2, x_369, x_371); +return x_372; +} +else +{ +lean_object* x_373; +lean_inc(x_369); +lean_inc(x_1); +lean_inc(x_4); +x_373 = l_Lean_Elab_Term_useImplicitLambda_x3f(x_4, x_1, x_369, x_371); +if (lean_obj_tag(x_373) == 0) +{ +lean_object* x_374; +x_374 = lean_ctor_get(x_373, 0); +lean_inc(x_374); +if (lean_obj_tag(x_374) == 0) +{ +lean_object* x_375; lean_object* x_376; +x_375 = lean_ctor_get(x_373, 1); +lean_inc(x_375); +lean_dec(x_373); +x_376 = l_Lean_Elab_Term_elabUsingElabFns(x_4, x_1, x_2, x_369, x_375); +return x_376; +} +else +{ +lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; +lean_dec(x_1); +x_377 = lean_ctor_get(x_373, 1); +lean_inc(x_377); +lean_dec(x_373); +x_378 = lean_ctor_get(x_374, 0); +lean_inc(x_378); +lean_dec(x_374); +x_379 = l_Array_empty___closed__1; +x_380 = l_Lean_Elab_Term_elabImplicitLambda___main(x_4, x_2, x_378, x_379, x_369, x_377); +return x_380; +} +} +else +{ +lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; +lean_dec(x_369); +lean_dec(x_4); +lean_dec(x_1); +x_381 = lean_ctor_get(x_373, 0); +lean_inc(x_381); +x_382 = lean_ctor_get(x_373, 1); +lean_inc(x_382); +if (lean_is_exclusive(x_373)) { + lean_ctor_release(x_373, 0); + lean_ctor_release(x_373, 1); + x_383 = x_373; +} else { + lean_dec_ref(x_373); + x_383 = lean_box(0); +} +if (lean_is_scalar(x_383)) { + x_384 = lean_alloc_ctor(1, 2, 0); +} else { + x_384 = x_383; +} +lean_ctor_set(x_384, 0, x_381); +lean_ctor_set(x_384, 1, x_382); +return x_384; +} +} +} +else +{ +lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; +lean_dec(x_369); +x_385 = lean_ctor_get(x_370, 0); +lean_inc(x_385); +lean_dec(x_370); +lean_inc(x_385); +x_386 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_386, 0, x_4); +lean_ctor_set(x_386, 1, x_385); +x_387 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_387, 0, x_386); +lean_ctor_set(x_387, 1, x_352); +x_388 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_388, 0, x_368); +lean_ctor_set(x_388, 1, x_345); +lean_ctor_set(x_388, 2, x_346); +lean_ctor_set(x_388, 3, x_347); +lean_ctor_set(x_388, 4, x_348); +lean_ctor_set(x_388, 5, x_349); +lean_ctor_set(x_388, 6, x_350); +lean_ctor_set(x_388, 7, x_351); +lean_ctor_set(x_388, 8, x_387); +lean_ctor_set(x_388, 9, x_340); +lean_ctor_set(x_388, 10, x_356); +lean_ctor_set_uint8(x_388, sizeof(void*)*11, x_353); +lean_ctor_set_uint8(x_388, sizeof(void*)*11 + 1, x_354); +lean_ctor_set_uint8(x_388, sizeof(void*)*11 + 2, x_355); +x_4 = x_385; +x_5 = x_388; +x_6 = x_371; +goto _start; +} +} +block_396: +{ +lean_object* x_393; +x_393 = lean_ctor_get(x_391, 0); +lean_inc(x_393); +if (lean_obj_tag(x_393) == 0) +{ +lean_object* x_394; +lean_dec(x_393); +lean_dec(x_369); +lean_dec(x_368); +lean_dec(x_356); +lean_dec(x_352); +lean_dec(x_351); +lean_dec(x_350); +lean_dec(x_349); +lean_dec(x_348); +lean_dec(x_347); +lean_dec(x_346); +lean_dec(x_345); +lean_dec(x_340); +lean_dec(x_4); +lean_dec(x_1); +x_394 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_394, 0, x_391); +lean_ctor_set(x_394, 1, x_392); +return x_394; +} +else +{ +lean_object* x_395; +lean_dec(x_391); +x_395 = lean_box(0); +x_370 = x_395; +x_371 = x_392; +goto block_390; +} +} +block_431: +{ +lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; +x_398 = lean_ctor_get(x_397, 0); +lean_inc(x_398); +x_399 = lean_ctor_get(x_398, 0); +lean_inc(x_399); +lean_dec(x_398); +x_400 = l_Lean_Elab_Term_getCurrMacroScope(x_369, x_397); +x_401 = lean_ctor_get(x_400, 0); +lean_inc(x_401); +x_402 = lean_ctor_get(x_400, 1); +lean_inc(x_402); +lean_dec(x_400); +x_403 = l_Lean_Elab_Term_getEnv___rarg(x_402); +x_404 = lean_ctor_get(x_403, 1); +lean_inc(x_404); +x_405 = lean_ctor_get(x_403, 0); +lean_inc(x_405); +lean_dec(x_403); +x_406 = lean_ctor_get(x_404, 0); +lean_inc(x_406); +x_407 = lean_ctor_get(x_404, 1); +lean_inc(x_407); +x_408 = lean_ctor_get(x_404, 2); +lean_inc(x_408); +x_409 = lean_ctor_get(x_404, 3); +lean_inc(x_409); +x_410 = lean_ctor_get(x_404, 4); +lean_inc(x_410); +x_411 = lean_ctor_get(x_404, 5); +lean_inc(x_411); +x_412 = lean_environment_main_module(x_405); +x_413 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_413, 0, x_412); +lean_ctor_set(x_413, 1, x_401); +lean_ctor_set(x_413, 2, x_367); +lean_ctor_set(x_413, 3, x_360); +lean_inc(x_4); +x_414 = l_Lean_Elab_getMacros(x_399, x_4, x_413, x_411); +lean_dec(x_399); +if (lean_obj_tag(x_414) == 0) +{ +lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; +if (lean_is_exclusive(x_404)) { + lean_ctor_release(x_404, 0); + lean_ctor_release(x_404, 1); + lean_ctor_release(x_404, 2); + lean_ctor_release(x_404, 3); + lean_ctor_release(x_404, 4); + lean_ctor_release(x_404, 5); + x_415 = x_404; +} else { + lean_dec_ref(x_404); + x_415 = lean_box(0); +} +x_416 = lean_ctor_get(x_414, 0); +lean_inc(x_416); +x_417 = lean_ctor_get(x_414, 1); +lean_inc(x_417); +lean_dec(x_414); +if (lean_is_scalar(x_415)) { + x_418 = lean_alloc_ctor(0, 6, 0); +} else { + x_418 = x_415; +} +lean_ctor_set(x_418, 0, x_406); +lean_ctor_set(x_418, 1, x_407); +lean_ctor_set(x_418, 2, x_408); +lean_ctor_set(x_418, 3, x_409); +lean_ctor_set(x_418, 4, x_410); +lean_ctor_set(x_418, 5, x_417); +x_419 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_419, 0, x_416); +x_370 = x_419; +x_371 = x_418; +goto block_390; +} +else +{ +lean_object* x_420; +lean_dec(x_410); +lean_dec(x_409); +lean_dec(x_408); +lean_dec(x_407); +lean_dec(x_406); +x_420 = lean_ctor_get(x_414, 0); +lean_inc(x_420); +lean_dec(x_414); +if (lean_obj_tag(x_420) == 0) +{ +lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; x_421 = lean_ctor_get(x_420, 0); lean_inc(x_421); x_422 = lean_ctor_get(x_420, 1); lean_inc(x_422); lean_dec(x_420); -x_423 = l___private_Lean_Elab_Util_4__regTraceClasses___closed__2; -x_424 = l_Lean_checkTraceOption(x_421, x_423); -lean_dec(x_421); -if (x_424 == 0) -{ -x_385 = x_422; -goto block_419; -} -else -{ -lean_object* x_425; -lean_inc(x_4); -x_425 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_425, 0, x_4); -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; -x_426 = l_Lean_Elab_Term_elabTermAux___main___closed__1; -x_427 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_427, 0, x_426); -lean_ctor_set(x_427, 1, x_425); -lean_inc(x_357); -x_428 = l_Lean_Elab_Term_logTrace(x_423, x_4, x_427, x_357, x_422); -x_429 = lean_ctor_get(x_428, 1); -lean_inc(x_429); -lean_dec(x_428); -x_385 = x_429; -goto block_419; -} -else -{ -lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; -x_430 = lean_ctor_get(x_1, 0); -lean_inc(x_430); -x_431 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_431, 0, x_430); -x_432 = l_Lean_Meta_Exception_toTraceMessageData___closed__4; -x_433 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_433, 0, x_431); -lean_ctor_set(x_433, 1, x_432); -x_434 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_434, 0, x_433); -lean_ctor_set(x_434, 1, x_425); -lean_inc(x_357); -x_435 = l_Lean_Elab_Term_logTrace(x_423, x_4, x_434, x_357, x_422); -x_436 = lean_ctor_get(x_435, 1); -lean_inc(x_436); -lean_dec(x_435); -x_385 = x_436; -goto block_419; -} -} -block_378: -{ -if (lean_obj_tag(x_358) == 0) -{ -lean_dec(x_356); -lean_dec(x_341); -lean_dec(x_340); -lean_dec(x_339); -lean_dec(x_338); -lean_dec(x_337); -lean_dec(x_336); -lean_dec(x_335); -lean_dec(x_334); -lean_dec(x_329); -if (x_3 == 0) -{ -lean_object* x_360; -x_360 = l_Lean_Elab_Term_elabUsingElabFns(x_4, x_1, x_2, x_357, x_359); -return x_360; -} -else -{ -lean_object* x_361; -lean_inc(x_357); -lean_inc(x_1); -lean_inc(x_4); -x_361 = l_Lean_Elab_Term_useImplicitLambda_x3f(x_4, x_1, x_357, x_359); -if (lean_obj_tag(x_361) == 0) -{ -lean_object* x_362; -x_362 = lean_ctor_get(x_361, 0); -lean_inc(x_362); -if (lean_obj_tag(x_362) == 0) -{ -lean_object* x_363; lean_object* x_364; -x_363 = lean_ctor_get(x_361, 1); -lean_inc(x_363); -lean_dec(x_361); -x_364 = l_Lean_Elab_Term_elabUsingElabFns(x_4, x_1, x_2, x_357, x_363); -return x_364; -} -else -{ -lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; -lean_dec(x_1); -x_365 = lean_ctor_get(x_361, 1); -lean_inc(x_365); -lean_dec(x_361); -x_366 = lean_ctor_get(x_362, 0); -lean_inc(x_366); -lean_dec(x_362); -x_367 = l_Array_empty___closed__1; -x_368 = l_Lean_Elab_Term_elabImplicitLambda___main(x_4, x_2, x_366, x_367, x_357, x_365); -return x_368; -} -} -else -{ -lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; -lean_dec(x_357); -lean_dec(x_4); -lean_dec(x_1); -x_369 = lean_ctor_get(x_361, 0); +x_423 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_423, 0, x_422); +x_424 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_424, 0, x_423); lean_inc(x_369); -x_370 = lean_ctor_get(x_361, 1); -lean_inc(x_370); -if (lean_is_exclusive(x_361)) { - lean_ctor_release(x_361, 0); - lean_ctor_release(x_361, 1); - x_371 = x_361; -} else { - lean_dec_ref(x_361); - x_371 = lean_box(0); -} -if (lean_is_scalar(x_371)) { - x_372 = lean_alloc_ctor(1, 2, 0); -} else { - x_372 = x_371; -} -lean_ctor_set(x_372, 0, x_369); -lean_ctor_set(x_372, 1, x_370); -return x_372; -} -} +x_425 = l_Lean_Elab_Term_throwErrorAt___rarg(x_421, x_424, x_369, x_404); +lean_dec(x_421); +x_426 = lean_ctor_get(x_425, 0); +lean_inc(x_426); +x_427 = lean_ctor_get(x_425, 1); +lean_inc(x_427); +lean_dec(x_425); +x_391 = x_426; +x_392 = x_427; +goto block_396; } else { -lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; -lean_dec(x_357); -x_373 = lean_ctor_get(x_358, 0); -lean_inc(x_373); -lean_dec(x_358); -lean_inc(x_373); -x_374 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_374, 0, x_4); -lean_ctor_set(x_374, 1, x_373); -x_375 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_375, 0, x_374); -lean_ctor_set(x_375, 1, x_341); -x_376 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_376, 0, x_356); -lean_ctor_set(x_376, 1, x_334); -lean_ctor_set(x_376, 2, x_335); -lean_ctor_set(x_376, 3, x_336); -lean_ctor_set(x_376, 4, x_337); -lean_ctor_set(x_376, 5, x_338); -lean_ctor_set(x_376, 6, x_339); -lean_ctor_set(x_376, 7, x_340); -lean_ctor_set(x_376, 8, x_375); -lean_ctor_set(x_376, 9, x_329); -lean_ctor_set_uint8(x_376, sizeof(void*)*10, x_342); -lean_ctor_set_uint8(x_376, sizeof(void*)*10 + 1, x_343); -lean_ctor_set_uint8(x_376, sizeof(void*)*10 + 2, x_344); -x_4 = x_373; -x_5 = x_376; -x_6 = x_359; -goto _start; -} -} -block_384: -{ -lean_object* x_381; -x_381 = lean_ctor_get(x_379, 0); -lean_inc(x_381); -if (lean_obj_tag(x_381) == 0) -{ -lean_object* x_382; -lean_dec(x_381); -lean_dec(x_357); -lean_dec(x_356); -lean_dec(x_341); -lean_dec(x_340); -lean_dec(x_339); -lean_dec(x_338); -lean_dec(x_337); -lean_dec(x_336); -lean_dec(x_335); -lean_dec(x_334); -lean_dec(x_329); -lean_dec(x_4); -lean_dec(x_1); -x_382 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_382, 0, x_379); -lean_ctor_set(x_382, 1, x_380); -return x_382; -} -else -{ -lean_object* x_383; -lean_dec(x_379); -x_383 = lean_box(0); -x_358 = x_383; -x_359 = x_380; -goto block_378; -} -} -block_419: -{ -lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; -x_386 = lean_ctor_get(x_385, 0); -lean_inc(x_386); -x_387 = lean_ctor_get(x_386, 0); -lean_inc(x_387); -lean_dec(x_386); -x_388 = l_Lean_Elab_Term_getCurrMacroScope(x_357, x_385); -x_389 = lean_ctor_get(x_388, 0); -lean_inc(x_389); -x_390 = lean_ctor_get(x_388, 1); -lean_inc(x_390); -lean_dec(x_388); -x_391 = l_Lean_Elab_Term_getEnv___rarg(x_390); -x_392 = lean_ctor_get(x_391, 1); -lean_inc(x_392); -x_393 = lean_ctor_get(x_391, 0); -lean_inc(x_393); -lean_dec(x_391); -x_394 = lean_ctor_get(x_392, 0); -lean_inc(x_394); -x_395 = lean_ctor_get(x_392, 1); -lean_inc(x_395); -x_396 = lean_ctor_get(x_392, 2); -lean_inc(x_396); -x_397 = lean_ctor_get(x_392, 3); -lean_inc(x_397); -x_398 = lean_ctor_get(x_392, 4); -lean_inc(x_398); -x_399 = lean_ctor_get(x_392, 5); -lean_inc(x_399); -x_400 = lean_environment_main_module(x_393); -x_401 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_401, 0, x_400); -lean_ctor_set(x_401, 1, x_389); -lean_ctor_set(x_401, 2, x_355); -lean_ctor_set(x_401, 3, x_348); -lean_inc(x_4); -x_402 = l_Lean_Elab_getMacros(x_387, x_4, x_401, x_399); -lean_dec(x_387); -if (lean_obj_tag(x_402) == 0) -{ -lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; -if (lean_is_exclusive(x_392)) { - lean_ctor_release(x_392, 0); - lean_ctor_release(x_392, 1); - lean_ctor_release(x_392, 2); - lean_ctor_release(x_392, 3); - lean_ctor_release(x_392, 4); - lean_ctor_release(x_392, 5); - x_403 = x_392; -} else { - lean_dec_ref(x_392); - x_403 = lean_box(0); -} -x_404 = lean_ctor_get(x_402, 0); -lean_inc(x_404); -x_405 = lean_ctor_get(x_402, 1); -lean_inc(x_405); -lean_dec(x_402); -if (lean_is_scalar(x_403)) { - x_406 = lean_alloc_ctor(0, 6, 0); -} else { - x_406 = x_403; -} -lean_ctor_set(x_406, 0, x_394); -lean_ctor_set(x_406, 1, x_395); -lean_ctor_set(x_406, 2, x_396); -lean_ctor_set(x_406, 3, x_397); -lean_ctor_set(x_406, 4, x_398); -lean_ctor_set(x_406, 5, x_405); -x_407 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_407, 0, x_404); -x_358 = x_407; -x_359 = x_406; -goto block_378; -} -else -{ -lean_object* x_408; -lean_dec(x_398); -lean_dec(x_397); -lean_dec(x_396); -lean_dec(x_395); -lean_dec(x_394); -x_408 = lean_ctor_get(x_402, 0); -lean_inc(x_408); -lean_dec(x_402); -if (lean_obj_tag(x_408) == 0) -{ -lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; -x_409 = lean_ctor_get(x_408, 0); -lean_inc(x_409); -x_410 = lean_ctor_get(x_408, 1); -lean_inc(x_410); -lean_dec(x_408); -x_411 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_411, 0, x_410); -x_412 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_412, 0, x_411); -lean_inc(x_357); -x_413 = l_Lean_Elab_Term_throwError___rarg(x_409, x_412, x_357, x_392); -lean_dec(x_409); -x_414 = lean_ctor_get(x_413, 0); -lean_inc(x_414); -x_415 = lean_ctor_get(x_413, 1); -lean_inc(x_415); -lean_dec(x_413); -x_379 = x_414; -x_380 = x_415; -goto block_384; -} -else -{ -lean_object* x_416; lean_object* x_417; lean_object* x_418; -x_416 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_392); -x_417 = lean_ctor_get(x_416, 0); -lean_inc(x_417); -x_418 = lean_ctor_get(x_416, 1); -lean_inc(x_418); -lean_dec(x_416); -x_379 = x_417; -x_380 = x_418; -goto block_384; +lean_object* x_428; lean_object* x_429; lean_object* x_430; +x_428 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_404); +x_429 = lean_ctor_get(x_428, 0); +lean_inc(x_429); +x_430 = lean_ctor_get(x_428, 1); +lean_inc(x_430); +lean_dec(x_428); +x_391 = x_429; +x_392 = x_430; +goto block_396; } } } @@ -22251,10 +22476,66 @@ return x_9; lean_object* l_Lean_Elab_Term_elabTerm(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5) { _start: { -uint8_t x_6; lean_object* x_7; -x_6 = 1; -x_7 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_3, x_6, x_1, x_4, x_5); -return x_7; +uint8_t x_6; +x_6 = !lean_is_exclusive(x_4); +if (x_6 == 0) +{ +lean_object* x_7; uint8_t x_8; lean_object* x_9; +x_7 = lean_ctor_get(x_4, 10); +lean_dec(x_7); +lean_inc(x_1); +lean_ctor_set(x_4, 10, x_1); +x_8 = 1; +x_9 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_3, x_8, x_1, x_4, x_5); +return x_9; +} +else +{ +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; uint8_t x_20; uint8_t x_21; uint8_t x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; +x_10 = lean_ctor_get(x_4, 0); +x_11 = lean_ctor_get(x_4, 1); +x_12 = lean_ctor_get(x_4, 2); +x_13 = lean_ctor_get(x_4, 3); +x_14 = lean_ctor_get(x_4, 4); +x_15 = lean_ctor_get(x_4, 5); +x_16 = lean_ctor_get(x_4, 6); +x_17 = lean_ctor_get(x_4, 7); +x_18 = lean_ctor_get(x_4, 8); +x_19 = lean_ctor_get(x_4, 9); +x_20 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_21 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_22 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +lean_inc(x_19); +lean_inc(x_18); +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_11); +lean_inc(x_10); +lean_dec(x_4); +lean_inc(x_1); +x_23 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_23, 0, x_10); +lean_ctor_set(x_23, 1, x_11); +lean_ctor_set(x_23, 2, x_12); +lean_ctor_set(x_23, 3, x_13); +lean_ctor_set(x_23, 4, x_14); +lean_ctor_set(x_23, 5, x_15); +lean_ctor_set(x_23, 6, x_16); +lean_ctor_set(x_23, 7, x_17); +lean_ctor_set(x_23, 8, x_18); +lean_ctor_set(x_23, 9, x_19); +lean_ctor_set(x_23, 10, x_1); +lean_ctor_set_uint8(x_23, sizeof(void*)*11, x_20); +lean_ctor_set_uint8(x_23, sizeof(void*)*11 + 1, x_21); +lean_ctor_set_uint8(x_23, sizeof(void*)*11 + 2, x_22); +x_24 = 1; +x_25 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_3, x_24, x_1, x_23, x_5); +return x_25; +} } } lean_object* l_Lean_Elab_Term_elabTerm___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { @@ -22315,12 +22596,12 @@ lean_ctor_set(x_12, 0, x_11); lean_ctor_set(x_12, 1, x_10); lean_ctor_set(x_4, 8, x_12); x_13 = 1; -x_14 = l_Lean_Elab_Term_elabTermAux___main(x_3, x_13, x_13, x_7, x_4, x_8); +x_14 = l_Lean_Elab_Term_elabTerm(x_7, x_3, x_13, x_4, x_8); 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_object* x_24; uint8_t x_25; uint8_t x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; lean_object* x_32; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; uint8_t x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33; x_15 = lean_ctor_get(x_4, 0); x_16 = lean_ctor_get(x_4, 1); x_17 = lean_ctor_get(x_4, 2); @@ -22331,9 +22612,11 @@ x_21 = lean_ctor_get(x_4, 6); x_22 = lean_ctor_get(x_4, 7); x_23 = lean_ctor_get(x_4, 8); x_24 = lean_ctor_get(x_4, 9); -x_25 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); -x_26 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); -x_27 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 2); +x_25 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_26 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_27 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +x_28 = lean_ctor_get(x_4, 10); +lean_inc(x_28); lean_inc(x_24); lean_inc(x_23); lean_inc(x_22); @@ -22346,54 +22629,55 @@ lean_inc(x_16); lean_inc(x_15); lean_dec(x_4); lean_inc(x_7); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_2); -lean_ctor_set(x_28, 1, x_7); -x_29 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_29, 0, x_28); -lean_ctor_set(x_29, 1, x_23); -x_30 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_30, 0, x_15); -lean_ctor_set(x_30, 1, x_16); -lean_ctor_set(x_30, 2, x_17); -lean_ctor_set(x_30, 3, x_18); -lean_ctor_set(x_30, 4, x_19); -lean_ctor_set(x_30, 5, x_20); -lean_ctor_set(x_30, 6, x_21); -lean_ctor_set(x_30, 7, x_22); -lean_ctor_set(x_30, 8, x_29); -lean_ctor_set(x_30, 9, x_24); -lean_ctor_set_uint8(x_30, sizeof(void*)*10, x_25); -lean_ctor_set_uint8(x_30, sizeof(void*)*10 + 1, x_26); -lean_ctor_set_uint8(x_30, sizeof(void*)*10 + 2, x_27); -x_31 = 1; -x_32 = l_Lean_Elab_Term_elabTermAux___main(x_3, x_31, x_31, x_7, x_30, x_8); -return x_32; +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_2); +lean_ctor_set(x_29, 1, x_7); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_23); +x_31 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_31, 0, x_15); +lean_ctor_set(x_31, 1, x_16); +lean_ctor_set(x_31, 2, x_17); +lean_ctor_set(x_31, 3, x_18); +lean_ctor_set(x_31, 4, x_19); +lean_ctor_set(x_31, 5, x_20); +lean_ctor_set(x_31, 6, x_21); +lean_ctor_set(x_31, 7, x_22); +lean_ctor_set(x_31, 8, x_30); +lean_ctor_set(x_31, 9, x_24); +lean_ctor_set(x_31, 10, x_28); +lean_ctor_set_uint8(x_31, sizeof(void*)*11, x_25); +lean_ctor_set_uint8(x_31, sizeof(void*)*11 + 1, x_26); +lean_ctor_set_uint8(x_31, sizeof(void*)*11 + 2, x_27); +x_32 = 1; +x_33 = l_Lean_Elab_Term_elabTerm(x_7, x_3, x_32, x_31, x_8); +return x_33; } } else { -uint8_t x_33; +uint8_t x_34; lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_33 = !lean_is_exclusive(x_6); -if (x_33 == 0) +x_34 = !lean_is_exclusive(x_6); +if (x_34 == 0) { return x_6; } else { -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_6, 0); -x_35 = lean_ctor_get(x_6, 1); +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_6, 0); +x_36 = lean_ctor_get(x_6, 1); +lean_inc(x_36); lean_inc(x_35); -lean_inc(x_34); lean_dec(x_6); -x_36 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_34); -lean_ctor_set(x_36, 1, x_35); -return x_36; +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; } } } @@ -22443,7 +22727,7 @@ return x_16; } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; uint8_t x_28; uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; uint8_t x_28; uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; x_17 = lean_ctor_get(x_4, 0); x_18 = lean_ctor_get(x_4, 1); x_19 = lean_ctor_get(x_4, 2); @@ -22454,9 +22738,11 @@ x_23 = lean_ctor_get(x_4, 6); x_24 = lean_ctor_get(x_4, 7); x_25 = lean_ctor_get(x_4, 8); x_26 = lean_ctor_get(x_4, 9); -x_27 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); -x_28 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); -x_29 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 2); +x_27 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_28 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_29 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +x_30 = lean_ctor_get(x_4, 10); +lean_inc(x_30); lean_inc(x_26); lean_inc(x_25); lean_inc(x_24); @@ -22468,49 +22754,50 @@ lean_inc(x_19); lean_inc(x_18); lean_inc(x_17); lean_dec(x_4); -x_30 = lean_ctor_get(x_17, 0); -lean_inc(x_30); -x_31 = lean_ctor_get(x_17, 3); +x_31 = lean_ctor_get(x_17, 0); lean_inc(x_31); -x_32 = lean_ctor_get(x_17, 4); +x_32 = lean_ctor_get(x_17, 3); lean_inc(x_32); +x_33 = lean_ctor_get(x_17, 4); +lean_inc(x_33); if (lean_is_exclusive(x_17)) { lean_ctor_release(x_17, 0); lean_ctor_release(x_17, 1); lean_ctor_release(x_17, 2); lean_ctor_release(x_17, 3); lean_ctor_release(x_17, 4); - x_33 = x_17; + x_34 = x_17; } else { lean_dec_ref(x_17); - x_33 = lean_box(0); + x_34 = lean_box(0); } -if (lean_is_scalar(x_33)) { - x_34 = lean_alloc_ctor(0, 5, 0); +if (lean_is_scalar(x_34)) { + x_35 = lean_alloc_ctor(0, 5, 0); } else { - x_34 = x_33; + x_35 = x_34; } -lean_ctor_set(x_34, 0, x_30); -lean_ctor_set(x_34, 1, x_1); -lean_ctor_set(x_34, 2, x_2); -lean_ctor_set(x_34, 3, x_31); -lean_ctor_set(x_34, 4, x_32); -x_35 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_18); -lean_ctor_set(x_35, 2, x_19); -lean_ctor_set(x_35, 3, x_20); -lean_ctor_set(x_35, 4, x_21); -lean_ctor_set(x_35, 5, x_22); -lean_ctor_set(x_35, 6, x_23); -lean_ctor_set(x_35, 7, x_24); -lean_ctor_set(x_35, 8, x_25); -lean_ctor_set(x_35, 9, x_26); -lean_ctor_set_uint8(x_35, sizeof(void*)*10, x_27); -lean_ctor_set_uint8(x_35, sizeof(void*)*10 + 1, x_28); -lean_ctor_set_uint8(x_35, sizeof(void*)*10 + 2, x_29); -x_36 = lean_apply_2(x_3, x_35, x_5); -return x_36; +lean_ctor_set(x_35, 0, x_31); +lean_ctor_set(x_35, 1, x_1); +lean_ctor_set(x_35, 2, x_2); +lean_ctor_set(x_35, 3, x_32); +lean_ctor_set(x_35, 4, x_33); +x_36 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_18); +lean_ctor_set(x_36, 2, x_19); +lean_ctor_set(x_36, 3, x_20); +lean_ctor_set(x_36, 4, x_21); +lean_ctor_set(x_36, 5, x_22); +lean_ctor_set(x_36, 6, x_23); +lean_ctor_set(x_36, 7, x_24); +lean_ctor_set(x_36, 8, x_25); +lean_ctor_set(x_36, 9, x_26); +lean_ctor_set(x_36, 10, x_30); +lean_ctor_set_uint8(x_36, sizeof(void*)*11, x_27); +lean_ctor_set_uint8(x_36, sizeof(void*)*11 + 1, x_28); +lean_ctor_set_uint8(x_36, sizeof(void*)*11 + 2, x_29); +x_37 = lean_apply_2(x_3, x_36, x_5); +return x_37; } } } @@ -24644,7 +24931,7 @@ return x_195; } else { -lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; uint8_t x_222; uint8_t x_223; uint8_t x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; +lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; uint8_t x_222; uint8_t x_223; uint8_t x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; x_212 = lean_ctor_get(x_4, 0); x_213 = lean_ctor_get(x_4, 1); x_214 = lean_ctor_get(x_4, 2); @@ -24655,9 +24942,11 @@ x_218 = lean_ctor_get(x_4, 6); x_219 = lean_ctor_get(x_4, 7); x_220 = lean_ctor_get(x_4, 8); x_221 = lean_ctor_get(x_4, 9); -x_222 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); -x_223 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); -x_224 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 2); +x_222 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_223 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_224 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +x_225 = lean_ctor_get(x_4, 10); +lean_inc(x_225); lean_inc(x_221); lean_inc(x_220); lean_inc(x_219); @@ -24669,168 +24958,147 @@ lean_inc(x_214); lean_inc(x_213); lean_inc(x_212); lean_dec(x_4); -x_225 = lean_ctor_get(x_212, 0); -lean_inc(x_225); -x_226 = lean_ctor_get(x_212, 3); +x_226 = lean_ctor_get(x_212, 0); lean_inc(x_226); -x_227 = lean_ctor_get(x_212, 4); +x_227 = lean_ctor_get(x_212, 3); lean_inc(x_227); +x_228 = lean_ctor_get(x_212, 4); +lean_inc(x_228); if (lean_is_exclusive(x_212)) { lean_ctor_release(x_212, 0); lean_ctor_release(x_212, 1); lean_ctor_release(x_212, 2); lean_ctor_release(x_212, 3); lean_ctor_release(x_212, 4); - x_228 = x_212; + x_229 = x_212; } else { lean_dec_ref(x_212); - x_228 = lean_box(0); + x_229 = lean_box(0); } lean_inc(x_2); -if (lean_is_scalar(x_228)) { - x_229 = lean_alloc_ctor(0, 5, 0); +if (lean_is_scalar(x_229)) { + x_230 = lean_alloc_ctor(0, 5, 0); } else { - x_229 = x_228; + x_230 = x_229; } -lean_ctor_set(x_229, 0, x_225); -lean_ctor_set(x_229, 1, x_1); -lean_ctor_set(x_229, 2, x_2); -lean_ctor_set(x_229, 3, x_226); -lean_ctor_set(x_229, 4, x_227); -x_230 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_230, 0, x_229); -lean_ctor_set(x_230, 1, x_213); -lean_ctor_set(x_230, 2, x_214); -lean_ctor_set(x_230, 3, x_215); -lean_ctor_set(x_230, 4, x_216); -lean_ctor_set(x_230, 5, x_217); -lean_ctor_set(x_230, 6, x_218); -lean_ctor_set(x_230, 7, x_219); -lean_ctor_set(x_230, 8, x_220); -lean_ctor_set(x_230, 9, x_221); -lean_ctor_set_uint8(x_230, sizeof(void*)*10, x_222); -lean_ctor_set_uint8(x_230, sizeof(void*)*10 + 1, x_223); -lean_ctor_set_uint8(x_230, sizeof(void*)*10 + 2, x_224); +lean_ctor_set(x_230, 0, x_226); +lean_ctor_set(x_230, 1, x_1); +lean_ctor_set(x_230, 2, x_2); +lean_ctor_set(x_230, 3, x_227); +lean_ctor_set(x_230, 4, x_228); +x_231 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_231, 0, x_230); +lean_ctor_set(x_231, 1, x_213); +lean_ctor_set(x_231, 2, x_214); +lean_ctor_set(x_231, 3, x_215); +lean_ctor_set(x_231, 4, x_216); +lean_ctor_set(x_231, 5, x_217); +lean_ctor_set(x_231, 6, x_218); +lean_ctor_set(x_231, 7, x_219); +lean_ctor_set(x_231, 8, x_220); +lean_ctor_set(x_231, 9, x_221); +lean_ctor_set(x_231, 10, x_225); +lean_ctor_set_uint8(x_231, sizeof(void*)*11, x_222); +lean_ctor_set_uint8(x_231, sizeof(void*)*11 + 1, x_223); +lean_ctor_set_uint8(x_231, sizeof(void*)*11 + 2, x_224); if (x_12 == 0) { -lean_object* x_296; +lean_object* x_297; lean_dec(x_7); lean_dec(x_2); -x_296 = lean_box(0); -x_231 = x_296; -goto block_295; +x_297 = lean_box(0); +x_232 = x_297; +goto block_296; } else { -lean_object* x_297; uint8_t x_298; -x_297 = lean_unsigned_to_nat(0u); -x_298 = l_Array_isEqvAux___main___at_Lean_Elab_Term_withLocalContext___spec__1(x_2, x_7, lean_box(0), x_2, x_7, x_297); +lean_object* x_298; uint8_t x_299; +x_298 = lean_unsigned_to_nat(0u); +x_299 = l_Array_isEqvAux___main___at_Lean_Elab_Term_withLocalContext___spec__1(x_2, x_7, lean_box(0), x_2, x_7, x_298); lean_dec(x_7); lean_dec(x_2); -if (x_298 == 0) -{ -lean_object* x_299; -x_299 = lean_box(0); -x_231 = x_299; -goto block_295; -} -else +if (x_299 == 0) { lean_object* x_300; -lean_dec(x_9); -x_300 = lean_apply_2(x_3, x_230, x_8); -return x_300; +x_300 = lean_box(0); +x_232 = x_300; +goto block_296; } -} -block_295: +else { -lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_286; lean_object* x_287; lean_object* x_288; -lean_dec(x_231); -x_232 = lean_ctor_get(x_8, 0); -lean_inc(x_232); -x_233 = lean_ctor_get(x_232, 2); -lean_inc(x_233); +lean_object* x_301; +lean_dec(x_9); +x_301 = lean_apply_2(x_3, x_231, x_8); +return x_301; +} +} +block_296: +{ +lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_dec(x_232); +x_233 = lean_ctor_get(x_8, 0); +lean_inc(x_233); x_234 = lean_ctor_get(x_233, 2); lean_inc(x_234); lean_dec(x_233); -x_286 = l_Lean_Elab_Term_resetSynthInstanceCache___rarg(x_8); -x_287 = lean_ctor_get(x_286, 1); -lean_inc(x_287); -lean_dec(x_286); -x_288 = lean_apply_2(x_3, x_230, x_287); -if (lean_obj_tag(x_288) == 0) +x_235 = lean_ctor_get(x_234, 2); +lean_inc(x_235); +lean_dec(x_234); +x_287 = l_Lean_Elab_Term_resetSynthInstanceCache___rarg(x_8); +x_288 = lean_ctor_get(x_287, 1); +lean_inc(x_288); +lean_dec(x_287); +x_289 = lean_apply_2(x_3, x_231, x_288); +if (lean_obj_tag(x_289) == 0) { -lean_object* x_289; lean_object* x_290; lean_object* x_291; -x_289 = lean_ctor_get(x_288, 0); -lean_inc(x_289); -x_290 = lean_ctor_get(x_288, 1); +lean_object* x_290; lean_object* x_291; lean_object* x_292; +x_290 = lean_ctor_get(x_289, 0); lean_inc(x_290); -lean_dec(x_288); -x_291 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_291, 0, x_289); -x_235 = x_291; -x_236 = x_290; -goto block_285; +x_291 = lean_ctor_get(x_289, 1); +lean_inc(x_291); +lean_dec(x_289); +x_292 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_292, 0, x_290); +x_236 = x_292; +x_237 = x_291; +goto block_286; } else { -lean_object* x_292; lean_object* x_293; lean_object* x_294; -x_292 = lean_ctor_get(x_288, 0); -lean_inc(x_292); -x_293 = lean_ctor_get(x_288, 1); +lean_object* x_293; lean_object* x_294; lean_object* x_295; +x_293 = lean_ctor_get(x_289, 0); lean_inc(x_293); -lean_dec(x_288); -x_294 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_294, 0, x_292); -x_235 = x_294; -x_236 = x_293; -goto block_285; +x_294 = lean_ctor_get(x_289, 1); +lean_inc(x_294); +lean_dec(x_289); +x_295 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_295, 0, x_293); +x_236 = x_295; +x_237 = x_294; +goto block_286; } -block_285: +block_286: { -if (lean_obj_tag(x_235) == 0) +if (lean_obj_tag(x_236) == 0) { -lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; -x_237 = lean_ctor_get(x_236, 0); -lean_inc(x_237); -x_238 = lean_ctor_get(x_237, 2); +lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; +x_238 = lean_ctor_get(x_237, 0); lean_inc(x_238); -x_239 = lean_ctor_get(x_235, 0); +x_239 = lean_ctor_get(x_238, 2); lean_inc(x_239); -lean_dec(x_235); -x_240 = lean_ctor_get(x_236, 1); +x_240 = lean_ctor_get(x_236, 0); lean_inc(x_240); -x_241 = lean_ctor_get(x_236, 2); +lean_dec(x_236); +x_241 = lean_ctor_get(x_237, 1); lean_inc(x_241); -x_242 = lean_ctor_get(x_236, 3); +x_242 = lean_ctor_get(x_237, 2); lean_inc(x_242); -x_243 = lean_ctor_get(x_236, 4); +x_243 = lean_ctor_get(x_237, 3); lean_inc(x_243); -x_244 = lean_ctor_get(x_236, 5); +x_244 = lean_ctor_get(x_237, 4); lean_inc(x_244); -if (lean_is_exclusive(x_236)) { - lean_ctor_release(x_236, 0); - lean_ctor_release(x_236, 1); - lean_ctor_release(x_236, 2); - lean_ctor_release(x_236, 3); - lean_ctor_release(x_236, 4); - lean_ctor_release(x_236, 5); - x_245 = x_236; -} else { - lean_dec_ref(x_236); - x_245 = lean_box(0); -} -x_246 = lean_ctor_get(x_237, 0); -lean_inc(x_246); -x_247 = lean_ctor_get(x_237, 1); -lean_inc(x_247); -x_248 = lean_ctor_get(x_237, 3); -lean_inc(x_248); -x_249 = lean_ctor_get(x_237, 4); -lean_inc(x_249); -x_250 = lean_ctor_get(x_237, 5); -lean_inc(x_250); +x_245 = lean_ctor_get(x_237, 5); +lean_inc(x_245); if (lean_is_exclusive(x_237)) { lean_ctor_release(x_237, 0); lean_ctor_release(x_237, 1); @@ -24838,185 +25106,207 @@ if (lean_is_exclusive(x_237)) { lean_ctor_release(x_237, 3); lean_ctor_release(x_237, 4); lean_ctor_release(x_237, 5); - x_251 = x_237; + x_246 = x_237; } else { lean_dec_ref(x_237); - x_251 = lean_box(0); + x_246 = lean_box(0); } -x_252 = lean_ctor_get(x_238, 0); -lean_inc(x_252); -x_253 = lean_ctor_get(x_238, 1); -lean_inc(x_253); -x_254 = lean_ctor_get(x_238, 3); -lean_inc(x_254); -x_255 = lean_ctor_get(x_238, 4); -lean_inc(x_255); +x_247 = lean_ctor_get(x_238, 0); +lean_inc(x_247); +x_248 = lean_ctor_get(x_238, 1); +lean_inc(x_248); +x_249 = lean_ctor_get(x_238, 3); +lean_inc(x_249); +x_250 = lean_ctor_get(x_238, 4); +lean_inc(x_250); +x_251 = lean_ctor_get(x_238, 5); +lean_inc(x_251); if (lean_is_exclusive(x_238)) { lean_ctor_release(x_238, 0); lean_ctor_release(x_238, 1); lean_ctor_release(x_238, 2); lean_ctor_release(x_238, 3); lean_ctor_release(x_238, 4); - x_256 = x_238; + lean_ctor_release(x_238, 5); + x_252 = x_238; } else { lean_dec_ref(x_238); - x_256 = lean_box(0); + x_252 = lean_box(0); } -if (lean_is_scalar(x_256)) { - x_257 = lean_alloc_ctor(0, 5, 0); +x_253 = lean_ctor_get(x_239, 0); +lean_inc(x_253); +x_254 = lean_ctor_get(x_239, 1); +lean_inc(x_254); +x_255 = lean_ctor_get(x_239, 3); +lean_inc(x_255); +x_256 = lean_ctor_get(x_239, 4); +lean_inc(x_256); +if (lean_is_exclusive(x_239)) { + lean_ctor_release(x_239, 0); + lean_ctor_release(x_239, 1); + lean_ctor_release(x_239, 2); + lean_ctor_release(x_239, 3); + lean_ctor_release(x_239, 4); + x_257 = x_239; } else { - x_257 = x_256; + lean_dec_ref(x_239); + x_257 = lean_box(0); } -lean_ctor_set(x_257, 0, x_252); -lean_ctor_set(x_257, 1, x_253); -lean_ctor_set(x_257, 2, x_234); -lean_ctor_set(x_257, 3, x_254); -lean_ctor_set(x_257, 4, x_255); -if (lean_is_scalar(x_251)) { - x_258 = lean_alloc_ctor(0, 6, 0); +if (lean_is_scalar(x_257)) { + x_258 = lean_alloc_ctor(0, 5, 0); } else { - x_258 = x_251; + x_258 = x_257; } -lean_ctor_set(x_258, 0, x_246); -lean_ctor_set(x_258, 1, x_247); -lean_ctor_set(x_258, 2, x_257); -lean_ctor_set(x_258, 3, x_248); -lean_ctor_set(x_258, 4, x_249); -lean_ctor_set(x_258, 5, x_250); -if (lean_is_scalar(x_245)) { +lean_ctor_set(x_258, 0, x_253); +lean_ctor_set(x_258, 1, x_254); +lean_ctor_set(x_258, 2, x_235); +lean_ctor_set(x_258, 3, x_255); +lean_ctor_set(x_258, 4, x_256); +if (lean_is_scalar(x_252)) { x_259 = lean_alloc_ctor(0, 6, 0); } else { - x_259 = x_245; + x_259 = x_252; } -lean_ctor_set(x_259, 0, x_258); -lean_ctor_set(x_259, 1, x_240); -lean_ctor_set(x_259, 2, x_241); -lean_ctor_set(x_259, 3, x_242); -lean_ctor_set(x_259, 4, x_243); -lean_ctor_set(x_259, 5, x_244); -if (lean_is_scalar(x_9)) { - x_260 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_259, 0, x_247); +lean_ctor_set(x_259, 1, x_248); +lean_ctor_set(x_259, 2, x_258); +lean_ctor_set(x_259, 3, x_249); +lean_ctor_set(x_259, 4, x_250); +lean_ctor_set(x_259, 5, x_251); +if (lean_is_scalar(x_246)) { + x_260 = lean_alloc_ctor(0, 6, 0); } else { - x_260 = x_9; - lean_ctor_set_tag(x_260, 1); + x_260 = x_246; } -lean_ctor_set(x_260, 0, x_239); -lean_ctor_set(x_260, 1, x_259); -return x_260; +lean_ctor_set(x_260, 0, x_259); +lean_ctor_set(x_260, 1, x_241); +lean_ctor_set(x_260, 2, x_242); +lean_ctor_set(x_260, 3, x_243); +lean_ctor_set(x_260, 4, x_244); +lean_ctor_set(x_260, 5, x_245); +if (lean_is_scalar(x_9)) { + x_261 = lean_alloc_ctor(1, 2, 0); +} else { + x_261 = x_9; + lean_ctor_set_tag(x_261, 1); +} +lean_ctor_set(x_261, 0, x_240); +lean_ctor_set(x_261, 1, x_260); +return x_261; } else { -lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; -x_261 = lean_ctor_get(x_236, 0); -lean_inc(x_261); -x_262 = lean_ctor_get(x_261, 2); +lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; +x_262 = lean_ctor_get(x_237, 0); lean_inc(x_262); -x_263 = lean_ctor_get(x_235, 0); +x_263 = lean_ctor_get(x_262, 2); lean_inc(x_263); -lean_dec(x_235); -x_264 = lean_ctor_get(x_236, 1); +x_264 = lean_ctor_get(x_236, 0); lean_inc(x_264); -x_265 = lean_ctor_get(x_236, 2); +lean_dec(x_236); +x_265 = lean_ctor_get(x_237, 1); lean_inc(x_265); -x_266 = lean_ctor_get(x_236, 3); +x_266 = lean_ctor_get(x_237, 2); lean_inc(x_266); -x_267 = lean_ctor_get(x_236, 4); +x_267 = lean_ctor_get(x_237, 3); lean_inc(x_267); -x_268 = lean_ctor_get(x_236, 5); +x_268 = lean_ctor_get(x_237, 4); lean_inc(x_268); -if (lean_is_exclusive(x_236)) { - lean_ctor_release(x_236, 0); - lean_ctor_release(x_236, 1); - lean_ctor_release(x_236, 2); - lean_ctor_release(x_236, 3); - lean_ctor_release(x_236, 4); - lean_ctor_release(x_236, 5); - x_269 = x_236; +x_269 = lean_ctor_get(x_237, 5); +lean_inc(x_269); +if (lean_is_exclusive(x_237)) { + lean_ctor_release(x_237, 0); + lean_ctor_release(x_237, 1); + lean_ctor_release(x_237, 2); + lean_ctor_release(x_237, 3); + lean_ctor_release(x_237, 4); + lean_ctor_release(x_237, 5); + x_270 = x_237; } else { - lean_dec_ref(x_236); - x_269 = lean_box(0); + lean_dec_ref(x_237); + x_270 = lean_box(0); } -x_270 = lean_ctor_get(x_261, 0); -lean_inc(x_270); -x_271 = lean_ctor_get(x_261, 1); +x_271 = lean_ctor_get(x_262, 0); lean_inc(x_271); -x_272 = lean_ctor_get(x_261, 3); +x_272 = lean_ctor_get(x_262, 1); lean_inc(x_272); -x_273 = lean_ctor_get(x_261, 4); +x_273 = lean_ctor_get(x_262, 3); lean_inc(x_273); -x_274 = lean_ctor_get(x_261, 5); +x_274 = lean_ctor_get(x_262, 4); lean_inc(x_274); -if (lean_is_exclusive(x_261)) { - lean_ctor_release(x_261, 0); - lean_ctor_release(x_261, 1); - lean_ctor_release(x_261, 2); - lean_ctor_release(x_261, 3); - lean_ctor_release(x_261, 4); - lean_ctor_release(x_261, 5); - x_275 = x_261; -} else { - lean_dec_ref(x_261); - x_275 = lean_box(0); -} -x_276 = lean_ctor_get(x_262, 0); -lean_inc(x_276); -x_277 = lean_ctor_get(x_262, 1); -lean_inc(x_277); -x_278 = lean_ctor_get(x_262, 3); -lean_inc(x_278); -x_279 = lean_ctor_get(x_262, 4); -lean_inc(x_279); +x_275 = lean_ctor_get(x_262, 5); +lean_inc(x_275); if (lean_is_exclusive(x_262)) { lean_ctor_release(x_262, 0); lean_ctor_release(x_262, 1); lean_ctor_release(x_262, 2); lean_ctor_release(x_262, 3); lean_ctor_release(x_262, 4); - x_280 = x_262; + lean_ctor_release(x_262, 5); + x_276 = x_262; } else { lean_dec_ref(x_262); - x_280 = lean_box(0); + x_276 = lean_box(0); } -if (lean_is_scalar(x_280)) { - x_281 = lean_alloc_ctor(0, 5, 0); +x_277 = lean_ctor_get(x_263, 0); +lean_inc(x_277); +x_278 = lean_ctor_get(x_263, 1); +lean_inc(x_278); +x_279 = lean_ctor_get(x_263, 3); +lean_inc(x_279); +x_280 = lean_ctor_get(x_263, 4); +lean_inc(x_280); +if (lean_is_exclusive(x_263)) { + lean_ctor_release(x_263, 0); + lean_ctor_release(x_263, 1); + lean_ctor_release(x_263, 2); + lean_ctor_release(x_263, 3); + lean_ctor_release(x_263, 4); + x_281 = x_263; } else { - x_281 = x_280; + lean_dec_ref(x_263); + x_281 = lean_box(0); } -lean_ctor_set(x_281, 0, x_276); -lean_ctor_set(x_281, 1, x_277); -lean_ctor_set(x_281, 2, x_234); -lean_ctor_set(x_281, 3, x_278); -lean_ctor_set(x_281, 4, x_279); -if (lean_is_scalar(x_275)) { - x_282 = lean_alloc_ctor(0, 6, 0); +if (lean_is_scalar(x_281)) { + x_282 = lean_alloc_ctor(0, 5, 0); } else { - x_282 = x_275; + x_282 = x_281; } -lean_ctor_set(x_282, 0, x_270); -lean_ctor_set(x_282, 1, x_271); -lean_ctor_set(x_282, 2, x_281); -lean_ctor_set(x_282, 3, x_272); -lean_ctor_set(x_282, 4, x_273); -lean_ctor_set(x_282, 5, x_274); -if (lean_is_scalar(x_269)) { +lean_ctor_set(x_282, 0, x_277); +lean_ctor_set(x_282, 1, x_278); +lean_ctor_set(x_282, 2, x_235); +lean_ctor_set(x_282, 3, x_279); +lean_ctor_set(x_282, 4, x_280); +if (lean_is_scalar(x_276)) { x_283 = lean_alloc_ctor(0, 6, 0); } else { - x_283 = x_269; + x_283 = x_276; } -lean_ctor_set(x_283, 0, x_282); -lean_ctor_set(x_283, 1, x_264); -lean_ctor_set(x_283, 2, x_265); -lean_ctor_set(x_283, 3, x_266); -lean_ctor_set(x_283, 4, x_267); -lean_ctor_set(x_283, 5, x_268); -if (lean_is_scalar(x_9)) { - x_284 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_283, 0, x_271); +lean_ctor_set(x_283, 1, x_272); +lean_ctor_set(x_283, 2, x_282); +lean_ctor_set(x_283, 3, x_273); +lean_ctor_set(x_283, 4, x_274); +lean_ctor_set(x_283, 5, x_275); +if (lean_is_scalar(x_270)) { + x_284 = lean_alloc_ctor(0, 6, 0); } else { - x_284 = x_9; + x_284 = x_270; } -lean_ctor_set(x_284, 0, x_263); -lean_ctor_set(x_284, 1, x_283); -return x_284; +lean_ctor_set(x_284, 0, x_283); +lean_ctor_set(x_284, 1, x_265); +lean_ctor_set(x_284, 2, x_266); +lean_ctor_set(x_284, 3, x_267); +lean_ctor_set(x_284, 4, x_268); +lean_ctor_set(x_284, 5, x_269); +if (lean_is_scalar(x_9)) { + x_285 = lean_alloc_ctor(0, 2, 0); +} else { + x_285 = x_9; +} +lean_ctor_set(x_285, 0, x_264); +lean_ctor_set(x_285, 1, x_284); +return x_285; } } } @@ -25089,7 +25379,7 @@ goto _start; lean_object* l_Lean_Elab_Term_withMVarContext___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_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* x_18; uint8_t x_19; +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* x_18; uint8_t x_19; uint8_t x_20; uint8_t x_21; lean_object* x_22; uint8_t x_23; x_5 = l_Lean_Elab_Term_getMVarDecl(x_1, x_3, x_4); x_6 = lean_ctor_get(x_3, 0); lean_inc(x_6); @@ -25123,559 +25413,562 @@ x_17 = lean_ctor_get(x_3, 8); lean_inc(x_17); x_18 = lean_ctor_get(x_3, 9); lean_inc(x_18); -x_19 = !lean_is_exclusive(x_6); -if (x_19 == 0) +x_19 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_20 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_21 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +x_22 = lean_ctor_get(x_3, 10); +lean_inc(x_22); +x_23 = !lean_is_exclusive(x_6); +if (x_23 == 0) { -uint8_t x_20; uint8_t x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; lean_object* x_30; -x_20 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); -x_21 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); -x_22 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); -x_23 = lean_ctor_get(x_6, 2); -x_24 = lean_ctor_get(x_6, 1); -lean_dec(x_24); -x_25 = lean_ctor_get(x_7, 1); -lean_inc(x_25); -x_26 = lean_ctor_get(x_7, 4); +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; +x_24 = lean_ctor_get(x_6, 2); +x_25 = lean_ctor_get(x_6, 1); +lean_dec(x_25); +x_26 = lean_ctor_get(x_7, 1); lean_inc(x_26); -x_27 = lean_array_get_size(x_23); -x_28 = lean_array_get_size(x_26); -x_29 = lean_nat_dec_eq(x_27, x_28); +x_27 = lean_ctor_get(x_7, 4); +lean_inc(x_27); +x_28 = lean_array_get_size(x_24); +x_29 = lean_array_get_size(x_27); +x_30 = lean_nat_dec_eq(x_28, x_29); +lean_dec(x_29); lean_dec(x_28); +lean_inc(x_27); +lean_ctor_set(x_6, 2, x_27); +lean_ctor_set(x_6, 1, x_26); +x_31 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_31, 0, x_6); +lean_ctor_set(x_31, 1, x_10); +lean_ctor_set(x_31, 2, x_11); +lean_ctor_set(x_31, 3, x_12); +lean_ctor_set(x_31, 4, x_13); +lean_ctor_set(x_31, 5, x_14); +lean_ctor_set(x_31, 6, x_15); +lean_ctor_set(x_31, 7, x_16); +lean_ctor_set(x_31, 8, x_17); +lean_ctor_set(x_31, 9, x_18); +lean_ctor_set(x_31, 10, x_22); +lean_ctor_set_uint8(x_31, sizeof(void*)*11, x_19); +lean_ctor_set_uint8(x_31, sizeof(void*)*11 + 1, x_20); +lean_ctor_set_uint8(x_31, sizeof(void*)*11 + 2, x_21); +if (x_30 == 0) +{ +lean_object* x_32; lean_dec(x_27); -lean_inc(x_26); -lean_ctor_set(x_6, 2, x_26); -lean_ctor_set(x_6, 1, x_25); -x_30 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_30, 0, x_6); -lean_ctor_set(x_30, 1, x_10); -lean_ctor_set(x_30, 2, x_11); -lean_ctor_set(x_30, 3, x_12); -lean_ctor_set(x_30, 4, x_13); -lean_ctor_set(x_30, 5, x_14); -lean_ctor_set(x_30, 6, x_15); -lean_ctor_set(x_30, 7, x_16); -lean_ctor_set(x_30, 8, x_17); -lean_ctor_set(x_30, 9, x_18); -lean_ctor_set_uint8(x_30, sizeof(void*)*10, x_20); -lean_ctor_set_uint8(x_30, sizeof(void*)*10 + 1, x_21); -lean_ctor_set_uint8(x_30, sizeof(void*)*10 + 2, x_22); -if (x_29 == 0) -{ -lean_object* x_31; -lean_dec(x_26); -lean_dec(x_23); +lean_dec(x_24); lean_dec(x_9); lean_dec(x_7); lean_dec(x_3); -x_31 = lean_apply_2(x_2, x_30, x_8); -return x_31; +x_32 = lean_apply_2(x_2, x_31, x_8); +return x_32; } else { -lean_object* x_32; uint8_t x_33; -x_32 = lean_unsigned_to_nat(0u); -x_33 = l_Array_isEqvAux___main___at_Lean_Elab_Term_withMVarContext___spec__1(x_3, x_7, lean_box(0), x_23, x_26, x_32); -lean_dec(x_26); -lean_dec(x_23); +lean_object* x_33; uint8_t x_34; +x_33 = lean_unsigned_to_nat(0u); +x_34 = l_Array_isEqvAux___main___at_Lean_Elab_Term_withMVarContext___spec__1(x_3, x_7, lean_box(0), x_24, x_27, x_33); +lean_dec(x_27); +lean_dec(x_24); lean_dec(x_7); lean_dec(x_3); -if (x_33 == 0) +if (x_34 == 0) { -lean_object* x_34; +lean_object* x_35; lean_dec(x_9); -x_34 = lean_apply_2(x_2, x_30, x_8); -return x_34; +x_35 = lean_apply_2(x_2, x_31, x_8); +return x_35; } else { -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_139; lean_object* x_140; lean_object* x_141; -x_35 = lean_ctor_get(x_8, 0); -lean_inc(x_35); -x_36 = lean_ctor_get(x_35, 2); +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_140; lean_object* x_141; lean_object* x_142; +x_36 = lean_ctor_get(x_8, 0); lean_inc(x_36); -lean_dec(x_35); x_37 = lean_ctor_get(x_36, 2); lean_inc(x_37); lean_dec(x_36); -x_139 = l_Lean_Elab_Term_resetSynthInstanceCache___rarg(x_8); -x_140 = lean_ctor_get(x_139, 1); -lean_inc(x_140); -lean_dec(x_139); -x_141 = lean_apply_2(x_2, x_30, x_140); -if (lean_obj_tag(x_141) == 0) +x_38 = lean_ctor_get(x_37, 2); +lean_inc(x_38); +lean_dec(x_37); +x_140 = l_Lean_Elab_Term_resetSynthInstanceCache___rarg(x_8); +x_141 = lean_ctor_get(x_140, 1); +lean_inc(x_141); +lean_dec(x_140); +x_142 = lean_apply_2(x_2, x_31, x_141); +if (lean_obj_tag(x_142) == 0) { -lean_object* x_142; lean_object* x_143; lean_object* x_144; -x_142 = lean_ctor_get(x_141, 0); -lean_inc(x_142); -x_143 = lean_ctor_get(x_141, 1); +lean_object* x_143; lean_object* x_144; lean_object* x_145; +x_143 = lean_ctor_get(x_142, 0); lean_inc(x_143); -lean_dec(x_141); -x_144 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_144, 0, x_142); -x_38 = x_144; -x_39 = x_143; -goto block_138; +x_144 = lean_ctor_get(x_142, 1); +lean_inc(x_144); +lean_dec(x_142); +x_145 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_145, 0, x_143); +x_39 = x_145; +x_40 = x_144; +goto block_139; } else { -lean_object* x_145; lean_object* x_146; lean_object* x_147; -x_145 = lean_ctor_get(x_141, 0); -lean_inc(x_145); -x_146 = lean_ctor_get(x_141, 1); +lean_object* x_146; lean_object* x_147; lean_object* x_148; +x_146 = lean_ctor_get(x_142, 0); lean_inc(x_146); -lean_dec(x_141); -x_147 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_147, 0, x_145); -x_38 = x_147; -x_39 = x_146; -goto block_138; +x_147 = lean_ctor_get(x_142, 1); +lean_inc(x_147); +lean_dec(x_142); +x_148 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_148, 0, x_146); +x_39 = x_148; +x_40 = x_147; +goto block_139; } -block_138: +block_139: { -if (lean_obj_tag(x_38) == 0) +if (lean_obj_tag(x_39) == 0) { -lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; -x_40 = lean_ctor_get(x_39, 0); -lean_inc(x_40); -x_41 = lean_ctor_get(x_40, 2); +lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_41 = lean_ctor_get(x_40, 0); lean_inc(x_41); -x_42 = lean_ctor_get(x_38, 0); +x_42 = lean_ctor_get(x_41, 2); lean_inc(x_42); -lean_dec(x_38); -x_43 = !lean_is_exclusive(x_39); -if (x_43 == 0) +x_43 = lean_ctor_get(x_39, 0); +lean_inc(x_43); +lean_dec(x_39); +x_44 = !lean_is_exclusive(x_40); +if (x_44 == 0) { -lean_object* x_44; uint8_t x_45; -x_44 = lean_ctor_get(x_39, 0); -lean_dec(x_44); -x_45 = !lean_is_exclusive(x_40); -if (x_45 == 0) +lean_object* x_45; uint8_t x_46; +x_45 = lean_ctor_get(x_40, 0); +lean_dec(x_45); +x_46 = !lean_is_exclusive(x_41); +if (x_46 == 0) { -lean_object* x_46; uint8_t x_47; -x_46 = lean_ctor_get(x_40, 2); -lean_dec(x_46); -x_47 = !lean_is_exclusive(x_41); -if (x_47 == 0) +lean_object* x_47; uint8_t x_48; +x_47 = lean_ctor_get(x_41, 2); +lean_dec(x_47); +x_48 = !lean_is_exclusive(x_42); +if (x_48 == 0) { -lean_object* x_48; lean_object* x_49; -x_48 = lean_ctor_get(x_41, 2); -lean_dec(x_48); -lean_ctor_set(x_41, 2, x_37); +lean_object* x_49; lean_object* x_50; +x_49 = lean_ctor_get(x_42, 2); +lean_dec(x_49); +lean_ctor_set(x_42, 2, x_38); if (lean_is_scalar(x_9)) { - x_49 = lean_alloc_ctor(1, 2, 0); + x_50 = lean_alloc_ctor(1, 2, 0); } else { - x_49 = x_9; - lean_ctor_set_tag(x_49, 1); + x_50 = x_9; + lean_ctor_set_tag(x_50, 1); } -lean_ctor_set(x_49, 0, x_42); -lean_ctor_set(x_49, 1, x_39); -return x_49; +lean_ctor_set(x_50, 0, x_43); +lean_ctor_set(x_50, 1, x_40); +return x_50; } else { -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_50 = lean_ctor_get(x_41, 0); -x_51 = lean_ctor_get(x_41, 1); -x_52 = lean_ctor_get(x_41, 3); -x_53 = lean_ctor_get(x_41, 4); +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_51 = lean_ctor_get(x_42, 0); +x_52 = lean_ctor_get(x_42, 1); +x_53 = lean_ctor_get(x_42, 3); +x_54 = lean_ctor_get(x_42, 4); +lean_inc(x_54); lean_inc(x_53); lean_inc(x_52); lean_inc(x_51); -lean_inc(x_50); -lean_dec(x_41); -x_54 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_54, 0, x_50); -lean_ctor_set(x_54, 1, x_51); -lean_ctor_set(x_54, 2, x_37); -lean_ctor_set(x_54, 3, x_52); -lean_ctor_set(x_54, 4, x_53); -lean_ctor_set(x_40, 2, x_54); +lean_dec(x_42); +x_55 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_55, 0, x_51); +lean_ctor_set(x_55, 1, x_52); +lean_ctor_set(x_55, 2, x_38); +lean_ctor_set(x_55, 3, x_53); +lean_ctor_set(x_55, 4, x_54); +lean_ctor_set(x_41, 2, x_55); if (lean_is_scalar(x_9)) { - x_55 = lean_alloc_ctor(1, 2, 0); + x_56 = lean_alloc_ctor(1, 2, 0); } else { - x_55 = x_9; - lean_ctor_set_tag(x_55, 1); + x_56 = x_9; + lean_ctor_set_tag(x_56, 1); } -lean_ctor_set(x_55, 0, x_42); -lean_ctor_set(x_55, 1, x_39); -return x_55; +lean_ctor_set(x_56, 0, x_43); +lean_ctor_set(x_56, 1, x_40); +return x_56; } } else { -lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_56 = lean_ctor_get(x_40, 0); -x_57 = lean_ctor_get(x_40, 1); -x_58 = lean_ctor_get(x_40, 3); -x_59 = lean_ctor_get(x_40, 4); -x_60 = lean_ctor_get(x_40, 5); +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_57 = lean_ctor_get(x_41, 0); +x_58 = lean_ctor_get(x_41, 1); +x_59 = lean_ctor_get(x_41, 3); +x_60 = lean_ctor_get(x_41, 4); +x_61 = lean_ctor_get(x_41, 5); +lean_inc(x_61); lean_inc(x_60); lean_inc(x_59); lean_inc(x_58); lean_inc(x_57); -lean_inc(x_56); -lean_dec(x_40); -x_61 = lean_ctor_get(x_41, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_41, 1); +lean_dec(x_41); +x_62 = lean_ctor_get(x_42, 0); lean_inc(x_62); -x_63 = lean_ctor_get(x_41, 3); +x_63 = lean_ctor_get(x_42, 1); lean_inc(x_63); -x_64 = lean_ctor_get(x_41, 4); +x_64 = lean_ctor_get(x_42, 3); lean_inc(x_64); -if (lean_is_exclusive(x_41)) { - lean_ctor_release(x_41, 0); - lean_ctor_release(x_41, 1); - lean_ctor_release(x_41, 2); - lean_ctor_release(x_41, 3); - lean_ctor_release(x_41, 4); - x_65 = x_41; +x_65 = lean_ctor_get(x_42, 4); +lean_inc(x_65); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + lean_ctor_release(x_42, 4); + x_66 = x_42; } else { - lean_dec_ref(x_41); - x_65 = lean_box(0); + lean_dec_ref(x_42); + x_66 = lean_box(0); } -if (lean_is_scalar(x_65)) { - x_66 = lean_alloc_ctor(0, 5, 0); +if (lean_is_scalar(x_66)) { + x_67 = lean_alloc_ctor(0, 5, 0); } else { - x_66 = x_65; + x_67 = x_66; } -lean_ctor_set(x_66, 0, x_61); -lean_ctor_set(x_66, 1, x_62); -lean_ctor_set(x_66, 2, x_37); -lean_ctor_set(x_66, 3, x_63); -lean_ctor_set(x_66, 4, x_64); -x_67 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_67, 0, x_56); -lean_ctor_set(x_67, 1, x_57); -lean_ctor_set(x_67, 2, x_66); -lean_ctor_set(x_67, 3, x_58); -lean_ctor_set(x_67, 4, x_59); -lean_ctor_set(x_67, 5, x_60); -lean_ctor_set(x_39, 0, x_67); +lean_ctor_set(x_67, 0, x_62); +lean_ctor_set(x_67, 1, x_63); +lean_ctor_set(x_67, 2, x_38); +lean_ctor_set(x_67, 3, x_64); +lean_ctor_set(x_67, 4, x_65); +x_68 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_68, 0, x_57); +lean_ctor_set(x_68, 1, x_58); +lean_ctor_set(x_68, 2, x_67); +lean_ctor_set(x_68, 3, x_59); +lean_ctor_set(x_68, 4, x_60); +lean_ctor_set(x_68, 5, x_61); +lean_ctor_set(x_40, 0, x_68); if (lean_is_scalar(x_9)) { - x_68 = lean_alloc_ctor(1, 2, 0); + x_69 = lean_alloc_ctor(1, 2, 0); } else { - x_68 = x_9; - lean_ctor_set_tag(x_68, 1); + x_69 = x_9; + lean_ctor_set_tag(x_69, 1); } -lean_ctor_set(x_68, 0, x_42); -lean_ctor_set(x_68, 1, x_39); -return x_68; +lean_ctor_set(x_69, 0, x_43); +lean_ctor_set(x_69, 1, x_40); +return x_69; } } else { -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_69 = lean_ctor_get(x_39, 1); -x_70 = lean_ctor_get(x_39, 2); -x_71 = lean_ctor_get(x_39, 3); -x_72 = lean_ctor_get(x_39, 4); -x_73 = lean_ctor_get(x_39, 5); +lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_70 = lean_ctor_get(x_40, 1); +x_71 = lean_ctor_get(x_40, 2); +x_72 = lean_ctor_get(x_40, 3); +x_73 = lean_ctor_get(x_40, 4); +x_74 = lean_ctor_get(x_40, 5); +lean_inc(x_74); lean_inc(x_73); lean_inc(x_72); lean_inc(x_71); lean_inc(x_70); -lean_inc(x_69); -lean_dec(x_39); -x_74 = lean_ctor_get(x_40, 0); -lean_inc(x_74); -x_75 = lean_ctor_get(x_40, 1); +lean_dec(x_40); +x_75 = lean_ctor_get(x_41, 0); lean_inc(x_75); -x_76 = lean_ctor_get(x_40, 3); +x_76 = lean_ctor_get(x_41, 1); lean_inc(x_76); -x_77 = lean_ctor_get(x_40, 4); +x_77 = lean_ctor_get(x_41, 3); lean_inc(x_77); -x_78 = lean_ctor_get(x_40, 5); +x_78 = lean_ctor_get(x_41, 4); lean_inc(x_78); -if (lean_is_exclusive(x_40)) { - lean_ctor_release(x_40, 0); - lean_ctor_release(x_40, 1); - lean_ctor_release(x_40, 2); - lean_ctor_release(x_40, 3); - lean_ctor_release(x_40, 4); - lean_ctor_release(x_40, 5); - x_79 = x_40; -} else { - lean_dec_ref(x_40); - x_79 = lean_box(0); -} -x_80 = lean_ctor_get(x_41, 0); -lean_inc(x_80); -x_81 = lean_ctor_get(x_41, 1); -lean_inc(x_81); -x_82 = lean_ctor_get(x_41, 3); -lean_inc(x_82); -x_83 = lean_ctor_get(x_41, 4); -lean_inc(x_83); +x_79 = lean_ctor_get(x_41, 5); +lean_inc(x_79); if (lean_is_exclusive(x_41)) { lean_ctor_release(x_41, 0); lean_ctor_release(x_41, 1); lean_ctor_release(x_41, 2); lean_ctor_release(x_41, 3); lean_ctor_release(x_41, 4); - x_84 = x_41; + lean_ctor_release(x_41, 5); + x_80 = x_41; } else { lean_dec_ref(x_41); - x_84 = lean_box(0); + x_80 = lean_box(0); } -if (lean_is_scalar(x_84)) { - x_85 = lean_alloc_ctor(0, 5, 0); +x_81 = lean_ctor_get(x_42, 0); +lean_inc(x_81); +x_82 = lean_ctor_get(x_42, 1); +lean_inc(x_82); +x_83 = lean_ctor_get(x_42, 3); +lean_inc(x_83); +x_84 = lean_ctor_get(x_42, 4); +lean_inc(x_84); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + lean_ctor_release(x_42, 2); + lean_ctor_release(x_42, 3); + lean_ctor_release(x_42, 4); + x_85 = x_42; } else { - x_85 = x_84; + lean_dec_ref(x_42); + x_85 = lean_box(0); } -lean_ctor_set(x_85, 0, x_80); -lean_ctor_set(x_85, 1, x_81); -lean_ctor_set(x_85, 2, x_37); -lean_ctor_set(x_85, 3, x_82); -lean_ctor_set(x_85, 4, x_83); -if (lean_is_scalar(x_79)) { - x_86 = lean_alloc_ctor(0, 6, 0); +if (lean_is_scalar(x_85)) { + x_86 = lean_alloc_ctor(0, 5, 0); } else { - x_86 = x_79; + x_86 = x_85; } -lean_ctor_set(x_86, 0, x_74); -lean_ctor_set(x_86, 1, x_75); -lean_ctor_set(x_86, 2, x_85); -lean_ctor_set(x_86, 3, x_76); -lean_ctor_set(x_86, 4, x_77); -lean_ctor_set(x_86, 5, x_78); -x_87 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_87, 0, x_86); -lean_ctor_set(x_87, 1, x_69); -lean_ctor_set(x_87, 2, x_70); -lean_ctor_set(x_87, 3, x_71); -lean_ctor_set(x_87, 4, x_72); -lean_ctor_set(x_87, 5, x_73); +lean_ctor_set(x_86, 0, x_81); +lean_ctor_set(x_86, 1, x_82); +lean_ctor_set(x_86, 2, x_38); +lean_ctor_set(x_86, 3, x_83); +lean_ctor_set(x_86, 4, x_84); +if (lean_is_scalar(x_80)) { + x_87 = lean_alloc_ctor(0, 6, 0); +} else { + x_87 = x_80; +} +lean_ctor_set(x_87, 0, x_75); +lean_ctor_set(x_87, 1, x_76); +lean_ctor_set(x_87, 2, x_86); +lean_ctor_set(x_87, 3, x_77); +lean_ctor_set(x_87, 4, x_78); +lean_ctor_set(x_87, 5, x_79); +x_88 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_88, 0, x_87); +lean_ctor_set(x_88, 1, x_70); +lean_ctor_set(x_88, 2, x_71); +lean_ctor_set(x_88, 3, x_72); +lean_ctor_set(x_88, 4, x_73); +lean_ctor_set(x_88, 5, x_74); if (lean_is_scalar(x_9)) { - x_88 = lean_alloc_ctor(1, 2, 0); + x_89 = lean_alloc_ctor(1, 2, 0); } else { - x_88 = x_9; - lean_ctor_set_tag(x_88, 1); + x_89 = x_9; + lean_ctor_set_tag(x_89, 1); } -lean_ctor_set(x_88, 0, x_42); -lean_ctor_set(x_88, 1, x_87); -return x_88; +lean_ctor_set(x_89, 0, x_43); +lean_ctor_set(x_89, 1, x_88); +return x_89; } } else { -lean_object* x_89; lean_object* x_90; lean_object* x_91; uint8_t x_92; -x_89 = lean_ctor_get(x_39, 0); -lean_inc(x_89); -x_90 = lean_ctor_get(x_89, 2); +lean_object* x_90; lean_object* x_91; lean_object* x_92; uint8_t x_93; +x_90 = lean_ctor_get(x_40, 0); lean_inc(x_90); -x_91 = lean_ctor_get(x_38, 0); +x_91 = lean_ctor_get(x_90, 2); lean_inc(x_91); -lean_dec(x_38); -x_92 = !lean_is_exclusive(x_39); -if (x_92 == 0) +x_92 = lean_ctor_get(x_39, 0); +lean_inc(x_92); +lean_dec(x_39); +x_93 = !lean_is_exclusive(x_40); +if (x_93 == 0) { -lean_object* x_93; uint8_t x_94; -x_93 = lean_ctor_get(x_39, 0); -lean_dec(x_93); -x_94 = !lean_is_exclusive(x_89); -if (x_94 == 0) +lean_object* x_94; uint8_t x_95; +x_94 = lean_ctor_get(x_40, 0); +lean_dec(x_94); +x_95 = !lean_is_exclusive(x_90); +if (x_95 == 0) { -lean_object* x_95; uint8_t x_96; -x_95 = lean_ctor_get(x_89, 2); -lean_dec(x_95); -x_96 = !lean_is_exclusive(x_90); -if (x_96 == 0) +lean_object* x_96; uint8_t x_97; +x_96 = lean_ctor_get(x_90, 2); +lean_dec(x_96); +x_97 = !lean_is_exclusive(x_91); +if (x_97 == 0) { -lean_object* x_97; lean_object* x_98; -x_97 = lean_ctor_get(x_90, 2); -lean_dec(x_97); -lean_ctor_set(x_90, 2, x_37); +lean_object* x_98; lean_object* x_99; +x_98 = lean_ctor_get(x_91, 2); +lean_dec(x_98); +lean_ctor_set(x_91, 2, x_38); if (lean_is_scalar(x_9)) { - x_98 = lean_alloc_ctor(0, 2, 0); + x_99 = lean_alloc_ctor(0, 2, 0); } else { - x_98 = x_9; + x_99 = x_9; } -lean_ctor_set(x_98, 0, x_91); -lean_ctor_set(x_98, 1, x_39); -return x_98; +lean_ctor_set(x_99, 0, x_92); +lean_ctor_set(x_99, 1, x_40); +return x_99; } else { -lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_99 = lean_ctor_get(x_90, 0); -x_100 = lean_ctor_get(x_90, 1); -x_101 = lean_ctor_get(x_90, 3); -x_102 = lean_ctor_get(x_90, 4); +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_100 = lean_ctor_get(x_91, 0); +x_101 = lean_ctor_get(x_91, 1); +x_102 = lean_ctor_get(x_91, 3); +x_103 = lean_ctor_get(x_91, 4); +lean_inc(x_103); lean_inc(x_102); lean_inc(x_101); lean_inc(x_100); -lean_inc(x_99); -lean_dec(x_90); -x_103 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_103, 0, x_99); -lean_ctor_set(x_103, 1, x_100); -lean_ctor_set(x_103, 2, x_37); -lean_ctor_set(x_103, 3, x_101); -lean_ctor_set(x_103, 4, x_102); -lean_ctor_set(x_89, 2, x_103); +lean_dec(x_91); +x_104 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_104, 0, x_100); +lean_ctor_set(x_104, 1, x_101); +lean_ctor_set(x_104, 2, x_38); +lean_ctor_set(x_104, 3, x_102); +lean_ctor_set(x_104, 4, x_103); +lean_ctor_set(x_90, 2, x_104); if (lean_is_scalar(x_9)) { - x_104 = lean_alloc_ctor(0, 2, 0); + x_105 = lean_alloc_ctor(0, 2, 0); } else { - x_104 = x_9; + x_105 = x_9; } -lean_ctor_set(x_104, 0, x_91); -lean_ctor_set(x_104, 1, x_39); -return x_104; +lean_ctor_set(x_105, 0, x_92); +lean_ctor_set(x_105, 1, x_40); +return x_105; } } else { -lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; -x_105 = lean_ctor_get(x_89, 0); -x_106 = lean_ctor_get(x_89, 1); -x_107 = lean_ctor_get(x_89, 3); -x_108 = lean_ctor_get(x_89, 4); -x_109 = lean_ctor_get(x_89, 5); +lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; +x_106 = lean_ctor_get(x_90, 0); +x_107 = lean_ctor_get(x_90, 1); +x_108 = lean_ctor_get(x_90, 3); +x_109 = lean_ctor_get(x_90, 4); +x_110 = lean_ctor_get(x_90, 5); +lean_inc(x_110); lean_inc(x_109); lean_inc(x_108); lean_inc(x_107); lean_inc(x_106); -lean_inc(x_105); -lean_dec(x_89); -x_110 = lean_ctor_get(x_90, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_90, 1); +lean_dec(x_90); +x_111 = lean_ctor_get(x_91, 0); lean_inc(x_111); -x_112 = lean_ctor_get(x_90, 3); +x_112 = lean_ctor_get(x_91, 1); lean_inc(x_112); -x_113 = lean_ctor_get(x_90, 4); +x_113 = lean_ctor_get(x_91, 3); lean_inc(x_113); -if (lean_is_exclusive(x_90)) { - lean_ctor_release(x_90, 0); - lean_ctor_release(x_90, 1); - lean_ctor_release(x_90, 2); - lean_ctor_release(x_90, 3); - lean_ctor_release(x_90, 4); - x_114 = x_90; +x_114 = lean_ctor_get(x_91, 4); +lean_inc(x_114); +if (lean_is_exclusive(x_91)) { + lean_ctor_release(x_91, 0); + lean_ctor_release(x_91, 1); + lean_ctor_release(x_91, 2); + lean_ctor_release(x_91, 3); + lean_ctor_release(x_91, 4); + x_115 = x_91; } else { - lean_dec_ref(x_90); - x_114 = lean_box(0); + lean_dec_ref(x_91); + x_115 = lean_box(0); } -if (lean_is_scalar(x_114)) { - x_115 = lean_alloc_ctor(0, 5, 0); +if (lean_is_scalar(x_115)) { + x_116 = lean_alloc_ctor(0, 5, 0); } else { - x_115 = x_114; + x_116 = x_115; } -lean_ctor_set(x_115, 0, x_110); -lean_ctor_set(x_115, 1, x_111); -lean_ctor_set(x_115, 2, x_37); -lean_ctor_set(x_115, 3, x_112); -lean_ctor_set(x_115, 4, x_113); -x_116 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_116, 0, x_105); -lean_ctor_set(x_116, 1, x_106); -lean_ctor_set(x_116, 2, x_115); -lean_ctor_set(x_116, 3, x_107); -lean_ctor_set(x_116, 4, x_108); -lean_ctor_set(x_116, 5, x_109); -lean_ctor_set(x_39, 0, x_116); +lean_ctor_set(x_116, 0, x_111); +lean_ctor_set(x_116, 1, x_112); +lean_ctor_set(x_116, 2, x_38); +lean_ctor_set(x_116, 3, x_113); +lean_ctor_set(x_116, 4, x_114); +x_117 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_117, 0, x_106); +lean_ctor_set(x_117, 1, x_107); +lean_ctor_set(x_117, 2, x_116); +lean_ctor_set(x_117, 3, x_108); +lean_ctor_set(x_117, 4, x_109); +lean_ctor_set(x_117, 5, x_110); +lean_ctor_set(x_40, 0, x_117); if (lean_is_scalar(x_9)) { - x_117 = lean_alloc_ctor(0, 2, 0); + x_118 = lean_alloc_ctor(0, 2, 0); } else { - x_117 = x_9; + x_118 = x_9; } -lean_ctor_set(x_117, 0, x_91); -lean_ctor_set(x_117, 1, x_39); -return x_117; +lean_ctor_set(x_118, 0, x_92); +lean_ctor_set(x_118, 1, x_40); +return x_118; } } else { -lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; -x_118 = lean_ctor_get(x_39, 1); -x_119 = lean_ctor_get(x_39, 2); -x_120 = lean_ctor_get(x_39, 3); -x_121 = lean_ctor_get(x_39, 4); -x_122 = lean_ctor_get(x_39, 5); +lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; +x_119 = lean_ctor_get(x_40, 1); +x_120 = lean_ctor_get(x_40, 2); +x_121 = lean_ctor_get(x_40, 3); +x_122 = lean_ctor_get(x_40, 4); +x_123 = lean_ctor_get(x_40, 5); +lean_inc(x_123); lean_inc(x_122); lean_inc(x_121); lean_inc(x_120); lean_inc(x_119); -lean_inc(x_118); -lean_dec(x_39); -x_123 = lean_ctor_get(x_89, 0); -lean_inc(x_123); -x_124 = lean_ctor_get(x_89, 1); +lean_dec(x_40); +x_124 = lean_ctor_get(x_90, 0); lean_inc(x_124); -x_125 = lean_ctor_get(x_89, 3); +x_125 = lean_ctor_get(x_90, 1); lean_inc(x_125); -x_126 = lean_ctor_get(x_89, 4); +x_126 = lean_ctor_get(x_90, 3); lean_inc(x_126); -x_127 = lean_ctor_get(x_89, 5); +x_127 = lean_ctor_get(x_90, 4); lean_inc(x_127); -if (lean_is_exclusive(x_89)) { - lean_ctor_release(x_89, 0); - lean_ctor_release(x_89, 1); - lean_ctor_release(x_89, 2); - lean_ctor_release(x_89, 3); - lean_ctor_release(x_89, 4); - lean_ctor_release(x_89, 5); - x_128 = x_89; -} else { - lean_dec_ref(x_89); - x_128 = lean_box(0); -} -x_129 = lean_ctor_get(x_90, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_90, 1); -lean_inc(x_130); -x_131 = lean_ctor_get(x_90, 3); -lean_inc(x_131); -x_132 = lean_ctor_get(x_90, 4); -lean_inc(x_132); +x_128 = lean_ctor_get(x_90, 5); +lean_inc(x_128); if (lean_is_exclusive(x_90)) { lean_ctor_release(x_90, 0); lean_ctor_release(x_90, 1); lean_ctor_release(x_90, 2); lean_ctor_release(x_90, 3); lean_ctor_release(x_90, 4); - x_133 = x_90; + lean_ctor_release(x_90, 5); + x_129 = x_90; } else { lean_dec_ref(x_90); - x_133 = lean_box(0); + x_129 = lean_box(0); } -if (lean_is_scalar(x_133)) { - x_134 = lean_alloc_ctor(0, 5, 0); +x_130 = lean_ctor_get(x_91, 0); +lean_inc(x_130); +x_131 = lean_ctor_get(x_91, 1); +lean_inc(x_131); +x_132 = lean_ctor_get(x_91, 3); +lean_inc(x_132); +x_133 = lean_ctor_get(x_91, 4); +lean_inc(x_133); +if (lean_is_exclusive(x_91)) { + lean_ctor_release(x_91, 0); + lean_ctor_release(x_91, 1); + lean_ctor_release(x_91, 2); + lean_ctor_release(x_91, 3); + lean_ctor_release(x_91, 4); + x_134 = x_91; } else { - x_134 = x_133; + lean_dec_ref(x_91); + x_134 = lean_box(0); } -lean_ctor_set(x_134, 0, x_129); -lean_ctor_set(x_134, 1, x_130); -lean_ctor_set(x_134, 2, x_37); -lean_ctor_set(x_134, 3, x_131); -lean_ctor_set(x_134, 4, x_132); -if (lean_is_scalar(x_128)) { - x_135 = lean_alloc_ctor(0, 6, 0); +if (lean_is_scalar(x_134)) { + x_135 = lean_alloc_ctor(0, 5, 0); } else { - x_135 = x_128; + x_135 = x_134; } -lean_ctor_set(x_135, 0, x_123); -lean_ctor_set(x_135, 1, x_124); -lean_ctor_set(x_135, 2, x_134); -lean_ctor_set(x_135, 3, x_125); -lean_ctor_set(x_135, 4, x_126); -lean_ctor_set(x_135, 5, x_127); -x_136 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_136, 0, x_135); -lean_ctor_set(x_136, 1, x_118); -lean_ctor_set(x_136, 2, x_119); -lean_ctor_set(x_136, 3, x_120); -lean_ctor_set(x_136, 4, x_121); -lean_ctor_set(x_136, 5, x_122); +lean_ctor_set(x_135, 0, x_130); +lean_ctor_set(x_135, 1, x_131); +lean_ctor_set(x_135, 2, x_38); +lean_ctor_set(x_135, 3, x_132); +lean_ctor_set(x_135, 4, x_133); +if (lean_is_scalar(x_129)) { + x_136 = lean_alloc_ctor(0, 6, 0); +} else { + x_136 = x_129; +} +lean_ctor_set(x_136, 0, x_124); +lean_ctor_set(x_136, 1, x_125); +lean_ctor_set(x_136, 2, x_135); +lean_ctor_set(x_136, 3, x_126); +lean_ctor_set(x_136, 4, x_127); +lean_ctor_set(x_136, 5, x_128); +x_137 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_137, 0, x_136); +lean_ctor_set(x_137, 1, x_119); +lean_ctor_set(x_137, 2, x_120); +lean_ctor_set(x_137, 3, x_121); +lean_ctor_set(x_137, 4, x_122); +lean_ctor_set(x_137, 5, x_123); if (lean_is_scalar(x_9)) { - x_137 = lean_alloc_ctor(0, 2, 0); + x_138 = lean_alloc_ctor(0, 2, 0); } else { - x_137 = x_9; + x_138 = x_9; } -lean_ctor_set(x_137, 0, x_91); -lean_ctor_set(x_137, 1, x_136); -return x_137; +lean_ctor_set(x_138, 0, x_92); +lean_ctor_set(x_138, 1, x_137); +return x_138; } } } @@ -25684,350 +25977,348 @@ return x_137; } else { -uint8_t x_148; uint8_t x_149; uint8_t x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; uint8_t x_159; lean_object* x_160; lean_object* x_161; -x_148 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); -x_149 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); -x_150 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); -x_151 = lean_ctor_get(x_6, 0); -x_152 = lean_ctor_get(x_6, 2); -x_153 = lean_ctor_get(x_6, 3); -x_154 = lean_ctor_get(x_6, 4); -lean_inc(x_154); -lean_inc(x_153); +lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; uint8_t x_157; lean_object* x_158; lean_object* x_159; +x_149 = lean_ctor_get(x_6, 0); +x_150 = lean_ctor_get(x_6, 2); +x_151 = lean_ctor_get(x_6, 3); +x_152 = lean_ctor_get(x_6, 4); lean_inc(x_152); lean_inc(x_151); +lean_inc(x_150); +lean_inc(x_149); lean_dec(x_6); -x_155 = lean_ctor_get(x_7, 1); -lean_inc(x_155); -x_156 = lean_ctor_get(x_7, 4); -lean_inc(x_156); -x_157 = lean_array_get_size(x_152); -x_158 = lean_array_get_size(x_156); -x_159 = lean_nat_dec_eq(x_157, x_158); -lean_dec(x_158); -lean_dec(x_157); -lean_inc(x_156); -x_160 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_160, 0, x_151); -lean_ctor_set(x_160, 1, x_155); -lean_ctor_set(x_160, 2, x_156); -lean_ctor_set(x_160, 3, x_153); -lean_ctor_set(x_160, 4, x_154); -x_161 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_161, 0, x_160); -lean_ctor_set(x_161, 1, x_10); -lean_ctor_set(x_161, 2, x_11); -lean_ctor_set(x_161, 3, x_12); -lean_ctor_set(x_161, 4, x_13); -lean_ctor_set(x_161, 5, x_14); -lean_ctor_set(x_161, 6, x_15); -lean_ctor_set(x_161, 7, x_16); -lean_ctor_set(x_161, 8, x_17); -lean_ctor_set(x_161, 9, x_18); -lean_ctor_set_uint8(x_161, sizeof(void*)*10, x_148); -lean_ctor_set_uint8(x_161, sizeof(void*)*10 + 1, x_149); -lean_ctor_set_uint8(x_161, sizeof(void*)*10 + 2, x_150); -if (x_159 == 0) -{ -lean_object* x_162; +x_153 = lean_ctor_get(x_7, 1); +lean_inc(x_153); +x_154 = lean_ctor_get(x_7, 4); +lean_inc(x_154); +x_155 = lean_array_get_size(x_150); +x_156 = lean_array_get_size(x_154); +x_157 = lean_nat_dec_eq(x_155, x_156); lean_dec(x_156); -lean_dec(x_152); +lean_dec(x_155); +lean_inc(x_154); +x_158 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_158, 0, x_149); +lean_ctor_set(x_158, 1, x_153); +lean_ctor_set(x_158, 2, x_154); +lean_ctor_set(x_158, 3, x_151); +lean_ctor_set(x_158, 4, x_152); +x_159 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_159, 0, x_158); +lean_ctor_set(x_159, 1, x_10); +lean_ctor_set(x_159, 2, x_11); +lean_ctor_set(x_159, 3, x_12); +lean_ctor_set(x_159, 4, x_13); +lean_ctor_set(x_159, 5, x_14); +lean_ctor_set(x_159, 6, x_15); +lean_ctor_set(x_159, 7, x_16); +lean_ctor_set(x_159, 8, x_17); +lean_ctor_set(x_159, 9, x_18); +lean_ctor_set(x_159, 10, x_22); +lean_ctor_set_uint8(x_159, sizeof(void*)*11, x_19); +lean_ctor_set_uint8(x_159, sizeof(void*)*11 + 1, x_20); +lean_ctor_set_uint8(x_159, sizeof(void*)*11 + 2, x_21); +if (x_157 == 0) +{ +lean_object* x_160; +lean_dec(x_154); +lean_dec(x_150); lean_dec(x_9); lean_dec(x_7); lean_dec(x_3); -x_162 = lean_apply_2(x_2, x_161, x_8); -return x_162; +x_160 = lean_apply_2(x_2, x_159, x_8); +return x_160; } else { -lean_object* x_163; uint8_t x_164; -x_163 = lean_unsigned_to_nat(0u); -x_164 = l_Array_isEqvAux___main___at_Lean_Elab_Term_withMVarContext___spec__1(x_3, x_7, lean_box(0), x_152, x_156, x_163); -lean_dec(x_156); -lean_dec(x_152); +lean_object* x_161; uint8_t x_162; +x_161 = lean_unsigned_to_nat(0u); +x_162 = l_Array_isEqvAux___main___at_Lean_Elab_Term_withMVarContext___spec__1(x_3, x_7, lean_box(0), x_150, x_154, x_161); +lean_dec(x_154); +lean_dec(x_150); lean_dec(x_7); lean_dec(x_3); -if (x_164 == 0) +if (x_162 == 0) { -lean_object* x_165; +lean_object* x_163; lean_dec(x_9); -x_165 = lean_apply_2(x_2, x_161, x_8); -return x_165; +x_163 = lean_apply_2(x_2, x_159, x_8); +return x_163; } else { -lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_220; lean_object* x_221; lean_object* x_222; -x_166 = lean_ctor_get(x_8, 0); +lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_218; lean_object* x_219; lean_object* x_220; +x_164 = lean_ctor_get(x_8, 0); +lean_inc(x_164); +x_165 = lean_ctor_get(x_164, 2); +lean_inc(x_165); +lean_dec(x_164); +x_166 = lean_ctor_get(x_165, 2); lean_inc(x_166); -x_167 = lean_ctor_get(x_166, 2); -lean_inc(x_167); -lean_dec(x_166); -x_168 = lean_ctor_get(x_167, 2); -lean_inc(x_168); -lean_dec(x_167); -x_220 = l_Lean_Elab_Term_resetSynthInstanceCache___rarg(x_8); -x_221 = lean_ctor_get(x_220, 1); +lean_dec(x_165); +x_218 = l_Lean_Elab_Term_resetSynthInstanceCache___rarg(x_8); +x_219 = lean_ctor_get(x_218, 1); +lean_inc(x_219); +lean_dec(x_218); +x_220 = lean_apply_2(x_2, x_159, x_219); +if (lean_obj_tag(x_220) == 0) +{ +lean_object* x_221; lean_object* x_222; lean_object* x_223; +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_222 = lean_apply_2(x_2, x_161, x_221); -if (lean_obj_tag(x_222) == 0) +x_223 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_223, 0, x_221); +x_167 = x_223; +x_168 = x_222; +goto block_217; +} +else { -lean_object* x_223; lean_object* x_224; lean_object* x_225; -x_223 = lean_ctor_get(x_222, 0); -lean_inc(x_223); -x_224 = lean_ctor_get(x_222, 1); +lean_object* x_224; lean_object* x_225; lean_object* x_226; +x_224 = lean_ctor_get(x_220, 0); lean_inc(x_224); -lean_dec(x_222); -x_225 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_225, 0, x_223); -x_169 = x_225; -x_170 = x_224; -goto block_219; +x_225 = lean_ctor_get(x_220, 1); +lean_inc(x_225); +lean_dec(x_220); +x_226 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_226, 0, x_224); +x_167 = x_226; +x_168 = x_225; +goto block_217; } -else +block_217: { -lean_object* x_226; lean_object* x_227; lean_object* x_228; -x_226 = lean_ctor_get(x_222, 0); -lean_inc(x_226); -x_227 = lean_ctor_get(x_222, 1); -lean_inc(x_227); -lean_dec(x_222); -x_228 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_228, 0, x_226); -x_169 = x_228; -x_170 = x_227; -goto block_219; -} -block_219: +if (lean_obj_tag(x_167) == 0) { -if (lean_obj_tag(x_169) == 0) -{ -lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; -x_171 = lean_ctor_get(x_170, 0); +lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; +x_169 = lean_ctor_get(x_168, 0); +lean_inc(x_169); +x_170 = lean_ctor_get(x_169, 2); +lean_inc(x_170); +x_171 = lean_ctor_get(x_167, 0); lean_inc(x_171); -x_172 = lean_ctor_get(x_171, 2); +lean_dec(x_167); +x_172 = lean_ctor_get(x_168, 1); lean_inc(x_172); -x_173 = lean_ctor_get(x_169, 0); +x_173 = lean_ctor_get(x_168, 2); lean_inc(x_173); -lean_dec(x_169); -x_174 = lean_ctor_get(x_170, 1); +x_174 = lean_ctor_get(x_168, 3); lean_inc(x_174); -x_175 = lean_ctor_get(x_170, 2); +x_175 = lean_ctor_get(x_168, 4); lean_inc(x_175); -x_176 = lean_ctor_get(x_170, 3); +x_176 = lean_ctor_get(x_168, 5); lean_inc(x_176); -x_177 = lean_ctor_get(x_170, 4); -lean_inc(x_177); -x_178 = lean_ctor_get(x_170, 5); +if (lean_is_exclusive(x_168)) { + lean_ctor_release(x_168, 0); + lean_ctor_release(x_168, 1); + lean_ctor_release(x_168, 2); + lean_ctor_release(x_168, 3); + lean_ctor_release(x_168, 4); + lean_ctor_release(x_168, 5); + x_177 = x_168; +} else { + lean_dec_ref(x_168); + x_177 = lean_box(0); +} +x_178 = lean_ctor_get(x_169, 0); lean_inc(x_178); +x_179 = lean_ctor_get(x_169, 1); +lean_inc(x_179); +x_180 = lean_ctor_get(x_169, 3); +lean_inc(x_180); +x_181 = lean_ctor_get(x_169, 4); +lean_inc(x_181); +x_182 = lean_ctor_get(x_169, 5); +lean_inc(x_182); +if (lean_is_exclusive(x_169)) { + lean_ctor_release(x_169, 0); + lean_ctor_release(x_169, 1); + lean_ctor_release(x_169, 2); + lean_ctor_release(x_169, 3); + lean_ctor_release(x_169, 4); + lean_ctor_release(x_169, 5); + x_183 = x_169; +} else { + lean_dec_ref(x_169); + x_183 = lean_box(0); +} +x_184 = lean_ctor_get(x_170, 0); +lean_inc(x_184); +x_185 = lean_ctor_get(x_170, 1); +lean_inc(x_185); +x_186 = lean_ctor_get(x_170, 3); +lean_inc(x_186); +x_187 = lean_ctor_get(x_170, 4); +lean_inc(x_187); if (lean_is_exclusive(x_170)) { lean_ctor_release(x_170, 0); lean_ctor_release(x_170, 1); lean_ctor_release(x_170, 2); lean_ctor_release(x_170, 3); lean_ctor_release(x_170, 4); - lean_ctor_release(x_170, 5); - x_179 = x_170; + x_188 = x_170; } else { lean_dec_ref(x_170); - x_179 = lean_box(0); + x_188 = lean_box(0); } -x_180 = lean_ctor_get(x_171, 0); -lean_inc(x_180); -x_181 = lean_ctor_get(x_171, 1); -lean_inc(x_181); -x_182 = lean_ctor_get(x_171, 3); -lean_inc(x_182); -x_183 = lean_ctor_get(x_171, 4); -lean_inc(x_183); -x_184 = lean_ctor_get(x_171, 5); -lean_inc(x_184); -if (lean_is_exclusive(x_171)) { - lean_ctor_release(x_171, 0); - lean_ctor_release(x_171, 1); - lean_ctor_release(x_171, 2); - lean_ctor_release(x_171, 3); - lean_ctor_release(x_171, 4); - lean_ctor_release(x_171, 5); - x_185 = x_171; +if (lean_is_scalar(x_188)) { + x_189 = lean_alloc_ctor(0, 5, 0); } else { - lean_dec_ref(x_171); - x_185 = lean_box(0); + x_189 = x_188; } -x_186 = lean_ctor_get(x_172, 0); -lean_inc(x_186); -x_187 = lean_ctor_get(x_172, 1); -lean_inc(x_187); -x_188 = lean_ctor_get(x_172, 3); -lean_inc(x_188); -x_189 = lean_ctor_get(x_172, 4); -lean_inc(x_189); -if (lean_is_exclusive(x_172)) { - lean_ctor_release(x_172, 0); - lean_ctor_release(x_172, 1); - lean_ctor_release(x_172, 2); - lean_ctor_release(x_172, 3); - lean_ctor_release(x_172, 4); - x_190 = x_172; +lean_ctor_set(x_189, 0, x_184); +lean_ctor_set(x_189, 1, x_185); +lean_ctor_set(x_189, 2, x_166); +lean_ctor_set(x_189, 3, x_186); +lean_ctor_set(x_189, 4, x_187); +if (lean_is_scalar(x_183)) { + x_190 = lean_alloc_ctor(0, 6, 0); } else { - lean_dec_ref(x_172); - x_190 = lean_box(0); + x_190 = x_183; } -if (lean_is_scalar(x_190)) { - x_191 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_190, 0, x_178); +lean_ctor_set(x_190, 1, x_179); +lean_ctor_set(x_190, 2, x_189); +lean_ctor_set(x_190, 3, x_180); +lean_ctor_set(x_190, 4, x_181); +lean_ctor_set(x_190, 5, x_182); +if (lean_is_scalar(x_177)) { + x_191 = lean_alloc_ctor(0, 6, 0); } else { - x_191 = x_190; + x_191 = x_177; } -lean_ctor_set(x_191, 0, x_186); -lean_ctor_set(x_191, 1, x_187); -lean_ctor_set(x_191, 2, x_168); -lean_ctor_set(x_191, 3, x_188); -lean_ctor_set(x_191, 4, x_189); -if (lean_is_scalar(x_185)) { - x_192 = lean_alloc_ctor(0, 6, 0); -} else { - x_192 = x_185; -} -lean_ctor_set(x_192, 0, x_180); -lean_ctor_set(x_192, 1, x_181); -lean_ctor_set(x_192, 2, x_191); -lean_ctor_set(x_192, 3, x_182); -lean_ctor_set(x_192, 4, x_183); -lean_ctor_set(x_192, 5, x_184); -if (lean_is_scalar(x_179)) { - x_193 = lean_alloc_ctor(0, 6, 0); -} else { - x_193 = x_179; -} -lean_ctor_set(x_193, 0, x_192); -lean_ctor_set(x_193, 1, x_174); -lean_ctor_set(x_193, 2, x_175); -lean_ctor_set(x_193, 3, x_176); -lean_ctor_set(x_193, 4, x_177); -lean_ctor_set(x_193, 5, x_178); +lean_ctor_set(x_191, 0, x_190); +lean_ctor_set(x_191, 1, x_172); +lean_ctor_set(x_191, 2, x_173); +lean_ctor_set(x_191, 3, x_174); +lean_ctor_set(x_191, 4, x_175); +lean_ctor_set(x_191, 5, x_176); if (lean_is_scalar(x_9)) { - x_194 = lean_alloc_ctor(1, 2, 0); + x_192 = lean_alloc_ctor(1, 2, 0); } else { - x_194 = x_9; - lean_ctor_set_tag(x_194, 1); + x_192 = x_9; + lean_ctor_set_tag(x_192, 1); } -lean_ctor_set(x_194, 0, x_173); -lean_ctor_set(x_194, 1, x_193); -return x_194; +lean_ctor_set(x_192, 0, x_171); +lean_ctor_set(x_192, 1, x_191); +return x_192; } else { -lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; -x_195 = lean_ctor_get(x_170, 0); +lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; +x_193 = lean_ctor_get(x_168, 0); +lean_inc(x_193); +x_194 = lean_ctor_get(x_193, 2); +lean_inc(x_194); +x_195 = lean_ctor_get(x_167, 0); lean_inc(x_195); -x_196 = lean_ctor_get(x_195, 2); +lean_dec(x_167); +x_196 = lean_ctor_get(x_168, 1); lean_inc(x_196); -x_197 = lean_ctor_get(x_169, 0); +x_197 = lean_ctor_get(x_168, 2); lean_inc(x_197); -lean_dec(x_169); -x_198 = lean_ctor_get(x_170, 1); +x_198 = lean_ctor_get(x_168, 3); lean_inc(x_198); -x_199 = lean_ctor_get(x_170, 2); +x_199 = lean_ctor_get(x_168, 4); lean_inc(x_199); -x_200 = lean_ctor_get(x_170, 3); +x_200 = lean_ctor_get(x_168, 5); lean_inc(x_200); -x_201 = lean_ctor_get(x_170, 4); -lean_inc(x_201); -x_202 = lean_ctor_get(x_170, 5); +if (lean_is_exclusive(x_168)) { + lean_ctor_release(x_168, 0); + lean_ctor_release(x_168, 1); + lean_ctor_release(x_168, 2); + lean_ctor_release(x_168, 3); + lean_ctor_release(x_168, 4); + lean_ctor_release(x_168, 5); + x_201 = x_168; +} else { + lean_dec_ref(x_168); + x_201 = lean_box(0); +} +x_202 = lean_ctor_get(x_193, 0); lean_inc(x_202); -if (lean_is_exclusive(x_170)) { - lean_ctor_release(x_170, 0); - lean_ctor_release(x_170, 1); - lean_ctor_release(x_170, 2); - lean_ctor_release(x_170, 3); - lean_ctor_release(x_170, 4); - lean_ctor_release(x_170, 5); - x_203 = x_170; -} else { - lean_dec_ref(x_170); - x_203 = lean_box(0); -} -x_204 = lean_ctor_get(x_195, 0); +x_203 = lean_ctor_get(x_193, 1); +lean_inc(x_203); +x_204 = lean_ctor_get(x_193, 3); lean_inc(x_204); -x_205 = lean_ctor_get(x_195, 1); +x_205 = lean_ctor_get(x_193, 4); lean_inc(x_205); -x_206 = lean_ctor_get(x_195, 3); +x_206 = lean_ctor_get(x_193, 5); lean_inc(x_206); -x_207 = lean_ctor_get(x_195, 4); -lean_inc(x_207); -x_208 = lean_ctor_get(x_195, 5); +if (lean_is_exclusive(x_193)) { + lean_ctor_release(x_193, 0); + lean_ctor_release(x_193, 1); + lean_ctor_release(x_193, 2); + lean_ctor_release(x_193, 3); + lean_ctor_release(x_193, 4); + lean_ctor_release(x_193, 5); + x_207 = x_193; +} else { + lean_dec_ref(x_193); + x_207 = lean_box(0); +} +x_208 = lean_ctor_get(x_194, 0); lean_inc(x_208); -if (lean_is_exclusive(x_195)) { - lean_ctor_release(x_195, 0); - lean_ctor_release(x_195, 1); - lean_ctor_release(x_195, 2); - lean_ctor_release(x_195, 3); - lean_ctor_release(x_195, 4); - lean_ctor_release(x_195, 5); - x_209 = x_195; -} else { - lean_dec_ref(x_195); - x_209 = lean_box(0); -} -x_210 = lean_ctor_get(x_196, 0); +x_209 = lean_ctor_get(x_194, 1); +lean_inc(x_209); +x_210 = lean_ctor_get(x_194, 3); lean_inc(x_210); -x_211 = lean_ctor_get(x_196, 1); +x_211 = lean_ctor_get(x_194, 4); lean_inc(x_211); -x_212 = lean_ctor_get(x_196, 3); -lean_inc(x_212); -x_213 = lean_ctor_get(x_196, 4); -lean_inc(x_213); -if (lean_is_exclusive(x_196)) { - lean_ctor_release(x_196, 0); - lean_ctor_release(x_196, 1); - lean_ctor_release(x_196, 2); - lean_ctor_release(x_196, 3); - lean_ctor_release(x_196, 4); - x_214 = x_196; +if (lean_is_exclusive(x_194)) { + lean_ctor_release(x_194, 0); + lean_ctor_release(x_194, 1); + lean_ctor_release(x_194, 2); + lean_ctor_release(x_194, 3); + lean_ctor_release(x_194, 4); + x_212 = x_194; } else { - lean_dec_ref(x_196); - x_214 = lean_box(0); + lean_dec_ref(x_194); + x_212 = lean_box(0); } -if (lean_is_scalar(x_214)) { - x_215 = lean_alloc_ctor(0, 5, 0); +if (lean_is_scalar(x_212)) { + x_213 = lean_alloc_ctor(0, 5, 0); } else { - x_215 = x_214; + x_213 = x_212; } -lean_ctor_set(x_215, 0, x_210); -lean_ctor_set(x_215, 1, x_211); -lean_ctor_set(x_215, 2, x_168); -lean_ctor_set(x_215, 3, x_212); -lean_ctor_set(x_215, 4, x_213); -if (lean_is_scalar(x_209)) { - x_216 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_213, 0, x_208); +lean_ctor_set(x_213, 1, x_209); +lean_ctor_set(x_213, 2, x_166); +lean_ctor_set(x_213, 3, x_210); +lean_ctor_set(x_213, 4, x_211); +if (lean_is_scalar(x_207)) { + x_214 = lean_alloc_ctor(0, 6, 0); } else { - x_216 = x_209; + x_214 = x_207; } -lean_ctor_set(x_216, 0, x_204); -lean_ctor_set(x_216, 1, x_205); -lean_ctor_set(x_216, 2, x_215); -lean_ctor_set(x_216, 3, x_206); -lean_ctor_set(x_216, 4, x_207); -lean_ctor_set(x_216, 5, x_208); -if (lean_is_scalar(x_203)) { - x_217 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_214, 0, x_202); +lean_ctor_set(x_214, 1, x_203); +lean_ctor_set(x_214, 2, x_213); +lean_ctor_set(x_214, 3, x_204); +lean_ctor_set(x_214, 4, x_205); +lean_ctor_set(x_214, 5, x_206); +if (lean_is_scalar(x_201)) { + x_215 = lean_alloc_ctor(0, 6, 0); } else { - x_217 = x_203; + x_215 = x_201; } -lean_ctor_set(x_217, 0, x_216); -lean_ctor_set(x_217, 1, x_198); -lean_ctor_set(x_217, 2, x_199); -lean_ctor_set(x_217, 3, x_200); -lean_ctor_set(x_217, 4, x_201); -lean_ctor_set(x_217, 5, x_202); +lean_ctor_set(x_215, 0, x_214); +lean_ctor_set(x_215, 1, x_196); +lean_ctor_set(x_215, 2, x_197); +lean_ctor_set(x_215, 3, x_198); +lean_ctor_set(x_215, 4, x_199); +lean_ctor_set(x_215, 5, x_200); if (lean_is_scalar(x_9)) { - x_218 = lean_alloc_ctor(0, 2, 0); + x_216 = lean_alloc_ctor(0, 2, 0); } else { - x_218 = x_9; + x_216 = x_9; } -lean_ctor_set(x_218, 0, x_197); -lean_ctor_set(x_218, 1, x_217); -return x_218; +lean_ctor_set(x_216, 0, x_195); +lean_ctor_set(x_216, 1, x_215); +return x_216; } } } @@ -26065,114 +26356,112 @@ lean_dec(x_1); return x_5; } } -lean_object* l_Lean_Elab_Term_mkInstMVar(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Term_mkInstMVar(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; uint8_t x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_5 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_5, 0, x_2); -x_6 = 1; -x_7 = lean_box(0); -lean_inc(x_3); -x_8 = l_Lean_Elab_Term_mkFreshExprMVar(x_1, x_5, x_6, x_7, x_3, x_4); -x_9 = lean_ctor_get(x_8, 0); +lean_object* x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_4 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_4, 0, x_1); +x_5 = 1; +x_6 = lean_box(0); +lean_inc(x_2); +x_7 = l_Lean_Elab_Term_mkFreshExprMVar(x_4, x_5, x_6, x_2, x_3); +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_7, 1); lean_inc(x_9); -x_10 = lean_ctor_get(x_8, 1); +lean_dec(x_7); +x_10 = l_Lean_Expr_mvarId_x21(x_8); +lean_inc(x_2); lean_inc(x_10); +x_11 = l_Lean_Elab_Term_synthesizeInstMVarCore(x_10, x_2, x_9); +if (lean_obj_tag(x_11) == 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); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_14 = lean_ctor_get(x_11, 1); +lean_inc(x_14); +lean_dec(x_11); +x_15 = lean_box(0); +x_16 = l_Lean_Elab_Term_registerSyntheticMVar(x_10, x_15, x_2, x_14); +lean_dec(x_2); +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +lean_object* x_18; +x_18 = lean_ctor_get(x_16, 0); +lean_dec(x_18); +lean_ctor_set(x_16, 0, x_8); +return x_16; +} +else +{ +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_16, 1); +lean_inc(x_19); +lean_dec(x_16); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_8); +lean_ctor_set(x_20, 1, x_19); +return x_20; +} +} +else +{ +uint8_t x_21; +lean_dec(x_10); +lean_dec(x_2); +x_21 = !lean_is_exclusive(x_11); +if (x_21 == 0) +{ +lean_object* x_22; +x_22 = lean_ctor_get(x_11, 0); +lean_dec(x_22); +lean_ctor_set(x_11, 0, x_8); +return x_11; +} +else +{ +lean_object* x_23; lean_object* x_24; +x_23 = lean_ctor_get(x_11, 1); +lean_inc(x_23); +lean_dec(x_11); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_8); +lean_ctor_set(x_24, 1, x_23); +return x_24; +} +} +} +else +{ +uint8_t x_25; +lean_dec(x_10); lean_dec(x_8); -x_11 = l_Lean_Expr_mvarId_x21(x_9); -lean_inc(x_3); -lean_inc(x_11); -x_12 = l_Lean_Elab_Term_synthesizeInstMVarCore(x_1, x_11, x_3, x_10); -if (lean_obj_tag(x_12) == 0) +lean_dec(x_2); +x_25 = !lean_is_exclusive(x_11); +if (x_25 == 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; uint8_t x_18; -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_Elab_Term_registerSyntheticMVar(x_1, x_11, x_16, x_3, x_15); -lean_dec(x_3); -x_18 = !lean_is_exclusive(x_17); -if (x_18 == 0) -{ -lean_object* x_19; -x_19 = lean_ctor_get(x_17, 0); -lean_dec(x_19); -lean_ctor_set(x_17, 0, x_9); -return x_17; +return x_11; } else { -lean_object* x_20; lean_object* x_21; -x_20 = lean_ctor_get(x_17, 1); -lean_inc(x_20); -lean_dec(x_17); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_9); -lean_ctor_set(x_21, 1, x_20); -return x_21; -} -} -else -{ -uint8_t x_22; -lean_dec(x_11); -lean_dec(x_3); -lean_dec(x_1); -x_22 = !lean_is_exclusive(x_12); -if (x_22 == 0) -{ -lean_object* x_23; -x_23 = lean_ctor_get(x_12, 0); -lean_dec(x_23); -lean_ctor_set(x_12, 0, x_9); -return x_12; -} -else -{ -lean_object* x_24; lean_object* x_25; -x_24 = lean_ctor_get(x_12, 1); -lean_inc(x_24); -lean_dec(x_12); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_9); -lean_ctor_set(x_25, 1, x_24); -return x_25; -} -} -} -else -{ -uint8_t x_26; -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_3); -lean_dec(x_1); -x_26 = !lean_is_exclusive(x_12); -if (x_26 == 0) -{ -return x_12; -} -else -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_12, 0); -x_28 = lean_ctor_get(x_12, 1); -lean_inc(x_28); +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_11, 0); +x_27 = lean_ctor_get(x_11, 1); lean_inc(x_27); -lean_dec(x_12); -x_29 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_29, 0, x_27); -lean_ctor_set(x_29, 1, x_28); -return x_29; +lean_inc(x_26); +lean_dec(x_11); +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; } } } @@ -26245,109 +26534,112 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l___private_Lean_Elab_Term_15__tryCoeSort(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_Term_15__tryCoeSort(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -uint8_t x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_6 = 0; -x_7 = lean_box(0); -lean_inc(x_4); -x_8 = l_Lean_Elab_Term_mkFreshTypeMVar(x_1, x_6, x_7, x_4, x_5); -x_9 = lean_ctor_get(x_8, 0); +uint8_t x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_5 = 0; +x_6 = lean_box(0); +lean_inc(x_3); +x_7 = l_Lean_Elab_Term_mkFreshTypeMVar(x_5, x_6, x_3, x_4); +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_7, 1); lean_inc(x_9); -x_10 = lean_ctor_get(x_8, 1); -lean_inc(x_10); -lean_dec(x_8); -lean_inc(x_4); -lean_inc(x_2); -x_11 = l_Lean_Elab_Term_getLevel(x_1, x_2, x_4, x_10); -if (lean_obj_tag(x_11) == 0) +lean_dec(x_7); +lean_inc(x_3); +lean_inc(x_1); +x_10 = l_Lean_Elab_Term_getLevel(x_1, x_3, x_9); +if (lean_obj_tag(x_10) == 0) { -lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_12 = lean_ctor_get(x_11, 0); +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); lean_inc(x_12); -x_13 = lean_ctor_get(x_11, 1); -lean_inc(x_13); -lean_dec(x_11); -lean_inc(x_4); -lean_inc(x_9); -x_14 = l_Lean_Elab_Term_getLevel(x_1, x_9, x_4, x_13); -if (lean_obj_tag(x_14) == 0) +lean_dec(x_10); +lean_inc(x_3); +lean_inc(x_8); +x_13 = l_Lean_Elab_Term_getLevel(x_8, x_3, x_12); +if (lean_obj_tag(x_13) == 0) { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; 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; lean_object* x_54; lean_object* x_55; uint8_t x_56; uint8_t x_57; uint8_t x_58; lean_object* x_59; lean_object* x_60; -x_15 = lean_ctor_get(x_14, 0); +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; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; 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; lean_object* x_54; uint8_t x_55; uint8_t x_56; lean_object* x_57; uint8_t x_58; lean_object* x_59; lean_object* x_60; +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); lean_inc(x_15); -x_16 = lean_ctor_get(x_14, 1); -lean_inc(x_16); -lean_dec(x_14); -x_17 = lean_box(0); +lean_dec(x_13); +x_16 = lean_box(0); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_14); +lean_ctor_set(x_17, 1, x_16); x_18 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_18, 0, x_15); +lean_ctor_set(x_18, 0, x_11); lean_ctor_set(x_18, 1, x_17); -x_19 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_19, 0, x_12); -lean_ctor_set(x_19, 1, x_18); -x_20 = l___private_Lean_Elab_Term_15__tryCoeSort___closed__2; -lean_inc(x_19); -x_21 = l_Lean_mkConst(x_20, x_19); -x_22 = l_Lean_mkAppStx___closed__9; -lean_inc(x_2); -x_23 = lean_array_push(x_22, x_2); -lean_inc(x_9); -x_24 = lean_array_push(x_23, x_9); -x_25 = lean_unsigned_to_nat(0u); -x_26 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_24, x_24, x_25, x_21); -lean_dec(x_24); -x_27 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_27, 0, x_26); -x_28 = 1; -lean_inc(x_4); -x_29 = l_Lean_Elab_Term_mkFreshExprMVar(x_1, x_27, x_28, x_7, x_4, x_16); -x_30 = lean_ctor_get(x_29, 0); +x_19 = l___private_Lean_Elab_Term_15__tryCoeSort___closed__2; +lean_inc(x_18); +x_20 = l_Lean_mkConst(x_19, x_18); +x_21 = l_Lean_mkAppStx___closed__9; +lean_inc(x_1); +x_22 = lean_array_push(x_21, x_1); +lean_inc(x_8); +x_23 = lean_array_push(x_22, x_8); +x_24 = lean_unsigned_to_nat(0u); +x_25 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_23, x_23, x_24, x_20); +lean_dec(x_23); +x_26 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_26, 0, x_25); +x_27 = 1; +lean_inc(x_3); +x_28 = l_Lean_Elab_Term_mkFreshExprMVar(x_26, x_27, x_6, x_3, x_15); +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_28, 1); lean_inc(x_30); -x_31 = lean_ctor_get(x_29, 1); -lean_inc(x_31); -lean_dec(x_29); -x_32 = l_Lean_Expr_mvarId_x21(x_30); -x_46 = lean_ctor_get(x_4, 0); +lean_dec(x_28); +x_31 = l_Lean_Expr_mvarId_x21(x_29); +x_45 = lean_ctor_get(x_3, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_3, 1); lean_inc(x_46); -x_47 = lean_ctor_get(x_4, 1); +x_47 = lean_ctor_get(x_3, 2); lean_inc(x_47); -x_48 = lean_ctor_get(x_4, 2); +x_48 = lean_ctor_get(x_3, 3); lean_inc(x_48); -x_49 = lean_ctor_get(x_4, 3); +x_49 = lean_ctor_get(x_3, 4); lean_inc(x_49); -x_50 = lean_ctor_get(x_4, 4); +x_50 = lean_ctor_get(x_3, 5); lean_inc(x_50); -x_51 = lean_ctor_get(x_4, 5); +x_51 = lean_ctor_get(x_3, 6); lean_inc(x_51); -x_52 = lean_ctor_get(x_4, 6); +x_52 = lean_ctor_get(x_3, 7); lean_inc(x_52); -x_53 = lean_ctor_get(x_4, 7); +x_53 = lean_ctor_get(x_3, 8); lean_inc(x_53); -x_54 = lean_ctor_get(x_4, 8); +x_54 = lean_ctor_get(x_3, 9); lean_inc(x_54); -x_55 = lean_ctor_get(x_4, 9); -lean_inc(x_55); -x_56 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); -x_57 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); +x_55 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_56 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_57 = lean_ctor_get(x_3, 10); +lean_inc(x_57); x_58 = 0; -x_59 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_59, 0, x_46); -lean_ctor_set(x_59, 1, x_47); -lean_ctor_set(x_59, 2, x_48); -lean_ctor_set(x_59, 3, x_49); -lean_ctor_set(x_59, 4, x_50); -lean_ctor_set(x_59, 5, x_51); -lean_ctor_set(x_59, 6, x_52); -lean_ctor_set(x_59, 7, x_53); -lean_ctor_set(x_59, 8, x_54); -lean_ctor_set(x_59, 9, x_55); -lean_ctor_set_uint8(x_59, sizeof(void*)*10, x_56); -lean_ctor_set_uint8(x_59, sizeof(void*)*10 + 1, x_57); -lean_ctor_set_uint8(x_59, sizeof(void*)*10 + 2, x_58); +x_59 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_59, 0, x_45); +lean_ctor_set(x_59, 1, x_46); +lean_ctor_set(x_59, 2, x_47); +lean_ctor_set(x_59, 3, x_48); +lean_ctor_set(x_59, 4, x_49); +lean_ctor_set(x_59, 5, x_50); +lean_ctor_set(x_59, 6, x_51); +lean_ctor_set(x_59, 7, x_52); +lean_ctor_set(x_59, 8, x_53); +lean_ctor_set(x_59, 9, x_54); +lean_ctor_set(x_59, 10, x_57); +lean_ctor_set_uint8(x_59, sizeof(void*)*11, x_55); +lean_ctor_set_uint8(x_59, sizeof(void*)*11 + 1, x_56); +lean_ctor_set_uint8(x_59, sizeof(void*)*11 + 2, x_58); lean_inc(x_59); -x_60 = l_Lean_Elab_Term_synthesizeInstMVarCore(x_1, x_32, x_59, x_31); +x_60 = l_Lean_Elab_Term_synthesizeInstMVarCore(x_31, x_59, x_30); if (lean_obj_tag(x_60) == 0) { lean_object* x_61; uint8_t x_62; @@ -26358,30 +26650,30 @@ lean_dec(x_61); if (x_62 == 0) { lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -lean_dec(x_30); -lean_dec(x_19); -lean_dec(x_9); -lean_dec(x_3); +lean_dec(x_29); +lean_dec(x_18); +lean_dec(x_8); lean_dec(x_2); +lean_dec(x_1); x_63 = lean_ctor_get(x_60, 1); lean_inc(x_63); lean_dec(x_60); x_64 = l___private_Lean_Elab_Term_15__tryCoeSort___closed__4; -x_65 = l_Lean_Elab_Term_throwError___rarg(x_1, x_64, x_59, x_63); +x_65 = l_Lean_Elab_Term_throwError___rarg(x_64, x_59, x_63); x_66 = lean_ctor_get(x_65, 0); lean_inc(x_66); x_67 = lean_ctor_get(x_65, 1); lean_inc(x_67); lean_dec(x_65); -x_33 = x_66; -x_34 = x_67; -goto block_45; +x_32 = x_66; +x_33 = x_67; +goto block_44; } else { uint8_t x_68; lean_dec(x_59); -lean_dec(x_4); +lean_dec(x_3); x_68 = !lean_is_exclusive(x_60); if (x_68 == 0) { @@ -26389,13 +26681,13 @@ lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean x_69 = lean_ctor_get(x_60, 0); lean_dec(x_69); x_70 = l___private_Lean_Elab_Term_15__tryCoeSort___closed__7; -x_71 = l_Lean_mkConst(x_70, x_19); +x_71 = l_Lean_mkConst(x_70, x_18); x_72 = l_Std_PersistentHashMap_mkCollisionNode___rarg___closed__1; -x_73 = lean_array_push(x_72, x_2); -x_74 = lean_array_push(x_73, x_9); -x_75 = lean_array_push(x_74, x_3); -x_76 = lean_array_push(x_75, x_30); -x_77 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_76, x_76, x_25, x_71); +x_73 = lean_array_push(x_72, x_1); +x_74 = lean_array_push(x_73, x_8); +x_75 = lean_array_push(x_74, x_2); +x_76 = lean_array_push(x_75, x_29); +x_77 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_76, x_76, x_24, x_71); lean_dec(x_76); lean_ctor_set(x_60, 0, x_77); return x_60; @@ -26407,13 +26699,13 @@ x_78 = lean_ctor_get(x_60, 1); lean_inc(x_78); lean_dec(x_60); x_79 = l___private_Lean_Elab_Term_15__tryCoeSort___closed__7; -x_80 = l_Lean_mkConst(x_79, x_19); +x_80 = l_Lean_mkConst(x_79, x_18); x_81 = l_Std_PersistentHashMap_mkCollisionNode___rarg___closed__1; -x_82 = lean_array_push(x_81, x_2); -x_83 = lean_array_push(x_82, x_9); -x_84 = lean_array_push(x_83, x_3); -x_85 = lean_array_push(x_84, x_30); -x_86 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_85, x_85, x_25, x_80); +x_82 = lean_array_push(x_81, x_1); +x_83 = lean_array_push(x_82, x_8); +x_84 = lean_array_push(x_83, x_2); +x_85 = lean_array_push(x_84, x_29); +x_86 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_85, x_85, x_24, x_80); lean_dec(x_85); x_87 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_87, 0, x_86); @@ -26426,82 +26718,82 @@ else { lean_object* x_88; lean_object* x_89; lean_dec(x_59); -lean_dec(x_30); -lean_dec(x_19); -lean_dec(x_9); -lean_dec(x_3); +lean_dec(x_29); +lean_dec(x_18); +lean_dec(x_8); lean_dec(x_2); +lean_dec(x_1); x_88 = lean_ctor_get(x_60, 0); lean_inc(x_88); x_89 = lean_ctor_get(x_60, 1); lean_inc(x_89); lean_dec(x_60); -x_33 = x_88; -x_34 = x_89; -goto block_45; +x_32 = x_88; +x_33 = x_89; +goto block_44; } -block_45: +block_44: { -if (lean_obj_tag(x_33) == 0) +if (lean_obj_tag(x_32) == 0) { -lean_object* x_35; -x_35 = lean_ctor_get(x_33, 0); +lean_object* x_34; +x_34 = lean_ctor_get(x_32, 0); +lean_inc(x_34); +lean_dec(x_32); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_35 = lean_ctor_get(x_34, 0); lean_inc(x_35); -lean_dec(x_33); -if (lean_obj_tag(x_35) == 0) -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_36 = lean_ctor_get(x_35, 0); +lean_dec(x_34); +x_36 = lean_ctor_get(x_35, 4); lean_inc(x_36); lean_dec(x_35); -x_37 = lean_ctor_get(x_36, 4); -lean_inc(x_37); -lean_dec(x_36); -x_38 = l___private_Lean_Elab_Term_15__tryCoeSort___closed__5; -x_39 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_39, 0, x_38); -lean_ctor_set(x_39, 1, x_37); -x_40 = l_Lean_Elab_Term_throwError___rarg(x_1, x_39, x_4, x_34); -return x_40; +x_37 = l___private_Lean_Elab_Term_15__tryCoeSort___closed__5; +x_38 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_36); +x_39 = l_Lean_Elab_Term_throwError___rarg(x_38, x_3, x_33); +return x_39; } else { -lean_object* x_41; lean_object* x_42; -x_41 = l___private_Lean_Elab_Term_15__tryCoeSort___closed__4; -x_42 = l_Lean_Elab_Term_throwError___rarg(x_1, x_41, x_4, x_34); -return x_42; +lean_object* x_40; lean_object* x_41; +x_40 = l___private_Lean_Elab_Term_15__tryCoeSort___closed__4; +x_41 = l_Lean_Elab_Term_throwError___rarg(x_40, x_3, x_33); +return x_41; } } else { -lean_object* x_43; lean_object* x_44; -x_43 = l___private_Lean_Elab_Term_15__tryCoeSort___closed__4; -x_44 = l_Lean_Elab_Term_throwError___rarg(x_1, x_43, x_4, x_34); -return x_44; +lean_object* x_42; lean_object* x_43; +x_42 = l___private_Lean_Elab_Term_15__tryCoeSort___closed__4; +x_43 = l_Lean_Elab_Term_throwError___rarg(x_42, x_3, x_33); +return x_43; } } } else { uint8_t x_90; -lean_dec(x_12); -lean_dec(x_9); -lean_dec(x_4); +lean_dec(x_11); +lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); -x_90 = !lean_is_exclusive(x_14); +lean_dec(x_1); +x_90 = !lean_is_exclusive(x_13); if (x_90 == 0) { -return x_14; +return x_13; } else { lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_91 = lean_ctor_get(x_14, 0); -x_92 = lean_ctor_get(x_14, 1); +x_91 = lean_ctor_get(x_13, 0); +x_92 = lean_ctor_get(x_13, 1); lean_inc(x_92); lean_inc(x_91); -lean_dec(x_14); +lean_dec(x_13); x_93 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_93, 0, x_91); lean_ctor_set(x_93, 1, x_92); @@ -26512,23 +26804,23 @@ return x_93; else { uint8_t x_94; -lean_dec(x_9); -lean_dec(x_4); +lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); -x_94 = !lean_is_exclusive(x_11); +lean_dec(x_1); +x_94 = !lean_is_exclusive(x_10); if (x_94 == 0) { -return x_11; +return x_10; } else { lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_95 = lean_ctor_get(x_11, 0); -x_96 = lean_ctor_get(x_11, 1); +x_95 = lean_ctor_get(x_10, 0); +x_96 = lean_ctor_get(x_10, 1); lean_inc(x_96); lean_inc(x_95); -lean_dec(x_11); +lean_dec(x_10); x_97 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_97, 0, x_95); lean_ctor_set(x_97, 1, x_96); @@ -26537,210 +26829,192 @@ return x_97; } } } -lean_object* l___private_Lean_Elab_Term_15__tryCoeSort___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_Elab_Term_ensureType(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_6; -x_6 = l___private_Lean_Elab_Term_15__tryCoeSort(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_1); -return x_6; -} -} -lean_object* l_Lean_Elab_Term_ensureType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -lean_inc(x_3); +lean_object* x_4; lean_inc(x_2); -x_5 = l_Lean_Elab_Term_isType(x_1, x_2, x_3, x_4); -if (lean_obj_tag(x_5) == 0) +lean_inc(x_1); +x_4 = l_Lean_Elab_Term_isType(x_1, x_2, x_3); +if (lean_obj_tag(x_4) == 0) { -lean_object* x_6; uint8_t x_7; -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = lean_unbox(x_6); -lean_dec(x_6); -if (x_7 == 0) -{ -lean_object* x_8; lean_object* x_9; -x_8 = lean_ctor_get(x_5, 1); -lean_inc(x_8); +lean_object* x_5; uint8_t x_6; +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +x_6 = lean_unbox(x_5); lean_dec(x_5); -lean_inc(x_3); -lean_inc(x_2); -x_9 = l_Lean_Elab_Term_inferType(x_1, x_2, x_3, x_8); -if (lean_obj_tag(x_9) == 0) +if (x_6 == 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; -x_10 = lean_ctor_get(x_9, 0); +lean_object* x_7; lean_object* x_8; +x_7 = lean_ctor_get(x_4, 1); +lean_inc(x_7); +lean_dec(x_4); +lean_inc(x_2); +lean_inc(x_1); +x_8 = l_Lean_Elab_Term_inferType(x_1, x_2, x_7); +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; +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_8, 1); lean_inc(x_10); -x_11 = lean_ctor_get(x_9, 1); -lean_inc(x_11); -lean_dec(x_9); -lean_inc(x_3); -x_12 = l_Lean_Elab_Term_mkFreshLevelMVar(x_1, x_3, x_11); -x_13 = lean_ctor_get(x_12, 0); +lean_dec(x_8); +lean_inc(x_2); +x_11 = l_Lean_Elab_Term_mkFreshLevelMVar(x_2, x_10); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); -lean_inc(x_14); -lean_dec(x_12); -x_15 = l_Lean_mkSort(x_13); -lean_inc(x_3); -lean_inc(x_10); -x_16 = l_Lean_Elab_Term_isDefEq(x_1, x_10, x_15, x_3, x_14); -if (lean_obj_tag(x_16) == 0) +lean_dec(x_11); +x_14 = l_Lean_mkSort(x_12); +lean_inc(x_2); +lean_inc(x_9); +x_15 = l_Lean_Elab_Term_isDefEq(x_9, x_14, x_2, x_13); +if (lean_obj_tag(x_15) == 0) { -lean_object* x_17; uint8_t x_18; -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -x_18 = lean_unbox(x_17); -lean_dec(x_17); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; -x_19 = lean_ctor_get(x_16, 1); -lean_inc(x_19); +lean_object* x_16; uint8_t x_17; +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_unbox(x_16); lean_dec(x_16); -x_20 = l___private_Lean_Elab_Term_15__tryCoeSort(x_1, x_10, x_2, x_3, x_19); -return x_20; +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); +lean_dec(x_15); +x_19 = l___private_Lean_Elab_Term_15__tryCoeSort(x_9, x_1, x_2, x_18); +return x_19; } else { -uint8_t x_21; -lean_dec(x_10); -lean_dec(x_3); -x_21 = !lean_is_exclusive(x_16); -if (x_21 == 0) -{ -lean_object* x_22; -x_22 = lean_ctor_get(x_16, 0); -lean_dec(x_22); -lean_ctor_set(x_16, 0, x_2); -return x_16; -} -else -{ -lean_object* x_23; lean_object* x_24; -x_23 = lean_ctor_get(x_16, 1); -lean_inc(x_23); -lean_dec(x_16); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_2); -lean_ctor_set(x_24, 1, x_23); -return x_24; -} -} -} -else -{ -uint8_t x_25; -lean_dec(x_10); -lean_dec(x_3); -lean_dec(x_2); -x_25 = !lean_is_exclusive(x_16); -if (x_25 == 0) -{ -return x_16; -} -else -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_16, 0); -x_27 = lean_ctor_get(x_16, 1); -lean_inc(x_27); -lean_inc(x_26); -lean_dec(x_16); -x_28 = 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; -} -} -} -else -{ -uint8_t x_29; -lean_dec(x_3); -lean_dec(x_2); -x_29 = !lean_is_exclusive(x_9); -if (x_29 == 0) -{ -return x_9; -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_9, 0); -x_31 = lean_ctor_get(x_9, 1); -lean_inc(x_31); -lean_inc(x_30); +uint8_t x_20; lean_dec(x_9); -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_3); -x_33 = !lean_is_exclusive(x_5); -if (x_33 == 0) -{ -lean_object* x_34; -x_34 = lean_ctor_get(x_5, 0); -lean_dec(x_34); -lean_ctor_set(x_5, 0, x_2); -return x_5; -} -else -{ -lean_object* x_35; lean_object* x_36; -x_35 = lean_ctor_get(x_5, 1); -lean_inc(x_35); -lean_dec(x_5); -x_36 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_36, 0, x_2); -lean_ctor_set(x_36, 1, x_35); -return x_36; -} -} -} -else -{ -uint8_t x_37; -lean_dec(x_3); lean_dec(x_2); -x_37 = !lean_is_exclusive(x_5); -if (x_37 == 0) +x_20 = !lean_is_exclusive(x_15); +if (x_20 == 0) { -return x_5; +lean_object* x_21; +x_21 = lean_ctor_get(x_15, 0); +lean_dec(x_21); +lean_ctor_set(x_15, 0, x_1); +return x_15; } else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_5, 0); -x_39 = lean_ctor_get(x_5, 1); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_5); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -return x_40; +lean_object* x_22; lean_object* x_23; +x_22 = lean_ctor_get(x_15, 1); +lean_inc(x_22); +lean_dec(x_15); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_1); +lean_ctor_set(x_23, 1, x_22); +return x_23; } } } -} -lean_object* l_Lean_Elab_Term_ensureType___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: +else { -lean_object* x_5; -x_5 = l_Lean_Elab_Term_ensureType(x_1, x_2, x_3, x_4); +uint8_t x_24; +lean_dec(x_9); +lean_dec(x_2); lean_dec(x_1); -return x_5; +x_24 = !lean_is_exclusive(x_15); +if (x_24 == 0) +{ +return x_15; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_15, 0); +x_26 = lean_ctor_get(x_15, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_15); +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_2); +lean_dec(x_1); +x_28 = !lean_is_exclusive(x_8); +if (x_28 == 0) +{ +return x_8; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_8, 0); +x_30 = lean_ctor_get(x_8, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_8); +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; +} +} +} +else +{ +uint8_t x_32; +lean_dec(x_2); +x_32 = !lean_is_exclusive(x_4); +if (x_32 == 0) +{ +lean_object* x_33; +x_33 = lean_ctor_get(x_4, 0); +lean_dec(x_33); +lean_ctor_set(x_4, 0, x_1); +return x_4; +} +else +{ +lean_object* x_34; lean_object* x_35; +x_34 = lean_ctor_get(x_4, 1); +lean_inc(x_34); +lean_dec(x_4); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_1); +lean_ctor_set(x_35, 1, x_34); +return x_35; +} +} +} +else +{ +uint8_t x_36; +lean_dec(x_2); +lean_dec(x_1); +x_36 = !lean_is_exclusive(x_4); +if (x_36 == 0) +{ +return x_4; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_4, 0); +x_38 = lean_ctor_get(x_4, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_4); +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_37); +lean_ctor_set(x_39, 1, x_38); +return x_39; +} +} } } lean_object* l_Lean_Elab_Term_elabType(lean_object* x_1, lean_object* x_2, lean_object* x_3) { @@ -26748,7 +27022,7 @@ _start: { lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_inc(x_2); -x_4 = l_Lean_Elab_Term_mkFreshLevelMVar(x_1, x_2, x_3); +x_4 = l_Lean_Elab_Term_mkFreshLevelMVar(x_2, x_3); x_5 = lean_ctor_get(x_4, 0); lean_inc(x_5); x_6 = lean_ctor_get(x_4, 1); @@ -26760,238 +27034,287 @@ lean_ctor_set(x_8, 0, x_7); x_9 = 1; lean_inc(x_2); lean_inc(x_1); -x_10 = l_Lean_Elab_Term_elabTermAux___main(x_8, x_9, x_9, x_1, x_2, x_6); +x_10 = l_Lean_Elab_Term_elabTerm(x_1, x_8, x_9, x_2, x_6); if (lean_obj_tag(x_10) == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; +lean_object* x_11; lean_object* x_12; uint8_t x_13; 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_Elab_Term_ensureType(x_1, x_11, x_2, x_12); -lean_dec(x_1); -return x_13; +x_13 = !lean_is_exclusive(x_2); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_2, 10); +lean_dec(x_14); +lean_ctor_set(x_2, 10, x_1); +x_15 = l_Lean_Elab_Term_ensureType(x_11, x_2, x_12); +return x_15; } else { -uint8_t x_14; +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; uint8_t x_27; uint8_t x_28; lean_object* x_29; lean_object* x_30; +x_16 = lean_ctor_get(x_2, 0); +x_17 = lean_ctor_get(x_2, 1); +x_18 = lean_ctor_get(x_2, 2); +x_19 = lean_ctor_get(x_2, 3); +x_20 = lean_ctor_get(x_2, 4); +x_21 = lean_ctor_get(x_2, 5); +x_22 = lean_ctor_get(x_2, 6); +x_23 = lean_ctor_get(x_2, 7); +x_24 = lean_ctor_get(x_2, 8); +x_25 = lean_ctor_get(x_2, 9); +x_26 = lean_ctor_get_uint8(x_2, sizeof(void*)*11); +x_27 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 1); +x_28 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 2); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_2); +x_29 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_29, 0, x_16); +lean_ctor_set(x_29, 1, x_17); +lean_ctor_set(x_29, 2, x_18); +lean_ctor_set(x_29, 3, x_19); +lean_ctor_set(x_29, 4, x_20); +lean_ctor_set(x_29, 5, x_21); +lean_ctor_set(x_29, 6, x_22); +lean_ctor_set(x_29, 7, x_23); +lean_ctor_set(x_29, 8, x_24); +lean_ctor_set(x_29, 9, x_25); +lean_ctor_set(x_29, 10, x_1); +lean_ctor_set_uint8(x_29, sizeof(void*)*11, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*11 + 1, x_27); +lean_ctor_set_uint8(x_29, sizeof(void*)*11 + 2, x_28); +x_30 = l_Lean_Elab_Term_ensureType(x_11, x_29, x_12); +return x_30; +} +} +else +{ +uint8_t x_31; lean_dec(x_2); lean_dec(x_1); -x_14 = !lean_is_exclusive(x_10); -if (x_14 == 0) +x_31 = !lean_is_exclusive(x_10); +if (x_31 == 0) { return x_10; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_10, 0); -x_16 = lean_ctor_get(x_10, 1); -lean_inc(x_16); -lean_inc(x_15); +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_10, 0); +x_33 = lean_ctor_get(x_10, 1); +lean_inc(x_33); +lean_inc(x_32); lean_dec(x_10); -x_17 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_17, 0, x_15); -lean_ctor_set(x_17, 1, x_16); -return x_17; +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_Lean_Elab_Term_addDecl(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Term_addDecl(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_5 = l_Lean_Elab_Term_getEnv___rarg(x_4); -x_6 = lean_ctor_get(x_5, 0); +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_4 = l_Lean_Elab_Term_getEnv___rarg(x_3); +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_4, 1); lean_inc(x_6); -x_7 = lean_ctor_get(x_5, 1); -lean_inc(x_7); -lean_dec(x_5); -x_8 = lean_add_decl(x_6, x_2); -if (lean_obj_tag(x_8) == 0) +lean_dec(x_4); +x_7 = lean_add_decl(x_5, x_1); +if (lean_obj_tag(x_7) == 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; -x_9 = lean_ctor_get(x_8, 0); +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +lean_dec(x_7); +x_9 = l_Lean_Elab_Term_getOptions(x_2, x_6); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec(x_9); +x_12 = l_Lean_KernelException_toMessageData(x_8, x_10); +x_13 = l_Lean_Elab_Term_throwError___rarg(x_12, x_2, x_11); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_7, 0); +lean_inc(x_14); +lean_dec(x_7); +x_15 = l_Lean_Elab_Term_setEnv(x_14, x_2, x_6); +lean_dec(x_2); +return x_15; +} +} +} +lean_object* l_Lean_Elab_Term_addDecl___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Elab_Term_addDecl(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Lean_Elab_Term_compileDecl(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_4 = l_Lean_Elab_Term_getEnv___rarg(x_3); +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_4, 1); +lean_inc(x_6); +lean_dec(x_4); +x_7 = l_Lean_Elab_Term_getOptions(x_2, 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_compile_decl(x_5, x_8, x_1); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +lean_dec(x_10); +x_12 = l_Lean_KernelException_toMessageData(x_11, x_8); +x_13 = l_Lean_Elab_Term_throwError___rarg(x_12, x_2, x_9); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_dec(x_8); -x_10 = l_Lean_Elab_Term_getOptions(x_3, x_7); +x_14 = lean_ctor_get(x_10, 0); +lean_inc(x_14); +lean_dec(x_10); +x_15 = l_Lean_Elab_Term_setEnv(x_14, x_2, x_9); +lean_dec(x_2); +return x_15; +} +} +} +lean_object* l_Lean_Elab_Term_compileDecl___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Elab_Term_compileDecl(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Lean_Elab_Term_mkAuxDefinition(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_7 = l_Lean_Elab_Term_getEnv___rarg(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 = l_Lean_Elab_Term_getOptions(x_5, x_9); 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_KernelException_toMessageData(x_9, x_11); -x_14 = l_Lean_Elab_Term_throwError___rarg(x_1, x_13, x_3, x_12); -return x_14; -} -else -{ -lean_object* x_15; lean_object* x_16; -x_15 = lean_ctor_get(x_8, 0); +x_13 = l_Lean_Elab_Term_getMCtx___rarg(x_12); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); lean_inc(x_15); -lean_dec(x_8); -x_16 = l_Lean_Elab_Term_setEnv(x_15, x_3, x_7); -lean_dec(x_3); -return x_16; -} -} -} -lean_object* l_Lean_Elab_Term_addDecl___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_Elab_Term_addDecl(x_1, x_2, x_3, x_4); -lean_dec(x_2); -lean_dec(x_1); -return x_5; -} -} -lean_object* l_Lean_Elab_Term_compileDecl(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_5 = l_Lean_Elab_Term_getEnv___rarg(x_4); -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = lean_ctor_get(x_5, 1); -lean_inc(x_7); -lean_dec(x_5); -x_8 = l_Lean_Elab_Term_getOptions(x_3, x_7); -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_compile_decl(x_6, x_9, x_2); -if (lean_obj_tag(x_11) == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -lean_dec(x_11); -x_13 = l_Lean_KernelException_toMessageData(x_12, x_9); -x_14 = l_Lean_Elab_Term_throwError___rarg(x_1, x_13, x_3, x_10); -return x_14; -} -else -{ -lean_object* x_15; lean_object* x_16; -lean_dec(x_9); -x_15 = lean_ctor_get(x_11, 0); -lean_inc(x_15); -lean_dec(x_11); -x_16 = l_Lean_Elab_Term_setEnv(x_15, x_3, x_10); -lean_dec(x_3); -return x_16; -} -} -} -lean_object* l_Lean_Elab_Term_compileDecl___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_Elab_Term_compileDecl(x_1, x_2, x_3, x_4); -lean_dec(x_2); -lean_dec(x_1); -return x_5; -} -} -lean_object* l_Lean_Elab_Term_mkAuxDefinition(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_8 = l_Lean_Elab_Term_getEnv___rarg(x_7); -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 = l_Lean_Elab_Term_getOptions(x_6, x_10); -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 = l_Lean_Elab_Term_getMCtx___rarg(x_13); -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 = l_Lean_Elab_Term_getLCtx(x_6, x_16); -x_18 = lean_ctor_get(x_17, 0); +lean_dec(x_13); +x_16 = l_Lean_Elab_Term_getLCtx(x_5, x_15); +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_16, 1); lean_inc(x_18); -x_19 = lean_ctor_get(x_17, 1); -lean_inc(x_19); -lean_dec(x_17); -x_20 = l_Lean_mkAuxDefinition(x_9, x_12, x_15, x_18, x_2, x_3, x_4, x_5); -if (lean_obj_tag(x_20) == 0) +lean_dec(x_16); +x_19 = l_Lean_mkAuxDefinition(x_8, x_11, x_14, x_17, x_1, x_2, x_3, x_4); +if (lean_obj_tag(x_19) == 0) { -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -lean_dec(x_20); -x_22 = l_Lean_KernelException_toMessageData(x_21, x_12); -x_23 = l_Lean_Elab_Term_throwError___rarg(x_1, x_22, x_6, x_19); -return x_23; +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +lean_dec(x_19); +x_21 = l_Lean_KernelException_toMessageData(x_20, x_11); +x_22 = l_Lean_Elab_Term_throwError___rarg(x_21, x_5, x_18); +return x_22; } else { -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; uint8_t x_32; -lean_dec(x_12); -x_24 = lean_ctor_get(x_20, 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; uint8_t x_31; +lean_dec(x_11); +x_23 = lean_ctor_get(x_19, 0); +lean_inc(x_23); +lean_dec(x_19); +x_24 = lean_ctor_get(x_23, 1); lean_inc(x_24); -lean_dec(x_20); -x_25 = lean_ctor_get(x_24, 1); +x_25 = lean_ctor_get(x_23, 0); lean_inc(x_25); +lean_dec(x_23); x_26 = lean_ctor_get(x_24, 0); lean_inc(x_26); -lean_dec(x_24); -x_27 = lean_ctor_get(x_25, 0); +x_27 = lean_ctor_get(x_24, 1); lean_inc(x_27); -x_28 = lean_ctor_get(x_25, 1); -lean_inc(x_28); -lean_dec(x_25); -x_29 = l_Lean_Elab_Term_setEnv(x_27, x_6, x_19); -x_30 = lean_ctor_get(x_29, 1); -lean_inc(x_30); -lean_dec(x_29); -x_31 = l_Lean_Elab_Term_setMCtx(x_28, x_6, x_30); -lean_dec(x_6); -x_32 = !lean_is_exclusive(x_31); -if (x_32 == 0) +lean_dec(x_24); +x_28 = l_Lean_Elab_Term_setEnv(x_26, x_5, x_18); +x_29 = lean_ctor_get(x_28, 1); +lean_inc(x_29); +lean_dec(x_28); +x_30 = l_Lean_Elab_Term_setMCtx(x_27, x_5, x_29); +lean_dec(x_5); +x_31 = !lean_is_exclusive(x_30); +if (x_31 == 0) { -lean_object* x_33; -x_33 = lean_ctor_get(x_31, 0); -lean_dec(x_33); -lean_ctor_set(x_31, 0, x_26); -return x_31; +lean_object* x_32; +x_32 = lean_ctor_get(x_30, 0); +lean_dec(x_32); +lean_ctor_set(x_30, 0, x_25); +return x_30; } else { -lean_object* x_34; lean_object* x_35; -x_34 = lean_ctor_get(x_31, 1); -lean_inc(x_34); -lean_dec(x_31); -x_35 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_35, 0, x_26); -lean_ctor_set(x_35, 1, x_34); -return x_35; +lean_object* x_33; lean_object* x_34; +x_33 = lean_ctor_get(x_30, 1); +lean_inc(x_33); +lean_dec(x_30); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_25); +lean_ctor_set(x_34, 1, x_33); +return x_34; } } } } -lean_object* l_Lean_Elab_Term_mkAuxDefinition___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* l_Lean_Elab_Term_mkAuxDefinition___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -uint8_t x_8; lean_object* x_9; -x_8 = lean_unbox(x_5); -lean_dec(x_5); -x_9 = l_Lean_Elab_Term_mkAuxDefinition(x_1, x_2, x_3, x_4, x_8, x_6, x_7); -lean_dec(x_1); -return x_9; +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_4); +lean_dec(x_4); +x_8 = l_Lean_Elab_Term_mkAuxDefinition(x_1, x_2, x_3, x_7, x_5, x_6); +return x_8; } } lean_object* l___private_Lean_Elab_Term_16__mkAuxNameAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) { @@ -27058,73 +27381,64 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Lean_Elab_Term_mkAuxName(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Term_mkAuxName(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_5; lean_object* x_6; -x_5 = l_Lean_Elab_Term_getEnv___rarg(x_4); -x_6 = lean_ctor_get(x_3, 5); -lean_inc(x_6); -if (lean_obj_tag(x_6) == 0) +lean_object* x_4; lean_object* x_5; +x_4 = l_Lean_Elab_Term_getEnv___rarg(x_3); +x_5 = lean_ctor_get(x_2, 5); +lean_inc(x_5); +if (lean_obj_tag(x_5) == 0) { -lean_object* x_7; lean_object* x_8; lean_object* x_9; -lean_dec(x_2); -x_7 = lean_ctor_get(x_5, 1); -lean_inc(x_7); -lean_dec(x_5); -x_8 = l_Lean_Elab_Term_mkAuxName___closed__3; -x_9 = l_Lean_Elab_Term_throwError___rarg(x_1, x_8, x_3, x_7); -return x_9; -} -else -{ -uint8_t x_10; -lean_dec(x_3); -x_10 = !lean_is_exclusive(x_5); -if (x_10 == 0) -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_11 = lean_ctor_get(x_5, 0); -x_12 = lean_ctor_get(x_6, 0); -lean_inc(x_12); -lean_dec(x_6); -x_13 = l_Lean_Name_append___main(x_12, x_2); -lean_dec(x_12); -x_14 = lean_unsigned_to_nat(1u); -x_15 = l___private_Lean_Elab_Term_16__mkAuxNameAux___main(x_11, x_13, x_14); -lean_ctor_set(x_5, 0, x_15); -return x_5; -} -else -{ -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_16 = lean_ctor_get(x_5, 0); -x_17 = lean_ctor_get(x_5, 1); -lean_inc(x_17); -lean_inc(x_16); -lean_dec(x_5); -x_18 = lean_ctor_get(x_6, 0); -lean_inc(x_18); -lean_dec(x_6); -x_19 = l_Lean_Name_append___main(x_18, x_2); -lean_dec(x_18); -x_20 = lean_unsigned_to_nat(1u); -x_21 = l___private_Lean_Elab_Term_16__mkAuxNameAux___main(x_16, x_19, x_20); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_17); -return x_22; -} -} -} -} -lean_object* l_Lean_Elab_Term_mkAuxName___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_Elab_Term_mkAuxName(x_1, x_2, x_3, x_4); +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_dec(x_1); -return x_5; +x_6 = lean_ctor_get(x_4, 1); +lean_inc(x_6); +lean_dec(x_4); +x_7 = l_Lean_Elab_Term_mkAuxName___closed__3; +x_8 = l_Lean_Elab_Term_throwError___rarg(x_7, x_2, x_6); +return x_8; +} +else +{ +uint8_t x_9; +lean_dec(x_2); +x_9 = !lean_is_exclusive(x_4); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_10 = lean_ctor_get(x_4, 0); +x_11 = lean_ctor_get(x_5, 0); +lean_inc(x_11); +lean_dec(x_5); +x_12 = l_Lean_Name_append___main(x_11, x_1); +lean_dec(x_11); +x_13 = lean_unsigned_to_nat(1u); +x_14 = l___private_Lean_Elab_Term_16__mkAuxNameAux___main(x_10, x_12, x_13); +lean_ctor_set(x_4, 0, x_14); +return x_4; +} +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; +x_15 = lean_ctor_get(x_4, 0); +x_16 = lean_ctor_get(x_4, 1); +lean_inc(x_16); +lean_inc(x_15); +lean_dec(x_4); +x_17 = lean_ctor_get(x_5, 0); +lean_inc(x_17); +lean_dec(x_5); +x_18 = l_Lean_Name_append___main(x_17, x_1); +lean_dec(x_17); +x_19 = lean_unsigned_to_nat(1u); +x_20 = l___private_Lean_Elab_Term_16__mkAuxNameAux___main(x_15, x_18, x_19); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_16); +return x_21; +} +} } } lean_object* l_Lean_Elab_Term_elabProp___rarg(lean_object* x_1) { @@ -27390,30 +27704,38 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* l_Lean_Elab_Term_elabHole(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Term_elabHole___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -uint8_t x_5; lean_object* x_6; lean_object* x_7; -x_5 = 0; -x_6 = lean_box(0); -x_7 = l_Lean_Elab_Term_mkFreshExprMVar(x_1, x_2, x_5, x_6, x_3, x_4); -return x_7; +uint8_t x_4; lean_object* x_5; lean_object* x_6; +x_4 = 0; +x_5 = lean_box(0); +x_6 = l_Lean_Elab_Term_mkFreshExprMVar(x_1, x_4, x_5, x_2, x_3); +return x_6; } } -lean_object* l_Lean_Elab_Term_elabHole___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Term_elabHole(lean_object* x_1) { _start: { -lean_object* x_5; -x_5 = l_Lean_Elab_Term_elabHole(x_1, x_2, x_3, x_4); +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabHole___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_elabHole___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Elab_Term_elabHole(x_1); lean_dec(x_1); -return x_5; +return x_2; } } lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabHole___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabHole___boxed), 4, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabHole___boxed), 1, 0); return x_1; } } @@ -27435,7 +27757,7 @@ lean_object* x_5; lean_object* x_6; uint8_t x_7; lean_object* x_8; x_5 = lean_unsigned_to_nat(1u); x_6 = l_Lean_Syntax_getIdAt(x_1, x_5); x_7 = 2; -x_8 = l_Lean_Elab_Term_mkFreshExprMVar(x_1, x_2, x_7, x_6, x_3, x_4); +x_8 = l_Lean_Elab_Term_mkFreshExprMVar(x_2, x_7, x_6, x_3, x_4); return x_8; } } @@ -27485,45 +27807,45 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_Lean_Elab_Term_mkTacticMVar(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_Elab_Term_mkTacticMVar(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_6; uint8_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; -x_6 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_6, 0, x_2); -x_7 = 2; -x_8 = l_Lean_Elab_Term_mkTacticMVar___closed__2; -lean_inc(x_4); -x_9 = l_Lean_Elab_Term_mkFreshExprMVar(x_1, x_6, x_7, x_8, x_4, x_5); -x_10 = lean_ctor_get(x_9, 0); +lean_object* x_5; uint8_t x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_5 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_5, 0, x_1); +x_6 = 2; +x_7 = l_Lean_Elab_Term_mkTacticMVar___closed__2; +lean_inc(x_3); +x_8 = l_Lean_Elab_Term_mkFreshExprMVar(x_5, x_6, x_7, x_3, x_4); +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_8, 1); lean_inc(x_10); -x_11 = lean_ctor_get(x_9, 1); -lean_inc(x_11); -lean_dec(x_9); -x_12 = l_Lean_Expr_mvarId_x21(x_10); -x_13 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_13, 0, x_3); -x_14 = l_Lean_Elab_Term_registerSyntheticMVar(x_1, x_12, x_13, x_4, x_11); -lean_dec(x_4); -x_15 = !lean_is_exclusive(x_14); -if (x_15 == 0) +lean_dec(x_8); +x_11 = l_Lean_Expr_mvarId_x21(x_9); +x_12 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_12, 0, x_2); +x_13 = l_Lean_Elab_Term_registerSyntheticMVar(x_11, x_12, x_3, x_10); +lean_dec(x_3); +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) { -lean_object* x_16; -x_16 = lean_ctor_get(x_14, 0); -lean_dec(x_16); -lean_ctor_set(x_14, 0, x_10); -return x_14; +lean_object* x_15; +x_15 = lean_ctor_get(x_13, 0); +lean_dec(x_15); +lean_ctor_set(x_13, 0, x_9); +return x_13; } else { -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_14, 1); -lean_inc(x_17); -lean_dec(x_14); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_10); -lean_ctor_set(x_18, 1, x_17); -return x_18; +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_13, 1); +lean_inc(x_16); +lean_dec(x_13); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_9); +lean_ctor_set(x_17, 1, x_16); +return x_17; } } } @@ -27562,8 +27884,7 @@ if (lean_obj_tag(x_2) == 0) { lean_object* x_5; lean_object* x_6; x_5 = l_Lean_Elab_Term_elabTacticBlock___closed__3; -x_6 = l_Lean_Elab_Term_throwError___rarg(x_1, x_5, x_3, x_4); -lean_dec(x_1); +x_6 = l_Lean_Elab_Term_throwError___rarg(x_5, x_3, x_4); return x_6; } else @@ -27574,16 +27895,25 @@ lean_inc(x_7); lean_dec(x_2); x_8 = lean_unsigned_to_nat(1u); x_9 = l_Lean_Syntax_getArg(x_1, x_8); -x_10 = l_Lean_Elab_Term_mkTacticMVar(x_1, x_7, x_9, x_3, x_4); +x_10 = l_Lean_Elab_Term_mkTacticMVar(x_7, x_9, x_3, x_4); return x_10; } } } +lean_object* l_Lean_Elab_Term_elabTacticBlock___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_Elab_Term_elabTacticBlock(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabTacticBlock___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTacticBlock), 4, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTacticBlock___boxed), 4, 0); return x_1; } } @@ -27633,8 +27963,7 @@ if (lean_obj_tag(x_2) == 0) { lean_object* x_5; lean_object* x_6; x_5 = l_Lean_Elab_Term_elabByTactic___closed__3; -x_6 = l_Lean_Elab_Term_throwError___rarg(x_1, x_5, x_3, x_4); -lean_dec(x_1); +x_6 = l_Lean_Elab_Term_throwError___rarg(x_5, x_3, x_4); return x_6; } else @@ -27645,16 +27974,25 @@ lean_inc(x_7); lean_dec(x_2); x_8 = lean_unsigned_to_nat(1u); x_9 = l_Lean_Syntax_getArg(x_1, x_8); -x_10 = l_Lean_Elab_Term_mkTacticMVar(x_1, x_7, x_9, x_3, x_4); +x_10 = l_Lean_Elab_Term_mkTacticMVar(x_7, x_9, x_3, x_4); return x_10; } } } +lean_object* l_Lean_Elab_Term_elabByTactic___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_Elab_Term_elabByTactic(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabByTactic___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabByTactic), 4, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabByTactic___boxed), 4, 0); return x_1; } } @@ -27849,174 +28187,174 @@ return x_4; lean_object* l___private_Lean_Elab_Term_19__elabCDot(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_35 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); -x_36 = lean_ctor_get(x_35, 0); -lean_inc(x_36); -x_37 = lean_ctor_get(x_35, 1); +lean_object* x_5; lean_object* x_6; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; 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_36 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); +x_37 = lean_ctor_get(x_36, 0); lean_inc(x_37); -lean_dec(x_35); -x_38 = l_Lean_Elab_Term_getEnv___rarg(x_37); -x_39 = lean_ctor_get(x_38, 1); -lean_inc(x_39); -x_40 = lean_ctor_get(x_38, 0); +x_38 = lean_ctor_get(x_36, 1); +lean_inc(x_38); +lean_dec(x_36); +x_39 = l_Lean_Elab_Term_getEnv___rarg(x_38); +x_40 = lean_ctor_get(x_39, 1); lean_inc(x_40); -lean_dec(x_38); x_41 = lean_ctor_get(x_39, 0); lean_inc(x_41); -x_42 = lean_ctor_get(x_39, 1); -lean_inc(x_42); -x_43 = lean_ctor_get(x_39, 2); -lean_inc(x_43); -x_44 = lean_ctor_get(x_39, 3); -lean_inc(x_44); -x_45 = lean_ctor_get(x_39, 4); -lean_inc(x_45); -x_46 = lean_ctor_get(x_39, 5); -lean_inc(x_46); -x_47 = lean_ctor_get(x_3, 0); -lean_inc(x_47); -x_48 = lean_ctor_get(x_47, 3); -lean_inc(x_48); -x_49 = lean_ctor_get(x_47, 4); -lean_inc(x_49); -lean_dec(x_47); -x_50 = lean_environment_main_module(x_40); -x_51 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_51, 0, x_50); -lean_ctor_set(x_51, 1, x_36); -lean_ctor_set(x_51, 2, x_48); -lean_ctor_set(x_51, 3, x_49); -lean_inc(x_1); -x_52 = l_Lean_Elab_Term_expandCDot_x3f(x_1, x_51, x_46); -if (lean_obj_tag(x_52) == 0) -{ -uint8_t x_53; -x_53 = !lean_is_exclusive(x_39); -if (x_53 == 0) -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_54 = lean_ctor_get(x_39, 5); -lean_dec(x_54); -x_55 = lean_ctor_get(x_39, 4); -lean_dec(x_55); -x_56 = lean_ctor_get(x_39, 3); -lean_dec(x_56); -x_57 = lean_ctor_get(x_39, 2); -lean_dec(x_57); -x_58 = lean_ctor_get(x_39, 1); -lean_dec(x_58); -x_59 = lean_ctor_get(x_39, 0); -lean_dec(x_59); -x_60 = lean_ctor_get(x_52, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_52, 1); -lean_inc(x_61); -lean_dec(x_52); -lean_ctor_set(x_39, 5, x_61); -x_5 = x_60; -x_6 = x_39; -goto block_34; -} -else -{ -lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_dec(x_39); -x_62 = lean_ctor_get(x_52, 0); +x_42 = lean_ctor_get(x_40, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_40, 1); +lean_inc(x_43); +x_44 = lean_ctor_get(x_40, 2); +lean_inc(x_44); +x_45 = lean_ctor_get(x_40, 3); +lean_inc(x_45); +x_46 = lean_ctor_get(x_40, 4); +lean_inc(x_46); +x_47 = lean_ctor_get(x_40, 5); +lean_inc(x_47); +x_48 = lean_ctor_get(x_3, 0); +lean_inc(x_48); +x_49 = lean_ctor_get(x_48, 3); +lean_inc(x_49); +x_50 = lean_ctor_get(x_48, 4); +lean_inc(x_50); +lean_dec(x_48); +x_51 = lean_environment_main_module(x_41); +x_52 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_37); +lean_ctor_set(x_52, 2, x_49); +lean_ctor_set(x_52, 3, x_50); +lean_inc(x_1); +x_53 = l_Lean_Elab_Term_expandCDot_x3f(x_1, x_52, x_47); +if (lean_obj_tag(x_53) == 0) +{ +uint8_t x_54; +x_54 = !lean_is_exclusive(x_40); +if (x_54 == 0) +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_55 = lean_ctor_get(x_40, 5); +lean_dec(x_55); +x_56 = lean_ctor_get(x_40, 4); +lean_dec(x_56); +x_57 = lean_ctor_get(x_40, 3); +lean_dec(x_57); +x_58 = lean_ctor_get(x_40, 2); +lean_dec(x_58); +x_59 = lean_ctor_get(x_40, 1); +lean_dec(x_59); +x_60 = lean_ctor_get(x_40, 0); +lean_dec(x_60); +x_61 = lean_ctor_get(x_53, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_53, 1); lean_inc(x_62); -x_63 = lean_ctor_get(x_52, 1); +lean_dec(x_53); +lean_ctor_set(x_40, 5, x_62); +x_5 = x_61; +x_6 = x_40; +goto block_35; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; +lean_dec(x_40); +x_63 = lean_ctor_get(x_53, 0); lean_inc(x_63); -lean_dec(x_52); -x_64 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_64, 0, x_41); -lean_ctor_set(x_64, 1, x_42); -lean_ctor_set(x_64, 2, x_43); -lean_ctor_set(x_64, 3, x_44); -lean_ctor_set(x_64, 4, x_45); -lean_ctor_set(x_64, 5, x_63); -x_5 = x_62; -x_6 = x_64; -goto block_34; +x_64 = lean_ctor_get(x_53, 1); +lean_inc(x_64); +lean_dec(x_53); +x_65 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_65, 0, x_42); +lean_ctor_set(x_65, 1, x_43); +lean_ctor_set(x_65, 2, x_44); +lean_ctor_set(x_65, 3, x_45); +lean_ctor_set(x_65, 4, x_46); +lean_ctor_set(x_65, 5, x_64); +x_5 = x_63; +x_6 = x_65; +goto block_35; } } else { -lean_object* x_65; +lean_object* x_66; +lean_dec(x_46); lean_dec(x_45); lean_dec(x_44); lean_dec(x_43); lean_dec(x_42); -lean_dec(x_41); lean_dec(x_2); lean_dec(x_1); -x_65 = lean_ctor_get(x_52, 0); -lean_inc(x_65); -lean_dec(x_52); -if (lean_obj_tag(x_65) == 0) -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; -x_66 = lean_ctor_get(x_65, 0); +x_66 = lean_ctor_get(x_53, 0); lean_inc(x_66); -x_67 = lean_ctor_get(x_65, 1); +lean_dec(x_53); +if (lean_obj_tag(x_66) == 0) +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; uint8_t x_72; +x_67 = lean_ctor_get(x_66, 0); lean_inc(x_67); -lean_dec(x_65); -x_68 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_68, 0, x_67); -x_69 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_69, 0, x_68); -x_70 = l_Lean_Elab_Term_throwError___rarg(x_66, x_69, x_3, x_39); +x_68 = lean_ctor_get(x_66, 1); +lean_inc(x_68); lean_dec(x_66); -x_71 = !lean_is_exclusive(x_70); -if (x_71 == 0) +x_69 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_69, 0, x_68); +x_70 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_70, 0, x_69); +x_71 = l_Lean_Elab_Term_throwErrorAt___rarg(x_67, x_70, x_3, x_40); +lean_dec(x_67); +x_72 = !lean_is_exclusive(x_71); +if (x_72 == 0) { -return x_70; +return x_71; } else { -lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_72 = lean_ctor_get(x_70, 0); -x_73 = lean_ctor_get(x_70, 1); +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_71, 0); +x_74 = lean_ctor_get(x_71, 1); +lean_inc(x_74); lean_inc(x_73); -lean_inc(x_72); -lean_dec(x_70); -x_74 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_74, 0, x_72); -lean_ctor_set(x_74, 1, x_73); -return x_74; -} -} -else -{ -lean_object* x_75; uint8_t x_76; -lean_dec(x_3); -x_75 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_39); -x_76 = !lean_is_exclusive(x_75); -if (x_76 == 0) -{ +lean_dec(x_71); +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_77; lean_object* x_78; lean_object* x_79; -x_77 = lean_ctor_get(x_75, 0); -x_78 = lean_ctor_get(x_75, 1); +lean_object* x_76; uint8_t x_77; +lean_dec(x_3); +x_76 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_40); +x_77 = !lean_is_exclusive(x_76); +if (x_77 == 0) +{ +return x_76; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_78 = lean_ctor_get(x_76, 0); +x_79 = lean_ctor_get(x_76, 1); +lean_inc(x_79); lean_inc(x_78); -lean_inc(x_77); -lean_dec(x_75); -x_79 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_79, 0, x_77); -lean_ctor_set(x_79, 1, x_78); -return x_79; +lean_dec(x_76); +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; } } } -block_34: +block_35: { if (lean_obj_tag(x_5) == 0) { uint8_t x_7; lean_object* x_8; x_7 = 1; -x_8 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_7, x_7, x_1, x_3, x_6); +x_8 = l_Lean_Elab_Term_elabTerm(x_1, x_2, x_7, x_3, x_6); return x_8; } else @@ -28039,12 +28377,12 @@ lean_ctor_set(x_13, 0, x_12); lean_ctor_set(x_13, 1, x_11); lean_ctor_set(x_3, 8, x_13); x_14 = 1; -x_15 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_14, x_14, x_9, x_3, x_6); +x_15 = l_Lean_Elab_Term_elabTerm(x_9, x_2, x_14, x_3, x_6); return x_15; } else { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; uint8_t x_27; uint8_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33; +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; uint8_t x_27; uint8_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; lean_object* x_34; x_16 = lean_ctor_get(x_3, 0); x_17 = lean_ctor_get(x_3, 1); x_18 = lean_ctor_get(x_3, 2); @@ -28055,9 +28393,11 @@ x_22 = lean_ctor_get(x_3, 6); x_23 = lean_ctor_get(x_3, 7); x_24 = lean_ctor_get(x_3, 8); x_25 = lean_ctor_get(x_3, 9); -x_26 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); -x_27 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); -x_28 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); +x_26 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_27 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_28 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +x_29 = lean_ctor_get(x_3, 10); +lean_inc(x_29); lean_inc(x_25); lean_inc(x_24); lean_inc(x_23); @@ -28070,29 +28410,30 @@ lean_inc(x_17); lean_inc(x_16); lean_dec(x_3); lean_inc(x_9); -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 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_24); -x_31 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_31, 0, x_16); -lean_ctor_set(x_31, 1, x_17); -lean_ctor_set(x_31, 2, x_18); -lean_ctor_set(x_31, 3, x_19); -lean_ctor_set(x_31, 4, x_20); -lean_ctor_set(x_31, 5, x_21); -lean_ctor_set(x_31, 6, x_22); -lean_ctor_set(x_31, 7, x_23); -lean_ctor_set(x_31, 8, x_30); -lean_ctor_set(x_31, 9, x_25); -lean_ctor_set_uint8(x_31, sizeof(void*)*10, x_26); -lean_ctor_set_uint8(x_31, sizeof(void*)*10 + 1, x_27); -lean_ctor_set_uint8(x_31, sizeof(void*)*10 + 2, x_28); -x_32 = 1; -x_33 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_32, x_32, x_9, x_31, x_6); -return x_33; +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_1); +lean_ctor_set(x_30, 1, x_9); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_24); +x_32 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_32, 0, x_16); +lean_ctor_set(x_32, 1, x_17); +lean_ctor_set(x_32, 2, x_18); +lean_ctor_set(x_32, 3, x_19); +lean_ctor_set(x_32, 4, x_20); +lean_ctor_set(x_32, 5, x_21); +lean_ctor_set(x_32, 6, x_22); +lean_ctor_set(x_32, 7, x_23); +lean_ctor_set(x_32, 8, x_31); +lean_ctor_set(x_32, 9, x_25); +lean_ctor_set(x_32, 10, x_29); +lean_ctor_set_uint8(x_32, sizeof(void*)*11, x_26); +lean_ctor_set_uint8(x_32, sizeof(void*)*11 + 1, x_27); +lean_ctor_set_uint8(x_32, sizeof(void*)*11 + 2, x_28); +x_33 = 1; +x_34 = l_Lean_Elab_Term_elabTerm(x_9, x_2, x_33, x_32, x_6); +return x_34; } } } @@ -28174,30 +28515,30 @@ return x_3; lean_object* l_Lean_Elab_Term_elabParen(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; uint8_t x_32; lean_object* x_149; uint8_t x_150; -x_149 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__2; +lean_object* x_5; lean_object* x_6; uint8_t x_33; lean_object* x_150; uint8_t x_151; +x_150 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__2; lean_inc(x_1); -x_150 = l_Lean_Syntax_isOfKind(x_1, x_149); -if (x_150 == 0) +x_151 = l_Lean_Syntax_isOfKind(x_1, x_150); +if (x_151 == 0) { -uint8_t x_151; -x_151 = 0; -x_32 = x_151; -goto block_148; +uint8_t x_152; +x_152 = 0; +x_33 = x_152; +goto block_149; } else { -lean_object* x_152; lean_object* x_153; lean_object* x_154; uint8_t x_155; -x_152 = l_Lean_Syntax_getArgs(x_1); -x_153 = lean_array_get_size(x_152); -lean_dec(x_152); -x_154 = lean_unsigned_to_nat(3u); -x_155 = lean_nat_dec_eq(x_153, x_154); +lean_object* x_153; lean_object* x_154; lean_object* x_155; uint8_t x_156; +x_153 = l_Lean_Syntax_getArgs(x_1); +x_154 = lean_array_get_size(x_153); lean_dec(x_153); -x_32 = x_155; -goto block_148; +x_155 = lean_unsigned_to_nat(3u); +x_156 = lean_nat_dec_eq(x_154, x_155); +lean_dec(x_154); +x_33 = x_156; +goto block_149; } -block_31: +block_32: { uint8_t x_7; x_7 = !lean_is_exclusive(x_3); @@ -28214,12 +28555,12 @@ lean_ctor_set(x_10, 0, x_9); lean_ctor_set(x_10, 1, x_8); lean_ctor_set(x_3, 8, x_10); x_11 = 1; -x_12 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_11, x_11, x_5, x_3, x_6); +x_12 = l_Lean_Elab_Term_elabTerm(x_5, x_2, x_11, x_3, x_6); return x_12; } else { -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; uint8_t x_23; uint8_t x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; lean_object* x_30; +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; uint8_t x_23; uint8_t x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; x_13 = lean_ctor_get(x_3, 0); x_14 = lean_ctor_get(x_3, 1); x_15 = lean_ctor_get(x_3, 2); @@ -28230,9 +28571,11 @@ x_19 = lean_ctor_get(x_3, 6); x_20 = lean_ctor_get(x_3, 7); x_21 = lean_ctor_get(x_3, 8); x_22 = lean_ctor_get(x_3, 9); -x_23 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); -x_24 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); -x_25 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); +x_23 = lean_ctor_get_uint8(x_3, sizeof(void*)*11); +x_24 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 1); +x_25 = lean_ctor_get_uint8(x_3, sizeof(void*)*11 + 2); +x_26 = lean_ctor_get(x_3, 10); +lean_inc(x_26); lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); @@ -28245,435 +28588,433 @@ lean_inc(x_14); lean_inc(x_13); lean_dec(x_3); lean_inc(x_5); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_1); -lean_ctor_set(x_26, 1, x_5); -x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_21); -x_28 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_28, 0, x_13); -lean_ctor_set(x_28, 1, x_14); -lean_ctor_set(x_28, 2, x_15); -lean_ctor_set(x_28, 3, x_16); -lean_ctor_set(x_28, 4, x_17); -lean_ctor_set(x_28, 5, x_18); -lean_ctor_set(x_28, 6, x_19); -lean_ctor_set(x_28, 7, x_20); -lean_ctor_set(x_28, 8, x_27); -lean_ctor_set(x_28, 9, x_22); -lean_ctor_set_uint8(x_28, sizeof(void*)*10, x_23); -lean_ctor_set_uint8(x_28, sizeof(void*)*10 + 1, x_24); -lean_ctor_set_uint8(x_28, sizeof(void*)*10 + 2, x_25); -x_29 = 1; -x_30 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_29, x_29, x_5, x_28, x_6); -return x_30; +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_1); +lean_ctor_set(x_27, 1, x_5); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_21); +x_29 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_29, 0, x_13); +lean_ctor_set(x_29, 1, x_14); +lean_ctor_set(x_29, 2, x_15); +lean_ctor_set(x_29, 3, x_16); +lean_ctor_set(x_29, 4, x_17); +lean_ctor_set(x_29, 5, x_18); +lean_ctor_set(x_29, 6, x_19); +lean_ctor_set(x_29, 7, x_20); +lean_ctor_set(x_29, 8, x_28); +lean_ctor_set(x_29, 9, x_22); +lean_ctor_set(x_29, 10, x_26); +lean_ctor_set_uint8(x_29, sizeof(void*)*11, x_23); +lean_ctor_set_uint8(x_29, sizeof(void*)*11 + 1, x_24); +lean_ctor_set_uint8(x_29, sizeof(void*)*11 + 2, x_25); +x_30 = 1; +x_31 = l_Lean_Elab_Term_elabTerm(x_5, x_2, x_30, x_29, x_6); +return x_31; } } -block_148: +block_149: { -if (x_32 == 0) +if (x_33 == 0) { -lean_object* x_33; lean_object* x_34; +lean_object* x_34; lean_object* x_35; lean_dec(x_2); -x_33 = l_Lean_Elab_Term_elabParen___closed__3; -x_34 = l_Lean_Elab_Term_throwError___rarg(x_1, x_33, x_3, x_4); lean_dec(x_1); -return x_34; +x_34 = l_Lean_Elab_Term_elabParen___closed__3; +x_35 = l_Lean_Elab_Term_throwError___rarg(x_34, x_3, x_4); +return x_35; } else { -lean_object* x_35; lean_object* x_36; uint8_t x_37; lean_object* x_137; uint8_t x_138; -x_35 = lean_unsigned_to_nat(1u); -x_36 = l_Lean_Syntax_getArg(x_1, x_35); -x_137 = l_Lean_nullKind___closed__2; -lean_inc(x_36); -x_138 = l_Lean_Syntax_isOfKind(x_36, x_137); -if (x_138 == 0) +lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_object* x_138; uint8_t x_139; +x_36 = lean_unsigned_to_nat(1u); +x_37 = l_Lean_Syntax_getArg(x_1, x_36); +x_138 = l_Lean_nullKind___closed__2; +lean_inc(x_37); +x_139 = l_Lean_Syntax_isOfKind(x_37, x_138); +if (x_139 == 0) { -uint8_t x_139; -x_139 = 0; -x_37 = x_139; -goto block_136; +uint8_t x_140; +x_140 = 0; +x_38 = x_140; +goto block_137; } else { -lean_object* x_140; lean_object* x_141; lean_object* x_142; uint8_t x_143; -x_140 = l_Lean_Syntax_getArgs(x_36); -x_141 = lean_array_get_size(x_140); -lean_dec(x_140); -x_142 = lean_unsigned_to_nat(0u); -x_143 = lean_nat_dec_eq(x_141, x_142); -if (x_143 == 0) -{ -lean_object* x_144; uint8_t x_145; -x_144 = lean_unsigned_to_nat(2u); -x_145 = lean_nat_dec_eq(x_141, x_144); +lean_object* x_141; lean_object* x_142; lean_object* x_143; uint8_t x_144; +x_141 = l_Lean_Syntax_getArgs(x_37); +x_142 = lean_array_get_size(x_141); lean_dec(x_141); -x_37 = x_145; -goto block_136; +x_143 = lean_unsigned_to_nat(0u); +x_144 = lean_nat_dec_eq(x_142, x_143); +if (x_144 == 0) +{ +lean_object* x_145; uint8_t x_146; +x_145 = lean_unsigned_to_nat(2u); +x_146 = lean_nat_dec_eq(x_142, x_145); +lean_dec(x_142); +x_38 = x_146; +goto block_137; } else { -lean_object* x_146; lean_object* x_147; -lean_dec(x_141); -lean_dec(x_36); +lean_object* x_147; lean_object* x_148; +lean_dec(x_142); +lean_dec(x_37); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_146 = l_Lean_Elab_Term_elabParen___closed__5; -x_147 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_147, 0, x_146); -lean_ctor_set(x_147, 1, x_4); -return x_147; +x_147 = l_Lean_Elab_Term_elabParen___closed__5; +x_148 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_148, 0, x_147); +lean_ctor_set(x_148, 1, x_4); +return x_148; } } -block_136: +block_137: { -if (x_37 == 0) +if (x_38 == 0) { -lean_object* x_38; lean_object* x_39; -lean_dec(x_36); +lean_object* x_39; lean_object* x_40; +lean_dec(x_37); lean_dec(x_2); -x_38 = l_Lean_Elab_Term_elabParen___closed__3; -x_39 = l_Lean_Elab_Term_throwError___rarg(x_1, x_38, x_3, x_4); lean_dec(x_1); -return x_39; +x_39 = l_Lean_Elab_Term_elabParen___closed__3; +x_40 = l_Lean_Elab_Term_throwError___rarg(x_39, x_3, x_4); +return x_40; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; uint8_t x_45; -x_40 = lean_unsigned_to_nat(0u); -x_41 = l_Lean_Syntax_getArg(x_36, x_40); -x_42 = l_Lean_Syntax_getArg(x_36, x_35); -lean_dec(x_36); -x_43 = l_Lean_nullKind___closed__2; -lean_inc(x_42); -x_44 = l_Lean_Syntax_isOfKind(x_42, x_43); -if (x_44 == 0) -{ -uint8_t x_132; -x_132 = 0; -x_45 = x_132; -goto block_131; -} -else -{ -lean_object* x_133; lean_object* x_134; uint8_t x_135; -x_133 = l_Lean_Syntax_getArgs(x_42); -x_134 = lean_array_get_size(x_133); -lean_dec(x_133); -x_135 = lean_nat_dec_eq(x_134, x_35); -lean_dec(x_134); -x_45 = x_135; -goto block_131; -} -block_131: -{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; uint8_t x_46; +x_41 = lean_unsigned_to_nat(0u); +x_42 = l_Lean_Syntax_getArg(x_37, x_41); +x_43 = l_Lean_Syntax_getArg(x_37, x_36); +lean_dec(x_37); +x_44 = l_Lean_nullKind___closed__2; +lean_inc(x_43); +x_45 = l_Lean_Syntax_isOfKind(x_43, x_44); if (x_45 == 0) { -if (x_44 == 0) -{ -lean_object* x_46; lean_object* x_47; -lean_dec(x_42); -lean_dec(x_41); -lean_dec(x_2); -x_46 = l_Lean_Elab_Term_elabParen___closed__3; -x_47 = l_Lean_Elab_Term_throwError___rarg(x_1, x_46, x_3, x_4); -lean_dec(x_1); -return x_47; +uint8_t x_133; +x_133 = 0; +x_46 = x_133; +goto block_132; } else { -lean_object* x_48; lean_object* x_49; uint8_t x_50; -x_48 = l_Lean_Syntax_getArgs(x_42); +lean_object* x_134; lean_object* x_135; uint8_t x_136; +x_134 = l_Lean_Syntax_getArgs(x_43); +x_135 = lean_array_get_size(x_134); +lean_dec(x_134); +x_136 = lean_nat_dec_eq(x_135, x_36); +lean_dec(x_135); +x_46 = x_136; +goto block_132; +} +block_132: +{ +if (x_46 == 0) +{ +lean_dec(x_1); +if (x_45 == 0) +{ +lean_object* x_47; lean_object* x_48; +lean_dec(x_43); lean_dec(x_42); -x_49 = lean_array_get_size(x_48); -lean_dec(x_48); -x_50 = lean_nat_dec_eq(x_49, x_40); +lean_dec(x_2); +x_47 = l_Lean_Elab_Term_elabParen___closed__3; +x_48 = l_Lean_Elab_Term_throwError___rarg(x_47, x_3, x_4); +return x_48; +} +else +{ +lean_object* x_49; lean_object* x_50; uint8_t x_51; +x_49 = l_Lean_Syntax_getArgs(x_43); +lean_dec(x_43); +x_50 = lean_array_get_size(x_49); lean_dec(x_49); -if (x_50 == 0) +x_51 = lean_nat_dec_eq(x_50, x_41); +lean_dec(x_50); +if (x_51 == 0) { -lean_object* x_51; lean_object* x_52; -lean_dec(x_41); +lean_object* x_52; lean_object* x_53; +lean_dec(x_42); lean_dec(x_2); -x_51 = l_Lean_Elab_Term_elabParen___closed__3; -x_52 = l_Lean_Elab_Term_throwError___rarg(x_1, x_51, x_3, x_4); -lean_dec(x_1); -return x_52; -} -else -{ -lean_object* x_53; -lean_dec(x_1); -x_53 = l___private_Lean_Elab_Term_19__elabCDot(x_41, x_2, x_3, x_4); +x_52 = l_Lean_Elab_Term_elabParen___closed__3; +x_53 = l_Lean_Elab_Term_throwError___rarg(x_52, x_3, x_4); return x_53; } +else +{ +lean_object* x_54; +x_54 = l___private_Lean_Elab_Term_19__elabCDot(x_42, x_2, x_3, x_4); +return x_54; +} } } else { -lean_object* x_54; uint8_t x_55; lean_object* x_98; uint8_t x_99; -x_54 = l_Lean_Syntax_getArg(x_42, x_40); -lean_dec(x_42); -x_98 = l_Lean_Parser_Term_typeAscription___elambda__1___closed__2; -lean_inc(x_54); -x_99 = l_Lean_Syntax_isOfKind(x_54, x_98); -if (x_99 == 0) +lean_object* x_55; uint8_t x_56; lean_object* x_99; uint8_t x_100; +x_55 = l_Lean_Syntax_getArg(x_43, x_41); +lean_dec(x_43); +x_99 = l_Lean_Parser_Term_typeAscription___elambda__1___closed__2; +lean_inc(x_55); +x_100 = l_Lean_Syntax_isOfKind(x_55, x_99); +if (x_100 == 0) { -lean_object* x_100; uint8_t x_101; -x_100 = l_Lean_Parser_Term_tupleTail___elambda__1___closed__2; -lean_inc(x_54); -x_101 = l_Lean_Syntax_isOfKind(x_54, x_100); -if (x_101 == 0) +lean_object* x_101; uint8_t x_102; +x_101 = l_Lean_Parser_Term_tupleTail___elambda__1___closed__2; +lean_inc(x_55); +x_102 = l_Lean_Syntax_isOfKind(x_55, x_101); +if (x_102 == 0) { -uint8_t x_102; -x_102 = 0; -x_55 = x_102; -goto block_97; +uint8_t x_103; +x_103 = 0; +x_56 = x_103; +goto block_98; } else { -lean_object* x_103; lean_object* x_104; lean_object* x_105; uint8_t x_106; -x_103 = l_Lean_Syntax_getArgs(x_54); -x_104 = lean_array_get_size(x_103); -lean_dec(x_103); -x_105 = lean_unsigned_to_nat(2u); -x_106 = lean_nat_dec_eq(x_104, x_105); +lean_object* x_104; lean_object* x_105; lean_object* x_106; uint8_t x_107; +x_104 = l_Lean_Syntax_getArgs(x_55); +x_105 = lean_array_get_size(x_104); lean_dec(x_104); -x_55 = x_106; -goto block_97; +x_106 = lean_unsigned_to_nat(2u); +x_107 = lean_nat_dec_eq(x_105, x_106); +lean_dec(x_105); +x_56 = x_107; +goto block_98; } } else { -lean_object* x_107; lean_object* x_108; lean_object* x_109; uint8_t x_110; -x_107 = l_Lean_Syntax_getArgs(x_54); -x_108 = lean_array_get_size(x_107); -lean_dec(x_107); -x_109 = lean_unsigned_to_nat(2u); -x_110 = lean_nat_dec_eq(x_108, x_109); +lean_object* x_108; lean_object* x_109; lean_object* x_110; uint8_t x_111; +x_108 = l_Lean_Syntax_getArgs(x_55); +x_109 = lean_array_get_size(x_108); lean_dec(x_108); -if (x_110 == 0) +x_110 = lean_unsigned_to_nat(2u); +x_111 = lean_nat_dec_eq(x_109, x_110); +lean_dec(x_109); +if (x_111 == 0) { -lean_object* x_111; uint8_t x_112; -x_111 = l_Lean_Parser_Term_tupleTail___elambda__1___closed__2; -lean_inc(x_54); -x_112 = l_Lean_Syntax_isOfKind(x_54, x_111); -if (x_112 == 0) +lean_object* x_112; uint8_t x_113; +x_112 = l_Lean_Parser_Term_tupleTail___elambda__1___closed__2; +lean_inc(x_55); +x_113 = l_Lean_Syntax_isOfKind(x_55, x_112); +if (x_113 == 0) { -uint8_t x_113; -x_113 = 0; -x_55 = x_113; -goto block_97; +uint8_t x_114; +x_114 = 0; +x_56 = x_114; +goto block_98; } else { -x_55 = x_110; -goto block_97; +x_56 = x_111; +goto block_98; } } else { -lean_object* x_114; lean_object* x_115; +lean_object* x_115; lean_object* x_116; lean_dec(x_2); -x_114 = l_Lean_Syntax_getArg(x_54, x_35); -lean_dec(x_54); +lean_dec(x_1); +x_115 = l_Lean_Syntax_getArg(x_55, x_36); +lean_dec(x_55); lean_inc(x_3); -x_115 = l_Lean_Elab_Term_elabType(x_114, x_3, x_4); -if (lean_obj_tag(x_115) == 0) +x_116 = l_Lean_Elab_Term_elabType(x_115, x_3, x_4); +if (lean_obj_tag(x_116) == 0) { -lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_115, 1); +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); -lean_dec(x_115); -x_118 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_118, 0, x_116); -lean_inc(x_3); +x_118 = lean_ctor_get(x_116, 1); lean_inc(x_118); -x_119 = l___private_Lean_Elab_Term_19__elabCDot(x_41, x_118, x_3, x_117); -if (lean_obj_tag(x_119) == 0) +lean_dec(x_116); +x_119 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_119, 0, x_117); +lean_inc(x_3); +lean_inc(x_119); +x_120 = l___private_Lean_Elab_Term_19__elabCDot(x_42, x_119, x_3, x_118); +if (lean_obj_tag(x_120) == 0) { -lean_object* x_120; lean_object* x_121; lean_object* x_122; -x_120 = lean_ctor_get(x_119, 0); -lean_inc(x_120); -x_121 = lean_ctor_get(x_119, 1); +lean_object* x_121; lean_object* x_122; lean_object* x_123; +x_121 = lean_ctor_get(x_120, 0); lean_inc(x_121); +x_122 = lean_ctor_get(x_120, 1); +lean_inc(x_122); +lean_dec(x_120); +x_123 = l_Lean_Elab_Term_ensureHasType(x_119, x_121, x_3, x_122); +return x_123; +} +else +{ +uint8_t x_124; lean_dec(x_119); -x_122 = l_Lean_Elab_Term_ensureHasType(x_1, x_118, x_120, x_3, x_121); -return x_122; -} -else -{ -uint8_t x_123; -lean_dec(x_118); lean_dec(x_3); -lean_dec(x_1); -x_123 = !lean_is_exclusive(x_119); -if (x_123 == 0) +x_124 = !lean_is_exclusive(x_120); +if (x_124 == 0) { -return x_119; +return x_120; } else { -lean_object* x_124; lean_object* x_125; lean_object* x_126; -x_124 = lean_ctor_get(x_119, 0); -x_125 = lean_ctor_get(x_119, 1); +lean_object* x_125; lean_object* x_126; lean_object* x_127; +x_125 = lean_ctor_get(x_120, 0); +x_126 = lean_ctor_get(x_120, 1); +lean_inc(x_126); lean_inc(x_125); -lean_inc(x_124); -lean_dec(x_119); -x_126 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_126, 0, x_124); -lean_ctor_set(x_126, 1, x_125); -return x_126; +lean_dec(x_120); +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 { -uint8_t x_127; -lean_dec(x_41); +uint8_t x_128; +lean_dec(x_42); lean_dec(x_3); -lean_dec(x_1); -x_127 = !lean_is_exclusive(x_115); -if (x_127 == 0) +x_128 = !lean_is_exclusive(x_116); +if (x_128 == 0) { -return x_115; +return x_116; } else { -lean_object* x_128; lean_object* x_129; lean_object* x_130; -x_128 = lean_ctor_get(x_115, 0); -x_129 = lean_ctor_get(x_115, 1); +lean_object* x_129; lean_object* x_130; lean_object* x_131; +x_129 = lean_ctor_get(x_116, 0); +x_130 = lean_ctor_get(x_116, 1); +lean_inc(x_130); lean_inc(x_129); -lean_inc(x_128); -lean_dec(x_115); -x_130 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_130, 0, x_128); -lean_ctor_set(x_130, 1, x_129); -return x_130; +lean_dec(x_116); +x_131 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_131, 0, x_129); +lean_ctor_set(x_131, 1, x_130); +return x_131; } } } } -block_97: +block_98: { -if (x_55 == 0) +if (x_56 == 0) { -lean_object* x_56; lean_object* x_57; -lean_dec(x_54); -lean_dec(x_41); +lean_object* x_57; lean_object* x_58; +lean_dec(x_55); +lean_dec(x_42); lean_dec(x_2); -x_56 = l_Lean_Elab_Term_elabParen___closed__3; -x_57 = l_Lean_Elab_Term_throwError___rarg(x_1, x_56, x_3, x_4); lean_dec(x_1); -return x_57; +x_57 = l_Lean_Elab_Term_elabParen___closed__3; +x_58 = l_Lean_Elab_Term_throwError___rarg(x_57, x_3, x_4); +return x_58; } else { -lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; uint8_t x_72; -x_58 = l_Lean_Syntax_getArg(x_54, x_35); -lean_dec(x_54); -x_59 = l_Lean_Syntax_getArgs(x_58); -lean_dec(x_58); -x_60 = l_Lean_mkOptionalNode___closed__2; -x_61 = lean_array_push(x_60, x_41); -x_62 = lean_unsigned_to_nat(2u); -x_63 = l_Array_empty___closed__1; -x_64 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_62, x_59, x_40, x_63); +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; +x_59 = l_Lean_Syntax_getArg(x_55, x_36); +lean_dec(x_55); +x_60 = l_Lean_Syntax_getArgs(x_59); lean_dec(x_59); -x_65 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_64, x_64, x_40, x_61); -lean_dec(x_64); -x_66 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); -x_67 = lean_ctor_get(x_66, 0); -lean_inc(x_67); -x_68 = lean_ctor_get(x_66, 1); -lean_inc(x_68); -lean_dec(x_66); -x_69 = l_Lean_Elab_Term_getEnv___rarg(x_68); -x_70 = lean_ctor_get(x_69, 1); -lean_inc(x_70); -x_71 = lean_ctor_get(x_69, 0); -lean_inc(x_71); -lean_dec(x_69); -x_72 = !lean_is_exclusive(x_70); -if (x_72 == 0) -{ -lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_73 = lean_ctor_get(x_70, 5); -x_74 = lean_ctor_get(x_3, 0); -lean_inc(x_74); -x_75 = lean_ctor_get(x_74, 3); -lean_inc(x_75); -x_76 = lean_ctor_get(x_74, 4); -lean_inc(x_76); -lean_dec(x_74); -x_77 = lean_environment_main_module(x_71); -x_78 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_78, 0, x_77); -lean_ctor_set(x_78, 1, x_67); -lean_ctor_set(x_78, 2, x_75); -lean_ctor_set(x_78, 3, x_76); -x_79 = l_Lean_Elab_Term_mkPairs(x_65, x_78, x_73); +x_61 = l_Lean_mkOptionalNode___closed__2; +x_62 = lean_array_push(x_61, x_42); +x_63 = lean_unsigned_to_nat(2u); +x_64 = l_Array_empty___closed__1; +x_65 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_63, x_60, x_41, x_64); +lean_dec(x_60); +x_66 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_65, x_65, x_41, x_62); lean_dec(x_65); -x_80 = lean_ctor_get(x_79, 0); -lean_inc(x_80); -x_81 = lean_ctor_get(x_79, 1); +x_67 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); +x_68 = lean_ctor_get(x_67, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_67, 1); +lean_inc(x_69); +lean_dec(x_67); +x_70 = l_Lean_Elab_Term_getEnv___rarg(x_69); +x_71 = lean_ctor_get(x_70, 1); +lean_inc(x_71); +x_72 = lean_ctor_get(x_70, 0); +lean_inc(x_72); +lean_dec(x_70); +x_73 = !lean_is_exclusive(x_71); +if (x_73 == 0) +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_74 = lean_ctor_get(x_71, 5); +x_75 = lean_ctor_get(x_3, 0); +lean_inc(x_75); +x_76 = lean_ctor_get(x_75, 3); +lean_inc(x_76); +x_77 = lean_ctor_get(x_75, 4); +lean_inc(x_77); +lean_dec(x_75); +x_78 = lean_environment_main_module(x_72); +x_79 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_79, 0, x_78); +lean_ctor_set(x_79, 1, x_68); +lean_ctor_set(x_79, 2, x_76); +lean_ctor_set(x_79, 3, x_77); +x_80 = l_Lean_Elab_Term_mkPairs(x_66, x_79, x_74); +lean_dec(x_66); +x_81 = lean_ctor_get(x_80, 0); lean_inc(x_81); -lean_dec(x_79); -lean_ctor_set(x_70, 5, x_81); -x_5 = x_80; -x_6 = x_70; -goto block_31; +x_82 = lean_ctor_get(x_80, 1); +lean_inc(x_82); +lean_dec(x_80); +lean_ctor_set(x_71, 5, x_82); +x_5 = x_81; +x_6 = x_71; +goto block_32; } else { -lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; -x_82 = lean_ctor_get(x_70, 0); -x_83 = lean_ctor_get(x_70, 1); -x_84 = lean_ctor_get(x_70, 2); -x_85 = lean_ctor_get(x_70, 3); -x_86 = lean_ctor_get(x_70, 4); -x_87 = lean_ctor_get(x_70, 5); +lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_83 = lean_ctor_get(x_71, 0); +x_84 = lean_ctor_get(x_71, 1); +x_85 = lean_ctor_get(x_71, 2); +x_86 = lean_ctor_get(x_71, 3); +x_87 = lean_ctor_get(x_71, 4); +x_88 = lean_ctor_get(x_71, 5); +lean_inc(x_88); lean_inc(x_87); lean_inc(x_86); lean_inc(x_85); lean_inc(x_84); lean_inc(x_83); -lean_inc(x_82); -lean_dec(x_70); -x_88 = lean_ctor_get(x_3, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_88, 3); +lean_dec(x_71); +x_89 = lean_ctor_get(x_3, 0); lean_inc(x_89); -x_90 = lean_ctor_get(x_88, 4); +x_90 = lean_ctor_get(x_89, 3); lean_inc(x_90); -lean_dec(x_88); -x_91 = lean_environment_main_module(x_71); -x_92 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_92, 0, x_91); -lean_ctor_set(x_92, 1, x_67); -lean_ctor_set(x_92, 2, x_89); -lean_ctor_set(x_92, 3, x_90); -x_93 = l_Lean_Elab_Term_mkPairs(x_65, x_92, x_87); -lean_dec(x_65); -x_94 = lean_ctor_get(x_93, 0); -lean_inc(x_94); -x_95 = lean_ctor_get(x_93, 1); +x_91 = lean_ctor_get(x_89, 4); +lean_inc(x_91); +lean_dec(x_89); +x_92 = lean_environment_main_module(x_72); +x_93 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_93, 0, x_92); +lean_ctor_set(x_93, 1, x_68); +lean_ctor_set(x_93, 2, x_90); +lean_ctor_set(x_93, 3, x_91); +x_94 = l_Lean_Elab_Term_mkPairs(x_66, x_93, x_88); +lean_dec(x_66); +x_95 = lean_ctor_get(x_94, 0); lean_inc(x_95); -lean_dec(x_93); -x_96 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_96, 0, x_82); -lean_ctor_set(x_96, 1, x_83); -lean_ctor_set(x_96, 2, x_84); -lean_ctor_set(x_96, 3, x_85); -lean_ctor_set(x_96, 4, x_86); -lean_ctor_set(x_96, 5, x_95); -x_5 = x_94; -x_6 = x_96; -goto block_31; +x_96 = lean_ctor_get(x_94, 1); +lean_inc(x_96); +lean_dec(x_94); +x_97 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_97, 0, x_83); +lean_ctor_set(x_97, 1, x_84); +lean_ctor_set(x_97, 2, x_85); +lean_ctor_set(x_97, 3, x_86); +lean_ctor_set(x_97, 4, x_87); +lean_ctor_set(x_97, 5, x_96); +x_5 = x_95; +x_6 = x_97; +goto block_32; } } } @@ -29370,75 +29711,65 @@ lean_dec(x_3); return x_6; } } -lean_object* l_Nat_foldMAux___main___at___private_Lean_Elab_Term_22__mkFreshLevelMVars___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* l_Nat_foldMAux___main___at___private_Lean_Elab_Term_22__mkFreshLevelMVars___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_7; uint8_t x_8; -x_7 = lean_unsigned_to_nat(0u); -x_8 = lean_nat_dec_eq(x_3, x_7); -if (x_8 == 0) +lean_object* x_6; uint8_t x_7; +x_6 = lean_unsigned_to_nat(0u); +x_7 = lean_nat_dec_eq(x_2, x_6); +if (x_7 == 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; -x_9 = lean_unsigned_to_nat(1u); -x_10 = lean_nat_sub(x_3, x_9); -lean_dec(x_3); -lean_inc(x_5); -x_11 = l_Lean_Elab_Term_mkFreshLevelMVar(x_1, x_5, x_6); -x_12 = lean_ctor_get(x_11, 0); +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_sub(x_2, x_8); +lean_dec(x_2); +lean_inc(x_4); +x_10 = l_Lean_Elab_Term_mkFreshLevelMVar(x_4, x_5); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); 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(1, 2, 0); -lean_ctor_set(x_14, 0, x_12); -lean_ctor_set(x_14, 1, x_4); -x_3 = x_10; -x_4 = x_14; -x_6 = x_13; +lean_dec(x_10); +x_13 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_13, 0, x_11); +lean_ctor_set(x_13, 1, x_3); +x_2 = x_9; +x_3 = x_13; +x_5 = x_12; goto _start; } else { -lean_object* x_16; -lean_dec(x_5); -lean_dec(x_3); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_4); -lean_ctor_set(x_16, 1, x_6); -return x_16; -} -} -} -lean_object* l___private_Lean_Elab_Term_22__mkFreshLevelMVars(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; lean_object* x_6; -x_5 = lean_box(0); -lean_inc(x_2); -x_6 = l_Nat_foldMAux___main___at___private_Lean_Elab_Term_22__mkFreshLevelMVars___spec__1(x_1, x_2, x_2, x_5, x_3, x_4); +lean_object* x_15; +lean_dec(x_4); lean_dec(x_2); -return x_6; +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_3); +lean_ctor_set(x_15, 1, x_5); +return x_15; } } -lean_object* l_Nat_foldMAux___main___at___private_Lean_Elab_Term_22__mkFreshLevelMVars___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* l___private_Lean_Elab_Term_22__mkFreshLevelMVars(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_7; -x_7 = l_Nat_foldMAux___main___at___private_Lean_Elab_Term_22__mkFreshLevelMVars___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_2); -lean_dec(x_1); -return x_7; -} -} -lean_object* l___private_Lean_Elab_Term_22__mkFreshLevelMVars___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l___private_Lean_Elab_Term_22__mkFreshLevelMVars(x_1, x_2, x_3, x_4); +lean_object* x_4; lean_object* x_5; +x_4 = lean_box(0); +lean_inc(x_1); +x_5 = l_Nat_foldMAux___main___at___private_Lean_Elab_Term_22__mkFreshLevelMVars___spec__1(x_1, x_1, x_4, x_2, x_3); lean_dec(x_1); return x_5; } } +lean_object* l_Nat_foldMAux___main___at___private_Lean_Elab_Term_22__mkFreshLevelMVars___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Nat_foldMAux___main___at___private_Lean_Elab_Term_22__mkFreshLevelMVars___spec__1(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_1); +return x_6; +} +} lean_object* _init_l_Lean_Elab_Term_mkConst___closed__1() { _start: { @@ -29487,351 +29818,324 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Lean_Elab_Term_mkConst(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_Elab_Term_mkConst(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_6 = l_Lean_Elab_Term_getEnv___rarg(x_5); -x_7 = lean_ctor_get(x_6, 0); +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_5 = l_Lean_Elab_Term_getEnv___rarg(x_4); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); lean_inc(x_7); -x_8 = lean_ctor_get(x_6, 1); -lean_inc(x_8); -lean_dec(x_6); -lean_inc(x_2); -x_9 = lean_environment_find(x_7, x_2); -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_dec(x_3); -x_10 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_10, 0, x_2); -x_11 = l_Lean_Elab_Term_mkConst___closed__2; -x_12 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_10); -x_13 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; -x_14 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_14, 0, x_12); -lean_ctor_set(x_14, 1, x_13); -x_15 = l_Lean_Elab_Term_throwError___rarg(x_1, x_14, x_4, x_8); -return x_15; -} -else -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_16 = lean_ctor_get(x_9, 0); -lean_inc(x_16); -lean_dec(x_9); -x_17 = l_Lean_ConstantInfo_lparams(x_16); -lean_dec(x_16); -x_18 = lean_unsigned_to_nat(0u); -x_19 = l_List_lengthAux___main___rarg(x_17, x_18); -lean_dec(x_17); -x_20 = l_List_lengthAux___main___rarg(x_3, x_18); -x_21 = lean_nat_dec_lt(x_19, x_20); -if (x_21 == 0) -{ -lean_object* x_22; lean_object* x_23; uint8_t x_24; -x_22 = lean_nat_sub(x_19, x_20); -lean_dec(x_20); -lean_dec(x_19); -x_23 = l___private_Lean_Elab_Term_22__mkFreshLevelMVars(x_1, x_22, x_4, x_8); -x_24 = !lean_is_exclusive(x_23); -if (x_24 == 0) -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_23, 0); -x_26 = l_List_append___rarg(x_3, x_25); -x_27 = l_Lean_mkConst(x_2, x_26); -lean_ctor_set(x_23, 0, x_27); -return x_23; -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_28 = lean_ctor_get(x_23, 0); -x_29 = lean_ctor_get(x_23, 1); -lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_23); -x_30 = l_List_append___rarg(x_3, x_28); -x_31 = l_Lean_mkConst(x_2, x_30); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_29); -return x_32; -} -} -else -{ -lean_object* x_33; lean_object* x_34; -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_3); -lean_dec(x_2); -x_33 = l_Lean_Elab_Term_mkConst___closed__5; -x_34 = l_Lean_Elab_Term_throwError___rarg(x_1, x_33, x_4, x_8); -return x_34; -} -} -} -} -lean_object* l_Lean_Elab_Term_mkConst___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_Lean_Elab_Term_mkConst(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_1); -return x_6; -} -} -lean_object* l_List_foldlM___main___at___private_Lean_Elab_Term_23__mkConsts___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: -{ -if (lean_obj_tag(x_4) == 0) -{ -lean_object* x_7; lean_dec(x_5); +lean_inc(x_1); +x_8 = lean_environment_find(x_6, x_1); +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_dec(x_2); -x_7 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_7, 0, x_3); -lean_ctor_set(x_7, 1, x_6); -return x_7; -} -else -{ -uint8_t x_8; -x_8 = !lean_is_exclusive(x_4); -if (x_8 == 0) -{ -lean_object* x_9; uint8_t x_10; -x_9 = lean_ctor_get(x_4, 0); -x_10 = !lean_is_exclusive(x_9); -if (x_10 == 0) -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_11 = lean_ctor_get(x_4, 1); -x_12 = lean_ctor_get(x_9, 0); -x_13 = lean_ctor_get(x_9, 1); -lean_inc(x_5); -lean_inc(x_2); -x_14 = l_Lean_Elab_Term_mkConst(x_1, x_12, x_2, x_5, x_6); -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_14, 1); -lean_inc(x_16); -lean_dec(x_14); -lean_ctor_set(x_9, 0, x_15); -lean_ctor_set(x_4, 1, x_3); -x_3 = x_4; -x_4 = x_11; -x_6 = x_16; -goto _start; -} -else -{ -uint8_t x_18; -lean_free_object(x_9); -lean_dec(x_13); -lean_free_object(x_4); -lean_dec(x_11); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_18 = !lean_is_exclusive(x_14); -if (x_18 == 0) -{ +x_9 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_9, 0, x_1); +x_10 = l_Lean_Elab_Term_mkConst___closed__2; +x_11 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_9); +x_12 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; +x_13 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_13, 0, x_11); +lean_ctor_set(x_13, 1, x_12); +x_14 = l_Lean_Elab_Term_throwError___rarg(x_13, x_3, x_7); return x_14; } else { -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_14, 0); -x_20 = lean_ctor_get(x_14, 1); -lean_inc(x_20); -lean_inc(x_19); -lean_dec(x_14); -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* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_15 = lean_ctor_get(x_8, 0); +lean_inc(x_15); +lean_dec(x_8); +x_16 = l_Lean_ConstantInfo_lparams(x_15); +lean_dec(x_15); +x_17 = lean_unsigned_to_nat(0u); +x_18 = l_List_lengthAux___main___rarg(x_16, x_17); +lean_dec(x_16); +x_19 = l_List_lengthAux___main___rarg(x_2, x_17); +x_20 = lean_nat_dec_lt(x_18, x_19); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_21 = lean_nat_sub(x_18, x_19); +lean_dec(x_19); +lean_dec(x_18); +x_22 = l___private_Lean_Elab_Term_22__mkFreshLevelMVars(x_21, x_3, x_7); +x_23 = !lean_is_exclusive(x_22); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_22, 0); +x_25 = l_List_append___rarg(x_2, x_24); +x_26 = l_Lean_mkConst(x_1, x_25); +lean_ctor_set(x_22, 0, x_26); +return x_22; } else { -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_22 = lean_ctor_get(x_4, 1); -x_23 = lean_ctor_get(x_9, 0); -x_24 = lean_ctor_get(x_9, 1); -lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_9); -lean_inc(x_5); -lean_inc(x_2); -x_25 = l_Lean_Elab_Term_mkConst(x_1, x_23, x_2, x_5, x_6); -if (lean_obj_tag(x_25) == 0) -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_25, 0); -lean_inc(x_26); -x_27 = lean_ctor_get(x_25, 1); +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_27 = lean_ctor_get(x_22, 0); +x_28 = lean_ctor_get(x_22, 1); +lean_inc(x_28); lean_inc(x_27); -lean_dec(x_25); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_26); -lean_ctor_set(x_28, 1, x_24); -lean_ctor_set(x_4, 1, x_3); -lean_ctor_set(x_4, 0, x_28); -x_3 = x_4; -x_4 = x_22; -x_6 = x_27; -goto _start; +lean_dec(x_22); +x_29 = l_List_append___rarg(x_2, x_27); +x_30 = l_Lean_mkConst(x_1, x_29); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_28); +return x_31; +} } else { -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; -lean_dec(x_24); -lean_free_object(x_4); -lean_dec(x_22); -lean_dec(x_5); -lean_dec(x_3); +lean_object* x_32; lean_object* x_33; +lean_dec(x_19); +lean_dec(x_18); lean_dec(x_2); -x_30 = lean_ctor_get(x_25, 0); -lean_inc(x_30); -x_31 = lean_ctor_get(x_25, 1); -lean_inc(x_31); -if (lean_is_exclusive(x_25)) { - lean_ctor_release(x_25, 0); - lean_ctor_release(x_25, 1); - x_32 = x_25; -} else { - lean_dec_ref(x_25); - x_32 = lean_box(0); -} -if (lean_is_scalar(x_32)) { - x_33 = lean_alloc_ctor(1, 2, 0); -} else { - x_33 = x_32; -} -lean_ctor_set(x_33, 0, x_30); -lean_ctor_set(x_33, 1, x_31); +lean_dec(x_1); +x_32 = l_Lean_Elab_Term_mkConst___closed__5; +x_33 = l_Lean_Elab_Term_throwError___rarg(x_32, x_3, x_7); return x_33; } } } +} +lean_object* l_List_foldlM___main___at___private_Lean_Elab_Term_23__mkConsts___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_6; +lean_dec(x_4); +lean_dec(x_1); +x_6 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_2); +lean_ctor_set(x_6, 1, x_5); +return x_6; +} else { -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_34 = lean_ctor_get(x_4, 0); -x_35 = lean_ctor_get(x_4, 1); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_4); -x_36 = lean_ctor_get(x_34, 0); -lean_inc(x_36); -x_37 = lean_ctor_get(x_34, 1); -lean_inc(x_37); -if (lean_is_exclusive(x_34)) { - lean_ctor_release(x_34, 0); - lean_ctor_release(x_34, 1); - x_38 = x_34; -} else { - lean_dec_ref(x_34); - x_38 = lean_box(0); -} -lean_inc(x_5); -lean_inc(x_2); -x_39 = l_Lean_Elab_Term_mkConst(x_1, x_36, x_2, x_5, x_6); -if (lean_obj_tag(x_39) == 0) +uint8_t x_7; +x_7 = !lean_is_exclusive(x_3); +if (x_7 == 0) { -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_40 = lean_ctor_get(x_39, 0); -lean_inc(x_40); -x_41 = lean_ctor_get(x_39, 1); -lean_inc(x_41); -lean_dec(x_39); -if (lean_is_scalar(x_38)) { - x_42 = lean_alloc_ctor(0, 2, 0); -} else { - x_42 = x_38; -} -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_37); -x_43 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_3); -x_3 = x_43; -x_4 = x_35; -x_6 = x_41; +lean_object* x_8; uint8_t x_9; +x_8 = lean_ctor_get(x_3, 0); +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_10 = lean_ctor_get(x_3, 1); +x_11 = lean_ctor_get(x_8, 0); +x_12 = lean_ctor_get(x_8, 1); +lean_inc(x_4); +lean_inc(x_1); +x_13 = l_Lean_Elab_Term_mkConst(x_11, x_1, x_4, x_5); +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_13, 1); +lean_inc(x_15); +lean_dec(x_13); +lean_ctor_set(x_8, 0, x_14); +lean_ctor_set(x_3, 1, x_2); +x_2 = x_3; +x_3 = x_10; +x_5 = x_15; goto _start; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -lean_dec(x_38); -lean_dec(x_37); -lean_dec(x_35); -lean_dec(x_5); -lean_dec(x_3); +uint8_t x_17; +lean_free_object(x_8); +lean_dec(x_12); +lean_free_object(x_3); +lean_dec(x_10); +lean_dec(x_4); lean_dec(x_2); -x_45 = lean_ctor_get(x_39, 0); +lean_dec(x_1); +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; +} +} +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_3, 1); +x_22 = lean_ctor_get(x_8, 0); +x_23 = lean_ctor_get(x_8, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_8); +lean_inc(x_4); +lean_inc(x_1); +x_24 = l_Lean_Elab_Term_mkConst(x_22, x_1, x_4, x_5); +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_23); +lean_ctor_set(x_3, 1, x_2); +lean_ctor_set(x_3, 0, x_27); +x_2 = x_3; +x_3 = x_21; +x_5 = x_26; +goto _start; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +lean_dec(x_23); +lean_free_object(x_3); +lean_dec(x_21); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_29 = lean_ctor_get(x_24, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_24, 1); +lean_inc(x_30); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + lean_ctor_release(x_24, 1); + x_31 = x_24; +} else { + lean_dec_ref(x_24); + x_31 = lean_box(0); +} +if (lean_is_scalar(x_31)) { + x_32 = lean_alloc_ctor(1, 2, 0); +} else { + x_32 = x_31; +} +lean_ctor_set(x_32, 0, x_29); +lean_ctor_set(x_32, 1, x_30); +return x_32; +} +} +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_33 = lean_ctor_get(x_3, 0); +x_34 = lean_ctor_get(x_3, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_3); +x_35 = lean_ctor_get(x_33, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_33, 1); +lean_inc(x_36); +if (lean_is_exclusive(x_33)) { + lean_ctor_release(x_33, 0); + lean_ctor_release(x_33, 1); + x_37 = x_33; +} else { + lean_dec_ref(x_33); + x_37 = lean_box(0); +} +lean_inc(x_4); +lean_inc(x_1); +x_38 = l_Lean_Elab_Term_mkConst(x_35, x_1, x_4, x_5); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +lean_dec(x_38); +if (lean_is_scalar(x_37)) { + x_41 = lean_alloc_ctor(0, 2, 0); +} else { + x_41 = x_37; +} +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_36); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_2); +x_2 = x_42; +x_3 = x_34; +x_5 = x_40; +goto _start; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +lean_dec(x_37); +lean_dec(x_36); +lean_dec(x_34); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_44 = lean_ctor_get(x_38, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_38, 1); lean_inc(x_45); -x_46 = lean_ctor_get(x_39, 1); -lean_inc(x_46); -if (lean_is_exclusive(x_39)) { - lean_ctor_release(x_39, 0); - lean_ctor_release(x_39, 1); - x_47 = x_39; +if (lean_is_exclusive(x_38)) { + lean_ctor_release(x_38, 0); + lean_ctor_release(x_38, 1); + x_46 = x_38; } else { - lean_dec_ref(x_39); - x_47 = lean_box(0); + lean_dec_ref(x_38); + x_46 = lean_box(0); } -if (lean_is_scalar(x_47)) { - x_48 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_46)) { + x_47 = lean_alloc_ctor(1, 2, 0); } else { - x_48 = x_47; + x_47 = x_46; } -lean_ctor_set(x_48, 0, x_45); -lean_ctor_set(x_48, 1, x_46); -return x_48; +lean_ctor_set(x_47, 0, x_44); +lean_ctor_set(x_47, 1, x_45); +return x_47; } } } } } -lean_object* l___private_Lean_Elab_Term_23__mkConsts(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_Term_23__mkConsts(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_6 = l_Lean_Elab_Term_getEnv___rarg(x_5); -x_7 = lean_ctor_get(x_6, 1); -lean_inc(x_7); -lean_dec(x_6); -x_8 = lean_box(0); -x_9 = l_List_foldlM___main___at___private_Lean_Elab_Term_23__mkConsts___spec__1(x_1, x_3, x_8, x_2, x_4, x_7); -return x_9; -} -} -lean_object* l_List_foldlM___main___at___private_Lean_Elab_Term_23__mkConsts___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_List_foldlM___main___at___private_Lean_Elab_Term_23__mkConsts___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_1); -return x_7; -} -} -lean_object* l___private_Lean_Elab_Term_23__mkConsts___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l___private_Lean_Elab_Term_23__mkConsts(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_1); -return x_6; +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_5 = l_Lean_Elab_Term_getEnv___rarg(x_4); +x_6 = lean_ctor_get(x_5, 1); +lean_inc(x_6); +lean_dec(x_5); +x_7 = lean_box(0); +x_8 = l_List_foldlM___main___at___private_Lean_Elab_Term_23__mkConsts___spec__1(x_2, x_7, x_1, x_3, x_6); +return x_8; } } lean_object* l_Lean_Elab_Term_resolveGlobalName(lean_object* x_1, lean_object* x_2, lean_object* x_3) { @@ -29971,233 +30275,224 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Lean_Elab_Term_resolveName(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* l_Lean_Elab_Term_resolveName(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_7; lean_object* x_8; -lean_inc(x_2); -x_7 = l___private_Lean_Elab_Term_21__resolveLocalName(x_2, x_5, x_6); -x_8 = lean_ctor_get(x_7, 0); +lean_object* x_6; lean_object* x_7; +lean_inc(x_1); +x_6 = l___private_Lean_Elab_Term_21__resolveLocalName(x_1, x_4, x_5); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; uint8_t x_9; +x_8 = lean_ctor_get(x_6, 1); lean_inc(x_8); -if (lean_obj_tag(x_8) == 0) +lean_dec(x_6); +x_9 = l_List_isEmpty___rarg(x_2); +if (x_9 == 0) { -lean_object* x_9; uint8_t x_10; -x_9 = lean_ctor_get(x_7, 1); -lean_inc(x_9); -lean_dec(x_7); -x_10 = l_List_isEmpty___rarg(x_3); -if (x_10 == 0) -{ -lean_object* x_11; -lean_dec(x_2); -x_11 = l___private_Lean_Elab_Term_23__mkConsts(x_1, x_3, x_4, x_5, x_9); -return x_11; +lean_object* x_10; +lean_dec(x_1); +x_10 = l___private_Lean_Elab_Term_23__mkConsts(x_2, x_3, x_4, x_8); +return x_10; } else { -lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; -lean_dec(x_3); -lean_inc(x_2); -x_12 = l_Lean_Elab_Term_resolveGlobalName(x_2, x_5, x_9); -x_13 = lean_ctor_get(x_12, 0); +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +lean_dec(x_2); +lean_inc(x_1); +x_11 = l_Lean_Elab_Term_resolveGlobalName(x_1, x_4, x_8); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); -lean_inc(x_14); +lean_dec(x_11); +x_14 = l_List_isEmpty___rarg(x_12); +if (x_14 == 0) +{ +lean_object* x_15; +lean_dec(x_1); +x_15 = l___private_Lean_Elab_Term_23__mkConsts(x_12, x_3, x_4, x_13); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; lean_dec(x_12); -x_15 = l_List_isEmpty___rarg(x_13); -if (x_15 == 0) -{ -lean_object* x_16; -lean_dec(x_2); -x_16 = l___private_Lean_Elab_Term_23__mkConsts(x_1, x_13, x_4, x_5, x_14); -return x_16; -} -else -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; -lean_dec(x_13); -lean_dec(x_4); -x_17 = l_Lean_Elab_Term_getMainModule___rarg(x_14); -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); -x_19 = lean_ctor_get(x_17, 1); -lean_inc(x_19); -lean_dec(x_17); -x_20 = l_Lean_extractMacroScopes(x_2); -x_21 = l_Lean_MacroScopesView_format(x_20, x_18); -lean_dec(x_18); -x_22 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_22, 0, x_21); -x_23 = l_Lean_Elab_Term_resolveName___closed__3; -x_24 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_22); -x_25 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; -x_26 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_26, 0, x_24); -lean_ctor_set(x_26, 1, x_25); -x_27 = l_Lean_Elab_Term_throwError___rarg(x_1, x_26, x_5, x_19); -x_28 = !lean_is_exclusive(x_27); -if (x_28 == 0) -{ -return x_27; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_27, 0); -x_30 = lean_ctor_get(x_27, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_27); -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; -} -} -} -} -else -{ -lean_object* x_32; uint8_t x_33; lean_dec(x_3); +x_16 = l_Lean_Elab_Term_getMainModule___rarg(x_13); +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_extractMacroScopes(x_1); +x_20 = l_Lean_MacroScopesView_format(x_19, x_17); +lean_dec(x_17); +x_21 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_21, 0, x_20); +x_22 = l_Lean_Elab_Term_resolveName___closed__3; +x_23 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_21); +x_24 = l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; +x_25 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +x_26 = l_Lean_Elab_Term_throwError___rarg(x_25, x_4, x_18); +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) +{ +return x_26; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_26, 0); +x_29 = lean_ctor_get(x_26, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_26); +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; +} +} +} +} +else +{ +lean_object* x_31; uint8_t x_32; lean_dec(x_2); -x_32 = lean_ctor_get(x_8, 0); -lean_inc(x_32); -lean_dec(x_8); -x_33 = !lean_is_exclusive(x_7); -if (x_33 == 0) -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; lean_object* x_38; lean_object* x_39; -x_34 = lean_ctor_get(x_7, 1); -x_35 = lean_ctor_get(x_7, 0); -lean_dec(x_35); -x_36 = lean_ctor_get(x_32, 0); -lean_inc(x_36); -x_37 = l_List_isEmpty___rarg(x_4); -lean_dec(x_4); -x_38 = lean_box(0); -x_39 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_39, 0, x_32); -lean_ctor_set(x_39, 1, x_38); -if (x_37 == 0) -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; -lean_dec(x_39); -lean_free_object(x_7); -x_40 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_40, 0, x_36); -x_41 = l_Lean_Elab_Term_resolveName___closed__6; -x_42 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_40); -x_43 = l_Lean_Elab_Term_resolveName___closed__9; -x_44 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -x_45 = l_Lean_Elab_Term_throwError___rarg(x_1, x_44, x_5, x_34); -x_46 = !lean_is_exclusive(x_45); -if (x_46 == 0) -{ -return x_45; -} -else -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = lean_ctor_get(x_45, 0); -x_48 = lean_ctor_get(x_45, 1); -lean_inc(x_48); -lean_inc(x_47); -lean_dec(x_45); -x_49 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -return x_49; -} -} -else -{ -lean_dec(x_36); -lean_dec(x_5); -lean_ctor_set(x_7, 0, x_39); -return x_7; -} -} -else -{ -lean_object* x_50; lean_object* x_51; uint8_t x_52; lean_object* x_53; lean_object* x_54; -x_50 = lean_ctor_get(x_7, 1); -lean_inc(x_50); +lean_dec(x_1); +x_31 = lean_ctor_get(x_7, 0); +lean_inc(x_31); lean_dec(x_7); -x_51 = lean_ctor_get(x_32, 0); -lean_inc(x_51); -x_52 = l_List_isEmpty___rarg(x_4); -lean_dec(x_4); -x_53 = lean_box(0); -x_54 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_54, 0, x_32); -lean_ctor_set(x_54, 1, x_53); -if (x_52 == 0) +x_32 = !lean_is_exclusive(x_6); +if (x_32 == 0) { -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; -lean_dec(x_54); -x_55 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_55, 0, x_51); -x_56 = l_Lean_Elab_Term_resolveName___closed__6; -x_57 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_57, 0, x_56); -lean_ctor_set(x_57, 1, x_55); -x_58 = l_Lean_Elab_Term_resolveName___closed__9; -x_59 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_59, 0, x_57); -lean_ctor_set(x_59, 1, x_58); -x_60 = l_Lean_Elab_Term_throwError___rarg(x_1, x_59, x_5, x_50); -x_61 = lean_ctor_get(x_60, 0); +lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; lean_object* x_37; lean_object* x_38; +x_33 = lean_ctor_get(x_6, 1); +x_34 = lean_ctor_get(x_6, 0); +lean_dec(x_34); +x_35 = lean_ctor_get(x_31, 0); +lean_inc(x_35); +x_36 = l_List_isEmpty___rarg(x_3); +lean_dec(x_3); +x_37 = lean_box(0); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_31); +lean_ctor_set(x_38, 1, x_37); +if (x_36 == 0) +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; +lean_dec(x_38); +lean_free_object(x_6); +x_39 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_39, 0, x_35); +x_40 = l_Lean_Elab_Term_resolveName___closed__6; +x_41 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_39); +x_42 = l_Lean_Elab_Term_resolveName___closed__9; +x_43 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +x_44 = l_Lean_Elab_Term_throwError___rarg(x_43, x_4, x_33); +x_45 = !lean_is_exclusive(x_44); +if (x_45 == 0) +{ +return x_44; +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_44, 0); +x_47 = lean_ctor_get(x_44, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_44); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; +} +} +else +{ +lean_dec(x_35); +lean_dec(x_4); +lean_ctor_set(x_6, 0, x_38); +return x_6; +} +} +else +{ +lean_object* x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; lean_object* x_53; +x_49 = lean_ctor_get(x_6, 1); +lean_inc(x_49); +lean_dec(x_6); +x_50 = lean_ctor_get(x_31, 0); +lean_inc(x_50); +x_51 = l_List_isEmpty___rarg(x_3); +lean_dec(x_3); +x_52 = lean_box(0); +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_31); +lean_ctor_set(x_53, 1, x_52); +if (x_51 == 0) +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +lean_dec(x_53); +x_54 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_54, 0, x_50); +x_55 = l_Lean_Elab_Term_resolveName___closed__6; +x_56 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_54); +x_57 = l_Lean_Elab_Term_resolveName___closed__9; +x_58 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_58, 0, x_56); +lean_ctor_set(x_58, 1, x_57); +x_59 = l_Lean_Elab_Term_throwError___rarg(x_58, x_4, x_49); +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_59, 1); lean_inc(x_61); -x_62 = lean_ctor_get(x_60, 1); -lean_inc(x_62); -if (lean_is_exclusive(x_60)) { - lean_ctor_release(x_60, 0); - lean_ctor_release(x_60, 1); - x_63 = x_60; +if (lean_is_exclusive(x_59)) { + lean_ctor_release(x_59, 0); + lean_ctor_release(x_59, 1); + x_62 = x_59; } else { - lean_dec_ref(x_60); - x_63 = lean_box(0); + lean_dec_ref(x_59); + x_62 = lean_box(0); } -if (lean_is_scalar(x_63)) { - x_64 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_62)) { + x_63 = lean_alloc_ctor(1, 2, 0); } else { - x_64 = x_63; + x_63 = x_62; } -lean_ctor_set(x_64, 0, x_61); -lean_ctor_set(x_64, 1, x_62); +lean_ctor_set(x_63, 0, x_60); +lean_ctor_set(x_63, 1, x_61); +return x_63; +} +else +{ +lean_object* x_64; +lean_dec(x_50); +lean_dec(x_4); +x_64 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_64, 0, x_53); +lean_ctor_set(x_64, 1, x_49); return x_64; } -else -{ -lean_object* x_65; -lean_dec(x_51); -lean_dec(x_5); -x_65 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_65, 0, x_54); -lean_ctor_set(x_65, 1, x_50); -return x_65; } } } } -} -lean_object* l_Lean_Elab_Term_resolveName___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_Elab_Term_resolveName(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_1); -return x_7; -} -} -lean_object* _init_l_Lean_Elab_Term_elabBadCDot___closed__1() { +lean_object* _init_l_Lean_Elab_Term_elabBadCDot___rarg___closed__1() { _start: { lean_object* x_1; @@ -30205,50 +30500,58 @@ x_1 = lean_mk_string("invalid occurrence of `·` notation, it must be surrounded return x_1; } } -lean_object* _init_l_Lean_Elab_Term_elabBadCDot___closed__2() { +lean_object* _init_l_Lean_Elab_Term_elabBadCDot___rarg___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_elabBadCDot___closed__1; +x_1 = l_Lean_Elab_Term_elabBadCDot___rarg___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l_Lean_Elab_Term_elabBadCDot___closed__3() { +lean_object* _init_l_Lean_Elab_Term_elabBadCDot___rarg___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_elabBadCDot___closed__2; +x_1 = l_Lean_Elab_Term_elabBadCDot___rarg___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Lean_Elab_Term_elabBadCDot(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Term_elabBadCDot___rarg(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_5; lean_object* x_6; -x_5 = l_Lean_Elab_Term_elabBadCDot___closed__3; -x_6 = l_Lean_Elab_Term_throwError___rarg(x_1, x_5, x_3, x_4); -return x_6; +lean_object* x_3; lean_object* x_4; +x_3 = l_Lean_Elab_Term_elabBadCDot___rarg___closed__3; +x_4 = l_Lean_Elab_Term_throwError___rarg(x_3, x_1, x_2); +return x_4; } } -lean_object* l_Lean_Elab_Term_elabBadCDot___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Term_elabBadCDot(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_5; -x_5 = l_Lean_Elab_Term_elabBadCDot(x_1, x_2, x_3, x_4); +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBadCDot___rarg), 2, 0); +return x_3; +} +} +lean_object* l_Lean_Elab_Term_elabBadCDot___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Elab_Term_elabBadCDot(x_1, x_2); lean_dec(x_2); lean_dec(x_1); -return x_5; +return x_3; } } lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabBadCDot___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBadCDot___boxed), 4, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBadCDot___boxed), 2, 0); return x_1; } } @@ -30300,7 +30603,7 @@ if (lean_obj_tag(x_5) == 0) { lean_object* x_6; lean_object* x_7; x_6 = l_Lean_Elab_Term_elabRawStrLit___closed__3; -x_7 = l_Lean_Elab_Term_throwError___rarg(x_1, x_6, x_3, x_4); +x_7 = l_Lean_Elab_Term_throwError___rarg(x_6, x_3, x_4); return x_7; } else @@ -30408,8 +30711,7 @@ if (lean_obj_tag(x_63) == 0) lean_object* x_64; lean_object* x_65; uint8_t x_66; lean_dec(x_2); x_64 = l_Lean_Elab_Term_elabRawStrLit___closed__3; -x_65 = l_Lean_Elab_Term_throwError___rarg(x_1, x_64, x_3, x_4); -lean_dec(x_1); +x_65 = l_Lean_Elab_Term_throwError___rarg(x_64, x_3, x_4); x_66 = !lean_is_exclusive(x_65); if (x_66 == 0) { @@ -30446,7 +30748,7 @@ uint8_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_7 = 1; x_8 = lean_box(0); lean_inc(x_3); -x_9 = l_Lean_Elab_Term_mkFreshTypeMVar(x_1, x_7, x_8, x_3, x_6); +x_9 = l_Lean_Elab_Term_mkFreshTypeMVar(x_7, x_8, x_3, x_6); x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); x_11 = lean_ctor_get(x_9, 1); @@ -30455,8 +30757,7 @@ lean_dec(x_9); x_12 = l_Lean_Expr_mvarId_x21(x_10); x_13 = lean_box(0); x_50 = l_Lean_Elab_Term_elabRawNumLit___closed__1; -lean_inc(x_1); -x_51 = l_Lean_Elab_Term_registerSyntheticMVar(x_1, x_12, x_50, x_3, x_11); +x_51 = l_Lean_Elab_Term_registerSyntheticMVar(x_12, x_50, x_3, x_11); if (lean_obj_tag(x_2) == 0) { lean_object* x_52; @@ -30477,7 +30778,7 @@ lean_inc(x_54); lean_dec(x_2); lean_inc(x_3); lean_inc(x_10); -x_55 = l_Lean_Elab_Term_isDefEq(x_1, x_54, x_10, x_3, x_53); +x_55 = l_Lean_Elab_Term_isDefEq(x_54, x_10, x_3, x_53); if (lean_obj_tag(x_55) == 0) { lean_object* x_56; @@ -30493,7 +30794,6 @@ uint8_t x_57; lean_dec(x_10); lean_dec(x_5); lean_dec(x_3); -lean_dec(x_1); x_57 = !lean_is_exclusive(x_55); if (x_57 == 0) { @@ -30519,7 +30819,7 @@ block_49: lean_object* x_15; lean_inc(x_3); lean_inc(x_10); -x_15 = l_Lean_Elab_Term_getLevel(x_1, x_10, x_3, x_14); +x_15 = l_Lean_Elab_Term_getLevel(x_10, x_3, x_14); if (lean_obj_tag(x_15) == 0) { lean_object* x_16; lean_object* x_17; lean_object* x_18; @@ -30529,7 +30829,7 @@ x_17 = lean_ctor_get(x_15, 1); lean_inc(x_17); lean_dec(x_15); lean_inc(x_3); -x_18 = l_Lean_Elab_Term_decLevel(x_1, x_16, x_3, x_17); +x_18 = l_Lean_Elab_Term_decLevel(x_16, x_3, x_17); if (lean_obj_tag(x_18) == 0) { 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; @@ -30546,7 +30846,7 @@ lean_inc(x_21); x_23 = l_Lean_mkConst(x_22, x_21); lean_inc(x_10); x_24 = l_Lean_mkApp(x_23, x_10); -x_25 = l_Lean_Elab_Term_mkInstMVar(x_1, x_24, x_3, x_20); +x_25 = l_Lean_Elab_Term_mkInstMVar(x_24, x_3, x_20); if (lean_obj_tag(x_25) == 0) { uint8_t x_26; @@ -30610,7 +30910,6 @@ uint8_t x_41; lean_dec(x_10); lean_dec(x_5); lean_dec(x_3); -lean_dec(x_1); x_41 = !lean_is_exclusive(x_18); if (x_41 == 0) { @@ -30637,7 +30936,6 @@ uint8_t x_45; lean_dec(x_10); lean_dec(x_5); lean_dec(x_3); -lean_dec(x_1); x_45 = !lean_is_exclusive(x_15); if (x_45 == 0) { @@ -30661,11 +30959,20 @@ return x_48; } } } +lean_object* l_Lean_Elab_Term_elabRawNumLit___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_Elab_Term_elabRawNumLit(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabRawNumLit___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabRawNumLit), 4, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabRawNumLit___boxed), 4, 0); return x_1; } } @@ -30687,6 +30994,7 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_unsigned_to_nat(0u); x_6 = l_Lean_Syntax_getArg(x_1, x_5); x_7 = l_Lean_Elab_Term_elabRawNumLit(x_6, x_2, x_3, x_4); +lean_dec(x_6); return x_7; } } @@ -30747,7 +31055,7 @@ if (lean_obj_tag(x_5) == 0) { lean_object* x_6; lean_object* x_7; x_6 = l_Lean_Elab_Term_elabRawStrLit___closed__3; -x_7 = l_Lean_Elab_Term_throwError___rarg(x_1, x_6, x_3, x_4); +x_7 = l_Lean_Elab_Term_throwError___rarg(x_6, x_3, x_4); return x_7; } else @@ -30851,7 +31159,7 @@ if (lean_obj_tag(x_7) == 0) { lean_object* x_8; lean_object* x_9; x_8 = l_Lean_Elab_Term_elabRawStrLit___closed__3; -x_9 = l_Lean_Elab_Term_throwError___rarg(x_1, x_8, x_3, x_4); +x_9 = l_Lean_Elab_Term_throwError___rarg(x_8, x_3, x_4); return x_9; } else @@ -30964,7 +31272,7 @@ return x_2; lean_object* l_Lean_Elab_Term_MetaHasEval___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6) { _start: { -uint8_t x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +uint8_t x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; 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_7 = 0; x_8 = 1; lean_inc(x_3); @@ -30994,304 +31302,306 @@ x_18 = l_Lean_FileMap_Inhabited___closed__1; x_19 = lean_box(0); x_20 = l_Lean_firstFrontendMacroScope; x_21 = 1; -x_22 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_22, 0, x_14); -lean_ctor_set(x_22, 1, x_17); -lean_ctor_set(x_22, 2, x_18); -lean_ctor_set(x_22, 3, x_13); -lean_ctor_set(x_22, 4, x_19); -lean_ctor_set(x_22, 5, x_15); -lean_ctor_set(x_22, 6, x_16); -lean_ctor_set(x_22, 7, x_16); -lean_ctor_set(x_22, 8, x_16); -lean_ctor_set(x_22, 9, x_20); -lean_ctor_set_uint8(x_22, sizeof(void*)*10, x_21); -lean_ctor_set_uint8(x_22, sizeof(void*)*10 + 1, x_21); -lean_ctor_set_uint8(x_22, sizeof(void*)*10 + 2, x_21); -x_23 = l_Lean_MetavarContext_Inhabited___closed__1; -x_24 = l_Lean_Meta_run___rarg___closed__5; -x_25 = l_Lean_NameGenerator_Inhabited___closed__3; -x_26 = l_Lean_TraceState_Inhabited___closed__1; -x_27 = l_Std_PersistentArray_empty___closed__3; -x_28 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_28, 0, x_2); -lean_ctor_set(x_28, 1, x_23); -lean_ctor_set(x_28, 2, x_24); -lean_ctor_set(x_28, 3, x_25); -lean_ctor_set(x_28, 4, x_26); -lean_ctor_set(x_28, 5, x_27); -x_29 = lean_unsigned_to_nat(1u); -x_30 = l_Lean_Unhygienic_run___rarg___closed__1; -x_31 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_31, 0, x_28); -lean_ctor_set(x_31, 1, x_16); -lean_ctor_set(x_31, 2, x_27); -lean_ctor_set(x_31, 3, x_29); -lean_ctor_set(x_31, 4, x_29); -lean_ctor_set(x_31, 5, x_30); -x_32 = lean_apply_2(x_4, x_22, x_31); -if (lean_obj_tag(x_32) == 0) +x_22 = lean_box(0); +x_23 = lean_alloc_ctor(0, 11, 3); +lean_ctor_set(x_23, 0, x_14); +lean_ctor_set(x_23, 1, x_17); +lean_ctor_set(x_23, 2, x_18); +lean_ctor_set(x_23, 3, x_13); +lean_ctor_set(x_23, 4, x_19); +lean_ctor_set(x_23, 5, x_15); +lean_ctor_set(x_23, 6, x_16); +lean_ctor_set(x_23, 7, x_16); +lean_ctor_set(x_23, 8, x_16); +lean_ctor_set(x_23, 9, x_20); +lean_ctor_set(x_23, 10, x_22); +lean_ctor_set_uint8(x_23, sizeof(void*)*11, x_21); +lean_ctor_set_uint8(x_23, sizeof(void*)*11 + 1, x_21); +lean_ctor_set_uint8(x_23, sizeof(void*)*11 + 2, x_21); +x_24 = l_Lean_MetavarContext_Inhabited___closed__1; +x_25 = l_Lean_Meta_run___rarg___closed__5; +x_26 = l_Lean_NameGenerator_Inhabited___closed__3; +x_27 = l_Lean_TraceState_Inhabited___closed__1; +x_28 = l_Std_PersistentArray_empty___closed__3; +x_29 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_29, 0, x_2); +lean_ctor_set(x_29, 1, x_24); +lean_ctor_set(x_29, 2, x_25); +lean_ctor_set(x_29, 3, x_26); +lean_ctor_set(x_29, 4, x_27); +lean_ctor_set(x_29, 5, x_28); +x_30 = lean_unsigned_to_nat(1u); +x_31 = l_Lean_Unhygienic_run___rarg___closed__1; +x_32 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_32, 0, x_29); +lean_ctor_set(x_32, 1, x_16); +lean_ctor_set(x_32, 2, x_28); +lean_ctor_set(x_32, 3, x_30); +lean_ctor_set(x_32, 4, x_30); +lean_ctor_set(x_32, 5, x_31); +x_33 = lean_apply_2(x_4, x_23, x_32); +if (lean_obj_tag(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_32, 0); -lean_inc(x_33); -x_34 = lean_ctor_get(x_32, 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_33, 0); lean_inc(x_34); -lean_dec(x_32); -x_35 = lean_ctor_get(x_34, 2); +x_35 = lean_ctor_get(x_33, 1); lean_inc(x_35); -x_36 = lean_ctor_get(x_34, 0); -lean_inc(x_36); -lean_dec(x_34); -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -lean_dec(x_36); -x_38 = l_Lean_Elab_Term_MetaHasEval___rarg___closed__2; -x_39 = l_Std_PersistentArray_forM___at___private_Lean_Parser_Module_4__testModuleParserAux___main___spec__6(x_38, x_35, x_6); -lean_dec(x_35); -if (lean_obj_tag(x_39) == 0) -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_39, 1); -lean_inc(x_40); -lean_dec(x_39); -x_41 = lean_box(x_21); -x_42 = lean_apply_5(x_1, x_37, x_3, x_33, x_41, x_40); -return x_42; -} -else -{ -uint8_t x_43; -lean_dec(x_37); lean_dec(x_33); -lean_dec(x_3); -lean_dec(x_1); -x_43 = !lean_is_exclusive(x_39); -if (x_43 == 0) +x_36 = lean_ctor_get(x_35, 2); +lean_inc(x_36); +x_37 = lean_ctor_get(x_35, 0); +lean_inc(x_37); +lean_dec(x_35); +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +lean_dec(x_37); +x_39 = l_Lean_Elab_Term_MetaHasEval___rarg___closed__2; +x_40 = l_Std_PersistentArray_forM___at___private_Lean_Parser_Module_4__testModuleParserAux___main___spec__6(x_39, x_36, x_6); +lean_dec(x_36); +if (lean_obj_tag(x_40) == 0) { -return x_39; +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_40, 1); +lean_inc(x_41); +lean_dec(x_40); +x_42 = lean_box(x_21); +x_43 = lean_apply_5(x_1, x_38, x_3, x_34, x_42, x_41); +return x_43; } else { -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_39, 0); -x_45 = lean_ctor_get(x_39, 1); +uint8_t x_44; +lean_dec(x_38); +lean_dec(x_34); +lean_dec(x_3); +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_inc(x_44); -lean_dec(x_39); -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; +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 { -lean_object* x_47; -lean_dec(x_3); -lean_dec(x_1); -x_47 = lean_ctor_get(x_32, 0); -lean_inc(x_47); -if (lean_obj_tag(x_47) == 0) -{ lean_object* x_48; -x_48 = lean_ctor_get(x_47, 0); +lean_dec(x_3); +lean_dec(x_1); +x_48 = lean_ctor_get(x_33, 0); lean_inc(x_48); -lean_dec(x_47); if (lean_obj_tag(x_48) == 0) { -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_49 = lean_ctor_get(x_32, 1); +lean_object* x_49; +x_49 = lean_ctor_get(x_48, 0); lean_inc(x_49); -lean_dec(x_32); -x_50 = lean_ctor_get(x_48, 0); -lean_inc(x_50); lean_dec(x_48); -x_51 = lean_ctor_get(x_49, 2); +if (lean_obj_tag(x_49) == 0) +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_50 = lean_ctor_get(x_33, 1); +lean_inc(x_50); +lean_dec(x_33); +x_51 = lean_ctor_get(x_49, 0); lean_inc(x_51); lean_dec(x_49); -x_52 = l_Lean_Message_toString(x_50); -x_53 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_53, 0, x_52); -x_54 = l_Lean_Options_empty; -x_55 = l_Lean_Format_pretty(x_53, x_54); -x_56 = lean_alloc_ctor(18, 1, 0); -lean_ctor_set(x_56, 0, x_55); -x_57 = l_Lean_Elab_Term_MetaHasEval___rarg___closed__2; -x_58 = l_Std_PersistentArray_forM___at___private_Lean_Parser_Module_4__testModuleParserAux___main___spec__6(x_57, x_51, x_6); -lean_dec(x_51); -if (lean_obj_tag(x_58) == 0) +x_52 = lean_ctor_get(x_50, 2); +lean_inc(x_52); +lean_dec(x_50); +x_53 = l_Lean_Message_toString(x_51); +x_54 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_54, 0, x_53); +x_55 = l_Lean_Options_empty; +x_56 = l_Lean_Format_pretty(x_54, x_55); +x_57 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_57, 0, x_56); +x_58 = l_Lean_Elab_Term_MetaHasEval___rarg___closed__2; +x_59 = l_Std_PersistentArray_forM___at___private_Lean_Parser_Module_4__testModuleParserAux___main___spec__6(x_58, x_52, x_6); +lean_dec(x_52); +if (lean_obj_tag(x_59) == 0) { -uint8_t x_59; -x_59 = !lean_is_exclusive(x_58); -if (x_59 == 0) +uint8_t x_60; +x_60 = !lean_is_exclusive(x_59); +if (x_60 == 0) { -lean_object* x_60; -x_60 = lean_ctor_get(x_58, 0); -lean_dec(x_60); -lean_ctor_set_tag(x_58, 1); -lean_ctor_set(x_58, 0, x_56); -return x_58; +lean_object* x_61; +x_61 = lean_ctor_get(x_59, 0); +lean_dec(x_61); +lean_ctor_set_tag(x_59, 1); +lean_ctor_set(x_59, 0, x_57); +return x_59; } else { -lean_object* x_61; lean_object* x_62; -x_61 = lean_ctor_get(x_58, 1); -lean_inc(x_61); -lean_dec(x_58); -x_62 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_62, 0, x_56); -lean_ctor_set(x_62, 1, x_61); -return x_62; +lean_object* x_62; lean_object* x_63; +x_62 = lean_ctor_get(x_59, 1); +lean_inc(x_62); +lean_dec(x_59); +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_57); +lean_ctor_set(x_63, 1, x_62); +return x_63; } } else { -uint8_t x_63; -lean_dec(x_56); -x_63 = !lean_is_exclusive(x_58); -if (x_63 == 0) +uint8_t x_64; +lean_dec(x_57); +x_64 = !lean_is_exclusive(x_59); +if (x_64 == 0) { -return x_58; +return x_59; } else { -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_58, 0); -x_65 = lean_ctor_get(x_58, 1); +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_59, 0); +x_66 = lean_ctor_get(x_59, 1); +lean_inc(x_66); lean_inc(x_65); -lean_inc(x_64); -lean_dec(x_58); -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; +lean_dec(x_59); +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 { -lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_67 = lean_ctor_get(x_32, 1); -lean_inc(x_67); -lean_dec(x_32); -x_68 = lean_ctor_get(x_67, 2); +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_68 = lean_ctor_get(x_33, 1); lean_inc(x_68); -lean_dec(x_67); -x_69 = l_Lean_Elab_Term_MetaHasEval___rarg___closed__2; -x_70 = l_Std_PersistentArray_forM___at___private_Lean_Parser_Module_4__testModuleParserAux___main___spec__6(x_69, x_68, x_6); +lean_dec(x_33); +x_69 = lean_ctor_get(x_68, 2); +lean_inc(x_69); lean_dec(x_68); -if (lean_obj_tag(x_70) == 0) +x_70 = l_Lean_Elab_Term_MetaHasEval___rarg___closed__2; +x_71 = l_Std_PersistentArray_forM___at___private_Lean_Parser_Module_4__testModuleParserAux___main___spec__6(x_70, x_69, x_6); +lean_dec(x_69); +if (lean_obj_tag(x_71) == 0) { -uint8_t x_71; -x_71 = !lean_is_exclusive(x_70); -if (x_71 == 0) +uint8_t x_72; +x_72 = !lean_is_exclusive(x_71); +if (x_72 == 0) { -lean_object* x_72; lean_object* x_73; -x_72 = lean_ctor_get(x_70, 0); -lean_dec(x_72); -x_73 = l_Lean_Elab_Term_MetaHasEval___rarg___closed__4; -lean_ctor_set_tag(x_70, 1); -lean_ctor_set(x_70, 0, x_73); -return x_70; +lean_object* x_73; lean_object* x_74; +x_73 = lean_ctor_get(x_71, 0); +lean_dec(x_73); +x_74 = l_Lean_Elab_Term_MetaHasEval___rarg___closed__4; +lean_ctor_set_tag(x_71, 1); +lean_ctor_set(x_71, 0, x_74); +return x_71; } else { -lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_74 = lean_ctor_get(x_70, 1); -lean_inc(x_74); -lean_dec(x_70); -x_75 = l_Lean_Elab_Term_MetaHasEval___rarg___closed__4; -x_76 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_76, 0, x_75); -lean_ctor_set(x_76, 1, x_74); -return x_76; +lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_75 = lean_ctor_get(x_71, 1); +lean_inc(x_75); +lean_dec(x_71); +x_76 = l_Lean_Elab_Term_MetaHasEval___rarg___closed__4; +x_77 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_75); +return x_77; } } else { -uint8_t x_77; -x_77 = !lean_is_exclusive(x_70); -if (x_77 == 0) +uint8_t x_78; +x_78 = !lean_is_exclusive(x_71); +if (x_78 == 0) { -return x_70; +return x_71; } else { -lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_78 = lean_ctor_get(x_70, 0); -x_79 = lean_ctor_get(x_70, 1); +lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_79 = lean_ctor_get(x_71, 0); +x_80 = lean_ctor_get(x_71, 1); +lean_inc(x_80); lean_inc(x_79); -lean_inc(x_78); -lean_dec(x_70); -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_dec(x_71); +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; } } } } else { -lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_81 = lean_ctor_get(x_32, 1); -lean_inc(x_81); -lean_dec(x_32); -x_82 = lean_ctor_get(x_81, 2); +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_82 = lean_ctor_get(x_33, 1); lean_inc(x_82); -lean_dec(x_81); -x_83 = l_Lean_Elab_Term_MetaHasEval___rarg___closed__2; -x_84 = l_Std_PersistentArray_forM___at___private_Lean_Parser_Module_4__testModuleParserAux___main___spec__6(x_83, x_82, x_6); +lean_dec(x_33); +x_83 = lean_ctor_get(x_82, 2); +lean_inc(x_83); lean_dec(x_82); -if (lean_obj_tag(x_84) == 0) +x_84 = l_Lean_Elab_Term_MetaHasEval___rarg___closed__2; +x_85 = l_Std_PersistentArray_forM___at___private_Lean_Parser_Module_4__testModuleParserAux___main___spec__6(x_84, x_83, x_6); +lean_dec(x_83); +if (lean_obj_tag(x_85) == 0) { -uint8_t x_85; -x_85 = !lean_is_exclusive(x_84); -if (x_85 == 0) +uint8_t x_86; +x_86 = !lean_is_exclusive(x_85); +if (x_86 == 0) { -lean_object* x_86; lean_object* x_87; -x_86 = lean_ctor_get(x_84, 0); -lean_dec(x_86); -x_87 = l_Lean_Elab_Term_MetaHasEval___rarg___closed__6; -lean_ctor_set_tag(x_84, 1); -lean_ctor_set(x_84, 0, x_87); -return x_84; +lean_object* x_87; lean_object* x_88; +x_87 = lean_ctor_get(x_85, 0); +lean_dec(x_87); +x_88 = l_Lean_Elab_Term_MetaHasEval___rarg___closed__6; +lean_ctor_set_tag(x_85, 1); +lean_ctor_set(x_85, 0, x_88); +return x_85; } else { -lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_88 = lean_ctor_get(x_84, 1); -lean_inc(x_88); -lean_dec(x_84); -x_89 = l_Lean_Elab_Term_MetaHasEval___rarg___closed__6; -x_90 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_90, 0, x_89); -lean_ctor_set(x_90, 1, x_88); -return x_90; +lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_89 = lean_ctor_get(x_85, 1); +lean_inc(x_89); +lean_dec(x_85); +x_90 = l_Lean_Elab_Term_MetaHasEval___rarg___closed__6; +x_91 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_91, 0, x_90); +lean_ctor_set(x_91, 1, x_89); +return x_91; } } else { -uint8_t x_91; -x_91 = !lean_is_exclusive(x_84); -if (x_91 == 0) +uint8_t x_92; +x_92 = !lean_is_exclusive(x_85); +if (x_92 == 0) { -return x_84; +return x_85; } else { -lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_92 = lean_ctor_get(x_84, 0); -x_93 = lean_ctor_get(x_84, 1); +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_85, 0); +x_94 = lean_ctor_get(x_85, 1); +lean_inc(x_94); lean_inc(x_93); -lean_inc(x_92); -lean_dec(x_84); -x_94 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_94, 0, x_92); -lean_ctor_set(x_94, 1, x_93); -return x_94; +lean_dec(x_85); +x_95 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_95, 0, x_93); +lean_ctor_set(x_95, 1, x_94); +return x_95; } } } @@ -31894,12 +32204,12 @@ l_Lean_Elab_Term_resolveName___closed__8 = _init_l_Lean_Elab_Term_resolveName___ lean_mark_persistent(l_Lean_Elab_Term_resolveName___closed__8); l_Lean_Elab_Term_resolveName___closed__9 = _init_l_Lean_Elab_Term_resolveName___closed__9(); lean_mark_persistent(l_Lean_Elab_Term_resolveName___closed__9); -l_Lean_Elab_Term_elabBadCDot___closed__1 = _init_l_Lean_Elab_Term_elabBadCDot___closed__1(); -lean_mark_persistent(l_Lean_Elab_Term_elabBadCDot___closed__1); -l_Lean_Elab_Term_elabBadCDot___closed__2 = _init_l_Lean_Elab_Term_elabBadCDot___closed__2(); -lean_mark_persistent(l_Lean_Elab_Term_elabBadCDot___closed__2); -l_Lean_Elab_Term_elabBadCDot___closed__3 = _init_l_Lean_Elab_Term_elabBadCDot___closed__3(); -lean_mark_persistent(l_Lean_Elab_Term_elabBadCDot___closed__3); +l_Lean_Elab_Term_elabBadCDot___rarg___closed__1 = _init_l_Lean_Elab_Term_elabBadCDot___rarg___closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_elabBadCDot___rarg___closed__1); +l_Lean_Elab_Term_elabBadCDot___rarg___closed__2 = _init_l_Lean_Elab_Term_elabBadCDot___rarg___closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_elabBadCDot___rarg___closed__2); +l_Lean_Elab_Term_elabBadCDot___rarg___closed__3 = _init_l_Lean_Elab_Term_elabBadCDot___rarg___closed__3(); +lean_mark_persistent(l_Lean_Elab_Term_elabBadCDot___rarg___closed__3); l___regBuiltin_Lean_Elab_Term_elabBadCDot___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabBadCDot___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabBadCDot___closed__1); res = l___regBuiltin_Lean_Elab_Term_elabBadCDot(lean_io_mk_world()); diff --git a/stage0/stdlib/Lean/Meta/EqnCompiler.c b/stage0/stdlib/Lean/Meta/EqnCompiler.c index 708e1794a3..45b53b5091 100644 --- a/stage0/stdlib/Lean/Meta/EqnCompiler.c +++ b/stage0/stdlib/Lean/Meta/EqnCompiler.c @@ -14,13 +14,13 @@ extern "C" { #endif lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); -extern lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__2; +extern lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__2; lean_object* l___private_Lean_Meta_EqnCompiler_1__regTraceClasses(lean_object*); lean_object* l___private_Lean_Meta_EqnCompiler_1__regTraceClasses(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__2; +x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__2; x_3 = l_Lean_registerTraceClass(x_2, x_1); return x_3; } diff --git a/stage0/stdlib/Lean/Meta/EqnCompiler/DepElim.c b/stage0/stdlib/Lean/Meta/EqnCompiler/DepElim.c index 064ea87252..09acd4774c 100644 --- a/stage0/stdlib/Lean/Meta/EqnCompiler/DepElim.c +++ b/stage0/stdlib/Lean/Meta/EqnCompiler/DepElim.c @@ -13,559 +13,553 @@ #ifdef __cplusplus extern "C" { #endif +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__8(lean_object*, lean_object*, lean_object*); lean_object* l_List_reverse___rarg(lean_object*); -lean_object* l_List_filterAuxM___main___at___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__3; -uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_19__isArrayLitTransition(lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux(lean_object*); +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__3(lean_object*); extern lean_object* l_Lean_mkHole___closed__3; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux(lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyFVarSubst___main___spec__3(lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Example_replaceFVarId___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyMVarRenaming___main___spec__1(lean_object*, lean_object*); +lean_object* l_Lean_Meta_DepElim_mkElim___lambda__2___closed__2; lean_object* l_Lean_Meta_DepElim_Pattern_toMessageData___main___closed__11; -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__3(lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_23__processVariable___closed__2; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___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* l___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___closed__3; extern lean_object* l_Lean_Closure_mkNewLevelParam___closed__2; lean_object* l_Lean_Meta_DepElim_Pattern_toIPattern___main___closed__1; -uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_13__isNextVar(lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__1___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_21__processLeaf___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__5; +uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_12__isNextVar(lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_14__isVariableTransition___boxed(lean_object*); lean_object* l_Lean_Expr_mvarId_x21(lean_object*); +lean_object* l_Std_HashSetImp_expand___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__2(lean_object*, lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___spec__1___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__4(lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_ExprDefEq_8__checkTypesAndAssign___closed__7; -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__5(lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__6(lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___spec__1(lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Lean_mkSort(lean_object*); -lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__5(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__8; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__1; lean_object* l_Lean_Meta_DepElim_Pattern_toMessageData___boxed(lean_object*, lean_object*); +lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__6(lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___main___at_Lean_Meta_DepElim_Problem_toMessageData___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Alt_applyFVarSubst(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_elem___main___at___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___spec__2___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_23__processVariable___closed__1; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__4; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main(lean_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_EqnCompiler_DepElim_24__processConstructor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_unreachable_x21___rarg(lean_object*); lean_object* l_Lean_Meta_DepElim_Example_toMessageData___main___closed__2; +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__2(lean_object*); lean_object* l___private_Lean_Expr_3__getAppArgsAux___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_counterExampleToMessageData(lean_object*); -uint8_t l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_14__hasAsPattern___spec__1(uint8_t, lean_object*); +lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__12(lean_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_DepElim_Pattern_instantiateMVars___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__6___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_18__isArrayLitTransition(lean_object*); lean_object* l_Lean_Meta_DepElim_Example_toMessageData___main___closed__3; lean_object* l_List_foldlM___main___at_Lean_Meta_DepElim_getUnusedLevelParam___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__3(lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__9(lean_object*); extern lean_object* l_Lean_MessageData_ofList___closed__3; +lean_object* l_Nat_foldAux___main___at_Lean_Meta_DepElim_mkElim___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); -uint8_t l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_16__isConstructorTransition___spec__1(uint8_t, lean_object*); lean_object* l_Lean_Meta_DepElim_Problem_toMessageData___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__2; +uint8_t l_Std_HashSetImp_contains___at_Lean_Meta_DepElim_mkElim___spec__3(lean_object*, lean_object*); +lean_object* l_Lean_Meta_DepElim_mkElim___lambda__1___closed__4; +lean_object* l_Lean_Meta_DepElim_mkElim___lambda__1___closed__1; extern lean_object* l_Lean_Meta_withIncRecDepth___rarg___closed__3; -lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_19__isArrayLitTransition___spec__1(lean_object*, lean_object*); -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_DepElim_mkElimCore___closed__2; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___closed__3; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition___boxed(lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_33__collectArraySizes___boxed(lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition___closed__1; lean_object* l_Lean_Meta_DepElim_Problem_toMessageData___lambda__1___closed__1; -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processVariable___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkForall(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Pattern_toIPattern___main___spec__3___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_30__processComplete___closed__4; lean_object* l_Lean_Meta_withLocalContext___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_DepElim_mkElim___lambda__1___closed__6; lean_object* l_List_foldl___main___at_Lean_Meta_DepElim_Pattern_toMessageData___main___spec__1___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__9(lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__4; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__2; +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__2___boxed(lean_object*, lean_object*); +lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__6___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__6(lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_11__isDone___boxed(lean_object*); lean_object* l_Lean_Meta_DepElim_Problem_toMessageData___lambda__1___closed__4; -lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_19__isArrayLitTransition___spec__1___boxed(lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__8; +lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_30__collectValues___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Alt_copy(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_ref___rarg(lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux(lean_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_EqnCompiler_DepElim_23__processVariable___closed__3; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___closed__3; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__1; -lean_object* l_Std_HashSetImp_moveEntries___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processLeaf___spec__3(lean_object*, lean_object*, lean_object*); +lean_object* l_List_replace___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__5___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___closed__2; +lean_object* l_Lean_Meta_DepElim_mkElim___lambda__1___closed__8; +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Array_extract___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_toIPattern___main(lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Problem_toMessageData___lambda__1___closed__2; -lean_object* l_Lean_Meta_DepElim_mkElimCore___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_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_28__expandAlt___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Example_applyFVarSubst___main___spec__2(lean_object*, lean_object*); lean_object* lean_metavar_ctx_get_expr_assignment(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_37__mkElimSort(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___rarg___closed__1; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux(lean_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_EqnCompiler_DepElim_29__processComplete___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___closed__1; lean_object* l_Lean_Meta_DepElim_Pattern_applyFVarSubst___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_36__mkElimSort(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Problem_toMessageData___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___closed__3; +lean_object* l_Std_HashSetImp_insert___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__1(lean_object*, lean_object*); lean_object* l_Lean_mkMVar(lean_object*); +lean_object* l_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_28__expandAlt___spec__1___boxed(lean_object*, lean_object*, 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_EqnCompiler_DepElim_33__processValue(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_18__isValueTransition___spec__1___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_30__processComplete(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Problem_toMessageData___lambda__1___closed__6; lean_object* l_Lean_Meta_withExistingLocalDecls___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_environment_find(lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___spec__3(lean_object*, lean_object*); -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___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*); -lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__5___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__8; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___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_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__5(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__1; lean_object* l_Lean_Meta_DepElim_Pattern_toMessageData___main(uint8_t, lean_object*); lean_object* l_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_4__copyMVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__9; -lean_object* l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__12; -lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_17__isCompleteTransition___spec__1(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__2; +lean_object* l_Std_HashSetImp_moveEntries___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_examplesToMessageData(lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___closed__1; lean_object* l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__4(lean_object*, lean_object*); +lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__8(lean_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_EqnCompiler_DepElim_24__processConstructor___closed__1; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_append___rarg(lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__7(lean_object*, lean_object*); lean_object* l_Lean_MessageData_arrayExpr_toMessageData___main(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_1__convertMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__4; lean_object* l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_5__checkNumPatterns___spec__1___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_MessageData_arrayExpr_toMessageData___main___closed__1; lean_object* l_List_map___main___at_Lean_Meta_DepElim_Pattern_toMessageData___main___spec__2___boxed(lean_object*, lean_object*); -lean_object* l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_15__isVariableTransition___spec__1___boxed(lean_object*, lean_object*); +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__5(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_getUnusedLevelParam___closed__2; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__4; lean_object* l_List_mapM___main___at_Lean_Meta_DepElim_Pattern_toExpr___main___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___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_EqnCompiler_DepElim_20__processNonVariable___closed__3; -lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__collectValues___spec__1(lean_object*, lean_object*); -lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__6(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___rarg___closed__2; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_11__withAlts___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_HashSetImp_insert___at___private_Lean_Meta_EqnCompiler_DepElim_21__processLeaf___spec__1(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__2; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__3; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__1; +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__7(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_unitToExpr___lambda__1___closed__5; -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__2___boxed(lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__1(lean_object*, lean_object*); +lean_object* l_Lean_Meta_DepElim_mkElim___lambda__1___closed__2; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___closed__3; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main(lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__7; lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_Lean_Meta_getEnv___boxed(lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_DepElim_mkElim___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__7(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_23__isFirstPatternCtor___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Meta_DepElim_mkElim___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___private_Lean_Meta_EqnCompiler_DepElim_32__processValue(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___main___at_Lean_Meta_DepElim_mkElim___spec__1(lean_object*); lean_object* l_List_mapM___main___at_Lean_Meta_DepElim_Pattern_toExpr___main___spec__1(uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_withGoalOf___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_8__mkThunk(lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_toMessageData___main___boxed(lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofList(lean_object*); -uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_15__isVariableTransition(lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__mkThunk(lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__9(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_EqnCompiler_DepElim_34__collectArraySizes___boxed(lean_object*); lean_object* l_Lean_Meta_MVarRenaming_apply(lean_object*, lean_object*); -lean_object* l_Lean_Meta_DepElim_mkElim___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_HashSetImp_contains___at_Lean_Meta_DepElim_mkElim___spec__3___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Meta_DepElim_mkElim___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_Meta_EqnCompiler_DepElim_6__localDeclsToMVarsAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn___main(lean_object*); -lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_17__isCompleteTransition___spec__1___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__1; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__2; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__9; +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__2___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_getAppArgs___closed__1; +uint8_t l_List_elem___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__2(lean_object*, lean_object*); +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__2(lean_object*, lean_object*); lean_object* l_Std_mkHashSetImp___rarg(lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__6; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_31__collectValues(lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_10__withAlts___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_15__isConstructorTransition___spec__1(uint8_t, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_contains___at_Lean_Meta_CheckAssignment_check___main___spec__2(lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__3(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_LocalContext_contains(lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_applyFVarSubst___main(lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Alt_applyFVarSubst___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_ref___rarg___boxed(lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Pattern_toIPattern___main___spec__2(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___closed__2; lean_object* l_List_map___main___at_Lean_Meta_DepElim_Pattern_toIPattern___main___spec__2___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___rarg___closed__3; +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__4; +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___spec__1(lean_object*, lean_object*); +lean_object* l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__1___boxed(lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Example_replaceFVarId___main___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___closed__2; lean_object* l_Lean_Meta_DepElim_Pattern_toExpr(uint8_t, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___closed__2; lean_object* l_Lean_Meta_DepElim_Alt_toMessageData___closed__3; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__3; lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_2__convertMVars___closed__1; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___closed__1; lean_object* l_Lean_Meta_mkAuxDefinition(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Example_replaceFVarId___main___spec__2(lean_object*, lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__7(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___closed__2; +lean_object* l_Lean_Meta_DepElim_mkElim___lambda__1___closed__9; +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__1(lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Pattern_toMessageData___main___spec__2(uint8_t, lean_object*); uint8_t l_List_elem___main___at_Lean_Occurrences_contains___spec__1(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_26__throwInductiveTypeExpected___rarg___closed__3; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_8__localDeclsToMVars(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__5; +lean_object* l_Array_iterateMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__9(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_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition___spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__5; lean_object* l_Lean_Meta_DepElim_Alt_toMessageData(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_7__localDeclsToMVarsAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppNumArgsAux___main(lean_object*, lean_object*); uint8_t lean_metavar_ctx_is_expr_assigned(lean_object*, lean_object*); lean_object* l_List_mapM___main___at_Lean_Meta_DepElim_Pattern_instantiateMVars___main___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_toMessageData___main___closed__10; -lean_object* l_List_replace___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processLeaf___spec__5(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_7__localDeclsToMVars(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Meta_MVarRenaming_isEmpty(lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Alt_copyCore___spec__1(lean_object*, lean_object*); -lean_object* l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_16__isConstructorTransition___spec__1___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Alt_Inhabited; -uint8_t l_List_elem___main___at___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_applyFVarSubst(lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Pattern_toIPattern___main___spec__3(lean_object*, lean_object*); -lean_object* l_Lean_Meta_DepElim_mkElimCore___lambda__2___closed__3; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___closed__3; lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_3__copyMVar(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__7; lean_object* l_Lean_CollectLevelParams_State_getUnusedLevelParam(lean_object*, lean_object*); lean_object* l_List_mapM___main___at_Lean_Meta_DepElim_Pattern_instantiateMVars___main___spec__2(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition___spec__1___boxed(lean_object*, lean_object*); +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__5___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_applyMVarRenaming___main(lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__12___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_Expr_Inhabited___closed__1; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_17__isValueTransition___boxed(lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__7___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__5; +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_applyMVarRenaming(lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processVariable___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Example_replaceFVarId___main___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Pattern_toIPattern___main___spec__1___boxed(lean_object*, lean_object*); +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__4___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_getUnusedLevelParam___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_toExpr___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_15__isConstructorTransition___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_getUnusedLevelParam___closed__1; -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__3___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_DepElim_mkElimTester(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__3; lean_object* lean_nat_sub(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___closed__3; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_21__processLeaf(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__3___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__5; lean_object* l_Lean_Meta_throwOther___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Alt_toMessageData___spec__1(lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_17__isCompleteTransition___boxed(lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__5(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_instantiateMVars___main___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Example_applyFVarSubst___main___spec__2___boxed(lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyMVarRenaming___main___spec__2(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_17__isCompleteTransition___closed__1; lean_object* l_List_mapM___main___at_Lean_Meta_DepElim_Pattern_instantiateMVars___main___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Alt_toMessageData___spec__2(lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_toIPattern___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_getArrayArgType(lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_36__mkElimSort___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__collectArraySizes___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Meta_FVarSubst_apply(lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_Inhabited___boxed(lean_object*); lean_object* l_Lean_Meta_DepElim_Problem_toMessageData___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Example_applyFVarSubst___main___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Problem_toMessageData___lambda__1___closed__5; -uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_18__isValueTransition(lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__3___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__4; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_12__isDone___boxed(lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg___closed__3; +lean_object* l_Lean_Meta_DepElim_mkElim___lambda__1___closed__11; lean_object* l_Lean_Meta_DepElim_Example_applyFVarSubst___main(lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_toMessageData___main___closed__7; lean_object* l_Lean_Meta_DepElim_Problem_toMessageData(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_DepElim_mkElimCore(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_32__isFirstPatternVar___boxed(lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_caseValue___closed__2; -lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__collectArraySizes___spec__1(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__3; lean_object* l_List_map___main___at_Lean_Meta_DepElim_Alt_applyFVarSubst___spec__1(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_arrayHasFormat___rarg___closed__1; lean_object* l_Lean_Expr_fvarId_x21(lean_object*); -lean_object* l_Lean_Meta_DepElim_mkElim___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_unitToExpr___closed__1; -lean_object* l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__9; +uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_17__isValueTransition(lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_30__processComplete___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_30__processComplete___closed__1; +lean_object* l_Lean_Meta_DepElim_mkElim___closed__1; +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_lengthAux___main___rarg(lean_object*, lean_object*); +lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Name_appendIndexAfter(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__6; lean_object* l_Lean_Meta_DepElim_getUnusedLevelParam___closed__3; -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__8(lean_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_EqnCompiler_DepElim_15__isConstructorTransition___boxed(lean_object*); lean_object* l_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_2__convertMVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Problem_toMessageData___lambda__1___closed__3; lean_object* l_Lean_Meta_DepElim_Problem_Inhabited___closed__1; lean_object* l_Lean_Meta_DepElim_Example_applyFVarSubst(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__2; lean_object* l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__2; +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__1___boxed(lean_object*, lean_object*); extern lean_object* l_Lean_MessageData_coeOfArrayExpr___closed__2; -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__12(lean_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_EqnCompiler_DepElim_27__tryConstructorAux___main(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_Meta_tracer___closed__3; -lean_object* l_Std_HashSetImp_expand___at___private_Lean_Meta_EqnCompiler_DepElim_21__processLeaf___spec__2(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__5; lean_object* l_Lean_Meta_mkArrayLit(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_29__expandAlt___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__1; +lean_object* l_Lean_Meta_DepElim_mkElim___lambda__2___closed__3; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___closed__1; lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_1__convertMVar___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_applyFVarSubst___main___boxed(lean_object*, lean_object*); +uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_15__isConstructorTransition(lean_object*); lean_object* l_Lean_Meta_DepElim_Example_replaceFVarId___main___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Example_toMessageData___main___closed__1; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__3; lean_object* l_Lean_Meta_DepElim_Pattern_toExpr___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_DepElim_mkElim___closed__2; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__6; lean_object* lean_name_mk_string(lean_object*, lean_object*); -lean_object* l_Lean_Meta_DepElim_mkElimCore___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_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__6(lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_16__isConstructorTransition(lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__1; lean_object* l_Lean_Meta_DepElim_Pattern_toIPattern___main___boxed(lean_object*, lean_object*); -lean_object* l_Std_mkHashSet___at_Lean_Meta_DepElim_mkElimCore___spec__2(lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___spec__1(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___closed__2; +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__7(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___closed__2; lean_object* l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyMVarRenaming___main___spec__3___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_addContext(lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_assignGoalOf___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_23__processVariable(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_DepElim_mkElim___lambda__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___closed__3; +lean_object* l_Lean_Meta_DepElim_mkElim___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_17__isValueTransition___spec__1(lean_object*, lean_object*); uint8_t l_Std_AssocList_isEmpty___rarg(lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_Exception_toTraceMessageData___closed__4; lean_object* l_Lean_Meta_DepElim_Example_varsToUnderscore(lean_object*); +lean_object* l_Lean_Meta_DepElim_mkElim___lambda__1___closed__12; lean_object* l_List_mapM___main___at_Lean_Meta_DepElim_Problem_toMessageData___spec__1___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_19__isArrayLitTransition___boxed(lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_toMessageData___main___closed__5; -lean_object* l_List_replace___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processLeaf___spec__5___boxed(lean_object*, lean_object*, lean_object*); size_t lean_usize_modn(size_t, lean_object*); extern lean_object* l_List_map___main___at_Lean_Meta_DiscrTree_Trie_format___main___spec__2___rarg___closed__2; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_30__processComplete___closed__2; -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__2(lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___spec__1(lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__5; -lean_object* l_List_filterAuxM___main___at___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_isEmpty___rarg(lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___spec__4(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__6; lean_object* l_Lean_LocalDecl_toExpr(lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_applyMVarRenaming___main___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__4; -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_14__hasAsPattern(lean_object*); +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___spec__1(lean_object*); +lean_object* l_List_filterAuxM___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg___closed__1; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_28__expandAlt(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_13__hasAsPattern(lean_object*); lean_object* l_List_redLength___main___rarg(lean_object*); lean_object* l_Lean_Meta_DepElim_getUnusedLevelParam(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyFVarSubst___main___spec__1___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___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_Expr_isForall(lean_object*); uint8_t l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_5__checkNumPatterns___spec__1(lean_object*, uint8_t, lean_object*); lean_object* l_Lean_Meta_DepElim_Problem_Inhabited; lean_object* l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___closed__1; -lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__1(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_5__checkNumPatterns___closed__3; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__8; lean_object* l_Lean_mkFVar(lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__5; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__7; size_t lean_usize_of_nat(lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___spec__3___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_14__hasAsPattern___boxed(lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___spec__3___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__4; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___closed__1; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__5; lean_object* l_Lean_MessageData_joinSep___main(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_29__expandAlt(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_15__isVariableTransition___boxed(lean_object*); -lean_object* l_Nat_foldAux___main___at_Lean_Meta_DepElim_mkElimCore___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__2(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___closed__2; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg___closed__2; +lean_object* l_List_elem___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__2___boxed(lean_object*, lean_object*); +lean_object* l_Std_mkHashSet___at_Lean_Meta_DepElim_mkElim___spec__2(lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Example_applyFVarSubst___main___spec__1___boxed(lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_find___main___at_Lean_Meta_MVarRenaming_find_x3f___spec__1(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___closed__1; lean_object* l_Lean_Meta_DepElim_Pattern_toMessageData___main___closed__8; lean_object* l_Lean_LocalDecl_fvarId(lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__9; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_26__throwInductiveTypeExpected___rarg___closed__1; -lean_object* l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___spec__1___boxed(lean_object*, lean_object*); uint8_t l_Std_AssocList_any___main___rarg(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_26__throwInductiveTypeExpected___rarg___closed__2; lean_object* l_Lean_Meta_DepElim_Alt_copyCore(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___closed__1; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_26__throwInductiveTypeExpected___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Std_HashSet_Inhabited___closed__1; lean_object* l_List_join___main___rarg(lean_object*); -lean_object* l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__11; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_7__localDeclsToMVarsAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_forallMetaTelescopeReducing(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_26__throwInductiveTypeExpected___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition___closed__2; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_CaseArraySizesSubgoal_inhabited; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___closed__2; lean_object* l_Lean_Meta_DepElim_Example_applyFVarSubst___boxed(lean_object*, lean_object*); -lean_object* l_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_29__expandAlt___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_DepElim_mkElim(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* l_Lean_Meta_DepElim_mkElim(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_counterExamplesToMessageData(lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__4___boxed(lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_type(lean_object*); +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___spec__3(lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_toMessageData___main___closed__4; lean_object* l_Lean_Meta_FVarSubst_get(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_36__process(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_DepElim_mkElimCore___lambda__2___closed__2; -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___spec__2___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__6(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_assignExprMVar(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___lambda__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_toMessageData___main___closed__6; -lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__collectArraySizes___spec__1___boxed(lean_object*, lean_object*); -lean_object* l_List_map___main___at_Lean_Meta_DepElim_mkElimCore___spec__1(lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__process(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withLocalDecl___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_14__hasAsPattern___spec__1___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__4; lean_object* l_Lean_Meta_Cases_cases(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l_Nat_foldAux___main___at_Lean_Meta_DepElim_mkElimCore___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Example_replaceFVarId(lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_MessageData_coeOfListExpr___spec__1(lean_object*); lean_object* l_Lean_Meta_MVarRenaming_find_x21(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_6__localDeclsToMVarsAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_withGoalOf___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_counterExamplesToMessageData___spec__1(lean_object*); -lean_object* l_Lean_Meta_DepElim_mkElimCore___lambda__2___closed__1; lean_object* l_Lean_Meta_DepElim_Pattern_toMessageData(uint8_t, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_24__isFirstPatternCtor___boxed(lean_object*, lean_object*); -uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_32__isFirstPatternVar(lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_31__isFirstPatternVar(lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyMVarRenaming___main___spec__3(lean_object*, lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_instantiateMVars(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__6; +lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__1; lean_object* l_Lean_Meta_DepElim_Pattern_ref(uint8_t); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyFVarSubst___main___spec__2(lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___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_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__collectArraySizes___spec__1___boxed(lean_object*, lean_object*); +lean_object* l_List_filterAuxM___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Alt_toMessageData___closed__4; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__3; lean_object* l_List_map___main___at_Lean_Meta_DepElim_Example_applyFVarSubst___main___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_instantiateMVars___main(lean_object*, lean_object*, lean_object*); -lean_object* l_Std_HashSetImp_contains___at_Lean_Meta_DepElim_mkElimCore___spec__3___boxed(lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkFreshExprMVar(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* l_Lean_Meta_DepElim_mkElim___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___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*); lean_object* l_Lean_mkApp(lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_isLevelDefEqAux___main___spec__2(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Alt_toMessageData___closed__2; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___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_iterateMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___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___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__1; +lean_object* l_Lean_Meta_DepElim_mkElim___lambda__1___closed__10; lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_2__convertMVars(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_FVarSubst_insert(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___closed__1; -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__8(lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_18__isValueTransition___spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__4; lean_object* l_Lean_Meta_admit(lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___spec__3(lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__4(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_30__processComplete___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___spec__3___boxed(lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Alt_toMessageData___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_toMessageData___main___closed__3; extern lean_object* l_Lean_Format_paren___closed__2; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__1; lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_4__copyMVars(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_DepElim_mkElimTester___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_foldl___main___at_Lean_Meta_DepElim_Example_toMessageData___main___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__6; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_13__isNextVar___boxed(lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___closed__2; lean_object* l_Lean_Meta_DepElim_Example_varsToUnderscore___main(lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_examplesToMessageData___spec__1(lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__2; lean_object* l_Lean_Meta_DepElim_Alt_toMessageData___closed__1; uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_1__convertMVar___lambda__1(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_18__isValueTransition___boxed(lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_DepElim_mkElim___lambda__1___closed__3; uint8_t l_Array_contains___at___private_Lean_Meta_FunInfo_3__collectDepsAux___main___spec__2(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___spec__1(lean_object*, lean_object*); +uint8_t l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_13__hasAsPattern___spec__1(uint8_t, lean_object*); +lean_object* l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__1(lean_object*, lean_object*); lean_object* lean_nat_mul(lean_object*, lean_object*); +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__4(lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Example_replaceFVarId___main___spec__2___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_caseValues(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkForall(lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_30__processComplete___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_applyMVarRenaming___boxed(lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__7(lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Std_HashSetImp_contains___at_Lean_Meta_DepElim_mkElimCore___spec__3(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__2; +lean_object* l_List_replace___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__5(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_toMessageData___main___closed__2; +lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__4___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_inferType(lean_object*, lean_object*, lean_object*); lean_object* l_List_foldl___main___at_Lean_Meta_DepElim_Pattern_toMessageData___main___spec__1(uint8_t, lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_assignExprMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__5(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__3; lean_object* l_List_map___main___at_Lean_Meta_DepElim_Example_varsToUnderscore___main___spec__1(lean_object*); +lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_18__isArrayLitTransition___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkLambda(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarDecl(lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyFVarSubst___main___spec__3___boxed(lean_object*, lean_object*); +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___spec__4___boxed(lean_object*, lean_object*); lean_object* l_Array_toList___rarg(lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___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* l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Position_lt___closed__1; lean_object* lean_mk_array(lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Pattern_toIPattern___main___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_Inhabited(uint8_t); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__6; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_10__withAlts(lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_MessageData_arrayExpr_toMessageData___main___closed__2; lean_object* l_Lean_Meta_DepElim_assignGoalOf(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___main___at_Lean_Meta_DepElim_Pattern_toExpr___main___spec__2(uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyFVarSubst___main___spec__1(lean_object*, lean_object*); -uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_17__isCompleteTransition(lean_object*); +lean_object* l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_13__hasAsPattern___spec__1___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Meta_DepElim_mkElim___lambda__2___closed__1; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___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*); +uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_23__isFirstPatternCtor(lean_object*, lean_object*); +lean_object* l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_14__isVariableTransition___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_mkElim___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_11__isDone(lean_object*); +lean_object* l_Lean_Meta_DepElim_mkElim___lambda__1___closed__7; lean_object* l_Lean_MonadTracerAdapter_addTrace___at_Lean_Meta_isLevelDefEqAux___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__1(lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Example_toMessageData___main(lean_object*); +uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition(lean_object*); lean_object* l_Lean_Meta_whnfD(lean_object*, lean_object*, lean_object*); -uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_12__isDone(lean_object*); -uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_24__isFirstPatternCtor(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_11__withAlts(lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main(lean_object*); extern lean_object* l_Lean_mkOptionalNode___closed__2; extern lean_object* l_Lean_Format_paren___closed__3; lean_object* l_Lean_Meta_setInlineAttribute(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_5__checkNumPatterns(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_17__isCompleteTransition___closed__2; lean_object* l_List_mapM___main___at_Lean_Meta_DepElim_Pattern_toExpr___main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__2; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___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*); extern lean_object* l_Lean_Meta_isClassQuick___main___closed__1; +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__3(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_30__collectValues(lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyMVarRenaming___main___spec__2___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_34__collectArraySizes(lean_object*); lean_object* l_Lean_Meta_DepElim_withGoalOf(lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__10(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_18__isArrayLitTransition___boxed(lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_33__collectArraySizes(lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___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_DepElim_Pattern_toMessageData___main___closed__9; lean_object* l_List_toArrayAux___main___rarg(lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processVariable___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_5__checkNumPatterns___closed__1; lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_5__checkNumPatterns___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Nat_Inhabited; extern lean_object* l_Lean_Meta_CaseValueSubgoals_inhabited; lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___closed__1; uint8_t l_List_isEmpty___rarg(lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_DepElim_mkElim___lambda__1___closed__5; lean_object* l_List_mapM___main___at_Lean_Meta_DepElim_Pattern_instantiateMVars___main___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_13__hasAsPattern___boxed(lean_object*); lean_object* l_Lean_Meta_DepElim_Alt_Inhabited___closed__1; lean_object* l_Lean_Meta_DepElim_Pattern_toIPattern(lean_object*, lean_object*); +uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_14__isVariableTransition(lean_object*); +lean_object* l_Lean_Meta_DepElim_mkElimTester___closed__2; +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__10(lean_object*, lean_object*); +lean_object* l_Lean_Meta_DepElim_mkElimTester___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_12__isNextVar___boxed(lean_object*); +lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_17__isValueTransition___spec__1___boxed(lean_object*, lean_object*); lean_object* l_beqOfEq___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__7; +lean_object* l_Nat_foldAux___main___at_Lean_Meta_DepElim_mkElim___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_indentExpr(lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___closed__2; extern lean_object* l___private_Lean_Meta_Basic_12__regTraceClasses___closed__2; -lean_object* l_Lean_Meta_DepElim_mkElimCore___closed__1; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___closed__3; +uint8_t l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_14__isVariableTransition___spec__1(uint8_t, lean_object*); +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__7___boxed(lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Alt_copyCore___spec__1___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_5__checkNumPatterns___closed__2; -lean_object* l_Lean_Meta_DepElim_mkElimCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_DepElim_mkElimTester___closed__1; lean_object* l_Lean_Meta_DepElim_Example_replaceFVarId___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_toMessageData___main___closed__1; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___closed__3; lean_object* l_List_map___main___at_Lean_Meta_DepElim_Example_toMessageData___main___spec__2(lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__1(lean_object*); extern lean_object* l_Lean_MessageData_Inhabited___closed__1; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_caseArraySizes(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyFVarSubst___main___spec__2___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__10; lean_object* l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyMVarRenaming___main___spec__1___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_16__isConstructorTransition___boxed(lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___spec__4___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_CollectLevelParams_main___main(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_30__processComplete___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_38__regTraceClasses(lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_30__processComplete___closed__3; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_37__regTraceClasses(lean_object*); +lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__4(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___closed__3; +lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__5___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_toExpr___main(uint8_t, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_37__mkElimSort___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__5___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_DepElim_mkElimCore___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processLeaf___spec__4(lean_object*, lean_object*); -uint8_t l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_15__isVariableTransition___spec__1(uint8_t, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive(lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__3___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_18__isArrayLitTransition___spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_31__isFirstPatternVar___boxed(lean_object*); +lean_object* l_Lean_Meta_forallTelescopeReducing___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_generalizeTelescope___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Example_toMessageData(lean_object*); -lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__4___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__7; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___lambda__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_ref___boxed(lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); extern lean_object* l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__3; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_26__throwInductiveTypeExpected(lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected(lean_object*); +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___spec__4(lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_Inhabited(uint8_t x_1) { _start: { @@ -6742,28 +6736,27 @@ return x_2; lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_5__checkNumPatterns(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; uint8_t x_7; uint8_t x_8; -x_5 = lean_unsigned_to_nat(0u); -x_6 = l_List_lengthAux___main___rarg(x_1, x_5); -x_7 = 0; -x_8 = l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_5__checkNumPatterns___spec__1(x_6, x_7, x_2); -lean_dec(x_6); -if (x_8 == 0) +lean_object* x_5; uint8_t x_6; uint8_t x_7; +x_5 = lean_array_get_size(x_1); +x_6 = 0; +x_7 = l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_5__checkNumPatterns___spec__1(x_5, x_6, x_2); +lean_dec(x_5); +if (x_7 == 0) { -lean_object* x_9; lean_object* x_10; -x_9 = lean_box(0); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_9); -lean_ctor_set(x_10, 1, x_4); -return x_10; +lean_object* x_8; lean_object* x_9; +x_8 = lean_box(0); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_4); +return x_9; } else { -lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_11 = l___private_Lean_Meta_EqnCompiler_DepElim_5__checkNumPatterns___closed__3; -x_12 = lean_box(0); -x_13 = l_Lean_Meta_throwOther___rarg(x_11, x_12, x_3, x_4); -return x_13; +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = l___private_Lean_Meta_EqnCompiler_DepElim_5__checkNumPatterns___closed__3; +x_11 = lean_box(0); +x_12 = l_Lean_Meta_throwOther___rarg(x_10, x_11, x_3, x_4); +return x_12; } } } @@ -6791,196 +6784,7 @@ lean_dec(x_1); return x_5; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("EqnCompiler"); -return x_1; -} -} -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Basic_12__regTraceClasses___closed__2; -x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("matchDebug"); -return x_1; -} -} -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__2; -x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__3; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("motive"); -return x_1; -} -} -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__5; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__7() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("motive: "); -return x_1; -} -} -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__7; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__9() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__8; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -lean_inc(x_4); -x_6 = l_Lean_Meta_mkForall(x_1, x_2, x_4, x_5); -if (lean_obj_tag(x_6) == 0) -{ -lean_object* x_7; lean_object* x_8; uint8_t x_9; -x_7 = lean_ctor_get(x_6, 1); -lean_inc(x_7); -x_8 = lean_ctor_get(x_7, 4); -lean_inc(x_8); -x_9 = lean_ctor_get_uint8(x_8, sizeof(void*)*1); -lean_dec(x_8); -if (x_9 == 0) -{ -lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13; -x_10 = lean_ctor_get(x_6, 0); -lean_inc(x_10); -lean_dec(x_6); -x_11 = l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__6; -x_12 = 0; -x_13 = l_Lean_Meta_withLocalDecl___rarg(x_11, x_10, x_12, x_3, x_4, x_7); -return x_13; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; -x_14 = lean_ctor_get(x_6, 0); -lean_inc(x_14); -lean_dec(x_6); -x_15 = l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__4; -x_16 = l___private_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_isLevelDefEqAux___main___spec__2(x_15, x_4, x_7); -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -x_18 = lean_unbox(x_17); -lean_dec(x_17); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_16, 1); -lean_inc(x_19); -lean_dec(x_16); -x_20 = l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__6; -x_21 = 0; -x_22 = l_Lean_Meta_withLocalDecl___rarg(x_20, x_14, x_21, x_3, x_4, x_19); -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_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; -x_23 = lean_ctor_get(x_16, 1); -lean_inc(x_23); -lean_dec(x_16); -lean_inc(x_14); -x_24 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_24, 0, x_14); -x_25 = l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__9; -x_26 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, x_24); -x_27 = l_Lean_MonadTracerAdapter_addTrace___at_Lean_Meta_isLevelDefEqAux___main___spec__1(x_15, x_26, x_4, x_23); -x_28 = lean_ctor_get(x_27, 1); -lean_inc(x_28); -lean_dec(x_27); -x_29 = l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__6; -x_30 = 0; -x_31 = l_Lean_Meta_withLocalDecl___rarg(x_29, x_14, x_30, x_3, x_4, x_28); -return x_31; -} -} -} -else -{ -uint8_t x_32; -lean_dec(x_4); -lean_dec(x_3); -x_32 = !lean_is_exclusive(x_6); -if (x_32 == 0) -{ -return x_6; -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_6, 0); -x_34 = lean_ctor_get(x_6, 1); -lean_inc(x_34); -lean_inc(x_33); -lean_dec(x_6); -x_35 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_35, 0, x_33); -lean_ctor_set(x_35, 1, x_34); -return x_35; -} -} -} -} -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg), 5, 0); -return x_2; -} -} -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_7__localDeclsToMVarsAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_6__localDeclsToMVarsAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { if (lean_obj_tag(x_1) == 0) @@ -7073,25 +6877,25 @@ goto _start; } } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_7__localDeclsToMVarsAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_6__localDeclsToMVarsAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l___private_Lean_Meta_EqnCompiler_DepElim_7__localDeclsToMVarsAux___main(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Lean_Meta_EqnCompiler_DepElim_6__localDeclsToMVarsAux___main(x_1, x_2, x_3, x_4, x_5); return x_6; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_8__localDeclsToMVars(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_7__localDeclsToMVars(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; lean_object* x_6; x_4 = lean_box(0); x_5 = lean_box(0); -x_6 = l___private_Lean_Meta_EqnCompiler_DepElim_7__localDeclsToMVarsAux___main(x_1, x_4, x_5, x_2, x_3); +x_6 = l___private_Lean_Meta_EqnCompiler_DepElim_6__localDeclsToMVarsAux___main(x_1, x_4, x_5, x_2, x_3); return x_6; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__mkThunk(lean_object* x_1) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_8__mkThunk(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; @@ -7102,7 +6906,7 @@ x_5 = l_Lean_mkForall(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; uint8_t x_4; @@ -7136,7 +6940,7 @@ goto _start; } } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; uint8_t x_6; @@ -7210,7 +7014,7 @@ return x_25; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___spec__3(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___spec__3(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -7229,7 +7033,7 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); x_7 = l_Lean_Meta_DepElim_Pattern_toIPattern___main(x_1, x_5); -x_8 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___spec__3(x_1, x_6); +x_8 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___spec__3(x_1, x_6); lean_ctor_set(x_2, 1, x_8); lean_ctor_set(x_2, 0, x_7); return x_2; @@ -7243,7 +7047,7 @@ lean_inc(x_10); lean_inc(x_9); lean_dec(x_2); x_11 = l_Lean_Meta_DepElim_Pattern_toIPattern___main(x_1, x_9); -x_12 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___spec__3(x_1, x_10); +x_12 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___spec__3(x_1, x_10); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); @@ -7252,7 +7056,7 @@ return x_13; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___spec__4(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___spec__4(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -7271,7 +7075,7 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); x_7 = l_Lean_Meta_DepElim_Pattern_toIPattern___main(x_1, x_5); -x_8 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___spec__4(x_1, x_6); +x_8 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___spec__4(x_1, x_6); lean_ctor_set(x_2, 1, x_8); lean_ctor_set(x_2, 0, x_7); return x_2; @@ -7285,7 +7089,7 @@ lean_inc(x_10); lean_inc(x_9); lean_dec(x_2); x_11 = l_Lean_Meta_DepElim_Pattern_toIPattern___main(x_1, x_9); -x_12 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___spec__4(x_1, x_10); +x_12 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___spec__4(x_1, x_10); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); @@ -7294,7 +7098,7 @@ return x_13; } } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; @@ -7304,7 +7108,7 @@ x_8 = l_Lean_Meta_mkForall(x_2, x_7, x_4, x_5); return x_8; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___rarg___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* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___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: { uint8_t x_13; lean_object* x_14; lean_object* x_15; @@ -7312,7 +7116,7 @@ x_13 = l_Array_isEmpty___rarg(x_1); lean_inc(x_10); x_14 = lean_array_push(x_2, x_10); lean_inc(x_11); -x_15 = l___private_Lean_Meta_EqnCompiler_DepElim_8__localDeclsToMVars(x_3, x_11, x_12); +x_15 = l___private_Lean_Meta_EqnCompiler_DepElim_7__localDeclsToMVars(x_3, x_11, x_12); if (x_13 == 0) { lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; @@ -7328,7 +7132,7 @@ lean_inc(x_20); x_21 = lean_ctor_get(x_16, 1); lean_inc(x_21); lean_dec(x_16); -x_22 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___spec__3(x_21, x_4); +x_22 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___spec__3(x_21, x_4); x_23 = l_Lean_Meta_FVarSubst_apply(x_21, x_19); lean_dec(x_21); x_24 = lean_alloc_ctor(0, 4, 0); @@ -7339,7 +7143,7 @@ lean_ctor_set(x_24, 3, x_22); x_25 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_25, 0, x_24); lean_ctor_set(x_25, 1, x_6); -x_26 = l___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___rarg(x_7, x_8, x_25, x_14, x_9, x_11, x_17); +x_26 = l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg(x_7, x_8, x_25, x_14, x_9, x_11, x_17); return x_26; } else @@ -7357,7 +7161,7 @@ lean_inc(x_31); x_32 = lean_ctor_get(x_27, 1); lean_inc(x_32); lean_dec(x_27); -x_33 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___spec__4(x_32, x_4); +x_33 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___spec__4(x_32, x_4); x_34 = l_Lean_Meta_FVarSubst_apply(x_32, x_30); lean_dec(x_32); x_35 = lean_alloc_ctor(0, 4, 0); @@ -7368,12 +7172,48 @@ lean_ctor_set(x_35, 3, x_33); x_36 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_36, 0, x_35); lean_ctor_set(x_36, 1, x_6); -x_37 = l___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___rarg(x_7, x_8, x_36, x_14, x_9, x_11, x_28); +x_37 = l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg(x_7, x_8, x_36, x_14, x_9, x_11, x_28); return x_37; } } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___rarg___closed__1() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("EqnCompiler"); +return x_1; +} +} +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Meta_Basic_12__regTraceClasses___closed__2; +x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("matchDebug"); +return x_1; +} +} +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__2; +x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__5() { _start: { lean_object* x_1; @@ -7381,27 +7221,27 @@ x_1 = lean_mk_string("minor premise "); return x_1; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___rarg___closed__2() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___rarg___closed__1; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__5; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___rarg___closed__3() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__7() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___rarg___closed__2; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__6; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___rarg(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* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { if (lean_obj_tag(x_2) == 0) @@ -7429,7 +7269,7 @@ lean_inc(x_12); x_15 = l_List_toArrayAux___main___rarg(x_12, x_14); x_16 = x_15; x_17 = lean_unsigned_to_nat(0u); -x_18 = l_Array_umapMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___spec__1(x_17, x_16); +x_18 = l_Array_umapMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___spec__1(x_17, x_16); x_19 = x_18; x_20 = lean_ctor_get(x_10, 1); lean_inc(x_20); @@ -7440,13 +7280,13 @@ lean_dec(x_21); lean_inc(x_20); x_23 = l_List_toArrayAux___main___rarg(x_20, x_22); x_24 = x_23; -x_25 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___spec__2), 4, 2); +x_25 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___spec__2), 4, 2); lean_closure_set(x_25, 0, x_17); lean_closure_set(x_25, 1, x_24); x_26 = x_25; lean_inc(x_19); lean_inc(x_1); -x_27 = lean_alloc_closure((void*)(l___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___rarg___lambda__1___boxed), 5, 2); +x_27 = lean_alloc_closure((void*)(l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___lambda__1___boxed), 5, 2); lean_closure_set(x_27, 0, x_1); lean_closure_set(x_27, 1, x_19); x_28 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg), 4, 2); @@ -7469,7 +7309,7 @@ x_34 = lean_unsigned_to_nat(1u); x_35 = lean_nat_add(x_33, x_34); x_36 = l_Lean_Meta_caseValue___closed__2; x_37 = l_Lean_Name_appendIndexAfter(x_36, x_35); -x_38 = lean_alloc_closure((void*)(l___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___rarg___lambda__2___boxed), 12, 9); +x_38 = lean_alloc_closure((void*)(l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___lambda__2___boxed), 12, 9); lean_closure_set(x_38, 0, x_19); lean_closure_set(x_38, 1, x_4); lean_closure_set(x_38, 2, x_12); @@ -7486,7 +7326,7 @@ x_39 = lean_ctor_get(x_31, 4); lean_inc(x_39); x_40 = lean_ctor_get_uint8(x_39, sizeof(void*)*1); lean_dec(x_39); -x_41 = l___private_Lean_Meta_EqnCompiler_DepElim_9__mkThunk(x_30); +x_41 = l___private_Lean_Meta_EqnCompiler_DepElim_8__mkThunk(x_30); if (x_40 == 0) { uint8_t x_42; lean_object* x_43; @@ -7497,7 +7337,7 @@ return x_43; else { lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; -x_44 = l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__4; +x_44 = l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__4; x_45 = l___private_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_isLevelDefEqAux___main___spec__2(x_44, x_6, x_31); x_46 = lean_ctor_get(x_45, 0); lean_inc(x_46); @@ -7522,7 +7362,7 @@ lean_dec(x_45); lean_inc(x_37); x_52 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_52, 0, x_37); -x_53 = l___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___rarg___closed__3; +x_53 = l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__7; x_54 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_54, 0, x_53); lean_ctor_set(x_54, 1, x_52); @@ -7563,7 +7403,7 @@ return x_66; else { lean_object* x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; -x_67 = l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__4; +x_67 = l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__4; x_68 = l___private_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_isLevelDefEqAux___main___spec__2(x_67, x_6, x_31); x_69 = lean_ctor_get(x_68, 0); lean_inc(x_69); @@ -7588,7 +7428,7 @@ lean_dec(x_68); lean_inc(x_37); x_75 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_75, 0, x_37); -x_76 = l___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___rarg___closed__3; +x_76 = l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__7; x_77 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_77, 0, x_76); lean_ctor_set(x_77, 1, x_75); @@ -7647,81 +7487,81 @@ return x_89; } } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main(lean_object* x_1) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___rarg), 7, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg), 7, 0); return x_2; } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___spec__3___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___spec__3___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___spec__3(x_1, x_2); +x_3 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___spec__3(x_1, x_2); lean_dec(x_1); return x_3; } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___spec__4___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___spec__4___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___spec__4(x_1, x_2); +x_3 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___spec__4(x_1, x_2); lean_dec(x_1); return x_3; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___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* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5); lean_dec(x_3); return x_6; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___rarg___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) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___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_EqnCompiler_DepElim_10__withAltsAux___main___rarg___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); +x_13 = l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___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_1); return x_13; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___rarg(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* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___rarg(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_EqnCompiler_DepElim_10__withAltsAux___main___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); return x_8; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux(lean_object* x_1) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___rarg), 7, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___rarg), 7, 0); return x_2; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_11__withAlts___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_10__withAlts___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = lean_box(0); x_7 = l_Array_empty___closed__1; -x_8 = l___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___rarg(x_1, x_2, x_6, x_7, x_3, x_4, x_5); +x_8 = l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg(x_1, x_2, x_6, x_7, x_3, x_4, x_5); return x_8; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_11__withAlts(lean_object* x_1) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_10__withAlts(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_EqnCompiler_DepElim_11__withAlts___rarg), 5, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_EqnCompiler_DepElim_10__withAlts___rarg), 5, 0); return x_2; } } @@ -7747,7 +7587,7 @@ lean_dec(x_3); return x_5; } } -uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_12__isDone(lean_object* x_1) { +uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_11__isDone(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; @@ -7756,17 +7596,17 @@ x_3 = l_List_isEmpty___rarg(x_2); return x_3; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_12__isDone___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_11__isDone___boxed(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; -x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_12__isDone(x_1); +x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_11__isDone(x_1); lean_dec(x_1); x_3 = lean_box(x_2); return x_3; } } -uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_13__isNextVar(lean_object* x_1) { +uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_12__isNextVar(lean_object* x_1) { _start: { lean_object* x_2; @@ -7796,17 +7636,17 @@ return x_6; } } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_13__isNextVar___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_12__isNextVar___boxed(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; -x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_13__isNextVar(x_1); +x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_12__isNextVar(x_1); lean_dec(x_1); x_3 = lean_box(x_2); return x_3; } } -uint8_t l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_14__hasAsPattern___spec__1(uint8_t x_1, lean_object* x_2) { +uint8_t l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_13__hasAsPattern___spec__1(uint8_t x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -7818,7 +7658,7 @@ else lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6; x_3 = lean_ctor_get(x_2, 0); x_4 = lean_ctor_get(x_2, 1); -x_5 = l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_14__hasAsPattern___spec__1(x_1, x_4); +x_5 = l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_13__hasAsPattern___spec__1(x_1, x_4); x_6 = lean_ctor_get(x_3, 3); if (lean_obj_tag(x_6) == 0) { @@ -7842,39 +7682,39 @@ return x_5; } } } -uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_14__hasAsPattern(lean_object* x_1) { +uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_13__hasAsPattern(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; uint8_t x_4; x_2 = lean_ctor_get(x_1, 2); x_3 = 0; -x_4 = l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_14__hasAsPattern___spec__1(x_3, x_2); +x_4 = l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_13__hasAsPattern___spec__1(x_3, x_2); return x_4; } } -lean_object* l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_14__hasAsPattern___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_13__hasAsPattern___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; uint8_t x_4; lean_object* x_5; x_3 = lean_unbox(x_1); lean_dec(x_1); -x_4 = l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_14__hasAsPattern___spec__1(x_3, x_2); +x_4 = l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_13__hasAsPattern___spec__1(x_3, x_2); lean_dec(x_2); x_5 = lean_box(x_4); return x_5; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_14__hasAsPattern___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_13__hasAsPattern___boxed(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; -x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_14__hasAsPattern(x_1); +x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_13__hasAsPattern(x_1); lean_dec(x_1); x_3 = lean_box(x_2); return x_3; } } -uint8_t l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_15__isVariableTransition___spec__1(uint8_t x_1, lean_object* x_2) { +uint8_t l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_14__isVariableTransition___spec__1(uint8_t x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -7897,7 +7737,7 @@ else lean_object* x_6; lean_object* x_7; uint8_t x_8; x_6 = lean_ctor_get(x_2, 1); x_7 = lean_ctor_get(x_4, 0); -x_8 = l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_15__isVariableTransition___spec__1(x_1, x_6); +x_8 = l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_14__isVariableTransition___spec__1(x_1, x_6); switch (lean_obj_tag(x_7)) { case 0: { @@ -7918,39 +7758,39 @@ return x_9; } } } -uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_15__isVariableTransition(lean_object* x_1) { +uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_14__isVariableTransition(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; uint8_t x_4; x_2 = lean_ctor_get(x_1, 2); x_3 = 1; -x_4 = l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_15__isVariableTransition___spec__1(x_3, x_2); +x_4 = l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_14__isVariableTransition___spec__1(x_3, x_2); return x_4; } } -lean_object* l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_15__isVariableTransition___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_14__isVariableTransition___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; uint8_t x_4; lean_object* x_5; x_3 = lean_unbox(x_1); lean_dec(x_1); -x_4 = l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_15__isVariableTransition___spec__1(x_3, x_2); +x_4 = l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_14__isVariableTransition___spec__1(x_3, x_2); lean_dec(x_2); x_5 = lean_box(x_4); return x_5; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_15__isVariableTransition___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_14__isVariableTransition___boxed(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; -x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_15__isVariableTransition(x_1); +x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_14__isVariableTransition(x_1); lean_dec(x_1); x_3 = lean_box(x_2); return x_3; } } -uint8_t l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_16__isConstructorTransition___spec__1(uint8_t x_1, lean_object* x_2) { +uint8_t l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_15__isConstructorTransition___spec__1(uint8_t x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -7989,39 +7829,39 @@ return x_9; } } } -uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_16__isConstructorTransition(lean_object* x_1) { +uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_15__isConstructorTransition(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; uint8_t x_4; x_2 = lean_ctor_get(x_1, 2); x_3 = 1; -x_4 = l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_16__isConstructorTransition___spec__1(x_3, x_2); +x_4 = l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_15__isConstructorTransition___spec__1(x_3, x_2); return x_4; } } -lean_object* l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_16__isConstructorTransition___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_15__isConstructorTransition___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; uint8_t x_4; lean_object* x_5; x_3 = lean_unbox(x_1); lean_dec(x_1); -x_4 = l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_16__isConstructorTransition___spec__1(x_3, x_2); +x_4 = l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_15__isConstructorTransition___spec__1(x_3, x_2); lean_dec(x_2); x_5 = lean_box(x_4); return x_5; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_16__isConstructorTransition___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_15__isConstructorTransition___boxed(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; -x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_16__isConstructorTransition(x_1); +x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_15__isConstructorTransition(x_1); lean_dec(x_1); x_3 = lean_box(x_2); return x_3; } } -lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_17__isCompleteTransition___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -8255,7 +8095,7 @@ goto _start; } } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_17__isCompleteTransition___closed__1() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition___closed__1() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; @@ -8268,12 +8108,12 @@ lean_ctor_set(x_4, 1, x_3); return x_4; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_17__isCompleteTransition___closed__2() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition___closed__2() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = 1; -x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_17__isCompleteTransition___closed__1; +x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition___closed__1; x_3 = lean_box(x_1); x_4 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_4, 0, x_3); @@ -8281,13 +8121,13 @@ lean_ctor_set(x_4, 1, x_2); return x_4; } } -uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_17__isCompleteTransition(lean_object* x_1) { +uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; x_2 = lean_ctor_get(x_1, 2); -x_3 = l___private_Lean_Meta_EqnCompiler_DepElim_17__isCompleteTransition___closed__2; -x_4 = l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_17__isCompleteTransition___spec__1(x_3, x_2); +x_3 = l___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition___closed__2; +x_4 = l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition___spec__1(x_3, x_2); x_5 = lean_ctor_get(x_4, 1); lean_inc(x_5); x_6 = lean_ctor_get(x_4, 0); @@ -8329,26 +8169,26 @@ return x_13; } } } -lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_17__isCompleteTransition___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_17__isCompleteTransition___spec__1(x_1, x_2); +x_3 = l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition___spec__1(x_1, x_2); lean_dec(x_2); return x_3; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_17__isCompleteTransition___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition___boxed(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; -x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_17__isCompleteTransition(x_1); +x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition(x_1); lean_dec(x_1); x_3 = lean_box(x_2); return x_3; } } -lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_18__isValueTransition___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_17__isValueTransition___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -8582,13 +8422,13 @@ goto _start; } } } -uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_18__isValueTransition(lean_object* x_1) { +uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_17__isValueTransition(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; x_2 = lean_ctor_get(x_1, 2); -x_3 = l___private_Lean_Meta_EqnCompiler_DepElim_17__isCompleteTransition___closed__2; -x_4 = l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_18__isValueTransition___spec__1(x_3, x_2); +x_3 = l___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition___closed__2; +x_4 = l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_17__isValueTransition___spec__1(x_3, x_2); x_5 = lean_ctor_get(x_4, 1); lean_inc(x_5); x_6 = lean_ctor_get(x_4, 0); @@ -8630,26 +8470,26 @@ return x_13; } } } -lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_18__isValueTransition___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_17__isValueTransition___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_18__isValueTransition___spec__1(x_1, x_2); +x_3 = l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_17__isValueTransition___spec__1(x_1, x_2); lean_dec(x_2); return x_3; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_18__isValueTransition___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_17__isValueTransition___boxed(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; -x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_18__isValueTransition(x_1); +x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_17__isValueTransition(x_1); lean_dec(x_1); x_3 = lean_box(x_2); return x_3; } } -lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_19__isArrayLitTransition___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_18__isArrayLitTransition___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -8883,13 +8723,13 @@ goto _start; } } } -uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_19__isArrayLitTransition(lean_object* x_1) { +uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_18__isArrayLitTransition(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; x_2 = lean_ctor_get(x_1, 2); -x_3 = l___private_Lean_Meta_EqnCompiler_DepElim_17__isCompleteTransition___closed__2; -x_4 = l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_19__isArrayLitTransition___spec__1(x_3, x_2); +x_3 = l___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition___closed__2; +x_4 = l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_18__isArrayLitTransition___spec__1(x_3, x_2); x_5 = lean_ctor_get(x_4, 1); lean_inc(x_5); x_6 = lean_ctor_get(x_4, 0); @@ -8931,26 +8771,26 @@ return x_13; } } } -lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_19__isArrayLitTransition___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_18__isArrayLitTransition___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_19__isArrayLitTransition___spec__1(x_1, x_2); +x_3 = l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_18__isArrayLitTransition___spec__1(x_1, x_2); lean_dec(x_2); return x_3; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_19__isArrayLitTransition___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_18__isArrayLitTransition___boxed(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; -x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_19__isArrayLitTransition(x_1); +x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_18__isArrayLitTransition(x_1); lean_dec(x_1); x_3 = lean_box(x_2); return x_3; } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___spec__1(lean_object* x_1) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -8976,7 +8816,7 @@ x_7 = lean_ctor_get(x_4, 0); x_8 = lean_ctor_get(x_4, 1); x_9 = lean_ctor_get(x_4, 2); x_10 = lean_ctor_get(x_4, 3); -x_11 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___spec__1(x_6); +x_11 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___spec__1(x_6); if (lean_obj_tag(x_10) == 0) { lean_object* x_12; lean_object* x_13; @@ -9033,7 +8873,7 @@ lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); lean_dec(x_4); -x_24 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___spec__1(x_19); +x_24 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___spec__1(x_19); if (lean_obj_tag(x_23) == 0) { lean_object* x_25; lean_object* x_26; @@ -9102,7 +8942,7 @@ if (lean_is_exclusive(x_31)) { lean_dec_ref(x_31); x_37 = lean_box(0); } -x_38 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___spec__1(x_32); +x_38 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___spec__1(x_32); if (lean_obj_tag(x_36) == 0) { lean_object* x_39; lean_object* x_40; lean_object* x_41; @@ -9152,7 +8992,7 @@ return x_45; } } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__1() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__1() { _start: { lean_object* x_1; @@ -9160,17 +9000,17 @@ x_1 = lean_mk_string("match"); return x_1; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__2() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__2; -x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__1; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__2; +x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__3() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__3() { _start: { lean_object* x_1; @@ -9178,27 +9018,27 @@ x_1 = lean_mk_string("non variable step"); return x_1; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__4() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__3; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__3; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__5() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__4; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__4; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; lean_object* x_23; uint8_t x_24; @@ -9216,7 +9056,7 @@ goto block_22; else { lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_25 = l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__2; +x_25 = l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__2; x_26 = l___private_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_isLevelDefEqAux___main___spec__2(x_25, x_4, x_5); x_27 = lean_ctor_get(x_26, 0); lean_inc(x_27); @@ -9237,7 +9077,7 @@ lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; x_30 = lean_ctor_get(x_26, 1); lean_inc(x_30); lean_dec(x_26); -x_31 = l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__5; +x_31 = l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__5; x_32 = l_Lean_MonadTracerAdapter_addTrace___at_Lean_Meta_isLevelDefEqAux___main___spec__1(x_25, x_31, x_4, x_30); x_33 = lean_ctor_get(x_32, 1); lean_inc(x_33); @@ -9267,7 +9107,7 @@ lean_inc(x_11); lean_dec(x_6); x_12 = lean_ctor_get(x_2, 2); lean_inc(x_12); -x_13 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___spec__1(x_12); +x_13 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___spec__1(x_12); x_14 = !lean_is_exclusive(x_2); if (x_14 == 0) { @@ -9301,7 +9141,7 @@ return x_21; } } } -lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processLeaf___spec__4(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__4(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -9352,7 +9192,7 @@ goto _start; } } } -lean_object* l_Std_HashSetImp_moveEntries___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processLeaf___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Std_HashSetImp_moveEntries___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -9371,7 +9211,7 @@ lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_obj x_6 = lean_array_fget(x_2, x_1); x_7 = lean_box(0); x_8 = lean_array_fset(x_2, x_1, x_7); -x_9 = l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processLeaf___spec__4(x_3, x_6); +x_9 = l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__4(x_3, x_6); x_10 = lean_unsigned_to_nat(1u); x_11 = lean_nat_add(x_1, x_10); lean_dec(x_1); @@ -9382,7 +9222,7 @@ goto _start; } } } -lean_object* l_Std_HashSetImp_expand___at___private_Lean_Meta_EqnCompiler_DepElim_21__processLeaf___spec__2(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_HashSetImp_expand___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__2(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; @@ -9393,14 +9233,14 @@ lean_dec(x_3); x_6 = lean_box(0); x_7 = lean_mk_array(x_5, x_6); x_8 = lean_unsigned_to_nat(0u); -x_9 = l_Std_HashSetImp_moveEntries___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processLeaf___spec__3(x_8, x_2, x_7); +x_9 = l_Std_HashSetImp_moveEntries___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__3(x_8, x_2, x_7); x_10 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_10, 0, x_1); lean_ctor_set(x_10, 1, x_9); return x_10; } } -lean_object* l_List_replace___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processLeaf___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_replace___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -9421,7 +9261,7 @@ x_7 = lean_nat_dec_eq(x_5, x_2); if (x_7 == 0) { lean_object* x_8; -x_8 = l_List_replace___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processLeaf___spec__5(x_6, x_2, x_3); +x_8 = l_List_replace___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__5(x_6, x_2, x_3); lean_ctor_set(x_1, 1, x_8); return x_1; } @@ -9444,7 +9284,7 @@ x_11 = lean_nat_dec_eq(x_9, x_2); if (x_11 == 0) { lean_object* x_12; lean_object* x_13; -x_12 = l_List_replace___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processLeaf___spec__5(x_10, x_2, x_3); +x_12 = l_List_replace___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__5(x_10, x_2, x_3); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_9); lean_ctor_set(x_13, 1, x_12); @@ -9463,7 +9303,7 @@ return x_14; } } } -lean_object* l_Std_HashSetImp_insert___at___private_Lean_Meta_EqnCompiler_DepElim_21__processLeaf___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_HashSetImp_insert___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__1(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; @@ -9494,7 +9334,7 @@ if (x_15 == 0) { lean_object* x_16; lean_free_object(x_1); -x_16 = l_Std_HashSetImp_expand___at___private_Lean_Meta_EqnCompiler_DepElim_21__processLeaf___spec__2(x_12, x_14); +x_16 = l_Std_HashSetImp_expand___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__2(x_12, x_14); return x_16; } else @@ -9509,7 +9349,7 @@ else lean_object* x_17; lean_object* x_18; lean_dec(x_6); lean_inc(x_2); -x_17 = l_List_replace___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processLeaf___spec__5(x_9, x_2, x_2); +x_17 = l_List_replace___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__5(x_9, x_2, x_2); lean_dec(x_2); x_18 = lean_array_uset(x_5, x_8, x_17); lean_ctor_set(x_1, 1, x_18); @@ -9544,7 +9384,7 @@ lean_dec(x_21); if (x_30 == 0) { lean_object* x_31; -x_31 = l_Std_HashSetImp_expand___at___private_Lean_Meta_EqnCompiler_DepElim_21__processLeaf___spec__2(x_27, x_29); +x_31 = l_Std_HashSetImp_expand___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__2(x_27, x_29); return x_31; } else @@ -9561,7 +9401,7 @@ else lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_dec(x_21); lean_inc(x_2); -x_33 = l_List_replace___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processLeaf___spec__5(x_24, x_2, x_2); +x_33 = l_List_replace___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__5(x_24, x_2, x_2); lean_dec(x_2); x_34 = lean_array_uset(x_20, x_23, x_33); x_35 = lean_alloc_ctor(0, 2, 0); @@ -9572,7 +9412,7 @@ return x_35; } } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_21__processLeaf(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; @@ -9729,7 +9569,7 @@ x_38 = lean_ctor_get(x_2, 0); x_39 = lean_ctor_get(x_35, 0); lean_inc(x_39); lean_dec(x_35); -x_40 = l_Std_HashSetImp_insert___at___private_Lean_Meta_EqnCompiler_DepElim_21__processLeaf___spec__1(x_38, x_39); +x_40 = l_Std_HashSetImp_insert___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__1(x_38, x_39); lean_ctor_set(x_2, 0, x_40); x_41 = l_Lean_Meta_DepElim_assignGoalOf(x_1, x_36, x_3, x_4); if (lean_obj_tag(x_41) == 0) @@ -9791,7 +9631,7 @@ lean_dec(x_2); x_52 = lean_ctor_get(x_35, 0); lean_inc(x_52); lean_dec(x_35); -x_53 = l_Std_HashSetImp_insert___at___private_Lean_Meta_EqnCompiler_DepElim_21__processLeaf___spec__1(x_50, x_52); +x_53 = l_Std_HashSetImp_insert___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__1(x_50, x_52); x_54 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_54, 0, x_53); lean_ctor_set(x_54, 1, x_51); @@ -9847,25 +9687,25 @@ return x_62; } } } -lean_object* l_List_replace___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processLeaf___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_replace___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_replace___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processLeaf___spec__5(x_1, x_2, x_3); +x_4 = l_List_replace___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__5(x_1, x_2, x_3); lean_dec(x_2); return x_4; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_21__processLeaf___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Lean_Meta_EqnCompiler_DepElim_21__processLeaf(x_1, x_2, x_3, x_4); +x_5 = l___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -lean_object* l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -9885,7 +9725,7 @@ x_6 = lean_name_eq(x_4, x_2); if (x_6 == 0) { lean_object* x_7; -x_7 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___spec__1(x_5, x_2); +x_7 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__1(x_5, x_2); lean_ctor_set(x_1, 1, x_7); return x_1; } @@ -9908,7 +9748,7 @@ x_10 = lean_name_eq(x_8, x_2); if (x_10 == 0) { lean_object* x_11; lean_object* x_12; -x_11 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___spec__1(x_9, x_2); +x_11 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__1(x_9, x_2); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_8); lean_ctor_set(x_12, 1, x_11); @@ -9923,7 +9763,7 @@ return x_9; } } } -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -9950,7 +9790,7 @@ lean_inc(x_10); x_11 = lean_ctor_get(x_9, 1); lean_inc(x_11); lean_dec(x_9); -x_12 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___spec__2(x_8, x_2, x_11); +x_12 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__2(x_8, x_2, x_11); x_13 = !lean_is_exclusive(x_12); if (x_13 == 0) { @@ -9991,7 +9831,7 @@ lean_inc(x_21); x_22 = lean_ctor_get(x_20, 1); lean_inc(x_22); lean_dec(x_20); -x_23 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___spec__2(x_19, x_2, x_22); +x_23 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__2(x_19, x_2, x_22); x_24 = lean_ctor_get(x_23, 0); lean_inc(x_24); x_25 = lean_ctor_get(x_23, 1); @@ -10019,7 +9859,7 @@ return x_28; } } } -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_2) == 0) @@ -10099,10 +9939,10 @@ lean_inc(x_40); x_41 = lean_ctor_get(x_39, 1); lean_inc(x_41); lean_dec(x_39); -x_42 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___spec__1(x_30, x_35); +x_42 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__1(x_30, x_35); lean_dec(x_35); lean_ctor_set(x_25, 0, x_36); -x_43 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___spec__2(x_25, x_3, x_41); +x_43 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__2(x_25, x_3, x_41); x_44 = lean_ctor_get(x_43, 0); lean_inc(x_44); x_45 = lean_ctor_get(x_43, 1); @@ -10175,12 +10015,12 @@ lean_inc(x_56); x_57 = lean_ctor_get(x_55, 1); lean_inc(x_57); lean_dec(x_55); -x_58 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___spec__1(x_30, x_51); +x_58 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__1(x_30, x_51); lean_dec(x_51); x_59 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_59, 0, x_52); lean_ctor_set(x_59, 1, x_50); -x_60 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___spec__2(x_59, x_3, x_57); +x_60 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__2(x_59, x_3, x_57); x_61 = lean_ctor_get(x_60, 0); lean_inc(x_61); x_62 = lean_ctor_get(x_60, 1); @@ -10269,7 +10109,7 @@ lean_inc(x_77); x_78 = lean_ctor_get(x_76, 1); lean_inc(x_78); lean_dec(x_76); -x_79 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___spec__1(x_69, x_72); +x_79 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__1(x_69, x_72); lean_dec(x_72); if (lean_is_scalar(x_71)) { x_80 = lean_alloc_ctor(1, 2, 0); @@ -10278,7 +10118,7 @@ if (lean_is_scalar(x_71)) { } lean_ctor_set(x_80, 0, x_73); lean_ctor_set(x_80, 1, x_70); -x_81 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___spec__2(x_80, x_3, x_78); +x_81 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__2(x_80, x_3, x_78); x_82 = lean_ctor_get(x_81, 0); lean_inc(x_82); x_83 = lean_ctor_get(x_81, 1); @@ -10341,7 +10181,7 @@ goto block_24; block_24: { lean_object* x_12; -x_12 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___spec__3(x_1, x_8, x_3, x_11); +x_12 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__3(x_1, x_8, x_3, x_11); if (lean_obj_tag(x_12) == 0) { uint8_t x_13; @@ -10409,7 +10249,7 @@ return x_23; } } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___closed__1() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___closed__1() { _start: { lean_object* x_1; @@ -10417,27 +10257,27 @@ x_1 = lean_mk_string("as-pattern step"); return x_1; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___closed__2() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___closed__1; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___closed__3() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___closed__2; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; lean_object* x_29; uint8_t x_30; @@ -10455,7 +10295,7 @@ goto block_28; else { lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; -x_31 = l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__2; +x_31 = l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__2; x_32 = l___private_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_isLevelDefEqAux___main___spec__2(x_31, x_4, x_5); x_33 = lean_ctor_get(x_32, 0); lean_inc(x_33); @@ -10476,7 +10316,7 @@ lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; x_36 = lean_ctor_get(x_32, 1); lean_inc(x_36); lean_dec(x_32); -x_37 = l___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___closed__3; +x_37 = l___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___closed__3; x_38 = l_Lean_MonadTracerAdapter_addTrace___at_Lean_Meta_isLevelDefEqAux___main___spec__1(x_31, x_37, x_4, x_36); x_39 = lean_ctor_get(x_38, 1); lean_inc(x_39); @@ -10505,7 +10345,7 @@ x_11 = lean_ctor_get(x_6, 0); lean_inc(x_11); x_12 = lean_ctor_get(x_2, 2); lean_inc(x_12); -x_13 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___spec__3(x_11, x_12, x_4, x_7); +x_13 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__3(x_11, x_12, x_4, x_7); if (lean_obj_tag(x_13) == 0) { lean_object* x_14; lean_object* x_15; uint8_t x_16; @@ -10574,34 +10414,34 @@ return x_27; } } } -lean_object* l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___spec__1(x_1, x_2); +x_3 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__1(x_1, x_2); lean_dec(x_2); return x_3; } } -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___spec__2(x_1, x_2, x_3); +x_4 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__2(x_1, x_2, x_3); lean_dec(x_2); return x_4; } } -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___spec__3(x_1, x_2, x_3, x_4); +x_5 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__3(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processVariable___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -10628,7 +10468,7 @@ lean_inc(x_10); x_11 = lean_ctor_get(x_9, 1); lean_inc(x_11); lean_dec(x_9); -x_12 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processVariable___spec__1(x_8, x_2, x_11); +x_12 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___spec__1(x_8, x_2, x_11); x_13 = !lean_is_exclusive(x_12); if (x_13 == 0) { @@ -10669,7 +10509,7 @@ lean_inc(x_21); x_22 = lean_ctor_get(x_20, 1); lean_inc(x_22); lean_dec(x_20); -x_23 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processVariable___spec__1(x_19, x_2, x_22); +x_23 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___spec__1(x_19, x_2, x_22); x_24 = lean_ctor_get(x_23, 0); lean_inc(x_24); x_25 = lean_ctor_get(x_23, 1); @@ -10697,7 +10537,7 @@ return x_28; } } } -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processVariable___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_2) == 0) @@ -10855,9 +10695,9 @@ lean_inc(x_54); x_55 = lean_ctor_get(x_53, 1); lean_inc(x_55); lean_dec(x_53); -x_56 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___spec__1(x_47, x_50); +x_56 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__1(x_47, x_50); lean_dec(x_50); -x_57 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processVariable___spec__1(x_49, x_3, x_55); +x_57 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___spec__1(x_49, x_3, x_55); x_58 = lean_ctor_get(x_57, 0); lean_inc(x_58); x_59 = lean_ctor_get(x_57, 1); @@ -10934,9 +10774,9 @@ lean_inc(x_72); x_73 = lean_ctor_get(x_71, 1); lean_inc(x_73); lean_dec(x_71); -x_74 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___spec__1(x_66, x_68); +x_74 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__1(x_66, x_68); lean_dec(x_68); -x_75 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processVariable___spec__1(x_67, x_3, x_73); +x_75 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___spec__1(x_67, x_3, x_73); x_76 = lean_ctor_get(x_75, 0); lean_inc(x_76); x_77 = lean_ctor_get(x_75, 1); @@ -11040,7 +10880,7 @@ return x_91; block_24: { lean_object* x_12; -x_12 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processVariable___spec__2(x_1, x_8, x_3, x_11); +x_12 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___spec__2(x_1, x_8, x_3, x_11); if (lean_obj_tag(x_12) == 0) { uint8_t x_13; @@ -11108,7 +10948,7 @@ return x_23; } } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_23__processVariable___closed__1() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___closed__1() { _start: { lean_object* x_1; @@ -11116,27 +10956,27 @@ x_1 = lean_mk_string("variable step"); return x_1; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_23__processVariable___closed__2() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_23__processVariable___closed__1; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_23__processVariable___closed__3() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_23__processVariable___closed__2; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_23__processVariable(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; lean_object* x_30; uint8_t x_31; @@ -11154,7 +10994,7 @@ goto block_29; else { lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; -x_32 = l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__2; +x_32 = l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__2; x_33 = l___private_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_isLevelDefEqAux___main___spec__2(x_32, x_4, x_5); x_34 = lean_ctor_get(x_33, 0); lean_inc(x_34); @@ -11175,7 +11015,7 @@ lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; x_37 = lean_ctor_get(x_33, 1); lean_inc(x_37); lean_dec(x_33); -x_38 = l___private_Lean_Meta_EqnCompiler_DepElim_23__processVariable___closed__3; +x_38 = l___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___closed__3; x_39 = l_Lean_MonadTracerAdapter_addTrace___at_Lean_Meta_isLevelDefEqAux___main___spec__1(x_32, x_38, x_4, x_37); x_40 = lean_ctor_get(x_39, 1); lean_inc(x_40); @@ -11208,7 +11048,7 @@ lean_dec(x_6); x_13 = lean_ctor_get(x_2, 2); lean_inc(x_13); lean_inc(x_4); -x_14 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processVariable___spec__2(x_11, x_13, x_4, x_7); +x_14 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___spec__2(x_11, x_13, x_4, x_7); if (lean_obj_tag(x_14) == 0) { lean_object* x_15; lean_object* x_16; uint8_t x_17; @@ -11278,16 +11118,16 @@ return x_28; } } } -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processVariable___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processVariable___spec__1(x_1, x_2, x_3); +x_4 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___spec__1(x_1, x_2, x_3); lean_dec(x_2); return x_4; } } -uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_24__isFirstPatternCtor(lean_object* x_1, lean_object* x_2) { +uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_23__isFirstPatternCtor(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; @@ -11318,18 +11158,18 @@ return x_8; } } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_24__isFirstPatternCtor___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_23__isFirstPatternCtor___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l___private_Lean_Meta_EqnCompiler_DepElim_24__isFirstPatternCtor(x_1, x_2); +x_3 = l___private_Lean_Meta_EqnCompiler_DepElim_23__isFirstPatternCtor(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); return x_4; } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -11348,7 +11188,7 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); x_7 = l_Lean_Meta_FVarSubst_apply(x_1, x_5); -x_8 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__1(x_1, x_6); +x_8 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__1(x_1, x_6); lean_ctor_set(x_2, 1, x_8); lean_ctor_set(x_2, 0, x_7); return x_2; @@ -11362,7 +11202,7 @@ lean_inc(x_10); lean_inc(x_9); lean_dec(x_2); x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_9); -x_12 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__1(x_1, x_10); +x_12 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__1(x_1, x_10); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); @@ -11371,7 +11211,7 @@ return x_13; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__2(lean_object* x_1) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__2(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -11389,7 +11229,7 @@ if (x_3 == 0) lean_object* x_4; lean_object* x_5; lean_object* x_6; x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); -x_6 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__2(x_5); +x_6 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__2(x_5); if (lean_obj_tag(x_4) == 1) { lean_object* x_7; lean_object* x_8; @@ -11420,7 +11260,7 @@ x_11 = lean_ctor_get(x_1, 1); lean_inc(x_11); lean_inc(x_10); lean_dec(x_1); -x_12 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__2(x_11); +x_12 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__2(x_11); if (lean_obj_tag(x_10) == 1) { lean_object* x_13; lean_object* x_14; lean_object* x_15; @@ -11448,7 +11288,7 @@ return x_17; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -11471,7 +11311,7 @@ x_9 = lean_ctor_get(x_2, 0); x_10 = lean_ctor_get(x_9, 1); x_11 = l_Array_toList___rarg(x_10); x_12 = lean_ctor_get(x_2, 1); -x_13 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__2(x_11); +x_13 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__2(x_11); lean_inc(x_12); x_14 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_14, 0, x_12); @@ -11479,7 +11319,7 @@ lean_ctor_set(x_14, 1, x_13); x_15 = l_Lean_Meta_DepElim_Example_replaceFVarId___main(x_8, x_14, x_6); lean_dec(x_14); lean_dec(x_8); -x_16 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__3(x_1, x_2, x_7); +x_16 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__3(x_1, x_2, x_7); lean_ctor_set(x_3, 1, x_16); lean_ctor_set(x_3, 0, x_15); return x_3; @@ -11497,7 +11337,7 @@ x_20 = lean_ctor_get(x_2, 0); x_21 = lean_ctor_get(x_20, 1); x_22 = l_Array_toList___rarg(x_21); x_23 = lean_ctor_get(x_2, 1); -x_24 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__2(x_22); +x_24 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__2(x_22); lean_inc(x_23); x_25 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_25, 0, x_23); @@ -11505,7 +11345,7 @@ lean_ctor_set(x_25, 1, x_24); x_26 = l_Lean_Meta_DepElim_Example_replaceFVarId___main(x_19, x_25, x_17); lean_dec(x_25); lean_dec(x_19); -x_27 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__3(x_1, x_2, x_18); +x_27 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__3(x_1, x_2, x_18); x_28 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_28, 0, x_26); lean_ctor_set(x_28, 1, x_27); @@ -11514,7 +11354,7 @@ return x_28; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__4(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__4(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -11535,7 +11375,7 @@ x_6 = lean_ctor_get(x_2, 1); x_7 = lean_ctor_get(x_1, 0); x_8 = lean_ctor_get(x_7, 2); x_9 = l_Lean_Meta_DepElim_Example_applyFVarSubst___main(x_8, x_5); -x_10 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__4(x_1, x_6); +x_10 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__4(x_1, x_6); lean_ctor_set(x_2, 1, x_10); lean_ctor_set(x_2, 0, x_9); return x_2; @@ -11551,7 +11391,7 @@ lean_dec(x_2); x_13 = lean_ctor_get(x_1, 0); x_14 = lean_ctor_get(x_13, 2); x_15 = l_Lean_Meta_DepElim_Example_applyFVarSubst___main(x_14, x_11); -x_16 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__4(x_1, x_12); +x_16 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__4(x_1, x_12); x_17 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_17, 0, x_15); lean_ctor_set(x_17, 1, x_16); @@ -11560,7 +11400,7 @@ return x_17; } } } -lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_2) == 0) @@ -11579,7 +11419,7 @@ lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; x_6 = lean_ctor_get(x_2, 0); x_7 = lean_ctor_get(x_2, 1); x_8 = lean_ctor_get(x_1, 1); -x_9 = l___private_Lean_Meta_EqnCompiler_DepElim_24__isFirstPatternCtor(x_8, x_6); +x_9 = l___private_Lean_Meta_EqnCompiler_DepElim_23__isFirstPatternCtor(x_8, x_6); if (x_9 == 0) { lean_free_object(x_2); @@ -11608,7 +11448,7 @@ lean_inc(x_13); lean_inc(x_12); lean_dec(x_2); x_14 = lean_ctor_get(x_1, 1); -x_15 = l___private_Lean_Meta_EqnCompiler_DepElim_24__isFirstPatternCtor(x_14, x_12); +x_15 = l___private_Lean_Meta_EqnCompiler_DepElim_23__isFirstPatternCtor(x_14, x_12); if (x_15 == 0) { lean_dec(x_12); @@ -11629,7 +11469,7 @@ goto _start; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__6(lean_object* x_1) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__6(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -11655,7 +11495,7 @@ x_7 = lean_ctor_get(x_4, 0); x_8 = lean_ctor_get(x_4, 1); x_9 = lean_ctor_get(x_4, 2); x_10 = lean_ctor_get(x_4, 3); -x_11 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__6(x_6); +x_11 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__6(x_6); if (lean_obj_tag(x_10) == 0) { lean_object* x_12; lean_object* x_13; @@ -11760,7 +11600,7 @@ lean_inc(x_35); lean_inc(x_34); lean_inc(x_33); lean_dec(x_4); -x_37 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__6(x_32); +x_37 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__6(x_32); if (lean_obj_tag(x_36) == 0) { lean_object* x_38; lean_object* x_39; @@ -11865,7 +11705,7 @@ if (lean_is_exclusive(x_51)) { lean_dec_ref(x_51); x_57 = lean_box(0); } -x_58 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__6(x_52); +x_58 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__6(x_52); if (lean_obj_tag(x_56) == 0) { lean_object* x_59; lean_object* x_60; lean_object* x_61; @@ -11952,7 +11792,7 @@ return x_72; } } } -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_2) == 0) @@ -11986,7 +11826,7 @@ lean_inc(x_11); x_12 = lean_ctor_get(x_10, 1); lean_inc(x_12); lean_dec(x_10); -x_13 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__7(x_1, x_9, x_3, x_12); +x_13 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__7(x_1, x_9, x_3, x_12); if (lean_obj_tag(x_13) == 0) { uint8_t x_14; @@ -12087,7 +11927,7 @@ lean_inc(x_30); x_31 = lean_ctor_get(x_29, 1); lean_inc(x_31); lean_dec(x_29); -x_32 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__7(x_1, x_28, x_3, x_31); +x_32 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__7(x_1, x_28, x_3, x_31); if (lean_obj_tag(x_32) == 0) { lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; @@ -12172,7 +12012,7 @@ return x_45; } } } -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -12204,7 +12044,7 @@ lean_inc(x_10); x_11 = lean_ctor_get(x_9, 1); lean_inc(x_11); lean_dec(x_9); -x_12 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__8(x_8, x_2, x_11); +x_12 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__8(x_8, x_2, x_11); if (lean_obj_tag(x_12) == 0) { uint8_t x_13; @@ -12303,7 +12143,7 @@ lean_inc(x_29); x_30 = lean_ctor_get(x_28, 1); lean_inc(x_30); lean_dec(x_28); -x_31 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__8(x_27, x_2, x_30); +x_31 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__8(x_27, x_2, 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; @@ -12387,7 +12227,7 @@ return x_44; } } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__9(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* l_Array_iterateMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; uint8_t x_13; @@ -12427,19 +12267,19 @@ x_22 = l_Array_toList___rarg(x_20); lean_dec(x_20); lean_inc(x_4); x_23 = l_List_append___rarg(x_22, x_4); -x_24 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__1(x_21, x_23); +x_24 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__1(x_21, x_23); x_25 = lean_ctor_get(x_2, 3); lean_inc(x_25); -x_26 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__3(x_3, x_15, x_25); -x_27 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__4(x_15, x_26); +x_26 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__3(x_3, x_15, x_25); +x_27 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__4(x_15, x_26); x_28 = lean_ctor_get(x_2, 2); lean_inc(x_28); x_29 = lean_box(0); -x_30 = l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__5(x_15, x_28, x_29); +x_30 = l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__5(x_15, x_28, x_29); lean_dec(x_15); -x_31 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__6(x_30); +x_31 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__6(x_30); lean_inc(x_10); -x_32 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__7(x_21, x_31, x_10, x_11); +x_32 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__7(x_21, x_31, x_10, x_11); if (lean_obj_tag(x_32) == 0) { lean_object* x_33; lean_object* x_34; lean_object* x_35; @@ -12449,7 +12289,7 @@ x_34 = lean_ctor_get(x_32, 1); lean_inc(x_34); lean_dec(x_32); lean_inc(x_10); -x_35 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__8(x_33, x_10, x_34); +x_35 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__8(x_33, x_10, x_34); if (lean_obj_tag(x_35) == 0) { lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; @@ -12573,7 +12413,7 @@ return x_54; } } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___closed__1() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___closed__1() { _start: { lean_object* x_1; @@ -12581,27 +12421,27 @@ x_1 = lean_mk_string("constructor step"); return x_1; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___closed__2() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___closed__1; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___closed__3() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___closed__2; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; lean_object* x_27; uint8_t x_28; @@ -12619,7 +12459,7 @@ goto block_26; else { lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; -x_29 = l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__2; +x_29 = l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__2; x_30 = l___private_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_isLevelDefEqAux___main___spec__2(x_29, x_4, x_5); x_31 = lean_ctor_get(x_30, 0); lean_inc(x_31); @@ -12640,7 +12480,7 @@ lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; x_34 = lean_ctor_get(x_30, 1); lean_inc(x_34); lean_dec(x_30); -x_35 = l___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___closed__3; +x_35 = l___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___closed__3; x_36 = l_Lean_MonadTracerAdapter_addTrace___at_Lean_Meta_isLevelDefEqAux___main___spec__1(x_29, x_35, x_4, x_34); x_37 = lean_ctor_get(x_36, 1); lean_inc(x_37); @@ -12686,7 +12526,7 @@ x_19 = lean_ctor_get(x_17, 1); lean_inc(x_19); lean_dec(x_17); x_20 = lean_unsigned_to_nat(0u); -x_21 = l_Array_iterateMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__9(x_1, x_2, x_11, x_12, x_14, x_18, x_18, x_20, x_3, x_4, x_19); +x_21 = l_Array_iterateMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__9(x_1, x_2, x_11, x_12, x_14, x_18, x_18, x_20, x_3, x_4, x_19); lean_dec(x_18); lean_dec(x_14); lean_dec(x_11); @@ -12725,48 +12565,48 @@ return x_25; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__1(x_1, x_2); +x_3 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__1(x_1, x_2); lean_dec(x_1); return x_3; } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__3(x_1, x_2, x_3); +x_4 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__3(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__4___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__4___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__4(x_1, x_2); +x_3 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__4(x_1, x_2); lean_dec(x_1); return x_3; } } -lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__5(x_1, x_2, x_3); +x_4 = l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__5(x_1, x_2, x_3); lean_dec(x_1); return x_4; } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__9___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* l_Array_iterateMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__9___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_Array_iterateMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__9(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_12 = l_Array_iterateMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__9(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_7); lean_dec(x_6); lean_dec(x_5); @@ -12774,7 +12614,7 @@ lean_dec(x_3); return x_12; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_26__throwInductiveTypeExpected___rarg___closed__1() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg___closed__1() { _start: { lean_object* x_1; @@ -12782,34 +12622,34 @@ x_1 = lean_mk_string("failed to compile pattern matching, inductive type expecte return x_1; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_26__throwInductiveTypeExpected___rarg___closed__2() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_26__throwInductiveTypeExpected___rarg___closed__1; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_26__throwInductiveTypeExpected___rarg___closed__3() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_26__throwInductiveTypeExpected___rarg___closed__2; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_26__throwInductiveTypeExpected___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg(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; x_4 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_4, 0, x_1); x_5 = l_Lean_indentExpr(x_4); -x_6 = l___private_Lean_Meta_EqnCompiler_DepElim_26__throwInductiveTypeExpected___rarg___closed__3; +x_6 = l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg___closed__3; x_7 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_7, 0, x_6); lean_ctor_set(x_7, 1, x_5); @@ -12818,24 +12658,24 @@ x_9 = l_Lean_Meta_throwOther___rarg(x_7, x_8, x_2, x_3); return x_9; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_26__throwInductiveTypeExpected(lean_object* x_1) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_EqnCompiler_DepElim_26__throwInductiveTypeExpected___rarg___boxed), 3, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg___boxed), 3, 0); return x_2; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_26__throwInductiveTypeExpected___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l___private_Lean_Meta_EqnCompiler_DepElim_26__throwInductiveTypeExpected___rarg(x_1, x_2, x_3); +x_4 = l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg(x_1, x_2, x_3); lean_dec(x_2); return x_4; } } -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -12862,7 +12702,7 @@ lean_inc(x_10); x_11 = lean_ctor_get(x_9, 1); lean_inc(x_11); lean_dec(x_9); -x_12 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___spec__1(x_8, x_2, x_11); +x_12 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__1(x_8, x_2, x_11); x_13 = !lean_is_exclusive(x_12); if (x_13 == 0) { @@ -12903,7 +12743,7 @@ lean_inc(x_21); x_22 = lean_ctor_get(x_20, 1); lean_inc(x_22); lean_dec(x_20); -x_23 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___spec__1(x_19, x_2, x_22); +x_23 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__1(x_19, x_2, x_22); x_24 = lean_ctor_get(x_23, 0); lean_inc(x_24); x_25 = lean_ctor_get(x_23, 1); @@ -12931,7 +12771,7 @@ return x_28; } } } -uint8_t l_List_elem___main___at___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___spec__2(lean_object* x_1, lean_object* x_2) { +uint8_t l_List_elem___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__2(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -12960,7 +12800,7 @@ return x_8; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -12979,7 +12819,7 @@ lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; x_6 = lean_ctor_get(x_3, 0); x_7 = lean_ctor_get(x_3, 1); x_8 = lean_name_eq(x_6, x_1); -x_9 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___spec__3(x_1, x_2, x_7); +x_9 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__3(x_1, x_2, x_7); if (x_8 == 0) { lean_object* x_10; lean_object* x_11; @@ -13009,7 +12849,7 @@ lean_inc(x_14); lean_inc(x_13); lean_dec(x_3); x_15 = lean_name_eq(x_13, x_1); -x_16 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___spec__3(x_1, x_2, x_14); +x_16 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__3(x_1, x_2, x_14); if (x_15 == 0) { lean_object* x_17; lean_object* x_18; lean_object* x_19; @@ -13036,7 +12876,7 @@ return x_21; } } } -lean_object* l_List_filterAuxM___main___at___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_filterAuxM___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_1) == 0) @@ -13111,7 +12951,7 @@ goto _start; } } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___closed__1() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___closed__1() { _start: { lean_object* x_1; @@ -13119,27 +12959,27 @@ x_1 = lean_mk_string("ill-format alternative"); return x_1; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___closed__2() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___closed__1; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___closed__3() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___closed__2; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main(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___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main(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; uint8_t x_14; @@ -13187,7 +13027,7 @@ lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean x_28 = lean_ctor_get(x_27, 1); lean_inc(x_28); lean_dec(x_27); -x_29 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___spec__1(x_26, x_11, x_28); +x_29 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__1(x_26, x_11, x_28); x_30 = lean_ctor_get(x_29, 0); lean_inc(x_30); x_31 = lean_ctor_get(x_29, 1); @@ -13202,8 +13042,8 @@ lean_inc(x_34); x_35 = lean_ctor_get(x_33, 1); lean_inc(x_35); lean_dec(x_33); -x_36 = l_List_elem___main___at___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___spec__2(x_3, x_25); -x_37 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___spec__3(x_3, x_9, x_25); +x_36 = l_List_elem___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__2(x_3, x_25); +x_37 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__3(x_3, x_9, x_25); lean_dec(x_9); lean_dec(x_3); x_38 = l_List_join___main___rarg(x_37); @@ -13216,7 +13056,7 @@ lean_dec(x_34); lean_dec(x_32); lean_free_object(x_1); lean_dec(x_23); -x_40 = l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___closed__3; +x_40 = l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___closed__3; x_41 = lean_box(0); x_42 = l_Lean_Meta_throwOther___rarg(x_40, x_41, x_11, x_35); lean_dec(x_11); @@ -13242,7 +13082,7 @@ return x_46; else { lean_object* x_47; uint8_t x_48; -x_47 = l_List_filterAuxM___main___at___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___spec__4(x_38, x_39, x_11, x_35); +x_47 = l_List_filterAuxM___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__4(x_38, x_39, x_11, x_35); lean_dec(x_11); x_48 = !lean_is_exclusive(x_47); if (x_48 == 0) @@ -13327,7 +13167,7 @@ lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean x_64 = lean_ctor_get(x_63, 1); lean_inc(x_64); lean_dec(x_63); -x_65 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___spec__1(x_62, x_11, x_64); +x_65 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__1(x_62, x_11, x_64); x_66 = lean_ctor_get(x_65, 0); lean_inc(x_66); x_67 = lean_ctor_get(x_65, 1); @@ -13342,8 +13182,8 @@ lean_inc(x_70); x_71 = lean_ctor_get(x_69, 1); lean_inc(x_71); lean_dec(x_69); -x_72 = l_List_elem___main___at___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___spec__2(x_3, x_61); -x_73 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___spec__3(x_3, x_9, x_61); +x_72 = l_List_elem___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__2(x_3, x_61); +x_73 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__3(x_3, x_9, x_61); lean_dec(x_9); lean_dec(x_3); x_74 = l_List_join___main___rarg(x_73); @@ -13355,7 +13195,7 @@ lean_dec(x_74); lean_dec(x_70); lean_dec(x_68); lean_dec(x_59); -x_76 = l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___closed__3; +x_76 = l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___closed__3; x_77 = lean_box(0); x_78 = l_Lean_Meta_throwOther___rarg(x_76, x_77, x_11, x_71); lean_dec(x_11); @@ -13383,7 +13223,7 @@ return x_82; else { lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_83 = l_List_filterAuxM___main___at___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___spec__4(x_74, x_75, x_11, x_71); +x_83 = l_List_filterAuxM___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__4(x_74, x_75, x_11, x_71); lean_dec(x_11); x_84 = lean_ctor_get(x_83, 0); lean_inc(x_84); @@ -13534,74 +13374,74 @@ goto _start; } } } -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___spec__1(x_1, x_2, x_3); +x_4 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__1(x_1, x_2, x_3); lean_dec(x_2); return x_4; } } -lean_object* l_List_elem___main___at___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___spec__2___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_elem___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__2___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_List_elem___main___at___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___spec__2(x_1, x_2); +x_3 = l_List_elem___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__2(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); return x_4; } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___spec__3(x_1, x_2, x_3); +x_4 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__3(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -lean_object* l_List_filterAuxM___main___at___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_filterAuxM___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_List_filterAuxM___main___at___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___spec__4(x_1, x_2, x_3, x_4); +x_5 = l_List_filterAuxM___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__4(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___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___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___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_EqnCompiler_DepElim_27__tryConstructorAux___main(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___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main(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_6); return x_13; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux(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___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux(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_EqnCompiler_DepElim_27__tryConstructorAux___main(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___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); return x_13; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___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___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___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_EqnCompiler_DepElim_27__tryConstructorAux(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___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux(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_6); return x_13; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__1() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__1() { _start: { lean_object* x_1; @@ -13609,27 +13449,27 @@ x_1 = lean_mk_string("ctorName: "); return x_1; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__2() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__1; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__3() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__2; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__4() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__4() { _start: { lean_object* x_1; @@ -13637,27 +13477,27 @@ x_1 = lean_mk_string(", resultType: "); return x_1; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__5() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__4; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__4; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__6() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__5; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__5; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__7() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__7() { _start: { lean_object* x_1; @@ -13665,27 +13505,27 @@ x_1 = lean_mk_string(", expectedType: "); return x_1; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__8() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__8() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__7; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__7; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__9() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__9() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__8; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__8; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; @@ -13736,7 +13576,7 @@ goto block_50; else { lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; -x_53 = l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__4; +x_53 = l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__4; x_54 = l___private_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_isLevelDefEqAux___main___spec__2(x_53, x_8, x_21); x_55 = lean_ctor_get(x_54, 0); lean_inc(x_55); @@ -13760,11 +13600,11 @@ lean_dec(x_54); lean_inc(x_4); x_59 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_59, 0, x_4); -x_60 = l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__3; +x_60 = l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__3; x_61 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_61, 0, x_60); lean_ctor_set(x_61, 1, x_59); -x_62 = l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__6; +x_62 = l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__6; x_63 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_63, 0, x_61); lean_ctor_set(x_63, 1, x_62); @@ -13774,7 +13614,7 @@ lean_ctor_set(x_64, 0, x_23); x_65 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_65, 0, x_63); lean_ctor_set(x_65, 1, x_64); -x_66 = l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__9; +x_66 = l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__9; x_67 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_67, 0, x_65); lean_ctor_set(x_67, 1, x_66); @@ -13842,7 +13682,7 @@ x_32 = lean_ctor_get(x_25, 1); lean_inc(x_32); lean_dec(x_25); x_33 = l_Array_empty___closed__1; -x_34 = l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_22, x_11, x_33, x_33, x_8, x_32); +x_34 = l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_22, x_11, x_33, x_33, x_8, x_32); lean_dec(x_22); if (lean_obj_tag(x_34) == 0) { @@ -13989,16 +13829,16 @@ return x_79; } } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_6); return x_10; } } -lean_object* l_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_29__expandAlt___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) { +lean_object* l_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_28__expandAlt___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_7) == 0) @@ -14079,7 +13919,7 @@ lean_dec(x_33); lean_inc(x_8); lean_inc(x_4); lean_inc(x_2); -x_36 = l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f(x_18, x_2, x_19, x_12, x_4, x_35, x_25, x_8, x_26); +x_36 = l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f(x_18, x_2, x_19, x_12, x_4, x_35, x_25, x_8, x_26); lean_dec(x_35); if (lean_obj_tag(x_36) == 0) { @@ -14306,7 +14146,7 @@ lean_dec(x_80); lean_inc(x_8); lean_inc(x_4); lean_inc(x_2); -x_83 = l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f(x_65, x_2, x_66, x_59, x_4, x_82, x_72, x_8, x_73); +x_83 = l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f(x_65, x_2, x_66, x_59, x_4, x_82, x_72, x_8, x_73); lean_dec(x_82); if (lean_obj_tag(x_83) == 0) { @@ -14475,7 +14315,7 @@ return x_106; } } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_29__expandAlt(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_28__expandAlt(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; @@ -14521,7 +14361,7 @@ lean_dec(x_16); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_18 = l___private_Lean_Meta_EqnCompiler_DepElim_26__throwInductiveTypeExpected___rarg(x_12, x_4, x_13); +x_18 = l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg(x_12, x_4, x_13); lean_dec(x_4); return x_18; } @@ -14541,7 +14381,7 @@ lean_dec(x_19); x_21 = lean_box(0); x_22 = lean_ctor_get(x_20, 4); lean_inc(x_22); -x_23 = l_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_29__expandAlt___spec__1(x_1, x_2, x_3, x_16, x_20, x_21, x_22, x_4, x_13); +x_23 = l_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_28__expandAlt___spec__1(x_1, x_2, x_3, x_16, x_20, x_21, x_22, x_4, x_13); lean_dec(x_20); lean_dec(x_3); return x_23; @@ -14554,7 +14394,7 @@ lean_dec(x_16); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_24 = l___private_Lean_Meta_EqnCompiler_DepElim_26__throwInductiveTypeExpected___rarg(x_12, x_4, x_13); +x_24 = l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg(x_12, x_4, x_13); lean_dec(x_4); return x_24; } @@ -14568,7 +14408,7 @@ lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_25 = l___private_Lean_Meta_EqnCompiler_DepElim_26__throwInductiveTypeExpected___rarg(x_12, x_4, x_13); +x_25 = l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg(x_12, x_4, x_13); lean_dec(x_4); return x_25; } @@ -14630,17 +14470,17 @@ return x_33; } } } -lean_object* l_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_29__expandAlt___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* l_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_28__expandAlt___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_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_29__expandAlt___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_28__expandAlt___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_5); lean_dec(x_3); return x_10; } } -lean_object* l_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_30__processComplete___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_2) == 0) @@ -14737,7 +14577,7 @@ lean_inc(x_25); lean_dec(x_19); lean_ctor_set(x_6, 3, x_23); lean_inc(x_3); -x_26 = l___private_Lean_Meta_EqnCompiler_DepElim_29__expandAlt(x_6, x_24, x_25, x_3, x_4); +x_26 = l___private_Lean_Meta_EqnCompiler_DepElim_28__expandAlt(x_6, x_24, x_25, x_3, x_4); if (lean_obj_tag(x_26) == 0) { lean_object* x_27; lean_object* x_28; lean_object* x_29; @@ -14802,7 +14642,7 @@ lean_ctor_set(x_41, 1, x_36); lean_ctor_set(x_41, 2, x_37); lean_ctor_set(x_41, 3, x_38); lean_inc(x_3); -x_42 = l___private_Lean_Meta_EqnCompiler_DepElim_29__expandAlt(x_41, x_39, x_40, x_3, x_4); +x_42 = l___private_Lean_Meta_EqnCompiler_DepElim_28__expandAlt(x_41, x_39, x_40, x_3, x_4); if (lean_obj_tag(x_42) == 0) { lean_object* x_43; lean_object* x_44; lean_object* x_45; @@ -14939,7 +14779,7 @@ return x_69; } } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_30__processComplete___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* l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___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) { _start: { lean_object* x_7; uint8_t x_8; @@ -14953,7 +14793,7 @@ x_10 = lean_ctor_get(x_1, 1); x_11 = lean_ctor_get(x_1, 2); x_12 = lean_ctor_get(x_1, 3); lean_inc(x_5); -x_13 = l_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_30__processComplete___spec__1(x_7, x_11, x_5, x_6); +x_13 = l_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___spec__1(x_7, x_11, x_5, x_6); if (lean_obj_tag(x_13) == 0) { lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; @@ -15010,7 +14850,7 @@ lean_inc(x_23); lean_inc(x_22); lean_dec(x_1); lean_inc(x_5); -x_26 = l_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_30__processComplete___spec__1(x_7, x_24, x_5, x_6); +x_26 = l_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___spec__1(x_7, x_24, x_5, x_6); if (lean_obj_tag(x_26) == 0) { lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; @@ -15061,7 +14901,7 @@ return x_35; } } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_30__processComplete___closed__1() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__1() { _start: { lean_object* x_1; @@ -15069,7 +14909,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Meta_getEnv___boxed), 1, 0); return x_1; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_30__processComplete___closed__2() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__2() { _start: { lean_object* x_1; @@ -15077,36 +14917,36 @@ x_1 = lean_mk_string("complete step"); return x_1; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_30__processComplete___closed__3() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_30__processComplete___closed__2; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__2; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_30__processComplete___closed__4() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_30__processComplete___closed__3; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__3; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_30__processComplete(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_inc(x_2); -x_6 = lean_alloc_closure((void*)(l___private_Lean_Meta_EqnCompiler_DepElim_30__processComplete___lambda__1___boxed), 6, 3); +x_6 = lean_alloc_closure((void*)(l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___lambda__1___boxed), 6, 3); lean_closure_set(x_6, 0, x_2); lean_closure_set(x_6, 1, x_1); lean_closure_set(x_6, 2, x_3); -x_7 = l___private_Lean_Meta_EqnCompiler_DepElim_30__processComplete___closed__1; +x_7 = l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__1; x_8 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg), 4, 2); lean_closure_set(x_8, 0, x_7); lean_closure_set(x_8, 1, x_6); @@ -15123,7 +14963,7 @@ return x_11; else { lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; -x_12 = l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__2; +x_12 = l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__2; x_13 = l___private_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_isLevelDefEqAux___main___spec__2(x_12, x_4, x_5); x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); @@ -15144,7 +14984,7 @@ lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean x_18 = lean_ctor_get(x_13, 1); lean_inc(x_18); lean_dec(x_13); -x_19 = l___private_Lean_Meta_EqnCompiler_DepElim_30__processComplete___closed__4; +x_19 = l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__4; x_20 = l_Lean_MonadTracerAdapter_addTrace___at_Lean_Meta_isLevelDefEqAux___main___spec__1(x_12, x_19, x_4, x_18); x_21 = lean_ctor_get(x_20, 1); lean_inc(x_21); @@ -15155,25 +14995,25 @@ return x_22; } } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_30__processComplete___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* l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___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) { _start: { lean_object* x_7; -x_7 = l___private_Lean_Meta_EqnCompiler_DepElim_30__processComplete___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_4); return x_7; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_30__processComplete___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l___private_Lean_Meta_EqnCompiler_DepElim_30__processComplete(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete(x_1, x_2, x_3, x_4, x_5); lean_dec(x_4); return x_6; } } -lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__collectValues___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_30__collectValues___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -15242,7 +15082,7 @@ goto _start; } } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_31__collectValues(lean_object* x_1) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_30__collectValues(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; @@ -15250,11 +15090,11 @@ x_2 = lean_ctor_get(x_1, 2); lean_inc(x_2); lean_dec(x_1); x_3 = l_Array_empty___closed__1; -x_4 = l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__collectValues___spec__1(x_3, x_2); +x_4 = l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_30__collectValues___spec__1(x_3, x_2); return x_4; } } -uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_32__isFirstPatternVar(lean_object* x_1) { +uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_31__isFirstPatternVar(lean_object* x_1) { _start: { lean_object* x_2; @@ -15284,17 +15124,17 @@ return x_6; } } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_32__isFirstPatternVar___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_31__isFirstPatternVar___boxed(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; -x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_32__isFirstPatternVar(x_1); +x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_31__isFirstPatternVar(x_1); lean_dec(x_1); x_3 = lean_box(x_2); return x_3; } } -lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -15312,7 +15152,7 @@ if (x_4 == 0) lean_object* x_5; lean_object* x_6; uint8_t x_7; x_5 = lean_ctor_get(x_1, 0); x_6 = lean_ctor_get(x_1, 1); -x_7 = l___private_Lean_Meta_EqnCompiler_DepElim_32__isFirstPatternVar(x_5); +x_7 = l___private_Lean_Meta_EqnCompiler_DepElim_31__isFirstPatternVar(x_5); if (x_7 == 0) { lean_free_object(x_1); @@ -15340,7 +15180,7 @@ x_11 = lean_ctor_get(x_1, 1); lean_inc(x_11); lean_inc(x_10); lean_dec(x_1); -x_12 = l___private_Lean_Meta_EqnCompiler_DepElim_32__isFirstPatternVar(x_10); +x_12 = l___private_Lean_Meta_EqnCompiler_DepElim_31__isFirstPatternVar(x_10); if (x_12 == 0) { lean_dec(x_10); @@ -15361,7 +15201,7 @@ goto _start; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { if (lean_obj_tag(x_5) == 0) @@ -15381,7 +15221,7 @@ lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_o x_8 = lean_ctor_get(x_5, 0); x_9 = lean_ctor_get(x_5, 1); lean_inc(x_1); -x_10 = l___private_Lean_Meta_EqnCompiler_DepElim_31__collectValues(x_1); +x_10 = l___private_Lean_Meta_EqnCompiler_DepElim_30__collectValues(x_1); x_11 = l_Lean_Expr_fvarId_x21(x_2); x_12 = lean_array_fget(x_10, x_3); lean_dec(x_10); @@ -15390,7 +15230,7 @@ lean_ctor_set(x_13, 0, x_12); x_14 = l_Lean_Meta_DepElim_Example_replaceFVarId___main(x_11, x_13, x_8); lean_dec(x_13); lean_dec(x_11); -x_15 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__2(x_1, x_2, x_3, lean_box(0), x_9); +x_15 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__2(x_1, x_2, x_3, lean_box(0), x_9); lean_ctor_set(x_5, 1, x_15); lean_ctor_set(x_5, 0, x_14); return x_5; @@ -15404,7 +15244,7 @@ lean_inc(x_17); lean_inc(x_16); lean_dec(x_5); lean_inc(x_1); -x_18 = l___private_Lean_Meta_EqnCompiler_DepElim_31__collectValues(x_1); +x_18 = l___private_Lean_Meta_EqnCompiler_DepElim_30__collectValues(x_1); x_19 = l_Lean_Expr_fvarId_x21(x_2); x_20 = lean_array_fget(x_18, x_3); lean_dec(x_18); @@ -15413,7 +15253,7 @@ lean_ctor_set(x_21, 0, x_20); x_22 = l_Lean_Meta_DepElim_Example_replaceFVarId___main(x_19, x_21, x_16); lean_dec(x_21); lean_dec(x_19); -x_23 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__2(x_1, x_2, x_3, lean_box(0), x_17); +x_23 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__2(x_1, x_2, x_3, lean_box(0), x_17); x_24 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_24, 0, x_22); lean_ctor_set(x_24, 1, x_23); @@ -15422,7 +15262,7 @@ return x_24; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -15447,7 +15287,7 @@ lean_inc(x_10); lean_dec(x_9); x_11 = l_Lean_Meta_DepElim_Example_applyFVarSubst___main(x_10, x_6); lean_dec(x_10); -x_12 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__3(x_1, x_2, x_7); +x_12 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__3(x_1, x_2, x_7); lean_ctor_set(x_3, 1, x_12); lean_ctor_set(x_3, 0, x_11); return x_3; @@ -15467,7 +15307,7 @@ lean_inc(x_17); lean_dec(x_16); x_18 = l_Lean_Meta_DepElim_Example_applyFVarSubst___main(x_17, x_13); lean_dec(x_17); -x_19 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__3(x_1, x_2, x_14); +x_19 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__3(x_1, x_2, x_14); x_20 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_20, 0, x_18); lean_ctor_set(x_20, 1, x_19); @@ -15476,7 +15316,7 @@ return x_20; } } } -lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_2) == 0) @@ -15633,7 +15473,7 @@ goto _start; } } } -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_2) == 0) @@ -15667,7 +15507,7 @@ lean_inc(x_11); x_12 = lean_ctor_get(x_10, 1); lean_inc(x_12); lean_dec(x_10); -x_13 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__5(x_1, x_9, x_3, x_12); +x_13 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__5(x_1, x_9, x_3, x_12); if (lean_obj_tag(x_13) == 0) { uint8_t x_14; @@ -15768,7 +15608,7 @@ lean_inc(x_30); x_31 = lean_ctor_get(x_29, 1); lean_inc(x_31); lean_dec(x_29); -x_32 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__5(x_1, x_28, x_3, x_31); +x_32 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__5(x_1, x_28, x_3, x_31); if (lean_obj_tag(x_32) == 0) { lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; @@ -15853,7 +15693,7 @@ return x_45; } } } -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_2) == 0) @@ -15964,7 +15804,7 @@ lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean x_44 = lean_ctor_get(x_43, 1); lean_inc(x_44); lean_dec(x_43); -x_45 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___spec__1(x_41, x_3, x_44); +x_45 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__1(x_41, x_3, x_44); x_46 = lean_ctor_get(x_45, 0); lean_inc(x_46); x_47 = lean_ctor_get(x_45, 1); @@ -15976,7 +15816,7 @@ lean_inc(x_49); x_50 = lean_ctor_get(x_48, 1); lean_inc(x_50); lean_dec(x_48); -x_51 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___spec__1(x_39, x_42); +x_51 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__1(x_39, x_42); lean_dec(x_42); lean_ctor_set(x_7, 3, x_46); lean_ctor_set(x_7, 2, x_51); @@ -16043,7 +15883,7 @@ lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean x_62 = lean_ctor_get(x_61, 1); lean_inc(x_62); lean_dec(x_61); -x_63 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___spec__1(x_59, x_3, x_62); +x_63 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__1(x_59, x_3, x_62); x_64 = lean_ctor_get(x_63, 0); lean_inc(x_64); x_65 = lean_ctor_get(x_63, 1); @@ -16055,7 +15895,7 @@ lean_inc(x_67); x_68 = lean_ctor_get(x_66, 1); lean_inc(x_68); lean_dec(x_66); -x_69 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___spec__1(x_58, x_60); +x_69 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__1(x_58, x_60); lean_dec(x_60); x_70 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_70, 0, x_56); @@ -16196,7 +16036,7 @@ return x_91; block_24: { lean_object* x_12; -x_12 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__6(x_1, x_8, x_3, x_11); +x_12 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__6(x_1, x_8, x_3, x_11); if (lean_obj_tag(x_12) == 0) { uint8_t x_13; @@ -16264,7 +16104,7 @@ return x_23; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__7(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__7(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -16283,7 +16123,7 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); x_7 = l_Lean_Meta_FVarSubst_apply(x_1, x_5); -x_8 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__7(x_1, x_6); +x_8 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__7(x_1, x_6); lean_ctor_set(x_2, 1, x_8); lean_ctor_set(x_2, 0, x_7); return x_2; @@ -16297,7 +16137,7 @@ lean_inc(x_10); lean_inc(x_9); lean_dec(x_2); x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_9); -x_12 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__7(x_1, x_10); +x_12 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__7(x_1, x_10); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); @@ -16306,7 +16146,7 @@ return x_13; } } } -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__8(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_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { lean_object* x_14; uint8_t x_15; @@ -16335,9 +16175,9 @@ lean_inc(x_24); x_25 = lean_ctor_get(x_2, 3); lean_inc(x_25); x_26 = lean_box(0); -x_27 = l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__1(x_24, x_26); +x_27 = l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__1(x_24, x_26); lean_inc(x_12); -x_28 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__8(x_27, x_12, x_13); +x_28 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__8(x_27, x_12, x_13); if (lean_obj_tag(x_28) == 0) { lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; @@ -16446,14 +16286,14 @@ lean_inc(x_48); x_49 = lean_ctor_get(x_2, 3); lean_inc(x_49); lean_inc(x_2); -x_50 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__2(x_2, x_4, x_19, lean_box(0), x_49); -x_51 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__3(x_8, x_19, x_50); +x_50 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__2(x_2, x_4, x_19, lean_box(0), x_49); +x_51 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__3(x_8, x_19, x_50); lean_dec(x_19); x_52 = lean_box(0); -x_53 = l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__4(x_45, x_48, x_52); +x_53 = l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__4(x_45, x_48, x_52); lean_inc(x_12); lean_inc(x_47); -x_54 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__5(x_47, x_53, x_12, x_13); +x_54 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__5(x_47, x_53, x_12, x_13); if (lean_obj_tag(x_54) == 0) { lean_object* x_55; lean_object* x_56; lean_object* x_57; @@ -16463,7 +16303,7 @@ x_56 = lean_ctor_get(x_54, 1); lean_inc(x_56); lean_dec(x_54); lean_inc(x_12); -x_57 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__8(x_55, x_12, x_56); +x_57 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__8(x_55, x_12, x_56); if (lean_obj_tag(x_57) == 0) { lean_object* x_58; lean_object* x_59; lean_object* x_60; @@ -16473,7 +16313,7 @@ x_59 = lean_ctor_get(x_57, 1); lean_inc(x_59); lean_dec(x_57); lean_inc(x_12); -x_60 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__6(x_45, x_58, x_12, x_59); +x_60 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__6(x_45, x_58, x_12, x_59); if (lean_obj_tag(x_60) == 0) { lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; @@ -16483,7 +16323,7 @@ x_62 = lean_ctor_get(x_60, 1); lean_inc(x_62); lean_dec(x_60); lean_inc(x_5); -x_63 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__7(x_47, x_5); +x_63 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__7(x_47, x_5); lean_dec(x_47); x_64 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_64, 0, x_46); @@ -16653,7 +16493,7 @@ return x_85; } } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___closed__1() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___closed__1() { _start: { lean_object* x_1; @@ -16661,27 +16501,27 @@ x_1 = lean_mk_string("value step"); return x_1; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___closed__2() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___closed__1; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___closed__3() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___closed__2; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_33__processValue(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_32__processValue(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; lean_object* x_27; uint8_t x_28; @@ -16699,7 +16539,7 @@ goto block_26; else { lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; -x_29 = l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__2; +x_29 = l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__2; x_30 = l___private_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_isLevelDefEqAux___main___spec__2(x_29, x_4, x_5); x_31 = lean_ctor_get(x_30, 0); lean_inc(x_31); @@ -16720,7 +16560,7 @@ lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; x_34 = lean_ctor_get(x_30, 1); lean_inc(x_34); lean_dec(x_30); -x_35 = l___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___closed__3; +x_35 = l___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___closed__3; x_36 = l_Lean_MonadTracerAdapter_addTrace___at_Lean_Meta_isLevelDefEqAux___main___spec__1(x_29, x_35, x_4, x_34); x_37 = lean_ctor_get(x_36, 1); lean_inc(x_37); @@ -16750,7 +16590,7 @@ lean_inc(x_11); x_12 = lean_ctor_get(x_6, 1); lean_inc(x_12); lean_inc(x_2); -x_13 = l___private_Lean_Meta_EqnCompiler_DepElim_31__collectValues(x_2); +x_13 = l___private_Lean_Meta_EqnCompiler_DepElim_30__collectValues(x_2); x_14 = lean_ctor_get(x_2, 0); lean_inc(x_14); x_15 = l_Lean_Expr_fvarId_x21(x_11); @@ -16767,7 +16607,7 @@ lean_inc(x_19); lean_dec(x_17); x_20 = lean_array_get_size(x_18); lean_inc(x_20); -x_21 = l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__8(x_1, x_2, x_6, x_11, x_12, x_13, x_15, x_18, x_20, x_20, x_3, x_4, x_19); +x_21 = l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__8(x_1, x_2, x_6, x_11, x_12, x_13, x_15, x_18, x_20, x_20, x_3, x_4, x_19); lean_dec(x_20); lean_dec(x_18); lean_dec(x_15); @@ -16810,49 +16650,49 @@ return x_25; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___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* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__2(x_1, x_2, x_3, x_4, x_5); +x_6 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__2(x_1, x_2, x_3, x_4, x_5); lean_dec(x_3); lean_dec(x_2); return x_6; } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__3(x_1, x_2, x_3); +x_4 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__3(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__4(x_1, x_2, x_3); +x_4 = l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__4(x_1, x_2, x_3); lean_dec(x_1); return x_4; } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__7___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__7___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__7(x_1, x_2); +x_3 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__7(x_1, x_2); lean_dec(x_1); return x_3; } } -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___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) { +lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___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: { lean_object* x_14; -x_14 = l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__8(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 = l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__8(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -16861,7 +16701,7 @@ lean_dec(x_4); return x_14; } } -lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__collectArraySizes___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__collectArraySizes___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -16918,35 +16758,35 @@ goto _start; } } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_34__collectArraySizes(lean_object* x_1) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_33__collectArraySizes(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; x_2 = lean_ctor_get(x_1, 2); x_3 = l_Array_empty___closed__1; -x_4 = l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__collectArraySizes___spec__1(x_3, x_2); +x_4 = l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__collectArraySizes___spec__1(x_3, x_2); return x_4; } } -lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__collectArraySizes___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__collectArraySizes___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__collectArraySizes___spec__1(x_1, x_2); +x_3 = l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__collectArraySizes___spec__1(x_1, x_2); lean_dec(x_2); return x_3; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_34__collectArraySizes___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_33__collectArraySizes___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_34__collectArraySizes(x_1); +x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_33__collectArraySizes(x_1); lean_dec(x_1); return x_2; } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__1(lean_object* x_1) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -16965,7 +16805,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = l_Lean_mkFVar(x_4); -x_7 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__1(x_5); +x_7 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__1(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -16979,7 +16819,7 @@ lean_inc(x_9); lean_inc(x_8); lean_dec(x_1); x_10 = l_Lean_mkFVar(x_8); -x_11 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__1(x_9); +x_11 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__1(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -16988,7 +16828,7 @@ return x_12; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__2(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__2(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -17007,7 +16847,7 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); x_7 = l_Lean_Meta_FVarSubst_apply(x_1, x_5); -x_8 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__2(x_1, x_6); +x_8 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__2(x_1, x_6); lean_ctor_set(x_2, 1, x_8); lean_ctor_set(x_2, 0, x_7); return x_2; @@ -17021,7 +16861,7 @@ lean_inc(x_10); lean_inc(x_9); lean_dec(x_2); x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_9); -x_12 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__2(x_1, x_10); +x_12 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__2(x_1, x_10); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); @@ -17030,7 +16870,7 @@ return x_13; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__3(lean_object* x_1) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__3(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -17050,7 +16890,7 @@ x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_6, 0, x_4); -x_7 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__3(x_5); +x_7 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__3(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -17065,7 +16905,7 @@ lean_inc(x_8); lean_dec(x_1); x_10 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_10, 0, x_8); -x_11 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__3(x_9); +x_11 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__3(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -17074,7 +16914,7 @@ return x_12; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_4) == 0) @@ -17100,13 +16940,13 @@ lean_inc(x_12); lean_dec(x_11); x_13 = l_Array_toList___rarg(x_12); lean_dec(x_12); -x_14 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__3(x_13); +x_14 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__3(x_13); x_15 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_15, 0, x_14); x_16 = l_Lean_Meta_DepElim_Example_replaceFVarId___main(x_9, x_15, x_7); lean_dec(x_15); lean_dec(x_9); -x_17 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__4(x_1, x_2, x_3, x_8); +x_17 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__4(x_1, x_2, x_3, x_8); lean_ctor_set(x_4, 1, x_17); lean_ctor_set(x_4, 0, x_16); return x_4; @@ -17127,13 +16967,13 @@ lean_inc(x_23); lean_dec(x_22); x_24 = l_Array_toList___rarg(x_23); lean_dec(x_23); -x_25 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__3(x_24); +x_25 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__3(x_24); x_26 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_26, 0, x_25); x_27 = l_Lean_Meta_DepElim_Example_replaceFVarId___main(x_20, x_26, x_18); lean_dec(x_26); lean_dec(x_20); -x_28 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__4(x_1, x_2, x_3, x_19); +x_28 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__4(x_1, x_2, x_3, x_19); x_29 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_29, 0, x_27); lean_ctor_set(x_29, 1, x_28); @@ -17142,7 +16982,7 @@ return x_29; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -17167,7 +17007,7 @@ lean_inc(x_10); lean_dec(x_9); x_11 = l_Lean_Meta_DepElim_Example_applyFVarSubst___main(x_10, x_6); lean_dec(x_10); -x_12 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__5(x_1, x_2, x_7); +x_12 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__5(x_1, x_2, x_7); lean_ctor_set(x_3, 1, x_12); lean_ctor_set(x_3, 0, x_11); return x_3; @@ -17187,7 +17027,7 @@ lean_inc(x_17); lean_dec(x_16); x_18 = l_Lean_Meta_DepElim_Example_applyFVarSubst___main(x_17, x_13); lean_dec(x_17); -x_19 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__5(x_1, x_2, x_14); +x_19 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__5(x_1, x_2, x_14); x_20 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_20, 0, x_18); lean_ctor_set(x_20, 1, x_19); @@ -17196,7 +17036,7 @@ return x_20; } } } -lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_2) == 0) @@ -17359,7 +17199,7 @@ goto _start; } } } -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_2) == 0) @@ -17393,7 +17233,7 @@ lean_inc(x_11); x_12 = lean_ctor_get(x_10, 1); lean_inc(x_12); lean_dec(x_10); -x_13 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__7(x_1, x_9, x_3, x_12); +x_13 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__7(x_1, x_9, x_3, x_12); if (lean_obj_tag(x_13) == 0) { uint8_t x_14; @@ -17494,7 +17334,7 @@ lean_inc(x_30); x_31 = lean_ctor_get(x_29, 1); lean_inc(x_31); lean_dec(x_29); -x_32 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__7(x_1, x_28, x_3, x_31); +x_32 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__7(x_1, x_28, x_3, x_31); if (lean_obj_tag(x_32) == 0) { lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; @@ -17579,7 +17419,7 @@ return x_45; } } } -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__8(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* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__8(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; uint8_t x_8; @@ -17622,7 +17462,7 @@ return x_18; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__9(lean_object* x_1) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__9(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -17642,7 +17482,7 @@ x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = l_Lean_Expr_mvarId_x21(x_4); lean_dec(x_4); -x_7 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__9(x_5); +x_7 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__9(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -17657,7 +17497,7 @@ lean_inc(x_8); lean_dec(x_1); x_10 = l_Lean_Expr_mvarId_x21(x_8); lean_dec(x_8); -x_11 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__9(x_9); +x_11 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__9(x_9); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); @@ -17666,7 +17506,7 @@ return x_12; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__10(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__10(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -17691,7 +17531,7 @@ lean_inc(x_1); x_8 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_8, 0, x_1); lean_ctor_set(x_8, 1, x_7); -x_9 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__10(x_1, x_6); +x_9 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__10(x_1, x_6); lean_ctor_set(x_2, 1, x_9); lean_ctor_set(x_2, 0, x_8); return x_2; @@ -17710,7 +17550,7 @@ lean_inc(x_1); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_1); lean_ctor_set(x_13, 1, x_12); -x_14 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__10(x_1, x_11); +x_14 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__10(x_1, x_11); x_15 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_15, 0, x_13); lean_ctor_set(x_15, 1, x_14); @@ -17719,7 +17559,7 @@ return x_15; } } } -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__11(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__11(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { if (lean_obj_tag(x_3) == 0) @@ -17840,7 +17680,7 @@ x_48 = lean_box(0); lean_inc(x_4); lean_inc(x_2); lean_inc(x_46); -x_49 = l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__8(x_46, x_2, x_2, x_48, x_4, x_47); +x_49 = l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__8(x_46, x_2, x_2, x_48, x_4, x_47); x_50 = lean_ctor_get(x_49, 0); lean_inc(x_50); x_51 = lean_ctor_get(x_49, 1); @@ -17865,7 +17705,7 @@ lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean x_56 = lean_ctor_get(x_55, 1); lean_inc(x_56); lean_dec(x_55); -x_57 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___spec__1(x_42, x_4, x_56); +x_57 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__1(x_42, x_4, x_56); x_58 = lean_ctor_get(x_57, 0); lean_inc(x_58); x_59 = lean_ctor_get(x_57, 1); @@ -17877,12 +17717,12 @@ lean_inc(x_61); x_62 = lean_ctor_get(x_60, 1); lean_inc(x_62); lean_dec(x_60); -x_63 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___spec__1(x_40, x_44); +x_63 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__1(x_40, x_44); lean_dec(x_44); lean_inc(x_50); -x_64 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__9(x_50); +x_64 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__9(x_50); x_65 = l_List_append___rarg(x_64, x_63); -x_66 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__10(x_43, x_50); +x_66 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__10(x_43, x_50); x_67 = l_List_append___rarg(x_66, x_58); lean_ctor_set(x_8, 3, x_67); lean_ctor_set(x_8, 2, x_65); @@ -18031,7 +17871,7 @@ x_89 = lean_box(0); lean_inc(x_4); lean_inc(x_2); lean_inc(x_87); -x_90 = l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__8(x_87, x_2, x_2, x_89, x_4, x_88); +x_90 = l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__8(x_87, x_2, x_2, x_89, x_4, x_88); x_91 = lean_ctor_get(x_90, 0); lean_inc(x_91); x_92 = lean_ctor_get(x_90, 1); @@ -18056,7 +17896,7 @@ lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lea x_97 = lean_ctor_get(x_96, 1); lean_inc(x_97); lean_dec(x_96); -x_98 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___spec__1(x_83, x_4, x_97); +x_98 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__1(x_83, x_4, x_97); x_99 = lean_ctor_get(x_98, 0); lean_inc(x_99); x_100 = lean_ctor_get(x_98, 1); @@ -18068,12 +17908,12 @@ lean_inc(x_102); x_103 = lean_ctor_get(x_101, 1); lean_inc(x_103); lean_dec(x_101); -x_104 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___spec__1(x_82, x_85); +x_104 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__1(x_82, x_85); lean_dec(x_85); lean_inc(x_91); -x_105 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__9(x_91); +x_105 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__9(x_91); x_106 = l_List_append___rarg(x_105, x_104); -x_107 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__10(x_84, x_91); +x_107 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__10(x_84, x_91); x_108 = l_List_append___rarg(x_107, x_99); x_109 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_109, 0, x_80); @@ -18298,7 +18138,7 @@ return x_142; block_25: { lean_object* x_13; -x_13 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__11(x_1, x_2, x_9, x_4, x_12); +x_13 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__11(x_1, x_2, x_9, x_4, x_12); if (lean_obj_tag(x_13) == 0) { uint8_t x_14; @@ -18366,7 +18206,7 @@ return x_24; } } } -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__12(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_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__12(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { lean_object* x_14; uint8_t x_15; @@ -18395,9 +18235,9 @@ lean_inc(x_24); x_25 = lean_ctor_get(x_2, 3); lean_inc(x_25); x_26 = lean_box(0); -x_27 = l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___spec__1(x_24, x_26); +x_27 = l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__1(x_24, x_26); lean_inc(x_12); -x_28 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__8(x_27, x_12, x_13); +x_28 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__8(x_27, x_12, x_13); if (lean_obj_tag(x_28) == 0) { lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; @@ -18508,21 +18348,21 @@ lean_inc(x_49); lean_dec(x_21); x_50 = l_Array_toList___rarg(x_48); lean_dec(x_48); -x_51 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__1(x_50); +x_51 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__1(x_50); lean_inc(x_5); x_52 = l_List_append___rarg(x_51, x_5); -x_53 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__2(x_49, x_52); +x_53 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__2(x_49, x_52); x_54 = lean_ctor_get(x_2, 2); lean_inc(x_54); x_55 = lean_ctor_get(x_2, 3); lean_inc(x_55); -x_56 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__4(x_4, x_8, x_19, x_55); -x_57 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__5(x_8, x_19, x_56); +x_56 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__4(x_4, x_8, x_19, x_55); +x_57 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__5(x_8, x_19, x_56); lean_dec(x_19); x_58 = lean_box(0); -x_59 = l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__6(x_46, x_54, x_58); +x_59 = l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__6(x_46, x_54, x_58); lean_inc(x_12); -x_60 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__7(x_49, x_59, x_12, x_13); +x_60 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__7(x_49, x_59, x_12, x_13); if (lean_obj_tag(x_60) == 0) { lean_object* x_61; lean_object* x_62; lean_object* x_63; @@ -18532,7 +18372,7 @@ x_62 = lean_ctor_get(x_60, 1); lean_inc(x_62); lean_dec(x_60); lean_inc(x_12); -x_63 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___spec__8(x_61, x_12, x_62); +x_63 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__8(x_61, x_12, x_62); if (lean_obj_tag(x_63) == 0) { lean_object* x_64; lean_object* x_65; lean_object* x_66; @@ -18543,7 +18383,7 @@ lean_inc(x_65); lean_dec(x_63); lean_inc(x_12); lean_inc(x_4); -x_66 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__11(x_4, x_46, x_64, x_12, x_65); +x_66 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__11(x_4, x_46, x_64, x_12, x_65); if (lean_obj_tag(x_66) == 0) { lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; @@ -18725,7 +18565,7 @@ return x_90; } } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___closed__1() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___closed__1() { _start: { lean_object* x_1; @@ -18733,27 +18573,27 @@ x_1 = lean_mk_string("array literal step"); return x_1; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___closed__2() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___closed__1; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___closed__3() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___closed__2; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; lean_object* x_28; uint8_t x_29; @@ -18771,7 +18611,7 @@ goto block_27; else { lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_30 = l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__2; +x_30 = l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__2; x_31 = l___private_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_isLevelDefEqAux___main___spec__2(x_30, x_4, x_5); x_32 = lean_ctor_get(x_31, 0); lean_inc(x_32); @@ -18792,7 +18632,7 @@ lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; x_35 = lean_ctor_get(x_31, 1); lean_inc(x_35); lean_dec(x_31); -x_36 = l___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___closed__3; +x_36 = l___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___closed__3; x_37 = l_Lean_MonadTracerAdapter_addTrace___at_Lean_Meta_isLevelDefEqAux___main___spec__1(x_30, x_36, x_4, x_35); x_38 = lean_ctor_get(x_37, 1); lean_inc(x_38); @@ -18821,7 +18661,7 @@ x_11 = lean_ctor_get(x_6, 0); lean_inc(x_11); x_12 = lean_ctor_get(x_6, 1); lean_inc(x_12); -x_13 = l___private_Lean_Meta_EqnCompiler_DepElim_34__collectArraySizes(x_2); +x_13 = l___private_Lean_Meta_EqnCompiler_DepElim_33__collectArraySizes(x_2); x_14 = lean_ctor_get(x_2, 0); lean_inc(x_14); x_15 = l_Lean_Expr_fvarId_x21(x_11); @@ -18841,7 +18681,7 @@ lean_inc(x_20); lean_dec(x_18); x_21 = lean_array_get_size(x_19); lean_inc(x_21); -x_22 = l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__12(x_1, x_2, x_6, x_11, x_12, x_13, x_15, x_19, x_21, x_21, x_3, x_4, x_20); +x_22 = l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__12(x_1, x_2, x_6, x_11, x_12, x_13, x_15, x_19, x_21, x_21, x_3, x_4, x_20); lean_dec(x_21); lean_dec(x_19); lean_dec(x_15); @@ -18883,59 +18723,59 @@ return x_26; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__2___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__2___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__2(x_1, x_2); +x_3 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__2(x_1, x_2); lean_dec(x_1); return x_3; } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__4(x_1, x_2, x_3, x_4); +x_5 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__4(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); return x_5; } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__5(x_1, x_2, x_3); +x_4 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__5(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__6(x_1, x_2, x_3); +x_4 = l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__6(x_1, x_2, x_3); lean_dec(x_1); return x_4; } } -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___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* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___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) { _start: { lean_object* x_7; -x_7 = l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__8(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__8(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_2); return x_7; } } -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__12___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* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__12___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { lean_object* x_14; -x_14 = l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___spec__12(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 = l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__12(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -18943,7 +18783,7 @@ lean_dec(x_6); return x_14; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; @@ -18967,7 +18807,7 @@ return x_9; } } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___lambda__2(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___lambda__2(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5) { _start: { if (x_3 == 0) @@ -19022,37 +18862,37 @@ return x_15; } } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__1() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__1() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___lambda__1___boxed), 4, 1); +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___lambda__1___boxed), 4, 1); lean_closure_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__2() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Meta_tracer___closed__3; -x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__1; +x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__1; x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg), 4, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); return x_3; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__3() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__3() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main), 4, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main), 4, 0); return x_1; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__4() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__4() { _start: { lean_object* x_1; @@ -19060,40 +18900,40 @@ x_1 = lean_mk_string("not implement yet "); return x_1; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__5() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__4; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__4; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__6() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__5; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__5; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; uint8_t x_13; -x_5 = l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__2; +x_5 = l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__2; lean_inc(x_1); -x_6 = lean_alloc_closure((void*)(l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___lambda__2___boxed), 5, 2); +x_6 = lean_alloc_closure((void*)(l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___lambda__2___boxed), 5, 2); lean_closure_set(x_6, 0, x_1); lean_closure_set(x_6, 1, x_5); -x_7 = l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__2; +x_7 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__2; x_8 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg), 4, 2); lean_closure_set(x_8, 0, x_7); lean_closure_set(x_8, 1, x_6); -x_9 = l___private_Lean_Meta_EqnCompiler_DepElim_12__isDone(x_1); +x_9 = l___private_Lean_Meta_EqnCompiler_DepElim_11__isDone(x_1); x_10 = lean_ctor_get(x_3, 3); lean_inc(x_10); x_11 = lean_ctor_get(x_3, 4); @@ -19174,38 +19014,38 @@ lean_object* x_20; uint8_t x_21; x_20 = lean_ctor_get(x_19, 1); lean_inc(x_20); lean_dec(x_19); -x_21 = l___private_Lean_Meta_EqnCompiler_DepElim_14__hasAsPattern(x_1); +x_21 = l___private_Lean_Meta_EqnCompiler_DepElim_13__hasAsPattern(x_1); if (x_21 == 0) { uint8_t x_22; -x_22 = l___private_Lean_Meta_EqnCompiler_DepElim_13__isNextVar(x_1); +x_22 = l___private_Lean_Meta_EqnCompiler_DepElim_12__isNextVar(x_1); if (x_22 == 0) { lean_object* x_23; lean_object* x_24; -x_23 = l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__3; -x_24 = l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable(x_23, x_1, x_2, x_3, x_20); +x_23 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__3; +x_24 = l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable(x_23, x_1, x_2, x_3, x_20); return x_24; } else { uint8_t x_25; -x_25 = l___private_Lean_Meta_EqnCompiler_DepElim_15__isVariableTransition(x_1); +x_25 = l___private_Lean_Meta_EqnCompiler_DepElim_14__isVariableTransition(x_1); if (x_25 == 0) { uint8_t x_26; -x_26 = l___private_Lean_Meta_EqnCompiler_DepElim_16__isConstructorTransition(x_1); +x_26 = l___private_Lean_Meta_EqnCompiler_DepElim_15__isConstructorTransition(x_1); if (x_26 == 0) { uint8_t x_27; -x_27 = l___private_Lean_Meta_EqnCompiler_DepElim_17__isCompleteTransition(x_1); +x_27 = l___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition(x_1); if (x_27 == 0) { uint8_t x_28; -x_28 = l___private_Lean_Meta_EqnCompiler_DepElim_18__isValueTransition(x_1); +x_28 = l___private_Lean_Meta_EqnCompiler_DepElim_17__isValueTransition(x_1); if (x_28 == 0) { uint8_t x_29; -x_29 = l___private_Lean_Meta_EqnCompiler_DepElim_19__isArrayLitTransition(x_1); +x_29 = l___private_Lean_Meta_EqnCompiler_DepElim_18__isArrayLitTransition(x_1); if (x_29 == 0) { lean_object* x_30; @@ -19219,7 +19059,7 @@ lean_inc(x_31); x_32 = lean_ctor_get(x_30, 1); lean_inc(x_32); lean_dec(x_30); -x_33 = l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__6; +x_33 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__6; x_34 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_34, 0, x_33); lean_ctor_set(x_34, 1, x_31); @@ -19255,24 +19095,24 @@ return x_40; else { lean_object* x_41; lean_object* x_42; -x_41 = l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__3; -x_42 = l___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit(x_41, x_1, x_2, x_3, x_20); +x_41 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__3; +x_42 = l___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit(x_41, x_1, x_2, x_3, x_20); return x_42; } } else { lean_object* x_43; lean_object* x_44; -x_43 = l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__3; -x_44 = l___private_Lean_Meta_EqnCompiler_DepElim_33__processValue(x_43, x_1, x_2, x_3, x_20); +x_43 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__3; +x_44 = l___private_Lean_Meta_EqnCompiler_DepElim_32__processValue(x_43, x_1, x_2, x_3, x_20); return x_44; } } else { lean_object* x_45; lean_object* x_46; -x_45 = l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__3; -x_46 = l___private_Lean_Meta_EqnCompiler_DepElim_30__processComplete(x_45, x_1, x_2, x_3, x_20); +x_45 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__3; +x_46 = l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete(x_45, x_1, x_2, x_3, x_20); lean_dec(x_3); return x_46; } @@ -19280,16 +19120,16 @@ return x_46; else { lean_object* x_47; lean_object* x_48; -x_47 = l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__3; -x_48 = l___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor(x_47, x_1, x_2, x_3, x_20); +x_47 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__3; +x_48 = l___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor(x_47, x_1, x_2, x_3, x_20); return x_48; } } else { lean_object* x_49; lean_object* x_50; -x_49 = l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__3; -x_50 = l___private_Lean_Meta_EqnCompiler_DepElim_23__processVariable(x_49, x_1, x_2, x_3, x_20); +x_49 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__3; +x_50 = l___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable(x_49, x_1, x_2, x_3, x_20); return x_50; } } @@ -19297,8 +19137,8 @@ return x_50; else { lean_object* x_51; lean_object* x_52; -x_51 = l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__3; -x_52 = l___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern(x_51, x_1, x_2, x_3, x_20); +x_51 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__3; +x_52 = l___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern(x_51, x_1, x_2, x_3, x_20); return x_52; } } @@ -19308,7 +19148,7 @@ lean_object* x_53; lean_object* x_54; x_53 = lean_ctor_get(x_19, 1); lean_inc(x_53); lean_dec(x_19); -x_54 = l___private_Lean_Meta_EqnCompiler_DepElim_21__processLeaf(x_1, x_2, x_3, x_53); +x_54 = l___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf(x_1, x_2, x_3, x_53); lean_dec(x_3); return x_54; } @@ -19368,38 +19208,38 @@ lean_object* x_66; uint8_t x_67; x_66 = lean_ctor_get(x_65, 1); lean_inc(x_66); lean_dec(x_65); -x_67 = l___private_Lean_Meta_EqnCompiler_DepElim_14__hasAsPattern(x_1); +x_67 = l___private_Lean_Meta_EqnCompiler_DepElim_13__hasAsPattern(x_1); if (x_67 == 0) { uint8_t x_68; -x_68 = l___private_Lean_Meta_EqnCompiler_DepElim_13__isNextVar(x_1); +x_68 = l___private_Lean_Meta_EqnCompiler_DepElim_12__isNextVar(x_1); if (x_68 == 0) { lean_object* x_69; lean_object* x_70; -x_69 = l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__3; -x_70 = l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable(x_69, x_1, x_2, x_64, x_66); +x_69 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__3; +x_70 = l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable(x_69, x_1, x_2, x_64, x_66); return x_70; } else { uint8_t x_71; -x_71 = l___private_Lean_Meta_EqnCompiler_DepElim_15__isVariableTransition(x_1); +x_71 = l___private_Lean_Meta_EqnCompiler_DepElim_14__isVariableTransition(x_1); if (x_71 == 0) { uint8_t x_72; -x_72 = l___private_Lean_Meta_EqnCompiler_DepElim_16__isConstructorTransition(x_1); +x_72 = l___private_Lean_Meta_EqnCompiler_DepElim_15__isConstructorTransition(x_1); if (x_72 == 0) { uint8_t x_73; -x_73 = l___private_Lean_Meta_EqnCompiler_DepElim_17__isCompleteTransition(x_1); +x_73 = l___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition(x_1); if (x_73 == 0) { uint8_t x_74; -x_74 = l___private_Lean_Meta_EqnCompiler_DepElim_18__isValueTransition(x_1); +x_74 = l___private_Lean_Meta_EqnCompiler_DepElim_17__isValueTransition(x_1); if (x_74 == 0) { uint8_t x_75; -x_75 = l___private_Lean_Meta_EqnCompiler_DepElim_19__isArrayLitTransition(x_1); +x_75 = l___private_Lean_Meta_EqnCompiler_DepElim_18__isArrayLitTransition(x_1); if (x_75 == 0) { lean_object* x_76; @@ -19413,7 +19253,7 @@ lean_inc(x_77); x_78 = lean_ctor_get(x_76, 1); lean_inc(x_78); lean_dec(x_76); -x_79 = l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__6; +x_79 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__6; x_80 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_80, 0, x_79); lean_ctor_set(x_80, 1, x_77); @@ -19451,24 +19291,24 @@ return x_86; else { lean_object* x_87; lean_object* x_88; -x_87 = l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__3; -x_88 = l___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit(x_87, x_1, x_2, x_64, x_66); +x_87 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__3; +x_88 = l___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit(x_87, x_1, x_2, x_64, x_66); return x_88; } } else { lean_object* x_89; lean_object* x_90; -x_89 = l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__3; -x_90 = l___private_Lean_Meta_EqnCompiler_DepElim_33__processValue(x_89, x_1, x_2, x_64, x_66); +x_89 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__3; +x_90 = l___private_Lean_Meta_EqnCompiler_DepElim_32__processValue(x_89, x_1, x_2, x_64, x_66); return x_90; } } else { lean_object* x_91; lean_object* x_92; -x_91 = l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__3; -x_92 = l___private_Lean_Meta_EqnCompiler_DepElim_30__processComplete(x_91, x_1, x_2, x_64, x_66); +x_91 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__3; +x_92 = l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete(x_91, x_1, x_2, x_64, x_66); lean_dec(x_64); return x_92; } @@ -19476,16 +19316,16 @@ return x_92; else { lean_object* x_93; lean_object* x_94; -x_93 = l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__3; -x_94 = l___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor(x_93, x_1, x_2, x_64, x_66); +x_93 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__3; +x_94 = l___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor(x_93, x_1, x_2, x_64, x_66); return x_94; } } else { lean_object* x_95; lean_object* x_96; -x_95 = l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__3; -x_96 = l___private_Lean_Meta_EqnCompiler_DepElim_23__processVariable(x_95, x_1, x_2, x_64, x_66); +x_95 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__3; +x_96 = l___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable(x_95, x_1, x_2, x_64, x_66); return x_96; } } @@ -19493,8 +19333,8 @@ return x_96; else { lean_object* x_97; lean_object* x_98; -x_97 = l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__3; -x_98 = l___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern(x_97, x_1, x_2, x_64, x_66); +x_97 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__3; +x_98 = l___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern(x_97, x_1, x_2, x_64, x_66); return x_98; } } @@ -19504,7 +19344,7 @@ lean_object* x_99; lean_object* x_100; x_99 = lean_ctor_get(x_65, 1); lean_inc(x_99); lean_dec(x_65); -x_100 = l___private_Lean_Meta_EqnCompiler_DepElim_21__processLeaf(x_1, x_2, x_64, x_99); +x_100 = l___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf(x_1, x_2, x_64, x_99); lean_dec(x_64); return x_100; } @@ -19540,32 +19380,32 @@ return x_104; } } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___lambda__1(x_1, x_2, x_3, x_4); +x_5 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___lambda__1(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_2); return x_5; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___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* l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { uint8_t x_6; lean_object* x_7; x_6 = lean_unbox(x_3); lean_dec(x_3); -x_7 = l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___lambda__2(x_1, x_2, x_6, x_4, x_5); +x_7 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___lambda__2(x_1, x_2, x_6, x_4, x_5); lean_dec(x_4); return x_7; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_36__process(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__process(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main(x_1, x_2, x_3, x_4); +x_5 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main(x_1, x_2, x_3, x_4); return x_5; } } @@ -19749,88 +19589,7 @@ lean_dec(x_2); return x_5; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_37__mkElimSort(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -if (x_3 == 0) -{ -lean_object* x_6; -x_6 = l_Lean_Meta_DepElim_getUnusedLevelParam(x_1, x_2, x_4, x_5); -if (lean_obj_tag(x_6) == 0) -{ -uint8_t x_7; -x_7 = !lean_is_exclusive(x_6); -if (x_7 == 0) -{ -lean_object* x_8; lean_object* x_9; -x_8 = lean_ctor_get(x_6, 0); -x_9 = l_Lean_mkSort(x_8); -lean_ctor_set(x_6, 0, x_9); -return x_6; -} -else -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_10 = lean_ctor_get(x_6, 0); -x_11 = lean_ctor_get(x_6, 1); -lean_inc(x_11); -lean_inc(x_10); -lean_dec(x_6); -x_12 = l_Lean_mkSort(x_10); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_11); -return x_13; -} -} -else -{ -uint8_t x_14; -x_14 = !lean_is_exclusive(x_6); -if (x_14 == 0) -{ -return x_6; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_6, 0); -x_16 = lean_ctor_get(x_6, 1); -lean_inc(x_16); -lean_inc(x_15); -lean_dec(x_6); -x_17 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_17, 0, x_15); -lean_ctor_set(x_17, 1, x_16); -return x_17; -} -} -} -else -{ -lean_object* x_18; lean_object* x_19; -lean_dec(x_4); -lean_dec(x_1); -x_18 = l_Lean_Expr_getAppArgs___closed__1; -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_5); -return x_19; -} -} -} -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_37__mkElimSort___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -uint8_t x_6; lean_object* x_7; -x_6 = lean_unbox(x_3); -lean_dec(x_3); -x_7 = l___private_Lean_Meta_EqnCompiler_DepElim_37__mkElimSort(x_1, x_2, x_6, x_4, x_5); -lean_dec(x_2); -return x_7; -} -} -lean_object* l_List_map___main___at_Lean_Meta_DepElim_mkElimCore___spec__1(lean_object* x_1) { +lean_object* l_List_map___main___at_Lean_Meta_DepElim_mkElim___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -19852,7 +19611,7 @@ x_6 = l_Lean_Expr_fvarId_x21(x_4); lean_dec(x_4); x_7 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_7, 0, x_6); -x_8 = l_List_map___main___at_Lean_Meta_DepElim_mkElimCore___spec__1(x_5); +x_8 = l_List_map___main___at_Lean_Meta_DepElim_mkElim___spec__1(x_5); lean_ctor_set(x_1, 1, x_8); lean_ctor_set(x_1, 0, x_7); return x_1; @@ -19869,7 +19628,7 @@ x_11 = l_Lean_Expr_fvarId_x21(x_9); lean_dec(x_9); x_12 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_12, 0, x_11); -x_13 = l_List_map___main___at_Lean_Meta_DepElim_mkElimCore___spec__1(x_10); +x_13 = l_List_map___main___at_Lean_Meta_DepElim_mkElim___spec__1(x_10); x_14 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_14, 0, x_12); lean_ctor_set(x_14, 1, x_13); @@ -19878,7 +19637,7 @@ return x_14; } } } -lean_object* l_Std_mkHashSet___at_Lean_Meta_DepElim_mkElimCore___spec__2(lean_object* x_1) { +lean_object* l_Std_mkHashSet___at_Lean_Meta_DepElim_mkElim___spec__2(lean_object* x_1) { _start: { lean_object* x_2; @@ -19886,7 +19645,7 @@ x_2 = l_Std_mkHashSetImp___rarg(x_1); return x_2; } } -uint8_t l_Std_HashSetImp_contains___at_Lean_Meta_DepElim_mkElimCore___spec__3(lean_object* x_1, lean_object* x_2) { +uint8_t l_Std_HashSetImp_contains___at_Lean_Meta_DepElim_mkElim___spec__3(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; size_t x_5; size_t x_6; lean_object* x_7; uint8_t x_8; @@ -19901,7 +19660,7 @@ lean_dec(x_7); return x_8; } } -lean_object* l_Nat_foldAux___main___at_Lean_Meta_DepElim_mkElimCore___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Nat_foldAux___main___at_Lean_Meta_DepElim_mkElim___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; uint8_t x_7; @@ -19915,7 +19674,7 @@ x_9 = lean_nat_sub(x_4, x_8); x_10 = lean_nat_sub(x_3, x_4); lean_dec(x_4); x_11 = lean_ctor_get(x_2, 0); -x_12 = l_Std_HashSetImp_contains___at_Lean_Meta_DepElim_mkElimCore___spec__3(x_11, x_10); +x_12 = l_Std_HashSetImp_contains___at_Lean_Meta_DepElim_mkElim___spec__3(x_11, x_10); if (x_12 == 0) { lean_object* x_13; @@ -19940,7 +19699,7 @@ return x_5; } } } -lean_object* _init_l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__1() { +lean_object* _init_l_Lean_Meta_DepElim_mkElim___lambda__1___closed__1() { _start: { lean_object* x_1; lean_object* x_2; @@ -19950,7 +19709,7 @@ lean_closure_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__2() { +lean_object* _init_l_Lean_Meta_DepElim_mkElim___lambda__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; @@ -19959,19 +19718,19 @@ x_2 = l_Std_mkHashSetImp___rarg(x_1); return x_2; } } -lean_object* _init_l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__3() { +lean_object* _init_l_Lean_Meta_DepElim_mkElim___lambda__1___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__2; +x_2 = l_Lean_Meta_DepElim_mkElim___lambda__1___closed__2; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* _init_l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__4() { +lean_object* _init_l_Lean_Meta_DepElim_mkElim___lambda__1___closed__4() { _start: { lean_object* x_1; @@ -19979,27 +19738,27 @@ x_1 = lean_mk_string("eliminator: "); return x_1; } } -lean_object* _init_l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__5() { +lean_object* _init_l_Lean_Meta_DepElim_mkElim___lambda__1___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__4; +x_1 = l_Lean_Meta_DepElim_mkElim___lambda__1___closed__4; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__6() { +lean_object* _init_l_Lean_Meta_DepElim_mkElim___lambda__1___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__5; +x_1 = l_Lean_Meta_DepElim_mkElim___lambda__1___closed__5; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__7() { +lean_object* _init_l_Lean_Meta_DepElim_mkElim___lambda__1___closed__7() { _start: { lean_object* x_1; @@ -20007,27 +19766,27 @@ x_1 = lean_mk_string("eliminator value: "); return x_1; } } -lean_object* _init_l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__8() { +lean_object* _init_l_Lean_Meta_DepElim_mkElim___lambda__1___closed__8() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__7; +x_1 = l_Lean_Meta_DepElim_mkElim___lambda__1___closed__7; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__9() { +lean_object* _init_l_Lean_Meta_DepElim_mkElim___lambda__1___closed__9() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__8; +x_1 = l_Lean_Meta_DepElim_mkElim___lambda__1___closed__8; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__10() { +lean_object* _init_l_Lean_Meta_DepElim_mkElim___lambda__1___closed__10() { _start: { lean_object* x_1; @@ -20035,27 +19794,27 @@ x_1 = lean_mk_string("\ntype: "); return x_1; } } -lean_object* _init_l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__11() { +lean_object* _init_l_Lean_Meta_DepElim_mkElim___lambda__1___closed__11() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__10; +x_1 = l_Lean_Meta_DepElim_mkElim___lambda__1___closed__10; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__12() { +lean_object* _init_l_Lean_Meta_DepElim_mkElim___lambda__1___closed__12() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__11; +x_1 = l_Lean_Meta_DepElim_mkElim___lambda__1___closed__11; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Lean_Meta_DepElim_mkElimCore___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_Lean_Meta_DepElim_mkElim___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; uint8_t 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; @@ -20071,7 +19830,7 @@ lean_inc(x_15); lean_dec(x_13); x_16 = l_Array_toList___rarg(x_2); lean_inc(x_16); -x_17 = l_List_map___main___at_Lean_Meta_DepElim_mkElimCore___spec__1(x_16); +x_17 = l_List_map___main___at_Lean_Meta_DepElim_mkElim___spec__1(x_16); x_18 = l_Lean_Expr_mvarId_x21(x_14); x_19 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_19, 0, x_18); @@ -20079,9 +19838,9 @@ lean_ctor_set(x_19, 1, x_16); lean_ctor_set(x_19, 2, x_7); lean_ctor_set(x_19, 3, x_17); x_20 = lean_box(0); -x_21 = l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__3; +x_21 = l_Lean_Meta_DepElim_mkElim___lambda__1___closed__3; lean_inc(x_9); -x_22 = l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main(x_19, x_21, x_9, x_15); +x_22 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main(x_19, x_21, x_9, x_15); 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; @@ -20152,11 +19911,11 @@ lean_dec(x_98); lean_inc(x_34); x_103 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_103, 0, x_34); -x_104 = l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__9; +x_104 = l_Lean_Meta_DepElim_mkElim___lambda__1___closed__9; x_105 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_105, 0, x_104); lean_ctor_set(x_105, 1, x_103); -x_106 = l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__12; +x_106 = l_Lean_Meta_DepElim_mkElim___lambda__1___closed__12; x_107 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_107, 0, x_105); lean_ctor_set(x_107, 1, x_106); @@ -20190,9 +19949,9 @@ x_39 = lean_ctor_get(x_37, 1); lean_inc(x_39); lean_dec(x_37); x_40 = l_List_lengthAux___main___rarg(x_5, x_27); -x_41 = l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__1; +x_41 = l_Lean_Meta_DepElim_mkElim___lambda__1___closed__1; lean_inc(x_40); -x_42 = l_Nat_foldAux___main___at_Lean_Meta_DepElim_mkElimCore___spec__4(x_41, x_23, x_40, x_40, x_20); +x_42 = l_Nat_foldAux___main___at_Lean_Meta_DepElim_mkElim___spec__4(x_41, x_23, x_40, x_40, x_20); lean_dec(x_40); x_43 = lean_ctor_get(x_23, 1); lean_inc(x_43); @@ -20272,7 +20031,7 @@ lean_inc(x_60); lean_dec(x_53); x_61 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_61, 0, x_38); -x_62 = l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__6; +x_62 = l_Lean_Meta_DepElim_mkElim___lambda__1___closed__6; x_63 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_63, 0, x_62); lean_ctor_set(x_63, 1, x_61); @@ -20364,7 +20123,7 @@ lean_inc(x_79); lean_dec(x_73); x_80 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_80, 0, x_38); -x_81 = l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__6; +x_81 = l_Lean_Meta_DepElim_mkElim___lambda__1___closed__6; x_82 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_82, 0, x_81); lean_ctor_set(x_82, 1, x_80); @@ -20534,7 +20293,7 @@ return x_123; } } } -lean_object* _init_l_Lean_Meta_DepElim_mkElimCore___lambda__2___closed__1() { +lean_object* _init_l_Lean_Meta_DepElim_mkElim___lambda__2___closed__1() { _start: { lean_object* x_1; @@ -20542,96 +20301,345 @@ x_1 = lean_mk_string("target: "); return x_1; } } -lean_object* _init_l_Lean_Meta_DepElim_mkElimCore___lambda__2___closed__2() { +lean_object* _init_l_Lean_Meta_DepElim_mkElim___lambda__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_DepElim_mkElimCore___lambda__2___closed__1; +x_1 = l_Lean_Meta_DepElim_mkElim___lambda__2___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l_Lean_Meta_DepElim_mkElimCore___lambda__2___closed__3() { +lean_object* _init_l_Lean_Meta_DepElim_mkElim___lambda__2___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_DepElim_mkElimCore___lambda__2___closed__2; +x_1 = l_Lean_Meta_DepElim_mkElim___lambda__2___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Lean_Meta_DepElim_mkElimCore___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* l_Lean_Meta_DepElim_mkElim___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) { _start: { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_7 = lean_unsigned_to_nat(0u); +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_8 = lean_unsigned_to_nat(0u); lean_inc(x_1); -x_8 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_4, x_4, x_7, x_1); -x_9 = l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__4; +x_9 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_4, x_4, x_8, x_1); +x_10 = l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__4; lean_inc(x_3); lean_inc(x_1); -lean_inc(x_8); -x_10 = lean_alloc_closure((void*)(l_Lean_Meta_DepElim_mkElimCore___lambda__1___boxed), 10, 6); -lean_closure_set(x_10, 0, x_8); -lean_closure_set(x_10, 1, x_4); -lean_closure_set(x_10, 2, x_1); -lean_closure_set(x_10, 3, x_2); -lean_closure_set(x_10, 4, x_3); -lean_closure_set(x_10, 5, x_9); -x_11 = lean_ctor_get(x_6, 4); -lean_inc(x_11); -x_12 = lean_ctor_get_uint8(x_11, sizeof(void*)*1); -lean_dec(x_11); -if (x_12 == 0) +lean_inc(x_4); +lean_inc(x_9); +x_11 = lean_alloc_closure((void*)(l_Lean_Meta_DepElim_mkElim___lambda__1___boxed), 10, 6); +lean_closure_set(x_11, 0, x_9); +lean_closure_set(x_11, 1, x_4); +lean_closure_set(x_11, 2, x_1); +lean_closure_set(x_11, 3, x_2); +lean_closure_set(x_11, 4, x_3); +lean_closure_set(x_11, 5, x_10); +x_12 = l___private_Lean_Meta_EqnCompiler_DepElim_5__checkNumPatterns(x_4, x_3, x_6, x_7); +lean_dec(x_4); +if (lean_obj_tag(x_12) == 0) { -lean_object* x_13; +lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_ctor_get(x_13, 4); +lean_inc(x_14); +x_15 = lean_ctor_get_uint8(x_14, sizeof(void*)*1); +lean_dec(x_14); +if (x_15 == 0) +{ +lean_object* x_16; +lean_dec(x_9); +x_16 = l___private_Lean_Meta_EqnCompiler_DepElim_10__withAlts___rarg(x_1, x_3, x_11, x_6, x_13); +return x_16; +} +else +{ +lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_17 = l___private_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_isLevelDefEqAux___main___spec__2(x_10, x_6, x_13); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_unbox(x_18); +lean_dec(x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; +lean_dec(x_9); +x_20 = lean_ctor_get(x_17, 1); +lean_inc(x_20); +lean_dec(x_17); +x_21 = l___private_Lean_Meta_EqnCompiler_DepElim_10__withAlts___rarg(x_1, x_3, x_11, x_6, x_20); +return x_21; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_22 = lean_ctor_get(x_17, 1); +lean_inc(x_22); +lean_dec(x_17); +x_23 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_23, 0, x_9); +x_24 = l_Lean_Meta_DepElim_mkElim___lambda__2___closed__3; +x_25 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_23); +x_26 = l_Lean_MonadTracerAdapter_addTrace___at_Lean_Meta_isLevelDefEqAux___main___spec__1(x_10, x_25, x_6, x_22); +x_27 = lean_ctor_get(x_26, 1); +lean_inc(x_27); +lean_dec(x_26); +x_28 = l___private_Lean_Meta_EqnCompiler_DepElim_10__withAlts___rarg(x_1, x_3, x_11, x_6, x_27); +return x_28; +} +} +} +else +{ +uint8_t x_29; +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_1); +x_29 = !lean_is_exclusive(x_12); +if (x_29 == 0) +{ +return x_12; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_12, 0); +x_31 = lean_ctor_get(x_12, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_12); +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; +} +} +} +} +lean_object* l_Lean_Meta_DepElim_mkElim___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) { +_start: +{ +lean_object* x_7; lean_object* x_8; +x_7 = lean_alloc_closure((void*)(l_Lean_Meta_DepElim_mkElim___lambda__2___boxed), 7, 3); +lean_closure_set(x_7, 0, x_4); +lean_closure_set(x_7, 1, x_1); +lean_closure_set(x_7, 2, x_2); +x_8 = l_Lean_Meta_forallTelescopeReducing___rarg(x_3, x_7, x_5, x_6); +return x_8; +} +} +lean_object* _init_l_Lean_Meta_DepElim_mkElim___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("motive"); +return x_1; +} +} +lean_object* _init_l_Lean_Meta_DepElim_mkElim___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_DepElim_mkElim___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* l_Lean_Meta_DepElim_mkElim(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; +lean_inc(x_2); +x_6 = lean_alloc_closure((void*)(l_Lean_Meta_DepElim_mkElim___lambda__3), 6, 3); +lean_closure_set(x_6, 0, x_1); +lean_closure_set(x_6, 1, x_3); +lean_closure_set(x_6, 2, x_2); +x_7 = l_Lean_Meta_DepElim_mkElim___closed__2; +x_8 = 0; +x_9 = l_Lean_Meta_withLocalDecl___rarg(x_7, x_2, x_8, x_6, x_4, x_5); +return x_9; +} +} +lean_object* l_Std_HashSetImp_contains___at_Lean_Meta_DepElim_mkElim___spec__3___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Std_HashSetImp_contains___at_Lean_Meta_DepElim_mkElim___spec__3(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +lean_object* l_Nat_foldAux___main___at_Lean_Meta_DepElim_mkElim___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Nat_foldAux___main___at_Lean_Meta_DepElim_mkElim___spec__4(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_6; +} +} +lean_object* l_Lean_Meta_DepElim_mkElim___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_Lean_Meta_DepElim_mkElim___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_8); -x_13 = l___private_Lean_Meta_EqnCompiler_DepElim_11__withAlts___rarg(x_1, x_3, x_10, x_5, x_6); +lean_dec(x_5); +lean_dec(x_2); +return x_11; +} +} +lean_object* l_Lean_Meta_DepElim_mkElim___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) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Meta_DepElim_mkElim___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_5); +return x_8; +} +} +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_36__mkElimSort(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +if (x_3 == 0) +{ +lean_object* x_6; +x_6 = l_Lean_Meta_DepElim_getUnusedLevelParam(x_1, x_2, x_4, x_5); +if (lean_obj_tag(x_6) == 0) +{ +uint8_t x_7; +x_7 = !lean_is_exclusive(x_6); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_ctor_get(x_6, 0); +x_9 = l_Lean_mkSort(x_8); +lean_ctor_set(x_6, 0, x_9); +return x_6; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_10 = lean_ctor_get(x_6, 0); +x_11 = lean_ctor_get(x_6, 1); +lean_inc(x_11); +lean_inc(x_10); +lean_dec(x_6); +x_12 = l_Lean_mkSort(x_10); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_11); return x_13; } +} else { -lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_14 = l___private_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_isLevelDefEqAux___main___spec__2(x_9, x_5, x_6); -x_15 = lean_ctor_get(x_14, 0); +uint8_t x_14; +x_14 = !lean_is_exclusive(x_6); +if (x_14 == 0) +{ +return x_6; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_6, 0); +x_16 = lean_ctor_get(x_6, 1); +lean_inc(x_16); lean_inc(x_15); -x_16 = lean_unbox(x_15); -lean_dec(x_15); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; -lean_dec(x_8); -x_17 = lean_ctor_get(x_14, 1); -lean_inc(x_17); -lean_dec(x_14); -x_18 = l___private_Lean_Meta_EqnCompiler_DepElim_11__withAlts___rarg(x_1, x_3, x_10, x_5, x_17); -return x_18; +lean_dec(x_6); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +} } else { -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; -x_19 = lean_ctor_get(x_14, 1); -lean_inc(x_19); -lean_dec(x_14); -x_20 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_20, 0, x_8); -x_21 = l_Lean_Meta_DepElim_mkElimCore___lambda__2___closed__3; -x_22 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_20); -x_23 = l_Lean_MonadTracerAdapter_addTrace___at_Lean_Meta_isLevelDefEqAux___main___spec__1(x_9, x_22, x_5, x_19); -x_24 = lean_ctor_get(x_23, 1); -lean_inc(x_24); -lean_dec(x_23); -x_25 = l___private_Lean_Meta_EqnCompiler_DepElim_11__withAlts___rarg(x_1, x_3, x_10, x_5, x_24); -return x_25; +lean_object* x_18; lean_object* x_19; +lean_dec(x_4); +lean_dec(x_1); +x_18 = l_Lean_Expr_getAppArgs___closed__1; +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_5); +return x_19; +} +} +} +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_36__mkElimSort___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; lean_object* x_7; +x_6 = lean_unbox(x_3); +lean_dec(x_3); +x_7 = l___private_Lean_Meta_EqnCompiler_DepElim_36__mkElimSort(x_1, x_2, x_6, x_4, x_5); +lean_dec(x_2); +return x_7; +} +} +lean_object* l_Lean_Meta_DepElim_mkElimTester___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) { +_start: +{ +lean_object* x_7; +lean_inc(x_5); +x_7 = l_Lean_Meta_mkForall(x_4, x_1, x_5, x_6); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +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 = l_Lean_Meta_DepElim_mkElim(x_2, x_8, x_3, x_5, x_9); +return x_10; +} +else +{ +uint8_t x_11; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_11 = !lean_is_exclusive(x_7); +if (x_11 == 0) +{ +return x_7; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_7, 0); +x_13 = lean_ctor_get(x_7, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_7); +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_13); +return x_14; } } } } -lean_object* _init_l_Lean_Meta_DepElim_mkElimCore___closed__1() { +lean_object* _init_l_Lean_Meta_DepElim_mkElimTester___closed__1() { _start: { lean_object* x_1; @@ -20639,147 +20647,26 @@ x_1 = lean_mk_string("_d"); return x_1; } } -lean_object* _init_l_Lean_Meta_DepElim_mkElimCore___closed__2() { +lean_object* _init_l_Lean_Meta_DepElim_mkElimTester___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_DepElim_mkElimCore___closed__1; +x_2 = l_Lean_Meta_DepElim_mkElimTester___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_Lean_Meta_DepElim_mkElimCore(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_8 = l_List_redLength___main___rarg(x_3); -x_9 = lean_mk_empty_array_with_capacity(x_8); -lean_dec(x_8); -lean_inc(x_3); -x_10 = l_List_toArrayAux___main___rarg(x_3, x_9); -lean_inc(x_4); -x_11 = lean_alloc_closure((void*)(l_Lean_Meta_DepElim_mkElimCore___lambda__2), 6, 3); -lean_closure_set(x_11, 0, x_2); -lean_closure_set(x_11, 1, x_1); -lean_closure_set(x_11, 2, x_4); -x_12 = l___private_Lean_Meta_EqnCompiler_DepElim_5__checkNumPatterns(x_3, x_4, x_6, x_7); -lean_dec(x_4); -lean_dec(x_3); -if (lean_obj_tag(x_12) == 0) -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_13 = lean_ctor_get(x_12, 1); -lean_inc(x_13); -lean_dec(x_12); -x_14 = l_Lean_Meta_DepElim_mkElimCore___closed__2; -x_15 = l_Lean_Meta_generalizeTelescope___rarg(x_10, x_14, x_11, x_6, x_13); -return x_15; -} -else -{ -uint8_t x_16; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_6); -x_16 = !lean_is_exclusive(x_12); -if (x_16 == 0) -{ -return x_12; -} -else -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_12, 0); -x_18 = lean_ctor_get(x_12, 1); -lean_inc(x_18); -lean_inc(x_17); -lean_dec(x_12); -x_19 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_19, 0, x_17); -lean_ctor_set(x_19, 1, x_18); -return x_19; -} -} -} -} -lean_object* l_Std_HashSetImp_contains___at_Lean_Meta_DepElim_mkElimCore___spec__3___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; lean_object* x_4; -x_3 = l_Std_HashSetImp_contains___at_Lean_Meta_DepElim_mkElimCore___spec__3(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -x_4 = lean_box(x_3); -return x_4; -} -} -lean_object* l_Nat_foldAux___main___at_Lean_Meta_DepElim_mkElimCore___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_Nat_foldAux___main___at_Lean_Meta_DepElim_mkElimCore___spec__4(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_6; -} -} -lean_object* l_Lean_Meta_DepElim_mkElimCore___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_Lean_Meta_DepElim_mkElimCore___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_8); -lean_dec(x_5); -lean_dec(x_2); -return x_11; -} -} -lean_object* l_Lean_Meta_DepElim_mkElimCore___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -uint8_t x_8; lean_object* x_9; -x_8 = lean_unbox(x_5); -lean_dec(x_5); -x_9 = l_Lean_Meta_DepElim_mkElimCore(x_1, x_2, x_3, x_4, x_8, x_6, x_7); -return x_9; -} -} -lean_object* l_Lean_Meta_DepElim_mkElim___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; lean_object* x_9; -x_8 = l_Array_toList___rarg(x_1); -x_9 = l_Lean_Meta_DepElim_mkElimCore(x_2, x_5, x_8, x_3, x_4, x_6, x_7); -return x_9; -} -} -lean_object* l_Lean_Meta_DepElim_mkElim___lambda__2(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_8 = lean_box(x_3); -lean_inc(x_5); -x_9 = lean_alloc_closure((void*)(l_Lean_Meta_DepElim_mkElim___lambda__1___boxed), 7, 4); -lean_closure_set(x_9, 0, x_5); -lean_closure_set(x_9, 1, x_1); -lean_closure_set(x_9, 2, x_2); -lean_closure_set(x_9, 3, x_8); -x_10 = l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg(x_5, x_4, x_9, x_6, x_7); -return x_10; -} -} -lean_object* l_Lean_Meta_DepElim_mkElim(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Lean_Meta_DepElim_mkElimTester(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; lean_inc(x_5); lean_inc(x_2); -x_7 = l___private_Lean_Meta_EqnCompiler_DepElim_37__mkElimSort(x_2, x_3, x_4, x_5, x_6); +x_7 = l___private_Lean_Meta_EqnCompiler_DepElim_36__mkElimSort(x_2, x_3, x_4, x_5, x_6); if (lean_obj_tag(x_7) == 0) { -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_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; x_8 = lean_ctor_get(x_7, 0); lean_inc(x_8); x_9 = lean_ctor_get(x_7, 1); @@ -20789,80 +20676,57 @@ x_10 = l_List_redLength___main___rarg(x_2); x_11 = lean_mk_empty_array_with_capacity(x_10); lean_dec(x_10); x_12 = l_List_toArrayAux___main___rarg(x_2, x_11); -x_13 = lean_box(x_4); -x_14 = lean_alloc_closure((void*)(l_Lean_Meta_DepElim_mkElim___lambda__2___boxed), 7, 4); -lean_closure_set(x_14, 0, x_1); -lean_closure_set(x_14, 1, x_3); -lean_closure_set(x_14, 2, x_13); -lean_closure_set(x_14, 3, x_8); -x_15 = l_Lean_Meta_DepElim_mkElimCore___closed__2; -x_16 = l_Lean_Meta_generalizeTelescope___rarg(x_12, x_15, x_14, x_5, x_9); -return x_16; +x_13 = lean_alloc_closure((void*)(l_Lean_Meta_DepElim_mkElimTester___lambda__1), 6, 3); +lean_closure_set(x_13, 0, x_8); +lean_closure_set(x_13, 1, x_1); +lean_closure_set(x_13, 2, x_3); +x_14 = l_Lean_Meta_DepElim_mkElimTester___closed__2; +x_15 = l_Lean_Meta_generalizeTelescope___rarg(x_12, x_14, x_13, x_5, x_9); +return x_15; } else { -uint8_t x_17; +uint8_t x_16; lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_17 = !lean_is_exclusive(x_7); -if (x_17 == 0) +x_16 = !lean_is_exclusive(x_7); +if (x_16 == 0) { return x_7; } else { -lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_18 = lean_ctor_get(x_7, 0); -x_19 = lean_ctor_get(x_7, 1); -lean_inc(x_19); +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_7, 0); +x_18 = lean_ctor_get(x_7, 1); lean_inc(x_18); +lean_inc(x_17); lean_dec(x_7); -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; +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +return x_19; } } } } -lean_object* l_Lean_Meta_DepElim_mkElim___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) { -_start: -{ -uint8_t x_8; lean_object* x_9; -x_8 = lean_unbox(x_4); -lean_dec(x_4); -x_9 = l_Lean_Meta_DepElim_mkElim___lambda__1(x_1, x_2, x_3, x_8, x_5, x_6, x_7); -lean_dec(x_1); -return x_9; -} -} -lean_object* l_Lean_Meta_DepElim_mkElim___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) { -_start: -{ -uint8_t x_8; lean_object* x_9; -x_8 = lean_unbox(x_3); -lean_dec(x_3); -x_9 = l_Lean_Meta_DepElim_mkElim___lambda__2(x_1, x_2, x_8, x_4, x_5, x_6, x_7); -return x_9; -} -} -lean_object* l_Lean_Meta_DepElim_mkElim___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* l_Lean_Meta_DepElim_mkElimTester___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { uint8_t x_7; lean_object* x_8; x_7 = lean_unbox(x_4); lean_dec(x_4); -x_8 = l_Lean_Meta_DepElim_mkElim(x_1, x_2, x_3, x_7, x_5, x_6); +x_8 = l_Lean_Meta_DepElim_mkElimTester(x_1, x_2, x_3, x_7, x_5, x_6); return x_8; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_38__regTraceClasses(lean_object* x_1) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_37__regTraceClasses(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__2; +x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__2; x_3 = l_Lean_registerTraceClass(x_2, x_1); if (lean_obj_tag(x_3) == 0) { @@ -20870,7 +20734,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; x_4 = lean_ctor_get(x_3, 1); lean_inc(x_4); lean_dec(x_3); -x_5 = l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__4; +x_5 = l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__4; x_6 = l_Lean_registerTraceClass(x_5, x_4); return x_6; } @@ -21001,165 +20865,159 @@ l___private_Lean_Meta_EqnCompiler_DepElim_5__checkNumPatterns___closed__2 = _ini lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_5__checkNumPatterns___closed__2); l___private_Lean_Meta_EqnCompiler_DepElim_5__checkNumPatterns___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_5__checkNumPatterns___closed__3(); lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_5__checkNumPatterns___closed__3); -l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__1); -l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__2); -l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__3); -l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__4 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__4(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__4); -l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__5 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__5(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__5); -l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__6 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__6(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__6); -l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__7 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__7(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__7); -l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__8 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__8(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__8); -l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__9 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__9(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_6__withMotive___rarg___closed__9); -l___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___rarg___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___rarg___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___rarg___closed__1); -l___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___rarg___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___rarg___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___rarg___closed__2); -l___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___rarg___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___rarg___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_10__withAltsAux___main___rarg___closed__3); -l___private_Lean_Meta_EqnCompiler_DepElim_17__isCompleteTransition___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_17__isCompleteTransition___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_17__isCompleteTransition___closed__1); -l___private_Lean_Meta_EqnCompiler_DepElim_17__isCompleteTransition___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_17__isCompleteTransition___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_17__isCompleteTransition___closed__2); -l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__1); -l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__2); -l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__3); -l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__4 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__4(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__4); -l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__5 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__5(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__5); -l___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___closed__1); -l___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___closed__2); -l___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_22__processAsPattern___closed__3); -l___private_Lean_Meta_EqnCompiler_DepElim_23__processVariable___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_23__processVariable___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_23__processVariable___closed__1); -l___private_Lean_Meta_EqnCompiler_DepElim_23__processVariable___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_23__processVariable___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_23__processVariable___closed__2); -l___private_Lean_Meta_EqnCompiler_DepElim_23__processVariable___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_23__processVariable___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_23__processVariable___closed__3); -l___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___closed__1); -l___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___closed__2); -l___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_25__processConstructor___closed__3); -l___private_Lean_Meta_EqnCompiler_DepElim_26__throwInductiveTypeExpected___rarg___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_26__throwInductiveTypeExpected___rarg___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_26__throwInductiveTypeExpected___rarg___closed__1); -l___private_Lean_Meta_EqnCompiler_DepElim_26__throwInductiveTypeExpected___rarg___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_26__throwInductiveTypeExpected___rarg___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_26__throwInductiveTypeExpected___rarg___closed__2); -l___private_Lean_Meta_EqnCompiler_DepElim_26__throwInductiveTypeExpected___rarg___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_26__throwInductiveTypeExpected___rarg___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_26__throwInductiveTypeExpected___rarg___closed__3); -l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___closed__1); -l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___closed__2); -l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructorAux___main___closed__3); -l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__1); -l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__2); -l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__3); -l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__4 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__4(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__4); -l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__5 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__5(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__5); -l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__6 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__6(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__6); -l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__7 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__7(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__7); -l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__8 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__8(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__8); -l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__9 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__9(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_28__tryConstructor_x3f___closed__9); -l___private_Lean_Meta_EqnCompiler_DepElim_30__processComplete___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_30__processComplete___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_30__processComplete___closed__1); -l___private_Lean_Meta_EqnCompiler_DepElim_30__processComplete___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_30__processComplete___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_30__processComplete___closed__2); -l___private_Lean_Meta_EqnCompiler_DepElim_30__processComplete___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_30__processComplete___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_30__processComplete___closed__3); -l___private_Lean_Meta_EqnCompiler_DepElim_30__processComplete___closed__4 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_30__processComplete___closed__4(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_30__processComplete___closed__4); -l___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___closed__1); -l___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___closed__2); -l___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_33__processValue___closed__3); -l___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___closed__1); -l___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___closed__2); -l___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_35__processArrayLit___closed__3); -l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__1); -l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__2); -l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__3); -l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__4 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__4(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__4); -l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__5 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__5(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__5); -l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__6 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__6(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_36__process___main___closed__6); +l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__1); +l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__2); +l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__3); +l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__4 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__4(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__4); +l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__5 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__5(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__5); +l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__6 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__6(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__6); +l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__7 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__7(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__7); +l___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition___closed__1); +l___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition___closed__2); +l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__1); +l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__2); +l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__3); +l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__4 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__4(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__4); +l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__5 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__5(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__5); +l___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___closed__1); +l___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___closed__2); +l___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___closed__3); +l___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___closed__1); +l___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___closed__2); +l___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___closed__3); +l___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___closed__1); +l___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___closed__2); +l___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___closed__3); +l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg___closed__1); +l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg___closed__2); +l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg___closed__3); +l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___closed__1); +l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___closed__2); +l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___closed__3); +l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__1); +l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__2); +l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__3); +l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__4 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__4(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__4); +l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__5 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__5(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__5); +l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__6 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__6(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__6); +l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__7 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__7(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__7); +l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__8 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__8(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__8); +l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__9 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__9(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__9); +l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__1); +l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__2); +l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__3); +l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__4 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__4(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__4); +l___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___closed__1); +l___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___closed__2); +l___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___closed__3); +l___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___closed__1); +l___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___closed__2); +l___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___closed__3); +l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__1); +l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__2); +l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__3); +l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__4 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__4(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__4); +l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__5 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__5(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__5); +l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__6 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__6(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__6); l_Lean_Meta_DepElim_getUnusedLevelParam___closed__1 = _init_l_Lean_Meta_DepElim_getUnusedLevelParam___closed__1(); lean_mark_persistent(l_Lean_Meta_DepElim_getUnusedLevelParam___closed__1); l_Lean_Meta_DepElim_getUnusedLevelParam___closed__2 = _init_l_Lean_Meta_DepElim_getUnusedLevelParam___closed__2(); lean_mark_persistent(l_Lean_Meta_DepElim_getUnusedLevelParam___closed__2); l_Lean_Meta_DepElim_getUnusedLevelParam___closed__3 = _init_l_Lean_Meta_DepElim_getUnusedLevelParam___closed__3(); lean_mark_persistent(l_Lean_Meta_DepElim_getUnusedLevelParam___closed__3); -l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__1 = _init_l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__1(); -lean_mark_persistent(l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__1); -l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__2 = _init_l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__2(); -lean_mark_persistent(l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__2); -l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__3 = _init_l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__3(); -lean_mark_persistent(l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__3); -l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__4 = _init_l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__4(); -lean_mark_persistent(l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__4); -l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__5 = _init_l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__5(); -lean_mark_persistent(l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__5); -l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__6 = _init_l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__6(); -lean_mark_persistent(l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__6); -l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__7 = _init_l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__7(); -lean_mark_persistent(l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__7); -l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__8 = _init_l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__8(); -lean_mark_persistent(l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__8); -l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__9 = _init_l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__9(); -lean_mark_persistent(l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__9); -l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__10 = _init_l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__10(); -lean_mark_persistent(l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__10); -l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__11 = _init_l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__11(); -lean_mark_persistent(l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__11); -l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__12 = _init_l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__12(); -lean_mark_persistent(l_Lean_Meta_DepElim_mkElimCore___lambda__1___closed__12); -l_Lean_Meta_DepElim_mkElimCore___lambda__2___closed__1 = _init_l_Lean_Meta_DepElim_mkElimCore___lambda__2___closed__1(); -lean_mark_persistent(l_Lean_Meta_DepElim_mkElimCore___lambda__2___closed__1); -l_Lean_Meta_DepElim_mkElimCore___lambda__2___closed__2 = _init_l_Lean_Meta_DepElim_mkElimCore___lambda__2___closed__2(); -lean_mark_persistent(l_Lean_Meta_DepElim_mkElimCore___lambda__2___closed__2); -l_Lean_Meta_DepElim_mkElimCore___lambda__2___closed__3 = _init_l_Lean_Meta_DepElim_mkElimCore___lambda__2___closed__3(); -lean_mark_persistent(l_Lean_Meta_DepElim_mkElimCore___lambda__2___closed__3); -l_Lean_Meta_DepElim_mkElimCore___closed__1 = _init_l_Lean_Meta_DepElim_mkElimCore___closed__1(); -lean_mark_persistent(l_Lean_Meta_DepElim_mkElimCore___closed__1); -l_Lean_Meta_DepElim_mkElimCore___closed__2 = _init_l_Lean_Meta_DepElim_mkElimCore___closed__2(); -lean_mark_persistent(l_Lean_Meta_DepElim_mkElimCore___closed__2); -res = l___private_Lean_Meta_EqnCompiler_DepElim_38__regTraceClasses(lean_io_mk_world()); +l_Lean_Meta_DepElim_mkElim___lambda__1___closed__1 = _init_l_Lean_Meta_DepElim_mkElim___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Meta_DepElim_mkElim___lambda__1___closed__1); +l_Lean_Meta_DepElim_mkElim___lambda__1___closed__2 = _init_l_Lean_Meta_DepElim_mkElim___lambda__1___closed__2(); +lean_mark_persistent(l_Lean_Meta_DepElim_mkElim___lambda__1___closed__2); +l_Lean_Meta_DepElim_mkElim___lambda__1___closed__3 = _init_l_Lean_Meta_DepElim_mkElim___lambda__1___closed__3(); +lean_mark_persistent(l_Lean_Meta_DepElim_mkElim___lambda__1___closed__3); +l_Lean_Meta_DepElim_mkElim___lambda__1___closed__4 = _init_l_Lean_Meta_DepElim_mkElim___lambda__1___closed__4(); +lean_mark_persistent(l_Lean_Meta_DepElim_mkElim___lambda__1___closed__4); +l_Lean_Meta_DepElim_mkElim___lambda__1___closed__5 = _init_l_Lean_Meta_DepElim_mkElim___lambda__1___closed__5(); +lean_mark_persistent(l_Lean_Meta_DepElim_mkElim___lambda__1___closed__5); +l_Lean_Meta_DepElim_mkElim___lambda__1___closed__6 = _init_l_Lean_Meta_DepElim_mkElim___lambda__1___closed__6(); +lean_mark_persistent(l_Lean_Meta_DepElim_mkElim___lambda__1___closed__6); +l_Lean_Meta_DepElim_mkElim___lambda__1___closed__7 = _init_l_Lean_Meta_DepElim_mkElim___lambda__1___closed__7(); +lean_mark_persistent(l_Lean_Meta_DepElim_mkElim___lambda__1___closed__7); +l_Lean_Meta_DepElim_mkElim___lambda__1___closed__8 = _init_l_Lean_Meta_DepElim_mkElim___lambda__1___closed__8(); +lean_mark_persistent(l_Lean_Meta_DepElim_mkElim___lambda__1___closed__8); +l_Lean_Meta_DepElim_mkElim___lambda__1___closed__9 = _init_l_Lean_Meta_DepElim_mkElim___lambda__1___closed__9(); +lean_mark_persistent(l_Lean_Meta_DepElim_mkElim___lambda__1___closed__9); +l_Lean_Meta_DepElim_mkElim___lambda__1___closed__10 = _init_l_Lean_Meta_DepElim_mkElim___lambda__1___closed__10(); +lean_mark_persistent(l_Lean_Meta_DepElim_mkElim___lambda__1___closed__10); +l_Lean_Meta_DepElim_mkElim___lambda__1___closed__11 = _init_l_Lean_Meta_DepElim_mkElim___lambda__1___closed__11(); +lean_mark_persistent(l_Lean_Meta_DepElim_mkElim___lambda__1___closed__11); +l_Lean_Meta_DepElim_mkElim___lambda__1___closed__12 = _init_l_Lean_Meta_DepElim_mkElim___lambda__1___closed__12(); +lean_mark_persistent(l_Lean_Meta_DepElim_mkElim___lambda__1___closed__12); +l_Lean_Meta_DepElim_mkElim___lambda__2___closed__1 = _init_l_Lean_Meta_DepElim_mkElim___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Meta_DepElim_mkElim___lambda__2___closed__1); +l_Lean_Meta_DepElim_mkElim___lambda__2___closed__2 = _init_l_Lean_Meta_DepElim_mkElim___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_Meta_DepElim_mkElim___lambda__2___closed__2); +l_Lean_Meta_DepElim_mkElim___lambda__2___closed__3 = _init_l_Lean_Meta_DepElim_mkElim___lambda__2___closed__3(); +lean_mark_persistent(l_Lean_Meta_DepElim_mkElim___lambda__2___closed__3); +l_Lean_Meta_DepElim_mkElim___closed__1 = _init_l_Lean_Meta_DepElim_mkElim___closed__1(); +lean_mark_persistent(l_Lean_Meta_DepElim_mkElim___closed__1); +l_Lean_Meta_DepElim_mkElim___closed__2 = _init_l_Lean_Meta_DepElim_mkElim___closed__2(); +lean_mark_persistent(l_Lean_Meta_DepElim_mkElim___closed__2); +l_Lean_Meta_DepElim_mkElimTester___closed__1 = _init_l_Lean_Meta_DepElim_mkElimTester___closed__1(); +lean_mark_persistent(l_Lean_Meta_DepElim_mkElimTester___closed__1); +l_Lean_Meta_DepElim_mkElimTester___closed__2 = _init_l_Lean_Meta_DepElim_mkElimTester___closed__2(); +lean_mark_persistent(l_Lean_Meta_DepElim_mkElimTester___closed__2); +res = l___private_Lean_Meta_EqnCompiler_DepElim_37__regTraceClasses(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_mk_io_result(lean_box(0)); diff --git a/stage0/stdlib/Lean/Parser/Term.c b/stage0/stdlib/Lean/Parser/Term.c index 9c9fb54ec6..f9f9a8256b 100644 --- a/stage0/stdlib/Lean/Parser/Term.c +++ b/stage0/stdlib/Lean/Parser/Term.c @@ -570,6 +570,7 @@ lean_object* l___regBuiltin_Lean_Parser_Term_nomatch_parenthesizer(lean_object*) lean_object* l_Lean_Parser_Term_listLit___closed__2; lean_object* l_Lean_Parser_Term_andthen_parenthesizer___closed__4; lean_object* l_Lean_Parser_Term_band___elambda__1(lean_object*, lean_object*); +extern lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__1; lean_object* l_Lean_Parser_ParserState_mkTrailingNode(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_seqRight___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_eq_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*); @@ -2298,7 +2299,6 @@ lean_object* l_Lean_Parser_Term_haveAssign_parenthesizer(lean_object*, lean_obje lean_object* l_Lean_Parser_Term_doPat_parenthesizer___closed__3; lean_object* l_Lean_Parser_Term_paren_parenthesizer___closed__5; lean_object* l___private_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Term_subst___elambda__1___spec__2(uint8_t, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*); -extern lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__1; lean_object* l_Lean_Parser_Term_id___closed__7; lean_object* l_Lean_Parser_Term_bracketedDoSeq___closed__6; lean_object* l_Lean_Parser_Term_let___elambda__1___closed__9; @@ -38020,7 +38020,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_mkAppStx___closed__6; -x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__1; +x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -38039,7 +38039,7 @@ lean_object* _init_l_Lean_Parser_Term_match___elambda__1___closed__3() { _start: { lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_20__processNonVariable___closed__1; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__1; x_2 = l_Lean_Parser_Term_match___elambda__1___closed__2; x_3 = 1; x_4 = l_Lean_Parser_mkAntiquot(x_1, x_2, x_3);